Re: Shale Build Error - Lifecycle class not found
I got no directory ~/.m2/repository/org/apache/myfaces Output of mvn -X install: http://fachschaft.imn.htwk-leipzig.de/~tkrah/mvn.out.gz Maven does not want to download anything extra, although myfaces is missing. Deleted .m2 already but myfaces does not get fetched. Torsten Am Donnerstag, den 12.04.2007, 20:28 -0700 schrieb Craig McClanahan: On 4/12/07, Torsten Krah [EMAIL PROTECTED] wrote: cd ~/Development/src/shale-parent - top lvl directory of svn checkout mvn clean install Whats interesting is - it seams the complete jsf spec api is not found. Searching ~/.m2 for a myfaces api i got: Nothing ... Hmm ... for me, it's in: ~/.m2/repository/org/apache/myfaces/core/myfaces-api The build defaults to version 1.1.4 of this artifact. This was downloaded initially from the standard Maven public repository. One thing you might try is using the -X option on your mvn command. It will create a very copious amount of debugging output, including which dependencies it thinks you need, and which repositories it is searching for them. (I also presume that you're connected to the Internet when running your build, so that new dependencies can be downloaded automatically.) Craig Have i have to provide it myself anywhere - thought maven would fetch it if needed. Torsten Am Mittwoch, den 11.04.2007, 13:34 -0700 schrieb Craig McClanahan: Hmm ... building the current trunk code (with Maven 2.0.4) works for me when I do the following: cd /framework -- top level directory of my SVN checkout mvn clean install Could you describe a little more about what commands you used to initiate the build that is breaking like this? Craig On 4/10/07, Torsten Krah [EMAIL PROTECTED] wrote: Trying to build latest SVN Snapshot, i get: [INFO] Surefire report directory: /home/tkrah/Development/src/shale-parent/shale-test/target/surefire-reports org.apache.maven.surefire.booter.SurefireExecutionException: javax/faces/lifecycle/Lifecycle; nested exception is java.lang.NoClassDefFoundError: javax/faces/lifecycle/Lifecycle java.lang.NoClassDefFoundError: javax/faces/lifecycle/Lifecycle at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2427) at java.lang.Class.getMethod0(Class.java:2670) at java.lang.Class.getMethod(Class.java:1603) at org.apache.maven.surefire.junit.JUnitTestSet.createInstanceFromSuiteMethod(JUnitTestSet.java:176) at org.apache.maven.surefire.junit.JUnitTestSet.constructTestObject(JUnitTestSet.java:140) at org.apache.maven.surefire.junit.JUnitTestSet.getTestCount(JUnitTestSet.java:247) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.locateTestSets(AbstractDirectoryTestSuite.java:104) at org.apache.maven.surefire.Surefire.createSuiteFromDefinition(Surefire.java:150) at org.apache.maven.surefire.Surefire.run(Surefire.java:111) 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:597) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818) [INFO] [ERROR] BUILD FAILURE [INFO] Can anyone confirm this or is my maven broken again? Torsten smime.p7s Description: S/MIME cryptographic signature
SAXParseException in clay-config.xml
Hi, I'm building a webapp that uses maven to include several other different resources, one of these resources has a reference to shale-clay 1.0.3, until recently this has not been a problem. Today i upgraded to springframework 1.2.8 (previously used 1.2.6.), and now when I start the appserver (Weblogic 8.1.4) i am getting a SAXParseException in shale-clay. The problem i have is that i am not actively using clay in my application, so i hve not defined any clay configuration of my own, and its the default implementation in shale-clay-1.0.3.jar.. Has anyone got any idea how to fis this?? Regards /Johan [Stacktrace] ..WEB-INF/lib/shale-clay-1.0.3.jar!/META-INF/clay-config.xml. 2007-apr-13 14:25:00 org.apache.commons.digester.Digester error ALLVARLIG: Parse Error at line 28 column 19: Element type description must be declared. org.xml.sax.SAXParseException: Element type description must be declared. at weblogic.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:232) at weblogic.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:173) at weblogic.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:371) at weblogic.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:305) at weblogic.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(XMLDTDValidator.java:1833) at weblogic.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java:724) at weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.ja va:759) at weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFrag mentScannerImpl.java:1477) at weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:3 29) at weblogic.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525) at weblogic.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581) at weblogic.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152) at weblogic.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1175) at weblogic.xml.jaxp.WebLogicXMLReader.parse(WebLogicXMLReader.java:135) at weblogic.xml.jaxp.RegistryXMLReader.parse(RegistryXMLReader.java:152) at org.apache.commons.digester.Digester.parse(Digester.java:1572) at org.apache.shale.clay.config.ClayXmlParser.loadConfigFile(ClayXmlParser.java:164) at org.apache.shale.clay.config.beans.ComponentConfigBean$WatchDog.refresh(ComponentConfigBean.java:1122) at org.apache.shale.clay.config.beans.ComponentConfigBean.loadConfigFiles(ComponentConfigBean.java:182) at org.apache.shale.clay.config.beans.ComponentConfigBean.init(ComponentConfigBean.java:142) at org.apache.shale.clay.config.ClayConfigureListener.contextInitialized(ClayConfigureListener.java:82) at weblogic.servlet.internal.WebAppServletContext$FireContextListenerAction.run(WebAppServletContext.java:6781) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121) at weblogic.servlet.internal.WebAppServletContext.notifyCreated(WebAppServletContext.java:1681) at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:3255) at weblogic.servlet.internal.WebAppServletContext.setStarted(WebAppServletContext.java:5949) at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:862) at weblogic.j2ee.J2EEApplicationContainer.start(J2EEApplicationContainer.java:2127) at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:2168) at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:2115) at weblogic.management.deploy.slave.SlaveDeployer$Application.setActivation(SlaveDeployer.java:3082) at weblogic.management.deploy.slave.SlaveDeployer.setActivationStateForAllApplications(SlaveDeployer.java:1751) at weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.java:359) at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resume(DeploymentManagerServerLifeCycleImpl.j ava:229) at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:131) at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:966) at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:361) at weblogic.Server.main(Server.java:32) 2007-apr-13 14:25:00 org.apache.commons.digester.Digester error ALLVARLIG: Parse Error at line 29 column 15: The content of element type component must match (attributes?,symbols?,c onverter?,validator*,actionListener*,valueChangeListener*,element*).
SV: SAXParseException in clay-config.xml
Hi Could you post the clay-config.xml content around lines 25-35, that is in the shale-clay-1.0.3.jar file Hermod -Opprinnelig melding- Fra: jelmstrom [mailto:[EMAIL PROTECTED] Sendt: 13. april 2007 14:41 Til: [EMAIL PROTECTED] Emne: SAXParseException in clay-config.xml Hi, I'm building a webapp that uses maven to include several other different resources, one of these resources has a reference to shale-clay 1.0.3, until recently this has not been a problem. Today i upgraded to springframework 1.2.8 (previously used 1.2.6.), and now when I start the appserver (Weblogic 8.1.4) i am getting a SAXParseException in shale-clay. The problem i have is that i am not actively using clay in my application, so i hve not defined any clay configuration of my own, and its the default implementation in shale-clay-1.0.3.jar.. Has anyone got any idea how to fis this?? Regards /Johan [Stacktrace] ..WEB-INF/lib/shale-clay-1.0.3.jar!/META-INF/clay-config.xml. 2007-apr-13 14:25:00 org.apache.commons.digester.Digester error ALLVARLIG: Parse Error at line 28 column 19: Element type description must be declared. org.xml.sax.SAXParseException: Element type description must be declared. at weblogic.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Erro rHandlerWrapper.java:232) at weblogic.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.ja va:173) at weblogic.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.ja va:371) at weblogic.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.ja va:305) at weblogic.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(XMLDTDVal idator.java:1833) at weblogic.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator .java:724) at weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement( XMLDocumentFragmentScannerImpl.ja va:759) at weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDi spatcher.dispatch(XMLDocumentFrag mentScannerImpl.java:1477) at weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLD ocumentFragmentScannerImpl.java:3 29) at weblogic.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java: 525) at weblogic.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java: 581) at weblogic.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152) at weblogic.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.jav a:1175) at weblogic.xml.jaxp.WebLogicXMLReader.parse(WebLogicXMLReader.java:135) at weblogic.xml.jaxp.RegistryXMLReader.parse(RegistryXMLReader.java:152) at org.apache.commons.digester.Digester.parse(Digester.java:1572) at org.apache.shale.clay.config.ClayXmlParser.loadConfigFile(ClayXmlParser.java :164) at org.apache.shale.clay.config.beans.ComponentConfigBean$WatchDog.refresh(Comp onentConfigBean.java:1122) at org.apache.shale.clay.config.beans.ComponentConfigBean.loadConfigFiles(Compo nentConfigBean.java:182) at org.apache.shale.clay.config.beans.ComponentConfigBean.init(ComponentConfigB ean.java:142) at org.apache.shale.clay.config.ClayConfigureListener.contextInitialized(ClayCo nfigureListener.java:82) at weblogic.servlet.internal.WebAppServletContext$FireContextListenerAction.run (WebAppServletContext.java:6781) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubjec t.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121) at weblogic.servlet.internal.WebAppServletContext.notifyCreated(WebAppServletCo ntext.java:1681) at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServle tContext.java:3255) at weblogic.servlet.internal.WebAppServletContext.setStarted(WebAppServletConte xt.java:5949) at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:862) at weblogic.j2ee.J2EEApplicationContainer.start(J2EEApplicationContainer.java:2 127) at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.jav a:2168) at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.jav a:2115) at weblogic.management.deploy.slave.SlaveDeployer$Application.setActivation(Sla veDeployer.java:3082) at weblogic.management.deploy.slave.SlaveDeployer.setActivationStateForAllAppli cations(SlaveDeployer.java:1751) at weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.java:359 ) at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resume(Deplo ymentManagerServerLifeCycleImpl.j ava:229) at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:131) at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:966) at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:361) at
SV: Shale Build Error - Lifecycle class not found
Hi Have you tried the mvn -U clean install? -U forces update. Also: Are you using a maven-proxy by chance? Hermod -Opprinnelig melding- Fra: Torsten Krah [mailto:[EMAIL PROTECTED] Sendt: 13. april 2007 10:12 Til: [EMAIL PROTECTED] Emne: Re: Shale Build Error - Lifecycle class not found I got no directory ~/.m2/repository/org/apache/myfaces Output of mvn -X install: http://fachschaft.imn.htwk-leipzig.de/~tkrah/mvn.out.gz Maven does not want to download anything extra, although myfaces is missing. Deleted .m2 already but myfaces does not get fetched. Torsten Am Donnerstag, den 12.04.2007, 20:28 -0700 schrieb Craig McClanahan: On 4/12/07, Torsten Krah [EMAIL PROTECTED] wrote: cd ~/Development/src/shale-parent - top lvl directory of svn checkout mvn clean install Whats interesting is - it seams the complete jsf spec api is not found. Searching ~/.m2 for a myfaces api i got: Nothing ... Hmm ... for me, it's in: ~/.m2/repository/org/apache/myfaces/core/myfaces-api The build defaults to version 1.1.4 of this artifact. This was downloaded initially from the standard Maven public repository. One thing you might try is using the -X option on your mvn command. It will create a very copious amount of debugging output, including which dependencies it thinks you need, and which repositories it is searching for them. (I also presume that you're connected to the Internet when running your build, so that new dependencies can be downloaded automatically.) Craig Have i have to provide it myself anywhere - thought maven would fetch it if needed. Torsten Am Mittwoch, den 11.04.2007, 13:34 -0700 schrieb Craig McClanahan: Hmm ... building the current trunk code (with Maven 2.0.4) works for me when I do the following: cd /framework -- top level directory of my SVN checkout mvn clean install Could you describe a little more about what commands you used to initiate the build that is breaking like this? Craig On 4/10/07, Torsten Krah [EMAIL PROTECTED] wrote: Trying to build latest SVN Snapshot, i get: [INFO] Surefire report directory: /home/tkrah/Development/src/shale-parent/shale-test/target/surefire-reports org.apache.maven.surefire.booter.SurefireExecutionException: javax/faces/lifecycle/Lifecycle; nested exception is java.lang.NoClassDefFoundError: javax/faces/lifecycle/Lifecycle java.lang.NoClassDefFoundError: javax/faces/lifecycle/Lifecycle at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2427) at java.lang.Class.getMethod0(Class.java:2670) at java.lang.Class.getMethod(Class.java:1603) at org.apache.maven.surefire.junit.JUnitTestSet.createInstanceFromSuiteMethod(J UnitTestSet.java:176) at org.apache.maven.surefire.junit.JUnitTestSet.constructTestObject(JUnitTestSe t.java:140) at org.apache.maven.surefire.junit.JUnitTestSet.getTestCount(JUnitTestSet.java: 247) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.locateTestSets(Ab stractDirectoryTestSuite.java:104) at org.apache.maven.surefire.Surefire.createSuiteFromDefinition(Surefire.java:1 50) at org.apache.maven.surefire.Surefire.run(Surefire.java:111) 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:597) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireB ooter.java:290) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818 ) [INFO] [ERROR] BUILD FAILURE [INFO] Can anyone confirm this or is my maven broken again? Torsten
Re: SV: Shale Build Error - Lifecycle class not found
Yet i did the -U switch, but this should be the same like removing .m2 and let it recreate by mvn install. No i dont use a http proxy - direct connection. I dont know how to use a maven-proxy, dont know what it is - all i did is checkout the svn repository and mvn clean install. Torsten Am Freitag, den 13.04.2007, 15:42 +0200 schrieb Hermod Opstvedt: Hi Have you tried the mvn -U clean install? -U forces update. Also: Are you using a maven-proxy by chance? Hermod -Opprinnelig melding- Fra: Torsten Krah [mailto:[EMAIL PROTECTED] Sendt: 13. april 2007 10:12 Til: [EMAIL PROTECTED] Emne: Re: Shale Build Error - Lifecycle class not found I got no directory ~/.m2/repository/org/apache/myfaces Output of mvn -X install: http://fachschaft.imn.htwk-leipzig.de/~tkrah/mvn.out.gz Maven does not want to download anything extra, although myfaces is missing. Deleted .m2 already but myfaces does not get fetched. Torsten Am Donnerstag, den 12.04.2007, 20:28 -0700 schrieb Craig McClanahan: On 4/12/07, Torsten Krah [EMAIL PROTECTED] wrote: cd ~/Development/src/shale-parent - top lvl directory of svn checkout mvn clean install Whats interesting is - it seams the complete jsf spec api is not found. Searching ~/.m2 for a myfaces api i got: Nothing ... Hmm ... for me, it's in: ~/.m2/repository/org/apache/myfaces/core/myfaces-api The build defaults to version 1.1.4 of this artifact. This was downloaded initially from the standard Maven public repository. One thing you might try is using the -X option on your mvn command. It will create a very copious amount of debugging output, including which dependencies it thinks you need, and which repositories it is searching for them. (I also presume that you're connected to the Internet when running your build, so that new dependencies can be downloaded automatically.) Craig Have i have to provide it myself anywhere - thought maven would fetch it if needed. Torsten Am Mittwoch, den 11.04.2007, 13:34 -0700 schrieb Craig McClanahan: Hmm ... building the current trunk code (with Maven 2.0.4) works for me when I do the following: cd /framework -- top level directory of my SVN checkout mvn clean install Could you describe a little more about what commands you used to initiate the build that is breaking like this? Craig On 4/10/07, Torsten Krah [EMAIL PROTECTED] wrote: Trying to build latest SVN Snapshot, i get: [INFO] Surefire report directory: /home/tkrah/Development/src/shale-parent/shale-test/target/surefire-reports org.apache.maven.surefire.booter.SurefireExecutionException: javax/faces/lifecycle/Lifecycle; nested exception is java.lang.NoClassDefFoundError: javax/faces/lifecycle/Lifecycle java.lang.NoClassDefFoundError: javax/faces/lifecycle/Lifecycle at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2427) at java.lang.Class.getMethod0(Class.java:2670) at java.lang.Class.getMethod(Class.java:1603) at org.apache.maven.surefire.junit.JUnitTestSet.createInstanceFromSuiteMethod(J UnitTestSet.java:176) at org.apache.maven.surefire.junit.JUnitTestSet.constructTestObject(JUnitTestSe t.java:140) at org.apache.maven.surefire.junit.JUnitTestSet.getTestCount(JUnitTestSet.java: 247) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.locateTestSets(Ab stractDirectoryTestSuite.java:104) at org.apache.maven.surefire.Surefire.createSuiteFromDefinition(Surefire.java:1 50) at org.apache.maven.surefire.Surefire.run(Surefire.java:111) 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:597) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireB ooter.java:290) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818 ) [INFO] [ERROR] BUILD FAILURE [INFO] Can anyone confirm this or is my maven broken again? Torsten smime.p7s Description: S/MIME cryptographic signature
Re: SV: Shale Build Error - Lifecycle class not found
On 4/13/07, Torsten Krah [EMAIL PROTECTED] wrote: Yet i did the -U switch, but this should be the same like removing .m2 and let it recreate by mvn install. No i dont use a http proxy - direct connection. I dont know how to use a maven-proxy, dont know what it is - all i did is checkout the svn repository and mvn clean install. Well, this one is definitely a mystery ... according to the -X output you posted (thanks for that!) it appears that none of the profiles which trigger inclusion of the JSF API classes are getting triggered on your build of shale-test. Those profiles are activated by either compiling under a 1.4 or a 1.5 JDK, which will pick MyFaces (for JSF 1.1) or the RI (for JSF 1.2), respectively. You wouldn't happen to be trying to compile under 1.6, would you? I suspect the current build scripts will not work in that case. Craig Torsten Am Freitag, den 13.04.2007, 15:42 +0200 schrieb Hermod Opstvedt: Hi Have you tried the mvn -U clean install? -U forces update. Also: Are you using a maven-proxy by chance? Hermod -Opprinnelig melding- Fra: Torsten Krah [mailto:[EMAIL PROTECTED] Sendt: 13. april 2007 10:12 Til: [EMAIL PROTECTED] Emne: Re: Shale Build Error - Lifecycle class not found I got no directory ~/.m2/repository/org/apache/myfaces Output of mvn -X install: http://fachschaft.imn.htwk-leipzig.de/~tkrah/mvn.out.gz Maven does not want to download anything extra, although myfaces is missing. Deleted .m2 already but myfaces does not get fetched. Torsten Am Donnerstag, den 12.04.2007, 20:28 -0700 schrieb Craig McClanahan: On 4/12/07, Torsten Krah [EMAIL PROTECTED] wrote: cd ~/Development/src/shale-parent - top lvl directory of svn checkout mvn clean install Whats interesting is - it seams the complete jsf spec api is not found. Searching ~/.m2 for a myfaces api i got: Nothing ... Hmm ... for me, it's in: ~/.m2/repository/org/apache/myfaces/core/myfaces-api The build defaults to version 1.1.4 of this artifact. This was downloaded initially from the standard Maven public repository. One thing you might try is using the -X option on your mvn command. It will create a very copious amount of debugging output, including which dependencies it thinks you need, and which repositories it is searching for them. (I also presume that you're connected to the Internet when running your build, so that new dependencies can be downloaded automatically.) Craig Have i have to provide it myself anywhere - thought maven would fetch it if needed. Torsten Am Mittwoch, den 11.04.2007, 13:34 -0700 schrieb Craig McClanahan: Hmm ... building the current trunk code (with Maven 2.0.4) works for me when I do the following: cd /framework -- top level directory of my SVN checkout mvn clean install Could you describe a little more about what commands you used to initiate the build that is breaking like this? Craig On 4/10/07, Torsten Krah [EMAIL PROTECTED] wrote: Trying to build latest SVN Snapshot, i get: [INFO] Surefire report directory: /home/tkrah/Development/src/shale-parent/shale-test/target/surefire-reports org.apache.maven.surefire.booter.SurefireExecutionException: javax/faces/lifecycle/Lifecycle; nested exception is java.lang.NoClassDefFoundError: javax/faces/lifecycle/Lifecycle java.lang.NoClassDefFoundError: javax/faces/lifecycle/Lifecycle at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2427) at java.lang.Class.getMethod0(Class.java:2670) at java.lang.Class.getMethod(Class.java:1603) at org.apache.maven.surefire.junit.JUnitTestSet.createInstanceFromSuiteMethod(J UnitTestSet.java:176) at org.apache.maven.surefire.junit.JUnitTestSet.constructTestObject(JUnitTestSe t.java:140) at org.apache.maven.surefire.junit.JUnitTestSet.getTestCount(JUnitTestSet.java: 247) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.locateTestSets(Ab stractDirectoryTestSuite.java:104) at org.apache.maven.surefire.Surefire.createSuiteFromDefinition(Surefire.java:1 50) at org.apache.maven.surefire.Surefire.run(Surefire.java:111) 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:597) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireB ooter.java:290) at
componentType=override
I am trying to use the updateActionListener from Tomahawk, using Hermods tomahawk 1.1.5 Snapshot xml for clay. But i get this exception: [181892007-04-13 18:33:17,488](org.apache.myfaces.application.ApplicationImpl)**ERROR**{org.apache.myfaces.application.ApplicationImpl.createComponent:391} User: -Undefined component type override [181982007-04-13 18:33:17,497](org.apache.shale.clay.component.chain.CreateComponentCommand)**ERROR**{org.apache.shale.clay.component.chain.CreateComponentCommand.execute:166} User: -Cannot create Component renderId=464 jsfid=t:updateActionListener componentType=override extends=t:updateActionListener allowBody=null facetName=null javax.faces.FacesException: Undefined component type override Hm according to the shale clay page, this componentType should be possible. Whats missing here? Torsten smime.p7s Description: S/MIME cryptographic signature
SV: componentType=override
Hi I don't think that you can redefine the t:updateActionListener in this way You are naming the component: t:updateActionListener, but also extending it. Try and give it a unique name Hermod -Opprinnelig melding- Fra: Torsten Krah [mailto:[EMAIL PROTECTED] Sendt: 13. april 2007 18:40 Til: [EMAIL PROTECTED] Emne: componentType=override I am trying to use the updateActionListener from Tomahawk, using Hermods tomahawk 1.1.5 Snapshot xml for clay. But i get this exception: [181892007-04-13 18:33:17,488](org.apache.myfaces.application.ApplicationImpl)**ERROR**{org.a pache.myfaces.application.ApplicationImpl.createComponent:391} User: -Undefined component type override [181982007-04-13 18:33:17,497](org.apache.shale.clay.component.chain.CreateComponentCommand)* *ERROR**{org.apache.shale.clay.component.chain.CreateComponentCommand.execut e:166} User: -Cannot create Component renderId=464 jsfid=t:updateActionListener componentType=override extends=t:updateActionListener allowBody=null facetName=null javax.faces.FacesException: Undefined component type override Hm according to the shale clay page, this componentType should be possible. Whats missing here? Torsten
componentType=override
I am trying to use the updateActionListener from Tomahawk, using Hermods tomahawk 1.1.5 Snapshot xml for clay. But i get this exception: [181892007-04-13 18:33:17,488](org.apache.myfaces.application.ApplicationImpl)**ERROR**{org.apach e.myfaces.application.ApplicationImpl.createComponent:391} User: -Undefined component type override [181982007-04-13 18:33:17,497](org.apache.shale.clay.component.chain.CreateComponentCommand)**ERR OR**{org.apache.shale.clay.component.chain.CreateComponentCommand.execute:166} User: -Cannot create Component renderId=464 jsfid=t:updateActionListener componentType=override extends=t:updateActionListener allowBody=null facetName=null javax.faces.FacesException: Undefined component type override Hm according to the shale clay page, this componentType should be possible. Whats missing here? You need to define the listener as a top-level component setting the component type to the fully qualified path to the action listener. component jsfid=t:updateActionListener componentType=org.apache.myfaces.custom.updateactionlistener.UpdateActionListener .. ... /component... However, this won't work without further customizations because this action listener is statefull and has special value binding attributes. The JSP tag has to do some special processing [1]. You will need to create a custom handler to create the listener. There is an example in the sandbox for the Trinidad version of the same thing. First you will need to add a commons chains config file to the WEB-INF folder of your web app [2]. Add a catalog with the name clayCustomizations. Add a chain with the name of preprocessAddActionListener the the catalog. catalog name=clayCustomization chain name=preprocessAddActionListener command className=acme.tomahawk.CreateActionListenerCommand / /chain /catalog Next, create a commons chains command extending org.apache.shale.clay.component.chain.CreateActionListenerCommand. Add the extra logic to handle the special attributes [3]. [1] http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/updateactionlistener/UpdateActionListenerTag.java?view=markup [2] http://svn.apache.org/viewvc/shale/sandbox/shale-clay-trinidad/src/main/webapp/WEB-INF/chain-config.xml?view=markup [3] http://svn.apache.org/viewvc/shale/sandbox/shale-clay-trinidad/src/main/java/org/apache/shale/clay/component/chain/trinidad/CreateActionListenerCommand.java?view=markup Torsten Gary
Re: SV: Shale Build Error - Lifecycle class not found
On 4/13/07, Torsten Krah [EMAIL PROTECTED] wrote: ARGL - you got it, shame on me. Changed my gentoo java profile to use 1.6 as default a few weeks ago. Thats it. Thx. Sorry for the noise on the list about this. Actually, thank you for being persistent in helping us figure this out! I'll file an issue on this so we can get it addressed. Craig Torsten Am Freitag, den 13.04.2007, 09:13 -0700 schrieb Craig McClanahan: On 4/13/07, Torsten Krah [EMAIL PROTECTED] wrote: Yet i did the -U switch, but this should be the same like removing .m2 and let it recreate by mvn install. No i dont use a http proxy - direct connection. I dont know how to use a maven-proxy, dont know what it is - all i did is checkout the svn repository and mvn clean install. Well, this one is definitely a mystery ... according to the -X output you posted (thanks for that!) it appears that none of the profiles which trigger inclusion of the JSF API classes are getting triggered on your build of shale-test. Those profiles are activated by either compiling under a 1.4 or a 1.5 JDK, which will pick MyFaces (for JSF 1.1) or the RI (for JSF 1.2), respectively. You wouldn't happen to be trying to compile under 1.6, would you? I suspect the current build scripts will not work in that case. Craig Torsten Am Freitag, den 13.04.2007, 15:42 +0200 schrieb Hermod Opstvedt: Hi Have you tried the mvn -U clean install? -U forces update. Also: Are you using a maven-proxy by chance? Hermod -Opprinnelig melding- Fra: Torsten Krah [mailto:[EMAIL PROTECTED] Sendt: 13. april 2007 10:12 Til: [EMAIL PROTECTED] Emne: Re: Shale Build Error - Lifecycle class not found I got no directory ~/.m2/repository/org/apache/myfaces Output of mvn -X install: http://fachschaft.imn.htwk-leipzig.de/~tkrah/mvn.out.gz Maven does not want to download anything extra, although myfaces is missing. Deleted .m2 already but myfaces does not get fetched. Torsten Am Donnerstag, den 12.04.2007, 20:28 -0700 schrieb Craig McClanahan: On 4/12/07, Torsten Krah [EMAIL PROTECTED] wrote: cd ~/Development/src/shale-parent - top lvl directory of svn checkout mvn clean install Whats interesting is - it seams the complete jsf spec api is not found. Searching ~/.m2 for a myfaces api i got: Nothing ... Hmm ... for me, it's in: ~/.m2/repository/org/apache/myfaces/core/myfaces-api The build defaults to version 1.1.4 of this artifact. This was downloaded initially from the standard Maven public repository. One thing you might try is using the -X option on your mvn command. It will create a very copious amount of debugging output, including which dependencies it thinks you need, and which repositories it is searching for them. (I also presume that you're connected to the Internet when running your build, so that new dependencies can be downloaded automatically.) Craig Have i have to provide it myself anywhere - thought maven would fetch it if needed. Torsten Am Mittwoch, den 11.04.2007, 13:34 -0700 schrieb Craig McClanahan: Hmm ... building the current trunk code (with Maven 2.0.4) works for me when I do the following: cd /framework -- top level directory of my SVN checkout mvn clean install Could you describe a little more about what commands you used to initiate the build that is breaking like this? Craig On 4/10/07, Torsten Krah [EMAIL PROTECTED] wrote: Trying to build latest SVN Snapshot, i get: [INFO] Surefire report directory: /home/tkrah/Development/src/shale-parent/shale-test/target/surefire-reports org.apache.maven.surefire.booter.SurefireExecutionException: javax/faces/lifecycle/Lifecycle; nested exception is java.lang.NoClassDefFoundError: javax/faces/lifecycle/Lifecycle java.lang.NoClassDefFoundError: javax/faces/lifecycle/Lifecycle at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2427) at java.lang.Class.getMethod0(Class.java:2670) at java.lang.Class.getMethod(Class.java:1603) at org.apache.maven.surefire.junit.JUnitTestSet.createInstanceFromSuiteMethod(J UnitTestSet.java:176) at org.apache.maven.surefire.junit.JUnitTestSet.constructTestObject(JUnitTestSe t.java:140) at org.apache.maven.surefire.junit.JUnitTestSet.getTestCount(JUnitTestSet.java: 247) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.locateTestSets(Ab stractDirectoryTestSuite.java:104) at