You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Thomas Vite <ac...@gmail.com> on 2009/07/16 10:02:05 UTC

java.lang.ClassNotFoundException & error 404

Hi all,

I just subscribed to this list as i am testing developing web services, i
hope i can find some useful tips.

I have installed Tomcat6 on my Win XP SP3 box and i have followed a tutorial
to create a first Tomcat project. I use a plugin in Eclipse called Sysdeo
supposed to ease the creation of the Tomcat container.

I have a simple .java (see below) file  and a web.xml file in my project. I
have made a war file and deployed it via the manager interface. I can start
it but i get an error 404 when i browse to it. The .java file relies on
external libraries (essentially the java SDK for vmware ESX).

I have two problems:

   1. When i try to access the manager website using the URL
   http://amsterdam-sm09:8080/manager/ i get a 404 error whereas if i browse
   to http://amsterdam-sm09:8080/manager/html the page displays correctly.
   2. If i try to browse my project i get a 404 error using this URL
   http://amsterdam-sm09:8080/viplugin_test/TestServlet

Here is the Web.xml file for the tutorial project:

<?*xml* version="1.0" encoding="ISO-8859-1"?>

<Web-*app* *xmlns*="http://java.sun.com/xml/ns/javaee"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://java.sun.com/xml/ns/javaee

http://java.sun.com/xml/ns/javaee/Web-app_2_5.xsd"

version="2.5">

<display-name>VI Client *Plugin* Demo *App*</display-name>

<description> VI Client *Plugin* Demo *App* with *Tomcat* and VI Java

API</description>]
*

<servlet>
*

<servlet-name>TestServlet</servlet-name>

<servlet-class>TestServlet</servlet-class>
*

</servlet>
*

<servlet-mapping>

<servlet-name>TestServlet</servlet-name>

<url-pattern>/TestServlet</url-pattern>

</servlet-mapping>

</Web-*app*>

The catalina log file shows that error (my app is called VI-PLUGIN-ILO):

Jul 16, 2009 9:37:25 AM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal
performance in production environments was not found on the
java.library.path: C:\Program Files\Apache Software Foundation\Tomcat
6.0\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\system32\WindowsPowerShell\v1.0;C:\Program
Files\VMware\Infrastructure\VIToolkitForWindows\Scripts;C:\Program
Files\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Microsoft SQL
Server\90\Tools\binn\;C:\Program Files\Microsoft SQL
Server\90\DTS\Binn\;C:\Program Files\Microsoft SQL
Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\apache\axis\bin;C:\Program
Files\Java\jdk1.6.0_14;C:\Program Files\Java\jdk1.6.0_14\bin
Jul 16, 2009 9:37:26 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Jul 16, 2009 9:37:26 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 9431 ms
Jul 16, 2009 9:37:27 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jul 16, 2009 9:37:27 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.20
Jul 16, 2009 9:37:28 AM org.apache.tomcat.util.digester.Digester
startElement
SEVERE: Begin event threw exception
java.lang.ClassNotFoundException: org.apache.catalina.loader.DevLoader
 at java.net.URLClassLoader$1.run(Unknown Source)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(Unknown Source)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at
org.apache.tomcat.util.digester.ObjectCreateRule.begin(ObjectCreateRule.java:205)
 at org.apache.tomcat.util.digester.Rule.begin(Rule.java:153)
 at
org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1358)
 at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown
Source)
 at
com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(Unknown
Source)
 at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown
Source)
 at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown
Source)
 at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown
Source)
 at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
 at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
Source)
 at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
Source)
 at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown
Source)
 at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown
Source)
 at
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
Source)
 at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1644)
 at
org.apache.catalina.startup.ContextConfig.processContextConfig(ContextConfig.java:789)
 at
org.apache.catalina.startup.ContextConfig.contextConfig(ContextConfig.java:732)
 at org.apache.catalina.startup.ContextConfig.init(ContextConfig.java:1009)
 at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:279)
 at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
 at org.apache.catalina.core.StandardContext.init(StandardContext.java:5398)
 at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4177)
 at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
 at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
 at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
 at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:630)
 at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:556)
 at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:491)
 at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206)
 at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314)
 at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
 at org.apache.catalina.core.StandardService.start(StandardService.java:516)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:583)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Jul 16, 2009 9:37:28 AM org.apache.catalina.startup.ContextConfig
processContextConfig
SEVERE: Parse error in context.xml for /VI-PLUGIN-ILO
java.lang.ClassNotFoundException: org.apache.catalina.loader.DevLoader
 at
org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2808)
 at
org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2834)
 at
org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1361)
 at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown
Source)
 at
com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(Unknown
Source)
 at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown
Source)
 at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown
Source)
 at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown
Source)
 at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
 at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
Source)
 at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
Source)
 at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown
Source)
 at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown
Source)
 at
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
Source)
 at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1644)
 at
org.apache.catalina.startup.ContextConfig.processContextConfig(ContextConfig.java:789)
 at
org.apache.catalina.startup.ContextConfig.contextConfig(ContextConfig.java:732)
 at org.apache.catalina.startup.ContextConfig.init(ContextConfig.java:1009)
 at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:279)
 at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
 at org.apache.catalina.core.StandardContext.init(StandardContext.java:5398)
 at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4177)
 at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
 at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
 at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
 at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:630)
 at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:556)
 at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:491)
 at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206)
 at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314)
 at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
 at org.apache.catalina.core.StandardService.start(StandardService.java:516)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:583)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: java.lang.ClassNotFoundException:
org.apache.catalina.loader.DevLoader
 at java.net.URLClassLoader$1.run(Unknown Source)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(Unknown Source)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at
org.apache.tomcat.util.digester.ObjectCreateRule.begin(ObjectCreateRule.java:205)
 at org.apache.tomcat.util.digester.Rule.begin(Rule.java:153)
 at
org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1358)
 ... 41 more
Jul 16, 2009 9:37:28 AM org.apache.catalina.startup.ContextConfig
processContextConfig
SEVERE: Occurred at line 2 column 126
Jul 16, 2009 9:37:29 AM org.apache.catalina.startup.ContextConfig start
SEVERE: Marking this application unavailable due to previous error(s)
Jul 16, 2009 9:37:29 AM org.apache.catalina.core.StandardContext start
SEVERE: Error getConfigured
Jul 16, 2009 9:37:29 AM org.apache.catalina.core.StandardContext start
SEVERE: Context [/VI-PLUGIN-ILO] startup failed due to previous errors
Jul 16, 2009 9:37:29 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Jul 16, 2009 9:37:30 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Jul 16, 2009 9:37:30 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/63  config=null
Jul 16, 2009 9:37:30 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 3619 ms
My .java file:

*

public* *class* TestServlet *extends* HttpServlet{

/**

*

*/

*private* *static* *final* *long* *serialVersionUID* = 1L;

*public* *final* *static* String *MOREF* = "moref";

*public* *final* *static* String *SESSION_ID* = "sessionId";

*public* *final* *static* String *SERVICE_URL* = "serviceUrl";

*public* *final* *static* String *LOCALE* = "locale";

*protected* *void* service(HttpServletRequest request,

HttpServletResponse response) *throws* ServletException, IOException

{

String morStr = request.getParameter(*MOREF*);

String type = morStr.substring(0, morStr.indexOf(":"));

String value = morStr.substring(morStr.indexOf(":")+1);

ManagedObjectReference mor = *new* ManagedObjectReference();

mor.setType(type);

mor.set_value(value);

String sessionStr = "vmware_soap_session=\"" +

request.getParameter(*SESSION_ID*) + "\"";

System.*out*.println("morStr:" + morStr);

System.*out*.println("serviceUrl" +

request.getParameter(*SERVICE_URL*) );

System.*out*.println("session:" + sessionStr);

ServiceInstance si = *new* ServiceInstance(*new
*

URL(request.getParameter(*SERVICE_URL*)),sessionStr, *true*);

ManagedEntity me =

MorUtil.*createExactManagedEntity*(si.getServerConnection(), mor);

String name = me.getName();

PrintWriter out = response.getWriter();

out.println("name:" + name);

out.println(DateFormat.*getDateTimeInstance*().format(*new
*

Date()));

}

}

 Any help greatly appreciated, thanks!

Re: java.lang.ClassNotFoundException & error 404

Posted by Mark Thomas <ma...@apache.org>.
Pid wrote:
> On 16/7/09 13:43, Thomas Vite wrote:
>> The real case is : C:\Program Files\Apache Software Foundation\Tomcat
>> 6.0\webapps\ViClientWebApp
> 
> Is your TestServlet properly located in a package?

Is WEB-INF/web.xml using the right case?

Mark

> 
> p
> 
> 
>> 2009/7/16 Mark Thomas<ma...@apache.org>
>>
>>> Thomas Vite wrote:
>>>> Yeah but after restarting Tomcat i still receive that infamous:
>>>> HTTP Status 404 - /ViClientWebApp/TestServlet
>>>> ------------------------------
>>>>
>>>> *type* Status report
>>>>
>>>> *message* */ViClientWebApp/TestServlet*
>>>>
>>>> *description* *The requested resource (/ViClientWebApp/TestServlet) is
>>> not
>>>> available.*
>>>> I have renamed the project ViClientWebApp which now look like this:
>>>> C:\PROGRAM FILES\APACHE SOFTWARE FOUNDATION\TOMCAT
>>>> 6.0\WEBAPPS\VICLIENTWEBAPP
>>> What is the real case of this directory? Tomcat is case sensitive even
>>> if Windows isn't.
>>>
>>> Mark
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>
>>>
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: java.lang.ClassNotFoundException & error 404

Posted by Pid <p...@pidster.com>.
On 16/7/09 13:59, Caldarale, Charles R wrote:
>> From: Pid [mailto:p@pidster.com]
>> Subject: Re: java.lang.ClassNotFoundException&  error 404
>>
>> Is your TestServlet properly located in a package?
>
> Servlets do not have to be in a package (although they should be); it's JSPs that must be in a package, according to the spec.

Aha. Guess it's down to where the .class file is actually located in 
this case then.

p

>   - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: java.lang.ClassNotFoundException & error 404

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Pid [mailto:p@pidster.com]
> Subject: Re: java.lang.ClassNotFoundException & error 404
> 
> Is your TestServlet properly located in a package?

Servlets do not have to be in a package (although they should be); it's JSPs that must be in a package, according to the spec.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: java.lang.ClassNotFoundException & error 404

Posted by Pid <p...@pidster.com>.
On 16/7/09 13:43, Thomas Vite wrote:
> The real case is : C:\Program Files\Apache Software Foundation\Tomcat
> 6.0\webapps\ViClientWebApp

Is your TestServlet properly located in a package?

p


> 2009/7/16 Mark Thomas<ma...@apache.org>
>
>> Thomas Vite wrote:
>>> Yeah but after restarting Tomcat i still receive that infamous:
>>> HTTP Status 404 - /ViClientWebApp/TestServlet
>>> ------------------------------
>>>
>>> *type* Status report
>>>
>>> *message* */ViClientWebApp/TestServlet*
>>>
>>> *description* *The requested resource (/ViClientWebApp/TestServlet) is
>> not
>>> available.*
>>> I have renamed the project ViClientWebApp which now look like this:
>>> C:\PROGRAM FILES\APACHE SOFTWARE FOUNDATION\TOMCAT
>>> 6.0\WEBAPPS\VICLIENTWEBAPP
>> What is the real case of this directory? Tomcat is case sensitive even
>> if Windows isn't.
>>
>> Mark
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: java.lang.ClassNotFoundException & error 404

Posted by Thomas Vite <ac...@gmail.com>.
Thumbs up Mark! It is now working as it should.

Thanks for your time.

2009/7/16 Mark Thomas <ma...@apache.org>

> Thomas Vite wrote:
> > The TestServlet.class file is under
> > C:\Program Files\Apache Software Foundation\Tomcat
> > 6.0\webapps\ViClientWebApp\WEB-INF\classes
> >
> > The Web.xml file is under:
> > C:\Program Files\Apache Software Foundation\Tomcat
> > 6.0\webapps\ViClientWebApp\WEB-INF
> > The Web.mxl file has a capital W...
>
> That is the first error - it should be web.xml
>
> About your question Mark --> Is
> > WEB-INF/web.xml using the right case?
> No.
>
> > <Web-app
> Should be web-app
>
> I think that is all. Get web.xml named correctly and Tomact will start
> parsing it. Any errors should then get reported.
>
> Mark
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: java.lang.ClassNotFoundException & error 404

Posted by Mark Thomas <ma...@apache.org>.
Thomas Vite wrote:
> The TestServlet.class file is under
> C:\Program Files\Apache Software Foundation\Tomcat
> 6.0\webapps\ViClientWebApp\WEB-INF\classes
> 
> The Web.xml file is under:
> C:\Program Files\Apache Software Foundation\Tomcat
> 6.0\webapps\ViClientWebApp\WEB-INF
> The Web.mxl file has a capital W...

That is the first error - it should be web.xml

About your question Mark --> Is
> WEB-INF/web.xml using the right case?
No.

> <Web-app
Should be web-app

I think that is all. Get web.xml named correctly and Tomact will start
parsing it. Any errors should then get reported.

Mark



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: java.lang.ClassNotFoundException & error 404

Posted by Thomas Vite <ac...@gmail.com>.
The TestServlet.class file is under
C:\Program Files\Apache Software Foundation\Tomcat
6.0\webapps\ViClientWebApp\WEB-INF\classes

The Web.xml file is under:
C:\Program Files\Apache Software Foundation\Tomcat
6.0\webapps\ViClientWebApp\WEB-INF
The Web.mxl file has a capital W...About your question Mark --> Is
WEB-INF/web.xml using the right case?
Do you mean the mapping for TestServlet? If so yes, see my Web.xml

This is my Web.xml file:

<?xml version="1.0" encoding="ISO-8859-1"?>

<Web-app xmlns="http://java.sun.com/xml/ns/javaee"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://java.sun.com/xml/ns/javaee

http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"

version="2.5">

<display-name>VI Client Plugin Demo App</display-name>

<description> VI Client Plugin Demo App with Tomcat and VI Java

API</description>

<servlet>

<servlet-name>TestServlet</servlet-name>

<servlet-class>TestServlet</servlet-class>

</servlet>

<servlet-mapping>

<servlet-name>TestServlet</servlet-name>

<url-pattern>/TestServlet</url-pattern>

</servlet-mapping>

</Web-app>
The catalina log:
Jul 16, 2009 3:28:57 PM org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.16.
Jul 16, 2009 3:28:57 PM org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters
[false], random [true].
Jul 16, 2009 3:28:58 PM org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Jul 16, 2009 3:28:58 PM org.apache.coyote.ajp.AjpAprProtocol init
INFO: Initializing Coyote AJP/1.3 on ajp-8009
Jul 16, 2009 3:28:58 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 716 ms
Jul 16, 2009 3:28:58 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jul 16, 2009 3:28:58 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.20
Jul 16, 2009 3:28:58 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive ViClientWebApp.war
Jul 16, 2009 3:28:58 PM org.apache.coyote.http11.Http11AprProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Jul 16, 2009 3:28:58 PM org.apache.coyote.ajp.AjpAprProtocol start
INFO: Starting Coyote AJP/1.3 on ajp-8009
Jul 16, 2009 3:28:58 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 888 ms
Jul 16, 2009 3:29:09 PM org.apache.coyote.http11.Http11AprProtocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
Jul 16, 2009 3:29:09 PM org.apache.coyote.ajp.AjpAprProtocol pause
INFO: Pausing Coyote AJP/1.3 on ajp-8009
Jul 16, 2009 3:29:10 PM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Jul 16, 2009 3:29:10 PM org.apache.coyote.http11.Http11AprProtocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080
Jul 16, 2009 3:29:10 PM org.apache.coyote.ajp.AjpAprProtocol destroy
INFO: Stopping Coyote AJP/1.3 on ajp-8009
Jul 16, 2009 3:29:31 PM org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.16.
Jul 16, 2009 3:29:31 PM org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters
[false], random [true].
Jul 16, 2009 3:29:32 PM org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Jul 16, 2009 3:29:32 PM org.apache.coyote.ajp.AjpAprProtocol init
INFO: Initializing Coyote AJP/1.3 on ajp-8009
Jul 16, 2009 3:29:32 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 449 ms
Jul 16, 2009 3:29:32 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jul 16, 2009 3:29:32 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.20
Jul 16, 2009 3:29:32 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive ViClientWebApp.war
Jul 16, 2009 3:29:32 PM org.apache.coyote.http11.Http11AprProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Jul 16, 2009 3:29:32 PM org.apache.coyote.ajp.AjpAprProtocol start
INFO: Starting Coyote AJP/1.3 on ajp-8009
Jul 16, 2009 3:29:32 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 344 ms
Jul 16, 2009 3:29:47 PM org.apache.catalina.startup.HostConfig
checkResources
INFO: Undeploying context [/ViClientWebApp]
Jul 16, 2009 3:29:53 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive ViClientWebApp.war

The manager log (i have undeployed my webApp and redeployed it to test):


Jul 16, 2009 3:29:43 PM org.apache.catalina.core.ApplicationContext log

INFO: HTMLManager: init: Associated with Deployer
'Catalina:type=Deployer,host=localhost'

Jul 16, 2009 3:29:43 PM org.apache.catalina.core.ApplicationContext log

INFO: HTMLManager: init: Global resources are available

Jul 16, 2009 3:29:43 PM org.apache.catalina.core.ApplicationContext log

INFO: HTMLManager: list: Listing contexts for virtual host 'localhost'

Jul 16, 2009 3:29:47 PM org.apache.catalina.core.ApplicationContext log

INFO: HTMLManager: undeploy: Undeploying web application at
'/ViClientWebApp'

Jul 16, 2009 3:29:47 PM org.apache.catalina.core.ApplicationContext log

INFO: HTMLManager: list: Listing contexts for virtual host 'localhost'

Jul 16, 2009 3:30:13 PM org.apache.catalina.core.ApplicationContext log

INFO: HTMLManager: list: Listing contexts for virtual host 'localhost'

2009/7/16 David Smith <dn...@cornell.edu>

> In addition to the questions posed by Pid and Mark, where is your
> compiled java servlet (.class file) in the ViClientWebApp folder?
>
> Also what do the logs show for the moments your webapp is deployed and
> request your servlet?
>
> --David
>
> Thomas Vite wrote:
> > The only thing i can think of that wouldnt be setup properly is the
> Web.xml
> > file in WEB-INF (for what i understand it is supposed to make the app
> > available at http://localhost:8080/ViClientWebApp/TestServlet :
> >
> > <?xml version="1.0" encoding="ISO-8859-1"?>
> >
> > <Web-app xmlns="http://java.sun.com/xml/ns/javaee"
> >
> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> >
> > xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> >
> > http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
> >
> > version="2.5">
> >
> > <display-name>VI Client Plugin Demo App</display-name>
> >
> > <description> VI Client Plugin Demo App with Tomcat and VI Java
> >
> > API</description>
> >
> > <servlet>
> >
> > <servlet-name>TestServlet</servlet-name>
> >
> > <servlet-class>TestServlet</servlet-class>
> >
> > </servlet>
> >
> > <servlet-mapping>
> >
> > <servlet-name>TestServlet</servlet-name>
> >
> > <url-pattern>/TestServlet</url-pattern>
> >
> > </servlet-mapping>
> >
> > </Web-app>
> >
> >
> > 2009/7/16 Thomas Vite <ac...@gmail.com>
> >
> >
> >> The real case is : C:\Program Files\Apache Software Foundation\Tomcat
> >> 6.0\webapps\ViClientWebApp
> >>
> >>  2009/7/16 Mark Thomas <ma...@apache.org>
> >>
> >>
> >>> Thomas Vite wrote:
> >>>
> >>>
> >>>> Yeah but after restarting Tomcat i still receive that infamous:
> >>>> HTTP Status 404 - /ViClientWebApp/TestServlet
> >>>> ------------------------------
> >>>>
> >>>> *type* Status report
> >>>>
> >>>> *message* */ViClientWebApp/TestServlet*
> >>>>
> >>>> *description* *The requested resource (/ViClientWebApp/TestServlet) is
> >>>>
> >>> not
> >>>
> >>>> available.*
> >>>> I have renamed the project ViClientWebApp which now look like this:
> >>>> C:\PROGRAM FILES\APACHE SOFTWARE FOUNDATION\TOMCAT
> >>>> 6.0\WEBAPPS\VICLIENTWEBAPP
> >>>>
> >>>  What is the real case of this directory? Tomcat is case sensitive even
> >>> if Windows isn't.
> >>>
> >>> Mark
> >>>
> >>>
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> >>> For additional commands, e-mail: users-help@tomcat.apache.org
> >>>
> >>>
> >>>
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: java.lang.ClassNotFoundException & error 404

Posted by David Smith <dn...@cornell.edu>.
In addition to the questions posed by Pid and Mark, where is your
compiled java servlet (.class file) in the ViClientWebApp folder?

Also what do the logs show for the moments your webapp is deployed and
request your servlet?

--David

Thomas Vite wrote:
> The only thing i can think of that wouldnt be setup properly is the Web.xml
> file in WEB-INF (for what i understand it is supposed to make the app
> available at http://localhost:8080/ViClientWebApp/TestServlet :
>
> <?xml version="1.0" encoding="ISO-8859-1"?>
>
> <Web-app xmlns="http://java.sun.com/xml/ns/javaee"
>
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>
> xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
>
> http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
>
> version="2.5">
>
> <display-name>VI Client Plugin Demo App</display-name>
>
> <description> VI Client Plugin Demo App with Tomcat and VI Java
>
> API</description>
>
> <servlet>
>
> <servlet-name>TestServlet</servlet-name>
>
> <servlet-class>TestServlet</servlet-class>
>
> </servlet>
>
> <servlet-mapping>
>
> <servlet-name>TestServlet</servlet-name>
>
> <url-pattern>/TestServlet</url-pattern>
>
> </servlet-mapping>
>
> </Web-app>
>
>
> 2009/7/16 Thomas Vite <ac...@gmail.com>
>
>   
>> The real case is : C:\Program Files\Apache Software Foundation\Tomcat
>> 6.0\webapps\ViClientWebApp
>>
>>  2009/7/16 Mark Thomas <ma...@apache.org>
>>
>>     
>>> Thomas Vite wrote:
>>>
>>>       
>>>> Yeah but after restarting Tomcat i still receive that infamous:
>>>> HTTP Status 404 - /ViClientWebApp/TestServlet
>>>> ------------------------------
>>>>
>>>> *type* Status report
>>>>
>>>> *message* */ViClientWebApp/TestServlet*
>>>>
>>>> *description* *The requested resource (/ViClientWebApp/TestServlet) is
>>>>         
>>> not
>>>       
>>>> available.*
>>>> I have renamed the project ViClientWebApp which now look like this:
>>>> C:\PROGRAM FILES\APACHE SOFTWARE FOUNDATION\TOMCAT
>>>> 6.0\WEBAPPS\VICLIENTWEBAPP
>>>>         
>>>  What is the real case of this directory? Tomcat is case sensitive even
>>> if Windows isn't.
>>>
>>> Mark
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>
>>>
>>>       
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: java.lang.ClassNotFoundException & error 404

Posted by Thomas Vite <ac...@gmail.com>.
The only thing i can think of that wouldnt be setup properly is the Web.xml
file in WEB-INF (for what i understand it is supposed to make the app
available at http://localhost:8080/ViClientWebApp/TestServlet :

<?xml version="1.0" encoding="ISO-8859-1"?>

<Web-app xmlns="http://java.sun.com/xml/ns/javaee"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://java.sun.com/xml/ns/javaee

http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"

version="2.5">

<display-name>VI Client Plugin Demo App</display-name>

<description> VI Client Plugin Demo App with Tomcat and VI Java

API</description>

<servlet>

<servlet-name>TestServlet</servlet-name>

<servlet-class>TestServlet</servlet-class>

</servlet>

<servlet-mapping>

<servlet-name>TestServlet</servlet-name>

<url-pattern>/TestServlet</url-pattern>

</servlet-mapping>

</Web-app>


2009/7/16 Thomas Vite <ac...@gmail.com>

> The real case is : C:\Program Files\Apache Software Foundation\Tomcat
> 6.0\webapps\ViClientWebApp
>
>  2009/7/16 Mark Thomas <ma...@apache.org>
>
>> Thomas Vite wrote:
>>
>> > Yeah but after restarting Tomcat i still receive that infamous:
>> > HTTP Status 404 - /ViClientWebApp/TestServlet
>> > ------------------------------
>> >
>> > *type* Status report
>> >
>> > *message* */ViClientWebApp/TestServlet*
>> >
>> > *description* *The requested resource (/ViClientWebApp/TestServlet) is
>> not
>> > available.*
>> > I have renamed the project ViClientWebApp which now look like this:
>> > C:\PROGRAM FILES\APACHE SOFTWARE FOUNDATION\TOMCAT
>> > 6.0\WEBAPPS\VICLIENTWEBAPP
>>
>>  What is the real case of this directory? Tomcat is case sensitive even
>> if Windows isn't.
>>
>> Mark
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>

Re: java.lang.ClassNotFoundException & error 404

Posted by Thomas Vite <ac...@gmail.com>.
The real case is : C:\Program Files\Apache Software Foundation\Tomcat
6.0\webapps\ViClientWebApp

2009/7/16 Mark Thomas <ma...@apache.org>

> Thomas Vite wrote:
> > Yeah but after restarting Tomcat i still receive that infamous:
> > HTTP Status 404 - /ViClientWebApp/TestServlet
> > ------------------------------
> >
> > *type* Status report
> >
> > *message* */ViClientWebApp/TestServlet*
> >
> > *description* *The requested resource (/ViClientWebApp/TestServlet) is
> not
> > available.*
> > I have renamed the project ViClientWebApp which now look like this:
> > C:\PROGRAM FILES\APACHE SOFTWARE FOUNDATION\TOMCAT
> > 6.0\WEBAPPS\VICLIENTWEBAPP
>
> What is the real case of this directory? Tomcat is case sensitive even
> if Windows isn't.
>
> Mark
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: java.lang.ClassNotFoundException & error 404

Posted by Mark Thomas <ma...@apache.org>.
Thomas Vite wrote:
> Yeah but after restarting Tomcat i still receive that infamous:
> HTTP Status 404 - /ViClientWebApp/TestServlet
> ------------------------------
> 
> *type* Status report
> 
> *message* */ViClientWebApp/TestServlet*
> 
> *description* *The requested resource (/ViClientWebApp/TestServlet) is not
> available.*
> I have renamed the project ViClientWebApp which now look like this:
> C:\PROGRAM FILES\APACHE SOFTWARE FOUNDATION\TOMCAT
> 6.0\WEBAPPS\VICLIENTWEBAPP

What is the real case of this directory? Tomcat is case sensitive even
if Windows isn't.

Mark



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: java.lang.ClassNotFoundException & error 404

Posted by Thomas Vite <ac...@gmail.com>.
Yeah but after restarting Tomcat i still receive that infamous:
HTTP Status 404 - /ViClientWebApp/TestServlet
------------------------------

*type* Status report

*message* */ViClientWebApp/TestServlet*

*description* *The requested resource (/ViClientWebApp/TestServlet) is not
available.*
I have renamed the project ViClientWebApp which now look like this:
C:\PROGRAM FILES\APACHE SOFTWARE FOUNDATION\TOMCAT
6.0\WEBAPPS\VICLIENTWEBAPP
├───bin
├───src
└───WEB-INF
    ├───classes
    ├───lib
    └───src



I dont get it...Does that error mean i have an issue with the Tomcat server
or could it be a problem with the application itself?

I dont see anymore errors in the logs.

Thank you.

2009/7/16 Mark Thomas <ma...@apache.org>

> Thomas Vite wrote:
> > 2009/7/16 Mark Thomas <ma...@apache.org>
> >
> >> Thomas Vite wrote:
> >>> There is xml file under \Tomcat 6.0\conf\Catalina\localhost for my
> >> project:
> >>> Context path="/VI-PLUGIN-ILO" reloadable="true" docBase="C:\Documents
> and
> >>> Settings\ti\Desktop\EclipseWorkspace\VI-PLUGIN-ILO"
> workDir="C:\Documents
> >>> and Settings\ti\Desktop\EclipseWorkspace\VI-PLUGIN-ILO\work" >
> >> path should not be specified here
> >
> >
> > Actually it has been created automatically when i deployed my app through
> > the manager interface (Deploy --> WAR file to deploy).
> > Anyway, i have undeployed the app. and just moved the war file under
> > %CATALINA_HOME%\webapps\MYPLUGIN
>
> Actually no. The context.xml in your WAR's META-INF/context.xml file
> contains an invalid path element.
>
> > My problem came from the plugin i sue (sysdeo) which needed that
> DevLoader
> > library. I have unchecked the devloader option int he plugin, rebuild my
> war
> > and now it looks much better. At least i dont get the 404 error!
>
> Sounds right.
>
> Mark
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: java.lang.ClassNotFoundException & error 404

Posted by Mark Thomas <ma...@apache.org>.
Thomas Vite wrote:
> 2009/7/16 Mark Thomas <ma...@apache.org>
> 
>> Thomas Vite wrote:
>>> There is xml file under \Tomcat 6.0\conf\Catalina\localhost for my
>> project:
>>> Context path="/VI-PLUGIN-ILO" reloadable="true" docBase="C:\Documents and
>>> Settings\ti\Desktop\EclipseWorkspace\VI-PLUGIN-ILO" workDir="C:\Documents
>>> and Settings\ti\Desktop\EclipseWorkspace\VI-PLUGIN-ILO\work" >
>> path should not be specified here
> 
> 
> Actually it has been created automatically when i deployed my app through
> the manager interface (Deploy --> WAR file to deploy).
> Anyway, i have undeployed the app. and just moved the war file under
> %CATALINA_HOME%\webapps\MYPLUGIN

Actually no. The context.xml in your WAR's META-INF/context.xml file
contains an invalid path element.

> My problem came from the plugin i sue (sysdeo) which needed that DevLoader
> library. I have unchecked the devloader option int he plugin, rebuild my war
> and now it looks much better. At least i dont get the 404 error!

Sounds right.

Mark



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: java.lang.ClassNotFoundException & error 404

Posted by Thomas Vite <ac...@gmail.com>.
2009/7/16 Mark Thomas <ma...@apache.org>

> Thomas Vite wrote:
> > There is xml file under \Tomcat 6.0\conf\Catalina\localhost for my
> project:
> >
> > Context path="/VI-PLUGIN-ILO" reloadable="true" docBase="C:\Documents and
> > Settings\ti\Desktop\EclipseWorkspace\VI-PLUGIN-ILO" workDir="C:\Documents
> > and Settings\ti\Desktop\EclipseWorkspace\VI-PLUGIN-ILO\work" >
>
> path should not be specified here


Actually it has been created automatically when i deployed my app through
the manager interface (Deploy --> WAR file to deploy).
Anyway, i have undeployed the app. and just moved the war file under
%CATALINA_HOME%\webapps\MYPLUGIN

My problem came from the plugin i sue (sysdeo) which needed that DevLoader
library. I have unchecked the devloader option int he plugin, rebuild my war
and now it looks much better. At least i dont get the 404 error!

>
>
> > <Loader className="org.apache.catalina.loader.DevLoader"
> reloadable="true"debug
> > ="1" useSystemClassLoaderAsParent="false" />
>
> Then you need to provide the DevLoader class (or remove that element) as
> that is not a Tomcat provided classloader.
>
> Mark
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: java.lang.ClassNotFoundException & error 404

Posted by Mark Thomas <ma...@apache.org>.
Thomas Vite wrote:
> There is xml file under \Tomcat 6.0\conf\Catalina\localhost for my project:
> 
> Context path="/VI-PLUGIN-ILO" reloadable="true" docBase="C:\Documents and
> Settings\ti\Desktop\EclipseWorkspace\VI-PLUGIN-ILO" workDir="C:\Documents
> and Settings\ti\Desktop\EclipseWorkspace\VI-PLUGIN-ILO\work" >

path should not be specified here

> <Loader className="org.apache.catalina.loader.DevLoader" reloadable="true"debug
> ="1" useSystemClassLoaderAsParent="false" />

Then you need to provide the DevLoader class (or remove that element) as
that is not a Tomcat provided classloader.

Mark



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: java.lang.ClassNotFoundException & error 404

Posted by Thomas Vite <ac...@gmail.com>.
There is xml file under \Tomcat 6.0\conf\Catalina\localhost for my project:

Context path="/VI-PLUGIN-ILO" reloadable="true" docBase="C:\Documents and
Settings\ti\Desktop\EclipseWorkspace\VI-PLUGIN-ILO" workDir="C:\Documents
and Settings\ti\Desktop\EclipseWorkspace\VI-PLUGIN-ILO\work" >

<Loader className="org.apache.catalina.loader.DevLoader" reloadable="true"debug
="1" useSystemClassLoaderAsParent="false" />

</Context>

Re: java.lang.ClassNotFoundException & error 404

Posted by Thomas Vite <ac...@gmail.com>.
>
>
> >    2. If i try to browse my project i get a 404 error using this URL
> >    http://amsterdam-sm09:8080/viplugin_test/TestServlet
>
> > SEVERE: Begin event threw exception
> > java.lang.ClassNotFoundException: org.apache.catalina.loader.DevLoader
> <snip/>
>
> > Jul 16, 2009 9:37:28 AM org.apache.catalina.startup.ContextConfig
> > processContextConfig
> > SEVERE: Parse error in context.xml for /VI-PLUGIN-ILO
> > java.lang.ClassNotFoundException: org.apache.catalina.loader.DevLoader
> >  at
>
> <snip/>
>
> >  Any help greatly appreciated, thanks!
>
> And the content of META-INF/context.xml for your application is?
>
> There is no META-INF folder, here is the tree view of the project:

 VI-PLUGIN-ILO
├───bin
├───src
├───WEB-INF
│   ├───classes
│   ├───lib
│   └───src
└───work

Re: java.lang.ClassNotFoundException & error 404

Posted by Mark Thomas <ma...@apache.org>.
Thomas Vite wrote:
> Hi all,
> 
> I just subscribed to this list as i am testing developing web services, i
> hope i can find some useful tips.
> 
> I have installed Tomcat6 on my Win XP SP3 box and i have followed a tutorial
> to create a first Tomcat project. I use a plugin in Eclipse called Sysdeo
> supposed to ease the creation of the Tomcat container.
> 
> I have a simple .java (see below) file  and a web.xml file in my project. I
> have made a war file and deployed it via the manager interface. I can start
> it but i get an error 404 when i browse to it. The .java file relies on
> external libraries (essentially the java SDK for vmware ESX).
> 
> I have two problems:
> 
>    1. When i try to access the manager website using the URL
>    http://amsterdam-sm09:8080/manager/ i get a 404 error whereas if i browse
>    to http://amsterdam-sm09:8080/manager/html the page displays correctly.
As expected. What makes you think this should be any different?

>    2. If i try to browse my project i get a 404 error using this URL
>    http://amsterdam-sm09:8080/viplugin_test/TestServlet

> SEVERE: Begin event threw exception
> java.lang.ClassNotFoundException: org.apache.catalina.loader.DevLoader
<snip/>

> Jul 16, 2009 9:37:28 AM org.apache.catalina.startup.ContextConfig
> processContextConfig
> SEVERE: Parse error in context.xml for /VI-PLUGIN-ILO
> java.lang.ClassNotFoundException: org.apache.catalina.loader.DevLoader
>  at

<snip/>

>  Any help greatly appreciated, thanks!

And the content of META-INF/context.xml for your application is?

Mark


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org