Hello everybody, I am having a peculiar problem here. And I cannot figure out where I am going wrong.
I create a .ear through a ANT build.xml. Later I ejbdeploy the .ear file from the command line. However the build fails and gives me the following:
[*Error] /checkstatus: The project was not built since its classpath is incomplete. Can not find the class file for com.lds.pay.app.exceptions.LDSException. Fix the classpath then try rebuilding this project
[*Error] ejbModule/com/lds/pay/app/core/checkstatus/EJSRemoteStatelessChangeChec kStatus_36918ee3.java(0): This compilation unit indirectly references the missing type com.lds.pay.app.exceptions.LDSException (typically some required class file is referencing a type outside the classpath)
I have also set the JAVA_HOME to the Websphere\Appserver\java.
I have the .jar file which includes all class files under com.lds.pay.app.exceptions and it is very much a part of the .ear that I am trying to ejbdeploy.
The EJBDeploy I am trying to do is not an ANT task, rather a commandline command.
However the .ear that I have created is made by the ANT tasks of jar and ear
The situation is this. Previously, the project was built using a batch processing file as the expertise and know how of ANT was minimal at the time the project went live, which was around three and a half years back.
Now, with increase in enhancements and improvements which the client is requesting, it is getting cumbersome to build the project. So the migration to ANT.
We were able to create the .ear file of the project with ANT. Also the .jars and other class files in the ANT built .ear is the same as the ones created using the batch processing file. The only difference being the MANIFEST.MF files. The ones created by batch processing file has the classpaths and the ones created by ANT do not.
I also went through ejbdeploy task of ANT. It semed to be too complicated. So decided to do a commandline ejbdeploy using the ejbdeploy.bat of the websphere appserver.
Now while doing this; I was getting the previously stated error.
If anyone can put some light on where I am going wrong, I would be thankful.
This could be a websphere question about whether there is a special directory within the ear where you put jars to make them available to an ejbjar...
It could be an ant question. You could specify the classpath for the ejb jar in the jar's manifest. You can specify a manifest file to use with the manifest attribute of the jar task. Or, the jar task can have a nested manifest element and the manifest element can have a nested attribute element.