我知道这个问题已经讨论了很多次,但是我很感兴趣是否有可能在解决具体的模式导入期间从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
),并且CXF库中仅包含一个jaxws模式实例(没有任何版本规范)。
因此,我不明白这可能是什么问题,主要是为什么要花几分钟的时间才能解决确切版本的问题:
####<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>.>
我不明白为什么通用(无版本)定义失败(我可能猜测是由于超时),而且我不明白为什么花费这么长时间(可能与问题原因有关)?