Hello world,
I have some problem running spring in my j2ee application.
Short introduction:
I use WebSphere 6.1 (i don't know that it is websphere specific or more general problem)
Artifacts:
- web application (war) where in WEB-INF/lib folder maven publishes all needed spring dependencies.
- war is then packaged in ear and deploys on application server.
I don't have any spring configuration files or references to spring in the application yet. Just jar files inside WEB-INF/lib
and nothing more about spring.
When application is deployed and application starts loading application server start looking for some spring xml schemas:
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/tool/spring-tool-2.0.xsd
http://www.springframework.org/schema/tool/spring-tool-2.5.xsd
http://www.springframework.org/schema/tool/spring-tool-3.0.xsd
It want to took them from internet by url's specified above.
Question:
How to force application server to use schemas located locally (in web archive)? Or maybe disable this checks at all?
On the other hand when application starts all works perfectly (later i had try to use IoC).
Application server doesn't have internet connection and all attempts to resolve this schemas results in waiting for connection time-out.
What i try:
Put spring.schemas
containing url's mappings to schemas located in web archive into META-INF
folder. All this files (spring.schemas
and xml schemas) is accessible by ClassLoader
(checked).
Any help will be greatly appreciated.
/me [stupid j2ee developer]
Update 1:
Here is exact messages that i take from websphere log file:
[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