Discussions

EJB programming & troubleshooting: WL 10.2 + EJB 2.1 + JDK 1.5 + weblogic.aapc

  1. WL 10.2 + EJB 2.1 + JDK 1.5 + weblogic.aapc (2 messages)

    Hi All, We are migrating an EJB application from WL8 to WL10.2. While compiling build is failing beacuse of weblogic.aapc target. Here is the stack trace..any help appreciated, [java] java.lang.RuntimeException: Installation Problem??? Couldn't load messages: Can't find bundle for base name com.bea.xbean.regex.message, locale en_US [java] at com.bea.xbean.regex.RegexParser.setLocale(RegexParser.java:88) [java] at com.bea.xbean.regex.RegexParser.(RegexParser.java:78) [java] at com.bea.xbean.regex.ParserForXMLSchema.(ParserForXMLSchema.java:28) [java] at com.bea.xbean.regex.RegularExpression.setPattern(RegularExpression.java:2996) [java] at com.bea.xbean.regex.RegularExpression.setPattern(RegularExpression.java:3009) [java] at com.bea.xbean.regex.RegularExpression.(RegularExpression.java:2975) [java] at com.bea.xbean.regex.SchemaRegularExpression.(SchemaRegularExpression.java:27) [java] at com.bea.xbean.regex.SchemaRegularExpression.(SchemaRegularExpression.java:23) [java] at com.bea.xbean.regex.SchemaRegularExpression$1.(SchemaRegularExpression.java:44) [java] at com.bea.xbean.regex.SchemaRegularExpression.buildKnownPatternMap(SchemaRegularExpression.java:43) [java] at com.bea.xbean.regex.SchemaRegularExpression.(SchemaRegularExpression.java:38) [java] at com.bea.xbean.schema.BuiltinSchemaTypeSystem.fillInType(BuiltinSchemaTypeSystem.java:1025) [java] at com.bea.xbean.schema.BuiltinSchemaTypeSystem.(BuiltinSchemaTypeSystem.java:223) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:585) [java] at com.bea.xml.XmlBeans.getNoType(XmlBeans.java:856) [java] at com.bea.xml.XmlBeans.(XmlBeans.java:881) [java] at com.bea.xml.XmlObject.(XmlObject.java:139) [java] at java.lang.Class.forName0(Native Method) [java] at java.lang.Class.forName(Class.java:164) [java] at com.bea.staxb.buildtime.internal.bts.JavaTypeName.class$(JavaTypeName.java:45) [java] at com.bea.staxb.buildtime.internal.bts.JavaTypeName.(JavaTypeName.java:45) [java] at sun.misc.Unsafe.ensureClassInitialized(Native Method) [java] at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:25) [java] at sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:122) [java] at java.lang.reflect.Field.acquireFieldAccessor(Field.java:917) [java] at java.lang.reflect.Field.getFieldAccessor(Field.java:898) [java] at java.lang.reflect.Field.getLong(Field.java:527) [java] at java.io.ObjectStreamClass.getDeclaredSUID(ObjectStreamClass.java:1586) [java] at java.io.ObjectStreamClass.access$700(ObjectStreamClass.java:52) [java] at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:408) [java] at java.security.AccessController.doPrivileged(Native Method) [java] at java.io.ObjectStreamClass.(ObjectStreamClass.java:400) [java] at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:297) [java] at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:531) [java] at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1552) [java] at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466) [java] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1699) [java] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305) [java] at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1908) [java] at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1832) [java] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719) [java] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305) [java] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348) [java] at java.util.HashMap.readObject(HashMap.java:1066) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:585) [java] at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:946) [java] at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1809) [java] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719) [java] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305) [java] at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1908) [java] at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1832) [java] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719) [java] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305) [java] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348) [java] at com.bea.staxb.buildtime.internal.bts.BindingFile.forSer(BindingFile.java:77) [java] at com.bea.staxb.buildtime.internal.tylar.RuntimeTylar.getBindingFiles(RuntimeTylar.java:163) [java] at com.bea.staxb.buildtime.internal.tylar.RuntimeTylar.getBindingLoader(RuntimeTylar.java:94) [java] at com.bea.staxb.runtime.internal.BindingContextFactoryImpl.createBindingContext(BindingContextFactoryImpl.java:66) [java] at com.bea.staxb.runtime.internal.BindingContextFactoryImpl.createBindingContext(BindingContextFactoryImpl.java:52) [java] at weblogic.descriptor.internal.MarshallerFactory.(MarshallerFactory.java:48) [java] at weblogic.descriptor.BasicDescriptorManager.getMarshallerFactory(BasicDescriptorManager.java:131) [java] at weblogic.descriptor.BasicDescriptorManager.getDescriptorFactory(BasicDescriptorManager.java:165) [java] at weblogic.descriptor.BasicDescriptorManager.createDescriptor(BasicDescriptorManager.java:289) [java] at weblogic.descriptor.BasicDescriptorManager.createDescriptor(BasicDescriptorManager.java:260) [java] at weblogic.application.descriptor.AbstractDescriptorLoader2.getDescriptorBeanFromReader(AbstractDescriptorLoader2.java:774) [java] at weblogic.application.descriptor.AbstractDescriptorLoader2.createDescriptorBean(AbstractDescriptorLoader2.java:395) [java] at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBeanWithoutPlan(AbstractDescriptorLoader2.java:745) [java] at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBean(AbstractDescriptorLoader2.java:754) [java] at weblogic.ejb.spi.EjbJarDescriptor.getEjbJarBean(EjbJarDescriptor.java:131) [java] at weblogic.ejb.container.dd.xml.EjbDescriptorReaderImpl.processEjbJarXMLWithSchema(EjbDescriptorReaderImpl.java:671) [java] at weblogic.ejb.container.dd.xml.EjbDescriptorReaderImpl.processEjbJarXML(EjbDescriptorReaderImpl.java:220) [java] at weblogic.ejb.container.dd.xml.EjbDescriptorReaderImpl.createReadOnlyDescriptorFromJarFile(EjbDescriptorReaderImpl.java:185) [java] at weblogic.ejb.spi.EjbDescriptorFactory.createReadOnlyDescriptorFromJarFile(EjbDescriptorFactory.java:93) [java] at weblogic.ejb.container.ejbc.EJBCompiler.parseDescriptors(EJBCompiler.java:1435) [java] at weblogic.ejb.container.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:467) [java] at weblogic.application.compiler.AppcUtils.compileEJB(AppcUtils.java:298) [java] at weblogic.application.compiler.EJBModule.compile(EJBModule.java:83) [java] at weblogic.application.compiler.flow.SingleModuleCompileFlow.proecessModule(SingleModuleCompileFlow.java:16) [java] at weblogic.application.compiler.flow.SingleModuleFlow.compile(SingleModuleFlow.java:31) [java] at weblogic.application.compiler.FlowDriver$FlowStateChange.next(FlowDriver.java:69) [java] at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26) [java] at weblogic.application.compiler.FlowDriver.nextState(FlowDriver.java:36) [java] at weblogic.application.compiler.FlowDriver.run(FlowDriver.java:26) [java] at weblogic.application.compiler.EJBCompiler.compile(EJBCompiler.java:25) [java] at weblogic.application.compiler.flow.AppCompilerFlow.compileInput(AppCompilerFlow.java:118) [java] at weblogic.application.compiler.flow.AppCompilerFlow.compile(AppCompilerFlow.java:43) [java] at weblogic.application.compiler.FlowDriver$FlowStateChange.next(FlowDriver.java:69) [java] at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26) [java] at weblogic.application.compiler.FlowDriver.nextState(FlowDriver.java:36) [java] at weblogic.application.compiler.FlowDriver.run(FlowDriver.java:26) [java] at weblogic.application.compiler.Appc.runBody(Appc.java:177) [java] at weblogic.utils.compiler.Tool.run(Tool.java:158) [java] at weblogic.utils.compiler.Tool.run(Tool.java:115) [java] at weblogic.application.compiler.Appc.main(Appc.java:188) [java] at weblogic.appc.main(appc.java:14) [java] Installation Problem??? Couldn't load messages: Can't find bundle for base name com.bea.xbean.regex.message, locale en_US
  2. Re: WL 10.2 + EJB 2.0 + JDK 1.5 + weblogic.aapc[ Go to top ]

    Hi All,
    We are migrating an EJB application from WL8 to WL10.2.
    While compiling build is failing beacuse of weblogic.aapc target.


    Here is the stack trace..any help appreciated,

    [java] java.lang.RuntimeException: Installation Problem??? Couldn't load messages: Can't find bundle for base name com.bea.xbean.regex.message, locale en_US
    [java] at com.bea.xbean.regex.RegexParser.setLocale(RegexParser.java:88)
    [java] at com.bea.xbean.regex.RegexParser.(RegexParser.java:78)
    [java] at com.bea.xbean.regex.ParserForXMLSchema.(ParserForXMLSchema.java:28)
    [java] at com.bea.xbean.regex.RegularExpression.setPattern(RegularExpression.java:2996)
    [java] at com.bea.xbean.regex.RegularExpression.setPattern(RegularExpression.java:3009)
    [java] at com.bea.xbean.regex.RegularExpression.(RegularExpression.java:2975)
    [java] at com.bea.xbean.regex.SchemaRegularExpression.(SchemaRegularExpression.java:27)
    [java] at com.bea.xbean.regex.SchemaRegularExpression.(SchemaRegularExpression.java:23)
    [java] at com.bea.xbean.regex.SchemaRegularExpression$1.(SchemaRegularExpression.java:44)
    [java] at com.bea.xbean.regex.SchemaRegularExpression.buildKnownPatternMap(SchemaRegularExpression.java:43)
    [java] at com.bea.xbean.regex.SchemaRegularExpression.(SchemaRegularExpression.java:38)
    [java] at com.bea.xbean.schema.BuiltinSchemaTypeSystem.fillInType(BuiltinSchemaTypeSystem.java:1025)
    [java] at com.bea.xbean.schema.BuiltinSchemaTypeSystem.(BuiltinSchemaTypeSystem.java:223)
    [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [java] at java.lang.reflect.Method.invoke(Method.java:585)
    [java] at com.bea.xml.XmlBeans.getNoType(XmlBeans.java:856)
    [java] at com.bea.xml.XmlBeans.(XmlBeans.java:881)
    [java] at com.bea.xml.XmlObject.(XmlObject.java:139)
    [java] at java.lang.Class.forName0(Native Method)
    [java] at java.lang.Class.forName(Class.java:164)
    [java] at com.bea.staxb.buildtime.internal.bts.JavaTypeName.class$(JavaTypeName.java:45)
    [java] at com.bea.staxb.buildtime.internal.bts.JavaTypeName.(JavaTypeName.java:45)
    [java] at sun.misc.Unsafe.ensureClassInitialized(Native Method)
    [java] at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:25)
    [java] at sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:122)
    [java] at java.lang.reflect.Field.acquireFieldAccessor(Field.java:917)
    [java] at java.lang.reflect.Field.getFieldAccessor(Field.java:898)
    [java] at java.lang.reflect.Field.getLong(Field.java:527)
    [java] at java.io.ObjectStreamClass.getDeclaredSUID(ObjectStreamClass.java:1586)
    [java] at java.io.ObjectStreamClass.access$700(ObjectStreamClass.java:52)
    [java] at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:408)
    [java] at java.security.AccessController.doPrivileged(Native Method)
    [java] at java.io.ObjectStreamClass.(ObjectStreamClass.java:400)
    [java] at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:297)
    [java] at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:531)
    [java] at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1552)
    [java] at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466)
    [java] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1699)
    [java] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
    [java] at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1908)
    [java] at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1832)
    [java] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
    [java] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
    [java] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
    [java] at java.util.HashMap.readObject(HashMap.java:1066)
    [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [java] at java.lang.reflect.Method.invoke(Method.java:585)
    [java] at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:946)
    [java] at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1809)
    [java] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
    [java] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
    [java] at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1908)
    [java] at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1832)
    [java] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
    [java] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
    [java] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
    [java] at com.bea.staxb.buildtime.internal.bts.BindingFile.forSer(BindingFile.java:77)
    [java] at com.bea.staxb.buildtime.internal.tylar.RuntimeTylar.getBindingFiles(RuntimeTylar.java:163)
    [java] at com.bea.staxb.buildtime.internal.tylar.RuntimeTylar.getBindingLoader(RuntimeTylar.java:94)
    [java] at com.bea.staxb.runtime.internal.BindingContextFactoryImpl.createBindingContext(BindingContextFactoryImpl.java:66)
    [java] at com.bea.staxb.runtime.internal.BindingContextFactoryImpl.createBindingContext(BindingContextFactoryImpl.java:52)
    [java] at weblogic.descriptor.internal.MarshallerFactory.(MarshallerFactory.java:48)
    [java] at weblogic.descriptor.BasicDescriptorManager.getMarshallerFactory(BasicDescriptorManager.java:131)
    [java] at weblogic.descriptor.BasicDescriptorManager.getDescriptorFactory(BasicDescriptorManager.java:165)
    [java] at weblogic.descriptor.BasicDescriptorManager.createDescriptor(BasicDescriptorManager.java:289)
    [java] at weblogic.descriptor.BasicDescriptorManager.createDescriptor(BasicDescriptorManager.java:260)
    [java] at weblogic.application.descriptor.AbstractDescriptorLoader2.getDescriptorBeanFromReader(AbstractDescriptorLoader2.java:774)
    [java] at weblogic.application.descriptor.AbstractDescriptorLoader2.createDescriptorBean(AbstractDescriptorLoader2.java:395)
    [java] at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBeanWithoutPlan(AbstractDescriptorLoader2.java:745)
    [java] at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBean(AbstractDescriptorLoader2.java:754)
    [java] at weblogic.ejb.spi.EjbJarDescriptor.getEjbJarBean(EjbJarDescriptor.java:131)
    [java] at weblogic.ejb.container.dd.xml.EjbDescriptorReaderImpl.processEjbJarXMLWithSchema(EjbDescriptorReaderImpl.java:671)
    [java] at weblogic.ejb.container.dd.xml.EjbDescriptorReaderImpl.processEjbJarXML(EjbDescriptorReaderImpl.java:220)
    [java] at weblogic.ejb.container.dd.xml.EjbDescriptorReaderImpl.createReadOnlyDescriptorFromJarFile(EjbDescriptorReaderImpl.java:185)
    [java] at weblogic.ejb.spi.EjbDescriptorFactory.createReadOnlyDescriptorFromJarFile(EjbDescriptorFactory.java:93)
    [java] at weblogic.ejb.container.ejbc.EJBCompiler.parseDescriptors(EJBCompiler.java:1435)
    [java] at weblogic.ejb.container.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:467)
    [java] at weblogic.application.compiler.AppcUtils.compileEJB(AppcUtils.java:298)
    [java] at weblogic.application.compiler.EJBModule.compile(EJBModule.java:83)
    [java] at weblogic.application.compiler.flow.SingleModuleCompileFlow.proecessModule(SingleModuleCompileFlow.java:16)
    [java] at weblogic.application.compiler.flow.SingleModuleFlow.compile(SingleModuleFlow.java:31)
    [java] at weblogic.application.compiler.FlowDriver$FlowStateChange.next(FlowDriver.java:69)
    [java] at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
    [java] at weblogic.application.compiler.FlowDriver.nextState(FlowDriver.java:36)
    [java] at weblogic.application.compiler.FlowDriver.run(FlowDriver.java:26)
    [java] at weblogic.application.compiler.EJBCompiler.compile(EJBCompiler.java:25)
    [java] at weblogic.application.compiler.flow.AppCompilerFlow.compileInput(AppCompilerFlow.java:118)
    [java] at weblogic.application.compiler.flow.AppCompilerFlow.compile(AppCompilerFlow.java:43)
    [java] at weblogic.application.compiler.FlowDriver$FlowStateChange.next(FlowDriver.java:69)
    [java] at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
    [java] at weblogic.application.compiler.FlowDriver.nextState(FlowDriver.java:36)
    [java] at weblogic.application.compiler.FlowDriver.run(FlowDriver.java:26)
    [java] at weblogic.application.compiler.Appc.runBody(Appc.java:177)
    [java] at weblogic.utils.compiler.Tool.run(Tool.java:158)
    [java] at weblogic.utils.compiler.Tool.run(Tool.java:115)
    [java] at weblogic.application.compiler.Appc.main(Appc.java:188)
    [java] at weblogic.appc.main(appc.java:14)
    [java] Installation Problem??? Couldn't load messages: Can't find bundle for base name com.bea.xbean.regex.message, locale en_US
  3. //Remove xbean_bea.jar and xbean.jar from classpath, it will definitely work.