tomcat6

Mapping xml-attribute using resteasy

Hi all. I'm using resteasy and have some problem. There is some service on remote server. For example, when I go to url "http://some.site.com/Login/my_login/my_passowrd" service returns me xml: < LoginToken> < success>true< /success> < token>23324473-897b-408b-b096-bf2cddad33< /token> < /LoginToken> I've wrote class for mapping:...

Requested resource not found for sub-context in case of JSF

My JSF application is deployed under tomcat and server.xml is configured as follows for my application <Host name="myapp.com" appBase="/home/myapp/public_html"> <Alias>www.myapp.com</Alias> <Context path="" reloadable="true" docBase="/home/myapp/public_html" debug="1"/> <Context path="/manager" debug="0" privileged=...

Maven Test on servlet receiving an IllegalStatException: Cannot reset buffer - response already committed

During the test phase of my maven build I ave the following code in one @test method: request.clearAttributes(); response.reset(); String story_uuid = qit.getQI().getStory_uuid(); assertNotNull(story); request.setParameter("story_uuid", story_uuid); request.setParameter("activity", "ge...

SSL session migration

I configured my tomcat (6.0.29) cluster "by the book", using only the NIO HTTP connector load balanced by httpd mod_proxy_balancer (HTTP/HTTPS). When using HTTP, i can kill servers and still use my session perfecty. When using HTTPS the session is lost on failover. Anyone had this kind of problem or can give me a hint to where i should ...

Try to make a Connection Pool with Tomcat 6

Hi there, I really am having a nightmare configuring Tomcat to set up a connection pool. I have done a lot of reading of various forums and the documents from Tomcat but am having to ask here as a last resort. This is the first time I have tried to get connections from the container so it's all new to me. I have been having NameNotFoun...

How to specify sub-context in JSF web application?

In my JSF application, I have a sub-context 'admin' and I have some pages under 'web/admin' folder. I am able to access all the pages under 'web' with the URL www.abc.com but I am getting 'requested resource not found' for the request www.abc.com/admin. I could make out that this is the issue with the 'context' specification in 'context...

tomcat 6: accessing web app without war name in the URL and without overwriting ROOT?

in my war's META-INF/context.xml I have: <?xml version="1.0" encoding="UTF-8"?> <Context path="/foobar" docBase="my-long-war-name"/> I deploy my war to the webapps/ directory and I confirm that my contex.xml is in %CATALINA_HOME%\conf\Catalina\localhost with the name my-long-war-name.xml Now, instead of accessing my REST service thr...

RMI on Tomcat??

Hi, I was wondering if there are any known issues about running RMI on a Tomcat server. If yes, then would appreciate if anybody could give some description of the issues with sample code examples. THanks ...

Apache Tomcat Threads in WAITING State with 100% CPU utilisation

The application, when subjected to load, sometimes, utilises 100%. doing a kill -quit <pid> showed 1100+ threads in waiting state as: Full thread dump Java HotSpot(TM) 64-Bit Server VM (16.3-b01 mixed mode): "http-8080-1198" daemon prio=10 tid=0x00007f17b465c800 nid=0x2061 in Object.wait() [0x00007f1762b6e000] java.lang.Thread.Stat...

Cannot create PoolableConnectionFactory (Access denied for user ''@'localhost'

Hi there, I have been trying to set up a DatabaseConnectionPool for a web app for the last couple of days with no success. I have read the relevant sections of the Tomcat docs and a great deal around the subject and think I'm doing everything right, but obviously not because I keep on getting the following error: Cannot create Poolable...

tomcat shuts down if the jdbc driver jar is not found

why does it do that? has anybody seen that behavior? we are using tomcat 6.0.29 ...

tomcat closed when i open visualvm_profiler

i run tomcat6 by doubleclick on startup.bat on win2003 . then i open up visualvm1.31. I went to the profiler tab, and press memory, then i can statement on tomcat log, "...cache" then suddenly tomcat shutdown itself, there is no error message. anyone experience this? visualvm application status: terminated ...

Using JNDI to access a DataSource (Tomcat 6)

Hi there, I have been trying to set up a Database Connection Pool for my test webapp just to learn how it's done really. I have managed to get a DataSource object connected to my database which supplies me with Connection objects now, so that's good. I must admit I don't really know exactly how it's working. I wrote some test code to s...

Has anyone succesfully got Tomcat running via Spring OSGi Web in ServiceMix4?

We've been using Fuse's Apache ServiceMix version 4.2.0-fuse-02-00 for a while now for standard OSGi applications and have been fairly successful. We've also been leveraging CXF for making web services available. Now we'd like to deploy our webapps to servicemix4 and leverage the OSGi layer for dependencies and services. However it seem...

tomcat and his classpath manager

hi, if deploy on tomcat myapp.war contains two lib (lib1.jar and lib2.jar), which contain both a.b.c.MyObj which one chooses at the time of the creation of MyObj ? ...

Apache Tomcat 6 session swap

I have a website running on Apache Tomcat 6.0.26. Each user has his own profile. Several days ago one user changed his profile, but another user's profile has been changed. This thing happened only once in 3 month. Is there any problem with sessions(session was swapped or something like that)? ...

Tomcat 5: Getting juli exception during tomcat load

Hi, While I start tomcat, I am getting the following exception. Could you let me know the reason. Here is the complete stacktrace. java.lang.ClassNotFoundException: org.apache.juli.logging.LogFactory at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1438) at org.apache.catalina.loader.WebappClassLoader.lo...

Why is one of the combo boxes empty when I open the same application in two windows?

I am working with icefaces for 3 months. Now I am facing concurrent issues when I open the same application in 2 windows at the same time. For the 1st window values for combobox are coming properly, but for the 2nd window the combo box is empty. I am using IE6, Apache Tomcat 6 and Icefaces 1.8. I also made com.icesoft.faces.concurrentD...

Tomcat not shutting down cleanly due to daemon threads

We run our web application wehre we start some Threads for background work and also Quartz. When I try to shutdown tomcat(using shell script on linux), I always get the error saying failed to shutdown tomcat due to daemon threads and Quartz threads. We have tried different ways to shutdown our threads (exit out of run method) but we rely...

tomcat 6 custom property resource

1) modify $CATALINA_HOME/conf/context.xml with this line <Environment name="testValue" value="hello world" type="java.lang.String" override="true" /> 2) add this in web.xml of new web-app <resource-env-ref> <resource-env-ref-name>testValue</resource-env-ref-name> <resource-env-ref-type>java.lang.String</resource-env-ref-type>...