facebook

Packaged deploy with lowercase META-INF dirs [Closed]

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #214069 Reply

    soprano
    Member

    Hi
    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

    #214094 Reply

    Riyad Kalla
    Member

    Umberto,
    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.

    #214175 Reply

    soprano
    Member

    Yes,
    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

    #214176 Reply

    soprano
    Member

    @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?

    #214190 Reply

    Riyad Kalla
    Member

    This 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.html

    Both 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?)

    #214462 Reply

    soprano
    Member

    Hi,
    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

    #214466 Reply

    soprano
    Member

    Resolved.
    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

    #214484 Reply

    Riyad Kalla
    Member

    Umberto,
    You really did a heck of a good job running down that problem, I appreciate the follow up as well for other users!

Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: Packaged deploy with lowercase META-INF dirs [Closed]

You must be logged in to post in the forum log in