axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wan Kaveevivitchai" <wan1...@hotmail.com>
Subject Re: [Axis2] unable to run security sample.
Date Wed, 19 Jul 2006 11:07:13 GMT
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" <ruchith.fernando@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 <wan1551@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" <ruchith.fernando@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 <jbn@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


Mime
View raw message