尝试在Netbeans中的weblogic 12c上部署战争时,验证问题发生了错误

时间:2018-01-19 18:18:26

标签: java netbeans weblogic12c

尝试在Weblogic 12c上部署Netbeans中的Spring Web项目,但面临服务器异常。

<Jan 19, 2018 11:31:02,022 PM IST> <Error> <Munger> <BEA-2156200> <Unable to load descriptor C:\Users\Hande\Documents\NetBeansProjects\SimpleSpringJMX\dist\SimpleSpringJMX.war/WEB-INF/web.xml of module SimpleSpringJMX.war. The error is weblogic.descriptor.DescriptorException: VALIDATION PROBLEMS WERE FOUND
  <19:7> problem: cvc-complex-type.2.4a: Expected elements 'module-name@http://xmlns.jcp.org/xml/ns/javaee description@http://xmlns.jcp.org/xml/ns/javaee display-name@http://xmlns.jcp.org/xml/ns/javaee icon@http://xmlns.jcp.org/xml/ns/javaee distributable@http://xmlns.jcp.org/xml/ns/javaee context-param@http://xmlns.jcp.org/xml/ns/javaee filter@http://xmlns.jcp.org/xml/ns/javaee filter-mapping@http://xmlns.jcp.org/xml/ns/javaee listener@http://xmlns.jcp.org/xml/ns/javaee servlet@http://xmlns.jcp.org/xml/ns/javaee servlet-mapping@http://xmlns.jcp.org/xml/ns/javaee session-config@http://xmlns.jcp.org/xml/ns/javaee mime-mapping@http://xmlns.jcp.org/xml/ns/javaee welcome-file-list@http://xmlns.jcp.org/xml/ns/javaee problem-page@http://xmlns.jcp.org/xml/ns/javaee jsp-config@http://xmlns.jcp.org/xml/ns/javaee security-constraint@http://xmlns.jcp.org/xml/ns/javaee login-config@http://xmlns.jcp.org/xml/ns/javaee security-role@http://xmlns.jcp.org/xml/ns/javaee env-entry@http://xmlns.jcp.org/xml/ns/javaee ejb-ref@http://xmlns.jcp.org/xml/ns/javaee ejb-local-ref@http://xmlns.jcp.org/xml/ns/javaee service-ref@http://xmlns.jcp.org/xml/ns/javaee resource-ref@http://xmlns.jcp.org/xml/ns/javaee resource-env-ref@http://xmlns.jcp.org/xml/ns/javaee message-destination-ref@http://xmlns.jcp.org/xml/ns/javaee persistence-context-ref@http://xmlns.jcp.org/xml/ns/javaee persistence-unit-ref@http://xmlns.jcp.org/xml/ns/javaee post-construct@http://xmlns.jcp.org/xml/ns/javaee pre-destroy@http://xmlns.jcp.org/xml/ns/javaee data-source@http://xmlns.jcp.org/xml/ns/javaee jms-connection-factory@http://xmlns.jcp.org/xml/ns/javaee jms-destination@http://xmlns.jcp.org/xml/ns/javaee mail-session@http://xmlns.jcp.org/xml/ns/javaee connection-factory@http://xmlns.jcp.org/xml/ns/javaee administered-object@http://xmlns.jcp.org/xml/ns/javaee message-destination@http://xmlns.jcp.org/xml/ns/javaee locale-encoding-mapping-list@http://xmlns.jcp.org/xml/ns/javaee deny-uncovered-http-methods@http://xmlns.jcp.org/xml/ns/javaee absolute-ordering@http://xmlns.jcp.org/xml/ns/javaee' instead of 'bean@http://xmlns.jcp.org/xml/ns/javaee' here in element web-app@http://xmlns.jcp.org/xml/ns/javaee
    at weblogic.descriptor.internal.MarshallerFactory$1.evaluateResults(MarshallerFactory.java:249)
    at weblogic.descriptor.internal.MarshallerFactory$1.evaluateResults(MarshallerFactory.java:235)
    at weblogic.descriptor.internal.MarshallerFactory$1.createDescriptor(MarshallerFactory.java:159)
    at weblogic.descriptor.BasicDescriptorManager.createDescriptor(BasicDescriptorManager.java:345)
    at weblogic.descriptor.BasicDescriptorManager.createDescriptor(BasicDescriptorManager.java:307)
    at weblogic.application.descriptor.AbstractDescriptorLoader2.getDescriptorBeanFromReader(AbstractDescriptorLoader2.java:870)
    at weblogic.application.descriptor.AbstractDescriptorLoader2.createDescriptorBean(AbstractDescriptorLoader2.java:445)
    at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBeanWithoutPlan(AbstractDescriptorLoader2.java:832)
    at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBean(AbstractDescriptorLoader2.java:841)
    at weblogic.servlet.internal.WebAppDescriptor.getWebAppBean(WebAppDescriptor.java:145)
    at weblogic.servlet.internal.WebAppModule.loadDescriptor(WebAppModule.java:1629)
    at weblogic.servlet.internal.WebAppModule.init(WebAppModule.java:269)
    at weblogic.servlet.internal.WebAppModule.init(WebAppModule.java:707)
    at weblogic.application.internal.flow.ScopedModuleDriver.init(ScopedModuleDriver.java:162)
    at weblogic.application.internal.ExtensibleModuleWrapper.init(ExtensibleModuleWrapper.java:98)
    at weblogic.application.internal.flow.ModuleListenerInvoker.init(ModuleListenerInvoker.java:84)
    at weblogic.application.internal.flow.InitModulesFlow.initModule(InitModulesFlow.java:311)
    at weblogic.application.internal.flow.InitModulesFlow.initModules(InitModulesFlow.java:532)
    at weblogic.application.internal.flow.InitModulesFlow.prepare(InitModulesFlow.java:558)
    at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:729)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:45)
    at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:241)
    at weblogic.application.internal.SingleModuleDeployment.prepare(SingleModuleDeployment.java:52)
    at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:158)
    at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:65)
    at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:229)
    at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:103)
    at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:242)
    at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:800)
    at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1352)
    at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:270)
    at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:177)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:186)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:14)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:47)
    at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:670)
    at weblogic.invocation.ComponentInvocationContextManager._runAs(ComponentInvocationContextManager.java:352)
    at weblogic.invocation.ComponentInvocationContextManager.runAs(ComponentInvocationContextManager.java:337)
    at weblogic.work.LivePartitionUtility.doRunWorkUnderContext(LivePartitionUtility.java:57)
    at weblogic.work.PartitionUtility.runWorkUnderContext(PartitionUtility.java:41)
    at weblogic.work.SelfTuningWorkManagerImpl.runWorkUnderContext(SelfTuningWorkManagerImpl.java:644)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:415)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:355)
.> 
<Jan 19, 2018 11:31:02,305 PM IST> <Error> <HTTP> <BEA-101064> <[WebAppModule(SimpleSpringJMX:SimpleSpringJMX.war)] Error parsing descriptor in Web appplication "C:\Users\Hande\Documents\NetBeansProjects\SimpleSpringJMX\dist\SimpleSpringJMX.war"
weblogic.application.ModuleException: VALIDATION PROBLEMS WERE FOUND
  <19:7> problem: cvc-complex-type.2.4a: Expected elements 'module-name@http://xmlns.jcp.org/xml/ns/javaee description@http://xmlns.jcp.org/xml/ns/javaee display-name@http://xmlns.jcp.org/xml/ns/javaee icon@http://xmlns.jcp.org/xml/ns/javaee distributable@http://xmlns.jcp.org/xml/ns/javaee context-param@http://xmlns.jcp.org/xml/ns/javaee filter@http://xmlns.jcp.org/xml/ns/javaee filter-mapping@http://xmlns.jcp.org/xml/ns/javaee listener@http://xmlns.jcp.org/xml/ns/javaee servlet@http://xmlns.jcp.org/xml/ns/javaee servlet-mapping@http://xmlns.jcp.org/xml/ns/javaee session-config@http://xmlns.jcp.org/xml/ns/javaee mime-mapping@http://xmlns.jcp.org/xml/ns/javaee welcome-file-list@http://xmlns.jcp.org/xml/ns/javaee problem-page@http://xmlns.jcp.org/xml/ns/javaee jsp-config@http://xmlns.jcp.org/xml/ns/javaee security-constraint@http://xmlns.jcp.org/xml/ns/javaee login-config@http://xmlns.jcp.org/xml/ns/javaee security-role@http://xmlns.jcp.org/xml/ns/javaee env-entry@http://xmlns.jcp.org/xml/ns/javaee ejb-ref@http://xmlns.jcp.org/xml/ns/javaee ejb-local-ref@http://xmlns.jcp.org/xml/ns/javaee service-ref@http://xmlns.jcp.org/xml/ns/javaee resource-ref@http://xmlns.jcp.org/xml/ns/javaee resource-env-ref@http://xmlns.jcp.org/xml/ns/javaee message-destination-ref@http://xmlns.jcp.org/xml/ns/javaee persistence-context-ref@http://xmlns.jcp.org/xml/ns/javaee persistence-unit-ref@http://xmlns.jcp.org/xml/ns/javaee post-construct@http://xmlns.jcp.org/xml/ns/javaee pre-destroy@http://xmlns.jcp.org/xml/ns/javaee data-source@http://xmlns.jcp.org/xml/ns/javaee jms-connection-factory@http://xmlns.jcp.org/xml/ns/javaee jms-destination@http://xmlns.jcp.org/xml/ns/javaee mail-session@http://xmlns.jcp.org/xml/ns/javaee connection-factory@http://xmlns.jcp.org/xml/ns/javaee administered-object@http://xmlns.jcp.org/xml/ns/javaee message-destination@http://xmlns.jcp.org/xml/ns/javaee locale-encoding-mapping-list@http://xmlns.jcp.org/xml/ns/javaee deny-uncovered-http-methods@http://xmlns.jcp.org/xml/ns/javaee absolute-ordering@http://xmlns.jcp.org/xml/ns/javaee' instead of 'bean@http://xmlns.jcp.org/xml/ns/javaee' here in element web-app@http://xmlns.jcp.org/xml/ns/javaee
    at weblogic.servlet.internal.WebAppModule.loadDescriptor(WebAppModule.java:1649)
    at weblogic.servlet.internal.WebAppModule.init(WebAppModule.java:269)
    at weblogic.servlet.internal.WebAppModule.init(WebAppModule.java:707)
    at weblogic.application.internal.flow.ScopedModuleDriver.init(ScopedModuleDriver.java:162)
    at weblogic.application.internal.ExtensibleModuleWrapper.init(ExtensibleModuleWrapper.java:98)
    Truncated. see log file for complete stacktrace
Caused By: weblogic.descriptor.DescriptorException: VALIDATION PROBLEMS WERE FOUND
  <19:7> problem: cvc-complex-type.2.4a: Expected elements 'module-name@http://xmlns.jcp.org/xml/ns/javaee description@ht

的web.xml

<?xml version="1.0" encoding="UTF-8"?>

<web-app 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/web-app_3_0.xsd"
         version="3.0">
    <session-config>
        <session-timeout>
            30
        </session-timeout>
    </session-config>
    <listener>
        <listener-class>
            org.springframework.web.context.ContextLoaderListener
        </listener-class>
    </listener>

    <!-- export bean to JMX -->
    <bean id="exporter" class="org.springframework.jmx.export.MBeanExporter" lazy-init="false">
        <property name="beans">
            <map>
                <entry key="com.test.jmx.netbeans:Name=ManagedColor" value-ref="rainbow" />
            </map>
        </property>
    </bean>
</web-app>

的applicationContext.xml

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.2.7.RELEASE.xsd
">

    <bean id="rainbow" class="org.test.jmx.netbeans.ManagedColor">
        <property name="color" value="red" />
    </bean>

</beans>

请帮助,我无法将我的问题与以下问题联系起来: VALIDATION PROBLEMS WERE FOUND error while trying to deploy war on weblogic 12c

欢迎任何其他建议。

0 个答案:

没有答案