farcrycore / farcry-box

DEPRECATED: A starter Vagrant setup for a FarCry website
MIT License
3 stars 1 forks source link

Need Railo mapping to core #3

Open seancoyne opened 10 years ago

seancoyne commented 10 years ago

I have started the machine for the first time and accessing the web site fails.

/code/core exists and has the core files. It appears that the vagrant user has full rights to this directory

I installed as follows:

git clone git@github.com:farcrycore/vagrant-railo-farcry.git
cd vagrant-railo-farcry
vagrant plugin install vagrant-hostmanager
git submodule init && git submodule update
vagrant up

After provisioning completed, I opened http://chelsea.farcrycore.org/ in my browser and received the following:

invalid component definition, can't find component [farcry.core.proxyApplication]

invalid component definition, can't find component [farcry.core.proxyApplication]
    at railo.runtime.component.ComponentLoader.load(ComponentLoader.java:296):296
    at railo.runtime.component.ComponentLoader.loadComponent(ComponentLoader.java:41):41
    at railo.runtime.ComponentImpl.init(ComponentImpl.java:370):370
    at application_cfc$cf.initComponent(/Application.cfc):-1
    at application_cfc$cf.newInstance(/Application.cfc:1):1
    at railo.runtime.component.ComponentLoader.initComponent(ComponentLoader.java:558):558
    at railo.runtime.component.ComponentLoader.loadComponent(ComponentLoader.java:439):439
    at railo.runtime.component.ComponentLoader.loadComponent(ComponentLoader.java:370):370
    at railo.runtime.listener.ModernAppListener._onRequest(ModernAppListener.java:93):93
    at railo.runtime.listener.MixedAppListener.onRequest(MixedAppListener.java:18):18
    at railo.runtime.PageContextImpl.execute(PageContextImpl.java:2218):2218
    at railo.runtime.PageContextImpl.execute(PageContextImpl.java:2185):2185
    at railo.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:332):332
    at railo.loader.servlet.CFMLServlet.service(CFMLServlet.java:29):29
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727):727
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303):303
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208):208
    at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52):52
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241):241
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208):208
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220):220
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122):122
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501):501
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171):171
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102):102
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116):116
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408):408
    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040):1040
    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607):607
    at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314):314
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145):1145
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615):615
    at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61):61
    at java.lang.Thread.run(Thread.java:745):745

I am also unable to access /webtop (same error)

Adding a mapping of /farcry to the railo admin pointing to /code/ seems to have fixed it.

seancoyne commented 10 years ago

Also need a /webtop mapping

seancoyne commented 10 years ago

From provisioning logs msg: Destination directory /code/projects/chelsea/www/WEB-INF/railo does not exist

Looks like you should check to make sure the WEB-INF dir exists in the project's www dir and create it (and the railo subdir) if necessary.

seancoyne commented 10 years ago

Ahh I see, you are pinging the URL to let railo create the WEB-INF dir. I see from my logs that was successful. Odd that the WEB-INF/railo dir didn't exist then.

TASK: [ping website to initialize /WEB-INF] *********************************** 
changed: [127.0.0.1] => {"changed": true, "cmd": "wget --delete-after http://chelsea.farcrycore.org/index.cfm || true ", "delta": "0:00:10.944566", "end": "2014-07-18 01:39:01.683027", "rc": 0, "start": "2014-07-18 01:38:50.738461", "stderr": "--2014-07-18 01:38:50--  http://chelsea.farcrycore.org/index.cfm\nResolving chelsea.farcrycore.org (chelsea.farcrycore.org)... 127.0.1.1, 192.168.3.55\nConnecting to chelsea.farcrycore.org (chelsea.farcrycore.org)|127.0.1.1|:80... connected.\nHTTP request sent, awaiting response... 302 Found\nLocation: http://chelsea.farcrycore.org/ [following]\n--2014-07-18 01:39:01--  http://chelsea.farcrycore.org/\nReusing existing connection to chelsea.farcrycore.org:80.\nHTTP request sent, awaiting response... 200 OK\nLength: 177 [text/html]\nSaving to: `index.cfm'\n\n     0K                                                       100% 6.71M=0s\n\n2014-07-18 01:39:01 (6.71 MB/s) - `index.cfm' saved [177/177]\n\nRemoving index.cfm.", "stdout": ""}
modius commented 10 years ago

It might be a timing thing. May need to make the sleep a bit longer so that Railo has a chance to do its stuff before the provisioner moves along.

seancoyne commented 10 years ago

I had tried sleep. Didn't help. It does eventually get created. And the commit I did to create it manually does work. It's not overwritten.