Hi,<br><br>I've a problem when i try to create a new xml content type, named : "MyNews". My XSD schema contains the following line :<br><xsd:include schemaLocation="opencms://opencms-xmlcontent.xsd" /><br>
<br>But when i try to make a new Structured Content using "MyNews" the following exception come after giving a name for the page :<br><pre>org.opencms.xml.CmsXmlException: Invalid OpenCms content definition XML schema structure:<br>
<b style="color: rgb(255, 0, 0);">Exactly 1 root element is required, not "opencms://opencms-xmlcontent.xsd".</b><br> at org.opencms.xml.CmsXmlContentDefinition.unmarshalInternal(CmsXmlContentDefinition.java:653)<br>
at org.opencms.xml.CmsXmlContentDefinition.unmarshal(CmsXmlContentDefinition.java:252)<br> at org.opencms.file.types.CmsResourceTypeXmlContent.createResource(CmsResourceTypeXmlContent.java:138)<br> at org.opencms.file.CmsObject.createResource(CmsObject.java:733)<br>
at org.opencms.workplace.explorer.CmsNewResourceXmlContent.actionCreateResource(CmsNewResourceXmlContent.java:180)<br> at org.apache.jsp.WEB_002dINF.jsp.offline.system.workplace.commons.newresource_005fxmlcontent_jsp._jspService(newresource_005fxmlcontent_jsp.java:66)<br>
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)<br> at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)<br> at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)<br>
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)<br> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)<br> at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)<br>
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)<br> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)<br> at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:679)<br>
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:461)<br> at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:399)<br> at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)<br>
at org.opencms.loader.CmsJspLoader.load(CmsJspLoader.java:1147)<br> at org.opencms.loader.CmsResourceManager.loadResource(CmsResourceManager.java:964)<br> at org.opencms.main.OpenCmsCore.showResource(OpenCmsCore.java:1494)<br>
at org.opencms.main.OpenCmsServlet.doGet(OpenCmsServlet.java:152)<br> at org.opencms.main.OpenCmsServlet.doPost(OpenCmsServlet.java:164)<br> at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)<br> at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)<br>
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)<br> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)<br> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)<br>
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)<br> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)<br> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)<br>
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)<br> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)<br> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)<br>
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)<br> at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)<br> at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)<br>
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)<br> at java.lang.Thread.run(Unknown Source)<br></pre>I've already create an other xml content named DemoType as in the tutorial, and for this one I've just changed name and structure content... I've checked the opencms.log but evrything seemes to be correct during the module load...<br>
<br>Anyone has a solution to this problem? or an idea ?<br><br clear="all"><br>-- <br>TERRITORIO Jordan-Victor<br>Ingénieur d'Intégration Java<br>TEAMLOG – Ingenieurs 2000<br><br>+33 6 30 66 54 69<br><a href="mailto:jot@teamlog.com">jot@teamlog.com</a>