PDA

View Full Version : 503 error as Windows Service


tristanlee85
02-28-2010, 12:50 AM
I have installed Resin as a Windows Service as instructed:

C:\Resin>httpd.exe -install -conf conf/resin.conf
Installed Resin as an NT service

The service starts fine with no errors, but when I try to access my server, I get a 503 error and sometimes the following:

500 Servlet Exception


[show] javax.servlet.ServletException

javax.servlet.ServletException
at railo.runtime.engine.CFMLEngineImpl.getConfigDirec tory(CFMLEngineImpl.java:197)
at railo.runtime.engine.CFMLEngineImpl.loadJSPFactory (CFMLEngineImpl.java:150)
at railo.runtime.engine.CFMLEngineImpl.addServletConf ig(CFMLEngineImpl.java:123)
at railo.loader.engine.CFMLEngineFactory.getInstance( CFMLEngineFactory.java:73)
at railo.loader.engine.CFMLEngineFactory.getInstance( CFMLEngineFactory.java:111)
at railo.loader.servlet.CFMLServlet.init(CFMLServlet. java:26)
at com.caucho.server.dispatch.ServletConfigImpl.creat eServletImpl(ServletConfigImpl.java:833)
at com.caucho.server.dispatch.ServletConfigImpl.creat eServlet(ServletConfigImpl.java:735)
at com.caucho.server.dispatch.ServletManager.init(Ser vletManager.java:159)
at com.caucho.server.webapp.WebApp.start(WebApp.java: 1874)
at com.caucho.server.deploy.DeployController.startImp l(DeployController.java:667)
at com.caucho.server.deploy.DeployController.restartI mpl(DeployController.java:630)
at com.caucho.server.deploy.StartAutoRedeployAutoStra tegy.request(StartAutoRedeployAutoStrategy.java:12 5)
at com.caucho.server.deploy.DeployController.request( DeployController.java:600)
at com.caucho.server.hmux.HmuxDispatchRequest.sendQue ry(HmuxDispatchRequest.java:267)
at com.caucho.server.hmux.HmuxDispatchRequest.queryAl l(HmuxDispatchRequest.java:215)
at com.caucho.server.hmux.HmuxDispatchRequest.handleR equest(HmuxDispatchRequest.java:151)
at com.caucho.server.hmux.HmuxRequest.scanHeaders(Hmu xRequest.java:666)
at com.caucho.server.hmux.HmuxRequest.handleRequest(H muxRequest.java:363)
at com.caucho.server.port.TcpConnection.run(TcpConnec tion.java:682)
at com.caucho.util.ThreadPool$Item.runTasks(ThreadPoo l.java:743)
at com.caucho.util.ThreadPool$Item.run(ThreadPool.jav a:662)
at java.lang.Thread.run(Thread.java:619)

However, if I stop the service and run httpd.exe as an application (ie double-click), everything starts and my requests go through just fine.

emil
03-03-2010, 07:22 PM
Hi tristanlee85,

Can you try installing the service like this:

C:\Resin>httpd.exe -install -conf conf/resin.conf -root-directory C:\Resin -resin-home C:\Resin

I'm assuming you're installing everything in C:\Resin, adjust as necessary.

Looks like Resin running as a service doesn't quite have its directories sorted out. We've added a new installation procedure (with a GUI) to Resin 4.0.4 and more improvements should be coming with 4.0.5 in a couple of weeks. If you can upgrade, that might help as well.

Thanks,
Emil