On Sun, Aug 1, 2010 at 8:48 PM, Alan Holden <[email protected]> wrote:

>
>    - place web sites (more than one) under /usr/local/tomcat/openbd/site1
>    and /usr/local/tomcat/openbd/site2
>
>
A-ha. Now we're getting somewhere, and my apologies if I missed this
earlier. This is a big difference with how I set things up, and definitely a
difference with what I was outlining in my blog post. I typically have an
instance of OpenBD for each app as opposed to having multiple apps under the
same context which, short answer, won't work like you want it to.

I get the impression what you're after is a single instance of OpenBD to
serve all your CFML files. If you want multiple sites all sharing the same
OpenBD instance you should be using Jordan's installer, or using the
Ready2Run version of OpenBD, or using OpenBDJam, or putting the OpenBD JARs
into Tomcat as common classes:
http://wiki.openbluedragon.org/wiki/index.php/Single_Instance_Install

Any one of those methods will get you a single instance of OpenBD serving up
all your CFML files without you having to resort to sticking multiple sites
under a single webapp in Tomcat. Note that the "Single Instance Install"
wiki article is more for reference or if you really want to get your hands
dirty; otherwise, one of the other options I mentioned will be much simpler.

Can you get how you're doing things to work? Eh, maybe ... but I think if
what you want is a single instance install I'd go about it another way.


> Do you think that perhaps the Tomcat Host node needs more attributes than
> your example, like perhaps "appBase"?
>

Well, that's where your configuration will get weird based on the way you
have things set up. If you try pointing appBase to each individual "app" you
have under the openbd context, things will likely break because each site
under the openbd context will no longer have a WEB-INF directory, and
therefore it's not a valid Java webapp.


> Can you - or someone - post a working Host node or two?
>

The way I outline things in my blog post assumes that your application's
code is in the root of the openbd context. In that scenario it will work
correctly. Actually in your scenario it's technically working correctly, it
just isn't doing what you want because of the way you have things set up.

If what you're after is a single instance of OpenBD serving all your CFML
files, I'd recommend using one of the other approaches I mentioned above.
Otherwise, if I'm missing something about what you're trying to accomplish
let me know and I'll do my best to get things figured out.

-- 
Matthew Woodward
[email protected]
http://blog.mattwoodward.com
identi.ca / Twitter: @mpwoodward

Please do not send me proprietary file formats such as Word, PowerPoint,
etc. as attachments.
http://www.gnu.org/philosophy/no-word-attachments.html

-- 
Open BlueDragon Public Mailing List
 http://www.openbluedragon.org/   http://twitter.com/OpenBlueDragon
 official manual: http://www.openbluedragon.org/manual/
 Ready2Run CFML http://www.openbluedragon.org/openbdjam/

 mailing list - http://groups.google.com/group/openbd?hl=en

Reply via email to