You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Blšták Peter <pe...@softec.sk> on 2009/04/03 17:28:00 UTC

Problem using tapx-datefield

Hi,

I have tried tapx-datefield module downloaded from formos snapshot repository.
Since I added downloaded jar (this one tapx-datefield-1.0.0-20090403.121507-20.jar) to application classpath I got this error (bellow).

I use jetty, jre 1.6.0_11-b03 and have tried using tapestry-5.1.0.1 and 5.1.0.2.

Tapx-datefield sources looks OK.

Any idea? 

Thanks

P.



[INFO] mortbay.log jetty-6.1.6
[INFO] ioc.RegistryBuilder Adding module definition for class org.apache.tapestry5.ioc.services.TapestryIOCModule
[INFO] ioc.RegistryBuilder Adding module definition for class com.formos.tapestry.tapx.datefield.services.DateFieldModule
[ERROR] mortbay.log failed app
java.lang.RuntimeException: Exception loading module(s) from manifest jar:file:/C:/.../tapx-datefield-1.0.0-SNAPSHOT.jar!/META-INF/MANIFEST.MF: Failure loading Tapestry IoC module class com.formos.tapestry.tapx.datefield.services.DateFieldModule: Service contribution method com.formos.tapestry.tapx.datefield.services.DateFieldModule.contributeBeanBlockOverrideSource(Configuration) does not contain a parameter of type Configuration, OrderedConfiguration or MappedConfiguration. This parameter is how the method make contributions into the service's configuration.
	at org.apache.tapestry5.ioc.IOCUtilities.addModulesInManifest(IOCUtilities.java:123)
	at org.apache.tapestry5.ioc.IOCUtilities.addDefaultModules(IOCUtilities.java:77)
	at org.apache.tapestry5.internal.TapestryAppInitializer.<init>(TapestryAppInitializer.java:85)
	at org.apache.tapestry5.TapestryFilter.init(TapestryFilter.java:74)
	at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97)
	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
	at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:589)
	at org.mortbay.jetty.servlet.Context.startContext(Context.java:139)
	at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1216)
	at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:509)
	at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:447)
	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
	at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117)
	at org.mortbay.jetty.Server.doStart(Server.java:222)
	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
	at runjettyrun.Bootstrap.main(Bootstrap.java:76)
Caused by: java.lang.RuntimeException: Failure loading Tapestry IoC module class com.formos.tapestry.tapx.datefield.services.DateFieldModule: Service contribution method com.formos.tapestry.tapx.datefield.services.DateFieldModule.contributeBeanBlockOverrideSource(Configuration) does not contain a parameter of type Configuration, OrderedConfiguration or MappedConfiguration. This parameter is how the method make contributions into the service's configuration.
	at org.apache.tapestry5.ioc.RegistryBuilder.add(RegistryBuilder.java:155)
	at org.apache.tapestry5.ioc.IOCUtilities.addModulesInList(IOCUtilities.java:137)
	at org.apache.tapestry5.ioc.IOCUtilities.addModulesInManifest(IOCUtilities.java:107)
	... 15 more

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


RE: Problem using tapx-datefield

Posted by Blšták Peter <pe...@softec.sk>.
Thanks for guide.

I did not say, that I use RunJettyRun using simple Java project in Eclipse and project classes and libraries are not copied to <context_root>/WEB-INF/(lib|classes) (they are only in RunJettyRun run configuration classpath).

So, adding VM directive 
-Dorg.mortbay.jetty.webapp.parentLoaderPriority=true
to run configuration solved the problem.

P.

________________________________________
From: Howard Lewis Ship [hlship@gmail.com]
Sent: Friday, April 03, 2009 6:04 PM
To: Tapestry users
Subject: Re: Problem using tapx-datefield

Looks like you have a classpath problem, probably two copies of
tapestry-ioc.jar in two different places (and two different class
loaders).

2009/4/3 Blšták Peter <pe...@softec.sk>:
> Hi,
>
> I have tried tapx-datefield module downloaded from formos snapshot repository.
> Since I added downloaded jar (this one tapx-datefield-1.0.0-20090403.121507-20.jar) to application classpath I got this error (bellow).
>
> I use jetty, jre 1.6.0_11-b03 and have tried using tapestry-5.1.0.1 and 5.1.0.2.
>
> Tapx-datefield sources looks OK.
>
> Any idea?
>
> Thanks
>
> P.
>
>
>
> [INFO] mortbay.log jetty-6.1.6
> [INFO] ioc.RegistryBuilder Adding module definition for class org.apache.tapestry5.ioc.services.TapestryIOCModule
> [INFO] ioc.RegistryBuilder Adding module definition for class com.formos.tapestry.tapx.datefield.services.DateFieldModule
> [ERROR] mortbay.log failed app
> java.lang.RuntimeException: Exception loading module(s) from manifest jar:file:/C:/.../tapx-datefield-1.0.0-SNAPSHOT.jar!/META-INF/MANIFEST.MF: Failure loading Tapestry IoC module class com.formos.tapestry.tapx.datefield.services.DateFieldModule: Service contribution method com.formos.tapestry.tapx.datefield.services.DateFieldModule.contributeBeanBlockOverrideSource(Configuration) does not contain a parameter of type Configuration, OrderedConfiguration or MappedConfiguration. This parameter is how the method make contributions into the service's configuration.
>        at org.apache.tapestry5.ioc.IOCUtilities.addModulesInManifest(IOCUtilities.java:123)
>        at org.apache.tapestry5.ioc.IOCUtilities.addDefaultModules(IOCUtilities.java:77)
>        at org.apache.tapestry5.internal.TapestryAppInitializer.<init>(TapestryAppInitializer.java:85)
>        at org.apache.tapestry5.TapestryFilter.init(TapestryFilter.java:74)
>        at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97)
>        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
>        at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:589)
>        at org.mortbay.jetty.servlet.Context.startContext(Context.java:139)
>        at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1216)
>        at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:509)
>        at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:447)
>        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
>        at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117)
>        at org.mortbay.jetty.Server.doStart(Server.java:222)
>        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
>        at runjettyrun.Bootstrap.main(Bootstrap.java:76)
> Caused by: java.lang.RuntimeException: Failure loading Tapestry IoC module class com.formos.tapestry.tapx.datefield.services.DateFieldModule: Service contribution method com.formos.tapestry.tapx.datefield.services.DateFieldModule.contributeBeanBlockOverrideSource(Configuration) does not contain a parameter of type Configuration, OrderedConfiguration or MappedConfiguration. This parameter is how the method make contributions into the service's configuration.
>        at org.apache.tapestry5.ioc.RegistryBuilder.add(RegistryBuilder.java:155)
>        at org.apache.tapestry5.ioc.IOCUtilities.addModulesInList(IOCUtilities.java:137)
>        at org.apache.tapestry5.ioc.IOCUtilities.addModulesInManifest(IOCUtilities.java:107)
>        ... 15 more
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>



--
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
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Problem using tapx-datefield

Posted by Howard Lewis Ship <hl...@gmail.com>.
Looks like you have a classpath problem, probably two copies of
tapestry-ioc.jar in two different places (and two different class
loaders).

2009/4/3 Blšták Peter <pe...@softec.sk>:
> Hi,
>
> I have tried tapx-datefield module downloaded from formos snapshot repository.
> Since I added downloaded jar (this one tapx-datefield-1.0.0-20090403.121507-20.jar) to application classpath I got this error (bellow).
>
> I use jetty, jre 1.6.0_11-b03 and have tried using tapestry-5.1.0.1 and 5.1.0.2.
>
> Tapx-datefield sources looks OK.
>
> Any idea?
>
> Thanks
>
> P.
>
>
>
> [INFO] mortbay.log jetty-6.1.6
> [INFO] ioc.RegistryBuilder Adding module definition for class org.apache.tapestry5.ioc.services.TapestryIOCModule
> [INFO] ioc.RegistryBuilder Adding module definition for class com.formos.tapestry.tapx.datefield.services.DateFieldModule
> [ERROR] mortbay.log failed app
> java.lang.RuntimeException: Exception loading module(s) from manifest jar:file:/C:/.../tapx-datefield-1.0.0-SNAPSHOT.jar!/META-INF/MANIFEST.MF: Failure loading Tapestry IoC module class com.formos.tapestry.tapx.datefield.services.DateFieldModule: Service contribution method com.formos.tapestry.tapx.datefield.services.DateFieldModule.contributeBeanBlockOverrideSource(Configuration) does not contain a parameter of type Configuration, OrderedConfiguration or MappedConfiguration. This parameter is how the method make contributions into the service's configuration.
>        at org.apache.tapestry5.ioc.IOCUtilities.addModulesInManifest(IOCUtilities.java:123)
>        at org.apache.tapestry5.ioc.IOCUtilities.addDefaultModules(IOCUtilities.java:77)
>        at org.apache.tapestry5.internal.TapestryAppInitializer.<init>(TapestryAppInitializer.java:85)
>        at org.apache.tapestry5.TapestryFilter.init(TapestryFilter.java:74)
>        at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97)
>        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
>        at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:589)
>        at org.mortbay.jetty.servlet.Context.startContext(Context.java:139)
>        at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1216)
>        at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:509)
>        at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:447)
>        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
>        at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117)
>        at org.mortbay.jetty.Server.doStart(Server.java:222)
>        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
>        at runjettyrun.Bootstrap.main(Bootstrap.java:76)
> Caused by: java.lang.RuntimeException: Failure loading Tapestry IoC module class com.formos.tapestry.tapx.datefield.services.DateFieldModule: Service contribution method com.formos.tapestry.tapx.datefield.services.DateFieldModule.contributeBeanBlockOverrideSource(Configuration) does not contain a parameter of type Configuration, OrderedConfiguration or MappedConfiguration. This parameter is how the method make contributions into the service's configuration.
>        at org.apache.tapestry5.ioc.RegistryBuilder.add(RegistryBuilder.java:155)
>        at org.apache.tapestry5.ioc.IOCUtilities.addModulesInList(IOCUtilities.java:137)
>        at org.apache.tapestry5.ioc.IOCUtilities.addModulesInManifest(IOCUtilities.java:107)
>        ... 15 more
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>



-- 
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