Announcement Announcement Module
Collapse
No announcement yet.
XmlWebApplicationContext/ClassPathXmlApplicationCont problem Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • XmlWebApplicationContext/ClassPathXmlApplicationCont problem

    Hi,

    Is it possible to load my bean definitions by XmlWebApplicationContext using context-param from jar files ???

    i mean,
    when i set in my web.xml:

    Code:
    <context-param>
    		<param-name>contextConfigLocation</param-name>
    		<param-value>
    			classpath*&#58;ORSApplicationContext.xml
    		</param-value>
    	</context-param>
    id doesnt work.
    it seems that XmlWebApplicationContext can read only from contextConfigLocation where i cant use classpath just like i do in ClassPathXmlApplicationContext.

    any ideas ?

  • #2
    See my reply to your other post here:

    http://forum.springframework.org/showthread.php?t=18035

    Using the classpath*:xxxxx/yyyy/whatever.xml

    form definitely should work for finding all similarily named resources on the classpath. There's nothing that special about the web application context The context is the ResourceLoader, so unprefixed paths are treated as relative to the servlet context root, but the classpath: or classpath*: prefixes do work with it, as well as any of the standard registered URL prefixes (i.e. http.

    Regards,
    Last edited by robyn; May 14th, 2006, 11:19 AM.

    Comment

    Working...
    X