On Wed, Sep 9, 2009 at 5:38 PM, measwel <marek_karczew...@yahoo.com.au>wrote:

>
> Maybe I hurrayed to soon. I am getting strage behaviour with jetty:run.
>
> 1) Reloading stylesheet in web.xml is picked up, but sometimes it goes okay
> (when going to webapp root) but sometimes the whole site gives error 404
> page not found.
>

This is probably because Jetty is in the process of reloading the app. It's
usually best to rely on the web framework's hot-reload capability or use
JavaRebel. That way, you don't have to way for Spring to initialize on
reload.

2) Changing properties file doesnt seem to have any effect. Is it because it
> is in src/main/resources and this dir is not scanned by jetty?
>
> I see the following pattern in POM file:
>
>            <scanTargetPattern>
>              <directory>src/main/webapp/WEB-INF</directory>
>              <excludes>
>                <exclude>**/*.jsp</exclude>
>              </excludes>
>              <includes>
>                <include>**/*.properties</include>
>                <include>**/*.xml</include>
>              </includes>
>            </scanTargetPattern>
>
> Why is jsp excluded?
>

Because you don't want your app to reload when you change a JSP. Changing
and saving a JSP will automatically reload as part of the servlet container.


>
> What do ** mean in the path?
>

It's Ant's path syntax and basically means "look in all sub-directories".

Matt


>
>
> --
> View this message in context:
> http://www.nabble.com/speeding-up-development-cycle-tp25365737s2369p25374955.html
> Sent from the AppFuse - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
> For additional commands, e-mail: users-h...@appfuse.dev.java.net
>
>

Reply via email to