AnsweredAssumed Answered

Deploying Camel application from activiti in action book

Question asked by pmsriram13 on Jan 15, 2013
Latest reply on Jan 17, 2013 by trademak
Guys, I need your help. I have been struggling to get the camel application  deployed on Tomcat 6.0.36(from the activiti in action book) working. It works fine when I run the unit tests from eclipse.
I am using Activiti 5.11/Windows 7


Here are my steps:
1. Installed the Activiti plugin for Eclipse.
2. Imported the book-camel project into eclipse.Generated the .bar and .jar artifacts.
3. Followed instructions to copy the activiti-explorer and activiti-rest projects into tomcat's webbapps folder.
4. Started tomcat with no errors.
Deployment on tomcat:
Shut down tomcat.
1. Copied the book-camel.jar to the activiti-explorer/WEB-INF/lib folder.Restarted tomcat.

2. Logged into the activiti explorer application and deployed the workflow.(Note : I have not made the web.xml change to load spring configuration files yet)
Shut down tomcat.
3. Modified the web.xml to add the
 <context-param>
    <param-name>contextConfigLocation</param-name>
    <param-value>classpath*:/helloworld/application-context.xml</param-value>
  </context-param>

Restarted tomcat.
When I try to open the activiti-explorer application, i get the following error(this is the same one i posted a few weeks ago, but with my own application)
 Jan 15, 2013 9:29:42 AM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet Vaadin Application Servlet threw exception

org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean
of type [org.activiti.explorer.ExplorerApp] is defined: expected single bean but
found 0:
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.
getBean(DefaultListableBeanFactory.java:280)
        at org.springframework.context.support.AbstractApplicationContext.getBea
n(AbstractApplicationContext.java:1106)
        at org.activiti.explorer.servlet.ExplorerApplicationServlet.getNewApplic
ation(ExplorerApplicationServlet.java:55)
        at com.vaadin.terminal.gwt.server.AbstractApplicationServlet.createAppli
cation(AbstractApplicationServlet.java:973)
        at com.vaadin.terminal.gwt.server.AbstractApplicationServlet.findApplica
tionInstance(AbstractApplicationServlet.java:801)
        at com.vaadin.terminal.gwt.server.AbstractApplicationServlet.service(Abs
tractApplicationServlet.java:456)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j


I am stuck at this stage. I would like to know if some one has deployed the camel application to Tomcat 6.0.36 and got it working.
Thanks!

Outcomes