[esb-users] Problems with quickstart webservice_consumer1

Pablo Pazos pablo.swp at gmail.com
Sun Nov 23 11:57:55 EST 2008


Hi,

Nope, I've java 1.5.0_11, but I download "jboss-saaj-2.0.3.GA.jar" and put
it to "\lib\endorsed" and it works.

It is supposed to work out-of-the-box with java 1.5?


Now I've another problem, I don't know if anyone see my other email to the
list (invoking a WS declared on a GRAILS app with XFire plugin, and the url
loses the port from the url, I don't know if it's a problem on SOAPClient or
a problem in the grails xfire plugin, so I asked in both lists)

thanks,
Pablo.

PS: anyone knows if this maillist has a web view?

On Sun, Nov 23, 2008 at 2:43 PM, Poyan Gerami <poyan.gerami at gmail.com>wrote:

> do you have java 1.6 ? if yes copy the jboss-sajj.jar from server/lib
> to jboss-home/lib/endorsed and restart the server.
> remember copy not move.
>
> 2008/11/22 Pablo Pazos <pablo.swp at gmail.com>:
> > Well, I have this deployed but now I've problems when I run it.
> >
> > When I do "ant runtest" I an exception. I've checked the web service
> wsdls
> > and seem to be correctly defined.
> >
> > This is the exception, any ideas?
> >
> > 23:25:13,984 INFO  [STDOUT] &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
> > 23:25:13,999 INFO  [STDOUT] Request map is: {sayHello.toWhom=Jimbo}
> > 23:25:13,999 INFO  [STDOUT] &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
> > 23:25:14,046 ERROR [SOAPFaultHelperJAXWS] SOAP request exception
> > java.lang.UnsupportedOperationException: setProperty must be overridden
> by
> > all subclasses of SOAPMessage
> >         at javax.xml.soap.SOAPMessage.setProperty(SOAPMessage.java:424)
> >         at
> > org.jboss.ws.core.soap.SOAPMessageImpl.<init>(SOAPMessageImpl.java:67)
> >         at
> >
> org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:207)
> >         at
> >
> org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:185)
> >         at
> >
> org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:389)
> >         at
> >
> org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:272)
> >         at
> >
> org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:189)
> >         at
> >
> org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:122)
> >         at
> > org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84)
> >         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
> >
> 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:127)
> >         at
> >
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> >         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:262)
> >         at
> >
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
> >         at
> >
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
> >         at
> > org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
> >         at java.lang.Thread.run(Thread.java:619)
> > 23:25:14,046 ERROR [RequestHandlerImpl] Error processing web service
> request
> > org.jboss.ws.WSException: java.lang.UnsupportedOperationException:
> > setProperty must be overridden by all subclasses of SOAPMessage
> >         at org.jboss.ws.WSException.rethrow(WSException.java:68)
> >         at
> >
> org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:310)
> >         at
> >
> org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:189)
> >         at
> >
> org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:122)
> >         at
> > org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84)
> >         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
> >
> 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:127)
> >         at
> >
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> >         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:262)
> >         at
> >
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
> >         at
> >
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
> >         at
> > org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
> >         at java.lang.Thread.run(Thread.java:619)
> > Caused by: java.lang.UnsupportedOperationException: setProperty must be
> > overridden by all subclasses of SOAPMessage
> >         at javax.xml.soap.SOAPMessage.setProperty(SOAPMessage.java:424)
> >         at
> > org.jboss.ws.core.soap.SOAPMessageImpl.<init>(SOAPMessageImpl.java:67)
> >         at
> >
> org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:161)
> >         at
> >
> org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.toSOAPMessage(SOAPFaultHelperJAXWS.java:232)
> >         at
> >
> org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.exceptionToFaultMessage(SOAPFaultHelperJAXWS.java:161)
> >         at
> >
> org.jboss.ws.core.jaxws.binding.SOAP11BindingJAXWS.createFaultMessageFromException(SOAP11BindingJAXWS.java:104)
> >         at
> >
> org.jboss.ws.core.CommonSOAPBinding.bindFaultMessage(CommonSOAPBinding.java:645)
> >         at
> >
> org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:430)
> >         at
> >
> org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:272)
> >         ... 22 more
> > 23:25:14,124 ERROR [[HelloWorldWS]] Servlet.service() para servlet
> > HelloWorldWS lanz¾ excepci¾n
> > java.lang.UnsupportedOperationException: setProperty must be overridden
> by
> > all subclasses of SOAPMessage
> >         at javax.xml.soap.SOAPMessage.setProperty(SOAPMessage.java:424)
> >         at
> > org.jboss.ws.core.soap.SOAPMessageImpl.<init>(SOAPMessageImpl.java:67)
> >         at
> >
> org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:161)
> >         at
> >
> org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.toSOAPMessage(SOAPFaultHelperJAXWS.java:232)
> >         at
> >
> org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.exceptionToFaultMessage(SOAPFaultHelperJAXWS.java:161)
> >         at
> >
> org.jboss.ws.core.jaxws.binding.SOAP11BindingJAXWS.createFaultMessageFromException(SOAP11BindingJAXWS.java:104)
> >         at
> >
> org.jboss.ws.core.CommonSOAPBinding.bindFaultMessage(CommonSOAPBinding.java:645)
> >         at
> >
> org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:430)
> >         at
> >
> org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:272)
> >         at
> >
> org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:189)
> >         at
> >
> org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:122)
> >         at
> > org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84)
> >         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
> >
> 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:127)
> >         at
> >
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> >         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:262)
> >         at
> >
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
> >         at
> >
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
> >         at
> > org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
> >         at java.lang.Thread.run(Thread.java:619)
> > 23:25:14,202 ERROR [STDERR] [Fatal Error] :-1:-1: Premature end of file.
> > 23:25:14,202 WARN  [ActionProcessingPipeline] Unexpected exception caught
> > while processing the action pipeline: header: [ To: JMSEpr [
> PortReference <
> > <wsa
> > :Address jms://127.0.0.1:1099/queue/quickstart_webservice_consumer1_esb/
> >,
> > <wsa:ReferenceProperties jbossesb:java.naming.factory.initial :
> > org.jnp.interfac
> > es.NamingContextFactory/>, <wsa:ReferenceProperties
> > jbossesb:java.naming.provider.url : 127.0.0.1:1099/>,
> > <wsa:ReferenceProperties jbossesb:java.naming.fac
> > tory.url.pkgs : org.jnp.interfaces/>, <wsa:ReferenceProperties
> > jbossesb:destination-type : queue/>, <wsa:ReferenceProperties
> > jbossesb:specification-version
> >  : 1.1/>, <wsa:ReferenceProperties jbossesb:connection-factory :
> > ConnectionFactory/>, <wsa:ReferenceProperties jbossesb:persistent :
> true/>,
> > <wsa:Reference
> > Properties jbossesb:acknowledge-mode : AUTO_ACKNOWLEDGE/>,
> > <wsa:ReferenceProperties jbossesb:transacted : false/>,
> > <wsa:ReferenceProperties jbossesb:type :
> >  urn:jboss/esb/epr/type/jms/> > ] MessageID:
> > 1f199f02-9178-4fd0-8919-151c1591a9cb RelatesTo:
> > jms:correlationID#1f199f02-9178-4fd0-8919-151c1591a9cb ]
> > org.jboss.soa.esb.actions.ActionProcessingException: Error parsing SOAP
> > response.
> >         at
> >
> org.jboss.soa.esb.actions.soap.SOAPClient.populateResponseOgnlMap(SOAPClient.java:526)
> >         at
> >
> org.jboss.soa.esb.actions.soap.SOAPClient.processResponse(SOAPClient.java:486)
> >         at
> > org.jboss.soa.esb.actions.soap.SOAPClient.process(SOAPClient.java:419)
> >         at
> >
> org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.process(ActionProcessingPipeline.java:316)
> >         at
> >
> org.jboss.soa.esb.listeners.message.MessageAwareListener$TransactionalRunner.run(MessageAwareListener.java:530)
> >         at
> >
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
> >         at
> >
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
> >         at java.lang.Thread.run(Thread.java:619)
> > Caused by: org.xml.sax.SAXParseException: Premature end of file.
> >         at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
> >         at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown
> Source)
> >         at
> >
> org.jboss.soa.esb.actions.soap.SOAPClient.populateResponseOgnlMap(SOAPClient.java:519)
> >         ... 7 more
> > 23:25:14,249 WARN  [ActionProcessingPipeline] No fault address defined
> for
> > fault message! To: JMSEpr [ PortReference < <wsa:Address
> > jms://127.0.0.1:1099/qu
> > eue/quickstart_webservice_consumer1_esb/>, <wsa:ReferenceProperties
> > jbossesb:java.naming.factory.initial :
> > org.jnp.interfaces.NamingContextFactory/>, <wsa:
> > ReferenceProperties jbossesb:java.naming.provider.url : 127.0.0.1:1099/
> >,
> > <wsa:ReferenceProperties jbossesb:java.naming.factory.url.pkgs :
> > org.jnp.interfac
> > es/>, <wsa:ReferenceProperties jbossesb:destination-type : queue/>,
> > <wsa:ReferenceProperties jbossesb:specification-version : 1.1/>,
> > <wsa:ReferenceProperti
> > es jbossesb:connection-factory : ConnectionFactory/>,
> > <wsa:ReferenceProperties jbossesb:persistent : true/>,
> > <wsa:ReferenceProperties jbossesb:acknowledge-
> > mode : AUTO_ACKNOWLEDGE/>, <wsa:ReferenceProperties jbossesb:transacted :
> > false/>, <wsa:ReferenceProperties jbossesb:type :
> > urn:jboss/esb/epr/type/jms/> >
> > ] MessageID: 1f199f02-9178-4fd0-8919-151c1591a9cb RelatesTo:
> > jms:correlationID#1f199f02-9178-4fd0-8919-151c1591a9cb
> >
> >
> > Cheers,
> > Pablo.
> >
> >
> > On Fri, Oct 17, 2008 at 3:01 PM, Pablo Pazos <pablo.swp at gmail.com>
> wrote:
> >>
> >> Hi!
> >>
> >> I tryed the link but is borken (http://java.sun.com/j2se/1) :(
> >>
> >> I'll try to google a little to see what I can find, I have no clue on
> >> "endorsed directory mechanism".
> >>
> >> I'll have a look at the things you said, I'll tell you what I found.
> >>
> >> Thanks again for the patience!
> >> Pablo.
> >>
> >> On Fri, Oct 17, 2008 at 2:55 PM, Matt Green <matt.green at rockshore.net>
> >> wrote:
> >>>
> >>> Hi,
> >>>
> >>> On Fri, 2008-10-17 at 14:46 -0200, Pablo Pazos wrote:
> >>> > Hi Matt, thanks for the quick answer, I'm really new with the ESB.
> >>> >
> >>> > When I download the new version of the API, do you know how to
> >>> > install it so the JVM can load the right version?
> >>> >
> >>> >
> >>>
> >>> The error message in your original post points towards looking at some
> >>> docs that relate to the JVM/JDK - it talks about the 'endorsed
> classpath
> >>> mechanism' - you'll need to read up on that at the Sun website, the
> >>> error message gave a helpful link!
> >>>
> >>> > Other question, this library comes with the ESB Server or is
> >>> > something
> >>> > that comes with the JVM? If it's something of the ESB Server, the
> >>> > quickstarts
> >>> > may no run out-of-the-box. I have downloaded all new versions of the
> >>> > ESB and
> >>> > the ESB Server (jbossesb-4.4.GA, jbossesb-server-4.4.GA).
> >>> >
> >>>
> >>> I'm not sure, you could have a look at the JVM directories and see what
> >>> is there then have a look in the ESB installation zip file to see what
> >>> it will be trying to install?
> >>>
> >>> >
> >>> > Thanks!
> >>> > Pablo.
> >>> >
> >>> > On Fri, Oct 17, 2008 at 2:26 PM, Matt Green <
> matt.green at rockshore.net>
> >>> > wrote:
> >>> >         I think the line...:-
> >>> >
> >>> >         > nested throwable: (java.lang.LinkageError: JAXB 2.0 API is
> >>> >         being
> >>> >
> >>> >         > loaded from the bootstrap classloader, but this RI
> >>> >         > (from jar:file:/C:/JBoss/jbossesb-server-4.4.GA/
> >>> >
> >>> >          server/default/tmp/deploy/tmp14487jaxb-impl.jar!/
> >>> >
> >>> >         com/sun/xml/bind/v2/model/impl/ModelBuilder.class)
> >>> >         > needs 2.1 API. Use the endorsed directory mechanism to
> place
> >>> >         > jaxb-api.jar in the bootstrap classloader. (See
> >>> >         > http://java.sun.com/j2se/1.5.0/docs/guide/standards/))
> >>> >
> >>> >
> >>> >         ...pretty much explains it, essentially your JVM that is
> >>> >         running JBoss
> >>> >         has loaded the JAXB2.0 APIs (they probably come packaged with
> >>> >         you JDK)
> >>> >         but either your application or JBoss is trying to use a JAXB
> >>> >         Implementation that conforms to the JAXB2.1 API.
> >>> >
> >>> >         The error tells you what to do; the JAXB 2.1 API should be
> >>> >         available
> >>> >         from the relevant download from the JAXB site.
> >>> >
> >>> >         Matt
> >>> >
> >>> >
> >>> >
> >>> >         On Fri, 2008-10-17 at 13:48 -0200, Pablo Pazos wrote:
> >>> >         > nested throwable: (java.lang.LinkageError: JAXB 2.0 API is
> >>> >         being
> >>> >         > loaded from the bootstra
> >>> >         > p classloader, but this RI (from
> >>> >         >
> >>> >
> >>> > jar:file:/C:/JBoss/
> jbossesb-server-4.4.GA/server/default/tmp/deploy/tmp14487jaxb-impl.jar!/com/sun/xml/bind/v2/model/impl/<http://jbossesb-server-4.4.GA/server/default/tmp/deploy/tmp14487jaxb-impl.jar%21/com/sun/xml/bind/v2/model/impl/>
> >>> >         > ModelBuilder.class) needs 2.1 API. Use the endorsed
> >>> >         directory
> >>> >         > mechanism to place jaxb-api.jar in the bootstrap
> >>> >         classloader. (See
> >>> >         > http://java.sun.com/j2se/1
> >>> >         > .5.0/docs/guide/standards/))
> >>> >
> >>> >
> >>> >
> >>> >
> >>> >
> >>> > --
> >>> > Atte.
> >>> > A/C Pablo Pazos Gutierrez
> >>> > http://www.simplewebportal.net
> >>> > http://pablo.swp.googlepages.com/home
> >>> >
> >>>
> >>
> >>
> >>
> >> --
> >> Atte.
> >> A/C Pablo Pazos Gutierrez
> >> http://www.simplewebportal.net
> >> http://pablo.swp.googlepages.com/home
> >
> >
> >
> > --
> > Atte.
> > A/C Pablo Pazos Gutierrez
> > http://www.simplewebportal.net
> > http://pablo.swp.googlepages.com/home
> >
> > _______________________________________________
> > esb-users mailing list
> > esb-users at lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/esb-users
> >
> >
>
>
>
> --
> Poyan Gerami
> poyan.gerami at gmail.com
>



-- 
Atte.
A/C Pablo Pazos Gutierrez
http://www.simplewebportal.net
http://pablo.swp.googlepages.com/home
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/esb-users/attachments/20081123/86953dab/attachment.html 


More information about the esb-users mailing list