Skip to content

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 pa…

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

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