relocating WEB-INF for web context

669 views
Skip to first unread message

Ronnie Otts

unread,
Jun 16, 2015, 4:34:23 PM6/16/15
to lu...@googlegroups.com
relocating WEB-INF for web context

I used to do this to move the WEB-INF to a custom location, doesn't seem to be working in my lucee tomcat install (used jars)

<servlet>
        <servlet-name>GlobalCFMLServlet</servlet-name>
        <description>CFML runtime Engine</description>
        <servlet-class>railo.loader.servlet.CFMLServlet</servlet-class>
        <init-param>
                <param-name>railo-web-directory</param-name>
                <param-value>/opt/farm/dev/conf/{web-context-hash}/WEB-INF/railo/</param-value>
                <description>Railo Web Directory directory</description>
        </init-param>
        <init-param>
                <param-name>railo-server-directory</param-name>
                <param-value>/opt/railo/dev/server/</param-value>
                <description>directory where railo root directory is stored</description>
        </init-param>
        <load-on-startup>1</load-on-startup>
</servlet>


my WEB-INF is ending up in webroot (not where i want it)


Igal @ Lucee.org

unread,
Jun 16, 2015, 4:39:24 PM6/16/15
to lu...@googlegroups.com
to move WEB-INF or to move the lucee server and web configuration directories?

also, your servlet class points to the railo package instead of the lucee package.

Igal Sapir
Lucee Core Developer
Lucee.org

--
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/d94fc125-7aeb-42c8-b324-a4fe8b497453%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ronnie Otts

unread,
Jun 16, 2015, 4:43:56 PM6/16/15
to lu...@googlegroups.com
I want to move the WEB-INF for web context configuration

so this line is how i did it with railo
<param-value>/opt/farm/dev/conf/{web-context-hash}/WEB-INF/railo/</param-value>

changed it to 
<param-value>/opt/farm/dev/conf/{web-context-hash}/WEB-INF/lucee/</param-value>
and the WEB-INF for the web contexts are still being created in the webroot of the site

This is a fresh install of lucee jar files in a new tomcat8.0.23 container

Igal @ Lucee.org

unread,
Jun 16, 2015, 4:48:54 PM6/16/15
to lu...@googlegroups.com
{webroot}/WEB-INF is created by Tomcat even before Lucee is loaded.

I assume that you want to move the folder {webroot}/WEB-INF/lucee

all of the values you cited state railo rather than lucee.  if this is from a fresh install then there might be a problem with the installer. see the values marked in red (they should all say lucee, and I'd start with fixing that, restarting Tomcat, and see if that resolved your issue):


        <servlet-class>railo.loader.servlet.CFMLServlet</servlet-class>
        <init-param>
                <param-name>railo-web-directory</param-name>
                <param-value>/opt/farm/dev/conf/{web-context-hash}/WEB-INF/railo/</param-value>
                <description>Railo Web Directory directory</description>
        </init-param>
        <init-param>
                <param-name>railo-server-directory</param-name>
                <param-value>/opt/railo/dev/server/</param-value>
                <description>directory where railo root directory is stored</description>
        </init-param>


Igal Sapir
Lucee Core Developer
Lucee.org

Ronnie Otts

unread,
Jun 17, 2015, 9:59:02 AM6/17/15
to lu...@googlegroups.com
I was just trying to show what I had working with railo

This is what my web.xml looks like with lucee

<servlet>
    <servlet-name>CFMLServlet</servlet-name>
    <description>CFML runtime Engine</description>
    <servlet-class>lucee.loader.servlet.CFMLServlet</servlet-class>
    <init-param>
       <param-name>lucee-server-directory</param-name>
       <param-value>/opt/lucee/lucee</param-value>
       <description>Lucee Server configuration directory (for Server-wide configurations, settings, and libraries)</description>
    </init-param>
    <init-param>
        <param-name>lucee-web-directory</param-name>
        <param-value>/opt/lucee/webcontexts/dev1/WEB-INF/lucee/</param-value>
        <description>Lucee Web Directory (for Website-specific configurations, settings, and libraries)</description>
    </init-param>
    <load-on-startup>1</load-on-startup>
</servlet>

"I assume that you want to move the folder {webroot}/WEB-INF/lucee"

Yes exactly!


I fugured it out.


"/opt/lucee/webcontexts" existed on the server and was writeable by my tomcat user.

but not "/opt/lucee/webcontexts/dev1"

I created the "dev1" directory and restarted tomcat, i could see in the catalina.out that it was now being used.

This is not the behavior I am used to.
In the past, I would see an error in catalina.out when the directory did not exist.


Thanks
-Ronnie
Reply all
Reply to author
Forward
0 new messages