I have created a MDB class. and created ejb-jar, weblogic-ejb-jar with following descriptors.
ejb-jar.xml
weblogic-ejb-jar.xml
I am creating a mdb.jar using the following command
C:\bin>jar cvf mdb.jar common/alertMgmt/mdb/AlertMDB.class common/alertMgmt/mdb/META-INF/ejb-jar.xml common/alertMgmt/mdb/META-INF/weblogic-ejb-jar.xml
Then I am placing the mdb.jar and META-INF folder under bea\weblogic81\server\bin\applications\alert.
when I am trying to deploy the mdb.jar. I am getting the following error.
weblogic.management.ApplicationException:
Exception:weblogic.management.ApplicationException: prepare failed for alert
Module: alert Error: Exception preparing module: EJBModule(alert,status=NEW)
Unable to deploy
EJB: C:\bea\weblogic81\server\bin\applications\alert from alert:
weblogic.ejb20.deployer.DeploymentDescriptorException: Unable to load a class specified in your ejb-jar.xml: common.alertMgmt.mdb.AlertMDB
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
///////////////////////////////////////////////////////////////////
I have open the jar file in winzip & the class has generated with proper path. Can anyone tell me what's wrong here in DD or code?
[ October 26, 2006: Message edited by: Prasanth Pillai ]