On 10/14/07, Mike Wille <[EMAIL PROTECTED]> wrote: > > Thanks! That definitely helped. > > Tapestry started up fine. Spring compiled correctly but choked on the web > tests for lack of commons-beanutils. I added that to the parent pom and all > worked fine after that. (On an aside, I initially used scope=test for > beanutils and that didn't work. I switched to compile and that worked. I'm > not a maven expert by any means, but that seems weired...) >
Scope = trest will prevent the jar file from finding its way into the war file which is deployed into Tomcat prior to the web tests being run. Hence the continued problems...... scope=runtime would have done the trick though. Mike Thanks again! > > -Mike > > > Matt Raible wrote: > > I believe you may have to add an explicit dependency to commons-lang > 2.3 in your root pom.xml to solve this problem. > > Matt > > On 10/13/07, Mike Wille <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> wrote: > > Hello, > > I'm trying out appfuse 2.0 and ran into some problems. I can follow > examples and everything works fine on my computer. But when I go and > install the source via mvn appfuse:full-source, nothing works after > that. I've tried this twice with each package, the first time just > experimenting and the second to make sure I can reproduce this before > reporting it to the list. I've also done it on two different > computers. Here is the exact steps I took: > > - Create a new appfuse project via the the instructions at: > http://appfuse.org/display/APF/AppFuse+QuickStart > - I tried both tapestry-modular and spring-modular > - Change to project directory, Run: "mvn" > - Everything completes without issue. > - Change to web directory. Run "mvn jetty:run-war", Verify app is working. > - Change back to project root, Run: "mvn appfuse:full-source" > - Run "mvn clean install", New exceptions are found, but says build is > successful. > - Change to web directory, Run "mvn jetty:run-war", More exceptions, app > starts up. However, access the app and the default jetty error screen > is shown. > > I'm using both spring-modular and tapestry-modular and both end up with > errors during tests and when running jetty:run-war. The funny thing is, > the tests don't report the errors! So I am able to start jetty:run-war. > > Is anyone else having this problem? Can anyone help me? Thanks in > advance! -Mike. > > > ..... > Examples of the spring-modular exceptions are: > > WARN [main] DefaultNamespaceHandlerResolver.initHandlerMappings(133) | > Ignoring namespace handler > [org.springmodules.validation.bean.conf.namespace.ValidatorNamespaceHandler]: > problem with handler class file or dependent class > java.lang.NoClassDefFoundError: Could not initialize class > org.springmodules.validation.util.LibraryUtils > at > org.springmodules.validation.bean.conf.namespace.ValidatorNamespaceHandler.init(ValidatorNamespaceHandler.java:51) > at > org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.initHandlerMappings(DefaultNamespaceHandlerResolver.java:123) > at > org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.<init>(DefaultNamespaceHandlerResolver.java:96) > at > org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.<init>(DefaultNamespaceHandlerResolver.java:82) > at > org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createDefaultNamespaceHandlerResolver(XmlBeanDefinitionReader.java:488) > at > org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createReaderContext(XmlBeanDefinitionReader.java:477) > > And > > WARN [main] DefaultNamespaceHandlerResolver.initHandlerMappings(133) | > Ignoring namespace handler > [org.springmodules.validation.bean.conf.namespace.ValidatorNamespaceHandler]: > problem with handler class file or dependent class > java.lang.NoSuchFieldError: IS_JAVA_1_6 > at > org.springmodules.validation.util.LibraryUtils.<clinit>(LibraryUtils.java:40) > at > org.springmodules.validation.bean.conf.namespace.ValidatorNamespaceHandler.init(ValidatorNamespaceHandler.java:51) > at > org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.initHandlerMappings(DefaultNamespaceHandlerResolver.java:12 > > And > > DEBUG [main] StartupListener.contextInitialized(89) | Populating > drop-downs... > 2007-10-13 15:26:04.623::WARN: Failed startup of context > [EMAIL PROTECTED]/,jar:file:/D:/dev/SpringTest/web/tar > get/SpringTest-webapp-1.0-SNAPSHOT.war!/}java.lang.ClassCastException: > $Proxy26 cannot be cast tocom.tek42.test.service.LookupManager > at > com.tek42.test.webapp.listener.StartupListener.setupContext(StartupListener.java:101) > at > com.tek42.test.webapp.listener.StartupListener.contextInitialized(StartupListener.java:92) > at > org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:530) > > For Tapestry, it is a bit different: > > [INFO] [talledLocalContainer] ERROR [http-8081-10] > HiveMindExpressionCompiler.compileExpression(227) | Error generating > OGNL statements for > expression username with root > [EMAIL > PROTECTED],enabled=false,accountExpired=false,credentialsExpired=false,accountLocked=false,Granted > Authorities: ] > [INFO] [talledLocalContainer] > org.apache.hivemind.ApplicationRuntimeException: Unable to add method > void set(ognl.OgnlContext, java.lang.Object, java.lang.Object) to class > $ASTProperty_1159b096feb: [source error] setUsername(java.lang.String) > not found in org.acegisecurity.userdetails.UserDetails > [INFO] [talledLocalContainer] at > org.apache.tapestry.enhance.ClassFabImpl.addMethod(ClassFabImpl.java:278) > > Caused By: > > [INFO] [talledLocalContainer] Caused by: > javassist.CannotCompileException: [source error] > setUsername(java.lang.String) not found in org.ace > gisecurity.userdetails.UserDetails > [INFO] [talledLocalContainer] at > javassist.CtBehavior.setBody(CtBehavior.java:347) > [INFO] [talledLocalContainer] at > javassist.CtBehavior.setBody(CtBehavior.java:316) > [INFO] [talledLocalContainer] at > org.apache.tapestry.enhance.ClassFabImpl.addMethod(ClassFabImpl.java:272) > [INFO] [talledLocalContainer] ... 166 more > [INFO] [talledLocalContainer] Caused by: compile error: > setUsername(java.lang.String) not found in > org.acegisecurity.userdetails.UserDetails > [INFO] [talledLocalContainer] at > javassist.compiler.TypeChecker.atMethodCallCore(TypeChecker.java:716) > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > >
