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 Jan Bauer Nielsen <jb...@dtv.dk> on 2006/07/19 09:36:36 UTC

[Axis2] unable to run security sample.

Hi.

Using the latest nightly builds and following the steps in the README 
file I get the following error from the server. Can anyone please 
explain why this is so?

$ ant securitySample
Buildfile: build.xml

securitySample:
      [java] Jul 19, 2006 9:34:44 AM 
org.apache.axis2.deployment.DeploymentEngine prepareRepository
      [java] INFO: no services directory found , new one created
      [java] Jul 19, 2006 9:34:45 AM 
org.apache.axis2.deployment.DeploymentEngine doDeploy
      [java] INFO: Deploying module : rampart-1.0
      [java] Jul 19, 2006 9:34:45 AM 
org.apache.axis2.deployment.DeploymentEngine doDeploy
      [java] INFO: Deploying module : addressing-1.0
      [java] org.apache.axis2.AxisFault: WSHandler: cannot load password 
callback class: sample.security.PWCallback; nested exception is:
      [java]     java.lang.ClassNotFoundException: 
sample.security.PWCallback
      [java]     at 
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:289)
      [java]     at 
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:538)
      [java]     at 
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:472)
      [java]     at sample.security.Client.main(Client.java:58)
      [java] Caused by: java.lang.Exception: org.apache.axis2.AxisFault: 
WSHandler: cannot load password callback class: 
sample.security.PWCallback; nested exception is:
      [java]     java.lang.ClassNotFoundException: 
sample.security.PWCallback; nested exception is:
      [java]     org.apache.ws.security.WSSecurityException: WSHandler: 
cannot load password callback class: sample.security.PWCallback; nested 
exception is:
      [java]     java.lang.ClassNotFoundException: 
sample.security.PWCallback
      [java]     at 
org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:336)
      [java]     at 
org.apache.axis2.security.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:82)
      [java]     at org.apache.axis2.engine.Phase.invoke(Phase.java:380)
      [java]     at 
org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:523)
      [java]     at 
org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:492)
      [java]     at 
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
      [java]     at 
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144)
      [java]     at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:615)
      [java]     at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
      [java]     at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      [java]     at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      [java]     at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
      [java]     at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
      [java]     at 
org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:272)
      [java]     at 
org.apache.geronimo.tomcat.valve.TransactionContextValve.invoke(TransactionContextValve.java:53)
      [java]     at 
org.apache.geronimo.tomcat.valve.ComponentContextValve.invoke(ComponentContextValve.java:47)
      [java]     at 
org.apache.geronimo.tomcat.valve.InstanceContextValve.invoke(InstanceContextValve.java:60)
      [java]     at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
      [java]     at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
      [java]     at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
      [java]     at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526)
      [java]     at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
      [java]     at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
      [java]     at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
      [java]     at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
      [java]     at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
      [java]     at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
      [java]     at java.lang.Thread.run(Thread.java:595)
      [java] Caused by: org.apache.ws.security.WSSecurityException: 
WSHandler: cannot load password callback class: 
sample.security.PWCallback; nested exception is:
      [java]     java.lang.ClassNotFoundException: 
sample.security.PWCallback
      [java]     at 
org.apache.ws.security.handler.WSHandler.getPasswordCB(WSHandler.java:823)
      [java]     at 
org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:147)
      [java]     ... 27 more
      [java] Caused by: java.lang.ClassNotFoundException: 
sample.security.PWCallback
      [java]     at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
      [java]     at java.security.AccessController.doPrivileged(Native 
Method)
      [java]     at 
java.net.URLClassLoader.findClass(URLClassLoader.java:188)
      [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
      [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
      [java]     at 
org.apache.geronimo.tomcat.TomcatClassLoader.loadClass(TomcatClassLoader.java:62)
      [java]     at 
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
      [java]     at java.lang.Class.forName0(Native Method)
      [java]     at java.lang.Class.forName(Class.java:164)
      [java]     at 
org.apache.ws.security.util.Loader.loadClass(Loader.java:162)
      [java]     at 
org.apache.ws.security.util.Loader.loadClass(Loader.java:135)
      [java]     at 
org.apache.ws.security.handler.WSHandler.getPasswordCB(WSHandler.java:820)
      [java]     ... 28 more

      [java]     at org.apache.axis2.AxisFault.<init>(AxisFault.java:159)
      [java]     ... 4 more

BUILD SUCCESSFUL
Total time: 5 seconds

Kind regards,
-- 
Jan Bauer Nielsen
Center of Knowledge Technology, Technical Knowledge Center of Denmark
Anker Engelunds Vej 1, Postboks 777, 2800 Kongens Lyngby, Denmark
Direct: (+45) 4525 7221, jbn@dtv.dk

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2] unable to run security sample.

Posted by Wan Kaveevivitchai <wa...@hotmail.com>.
Dear Ruchith,

        i had <module ref="rampart"/> from the server side axis2.xml.
        is there any other possibility that can cause the error?

        as i have wrote earlier...the same build was successfully run with 
the older version of axis2 at the server side (nightly build 6 Jun 
released). but the problem i had now it running with nightly build 18 July 
released.

         Wan




>From: "Ruchith Fernando" <ru...@gmail.com>
>Reply-To: axis-user@ws.apache.org
>To: axis-user@ws.apache.org
>Subject: Re: [Axis2] unable to run security sample.
>Date: Wed, 19 Jul 2006 17:09:19 +0530
>
>Hi Wan,
>
>If the message from the client is secured then probably you are missing the
><module ref="rampart"/> from the server side axis2.xml
>
>Thanks,
>Ruchith
>
>On 7/19/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
>>Dear Ruchith,
>>
>>Thank you, it seems to be that the client now found that library...
>>after i run i got
>>
>>Buildfile: build.xml
>>
>>securitySample:
>>      [java] 19.07.2006 13:04:03 
>>org.apache.axis2.deployment.DeploymentEngine
>>prepareRepository
>>      [java] INFO: no services directory found , new one created
>>      [java] 19.07.2006 13:04:03 
>>org.apache.axis2.deployment.DeploymentEngine
>>doDeploy
>>      [java] INFO: Deploying module : addressing
>>      [java] 19.07.2006 13:04:04 
>>org.apache.axis2.deployment.DeploymentEngine
>>doDeploy
>>      [java] INFO: Deploying module : rampart
>>      [java] 413
>>      [java] org.apache.axis2.AxisFault: WSDoAllReceiver: Request does not
>>contain required Security header
>>      [java]     at
>>org.apache.rampart.handler.WSDoAllReceiver.processBasic(WSDoAllReceiver.java:284)
>>      [java]     at
>>org.apache.rampart.handler.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:100)
>>      [java]     at
>>org.apache.rampart.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:75)
>>      [java]     at org.apache.axis2.engine.Phase.invoke(Phase.java:380)
>>      [java]     at
>>org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:523)
>>      [java]     at
>>org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:492)
>>      [java]     at
>>org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:362)
>>      [java]     at
>>org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:280)
>>      [java]     at
>>org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:538)
>>      [java]     at
>>org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:472)
>>      [java]     at sample.security.Client.main(Client.java:58)
>>
>>BUILD SUCCESSFUL
>>Total time: 8 seconds
>>
>>        From the TCPMon, the client is successfully sent the message to 
>>the
>>server but cannot get the reply back from the server.
>>
>>        what should i do now?
>>
>>        Wan
>>
>>
>> >From: "Ruchith Fernando" <ru...@gmail.com>
>> >Reply-To: axis-user@ws.apache.org
>> >To: axis-user@ws.apache.org
>> >Subject: Re: [Axis2] unable to run security sample.
>> >Date: Wed, 19 Jul 2006 16:29:41 +0530
>> >
>> >Hi Wan,
>> >
>> >My bad... I forgot to mention one more jar !!
>> >
>> >Please add this [1] in to both service and client classpath.
>> >
>> >Thanks,
>> >Ruchith
>> >
>> >[1] 
>>http://people.apache.org/repository/axis2/jars/axis2-rahas-SNAPSHOT.jar
>> >
>> >On 7/19/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
>> >>
>> >>Dear Ruchith,
>> >>
>> >>         i had changed now the modules in my client_repo/modules from
>> >>addressing-1.0.mar and rampart-1.0.mar to addressing-SNAPSHOT.mar and
>> >>rampart-SNAPSHOT.mar.
>> >>
>> >>         then i ran ant, and i got the following result
>> >>
>> >>Buildfile: build.xml
>> >>
>> >>securitySample:
>> >>      [java] 19.07.2006 12:44:21
>> >>org.apache.axis2.deployment.DeploymentEngine
>> >>prepareRepository
>> >>      [java] INFO: no services directory found , new one created
>> >>      [java] 19.07.2006 12:44:21
>> >>org.apache.axis2.deployment.DeploymentEngine
>> >>doDeploy
>> >>      [java] INFO: Deploying module : addressing
>> >>      [java] Exception in thread "main" java.lang.NoClassDefFoundError:
>> >>org/apache/rahas/TrustException
>> >>      [java]     at java.lang.Class.forName0(Native Method)
>> >>      [java]     at java.lang.Class.forName(Class.java:219)
>> >>      [java]     at
>> >>org.apache.axis2.deployment.util.Utils.getHandlerClass(Utils.java:198)
>> >>      [java]     at
>> >>org.apache.axis2.deployment.util.Utils.addFlowHandlers(Utils.java:58)
>> >>      [java]     at
>> >>org.apache.axis2.deployment.DeploymentEngine.addNewModule(DeploymentEngine.java:335)
>> >>      [java]     at
>> >>org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:690)
>> >>      [java]     at
>> >>org.apache.axis2.deployment.RepositoryListener.init(RepositoryListener.java:165)
>> >>      [java]     at
>> >>org.apache.axis2.deployment.RepositoryListener.<init>(RepositoryListener.java:53)
>> >>      [java]     at
>> >>org.apache.axis2.deployment.DeploymentEngine.loadRepository(DeploymentEngine.java:109)
>> >>      [java]     at
>> >>org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(FileSystemConfigurator.java:120)
>> >>      [java]     at
>> >>org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:60)
>> >>      [java]     at
>> >>org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:166)
>> >>      [java]     at sample.security.Client.main(Client.java:48)
>> >>      [java] Java Result: 1
>> >>
>> >>BUILD SUCCESSFUL
>> >>Total time: 2 seconds
>> >>
>> >>            there was nothing return at the server side.
>> >>
>> >>            please take a look
>> >>
>> >>            Wan
>> >>
>> >> >From: "Ruchith Fernando" <ru...@gmail.com>
>> >> >Reply-To: axis-user@ws.apache.org
>> >> >To: axis-user@ws.apache.org
>> >> >Subject: Re: [Axis2] unable to run security sample.
>> >> >Date: Wed, 19 Jul 2006 15:58:58 +0530
>> >> >
>> >> >Hi,
>> >> >
>> >> >since you are using the latest nightly you have to use
>> >> >rampart-SNAPSHOT.mar [1] and addressing-SNAPSHOT.mar [2] not the 1.0
>> >> >release.
>> >> >
>> >> >Also please use wss4j-SNAPSHOT.jar [3].
>> >> >
>> >> >I will update the README.txt.
>> >> >
>> >> >Thanks,
>> >> >Ruchith
>> >> >
>> >> >[1] 
>>http://people.apache.org/repository/axis2/mars/rampart-SNAPSHOT.mar
>> >> >[2]
>> >>http://people.apache.org/repository/axis2/mars/addressing-SNAPSHOT.mar
>> >> >[3] http://people.apache.org/repository/wss4j/jars/wss4j-SNAPSHOT.jar
>> >> >
>> >> >On 7/19/06, Jan Bauer Nielsen <jb...@dtv.dk> wrote:
>> >> >>Just to follow up on my own question.
>> >> >>
>> >> >>I can get the sample to work if I copy the secUtil.jar file to the
>> >> >>axis2/WEB-INF/lib/ directory. But according to the 4th step in the
>> >> >>README.txt this shouldn't be necessary. Can anyone shed some light 
>>on
>> >> >>this?
>> >> >>
>> >> >>Jan
>> >> >>
>> >> >>Jan Bauer Nielsen wrote:
>> >> >> > Hi.
>> >> >> >
>> >> >> > Using the latest nightly builds and following the steps in the
>> >>README
>> >> >> > file I get the following error from the server. Can anyone please
>> >> >> > explain why this is so?
>> >> >> >
>> >> >> > $ ant securitySample
>> >> >> > Buildfile: build.xml
>> >> >> >
>> >> >> > securitySample:
>> >> >> >      [java] Jul 19, 2006 9:34:44 AM
>> >> >> > org.apache.axis2.deployment.DeploymentEngine prepareRepository
>> >> >> >      [java] INFO: no services directory found , new one created
>> >> >> >      [java] Jul 19, 2006 9:34:45 AM
>> >> >> > org.apache.axis2.deployment.DeploymentEngine doDeploy
>> >> >> >      [java] INFO: Deploying module : rampart-1.0
>> >> >> >      [java] Jul 19, 2006 9:34:45 AM
>> >> >> > org.apache.axis2.deployment.DeploymentEngine doDeploy
>> >> >> >      [java] INFO: Deploying module : addressing-1.0
>> >> >> >      [java] org.apache.axis2.AxisFault: WSHandler: cannot load
>> >>password
>> >> >> > callback class: sample.security.PWCallback; nested exception is:
>> >> >> >      [java]     java.lang.ClassNotFoundException:
>> >> >> > sample.security.PWCallback
>> >> >> >      [java]     at
>> >> >> >
>> >> 
>> >>org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:289)
>> >> >> >
>> >> >> >      [java]     at
>> >> >> >
>> >> 
>> >>org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:538)
>> >> >> >      [java]     at
>> >> >> >
>> >> 
>> >>org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:472)
>> >> >> >      [java]     at sample.security.Client.main(Client.java:58)
>> >> >> >      [java] Caused by: java.lang.Exception:
>> >>org.apache.axis2.AxisFault:
>> >> >> > WSHandler: cannot load password callback class:
>> >> >> > sample.security.PWCallback; nested exception is:
>> >> >> >      [java]     java.lang.ClassNotFoundException:
>> >> >> > sample.security.PWCallback; nested exception is:
>> >> >> >      [java]     org.apache.ws.security.WSSecurityException:
>> >>WSHandler:
>> >> >> > cannot load password callback class: sample.security.PWCallback;
>> >>nested
>> >> >> > exception is:
>> >> >> >      [java]     java.lang.ClassNotFoundException:
>> >> >> > sample.security.PWCallback
>> >> >> >      [java]     at
>> >> >> >
>> >> 
>> >>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:336)
>> >> >> >
>> >> >> >      [java]     at
>> >> >> >
>> >> 
>> >>org.apache.axis2.security.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:82)
>> >> >> >
>> >> >> >      [java]     at
>> >>org.apache.axis2.engine.Phase.invoke(Phase.java:380)
>> >> >> >      [java]     at
>> >> >> > org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:523)
>> >> >> >      [java]     at
>> >> >> > org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:492)
>> >> >> >      [java]     at
>> >> >> >
>> >> 
>> >>org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
>> >> >> >
>> >> >> >      [java]     at
>> >> >> >
>> >> 
>> >>org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144)
>> >> >> >      [java]     at
>> >> >> > javax.servlet.http.HttpServlet.service(HttpServlet.java:615)
>> >> >> >      [java]     at
>> >> >> > javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
>> >> >> >      [java]     at
>> >> >> >
>> >> 
>> >>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>> >> >> >
>> >> >> >      [java]     at
>> >> >> >
>> >> 
>> >>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>> >> >> >
>> >> >> >      [java]     at
>> >> >> >
>> >> 
>> >>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>> >> >> >
>> >> >> >      [java]     at
>> >> >> >
>> >> 
>> >>org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>> >> >> >
>> >> >> >      [java]     at
>> >> >> >
>> >> 
>> >>org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:272)
>> >> >> >
>> >> >> >      [java]     at
>> >> >> >
>> >> 
>> >>org.apache.geronimo.tomcat.valve.TransactionContextValve.invoke(TransactionContextValve.java:53)
>> >> >> >
>> >> >> >      [java]     at
>> >> >> >
>> >> 
>> >>org.apache.geronimo.tomcat.valve.ComponentContextValve.invoke(ComponentContextValve.java:47)
>> >> >> >
>> >> >> >      [java]     at
>> >> >> >
>> >> 
>> >>org.apache.geronimo.tomcat.valve.InstanceContextValve.invoke(InstanceContextValve.java:60)
>> >> >> >
>> >> >> >      [java]     at
>> >> >> >
>> >> 
>> >>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>> >> >> >
>> >> >> >      [java]     at
>> >> >> >
>> >> 
>> >>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>> >> >> >
>> >> >> >      [java]     at
>> >> >> >
>> >> 
>> >>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>> >> >> >
>> >> >> >      [java]     at
>> >> >> >
>> >> 
>> >>org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526)
>> >> >> >      [java]     at
>> >> >> >
>> >> 
>> >>org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>> >> >> >      [java]     at
>> >> >> >
>> >> 
>> >>org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
>> >> >> >      [java]     at
>> >> >> >
>> >> 
>> >>org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
>> >> >> >
>> >> >> >      [java]     at
>> >> >> >
>> >> 
>> >>org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>> >> >> >
>> >> >> >      [java]     at
>> >> >> >
>> >> 
>> >>org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
>> >> >> >
>> >> >> >      [java]     at
>> >> >> >
>> >> 
>> >>org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>> >> >> >
>> >> >> >      [java]     at java.lang.Thread.run(Thread.java:595)
>> >> >> >      [java] Caused by: 
>>org.apache.ws.security.WSSecurityException:
>> >> >> > WSHandler: cannot load password callback class:
>> >> >> > sample.security.PWCallback; nested exception is:
>> >> >> >      [java]     java.lang.ClassNotFoundException:
>> >> >> > sample.security.PWCallback
>> >> >> >      [java]     at
>> >> >> >
>> >> 
>> >>org.apache.ws.security.handler.WSHandler.getPasswordCB(WSHandler.java:823)
>> >> >> >      [java]     at
>> >> >> >
>> >> 
>> >>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:147)
>> >> >> >
>> >> >> >      [java]     ... 27 more
>> >> >> >      [java] Caused by: java.lang.ClassNotFoundException:
>> >> >> > sample.security.PWCallback
>> >> >> >      [java]     at
>> >> >>java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>> >> >> >      [java]     at
>> >>java.security.AccessController.doPrivileged(Native
>> >> >> > Method)
>> >> >> >      [java]     at
>> >> >> > java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>> >> >> >      [java]     at
>> >> >>java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>> >> >> >      [java]     at
>> >> >>java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>> >> >> >      [java]     at
>> >> >> >
>> >> 
>> >>org.apache.geronimo.tomcat.TomcatClassLoader.loadClass(TomcatClassLoader.java:62)
>> >> >> >
>> >> >> >      [java]     at
>> >> >> > java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>> >> >> >      [java]     at java.lang.Class.forName0(Native Method)
>> >> >> >      [java]     at java.lang.Class.forName(Class.java:164)
>> >> >> >      [java]     at
>> >> >> > org.apache.ws.security.util.Loader.loadClass(Loader.java:162)
>> >> >> >      [java]     at
>> >> >> > org.apache.ws.security.util.Loader.loadClass(Loader.java:135)
>> >> >> >      [java]     at
>> >> >> >
>> >> 
>> >>org.apache.ws.security.handler.WSHandler.getPasswordCB(WSHandler.java:820)
>> >> >> >      [java]     ... 28 more
>> >> >> >
>> >> >> >      [java]     at
>> >> >>org.apache.axis2.AxisFault.<init>(AxisFault.java:159)
>> >> >> >      [java]     ... 4 more
>> >> >> >
>> >> >> > BUILD SUCCESSFUL
>> >> >> > Total time: 5 seconds
>> >> >> >
>> >> >> > Kind regards,
>> >> >>
>> >> 
>> >>---------------------------------------------------------------------
>> >> >>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >> >>For additional commands, e-mail: axis-user-help@ws.apache.org
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >> >--
>> >> >www.ruchith.org
>> >> >
>> >> >---------------------------------------------------------------------
>> >> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >> >For additional commands, e-mail: axis-user-help@ws.apache.org
>> >> >
>> >>
>> >>
>> >>
>> >>---------------------------------------------------------------------
>> >>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >>For additional commands, e-mail: axis-user-help@ws.apache.org
>> >>
>> >>
>> >
>> >
>> >--
>> >www.ruchith.org
>> >
>> >---------------------------------------------------------------------
>> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >For additional commands, e-mail: axis-user-help@ws.apache.org
>> >
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>>For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
>
>
>--
>www.ruchith.org
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>For additional commands, e-mail: axis-user-help@ws.apache.org
>



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2] unable to run security sample.

Posted by Ruchith Fernando <ru...@gmail.com>.
Hi Wan,

If the message from the client is secured then probably you are missing the
<module ref="rampart"/> from the server side axis2.xml

Thanks,
Ruchith

On 7/19/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
> Dear Ruchith,
>
> Thank you, it seems to be that the client now found that library...
> after i run i got
>
> Buildfile: build.xml
>
> securitySample:
>      [java] 19.07.2006 13:04:03 org.apache.axis2.deployment.DeploymentEngine
> prepareRepository
>      [java] INFO: no services directory found , new one created
>      [java] 19.07.2006 13:04:03 org.apache.axis2.deployment.DeploymentEngine
> doDeploy
>      [java] INFO: Deploying module : addressing
>      [java] 19.07.2006 13:04:04 org.apache.axis2.deployment.DeploymentEngine
> doDeploy
>      [java] INFO: Deploying module : rampart
>      [java] 413
>      [java] org.apache.axis2.AxisFault: WSDoAllReceiver: Request does not
> contain required Security header
>      [java]     at
> org.apache.rampart.handler.WSDoAllReceiver.processBasic(WSDoAllReceiver.java:284)
>      [java]     at
> org.apache.rampart.handler.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:100)
>      [java]     at
> org.apache.rampart.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:75)
>      [java]     at org.apache.axis2.engine.Phase.invoke(Phase.java:380)
>      [java]     at
> org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:523)
>      [java]     at
> org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:492)
>      [java]     at
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:362)
>      [java]     at
> org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:280)
>      [java]     at
> org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:538)
>      [java]     at
> org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:472)
>      [java]     at sample.security.Client.main(Client.java:58)
>
> BUILD SUCCESSFUL
> Total time: 8 seconds
>
>        From the TCPMon, the client is successfully sent the message to the
> server but cannot get the reply back from the server.
>
>        what should i do now?
>
>        Wan
>
>
> >From: "Ruchith Fernando" <ru...@gmail.com>
> >Reply-To: axis-user@ws.apache.org
> >To: axis-user@ws.apache.org
> >Subject: Re: [Axis2] unable to run security sample.
> >Date: Wed, 19 Jul 2006 16:29:41 +0530
> >
> >Hi Wan,
> >
> >My bad... I forgot to mention one more jar !!
> >
> >Please add this [1] in to both service and client classpath.
> >
> >Thanks,
> >Ruchith
> >
> >[1] http://people.apache.org/repository/axis2/jars/axis2-rahas-SNAPSHOT.jar
> >
> >On 7/19/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
> >>
> >>Dear Ruchith,
> >>
> >>         i had changed now the modules in my client_repo/modules from
> >>addressing-1.0.mar and rampart-1.0.mar to addressing-SNAPSHOT.mar and
> >>rampart-SNAPSHOT.mar.
> >>
> >>         then i ran ant, and i got the following result
> >>
> >>Buildfile: build.xml
> >>
> >>securitySample:
> >>      [java] 19.07.2006 12:44:21
> >>org.apache.axis2.deployment.DeploymentEngine
> >>prepareRepository
> >>      [java] INFO: no services directory found , new one created
> >>      [java] 19.07.2006 12:44:21
> >>org.apache.axis2.deployment.DeploymentEngine
> >>doDeploy
> >>      [java] INFO: Deploying module : addressing
> >>      [java] Exception in thread "main" java.lang.NoClassDefFoundError:
> >>org/apache/rahas/TrustException
> >>      [java]     at java.lang.Class.forName0(Native Method)
> >>      [java]     at java.lang.Class.forName(Class.java:219)
> >>      [java]     at
> >>org.apache.axis2.deployment.util.Utils.getHandlerClass(Utils.java:198)
> >>      [java]     at
> >>org.apache.axis2.deployment.util.Utils.addFlowHandlers(Utils.java:58)
> >>      [java]     at
> >>org.apache.axis2.deployment.DeploymentEngine.addNewModule(DeploymentEngine.java:335)
> >>      [java]     at
> >>org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:690)
> >>      [java]     at
> >>org.apache.axis2.deployment.RepositoryListener.init(RepositoryListener.java:165)
> >>      [java]     at
> >>org.apache.axis2.deployment.RepositoryListener.<init>(RepositoryListener.java:53)
> >>      [java]     at
> >>org.apache.axis2.deployment.DeploymentEngine.loadRepository(DeploymentEngine.java:109)
> >>      [java]     at
> >>org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(FileSystemConfigurator.java:120)
> >>      [java]     at
> >>org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:60)
> >>      [java]     at
> >>org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:166)
> >>      [java]     at sample.security.Client.main(Client.java:48)
> >>      [java] Java Result: 1
> >>
> >>BUILD SUCCESSFUL
> >>Total time: 2 seconds
> >>
> >>            there was nothing return at the server side.
> >>
> >>            please take a look
> >>
> >>            Wan
> >>
> >> >From: "Ruchith Fernando" <ru...@gmail.com>
> >> >Reply-To: axis-user@ws.apache.org
> >> >To: axis-user@ws.apache.org
> >> >Subject: Re: [Axis2] unable to run security sample.
> >> >Date: Wed, 19 Jul 2006 15:58:58 +0530
> >> >
> >> >Hi,
> >> >
> >> >since you are using the latest nightly you have to use
> >> >rampart-SNAPSHOT.mar [1] and addressing-SNAPSHOT.mar [2] not the 1.0
> >> >release.
> >> >
> >> >Also please use wss4j-SNAPSHOT.jar [3].
> >> >
> >> >I will update the README.txt.
> >> >
> >> >Thanks,
> >> >Ruchith
> >> >
> >> >[1] http://people.apache.org/repository/axis2/mars/rampart-SNAPSHOT.mar
> >> >[2]
> >>http://people.apache.org/repository/axis2/mars/addressing-SNAPSHOT.mar
> >> >[3] http://people.apache.org/repository/wss4j/jars/wss4j-SNAPSHOT.jar
> >> >
> >> >On 7/19/06, Jan Bauer Nielsen <jb...@dtv.dk> wrote:
> >> >>Just to follow up on my own question.
> >> >>
> >> >>I can get the sample to work if I copy the secUtil.jar file to the
> >> >>axis2/WEB-INF/lib/ directory. But according to the 4th step in the
> >> >>README.txt this shouldn't be necessary. Can anyone shed some light on
> >> >>this?
> >> >>
> >> >>Jan
> >> >>
> >> >>Jan Bauer Nielsen wrote:
> >> >> > Hi.
> >> >> >
> >> >> > Using the latest nightly builds and following the steps in the
> >>README
> >> >> > file I get the following error from the server. Can anyone please
> >> >> > explain why this is so?
> >> >> >
> >> >> > $ ant securitySample
> >> >> > Buildfile: build.xml
> >> >> >
> >> >> > securitySample:
> >> >> >      [java] Jul 19, 2006 9:34:44 AM
> >> >> > org.apache.axis2.deployment.DeploymentEngine prepareRepository
> >> >> >      [java] INFO: no services directory found , new one created
> >> >> >      [java] Jul 19, 2006 9:34:45 AM
> >> >> > org.apache.axis2.deployment.DeploymentEngine doDeploy
> >> >> >      [java] INFO: Deploying module : rampart-1.0
> >> >> >      [java] Jul 19, 2006 9:34:45 AM
> >> >> > org.apache.axis2.deployment.DeploymentEngine doDeploy
> >> >> >      [java] INFO: Deploying module : addressing-1.0
> >> >> >      [java] org.apache.axis2.AxisFault: WSHandler: cannot load
> >>password
> >> >> > callback class: sample.security.PWCallback; nested exception is:
> >> >> >      [java]     java.lang.ClassNotFoundException:
> >> >> > sample.security.PWCallback
> >> >> >      [java]     at
> >> >> >
> >> >>org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:289)
> >> >> >
> >> >> >      [java]     at
> >> >> >
> >> >>org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:538)
> >> >> >      [java]     at
> >> >> >
> >> >>org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:472)
> >> >> >      [java]     at sample.security.Client.main(Client.java:58)
> >> >> >      [java] Caused by: java.lang.Exception:
> >>org.apache.axis2.AxisFault:
> >> >> > WSHandler: cannot load password callback class:
> >> >> > sample.security.PWCallback; nested exception is:
> >> >> >      [java]     java.lang.ClassNotFoundException:
> >> >> > sample.security.PWCallback; nested exception is:
> >> >> >      [java]     org.apache.ws.security.WSSecurityException:
> >>WSHandler:
> >> >> > cannot load password callback class: sample.security.PWCallback;
> >>nested
> >> >> > exception is:
> >> >> >      [java]     java.lang.ClassNotFoundException:
> >> >> > sample.security.PWCallback
> >> >> >      [java]     at
> >> >> >
> >> >>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:336)
> >> >> >
> >> >> >      [java]     at
> >> >> >
> >> >>org.apache.axis2.security.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:82)
> >> >> >
> >> >> >      [java]     at
> >>org.apache.axis2.engine.Phase.invoke(Phase.java:380)
> >> >> >      [java]     at
> >> >> > org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:523)
> >> >> >      [java]     at
> >> >> > org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:492)
> >> >> >      [java]     at
> >> >> >
> >> >>org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
> >> >> >
> >> >> >      [java]     at
> >> >> >
> >> >>org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144)
> >> >> >      [java]     at
> >> >> > javax.servlet.http.HttpServlet.service(HttpServlet.java:615)
> >> >> >      [java]     at
> >> >> > javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
> >> >> >      [java]     at
> >> >> >
> >> >>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> >> >> >
> >> >> >      [java]     at
> >> >> >
> >> >>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> >> >> >
> >> >> >      [java]     at
> >> >> >
> >> >>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> >> >> >
> >> >> >      [java]     at
> >> >> >
> >> >>org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> >> >> >
> >> >> >      [java]     at
> >> >> >
> >> >>org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:272)
> >> >> >
> >> >> >      [java]     at
> >> >> >
> >> >>org.apache.geronimo.tomcat.valve.TransactionContextValve.invoke(TransactionContextValve.java:53)
> >> >> >
> >> >> >      [java]     at
> >> >> >
> >> >>org.apache.geronimo.tomcat.valve.ComponentContextValve.invoke(ComponentContextValve.java:47)
> >> >> >
> >> >> >      [java]     at
> >> >> >
> >> >>org.apache.geronimo.tomcat.valve.InstanceContextValve.invoke(InstanceContextValve.java:60)
> >> >> >
> >> >> >      [java]     at
> >> >> >
> >> >>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> >> >> >
> >> >> >      [java]     at
> >> >> >
> >> >>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> >> >> >
> >> >> >      [java]     at
> >> >> >
> >> >>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
> >> >> >
> >> >> >      [java]     at
> >> >> >
> >> >>org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526)
> >> >> >      [java]     at
> >> >> >
> >> >>org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> >> >> >      [java]     at
> >> >> >
> >> >>org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
> >> >> >      [java]     at
> >> >> >
> >> >>org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
> >> >> >
> >> >> >      [java]     at
> >> >> >
> >> >>org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> >> >> >
> >> >> >      [java]     at
> >> >> >
> >> >>org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
> >> >> >
> >> >> >      [java]     at
> >> >> >
> >> >>org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> >> >> >
> >> >> >      [java]     at java.lang.Thread.run(Thread.java:595)
> >> >> >      [java] Caused by: org.apache.ws.security.WSSecurityException:
> >> >> > WSHandler: cannot load password callback class:
> >> >> > sample.security.PWCallback; nested exception is:
> >> >> >      [java]     java.lang.ClassNotFoundException:
> >> >> > sample.security.PWCallback
> >> >> >      [java]     at
> >> >> >
> >> >>org.apache.ws.security.handler.WSHandler.getPasswordCB(WSHandler.java:823)
> >> >> >      [java]     at
> >> >> >
> >> >>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:147)
> >> >> >
> >> >> >      [java]     ... 27 more
> >> >> >      [java] Caused by: java.lang.ClassNotFoundException:
> >> >> > sample.security.PWCallback
> >> >> >      [java]     at
> >> >>java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> >> >> >      [java]     at
> >>java.security.AccessController.doPrivileged(Native
> >> >> > Method)
> >> >> >      [java]     at
> >> >> > java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> >> >> >      [java]     at
> >> >>java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> >> >> >      [java]     at
> >> >>java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> >> >> >      [java]     at
> >> >> >
> >> >>org.apache.geronimo.tomcat.TomcatClassLoader.loadClass(TomcatClassLoader.java:62)
> >> >> >
> >> >> >      [java]     at
> >> >> > java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
> >> >> >      [java]     at java.lang.Class.forName0(Native Method)
> >> >> >      [java]     at java.lang.Class.forName(Class.java:164)
> >> >> >      [java]     at
> >> >> > org.apache.ws.security.util.Loader.loadClass(Loader.java:162)
> >> >> >      [java]     at
> >> >> > org.apache.ws.security.util.Loader.loadClass(Loader.java:135)
> >> >> >      [java]     at
> >> >> >
> >> >>org.apache.ws.security.handler.WSHandler.getPasswordCB(WSHandler.java:820)
> >> >> >      [java]     ... 28 more
> >> >> >
> >> >> >      [java]     at
> >> >>org.apache.axis2.AxisFault.<init>(AxisFault.java:159)
> >> >> >      [java]     ... 4 more
> >> >> >
> >> >> > BUILD SUCCESSFUL
> >> >> > Total time: 5 seconds
> >> >> >
> >> >> > Kind regards,
> >> >>
> >> >>---------------------------------------------------------------------
> >> >>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >> >>For additional commands, e-mail: axis-user-help@ws.apache.org
> >> >>
> >> >>
> >> >
> >> >
> >> >--
> >> >www.ruchith.org
> >> >
> >> >---------------------------------------------------------------------
> >> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >> >For additional commands, e-mail: axis-user-help@ws.apache.org
> >> >
> >>
> >>
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >>For additional commands, e-mail: axis-user-help@ws.apache.org
> >>
> >>
> >
> >
> >--
> >www.ruchith.org
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >For additional commands, e-mail: axis-user-help@ws.apache.org
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
www.ruchith.org

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2] unable to run security sample.

Posted by Jan Bauer Nielsen <jb...@dtv.dk>.
Thanks a lot Ruchith.

Now everything seems to work as expected. :-)

Jan

Ruchith Fernando wrote:
> Hi Wan,
> 
> My bad... I forgot to mention one more jar !!
> 
> Please add this [1] in to both service and client classpath.
> 
> Thanks,
> Ruchith
> 
> [1] http://people.apache.org/repository/axis2/jars/axis2-rahas-SNAPSHOT.jar
> 
> On 7/19/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
>>
>> Dear Ruchith,
>>
>>         i had changed now the modules in my client_repo/modules from
>> addressing-1.0.mar and rampart-1.0.mar to addressing-SNAPSHOT.mar and
>> rampart-SNAPSHOT.mar.
>>
>>         then i ran ant, and i got the following result
>>
>> Buildfile: build.xml
>>
>> securitySample:
>>      [java] 19.07.2006 12:44:21 
>> org.apache.axis2.deployment.DeploymentEngine
>> prepareRepository
>>      [java] INFO: no services directory found , new one created
>>      [java] 19.07.2006 12:44:21 
>> org.apache.axis2.deployment.DeploymentEngine
>> doDeploy
>>      [java] INFO: Deploying module : addressing
>>      [java] Exception in thread "main" java.lang.NoClassDefFoundError:
>> org/apache/rahas/TrustException
>>      [java]     at java.lang.Class.forName0(Native Method)
>>      [java]     at java.lang.Class.forName(Class.java:219)
>>      [java]     at
>> org.apache.axis2.deployment.util.Utils.getHandlerClass(Utils.java:198)
>>      [java]     at
>> org.apache.axis2.deployment.util.Utils.addFlowHandlers(Utils.java:58)
>>      [java]     at
>> org.apache.axis2.deployment.DeploymentEngine.addNewModule(DeploymentEngine.java:335) 
>>
>>      [java]     at
>> org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:690) 
>>
>>      [java]     at
>> org.apache.axis2.deployment.RepositoryListener.init(RepositoryListener.java:165) 
>>
>>      [java]     at
>> org.apache.axis2.deployment.RepositoryListener.<init>(RepositoryListener.java:53) 
>>
>>      [java]     at
>> org.apache.axis2.deployment.DeploymentEngine.loadRepository(DeploymentEngine.java:109) 
>>
>>      [java]     at
>> org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(FileSystemConfigurator.java:120) 
>>
>>      [java]     at
>> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:60) 
>>
>>      [java]     at
>> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:166) 
>>
>>      [java]     at sample.security.Client.main(Client.java:48)
>>      [java] Java Result: 1
>>
>> BUILD SUCCESSFUL
>> Total time: 2 seconds
>>
>>            there was nothing return at the server side.
>>
>>            please take a look
>>
>>            Wan
>>
>> >From: "Ruchith Fernando" <ru...@gmail.com>
>> >Reply-To: axis-user@ws.apache.org
>> >To: axis-user@ws.apache.org
>> >Subject: Re: [Axis2] unable to run security sample.
>> >Date: Wed, 19 Jul 2006 15:58:58 +0530
>> >
>> >Hi,
>> >
>> >since you are using the latest nightly you have to use
>> >rampart-SNAPSHOT.mar [1] and addressing-SNAPSHOT.mar [2] not the 1.0
>> >release.
>> >
>> >Also please use wss4j-SNAPSHOT.jar [3].
>> >
>> >I will update the README.txt.
>> >
>> >Thanks,
>> >Ruchith
>> >
>> >[1] http://people.apache.org/repository/axis2/mars/rampart-SNAPSHOT.mar
>> >[2] 
>> http://people.apache.org/repository/axis2/mars/addressing-SNAPSHOT.mar
>> >[3] http://people.apache.org/repository/wss4j/jars/wss4j-SNAPSHOT.jar
>> >
>> >On 7/19/06, Jan Bauer Nielsen <jb...@dtv.dk> wrote:
>> >>Just to follow up on my own question.
>> >>
>> >>I can get the sample to work if I copy the secUtil.jar file to the
>> >>axis2/WEB-INF/lib/ directory. But according to the 4th step in the
>> >>README.txt this shouldn't be necessary. Can anyone shed some light on
>> >>this?
>> >>
>> >>Jan
>> >>
>> >>Jan Bauer Nielsen wrote:
>> >> > Hi.
>> >> >
>> >> > Using the latest nightly builds and following the steps in the 
>> README
>> >> > file I get the following error from the server. Can anyone please
>> >> > explain why this is so?
>> >> >
>> >> > $ ant securitySample
>> >> > Buildfile: build.xml
>> >> >
>> >> > securitySample:
>> >> >      [java] Jul 19, 2006 9:34:44 AM
>> >> > org.apache.axis2.deployment.DeploymentEngine prepareRepository
>> >> >      [java] INFO: no services directory found , new one created
>> >> >      [java] Jul 19, 2006 9:34:45 AM
>> >> > org.apache.axis2.deployment.DeploymentEngine doDeploy
>> >> >      [java] INFO: Deploying module : rampart-1.0
>> >> >      [java] Jul 19, 2006 9:34:45 AM
>> >> > org.apache.axis2.deployment.DeploymentEngine doDeploy
>> >> >      [java] INFO: Deploying module : addressing-1.0
>> >> >      [java] org.apache.axis2.AxisFault: WSHandler: cannot load 
>> password
>> >> > callback class: sample.security.PWCallback; nested exception is:
>> >> >      [java]     java.lang.ClassNotFoundException:
>> >> > sample.security.PWCallback
>> >> >      [java]     at
>> >> >
>> >>org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:289) 
>>
>> >> >
>> >> >      [java]     at
>> >> >
>> >>org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:538) 
>>
>> >> >      [java]     at
>> >> >
>> >>org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:472) 
>>
>> >> >      [java]     at sample.security.Client.main(Client.java:58)
>> >> >      [java] Caused by: java.lang.Exception: 
>> org.apache.axis2.AxisFault:
>> >> > WSHandler: cannot load password callback class:
>> >> > sample.security.PWCallback; nested exception is:
>> >> >      [java]     java.lang.ClassNotFoundException:
>> >> > sample.security.PWCallback; nested exception is:
>> >> >      [java]     org.apache.ws.security.WSSecurityException: 
>> WSHandler:
>> >> > cannot load password callback class: sample.security.PWCallback; 
>> nested
>> >> > exception is:
>> >> >      [java]     java.lang.ClassNotFoundException:
>> >> > sample.security.PWCallback
>> >> >      [java]     at
>> >> >
>> >>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:336) 
>>
>> >> >
>> >> >      [java]     at
>> >> >
>> >>org.apache.axis2.security.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:82) 
>>
>> >> >
>> >> >      [java]     at 
>> org.apache.axis2.engine.Phase.invoke(Phase.java:380)
>> >> >      [java]     at
>> >> > org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:523)
>> >> >      [java]     at
>> >> > org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:492)
>> >> >      [java]     at
>> >> >
>> >>org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284) 
>>
>> >> >
>> >> >      [java]     at
>> >> >
>> >>org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144) 
>>
>> >> >      [java]     at
>> >> > javax.servlet.http.HttpServlet.service(HttpServlet.java:615)
>> >> >      [java]     at
>> >> > javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
>> >> >      [java]     at
>> >> >
>> >>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) 
>>
>> >> >
>> >> >      [java]     at
>> >> >
>> >>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) 
>>
>> >> >
>> >> >      [java]     at
>> >> >
>> >>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) 
>>
>> >> >
>> >> >      [java]     at
>> >> >
>> >>org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) 
>>
>> >> >
>> >> >      [java]     at
>> >> >
>> >>org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:272) 
>>
>> >> >
>> >> >      [java]     at
>> >> >
>> >>org.apache.geronimo.tomcat.valve.TransactionContextValve.invoke(TransactionContextValve.java:53) 
>>
>> >> >
>> >> >      [java]     at
>> >> >
>> >>org.apache.geronimo.tomcat.valve.ComponentContextValve.invoke(ComponentContextValve.java:47) 
>>
>> >> >
>> >> >      [java]     at
>> >> >
>> >>org.apache.geronimo.tomcat.valve.InstanceContextValve.invoke(InstanceContextValve.java:60) 
>>
>> >> >
>> >> >      [java]     at
>> >> >
>> >>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) 
>>
>> >> >
>> >> >      [java]     at
>> >> >
>> >>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) 
>>
>> >> >
>> >> >      [java]     at
>> >> >
>> >>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) 
>>
>> >> >
>> >> >      [java]     at
>> >> >
>> >>org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526) 
>>
>> >> >      [java]     at
>> >> >
>> >>org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) 
>>
>> >> >      [java]     at
>> >> >
>> >>org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) 
>>
>> >> >      [java]     at
>> >> >
>> >>org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744) 
>>
>> >> >
>> >> >      [java]     at
>> >> >
>> >>org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) 
>>
>> >> >
>> >> >      [java]     at
>> >> >
>> >>org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) 
>>
>> >> >
>> >> >      [java]     at
>> >> >
>> >>org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) 
>>
>> >> >
>> >> >      [java]     at java.lang.Thread.run(Thread.java:595)
>> >> >      [java] Caused by: org.apache.ws.security.WSSecurityException:
>> >> > WSHandler: cannot load password callback class:
>> >> > sample.security.PWCallback; nested exception is:
>> >> >      [java]     java.lang.ClassNotFoundException:
>> >> > sample.security.PWCallback
>> >> >      [java]     at
>> >> >
>> >>org.apache.ws.security.handler.WSHandler.getPasswordCB(WSHandler.java:823) 
>>
>> >> >      [java]     at
>> >> >
>> >>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:147) 
>>
>> >> >
>> >> >      [java]     ... 27 more
>> >> >      [java] Caused by: java.lang.ClassNotFoundException:
>> >> > sample.security.PWCallback
>> >> >      [java]     at
>> >>java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>> >> >      [java]     at 
>> java.security.AccessController.doPrivileged(Native
>> >> > Method)
>> >> >      [java]     at
>> >> > java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>> >> >      [java]     at
>> >>java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>> >> >      [java]     at
>> >>java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>> >> >      [java]     at
>> >> >
>> >>org.apache.geronimo.tomcat.TomcatClassLoader.loadClass(TomcatClassLoader.java:62) 
>>
>> >> >
>> >> >      [java]     at
>> >> > java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>> >> >      [java]     at java.lang.Class.forName0(Native Method)
>> >> >      [java]     at java.lang.Class.forName(Class.java:164)
>> >> >      [java]     at
>> >> > org.apache.ws.security.util.Loader.loadClass(Loader.java:162)
>> >> >      [java]     at
>> >> > org.apache.ws.security.util.Loader.loadClass(Loader.java:135)
>> >> >      [java]     at
>> >> >
>> >>org.apache.ws.security.handler.WSHandler.getPasswordCB(WSHandler.java:820) 
>>
>> >> >      [java]     ... 28 more
>> >> >
>> >> >      [java]     at
>> >>org.apache.axis2.AxisFault.<init>(AxisFault.java:159)
>> >> >      [java]     ... 4 more
>> >> >
>> >> > BUILD SUCCESSFUL
>> >> > Total time: 5 seconds
>> >> >
>> >> > Kind regards,
>> >>
>> >>---------------------------------------------------------------------
>> >>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >>For additional commands, e-mail: axis-user-help@ws.apache.org
>> >>
>> >>
>> >
>> >
>> >--
>> >www.ruchith.org
>> >
>> >---------------------------------------------------------------------
>> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >For additional commands, e-mail: axis-user-help@ws.apache.org
>> >
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2] unable to run security sample.

Posted by Wan Kaveevivitchai <wa...@hotmail.com>.
Dear Ruchith,

Thank you, it seems to be that the client now found that library...
after i run i got

Buildfile: build.xml

securitySample:
     [java] 19.07.2006 13:04:03 org.apache.axis2.deployment.DeploymentEngine 
prepareRepository
     [java] INFO: no services directory found , new one created
     [java] 19.07.2006 13:04:03 org.apache.axis2.deployment.DeploymentEngine 
doDeploy
     [java] INFO: Deploying module : addressing
     [java] 19.07.2006 13:04:04 org.apache.axis2.deployment.DeploymentEngine 
doDeploy
     [java] INFO: Deploying module : rampart
     [java] 413
     [java] org.apache.axis2.AxisFault: WSDoAllReceiver: Request does not 
contain required Security header
     [java]     at 
org.apache.rampart.handler.WSDoAllReceiver.processBasic(WSDoAllReceiver.java:284)
     [java]     at 
org.apache.rampart.handler.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:100)
     [java]     at 
org.apache.rampart.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:75)
     [java]     at org.apache.axis2.engine.Phase.invoke(Phase.java:380)
     [java]     at 
org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:523)
     [java]     at 
org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:492)
     [java]     at 
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:362)
     [java]     at 
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:280)
     [java]     at 
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:538)
     [java]     at 
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:472)
     [java]     at sample.security.Client.main(Client.java:58)

BUILD SUCCESSFUL
Total time: 8 seconds

       From the TCPMon, the client is successfully sent the message to the 
server but cannot get the reply back from the server.

       what should i do now?

       Wan


>From: "Ruchith Fernando" <ru...@gmail.com>
>Reply-To: axis-user@ws.apache.org
>To: axis-user@ws.apache.org
>Subject: Re: [Axis2] unable to run security sample.
>Date: Wed, 19 Jul 2006 16:29:41 +0530
>
>Hi Wan,
>
>My bad... I forgot to mention one more jar !!
>
>Please add this [1] in to both service and client classpath.
>
>Thanks,
>Ruchith
>
>[1] http://people.apache.org/repository/axis2/jars/axis2-rahas-SNAPSHOT.jar
>
>On 7/19/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
>>
>>Dear Ruchith,
>>
>>         i had changed now the modules in my client_repo/modules from
>>addressing-1.0.mar and rampart-1.0.mar to addressing-SNAPSHOT.mar and
>>rampart-SNAPSHOT.mar.
>>
>>         then i ran ant, and i got the following result
>>
>>Buildfile: build.xml
>>
>>securitySample:
>>      [java] 19.07.2006 12:44:21 
>>org.apache.axis2.deployment.DeploymentEngine
>>prepareRepository
>>      [java] INFO: no services directory found , new one created
>>      [java] 19.07.2006 12:44:21 
>>org.apache.axis2.deployment.DeploymentEngine
>>doDeploy
>>      [java] INFO: Deploying module : addressing
>>      [java] Exception in thread "main" java.lang.NoClassDefFoundError:
>>org/apache/rahas/TrustException
>>      [java]     at java.lang.Class.forName0(Native Method)
>>      [java]     at java.lang.Class.forName(Class.java:219)
>>      [java]     at
>>org.apache.axis2.deployment.util.Utils.getHandlerClass(Utils.java:198)
>>      [java]     at
>>org.apache.axis2.deployment.util.Utils.addFlowHandlers(Utils.java:58)
>>      [java]     at
>>org.apache.axis2.deployment.DeploymentEngine.addNewModule(DeploymentEngine.java:335)
>>      [java]     at
>>org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:690)
>>      [java]     at
>>org.apache.axis2.deployment.RepositoryListener.init(RepositoryListener.java:165)
>>      [java]     at
>>org.apache.axis2.deployment.RepositoryListener.<init>(RepositoryListener.java:53)
>>      [java]     at
>>org.apache.axis2.deployment.DeploymentEngine.loadRepository(DeploymentEngine.java:109)
>>      [java]     at
>>org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(FileSystemConfigurator.java:120)
>>      [java]     at
>>org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:60)
>>      [java]     at
>>org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:166)
>>      [java]     at sample.security.Client.main(Client.java:48)
>>      [java] Java Result: 1
>>
>>BUILD SUCCESSFUL
>>Total time: 2 seconds
>>
>>            there was nothing return at the server side.
>>
>>            please take a look
>>
>>            Wan
>>
>> >From: "Ruchith Fernando" <ru...@gmail.com>
>> >Reply-To: axis-user@ws.apache.org
>> >To: axis-user@ws.apache.org
>> >Subject: Re: [Axis2] unable to run security sample.
>> >Date: Wed, 19 Jul 2006 15:58:58 +0530
>> >
>> >Hi,
>> >
>> >since you are using the latest nightly you have to use
>> >rampart-SNAPSHOT.mar [1] and addressing-SNAPSHOT.mar [2] not the 1.0
>> >release.
>> >
>> >Also please use wss4j-SNAPSHOT.jar [3].
>> >
>> >I will update the README.txt.
>> >
>> >Thanks,
>> >Ruchith
>> >
>> >[1] http://people.apache.org/repository/axis2/mars/rampart-SNAPSHOT.mar
>> >[2] 
>>http://people.apache.org/repository/axis2/mars/addressing-SNAPSHOT.mar
>> >[3] http://people.apache.org/repository/wss4j/jars/wss4j-SNAPSHOT.jar
>> >
>> >On 7/19/06, Jan Bauer Nielsen <jb...@dtv.dk> wrote:
>> >>Just to follow up on my own question.
>> >>
>> >>I can get the sample to work if I copy the secUtil.jar file to the
>> >>axis2/WEB-INF/lib/ directory. But according to the 4th step in the
>> >>README.txt this shouldn't be necessary. Can anyone shed some light on
>> >>this?
>> >>
>> >>Jan
>> >>
>> >>Jan Bauer Nielsen wrote:
>> >> > Hi.
>> >> >
>> >> > Using the latest nightly builds and following the steps in the 
>>README
>> >> > file I get the following error from the server. Can anyone please
>> >> > explain why this is so?
>> >> >
>> >> > $ ant securitySample
>> >> > Buildfile: build.xml
>> >> >
>> >> > securitySample:
>> >> >      [java] Jul 19, 2006 9:34:44 AM
>> >> > org.apache.axis2.deployment.DeploymentEngine prepareRepository
>> >> >      [java] INFO: no services directory found , new one created
>> >> >      [java] Jul 19, 2006 9:34:45 AM
>> >> > org.apache.axis2.deployment.DeploymentEngine doDeploy
>> >> >      [java] INFO: Deploying module : rampart-1.0
>> >> >      [java] Jul 19, 2006 9:34:45 AM
>> >> > org.apache.axis2.deployment.DeploymentEngine doDeploy
>> >> >      [java] INFO: Deploying module : addressing-1.0
>> >> >      [java] org.apache.axis2.AxisFault: WSHandler: cannot load 
>>password
>> >> > callback class: sample.security.PWCallback; nested exception is:
>> >> >      [java]     java.lang.ClassNotFoundException:
>> >> > sample.security.PWCallback
>> >> >      [java]     at
>> >> >
>> >>org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:289)
>> >> >
>> >> >      [java]     at
>> >> >
>> >>org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:538)
>> >> >      [java]     at
>> >> >
>> >>org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:472)
>> >> >      [java]     at sample.security.Client.main(Client.java:58)
>> >> >      [java] Caused by: java.lang.Exception: 
>>org.apache.axis2.AxisFault:
>> >> > WSHandler: cannot load password callback class:
>> >> > sample.security.PWCallback; nested exception is:
>> >> >      [java]     java.lang.ClassNotFoundException:
>> >> > sample.security.PWCallback; nested exception is:
>> >> >      [java]     org.apache.ws.security.WSSecurityException: 
>>WSHandler:
>> >> > cannot load password callback class: sample.security.PWCallback; 
>>nested
>> >> > exception is:
>> >> >      [java]     java.lang.ClassNotFoundException:
>> >> > sample.security.PWCallback
>> >> >      [java]     at
>> >> >
>> >>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:336)
>> >> >
>> >> >      [java]     at
>> >> >
>> >>org.apache.axis2.security.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:82)
>> >> >
>> >> >      [java]     at 
>>org.apache.axis2.engine.Phase.invoke(Phase.java:380)
>> >> >      [java]     at
>> >> > org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:523)
>> >> >      [java]     at
>> >> > org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:492)
>> >> >      [java]     at
>> >> >
>> >>org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
>> >> >
>> >> >      [java]     at
>> >> >
>> >>org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144)
>> >> >      [java]     at
>> >> > javax.servlet.http.HttpServlet.service(HttpServlet.java:615)
>> >> >      [java]     at
>> >> > javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
>> >> >      [java]     at
>> >> >
>> >>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>> >> >
>> >> >      [java]     at
>> >> >
>> >>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>> >> >
>> >> >      [java]     at
>> >> >
>> >>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>> >> >
>> >> >      [java]     at
>> >> >
>> >>org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>> >> >
>> >> >      [java]     at
>> >> >
>> >>org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:272)
>> >> >
>> >> >      [java]     at
>> >> >
>> >>org.apache.geronimo.tomcat.valve.TransactionContextValve.invoke(TransactionContextValve.java:53)
>> >> >
>> >> >      [java]     at
>> >> >
>> >>org.apache.geronimo.tomcat.valve.ComponentContextValve.invoke(ComponentContextValve.java:47)
>> >> >
>> >> >      [java]     at
>> >> >
>> >>org.apache.geronimo.tomcat.valve.InstanceContextValve.invoke(InstanceContextValve.java:60)
>> >> >
>> >> >      [java]     at
>> >> >
>> >>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>> >> >
>> >> >      [java]     at
>> >> >
>> >>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>> >> >
>> >> >      [java]     at
>> >> >
>> >>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>> >> >
>> >> >      [java]     at
>> >> >
>> >>org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526)
>> >> >      [java]     at
>> >> >
>> >>org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>> >> >      [java]     at
>> >> >
>> >>org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
>> >> >      [java]     at
>> >> >
>> >>org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
>> >> >
>> >> >      [java]     at
>> >> >
>> >>org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>> >> >
>> >> >      [java]     at
>> >> >
>> >>org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
>> >> >
>> >> >      [java]     at
>> >> >
>> >>org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>> >> >
>> >> >      [java]     at java.lang.Thread.run(Thread.java:595)
>> >> >      [java] Caused by: org.apache.ws.security.WSSecurityException:
>> >> > WSHandler: cannot load password callback class:
>> >> > sample.security.PWCallback; nested exception is:
>> >> >      [java]     java.lang.ClassNotFoundException:
>> >> > sample.security.PWCallback
>> >> >      [java]     at
>> >> >
>> >>org.apache.ws.security.handler.WSHandler.getPasswordCB(WSHandler.java:823)
>> >> >      [java]     at
>> >> >
>> >>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:147)
>> >> >
>> >> >      [java]     ... 27 more
>> >> >      [java] Caused by: java.lang.ClassNotFoundException:
>> >> > sample.security.PWCallback
>> >> >      [java]     at
>> >>java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>> >> >      [java]     at 
>>java.security.AccessController.doPrivileged(Native
>> >> > Method)
>> >> >      [java]     at
>> >> > java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>> >> >      [java]     at
>> >>java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>> >> >      [java]     at
>> >>java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>> >> >      [java]     at
>> >> >
>> >>org.apache.geronimo.tomcat.TomcatClassLoader.loadClass(TomcatClassLoader.java:62)
>> >> >
>> >> >      [java]     at
>> >> > java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>> >> >      [java]     at java.lang.Class.forName0(Native Method)
>> >> >      [java]     at java.lang.Class.forName(Class.java:164)
>> >> >      [java]     at
>> >> > org.apache.ws.security.util.Loader.loadClass(Loader.java:162)
>> >> >      [java]     at
>> >> > org.apache.ws.security.util.Loader.loadClass(Loader.java:135)
>> >> >      [java]     at
>> >> >
>> >>org.apache.ws.security.handler.WSHandler.getPasswordCB(WSHandler.java:820)
>> >> >      [java]     ... 28 more
>> >> >
>> >> >      [java]     at
>> >>org.apache.axis2.AxisFault.<init>(AxisFault.java:159)
>> >> >      [java]     ... 4 more
>> >> >
>> >> > BUILD SUCCESSFUL
>> >> > Total time: 5 seconds
>> >> >
>> >> > Kind regards,
>> >>
>> >>---------------------------------------------------------------------
>> >>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >>For additional commands, e-mail: axis-user-help@ws.apache.org
>> >>
>> >>
>> >
>> >
>> >--
>> >www.ruchith.org
>> >
>> >---------------------------------------------------------------------
>> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >For additional commands, e-mail: axis-user-help@ws.apache.org
>> >
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>>For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
>
>
>--
>www.ruchith.org
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>For additional commands, e-mail: axis-user-help@ws.apache.org
>



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2] unable to run security sample.

Posted by Ruchith Fernando <ru...@gmail.com>.
Hi Wan,

My bad... I forgot to mention one more jar !!

Please add this [1] in to both service and client classpath.

Thanks,
Ruchith

[1] http://people.apache.org/repository/axis2/jars/axis2-rahas-SNAPSHOT.jar

On 7/19/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
>
> Dear Ruchith,
>
>         i had changed now the modules in my client_repo/modules from
> addressing-1.0.mar and rampart-1.0.mar to addressing-SNAPSHOT.mar and
> rampart-SNAPSHOT.mar.
>
>         then i ran ant, and i got the following result
>
> Buildfile: build.xml
>
> securitySample:
>      [java] 19.07.2006 12:44:21 org.apache.axis2.deployment.DeploymentEngine
> prepareRepository
>      [java] INFO: no services directory found , new one created
>      [java] 19.07.2006 12:44:21 org.apache.axis2.deployment.DeploymentEngine
> doDeploy
>      [java] INFO: Deploying module : addressing
>      [java] Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/rahas/TrustException
>      [java]     at java.lang.Class.forName0(Native Method)
>      [java]     at java.lang.Class.forName(Class.java:219)
>      [java]     at
> org.apache.axis2.deployment.util.Utils.getHandlerClass(Utils.java:198)
>      [java]     at
> org.apache.axis2.deployment.util.Utils.addFlowHandlers(Utils.java:58)
>      [java]     at
> org.apache.axis2.deployment.DeploymentEngine.addNewModule(DeploymentEngine.java:335)
>      [java]     at
> org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:690)
>      [java]     at
> org.apache.axis2.deployment.RepositoryListener.init(RepositoryListener.java:165)
>      [java]     at
> org.apache.axis2.deployment.RepositoryListener.<init>(RepositoryListener.java:53)
>      [java]     at
> org.apache.axis2.deployment.DeploymentEngine.loadRepository(DeploymentEngine.java:109)
>      [java]     at
> org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(FileSystemConfigurator.java:120)
>      [java]     at
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:60)
>      [java]     at
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:166)
>      [java]     at sample.security.Client.main(Client.java:48)
>      [java] Java Result: 1
>
> BUILD SUCCESSFUL
> Total time: 2 seconds
>
>            there was nothing return at the server side.
>
>            please take a look
>
>            Wan
>
> >From: "Ruchith Fernando" <ru...@gmail.com>
> >Reply-To: axis-user@ws.apache.org
> >To: axis-user@ws.apache.org
> >Subject: Re: [Axis2] unable to run security sample.
> >Date: Wed, 19 Jul 2006 15:58:58 +0530
> >
> >Hi,
> >
> >since you are using the latest nightly you have to use
> >rampart-SNAPSHOT.mar [1] and addressing-SNAPSHOT.mar [2] not the 1.0
> >release.
> >
> >Also please use wss4j-SNAPSHOT.jar [3].
> >
> >I will update the README.txt.
> >
> >Thanks,
> >Ruchith
> >
> >[1] http://people.apache.org/repository/axis2/mars/rampart-SNAPSHOT.mar
> >[2] http://people.apache.org/repository/axis2/mars/addressing-SNAPSHOT.mar
> >[3] http://people.apache.org/repository/wss4j/jars/wss4j-SNAPSHOT.jar
> >
> >On 7/19/06, Jan Bauer Nielsen <jb...@dtv.dk> wrote:
> >>Just to follow up on my own question.
> >>
> >>I can get the sample to work if I copy the secUtil.jar file to the
> >>axis2/WEB-INF/lib/ directory. But according to the 4th step in the
> >>README.txt this shouldn't be necessary. Can anyone shed some light on
> >>this?
> >>
> >>Jan
> >>
> >>Jan Bauer Nielsen wrote:
> >> > Hi.
> >> >
> >> > Using the latest nightly builds and following the steps in the README
> >> > file I get the following error from the server. Can anyone please
> >> > explain why this is so?
> >> >
> >> > $ ant securitySample
> >> > Buildfile: build.xml
> >> >
> >> > securitySample:
> >> >      [java] Jul 19, 2006 9:34:44 AM
> >> > org.apache.axis2.deployment.DeploymentEngine prepareRepository
> >> >      [java] INFO: no services directory found , new one created
> >> >      [java] Jul 19, 2006 9:34:45 AM
> >> > org.apache.axis2.deployment.DeploymentEngine doDeploy
> >> >      [java] INFO: Deploying module : rampart-1.0
> >> >      [java] Jul 19, 2006 9:34:45 AM
> >> > org.apache.axis2.deployment.DeploymentEngine doDeploy
> >> >      [java] INFO: Deploying module : addressing-1.0
> >> >      [java] org.apache.axis2.AxisFault: WSHandler: cannot load password
> >> > callback class: sample.security.PWCallback; nested exception is:
> >> >      [java]     java.lang.ClassNotFoundException:
> >> > sample.security.PWCallback
> >> >      [java]     at
> >> >
> >>org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:289)
> >> >
> >> >      [java]     at
> >> >
> >>org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:538)
> >> >      [java]     at
> >> >
> >>org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:472)
> >> >      [java]     at sample.security.Client.main(Client.java:58)
> >> >      [java] Caused by: java.lang.Exception: org.apache.axis2.AxisFault:
> >> > WSHandler: cannot load password callback class:
> >> > sample.security.PWCallback; nested exception is:
> >> >      [java]     java.lang.ClassNotFoundException:
> >> > sample.security.PWCallback; nested exception is:
> >> >      [java]     org.apache.ws.security.WSSecurityException: WSHandler:
> >> > cannot load password callback class: sample.security.PWCallback; nested
> >> > exception is:
> >> >      [java]     java.lang.ClassNotFoundException:
> >> > sample.security.PWCallback
> >> >      [java]     at
> >> >
> >>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:336)
> >> >
> >> >      [java]     at
> >> >
> >>org.apache.axis2.security.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:82)
> >> >
> >> >      [java]     at org.apache.axis2.engine.Phase.invoke(Phase.java:380)
> >> >      [java]     at
> >> > org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:523)
> >> >      [java]     at
> >> > org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:492)
> >> >      [java]     at
> >> >
> >>org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
> >> >
> >> >      [java]     at
> >> >
> >>org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144)
> >> >      [java]     at
> >> > javax.servlet.http.HttpServlet.service(HttpServlet.java:615)
> >> >      [java]     at
> >> > javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
> >> >      [java]     at
> >> >
> >>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> >> >
> >> >      [java]     at
> >> >
> >>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> >> >
> >> >      [java]     at
> >> >
> >>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> >> >
> >> >      [java]     at
> >> >
> >>org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> >> >
> >> >      [java]     at
> >> >
> >>org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:272)
> >> >
> >> >      [java]     at
> >> >
> >>org.apache.geronimo.tomcat.valve.TransactionContextValve.invoke(TransactionContextValve.java:53)
> >> >
> >> >      [java]     at
> >> >
> >>org.apache.geronimo.tomcat.valve.ComponentContextValve.invoke(ComponentContextValve.java:47)
> >> >
> >> >      [java]     at
> >> >
> >>org.apache.geronimo.tomcat.valve.InstanceContextValve.invoke(InstanceContextValve.java:60)
> >> >
> >> >      [java]     at
> >> >
> >>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> >> >
> >> >      [java]     at
> >> >
> >>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> >> >
> >> >      [java]     at
> >> >
> >>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
> >> >
> >> >      [java]     at
> >> >
> >>org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526)
> >> >      [java]     at
> >> >
> >>org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> >> >      [java]     at
> >> >
> >>org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
> >> >      [java]     at
> >> >
> >>org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
> >> >
> >> >      [java]     at
> >> >
> >>org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> >> >
> >> >      [java]     at
> >> >
> >>org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
> >> >
> >> >      [java]     at
> >> >
> >>org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> >> >
> >> >      [java]     at java.lang.Thread.run(Thread.java:595)
> >> >      [java] Caused by: org.apache.ws.security.WSSecurityException:
> >> > WSHandler: cannot load password callback class:
> >> > sample.security.PWCallback; nested exception is:
> >> >      [java]     java.lang.ClassNotFoundException:
> >> > sample.security.PWCallback
> >> >      [java]     at
> >> >
> >>org.apache.ws.security.handler.WSHandler.getPasswordCB(WSHandler.java:823)
> >> >      [java]     at
> >> >
> >>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:147)
> >> >
> >> >      [java]     ... 27 more
> >> >      [java] Caused by: java.lang.ClassNotFoundException:
> >> > sample.security.PWCallback
> >> >      [java]     at
> >>java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> >> >      [java]     at java.security.AccessController.doPrivileged(Native
> >> > Method)
> >> >      [java]     at
> >> > java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> >> >      [java]     at
> >>java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> >> >      [java]     at
> >>java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> >> >      [java]     at
> >> >
> >>org.apache.geronimo.tomcat.TomcatClassLoader.loadClass(TomcatClassLoader.java:62)
> >> >
> >> >      [java]     at
> >> > java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
> >> >      [java]     at java.lang.Class.forName0(Native Method)
> >> >      [java]     at java.lang.Class.forName(Class.java:164)
> >> >      [java]     at
> >> > org.apache.ws.security.util.Loader.loadClass(Loader.java:162)
> >> >      [java]     at
> >> > org.apache.ws.security.util.Loader.loadClass(Loader.java:135)
> >> >      [java]     at
> >> >
> >>org.apache.ws.security.handler.WSHandler.getPasswordCB(WSHandler.java:820)
> >> >      [java]     ... 28 more
> >> >
> >> >      [java]     at
> >>org.apache.axis2.AxisFault.<init>(AxisFault.java:159)
> >> >      [java]     ... 4 more
> >> >
> >> > BUILD SUCCESSFUL
> >> > Total time: 5 seconds
> >> >
> >> > Kind regards,
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >>For additional commands, e-mail: axis-user-help@ws.apache.org
> >>
> >>
> >
> >
> >--
> >www.ruchith.org
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >For additional commands, e-mail: axis-user-help@ws.apache.org
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
www.ruchith.org

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2] unable to run security sample.

Posted by Wan Kaveevivitchai <wa...@hotmail.com>.
Dear Ruchith,

        i had changed now the modules in my client_repo/modules from 
addressing-1.0.mar and rampart-1.0.mar to addressing-SNAPSHOT.mar and 
rampart-SNAPSHOT.mar.

        then i ran ant, and i got the following result

Buildfile: build.xml

securitySample:
     [java] 19.07.2006 12:44:21 org.apache.axis2.deployment.DeploymentEngine 
prepareRepository
     [java] INFO: no services directory found , new one created
     [java] 19.07.2006 12:44:21 org.apache.axis2.deployment.DeploymentEngine 
doDeploy
     [java] INFO: Deploying module : addressing
     [java] Exception in thread "main" java.lang.NoClassDefFoundError: 
org/apache/rahas/TrustException
     [java]     at java.lang.Class.forName0(Native Method)
     [java]     at java.lang.Class.forName(Class.java:219)
     [java]     at 
org.apache.axis2.deployment.util.Utils.getHandlerClass(Utils.java:198)
     [java]     at 
org.apache.axis2.deployment.util.Utils.addFlowHandlers(Utils.java:58)
     [java]     at 
org.apache.axis2.deployment.DeploymentEngine.addNewModule(DeploymentEngine.java:335)
     [java]     at 
org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:690)
     [java]     at 
org.apache.axis2.deployment.RepositoryListener.init(RepositoryListener.java:165)
     [java]     at 
org.apache.axis2.deployment.RepositoryListener.<init>(RepositoryListener.java:53)
     [java]     at 
org.apache.axis2.deployment.DeploymentEngine.loadRepository(DeploymentEngine.java:109)
     [java]     at 
org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(FileSystemConfigurator.java:120)
     [java]     at 
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:60)
     [java]     at 
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:166)
     [java]     at sample.security.Client.main(Client.java:48)
     [java] Java Result: 1

BUILD SUCCESSFUL
Total time: 2 seconds

           there was nothing return at the server side.

           please take a look

           Wan

>From: "Ruchith Fernando" <ru...@gmail.com>
>Reply-To: axis-user@ws.apache.org
>To: axis-user@ws.apache.org
>Subject: Re: [Axis2] unable to run security sample.
>Date: Wed, 19 Jul 2006 15:58:58 +0530
>
>Hi,
>
>since you are using the latest nightly you have to use
>rampart-SNAPSHOT.mar [1] and addressing-SNAPSHOT.mar [2] not the 1.0
>release.
>
>Also please use wss4j-SNAPSHOT.jar [3].
>
>I will update the README.txt.
>
>Thanks,
>Ruchith
>
>[1] http://people.apache.org/repository/axis2/mars/rampart-SNAPSHOT.mar
>[2] http://people.apache.org/repository/axis2/mars/addressing-SNAPSHOT.mar
>[3] http://people.apache.org/repository/wss4j/jars/wss4j-SNAPSHOT.jar
>
>On 7/19/06, Jan Bauer Nielsen <jb...@dtv.dk> wrote:
>>Just to follow up on my own question.
>>
>>I can get the sample to work if I copy the secUtil.jar file to the
>>axis2/WEB-INF/lib/ directory. But according to the 4th step in the
>>README.txt this shouldn't be necessary. Can anyone shed some light on 
>>this?
>>
>>Jan
>>
>>Jan Bauer Nielsen wrote:
>> > Hi.
>> >
>> > Using the latest nightly builds and following the steps in the README
>> > file I get the following error from the server. Can anyone please
>> > explain why this is so?
>> >
>> > $ ant securitySample
>> > Buildfile: build.xml
>> >
>> > securitySample:
>> >      [java] Jul 19, 2006 9:34:44 AM
>> > org.apache.axis2.deployment.DeploymentEngine prepareRepository
>> >      [java] INFO: no services directory found , new one created
>> >      [java] Jul 19, 2006 9:34:45 AM
>> > org.apache.axis2.deployment.DeploymentEngine doDeploy
>> >      [java] INFO: Deploying module : rampart-1.0
>> >      [java] Jul 19, 2006 9:34:45 AM
>> > org.apache.axis2.deployment.DeploymentEngine doDeploy
>> >      [java] INFO: Deploying module : addressing-1.0
>> >      [java] org.apache.axis2.AxisFault: WSHandler: cannot load password
>> > callback class: sample.security.PWCallback; nested exception is:
>> >      [java]     java.lang.ClassNotFoundException:
>> > sample.security.PWCallback
>> >      [java]     at
>> > 
>>org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:289)
>> >
>> >      [java]     at
>> > 
>>org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:538)
>> >      [java]     at
>> > 
>>org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:472)
>> >      [java]     at sample.security.Client.main(Client.java:58)
>> >      [java] Caused by: java.lang.Exception: org.apache.axis2.AxisFault:
>> > WSHandler: cannot load password callback class:
>> > sample.security.PWCallback; nested exception is:
>> >      [java]     java.lang.ClassNotFoundException:
>> > sample.security.PWCallback; nested exception is:
>> >      [java]     org.apache.ws.security.WSSecurityException: WSHandler:
>> > cannot load password callback class: sample.security.PWCallback; nested
>> > exception is:
>> >      [java]     java.lang.ClassNotFoundException:
>> > sample.security.PWCallback
>> >      [java]     at
>> > 
>>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:336)
>> >
>> >      [java]     at
>> > 
>>org.apache.axis2.security.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:82)
>> >
>> >      [java]     at org.apache.axis2.engine.Phase.invoke(Phase.java:380)
>> >      [java]     at
>> > org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:523)
>> >      [java]     at
>> > org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:492)
>> >      [java]     at
>> > 
>>org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
>> >
>> >      [java]     at
>> > 
>>org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144)
>> >      [java]     at
>> > javax.servlet.http.HttpServlet.service(HttpServlet.java:615)
>> >      [java]     at
>> > javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
>> >      [java]     at
>> > 
>>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>> >
>> >      [java]     at
>> > 
>>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>> >
>> >      [java]     at
>> > 
>>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>> >
>> >      [java]     at
>> > 
>>org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>> >
>> >      [java]     at
>> > 
>>org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:272)
>> >
>> >      [java]     at
>> > 
>>org.apache.geronimo.tomcat.valve.TransactionContextValve.invoke(TransactionContextValve.java:53)
>> >
>> >      [java]     at
>> > 
>>org.apache.geronimo.tomcat.valve.ComponentContextValve.invoke(ComponentContextValve.java:47)
>> >
>> >      [java]     at
>> > 
>>org.apache.geronimo.tomcat.valve.InstanceContextValve.invoke(InstanceContextValve.java:60)
>> >
>> >      [java]     at
>> > 
>>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>> >
>> >      [java]     at
>> > 
>>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>> >
>> >      [java]     at
>> > 
>>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>> >
>> >      [java]     at
>> > 
>>org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526)
>> >      [java]     at
>> > 
>>org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>> >      [java]     at
>> > 
>>org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
>> >      [java]     at
>> > 
>>org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
>> >
>> >      [java]     at
>> > 
>>org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>> >
>> >      [java]     at
>> > 
>>org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
>> >
>> >      [java]     at
>> > 
>>org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>> >
>> >      [java]     at java.lang.Thread.run(Thread.java:595)
>> >      [java] Caused by: org.apache.ws.security.WSSecurityException:
>> > WSHandler: cannot load password callback class:
>> > sample.security.PWCallback; nested exception is:
>> >      [java]     java.lang.ClassNotFoundException:
>> > sample.security.PWCallback
>> >      [java]     at
>> > 
>>org.apache.ws.security.handler.WSHandler.getPasswordCB(WSHandler.java:823)
>> >      [java]     at
>> > 
>>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:147)
>> >
>> >      [java]     ... 27 more
>> >      [java] Caused by: java.lang.ClassNotFoundException:
>> > sample.security.PWCallback
>> >      [java]     at 
>>java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>> >      [java]     at java.security.AccessController.doPrivileged(Native
>> > Method)
>> >      [java]     at
>> > java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>> >      [java]     at 
>>java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>> >      [java]     at 
>>java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>> >      [java]     at
>> > 
>>org.apache.geronimo.tomcat.TomcatClassLoader.loadClass(TomcatClassLoader.java:62)
>> >
>> >      [java]     at
>> > java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>> >      [java]     at java.lang.Class.forName0(Native Method)
>> >      [java]     at java.lang.Class.forName(Class.java:164)
>> >      [java]     at
>> > org.apache.ws.security.util.Loader.loadClass(Loader.java:162)
>> >      [java]     at
>> > org.apache.ws.security.util.Loader.loadClass(Loader.java:135)
>> >      [java]     at
>> > 
>>org.apache.ws.security.handler.WSHandler.getPasswordCB(WSHandler.java:820)
>> >      [java]     ... 28 more
>> >
>> >      [java]     at 
>>org.apache.axis2.AxisFault.<init>(AxisFault.java:159)
>> >      [java]     ... 4 more
>> >
>> > BUILD SUCCESSFUL
>> > Total time: 5 seconds
>> >
>> > Kind regards,
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>>For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
>
>
>--
>www.ruchith.org
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>For additional commands, e-mail: axis-user-help@ws.apache.org
>



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2] unable to run security sample.

Posted by Ruchith Fernando <ru...@gmail.com>.
Hi,

since you are using the latest nightly you have to use
rampart-SNAPSHOT.mar [1] and addressing-SNAPSHOT.mar [2] not the 1.0
release.

Also please use wss4j-SNAPSHOT.jar [3].

I will update the README.txt.

Thanks,
Ruchith

[1] http://people.apache.org/repository/axis2/mars/rampart-SNAPSHOT.mar
[2] http://people.apache.org/repository/axis2/mars/addressing-SNAPSHOT.mar
[3] http://people.apache.org/repository/wss4j/jars/wss4j-SNAPSHOT.jar

On 7/19/06, Jan Bauer Nielsen <jb...@dtv.dk> wrote:
> Just to follow up on my own question.
>
> I can get the sample to work if I copy the secUtil.jar file to the
> axis2/WEB-INF/lib/ directory. But according to the 4th step in the
> README.txt this shouldn't be necessary. Can anyone shed some light on this?
>
> Jan
>
> Jan Bauer Nielsen wrote:
> > Hi.
> >
> > Using the latest nightly builds and following the steps in the README
> > file I get the following error from the server. Can anyone please
> > explain why this is so?
> >
> > $ ant securitySample
> > Buildfile: build.xml
> >
> > securitySample:
> >      [java] Jul 19, 2006 9:34:44 AM
> > org.apache.axis2.deployment.DeploymentEngine prepareRepository
> >      [java] INFO: no services directory found , new one created
> >      [java] Jul 19, 2006 9:34:45 AM
> > org.apache.axis2.deployment.DeploymentEngine doDeploy
> >      [java] INFO: Deploying module : rampart-1.0
> >      [java] Jul 19, 2006 9:34:45 AM
> > org.apache.axis2.deployment.DeploymentEngine doDeploy
> >      [java] INFO: Deploying module : addressing-1.0
> >      [java] org.apache.axis2.AxisFault: WSHandler: cannot load password
> > callback class: sample.security.PWCallback; nested exception is:
> >      [java]     java.lang.ClassNotFoundException:
> > sample.security.PWCallback
> >      [java]     at
> > org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:289)
> >
> >      [java]     at
> > org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:538)
> >      [java]     at
> > org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:472)
> >      [java]     at sample.security.Client.main(Client.java:58)
> >      [java] Caused by: java.lang.Exception: org.apache.axis2.AxisFault:
> > WSHandler: cannot load password callback class:
> > sample.security.PWCallback; nested exception is:
> >      [java]     java.lang.ClassNotFoundException:
> > sample.security.PWCallback; nested exception is:
> >      [java]     org.apache.ws.security.WSSecurityException: WSHandler:
> > cannot load password callback class: sample.security.PWCallback; nested
> > exception is:
> >      [java]     java.lang.ClassNotFoundException:
> > sample.security.PWCallback
> >      [java]     at
> > org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:336)
> >
> >      [java]     at
> > org.apache.axis2.security.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:82)
> >
> >      [java]     at org.apache.axis2.engine.Phase.invoke(Phase.java:380)
> >      [java]     at
> > org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:523)
> >      [java]     at
> > org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:492)
> >      [java]     at
> > org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
> >
> >      [java]     at
> > org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144)
> >      [java]     at
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:615)
> >      [java]     at
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
> >      [java]     at
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> >
> >      [java]     at
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> >
> >      [java]     at
> > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> >
> >      [java]     at
> > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> >
> >      [java]     at
> > org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:272)
> >
> >      [java]     at
> > org.apache.geronimo.tomcat.valve.TransactionContextValve.invoke(TransactionContextValve.java:53)
> >
> >      [java]     at
> > org.apache.geronimo.tomcat.valve.ComponentContextValve.invoke(ComponentContextValve.java:47)
> >
> >      [java]     at
> > org.apache.geronimo.tomcat.valve.InstanceContextValve.invoke(InstanceContextValve.java:60)
> >
> >      [java]     at
> > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> >
> >      [java]     at
> > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> >
> >      [java]     at
> > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
> >
> >      [java]     at
> > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526)
> >      [java]     at
> > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> >      [java]     at
> > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
> >      [java]     at
> > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
> >
> >      [java]     at
> > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> >
> >      [java]     at
> > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
> >
> >      [java]     at
> > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> >
> >      [java]     at java.lang.Thread.run(Thread.java:595)
> >      [java] Caused by: org.apache.ws.security.WSSecurityException:
> > WSHandler: cannot load password callback class:
> > sample.security.PWCallback; nested exception is:
> >      [java]     java.lang.ClassNotFoundException:
> > sample.security.PWCallback
> >      [java]     at
> > org.apache.ws.security.handler.WSHandler.getPasswordCB(WSHandler.java:823)
> >      [java]     at
> > org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:147)
> >
> >      [java]     ... 27 more
> >      [java] Caused by: java.lang.ClassNotFoundException:
> > sample.security.PWCallback
> >      [java]     at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> >      [java]     at java.security.AccessController.doPrivileged(Native
> > Method)
> >      [java]     at
> > java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> >      [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> >      [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> >      [java]     at
> > org.apache.geronimo.tomcat.TomcatClassLoader.loadClass(TomcatClassLoader.java:62)
> >
> >      [java]     at
> > java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
> >      [java]     at java.lang.Class.forName0(Native Method)
> >      [java]     at java.lang.Class.forName(Class.java:164)
> >      [java]     at
> > org.apache.ws.security.util.Loader.loadClass(Loader.java:162)
> >      [java]     at
> > org.apache.ws.security.util.Loader.loadClass(Loader.java:135)
> >      [java]     at
> > org.apache.ws.security.handler.WSHandler.getPasswordCB(WSHandler.java:820)
> >      [java]     ... 28 more
> >
> >      [java]     at org.apache.axis2.AxisFault.<init>(AxisFault.java:159)
> >      [java]     ... 4 more
> >
> > BUILD SUCCESSFUL
> > Total time: 5 seconds
> >
> > Kind regards,
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
www.ruchith.org

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2] unable to run security sample.

Posted by Ruchith Fernando <ru...@gmail.com>.
Jan, Ali,

The reason for this to fail without the secUtil.jar in WEB-INF/lib is
that rampart/wss4j doesn't seem to have access to the service class
loader, from which the handler _should_ pickup the callback handler
class.

I have made some changes in the latest rampart handlers with respect
to accessing the service class loader which depends on the latest
wss4j [1], [2].

Therefore please try the latest snapshots of wss4j and rampart.

Thanks,
Ruchith

[1] http://www.mail-archive.com/wss4j-dev@ws.apache.org/msg01787.html
[2] http://www.mail-archive.com/axis-cvs@ws.apache.org/msg10923.html

On 7/19/06, Ali Sadik Kumlali <as...@yahoo.com> wrote:
>
>
> Hi Jan,
>
> Both secUtil.jar and SecureService.aar include PWCallback class. secUtil.jar
> is used by client and -normally- you shouldn't need it at server side. If
> you put SecureService.aar into axis2/WEB-INF/services/ directory, you should
> be able to call PWCallback under SecureService.aar.
>
> By any chance, might you miss one of the steps found in README.txt?
>
> Regards,
>
> Ali Sadik Kumlali
>
>
> ----- Original Message ----
> From: Jan Bauer Nielsen <jb...@dtv.dk>
> To: axis-user@ws.apache.org
> Sent: Wednesday, July 19, 2006 11:46:19 AM
> Subject: Re: [Axis2] unable to run security sample.
>
> Just to follow up on my own question.
>
> I can get the sample to work if I copy the secUtil.jar file to the
> axis2/WEB-INF/lib/ directory. But according to the 4th step in the
> README.txt this shouldn't be necessary. Can anyone shed some light on this?
>
> Jan
>
> Jan Bauer Nielsen wrote:
> > Hi.
> >
> > Using the latest nightly builds and following the steps in the README
> > file I get the following error from the server. Can anyone please
> > explain why this is so?
> >
> > $ ant securitySample
> > Buildfile: build.xml
> >
> > securitySample:
> >      [java] Jul 19, 2006 9:34:44 AM
> > org.apache.axis2.deployment.DeploymentEngine
> prepareRepository
> >      [java] INFO: no services directory found , new one created
> >      [java] Jul 19, 2006 9:34:45 AM
> > org.apache.axis2.deployment.DeploymentEngine doDeploy
> >      [java] INFO: Deploying module : rampart-1.0
> >      [java] Jul 19, 2006 9:34:45 AM
> > org.apache.axis2.deployment.DeploymentEngine doDeploy
> >      [java] INFO: Deploying module : addressing-1.0
> >      [java] org.apache.axis2.AxisFault: WSHandler: cannot load password
> > callback class: sample.security.PWCallback; nested exception is:
> >      [java]     java.lang.ClassNotFoundException:
> > sample.security.PWCallback
> >      [java]     at
> >
> org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:289)
> >
> >      [java]     at
> >
> org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:538)
> >      [java]     at
> >
> org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:472)
> >      [java]     at sample.security.Client.main(Client.java:58)
> >      [java] Caused by: java.lang.Exception: org.apache.axis2.AxisFault:
> > WSHandler: cannot load password callback class:
> > sample.security.PWCallback; nested exception is:
> >      [java]     java.lang.ClassNotFoundException:
> > sample.security.PWCallback; nested exception is:
> >      [java]
> org.apache.ws.security.WSSecurityException: WSHandler:
> > cannot load password callback class: sample.security.PWCallback; nested
> > exception is:
> >      [java]     java.lang.ClassNotFoundException:
> > sample.security.PWCallback
> >      [java]     at
> >
> org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:336)
> >
> >      [java]     at
> >
> org.apache.axis2.security.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:82)
> >
> >      [java]     at
> org.apache.axis2.engine.Phase.invoke(Phase.java:380)
> >      [java]     at
> >
> org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:523)
> >      [java]     at
> >
> org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:492)
> >      [java]     at
> >
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
> >
> >      [java]     at
> >
> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144)
> >      [java]     at
> >
> javax.servlet.http.HttpServlet.service(HttpServlet.java:615)
> >      [java]     at
> >
> javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
> >      [java]     at
> >
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> >
> >      [java]     at
> >
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> >
> >      [java]     at
> >
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> >
> >      [java]     at
> >
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> >
> >      [java]     at
> >
> org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:272)
> >
> >      [java]     at
> >
> org.apache.geronimo.tomcat.valve.TransactionContextValve.invoke(TransactionContextValve.java:53)
> >
> >      [java]     at
> >
> org.apache.geronimo.tomcat.valve.ComponentContextValve.invoke(ComponentContextValve.java:47)
> >
> >      [java]     at
> >
> org.apache.geronimo.tomcat.valve.InstanceContextValve.invoke(InstanceContextValve.java:60)
> >
> >      [java]     at
> >
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> >
> >      [java]     at
> >
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> >
> >      [java]     at
> >
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
> >
> >      [java]     at
> >
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526)
> >      [java]     at
> >
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> >      [java]     at
> >
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
> >      [java]     at
> >
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
> >
> >      [java]     at
> >
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> >
> >      [java]     at
> >
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
> >
> >      [java]     at
> >
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> >
> >      [java]     at java.lang.Thread.run(Thread.java:595)
> >      [java] Caused by:
> org.apache.ws.security.WSSecurityException:
> > WSHandler: cannot load password callback class:
> > sample.security.PWCallback; nested exception is:
> >      [java]     java.lang.ClassNotFoundException:
> > sample.security.PWCallback
> >      [java]     at
> >
> org.apache.ws.security.handler.WSHandler.getPasswordCB(WSHandler.java:823)
> >      [java]     at
> >
> org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:147)
> >
> >      [java]     ... 27 more
> >      [java] Caused by: java.lang.ClassNotFoundException:
> > sample.security.PWCallback
> >      [java]     at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> >      [java]     at
> java.security.AccessController.doPrivileged(Native
> > Method)
> >      [java]     at
> >
> java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> >      [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> >      [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> >      [java]     at
> >
> org.apache.geronimo.tomcat.TomcatClassLoader.loadClass(TomcatClassLoader.java:62)
> >
> >      [java]     at
> >
> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
> >      [java]     at java.lang.Class.forName0(Native Method)
> >      [java]     at java.lang.Class.forName(Class.java:164)
> >      [java]     at
> >
> org.apache.ws.security.util.Loader.loadClass(Loader.java:162)
> >      [java]     at
> >
> org.apache.ws.security.util.Loader.loadClass(Loader.java:135)
> >      [java]     at
> >
> org.apache.ws.security.handler.WSHandler.getPasswordCB(WSHandler.java:820)
> >      [java]     ... 28 more
> >
> >      [java]     at org.apache.axis2.AxisFault.<init>(AxisFault.java:159)
> >      [java]     ... 4 more
> >
> > BUILD SUCCESSFUL
> > Total time: 5 seconds
> >
> > Kind regards,
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>


-- 
www.ruchith.org

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2] unable to run security sample.

Posted by Ali Sadik Kumlali <as...@yahoo.com>.
Hi Jan,

Both secUtil.jar and SecureService.aar include PWCallback class. secUtil.jar is used by client and -normally- you shouldn't need it at server side. If you put SecureService.aar into axis2/WEB-INF/services/ directory, you should be able to call PWCallback under SecureService.aar.

By any chance, might you miss one of the steps found in README.txt?

Regards,

Ali Sadik Kumlali

----- Original Message ----
From: Jan Bauer Nielsen <jb...@dtv.dk>
To: axis-user@ws.apache.org
Sent: Wednesday, July 19, 2006 11:46:19 AM
Subject: Re: [Axis2] unable to run security sample.

Just to follow up on my own question.

I can get the sample to work if I copy the secUtil.jar file to the 
axis2/WEB-INF/lib/ directory. But according to the 4th step in the 
README.txt this shouldn't be necessary. Can anyone shed some light on this?

Jan

Jan Bauer Nielsen wrote:
> Hi.
> 
> Using the latest nightly builds and following the steps in the README 
> file I get the following error from the server. Can anyone please 
> explain why this is so?
> 
> $ ant securitySample
> Buildfile: build.xml
> 
> securitySample:
>      [java] Jul 19, 2006 9:34:44 AM 
> org.apache.axis2.deployment.DeploymentEngine prepareRepository
>      [java] INFO: no services directory found , new one created
>      [java] Jul 19, 2006 9:34:45 AM 
> org.apache.axis2.deployment.DeploymentEngine doDeploy
>      [java] INFO: Deploying module : rampart-1.0
>      [java] Jul 19, 2006 9:34:45 AM 
> org.apache.axis2.deployment.DeploymentEngine doDeploy
>      [java] INFO: Deploying module : addressing-1.0
>      [java] org.apache.axis2.AxisFault: WSHandler: cannot load password 
> callback class: sample.security.PWCallback; nested exception is:
>      [java]     java.lang.ClassNotFoundException: 
> sample.security.PWCallback
>      [java]     at 
> org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:289) 
> 
>      [java]     at 
> org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:538)
>      [java]     at 
> org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:472)
>      [java]     at sample.security.Client.main(Client.java:58)
>      [java] Caused by: java.lang.Exception: org.apache.axis2.AxisFault: 
> WSHandler: cannot load password callback class: 
> sample.security.PWCallback; nested exception is:
>      [java]     java.lang.ClassNotFoundException: 
> sample.security.PWCallback; nested exception is:
>      [java]     org.apache.ws.security.WSSecurityException: WSHandler: 
> cannot load password callback class: sample.security.PWCallback; nested 
> exception is:
>      [java]     java.lang.ClassNotFoundException: 
> sample.security.PWCallback
>      [java]     at 
> org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:336) 
> 
>      [java]     at 
> org.apache.axis2.security.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:82) 
> 
>      [java]     at org.apache.axis2.engine.Phase.invoke(Phase.java:380)
>      [java]     at 
> org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:523)
>      [java]     at 
> org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:492)
>      [java]     at 
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284) 
> 
>      [java]     at 
> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144)
>      [java]     at 
> javax.servlet.http.HttpServlet.service(HttpServlet.java:615)
>      [java]     at 
> javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
>      [java]     at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) 
> 
>      [java]     at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) 
> 
>      [java]     at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) 
> 
>      [java]     at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) 
> 
>      [java]     at 
> org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:272) 
> 
>      [java]     at 
> org.apache.geronimo.tomcat.valve.TransactionContextValve.invoke(TransactionContextValve.java:53) 
> 
>      [java]     at 
> org.apache.geronimo.tomcat.valve.ComponentContextValve.invoke(ComponentContextValve.java:47) 
> 
>      [java]     at 
> org.apache.geronimo.tomcat.valve.InstanceContextValve.invoke(InstanceContextValve.java:60) 
> 
>      [java]     at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) 
> 
>      [java]     at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) 
> 
>      [java]     at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) 
> 
>      [java]     at 
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526)
>      [java]     at 
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>      [java]     at 
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
>      [java]     at 
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744) 
> 
>      [java]     at 
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) 
> 
>      [java]     at 
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) 
> 
>      [java]     at 
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) 
> 
>      [java]     at java.lang.Thread.run(Thread.java:595)
>      [java] Caused by: org.apache.ws.security.WSSecurityException: 
> WSHandler: cannot load password callback class: 
> sample.security.PWCallback; nested exception is:
>      [java]     java.lang.ClassNotFoundException: 
> sample.security.PWCallback
>      [java]     at 
> org.apache.ws.security.handler.WSHandler.getPasswordCB(WSHandler.java:823)
>      [java]     at 
> org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:147) 
> 
>      [java]     ... 27 more
>      [java] Caused by: java.lang.ClassNotFoundException: 
> sample.security.PWCallback
>      [java]     at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>      [java]     at java.security.AccessController.doPrivileged(Native 
> Method)
>      [java]     at 
> java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>      [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>      [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>      [java]     at 
> org.apache.geronimo.tomcat.TomcatClassLoader.loadClass(TomcatClassLoader.java:62) 
> 
>      [java]     at 
> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>      [java]     at java.lang.Class.forName0(Native Method)
>      [java]     at java.lang.Class.forName(Class.java:164)
>      [java]     at 
> org.apache.ws.security.util.Loader.loadClass(Loader.java:162)
>      [java]     at 
> org.apache.ws.security.util.Loader.loadClass(Loader.java:135)
>      [java]     at 
> org.apache.ws.security.handler.WSHandler.getPasswordCB(WSHandler.java:820)
>      [java]     ... 28 more
> 
>      [java]     at org.apache.axis2.AxisFault.<init>(AxisFault.java:159)
>      [java]     ... 4 more
> 
> BUILD SUCCESSFUL
> Total time: 5 seconds
> 
> Kind regards,

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org






Re: [Axis2] unable to run security sample.

Posted by Jan Bauer Nielsen <jb...@dtv.dk>.
Just to follow up on my own question.

I can get the sample to work if I copy the secUtil.jar file to the 
axis2/WEB-INF/lib/ directory. But according to the 4th step in the 
README.txt this shouldn't be necessary. Can anyone shed some light on this?

Jan

Jan Bauer Nielsen wrote:
> Hi.
> 
> Using the latest nightly builds and following the steps in the README 
> file I get the following error from the server. Can anyone please 
> explain why this is so?
> 
> $ ant securitySample
> Buildfile: build.xml
> 
> securitySample:
>      [java] Jul 19, 2006 9:34:44 AM 
> org.apache.axis2.deployment.DeploymentEngine prepareRepository
>      [java] INFO: no services directory found , new one created
>      [java] Jul 19, 2006 9:34:45 AM 
> org.apache.axis2.deployment.DeploymentEngine doDeploy
>      [java] INFO: Deploying module : rampart-1.0
>      [java] Jul 19, 2006 9:34:45 AM 
> org.apache.axis2.deployment.DeploymentEngine doDeploy
>      [java] INFO: Deploying module : addressing-1.0
>      [java] org.apache.axis2.AxisFault: WSHandler: cannot load password 
> callback class: sample.security.PWCallback; nested exception is:
>      [java]     java.lang.ClassNotFoundException: 
> sample.security.PWCallback
>      [java]     at 
> org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:289) 
> 
>      [java]     at 
> org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:538)
>      [java]     at 
> org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:472)
>      [java]     at sample.security.Client.main(Client.java:58)
>      [java] Caused by: java.lang.Exception: org.apache.axis2.AxisFault: 
> WSHandler: cannot load password callback class: 
> sample.security.PWCallback; nested exception is:
>      [java]     java.lang.ClassNotFoundException: 
> sample.security.PWCallback; nested exception is:
>      [java]     org.apache.ws.security.WSSecurityException: WSHandler: 
> cannot load password callback class: sample.security.PWCallback; nested 
> exception is:
>      [java]     java.lang.ClassNotFoundException: 
> sample.security.PWCallback
>      [java]     at 
> org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:336) 
> 
>      [java]     at 
> org.apache.axis2.security.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:82) 
> 
>      [java]     at org.apache.axis2.engine.Phase.invoke(Phase.java:380)
>      [java]     at 
> org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:523)
>      [java]     at 
> org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:492)
>      [java]     at 
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284) 
> 
>      [java]     at 
> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144)
>      [java]     at 
> javax.servlet.http.HttpServlet.service(HttpServlet.java:615)
>      [java]     at 
> javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
>      [java]     at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) 
> 
>      [java]     at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) 
> 
>      [java]     at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) 
> 
>      [java]     at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) 
> 
>      [java]     at 
> org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:272) 
> 
>      [java]     at 
> org.apache.geronimo.tomcat.valve.TransactionContextValve.invoke(TransactionContextValve.java:53) 
> 
>      [java]     at 
> org.apache.geronimo.tomcat.valve.ComponentContextValve.invoke(ComponentContextValve.java:47) 
> 
>      [java]     at 
> org.apache.geronimo.tomcat.valve.InstanceContextValve.invoke(InstanceContextValve.java:60) 
> 
>      [java]     at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) 
> 
>      [java]     at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) 
> 
>      [java]     at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) 
> 
>      [java]     at 
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526)
>      [java]     at 
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>      [java]     at 
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
>      [java]     at 
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744) 
> 
>      [java]     at 
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) 
> 
>      [java]     at 
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) 
> 
>      [java]     at 
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) 
> 
>      [java]     at java.lang.Thread.run(Thread.java:595)
>      [java] Caused by: org.apache.ws.security.WSSecurityException: 
> WSHandler: cannot load password callback class: 
> sample.security.PWCallback; nested exception is:
>      [java]     java.lang.ClassNotFoundException: 
> sample.security.PWCallback
>      [java]     at 
> org.apache.ws.security.handler.WSHandler.getPasswordCB(WSHandler.java:823)
>      [java]     at 
> org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:147) 
> 
>      [java]     ... 27 more
>      [java] Caused by: java.lang.ClassNotFoundException: 
> sample.security.PWCallback
>      [java]     at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>      [java]     at java.security.AccessController.doPrivileged(Native 
> Method)
>      [java]     at 
> java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>      [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>      [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>      [java]     at 
> org.apache.geronimo.tomcat.TomcatClassLoader.loadClass(TomcatClassLoader.java:62) 
> 
>      [java]     at 
> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>      [java]     at java.lang.Class.forName0(Native Method)
>      [java]     at java.lang.Class.forName(Class.java:164)
>      [java]     at 
> org.apache.ws.security.util.Loader.loadClass(Loader.java:162)
>      [java]     at 
> org.apache.ws.security.util.Loader.loadClass(Loader.java:135)
>      [java]     at 
> org.apache.ws.security.handler.WSHandler.getPasswordCB(WSHandler.java:820)
>      [java]     ... 28 more
> 
>      [java]     at org.apache.axis2.AxisFault.<init>(AxisFault.java:159)
>      [java]     ... 4 more
> 
> BUILD SUCCESSFUL
> Total time: 5 seconds
> 
> Kind regards,

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org