Re: STRUTS_EXAMPLES_1_1_0

"Ing. Andrea Vettori" <[email protected]> Fri, 28 Feb 2025 15:34:38 +0100
Newsgroups gmane.comp.jakarta.struts.devel
Message-ID <[email protected]>
It seems to me that you’ve compiled struts example war with one jdk and are running tomcat with a different one?
I did everything with the same jdk version, to be precise it is 

openjdk version "17.0.14" 2025-01-21
OpenJDK Runtime Environment Temurin-17.0.14+7 (build 17.0.14+7)
OpenJDK 64-Bit Server VM Temurin-17.0.14+7 (build 17.0.14+7, mixed mode, sharing)


> On 28 Feb 2025, at 15:28, Greg Huber <[email protected]> wrote:
> 
> Well it only likes jkd17?  Should this be jdk8 as its v6?
> 
> java.lang.UnsupportedClassVersionError: org/apache/struts/helloworld/action/HelloWorldAction has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 52.0 (unable to load class [org.apache.struts.helloworld.action.HelloWorldAction])
> 
> On 28/02/2025 13:14, Ing. Andrea Vettori wrote:
>> I tried to use STRUTS_EXAMPLES_1_1_0 and I get two ApplicationContext in memory on jdk17 and tomcat 9.0.100 when doing a redeploy either using manager reload or simply coping the war file.
>> 
>> Using tomcat manager I get the following message using the ‘Find Leaks’ button:
>> 
>> The following web applications were stopped (reloaded, undeployed), but their
>> classes from previous runs are still loaded in memory, thus causing a memory
>> leak (use a profiler to confirm):
>> /hello-world
>> 
>> Can anyone confirm that he gets the same results when using the same versions ?
>> Thanks
>> 
>> 
>> 
>>> On 28 Feb 2025, at 12:04, Lukasz Lenart <[email protected]> wrote:
>>> 
>>> pt., 28 lut 2025 o 11:55 Greg Huber <[email protected]> napisał(a):
>>>> Maybe comparing your test case with the showcase setup may give a hint
>>>> on a config issue.
>>>> 
>>>> @Lukasz do we need a tag for the last javax examples?
>>> https://github.com/apache/struts-examples/tree/STRUTS_EXAMPLES_1_1_0
>>> 
>>> 
>>> Cheers
>>> Łukasz
>>> 
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [email protected]
>>> For additional commands, e-mail: [email protected]
>>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>