You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Adam Chesney <ad...@multicom.co.uk> on 2005/04/20 17:40:54 UTC

Images not serving (may be Jetty Launcher)

Hi,

I am a web application nube trying to get up to speed with Tapestry and I have a frustrating issue... although it may be more related to the Jetty Launcher plugin that I am using... not sure...

Basically none of my images (or css/js for that matter) are being served correctly...
launching Jetty webapp: / on address: 0.0.0.0:8080 using dir: [D:\work\workspace\fab2admin\context] 

Under my root project dir i have:

/context/css
/context/images
/context/js
/context/WEB-INF
/context/WEB-INF/classes

Everything else is working fine...

When viewing the source of my rendered pages, the image links look like this:

<img src="images/logo.gif" height="70" width="128" border="0" alt="FAB"/>

But they never get rendered... and firefox just shows the alt text.

The other issue is I cannot seem to change the logging setup for Jetty, but I think this is maybe a known issue with the launcher plugin?

Anyway, cheers for your time, and any help would be most appreciated...

Adam.


Re: Images not serving (may be Jetty Launcher)

Posted by Leo Sakhvoruk <le...@gmail.com>.
Your directory structure seems fine, but have you tried using an Image 
component in your application and declaring those images as 
<context-assets>? You may want to try that to see if it takes care of 
the issue for you.

Leo

Adam Chesney wrote:

>Hi,
>
>I am a web application nube trying to get up to speed with Tapestry and I have a frustrating issue... although it may be more related to the Jetty Launcher plugin that I am using... not sure...
>
>Basically none of my images (or css/js for that matter) are being served correctly...
>launching Jetty webapp: / on address: 0.0.0.0:8080 using dir: [D:\work\workspace\fab2admin\context] 
>
>Under my root project dir i have:
>
>/context/css
>/context/images
>/context/js
>/context/WEB-INF
>/context/WEB-INF/classes
>
>Everything else is working fine...
>
>When viewing the source of my rendered pages, the image links look like this:
>
><img src="images/logo.gif" height="70" width="128" border="0" alt="FAB"/>
>
>But they never get rendered... and firefox just shows the alt text.
>
>The other issue is I cannot seem to change the logging setup for Jetty, but I think this is maybe a known issue with the launcher plugin?
>
>Anyway, cheers for your time, and any help would be most appreciated...
>
>Adam.
>
>
>  
>

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Images not serving (may be Jetty Launcher)

Posted by mike jones <mi...@gmail.com>.
try <img src="/images/logo.gif" ../>


On 4/20/05, Patrick Casey <pa...@adelphia.net> wrote:
> 
> 
> You could try setting your images up as assets.
> 
> First you add the asset description to the page upon which you want
> to use it:
> 
> <context-asset name="select_tic" path="/img/select_tic.gif"/>
> 
> Then, in that page's html file, you reference the asset e.g.
> 
> <img jwcid="@Image" image="ognl:assets.select_tic" alt="Text Here"/>
> 
> Remember that asset paths are relative to your context directory
> (not WEB-INF).
> 
> --- Pat
> 
> -----Original Message-----
> From: Adam Chesney [mailto:adam@multicom.co.uk]
> Sent: Wednesday, April 20, 2005 8:41 AM
> To: Tapestry users
> Subject: Images not serving (may be Jetty Launcher)
> 
> Hi,
> 
> I am a web application nube trying to get up to speed with Tapestry and I
> have a frustrating issue... although it may be more related to the Jetty
> Launcher plugin that I am using... not sure...
> 
> Basically none of my images (or css/js for that matter) are being served
> correctly...
> launching Jetty webapp: / on address: 0.0.0.0:8080 <http://0.0.0.0:8080>using dir:
> [D:\work\workspace\fab2admin\context]
> 
> Under my root project dir i have:
> 
> /context/css
> /context/images
> /context/js
> /context/WEB-INF
> /context/WEB-INF/classes
> 
> Everything else is working fine...
> 
> When viewing the source of my rendered pages, the image links look like
> this:
> 
> <img src="images/logo.gif" height="70" width="128" border="0" alt="FAB"/>
> 
> But they never get rendered... and firefox just shows the alt text.
> 
> The other issue is I cannot seem to change the logging setup for Jetty, 
> but
> I think this is maybe a known issue with the launcher plugin?
> 
> Anyway, cheers for your time, and any help would be most appreciated...
> 
> Adam.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> 


-- 
"If we can hit that bull's-eye, the rest of the dominos will fall like a 
house of cards - Checkmate."

Re: Images not serving (may be Jetty Launcher)

Posted by Adam Chesney <ad...@multicom.co.uk>.
I was using just the root context of / but I have also tried a context of
/app and the image uri get rendered properly as /app/images/edit.gif but
still they don't render.

I will try making a war.

Cheers,

Adam.


----- Original Message ----- 
From: "Erik Hatcher" <er...@ehatchersolutions.com>
To: "Tapestry users" <ta...@jakarta.apache.org>
Sent: Friday, April 22, 2005 11:30 AM
Subject: Re: Images not serving (may be Jetty Launcher)


>
> On Apr 22, 2005, at 5:31 AM, Adam Chesney wrote:
>> I still have not fixed this issue.
>>
>> I have tried using the assets as below and now when i view the source of
>> the RENDERED pages the images look like this:
>> <img src="/images/edit.gif" border="0" alt="Edit"/>But I still only see
>> the ALT text and the images are not rendered.
>
> What is the context path you're using?  URL's should be prefixed with
> that, which is generally your webapp name.  My hunch is you've not
> configured your Jetty setting properly.  Can you get to the image by
> hacking the URL to include the context path?
>
> One thing to try is build a WAR file out of your code, deploy it to the
> webapps directory of a full Jetty installation, then from the command-line
> at the root of the Jetty installation type "java -jar start.jar".
>
>> So, my question is:
>>
>> As I am using Tapesty 3.03, shouldn't the assets have a check sum
>> attached?
>
> Only private assets that serve from the classpath use the checksum.
> Assets from the context do no need a checksum as they are directly
> accessible.
>
> Erik
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Images not serving (may be Jetty Launcher)

Posted by Erik Hatcher <er...@ehatchersolutions.com>.
On Apr 22, 2005, at 5:31 AM, Adam Chesney wrote:
> I still have not fixed this issue.
>
> I have tried using the assets as below and now when i view the source 
> of the RENDERED pages the images look like this:
> <img src="/images/edit.gif" border="0" alt="Edit"/>But I still only 
> see the ALT text and the images are not rendered.

What is the context path you're using?  URL's should be prefixed with 
that, which is generally your webapp name.  My hunch is you've not 
configured your Jetty setting properly.  Can you get to the image by 
hacking the URL to include the context path?

One thing to try is build a WAR file out of your code, deploy it to the 
webapps directory of a full Jetty installation, then from the 
command-line at the root of the Jetty installation type "java -jar 
start.jar".

> So, my question is:
>
> As I am using Tapesty 3.03, shouldn't the assets have a check sum 
> attached?

Only private assets that serve from the classpath use the checksum.  
Assets from the context do no need a checksum as they are directly 
accessible.

	Erik


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Images not serving (may be Jetty Launcher)

Posted by Adam Chesney <ad...@multicom.co.uk>.
Hi there,

I still have not fixed this issue.

I have tried using the assets as below and now when i view the source of the 
RENDERED pages the images look like this:
<img src="/images/edit.gif" border="0" alt="Edit"/>But I still only see the 
ALT text and the images are not rendered.

So, my question is:

As I am using Tapesty 3.03, shouldn't the assets have a check sum attached?

Where should I start debugging this?

Cheers,

Adam.

----- Original Message ----- 
From: "Patrick Casey" <pa...@adelphia.net>
To: "'Tapestry users'" <ta...@jakarta.apache.org>
Sent: Wednesday, April 20, 2005 5:50 PM
Subject: RE: Images not serving (may be Jetty Launcher)


>
> You could try setting your images up as assets.
>
> First you add the asset description to the page upon which you want
> to use it:
>
> <context-asset name="select_tic" path="/img/select_tic.gif"/>
>
> Then, in that page's html file, you reference the asset e.g.
>
> <img jwcid="@Image" image="ognl:assets.select_tic" alt="Text Here"/>
>
> Remember that asset paths are relative to your context directory
> (not WEB-INF).
>
> --- Pat
>
> -----Original Message-----
> From: Adam Chesney [mailto:adam@multicom.co.uk]
> Sent: Wednesday, April 20, 2005 8:41 AM
> To: Tapestry users
> Subject: Images not serving (may be Jetty Launcher)
>
> Hi,
>
> I am a web application nube trying to get up to speed with Tapestry and I
> have a frustrating issue... although it may be more related to the Jetty
> Launcher plugin that I am using... not sure...
>
> Basically none of my images (or css/js for that matter) are being served
> correctly...
> launching Jetty webapp: / on address: 0.0.0.0:8080 using dir:
> [D:\work\workspace\fab2admin\context]
>
> Under my root project dir i have:
>
> /context/css
> /context/images
> /context/js
> /context/WEB-INF
> /context/WEB-INF/classes
>
> Everything else is working fine...
>
> When viewing the source of my rendered pages, the image links look like
> this:
>
> <img src="images/logo.gif" height="70" width="128" border="0" alt="FAB"/>
>
> But they never get rendered... and firefox just shows the alt text.
>
> The other issue is I cannot seem to change the logging setup for Jetty, 
> but
> I think this is maybe a known issue with the launcher plugin?
>
> Anyway, cheers for your time, and any help would be most appreciated...
>
> Adam.
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


RE: Images not serving (may be Jetty Launcher)

Posted by Patrick Casey <pa...@adelphia.net>.
	You could try setting your images up as assets.

	First you add the asset description to the page upon which you want
to use it:

<context-asset name="select_tic" path="/img/select_tic.gif"/>

	Then, in that page's html file, you reference the asset e.g.

<img jwcid="@Image" image="ognl:assets.select_tic" alt="Text Here"/>

	Remember that asset paths are relative to your context directory
(not WEB-INF).

	--- Pat

-----Original Message-----
From: Adam Chesney [mailto:adam@multicom.co.uk] 
Sent: Wednesday, April 20, 2005 8:41 AM
To: Tapestry users
Subject: Images not serving (may be Jetty Launcher)

Hi,

I am a web application nube trying to get up to speed with Tapestry and I
have a frustrating issue... although it may be more related to the Jetty
Launcher plugin that I am using... not sure...

Basically none of my images (or css/js for that matter) are being served
correctly...
launching Jetty webapp: / on address: 0.0.0.0:8080 using dir:
[D:\work\workspace\fab2admin\context] 

Under my root project dir i have:

/context/css
/context/images
/context/js
/context/WEB-INF
/context/WEB-INF/classes

Everything else is working fine...

When viewing the source of my rendered pages, the image links look like
this:

<img src="images/logo.gif" height="70" width="128" border="0" alt="FAB"/>

But they never get rendered... and firefox just shows the alt text.

The other issue is I cannot seem to change the logging setup for Jetty, but
I think this is maybe a known issue with the launcher plugin?

Anyway, cheers for your time, and any help would be most appreciated...

Adam.




---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org