hi,
In my application, i am using saaj.jar,saaj-impl.jar for webservice call.if i deploy my
application in open source jboss it is working fine,but if deploy in RedHat Jboss4.3.0
server,instead of loading my jar it is taking the jboss-saaj.jar from jboss server.so did
the below changes.
Step 1:-moved the Jboss-saaj.jar from jboss default\lib to
lib\endorsed
Step 2:Jboss run.bat file i added the below 3 lines for loading my jar while run the
application.
set JAVA_OPTS=%JAVA_OPTS%
-Djavax.xml.soap.SOAPConnectionFactory=com.sun.xml.internal.messaging.saaj.client.p2p.HttpSOAPConnectionFactory
set JAVA_OPTS=%JAVA_OPTS%
-Djavax.xml.soap.MessageFactory=com.sun.xml.internal.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl
set JAVA_OPTS=%JAVA_OPTS%
-Djavax.xml.soap.SOAPFactory=com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFactory1_1Impl
java version :-jdk1.6.0_01,
Now while deploying my application Exception is throwing.
19:37:28,109 ERROR [STDERR] May 26, 2008 7:37:28 PM
com.sun.xml.internal.messaging.saaj.client.p2p.HttpSOAPConnection post
SEVERE: SAAJ0010: Unable to read responsejava.lang.ClassCastException:
com.sun.xml.messaging.saaj.soap.ver1_1.Envelope1_1Impl cannot be cast to
org.jboss.ws.core.soap.SOAPElementImpl
at org.jboss.ws.core.soap.SOAPEnvelopeImpl.(SOAPEnvelopeImpl.java:60)
at org.jboss.ws.core.soap.EnvelopeBuilderDOM.build(EnvelopeBuilderDOM.java:124)
at org.jboss.ws.core.soap.EnvelopeBuilderDOM.build(EnvelopeBuilderDOM.java:96)
at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:262)
at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:185)
at
com.sun.xml.internal.messaging.saaj.client.p2p.HttpSOAPConnection.post(HttpSOAPConnection.java:393)
at
com.sun.xml.internal.messaging.saaj.client.p2p.HttpSOAPConnection$PriviledgedPost.run(HttpSOAPConnection.java:169)
at java.security.AccessController.doPrivileged(Native Method)
at
com.sun.xml.internal.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:140)
at
com.misyshealthcare.connect.security.util.WSBaseRequest.saveAndSendSoapMessage(WSBaseRequest.java:145)
at
com.misyshealthcare.connect.security.auth.WSAuthenticateRequest.authenticateUser(WSAuthenticateRequest.java:121)
at
com.misyshealthcare.connect.security.auth.WebServiceAuthentication.authenticate(WebServiceAuthentication.java:33)
at
com.misyshealthcare.connect.security.auth.WebServiceLoginModule.login(WebServiceLoginModule.java:103)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.login.LoginContext.invokePriv(LoginConext.java:680)
at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
at
com.misyshealthcare.connect.security.AuthenticationImpl.authenticate(AuthenticationImpl.java:95)
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:597)
at
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at
org.springframework.aop.framework.adapter.ThrowsAdviceInterceptor.invoke(ThrowsAdviceInterceptor.java:126)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at
org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:50)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy74.authenticate(Unknown Source)
at
com.misyshealthcare.connect.security.controller.LogonCtlr.authenticate(LogonCtlr.java:128)
at
com.misyshealthcare.connect.security.action.LogonAction.authenticate(LogonAction.java:85)
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:597)
at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:274)
at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:194)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.misyshealthcare.connect.log.LogContextFilter.doFilter(LogContextFilter.java:173)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
com.misyshealthcare.connect.security.filter.SecurityFilter.doFilter(SecurityFilter.java:64)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
com.misyshealthcare.connect.ui.controller.SetRequestParametersFilter.doFilter(SetRequestParametersFilter.java:51)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
com.misyshealthcare.connect.ui.stubs.LoadTestDataFilter.doFilter(LoadTestDataFilter.java:29)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
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:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
19:37:44,046 ERROR [STDERR]
com.misyshealthcare.connect.security.exception.WebServiceException: SOAP request
exception. Fail to build an empty soap message.
19:37:44,046 ERROR [STDERR] at
com.misyshealthcare.connect.security.util.WSBaseRequest.saveAndSendSoapMessage(WSBaseRequest.java:151)
19:37:44,046 ERROR [STDERR] at
com.misyshealthcare.connect.security.auth.WSAuthenticateRequest.authenticateUser(WSAuthenticateRequest.java:121)
19:37:44,046 ERROR [STDERR] at
com.misyshealthcare.connect.security.auth.WebServiceAuthentication.authenticate(WebServiceAuthentication.java:33)
19:37:44,046 ERROR [STDERR] at
com.misyshealthcare.connect.security.auth.WebServiceLoginModule.login(WebServiceLoginModule.java:103)
19:37:44,046 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
19:37:44,046 ERROR [STDERR] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
19:37:44,046 ERROR [STDERR] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
19:37:44,046 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
19:37:44,046 ERROR [STDERR] at
javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
19:37:44,046 ERROR [STDERR] at
javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
19:37:44,046 ERROR [STDERR] at
javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
19:37:44,046 ERROR [STDERR] at java.security.AccessController.doPrivileged(Native Method)
19:37:44,046 ERROR [STDERR] at
javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
19:37:44,046 ERROR [STDERR] at
javax.security.auth.login.LoginContext.login(LoginContext.java:579)
19:37:44,046 ERROR [STDERR] at
com.misyshealthcare.connect.security.AuthenticationImpl.authenticate(AuthenticationImpl.java:95)
19:37:44,046 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
19:37:44,046 ERROR [STDERR] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
19:37:44,046 ERROR [STDERR] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
19:37:44,046 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
19:37:44,046 ERROR [STDERR] at
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
19:37:44,046 ERROR [STDERR] at
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
19:37:44,046 ERROR [STDERR] at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
19:37:44,046 ERROR [STDERR] at
org.springframework.aop.framework.adapter.ThrowsAdviceInterceptor.invoke(ThrowsAdviceInterceptor.java:126)
19:37:44,046 ERROR [STDERR] at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
19:37:44,046 ERROR [STDERR] at
org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:50)
19:37:44,046 ERROR [STDERR] at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
19:37:44,046 ERROR [STDERR] at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
19:37:44,046 ERROR [STDERR] at $Proxy74.authenticate(Unknown Source)
19:37:44,046 ERROR [STDERR] at
com.misyshealthcare.connect.security.controller.LogonCtlr.authenticate(LogonCtlr.java:128)
19:37:44,046 ERROR [STDERR] at
com.misyshealthcare.connect.security.action.LogonAction.authenticate(LogonAction.java:85)
19:37:44,046 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
19:37:44,046 ERROR [STDERR] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
19:37:44,046 ERROR [STDERR] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
19:37:44,046 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
19:37:44,046 ERROR [STDERR] at
org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:274)
19:37:44,046 ERROR [STDERR] at
org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:194)
19:37:44,046 ERROR [STDERR] at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
19:37:44,046 ERROR [STDERR] at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
19:37:44,046 ERROR [STDERR] at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
19:37:44,062 ERROR [STDERR] at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
19:37:44,062 ERROR [STDERR] at
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
19:37:44,062 ERROR [STDERR] at
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
19:37:44,062 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
19:37:44,062 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
19:37:44,062 ERROR [STDERR] at
com.misyshealthcare.connect.log.LogContextFilter.doFilter(LogContextFilter.java:173)
19:37:44,062 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
19:37:44,062 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
19:37:44,062 ERROR [STDERR] at
com.misyshealthcare.connect.security.filter.SecurityFilter.doFilter(SecurityFilter.java:64)
19:37:44,062 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
19:37:44,062 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
19:37:44,062 ERROR [STDERR] at
om.misyshealthcare.connect.ui.controller.SetRequestParametersFilter.doFilterSetRequestParametersFilter.java:51)
19:37:44,062 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
19:37:44,062 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
19:37:44,062 ERROR [STDERR] at
com.misyshealthcare.connect.ui.stubs.LoadTestDataFilter.doFilter(LoadTestDataFilter.java:29)
19:37:44,062 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
19:37:44,062 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
19:37:44,062 ERROR [STDERR] at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
19:37:44,062 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
19:37:44,062 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
19:37:44,062 ERROR [STDERR] at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
19:37:44,062 ERROR [STDERR] at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
19:37:44,062 ERROR [STDERR] at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
19:37:44,062 ERROR [STDERR] at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
19:37:44,062 ERROR [STDERR] at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
19:37:44,062 ERROR [STDERR] at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
19:37:44,062 ERROR [STDERR] at
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
19:37:44,062 ERROR [STDERR] at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
19:37:44,062 ERROR [STDERR] at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
19:37:44,062 ERROR [STDERR] at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
19:37:44,062 ERROR [STDERR] at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
19:37:44,062 ERROR [STDERR] at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
19:37:44,062 ERROR [STDERR] at java.lang.Thread.run(Thread.java:619)
Please help me to solve the problem ASAP.
Regrads
Raja
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4153593#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...