tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dylanmac <>
Subject Re: Multiple development sites using different ports
Date Thu, 26 Jun 2008 23:56:27 GMT

Thanks for your response.  Unfortunately I am pretty green about all this and
it doesn't make a lot of sense to me.  

When you say "better off using paths that are relative to the context root"
do you mean I shouldn't be using root-relative?   What tools are available
that will help me do this in the JSP (I am not using a templating system;
these are just prototype sites I am building - not complicated).

I read the advanced configuration section of running.txt and the connector
part seemss straightofward but then it seems to require startup variables at
the command line.  I have Tomcat running as a service so setting it to run
with a different $CATALINA_BASE is not obvious.


Christopher Schultz-2 wrote:
> Hash: SHA1
> dylanmac,
> dylanmac wrote:
> | The reason this matters to me is because I like running my sites as
> | root-relative.  That way I can reference images, files, etc as, for
> example,
> | /images/logo.png rather than having to traverse the directory
> structure via
> | "../".  This makes the site much more portable and accurately reflects
> how
> | the site will run in production anyway (where most sites run as root).
> You would be better off using paths that are relative to the context
> root. There are many tools that will do this form you in JSPs or
> whatever template language you may be using to generate content.
> | So can anyone give me a quick primer on how to configure Tomcat to use
> | multiple ports for root-relative development?  I have spent several
> hours
> | researching this with no luck.
> Check out the RUNNING.txt file that ships with Tomcat. Read the
> "Advanced Configuration - Multiple Tomcat Instances" section; it should
> help a lot.
> The only thing you have to remember to do is to set the ports for each
> instance's <Connector> elements and make sure you don't get confused.
> I have this exact same setup in dev, test, demo, and prod (with the
> addition of Apache httpd and mod_jk, too), so I should be able to answer
> any questions you have.
> - -chris
> Version: GnuPG v1.4.9 (MingW32)
> Comment: Using GnuPG with Mozilla -
> iEYEARECAAYFAkhkBb8ACgkQ9CaO5/Lv0PC7QgCdFxw0UsIe3DIsy/9wSkiQkMA9
> 7XQAniBUkf/xsh/P0XUGf9MdJV+aBDzD
> =VH3v
> ---------------------------------------------------------------------
> To start a new topic, e-mail:
> To unsubscribe, e-mail:
> For additional commands, e-mail:

View this message in context:
Sent from the Tomcat - User mailing list archive at

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message