Note that there are some explanatory texts on larger screens.

plurals
  1. POWebSphere tries to load Spring related schemas from internet
    text
    copied!<p>I have some problem running spring in my j2ee application.</p> <p><strong>Short introduction:</strong></p> <p>I use WebSphere 6.1 (i don't know that it is websphere specific or more general problem)</p> <p>Artifacts:</p> <ol> <li>web application (war) where in WEB-INF/lib folder maven publishes all needed spring dependencies.</li> <li>war is then packaged in ear and deploys on application server.</li> </ol> <p>I <strong>don't</strong> have any spring configuration files or references to spring in the application yet. Just jar files inside <code>WEB-INF/lib</code> and nothing more about spring.</p> <p>When application is deployed and application starts loading application server start looking for some spring xml schemas:</p> <p><code>http://www.springframework.org/schema/beans/spring-beans-2.0.xsd</code> <code>http://www.springframework.org/schema/beans/spring-beans-2.5.xsd</code> <code>http://www.springframework.org/schema/beans/spring-beans-3.0.xsd</code> <code>http://www.springframework.org/schema/tool/spring-tool-2.0.xsd</code> <code>http://www.springframework.org/schema/tool/spring-tool-2.5.xsd</code> <code>http://www.springframework.org/schema/tool/spring-tool-3.0.xsd</code></p> <p>It want to took them from internet by url's specified above. </p> <p><strong>Question:</strong> </p> <p>How to force application server to use schemas located locally (in web archive)? Or maybe disable this checks at all?</p> <p>On the other hand when application starts all works perfectly (later i had try to use IoC).</p> <p>Application server doesn't have internet connection and all attempts to resolve this schemas results in waiting for connection time-out.</p> <p><strong>What i try:</strong></p> <p>Put <code>spring.schemas</code> containing url's mappings to schemas located in web archive into <code>META-INF</code> folder. All this files (<code>spring.schemas</code> and xml schemas) is accessible by <code>ClassLoader</code> (checked).</p> <p>Any help will be greatly appreciated.</p> <p><code>/me [stupid j2ee developer]</code></p> <p><strong>Update 1:</strong></p> <p>Here is exact messages that i take from websphere log file:</p> <pre><code>[22.07.10 15:45:58:626 MSD] 00000043 XMLParser W java.net.SocketException occurs during processing http://www.springframework.org/schema/tool/spring-tool-2.0.xsd: Operation timed out: connect:could be due to invalid address [22.07.10 15:46:20:112 MSD] 00000043 XMLParser W java.net.SocketException occurs during processing http://www.springframework.org/schema/beans/spring-beans-2.0.xsd: Operation timed out: connect:could be due to invalid address [22.07.10 15:46:41:124 MSD] 00000043 XMLParser W java.net.SocketException occurs during processing http://www.springframework.org/schema/tool/spring-tool-2.5.xsd: Operation timed out: connect:could be due to invalid address [22.07.10 15:47:02:118 MSD] 00000043 XMLParser W java.net.SocketException occurs during processing http://www.springframework.org/schema/beans/spring-beans-2.5.xsd: Operation timed out: connect:could be due to invalid address [22.07.10 15:47:23:130 MSD] 00000043 XMLParser W java.net.SocketException occurs during processing http://www.springframework.org/schema/tool/spring-tool-3.0.xsd: Operation timed out: connect:could be due to invalid address [22.07.10 15:47:44:129 MSD] 00000043 XMLParser W java.net.SocketException occurs during processing http://www.springframework.org/schema/beans/spring-beans-3.0.xsd: Operation timed out: connect:could be due to invalid address </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload