Skip to main content

Fatal Error from EJB Compiler

6 replies [Last post]
bkhan78
Offline
Joined: 2008-06-11

I was trying to deploy the JBoss seam booking example using the glassfish admin console.
I tried deploying booking.ear and it gives me error. I've deployed it properly using JBoss application server but I'm unable to deploy it on glassfish.....
Can anyone help me on this plzz.....
thanks

ERROR
//------------------------------------------------------------------------------------------------------------------------------
Deploying application in domain failed; Fatal Error from EJB Compiler -- j avassist/util/proxy/MethodHandler Fatal Error from EJB Compiler -- javassist/util/proxy/MethodHandler

//----------------------------------------------------------------------------------------------------------------------------

LOGFILE

[#|2008-06-11T11:06:37.000-0500|SEVERE|sun-appserver9.1|javax.enterprise.system.tools.deployment|_ThreadID=27;_ThreadName=Thread-622;_RequestID=8a95b377-b3f3-4adc-a2f1-bdf2f583e504;|Exception occured in J2EEC Phase
com.sun.enterprise.deployment.backend.IASDeploymentException: Fatal Error from EJB Compiler -- javassist/util/proxy/MethodHandler
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at com.sun.enterprise.util.TypeUtil.getMethod(TypeUtil.java:393)
at com.sun.enterprise.deployment.MethodDescriptor.getMethod(MethodDescriptor.java:314)
at com.sun.enterprise.security.application.EJBSecurityManager.convertEJBMethodPermissions(EJBSecurityManager.java:562)
at com.sun.enterprise.security.application.EJBSecurityManager.loadPolicyConfiguration(EJBSecurityManager.java:282)
at com.sun.enterprise.deployment.backend.EJBCompiler.compile(EJBCompiler.java:240)
at com.sun.enterprise.deployment.backend.AppDeployer.runEJBC(AppDeployer.java:319)
at com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:240)
at com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:148)
at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:191)
at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:919)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:279)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:788)
at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:187)
at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:223)
|#]

//------------------------------------------------------------------------------------------------------------------------------

//------------------------------------------------------------------------------------------------------------------------------

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
hzhang_jn
Offline
Joined: 2005-07-22

Actually after looking closely at TypeUtil class, it does take a classloader param when doing the forName call. And the classloader passed in should have all the application related classes too, so I am not sure what happens in your cases. Again please let us know how the missing class (javassist/util/proxy/MethodHandler) was packaged/provided to the application.

bkhan78
Offline
Joined: 2008-06-11

thanks for replying

I am relatively new to JBoss and Application servers...so dont know much about it.

I was just following the part 3 of this webcast:-

http://www.thescreencast.com/2007/06/jboss-seam-generator-and-eclipse-id...

It shows you how to deploy the project on jboss...I was able to deploy it successfully on jbossAS but was not able to do so on glassfish....I think we have to configure it differently....but I don't know how to.

If anyone of you guys have a link which shows how to configure Jboss Seam using glassfish and Eclipse IDE...It would be appreciated.

Again Thanks a lot.

skirillo
Offline
Joined: 2007-12-12

The guys are right. You are missing javassist.jar file which contains the class you need. Add this jar to your .ear file to the /lib directory and you should pass this step.

hzhang_jn
Offline
Joined: 2005-07-22

Looks like TypeUtil.getMethod is trying to load class (javassist/util/proxy/MethodHandler) from the current thread context classloader, and this class was not available in that classloader.

How was javassist/util/proxy/MethodHandler class packaged in your application? The thread context classloader might not be set with all the necessary classpaths here..

Can you try to drop this class under $AS_INSTALL/lib and see if the problem can be worked around?

bkhan78
Offline
Joined: 2008-06-11

Is anybody having the same problems or is just me?????????????

Wim V

Hi,

Is is possible the JDBC datasources this app needs, are not correctly
configured in the persistence.xml? I think I've seen something like this a
while ago, but I'm not sure.

I tried configuring a JDBC datasource in persistence.xml using the jdbc/
prefix. But this prefix is appended automatically by glassgish (so it seems)
So you just need to put the name of the datasource there.

What you DO need to, however, is specify the JDNI name for the database in
the glassfish admin console as jdbc/[DATASOURCE_NAME]

Also, depending on the database you're using, I think this error can occur
if you're missing some required additional properties. (f.e. on sql server
you would have to add SelectMethod=cursor, or it won't work)

Hope this will help,

Wim V

-----Original Message-----
From: glassfish@javadesktop.org [mailto:glassfish@javadesktop.org]
Sent: woensdag 11 juni 2008 20:33
To: users@glassfish.dev.java.net
Subject: Re: Fatal Error from EJB Compiler

Is anybody having the same problems or is just me?????????????
[Message sent by forum member 'bkhan78' (bkhan78)]

http://forums.java.net/jive/thread.jspa?messageID=279768

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net