Hi Joao,

Sorry I don't have the time to debug your problem right now but we have
several samples in the Cactus distribution that should work fine with JBoss
(the samples/servlet and the samples/ejb ones). Could you try those and try
to see what they're doing differently than you're doing?

Thanks
-Vincent

> -----Original Message-----
> From: jmota [mailto:[EMAIL PROTECTED]
> Sent: lundi 8 novembre 2004 11:36
> To: [EMAIL PROTECTED]
> Subject: problem getting started with cactus using jboss
> 
> Hi, i�m having a problem running cactus:
> 
> I get a file not found exception when running the cactus task against a
> jboss container (using jboss 3.2.1).
> It seems that cactus cannot deploy the cactifyed war properly.
> 
> 
> Also I tried to deploy manually the cactifyed manually but when invoking
> the servlet for running the tests using the browser nothing happens (and
> the source for the document has nothing).
> 
> I searched the mailing lists and found similar problems, but no answer
> on the solution. Can anyone shed some light on this issue?
> 
> Thanks in advance,
> Jo�o Mota
> 
> ------------------------------------------------------------------------
> --------------------------------------------------
> 
> Here are the ant tasks:
> 
> <target name="cactify" depends="dist-tests">
>             <cactifywar destfile="${dist.dir}/${cactus.war}"
> srcfile="${dist.dir}/${war.file}" />
> </target>
> 
> <target name="run-cactus-tests" depends="cactify" >
>             <cactus warfile="${dist.dir}/${cactus.war}"
> printsummary="yes">
>                   <classpath>
>                       <path refid="cactus.classpath"/>
>                       <pathelement location="${classes.dir}"/>
>                     </classpath>
>                   <containerset>
>                         <jboss3x dir="${jboss.home}" port="80"
> todir="${test.reports.dir}"/>
> </containerset>
>                   <formatter type="plain"/>
>                     <batchtest>
>                       <fileset dir="${test.dir}">
>                         <include name="**/MyTest*.java"/>
>                     <include name="**/Test*.java"/>
>                         <exclude name="**/*.testsuite"/>
>                         <exclude name="**/*.xml"/>
>                       </fileset>
>                     </batchtest>
>             </cactus>
> 
>       </target>
> 
> 
> the output (just the revelant part):
> 
>    [cactus] 10:33:21,744 WARN  [jbossweb] WARNING: Web application not
> found
> file:/C:/Programs/jboss-3.2.1/server/default/tmp/deploy/C/Programs/jboss
> -3.2.1/serv
> er/default/deploy/wo5-test.war/8.wo5-test.war
>    [cactus] 10:33:21,744 WARN  [jbossweb] WARNING: Configuration error
> on
> file:/C:/Programs/jboss-3.2.1/server/default/tmp/deploy/C/Programs/jboss
> -3.2.1/server/
> default/deploy/wo5-test.war/8.wo5-test.war
>    [cactus] java.io.FileNotFoundException:
> file:/C:/Programs/jboss-3.2.1/server/default/tmp/deploy/C/Programs/jboss
> -3.2.1/server/default/deploy/wo5-test.war/8.w
> o5-test.war
>    [cactus]     at
> org.mortbay.jetty.servlet.WebApplicationContext.resolveWebApp(WebApplica
> tionContext.java:243)
>    [cactus]     at
> org.mortbay.jetty.servlet.WebApplicationContext.start(WebApplicationCont
> ext.java:337)
>    [cactus]     at
> org.mortbay.j2ee.J2EEWebApplicationContext.start(J2EEWebApplicationConte
> xt.java:85)
>    [cactus]     at
> org.jboss.jetty.JBossWebApplicationContext.start(JBossWebApplicationCont
> ext.java:89)
>    [cactus]     at org.jboss.jetty.Jetty.deploy(Jetty.java:331)
>    [cactus]     at
> org.jboss.jetty.JettyService.performDeploy(JettyService.java:242)
>    [cactus]     at
> org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:357)
>    [cactus]     at
> org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
>    [cactus]     at
> org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:640)
>    [cactus]     at
> org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:613)
>    [cactus]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>    [cactus]     at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
> a:39)
>    [cactus]     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> Impl.java:25)
>    [cactus]     at java.lang.reflect.Method.invoke(Method.java:324)
>    [cactus]     at
> org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDi
> spatcher.java:284)
>    [cactus]     at
> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
>    [cactus]     at
> org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
>    [cactus]     at $Proxy7.deploy(Unknown Source)
>    [cactus]     at
> org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentSc
> anner.java:302)
>    [cactus]     at
> org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScan
> ner.java:476)
>    [cactus]     at
> org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doS
> can(AbstractDeploymentScanner.java:200)
>    [cactus]     at
> org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(Abst
> ractDeploymentScanner.java:273)
>    [cactus]     at
> org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
>    [cactus]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>    [cactus]     at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
> a:39)
>    [cactus]     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> Impl.java:25)
>    [cactus]     at java.lang.reflect.Method.invoke(Method.java:324)
>    [cactus]     at
> org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDi
> spatcher.java:284)
>    [cactus]     at
> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
>    [cactus]     at
> org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController
> .java:966)
>    [cactus]     at $Proxy0.start(Unknown Source)
>    [cactus]     at
> org.jboss.system.ServiceController.start(ServiceController.java:392)
>    [cactus]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>    [cactus]     at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
> a:39)
>    [cactus]     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> Impl.java:25)
>    [cactus]     at java.lang.reflect.Method.invoke(Method.java:324)
>    [cactus]     at
> org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDi
> spatcher.java:284)
>    [cactus]     at
> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
>    [cactus]     at
> org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
>    [cactus]     at $Proxy5.start(Unknown Source)
>    [cactus]     at
> org.jboss.deployment.SARDeployer.start(SARDeployer.java:226)
>    [cactus]     at
> org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
>    [cactus]     at
> org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:640)
>    [cactus]     at
> org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:613)
>    [cactus]     at
> org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:597)
>    [cactus]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>    [cactus]     at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
> a:39)
>    [cactus]     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> Impl.java:25)
>    [cactus]     at java.lang.reflect.Method.invoke(Method.java:324)
>    [cactus]     at
> org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDi
> spatcher.java:284)
>    [cactus]     at
> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
>    [cactus]     at
> org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
>    [cactus]     at $Proxy6.deploy(Unknown Source)
>    [cactus]     at
> org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:365)
>    [cactus]     at
> org.jboss.system.server.ServerImpl.start(ServerImpl.java:272)
>    [cactus]     at org.jboss.Main.boot(Main.java:150)
>    [cactus]     at org.jboss.Main$1.run(Main.java:388)
>    [cactus]     at java.lang.Thread.run(Thread.java:534)
> 
> 
> 
> 
> 
> DISCLAIMER: This message may contain confidential information or
> privileged material and is intended only for the individual(s) named. If
> you are not a named addressee and mistakenly received this message you
> should not copy or otherwise disseminate it: please delete this e-mail
> from your system and notify the sender immediately. E-mail transmissions
> are not guaranteed to be secure or error-free as information could be
> intercepted, corrupted, lost, destroyed, arrive late or incomplete or
> contain viruses. Therefore, the sender does not accept liability for any
> errors or omissions in the contents of this message that arise as a result
> of e-mail transmissions. Please request a hard copy version if
> verification is required. Critical Software.
> 



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

Reply via email to