This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
I am trying to run the MailReader sample application. I have struts.jar and all the other common jars in the WEB-INF/lib directory.
I get the following exception when I try to run MailReader:
[#|2005-04-18T21:15:52.531-0500|SEVERE|sun-appserver-pe8.1|org.apache.commons.digester.Digester|_ThreadID=10;|Begin event threw exception java.lang.ClassNotFoundException: org.apache.struts.util.LabelValueBean at java.net.URLClassLoader$1.run(URLClassLoader.java:199) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:187) at java.lang.ClassLoader.loadClass(ClassLoader.java:289) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274) at java.lang.ClassLoader.loadClass(ClassLoader.java:235) at org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:252) at org.apache.commons.digester.Rule.begin(Rule.java:200) at org.apache.commons.digester.Digester.startElement(Digester.java:1273) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:485)...
I am making some progress by cleaning up some duplicate jars I have floating around my classpath. I will post my findings after a little more experimentation. [ April 19, 2005: Message edited by: Sam Egbert ]
Joined: Apr 18, 2005
The sample app had all the following jar files in the war under WEB-INF/lib.
There were duplicates in my app server directory (C:\Sun\AppServer\lib). I removed duplicates. Then I moved the jar files to and from the sample app and the app server trying different combinations. The only configuration that works is when I remove all of these jar files from WEB-INF/lib in the war and put them in C:\Sun\AppServer\lib.
I don't know if this is the best configuration, but it is working for now.
subject: ClassNotFoundException for LabelValueBean