Tim,

I thought you were supposed to take out the "-//Apache ...." part when using
a SYSTEM local url AND that using dot-dot-slash "../" notation in a TLD was
a bad idea.  Have you already tried it with those two changes at the same
time?

Regards,
-David

-----Original Message-----
From: Tim [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 19, 2005 6:53 PM
To: Struts Tiles
Subject: Referencing the Local DTD rather than the http:// one


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.jav
a: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.ja
va: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(ServletRequestDispa
tcher.java:604)

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

        at com.evermind[Oracle Application Server Containers for J2EE 10g
(9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandle
r.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(ReleasableRe
sourcePooledExecutor.java:192)

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


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to