You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wss4j-dev@ws.apache.org by "Werner Dittmann (JIRA)" <ji...@apache.org> on 2006/02/16 13:50:02 UTC

[jira] Closed: (WSS-22) WSS4J + usertoken encryption

     [ http://issues.apache.org/jira/browse/WSS-22?page=all ]
     
Werner Dittmann closed WSS-22:
------------------------------

    Resolution: Incomplete

Error says "internal server error" , without additional info that cannot be fixed.

> WSS4J + usertoken encryption
> ----------------------------
>
>          Key: WSS-22
>          URL: http://issues.apache.org/jira/browse/WSS-22
>      Project: WSS4J
>         Type: Bug
>  Environment: Windows 2000,Weblogic sp4, jdk 1.5, axis 1.2.1
>     Reporter: Rangaswamy Balakrishnan
>     Assignee: Davanum Srinivas

>
> Hi,
> I am trying to develop a webservice with WSS4J. I am trying to have a usertoken and encrypt the message as such.
> my client_deploy.wsdd looks like this
>  <deployment xmlns="http://xml.apache.org/axis/wsdd/"  xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
> <transport name="http" pivot="java:org.apache.axis.transport.http.HTTPSender"/>
>   <globalConfiguration>
>     <requestFlow>
>        <handler type="java:org.apache.ws.axis.security.WSDoAllSender" >
>             <parameter name="action" value="UsernameToken Encrypt"/>
>             <parameter name="user" value="trialserviceimpl"/>
>             <parameter name="passwordCallbackClass"
>             value="trial.client.PWCallback"/>
>             <parameter name="passwordType" value="PasswordText" />
>             <parameter name="addUTElement" value="Nonce Created" />
>             <parameter name="encryptionPropFile" value="crypto.properties" />
>             <parameter name="encryptionKeyIdentifier" value="X509KeyIdentifier" />
>             <parameter name="encryptionUser"
>             value="Trial" />
>             </handler>
>         </requestFlow>
>     </globalConfiguration >
> </deployment>
> Deploy.wsdd
> <deployment xmlns="http://xml.apache.org/axis/wsdd/" xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
>     <service name="TrialServiceImpl" provider="java:RPC" >
>         <requestFlow>
>             <handler type="java:org.apache.ws.axis.security.WSDoAllReceiver">
>                 <parameter name="action" value="UsernameToken Encrypt"/>
>                 <parameter name="passwordCallbackClass" value="trial.service.PWCallback"/>
>                 <parameter name="passwordType" value="PasswordDigest"/>
>                 <parameter name="decryptionPropFile" value="crypto.properties" />
>             </handler>
>         </requestFlow>
>         <parameter name="className" value="trial.service.TrialServiceImpl"/>
>         <parameter name="allowedMethods" value="*"/>
>         <parameter name="scope" value="application"/>
>     </service>
>     
> </deployment>
> crypto.properties is
> org.apache.ws.security.crypto.provider=org.apache.ws.security.components.crypto.Merlin
> org.apache.ws.security.crypto.merlin.keystore.type=jks
> org.apache.ws.security.crypto.merlin.keystore.password=testing
> org.apache.ws.security.crypto.merlin.keystore.alias=Trial
> org.apache.ws.security.crypto.merlin.alias.password=testing
> org.apache.ws.security.crypto.merlin.file=trials.keystore
> when i run the application i get this error
> AxisFault
>  faultCode: {http://xml.apache.org/axis/}HTTP
>  faultSubcode: 
>  faultString: (500)Internal Server Error
>  faultActor: 
>  faultNode: 
>  faultDetail: 
> 	{}:return code:  500
> &lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Draft//EN&quot;&gt;
> &lt;HTML&gt;
> &lt;HEAD&gt;
> &lt;TITLE&gt;Error 500--Internal Server Error&lt;/TITLE&gt;
> &lt;META NAME=&quot;GENERATOR&quot; CONTENT=&quot;WebLogic Server&quot;&gt;
> &lt;/HEAD&gt;
> &lt;BODY bgcolor=&quot;white&quot;&gt;
> &lt;FONT FACE=Helvetica&gt;&lt;BR CLEAR=all&gt;
> &lt;TABLE border=0 cellspacing=5&gt;&lt;TR&gt;&lt;TD&gt;&lt;BR CLEAR=all&gt;
> &lt;FONT FACE=&quot;Helvetica&quot; COLOR=&quot;black&quot; SIZE=&quot;3&quot;&gt;&lt;H2&gt;Error 500--Internal Server Error&lt;/H2&gt;
> &lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;
> &lt;/TABLE&gt;
> &lt;TABLE border=0 width=100% cellpadding=10&gt;&lt;TR&gt;&lt;TD VALIGN=top WIDTH=100% BGCOLOR=white&gt;&lt;FONT FACE=&quot;Courier New&quot;&gt;&lt;pre&gt;java.lang.NoClassDefFoundError
> 	at org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:179)
> 	at org.apache.axis.AxisEngine.init(AxisEngine.java:172)
> 	at org.apache.axis.AxisEngine.&lt;init&gt;(AxisEngine.java:156)
> 	at org.apache.axis.server.AxisServer.&lt;init&gt;(AxisServer.java:88)
> 	at org.apache.axis.server.DefaultAxisServerFactory.createServer(DefaultAxisServerFactory.java:109)
> 	at org.apache.axis.server.DefaultAxisServerFactory.getServer(DefaultAxisServerFactory.java:73)
> 	at org.apache.axis.server.AxisServer.getServer(AxisServer.java:73)
> 	at org.apache.axis.transport.http.AxisServletBase.getEngine(AxisServletBase.java:185)
> 	at org.apache.axis.transport.http.AxisServletBase.getOption(AxisServletBase.java:396)
> 	at org.apache.axis.transport.http.AxisServletBase.init(AxisServletBase.java:112)
> 	at org.apache.axis.transport.http.AxisServlet.init(AxisServlet.java:156)
> 	at javax.servlet.GenericServlet.init(GenericServlet.java:258)
> 	at weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run(ServletStubImpl.java:1028)
> 	at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
> 	at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
> 	at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:904)
> 	at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:883)
> 	at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:822)
> 	at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:535)
> 	at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:373)
> 	at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
> 	at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6718)
> 	at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
> 	at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
> 	at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)
> 	at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
> 	at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
> 	at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
> &lt;/pre&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;
> &lt;/TABLE&gt;
> &lt;/BODY&gt;
> &lt;/HTML&gt;
> 	{http://xml.apache.org/axis/}HttpErrorCode:500
> (500)Internal Server Error
> 	at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:693)
> 	at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:141)
> 	at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
> 	at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
> 	at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
> 	at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
> 	at org.apache.axis.client.Call.invokeEngine(Call.java:2754)
> 	at org.apache.axis.client.Call.invoke(Call.java:2737)
> 	at org.apache.axis.client.Call.invoke(Call.java:2413)
> 	at org.apache.axis.client.Call.invoke(Call.java:2336)
> 	at org.apache.axis.client.Call.invoke(Call.java:1793)
> 	at trial.client.TrialServiceImplSoapBindingStub.retrieveData(TrialServiceImplSoapBindingStub.java:102)
> 	at trial.test.TrialTest.main(TrialTest.java:60)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:324)
> 	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:86)
> i don't know wat the problem is. 
> Please do help me in solving this.
> Thanks in advance.
> Balakrishnan

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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