On Tue, 16 Dec 2003, Joe Germuska wrote:

> As noted in a previous thread, I am hitting a wall trying to run the
> cactus tests in Ant.  I want to commit the changes I've made to help
> Maven run cactus tests, and I've already had to reconcile a bunch of
> conflicts once...
>
> The error seems to come with the first Cactus test case
> (org.apache.struts.action.TestActionServlet) and is "Error
> instantiating class" -- so I'm guessing maybe I haven't gotten all of
> the necessary jars defined correctly (the build.properties.sample is
> pretty confusing the way it repeats blocks of properties over and
> over).

Yes, I made that change becuase setting the paths correctly for each of
those properties was becoming a pain and prone to error, so I figured that
would at least make it easier.  You just uncomment the section for your
choice of Cactus version.

Only problem with that is ... not every version is supported.


Funny, I can't seem to get Maven to do anything for me (build, tests,
etc), but Ant still works fine (compile, ripping the docs/tlds/etc,
tests).  And the problem for you is vica versa.  Ok Ok...it's not
"actually" funny, but still, I would like to see us move over to Maven as
well.


Any chance someone wants to throw together a
step-by-step-build-struts-with-maven.readme?



> Anyway, maybe I just need an Ant trick to give me better
> feedback about why it's failing -- it's probably something very
> routine.
>
> I do know that the same test case passes when I run it in Maven.
>
> Thanks in advance for any tips...
>
>       Joe
>
> start.tomcat.41:
>       [java] Dec 16, 2003 3:38:21 PM
> org.apache.coyote.http11.Http11Protocol init
>       [java] INFO: Initializing Coyote HTTP/1.1 on port 8080
>       [java] Starting service Tomcat-Standalone
>       [java] Apache Tomcat/4.1.29
>       [java] log4j:WARN No appenders could be found for logger
> (org.apache.struts.util.PropertyMessageResources).
>       [java] log4j:WARN Please initialize the log4j system properly.
>       [java] Dec 16, 2003 3:38:31 PM
> org.apache.coyote.http11.Http11Protocol start
>       [java] INFO: Starting Coyote HTTP/1.1 on port 8080
>
> run.test:
>      [junit] Running org.apache.struts.action.TestActionMessage
>      [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0.075 sec
>      [junit] Testsuite: org.apache.struts.action.TestActionMessage
>      [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0.075 sec
>
>      [junit] Testcase: testActionMessageWithNoValue took 0.039 sec
>      [junit] Testcase: testActionMessageWithAStringValue took 0.001 sec
>      [junit] Running org.apache.struts.action.TestActionMessages
>      [junit] Tests run: 8, Failures: 0, Errors: 0, Time elapsed: 0.06 sec
>      [junit] Testsuite: org.apache.struts.action.TestActionMessages
>      [junit] Tests run: 8, Failures: 0, Errors: 0, Time elapsed: 0.06 sec
>
>      [junit] Testcase: testEmpty took 0.025 sec
>      [junit] Testcase: testNotEmpty took 0.005 sec
>      [junit] Testcase: testSizeWithOneProperty took 0.001 sec
>      [junit] Testcase: testSizeWithManyProperties took 0.001 sec
>      [junit] Testcase: testSizeAndEmptyAfterClear took 0 sec
>      [junit] Testcase: testGetWithNoProperty took 0.013 sec
>      [junit] Testcase: testGetForAProperty took 0 sec
>      [junit] Testcase: testAddMessages took 0.001 sec
>      [junit] Running org.apache.struts.action.TestActionServlet
>      [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 1.782 sec
>      [junit] Testsuite: org.apache.struts.action.TestActionServlet
>      [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 1.782 sec
>
>      [junit] Testcase: testInitDestroyInternal took 1.771 sec
>      [junit]     Caused an ERROR
>      [junit] Error instantiating class
> [org.apache.struts.action.TestActionServlet([testInitDestroyInternal],
> [null])]
>      [junit] javax.servlet.ServletException: Error instantiating class
> [org.apache.struts.action.TestActionServlet([testInitDestroyInternal],
> [null])]
>      [junit]     at
> org.apache.cactus.server.AbstractWebTestCaller.getTestClassInstance(AbstractWebTestCaller.java:459)
>      [junit]     at
> org.apache.cactus.server.AbstractWebTestCaller.doTest(AbstractWebTestCaller.java:148)
>      [junit]     at
> org.apache.cactus.server.AbstractWebTestController.handleRequest_aroundBody0(AbstractWebTestController.java:130)
> [---% snip stack trace %----]
>      [junit] Testcase: testInitDestroyInternal
>
> stop.tomcat.41:
>       [java] Stopping service Tomcat-Standalone
>       [java] Dec 16, 2003 3:38:47 PM
> org.apache.coyote.http11.Http11Protocol destroy
>       [java] INFO: Stoping http11 protocol on 8080
> Catalina:type=ThreadPool,name=http8080
>
> BUILD FAILED
> /Users/germuska/Development/jakarta/jakarta-struts/build-tests.xml:236:
> Test org.apache.struts.action.TestActionServlet failed
>
> Total time: 50 seconds
>
> This same test
>

-- 
James Mitchell
Software Developer / Struts Evangelist
http://www.struts-atlanta.org


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

Reply via email to