Re: help, cactus & maven

2005-08-30 Thread David Delbecq
Ok, as no response from mailing list, considering this a bug :)
Summited to http://issues.apache.org/jira/browse/CACTUS-228
Le Jeudi 25 Août 2005 09:28, David Delbecq a écrit :
> The problem is still there and is not realted to the .war
> It is related to the way maven plugin load tomcat i think.
> The error 
> 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)
> 
> seems to mean there is no way to start jndi provider, something may be wrong 
> with the tomcat classpath.
> However, if I try to run tomcat stand-alone and i deploy the cactus war, it 
> works very well and the cactus
> plugin is, strangely, able to use it to run it's unit test if i let it 
> running 
> (but this is not acceptable as very far from an automated solution :) )
> 
> I attached a test-case showing the bug. If someone has any idea, welcomed.
> Otherwise, i think i'll bug report :)
> version of tools:
> 
> maven v. 1.0.1
> tomcat 5.5.7 + tomcat-admin + tomcat-compat
> java version "1.4.2_05" (build 1.4.2_05-b04, mixed mode)
> cactus-maven version 1.7.1
> cactus 1.7.1 in dependencies
> 
> full content of tomcat5x.out:
> 
> Created MBeanServer with ID: 1d05c81:105ec82b910:-8000:CAL-12:1
> 25-août-2005 9:20:55 org.apache.coyote.http11.Http11Protocol init
> INFO: Initialisation de Coyote HTTP/1.1 sur http-9090
> 25-août-2005 9:20:55 org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 1117 ms
> 25-août-2005 9:20:55 org.apache.catalina.core.StandardService start
> INFO: Démarrage du service Catalina
> 25-août-2005 9:20:55 org.apache.catalina.core.StandardEngine start
> INFO: Starting Servlet Engine: Apache Tomcat/5.5.7
> 25-août-2005 9:20:55 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)
> 25-août-2005 9:20:55 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)
> 25-août-2005 9:20:55 org.apache.catalina.startup.Catalina start
> INFO: Server startup in 52 ms
> 
> Le Jeudi 25 Août 2005 

Re: help, cactus & maven

2005-08-25 Thread David Delbecq
The problem is still there and is not realted to the .war
It is related to the way maven plugin load tomcat i think.
The error 
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)

seems to mean there is no way to start jndi provider, something may be wrong 
with the tomcat classpath.
However, if I try to run tomcat stand-alone and i deploy the cactus war, it 
works very well and the cactus
plugin is, strangely, able to use it to run it's unit test if i let it running 
(but this is not acceptable as very far from an automated solution :) )

I attached a test-case showing the bug. If someone has any idea, welcomed.
Otherwise, i think i'll bug report :)
version of tools:

maven v. 1.0.1
tomcat 5.5.7 + tomcat-admin + tomcat-compat
java version "1.4.2_05" (build 1.4.2_05-b04, mixed mode)
cactus-maven version 1.7.1
cactus 1.7.1 in dependencies

full content of tomcat5x.out:

Created MBeanServer with ID: 1d05c81:105ec82b910:-8000:CAL-12:1
25-août-2005 9:20:55 org.apache.coyote.http11.Http11Protocol init
INFO: Initialisation de Coyote HTTP/1.1 sur http-9090
25-août-2005 9:20:55 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1117 ms
25-août-2005 9:20:55 org.apache.catalina.core.StandardService start
INFO: Démarrage du service Catalina
25-août-2005 9:20:55 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.7
25-août-2005 9:20:55 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)
25-août-2005 9:20:55 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)
25-août-2005 9:20:55 org.apache.catalina.startup.Catalina start
INFO: Server startup in 52 ms

Le Jeudi 25 Août 2005 05:07, Felipe Leme a écrit :
> Nicolas Chalumeau wrote:
> > Ok, I think you have to create an empty webapp with an empty web.xml
> 
> In Cactus 1.7.1 you don't have to anymore:
> 
> http://issues.apache.org/jira/browse/CACTUS-90
> 
> 
> -- Felipe
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For 

Re: help, cactus & maven

2005-08-24 Thread Felipe Leme

Nicolas Chalumeau wrote:

Ok, I think you have to create an empty webapp with an empty web.xml


In Cactus 1.7.1 you don't have to anymore:

http://issues.apache.org/jira/browse/CACTUS-90


-- Felipe

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: help, cactus & maven

2005-08-24 Thread Nicolas Chalumeau
Ok, I think you have to create an empty webapp with an empty web.xml
in src/webapp.

Look at the simple war test source for what is need:
http://svn.apache.org/repos/asf/jakarta/cactus/trunk/integration/maven/src/plugin-test/testSimpleWar/

Nicolas

2005/8/24, David Delbecq <[EMAIL PROTECTED]>:
> Le Mercredi 24 Août 2005 15:52, Nicolas Chalumeau a écrit :
> > The log is Ok for me : i am french ;-)
> >
> 
> as name suggest :)
> 
> > Your database is probably declared in the web.xml and when you look in the 
> > log :
> >  [cactifywar] Warning: selected war files include a WEB-INF/web.xml
> > which will be ignored (please use webxml attribute to war task)
> >
> 
> There is no web.xml in my project, so no database. This is a fresh new 
> project which will
> be used to develop taglibs around a library. I have no idea about which
> web.xml this warning is talking about! And checking the war file created by 
> war:war target, there
> is no web.xml inside (only my few compiled classes)
> 
> $ find * -iname '*.xml'
> maven.xml
> project.xml
> src/rsc/test/Domain.xml
> src/rsc/test/dissco.xml
> src/rsc/test/testImport.xml
> 
> This is all i have.
> 
> > Are you able to deploy and run your war in tomcat manually?
> 
> There is no .war to deploy appart the cactus one to run my test class :)
> 
> 
> > Did the maven.war.webxml point to your web.xml ?
> >
> 
> maven.war.webxml has its default value ( 
> [projectdir]/src/webapp/WEB-INF/web.xml)
> 
> > Nicolas
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> --
> David Delbecq
> Royal Meteorological Institute of Belgium
> 
> -
> Is there life after /sbin/halt -p?
> 
> -
> 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]



Re: help, cactus & maven

2005-08-24 Thread David Delbecq
Le Mercredi 24 Août 2005 15:52, Nicolas Chalumeau a écrit :
> The log is Ok for me : i am french ;-)
> 

as name suggest :)

> Your database is probably declared in the web.xml and when you look in the 
> log :
>  [cactifywar] Warning: selected war files include a WEB-INF/web.xml
> which will be ignored (please use webxml attribute to war task)
> 

There is no web.xml in my project, so no database. This is a fresh new project 
which will 
be used to develop taglibs around a library. I have no idea about which 
web.xml this warning is talking about! And checking the war file created by 
war:war target, there
is no web.xml inside (only my few compiled classes)

$ find * -iname '*.xml'
maven.xml
project.xml
src/rsc/test/Domain.xml
src/rsc/test/dissco.xml
src/rsc/test/testImport.xml

This is all i have.

> Are you able to deploy and run your war in tomcat manually?

There is no .war to deploy appart the cactus one to run my test class :)


> Did the maven.war.webxml point to your web.xml ?
> 

maven.war.webxml has its default value ( 
[projectdir]/src/webapp/WEB-INF/web.xml)

> Nicolas
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-- 
David Delbecq
Royal Meteorological Institute of Belgium

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

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: help, cactus & maven

2005-08-24 Thread Nicolas Chalumeau
The log is Ok for me : i am french ;-)

Your database is probably declared in the web.xml and when you look in the log :
 [cactifywar] Warning: selected war files include a WEB-INF/web.xml
which will be ignored (please use webxml attribute to war task)

Are you able to deploy and run your war in tomcat manually?
Did the maven.war.webxml point to your web.xml ?

Nicolas

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: help, cactus & maven

2005-08-24 Thread David Delbecq
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 <[EMAIL PROTECTED]>:
> > 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 

Re: help, cactus & maven

2005-08-24 Thread Nicolas Chalumeau
Hi David

1/ Can you post the content of your project.properties ?
2/ Can you check in the target/test-cactus-reports directory ?

Nicolas

2005/8/24, David Delbecq <[EMAIL PROTECTED]>:
> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



help, cactus & maven

2005-08-24 Thread David Delbecq
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]