This content has been marked as final.
Show 3 replies
-
1. Re: Jboss7.1.1 getResourceAsStream() null exception
lafr Sep 2, 2013 12:48 PM (in response to admin)I have config file named mbi_deploy.xml in root dir of my ear and war files.
Reading it this way
InputStream is = this.getClass().getClassLoader().getResourceAsStream( "mbi_deploy.xml" );
works.
-
2. Re: Jboss7.1.1 getResourceAsStream() null exception
lafr Sep 3, 2013 6:02 AM (in response to lafr)The location of the xml file was not my original point. But I tried it out now.
Also with current WildFly it seems only be possible to read file from root dir, not from others. As said I can access mbi_deploy.xml but found out now, that I cannot access META-INF/application.xml.
See also Reading EAR/META-INF/application.xml from EJB or WAR module? and others.
-
3. Re: Jboss7.1.1 getResourceAsStream() null exception
lafr Sep 3, 2013 1:27 PM (in response to lafr)I do not have such file.
As said, root dir access works, anything else seems not to work.
Don't know why.