Yeah you see what I'm given to work with.  The sever.xml will be cleaned
up, but i'm trying to get this fixed to upgrade to 6.0.35 or 7.

So let me ask this, given that billing-1.0.4 is a branch that contains 4
war files.  Am I able to deploy say billing-1.0.5 on the fly without having
to restart tomcat from a CI server like hudson?  If I have hudson (as the
TC user) make a new directory in tomcat's webapps folder while it was still
running and push the 4 wars?

The current solution they have, they have locked a single branch to each
tomcat server (dumb dumb dumb) and I'm trying to give them access to EVERY
development server they have for multiple branches.  So I want to have
webapps/billing-1.0.4/WebEMR.war, foo.war, bar.war, thing.war.  Then also
have billing-1.0.5/WebEMR.war, foo.war, etc.  It just has to be dynamic
enough to not need restarted everytime I need to add a new branch to the
server.

I want it to be localhost:8080/billing-1.0.4/WebEMR, to
locahost:8080/billing-x.n.y/WebEMR

>According to your configuration (the "appBase" attribute of <Host>),
>every subdirectory and every war file in the $CATALINA_HOME/webapps/
>is a web application.
>
>So "billing-1.0.4" is a web application and WebEMR.war is just a
>static resource in it, that you can download via
>http://localhost:8080/billing-1.0.4/WebEMR.war<http://localhost:8080/billing-1.0.4/WebEMR.war>
>
>If you want the application to be exposed as
.>http://localhost:8080/1.0.4/ <http://localhost:8080/1.0.4/>, rename the
war to the same name as the
>path you are looking for (1.0.4) and place it directly into webapps
>directory.  That would be
>
>$CATALINA_HOME/webapps/1.0.4.
>war
>
>Tomcat will autodeploy it (which involves unpacking it into
>$CATALINA_HOME/webapps/1.0.4).
>
>Best regards,
>Konstantin Kolinko


On Fri, Aug 24, 2012 at 2:58 PM, Konstantin Kolinko
<knst.koli...@gmail.com>wrote:

> 2012/8/24 Josh Gooding <josh.good...@gmail.com>:
> >
> > <Server port="8005" shutdown="SHUTDOWN" debug="0">
> >
>
> All those debug="" attributes... - Tomcat 5.5 does not support them.
> See "Configuration Reference" chapters of documentation, where these
> attributes are not mentioned. (Well, nothing fatal - they will be just
> silently ignored).
>
> >         <GlobalNamingResources>
> >                 <Environment name="simpleValue" type="java.lang.Integer"
> > value="30"/>
>
> Sample value?
>
> >         </GlobalNamingResources>
> >
> >         <Service name="Catalina">
> >
> >                 <Connector port="8009"
> >                         enableLookups="false" redirectPort="8443"
> debug="0"
> >                         protocol="AJP/1.3" />
> >
> >                 <Connector port="8080" maxHttpHeaderSize="8192"
> >                         maxThreads="150" minSpareThreads="25"
> > maxSpareThreads="75"
> >                         enableLookups="false" redirectPort="8443"
> > acceptCount="100"
> >                         connectionTimeout="20000"
> > disableUploadTimeout="true" />
>
> Do you need both connectors?
>
> >
> >                 <Engine name="Catalina" defaultHost="server.com"
> debug="0">
> >
> >                         <Host name="server.com" debug="0"
> appBase="webapps"
> >                                 deployOnStartup="true" unpackWARs="true"
> > autoDeploy="true"
> >                                 xmlValidation="false"
> > xmlNamespaceAware="false" />
> >                 </Engine>
> >         </Service>
> > </Server>
> >
> > It's pretty simple and elegant.  Not hard to follow.  So in my project,
> > I've created a META-INF/context.xml file with the following declaration:
> >
> > <Context>
> >
> >         <Realm className="org.apache.catalina.realm.JDBCRealm"
>
> It'd be better to use DataSourceRealm instead of JDBCRealm.
>
> >...
> > </Context>
> >
> > again, not hard to follow.  this project is packaged up in the WebEMR.war
> > and resides under the $CATALINA_HOME/webapps/billing-1.0.4 directory
> >
>
> According to your configuration (the "appBase" attribute of <Host>),
> every subdirectory and every war file in the $CATALINA_HOME/webapps/
> is a web application.
>
> So "billing-1.0.4" is a web application and WebEMR.war is just a
> static resource in it, that you can download via
> http://localhost:8080/billing-1.0.4/WebEMR.war
>
> If you want the application to be exposed as
> http://localhost:8080/1.0.4/, rename the war to the same name as the
> path you are looking for (1.0.4) and place it directly into webapps
> directory.  That would be
>
>  $CATALINA_HOME/webapps/1.0.4.war
>
> Tomcat will autodeploy it (which involves unpacking it into
> $CATALINA_HOME/webapps/1.0.4).
>
> Best regards,
> Konstantin Kolinko
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>

Reply via email to