<< Back to previous view

[GLASSFISH-18827] Exception on app deployment if javassist bundled Created: 22/Jun/12  Updated: 25/Jul/13  Resolved: 25/Jul/13

Status: Closed
Project: glassfish
Component/s: cdi
Affects Version/s: 3.1.2
Fix Version/s: 4.0.1

Type: Bug Priority: Blocker
Reporter: arothe Assignee: phil.zampino
Resolution: Cannot Reproduce Votes: 0
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

OpenSuse 12.1
Glassfish 3.1.2 local installation

Tags: weld javassist exception
Participants: arjavdesai, arothe and phil.zampino


I try to deploy an application, which has a maven dependency to javassist 3.14.0-GA. If I bundle the lib with the application I will get
Exception while loading the app : org.jboss.weldx.transaction.UserTransaction$1279195191$Proxy$_$$_Weld$Proxy$ cannot be cast to javassist.util.proxy.ProxyObject

If I set the maven scope to "provided", I will get
java.lang.NoClassDefFoundError: javassist/bytecode/CodeAttribute$RuntimeCopyException

The application uses CDI and EclipseLink as persistence provider.
I have seen, that javassist is already part of the weld-osgi-bundle, but the jar isn't used by the application.

Comment by arjavdesai [ 13/Apr/13 11:49 AM ]

Can you please provide a test app to re-produce the issue? Have tried with latest glass fish? If not, can you please try with one built on 13-apr-13 or later from http://dlc.sun.com.edgesuite.net/glassfish/4.0/nightly/.

Comment by arothe [ 05/Jun/13 12:17 PM ]

I have checked the old project on SVN. In the sun-web.xml I had an entry

<class-loader delegate="false"/>

The error didn't longer occur after removing that line. I'm not sure which influence the line has...

Generated at Fri Apr 18 02:06:31 UTC 2014 using JIRA 4.0.2#472.