Hi All,
I have a single Tomcat instance containing a number of webapps, each accessible via it's /Context. Tomcat is behind httpd (actually Debian Apache2), configured with virtual hosts to serve each app/Context. Tomcat connectivity is with mod_jk.
This works fine when I don't care about removing the context from urls: when the root ...
Hey,
I'm running eclipse with tomcat 5.5. For some unknown reason from one day to the other eclipse stoped compiling my beans and java files that are in the source folder.
If I go to the work directory, I find all the JSP compiled, the folders of the packadges i have, but no classes compiled inside of them. Neither eclipse, nor tomcat ...
I have web application, which was designed and always worked under root context ("/"). So all css, js and links started with "/" (for example "/css/style.css"). Now I need to move this web application to some different context (let's say /app1). It is easy to change server.xml configuration file and bring up web application in new contex...
I have been trying to figure out a way to create shared Hibernate session service on Tomcat 6.
basically, I need to have this service: 1. to be re-deployable (which exclude the JNDI service); 2. all the web applications can share the same Hibernate sessions (cache). The Tomcat class loading mechanism seems make sharing the db sessions im...
What files do I need to have to deploy a GWT web app to Tomcat, preferably in a War?
Can't quite distinguish if Build.xml is actually needed when there is already a 'war' folder when you create a new app via the wizard in Eclipse.
Can someone advise?
...
I am looking for a way to programmatically set Java Options for Tomcat 6.0 running as a Windows service. When using startup.bat and shutdown.bat, you can set these variables in a setenv.bat or catalina.bat file. However, for Tomcat running as a Windows Service, these options must be manually set in the Java Options section of the config...
The default is www/webroot. Where may I set the path so that my localhost points somewhere else?
...
Hi,
I'm generating a custom Word documents in my web application using the .mhtml format. Previously this was working fine. I assemble the document and write it to a directory then give a link to the file (with a .doc extension). Recently my template has changed to include embedded images. Now when I attempt to save and open a file fr...
Hello i have a java backend running on tomcat. java creates a .txt File that is saved locally in the Webcontent Folder. But the file is not found on the client side, altought it exists on the Webserver. After a refresh of my java workspace the file is found. Is there a way to tell tomcat to refresh / redeploy using java?
greetings!
...
Hi
I am creating a signup application with validation and Captcha (using SimpleCaptcha). I am able to deploy my application on localhost and everything works perfectly inclusive of the captcha.
But when deployed the war file to a test server, my captcha is not working, and here's an output from the log file:
org.apache.catalina.core.S...
I'm building production configuration where 2 tomcats are sitting behind the apache with load-balancer and mod_proxy. What I need is the script which checks whether particular instance of tomcat is running. The problem is I use AJP connector in tomcat. Is it possible to issue HTTP request to apache somehow that I make sure only needed in...
How can I get the name of the current web app in J2EE?
I'm quite comfortable with stand-alone Java, but J2EE is new to me. I'm writing some custom code to plug in to a third-party J2EE reporting package. I have multiple instances deployed on the same Tomcat server, so I have something like:
C:\
+-- tomcat6
+-- webapps
+-- ...
I am using tomcat 6 and I have two webapps. One is webapp1 and the other one is webapp2. From a filter inside webapp2, I am trying to access the other webapp i.e webapp1. My Filter code is something like below
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {...
I have a few tomcat applications, deployed in tomcat using .war files. Even though these wars are separate from each other, they are all part of a larger concept / application, and quite often, one war needs to call code from another war.
Let's say I have 2 .wars, "a.war" and "b.war"... I would like to be able to use some classes found...
OK, I'm completely stuck. I want to run Tomcat in embedded mode so I can test an application without running the server in a separate process. I'm missing something simple, stupid, and important, and I need your help to see it.
This test fails with an HTTP error 400, Bad Request. I've tried MemoryProtocolHandler, context.invoke(), ... I...
I am using tomcat 5.5 and I want to do the following:
If two web applications are deployed (let them be foo and bar) I want to be able to access them both with relative paths and by aliases.
localhost:8080/foo -> foo and foo.example.com -> foo
and respectively
localhost:8080/bar -> bar and bar.example.com -> bar
If I use dif...
I configure a default tomcat installation (running on "localhost" at port "8080") as a proxy server in my browser and try to connect to http://www.google.com.
I would expect either an error message saying tomcat is not configured as a proxy server or I should get the contents of google website.
Instead I get the index.html page of my t...
Hi
I'm pretty new to JWS.
I have a web application ( several web services ) that I want to deploy using tomcat 6.0.20 on a linux system.
Everything's ok if I generate a .war file with all used libraries inside and put it in the webapps directory, but I want to have these jars shared, and the .war file itself is way too big.
First I t...
I've set up a host with apache to serve static pages and to use Tomcat to serve my web application (See this question). The static pages are server from
"http://myhost.com"
and the dynamic (tomcat) pages are server from
"http://myhost.com/myapp"
The mod_proxy makes sure the "http://myhost.com/myapp" are forwarded to tomcat server run...
I am simulating ajax file download using iframe, the request goes to tomcat app(servlet) for a file download which is a time consuming process(might take more than 1 min), the issue is that after certain amount of time, either tomcat or the browser client terminates the connection. see Tomcat exception below. who is terminating it, cli...