Skip to main content



      Home
Home » Archived » Eclipse Process Manager (Stardust) » camel trigger as start event
camel trigger as start event [message #1710575] Wed, 07 October 2015 12:10 Go to next message
Eclipse UserFriend
hi all.
i wanna use camel trigger as start event for doing this in eclipse modeler in camel trigger properties in route section , i add <to uri = "ipp:direct" /> that this means start next process automatically but when deploy it get this error : User id / passwrod is not set for start event.
Re: camel trigger as start event [message #1710578 is a reply to message #1710575] Wed, 07 October 2015 12:22 Go to previous messageGo to next message
Eclipse UserFriend
Hi,
user id/pwd are configuration variable that needs to be provided. the credentials will be used to authenticate the user to start a new process instance.
Regards
Fradj
Re: camel trigger as start event [message #1710943 is a reply to message #1710578] Sun, 11 October 2015 10:59 Go to previous messageGo to next message
Eclipse UserFriend
hi all,
i changed supportCaseManagement example thru as start event i have a camel trigger that i wrote for it this route :
<from uri ="file:C:/temp??noop=true&amp;consumer.initialDelay=2000&amp;include=.*itxt$"/>
<to uri="ipp:process:start?processId={SupportCaseMnanagement}"/>

but when deploy this i'm facing this exception :
18:20:01 WARN [main ] CamelTriggerValidator - No Parameter mapping defined for trigger: StartEvent
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/collections/IteratorUtils
at org.eclipse.stardust.engine.core.model.beans.ProcessDefinitionBean$3.iterator(ProcessDefinitionBean.java:616)
at org.eclipse.stardust.engine.core.model.beans.ProcessDefinitionBean.checkConsistency(ProcessDefinitionBean.java:264)
at org.eclipse.stardust.engine.core.model.beans.ModelBean.checkConsistency(ModelBean.java:223)
at org.eclipse.stardust.modeling.deploy.ModelDeploymentTool.deployModel(ModelDeploymentTool.java:268)
at org.eclipse.stardust.modeling.deploy.ModelDeploymentTool.<init>(ModelDeploymentTool.java:220)
at org.eclipse.stardust.modeling.deploy.ModelDeploymentTool.main(ModelDeploymentTool.java:142)
Caused by: java.lang.ClassNotFoundException: org.apache.commons.collections.IteratorUtils
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 6 more
plz help me
Re: camel trigger as start event [message #1711025 is a reply to message #1710943] Mon, 12 October 2015 09:18 Go to previous messageGo to next message
Eclipse UserFriend
Hi,
Can you share the updated model ?

Thanks
RajKumar
Re: camel trigger as start event [message #1711040 is a reply to message #1711025] Mon, 12 October 2015 09:50 Go to previous messageGo to next message
Eclipse UserFriend
yes , off course
Re: camel trigger as start event [message #1711108 is a reply to message #1711040] Tue, 13 October 2015 02:35 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

I think below route should work for your start trigger. Just make sure you have not provide any parameter mapping in start trigger in case if you want to copy get file contents then you should set parameters mapping too.

<from uri="file://C:/temp/?noop=true&amp;consumer.initialDelay=2000&amp;include=.*itxt$"/>
<to uri="ipp:direct"/>

-Thanks
Re: camel trigger as start event [message #1711112 is a reply to message #1711108] Tue, 13 October 2015 03:07 Go to previous messageGo to next message
Eclipse UserFriend
hi,
unfortunately doesnt work.
again this exception occures:

10:32:30 WARN [main ] CamelTriggerValidator - No Parameter mapping defined for trigger: StartEvent
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/collections/IteratorUtils
at org.eclipse.stardust.engine.core.model.beans.ProcessDefinitionBean$3.iterator(ProcessDefinitionBean.java:616)
at org.eclipse.stardust.engine.core.model.beans.ProcessDefinitionBean.checkConsistency(ProcessDefinitionBean.java:264)
at org.eclipse.stardust.engine.core.model.beans.ModelBean.checkConsistency(ModelBean.java:223)
at org.eclipse.stardust.modeling.deploy.ModelDeploymentTool.deployModel(ModelDeploymentTool.java:268)
at org.eclipse.stardust.modeling.deploy.ModelDeploymentTool.<init>(ModelDeploymentTool.java:220)
at org.eclipse.stardust.modeling.deploy.ModelDeploymentTool.main(ModelDeploymentTool.java:142)
Caused by: java.lang.ClassNotFoundException: org.apache.commons.collections.IteratorUtils
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 6 more
Re: camel trigger as start event [message #1711117 is a reply to message #1711112] Tue, 13 October 2015 04:17 Go to previous messageGo to next message
Eclipse UserFriend
Which version of stardust are you using ? For me it;s working fine on stardust 3.0.1, you can also try with 3.0.1 in case if you are using older version.

The class "rg.apache.commons.collections.IteratorUtils" is part of "commons-collections-3.2.1.jar" can you double check if this jar is present in your classpath.

-Thanks
Re: camel trigger as start event [message #1711123 is a reply to message #1711117] Tue, 13 October 2015 05:36 Go to previous messageGo to next message
Eclipse UserFriend
hi,
i'm using stardust 3.0.1 , that problem with adding commons-collections to classpath solved . but now when deploying the model get this exception :

org.springframework.remoting.RemoteAccessException: Could not access HTTP invoker remote service at [http://localhost:8080/Support-Case/remoting/CarnotUserService]; nested exception is java.io.IOException: Did not receive successful HTTP response: status code = 404, status message = [Not Found]
at org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.convertHttpInvokerAccessException(HttpInvokerClientInterceptor.java:212)
at org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.invoke(HttpInvokerClientInterceptor.java:145)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at com.sun.proxy.$Proxy8.login(Unknown Source)
at org.eclipse.stardust.engine.api.spring.SpringServiceFactory.getNewServiceInstance(SpringServiceFactory.java:116)
at org.eclipse.stardust.engine.core.runtime.beans.AbstractSessionAwareServiceFactory.getOrCreateService(AbstractSessionAwareServiceFactory.java:65)
at org.eclipse.stardust.engine.core.runtime.beans.AbstractSessionAwareServiceFactory.startSession(AbstractSessionAwareServiceFactory.java:120)
at org.eclipse.stardust.engine.core.runtime.beans.AbstractSessionAwareServiceFactory.getService(AbstractSessionAwareServiceFactory.java:53)
at org.eclipse.stardust.engine.core.runtime.beans.DefaultServiceFactory.getQueryService(DefaultServiceFactory.java:60)
at org.eclipse.stardust.modeling.deploy.DeployModelDialog.<init>(DeployModelDialog.java:73)
at org.eclipse.stardust.modeling.deploy.DeployModelDialog.showDialog(DeployModelDialog.java:240)
at org.eclipse.stardust.modeling.deploy.ModelDeploymentTool.deployModel(ModelDeploymentTool.java:318)
at org.eclipse.stardust.modeling.deploy.ModelDeploymentTool.<init>(ModelDeploymentTool.java:220)
at org.eclipse.stardust.modeling.deploy.ModelDeploymentTool.main(ModelDeploymentTool.java:142)
Caused by: java.io.IOException: Did not receive successful HTTP response: status code = 404, status message = [Not Found]
at org.springframework.remoting.httpinvoker.SimpleHttpInvokerRequestExecutor.validateResponse(SimpleHttpInvokerRequestExecutor.java:179)
at org.springframework.remoting.httpinvoker.SimpleHttpInvokerRequestExecutor.doExecuteRequest(SimpleHttpInvokerRequestExecutor.java:92)
at org.springframework.remoting.httpinvoker.AbstractHttpInvokerRequestExecutor.executeRequest(AbstractHttpInvokerRequestExecutor.java:136)
at org.eclipse.stardust.engine.api.spring.CarnotHttpInvokerRequestExecutor.executeRequest(CarnotHttpInvokerRequestExecutor.java:87)
at org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.executeRequest(HttpInvokerClientInterceptor.java:192)
at org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.executeRequest(HttpInvokerClientInterceptor.java:174)
at org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.invoke(HttpInvokerClientInterceptor.java:142)
... 13 more
Re: camel trigger as start event [message #1711192 is a reply to message #1711123] Wed, 14 October 2015 01:12 Go to previous messageGo to next message
Eclipse UserFriend
I think your server is not started properly. Are you able to login to "http://localhost:8080/Support-Case" from browser ?
Re: camel trigger as start event [message #1711203 is a reply to message #1711192] Wed, 14 October 2015 02:51 Go to previous messageGo to next message
Eclipse UserFriend
exactly , you right.
this log relate to tomcat log with this error:

Oct 14, 2015 10:04:05 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error listenerStart
Oct 14, 2015 10:04:05 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/Support-Case] startup failed due to previous errors
Oct 14, 2015 10:04:05 AM org.apache.catalina.core.ApplicationContext log
INFO: Closing Spring root WebApplicationContext
Re: camel trigger as start event [message #1711205 is a reply to message #1711203] Wed, 14 October 2015 02:58 Go to previous messageGo to next message
Eclipse UserFriend
i found this error when tomcat restart then clears in log section ,
10:24:28 INFO [tartStop-1] FacesConfigurator - Reading standard config org/apache/myfaces/resource/standard-faces-config.xml
10:24:28 ERROR [tartStop-1] Digester - End event threw error
java.lang.NoClassDefFoundError: org/apache/commons/beanutils/MethodUtils
at org.apache.commons.digester.CallMethodRule.end(CallMethodRule.java:626)
at org.apache.commons.digester.Rule.end(Rule.java:253)
at org.apache.commons.digester.Digester.endElement(Digester.java:1222)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.dtd.XMLNSDTDValidator.endNamespaceScope(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.endElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1745)
at org.apache.myfaces.config.impl.digester.DigesterFacesConfigUnmarshallerImpl.getFacesConfig(DigesterFacesConfigUnmarshallerImpl.java:186)
at org.apache.myfaces.config.FacesConfigurator.feedStandardConfig(FacesConfigurator.java:160)
at org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:128)
at org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupServletContextListener.java:68)
at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:51)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4887)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5381)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: org.apache.commons.beanutils.MethodUtils
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
... 32 more
Oct 14, 2015 10:24:28 AM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class org.apache.myfaces.webapp.StartupServletContextListener
java.lang.NoClassDefFoundError: org/apache/commons/beanutils/MethodUtils
at org.apache.commons.digester.CallMethodRule.end(CallMethodRule.java:626)
at org.apache.commons.digester.Rule.end(Rule.java:253)
at org.apache.commons.digester.Digester.endElement(Digester.java:1222)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.dtd.XMLNSDTDValidator.endNamespaceScope(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.endElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1745)
at org.apache.myfaces.config.impl.digester.DigesterFacesConfigUnmarshallerImpl.getFacesConfig(DigesterFacesConfigUnmarshallerImpl.java:186)
at org.apache.myfaces.config.FacesConfigurator.feedStandardConfig(FacesConfigurator.java:160)
at org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:128)
at org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupServletContextListener.java:68)
at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:51)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4887)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5381)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: org.apache.commons.beanutils.MethodUtils
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
... 32 more
Re: camel trigger as start event [message #1711206 is a reply to message #1711205] Wed, 14 October 2015 03:00 Go to previous messageGo to next message
Eclipse UserFriend
i know exception related to this error -> java.lang.ClassNotFoundException: org.apache.commons.beanutils.MethodUtils but this class related to which jar?
Re: camel trigger as start event [message #1711225 is a reply to message #1711206] Wed, 14 October 2015 04:23 Go to previous message
Eclipse UserFriend
Ideally all these jars should be available be default in your stardust's dynamic-web-proejct. I think something went wrong with your setup. I would suggest to setup a fresh dynamic-web-project otherwise it would be difficult to find and copy these jars because there could be more missing jars.
Previous Topic:UI Mashup Example
Next Topic:Calling RESTful Service Through Camel Route - a JSON POST example
Goto Forum:
  


Current Time: Mon May 12 09:01:28 EDT 2025

Powered by FUDForum. Page generated in 0.04323 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top