Issue Details (XML | Word | Printable)

Key: DIRSERVER-331
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Alex Karasulu
Reporter: Simon Temple
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Directory ApacheDS

JAR File Contents Cause JBoss Deployer To Fail

Created: 31/Jan/06 10:12 PM   Updated: 27/Aug/06 04:39 PM
Return to search
Component/s: sar
Affects Version/s: 1.0-RC1
Fix Version/s: 1.5.0, 1.0-RC4

Time Tracking:
Not Specified

Environment: JDK 1.4.2, JBoss 3.2

Resolution Date: 27/Aug/06 04:39 PM


 Description  « Hide
The presence of the META-INF/maven folders and/or their content causes the JBoss deployer to skip JAR files.

Then we experience an avalanche of java.lang.NoClassDefFoundError exceptions!

It could be argued that this is a problem with the JBoss deployer (perhaps seraching for .xml files in META-INF folders), however, we're not in a position to modify the JBoss deployer at this time.

Can the maven folders be removed from the JARs or perhaps a build switch introduced to produce JBoss compatible JARs?

Thanks

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Alex Karasulu added a comment - 10/Feb/06 01:57 PM
I have no idea if this is even possible regarding the maven folders. I'd have to check with the maven peeps. Now with regard to the exception are you certain that the maven folders are causing this? Did you try unjaring, removing them, jaring and redeploygin?

Simon Temple added a comment - 22/Feb/06 11:49 PM
Yes I removed the maven XML files and the problem goes away.

Any XML file in a META-INF folder is regarded as instruction to a deployer... I checked to the JBoss code... they search for all files with the .xml extension beneath META-INF.

Jörg Henne added a comment - 17/Aug/06 01:24 PM
The problem ist caused by the jboss-sar-maven-plugin. Although I reported the problem and supplied a patch, nobody bothered to apply it.
See http://jira.codehaus.org/browse/MOJO-377

Alex Karasulu added a comment - 18/Aug/06 04:49 AM
I applied your patch. See if you can get the sar to work now.

Alex Karasulu added a comment - 27/Aug/06 04:39 PM