Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5846287
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T12:33:19+00:00 2026-05-22T12:33:19+00:00

I have 2 applications deployed in tomcat, I want to use in one project

  • 0

I have 2 applications deployed in tomcat, I want to use in one project resource files located in other projects WEBINF folder. Can I have an acess to another project like this?

in my project A I want to access project B like this:

<bean id="Configuration"
    class="com.ws.configuration.WebServiceConfiguration"
    init-method="init">
    <property name="ConfigXml" value="webserviceconfiguration.xml" />
    <property name="executingPathResource" value="../../projectB/WEB-INF/" />
    <property name="developmentMode" value="true" />
</bean>

note: I use spring, can I give path to another projects web inf folder?

tnx

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T12:33:20+00:00Added an answer on May 22, 2026 at 12:33 pm

    What about one of the following:

    1. you could place your resource file outside of Tomcat and reference it from both web applications using a JNDI context. If you know the root directory of your config files you could use some kind of logic to find out where your files are. Relative path is preferred over absolute, since your application may have different position within the file system depending on the environment: development vs test vs production. Still, knowing a root of the config files (which also might be set using environment variables) and a little bit logic you could get to the file from any web application.

    2. the resource files get accessed using ClassLoader.getResourceAsStream and you put them into the classpath, for example webserviceconfiguration.xml being inside one of the source directories referenced by both applications. This way you can end up with the file inside both WEB-INFs, or wherever your classes end, but it will have always the same contents because it would result from the same source file.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a few tomcat applications, deployed in tomcat using .war files. Even though
I have two applications deployed on tomcat. For each application I have defined their
I had deployed one application on tomcat 6 on port 80. My application folder
I have several applications deployed in tomcat 6 which are routed to different virtual
I have a web application project which is deployed in tomcat 6. I can
We have an application deployed on tomcat. To access application we are using apache
Requirement is this ... We have our 3 web-applications deployed in RHEL-5 server, we
I have a web application (WAR) that I want to deploy in Tomcat 5.
I want to host a tomcat server, which will host 3 web applications. I
We have an application deployed on Tomcat 6. It's built on Spring/Struts 2, and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.