[T5]Need help,why cant found the class?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[T5]Need help,why cant found the class?

Oliver Lee
hi,all good day!

i get the following exception when startup my application,

2008-07-18 14:09:46,125 INFO  [org.apache.catalina.core.StandardWrapper]
Waiting for 1 instance(s) to be deallocated
2008-07-18 14:09:46,531 ERROR [jumpstart.web.pages.Index] Render queue error
in BeginRender[Index:pagelink_6]: java.lang.ClassNotFoundException: caught
an exception while obtaining a class file for
org.apache.tapestry5.corelib.components.PropertyDisplay
org.apache.tapestry5.ioc.internal.util.TapestryException:
java.lang.ClassNotFoundException: caught an exception while obtaining a
class file for org.apache.tapestry5.corelib.components.PropertyDisplay [at
classpath:jumpstart/web/pages/Index.tml, line 48, column 65]
    at
org.apache.tapestry5.internal.structure.ComponentPageElementImpl.invoke(ComponentPageElementImpl.java:905)
    at
org.apache.tapestry5.internal.structure.ComponentPageElementImpl.access$100(ComponentPageElementImpl.java:50)
    at
org.apache.tapestry5.internal.structure.ComponentPageElementImpl$11.render(ComponentPageElementImpl.java:338)
    at
org.apache.tapestry5.internal.services.RenderQueueImpl.run(RenderQueueImpl.java:68)
    at
org.apache.tapestry5.internal.services.PageRenderQueueImpl.render(PageRenderQueueImpl.java:108)
    at
$PageRenderQueue_11b34c987d9.render($PageRenderQueue_11b34c987d9.java)
    at
$PageRenderQueue_11b34c987d7.render($PageRenderQueue_11b34c987d7.java)
    at
org.apache.tapestry5.services.TapestryModule$14.renderMarkup(TapestryModule.java:1128)
    at
org.apache.tapestry5.services.TapestryModule$23.renderMarkup(TapestryModule.java:1472)
    at
$MarkupRenderer_11b34c987dd.renderMarkup($MarkupRenderer_11b34c987dd.java)
    at
org.apache.tapestry5.services.TapestryModule$22.renderMarkup(TapestryModule.java:1453)
    at
$MarkupRenderer_11b34c987dd.renderMarkup($MarkupRenderer_11b34c987dd.java)
    at
org.apache.tapestry5.services.TapestryModule$21.renderMarkup(TapestryModule.java:1435)
    at
$MarkupRenderer_11b34c987dd.renderMarkup($MarkupRenderer_11b34c987dd.java)
    at
org.apache.tapestry5.services.TapestryModule$20.renderMarkup(TapestryModule.java:1415)
    at
$MarkupRenderer_11b34c987dd.renderMarkup($MarkupRenderer_11b34c987dd.java)
    at
$MarkupRenderer_11b34c987d6.renderMarkup($MarkupRenderer_11b34c987d6.java)
    at
org.apache.tapestry5.internal.services.PageMarkupRendererImpl.renderPageMarkup(PageMarkupRendererImpl.java:55)
    at
$PageMarkupRenderer_11b34c987d4.renderPageMarkup($PageMarkupRenderer_11b34c987d4.java)
    at
org.apache.tapestry5.internal.services.PageResponseRendererImpl.renderPageResponse(PageResponseRendererImpl.java:57)
    at
$PageResponseRenderer_11b34c987ce.renderPageResponse($PageResponseRenderer_11b34c987ce.java)
    at
org.apache.tapestry5.internal.services.PageRenderRequestHandlerImpl.handle(PageRenderRequestHandlerImpl.java:59)
    at
org.apache.tapestry5.services.TapestryModule$28.handle(TapestryModule.java:1672)
    at
$PageRenderRequestHandler_11b34c987cf.handle($PageRenderRequestHandler_11b34c987cf.java)
    at
$PageRenderRequestHandler_11b34c987a0.handle($PageRenderRequestHandler_11b34c987a0.java)
    at
org.apache.tapestry5.internal.services.PageRenderDispatcher.process(PageRenderDispatcher.java:97)
    at
org.apache.tapestry5.internal.services.PageRenderDispatcher.dispatch(PageRenderDispatcher.java:83)
    at $Dispatcher_11b34c987a9.dispatch($Dispatcher_11b34c987a9.java)
    at $Dispatcher_11b34c98799.dispatch($Dispatcher_11b34c98799.java)
    at
org.apache.tapestry5.services.TapestryModule$12.service(TapestryModule.java:938)
    at
org.apache.tapestry5.internal.services.LocalizationFilter.service(LocalizationFilter.java:42)
    at $RequestHandler_11b34c9879a.service($RequestHandler_11b34c9879a.java)
    at
org.apache.tapestry5.services.TapestryModule$2.service(TapestryModule.java:586)
    at $RequestHandler_11b34c9879a.service($RequestHandler_11b34c9879a.java)
    at
org.apache.tapestry5.internal.services.RequestErrorFilter.service(RequestErrorFilter.java:26)
    at $RequestHandler_11b34c9879a.service($RequestHandler_11b34c9879a.java)
    at
org.apache.tapestry5.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:79)
    at $RequestHandler_11b34c9879a.service($RequestHandler_11b34c9879a.java)
    at
org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:93)
    at
org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:84)
    at
org.apache.tapestry5.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java:75)
    at
org.apache.tapestry5.internal.services.CheckForUpdatesFilter.service(CheckForUpdatesFilter.java:106)
    at $RequestHandler_11b34c9879a.service($RequestHandler_11b34c9879a.java)
    at $RequestHandler_11b34c98792.service($RequestHandler_11b34c98792.java)
    at
org.apache.tapestry5.services.TapestryModule$11.service(TapestryModule.java:918)
    at
org.apache.tapestry5.internal.services.IgnoredPathsFilter.service(IgnoredPathsFilter.java:62)
    at
$HttpServletRequestFilter_11b34c98791.service($HttpServletRequestFilter_11b34c98791.java)
    at
$HttpServletRequestHandler_11b34c98793.service($HttpServletRequestHandler_11b34c98793.java)
    at
$HttpServletRequestHandler_11b34c98790.service($HttpServletRequestHandler_11b34c98790.java)
    at org.apache.tapestry5.TapestryFilter.doFilter(TapestryFilter.java:168)
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
    at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
    at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
    at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
    at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
    at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
    at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
    at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
    at java.lang.Thread.run(Thread.java:595)
Caused by: org.apache.tapestry5.ioc.internal.util.TapestryException:
java.lang.ClassNotFoundException: caught an exception while obtaining a
class file for org.apache.tapestry5.corelib.components.PropertyDisplay [at
classpath:org/apache/tapestry5/corelib/components/BeanDisplay.tml, line 11,
column 93]
    at
org.apache.tapestry5.internal.services.PageElementFactoryImpl.newComponentElement(PageElementFactoryImpl.java:234)
    at
$PageElementFactory_11b34c987af.newComponentElement($PageElementFactory_11b34c987af.java)
    at
org.apache.tapestry5.internal.services.PageLoaderProcessor.startComponent(PageLoaderProcessor.java:656)
    at
org.apache.tapestry5.internal.services.PageLoaderProcessor.loadTemplateForComponent(PageLoaderProcessor.java:501)
    at
org.apache.tapestry5.internal.services.PageLoaderProcessor.workComponentQueue(PageLoaderProcessor.java:808)
    at
org.apache.tapestry5.internal.services.PageLoaderProcessor.loadPage(PageLoaderProcessor.java:393)
    at
org.apache.tapestry5.internal.services.PageLoaderImpl.loadPage(PageLoaderImpl.java:59)
    at $PageLoader_11b34c987ad.loadPage($PageLoader_11b34c987ad.java)
    at
org.apache.tapestry5.internal.services.PagePoolCache.checkout(PagePoolCache.java:210)
    at
org.apache.tapestry5.internal.services.PagePoolImpl.checkout(PagePoolImpl.java:107)
    at $PagePool_11b34c987ac.checkout($PagePool_11b34c987ac.java)
    at
org.apache.tapestry5.internal.services.RequestPageCacheImpl.get(RequestPageCacheImpl.java:43)
    at $RequestPageCache_11b34c987ab.get($RequestPageCache_11b34c987ab.java)
    at $RequestPageCache_11b34c987aa.get($RequestPageCache_11b34c987aa.java)
    at
org.apache.tapestry5.internal.services.LinkFactoryImpl.createPageLink(LinkFactoryImpl.java:273)
    at
$LinkFactory_11b34c987b0.createPageLink($LinkFactory_11b34c987b0.java)
    at
org.apache.tapestry5.internal.structure.PageImpl.createPageLink(PageImpl.java:161)
    at
org.apache.tapestry5.internal.structure.InternalComponentResourcesImpl.createPageLink(InternalComponentResourcesImpl.java:133)
    at
org.apache.tapestry5.corelib.components.PageLink.beginRender(PageLink.java:61)
    at
org.apache.tapestry5.corelib.components.PageLink.beginRender(PageLink.java)
    at
org.apache.tapestry5.internal.structure.ComponentPageElementImpl$11$1.run(ComponentPageElementImpl.java:334)
    at
org.apache.tapestry5.internal.structure.ComponentPageElementImpl.invoke(ComponentPageElementImpl.java:895)
    ... 67 more
Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException:
caught an exception while obtaining a class file for
org.apache.tapestry5.corelib.components.PropertyDisplay
    at
org.apache.tapestry5.internal.services.ComponentInstantiatorSourceImpl.findClass(ComponentInstantiatorSourceImpl.java:256)
    at
org.apache.tapestry5.internal.services.ComponentInstantiatorSourceImpl.findInstantiator(ComponentInstantiatorSourceImpl.java:238)
    at
$ComponentInstantiatorSource_11b34c9877f.findInstantiator($ComponentInstantiatorSource_11b34c9877f.java)
    at
org.apache.tapestry5.internal.services.PageElementFactoryImpl.newComponentElement(PageElementFactoryImpl.java:211)
    ... 88 more
Caused by: java.lang.ClassNotFoundException: caught an exception while
obtaining a class file for
org.apache.tapestry5.corelib.components.PropertyDisplay
    at javassist.Loader.findClass(Loader.java:359)
    at
org.apache.tapestry5.internal.services.ComponentInstantiatorSourceImpl$PackageAwareLoader.findClass(ComponentInstantiatorSourceImpl.java:78)
    at javassist.Loader.loadClass(Loader.java:311)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at
org.apache.tapestry5.internal.services.ComponentInstantiatorSourceImpl.findClass(ComponentInstantiatorSourceImpl.java:252)
    ... 91 more
Caused by: java.lang.IllegalStateException: Proxy for service
InternalRequestGlobals is no longer active because the IOC Registry has been
shut down.
    at
org.apache.tapestry5.ioc.internal.services.JustInTimeObjectCreator.createObject(JustInTimeObjectCreator.java:59)
    at
$InternalRequestGlobals_11b34c9878d._delegate($InternalRequestGlobals_11b34c9878d.java)
    at
$InternalRequestGlobals_11b34c9878d.storeClassLoaderException($InternalRequestGlobals_11b34c9878d.java)
    at
org.apache.tapestry5.internal.services.ComponentInstantiatorSourceImpl.onLoad(ComponentInstantiatorSourceImpl.java:179)
    at javassist.Loader.findClass(Loader.java:340)
    ... 95 more
2008-07-18 14:09:46,734 ERROR
[org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/jumpstart].[default]]
Servlet.service() for servlet default threw exception
java.lang.NullPointerException
    at org.apache.tapestry5.TapestryFilter.doFilter(TapestryFilter.java:174)
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
    at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
    at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
    at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
    at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
    at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
    at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
    at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
    at java.lang.Thread.run(Thread.java:595)

Any help?thanks!!
Reply | Threaded
Open this post in threaded view
|

Re: [T5]Need help,why cant found the class?

Michael Capper
Hi,
I had this Exception once as I created a small app which would check through a database and send some emails. First try I multithreaded it too much, and indeed, the main method would be long finished and closed, shutting down the IOC Registry with it, before all the emailing was done (which needed some values from the database through some service). I made sure the main-method would wait till all threads were done using the service, before i let it end.

Hope it helps.
Michael


Oliver Lee wrote
hi,all good day!

i get the following exception when startup my application,

Caused by: java.lang.IllegalStateException: Proxy for service
InternalRequestGlobals is no longer active because the IOC Registry has been
shut down.
    at
org.apache.tapestry5.ioc.internal.services.JustInTimeObjectCreator.createObject(JustInTimeObjectCreator.java:59)
 

Any help?thanks!!