Try using jar -tf myapp.ear instead.
what does jar -tf myapp.ear does?
I have the same problem.Able to deploy the ear on windows but not in linux.what does jar -tf myapp.ear do and how to do it?Would appreciate your help
"jar" is the Java archiving tool supplied with your JDK. "jar -tf myapp.ear" lists the myapp.ear archive's table of contents.
Usually, problems occur when you package your archive with some other tool in Windows and it doesn't get the case right. Since the Unices are case-sensitive, you may find the META-INF or WEB-INF directories (depending on the type of archive - EAR, WAR, etc) are not in uppercase when you move into a Unix environment. So check your packaging for any problems with case. Winzip does not usually note a difference between uppercase and lowercase directories.
Thanks a lot for the explanation.I use ANT to build the ear and it does take care of the case.But the problem seems to be with JNDI lookup in Linux.I get an error jndi name not bound.