Bug 780353 (SOA-2763)

Summary: SecurityDomain class loading issues with IBM JDK 6
Product: [JBoss] JBoss Enterprise SOA Platform 5 Reporter: Martin Vecera <mvecera>
Component: JBossESB, JBossASAssignee: Martin Vecera <mvecera>
Status: CLOSED NOTABUG QA Contact:
Severity: urgent Docs Contact:
Priority: urgent    
Version: 5.1.0.ER6CC: kevin.conner, mvecera
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/SOA-2763
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
RHEL 5, IBM JDK 1.6, both 32 and 64 bits
Last Closed: 2011-01-12 14:21:14 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:
Attachments:
Description Flags
server.log.bz2
none
Quickstart_helloworld_ejb3.jar
none
Quickstart_webservice_proxy_basic_ws.war
none
Quickstart_SecurityCredentials.esb none

Description Martin Vecera 2011-01-11 11:19:47 UTC
project_key: SOA

It is not possible to deploy ESB applications working with security with IBM JDK 1.6 (see the attached log for details).

2011-01-10 16:35:35,611 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to PostClassLoader: name=vfszip:/qa/hudson_ws/workspace/soa-it-os-ibm16/jdk/ibm16/label/RHEL5_x86_64/qa/tests/quickstarts/tests/output/lib/Quickstart_helloworld_ejb3.jar/ state=ClassLoader mode=Manual requiredState=PostClassLoader
org.jboss.deployers.spi.DeploymentException: Cannot process metadata
        at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
        at org.jboss.deployment.AnnotationMetaDataDeployer.deploy(AnnotationMetaDataDeployer.java:181)
        at org.jboss.deployment.AnnotationMetaDataDeployer.deploy(AnnotationMetaDataDeployer.java:93)
...
Caused by:
java.lang.TypeNotPresentException: Type org.jboss.annotation.security.SecurityDomain not present
        at com.ibm.oti.reflect.AnnotationHelper.getAnnotation(AnnotationHelper.java:39)
        at com.ibm.oti.reflect.AnnotationHelper.getDeclaredAnnotations(AnnotationHelper.java:51)
        at java.lang.Class.getDeclaredAnnotations(Class.java:1628)
...
Caused by:
java.lang.ClassNotFoundException: org.jboss.annotation.security.SecurityDomain
        at java.lang.Class.forNameImpl(Native Method)
        at java.lang.Class.forName(Class.java:169)
        at com.ibm.oti.reflect.AnnotationHelper.getAnnotation(AnnotationHelper.java:34)
        ... 80 more

Comment 1 Martin Vecera 2011-01-11 11:21:16 UTC
Attachment: Added: server.log.bz2


Comment 2 Martin Vecera 2011-01-11 11:33:04 UTC
Attachment: Added: Quickstart_helloworld_ejb3.jar


Comment 3 Martin Vecera 2011-01-11 11:33:18 UTC
Attachment: Added: Quickstart_webservice_proxy_basic_ws.war


Comment 4 Martin Vecera 2011-01-11 11:33:31 UTC
Attachment: Added: Quickstart_SecurityCredentials.esb


Comment 5 Martin Vecera 2011-01-11 11:33:50 UTC
I attached some problematic deployments.

Comment 6 Kevin Conner 2011-01-11 11:35:06 UTC
A wild guess could be that the annotation does not exist and the IBM JDK requires it to be present.

Comment 7 Martin Vecera 2011-01-11 14:55:00 UTC
I tried to use different annotation implementation. Waiting for test results now...

Comment 8 Martin Vecera 2011-01-12 14:20:55 UTC
Another implementation of SecurityDomain works fine.