Problem deploying EAR from folder structure
I have one EAR, which has 2 JARs in it:
1. Just a stateless bean in one JAR
2. Just a web services stateless bean in the other.
When all this is packaged as a single EAR file I am able to deploy it on the server, which is GLASSFISH V2 b33e.
If I try to deploy this Enterprise Application directly from the folder structure (therefore not packaging it in EAR - using the "Browse Folders ..." button) - all fails.
After some hours of debugging the source of Glassfish I understood that the directory:
domain1/generated/ejb/j2ee-apps/testApp is not getting pre-created, upon deployment. However, the JAXB classes for the web services are supposed to be there.
What happens next is that
FileUtils.safeIsDirectory() returns false, when called in:
DeploymentRequest.getStubsDirectory() which, at later point, causes
NullPointerExpection. Actually this NPE is not reported anywhere in the server logs. You see just:
If you pre-create the directory (manually) just before you go with the DEPLOY - all is working OK and the JAXB classes are generated and you can see them in the
Is there anything I should do in order to tell GLASSFIH to pre-create this directory?
If not, is this a know issue? I was not able to find some bug logged for this.
It is a minor, but annoying if you work (during development using Eclipse) with non-packaged ear folder instead of single packaged .ear file.
If requested I can upload a sample EA, which reproduces this issue.
some stack trace: