MyEclipse: Q - Novice building upon JSFLoginDemo sample DarthLuch - Apr 24, 2006 - 07:22 PM Post subject: Q - Novice building upon JSFLoginDemo sample
Hello,
I'm trying to learn web dev with myeclipse. I'm using the JSFLoginDemo sample. OUt of the box the sample runs fine. What I wanted to do was add to the UserBean and try to use my own classes.
I added a jar file to the build path of the project. I then add a field from that jar right next to the userName and password fields already in UserBean.java. Without doing anything else, I deploy the project. It "crashes" saying it couldn't find the classes I put into the UserBean.java. I look at the \webapps\JSFLoginDemo\WEB-INF\lib and I can see the jar file I added did get deployed there. What is wrong?support-rkalla - Apr 25, 2006 - 04:18 PM Post subject:
Strange, sounds like things are getting deployed alright. When you added the JAR did you put it in WEB-INF/lib dir in your project? Also, what is the exactly exception?DarthLuch - Apr 25, 2006 - 08:05 PM Post subject:
Yes, I tried placing it directly in the project's web-inf/lib folder as well. It gets deployed fine. The exception message is pasted below. Is there any other procedure one must do in order to use a class as a field if the class is contained within a jar file?
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.15 logs.
Apache Tomcat/5.5.15support-rkalla - Apr 25, 2006 - 08:28 PM Post subject:
Are the class and package *really* names like that, with underscores or did you accidentally type those? Dropping the JAR into the /lib folder and making sure it's deployed is really the only thing you should do. Try restarting the app server, maybe the classloader didn't pick up the new JAR.