Newbie installation difficulties

Steve Crossan <[email protected]> Wed, 9 Apr 2003 14:14:22 +0100 (BST)
Newsgroups gmane.comp.cms.wyona.user
Message-ID <Pine.LNX.4.21.0304091357280.28727-100000@wormtail.runtime-collective.com>
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,
so I put that in (this is the one from cocoon):

<!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
    "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">

Starting up tomcat now gives this error:

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.

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:

bash-2.05$ ant
Buildfile: build.xml
bash-2.05$ 

(i.e. Nothing happens)

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:

jakarta-ant-1.4.1-optional.jar

Do you know how to fix this one?

I'm more concerned with getting lenya up and running than solving the
build problem - so the first problem is the one I really want to solve,
but thought you'd be interested in the second as well.

thanks

Steve




http://www.runtime-collective.com
t: 01273 234290
f: 01273 234291
m: 0789 984 1684