List Info

Thread: No resource type defined for document




No resource type defined for document
user name
2006-05-25 09:53:30
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-unsubscribelenya.apache.org
For additional commands, e-mail: dev-helplenya.apache.org

No resource type defined for document
user name
2006-05-25 11:55:17
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-adminuni-due.de, Telefon: 0203/379-2736

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribelenya.apache.org
For additional commands, e-mail: dev-helplenya.apache.org

No resource type defined for document
user name
2006-05-25 12:41:52

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-unsubscribelenya.apache.org
For additional commands, e-mail: dev-helplenya.apache.org

No resource type defined for document
user name
2006-05-25 13:18:25
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-adminuni-due.de, Telefon: 0203/379-2736

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribelenya.apache.org
For additional commands, e-mail: dev-helplenya.apache.org

No resource type defined for document
user name
2006-05-25 13:20:20
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-adminuni-due.de, Telefon: 0203/379-2736

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribelenya.apache.org
For additional commands, e-mail: dev-helplenya.apache.org

No resource type defined for document
user name
2006-05-25 13:36:58

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-unsubscribelenya.apache.org
For additional commands, e-mail: dev-helplenya.apache.org

No resource type defined for document
user name
2006-05-26 07:42:47
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.hartmannwyona.com                     andreasapache.org


------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribelenya.apache.org
For additional commands, e-mail: dev-helplenya.apache.org

No resource type defined for document
user name
2006-05-26 09:07:19

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-unsubscribelenya.apache.org
For additional commands, e-mail: dev-helplenya.apache.org

[1-8]

about | contact  Other archives ( Real Estate discussion Medical topics )