users@glassfish.java.net

GlasFish 3.1 and JSFUnit

From: <forums_at_java.net>
Date: Mon, 28 Mar 2011 07:42:43 -0500 (CDT)

Hi everybody,

I'm trying to run some JSFUnit tests with Glassfish 3.1, but I have a problem
while deploying the test appalication on the server. Sometimes the app
deploys without any errors and the JSFUnit test runs fine. But in the most of
my deploy processes i get the following error:

 


SCHWERWIEGEND: Critical error during deployment:
com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! DTD
factory class org.apache.xerces.impl.dv.dtd.DTDDVFactoryImpl does not extend
from DTDDVFactory.
    at
com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:379)
    at
com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:225)
    at
org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:4690)
    at
com.sun.enterprise.web.WebModule.contextListenerStart(WebModule.java:534)
    at
org.apache.catalina.core.StandardContext.start(StandardContext.java:5305)
    at com.sun.enterprise.web.WebModule.start(WebModule.java:500)
    at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:917)
    at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:901)
    at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:755)
    at
com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1980)
    at
com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1630)
    at
com.sun.enterprise.web.WebApplication.start(WebApplication.java:100)
    at org.glassfish.internal.data.EngineRef.start(EngineRef.java:130)
    at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:269)
    at
org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:286)
    at
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:461)
    at
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
    at
org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:370)
    at
com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:355)
    at
com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:370)
    at
com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1067)
    at
com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:96)
    at
com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1247)
    at
com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1235)
    at
com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:465)
    at
com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:222)
    at
com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:168)
    at
com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)
    at
com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:234)
    at
com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822)
    at
com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719)
    at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013)
    at
com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
    at
com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
    at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
    at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
    at
com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
    at
com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
    at
com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
    at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
    at
com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
    at
com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
    at java.lang.Thread.run(Thread.java:662)
Caused by: org.apache.xerces.impl.dv.DVFactoryException: DTD factory class
org.apache.xerces.impl.dv.dtd.DTDDVFactoryImpl does not extend from
DTDDVFactory.
    at org.apache.xerces.impl.dv.DTDDVFactory.getInstance(Unknown Source)
    at org.apache.xerces.impl.dv.DTDDVFactory.getInstance(Unknown Source)
    at org.apache.xerces.impl.xs.opti.SchemaParsingConfig.<init>(Unknown
Source)
    at org.apache.xerces.impl.xs.opti.SchemaParsingConfig.<init>(Unknown
Source)
    at org.apache.xerces.impl.xs.traversers.XSDHandler.<init>(Unknown
Source)
    at org.apache.xerces.impl.xs.traversers.XSDHandler.<init>(Unknown
Source)
    at org.apache.xerces.impl.xs.XMLSchemaLoader.<init>(Unknown Source)
    at org.apache.xerces.impl.xs.XMLSchemaLoader.<init>(Unknown Source)
    at org.apache.xerces.impl.xs.XMLSchemaValidator.<init>(Unknown Source)
    at
org.apache.xerces.jaxp.validation.XMLSchemaValidatorComponentManager.<init>(Unknown
Source)
    at
org.apache.xerces.jaxp.validation.ValidatorHandlerImpl.<init>(Unknown Source)
    at
org.apache.xerces.jaxp.validation.AbstractXMLSchema.newValidatorHandler(Unknown
Source)
    at org.apache.xerces.jaxp.DocumentBuilderImpl.<init>(Unknown Source)
    at
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown
Source)
    at
com.sun.faces.config.ConfigManager$ParseTask.getBuilderForSchema(ConfigManager.java:1133)
    at
com.sun.faces.config.ConfigManager$ParseTask.getDocument(ConfigManager.java:1002)
    at
com.sun.faces.config.ConfigManager$ParseTask.call(ConfigManager.java:914)
    at
com.sun.faces.config.ConfigManager$ParseTask.call(ConfigManager.java:868)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at
com.sun.faces.config.ConfigManager.getConfigDocuments(ConfigManager.java:659)
    at
com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:322)
    ... 42 more

I have packed into my war all needed jars how it is described in
http://www.jboss.org/jsfunit/gettingstarted.html. The only different is that
I'm using the junit 4.4 jar instead of the junit 3.8.1. I have also tried to
use the xercesImpl.jar which is stored in the glassfish lib dirrectory
(instead of xercesImpl-2.8.1.jar [1]). Without success.

Anyboder there which knows where's the error?

Thanks and regards,

Steffen


[1]
http://repo1.maven.org/maven2/xerces/xercesImpl/2.8.1/xercesImpl-2.8.1.jar

--
[Message sent by forum member 'stewert']
View Post: http://forums.java.net/node/785901