You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Otho <ta...@googlemail.com> on 2009/02/06 23:19:17 UTC
[T5] 5.1 Startup problem with TapestrySpringFilter
After generating the new archetype I get a
java.lang.ClassNotFoundException:
org.apache.tapestry5.spring.TapestrySpringFilter
The same error occurs also when using a ContextLoaderListener.
Tapestry-Spring and the TapestrySpringFilter are definitely in the
classpath. The spring beans are created normally.
Any idea what that could be?
web.xml contents:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<display-name>Test51 Tapestry 5 Application</display-name>
<!-- Context Parameters -->
<context-param>
<param-name>tapestry.app-package</param-name>
<param-value>de.test.test51</param-value>
</context-param>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
/WEB-INF/classes/appContext-main.xml
</param-value>
</context-param>
<!-- Filters -->
<filter>
<filter-name>app</filter-name>
<!-- Special filter that adds in a T5 IoC module derived from the Spring
WebApplicationContext. -->
<filter-class>org.apache.tapestry5.spring.TapestrySpringFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>app</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
</web-app>
Re: [T5] 5.1 Startup problem with TapestrySpringFilter
Posted by sige <si...@yahoo.co.nz>.
Hi
do you mean you changed the filter class:
<filter-class>org.apache.tapestry5.spring.TapestrySpringFilter</filter-class>
to
<filter-class>org.apache.tapestry5.TapestryFilter</filter-class>
and solved the problem? I have the same problem when shifting from T5.0 to
T5.1, I have some Spring beans needed in my classes which I have injected
using external spring context and a spring ContextLoaderListener:
<context-param>
<param-name>tapestry.use-external-spring-context</param-name>
<param-value>true</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
I am not using maven and I managed the dependencies manually.
Thanks,
Sige
Otho wrote:
>
> Solved. One shouldn't try to code that late and when tired. When
> copypasting
> I used the tapestry-test definition in the pom and of course forgot to
> delete the <scope>test</scope> for tapestry-spring.... sorry for the
> hassle.
>
> 2009/2/7 Otho <ta...@googlemail.com>
>
>> I added that of course to them pom.xml along with other dependencies I
>> need. The problem is, that my Spring context is read in correctly but
>> then
>> Tapestry bails out with the classnotfoundexception for the
>> TaperstrySpringFilter.
>>
>> 2009/2/7 Howard Lewis Ship <hl...@gmail.com>
>>
>> The new archetype doesn't have a dependency on tapestry-spring (it never
>>> did).
>>>
>
>
>
--
View this message in context: http://www.nabble.com/-T5--5.1-Startup-problem-with-TapestrySpringFilter-tp21881852p24471597.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: [T5] 5.1 Startup problem with TapestrySpringFilter
Posted by Otho <ta...@googlemail.com>.
Solved. One shouldn't try to code that late and when tired. When copypasting
I used the tapestry-test definition in the pom and of course forgot to
delete the <scope>test</scope> for tapestry-spring.... sorry for the hassle.
2009/2/7 Otho <ta...@googlemail.com>
> I added that of course to them pom.xml along with other dependencies I
> need. The problem is, that my Spring context is read in correctly but then
> Tapestry bails out with the classnotfoundexception for the
> TaperstrySpringFilter.
>
> 2009/2/7 Howard Lewis Ship <hl...@gmail.com>
>
> The new archetype doesn't have a dependency on tapestry-spring (it never
>> did).
>>
>> On Fri, Feb 6, 2009 at 2:19 PM, Otho <ta...@googlemail.com> wrote:
>> > After generating the new archetype I get a
>> >
>> > java.lang.ClassNotFoundException:
>> > org.apache.tapestry5.spring.TapestrySpringFilter
>> >
>> > The same error occurs also when using a ContextLoaderListener.
>> > Tapestry-Spring and the TapestrySpringFilter are definitely in the
>> > classpath. The spring beans are created normally.
>> >
>> > Any idea what that could be?
>> >
>> > web.xml contents:
>> >
>> > <?xml version="1.0" encoding="UTF-8"?>
>> > <!DOCTYPE web-app
>> > PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
>> > "http://java.sun.com/dtd/web-app_2_3.dtd">
>> > <web-app>
>> > <display-name>Test51 Tapestry 5 Application</display-name>
>> >
>> > <!-- Context Parameters -->
>> > <context-param>
>> > <param-name>tapestry.app-package</param-name>
>> > <param-value>de.test.test51</param-value>
>> > </context-param>
>> > <context-param>
>> > <param-name>contextConfigLocation</param-name>
>> > <param-value>
>> > /WEB-INF/classes/appContext-main.xml
>> > </param-value>
>> > </context-param>
>> >
>> > <!-- Filters -->
>> > <filter>
>> > <filter-name>app</filter-name>
>> > <!-- Special filter that adds in a T5 IoC module derived from the
>> Spring
>> > WebApplicationContext. -->
>> >
>> >
>> <filter-class>org.apache.tapestry5.spring.TapestrySpringFilter</filter-class>
>> > </filter>
>> > <filter-mapping>
>> > <filter-name>app</filter-name>
>> > <url-pattern>/*</url-pattern>
>> > </filter-mapping>
>> > </web-app>
>> >
>>
>>
>>
>> --
>> Howard M. Lewis Ship
>>
>> Creator Apache Tapestry and Apache HiveMind
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>
Re: [T5] 5.1 Startup problem with TapestrySpringFilter
Posted by Otho <ta...@googlemail.com>.
I added that of course to them pom.xml along with other dependencies I need.
The problem is, that my Spring context is read in correctly but then
Tapestry bails out with the classnotfoundexception for the
TaperstrySpringFilter.
2009/2/7 Howard Lewis Ship <hl...@gmail.com>
> The new archetype doesn't have a dependency on tapestry-spring (it never
> did).
>
> On Fri, Feb 6, 2009 at 2:19 PM, Otho <ta...@googlemail.com> wrote:
> > After generating the new archetype I get a
> >
> > java.lang.ClassNotFoundException:
> > org.apache.tapestry5.spring.TapestrySpringFilter
> >
> > The same error occurs also when using a ContextLoaderListener.
> > Tapestry-Spring and the TapestrySpringFilter are definitely in the
> > classpath. The spring beans are created normally.
> >
> > Any idea what that could be?
> >
> > web.xml contents:
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> > <!DOCTYPE web-app
> > PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
> > "http://java.sun.com/dtd/web-app_2_3.dtd">
> > <web-app>
> > <display-name>Test51 Tapestry 5 Application</display-name>
> >
> > <!-- Context Parameters -->
> > <context-param>
> > <param-name>tapestry.app-package</param-name>
> > <param-value>de.test.test51</param-value>
> > </context-param>
> > <context-param>
> > <param-name>contextConfigLocation</param-name>
> > <param-value>
> > /WEB-INF/classes/appContext-main.xml
> > </param-value>
> > </context-param>
> >
> > <!-- Filters -->
> > <filter>
> > <filter-name>app</filter-name>
> > <!-- Special filter that adds in a T5 IoC module derived from the
> Spring
> > WebApplicationContext. -->
> >
> >
> <filter-class>org.apache.tapestry5.spring.TapestrySpringFilter</filter-class>
> > </filter>
> > <filter-mapping>
> > <filter-name>app</filter-name>
> > <url-pattern>/*</url-pattern>
> > </filter-mapping>
> > </web-app>
> >
>
>
>
> --
> Howard M. Lewis Ship
>
> Creator Apache Tapestry and Apache HiveMind
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
Re: [T5] 5.1 Startup problem with TapestrySpringFilter
Posted by Howard Lewis Ship <hl...@gmail.com>.
The new archetype doesn't have a dependency on tapestry-spring (it never did).
On Fri, Feb 6, 2009 at 2:19 PM, Otho <ta...@googlemail.com> wrote:
> After generating the new archetype I get a
>
> java.lang.ClassNotFoundException:
> org.apache.tapestry5.spring.TapestrySpringFilter
>
> The same error occurs also when using a ContextLoaderListener.
> Tapestry-Spring and the TapestrySpringFilter are definitely in the
> classpath. The spring beans are created normally.
>
> Any idea what that could be?
>
> web.xml contents:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE web-app
> PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
> "http://java.sun.com/dtd/web-app_2_3.dtd">
> <web-app>
> <display-name>Test51 Tapestry 5 Application</display-name>
>
> <!-- Context Parameters -->
> <context-param>
> <param-name>tapestry.app-package</param-name>
> <param-value>de.test.test51</param-value>
> </context-param>
> <context-param>
> <param-name>contextConfigLocation</param-name>
> <param-value>
> /WEB-INF/classes/appContext-main.xml
> </param-value>
> </context-param>
>
> <!-- Filters -->
> <filter>
> <filter-name>app</filter-name>
> <!-- Special filter that adds in a T5 IoC module derived from the Spring
> WebApplicationContext. -->
>
> <filter-class>org.apache.tapestry5.spring.TapestrySpringFilter</filter-class>
> </filter>
> <filter-mapping>
> <filter-name>app</filter-name>
> <url-pattern>/*</url-pattern>
> </filter-mapping>
> </web-app>
>
--
Howard M. Lewis Ship
Creator Apache Tapestry and Apache HiveMind
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org