You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Michel Bergijk <mi...@cmg.nl> on 2002/03/20 14:38:05 UTC
Axis error: ClassNotFoundException
Axers,
Thinking I have a handle on how to work and where to place services I went
to my services directory to look at my service wsdl file. This is what I got
from the url http://localhost:8080/axis/services/FooService?wsdl:
AXIS error
Sorry, something seems to have gone wrong... here are the details:
java.lang.ClassNotFoundException: com.foo.FooService
My directory structure:
axis (directory)
|--com (directory)
|--foo (directory)
|--deploy.wsdd
|--FooServices.class
|--FooServices.wsdl
Note, FooServices.class is part of the package com.foo.
My deploy.wsdd
<deployment
xmlns="http://xml.apache.org/axis/wsdd/"
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
<service name="FooServices" provider="java:RPC">
<parameter name="className" value="com.foo.FooServices"/>
<parameter name="allowedMethods" value="*"/>
</service>
</deployment>
For when it is necessary:
Win2000
Axis Beta1 (not the one from Friday March 15)
JDK 1.3.1
Axis running on Apache 1.3.20, and Tomcat 3.3
With regards,
Michel Bergijk
Re: Axis error: ClassNotFoundException
Posted by Joey Gibson <jo...@joeygibson.com>.
On Wed, 20 Mar 2002 14:38:05 +0100, Michel Bergijk <mi...@cmg.nl>
wrote:
||| Sorry, something seems to have gone wrong... here are the details:
||| java.lang.ClassNotFoundException: com.foo.FooService
|||
||| My directory structure:
||| axis (directory)
||| |--com (directory)
||| |--foo (directory)
||| |--deploy.wsdd
||| |--FooServices.class
||| |--FooServices.wsdl
Don't your classes need to live under the WEB-INF/classes directory? IOW
axis/WEB-INF/classes/com/foo/FooServices.class ...
Joey
-- Blue canary in the outlet by the lightswitch,
-- who watches over you...