This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes ClassNotFoundException for LabelValueBean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "ClassNotFoundException for LabelValueBean" Watch "ClassNotFoundException for LabelValueBean" New topic

ClassNotFoundException for LabelValueBean

Sam Egbert

Joined: Apr 18, 2005
Posts: 12
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 Method)
at java.lang.ClassLoader.loadClass(
at sun.misc.Launcher$AppClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(
at org.apache.commons.digester.ObjectCreateRule.begin(
at org.apache.commons.digester.Rule.begin(
at org.apache.commons.digester.Digester.startElement(

Any help would be greatly appreciated.
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
The only thing I can think of is that you may want to check to see if you have the latest version of struts.jar. I'm not sure if this class was included in the early versions or not.

Consultant, Sima Solutions
Sam Egbert

Joined: Apr 18, 2005
Posts: 12
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 ]
Sam Egbert

Joined: Apr 18, 2005
Posts: 12
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.

I agree. Here's the link:
subject: ClassNotFoundException for LabelValueBean
Similar Threads
Sealing Violation
help with marcus questions
package javax.servlet.http does not exist
why is this happening REALLY URGENT