tomcat

Session is lost and created as new in every servlet request

I have this big issue. My current session is gone every time I made a new request to Server. I have checked in a lot of places. I can't find what's the problem. I also have included session-config in web.xml both in tomcat and application. I also enabled to accept cookies to my browsers. Tested in every browser. It's not working. I am...

Problem using -javaagent with Linux 64 bit tomcat

I m using -javagent agent.jar to instrument java classes in tomcat.While using -javaagent:,in manifest file of the jar we will mention the premain class which gets called first and from there we can start instrumenting Byte code . From my Premain class(which get first called ) I add shutdownhook class to JVM. Runtim...

Why does my unthrottled tomcat/solr performance look like it's being throttled?

I've been working on benchmarking our solr response times in relation to the a variable number of concurrent queries. With maxThreads=150 - I've tried running between 20-100 queries concurrently against our solr instance and have noted that for all n-way (>20) queries I'm finding that performance flatlines at 20-30 requests/second. ...

Tomcat 6 XFire MTOM web service problem

I'm using XFire 1.2.6 on tomcat as web services implementation. Service is created using XFireProxyFactory and @EnableMTOM annotation. Client is also XFire and is using MTOM. It all worked fine in Tomcat 5.5.20, but fails in tomcat 6.0.20 for some reason. I got the following error cause on client when trying to access web service from c...

j_security_check connection interrupted

Hi, I am using tomcat's authentication. When I leave the login page open for about half an hour so and then try to login, I get the following error: URL: http://localhost/pc/j_security_check Page Content: Connection Interrupted The connection to the server was reset while the page was loading. The network link was interrupted while...

Tomcat 6.0 Jasper Exception

I have been trying to get tomcat 6.0 to work on my local machine and have been unsuccessful. The server starts up normally, but when I try to view a page I get an exception: SEVERE: Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 22 in the...

Problem updating existing webapp in Tomcat 6.0.20.

In Tomcat 5, I would build a WAR file and place it on my test server. On this server there was a my-app.xml file in the CATALINA_HOME/conf/[EngineName]/[HostName] directory that pointed to my test database. Once I finished testing, I would send the WAR file to my clients IT department and they would put the file in the CATALINA_HOME/weba...

SOA/web services: Java on Tomcat or C# (.NET) on IIS?

While this stems from the age-old debate between Java and .NET, I'm interested in the merits of these two technologies in terms of SOA/web services. I'm starting a new project writing web services. I don't have extensive experience writing them in either Java or C#, and I'm open to using either a Microsoft stack (running IIS) or a Linux...

Making a java web application as the root of a domain name in Tomcat 6

I'm currently developing a Java web application myapp and when deployed in Tomcat 6 server, I access myapp with this URL: http://localhost:8080/myapp Instead I want to access my application using this URL: http://myapp:8080 since myapp will be the only application deployed in my Tomcat 6. How do I do it? ...

Deployment issues on Tomcat

I am unable to deploy grails war in tomcat . Copied all 55 jars to $CATALINA_HOME/shared/lib/grails-jars/ Added shared.loader= ${catalina.home}/shared/lib/grails-jars/*.jar And started tomcat successfully. Now deployed grails war in deploy folder (war is ~572.4KB). The console shows these errors : log4j:ERROR Could not instanti...

RSA secret premaster error

Hello, I am having a application which when i run standalone runs well. This application sends an XML to a server and listens for the reply from that server which is again an XML.This works WELL when running STANDALONE. But when i run this application inside an web application it gives me follow error: RSA Secret Premaster Error I am ...

How can I disable Tomcat caching completly?

I'm having trouble with a site im currently working on. We are trying to make facebook connect comments widget. The widget loads every time we make a new request that responds with a 200 OK status. But when it returns with a 304 Not Modified the widget wont load. It all points out to a caching issue. I tryed changin the context.xml <C...

Can I change web application root globally in jboss 4.2?

Hi, I have following situation of deployment: application_one.war application_two.war application_three.war When I deploy it in Jboss, I get three url contexts: http//myserver/application_one/ http//myserver/application_two/ http//myserver/application_three/ Is it possible to change (prepend) globally an additional path to all d...

Why is Eclipse Europa constantly crashing?

I'm currently battling with Eclipse Europa to get it to play ball with an SVN repository and a Tomcat project. Everytime it bails out, I get the following: JVM terminated. Exit code=1 /usr/java/latest/bin/java -Dosgi.requiredJavaVersion=1.5 -Xms128m -Xmx512m -XX:MaxPermSize=128m -jar /users/0600083h/Level 3/TeamProject/eclipse/plugins /...

Java client program calling a .NET 3.5 web service

i have written a simple java stand-alone program that calls a .net 1.0 web service. no problem. if i take that same program structure and call a .net 3.5 web service, the java program fails. for whatever reason, the parameters passed to the 3.5 service are NEVER received. so can someone point the way to an example or tutorial where i ca...

APACHE-TOMCAT can anybody elaborate which one is web-server and web-container?

HI Most of the time I read Tomcat is Web-server.. Sometimes I read Tomcat is web-container.. Sometimes I read Apache is web-server.. I am bit puzzled.. Can anybody explain it properly? Thanks.. ...

How to use Embedded tomcat with wars that have jars inside of them?

Hi, I had the same problem as this and solved it by using the code given by Antonio. My problem is that the war file has multiple jars inside of them, and these jars are dependencies, without which, the web application does not run. Is there anyway to tweak the ClassLoader or another method to make the embedded tomcat also load the ja...

Local Tomcat Environment Not Starting

I'm attempting to get a local Tomcat environment running and am consistently encountering the following error: Can't load log handler "2localhost.org.apache.juli.FileHandler" java.lang.ClassNotFoundException: 2localhost.org.apache.juli.FileHandler java.lang.ClassNotFoundException: 2localhost.org.apache.juli.FileHandler at java.net.URLC...

c3p0 pool cannot establish a coonection. How to debug this?

I have a Tomcat and PostgreSQL installed on a server. I'm having a connection problem trying to connect from my servlet to PostgreSQL database using c3p0 pool. I can reach DB if I'm running Tomcat locally on my laptop. Also I can connect from server to DB using psql (i.e. command line sql utility). But when I'm trying to deploy my serv...

Multiple grails applications on Tomcat

I'm about to deploy several grails apps on top of a single Tomcat server, and I have the following doubts: In terms of memory usage: Does it make a difference to put the common grails libs under shared/lib instead of putting them in each app's war files? Is there a list of those jars ? If so, is there a mechanism not to package those j...