Railo + Tomcat + Apache: "Allocate exception for servlet CFMLServlet"

531 views
Skip to first unread message

pete.l...@googlemail.com

unread,
Nov 2, 2009, 6:12:40 AM11/2/09
to Railo
Hi all,

I'm tearing my hair out trying to figure out this error, so if anyone
can help I'd be very greatful...

SEVERE: Allocate exception for servlet CFMLServlet
javax.servlet.ServletException
at railo.runtime.config.ConfigWebImpl.<init>
(ConfigWebImpl.java:52)
at railo.runtime.config.ConfigWebFactory.newInstance
(ConfigWebFactory.java:201)
at railo.runtime.engine.CFMLEngineImpl.loadJSPFactory
(CFMLEngineImpl.java:153)
at railo.runtime.engine.CFMLEngineImpl.addServletConfig
(CFMLEngineImpl.java:122)
at railo.loader.engine.CFMLEngineFactory.getInstance
(CFMLEngineFactory.java:72)
at railo.loader.engine.CFMLEngineFactory.getInstance
(CFMLEngineFactory.java:110)
at railo.loader.servlet.CFMLServlet.init(CFMLServlet.java:26)
at org.apache.catalina.core.StandardWrapper.loadServlet
(StandardWrapper.java:1172)
at org.apache.catalina.core.StandardWrapper.allocate
(StandardWrapper.java:808)
at org.apache.catalina.core.StandardWrapperValve.invoke
(StandardWrapperValve.java:129)
at org.apache.catalina.core.StandardContextValve.invoke
(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke
(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service
(CoyoteAdapter.java:286)
at org.apache.jk.server.JkCoyoteHandler.invoke
(JkCoyoteHandler.java:190)
at org.apache.jk.common.HandlerRequest.invoke
(HandlerRequest.java:291)
at org.apache.jk.common.ChannelSocket.invoke
(ChannelSocket.java:769)
at org.apache.jk.common.ChannelSocket.processConnection
(ChannelSocket.java:698)
at org.apache.jk.common.ChannelSocket$SocketConnection.runIt
(ChannelSocket.java:891)
at org.apache.tomcat.util.threads.ThreadPool
$ControlRunnable.run(ThreadPool.java:690)
at java.lang.Thread.run(Thread.java:636)

I've been following this guide:
http://jamesconstable.co.uk/web-development/installing-railo-3-on-tomcat-6-via-apache-2-on-ubuntu-804/
, with the exception that I installed Tomcat via apt, rather than from
source.

I've added the following to server.xml:

<Host name="mydomain.com" appBase="/var/www/mydomain.com/">
<Context path="" docBase=""/>
</Host>

(my web files are directly under /var/www/mydomain.com/), and have
added a servlet entry to web.xml.

I appreciate it's hard to diagnose a problem without knowing all the
details, but if anyone can point me in the right direction that would
be great. At the moment I'm not even sure what the error means
(something about the Railo configuration?) to attempt to solve it.

Thanks,
Pete

Dave

unread,
Nov 2, 2009, 6:20:45 AM11/2/09
to ra...@googlegroups.com
<Host name="mydomain.com" appBase="webapps">
    <Context path="" docBase="/var/www/mydomain.com/"/>
</Host>

pete.l...@googlemail.com

unread,
Nov 2, 2009, 8:13:21 AM11/2/09
to Railo
On Nov 2, 11:20 am, Dave <cfl...@jamwerx.com> wrote:
> <Host name="mydomain.com" appBase="webapps">
>      <Context path="" docBase="/var/www/mydomain.com/"/>
> </Host>
>
> p...@linuxbox.co.uk wrote:
> > <Host name="mydomain.com" appBase="/var/www/mydomain.com/">
> >      <Context path="" docBase=""/>
> > </Host>

Thanks for the quick reply. I've tried various combinations of values
for appBase and docBase (including the above), but still the same
error each time.

Jordan Michaels

unread,
Nov 2, 2009, 2:35:40 PM11/2/09
to ra...@googlegroups.com
Did you restart Tomcat after you made the update? Dave's example should
work and it's probably best not to divert from that unless you know you
need to.

Warm regards,
Jordan Michaels
Vivio Technologies
http://www.viviotech.net/
Open BlueDragon Steering Committee
Adobe Solution Provider

Jordan Michaels

unread,
Nov 2, 2009, 2:42:08 PM11/2/09
to ra...@googlegroups.com
I wonder if this is a permissions issue. The guide you linked to will
run Tomcat as root, which will for sure have the rights needed to get
done what it needs to get done.

If the version of Tomcat that you installed from apt-get is running as
another user, then that Tomcat user account may not have enough rights
to say... create the WEB-INF folder.

Just a thought.

Warm regards,
Jordan Michaels
Vivio Technologies
http://www.viviotech.net/
Open BlueDragon Steering Committee
Adobe Solution Provider


pe...@linuxbox.co.uk wrote:

Ryan Letulle

unread,
Nov 2, 2009, 2:49:31 PM11/2/09
to ra...@googlegroups.com
I had trouble configuring Tomcat manually via apt then I started using Jordan's handy dandy installer in a box.

http://railo.viviotech.net/

--
Ryan LeTulle

pete.l...@googlemail.com

unread,
Nov 2, 2009, 5:07:02 PM11/2/09
to Railo
Thanks for all your help, it's fixed now.

I'm not sure it was permissions - the Ubuntu (sorry, should have said
I was installing on Ubuntu) init script was taking care of setting
ownerships and permissions before it launched Tomcat. I did try
modifying the init script to launch Tomcat as root, but this didn't
have any effect.

I had deviated from the how-to tutorial that I quoted in two ways:
installing Tomcat via apt, and using openjdk-6 packages rather than
sun-java6. I'm not sure which of these was to blame, but when I
installed from source and installed sun-java6, it all started working
nicely ... thanks again!
Reply all
Reply to author
Forward
0 new messages