Bug 1145985 - java.lang.NoClassDefFoundError: org/codehaus/plexus/PlexusContainer
Summary: java.lang.NoClassDefFoundError: org/codehaus/plexus/PlexusContainer
Keywords:
Status: CLOSED EOL
Alias: None
Product: JBoss BRMS Platform 6
Classification: Retired
Component: Business Central
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ER1
: 6.1.0
Assignee: manstis
QA Contact: Lukáš Petrovický
URL:
Whiteboard:
Depends On:
Blocks: 1105516
TreeView+ depends on / blocked
 
Reported: 2014-09-24 08:52 UTC by Zuzana Krejčová
Modified: 2020-03-27 19:35 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-03-27 19:35:49 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
screenshot (33.29 KB, image/png)
2014-09-24 08:52 UTC, Zuzana Krejčová
no flags Details
stacktrace (34.69 KB, text/plain)
2014-09-24 08:52 UTC, Zuzana Krejčová
no flags Details
test jar (3.52 KB, application/zip)
2014-09-25 07:28 UTC, Zuzana Krejčová
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 999876 0 medium CLOSED Ugly, unformatted error pop-ups with stacktraces 2021-02-22 00:41:40 UTC

Internal Links: 999876

Description Zuzana Krejčová 2014-09-24 08:52:04 UTC
Created attachment 940718 [details]
screenshot

Description of problem:
When uploading a maven jar with a parent or dependency specified to artifact repostiory, the action fails due to java.lang.NoClassDefFoundError: org/codehaus/plexus/PlexusContainer. User gets an Error popup (see screenshot) similar to those mentioned in bug 999876.
Server log contains:
WARNING [Sisu] ... Error injecting: org.eclipse.aether.internal.transport.wagon.PlexusWagonProvider: java.lang.NoClassDefFoundError: org/codehaus/plexus/PlexusContainer
...
Caused by: java.lang.ClassNotFoundException: org.codehaus.plexus.PlexusContainer from [Module "org.eclipse.aether:main" from local module loader @6f8cc276 (finder: local module finder @2330a31 (roots: <product_root>/modules,<product_root>/modules/system/layers/brms,<product_root>/modules/system/layers/base))]
...
(stack trace in attachement)


Version-Release number of selected component (if applicable):
BRMS 6.1.0 DR3

Comment 1 Zuzana Krejčová 2014-09-24 08:52:32 UTC
Created attachment 940719 [details]
stacktrace

Comment 3 Jeremy Lindop 2014-09-24 15:20:06 UTC
Hi Zusana,
Can you attach the jar file you used which causes this error to happen? I've tried uploading several jar's without seeing the error popup.
Thanks
Jeremy

Comment 4 Zuzana Krejčová 2014-09-25 07:28:59 UTC
Created attachment 940991 [details]
test jar

This is a very simple maven jar. The prject has only one dependency - junit:junit:4.11. Make sure you start with a clean product - most importantly, that you don't have the junit artifact in repositories used by the business-central. You could use anything else, just as long as the maven used by business-central has to look for something 'outside'. That will result in the 'java.lang.ClassNotFoundException: org.codehaus.plexus.PlexusContainer'.

Comment 5 Zuzana Krejčová 2014-09-25 07:38:16 UTC
Seems the problem might be with 'org.eclipse.aether' module setup.
In <eap_root>/modules/system/layers/brms/org/eclipse/aether/main/ find module.xml and add dependency on:
<module name="org.eclipse.sisu" export="false" slot="main" services="import" optional="false"/>
This allowed me to upload the jar at the very least.

Comment 6 Jeremy Lindop 2014-09-25 09:59:24 UTC
https://github.com/droolsjbpm/kie-wb-distributions/commit/61670484c81f898f27cbd9615a0381d81938cb92

Thanks Zusana. I couldn't reproduce this at first because my ~/.m2 repository was resolving the dependencies automatically. This is now fixed by making sure that the org.eclipse.aether module depends on org.eclipse.sisu, as you suggested.

Comment 7 Ryan Zhang 2014-10-21 03:16:30 UTC
Based on the comment 6, I am moving this to ON_QA for verification again.

Comment 8 Zuzana Krejčová 2014-10-21 14:51:08 UTC
No change, the commit might not have made it into product - the dependency is not declared in the module.

Comment 9 Jeremy Lindop 2014-10-21 16:09:06 UTC
Hi Zusana,
The fix (Sep 25th) did not make the cut for DR4 (Sep 24th), but it will be included in ER1.
Jeremy

Comment 10 Zuzana Krejčová 2014-11-19 12:35:34 UTC
Verified with ER2.


Note You need to log in before you can comment on or make changes to this bug.