[Bug 66792] New: unpacked war application for virtual host fails

2023-07-25 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=66792

Bug ID: 66792
   Summary: unpacked war application for virtual host fails
   Product: Tomcat 9
   Version: 9.0.x
  Hardware: PC
OS: Linux
Status: NEW
  Severity: critical
  Priority: P2
 Component: Catalina
  Assignee: dev@tomcat.apache.org
  Reporter: olivier.roq...@univ-toulouse.fr
  Target Milestone: -

I have tomcat 9 installed on Linux and I have deployed several applications
successfully in the wepapps directory.

After that I need to do a virtual host because I want some applications
deployed with a specific URL.

I added (see bellow) a virtual host named orcid.univ-toulouse.fr and its
appbase
orcidapps.

 



  


  



  


THE BUG is that  Tomcat, when i copy a war application, named cas.war in the
orcidapps folder, Tomcat don't want to unpack it application and give the
message below.

All permissions, group, owner etc are the same that webapps folder.
For the webapps folder, the cas.war application is succeffully deployed.






Exception durant la fixation du "docBase" pour le contexte [/cas]
java.io.IOException: Impossible de créer le répertoire
[/var/lib/tomcat9/orcidapps/cas]
[2023-07-24 16:05:51] [crit] at
org.apache.catalina.startup.ExpandWar.expand(ExpandWar.java:116)
[2023-07-24 16:05:51] [crit] at
org.apache.catalina.startup.ContextConfig.fixDocBase(ContextConfig.java:615)
[2023-07-24 16:05:51] [crit] at
org.apache.catalina.startup.ContextConfig.beforeStart(ContextConfig.java:748)
[2023-07-24 16:05:51] [crit] at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:303)
[2023-07-24 16:05:51] [crit] at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
[2023-07-24 16:05:51] [crit] at
org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423)
[2023-07-24 16:05:51] [crit] at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:182)
[2023-07-24 16:05:51] [crit] at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:717)
[2023-07-24 16:05:51] [crit] at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:690)
[2023-07-24 16:05:51] [crit] at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:705)
[2023-07-24 16:05:51] [crit] at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:977)
[2023-07-24 16:05:51] [crit] at
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1848)
[2023-07-24 16:05:51] [crit] at
java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
[2023-07-24 16:05:51] [crit] at
java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
[2023-07-24 16:05:51] [crit] at
org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
[2023-07-24 16:05:51] [crit] at
java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:118)
[2023-07-24 16:05:51] [crit] at
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:772)
[2023-07-24 16:05:51] [crit] at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:427)
[2023-07-24 16:05:51] [crit] at
org.apache.catalina.startup.HostConfig.check(HostConfig.java:1619)
[2023-07-24 16:05:51] [crit] at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:305)
[2023-07-24 16:05:51] [crit] at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
[2023-07-24 16:05:51] [crit] at
org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1151)
[2023-07-24 16:05:51] [crit] at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1353)
[2023-07-24 16:05:51] [crit] at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1357)
[2023-07-24 16:05:51] [crit] at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1335)
[2023-07-24 16:05:51] [crit] at
java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
[2023-07-24 16:05:51] [crit] at
java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
[2023-07-24 16:05:51] [crit] at
java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
[2023-07-24 16:05:51] [crit] at
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
[2023-07-24 16:05:51] [crit] at
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
[2023-07-24 16:05:51] [crit] at
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
[2023-07-24 16:05:51] [crit] at
java

[GitHub] [tomcat] aaronsatae opened a new pull request, #642: clean up code - formating

2023-07-25 Thread via GitHub


aaronsatae opened a new pull request, #642:
URL: https://github.com/apache/tomcat/pull/642

   reformat json util codes with 
[style-guide](https://github.com/apache/tomcat/blob/main/CONTRIBUTING.md#style-guide)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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



[tomcat] branch main updated: Update java.lang imports for Java 21 EA29

2023-07-25 Thread markt
This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/main by this push:
 new 65ba2e1c7d Update java.lang imports for Java 21 EA29
65ba2e1c7d is described below

commit 65ba2e1c7d08efce31519c61939912b6da4c6d7a
Author: Mark Thomas 
AuthorDate: Tue Jul 25 17:59:24 2023 +0100

Update java.lang imports for Java 21 EA29
---
 java/jakarta/el/ImportHandler.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/java/jakarta/el/ImportHandler.java 
b/java/jakarta/el/ImportHandler.java
index c8beaf8ee3..6aaf2b7981 100644
--- a/java/jakarta/el/ImportHandler.java
+++ b/java/jakarta/el/ImportHandler.java
@@ -136,7 +136,7 @@ public class ImportHandler {
 standardPackages.put("jakarta.servlet.jsp", servletJspClassNames);
 
 Set javaLangClassNames = new HashSet<>();
-// Based on Java 21 EA24
+// Based on Java 21 EA29
 // Interfaces
 javaLangClassNames.add("Appendable");
 javaLangClassNames.add("AutoCloseable");
@@ -185,6 +185,8 @@ public class ImportHandler {
 javaLangClassNames.add("Runtime");
 javaLangClassNames.add("Runtime.Version");
 javaLangClassNames.add("RuntimePermission");
+javaLangClassNames.add("ScopedValue");
+javaLangClassNames.add("ScopedValue.Carrier");
 javaLangClassNames.add("SecurityManager");
 javaLangClassNames.add("Short");
 javaLangClassNames.add("StackTraceElement");


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



[tomcat] branch 10.1.x updated: Update java.lang imports for Java 21 EA29

2023-07-25 Thread markt
This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/10.1.x by this push:
 new 0281bf3850 Update java.lang imports for Java 21 EA29
0281bf3850 is described below

commit 0281bf3850c0c673dc21247187553b6e410e1420
Author: Mark Thomas 
AuthorDate: Tue Jul 25 17:59:24 2023 +0100

Update java.lang imports for Java 21 EA29
---
 java/jakarta/el/ImportHandler.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/java/jakarta/el/ImportHandler.java 
b/java/jakarta/el/ImportHandler.java
index d1fca9cf2e..c21bfd606b 100644
--- a/java/jakarta/el/ImportHandler.java
+++ b/java/jakarta/el/ImportHandler.java
@@ -136,7 +136,7 @@ public class ImportHandler {
 standardPackages.put("jakarta.servlet.jsp", servletJspClassNames);
 
 Set javaLangClassNames = new HashSet<>();
-// Based on Java 21 EA24
+// Based on Java 21 EA29
 // Interfaces
 javaLangClassNames.add("Appendable");
 javaLangClassNames.add("AutoCloseable");
@@ -185,6 +185,8 @@ public class ImportHandler {
 javaLangClassNames.add("Runtime");
 javaLangClassNames.add("Runtime.Version");
 javaLangClassNames.add("RuntimePermission");
+javaLangClassNames.add("ScopedValue");
+javaLangClassNames.add("ScopedValue.Carrier");
 javaLangClassNames.add("SecurityManager");
 javaLangClassNames.add("Short");
 javaLangClassNames.add("StackTraceElement");


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



[tomcat] branch 8.5.x updated: Update java.lang imports for Java 21 EA29

2023-07-25 Thread markt
This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch 8.5.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/8.5.x by this push:
 new 0d48238fcc Update java.lang imports for Java 21 EA29
0d48238fcc is described below

commit 0d48238fcc0360dc38a650265dff0cc67f87f9a1
Author: Mark Thomas 
AuthorDate: Tue Jul 25 17:59:24 2023 +0100

Update java.lang imports for Java 21 EA29
---
 java/javax/el/ImportHandler.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/java/javax/el/ImportHandler.java b/java/javax/el/ImportHandler.java
index 497246a27b..ed88b36e76 100644
--- a/java/javax/el/ImportHandler.java
+++ b/java/javax/el/ImportHandler.java
@@ -136,7 +136,7 @@ public class ImportHandler {
 standardPackages.put("javax.servlet.jsp", servletJspClassNames);
 
 Set javaLangClassNames = new HashSet<>();
-// Based on Java 21 EA24
+// Based on Java 21 EA29
 // Interfaces
 javaLangClassNames.add("Appendable");
 javaLangClassNames.add("AutoCloseable");
@@ -185,6 +185,8 @@ public class ImportHandler {
 javaLangClassNames.add("Runtime");
 javaLangClassNames.add("Runtime.Version");
 javaLangClassNames.add("RuntimePermission");
+javaLangClassNames.add("ScopedValue");
+javaLangClassNames.add("ScopedValue.Carrier");
 javaLangClassNames.add("SecurityManager");
 javaLangClassNames.add("Short");
 javaLangClassNames.add("StackTraceElement");


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



[tomcat] branch 9.0.x updated: Update java.lang imports for Java 21 EA29

2023-07-25 Thread markt
This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/9.0.x by this push:
 new b902d8b9dc Update java.lang imports for Java 21 EA29
b902d8b9dc is described below

commit b902d8b9dc7de03eed0922a2f3c8c211527294e0
Author: Mark Thomas 
AuthorDate: Tue Jul 25 17:59:24 2023 +0100

Update java.lang imports for Java 21 EA29
---
 java/javax/el/ImportHandler.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/java/javax/el/ImportHandler.java b/java/javax/el/ImportHandler.java
index 46ff3c0c18..6bfff50fe4 100644
--- a/java/javax/el/ImportHandler.java
+++ b/java/javax/el/ImportHandler.java
@@ -137,7 +137,7 @@ public class ImportHandler {
 standardPackages.put("javax.servlet.jsp", servletJspClassNames);
 
 Set javaLangClassNames = new HashSet<>();
-// Based on Java 21 EA24
+// Based on Java 21 EA29
 // Interfaces
 javaLangClassNames.add("Appendable");
 javaLangClassNames.add("AutoCloseable");
@@ -186,6 +186,8 @@ public class ImportHandler {
 javaLangClassNames.add("Runtime");
 javaLangClassNames.add("Runtime.Version");
 javaLangClassNames.add("RuntimePermission");
+javaLangClassNames.add("ScopedValue");
+javaLangClassNames.add("ScopedValue.Carrier");
 javaLangClassNames.add("SecurityManager");
 javaLangClassNames.add("Short");
 javaLangClassNames.add("StackTraceElement");


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



[GitHub] [tomcat-maven-plugin] dependabot[bot] commented on pull request #34: Bump plexus-archiver from 2.1.1 to 3.6.0

2023-07-25 Thread via GitHub


dependabot[bot] commented on PR #34:
URL: 
https://github.com/apache/tomcat-maven-plugin/pull/34#issuecomment-1650235866

   Superseded by #40.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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



[GitHub] [tomcat-maven-plugin] dependabot[bot] closed pull request #34: Bump plexus-archiver from 2.1.1 to 3.6.0

2023-07-25 Thread via GitHub


dependabot[bot] closed pull request #34: Bump plexus-archiver from 2.1.1 to 
3.6.0
URL: https://github.com/apache/tomcat-maven-plugin/pull/34


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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



[tomcat-maven-plugin] branch dependabot/maven/org.codehaus.plexus-plexus-archiver-4.8.0 created (now 13b0c0d)

2023-07-25 Thread github-bot
This is an automated email from the ASF dual-hosted git repository.

github-bot pushed a change to branch 
dependabot/maven/org.codehaus.plexus-plexus-archiver-4.8.0
in repository https://gitbox.apache.org/repos/asf/tomcat-maven-plugin.git


  at 13b0c0d  Bump org.codehaus.plexus:plexus-archiver from 2.1.1 to 4.8.0

No new revisions were added by this update.


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



[tomcat-maven-plugin] branch dependabot/maven/org.codehaus.plexus-plexus-archiver-3.6.0 deleted (was f18c8c3)

2023-07-25 Thread github-bot
This is an automated email from the ASF dual-hosted git repository.

github-bot pushed a change to branch 
dependabot/maven/org.codehaus.plexus-plexus-archiver-3.6.0
in repository https://gitbox.apache.org/repos/asf/tomcat-maven-plugin.git


 was f18c8c3  Bump plexus-archiver from 2.1.1 to 3.6.0

The revisions that were on this branch are still contained in
other references; therefore, this change does not discard any commits
from the repository.


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



[GitHub] [tomcat-maven-plugin] dependabot[bot] opened a new pull request, #40: Bump org.codehaus.plexus:plexus-archiver from 2.1.1 to 4.8.0

2023-07-25 Thread via GitHub


dependabot[bot] opened a new pull request, #40:
URL: https://github.com/apache/tomcat-maven-plugin/pull/40

   Bumps 
[org.codehaus.plexus:plexus-archiver](https://github.com/codehaus-plexus/plexus-archiver)
 from 2.1.1 to 4.8.0.
   
   Release notes
   Sourced from https://github.com/codehaus-plexus/plexus-archiver/releases";>org.codehaus.plexus:plexus-archiver's
 releases.
   
   4.8.0
   
   🚀 New features and improvements
   
   Add tzst alias for tar.zst archiver/unarchived (https://redirect.github.com/codehaus-plexus/plexus-archiver/pull/274";>#274)
 https://github.com/slawekjaranowski";>@​slawekjaranowski
   
   🐛 Bug Fixes
   
   detect permissions for addFile (https://redirect.github.com/codehaus-plexus/plexus-archiver/pull/293";>#293)
 https://github.com/hboutemy";>@​hboutemy
   
   📦 Dependency updates
   
   Bump org.codehaus.plexus:plexus from 13 to 14 (https://redirect.github.com/codehaus-plexus/plexus-archiver/pull/296";>#296)
 https://github.com/dependabot";>@​dependabot
   Bump zstd-jni from 1.5.5-4 to 1.5.5-5 (https://redirect.github.com/codehaus-plexus/plexus-archiver/pull/295";>#295)
 https://github.com/dependabot";>@​dependabot
   Bump Eclipse Sisu and  from 0.3.5 to 0.9.0.M2 (https://redirect.github.com/codehaus-plexus/plexus-archiver/pull/289";>#289)
 https://github.com/slachiewicz";>@​slachiewicz
   Bump commons-io from 2.12.0 to 2.13.0 (https://redirect.github.com/codehaus-plexus/plexus-archiver/pull/288";>#288)
 https://github.com/dependabot";>@​dependabot
   Bump zstd-jni from 1.5.5-3 to 1.5.5-4 (https://redirect.github.com/codehaus-plexus/plexus-archiver/pull/287";>#287)
 https://github.com/dependabot";>@​dependabot
   Bump plexus-utils from 3.5.1 to 4.0.0 (https://redirect.github.com/codehaus-plexus/plexus-archiver/pull/283";>#283)
 https://github.com/dependabot";>@​dependabot
   Bump commons-io from 2.11.0 to 2.12.0 (https://redirect.github.com/codehaus-plexus/plexus-archiver/pull/277";>#277)
 https://github.com/dependabot";>@​dependabot
   Bump zstd-jni from 1.5.5-2 to 1.5.5-3 (https://redirect.github.com/codehaus-plexus/plexus-archiver/pull/284";>#284)
 https://github.com/dependabot";>@​dependabot
   Bump guice from 5.1.0 to 6.0.0 (https://redirect.github.com/codehaus-plexus/plexus-archiver/pull/278";>#278)
 https://github.com/dependabot";>@​dependabot
   Bump plexus from 10 to 13 (https://redirect.github.com/codehaus-plexus/plexus-archiver/pull/280";>#280)
 https://github.com/dependabot";>@​dependabot
   
   👻 Maintenance
   
   Remove public modifier from JUnit 5 tests (https://redirect.github.com/codehaus-plexus/plexus-archiver/pull/294";>#294)
 https://github.com/slawekjaranowski";>@​slawekjaranowski
   Use https in scm/url (https://redirect.github.com/codehaus-plexus/plexus-archiver/pull/291";>#291)
 https://github.com/slawekjaranowski";>@​slawekjaranowski
   Remove junit-jupiter-engine from project dependencies (https://redirect.github.com/codehaus-plexus/plexus-archiver/pull/292";>#292)
 https://github.com/slawekjaranowski";>@​slawekjaranowski
   Remove parent and reports menu from site (https://redirect.github.com/codehaus-plexus/plexus-archiver/pull/282";>#282)
 https://github.com/slawekjaranowski";>@​slawekjaranowski
   Cleanup after "veryLargeJar" test (https://redirect.github.com/codehaus-plexus/plexus-archiver/pull/281";>#281)
 https://github.com/slachiewicz";>@​slachiewicz
   Override project.url (https://redirect.github.com/codehaus-plexus/plexus-archiver/pull/279";>#279)
 https://github.com/slawekjaranowski";>@​slawekjaranowski
   
   Plexus Archiver 4.7.1
   
   🐛 Bug Fixes
   
   don't apply umask on unknown perms (Win) (https://redirect.github.com/codehaus-plexus/plexus-archiver/pull/273";>#273)
 https://github.com/hboutemy";>@​hboutemy
   
   Plexus Archiver 4.7.0
   
   🚀 New features and improvements
   
   add umask support and use 022 in RB mode (https://redirect.github.com/codehaus-plexus/plexus-archiver/pull/271";>#271)
 https://github.com/hboutemy";>@​hboutemy
   Use NIO Files for creating temporary files (https://redirect.github.com/codehaus-plexus/plexus-archiver/pull/270";>#270)
 https://github.com/slawekjaranowski";>@​slawekjaranowski
   Deprecate the JAR Index feature (JDK-8302819) (https://redirect.github.com/codehaus-plexus/plexus-archiver/pull/268";>#268)
 https://github.com/jorsol";>@​jorsol
   Add Archiver aliases for tar.* (https://redirect.github.com/codehaus-plexus/plexus-archiver/pull/266";>#266)
 https://github.com/slawekjaranowski";>@​slawekjaranowski
   
   📦 Dependency updates
   
   Bump junitVersion from 5.9.2 to 5.9.3 (https://redirect.github.com/codehaus-plexus/plexus-archiver/pull/267";>#267)
 https://github.com/dependabot";>@​dependabot
   
   
   
   ... (truncated)
   
   
   Changelog
   Sourced from https://github.com/codehaus-plexus/plexus-archiver/blob/master/ReleaseNotes.md";>org.codehaus.plexus:plexus-archiver's
 changelog.
   
   Plexus Archiver Release Notes
   Plexus Archiver 4.2.1
   Bugs
   
   [Issue https://