Re: BLOCKED reaper thread (and all other BLOCKED threads) waiting on one thread that is BLOCKED waiting on that reaper thread

2014-10-29 Thread David Bullock
Seems like BMC have a lock-ordering problem leading to deadlock.  What's it
got to do with Tomcat?



*David BullockMachaira Enterprises Pty Ltd*
PO Box 31
Canowindra NSW 2804

02 6344 1100
http://machaira.com.au/


On 30 October 2014 11:39, vbck  wrote:

> "MidTier-ServerReaper-name.domain.com" - Thread t@749
>java.lang.Thread.State: BLOCKED
> at com..permissions.Group.getAllInstances(Unknown Source)
> - waiting to lock <54cfdee6> (a java.lang.String) owned by
> "Thread-678"
> t@751
> [ ]
>
> "Thread-678" - Thread t@751
>java.lang.Thread.State: BLOCKED
> at com..share.BaseDataCache. (Unknown Source)
> - waiting to lock <7e819f5> (a java.util.Hashtable) owned by
> "MidTier-ServerReaper-" t@749
> [ ]
>
> "Thread-679" - Thread t@752
>java.lang.Thread.State: BLOCKED
> at com..service.DHTMLService.getHTMLData(Unknown Source)
> - waiting to lock <751833aa> (a com..service.DHTMLService)
> owned by
> "Thread-678" t@751
> [ ]
>
> "Thread-680" - Thread t@753
>java.lang.Thread.State: BLOCKED
> at com..service.DHTMLService.getHTMLData(Unknown Source)
> - waiting to lock <751833aa> (a com..service.DHTMLService)
> owned by
> "Thread-678" t@751
> [ ]
>
> "Thread-681" - Thread t@754
>java.lang.Thread.State: BLOCKED
> at com..service.DHTMLService.getJSData(Unknown Source)
> - waiting to lock <751833aa> (a com..service.DHTMLService)
> owned by
> "Thread-678" t@751
> [ ]
>
> . . . same waiting to lock state for all BLOCKED threads
>
>
> NOTE:
> These are intentional replacements substituting for actual values
>
>  
>  
>
>
>
> --
> View this message in context:
> http://tomcat.10.x6.nabble.com/BLOCKED-reaper-thread-and-all-other-BLOCKED-threads-waiting-on-one-thread-that-is-BLOCKED-waiting-ond-tp5024701.html
> Sent from the Tomcat - User mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


BLOCKED reaper thread (and all other BLOCKED threads) waiting on one thread that is BLOCKED waiting on that reaper thread

2014-10-29 Thread vbck
"MidTier-ServerReaper-name.domain.com" - Thread t@749
   java.lang.Thread.State: BLOCKED
at com..permissions.Group.getAllInstances(Unknown Source)
- waiting to lock <54cfdee6> (a java.lang.String) owned by "Thread-678"
t@751
[ ]

"Thread-678" - Thread t@751
   java.lang.Thread.State: BLOCKED
at com..share.BaseDataCache. (Unknown Source)
- waiting to lock <7e819f5> (a java.util.Hashtable) owned by
"MidTier-ServerReaper-" t@749
[ ]

"Thread-679" - Thread t@752
   java.lang.Thread.State: BLOCKED
at com..service.DHTMLService.getHTMLData(Unknown Source)
- waiting to lock <751833aa> (a com..service.DHTMLService) owned 
by
"Thread-678" t@751
[ ]

"Thread-680" - Thread t@753
   java.lang.Thread.State: BLOCKED
at com..service.DHTMLService.getHTMLData(Unknown Source)
- waiting to lock <751833aa> (a com..service.DHTMLService) owned 
by
"Thread-678" t@751
[ ]

"Thread-681" - Thread t@754
   java.lang.Thread.State: BLOCKED
at com..service.DHTMLService.getJSData(Unknown Source)
- waiting to lock <751833aa> (a com..service.DHTMLService) owned 
by
"Thread-678" t@751
[ ]

. . . same waiting to lock state for all BLOCKED threads


NOTE:
These are intentional replacements substituting for actual values

 
 



--
View this message in context: 
http://tomcat.10.x6.nabble.com/BLOCKED-reaper-thread-and-all-other-BLOCKED-threads-waiting-on-one-thread-that-is-BLOCKED-waiting-ond-tp5024701.html
Sent from the Tomcat - User mailing list archive at Nabble.com.

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



RE: NameNotFoundException: Name [jdbc/weblogin01b] is not bound in this Context. Unable to find [jdbc]

2014-10-29 Thread vince.webb
Dan
Thank you. Jconsole mbeans pointed me in the right direction. It made me doubt 
that Tomcat was reading the same server.xml that I was editing. Sure enough 
when I found that I was not able to change the description of the Resource 
"UserDatabase" then I knew I was editing the wrong copy of server.xml

Netbeans makes a copy of CATALINA_HOME and uses it as CATALINA_BASE.

I was editing the one at CATALINA_HOME instead of the copy at CATALINA_BASE.

I wish Tomcat had a clear cut separation between CATALINA_HOME and 
CATALINA_BASE such that they are ALWAYS distinct instead of the current 
potential for having the same stuff in both.

Thanks again
Vince


> -Original Message-
> From: Daniel Mikusa [mailto:dmik...@pivotal.io]
> Sent: 29 October 2014 17:10
> To: Tomcat Users List
> Subject: Re: NameNotFoundException: Name [jdbc/weblogin01b] is not
> bound in this Context. Unable to find [jdbc]
> 
> On Wed, Oct 29, 2014 at 12:45 PM, 
> wrote:
> 
> > Hello
> > I'm having difficulty getting a JDBC DataSource using Tomcat 8.
> >
> > I want to define the JDBC details in server.xml so the database
> identified
> > depends on the server and not the application. It will be beneficial
> for me
> > if the applications only need to know the JDBC name and not password
> > details.
> >
> > Thus I'm using GlobalNamingResources in server.xml
> > and ResourceLink in context.xml
> >
> > I'm obviously not getting it right because I get this exception:
> >
> > javax.naming.NameNotFoundException: Name [jdbc/weblogin01b] is not
> bound
> > in this Context. Unable to find [jdbc].
> >
> 
> Sometimes when you get a NameNotFoundException, it's because the pool
> encountered an error when it was being created.  Hence it doesn't
> actually
> exists.  A couple things you can do to troubleshoot.
> 
> 1.) Set an initial size for your pool.  This will force it to make at
> least
> one connection at startup which will generally cause it to fail fast,
> if
> there is a problem.  You can then look in the logs to see the error.
> 
> 2.) Connect with jconsole or jvisualvm and look at the mbeans for
> Tomcat.
> When the pool is actually there, you should see it in the mbeans.
> 
> 
> > at org.apache.naming.NamingContext.lookup(NamingContext.java:818)
> > at org.apache.naming.NamingContext.lookup(NamingContext.java:166)
> > at
> >
> org.apache.naming.factory.ResourceLinkFactory.getObjectInstance(Resourc
> eLinkFactory.java:92)
> > at
> >
> javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:321
> )
> > at org.apache.naming.NamingContext.lookup(NamingContext.java:841)
> > at org.apache.naming.NamingContext.lookup(NamingContext.java:152)
> > at org.apache.naming.NamingContext.lookup(NamingContext.java:829)
> > at org.apache.naming.NamingContext.lookup(NamingContext.java:166)
> >
> > In CATALINA_BASE/conf/server.xml
> >
> > I have included a variety of slightly different resources all aiming
> to
> > get to the same database schema hopefully one of them will be right:
> >
> > 
> > 
> >  >   type="org.apache.catalina.UserDatabase"
> >   description="User database that can be updated and
> saved"
> >
> factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
> >   pathname="conf/tomcat-users.xml" />
> >
> >
> >  > username="weblogin01"
> > password="x"
> > auth="Container"
> > type="javax.sql.DataSource"
> > driverClassName="oracle.jdbc.pool.OracleDataSource"
> >
> 
> This looks suspect.  I'm pretty sure you want the JDBC driver name.
> 
> 
> > description="Global Address Database"
> > url="jdbc:oracle:thin:@10.15.120.29:1522:DGSPC"
> >
> 
> You could add "initialSize" here, try "1".
> 
> maxActive="15"
> > maxIdle="3" />
> >
> >  > user="weblogin01"
> > password="x"
> > auth="Container"
> > type="javax.sql.DataSource"
> > driverClassName="oracle.jdbc.OracleDriver"
> > factory="oracle.jdbc.pool.OracleDataSourceFactory"
> >
> 
> You're using a different factory (specifically Oracle's
> implementation), so
> the configuration attributes are going to be different.  Not sure how
> to
> set initial size with this implementation.
> 
> 
> > url="jdbc:oracle:thin:@10.15.120.29:1522:DGSPC"
> > maxActive="20"
> > maxIdle="3"
> > maxWait="-1" />
> >
> >  > user="weblogin01"
> > password="x"
> > auth="Container"
> > type="javax.sql.DataSource"
> > driverClassName="oracle.jdbc.OracleDriver"
> > url="jdbc:oracle:thin:@10.15.120.29:1522:DGSPC"
> > maxActive="20"
> > maxIdle="3"
> > maxWait="-1" />
> >
> 
> This looks the most right.  I'd also try adding "initialSize" of 1.
> 
> 
> >
> > 
> >
> > In META-INF/context.xml
> >
> > I have a ResourceLink to each resource
> >
> > 
> >  > global="jdbc/weblogin01"
>

Re: Tomcat Start script not starting from init.d or rc.local

2014-10-29 Thread Mark Eggers
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


On 10/29/2014 10:33 AM, Anthony Bungeroth wrote:
> 
> I basically need a script to run automatically when I reboot the 
> server. I have tried the various ways to get it to work in init.d 
> and it's not working.  When I go into init.d and run it manually
> it works though.
> 
> I think it has something to do with the fact that to run the script
> manually I am logged in as root, whereas for it to run 
> automatically it has to run in the background.
> 
> I will include the script info in this email and see if you had an
>  idea as to where the issue is.
> 
> So in /etc/init.d, there is a script called Tomcat, here is the 
> "start" portion of the script.  Once again, when I run this 
> manually while logged in as root it launches.
> 
> #!/bin/sh # Apache Tomcat Startup Script # chkconfig 234 20 80
> 
> JAVA_HOME=/opt/jdk1.6.0_45 CATALINA_HOME=/opt/tomcat 
> TOMCAT_USER=tomcat
> 
> start() { echo -n "Starting Tomcat:  " su $TOMCAT_USER 
> $CATALINA_HOME/bin/startup.sh sleep 2 }
> 
> I tried creating a new script and putting that one in "rc.local". 
> Here is the "rc.local" command:
> 
> #!/bin/sh # # This script will be executed *after* all the other 
> init scripts. # You can put your own initialization stuff in here 
> if you don't # want to do the full Sys V style init stuff.
> 
> su tomcat /opt/tomcat/bin/startup.sh
> 
> This is a total rookie issue I am surebut just in case you 
> might be able to help with an easy enough fix, I would greatly 
> appreciate it.  I don't even know where to look for error logs to 
> troubleshoot this. Thanks for any assistance. Anthony 
>  Anthony Bungeroth Systems 
> Engineer
> 
> p: 347-762-5863 (347-76 BLUME) f: 419-831-5614 e: 
> anth...@blumetech.com Our Blog 
> [blumetech]  
> [blumetech] 
> 
>
>
>
> 

> 
> This email and any files transmitted with it are confidential and 
> intended solely for the use of the individual or entity to whom 
> they are addressed. If you have received this email in error, you 
> are directed not to read, disclose, reproduce, distribute, 
> disseminate or otherwise use this transmission, and we also
> request that you immediately delete this message and its
> attachments, if any. Delivery of this message to any person other
> than the intended recipient(s) is not intended in any way to waive
> privilege or confidentiality. Finally, the recipient should check
> this email and any attachments for the presence of viruses;
> Blumetech accepts no liability for any damage caused by any virus
> transmitted by this email.
> 

Anthony,

My relevant line looks like this (all one line of course):

$SU - $TOMCAT_USER -c "${CONFIG_OPTS} ${CAT_PID} ${TOMCAT_INSTANCE}
start" >> $SERVICE_LOG 2>&1

$SU- set to su for non-SELinux, runuser for SELinux
$TOMCAT_USER   - Tomcat user
${CONFIG_OPTS} - CATALINA_HOME, CATALINA_BASE, JRE_HOME, etc.
${CAT_PID} - PID, not used in startup
${TOMCAT_INSTANCE} - Tomcat command based on CATALINA_HOME
$SERVICE_LOG   - logs the start and stop of the service

I stuff all of the options in a file which is parsed and placed into
${CONFIG_OPTS}. I could probably use setenv.sh, but this way I have a
root-controlled (and versioned) configuration file for my service
configuration.

I use catalina.sh directly, which is buried in the ${TOMCAT_INSTANCE}
variable. This is so I can do start and stop with one command setup.

Based on that and using catalina.sh, your command line should probably
look like:

start() {
echo -n "Starting Tomcat:  "
su - $TOMCAT_USER -c "{$CATALINA_HOME}/bin/catalina.sh start"
sleep 2
}

Make sure your permissions in $CATALINA_HOME are correct.

And your su might need to be runuser, depending on whether or not you
use SELinux.

. . . just my two cents
/mde/
-BEGIN PGP SIGNATURE-
Version: GnuPG v2

iQEcBAEBAgAGBQJUUUOsAAoJEEFGbsYNeTwtc30H+wYMoqdkvsnnVoxo/ettJVco
UgBuWJBVnyWAuHvmDytNnh6YmtWAzaAQDTtC3lHll25Po0lv0giORXRz8GGI3wlM
OJejGeCYj2sjPSOCSMv2DpSCaYn/nR9VD7TUbjM5wx1Co31lxbT3z2QDz/2LQFoI
yt/312hiaJERKRRAjHmmYKU1Za+dlpat6kNoCZBKgu1nDqML6gj0gENV0AhScZwp
tAAu0J275KR4prMGRJxsI9Et+w52ORCfcH00NURHnEv+4v15eWm2/egzerzGFxh7
20kwIukUqBaNVCab6+rvH8xuwCyNGJqiKb3sR87GB6iTi47p7rWhod40Ou9qWvA=
=BzOH
-END PGP SIGNATURE-

---
This email is free from viruses and malware because avast! Antivirus protection 
is active.
http://www.avast.com


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



RE: Trying to do LDAPS with Tomcat 7 on windows

2014-10-29 Thread Nutter, Ronald
I have found where keytool is on the server where java has been installed.
What I think I am supposed to do is export a cert from the server running ldap. 
 As I understand the documentation I have found, I should export the 
certificate with private keys.
I have tried windows certmgr and certsrv and don't have an option to export the 
private keys even when I am logged in as Administrator on the server.

Suggestions ?
Ron

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



Re: Tomcat Start script not starting from init.d or rc.local

2014-10-29 Thread Jason Ricles
You can use upstart if you have that, with a .conf file. However unless you
source the profile.d or wherever your environment variables are held do not
use them in an init task!

On Wed, Oct 29, 2014 at 1:55 PM, Christopher Schultz <
ch...@christopherschultz.net> wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA256
>
> Anthony,
>
> On 10/29/14 1:33 PM, Anthony Bungeroth wrote:
> > I basically need a script to run automatically when I reboot the
> > server.
> >
> > I have tried the various ways to get it to work in init.d and it's
> > not working.  When I go into init.d and run it manually it works
> > though.
>
> That's good.
>
> > I think it has something to do with the fact that to run the
> > script manually I am logged in as root, whereas for it to run
> > automatically it has to run in the background.
>
> /etc/init.d are not usually run "in the background". Most /etc/init.d
> scripts are processed as "root" on boot, so that shouldn't matter.
>
> > I will include the script info in this email and see if you had an
> > idea as to where the issue is.
> >
> > So in /etc/init.d, there is a script called Tomcat, here is the
> > "start" portion of the script.  Once again, when I run this
> > manually while logged in as root it launches.
> >
> > #!/bin/sh # Apache Tomcat Startup Script # chkconfig 234 20 80
> >
> > JAVA_HOME=/opt/jdk1.6.0_45 CATALINA_HOME=/opt/tomcat
> > TOMCAT_USER=tomcat
> >
> > start() { echo -n "Starting Tomcat:  " su $TOMCAT_USER
> > $CATALINA_HOME/bin/startup.sh
>
> I'm not sure that's going to work. "man su". On my system, the command
> comes first (with a "-c" switch), the username last. You might want to
> consider using "sudo" instead of "su".
>
> > sleep 2
>
> Sleep? Why?
>
> > }
> >
> > I tried creating a new script and putting that one in "rc.local".
> > Here is the "rc.local" command:
> >
> > #!/bin/sh # # This script will be executed *after* all the other
> > init scripts. # You can put your own initialization stuff in here
> > if you don't # want to do the full Sys V style init stuff.
> >
> > su tomcat /opt/tomcat/bin/startup.sh
> >
> > This is a total rookie issue I am surebut just in case you
> > might be able to help with an easy enough fix, I would greatly
> > appreciate it.  I don't even know where to look for error logs to
> > troubleshoot this.
>
> Don't use rc.local. Use /etc/init.d/[whatever]
>
> Remember that /etc/init.d scripts aren't directly executed at boot:
> you have to "ln -s" each script into /etc/rcX.d where X is the
> runlevel number into which the machine is booting.
>
> Hope that helps,
> - -chris
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1
> Comment: GPGTools - http://gpgtools.org
>
> iQIcBAEBCAAGBQJUUSooAAoJEBzwKT+lPKRYjLoQAMmtQ2fm12YbKDC6893mjO0T
> Hf9oBBDxoBLxkIGu1LC/DUs3GQTGrer3IikNTdIfYzF66ULClD0qxziNbtLcEjtw
> OLAIiA1cp0zMw2J5NTg5xacyVO8EH9yvKYlgjroLQBfwqK7woo58f4hnh91TkVTZ
> uWwY1d/wt0iJ2nVeScQh9xGYonZkMeLpDFryG+ANAgXOomqzz7uRz52Tsfp46Q7f
> 9laPkMRu8paNJ86TSZtr+fQ/NQhhWh+6F8rgqxf/FYwxwbWzN7hgleX4oAev0tTv
> uM8lOz4tdWreKHMAXGGgrLY/55sCTdPtGlwf11hsMnh6OuUsjEbigzwA5y544kf+
> L/bPN1Bc2LwfoMffjjZceORTRK7/j1JrkkMNRYe1g+RjT6Vxio0kal83m6P61X7N
> 4SwGzZCwHNwbK0I3O03Y7SsBd8uvtX905IyTKr1Vqh71LKVg3y3Xm0wrAeCWq6q5
> WmiUSOAyHPDuiC7YuYRCEqva0zTi5vBrZ4sDQT0uQ/p4JRLG6orIZWeDYqD+n4jE
> OsFGnAGU7MGKoePElrxWecalxxrQg3Bd1rhp3+BbjKuSb+c43RjN6NflaExTER8S
> kV8iXAheHhm/IE8JXjwuNHnWHx6PDe4tVyURVaaW8GSgkCXbqyCAwFV1CKxlTlWn
> Vw6zW2S1K67Ffd7nsO4Z
> =K5zX
> -END PGP SIGNATURE-
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: How to access Sessions outside of class

2014-10-29 Thread Jason Ricles
Yes Chris RMI is a pain in the ass and I have been trying to make a
websocket client endpoint now. It however keeps closing and I am not to
sure as of why right after the connection is open.
http://stackoverflow.com/questions/26636452/tomcat-clientendpoint-websocket-keeps-closing
has the code, asked the questions on there and have not gotten any answers.
If you could you may look at the code and reply in this email chain why it
keeps closing right after it opens. It is straight forward (as of what i
know understand) my ignorance was due to being new to tomcat and websockets
so sorry for any of that.

On Wed, Oct 29, 2014 at 1:47 PM, Christopher Schultz <
ch...@christopherschultz.net> wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA256
>
> Jason,
>
> On 10/29/14 8:28 AM, Jason Ricles wrote:
> > foo is not a webapp, it is a separate program running on the
> > computer as a daemon.
>
> I understand that. I'm only suggesting that, since you have to
> communicate with Websocket-speaking web application, maybe foo ought
> to be a Websocket client of that webapp.
>
> > It has to do this stuff for it needed to be ran like this. bar is
> > basically the gui to the daemon, providing what is happening on
> > the machine to someone at another computer, since the machine is
> > headless these programs are being ran on.
>
> So you have a data-collection program (the foo daemon) and an
> aggregating / reporting program (the webapp). It seems like it would
> be pretty simple to have the daemon push data to the webapp over
> Websocket. Then your data consumers (themselves Websocket clients) can
> get that same data pushed-out to them.
>
> Maybe I'm being naive, but this seems fairly straightforward to me.
>
> > So I am curious as to how having my foo program running outside of
> >  bar how it can interact using websockets?
>
> Grab the Tomcat Websocket client library and write your code to use it
> for communication. Or use any other Java-based Websocket client
> library. Or write your daemon in something other than Java and use
> whatever Websocket library is available (Perl? PHP? C++?).
>
> > So far I have seen that they are disconnected and have no clue
> > about each other outside of using RMI.
>
> RMI is a complete pain in the ass except under some very special
> circumstances. It sounds like you might fit into those special
> circumstances, so feel free to give it a try.
>
> If it were me, I'd do it all with Websockets:
>
> 1. Foo Daemon -> web aggregator
> 2. web aggregator -> data consumers
>
> - -chris
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1
> Comment: GPGTools - http://gpgtools.org
>
> iQIcBAEBCAAGBQJUUSg8AAoJEBzwKT+lPKRYY9gP+wTNvdwerStWi8y5LMOS69UY
> /GkYP+W9mW9Uxxq6eXs8zTGfJzMrVdp56Y0ywmzyj5PUdMPJBN9HSpn496/tQttF
> qEjwaqXa6ZJe2Y5s0bAHPVnz2cP3aiNLWP+RlP8vF0tlccBWJFaG+9EC/4TEzJzZ
> VdJm00EHre6LY9Muk+39PlonMqKCUb9hnkq/97CBjmur1UWtqlfeVBz305FudWXG
> uZcpjgLpJ/ETK/Ui69Pyg9c1F4GFpK+rDpY2CQZdg9fUpGgg22iURlXWt14ueqSL
> R6AH9Mvt1GrT88ZMBiTsYKWDCRBtxbTQ8Pgl16U0qRAFF8hSu2nJzKhtjdrwgQp2
> Yw4+SGmwEky8jmCUZhkCPg2Y8ds/l4NoK5s5V5ub7OOGPXaT8jHGanrEFM0wNqWX
> bqZj10QvAN5Pvm2jJWjX+N1sSARWzDBuWfsQHvIcRihxvXr8UJNwCsYkZySCluXU
> S1n9aoPi+Hx/yMPV5pMvtOsrRaDodyJFouDP6euKA4MV7dCs9ndcLCVL7Y8vDQ5f
> Y/oExkPqMgWmjtd0Sg5DEDQvJgdzlwvKF1YNU1+bAZgpu05MlL+ybfpYfLUhmJsR
> wJuzyFFmoP3Jr/GL9Cw1QNX/enPcJt2phPccXcTWW0uwg2KXCaYcNXzyCOAfzmsZ
> ffRqiIneLm2io6yG1qhV
> =xzLA
> -END PGP SIGNATURE-
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: HTTPS / URLs with no port number / Tomcat only

2014-10-29 Thread Terence M. Bandoian

On 10/28/2014 5:59 PM, Christopher Schultz wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Terence,

On 10/28/14 5:49 PM, Terence M. Bandoian wrote:

On 10/28/2014 8:55 AM, Léa Massiot wrote:

Christopher Schultz-2 wrote

A bit of warning: when modifying iptables, you need to be very
careful that you don't wipe-out any rules that allow you to
gain remote access to the server. For instance, if you have a
default rule to DROP all packets and an exception that allows
port 22 (ssh) traffic, then flushing all the rules in a table
can make it impossible for you to revert the change without
remote-rebooting (or, worse yet, paying someone to walk into
the cage and push the reset button).

Yes right, fortunately I wasn't working on a remote machine.

On Debian Wheezy, the following set of commands actually disables
the firewall:
--- iptables
-F iptables -X iptables -t nat -F iptables -t nat -X iptables -t
mangle -F iptables -t mangle -X iptables -P INPUT ACCEPT iptables
-P OUTPUT ACCEPT iptables -P FORWARD ACCEPT
---

Best regards.


Hi, Léa-

Ideally, I think you'd want to permanently modify the iptables
rules to enable traffic over the desired port.  Doing so would keep
the existing safety measures in place and all of the rules would
survive a reboot. However, if you just want to temporarily disable
iptables, I believe

service iptables stop

would do so.

Debian Wheezy doesn't use "service", instead it still uses
/etc/init.d. Oddly enough, there is no /etc/init.d/iptables script for
Debian[1]. We deploy on Debian in most environments and have simply
rolled our own iptables script that runs on boot.



Nasty.  I like service interface available on Red Hat and CentOS. On 
Debian/Ubuntu, it looks like the ufw package might be helpful.


-Terence





Permanently disabling iptables would require a little more work as,
in my experience, it is typically configured to start when the
system is booted.

Yes, and it's not really a good idea for production: you want your
firewall configured properly instead of in "by any means necessary"
mode. Configuring a server in anger usually ends up with an insecure
configuration.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJUUB/IAAoJEBzwKT+lPKRYN64P/2JjyqfMDQMSp8OopxpQjF4K
cSOrJ1YbYRkw79gYJpg5XNP5DcAYu8INcYsZ8r685aLHgkCl8a7IWC0gKJQX2TfO
QGy5pN9NvZrO+U+ont+9egEFcHNKqWMy522CTkpIp5tKLazG2iSjEw0kGePBftOp
UETb82wzy1EfiBDArQSzMfLgxVXhB5bPUJmdV2DzEN0m6fuF8oaWmqQNy06+L//V
ESieL0ovf9dRQFde8J4fxDT4b36l/yMjNSHvrKQMsiHfYiq2iqfA1xZUYv+hQtUh
S+Ezs/sIu3CnYqK+5mPX/+ET333DNXLz4IRaFpHlnI0Z2xuPaG5Gf6Dd2SUz5zxD
ag/u552Uo7KAYdp/17bifktpNJgRRgx0O6Zt0mr3+imFwQg6Ve5pMo/F59AepYtB
9awhri3lCw1urNLOrLOTwWZDGij1DtUlAbfcfKZ58kU2Iadb0h5mgos5NjKkljNv
x3a8IDqg8R8dB6A0I0ZjjOJH0xlIvH3hFh1gn9t7Wd5Wd61jtH7cpVGVRVW79JY/
qsjRGqUw6LtF1xYdYVsbfaRQpEbvz5TCBc/TBJXztszC0+f1akQZL3uBByxrlUZL
aukqEmxgTK9/PFaLtb7xM8JryNfwog9ETXmhx1dbKBr58GoOWAMN3OSd7mgKVkXV
J/GmKKtJ+2AKE2aCaVMt
=ZYjC
-END PGP SIGNATURE-




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



Re: Tomcat Start script not starting from init.d or rc.local

2014-10-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Anthony,

On 10/29/14 1:33 PM, Anthony Bungeroth wrote:
> I basically need a script to run automatically when I reboot the 
> server.
> 
> I have tried the various ways to get it to work in init.d and it's 
> not working.  When I go into init.d and run it manually it works 
> though.

That's good.

> I think it has something to do with the fact that to run the
> script manually I am logged in as root, whereas for it to run
> automatically it has to run in the background.

/etc/init.d are not usually run "in the background". Most /etc/init.d
scripts are processed as "root" on boot, so that shouldn't matter.

> I will include the script info in this email and see if you had an 
> idea as to where the issue is.
> 
> So in /etc/init.d, there is a script called Tomcat, here is the 
> "start" portion of the script.  Once again, when I run this
> manually while logged in as root it launches.
> 
> #!/bin/sh # Apache Tomcat Startup Script # chkconfig 234 20 80
> 
> JAVA_HOME=/opt/jdk1.6.0_45 CATALINA_HOME=/opt/tomcat 
> TOMCAT_USER=tomcat
> 
> start() { echo -n "Starting Tomcat:  " su $TOMCAT_USER
> $CATALINA_HOME/bin/startup.sh

I'm not sure that's going to work. "man su". On my system, the command
comes first (with a "-c" switch), the username last. You might want to
consider using "sudo" instead of "su".

> sleep 2

Sleep? Why?

> }
> 
> I tried creating a new script and putting that one in "rc.local". 
> Here is the "rc.local" command:
> 
> #!/bin/sh # # This script will be executed *after* all the other
> init scripts. # You can put your own initialization stuff in here
> if you don't # want to do the full Sys V style init stuff.
> 
> su tomcat /opt/tomcat/bin/startup.sh
> 
> This is a total rookie issue I am surebut just in case you
> might be able to help with an easy enough fix, I would greatly
> appreciate it.  I don't even know where to look for error logs to
> troubleshoot this.

Don't use rc.local. Use /etc/init.d/[whatever]

Remember that /etc/init.d scripts aren't directly executed at boot:
you have to "ln -s" each script into /etc/rcX.d where X is the
runlevel number into which the machine is booting.

Hope that helps,
- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJUUSooAAoJEBzwKT+lPKRYjLoQAMmtQ2fm12YbKDC6893mjO0T
Hf9oBBDxoBLxkIGu1LC/DUs3GQTGrer3IikNTdIfYzF66ULClD0qxziNbtLcEjtw
OLAIiA1cp0zMw2J5NTg5xacyVO8EH9yvKYlgjroLQBfwqK7woo58f4hnh91TkVTZ
uWwY1d/wt0iJ2nVeScQh9xGYonZkMeLpDFryG+ANAgXOomqzz7uRz52Tsfp46Q7f
9laPkMRu8paNJ86TSZtr+fQ/NQhhWh+6F8rgqxf/FYwxwbWzN7hgleX4oAev0tTv
uM8lOz4tdWreKHMAXGGgrLY/55sCTdPtGlwf11hsMnh6OuUsjEbigzwA5y544kf+
L/bPN1Bc2LwfoMffjjZceORTRK7/j1JrkkMNRYe1g+RjT6Vxio0kal83m6P61X7N
4SwGzZCwHNwbK0I3O03Y7SsBd8uvtX905IyTKr1Vqh71LKVg3y3Xm0wrAeCWq6q5
WmiUSOAyHPDuiC7YuYRCEqva0zTi5vBrZ4sDQT0uQ/p4JRLG6orIZWeDYqD+n4jE
OsFGnAGU7MGKoePElrxWecalxxrQg3Bd1rhp3+BbjKuSb+c43RjN6NflaExTER8S
kV8iXAheHhm/IE8JXjwuNHnWHx6PDe4tVyURVaaW8GSgkCXbqyCAwFV1CKxlTlWn
Vw6zW2S1K67Ffd7nsO4Z
=K5zX
-END PGP SIGNATURE-

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



Re: How to access Sessions outside of class

2014-10-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Jason,

On 10/29/14 8:28 AM, Jason Ricles wrote:
> foo is not a webapp, it is a separate program running on the 
> computer as a daemon.

I understand that. I'm only suggesting that, since you have to
communicate with Websocket-speaking web application, maybe foo ought
to be a Websocket client of that webapp.

> It has to do this stuff for it needed to be ran like this. bar is 
> basically the gui to the daemon, providing what is happening on
> the machine to someone at another computer, since the machine is 
> headless these programs are being ran on.

So you have a data-collection program (the foo daemon) and an
aggregating / reporting program (the webapp). It seems like it would
be pretty simple to have the daemon push data to the webapp over
Websocket. Then your data consumers (themselves Websocket clients) can
get that same data pushed-out to them.

Maybe I'm being naive, but this seems fairly straightforward to me.

> So I am curious as to how having my foo program running outside of
>  bar how it can interact using websockets?

Grab the Tomcat Websocket client library and write your code to use it
for communication. Or use any other Java-based Websocket client
library. Or write your daemon in something other than Java and use
whatever Websocket library is available (Perl? PHP? C++?).

> So far I have seen that they are disconnected and have no clue 
> about each other outside of using RMI.

RMI is a complete pain in the ass except under some very special
circumstances. It sounds like you might fit into those special
circumstances, so feel free to give it a try.

If it were me, I'd do it all with Websockets:

1. Foo Daemon -> web aggregator
2. web aggregator -> data consumers

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJUUSg8AAoJEBzwKT+lPKRYY9gP+wTNvdwerStWi8y5LMOS69UY
/GkYP+W9mW9Uxxq6eXs8zTGfJzMrVdp56Y0ywmzyj5PUdMPJBN9HSpn496/tQttF
qEjwaqXa6ZJe2Y5s0bAHPVnz2cP3aiNLWP+RlP8vF0tlccBWJFaG+9EC/4TEzJzZ
VdJm00EHre6LY9Muk+39PlonMqKCUb9hnkq/97CBjmur1UWtqlfeVBz305FudWXG
uZcpjgLpJ/ETK/Ui69Pyg9c1F4GFpK+rDpY2CQZdg9fUpGgg22iURlXWt14ueqSL
R6AH9Mvt1GrT88ZMBiTsYKWDCRBtxbTQ8Pgl16U0qRAFF8hSu2nJzKhtjdrwgQp2
Yw4+SGmwEky8jmCUZhkCPg2Y8ds/l4NoK5s5V5ub7OOGPXaT8jHGanrEFM0wNqWX
bqZj10QvAN5Pvm2jJWjX+N1sSARWzDBuWfsQHvIcRihxvXr8UJNwCsYkZySCluXU
S1n9aoPi+Hx/yMPV5pMvtOsrRaDodyJFouDP6euKA4MV7dCs9ndcLCVL7Y8vDQ5f
Y/oExkPqMgWmjtd0Sg5DEDQvJgdzlwvKF1YNU1+bAZgpu05MlL+ybfpYfLUhmJsR
wJuzyFFmoP3Jr/GL9Cw1QNX/enPcJt2phPccXcTWW0uwg2KXCaYcNXzyCOAfzmsZ
ffRqiIneLm2io6yG1qhV
=xzLA
-END PGP SIGNATURE-

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



Tomcat Start script not starting from init.d or rc.local

2014-10-29 Thread Anthony Bungeroth

I basically need a script to run automatically when I reboot the server.
I have tried the various ways to get it to work in init.d and it's not working. 
 When I go into init.d and run it manually it works though.

I think it has something to do with the fact that to run the script manually I 
am logged in as root, whereas for it to run automatically it has to run in the 
background.

I will include the script info in this email and see if you had an idea as to 
where the issue is.

So in /etc/init.d, there is a script called Tomcat, here is the "start" portion 
of the script.  Once again, when I run this manually while logged in as root it 
launches.

#!/bin/sh
# Apache Tomcat Startup Script
# chkconfig 234 20 80

JAVA_HOME=/opt/jdk1.6.0_45
CATALINA_HOME=/opt/tomcat
TOMCAT_USER=tomcat

start() {
echo -n "Starting Tomcat:  "
su $TOMCAT_USER $CATALINA_HOME/bin/startup.sh
sleep 2
}

I tried creating a new script and putting that one in "rc.local".
Here is the "rc.local" command:

#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

su tomcat /opt/tomcat/bin/startup.sh

This is a total rookie issue I am surebut just in case you might be able to 
help with an easy enough fix, I would greatly appreciate it.  I don't even know 
where to look for error logs to troubleshoot this.
Thanks for any assistance.
Anthony

Anthony Bungeroth
Systems Engineer

p: 347-762-5863 (347-76 BLUME)
f: 419-831-5614
e: anth...@blumetech.com
Our Blog
[blumetech]

[blumetech]



This email and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed. If 
you have received this email in error, you are directed not to read, disclose, 
reproduce, distribute, disseminate or otherwise use this transmission, and we 
also request that you immediately delete this message and its attachments, if 
any. Delivery of this message to any person other than the intended 
recipient(s) is not intended in any way to waive privilege or confidentiality. 
Finally, the recipient should check this email and any attachments for the 
presence of viruses; Blumetech accepts no liability for any damage caused by 
any virus transmitted by this email.


Re: INFO: TLD skipped Messages in logs

2014-10-29 Thread Kiran Badi
Thanks Mark

On Tuesday, October 28, 2014, Mark Thomas  wrote:

> On 28/10/2014 00:59, Kiran Badi wrote:
> > Hi
> >
> > Can someone reply to this query please.
> > On 10/2/2014 8:10 PM, Kiran Badi wrote:
> >> Hi,
> >>
> >> I am getting below messages in the logs,
> >>
> >> Oct 26, 2014 4:05:46 PM org.apache.catalina.startup.TaglibUriRule body
> >> INFO: TLD skipped. URI: http://java.sun.com/jstl/xml_rt is already
> >> defined
> >> Oct 26, 2014 4:05:46 PM org.apache.catalina.startup.TaglibUriRule body
> >> INFO: TLD skipped. URI: http://java.sun.com/jstl/xml is already defined
> >> Oct 26, 2014 4:05:46 PM org.apache.catalina.startup.TaglibUriRule body
> >> INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/xml is already
> >> defined
> >>
> >> I have jstl.jar in web/lib app folder and probably have jstl jar in
> >> the tomcat lib directory.
> >>
> >> I wanted to understand if this messages are related to duplicate jstl
> >> jar or something else .
>
> Normally this is caused by duplicate JSTL JARs.
>
> Mark
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org 
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
>
>


Re: NameNotFoundException: Name [jdbc/weblogin01b] is not bound in this Context. Unable to find [jdbc]

2014-10-29 Thread Daniel Mikusa
On Wed, Oct 29, 2014 at 12:45 PM,  wrote:

> Hello
> I'm having difficulty getting a JDBC DataSource using Tomcat 8.
>
> I want to define the JDBC details in server.xml so the database identified
> depends on the server and not the application. It will be beneficial for me
> if the applications only need to know the JDBC name and not password
> details.
>
> Thus I'm using GlobalNamingResources in server.xml
> and ResourceLink in context.xml
>
> I'm obviously not getting it right because I get this exception:
>
> javax.naming.NameNotFoundException: Name [jdbc/weblogin01b] is not bound
> in this Context. Unable to find [jdbc].
>

Sometimes when you get a NameNotFoundException, it's because the pool
encountered an error when it was being created.  Hence it doesn't actually
exists.  A couple things you can do to troubleshoot.

1.) Set an initial size for your pool.  This will force it to make at least
one connection at startup which will generally cause it to fail fast, if
there is a problem.  You can then look in the logs to see the error.

2.) Connect with jconsole or jvisualvm and look at the mbeans for Tomcat.
When the pool is actually there, you should see it in the mbeans.


> at org.apache.naming.NamingContext.lookup(NamingContext.java:818)
> at org.apache.naming.NamingContext.lookup(NamingContext.java:166)
> at
> org.apache.naming.factory.ResourceLinkFactory.getObjectInstance(ResourceLinkFactory.java:92)
> at
> javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:321)
> at org.apache.naming.NamingContext.lookup(NamingContext.java:841)
> at org.apache.naming.NamingContext.lookup(NamingContext.java:152)
> at org.apache.naming.NamingContext.lookup(NamingContext.java:829)
> at org.apache.naming.NamingContext.lookup(NamingContext.java:166)
>
> In CATALINA_BASE/conf/server.xml
>
> I have included a variety of slightly different resources all aiming to
> get to the same database schema hopefully one of them will be right:
>
> 
> 
>type="org.apache.catalina.UserDatabase"
>   description="User database that can be updated and saved"
>   factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
>   pathname="conf/tomcat-users.xml" />
>
>
>  username="weblogin01"
> password="x"
> auth="Container"
> type="javax.sql.DataSource"
> driverClassName="oracle.jdbc.pool.OracleDataSource"
>

This looks suspect.  I'm pretty sure you want the JDBC driver name.


> description="Global Address Database"
> url="jdbc:oracle:thin:@10.15.120.29:1522:DGSPC"
>

You could add "initialSize" here, try "1".

maxActive="15"
> maxIdle="3" />
>
>  user="weblogin01"
> password="x"
> auth="Container"
> type="javax.sql.DataSource"
> driverClassName="oracle.jdbc.OracleDriver"
> factory="oracle.jdbc.pool.OracleDataSourceFactory"
>

You're using a different factory (specifically Oracle's implementation), so
the configuration attributes are going to be different.  Not sure how to
set initial size with this implementation.


> url="jdbc:oracle:thin:@10.15.120.29:1522:DGSPC"
> maxActive="20"
> maxIdle="3"
> maxWait="-1" />
>
>  user="weblogin01"
> password="x"
> auth="Container"
> type="javax.sql.DataSource"
> driverClassName="oracle.jdbc.OracleDriver"
> url="jdbc:oracle:thin:@10.15.120.29:1522:DGSPC"
> maxActive="20"
> maxIdle="3"
> maxWait="-1" />
>

This looks the most right.  I'd also try adding "initialSize" of 1.


>
> 
>
> In META-INF/context.xml
>
> I have a ResourceLink to each resource
>
> 
>  global="jdbc/weblogin01"
> type="javax.sql.DataSource"/>
>  global="jdbc/weblogin01b"
> type="javax.sql.DataSource"/>
>  global="jdbc/weblogin01c"
> type="javax.sql.DataSource"/>
>

These look OK.


> 
>
> In web.xml I made no changes related to JDBC on the understanding that the
> ResourceLink elements will be sufficient.
>
> In Java code I try to get a DataSource as follows:
>
> String dbUser = "weblogin01b";
> try {
> Context initCtx = new InitialContext();
> Context envCtx = (Context) initCtx.lookup("java:comp/env");
>
> // Get data source
> ds = (DataSource) envCtx.lookup("jdbc/" + dbUser);
> if (ds == null) {
> logger.log(Level.WARNING,"Null datasource for " + dbUser);
> }
> }
>
> I get similar exceptions for each of the names:
> jdbc/weblogin01
> jdbc/weblogin01b
> jdbc/weblogin01c
>
>
Didn't test this, but it looks OK.

Dan



> After years using GlassFish, I'm struggling with Tomcat, any help would be
> much appreciated.
>
> Thank you
>
> 
>
> This e-mail is for the sole use of the intended recipient and contains
> information that may be privileged and/or confidenti

Tomcat7 cluster don't replicates session

2014-10-29 Thread Nilson Uehara
I have a Ubuntu with 2 Tomcat7 with a cluster configurations.

The balancer is Apache MOD_JK.

*SERVER.XML:*



  
  



  




  
  
  
  
  
  



In server.xml of tomcat2, the ports are 8105, 8109 and 8180 and
jvmRoute="no1" and port="4002"



*WORKERS.PROPERTIES:*
worker.list=no0, no1, cluster

worker.cluster.type=lb
worker.cluster.balance_workers=no0, no1
worker.cluster.sticky_session=1

worker.no0.type=ajp13
worker.no0.host=localhost
worker.no0.port=8009
worker.no0.lbfactor=1

worker.no1.type=ajp13
worker.no1.host=localhost
worker.no1.port=8109
worker.no1.lbfactor=1


*$ route*
Kernel IP routing table
Destination Gateway Genmask Flags Metric RefUse
Iface
default 10.0.2.20.0.0.0 UG0  00 eth0
10.0.2.0*   255.255.255.0   U 1  00 eth0
224.0.0.0   *   240.0.0.0   U 0  00 eth0


*$ ifconfig*
eth0  Link encap:Ethernet  HWaddr 08:00:27:d2:22:ac
  inet addr:10.0.2.15  Bcast:10.0.2.255  Mask:255.255.255.0
  inet6 addr: fe80::a00:27ff:fed2:22ac/64 Scope:Link
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:112 errors:0 dropped:0 overruns:0 frame:0
  TX packets:164 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000
  RX bytes:54502 (54.5 KB)  TX bytes:19774 (19.7 KB)


*$sudo iptables -L*
Chain INPUT (policy ACCEPT)
target prot opt source   destination

Chain FORWARD (policy ACCEPT)
target prot opt source   destination

Chain OUTPUT (policy ACCEPT)
target prot opt source   destination


Clusters log

*TOMCAT1-CLUSTER.LOG:* ->http://pastebin.com/w1TV73Qk

*TOMCAT2-CLUSTER.LOG:* ->http://pastebin.com/V7C35LTL

One point I found interesting in the log is:

   1. FINE: Received a failure detector
   
packet:ClusterData[src=org.apache.catalina.tribes.membership.MemberImpl[tcp://{10,
   0, 2, 15}:4002,{10, 0, 2, 15},4002, alive=1414598894083, securePort=-1, UDP
   Port=-1, id={-127 -84 -80 -93 43 11 68 -77 -65 -49 47 -119 -59 -120 40 19
   }, payload={}, command={}, domain={}, ]; id={84 35 -110 45 -81 -92 66 86
   -65 -60 -61 68 -70 -31 -59 -92 }; sent=2014-10-29 14:08:14.095]
   2. Oct 29, 2014 2:08:14 PM
   org.apache.catalina.tribes.transport.nio.NioReplicationTask remoteEof
   3. FINE: Channel closed on the remote end, disconnecting


What I understood is that the tomcats are able to communicate and when one
falls the other receives the request with the session of the first
normally. It seems the problem is that tomcat is not able to receive or
read session data, then just resetting it and the value of the session
variable is lost.

PS:


Tks!
Nilson Uehara


Fwd:

2014-10-29 Thread Nilson Uehara
I have a Ubuntu with 2 Tomcat7 with a cluster configurations.

The balancer is Apache MOD_JK.

*SERVER.XML:*



  
  



  




  
  
  
  
  
  



In server.xml of tomcat2, the ports are 8105, 8109 and 8180 and
jvmRoute="no1" and port="4002"



*WORKERS.PROPERTIES:*
worker.list=no0, no1, cluster

worker.cluster.type=lb
worker.cluster.balance_workers=no0, no1
worker.cluster.sticky_session=1

worker.no0.type=ajp13
worker.no0.host=localhost
worker.no0.port=8009
worker.no0.lbfactor=1

worker.no1.type=ajp13
worker.no1.host=localhost
worker.no1.port=8109
worker.no1.lbfactor=1


*$ route*
Kernel IP routing table
Destination Gateway Genmask Flags Metric RefUse
Iface
default 10.0.2.20.0.0.0 UG0  00 eth0
10.0.2.0*   255.255.255.0   U 1  00 eth0
224.0.0.0   *   240.0.0.0   U 0  00 eth0


*$ ifconfig*
eth0  Link encap:Ethernet  HWaddr 08:00:27:d2:22:ac
  inet addr:10.0.2.15  Bcast:10.0.2.255  Mask:255.255.255.0
  inet6 addr: fe80::a00:27ff:fed2:22ac/64 Scope:Link
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:112 errors:0 dropped:0 overruns:0 frame:0
  TX packets:164 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000
  RX bytes:54502 (54.5 KB)  TX bytes:19774 (19.7 KB)


*$sudo iptables -L*
Chain INPUT (policy ACCEPT)
target prot opt source   destination

Chain FORWARD (policy ACCEPT)
target prot opt source   destination

Chain OUTPUT (policy ACCEPT)
target prot opt source   destination


Clusters log

*TOMCAT1-CLUSTER.LOG:* ->http://pastebin.com/w1TV73Qk

*TOMCAT2-CLUSTER.LOG:* ->http://pastebin.com/V7C35LTL

One point I found interesting in the log is:

   1. FINE: Received a failure detector
   
packet:ClusterData[src=org.apache.catalina.tribes.membership.MemberImpl[tcp://{10,
   0, 2, 15}:4002,{10, 0, 2, 15},4002, alive=1414598894083, securePort=-1, UDP
   Port=-1, id={-127 -84 -80 -93 43 11 68 -77 -65 -49 47 -119 -59 -120 40 19
   }, payload={}, command={}, domain={}, ]; id={84 35 -110 45 -81 -92 66 86
   -65 -60 -61 68 -70 -31 -59 -92 }; sent=2014-10-29 14:08:14.095]
   2. Oct 29, 2014 2:08:14 PM
   org.apache.catalina.tribes.transport.nio.NioReplicationTask remoteEof
   3. FINE: Channel closed on the remote end, disconnecting


What I understood is that the tomcats are able to communicate and when one
falls the other receives the request with the session of the first
normally. It seems the problem is that tomcat is not able to receive or
read session data, then just resetting it and the value of the session
variable is lost.


Tks!
Nilson Uehara


NameNotFoundException: Name [jdbc/weblogin01b] is not bound in this Context. Unable to find [jdbc]

2014-10-29 Thread vince.webb
Hello
I'm having difficulty getting a JDBC DataSource using Tomcat 8.

I want to define the JDBC details in server.xml so the database identified 
depends on the server and not the application. It will be beneficial for me if 
the applications only need to know the JDBC name and not password details.

Thus I'm using GlobalNamingResources in server.xml
and ResourceLink in context.xml

I'm obviously not getting it right because I get this exception:

javax.naming.NameNotFoundException: Name [jdbc/weblogin01b] is not bound in 
this Context. Unable to find [jdbc].
at org.apache.naming.NamingContext.lookup(NamingContext.java:818)
at org.apache.naming.NamingContext.lookup(NamingContext.java:166)
at 
org.apache.naming.factory.ResourceLinkFactory.getObjectInstance(ResourceLinkFactory.java:92)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:321)
at org.apache.naming.NamingContext.lookup(NamingContext.java:841)
at org.apache.naming.NamingContext.lookup(NamingContext.java:152)
at org.apache.naming.NamingContext.lookup(NamingContext.java:829)
at org.apache.naming.NamingContext.lookup(NamingContext.java:166)

In CATALINA_BASE/conf/server.xml

I have included a variety of slightly different resources all aiming to get to 
the same database schema hopefully one of them will be right:














In META-INF/context.xml

I have a ResourceLink to each resource







In web.xml I made no changes related to JDBC on the understanding that the 
ResourceLink elements will be sufficient.

In Java code I try to get a DataSource as follows:

String dbUser = "weblogin01b";
try {
Context initCtx = new InitialContext();
Context envCtx = (Context) initCtx.lookup("java:comp/env");

// Get data source
ds = (DataSource) envCtx.lookup("jdbc/" + dbUser);
if (ds == null) {
logger.log(Level.WARNING,"Null datasource for " + dbUser);
}
}

I get similar exceptions for each of the names:
jdbc/weblogin01
jdbc/weblogin01b
jdbc/weblogin01c

After years using GlassFish, I'm struggling with Tomcat, any help would be much 
appreciated.

Thank you



This e-mail is for the sole use of the intended recipient and contains 
information that may be privileged and/or confidential. If you are not an 
intended recipient, please notify the sender by return e-mail and delete this 
e-mail and any attachments. Certain required legal entity disclosures can be 
accessed on our website.


Trying to do LDAPS with Tomcat 7 on windows

2014-10-29 Thread Nutter, Ronald
I am trying to implement an application from a vendor who has deployed it using 
Tomcat.
Due to a client requirement, I need to use LDAPS to talk to their AD Directory 
service.  I have it working on LDAP, so I know the config is correct at that 
point.
Where I am having a problem is figuring out how to import the cert from the CA 
I have setup on the AD server.
Everything I can find mentions commands that aren't on the windows server that 
Tomcat 7 is installed on.
I tried installing the openssl tools that I found but I still don't have the 
commands to import a cert.
Have been looking on Google without any success.

Would appreciate any suggestions or links on how to get this working.

Thanks,
Ron


Re: tomcat websocket communication with external java program

2014-10-29 Thread Igor Kolomiets
All you need to do is to have your "external java" use a websocket
client (like Jetty's
http://www.eclipse.org/jetty/documentation/current/jetty-websocket-client-api.html)
to connect to your server's websocket endpoint.
--
Igor Kolomiets


On Sat, Oct 25, 2014 at 3:41 PM, Jason Ricles  wrote:
> I have a tomcat webpage with a websocket server written in java to
> communicate with the webpage. I want this websocket server to be able to
> communicate with an external java program without an sockets, so something
> like this
>
> webpage<>websocket server<>external java
> program
>
>
> However I am having trouble getting that to work, since to use the
> websocket server I need to make an instance of it and thus it thinks there
> are no session. So currently I have done it the following way
>
> webpage<->websocket
> server<-->socket<--->external java
> program
>
> This is kinda messy however, so is there some way to get my external java
> program and my webpage to communicate through websockets without a socket
> go between?

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



Re: How to access Sessions outside of class

2014-10-29 Thread Tim Watts
On Wed, 2014-10-29 at 08:28 -0400, Jason Ricles wrote:
> foo is not a webapp, it is a separate program running on the computer as a
> daemon. It has to do this stuff for it needed to be ran like this. bar is
> basically the gui to the daemon, providing what is happening on the machine
> to someone at another computer, since the machine is headless these
> programs are being ran on. So I am curious as to how having my foo program
> running outside of bar how it can interact using websockets? So far I have
> seen that they are disconnected and have no clue about each other outside
> of using RMI.
> 

A java program can be a websocket client with out being a webapp.
Perhaps this example will help:

http://stackoverflow.com/questions/26452903/javax-websocket-client-simple-example

You would need the JEE 7 websocket jar which presumably is included in
Tomcat 8 -- or use the appropriate Maven dependencies.  And as Chris
pointed out, JSON is fairly ubiquitous and easy to deal with.

RMI could work and is simple enough.  There are a few downsides worth
considering: 1) it's strictly java-to-java IPC, so no other technologies
(e.g. .NET) can participate down the road; 2) it's not firewall friendly
-- but that would only matter if there was a fw between foo and bar; 3)
it's not hip and cool -- not sure how widely used it is anymore outside
of EJB (do people still write EJBs?).

Did you say earlier that foo would need to send unsolicited alerts at
some point -- i.e. send alerts even when there's no client listening?
That could possibly complicate the design in that I believe the ws
server endpoint's life begins only in response to a client connection.
(I'm thinking of the server endpoint for the browser here.)  Thus such
alerts would need to go somewhere until a client shows up wanting to see
them (e.g. a database).  And if that's the case why not send all of them
there.

Sounds like you may have some design issues to work out and we don't
have enough details to be of much help.

--tim.


> On Tue, Oct 28, 2014 at 6:55 PM, Christopher Schultz <
> ch...@christopherschultz.net> wrote:
> 
> > -BEGIN PGP SIGNED MESSAGE-
> > Hash: SHA256
> >
> > Jason,
> >
> > On 10/28/14 3:06 PM, Jason Ricles wrote:
> > > Chris, foo has to run as a daemon outside of tomcat. It will be
> > > interacting with low level drivers through jni.
> >
> > While interesting, it's not terribly relevant.
> >
> > > I was looking at trying to do that with making a client endpoint
> > > in my daemon but i was having trouble getting it to connect to the
> > > websocket server.
> >
> > Maybe you should start there: get your foo daemon talking to your web
> > application via Websocket and I think you'll learn a lot about
> > Websocket in general and probably end up with a better webapp to boot.
> >
> > Thanks,
> > - -chris
> >
> > > On Tue, Oct 28, 2014 at 12:21 PM, Christopher Schultz <
> > > ch...@christopherschultz.net> wrote:
> > >
> > > Jason,
> > >
> > > On 10/28/14 9:06 AM, Jason Ricles wrote:
> >  Ok so here is the problem I have been spinning my wheels on
> >  for day let me just lay it out.
> > 
> >  I have a daemon written in java running lets call it foo for
> >  simpleness on a linux machine that has the tomcat server
> >  running. On the tomcat server is a WAR file for a webapp
> >  called bar. In that webapp is a webpage with JavaScript
> >  websocket communication that connects to a websocket server
> >  that is also a part of the WAR file. So I have a webpage and
> >  a websocket server communicating with each other.
> > 
> >  I want the foo daemon and the websocket server on bar (web
> >  application) to be able to communicate with each other. Is
> >  there any way outside of sockets to have foo and the
> >  websocket server on bar do this?
> > >
> > > Dumb question: why can't foo just be a Websocket client? Make a
> > > ws:// connection to your web application in Tomcat and then
> > > two-way communication is possible. Take whatever values from either
> > > side and push them over the wire.
> > >
> > > Use JSON or something dirt-simple as your data encapsulation
> > > language: it's standard, well-understood, and has parsers and
> > > serializers readily available for many different languages. It's
> > > also pretty much backward- and forward-compatible since everything
> > > is pretty much a named value map, so you can add/subtract fields at
> > > will without having to rewrite the communication protocol or do a
> > > lot of extra work in either the client or the server.
> > >
> > > -chris
> > >
> >  On Tue, Oct 28, 2014 at 8:59 AM, Martin Grigorov
> >   wrote:
> > 
> > > On Tue, Oct 28, 2014 at 2:51 PM, Jose María Zaragoza
> > >  > >>
> > > wrote:
> > >
> > >> 2014-10-28 13:44 GMT+01:00 Jason Ricles
> > >> :
> > >>>
> > >>> Martin,
> > >>>
> > >>> I can not use hazelcast due to regulations I have to
> > >>> abi

Re: APR with PKCS11 support

2014-10-29 Thread Sanaullah
I again started working on SSLEngine with safenet and i need some help, how
to enable the debugging? I configure the engine as "LunaCA3".




Here is error log after starting the server.

Oct 29, 2014 1:40:21 PM org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.31 using APR
version 1.5.1.
Oct 29, 2014 1:40:22 PM org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters
[false], random [true].
Oct 29, 2014 1:40:22 PM org.apache.catalina.core.AprLifecycleListener
lifecycleEvent
SEVERE: Failed to initialize the SSLEngine.
org.apache.tomcat.jni.Error: 70023: This function has not been implemented
on this platform
at org.apache.tomcat.jni.SSL.initialize(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
org.apache.catalina.core.AprLifecycleListener.initializeSSL(AprLifecycleListener.java:270)
at
org.apache.catalina.core.AprLifecycleListener.lifecycleEvent(AprLifecycleListener.java:124)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at
org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402)
at
org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:99)
at org.apache.catalina.startup.Catalina.load(Catalina.java:638)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:280)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:454)
Oct 29, 2014 1:40:22 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-apr-8080"]
Oct 29, 2014 1:40:23 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-apr-8443"]
Oct 29, 2014 1:40:23 PM org.apache.coyote.AbstractProtocol init
SEVERE: Failed to initialize end point associated with ProtocolHandler
["http-apr-8443"]
java.lang.Exception: Unable to create SSLContext. Check that SSLEngine is
enabled in the AprLifecycleListener, the AprLifecycleListener has
initialised cor$
at org.apache.tomcat.util.net.AprEndpoint.bind(AprEndpoint.java:503)
at
org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:640)
at
org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:434)
at
org.apache.catalina.connector.Connector.initInternal(Connector.java:978)
at
org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
at
org.apache.catalina.core.StandardService.initInternal(StandardService.java:559)
at
org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
at
org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:813)
at
org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
at org.apache.catalina.startup.Catalina.load(Catalina.java:638)
at org.apache.catalina.startup.Catalina.load(Catalina.java:663)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:280)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:454)
Caused by: java.lang.Exception: Invalid Server SSL Protocol
(error:140A90F1:SSL routines:SSL_CTX_new:unable to load ssl2 md5 routines)
at org.apache.tomcat.jni.SSLContext.make(Native Method)
at org.apache.tomcat.util.net.AprEndpoint.bind(AprEndpoint.java:498)
... 16 more




Regards,
Sanaullah





On Wed, Aug 6, 2014 at 5:12 AM, Christopher Schultz <
ch...@christopherschultz.net> wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA256
>
> Sunaullah,
>
> On 7/26/14, 4:50 AM, Sanaullah wrote:
> > I tried that configuration but getting errrors.
>
> I just want you to know that you haven't been forgotten: I'm on
> vacation for a bit but I'd really like to take a look at this issue
> when I return.
>
> In the meantime, feel free to check out the tcnative code if you want
> to see what is going on, or someone else could chime-in and give an
> opinion

Re: How to access Sessions outside of class

2014-10-29 Thread Martin Grigorov
Hi,

On Wed, Oct 29, 2014 at 2:28 PM, Jason Ricles 
wrote:

> foo is not a webapp, it is a separate program running on the computer as a
> daemon. It has to do this stuff for it needed to be ran like this. bar is
> basically the gui to the daemon, providing what is happening on the machine
> to someone at another computer, since the machine is headless these
> programs are being ran on. So I am curious as to how having my foo program
> running outside of bar how it can interact using websockets? So far I have
> seen that they are disconnected


I think it is time to give us more details (and even show some code) about
your trials.
Which library do you use as a WebSocket client at foo ?
What kind of error do you see when trying to connect ?
Etc.


> and have no clue about each other outside
> of using RMI.
>
> On Tue, Oct 28, 2014 at 6:55 PM, Christopher Schultz <
> ch...@christopherschultz.net> wrote:
>
> > -BEGIN PGP SIGNED MESSAGE-
> > Hash: SHA256
> >
> > Jason,
> >
> > On 10/28/14 3:06 PM, Jason Ricles wrote:
> > > Chris, foo has to run as a daemon outside of tomcat. It will be
> > > interacting with low level drivers through jni.
> >
> > While interesting, it's not terribly relevant.
> >
> > > I was looking at trying to do that with making a client endpoint
> > > in my daemon but i was having trouble getting it to connect to the
> > > websocket server.
> >
> > Maybe you should start there: get your foo daemon talking to your web
> > application via Websocket and I think you'll learn a lot about
> > Websocket in general and probably end up with a better webapp to boot.
> >
> > Thanks,
> > - -chris
> >
> > > On Tue, Oct 28, 2014 at 12:21 PM, Christopher Schultz <
> > > ch...@christopherschultz.net> wrote:
> > >
> > > Jason,
> > >
> > > On 10/28/14 9:06 AM, Jason Ricles wrote:
> >  Ok so here is the problem I have been spinning my wheels on
> >  for day let me just lay it out.
> > 
> >  I have a daemon written in java running lets call it foo for
> >  simpleness on a linux machine that has the tomcat server
> >  running. On the tomcat server is a WAR file for a webapp
> >  called bar. In that webapp is a webpage with JavaScript
> >  websocket communication that connects to a websocket server
> >  that is also a part of the WAR file. So I have a webpage and
> >  a websocket server communicating with each other.
> > 
> >  I want the foo daemon and the websocket server on bar (web
> >  application) to be able to communicate with each other. Is
> >  there any way outside of sockets to have foo and the
> >  websocket server on bar do this?
> > >
> > > Dumb question: why can't foo just be a Websocket client? Make a
> > > ws:// connection to your web application in Tomcat and then
> > > two-way communication is possible. Take whatever values from either
> > > side and push them over the wire.
> > >
> > > Use JSON or something dirt-simple as your data encapsulation
> > > language: it's standard, well-understood, and has parsers and
> > > serializers readily available for many different languages. It's
> > > also pretty much backward- and forward-compatible since everything
> > > is pretty much a named value map, so you can add/subtract fields at
> > > will without having to rewrite the communication protocol or do a
> > > lot of extra work in either the client or the server.
> > >
> > > -chris
> > >
> >  On Tue, Oct 28, 2014 at 8:59 AM, Martin Grigorov
> >   wrote:
> > 
> > > On Tue, Oct 28, 2014 at 2:51 PM, Jose María Zaragoza
> > >  > >>
> > > wrote:
> > >
> > >> 2014-10-28 13:44 GMT+01:00 Jason Ricles
> > >> :
> > >>>
> > >>> Martin,
> > >>>
> > >>> I can not use hazelcast due to regulations I have to
> > >>> abide by, is where
> > >> any
> > >>> other built in way besides sockets that will allow me
> > >>> to share data
> > >> between
> > >>> the two processes?
> > >>
> > >>
> > >> You could use an embedded ( or not ) messaging broker (
> > >> like ActiveMQ ) . Or any kind of in-memory database
> > >>
> > >
> > > But this will be again socket based communication.
> > >
> > >
> > > Let's start from the beginning: What is your use case ?
> > > What value will have a deserialized session in the second
> > > process ?
> > >
> > >
> > >>
> > >>
> > >>>
> > >>>
> > >>> On Tue, Oct 28, 2014 at 8:24 AM, Martin Grigorov <
> > >> martin.grigo...@gmail.com>
> > >>> wrote:
> > >>>
> >  Hi,
> > 
> >  In this case you will have to share the data between
> >  the processes. A simple and easy solution would be to
> >  use http://hazelcast.com/,
> > > for
> >  example.
> > 
> >  On Tue, Oct 28, 2014 at 2:06 PM, Jason Ricles <
> > > jgr...@alum.lehigh.edu>
> >  wrote:
> > 
> > > No,
> > >
> >

Re: How to access Sessions outside of class

2014-10-29 Thread Jason Ricles
foo is not a webapp, it is a separate program running on the computer as a
daemon. It has to do this stuff for it needed to be ran like this. bar is
basically the gui to the daemon, providing what is happening on the machine
to someone at another computer, since the machine is headless these
programs are being ran on. So I am curious as to how having my foo program
running outside of bar how it can interact using websockets? So far I have
seen that they are disconnected and have no clue about each other outside
of using RMI.

On Tue, Oct 28, 2014 at 6:55 PM, Christopher Schultz <
ch...@christopherschultz.net> wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA256
>
> Jason,
>
> On 10/28/14 3:06 PM, Jason Ricles wrote:
> > Chris, foo has to run as a daemon outside of tomcat. It will be
> > interacting with low level drivers through jni.
>
> While interesting, it's not terribly relevant.
>
> > I was looking at trying to do that with making a client endpoint
> > in my daemon but i was having trouble getting it to connect to the
> > websocket server.
>
> Maybe you should start there: get your foo daemon talking to your web
> application via Websocket and I think you'll learn a lot about
> Websocket in general and probably end up with a better webapp to boot.
>
> Thanks,
> - -chris
>
> > On Tue, Oct 28, 2014 at 12:21 PM, Christopher Schultz <
> > ch...@christopherschultz.net> wrote:
> >
> > Jason,
> >
> > On 10/28/14 9:06 AM, Jason Ricles wrote:
>  Ok so here is the problem I have been spinning my wheels on
>  for day let me just lay it out.
> 
>  I have a daemon written in java running lets call it foo for
>  simpleness on a linux machine that has the tomcat server
>  running. On the tomcat server is a WAR file for a webapp
>  called bar. In that webapp is a webpage with JavaScript
>  websocket communication that connects to a websocket server
>  that is also a part of the WAR file. So I have a webpage and
>  a websocket server communicating with each other.
> 
>  I want the foo daemon and the websocket server on bar (web
>  application) to be able to communicate with each other. Is
>  there any way outside of sockets to have foo and the
>  websocket server on bar do this?
> >
> > Dumb question: why can't foo just be a Websocket client? Make a
> > ws:// connection to your web application in Tomcat and then
> > two-way communication is possible. Take whatever values from either
> > side and push them over the wire.
> >
> > Use JSON or something dirt-simple as your data encapsulation
> > language: it's standard, well-understood, and has parsers and
> > serializers readily available for many different languages. It's
> > also pretty much backward- and forward-compatible since everything
> > is pretty much a named value map, so you can add/subtract fields at
> > will without having to rewrite the communication protocol or do a
> > lot of extra work in either the client or the server.
> >
> > -chris
> >
>  On Tue, Oct 28, 2014 at 8:59 AM, Martin Grigorov
>   wrote:
> 
> > On Tue, Oct 28, 2014 at 2:51 PM, Jose María Zaragoza
> >  >>
> > wrote:
> >
> >> 2014-10-28 13:44 GMT+01:00 Jason Ricles
> >> :
> >>>
> >>> Martin,
> >>>
> >>> I can not use hazelcast due to regulations I have to
> >>> abide by, is where
> >> any
> >>> other built in way besides sockets that will allow me
> >>> to share data
> >> between
> >>> the two processes?
> >>
> >>
> >> You could use an embedded ( or not ) messaging broker (
> >> like ActiveMQ ) . Or any kind of in-memory database
> >>
> >
> > But this will be again socket based communication.
> >
> >
> > Let's start from the beginning: What is your use case ?
> > What value will have a deserialized session in the second
> > process ?
> >
> >
> >>
> >>
> >>>
> >>>
> >>> On Tue, Oct 28, 2014 at 8:24 AM, Martin Grigorov <
> >> martin.grigo...@gmail.com>
> >>> wrote:
> >>>
>  Hi,
> 
>  In this case you will have to share the data between
>  the processes. A simple and easy solution would be to
>  use http://hazelcast.com/,
> > for
>  example.
> 
>  On Tue, Oct 28, 2014 at 2:06 PM, Jason Ricles <
> > jgr...@alum.lehigh.edu>
>  wrote:
> 
> > No,
> >
> > it is external as in it is running in a daemon on a
> > linux machine
> >> where
>  the
> > tomcat server is also running.
> >
> > On Tue, Oct 28, 2014 at 4:35 AM, Johan Compagner <
> >> jcompag...@servoy.com>
> > wrote:
> >
> >>>
> >>>
> >>> I would like to be able to access my sessions
> >>> from an external
> >> java
> >> class,
> >>> however each time I do sessionList.getsize() it
> >>>

Re: [ANN] Apache Tomcat Native 1.1.32 released

2014-10-29 Thread Mark Thomas
On 28/10/2014 21:28, Mark Thomas wrote:
> The Apache Tomcat team announces the immediate availability of Apache
> Tomcat Native 1.1.32 stable.
> 
> The key features of this release are:
> - Add support for TLSv1.1 and TLSv1.2
> - Link Windows binaries with OpenSSL 1.0.1i and APR 1.5.1

Correction. OpenSSL 1.0.1*j*

> 
> Please refer to the change log for the complete list of changes:
> http://tomcat.apache.org/native-doc/miscellaneous/changelog.html
> 
> Downloads:
> http://tomcat.apache.org/download-native.cgi
> 
> The Apache Tomcat Native Library provides portable API for features
> not found in contemporary JDK's. It uses Apache Portable Runtime as
> operating system abstraction layer and OpenSSL for SSL networking and
> allows optimal performance in production environments.
> 
> 
> Thank you,
> 


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