commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rick Mann <rm...@latencyzero.com>
Subject Parse exceptions on DOCTYPE after upgrading digester jar file
Date Thu, 09 Jun 2005 17:23:22 GMT
I upgraded the digester in our project to the latest version (1.6,  
beanutils 1.7, and now when resin loads and attempts to parse our  
tiles definitions file, it gets the following error (unknown  
declaration `DOCTYPE'). The release notes don't say anything, and a  
quick Google search didn't turn up anything particularly useful. Any  
ideas? The file starts with:

<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE tiles-definitions PUBLIC
        "-//Apache Software Foundation//DTD Tiles Configuration//EN"
        "http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd">
<tiles-definitions>


Our struts-config file seems to have no complaints:

<?xml version="1.0" encoding="ISO-8859-1" ?>

<!DOCTYPE struts-config PUBLIC
           "-//Apache Software Foundation//DTD Struts Configuration  
1.1//EN"
           "http://jakarta.apache.org/struts/dtds/struts- 
config_1_1.dtd">

TIA!

> 10:11:45.481 ERROR [          ] [resin-1487          ]  
> digester.Digester (Digester.java:1483) Parse Fatal Error at line 1  
> column 0: unknown declaration `DOCTYPE'
> org.xml.sax.SAXParseException: unknown declaration `DOCTYPE'
>         at com.caucho.xml.XmlParser.error(XmlParser.java:2814)
>         at com.caucho.xml.XmlParser.parseDoctypeDecl(XmlParser.java: 
> 558)
>         at com.caucho.xml.XmlParser.parseDoctype(XmlParser.java:496)
>         at com.caucho.xml.XmlParser.parseNode(XmlParser.java:386)
>         at com.caucho.xml.XmlParser.parseInt(XmlParser.java:240)
>         at com.caucho.xml.AbstractParser.parse(AbstractParser.java: 
> 633)
>         at org.apache.commons.digester.Digester.parse(Digester.java: 
> 1591)
>         at org.apache.struts.tiles.xmlDefinition.XmlParser.parse 
> (XmlParser.java:279)
>         at  
> org.apache.struts.tiles.xmlDefinition.I18nFactorySet.parseXmlFile 
> (I18nFactorySet.java:526)
>         at  
> org.apache.struts.tiles.xmlDefinition.I18nFactorySet.parseXmlFiles 
> (I18nFactorySet.java:467)
>         at  
> org.apache.struts.tiles.xmlDefinition.I18nFactorySet.createDefaultFact 
> ory(I18nFactorySet.java:271)
>         at  
> org.apache.struts.tiles.xmlDefinition.I18nFactorySet.initFactory 
> (I18nFactorySet.java:246)
>         at  
> org.apache.struts.tiles.xmlDefinition.I18nFactorySet.initFactory 
> (I18nFactorySet.java:196)
>         at  
> org.apache.struts.tiles.definition.ComponentDefinitionsFactoryWrapper. 
> init(ComponentDefinitionsFactoryWrapper.java:104)
>         at  
> org.apache.struts.tiles.TilesUtilImpl.createDefinitionsFactory 
> (TilesUtilImpl.java:138)
>         at  
> org.apache.struts.tiles.TilesUtil.createDefinitionsFactory 
> (TilesUtil.java:167)
>         at  
> org.apache.struts.tiles.TilesPlugin.initDefinitionsFactory 
> (TilesPlugin.java:224)
>         at org.apache.struts.tiles.TilesPlugin.init 
> (TilesPlugin.java:139)
>         at org.apache.struts.action.ActionServlet.initModulePlugIns 
> (ActionServlet.java:839)
>         at org.apache.struts.action.ActionServlet.init 
> (ActionServlet.java:332)
>         at javax.servlet.GenericServlet.init(GenericServlet.java:69)
>         at  
> com.caucho.server.dispatch.ServletConfigImpl.createServlet 
> (ServletConfigImpl.java:599)
>         at com.caucho.server.dispatch.ServletManager.init 
> (ServletManager.java:152)
>         at com.caucho.server.webapp.Application.start 
> (Application.java:1697)
>         at com.caucho.server.deploy.Entry.startImpl(Entry.java:498)
>         at com.caucho.server.deploy.Entry.redeployIfModifiedImpl 
> (Entry.java:452)
>         at com.caucho.server.deploy.Entry.handleAlarm(Entry.java:564)
>         at com.caucho.util.Alarm.handleAlarm(Alarm.java:310)
>         at com.caucho.util.Alarm.run(Alarm.java:280)
>         at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:467)
>         at com.caucho.util.ThreadPool.run(ThreadPool.java:408)
>         at java.lang.Thread.run(Thread.java:552)
>


-- 
Rick


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


Mime
View raw message