Discussions

EJB programming & troubleshooting: EJB2 application on Weblogic10 appc and deployment problem

  1. Hi, I am trying to migrate my EJB2.0 application from WLS7 jdk4 to WLS10 jdk5. I compiled my application with jdk5 and WLS10 libraries then I am trying to run weblogic.appc on my application it complains that there is some class missing (see the below exception) .. then i try to deploy the jar without running appc on it.. i am getting another exception.. Please help if i am missing any library that is used by appc. I tried to look into all the jars shipped with WLS10 but unable to find that class.. ----------------------------------------- weblogic.appc exception ----------------------------------------- Exception in thread "main" java.lang.NoClassDefFoundError: weblogic/descriptor/BeanUpdateListen at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:164) at weblogic.logging.MessageLogger.(MessageLogger.java:45) at weblogic.logging.WLMessageLogger.log(WLMessageLogger.java:51) at weblogic.j2ee.J2EELogger.logAppcFailedWithError(J2EELogger.java:5257) at weblogic.application.compiler.Appc.runBody(Appc.java:174) at weblogic.utils.compiler.Tool.run(Tool.java:158) at weblogic.utils.compiler.Tool.run(Tool.java:115) at weblogic.application.compiler.Appc.main(Appc.java:183) at weblogic.appc.main(appc.java:14) ----------------------------------------------------------- Deployment exception on WLS10 ----------------------------------------------------------- <Unable to load descriptor /ecds/bea100/user_projects/domains/ fmsdomain/servers/AdminServer/upload/FMS-raw.jar/META-INF/ejb-jar.xml of module FMS-raw.jar. The error is weblogic.descr iptor.DescriptorException: Unmarshaller failed at weblogic.descriptor.internal.MarshallerFactory$1.createDescriptor(MarshallerFactory.java:152) at weblogic.descriptor.BasicDescriptorManager.createDescriptor(BasicDescriptorManager.java:292) at weblogic.descriptor.BasicDescriptorManager.createDescriptor(BasicDescriptorManager.java:260) at weblogic.application.descriptor.AbstractDescriptorLoader2.getDescriptorBeanFromReader(AbstractDescriptorLoade r2.java:774) at weblogic.application.descriptor.AbstractDescriptorLoader2.createDescriptorBean(AbstractDescriptorLoader2.java :395) at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBeanWithoutPlan(AbstractDescriptorLoa der2.java:745) at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBean(AbstractDescriptorLoader2.java:7 54) at weblogic.ejb.spi.EjbJarDescriptor.getEjbJarBean(EjbJarDescriptor.java:131) at weblogic.ejb.spi.EjbJarDescriptor.getEditableEjbJarBean(EjbJarDescriptor.java:171) at weblogic.ejb.container.dd.xml.EjbDescriptorReaderImpl.processEjbJarXMLWithSchema(EjbDescriptorReaderImpl.java :673) at weblogic.ejb.container.dd.xml.EjbDescriptorReaderImpl.processEjbJarXML(EjbDescriptorReaderImpl.java:220) at weblogic.ejb.container.dd.xml.EjbDescriptorReaderImpl.createDescriptorFromJarFile(EjbDescriptorReaderImpl.jav a:172) at weblogic.ejb.spi.EjbDescriptorFactory.createDescriptorFromJarFile(EjbDescriptorFactory.java:73) at weblogic.application.compiler.EJBModule.merge(EJBModule.java:130) at weblogic.application.compiler.flow.SingleModuleMergeFlow.proecessModule(SingleModuleMergeFlow.java:16) at weblogic.application.compiler.flow.SingleModuleFlow.compile(SingleModuleFlow.java:31) at weblogic.application.compiler.FlowDriver$FlowStateChange.next(FlowDriver.java:69) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26) at weblogic.application.compiler.FlowDriver.nextState(FlowDriver.java:36) at weblogic.application.compiler.FlowDriver$CompilerFlowDriver.compile(FlowDriver.java:96) at weblogic.application.compiler.ReadOnlyEjbMerger.merge(ReadOnlyEjbMerger.java:27) at weblogic.application.compiler.flow.AppMergerFlow.mergeInput(AppMergerFlow.java:94) at weblogic.application.compiler.flow.AppMergerFlow.compile(AppMergerFlow.java:47) at weblogic.application.compiler.FlowDriver$FlowStateChange.next(FlowDriver.java:69) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26) at weblogic.application.compiler.FlowDriver.nextState(FlowDriver.java:36) at weblogic.application.compiler.FlowDriver$CompilerFlowDriver.compile(FlowDriver.java:96) at weblogic.application.compiler.AppMerge.runBody(AppMerge.java:137) at weblogic.utils.compiler.Tool.run(Tool.java:158) at weblogic.utils.compiler.Tool.run(Tool.java:115) at weblogic.application.compiler.AppMerge.merge(AppMerge.java:149) at weblogic.deploy.api.internal.utils.AppMerger.merge(AppMerger.java:70) at weblogic.deploy.api.internal.utils.AppMerger.getMergedApp(AppMerger.java:51) at weblogic.deploy.api.model.internal.WebLogicDeployableObjectFactoryImpl.createDeployableObject(WebLogicDeploya bleObjectFactoryImpl.java:177) at weblogic.deploy.api.model.internal.WebLogicDeployableObjectFactoryImpl.createLazyDeployableObject(WebLogicDep loyableObjectFactoryImpl.java:150)
  2. I am getting the same error. Please tell me in case of weblogic 10 where to keep the external jar files e.g pop3.jar etc.