Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1064223

Summary: java.lang.NoClassDefFoundError: javax/net/ssl/X509TrustManager
Product: [Retired] JBoss BPMS Platform 6 Reporter: Ryan Zhang <rzhang>
Component: Business CentralAssignee: Jan <jschatte>
Status: CLOSED CURRENTRELEASE QA Contact: Marek Baluch <mbaluch>
Severity: high Docs Contact:
Priority: urgent    
Version: unspecifiedCC: pzapataf, rrajasek, tschloss
Target Milestone: ER2   
Target Release: 6.0.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1064225 (view as bug list) Environment:
Last Closed: 2014-08-06 20:01:53 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1064225    
Attachments:
Description Flags
server.log
none
business_central_screenshot
none
BZ1064233.patch none

Description Ryan Zhang 2014-02-12 09:12:43 UTC
Description of problem:
The error is happening when I start up BPMS or BRMS 6.0.1 ER1 server on EAP 6.1.1 for the first time (upstream tag: sync.2014.02.10).

When I restart the server, the error seems not appear during the server bootstrap.
However if I try to log into business-central web console, I would get this error again both in the server.log and in browser.
Both the server.log and screenshot are attached.

Stacktrace:
14:43:40,581 WARN  [org.jboss.modules] (pool-18-thread-1) Failed to define class org.apache.maven.wagon.shared.http.EasyX509TrustManager in Module "org.apache.maven.wagon:main" from local module loader @561f72d0 (finder: local module finder @2aaae1dc (roots: /workspace/ip/bpms-brms/bpms/target/jboss-eap-6.1/modules,/workspace/ip/bpms-brms/bpms/target/jboss-eap-6.1/modules/system/layers/bpms,/workspace/ip/bpms-brms/bpms/target/jboss-eap-6.1/modules/system/layers/base)): java.lang.LinkageError: Failed to link org/apache/maven/wagon/shared/http/EasyX509TrustManager (Module "org.apache.maven.wagon:main" from local module loader @561f72d0 (finder: local module finder @2aaae1dc (roots: /workspace/ip/bpms-brms/bpms/target/jboss-eap-6.1/modules,/workspace/ip/bpms-brms/bpms/target/jboss-eap-6.1/modules/system/layers/bpms,/workspace/ip/bpms-brms/bpms/target/jboss-eap-6.1/modules/system/layers/base)))
	at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:427) [jboss-modules.jar:1.2.2.Final-redhat-1]
	at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:260) [jboss-modules.jar:1.2.2.Final-redhat-1]
	at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:75) [jboss-modules.jar:1.2.2.Final-redhat-1]
	at org.jboss.modules.Module.loadModuleClass(Module.java:526) [jboss-modules.jar:1.2.2.Final-redhat-1]
	at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:188) [jboss-modules.jar:1.2.2.Final-redhat-1]
	at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:444) [jboss-modules.jar:1.2.2.Final-redhat-1]
	at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:432) [jboss-modules.jar:1.2.2.Final-redhat-1]
	at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:374) [jboss-modules.jar:1.2.2.Final-redhat-1]
	at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:119) [jboss-modules.jar:1.2.2.Final-redhat-1]
	at org.apache.maven.wagon.shared.http.AbstractHttpClientWagon.<clinit>(AbstractHttpClientWagon.java:300) [wagon-http-shared4-2.0.jar:2.0]
	at org.kie.scanner.Aether$ManualWagonProvider.lookup(Aether.java:136) [kie-ci-6.0.2-redhat-3.jar:6.0.2-redhat-3]
	at org.sonatype.aether.connector.wagon.WagonRepositoryConnector.lookupWagon(WagonRepositoryConnector.java:282) [aether-connector-wagon-1.13.1.jar:]
	at org.sonatype.aether.connector.wagon.WagonRepositoryConnector.<init>(WagonRepositoryConnector.java:154) [aether-connector-wagon-1.13.1.jar:]
	at org.sonatype.aether.connector.wagon.WagonRepositoryConnectorFactory.newInstance(WagonRepositoryConnectorFactory.java:142) [aether-connector-wagon-1.13.1.jar:]
	at org.sonatype.aether.impl.internal.DefaultRemoteRepositoryManager.getRepositoryConnector(DefaultRemoteRepositoryManager.java:346) [aether-impl-1.13.1.jar:]
	at org.sonatype.aether.impl.internal.DefaultMetadataResolver$ResolveTask.run(DefaultMetadataResolver.java:559) [aether-impl-1.13.1.jar:]
	at org.sonatype.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:60) [aether-util-1.13.1.jar:]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_51]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_51]
	at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_51]
Caused by: java.lang.NoClassDefFoundError: javax/net/ssl/X509TrustManager
	at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.7.0_51]
	at java.lang.ClassLoader.defineClass(ClassLoader.java:800) [rt.jar:1.7.0_51]
	at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:344) [jboss-modules.jar:1.2.2.Final-redhat-1]
	at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:422) [jboss-modules.jar:1.2.2.Final-redhat-1]
	... 19 more
Caused by: java.lang.ClassNotFoundException: javax.net.ssl.X509TrustManager from [Module "org.apache.maven.wagon:main" from local module loader @561f72d0 (finder: local module finder @2aaae1dc (roots: /workspace/ip/bpms-brms/bpms/target/jboss-eap-6.1/modules,/workspace/ip/bpms-brms/bpms/target/jboss-eap-6.1/modules/system/layers/bpms,/workspace/ip/bpms-brms/bpms/target/jboss-eap-6.1/modules/system/layers/base))]
	at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:196) [jboss-modules.jar:1.2.2.Final-redhat-1]
	at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:444) [jboss-modules.jar:1.2.2.Final-redhat-1]
	at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:432) [jboss-modules.jar:1.2.2.Final-redhat-1]
	at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:374) [jboss-modules.jar:1.2.2.Final-redhat-1]
	at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:119) [jboss-modules.jar:1.2.2.Final-redhat-1]
	... 23 more


 

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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Ryan Zhang 2014-02-12 09:13:41 UTC
Created attachment 862166 [details]
server.log

Comment 2 Ryan Zhang 2014-02-12 09:17:17 UTC
Created attachment 862168 [details]
business_central_screenshot

Comment 5 Jan 2014-02-12 17:31:03 UTC
Fixed in branch 6.0.x : http://github.com/droolsjbpm/kie-wb-distributions/commit/05bdbb129

Comment 6 Pedro Zapata 2014-02-12 17:53:32 UTC
Instructions to verify or patch ER1 build.

- Edit <EAP_ROOT>/modules/system/layers/bpms/org/apache/maven/wagon/main/module.xml
    - Add <module name="javax.api" export="false"/>
    - Add <module name="sun.jdk" export="false"/>

- Move mina-core jar from webapp into kie-lib module
  Move mina-core-2.0.0-redhat-3.jar from business-central.war/WEB-INF/lib directory
  to <EAP_ROOT>/modules/system/layers/bpms/org/kie/lib/main/

- Edit <EAP_ROOT>/modules/system/layers/bpms/org/kie/lib/main/module.xml

  Add <resource-root path="mina-core-2.0.0-redhat-3.jar"/>

The same procedure must be applied for BRMS artifacts (layer and WAR) if a similar problem is found.

Comment 7 Rajesh Rajasekaran 2014-02-12 19:16:13 UTC
Ryan, let's use the patch approach outlined by Pedro if that is the quickest solution. There are no plans to re tag with the fix applied to the product branch at the moment.

Comment 8 Ryan Zhang 2014-02-13 03:01:31 UTC
Ok, I am patching directly on kie-wb-distributions with the patched (see attachment).

I need to rebuild kie-wb-distributions and ip.git in MEAD which will take 2-3 hours.

Comment 9 Ryan Zhang 2014-02-13 03:02:54 UTC
Created attachment 862618 [details]
BZ1064233.patch

Comment 10 Ryan Zhang 2014-02-13 07:24:37 UTC
This rebuilt ER1 has no this issue any more.

I would keep this BZ in ASSIGNED status until the code is updated in project.

Comment 11 Jan 2014-02-13 13:50:52 UTC
Switching to MODIFIED as fix has been pushed to 6.0.x and verified ok.

Comment 12 Tomas Schlosser 2014-02-17 13:29:33 UTC
I have encountered a similar issue with (patched) BRMS 6.0.1.ER1. The log is similar only it emerges from org.sonatype.plexus.* classes and missing class is "javax.crypto.Cipher".

My colleagues are unable to reproduce it. I have got the error on my Fedora 20, OpenJDK 1.7.0_51 (fedora-2.4.5.1.fc20-x86_64) using cleanly unzipped EAP 6.1.1 and patched zip from 2014-02-17T06:20.

I fixed the issue by adding lines from first bullet in comment 6 to file
<EAP_ROOT>/modules/system/layers/brms/org/sonatype/plexus/main/module.xml

Comment 13 Tomas Schlosser 2014-02-18 13:42:24 UTC
Opened new bug with javax.crypto.Cipher problem https://bugzilla.redhat.com/show_bug.cgi?id=1066469

Comment 14 Marek Baluch 2014-03-05 20:23:21 UTC
There are no exceptions in the log for BRMS nor BPMS. Closing as VERFIED (on 6.0.1.ER2).