An Internal Ws-security Error Occurred. See Log For Details
not work correctly without it enabled. Please turn JavaScript back on and reload this page. All Places > JBoss Web Services > Discussions Please enter a title. You can not post a blank message. Please type your message and try again. 13 Replies Latest reply on Nov 21, 2012 2:07 PM by NOE GUTIERREZ Jboss ws-security, client configuration Tim de Jager May 17, 2010 4:31 AM Hello,I'm currently trying to secure a ws endpoint using the native jboss security stack. The server now sucessfully sign the message. I'm now trying to secure the client. It's a standalone java client using code generated by the jboss ws tool.I tried using the following code to enable ws-security from the client://port object obtained via SOAPService ((StubExt)port).setSecurityConfig(securityURL.toExternalForm()); ((StubExt)port).setConfigName("Standard WSSecurity Client"); This doesn't work as the 'port' object cannot be casted to a StubExt. I have generated my client code using the '-extensions' flag, could this be causing problems?Dos anyone have any idea as to what could be causing this problem?Thanks in advance,Tim 18395Views Tags: none (add) This content has been marked as final. Show 13 replies 1. Re: Jboss ws-security, client configuration Tim de Jager May 17, 2010 6:23 PM (in response to Tim de Jager) Alright I have gotten a bit further. I fixed the class casting issue , but I'm now getting an exception:javax.xml.ws.WebServiceException: org.jboss.ws.core.CommonSOAPFaultException: An internal WS-Security error occurred.Can't find anything in the logs though.This is the code I am using for setting up the security on the client: URL securityURL = Main.class.getResource("META-INF/jboss-wsse-client.xml"); ((StubExt) port).setSecurityConfig(securityURL.toExternalForm()); ((StubExt) port).setConfigName("Standard WSSecurity Client", "META-INF/standard-jaxws-client-config.xml"); This is the wsse-client file I'm using:
Java JSRs Mobile Certification Databases Caching http://osdir.com/ml/java-jboss-user/2008-01/msg03118.html Books Engineering Languages Frameworks Products This Site Careers Other all forums Forum: Web Services Java Client for a SOAP wsdl with basic authentication Vishnu Austin an internal Greenhorn Posts: 11 posted 4 years ago Hi, I generated the java client using axis2, for a secured wsdl. I am facing following errors on testing the client org.apache.axis2.AxisFault: An error occurred when verifying an internal ws-security security for the message. at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:512) at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:370) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:416) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163) at us.tx.state.txdps.records.cch.SearchServiceStub.SearchBySid(SearchServiceStub.java:1015) at us.tx.state.txdps.records.cch.Test.testStub(Test.java:40) at us.tx.state.txdps.records.cch.Test.main(Test.java:143) My client code is SearchServiceStub proxy = new SearchServiceStub(); Options opt = proxy._getServiceClient().getOptions(); opt.setUserName("abc"); opt.setPassword("123"); proxy._getServiceClient().setOptions(opt); SearchServiceStub.SearchBySid sid = new SearchServiceStub.SearchBySid(); sid.setSid("1111"); SearchServiceStub.SearchBySidResponse response = proxy.SearchBySid(sid); // Place where the error is thrown System.out.println("Response: " + response.toString()); Also tried HttpTransportProperties.Authenticator basicAuthentication = new HttpTransportProperties.Authenticator(); basicAuthentication.setUsername("abc"); basicAuthentication.setPassword("123"); basicAuthentication.setPreemptiveAuthentication(true); proxy._getServiceClient().getOptions().setProperty(org.apache.axis2.transport.http.HTTPConstants.AUTHENTICATE, basicAuthentication); proxy._getServiceClient().getOptions().setProperty(org.apache.axis2.transport.http.HTTPConstants.CHUNKED, "false"); SearchServiceStub.SearchBySid sid = new SearchServiceStub.SearchBySid(); sid.setSid("1111"); SearchServiceStub.SearchBySidResponse response = proxy.SearchBySid(sid); // Place where the error is thrown System.out.println("Response: " + response.toString()); Also tried OMFactory omFactory = OMAb
exception stacktrace (a WSSecurityException that is then converted to the CommonSOAPFaultException you get) or error, giving us hints about the problem. Generally speaking this is somehow related to the keystore/truststore configuration since in the try/catch block that might raise this exception, actual sign/encrypt is performed. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4121281#4121281 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4121281 Thread at a glance: Previous Message by Date: [JBoss Seam] - access URL parameters directly I have a servlet, that will, in cas of an error, redirect to a custom errorpage. the errormessage is URL encoded and appended to the custom error page URL: e.g. http://domain.my/myproject/customerror.seam?err=Some+error what would be the easiest was to just display the URL parameter in the custom errorpage? now I have created a staless session bean and I use the @RequestParameter annotation in the page, I simply access this SLB: #{errorHelper.err} creating a SLB (including local interface) just to display a URL parameter seems quite a lot of work... using javascript is not an option, since the app should also work when js is disabled. could I maybe use a trick in the pages.xml file? any better ideas? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4121277#4121277 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4121277 Next Message by Date: [Installation, Configuration & DEPLOYMENT] - Re: Troubles getting RichFaces to work. [SOLVED] "BrandonBarlow" wrote : Got this working for JBoss AP 4.3, RichFaces 3.1.3. | | Try adding commons-digester-1.8.jar and commons-beanutils.jar (I used version 1.6) to server\production\lib (or server\[your config]\lib) . Both provided by Apache. | | Hope this works for you - I'm running my apps in Liferay 4.3.6 portlets - you may also need some other dependencies. | Dude! Thank you. It's working on JBoss 4.2 w/dgester1.8 and beanutils1.7. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4121282#4121282 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4121282 Previous Message by Thread: [JBossWS] - Re: WS-Security Newbie Question... Ok... I have now added xmlsec.jar into "JBOSS_HOME/lib/endorsed" and recompile (just in case...) an