jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Delbecq <de...@oma.be>
Subject Re: help, cactus & maven
Date Wed, 24 Aug 2005 13:20:46 GMT
Le Mercredi 24 Août 2005 15:07, Nicolas Chalumeau a écrit :
> Hi David
> 
> 1/ Can you post the content of your project.properties ?

sure
project.properties:
corba.nameservice.parameter=-ORBInitialPort 10123
cactus.servlet.version=2.3
build.properties:
cactus.home.tomcat5x = /home/delbd/tomcat/jakarta-tomcat-5.5.7-cactus
cactus.port = 9090


> 2/ Can you check in the target/test-cactus-reports directory ?
mm so *there* is the tomcat output directory i was searching for....
will be useful now i have it! :) I still have no clues what happens anyway :/
But it seems tomcat starts speaking french now... (error message in english
is GRAVE:  Exception while searching user database for key UserDatabase and 
LifecycleException:  No user database component found for key UserDatabase)


test-cactus-reports/tomcat5x.out contains:

Created MBeanServer with ID: 1d05c81:105e8a22b0c:-8000:CAL-12:1
24-août-2005 15:16:47 org.apache.coyote.http11.Http11Protocol init
INFO: Initialisation de Coyote HTTP/1.1 sur http-9090
24-août-2005 15:16:47 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1129 ms
24-août-2005 15:16:47 org.apache.catalina.core.StandardService start
INFO: Démarrage du service Catalina
24-août-2005 15:16:47 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.7
24-août-2005 15:16:47 org.apache.catalina.realm.UserDatabaseRealm start
GRAVE: Exception lors de la recherche dans la base de données utilisateurs avec la clef UserDatabase
javax.naming.NamingException: Cannot create resource instance
        at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:132)
        at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:301)
        at org.apache.naming.NamingContext.lookup(NamingContext.java:792)
        at org.apache.naming.NamingContext.lookup(NamingContext.java:152)
        at org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.java:222)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1003)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:440)
        at org.apache.catalina.core.StandardService.start(StandardService.java:450)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:683)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
        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:324)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
24-août-2005 15:16:47 org.apache.catalina.startup.Catalina start
GRAVE: Catalina.start:
LifecycleException:  Aucun composant base de données utilisateurs trouvé pour la clef UserDatabase
        at org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.java:228)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1003)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:440)
        at org.apache.catalina.core.StandardService.start(StandardService.java:450)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:683)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
        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:324)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
24-août-2005 15:16:47 org.apache.catalina.startup.Catalina start
INFO: Server startup in 52 ms

Any idea?

> 
> Nicolas
> 
> 2005/8/24, David Delbecq <delbd@oma.be>:
> > Hello, i just wanted to try cactus and i get a disturbing result under maven.
> > The test freeze with no apparent reason (the tomcat is listening on port 9090
> > used by the test but does not seem to give any response to http requests).
> > If someone could give me any clue!
> > 
> > I followed docs and created a src/test-cactus directory containing cactus unit tests.
> > 
> > i created a simple jsp unit test:
> > 
> > ------
> > package bla;
> > import org.apache.cactus.JspTestCase;
> > /*
> >  * Created on 24-août-2005
> >  *
> >  * TODO To change the template for this generated file go to
> >  * Window - Preferences - Java - Code Style - Code Templates
> >  */
> > 
> > /**
> >  * @author delbd
> >  *
> >  * TODO To change the template for this generated type comment go to
> >  * Window - Preferences - Java - Code Style - Code Templates
> >  */
> > public class TestSimple extends JspTestCase {
> >         public void testMachin(){
> >                 System.out.println("machin was here");
> >         }
> > 
> > }
> > ------
> > 
> > then i run maven like this:
> > 
> > $ maven cactus -Dmaven.test.skip=true -Dcactus.test.skip=false
> >  __  __
> > |  \/  |__ _Apache__ ___
> > | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
> > |_|  |_\__,_|\_/\___|_||_|  v. 1.0.1
> > 
> > build:start:
> > 
> > cactus:check-plugin-dependencies:
> > 
> > cactus:init:
> > 
> > cactus:test:
> > cactus:check-plugin-dependencies:
> > 
> > cactus:init:
> > Overriding previous definition of reference to cactus.classpath
> > Overriding previous definition of reference to cactus.compile.src.set
> > Overriding previous definition of reference to cactus.scanner.classpath
> > 
> > cactus:init-report:
> > 
> > java:prepare-filesystem:
> > 
> > java:compile:
> >     [echo] Compiling to /home/delbd/dev/dissco/workspace/Dissco_shark/target/classes
> > 
> > cactus:compile:
> > 
> > cactus:cactifywar:
> > war:init:
> > 
> > war:war-resources:
> > 
> > java:prepare-filesystem:
> > 
> > java:compile:
> >     [echo] Compiling to /home/delbd/dev/dissco/workspace/Dissco_shark/target/classes
> > 
> > java:jar-resources:
> > 
> > test:prepare-filesystem:
> > 
> > test:test-resources:
> > 
> > test:compile:
> > 
> > test:test:
> > 
> > war:webapp:
> >     [echo] Assembling webapp dissco_shark
> >     [mkdir] Created dir: /home/delbd/dev/dissco/workspace/Dissco_shark/target/dissco_shark/WEB-INF/lib
> >     [mkdir] Created dir: /home/delbd/dev/dissco/workspace/Dissco_shark/target/dissco_shark/WEB-INF/tld
> >     [mkdir] Created dir: /home/delbd/dev/dissco/workspace/Dissco_shark/target/dissco_shark/WEB-INF/classes
> >     [copy] Copying 27 files to /home/delbd/dev/dissco/workspace/Dissco_shark/target/dissco_shark/WEB-INF/classes
> > 
> > war:war:
> >     [echo] Building WAR dissco_shark
> >     [jar] Building jar: /home/delbd/dev/dissco/workspace/Dissco_shark/target/dissco_shark.war
> > 
> >     [cactifywar] Analyzing war: /home/delbd/dev/dissco/workspace/Dissco_shark/target/dissco_shark.war
> >     [cactifywar] Building war: /home/delbd/dev/dissco/workspace/Dissco_shark/target/dissco_shark-cactus.war
> >     [cactifywar] Warning: selected war files include a WEB-INF/web.xml which will
be ignored (please use webxml attribute to war task)
> > 
> > cactus:test-war:
> >     [cactus] -----------------------------------------------------------------
> >     [cactus] Running tests against Tomcat 5.5.7 @ http://localhost:9090
> >     [cactus] -----------------------------------------------------------------
> > 
> > and it stays there for hours (not even a timeout!)
> > 
> > --
> > David Delbecq
> > Royal Meteorological Institute of Belgium
> > 
> > -
> > Is there life after /sbin/halt -p?
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: cactus-user-help@jakarta.apache.org
> > 
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-user-help@jakarta.apache.org
> 
> 

-- 
David Delbecq
Royal Meteorological Institute of Belgium

-
Is there life after /sbin/halt -p?

Mime
View raw message