Announcement Announcement Module
Collapse
No announcement yet.
tomcat 5.5.16 applicationContext Loading Page Title Module
Move Remove Collapse
This topic is closed
X
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • tomcat 5.5.16 applicationContext Loading

    Hello everybody,

    Can anybody explain why in the tomcat 5.5.16 web.xml

    <context-param>
    <param-name>contextConfigLocation</param-name>
    <param-value>

    WEB-INF/lib/applicationContext-acegi.xml

    </param-value>
    </context-param>

    is working without problems, but

    <context-param>
    <param-name>contextConfigLocation</param-name>
    <param-value>

    WEB-INF/lib/myjar.jar!/applicationContext-acegi.xml

    </param-value>
    </context-param>

    Is reporting that it is not able to find applicationContext-acegi.xml
    when myjar is in fact in the right place, and inside myjar exists a file
    called applicationContest-acegi.xml?

    Thanks a lot

  • #2
    Assuming that everything in WEB-INF/lib/*.jar is placed into the classpath, you could try this:

    Code:
    classpath:applicationContext-acegi.xml
    Disclaimer: I have not tested this myself.

    Regards,
    Andreas

    Comment


    • #3
      Hello! Thank you for you answer
      you are right,what you appoint is working and is taht I have been testing before, but there is a problem,if I initialize the application context in that way
      tomcat doesnt realize about spring beans. It extremely bizarre.
      I m not able to understand why tomcat is not accessing to jar files as usual.
      Thaks a lot anyway

      Comment


      • #4
        Originally posted by melpelotones
        if I initialize the application context in that way
        tomcat doesnt realize about spring beans.
        What do you mean by that? Is there a problem of classes not being found (which would indicate classpath problems)? Maybe you could post some stacktraces.


        Originally posted by melpelotones
        I m not able to understand why tomcat is not accessing to jar files as usual.
        Thaks a lot anyway
        The context file is being read by Spring, not by tomcat code.

        Regards,
        Andreas

        Comment


        • #5
          You have my stacktrace in following post

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

          Comment

          Working...
          X