In short.. yes... your files go in the cfusion.war
Generally, you place your files in the directory (.war) you are creating. When you place a
.war in jboss/server/default/ it will be registered as an application and accessible at
the location unless you specify otherwise in the jboss-web.xml file. Every application has
WEB-INF which is a standard java web application deployment descriptor folder where inside
you'll have your web.xml. So your application context (in your case folder) would be
. Now that gets us to the file. Your individual pages exist inside
the .war which is your application on the server. So you would have a setup like:
Any file you want to read should be in the application context. You generally don't
need to and shouldn't point your apache docRoot at this folder. By forwarding to
jboss, jboss-web is more then capable of handling the request. The DocRoot in the case of
any app deployed in Jboss just won't be used - instead the application your working
with will be targeted which is probably the desired behavior.
So in your case here's how your setup should work.
Apache with the proxy_mods installed. The directoryRoot of apache is irrelevant because
you are not using it. Instead you are forwarding these requests onto your application.
Your j2EE Web application is the cfusion.war. This gets targeted and picked up by requests
because in your jboss-web.xml you told it to act on the root with :
At this point your coldfusion server application is live at http://localhost
. Now.. the
actual Website Applications you intend to build will live inside this main cfusion.war
directory... which is providing you coldfusion inside a standard J2EE application server.
Place all your coldfusion files in the cfusion.war directory or subdirectory's.
Hope that helps!
View the original post :
Reply to the post :