Re: How to stop org.apache.jasper.servlet.TldScanner.scanJars via my war file's local context.xml rather than altering Tomcat 8?

2016-08-01 Thread Mark Thomas
On 01/08/2016 08:58, Cothren, Craig wrote:
> I'm trying to prevent the...
> 
> [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At 
> least one JAR was scanned for TLDs yet contained no TLDs. Enable debug 
> logging for this logger for a complete list of JARs that were scanned but no 
> TLDs were found in them. Skipping unneeded JARs during scanning can improve 
> startup time and JSP compilation time.
> 
> ...error from showing up for my war file deployment since I have no TLD 
> defined.
> 
> There are many questions and answers regarding this issue be all seem to 
> point to altering Tomcat's global configuration, which I do not want.
> 
> How can I, via my war file's local context.xml file, inform the scanner that 
> no TLD exists and therefore a scan and subsequent warning is unnecessary?

http://tomcat.apache.org/tomcat-8.5-doc/config/jar-scanner.html

Mark


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



RE: Tomcat 8 RemoteIpValve Issues

2016-08-01 Thread Kasa, Nubli
Hi Chuck,

  I downloaded the following package: 
http://www-us.apache.org/dist/tomcat/tomcat-8/v8.0.36/bin/apache-tomcat-8.0.36.tar.gz

  Simply unpackaged it and started it with /bin/catalina.sh. Nothing was done 
except setting up localhost context and added the RemoteIpValve section in 
server.xml

  This is done on a fresh install Ubuntu 16.04 LTS. 

  It is working now since we added requestAttributesEnabled="true". I 
understand that this is supposed to be the default but it doesn't seem to be 
the case.

-Nubli



-Original Message-
From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] 
Sent: Monday, August 1, 2016 2:23 PM
To: Tomcat Users List 
Subject: RE: Tomcat 8 RemoteIpValve Issues

> From: Kasa, Nubli [mailto:mmohd...@iu.edu]
> Subject: RE: Tomcat 8 RemoteIpValve Issues

> This doesn't seem to be the case with a fresh new install on Tomcat 8 
> on Ubuntu. Our sysadmin also did a fresh install on Redhat with the same 
> result.

Install of what?  A real Tomcat from tomcat.apache.org, or a 3rd-party 
repackaged (and reconfigured) version?  For the latter, you may need to consult 
with the 3rd party, since they've been known to change the defaults somewhat 
arbitrarily.

 - 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: Tomcat 8 RemoteIpValve Issues

2016-08-01 Thread Caldarale, Charles R
> From: Kasa, Nubli [mailto:mmohd...@iu.edu] 
> Subject: RE: Tomcat 8 RemoteIpValve Issues

> This doesn't seem to be the case with a fresh new install on Tomcat 8 on 
> Ubuntu. Our sysadmin 
> also did a fresh install on Redhat with the same result.

Install of what?  A real Tomcat from tomcat.apache.org, or a 3rd-party 
repackaged (and reconfigured) version?  For the latter, you may need to consult 
with the 3rd party, since they've been known to change the defaults somewhat 
arbitrarily.

 - 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: Tomcat 8 RemoteIpValve Issues

2016-08-01 Thread Kasa, Nubli
Chris,

  This doesn't seem to be the case with a fresh new install on Tomcat 8 on 
Ubuntu. Our sysadmin also did a fresh install on Redhat with the same result.

-Nubli

-Original Message-
From: Christopher Schultz [mailto:ch...@christopherschultz.net] 
Sent: Sunday, July 31, 2016 8:43 AM
To: Tomcat Users List 
Subject: Re: Tomcat 8 RemoteIpValve Issues

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Nubli,

On 7/28/16 3:30 PM, Kasa, Nubli wrote:
> It seems that requestAttributesEnabled="true" is required in order to 
> make the valve work.

Note that requestAttributesEnabled="true" is the default. Did you change that 
default?

- -chris

> -Original Message- From: abhij...@apple.com 
> [mailto:abhij...@apple.com] On Behalf Of Abhijit Das Sent:
> Thursday, July 28, 2016 12:37 PM To: Tomcat Users List 
>  Subject: Re: Tomcat 8 RemoteIpValve Issues
> 
> This is how it works for me in Tomcat 8.x (I have hashed out some 
> internal values) (some of my pattern may be redundant)
> 
> 1.2.3.4 will be your LB IP, the IP that is used to talk to the server. 
> typically the MIP or the SNIP.
> 
>  internalProxies="1\.2\.3\.4" trustedProxies="1\.2\.3\.4" 
> remoteIpHeader="X-Forwarded-For" proxiesHeader="x-forwarded-by" 
> requestAttributesEnabled="true"/>
> 
>  directory="/var/xxx/yyy/zzz/logs" prefix=“application_access" 
> suffix=".log" pattern="%t %h %{X-AUSERNAME}o %{Referer}i %l %S 
> %{User-Agent}i %U %s %r %q %A %v %p %b %I %D"
> requestAttributesEnabled="true" resolveHosts="false"/>
> 
> And, this is my access log :
> 
> [28/Jul/2016:09:33:57 -0700]- 
>  Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5)
> AppleWebKit/601.6.16 (KHTML, like Gecko) Version/9.1.1
> Safari/601.6.16  200 POST  HTTP/1.1   instance IP>  443 181 http-nio-8443-exec-13
> 9
> 
> On Jul 28, 2016, at 9:23 AM, Kasa, Nubli  wrote:
> 
> Hi,
> 
> We have been using RemoteIpValve in Tomcat 7 but it stopped working 
> for us in Tomcat 8. Our load balancer will set a header named 
> "X-Cluster-Client-Ip" with the client's IP as its value. We expect the 
> client's IP value would be overwritten as the "remoteAddr" but it is 
> not. It is working for us currently on Tomcat 7 but not on the server 
> with Tomcat 8.
> 
> I even created a fresh VM and install fresh apache-tomcat-8.0.36 on 
> Ubuntu and added the following settings as a test:
> 
>  . . .
> 
>  autoDeploy="true">
> 
>  
> 
> 
>  internalProxies="\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\" 
> remoteIpHeader="X-Cluster-Client-Ip" />
> 
> 
>   className="org.apache.catalina.valves.AccessLogValve"
> directory="logs" prefix="localhost_access_log" suffix=".txt" 
> pattern="%h %{X-Cluster-Client-Ip}i %a %A %l %H %u %t %r 
> %s %b" />
> 
>  
> 
> I then use a browser plugin to set X-Cluster-Client-Ip header with 
> value "156.56.0.1" and GET the page /Home/Status on the same machine 
> that is hosting Tomcat. I got the following results from
> AccessLogValve:
> 
> 192.168.56.10 156.56.0.1 192.168.56.10 127.0.1.1 - HTTP/1.1 -
> [27/Jul/2016:16:59:11 -0400] "GET /Home/Status HTTP/1.1" 200 12274
> 
> %h is still showing my browser IP - 192.168.56.10 
> %{X-Cluster-Client-Ip}i correctly picks up the header value -
> 156.56.0.1 %a picks up my browser "Remote IP address" -
> 192.168.56.10 %A just picks up local IP - 127.0.1.1
> 
> I have other people verified this issue and we can't seem to figure 
> out if we are missing a configuration or if there is a bigger problem. 
> We would appreciate any aid you can give us.
> 
> Thank you, Nubli
> 
> 
> 
> 
> 
> -
>
> 
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
-BEGIN PGP SIGNATURE-
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAled8lkACgkQ9CaO5/Lv0PC2BgCgpUKmD7kMQS2FyKI2YOBCboG1
aTkAoIV6pvffdipdhjI9p0q1EiCUeTMN
=BfdC
-END PGP SIGNATURE-

-
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



jdbc check available database

2016-08-01 Thread Andrea Galli
Hello guys,

I’ve SQL Server database with Tomcat 7 and, when I restart only database,
 webapps on Tomcat didn’t works , it show me error to connect to database ..

In webapp context I use jdbc driver for connect, so there is a kind of
method for retry to connect to database when it return available?





Thanks

Andrew


How to stop org.apache.jasper.servlet.TldScanner.scanJars via my war file's local context.xml rather than altering Tomcat 8?

2016-08-01 Thread Cothren, Craig
I'm trying to prevent the...

[localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least 
one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for 
this logger for a complete list of JARs that were scanned but no TLDs were 
found in them. Skipping unneeded JARs during scanning can improve startup time 
and JSP compilation time.

...error from showing up for my war file deployment since I have no TLD defined.

There are many questions and answers regarding this issue be all seem to point 
to altering Tomcat's global configuration, which I do not want.

How can I, via my war file's local context.xml file, inform the scanner that no 
TLD exists and therefore a scan and subsequent warning is unnecessary?

- dacracot

smime.p7s
Description: S/MIME cryptographic signature


Re: Finding proper jar archive

2016-08-01 Thread leonidprokopets
Thank you for your hint. It partly helped and gave me the direction. Appreciate 
it, man.

Leonid.



From: Mark Thomas 
Sent: Sunday, July 31, 2016 8:52 PM
To: Tomcat Users List
Subject: Re: Finding proper jar archive

On 31/07/2016 16:20, leonidprokopets wrote:
> Hi everybody
>
> I'm trying to run a project, written by other developer, under Tomcat 8.0.36. 
> I need to find a jar archive which contains 
> org.apache.tomcat.util.digester.Digester class WITH setRulesValidation 
> method. Those versions of tomcat-util.jar and apache-tomcat.util.jar that I 
> managed to find don't include this method. And without it the project would 
> not run.
>
> Any hint where I can find it will be very much appreciated!

In any 8.0.36 binary distribution or at Maven Central.

Mark


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



Problem with Cluster after upgrade to Tomcat 8.0.36.

2016-08-01 Thread false
Hi all.

Tomcat-8.0.36; JDK 1.8.0_102; CentOS 6.8. After upgrade from 8.0.28 to 8.0.36 I 
have problem with my cluster. I use static membership cluster with two nodes 
with BackupManager. After update I have errors in default.log: "WARN  
org.apache.catalina.tribes.tipis.AbstractReplicatedMap - Notified member is not 
registered in the membership", but all works fine (packets exchanging between 
two nodes on tcp/4000). This message gone only if set default 
channelStartOptions (enable multicast), but not channelStartOptions="3". I try 
to downgrade version of Tomcat and this problem are not present in tomcat < 
8.0.30.

My config works a few years w/out problems.

server.xml:

...



...












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



RE: Issue with Tomcat7

2016-08-01 Thread Caldarale, Charles R
> From: Olaf Kock [mailto:tom...@olafkock.de] 
> Subject: Re: Issue with Tomcat7

> If you want 1:1 attention, go the paid route. If you want community
> support: State your problem. If you want free community 1:1 attention:
> Good luck - state explicitly that this is what you're looking for and
> see who answers. I won't.

What's really annoying is that the OP works for an IT consulting company that 
is getting paid for their "expertise".  Sure looks like another attempt to get 
someone else to do their job and then take credit for it (monetary and 
otherwise).

 - 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: Issue with Tomcat7

2016-08-01 Thread Olaf Kock

Am 01.08.2016 um 10:26 schrieb Syed Mudassir Ahmed:
> I indeed wanted the help from Tomcat community users.  I didn't want
> to type a long message here to explain the problem.  The way someone
> is reading an email can also view the screen and give instant and
> better help (out of their willingness).
> I am in indian time zone.  How about thursday?

Everybody here learns from what everybody else writes/posts. It might be
inconvenient to you to describe quite a bit, but it's free and not only
do *you* potentially get your help, but *everybody else*, who is reading
here learns along the way. And it'll be in the archives, so it may be
found by those that don't even know yet that they will have the problem.

If you want 1:1 attention, go the paid route. If you want community
support: State your problem. If you want free community 1:1 attention:
Good luck - state explicitly that this is what you're looking for and
see who answers. I won't.

Olaf

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



java.nio.BufferOverflowException: null

2016-08-01 Thread Dimitar Valov
Hello,

When using WsWebSocketContainer.connectToServer with ClientEndpointConfig I
get java.nio.BufferOverflowException in case the HTTP headers are more than
4k.

The used ByteBuffer is 4k:
https://github.com/apache/tomcat80/blob/trunk/java/org/apache/tomcat/websocket/WsWebSocketContainer.java#L629
.

There are no ways to configure it's size. What's the reason for picking 4k?
I wonder if making this configurable or picking a larger size is more
appropriate.

Best Regards,
Dimitar


Re: Issue with Tomcat7

2016-08-01 Thread Syed Mudassir Ahmed
ok, thanks.

Thanks,


On Mon, Aug 1, 2016 at 2:16 PM, Mark Thomas  wrote:

> On 1 August 2016 09:26:22 BST, Syed Mudassir Ahmed <
> syed.mudas...@gaianconsultants.com> wrote:
> >I indeed wanted the help from Tomcat community users.  I didn't want to
> >type a long message here to explain the problem.  The way someone is
> >reading an email can also view the screen and give instant and better
> >help
> >(out of their willingness).
> >I am in indian time zone.  How about thursday?
>
> That isn't the way this community works.
>
> If you want free help you have to do the work to explain your problem
> consisly to the list.
>
> Mark
> >
> >Thanks,
> >
> >
> >On Mon, Aug 1, 2016 at 1:45 PM, Olaf Kock  wrote:
> >
> >>
> >>
> >> Am 01.08.2016 um 09:25 schrieb Syed Mudassir Ahmed:
> >> > Thanks for the quick response.  Can we setup a meeting this Friday
> >as
> >> > per your convenience on google hangout?  I would like to share the
> >> > screen and show the errors I am facing.  This would be a great
> >help.
> >> >
> >> I thought you were looking for mailing list help with your tomcat
> >> debugging, not with personalized 1:1 consulting. Mailing list is free
> >> (and voluntary), while personalized consulting requires signing of
> >> contract, payment etc.
> >>
> >> You might want to look into one of the Enterprise-supported tomcat
> >> versions. Many of the tomcat committers (or their companies) and some
> >> others will offer support- and consulting-services. But in that case
> >you
> >> should explicitly ask for consultants, not state a random problem on
> >the
> >> mailing list.
> >>
> >> Also, Friday is quite inconvenient (for me) - and that's in any
> >timezone
> >> (read: I don't even know your timezone)
> >>
> >> Olaf
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> >> For additional commands, e-mail: users-h...@tomcat.apache.org
> >>
> >>
>
>
>


Re: Issue with Tomcat7

2016-08-01 Thread Mark Thomas
On 1 August 2016 09:26:22 BST, Syed Mudassir Ahmed 
 wrote:
>I indeed wanted the help from Tomcat community users.  I didn't want to
>type a long message here to explain the problem.  The way someone is
>reading an email can also view the screen and give instant and better
>help
>(out of their willingness).
>I am in indian time zone.  How about thursday?

That isn't the way this community works.

If you want free help you have to do the work to explain your problem consisly 
to the list. 

Mark
>
>Thanks,
>
>
>On Mon, Aug 1, 2016 at 1:45 PM, Olaf Kock  wrote:
>
>>
>>
>> Am 01.08.2016 um 09:25 schrieb Syed Mudassir Ahmed:
>> > Thanks for the quick response.  Can we setup a meeting this Friday
>as
>> > per your convenience on google hangout?  I would like to share the
>> > screen and show the errors I am facing.  This would be a great
>help.
>> >
>> I thought you were looking for mailing list help with your tomcat
>> debugging, not with personalized 1:1 consulting. Mailing list is free
>> (and voluntary), while personalized consulting requires signing of
>> contract, payment etc.
>>
>> You might want to look into one of the Enterprise-supported tomcat
>> versions. Many of the tomcat committers (or their companies) and some
>> others will offer support- and consulting-services. But in that case
>you
>> should explicitly ask for consultants, not state a random problem on
>the
>> mailing list.
>>
>> Also, Friday is quite inconvenient (for me) - and that's in any
>timezone
>> (read: I don't even know your timezone)
>>
>> Olaf
>>
>> -
>> 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: Issue with Tomcat7

2016-08-01 Thread Syed Mudassir Ahmed
I indeed wanted the help from Tomcat community users.  I didn't want to
type a long message here to explain the problem.  The way someone is
reading an email can also view the screen and give instant and better help
(out of their willingness).
I am in indian time zone.  How about thursday?

Thanks,


On Mon, Aug 1, 2016 at 1:45 PM, Olaf Kock  wrote:

>
>
> Am 01.08.2016 um 09:25 schrieb Syed Mudassir Ahmed:
> > Thanks for the quick response.  Can we setup a meeting this Friday as
> > per your convenience on google hangout?  I would like to share the
> > screen and show the errors I am facing.  This would be a great help.
> >
> I thought you were looking for mailing list help with your tomcat
> debugging, not with personalized 1:1 consulting. Mailing list is free
> (and voluntary), while personalized consulting requires signing of
> contract, payment etc.
>
> You might want to look into one of the Enterprise-supported tomcat
> versions. Many of the tomcat committers (or their companies) and some
> others will offer support- and consulting-services. But in that case you
> should explicitly ask for consultants, not state a random problem on the
> mailing list.
>
> Also, Friday is quite inconvenient (for me) - and that's in any timezone
> (read: I don't even know your timezone)
>
> Olaf
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


RE: Hanging threads in tomee 1.7.4

2016-08-01 Thread Kuldeep Sagoo (C)
Hi Chris,

I analysed the thread dump using TDA (Thread Dump Analyser) and got the 
following summary:

Overall Thread Count69
Overall Monitor Count   33
Number of threads waiting for a monitor 0
Number of threads locking a monitor 7
Number of threads sleeping on a monitor 48
Number of deadlocks 0
Number of Monitors without locking threads  0

69% of all threads are sleeping on a monitor.
 This might indicate they are waiting for some external resource (e.g. 
database) which is overloaded or not available or are just waiting to get to do 
something (idle threads).

The 7 Threads locking a monitor are as follows:-

Thanks again for your help.

"PostgreSQL-JDBC-SharedTimer-1" #104 daemon prio=5 os_prio=0 
tid=0x7f65bc06c800 nid=0x18f7 in Object.wait() [0x7f65abf22000]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
at java.util.TimerThread.mainLoop(Timer.java:552)
- locked <0x0006c18fc1d8> (a java.util.TaskQueue)
at java.util.TimerThread.run(Timer.java:505)

"OpenEJB-TimerService-Scheduler_QuartzSchedulerThread" #62 daemon prio=5 
os_prio=0 tid=0x02483000 nid=0x1849 in Object.wait() 
[0x7f65ad8e9000]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
at 
org.apache.openejb.quartz.core.QuartzSchedulerThread.run(QuartzSchedulerThread.java:311)
- locked <0x0006c13641c0> (a java.lang.Object)

"AbstractSecurityService.Timer" #30 daemon prio=5 os_prio=0 
tid=0x7f6608b6b000 nid=0x180c in Object.wait() [0x7f65d4b71000]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
at java.util.TimerThread.mainLoop(Timer.java:552)
- locked <0x0006c01105a0> (a java.util.TaskQueue)
at java.util.TimerThread.run(Timer.java:505)

"RetryTimer" #29 daemon prio=5 os_prio=0 tid=0x7f6608b5f800 nid=0x180b in 
Object.wait() [0x7f65d4c72000]
   java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x0006c0110778> (a java.util.TaskQueue)
at java.lang.Object.wait(Object.java:502)
at java.util.TimerThread.mainLoop(Timer.java:526)
- locked <0x0006c0110778> (a java.util.TaskQueue)
at java.util.TimerThread.run(Timer.java:505)

"GC Daemon" #10 daemon prio=2 os_prio=0 tid=0x7f6608990800 nid=0x17ec in 
Object.wait() [0x7f65d54bd000]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x0006c0110790> (a sun.misc.GC$LatencyLock)
at sun.misc.GC$Daemon.run(GC.java:117)
- locked <0x0006c0110790> (a sun.misc.GC$LatencyLock)

"Finalizer" #3 daemon prio=8 os_prio=0 tid=0x7f6608108000 nid=0x17d6 in 
Object.wait() [0x7f65f05f4000]
   java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:143)
- locked <0x0006c0110f78> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:164)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:209)

"Reference Handler" #2 daemon prio=10 os_prio=0 tid=0x7f6608103800 
nid=0x17d5 in Object.wait() [0x7f65f06f5000]
   java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:502)
at java.lang.ref.Reference.tryHandlePending(Reference.java:191)
- locked <0x0006c048> (a java.lang.ref.Reference$Lock)
at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:153)






-Original Message-
From: Christopher Schultz [mailto:ch...@christopherschultz.net]
Sent: 31 July 2016 14:04
To: Tomcat Users List 
Subject: Re: Hanging threads in tomee 1.7.4

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Kuldeep,

On 7/29/16 10:18 AM, Kuldeep Sagoo wrote:
> I was really hoping you could help – I’m currently workingin
> application support and one of our key applications as started
> behavingabnormally when upgrading from Tomee version 1.68 to 1.7.4
> (Apache Tomcat(TomEE)/7.0.68 (1.7.4)) .
>
>
>
> JDK
>
> java version "1.8.0_77"
>
> Java(TM) SE Runtime Environment (build 1.8.0_77-b03)
>
> Java HotSpot(TM) 64-Bit Server VM (build 25.77-b03, mixedmode)
>
>
>
> OS
>
> Red Hat Enterprise Linux Server release 6.7 (Santiago)
>
> Oracle Linux Server release 6.7
>
>
>
> The issue occurs intermittently.  The Tomee processwhen its status is
> checked reports to be in ‘Running’ state. But from adatabase and
> application perspective all created orders remain in “New State”and
> remain in a Wait state to be 

Re: Issue with Tomcat7

2016-08-01 Thread Olaf Kock


Am 01.08.2016 um 09:25 schrieb Syed Mudassir Ahmed:
> Thanks for the quick response.  Can we setup a meeting this Friday as
> per your convenience on google hangout?  I would like to share the
> screen and show the errors I am facing.  This would be a great help.
>
I thought you were looking for mailing list help with your tomcat
debugging, not with personalized 1:1 consulting. Mailing list is free
(and voluntary), while personalized consulting requires signing of
contract, payment etc.

You might want to look into one of the Enterprise-supported tomcat
versions. Many of the tomcat committers (or their companies) and some
others will offer support- and consulting-services. But in that case you
should explicitly ask for consultants, not state a random problem on the
mailing list.

Also, Friday is quite inconvenient (for me) - and that's in any timezone
(read: I don't even know your timezone)

Olaf

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



Re: Issue with Tomcat7

2016-08-01 Thread Syed Mudassir Ahmed
Thanks for the quick response.  Can we setup a meeting this Friday as per
your convenience on google hangout?  I would like to share the screen and
show the errors I am facing.  This would be a great help.

Thanks,


On Mon, Aug 1, 2016 at 12:35 PM, Olaf Kock  wrote:

>
> Am 01.08.2016 um 08:20 schrieb Syed Mudassir Ahmed:
> >   Can someone help us what wrong we are doing?
> Not without more information - from the information you give us, we
> don't even know if your WebApp1 or WebApp2 was causing the "connection
> refused" reply.
>
> Please give:
> * Exact versions of software involved (tomcat, java, ...)
> * Typical excerpt from log (no need to post the full log or full
> stacktraces)
> * Configuration of the webapps 1 and 2
> * How does webapp1 connect to webapp2?
> * Do you have any reverse proxies / Apache httpd / nginx installed in
> addition to tomcat?
> * probably more - but you should know your setup better and be able to
> judge what makes up relevant information about it.
>
> Olaf
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: Issue with Tomcat7

2016-08-01 Thread Olaf Kock

Am 01.08.2016 um 08:20 schrieb Syed Mudassir Ahmed:
>   Can someone help us what wrong we are doing?
Not without more information - from the information you give us, we
don't even know if your WebApp1 or WebApp2 was causing the "connection
refused" reply.

Please give:
* Exact versions of software involved (tomcat, java, ...)
* Typical excerpt from log (no need to post the full log or full
stacktraces)
* Configuration of the webapps 1 and 2
* How does webapp1 connect to webapp2?
* Do you have any reverse proxies / Apache httpd / nginx installed in
addition to tomcat?
* probably more - but you should know your setup better and be able to
judge what makes up relevant information about it.

Olaf

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



Issue with Tomcat7

2016-08-01 Thread Syed Mudassir Ahmed
Hi,
  I have two web applications deployed into tomcat 7.  Lets call them
WebApp1 and WebApp2.  I am invoking WebApp1 using a rest call thru JMeter.
WebApp1 internally calls WebApp2 for a service.

  We tried making 1000 calls from JMeter.  Unfortunately, for all the
requests we are getting 500 internal service error.  When we checked the
catalina file, we found connection refused exception.

  Can someone help us what wrong we are doing?

Thanks,