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

  • SEARCH
  • Home
  • 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 6896451
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T07:02:43+00:00 2026-05-27T07:02:43+00:00

I am having a problem about placing weblogic.xml under WEB-INF folder after mvn install.

  • 0

I am having a problem about placing weblogic.xml under WEB-INF folder after mvn install. My weblogic.xml file is under src/main/resources/weblogic.xml and I want it to be placed under WEB-INF after install.(packaging is “war” by the way)

I tried this:

<resources>
            <resource>
                <directory>src/main/resources</directory>
                <targetPath>../resources</targetPath>
                <excludes><exclude>web.xml</exclude><exclude>weblogic.xml</exclude></excludes>
            </resource>
            <resource>
                <directory>src/main/resources/config</directory>
                <targetPath>..</targetPath>
                <includes><include>weblogic.xml</include></includes>
            </resource>
        </resources>

It is working with install but when I want a classpath using eclipse:eclipse, It gives the error :

Description Resource Path Location Type Cannot nest output folder ‘ResponseManager/target/WEB-INF/resources’ inside output folder
‘ResponseManager/target/WEB-INF’ ResponseManager Build path Build
Path Problem

because of this conf in classpath:

  <classpathentry kind="src" path="src/main/resources" output="target/WEB-INF/resources" excluding="web.xml|weblogic.xml|**/*.java"/>
  <classpathentry kind="src" path="src/main/resources/config" output="target/WEB-INF" including="weblogic.xml" excluding="**/*.java"/>

Any ideas?

  • 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-27T07:02:44+00:00Added an answer on May 27, 2026 at 7:02 am

    Normally files under src/main/resources get packaged along the compiled class files, in a webapp they would be placed in WEB-INF/classes. Is there any reason why you can’t put these under the standard path src/main/webapp?

    If you need to package additional files which are not in the src/main/webapp folder then it would be better to configure these resources in the war plugin like this:

    <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-war-plugin</artifactId>
        <version>2.1</version>
        <configuration>
            <webResources>
                <resource>
                    <directory>src/main/config</directory>
                    <targetPath>WEB-INF</targetPath>
                    <includes>
                        <include>weblogic.xml</include>
                    </includes>
                </resource>
            </webResources>                    
        </configuration>
    </plugin>
    

    It should be possible to specify the targetPath as above but I think it would be cleaner to reproduce the wanted directory structure inside your source folder.

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

Sidebar

Related Questions

i'm new to c++ and having a little problem understanding about c++'s casting. According
I'm having a problem with my site http://artygirl.co.uk/pixie/about/ I can't seem to get the
Maybe I'm just thinking about this too hard, but I'm having a problem figuring
I'm having a problem understanding something about MVVM. My application relies on dialogs for
I am having a problem redrawing a QWidget window after its size has been
I asked a question yesterday about a problem that Im having with a program
i'm having a problem about my program right now. i'm practicing a program in
I'm working on my first Drupal 7 project. I'm having a problem about vocabulary
I am having problem updating my mysql in my web application.. I can't Update
I am having problem with the coordinates not being exactly correct after the rotation

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.