Web context not showing up in administrator

23 views
Skip to first unread message

Pete

unread,
Feb 10, 2012, 6:11:56 AM2/10/12
to Railo
I've added the following to my server.xml file in my tomcat/conf
folder,

<Host name="website.com" appBase="webapps">
<Context path="" docBase="/path/to/website.com/httpdocs" /
>
</Host>

And restarted railo, but If I visit an .cfm page in the browser, I get
a 500 error from Tomcat.


javax.servlet.ServletException

railo.runtime.engine.CFMLEngineImpl.getConfigDirectory(CFMLEngineImpl.java:
218)

railo.runtime.engine.CFMLEngineImpl.loadJSPFactory(CFMLEngineImpl.java:
169)

railo.runtime.engine.CFMLEngineImpl.addServletConfig(CFMLEngineImpl.java:
142)

railo.loader.engine.CFMLEngineFactory.getInstance(CFMLEngineFactory.java:
135)
railo.loader.servlet.CFMLServlet.init(CFMLServlet.java:26)

org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:
472)

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
100)

org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
405)
org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:200)
org.apache.coyote.AbstractProtocol
$AbstractConnectionHandler.process(AbstractProtocol.java:515)
org.apache.tomcat.util.net.JIoEndpoint
$SocketProcessor.run(JIoEndpoint.java:302)
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.lang.Thread.run(Unknown Source)

And in the Railo Server administrator my context doesn't show up.
Have I got the definition wrong in server.xml?

Pete

Jordan Michaels

unread,
Feb 10, 2012, 1:34:15 PM2/10/12
to ra...@googlegroups.com
> Have I got the definition wrong in server.xml?

Server.xml looks fine to me. I'm assuming the closing > being on the
next line is just word-wrap when you wrote the email.

How did you install Railo? What user are you running as? Does railo have
the permissions it needs to create the WEB-INF directories?

Warm Regards,
Jordan Michaels

Pete

unread,
Feb 11, 2012, 10:27:26 AM2/11/12
to Railo
Ah I am running it as www-data, the httpdocs folder was owned by root.
I changed the httpdocs folder to www-data:www-data, so it matches
apache and railo.

Rebooted Railo and it's working fine.

I'm not brilliant with permissions and users, is that a sensible
enough way to do it?

Pete

Jordan Michaels

unread,
Feb 13, 2012, 12:56:29 PM2/13/12
to ra...@googlegroups.com
Yep. I don't see a problem at all with that.

Glad it's working for you now. =)

-Jordan

Reply all
Reply to author
Forward
0 new messages