Relocating WEB-INF for web context

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)

GlobalCFMLServlet CFML runtime Engine railo.loader.servlet.CFMLServlet railo-web-directory

/opt/farm/dev/conf/{web-context-hash}/WEB-INF/railo/
Railo Web Directory directory


railo-server-directory
/opt/railo/dev/server/
directory where railo root directory is
stored

1

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

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 http://lucee.org/On 6/16/2015 1:34 PM, Ronnie Otts wrote:

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)

|

|
GlobalCFMLServlet
CFML runtime Engine
railo.loader.servlet.CFMLServlet

railo-web-directory

/opt/farm/dev/conf/{web-context-hash}/WEB-INF/railo/
Railo Web Directory directory


railo-server-directory
/opt/railo/dev/server/
directory where railo root directory is
stored

1

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


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+unsubscribe@googlegroups.com
mailto:lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com
mailto:lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/d94fc125-7aeb-42c8-b324-a4fe8b497453%40googlegroups.com
https://groups.google.com/d/msgid/lucee/d94fc125-7aeb-42c8-b324-a4fe8b497453%40googlegroups.com?utm_medium=email&utm_source=footer.
For more options, visit https://groups.google.com/d/optout.

{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>

/opt/farm/dev/conf/{web-context-hash}/WEB-INF/railo/
Railo Web Directory directory


railo-server-directory
/opt/railo/dev/server/
directory where railo root directory is
stored

Igal Sapir
Lucee Core Developer
Lucee.org http://lucee.org/On 6/16/2015 1:43 PM, Ronnie Otts wrote:

I want to move the WEB-INF for web context configuration

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

changed it to
|
/opt/farm/dev/conf/{web-context-hash}/WEB-INF/lucee/
|
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

On Tuesday, June 16, 2015 at 3:39:24 PM UTC-5, Igal wrote:

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 <http://lucee.org/>

On 6/16/2015 1:34 PM, Ronnie Otts wrote:
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)


-- 
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 <javascript:>.
To post to this group, send email to lu...@googlegroups.com
<javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/d94fc125-7aeb-42c8-b324-a4fe8b497453%40googlegroups.com
<https://groups.google.com/d/msgid/lucee/d94fc125-7aeb-42c8-b324-a4fe8b497453%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout
<https://groups.google.com/d/optout>.


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+unsubscribe@googlegroups.com
mailto:lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com
mailto:lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/d278f9fe-6d4c-4825-95d3-cc9f817895ed%40googlegroups.com
https://groups.google.com/d/msgid/lucee/d278f9fe-6d4c-4825-95d3-cc9f817895ed%40googlegroups.com?utm_medium=email&utm_source=footer.
For more options, visit https://groups.google.com/d/optout.

I was just trying to show what I had working with railo

This is what my web.xml looks like with lucee

CFMLServlet CFML runtime Engine lucee.loader.servlet.CFMLServlet lucee-server-directory /opt/lucee/lucee Lucee Server configuration directory (for Server-wide configurations, settings, and libraries) lucee-web-directory

/opt/lucee/webcontexts/dev1/WEB-INF/lucee/
Lucee Web Directory (for Website-specific
configurations, settings, and libraries)

1

“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
-RonnieOn Tuesday, June 16, 2015 at 3:34:23 PM UTC-5, Ronnie Otts wrote:

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)

GlobalCFMLServlet CFML runtime Engine railo.loader.servlet.CFMLServlet railo-web-directory

/opt/farm/dev/conf/{web-context-hash}/WEB-INF/railo/
Railo Web Directory directory


railo-server-directory
/opt/railo/dev/server/
directory where railo root directory is
stored

1

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