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 Mark Lybarger <Ma...@CBC-Companies.com> on 2003/10/17 20:38:09 UTC

unable to run cactifywar on solaris

I'm migrating my testing from win2k to solaris.  I'm trying to create an
empty cactified war file, but the task is throwing this exception.  Any
suggestions/ideas?  I saw one message in the list archives about this, but
no solution.  The taskdef goes ok, it's during execution of the task that
this happens. something is probably not in the classpath correctly, but..
what?

Here's how I define the tasks:
  <path id="cactus.classpath">
    <pathelement location="${basedir.source.web-inf.lib}/cactus.jar" />
    <pathelement location="${basedir.source.web-inf.lib}/cactus-ant.jar" />
    <pathelement
location="${basedir.source.web-inf.lib}/commons-httpclient.jar" />
    <pathelement
location="${basedir.source.web-inf.lib}/commons-logging.jar" />
    <pathelement location="${basedir.source.web-inf.lib}/aspectjrt.jar" />

  </path>
  <taskdef resource="cactus.tasks" classpathref="cactus.classpath" />

And here's my error message:
  
BUILD FAILED
java.lang.NoSuchMethodError
        at
org.apache.cactus.integration.ant.CactifyWarTask.addJspRedirector(CactifyWar
Task.java:601)
        at
org.apache.cactus.integration.ant.CactifyWarTask.cactifyWebXml(CactifyWarTas
k.java:662)
        at
org.apache.cactus.integration.ant.CactifyWarTask.execute(CactifyWarTask.java
:421)
        at org.apache.tools.ant.Task.perform(Task.java:317)
        at org.apache.tools.ant.Target.execute(Target.java:309)
        at org.apache.tools.ant.Target.performTasks(Target.java:334)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
        at org.apache.tools.ant.Main.runBuild(Main.java:610)
        at org.apache.tools.ant.Main.start(Main.java:196)
        at org.apache.tools.ant.Main.main(Main.java:235)

Total time: 2 seconds
java.lang.NoSuchMethodError
        at
org.apache.cactus.integration.ant.CactifyWarTask.addJspRedirector(CactifyWar
Task.java:601)
        at
org.apache.cactus.integration.ant.CactifyWarTask.cactifyWebXml(CactifyWarTas
k.java:662)
        at
org.apache.cactus.integration.ant.CactifyWarTask.execute(CactifyWarTask.java
:421)
        at org.apache.tools.ant.Task.perform(Task.java:317)
        at org.apache.tools.ant.Target.execute(Target.java:309)
        at org.apache.tools.ant.Target.performTasks(Target.java:334)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
        at org.apache.tools.ant.Main.runBuild(Main.java:610)
        at org.apache.tools.ant.Main.start(Main.java:196)
        at org.apache.tools.ant.Main.main(Main.java:235)

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.528 / Virus Database: 324 - Release Date: 10/16/2003
 


Re: unable to run cactifywar on solaris

Posted by Christopher Lenz <cm...@gmx.de>.
Hi Mark,

you'll need Ant 1.5.1 or higher to use the Cactus tasks (which is stated 
in the docs IIRC). I think the problem you're reporting here is caused 
by using an earlier version of Ant.

-chris

Mark Lybarger wrote:
> I'm migrating my testing from win2k to solaris.  I'm trying to create an
> empty cactified war file, but the task is throwing this exception.  Any
> suggestions/ideas?  I saw one message in the list archives about this, but
> no solution.  The taskdef goes ok, it's during execution of the task that
> this happens. something is probably not in the classpath correctly, but..
> what?
> 
> Here's how I define the tasks:
>   <path id="cactus.classpath">
>     <pathelement location="${basedir.source.web-inf.lib}/cactus.jar" />
>     <pathelement location="${basedir.source.web-inf.lib}/cactus-ant.jar" />
>     <pathelement
> location="${basedir.source.web-inf.lib}/commons-httpclient.jar" />
>     <pathelement
> location="${basedir.source.web-inf.lib}/commons-logging.jar" />
>     <pathelement location="${basedir.source.web-inf.lib}/aspectjrt.jar" />
> 
>   </path>
>   <taskdef resource="cactus.tasks" classpathref="cactus.classpath" />
> 
> And here's my error message:
>   
> BUILD FAILED
> java.lang.NoSuchMethodError
>         at
> org.apache.cactus.integration.ant.CactifyWarTask.addJspRedirector(CactifyWar
> Task.java:601)
>         at
> org.apache.cactus.integration.ant.CactifyWarTask.cactifyWebXml(CactifyWarTas
> k.java:662)
>         at
> org.apache.cactus.integration.ant.CactifyWarTask.execute(CactifyWarTask.java
> :421)
>         at org.apache.tools.ant.Task.perform(Task.java:317)
>         at org.apache.tools.ant.Target.execute(Target.java:309)
>         at org.apache.tools.ant.Target.performTasks(Target.java:334)
>         at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
>         at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
>         at org.apache.tools.ant.Main.runBuild(Main.java:610)
>         at org.apache.tools.ant.Main.start(Main.java:196)
>         at org.apache.tools.ant.Main.main(Main.java:235)
> 
> Total time: 2 seconds
> java.lang.NoSuchMethodError
>         at
> org.apache.cactus.integration.ant.CactifyWarTask.addJspRedirector(CactifyWar
> Task.java:601)
>         at
> org.apache.cactus.integration.ant.CactifyWarTask.cactifyWebXml(CactifyWarTas
> k.java:662)
>         at
> org.apache.cactus.integration.ant.CactifyWarTask.execute(CactifyWarTask.java
> :421)
>         at org.apache.tools.ant.Task.perform(Task.java:317)
>         at org.apache.tools.ant.Target.execute(Target.java:309)
>         at org.apache.tools.ant.Target.performTasks(Target.java:334)
>         at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
>         at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
>         at org.apache.tools.ant.Main.runBuild(Main.java:610)
>         at org.apache.tools.ant.Main.start(Main.java:196)
>         at org.apache.tools.ant.Main.main(Main.java:235)

-- 
Christopher Lenz
/=/ cmlenz at gmx.de