Dear Team,

I am trying to build sample project with Struts 6.1.2.1 with JDK 1.8 and Tomcat 
8.5.89.
I am still unable to load filter though I have included minimum Struts 6.1.2.1 
libs in the java build path.
Please advise.


[cid:image001.png@01D9A8F2.5927C1B0]

Exception

Jun 27, 2023 12:14:13 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version name:   Apache Tomcat/8.5.89
Jun 27, 2023 12:14:13 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server built:          May 9 2023 16:21:47 UTC
Jun 27, 2023 12:14:13 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version number: 8.5.89.0
Jun 27, 2023 12:14:13 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Name:               Windows 10
Jun 27, 2023 12:14:13 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Version:            10.0
Jun 27, 2023 12:14:13 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Architecture:          amd64
Jun 27, 2023 12:14:13 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Java Home:             
C:\Users\agarg49\Documents\ProgramFiles\eclipse-j2ee-mars-jdk1.8\plugins\org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_17.0.7.v20230425-1502\jre
Jun 27, 2023 12:14:13 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Version:           17.0.7+7
Jun 27, 2023 12:14:13 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Vendor:            Eclipse Adoptium
Jun 27, 2023 12:14:13 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_BASE:         
C:\Users\agarg49\Documents\Development\eclipse-workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
Jun 27, 2023 12:14:13 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_HOME:         
C:\Users\agarg49\Documents\Development\apache-tomcat-8.5.89
Jun 27, 2023 12:14:13 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: 
-Dcatalina.base=C:\Users\agarg49\Documents\Development\eclipse-workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
Jun 27, 2023 12:14:13 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: 
-Dcatalina.home=C:\Users\agarg49\Documents\Development\apache-tomcat-8.5.89
Jun 27, 2023 12:14:13 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: 
-Dwtp.deploy=C:\Users\agarg49\Documents\Development\eclipse-workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps
Jun 27, 2023 12:14:13 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: --add-opens=java.base/java.lang=ALL-UNNAMED
Jun 27, 2023 12:14:13 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: --add-opens=java.base/java.io=ALL-UNNAMED
Jun 27, 2023 12:14:13 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: --add-opens=java.base/java.util=ALL-UNNAMED
Jun 27, 2023 12:14:13 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: 
--add-opens=java.base/java.util.concurrent=ALL-UNNAMED
Jun 27, 2023 12:14:13 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
Jun 27, 2023 12:14:13 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dfile.encoding=UTF-8
Jun 27, 2023 12:14:13 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -XX:+ShowCodeDetailsInExceptionMessages
Jun 27, 2023 12:14:13 PM org.apache.catalina.core.AprLifecycleListener 
lifecycleEvent
INFO: The Apache Tomcat Native library which allows using OpenSSL was not found 
on the java.library.path: 
[C:\Users\agarg49\Documents\ProgramFiles\eclipse-j2ee-mars-jdk1.8\plugins\org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_17.0.7.v20230425-1502\jre\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Users/agarg49/Documents/ProgramFiles/eclipse-j2ee-mars-jdk1.8//plugins/org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_17.0.7.v20230425-1502/jre/bin/server;C:/Users/agarg49/Documents/ProgramFiles/eclipse-j2ee-mars-jdk1.8//plugins/org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_17.0.7.v20230425-1502/jre/bin;C:\Program
 Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\CCM\;C:\Program 
Files\OpenJDK\jre-8.0.362.09-hotspot\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program
 Files\Citrix\System32\;C:\Program 
Files\Citrix\ICAService\;C:\Windows\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps;C:\Program
 Files\Rancher Desktop\resources\resources\win32\bin;C:\Program 
Files\IBM\MQ\bin64;C:\Program Files\IBM\MQ\bin;C:\Program 
Files\IBM\MQ\tools\c\samples\bin64;C:\Program 
Files\IBM\MQ\tools\c\samples\bin;C:\Windows\CCM\;C:\Program 
Files\OpenJDK\jre-8.0.362.09-hotspot\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program
 Files\Citrix\System32\;C:\Program 
Files\Citrix\ICAService\;C:\Windows\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps;C:\Program
 Files\Rancher 
Desktop\resources\resources\win32\bin;C:\Users\agarg49\AppData\Local\Microsoft\WindowsApps;C:\Users\agarg49\AppData\Local\GitHubDesktop\bin;C:\Program
 Files\Rancher 
Desktop\resources\resources\win32\bin;C:\Users\agarg49\Documents\Development\db-derby-10.14.2.0-bin\bin;;C:\Users\agarg49\Documents\ProgramFiles\eclipse-j2ee-mars-jdk1.8;;.]
Jun 27, 2023 12:14:13 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-nio-8081"]
Jun 27, 2023 12:14:14 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1494 ms
Jun 27, 2023 12:14:14 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service [Catalina]
Jun 27, 2023 12:14:14 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet engine: [Apache Tomcat/8.5.89]
Jun 27, 2023 12:14:14 PM org.apache.catalina.util.SessionIdGeneratorBase 
createSecureRandom
WARNING: Creation of SecureRandom instance for session ID generation using 
[SHA1PRNG] took [173] milliseconds.
Jun 27, 2023 12:14:14 PM org.apache.catalina.core.StandardContext filterStart
SEVERE: Exception starting filter [struts2]
java.lang.ClassNotFoundException: 
org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter
       at 
org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1420)
       at 
org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1228)
       at 
org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:486)
       at 
org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:468)
       at 
org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:141)
       at 
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:252)
       at 
org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:100)
       at 
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4343)
       at 
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4976)
       at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
       at 
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1362)
       at 
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1352)
       at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
       at 
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
       at 
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
       at java.base/java.lang.Thread.run(Thread.java:833)

Jun 27, 2023 12:14:14 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: One or more Filters failed to start. Full details will be found in the 
appropriate container log file
Jun 27, 2023 12:14:14 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/basic-struts] startup failed due to previous errors
Jun 27, 2023 12:14:14 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-nio-8081"]
Jun 27, 2023 12:14:15 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1177 ms


Thank you.

Regards,
Ankit Garg

From: Lukasz Lenart <lukaszlen...@apache.org>
Sent: Tuesday, June 27, 2023 11:36 AM
To: Ankit Garg <ankitk.g...@tcs.com>
Cc: Garg, Ankit <ankit.g...@metlife.com>
Subject: [EXT] Re: Sample application on target Struts 6.1.2.1 not working with 
Open JDK 1.8 and Tomcat 8.5+


CAUTION: This email originated from outside MetLife. Do not click links, open 
attachments or forward unless you recognize the sender and their email address 
and if you were expecting an email from them. If you suspect this email is 
phishing, report it by clicking on the Report Phishing button or forward it to 
phish...@metlife.com<mailto:phish...@metlife.com>.

Hi,

See my answers below

pon., 26 cze 2023 o 21:00 Ankit Garg 
<ankitk.g...@tcs.com<mailto:ankitk.g...@tcs.com>> napisał(a):

TCS Confidential

I have following libs in Java build path:

[cid:image002.png@01D9A8F2.5927C1B0]


As far I see you are mixing a set of wrong versions of JARs, please remove Dojo 
& Xwork jars, here is a list o minimal JARs you should use:

commons-fileupload-1.5.jar
commons-lang3-3.10.jar
commons-text-1.10.0.jar
freemarker-2.3.31.jar
log4j-api-2.19.0.jar
ognl-3.3.4.jar
struts2-core-6.1.2.1.jar


TCS Confidential

=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you
Based on the above statement this is the only message I send to you.

Regards
Łukasz

The information contained in this message may be CONFIDENTIAL and is for the 
intended addressee only.  Any unauthorized use, dissemination of the 
information, or copying of this message is prohibited.  If you are not the 
intended addressee, please notify the sender immediately and delete this 
message.

Reply via email to