Re: How to allow only TLS 1.1 connections to Tomcat (6.0) server with https ?

2013-03-07 Thread Ognjen Blagojevic

Chris,

On 7.3.2013 5:58, Christopher Schultz wrote:

Which behavior is right? I prefer how Tomcat 6 is interepreting
that attribute -- trying to enable best possible TLS protocol
versions available.

OTOH, from Tomcat 7 documents it seems that the value of attribute
setProtocol is just passed to JSSE when creating SSLContext. I
assume that Tomcat 6 did some pre-processing before passing that
attribute to SSLContext.


Are you sure it's not a JVM default and not Tomcat's default? Tomcat's
default in both situations is TLS which may mean different things
depending upon the JVM configuration.


I am testing both Tomcat 6.0.36 and 7.0.37 with the same, Oracle, JDK 
1.7.0_09, on Windows XP SP3.


I just unpack zip ditribution, uncomment default HTTPS connector (with 
sslProtocol=TLS already set), change port 8443 to 443, and test with:


  https://www.ssllabs.com/ssltest/

For Tomcat 6.0.36 it reports:

Protocols
TLS 1.2 Yes
TLS 1.1 Yes
TLS 1.0 Yes
SSL 3.0 Yes
SSL 2.0 No


Tomcat 7.0.37:

Protocols
TLS 1.2 No
TLS 1.1 No
TLS 1.0 Yes
SSL 3.0 Yes
SSL 2.0 No


I agree, it is strange.

-Ognjen

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



Re: Why does Tomcat require persistent MBeans

2013-03-07 Thread Mark Thomas
On 07/03/2013 03:14, Denis wrote:
 Hello,
 
 Just checked that not all of my mbeans are working under Tomcat 7. I
 exported all of them using
 /org.springframework.jmx.export.MBeanExporter/. I see exception when
 calling methods on some mbeans. The exception says /Problem invoking
 load. javax.management.MBeanException. Persistence not supported for
 this MBean/. I wonder why is it a strict requirement? I assume this is
 important because it can change some internal state of the object. Mine
 MBean is supposed to trigger data loading process, so I don't care about
 persisting the state.
 
 1) Is there any way around it?
 2) Why only part of my mbeans are functional inside Tomcat when they
 are exported in the same manner without additional configuration? Is
 there any standard for classes to be a valid MBeans under Tomcat?

Tomcat does not place any requirements on MBeans. This looks like the
issue is somewhere other than Tomcat.

Mark


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



ExtendedAnsiSQL ODBC Flag resets

2013-03-07 Thread Paolo Botta
Hi everybody

I have a strange behavior but I don't know if it's a problem of Tomcat or
what else:

I have Tomcat 7.0.19 running on java 1.6.0_31 on Windows 7, but I tried on
different version of java, Tomcat (6 and 7) and Windows (xp and 7) and I
obtained the same behavior.

I create a system DSN to access an Access file (version 2003). I set in the
ODBC ExtendeAnsiSQL=1. I run my program that use Tomcat and create tables
with extendedAnsiSQL (in particulare DECIMAL fields in the database) all
work fine.

When I stop Tomcat and restart it the flag in the ODBC is set to 0.

I use a workaround setting the ExtendedAnsiSQL=1 in the connection string,
but why it reset in the ODBC every time I stop and restart Tomcat?

 

Thanks to everybody.

 

Bye

Paolo



Problem in using multiple clusters in Tomcat 6.0.35

2013-03-07 Thread Jay Kakkad
[ version of tomcat : 6.0.35 , os version : RHEL 6.3 , Bit configuration : 
64bit ]

Hi,
I am having a requirement where I need to have the same Multicast Ip, but the 
cluster needs to be differentiated based on domain.For this we are using a 
domain interceptor DomainFilterInterceptor. So we have configured server.xml as 
follows:

Host name=localhost  appBase=webapps unpackWARs=true autoDeploy=true
xmlValidation=false xmlNamespaceAware=false
Cluster className=org.apache.catalina.ha.tcp.SimpleTcpCluster 
channelSendOptions=8
Manager className=org.apache.catalina.ha.session.DeltaManager
expireSessionsOnShutdown=false
 notifyListenersOnReplication=true/
..
Membership className=org.apache.catalina.tribes.membership.McastService
address=228.0.0.4
domain=abc.com
port=45564
frequency=500
dropTime=3000 /
.
Interceptor 
className=org.apache.catalina.tribes.group.interceptors.TcpFailureDetector/
Interceptor 
className=org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor/
Interceptor 
className=org.apache.catalina.tribes.group.interceptors.ThroughputInterceptor/
Interceptor 
classname=org.apache.catalina.tribes.group.interceptors.DomainFilterInterceptor
 domain=abc.com/
..
/Channel
.
/Cluster
/Host

For this configuration we are getting the following error.

java.lang.NullPointerException
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at 
org.apache.tomcat.util.digester.ObjectCreateRule.begin(ObjectCreateRule.java:205)
at org.apache.tomcat.util.digester.Rule.begin(Rule.java:153)
at 
org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1356)
at 
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown
 Source)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown
 Source)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown
 Source)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown 
Source)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
 Source)
at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown 
Source)
at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown 
Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown 
Source)
at 
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown 
Source)
at 
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
 Source)
at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1642)
at org.apache.catalina.startup.Catalina.load(Catalina.java:524)
at org.apache.catalina.startup.Catalina.start(Catalina.java:582)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Mar 5, 2013 2:32:32 PM org.apache.catalina.startup.Catalina load
WARNING: Catalina.start using conf/server.xml:
java.lang.NullPointerException
at 
org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2806)
at 
org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2832)
at 
org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1359)
at 
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown
 Source)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown
 Source)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown
 Source)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown 
Source)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
 Source)
at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown 
Source)
at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown 
Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown 
Source)
at 
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown 
Source)
at 
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
 Source)
at 

Re: Problem in using multiple clusters in Tomcat 6.0.35

2013-03-07 Thread Konstantin Kolinko
2013/3/7 Jay Kakkad jay_kak...@persistent.co.in:
 [ version of tomcat : 6.0.35 , os version : RHEL 6.3 , Bit configuration : 
 64bit ]

 Hi,
 I am having a requirement where I need to have the same Multicast Ip, but the 
 cluster needs to be differentiated based on domain.For this we are using a 
 domain interceptor DomainFilterInterceptor. So we have configured server.xml 
 as follows:

 Host name=localhost  appBase=webapps unpackWARs=true autoDeploy=true
 xmlValidation=false xmlNamespaceAware=false
 Cluster className=org.apache.catalina.ha.tcp.SimpleTcpCluster 
 channelSendOptions=8
 Manager className=org.apache.catalina.ha.session.DeltaManager
 expireSessionsOnShutdown=false
  notifyListenersOnReplication=true/
 ..
 Membership className=org.apache.catalina.tribes.membership.McastService
 address=228.0.0.4
 domain=abc.com
 port=45564
 frequency=500
 dropTime=3000 /
 .
 Interceptor 
 className=org.apache.catalina.tribes.group.interceptors.TcpFailureDetector/
 Interceptor 
 className=org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor/
 Interceptor 
 className=org.apache.catalina.tribes.group.interceptors.ThroughputInterceptor/
 Interceptor 
 classname=org.apache.catalina.tribes.group.interceptors.DomainFilterInterceptor
  domain=abc.com/

The above line is broken.  s/classname/className/

 ..
 /Channel
 .
 /Cluster
 /Host

 For this configuration we are getting the following error.

 java.lang.NullPointerException
 at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at 
 org.apache.tomcat.util.digester.ObjectCreateRule.begin(ObjectCreateRule.java:205)
 (...)

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



Re: Cannot access my app after Tomcat 7.0.28

2013-03-07 Thread Patrick Flaherty

Hi Mark,

Thanks for that. Fixed the spinning bug that you pointed out and no  
more 25% cpu but I still cannot hit the app! :-(
So the spinning bug was not related to the inability to get to the  
ROOT Tomcat app or my app /rrmt.


Simply, 7.0.37 server does not respond to GET / HTTP/1.1. Remove my  
war restart Tomcat and I *can *get to the ROOT app.
Something in my app that causing the connector to stop responding  
apparently. Now that I have the JVisualvm configured,

is there anything I can derive that it?

Thanks once again.
Pat

On Mar 6, 2013, at 12:34 PM, Mark Thomas wrote:


On 06/03/2013 17:12, Patrick Flaherty wrote:

This looks to be the culprit.

That is application code so you'll have to take a look to see what  
it is doing in line 84 of  
com.rampageinc.base.serverpush.RRServerPushContextListener


Mark


localhost-startStop-1 daemon prio=6 tid=0x0550c000 nid=0x1fc4  
runnable

[0x059ef000]
   java.lang.Thread.State: RUNNABLE
at
com 
.rampageinc 
.base 
.serverpush 
.RRServerPushContextListener 
.contextInitialized(RRServerPushContextListener.java:84)


at
org 
.apache 
.catalina.core.StandardContext.listenerStart(StandardContext.java: 
4797)


at
org 
.apache 
.catalina.core.StandardContext.startInternal(StandardContext.java: 
5291)


- locked 0x299102d0 (a  
org.apache.catalina.core.StandardContext)

at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
- locked 0x299102d0 (a  
org.apache.catalina.core.StandardContext)

at
org 
.apache 
.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)


at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java: 
877)

at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:977)
at
org.apache.catalina.startup.HostConfig 
$DeployWar.run(HostConfig.java:1655)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown  
Source)

at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown  
Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown  
Source)

at java.lang.Thread.run(Unknown Source)



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




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



Re: Changing tomcat connection pool size through jmx

2013-03-07 Thread Daniel Mikusa
On Mar 7, 2013, at 9:59 AM, amit shah wrote:

 Hello,
I use tomcat connection pool in my web application by using two
 jars - tomcat-jdbc-7.0.34.jar and tomcat-juli-7.0.34.jar. I want to change
 the connection pool size through jmx but I could not find any defined jmx
 operation for doing that.

Are you strictly looking at JMX operations?  Have you tried looking at / 
modifying the attributes?  

Dan

 I noticed that bug
 50864https://issues.apache.org/bugzilla/show_bug.cgi?id=50864
 specifies
 that tomcat allows updating the connection pool size through jmx from
 tomcat 7.0.28 onwards. I use 7.0.34 version for jars. Am I missing
 something?
 
 Thank you

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



Re: Changing tomcat connection pool size through jmx

2013-03-07 Thread amit shah
I was looking at jmx since that would not need application server restart.

I didn't understand what you meant by Have you tried looking at /
modifying the attributes ?


On Thu, Mar 7, 2013 at 9:50 PM, Daniel Mikusa dmik...@vmware.com wrote:

 On Mar 7, 2013, at 9:59 AM, amit shah wrote:

  Hello,
 I use tomcat connection pool in my web application by using two
  jars - tomcat-jdbc-7.0.34.jar and tomcat-juli-7.0.34.jar. I want to
 change
  the connection pool size through jmx but I could not find any defined jmx
  operation for doing that.

 Are you strictly looking at JMX operations?  Have you tried looking at /
 modifying the attributes?

 Dan

  I noticed that bug
  50864https://issues.apache.org/bugzilla/show_bug.cgi?id=50864
  specifies
  that tomcat allows updating the connection pool size through jmx from
  tomcat 7.0.28 onwards. I use 7.0.34 version for jars. Am I missing
  something?
 
  Thank you

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




RE: how to bind localhost

2013-03-07 Thread Caldarale, Charles R
 From: vicky [mailto:vicky007aggar...@yahoo.co.in] 
 Subject: how to bind localhost

 Is there a way to bind the tomcat https port to localhost(127.0.0.1)  only.

Someday, you really should try reading the Tomcat documentation.

http://tomcat.apache.org/tomcat-7.0-doc/config/http.html#Standard_Implementation

Look at the address attribute.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


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



Re: how to bind localhost

2013-03-07 Thread vicky007aggarwal
Thanks charles  pls excuse my trivial query



On Mar 7, 2013, at 11:42 PM, Caldarale, Charles R 
chuck.caldar...@unisys.com wrote:

 From: vicky [mailto:vicky007aggar...@yahoo.co.in] 
 Subject: how to bind localhost
 
 Is there a way to bind the tomcat https port to localhost(127.0.0.1)  only.
 
 Someday, you really should try reading the Tomcat documentation.
 
 http://tomcat.apache.org/tomcat-7.0-doc/config/http.html#Standard_Implementation
 
 Look at the address attribute.
 
 - Chuck
 
 
 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
 MATERIAL and is thus for use only by the intended recipient. If you received 
 this in error, please contact the sender and delete the e-mail and its 
 attachments from all computers.
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 

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



Re: [OT] how to bind localhost

2013-03-07 Thread André Warnier

vicky007aggar...@yahoo.co.in wrote:

Thanks charles  pls excuse my trivial query



Charles was obviously in a good mood, but by top-posting your apology, you are really 
adding insult to injury.


(http://idioms.thefreedictionary.com/add+insult+to+injury)






On Mar 7, 2013, at 11:42 PM, Caldarale, Charles R 
chuck.caldar...@unisys.com wrote:

From: vicky [mailto:vicky007aggar...@yahoo.co.in] 
Subject: how to bind localhost

Is there a way to bind the tomcat https port to localhost(127.0.0.1)  only.

Someday, you really should try reading the Tomcat documentation.

http://tomcat.apache.org/tomcat-7.0-doc/config/http.html#Standard_Implementation

Look at the address attribute.

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


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



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





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



Re: Changing tomcat connection pool size through jmx

2013-03-07 Thread Daniel Mikusa
On Mar 7, 2013, at 12:32 PM, amit shah wrote:

 I was looking at jmx since that would not need application server restart.
 
 I didn't understand what you meant by Have you tried looking at /
 modifying the attributes ?

When you look at an Mbean in jconsole or jvisualvm, you'll see a few different 
tabs but there should be one which lists Attributes (i.e. the values exposed 
through JMX) and one that lists Operations (i.e. functions exposed through JMX).

Attributes list the properties of an mbean and some properties can be changed 
on the fly by double-clicking them and setting a new value.  I believe that's 
how you would adjust the connection pool properties.  Does that work for you?

Dan


 
 
 On Thu, Mar 7, 2013 at 9:50 PM, Daniel Mikusa dmik...@vmware.com wrote:
 
 On Mar 7, 2013, at 9:59 AM, amit shah wrote:
 
 Hello,
   I use tomcat connection pool in my web application by using two
 jars - tomcat-jdbc-7.0.34.jar and tomcat-juli-7.0.34.jar. I want to
 change
 the connection pool size through jmx but I could not find any defined jmx
 operation for doing that.
 
 Are you strictly looking at JMX operations?  Have you tried looking at /
 modifying the attributes?
 
 Dan
 
I noticed that bug
 50864https://issues.apache.org/bugzilla/show_bug.cgi?id=50864
 specifies
 that tomcat allows updating the connection pool size through jmx from
 tomcat 7.0.28 onwards. I use 7.0.34 version for jars. Am I missing
 something?
 
 Thank you
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 

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



Re: How to allow only TLS 1.1 connections to Tomcat (6.0) server with https ?

2013-03-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Ognjen,

On 3/7/13 3:05 AM, Ognjen Blagojevic wrote:
 I am testing both Tomcat 6.0.36 and 7.0.37 with the same, Oracle,
 JDK 1.7.0_09, on Windows XP SP3.
 
 I just unpack zip ditribution, uncomment default HTTPS connector
 (with sslProtocol=TLS already set), change port 8443 to 443, and
 test with:
 
 https://www.ssllabs.com/ssltest/
 
 For Tomcat 6.0.36 it reports:
 
 Protocols TLS 1.2 Yes TLS 1.1 Yes TLS 1.0 Yes SSL 3.0
 Yes SSL 2.0 No
 
 
 Tomcat 7.0.37:
 
 Protocols TLS 1.2 No TLS 1.1 No TLS 1.0 Yes SSL 3.0
 Yes SSL 2.0 No
 
 
 I agree, it is strange.

Hmm... I didn't notice any difference in code between Tomcat 6 and 7
in this regard: maybe someone with a bit more knowledge than I can
comment...

Are you using APR or anything like that with Tomcat 7?

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEAREIAAYFAlE5MAgACgkQ9CaO5/Lv0PDlSACgsY70AJdwwirvyRECtnV8fT4J
TQMAn1KwKfAyc8N9kc7Ll2SQtqcuNnS0
=LYLj
-END PGP SIGNATURE-

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



Re: ExtendedAnsiSQL ODBC Flag resets

2013-03-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Paolo,

On 3/7/13 4:52 AM, Paolo Botta wrote:
 I have a strange behavior but I don't know if it's a problem of
 Tomcat or what else:
 
 I have Tomcat 7.0.19 running on java 1.6.0_31 on Windows 7, but I
 tried on different version of java, Tomcat (6 and 7) and Windows
 (xp and 7) and I obtained the same behavior.

Wow, you should really upgrade: we're on Tomcat 7.0.37, now. It's not
likely to be your problem, but you should really upgrade.

 I create a system DSN to access an Access file (version 2003).

Oh, wow: you are using Access as your data store? Ouch.

 I set in the ODBC ExtendeAnsiSQL=1.

What does that mean? It is in a file somewhere?

 I run my program that use Tomcat and create tables with
 extendedAnsiSQL (in particulare DECIMAL fields in the database)
 all work fine.
 
 When I stop Tomcat and restart it the flag in the ODBC is set to
 0.
 
 I use a workaround setting the ExtendedAnsiSQL=1 in the connection
 string, but why it reset in the ODBC every time I stop and restart
 Tomcat?

The connection string is the right place to do this. I don't know
where else you might be doing it, but it's likely to be a connection
property, and not a property of the database (and I use that term
with an enormous grain of salt).

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEAREIAAYFAlE5MN0ACgkQ9CaO5/Lv0PA+8wCeNx2Q+jS5Pjebrk3F5DUxuzdL
lAIAn3nTyXp61NVGFp0fge6wYpBlJlf4
=ihUL
-END PGP SIGNATURE-

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



Re: [OT] Cannot access my app after Tomcat 7.0.28

2013-03-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Howard,

On 3/6/13 11:24 PM, Howard W. Smith, Jr. wrote:
 Chris,
 
 
 Maybe NetBeans is using Attach API, because NetBeans always
 shows up in JVisualVM, if I have the two open on the same box
 (have seen this on development server and production server)
 .
 
 I only use JVisualVM on localhost (behind a firewall), and 
 Windows Server 2008 (non-R2 and R2) running on both
 development and production servers. :)
 
 Try running JVisualVM as administrator. I'm not sure if that is
 even high enough privileges on Microsoft Windows... MS has some
 odd permissions when it comes to Services.
 
 
 I hope we are not hijacking this thread. :)
 
 Anyway, I am always logged in as administrator on my development
 and production servers.

Really? That's a bad idea. Nobody runs as admin anymore, do they? I
thought WinXP did away with all that foolishness. You may be in the
administrative group, but you still need to su sometimes to get
things done. Try running cmd.exe As Administrator and see if the
situation improves.

 Please note, I always unzip tomcat/tomee ZIP file(s) to hard drive.
 Is Attach API dependent on a tomcat .exe (Windows install), so
 registry can be updated, or is Tomcat (for Windows) updating
 registry when tomcat7 windows service is installed (or when tomcat
 is started)?

Attach API is a 100% Java/JVM thing: it doesn't matter how you
launch Tomcat. Google is your friend.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEAREIAAYFAlE5MY4ACgkQ9CaO5/Lv0PCldgCfXHKlOKdCMCfbAdl6A5NjKPZh
QEIAoIChSWw1IAlcvyHC38xC4ZDfo9nL
=IysJ
-END PGP SIGNATURE-

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



Re: Cannot access my app after Tomcat 7.0.28

2013-03-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Patrick,

On 3/7/13 8:40 AM, Patrick Flaherty wrote:
 Thanks for that. Fixed the spinning bug that you pointed out and no
 more 25% cpu but I still cannot hit the app! :-( So the spinning
 bug was not related to the inability to get to the ROOT Tomcat app
 or my app /rrmt.

It may have been contributing to it. Just because fixing it doesn't
make your server available doesn't mean it wasn't a problem: it just
wasn't the /whole/ problem.

 Simply, 7.0.37 server does not respond to GET / HTTP/1.1. Remove my
 war restart Tomcat and I *can *get to the ROOT app. Something in my
 app that causing the connector to stop responding apparently. Now
 that I have the JVisualvm configured, is there anything I can
 derive that it?

Another thread dump? The JVM must be doing *something*.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEAREIAAYFAlE5MeQACgkQ9CaO5/Lv0PBMLgCgs/MQZ8meSWVRGKpQa7GKY/5Z
R3UAoIzxZdSQL8sMXsPLzvfbh00xsakH
=3ZbR
-END PGP SIGNATURE-

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



Re: Changing tomcat connection pool size through jmx

2013-03-07 Thread Amit
I tried setting the 'maxActive' attribute by double clicking it and modifying 
the value but the new value does not get set.

The bug 50864 was suppose to provide the flexibility to update the connection 
pool properties through JMX and this is what I was looking for. Shouldn't that 
be the case?

thanks.

On 08-Mar-2013, at 1:40 AM, Daniel Mikusa dmik...@vmware.com wrote:

 On Mar 7, 2013, at 12:32 PM, amit shah wrote:
 
 I was looking at jmx since that would not need application server restart.
 
 I didn't understand what you meant by Have you tried looking at /
 modifying the attributes ?
 
 When you look at an Mbean in jconsole or jvisualvm, you'll see a few 
 different tabs but there should be one which lists Attributes (i.e. the 
 values exposed through JMX) and one that lists Operations (i.e. functions 
 exposed through JMX).
 
 Attributes list the properties of an mbean and some properties can be changed 
 on the fly by double-clicking them and setting a new value.  I believe that's 
 how you would adjust the connection pool properties.  Does that work for you?
 
 Dan
 
 
 
 
 On Thu, Mar 7, 2013 at 9:50 PM, Daniel Mikusa dmik...@vmware.com wrote:
 
 On Mar 7, 2013, at 9:59 AM, amit shah wrote:
 
 Hello,
  I use tomcat connection pool in my web application by using two
 jars - tomcat-jdbc-7.0.34.jar and tomcat-juli-7.0.34.jar. I want to
 change
 the connection pool size through jmx but I could not find any defined jmx
 operation for doing that.
 
 Are you strictly looking at JMX operations?  Have you tried looking at /
 modifying the attributes?
 
 Dan
 
   I noticed that bug
 50864https://issues.apache.org/bugzilla/show_bug.cgi?id=50864
 specifies
 that tomcat allows updating the connection pool size through jmx from
 tomcat 7.0.28 onwards. I use 7.0.34 version for jars. Am I missing
 something?
 
 Thank you
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 

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