AnsweredAssumed Answered

Deploying in Tomcat

Question asked by walterjs on Dec 9, 2010
Latest reply on Dec 13, 2010 by walterjs
Hi there,

I've been running the process engine using spring and now I want to deploy this to the tomcat instance where the activiti-rest webapp is deployed. I renamed my "main" spring config file to activiti.cfg.xml and removed the original activit-cfg.jar from the activiti-rest/WEB-INF/lib dir and the activiti-explorer works perfectly.

The problem is that none of my spring beans are instantiated. Doing a remote debug, I see all the beans and I can even reference them (then they are created) during this session. But my jms listener, for instance, is not started:


    <bean class="org.springframework.jms.listener.DefaultMessageListenerContainer">
        <property name="destination" ref="topic"/>
        <property name="connectionFactory" ref="connectionFactory"/>
        <property name="messageListener" ref="connector"/>
    </bean>

My standalone server consists of the following line in the main method:
new ClassPathXmlApplicationContext("applicationContext.xml")

I've also deployed this in my own standalone webapp in the same container (everything starts up fine using an ApplicationContextListener), but I'm not sure how to get the rest webapp to use my spring configured engine. Modifying the rest webapp web.xml sounds wrong to me.

Any help would be appreciated.

Thanks
Walter

Outcomes