tomcat

How to view live database connections in a databse pool?

Hi, We use database connection pooling for our java application. It is a web app run under tomcat. I want to view live connections in the pool as they are created and destroyed. Can somebody please help? UPDATE: We are using Oracle 11g. We use DDConnectionBroker library for connection pooling. ...

How to make custom 404 page be a forward, not a redirect in Tomcat

I've got a Spring MVC app served in Tomcat. When the user enters a page that isn't found, it displays my default 404 page, as set in web.xml <error-page> <error-code>404</error-code> <location>/errors/404/</location> </error-page> The problem is that if the user goes to http://mydomain/bad/url it is redirected to http://mydoma...

Hudson server always stopped every morning day ?

Hi Everyone, I've got this regular problem every morning that my build server (Hudson) is always stopped every morning so I have to manually start it, is there any reason why or any location that i can started to look for the error message ? Thanks. here's the error diagnostic that i did: ascari:~# ps -ef | grep -i hud root 595...

HTTPS login not saving the JSESSIONID in a cookie

We recently changed our login to use HTTPS, and we are experiencing issues with the login. After the login, the user is redirected to an unencrypted (HTTP) page. When it reaches this page, the site checks if the user is logged in. It creates a new session and it appears that the user is not logged in, and thus our user is redirected to ...

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...

How to wrap an object change in my own transaction and incorporate it with Hibernate to JTA?

I have a web-app, which I deploy on Tomcat 6 and it uses Hibernate. It receives messages on a JMS queue which trigger changes both to my DB, via Hibernate and to an Object of mine (Agent). The web-requests also access the DB, via Hibernate, and access the shared object (there's a ConcurrentHashMap<AgentId,Agent> held by a singleton). My ...

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...

java/GWT web app : how to get a callback on Session Timeout

We have a GWT app that is deployed on Tomcat. On the server, we have set a timeout of 1 minute httpSession.setMaxInactiveInterval(1*60) At the client-side, we set a few cookies with a timeout value of 1 minute as well. After 1 minute, we notice that the client-side cookies are removed; However the JSESSIONID set by the servlet contai...

setting LD_LIBRARY_PATH using tomcat's setenv.sh script

I can't seem to get tomcat to properly set environment variables. I can run my .jar normally with my LD_LIBRARY_PATH set to the correct place, it finds my external libraries just fine. If I unset LD_LIBRARY_PATH and run the jar I get the error: java.lang.RuntimeException: Native code library failed to load: ensure the appropriate l...

TomCat jBoss Application

I have a .war(web app) deployed on Tomcat server. I have another application on jBoss server. The application on the Tomcat is the start point and a jsp on the jBoss server gets called from the Tomcat app. Then I am planning to set a session on the jBoss server app and when I am done my processing on the jBoss I will send back the contr...

how to resolve OCI-04030 ?

how to resolve OCI-04030 ? OS : window 7 32-bit web server : tomcat 6.0 ...

How does Tomcat find the HOME PAGE of my Web App?

I am just getting started to learn about Web Apps and deploying them to Tomcat. So I started with a sample web app project - made up of struts, hibernate, etc., etc. The ANT build was successful. Also, was able to deploy the web app through an xml under Catalina/host. I am able to open the web site with no issues. This is the structure...

Tomcat manager/admin apps on multiple $CATALINA_BASES

A couple of queries regarding the Tomcat manager and admin apps. I have tomcat no a development area configured to run multiple catalina bases. Basically each user has their own $CATALINA_BASE and can do their own delopment or testing on their area. The directory structure is currently as follows Env1 - $CATALINA_BASE - /u/tomcatenv/u...

Tomcat 7 session cookie path

Hi guys, I'm having a huge problem with my application and Tomcat 7. My application needs to set session cookie to "/" path instead of "/context" path. In tomcat 6 it was a matter of adding another property to Connector (emptySessionPath="true") and Tomcat 7 doesn't recognize this thing. I know that Servlet 3.0 spec allows to configure ...

JSTL C taglib on Tomcat 5.0

Hi, I'm using the jstl c taglib in a web application which I deployed on Tomcat 6.0.26. I need to run this web application on Tomcat 5.0.28... the problem is that the jstl tags are not being interpreted. For example, I'm getting ${status.errorMessage} written on my login page whereas this should be empty unless the password entered is ...

Dynamic Web Module option in Eclipse

Hi, Could someone please explain the purpose of this option and what exactly it is for. It looks like the default is on my eclipse installation is 3.0 but it wont run on a Tomcat 5.5 server and probably not Tomcat 6.0 Is it related to the servlet spec that the Tomcat server supports? If so which version do i need to use for Tomcat 5....

How to direct AudioData from Red5 to Sphinx4?

I'm starting to learn about Red5 and java servlets. I have some background in java but most of my web development is in .Net. What I aim to do is use red5 to stream microphone input to a speech recognition engine, Sphinx4 in this case. Sphinx4 recognizer uses a StreamDataSource to get an InputStream with audio features such as sample ...

How can I deploy my war file on a shared host?

I have a web application I would like to deploy on a shared host. I have absolutely no possibility to manually start the server and deploy my webapp like I would do when I deploy it to localhost. I tried unpacking the WAR file and uploading it to the server, it won't work, it won't even show me my jsps like it's supposed to. Any help wou...

Intermittent Tomcat ClassNotFoundException for some jsp pages

Hi guys, We have two tomcat servers load-balanced behind apache. Several times now we'e gotten reports of a 500 error on a page. Checking shows the following error, but only on one of the tomcats: java.lang.ClassNotFoundException: org.apache.jsp.jsps.userLogin_jsp at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at j...

A tutorial on creating standalone web service under windows using Java opensource serverlet engine like TomCat

I need a tutorial for creating simple, executable web service runing stand alone on windows... So like .exe that can run on any windows with JRE installed and will open port like 4444 and will listen to http(s) calls and respond to them. Tutorial can use Spring and Hibernate and any other OpenSource libs. Tutorial can use any opensource ...