You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by ka...@nekoconeko.nl on 2009/02/17 16:03:24 UTC

T5.0.10 to T5.0.18 Component not found


 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?  

 - Kasper  

Re: T5.0.10 to T5.0.18 Component not found

Posted by ka...@nekoconeko.nl.
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"
<th...@gmail.com> wrote:
> On Tue, Feb 17, 2009 at 12:16 PM,  <ka...@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-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: T5.0.10 to T5.0.18 Component not found

Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
On Tue, Feb 17, 2009 at 12:16 PM,  <ka...@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-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: T5.0.10 to T5.0.18 Component not found

Posted by ka...@nekoconeko.nl.
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
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
	at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
	at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
	at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException:
caught an exception while obtaining a class file for
nl.collection.components.Layout
	at
org.apache.tapestry5.internal.services.ComponentInstantiatorSourceImpl.findClass(ComponentInstantiatorSourceImpl.java:296)
	at
org.apache.tapestry5.internal.services.ComponentInstantiatorSourceImpl.findInstantiator(ComponentInstantiatorSourceImpl.java:272)
	at
$ComponentInstantiatorSource_11f84ccb123.findInstantiator($ComponentInstantiatorSource_11f84ccb123.java)
	at
org.apache.tapestry5.internal.services.PageElementFactoryImpl.newComponentElement(PageElementFactoryImpl.java:216)
	... 56 more
Caused by: java.lang.ClassNotFoundException: caught an exception while
obtaining a class file for nl.collection.components.Layout
	at javassist.Loader.findClass(Loader.java:359)
	at
org.apache.tapestry5.internal.services.ComponentInstantiatorSourceImpl$PackageAwareLoader.findClass(ComponentInstantiatorSourceImpl.java:92)
	at javassist.Loader.loadClass(Loader.java:311)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
	at
org.apache.tapestry5.internal.services.ComponentInstantiatorSourceImpl.findClass(ComponentInstantiatorSourceImpl.java:292)
	... 59 more
Caused by: org.apache.tapestry5.internal.services.TransformationException:
java.lang.ClassNotFoundException:
org.apache.tapestry.annotations.IncludeStylesheet
	at
org.apache.tapestry5.internal.services.ComponentClassTransformerImpl.transformComponentClass(ComponentClassTransformerImpl.java:176)
	at
$ComponentClassTransformer_11f84ccb12f.transformComponentClass($ComponentClassTransformer_11f84ccb12f.java)
	at
org.apache.tapestry5.internal.services.ComponentInstantiatorSourceImpl.onLoad(ComponentInstantiatorSourceImpl.java:201)
	at javassist.Loader.findClass(Loader.java:340)
	... 63 more
Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException:
org.apache.tapestry.annotations.IncludeStylesheet
	at
org.apache.tapestry5.internal.services.InternalClassTransformationImpl.assembleClassAnnotations(InternalClassTransformationImpl.java:1569)
	at
org.apache.tapestry5.internal.services.InternalClassTransformationImpl.getClassAnnotations(InternalClassTransformationImpl.java:1541)
	at
org.apache.tapestry5.internal.services.InternalClassTransformationImpl.getAnnotation(InternalClassTransformationImpl.java:347)
	at
org.apache.tapestry5.internal.transform.MetaWorker.transform(MetaWorker.java:32)
	at
$ComponentClassTransformWorker_11f84ccb16b.transform($ComponentClassTransformWorker_11f84ccb16b.java)
	at
$ComponentClassTransformWorker_11f84ccb161.transform($ComponentClassTransformWorker_11f84ccb161.java)
	at
org.apache.tapestry5.internal.services.ComponentClassTransformerImpl.transformComponentClass(ComponentClassTransformerImpl.java:170)
	... 66 more
Caused by: java.lang.ClassNotFoundException:
org.apache.tapestry.annotations.IncludeStylesheet
	at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
	at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:247)
	at
javassist.bytecode.annotation.MemberValue.loadClass(MemberValue.java:51)
	at
javassist.bytecode.annotation.Annotation.toAnnotationType(Annotation.java:293)
	at javassist.CtClassType.toAnnoType(CtClassType.java:591)
	at javassist.CtClassType.toAnnotationType(CtClassType.java:492)
	at javassist.CtClassType.getAnnotations(CtClassType.java:458)
	at javassist.CtClassType.getAnnotations(CtClassType.java:438)
	at
org.apache.tapestry5.internal.services.InternalClassTransformationImpl.assembleClassAnnotations(InternalClassTransformationImpl.java:1556)
	... 72 more

- Kasper

On Tue, 17 Feb 2009 12:11:39 -0300, "Thiago H. de Paula Figueiredo"
<th...@gmail.com> wrote:
> On Tue, Feb 17, 2009 at 12:03 PM,  <ka...@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-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: T5.0.10 to T5.0.18 Component not found

Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
On Tue, Feb 17, 2009 at 12:03 PM,  <ka...@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-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: T5.0.10 to T5.0.18 Component not found

Posted by ka...@nekoconeko.nl.
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, <ka...@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?
> 
>  - Kasper