Re: Previous system integration tests now failing?

2006-08-02 Thread Greg Reddin


On Aug 2, 2006, at 12:19 AM, Craig McClanahan wrote:


On 8/1/06, Wendy Smoak <[EMAIL PROTECTED]> wrote:


On 8/1/06, Craig McClanahan <[EMAIL PROTECTED]> wrote:
> Somewhere in the changes over the last couple of days, the old  
system
> integration tests on apps like shale-blank (mvn -Pitest install)  
have
> stopped working ... I get an exception from Cargo saying it is  
not able

to
> create a deployable container.  Wendy, does this still work for  
you?


No problems here:



Very wierd ... I get an obscure XML parsing error in the log  
output ...

almost like someone is using the wrong XML parser along the way.



I've had this happen with unit tests before.  I just deleted the  
surefire plugin stuff from my local maven repo and rebuilt and  
everything worked.  Must've been a bad update.


Greg





Re: Previous system integration tests now failing?

2006-08-01 Thread Wendy Smoak

On 8/1/06, Craig McClanahan <[EMAIL PROTECTED]> wrote:


Very wierd ... I get an obscure XML parsing error in the log output ...
almost like someone is using the wrong XML parser along the way.


No ideas other than the usual -- delete org/codehaus/cargo from your
local repo to make it download again.  Maybe point it at a fresh
install of Tomcat to make sure nothing is wrong with any files it is
trying to copy.

--
Wendy


Re: Previous system integration tests now failing?

2006-08-01 Thread Craig McClanahan

On 8/1/06, Wendy Smoak <[EMAIL PROTECTED]> wrote:


On 8/1/06, Craig McClanahan <[EMAIL PROTECTED]> wrote:
> Somewhere in the changes over the last couple of days, the old system
> integration tests on apps like shale-blank (mvn -Pitest install) have
> stopped working ... I get an exception from Cargo saying it is not able
to
> create a deployable container.  Wendy, does this still work for you?

No problems here:



Very wierd ... I get an obscure XML parsing error in the log output ...
almost like someone is using the wrong XML parser along the way.

Craig

---
Test set: org.apache.shale.blank.systest.WelcomeTestCase
---
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.908 sec
<<< FAILURE!
org.apache.shale.blank.systest.WelcomeTestCase  Time elapsed: 1,154,495,
733.074
sec  <<< ERROR!
org.codehaus.cargo.container.ContainerException: Failed to create deployable
for the pair (container id [tomcat5x], deployable type [war]).
   at
org.codehaus.cargo.generic.spi.AbstractGenericHintFactory.createImplementation
(AbstractGenericHintFactory.java:126)
   at
org.codehaus.cargo.generic.spi.AbstractIntrospectionGenericHintFactory.createImplementation
(AbstractIntrospectionGenericHintFactory.java:88)
   at
org.codehaus.cargo.generic.deployable.DefaultDeployableFactory.createDeployable
(DefaultDeployableFactory.java:120)
   at org.apache.shale.test.cargo.CargoTestSetup.setUp(
CargoTestSetup.java:94)
   at junit.extensions.TestSetup$1.protect(TestSetup.java:18)
   at junit.framework.TestResult.runProtected(TestResult.java:124)
   at junit.extensions.TestSetup.run(TestSetup.java:23)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at org.apache.maven.surefire.junit.JUnitTestSet.execute(
JUnitTestSet.java:210)
   at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(
AbstractDirectoryTestSuite.java:135)
   at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(
AbstractDirectoryTestSuite.java:122)
   at org.apache.maven.surefire.Surefire.run(Surefire.java:129)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(
SurefireBooter.java:225)
   at org.apache.maven.surefire.booter.SurefireBooter.main(
SurefireBooter.java:747)
Caused by: java.lang.reflect.InvocationTargetException
   at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)at sun.reflect.NativeConstructorAccessorImpl.newInstance(
NativeConstructorAccessorImpl.java:39)
   at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
DelegatingConstructorAccessorImpl.java:27)
   at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
   at
org.codehaus.cargo.generic.deployable.DefaultDeployableFactory.createInstance
(DefaultDeployableFactory.java:149)
   at
org.codehaus.cargo.generic.spi.AbstractGenericHintFactory.createImplementation
(AbstractGenericHintFactory.java:122)
   ... 20 more
Caused by: org.codehaus.cargo.container.ContainerException: Failed to parse
Tomcat WAR file in
[/home/craigmcc/Apache/shale/current/framework/shale-apps/shale-blank/target/shale-
blank.war]
   at org.codehaus.cargo.container.tomcat.TomcatWAR.(
TomcatWAR.java:54)
   ... 26 more
Caused by: org.codehaus.cargo.module.DtdParseException: Failed to parse dtd
   at org.codehaus.cargo.module.Dtd.(Dtd.java:161)
   at org.codehaus.cargo.module.webapp.tomcat.TomcatContextXml.(
TomcatContextXml.java:51)
   at
org.codehaus.cargo.module.webapp.tomcat.TomcatContextXmlIo.parseTomcatConfigXml
(TomcatContextXmlIo.java:50)
   at
org.codehaus.cargo.module.webapp.tomcat.TomcatWarArchive.parseTomcatContextXml
(TomcatWarArchive.java:105)
   at org.codehaus.cargo.module.webapp.tomcat.TomcatWarArchive.(
TomcatWarArchive.java:64)
   at org.codehaus.cargo.container.tomcat.TomcatWAR.(
TomcatWAR.java:50)
   ... 26 more
Caused by: org.xml.sax.SAXNotSupportedException: not supported setting
propertyhttp://xml.org/sax/properties/declaration-handler
   at org.gjt.xpp.sax2.Driver.setProperty(Driver.java:202)
   at org.codehaus.cargo.module.Dtd.(Dtd.java:144)
   ... 31 more
java.lang.reflect.InvocationTargetException
   at sun.reflect.NativeConstructorAccessor

Re: Previous system integration tests now failing?

2006-08-01 Thread Wendy Smoak

On 8/1/06, Craig McClanahan <[EMAIL PROTECTED]> wrote:

Somewhere in the changes over the last couple of days, the old system
integration tests on apps like shale-blank (mvn -Pitest install) have
stopped working ... I get an exception from Cargo saying it is not able to
create a deployable container.  Wendy, does this still work for you?


No problems here:

$ mvn -Pitest install
...
Running org.apache.shale.blank.systest.WelcomeTestCase
[INFO] container id: tomcat5x
[INFO] deployable: c:\svn\shale\framework\shale-apps\shale-blank/target/shale-bl
ank.war
[INFO] container home: c:\java\apache-tomcat-5.5.17
[INFO] container log: c:\svn\shale\framework\shale-apps\shale-blank/target/conta
iner.log
[INFO] container output: c:\svn\shale\framework\shale-apps\shale-blank/target/co
ntainer.output
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 29.515 sec

Results :
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0

[INFO] [install:install]
[INFO] Installing c:\svn\shale\framework\shale-apps\shale-blank\target\shale-bla
nk.war to c:\java\m2-repository\org\apache\shale\shale-blank\1.0.3-SNAPSHOT\shal
e-blank-1.0.3-SNAPSHOT.war
[INFO] 
[INFO] BUILD SUCCESSFUL
[INFO] 
[INFO] Total time: 49 seconds
[INFO] Finished at: Tue Aug 01 21:57:38 GMT-07:00 2006
[INFO] Final Memory: 8M/16M
[INFO] 

--
Wendy


Previous system integration tests now failing?

2006-08-01 Thread Craig McClanahan

Somewhere in the changes over the last couple of days, the old system
integration tests on apps like shale-blank (mvn -Pitest install) have
stopped working ... I get an exception from Cargo saying it is not able to
create a deployable container.  Wendy, does this still work for you?

Craig