• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

maven war package corrupts jar import

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is a crazy problem and I'm tearing my hair out over it...

My POM is building an applet.jar and placing it in a resource folder, then packaging the entire project into a war [including the folder with the applet.jar (and 2 other jars)].
The application will deploy (on jboss) but fails to run. The java console reports "can not find required MainApplet.class" [which is in the applet.jar].

If I manually copy the applet.jar into the war and deploy it the application functions normally. The applet.jar is an archive in the output folder but is not an archive in the war(7-zip reports).
Somehow the maven war packaging is corrupting this freshly built jar (and only this one jar).
Does anyone have any ideas why this is happening?!


jar assembly


war plugin
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd like to help you but there is an important administrative matter you need to deal with first. I'm sure you received some private messages about it.
 
Saloon Keeper
Posts: 22483
151
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Peter's not kidding. I've been ignoring your question for days because you're violating one of the very few rules that we're absolutely insistent about at the Ranch.
 
Brian Babbage
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
note to self. when searching for "corrupt jar files" remember that a jar file is also a binary file. Maven has this covered but it's under corrupt binary file corruption...

the fix



I feel like such a bone head over this

Thanks for the help and advice guys.
 
WHAT is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic