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 6239397
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T11:23:08+00:00 2026-05-24T11:23:08+00:00

I have put a file in my grails-app/conf package called size_config.xml . When the

  • 0

I have put a file in my grails-app/conf package called size_config.xml . When the war is built then unpacked the file shows up in WEB-INF/classes with the expected name. However, when I try to reference the file in my application it claims that the file is not found. I’ve tried all combinations that I can think would be logical in trying to reference including:

new File("WEB-INF/classes/size_config.xml")
new File("classes/size_config.xml")
new File("size_config.xml")
new File("grails-app/conf/size_config.xml")

and none of these seem to work. When I run my local integration tests I use “grails-app/conf/size_config.xml” and it finds the file just fine. Since the file is being packed up fine, I’m assuming its not a deploy config issue, but rather some minor item I’m failing to see. 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-24T11:23:08+00:00Added an answer on May 24, 2026 at 11:23 am

    try this out:

    def servletContext = org.codehaus.groovy.grails.web.context.ServletContextHolder.servletContext 
    def file = servletContext.getResource("/WEB-INF/classes/size_config.xml")
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Do developers have to put certain/extra elements in the feed's XML file or attributes
I have a words.txt file that I have put in a particular java package
I am working on a grails project and I have put a .jar file
I have an XML file that I have parsed and have put the information
I have put together a script which will upload a CSV file and then
There is nothing in application.css. I have put a file named cake.generic.css in app/assets
Do I have to put every file in a different folder? like: about-us/about-us.php profile/profile.php
I developed an EAR using Quartz API. I have put my quartz.properties file in
I have to put in a bash variable the first line of a file.
My current situation is: I have to read a file and put the contents

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.