2 Replies Latest reply on Sep 17, 2002 5:09 PM by dragos popa

    Please help! Petstore JNDI exception

    dragos popa Newbie


      I am trying to use the Petstore 1.1.2 in Jboss 3.0.0 with Tomcat environment. I think is something wrong with the JNDI settings, because when I am trying to read the xml screen definitions and mappings configuration from files, it is failing with a "ScreenFlowXmlDAO error: java.net.MalformedURLException: unknown protocol: jndi".

      The code is:

      String requestMappingsURL = null;
      try {
      requestMappingsURL = getServletContext().getResource("/WEB-INF/xml/requestmappings.xml").toString();
      } catch (java.net.MalformedURLException ex) {}

      and the value of requestMappingsURL is:

      "requestMappingsURL"= "jndi:/localhost/WEB-INF/xml/requestmappings.xml"

      Later when I am trying to use this string as URL is throwing the MalformedURLException....

      Please help:)
      It is simply killing me!!!!