Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Wierd issue with Deployment on JBoss

 
Peter Vennel
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Peter Vennel
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for letting us this mistake otherwise we get wierd
you must be on linux/unix platform
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic