Bug 807333
Summary: | Signed cglib.jar prevents seam2 spring ftest from working | ||||||
---|---|---|---|---|---|---|---|
Product: | [Retired] JBoss Enterprise WFK Platform 2 | Reporter: | Ron Šmeral <rsmeral> | ||||
Component: | Seam | Assignee: | Marek Novotny <mnovotny> | ||||
Status: | CLOSED CANTFIX | QA Contact: | |||||
Severity: | urgent | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 2.0.0.GA | CC: | 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
Ron Šmeral
2012-03-27 14:36:46 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\* Marek, I am unclear where this belongs. Here: http://documentation-stage.bne.redhat.com/docs/en-US/JBoss_Enterprise_Application_Platform/6/html/Migration_Guide/Section-Seam_22_changes.html#Migrate_Seam_22_Archives_to_JBoss_Enterprise_Application_Platform_6 Or here: http://documentation-stage.bne.redhat.com/docs/en-US/JBoss_Enterprise_Application_Platform/6/html/Migration_Guide/Section-Spring_changes.html You point the the Seam 2.2 page, but this mentions Spring. Never mind. I misunderstood. I think I understand what you're saying here. That issue should disappear in EAP 6 GA as we will distribute unsigned jars. 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. Marek Schmidt, the problem is being the signed cglib not the signed EAP6. 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} 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. Marek Novotny <mnovotny> updated the status of jira JBPAPP-8465 to Resolved 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. Ron Šmeral <rsmeral> updated the status of jira JBPAPP-8465 to Reopened 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} 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. Ron Šmeral <rsmeral> updated the status of jira JBPAPP-8465 to Closed Russell Dickenson <rdickens> updated the status of jira JBPAPP-8465 to Reopened Russell Dickenson <rdickens> made a comment on jira JBPAPP-8465 Issue reopened to change Release Notes field. Russell Dickenson <rdickens> updated the status of jira JBPAPP-8465 to Closed |