tiles-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chinto <kishore.chint...@gmail.com>
Subject org.apache.tiles.definition.DefinitionsFactoryException: I/O error accessing source.
Date Thu, 11 Jun 2009 06:57:13 GMT

Hi Guys

I'm having a strange issue. I'm using a Tomcat instance embedded in eclipse
to test a web project using tiles. Every thing was working fine, till one
normal restart in the afternoon killed the app. Now every time I start the
server it fails over trying to find tiles-def.xml. The exception is given
below.

Several hours of google and cleaning tomcat work and docbase directory
didn't yield anything except the following link which is similar to mine,
yet different. 

http://www.nabble.com/DefinitionsFactoryException%3A-I-O-error-accessing-source.-tt21512246.html#a21512246
http://www.nabble.com/DefinitionsFactoryException%3A-I-O-error-accessing-source.-tt21512246.html#a21512246
. 

In my case my setup was working fine and this is exactly the same setup I
use to test my other projects in the workspace and they are all still
working fine. My question is, is there anywhere else eclipse caches these
settings other than work directory and docBase. I have done maven clean
build , system restarts, eclipse.exe -clean. without much success. Any
pointers will be appreciated. I will post the solution if I manage to solve
it in the meantime.

My web.xml snippet

    <servlet>
        <servlet-name>tiles</servlet-name>
       
<servlet-class>org.apache.tiles.web.startup.TilesServlet</servlet-class>
        <init-param>
           
<param-name>org.apache.tiles.impl.BasicTilesContainer.DEFINITIONS_CONFIG</param-name>
            <param-value>/WEB-INF/tiles-defs.xml</param-value>
        </init-param>
        <load-on-startup>2</load-on-startup>
    </servlet>


My server.xml
		<Context docBase="C:\Chinto\workspace\XXXX\war\target\XXXX" path="pacific"
reloadable="true" workDir="work">
			<Logger className="org.apache.catalina.logger.SystemOutLogger"
timestamp="true" verbosity="4"/>
		</Context>

My Stack trace.

java.lang.IllegalStateException: Unable to instantiate container.
	at
org.apache.tiles.web.startup.TilesListener.contextInitialized(TilesListener.java:60)
	at org.apache.tiles.web.startup.TilesServlet.init(TilesServlet.java:53)
	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:3956)
	at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4230)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
	at org.apache.catalina.core.StandardService.start(StandardService.java:448)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Caused by: org.apache.tiles.definition.DefinitionsFactoryException: I/O
error accessing source.
	at
org.apache.tiles.definition.UrlDefinitionsFactory.readDefinitions(UrlDefinitionsFactory.java:291)
	at
org.apache.tiles.definition.UrlDefinitionsFactory.init(UrlDefinitionsFactory.java:130)
	at
org.apache.tiles.impl.BasicTilesContainer.initializeDefinitionsFactory(BasicTilesContainer.java:406)
	at
org.apache.tiles.impl.BasicTilesContainer.init(BasicTilesContainer.java:130)
	at
org.apache.tiles.factory.TilesContainerFactory.initializeContainer(TilesContainerFactory.java:232)
	at
org.apache.tiles.factory.TilesContainerFactory.createTilesContainer(TilesContainerFactory.java:198)
	at
org.apache.tiles.factory.TilesContainerFactory.createContainer(TilesContainerFactory.java:163)
	at
org.apache.tiles.web.startup.TilesListener.createContainer(TilesListener.java:90)
	at
org.apache.tiles.web.startup.TilesListener.contextInitialized(TilesListener.java:57)
	... 19 more
Caused by: java.io.FileNotFoundException
	at
org.apache.naming.resources.DirContextURLConnection.getInputStream(DirContextURLConnection.java:298)
	at
org.apache.tiles.definition.UrlDefinitionsFactory.readDefinitions(UrlDefinitionsFactory.java:286)
	... 27 more
16:27:23,406 ERROR
org.apache.catalina.core.ContainerBase.[Catalina].[127.0.0.1].[pacific]:3958
- Servlet pacific threw load() exception
java.io.FileNotFoundException
	at
org.apache.naming.resources.DirContextURLConnection.getInputStream(DirContextURLConnection.java:298)
	at
org.apache.tiles.definition.UrlDefinitionsFactory.readDefinitions(UrlDefinitionsFactory.java:286)
	at
org.apache.tiles.definition.UrlDefinitionsFactory.init(UrlDefinitionsFactory.java:130)
	at
org.apache.tiles.impl.BasicTilesContainer.initializeDefinitionsFactory(BasicTilesContainer.java:406)
	at
org.apache.tiles.impl.BasicTilesContainer.init(BasicTilesContainer.java:130)
	at
org.apache.tiles.factory.TilesContainerFactory.initializeContainer(TilesContainerFactory.java:232)
	at
org.apache.tiles.factory.TilesContainerFactory.createTilesContainer(TilesContainerFactory.java:198)
	at
org.apache.tiles.factory.TilesContainerFactory.createContainer(TilesContainerFactory.java:163)
	at
org.apache.tiles.web.startup.TilesListener.createContainer(TilesListener.java:90)
	at
org.apache.tiles.web.startup.TilesListener.contextInitialized(TilesListener.java:57)
	at org.apache.tiles.web.startup.TilesServlet.init(TilesServlet.java:53)
	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:3956)
	at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4230)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
	at org.apache.catalina.core.StandardService.start(StandardService.java:448)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)


Cheers
Chinto
-- 
View this message in context: http://www.nabble.com/org.apache.tiles.definition.DefinitionsFactoryException%3A-I-O-error-accessing-source.-tp23976273p23976273.html
Sent from the tiles users mailing list archive at Nabble.com.


Mime
View raw message