tomcat

java tomcat web application war update for critical system

web application update best practice.. normally how you folk do web application update from large critical system? do u forward user to page stating upgrading in progress on another web server; quickly deploy new war and point back ? can provide some guides.. ...

Tomcat configuration

Well I had Tomcat 6 up ad running for a long time and then all of a sudden I started getting this error message when I try to go to this page: http://localhost:9090 Method GET not implemented (try POST) Update: after changing my port to 8780 and accessing http://localhost:8780 I just get this in Firefox: Unable to connect I have no i...

"Disabled use of AcceptEx() WinSock2 API" error on Windows 7 using Tomcat

When starting Tomcat 6 on Windows 7 Enterprise with JRE 6 using C:\Program Files\Apache Software Foundation\Tomcat 6.0\bin\tomcat6.exe the application does not open and my event viewer has the message: "Disabled use of AcceptEx() WinSock2 API." The same installer of Tomcat worked on Windows Vista before I upgraded my operating system. ...

Is it possible to reload log4j.xml / log4j.properties file dynamically in Tomcat?

The problem is, whenever you change the log4j.properties/log4j.xml, you need to restart the tomcat [ or say any other server ]. Is there any workaround of reloading the log4j configuration? ...

How to use a jar that uses Spring in common lib?

Hi, I'm really new to Spring and I'm not sure if I'm doing it the right way. Here's my prob : I've exported a jar which uses Spring 2.5 to inject dependency to a class in another project called "business". There's an accessor which uses ClassPathXmlApplicationContext to get the bean. I've placed that jar in the common/lib of JBoss 4.2....

How does eclipse deploy web applications using WTP?

I have a web application (war file). When I deploy it through eclipse 3.5 using the WTP tools, I am able to start the tomcat server from within eclipse and view all the pages of the application. However I don't see my war file inside the webapps folder of tomcat home directory (or for that matter its exploded format). I was under the imp...

How can I deploy war in Tomcat 6

I have used Jboss and deployment happens by dropping war to deploy folder. But when I set my war project to Tomcat server eclipse claims that it is deploying war, but I cannot see my war in webapps folder. And what url is to my war? In jboss I can add app url to jboss-web.xml, so when I set app path to jboss-web.xml I can find my app fro...

How to get an Axis2 Web Service to print to the Tomcat logs

Hi all, I'm managed to get the userguide/example1 echo web service working for Axis2. However, to validate that the changes I make to the service are actually working, I would like to print something to the tomcat console. So far, it hasn't worked, using a simple System.out.println("xyz"); I grep the logs and it's not there. Also, I'm ...

Tomcat CLASSPATH

I have a very annoying problem: My project (JSP, Servlet) requires Xerces-J 2.8.1 or higher. But on our server (Tomcat 5.5) xerces 2.6.2 always comes up first and that results in a severe error. I checked $CLASSPATH and did some clean-ups. However, xerces 2.6.2 is still there. Could anyone tell me how to know where this xerces 2.6.2 is...

Configuring Grails Access Logging from run-app

Since calling run-app uses the tomcat-plugin in grails, how do I modify the grails AccessLogValve in the server.xml when it does not exists? I only need this for development since in production I will just deploy the war to tomcat. Thanks In Advance ...

Tomcat virtual host

I have server with Apache webserver with mod_jk2 Tomcat and 2 domain : aaa.com and bbb.com aaa.com is used Apache webserver,mod_jk2 is running good. bbb.com is struts application, so it must use Tomcat I config aaa.com in Apache is OK now. But how can I config virtual host for bbb.com to run in Tomcat. Please help me, Thanks all. ...

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...

jsps on Tomcats

Hi I have inherited a bit of a messy project in my workplace. It currently runs on Websphere 6.1 but i want to move to Springs TC server offering. 1 particular page in the application is over 2000 lines long (a bit of a mess i know) When i try to access the page on TC server, i get a jasper exception and it complains it cant find the p...

Tomcat, Groovy and clean urls

I'm trying to get Groovy running inside Tomcat with clean urls. Since my knowledge of Tomcat's url mapping and filters is quite limited, I'm running into a brick wall. What I'd like is to create a front-controller called index.groovy that handles all incoming requests. The problem is that I can't seem to figure out how to create the cor...

Official reasons for "Software caused connection abort: socket write error"

Given this stack trace snippet Caused by: java.net.SocketException: Software caused connection abort: socket write error  at java.net.SocketOutputStream.socketWrite0(Native Method) I tried to answer the following questions: What code is throwing this exception? (JVM?/Tomcat?/My code?) What causes this exception to be thro...

Login form to an a secured app in tomcat

I have a normal HTML page in a normal Apache http server (http://yyy.yyy.yyy.yyy/index.html ), with an authentication form, with that form I need to access with the credentials to an application located in other server with diferent IP , that server have a secured application with tomcat: here is the login form in the apache http server:...

BlazeDS Servlet not responding through Proxy

Hi everybody, I have a problem using Flex with BlazeDS on a Tomcat 5.5 through a Proxy (Apache). I already searched for it but didn't find answers which solved my problem. I hope you guys can help me out. :-) Our scenario is the following: Flex-App using BlazeDS to communicate with our Dataservice on a Tomcat 5.5. The Webapp is balze ...

Apache axis error cannot find services.xml

When I try to restart the apache tomcat server it throws the error. org.apache.axis2.deployment.DeploymentException: The services.xml file cannot be found for the service: {0} The wsdl generated is actually blank and only contains the description from the services.xml file which does indeed exist under META-INF. I am using eclipse,...

Installing Tomcat for my Mac Local Environment...

I need to install Tomcat on my local mac environment. Only tutorials I am finding are from some time ago. Running Snow Leopard. Anyone know of any good resources for this? ...

My java web server works in eclipse but it crashes every time if ran through the command line

I have a VERY simple web server that does accepts client connections, retrieves static web pages and services servlets. I wrote the web server in Java and I'm using the tomcat library for servlets. I tested all my code by running it in the eclipse IDE and everything works fine, but when I run my code through the command line it starts ...