Re: Odd EL resolution issue - java.lang.NoClassDefFoundError: package/Class1 (wrong name: package/class1)

2022-02-07 Thread Robert Turner
Okay, so I have finally narrowed it down the trivial failure case, and I think I have an explanation as a result: [1] works (in docker), and [2] fails (in docker) but works outside. The difference between the two is the import directive being a wildcard (ugly, but historical in our app in some pla

Re: Odd EL resolution issue - java.lang.NoClassDefFoundError: package/Class1 (wrong name: package/class1)

2022-02-07 Thread Robert Turner
So back to a divide and conquer approach I think. I just created a trivial "example" [1] and it works as expected (i.e. no exception was generated) (on the same servers I was testing the complex JAR file) -- so possibly something else modifying the behaviour -- a JAR on the classpath, or something

Re: Odd EL resolution issue - java.lang.NoClassDefFoundError: package/Class1 (wrong name: package/class1)

2022-02-07 Thread Robert Turner
I'm just avoiding sharing product details or things I think only serves to confuse the problem. Sorry if you felt I wasn't sharing. It wasn't my intention to be obtuse. I didn't believe they added any value for the diagnostics (of course that assumes I know enough about the problem). However, sinc

Re: Odd EL resolution issue - java.lang.NoClassDefFoundError: package/Class1 (wrong name: package/class1)

2022-02-07 Thread Rob Sargent
On 2/7/22 19:13, Robert Turner wrote: So, I've gone back and double-checked as much as I can (Tomcat version, JDK version), and the classpath, and I have identical classpaths in both environments (except the sort order of the URLs per "level" of ClassLoader), and I've re-verified the behaviour

Re: Odd EL resolution issue - java.lang.NoClassDefFoundError: package/Class1 (wrong name: package/class1)

2022-02-07 Thread Robert Turner
So, I've gone back and double-checked as much as I can (Tomcat version, JDK version), and the classpath, and I have identical classpaths in both environments (except the sort order of the URLs per "level" of ClassLoader), and I've re-verified the behaviour: - fails in the docker environment - wor

How do I post a question with the users?

2022-02-07 Thread Shakila Rajaiah
Hi Chris, I deployed a java war file to a remote windows server. However the Tomcat server stops running after a few days / weeks. I need to run a monthly job, therefore the job fails as the server is not running. I am unable to find any information on this. Can someone please help. I can give m

Re: Odd EL resolution issue - java.lang.NoClassDefFoundError: package/Class1 (wrong name: package/class1)

2022-02-07 Thread Robert Turner
Neil, I'm not actually trying to have the class loaded. I want it to return "null" in the EL evaluation as though the attribute is missing. The "problem" is that I'm seeing a different behaviour in one environment than another, and it's proving difficult to track down why. I'm still working on t

RE: Odd EL resolution issue - java.lang.NoClassDefFoundError: package/Class1 (wrong name: package/class1)

2022-02-07 Thread Neil Aggarwal
Robert: > Caused by: java.lang.NoClassDefFoundError: package1/Class1 (wrong name: > package1/class1) This seems to be the source of your problem. Java does not like that the case is different. Make sure everything matches, including the capitals. Thank you, Neil -- Neil Aggarwal, (972) 834-15

RE: How to Upgrade tomcat from 8.5.23 to 8.5.73 | windows r2 2008 server

2022-02-07 Thread jonmcalexander
> -Original Message- > From: Christopher Schultz > Sent: Monday, February 7, 2022 2:32 PM > To: users@tomcat.apache.org > Subject: Re: How to Upgrade tomcat from 8.5.23 to 8.5.73 | windows r2 2008 > server > > Rakesh, > > On 2/6/22 14:52, rakesh meka wrote: > > Greetings of the day. Hope

Re: Odd EL resolution issue - java.lang.NoClassDefFoundError: package/Class1 (wrong name: package/class1)

2022-02-07 Thread Robert Turner
Okay, after further digging, here's where I'm at: According to the specification ( https://download.oracle.com/javaee-archive/el-spec.java.net/users/att-0034/EL3.0.PFD.RC1.pdf), section 1.22 suggests that if we have an import (which it seems we do -- legacy scriptlets code), that an expression con

Re: Odd EL resolution issue - java.lang.NoClassDefFoundError: package/Class1 (wrong name: package/class1)

2022-02-07 Thread Robert Turner
Yep -- I can use the same WAR in both cases, and it's a .class file in the WAR. I've also just figured out that if I rename the attribute from "class1" to "cl1", it works -- so it's something to do with the attribute name matching the class name. On Mon, Feb 7, 2022 at 5:05 PM Rob Sargent wrote:

Re: Odd EL resolution issue - java.lang.NoClassDefFoundError: package/Class1 (wrong name: package/class1)

2022-02-07 Thread Rob Sargent
On 2/7/22 14:50, Robert Turner wrote: All I'm hoping that someone can point me in the right direction as this issue has been baffling me all day, and I'm starting to run out of ideas of what to look at next. The logic below is working without issue until I move our test environment into a Do

Odd EL resolution issue - java.lang.NoClassDefFoundError: package/Class1 (wrong name: package/class1)

2022-02-07 Thread Robert Turner
All I'm hoping that someone can point me in the right direction as this issue has been baffling me all day, and I'm starting to run out of ideas of what to look at next. The logic below is working without issue until I move our test environment into a Docker container. I'm using the same Tomcat v

Re: How to Upgrade tomcat from 8.5.23 to 8.5.73 | windows r2 2008 server

2022-02-07 Thread Christopher Schultz
Rakesh, On 2/6/22 14:52, rakesh meka wrote: Greetings of the day. Hope you all are doing well. I am actually new to tomcat. I had required from the client that we need to upgrade tomcat from 8.5.23 to 8.5.75 where there is an application is deployed which makes sap 4.6c integration. So I need

RE: How to Upgrade tomcat from 8.5.23 to 8.5.73 | windows r2 2008 server

2022-02-07 Thread jonmcalexander
Note, this is if on Windows. Linux/Unix is similar without the service part.­ Thanks, Sent with BlackBerry Work (www.blackberry.com) From: jonmcalexan...@wellsfargo.com.INVALID Sent: Feb 7, 2022 8:48 AM To: users@tomcat.apache.org Subject: RE: How to Upgrade tom

RE: How to Upgrade tomcat from 8.5.23 to 8.5.73 | windows r2 2008 server

2022-02-07 Thread jonmcalexander
The way I suggest ­is to do this: First Time 1. Install new version side-by-side. 2. Separate CATALINA_BASE and CATALUNA_HOME. 3. Create a symbolic link for CATALINA_HOME. 4. Make the necessary changes to config files, make sure the CATALINA_BASE lib only contains the jar files for your applica