tapestry-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ben Sommerville" <...@bulletproof.com.au>
Subject RE: T5 JBoss Exception Redeploy Exception
Date Sun, 04 Mar 2007 02:30:41 GMT
I also had this error when I was playing yesterday.
In my case it turned out that I had two copies of tapestry-core on the
classpath (one in a web app lib and the other in the ear that contained the
web app).  Removing the extra copy (in the web app) fixed this problem for
me. 

-----Original Message-----
From: Todd Orr [mailto:torr0101@gmail.com] 
Sent: Sunday, 4 March 2007 8:18 AM
To: Tapestry users
Subject: Re: T5 JBoss Exception Redeploy Exception

Also note that my app is otherwise unremarkable. I'm not integrating
anything exotic. I have been only creating some components and familiarizing
myself with T5.

On 3/3/07, Todd Orr <torr0101@gmail.com> wrote:
> Also, I am using the mvn <archiveClasses>true</archiveClasses>
> setting. As well as the <attribute
> name="UseJBossWebLoader">true</attribute> config setting.
>
> On 3/3/07, Todd Orr <torr0101@gmail.com> wrote:
> > What I exactly did:
> >
> > 1. code
> > 2. mvn jboss:undeploy clean package jboss:deploy (no current 
> > deployment, I just do this so I only have to press up arrow
> > subsequently)
> > 3. attempt to resolve url
> > 4. observe runtime error
> > 5. make code changes
> > 6. mvn jboss:undeploy clean package jboss:deploy 7. attempt to 
> > resolve url 8. observe tomcat error page 9. observe printstack 
> > listed below in stdout
> >
> > On 3/3/07, Howard Lewis Ship <hlship@gmail.com> wrote:
> > > Ugly, and certainly a class loader problem.  So you had a running 
> > > application, and you created and deployed a new .war on top of the 
> > > old one.
> > >
> > > On 3/2/07, Todd Orr <torr0101@gmail.com> wrote:
> > > > My problem happens after an exception occurs. Firstly, my 
> > > > tapestry example deploys fine. If any exception occurs I make 
> > > > the appropriate changes and then redeploy to jboss. Then I get 
> > > > the following error when trying to resolve a page.
> > > >
> > > > stack trace:
> > > >
> > > > 20:15:29,077 ERROR [ExceptionReport] Render queue error in
> > > > BeginRender[org.apache.tapestry.corelib.pages.ExceptionReport:loop]:
> > > > No object of type org.apache.tapestry.services.Heartbeat is 
> > > > available from the Environment.  Available types are 
> > > > org.apache.tapestry.MarkupWriter, 
> > > > org.apache.tapestry.ValidationDecorator,
> > > > org.apache.tapestry.dom.Document, 
> > > > org.apache.tapestry.services.Heartbeat,
> > > > org.apache.tapestry.services.PageRenderSupport.
> > > > java.lang.RuntimeException: No object of type 
> > > > org.apache.tapestry.services.Heartbeat is available from the 
> > > > Environment.  Available types are 
> > > > org.apache.tapestry.MarkupWriter, 
> > > > org.apache.tapestry.ValidationDecorator,
> > > > org.apache.tapestry.dom.Document, 
> > > > org.apache.tapestry.services.Heartbeat,
> > > > org.apache.tapestry.services.PageRenderSupport.
> > > >         at
org.apache.tapestry.internal.services.EnvironmentImpl.peekRequired(Environme
ntImpl.java:73)
> > > >         at
$Environment_110852b4624.peekRequired($Environment_110852b4624.java)
> > > >         at
$Environment_110852b45c9.peekRequired($Environment_110852b45c9.java)
> > > >         at
org.apache.tapestry.corelib.components.Loop._$environment_read_heartbeat(Loo
p.java)
> > > >         at
org.apache.tapestry.corelib.components.Loop.startHeartbeat(Loop.java:302)
> > > >         at
org.apache.tapestry.corelib.components.Loop.begin(Loop.java:297)
> > > >         at
org.apache.tapestry.corelib.components.Loop.beginRender(Loop.java)
> > > >         at
org.apache.tapestry.internal.structure.ComponentPageElementImpl$10$1.run(Com
ponentPageElementImpl.java:334)
> > > >         at
org.apache.tapestry.internal.structure.ComponentPageElementImpl.invoke(Compo
nentPageElementImpl.java:931)
> > > >         at
org.apache.tapestry.internal.structure.ComponentPageElementImpl.access$100(C
omponentPageElementImpl.java:68)
> > > >         at
org.apache.tapestry.internal.structure.ComponentPageElementImpl$10.render(Co
mponentPageElementImpl.java:338)
> > > >         at
org.apache.tapestry.internal.services.RenderQueueImpl.run(RenderQueueImpl.ja
va:57)
> > > >         at
org.apache.tapestry.internal.services.PageMarkupRendererImpl.renderPageMarku
p(PageMarkupRendererImpl.java:40)
> > > >         at
$PageMarkupRenderer_110852b4621.renderPageMarkup($PageMarkupRenderer_110852b
4621.java)
> > > >         at
org.apache.tapestry.internal.services.PageResponseRendererImpl.renderPageRes
ponse(PageResponseRendererImpl.java:45)
> > > >         at
$PageResponseRenderer_110852b45e1.renderPageResponse($PageResponseRenderer_1
10852b45e1.java)
> > > >         at
org.apache.tapestry.internal.services.DefaultRequestExceptionHandler.handleR
equestException(DefaultRequestExceptionHandler.java:56)
> > > >         at
$RequestExceptionHandler_110852b45b8.handleRequestException($RequestExceptio
nHandler_110852b45b8.java)
> > > >         at
org.apache.tapestry.services.TapestryModule$6.service(TapestryModule.java:52
3)
> > > >         at
$RequestHandler_110852b45f4.service($RequestHandler_110852b45f4.java)
> > > >         at
org.apache.tapestry.internal.services.StaticFilesFilter.service(StaticFilesF
ilter.java:56)
> > > >         at
$RequestHandler_110852b45f4.service($RequestHandler_110852b45f4.java)
> > > >         at
org.apache.tapestry.internal.services.LocalizationFilter.service(Localizatio
nFilter.java:43)
> > > >         at
$RequestHandler_110852b45f4.service($RequestHandler_110852b45f4.java)
> > > >         at
org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke(CheckFo
rUpdatesFilter.java:91)
> > > >         at
org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke(CheckFo
rUpdatesFilter.java:82)
> > > >         at
org.apache.tapestry.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentB
arrier.java:77)
> > > >         at
org.apache.tapestry.internal.services.CheckForUpdatesFilter.service(CheckFor
UpdatesFilter.java:104)
> > > >         at
$RequestHandler_110852b45f4.service($RequestHandler_110852b45f4.java)
> > > >         at
$RequestHandler_110852b45ef.service($RequestHandler_110852b45ef.java)
> > > >         at
org.apache.tapestry.services.TapestryModule$3.service(TapestryModule.java:40
2)
> > > >         at
$HttpServletRequestHandler_110852b45ee.service($HttpServletRequestHandler_11
0852b45ee.java)
> > > >         at
org.apache.tapestry.TapestryFilter.doFilter(TapestryFilter.java:114)
> > > >         at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:202)
> > > >         at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:173)
> > > >         at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.ja
va:96)
> > > >         at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:202)
> > > >         at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:173)
> > > >         at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:213)
> > > >         at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:178)
> > > >         at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssoci
ationValve.java:175)
> > > >         at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:
74)
> > > >         at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126
)
> > > >         at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105
)
> > > >         at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:107)
> > > >         at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> > > >         at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
> > > >         at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processC
onnection(Http11BaseProtocol.java:664)
> > > >         at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.jav
a:527)
> > > >         at
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThre
ad.java:112)
> > > >         at java.lang.Thread.run(Thread.java:595)
> > > > 20:15:29,080 ERROR [PagePool] Page 
> > > > Page[org.apache.tapestry.corelib.pages.ExceptionReport en] is 
> > > > dirty, and will be discarded (rather than returned to the page
pool).
> > > > 20:15:29,080 ERROR [[default]] Servlet.service() for servlet 
> > > > default threw exception
> > > > java.lang.RuntimeException: No object of type 
> > > > org.apache.tapestry.services.Heartbeat is available from the 
> > > > Environment.  Available types are 
> > > > org.apache.tapestry.MarkupWriter, 
> > > > org.apache.tapestry.ValidationDecorator,
> > > > org.apache.tapestry.dom.Document, 
> > > > org.apache.tapestry.services.Heartbeat,
> > > > org.apache.tapestry.services.PageRenderSupport.
> > > >         at
org.apache.tapestry.internal.services.EnvironmentImpl.peekRequired(Environme
ntImpl.java:73)
> > > >         at
$Environment_110852b4624.peekRequired($Environment_110852b4624.java)
> > > >         at
$Environment_110852b45c9.peekRequired($Environment_110852b45c9.java)
> > > >         at
org.apache.tapestry.corelib.components.Loop._$environment_read_heartbeat(Loo
p.java)
> > > >         at
org.apache.tapestry.corelib.components.Loop.startHeartbeat(Loop.java:302)
> > > >         at
org.apache.tapestry.corelib.components.Loop.begin(Loop.java:297)
> > > >         at
org.apache.tapestry.corelib.components.Loop.beginRender(Loop.java)
> > > >         at
org.apache.tapestry.internal.structure.ComponentPageElementImpl$10$1.run(Com
ponentPageElementImpl.java:334)
> > > >         at
org.apache.tapestry.internal.structure.ComponentPageElementImpl.invoke(Compo
nentPageElementImpl.java:931)
> > > >         at
org.apache.tapestry.internal.structure.ComponentPageElementImpl.access$100(C
omponentPageElementImpl.java:68)
> > > >         at
org.apache.tapestry.internal.structure.ComponentPageElementImpl$10.render(Co
mponentPageElementImpl.java:338)
> > > >         at
org.apache.tapestry.internal.services.RenderQueueImpl.run(RenderQueueImpl.ja
va:57)
> > > >         at
org.apache.tapestry.internal.services.PageMarkupRendererImpl.renderPageMarku
p(PageMarkupRendererImpl.java:40)
> > > >         at
$PageMarkupRenderer_110852b4621.renderPageMarkup($PageMarkupRenderer_110852b
4621.java)
> > > >         at
org.apache.tapestry.internal.services.PageResponseRendererImpl.renderPageRes
ponse(PageResponseRendererImpl.java:45)
> > > >         at
$PageResponseRenderer_110852b45e1.renderPageResponse($PageResponseRenderer_1
10852b45e1.java)
> > > >         at
org.apache.tapestry.internal.services.DefaultRequestExceptionHandler.handleR
equestException(DefaultRequestExceptionHandler.java:56)
> > > >         at
$RequestExceptionHandler_110852b45b8.handleRequestException($RequestExceptio
nHandler_110852b45b8.java)
> > > >         at
org.apache.tapestry.services.TapestryModule$6.service(TapestryModule.java:52
3)
> > > >         at
$RequestHandler_110852b45f4.service($RequestHandler_110852b45f4.java)
> > > >         at
org.apache.tapestry.internal.services.StaticFilesFilter.service(StaticFilesF
ilter.java:56)
> > > >         at
$RequestHandler_110852b45f4.service($RequestHandler_110852b45f4.java)
> > > >         at
org.apache.tapestry.internal.services.LocalizationFilter.service(Localizatio
nFilter.java:43)
> > > >         at
$RequestHandler_110852b45f4.service($RequestHandler_110852b45f4.java)
> > > >         at
org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke(CheckFo
rUpdatesFilter.java:91)
> > > >         at
org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke(CheckFo
rUpdatesFilter.java:82)
> > > >         at
org.apache.tapestry.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentB
arrier.java:77)
> > > >         at
org.apache.tapestry.internal.services.CheckForUpdatesFilter.service(CheckFor
UpdatesFilter.java:104)
> > > >         at
$RequestHandler_110852b45f4.service($RequestHandler_110852b45f4.java)
> > > >         at
$RequestHandler_110852b45ef.service($RequestHandler_110852b45ef.java)
> > > >         at
org.apache.tapestry.services.TapestryModule$3.service(TapestryModule.java:40
2)
> > > >         at
$HttpServletRequestHandler_110852b45ee.service($HttpServletRequestHandler_11
0852b45ee.java)
> > > >         at
org.apache.tapestry.TapestryFilter.doFilter(TapestryFilter.java:114)
> > > >         at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:202)
> > > >         at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:173)
> > > >         at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.ja
va:96)
> > > >         at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:202)
> > > >         at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:173)
> > > >         at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:213)
> > > >         at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:178)
> > > >         at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssoci
ationValve.java:175)
> > > >         at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:
74)
> > > >         at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126
)
> > > >         at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105
)
> > > >         at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:107)
> > > >         at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> > > >         at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
> > > >         at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processC
onnection(Http11BaseProtocol.java:664)
> > > >         at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.jav
a:527)
> > > >         at
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThre
ad.java:112)
> > > >         at java.lang.Thread.run(Thread.java:595)
> > > >
> > > > ----------------------------------------------------------------
> > > > ----- To unsubscribe, e-mail: 
> > > > users-unsubscribe@tapestry.apache.org
> > > > For additional commands, e-mail: users-help@tapestry.apache.org
> > > >
> > > >
> > >
> > >
> > > --
> > > Howard M. Lewis Ship
> > > TWD Consulting, Inc.
> > > Independent J2EE / Open-Source Java Consultant Creator and PMC 
> > > Chair, Apache Tapestry Creator, Apache HiveMind
> > >
> > > Professional Tapestry training, mentoring, support and project 
> > > work.  http://howardlewisship.com
> > >
> > > ------------------------------------------------------------------
> > > --- 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



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


Mime
View raw message