[Book Information] Apache TomEE Cookbook

2013-08-22 Thread Gurkan Erdogdu
Hi Tomcat users, I have written a small cook book about Apache TomEE (Apache Tomcat + Web Profile Stack). My book "Apache TomEE Cookbook" published by Amazon Create Space. This is the first book in the market related to Apache TomEE. I thought that you can also interest with this book. You can

Re: Tomcat 8 Websocket API - Cookies & Headers

2013-08-22 Thread Niki Dokovski
On Fri, Aug 23, 2013 at 2:58 AM, toddfas wrote: > I'm trying to figure out how to get access to the cookies and headers > passed up in the Websocket handshake request on Tomcat 8. > > In Tomcat 7 the whole HttpServletRequest was passed into the > WebSocketServlet. createWebSocketInbound method so

what if I lost the keystore which generate the CSR

2013-08-22 Thread Jasper Lai
Sorry I am a beginner about ssl cert. according to http://tomcat.apache.org/tomcat-7.0-doc/ssl-howto.html#Create_a_local_Certificate_Signing_Request_(CSR) it will gen a keystore and CSR. we generate the CSR and send to Certificate Authority. What if I lost the keystore ? should I regen the CS

Re: Fwd: Tomcat 7 / Java 7 with TLS 1.2 algorithms

2013-08-22 Thread Dennis Sosnoski
Thanks, Aurélien. I'd seen the SHA384 versions listed in the JSSE Cipher Suite Names and thought they were available: http://docs.oracle.com/javase/7/docs/technotes/guides/security/StandardNames.html#ciphersuites I was really hoping to use one of the GCM suites, but I gather those are not offi

Tomcat 8 Websocket API - Cookies & Headers

2013-08-22 Thread toddfas
I'm trying to figure out how to get access to the cookies and headers passed up in the Websocket handshake request on Tomcat 8. In Tomcat 7 the whole HttpServletRequest was passed into the WebSocketServlet. createWebSocketInbound method so it was easy to grab from the request headers. In Tomcat 8

Re: Migrating from GlassFish to Tomcat 7

2013-08-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 B W, On 8/22/13 4:30 PM, B W wrote: > What is the advantage to using catalina.properties vs setenv.sh? If you use setenv.sh, then those system properties will only be available if you use the Tomcat scripts to launch. If you use jsvc or the Microso

RE: Tomcat 7 / Java 7 with TLS 1.2 algorithms

2013-08-22 Thread Martin Gainty
point of confusion Eric Rescorla specifically cites SHA384 in his cipher examples for TLS 1.2 Update http://www.ietf.org/rfc/rfc5246.txt http://www.ietf.org/proceedings/70/slides/tls-0.pdf Kuat Eshengazin used bltest as a test harness for SHA384 bltest -R -m prf_sha384 -k tests/prf_sha384/key0

Re: Migrating from GlassFish to Tomcat 7

2013-08-22 Thread B W
What is the advantage to using catalina.properties vs setenv.sh? On Thu, Aug 22, 2013 at 11:37 AM, Konstantin Kolinko wrote: > 2013/8/22 Daniel Mikusa : > > On Aug 22, 2013, at 8:48 AM, B W wrote: > > > >> I have a GWT application which currently is running on GlassFish 3.x. I > >> want to mig

Re: Having trouble with common.loader

2013-08-22 Thread Michael-O
Am 2013-08-22 21:40, schrieb Caldarale, Charles R: From: Michael-O [mailto:1983-01...@gmx.net] Subject: Re: Having trouble with common.loader IF you want to decouple libraries from your war, add them to your webapp's classpath, by configuring a VirtualWebappLoader , http://tomcat.apache.org/t

RE: Having trouble with common.loader

2013-08-22 Thread Caldarale, Charles R
> From: Michael-O [mailto:1983-01...@gmx.net] > Subject: Re: Having trouble with common.loader > > IF you want to decouple libraries from your war, add them to your > > webapp's classpath, by configuring a VirtualWebappLoader , > > http://tomcat.apache.org/tomcat-7.0-doc/config/loader.html#Virtu

Re: standalone use of Tomcat 8 websocket-api.jar getWebSocketContainer returning null

2013-08-22 Thread Niki Dokovski
On Thu, Aug 22, 2013 at 10:07 PM, Niki Dokovski wrote: > > > > On Thu, Aug 22, 2013 at 7:39 PM, Bob DeRemer wrote: > >> I’m trying to use the Tomcat8 jsr client functionality in a standalone >> java client. I’m trying to use the minimal number of jars, so I gabbed >> websocket-api.jar ONLY. Wh

Re: standalone use of Tomcat 8 websocket-api.jar getWebSocketContainer returning null

2013-08-22 Thread Niki Dokovski
On Thu, Aug 22, 2013 at 7:39 PM, Bob DeRemer wrote: > I’m trying to use the Tomcat8 jsr client functionality in a standalone > java client. I’m trying to use the minimal number of jars, so I gabbed > websocket-api.jar ONLY. When I call > ContainerProvider.getWebSocketContainer(), it returns nul

Re: Having trouble with common.loader

2013-08-22 Thread Michael-O
Am 2013-08-22 17:48, schrieb Konstantin Kolinko: 2013/8/22 Daniel Mikusa : On Aug 21, 2013, at 4:09 PM, David kerber wrote: Basically you're trying to defeat the way the system is designed to work. Don't do that… +1 Don't do what you've described unless you have a very good reason. It wi

Re: Having trouble with common.loader

2013-08-22 Thread Konstantin Kolinko
2013/8/22 D C : > On Thu, Aug 22, 2013 at 11:48 AM, Konstantin Kolinko > wrote: > >> 2013/8/22 Daniel Mikusa : >> > On Aug 21, 2013, at 4:09 PM, David kerber wrote: >> > >> >> Basically you're trying to defeat the way the system is designed to >> work. Don't do that… >> > >> > +1 Don't do what yo

is it possible to dynamically add servlets and websocket endpoints during startup based on our own configuration settings?

2013-08-22 Thread Bob DeRemer
I'm in the process of developing a configurable server application which must handle various protocols, but the respective endpoints must be configurable. Specifically, I would like to programmatically add both HTTP servlet(s) as well as WebSocket Servlets/Endpoints during the contextInitialize

RE: standalone use of Tomcat 8 websocket-api.jar getWebSocketContainer returning null

2013-08-22 Thread Bob DeRemer
> -Original Message- > From: Mark Thomas [mailto:ma...@apache.org] > Sent: Thursday, August 22, 2013 1:37 PM > To: Tomcat Users List > Subject: Re: standalone use of Tomcat 8 websocket-api.jar > getWebSocketContainer returning null > > On 22/08/2013 17:39, Bob DeRemer wrote: > > I'm tryi

Re: standalone use of Tomcat 8 websocket-api.jar getWebSocketContainer returning null

2013-08-22 Thread Mark Thomas
On 22/08/2013 17:39, Bob DeRemer wrote: > I’m trying to use the Tomcat8 jsr client functionality in a standalone > java client. I’m trying to use the minimal number of jars, so I gabbed > websocket-api.jar ONLY. When I call > ContainerProvider.getWebSocketContainer(), it returns null. > > Do I

Re: Having trouble with common.loader

2013-08-22 Thread Daniel Mikusa
On Aug 22, 2013, at 12:32 PM, D C wrote: > On Thu, Aug 22, 2013 at 11:57 AM, Daniel Mikusa wrote: > >> On Aug 22, 2013, at 11:31 AM, D C wrote: >> >>> On Thu, Aug 22, 2013 at 10:30 AM, Daniel Mikusa >> wrote: >>> On Aug 22, 2013, at 9:21 AM, D C wrote: > Ok, here goes. grep -

standalone use of Tomcat 8 websocket-api.jar getWebSocketContainer returning null

2013-08-22 Thread Bob DeRemer
I'm trying to use the Tomcat8 jsr client functionality in a standalone java client. I'm trying to use the minimal number of jars, so I gabbed websocket-api.jar ONLY. When I call ContainerProvider.getWebSocketContainer(), it returns null. Do I need another jar to resolve this on the client? T

Re: Having trouble with common.loader

2013-08-22 Thread D C
On Thu, Aug 22, 2013 at 11:48 AM, Konstantin Kolinko wrote: > 2013/8/22 Daniel Mikusa : > > On Aug 21, 2013, at 4:09 PM, David kerber wrote: > > > >> Basically you're trying to defeat the way the system is designed to > work. Don't do that… > > > > +1 Don't do what you've described unless you h

Re: Having trouble with common.loader

2013-08-22 Thread D C
On Thu, Aug 22, 2013 at 11:57 AM, Daniel Mikusa wrote: > On Aug 22, 2013, at 11:31 AM, D C wrote: > > > On Thu, Aug 22, 2013 at 10:30 AM, Daniel Mikusa >wrote: > > > >> On Aug 22, 2013, at 9:21 AM, D C wrote: > >> > >>> Ok, here goes. grep -v '/opt/jdk' > >> > >> Removing some of the fluff.

Re: Having trouble with common.loader

2013-08-22 Thread Daniel Mikusa
On Aug 22, 2013, at 11:31 AM, D C wrote: > On Thu, Aug 22, 2013 at 10:30 AM, Daniel Mikusa wrote: > >> On Aug 22, 2013, at 9:21 AM, D C wrote: >> >>> Ok, here goes. grep -v '/opt/jdk' >> >> Removing some of the fluff. >> >>> Aug 21, 2013 5:08:03 PM org.apache.catalina.startup.HostConfig >

Re: Tomcat 7.0 logging on different platforms

2013-08-22 Thread Konstantin Kolinko
2013/8/22 Tomcat Random : > My development setup is Win7 while my production is RHEL6. Both of the > environments have the same settings in conf/logging.properties but the > files in logs/ are slightly different. > > The access logs are named the same way. but on RHEL there's no > tomcat7-stdout or

Re: Tomcat 7.0 logging on different platforms

2013-08-22 Thread Mark Thomas
On 22/08/2013 16:44, Tomcat Random wrote: > My development setup is Win7 while my production is RHEL6. Both of the > environments have the same settings in conf/logging.properties but the > files in logs/ are slightly different. > > The access logs are named the same way. but on RHEL there's no >

Re: Having trouble with common.loader

2013-08-22 Thread Konstantin Kolinko
2013/8/22 Daniel Mikusa : > On Aug 21, 2013, at 4:09 PM, David kerber wrote: > >> Basically you're trying to defeat the way the system is designed to work. >> Don't do that… > > +1 Don't do what you've described unless you have a very good reason. It > will cause you many headaches. > > Keep a

Fwd: Tomcat 7 / Java 7 with TLS 1.2 algorithms

2013-08-22 Thread Aurélien Terrestris
According to RFC 5246 Appendix C (TLS 1.2), there is no SHA384. See : http://www.ietf.org/rfc/rfc5246.txt The JSSE Reference Guide also doesn't talk about this SHA384 as an implementation requirement. See : http://docs.oracle.com/javase/7/docs/technotes/guides/security/StandardNames.html#impl Thi

Tomcat 7.0 logging on different platforms

2013-08-22 Thread Tomcat Random
My development setup is Win7 while my production is RHEL6. Both of the environments have the same settings in conf/logging.properties but the files in logs/ are slightly different. The access logs are named the same way. but on RHEL there's no tomcat7-stdout or tomcat7-stderr log files. Just 'cata

Re: Migrating from GlassFish to Tomcat 7

2013-08-22 Thread Konstantin Kolinko
2013/8/22 Daniel Mikusa : > On Aug 22, 2013, at 8:48 AM, B W wrote: > >> I have a GWT application which currently is running on GlassFish 3.x. I >> want to migrate to Tomcat 7. Previously, I would store properties that the >> GWT application could retrieve by >> org.apache.commons.configuration.Sy

Re: Having trouble with common.loader

2013-08-22 Thread D C
On Thu, Aug 22, 2013 at 10:30 AM, Daniel Mikusa wrote: > On Aug 22, 2013, at 9:21 AM, D C wrote: > > > Ok, here goes. grep -v '/opt/jdk' > > Removing some of the fluff. > > > Aug 21, 2013 5:08:03 PM org.apache.catalina.startup.HostConfig > > deployDescriptor > > INFO: Deploying configuration d

Re: Tomcat connectors and NTFS permission

2013-08-22 Thread André Warnier
Asha K S wrote: HI, Tomcat connectors don't seem to honor the NTFS permissions set for the files. Is there a way to achieve this ? Can you be a bit more explicit about what your exact problem is, and maybe list the Tomcat version which you are using, and the Connector which you are talking ab

Re: Having trouble with common.loader

2013-08-22 Thread Daniel Mikusa
On Aug 22, 2013, at 9:21 AM, D C wrote: > Ok, here goes. grep -v '/opt/jdk' Removing some of the fluff. > Aug 21, 2013 5:08:03 PM org.apache.catalina.startup.HostConfig > deployDescriptor > INFO: Deploying configuration descriptor > /opt/apache-tomcat-7.0.40/conf/Catalina/localhost/myApp.xml

Re: Migrating from GlassFish to Tomcat 7

2013-08-22 Thread B W
Thank you - it's working! On Thu, Aug 22, 2013 at 9:04 AM, Daniel Mikusa wrote: > On Aug 22, 2013, at 8:48 AM, B W wrote: > > > I have a GWT application which currently is running on GlassFish 3.x. I > > want to migrate to Tomcat 7. Previously, I would store properties that > the > > GWT appl

Re: Tomcat 7 / Java 7 with TLS 1.2 algorithms

2013-08-22 Thread Aurélien Terrestris
According to RFC 5246 Appendix C (TLS 1.2), there is no SHA384. See : http://www.ietf.org/rfc/rfc5246.txt The JSSE Reference Guide also doesn't talk about this SHA384 as an implementation requirement. See : http://docs.oracle.com/javase/7/docs/technotes/guides/security/StandardNames.html#impl Thi

Re: Request for admittance to ContributorsGroup

2013-08-22 Thread Konstantin Kolinko
2013/8/22 Luca Visconti : > Hi, >near four years ago I've inserted Open Gate in > http://wiki.apache.org/tomcat/SupportAndTraining > I would like to update some information ( years of activity, links to logo, > may be a special page on our web site dedicated to Tomcat ). > > Could someone admit

Tomcat connectors and NTFS permission

2013-08-22 Thread Asha K S
HI, Tomcat connectors don't seem to honor the NTFS permissions set for the files. Is there a way to achieve this ? Thanks, Asha

Re: Migrating from GlassFish to Tomcat 7

2013-08-22 Thread Daniel Mikusa
On Aug 22, 2013, at 8:48 AM, B W wrote: > I have a GWT application which currently is running on GlassFish 3.x. I > want to migrate to Tomcat 7. Previously, I would store properties that the > GWT application could retrieve by > org.apache.commons.configuration.SystemConfiguration. Looks like th

Re: Having trouble with common.loader

2013-08-22 Thread Daniel Mikusa
On Aug 22, 2013, at 8:38 AM, D C wrote: > [tomcat@test05 logs]# grep "from file" catalina.out | sed 's/.*from > file//g' | sed 's/\/lib\/.*/\/lib/g' | sort -u > :/opt/apache-tomcat-7.0.40/bin/bootstrap.jar] > :/opt/apache-tomcat-7.0.40/bin/tomcat-juli.jar] > :/opt/apache-tomcat-7.0.40/lib > :/op

Re: Tomcat 7 / Java 7 with TLS 1.2 algorithms

2013-08-22 Thread Dennis Sosnoski
I've already done that, though as far as I can see that doesn't effect the digest algorithms (only the encryption options). - Dennis On 08/23/2013 12:24 AM, Aurélien Terrestris wrote: Hello I suppose you need to run your JVM with the unrestricted policy files (on b= oth client and server si

Migrating from GlassFish to Tomcat 7

2013-08-22 Thread B W
I have a GWT application which currently is running on GlassFish 3.x. I want to migrate to Tomcat 7. Previously, I would store properties that the GWT application could retrieve by org.apache.commons.configuration.SystemConfiguration. I would put these settings in my domain.xml for GlassFish. What

Re: Having trouble with common.loader

2013-08-22 Thread D C
[tomcat@test05 logs]# grep "from file" catalina.out | sed 's/.*from file//g' | sed 's/\/lib\/.*/\/lib/g' | sort -u :/opt/apache-tomcat-7.0.40/bin/bootstrap.jar] :/opt/apache-tomcat-7.0.40/bin/tomcat-juli.jar] :/opt/apache-tomcat-7.0.40/lib :/opt/jdk1.7.0.21/jre/lib :/web/webapps/myApp/WEB-INF/clas

RE: Tomcat 7 / Java 7 with TLS 1.2 algorithms

2013-08-22 Thread Martin Gainty
what's supposed to happen: The specified cipher in SSLCipherSuiteSSLCipherSuite is supposed to be enabled when specified within SSLCipherSuiteSSLCipherSuite=SHA256/384 to allow the Server to arbitrate the ordering of ciphers(instead of the client) SSLHonorCipherOrder=true http://tomcat.a

manager quick guide

2013-08-22 Thread vicki
Hey: I am trying to understand how the manager works, so I just want to implement it simply with a blank tomcat and the sample.war. I am finding the documentation to be unclear, although it is probably my lack of experience that is tripping me up. Can anyone tell me what steps are required to a

Re: Tomcat 7 / Java 7 with TLS 1.2 algorithms

2013-08-22 Thread Aurélien Terrestris
Hello I suppose you need to run your JVM with the unrestricted policy files (on b= oth client and server sides). You have to download them from Oracle website= for your java version, and replace the old. These files are : local_policy.jar US_export_policy.jar Regards 2013/8/22 : > Tomcat 7.0.

Re: How to forward subdomain to a destination URL using Domain registrar Cpanel?

2013-08-22 Thread André Warnier
Norah Jones wrote: Hi, I have purchased a domain xyz.com but no hosting. Can I forward a subdomain say photo.xyz.com to my flickr account having URL like flickr.com/photos/abcadjsakjda. http://www.youtube.com/watch?v=cxFYwNLv67s This is, like, the Tomcat Users support list ? ---

Re: Having trouble with common.loader

2013-08-22 Thread Daniel Mikusa
On Aug 21, 2013, at 5:09 PM, D C wrote: > I added verbose, it does not appear to attempt to load anything from > /web/lib/ Ok. Where do you see it loading classes from? /WEB-INF/lib/*.jar? Do you see any classes listed that you would expect to be loaded from /web/lib? Where are they being

How to forward subdomain to a destination URL using Domain registrar Cpanel?

2013-08-22 Thread Norah Jones
Hi, I have purchased a domain xyz.com but no hosting. Can I forward a subdomain say photo.xyz.com to my flickr account having URL like flickr.com/photos/abcadjsakjda. Thanks, Norah Jones - To unsubscribe, e-mail: users-unsu

Request for admittance to ContributorsGroup

2013-08-22 Thread Luca Visconti
Hi, near four years ago I've inserted Open Gate in http://wiki.apache.org/tomcat/SupportAndTraining I would like to update some information ( years of activity, links to logo, may be a special page on our web site dedicated to Tomcat ). Could someone admit me to ContributorsGroup ? My wiki user

Tomcat 7 / Java 7 with TLS 1.2 algorithms

2013-08-22 Thread dms
Tomcat 7.0.40 seems to work well with TLS 1.2, forced by using a sslEnabledProtocols="TLSv1.2" attribute on the . But I haven't been able to make it work with any of the SHA256/384 algorithms - they always show up in the "Ignoring unsupported cipher suite" list. I get the same thing happening w

AW: Java6 JAX-WS and Tomcat interoperability

2013-08-22 Thread Michael Südkamp
> Internal / external, it's just a matter of preference and what works for your > app. The internal (i.e. bundled with the JVM) classes are more convenient to > use, but you have no choice > as to the version you get. With external JARs you can use a specific > version, often more recent than