Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Struts - A MVC web framework
Tomcat - JSP/Servlet container
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
JSP - A mailing list about Java Server Pages specification and reference
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
Manager app in 4.1.27 behaves differently to 4.1.18

Manager app in 4.1.27 behaves differently to 4.1.18

2003-11-25       - By Larry Isaacs

 Back
Reply:     1     2     3     4     5  

I believe the point that Yoav was going to make was that
Tomcat 4.1.18 doesn't honor the unpackWARs Host setting when
using the Manager's deploy function.  Thus it always serves
such a webapp from the WAR, for which the Manager undeploy
works.  Tomcat 4.1.27 does honor the unpackWARs setting,
so the same deploy command results in an auto-expanded
webapp, if unpackWARs="true".

I believe the Manager undeploy command in both 4.1.18 and 4.1.27
has trouble removing an auto-expanded WAR.  If you set
unpackWARs="false" in 4.1.27, you would get the same behavior
with respect to deploying and undeploying that you saw in
Tomcat 4.1.18.

Cheers,
Larry

> -- --Original Message-- --
> From: Tom Lyle [mailto:toml@(protected)]
> Sent: Tuesday, November 25, 2003 10:18 AM
> To: Tomcat Users List
> Subject: RE: Manager app in 4.1.27 behaves differently to 4.1.18
>
>
> Hi, I've reduced my server.xml down to the bare minumum of
> ROOT, manager &
> admin contexts
>
> I use a copy of the same server.xml in an instance of Tomcat
> 4.1.27 & Tomcat
> 4.1.18 and
> use the org.apache.catalina.ant.DeployTask Source code of org.apache.catalina.ant.DeployTask to deploy my war
> file. In 4.1.18
> it unpacks it into
> \work\localhost\myapp
> in 4.1.27 it unpacks it into \webapps\myapp (it also creates
> an empty myapp
> dir in \work\localhost )
>
> in 4.1.27 the UndeployTask will not work because it can't
> remove the myapp
> dir in the webapp directory.
>
> The server.xml i used in both cases is attached bellow
>
> I'm totally at a loss as to whats going on
>
> Tom
>
> <?xml version='1.0' encoding='utf-8 (See http://utf-8.ora-code.com)'?>
> <Server className="org.apache.catalina.core.StandardServer Source code of org.apache.catalina.core.StandardServer" debug="0"
> port="8005" shutdown="SHUTDOWN">
>   <Listener
> className="org.apache.catalina.mbeans.ServerLifecycleListener Source code of org.apache.catalina.mbeans.ServerLifecycleListener"
> debug="0"/>
>   <Listener
> className="org.apache.catalina.mbeans.GlobalResourcesLifecycle
> Listener"
> debug="0"/>
>   <GlobalNamingResources>
>     <Environment name="simpleValue" override="true"
> type="java.lang.Integer Source code of java.lang.Integer"
> value="30"/>
>     <Resource auth="Container" description="User database that can be
> updated and saved" name="UserDatabase" scope="Shareable"
> type="org.apache.catalina.UserDatabase Source code of org.apache.catalina.UserDatabase"/>
>     <ResourceParams name="UserDatabase">
>       <parameter>
>         <name>factory</name>
>
> <value>org.apache.catalina.users.MemoryUserDatabaseFactory Source code of org.apache.catalina.users.MemoryUserDatabaseFactory</value>
>       </parameter>
>       <parameter>
>         <name>pathname</name>
>         <value>conf/tomcat-users.xml</value>
>       </parameter>
>     </ResourceParams>
>   </GlobalNamingResources>
>   <Service
> className="org.apache.catalina.core.StandardService Source code of org.apache.catalina.core.StandardService" debug="0"
> name="Tomcat-Standalone">
>     <Connector className="org.apache.coyote.tomcat4.CoyoteConnector Source code of org.apache.coyote.tomcat4.CoyoteConnector"
> acceptCount="100" bufferSize="2048" connectionTimeout="20000"
> debug="9"
> disableUploadTimeout="true" enableLookups="true" maxProcessors="75"
> minProcessors="5" port="8080"
> protocolHandlerClassName="org.apache.coyote.http11.Http11Protocol Source code of org.apache.coyote.http11.Http11Protocol"
> proxyPort="0" redirectPort="8443" scheme="http" secure="false"
> tcpNoDelay="true" useURIValidationHack="false">
>       <Factory
> className="org.apache.catalina.net.DefaultServerSocketFactory"/>
>     </Connector>
>     <Connector className="org.apache.coyote.tomcat4.CoyoteConnector Source code of org.apache.coyote.tomcat4.CoyoteConnector"
> acceptCount="10" bufferSize="2048" connectionTimeout="20000" debug="0"
> disableUploadTimeout="false" enableLookups="true" maxProcessors="75"
> minProcessors="5" port="8009"
> protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler Source code of org.apache.jk.server.JkCoyoteHandler"
> proxyPort="0" redirectPort="8443" scheme="http" secure="false"
> tcpNoDelay="true" useURIValidationHack="false">
>       <Factory
> className="org.apache.catalina.net.DefaultServerSocketFactory"/>
>     </Connector>
>     <Engine
> className="org.apache.catalina.core.StandardEngine Source code of org.apache.catalina.core.StandardEngine" debug="0"
> defaultHost="localhost"
> mapperClass="org.apache.catalina.core.StandardEngineMapper"
> name="Standalone">
>       <Host className="org.apache.catalina.core.StandardHost Source code of org.apache.catalina.core.StandardHost"
> appBase="webapps" autoDeploy="true"
> configClass="org.apache.catalina.startup.ContextConfig Source code of org.apache.catalina.startup.ContextConfig"
> contextClass="org.apache.catalina.core.StandardContext Source code of org.apache.catalina.core.StandardContext" debug="0"
> deployXML="true"
> errorReportValveClass="org.apache.catalina.valves.ErrorReportValve Source code of org.apache.catalina.valves.ErrorReportValve"
> liveDeploy="true"
> mapperClass="org.apache.catalina.core.StandardHostMapper"
> name="localhost" unpackWARs="true">
>         <Context className="org.apache.catalina.core.StandardContext Source code of org.apache.catalina.core.StandardContext"
> cachingAllowed="true"
> charsetMapperClass="org.apache.catalina.util.CharsetMapper Source code of org.apache.catalina.util.CharsetMapper"
> cookies="true"
> crossContext="false" debug="0" displayName="Tomcat Administration
> Application" docBase="../server/webapps/admin"
> mapperClass="org.apache.catalina.core.StandardContextMapper"
> path="/admin"
> privileged="true" reloadable="false" swallowOutput="false"
> useNaming="true"
> wrapperClass="org.apache.catalina.core.StandardWrapper Source code of org.apache.catalina.core.StandardWrapper">
>           <Logger className="org.apache.catalina.logger.FileLogger"
> debug="0" directory="logs" prefix="localhost_admin_log." suffix=".txt"
> timestamp="true" verbosity="1"/>
>         </Context>
>         <Context className="org.apache.catalina.core.StandardContext Source code of org.apache.catalina.core.StandardContext"
> cachingAllowed="true"
> charsetMapperClass="org.apache.catalina.util.CharsetMapper Source code of org.apache.catalina.util.CharsetMapper"
> cookies="true"
> crossContext="false" debug="0" displayName="Welcome to Tomcat"
> docBase="C:\jakarta-tomcat-4 (See http://cat-4.ora-code.com).1.27\webapps\ROOT"
> mapperClass="org.apache.catalina.core.StandardContextMapper" path=""
> privileged="false" reloadable="false" swallowOutput="false"
> useNaming="true"
> wrapperClass="org.apache.catalina.core.StandardWrapper Source code of org.apache.catalina.core.StandardWrapper">
>         </Context>
>         <Context className="org.apache.catalina.core.StandardContext Source code of org.apache.catalina.core.StandardContext"
> cachingAllowed="true"
> charsetMapperClass="org.apache.catalina.util.CharsetMapper Source code of org.apache.catalina.util.CharsetMapper"
> cookies="true"
> crossContext="false" debug="0" displayName="Tomcat Manager
> Application"
> docBase="../server/webapps/manager"
> mapperClass="org.apache.catalina.core.StandardContextMapper"
> path="/manager"
> privileged="true" reloadable="false" swallowOutput="false"
> useNaming="true"
> wrapperClass="org.apache.catalina.core.StandardWrapper Source code of org.apache.catalina.core.StandardWrapper">
>           <ResourceLink global="UserDatabase" name="users"
> type="org.apache.catalina.UserDatabase Source code of org.apache.catalina.UserDatabase"/>
>         </Context>
>         <Logger
> className="org.apache.catalina.logger.FileLogger" debug="0"
> directory="logs" prefix="localhost_log." suffix=".txt"
> timestamp="true"
> verbosity="1"/>
>       </Host>
>       <Logger
> className="org.apache.catalina.logger.FileLogger" debug="0"
> directory="logs" prefix="catalina_log." suffix=".txt" timestamp="true"
> verbosity="1"/>
>       <Realm className="org.apache.catalina.realm.UserDatabaseRealm Source code of org.apache.catalina.realm.UserDatabaseRealm"
> debug="0" resourceName="UserDatabase" validate="true"/>
>     </Engine>
>   </Service>
> </Server>
>
> > -- --Original Message-- --
> > From: Shapira, Yoav [mailto:Yoav.Shapira@(protected)]
> > Sent: 25 November 2003 14:04
> > To: Tomcat Users List
> > Subject: RE: Manager app in 4.1.27 behaves differently to 4.1.18
> >
> >
> >
> > Howdy,
> > Is unpackWARs set to true for your Host?
> >
> > Yoav Shapira
> > Millennium ChemInformatics
> >
> >
> > >-- --Original Message-- --
> > >From: Tom Lyle [mailto:toml@(protected)]
> > >Sent: Tuesday, November 25, 2003 7:54 AM
> > >To: Tomcat Users List
> > >Subject: Manager app in 4.1.27 behaves differently to 4.1.18
> > >
> > >Hi there,
> > >
> > >I'm having a slightly annoying problem using the Tomcat Manager
> > >application.
> > >I have a webservices web application that i deploy using
> an Ant script
> > and
> > >the org.apache.catalina.ant.DeployTask Source code of org.apache.catalina.ant.DeployTask & UndeployTask. On
> Tomcat 4.1.18
> > >this
> > >works fine, I package the application up as a war file and
> can deploy,
> > >undeploy and redeploy with no problems - the war file gets unpacked
> > into
> > >{CATALINA-HOME}\work\Standalone\localhost\myapp
> > >
> > >However, i've upgraded to Tomcat 4.1.27 and now the ant script no
> > longer
> > >works. When I deploy the war file using the manager it
> unpacks it into
> > >{CATALINA-HOME}\webapps\myapp folder instead. This is irritating
> > because
> > >when I try and redeploy the war file (i.e call undeploy &
> then deploy
> > in
> > >the
> > >ant script) i get the message "Cannot remove document base for path
> > /myapp"
> > >
> > >Why does 4.1.27 unpack its war files into the web app folder unlike
> > 4.1.18?
> > >I've tried replacing the server.xml file with the one from
> 4.1.18 but
> > it
> > >still does the same thing. Is there a setting that I need to make
> > 4.1.27
> > >behave in the same way as 4.1.18?
> > >
> > >Thanks
> > >
> > >Tom
> > >
> > >Limehouse Court, 3-11 Dod Street
> > >London E14 7EQ   Tel: 020 7537 8515
> > >
> > >
> >
> >-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
> > >To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
> > >For additional commands, e-mail:
> tomcat-user-help@(protected)
> >
> >
> >
> >
> > This e-mail, including any attachments, is a confidential
> > business communication, and may contain information that is
> > confidential, proprietary and/or privileged.  This e-mail is
> > intended only for the individual(s) to whom it is addressed, and
> > may not be saved, copied, printed, disclosed or used by anyone
> > else.  If you are not the(an) intended recipient, please
> > immediately delete this e-mail from your computer system and
> > notify the sender.  Thank you.
> >
> >
> >
> -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
> > For additional commands, e-mail: tomcat-user-help@(protected)
> >
> >
>
>
> -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
> For additional commands, e-mail: tomcat-user-help@(protected)
>
>

-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)




©2008 junlu.com - Jax Systems, LLC, U.S.A.