Announcement Announcement Module
Collapse
No announcement yet.
IOExceptions with application context files Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • IOExceptions with application context files

    Hi all,

    I'm trying to use Spring 1.2.3 in a simple web application and I'm getting a very strange error when I'm trying to load Spring beans from application context files.

    I use a ContextLoaderServlet in my web.xml to define where my application context files reside:

    <context-param>
    <param-name>contextConfigLocation</param-name>
    <param-value>/WEB-INF/config/spring/aop-applicationContext.xml,
    /WEB-INF/config/spring/ibatis-dao-applicationContext.xml
    </param-value>
    </context-param>

    It seems to be able to find these files, but I get this error:

    [10/20/05 18:13:24:256 EDT] 3dde8e95 ServletInstan E SRVE0100E: Did not realize init() exception thrown by servlet SpringContextServlet: javax.servlet.ServletException: IOException parsing XML document from ServletContext resource [/WEB-INF/config/spring/aop-applicationContext.xml]; nested exception is java.net.ConnectException: Connection refused: connect

    I seem to be getting Connection refused errors.

    Has this ever happened to you? How did you solve this problem?

    All help would be greatly appreciated

    Regards

    Sean

  • #2
    Maybe the XML parser tries to resolve a DTD and is not able to resolve the according host. This could be due to a firewall.

    Regards,
    Andreas

    Comment


    • #3
      Check out the FAQ over Hibernate web site : http://www.hibernate.org/116.html#A33

      Comment

      Working...
      X