Io Error While Parsing File Web Inf Tiles Defs
fix is available Fixes integrated in WebSphere Portal 8.5.0.0 Combined Cumulative Fixes Subscribe org.apache.tiles.definition.definitionsfactoryexception: i/o error reading definitions You can track all active APARs for this component. APAR org apache tiles definition definitionsfactoryexception xml error reading definitions status Closed as program error. Error description When the portal crawler starts running the following caused by org apache tiles definition definitionsfactoryexception i o error reading definitions exception appears in SysOut.log: [3/27/15 5:01:16:963 CET] 0000030f BaseLog E com.ibm.wps.portlets.struts.logging.BaseLog error Unable to initialize Struts ActionServlet due to an unexpected exception or error thrown, so marking the servlet as unavailable. Most likely, this is due to an incorrect or missing library dependency. javax.servlet.ServletException: org.apache.struts.tiles.DefinitionsFactoryException: IO Error while parsing file '/WEB-INF/tiles/tiles-base-defs.xml'. A remote host did not respond within the timeout period. Local fix 1) Navigate to the following directory ./PortalServer/people.impl/people.impl/groupsviewer/portlet/lw p_groupsViewer_war.ear/lwp.groupsViewer.war/WEB-INF/tiles/ 2) In the tiles-base-defs.xml locate the following line: change it to: 3) Restart the system Problem summary Struts tiles-base-def.xml has an incorrect dtd reference. Problem conclusion Updated the tiles-def-base.xml to the correct dtd Temporary fix Comments APAR Information APAR numberPI39024 Reported component nameWEBSPHERE PORTA Reported component ID5724E7600 Reported release850 StatusCLOSED PER PENoPE HIPERNoHIPER Special AttentionNoSpecatt Submitted date2015-04-14 Closed date2015-05-21 Last modified date2015-05-21 APAR is sysrouted FROM one or more of the following: APAR is sysrouted TO one or more of the following: Fix information Fixed component nameWEBSPHERE PORTA Fixed component ID5724E7600 Applicable component levels R850 PSYUP Document information More support for: WebSphere Portal Software version: 8.5 Reference #: PI39024 Modified date: 2015-05-21 Site availability Site assistance Contact and feedback Need support? Submit feedback to IBM Support 1-800-IBM-7378 (USA) Directory of worldwide contacts Contact Privacy Terms of use Accessibility
closer inspection it was validating the tiles xml config against a DTD, but instead of using the local copy bundled with Struts it was going out to the internet. It is also http://www.ibm.com/support/docview.wss?uid=swg1PI39024 required that for production deployments, all network activity should be restricted. DTD validation should be done locally. javax.servlet.UnavailableException: IO Error while parsing file '/WEB-INF/tiles-defs.xml'. Connection reset at org.apache.struts.action.ActionServlet.init(ActionServlet.java:368) at javax.servlet.GenericServlet.init(GenericServlet.java:212) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3996) at http://magicmonster.com/kb/prg/java/jsp/struts/dtd_validation_download.html org.apache.catalina.core.StandardContext.start(StandardContext.java:4266) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760) To fix this, the public identifier in the DTD header should match exactly what is inside your struts.jar. In this case we incorrectly had: This had to be changed to: Note that the "1.1" was missing. To find the correct public identifier, find the corresponding DTD in the struts.jar and ensure it matches. In struts-1.2.9.jar, look inside org/apache/struts/resources/tiles-config_1_1.dtd Published: Sunday, 1 April 2012Follow us onterms of use | (E): info@magicmonster.com(ABN): 46 101 705 159 | © 2014 MagicMonster Pty Ltd
Brought to you https://sourceforge.net/p/xplanner-plus/discussion/990227/thread/6ccaaef4/ by: maximch, sezam20 Summary Files Reviews Support Wiki Mailing Lists Tickets ▾ Bugs Support Requests Feature Requests Discussion https://coderanch.com/t/50897/framework/Problems-Tiles-Def Code Create Topic Stats Graph Forums Developers 14 Help 43 Open Discussion 13 Help Formatting Help Issues error reading starting the app, offending file OK Forum: Help Creator: Nobody/Anonymous Created: 2009-09-30 Updated: 2013-05-28 Nobody/Anonymous - 2009-09-30 INFO - technoetic.xplanner.SystemInfo - *********************** XPLANNER INFO ************************ Build: Version: 1.0a5 Build Date: 27/09/2009 error reading definitions Build Revision: 56 Build Package: War Database: Dialect: com.technoetic.xplanner.db.hibernate.XPlannerMySQLDialect Driver: com.mysql.jdbc.Driver Driver Version: mysql-connector-java-5.1.6 ( Revision: ${svn.Revision} ) Database Vendor: MySQL Database Version: 5.0.45-community-nt Database Name: xplanner Database Url: jdbc:mysql://localhost/xplanner Database User Name: xplanner Database User Password: ****** Database Patch Level: 14 App Server: Application Server: Apache Tomcat/6.0.20 Servlet Version: 2.5 System: System Date: Sep 30, 2009 System Time: 4:12:18 PM Current directory: C:\Program Files\Apache Software Foundation\Tomcat 6.0 Java Version: 1.6.0_15 Java Vendor: Sun Microsystems Inc. JVM Version: 1.0 JVM Vendor:
Certification Databases Caching Books Engineering Languages Frameworks Products This Site Careers Other all forums Forum: Struts Problems with Tiles Def Abhijeet Gholkar Greenhorn Posts: 25 posted 11 years ago Hi, Has anyone encountered any such error while using the Tiles plugin with struts :- javax.servlet.ServletException: IO Error while parsing file '/WEB-INF/tiles-def.xml'. jakarta.apache.org at org.apache.struts.tiles.TilesPlugin.initDefinitionsFactory(TilesPlugin.java:235) 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:212) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:888) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:776) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3363) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3586) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:774) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:760) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:548) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:260) at org.apache.catalina.core.StandardHost.install(StandardHost.java:741) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:512) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:354) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:671) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1149) at org.apache.catalina.core.StandardHost.start(StandardHost.java:707) at org.apache.catali