How to config tomcat 5.5 to display project in sub directory in url

2007-12-03 Thread Tim
Hi, I want to display my project "projectName" in the url like http://localhost/aa/projectName. There's only one project "projectName" on the host. I know how to deploy it to http://localhost/projectName directly under the host but how to tell tomcat about the path "/aa"in the middle? I tried to wr

Re: Tomcat 5.5 OutOfMemoryError (PermGen space)

2007-12-12 Thread Tim
I have the same problem. I use Eclipse 3.3 and tomcat 5.5.25. Eclipse is set to "Build Automatically". When I modified the code within Eclipse, it will recompile and reload the tomcat context and the memory problem occurs here every time. I put tomcat in ${catalina.home}/conf/Catalina/localhost/

Re: Tomcat 5.5 OutOfMemoryError (PermGen space)

2007-12-12 Thread Tim
Sometime Eclipse also crashes on OutOfMemoryError (PermGen space), regardless of my using memory collecting tool. On Dec 13, 2007 2:25 PM, Tim <[EMAIL PROTECTED]> wrote: > I have the same problem. > > I use Eclipse 3.3 and tomcat 5.5.25. Eclipse is set to "Build > Automati

DataSource Connection pool leak

2023-08-25 Thread Scott,Tim
mine to a few hundred to complete the application startup and I'm not willing to try that without further insight. Thanks, Tim -- Tim Scott (he/him/his) OCLC * Lead Software Engineer / Technical Product Manager cc: IT file

RE: [EXTERNAL] RE: DataSource Connection pool leak

2023-08-25 Thread Scott,Tim
e SQL is. It's in the log file. The SQL isn't slow, it's called multiple times for different tables/data during startup but with the versions of Tomcat with which I am having problems, it only manages 20 calls before exhausting the pool. The SQL is run serially, not in pa

RE: [EXTERNAL] RE: DataSource Connection pool leak

2023-08-29 Thread Scott,Tim
eable. Is it safe to check for either java.sql.Connection or java.lang.AutoCloseable? .. or should I just check for the "close()" method invocation, based on the fact that I'm not wrapping anything (here) that I shouldn't

Solved: DataSource Connection pool [non] leak

2023-08-31 Thread Scott,Tim
pplication. There was some consternation about the approach but it was agreed that this was the least risk answer - for an application we're dropping support for in December, it is not worth rewriting. This will at least enable deployments to address vulnerabilities fixed in 9.0.71+. Thanks, Tim

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: 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-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: How to access the request URL in a custom valve implementation?

2024-01-26 Thread Tim Funk
. -Tim On Fri, Jan 26, 2024 at 5:47 AM Manak Bisht wrote: > Hi, > I am trying to extend the AccessLogValve to modify logging behaviour for > certain URLs. However, I don't have access to the request object in the > AccessLogValve API. So, I am left with regex matching on the

Re: How to access the request URL in a custom valve implementation?

2024-01-26 Thread Tim Funk
My bad - AccessLogValve also supports that feature too - *%{xxx}r* write value of ServletRequest attribute with name xxx (escaped if required, value ?? if request is null) https://tomcat.apache.org/tomcat-9.0-doc/config/valve.html#Access_Logging -Tim On Fri, Jan 26, 2024 at 7:23 AM Tim

Re: How to access the request URL in a custom valve implementation?

2024-01-26 Thread Tim Funk
return new ObfuscatedQueryElement(); Where ObfuscatedQueryElement is much like the existing QueryElement with your additional requirements. They both would implement AccessLogElement which has access to the Request object -Tim On Fri, Jan 26, 2024 at 7:58 AM Manak Bisht wrote: > I want to obfuscate

Re: Rotating/archiving catalina.out

2024-01-30 Thread Tim Funk
One option (hacky workaround) is to try using "swallowOutput" which may mitigate the worst of your issue. (Beyond a rewrite with a logging framework) https://tomcat.apache.org/tomcat-9.0-doc/config/context.html -Tim On Mon, Jan 29, 2024 at 3:28 PM Aryeh Friedman wrote: > We need

Re: Operation not permitted errors [EXTERNAL]

2024-02-07 Thread Tim Funk
utimes) - And the CIFS mount doesn't support that. A quick test would be to write a "1 liner" java program that uses java.nio.file.Files.copy with paths in that CIFS mount -Tim On Wed, Feb 7, 2024 at 10:49 AM Beard, Shawn wrote: > It is on a Linux server, The file system mentions

Re: Tomcat Internal Architect for JSP compilation?

2024-03-22 Thread Tim Funk
One possible workaround is to precompile the JSP's at build time. https://tomcat.apache.org/tomcat-9.0-doc/jasper-howto.html#Web_Application_Compilation -Tim On Fri, Mar 22, 2024 at 1:37 AM Subodh Joshi wrote: > > Why i am doing this exercise? > In our some of the deployed lin

Re: Possible penetration attempt or DOS attack: any suggestions on what can be done?

2024-06-24 Thread Tim Funk
I do not have a recommended vendor / solution) Conversely, this is a good time for the developers to review their server logging and tune it to be less verbose for these normal exceptions. As well as implementing logging frameworks and logging at the appropriate level (fatal through debug) -Tim

Web browser clocking issue at Apache Tomcat 10.1.20 on Linux

2024-08-15 Thread Tim Zielke
wledge let me know if I am interpreting this trace data correctly? Thanks, Tim

RE: Web browser clocking issue at Apache Tomcat 10.1.20 on Linux

2024-08-15 Thread Tim Zielke
: users@tomcat.apache.org Subject: Re: Web browser clocking issue at Apache Tomcat 10.1.20 on Linux [You don't often get email from ma...@apache.org. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ] [External] On 15/08/2024 14:36, Tim Zielke wrote: > web

Re: Tomcat 9.0.93 Patching | Error- A fatal error has been detected by the Java Runtime Environment | Problematic frame:sigar-amd64-winnt.dll+0x14ed4

2024-09-03 Thread Tim Funk
request was already completed. This is not allowed since 9.0.90. In particular - see the notes about "RECYCLE_FACADES" here https://tomcat.apache.org/tomcat-9.0-doc/changelog.html An alternative is removing "sigar-amd64-winnt.dll" from lib (but I suspect the application will be

RE: Web browser clocking issue at Apache Tomcat 10.1.20 on Linux

2024-09-05 Thread Tim Zielke
goes away. I don't really need the performance improvement of TLS session tickets, so this is a viable workaround for the issue. -Original Message- From: Tim Zielke Sent: Thursday, August 15, 2024 9:55 AM To: Tomcat Users List Subject: RE: Web browser clocking issue at Apache T

RE: Web browser clocking issue at Apache Tomcat 10.1.20 on Linux

2024-09-05 Thread Tim Zielke
ed and not responding. I also had a typo below about "TLS session tokens". I meant to say "TLS session tickets". -----Original Message- From: Tim Zielke Sent: Thursday, September 5, 2024 3:42 PM To: Tomcat Users List Subject: RE: Web browser clocking issue at Apache

Re: Max parameters limit

2024-09-11 Thread Tim Funk
And use RequestWrapper to intercept getParameter() and provide your own parsed value. -Tim On Wed, Sep 11, 2024 at 12:31 PM Christopher Schultz < ch...@christopherschultz.net> wrote: > All, > > Does anyone know if there is a way to limit the number of HTTP > parameters in a POST re

Potential Memory Leak with StandardManager

2021-10-18 Thread Tim K
out of the box with tomcat or do I need to define that in order for it to happen? Thanks, Tim - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Potential Memory Leak with StandardManager [EXTERNAL]

2021-10-19 Thread Tim K
On Mon, Oct 18, 2021 at 2:51 PM Beard, Shawn wrote: > Update to Tomcat 9.0.54. This could be a known security bug that is fixed > in this version. > > https://tomcat.apache.org/security-9.html#Fixed_in_Apache_Tomcat_9.0.54 > I tried updating to that version but it does not appear to be related;

Re: Setting a Request Attribute from a custom Realm

2021-10-27 Thread Tim K
On Tue, Apr 13, 2021 at 9:22 PM Tim K wrote: > > On Fri, Apr 9, 2021 at 7:48 AM Tim K wrote: > > As mentioned in that url, doing a pre-login of sorts before calling > > HttpServletRequest.login() may be a workaround to accomplish this, but > > then I would need to call m

CVE-2021-44228 Log4j 2 Vulnerability - Runtime vs compile time Java version

2021-12-13 Thread Scott,Tim
ch does this? Thank you, Tim -- Tim Scott OCLC * Senior Software Engineer / Technical Product Manager CityGate, 8 St. Mary's Gate, Sheffield S1 4LW, UK cc: Product Management file OCLC COVID-19 resources: oc.lc/covid19-service-info<https://oc.lc/covid19-service-info> [COVI

RE: [External] Re: CVE-2021-44228 Log4j 2 Vulnerability - Runtime vs compile time Java version

2021-12-13 Thread Scott,Tim
some protection, it’s not everything. Thanks, Tim -- Tim Scott OCLC · Senior Software Engineer / Technical Product Manager cc: Product Management file OCLC COVID-19 resources: oc.lc/covid19-service-info<https://oc.lc/covid19-service-info> From: Mark Thomas Sent: 13 December 2021 09

RE: [External] Re: CVE-2021-44228 Log4j 2 Vulnerability - Runtime vs compile time Java version

2021-12-13 Thread Scott,Tim
in. Versions after these JDKs remove the LDAP vector: 6u211 7u201 8u191 11.0.1" No doubt you can review the release notes for, e.g., 8u191/192 for further clues. Notwithstanding Mark's notes earlier that updating your JRE may not resolve everything. > Cheers, > Juri Thanks, Tim

Re: CVE-2021-44228 Log4j 2 Vulnerability -- How does this affect Tomcat?

2021-12-14 Thread Tim Funk
er chaining opportunities still out there. A key takeaway is you might judge individual single exploits not to be bad. But if you can easily chain multiple ones together, then the black hat party can begin. -Tim On Mon, Dec 13, 2021 at 7:24 PM James H. H. Lampert wrote: > > I c

Plugging a memory leak - where?

2022-01-10 Thread Scott,Tim
ating the deployment version would remedy the memory leak in the Tomcat service itself - but I don't like to leave this to guesswork. We've had reports of memory leaks causing problems. Thank you, Tim -- Tim Scott OCLC * Senior Software Engineer / Technical Product Manager CityGate, 8 St.

RE: [External] Re: Plugging a memory leak - where?

2022-01-10 Thread Scott,Tim
vise our team who deals with Dependency Tracker, too. Thanks, Tim - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

RE: [External] Re: Tomcat jdbc connections

2022-01-25 Thread Scott,Tim
> Would it be along the lines of Wireshark or TCP dump to see what's > occurring as I gather this won't be captured in tomcat logging via > Catalina.out? Or can it be. Have you explored Oracle listener / client tracing? Ref: https://docs.oracle.com/cd/E11882_01/network.112/e10835/sqlnet.htm#NETRF3

Re: Tomcat 7 - Log4j Vulnerability Guide Request

2022-01-28 Thread Tim Funk
Out of the box, no version of Apache Tomcat uses any log4j version. If log4j is used, it is by a specific application (not provided by the ASF) deployed to Tomcat. (Or an admin changed the default install to add it) -Tim On Fri, Jan 28, 2022 at 10:36 AM Samuel Anderson-Burrell | Cloud21 wrote

Problems deploying new .war application on Linux

2022-03-14 Thread Scott,Tim
application works in one place with as close a configuration as I can get. Annoyingly, I only need Linux for development and QA testing. It will be only deployed on Windows 2016 in phase 1 (and may never reach phase 2). Any ideas where I should tweak next? Thank you, Tim In case it helps, my

RE: Problems deploying new .war application on Linux

2022-03-14 Thread Scott,Tim
files in the same way, there’s no different there either. > Another approach is to do remote debugging and step into the class with the > error > (javax.enterprise.inject.se.SeContainerInitializer.findSeContainerInitializer) I’ll need to work out how to do that and get back to you. Th

RE: [External] Re: Problems deploying new .war application on Linux

2022-03-14 Thread Scott,Tim
> From: Greg Huber > Sent: Monday, March 14, 2022 2:23 PM > To: Tomcat Users List users@tomcat.apache.org > Subject: [External] Re: Problems deploying new .war application on Linux > On the sever where did tomcat come from? a rpm? > Maybe as a test, download tomca

RE: [External] Re: Problems deploying new .war application on Linux

2022-03-14 Thread Scott,Tim
> From: Greg Huber gregh3...@gmail.com > Sent: Monday, March 14, 2022 3:01 PM > >I’ve tried renaming the war file as ‘sru.war’ and placing it in webapps, > >removing other references to ‘sru’ in the configuration. > I use ROOT.war and have no stuff, just copy it into

RE: Problems deploying new .war application on Linux

2022-03-15 Thread Scott,Tim
pin down the problem. I had not expected an absence of a call to the method! Any further ideas? Thanks, Tim -- Tim Scott OCLC · Senior Software Engineer / Technical Product Manager cc: IT file OCLC COVID-19 resources: oc.lc/covid19-service-info<https://oc.lc/covid19-service-info>

RemoteAddrFilter (org.apache.catalina.filters)

2022-03-21 Thread Scott,Tim
(or some variations thereof – “sru”, “/sru”, “/sru/”, “/sru*”, …) … then both applications are equally accessible from other clients. Is what I’m trying to do possible? I’m using Tomcat 9.0.54. If it should work – can anyone spot what I’ve missed? Thanks, Tim -- Tim Scott

Re: [External] Re: RemoteAddrFilter (org.apache.catalina.filters)

2022-03-21 Thread Scott,Tim
t be configured programmatically? I could then read a setting from the database. (Apologies for not describing all the requirements at the outset - users, eh?) Thanks, Tim -- Tim Scott OCLC · Senior OLIB Software Engineer City Gate · 8 St. Mary's Gate · Sheffield S1 4LW · United

RE: [External] Re: RemoteAddrFilter (org.apache.catalina.filters)

2022-03-22 Thread Scott,Tim
and I don’t know what the load balancer is going to deliver as I don’t have one in my development environment. I also don’t know the network route the calling service will take. Thanks, Tim -- Tim Scott OCLC · Senior Software Engineer / Technical Product Manager cc: IT file OCLC COVID-19

RE: Problems deploying new .war application on Linux

2022-03-23 Thread Scott,Tim
Hi all, If only for the email archives – just a note to say that I have not yet found a solution. Thanks, Tim -- Tim Scott OCLC · Senior Software Engineer / Technical Product Manager cc: IT file OCLC COVID-19 resources: oc.lc/covid19-service-info<https://oc.lc/covid19-service-info>

Re: Conditional access logs

2022-04-22 Thread Tim Funk
environment variable" https://tomcat.apache.org/tomcat-9.0-doc/rewrite.html You can submit a feature enhancement request in the bug database https://tomcat.apache.org/bugreport.html#How_to_submit_patches_and_enhancement_requests -Tim On Thu, Apr 21, 2022 at 5:08 PM Chris Cheshire wrote: &g

RE: [External] Re: Apache Tomcat 8 - Require Tomcat configuration to restrict exe's from downloading

2022-06-22 Thread Scott,Tim
, Tim From: Mark Thomas Sent: 22 June 2022 10:56 To: users@tomcat.apache.org Subject: [External] Re: Apache Tomcat 8 - Require Tomcat configuration to restrict exe's from downloading On 22/06/2022 10:37, bharath Kumar wrote: > Hi team, > > Any help on this ? > > Furth

Secondary Authentication method for application

2022-07-12 Thread Tim K
s done... Also, I'm getting a 405 error on the actual POST, even though it appears the principal gets established for that request... Not sure if this has something to do with the JSESSIONID cookie... Thanks, Tim - To u

Re: Secondary Authentication method for application

2022-07-14 Thread Tim K
to a specific url. Eventually, my custom realm (form login) may go away and the login for my app will be done by this external app which will be the only thing that will be able to call this new "backdoor" way. Tim

RE: [External] Re: [ANN] Apache Tomcat 9.0.67 available

2022-09-29 Thread Scott,Tim
vising of the bug and fix. I will await ..68 with anticipation. It’s curious how it only happened on my Windows systems and not my RedHat one but I’ll happily leave that nuance to those who know the code. The systems in question are test and not critical, so I can wait a week or so. Until ..68, Tim cc: IT file

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?

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?

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

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:

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
(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
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
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-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-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: StaticMembers within Multiple Clusters

2023-01-15 Thread Tim K
I hate to bring back my original thread and I am probably not doing this correctly, but I've been seeing this message occur on my cluster. My tomcat is now at 9.0.70. Possibly there was a breaking change since I first started using the cluster? java.lang.NoClassDefFoundError: Could not initialize

Re: StaticMembers within Multiple Clusters

2023-01-25 Thread Tim K
e at the same version, we have 4, they all get updated at the same time. > How did you upgrade (e.g. installer, unzip/untar/etc.)? untar Thanks, Tim - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For a

Excluded service.bat From Maven Artefact

2023-03-15 Thread LANDER Tim
Hi, I've noticed that service.bat and Tomcat.exe (Actually all exe's: https://github.com/apache/tomcat/blob/6de806a21adc68a23aa4043c67c0d80bbab1c458/build.xml#L2825-L2828) are excluded from the tomcat maven artefact (org.apache.tomcat:tomcat). What's the reason for this? I couldn't find it docum

Re: Excluded service.bat From Maven Artefact

2023-03-15 Thread LANDER Tim
> On 3/15/23 22:01, LANDER Tim wrote: > > Hi, I've noticed that service.bat and Tomcat.exe (Actually all exe's: > > https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Ftomcat%2Fblob%2F6de806a21adc68a23aa4043c67c0d80bbab1c458%2Fbuild.

OT: RE: [External] Re: Fail Timcat if any of the contexts fails?

2023-03-29 Thread Scott,Tim
Loving the typo in the subject :-). Tim. cc: IT file

Re: hiding tomcat version from error pages

2020-09-17 Thread Tim Funk
It should a tweak to the ErrorReportValve as documented here: (inside of server.xml) https://tomcat.apache.org/tomcat-9.0-doc/config/valve.html#Error_Report_Valve You'll want to set showServerInfo and showReport to false -Tim On Thu, Sep 17, 2020 at 8:20 AM Rathore, Rajendra wrote: >

Re: hiding tomcat version from error pages

2020-09-17 Thread Tim Funk
It should be ... http://tomcat.apache.org/tomcat-8.5-doc/config/valve.html#Error_Report_Valve On Thu, Sep 17, 2020 at 10:40 AM Rathore, Rajendra wrote: > > Hi Tim, > > I am using tomcat 8.5.x, will that availabl

Re: Append content to OutputStream after RequestDispatcher#forward

2020-09-29 Thread Tim Funk
, wrappedResponse); // Add code to loop over all headers set during forward() and set them on response now response.getWriter().append("prepend string"); response.getWriter().append(wrappedResponse.yourBuffer()); response.getWriter().append("postpend string"); // newly invented word

Re: Append content to OutputStream after RequestDispatcher#forward

2020-09-29 Thread Tim Funk
Forward needed to be used due to this in the original email > I also tried using RequestDispatcher#include but I need to keep response > headers, added during the forward And include() is not allowed to set headers. -Tim On Tue, Sep 29, 2020 at 2:27 PM Christopher Schultz wrote: >

Tomcat 9.0.37 Clustered DeltaManager Duplicates Session And Loses Session Attributes

2020-10-08 Thread Tim N
run:748, Thread (java.lang) Any help would be appreciated. I can replicate this every time and spend some time investigating this. Cheers, Tim

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

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
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

Setting a Request Attribute from a custom Realm

2021-04-07 Thread Tim K
I have a custom realm which I'm receiving custom messages back within the realm code and I want to display these messages on the login page, but I have no idea how this can be accomplished with a custom realm which is overriding the Principle authenticate method. Any help would be appreciated, Tom

Re: Setting a Request Attribute from a custom Realm

2021-04-08 Thread Tim K
ris Would it be possible to implement a new feature to the existing realm API so it can accommodate messages passed back to the front end? For example, when using the LockoutRealm, is there from the front-end to alert the user that they are actually locked out? - Tim

Re: Setting a Request Attribute from a custom Realm

2021-04-09 Thread Tim K
est.login() may be a workaround to accomplish this, but then I would need to call my backend authentication service twice for each login. -Tim - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Setting a Request Attribute from a custom Realm

2021-04-13 Thread Tim K
On Fri, Apr 9, 2021 at 7:48 AM Tim K wrote: > As mentioned in that url, doing a pre-login of sorts before calling > HttpServletRequest.login() may be a workaround to accomplish this, but > then I would need to call my backend authentication service twice for > each login. > &g

Zip file upload corruption on Linux

2021-05-24 Thread Scott,Tim
've put some details / "evidence" below should you wish to read further. Thank you, Tim This morning, with Tomcat 9.0.45, I again captured a tcpdump to show that the browser is sending the correct data. The temp file which Tomcat created prior to passing the stream t

RE: [External] Re: Zip file upload corruption on Linux

2021-05-24 Thread Scott,Tim
Hi Mark, Thanks for the prompt response. >On 24/05/2021 10:58, Scott,Tim wrote: >> Hi experts, >> >> First time poster, here, so I know I'm risking not providing nearly >> enough of the right information. Please let me know what I can send to >> help you h

RE: [External] Re: Zip file upload corruption on Linux

2021-05-24 Thread Scott,Tim
he.tomcat.util.http.fileupload." and tried again. I found no change in behaviour: Leaving file.encoding to default to UTF-8 still corrupted the content. Setting it to ISO-8859-1 again resolved it. Was that the Servlet API you were meaning? Thanks, Tim -

RE: [External] Re: Zip file upload corruption on Linux

2021-05-25 Thread Scott,Tim
rkaround and do not anticipate it worthwhile me spending any more time on the matter. Thanks, Tim - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

RE: [External] Re: Zip file upload corruption on Linux

2021-05-25 Thread Scott,Tim
is process. My code writes the data to an Oracle database, binding as a binary (RAW) value. Thanks, Tim - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

RE: [External] Re: Zip file upload corruption on Linux

2021-05-26 Thread Scott,Tim
ing environment? I'll bet we can write a > Filter or Valve which can catch this bug red-handed. I'd love to have the time to do this, but my motivation to do so has all but been killed by pragmatism. I could send you the two Java classes off-list if you&#

Re: Strange error with JSP

2021-06-02 Thread Tim Funk
{} catch blocks{} even if you think they don't need wrapped in those blocks. -Tim On Wed, Jun 2, 2021 at 1:53 PM Christopher Schultz < ch...@christopherschultz.net> wrote: > > I'm getting this error in production, and I can reproduce it every time > I access the page. H

RE: Re-Use TCP Source Ports if the Socket is Unique?

2021-06-25 Thread Scott,Tim
ve until Tomcat is shut down. Does that help? Thanks, Tim -- Tim Scott OCLC · Senior Software Engineer / Technical Product Manager cc: IT file OCLC COVID-19 resources: oc.lc/covid19-service-info   -Original Message- From: Eric Robinson Sent: 25 June 2021 04:19 To: Tomcat Users

Re: Ip on the diferent apps on Tomcat

2006-06-15 Thread Tim Funk
tomcat.apache.org/faq/security.html#restrict -Tim Julio Rios wrote: Hello I have one machine with this release: Información de Servidor Versión de Tomcat: Apache Tomcat/5.5.17 Versión JVM: 1.4.2_01-b06 Vendedor JVM: Sun Microsystems Inc. Nombre de SO: Windows XP Versión de SO: 5.1

RE: Newbie - question about tld or dtd files

2006-06-15 Thread Tim Lucia
xyzzy.jsp: <%@ taglib uri="/tags/struts-bean" prefix="bean" %> web.xml: /tags/struts-bean /WEB-INF/struts-bean.tld Then place the actual tld file where the element says it should be. Tim -Original Message- From: [EMAIL PROTECTED] [mail

Re: Import file > 3gb possible?

2006-06-15 Thread Tim Funk
4.1 to prevent uploads greather than 2GB. -Tim Terry Orechia wrote: Is it possible to import a large file greater than 3 gigabytes to a tomcat web server? I am running tomcat 4.1 on debian with Tomcat/Apache JK2 Connector . I upload a file using multipart/form data on http Post request to

Re: flushing system.out

2006-06-16 Thread Tim Funk
() -Tim Nishant Deshpande wrote: i'm printing stuff out to system.out in tomcat, but it doesn't get flushed till the end of the request. (i've tried system.out.flush()) has anyone got solutions to this problem? i'm not sure if its a tomcat problem or

Re: mod_proxy a risk?

2006-06-16 Thread Tim Funk
No. It looks like a config problem. -Tim Christoph Kukulies wrote: I wonder whether mod_proxy can be a security risk in Apache2.0.54, when being enabled in conjunction with tomcat (5.5). A machine which is open to the world (on port 80 only) is blacklisted at cbl.abuseat.org and I wonder how

RE: How do I pass option to Tomcat on startup only?

2006-06-20 Thread Tim Lucia
ement.jmxremote.ssl=false \ -Dcom.sun.management.jmxremote.authenticate=false" echo $0: CATALINA_OPTS = "$CATALINA_OPTS" fi HTH, Tim > -Original Message- > From: David Delbecq [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 20, 2006 10:26 AM > To: Tomcat Users List > Subj

RE: Commons fileUpload: write to disk permission problem

2006-06-26 Thread Tim Lucia
bytes out of the blob from the DB. Tim > -Original Message- > From: Andrea Salvi [mailto:[EMAIL PROTECTED] > Sent: Monday, June 26, 2006 4:48 AM > To: Tomcat Users List > Subject: Re: Commons fileUpload: write to disk permission problem > > Hi David and thanks for

RE: Commons fileUpload: write to disk permission problem

2006-06-26 Thread Tim Lucia
-host/path/.../servlet?ID=n with a browser -- check the headers (TamperData, etc. for FireFox) 2. Check the Tomcat logs for a 40x or 50x error 3. Check the path in the .jsp tag and make sure it matches the path for #1. HTH, Tim > -Original Message- > From: Andrea Salvi [mailto:[EMAIL P

Re: Critical bug in RequestDispatcher.include(..) in Tomcat 5.5.16 ?

2006-07-03 Thread Tim Funk
issue. -Tim j.random.programmer wrote: Is this my imagination or is tomcat really this retarded and this insanely buggy ? Or am I doing something wrong ? - x.jsp -- foo <% RequestDispatcher rd = request.getRequestDispatcher("/foo.html");

RE: "Busy" in jkmanager

2006-07-05 Thread Tim Lucia
the least time. Tim > -Original Message- > From: Mohan2005 [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 04, 2006 11:02 PM > To: users@tomcat.apache.org > Subject: Re: "Busy" in jkmanager > > > Hello again, > > According to the workers.propert

RE: cluster manual

2006-07-05 Thread Tim Lucia
I just used the online docs (marginally) and the comments in server.xml -- no problems at all (well, except for a few bugs which have now been fixed, and are waiting for 5.5.18) Tim -Original Message- From: Sean O'Reilly [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 05, 2006 9:

Re: tomcat version output in error messages

2006-07-06 Thread Tim Funk
You can use your own ErrorReportValve. Look for errorReportValveClass in http://tomcat.apache.org/tomcat-5.0-doc/config/host.html -Tim Mike Schmelzer wrote: Hi *! I'm using Apache 2 and Tomcat 5 to host several websites. For security reasons I don't want that Tomcat is disp

Includes that Forward

2006-07-07 Thread Tim Fennell
just let me know and I'll post there instead. -Tim Fennell http://stripes.mc4j.org/ Stripes: Because web development should just be easier - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail:

Re: Includes that Forward

2006-07-07 Thread Tim Fennell
response. The behavior you are looking for could be done easily (and more cleanly) with a little jsp logic that essentially chooses to render or perform a third tier include. This is purely my opinion though. I'll take the way Tomcat handles the case over the way Resin and Jetty handle it.

RE: Interrupted system call and Tomcat dies

2006-07-10 Thread Tim Lucia
The stack trace indicates the gnu JVM. Use the Sun JVM instead. > Linux Fedora Core 4 > Tomcat 5.0.30 > > Thanks very much for any input > Seetha > > > ----- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail:

RE: Getting the date/time from the client

2006-07-11 Thread Tim Lucia
Is that really appropriate?? What if I have my Locale set to France, and my clock set to Pacific Standard Time? Then what? (assume I am on the east coast of the USA...) Tim > -Original Message- > From: Vinu Varghese [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 11, 2006 8:0

RE: Getting the date/time from the client

2006-07-11 Thread Tim Lucia
Tomcat Users List > Subject: Re: Getting the date/time from the client > > A good devil's advocate question, or was it rhetorical? > > Either way it's got exactly the answer you'd expect, you'll set the date > to whatever Locale the Request returns. Obviously. &g

  1   2   3   4   5   6   7   8   9   10   >