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 ol...@accenture.com on 2005/04/22 23:06:54 UTC

Cactus maven plugin doesn't start Jboss -- Suite

Second try :
I checked out the cactus project from cvs, modified the JBoss3xContainer to replace the run.bat with run.sh and then I built the complete distro, updated my maven repo, modified the dependency in my project.xml .. all for nothing !

Running maven -X cactus:test fails with 
    [cactus] [DEBUG] Execute:Java13CommandLauncher: Executing '/opt/j2sdk1.4.2_06/jre/bin/java' with arguments:
'-Dcactus.contextURL=http://localhost:8080/pocEJB-cactus'
'-Dprogram.name=/opt/jboss-3.2.3/bin/run.sh'
'-Djboss.server.home.dir=/opt/jboss-3.2.3/server/pocEJB'
'-Djboss.server.home.url=file:/opt/jboss-3.2.3/server/pocEJB/'
'-classpath'
'/opt/jboss-3.2.3/bin/run.jar:/opt/j2sdk1.4.2_06/lib/tools.jar'
'org.jboss.Main'
'-c'
'pocEJB'

The ' characters around the executable and arguments are
not part of the command.

    [cactus] [DEBUG] Checking if server is up ...
    [cactus] [DEBUG] Failed to connect to [http://localhost:8080/pocEJB-cactus

So I don't know what to try next ?!!!! Any suggestion ?

Thanks 

Olivier
=======
My previous message :

Hi all,

I have a weird issue with maven, cactus plugin (version 1.7) and Jboss (version 3.2.3) on my linux box.

I have created an generic project using maven genapp and ejb template.

I have my JBoss installation in /opt/jboss-3.2.3

The artifactID of my project is pocEJB

running maven jboss:configure is fine : new pocEJB directory is created from the default directory

running maven jboss:start if fine : the pocEJB instance is started

running maven -X cactus:test gives me (after a while) a connection refused (of course the jboss instance is not started before).

in my home build.properties :
maven.jboss.home=/opt/jboss-3.2.3

in the project.properties :
cactus.src.mergewebxml=src/conf/cactus-web.xml
maven.jboss.home=/opt/jboss-3.2.3
maven.jboss.conf.dir=src/jboss/conf
maven.jboss.deploy.dir=src/jboss/deploy
maven.jboss.build.dir=/opt/jboss-3.2.3/server/
maven.jboss.server.name=pocEJB

in the build.properties of the project :
cactus.home.jboss3x=/opt/jboss-3.2.3
cactus.jboss3x.config.name=pocEJB
cactus.jboss3x.tmp.dir=${cactus.home.jboss3x}/server/pocEJB

what I see with the debug is that cactus might want to execute the run.bat from the JBoss bin directory and obsiously it fails on linux. Is that the root cause of my issue ?

   [cactus] [DEBUG] Execute:Java13CommandLauncher: Executing '/opt/j2sdk1.4.2_06/jre/bin/java' with arguments:
'-Dcactus.contextURL=http://localhost:8080/pocEJB-cactus'
'-Dprogram.name=/opt/jboss-3.2.3/bin/run.bat'
'-Djboss.server.home.dir=/opt/jboss-3.2.3/server/pocEJB'
'-Djboss.server.home.url=file:/opt/jboss-3.2.3/server/pocEJB/'
'-classpath'
'/opt/jboss-3.2.3/bin/run.jar:/opt/j2sdk1.4.2_06/lib/tools.jar'
'org.jboss.Main'
'-c'
'pocEJB'

Thanks a lot in advance to anyone that might help.

Olivier

Additional elements for troubleshooting : maven --info
#---- BEGIN: Which report
Which.version=Which.java:($Revision: 1.2 $) WhichJar.java:($Revision: 1.2 $)
java.version=1.4.2_06
file.encoding=ISO-8859-15
java.ext.dirs=/opt/j2sdk1.4.2_06/jre/lib/ext
java.class.path=/opt/eclipse3.0/workspace/MAVEN/lib/forehead-1.0-beta-5.jar
os.name=Linux
java.vendor=Sun Microsystems Inc.
sun.boot.class.path=/opt/eclipse3.0/workspace/MAVEN/lib/endorsed/xerces-2.4.0.jar:/opt/eclipse3.0/workspace/MAVEN/lib/endorsed/xml-apis-1.0.b2.jar:/opt/j2sdk1.4.2_06/jre/lib/rt.jar:/opt/j2sdk1.4.2_06/jre/lib/i18n.jar:/opt/j2sdk1.4.2_06/jre/lib/sunrsasign.jar:/opt/j2sdk1.4.2_06/jre/lib/jsse.jar:/opt/j2sdk1.4.2_06/jre/lib/jce.jar:/opt/j2sdk1.4.2_06/jre/lib/charsets.jar:/opt/j2sdk1.4.2_06/jre/classes
java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
#----   END: Which report


This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information.  If you have received it in error, please notify the sender immediately and delete the original.  Any other use of the email by you is prohibited.