Не удалось прочитать документ схемы 'http://www.springframework.org/schema/beans/spring-beans.xsd' (и' http://cxf.apache.org/schemas/jaxws.xsd') - PullRequest
0 голосов
/ 23 мая 2019

Я знаю, что этот вопрос обсуждался много раз, но мне интересно, возможно ли отладить детали из синтаксического анализатора XML во время разрешения импорта конкретной схемы, потому что кажется, что есть проблемы с производительностью.

У нас есть эта проблема только в производстве, и мы не можем внутренне ее воспроизвести с помощью общей настройки (не указана версия для XSD):

xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd"

Более того, та же проблема с разрешением jaxws.xsd (которое является частью CXF fwk: cxf-rt-frontend-jaxws-3.1.12.jar\schemas\jaxws.xsd), и существует только один экземпляр схемы jaxws, включенный в библиотеки CXF (без какой-либо спецификации версии). Поэтому я не понимаю, в чем может быть проблема и, в основном, почему разрешение точной версии занимает минуты, прежде чем она поднимет ПРЕДУПРЕЖДЕНИЕ:

####<May 21, 2019 4:53:12,999 PM EDT> <Warning> <org.jboss.weld.Bootstrap> <server1> <AdminServer> <[STANDBY] ExecuteThread: '14' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <9900bccc-9291-448a-a1b4-a85e05b66027-00000010> <1558471992999> <[severity-value: 16] [rid: 0] [partition-id: 0] [partition-name: DOMAIN] > <BEA-000000> <WELD-001210: Warning when validating file:/D:/oracle/Middleware/Oracle_Home/user_projects/domains/DOMAIN/servers/AdminServer/tmp/_WL_user/application/uwborw/war/WEB-INF/beans.xml@5 against xsd. schema_reference.4: Failed to read schema document 'http://www.springframework.org/schema/beans/spring-beans.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.> 
####<May 21, 2019 4:53:54,999 PM EDT> <Warning> <org.jboss.weld.Bootstrap> <server1> <AdminServer> <[STANDBY] ExecuteThread: '14' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <9900bccc-9291-448a-a1b4-a85e05b66027-00000010> <1558472034999> <[severity-value: 16] [rid: 0] [partition-id: 0] [partition-name: DOMAIN] > <BEA-000000> <WELD-001210: Warning when validating file:/D:/oracle/Middleware/Oracle_Home/user_projects/domains/DOMAIN/servers/AdminServer/tmp/_WL_user/application/uwborw/war/WEB-INF/beans.xml@6 against xsd. schema_reference.4: Failed to read schema document 'http://cxf.apache.org/schemas/jaxws.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.> 
####<May 21, 2019 4:54:37,000 PM EDT> <Warning> <org.jboss.weld.Bootstrap> <server1> <AdminServer> <[STANDBY] ExecuteThread: '14' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <9900bccc-9291-448a-a1b4-a85e05b66027-00000010> <1558472077000> <[severity-value: 16] [rid: 0] [partition-id: 0] [partition-name: DOMAIN] > <BEA-000000> <WELD-001210: Warning when validating file:/D:/oracle/Middleware/Oracle_Home/user_projects/domains/DOMAIN/servers/AdminServer/tmp/_WL_user/application/uwborw/war/WEB-INF/beans.xml@8 against xsd. schema_reference.4: Failed to read schema document 'http://cxf.apache.org/schemas/jaxws.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.> 
####<May 21, 2019 4:54:58,031 PM EDT> <Warning> <org.jboss.weld.Bootstrap> <server1> <AdminServer> <[STANDBY] ExecuteThread: '14' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <9900bccc-9291-448a-a1b4-a85e05b66027-00000010> <1558472098031> <[severity-value: 16] [rid: 0] [partition-id: 0] [partition-name: DOMAIN] > <BEA-000000> <WELD-001210: Warning when validating file:/D:/oracle/Middleware/Oracle_Home/user_projects/domains/DOMAIN/servers/AdminServer/tmp/_WL_user/application/uwborw/war/WEB-INF/beans.xml@2 against xsd. schema_reference.4: Failed to read schema document 'http://www.springframework.org/schema/beans/spring-beans.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.> 

Когда я моделирую аналогичный сценарий на локальном компьютере (например, устанавливаю неверную версию), он сразу же выдает предупреждение:

<Kvý 23, 2019 3:38:01,911 odp. CEST> <Warning> <org.jboss.weld.Bootstrap> <BEA-000000> <WELD-001210: Warning when validating file:/C:/Oracle/Middleware/Oracle_Home/user_projects/domains/base_domain/servers/AdminServer/tmp/_WL_user/application/uwborw/war/WEB-INF/beans.xml@2 against xsd. schema_reference.4: Failed to read schema document 'http://www.springframework.org/schema/beans/spring-beans-1.1.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.>
<Kvý 23, 2019 3:38:02,138 odp. CEST> <Warning> <org.jboss.weld.Bootstrap> <BEA-000000> <WELD-001210: Warning when validating file:/C:/Oracle/Middleware/Oracle_Home/user_projects/domains/base_domain/servers/AdminServer/tmp/_WL_user/application/uwborw/war/WEB-INF/beans.xml@3 against xsd. schema_reference.4: Failed to read schema document 'http://www.springframework.org/schema/beans/spring-beans-1.1.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.>
<Kvý 23, 2019 3:38:02,330 odp. CEST> <Warning> <org.jboss.weld.Bootstrap> <BEA-000000> <WELD-001210: Warning when validating file:/C:/Oracle/Middleware/Oracle_Home/user_projects/domains/base_domain/servers/AdminServer/tmp/_WL_user/application/uwborw/war/WEB-INF/beans.xml@4 against xsd. schema_reference.4: Failed to read schema document 'http://www.springframework.org/schema/beans/spring-beans-1.1.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.>
<Kvý 23, 2019 3:38:02,489 odp. CEST> <Warning> <org.jboss.weld.Bootstrap> <BEA-000000> <WELD-001210: Warning when validating file:/C:/Oracle/Middleware/Oracle_Home/user_projects/domains/base_domain/servers/AdminServer/tmp/_WL_user/application/uwborw/war/WEB-INF/beans.xml@5 against xsd. schema_reference.4: Failed to read schema document 'http://www.springframework.org/schema/beans/spring-beans-1.1.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.>
<Kvý 23, 2019 3:38:03,175 odp. CEST> <Warning> <org.jboss.weld.Bootstrap> <BEA-000000> <WELD-001210: Warning when validating file:/C:/Oracle/Middleware/Oracle_Home/user_projects/domains/base_domain/servers/AdminServer/tmp/_WL_user/application/uwborw/war/WEB-INF/beans.xml@30 against xsd. schema_reference.4: Failed to read schema document 'http://www.springframework.org/schema/beans/spring-beans-1.1.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.>

Я не понимаю, почему это не удается для общего (без версии) определения (я могу догадаться, из-за некоторого времени ожидания), и я не понимаю, почему это занимает так много времени (возможно, связано с причиной проблемы) ??

...