struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim" <timo-struts-ti...@telus.net>
Subject Referencing the Local DTD rather than the http:// one
Date Wed, 19 Jan 2005 23:52:54 GMT
Hi all,
This might look trivial, but took enough time and effort searching for the answer

I am using struts tiles, and build the entire application without problems and works great.
until I changed the reference to the dtd file in the tiles-definition.xml file from the original:

<!DOCTYPE tiles-definitions  
   PUBLIC "-//Apache Software Foundation//DTD Tiles Configurations 1.1//EN"
  "http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd">


to 
<!DOCTYPE tiles-definitions SYSTEM "-//Apache Software Foundation//DTD Tiles Configurations
1.1//EN"
  "../dtds/tiles-config_1_1.dtd">

where my WEB-INF directory contains
WEB-INF/tiles/tiles-definition.xml
WEB-INF/dtds/tiles-config_1_1.dtd

All I need is to reference to the local dtd rather than the internet one.

When I run the application I get the exception (as you can tell. I am using Oracle JDeveloper
10g)
:
javax.servlet.jsp.JspException: Can't get definitions factory from context.

	at org.apache.struts.taglib.tiles.InsertTag.processDefinitionName(InsertTag.java:583)

	at org.apache.struts.taglib.tiles.InsertTag.createTagHandler(InsertTag.java:487)

	at org.apache.struts.taglib.tiles.InsertTag.doStartTag(InsertTag.java:451)

	at _res._resWelcome._jspService(resWelcome.jsp:8)

	[/res/resWelcome.jsp]

	at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:139)

	at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:349)

	at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)

	at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)

	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

	at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)

	at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)

	at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:604)

	at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)

	at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)

	at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)

	at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)

	at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)

	at java.lang.Thread.run(Thread.java:534)

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message