You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by daniel Griffith <me...@yahoo.com> on 2004/09/16 21:41:22 UTC

Re: First steps with Lenya - some success

Hi

I've spent the last few days struggling to do an
install of Lenya. I now have a working version, below
is how I got there - hope it is usful to someone.

Boring read, but might be useful in the mail archive:)

A big shout to Andreas Hartmann and Jean Pierre LeJacq
for all the help.

Started of by trying to get Lenya running on a box
with x86 Gentoo:

JDK: sun-jkd 1.4.2-05
ant: 1.6.2-r3
tomcat: 5.0.27-r4

The 1.2 binary, src, amd 1.2.x from svn all failed to
work under Tomcat5.The initial error was due to needed
directories not being created during the build of
Lenya.

>>>>>>>>
An Error Occurred
Unable to write log file
Unable to write log file
cause: Unable to write log file
<<<<<<<<
and:
>>>>>>>>
Caused by: java.io.FileNotFoundException:
/opt/tomcat5/webapps/lenya/lenya/pubs/default/logs/tasks/2004-09-15-21-17-51-132.xml
(No such file or directory)
	at java.io.FileOutputStream.open(Native Method)
	at
java.io.FileOutputStream.<init>(FileOutputStream.java:179)
	at
java.io.FileOutputStream.<init>(FileOutputStream.java:70)
	at
org.apache.tools.ant.XmlLogger.buildFinished(XmlLogger.java:216)
<<<<<<<<



It was then suggested that I use Jetty instead of
Tomcat. Unfortunately I continued with 1.2.x, and had
yet more problems in trying to run it under Jetty.
>>>
org.apache.cocoon.sitemap.PatternException: Cannot get
variable '{page-envelope:area' in expression
'{document-url:{page-envelope:area}:{request-param:properties.create.parent-id}/{request-param:properties.create.child-id}:{request-param:properties.create.language}}'

cause:
org.apache.avalon.framework.configuration.ConfigurationException:
Invalid number of parameters: 2. Expected 3 (area,
document-id, language)
<<<

It was suggested that this was due to a too recent
version of Xalan installed on the machine (Gentoo
seems to install xalan 2.6.0 and xerces 2.6.2-r1 when
installing tomcat5) In the installation instructions
on the Lenya website it says:

"Endorsed Libraries (recommended: Xalan 2.5.0 Xerces
2.5.0)"

That should be changed:)

Umerging them and adding the endorsed libraries in
cocoon to the JDK got the 1.2 binary and src packages
working /cheer! But 1.2.x is still not running /boo!

:)

So to get Lenya running on x86 Gentoo (amd64 Gentoo
cannot install JDK1.4.2):

1)Emerge the default JDK,ant.
2)Grab -
http://cvs.apache.org/dist/incubator/lenya/incubating-lenya-1.2-src.tar.gz
3)Download and install cocoon as in the installation
instructions
4)Copy the libraries from the cocoon endorsed folder
to $JDK/jre/lib/endorsed/
5)Build and install Lenya as in the installation
instructions
6)Set off Jetty using ./lenya.sh servlet

sorted
daniel


	
	
		
___________________________________________________________ALL-NEW Yahoo! Messenger - all new features - even more fun!  http://uk.messenger.yahoo.com

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


Re: First steps with Lenya - some success

Posted by Andreas Hartmann <an...@apache.org>.
daniel Griffith wrote:
>>>I've spent the last few days struggling to do an
>>>install of Lenya. I now have a working version,
>>
>>below
>>
>>>is how I got there - hope it is usful to someone.
>>
>>could you wikify this?
> 
> 
> Done.

Thanks!

> Hope it makes up in part for me spamming the
> list the last few days:)

You shouldn't feel bad, this is exactly the purpose
of this mailing list :)

-- Andreas


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


Re: Adding multiple languages

Posted by Andreas Hartmann <an...@apache.org>.
daniel Griffith wrote:

[...]

> This has me confused. To start with, $NEW_PUB_HOME is
> defined on the page as being the location you use to
> copy the default page to make your new publication -
> surely changes here would only be seen by rebuilding
> lenya?

Yes.

> Making changes here (adding <language>fr</language> to
> publication.xconf) as expected has no effect after
> just restarting the container.
> 
> Making the change to publication.xconf in the Lenya
> build folder, and restarting Jetty seems to work, I
> can make new documents and add fr pages to to them -
> BUT if I try to add a fr language version to Home I
> get:
> 
> No pipeline matched request:
> uri-parameter/itp/doctype/authoring/index_fr.html
> 
> And from that point I cannot access home, even in
> English I get the same error.

If this happens for the homepage only, it is probably
a bug. Would you mind adding it to bugzilla?

> Making the the change to the publication.xconf in
> $NEW_PUB_HOME as suggested and rebuilding Lenya
> doesn't work

Strange ... This is the recommended way to do it.

> - but then it would make no sense if I
> had to go that way as it means I couldn't add a new
> language to an existing website.

Why? When you make changes to your publication, you
have to deploy it anyway, don't you?

> So what is the correct method to add a new langage to
> Lenya?

- add the language entry to $PUB_HOME/config/publication.xconf
- deploy the publication
   (ant webapp for Jetty / ant install for Tomcat)

-- Andreas


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


Adding multiple languages

Posted by daniel Griffith <me...@yahoo.com>.
Hi all.

The reason I want to use Lenya is I have a project
coming up that will need to be done in multiple
languages, and so today I have been looking at
multilanguage support.

On the Wiki, on page NewPublicationHowTo it says:
>>>
edit the $NEW_PUB_HOME/config/publication.xconf file
removing the element <language>de</language> (be sure
you have removed all german page before) and
eventually add you language. Pay attention, you can
add your language even if there's not an available
translation for Lenya CMS interface (i.e. you can add
"ru" for russian even if available Lenya is translated
only in english or german). The servlet container has
to be restarted to apply the changes to the language
configuration. 
<<<

This has me confused. To start with, $NEW_PUB_HOME is
defined on the page as being the location you use to
copy the default page to make your new publication -
surely changes here would only be seen by rebuilding
lenya?

Making changes here (adding <language>fr</language> to
publication.xconf) as expected has no effect after
just restarting the container.

Making the change to publication.xconf in the Lenya
build folder, and restarting Jetty seems to work, I
can make new documents and add fr pages to to them -
BUT if I try to add a fr language version to Home I
get:

No pipeline matched request:
uri-parameter/itp/doctype/authoring/index_fr.html

And from that point I cannot access home, even in
English I get the same error.

Making the the change to the publication.xconf in
$NEW_PUB_HOME as suggested and rebuilding Lenya
doesn't work - but then it would make no sense if I
had to go that way as it means I couldn't add a new
language to an existing website.

So what is the correct method to add a new langage to
Lenya?

TIA 
daniel


	
	
		
___________________________________________________________ALL-NEW Yahoo! Messenger - all new features - even more fun!  http://uk.messenger.yahoo.com

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


Re: First steps with Lenya - some success

Posted by daniel Griffith <me...@yahoo.com>.
I've just added it to my Gentoo wiki page, but it
should be also in the mailing list archive - if you
want to use 1.2.x you MUST use cocoon 2.1.5 or higher!

That was my problem...

daniel



	
	
		
___________________________________________________________ALL-NEW Yahoo! Messenger - all new features - even more fun!  http://uk.messenger.yahoo.com

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


Re: First steps with Lenya - some success

Posted by daniel Griffith <me...@yahoo.com>.
> > I've spent the last few days struggling to do an
> > install of Lenya. I now have a working version,
> below
> > is how I got there - hope it is usful to someone.
> 
> could you wikify this?

Done. Hope it makes up in part for me spamming the
list the last few days:)

Any mistakes are due to unfamiliarity with the wiki
system - honest....


	
	
		
___________________________________________________________ALL-NEW Yahoo! Messenger - all new features - even more fun!  http://uk.messenger.yahoo.com

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


Re: First steps with Lenya - some success

Posted by "Gregor J. Rothfuss" <gr...@apache.org>.
daniel Griffith wrote:

> I've spent the last few days struggling to do an
> install of Lenya. I now have a working version, below
> is how I got there - hope it is usful to someone.

could you wikify this?

-- 
Gregor J. Rothfuss
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://wyona.com                   http://cocoon.apache.org/lenya
gregor.rothfuss@wyona.com                       gregor@apache.org

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