[jira] [Commented] (MTOMCAT-218) Add option to specify JAVA_OPTS when forked

2013-04-17 Thread *$^¨%`£

[ 
https://issues.apache.org/jira/browse/MTOMCAT-218?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13633910#comment-13633910
 ] 

Olivier Lamy (*$^¨%`£) commented on MTOMCAT-218:


That's NOT a fork which start a new jvm!. It just continue the maven build.
So to set memory just set MAVEN_OPTS.

> Add option to specify JAVA_OPTS when forked
> ---
>
> Key: MTOMCAT-218
> URL: https://issues.apache.org/jira/browse/MTOMCAT-218
> Project: Apache Tomcat Maven Plugin
>  Issue Type: Improvement
>Affects Versions: 2.1
> Environment: Windows 7, Java 6 Update 24
>Reporter: Anthony Whitford
> Fix For: 2.2
>
>
> I see that the {{forked}} configuration option is available, but I don't see 
> a way to specify java options for the forked process.  I'd like to specify 
> unique memory constraints for the tomcat instance, different than my maven 
> defaults.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[jira] [Created] (MTOMCAT-219) Web applications listed in are not accessible

2013-04-17 Thread Aivaras Ruzveltas (JIRA)
Aivaras Ruzveltas created MTOMCAT-219:
-

 Summary: Web applications listed in  are not accessible
 Key: MTOMCAT-219
 URL: https://issues.apache.org/jira/browse/MTOMCAT-219
 Project: Apache Tomcat Maven Plugin
  Issue Type: Bug
  Components: tomcat7
Affects Versions: 2.1
 Environment: java 7; maven 3.0.5; ubuntu 12.10 (quantal) 64-bit
Reporter: Aivaras Ruzveltas
Assignee: Olivier Lamy (*$^¨%`£)


Configuration:

  org.apache.tomcat.maven
  tomcat7-maven-plugin
  2.1
  


  com.example
  myApplication
  1.0
  war
  

  



Application:
~/.m2/repository/com/example/myApplication/1.0/myApplication-1.0.war
contains single index.html file.

Maven execution output:
[INFO] Running war on http://localhost:8080/IntegrationTests
[INFO] Creating Tomcat server configuration at 
somedir/IntegrationTests/target/tomcat
[INFO] create webapp with contextPath: /IntegrationTests
[DEBUG] context reloadable: false
[INFO] Deploying dependency wars
[INFO] Deploy warfile: 
/home/aivaras/.m2/repository/com/example/myApplication/1.0/myApplication-1.0.war
 to contextPath: /myApplication
[DEBUG] Expanding: 
/home/aivaras/.m2/repository/com/example/myApplication/1.0/myApplication-1.0.war
 into /somedir/IntegrationTests/target/tomcat/webapps/myApplication
[DEBUG] 
/somedir/IntegrationTests/target/tomcat/webapps/myApplication/index.html: mode 
100644, chmod 644
[DEBUG] expand complete
[DEBUG] context reloadable: false
Apr 17, 2013 2:49:04 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Apr 17, 2013 2:49:05 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Tomcat
Apr 17, 2013 2:49:05 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.37
Apr 17, 2013 2:49:06 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]

Log file contents 
(/somedir/IntegrationTests/target/tomcat/logs/access_log.2013-04-17) contents 
after accessing main application and dependency application:
127.0.0.1 - - [17/Apr/2013:14:49:10 +0300] "GET /IntegrationTests/ HTTP/1.1" 
200 42 http-bio-8080-exec-1 27
127.0.0.1 - - [17/Apr/2013:14:49:13 +0300] "GET /myApplication/ HTTP/1.1" 404 
949 http-bio-8080-exec-3 8

Result:
main application is accessible
 at http://localhost:8080/IntegrationTests/
when accessing dependency application at http://localhost:8080/myApplication/ 
result is Tomcat default error looking page with:

HTTP Status 404 -
type Status report
message
description The requested resource is not available.
Apache Tomcat/7.0.37

Accessing any not existing URL, like http://localhost:8080/asdf/ gives an empty 
page.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



Re: svn commit: r1468594 - in /tomcat/tc7.0.x/trunk: ./ java/org/apache/catalina/startup/ContextConfig.java webapps/docs/changelog.xml

2013-04-17 Thread Violeta Georgieva
Hi Rainer,


2013/4/16 Rainer Jung 
>
> Hi Violeta,
>
> On 16.04.2013 22:15, violet...@apache.org wrote:
> > Author: violetagg
> > Date: Tue Apr 16 20:15:28 2013
> > New Revision: 1468594
> >
> > URL: http://svn.apache.org/r1468594
> > Log:
> > Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=54851
> > Merged revision 1468415 from tomcat/trunk:
> > Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=54851
> > Directories without any web.xml fragments should not impact the status
of distributable. Patch provided by Trask Stalnaker.
> >
> > Modified:
> > tomcat/tc7.0.x/trunk/   (props changed)
> >
tomcat/tc7.0.x/trunk/java/org/apache/catalina/startup/ContextConfig.java
> > tomcat/tc7.0.x/trunk/webapps/docs/changelog.xml
> >
> > Propchange: tomcat/tc7.0.x/trunk/
> >
--
> >   Merged /tomcat/trunk:r1468415
> >
> > Modified:
tomcat/tc7.0.x/trunk/java/org/apache/catalina/startup/ContextConfig.java
> > URL:
http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/java/org/apache/catalina/startup/ContextConfig.java?rev=1468594&r1=1468593&r2=1468594&view=diff
> >
==
> > ---
tomcat/tc7.0.x/trunk/java/org/apache/catalina/startup/ContextConfig.java
(original)
> > +++
tomcat/tc7.0.x/trunk/java/org/apache/catalina/startup/ContextConfig.java
Tue Apr 16 20:15:28 2013
> > @@ -2719,6 +2719,10 @@ public class ContextConfig implements Li
> >  new
InputSource(fragmentFile.toURI().toURL().toString());
> >  source.setByteStream(stream);
> >  parseWebXml(source, fragment, true);
> > +} else {
> > +// If there is no web.xml, normal folder no impact
on
> > +// distributable
> > +fragment.setDistributable(true);
>
> Can this lead to distributable being set if the webapp and all
> web-fragments do not have any info on "distributable"? That would be
> bad, because by default in Tomcat webapps are not distributable. If you
> have a Cluster element in your server.xml a webapp not marked as
> distributable should not get replicated.

In the Servlet Specification we have the following:

"
8.2.3 Assembling the descriptor from web.xml, web-fragment.xml and
annotations
...
ix. The web.xml resulting from the merge is considered  only
if all its web fragments are marked as  as well.
"

Our merge implementation (o.a.c.deploy.WebXml.merge) checks first the
distributable element in web.xml and only if there is such distributable
flag, the second  step is to check whether all fragments have distributable
flag also.
Till now in case the web fragment does not have web-fragment.xml the
distributable was marked as false thus the application cannot be marked as
distributable at all, unless a web-fragment.xml is not provided.

What do you think?

>
> I know the below change log entry suggets the change does not set the
> webapp to distributable by default, but just anted to double check.
>
> >  }
> >  } finally {
> >  fragment.setURL(file.toURI().toURL());
> >
> > Modified: tomcat/tc7.0.x/trunk/webapps/docs/changelog.xml
> > URL:
http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/webapps/docs/changelog.xml?rev=1468594&r1=1468593&r2=1468594&view=diff
> >
==
> > --- tomcat/tc7.0.x/trunk/webapps/docs/changelog.xml (original)
> > +++ tomcat/tc7.0.x/trunk/webapps/docs/changelog.xml Tue Apr 16 20:15:28
2013
> > @@ -62,6 +62,11 @@
> >  Update Tomcat's internal copy of Commons FileUpload to
FileUpload 1.3.
> >  (markt)
> >
> > +  
> > +54851: When scanning for web fragments, directories
without
> > +any web-fragment.xml should not impact the status of
distributable
> > +element. Patch provided by Trask Stalnaker. (violetagg)
> > +  
> >  
>
> Regards,
>
> Rainer
>
> -
> To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: dev-h...@tomcat.apache.org
>


[Bug 52334] recover_time is not properly used

2013-04-17 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=52334

--- Comment #2 from Mladen Turk  ---
I think this is desired behavior.
s->error_time is set to zero after the request made returns OK.
In case worker never went from recovery it'l be checked more aggressively.

-- 
You are receiving this mail because:
You are the assignee for the bug.

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Tomcat Wiki] Trivial Update of "Ramiro53Z" by Ramiro53Z

2013-04-17 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change 
notification.

The "Ramiro53Z" page has been changed by Ramiro53Z:
http://wiki.apache.org/tomcat/Ramiro53Z

New page:
Nothing to say about me I think.<>
Nice to be here and a member of apache.org.<>
I just wish I am useful at all<>
[[http://www.easypret.fr/pret_immobilier/les_cautions.php|crédit immobilier 
simulation]]

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Tomcat Wiki] Update of "LocalBadContent" by ChuckCaldarale

2013-04-17 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change 
notification.

The "LocalBadContent" page has been changed by ChuckCaldarale:
http://wiki.apache.org/tomcat/LocalBadContent?action=diff&rev1=135&rev2=136

  dublinbet
  dunky\.info
  easyday\.cn
+ easypret\.fr
  edstartup\.net
  electronic-wire\.com
  elgg\.summervillecountryclub\.com

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[jira] [Commented] (MTOMCAT-218) Add option to specify JAVA_OPTS when forked

2013-04-17 Thread Anthony Whitford (JIRA)

[ 
https://issues.apache.org/jira/browse/MTOMCAT-218?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13634367#comment-13634367
 ] 

Anthony Whitford commented on MTOMCAT-218:
--

Ahh... That wasn't clear to me.  I presumed it was similar to fork in 
wam-compiler-plugin:  
http://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html#fork

Thank you for clarifying.

> Add option to specify JAVA_OPTS when forked
> ---
>
> Key: MTOMCAT-218
> URL: https://issues.apache.org/jira/browse/MTOMCAT-218
> Project: Apache Tomcat Maven Plugin
>  Issue Type: Improvement
>Affects Versions: 2.1
> Environment: Windows 7, Java 6 Update 24
>Reporter: Anthony Whitford
> Fix For: 2.2
>
>
> I see that the {{forked}} configuration option is available, but I don't see 
> a way to specify java options for the forked process.  I'd like to specify 
> unique memory constraints for the tomcat instance, different than my maven 
> defaults.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Tomcat Wiki] Trivial Update of "Shona90T" by Shona90T

2013-04-17 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change 
notification.

The "Shona90T" page has been changed by Shona90T:
http://wiki.apache.org/tomcat/Shona90T

New page:
The best of 
[[http://www.withamrc.org.uk/modules.php?name=Your_Account&op=userinfo&username=EtsukoEga|Carrier
 Bags]].

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Tomcat Wiki] Update of "LocalBadContent" by ChuckCaldarale

2013-04-17 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change 
notification.

The "LocalBadContent" page has been changed by ChuckCaldarale:
http://wiki.apache.org/tomcat/LocalBadContent?action=diff&rev1=136&rev2=137

  whatisadhd
  whatisdyslexia
  windows8update\.com
+ withamrc\.org\.uk
  wm-u\.com
  wokaway\.ro
  wtcsites\.com

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[jira] [Closed] (MTOMCAT-218) Add option to specify JAVA_OPTS when forked

2013-04-17 Thread *$^¨%`£

 [ 
https://issues.apache.org/jira/browse/MTOMCAT-218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Olivier Lamy (*$^¨%`£) closed MTOMCAT-218.
--

   Resolution: Not A Problem
Fix Version/s: (was: 2.2)
 Assignee: Olivier Lamy (*$^¨%`£)

> Add option to specify JAVA_OPTS when forked
> ---
>
> Key: MTOMCAT-218
> URL: https://issues.apache.org/jira/browse/MTOMCAT-218
> Project: Apache Tomcat Maven Plugin
>  Issue Type: Improvement
>Affects Versions: 2.1
> Environment: Windows 7, Java 6 Update 24
>Reporter: Anthony Whitford
>Assignee: Olivier Lamy (*$^¨%`£)
>
> I see that the {{forked}} configuration option is available, but I don't see 
> a way to specify java options for the forked process.  I'd like to specify 
> unique memory constraints for the tomcat instance, different than my maven 
> defaults.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 54859] New: undeployOldVersions files under work

2013-04-17 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=54859

Bug ID: 54859
   Summary: undeployOldVersions files under work
   Product: Tomcat 7
   Version: 7.0.37
  Hardware: PC
Status: NEW
  Severity: normal
  Priority: P2
 Component: Catalina
  Assignee: dev@tomcat.apache.org
  Reporter: joe.knud...@gmail.com
Classification: Unclassified

I am using the undeployOldVersions option of parallel deployment.  After the
war file gets removed I still see the directory and files under the
work/Catalina/localhost remain.  I would think the undeployOldVersions option
should be removing these files also.

-- 
You are receiving this mail because:
You are the assignee for the bug.

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Tomcat Wiki] Update of "LocalBadContent" by KonstantinKolinko

2013-04-17 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change 
notification.

The "LocalBadContent" page has been changed by KonstantinKolinko:
http://wiki.apache.org/tomcat/LocalBadContent?action=diff&rev1=137&rev2=138

  maxref\.co\.cc
  meratolreviewblog\.com
  meteorologie\.ro
+ mobilephonespychoices
  moneymakingparents\.com
  motoparts4sale\.com
  movementdisorder\.org

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



svn commit: r1469138 - /tomcat/trunk/java/org/apache/catalina/ha/deploy/FarmWarDeployer.java

2013-04-17 Thread kfujino
Author: kfujino
Date: Thu Apr 18 02:10:26 2013
New Revision: 1469138

URL: http://svn.apache.org/r1469138
Log:
Make sure that war is installed on the local container before installed on 
other cluster nodes.

Modified:
tomcat/trunk/java/org/apache/catalina/ha/deploy/FarmWarDeployer.java

Modified: tomcat/trunk/java/org/apache/catalina/ha/deploy/FarmWarDeployer.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/ha/deploy/FarmWarDeployer.java?rev=1469138&r1=1469137&r2=1469138&view=diff
==
--- tomcat/trunk/java/org/apache/catalina/ha/deploy/FarmWarDeployer.java 
(original)
+++ tomcat/trunk/java/org/apache/catalina/ha/deploy/FarmWarDeployer.java Thu 
Apr 18 02:10:26 2013
@@ -444,11 +444,23 @@ public class FarmWarDeployer extends Clu
 public void fileModified(File newWar) {
 try {
 File deployWar = new File(getDeployDirFile(), newWar.getName());
-copy(newWar, deployWar);
 ContextName cn = new ContextName(deployWar.getName());
 if (log.isInfoEnabled())
 log.info(sm.getString("farmWarDeployer.modInstall",
 cn.getName(), deployWar.getAbsolutePath()));
+// install local
+if (!isServiced(cn.getName())) {
+addServiced(cn.getName());
+try {
+copy(newWar, deployWar);
+check(cn.getName());
+} finally {
+removeServiced(cn.getName());
+}
+} else {
+log.error(sm.getString("farmWarDeployer.servicingDeploy",
+cn.getName(), deployWar.getName()));
+}
 install(cn.getName(), deployWar);
 } catch (Exception x) {
 log.error(sm.getString("farmWarDeployer.modInstallFail"), x);



-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



svn commit: r1469144 - /tomcat/trunk/java/org/apache/catalina/ha/deploy/FarmWarDeployer.java

2013-04-17 Thread kfujino
Author: kfujino
Date: Thu Apr 18 02:56:00 2013
New Revision: 1469144

URL: http://svn.apache.org/r1469144
Log:
Add support for Host#xmlBase.

Modified:
tomcat/trunk/java/org/apache/catalina/ha/deploy/FarmWarDeployer.java

Modified: tomcat/trunk/java/org/apache/catalina/ha/deploy/FarmWarDeployer.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/ha/deploy/FarmWarDeployer.java?rev=1469144&r1=1469143&r2=1469144&view=diff
==
--- tomcat/trunk/java/org/apache/catalina/ha/deploy/FarmWarDeployer.java 
(original)
+++ tomcat/trunk/java/org/apache/catalina/ha/deploy/FarmWarDeployer.java Thu 
Apr 18 02:56:00 2013
@@ -168,9 +168,7 @@ public class FarmWarDeployer extends Clu
 }
 }
 
-configBase = new File(engine.getCatalinaBase(), "conf");
-configBase = new File(configBase, engine.getName());
-configBase = new File(configBase, hostname);
+configBase = host.getConfigBaseFile();
 
 // Retrieve the MBean server
 mBeanServer = Registry.getRegistry(null, null).getMBeanServer();



-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Tomcat Wiki] Update of "LocalBadContent" by ChuckCaldarale

2013-04-17 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change 
notification.

The "LocalBadContent" page has been changed by ChuckCaldarale:
http://wiki.apache.org/tomcat/LocalBadContent?action=diff&rev1=138&rev2=139

  social-promoters\.com
  sprachstudium\.beeplog\.de
  squidoo\.com
+ startyouth\.com
  stickersmurauxgrossiste\.com
  superraspberryketones\.com
  tallitalian\.com
  technische-uebersetzung\.blogage\.de
+ textyourexbackfreepdf\.blogspot\.com
  theofficeconnection\.com\.au
  thewashingtonadvocates\.com
  tiffanyonsale\.org

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org