I have a simple struts project it compiles good and also i can test that one perfeclty when i compile it Straight away using javac..and pkg it But when i try building it using ant build.xml file....then when i try testing that appliaction it throws this error Exception creating bean of the calss org.antproj.forms.SearchForm
Since you're probably using Ant to build a WAR file for deployment to your webapp server, it's most likely that the WAR task didn't include that class in the WAR.
To see what's in a WAR, use the JAR command, since a WAR is just a special form of JAR, just as JAR is a special form of ZIP:
jar -tvf myfile.war
See if anything else is missing - it may give a clue. If not, run ant with the "-v" flag and you'll get very detailed messages about the build process.
"privilege" comes from the Latin words for "private" and "law" (legal) and dates to feudal times. To "claim privilege" meant that you were above the laws that applied to the common people.
posted 13 years ago
hi thanks for your reply.... i could see all the java files everything in position..in war file.. <br> my heirarchy is like this <br> antproj / WEB-INF /build/com/antproj/actions/SearchAction.java <br> <p> build/com/antproj/forms/SearchForm.java <br> <p> when i compile the java files and drop the classes into the resp folders and package it ,it worked fine but when i use the ant to build it directly it throws <br>Excetpion could not create bean of class com.antproj.forms.SearchForm.....<br> and all the package naming are also fine... has the build.xml got anything to do with that ???