Re: WebObjects/WOnder CSS and Image path issues
Re: WebObjects/WOnder CSS and Image path issues
- Subject: Re: WebObjects/WOnder CSS and Image path issues
- From: "Andrew R. Kinnie" <email@hidden>
- Date: Mon, 1 Sep 2008 14:32:11 -0400
I tried copying all my CSS and pasting it into the validator and got no errors.On Sep 1, 2008, at 11:47 AM, Ramsey Gurley wrote: You may want to make sure your CSS validates
From Mike Schrag's post:
Yeah, sorry, I forgot to mention I tried that too. That does seem to be the proper syntax,
background-image: url(../image.gif);
However, it does not fix the problem.
>So what does Activity view show for this exactly? What is the exact URL of the CSS file and what is the exact URL of the requested image file? Until you get an activity view entry >appearing, your CSS is invalid. > >ms |
I changed the path to
background-image: url(Contents/WebServerResources/Image.gif);
The Safari Activity view now does refer to the background image, as does the Eclipse Console and I am getting an exception (leaving the path at ../Image.gif resulted in the error with the path ...WebObjects/Image.gif; as expected):
[2008-9-1 14:15:31 EDT] <WorkerThread0> <com.webobjects.appserver._private.WOStaticResourceRequestHandler> Unable to get contents of file for uri. file: /Library/WebServer/Documents/cgi-bin/WebObjects/MyApp.woa/Contents/WebServerResources/Image.gif; uri: /cgi-bin/WebObjects/MyApp.woa/Contents/WebServerResources/Brickz.gif [2008-9-1 14:15:31 EDT] <WorkerThread0> java.io.FileNotFoundException: /Library/WebServer/Documents/cgi-bin/WebObjects/MyApp.woa/Contents/WebServerResources/Image.gif (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:106) at com.webobjects.appserver._private.WOStaticResourceRequestHandler.handleRequest(WOStaticResourceRequestHandler.java:86) at com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687) at com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144) at com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226) at java.lang.Thread.run(Thread.java:613)
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden