Fwd: users Digest 17 Aug 2022 09:26:06 -0000 Issue 14393 - "BLANK" DIGEST MESSAGE ATTACHMENTS

2022-08-22 Thread Terence M. Bandoian
Recently, message attachments that appear blank in my e-mail client have 
been included in the Tomcat users mailing list digest.  Some users' 
messages are normally not blank (e.g. Tomcat committers and others).  
Messages from other users are.  Replies to "blank" messages by users 
whose messages are not blanked include the original message.  My e-mail 
client has not changed.


This message is a forward of a digest in which all of the message 
attachments appear blank in my e-mail client.  They also appear blank in 
GMail.  However, the attachments do include data which may be accessed 
by viewing the message source.


Has anyone else experienced this?  Is this something that can be fixed 
by anyone on this list?  Should it be reported on the Tomcat bugzilla or 
somewhere else?


In addition, I have been unable to send e-mail to 
users@tomcat.apache.org from tere...@tmbsw.com which I have used on this 
list since at least 2005.  I receive the following error reply:



Hi. This is the qmail-send program at apache.org.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

:
Must be sent from an @apache.org address or a subscriber address or an address 
in LDAP.


Has something changed?  Do I need to reconfigure my mail server?  If so, 
in what way?


-Terence Bandoian


 Forwarded Message 
Subject: users Digest 17 Aug 2022 09:26:06 - Issue 14393
Date: 17 Aug 2022 09:26:06 -
From: users-digest-h...@tomcat.apache.org
Reply-To: Tomcat Users List 
To: users@tomcat.apache.org




users Digest 17 Aug 2022 09:26:06 - Issue 14393

Topics (messages 275525 through 275527)

Re: Getting error on Tomcat Start
275525 by: Mohan T
275526 by: Thomas Meyer
275527 by: Mohan T

Administrivia:

-
To post to the list, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-digest-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-digest-h...@tomcat.apache.org

--



--- Begin Message ---
--- End Message ---
--- Begin Message ---
--- End Message ---
--- Begin Message ---
--- End Message ---

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Fwd: users Digest 17 Aug 2022 09:26:06 -0000 Issue 14393

2022-08-22 Thread Terence Bandoian
Recently, message attachments that appear blank in my e-mail client
have been included in the Tomcat users mailing list digest.  Some
users' messages are normally not blank (e.g. Tomcat committers and
others).  Messages from other users are.  Replies to "blank" messages
by users whose messages are not blanked include the original message.
My e-mail client has not changed.

This message is a forward of a digest in which all of the message
attachments appear blank in my e-mail client.  They also appear blank
in GMail.  However, the attachments do include data which may be
accessed by viewing the attachment source.

Has anyone else experienced this?  Is this something that can be fixed
by anyone on this list?  Should it be reported on the Tomcat bugzilla
or somewhere else?

In addition, I am no longer able to send e-mail to
users@tomcat.apache.org from tere...@tmbsw.com which I have used on
this list since at least 2005.

Has something changed?  Do I need to reconfigure my mail server?  If
so, in what way?

-Terence Bandoian


-- Forwarded message -
From: Terence M. Bandoian 
Date: Mon, Aug 22, 2022 at 7:50 PM
Subject: users Digest 17 Aug 2022 09:26:06 - Issue 14393
To: Terence Bandoian 



users Digest 17 Aug 2022 09:26:06 - Issue 14393

Topics (messages 275525 through 275527)

Re: Getting error on Tomcat Start
275525 by: Mohan T
275526 by: Thomas Meyer
275527 by: Mohan T

Administrivia:

-
To post to the list, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-digest-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-digest-h...@tomcat.apache.org

--
--- Begin Message ---
--- End Message ---
--- Begin Message ---
--- End Message ---
--- Begin Message ---
--- End Message ---

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Fwd: users Digest 17 Aug 2022 09:26:06 -0000 Issue 14393

2022-08-22 Thread Terence Bandoian
 Recently, message attachments that appear blank in my e-mail client have
been included in the Tomcat users mailing list digest.  Some users'
messages are normally not blank (e.g. Tomcat committers and others).
Messages from other users are.  Replies to "blank" messages by users whose
messages are not blanked include the original message.  My e-mail client
has not changed.

This message is a forward of a digest in which all of the message
attachments appear blank in my e-mail client.  They also appear blank in
GMail.  However, the attachments do include data which may be accessed by
viewing the attachment source.

Has anyone else experienced this?  Is this something that can be fixed by
anyone on this list?  Should it be reported on the Tomcat bugzilla or
somewhere else?

In addition, I am no longer able to send e-mail to users@tomcat.apache.org
from tere...@tmbsw.com which I have used on this list since at least 2005.

Has something changed?  Do I need to reconfigure my mail server?  If so, in
what way?

-Terence Bandoian


-- Forwarded message -
From: Terence M. Bandoian 
Date: Mon, Aug 22, 2022 at 7:50 PM
Subject: users Digest 17 Aug 2022 09:26:06 - Issue 14393
To: Terence Bandoian 



users Digest 17 Aug 2022 09:26:06 - Issue 14393

Topics (messages 275525 through 275527)

Re: Getting error on Tomcat Start
275525 by: Mohan T
275526 by: Thomas Meyer
275527 by: Mohan T

Administrivia:

-
To post to the list, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-digest-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-digest-h...@tomcat.apache.org

--
--- Begin Message ---
--- End Message ---
--- Begin Message ---
--- End Message ---
--- Begin Message ---
--- End Message ---

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Difference between versions

2022-08-22 Thread Alex

Dear Mohan.

your E-Mail address is invalid!

moha...@ramco.com.INVALID

That does not helps to support you.

Regards

Alex

On 22.08.22 16:17, Alex wrote:

Hi Mohan.

On 21.08.22 04:45, Mohan T wrote:

Dear All,

Just want to know if there are any major differences between the 
below tomcat versions.


Server version
Apache Tomcat/8.5.35

Server built:
Nov 3 2018 17:39:20 UTC
unknown
Server number:
8.5.35.0
8.5.x
Status
Working fine
Error
Error message
No error message .
[AD Thread Pool-Global1] 
org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading 
Illegal access: this web application instance has been stopped 
already. Could not load 
[org.springframework.context.ApplicationContextInitializer]. The 
following stack trace is thrown for debugging purposes as well as to 
attempt to terminate the thread which caused the illegal access.
java.lang.IllegalStateException: Illegal access: this web application 
instance has been stopped already. Could not load 
[org.springframework.context.ApplicationContextInitializer]. The 
following stack trace is thrown for debugging purposes as well as to 
attempt to terminate the thread which caused the illegal access


When we deploy a application it throws error. Is there any reason 
because of the tomcat version.


Have you read the answer from Thomas 
https://lists.apache.org/thread/tdqx7pn7g269dyhv13gtrf5gx3myvx7f ?


Looks like you have answered your own question.

https://lists.apache.org/thread/0y0ch2qxzwzoq6rny1zr2q4h3g7gr01y

```
In one of the logs I could see the below error message .

org.apache.catalina.core.ApplicationContext.log
No Spring WebApplicationInitializer types detected on classpath
```

Have you asked the Application Development People how to deploy there 
Application on tomcat?


There are several hits in internet search engines for the log message.

https://html.duckduckgo.com/html?q=No%20Spring%20WebApplicationInitializer%20types%20detected%20on%20classpath 



Maybe some of the hits may solve your topic.



Thanks

Mohan


Regards
Alex

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Find the effective classpath in a spring webapp's Controller

2022-08-22 Thread Mark Thomas

On 22/08/2022 18:56, anjan bacchu wrote:

Hi there,

   I have a Controller in a spring webapp deployed to tomcat as a .war
file(this is not a boot app).

I have this code in the Controller

this.getClass().getClassLoader().getResourceAsStream(licenseFile)


The licenseFile is a 3rd party license file in our artifactory repository
and gets deployed by the gradle build to the WEB-INF\lib directory.

As expected, this licenseFile is not accessible to the Controller and this
fails.

2 Questions

1) How do I find the effective classpath for this webapp at runtime ?  (I
read the howto at
https://tomcat.apache.org/tomcat-9.0-doc/class-loader-howto.html )

2) Is there a way to read this licenseFile in the WEB-INF\lib directory
from the Controller ?


ServletContext.getResource("/WEB-INF/lib/licenseFile");

Mark

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Find the effective classpath in a spring webapp's Controller

2022-08-22 Thread anjan bacchu
Hi there,

  I have a Controller in a spring webapp deployed to tomcat as a .war
file(this is not a boot app).

I have this code in the Controller

this.getClass().getClassLoader().getResourceAsStream(licenseFile)


The licenseFile is a 3rd party license file in our artifactory repository
and gets deployed by the gradle build to the WEB-INF\lib directory.

As expected, this licenseFile is not accessible to the Controller and this
fails.

2 Questions

1) How do I find the effective classpath for this webapp at runtime ?  (I
read the howto at
https://tomcat.apache.org/tomcat-9.0-doc/class-loader-howto.html )

2) Is there a way to read this licenseFile in the WEB-INF\lib directory
from the Controller ?

Thank you,

BR,
~A


Re: Difference between versions

2022-08-22 Thread Alex

Hi Mohan.

On 21.08.22 04:45, Mohan T wrote:

Dear All,

Just want to know if there are any major differences between the below tomcat 
versions.

Server version
Apache Tomcat/8.5.35

Server built:
Nov 3 2018 17:39:20 UTC
unknown
Server number:
8.5.35.0
8.5.x
Status
Working fine
Error
Error message
No error message .
[AD Thread Pool-Global1] 
org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading 
Illegal access: this web application instance has been stopped already. Could 
not load [org.springframework.context.ApplicationContextInitializer]. The 
following stack trace is thrown for debugging purposes as well as to attempt to 
terminate the thread which caused the illegal access.
java.lang.IllegalStateException: Illegal access: this web application instance 
has been stopped already. Could not load 
[org.springframework.context.ApplicationContextInitializer]. The following 
stack trace is thrown for debugging purposes as well as to attempt to terminate 
the thread which caused the illegal access

When we deploy a application it throws error. Is there any reason because of 
the tomcat version.


Have you read the answer from Thomas 
https://lists.apache.org/thread/tdqx7pn7g269dyhv13gtrf5gx3myvx7f ?


Looks like you have answered your own question.

https://lists.apache.org/thread/0y0ch2qxzwzoq6rny1zr2q4h3g7gr01y

```
In one of the logs I could see the below error message .

org.apache.catalina.core.ApplicationContext.log
No Spring WebApplicationInitializer types detected on classpath
```

Have you asked the Application Development People how to deploy there 
Application on tomcat?


There are several hits in internet search engines for the log message.

https://html.duckduckgo.com/html?q=No%20Spring%20WebApplicationInitializer%20types%20detected%20on%20classpath

Maybe some of the hits may solve your topic.



Thanks

Mohan


Regards
Alex

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org