http://osdir.com/ml/users-tapestry-apache/2009-05/msg00366.html

My directory layout still needs some massaging obviously :)

java.lang.RuntimeException: java.lang.ClassNotFoundException: caught an 
exception while obtaining a class file for 
au.com.vltest.admin.web.pages.voicemail.VMAccounts


Thanks - no more to add to this thread from me :)
Chris


On 01/09/2010, at 12:41 PM, Chris Mylonas wrote:

> Thanks for the pointer Thaigo - tapestry has made my pages available (got my 
> own coding to deal with now!)
> 
> javax.servlet.ServletException: Filter execution threw an exception
>       
> org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
> 
> root cause
> 
> java.lang.NoClassDefFoundError: org/antlr/runtime/CharStream
>       java.lang.Class.getDeclaredConstructors0(Native Method)
>       java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
>       java.lang.Class.getConstructors(Class.java:1459)
> 
> 
> 
>> Your AppModule wasn't loaded. Make sure your TapestryFilter name in web.xml 
>> matches your Tapestry-IoC module (app <=> AppModule, foo <=> FooModule, etc).
> 
> I was reading about Tapestry-IoC over the weekend.  Will have to read some 
> code to understand to a better degree what you've described, and more 
> importantly, using it to add my own services.
> 
> However, for the unwashed and future newbies, here was my problem.
> 
> 1.  I was moving an app out of jumpstart into a different directory structure 
> as my preferred layout (also with the use of ant dependencies, rather than 
> maven).
> 2.  web/src/webapp/WEB-INF/web.xml  had these values
> 
>       <web-app>
>           <display-name>tutorial1 Tapestry 5 Application</display-name>
>           <context-param>
>               <!-- The only significant configuration for Tapestry 5, this 
> informs Tapestry
>                    of where to look for pages, components and mixins. -->
>               <param-name>tapestry.app-package</param-name>
>               <param-value>org.apache.tapestry5.tutorial</param-value>
>           </context-param>
>           <filter>
>               <filter-name>app</filter-name>
>               <filter-class>org.apache.tapestry5.TapestryFilter</filter-class>
>           </filter>
>           <filter-mapping>
>               <filter-name>app</filter-name>
>               <url-pattern>/*</url-pattern>
>           </filter-mapping>
>       </web-app>
> 
> which had the wrong param-value.  The corrected web.xml looks like this which 
> matches my workspace au.com.vltest.admin.web (where tapestry 
> components/pages/mixins go)
> 
>       <web-app>
>           <display-name>VL Test</display-name>
>           <context-param>
>               <!-- The only significant configuration for Tapestry 5, this 
> informs Tapestry
>                    of where to look for pages, components and mixins. -->
>               <param-name>tapestry.app-package</param-name>
>               <param-value>au.com.vltest.admin.web</param-value>
>           </context-param>
>           <filter>
>               <filter-name>app</filter-name>
>               <filter-class>org.apache.tapestry5.TapestryFilter</filter-class>
>           </filter>
>           <filter-mapping>
>               <filter-name>app</filter-name>
>               <url-pattern>/*</url-pattern>
>           </filter-mapping>
>       </web-app>
> 
> 
> Cheers
> Chris


Chris Mylonas - Consulting Systems Administrator
Communications, Internetworking, Software Design & Prototyping
Free & Open Source Software - www.opencsta.org

Reply via email to