You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by apinke <ap...@gmail.com> on 2006/06/07 18:49:51 UTC

Unable to create a SM WAR


Hi All ,

I am trying to create a ServiceMix WAR for deployment into tomcat ,
following the instructions at
http://servicemix.org/site/tomcat-integration.html

I downloaded the latest 3.0 SNAPSHOT release , but there is no
"\tooling\servicemix-web" folder .
There is a "service-web" in the src ,where maven gives :

[ERROR] BUILD FAILURE
[INFO]
-------------------------------------------------------------------------
---
[INFO] Invalid task 'war': you must specify a valid lifecycle phase, or a
goal i
n the format plugin:goal or
pluginGroupId:pluginArtifactId:pluginVersion:goal

I then installed the older 2.0.2 version : which has
"\tooling\servicemix-web"
but also gives the same error.

I am using Maven 2.0 .

Any pointers on How do I generate the war  ?

Thanks
Pat

--
View this message in context: http://www.nabble.com/Unable-to-create-a-SM-WAR-t1749276.html#a4755393
Sent from the ServiceMix - User forum at Nabble.com.


Re: Unable to create a SM WAR

Posted by apinke <ap...@gmail.com>.
Thanks Guillaume ,

I am not able to get the details from the logs...
I did try to deploy on another Unix machine and I had a little bit of luck.

First , I go some errors in the jsp ( mbeans.jsp(15,0) Invalid jsp:include
tag )
I had to add "flush=true" to the include tags in the 2 jsps.
That fixed that problem and I can now get to the JMX Console.

I then proceeded to try out the examples :
When I submitted the "GET into the httpBinding" example :
http://localhost:8080/servicemix-web/jbi/exampleUri?name=James

I get this error :

java.lang.IllegalStateException: No WebApplicationContext found: no
ContextLoaderListener registered?
	at
org.springframework.web.context.support.WebApplicationContextUtils.getRequiredWebApplicationContext(WebApplicationContextUtils.java:84)

There is nothing in the tomcat logs to indicate any more details...

Any ideas ?
Is there some log4j properties included so that I can get some more debug
information ?

Thanks
Pat
--
View this message in context: http://www.nabble.com/Unable-to-create-a-SM-WAR-t1749276.html#a4790398
Sent from the ServiceMix - User forum at Nabble.com.


Re: Unable to create a SM WAR

Posted by Guillaume Nodet <gn...@gmail.com>.
You should find some usefull informations in the tomcat logs.

Cheers,
Guillaume Nodet

On 6/9/06, apinke <ap...@gmail.com> wrote:
>
>
> Thanks..
> I was able to build the WAR.
> But I am now having problems deploying it..I download Tomcat 5 for windows
> and added the compatibility package.
> The "servicemix-web-3.0-SNAPSHOT" does not come up. The logs have the
> following information :
>
> INFO: Deploying web application archive servicemix-web-3.0-SNAPSHOT.war
> Jun 9, 2006 11:24:15 AM org.apache.catalina.core.StandardContext start
> SEVERE: Error listenerStart
> Jun 9, 2006 11:24:15 AM org.apache.catalina.core.StandardContext start
> SEVERE: Context [/servicemix-web-3.0-SNAPSHOT] startup failed due to
> previous errors
>
> Is there any way I can enable additional logging to find out whats the
> exact
> error ?
>
> Thanks
> Pat
> --
> View this message in context:
> http://www.nabble.com/Unable-to-create-a-SM-WAR-t1749276.html#a4787841
> Sent from the ServiceMix - User forum at Nabble.com.
>
>

Re: Unable to create a SM WAR

Posted by apinke <ap...@gmail.com>.
Thanks..
I was able to build the WAR.
But I am now having problems deploying it..I download Tomcat 5 for windows
and added the compatibility package.
The "servicemix-web-3.0-SNAPSHOT" does not come up. The logs have the
following information :

INFO: Deploying web application archive servicemix-web-3.0-SNAPSHOT.war
Jun 9, 2006 11:24:15 AM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Jun 9, 2006 11:24:15 AM org.apache.catalina.core.StandardContext start
SEVERE: Context [/servicemix-web-3.0-SNAPSHOT] startup failed due to
previous errors

Is there any way I can enable additional logging to find out whats the exact
error ?

Thanks
Pat
--
View this message in context: http://www.nabble.com/Unable-to-create-a-SM-WAR-t1749276.html#a4787841
Sent from the ServiceMix - User forum at Nabble.com.


Re: Unable to create a SM WAR

Posted by Guillaume Nodet <gn...@gmail.com>.
I have updated the page.
See http://servicemix.goopen.org/site/war-deployment.html
Tell me if you still have problems.

Cheers,
Guillaume Nodet

On 6/8/06, Guillaume Nodet <gn...@gmail.com> wrote:
>
> I need to update this page.
> the servicemix-web project is the one you found.
> It is also available in the distribution.
> With maven 2, you have to use the following command:
>    mvn package
>
> Cheers,
> Guillaume Nodet
>
>
> On 6/7/06, apinke <ap...@gmail.com> wrote:
> >
> >
> >
> > Hi All ,
> >
> > I am trying to create a ServiceMix WAR for deployment into tomcat ,
> > following the instructions at
> > http://servicemix.org/site/tomcat-integration.html
> >
> > I downloaded the latest 3.0 SNAPSHOT release , but there is no
> > "\tooling\servicemix-web" folder .
> > There is a "service-web" in the src ,where maven gives :
> >
> > [ERROR] BUILD FAILURE
> > [INFO]
> >
> > -------------------------------------------------------------------------
> > ---
> > [INFO] Invalid task 'war': you must specify a valid lifecycle phase, or
> > a
> > goal i
> > n the format plugin:goal or
> > pluginGroupId:pluginArtifactId:pluginVersion:goal
> >
> > I then installed the older 2.0.2 version : which has
> > "\tooling\servicemix-web"
> > but also gives the same error.
> >
> > I am using Maven 2.0 .
> >
> > Any pointers on How do I generate the war  ?
> >
> > Thanks
> > Pat
> >
> > --
> > View this message in context:
> > http://www.nabble.com/Unable-to-create-a-SM-WAR-t1749276.html#a4755393
> > Sent from the ServiceMix - User forum at Nabble.com.
> >
> >
>

Re: Unable to create a SM WAR

Posted by Guillaume Nodet <gn...@gmail.com>.
I need to update this page.
the servicemix-web project is the one you found.
It is also available in the distribution.
With maven 2, you have to use the following command:
   mvn package

Cheers,
Guillaume Nodet

On 6/7/06, apinke <ap...@gmail.com> wrote:
>
>
>
> Hi All ,
>
> I am trying to create a ServiceMix WAR for deployment into tomcat ,
> following the instructions at
> http://servicemix.org/site/tomcat-integration.html
>
> I downloaded the latest 3.0 SNAPSHOT release , but there is no
> "\tooling\servicemix-web" folder .
> There is a "service-web" in the src ,where maven gives :
>
> [ERROR] BUILD FAILURE
> [INFO]
> -------------------------------------------------------------------------
> ---
> [INFO] Invalid task 'war': you must specify a valid lifecycle phase, or a
> goal i
> n the format plugin:goal or
> pluginGroupId:pluginArtifactId:pluginVersion:goal
>
> I then installed the older 2.0.2 version : which has
> "\tooling\servicemix-web"
> but also gives the same error.
>
> I am using Maven 2.0 .
>
> Any pointers on How do I generate the war  ?
>
> Thanks
> Pat
>
> --
> View this message in context:
> http://www.nabble.com/Unable-to-create-a-SM-WAR-t1749276.html#a4755393
> Sent from the ServiceMix - User forum at Nabble.com.
>
>