Re: Newbie installation difficulties

Andreas Hartmann <[email protected]> Wed, 09 Apr 2003 15:30:37 +0200
Newsgroups gmane.comp.cms.wyona.user
Message-ID <[email protected]>
Hi Steve,

Steve Crossan wrote:
> Hello all
> 
> I've tried a number of ways to install lenya, and all have failed so far:
> 
> 1) Basic installation of the .war file. 
> 
> Put the war file in webapps and start up the server. Loading web.xml
> causes an error. I look into it and web.xml doesn't have a DTD at the top,

This should not cause an error. Mine doesn't have the doctype reference.
But we should fix this - thanks for the hint!

> org.xml.sax.SAXParseException: The content of element type "web-app" must
> match
> "(icon?,display-name?,description?,distributable?,context-param*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*)".
> 
> Could be a Sax library dependency thing? I'm just using what comes with
> Jakarta4.0.4 as standard. Any pointers appreciated. I've looked through
> web.xml and I can't spot any obvious problems by eye.

Which Tomcat version are you using?
We recommend 4.1.21 or 4.1.24.

> 2) CVS build
> 
> Checked out latest CVS ok, edited build.properties as described.
> 
> Funnily enough, with JAVA_HOME set to jdk1.3.1_04 the build doesn't work
> at all:

I'm sorry, but 1.3.1 is not supported.

> I switch to JDK1.4.1 and ant does at least use the build.xml but this
> happens:
> 
> --------
> 
> BUILD FAILED
> 
> /local/scratch/steve/servers/cms/src/lenya/build.xml:271: Could not create
> task of type: xslt. Common solutions are to use taskdef to declare your
> task, or, if this is an optional task, to put the optional.jar in the lib
> directory of your ant installation (ANT_HOME).
> --------
> 
> Now ant 1.4.1 does contain the optional jar:

You need at least Ant 1.5.1. It contains the XSLT task.

BTW, soon there will be a detailed installation instruction online
(probably within the next hours).

HTH,
Andreas