Return-Path: X-Original-To: apmail-tomcat-dev-archive@www.apache.org Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0CBF010E13 for ; Mon, 8 Jul 2013 07:58:04 +0000 (UTC) Received: (qmail 69331 invoked by uid 500); 8 Jul 2013 07:58:01 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 69301 invoked by uid 500); 8 Jul 2013 07:58:00 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 69266 invoked by uid 99); 8 Jul 2013 07:57:58 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Jul 2013 07:57:58 +0000 Date: Mon, 8 Jul 2013 07:57:58 +0000 (UTC) From: "Stanislav Grushevskiy (JIRA)" To: dev@tomcat.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (MTOMCAT-230) CLONE - Plugin uploads WAR file twice MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MTOMCAT-230?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D137= 01854#comment-13701854 ]=20 Stanislav Grushevskiy commented on MTOMCAT-230: ----------------------------------------------- mod_jk.conf LoadModule jk_module modules/mod_jk.so ### ### Where to find workers.properties ### # JkWorkersFile specify the location where mod_jk will find # the workers definitions. JkWorkersFile=09/etc/apache2/jk-workers.properties ### ### Where to put mod_jk logs ### # specify the location where mod_jk is going to place its log file. JkLogFile=09/var/log/apache2/mod_jk.log ### ### Set the jk log level [debug/error/info] ### # info log will contains standard mod_jk activity (default). # error log will contains also error reports. # debug log will contains all informations on mod_jk activity JkLogLevel=09info ### ### Select the log format ### # JkLogStampFormat will configure the date/time format found # on mod_jk logfile. Using the strftime() format string it's # set by default to "[%a %b %d %H:%M:%S %Y]" #JkLogStampFormat "[%a %b %d %H:%M:%S %Y] " ### ### JkOptions indicate to send SSL KEY SIZE, ### # The directive JkOptions allow you to set many forwarding # options which will enable (+) or disable (-) following option. # # # JkOptions ForwardKeySize , you ask mod_jk, when using ajp13, to # forward also the SSL Key Size as required by Servlet API 2.3. # This flag shouldn't be set when servlet engine is Tomcat 3.2.x # (on by default). # # # JkOptions ForwardURICompat , you told mod_jk to send the URI to # Tomcat normally, which is less spec compliant but mod_rewrite # compatible, use it for compatibility with Tomcat 3.2.x engines # (on by default). # # # JkOptions ForwardURICompatUnparsed , the forwarded URI is unparsed, # it's spec compliant but broke mod_rewrite. # # # JkOptions ForwardURIEscaped , the forwarded URI is escaped and # Tomcat (since 3.3 rc2) will do the decoding part. # # # JkOptions ForwardDirectories is used in conjunction with Directory- # Index directive of Apache web server. As such mod_dir should be # available to Apache, statically or dynamically (DSO) # # When DirectoryIndex is configured, Apache will create sub-requests # for each of the local-url's specified in the directive, to determine # if there is a local file that matches (this is done by stat-ing the file)= . # # If ForwardDirectories is set to false (default) and Apache doesn't # find any files that match, Apache will serve the content of the # directory (if directive Options specifies Indexes for that directory) # or a 403 Forbidden response (if directive Options doesn't specify # Indexes for that directory). # # If ForwardDirectories is set to true and Apache doesn't find any # files that match, the request will be forwarded to Tomcat for # resolution. This is used in cases when Apache cannot see the index # files on the file system for various reasons: Tomcat is running on # a different machine, the JSP file has been precompiled etc. # # Note that locally visible files will take precedence over the ones # visible only to Tomcat (i.e. if Apache can see the file, that's # the one that's going to get served). This is important if there is # more then one type of file that Tomcat normally serves - for # instance Velocity pages and JSP pages. # JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories ### ### JkEnvVar forward environment vars ### # The directive JkEnvVar allow you to forward an environment vars # from Apache server to Tomcat engine. # #JkEnvVar SSL_CLIENT_V_START ### ### JkRequestLogFormat set the request format ### # JkRequestLogFormat will configure the format of mod_jk individual # request logging. Request logging is configured and enabled on a # per virtual host basis. To enable request logging for a virtual # host just add a JkRequestLogFormat config. The syntax of the # format string is similiar to the Apache LogFormat command, here # is a list of the available request log format options: # # Options=09Description # %b=09=09Bytes sent, excluding HTTP headers (CLF format) # %B=09=09Bytes sent, excluding HTTP headers # %H=09=09The request protocol # %m=09=09The request method # %p=09=09The canonical Port of the server serving the request # %q=09=09The query string (prepended with a ? if a query string exists, ot= herwise an empty string) # %r=09=09First line of request # %s=09=09Request HTTP status code # %T=09=09Request duration, elapsed time to handle request in seconds '.' m= icro seconds # %U=09=09The URL path requested, not including any query string. # %v=09=09The canonical ServerName of the server serving the request # %V=09=09The server name according to the UseCanonicalName setting # %w=09=09Tomcat worker name # JkRequestLogFormat "%w %V %T" ### ### JkMount assign specific URLs to Tomcat ### # JkMount directive assign specific URLs to Tomcat. In general the # structure of a JkMount directive is: # # send all requests ending in .jsp to worker1 # JkMount /*.jsp worker1 # # send all requests ending /servlet to worker1 # JkMount /*/servlet/ worker1 # # send all requests jsp requests to files located in /otherworker will go w= orker2 # JkMount /otherworker/*.jsp worker2 # # # You can use the JkMount directive at the top level or inside # sections of your httpd.conf file. # # We specify an autoalias, that makes it possible that apache is still # reponsible for serving static html files. All requests of files with # the ending .jsp will be redirected to a default Tomcat installation which # uses the default profile. Change this to fit your needs. jkAutoAlias /var/lib/tomcat-5.5/default/webapps/ jkMount /*.jsp ajp13 # vim: ts=3D4 filetype=3Dapache =20 > CLONE - Plugin uploads WAR file twice > ------------------------------------- > > Key: MTOMCAT-230 > URL: https://issues.apache.org/jira/browse/MTOMCAT-230 > Project: Apache Tomcat Maven Plugin > Issue Type: Bug > Components: tomcat6 > Affects Versions: 2.0 > Environment: Win7/64, Maven 3.0.4 > Reporter: Stanislav Grushevskiy > Assignee: Olivier Lamy (*$^=C2=A8%`=C2=A3) > > To reproduce this issue you need to install apache and mod_jk and deploy = application to apache, mod_jk, tomcat. > If you deploy just to tomcat you will not reproduce it. > This situation is reproduced in tomcat 6, 7. > When I deploy my WAR using maven, the target war (exact the same one) is = being uploaded to the server twice. Can someone explain that? > I am using this on my module: > {code}clean install org.apache.tomcat.maven:tomcat6-maven-plugin:2.0:rede= ploy {code} > From the Log file > {code =3Dxml} > [INFO] --- maven-war-plugin:2.1.1:war (default-war) @ mobile-server --- > [INFO] Packaging webapp > [INFO] Assembling webapp [mobile-server] in [C:\develope\mobile\mobile-se= rver\target\mobile-server] > [INFO] Processing war project > [INFO] Copying webapp resources [C:\develope\mobile\mobile-server\src\mai= n\webapp] > [INFO] Webapp assembled in [241 msecs] > [INFO] Building war: C:\develope\mobile\mobile-server\target\mobile-serve= r.war > [INFO]=20 > [INFO] <<< tomcat6-maven-plugin:2.0:redeploy (default-cli) @ mobile-serve= r <<< > [INFO]=20 > [INFO] --- tomcat6-maven-plugin:2.0:redeploy (default-cli) @ mobile-serve= r --- =20 > [INFO] Deploying war to http://myserver.eu/pra-mobile-server =20 > Uploading: http://myserver.eu/manager-test/deploy?path=3D%2Fmobile-server= &update=3Dtrue > Uploaded: http://myserver.eu/manager-test/deploy?path=3D%2Fmobile-server&= update=3Dtrue (12678 KB at 49.3 KB/sec) > Uploading: http://myserver.eu/manager-test/deploy?path=3D%2Fmobile-server= &update=3Dtrue > Uploaded: http://myserver.eu/manager-test/deploy?path=3D%2Fmobile-server&= update=3Dtrue > {code} > xsi:schemaLocation=3D"http://maven.apache.org/POM/4.0.0 http://maven.apac= he.org/maven-v4_0_0.xsd"> > 4.0.0 > > eu.company.prj.pramobile > mobile-parent > ../mobile-parent/pom.xml > 1.0-SNAPSHOT > > mobile-server > war > mobile server > > 1.1.2 > > > > com.springsource.repository.libs-milestone > SpringSource Enterprise Bundle Repository - libs > http://repo.springsource.org/libs-milestone/ > > > > > ${project.groupId} > mobile-test > ${project.version} > test > > > ${project.groupId} > mobile-common > ${project.version} > > > > org.springframework > spring-asm > ${version.spring} > > > org.springframework > spring-aop > ${version.spring} > > > org.springframework.security > spring-security-config > ${version.spring} > > > org.springframework > spring-web > ${version.spring} > > > org.springframework > spring-oxm > ${version.spring} > > > org.springframework > spring-webmvc > ${version.spring} > > > org.springframework.security > spring-security-web > ${version.spring} > > > commons-codec > commons-codec > 1.7 > > > javax.servlet > jsp-api > 2.0 > provided > > > commons-io > commons-io > 2.4 > > > commons-fileupload > commons-fileupload > 1.2.2 > > > javax.servlet > servlet-api > 2.5 > provided > > > javax.servlet > jstl > 1.1.2 > provided > > > taglibs > standard > 1.1.2 > provided > > > commons-httpclient > commons-httpclient > 3.1 > > > net.sf.ehcache > ehcache > 1.6.1 > > > org.springmodules > spring-modules-cache > 0.8a > > > > org.springframework > spring > > > gigaspaces > gigaspaces-ce > > > jini > jsk-lib > > > jini > jsk-platform > > > jini > mahalo > > > jini > reggie > > > jini > start > > > jini > boot > > > jini > webster > > > commons-attributes > commons-attributes-api > > > commons-attributes > commons-attributes-compiler > > > jboss > javassist > > > jboss > jboss-cache > > > jboss > jboss-common > > > jboss > jboss-jmx > > > jboss > jboss-minimal > > > jboss > jboss-system > > > jcs > jcs > > > jgroups > jgroups-all > > > geronimo-spec > geronimo-spec-jta > > > xpp3 > xpp3_min > > > xjavadoc > xjavadoc > > > opensymphony > oscache > > > ehcache > ehcache > > > > > org.quartz-scheduler > quartz > ${version.quartz} > > > javax.mail > mail > 1.4.5 > > > org.apache.commons > commons-lang3 > 3.1 > > > > org.mockito > mockito-all > 1.9.5 > test > > > org.kubek2k > springockito > 1.0.4 > test > > > org.kubek2k > springockito-annotations > 1.0.5 > test > > > > org.springframework > spring-test-mvc > 1.0.0.M2 > test > > > org.springframework > spring-context > 3.1.0.RELEASE > > > > mobile-server > > > org.mortbay.jetty > maven-jetty-plugin > 6.1.10 > > ${basedir}/src/test/resources/jetty-env.xml<= /jettyEnvXml> > > src/test/resources/webdefault.xml > 0 > 8001 > 5 > > > org.apache.commons.logging.Log > org.apache.commons.logging.impl.SimpleLog<= /value> > > > log4j.configurationFile > file:${project.basedir}/src/main/resources= /log4j.xml > > > > > > mysql > mysql-connector-java > 5.1.9 > > > > > > maven-surefire-plugin > 2.10 > > true > 10 > > true > > > > > maven-war-plugin > 2.1.1 > > > WEB-INF/web.xml > > > > > org.codehaus.mojo > jaxb2-maven-plugin > 1.5 > > > > xjc > > > > > UTF-8 > true > eu.company.prj.pra.mobile.server.generated.p= lace1 > src/main/resources/META-INF/schema > ${basedir}/src/main/java/ > true > false > > > > > org.apache.tomcat.maven > tomcat6-maven-plugin > 2.0 > =20 > -Dmaven.tomcat.uriEncoding=3DUTF-8 > ${tomcat-maven-plugin.url} > ${tomcat-maven-plugin.username} > ${tomcat-maven-plugin.password} > > > > > > > > > > > > > > > > > > > > > {code} > Parent pom: > {code} > eu.company.prj.mobile > mobile-parent > 1.0-SNAPSHOT > pom > mobile project parent > > 3.1.1.RELEASE > 1.9.11 > 1.1.1 > 2.1.6 > 1.5.8 > UTF-8 > > > > > > org.apache.maven.plugins > maven-compiler-plugin > 2.3.1 > > ${project.build.sourceEncoding} > 1.6 > 1.6 > > > > > > just properties with u/p ... > > {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org