Re: T5.0.10 to T5.0.18 Component not found
I see that the two examples were removed because it was html. Start(1).tml.txt is the first Start(2).tml.txt the second - Kasper On Tue, 17 Feb 2009 16:03:24 +0100, kas...@nekoconeko.nl wrote: Hi, I've created a small project but I just figured out that I was still using tapestry 5.0.10 instead of the latest version. So I removed the old jars and replaced them with new ones. So far so good, I fixed the imports some other things that needed to be changed. Then I ran the application again and it gave me an unexpected error. An unexpected application exception has occurred. java.lang.ClassNotFoundException: caught an exception while obtaining a class file for nl.collection.components.Layout In t5.0.10 the template files and the class files for Layout were inside the nl.collections.components package. I've read somewhere on the mailinglist that they might need to be separated so I moved the Layout.tml file to my WebContent folder. In both ways it didn't work out. My webpage is: (Start.tml) ... insert random text here ... And there is a the Layout.tml which is basically nothing more than the most simple html file. I also tried to modify Start.tml to: ... insert random text here ... Which also didn't work out. When I edited the Start.tml to be a small html file it worked. Does anybody has a clue? - Kaspert:layout xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; ... insert random text here ... /t:layout- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: T5.0.10 to T5.0.18 Component not found
On Tue, Feb 17, 2009 at 12:03 PM, kas...@nekoconeko.nl wrote: An unexpected application exception has occurred. java.lang.ClassNotFoundException: caught an exception while obtaining a class file for nl.collection.components.Layout Please post the full stack trace. ;) It looks like your Layout class was found, but something prevented its instrumentation and loading. In t5.0.10 the template files and the class files for Layout were inside the nl.collections.components package. I've read somewhere on the mailinglist that they might need to be separated so I moved the Layout.tml file to my WebContent folder. In both ways it didn't work out. They need to be in the classpath. It doesn't matter where you put them in your sources folder as long as they are copied to the classpath. -- Thiago - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: T5.0.10 to T5.0.18 Component not found
Here is the full stacktrace. [ERROR] RequestExceptionHandler Processing of request failed with uncaught exception: java.lang.ClassNotFoundException: caught an exception while obtaining a class file for nl.collection.components.Layout org.apache.tapestry5.ioc.internal.util.TapestryException: java.lang.ClassNotFoundException: caught an exception while obtaining a class file for nl.collection.components.Layout [at context:Start.tml, line 1, column 74] at org.apache.tapestry5.internal.services.PageElementFactoryImpl.newComponentElement(PageElementFactoryImpl.java:239) at $PageElementFactory_11f84ccb159.newComponentElement($PageElementFactory_11f84ccb159.java) at org.apache.tapestry5.internal.services.PageLoaderProcessor.startComponent(PageLoaderProcessor.java:683) at org.apache.tapestry5.internal.services.PageLoaderProcessor.loadTemplateForComponent(PageLoaderProcessor.java:499) at org.apache.tapestry5.internal.services.PageLoaderProcessor.workComponentQueue(PageLoaderProcessor.java:834) at org.apache.tapestry5.internal.services.PageLoaderProcessor.loadPage(PageLoaderProcessor.java:392) at org.apache.tapestry5.internal.services.PageLoaderImpl.loadPage(PageLoaderImpl.java:59) at $PageLoader_11f84ccb157.loadPage($PageLoader_11f84ccb157.java) at org.apache.tapestry5.internal.services.PagePoolCache.checkout(PagePoolCache.java:210) at org.apache.tapestry5.internal.services.PagePoolImpl.checkout(PagePoolImpl.java:99) at $PagePool_11f84ccb156.checkout($PagePool_11f84ccb156.java) at org.apache.tapestry5.internal.services.RequestPageCacheImpl.get(RequestPageCacheImpl.java:51) at $RequestPageCache_11f84ccb155.get($RequestPageCache_11f84ccb155.java) at $RequestPageCache_11f84ccb14d.get($RequestPageCache_11f84ccb14d.java) at org.apache.tapestry5.internal.services.RequestSecurityManagerImpl.checkForInsecureRequest(RequestSecurityManagerImpl.java:59) at $RequestSecurityManager_11f84ccb14c.checkForInsecureRequest($RequestSecurityManager_11f84ccb14c.java) at org.apache.tapestry5.services.TapestryModule$35.handle(TapestryModule.java:1777) at $PageRenderRequestHandler_11f84ccb150.handle($PageRenderRequestHandler_11f84ccb150.java) at $PageRenderRequestHandler_11f84ccb145.handle($PageRenderRequestHandler_11f84ccb145.java) at org.apache.tapestry5.internal.services.RootPathDispatcher.dispatch(RootPathDispatcher.java:61) at $Dispatcher_11f84ccb14b.dispatch($Dispatcher_11f84ccb14b.java) at $Dispatcher_11f84ccb13e.dispatch($Dispatcher_11f84ccb13e.java) at org.apache.tapestry5.services.TapestryModule$17.service(TapestryModule.java:1029) at org.apache.tapestry5.internal.services.LocalizationFilter.service(LocalizationFilter.java:42) at $RequestHandler_11f84ccb13f.service($RequestHandler_11f84ccb13f.java) at org.apache.tapestry5.internal.services.RequestErrorFilter.service(RequestErrorFilter.java:26) at $RequestHandler_11f84ccb13f.service($RequestHandler_11f84ccb13f.java) at org.apache.tapestry5.services.TapestryModule$3.service(TapestryModule.java:621) at $RequestHandler_11f84ccb13f.service($RequestHandler_11f84ccb13f.java) at org.apache.tapestry5.services.TapestryModule$2.service(TapestryModule.java:611) at $RequestHandler_11f84ccb13f.service($RequestHandler_11f84ccb13f.java) at org.apache.tapestry5.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:85) at $RequestHandler_11f84ccb13f.service($RequestHandler_11f84ccb13f.java) at org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:93) at org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:84) at org.apache.tapestry5.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java:83) at org.apache.tapestry5.internal.services.CheckForUpdatesFilter.service(CheckForUpdatesFilter.java:106) at $RequestHandler_11f84ccb13f.service($RequestHandler_11f84ccb13f.java) at $RequestHandler_11f84ccb136.service($RequestHandler_11f84ccb136.java) at org.apache.tapestry5.services.TapestryModule$16.service(TapestryModule.java:1007) at org.apache.tapestry5.internal.services.IgnoredPathsFilter.service(IgnoredPathsFilter.java:62) at $HttpServletRequestFilter_11f84ccb135.service($HttpServletRequestFilter_11f84ccb135.java) at $HttpServletRequestHandler_11f84ccb137.service($HttpServletRequestHandler_11f84ccb137.java) at $HttpServletRequestHandler_11f84ccb134.service($HttpServletRequestHandler_11f84ccb134.java) at org.apache.tapestry5.TapestryFilter.doFilter(TapestryFilter.java:179) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at
Re: T5.0.10 to T5.0.18 Component not found
On Tue, Feb 17, 2009 at 12:16 PM, kas...@nekoconeko.nl wrote: Caused by: java.lang.ClassNotFoundException: org.apache.tapestry.annotations.IncludeStylesheet Here's the problem: the IncludeStylesheet annotation was not found. Make sure you have tapestry-annotations-5.0.18 in your webapp classpath. -- Thiago - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: T5.0.10 to T5.0.18 Component not found
Thanks, I see now that I somehow managed to remove all tapestry libs without really having troubles during the programming. Anyhow, this works. - Kasper On Tue, 17 Feb 2009 12:20:34 -0300, Thiago H. de Paula Figueiredo thiag...@gmail.com wrote: On Tue, Feb 17, 2009 at 12:16 PM, kas...@nekoconeko.nl wrote: Caused by: java.lang.ClassNotFoundException: org.apache.tapestry.annotations.IncludeStylesheet Here's the problem: the IncludeStylesheet annotation was not found. Make sure you have tapestry-annotations-5.0.18 in your webapp classpath. -- Thiago - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org