What made you think it should work with these files in shared/lib?  Have you
read Tomcat documentation about this and class loaders in general?

Sergiy

-----Original Message-----
From: Alexander Kolesnikov [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 10, 2005 3:51 PM
To: Tapestry users
Subject: Configuration mess

In a successfully working Tapestry application I decided to move two
libraries, jdom.jar and tapestry-contrib-3.0.3.jar from WEB-INF/lib to
Tomcats shared/lib and made appropriate changes in the project's Java
Build Path. After this the hell unleashed. 

The Home page loads successfully but trying to get any other page I see
some really strange exceptions (see below). And this is for pages which
worked perfectly well and I didn't change them...

It is interesting that when I uploaded all the application to my test
server, everything worked fine there. So is it a problem with my
Eclipse/Spindle configuration or what?

Thanks,

Alexander

************************************************************

Here is what I get trying to load one page:

org.apache.tapestry.BindingException 

Unable to resolve expression 'popup' for com.some.app.Thebox
[EMAIL PROTECTED] 

binding: ExpressionBinding[thebox popup] location: context:/WEB-
INF/thebox.page, line 99, column 54     

ognl.OgnlException 

popup     

java.lang.NoClassDefFoundError
org/apache/tapestry/link/DefaultLinkRenderer Stack Trace: 
      * java.lang.ClassLoader.defineClass0(Native Method)
      * java.lang.ClassLoader.defineClass(ClassLoader.java:539) 
      * etc...

and here is the binding which is referenced in the error message: 

<component id="popup" type="DirectLink">
        <binding name="listener" expression="listeners.onMoreVisitors"/> 
        <binding name="renderer" expression="popup"/>   
</component>

and here is the getter for it:

public ILinkRenderer getPopup() {
                PopupLinkRenderer pop = new PopupLinkRenderer();
                pop.setFeatures
("resizable,scrollbars,top=100,left=100,height=450,width=400");
                return pop;
        }

This worked pretty fine before...

**************************************************************

And when I am trying to load some other page, I receive a huge number of
messages, here are the first few lines:

org.apache.tapestry.ApplicationRuntimeException 

Could not load class org.apache.tapestry.contrib.form.FormConditional
from WebappClassLoader delegate: false repositories: /WEB-INF/classes/
----------> Parent Classloader: StandardClassLoader delegate: true
repositories: file:/home/sundraw/jakarta-tomcat-5.0.28/shared/classes/
file:/home/sundraw/jakarta-tomcat-5.0.28/shared/lib/javassist.jar
file:/home/sundraw/jakarta-tomcat-5.0.28/shared/lib/jakarta-
oro-2.0.6.jar file:/home/sundraw/jakarta-
tomcat-5.0.28/shared/lib/tapestry-3.0.3.jar file:/home/sundraw/jakarta-
tomcat-5.0.28/shared/lib/commons-codec-1.2.jar
file:/home/sundraw/jakarta-tomcat-5.0.28/shared/lib/jdom.jar
file:/home/sundraw/jakarta-tomcat-5.0.28/shared/lib/commons-
fileupload-1.0.jar

etc...

----------> Parent Classloader: sun.misc.Launcher
[EMAIL PROTECTED] : org/apache/tapestry/form/AbstractFormComponent

and then

java.lang.NoClassDefFoundError
org/apache/tapestry/form/AbstractFormComponent 
Stack Trace: 
      * java.lang.ClassLoader.defineClass0(Native Method)
      * java.lang.ClassLoader.defineClass(ClassLoader.java:539)


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to