[jira] [Commented] (JS2-1365) Old Version of Tomcat packaged with JetSpeed
"David Sean Taylor (JIRA)" <[email protected]> Wed, 3 Oct 2018 22:49:00 +0000 (UTC)
| Newsgroups | gmane.comp.jakarta.jetspeed.devel |
|---|---|
| Message-ID | <[email protected]> |
[ https://issues.apache.org/jira/browse/JS2-1365?page=3Dcom.atlassian.j=
ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D166375=
85#comment-16637585 ]=20
David Sean Taylor commented on JS2-1365:
----------------------------------------
Sounds like we'd have to package with Tomcat9=C2=A0
> Old Version of Tomcat packaged with JetSpeed
> --------------------------------------------
>
> Key: JS2-1365
> URL: https://issues.apache.org/jira/browse/JS2-1365
> Project: Jetspeed 2
> Issue Type: Bug
> Affects Versions: 2.3.1
> Reporter: [email protected]
> Priority: Critical
> Attachments: jetspeed-crashing.png
>
>
> The older version of Tomcat currently packaged with Jetspeed, does not su=
pport The Java 9 feature of Multi Release Jar files.
> As a result, the log4j-api-2.11.0.jar which is packaged with Java 9 suppo=
rt causes an
> error when trying to parse the Java 9 classes.
> This error=C2=A0can be seen in the attached image, and the trace below.
> Editing the=C2=A0log4j-api-2.11.0.jar jar file and removing the Java 9 fi=
les allows the portlet to start.
> This is not a problem in the JetSpeed code, just the packaging of older t=
omcat in the=C2=A0 jetspeed release 2.3.1
> =C2=A0
> Here is the stack trace which shows the problem is in tomcat.
> =C2=A0
> Creating war C:\Apache\Jetspeed-2.3.1\webapps\ops286.war ...
> War C:\Apache\Jetspeed-2.3.1\webapps\ops286.war created
> Oct 03, 2018 3:33:06 PM org.apache.catalina.startup.HostConfig deployWAR
> INFO: Deploying web application archive C:\Apache\Jetspeed-2.3.1\webapps\=
ops286.war
> Oct 03, 2018 3:33:07 PM org.apache.catalina.deploy.WebXml setVersion
> WARNING: Unknown version string [3.1]. Default version will be used.
> Oct 03, 2018 3:33:09 PM org.apache.catalina.startup.ContextConfig process=
AnnotationsJar
> SEVERE: Unable to process Jar entry [META-INF/versions/9/module-info.clas=
s] from Jar [jar:file:/C:/Apache/Jetspeed-2.3.1/webapps/ops286/WEB-INF/lib/=
log4j-api-2.11.0.jar!/] for annotations
> org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte =
tag in constant pool: 19
> at org.apache.tomcat.util.bcel.classfile.Constant.readConstant(Constant.=
java:97)
> at org.apache.tomcat.util.bcel.classfile.ConstantPool.<init>(ConstantPoo=
l.java:55)
> at org.apache.tomcat.util.bcel.classfile.ClassParser.readConstantPool(Cl=
assParser.java:176)
> at org.apache.tomcat.util.bcel.classfile.ClassParser.parse(ClassParser.j=
ava:85)
> at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(Co=
ntextConfig.java:2121)
> at org.apache.catalina.startup.ContextConfig.processAnnotationsJar(Conte=
xtConfig.java:1983)
> at org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(Conte=
xtConfig.java:1944)
> at org.apache.catalina.startup.ContextConfig.processAnnotations(ContextC=
onfig.java:1929)
> at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.jav=
a:1328)
> at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfi=
g.java:887)
> at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi=
g.java:387)
> at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl=
eSupport.java:117)
> at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBa=
se.java:90)
> at org.apache.catalina.core.StandardContext.startInternal(StandardContex=
t.java:5472)
> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
> at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase=
.java:899)
> at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:87=
5)
> at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
> at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1092=
)
> at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:=
1984)
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:51=
1)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.=
java:1149)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor=
.java:624)
> at java.lang.Thread.run(Thread.java:748)
> Oct 03, 2018 3:33:09 PM org.apache.catalina.startup.TldConfig execute
> INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable=
debug logging for this logger for a complete list of JARs that were scanne=
d but no TLDs were found in them. Skipping unneeded JARs during scanning ca=
n improve startup time and JSP compilation time.
> JetspeedContainerServlet: starting initialization of Portlet Application =
at: ops286
> JetspeedContainerServlet: initialization done for Portlet Application at:=
ops286
> Oct 03, 2018 3:33:09 PM org.apache.catalina.startup.HostConfig deployWAR
> INFO: Deployment of web application archive C:\Apache\Jetspeed-2.3.1\weba=
pps\ops286.war has finished in 2,624 ms
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)