4 Replies Latest reply on Apr 17, 2010 5:33 AM by Anitha Kothandapani

    jboss appending jndi:/localhost/ before the resource path

    Anitha Kothandapani Newbie



      I am using jboss 5.1.0 GA with jdk 1.6.


      When I use URL url = servletContext.getResource("WEB-INF/conf")  to get  an xml file from the conf folder in my war , Jboss is appending jndi:/localhost/SampleWebApp/WEB-INF/conf before the path.


      Because of this, I am getting FileNotFoundException. I would like to know whether I can configure something in JBoss AS ,so that I can avoid this appending? Please help me on this regard