• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to run cactus test in one step ?

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am now writing test for my jsp-tag.
Right now I am writing cactus tests as follows:
Each time I modifies the src code or the test code, I should copy the jar file to the TOMCAT_HOME/webapps/test, and then restart the tomcat server, at last running the test....
It is really boring to do it again and again, so I ask help here.
Is there any easy way to run the tests.... thx for your help.
Maybe the cactus plugin for eclipse is one possible solution, but the src-code I download from cvs.apache.org doesn't compile, the build.xml file is too difficult for me.
You may give either the compiled version of cactus plugin or give me an example of ant build.xml file to automate the whole process (I mean deploy the test automatically, maybe will restart the tomcat automatically too).
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Jimmy,
Apache has a release version of the plugin. You just have to put in the plugin directory and restart eclipse.
 
Jimmy Jin
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Jeanne:
There is no download link on that page acutally...
(at least I can not find it).
Right now I war my test-cases and then copy it into TOMCAT_HOME/webapps directory using ANT, and then running the test via browser.
But I do wanna automate the whole process by ANT only..
Could you help me on the cactify and cactus task in ANT.
thx for your help.
 
Jimmy Jin
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Another question when running cactus test on the tomcat container (5.0),
the following exception occurs:
2004-4-12 14:59:48 org.apache.jasper.runtime.PageContextImpl release
Warning: Internal error flushing the buffer in release()
can you tell me why it occurs, and how to solve it..
thx
 
Jeanne Boyarsky
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Jimmy,
The link I gave was the installation instructions. The actual download link is here. Just scroll down a bit to get to the eclipse integration section. I haven't yet used cactus in ant.
 
Jimmy Jin
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The download link is not clickable~
I have made the cactus work under ANT now :-)
thx for your help..
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Jimmy Jin:
Another question when running cactus test on the tomcat container (5.0),
the following exception occurs:

2004-4-12 14:59:48 org.apache.jasper.runtime.PageContextImpl release
Warning: Internal error flushing the buffer in release()

can you tell me why it occurs, and how to solve it..
thx



Did you figure out what causes this error?
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic