Re: Newbie installation difficulties
Steve Crossan <[email protected]> Wed, 9 Apr 2003 15:07:48 +0100 (BST)
| Newsgroups | gmane.comp.cms.wyona.user |
|---|---|
| Message-ID | <Pine.LNX.4.21.0304091503200.28727-100000@wormtail.runtime-collective.com> |
Hi Andreas,
Thanks for your quick reply.
Using xmllint (handy command line xml verification
tool: (http://xmlsoft.org)) I worked out that it was a problem with the
*order* of elements in the web.xml file. there's a servlet, then some
servlet-mappings, then some mime-mappings, then another servlet and
servlet-mapping. All the elements of the same type need to be
together. This throws an error even under tomcat 4.1.21, though it doesn't
seem to stop it loading.
However, rearranging the web.xml file solves this problem :-)
I was using tomcat 4.0.4 as in the documentation ;-) but I've switched now
to 4.1.21 as you suggested.
Now I have the follwoing problem on startup:
-----------------------------
Cocoon 2 - Internal server error
type fatal
message null
description No details available.
sender org.apache.cocoon.servlet.CocoonServlet
source Cocoon servlet
request-uri
/lenya/index.html
cause
org.apache.xml.utils.WrappedRuntimeException: The output format must have
a '{http://xml.apache.org/xslt}content-handler' property!
path-info
index.html
-------------------------
any clues?
thanks
Steve
http://www.runtime-collective.com
t: 01273 234290
f: 01273 234291
m: 0789 984 1684
On Wed, 9 Apr 2003, Andreas Hartmann wrote:
> 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
>
>
> _______________________________________________
> WyonaCMS-users mailing list
> [email protected]
> http://wyona.org/cgi-bin/mailman/listinfo/wyonacms-users
>