Results 1 to 2 of 2

Thread: XmlWebApplicationContext/ClassPathXmlApplicationCont problem

  1. #1
    Join Date
    Sep 2005
    Posts
    8

    Default 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. #2
    Join Date
    Aug 2004
    Location
    Toronto, Canada
    Posts
    736

    Default

    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 at 10:19 AM.
    Colin Sampaleanu
    SpringSource - http://www.springsource.com

Similar Threads

  1. Replies: 1
    Last Post: Jul 5th, 2005, 03:48 AM
  2. pagination and continuation problem in SWF
    By yfmoan in forum Web Flow
    Replies: 6
    Last Post: Jun 29th, 2005, 03:42 AM
  3. Replies: 0
    Last Post: Feb 16th, 2005, 01:45 PM
  4. Oracle Jdbc invalid url problem
    By jfuchs in forum Data
    Replies: 5
    Last Post: Nov 1st, 2004, 11:33 AM
  5. Lazy Load Problem when Doing UnitTest
    By yoshi in forum Data
    Replies: 7
    Last Post: Sep 29th, 2004, 10:00 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
  •