Try to move MyStyles.css file at projectroot/war/MyStyles.css

Regards,
Ibahim

On Sat, Jul 30, 2011 at 12:05 AM, clay <claytonw...@gmail.com> wrote:

> I have a CSS stylesheet defined at
>        projectroot/src/main/webapp/MyStyles.css
> In my module's .gwt.xml file I reference this with:
>        <stylesheet src='MyStyles.css'/>
>
> In dev mode, GWT generates the following CSS URL which results in a
> 404 not found error:
>        http://127.0.0.1:8888/module/MyStyles.css
> The following URL works (when I try manually):
>        http://127.0.0.1:8888/MyStyles.css
>
> In production mode, GWT generates the following CSS URL which results
> in a 404 not found error:
>        http://localhost:8080/project/module/MyStyles.css
> The following URL works (when I try manually):
>        http://localhost:8080/project/MyStyles.css
>
> I'm using:
>
> GWT 2.3
> Project built with Maven archetype: mvn archetype:generate -
> DarchetypeRepository=repo1.maven.org -
> DarchetypeGroupId=org.codehaus.mojo -DarchetypeArtifactId=gwt-maven-
> plugin -DarchetypeVersion=2.3.0-1
> IntelliJ 10.5.x
>
> What am I doing wrong? How can I resolve this?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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

Reply via email to