You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by go-gators <sw...@samsung.com> on 2006/04/29 08:23:52 UTC

Deploying/Building servicemix 3.0 SNAPSHOT for tomcat

I have tried servicemix 3.0SNAPSHOT and deployed to tomcat.
I couldn't find tooling/servicemix-web directory in 3.0 distribution.
How do I get war file for tomcat in servicemix 3.0 Snapshot version ?

Thanks in advance.

--
View this message in context: http://www.nabble.com/Deploying-Building-servicemix-3.0-SNAPSHOT-for-tomcat-t1528309.html#a4151628
Sent from the ServiceMix - User forum at Nabble.com.


Re: Deploying/Building servicemix 3.0 SNAPSHOT for tomcat

Posted by Guillaume Nodet <gn...@gmail.com>.
Yes, it seems so.
The servicemix-3.0-SNAPSHOT.jar is rather old on the repository.
I will remove it and change the servicemix-web so that it uses
servicemix-core jar.

Thanks,
Guillaume Nodet

On 5/4/06, markpittsnh <ma...@yahoo.com> wrote:
>
> I hope the following information is useful.
>
> I replaced the WEB-INF/lib/servicemix-3.0-SNAPSHOT.jar (which is bundled
> with the .war) with the jar, incubator-servicemix-3.0-SNAPSHOT.jar, that was
> built from source and tomcat starts up fine.
>
> Could it be an issue of the version of the SM snapshot that maven downloads
> during the build?
>
> Thanks and regards,
> Mark
>
>
> --
> View this message in context: http://www.nabble.com/Deploying-Building-servicemix-3.0-SNAPSHOT-for-tomcat-t1528309.html#a4231134
> Sent from the ServiceMix - User forum at Nabble.com.
>
>

Re: Deploying/Building servicemix 3.0 SNAPSHOT for tomcat

Posted by markpittsnh <ma...@yahoo.com>.
I hope the following information is useful.

I replaced the WEB-INF/lib/servicemix-3.0-SNAPSHOT.jar (which is bundled
with the .war) with the jar, incubator-servicemix-3.0-SNAPSHOT.jar, that was
built from source and tomcat starts up fine.

Could it be an issue of the version of the SM snapshot that maven downloads
during the build?

Thanks and regards,
Mark


--
View this message in context: http://www.nabble.com/Deploying-Building-servicemix-3.0-SNAPSHOT-for-tomcat-t1528309.html#a4231134
Sent from the ServiceMix - User forum at Nabble.com.


Re: Deploying/Building servicemix 3.0 SNAPSHOT for tomcat

Posted by markpittsnh <ma...@yahoo.com>.
I see the following activemq jars in web-inf/lib

activemq-core-4.0-RC2.jar
activemq-ra-4.0-RC2.jar
activemq-web-4.0-RC2.jar

Full stack follows....

Thanks and regards,
Mark

INFO: ActiveMQ JMS Message Broker (localhost) stopped:
org.apache.activemq.broker.BrokerService$2@e8f8c5
May 4, 2006 9:45:59 AM org.springframework.web.context.ContextLoader
initWebApplicationContext
SEVERE: Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'jbi' defined in ServletContext resource
[/WEB-INF/applicationContext.xml]: Initialization of bean failed; nested
 exception is java.lang.NoClassDefFoundError: org/activeio/FactoryFinder
java.lang.NoClassDefFoundError: org/activeio/FactoryFinder
        at
org.apache.servicemix.jbi.nmr.flow.FlowProvider.<clinit>(FlowProvider.java:35)
        at org.apache.servicemix.jbi.nmr.Broker.init(Broker.java:132)
        at
org.apache.servicemix.jbi.container.JBIContainer.init(JBIContainer.java:494)
        at
org.apache.servicemix.jbi.container.SpringJBIContainer.afterPropertiesSet(SpringJBIContainer.java:54)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1059)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:363)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
        at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:275)
        at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:320)
        at
org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:134)
        at
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)
        at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)
        at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
        at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3727)
        at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4162)
        at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
        at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
        at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
        at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:804)
        at
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:693)
        at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
        at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118)
        at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
        at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)
        at
org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
        at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
        at
org.apache.catalina.core.StandardService.start(StandardService.java:450)
        at
org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
May 4, 2006 9:45:59 AM org.apache.catalina.core.StandardContext start

--
View this message in context: http://www.nabble.com/Deploying-Building-servicemix-3.0-SNAPSHOT-for-tomcat-t1528309.html#a4230988
Sent from the ServiceMix - User forum at Nabble.com.


Re: Deploying/Building servicemix 3.0 SNAPSHOT for tomcat

Posted by Guillaume Nodet <gn...@gmail.com>.
Is there an activemq 3.x jar inside tomcat classpath ?
Or an old activemq 4 jar is used (pre RC2) ?
Also, could you post the full stack trace as it will show who needs this class ?

Cheers,
Guillaume Nodet

On 5/4/06, markpittsnh <ma...@yahoo.com> wrote:
>
> In lieu of creating a new tomcat post, I am piggybacking on this tomcat post.
>
> I am running into the following error when deploying SM as a tomcat webapp.
>
> May 4, 2006 9:45:59 AM org.springframework.web.context.ContextLoader
> initWebApplicationContext
> SEVERE: Context initialization failed
> org.springframework.beans.factory.BeanCreationException: Error creating bean
> with name 'jbi' defined in ServletContext resource
> [/WEB-INF/applicationContext.xml]: Initialization of bean failed; nested
>  exception is java.lang.NoClassDefFoundError: org/activeio/FactoryFinder
> java.lang.NoClassDefFoundError: org/activeio/FactoryFinder
>
> Steps to reproduce:
> 1.downloaded SM from svn trunk as of yesterday 04-MAY-06.
> 2.run maven (adding option to bypass tests)
> 3.copied war from
> C:\java\sm1\trunk\servicemix-assembly\target\incubator-servicemix-3.0-SNAPSHOT\bin\incubator-servicemix-3.0-SNAPSHOT\examples\servicemix-web
> to C:\java\apache-tomcat-5.5.15\webapps
> 4.from CATALINA_HOME/bin run startup.bat
>
> I poked around inside of  WEB-INF/lib of the deplyed application and noticed
> activeio-core-3.0-beta1.jar, thinking that the aforementioned missing
> class,org/activeio/FactoryFinder, would be found. Instead I see the path
> org.apache.activeio.util. Is this the missing class. Or should it be
> resolved to another jar, which I am not including?
>
> Thanks and regards,
> Mark
> --
> View this message in context: http://www.nabble.com/Deploying-Building-servicemix-3.0-SNAPSHOT-for-tomcat-t1528309.html#a4230050
> Sent from the ServiceMix - User forum at Nabble.com.
>
>

Re: Deploying/Building servicemix 3.0 SNAPSHOT for tomcat

Posted by markpittsnh <ma...@yahoo.com>.
In lieu of creating a new tomcat post, I am piggybacking on this tomcat post.

I am running into the following error when deploying SM as a tomcat webapp.

May 4, 2006 9:45:59 AM org.springframework.web.context.ContextLoader
initWebApplicationContext
SEVERE: Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'jbi' defined in ServletContext resource
[/WEB-INF/applicationContext.xml]: Initialization of bean failed; nested
 exception is java.lang.NoClassDefFoundError: org/activeio/FactoryFinder
java.lang.NoClassDefFoundError: org/activeio/FactoryFinder

Steps to reproduce:
1.downloaded SM from svn trunk as of yesterday 04-MAY-06.
2.run maven (adding option to bypass tests)
3.copied war from
C:\java\sm1\trunk\servicemix-assembly\target\incubator-servicemix-3.0-SNAPSHOT\bin\incubator-servicemix-3.0-SNAPSHOT\examples\servicemix-web
to C:\java\apache-tomcat-5.5.15\webapps
4.from CATALINA_HOME/bin run startup.bat

I poked around inside of  WEB-INF/lib of the deplyed application and noticed
activeio-core-3.0-beta1.jar, thinking that the aforementioned missing
class,org/activeio/FactoryFinder, would be found. Instead I see the path
org.apache.activeio.util. Is this the missing class. Or should it be
resolved to another jar, which I am not including?

Thanks and regards,
Mark
--
View this message in context: http://www.nabble.com/Deploying-Building-servicemix-3.0-SNAPSHOT-for-tomcat-t1528309.html#a4230050
Sent from the ServiceMix - User forum at Nabble.com.


Re: Deploying/Building servicemix 3.0 SNAPSHOT for tomcat

Posted by go-gators <sw...@samsung.com>.
Thanks a lot !!!
--
View this message in context: http://www.nabble.com/Deploying-Building-servicemix-3.0-SNAPSHOT-for-tomcat-t1528309.html#a4154036
Sent from the ServiceMix - User forum at Nabble.com.


Re: Deploying/Building servicemix 3.0 SNAPSHOT for tomcat

Posted by Guillaume Nodet <gn...@gmail.com>.
Look the examples directory of the binary distribution ...

Cheers,
Guillaume Nodet

On 4/29/06, go-gators <sw...@samsung.com> wrote:
>
> I have downloaded source version.
> But 3.3 version dosen' have tooling/servicemix-web directory in it.
>
> The previous version had the directory and I had successfully compiled war
> file.
>
>
>
> --
> View this message in context: http://www.nabble.com/Deploying-Building-servicemix-3.0-SNAPSHOT-for-tomcat-t1528309.html#a4152512
> Sent from the ServiceMix - User forum at Nabble.com.
>
>

Re: Deploying/Building servicemix 3.0 SNAPSHOT for tomcat

Posted by go-gators <sw...@samsung.com>.
I have downloaded source version. 
But 3.3 version dosen' have tooling/servicemix-web directory in it.

The previous version had the directory and I had successfully compiled war
file.



--
View this message in context: http://www.nabble.com/Deploying-Building-servicemix-3.0-SNAPSHOT-for-tomcat-t1528309.html#a4152512
Sent from the ServiceMix - User forum at Nabble.com.


Re: Deploying/Building servicemix 3.0 SNAPSHOT for tomcat

Posted by Juergen Mayrbaeurl <ju...@hvb.sozvers.at>.
You have to download the source of ServiceMix and build the war with maven
(see http://www.servicemix.org/Tomcat+Integration)

Greetings
Juergen
--
View this message in context: http://www.nabble.com/Deploying-Building-servicemix-3.0-SNAPSHOT-for-tomcat-t1528309.html#a4151793
Sent from the ServiceMix - User forum at Nabble.com.