Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Struts - A MVC web framework
Tomcat - JSP/Servlet container
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
JSP - A mailing list about Java Server Pages specification and reference
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
reloading classes and struts

reloading classes and struts

2004-01-23       - By Hume, John - NA US HQ Delray

 Back
Reply:     1     2  

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:kurt@(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 Source code of java.lang.ClassNotFoundException: com.myapp.webapp.beans.MemberBean
        at java.net.URLClassLoader Source code of 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 (See http://ang-2.ora-code.com).0.jar
commons-logging.jar
commons-validator.jar
displaytag-1 (See http://tag-1.ora-code.com).0-b2.jar
dom.jar
jakarta-oro-2 (See http://oro-2.ora-code.com).0.7.jar
jakarta-regexp-1 (See http://exp-1.ora-code.com).2.jar
jaxen-full.jar
jaxp-api.jar
jcommon-0 (See http://mon-0.ora-code.com).7.1.jar
jdbc2_0-stdext.jar
jfreechart-0 (See http://art-0.ora-code.com).9.4.jar
jstl.jar
mail.jar
mm.mysql-2 (See http://sql-2.ora-code.com).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: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)

-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)




©2008 junlu.com - Jax Systems, LLC, U.S.A.