You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by Anders Nilsson <an...@online.no> on 2003/01/04 16:22:45 UTC

Image sample problem

Hello,

Have set up a simple site based on the result of the seed. Works fine.

I tried to add the sample svg logo as described in the page:
http://xml.apache.org/forrest/your-project.html#N10206

When I run the "forrest" command I get a logo.png file with size 0 built.
The forrest command output is shown below.

Does anyone have any pointers to as what is wrong ?

Regards

Anders

G:\eclipse\JointSourceWeb\workspace\JointSourceWeb>forrest

Apache Forrest.  Run 'forrest -projecthelp' to list options


Buildfile: F:\Forrest\bin\..\forrest.build.xml

init-props:
Loading project specific properties from
G:\eclipse\JointSourceWeb\workspace\Joi
ntSourceWeb/forrest.properties

validate-skinconf:
...validated skinconf

init-skinprops:
Reading filters from
G:\eclipse\JointSourceWeb\workspace\JointSourceWeb\build\tm
p\skinfilters.properties

bare-context:
____________________________________
Using skin forrest-site
____________________________________
Copying 36 files to
G:\eclipse\JointSourceWeb\workspace\JointSourceWeb\build\tmp
\context
Replacing: @skinconfig.year@ -> 2003
Replacing: @skinconfig.trail.link1.name@ ->
Replacing: @skinconfig.trail.link1.name@ ->
Replacing: @skinconfig.trail.link1.href@ ->
Replacing: @skinconfig.trail.link2.name@ ->
Replacing: @skinconfig.trail.link2.name@ ->
Replacing: @skinconfig.trail.link2.href@ ->
Replacing: @skinconfig.trail.link3.name@ ->
Replacing: @skinconfig.trail.link3.name@ ->
Replacing: @skinconfig.trail.link3.href@ ->
Replacing: @skinconfig.year@ -> 2003
Replacing: @skinconfig.trail.link1.name@ ->
Replacing: @skinconfig.trail.link1.name@ ->
Replacing: @skinconfig.trail.link1.href@ ->
Replacing: @skinconfig.trail.link2.name@ ->
Replacing: @skinconfig.trail.link2.name@ ->
Replacing: @skinconfig.trail.link2.href@ ->
Replacing: @skinconfig.trail.link3.name@ ->
Replacing: @skinconfig.trail.link3.name@ ->
Replacing: @skinconfig.trail.link3.href@ ->

validate-xdocs:
8 file(s) have been successfully validated.
...validated xdocs

validate-sitemap:
...validated sitemap

validate-skinchoice:
...validated existence of skin 'forrest-site'

copy-sitemap:
Copying 1 file to
G:\eclipse\JointSourceWeb\workspace\JointSourceWeb\build\tmp\c
ontext

copy-xdocs:
Copying 8 files to
G:\eclipse\JointSourceWeb\workspace\JointSourceWeb\build\tmp\
context\content\xdocs

copy-images:
Copying 4 files to
G:\eclipse\JointSourceWeb\workspace\JointSourceWeb\build\tmp\
context\resources\images

copy-skinconf:
Copying 1 file to
G:\eclipse\JointSourceWeb\workspace\JointSourceWeb\build\tmp\c
ontext

-site:
Deleting directory
G:\eclipse\JointSourceWeb\workspace\JointSourceWeb\build\tmp\
work
Created dir:
G:\eclipse\JointSourceWeb\workspace\JointSourceWeb\build\tmp\work
Setup... done.
Initializing... ready, let's go :-)
  * [25] index.html
  * [0] skin/page.css
  * [0] skin/images/spacer.gif
  * [0] skin/breadcrumbs.js
  * [0] images/group-logo.gif
  * [0] XXXjava.io.IOException: The system cannot find the path specified
Could not process URI: images/svg/logo.png
  * [0] skin/images/search-left.gif
  * [0] skin/images/search-right.gif
  * [0] skin/images/tabSel-left.gif
  * [0] skin/images/tabSel-right.gif
  * [0] skin/images/tab-left.gif
  * [27] dataTransport/index.html
  * [0] skin/images/tab-right.gif
  * [27] sample.html
  * [0] skin/images/menu-left.gif
  * [0] skin/images/menu-right.gif
  * [0] index.pdf
  * [0] skin/images/printer.gif
  * [0] skin/images/label.gif
  * [0] skin/images/page.gif
  * [0] skin/images/chapter.gif
  * [0] skin/images/chapter_open.gif
  * [0] skin/images/current.gif
  * [0] /favicon.ico
  * [0] images/built-with-forrest-button.png
  * [25] changes.html
  * [24] todo.html
  * [0] dataTransport/index.pdf
  * [1] sample.pdf
  * [0] images/icon.png
  * [0] images/project-logo.gif
  * [0] changes.pdf
  * [0] images/add.jpg
  * [0] todo.pdf
disposing... done.

------------------------------
Static site generated at:
   G:\eclipse\JointSourceWeb\workspace\JointSourceWeb/build/site

Please check the file
G:\eclipse\JointSourceWeb\workspace\JointSourceWeb/build/tmp/brokenlinks.txt
for any broken links in the generated site.
------------------------------


BUILD SUCCESSFUL
Total time: 29 seconds



Re: Image sample problem

Posted by Bernhard Huber <be...@a1.net>.
hi,

do you use the svg namespace in your svg?

do you use
<?xml version="1.0"?>
<svg>....

or
<?xml version="1.0"?>
<svg:svg xmlns:svg=".....">....

in the later case you might want to try the non namespace version.

i experienced this under cocoon version 2.1
using an namespace aware xml parser
i described it under http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15638

regards bernhard


Re: Image sample problem

Posted by Jeff Turner <je...@apache.org>.
On Sat, Jan 04, 2003 at 04:22:45PM +0100, Anders Nilsson wrote:
> Hello,
> 
> Have set up a simple site based on the result of the seed. Works fine.
> 
> I tried to add the sample svg logo as described in the page:
> http://xml.apache.org/forrest/your-project.html#N10206
> 
> When I run the "forrest" command I get a logo.png file with size 0 built.

If you run 'forrest run', and then point a browser at
http://localhost:8888/, does the SVG image render properly?

Also, are there any interesting exceptions in
build/tmp/context/WEB-INF/logs/error.log?


--Jeff

> The forrest command output is shown below.
> 
> Does anyone have any pointers to as what is wrong ?
> 
> Regards
> 
> Anders
...
>  * [0] XXXjava.io.IOException: The system cannot find the path specified
> Could not process URI: images/svg/logo.png
>  * [0] skin/images/search-left.gif