- This topic has 7 replies, 2 voices, and was last updated 20 years, 8 months ago by
Riyad Kalla.
-
AuthorPosts
-
sopranoMemberHi
I just installed latest version of MyEclipse (3.8.1) that solved the problem of empty packaged deployment of Enterprise Applications.
However, there’s still a problem: packaged EAR files (as well as JAR and WAR) contains lowercase META-INF directories, that are not recognized by jboss. (I’m using JBoss 3.2.5 on XP system).
I know a workaround is to use exploded deployments but that drives me to the (big) problem of unusable hot deployments (JBoss locks used jars and MyEclipse is not anymore able to undeploy the EAR application).Thanks,
Umberto Cappellini
Riyad KallaMemberUmberto,
Are you checking the WAR file using WinZip? If so, please try and open the file with another archiver or better yet use jar xvf to unzip the file and see if meta-inf is lowercase. We ran down a VERY similar problem 2 months ago with a user adn it turns out WinZip has a performance option that doesn’t fully read the state of the zip file before displaying, which makes the META-INF and WEB-INF dirs look lowercase… very frustrating problem.
sopranoMemberYes,
I use Winzip, but independently of the unzipper software I use, the EAR packaged file is not correctly read by jboss, that return the following exception at startup:
“DeploymentException: No META-INF/application.xml found”.But, strangely, if I try to “jar -tvf” the EAR file, it seems that the META-INF directories are correctly uppercase.
Is jboss using WinZip for EAR unpacking at runtime ?Thanks
sopranoMember@soprano wrote:
Is jboss using WinZip for EAR unpacking at runtime ?
…ok I tried to uninstall WinZip and rename application.ear to application.zip and everything works.
But, unlikely, the problem remain if I leave the original extension (ear). Jboss still cannot find META-INF directory.Thanks for the support.
Umberto
p.s. I tryed to unjar and re-jar the ear file and jboss now recognize it. What My-Eclipse is using to package the Enterprise Application?
Riyad KallaMemberThis is like deja vu, can you check these threads for help:
http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-2871-highlight-winzip.html
and
http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-2789-highlight-winzip.htmlBoth of those users had the same problem and it turned out to be something unrelated but equally as hard to find. During one of these threads I did check with the team and we just use the java JAR mechanism that works everywhere else so its got to be something very strange and small with your setup (possibly unrelated?)
sopranoMemberHi,
I got deep in the problem…
JBoss uses URLClassLoader.getResourceAsStream to retrieve resources from jar file(s) as well as for ear, war and so on.
I reproduced in an external java exexutable this method call and getResourceAsStream(“META-INF/application.xml”) returns indeed a null InputStream for the MyEclypse generated ear.
If I unjar and re-jar the ear file, and repeat the test, it works (not more null returns).That means, for some reasons, URLClassloader cannot retrieve resources from MyEclypse generated ear files.
The problem is still alive, but we’re near to the solution I think.
Can it be a question of privileges?Thanks,
Umberto
sopranoMemberResolved.
I had an empty class-path entry in the MANIFEST.MF that avoided the URLClassloader to get resources from the ear file.
I removed the class-path and everything works.Hope this can be useful for other with the same problem.
Thanks fro the support.
Umberto
Riyad KallaMemberUmberto,
You really did a heck of a good job running down that problem, I appreciate the follow up as well for other users! -
AuthorPosts