[jbossws-issues] [JBoss JIRA] Commented: (JBWS-2557) MessageFactoryImpl class not found using WS-Security in CXF
Bryan Kearney (JIRA)
jira-events at lists.jboss.org
Thu Feb 26 10:59:44 EST 2009
[ https://jira.jboss.org/jira/browse/JBWS-2557?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12454515#action_12454515 ]
Bryan Kearney commented on JBWS-2557:
-------------------------------------
Per the forum, I have recreated this on 5.0.1. Here are the steps I took:
Download and unzip jboss-5.0.1.GA-jdk6.zip to /home/bkearney/jboss5
Download and unzip jbossws-cxf-3.0.5.GA.zip
in jbossws-cxf-bin-dist
-- cp ant.properties.example to ant.properties
-- edit ant.properties, changing only this line: "jboss501.home=/home/bkearney/jboss5"
-- execute "ant deploy-jboss501"
-- This is the output:
[code]
[bkearney at localhost jbossws-cxf-bin-dist]$ ant deploy-jboss501
Buildfile: build.xml
target-jboss501:
prepare:
init:
[echo] integration.target=jboss500
undeploy-jboss501:
[loadfile] /home/bkearney/jboss5/server/default/deploy/jbossws.sar/jbossws-deploy.conf doesn't exist
[delete] Deleting directory /home/bkearney/jboss5/server/default/deploy/jbossws.sar
prepare-deploy:
deploy-structure-jboss50:
check-parameters:
deploy-jbossws-endorsed:
[mkdir] Created dir: /home/bkearney/test/jbossws-cxf-bin-dist/output/deploy-jboss500/lib/endorsed
[copy] Copying 1 file to /home/bkearney/test/jbossws-cxf-bin-dist/output/deploy-jboss500/lib/endorsed
deploy-jbossws-cxf50:
[mkdir] Created dir: /home/bkearney/test/jbossws-cxf-bin-dist/output/deploy-jboss500/bin
[copy] Copying 4 files to /home/bkearney/test/jbossws-cxf-bin-dist/output/deploy-jboss500/bin
[mkdir] Created dir: /home/bkearney/test/jbossws-cxf-bin-dist/output/deploy-jboss500/client
[copy] Copying 46 files to /home/bkearney/test/jbossws-cxf-bin-dist/output/deploy-jboss500/client
[copy] Copying 4 files to /home/bkearney/test/jbossws-cxf-bin-dist/output/deploy-jboss500/lib
[mkdir] Created dir: /home/bkearney/test/jbossws-cxf-bin-dist/output/deploy-jboss500/common/lib
[copy] Copying 5 files to /home/bkearney/test/jbossws-cxf-bin-dist/output/deploy-jboss500/common/lib
[mkdir] Created dir: /home/bkearney/test/jbossws-cxf-bin-dist/output/deploy-jboss500/server/default/deploy/jbossws.sar
[unzip] Expanding: /home/bkearney/test/jbossws-cxf-bin-dist/deploy/lib/jbossws-cxf-management.war into /home/bkearney/test/jbossws-cxf-bin-dist/output/deploy-jboss500/server/default/deploy/jbossws.sar/jbossws-management.war
[mkdir] Created dir: /home/bkearney/test/jbossws-cxf-bin-dist/output/deploy-jboss500/server/default/deployers/jbossws.deployer
[copy] Copying 40 files to /home/bkearney/test/jbossws-cxf-bin-dist/output/deploy-jboss500/server/default/deployers/jbossws.deployer
[copy] Copying 1 file to /home/bkearney/test/jbossws-cxf-bin-dist/output/deploy-jboss500/server/default/deployers/jbossws.deployer
[copy] Copying 3 files to /home/bkearney/test/jbossws-cxf-bin-dist/output/deploy-jboss500/server/default/deployers/jbossws.deployer
[copy] Copying 1 file to /home/bkearney/test/jbossws-cxf-bin-dist/output/deploy-jboss500/server/default/deployers/jbossws.deployer/META-INF
deploy-jboss501:
[copy] Copying 113 files to /home/bkearney/jboss5
[copy] Copied 22 empty directories to 2 empty directories under /home/bkearney/jboss5
BUILD SUCCESSFUL
Total time: 2 seconds
[bkearney at localhost jbossws-cxf-bin-dist]$
[/code]
I install my sql drivers
[code]
#!/bin/bash
JBOSS_HOME=/home/bkearney/jboss5
SERVER=default
cp postgresql-8.1-404.jdbc3.jar $JBOSS_HOME/server/$SERVER/lib
cp vdc-postgres-ds.xml $JBOSS_HOME/server/$SERVER/deploy
[/code]
And then I run my test client. I get he following output:
[code]
10:48:24,292 INFO [PhaseInterceptorChain] Interceptor has thrown exception, unwinding now
org.apache.cxf.binding.soap.SoapFault: Problems creating SAAJ object model
at org.apache.cxf.binding.soap.saaj.SAAJInInterceptor.handleMessage(SAAJInInterceptor.java:117)
at org.apache.cxf.binding.soap.saaj.SAAJInInterceptor.handleMessage(SAAJInInterceptor.java:63)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:221)
at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:78)
at org.apache.cxf.transport.servlet.ServletDestination.invoke(ServletDestination.java:92)
at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:214)
at org.jboss.wsf.stack.cxf.ServletControllerExt.invoke(ServletControllerExt.java:157)
at org.jboss.wsf.stack.cxf.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:61)
at org.jboss.wsf.stack.cxf.CXFServletExt.service(CXFServletExt.java:152)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:601)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
Caused by: javax.xml.soap.SOAPException: java.lang.IllegalStateException: Failed to load javax.xml.soap.MessageFactory: org.jboss.ws.core.soap.MessageFactoryImpl
at javax.xml.soap.MessageFactory.newInstance(MessageFactory.java:76)
at org.apache.cxf.binding.soap.saaj.SAAJInInterceptor.handleMessage(SAAJInInterceptor.java:77)
... 29 more
Caused by: java.lang.IllegalStateException: Failed to load javax.xml.soap.MessageFactory: org.jboss.ws.core.soap.MessageFactoryImpl
at javax.xml.soap.SAAJFactoryLoader.loadFactory(SAAJFactoryLoader.java:128)
at javax.xml.soap.MessageFactory.newInstance(MessageFactory.java:72)
... 30 more
Caused by: java.lang.ClassNotFoundException: org.jboss.ws.core.soap.MessageFactoryImpl
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at javax.xml.soap.SAAJFactoryLoader.loadFactory(SAAJFactoryLoader.java:122)
... 31 more
10:48:24,294 INFO [ContextUtils] retrieving MAPs from context property javax.xml.ws.addressing.context.inbound
10:48:24,295 WARN [ContextUtils] WS-Addressing - failed to retrieve Message Addressing Properties from context
10:48:24,295 INFO [MAPAggregator] MAPs retrieved from message null
10:48:24,295 INFO [ContextUtils] retrieving MAPs from context property javax.xml.ws.addressing.context.outbound
10:48:24,295 WARN [ContextUtils] WS-Addressing - failed to retrieve Message Addressing Properties from context
10:48:24,304 INFO [ContextUtils] retrieving MAPs from context property javax.xml.ws.addressing.context.outbound
10:48:24,305 WARN [ContextUtils] WS-Addressing - failed to retrieve Message Addressing Properties from contex
[/code]
> MessageFactoryImpl class not found using WS-Security in CXF
> -----------------------------------------------------------
>
> Key: JBWS-2557
> URL: https://jira.jboss.org/jira/browse/JBWS-2557
> Project: JBoss Web Services
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: jbossws-cxf
> Affects Versions: jbossws-cxf-3.0.5
> Environment: Jboss 5.0
> ws-CXF version 3.0.5
> sun JDK 1.6
> Fedora 10
> Reporter: Bryan Kearney
>
> I am following the examples at:
> http://jbossws.jboss.org/mediawiki/index.php?title=Stack_CXF_User_Guide#WS-Security
> and
> http://www.jroller.com/gmazza/date/20080729
> I am using x.509 certificates to have the client sign and encrypt messages sent to the server. Seems to send the message fine. The server side throws CNF exception as shown in the forum post. Adding the core-rt jar gets me further, but still no success.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbossws-issues
mailing list