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...
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...
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"?>...
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] ------------...
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...
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?
...
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...
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. ...
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...
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...
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?
...
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"...
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...
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...
Does anyone know a good tutorial on this?
What Tomcat version must be used?
...
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-...
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...
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...
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?
...
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...