3 Replies Latest reply on Jan 15, 2008 6:02 AM by Pete Muir

    jboss-seam-1.1.0.GA embedded ejb container won't run

    Benjamin Fayle Newbie

      I have downloaded the most recent SEAM release and can successfully build the example applications, deploy them and run them.

      However, if I try and run any of the tests:

      ant testexample


      on any of the projects the tests fail when trying to launch the embedded JBoss container. I'm running jdk1.5.0_05 on Windows XP.

      I would expect this to work - there's really not many variables here - just SEAM and Java.

      I get the following error:

       [testng] 23:16:44,450 INFO [Component] Component: register, scope: STATELESS, type: STATELESS_SESSION_BEAN, class: org.jboss.seam.example.registration.RegisterAction, JNDI: RegisterAction/local
       [testng] 23:16:44,465 INFO [Lifecycle] starting up: org.jboss.seam.core.ejb
       [testng] 23:16:44,465 INFO [Ejb] starting the embedded EJB container
       [testng] 23:16:44,732 ERROR [Util] Failed to create schema loader.
       [testng] java.lang.ClassCastException: org.apache.xerces.dom.DOMXSImplementationSourceImpl
       [testng] at org.w3c.dom.bootstrap.DOMImplementationRegistry.newInstance(DOMImplementationRegistry.java:144)
       [testng] at org.jboss.xb.binding.Util$2.run(Util.java:506)
       [testng] at java.security.AccessController.doPrivileged(Native Method)
       [testng] at org.jboss.xb.binding.Util.getXSImplementation(Util.java:482)
       [testng] at org.jboss.xb.binding.Util.loadSchema(Util.java:381)
       [testng] at org.jboss.xb.binding.sunday.unmarshalling.XsdBinder.bind(XsdBinder.java:177)
       [testng] at org.jboss.xb.binding.sunday.unmarshalling.XsdBinder.bind(XsdBinder.java:148)
       [testng] at org.jboss.xb.binding.sunday.unmarshalling.DefaultSchemaResolver.resolve(DefaultSchemaResolver.java:248)
       [testng] at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.startElement(SundayContentHandler.java:159)
       [testng] at org.jboss.xb.binding.parser.sax.SaxJBossXBParser$DelegatingContentHandler.startElement(SaxJBossXBParser.java:299)
       [testng] at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
       [testng] at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
       [testng] at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source)
       [testng] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
       [testng] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
       [testng] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
       [testng] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
       [testng] at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
       [testng] at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
       [testng] at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:124)
       [testng] at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:132)
       [testng] at org.jboss.kernel.plugins.deployment.xml.BeanXMLDeployer.deploy(BeanXMLDeployer.java:85)
       [testng] at org.jboss.ejb3.embedded.EJB3StandaloneBootstrap.boot(EJB3StandaloneBootstrap.java:380)
       [testng] at org.jboss.seam.core.Ejb.startup(Ejb.java:42)
       [testng] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       [testng] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       [testng] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       [testng] at java.lang.reflect.Method.invoke(Method.java:585)
       [testng] at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
       [testng] at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:102)
       [testng] at org.jboss.seam.Component.callComponentMethod(Component.java:1791)
       [testng] at org.jboss.seam.Component.callCreateMethod(Component.java:1739)
       [testng] at org.jboss.seam.Component.newInstance(Component.java:1728)
       [testng] at org.jboss.seam.contexts.Lifecycle.startup(Lifecycle.java:152)
       [testng] at org.jboss.seam.contexts.Lifecycle.endInitialization(Lifecycle.java:126)
       [testng] at org.jboss.seam.init.Initialization.init(Initialization.java:430)
       [testng] at org.jboss.seam.mock.SeamTest.init(SeamTest.java:686)
       [testng] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       [testng] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       [testng] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       [testng] at java.lang.reflect.Method.invoke(Method.java:585)
       [testng] at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:529)
       [testng] at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:311)
       [testng] at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:149)
       [testng] at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:77)
       [testng] at org.testng.TestRunner.privateRun(TestRunner.java:614)
       [testng] at org.testng.TestRunner.run(TestRunner.java:505)
       [testng] at org.testng.SuiteRunner.privateRun(SuiteRunner.java:221)
       [testng] at org.testng.SuiteRunner.run(SuiteRunner.java:147)
       [testng] at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:576)
       [testng] at org.testng.TestNG.runSuitesLocally(TestNG.java:539)
       [testng] at org.testng.TestNG.run(TestNG.java:316)
       [testng] at org.testng.TestNG.privateMain(TestNG.java:666)
       [testng] at org.testng.TestNG.main(TestNG.java:608)
       [testng] Creating D:\dev\seam\jboss-seam-1.1.0.GA\examples\registration\test-output\Register.html
       [testng] FAILED: org.jboss.seam.mock.SeamTest.init()
       [testng] java.lang.RuntimeException: org.jboss.xb.binding.JBossXBException: Failed to parse source: file:/D:/dev/seam/jboss-seam-1.1.0.GA/embedded-ejb/conf/embedded-jboss-beans.xml@5,45
       [testng] at org.jboss.ejb3.embedded.EJB3StandaloneBootstrap.boot(EJB3StandaloneBootstrap.java:391)
       [testng] at org.jboss.seam.core.Ejb.startup(Ejb.java:42)
       [testng] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       [testng] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       [testng] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       [testng] at java.lang.reflect.Method.invoke(Method.java:585)
       [testng] at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
       [testng] at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:102)
       [testng] at org.jboss.seam.Component.callComponentMethod(Component.java:1791)
       [testng] at org.jboss.seam.Component.callCreateMethod(Component.java:1739)
       [testng] at org.jboss.seam.Component.newInstance(Component.java:1728)
       [testng] at org.jboss.seam.contexts.Lifecycle.startup(Lifecycle.java:152)
       [testng] at org.jboss.seam.contexts.Lifecycle.endInitialization(Lifecycle.java:126)
       [testng] at org.jboss.seam.init.Initialization.init(Initialization.java:430)
       [testng] at org.jboss.seam.mock.SeamTest.init(SeamTest.java:686)
       [testng] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       [testng] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       [testng] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       [testng] at java.lang.reflect.Method.invoke(Method.java:585)
       [testng] at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:529)
       [testng] at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:311)
       [testng] at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:149)
       [testng] at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:77)
       [testng] at org.testng.TestRunner.privateRun(TestRunner.java:614)
       [testng] at org.testng.TestRunner.run(TestRunner.java:505)
       [testng] at org.testng.SuiteRunner.privateRun(SuiteRunner.java:221)
       [testng] at org.testng.SuiteRunner.run(SuiteRunner.java:147)
       [testng] at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:576)
       [testng] at org.testng.TestNG.runSuitesLocally(TestNG.java:539)
       [testng] at org.testng.TestNG.run(TestNG.java:316)
       [testng] at org.testng.TestNG.privateMain(TestNG.java:666)
       [testng] at org.testng.TestNG.main(TestNG.java:608)
       [testng] Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: file:/D:/dev/seam/jboss-seam-1.1.0.GA/embedded-ejb/conf/embedded-jboss-beans.xml@5,45
       [testng] at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:128)
       [testng] at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:132)
       [testng] at org.jboss.kernel.plugins.deployment.xml.BeanXMLDeployer.deploy(BeanXMLDeployer.java:85)
       [testng] at org.jboss.ejb3.embedded.EJB3StandaloneBootstrap.boot(EJB3StandaloneBootstrap.java:380)
       [testng] ... 31 more
       [testng] Caused by: java.lang.IllegalStateException: Failed to create schema loader: org.apache.xerces.dom.DOMXSImplementationSourceImpl
       [testng] at org.jboss.xb.binding.Util$2.run(Util.java:512)
       [testng] at java.security.AccessController.doPrivileged(Native Method)
       [testng] at org.jboss.xb.binding.Util.getXSImplementation(Util.java:482)
       [testng] at org.jboss.xb.binding.Util.loadSchema(Util.java:381)
       [testng] at org.jboss.xb.binding.sunday.unmarshalling.XsdBinder.bind(XsdBinder.java:177)
       [testng] at org.jboss.xb.binding.sunday.unmarshalling.XsdBinder.bind(XsdBinder.java:148)
       [testng] at org.jboss.xb.binding.sunday.unmarshalling.DefaultSchemaResolver.resolve(DefaultSchemaResolver.java:248)
       [testng] at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.startElement(SundayContentHandler.java:159)
       [testng] at org.jboss.xb.binding.parser.sax.SaxJBossXBParser$DelegatingContentHandler.startElement(SaxJBossXBParser.java:299)
       [testng] at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
       [testng] at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
       [testng] at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source)
       [testng] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
       [testng] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
       [testng] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
       [testng] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
       [testng] at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
       [testng] at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
       [testng] at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:124)
       [testng] ... 34 more
      


      I'm stumped - anyone got any ideas?

      Benj



        • 1. Re: jboss-seam-1.1.0.GA embedded ejb container won't run
          Benjamin Fayle Newbie

          Solved my problem by upgrading from jdk1.5.0_05 to jdk1.5.0_10.

          Benj

          • 2. Re: jboss-seam-1.1.0.GA embedded ejb container won't run
            satyam sahay Newbie

            Hi Benj,
            I m using jdk1.5.0_10 still getting same error when running the JBoss4.2.0
            Application Server. The stack Trace says -


            19:15:52,508 ERROR [Util] Failed to create schema loader.
            java.lang.ClassCastException: org.apache.xerces.dom.DOMXSImplementationSourceImpl
            at org.w3c.dom.bootstrap.DOMImplementationRegistry.newInstance(DOMImplementationRegistry.java:144)
            at org.jboss.xb.binding.Util$5.run(Util.java:512)
            at java.security.AccessController.doPrivileged(Native Method)
            at org.jboss.xb.binding.Util.getXSImplementation(Util.java:488)
            at org.jboss.xb.binding.Util.loadSchema(Util.java:387)
            at org.jboss.xb.binding.sunday.unmarshalling.XsdBinder.bind(XsdBinder.java:168)
            at org.jboss.xb.binding.sunday.unmarshalling.XsdBinder.bind(XsdBinder.java:139)
            at org.jboss.xb.binding.sunday.unmarshalling.DefaultSchemaResolver.resolve(DefaultSchemaResolver.java:247)
            at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.startElement(SundayContentHandler.java:187)
            at org.jboss.xb.binding.parser.sax.SaxJBossXBParser$DelegatingContentHandler.startElement(SaxJBossXBParser.java:323)
            at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
            at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
            at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source)
            at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
            at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
            at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
            at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
            at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
            at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
            at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:188)
            at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:140)
            at org.jboss.system.ServiceConfigurator.parseJbxbSerialData(ServiceConfigurator.java:643)
            at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:327)
            at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:460)
            at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
            at org.jboss.system.ServiceController.install(ServiceController.java:226)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
            at $Proxy4.install(Unknown Source)
            at org.jboss.deployment.SARDeployer.create(SARDeployer.java:249)
            at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
            at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
            at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
            at $Proxy9.deploy(Unknown Source)
            at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
            at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
            at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
            at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
            at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
            at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
            at $Proxy0.start(Unknown Source)
            at org.jboss.system.ServiceController.start(ServiceController.java:417)
            at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
            at $Proxy4.start(Unknown Source)
            at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
            at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
            at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
            at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
            at $Proxy5.deploy(Unknown Source)
            at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
            at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
            at org.jboss.Main.boot(Main.java:200)
            at org.jboss.Main$1.run(Main.java:508)
            at java.lang.Thread.run(Thread.java:595)
            19:15:52,523 INFO [ServiceConfigurator] Problem configuring service jboss.web:service=WebServer
            org.jboss.xb.binding.JBossXBException: Failed to parse source: Failed to create schema loader: org.apache.xerces.dom.DOMXSImplementationSourceImpl
            at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:192)


            I m new in this Technology
            Help from anyone would be appreciated
            Thanks

            Cheers
            Satyam

            • 3. Re: jboss-seam-1.1.0.GA embedded ejb container won't run
              Pete Muir Master

              Which JRE, which platform?