Is there a reason that you need to use Xerces specifically in your
server-side code, as opposed to using Java's built-in XML libraries?


On Fri, May 1, 2009 at 3:47 PM, GUI Newbie <[email protected]>wrote:

>
> I am developing a GWT web application and have written a few test
> cases that I have been able to run.  My server side code has a
> dependency on xercesImpl 2.7.1.  Once Xerces is added to my war/WEB-
> INF/lib directory, my test cases stop running and I get the following
> error.  Remove xerces and my tests run again.
>
> Can you please let me know how I can fix this as my server tests
> require xerces.
>
> Thank you.
>
>
> Starting HTTP on port 0
>   [WARN] Error deploying web application directory ROOT
> javax.xml.parsers.FactoryConfigurationError: Provider
> org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found
>        at javax.xml.parsers.DocumentBuilderFactory.newInstance
> (DocumentBuilderFactory.java:104)
>        at org.apache.commons.modeler.util.DomUtil.readXml(DomUtil.java:284)
>        at
> org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource.execute
> (MbeansDescriptorsDOMSource.java:130)
>        at
>
> org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource.loadDescriptors
> (MbeansDescriptorsDOMSource.java:120)
>        at org.apache.commons.modeler.Registry.load(Registry.java:819)
>        at
> org.apache.commons.modeler.Registry.loadDescriptors(Registry.java:
> 931)
>        at
> org.apache.commons.modeler.Registry.loadDescriptors(Registry.java:
> 909)
>        at org.apache.commons.modeler.Registry.findDescriptor(Registry.java:
> 992)
>        at
> org.apache.commons.modeler.Registry.findManagedBean(Registry.java:
> 696)
>        at
> org.apache.commons.modeler.Registry.findManagedBean(Registry.java:
> 1047)
>        at org.apache.commons.modeler.Registry.registerComponent
> (Registry.java:859)
>        at org.apache.catalina.loader.WebappLoader.init(WebappLoader.java:
> 612)
>        at org.apache.catalina.loader.WebappLoader.start(WebappLoader.java:
> 644)
>        at org.apache.catalina.core.StandardContext.start
> (StandardContext.java:4231)
>        at org.apache.catalina.core.ContainerBase.addChildInternal
> (ContainerBase.java:823)
>        at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:
> 807)
>        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:
> 595)
>        at org.apache.catalina.core.StandardHostDeployer.install
> (StandardHostDeployer.java:277)
>        at org.apache.catalina.core.StandardHost.install(StandardHost.java:
> 832)
>        at org.apache.catalina.startup.HostConfig.deployDirectories
> (HostConfig.java:701)
>        at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:
> 432)
>        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)
>        at org.apache.catalina.startup.HostConfig.lifecycleEvent
> (HostConfig.java:349)
>        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent
> (LifecycleSupport.java:119)
>        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
> 1091)
>        at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
>        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
> 1083)
>        at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:
> 478)
>        at org.apache.catalina.startup.Embedded.start(Embedded.java:846)
>        at com.google.gwt.dev.shell.tomcat.EmbeddedTomcatServer.<init>
> (EmbeddedTomcatServer.java:246)
>        at com.google.gwt.dev.shell.tomcat.EmbeddedTomcatServer.start
> (EmbeddedTomcatServer.java:70)
>        at com.google.gwt.dev.GWTShell.doStartUpServer(GWTShell.java:226)
>        at
> com.google.gwt.dev.HostedModeBase.startUp(HostedModeBase.java:590)
>        at com.google.gwt.junit.JUnitShell.getUnitTestShell(JUnitShell.java:
> 410)
>        at com.google.gwt.junit.JUnitShell.runTest(JUnitShell.java:346)
>        at com.google.gwt.junit.client.GWTTestCase.runTest(GWTTestCase.java:
> 219)
>        at junit.framework.TestCase.runBare(TestCase.java:134)
>        at junit.framework.TestResult$1.protect(TestResult.java:110)
>        at junit.framework.TestResult.runProtected(TestResult.java:128)
>        at junit.framework.TestResult.run(TestResult.java:113)
>        at junit.framework.TestCase.run(TestCase.java:124)
>        at com.google.gwt.junit.client.GWTTestCase.run(GWTTestCase.java:132)
>        at junit.framework.TestSuite.runTest(TestSuite.java:232)
>        at junit.framework.TestSuite.run(TestSuite.java:227)
>        at
> org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run
> (JUnit3TestReference.java:130)
>        at org.eclipse.jdt.internal.junit.runner.TestExecution.run
> (TestExecution.java:38)
>        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests
> (RemoteTestRunner.java:460)
>        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests
> (RemoteTestRunner.java:673)
>        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run
> (RemoteTestRunner.java:386)
>        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main
> (RemoteTestRunner.java:196)
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to