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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T18:34:00+00:00 2026-06-05T18:34:00+00:00

Following matter is JBossAS 7.1 Developer Guider: Change ResourceBundle location In previous versions of

  • 0

Following matter is JBossAS 7.1 Developer Guider:

Change ResourceBundle location In previous versions of AS, the
JBOSS_HOME/server//conf/ was available in the classpath.
Hence the properties files in that location were available in the
classpath of the application.

In AS7, to get those properties available in the classpath, package
them within your application. For example, if you are deploying a .war
then package those properties in WAR WEB-INF/classes/ folder. If you
want those properties accessible to all components in a .ear, then
package them at the root of some .jar and place that jar in EAR lib/
folder.

But this method is not so good if there are too many resource files, we can’t package all resource file to jar or ear.

For the new class loading method – module. I try following method:

create module.xml file .. you will chose module name… for instnace
custom.myconfig

<resources>
    <resource-root path="."/>
    <!-- Insert resources here -->
</resources>

<dependencies>     
</dependencies> </module>   In your jboss-deployment-structure.xml include this module to your app
<jboss-deployment-structure>
<ear-subdeployments-isolated>false</ear-subdeployments-isolated>
<deployment>
    <dependencies>
        <module name="custom.myconfig/>
    </dependencies>
    <resources>
    </resources>
</deployment>

<sub-deployment name="My_WAR.war">
    <dependencies>
        <module name="custom.myconfig" />
    </dependencies>
</sub-deployment>

https://community.jboss.org/message/723631

But I found you can’t set absolute path to path, like: [resource-root path=””C:\resourcefolder”].

That’s means you also need include all resource files on JBossAS 7.

It is very simple on JBossAS 5.x-6.x, only need add folder path like “C:\resourcefolder” to classpath is OK. But its like an impossible mission on JBossAS7.

  • 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-06-05T18:34:02+00:00Added an answer on June 5, 2026 at 6:34 pm

    Finally, I soft link resource folder to JBossAS 7…..

    Linux:

    In -s
    

    Windows:

    MKLINK /D
    

    or

    Junction.exe
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm deploying sample Zend apps on Zend server, following official tutorials. No matter what
I've implemented the following rich:simpleTogglePanel <rich:simpleTogglePanel switchType=server ationListener=swapPanelState action=swapPanelState2> No matter which switchType I
I have to following code fragment, and no matter what I set the font-size
I have the following code in a ASP.NET master page: <div id=hyperlinkimage><asp:HyperLink ID=SomeHyperLink runat=Server
I have a master page in which I have the following code. <head runat=server>
Does it matter which way the following selector is written? It validates both ways
I have the following script: if (window.location.href.indexOf('env=P')) { env = 'P'; console.log(P); } else
No matter what i attempt i keep getting the following exception being thrown by
The following code seems to be impossible to compile no matter how hard I
Which of the following is correct (or does it matter). Connection conn = null;

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.