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 Stan Y <st...@yahoo.com> on 2004/08/18 00:34:45 UTC
Auto shutdown of server after the hot-deploy testing
Dear All,
What I expect is that a jboss server is always running. Then run the
cactus testing from Eclipse. Everytime a cactus is run, it compiles
everything. If the new .ear is newer than the one already deployed in
jboss, deploy it (replacing the old .ear in jboss). Then run the
testcases.
The problems I am having are:
1. Startup the jboss (with no .ear deployed). Then run the ant task to
do the cactus test in Eclipse. I've set the startUpWait to be 5000.
Everything runs well, except that it shutdown jboss automatically after
the test, which is not what I want.
2. Startup the jboss (with a .ear deployed). Then modify the testcases
and rerun the cactus test in Eclipse. I noticed that the old .ear
deployed in jboss was not replaced by the new .ear. And thus the
testing result always remain the same, no matter how I change the
testcases.
I tried to search in cactus website and google. But I still have the
following questions:
1. How exactly to control whether I use hot-deploy or not?
2. How exactly to control whether to shutdown the server after testing
or not?
3. How exactly to decide at what cases the old .ear deployed in the
server will be replaced by the newer generated .ear file?
4. Where could I find a full reference on the cactus related ANT tasks?
I think
http://jakarta.apache.org/cactus/integration/ant/task_cactus.html is
not comprehensive. For example, "startUpWait" is not covered.
Thanks,
Stan
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail
RE: Auto shutdown of server after the hot-deploy testing
Posted by Vincent Massol <vm...@pivolis.com>.
Hi Stan,
Have you been able to solve the issue? Let me know and if not we can work
together on solving it. There is a check in the <cactus> Ant task to verify
if the container is already started before running the tests. If so, Cactus
does not start it and it won't stop it either.
Thanks
-Vincent
> -----Original Message-----
> From: Stan Y [mailto:stanleytech421@yahoo.com]
> Sent: mercredi 18 août 2004 01:10
> To: Cactus Users List
> Subject: Re: Auto shutdown of server after the hot-deploy testing
>
> I also tried startUpWait=2000 (the originally value) and still the same
> problem.
>
> I think this isn't the problem with the .ear file, because if I
> shutdown and then restart the jboss server, rerun the cactus testcases
> in Eclipse, everything works fine, except that it shutdown the jboss,
> which isn't what I want.
>
> Thanks,
> Stan
>
>
>
> __________________________________
> Do you Yahoo!?
> Read only the mail you want - Yahoo! Mail SpamGuard.
> http://promotions.yahoo.com/new_mail
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-user-help@jakarta.apache.org
Re: Auto shutdown of server after the hot-deploy testing
Posted by Stan Y <st...@yahoo.com>.
I also tried startUpWait=2000 (the originally value) and still the same
problem.
I think this isn't the problem with the .ear file, because if I
shutdown and then restart the jboss server, rerun the cactus testcases
in Eclipse, everything works fine, except that it shutdown the jboss,
which isn't what I want.
Thanks,
Stan
__________________________________
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
http://promotions.yahoo.com/new_mail
Re: Auto shutdown of server after the hot-deploy testing
Posted by Stan Y <st...@yahoo.com>.
And if I repeat the same thing multiple times, I got different error
messages. Another one is like this:
05:53:55,747 INFO [EJBDeployer] nested deployment:
file:/home/yao/local/jboss-3.2.2/server/default/tmp/deploy/tmp52822cactus-sample-ejb-cactified.ear-contents/cactus-sample-ejb.jar-contents/xdoclet-web-module-1.2.1.jar
05:53:55,752 INFO [EJBDeployer] nested deployment:
file:/home/yao/local/jboss-3.2.2/server/default/tmp/deploy/tmp52822cactus-sample-ejb-cactified.ear-contents/cactus-sample-ejb.jar-contents/xdoclet-xdoclet-module-1.2.1.jar
05:53:55,765 INFO [EJBDeployer] nested deployment:
file:/home/yao/local/jboss-3.2.2/server/default/tmp/deploy/tmp52822cactus-sample-ejb-cactified.ear-contents/cactus-sample-ejb.jar-contents/xjavadoc-1.0.3.jar
05:53:56,337 INFO [Engine] StandardHost[localhost]: MAPPING
configuration error for request URI
/cactus-sample-ejb/ServletRedirector
05:54:00,644 INFO [Engine] StandardHost[localhost]: MAPPING
configuration error for request URI
/cactus-sample-ejb/ServletRedirector
05:53:56,409 INFO [MainDeployer] deployment waiting for deployer:
file:/home/yao/local/jboss-3.2.2/server/default/tmp/deploy/tmp52822cactus-sample-ejb-cactified.ear-contents/cactus-sample-ejb.jar-contents/xdoclet-jboss-module-1.2.1.jar
05:54:00,650 WARN [JARDeployer] Failed to add deployable jar:
file:/home/yao/local/jboss-3.2.2/server/default/tmp/deploy/tmp52822cactus-sample-ejb-cactified.ear-contents/cactus-sample-ejb.jar-contents/axis-ant.jar
java.util.zip.ZipException: No such file or directory
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:112)
at java.util.jar.JarFile.<init>(JarFile.java:127)
at java.util.jar.JarFile.<init>(JarFile.java:65)
at
org.jboss.deployment.SubDeployerSupport.processNestedDeployments(SubDeployerSupport.java:245)
at
org.jboss.deployment.SubDeployerSupport.init(SubDeployerSupport.java:143)
at
org.jboss.deployment.MainDeployer.init(MainDeployer.java:696)
at
org.jboss.deployment.MainDeployer.init(MainDeployer.java:716)
at
org.jboss.deployment.MainDeployer.init(MainDeployer.java:716)
at
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:632)
at
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
at
org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy6.deploy(Unknown Source)
at
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302)
at
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:476)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:212)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:191)
05:54:00,682 WARN [JARDeployer] Failed to add deployable jar:
file:/home/yao/local/jboss-3.2.2/server/default/tmp/deploy/tmp52822cactus-sample-ejb-cactified.ear-contents/cactus-sample-ejb.jar-contents/aspectjrt-1.1.1.jar
java.util.zip.ZipException: No such file or directory
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:112)
at java.util.jar.JarFile.<init>(JarFile.java:127)
at java.util.jar.JarFile.<init>(JarFile.java:65)
at
org.jboss.deployment.SubDeployerSupport.processNestedDeployments(SubDeployerSupport.java:245)
at
org.jboss.deployment.SubDeployerSupport.init(SubDeployerSupport.java:143)
at
org.jboss.deployment.MainDeployer.init(MainDeployer.java:696)
at
org.jboss.deployment.MainDeployer.init(MainDeployer.java:716)
at
org.jboss.deployment.MainDeployer.init(MainDeployer.java:716)
at
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:632)
at
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
at
org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy6.deploy(Unknown Source)
at
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302)
at
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:476)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:212)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:191)
05:54:02,575 INFO [Engine] StandardHost[localhost]: MAPPING
configuration error for request URI
/cactus-sample-ejb/ServletRedirector
05:54:02,991 ERROR [EmbeddedTomcatService] Problem in init
org.jboss.deployment.DeploymentException: Was unable to move war to:
/home/yao/local/jboss-3.2.2/server/default/tmp/deploy/tmp52822cactus-sample-ejb-cactified.ear-contents/cactus-sample-ejb-cactified.war.tmp
at
org.jboss.web.AbstractWebContainer.init(AbstractWebContainer.java:296)
at
org.jboss.deployment.MainDeployer.init(MainDeployer.java:696)
at
org.jboss.deployment.MainDeployer.init(MainDeployer.java:716)
at
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:632)
at
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
at
org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy6.deploy(Unknown Source)
at
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302)
at
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:476)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:212)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:191)
05:54:02,992 INFO [Engine] StandardHost[localhost]: MAPPING
configuration error for request URI
/cactus-sample-ejb/ServletRedirector
05:54:02,998 WARN [NestedThrowable] Duplicate throwable nesting of
same base type: class org.jboss.deployment.DeploymentException is
assignable from: class org.jboss.deployment.DeploymentException
05:54:02,999 ERROR [MainDeployer] Could not initialise deloyment:
file:/home/yao/local/jboss-3.2.2/server/default/deploy/cactus-sample-ejb-cactified.ear
org.jboss.deployment.DeploymentException: Was unable to move war to:
/home/yao/local/jboss-3.2.2/server/default/tmp/deploy/tmp52822cactus-sample-ejb-cactified.ear-contents/cactus-sample-ejb-cactified.war.tmp;
- nested throwable: (org.jboss.deployment.DeploymentException: Was
unable to move war to:
/home/yao/local/jboss-3.2.2/server/default/tmp/deploy/tmp52822cactus-sample-ejb-cactified.ear-contents/cactus-sample-ejb-cactified.war.tmp)
at
org.jboss.web.AbstractWebContainer.init(AbstractWebContainer.java:350)
at
org.jboss.deployment.MainDeployer.init(MainDeployer.java:696)
at
org.jboss.deployment.MainDeployer.init(MainDeployer.java:716)
at
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:632)
at
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
at
org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy6.deploy(Unknown Source)
at
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302)
at
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:476)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:212)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:191)
Caused by: org.jboss.deployment.DeploymentException: Was unable to move
war to:
/home/yao/local/jboss-3.2.2/server/default/tmp/deploy/tmp52822cactus-sample-ejb-cactified.ear-contents/cactus-sample-ejb-cactified.war.tmp
at
org.jboss.web.AbstractWebContainer.init(AbstractWebContainer.java:296)
... 16 more
05:54:03,512 INFO [Engine] StandardHost[localhost]: MAPPING
configuration error for request URI
/cactus-sample-ejb/ServletRedirector
05:54:03,512 INFO [Engine] StandardHost[localhost]: MAPPING
configuration error for request URI
/cactus-sample-ejb/ServletRedirector
--- Stan Y <st...@yahoo.com> wrote:
> What's more interesting is that if I manually replace the old .ear
> file
> deployed in jboss with the newly compiled one by copying files using
> UNIX command, it worked well and the new .ear is correctly deployed.
> But if I remove the old .ear in jboss and then run cactus test in
> Eclipse, expecting the new .ear to be deployed, I got the following
> errors.
>
> 05:45:00,673 INFO [Engine] StandardHost[localhost]: MAPPING
> configuration error for request URI
> /cactus-sample-ejb/ServletRedirector
> 05:45:00,673 INFO [Engine] StandardHost[localhost]: MAPPING
> configuration error for request URI
> /cactus-sample-ejb/ServletRedirector
> 05:45:02,118 INFO [Engine] StandardHost[localhost]: MAPPING
> configuration error for request URI
> /cactus-sample-ejb/ServletRedirector
> 05:45:02,476 INFO [Engine] StandardHost[localhost]: MAPPING
> configuration error for request URI
> /cactus-sample-ejb/ServletRedirector
> 05:45:02,491 INFO [MainDeployer] Starting deployment of package:
>
file:/home/yao/local/jboss-3.2.2/server/default/deploy/cactus-sample-ejb-cactified.ear
> 05:45:02,535 INFO [EARDeployer] Init J2EE application:
>
file:/home/yao/local/jboss-3.2.2/server/default/deploy/cactus-sample-ejb-cactified.ear
> 05:45:03,180 INFO [Engine] StandardHost[localhost]: MAPPING
> configuration error for request URI
> /cactus-sample-ejb/ServletRedirector
> ...
> ...
> 05:45:11,044 INFO [Engine] StandardHost[localhost]: MAPPING
> configuration error for request URI
> /cactus-sample-ejb/ServletRedirector
> 05:45:12,029 ERROR [MainDeployer] Could not initialise deloyment:
>
file:/home/yao/local/jboss-3.2.2/server/default/deploy/cactus-sample-ejb-cactified.ear
> org.jboss.deployment.DeploymentException: No META-INF/application.xml
> found
> at org.jboss.deployment.EARDeployer.init(EARDeployer.java:63)
> at
> org.jboss.deployment.MainDeployer.init(MainDeployer.java:696)
> at
> org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:632)
> at
> org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
> at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown
> Source)
> at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at
>
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
> at
> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
> at
> org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
> at $Proxy6.deploy(Unknown Source)
> at
>
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302)
> at
>
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:476)
> at
>
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
> at
>
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:212)
> at
>
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:191)
> 05:45:12,390 INFO [Engine] StandardHost[localhost]: MAPPING
> configuration error for request URI
> /cactus-sample-ejb/ServletRedirector
> 05:45:12,604 INFO [Engine] StandardHost[localhost]: MAPPING
> configuration error for request URI
> /cactus-sample-ejb/ServletRedirector
>
>
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail - 50x more storage than other providers!
> http://promotions.yahoo.com/new_mail
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-user-help@jakarta.apache.org
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Re: Auto shutdown of server after the hot-deploy testing
Posted by Stan Y <st...@yahoo.com>.
What's more interesting is that if I manually replace the old .ear file
deployed in jboss with the newly compiled one by copying files using
UNIX command, it worked well and the new .ear is correctly deployed.
But if I remove the old .ear in jboss and then run cactus test in
Eclipse, expecting the new .ear to be deployed, I got the following
errors.
05:45:00,673 INFO [Engine] StandardHost[localhost]: MAPPING
configuration error for request URI
/cactus-sample-ejb/ServletRedirector
05:45:00,673 INFO [Engine] StandardHost[localhost]: MAPPING
configuration error for request URI
/cactus-sample-ejb/ServletRedirector
05:45:02,118 INFO [Engine] StandardHost[localhost]: MAPPING
configuration error for request URI
/cactus-sample-ejb/ServletRedirector
05:45:02,476 INFO [Engine] StandardHost[localhost]: MAPPING
configuration error for request URI
/cactus-sample-ejb/ServletRedirector
05:45:02,491 INFO [MainDeployer] Starting deployment of package:
file:/home/yao/local/jboss-3.2.2/server/default/deploy/cactus-sample-ejb-cactified.ear
05:45:02,535 INFO [EARDeployer] Init J2EE application:
file:/home/yao/local/jboss-3.2.2/server/default/deploy/cactus-sample-ejb-cactified.ear
05:45:03,180 INFO [Engine] StandardHost[localhost]: MAPPING
configuration error for request URI
/cactus-sample-ejb/ServletRedirector
...
...
05:45:11,044 INFO [Engine] StandardHost[localhost]: MAPPING
configuration error for request URI
/cactus-sample-ejb/ServletRedirector
05:45:12,029 ERROR [MainDeployer] Could not initialise deloyment:
file:/home/yao/local/jboss-3.2.2/server/default/deploy/cactus-sample-ejb-cactified.ear
org.jboss.deployment.DeploymentException: No META-INF/application.xml
found
at org.jboss.deployment.EARDeployer.init(EARDeployer.java:63)
at
org.jboss.deployment.MainDeployer.init(MainDeployer.java:696)
at
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:632)
at
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
at
org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy6.deploy(Unknown Source)
at
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302)
at
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:476)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:212)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:191)
05:45:12,390 INFO [Engine] StandardHost[localhost]: MAPPING
configuration error for request URI
/cactus-sample-ejb/ServletRedirector
05:45:12,604 INFO [Engine] StandardHost[localhost]: MAPPING
configuration error for request URI
/cactus-sample-ejb/ServletRedirector
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail