Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/flash/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jboss6.x JBoss 6的DeploymentException_Jboss6.x - Fatal编程技术网

Jboss6.x JBoss 6的DeploymentException

Jboss6.x JBoss 6的DeploymentException,jboss6.x,Jboss6.x,在jboss 6中部署ear时,它会出现运行时异常,请帮助我如何解决此错误 11:14:14,684 ERROR [ProfileDeployAction] Failed to add deployment: FirstGen.ear: org.jboss.deployers.spi.DeploymentException: Exception determining structure: AbstractVFSDeployment(FirstGen.ear) at org.jboss.depl

在jboss 6中部署ear时,它会出现运行时异常,请帮助我如何解决此错误

11:14:14,684 ERROR [ProfileDeployAction] Failed to add deployment: FirstGen.ear: org.jboss.deployers.spi.DeploymentException: Exception determining structure: AbstractVFSDeployment(FirstGen.ear)
at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49) [:2.2.0.GA]
at org.jboss.deployers.structure.spi.helpers.AbstractStructuralDeployers.determineStructure(AbstractStructuralDeployers.java:85) [:2.2.0.GA]
at org.jboss.deployers.plugins.main.MainDeployerImpl.determineStructure(MainDeployerImpl.java:1106) [:2.2.0.GA]
at org.jboss.deployers.plugins.main.MainDeployerImpl.determineDeploymentContext(MainDeployerImpl.java:417) [:2.2.0.GA]
at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:367) [:2.2.0.GA]
at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:277) [:2.2.0.GA]
at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.addDeployment(MainDeployerPlugin.java:77) [:6.0.0.Final]
at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.addDeployment(ProfileControllerContext.java:133) [:0.2.2]
at org.jboss.profileservice.dependency.ProfileDeployAction.deploy(ProfileDeployAction.java:132) [:0.2.2]
at org.jboss.profileservice.dependency.ProfileDeployAction.installActionInternal(ProfileDeployAction.java:94) [:0.2.2]
at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54) [jboss-kernel.jar:2.2.0.GA]
at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42) [jboss-kernel.jar:2.2.0.GA]
at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.profileservice.dependency.ProfileActivationWrapper$BasicProfileActivation.start(ProfileActivationWrapper.java:190) [:0.2.2]
at org.jboss.profileservice.dependency.ProfileActivationWrapper.start(ProfileActivationWrapper.java:87) [:0.2.2]
at org.jboss.profileservice.dependency.ProfileActivationService.activateProfile(ProfileActivationService.java:215) [:0.2.2]
at org.jboss.profileservice.dependency.ProfileActivationService.activate(ProfileActivationService.java:159) [:0.2.2]
at org.jboss.profileservice.bootstrap.AbstractProfileServiceBootstrap.activate(AbstractProfileServiceBootstrap.java:112) [:0.2.2]
at org.jboss.profileservice.resolver.BasicResolverFactory$ProfileResolverFacade.deploy(BasicResolverFactory.java:87) [:0.2.2]
at org.jboss.profileservice.bootstrap.AbstractProfileServiceBootstrap.start(AbstractProfileServiceBootstrap.java:91) [:0.2.2]
at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:132) [:6.0.0.Final]
at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:56) [:6.0.0.Final]
at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:827) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]
at org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.run(AbstractServer.java:417) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]
at java.lang.Thread.run(Thread.java:662) [:1.6.0_27]
原因:java.lang.RuntimeException:确定结构时出错:FirstGen.ear 在org.jboss.deployment.EARStructure.doDetermineStructure(EARStructure.java:300)[:6.0.0.Final] 在org.jboss.deployers.vfs.plugins.structure.AbstractVFSArchiveStructureDeployer.determineststructure(AbstractVFSArchiveStructureDeployer.java:60)[:2.2.0.GA] 位于org.jboss.deployers.vfs.plugins.structure.StructureDeployerRapper.DeterministeStructure(structureDeployerRapper.java:73)[:2.2.0.GA] 在org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl.doDetermineStructure(VFSStructuralDeployersImpl.java:197)[:2.2.0.GA] 在org.jboss.deployers.vfs.plugins.structure.vfsstructuraledeployersimpl.determinitestructure(vfsstructuraledeployersimpl.java:222)[:2.2.0.GA] 在org.jboss.deployers.structure.spi.helpers.AbstractStructureDeployers.determinitestructure(AbstractStructureDeployers.java:77)[:2.2.0.GA] ... 33多 原因:org.jboss.xb.binding.JBossXBException:未能分析源:xml_stream@14,15 位于org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:224)[jbossxb.jar:2.0.3.GA] 位于org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:193)[jbossxb.jar:2.0.3.GA] 在org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:171)[jbossxb.jar:2.0.3.GA] 在org.jboss.deployment.EARStructure.doDetermineStructure(EARStructure.java:169)[:6.0.0.Final] ... 38多 原因:org.xml.sax.SAXException:元素类型“application”的内容必须匹配(图标?、显示名称、说明?、模块+、安全角色*)。@未知[14,15] 位于org.jboss.xb.binding.parser.sax.SaxJBossXBParser.error(SaxJBossXBParser.java:416)[jbossxb.jar:2.0.3.GA] 位于org.apache.xerces.util.ErrorHandlerWrapper.error(未知源)[xercesImpl.jar:6.0.0.Final] 在org.apache.xerces.impl.XMLErrorReporter.reportError(未知源)[xercesImpl.jar:6.0.0.Final] 在org.apache.xerces.impl.XMLErrorReporter.reportError(未知源)[xercesImpl.jar:6.0.0.Final] 在org.apache.xerces.impl.XMLErrorReporter.reportError(未知源)[xercesImpl.jar:6.0.0.Final] 位于org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(未知源)[xercesImpl.jar:6.0.0.Final] 位于org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(未知源)[xercesImpl.jar:6.0.0.Final] 位于org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(未知源)[xercesImpl.jar:6.0.0.Final] 在org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(未知源)[xercesImpl.jar:6.0.0.Final] 在org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.ScandDocument(未知源)[xercesImpl.jar:6.0.0.Final] 位于org.apache.xerces.parsers.XML11Configuration.parse(未知源)[xercesImpl.jar:6.0.0.Final] 位于org.apache.xerces.parsers.XML11Configuration.parse(未知源)[xercesImpl.jar:6.0.0.Final] 位于org.apache.xerces.parsers.XMLParser.parse(未知源)[xercesImpl.jar:6.0.0.Final] 位于org.apache.xerces.parsers.AbstractSAXParser.parse(未知源)[xercesImpl.jar:6.0.0.Final] 位于org.apache.xerces.jaxp.saxpasserimpl$JAXPSAXParser.parse(未知源)[xercesImpl.jar:6.0.0.Final] 位于org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:209)[jbossxb.jar:2.0.3.GA]
... 41更多application.xml中显示名称和描述元素的顺序在J2EE1.3和1.4之间发生了更改(从DTD移动到模式)

此消息:

The content of element type "application" must match "(icon?,display-name,description?,module+,security-role*)
告诉我您有一个格式不正确的J2EE 1.3 application.xml文件,其中包含:

<!DOCTYPE application PUBLIC
    "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN"
    "http://java.sun.com/dtd/application_1_3.dtd">

在顶端

我建议您将其更新为更现代的模式,例如:

<application xmlns="http://java.sun.com/xml/ns/javaee"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
    http://java.sun.com/xml/ns/javaee/application_5.xsd"
      version="5">

对于JBossas6


元素的顺序将是正确的。

请给出Jboss 6 Ear结构示例的简单应用程序