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 ANT Build :argh:

 
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
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18167
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm a little out of practice on JBoss, but as I recall, the "not installed yet" message often means that a pre-requisite resource actually didn't load at all, either because it was defective or it wasn't in the classpath. In which case, you may find an earlier console message (probably about 30 miles upstream) that says what happened.
 
Peter Vennel
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Tim.

I was not sure if this is a JBoss issue. But I will post this to JBoss forum to see if anyone had experienced this behavior.

"pre-requisite resource actually didn't load at all"
I totally agree with you on this. What I fail to understand is that why does it work when I unjar the same jar file and then jar them back running 'Jar' from dos prompt.

Peter.
 
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic