2015-04-14 15:58 GMT+09:00 <kimmo.sundg...@heeros.com>:

> Keiichi Fujino <kfuj...@apache.org> wrote on 14.04.2015 09:33:21:
>
> > From: Keiichi Fujino <kfuj...@apache.org>
> > To: Tomcat Users List <users@tomcat.apache.org>
> > Date: 14.04.2015 09:33
> > Subject: Re: FarmWarDeployer via tomcat web manager
> >
> > 2015-04-14 14:22 GMT+09:00 <kimmo.sundg...@heeros.com>:
> >
> > > "Caldarale, Charles R" <chuck.caldar...@unisys.com> wrote on
> 14.04.2015
> > > 06:06:37:
> > >
> > > > From: "Caldarale, Charles R" <chuck.caldar...@unisys.com>
> > > > To: Tomcat Users List <users@tomcat.apache.org>
> > > > Date: 14.04.2015 06:07
> > > > Subject: RE: FarmWarDeployer via tomcat web manager
> > > >
> > > > > From: Keiichi Fujino [mailto:kfuj...@apache.org]
> > > > > Subject: Re: FarmWarDeployer via tomcat web manager
> > > >
> > > > > > I changed war-listen path to webapps, and everything works fine
> > > untils I
> > > > > > restart my Tomcat 1 (master node).
> > > > > > After restarting tomcat my war file goes empty in webapps
> folder. (
> > > file
> > > > > > size 0). I saw that farmwardeployer run some kind of cleaning (
> or
> > > clear)
> > > > > > function.
> > > >
> > > > > Please show how to reproduce this in more detail.
> > > > > And attach your configuration(server.xml).
> > > >
> > > > Don't attach server.xml, since the list strips almost all
> > > > attachments.  Post it inline in the e-mail, with any sensitive
> > > > information obfuscated and preferably with comments removed.
> > > >
> > > >  - Chuck
> > > >
> > > Hi
> > > this is my server.xml from tomcat 1.
> > >
> > > <?xml version='1.0' encoding='utf-8'?>
> > >
> > > <Server port="8005" shutdown="SHUTDOWN">
> > >   <Listener
> className="org.apache.catalina.startup.VersionLoggerListener"
> > > />
> > >   <Listener className="org.apache.catalina.core.AprLifecycleListener"
> > > SSLEngine="on" />
> > >
> > >   <Listener
> > > className="org.apache.catalina.core.JreMemoryLeakPreventionListener"
> />
> > >   <Listener
> > >
> className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
> > >   <Listener
> > > className="org.apache.catalina.core.ThreadLocalLeakPreventionListener"
> />
> > >
> > >
> > >   <GlobalNamingResources>
> > >
> > >     <Resource name="UserDatabase" auth="Container"
> > >               type="org.apache.catalina.UserDatabase"
> > >               description="User database that can be updated and
> saved"
> > >  factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
> > >               pathname="conf/tomcat-users.xml" />
> > >   </GlobalNamingResources>
> > >
> > > <Service name="Catalina">
> > >
> > >
> > >     <Connector port="8081" protocol="HTTP/1.1"
> > >                connectionTimeout="20000"
> > >                redirectPort="8443" />
> > >
> > >     <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
> > >
> > >
> > >  <Engine name="Catalina" defaultHost="localhost" jvmRoute="tomcat1">
> > >
> > >
> > >          <Host name="localhost"  appBase="webapps"
> > >             unpackWARs="true" autoDeploy="false">
> > >
> > >         <Cluster
> className="org.apache.catalina.ha.tcp.SimpleTcpCluster"
> > > channelSendOptions="6">
> > >              <Manager
> > > className="org.apache.catalina.ha.session.DeltaManager"
> > >                    expireSessionsOnShutdown="false"
> > >                    notifyListenersOnReplication="true"/>
> > >
> > >
> > >           <Channel
> > > className="org.apache.catalina.tribes.group.GroupChannel">
> > >             <Membership
> > > className="org.apache.catalina.tribes.membership.McastService"
> > >                         address="228.0.0.4"
> > >                         port="45564"
> > >                         frequency="500"
> > >                         dropTime="10000"/>
> > >             <Receiver
> > > className="org.apache.catalina.tribes.transport.nio.NioReceiver"
> > >                       address="auto"
> > >                       port="5000"
> > >                       selectorTimeout="100"
> > >                       maxThreads="6"/>
> > >
> > >             <Sender
> > >
> className="org.apache.catalina.tribes.transport.ReplicationTransmitter">
> > >               <Transport
> > >
> className="org.apache.catalina.tribes.transport.nio.PooledParallelSender"/>
> > >             </Sender>
> > >             <Interceptor
> > >
> > >
> >
>
> className="org.apache.catalina.tribes.group.interceptors.TcpFailureDetector"/>
> > >             <Interceptor
> > >
> > >
> >
>
> className="org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor"/>
> > >             <Interceptor
> > >
> > >
> >
>
> className="org.apache.catalina.tribes.group.interceptors.ThroughputInterceptor"/>
> > >           </Channel>
> > >   <Valve className="org.apache.catalina.ha.tcp.ReplicationValve"
> > >
> > >
> > > filter=".*\.gif|.*\.js|.*\.jpeg|.*\.jpg|.*\.png|.*\.htm|.*
> > \.html|.*\.css|.*\.txt"/>
> > >
> > >           <Deployer
> > > className="org.apache.catalina.ha.deploy.FarmWarDeployer"
> > >  tempDir="/opt/tomcat/apache-tomcat-8.0.18/temp/war-temp/"
> > >
> >
> > I think
> > The following configuration is not correct.
> >
> >
> > > deployDir="/opt/tomcat/apache-tomcat-8.0.18/webapps/"
> > > watchDir="/opt/tomcat/apache-tomcat-8.0.18/webapps/"
> > >
> >
> >
> > When deployDir and watchDir are set to the same value, FarmWarDeployer
> does
> > not work work properly.
> > (see FarmWarDeployer.copy).
> >
> >
> > --
> > > Keiichi.Fujino
> > >
>
> Ok. I try same directory because I try to get work this farmwardeployer
> via manager. Web Manager used webapps so I can't found any other
> solutions.
>
> Summary:
> We can't use Farmwardeployer via web manager. I hope someone of you code
> this feature for tomcat some day=)
> Thank you for all the replies!
> -Kimmo
>
>
If you wish this feature, you can open bugzilla entry(enhancement) and feel
free to write your ideas.



> --
> Keiichi.Fujino
>

Reply via email to