You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by Andrew Golightly <A....@dcs.shef.ac.uk> on 2006/05/25 11:53:30 UTC
No resource type defined for document
Hi everyone.
I'm looking at the latest version of lenya (409340). It compiles and
runs fine. But on viewing my external publication (that worked fine on
earlier versions that compiled and ran) I now get this error:
-----------------
No resource type defined for document [mediacampaign:authoring:/index:en]!
org.apache.cocoon.ProcessingException: Sitemap: error when calling
sub-sitemap at <map:mount> -
file:/home/andrew/gate-research/cms-systems/lenya/lenya-1.4.x/build/lenya/webapp/global-sitemap.xmap:429:113
at <map:mount> -
file:/home/andrew/gate-research/cms-systems/lenya/lenya-1.4.x/build/lenya/webapp/sitemap.xmap:629:106
-----------------
The resource type for this main page is simply xhtml.
Anyone know what's going on?
thanks,
Andrew
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
Re: No resource type defined for document
Posted by Andreas Hartmann <an...@apache.org>.
Andrew Golightly wrote:
>
>
> Andreas Hartmann wrote:
>
>> Jörn Nettingsmeier wrote:
>>
>>> Andrew Golightly wrote:
>>>
>>>> Hi everyone.
>>>>
>>>> I'm looking at the latest version of lenya (409340). It compiles and
>>>> runs fine. But on viewing my external publication (that worked fine
>>>> on earlier versions that compiled and ran) I now get this error:
>>>>
>>>> -----------------
>>>>
>>>> No resource type defined for document
>>>> [mediacampaign:authoring:/index:en]!
>>>
>>>
>>> iiuc that is a consequence of andreas' commit that removes the
>>> extension from the files in the storage. you need to rename all *xml
>>> files in your content/ directory (with the exception of the
>>> sitetree.xml files) to just the name w/o extension.
>>
>>
>> Just for the record: There's a target in the trunk to do this:
>>
>> ./build.sh migrate-extensions -Dpublication=...
>
> This doesn't seem to work if the publication content is external to the
> build directory.
Yes, that's true. I added an <echo> message to the target and I'll try
to implement a generic target this weekend.
-- Andreas
> Well.. there are no errors thrown, it just doesn't seem
> to do anything.
>
> ------------
> andrew@Clara:~/gate-research/cms-systems/lenya/lenya-1.4.x$ ./build.sh
> migrate-extensions -Dpublication=tao
> Buildfile: build.xml
>
> BUILD SUCCESSFUL
> Total time: 1 second
> ------------
>
> cheers,
> Andrew
--
Andreas Hartmann
Wyona Inc. - Open Source Content Management - Apache Lenya
http://www.wyona.com http://lenya.apache.org
andreas.hartmann@wyona.com andreas@apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
Re: No resource type defined for document
Posted by Andrew Golightly <A....@dcs.shef.ac.uk>.
Andreas Hartmann wrote:
> Jörn Nettingsmeier wrote:
>
>> Andrew Golightly wrote:
>>
>>> Hi everyone.
>>>
>>> I'm looking at the latest version of lenya (409340). It compiles and
>>> runs fine. But on viewing my external publication (that worked fine
>>> on earlier versions that compiled and ran) I now get this error:
>>>
>>> -----------------
>>>
>>> No resource type defined for document
>>> [mediacampaign:authoring:/index:en]!
>>
>>
>> iiuc that is a consequence of andreas' commit that removes the
>> extension from the files in the storage. you need to rename all *xml
>> files in your content/ directory (with the exception of the
>> sitetree.xml files) to just the name w/o extension.
>
>
> Just for the record: There's a target in the trunk to do this:
>
> ./build.sh migrate-extensions -Dpublication=...
This doesn't seem to work if the publication content is external to the
build directory. Well.. there are no errors thrown, it just doesn't seem
to do anything.
------------
andrew@Clara:~/gate-research/cms-systems/lenya/lenya-1.4.x$ ./build.sh
migrate-extensions -Dpublication=tao
Buildfile: build.xml
BUILD SUCCESSFUL
Total time: 1 second
------------
cheers,
Andrew
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
Re: No resource type defined for document
Posted by Andreas Hartmann <an...@apache.org>.
Jörn Nettingsmeier wrote:
> Andrew Golightly wrote:
>> Hi everyone.
>>
>> I'm looking at the latest version of lenya (409340). It compiles and
>> runs fine. But on viewing my external publication (that worked fine on
>> earlier versions that compiled and ran) I now get this error:
>>
>> -----------------
>>
>> No resource type defined for document
>> [mediacampaign:authoring:/index:en]!
>
> iiuc that is a consequence of andreas' commit that removes the extension
> from the files in the storage. you need to rename all *xml files in your
> content/ directory (with the exception of the sitetree.xml files) to
> just the name w/o extension.
Just for the record: There's a target in the trunk to do this:
./build.sh migrate-extensions -Dpublication=...
(I mentioned it in the message, maybe it wasn't prominent enough).
-- Andreas
--
Andreas Hartmann
Wyona Inc. - Open Source Content Management - Apache Lenya
http://www.wyona.com http://lenya.apache.org
andreas.hartmann@wyona.com andreas@apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
Re: No resource type defined for document
Posted by Andrew Golightly <A....@dcs.shef.ac.uk>.
Jörn Nettingsmeier wrote:
> Andrew Golightly wrote:
>
>> the script worked great. One also needs to change the meta files..
>> subtle change to the line above:
>> for i in `find -name *_??.xml.meta` ; do mv $i `echo $i | sed
>> 's/\.xml//'` ; done
>
>
> a more generic solution that does everything in one go:
>
> for i in `find -name *_??.xml*` ; do \
> mv $i `echo $i | sed 's/\.xml//'` ; done
nice! thanks ;)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
Re: No resource type defined for document
Posted by Andrew Golightly <A....@dcs.shef.ac.uk>.
Jörn Nettingsmeier wrote:
> Andrew Golightly wrote:
>
>> the script worked great. One also needs to change the meta files..
>> subtle change to the line above:
>> for i in `find -name *_??.xml.meta` ; do mv $i `echo $i | sed
>> 's/\.xml//'` ; done
>
>
> a more generic solution that does everything in one go:
>
> for i in `find -name *_??.xml*` ; do \
> mv $i `echo $i | sed 's/\.xml//'` ; done
>
>
Also noticed that the resources meta files need to be renamed. Eg. If an
asset is called image.gif, then the current meta file is image.xml.meta,
but that needs to be changed to image.gif.meta
I'll write a script to convert them when I get time. Unless someone
beats me to it :)
cheers,
Andrew
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
Re: No resource type defined for document
Posted by Jörn Nettingsmeier <po...@uni-duisburg.de>.
Andrew Golightly wrote:
> the script worked great. One also needs to change the meta files..
> subtle change to the line above:
> for i in `find -name *_??.xml.meta` ; do mv $i `echo $i | sed
> 's/\.xml//'` ; done
a more generic solution that does everything in one go:
for i in `find -name *_??.xml*` ; do \
mv $i `echo $i | sed 's/\.xml//'` ; done
--
"Open source takes the bullshit out of software."
- Charles Ferguson on TechnologyReview.com
--
Jörn Nettingsmeier, EDV-Administrator
Institut für Politikwissenschaft
Universität Duisburg-Essen, Standort Duisburg
Mail: pol-admin@uni-due.de, Telefon: 0203/379-2736
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
Re: No resource type defined for document
Posted by Jörn Nettingsmeier <po...@uni-duisburg.de>.
Andrew Golightly wrote:
>
>
> Jörn Nettingsmeier wrote:
>
>> Andrew Golightly wrote:
>>
>>> Hi everyone.
>>>
>>> I'm looking at the latest version of lenya (409340). It compiles and
>>> runs fine. But on viewing my external publication (that worked fine
>>> on earlier versions that compiled and ran) I now get this error:
>>>
>>> -----------------
>>>
>>> No resource type defined for document
>>> [mediacampaign:authoring:/index:en]!
>>
>>
>> iiuc that is a consequence of andreas' commit that removes the
>> extension from the files in the storage. you need to rename all *xml
>> files in your content/ directory (with the exception of the
>> sitetree.xml files) to just the name w/o extension.
>>
>> on unixes, the following snippet does the job:
>> for i in `find -name *_??.xml` ; do mv $i `echo $i | sed 's/\.xml//'`
>> ; done
>
> the script worked great. One also needs to change the meta files..
> subtle change to the line above:
> for i in `find -name *_??.xml.meta` ; do mv $i `echo $i | sed
> 's/\.xml//'` ; done
oh, of course. sorry.
--
"Open source takes the bullshit out of software."
- Charles Ferguson on TechnologyReview.com
--
Jörn Nettingsmeier, EDV-Administrator
Institut für Politikwissenschaft
Universität Duisburg-Essen, Standort Duisburg
Mail: pol-admin@uni-due.de, Telefon: 0203/379-2736
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
Re: No resource type defined for document
Posted by Andrew Golightly <A....@dcs.shef.ac.uk>.
Jörn Nettingsmeier wrote:
> Andrew Golightly wrote:
>
>> Hi everyone.
>>
>> I'm looking at the latest version of lenya (409340). It compiles and
>> runs fine. But on viewing my external publication (that worked fine
>> on earlier versions that compiled and ran) I now get this error:
>>
>> -----------------
>>
>> No resource type defined for document
>> [mediacampaign:authoring:/index:en]!
>
>
> iiuc that is a consequence of andreas' commit that removes the
> extension from the files in the storage. you need to rename all *xml
> files in your content/ directory (with the exception of the
> sitetree.xml files) to just the name w/o extension.
>
> on unixes, the following snippet does the job:
> for i in `find -name *_??.xml` ; do mv $i `echo $i | sed 's/\.xml//'`
> ; done
the script worked great. One also needs to change the meta files..
subtle change to the line above:
for i in `find -name *_??.xml.meta` ; do mv $i `echo $i | sed
's/\.xml//'` ; done
thanks,
Andrew
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
Re: No resource type defined for document
Posted by Jörn Nettingsmeier <po...@uni-duisburg.de>.
Andrew Golightly wrote:
> Hi everyone.
>
> I'm looking at the latest version of lenya (409340). It compiles and
> runs fine. But on viewing my external publication (that worked fine on
> earlier versions that compiled and ran) I now get this error:
>
> -----------------
>
> No resource type defined for document [mediacampaign:authoring:/index:en]!
iiuc that is a consequence of andreas' commit that removes the extension
from the files in the storage. you need to rename all *xml files in your
content/ directory (with the exception of the sitetree.xml files) to
just the name w/o extension.
on unixes, the following snippet does the job:
for i in `find -name *_??.xml` ; do mv $i `echo $i | sed 's/\.xml//'` ; done
or, in plain text: find all files of the format <name>_<language>.xml,
make a list of them and iterate over them. with each, rename it from the
original name to the original name with ".xml" removed.
somebody also posted an ant job that does the same thing... on non-unix
systems, you might be more comfortable with that.
regards,
jörn
--
"Open source takes the bullshit out of software."
- Charles Ferguson on TechnologyReview.com
--
Jörn Nettingsmeier, EDV-Administrator
Institut für Politikwissenschaft
Universität Duisburg-Essen, Standort Duisburg
Mail: pol-admin@uni-due.de, Telefon: 0203/379-2736
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org