Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Eclipse Process Manager (Stardust) » Problems to deploy the ACME Workflow Model from the Support Example tutorial(Is this issue caused by Apache Tomcat not running properly?)
Problems to deploy the ACME Workflow Model from the Support Example tutorial [message #1712620] Mon, 26 October 2015 19:31 Go to next message
Tomas Balderas is currently offline Tomas BalderasFriend
Messages: 64
Registered: July 2010
Member
Hello dear community, I hope you can assist me to solve my problem.

I'm very new to Stardust and started with the Support Case tutorial. I haven't been able to complete such tutorial because I get the following error when deploying ACME Workflow Model:

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


I'm using Windows 10, Java JDK/JRE 1.8.0_65, Eclipse Mars, Stardust 3.0.1.v20150916-0728 and Apache Tomcat 7.0.65. I considered the following lines of research to solve the problem:

1. I read the thread https://www.eclipse.org/forums/index.php/t/478520/ and checked whether the derby.jar files were located in the lib folder within the Tomcat installation folder and found that the files carnot-derby.jar, derbynet.jar and derby.jar are located in such folder. Also, I didn't get any error when creating the Audit Trail database. I am not sure the thread describes an actual fix and, thus, got stuck. Any suggestion from the participants in such thread?

2. By reading the bug reports https://bugs.eclipse.org/bugs/show_bug.cgi?id=477289 and https://bugs.eclipse.org/bugs/show_bug.cgi?id=468611 I realized that Stardust uses Rhino Javascript engine and Java 8 comes with Nashorn Javascript engine. So, I built bsf-engines.jar, as indicated in the section Support Tomcat Deployment of Stardust on Java 8 in the Release Notes 3.0.1. My problem here is that I don't know what to do to "manually include the bsf-engines.jar file in the deployment". How can I do it? Will this fix my problem when deploying the model?

3. My Eclipse environment also has BIRT Project 4.5.0.v201506092134 installed. Would this plugin interfere with Stardust in some way?

I will appreciate any help. Thank you very much.


/TB
Re: Problems to deploy the ACME Workflow Model from the Support Example tutorial [message #1712634 is a reply to message #1712620] Tue, 27 October 2015 05:04 Go to previous messageGo to next message
Tanmoy Roy is currently offline Tanmoy RoyFriend
Messages: 41
Registered: September 2013
Member
Hi Tomas.

How you are deploying model? Using Command utility or Eclipse deployer?
As per the exception stack it seems carnot spring remoting Url is not correct or server is not running, can you verify the WEB-INF/classes/carnot-spring-client.properties? it should point to your Stardust host:port/Context.

You can also use Stardust portal to deploy your model.

Thanks,
Tanmoy Roy
Re: Problems to deploy the ACME Workflow Model from the Support Example tutorial [message #1712685 is a reply to message #1712634] Tue, 27 October 2015 13:30 Go to previous messageGo to next message
Tomas Balderas is currently offline Tomas BalderasFriend
Messages: 64
Registered: July 2010
Member
Hello Tanmoy

Thank you for responding. I am trying to deploy the model by right-clicking on ACME Workflow Model in the Outline view and then clicking on Deploy Model in the context menu. I guess this invokes Eclipse's deployer, right?
I opened the WEB-INF/classes/carnot-spring-client.properties file in the .metadata folder in my workspace, its contents are as follows:

#Infinity Spring Remoting
#Mon Oct 26 07:57:35 CST 2015
Carnot.Spring.RemotingUrl=http\://localhost\:8080/Support-Case/remoting


I must point out that the syntax of the URL seemed weird to me at first sight, so I set Carnot.Spring.RemotingUrl manually to http://localhost\:8080/Support-Case/remoting using a text editor and tried to deploy again. The same exception occurred and Eclipse set the value of Carnot.Spring.RemotingUrl back to http\://localhost\:8080/Support-Case/remoting. Any idea of what to do next?

I appreciate your help. Kindest regards.


/TB
Re: Problems to deploy the ACME Workflow Model from the Support Example tutorial [message #1712690 is a reply to message #1712685] Tue, 27 October 2015 13:37 Go to previous messageGo to next message
Rajkumar Dangi is currently offline Rajkumar DangiFriend
Messages: 51
Registered: November 2014
Location: Pune, India
Member
Are you able to login stardust portal by hitting below URL in browser ?

http://localhost:8080/Support-Case
Re: Problems to deploy the ACME Workflow Model from the Support Example tutorial [message #1712692 is a reply to message #1712690] Tue, 27 October 2015 13:45 Go to previous messageGo to next message
Tomas Balderas is currently offline Tomas BalderasFriend
Messages: 64
Registered: July 2010
Member
Hi Rajkumar

I opened Eclipse and started Tomcat (its state is [Started, Synchronized]). Then I tried to open the URL you indicate in Chrome and this is the result:

HTTP Status 404 - /Support-Case

type Status report

message /Support-Case

description The requested resource is not available.

Apache Tomcat/7.0.65


So, this means the web server is not running, right?

Thanks


/TB
Re: Problems to deploy the ACME Workflow Model from the Support Example tutorial [message #1712703 is a reply to message #1712692] Tue, 27 October 2015 14:39 Go to previous messageGo to next message
Rajkumar Dangi is currently offline Rajkumar DangiFriend
Messages: 51
Registered: November 2014
Location: Pune, India
Member
It seems your dynamic-web-project is not published to tomcat server.

In ther server view right click on tomcat and select "add and remove" and see if your project is deployed to tomcat.

http://help.eclipse.org/mars/index.jsp?topic=%2Forg.eclipse.stardust.docs.wst%2Fhtml%2Fwst-integration%2Fdynamic-web-proj.html

-Thanks
RajKumar
Re: Problems to deploy the ACME Workflow Model from the Support Example tutorial [message #1712740 is a reply to message #1712703] Tue, 27 October 2015 19:51 Go to previous messageGo to next message
Tomas Balderas is currently offline Tomas BalderasFriend
Messages: 64
Registered: July 2010
Member
Followed the instructions in the RAD section in http://help.eclipse.org/mars/index.jsp?topic=%2Forg.eclipse.stardust.docs.wst%2Fhtml%2Fwst-integration%2Fdynamic-web-proj.html. Thery are basically the same as the ones in sections Getting Started and Deploying a Workflow Model in the tutorial for The Support Case Example, right? So, as before, I still have the issue.

I realized that I previously downloaded Tomcat 7 from the first download link from the homepage. So, I downloaded the 64-bit version because all of my Eclipse environment is 64-bit and used it. I also erased my workspace and followed the instructions from scratch and I got the same problem.

Kindest regards.


/TB
Re: Problems to deploy the ACME Workflow Model from the Support Example tutorial [message #1712758 is a reply to message #1712740] Wed, 28 October 2015 05:52 Go to previous messageGo to next message
Rajkumar Dangi is currently offline Rajkumar DangiFriend
Messages: 51
Registered: November 2014
Location: Pune, India
Member
Couple of things to check:

1. When you start the tomcat server can you check if there are any errors/exceptions traces on console, while publishing the web-project?
2. In eclipse installation folder there will be one "stardust.log" file, check for any errors/exceptions(you can attach a fresh log file here as well)?

Above thing may give us some clue about the problem with your setup.

-Thanks
Rajkumar

[Updated on: Wed, 28 October 2015 05:52]

Report message to a moderator

Re: Problems to deploy the ACME Workflow Model from the Support Example tutorial [message #1712761 is a reply to message #1712758] Wed, 28 October 2015 06:32 Go to previous messageGo to next message
Paul Raes is currently offline Paul RaesFriend
Messages: 1
Registered: October 2015
Junior Member
Hello every one,

I'm a complete novice on everthing Java, html, etc... I would like to get into it and installed Eclipse to start learning and putting in practice what I learn about Java, html, xml an webdeployed applications. In the first place I would like to put my BPM in her and from those continue further to get some applications up and running, most probably together with some specialist in this area. Having my BPM in eclipse should make it easier and more coherent to go from BPM to applications. So far my background
I try to work through the turorial, but got stuck on the same or similar problem mentioned by Tomas. When I try to deploy the "Support-Case" example that I have set up working through the Stardust tutorial, I also get the error "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]".

The log of the console pane is in the attached file.

I sincerely hope someone over here could help me to get on with it.

Kind regards.
Paul Raes
Re: Problems to deploy the ACME Workflow Model from the Support Example tutorial [message #1712820 is a reply to message #1712758] Wed, 28 October 2015 14:03 Go to previous messageGo to next message
Tomas Balderas is currently offline Tomas BalderasFriend
Messages: 64
Registered: July 2010
Member
Hello Raj

Thanks for your support. Every time I start Tomcat I see several messages in the Console view, lots of them in red. This same occurs when I try to deploy the model.

Attached to this reply I am sending the following log files:

1. The file stardust.log as you requested.
2. The file tomcat-start.log containing the output of the Tomcat starting process in the Console view. NOTE: I am not sure the log contains all of the resulting messages. It seemed to me as if some messages were lost because the Console view had limited space.
3. The file deploy.log contains the output of the deployment step for my model in the Console view.

Please, let me know if you need something else.

Kindest regards.
  • Attachment: tomcat-start.log
    (Size: 78.31KB, Downloaded 192 times)
  • Attachment: deploy.log
    (Size: 8.69KB, Downloaded 194 times)
  • Attachment: stardust.log
    (Size: 87.55KB, Downloaded 175 times)


/TB
Re: Problems to deploy the ACME Workflow Model from the Support Example tutorial [message #1712870 is a reply to message #1712820] Thu, 29 October 2015 05:16 Go to previous messageGo to next message
Rajkumar Dangi is currently offline Rajkumar DangiFriend
Messages: 51
Registered: November 2014
Location: Pune, India
Member
Hi Tomas,

It seems your web-context initialization is failing.

Quote:
07:51:06 ERROR- [ost-startStop-1] ContextLoader - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'carnotReportingService' defined in ServletContext resource [/WEB-INF/config/ipp/spring/carnot-spring-context.xml]: Invocation of init method failed; nested exception is java.lang.ExceptionInInitializerError
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1482)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521)


By looking at further exception it seems this the problem with the java version being used in your setup:

Quote:
Caused by: java.lang.ExceptionInInitializerError
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)


I think your eclipse is using JRE8/JAVA8. can you please configure your eclipse to use JAVA7/JRE7 and check ? After pointing your eclipse to java7 please re-publish web-project/restart server and see if it works.

index.php/fa/23769/0/
Re: Problems to deploy the ACME Workflow Model from the Support Example tutorial [message #1713016 is a reply to message #1712870] Thu, 29 October 2015 20:01 Go to previous message
Tomas Balderas is currently offline Tomas BalderasFriend
Messages: 64
Registered: July 2010
Member
Hi Raj

I installed JDK 1.7.0_71 with JRE 7 and this switch fixed the issue and I was able to complete the tutorial. So, does this mean that the root cause issue is the lack of support of Nashorn JavaScript engine? Anyway, case closed. I really appreciate your help and support.

Thank you very much. Kindest regards.


/TB
Previous Topic:Question on Stardust Modelling and interaction with DB
Next Topic:Showing Documents using a manual activity
Goto Forum:
  


Current Time: Fri Apr 19 20:52:32 GMT 2024

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

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

Back to the top