I want to read the config.xml in my  webRoot /WEB-INF/classes/
config.xml.

All is OK in localhost.

but when deploying to GAE, it cannot find the xml:

/base/data/home/apps/mainloveplay/4.351871111093106408/base/data/home/
apps/mainloveplay/4.351871111093106408/WEB-INF/classes/config.xml (No
such file or directory)


the code to get path is:

String rootPath =
ConfigRepository.class.getResource("/").getPath().substring(1);
Document document = reader.read(new File(rootPath + "config.xml"));

so how can I get my config.xml????????????




-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to