You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-user@jakarta.apache.org by GANDIN Mathieu <Ma...@cegetel.fr> on 2003/08/05 15:15:45 UTC

RE : RE : Maven cactus plugin regression (?)

Hi Vincent

Well, I get the same error.
I re-install Maven b10
I have made a checkout of maven/src/plugins-build/cactus
I build and it works

But when I tried to run my cactus test I get the following error:
cactus:test:
    [cactus]
-----------------------------------------------------------------
    [cactus] Running tests against WebLogic 7.x
    [cactus]
-----------------------------------------------------------------
    [cactus] Building jar:
C:\DOCUME~1\gandinm\LOCALS~1\Temp\cactus\weblogic7x\te
stdomain\applications\applicationtest-cactus.war
java.lang.NullPointerException
        at
org.apache.tools.ant.types.Environment$Variable.setFile(Environment.j
ava:97)
        at
org.apache.cactus.integration.ant.container.AbstractJavaContainer.cre
ateSysProperty(AbstractJavaContainer.java:155)
        at
org.apache.cactus.integration.ant.container.weblogic.WebLogic7xContai
ner.startUp(WebLogic7xContainer.java:206)
        at
org.apache.cactus.integration.ant.container.ContainerRunner$1.run(Con
tainerRunner.java:185)
        at java.lang.Thread.run(Thread.java:484)

BUILD FAILED
File...... file:/C:/Documents and
Settings/gandinm/.maven/plugins/maven-cactus-pl
ugin-3.1-SNAPSHOT/
Element... cactus
Line...... 227
Column.... 53
Failed to start the container after more than [180000] ms.
Total time: 3 minutes 24 seconds

Gandin Mathieu
OCTO Technology


-----Message d'origine-----
De : Vincent Massol [mailto:vmassol@pivolis.com] 
Envoyé : mardi 5 août 2003 14:54
À : 'Cactus Users List'
Objet : RE: RE : Maven cactus plugin regression (?)

Strange error. Ok, you've won, I'm installing WL 7.x now...

-Vincent

> -----Original Message-----
> From: BRUNOT Sébastien [mailto:Sebastien.BRUNOT@cegetel.fr]
> Sent: 05 August 2003 14:00
> To: 'Cactus Users List'
> Subject: RE : Maven cactus plugin regression (?)
> 
> Hi,
> 
> I've been testing the 3.1-SNAPSHOT from HEAD with maven b10, and here
is
> the
> resulting
> Error i get :
> 
> cactus:init:
>     [mkdir] Created dir:
> C:\Work\CVS\octotest\modules\moduleStruts\target\test-c
> actus-reports
>     [mkdir] Created dir:
> C:\Work\CVS\octotest\modules\moduleStruts\target\test-c
> actus-reports\weblogic7x
> 
> cactus:compile:
>     [mkdir] Created dir:
> C:\Work\CVS\octotest\modules\moduleStruts\target\test-c
> actus-classes
>     [javac] Compiling 1 source file to
> C:\Work\CVS\octotest\modules\moduleStruts
> \target\test-cactus-classes
> 
> cactus:cactifywar:
>     [cactifywar] Analyzing war:
> C:\Work\CVS\octotest\modules\moduleStruts\target
> \moduleStruts.war
>     [cactifywar] Building war:
> C:\Work\CVS\octotest\modules\moduleStruts\target\
> moduleStruts-cactus.war
> 
> cactus:test:
>     [cactus]
> -----------------------------------------------------------------
>     [cactus] Running tests against WebLogic 7.x
>     [cactus]
> -----------------------------------------------------------------
>     [cactus] Building jar:
> C:\DOCUME~1\brunots\LOCALS~1\Temp\cactus\weblogic7x\t
> estdomain\applications\moduleStruts-cactus.war
> java.lang.NullPointerException
>         at
> org.apache.tools.ant.types.Environment$Variable.setFile(Environment.j
> ava:97)
>         at
> org.apache.cactus.integration.ant.container.AbstractJavaContainer.cre
> ateSysProperty(AbstractJavaContainer.java:155)
>         at
> org.apache.cactus.integration.ant.container.weblogic.WebLogic7xContai
> ner.startUp(WebLogic7xContainer.java:206)
>         at
> org.apache.cactus.integration.ant.container.ContainerRunner$1.run(Con
> tainerRunner.java:185)
>         at java.lang.Thread.run(Thread.java:479)
> 
> BUILD FAILED
> File...... file:/C:/Documents and
> Settings/brunots/.maven/plugins/maven-cactus-p
> lugin-3.1-SNAPSHOT/
> Element... cactus
> Line...... 227
> Column.... 53
> Failed to start the container after more than [180000] ms.
> Total time: 4 minutes 48 seconds
> 
> -----Message d'origine-----
> De : Vincent Massol [mailto:vmassol@pivolis.com]
> Envoyé : mardi 5 août 2003 12:35
> À : 'Cactus Users List'
> Cc : Sebastien.BRUNOT@cegetel.fr
> Objet : RE: Maven cactus plugin regression (?)
> 
> 
> Hi Sebastien,
> 
> You're right, support for WL7.x has been inadvertently dropped in
version
> 3.0 when we moved to the new Cactus/Ant integration. I have added it
back
> in
> version 3.1-SNAPSHOT in CVS HEAD. However, I've not been able to test
it
> as
> I don't have WL7 on my machine.
> 
> Do you think you could give it a try?
> 
> Thanks
> -Vincent
> 
> > -----Original Message-----
> > From: BRUNOT Sébastien [mailto:Sebastien.BRUNOT@cegetel.fr]
> > Sent: 01 August 2003 11:23
> > To: 'Cactus Users List'; 'users@maven.apache.org'
> > Subject: Maven cactus plugin regression (?)
> >
> > Hi,
> >
> > Seems to me that there is a regression in cactus plugin 3.0 : it was
> > possible with cactus plugin 2.0 to test the webapp in a Weblogic 7
> > container, it doesn't seems to work with the new plugin...
> >
> > Anybody else got the same problem ?
> >
> > Sebastien BRUNOT
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 
> ---------------------------------------------------------------------
> 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



---------------------------------------------------------------------
To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: cactus-user-help@jakarta.apache.org

RE: viewing cactus logs

Posted by Vincent Massol <vm...@pivolis.com>.
Hi Karthik,

If you want to enable Cactus logging, you need to read
http://jakarta.apache.org/cactus/integration/howto_config.html#logging

Cactus uses commons-logging so configuring Cactus logging is similar to
configure commons-logging. Commons-logging documentation is available at
http://jakarta.apache.org/commons/logging/api/org/apache/commons/logging
/package-summary.html#package_description

Are you using the Maven plugin for Cactus or the Eclipse plugin? (I'm
asking because logging configuration is different then).

Hope it helps,
-Vincent

> -----Original Message-----
> From: karthik Guru [mailto:karthik_guru2000@yahoo.com]
> Sent: 05 August 2003 18:02
> To: Cactus Users List
> Subject: viewing cactus logs
> 
> I notice this in the source files,
> 
> eg:
> 
>  private static final Log LOGGER =
>         LogFactory.getLog(FormAuthentication.class);
> 
> 
> Hope placing
> 
> log4j.category.org.apache.cactus=DEBUG
> 
> in my logger.properties w'd help me see cactus logs as
> well.
> 
> I have actually forgotten how the underlying logger
> implementation works. I remeber havign specified
> strings ( package names instead of specifying the
> java.lang.class instance) to the getLogger method. But
> am not quite sure here. Then just specifying the
> parent folder used to be enuf to enable logging @ the
> sub packages level.
> 
> Either way, w'd specifying the parent
> org.apache.cactus
> help me view cactus debug statements?
> 
> thanks,
> karthik
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> http://sitebuilder.yahoo.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-user-help@jakarta.apache.org



viewing cactus logs

Posted by karthik Guru <ka...@yahoo.com>.
I notice this in the source files,

eg:

 private static final Log LOGGER = 
        LogFactory.getLog(FormAuthentication.class);


Hope placing

log4j.category.org.apache.cactus=DEBUG

in my logger.properties w'd help me see cactus logs as
well. 

I have actually forgotten how the underlying logger
implementation works. I remeber havign specified
strings ( package names instead of specifying the
java.lang.class instance) to the getLogger method. But
am not quite sure here. Then just specifying the
parent folder used to be enuf to enable logging @ the
sub packages level.

Either way, w'd specifying the parent
org.apache.cactus
help me view cactus debug statements?

thanks,
karthik

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

RE: RE : RE : Maven cactus plugin regression (?)

Posted by Vincent Massol <vm...@pivolis.com>.
Mathieu,

I have reproduced this and I have just committed a fix in Maven CVS HEAD
for this error. However, WebLogic 7x still doesn't start correctly for
me and I'm still debugging this.

If you want to see the command line that is used to start WL 7.x, run
maven with the -X parameter:

maven cactus -X

Thanks
-Vincent

> -----Original Message-----
> From: GANDIN Mathieu [mailto:Mathieu.GANDIN@cegetel.fr]
> Sent: 05 August 2003 15:16
> To: 'Cactus Users List'
> Subject: RE : RE : Maven cactus plugin regression (?)
> 
> Hi Vincent
> 
> Well, I get the same error.
> I re-install Maven b10
> I have made a checkout of maven/src/plugins-build/cactus
> I build and it works
> 
> But when I tried to run my cactus test I get the following error:
> cactus:test:
>     [cactus]
> -----------------------------------------------------------------
>     [cactus] Running tests against WebLogic 7.x
>     [cactus]
> -----------------------------------------------------------------
>     [cactus] Building jar:
> C:\DOCUME~1\gandinm\LOCALS~1\Temp\cactus\weblogic7x\te
> stdomain\applications\applicationtest-cactus.war
> java.lang.NullPointerException
>         at
> org.apache.tools.ant.types.Environment$Variable.setFile(Environment.j
> ava:97)
>         at
> org.apache.cactus.integration.ant.container.AbstractJavaContainer.cre
> ateSysProperty(AbstractJavaContainer.java:155)
>         at
> org.apache.cactus.integration.ant.container.weblogic.WebLogic7xContai
> ner.startUp(WebLogic7xContainer.java:206)
>         at
> org.apache.cactus.integration.ant.container.ContainerRunner$1.run(Con
> tainerRunner.java:185)
>         at java.lang.Thread.run(Thread.java:484)
> 
> BUILD FAILED
> File...... file:/C:/Documents and
> Settings/gandinm/.maven/plugins/maven-cactus-pl
> ugin-3.1-SNAPSHOT/
> Element... cactus
> Line...... 227
> Column.... 53
> Failed to start the container after more than [180000] ms.
> Total time: 3 minutes 24 seconds
> 
> Gandin Mathieu
> OCTO Technology
> 
> 
> -----Message d'origine-----
> De : Vincent Massol [mailto:vmassol@pivolis.com]
> Envoyé : mardi 5 août 2003 14:54
> À : 'Cactus Users List'
> Objet : RE: RE : Maven cactus plugin regression (?)
> 
> Strange error. Ok, you've won, I'm installing WL 7.x now...
> 
> -Vincent
> 
> > -----Original Message-----
> > From: BRUNOT Sébastien [mailto:Sebastien.BRUNOT@cegetel.fr]
> > Sent: 05 August 2003 14:00
> > To: 'Cactus Users List'
> > Subject: RE : Maven cactus plugin regression (?)
> >
> > Hi,
> >
> > I've been testing the 3.1-SNAPSHOT from HEAD with maven b10, and
here
> is
> > the
> > resulting
> > Error i get :
> >
> > cactus:init:
> >     [mkdir] Created dir:
> > C:\Work\CVS\octotest\modules\moduleStruts\target\test-c
> > actus-reports
> >     [mkdir] Created dir:
> > C:\Work\CVS\octotest\modules\moduleStruts\target\test-c
> > actus-reports\weblogic7x
> >
> > cactus:compile:
> >     [mkdir] Created dir:
> > C:\Work\CVS\octotest\modules\moduleStruts\target\test-c
> > actus-classes
> >     [javac] Compiling 1 source file to
> > C:\Work\CVS\octotest\modules\moduleStruts
> > \target\test-cactus-classes
> >
> > cactus:cactifywar:
> >     [cactifywar] Analyzing war:
> > C:\Work\CVS\octotest\modules\moduleStruts\target
> > \moduleStruts.war
> >     [cactifywar] Building war:
> > C:\Work\CVS\octotest\modules\moduleStruts\target\
> > moduleStruts-cactus.war
> >
> > cactus:test:
> >     [cactus]
> > -----------------------------------------------------------------
> >     [cactus] Running tests against WebLogic 7.x
> >     [cactus]
> > -----------------------------------------------------------------
> >     [cactus] Building jar:
> > C:\DOCUME~1\brunots\LOCALS~1\Temp\cactus\weblogic7x\t
> > estdomain\applications\moduleStruts-cactus.war
> > java.lang.NullPointerException
> >         at
> >
org.apache.tools.ant.types.Environment$Variable.setFile(Environment.j
> > ava:97)
> >         at
> >
org.apache.cactus.integration.ant.container.AbstractJavaContainer.cre
> > ateSysProperty(AbstractJavaContainer.java:155)
> >         at
> >
org.apache.cactus.integration.ant.container.weblogic.WebLogic7xContai
> > ner.startUp(WebLogic7xContainer.java:206)
> >         at
> >
org.apache.cactus.integration.ant.container.ContainerRunner$1.run(Con
> > tainerRunner.java:185)
> >         at java.lang.Thread.run(Thread.java:479)
> >
> > BUILD FAILED
> > File...... file:/C:/Documents and
> > Settings/brunots/.maven/plugins/maven-cactus-p
> > lugin-3.1-SNAPSHOT/
> > Element... cactus
> > Line...... 227
> > Column.... 53
> > Failed to start the container after more than [180000] ms.
> > Total time: 4 minutes 48 seconds
> >
> > -----Message d'origine-----
> > De : Vincent Massol [mailto:vmassol@pivolis.com]
> > Envoyé : mardi 5 août 2003 12:35
> > À : 'Cactus Users List'
> > Cc : Sebastien.BRUNOT@cegetel.fr
> > Objet : RE: Maven cactus plugin regression (?)
> >
> >
> > Hi Sebastien,
> >
> > You're right, support for WL7.x has been inadvertently dropped in
> version
> > 3.0 when we moved to the new Cactus/Ant integration. I have added it
> back
> > in
> > version 3.1-SNAPSHOT in CVS HEAD. However, I've not been able to
test
> it
> > as
> > I don't have WL7 on my machine.
> >
> > Do you think you could give it a try?
> >
> > Thanks
> > -Vincent
> >
> > > -----Original Message-----
> > > From: BRUNOT Sébastien [mailto:Sebastien.BRUNOT@cegetel.fr]
> > > Sent: 01 August 2003 11:23
> > > To: 'Cactus Users List'; 'users@maven.apache.org'
> > > Subject: Maven cactus plugin regression (?)
> > >
> > > Hi,
> > >
> > > Seems to me that there is a regression in cactus plugin 3.0 : it
was
> > > possible with cactus plugin 2.0 to test the webapp in a Weblogic 7
> > > container, it doesn't seems to work with the new plugin...
> > >
> > > Anybody else got the same problem ?
> > >
> > > Sebastien BRUNOT
> > >
> > >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
> >
> >
---------------------------------------------------------------------
> > 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
> 
> 
> 
> ---------------------------------------------------------------------
> 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