• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

class bytes found but defineClass() failed error

 
Senthil Kumar
Ranch Hand
Posts: 264
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?.
 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Post the entire exception stacktrace
 
Senthil Kumar
Ranch Hand
Posts: 264
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1364
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic