Taran Singh
Taran Singh

Reputation: 603

Glassfish 3.1.2 lib/jar referral from ejb.jar issue

I have been working on migrating our code base onto Glassfish 3.1.2 using Java 7. I have been struck with this issue, where the deployment of EAR fails. I have an EAR, having modules, ejb.jar, couple of war files, along with lib directory having jar files to be shared across other modules within the EAR.

The issue is that ejb.jar refers to some spring bean definitions in lib/abc.jar file and is unable to find the spring file. The structure is like this:

EAR

But the ejb jar cant load the bean definitions from lib/.jar

I have tried using the Manifest.MF inside the ejb.jar to refer to lib/abc.jar, but with no luck....

Not sure if there is some sort of problem with new GF 3.1.2, why its not able to respect the Manifest file. Any help will be much appreciated!

Upvotes: 1

Views: 234

Answers (1)

Taran Singh
Taran Singh

Reputation: 603

It looks like the JVM doesnt like the manually edited Manifest file and my guess is that windows is adding something like a carriage return etc. I managed to get it working by using the ant to generate the manifest file instead.

Thanks and hope that helps someone.

Upvotes: 1

Related Questions