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 Vinod Patil <vi...@patni.com> on 2004/04/30 08:01:11 UTC
No Classloader found Exception for custom authentication handler
Hi,
Has anyone used JBoss app server and deployed Axis in it in the All
configuration.
Firstly there is already a context by the name Axis so i had to use context
ttaxis for my deployment.
Then all runs well until i deploy the StringEcho(sample service that returns
a string that is passes) service along with a custom authentication handler.
the structure of my service is
Classes
EchoService
StringEcho.class(service class)
Util
Greeting.class(used by StringEcho)
authenticator
MyAuthenticationHandler.class(extende Basic
handler and the invoke method is empty)
The Wsdd for the service is
<deployment
xmlns="http://xml.apache.org/axis/wsdd/"
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
<service name="MyFirstService" provider="java:RPC">
<parameter name="className" value="EchoService.StringEcho"/>
<parameter name="allowedMethods" value="*"/>
<requestFlow name="checks">
<!-- <handler
type="java:org.apache.axis.handlers.SimpleAuthenticationHandler"/> -->
<handler
type="java:EchoService.authenticator.MyAuthenticationHandler"/>
</requestFlow>
</service>
</deployment>
I get the exception
org.apache.axis.ConfigurationException: java.lang.ClassNotFoundException: No
ClassLoaders found for:
classes.EchoService.authenticator.MyAuthenticationHandler
When i try to access the Wsdl for this service...by the URL
http://localhost:8080/ttaxis/services/MyFirstService?wsdl
If i use the SimpleAuthenticationHandler it works fine.
Please if anyone has faced similar problems in any other server then suggest
a direction where i should look
RE: No Classloader found Exception for custom authentication handler
Posted by Vinod Patil <vi...@patni.com>.
Sorry the exception that i get is
org.apache.axis.ConfigurationException: java.lang.ClassNotFoundException: No
ClassLoaders found for: EchoService.authenticator.MyAuthenticationHandler
the classes.EchoService.authenticator.MyAuthenticatonHandler in the prev
mail was incorrect
> -----Original Message-----
> From: Vinod Patil [mailto:vinod.patil@patni.com]
> Sent: Friday, April 30, 2004 11:31 AM
> To: axis-user@ws.apache.org
> Subject: No Classloader found Exception for custom authentication
> handler
>
> Hi,
>
> Has anyone used JBoss app server and deployed Axis in it in the All
> configuration.
>
> Firstly there is already a context by the name Axis so i had to use
> context ttaxis for my deployment.
>
> Then all runs well until i deploy the StringEcho(sample service that
> returns a string that is passes) service along with a custom
> authentication handler.
>
> the structure of my service is
> Classes
> EchoService
> StringEcho.class(service class)
> Util
> Greeting.class(used by StringEcho)
> authenticator
> MyAuthenticationHandler.class(extende Basic
> handler and the invoke method is empty)
>
> The Wsdd for the service is
> <deployment
> xmlns="http://xml.apache.org/axis/wsdd/"
> xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
> <service name="MyFirstService" provider="java:RPC">
> <parameter name="className" value="EchoService.StringEcho"/>
>
> <parameter name="allowedMethods" value="*"/>
> <requestFlow name="checks">
> <!-- <handler
> type="java:org.apache.axis.handlers.SimpleAuthenticationHandler"/> -->
> <handler
> type="java:EchoService.authenticator.MyAuthenticationHandler"/>
> </requestFlow>
> </service>
> </deployment>
>
> I get the exception
> org.apache.axis.ConfigurationException: java.lang.ClassNotFoundException:
> No ClassLoaders found for:
> classes.EchoService.authenticator.MyAuthenticationHandler
> When i try to access the Wsdl for this service...by the URL
> http://localhost:8080/ttaxis/services/MyFirstService?wsdl
>
> If i use the SimpleAuthenticationHandler it works fine.
>
> Please if anyone has faced similar problems in any other server then
> suggest a direction where i should look
>