You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Az Madu <az...@gmail.com> on 2012/03/06 14:32:04 UTC
Failure loading Tapestry IoC module DevelopmentModule
Hi guys,
I hope someone can help me solve this as it's just started today and I'm
scratching my head. I was adding a new serviceBinder into the AppModule to
build an external service that I want to use (added dependency to pom.xml
and imported my class no problem) and configured my web.xml to hold
parameters that would be read by Injecting the Context and calling
getInitParameter method. However since class loading can be unpredictable
I've been advised against using any static member varibles and just
hardcode the particular values of interest which appears to be fine.
On trying to run my project (which previously has not given any problem) I
now see the stacktrace below. No changes have been made to the web.xml to
alter the <context-param> value for DevelopmentModule and any changes that
were made in the AppModule have for now been commented out which should put
me back to my default project setup. I've not made any other changes to
any other file or module so I'm confused why this RunTimeException is
happening, but maybe i've missed something.
I'm running on Eclipe Indigo on Windows 7 64Bit OS.
Any tips will be appreciated.
Regards
Az
Running Jetty 6.1.26
2012-03-06 12:36:14.122:INFO::Logging to STDERR via
org.mortbay.log.StdErrLog
ParentLoaderPriority enabled
.
.
.
.
Starting scanner at interval of 5 seconds.
2012-03-06 12:36:14.317:INFO::jetty-6.1.26
[INFO] ioc.RegistryBuilder Adding module definition for class
org.apache.tapestry5.ioc.services.TapestryIOCModule
[INFO] ioc.RegistryBuilder Adding module definition for class
org.apache.tapestry5.json.services.JSONModule
[INFO] ioc.RegistryBuilder Adding module definition for class
org.apache.tapestry5.yuicompressor.services.YuiCompressorModule
[INFO] ioc.RegistryBuilder Adding module definition for class
org.apache.tapestry5.services.TapestryModule
[INFO] ioc.RegistryBuilder Adding module definition for class
org.apache.tapestry5.internal.services.InternalModule
[INFO] ioc.RegistryBuilder Adding module definition for class
org.apache.tapestry5.services.assets.AssetsModule
[INFO] ioc.RegistryBuilder Adding module definition for class
org.apache.tapestry5.services.pageload.PageLoadModule
[INFO] ioc.RegistryBuilder Adding module definition for class
com.blah.blah.services.AppModule
2012-03-06 12:36:15.491:WARN::failed app: java.lang.RuntimeException:
Failure loading Tapestry IoC module class
com.blah.blah.projectname.services.DevelopmentModule:
com.sony.otg.c3demoapp.services.DevelopmentModule
2012-03-06 12:36:15.491:WARN::Failed startup of context
org.mortbay.jetty.webapp.WebAppContext@51f21c50
{/c3demoapp,D:\Development\code\Tapestry\c3demoapp\src\main\webapp}
java.lang.RuntimeException: Failure loading Tapestry IoC module class
com.blah.blah.projectnameservices.DevelopmentModule:
com.blah.blah.projectname.services.DevelopmentModule
at
org.apache.tapestry5.ioc.RegistryBuilder.add(RegistryBuilder.java:162)
at
org.apache.tapestry5.internal.TapestryAppInitializer.<init>(TapestryAppInitializer.java:161)
at org.apache.tapestry5.TapestryFilter.init(TapestryFilter.java:103)
at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at
org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:713)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
at
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282)
at
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518)
at
org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
at org.mortbay.jetty.Server.doStart(Server.java:224)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at runjettyrun.Bootstrap.main(Bootstrap.java:97)
2012-03-06 12:36:15.516:INFO::Started SelectChannelConnector@0.0.0.0:8080
Re: Failure loading Tapestry IoC module DevelopmentModule
Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
On Tue, 06 Mar 2012 10:32:04 -0300, Az Madu <az...@gmail.com> wrote:
> Hi guys,
Hi!
> java.lang.RuntimeException: Failure loading Tapestry IoC module class
> com.blah.blah.projectnameservices.DevelopmentModule:
> com.blah.blah.projectname.services.DevelopmentModule
I guess the problem is in the lines above. Notice the different package
structures.
--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org