aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes Wierd issue with ANT Build  :argh: 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 » Engineering » Ant, Maven and Other Build Tools
Bookmark "Wierd issue with ANT Build  :argh: " Watch "Wierd issue with ANT Build  :argh: " New topic
Author

Wierd issue with ANT Build :argh:

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
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16142
    
  21

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
Peter Vennel
Ranch Hand

Joined: Dec 18, 2003
Posts: 46
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

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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Wierd issue with ANT Build :argh: