I'm running a Web application using RAD 7.0 and Websphere 6.1. I built the application, started the server and used 'Run on Server' option to publish my EAR to the server. It says 'Publishing successful' and I can see my EAR listed in Server->Admin Console->Istalled Applications. But when I run the application, I'm getting class not found exception for my servlets and other java classes in the EAR. When I checked the metadata folder in my workspace(\.metadata\.plugins\org.eclipse.wst.server.core\publish), I can see the files in EAR listed in the file publish0.xml, but there is a tmp0 folder(\.metadata\.plugins\org.eclipse.wst.server.core\tmp0) which doesn't have anything. I think my EAR file should be present in this folder and because of this, the server is not recognizing the class files.
Could somebody please tell me whether there I need to do any additional configuration. Any help would be highly appreciated.
The classes that are not being found, are they packaged in externally reference jar files, or are they in a project other than your web app.
My guess is you have two projects, maybe a Java project and a web project. At design time, you can see the Java class files in the IRAD Java project due to project build settings, but at compile time, the files are not being distributed with the ear file you are building, and as a result, you get classnotfoundexceptions all the time.
Export JUST THE EAR from RSA/IRAD and find the call files in question. Open up the jar files packaged in the EAR/WAR/JAR files and physically find the class in question. I bet it's not there. And if it is there, tell us where it is.
WinZip or any zip utility can be used to quickly open up an EAR file exported from Rational Application Developer.
Shyam V Krishnan
posted 11 years ago
As you suggested, I exported the EAR file from RAD and checked this. I can find all the classes in the EAR file. I feel, the EAR is not getting copied to the server even if it says Publishing successful.
I have similar problem as you. But I am using the rad 6.012. Do you know where I can find the deployed application in workspace. Even I can see the deployed project through wsadmin, but I can not run the jsp page on the server. Do you have any idea?
I have a similar kind of problem. I have deployed my ear application through RAD7 on WAS 6.1. When I go to \.metadata\.plugins\org.eclipse.wst.server.core\tmp0\ directory I can see a directory myEar.ear containing all the jars and my web/ejb projects.Yet i get ClassNotFoundError for many classes that are still in myEar.ear. Hence I end up adding the jar/folder containing those classes in ws.ext.dirs variable in server.xml so that server can locate it somehow. I am clueless as to why this happens. Has anyone run into similar kind of problem? I have tried looking to find an answer to this, but so far my efforts have gone futile.