You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2023/07/25 10:27:06 UTC
[Bug 66792] New: unpacked war application for virtual host fails
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.roques@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.
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true">
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs"
prefix="localhost_access_log" suffix=".txt"
pattern="%h %l %u %t "%r" %s %b" />
</Host>
<Host name="orcid.univ-toulouse.fr" appBase="orcidapps"
unpackWARs="true" autoDeploy="true">
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs"
prefix="orcid_access_log" suffix=".txt"
pattern="%h %l %u %t "%r" %s %b" />
</Host>
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.base/java.lang.Thread.run(Thread.java:829)
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 66792] unpacked war application for virtual host fails
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=66792
--- Comment #3 from olivier.roques@univ-toulouse.fr ---
I have tried to move the orcidapps folder outside /var/lib/tomcat9 and it works
also perfectly.
It seems there are special rules inside /vr/lib/tomcat9 thatt i don't
understand.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 66792] unpacked war application for virtual host fails
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=66792
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |INVALID
Status|REOPENED |RESOLVED
--- Comment #4 from Mark Thomas <ma...@apache.org> ---
Again, this is a file-permission issue in your environment, not a Tomcat bug.
Please direct your question(s) to the Tomcat users mailing list for community
support.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 66792] unpacked war application for virtual host fails
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=66792
olivier.roques@univ-toulouse.fr changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|INVALID |---
Status|RESOLVED |REOPENED
--- Comment #2 from olivier.roques@univ-toulouse.fr ---
(In reply to Christopher Schultz from comment #1)
> This is a file-permission issue in your environment, not a Tomcat bug.
>
Thank you for your answer.
The rights, the owner and the group of the appBase folder are exactly the same
than the webapps folder (in wich unapacking jars works as expected)
drwxrwxr-x 1 tomcat tomcat orcidapps
Is there special grant in Tomcat policy to set ?
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 66792] unpacked war application for virtual host fails
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=66792
Christopher Schultz <ch...@christopherschultz.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |INVALID
Status|NEW |RESOLVED
--- Comment #1 from Christopher Schultz <ch...@christopherschultz.net> ---
This is a file-permission issue in your environment, not a Tomcat bug.
Please direct your question(s) to the Tomcat users mailing list for community
support.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org