From: Tarkin <nuk...@ya...> - 2006-09-30 15:55:41
|
Hello all, first time long time, I have tried searching the Nabble jetty and turbine forum; oddly enough, there are 0 hits for turbine in the jetty forum, and 0 hits for jetty in the turbine forum. A search on general image display problems in the jetty forums has proved fruitless. Here's my issue: I am using: jdk 1.5_07, Jetty 6.0.1, and WinXP (tried linux as well, though). I am trying to deploy an exploded, inplace-model turbine demo app, as created with the appropriate META/Maven plugins. (What this means: not a .WAR, no custom modifications) After many fumblings, I have the webapp deployed to the '/' context, with this fragment of the jetty.xml (other than setting the usual hostname, this is the only modification to jetty.xml): <!-- ======================================================= --> <!-- Configure a WebApp --> <!-- ======================================================= --> <!-- --> <New id="jetbine" class="org.mortbay.jetty.webapp.WebAppContext"> <Arg><Ref id="contexts"/></Arg> <Arg><SystemProperty name="jetty.home" default="."/>/jetbine</Arg> <Arg>/</Arg> <!-- <Set name="classLoader"> <New class="org.mortbay.jetty.webapp.TransformingWebAppClassLoader"> <Arg><Ref id="TestContext"/></Arg> </New> </Set> --> <Set name="defaultsDescriptor"><SystemProperty name="jetty.home" default="."/>/etc/webdefault.xml</Set> <!-- <Set name="virtualHosts"> <Array type="java.lang.String"> <Item>localhost</Item> <Item>keemehlaptop</Item> </Array> </Set> --> <Set name="ResourceBase"> <SystemProperty name="jetty.home" default="."/>/jetbine/ </Set> <Call name="setResourceAlias"> <Arg type="String">/jetbine/images</Arg> <Arg type="String"><SystemProperty name="jetty.home" default="."/>/jetbine/images/</Arg> </Call> <Get name="SessionHandler"> <Set name="SessionManager"> <New class="org.mortbay.jetty.servlet.HashSessionManager"> <Set name="maxInactiveInterval">600</Set> </New> </Set> </Get> </New> I commented out the transforming classloader; I don't think I need it (at this time). Also, I commented out the virtual hosts, in an attempt to rectify the situation. Oh- the problem: I see my http:"${hostname:port}/jetbine/templates/layouts/Index.vm" page just fine, but the images are not displayed, neither in IE6 nor Firefox. The images come from ${jetty_home}/jetbine/images/ . I have tried modifying the start.jar to add the whole 'jetbine' directory to the classpath; it neither worked nor seems necessary. I have tried adding a mime-type mapping in webdefault.xml (.gif --> /image/gif). So, I guess my questions are: 1) Could this be a jetty issue? The demo app as created by META works under tomcat, no worries. * 2) Or could this be a turbine issue, and I should be porsting this to the turbine forum? 3) Has anyone else combine jetty+turbine? Any other issues or recoomondations for integrating them? * This is not meant to be a criticism, or a 'tomcat is better than jetty!'. It's an observation. I am actually trying to move away from tomcat for development, until I can figure out how to trim it out (as far as startup time) I can bring jetty up and down within ~5 secs. I like that, because I am still learning webapp dev, and I tend to make changes (read: fix bugs) _often_ . Thank you, Tarkin -- View this message in context: http://www.nabble.com/Jetty-%2B-Turbine-%3A-no-images-tf2362065.html#a6580447 Sent from the Jetty Support mailing list archive at Nabble.com. |