[jboss-user] [Advanced Documentation] - Re: Help in executing Hello World BPEL example

doankhoavy do-not-reply at jboss.com
Fri Aug 18 05:37:05 EDT 2006


Hi gosanjeev,
Yes,the tools that i use then ActiveBPEL is easiest.
To answers your prior questtion : in addition have Oracle document 
http://www.huihoo.com/oracle/docs/B14099_19/integrate.1012/b14448/hello.htm . Oracle plugin Eclipse
or IBM Process Choreographer
http://www-128.ibm.com/developerworks/webservices/library/ws-bpelwp/
These doc purpose to just understand more about BPEL.

And i have another question when the fisrt time run then server show a error message : 

2006-08-17 12:41:42,829 ERROR [org.jboss.ws.jaxrpc.SOAPFaultExceptionHelper] SOAP request exception
javax.xml.rpc.JAXRPCException: could not set up port provider
	at org.jbpm.bpel.service.provider.PortProvider.init(PortProvider.java:148)
	at org.jboss.ws.handler.HandlerWrapper.init(HandlerWrapper.java:94)
	at org.jboss.ws.handler.HandlerChainBaseImpl.init(HandlerChainBaseImpl.java:162)
	at org.jboss.ws.server.ServiceEndpoint.initHandlerChain(ServiceEndpoint.java:368)
	at org.jboss.ws.server.ServiceEndpoint.initHandlerChain(ServiceEndpoint.java:355)
	at org.jboss.ws.server.ServiceEndpoint.handleRequest(ServiceEndpoint.java:208)
	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)
Caused by: java.lang.NullPointerException
	at org.jbpm.bpel.relation.jms.RelationContext.findProcessDefinition(RelationContext.java:95)
	at org.jbpm.bpel.relation.jms.RelationContext.getProcessContext(RelationContext.java:353)
	at org.jbpm.bpel.service.provider.PortProvider.setUp(PortProvider.java:160)
	at org.jbpm.bpel.service.provider.PortProvider.init(PortProvider.java:144)
	... 26 more
The file webservice.xml
<?xml version="1.0" encoding="UTF-8"?>
<webservices version="1.1" 
  xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/j2ee_web_services_1_1.xsd"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/j2ee">

  <webservice-description>

    <!-- descriptive name for the service -->
    <webservice-description-name>Hello World</webservice-description-name>
    <!-- WSDL service file -->
    <!-- <wsdl-file>WEB-INF/wsdl/hello.wsdl</wsdl-file>-->
    <wsdl-file>META-INF/wsdl/helloBean.wsdl</wsdl-file>
    <!-- Java<->XML mapping file -->
    <!--<jaxrpc-mapping-file>WEB-INF/jaxrpc-mapping.xml</jaxrpc-mapping-file>-->
    <jaxrpc-mapping-file>META-INF/jaxrpc-ejb-mapping.xml</jaxrpc-mapping-file>

    <port-component>

      <!-- logical name for the port (unique within the module) -->
      <port-component-name>HelloBean</port-component-name>
      <!-- WSDL port element (in WSDL implementation file) -->
      <wsdl-port xmlns:portNS="http://hello.chap12.jboss.org">portNS:HelloBean</wsdl-port>
      
      <service-endpoint-interface>
        org.jboss.chap12.hello.HelloServlet
      </service-endpoint-interface>
      <!-- associated servlet (in web-app descriptor) -->
      <service-impl-bean>
        <!-- <servlet-link>callerServlet</servlet-link>-->
        <ejb-link>HelloBean</ejb-link>
      </service-impl-bean>
		
		
      

        <!-- logical name for the handler (unique within the module) -->
        <handler-name>callerHandler</handler-name>
        <!-- handler class (in jBPM BPEL library) -->
        <handler-class>org.jbpm.bpel.service.provider.PortProvider</handler-class>
        
        <init-param>
          name of the associated partner link
          <param-name>portName</param-name>
          <param-value>caller</param-value>
        </init-param>

      

    </port-component>
    
  </webservice-description>


 And file web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" 
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">

  
    <servlet-name>relationServlet</servlet-name>
    <!-- partner relationship servlet class -->
    <servlet-class>org.jbpm.bpel.relation.jms.RelationServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
  
  
  <servlet-mapping>
    <servlet-name>relationServlet</servlet-name>
    <!-- partner relationship console location -->
    <url-pattern>/relation</url-pattern>
  </servlet-mapping>

  
  
        <servlet-name>TestServlet</servlet-name>
        <servlet-class>org.jboss.chap12.hello.TestServlet</servlet-class>
  
  <servlet-mapping>
       <servlet-name>TestServlet</servlet-name>
       <url-pattern>/TestServlet</url-pattern>
  </servlet-mapping>
  
  <resource-ref>
    <!-- sole JMS connection factory -->
    <res-ref-name>jms/ConnectionFactory</res-ref-name>
    <res-type>javax.jms.ConnectionFactory</res-type>
    <res-auth>Container</res-auth>
    <res-sharing-scope>Shareable</res-sharing-scope>
  </resource-ref>  
  
  <message-destination-ref>
    <!-- queue assigned to caller partner link -->
    <message-destination-ref-name>jms/caller</message-destination-ref-name>
    <message-destination-type>javax.jms.Queue</message-destination-type>
    <message-destination-usage>ConsumesProduces</message-destination-usage>
  </message-destination-ref>
    
</web-app>
but the second time then Ok.I don't know what's problem?

You or anyone help me to resovle this problem ?
thx.

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

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



More information about the jboss-user mailing list