Bug 807333

Summary: Signed cglib.jar prevents seam2 spring ftest from working
Product: [Retired] JBoss Enterprise WFK Platform 2 Reporter: Ron Šmeral <rsmeral>
Component: SeamAssignee: Marek Novotny <mnovotny>
Status: CLOSED CANTFIX QA Contact:
Severity: urgent Docs Contact:
Priority: medium    
Version: 2.0.0.GACC: amelicha, kpiwko, maschmid, rnewton, sgilda
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: Seam2.2
Fixed In Version: Doc Type: Bug Fix
Doc Text:
This issue can be worked around by unsigning the cglib.jar as in: zip -d $SEAM_DIR/lib/cglib.jar META-INF/JBOSSCOD\*
Story Points: ---
Clone Of: Environment:
Fedora 16 64-bit, Mozilla Firefox 3.6.25, Oracle JDK 1.6.0_30, Seam 2.2.5.EAP5 (included in EAP 5.1.2.GA)
Last Closed: 2012-06-18 15:32:15 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:
Attachments:
Description Flags
Server log none

Description Ron Šmeral 2012-03-27 14:36:46 UTC
Created attachment 573084 [details]
Server log

Seam version: 2.2.5.EAP5 (included in EAP 5.1.2.GA)
The spring example from Seam 2.2 was migrated to EAP6 according to the migration guide on Documentation-Stage (http://documentation-stage.bne.redhat.com/docs/en-US/JBoss_Enterprise_Application_Platform/6/html/Beta_Documentation/Migrate_Seam_22_Archives_to_JBoss_Enterprise_Application_Platform_6.html)
and the bug was verified to occur with EAP 6.0.0.ER3.

When the ftests are run, they fail immediately.

Relevant part of server log attached.

Comment 1 Ron Šmeral 2012-03-27 14:48:21 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
This issue can be worked around by unsigning the cglib.jar as in:
zip -d $SEAM_DIR/lib/cglib.jar META-INF/JBOSSCOD\*

Comment 3 sgilda 2012-05-26 12:52:24 UTC
Never mind. I misunderstood. I think I understand what you're saying here.

Comment 4 Marek Novotny 2012-05-28 07:31:58 UTC
That issue should disappear in EAP 6 GA as we will distribute unsigned jars.

Comment 5 Marek Schmidt 2012-05-28 07:50:30 UTC
I have tested it with EAP6.0.0.ER8, which is *not* signed and the error is still the same, so apparently the signed cglib from Seam2.2.5.EAP5 doesn't work even on the unsigned EAP6.

Comment 6 Karel Piwko 2012-06-04 11:05:13 UTC
Marek Schmidt, the problem is being the signed cglib not the signed EAP6.

Comment 8 JBoss JIRA Server 2012-06-04 12:34:16 UTC
Marek Novotny <mnovotny> made a comment on jira JBPAPP-8465

Bundle cglib.jar from jboss-as/common/lib/cglib.jar or edit jboss-as/bin/security_cc.policy and add something like 

{noformat}
grant codeBase "file:${jboss.home.dir}/common/lib/cglib.jar" {
   permission java.security.AllPermission;
};
{noformat}

Comment 10 mark yarborough 2012-06-18 15:32:15 UTC
WFK 2.0 does not delivere Seam 2.2, however, these issues have already been documented in the EAP 6 release notes, so no need to duplicate each issue in WFk 2.0 release notes. However, we should include a pointer to the EAP 6 release notes to assist customers looking for Seam 2.2 bug information.

Comment 11 JBoss JIRA Server 2012-07-20 12:12:09 UTC
Marek Novotny <mnovotny> updated the status of jira JBPAPP-8465 to Resolved

Comment 12 JBoss JIRA Server 2012-07-20 12:12:09 UTC
Marek Novotny <mnovotny> made a comment on jira JBPAPP-8465

I have removed cglib from spring and jee5/booking examples. They can use cglib and asm from EAP AS libraries. cglib is now required only for seam-gen and reverse db generation.

Comment 13 JBoss JIRA Server 2012-09-07 15:07:00 UTC
Ron Šmeral <rsmeral> updated the status of jira JBPAPP-8465 to Reopened

Comment 14 JBoss JIRA Server 2012-09-07 15:07:00 UTC
Ron Šmeral <rsmeral> made a comment on jira JBPAPP-8465

It appears to be still broken, the CGLIB is not found on the classpath:
{noformat}
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userService' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Initialization of bean failed; nested exception is org.springframework.aop.framework.AopConfigException: Cannot proxy target class because CGLIB2 is not available. Add CGLIB to the class path or specify proxy interfaces.
{noformat}

Comment 15 JBoss JIRA Server 2012-09-10 13:31:24 UTC
Ron Šmeral <rsmeral> made a comment on jira JBPAPP-8465

I haven't read the previous comment properly. After including {{jboss-as/common/lib/cglib.jar}} in the classpath, the test passes.

Comment 16 JBoss JIRA Server 2012-09-10 13:34:18 UTC
Ron Šmeral <rsmeral> updated the status of jira JBPAPP-8465 to Closed

Comment 17 JBoss JIRA Server 2012-10-30 01:05:02 UTC
Russell Dickenson <rdickens> updated the status of jira JBPAPP-8465 to Reopened

Comment 18 JBoss JIRA Server 2012-10-30 01:05:02 UTC
Russell Dickenson <rdickens> made a comment on jira JBPAPP-8465

Issue reopened to change Release Notes field.

Comment 19 JBoss JIRA Server 2012-10-30 01:07:12 UTC
Russell Dickenson <rdickens> updated the status of jira JBPAPP-8465 to Closed