Results 1 to 3 of 3

Thread: Set path that point inside jar file to CONTEXTCONFIGLOCATION for DISPATCHERSERVLET?

  1. #1

    Default Set path that point inside jar file to CONTEXTCONFIGLOCATION for DISPATCHERSERVLET?

    Hi there!

    My question is simple, i have to package my web-application into some jar files.

    In particular i put a jar file containing my source code inside the lib directory of my EAR project.
    Inside this jar there are also the xml to configure spring integration.

    So how can i set the contextConfigLocation for the dispatcher servlet (registered in web.xml) to point to an xml file packaged into this jar file?

    Is that possible?

    Thanks in advance.

    Regards.

    IlPistolero

  2. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,625

    Default

    Please post in the correct forum and don't use caps-lock to try to make your point...
    Last edited by Marten Deinum; Oct 12th, 2012 at 04:42 AM. Reason: Moved thread to correct forum.
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

  3. #3
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,625

    Default

    Files can be read as long as the jar is on the classpath, I suggest a read on ear files and how to put jar files from an ear on the classpath of the war in that ear... (It basically involves adding the jar location to the manifest).
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •