You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Jason Dyer <jd...@bluetarp.com> on 2006/02/02 15:32:57 UTC
Tapestry loading twice?
Looking at my tomcat log, I noticed that it is loading hibernate twice (and
throwing an exception because of the missing annotation .jar, which is
expected behavior, I think.) Looking more closely, it seems to be loading
certain pages twice as well. My co-worker says that it also is loading the
HiveMind registry twice. Has anyone else seen this?
Here's the log (trimmed a bit for sanity.) Notice the first two lines are the
same warning. This was not due to a restart--my startup script deletes the
log.
09:21:11,991 WARN [] tapestry.page.ComponentTemplateLoader - Template for
component CustomerMain/$Border does not reference embedded components:
custNew, custEdit.
09:21:33,360 WARN [] tapestry.page.ComponentTemplateLoader - Template for
component CustomerMain/$Border does not reference embedded components:
custNew, custEdit.
09:21:34,198 INFO [] hivetranse.hibernate3.SessionFactoryBuilder -
initConfiguration
java.lang.ClassNotFoundException: org.hibernate.cfg.AnnotationConfiguration
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1338)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1187)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
<...>
09:21:36,757 WARN [] net.sf.ehcache.config.Configurator - No configuration
found. Configuring ehcache from ehcache-failsafe.xml found in the classpath:
jar:file:/home/jdyer/java/apache-tomcat-5.5.12/webapps/havoc/WEB-INF/lib/ehcache-1.1.jar!/ehcache-failsafe.xml
09:21:42,309 WARN [] tapestry.page.ComponentTemplateLoader - Template for
component CustomerEdit/$Border does not reference embedded components:
custNew, custEdit.
09:21:42,312 WARN [] tapestry.page.ComponentTemplateLoader - Template for
component CustomerEdit does not reference embedded components: billCopies,
taxIdValue, standingLabel.
09:21:43,200 INFO [] hivetranse.hibernate3.SessionFactoryBuilder -
initConfiguration
java.lang.ClassNotFoundException: org.hibernate.cfg.AnnotationConfiguration
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1338)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1187)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
<...>
--
Would you care to view the ruins of my good intentions?
--------------
Jason Dyer
BlueTarp Financial, inc.
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: Tapestry loading twice? [Solved]
Posted by Jason Dyer <jd...@bluetarp.com>.
disable-caching is set to true, so it's possible that is the reason for the
duplicate WARNings. It seems kind of odd that hibernate isn't getting
initialized between those two warnings, since the page does have a DAO, but
perhaps that's because the DAO is not being used until the second pass.
As it turns out, it was my own fault that the HiveMind registry was being
reloaded (and hence hibernate getting initialized twice.) I was using the
HiveMindRegistryPublishFilter (from hivetranse) to get the registry from an
ASO. That requires the HiveMindFilter which (unknown to me when I coded it)
creates it's own instance of the registry....
So far, I still haven't found a 'good' solution for injecting Tapestry's
HiveMind registry into an object, but I've decided to go a different route
for now, so it's kind of a moot point.
Thanks for the feedback,
-Jason
On Friday 03 February 2006 07:06, Kent Tong wrote:
> Jason Dyer <jdyer <at> bluetarp.com> writes:
> > 09:21:11,991 WARN [] tapestry.page.ComponentTemplateLoader - Template
> > for component CustomerMain/$Border does not reference embedded
> > components: custNew, custEdit.
> > 09:21:33,360 WARN [] tapestry.page.ComponentTemplateLoader - Template
> > for component CustomerMain/$Border does not reference embedded
> > components: custNew, custEdit.
>
> There are 22 seconds in-between. Maybe disable-caching is set to true so
> on a second request the component is loaded again.
>
> > 09:21:34,198 INFO [] hivetranse.hibernate3.SessionFactoryBuilder -
> > initConfiguration
> > java.lang.ClassNotFoundException:
> > org.hibernate.cfg.AnnotationConfiguration
>
> If you see this twice, probably the webapp has been reloaded (eg, due to
> a change to the java code) and thus the hivemind registry is initialized
> again.
>
> --
> Author of a book for learning Tapestry (http://www.agileskills2.org/EWDT)
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
--
'They've given us the answers,' he [Carrot] said. 'Perhaps we can find out
what the questions should have been.'
(Feet of Clay)
--------------
Jason Dyer
BlueTarp Financial, inc.
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: Tapestry loading twice?
Posted by Kent Tong <ke...@cpttm.org.mo>.
Jason Dyer <jdyer <at> bluetarp.com> writes:
> 09:21:11,991 WARN [] tapestry.page.ComponentTemplateLoader - Template for
> component CustomerMain/$Border does not reference embedded components:
> custNew, custEdit.
> 09:21:33,360 WARN [] tapestry.page.ComponentTemplateLoader - Template for
> component CustomerMain/$Border does not reference embedded components:
> custNew, custEdit.
There are 22 seconds in-between. Maybe disable-caching is set to true so
on a second request the component is loaded again.
> 09:21:34,198 INFO [] hivetranse.hibernate3.SessionFactoryBuilder -
> initConfiguration
> java.lang.ClassNotFoundException: org.hibernate.cfg.AnnotationConfiguration
If you see this twice, probably the webapp has been reloaded (eg, due to
a change to the java code) and thus the hivemind registry is initialized
again.
--
Author of a book for learning Tapestry (http://www.agileskills2.org/EWDT)
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: Tapestry loading twice?
Posted by Jason Dyer <jd...@bluetarp.com>.
On Thursday 02 February 2006 09:47, Geoff Longman wrote:
> A guess. Are you sure you don't have 2 copies of the tapestry jars in
> the classpath?
Pretty sure, yes. There is only one of each tapestry*.jar file in my webapp
directory (and none in tomcat/shared/lib) and only one reference to each in
the exception page classpath list.
BTW, this is using tomcat 5.5.x
Thanks,
-Jason
--
It is so soon that I am done for, I wonder what I was begun for.
-- Epitaph, Cheltenham Churchyard
wond--------------
Jason Dyer
BlueTarp Financial, inc.
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: Tapestry loading twice?
Posted by Geoff Longman <gl...@gmail.com>.
A guess. Are you sure you don't have 2 copies of the tapestry jars in
the classpath?
Geoff
On 2/2/06, Jason Dyer <jd...@bluetarp.com> wrote:
> Looking at my tomcat log, I noticed that it is loading hibernate twice (and
> throwing an exception because of the missing annotation .jar, which is
> expected behavior, I think.) Looking more closely, it seems to be loading
> certain pages twice as well. My co-worker says that it also is loading the
> HiveMind registry twice. Has anyone else seen this?
>
> Here's the log (trimmed a bit for sanity.) Notice the first two lines are the
> same warning. This was not due to a restart--my startup script deletes the
> log.
>
> 09:21:11,991 WARN [] tapestry.page.ComponentTemplateLoader - Template for
> component CustomerMain/$Border does not reference embedded components:
> custNew, custEdit.
> 09:21:33,360 WARN [] tapestry.page.ComponentTemplateLoader - Template for
> component CustomerMain/$Border does not reference embedded components:
> custNew, custEdit.
> 09:21:34,198 INFO [] hivetranse.hibernate3.SessionFactoryBuilder -
> initConfiguration
> java.lang.ClassNotFoundException: org.hibernate.cfg.AnnotationConfiguration
> at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1338)
> at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1187)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
> <...>
> 09:21:36,757 WARN [] net.sf.ehcache.config.Configurator - No configuration
> found. Configuring ehcache from ehcache-failsafe.xml found in the classpath:
> jar:file:/home/jdyer/java/apache-tomcat-5.5.12/webapps/havoc/WEB-INF/lib/ehcache-1.1.jar!/ehcache-failsafe.xml
> 09:21:42,309 WARN [] tapestry.page.ComponentTemplateLoader - Template for
> component CustomerEdit/$Border does not reference embedded components:
> custNew, custEdit.
> 09:21:42,312 WARN [] tapestry.page.ComponentTemplateLoader - Template for
> component CustomerEdit does not reference embedded components: billCopies,
> taxIdValue, standingLabel.
> 09:21:43,200 INFO [] hivetranse.hibernate3.SessionFactoryBuilder -
> initConfiguration
> java.lang.ClassNotFoundException: org.hibernate.cfg.AnnotationConfiguration
> at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1338)
> at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1187)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
> <...>
> --
> Would you care to view the ruins of my good intentions?
> --------------
> Jason Dyer
> BlueTarp Financial, inc.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
--
The Spindle guy. http://spindle.sf.net
Get help with Spindle:
http://lists.sourceforge.net/mailman/listinfo/spindle-user
Blog: http://jroller.com/page/glongman
Feature Updates: http://spindle.sf.net/updates
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org