【发布时间】:2013-07-04 19:11:21
【问题描述】:
我想将 JBoss 5 中的 JVM 选项设置为:
-Dorg.xml.sax.driver=org.apache.xerces.parsers.SAXParser
我该怎么做?
更新:
我试过这个...
我已经更新了 run.bat 文件,并附加了这个条目..
设置 JAVA_OPTS=%JAVA_OPTS% -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dorg.xml.sax.driver=org.apache.xerces .parsers.SAXParser
现在我在启动 JBOSS 服务器时收到此错误...
...22:12:32,015 错误 [ProfileServiceBootstrap] 无法加载配置文件: org.jboss.deployers.spi.DeploymentException:错误确定结构:jbossweb.deployer 在 org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49) 在 org.jboss.deployers.vfs.plugins.structure.explicit.DeclaredStructure.determineStructure(DeclaredStructure.java:89) 在 org.jboss.deployers.vfs.plugins.structure.StructureDeployerWrapper.determineStructure(StructureDeployerWrapper.java:73) 在 org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl.doDetermineStructure(VFSStructuralDeployersImpl.java:196) 在 org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl.determineStructure(VFSStructuralDeployersImpl.java:221) 在 org.jboss.deployers.structure.spi.helpers.AbstractStructuralDeployers.determineStructure(AbstractStructuralDeployers.java:77) 在 org.jboss.deployers.plugins.main.MainDeployerImpl.determineStructure(MainDeployerImpl.java:1000) 在 org.jboss.deployers.plugins.main.MainDeployerImpl.determineDeploymentContext(MainDeployerImpl.java:440) 在 org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:390) 在 org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:300) 在 org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:296) 在 org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205) 在 org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405) 在 org.jboss.Main.boot(Main.java:209) 在 org.jboss.Main$1.run(Main.java:547) 在 java.lang.Thread.run(未知来源) 原因:org.jboss.xb.binding.JBossXBRuntimeException: 无法创建新的 SAX 解析器 在 org.jboss.xb.binding.UnmarshallerFactory$UnmarshallerFactoryImpl.newUnmarshaller(UnmarshallerFactory.java:100) 在 org.jboss.deployers.vfs.plugins.structure.explicit.DeclaredStructure.determineStructure(DeclaredStructure.java:72) ... 14 更多 原因:org.jboss.xb.binding.JBossXBException: 无法创建新的 SAX 解析器 在 org.jboss.xb.binding.parser.sax.SaxJBossXBParser.(SaxJBossXBParser.java:97) 在 org.jboss.xb.binding.UnmarshallerImpl.(UnmarshallerImpl.java:56) 在 org.jboss.xb.binding.UnmarshallerFactory$UnmarshallerFactoryImpl.newUnmarshaller(UnmarshallerFactory.java:96) ... 15 更多 原因:javax.xml.parsers.ParserConfigurationException:无法识别功能“http://apache.org/xml/features/xinclude”。 在 org.apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParser(未知来源) 在 org.jboss.xb.binding.parser.sax.SaxJBossXBParser.(SaxJBossXBParser.java:92) ... 17 更多。
现在有什么解决办法?
【问题讨论】:
标签: java jsp jakarta-ee jboss