[JBoss jBPM] - Re: how to get jBPM working without the starterkit
by cocampo
"onizuka82" wrote :
| i have already intalled the Jboss AS and mySQL database. How can i deploy the jBPM engine. I have build the ANT. Do we need to put the jbpm.jar files and jbpm.war files?
|
In order to install jbpm, follow these instructions (Alex Guizar's message): http://www.jboss.com/index.html?module=bb&op=viewtopic&t=74781
By the way, when you say "I ... installed mySQL", you mean that you already installed jBPM in a mySQL database? If not, refer to section 8.1 in the manual.
Remember (as Alex Guizar already said) that you don't install jbpm.war, but jbpm.sar (the task build.service.archive will build it for you).
"onizuka82" wrote :
| In Apache, we must pust the jbpm.war files onto the webapps but in Jboss AS, where must we put?
|
Once you have the jbpm.sar file, copy it in the <jboss-dir>/server/default/deploy.
"onizuka82" wrote :
| Can jbpm core engine running standalone?
|
I haven't tried yet, buy since tests run standalone (you can see tests that create, load, save, reload processes) I guess the answer is yes.
BTW, this is the last question I answer you about JBoss, since this is a VERY basic question; you NEED to read your JBoss manual, or else go to the JBoss newbies forum. Be aware, this forum does NOT exist so you can relax while others do your work; you need to do your own work (read, research, test, etc.).
I think you don't understand the purpose of forums, so, take a look at the next page http://www.catb.org/~esr/faqs/smart-questions.html before asking any other question.
Regards.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3982265#3982265
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3982265
17Â years, 6Â months
[JBossWS] - Web Service: Could not dereference object
by EricYP
Hello
Everybody, help me.
Envrionment:
jboss-4.0.4.GA
jbossws14.sar
jbossws-samples-1.0.2.GA
I download jbossws-samples-1.0.2.GA from jboss website and compile the package with build.xml provided by jbossws-samples-1.0.2.GA.
But when I run the task "tests" defined in built.xml, the following error occurs:
(jbossws-samples-rpcstyle.war,jbossws-samples-rpcstyle-client.jar)
Could not dereference object
javax.naming.NamingException: Could not dereference object [Root exception is org.jboss.ws.metadata.wsdl.WSDLException: java.net.ConnectException: Connection refused: connect] at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1150) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:705) at org.jboss.naming.client.java.javaURLContextFactory$EncContextProxy.invoke(javaURLContextFactory.java:135) at $Proxy1.lookup(Unknown Source) at javax.naming.InitialContext.lookup(InitialContext.java:351) at org.jboss.test.ws.samples.rpcstyle.TrivialServiceRpcTestCase.setUp(TrivialServiceRpcTestCase.java:67) at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22) at junit.extensions.TestSetup$1.protect(TestSetup.java:19) at junit.extensions.TestSetup.run(TestSetup.java:23)Caused by: org.jboss.ws.metadata.wsdl.WSDLException: java.net.ConnectException: Connection refused: connect at org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory.getDocument(WSDLDefinitionsFactory.java:204) at org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory.parse(WSDLDefinitionsFactory.java:112) at org.jboss.ws.metadata.ServiceMetaData.getWsdlDefinitions(ServiceMetaData.java:273) at org.jboss.ws.deployment.JSR109ClientMetaDataBuilder.buildMetaData(JSR109ClientMetaDataBuilder.java:110) at org.jboss.ws.jaxrpc.ServiceImpl.(ServiceImpl.java:112) at org.jboss.ws.jaxrpc.ServiceObjectFactory.getObjectInstance(ServiceObjectFactory.java:181) at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304) at org.jnp.interfaces.NamingContext.getObjectInstance(NamingContext.java:1125) at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1142) ... 19 moreCaused by: java.net.ConnectException: Connection refused: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.Socket.connect(Socket.java:507) at java.net.Socket.connect(Socket.java:457) at sun.net.NetworkClient.doConnect(NetworkClient.java:157) at sun.net.www.http.HttpClient.openServer(HttpClient.java:365) at sun.net.www.http.HttpClient.openServer(HttpClient.java:477) at sun.net.www.http.HttpClient.(HttpClient.java:214) at sun.net.www.http.HttpClient.New(HttpClient.java:287) at sun.net.www.http.HttpClient.New(HttpClient.java:299) at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:792) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:744) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:669) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:913) at java.net.URL.openStream(URL.java:1007) at org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory.getDocument(WSDLDefinitionsFactory.java:187) ... 27
The content of webservices.xml in jbossws-samples-rpcstyle.war:
<webservices version='1.1' xmlns='http://java.sun.com/xml/ns/j2ee' xmlns:impl='http://org.jboss.ws/samples/rpcstyle' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://java.sun.com/xml/ns/j2ee http://www.ibm.com/webservices/xsd/j2ee_web_services_1_1.xsd'>
<webservice-description>
<webservice-description-name>SampleService</webservice-description-name>
<wsdl-file>WEB-INF/wsdl/SampleService.wsdl</wsdl-file>
<jaxrpc-mapping-file>WEB-INF/jaxrpc-mapping.xml</jaxrpc-mapping-file>
<port-component>
<port-component-name>TrivialServicePort</port-component-name>
<wsdl-port>impl:TrivialServicePort</wsdl-port>
<service-endpoint-interface>org.jboss.test.ws.samples.rpcstyle.TrivialService</service-endpoint-interface>
<service-impl-bean>
<servlet-link>TrivialEndpoint</servlet-link>
</service-impl-bean>
</port-component>
</webservice-description>
The content of web.xml in jbossws-samples-rpcstyle.war:
<?xml version="1.0" encoding="UTF-8"?>
<web-app 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"
version="2.4">
<servlet-name>TrivialEndpoint</servlet-name>
<servlet-class>org.jboss.test.ws.samples.rpcstyle.TrivialEndpointJSE</servlet-class>
<servlet-mapping>
<servlet-name>TrivialEndpoint</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
</web-app>
The content of SampleService.wsdl in jbossws-samples-rpcstyle.war:
<?xml version="1.0" encoding="UTF-8"?>
<definitions name='SampleService' targetNamespace='http://org.jboss.ws/samples/rpcstyle' xmlns='http://schemas.xmlsoap.org/wsdl/' xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/' xmlns:tns='http://org.jboss.ws/samples/rpcstyle' xmlns:xsd='http://www.w3.org/2001/XMLSchema'>
<soap:binding style='rpc' transport='http://schemas.xmlsoap.org/soap/http'/>
<soap:operation soapAction=''/>
<soap:body namespace='http://org.jboss.ws/samples/rpcstyle' use='literal'/>
<soap:body namespace='http://org.jboss.ws/samples/rpcstyle' use='literal'/>
<soap:address location='REPLACE_WITH_ACTUAL_URL'/>
When I edit web.xml as following, the error also exists:
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:mh='http://org.jboss.ws/samples/rpcstyle' xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">
<servlet-name>TrivialEndpoint</servlet-name>
<servlet-class>org.jboss.test.ws.samples.rpcstyle.TrivialEndpointJSE</servlet-class>
<service-ref>
<service-ref-name>service/TrivialService</service-ref-name>
<service-interface>org.jboss.test.ws.samples.rpcstyle.TrivialService
</service-interface>
<wsdl-file>WEB-INF/wsdl/SampleService.wsdl</wsdl-file>
<jaxrpc-mapping-file>WEB-INF/jaxrpc-mapping.xml</jaxrpc-mapping-file>
<service-qname>mh:TrivialService</service-qname>
</service-ref>
<servlet-mapping>
<servlet-name>TrivialEndpoint</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
</web-app>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3982262#3982262
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3982262
17Â years, 6Â months
[Beginners Corner] - JBoss rules livetrails run with exception
by neubie
First of all, i'm sorry if i'm not posting in the correct forum. I do not know where JBOss Rules user exchange infos here.
Anyway, i'm facing a problem when i'm following the trailblazer demos "Extending the simple credit system example with its own Domain Specific Language". I managed to get the first demo running smoothly. I followed the demo (the one using a Domain Specific Language) step by step but i couldn't get mine to run without exception (i paste it below for your reference).
java.lang.IllegalArgumentException: Unable to use expander. Make sure a expander or dsl config is being passed to the parser. [ExpanderResolver was not set].
at org.drools.lang.RuleParser.expander(Unknown Source)
at org.drools.lang.RuleParser.prolog(Unknown Source)
at org.drools.lang.RuleParser.compilation_unit(Unknown Source)
at org.drools.compiler.DrlParser.compile(Unknown Source)
at org.drools.compiler.DrlParser.parse(Unknown Source)
at org.drools.compiler.DrlParser.parse(Unknown Source)
at org.drools.compiler.PackageBuilder.addPackageFromDrl(Unknown Source)
at com.livetrail.CreditExample.main(CreditExample.java:21)
Is this a known issue? or am i doing it wrong?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3982260#3982260
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3982260
17Â years, 6Â months