Announcement Announcement Module
Collapse
No announcement yet.
Problem accessing config file outside WEBINF directory Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem accessing config file outside WEBINF directory

    I have a services layer in which I have the spring configuration file to wire business delegate,service and dao layer. I have struts/tiles based web layer where I have the action-servlet.xml file to wire action with business delegate. I am using DelegatingTilesRequestProcessor and loading action-servlet.xml using ContextLoaderPlugin configuration in Struts-config.xml.
    The problem is ContextLoaderPlugin does not have visibility outside WEB INF directory. And this results in WebApplicationContext unable to load the second config file which is present in services layer.
    I do not want to keep the services layer configuration file in web layer(WEB INF), as i also have a JMS channel. And i also want the feature of action classes managed by Spring layer.
    Can anyone suggest a solution to this problem?

  • #2
    What about loading the other file from the class path, using the classpath: prefix in the resource location?

    Comment


    • #3
      Thanks Rod, I used file: to solve it, but yes Classpath: is a better solution.

      Comment

      Working...
      X