aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes class bytes found but defineClass() failed error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "class bytes found but defineClass() failed error " Watch "class bytes found but defineClass() failed error " New topic
Author

class bytes found but defineClass() failed error

Senthil Kumar
Ranch Hand

Joined: Mar 13, 2006
Posts: 264
Hi,
when i try to deploy the jar file it says unable to load the class.
when i try to do that in weblogic builder tool it says "class bytes found but defineClass() failed" .And i am using jdk1.5 for compliling.

what is the problem?.


when you really want something, all the universe always conspires in your favour.<br /> <br />SCJP1.5-77%<br />SCWCD-89%
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10215
    
166

Post the entire exception stacktrace


[My Blog] [JavaRanch Journal]
Senthil Kumar
Ranch Hand

Joined: Mar 13, 2006
Posts: 264
this is what i get in weblogic

Exception:weblogic.management.ApplicationException: prepare failed for first Module: first Error: Exception preparing module: EJBModule(first,status=NEW) Unable to deploy EJB: C:\bea\user_projects\senthilkumar\myserver\upload\first.jar from first.jar: weblogic.ejb20.deployer.DeploymentDescriptorException: Unable to load a class specified in your ejb-jar.xml: Calculator at weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.initializeBeanInfos(MBeanDeploymentInfoImpl.java:531) at weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.(MBeanDeploymentInfoImpl.java:232) at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1260) at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:473) at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.java:2842) at weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContainer.java:1529) at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1183) at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1026) at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareContainer(SlaveDeployer.java:2568) at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2520) at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2450) at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:829) at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:538) at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:496) at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)

[Deployer:149033]preparing application first on myserver
[Deployer:149033]failed application first on myserver
[Deployer:149034]An exception occurred for task [Deployer:149026]Deploy application first on myserver.: Exception:weblogic.management.ApplicationException: prepare failed for first Module: first Error: Exception preparing module: EJBModule(first,status=NEW) Unable to deploy EJB: C:\bea\user_projects\senthilkumar\myserver\upload\first.jar from first.jar: weblogic.ejb20.deployer.DeploymentDescriptorException: Unable to load a class specified in your ejb-jar.xml: Calculator at weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.initializeBeanInfos(MBeanDeploymentInfoImpl.java:531) at weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.(MBeanDeploymentInfoImpl.java:232) at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1260) at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:473) at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.java:2842) at weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContainer.java:1529) at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1183) at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1026) at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareContainer(SlaveDeployer.java:2568) at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2520) at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2450) at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:829) at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:538) at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:496) at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151) .
Carol Enderlin
drifter
Ranch Hand

Joined: Oct 10, 2000
Posts: 1364
Google is your friend:

WL 8.1 deployment error - class bytes found but defineClass() failed

If you are using WebLogic Server 8.1 jdk 1.5 is not supported.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: class bytes found but defineClass() failed error