[
https://issues.apache.org/jira/browse/AXIS2-5985?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17204456#comment-17204456
]
JustJoinedJava commented on AXIS2-5985:
---------------------------------------
Hi [~robertlazarski]
Thank you so much for the response.
This is what, I am trying to use Axis2 as rest via HTTP post and there is no
SOAP envelope. So, for now I am trying to implement basic UsernameToken
authentication using rampart and wss4j. But seems like there is some issue, I
am pasting the error below. But for now we dont want JWT, we are looking for
XML processing as this is a legacy application.
Also, if you could point me to some link to understand the compatibility
between different versions of Axis2 and Rampart.
Last but not the least, if it is technically possible to do implement JAAS for
Axis2 rest service. If you could point me to some sample implementation
reference for the same.
<body><body> <h1>HTTP Status 500 - Servlet execution threw an exception</h1>
<HR size="1" noshade="noshade"> <p><b>type</b> Exception report</p>
<p><b>message</b> <u>Servlet execution threw an exception</u></p>
<p><b>description</b> <u>The server encountered an internal error that
prevented it from fulfilling this request.</u></p> <p><b>exception</b>
<pre>javax.servlet.ServletException: *Servlet execution threw an exception
org.apache.tomcat.websocket.server.WsFilter.doFilter(*WsFilter.java:51)</pre>
</p> <p><b>root cause</b> <pre>java.lang.NoClassDefFoundError:
org/apache/xml/security/Init
org.apache.ws.security.WSSConfig.setXmlSecIgnoreLineBreak(WSSConfig.java:404)
org.apache.ws.security.WSSConfig.init(WSSConfig.java:442)
org.apache.ws.security.WSSConfig.getNewInstance(WSSConfig.java:486)
org.apache.rampart.RampartMessageData.<init>(RampartMessageData.java:179)
org.apache.rampart.RampartEngine.process(RampartEngine.java:56)
org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:92)
org.apache.axis2.engine.Phase.invokeHandler(Phase.java:335)
org.apache.axis2.engine.Phase.invoke(Phase.java:308)
org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:250)
org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:156)
org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:242)
org.apache.axis2.transport.http.util.RESTUtil.processXMLRequest(RESTUtil.java:90)
org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.processXMLRequest(AxisServlet.java:858)
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:245)
javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
Thank you so much again for all your time and effort!
> Axis2 web service using as rest endpoint, need to implement security
> --------------------------------------------------------------------
>
> Key: AXIS2-5985
> URL: https://issues.apache.org/jira/browse/AXIS2-5985
> Project: Axis2
> Issue Type: Task
> Components: jaxws
> Reporter: JustJoinedJava
> Priority: Major
>
> I am using existing Axis2 web service (i.e. SOAP) as rest endpoints and I am
> able to do it. But now I need to implement security, can somebody please
> guide as rampart and rahas has lot of issues, I am not even able to implement
> basic auth\usernametoken using it.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]