• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Wierd issue with Deployment on JBoss

 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic