RE: maven + cactus problem (Missing Cactus property [cactus.contextURL] but I have set cactus.contextURL in cactus.properties)
Hi sheep, You don't need this file if you're using the Maven plugin for Cactus. You should read http://jakarta.apache.org/cactus/integration/maven/using.html. That's all you should need. Thanks -Vincent -Original Message- From: sheep [mailto:[EMAIL PROTECTED] Sent: mercredi 1 juin 2005 05:38 To: users@maven.apache.org; cactus-user@jakarta.apache.org Subject: maven + cactus problem (Missing Cactus property [cactus.contextURL] but I have set cactus.contextURL in cactus.properties) [snip] _ Découvrez le nouveau Yahoo! Mail : 1 Go d'espace de stockage pour vos mails, photos et vidéos ! Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven + cactus problem (Missing Cactus property [cactus.contextURL] but I have set cactus.contextURL in cactus.properties)
hi.Vincent this is the point confuse me. my work environment is: eclipse + maven + cactus.but when I run maven cactus:test or maven test I get the same result .all I can see is [junit] but not [cactus]. :( - Original Message - From: Vincent Massol [EMAIL PROTECTED] To: 'Cactus Users List' cactus-user@jakarta.apache.org Sent: Wednesday, June 01, 2005 5:04 PM Subject: RE: maven + cactus problem (Missing Cactus property [cactus.contextURL] but I have set cactus.contextURL in cactus.properties) Hi sheep, You don't need this file if you're using the Maven plugin for Cactus. You should read http://jakarta.apache.org/cactus/integration/maven/using.html. That's all you should need. Thanks -Vincent -Original Message- From: sheep [mailto:[EMAIL PROTECTED] Sent: mercredi 1 juin 2005 05:38 To: users@maven.apache.org; cactus-user@jakarta.apache.org Subject: maven + cactus problem (Missing Cactus property [cactus.contextURL] but I have set cactus.contextURL in cactus.properties) [snip] _ Découvrez le nouveau Yahoo! Mail : 1 Go d'espace de stockage pour vos mails, photos et vidéos ! Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven + cactus problem (Missing Cactus property [cactus.contextURL] but I have set cactus.contextURL in cactus.properties)
hi. here is the maven cactus:test run result //-- build:start: cactus:check-plugin-dependencies: cactus:init: cactus:test: cactus:check-plugin-dependencies: cactus:init: Overriding previous definition of reference to cactus.classpath Overriding previous definition of reference to cactus.scanner.classpath cactus:init-report: java:prepare-filesystem: java:compile: [echo] Compiling to F:\sheep\workspace\test/target/classes [echo] == NOTE: Targetting JVM 1.5, classes will not run on earlier JVMs == Tag library requested that is not present: 'license' in plugin: 'maven-war-plugin-1.6.1' cactus:compile: cactus:cactifywar: war:init: war:war-resources: [copy] Copying 1 file to F:\sheep\workspace\test\target\servlet\WEB-INF java:prepare-filesystem: java:compile: [echo] Compiling to F:\sheep\workspace\test/target/classes [echo] == NOTE: Targetting JVM 1.5, classes will not run on earlier JVMs == java:jar-resources: test:prepare-filesystem: test:test-resources: test:compile: test:test: [junit] Running servlet.TestAdminServlet //sheep add start : I run maven cactus:test here it may [cactus] but [junit] //sheep add end [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 2.313 sec [junit] [ERROR] TEST servlet.TestAdminServlet FAILED BUILD FAILED File.. C:\Documents and Settings\Administrator\.maven\cache\maven-test-plugin-1.6.2\plugin.jelly Element... fail Line.. 181 Column 54 There were test failures. Total time: 14 seconds Finished at: Wed Jun 01 17:16:54 CST 2005 //-- - Original Message - From: Vincent Massol [EMAIL PROTECTED] To: 'Cactus Users List' cactus-user@jakarta.apache.org Sent: Wednesday, June 01, 2005 5:04 PM Subject: RE: maven + cactus problem (Missing Cactus property [cactus.contextURL] but I have set cactus.contextURL in cactus.properties) Hi sheep, You don't need this file if you're using the Maven plugin for Cactus. You should read http://jakarta.apache.org/cactus/integration/maven/using.html. That's all you should need. Thanks -Vincent -Original Message- From: sheep [mailto:[EMAIL PROTECTED] Sent: mercredi 1 juin 2005 05:38 To: users@maven.apache.org; cactus-user@jakarta.apache.org Subject: maven + cactus problem (Missing Cactus property [cactus.contextURL] but I have set cactus.contextURL in cactus.properties) [snip] _ Découvrez le nouveau Yahoo! Mail : 1 Go d'espace de stockage pour vos mails, photos et vidéos ! Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven + cactus problem (Missing Cactus property [cactus.contextURL] but I have set cactus.contextURL in cactus.properties)
Normal cactus perform first junit test then cactus test. So here you have junit test faillure so the cactus test are not execute. I don't remember if the maven.test.skip is use both for junit and cactus or there is a cactus.test.skip too... Nicolas, 2005/6/1, sheep [EMAIL PROTECTED]: hi. here is the maven cactus:test run result //-- build:start: cactus:check-plugin-dependencies: cactus:init: cactus:test: cactus:check-plugin-dependencies: cactus:init: Overriding previous definition of reference to cactus.classpath Overriding previous definition of reference to cactus.scanner.classpath cactus:init-report: java:prepare-filesystem: java:compile: [echo] Compiling to F:\sheep\workspace\test/target/classes [echo] == NOTE: Targetting JVM 1.5, classes will not run on earlier JVMs == Tag library requested that is not present: 'license' in plugin: 'maven-war-plugin-1.6.1' cactus:compile: cactus:cactifywar: war:init: war:war-resources: [copy] Copying 1 file to F:\sheep\workspace\test\target\servlet\WEB-INF java:prepare-filesystem: java:compile: [echo] Compiling to F:\sheep\workspace\test/target/classes [echo] == NOTE: Targetting JVM 1.5, classes will not run on earlier JVMs == java:jar-resources: test:prepare-filesystem: test:test-resources: test:compile: test:test: [junit] Running servlet.TestAdminServlet //sheep add start : I run maven cactus:test here it may [cactus] but [junit] //sheep add end [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 2.313 sec [junit] [ERROR] TEST servlet.TestAdminServlet FAILED BUILD FAILED File.. C:\Documents and Settings\Administrator\.maven\cache\maven-test-plugin-1.6.2\plugin.jelly Element... fail Line.. 181 Column 54 There were test failures. Total time: 14 seconds Finished at: Wed Jun 01 17:16:54 CST 2005 //-- - Original Message - From: Vincent Massol [EMAIL PROTECTED] To: 'Cactus Users List' cactus-user@jakarta.apache.org Sent: Wednesday, June 01, 2005 5:04 PM Subject: RE: maven + cactus problem (Missing Cactus property [cactus.contextURL] but I have set cactus.contextURL in cactus.properties) Hi sheep, You don't need this file if you're using the Maven plugin for Cactus. You should read http://jakarta.apache.org/cactus/integration/maven/using.html. That's all you should need. Thanks -Vincent -Original Message- From: sheep [mailto:[EMAIL PROTECTED] Sent: mercredi 1 juin 2005 05:38 To: users@maven.apache.org; cactus-user@jakarta.apache.org Subject: maven + cactus problem (Missing Cactus property [cactus.contextURL] but I have set cactus.contextURL in cactus.properties) [snip] _ Découvrez le nouveau Yahoo! Mail : 1 Go d'espace de stockage pour vos mails, photos et vidéos ! Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven + cactus problem (Missing Cactus property [cactus.contextURL] but I have set cactus.contextURL in cactus.properties)
Confirmation on CVS HEAD there is a cactus.test.skip property. So use in your project.properties or in command line the next setting maven.test.skip=true cactus.test.skip=false But you better have to fix your junit first as skipping them is not a good solution Nicolas 2005/6/1, Nicolas Chalumeau [EMAIL PROTECTED]: Normal cactus perform first junit test then cactus test. So here you have junit test faillure so the cactus test are not execute. I don't remember if the maven.test.skip is use both for junit and cactus or there is a cactus.test.skip too... Nicolas, - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven + cactus problem (Missing Cactus property [cactus.contextURL] but I have set cactus.contextURL in cactus.properties)
I say on cvs head ie 1.8dev. It wasn't release yet release version=1.8dev date=in CVS ... action dev=felipeal type=add issue=CACTUS-201 Goal codecactus:test/code is not executed if property codecactus.test.skip/code (and not codemaven.test.skip/code anymore) is set. /action Nicolas 2005/6/1, Samuel Crescencio [EMAIL PROTECTED]: Hello all, Yes Nicolas, maven.test.skip also skip cactus tests. Any kind of tests is skipped when maven.test.skip=true. In my case, DbUnit and JWebUnit tests are also skipped. []'s --- Samuel Crescêncio Extreme Programmer Coach - Pagamento Eletrônico Fones: +55 48 99119078 +55 48 21065698 email: [EMAIL PROTECTED] ICQ# 38035403 Nexxera Tecnologia e Serviços SA - http://www.nexxera.com Seu ambiente eletrônico de negócios --- Nicolas Chalumeau wrote: Normal cactus perform first junit test then cactus test. So here you have junit test faillure so the cactus test are not execute. I don't remember if the maven.test.skip is use both for junit and cactus or there is a cactus.test.skip too... Nicolas, 2005/6/1, sheep [EMAIL PROTECTED]: hi. here is the maven cactus:test run result //-- build:start: cactus:check-plugin-dependencies: cactus:init: cactus:test: cactus:check-plugin-dependencies: cactus:init: Overriding previous definition of reference to cactus.classpath Overriding previous definition of reference to cactus.scanner.classpath cactus:init-report: java:prepare-filesystem: java:compile: [echo] Compiling to F:\sheep\workspace\test/target/classes [echo] == NOTE: Targetting JVM 1.5, classes will not run on earlier JVMs == Tag library requested that is not present: 'license' in plugin: 'maven-war-plugin-1.6.1' cactus:compile: cactus:cactifywar: war:init: war:war-resources: [copy] Copying 1 file to F:\sheep\workspace\test\target\servlet\WEB-INF java:prepare-filesystem: java:compile: [echo] Compiling to F:\sheep\workspace\test/target/classes [echo] == NOTE: Targetting JVM 1.5, classes will not run on earlier JVMs == java:jar-resources: test:prepare-filesystem: test:test-resources: test:compile: test:test: [junit] Running servlet.TestAdminServlet //sheep add start : I run maven cactus:test here it may [cactus] but [junit] //sheep add end [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 2.313 sec [junit] [ERROR] TEST servlet.TestAdminServlet FAILED BUILD FAILED File.. C:\Documents and Settings\Administrator\.maven\cache\maven-test-plugin-1.6.2\plugin.jelly Element... fail Line.. 181 Column 54 There were test failures. Total time: 14 seconds Finished at: Wed Jun 01 17:16:54 CST 2005 //-- - Original Message - From: Vincent Massol [EMAIL PROTECTED] To: 'Cactus Users List' cactus-user@jakarta.apache.org Sent: Wednesday, June 01, 2005 5:04 PM Subject: RE: maven + cactus problem (Missing Cactus property [cactus.contextURL] but I have set cactus.contextURL in cactus.properties) Hi sheep, You don't need this file if you're using the Maven plugin for Cactus. You should read http://jakarta.apache.org/cactus/integration/maven/using.html. That's all you should need. Thanks -Vincent -Original Message- From: sheep [mailto:[EMAIL PROTECTED] Sent: mercredi 1 juin 2005 05:38 To: users@maven.apache.org; cactus-user@jakarta.apache.org Subject: maven + cactus problem (Missing Cactus property [cactus.contextURL] but I have set cactus.contextURL in cactus.properties) [snip] _ Découvrez le nouveau Yahoo! Mail : 1 Go d'espace de stockage pour vos mails, photos et vidéos ! Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail
Re: maven + cactus problem (Missing Cactus property [cactus.contextURL] but I have set cactus.contextURL in cactus.properties)
That's right, it's only on CVS. In fact, we were about to release a 1.7.1 release, but didn't have time to do so. -- Felipe On Wed, 2005-06-01 at 17:31 +0200, Nicolas Chalumeau wrote: I say on cvs head ie 1.8dev. It wasn't release yet release version=1.8dev date=in CVS ... action dev=felipeal type=add issue=CACTUS-201 Goal codecactus:test/code is not executed if property codecactus.test.skip/code (and not codemaven.test.skip/code anymore) is set. /action - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
maven + cactus problem (Missing Cactus property [cactus.contextURL] but I have set cactus.contextURL in cactus.properties)
hi. I have a problem when i do a servlet test anybody who can help me. //- maven+cactus do servlet test.but it always report miss cactus.contextURL.I put cactus.contextURL=http://localhost:8080/test in cactus.properties and System.setProperty(cactus.contextURL,http://localhost:8080/test); in Test***() method but it seem no work.what place should i placed this property. :( maybe i can put cactus.properties to other palce ? //-error message-- Testsuite: servlet.TestAdminServlet Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0.801 sec Testcase: testGetCommandOK(servlet.TestAdminServlet): Caused an ERROR Missing Cactus property [cactus.contextURL] org.apache.cactus.util.ChainedRuntimeException: Missing Cactus property [cactus.contextURL] at org.apache.cactus.internal.configuration.BaseConfiguration.getContextURL(BaseConfiguration.java:59) at org.apache.cactus.internal.configuration.AbstractWebConfiguration.getRedirectorURL_aroundBody0(AbstractWebConfiguration.java:46) at org.apache.cactus.internal.configuration.AbstractWebConfiguration.getRedirectorURL_aroundBody1$advice(AbstractWebConfiguration.java:306) at org.apache.cactus.internal.configuration.AbstractWebConfiguration.getRedirectorURL(AbstractWebConfiguration.java) at org.apache.cactus.internal.client.connector.http.DefaultHttpClient.callRunTest(DefaultHttpClient.java:159) at org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTest_aroundBody0(DefaultHttpClient.java:80) at org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTest_aroundBody1$advice(DefaultHttpClient.java:306) at org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTest(DefaultHttpClient.java) at org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.runWebTest(HttpProtocolHandler.java:159) at org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.runTest_aroundBody0(HttpProtocolHandler.java:80) at org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.runTest_aroundBody1$advice(HttpProtocolHandler.java:306) at org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.runTest(HttpProtocolHandler.java) at org.apache.cactus.internal.client.ClientTestCaseCaller.runTest(ClientTestCaseCaller.java:144) at org.apache.cactus.internal.AbstractCactusTestCase.runBareClient(AbstractCactusTestCase.java:215) at org.apache.cactus.internal.AbstractCactusTestCase.runBare(AbstractCactusTestCase.java:133) // //-my work env dir:(eclipse + maven + cactus)- .classpath .project build.properties cactus.logging.config cactus.properties logging_client.properties logging_server.properties project.properties project.xml .settings org.eclipse.jdt.core.prefs bin .project src java servlet AdminServlet.class AdminServlet.java test-cactus servlet TestAdminServlet.class TestAdminServlet.java webapp lib aspectjrt-1.2.1.jar cactus-1.7.jar cactus-ant-1.7.jar cactus.properties commons-httpclient-2.0.2.jar commons-logging-1.0.4.jar httpunit-1.6.jar jasper-compiler-4.1.30.jar jasper-runtime-4.1.30.jar junit-3.8.1.jar nekohtml-0.9.1.jar org.mortbay.jetty-4.2.17.jar servletapi-2.3.jar WEB-INF cactus-web.xml web.xml target classes servlet AdminServlet.class servlet lib aspectjrt-1.2.1.jar cactus-1.7.jar cactus-ant-1.7.jar cactus.properties commons-httpclient-2.0.2.jar commons-logging-1.0.4.jar httpunit-1.6.jar jasper-compiler-4.1.30.jar jasper-runtime-4.1.30.jar junit-3.8.1.jar nekohtml-0.9.1.jar org.mortbay.jetty-4.2.17.jar servletapi-2.3.jar WEB-INF cactus-web.xml web.xml test-cactus-classes servlet TestAdminServlet.class test-cactus-reports resin2x test-classes servlet TestAdminServlet.class test-reports TEST-servlet.TestAdminServlet.txt TEST-servlet.TestAdminServlet.xml