[ColdBox 3.6.0] Setting mxunit test on railo with apache virtual host

I have trouble setting my test on a railo server with apache in front of it.

I have the following configuration:

Tomcat:

<Host name=“www.tropical.seo” appBase=“webapps”

unpackWARs=“true” autoDeploy=“true”
xmlValidation=“false” xmlNamespaceAware=“false”>

www.tropical.seo

Apache:

<VirtualHost *:80>
DocumentRoot “E:\wamp\www\TropicalSeo”
ServerName www.tropical.seo
ServerAlias www.tropical.seo
ProxyRequests Off
ProxyPass /app !

<Proxy *>
Order deny,allow
Allow from all

ProxyPass / http://www.tropical.seo:8888/
ProxyPassReverse / http://www.tropical.seo:8888/

RewriteEngine On

If it’s a CFML (*.cfc or *.cfm) request, just proxy it to Tomcat:

RewriteRule ^(.+.cf[cm])(/.*)?$ ajp://%{HTTP_HOST}:8009$1$2 [P]

When I try to set up mxunit remotefacade:

http://www.tropical.seo:8888/test/resources/RemoteFacade.cfc?wsdl

I got this error:

Railo 4.0.4.001 Error (missinginclude)MessagePage /resources/RemoteFacade.cfc [E:\railo\tomcat\webapps\test\resources\RemoteFacade.cfc] not foundJava StacktracePage /resources/RemoteFacade.cfc [E:\railo\tomcat\webapps\test\resources\RemoteFacade.cfc] not found
at railo.runtime.PageSourceImpl.loadPage(PageSourceImpl.java:887):887
at railo.runtime.PageContextImpl.doInclude(PageContextImpl.java:798):798
at railo.runtime.PageContextImpl.doInclude(PageContextImpl.java:754):754
at railo.runtime.listener.ClassicAppListener._onRequest(ClassicAppListener.java:36):36
at railo.runtime.listener.MixedAppListener.onRequest(MixedAppListener.java:19):19
at railo.runtime.PageContextImpl.execute(PageContextImpl.java:2255):2255
at railo.runtime.PageContextImpl.execute(PageContextImpl.java:2222):2222
at railo.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:315):315
at railo.loader.servlet.CFMLServlet.service(CFMLServlet.java:29):29
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728):728
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305):305
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210):210
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222):222
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123):123
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472):472
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171):171
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99):99
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118):118
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407):407
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004):1004
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589):589
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310):310
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source):-1
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source):-1
at java.lang.Thread.run(Unknown Source):-1

Does the file “E:\wamp\www\TropicalSeo\test\resources\RemoteFacade.cfc” exist?

What do you get if you just put the URL http://www.tropical.seo:8888/test/resources/RemoteFacade.cfc?wsdl in your browser?

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

the file E:\wamp\www\TropicalSeo\test\resources\RemoteFacade.cfc exists:

If I type in the browser http://www.tropical.seo:8888/test/resources/RemoteFacade.cfc?wsdl I get the error I show you before…

I canot say why the “/test” folder are not routed by coldbox…

I’m not sure then. I’m also not familiar with the Apache config you’re using. What servlet container is Railo running on?
My config looks like this:

<Proxy >
Allow from 127.0.0.1

ProxyPreserveHost On
ProxyPassMatch ^/(.+.cf[cm])(/.
)?$ ajp://localhost:8009/$1$2

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

Why would it be routed by ColdBox? It’s a real folder right? I don’t think you’re rewrite rule would touch that URL since it has .cfc at the end of it.

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

If you notice, when I try to reach the url in the browser, http://www.tropical.seo:8888/test/resources/RemoteFacade.cfc?wsdl, I get error that Page /resources/RemoteFacade.cfc [E:\railo\tomcat\webapps\test\resources\RemoteFacade.cfc] not found not test/resources/RemoteFacade.cfc…

I’m on railo on Tomcat.

The strange thing is that I cannot understand why It search on E:\railo\tomcat…etc… and not on E:\wamp\www\TropicalSeo\test\resources\Remotefacade.cfc

I should set up something on virtualhost of apache?

SOLVED!

I have a test folder on railo approot. I have renamed to testRailo and now the test folder on my project on virtual host work.