3 Replies Latest reply on Nov 8, 2006 3:54 PM by Kirsten Schaefer

    Error loading Embeddable EJB3 with Weblogic 9

    zaid haque Newbie

      Hi,

      I'm getting following error when I launched Embeddable EJB3 on Weblogic server verion 9. Need a quick fix for me to work on POC.

      ERROR 17-09 11:20:51,671 (Logger.java:error:152) -Exception while loading URL templates, /WEB-INF/url-template-config.xml

      Throwable: javax.servlet.ServletException: error: The document is not a url-template-config: document element namespace mismatch expected "" got "http://www.bea.com/servers/weblogic/url-template-config/8.0"
      Stack Trace:
      javax.servlet.ServletException: error: The document is not a url-template-config: document element namespace mismatch expected "" got "http://www.bea.com/servers/weblogic/url-template-config/8.0"
      at org.apache.beehive.netui.core.urltemplates.URLTemplatesFactory.getTemplates(URLTemplatesFactory.java:131)
      at org.apache.beehive.netui.core.urltemplates.URLTemplateDescriptor.load(URLTemplateDescriptor.java:133)
      at org.apache.beehive.netui.pageflow.PageFlowContextListener.performInitializations(PageFlowContextListener.java:102)
      at org.apache.beehive.netui.pageflow.PageFlowActionServlet.init(PageFlowActionServlet.java:120)
      at com.bea.console.internal.ConsoleActionServlet.init(ConsoleActionServlet.java:185)
      at javax.servlet.GenericServlet.init(GenericServlet.java:256)
      at weblogic.servlet.AsyncInitServlet.initDelegate(AsyncInitServlet.java:95)
      at weblogic.servlet.internal.WebAppServletContext$AsyncInitRequest.run(WebAppServletContext.java:1609)
      at weblogic.work.ServerWorkManagerImpl$WorkAdapterImpl.run(ServerWorkManagerImpl.java:518)
      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:179)
      Caused by: org.apache.xmlbeans.XmlException: error: The document is not a url-template-config: document element namespace mismatch expected "" got "http://www.bea.com/servers/weblogic/url-template-config/8.0"
      at org.apache.xmlbeans.impl.store.Locale.verifyDocumentType(Locale.java:449)
      at org.apache.xmlbeans.impl.store.Locale.autoTypeDocument(Locale.java:354)
      at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1270)
      at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1254)
      at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:345)
      at org.apache.beehive.netui.core.urltemplates.schema.UrlTemplateConfigDocument$Factory.parse(Unknown Source)
      at org.apache.beehive.netui.core.urltemplates.DefaultURLTemplateFileParser.parse(DefaultURLTemplateFileParser.java:34)
      at org.apache.beehive.netui.core.urltemplates.URLTemplatesFactory.getTemplates(URLTemplatesFactory.java:118)
      ... 10 more

      <17-Sep-2005 11:20:53 o'clock GMT+04:00> <BEA-101162> <User defined listener org.jboss.ejb3.embedded.ServletBootstrapListener failed: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.VerifyError: (class: org/apache/xerces/impl/xs/XSAnnotationImpl, method: writeToDOM signature: (Lorg/w3c/dom/Node;S)V) Incompatible object argument for function call.
      java.lang.RuntimeException: java.lang.RuntimeException: java.lang.VerifyError: (class: org/apache/xerces/impl/xs/XSAnnotationImpl, method: writeToDOM signature: (Lorg/w3c/dom/Node;S)V) Incompatible object argument for function call
      at org.jboss.ejb3.embedded.ServletBootstrapListener.contextInitialized(ServletBootstrapListener.java:107)
      at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:336)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
      at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:79)
      Truncated. see log file for complete stacktrace
      java.lang.RuntimeException: java.lang.VerifyError: (class: org/apache/xerces/impl/xs/XSAnnotationImpl, method: writeToDOM signature: (Lorg/w3c/dom/Node;S)V) Incompatible object argument for function call
      at org.jboss.ejb3.embedded.ServletBootstrapListener.deployXmlResource(ServletBootstrapListener.java:60)
      at org.jboss.ejb3.embedded.ServletBootstrapListener.contextInitialized(ServletBootstrapListener.java:101)
      at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:336)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
      Truncated. see log file for complete stacktrace
      java.lang.VerifyError: (class: org/apache/xerces/impl/xs/XSAnnotationImpl, method: writeToDOM signature: (Lorg/w3c/dom/Node;S)V) Incompatible object argument for function call
      at org.apache.xerces.impl.xs.traversers.XSDAbstractTraverser.traverseAnnotationDecl(Unknown Source)
      at org.apache.xerces.impl.xs.traversers.XSDHandler.traverseSchemas(Unknown Source)
      at org.apache.xerces.impl.xs.traversers.XSDHandler.parseSchema(Unknown Source)
      at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(Unknown Source)
      at org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar(Unknown Source)
      Truncated. see log file for complete stacktrace
      >
      <17-Sep-2005 11:20:54 o'clock GMT+04:00> <BEA-101162> <User defined listener org.jboss.ejb3.embedded.ServletBootstrapListener failed: java.lang.RuntimeException: java.lang.VerifyError: (class: org/apache/xerces/impl/xs/XSAnnotationImpl, method: writeToDOM signature: (Lorg/w3c/dom/Node;S)V) Incompatible object argument for function call.
      java.lang.RuntimeException: java.lang.VerifyError: (class: org/apache/xerces/impl/xs/XSAnnotationImpl, method: writeToDOM signature: (Lorg/w3c/dom/Node;S)V) Incompatible object argument for function call
      at org.jboss.ejb3.embedded.ServletBootstrapListener.contextDestroyed(ServletBootstrapListener.java:129)
      at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:337)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
      at weblogic.servlet.internal.EventsManager.notifyContextDestroyedEvent(EventsManager.java:96)
      Truncated. see log file for complete stacktrace
      java.lang.VerifyError: (class: org/apache/xerces/impl/xs/XSAnnotationImpl, method: writeToDOM signature: (Lorg/w3c/dom/Node;S)V) Incompatible object argument for function call
      at org.apache.xerces.impl.xs.traversers.XSDAbstractTraverser.traverseAnnotationDecl(Unknown Source)
      at org.apache.xerces.impl.xs.traversers.XSDHandler.traverseSchemas(Unknown Source)
      at org.apache.xerces.impl.xs.traversers.XSDHandler.parseSchema(Unknown Source)
      at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(Unknown Source)
      at org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar(Unknown Source)
      Truncated. see log file for complete stacktrace
      >
      <17-Sep-2005 11:20:54 o'clock GMT+04:00> <BEA-149231> <Unable to set the activation state to true for the application 'TestEJB3'.
      weblogic.management.DeploymentException:
      at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:30)
      at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:635)
      at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
      at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:257)
      at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:154)
      Truncated. see log file for complete stacktrace
      java.lang.VerifyError: (class: org/apache/xerces/impl/xs/XSAnnotationImpl, method: writeToDOM signature: (Lorg/w3c/dom/Node;S)V) Incompatible object argument for function call
      at org.apache.xerces.impl.xs.traversers.XSDAbstractTraverser.traverseAnnotationDecl(Unknown Source)
      at org.apache.xerces.impl.xs.traversers.XSDHandler.traverseSchemas(Unknown Source)
      at org.apache.xerces.impl.xs.traversers.XSDHandler.parseSchema(Unknown Source)
      at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(Unknown Source)
      at org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar(Unknown Source)
      Truncated. see log file for complete stacktrace
      >


      Rgds,

        • 1. Re: Error loading Embeddable EJB3 with Weblogic 9
          Bill Burke Master

          You need to upgrade xerces to 2.7.0. Don't know how to do that on WEblogic, but you might be able to just throw it in the WAR's WEB-INF/lib

          Let me know how it goes please!!!

          I'll be testing on weblogic sometime in October.

          • 2. Re: Error loading Embeddable EJB3 with Weblogic 9
            zaid haque Newbie

            Hi,

            Thnx Bill for your response before...

            As you said I droped xerces 2 7 1 jar in WEB-INF\lib. Still it didn't work. However, I added these jars in the start of the classpath through startWeblogic.cmd (.sh). Still the problem exist if I start it through eclipse (I have 3.1 with MyEclipse). I think I may have to do something with eclipse or may be with myeclipse. However, with startWeblogic running in cmd prompt it comes up. Now my problem is while lookup of a bean, it is trying to go through weblogic naming (I believe Jboss EJB3 container has to pickup this lookup. I'm not sure weather I'm correct). I have added all the libraries in the WEB-INF\lib. Also then I tried adding jars in start of the classpath to check wether it works. Still the problem exist. Follwoing is stack trace

            javax.naming.NameNotFoundException: While trying to lookup 'com.emirates.ibe.tes
            tejb3.business.interfaces.Calculator' didn't find subcontext 'com'. Resolved '';
            remaining name 'com/emirates/ibe/testejb3/business/interfaces/Calculator'
            at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(Basic
            NamingNode.java:1123)
            at weblogic.jndi.internal.BasicNamingNode.lookupHere(BasicNamingNode.jav
            a:245)
            at weblogic.jndi.internal.ServerNamingNode.lookupHere(ServerNamingNode.j
            ava:171)
            at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:20
            4)
            at weblogic.jndi.internal.WLEventContextImpl.lookup(WLEventContextImpl.j
            ava:267)
            at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:362)
            at javax.naming.InitialContext.lookup(InitialContext.java:351)
            at jsp_servlet.__calculator.jspInit(__calculator.java:97)
            at weblogic.servlet.jsp.JspBase.init(JspBase.java:27)
            at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(St
            ubSecurityHelper.java:265)
            at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
            dSubject.java:321)
            at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
            121)
            at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecuri
            tyHelper.java:61)
            at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubL
            ifecycleHelper.java:58)
            at weblogic.servlet.internal.StubLifecycleHelper.(StubLifecycleHel
            per.java:48)
            at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
            mpl.java:502)
            at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:225)
            at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:164)
            at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
            a:224)
            at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(Servlet
            StubImpl.java:383)
            at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
            a:298)
            at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
            a:165)
            at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
            n.run(WebAppServletContext.java:3022)
            at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
            dSubject.java:321)
            at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
            121)
            at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppS
            ervletContext.java:1925)
            at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletC
            ontext.java:1848)
            at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.j
            ava:1288)
            at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
            at weblogic.work.ExecuteThread.run(ExecuteThread.java:179)


            Rgds,

            Zaid

            • 3. Re: Error loading Embeddable EJB3 in JBoss
              Kirsten Schaefer Newbie

              I am trying to run the Embeddable EJB3 with IntelliJ IDEA agaist JBoss and I get the same RuntimeException about a writeToDOM signature in xerces. I can understand why the person trying to run this agaist Weblogic would have issues with the xerces version incompatability but I don't see why I would have that issue with JBoss. Any information on why I am getting this exception would be greatly appreciated.

              java.lang.RuntimeException: java.lang.VerifyError: (class: org/apache/xerces/impl/xs/XSAnnotationImpl, method: writeToDOM signature: (Lorg/w3c/dom/Node;S)V) Incompatible object argument for function call
              at org.jboss.ejb3.embedded.EJB3StandaloneBootstrap.boot(EJB3StandaloneBootstrap.java:386)
              at gov.dia.gemini.core.ProducerBeanTest.startupEmbeddedJBoss(ProducerBeanTest.java:46)
              at gov.dia.gemini.core.ProducerBeanTest.setUp(ProducerBeanTest.java:35)
              at org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:35)
              at com.intellij.rt.junit4.Junit4ClassSuite.run(Junit4ClassSuite.java:59)
              at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:40)
              Caused by: java.lang.VerifyError: (class: org/apache/xerces/impl/xs/XSAnnotationImpl, method: writeToDOM signature: (Lorg/w3c/dom/Node;S)V) Incompatible object argument for function call
              at org.apache.xerces.impl.xs.traversers.XSDAbstractTraverser.traverseAnnotationDecl(Unknown Source)
              at org.apache.xerces.impl.xs.traversers.XSDHandler.traverseSchemas(Unknown Source)
              at org.apache.xerces.impl.xs.traversers.XSDHandler.parseSchema(Unknown Source)
              at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(Unknown Source)
              at org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar(Unknown Source)
              at org.apache.xerces.impl.xs.XSLoaderImpl.load(Unknown Source)
              at org.jboss.xb.binding.Util.loadSchema(Util.java:395)
              at org.jboss.xb.binding.sunday.unmarshalling.XsdBinder.bind(XsdBinder.java:166)
              at org.jboss.xb.binding.sunday.unmarshalling.XsdBinder.bind(XsdBinder.java:137)
              at org.jboss.xb.binding.sunday.unmarshalling.DefaultSchemaResolver.resolve(DefaultSchemaResolver.java:248)
              at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.startElement(SundayContentHandler.java:162)
              at org.jboss.xb.binding.parser.sax.SaxJBossXBParser$DelegatingContentHandler.startElement(SaxJBossXBParser.java:301)
              at org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376)
              at org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidator.java:1214)
              at org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanner.java:1806)
              at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:949)
              at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
              at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)
              at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1122)
              at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:138)
              at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:133)
              at org.jboss.kernel.plugins.deployment.xml.BeanXMLDeployer.deploy(BeanXMLDeployer.java:85)
              at org.jboss.ejb3.embedded.EJB3StandaloneBootstrap.boot(EJB3StandaloneBootstrap.java:373)