forrest-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Clay Leeds <cle...@medata.com>
Subject Re: Broken linkmap
Date Fri, 29 Oct 2004 18:54:50 GMT
On Oct 29, 2004, at 11:41 AM, Ross Gardler wrote:
> Clay Leeds wrote:
>> On Oct 29, 2004, at 11:14 AM, Ross Gardler wrote:
>>> Clay Leeds wrote:
>>>> On Oct 29, 2004, at 10:21 AM, Ross Gardler wrote:
>>>>> Now that we have that out of the way lets return to your linkmap    
>>>>> problem. Can you confirm that when you run without plugins enabled  
>>>>>   (deleting forrestcore/plugins/sitemap.xmap) you still get the  
>>>>> same   problem.
>>>>
>>>> Running now... (twiddling for 36-40 seconds...) and... drumroll    
>>>> please... "D'oh!"
>>>> X [0]                                     linkmap.html  BROKEN: No   
>>>>  pipeline matched request: linkmap-linkmap.html
>>>> Total time: 0 minutes 19 seconds,  Site size: 0 Site pages: 0
>>>> BUILD FAILED
>>>> /Users/Shared/_WebDLs/_repos/forrest/forrestcore/src/core/targets/   
>>>> site.xml:43: Java returned: 1
>>>> Total time: 38 seconds
>>>> [clay@Clay-Leeds-Computer medata_docs]$
>>>
>>> So it isn't the plugins (since they are not being loaded if you   
>>> deleted forrestcore/plugins/sitemap.xmap (you didn't do a ./build.sh  
>>>  did you? - this would rebuild the plugins sitemap).
>> I did a './build.sh' from forrestcore/ and then 'rm   
>> plugins/sitemap.xmap' before I did that BUILD FAILED...
>
> OK, that is what I wanted.
>
>>> What does brokenlinks.xml say?
>> <broken-links>
>>   <link RENAME_FILE_TO_USE_message="No pipeline matched request:  
>> linkmap-linkmap.html"  uri="linkmap.html">
>>   </link>
>> </broken-links>
>
> This is the exact same thing that was happening when the plugins we  
> breaking things, but that is fixed and you have done an svn up, and  
> you don't have a project sitemap that could be causing the problem,  
> I'm confused.

Just to be safe...

1. Just ran another /svn up/ so I am now at 55985.
   (so far today, I think I've /svn up/'d 3-4 times)
2. ./build.sh
3. BUILD SUCCESSFUL (11 secs)
4. rm plugins/sitemap.xmap
5. [clay@Clay-Leeds-Computer medata_docs]$ forrest
6. [..]
7. X [0]                                     linkmap.html  BROKEN: No  
pipeline matched request: linkmap-linkmap.html
Total time: 0 minutes 20 seconds,  Site size: 0 Site pages: 0

BUILD FAILED
/Users/Shared/_WebDLs/_repos/forrest/forrestcore/src/core/targets/ 
site.xml:43: Java returned: 1

Total time: 38 seconds

8. D'oh!

> Lets go back to basics.
>
> Can you successfully build a freshly seeded site?

yes...

[clay@Clay-Leeds-Computer temp]$ mkdir seed4
[clay@Clay-Leeds-Computer temp]$ cd seed4
[clay@Clay-Leeds-Computer seed4]$ forrest seed
Apache Forrest.  Run 'forrest -projecthelp' to list options

Buildfile:  
/Users/Shared/_WebDLs/_repos/forrest/forrestcore/src/core/ 
forrest.build.xml

init-props:
Loading project specific properties from  
/Users/Shared/_WebDLs/_repos/temp/seed4/forrest.properties
Loading user specific properties from /Users/clay/forrest.properties
Loading default properties from  
/Users/Shared/_WebDLs/_repos/forrest/forrestcore/src/core/context/ 
default-forrest.properties
Created dir: /Users/Shared/_WebDLs/_repos/temp/seed4/build/tmp

echo-settings:

check-contentdir:

ensure-nocontent:

seed:
Copying 45 files to /Users/Shared/_WebDLs/_repos/temp/seed4

-------------------------------
~~ Template project created! ~~

Here is an outline of the generated files:

/                        # /Users/Shared/_WebDLs/_repos/temp/seed4
/status.xml              # List of project developers, todo list and  
change log
/forrest.properties      # Optional file describing your site layout
/src/documentation/      # Doc-specific files
/src/documentation/skinconf.xml    # Info about your project used by  
the skin
/src/documentation/content/        # Site content.
/src/documentation/content/xdocs   # XML content.
/src/documentation/content/xdocs/index.xml # Home page
/src/documentation/content/xdocs/site.xml  # Navigation file for site  
structure
/src/documentation/content/xdocs/tabs.xml  # Skin-specific 'tabs' file.
/src/documentation/content/*.html,pdf # Static content files, may have  
subdirs
/src/documentation/resources/images   # Project images (logos, etc)
# you can create other directories as needed (see forrest.properties)


What to do now?

- Render this template to static HTML by typing 'forrest'.
   View the generated HTML in a browser to make sure everything works.
- Alternatively 'forrest run' and browse to http://localhost:8888/ live  
demo.
- Edit status.xml and src/documentation/skinconf.xml
   to customize for your project.
- Start adding content in xdocs/ remembering to declare new files in  
site.xml
- Follow the document http://forrest.apache.org/docs/your-project.html
- Provide any feedback to dev@forrest.apache.org

Thanks for using Apache Forrest
-------------------------------

BUILD SUCCESSFUL
Total time: 8 seconds
[clay@Clay-Leeds-Computer seed4]$

> If you do Forrest run on the project that is failing above what  
> happens (remember with the plugins disabled your OpenOffice.org stuff  
> will not work).

Sorry... was that a /forrest run/ or a /forrest/ run? (gets confusing!).

Anyway, I did a /forrest/ run and received a... drumroll please...  
waiting... it got past the linkmap BROKEN thingamajig...

====
Total time: 2 minutes 4 seconds,  Site size: 438,770 Site pages: 58
------------------------------
Static site was successfully generated at:
/Users/Shared/_WebDLs/_repos/temp/seed4/build/site
------------------------------
BUILD SUCCESSFUL
Total time: 2 minutes 24 seconds
====

That works...

<grasping-at-straws>
Perhaps there's something wrong with my site.xml:
====
[clay@Clay-Leeds-Computer medata_docs]$ find . -iname *site*
./build/site
./build/webapp/WEB-INF/logs/sitemap.log
./src/documentation/content/xdocs/site.xml
[clay@Clay-Leeds-Computer medata_docs]$
====
</grasping-at-straws>

Could it be a skinconf.xml or forrest.properties issue?

>>> Is there any relevant info in WEB-INF/logs?
>
> Well I was clutching at straws and that was certainly the shortest!
>
> Ross

Heh! At least I've got got my sense of humor, ┬┐no?

Web Maestro Clay
-- 
Clay Leeds - <cleeds@medata.com>
Webmaster/Developer - Medata, Inc. - <http://www.medata.com/>
PGP Public Key: <https://mail.medata.com/pgp/cleeds.asc>


Mime
View raw message