Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Process Manager (Stardust) » CarnotUserService problem(Cannot deploy model)
CarnotUserService problem [message #856118] Wed, 25 April 2012 07:38 Go to next message
Mervyn Lovatt is currently offline Mervyn Lovatt
Messages: 5
Registered: April 2012
Junior Member
Hi
I get an error when deploying a model as follows

Could not access HTTP invoker remote service at [http ://localhost:8081/dynweb7/remoting/CarnotUserService]; nested exception is java.io.IOException: Did not receive successful HTTP response: status code = 404, status message = [Not Found]


Any suggestions what this could be (more below)
thanks
=====
org.springframework.remoting.RemoteAccessException: Could not access HTTP invoker remote service at [http ://localhost:8081/dynweb7/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:211)
at org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.invoke(HttpInvokerClientInterceptor.java:144)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy2.login(Unknown Source)
at ag.carnot.workflow.runtime.spring.SpringServiceFactory.getNewServiceInstance(SpringServiceFactory.java:109)
at ag.carnot.workflow.runtime.beans.AbstractSessionAwareServiceFactory.getOrCreateService(AbstractSessionAwareServiceFactory.java:58)
at ag.carnot.workflow.runtime.beans.AbstractSessionAwareServiceFactory.startSession(AbstractSessionAwareServiceFactory.java:113)
at ag.carnot.workflow.runtime.beans.AbstractSessionAwareServiceFactory.getService(AbstractSessionAwareServiceFactory.java:46)
at ag.carnot.workflow.runtime.beans.DefaultServiceFactory.getQueryService(DefaultServiceFactory.java:56)
at ag.carnot.workflow.model.deploy.DeployModelDialog.<init>(DeployModelDialog.java:66)
at ag.carnot.workflow.model.deploy.DeployModelDialog.showDialog(DeployModelDialog.java:233)
at ag.carnot.workflow.model.deploy.ModelDeploymentTool.deployModel(ModelDeploymentTool.java:256)
at ag.carnot.workflow.model.deploy.ModelDeploymentTool.<init>(ModelDeploymentTool.java:173)
at ag.carnot.workflow.model.deploy.ModelDeploymentTool.main(ModelDeploymentTool.java:137)
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:146)
at org.springframework.remoting.httpinvoker.SimpleHttpInvokerRequestExecutor.doExecuteRequest(SimpleHttpInvokerRequestExecutor.java:65)
at org.springframework.remoting.httpinvoker.AbstractHttpInvokerRequestExecutor.executeRequest(AbstractHttpInvokerRequestExecutor.java:136)
at ag.carnot.workflow.runtime.spring.CarnotHttpInvokerRequestExecutor.executeRequest(CarnotHttpInvokerRequestExecutor.java:79)
at org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.executeRequest(HttpInvokerClientInterceptor.java:191)
at org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.executeRequest(HttpInvokerClientInterceptor.java:173)
at org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.invoke(HttpInvokerClientInterceptor.java:141)
... 13 more
Re: CarnotUserService problem [message #857798 is a reply to message #856118] Thu, 26 April 2012 17:51 Go to previous messageGo to next message
Jan Hendrik Scheufen is currently offline Jan Hendrik Scheufen
Messages: 61
Registered: October 2011
Member

Hi Mervyn,

this is a typical error when the remoting services are not available either do to startup problems or due to a wrong URL.

Quick checks:
1. Can you reach the portal's login page at URL http ://localhost:8081/dynweb7/ ? (I'm assuming the port 8081 was intentionally changed from the default 8080).
2. Check the console output or the startup log for exceptions, usually the application or the server never started up successfully
3. Sometimes on Windows there are problems to resolve localhost correctly. Try to use the machines IP address or machine name in the file <project>/ipp-resources/carnot-spring-client.properties which contains this URL.

Regards,

Jan
Re: CarnotUserService problem [message #858814 is a reply to message #857798] Fri, 27 April 2012 06:04 Go to previous messageGo to next message
Mervyn Lovatt is currently offline Mervyn Lovatt
Messages: 5
Registered: April 2012
Junior Member
Hi Jan

1. No I cannot reach the portal login page
2. The server does start, (I get a Tomcat delivered 404 page), but there are a lot of errors:
Quote:
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:dynweb8' did not find a matching property.
SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
...
Caused by: javax.naming.NameNotFoundException: Name AuditTrail.DataSource is not bound in this Context
...
SEVERE: Error listenerStart
27-Apr-2012 10:56:29 org.apache.catalina.core.StandardContext start
SEVERE: Context [/dynweb8] startup failed due to previous errors
27-Apr-2012 10:56:29 org.apache.catalina.core.ApplicationContext log
INFO: Closing Spring root WebApplicationContext
27-Apr-2012 10:56:29 com.sun.xml.ws.transport.http.servlet.WSServletDelegate destroy
INFO: WSSERVLET15: JAX-WS servlet destroyed
27-Apr-2012 10:56:29 com.sun.xml.ws.transport.http.servlet.WSServletContextListener contextDestroyed
INFO: WSSERVLET13: JAX-WS context listener destroyed
10:56:29 INFO [main ] ContextEventRepeater - Servlet Context Name: dynweb8, Server Info: Apache Tomcat/6.0.35
27-Apr-2012 10:56:36 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/dynweb8] appears to have started a thread named [Thread-2] but has failed to stop it. This is very likely to create a memory leak.
27-Apr-2012 10:56:36 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/dynweb8] created a ThreadLocal with key of type [com.sun.xml.bind.v2.ClassFactory$1] (value [com.sun.xml.bind.v2.ClassFactory$1@197e706]) and a value of type [java.util.WeakHashMap] (value [{class javax.xml.bind.annotation.W3CDomHandler=java.lang.ref.WeakReference@1c06dff}]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
10:56:38 WARN [main ] essControlCenterConstants - Key 'Carnot.Threshold.Provider' not found in resource bundle
27-Apr-2012 10:56:41 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
27-Apr-2012 10:56:42 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
27-Apr-2012 10:56:42 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/31 config=null
27-Apr-2012 10:56:42 org.apache.catalina.startup.Catalina start
INFO: Server startup in 39087 ms


3. The file the file <project>/ipp-resources/carnot-spring-client.properties did seem to be corrupt, the path indicated was Carnot.Spring.RemotingUrl=http\://localhost\:8080/dynweb7/remoting

Changing this to various alternatives, (and various restarts/redploys) did not solve it

(strange that the first time I set Stardust/Eclipse/Tomcat up and deployed a model, it all worked fine)

thanks
Merv
Re: CarnotUserService problem [message #871224 is a reply to message #858814] Fri, 11 May 2012 09:48 Go to previous messageGo to next message
Jan Hendrik Scheufen is currently offline Jan Hendrik Scheufen
Messages: 61
Registered: October 2011
Member

Mervyn,

were you able to resolve the problems in the end? Did you try recreating the Rapid Application setup (Tomcat/Dynamic Web Project)?

Regards,

Jan
Re: CarnotUserService problem [message #885650 is a reply to message #858814] Wed, 13 June 2012 07:58 Go to previous message
Shyam Prakash is currently offline Shyam Prakash
Messages: 11
Registered: June 2012
Junior Member
Hi Mervyn,

Can you check if you have an entry in your tomcat/server.xml. This should look something like this

<Resource auth="Container" defaultAutoCommit="false" driverClassName="org.apache.derby.jdbc.EmbeddedDriver" maxActive="50" maxIdle="10" maxWait="5000" name="AuditTrail.DataSource" password="default_password" type="javax.sql.DataSource" url="jdbc:derby:default_db" username="default_username"/>

Note: I've replaced actual instance names with default_*

Also when you start the tomcat server, can you check if you get any error looking for a file carnot-audittrail.properties.



~Shyam
Previous Topic:NullPointerException when bootstrapping engine. Unable to login
Next Topic:Build from the sources, unresolved dependencies
Goto Forum:
  


Current Time: Sat Apr 19 23:11:36 EDT 2014

Powered by FUDForum. Page generated in 0.04095 seconds