I'm confused too - it looks like you changed your Cargo settings to use
Jetty instead of Tomcat.

Matt

On Sat, Dec 13, 2008 at 4:03 PM, frarebo <[email protected]> wrote:

>
> Now, if I do as shown in the FAQ (only modify the container tag in the the
> pom.xml), the error doesn't appear anymore. But a unit test fails :
> ...
> 2008-12-13 22:38:32.708::INFO:  Extract
>
> jar:file:/home/matt/dev/tests/tests_appfuse/aeffacer/target/tomcat5x/container/cargocpc.war!/
> to /tmp/Jetty_0_0_0_0_25888_cargocpc.war__cargocpc__-7ar7di/webapp
> 2008-12-13 22:38:33.378::INFO:  Started SelectChannelConnector @
> 0.0.0.0:25888
> [INFO] [beddedLocalContainer] Jetty 6.x Embedded started on port [25888]
> [INFO] [surefire:test {execution: surefire-it}]
> [INFO] Surefire report directory:
> /home/matt/dev/tests/tests_appfuse/aeffacer/target/surefire-reports
>
> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> Running org.appfuse.web.UserWebTest
> Tests run: 5, Failures: 0, Errors: 5, Skipped: 0, Time elapsed: 0.333 sec
> <<< FAILURE!
>
> Results :
>
> Tests in error:
>  testWelcomePage(org.appfuse.web.UserWebTest)
>  testAddUser(org.appfuse.web.UserWebTest)
>  testListUsers(org.appfuse.web.UserWebTest)
>  testEditUser(org.appfuse.web.UserWebTest)
>  testDeleteUser(org.appfuse.web.UserWebTest)
>
> Tests run: 5, Failures: 0, Errors: 5, Skipped: 0
> ...
>
>
> And in the surefire report, I have (it's the same error for all the tests):
> Tests run: 5, Failures: 0, Errors: 5, Skipped: 0, Time elapsed: 0.333 sec
> <<< FAILURE!
> testWelcomePage(org.appfuse.web.UserWebTest)  Time elapsed: 0.252 sec  <<<
> ERROR!
> java.lang.RuntimeException: com.meterware.httpunit.HttpNotFoundException:
> Error on HTTP request: 404 Not Found [http://localhost:25888/]
> ...
>
> The unit-test :
> public UserWebTest(String name) {
> ...
>        getTestContext().setBaseUrl("http://localhost:25888";);
> ...
>    }
> and in the pom.xml :
> <properties>
>        <cargo.host>localhost</cargo.host>
>        <cargo.port>25888</cargo.port>
> ...
> </properties>
>
> I don't understand why mvn needs and tries to connect to
> http://localhost:25888, and why it fails to connect... And why is Jetty
> running? I thought mvn would use Tomcat since it uses an existing
> instance... :confused:
>
> frarebo
>
>
>
>
> mraible wrote:
> >
> > Cargo downloads Tomcat and installs it for you. The following FAQ
> > shows you how to use a pre-existing Tomcat.
> >
> > http://appfuse.org/display/APF/FAQ#FAQ-useexistingtomcat
> >
> > Matt
> >
> > On Wed, Dec 10, 2008 at 1:11 PM, frarebo <[email protected]> wrote:
> >>
> >> Hi!!
> >>
> >> Thank you for answering. I downloaded tomcat 6.0.14, but it doesn't
> >> change
> >> anything.
> >>
> >> I don't understand what links mvn install and my downloaded tomcat. How
> >> does
> >> mvn install know where to find tomcat ?
> >>
> >> frarebo
> >>
> >>
> >>
> >>
> >> mraible wrote:
> >>>
> >>> I would try changing the version of Tomcat to something older like
> >>> 6.0.14.
> >>>
> >>> Matt
> >>>
> >>> On Sat, Dec 6, 2008 at 3:07 AM, frarebo <[email protected]> wrote:
> >>>>
> >>>> Hi !!
> >>>>
> >>>> I'm trying to make appfuse light work with Spring and Wicket, as
> >>>> indicated
> >>>> here :
> >>>>
> http://www.nabble.com/How-I-got-jetty%3Arun-to-work.-to9999689s2369.html#a9999689
> >>>> , but it fails when I use the mvn install command. I get the following
> >>>> error, when cargo seems to deploy the newly created war :
> >>>> [INFO] Building war:
> >>>> /home/matt/dev/tests/tests_appfuse/aeffacer/target/aeffacer-1.8.2.war
> >>>> [INFO] [cargo:start {execution: start-container}]
> >>>> [INFO] [stalledLocalDeployer] Deploying
> >>>>
> [/home/matt/dev/tests/tests_appfuse/aeffacer/target/aeffacer-1.8.2.war]
> >>>> to
> >>>>
> [/home/matt/dev/tests/tests_appfuse/aeffacer/target/tomcat5x/container/webapps]...
> >>>> [INFO] [talledLocalContainer] Tomcat 5.x starting...
> >>>> [WARNING] [talledLocalContainer] java.lang.ClassNotFoundException:
> >>>> org.apache.catalina.startup.Catalina
> >>>> [WARNING] [talledLocalContainer]        at
> >>>> java.net.URLClassLoader$1.run(URLClassLoader.java:217)
> >>>> [WARNING] [talledLocalContainer]        at
> >>>> java.security.AccessController.doPrivileged(Native Method)
> >>>> [WARNING] [talledLocalContainer]        at
> >>>> java.net.URLClassLoader.findClass(URLClassLoader.java:205)
> >>>> [WARNING] [talledLocalContainer]        at
> >>>> java.lang.ClassLoader.loadClass(ClassLoader.java:323)
> >>>> [WARNING] [talledLocalContainer]        at
> >>>> java.lang.ClassLoader.loadClass(ClassLoader.java:268)
> >>>> [WARNING] [talledLocalContainer]        at
> >>>> org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:215)
> >>>> [WARNING] [talledLocalContainer]        at
> >>>> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:390)
> >>>> [INFO]
> >>>>
> ------------------------------------------------------------------------
> >>>> [ERROR] FATAL ERROR
> >>>> [INFO]
> >>>>
> ------------------------------------------------------------------------
> >>>> [INFO] Failed to start the Tomcat 5.x container.
> >>>> Deployable [http://localhost:25888/cargocpc/index.html] failed to
> >>>> finish
> >>>> deploying within the timeout period [120000]. The Deployable state is
> >>>> thus
> >>>> unknown.
> >>>> [INFO]
> >>>>
> ------------------------------------------------------------------------
> >>>> [INFO] Trace
> >>>> org.codehaus.cargo.container.ContainerException: Failed to start the
> >>>> Tomcat
> >>>> 5.x container.
> >>>>        at
> >>>>
> org.codehaus.cargo.container.spi.AbstractLocalContainer.start(AbstractLocalContainer.java:160)
> >>>> ...and so on...
> >>>>
> >>>> Tomcat works correctly when I use its startup.sh and shutdown.sh
> >>>> scripts
> >>>> (I
> >>>> also created a user with a manager role).
> >>>>
> >>>> In the project's pom.xml, I modified this lign (since I'm using this
> >>>> version) :
> >>>>
> >>>>        <tomcat.version>6.0.18</tomcat.version>
> >>>>
> >>>> The steps I followed :
> >>>> cd appfuse-light-wicket-hibernate-1.8.2/
> >>>> ant new
> >>>> cd ../aeffacer/
> >>>> mvn install
> >>>> and there comes the error...
> >>>>
> >>>> I can't find any solution to this. Can anybody help me, please ?
> >>>>
> >>>> Thank you
> >>>> frarebo
> >>>> --
> >>>> View this message in context:
> >>>>
> http://www.nabble.com/ClassNotFoundException-on-tomcat-startup-when-using-mvn-install-tp20868504s2369p20868504.html
> >>>> Sent from the AppFuse - User mailing list archive at Nabble.com.
> >>>>
> >>>>
> >>>> ---------------------------------------------------------------------
> >>>> To unsubscribe, e-mail: [email protected]
> >>>> For additional commands, e-mail: [email protected]
> >>>>
> >>>>
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: [email protected]
> >>> For additional commands, e-mail: [email protected]
> >>>
> >>>
> >>>
> >>
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/ClassNotFoundException-on-tomcat-startup-when-using-mvn-install-tp20868504s2369p20943220.html
> >> Sent from the AppFuse - User mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [email protected]
> >> For additional commands, e-mail: [email protected]
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected]
> > For additional commands, e-mail: [email protected]
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/ClassNotFoundException-on-tomcat-startup-when-using-mvn-install-tp20868504s2369p20995392.html
> Sent from the AppFuse - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to