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 Maia Puscholt <ma...@yahoo.com> on 2005/08/08 02:43:08 UTC
ClientHandler is not found
Hi all,
I'm having a bit of problems getting my web service
working and I can't seem to work out what's wrong.
I created a ClientHandler class(for example4 of the
userguide), that adds a SOAPHeader to the SOAPMessage,
and all worked pretty well. Now I become the following
error message trying to run
org.apache.axis.client.AdminClient deploy.wsdd.
From:
D:\Tomcat-5.5\webapps\axis\WEB-INF\classes\samples\userguide\example4>java
org.apache.axis.client.AdminClient deploy.wsdd
-------------------------------------------------
log4j:WARN No appenders could be found for logger
(org.apache.axis.i18n.ProjectResourceBundle).
log4j:WARN Please initialize the log4j system
properly.
Processing file deploy.wsdd
Exception: AxisFault
faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: org.apache.axis.ConfigurationException:
java.lang.ClassNotFoundException:
samples.userguide.example4.Cl
ientHandler
java.lang.ClassNotFoundException:
samples.userguide.example4.ClientHandler
at
java.net.URLClassLoader$1.run(URLClassLoader.java:198)
at
java.security.AccessController.doPrivileged(Native
Method)
at
java.net.URLClassLoader.findClass(URLClassLoader.java:186)
at
java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:272)
at
java.lang.ClassLoader.loadClass(ClassLoader.java:255)
at
org.apache.axis.utils.ClassUtils$2.run(ClassUtils.java:186)
at
java.security.AccessController.doPrivileged(Native
Method)
at
org.apache.axis.utils.ClassUtils.loadClass(ClassUtils.java:160)
at
org.apache.axis.utils.ClassUtils.forName(ClassUtils.java:100)
at
org.apache.axis.deployment.wsdd.WSDDDeployableItem.getJavaClass(WSDDDeployableItem.java:353)
at
org.apache.axis.deployment.wsdd.WSDDDeployableItem.makeNewInstance(WSDDDeployableItem.java:295)
at
org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDeployableItem.java:274)
at
org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDeployableItem.java:260)
at
org.apache.axis.deployment.wsdd.WSDDChain.makeNewInstance(WSDDChain.java:125)
at
org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDeployableItem.java:274)
at
org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDeployableItem.java:260)
at
org.apache.axis.deployment.wsdd.WSDDDeployment.getGlobalRequest(WSDDDeployment.java:507)
at
org.apache.axis.configuration.FileProvider.getGlobalRequest(FileProvider.java:264)
at
org.apache.axis.AxisEngine.getGlobalRequest(AxisEngine.java:344)
at
org.apache.axis.client.AxisClient.invoke(AxisClient.java:133)
at
org.apache.axis.client.Call.invokeEngine(Call.java:2719)
at
org.apache.axis.client.Call.invoke(Call.java:2702)
at
org.apache.axis.client.Call.invoke(Call.java:1738)
at
org.apache.axis.client.AdminClient.process(AdminClient.java:438)
at
org.apache.axis.client.AdminClient.process(AdminClient.java:403)
at
org.apache.axis.client.AdminClient.process(AdminClient.java:409)
at
org.apache.axis.client.AdminClient.process(AdminClient.java:319)
at
org.apache.axis.client.AdminClient.main(AdminClient.java:462)
....
-------------------------------------------------
The same error message, when I try to deploy(for test)
example3.
D:\Tomcat-5.5\webapps\axis\WEB-INF\classes\samples\userguide\example3>java
org.apache.axis.client.AdminClient deploy.wsdd
...
java.lang.ClassNotFoundException:
samples.userguide.example4.ClientHandler
...
I don't understand why
samples.userguide.example4.ClientHandler is missed,
when I deploy other examples? If anyone have any
ideas, they would be greatly apreciated as I'm stuck!
TIA
Maia
____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs
Re: ClientHandler is not found
Posted by trebor iksrazal <ik...@yahoo.com>.
Hi,
A client handler is not part of the deploy process for
a web service. It only exists on the client side via
the Service.getHandlerRegistry().getHandlerChain() or
however you are invoking it.
If you want a Handler on your service side, that
should be a seperate class. If not, there should be no
reference in your .wsdd file for a Handler.
If still in doubt, post your wsdd file and your client
side handler invokation.
HTH,
iksrazal
--- Maia Puscholt <ma...@yahoo.com> wrote:
> Hi all,
>
> I'm having a bit of problems getting my web service
> working and I can't seem to work out what's wrong.
> I created a ClientHandler class(for example4 of the
> userguide), that adds a SOAPHeader to the
> SOAPMessage,
> and all worked pretty well. Now I become the
> following
> error message trying to run
> org.apache.axis.client.AdminClient deploy.wsdd.
> From:
>
D:\Tomcat-5.5\webapps\axis\WEB-INF\classes\samples\userguide\example4>java
> org.apache.axis.client.AdminClient deploy.wsdd
> -------------------------------------------------
>
> log4j:WARN No appenders could be found for logger
> (org.apache.axis.i18n.ProjectResourceBundle).
> log4j:WARN Please initialize the log4j system
> properly.
> Processing file deploy.wsdd
> Exception: AxisFault
> faultCode:
>
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
> faultSubcode:
> faultString:
> org.apache.axis.ConfigurationException:
> java.lang.ClassNotFoundException:
> samples.userguide.example4.Cl
> ientHandler
> java.lang.ClassNotFoundException:
> samples.userguide.example4.ClientHandler
> at
>
java.net.URLClassLoader$1.run(URLClassLoader.java:198)
> at
> java.security.AccessController.doPrivileged(Native
> Method)
> at
>
java.net.URLClassLoader.findClass(URLClassLoader.java:186)
> at
>
java.lang.ClassLoader.loadClass(ClassLoader.java:299)
> at
>
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:272)
> at
>
java.lang.ClassLoader.loadClass(ClassLoader.java:255)
> at
>
org.apache.axis.utils.ClassUtils$2.run(ClassUtils.java:186)
> at
> java.security.AccessController.doPrivileged(Native
> Method)
> at
>
org.apache.axis.utils.ClassUtils.loadClass(ClassUtils.java:160)
> at
>
org.apache.axis.utils.ClassUtils.forName(ClassUtils.java:100)
> at
>
org.apache.axis.deployment.wsdd.WSDDDeployableItem.getJavaClass(WSDDDeployableItem.java:353)
> at
>
org.apache.axis.deployment.wsdd.WSDDDeployableItem.makeNewInstance(WSDDDeployableItem.java:295)
> at
>
org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDeployableItem.java:274)
> at
>
org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDeployableItem.java:260)
> at
>
org.apache.axis.deployment.wsdd.WSDDChain.makeNewInstance(WSDDChain.java:125)
> at
>
org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDeployableItem.java:274)
> at
>
org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDeployableItem.java:260)
> at
>
org.apache.axis.deployment.wsdd.WSDDDeployment.getGlobalRequest(WSDDDeployment.java:507)
> at
>
org.apache.axis.configuration.FileProvider.getGlobalRequest(FileProvider.java:264)
> at
>
org.apache.axis.AxisEngine.getGlobalRequest(AxisEngine.java:344)
> at
>
org.apache.axis.client.AxisClient.invoke(AxisClient.java:133)
> at
>
org.apache.axis.client.Call.invokeEngine(Call.java:2719)
> at
> org.apache.axis.client.Call.invoke(Call.java:2702)
> at
> org.apache.axis.client.Call.invoke(Call.java:1738)
> at
>
org.apache.axis.client.AdminClient.process(AdminClient.java:438)
> at
>
org.apache.axis.client.AdminClient.process(AdminClient.java:403)
> at
>
org.apache.axis.client.AdminClient.process(AdminClient.java:409)
> at
>
org.apache.axis.client.AdminClient.process(AdminClient.java:319)
> at
>
org.apache.axis.client.AdminClient.main(AdminClient.java:462)
>
> ....
>
> -------------------------------------------------
> The same error message, when I try to deploy(for
> test)
> example3.
>
D:\Tomcat-5.5\webapps\axis\WEB-INF\classes\samples\userguide\example3>java
> org.apache.axis.client.AdminClient deploy.wsdd
>
> ...
> java.lang.ClassNotFoundException:
> samples.userguide.example4.ClientHandler
> ...
>
> I don't understand why
> samples.userguide.example4.ClientHandler is missed,
> when I deploy other examples? If anyone have any
> ideas, they would be greatly apreciated as I'm
> stuck!
> TIA
> Maia
>
>
>
> ____________________________________________________
> Start your day with Yahoo! - make it your home page
> http://www.yahoo.com/r/hs
>
>
"None are more hopelessly enslaved than those who falsely believe they are free. -- Goethe"
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com