Announcement Announcement Module
No announcement yet.
XmlBeanFactory returns NoRouteToHostException Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • XmlBeanFactory returns NoRouteToHostException

    Using spring 1.2.1. I construct my XmlBeanFactory by passing in the name of the applicationContext.xml file.

    This works successfully in a tomcat and also oc4j web container but when I try to run the application stand alone, I get:

    IOException parsing XML document from file [/home/tobermei/tnt/applicationContext.xml]; nested exception is No route to host

    spring-1.2.1.jar is in my classpath.

    I've been using this code successfully in web container for a number of years, this is first time I've tried outside of the container although it works in my junit test env.


  • #2
    Solution found

    After posting my question, I went back and looked at my junit environment and realized my production environment didn't have the spring beans jar.

    I added that and it is working fine.

    Apologies for the interruption.