Bug 768072

Summary: Classloading issue (java.lang.LinkageError) after restarting Guvnor WAR
Product: [JBoss] JBoss Enterprise BRMS Platform 5 Reporter: Jiri Locker <jlocker>
Component: BRM (Guvnor)Assignee: Toni Rikkola <trikkola>
Status: VERIFIED --- QA Contact: Sona Mala <smala>
Severity: low Docs Contact:
Priority: unspecified    
Version: BRMS 5.3.0.GACC: lpetrovi, trikkola
Target Milestone: ---Keywords: Regression
Target Release: BRMS 5.3.0.GA   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
JBoss EAP 5.1.1
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
server.log none

Description Jiri Locker 2011-12-15 17:11:39 UTC
Description of problem:
After stopping Guvnor web application and starting it again, the REST services stop working. Accessing any of the REST resources fails with the following error:

2011-12-15 17:22:28,299 ERROR [STDERR] (http-127.0.0.1-8080-2) java.lang.LinkageError: loader constraint violation: when resolving overridden method "com.sun.xml.bind.v2.runtime.MarshallerImpl.marshal(Ljava/lang/Object;Ljavax/xml/stream/XMLStreamWriter;)V" the class loader (instance of org/jboss/classloader/spi/base/BaseClassLoader) of the current class, com/sun/xml/bind/v2/runtime/MarshallerImpl, and its superclass loader (instance of <bootloader>), have different Class objects for the type javax/xml/stream/XMLStreamWriter used in the signature

Version-Release number of selected component (if applicable):
BRMS 5.3.0.DEV5

How reproducible:


Steps to Reproduce:

1. start server with Guvnor WAR deployed

2. import a repository and check the result of http://localhost:8080/jboss-brms/rest/packages

3. restart Guvnor
   - either in admin console
   - or using $JBOSS/bin/twiddle.sh like this:
> ./twiddle.sh -u <user> -p <password> -s localhost invoke jboss.web.deployment:war=/<war_name> <stop|start>

4. access http://localhost:8080/jboss-brms/rest/packages again and see server log for the exception
  
Actual results:
REST services stop working after restarting Guvnor (without stopping the server)

Expected results:
REST services should be available after restarting Guvnor (without stopping the server)

Additional info:
this is not issue for BRMS 5.2.0

Comment 1 Jiri Locker 2011-12-15 17:13:40 UTC
Created attachment 547385 [details]
server.log

Comment 6 Toni Rikkola 2012-04-27 09:23:22 UTC
Can't reproduce with EAP 5.1 and BRMS 5.3.0 ER6. Going to try BRMS DEV5.

Comment 7 Toni Rikkola 2012-04-27 09:24:28 UTC
Can't reproduce with EAP 5.1 and BRMS 5.3.0 ER6. Going to try BRMS DEV5.

Comment 8 Toni Rikkola 2012-04-27 09:24:43 UTC
echo

Comment 9 Toni Rikkola 2012-04-27 11:21:46 UTC
Does fail in DEV5. I say this bug is out dated, some other fix fixed it.

Comment 11 Sona Mala 2012-05-17 11:41:50 UTC
Verified for BRMS 5.3.0 ER7