RE: reloading classes and struts

2004-01-23 Thread Hume, John - NA US HQ Delray
Do you have struts.jar in common/lib?  It sounds like you might.

(If struts were getting loaded by the web app classloader, then it could see
your WEB-INF/classes without you doing anything to the classpath.)

-john.

-Original Message-
From: Kurt Overberg [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 22, 2004 11:03 AM
To: Tomcat Users List
Subject: reloading classes and struts


Hi all,

I've poked around a bit and have been fairly unsuccesful in finding and 
answer to this problem.

I'm running tomcat 4.1.18 on Debian (woody).  I'm using struts (1.0) and 
for the longest time, everything was great.  I could reload my classes 
using the manager server reload feature.  Then, a few months ago, it 
stopped reloading my classes when I'd tell it to.  It would say they're 
reloaded, but they're really not.   I'm not sure exactly when this 
started happening, so something must've changed in my system.

My question is- is there anything in my webapp that could cause it to 
not actually reload the classes?  Static classes?  That sort of thing? 
One thing I did do was play around with moving to struts 1.1.  Could 
there be some version of some library thats screwing me up?

Another thing I'm not sure about is where to keep all the libraries I'm 
using.  Generally, I'm keeping all my .jar files in my WEB-INF/lib 
directory.  I'm wondering if keeping ALL my jar files there is screwing 
something up.  I don't have anything in my server/shared/lib directory. 
  I've listed the entries of my WEB-INF/lib at the bottom of my email.

One other somewhat related problem has to do with struts.  If I don't 
include my WEB-INF/classes directory in my classpath (set in 
setclasspath.sh), then I get:

HTTP Status 500 - No action instance for path

...when accessing a struts action form.  An error appears in my 
localhost_log to the effect of:

2004-01-22 10:59:44 StandardContext[]:  Mapped to servlet 'action' with 
servlet path '/admin/MemberInfo.do' and path info 'null' and update=true
2004-01-22 10:59:44 action: Error creating ActionForm instance of class 
'com.bzzagent.webapp.beans.MemberBean'
java.lang.ClassNotFoundException: com.myapp.webapp.beans.MemberBean
 at java.net.URLClassLoader$1.run(URLClassLoader.java:198)


The weird part is that if I DO include my WEB-INF/classes dir in 
setclasspath.sh, struts is happy, but then my classes won't reload.

SO- to sum up:

1. Including myapp/WEB-INF/classes in setclasspath.sh makes struts 
happy, but makes it so I can't reload my classes

2. Not including myapp/WEB-INF/classes in setclasspath.sh breaks struts, 
but reloading actually appears to work.  Auto-detection of classes 
changing also appears to work (reload=true in server.xml)

Can anyone explain this behavior?

Thanks for any light someone can shed!

/kurt



Files in WEB-INF/lib:

activation.jar
application.jar
batik-awt-util.jar
batik-dom.jar
batik-svggen.jar
batik-util.jar
batik-xml.jar
cewolf.jar
commons-beanutils.jar
commons-collections.jar
commons-lang-2.0.jar
commons-logging.jar
commons-validator.jar
displaytag-1.0-b2.jar
dom.jar
jakarta-oro-2.0.7.jar
jakarta-regexp-1.2.jar
jaxen-full.jar
jaxp-api.jar
jcommon-0.7.1.jar
jdbc2_0-stdext.jar
jfreechart-0.9.4.jar
jstl.jar
mail.jar
mm.mysql-2.0.11-bin.jar
pg73jdbc3.jar
pgjdbc2.jar
postgresql.jar
rchart.jar
sax.jar
saxpath.jar
session.jar
standard.jar
struts.jar
utils.jar




-
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]



reloading classes and struts

2004-01-22 Thread Kurt Overberg
Hi all,

I've poked around a bit and have been fairly unsuccesful in finding and 
answer to this problem.

I'm running tomcat 4.1.18 on Debian (woody).  I'm using struts (1.0) and 
for the longest time, everything was great.  I could reload my classes 
using the manager server reload feature.  Then, a few months ago, it 
stopped reloading my classes when I'd tell it to.  It would say they're 
reloaded, but they're really not.   I'm not sure exactly when this 
started happening, so something must've changed in my system.

My question is- is there anything in my webapp that could cause it to 
not actually reload the classes?  Static classes?  That sort of thing? 
One thing I did do was play around with moving to struts 1.1.  Could 
there be some version of some library thats screwing me up?

Another thing I'm not sure about is where to keep all the libraries I'm 
using.  Generally, I'm keeping all my .jar files in my WEB-INF/lib 
directory.  I'm wondering if keeping ALL my jar files there is screwing 
something up.  I don't have anything in my server/shared/lib directory. 
 I've listed the entries of my WEB-INF/lib at the bottom of my email.

One other somewhat related problem has to do with struts.  If I don't 
include my WEB-INF/classes directory in my classpath (set in 
setclasspath.sh), then I get:

HTTP Status 500 - No action instance for path

...when accessing a struts action form.  An error appears in my 
localhost_log to the effect of:

2004-01-22 10:59:44 StandardContext[]:  Mapped to servlet 'action' with 
servlet path '/admin/MemberInfo.do' and path info 'null' and update=true
2004-01-22 10:59:44 action: Error creating ActionForm instance of class 
'com.bzzagent.webapp.beans.MemberBean'
java.lang.ClassNotFoundException: com.myapp.webapp.beans.MemberBean
at java.net.URLClassLoader$1.run(URLClassLoader.java:198)

The weird part is that if I DO include my WEB-INF/classes dir in 
setclasspath.sh, struts is happy, but then my classes won't reload.

SO- to sum up:

1. Including myapp/WEB-INF/classes in setclasspath.sh makes struts 
happy, but makes it so I can't reload my classes

2. Not including myapp/WEB-INF/classes in setclasspath.sh breaks struts, 
but reloading actually appears to work.  Auto-detection of classes 
changing also appears to work (reload=true in server.xml)

Can anyone explain this behavior?

Thanks for any light someone can shed!

/kurt



Files in WEB-INF/lib:

activation.jar
application.jar
batik-awt-util.jar
batik-dom.jar
batik-svggen.jar
batik-util.jar
batik-xml.jar
cewolf.jar
commons-beanutils.jar
commons-collections.jar
commons-lang-2.0.jar
commons-logging.jar
commons-validator.jar
displaytag-1.0-b2.jar
dom.jar
jakarta-oro-2.0.7.jar
jakarta-regexp-1.2.jar
jaxen-full.jar
jaxp-api.jar
jcommon-0.7.1.jar
jdbc2_0-stdext.jar
jfreechart-0.9.4.jar
jstl.jar
mail.jar
mm.mysql-2.0.11-bin.jar
pg73jdbc3.jar
pgjdbc2.jar
postgresql.jar
rchart.jar
sax.jar
saxpath.jar
session.jar
standard.jar
struts.jar
utils.jar


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