[opencms-dev] Problems with including OAMP webform via cms.include
Thomas
thomas at wranglers.com.au
Thu Mar 6 02:24:41 CET 2008
Hi List,
I have created a OAMP webform. When I am calling directl this webform
everythings works fine. But when I want to include this webform into
an another page via:
CmsJspActionElement cms = new CmsJspActionElement(pageContext,
request, response);
cms.include("contactform.html");
I am getting the following Exception.
How can I include a webform in an another page?
Thanks for your help,
Regards
Thomas
java.lang.NullPointerException
at org.opencms.xml.CmsXmlUtils.createXpath(CmsXmlUtils.java:145)
at org.opencms.xml.A_CmsXmlDocument.getLocales(A_CmsXmlDocument.java:
363)
at
org
.opencms
.loader
.A_CmsXmlDocumentLoader.dumpAsString(A_CmsXmlDocumentLoader.java:125)
at
org
.opencms
.loader.A_CmsXmlDocumentLoader.service(A_CmsXmlDocumentLoader.java:245)
at
org
.opencms
.flex
.CmsFlexRequestDispatcher
.includeInternalWithCache(CmsFlexRequestDispatcher.java:422)
at
org
.opencms
.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:
173)
at
org
.opencms
.jsp.CmsJspTagInclude.includeActionWithCache(CmsJspTagInclude.java:360)
at
org
.opencms.jsp.CmsJspTagInclude.includeTagAction(CmsJspTagInclude.java:
241)
at org.opencms.jsp.CmsJspTagInclude.doEndTag(CmsJspTagInclude.java:468)
at
org
.apache
.jsp
.WEB_002dINF
.jsp
.offline
.aunz
.test
.includer_005ftest_jsp
._jspx_meth_cms_005finclude_005f0(includer_005ftest_jsp.java:117)
at
org
.apache
.jsp
.WEB_002dINF
.jsp
.offline
.aunz
.test.includer_005ftest_jsp._jspService(includer_005ftest_jsp.java:78)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org
.apache
.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org
.apache
.catalina
.core
.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
269)
at
org
.apache
.catalina
.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at
org
.apache
.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:
691)
at
org
.apache
.catalina
.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:594)
at
org
.apache
.catalina
.core.ApplicationDispatcher.include(ApplicationDispatcher.java:505)
at
org
.opencms
.flex
.CmsFlexRequestDispatcher
.includeExternal(CmsFlexRequestDispatcher.java:193)
at
org
.opencms
.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:
169)
at org.opencms.loader.CmsJspLoader.service(CmsJspLoader.java:999)
at
org
.opencms
.flex
.CmsFlexRequestDispatcher
.includeInternalWithCache(CmsFlexRequestDispatcher.java:422)
at
org
.opencms
.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:
173)
at org.opencms.loader.CmsJspLoader.dispatchJsp(CmsJspLoader.java:233)
at org.opencms.loader.CmsJspLoader.load(CmsJspLoader.java:575)
at
org
.opencms
.loader.CmsResourceManager.loadResource(CmsResourceManager.java:948)
at org.opencms.main.OpenCmsCore.showResource(OpenCmsCore.java:1492)
at org.opencms.main.OpenCmsServlet.doGet(OpenCmsServlet.java:171)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org
.apache
.catalina
.core
.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
269)
at
org
.apache
.catalina
.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at
org
.apache
.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:
213)
at
org
.apache
.catalina.core.StandardContextValve.invoke(StandardContextValve.java:
174)
at
org
.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
127)
at
org
.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
117)
at
org
.apache
.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
151)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
874)
at org.apache.coyote.http11.Http11BaseProtocol
$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at
org
.apache
.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at
org
.apache
.tomcat
.util
.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:
81)
at org.apache.tomcat.util.threads.ThreadPool
$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Thread.java:595)
Thomas Kiesl
digital Wranglers
70 Mary Street | Surry Hills 2010
E thomas at wranglers.com.au | T +61 2 9770 9997 | F +61 2 9770 9996 | M
0447 730 944 | W wranglers.com.au
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20080306/bab69314/attachment.htm>
More information about the opencms-dev
mailing list