RE: Re: Embedded Tomcat common classloader

2024-06-08 Thread Terence M. Bandoian
From the Oracle (Java 8) documentation: https://docs.oracle.com/javase/8/docs/technotes/tools/windows/classpath.html Class Path Wild Cards Class path entries can contain the base name wildcard character (*), which is considered equivalent to specifying a list of all of the files in

Re: Embedded Tomcat common classloader

2024-06-08 Thread Dave Breeze
hi first thank you for the insights. I did not realise that the wildcard was expanded by the shell. I thought this was handled by java itself. However in my instance the jvm is not being created by a shell but by a JNI wrapper. Originally this JNI wrapper included myDir/lib/*.jar in the classpath

Re: Embedded Tomcat common classloader

2024-06-07 Thread Christopher Schultz
Chuck, On 6/7/24 10:02, Chuck Caldarale wrote: On Jun 7, 2024, at 08:11, Christopher Schultz wrote: On 6/7/24 01:49, Mark Thomas wrote: On 06/06/2024 18:48, Dave Breeze wrote: Thanks Mark appreciate that the url was for 8.0 With regards to classpath that was my first attempt - unfortunat

Re: Embedded Tomcat common classloader

2024-06-07 Thread Chuck Caldarale
> On Jun 7, 2024, at 08:11, Christopher Schultz > wrote: > > On 6/7/24 01:49, Mark Thomas wrote: >> On 06/06/2024 18:48, Dave Breeze wrote: >>> Thanks Mark >>> appreciate that the url was for 8.0 >>> >>> With regards to classpath that was my first attempt - unfortunately it >>> would seem tha

Re: Embedded Tomcat common classloader

2024-06-07 Thread Christopher Schultz
Mark, On 6/7/24 01:49, Mark Thomas wrote: On 06/06/2024 18:48, Dave Breeze wrote: Thanks Mark appreciate that the url was for 8.0 With regards to classpath that was my first attempt - unfortunately it would seem that Tomcat does not support wildcards in the classpath - for example dirpath/lib/

Re: Embedded Tomcat common classloader

2024-06-06 Thread Mark Thomas
On 06/06/2024 18:48, Dave Breeze wrote: Thanks Mark appreciate that the url was for 8.0 With regards to classpath that was my first attempt - unfortunately it would seem that Tomcat does not support wildcards in the classpath - for example dirpath/lib/*.jar - at least in version 9. The require

Re: Embedded Tomcat common classloader

2024-06-06 Thread Dave Breeze
Thanks Mark appreciate that the url was for 8.0 With regards to classpath that was my first attempt - unfortunately it would seem that Tomcat does not support wildcards in the classpath - for example dirpath/lib/*.jar - at least in version 9. Dave Breeze Linkedin:https://uk.linkedin.com/in/dabre

Re: Embedded Tomcat common classloader

2024-06-06 Thread Mark Thomas
On 06/06/2024 17:52, Dave Breeze wrote: I have an issue with embedded Tomcat and classloaders. I have a java servlet application that runs in an embedded Tomcat(9.0.70) instance. https://tomcat.apache.org/tomcat-8.0-doc/class-loader-howto.html Those are the Tomcat 8.0.x docs. You are us

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

2022-12-23 Thread Mark Thomas
On 23/12/2022 03:28, Tim N wrote: Do you think this thread is useful info for any Tomcat-embedded Java 17 migration guide/how-to? I'm happy to tidy it up and contribute if there's an official Tomcat-embedded place for it. It is on the mailing list so it shoudl alreayd be findable. The wiki is

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

2022-12-22 Thread Tim N
> This should be unnecessary. The classes in that package should be > included in tomcat-embed-core Nice - thanks. I was reading and using the catalina code, but after trimming down my code it no longer needs that dependency. Do you think this thread is useful info for any Tomcat-embedded Java 17

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

2022-12-22 Thread Mark Thomas
On 21/12/2022 22:37, Tim N wrote: This was fixed by adding "--add-opens=java.base/java.lang=ALL-UNNAMED". Now all applications are running, and various other issues have been fixed by other "--add-opens" arguments. So these and the last couple of issues are related to Java 17 and not the classloa

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

2022-12-21 Thread Tim N
This was fixed by adding "--add-opens=java.base/java.lang=ALL-UNNAMED". Now all applications are running, and various other issues have been fixed by other "--add-opens" arguments. So these and the last couple of issues are related to Java 17 and not the classloader code above. Can a Tomcat expert

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

2022-12-20 Thread Tim N
After sorting out the new dependencies (I think) 2 of the 3 web-apps are now running! One fails at startup with Caused by: java.lang.LinkageError: loader java.net.URLClassLoader @2328c243 attempted duplicate class definition for mypackage.MyUserDetailsService$$EnhancerBySpringCGLIB$$f761e392. (myp

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 class > com.sun.activation.registries.LogSup

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

2022-12-20 Thread Tim N
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.registries.LogSupport and javax.activation.MimetypesFileTypeMap are in unnamed module of loa

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

2022-12-20 Thread Tim N
I tried this: List repositories = new ArrayList<>(); repositories.add(new ClassLoaderFactory.Repository(new File("/dir1").getAbsolutePath(), ClassLoaderFactory.RepositoryType.DIR)); repositories.add(new ClassLoaderFactory.Repository(new File("sub-mod1/target/classes").getAbsolutePath(), ClassLoade

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

2022-12-20 Thread Tim N
> The custom class loader approach described in one of the answers is a > viable option. Thanks. > No. The same class loader hierarchy isn't constructed when running in > embedded mode. It looks like I would need to replicate all the classloading capabilities of Tomcat (e.g. loading classes from

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

2022-12-14 Thread Mark Thomas
On 14/12/2022 03:20, Tim N wrote: 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-classloa

RE: Embedded Tomcat 9.0.33

2021-03-21 Thread S Abirami
Thanks Christopher for detailed explanation with testing tools. -Original Message- From: Christopher Schultz Sent: Sunday, March 21, 2021 9:02 AM To: users@tomcat.apache.org Subject: Re: Embedded Tomcat 9.0.33 Abirami, On 3/20/21 11:36, S Abirami wrote: > We have deployed embed

Re: Embedded Tomcat 9.0.33

2021-03-20 Thread Christopher Schultz
Abirami, On 3/20/21 11:36, S Abirami wrote: We have deployed embedded tomcat in RHEL 7 with jdk 1.8. For sweet32 vulnerability, we have configured jdk.tls.disabled.algorithm to remove the encryption cipher have 64bit block size. I need a clarification whether JDK configuration is enough for em

Re: Embedded Tomcat 9.0.43 : WINDOW_UPDATE not sent when receiving http2 requests over unknown url

2021-03-15 Thread Mark Thomas
On 11/03/2021 20:01, Doug Whitfield wrote: I am working on a fix which I expect to be in the releases due out in ~1 month's time. Thanks Mark! Is there any chance of a patch being available before then that we might be able to backport locally? It is fixed in 10.0.x, 9.0.x and 8.5.x now. I

Re: Embedded Tomcat 9.0.43 : WINDOW_UPDATE not sent when receiving http2 requests over unknown url

2021-03-11 Thread Doug Whitfield
> It exists in all 8.5.x, 9.0.x and 10.0.x versions. It has been there > since the beginning of HTTP/2 support. Based on our testing the issue was introduced in 9.0.19 and 8.5.55 (we haven’t done any testing on the 10.x branch), which is slightly after the beginning of HTTP/2 support. I don’t

Re: Embedded Tomcat 9.0.43 : WINDOW_UPDATE not sent when receiving http2 requests over unknown url

2021-03-11 Thread Doug Whitfield
>I am working on a fix which I expect to be in the releases due out in ~1 > month's time. Thanks Mark! Is there any chance of a patch being available before then that we might be able to backport locally? This e-mail may contain information that is privileged or confidential. If you are not t

Re: Embedded Tomcat 9.0.43 : WINDOW_UPDATE not sent when receiving http2 requests over unknown url

2021-03-11 Thread Mark Thomas
On 11/03/2021 19:09, Doug Whitfield wrote: Just FYI: I was able to reproduce this issue on 8.5.64 and 9.0.44. I’m going to start doing some testing in earlier versions of 8.5 to see if the issue exist there as well as far as regressions. It exists in all 8.5.x, 9.0.x and 10.0.x versions. I

Re: Embedded Tomcat 9.0.43 : WINDOW_UPDATE not sent when receiving http2 requests over unknown url

2021-03-11 Thread Doug Whitfield
-Original Message- From: Mark Thomas Sent: Wednesday, March 10, 2021 6:28 PM To: users@tomcat.apache.org Subject: Re: Embedded Tomcat 9.0.43 : WINDOW_UPDATE not sent when receiving http2 requests over unknown url On 10/03/2021 05:26, Arshiya Shariff wrote: > Hi All, > We are

RE: Embedded Tomcat 9.0.43 : WINDOW_UPDATE not sent when receiving http2 requests over unknown url

2021-03-10 Thread Arshiya Shariff
Thank you Mark . Please keep us posted regarding the fix . -Original Message- From: Mark Thomas Sent: Wednesday, March 10, 2021 6:28 PM To: users@tomcat.apache.org Subject: Re: Embedded Tomcat 9.0.43 : WINDOW_UPDATE not sent when receiving http2 requests over unknown url On 10/03/2021

Re: Embedded Tomcat 9.0.43 : WINDOW_UPDATE not sent when receiving http2 requests over unknown url

2021-03-10 Thread Mark Thomas
On 10/03/2021 05:26, Arshiya Shariff wrote: Hi All, We are using embedded tomcat version 9.0.43 in our application to transport http/2 packets between 2 systems (h2c connection). All parameters used are the tomcat defaults. We are facing the below issue : 1. Tomcat is not sending WINDOW_U

Re: embedded tomcat and context.xml

2020-12-04 Thread Christopher Schultz
Rob, On 12/3/20 17:46, Rob Sargent wrote: Again, much appreciated feedback.  (I never think what I'm doing is all that special) At this point, the fact that you are using embedded Tomcat is really just a detail that doesn't affect the greater question of how to manage your complex database p

Re: embedded tomcat and context.xml

2020-12-03 Thread Rob Sargent
Again, much appreciated feedback.  (I never think what I'm doing is all that special) Though two concurrent users would really be "wildly successful", each of those users will fire up hundreds (thousands if we get permission/capacity) of EC2 instances and start pounding the db, so I think con

Re: embedded tomcat and context.xml

2020-12-03 Thread Christopher Schultz
Rob, On 12/3/20 11:03, Rob Sargent wrote: Thanks for you time. Your response goes a long way to explaining why there is so little specific information on embedding tomcat. Only programmers are interested in using embedded Tomcat, so having "Tomcat Embedded For Dummies" isn't terribly useful. (I

Re: embedded tomcat and context.xml

2020-12-03 Thread Rob Sargent
Chris, Thanks for you time. Your response goes a long way to explaining why there is so little specific information on embedding tomcat. Really, just as I said. I had convinced myself from several items encountered on the web that an embedded tomcat instance would not read the standard conf/*.x

Re: embedded tomcat and context.xml

2020-12-03 Thread Christopher Schultz
Rob, On 12/2/20 13:31, Rob Sargent wrote: I'm old and easily confused: does an embedded tomcat server read (any) context.xml file?  I find conflicting answers /out there./ Using tomcat 9.0.40    embeddedTomcat =new Tomcat();    embeddedTomcat.setPort(tomcatPort);    embeddedTomcat.enableNa

Re: embedded tomcat and context.xml

2020-12-02 Thread Rob Sargent
typo: should read "none of which are named in the web.xml" (not "which are NOT" as below) On 12/2/20 11:31 AM, Rob Sargent wrote: I'm old and easily confused: does an embedded tomcat server read (any) context.xml file?  I find conflicting answers /out there./ Using tomcat 9.0.40    embeddedT

Re: Embedded Tomcat server starts but unable to connect via browser on mobile phone.

2019-09-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Linus, On 9/12/19 09:33, LINUS FERNANDES wrote: > I have set up an embedded Tomcat server program on Arch Linux on > Termux using OpenJDK version 12. What version of Tomcat? > However, I am unable to connect to the server using the browser. > The

Re: Embedded Tomcat 9.0.11 : Already port in use

2018-10-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Abirami, On 10/11/18 8:11 AM, S Abirami wrote: > Hi All, > > I have checked the port is not in use before allocating to the > connector and started the tomcat. During start , it's mentioning > that Port already in use. It is going and binding to th

Re: Embedded tomcat does not find web-fragment in jars outside web-inf\lib continued...

2017-10-04 Thread Mark Thomas
On 04/10/17 08:53, Brian Toal wrote: > The chain [1] left of with: > "The relevant language is in section 8.2.1 > > > If a framework wants its META-INF/web-fragment.xml honored in such a way > that it augments a web application's web.xml, the framework must be bundled > within the web application

Re: Embedded tomcat does not find web-fragment in jars outside web-inf\lib continued...

2017-10-04 Thread Brian Toal
Jetty also makes it very easy to scan jar for @WebServlet, @WebFilter, @WebListener via AnnotationConfiguration. http://www.eclipse.org/jetty/documentation/9.4.x/configuring-webapps.html On Wed, Oct 4, 2017 at 12:53 AM, Brian Toal wrote: > The chain [1] left of with: > "The relevant language is

RE: Embedded Tomcat throws FileNotFoundException for TldScanner upgrade from 8.0.x to 8.0.x

2017-08-04 Thread S Abirami
Hi Thomas, Thanks for the response. It worked for me. Regards, Abirami.S -Original Message- From: Mark Thomas [mailto:ma...@apache.org] Sent: Friday, August 04, 2017 3:30 PM To: users >> Tomcat Users List Subject: Re: Embedded Tomcat throws FileNotFoundException for TldScanner u

RE: Embedded Tomcat throws FileNotFoundException for TldScanner upgrade from 8.0.x to 8.0.x

2017-08-04 Thread S Abirami
HI Thomas, Thanks for the response. It worked for me. Regards, Abirami.S -Original Message- From: Mark Thomas [mailto:ma...@apache.org] Sent: Friday, August 04, 2017 3:30 PM To: users >> Tomcat Users List Subject: Re: Embedded Tomcat throws FileNotFoundException for TldScanner u

Re: Embedded Tomcat throws FileNotFoundException for TldScanner upgrade from 8.0.x to 8.0.x

2017-08-04 Thread M. Manna
he method call of = Tomcat.addwebapp(contextpath,docpath); itself > triggering this exception. > So whatever I need to do before addwebapp. > > Regards, > Abirami.S > -Original Message- > From: S Abirami > Sent: Friday, August 04, 2017 3:08 PM > To: Tomcat Users List &

Re: Embedded Tomcat throws FileNotFoundException for TldScanner upgrade from 8.0.x to 8.0.x

2017-08-04 Thread Mark Thomas
ner or you want one of the addContext() methods which won't do anything automatically and requires you to set everything programmatically. Mark > > Regards, > Abirami.S > -Original Message- > From: S Abirami > Sent: Friday, August 04, 2017 3:08 PM > To: Tomcat

RE: Embedded Tomcat throws FileNotFoundException for TldScanner upgrade from 8.0.x to 8.0.x

2017-08-04 Thread S Abirami
method call of = Tomcat.addwebapp(contextpath,docpath); itself triggering this exception. So whatever I need to do before addwebapp. Regards, Abirami.S -Original Message- From: S Abirami Sent: Friday, August 04, 2017 3:08 PM To: Tomcat Users List Subject: RE: Embedded Tomcat throws

RE: Embedded Tomcat throws FileNotFoundException for TldScanner upgrade from 8.0.x to 8.0.x

2017-08-04 Thread S Abirami
Hi I tried that also .Still it's giving the same error msg. Please help me to solve the issue. Regards, Abirami.S -Original Message- From: M. Manna [mailto:manme...@gmail.com] Sent: Friday, August 04, 2017 2:24 PM To: Tomcat Users List Subject: Re: Embedded Tomcat t

Re: Embedded Tomcat throws FileNotFoundException for TldScanner upgrade from 8.0.x to 8.0.x

2017-08-04 Thread M. Manna
o I don’t want to scan any jar files. > I want to disable Jarscanner. > > Regards, > Abirami.S > > -Original Message- > From: M. Manna [mailto:manme...@gmail.com] > Sent: Friday, August 04, 2017 1:26 PM > To: Tomcat Users List > Subject: Re: Embedded Tom

RE: Embedded Tomcat throws FileNotFoundException for TldScanner upgrade from 8.0.x to 8.0.x

2017-08-04 Thread S Abirami
List Subject: Re: Embedded Tomcat throws FileNotFoundException for TldScanner upgrade from 8.0.x to 8.0.x Okay, where are you getting your contextPath from? The code you posted is below: 3)Context context= Tomcat.addwebapp(contextpath,docpath); StandardJarScanner scanner=new StandardJarScanner

Re: Embedded Tomcat throws FileNotFoundException for TldScanner upgrade from 8.0.x to 8.0.x

2017-08-04 Thread M. Manna
.com] > Sent: Friday, August 04, 2017 1:18 PM > To: Tomcat Users List > Subject: Re: Embedded Tomcat throws FileNotFoundException for TldScanner > upgrade from 8.0.x to 8.0.x > > Hi, > > What is in your context.xml file? You can find it in conf directory. > > Regar

RE: Embedded Tomcat throws FileNotFoundException for TldScanner upgrade from 8.0.x to 8.0.x

2017-08-04 Thread S Abirami
: Embedded Tomcat throws FileNotFoundException for TldScanner upgrade from 8.0.x to 8.0.x Hi, What is in your context.xml file? You can find it in conf directory. Regards, On 4 August 2017 at 08:43, S Abirami wrote: > Hi , > > I am using Embedded tomcat to create webapp. when I am

Re: Embedded Tomcat throws FileNotFoundException for TldScanner upgrade from 8.0.x to 8.0.x

2017-08-04 Thread M. Manna
Hi, What is in your context.xml file? You can find it in conf directory. Regards, On 4 August 2017 at 08:43, S Abirami wrote: > Hi , > > I am using Embedded tomcat to create webapp. when I am trying to add > web app it is throwing the following exception but Server started > successfully

Re: Embedded tomcat does not find web-fragment in jars outside web-inf\lib

2017-05-11 Thread Michael Heinen
Am 10.05.2017 um 19:59 schrieb Mark Thomas: On 10/05/17 12:40, Michael Heinen wrote: Am 10.05.2017 um 12:18 schrieb Mark Thomas: On 10/05/17 10:26, Michael Heinen wrote: Am 10.05.2017 um 00:40 schrieb Mark Thomas: On 09/05/17 15:25, Michael Heinen wrote: Hi all, I am currently mirgating an

Re: Embedded tomcat does not find web-fragment in jars outside web-inf\lib

2017-05-10 Thread Mark Thomas
On 10/05/17 12:40, Michael Heinen wrote: > Am 10.05.2017 um 12:18 schrieb Mark Thomas: >> On 10/05/17 10:26, Michael Heinen wrote: >>> Am 10.05.2017 um 00:40 schrieb Mark Thomas: On 09/05/17 15:25, Michael Heinen wrote: > Hi all, > > I am currently mirgating an application from Tom

Re: Embedded tomcat does not find web-fragment in jars outside web-inf\lib

2017-05-10 Thread Michael Heinen
Am 10.05.2017 um 12:18 schrieb Mark Thomas: On 10/05/17 10:26, Michael Heinen wrote: Am 10.05.2017 um 00:40 schrieb Mark Thomas: On 09/05/17 15:25, Michael Heinen wrote: Hi all, I am currently mirgating an application from Tomcat 7.0.73 to 8.0.43. On development platforms we use an embedded t

Re: Embedded tomcat does not find web-fragment in jars outside web-inf\lib

2017-05-10 Thread Mark Thomas
On 10/05/17 10:26, Michael Heinen wrote: > Am 10.05.2017 um 00:40 schrieb Mark Thomas: >> On 09/05/17 15:25, Michael Heinen wrote: >>> Hi all, >>> >>> I am currently mirgating an application from Tomcat 7.0.73 to 8.0.43. >>> On development platforms we use an embedded tomcat. >>> On of the jars on

Re: Embedded tomcat does not find web-fragment in jars outside web-inf\lib

2017-05-10 Thread Michael Heinen
Am 10.05.2017 um 00:40 schrieb Mark Thomas: On 09/05/17 15:25, Michael Heinen wrote: Hi all, I am currently mirgating an application from Tomcat 7.0.73 to 8.0.43. On development platforms we use an embedded tomcat. On of the jars on the classpath contains a web-fragment.xml in it's META-INF fol

Re: Embedded tomcat does not find web-fragment in jars outside web-inf\lib

2017-05-09 Thread Mark Thomas
On 09/05/17 15:25, Michael Heinen wrote: > Hi all, > > I am currently mirgating an application from Tomcat 7.0.73 to 8.0.43. > On development platforms we use an embedded tomcat. > On of the jars on the classpath contains a web-fragment.xml in it's > META-INF folder. > This jar file is NOT located

Re: embedded tomcat (8.0.39) shared jars

2017-01-25 Thread Tom Eugelink
I've examined the issue more closely. The class (interface) is loaded twice, once by WebappClassLoader and once by Launcher$AppClassLoader, both from StandardContext.listenerStart() line: 4853 The WebappClassLoader one is reached via regular method calls, the other through reflection:

Re: Embedded Tomcat does not automatically create "webapps" folder

2016-06-01 Thread Fabrizio Cucci
On 1 June 2016 at 15:38, Mark Thomas wrote: > > On 01/06/2016 15:30, Fabrizio Cucci wrote: > > Hi everyone, > > > > I was playing with embedded Tomcat 8.0.33 and I noticed something > > unexpected. > > > > If I create my embedded Tomcat like this: > > > > Tomcat tomcat = new Tomcat(); > > tomcat.s

Re: Embedded Tomcat does not automatically create "webapps" folder

2016-06-01 Thread Mark Thomas
On 01/06/2016 15:30, Fabrizio Cucci wrote: > Hi everyone, > > I was playing with embedded Tomcat 8.0.33 and I noticed something > unexpected. > > If I create my embedded Tomcat like this: > > Tomcat tomcat = new Tomcat(); > tomcat.setPort(8080); > tomcat.setBaseDir("myBaseDir"); > > start the s

RE: embedded tomcat: Call ChatAnnotation.broadcast(String) from application?

2015-03-04 Thread Enke, Dr., Michael
>> ... There should be only one static function / static >> variable in the JVM!? > > That statement is incorrect. > > There is only one static function / variable per class instance. > > A class is uniquely identified by its name AND class loader. > > Hence in a multiple class-loader environment l

Re: embedded tomcat: Call ChatAnnotation.broadcast(String) from application?

2015-03-04 Thread Mark Thomas
On 04/03/2015 18:15, Enke, Dr., Michael wrote: > Hello all, I start a tomcat from my application and call the static > ChatAnnotation.broadcast(String) (from examples) out of my > application. This is possible but anyhow my application seems to > access a "different" broadcast(String) method: If th

Re: embedded tomcat Defense Information Systems Agency

2014-10-24 Thread Mark Thomas
On 24/10/2014 23:30, Jason Ricles wrote: > Does anyone happen to know if embedded tomcat is in Defense > Information Systems Agency list? I know regular tomcat is but I have a > need to use embedded tomcat for what I need to accomplish. It is exactly the same code, just in fewer, larger JARs. In

Re: Embedded Tomcat

2014-10-15 Thread Achim Nierbeck
Hi Mark, thanks for the pointer I think I've found the reason. Could it be that the initialization of the servlets changed from 7 to 8 :) I used to load the servlet in the initialization phase. So that's the part I need to alter. Need to move that part to the loadOnStartup method call. just in ca

Re: Embedded Tomcat

2014-10-15 Thread Mark Thomas
On 15/10/2014 11:38, Achim Nierbeck wrote: > Hi Johan, > > 2014-10-15 12:22 GMT+02:00 Johan Compagner : > >> yes we tried to go that way with whiteboard registration also (jetty is >> shipped by default in eclipse also with that) >> but that was way to hard to control and to really configure the

Re: Embedded Tomcat

2014-10-15 Thread Achim Nierbeck
Hi Johan, 2014-10-15 12:22 GMT+02:00 Johan Compagner : > yes we tried to go that way with whiteboard registration also (jetty is > shipped by default in eclipse also with that) > but that was way to hard to control and to really configure the way we want > so we decided to make tomcat a full osgi

Re: Embedded Tomcat

2014-10-15 Thread Johan Compagner
yes we tried to go that way with whiteboard registration also (jetty is shipped by default in eclipse also with that) but that was way to hard to control and to really configure the way we want so we decided to make tomcat a full osgi package itself. On 15 October 2014 12:13, Achim Nierbeck wrote

Re: Embedded Tomcat

2014-10-15 Thread Achim Nierbeck
Hi Johan, thanks for the pointer. To me it looks like it does have a different scope. Pax Web has been one of the first OSGi HttpService providers with additional support for Web Application Bundles (std. war with OSGi Manifest) This has been achieved so far very successfully with Jetty. Now we tr

Re: Embedded Tomcat

2014-10-15 Thread Johan Compagner
maybe you are interested in this one: https://github.com/Servoy/servoy-eclipse-tomcat thats also a osgi enabled tomcat (but the full tomcat) we use that one right in eclipse, where other plugins just contribute filters and servlets On 14 October 2014 23:56, Achim Nierbeck wrote: > Hi > > I'm

Re: Embedded Tomcat question

2014-07-10 Thread Mark Thomas
On 10/07/2014 03:13, John D. Ament wrote: > Well, thanks for the helpful advice thus far.. > > So, now that I've added a listener properly, I get this: > > java.lang.UnsupportedOperationException: Section 4.4 of the Servlet > 3.0 specification does not permit this method to be called from a > Ser

Re: Embedded Tomcat question

2014-07-09 Thread John D. Ament
Well, thanks for the helpful advice thus far.. So, now that I've added a listener properly, I get this: java.lang.UnsupportedOperationException: Section 4.4 of the Servlet 3.0 specification does not permit this method to be called from a ServletContextListener that was not defined in web.xml, a w

Re: Embedded Tomcat question

2014-07-01 Thread Mark Thomas
On 01/07/2014 17:16, John D. Ament wrote: > I looked for the source code, at least on github, there's no tag for > 7.0.55 defined (see [1]) Given you are using 7.0.54, why would you look for a tag for 7.0.55? > How do I get access to a StandardContext? CAn I cast the Context object? Yes. It wou

Re: Embedded Tomcat question

2014-07-01 Thread John D. Ament
I looked for the source code, at least on github, there's no tag for 7.0.55 defined (see [1]) How do I get access to a StandardContext? CAn I cast the Context object? [1]: https://github.com/apache/tomcat On Mon, Jun 30, 2014 at 4:51 AM, Mark Thomas wrote: > On 30/06/2014 01:27, John D. Ament

Re: Embedded Tomcat question

2014-06-30 Thread Mark Thomas
On 30/06/2014 01:27, John D. Ament wrote: > I spoke a little too quickly, ServletContext is avilable from ctx > (just didn't search hard enough). Adding the request listener here > though results in: > > java.lang.NullPointerException > > at > org.apache.catalina.core.ApplicationContext

Re: Embedded Tomcat question

2014-06-29 Thread John D. Ament
I spoke a little too quickly, ServletContext is avilable from ctx (just didn't search hard enough). Adding the request listener here though results in: java.lang.NullPointerException at org.apache.catalina.core.ApplicationContext.createListener(ApplicationContext.java:1402) at

Re: Embedded Tomcat question

2014-06-29 Thread John D. Ament
Hi, I'm on Tomcat 7.0.54, though I would hope your APIs aren't volatile enough that your internals should matter.. I tried this: Wrapper wrapper = Tomcat.addServlet(ctx,"Greeter",GreeterServlet.class.getName()); wrapper.addMapping("/*"); wrapper.getServlet().getServletConfig().getServletContext(

RE: Embedded Tomcat question

2014-06-29 Thread Caldarale, Charles R
> From: John D. Ament [mailto:john.d.am...@gmail.com] > Subject: Embedded Tomcat question > Playing around a bit with embedded tomcat. It looks like there are > APIs to add all of the tomcat specific listeners, however how would I > add a ServletRequestListener? Look in the servlet spec for the

Re: Embedded Tomcat AJP Issue

2013-11-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Edwin, On 11/20/13, 5:27 PM, Ramirez, Edwin wrote: > I am new to Tomcat and I was wondering if you could help me. I am > trying to use tomcat in an embedded scenario, but I am unable to > get the tomcat connector to support AJP connections. What

Re: Embedded Tomcat 7 SSL Properties

2013-05-16 Thread Mark Thomas
On 16/05/2013 04:09, Chirag Dewan wrote: > > > Sorry for the previous mail. Adding Subject. > > - Forwarded Message - > From: Chirag Dewan > To: Tomcat Users List > Sent: Thursday, 16 May 2013 8:37 AM > Subject: > > > > Hi All, > > I am upgrading my Embedded Tomcat 6 to Tomcat 7

Re: Embedded Tomcat on free port

2013-03-18 Thread Mark Thomas
On 18/03/2013 08:56, Jan Ehrhardt wrote: > Hello, > > I want to use Tomcat embedded to my application, but I do not want to set a > fixed port. Instead I want Tomcat to choose a free port itself. This works > of cause by setting the port to 0, but asking the Tomcat object for the > port, will retu

Re: Embedded Tomcat JavaDoc Not Complete

2013-03-15 Thread Nick Williams
On Mar 15, 2013, at 3:15 PM, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Nick, > > On 3/15/13 3:56 PM, Nick Williams wrote: >> I tried using a JAR URL. (If I remember correctly, it ended up >> looking something like >> jar:url://C:/Users/Nicholas/Desktop

Re: Embedded Tomcat JavaDoc Not Complete

2013-03-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Nick, On 3/15/13 3:56 PM, Nick Williams wrote: > I tried using a JAR URL. (If I remember correctly, it ended up > looking something like > jar:url://C:/Users/Nicholas/Desktop/Project/target/Test.jar!/Test.war. That > doesn't look right. > I tri

Re: Embedded Tomcat JavaDoc Not Complete

2013-03-15 Thread Nick Williams
On Mar 15, 2013, at 2:15 PM, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Nick, > > On 3/13/13 2:19 PM, Nicholas Williams wrote: >> On Wed, Mar 13, 2013 at 12:10 PM, Christopher Schultz >> wrote: >>> You mean addWebapp methods? They seem fairly self-expla

Re: Embedded Tomcat JavaDoc Not Complete

2013-03-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Nick, On 3/13/13 2:19 PM, Nicholas Williams wrote: > On Wed, Mar 13, 2013 at 12:10 PM, Christopher Schultz > wrote: >> You mean addWebapp methods? They seem fairly self-explanatory. > > Yes. I meant addWebapp methods. That was a typo. > > There

Re: Embedded Tomcat JavaDoc Not Complete

2013-03-13 Thread Nicholas Williams
On Wed, Mar 13, 2013 at 12:10 PM, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Nick, > > On 3/12/13 11:50 PM, Nick Williams wrote: >> >> On Mar 12, 2013, at 10:47 PM, Nick Williams wrote: >> >>> The JavaDoc for o.a.c.startup.Tomcat [1] is not complete. >>> Imp

Re: Embedded Tomcat JavaDoc Not Complete

2013-03-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Nick, On 3/12/13 11:50 PM, Nick Williams wrote: > > On Mar 12, 2013, at 10:47 PM, Nick Williams wrote: > >> The JavaDoc for o.a.c.startup.Tomcat [1] is not complete. >> Importantly, it is lacking complete information about all three >> addWebapp

Re: Embedded Tomcat JavaDoc Not Complete

2013-03-12 Thread Nick Williams
On Mar 12, 2013, at 10:47 PM, Nick Williams wrote: > The JavaDoc for o.a.c.startup.Tomcat [1] is not complete. Importantly, it is > lacking complete information about all three addWebapp classes. Ultimately, I > want to create one giant JAR file with my classes, Tomcat classes, servlet > class

Re: Embedded Tomcat how to use addContext for docBase

2013-01-30 Thread Jimmy Johnson
Awesome! Thanks a million Konstantin, it worked. As for using the /tmp folder. "/tmp/images" is it actually just a place where I give the images a uuid name, process them, and then save them elsewhere immediately I then delete the original so it should be okay. I will also add in the File.getAbs

Re: Embedded Tomcat how to use addContext for docBase

2013-01-30 Thread Konstantin Kolinko
2013/1/30 Jimmy Johnson : > Ah, Okay, so I should use the addWebapp method to add a path to an external > folder? > > e.g tomcat.addWebapp("/MyWebApp/images", "/tmp/images"); > It should not matter whether it is an external folder or not, as you are not relying on the autodeployment feature. There

Re: Embedded Tomcat how to use addContext for docBase

2013-01-29 Thread Jimmy Johnson
Ah, Okay, so I should use the addWebapp method to add a path to an external folder? e.g tomcat.addWebapp("/MyWebApp/images", "/tmp/images"); Thanks, Jimmy On Tue, Jan 29, 2013 at 2:06 PM, Konstantin Kolinko wrote: > 2013/1/29 Jimmy Johnson : > > System: Mac OS X 10.8 > > Tomcat Version: 7.0.30

Re: Embedded Tomcat how to use addContext for docBase

2013-01-29 Thread Konstantin Kolinko
2013/1/29 Jimmy Johnson : > System: Mac OS X 10.8 > Tomcat Version: 7.0.30 > Language: Java > > I'm trying to set up the context in an embedded Tomcat instance to serve > files from a local directory not within the deployed folder. > > In the standard server.xml when using the standard Tomcat confi

Re: Embedded tomcat won't resolve Spring application properties

2012-10-01 Thread Julien Martin
It is working. This is odd... I changed from * *to ** Notice I removed the leading slashes. It is now working with Tomcat Maven plugin. What caused the different behavior between standard Tomcat and maven plugin Tomcat, I can't explain... Regards, J. 2012/10/1 Julien Martin > I am still trying

Re: Embedded tomcat won't resolve Spring application properties

2012-10-01 Thread Julien Martin
I am still trying to work out how to fix this problem. Can someone please explain to me what the difference is between standard Tomcat and embedded Tomcat (maven plugin)? Especially where does the embedded (maven plugin) Tomcat looks for the webapp resources? Here is how I configured the plugin:

Re: Embedded tomcat won't resolve Spring application properties

2012-10-01 Thread Julien Martin
Thanks Daniel, I've just deployed my app onto a standard Tomcat: it works ok. My Spring config is as follows (the relevant parts at least): Regards, J. 2012/10/1 Daniel Mikusa > On Oct 1, 2012, at 5:42 AM, Julien Martin wrote: > > > Hello, > > > > I am experiencing trouble with my e

Re: Embedded tomcat won't resolve Spring application properties

2012-10-01 Thread Daniel Mikusa
On Oct 1, 2012, at 5:42 AM, Julien Martin wrote: > Hello, > > I am experiencing trouble with my embedded tomcat: when I run my Spring app > using the embedded Tomcat, it seems the properties are not resolved. What about using a standard (i.e. not embedded, not part of Eclipse) Tomcat installat

Re: Embedded Tomcat 6 & 7 logging to file

2012-07-17 Thread Benjamin Muschko
Thanks for clarifying it. That helped. -- View this message in context: http://tomcat.10.n6.nabble.com/Embedded-Tomcat-6-7-logging-to-file-tp4984104p4984163.html Sent from the Tomcat - User mailing list archive at Nabble.com. -

Re: Embedded Tomcat 6 & 7 logging to file

2012-07-15 Thread Konstantin Kolinko
2012/7/16 Benjamin Muschko : > Hi, > > I'd like to redirect the embedded Tomcat's startup logging messages to a > file. What I am looking for is something like this: > > ... > Initializing ProtocolHandler ["http-bio-8080"] > Initializing ProtocolHandler ["http-bio-8091"] > Starting service Tomcat >

Re: Embedded Tomcat does not detect @HandlesTypes classes

2012-03-21 Thread Mark Thomas
On 21/03/2012 07:31, Paul Middelkoop wrote: > Hi, > > When I run Tomcat Embedded from Eclipse it is not able to detect > my @HandlesTypes classes. This works fine when I run Tomcat non-embedded. > This only happens if the classes that should be picked up by @HandlesTypes > are not in a JAR file. I

RE: Embedded tomcat and unit testing.. Tomcat either stops or my unit tests don't execute? [SEC=UNCLASSIFIED]

2011-06-15 Thread Fraser, James
UNCLASSIFIED Thanks Chris! -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Thursday, 16 June 2011 5:01 AM To: Tomcat Users List Subject: Re: Embedded tomcat and unit testing.. Tomcat either stops or my unit tests don't execute? [SEC=UNCLASS

Re: Embedded tomcat and unit testing.. Tomcat either stops or my unit tests don't execute? [SEC=UNCLASSIFIED]

2011-06-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 James, On 6/15/2011 12:09 AM, Fraser, James wrote: > Thanks for your help. I got it working in the end. I suspect the main > problem had to do with not terminating the running instance of Tomcat > correctly in a tear-down method. That might do it, de

RE: Embedded tomcat and unit testing.. Tomcat either stops or my unit tests don't execute? [SEC=UNCLASSIFIED]

2011-06-14 Thread Fraser, James
cat.stop(); } tomcat.destroy(); } } - James -Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Wednesday, 15 June 2011 11:27 AM To: Tomcat Users List Subject: RE: Embedded tomcat and unit testing.. Tomcat either stops or my unit tests don't

RE: Embedded tomcat and unit testing.. Tomcat either stops or my unit tests don't execute? [SEC=UNCLASSIFIED]

2011-06-14 Thread Caldarale, Charles R
> From: Fraser, James [mailto:james.fra...@dsto.defence.gov.au] > Subject: RE: Embedded tomcat and unit testing.. Tomcat either > stops or my unit tests don't execute? [SEC=UNCLASSIFIED] > I read that Apache use embedded Tomcat for unit testing. Are there any > examples flo

RE: Embedded tomcat and unit testing.. Tomcat either stops or my unit tests don't execute? [SEC=UNCLASSIFIED]

2011-06-14 Thread Fraser, James
UNCLASSIFIED I read that Apache use embedded Tomcat for unit testing. Are there any examples floating around? -Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Wednesday, 15 June 2011 10:01 AM To: Tomcat Users List Subject: RE: Embedded tomcat and

  1   2   >