tomcat6

FAIL - Application at context path /Hello could not be started

I'm trying to deploy new web application in Tomcat 6.0, but whenever I click on start button, I repeatedly getting FAIL - Application at context path /Hello could not be started. Other deployed application running fine, whenever I click on start button. But why not this application? web-xml: <web-app xmlns="http://java.sun.com/xml/ns...

Tomcat6 in Debian?

Could someone explain the status of Tomcat6 in Debian to me? My confusion arises from the fact that I can only find a "source" package in Lenny (the stable release) and a "normal"(?) package in Squeeze (testing release). Applicable links: http://packages.debian.org/source/lenny/tomcat6 http://packages.debian.org/squeeze/tomcat6 What i...

Problem updating existing webapp in Tomcat 6.0.20.

In Tomcat 5, I would build a WAR file and place it on my test server. On this server there was a my-app.xml file in the CATALINA_HOME/conf/[EngineName]/[HostName] directory that pointed to my test database. Once I finished testing, I would send the WAR file to my clients IT department and they would put the file in the CATALINA_HOME/weba...

Tomcat 6 Heap Size - Is this correct?

I am running multiple tomcats on a Red Hat box and I would like to configure separate heap size for each of them (some instances use more memory). Can I set the heap size min/max bt entering the following into the catalina.sh file: CATALINA_OPTS="-Xms64m -Xmx256m" Do I need add 'export'? i.e. export CATALINA_OPTS="-Xms64m -Xmx256m" ...

Prevent access to certain webapps in Tomcat6

I asked this on server fault but really havent had much luck, hoping that someone here would be able to offer some advice... I have a Tomcat 6 server running just fine. I have external access working. I wanted to know how to prevent someone from seeing specific webapps, for example, I dont want external access to the ROOT tomcat page. H...

Tomcat6 - 2 wars, 2 hosts

Hi, I have 2 war files app1.war and app2.war. I have 2 hostnames domain1.com and domain2.com. I have one desk top running ubuntu and tomcat6. I would like to know how to configure tomcat to serve app1 for domain1.com and app2 for domain2.com. Thanks in Advance. Regards Gireesh ...

Identify cause of hundreds of AJP threads in Tomcat

We have two Tomcat 6.0.20 servers fronted by Apache, with communication between the two using AJP. Tomcat in turn consumes web services on a JBoss cluster. This morning, one of the Tomcat machines was using 100% of CPU on 6 of the 8 cores on our machine. We took a heap dump using JConsole, and then tried to connect JVisualVM to get a pr...

Can I get Tomcat running as a service to dump heap?

I am attempting to have Tomcat, which is currently running as a service on a Windows 2003 box, dump heap on an OutOfMemoryError. (Tomcat is running Hudson, which is reporting a heap space problem at the tail end of my build. Running the build manually produces no such error. The Hudson guys need a heap dump to get started.) As instru...

Tomcat6 can't connect to MySql (The driver has not received any packets from the server)

Hi all, i'm running an Apache Tomcat 6.0.20 / MySQL 5.1.37-lubuntu / sun-java6-jdk /sun-java6-jre / sun-java6-bin on my local machine using Ubuntu 9.10 as OS. I'm trying to get a simple DB-query example running for 2 days now, but i still get this Exception: org.apache.jasper.JasperException: javax.servlet.ServletException: javax.serv...

Threaded access log replayer for Tomcat?

Hi, Suffered a "DOS" attack, which brought down my Tomcat 6 server by issuing numerous GET requests. I would like to replay the access file, preferably with multiple threads. Anyone know a good tool, or do I need to write it myself? ...

How do you install Tomcat 6 as a service using the Wix ServiceInstall Tag?

How do you install Tomcat 6 as a service using the Wix ServiceInstall Tag? Is there a way to do it, or do I need to use a custom action to call the executable or batch file that comes with it to install the service? ...

tomcat: how can i place parameters in web.xml and fetch them in my application?

Hiya. I would like to store db connection information in the application web.xml file and to fetch it in the application. i read somewhere that it's possible i just don't know how. any ideas? thanks! ...

Starting Tomcat 6 with only Manager App running

Is it possible to start Tomcat with only the Manger webapp running? I have multiple webapps in the appBase and don't want them to startup automatically at startup. If I set autoDeploy="false" deployOnStartup="false", I don't have access to the manager webapp on startup, because it is in the same appBase. I guess an alternate solution ...

URl Switching between subdomain

I have site say http://info.sys.com I want the info in the url to be replaced to knowledge.sys.com when i select knowledge tab in my website. info.sys.com should be replaced to knowledge.sys.com when i select knowledge tab. I use jdk 1.5 update 9 and tomcat 6.0.16 Looking forward for your reply. ...

revealing user's true WAN ip address using tomcat ssi

Hi. I read in some forum that the true ip address of the user can be revealed by using tomcat SSI technology. can someone please provide any information regarding the subject? how does it work? I'm still having problems understand what tomcat SSI is. using apache-tomcat 6. update I'm not trying to find his LAN ip. I'm trying to find ...

tomcat6 shutdown port not listening

Hi, I am running tomcat6 on ubuntu9, and i specified shutdown port in server.xml to 8005. When I do netstat -tln however, i cannot see port 8005 listening. I can do tomcat6 restart|start|stop no problem. Why is it not listening on port 8005? Thanks ...

tomcat: loading swf into page

Hi. what's the recommended method to load an SWF file in my page ? just to use HttpServletResponse.getWriter and to print with it the SWF object, or is there a more efficient method ? ...

exception while deploying spring app on tomcat 6

Hi all, I'm trying to make a simple web app using spring and deploying it on Tomcat 6. When I try to deploy it on the server, it gives me the following error. I'm unable to figure out if the problem is with Tomcat or my app. Feb 12, 2010 3:45:43 PM org.apache.tomcat.util.digester.SetPropertiesRule begin WARNING: [SetPropertiesRule]{Se...

Still cannot connect Tomcat 6 remotely via VisualVM

Hi, If checked the other questions regarding this issue but so far no soultion. Here is my setup: TC6 runs on a debian vm on my macbook. in /etc/default/tomcat6.0 I have following options set: CATALINA_OPTS="-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8086 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.manage...

Using EL 2.2 with Tomcat 6.0.24

With JSF 2 you should be able to do this: <h:commandButton action="#{myBean.myAction(myParameter)}"/> which would then call the action method, passing in the parameter (assume it's an Integer): @ManagedBean @SessionScoped public class MyBean { ... public String myAction(Integer myParameter) { // do something r...