I tried latest release of JBossWS1.0.4GA on JBossAS 4.0.5. I followed these installation instructions -
In order to install JBossWS the following steps are necessary: 1.) Copy lib/jbossws-client.jar to $JBOSS_HOME/client/ 2.) Unzip lib/jbossws.sar to $JBOSS_HOME/server/default/deploy/ 3.) Replacing jboss-xml-binding.jar You need to manually replace the jboss-xml-binding.jar in the $JBOSS_HOME/client and $JBOSS_HOME/lib directories. The compatible release can be found here: http://repository.jboss.com/jboss/jbossxb/1.0.0.CR7 Then I ran 'ant generate artifacts' and got new exception which looked worse. It seems it cannot find my wsdl file now. call-wstools: [wstools] java.lang.NullPointerException [wstools] at java.io.File.(File.java:194) [wstools] at org.jboss.ws.tools.helpers.ToolsHelper.handleWSDLToJavaGenera tion(ToolsHelper.java:282) [wstools] at org.jboss.ws.tools.WSTools.process(WSTools.java:138) [wstools] at org.jboss.ws.tools.WSTools.generate(WSTools.java:120) [wstools] at org.jboss.ws.tools.ant.wstools.execute(wstools.java:103) [wstools] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja The BPEL and WSDL files I used are - hello.wsdl | <?xml version="1.0" encoding="UTF-8"?> | <definitions targetNamespace="http://jbpm.org/examples/hello" | xmlns="http://schemas.xmlsoap.org/wsdl/" | xmlns:tns="http://jbpm.org/examples/hello" | xmlns:xsd="http://www.w3.org/2001/XMLSchema" | xmlns:plt="http://schemas.xmlsoap.org/ws/2003/05/partner-link/" | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | xmlns:evt="http://www.eclipse.org/alf/schema/EventBase/1"> | | | <import namespace="http://www.eclipse.org/alf/schema/EventBase/1" location="resources/xml/ALFEventManagerSOAP.wsdl" /> | <!-- characterizes the relationship between the greeter and its caller --> | <plt:partnerLinkType name="Greeter-Caller"> | <plt:role name="Greeter"> | <plt:portType name="tns:ALFServiceFlow" /> | </plt:role> | <!-- the Caller does not provide services to the Greeter, | this is why we omit the "Caller" role --> | </plt:partnerLinkType> | | <!-- describes the interface presented to callers --> | <portType name="ALFServiceFlow"> | <operation name="eventNotice"> | <input message="evt:EventNotice"/> | </operation> | </portType> | | <!--<portType name="ALFServiceFlow"> | <operation name="TEMPEventNotice"> | <input message="evt:EventNotice"/> | </operation> | </portType>--> | | </definitions> | hello.bpel | <?xml version="1.0" encoding="UTF-8"?> | <process name="HelloWorld" targetNamespace="http://jbpm.org/examples/hello" | xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/" | xmlns:tns="http://jbpm.org/examples/hello" | xmlns:bpel="http://schemas.xmlsoap.org/ws/2003/03/business-process/" | xmlns:evt="http://www.eclipse.org/alf/schema/EventBase/1" | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | xsi:schemaLocation="http://schemas.xmlsoap.org/ws/2003/03/business-process/ | http://schemas.xmlsoap.org/ws/2003/03/business-process/"> | | <partnerLinks> | <!-- establishes the relationship with the caller agent --> | <partnerLink name="caller2" partnerLinkType="tns:Greeter-Caller" | myRole="Greeter" /> | </partnerLinks> | | <variables> | <!-- holds the incoming message --> | <variable name="request" messageType="evt:EventNotice" /> | | </variables> | | <sequence> | | <!-- receive the name of a person --> | <receive operation="eventNotice" partnerLink="caller2" portType="tns:ALFServiceFlow" | variable="request" createInstance="yes" /> | | <assign name="Calculate"> | <copy> | <from expression="concat(bpel:getVariableData('request', 'EventNotice', '/EventNotice/evt:Base/evt:EventType'),bpel:getVariableData('request', 'EventNotice', '/EventNotice/evt:Base/evt:ObjectType'))" /> | <to part="EventNotice" query="/EventNotice/evt:Base/evt:ObjectType" variable="request" /> | </copy> | </assign> | | <!-- compose a greeting phrase --> | <!-- <assign> | <copy> | <from expression="concat('Hello, ', | bpel:getVariableData('request', 'name'), '!')" /> | <to variable="response" part="greeting" /> | </copy> | </assign> --> | | <!-- reply with the greeting --> | <!-- <reply operation="sayHello" partnerLink="caller2" portType="tns:Greeter" | variable="response" /> --> | </sequence> | | </process> | I get this same exception for both 'evt:ALFServiceFlow' and 'tns:ALFServiceFlow' portTypes Meghana View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023246#4023246 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4023246 _______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user
