aspose file tools*
The moose likes JBoss/WildFly and the fly likes Wierd issue with Deployment on JBoss Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Wierd issue with Deployment on JBoss" Watch "Wierd issue with Deployment on JBoss" New topic
Author

Wierd issue with Deployment on JBoss

Peter Vennel
Ranch Hand

Joined: Dec 18, 2003
Posts: 46
I am using ANT build script to create the jar file. When I tried to deploy this to JBoss server, I got errors.

I then tried to unjar the file into another folder and then jar it back using 'jar' command. When I deployed this to JBoss server, this time it got deployed.

This is hapenning on a continuous basis. I am able to replicate this all the time. I am not able to find out what is causing this.

The error is as follows:




Any ideas??

Thanks,
Peter
[ May 31, 2007: Message edited by: Mark Spritzler ]
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17257
    
    6

And when you extract then recreate, you do not change any dir stuff moving files anywhere. Maybe in your persistence.xml you have a weird CR LF and when you extract it, it fixes it then the re jar gets the correct version.

Because it looks like JBoss doesn't see the persistence.xml to deploy your persistence unit before trying to deploy the EJBs in the jar.

What is the dir structure and where files are in the first jar version?

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Peter Vennel
Ranch Hand

Joined: Dec 18, 2003
Posts: 46
Thanks Mark.

I am pasting the content of my persistence.xml file and the tree structure of my original jar created by ANT. I did a file compare using textpad. They turned out to be identical and have same size of 455 bytes.

Persistence.xml



Structure of Jar file

Peter Vennel
Ranch Hand

Joined: Dec 18, 2003
Posts: 46
Problem resolved.

It was a very silly mistake. I had the ANT build script create'meta-inf' instead of 'META-INF'. Somehow when I unjarred and jarred them back manually, the folder was correctly changed to 'META-INF'.

Now after I modified my build script, it got deployed fine.

Thanks for all the help.

Peter.
Faisal Ahmed Siddiqui
Greenhorn

Joined: Jan 03, 2002
Posts: 29
thanks for letting us this mistake otherwise we get wierd
you must be on linux/unix platform


Architect<br />SCJP<br />SCWCD<br />IBM-486
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17257
    
    6

Cool, because I was beating my head trying to figure it out. I knew for some reason JBoss couldn't find the persistence.xml, but looking at your dir structure of course didn't see a lowercase "META-INF"

Congrats

Mark
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Wierd issue with Deployment on JBoss