Unfortunately even after adding the tags I m getting following error:
[INFO] [stalledLocalDeployer] Deploying [F:\Documents and
Settings\rvgupta\MavenProjects\Cargo+JBOSS-Trial\simple-webapp\target\simple-webapp.war]
to [E:\Softwares\jboss-4.0.5.GA\s
erver\default/deploy]...
[INFO] [talledLocalContainer] Parsed JBoss version = [4.0.5]
[INFO] [talledLocalContainer] JBoss 4.0.5 starting...
[INFO] [talledLocalContainer] 15:52:55,262 INFO [Server] Starting JBoss (MX
MicroKernel)...
[INFO] [talledLocalContainer] 15:52:55,262 INFO [Server] Release ID: JBoss
[Zion] 4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)
[INFO] [talledLocalContainer] 15:52:55,278 INFO [Server] Home Dir:
E:\Softwares\jboss-4.0.5.GA
[INFO] [talledLocalContainer] 15:52:55,278 INFO [Server] Home URL:
file:/E:/Softwares/jboss-4.0.5.GA/
[INFO] [talledLocalContainer] 15:52:55,278 INFO [Server] Patch URL: null
[INFO] [talledLocalContainer] 15:52:55,278 INFO [Server] Server Name: jboss4x
[INFO] [talledLocalContainer] 15:52:55,278 INFO [Server] Server Home Dir:
E:\Softwares\jboss-4.0.5.GA\server\default
[INFO] [talledLocalContainer] 15:52:55,278 INFO [Server] Server Home URL:
file:/E:/Softwares/jboss-4.0.5.GA/server/default/
[INFO] [talledLocalContainer] 15:52:55,278 INFO [Server] Server Log Dir:
E:\Softwares\jboss-4.0.5.GA\server\default\log
[INFO] [talledLocalContainer] 15:52:55,294 INFO [Server] Server Temp Dir:
E:\Softwares\jboss-4.0.5.GA\server\default\tmp
[INFO] [talledLocalContainer] 15:52:55,294 INFO [Server] Root Deployment
Filename: jboss-service.xml
[INFO] [talledLocalContainer] 15:52:55,716 INFO [ServerInfo] Java version:
1.5.0_04,Sun Microsystems Inc.
[INFO] [talledLocalContainer] 15:52:55,716 INFO [ServerInfo] Java VM: Java
HotSpot(TM) Client VM 1.5.0_04-b05,Sun Microsystems Inc.
[INFO] [talledLocalContainer] 15:52:55,716 INFO [ServerInfo] OS-System:
Windows XP 5.1,x86
[INFO] [talledLocalContainer] 15:52:56,231 INFO [Server] Core system
initialized
[INFO] [talledLocalContainer] 15:52:56,325 ERROR [MainDeployer] Could not
initialise deployment:
file:/E:/Softwares/jboss-4.0.5.GA/server/default/conf/jboss-service.xml
[WARNING] [talledLocalContainer] Failed to boot JBoss:
[INFO] [talledLocalContainer] org.jboss.deployment.DeploymentException: Not
pointing to a directory, url:
file:/E:/Softwares/jboss-4.0.5.GA/server/null/lib/; - nested throwable: (j
ava.io.FileNotFoundException: Not pointing to a directory, url:
file:/E:/Softwares/jboss-4.0.5.GA/server/null/lib/)
[INFO] [talledLocalContainer] at
org.jboss.deployment.SARDeployer.init(SARDeployer.java:217)
[WARNING] [talledLocalContainer] org.jboss.deployment.DeploymentException: Not
pointing to a directory, url:
file:/E:/Softwares/jboss-4.0.5.GA/server/null/lib/; - nested throwable:
(java.io.FileNotFoundException: Not pointing to a directory, url:
file:/E:/Softwares/jboss-4.0.5.GA/server/null/lib/)
[WARNING] [talledLocalContainer] at
org.jboss.deployment.SARDeployer.init(SARDeployer.java:217)
[INFO] [talledLocalContainer] at
org.jboss.deployment.MainDeployer.init(MainDeployer.java:872)
[INFO] [talledLocalContainer] at
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:809)
[WARNING] [talledLocalContainer] at
org.jboss.deployment.MainDeployer.init(MainDeployer.java:872)
[WARNING] [talledLocalContainer] at
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:809)
[INFO] [talledLocalContainer] at
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
[INFO] [talledLocalContainer] at
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
[WARNING] [talledLocalContainer] at
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
[WARNING] [talledLocalContainer] at
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
[WARNING] [talledLocalContainer] at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[WARNING] [talledLocalContainer] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[INFO] [talledLocalContainer] at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[INFO] [talledLocalContainer] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[INFO] [talledLocalContainer] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[WARNING] [talledLocalContainer] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[INFO] [talledLocalContainer] at
java.lang.reflect.Method.invoke(Method.java:585)
[INFO] [talledLocalContainer] at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
[WARNING] [talledLocalContainer] at
java.lang.reflect.Method.invoke(Method.java:585)
[WARNING] [talledLocalContainer] at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
[WARNING] [talledLocalContainer] at
org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
[INFO] [talledLocalContainer] at
org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
[INFO] [talledLocalContainer] at
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
[WARNING] [talledLocalContainer] at
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
[INFO] [talledLocalContainer] at
org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
[WARNING] [talledLocalContainer] at
org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
[INFO] [talledLocalContainer] at
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
[INFO] [talledLocalContainer] at
org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
[WARNING] [talledLocalContainer] at
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
[WARNING] [talledLocalContainer] at
org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
[WARNING] [talledLocalContainer] at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
[INFO] [talledLocalContainer] at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
[WARNING] [talledLocalContainer] at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
[INFO] [talledLocalContainer] at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
[INFO] [talledLocalContainer] at
org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
[INFO] [talledLocalContainer] at $Proxy5.deploy(Unknown Source)
[WARNING] [talledLocalContainer] at
org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
[WARNING] [talledLocalContainer] at $Proxy5.deploy(Unknown Source)
[WARNING] [talledLocalContainer] at
org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
[WARNING] [talledLocalContainer] at
org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
[INFO] [talledLocalContainer] at
org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
[INFO] [talledLocalContainer] at
org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
[INFO] [talledLocalContainer] at org.jboss.Main.boot(Main.java:200)
[INFO] [talledLocalContainer] at org.jboss.Main$1.run(Main.java:490)
[INFO] [talledLocalContainer] at java.lang.Thread.run(Thread.java:595)
[WARNING] [talledLocalContainer] at org.jboss.Main.boot(Main.java:200)
[WARNING] [talledLocalContainer] at org.jboss.Main$1.run(Main.java:490)
[WARNING] [talledLocalContainer] at java.lang.Thread.run(Thread.java:595)
[WARNING] [talledLocalContainer] Caused by: java.io.FileNotFoundException: Not
pointing to a directory, url: file:/E:/Softwares/jboss-4.0.5.GA/server/null/lib/
[WARNING] [talledLocalContainer] at
org.jboss.net.protocol.file.FileURLLister.listMembers(FileURLLister.java:68)
[INFO] [talledLocalContainer] Caused by: java.io.FileNotFoundException: Not
pointing to a directory, url: file:/E:/Softwares/jboss-4.0.5.GA/server/null/lib/
[WARNING] [talledLocalContainer] at
org.jboss.net.protocol.URLListerBase.listMembers(URLListerBase.java:52)
[WARNING] [talledLocalContainer] at
org.jboss.net.protocol.URLListerBase.listMembers(URLListerBase.java:57)
[INFO] [talledLocalContainer] at
org.jboss.net.protocol.file.FileURLLister.listMembers(FileURLLister.java:68)
[WARNING] [talledLocalContainer] at
org.jboss.deployment.SARDeployer.parseXMLClasspath(SARDeployer.java:558)
[WARNING] [talledLocalContainer] at
org.jboss.deployment.SARDeployer.init(SARDeployer.java:193)
[WARNING] [talledLocalContainer] ... 23 more
[INFO] [talledLocalContainer] at
org.jboss.net.protocol.URLListerBase.listMembers(URLListerBase.java:52)
[INFO] [talledLocalContainer] at
org.jboss.net.protocol.URLListerBase.listMembers(URLListerBase.java:57)
[INFO] [talledLocalContainer] at
org.jboss.deployment.SARDeployer.parseXMLClasspath(SARDeployer.java:558)
[INFO] [talledLocalContainer] at
org.jboss.deployment.SARDeployer.init(SARDeployer.java:193)
[INFO] [talledLocalContainer] ... 23 more
[INFO] [talledLocalContainer] 15:52:56,466 INFO [Server] Runtime shutdown hook
called, forceHalt: true
[INFO] [talledLocalContainer] 15:52:56,466 INFO [Server] JBoss SHUTDOWN:
Undeploying all packages
[INFO] [talledLocalContainer] 15:52:56,481 INFO [Server] Shutdown complete
[INFO] [talledLocalContainer] Shutdown complete
[INFO] [talledLocalContainer] Halting VM
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to start the JBoss 4.0.5 container.
Deployable [http://localhost:8080/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 JBoss
4.0.5 container.
at
org.codehaus.cargo.container.spi.AbstractLocalContainer.start(AbstractLocalContainer.java:160)
at
org.codehaus.cargo.maven2.ContainerStartMojo.doExecute(ContainerStartMojo.java:61)
at
org.codehaus.cargo.maven2.AbstractCargoMojo.execute(AbstractCargoMojo.java:243)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:512)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:482)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
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:585)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.codehaus.cargo.container.ContainerException: Deployable
[http://localhost:8080/cargocpc/index.html] failed to finish deploying within
the timeout period [120000]. Th
e Deployable state is thus unknown.
at
org.codehaus.cargo.container.spi.deployer.DeployerWatchdog.watch(DeployerWatchdog.java:111)
at
org.codehaus.cargo.container.spi.AbstractLocalContainer.waitForCompletion(AbstractLocalContainer.java:212)
at
org.codehaus.cargo.container.spi.AbstractLocalContainer.start(AbstractLocalContainer.java:155)
... 20 more
org.codehaus.cargo.container.ContainerException: Deployable
[http://localhost:8080/cargocpc/index.html] failed to finish deploying within
the timeout period [120000]. The Deployabl
e state is thus unknown.
at
org.codehaus.cargo.container.spi.deployer.DeployerWatchdog.watch(DeployerWatchdog.java:111)
at
org.codehaus.cargo.container.spi.AbstractLocalContainer.waitForCompletion(AbstractLocalContainer.java:212)
at
org.codehaus.cargo.container.spi.AbstractLocalContainer.start(AbstractLocalContainer.java:155)
at
org.codehaus.cargo.maven2.ContainerStartMojo.doExecute(ContainerStartMojo.java:61)
at
org.codehaus.cargo.maven2.AbstractCargoMojo.execute(AbstractCargoMojo.java:243)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:512)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:482)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
-----Original Message-----
From: Stefan Seidel [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 01, 2008 2:07 PM
To: Maven Users List
Subject: Re: Maven2+Jboss support(what's the future of jboss with maven2)
You're welcome. You need to add the start and stop executions to the
plugin definition:
<executions>
<execution>
<id>start-container</id>
<phase>generate-test-resources</phase>
<goals>
<goal>start</goal>
</goals>
</execution>
<execution>
<id>stop-container</id>
<phase>post-integration-test</phase>
<goals>
<goal>stop</goal>
</goals>
</execution>
</executions>
The <phase>s may need to be adapted to your needs.
Stefan
Renu Gupta wrote:
Hey thanx a lot Stefan.............. Its working.
But there is one more problem with the plugin..............
It only deploys my application in the container.
But doesn't explicitly starts and stops the container.
Why so????????
Here is my pom configuration:
<plugin>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven2-plugin</artifactId>
<version> 0.3</version>
<configuration>
<!-- Container configuration -->
<container>
<containerId>jboss4x</containerId>
<home>E:\Softwares\jboss-4.0.5.GA</home>
</container>
<configuration>
<type>existing</type>
<home>E:\Softwares\jboss-4.0.5.GA\server\default</home>
</configuration>
</configuration>
</plugin>
Cheers!
Renu
-----Original Message-----
From: Stefan Seidel [mailto:[EMAIL PROTECTED]
Sent: Monday, June 30, 2008 2:59 PM
To: Maven Users List
Subject: Re: Maven2+Jboss support(what's the future of jboss with maven2)
Could it be you're looking for Cargo?
http://cargo.codehaus.org/Maven2+plugin
Stefan
Renu Gupta wrote:
Hi,
Can any one tell me that
Does maven2 supports jboss plugin?????
Because none of my jboss goals are working in maven2.
When I execute mvn jboss:start it gives successful status but server is not
actually started
Same is the case with other goals of jboss plugin
I m giving the link when it says that future distributions of maven won't
support jboss
http://maven.apache.org/maven-1.x/plugins/jboss/
Is it true????????
-
Renu
"Beauty is eternity gazing at itself in mirror................."
--
best regards,
Stefan Seidel
software developer
________________________
VUB Printmedia GmbH
Chopinstraße 4
D-04103 Leipzig
Germany
tel. +49 (341) 9 60 50 07
fax. +49 (341) 9 60 50 92
mail. [EMAIL PROTECTED]
web. www.vub.de
HRB Köln 24015
UStID DE 122 649 251
GF Dr. Achim Preuss Neudorf,
Dr. Christian Preuss Neudorf
---------------------------------------------------------------------
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]
--
best regards,
Stefan Seidel
software developer
________________________
VUB Printmedia GmbH
Chopinstraße 4
D-04103 Leipzig
Germany
tel. +49 (341) 9 60 50 07
fax. +49 (341) 9 60 50 92
mail. [EMAIL PROTECTED]
web. www.vub.de
HRB Köln 24015
UStID DE 122 649 251
GF Dr. Achim Preuss Neudorf,
Dr. Christian Preuss Neudorf
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]