You do really need to get familiar with the GWT project structure, and
what the default path expectations are - that will get you up and
running quicker.

http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=google-web-toolkit-doc-1-5&t=ConfiguringaGWTProject

All resources specified in your module gwt.xml file are specified
relative to the directory location of the resource file with the
default expectation that GWT UI widgets will be located under /client,
html, CSS, images etc under /public, and RPC servlets and other server
code under /server.

Therefore a typical project, say c:/../com/foo/myapp/MyApp.gwt.xml,
will have CSS file at

c:/../com/foo/myapp/public/MyApp.css

and this will be referred to in the module HTML file as

<link rel=stylesheet href="MyApp.css">

or alternatively in the module get.xml file as

<stylesheet src='MyApp.css'/>







On Feb 18, 4:22 am, BobM <[email protected]> wrote:
> Gregor, you get another medal!  I am a little frustrated because I
> don't really understand why that fixed that problem, but I am happy to
> let that go for now.
>
> However, now my application cannot find the css files which do reside
> in org.bcs.public.  Here are the hosted shell log messages:
> * The development shell servlet received a request for 'org/bcs/public/
> selectionPage.css' in module 'org.bcs.CSRapp.gwt.xml
>    *  Resource not found: org/bcs/public/selectionPage.css; (could a
> file be missing from the public path or a <servlet> tag misconfigured
> in module org.bcs.CSRapp.gwt.xml
> * The development shell servlet received a request for 'org/bcs/public/
> messagePanel.css' in module 'org.bcs.CSRapp.gwt.xml
>    * Resource not found: org/bcs/public/messagePanel.css; (could a
> file be missing from the public path or a <servlet> tag misconfigured
> in module org.bcs.CSRapp.gwt.xml
>
> I am sure you will sort that out quickly, too, but I am very
> frustrated that I could be experiencing so many simple configuration
> errors.  Why couldn't I have avoided that?
>
> Many thaks for you very good help.
>
> On Feb 17, 8:29 pm, gregor <[email protected]> wrote:
>
> > On Feb 18, 1:39 am, BobM <[email protected]> wrote:
>
> > > Oh, Gregor!  You are so good!
>
> > > I did find the text specifying org.bcs.Main in the CSRapp.html.
>
> > > Now ... when I fixed that I now get the message:
>
> > > * The development shell servlet received a request for 'org.bcs.CSRapp/
> > > org.bcs.CSRapp.nocache.js' in module 'org.bcs.CSRapp.gwt.xml
> > >        * Resource not found: org.bcs.CSRapp/org.bcs.CSRapp.nocache.js;
> > > (could a file be missing from the public path or a <servlet> tag
> > > misconfigured in module org.bcs.CSRapp.gwt.xml
>
> > org.bcs.CSRapp/org.bcs.CSRapp.nocache.js doesn't look right. Try
> > org.bcs.CSRapp.nocache.js in the HTML file instead
>
> > > I can see www/org.bcs.CSRapp/org.bcs.CSRapp.nocache.js.  Why can't the
> > > process find that .js?
>
> > > On Feb 17, 4:48 pm, gregor <[email protected]> wrote:
>
> > > > > * The development shell servlet received a request for 'org.bcs.Main/
> > > > > org.bcs.Main.nocache.js' in module 'org.bcs.CSRapp.gwt.xml'
> > > > >       * Resource not found: org.bcs.Main/org.bcs.Main.nocache.js
>
> > > > It may be finding org.bcs.Main/org.bcs.Main.nocache.js in CSRapp.html
>
> > > > > I cannot find any reference to anything "Main" (except, maybe,
> > > > > MainEntryPoint.java) in the module file, CSRapp.gwt.xml.  How do I
> > > > > chase this down?
>
> > > > > The command used to run the GWTShell is ...
> > > > > java  -Xmx256M -cp "$APPDIR/src:$APPDIR/web:/usr/local/Java/GWT/gwt-
> > > > > linux-1.5.0/gwt-user.jar:/usr/local/Java/GWT/gwt-linux-1.5.0/gwt-dev-
> > > > > linux.jar" com.google.gwt.dev.GWTShell -out "$APPDIR/www" "$@"
> > > > > org.bcs.CSRapp/CSRapp.html;
>
> > > > > BTW, tomcat directory gets created as a consequence of running
> > > > > GWTShell, but directory www does not.
>
> > > > It should create it when the compilation succeeds
>
> > > > > Thanks for your time and assistance.
--~--~---------~--~----~------------~-------~--~----~
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