|Servlet ClassNotFound exception [message #824625]
||Mon, 19 March 2012 18:11
| James Gartner
Registered: March 2012
I was going through the documentation on how to deploy a standard WAR file (virgo-Tomcat 3.0.2.RELEASE), and I used the admin web console to upload the war file.
All seems to be ok -- says started the bundle and the web bundle.
When I try to connect to this web app, I get that the service is not available, and in the log it has a ClassnotFound... salesController:
ERROR http-bio-8090-exec-10 o.a.c.c.C.[.[localhost].[/saleservice].[SalesController] Allocate exception for servlet SalesController java.lang.ClassNotFoundException: com.nnnnn.sales.SalesController
Well, looking at the directories, I see:
there IS the SalesController.class file. The web.xml is there, etc -- it all looks normal.
This war file does work if deployed to a stand-alone Tomcat server.
Any ideas what is going on and how to debug??
|Re: Servlet ClassNotFound exception [message #825442 is a reply to message #825250]
||Tue, 20 March 2012 17:06
| Violeta Georgieva
Registered: October 2010
Here is the warning message that the WABHeaders WAS changed:
WE0006W WABHeaders set to 'defaulted' in org.eclipse.virgo.web.properties. This option may not be supported in future releases.
I'll fix the problem with the plain web applications transformation. You can track https://bugs.eclipse.org/bugs/show_bug.cgi?id=354730
ERROR system-artifacts org.apache.catalina.startup.HostConfig Application base [C:\JavaApps\virgo-tomcat-server-3.0.2.RELEASE\virgo-tomcat-server-3.0.2.RELEASE\webapps] for host [localhost] does not exist or is not a directory. deployOnStartUp and autoDeploy have been set to false to prevent deployment errors. Other errors may still occur.
This is fixed with https://bugs.eclipse.org/bugs/show_bug.cgi?id=360571 in 3.5.0.M01. You should not worry, it's just a log. You can apply the fix on your system - it is in the tomcat-server.xml file.
It's great that everything is working now.
[Updated on: Tue, 20 March 2012 17:07]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02029 seconds