Re: Tomcat 10.1 Upgrade & Uber JAR Error

2025-02-07 Thread Tim N
Looks like this last worked Tomcat v10.1.20 and first failed v19.1.23 On Fri, Feb 7, 2025 at 3:22 PM Tim N wrote: > I was launching my application successfully with Tomcat 10.1.16 using a > JAR with all dependencies in a single JAR via "maven-assembly-plugin". > > Sin

Tomcat 10.1 Upgrade & Uber JAR Error

2025-02-06 Thread Tim N
I was launching my application successfully with Tomcat 10.1.16 using a JAR with all dependencies in a single JAR via "maven-assembly-plugin". Since upgrading to Tomcat 10.1.34, one of my applications is now throwing java.lang.NullPointerException: Cannot invoke "org.apache.jasper.compiler.TldCac

RE: RE: JspWriterImpl BufferSize And Flushing In Tomcat 10.1.16

2025-02-02 Thread Tim N
I've replicated something similar on Tomcat 10.1.34 (and also 9.0.98). Steps 1 - Download and unzip Tomcat 10.1.34 2 - Create file "webapps/ROOT/include.jsp" with contents "I've been included!" 3 - Edit "webapps/ROOT/index.jsp" adding the following code at the bottom of the JSP ``` <% String

RE: JspWriterImpl BufferSize And Flushing In Tomcat 10.1.16

2025-02-02 Thread Tim N
Just an update...I eliminated the tiles and spring:theme code, and still get the error by putting the same large content in the page with ". Again, this is resolved by increasing the buffer size. I've also noticed the response is marked as committed with the large output before the "jsp:include".

Re: JspWriterImpl BufferSize And Flushing In Tomcat 10.1.16

2025-01-29 Thread Tim N
asier/quicker). On Thu, Jan 30, 2025 at 3:16 AM Rémy Maucherat wrote: > On Wed, Jan 29, 2025 at 5:45 AM Tim N wrote: > > > > I'm including the stack-trace in case that's helpful > > There are no differences in JspWriterImpl between 9.0 and the current > Tomcat 11

Re: JspWriterImpl BufferSize And Flushing In Tomcat 10.1.16

2025-01-29 Thread Tim N
t; -chris > > On 1/28/25 11:43 PM, Tim N wrote: > > I'm including the stack-trace in case that's helpful > > > > Note references to tiles is for the Jakarta EE upgraded tiles at > > https://github.com/tntim96/tiles/tree/jakarta-upgrade > > > > writ

RE: JspWriterImpl BufferSize And Flushing In Tomcat 10.1.16

2025-01-28 Thread Tim N
I'm including the stack-trace in case that's helpful Note references to tiles is for the Jakarta EE upgraded tiles at https://github.com/tntim96/tiles/tree/jakarta-upgrade writeMessage:385, MessageTag (org.springframework.web.servlet.tags) doEndTag:285, MessageTag (org.springframework.web.servlet

JspWriterImpl BufferSize And Flushing In Tomcat 10.1.16

2025-01-28 Thread Tim N
I am migrating from SpringBoot 2.7.18 to 3.0.13 with the accompanying migration from Tomcat 9.0.83 to 10.1.16. I am trying to render a large message, around 8kB. In Tomcat 9, the content renders correctly, In Tomcat 10 the content doesn't render at all, and there's no error message. I noticed if I

Re: Did something JSP related change between 9.0.71 and 9.0.73

2023-09-03 Thread Tim N
on. (Ours is not a UI app) > > You can check the fixes section of release notes > > https://docs.newrelic.com/docs/release-notes/agent-release-notes/java-release-notes/java-agent-820/ > > https://github.com/newrelic/newrelic-java-agent/pull/1225 > > வெள்., 1 செப்., 20

Re: Did something JSP related change between 9.0.71 and 9.0.73

2023-09-01 Thread Tim N
Fixed by upgrading New Relic to 8.5.0! Other environments had this upgraded, but not the failing one. On Fri, Sep 1, 2023 at 5:26 PM Torsten Krah wrote: > Am Freitag, dem 01.09.2023 um 15:18 +1000 schrieb Tim N: > > We're seeing this too, but not in all our environment

Re: Did something JSP related change between 9.0.71 and 9.0.73

2023-08-31 Thread Tim N
We're seeing this too, but not in all our environments. We also use NewRelic. JSP Previously rendered to Now renders to /path/style.css"/> Affected Tomcat version is 9.0.78

Re: Embedded Tomcat 9.0.x Classpath Modification Migrating From Java 8 to 17

2022-12-22 Thread Tim N
cat.start(Tomcat.java:486) Do you think I need to look into that more, or does it make sense that the Service.setParentClassLoader() prevents this? On Thu, Dec 22, 2022 at 9:49 PM Mark Thomas wrote: > On 21/12/2022 22:37, Tim N wrote: > > This was fixed by adding "--add-opens=

Re: Embedded Tomcat 9.0.x Classpath Modification Migrating From Java 8 to 17

2022-12-21 Thread Tim N
, ClassLoaderFactory.RepositoryType.JAR)); } ClassLoader myClassLoader = ClassLoaderFactory.createClassLoader(repositories, null); Thread.currentThread().setContextClassLoader(myClassLoader); SecurityClassLoad.securityClassLoad(myClassLoader); ... Tomcat tomcat = new Tomcat(); tomcat.getService().setPa

Re: Embedded Tomcat 9.0.x Classpath Modification Migrating From Java 8 to 17

2022-12-20 Thread Tim N
s.java:576) On Wed, Dec 21, 2022 at 3:33 PM Tim N wrote: > Sorry - more of the stack-trace: > Caused by: java.lang.IllegalAccessError: failed to access class > com.sun.activation.registries.LogSupport from class > javax.activation.MimetypesFileTypeMap > (com.sun.activation.

Re: Embedded Tomcat 9.0.x Classpath Modification Migrating From Java 8 to 17

2022-12-20 Thread Tim N
Looks like this is due to a conflict with EE JARs added to replace those removed when moving from Java 8 to 17. On Wed, Dec 21, 2022 at 3:33 PM Tim N wrote: > Sorry - more of the stack-trace: > Caused by: java.lang.IllegalAccessError: failed to access

Re: Embedded Tomcat 9.0.x Classpath Modification Migrating From Java 8 to 17

2022-12-20 Thread Tim N
(ConfigurableMimeFileTypeMap.java:150) On Wed, Dec 21, 2022 at 3:28 PM Tim N wrote: > I tried this: > > List repositories = new ArrayList<>(); > repositories.add(new ClassLoaderFactory.Repository(new > File("/dir1").getAbsolutePath(), ClassLoaderFactory.RepositoryType.DIR)); > repositories.add

Re: Embedded Tomcat 9.0.x Classpath Modification Migrating From Java 8 to 17

2022-12-20 Thread Tim N
LifecycleBase.start(LifecycleBase.java:183) at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:930) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) at org.apache.catalina.startup.Tomcat.start(Tomcat.java:486) So the code looks closer to working, but still something major wrong.

Re: Embedded Tomcat 9.0.x Classpath Modification Migrating From Java 8 to 17

2022-12-20 Thread Tim N
e used to achieve what I'm after? If I could get this working, I could maybe contribute back with "how-to" documentation. Thoughts? Also, how do I make embedded Tomcat use my classloader? On Wed, Dec 14, 2022 at 9:19 PM Mark Thomas wrote: > On 14/12/2022 03:20, Tim N wrote:

Embedded Tomcat 9.0.x Classpath Modification Migrating From Java 8 to 17

2022-12-13 Thread Tim N
I'm currently using embedded Tomcat 9.0.68 and have encountered the infamous compatibility issue with ClassLoader.getSystemClassLoader when upgrading from Java 8 to Java 17. See https://stackoverflow.com/questions/46694600/java-9-compatability-issue-with-classloader-getsystemclassloader for a good

Tomcat 9.0.N SimpleTcpCluster Max Cluster Sizing

2022-12-11 Thread Tim N
>From the official documentation "The all-to-all replication is an algorithm that is only efficient when the clusters are small. For larger clusters, you should use the BackupManager" Any ideas on what the limit is or how to measure it? Any good articles?

Tomcat 9.0.N Upgrading Minor Version In A Cluster

2022-12-11 Thread Tim N
Will session fail-over work b/w minor versions? i.e. can you cycle through upgrading Tomcat in a cluster from say 9.0.67 to 9.0.68? Also, is there any official documentation on this?

Re: Tomcat 9.0.37 Clustered DeltaManager Duplicates Session And Loses Session Attributes

2020-10-08 Thread Tim N
etHost(serverProperties.getProperty("tomcat-clusterAddress")); localMember.setDomain("publish-cluster"); localMember.setUniqueId(serverProperties.getProperty("tomcat-clusterMemberUniqueId")); interceptor.setLocalMember(localMember); } ...and it seems to be fine now. O

Re: Tomcat 9.0.37 Clustered DeltaManager Duplicates Session And Loses Session Attributes

2020-10-08 Thread Tim N
n Fri, Oct 9, 2020 at 11:40 AM Tim N wrote: > > Can you show us how you configured this cluster please? > > Sure. > > Tomcat tomcat = new Tomcat(); > tomcat.setBaseDir(baseDir); > tomcat.getServer().setAddress("127.0.0.1"); > tomcat.getServer().setPort(shutDow

Re: Tomcat 9.0.37 Clustered DeltaManager Duplicates Session And Loses Session Attributes

2020-10-08 Thread Tim N
clusterAddress=192.168.0.2 tomcat-clusterMemberUniqueId={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1} tomcat-clusterMemberCount=1 tomcat-clusterMemberAddress1=192.168.0.3 tomcat-clusterMemberUniqueId1={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2} This was initially converted from a server.xml configuration a year ago on Tomc

Tomcat 9.0.37 Clustered DeltaManager Duplicates Session And Loses Session Attributes

2020-10-08 Thread Tim N
Hi, I'm in the early stages of analysing this problem: - Tomcat Embedded 9.0.37 with clustering enabled - SpringBoot application, 2.1.16 - Login with no existing JSESSIONID fails I can see the following code is executed twice within one request, the login attempt: *~/.m2/repository/org