tomcat6

C3p0 connection pooling for jpa in persistence.xml not working?

I'm still getting JDBC timeouts after trying to configure c3p0 following all of the examples I could find. I'm using JPA, Hibernate, Tomcat, MySQL [AWS RDS]. Here's the snippet from persistence.xml: <property name="javax.persistence.jdbc.url" value="jdbc:mysql://url..." /> <property name="javax.persistence.jdbc.driver" value="com.mysql....

Multiple Tomcat Instance that runs as a service

I have an existing Tomcat Installation that is running on production mode right now. It runs as a windows service. What I want is to add another tomcat instance but points to a different port but they both resides in the same Server Machine. Can this be done without having to shutdown the other instance. I browse the web and I see som...

Tomcat Auto Deploy Feature is this good?

Hi All, Tomcat newbie here... I downloaded and setup my Apache Tomcat 6 in our production server. I then started it to see if its running nad found out that its okay. It runs and then I place my project war file there. I am about to restart the tomcat service when I notice that that my web archive file was already unzipped and my pro...

Deploy "exploded" folder to Tomcat in Eclipse

I just installed Eclipse for Java EE developers, Created a New Project by checking out files through SVN from a repository. I was able to successfully generate an "exploded" web app folder through an ANT build. How do I deploy this exploded folder (not .war file) to Tomcat? Any configuration that needs to be done? Thanks. ...

What to do when tomcat stops responding but access denied to jstack and jmap?

Does anyone know any reason why tomcat might stop responding or any way I can find out why this is happening? Tomcat seems to run fine for many weeks before falling over but it has happened a few times now. I have seen this question http://stackoverflow.com/questions/3063073/tomcat-6-hangs-after-a-few-hours which seems to be the same p...

Jetspeed 2 with Tomcat 6 on Windows 7 does not forward after logon

I have a Jetspeed 2 portal instance that runs on Tomcat 6.0.29 in a Windows 7 machine (used to work on XP). The portal login succeeds but it does not forward to the logged in view. Has anyone encountered this issue? If yes, do you have a fix/ workaround for it TIA ...

Why does tomcat replace context.xml on redeploy?

Documentation says if you have a context file here: $CATALINA_HOME/conf/Catalina/localhost/myapp.xml it will NOT be replaced by a context file here: mywebapp.war/META-INF/context.xml It is written here: http://tomcat.apache.org/tomcat-6.0-doc/config/context.html Only if a context file does not exist for the application in the $...

loading a variable spring applicationContext.xml file based on a property specified outside of the app war file?

I have a need to change the spring applicationContext.xml file that is used based upon a property, this property MUST be defined somewhere outside of the war file (ie. it can't be in web.xml). Currently, I've arrived at the following solution (see my answer below), wondering if there's a better way to do this? ...