Results 1 to 3 of 3

Thread: IOExceptions with application context files

  1. #1
    Join Date
    Feb 2005
    Posts
    4

    Default 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. #2
    Join Date
    Aug 2004
    Posts
    2,715

    Default

    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

  3. #3
    Join Date
    Jan 2005
    Location
    Bucharest, Romania
    Posts
    5,403

    Default

    Check out the FAQ over Hibernate web site : http://www.hibernate.org/116.html#A33
    Costin Leau
    SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
    http://twitter.com/costinl
    Please use [ c o d e ] [ / c o d e ] tags

Similar Threads

  1. Replies: 1
    Last Post: Dec 19th, 2007, 03:21 PM
  2. Replies: 2
    Last Post: May 18th, 2005, 05:36 PM
  3. Stack Overflow
    By rayho222 in forum Container
    Replies: 6
    Last Post: May 17th, 2005, 03:42 AM
  4. Replies: 3
    Last Post: Apr 15th, 2005, 08:52 AM
  5. Questioning the core component
    By Martin Kersten in forum Swing
    Replies: 6
    Last Post: Feb 21st, 2005, 03:45 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •