[ http://issues.apache.org/jira/browse/IBATIS-241?page=all ]
     
Brandon Goodin closed IBATIS-241:
---------------------------------

    Resolution: Invalid

This is a support question that belongs on the user list.

> Unable to find resource
> -----------------------
>
>          Key: IBATIS-241
>          URL: http://issues.apache.org/jira/browse/IBATIS-241
>      Project: iBatis for Java
>         Type: Test
>   Components: Testing
>  Environment: JAVA 1.4.2, Linux
>     Reporter: Nilesh Joshi
>     Priority: Minor

>
> When i try to read resource sql-config-map.xml in following code i get 
> "java.io.IOException: Could not find resource sql-map-config.xml" error 
> please help.
> private static SqlMapClient sqlMap = null;
>     public static final String IBATIS_XML_CONFIG_FILE = "sql-map-config.xml";
>     private static Logger log = Logger.getLogger("userUtil");
>     
>     static{
>         try{
>             String resource = IBATIS_XML_CONFIG_FILE;
>             Reader reader = Resources.getResourceAsReader(resource);
>             sqlMap = SqlMapClientBuilder.buildSqlMapClient(reader);
>         }catch (IOException ex) {
>             System.out.println("error in static block "+ex);
>         }        
>     }
> Thanx in Advance
> Nilesh

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to