Tag Archives: tomcat

Tomcat email notification upon deployement

Questions: Wondering is there is a way to generate notification when an application is deployed on Tomcat 6. Right now we use Tomcat Manager web interface to deploy our applications. We have two tomcat instances working in a load balanced mode with Apache in front of them. Would highly appreciate if anyone can throw more… Read More »

Tomcat keeps asking for password and username

Questions: Hi I am not sure I am trying to connect to apache server, this is a class I am taking, but now after I removed the code and restored it back to default, it keeps asking for the password now. This is what I have in my tomcat-users.xml <?xml version=’1.0′ encoding=’utf-8′?> <tomcat-users> <user username=”ide”… Read More »

Vaadin, Tomcat 7 with Nginx as Reverse Proxy

Questions: I am trying to use Nginx as a reverse proxy for a Vaadin application hosted on Tomcat 7. The config file is as follows: server { listen 80; server_name myApp.foo.bar; root /var/lib/tomcat7/webapps/myApp; location / { proxy_set_header X-Forwarded-Host $host; proxy_set_header X-Forwarded-Server $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_pass http://localhost:8080/myApp/; } } When accessing the Vaadin application I… Read More »

Tomcat include another xml file to web.xml

Questions: Hello everyone, Since I have lots of servlet mappings in my web.xml I was wondering if I could actually store all the mappings to separate file and then include it to web.xml. servervlet-mapping.xml <servlet> <servlet-name>red</servlet-name> <servlet-class>Test.Red</servlet-class> </servlet> <servlet-mapping> <servlet-name>red</servlet-name> <url-pattern>/blue</url-pattern> </servlet-mapping> <servlet> <servlet-name>blue</servlet-name> <servlet-class>Test.Blue</servlet-class> </servlet> <servlet-mapping> <servlet-name>blue</servlet-name> <url-pattern>/blue</url-pattern> </servlet-mapping> web.xml <include file=”servlet_mapping.xml”/> This way… Read More »

Mapping a specific servlet to be the default servlet in Tomcat

Questions: I am trying to implement a servlet that gets raw requests, and decide either to process them, or forward them to another backend server. It is similar to a load-balancer, where a received request is forwarded to one of the (in my case 2) destinations. One of the destination is remote (on another host).… Read More »

Tomcat and java SDK problem

Questions: I am trying to create a new dynamic web project in eclipse (in ubuntu). When I point to Target Runtime as Tomcat V 7.0 , I get the below warning runtime “Apache Tomcat v7.0” is invalid. Tomcat requires a Java SDK in order to compile JSP files. Ensure that the JRE preference settings point… Read More »