struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter.Kel...@meteoswiss.ch
Subject RE: Tiles DTD 1.1RC1
Date Wed, 04 Jun 2003 07:12:14 GMT
Finally, I found the bug on my own.

Adding following line in web.xml, made disappearing the exceptions:

<servlet>
    <servlet-name>action</servlet-name>
    <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
    ...
     <!-- Added as a trick for a bug in Struts -->
    <init-param>
      <param-name>application</param-name>
      <param-value>com.mycom.myapp.application</param-value>
    </init-param>
    ...
</servlet>

where param-value is the logical path to your application.properties file (coresponding to
your CLASSPATH).

Actually, I found this trick in the web.xml of the tiles-documentation application by Cedric
shipped with my struts distribution. This should be mentioned more conspicuous elsewhere.
Or even better, FIX THIS BUG, please!!!

By the way, I have no idea, why the tiles-config.xml can not be loaded if the application.properties
can not be found...? 

Peter


-----Original Message-----
From: Keller Peter U IT EW 
Sent: Dienstag, 3. Juni 2003 14:42
To: struts-user@jakarta.apache.org
Subject: Tiles DTD 1.1RC1


I updated my app from 1.1b2 to 1.1rc1 (nightly build from May 25). However, I was not able
to reload it due to parsing problems of the Tiles' DTD file (see below).

=> In 1.1b2 everything was find, in 1.1b3 or and any 1.1rc1 the uploading is not possible?
=> I deleted all old *.jsp
=> what did change? 
=> what is wrong?
=> it's not the first time I ask this question to this list, however, no answer yet...

Thanks for helping.

Peter

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

>From my Log file
----------------

DEBUG org.apache.commons.beanutils.ConvertUtils -   Using converter org.apache.commons.beanutils.converters.IntegerConverter@159d10
DEBUG org.apache.commons.digester.Digester - register('-//Apache Software Foundation//DTD
Tiles Configuration//EN', 'jar:file:/home/zue/users/kep/tools1/jakarta-tomcat-4.1.24/webapps/obs/WEB-INF/lib/struts.jar!/org/apache/struts/resources/tiles-config_1_1.dtd'
DEBUG org.apache.commons.digester.Digester - register('-//Apache Software Foundation//DTD
Tiles Configuration 1.1//EN', 'jar:file:/home/zue/users/kep/tools1/jakarta-tomcat-4.1.24/webapps/obs/WEB-INF/lib/struts.jar!/org/apache/struts/resources/tiles-config_1_1.dtd'
DEBUG org.apache.commons.digester.Digester.sax - setDocumentLocator(org.apache.xerces.parsers.AbstractSAXParser$LocatorProxy@fab5b1)
DEBUG org.apache.commons.digester.Digester.sax - startDocument()
DEBUG org.apache.commons.digester.Digester.sax - resolveEntity('-//Apache Software Foundation//DTD
Tiles Configuration 1.1//EN', 'http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd')
DEBUG org.apache.commons.digester.Digester -  Resolving to alternate DTD 'jar:file:/home/zue/users/kep/tools1/jakarta-tomcat-4.1.24/webapps/obs/WEB-INF/lib/struts.jar!/org/apache/struts/resources/tiles-config_1_1.dtd'
ERROR org.apache.struts.tiles.TilesPlugin - Can't create Tiles definition factory for module
''.


>From my Browser after unsuccessfully uploading
----------------------------------------------

javax.servlet.ServletException: IO Error while parsing file '/WEB-INF/tiles-defs.xml'. JAR
entry org/apache/struts/resources/tiles-config_1_1.dtd not found in /home/zue/users/kep/tools1/jakarta-tomcat-4.1.24/webapps/obs/WEB-INF/lib/struts.jar
	at org.apache.struts.tiles.TilesPlugin.init(TilesPlugin.java:235)
	at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:1156)
	at org.apache.struts.action.ActionServlet.init(ActionServlet.java:472)
	at javax.servlet.GenericServlet.init(GenericServlet.java:256)
      ...

javax.servlet.ServletException: IO Error while parsing file '/WEB-INF/tiles-defs.xml'. JAR
entry org/apache/struts/resources/tiles-config_1_1.dtd not found in /home/zue/users/kep/tools1/jakarta-tomcat-4.1.24/webapps/obs/WEB-INF/lib/struts.jar
	at org.apache.struts.tiles.TilesPlugin.init(TilesPlugin.java:235)
	at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:1156)
	at org.apache.struts.action.ActionServlet.init(ActionServlet.java:472)
	at javax.servlet.GenericServlet.init(GenericServlet.java:256)
      ...

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


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


Mime
View raw message