Skip to content
Advertisement

Tag: tomcat

How to auto start apache tomcat server

I can view the webpage after deploying the war file.when i open the page for next day i cannot view the page again after restarting the apache tomcat server the page opens. Answer You must have shut down the machine. When you come on next day and access the same URL then you won’t be able to see that page.

cannot access files in appbase’s subfolder in tomcat

I have a very simple Tomcat web app. This app is deployed to ${catalina.home}/webapps/myapp. Under myapp there are two folders: 1. WEB-INF – contains a single web.xml file with bare minimal content. 2. document – contains a folder called data. My goal is to access any files under document folder. Now I can access files under document folder without problem.

ServletContextListener SEVERE: Error configuring application listener of class marktest.Config

My Java servlet appears to be complaining that it can’t find a file which is included in the package (marktest). Im using Eclipse (Indigo) to develop and Tomcat7. Here is the error: Here is Config.java which contains the class implementing ServletContextListener which it says it can’t find in the error: and here is web.xml I’m rather stumped even after much

How to add Tomcat Server in eclipse

I just installed Java EE plugin in plain eclipse and I am trying to add tomcat server. I opened add new server which showing “Choose the type of server to create” but there is no server list. How can I add tomcat server? Eclipse: Indigo. Answer Do as this: Windows -> Show View -> Servers Then in the Servers view,

how to start stop tomcat server using CMD?

I set the path for the tomcat and set all variables like JAVA_HOME=C:Program Files (x86)Javajdk1.6.0_22 CATALINA_HOME=G:springworkserverapache-tomcat-6.0.29 CLASSPATH=G:springworkserverapache-tomcat-6.0.29libservlet-api.jar;G:springworkserverapache-tomcat-6.0.29libjsp-api.jar;.; When I go to bin folder and double click on startup.bat then my tomcat starts and when I double click on shutdown.bat tomcat stops. But I want using CMD start and stop the tomcat. And in any folder I write command startup.bat the

How to clean up ThreadLocals

Does any one have an example how to do this? Are they handled by the garbage collector? I’m using Tomcat 6. Answer The javadoc says this: “Each thread holds an implicit reference to its copy of a thread-local variable as long as the thread is alive and the ThreadLocal instance is accessible; after a thread goes away, all of its

Advertisement