tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <craig...@apache.org>
Subject Re: Tomcat4-RC1: parse exception on taglibs
Date Thu, 13 Sep 2001 15:51:31 GMT
Please do report to the bug tracking system:

  http://nagoya.apache.org/bugzilla/

Craig


On Thu, 13 Sep 2001, Rickard Öberg wrote:

> Date: Thu, 13 Sep 2001 17:18:36 +0200
> From: Rickard Öberg <rickard@xpedio.com>
> Reply-To: tomcat-dev@jakarta.apache.org
> To: tomcat-dev@jakarta.apache.org
> Subject: Re: Tomcat4-RC1: parse exception on taglibs
>
> Rickard Öberg wrote:
> > Rickard Öberg wrote:
> > > I've finally managed to get Catalina working with JBoss (I had not set
> > > "catalina.base", but no error was produced, just nothing happened).
> > >
> > > Anyway, the first thing I try is to deploy an app with a taglib JAR,
> > > with the TLD inside. But it seems like there's something wrong with the
> > > TLD parsing because I get this:
> > > org.xml.sax.SAXParseException: The markup in the document preceding the
> > > root element must
> > > be well-formed.
> > >
> > > And this happens no matter what I do with the actual TLD.
> > >
> > > Removing the taglib makes the WAR deploy properly, so it's definitely
> > > that which blows up.
> >
> > This apparently only happens when the WAR is deployed through the
> > EmbeddedManager MBean. When deploying the same WAR, with the taglib, as
> > a webapp by placing it in /webapps and running startup.bat, there is no
> > error.
>
> Even more info. Setting debug level to high, and looking in the logs I
> found this:
> 2001-09-13 17:12:35 ContextConfig[/webwork]:   URI='webwork',
> ResourcePath='/WEB-INF/lib/webwork.jar'
> 2001-09-13 17:12:35 ContextConfig[/webwork]:
> tldConfigJar(/WEB-INF/lib/webwork.jar): java.lang.IllegalStateException:
> zip file closed
> 2001-09-13 17:12:35 ContextConfig[/webwork]:
> tldConfigTld(/WEB-INF/lib/webwork.jar): org.xml.sax.SAXParseException:
> The markup in the document preceding the root element must be
> well-formed.
>
> This does not happen if the webapp is deployed in /webapps and I run
> Tomcat4 through startup.bat, only when I do it using the EmbeddedManager
> MBean.
>
> Any ideas? Should I just send this to the bug tracker and await any
> response?
>
> /Rickard
>
> --
> Rickard Öberg
> Software Development Specialist
> xlurc - Xpedio Linköping Ubiquitous Research Center
> Author of "Mastering RMI"
> Email: rickard@xpedio.com
>


Mime
View raw message