You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Jürgen Ragaller <ra...@null-oder-eins.ch> on 2006/07/09 14:02:05 UTC

1.4x howto new publication

Hi all!

I'm trying to switch from lenya12x to lenya 14x.

How can I make a copy of the default publication under a different  
publication_id (folder name)  and a different Publication Name? Up to  
now it was basically trial and error finding occurences of «default»  
in the various files and replacing them with my publication id (and  
partially also java package names). The result of my attempts is only  
partially working. Where do I have to change what to get a new and  
fully working Publication?

The «New Publication» mechanism does not seem to help me here because  
it delivers a publication based on the default pub.

There was (and probably still is) a wiki page expaining this for 12x  
- a «new publication howto» would be nice for 14x also.

I am new at this, so maybe I got it completely wrong... Thank You for  
help.

Jürgen
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: 1.4x howto new publication

Posted by Andreas Hartmann <an...@apache.org>.
Jürgen Ragaller wrote:
> Am 10.07.2006 um 10:29 schrieb Andreas Hartmann:

[...]

>> - If you use publication templating and base your pub on the default pub,
>>   use the "New Publication" function, copy the results to a source
>>   directory of your choice, and start adding and overriding stuff.
> 
> Thank You for the quick answer.
> 
> I'm opting for the first version. If I'm trying this with todays 14x svn 
> I get an error after the login in the new publication:
> The requested document '' with document-id '' does not exist.
> 
> If I now click on «create this document» the error message says:
> The parameter [document] must not be null!

This should work now.

-- Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: 1.4x howto new publication

Posted by Jürgen Ragaller <ra...@null-oder-eins.ch>.
Am 25.08.2006 um 10:56 schrieb Andreas Hartmann:

> Jürgen Ragaller wrote:
>> Hi Michael
>> Am 24.08.2006 um 13:57 schrieb Michael Wohlfart:
>>> Hi Jürgen,
>>>
>>> same problem here, tried to switch from lenya12x to lenya 14x, I  
>>> remember
>>> fiddling around with some migration tasks, trying to convert the  
>>> default
>>> publication to UUIDs (at least that's what i think it does ?-/):
>>>
>>> ./build.sh --noconfig module.test - 
>>> Dmodule=org.apache.lenya.modules.migration
>> That command results in a «build failed» with todays svn (osx java  
>> 1.5).
>
> I can't confirm this problem.
> Would you mind adding a bug report to bugzilla (unless this bug
> is already filed)? Thanks a lot!

Hi, Andreas. I tried again with a pristine checkout today - same  
problem converting the default pub to uuids. Just reported to bugzilla.

Jürgen

>
> -- Andreas
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
> For additional commands, e-mail: user-help@lenya.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: 1.4x howto new publication

Posted by Andreas Hartmann <an...@apache.org>.
Jürgen Ragaller wrote:
> Hi Michael
> 
> 
> Am 24.08.2006 um 13:57 schrieb Michael Wohlfart:
> 
>> Hi Jürgen,
>>
>> same problem here, tried to switch from lenya12x to lenya 14x, I remember
>> fiddling around with some migration tasks, trying to convert the default
>> publication to UUIDs (at least that's what i think it does ?-/):
>>
>> ./build.sh --noconfig module.test 
>> -Dmodule=org.apache.lenya.modules.migration
> 
> That command results in a «build failed» with todays svn (osx java 1.5).

I can't confirm this problem.
Would you mind adding a bug report to bugzilla (unless this bug
is already filed)? Thanks a lot!

-- Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: 1.4x howto new publication

Posted by Jürgen Ragaller <ra...@null-oder-eins.ch>.
Hi Michael


Am 24.08.2006 um 13:57 schrieb Michael Wohlfart:

> Hi Jürgen,
>
> same problem here, tried to switch from lenya12x to lenya 14x, I  
> remember
> fiddling around with some migration tasks, trying to convert the  
> default
> publication to UUIDs (at least that's what i think it does ?-/):
>
> ./build.sh --noconfig module.test - 
> Dmodule=org.apache.lenya.modules.migration

That command results in a «build failed» with todays svn (osx java 1.5).

>
> [ see: http://www.mail-archive.com/dev@lenya.apache.org/ 
> msg06513.html ]
>
> I ended up with 2 default publication:
> * the original publication was still there and didn't work at all,
>   the errors i got were the same as you reported
> * in the other publication (probably converted to UUIDs but with  
> the same
>   name) all the editors were broken, i couldn't check in a single  
> document
>   after editing, i also couldn't create a any new documents, this  
> was some
>   days ago so maybe this is fixed now :-/
>
> So i guess there must be some magic to do with the trunk to get the  
> default
> publication working, but i have no clue what it is. Maybe someone  
> else can
> shed some light on this, why is the default publication in the  
> trunk not
> already converted to UUIDs ? Or what is he magic to get it working ?
>
> TIA
> Michael
>
>
>
> Jürgen Ragaller wrote:
>> Am 10.07.2006 um 10:29 schrieb Andreas Hartmann:
>>
>>> Jürgen Ragaller wrote:
>>>> Hi all!
>>>> I'm trying to switch from lenya12x to lenya 14x.
>>>> How can I make a copy of the default publication under a different
>>>> publication_id (folder name)  and a different Publication Name?  
>>>> Up to
>>>> now it was basically trial and error finding occurences of  
>>>> «default»
>>>> in the various files and replacing them with my publication id (and
>>>> partially also java package names). The result of my attempts is  
>>>> only
>>>> partially working. Where do I have to change what to get a new and
>>>> fully working Publication?
>>>> The «New Publication» mechanism does not seem to help me here  
>>>> because
>>>> it delivers a publication based on the default pub.
>>>
>>> That depends if you want to use publication templating [1] or if  
>>> you want
>>> to create a publication from scratch.
>>>
>>> Some hints:
>>>
>>> - If you use publication templating and base your pub on the  
>>> default pub,
>>>   use the "New Publication" function, copy the results to a source
>>>   directory of your choice, and start adding and overriding stuff.
>>
>> Thank You for the quick answer.
>>
>> I'm opting for the first version. If I'm trying this with todays  
>> 14x svn
>> I get an error after the login in the new publication:
>> The requested document '' with document-id '' does not exist.
>>
>> If I now click on «create this document» the error message says:
>> The parameter [document] must not be null!
>>
>> Maybe this has problem has already been posted...
>> Do I have to convert the default pub to uuid first?
>>
>> Help is appreciated!
>>
>>>
>>> - If you want to start from scratch, put your custom resource types
>>>   and other functionality in modules, and put only presentation  
>>> logic
>>>   and styles in your publication.
>>>
>>> [1]
>>> http://lenya.apache.org/1_4/reference/publication-templating/ 
>>> index.html
>>>
>>> HTH,
>>>
>>> -- 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
>>>
>>>
>

Jürgen
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: Windows XP build problems [was: 1.4x howto new publication]

Posted by Andreas Hartmann <an...@apache.org>.
Markus Angst wrote:

[...]

> AFAIK the lenya build target "eclipse-project" would be a starting 
> point. Not sure if this is officially supported though...

Yes, it is officially supported.

-- Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: Windows XP build problems [was: 1.4x howto new publication]

Posted by Markus Angst <ma...@inventec.ch>.
Hi Michael,

>> When I run build now, I get exactly the same error that you described in
>> your bugzilla entry:
>> http://issues.apache.org/bugzilla/show_bug.cgi?id=40113. So I start to
>> feel pretty normal now ;-) I will apply your patch and comment in
>> bugzilla after that.
>> BTW: what do you mean by "looks like i got the wrong transformer in my
>> environment"? What would I have to look after to confirm this?
> 
> As far as i understand this bug the document() selects in the modules2build.xsl 
> stylesheet which is used to generate the depends in the target 
> patch-modules-test didn't work in my environment. I changed the templates
> that should generate the depends, but each time i tried to access a file with 
> the document() select it didn't return anything, so i thought it may be a 
> problem with the xsl transformer...
> I looked up the ant xslt task to see if i could use a different xsl 
> transformer and tried them out one by one, seems like trax finally did the job.

My java/ant knowledge is somewhat basic, so the following is just an idea.

Looking at http://www.zvon.org/xxl/XSLTreference/Output/function_document.html I 
see:
[...] If there is an error retrieving the resource, then the XSLT processor may 
signal an error; if it does not signal an error, it must recover by returning an 
empty node-set. One possible kind of retrieval error is that the XSLT processor 
does not support the URI scheme used by the URI. An XSLT processor is not 
required to support any particular URI schemes. [...]

Looks to me like a good description of what's happening here... Maybe something 
is working fine under Unix/Linux and not working properly under Windows?

> BTW if you are using Subclipse you probably have Lenya compiling in Eclipse, is 
> there any good tutorial about how to do this ?

No, sorry, I don't compile in Eclipse; I run build.bat. I use Subclipse because 
I know it a little bit, I use it for other stuff  and it works for me.
AFAIK the lenya build target "eclipse-project" would be a starting point. Not 
sure if this is officially supported though...

Thanks
Markus

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: Windows XP build problems [was: 1.4x howto new publication]

Posted by Michael Wohlfart <mi...@wohlfart.net>.
Hi Markus,

Markus Angst wrote:
[...]
>> you are right, the compile-build-tasks target was nowhere used and it
>> seems like the class files in
>> tools\anttasks\build\classes\org\apache\lenya\cms\ant
>> came already build from my subversion checkout ?-/
> 
> Thanks. That got me one step further. When I browse the SVN repository,
> I can see the class files, too. I made a fresh checkout again, and...
> there came the files! I definitely can't find out what went wrong the
> first time (I am using Subclipse and didn't change any settings between
> the two runs). Sorry for the noise.
> 
> When I run build now, I get exactly the same error that you described in
> your bugzilla entry:
> http://issues.apache.org/bugzilla/show_bug.cgi?id=40113. So I start to
> feel pretty normal now ;-) I will apply your patch and comment in
> bugzilla after that.
> BTW: what do you mean by "looks like i got the wrong transformer in my
> environment"? What would I have to look after to confirm this?

As far as i understand this bug the document() selects in the modules2build.xsl 
stylesheet which is used to generate the depends in the target 
patch-modules-test didn't work in my environment. I changed the templates
that should generate the depends, but each time i tried to access a file with 
the document() select it didn't return anything, so i thought it may be a 
problem with the xsl transformer...
I looked up the ant xslt task to see if i could use a different xsl 
transformer and tried them out one by one, seems like trax finally did the job.

BTW if you are using Subclipse you probably have Lenya compiling in Eclipse, is 
there any good tutorial about how to do this ?

thanks
Michael






---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Windows XP build problems [was: 1.4x howto new publication]

Posted by Markus Angst <ma...@inventec.ch>.
Hello Michael,

Michael Wohlfart wrote:
> Hello,
> 
> thanks for your feedback
> 
> Markus Angst wrote:
> [...]
>>> * Subversion checkout https://svn.apache.org/repos/asf/lenya/trunk
>>> * > build
>>> * migrate to UUIDs:
>>>   > build module.test -Dmodule=org.apache.lenya.modules.migration
 >>
>> I am running Windows XP, Java 1.5. I made a fresh checkout of the trunk
>> this afternoon and found some problems.
>>
>> While running build I get the following error:
>>
>> C:\lenya\lenya-1.4-dev\src\targets\properties-build.xml:155:
>> taskdef class org.apache.lenya.cms.ant.CopyJavaSourcesTask cannot be found
> 
> WinXP and JDK1.5 here too, i just did a fresh checkout but i can't reproduce 
> this problem
> 
>> When I change line 154 in src/targets/properties-build.xml from
>>
>> <target name="init-tasks" depends="cocoon-init-tasks">
>>
>> to
>>
>> <target name="init-tasks" depends="cocoon-init-tasks, compile-build-tasks">
>>
>> the build works. My java/ant knowledge is very basic. I am not stating
>> that this is the right place for the dependency of compile-build-tasks;
>> the only thing I want to say is that I guess that compile-build-tasks
>> (or any other task that is compiling CopyJavaSourcesTask) should be
>> executed somewhere.
>> (I also got the impression that a build clean-all is not deleting the
>> files in tools\anttasks\build\classes\org\apache\lenya\cms\ant. 
> [...]
> 
> you are right, the compile-build-tasks target was nowhere used and it
> seems like the class files in 
> tools\anttasks\build\classes\org\apache\lenya\cms\ant
> came already build from my subversion checkout ?-/

Thanks. That got me one step further. When I browse the SVN repository, I can 
see the class files, too. I made a fresh checkout again, and... there came the 
files! I definitely can't find out what went wrong the first time (I am using 
Subclipse and didn't change any settings between the two runs). Sorry for the noise.

When I run build now, I get exactly the same error that you described in your 
bugzilla entry: http://issues.apache.org/bugzilla/show_bug.cgi?id=40113. So I 
start to feel pretty normal now ;-) I will apply your patch and comment in 
bugzilla after that.
BTW: what do you mean by "looks like i got the wrong transformer in my 
environment"? What would I have to look after to confirm this?

Thanks again!

Markus Angst


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: 1.4x howto new publication

Posted by Michael Wohlfart <mi...@wohlfart.net>.
Hello,

thanks for your feedback

Markus Angst wrote:
[...]
>> * Subversion checkout https://svn.apache.org/repos/asf/lenya/trunk
>> * > build
>> * migrate to UUIDs:
>>   > build module.test -Dmodule=org.apache.lenya.modules.migration
> 
> I am running Windows XP, Java 1.5. I made a fresh checkout of the trunk
> this afternoon and found some problems.
> 
> While running build I get the following error:
> 
> C:\lenya\lenya-1.4-dev\src\targets\properties-build.xml:155:
> taskdef class org.apache.lenya.cms.ant.CopyJavaSourcesTask cannot be found

WinXP and JDK1.5 here too, i just did a fresh checkout but i can't reproduce 
this problem

> 
> When I change line 154 in src/targets/properties-build.xml from
> 
> <target name="init-tasks" depends="cocoon-init-tasks">
> 
> to
> 
> <target name="init-tasks" depends="cocoon-init-tasks, compile-build-tasks">
> 
> the build works. My java/ant knowledge is very basic. I am not stating
> that this is the right place for the dependency of compile-build-tasks;
> the only thing I want to say is that I guess that compile-build-tasks
> (or any other task that is compiling CopyJavaSourcesTask) should be
> executed somewhere.
> (I also got the impression that a build clean-all is not deleting the
> files in tools\anttasks\build\classes\org\apache\lenya\cms\ant. 
[...]

you are right, the compile-build-tasks target was nowhere used and it
seems like the class files in 
tools\anttasks\build\classes\org\apache\lenya\cms\ant
came already build from my subversion checkout ?-/


Michael





---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: 1.4x howto new publication

Posted by Markus Angst <ma...@inventec.ch>.
Hallo,

> I finally got the trunk compiled and running on WinXP with Java1.5 and at 
> least BXE seems to work, it would be nice if someone could commit my patches
> for WinXP/Java1.5:
> 
> To get the Build working on XP you have to apply patch from
> http://issues.apache.org/bugzilla/show_bug.cgi?id=40113
> 
> To get the save working in BXE you have to apply patch from
> http://issues.apache.org/bugzilla/show_bug.cgi?id=40320
> 
> after patching it is pretty simple, on WinXP:
> 
> * Subversion checkout https://svn.apache.org/repos/asf/lenya/trunk
> * > build
> * migrate to UUIDs:
>   > build module.test -Dmodule=org.apache.lenya.modules.migration

I am running Windows XP, Java 1.5. I made a fresh checkout of the trunk this 
afternoon and found some problems.

While running build I get the following error:

C:\lenya\lenya-1.4-dev\src\targets\properties-build.xml:155:
taskdef class org.apache.lenya.cms.ant.CopyJavaSourcesTask cannot be found

When I change line 154 in src/targets/properties-build.xml from

<target name="init-tasks" depends="cocoon-init-tasks">

to

<target name="init-tasks" depends="cocoon-init-tasks, compile-build-tasks">

the build works. My java/ant knowledge is very basic. I am not stating that this 
is the right place for the dependency of compile-build-tasks; the only thing I 
want to say is that I guess that compile-build-tasks (or any other task that is 
compiling CopyJavaSourcesTask) should be executed somewhere.
(I also got the impression that a build clean-all is not deleting the files in
tools\anttasks\build\classes\org\apache\lenya\cms\ant. I guess this is the 
reason that the first error was not noticed before.)

Thanks!
Markus Angst

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: 1.4x howto new publication

Posted by Michael Wohlfart <mi...@wohlfart.net>.
Hi Andreas,

thank you for your reply, i guess i missed the concept of the migration task,
i wasn't aware that it creates a test publication, seems like this is a side 
effect of the implementation as a test case...

I finally got the trunk compiled and running on WinXP with Java1.5 and at 
least BXE seems to work, it would be nice if someone could commit my patches
for WinXP/Java1.5:

To get the Build working on XP you have to apply patch from
http://issues.apache.org/bugzilla/show_bug.cgi?id=40113

To get the save working in BXE you have to apply patch from
http://issues.apache.org/bugzilla/show_bug.cgi?id=40320


after patching it is pretty simple, on WinXP:

* Subversion checkout https://svn.apache.org/repos/asf/lenya/trunk

* > build

* migrate to UUIDs:
  > build module.test -Dmodule=org.apache.lenya.modules.migration

* fire up lenya:
  > lenya

hope that helps some people out there to get the latest trunk running


best regards
Michael




Andreas Hartmann wrote:
> Michael Wohlfart wrote:
>> Hi Jürgen,
>>
>> same problem here, tried to switch from lenya12x to lenya 14x, I remember
>> fiddling around with some migration tasks, trying to convert the
>> default publication to UUIDs (at least that's what i think it does ?-/):
>>
>> ./build.sh --noconfig module.test
>> -Dmodule=org.apache.lenya.modules.migration
>>
>> [ see: http://www.mail-archive.com/dev@lenya.apache.org/msg06513.html ]
>>
>> I ended up with 2 default publication:
>> * the original publication was still there and didn't work at all,
>>   the errors i got were the same as you reported
> 
> This one should now contain UUID-based content.
> It would be very nice if you could add all problems to bugzilla.
> And it would be even better if you could attach a test case
> (see http://lenya.apache.org/docs/tests.html for instructions).
> 
>> * in the other publication (probably converted to UUIDs but with the
>> same   name) all the editors were broken, i couldn't check in a single
>> document
>>   after editing, i also couldn't create a any new documents, this was
>> some
>>   days ago so maybe this is fixed now :-/
> 
> This publication is only needed for testing.
> 
>> So i guess there must be some magic to do with the trunk to get the
>> default
>> publication working, but i have no clue what it is.
> 
> It works quite well for me with UUID-based content.
> 
>> Maybe someone else can shed some light on this, why is the default
>> publication in the trunk not already converted to UUIDs ?
> 
> The major reason is that we want to test the current content structure
> for some time before forcing users to migrate their content. But at
> the moment this is critical, because some things certainly don't work
> anymore with the old content structure. I guess we have to abandon the
> support for non-UUID content.
> 
> -- Andreas
> 
>> Or what is he magic to get it working ?
>>
>> TIA
>> Michael
>>
>>
>>
>> Jürgen Ragaller wrote:
>>> Am 10.07.2006 um 10:29 schrieb Andreas Hartmann:
>>>
>>>> Jürgen Ragaller wrote:
>>>>> Hi all!
>>>>> I'm trying to switch from lenya12x to lenya 14x.
>>>>> How can I make a copy of the default publication under a different
>>>>> publication_id (folder name)  and a different Publication Name? Up to
>>>>> now it was basically trial and error finding occurences of «default»
>>>>> in the various files and replacing them with my publication id (and
>>>>> partially also java package names). The result of my attempts is only
>>>>> partially working. Where do I have to change what to get a new and
>>>>> fully working Publication?
>>>>> The «New Publication» mechanism does not seem to help me here because
>>>>> it delivers a publication based on the default pub.
>>>> That depends if you want to use publication templating [1] or if you
>>>> want
>>>> to create a publication from scratch.
>>>>
>>>> Some hints:
>>>>
>>>> - If you use publication templating and base your pub on the default
>>>> pub,
>>>>   use the "New Publication" function, copy the results to a source
>>>>   directory of your choice, and start adding and overriding stuff.
>>> Thank You for the quick answer.
>>>
>>> I'm opting for the first version. If I'm trying this with todays 14x svn
>>> I get an error after the login in the new publication:
>>> The requested document '' with document-id '' does not exist.
>>>
>>> If I now click on «create this document» the error message says:
>>> The parameter [document] must not be null!
>>>
>>> Maybe this has problem has already been posted...
>>> Do I have to convert the default pub to uuid first?
>>>
>>> Help is appreciated!
>>>
>>>> - If you want to start from scratch, put your custom resource types
>>>>   and other functionality in modules, and put only presentation logic
>>>>   and styles in your publication.
>>>>
>>>> [1]
>>>> http://lenya.apache.org/1_4/reference/publication-templating/index.html
>>>>
>>>> HTH,
>>>>
>>>> -- 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: user-unsubscribe@lenya.apache.org
>>>> For additional commands, e-mail: user-help@lenya.apache.org
>>>>
>>> Jürgen Ragaller, null-oder-eins ltd.
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
>>> For additional commands, e-mail: user-help@lenya.apache.org
>>>
>>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
> For additional commands, e-mail: user-help@lenya.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: 1.4x howto new publication

Posted by Andreas Hartmann <an...@apache.org>.
Michael Wohlfart wrote:
> Hi Jürgen,
> 
> same problem here, tried to switch from lenya12x to lenya 14x, I remember
> fiddling around with some migration tasks, trying to convert the default 
> publication to UUIDs (at least that's what i think it does ?-/):
> 
> ./build.sh --noconfig module.test -Dmodule=org.apache.lenya.modules.migration
> 
> [ see: http://www.mail-archive.com/dev@lenya.apache.org/msg06513.html ]
> 
> I ended up with 2 default publication:
> * the original publication was still there and didn't work at all,
>   the errors i got were the same as you reported

This one should now contain UUID-based content.
It would be very nice if you could add all problems to bugzilla.
And it would be even better if you could attach a test case
(see http://lenya.apache.org/docs/tests.html for instructions).

> * in the other publication (probably converted to UUIDs but with the same 
>   name) all the editors were broken, i couldn't check in a single document
>   after editing, i also couldn't create a any new documents, this was some
>   days ago so maybe this is fixed now :-/

This publication is only needed for testing.

> So i guess there must be some magic to do with the trunk to get the default
> publication working, but i have no clue what it is.

It works quite well for me with UUID-based content.

> Maybe someone else can 
> shed some light on this, why is the default publication in the trunk not 
> already converted to UUIDs ?

The major reason is that we want to test the current content structure
for some time before forcing users to migrate their content. But at
the moment this is critical, because some things certainly don't work
anymore with the old content structure. I guess we have to abandon the
support for non-UUID content.

-- Andreas

> Or what is he magic to get it working ?
> 
> TIA
> Michael
> 
> 
> 
> Jürgen Ragaller wrote:
>> Am 10.07.2006 um 10:29 schrieb Andreas Hartmann:
>>
>>> Jürgen Ragaller wrote:
>>>> Hi all!
>>>> I'm trying to switch from lenya12x to lenya 14x.
>>>> How can I make a copy of the default publication under a different
>>>> publication_id (folder name)  and a different Publication Name? Up to
>>>> now it was basically trial and error finding occurences of «default»
>>>> in the various files and replacing them with my publication id (and
>>>> partially also java package names). The result of my attempts is only
>>>> partially working. Where do I have to change what to get a new and
>>>> fully working Publication?
>>>> The «New Publication» mechanism does not seem to help me here because
>>>> it delivers a publication based on the default pub.
>>> That depends if you want to use publication templating [1] or if you want
>>> to create a publication from scratch.
>>>
>>> Some hints:
>>>
>>> - If you use publication templating and base your pub on the default pub,
>>>   use the "New Publication" function, copy the results to a source
>>>   directory of your choice, and start adding and overriding stuff.
>> Thank You for the quick answer.
>>
>> I'm opting for the first version. If I'm trying this with todays 14x svn
>> I get an error after the login in the new publication:
>> The requested document '' with document-id '' does not exist.
>>
>> If I now click on «create this document» the error message says:
>> The parameter [document] must not be null!
>>
>> Maybe this has problem has already been posted...
>> Do I have to convert the default pub to uuid first?
>>
>> Help is appreciated!
>>
>>> - If you want to start from scratch, put your custom resource types
>>>   and other functionality in modules, and put only presentation logic
>>>   and styles in your publication.
>>>
>>> [1]
>>> http://lenya.apache.org/1_4/reference/publication-templating/index.html
>>>
>>> HTH,
>>>
>>> -- 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: user-unsubscribe@lenya.apache.org
>>> For additional commands, e-mail: user-help@lenya.apache.org
>>>
>> Jürgen Ragaller, null-oder-eins ltd.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
>> For additional commands, e-mail: user-help@lenya.apache.org
>>
>>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: 1.4x howto new publication

Posted by Michael Wohlfart <mi...@wohlfart.net>.
Hi Jürgen,

same problem here, tried to switch from lenya12x to lenya 14x, I remember
fiddling around with some migration tasks, trying to convert the default 
publication to UUIDs (at least that's what i think it does ?-/):

./build.sh --noconfig module.test -Dmodule=org.apache.lenya.modules.migration

[ see: http://www.mail-archive.com/dev@lenya.apache.org/msg06513.html ]

I ended up with 2 default publication:
* the original publication was still there and didn't work at all,
  the errors i got were the same as you reported
* in the other publication (probably converted to UUIDs but with the same 
  name) all the editors were broken, i couldn't check in a single document
  after editing, i also couldn't create a any new documents, this was some
  days ago so maybe this is fixed now :-/

So i guess there must be some magic to do with the trunk to get the default
publication working, but i have no clue what it is. Maybe someone else can 
shed some light on this, why is the default publication in the trunk not 
already converted to UUIDs ? Or what is he magic to get it working ?

TIA
Michael



Jürgen Ragaller wrote:
> Am 10.07.2006 um 10:29 schrieb Andreas Hartmann:
> 
>> Jürgen Ragaller wrote:
>>> Hi all!
>>> I'm trying to switch from lenya12x to lenya 14x.
>>> How can I make a copy of the default publication under a different
>>> publication_id (folder name)  and a different Publication Name? Up to
>>> now it was basically trial and error finding occurences of «default»
>>> in the various files and replacing them with my publication id (and
>>> partially also java package names). The result of my attempts is only
>>> partially working. Where do I have to change what to get a new and
>>> fully working Publication?
>>> The «New Publication» mechanism does not seem to help me here because
>>> it delivers a publication based on the default pub.
>>
>> That depends if you want to use publication templating [1] or if you want
>> to create a publication from scratch.
>>
>> Some hints:
>>
>> - If you use publication templating and base your pub on the default pub,
>>   use the "New Publication" function, copy the results to a source
>>   directory of your choice, and start adding and overriding stuff.
> 
> Thank You for the quick answer.
> 
> I'm opting for the first version. If I'm trying this with todays 14x svn
> I get an error after the login in the new publication:
> The requested document '' with document-id '' does not exist.
> 
> If I now click on «create this document» the error message says:
> The parameter [document] must not be null!
> 
> Maybe this has problem has already been posted...
> Do I have to convert the default pub to uuid first?
> 
> Help is appreciated!
> 
>>
>> - If you want to start from scratch, put your custom resource types
>>   and other functionality in modules, and put only presentation logic
>>   and styles in your publication.
>>
>> [1]
>> http://lenya.apache.org/1_4/reference/publication-templating/index.html
>>
>> HTH,
>>
>> -- 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: user-unsubscribe@lenya.apache.org
>> For additional commands, e-mail: user-help@lenya.apache.org
>>
> 
> Jürgen Ragaller, null-oder-eins ltd.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
> For additional commands, e-mail: user-help@lenya.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: 1.4x howto new publication

Posted by Jürgen Ragaller <ra...@null-oder-eins.ch>.
Am 10.07.2006 um 10:29 schrieb Andreas Hartmann:

> Jürgen Ragaller wrote:
>> Hi all!
>> I'm trying to switch from lenya12x to lenya 14x.
>> How can I make a copy of the default publication under a different  
>> publication_id (folder name)  and a different Publication Name? Up  
>> to now it was basically trial and error finding occurences of  
>> «default» in the various files and replacing them with my  
>> publication id (and partially also java package names). The result  
>> of my attempts is only partially working. Where do I have to  
>> change what to get a new and fully working Publication?
>> The «New Publication» mechanism does not seem to help me here  
>> because it delivers a publication based on the default pub.
>
> That depends if you want to use publication templating [1] or if  
> you want
> to create a publication from scratch.
>
> Some hints:
>
> - If you use publication templating and base your pub on the  
> default pub,
>   use the "New Publication" function, copy the results to a source
>   directory of your choice, and start adding and overriding stuff.

Thank You for the quick answer.

I'm opting for the first version. If I'm trying this with todays 14x  
svn I get an error after the login in the new publication:
The requested document '' with document-id '' does not exist.

If I now click on «create this document» the error message says:
The parameter [document] must not be null!

Maybe this has problem has already been posted...
Do I have to convert the default pub to uuid first?

Help is appreciated!

>
> - If you want to start from scratch, put your custom resource types
>   and other functionality in modules, and put only presentation logic
>   and styles in your publication.
>
> [1] http://lenya.apache.org/1_4/reference/publication-templating/ 
> index.html
>
> HTH,
>
> -- 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: user-unsubscribe@lenya.apache.org
> For additional commands, e-mail: user-help@lenya.apache.org
>

Jürgen Ragaller, null-oder-eins ltd.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: 1.4x howto new publication

Posted by Andreas Hartmann <an...@apache.org>.
Jürgen Ragaller wrote:
> Hi all!
> 
> I'm trying to switch from lenya12x to lenya 14x.
> 
> How can I make a copy of the default publication under a different 
> publication_id (folder name)  and a different Publication Name? Up to 
> now it was basically trial and error finding occurences of «default» in 
> the various files and replacing them with my publication id (and 
> partially also java package names). The result of my attempts is only 
> partially working. Where do I have to change what to get a new and fully 
> working Publication?
> 
> The «New Publication» mechanism does not seem to help me here because it 
> delivers a publication based on the default pub.

That depends if you want to use publication templating [1] or if you want
to create a publication from scratch.

Some hints:

- If you use publication templating and base your pub on the default pub,
   use the "New Publication" function, copy the results to a source
   directory of your choice, and start adding and overriding stuff.

- If you want to start from scratch, put your custom resource types
   and other functionality in modules, and put only presentation logic
   and styles in your publication.

[1] http://lenya.apache.org/1_4/reference/publication-templating/index.html

HTH,

-- 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: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org