tomcat

Convert IIS / Tomcat Web Application to a multi-server environment.

I have an existing web application built in .Net, running on IIS that leverages a java servlet that we have running on Tomcat 5.5. We need to scale the application and I'm confused about what relates to our situation and what we need to do to get the servlet running on multiple servers. Right now I have 4 servers that can each individu...

How to have a Tomcat WebApp auto deploy sub services?

I've written a service framework using Hessian and want to keep URL's common but the flexability of auto-deploy. If i deploy a Service.war I can access it fine using /Service however, I want a general spot for all services. How could I have a seperate context where all services live and get auto-deployed. Exactly like how axis2.war do...

Tomcat 6.x JDBC realm, classpath for driver problem

I've set up a JDBC Realm in my META-INF/Context.xml as shown below, and that works. The trouble is the JDBC driver now have to be placed under $CATALINA_HOME/lib/ Is there any way I can get that realm to load the jdbc driver from elsewhere, such as WEB-INF/lib/ in my webapp ? META-INF/Context.xml <?xml version="1.0" encoding="UTF-8"?>...

mvn tomcat:run doesn't start Tomcat

Hi all, I am trying to deploy and run my webapplication using maven and its tomcat plugin. I have set it up in project's pom.xml, but when I'm calling it from command line: mvn tomcat:run all that I get is: [root@ovz6022 trunk]# mvn -e tomcat:run + Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] ------------...

Access to Tomcat from remote PC

Hi, I've developed a web application using servlet and tomcat. When I try to use this application from the server everything is rigth (i.e. http://localhost:8080/app_name/init.html). However I'm having a hard time trying to access to this application from another PC. The server PC and client PC are connected using a router, there are n...

Tomcat is not starting

Hi, I'm facing the problem of not able to start my Tomcat 5.5. I've already deinstalled and installed it, but it is still not able to start. Whenever I click on tomcat5w in bin folder, it stops in the middle, instead of starting completely. Could anyone please tell me what problem I'm having, and how can I solve it? ...

Why is my Tomcat server restarting and what is org.apache.catalina.core.AprLifecycleListener?

I'm trying to figure out why my web app (I didn't write it, but I'm supposed to debug it) is consistently causing the Tomcat web server to restart. All I see in the logs before the server restarts is: Jul 24, 2009 7:52:15 AM org.apache.catalina.core.AprLifecycleListener lifecycleEvent INFO: The Apache Portable Runtime which allows opti...

Tomcat Server/Client Self-Signed SSL Certificate

I have an Apache Tomcat 6.x server running with a self-signed SSL certificate. I want the client to present their own certificate to the server so I can authenticate them based on a database of users. I have it all working based on an example I found online, but the example came with canned certificates and a pre-build JKS datastore. ...

ProxyPass, ProxyReverse vs AJP

I currently have a Tomcat + Apache HTTP server setting to serve my Java servlet: ProxyPass /myservice http://localhost:8080/myservice ProxyPassRerverse /myservice http://localhost:8080/myservice This is all fine except that myservice needs to know the client IP address, which always turns out to be 127.0.0.1 due to the proxy. Is there...

Problem in running Classic tag handler

Hi, I want to display the body value of JSP in custom tag name Simple from the tag handler by extending the class, BodyTagSupport, but getting a runtime exception ;o) The JSP code is: <html><body> <%@ taglib prefix="mine" uri="simpleTags" %> Advisor page <mine:simple> Balle Balle </mine:simple> </html></body> and the Tag handler cl...

Deploy definition confusion

Hi, what's the exact meaning of the word "Deployment" in case of Tomcat. Is it just putting any Servlet or JSP file in the web app folder correctly, or I'm still forgetting anything important here? ...

Tomcat: playing audio

Hi, I've develoved a web application. One of the options of this application is to play audio files that have previously uploaded to the server. I'm trying to do that using the following code: <object id="MediaPlayer" type="application/x-oleobject" height="42" standby="Installing Windows Media Player..." width="138" align="absMiddle"...

Servlet context scope vs global variable

What (if any) is the difference between storing a variable in the ServletContext and just having it as a public static member of one of the classes? Instead of writing: // simplified (!) int counter = (Integer)getServletContext().getAttribute("counter"); counter++; this.getServletContext().setAttribute("counter", counter); Why not ju...

A question about java web apps and X-REAL-IP header.

I'm setting up a demo of a project for a client. On my server I have a lot of sites built with different technologies that are running under different servers on different ports. I'm using nginx as a reverse proxy for all of them. This particular application is built with java (spring MVC / Blazeds) and will be deployed under tomcat 6 fo...

How to configure Tomcat to run an Google App Engine + GWT application on Mac OS X?

Does anyone know a good tutorial on this? What Tomcat version must be used? ...

Log4j Maxfilesize

Hi, Problem i have with log4j is that when i specify maxfilesize it works properly for the files generated in the src folder of project, but the log files generated in tomcat bin, are not splited into seperate files and then i have a large log file which is not desirable. The following is log4j.xml: <?xml version="1.0" encoding="UTF-...

Turn off tomcat logging

I want to turn off tomcat's logs jvm.stderr and jvm.stdout which have been set in the wrapper.properties, I've commented these lines out but that just redirects the logs to be written to the root tomcat folder. The reason for turning them off is that these logs do not seem to have any sort of size control so I have a situation where th...

JSP compilation to string or in memory bytearray with Tomcat/Websphere

I am doing conversion to image and PDF output. I need an input HTML document that is generated by our application JSPs. Essentially, I need to render the final output product of a JSP based application to a String or memory and then use that string for other processing. What are some ways that I can just invoke the JSP renderer to get...

How can I deploy multiple wars using the tomcat plugin in maven?

I have two wars which I deploy in two maven projects using tomcat plugin. I want to do this in one step and be able to deploy more than one war in a single maven project. How can I do this? any suggestions? ...

trying to start a tomcat from eclipse and it failed to find index.jsp

type Status report message /mydirectory/index.jsp description The requested resource (/mydirectory/index.jsp) is not available. What could be the issue? Here is the log file: Jul 28, 2009 6:16:25 AM org.apache.tomcat.util.digester.SetPropertiesRule begin WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting proper...