[jboss-user] [JBoss jBPM] - BPEL Bonjour Example - HTTP GET not supported & SOAP Instant

darklight.37 do-not-reply at jboss.com
Fri Dec 15 08:38:03 EST 2006


Hello,


I'm having a getting the bonjour example to work on my jboss-4.0.4.GA server.  The process seems to deploy without error and is visible at:

http://localhost:8080/jbossws/services

I use MS office's web reference tools to test webservices, but upon testing the service

Error message displayed:

13:15:04,062 ERROR [[callerServlet]] Servlet.service() for servlet callerServlet threw exception
org.jboss.util.NotImplementedException: HTTP GET not supported
        at org.jboss.ws.server.ServiceEndpointServlet.doGet(ServiceEndpointServlet.java:95)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
        at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
        at java.lang.Thread.run(Thread.java:595)

When I try to invoke the service I get this error message:

13:31:32,515 ERROR [SOAPFaultExceptionHelper] SOAP request exception
java.lang.InstantiationException: org.jbpm.bpel.tutorial.bonjour.Bonjour
        at java.lang.Class.newInstance0(Class.java:335)
        at java.lang.Class.newInstance(Class.java:303)
        at org.jboss.ws.server.ServiceEndpointInvokerJSE.createServiceEndpoint(ServiceEndpointInvokerJSE.java:71)
        at org.jboss.ws.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:97)
        at org.jboss.ws.server.ServiceEndpoint.handleRequest(ServiceEndpoint.java:234)
        at org.jboss.ws.server.ServiceEndpointServlet.doPost(ServiceEndpointServlet.java:120)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
        at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
        at java.lang.Thread.run(Thread.java:595)

Copy of WSDL of service:


  
  
    
      <soap:address location="http://glowplug:8080/bonjour/caller"/>
    
  


Copy of the bonjour.bpel:

<?xml version="1.0" encoding="UTF-8"?>
<bpws:process xmlns:bpws="http://schemas.xmlsoap.org/ws/2004/03/business-process/" 
              xmlns:tns="http://jbpm.org/examples/bonjour" 
              exitOnStandardFault="yes" name="bonjour" suppressJoinFailure="yes" 
              targetNamespace="http://jbpm.org/examples/bonjour">

  <bpws:import importType="http://schemas.xmlsoap.org/wsdl/" 
			   location="bonjour.wsdl" 
			   namespace="http://jbpm.org/examples/bonjour"/>

  <bpws:partnerLinks>
    <bpws:partnerLink myRole="bonjourProvider" name="client" partnerLinkType="tns:bonjour"/>
  </bpws:partnerLinks>

  <bpws:variables>
    <bpws:variable messageType="tns:bonjourRequestMessage" name="input"/>
    <bpws:variable messageType="tns:bonjourResponseMessage" name="output"/>
  </bpws:variables>
  <bpws:sequence name="main">
    <bpws:receive createInstance="yes" name="receiveInput" operation="process" 
                  partnerLink="client" portType="tns:bonjour" variable="input"/>
    <bpws:assign name="Assign" validate="no">
      <bpws:copy>
        <bpws:from part="payload" variable="input"/>
        <bpws:to part="payload" variable="output"/>
      </bpws:copy>
    </bpws:assign>
    <bpws:reply name="replyOutput" operation="process" partnerLink="client" 
                portType="tns:bonjour" variable="output"/>
  </bpws:sequence>
</bpws:process>

I can understand that I most probably cannot test it, but I don't understand the SOAP Instantiation Exception.

I get the feeling that it's something simple that I'm overlooking, would be grateful for any help or ideas.

Thanks.[/img]

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994219#3994219

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994219



More information about the jboss-user mailing list