On 22 oct, 16:28, Anh Phuong Tran <[email protected]> wrote:
> Hello!
> Im starting a new GWT project (ModelViewer) and in one of the class, I
> try to acces a xml file locally. The message that I get when I started
> the apps in hosted mode is:
> WARNING: No file found for: /modelviewer/RENO_L2_EXPERT.sdm
>
> My question is, if I have a folder with xml files or txt files, where
> should I put it so when I compile, the folder and its files will also
> be included in the war folder and are accessible.

Put it under your app's package, ideally as a 'public' subfolder:
 - com/mycompany/modelviewer/ModelViewer.gwt.xml
 - com/mycompany/modelviewer/public/RENO_l2_EXPERT.sdm
 - com/mycompany/modelviewer/client/ModelViewerEntryPoint.java

You can use another name for the subfolder, but then you need an
explicit <public path="mysubfolder" /> in your gwt.xml.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to