[jBPM] - jBPM5 demo issues with Eclipse
by Vikram Narayan
Vikram Narayan [http://community.jboss.org/people/vikedvik] created the discussion
"jBPM5 demo issues with Eclipse"
To view the discussion, visit: http://community.jboss.org/message/577525#577525
--------------------------------------------------------------
I've been playing with the jBPM5 CR1 demo and I seem to having some issues with the Eclipse tooling. When I import the sample project, the jBPM library does not load with it resulting in several compilation errors. This leads me to my first question. Does the jBPM5 runtime get installed into eclipse when you run install.demo?
After I add the jBPM5 runtime manually to Eclipse and apply it to the project I get the following error when I run the ProcessTest program:
java.lang.NoSuchMethodError: org.drools.common.InternalRuleBase.getRootClassLoader()Lorg/drools/util/CompositeClassLoader;
at org.jbpm.process.instance.ProcessRuntimeImpl.getRootClassLoader(ProcessRuntimeImpl.java:101)
at org.jbpm.process.instance.ProcessRuntimeImpl.<init>(ProcessRuntimeImpl.java:58)
at org.jbpm.process.instance.ProcessRuntimeFactoryServiceImpl.newProcessRuntime(ProcessRuntimeFactoryServiceImpl.java:10)
at org.jbpm.process.instance.ProcessRuntimeFactoryServiceImpl.newProcessRuntime(ProcessRuntimeFactoryServiceImpl.java:6)
at org.drools.runtime.process.ProcessRuntimeFactory.newProcessRuntime(ProcessRuntimeFactory.java:12)
at org.drools.common.AbstractWorkingMemory.createProcessRuntime(AbstractWorkingMemory.java:389)
at org.drools.common.AbstractWorkingMemory.setKnowledgeRuntime(AbstractWorkingMemory.java:1774)
at org.drools.impl.StatefulKnowledgeSessionImpl.<init>(StatefulKnowledgeSessionImpl.java:115)
at org.drools.impl.StatefulKnowledgeSessionImpl.<init>(StatefulKnowledgeSessionImpl.java:108)
at org.drools.reteoo.ReteooRuleBase.newStatefulSession(ReteooRuleBase.java:391)
at org.drools.reteoo.ReteooRuleBase.newStatefulSession(ReteooRuleBase.java:371)
at org.drools.impl.KnowledgeBaseImpl.newStatefulKnowledgeSession(KnowledgeBaseImpl.java:169)
at com.sample.ProcessTest.createSession(ProcessTest.java:65)
at com.sample.ProcessTest.main(ProcessTest.java:37)
Looking at my jBPM5 library all the required jars are there so it's strange that I would be getting this error.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/577525#577525]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 4 months
[JBoss Web Services] - Native library already loaded in another classloader ?! (Axis2)
by Igor JStarter
Igor JStarter [http://community.jboss.org/people/izgur] created the discussion
"Native library already loaded in another classloader ?! (Axis2)"
To view the discussion, visit: http://community.jboss.org/message/576933#576933
--------------------------------------------------------------
Hello!
I'm doing a web service which sends a file over SFTP.
I downloaded the *chilkat* jar files and send the file over FTP with no problem (as an application).
All scenarious when deploying with Axis2, but I think, only the 1. could be made to work:
1. My app.java includes system.loadLibrary(chilkat) and when making the axis archiver .aar file, I add the chilkat.jar
* Native Library* D:\KKISSWORK\jboss-5.1.0.GA-jdk6\bin\chilkat.dll *already loaded in another classloader*
2. My app.java doesn't include system.loadLibraty
If I include the jar when making .aar file: ERROR: com.chilkatsoft.chilkatJNI.new_CkSFtp()J
If i don't include the jar when making .aar file: ERROR: new_CksFtp
Any idea how to solve that?
I know that the problem is that the classloader can't load a library twice, but how to solve that.
Somewhere i read that I should load the library (in my app) from the classloader....
Thanks in advance!
BR. Igor!
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/576933#576933]
Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 4 months
[jBPM] - First jBPM5 snapshots
by Kris Verlaenen
Kris Verlaenen [http://community.jboss.org/people/KrisVerlaenen] created the discussion
"First jBPM5 snapshots"
To view the discussion, visit: http://community.jboss.org/message/565381#565381
--------------------------------------------------------------
We've been talking about it for a while now, and working on it even longer, but we believe the time has come to just get the jBPM5 code out there
and start asking for community feedback and assistance.
The current jBPM5 snapshot offers open-source business process execution and management, including
* an embeddable, light-weight process engine in Java, supporting native BPMN2 execution
* BPMN2 process modeling, both in Eclipse (developers) and web-based (business users)
* process collaboration, monitoring and management through the Guvnor repository and the management consoles
* human interaction using an independent WS-HT human task service
* strong and powerful integration with business rules and event processing
So where to start looking?
For those that want to get their hands on the source code:
http://github.com/krisv/jbpm http://github.com/krisv/jbpm
Documentation (which is still under heavy construction but will be extended significantly in the next few weeks) can be found https://hudson.jboss.org/hudson/job/jBPM5/lastSuccessfulBuild/artifact/ta... here.
And you can always download the latest snapshot binaries, sources, the gwt-console, documentation and an installer here:
https://hudson.jboss.org/hudson/job/jBPM5/lastSuccessfulBuild/artifact/ta... https://hudson.jboss.org/hudson/job/jBPM5/lastSuccessfulBuild/artifact/ta...
Enjoy !
[From http://kverlaen.blogspot.com/2010/10/here-we-go-first-jbpm5-snapshots.html http://kverlaen.blogspot.com/2010/10/here-we-go-first-jbpm5-snapshots.html]
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/565381#565381]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 4 months
[JBoss Web Services] - Unsupported assertion. Policy not supported
by Daniel Rodriguez
Daniel Rodriguez [http://community.jboss.org/people/dani_demons] created the discussion
"Unsupported assertion. Policy not supported"
To view the discussion, visit: http://community.jboss.org/message/560375#560375
--------------------------------------------------------------
Hi everybody.
I am trying to develop an app. that uses WebServices but I have some problems when I try to get a response from them.. In particular when the appl. try to build the request to send the message to WS. But first, let me explain you the steps we already did:
- We had JBOSS-WS libraries v2.0.1 and JBOSS v4.2.3 --> It was updated *JbossWS libraries to 3.1.1 (Native)* (Jboss stay in 4.2.3)
- It was got the WSDL that we're going to use in the APP and was generated the source code of WebServices using the 'wsconsume' from 3.1.1 version.
- We created a Java project in Eclipse, copied the source code into that, built successfully and deployed in Jboss..
- It was created a Mock with using SoapUI 3.5.1
To be sure that it worked, it was created a JUnit test to check funcionality.. --> JUnit ends test with an OK!.
We created the client code of WS, built and deployed in Jboss... Time to checks:
We invoking the client and:.... WSException: Policy not supported.
I think that there are already several discussion about this problem, but certainly I can't find anything that solved this problem:
- I tried to change the path of ProviderImpl in Provider class as shown in: http://community.jboss.org/thread/151773 http://community.jboss.org/thread/151773 but it not works
We think that there is something wrong in the policy assertions of WSDL, so I hope you can help us because we are wasting a lot of time in this problem and It seems that we can't get the right solution.
Thanks you.
Greeting,
Dani.
*Conflict WSDL code:*
<?xml version="1.0" encoding="utf-8" ?>
<wsdl:definitions name="BizTalkServiceInstance" targetNamespace="http://tempuri.org/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsa10="http://www.w3.org/2005/08/addressing" xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utilit..." xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy" xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl/ws-addr-wsdl.xsd" xmlns:tns="http://tempuri.org/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
<wsdl:documentation>
<CreationInfo Created="2010-08-27 10:51:08Z"/>
</wsdl:documentation>
<wsp:Policy wsu:Id="WSHttpBinding_ITwoWayAsync_policy">
<wsp:ExactlyOne>
<wsp:All>
<wsaw:UsingAdressing/>
</wsp:All>
</wsp:ExactlyOne>
</wsp:Policy>
...
*Call function in source Code:*
@WebEndpoint(name = "WSHttpBinding_ITwoWayAsync")
public EPGServices getWSHttpBindingITwoWayAsync() {
return (EPGServices)super.getPort(new QName("http://tempuri.org/", "WSHttpBinding_ITwoWayAsync"), EPGServices.class,new AddressingFeature(true));
}
*Exception:*
06:44:13,060 ERROR [PolicyDeployer] Unsupported assertion!
06:44:13,060 ERROR [UserInfoServiceWSRequestBuilder] Policy not supported! #WSHttpBinding_ITwoWayAsync_policy
org.jboss.ws.WSException: Policy not supported! #WSHttpBinding_ITwoWayAsync_policy
at org.jboss.ws.WSException.rethrow(WSException.java:60)
at org.jboss.ws.extensions.policy.metadata.PolicyMetaDataBuilder.deployPolicyClientSide(PolicyMetaDataBuilder.java:319)
at org.jboss.ws.extensions.policy.metadata.PolicyMetaDataBuilder.deployPolicy(PolicyMetaDataBuilder.java:277)
at org.jboss.ws.extensions.policy.metadata.PolicyMetaDataBuilder.processPolicies(PolicyMetaDataBuilder.java:236)
at org.jboss.ws.extensions.policy.metadata.PolicyMetaDataBuilder.processPolicyExtensions(PolicyMetaDataBuilder.java:193)
at org.jboss.ws.metadata.builder.jaxws.JAXWSClientMetaDataBuilder.buildMetaData(JAXWSClientMetaDataBuilder.java:95)
at org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.<init>(ServiceDelegateImpl.java:133)
at org.jboss.ws.core.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:63)
at javax.xml.ws.Service.<init>(Service.java:79)
at ws.client.epg.BizTalkServiceInstance.<init>(BizTalkServiceInstance.java:43)
at com.gmv.request.UserInfoServiceWSRequestBuilder.invokeUserInfoServiceWS(UserInfoServiceWSRequestBuilder.java:36)
at com.gmv.WSCall.userInfoServiceWS(WSCall.java:107)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:57)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:94)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:70)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:139)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:216)
at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:186)
at org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.java:81)
at $Proxy132.userInfoServiceWS(Unknown Source)
at com.gmv.utils.WSHelper.getUserInfoWS(WSHelper.java:33)
at com.gmv.user.action.UserAction.login(UserAction.java:115)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:440)
at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:279)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)
at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:163)
at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:249)
at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)
at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:122)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)
at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)
at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:148)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:93)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:235)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:89)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
at com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:128)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
at org.apache.struts2.interceptor.ProfilingActivationInterceptor.intercept(ProfilingActivationInterceptor.java:104)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
at org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:267)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:126)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:138)
at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:148)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:128)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:176)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)
at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:468)
at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)
at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:76)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
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:173)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
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:241)
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:447)
at java.lang.Thread.run(Thread.java:619)
Caused by: org.jboss.ws.extensions.policy.deployer.exceptions.UnsupportedPolicy
at org.jboss.ws.extensions.policy.deployer.PolicyDeployer.deployClientSide(PolicyDeployer.java:170)
at org.jboss.ws.extensions.policy.metadata.PolicyMetaDataBuilder.deployPolicyClientSide(PolicyMetaDataBuilder.java:310)
... 115 more
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/560375#560375]
Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 4 months