<div dir="ltr">Hi!<div><br></div><div>I never got this work</div><div><context-param><br> <param-name>OpenCmsServlet</param-name><br> <param-value>/*</param-value><br> </context-param><br></div><div><br></div><div>Also if you are using <b>tuckey</b> UrlRewriteFilter you need the name of the servlet, so keep it.<br></div><div><br></div><div><div><context-param></div><div> <param-name>OpenCmsServlet</param-name></div><div> <param-value>/opencms/*</param-value></div><div> </context-param></div></div><div><br></div><div>why? I understand in the urlrewrite.xml is expecting the name</div><div><br></div><div><condition type="request-uri" operator="notequal">^/opencms/.*$</condition><br></div><div><br></div><div>The first thing you have to try is to remove the first /opencms/ (the context). Rename the opencms.war to ROOT.war or if you need to be a custom name change it in web.xml</div><div><br></div><div><div><context-param></div><div> <param-name>DefaultWebApplication</param-name></div><div> <param-value>ROOT</param-value> <-- Change ROOT for your custome name</div><div> </context-param> </div></div><div><br></div><div>Delete the filter and start tomcat, if you can see this <a href="http://localhost:8080/opencms/">http://localhost:8080/opencms/</a> instead of this <a href="http://localhost:8080/opencms/opencms/">http://localhost:8080/opencms/opencms/</a> move on to the servlet.<br></div><div><br></div><div>your filter is correct, so keep it.</div><div><filter></div> <filter-name>UrlRewriteFilter</filter-name><div>blah blah...</div><div></filter><br><div><br></div><div>I recommend you to set the filter after CMIS configuration, line 96 of the web.xml</div><div><br></div><div>Hope this can help you</div><div><br></div><div>Regards.</div><div>Fermin.</div><div><br></div><div><br></div><div dir="ltr"><div class="gmail_quote"><div dir="ltr">El mar., 5 de ene. de 2016 a la(s) 08:27, Lorenz Lammersdorf <<a href="mailto:lorenz.lammersdorf@kernbrand.ch" target="_blank">lorenz.lammersdorf@kernbrand.ch</a>> escribió:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">try:<br>
<br>
opencms-importexport.xml<br>
<br>
<rendersettings><br>
<rfs-prefix>${CONTEXT_NAME}/export</rfs-prefix><br>
<vfs-prefix>/</vfs-prefix><br>
<userelativelinks>false</userelativelinks><br>
<exporturl><a href="http://127.0.0.1/handle404" rel="noreferrer" target="_blank">http://127.0.0.1/handle404</a></exporturl><br>
<br>
2016-01-05 13:36 GMT+01:00 <<a href="mailto:Manoj.Sharma@nevagroup.com" target="_blank">Manoj.Sharma@nevagroup.com</a>>:<br>
> Hi<br>
><br>
> I am trying to deploy OpenCms 9 in Tomcat without using apache or any proxy.<br>
> I tried this<br>
> "<a href="http://www.opencms-wiki.org/wiki/Removing_the_/opencms/opencms_prefix_without_using_Apache" rel="noreferrer" target="_blank">http://www.opencms-wiki.org/wiki/Removing_the_/opencms/opencms_prefix_without_using_Apache</a>"<br>
> and done all the things mentioned here but again i am not succeeded. I have<br>
> also tried these urls<br>
> "<a href="http://lists.opencms.org/pipermail/opencms-dev/2011q3/035947.html" rel="noreferrer" target="_blank">http://lists.opencms.org/pipermail/opencms-dev/2011q3/035947.html</a>", "<br>
> <a href="https://blog.codecentric.de/en/2013/08/opencms-8-avoiding-opencmsopencms-in-url-2/" rel="noreferrer" target="_blank">https://blog.codecentric.de/en/2013/08/opencms-8-avoiding-opencmsopencms-in-url-2/</a>",<br>
> "<a href="http://www.ebel-computing.de/JSPWiki/Wiki.jsp?page=OpenCms" rel="noreferrer" target="_blank">http://www.ebel-computing.de/JSPWiki/Wiki.jsp?page=OpenCms</a>", But again not<br>
> succeeded.<br>
><br>
> opencms-importexport.xml<br>
><br>
> <rendersettings><br>
> <rfs-prefix>${CONTEXT_NAME}/export</rfs-prefix><br>
> <vfs-prefix>${CONTEXT_NAME}</vfs-prefix><br>
> <userelativelinks>false</userelativelinks><br>
> <exporturl><a href="http://127.0.0.1:80" target="_blank">http://127.0.0.1:80</a>${CONTEXT_NAME}/handle404</exporturl><br>
> ....<br>
> </rendersettings><br>
><br>
> web.xml<br>
> <context-param><br>
> <param-name>OpenCmsServlet</param-name><br>
> <param-value>/*</param-value><br>
> </context-param><br>
><br>
> <context-param><br>
> <param-name>DefaultWebApplication</param-name><br>
> <param-value>ROOT</param-value><br>
> </context-param><br>
><br>
> ....<br>
><br>
> <filter><br>
> <filter-name>UrlRewriteFilter</filter-name><br>
><br>
> <filter-class>org.tuckey.web.filters.urlrewrite.UrlRewriteFilter</filter-class><br>
><br>
> <init-param><br>
> <param-name>confReloadCheckInterval</param-name><br>
> <param-value>-1</param-value><br>
> </init-param><br>
><br>
> <init-param><br>
> <param-name>logLevel</param-name><br>
> <param-value>ERROR</param-value><br>
> </init-param><br>
><br>
> <init-param><br>
> <param-name>statusEnabled</param-name><br>
> <param-value>false</param-value><br>
> </init-param><br>
><br>
> <init-param><br>
> <param-name>statusPath</param-name><br>
> <param-value>/status</param-value><br>
> </init-param><br>
> </filter><br>
><br>
> <filter-mapping><br>
> <filter-name>UrlRewriteFilter</filter-name><br>
> <url-pattern>/*</url-pattern><br>
> </filter-mapping><br>
><br>
><br>
> And whatever the configuration in the opencms, i have not changed. I have<br>
> also created urlrewrite.xml<br>
><br>
><br>
> <?xml version="1.0" encoding="utf-8"?><br>
> <!DOCTYPE urlrewrite PUBLIC "-//<a href="http://tuckey.org//DTD" rel="noreferrer" target="_blank">tuckey.org//DTD</a> UrlRewrite 2.6//EN"<br>
> "<a href="http://tuckey.org/res/dtds/urlrewrite2.6.dtd" rel="noreferrer" target="_blank">http://tuckey.org/res/dtds/urlrewrite2.6.dtd</a>"><br>
> <urlrewrite><br>
> <rule><br>
> <condition type="request-uri"<br>
> operator="notequal">^/export/.*$</condition><br>
> <condition type="request-uri"<br>
> operator="notequal">^/resources/.*$</condition><br>
> <condition type="request-uri"<br>
> operator="notequal">^/opencms-errorhandler/.*$</condition><br>
> <condition type="request-uri"<br>
> operator="notequal">^/webdav/.*$</condition><br>
> <condition type="request-uri"<br>
> operator="notequal">^/opencms/.*$</condition><br>
> <condition type="request-uri" operator="notequal">^/setup/.*$</condition><br>
> <--- This rule is probably not necessary<br>
> <from>^/(.*)$</from><br>
> <to>/opencms/$1</to><br>
> </rule><br>
> </urlrewrite><br>
><br>
><br>
><br>
> Please help in this regard.<br>
><br>
> With Regards<br>
> Manoj Kumar Sharma<br>
> _______________________________________________<br>
> This mail is sent to you from the opencms-dev mailing list<br>
> To change your list options, or to unsubscribe from the list, please visit<br>
> <a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev" rel="noreferrer" target="_blank">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a><br>
><br>
><br>
><br>
><br>
<br>
<br>
<br>
--<br>
Kernbrand baut aus und bekommt mehr Platz: Ab 1.2.2016 sind wir an der<br>
Teufenerstrasse 11, St.Gallen<br>
--<br>
Aktuell im Blog Mensch Marke: Besser bloggen statt werben<br>
Unseren Newsletter abonnieren<br>
--<br>
Lorenz Lammersdorf<br>
Senior Web Developer<br>
<br>
Kernbrand AG<br>
Technology<br>
Rorschacher Strasse 17<br>
9000 St.Gallen<br>
+41 71 492 20 22<br>
<br>
<br>
--<br>
<br>
Verbinden Sie sich jetzt mit uns! Wir freuen uns auf Sie.<br>
_______________________________________________<br>
This mail is sent to you from the opencms-dev mailing list<br>
To change your list options, or to unsubscribe from the list, please visit<br>
<a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev" rel="noreferrer" target="_blank">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a><br>
<br>
<br>
<br>
</blockquote></div></div></div></div>