第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會有你想問的

Intelij 項(xiàng)目中連接到服務(wù)器 GlassFish 出錯(cuò)的原因是什么?

Intelij 項(xiàng)目中連接到服務(wù)器 GlassFish 出錯(cuò)的原因是什么?

MMMHUHU 2023-10-13 16:34:37
[2019-10-12T11:06:32.875+0300] [glassfish 5.0] [SEVERE] [] [javax.enterprise.system.core] [tid: _ThreadID=45 _ThreadName=admin-listener(4)] [timeMillis: 1570867592875] [levelValue: 1000] [[  Exception while deploying the app [web_war_exploded]]][2019-10-12T11:06:32.876+0300] [glassfish 5.0] [SEVERE] [NCLS-CORE-00026] [javax.enterprise.system.core] [tid: _ThreadID=45 _ThreadName=admin-listener(4)] [timeMillis: 1570867592876] [levelValue: 1000] [[  Exception during lifecycle processingjava.io.IOException: org.xml.sax.SAXParseExceptionpublicId: file:/home/vladimir/Downloads/glassfish-5.0/glassfish5/glassfish/lib/schemas/web-app_4_0.xsd; lineNumber: 8; columnNumber: 27; Deployment descriptor file WEB-INF/web.xml in archive [web_war_exploded].  TargetNamespace.1: Expecting namespace 'http://java.sun.com/xml/ns/javaee', but the target namespace of the schema document is 'http://xmlns.jcp.org/xml/ns/javaee'.    at org.glassfish.javaee.core.deployment.DolProvider.processDOL(DolProvider.java:215)    at org.glassfish.javaee.core.deployment.DolProvider.load(DolProvider.java:231)    at org.glassfish.javaee.core.deployment.DolProvider.load(DolProvider.java:97)    at com.sun.enterprise.v3.server.ApplicationLifecycle.loadDeployer(ApplicationLifecycle.java:881)    at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:203)    at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:134)    at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:396)]]
查看完整描述

1 回答

?
互換的青春

TA貢獻(xiàn)1797條經(jīng)驗(yàn) 獲得超6個(gè)贊

堆棧跟蹤之前的長錯(cuò)誤消息(為了清晰起見重新格式化)解釋了該問題:


java.io.IOException: org.xml.sax.SAXParseException

publicId:?

file:/home/vladimir/Downloads/glassfish-5.0/glassfish5/glassfish/lib/schemas/web-app_4_0.xsd;

lineNumber: 8; columnNumber: 27;?

Deployment descriptor file? in archive [web_war_exploded].??

TargetNamespace.1:?

Expecting namespace

'http://java.sun.com/xml/ns/javaee'

, but the target namespace of the schema document is?

'http://xmlns.jcp.org/xml/ns/javaee'.

因此,Glassfish 架構(gòu)定義 ( web-app_4_0.xsd ) 中指定的命名空間與您在應(yīng)用程序的部署描述符 ( WEB-INF/web.xml ) 中提供的命名空間不匹配。


這是 Glassfish 的web-app_4_0.xsd的頂級內(nèi)容:


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

<xsd:schema xmlns="http://www.w3.org/2001/XMLSchema"

? ? ? ? ? ? targetNamespace="http://xmlns.jcp.org/xml/ns/javaee"

? ? ? ? ? ? xmlns:javaee="http://xmlns.jcp.org/xml/ns/javaee"

? ? ? ? ? ? xmlns:xsd="http://www.w3.org/2001/XMLSchema"

? ? ? ? ? ? elementFormDefault="qualified"

? ? ? ? ? ? attributeFormDefault="unqualified"

? ? ? ? ? ? version="4.0">

...


</xsd:schema>

targetNamespace請注意,為和指定的值xmlns:javaee是您應(yīng)該在應(yīng)用程序的web.xml"http://xmlns.jcp.org/xml/ns/javaee"中指定的值,而不是。修理:"http://java.sun.com/xml/ns/javaee"

  • 停止玻璃魚

  • 在應(yīng)用程序的web.xml中,將所有出現(xiàn)的 替換http://java.sun.com/xml/ns/javaeehttp://xmlns.jcp.org/xml/ns/javaee。

  • 清理、構(gòu)建和重新部署您的應(yīng)用程序。

  • 重新啟動(dòng) Glassfish 服務(wù)器。

查看完整回答
反對 回復(fù) 2023-10-13
  • 1 回答
  • 0 關(guān)注
  • 134 瀏覽

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號