Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Error while deploying the jar file in weblogic.Kindly help me out

 
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
i have compiled the files and have prepared the jar file.But while deploying the jar in the weblogic console,iam getting the below error.Kindly help me out.


mydomain> EJB Deployments> Deploy a new EJB Module...

Connected to : mydomain You are logged in as : weblogic Logout

-----------------------------------------------------------------------
Exception:weblogic.management.ApplicationException: prepare failed for Test Module: Test Error: Exception preparing module: EJBModule(Test,status=NEW) Unable to deploy EJB: C:\bea\user_projects\applications\ejb\test\Test.jar from Test.jar: weblogic.ejb20.deployer.DeploymentDescriptorException: Unable to load a class specified in your ejb-jar.xml: Class bytes found but defineClass()failed for: 'TestBean' at weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.initializeBeanInfos(Lweblogic/management/descriptors/toplevel/EJBDescriptorMBean;Lweblogic/utils/classloaders/GenericClassLoader V(MBeanDeploymentInfoImpl.java:550) at weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.<init>(Lweblogic/management/descriptors/toplevel/EJBDescriptorMBean;Lweblogic/utils/classloaders/GenericClassLoader;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lweblogic/utils/jars/VirtualJarFile V(MBeanDeploymentInfoImpl.java:232) at weblogic.ejb20.deployer.EJBDeployer.prepare(Lweblogic/utils/jars/VirtualJarFile;Ljava/lang/ClassLoader;Lweblogic/management/descriptors/toplevel/EJBDescriptorMBean;Ljavax/naming/Context;Ljava/util/Map V(EJBDeployer.java:1407) at weblogic.ejb20.deployer.EJBModule.prepare(Ljava/lang/ClassLoader V(EJBModule.java:498) at weblogic.j2ee.J2EEApplicationContainer.prepareModule(Lweblogic/utils/classloaders/GenericClassLoader;Lweblogic/j2ee/J2EEApplicationContainer$Component;Z)V(J2EEApplicationContainer.java:3149) at weblogic.j2ee.J2EEApplicationContainer.prepareModules([Lweblogic/j2ee/J2EEApplicationContainer$Component;Ljava/lang/String;Z)V(J2EEApplicationContainer.java:1590) at weblogic.j2ee.J2EEApplicationContainer.prepare([Lweblogic/j2ee/J2EEApplicationContainer$Component;[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String V(J2EEApplicationContainer.java:1234) at weblogic.j2ee.J2EEApplicationContainer.prepare(Ljava/lang/String;[Lweblogic/management/configuration/ComponentMBean;[Ljava/lang/String V(J2EEApplicationContainer.java:1077) at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareContainer()V(SlaveDeployer.java:2530) at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer()Z(SlaveDeployer.java:2480) at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare()V(SlaveDeployer.java:2396) at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(Lweblogic/management/deploy/OamVersion;Lweblogic/management/runtime/DeploymentTaskRuntimeMBean;Z)V(SlaveDeployer.java:883) at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(Lweblogic/management/deploy/OamDelta;Lweblogic/management/deploy/OamVersion;ZLjava/lang/StringBuffer Z(SlaveDeployer.java:591) at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(Ljava/util/ArrayList;Z)V(SlaveDeployer.java:500) at weblogic.drs.internal.SlaveCallbackHandler$1.execute(Lweblogic/kernel/ExecuteThread V(SlaveCallbackHandler.java:25) at weblogic.kernel.ExecuteThread.execute(Lweblogic/kernel/ExecuteRequest V(Optimized Method) at weblogic.kernel.ExecuteThread.run()V(ExecuteThread.java:183) at java.lang.Thread.startThreadFromVM(Ljava/lang/Thread V(Unknown Source)

[Deployer:149033]preparing application Test on myserver
[Deployer:149033]failed application Test on myserver
[Deployer:149034]An exception occurred for task [Deployer:149026]Deploy application Test on myserver.: Exception:weblogic.management.ApplicationException: prepare failed for Test Module: Test Error: Exception preparing module: EJBModule(Test,status=NEW) Unable to deploy EJB: C:\bea\user_projects\applications\ejb\test\Test.jar from Test.jar: weblogic.ejb20.deployer.DeploymentDescriptorException: Unable to load a class specified in your ejb-jar.xml: Class bytes found but defineClass()failed for: 'TestBean' at weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.initializeBeanInfos(Lweblogic/management/descriptors/toplevel/EJBDescriptorMBean;Lweblogic/utils/classloaders/GenericClassLoader V(MBeanDeploymentInfoImpl.java:550) at weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.<init>(Lweblogic/management/descriptors/toplevel/EJBDescriptorMBean;Lweblogic/utils/classloaders/GenericClassLoader;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lweblogic/utils/jars/VirtualJarFile V(MBeanDeploymentInfoImpl.java:232) at weblogic.ejb20.deployer.EJBDeployer.prepare(Lweblogic/utils/jars/VirtualJarFile;Ljava/lang/ClassLoader;Lweblogic/management/descriptors/toplevel/EJBDescriptorMBean;Ljavax/naming/Context;Ljava/util/Map V(EJBDeployer.java:1407) at weblogic.ejb20.deployer.EJBModule.prepare(Ljava/lang/ClassLoader V(EJBModule.java:498) at weblogic.j2ee.J2EEApplicationContainer.prepareModule(Lweblogic/utils/classloaders/GenericClassLoader;Lweblogic/j2ee/J2EEApplicationContainer$Component;Z)V(J2EEApplicationContainer.java:3149) at weblogic.j2ee.J2EEApplicationContainer.prepareModules([Lweblogic/j2ee/J2EEApplicationContainer$Component;Ljava/lang/String;Z)V(J2EEApplicationContainer.java:1590) at weblogic.j2ee.J2EEApplicationContainer.prepare([Lweblogic/j2ee/J2EEApplicationContainer$Component;[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String V(J2EEApplicationContainer.java:1234) at weblogic.j2ee.J2EEApplicationContainer.prepare(Ljava/lang/String;[Lweblogic/management/configuration/ComponentMBean;[Ljava/lang/String V(J2EEApplicationContainer.java:1077) at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareContainer()V(SlaveDeployer.java:2530) at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer()Z(SlaveDeployer.java:2480) at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare()V(SlaveDeployer.java:2396) at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(Lweblogic/management/deploy/OamVersion;Lweblogic/management/runtime/DeploymentTaskRuntimeMBean;Z)V(SlaveDeployer.java:883) at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(Lweblogic/management/deploy/OamDelta;Lweblogic/management/deploy/OamVersion;ZLjava/lang/StringBuffer Z(SlaveDeployer.java:591) at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(Ljava/util/ArrayList;Z)V(SlaveDeployer.java:500) at weblogic.drs.internal.SlaveCallbackHandler$1.execute(Lweblogic/kernel/ExecuteThread V(SlaveCallbackHandler.java:25) at weblogic.kernel.ExecuteThread.execute(Lweblogic/kernel/ExecuteRequest V(Optimized Method) at weblogic.kernel.ExecuteThread.run()V(ExecuteThread.java:183) at java.lang.Thread.startThreadFromVM(Ljava/lang/Thread V(Unknown Source) .

--------------------------------------------------------------

Iam also providing the details of DD.

<?xml version="1.0"?>

<!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN' 'http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd'>

ejb-jar

<ejb-jar>
<enterprise-beans>
<session>
<description>Test Bean</description>
<display-name>Test Bean</display-name>
<ejb-name>TestBean</ejb-name>
<home>TestHome</home>
<remote>Test</remote>

<ejb-class>TestBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>
</enterprise-beans>
<assembly-descriptor>
<container-transaction>
<method>
<ejb-name>TestBean</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar>

weblogic-ejb-jar

<weblogic-ejb-jar>
<weblogic-enterprise-bean>
<ejb-name>TestBean</ejb-name>
<jndi-name>TestBean</jndi-name>
</weblogic-enterprise-bean>
</weblogic-ejb-jar>


Regards,
Sathya
 
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
App server specific issues are generally well received in their dedicated forum - moving to BEA/Weblogic forum...
 
WHAT is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic