are you sure that the class name in muse.xml and the package/directory
structure match?
Dan
MUSEME <[EMAIL PROTECTED]> wrote on 06/18/2007 02:14:42 PM:
>
> I've specified the jar file for the MyCapability class just about
everywhere
> including the system CLASSPATH. It's already deployed in Tomcat. The
JVM
> can find it when I invoke it from DOS by searching the CLASSPATH
variable,
> but somehow Tomcat 6 cant. I would appreciate any help.
>
> MUSEME wrote:
> >
> > I run my test client to start httpd, but Tomcat 6.0 indicates that it
> > cannot find the Capability class with the following error message
> > displayed at the Tomcat DOS console
> >
> > java.lang.RuntimeException: [ID = 'JavaClassNotFound'] The Java class
> > specified was not found: com.example.www.http_server.MyCapability. Make
> > sure the correct class or .jar file is in the classpath.
> >
> > I'm not sure why I am getting this error.
> > My CLASSPATH contains the http_management.jar (which contains the
> > MyCapability class)
> > and the
> > $TOMCAT_HOME\webapps\http-management\WEB-INF\lib also contains hte
> > http_management.jar file.
> >
> > The SOAP trace also showed the following:
> >
> > run:
> > [java]
> > [java] ***
> > [java] * HttpServerTest: Testing httpd WSDM Interface
> > [java] ***
> > [java] Calling Proxy
> > [java] --- Starting Apache (httpd) Server
> > [java] [CLIENT TRACE] SOAP envelope contents (outgoing):
> > [java]
> > [java] <soap:Envelope
> > xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
> >
> > [java] <soap:Header>
> > [java] <wsa:To
> > xmlns:wsa="http://www.w3.org/2005/08/addressing">htt
> > p://localhost:8080/http-management/services/http-server</wsa:To>
> > [java] <wsa:Action
> > xmlns:wsa="http://www.w3.org/2005/08/addressing"
> >>http://www.example.com/http-server/Start</wsa:Action>
> > [java] <wsa:MessageID
> > xmlns:wsa="http://www.w3.org/2005/08/addressi
> > ng">uuid:0e5ca02b-90f0-ef45-480b-b17b9f113167</wsa:MessageID>
> > [java] <wsa:From
> > xmlns:wsa="http://www.w3.org/2005/08/addressing">
> > [java]
> > <wsa:Address>http://www.w3.org/2005/08/addressing/role/a
> > nonymous</wsa:Address>
> > [java] </wsa:From>
> > [java] </soap:Header>
> > [java] <soap:Body>
> > [java] <pfx0:Start
> > xmlns:pfx0="http://www.example.com/http-server"/
> >>
> > [java] </soap:Body>
> > [java] </soap:Envelope>
> > [java]
> > [java] [CLIENT TRACE] SOAP envelope contents (incoming):
> > [java]
> > [java] <soapenv:Envelope
> > [java] xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"
> > xmlns:ws
> > a="http://www.w3.org/2005/08/addressing">
> > [java] <soapenv:Header>
> > [java]
> > <wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:
> > To>
> > [java] <wsa:ReplyTo>
> > [java]
> > <wsa:Address>http://www.w3.org/2005/08/addressing/none</
> > wsa:Address>
> > [java] </wsa:ReplyTo>
> > [java]
> > <wsa:MessageID>urn:uuid:EEB3EECBEE143B582211821867711863</ws
> > a:MessageID>
> > [java]
> > <wsa:Action>http://www.w3.org/2005/08/addressing/soap/fault<
> > /wsa:Action>
> > [java] <wsa:RelatesTo
> > wsa:RelationshipType="http://www.w3.org/2005/
> > 08/addressing/reply">uuid:0e5ca02b-90f0-ef45-480b-
> b17b9f113167</wsa:RelatesTo>
> > [java] </soapenv:Header>
> > [java] <soapenv:Body>
> > [java] <soapenv:Fault>
> > [java] <soapenv:Code>
> > [java]
<soapenv:Value>soapenv:Sender</soapenv:Value>
> > [java] </soapenv:Code>
> > [java] <soapenv:Reason>
> > [java] <soapenv:Text xml:lang="en-US">null; nested
> > exceptio
> > n is:
> > [java] java.lang.NullPointerException</soapenv:Text>
> > [java] </soapenv:Reason>
> > [java] <soapenv:Detail/>
> > [java] </soapenv:Fault>
> > [java] </soapenv:Body>
> > [java] </soapenv:Envelope>
> > [java]
> > [java] org.apache.muse.ws.addressing.soap.SoapFault: null; nested
> > exception
> > is:
> > [java] java.lang.NullPointerException
> > [java] at
> > org.apache.muse.core.AbstractResourceClient.invoke(AbstractRe
> > sourceClient.java:298)
> > [java] at
> > org.apache.muse.core.AbstractResourceClient.invoke(AbstractRe
> > sourceClient.java:232)
> > [java] at
> > org.apache.muse.core.AbstractResourceClient.invoke(AbstractRe
> > sourceClient.java:211)
> > [java] at
> > com.example.www.http_server.testclient.http_serverProxy.start
> > (Unknown Source)
> > [java] at
> > com.example.www.http_server.testclient.HttpServerTest.main(Un
> > known Source)
> >
>
> --
> View this message in context: http://www.nabble.
> com/JavaClassNotFound-for-MyCapability-class-in-Tomcat-6.0-and-java.
> lang.NullPointerException-tf3937693.html#a11181116
> Sent from the Muse User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>