Re: Tomcat is not Coming Up

2023-01-11 Thread RAVIRAJ SHAH
Check your server.xml file
APR related commented config seems changed.

On Wed, 11 Jan, 2023, 20:51 Ganesan, Prabu,
 wrote:

> Hi Team
>
> Need Emergency Help,
>
>
>
> Our Production Server Was Down, We have not Done any changes on this
> tomcat Level
>
> But we are seeing this Message.
>
>
>
> Old : INFO [main] org.apache.catalina.startup.VersionLoggerListener.log
> Command line argument: -Djava.library.path=/usr/local/apr/lib
>
>
>
> New : INFO [main] org.apache.catalina.startup.VersionLoggerListener.log
> Command line argument: -Xmx3072m
>
>
>
>
>
> Old : INFO [main]
> org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded APR
> based Apache Tomcat Native library [1.2.23] using APR version [1.6.3]
>
>
>
> New : INFO [main]
> org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded APR
> based Apache Tomcat Native library [1.2.17] using APR version [1.4.8]
>
>
>
> Is That could be reason to Not coming up the server?
>
>
> Can someone Help me Please. We are not able to Start the services.
>
>
>
> Thanks & Regards,
> _
> PrabuGanesan
> Consultant|MS-Nordics
> capgemini India Pvt. Ltd. | Bangalore
> Contact: +91 8526554535
> Email: prabhu.c.gane...@capgemini.com
>
> www.capgemini.com
> People matter, results count.
> __
> Connect with Capgemini:
>
>
> Please consider the environment and do not print this email unless
> absolutely necessary.
> Capgemini encourages environmental awareness.
>
> -Original Message-
> From: Rob Sargent 
> Sent: 31 December 2022 08:33
> To: users@tomcat.apache.org
> Subject: Re: Tomcat 10 on Windows 11 error
>
> ***This mail has been sent by an external source***
>
>
> On 12/30/22 17:59, Shawn Heisey wrote:
> > On 12/30/22 17:03, Carles Franquesa wrote:
> >> Once downloaded, installed, and configured in the settings of the
> >> netbeans project, the error has changed, what always is very hopeful.
> >>
> >> Now, the thing is that the compiler gives this new output:
> >>
> >> image.png
> >>
> >> Tried to modify the compiler options in the project properties,
> >> image.png but, obviously, is not the place.
> >>
> >> Do you now where should I modify the compiler option Xbootclasspath?
> >>
> >> And I feel sorry for not having checked exactly "URLEncoder.encode
> >> TomcatManagerImpl". Trust me when I say I have been googling so far
> >> as extenuation...
> >
> > The mailing list ate your image attachments.  Nobody can see them.
> >
> > You need to put the images on a file sharing site and provide a URL
> > like you did for the first message on the thread.
> >
> > The later message says you got it working, so I guess the images are
> > no longer needed.
> >
> Better yet, copy as text, paste here.  You're just dealing with compiler
> output and a config file after all.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
> This message contains information that may be privileged or confidential
> and is the property of the Capgemini Group. It is intended only for the
> person to whom it is addressed. If you are not the intended recipient, you
> are not authorized to read, print, retain, copy, disseminate, distribute,
> or use this message or any part thereof. If you receive this message in
> error, please notify the sender immediately and delete all copies of this
> message.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>


Re: non www to www URL Rewrite

2017-11-13 Thread RAVIRAJ SHAH
Sorry didn't get you exactly
But I did above setup in tomcat web server only

Thanks
Ravi

On Mon, Nov 13, 2017, 20:45 shivashankar manukondu <
sivasankar.m...@gmail.com> wrote:

> Please make it these changes in your webserver
>
> Regards,
> Siva
>
> On Sat, Nov 11, 2017 at 10:17 AM, RAVIRAJ SHAH <me.raviraj...@gmail.com>
> wrote:
>
> > Thanks shiv,
> >
> > But no luck it is not working
> > I did configuration as below
> >
> > Created rewrite.config file in
> > ../conf/Catalina/example.com
> >
> > RewriteCond %{HTTP_HOST} ^example\.com [NC]
> > RewriteCond %{HTTPS} ^on$
> > RewriteRule ^(.*)$ https://www.example.com/$[R=permanent,L,NE]
> >
> > And added valve as below in server.xml
> >  > unpackWARs="true" autoDeploy="true"
> > xmlValidation="false" xmlNamespaceAware="false">
> > 
> >
> > Do guide if anything to correct or any other solution
> >
> > On Fri, Nov 10, 2017, 14:43 shivashankar manukondu <
> > sivasankar.m...@gmail.com> wrote:
> >
> > > Hi,
> > >
> > > If you want both should be accessible then try to use "ServerAlias"
> > option
> > >
> > > If you want redirect all requests then try
> > >
> > > RewriteCond %{HTTP_HOST} ^example\.com [NC]
> > > RewriteCond %{HTTPS} ^on$#if you don't want https then make off
> > > RewriteRule ^(.*)$ https://www.example.com/$ [R=permanent,L,NE]  #
> > > flags based on your requirement
> > >
> > > Please remember the above rules will be work based on all your existing
> > > rewrite rules.
> > >
> > >
> > > Regards,
> > > Siva
> > >
> > >
> > >
> > > On Thu, Nov 9, 2017 at 10:58 AM, RAVIRAJ SHAH <me.raviraj...@gmail.com
> >
> > > wrote:
> > >
> > > > Hi Andre,
> > > >
> > > > Thanks for quick reply
> > > > yes it is pointing to same public IP
> > > >
> > > > Thanks,
> > > > Raviraj
> > > >
> > > >
> > > >
> > > > Thanks & Regards,
> > > > Raviraj Shah
> > > >
> > > >
> > > > On 8 November 2017 at 22:50, André Warnier (tomcat) <a...@ice-sa.com>
> > > wrote:
> > > >
> > > > > On 08.11.2017 17:35, RAVIRAJ SHAH wrote:
> > > > >
> > > > >> Sorry for my language
> > > > >> my query with example
> > > > >>
> > > > >> Let's say my website domain is "example.com"
> > > > >> Now I want to redirect "example.com" to "www.example.com"
> > > > >> Kindly share how I can achieve it
> > > > >>
> > > > >
> > > > > Well first, you need the 2 entries in the DNS server for "
> > example.com
> > > ".
> > > > > You need :
> > > > > example.com --> public Internet IP address of your server (A)
> > > > > www.example.com --> public  Internet IP address of your server (B)
> > > > >
> > > > > and A == B
> > > > >
> > > > > otherwise it will never work.
> > > > > Do you have that ?
> > > > >
> > > > > You can check this by getting a command-line window somewhere and
> > > > entering
> > > > > :
> > > > > nslookup example.com
> > > > > nslookup www.example.com
> > > > > and both should give the same IP address.
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >> On Wed, Nov 8, 2017, 19:08 André Warnier (tomcat) <a...@ice-sa.com>
> > > > wrote:
> > > > >>
> > > > >> On 08.11.2017 14:30, RAVIRAJ SHAH wrote:
> > > > >>>
> > > > >>>> Anybody please help
> > > > >>>>
> > > > >>>
> > > > >>> I think that you first try to communicate more clearly what you
> > want
> > > to
> > > > >>> achieve.
> > > > >>> "redirect non-www URL to www URL only"
> > > > >>> does not appear to make much sense.
> > > > >>>
> > > > >>> Also please send your message to the list as *plain text*, not

Re: non www to www URL Rewrite

2017-11-11 Thread RAVIRAJ SHAH
Thanks shiv,

But no luck it is not working
I did configuration as below

Created rewrite.config file in
../conf/Catalina/example.com

RewriteCond %{HTTP_HOST} ^example\.com [NC]
RewriteCond %{HTTPS} ^on$
RewriteRule ^(.*)$ https://www.example.com/$[R=permanent,L,NE]

And added valve as below in server.xml



Do guide if anything to correct or any other solution

On Fri, Nov 10, 2017, 14:43 shivashankar manukondu <
sivasankar.m...@gmail.com> wrote:

> Hi,
>
> If you want both should be accessible then try to use "ServerAlias" option
>
> If you want redirect all requests then try
>
> RewriteCond %{HTTP_HOST} ^example\.com [NC]
> RewriteCond %{HTTPS} ^on$#if you don't want https then make off
> RewriteRule ^(.*)$ https://www.example.com/$ [R=permanent,L,NE]  #
> flags based on your requirement
>
> Please remember the above rules will be work based on all your existing
> rewrite rules.
>
>
> Regards,
> Siva
>
>
>
> On Thu, Nov 9, 2017 at 10:58 AM, RAVIRAJ SHAH <me.raviraj...@gmail.com>
> wrote:
>
> > Hi Andre,
> >
> > Thanks for quick reply
> > yes it is pointing to same public IP
> >
> > Thanks,
> > Raviraj
> >
> >
> >
> > Thanks & Regards,
> > Raviraj Shah
> >
> >
> > On 8 November 2017 at 22:50, André Warnier (tomcat) <a...@ice-sa.com>
> wrote:
> >
> > > On 08.11.2017 17:35, RAVIRAJ SHAH wrote:
> > >
> > >> Sorry for my language
> > >> my query with example
> > >>
> > >> Let's say my website domain is "example.com"
> > >> Now I want to redirect "example.com" to "www.example.com"
> > >> Kindly share how I can achieve it
> > >>
> > >
> > > Well first, you need the 2 entries in the DNS server for "example.com
> ".
> > > You need :
> > > example.com --> public Internet IP address of your server (A)
> > > www.example.com --> public  Internet IP address of your server (B)
> > >
> > > and A == B
> > >
> > > otherwise it will never work.
> > > Do you have that ?
> > >
> > > You can check this by getting a command-line window somewhere and
> > entering
> > > :
> > > nslookup example.com
> > > nslookup www.example.com
> > > and both should give the same IP address.
> > >
> > >
> > >
> > >
> > >
> > >> On Wed, Nov 8, 2017, 19:08 André Warnier (tomcat) <a...@ice-sa.com>
> > wrote:
> > >>
> > >> On 08.11.2017 14:30, RAVIRAJ SHAH wrote:
> > >>>
> > >>>> Anybody please help
> > >>>>
> > >>>
> > >>> I think that you first try to communicate more clearly what you want
> to
> > >>> achieve.
> > >>> "redirect non-www URL to www URL only"
> > >>> does not appear to make much sense.
> > >>>
> > >>> Also please send your message to the list as *plain text*, not html.
> > >>> It will make it easier to read configuration lines below which look
> > like
> > >>> URL's.
> > >>>
> > >>>
> > >>>
> > >>>> On Tue, Nov 7, 2017, 12:00 RAVIRAJ SHAH <me.raviraj...@gmail.com>
> > >>>> wrote:
> > >>>>
> > >>>> Dear All,
> > >>>>>
> > >>>>> Kindly request you to help to resolve this issue
> > >>>>>
> > >>>>> Problem Statement :
> > >>>>> we want to redirect non-www URL to www URL only
> > >>>>>
> > >>>>> Current setup :
> > >>>>>
> > >>>>> Defined rewrite valve in server.xml as below
> > >>>>>
> > >>>>>
> > >>>>>  > >>>>> autoDeploy=
> > >>>>> "true">
> > >>>>>
> > >>>>>
> > >>>>>
> > >>>>>> >>>>>
> > >>>> />
> > >>>
> > >>>>
> > >>>>>
> > >>>>>
> > >>>>> 
> > >>>>>
> > >>>>> Created rewrite.config file in ../conf/Catalina//
> > >>>>>
> > >>>>>
> > >>>>> *RewriteCond %{HTTP_HOST} !^(.*)\.yourdomain\.com$ [NC] RewriteRule
> > >>>>>
> > >>>> ^(.*)$
> > >>>
> > >>>> http://www.yourdomain.com <http://www.yourdomain.com>/$1 [R=301,L]*
> > >>>>>
> > >>>>> *kindly do needful*
> > >>>>>
> > >>>>> Thanks & Regards,
> > >>>>> Raviraj Shah
> > >>>>>
> > >>>>>
> > >>>>>
> > >>>>
> > >>>
> > >>> -
> > >>> 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
> > >
> > >
> >
>
>
>
> --
>
> Regards
> Siva
> #068860592040
>


Re: non www to www URL Rewrite

2017-11-09 Thread RAVIRAJ SHAH
Hi Andre,

Thanks for quick reply
yes it is pointing to same public IP

Thanks,
Raviraj



Thanks & Regards,
Raviraj Shah


On 8 November 2017 at 22:50, André Warnier (tomcat) <a...@ice-sa.com> wrote:

> On 08.11.2017 17:35, RAVIRAJ SHAH wrote:
>
>> Sorry for my language
>> my query with example
>>
>> Let's say my website domain is "example.com"
>> Now I want to redirect "example.com" to "www.example.com"
>> Kindly share how I can achieve it
>>
>
> Well first, you need the 2 entries in the DNS server for "example.com".
> You need :
> example.com --> public Internet IP address of your server (A)
> www.example.com --> public  Internet IP address of your server (B)
>
> and A == B
>
> otherwise it will never work.
> Do you have that ?
>
> You can check this by getting a command-line window somewhere and entering
> :
> nslookup example.com
> nslookup www.example.com
> and both should give the same IP address.
>
>
>
>
>
>> On Wed, Nov 8, 2017, 19:08 André Warnier (tomcat) <a...@ice-sa.com> wrote:
>>
>> On 08.11.2017 14:30, RAVIRAJ SHAH wrote:
>>>
>>>> Anybody please help
>>>>
>>>
>>> I think that you first try to communicate more clearly what you want to
>>> achieve.
>>> "redirect non-www URL to www URL only"
>>> does not appear to make much sense.
>>>
>>> Also please send your message to the list as *plain text*, not html.
>>> It will make it easier to read configuration lines below which look like
>>> URL's.
>>>
>>>
>>>
>>>> On Tue, Nov 7, 2017, 12:00 RAVIRAJ SHAH <me.raviraj...@gmail.com>
>>>> wrote:
>>>>
>>>> Dear All,
>>>>>
>>>>> Kindly request you to help to resolve this issue
>>>>>
>>>>> Problem Statement :
>>>>> we want to redirect non-www URL to www URL only
>>>>>
>>>>> Current setup :
>>>>>
>>>>> Defined rewrite valve in server.xml as below
>>>>>
>>>>>
>>>>> >>>> autoDeploy=
>>>>> "true">
>>>>>
>>>>>
>>>>>
>>>>>   >>>>
>>>> />
>>>
>>>>
>>>>>
>>>>>
>>>>> 
>>>>>
>>>>> Created rewrite.config file in ../conf/Catalina//
>>>>>
>>>>>
>>>>> *RewriteCond %{HTTP_HOST} !^(.*)\.yourdomain\.com$ [NC] RewriteRule
>>>>>
>>>> ^(.*)$
>>>
>>>> http://www.yourdomain.com <http://www.yourdomain.com>/$1 [R=301,L]*
>>>>>
>>>>> *kindly do needful*
>>>>>
>>>>> Thanks & Regards,
>>>>> Raviraj Shah
>>>>>
>>>>>
>>>>>
>>>>
>>>
>>> -
>>> 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: non www to www URL Rewrite

2017-11-08 Thread RAVIRAJ SHAH
Sorry for my language
my query with example

Let's say my website domain is "example.com"
Now I want to redirect "example.com" to "www.example.com"
Kindly share how I can achieve it

On Wed, Nov 8, 2017, 19:08 André Warnier (tomcat) <a...@ice-sa.com> wrote:

> On 08.11.2017 14:30, RAVIRAJ SHAH wrote:
> > Anybody please help
>
> I think that you first try to communicate more clearly what you want to
> achieve.
> "redirect non-www URL to www URL only"
> does not appear to make much sense.
>
> Also please send your message to the list as *plain text*, not html.
> It will make it easier to read configuration lines below which look like
> URL's.
>
>
> >
> > On Tue, Nov 7, 2017, 12:00 RAVIRAJ SHAH <me.raviraj...@gmail.com> wrote:
> >
> >> Dear All,
> >>
> >> Kindly request you to help to resolve this issue
> >>
> >> Problem Statement :
> >> we want to redirect non-www URL to www URL only
> >>
> >> Current setup :
> >>
> >> Defined rewrite valve in server.xml as below
> >>
> >>
> >>  >> "true">
> >>
> >>
> >>
> >>   />
> >>
> >>
> >>
> >> 
> >>
> >> Created rewrite.config file in ../conf/Catalina//
> >>
> >>
> >> *RewriteCond %{HTTP_HOST} !^(.*)\.yourdomain\.com$ [NC] RewriteRule
> ^(.*)$
> >> http://www.yourdomain.com <http://www.yourdomain.com>/$1 [R=301,L]*
> >>
> >> *kindly do needful*
> >>
> >> Thanks & Regards,
> >> Raviraj Shah
> >>
> >>
> >
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: non www to www URL Rewrite

2017-11-08 Thread RAVIRAJ SHAH
Anybody please help

On Tue, Nov 7, 2017, 12:00 RAVIRAJ SHAH <me.raviraj...@gmail.com> wrote:

> Dear All,
>
> Kindly request you to help to resolve this issue
>
> Problem Statement :
> we want to redirect non-www URL to www URL only
>
> Current setup :
>
> Defined rewrite valve in server.xml as below
>
>
>  "true">
>
>
>
> 
>
>
>
> 
>
> Created rewrite.config file in ../conf/Catalina//
>
>
> *RewriteCond %{HTTP_HOST} !^(.*)\.yourdomain\.com$ [NC] RewriteRule ^(.*)$
> http://www.yourdomain.com <http://www.yourdomain.com>/$1 [R=301,L]*
>
> *kindly do needful*
>
> Thanks & Regards,
> Raviraj Shah
>
>


non www to www URL Rewrite

2017-11-06 Thread RAVIRAJ SHAH
Dear All,

Kindly request you to help to resolve this issue

Problem Statement :
we want to redirect non-www URL to www URL only

Current setup :

Defined rewrite valve in server.xml as below












Created rewrite.config file in ../conf/Catalina//


*RewriteCond %{HTTP_HOST} !^(.*)\.yourdomain\.com$ [NC] RewriteRule ^(.*)$
http://www.yourdomain.com <http://www.yourdomain.com>/$1 [R=301,L]*

*kindly do needful*

Thanks & Regards,
Raviraj Shah


Jmeter throughput with tomcat

2017-09-13 Thread RAVIRAJ SHAH
Dear all
I have checked performance of my tomcat server 9. 0.26 with jmeter with
1000 threads which gives me 142 throughput/sec
Whereas same test i done with jboss wildfly and it gives 450 throughput/sec

What could be reason for the same it jboss wildfly is better than tomcat in
context to performance

Kindly guide

Thanks


Re: Issue with tomcat 8.0.39 and Jasper reports

2016-12-14 Thread RAVIRAJ SHAH
   1. Request Method:
  POST
  2. Status Code:
  200 OK
  3.
  1. Response Headersview source
  1. Cache-Control:
  no-cache, no-store, max-age=0, must-revalidate
  2. Content-Language:
  en
  3. Content-Transfer-Encoding:
  binary
  4. Content-Type:
  application/pdf;charset=ISO-8859-1
  5. Date:
  Wed, 14 Dec 2016 10:00:40 GMT
  6. Expires:
  0
  7. Pragma:
  no-cache
  8. Server:
  9. Set-Cookie:
  serverTime=1481709636121; Expires=Wed, 14-Dec-2016 10:00:52 GMT;
  Path=/
  10. Set-Cookie:
  downloadStop=stop; Expires=Wed, 14-Dec-2016 10:00:43 GMT; Path=/
  11. Strict-Transport-Security:
  max-age=31536000 ; includeSubDomains
  12. Transfer-Encoding:
  chunked
  13. X-Content-Type-Options:
  nosniff
  14. X-Frame-Options:
  DENY
  15. X-XSS-Protection:
  1; mode=block
  2. Request Headersview source
  1. Accept:

  text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
  2. Accept-Encoding:
  gzip, deflate, br
  3. Accept-Language:
  en-US,en;q=0.8
  4. Cache-Control:
  max-age=0
  5. Connection:
  keep-alive
  6. Content-Length:
  79
  7. Content-Type:
  application/x-www-form-urlencoded
  8. Cookie:
  SESSIONTIME=D2EEFC60F45BD577E2CCD97CE71EA4D8
  9. Host:
  www.thevgr.com
  10. Upgrade-Insecure-Requests:
  1
  11. User-Agent:
  Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko)
  Chrome/54.0.2840.99 Safari/537.36
  3. Form Dataview sourceview URL encoded
  1. action:
  openVGR
  2. _csrf:
  a7b0617b-9207-4696-aaae-cbd5954d2190


Thanks & Regards,
Raviraj Shah


On 13 December 2016 at 20:28, Christopher Schultz <
ch...@christopherschultz.net> wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA256
>
> Raviraj,
>
> On 12/12/16 11:50 PM, RAVIRAJ SHAH wrote:
> > Do you mean logs at the time of pdf download request
>
> I mean the HTTP protocol trace. Something like this:
>
> Request:
> GET /path/to/pdf/download
> Host: myserver.example.com
> Accept: application/pdf
> Connection: keep-alive
>
>
> Response:
> 200 Ok
> Content-Type: application/pdf
> Content-Length: 234554
>
> [the contents of the file]
>
> > Or anything else like protocol trace method
>
> If you use FireBug, Chrome dev tools, etc. then copy/paste will be
> fine too.
>
> > Can you sharechow to have tht
>
> I'm not sure what you mean, here.
>
> - -chris
>
> > On Tue, Dec 13, 2016, 03:34 Christopher Schultz <
> > ch...@christopherschultz.net> wrote:
> >
> > Raviraj,
> >
> > On 12/10/16 12:21 AM, RAVIRAJ SHAH wrote:
> >>>> We develop jrxml file using jasper Studio  and then use java
> >>>> code to display that jrxml file which opens in new browser
> >>>> tab and by right  click on that file we are able to download
> >>>> this as pdf file in tomacat 8.0.14 but  some how in Tomcat
> >>>> 8.0.39 the same code doesn't  works,  it does  not allows
> >>>> files to download as pdf from browser.  Instead it shows pdf
> >>>> file type as all files and on downloading it shows failed
> >>>> network error.
> >
> > Please take a protocol-trace of the HTTP response when you request
> > the PDF and post it here.
> >
> > -chris
> >
> >>>> On Fri, Dec 9, 2016, 23:23 Christopher Schultz
> >>>> <ch...@christopherschultz.net> wrote:
> >>>>
> >>>> Raviraj,
> >>>>
> >>>> On 12/9/16 11:24 AM, RAVIRAJ SHAH wrote:
> >>>>>>> I am using jasper reports the library using jasper
> >>>>>>> report development studio
> >>>>
> >>>> No, you're not. The development studio is a GUI for building
> >>>> reports.
> >>>>
> >>>> - From the Tomcat perspective, you are just using
> >>>> JasperReports library.
> >>>>
> >>>>>>> I mean to say i can see pdf file on browser but when i
> >>>>>>> try to save that pdf
> >>>>
> >>>> So the PDF displays correctly in the browser? That sounds
> >>>> like it's working as expected.
> >>>>
> >>>>>>> i dont see file type as adobe acrobat file and saving
> >>>>>>> pdf giving error
> >>>>
> >>>> What does the "file type" show up as instead of PDF?
> >>>>
> >>>> When you "

Re: Closed Connection Error

2016-12-13 Thread RAVIRAJ SHAH
Thanks a lot
I will do it accordingly and i vl take care of your points

On Tue, Dec 13, 2016, 19:17 André Warnier (tomcat) <a...@ice-sa.com> wrote:

> 1) do not top-post. Reply logically, below the question or previous
> message. That's the
> usage on this list.
>
> On 13.12.2016 13:16, RAVIRAJ SHAH wrote:
>
>
> >
> > On 13 December 2016 at 16:32, André Warnier (tomcat) <a...@ice-sa.com>
> wrote:
> >
> >> On 13.12.2016 11:47, RAVIRAJ SHAH wrote:
> >>
> >>> Dear All,
> >>>
> >>> We are facing critical issue of closed connection error on regular
> >>> frequently
> >>>
> >>> Env.
> >>> Tomcat 8.0.14
> >>> Oracle DB 11g
> >>> Linux Server RHEL 6
> >>>
> >>> on regular interval we are observing closed connection error in tomcat
> >>> logs
> >>> at that time few of the functionalities of our website either not
> working
> >>> or it misbehaving.
> >>>
> >>> after restarting or refreshing tomcat server everything works well for
> few
> >>> days then again it occurs same error we could not find the reason we
> >>> already tried with latest odbc driver file but still issue persist
> >>>
> >>>
> >> Thank you for the software versions above, but
> >> Please copy and paste the exact error messages that you see in the log.
> >>  From the above, we cannot guess /what/ connection or /what/ error you
> are
> >> seeing.
> >>
>
> 2)
>
> > Hi,
> >
> > Kindly find an attached file for error logs
> >
> > Thanks & Regards,
> > Raviraj Shah
> >
>
> I asked to copy and paste in the message, because this list normally
> strips attachments.
> You're lucky, they arrived.
>
> This being said, when looking at the files you attached, I do not really
> see something
> that has to do with Tomcat per se there.  I am not really the specialist
> here, but it
> looks like the code which fails is in the application :
>
> 13-Dec-2016 16:57:22.574 INFO [http-nio-8443-exec-61]
> com.vj.handler.HomePageRH.action
> HOME PAGE RH VII == :: Before Shape Wise Count203.92.48.130
> 13-Dec-2016 16:57:22.576 WARNING [http-nio-8443-exec-61]
> com.vj.common.AspectCatch.logAfterThrow callProcedure with Parameters
> [web_home_page,
> pkts_cnt, com.vj.vo.ParameterMap@505b8931]
> org.springframework.jdbc.support.MetaDataAccessException: Error while
> extracting
> DatabaseMetaData; nested exception is java.sql.SQLRecoverableException:
> Closed Connection
> org.springframework.dao.DataAccessResourceFailureException: Error
> retrieving database
> metadata; nested exception is
> org.springframework.jdbc.support.MetaDataAccessException:
> Error while extracting DatabaseMetaData; nested exception is
> java.sql.SQLRecoverableException: Closed Connection
> at
>
> org.springframework.jdbc.core.metadata.CallMetaDataProviderFactory.createMetaDataProvider(CallMetaDataProviderFactory.java:137)
>
> etc..
>
> You may get better help asking on the support list of the supplier of this
> :
> org.springframework.jdbc.support
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Closed Connection Error

2016-12-13 Thread RAVIRAJ SHAH
Dear All,

We are facing critical issue of closed connection error on regular
frequently

Env.
Tomcat 8.0.14
Oracle DB 11g
Linux Server RHEL 6

on regular interval we are observing closed connection error in tomcat logs
at that time few of the functionalities of our website either not working
or it misbehaving.

after restarting or refreshing tomcat server everything works well for few
days then again it occurs same error we could not find the reason we
already tried with latest odbc driver file but still issue persist

kindly do needful

Thanks & Regards,
Raviraj Shah


Re: Issue with tomcat 8.0.39 and Jasper reports

2016-12-12 Thread RAVIRAJ SHAH
Do you mean logs at the time of pdf download request
Or anything else like protocol trace method
Can you sharechow to have tht

On Tue, Dec 13, 2016, 03:34 Christopher Schultz <
ch...@christopherschultz.net> wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA256
>
> Raviraj,
>
> On 12/10/16 12:21 AM, RAVIRAJ SHAH wrote:
> > We develop jrxml file using jasper Studio  and then use java code
> > to display that jrxml file which opens in new browser  tab and by
> > right  click on that file we are able to download this as pdf file
> > in tomacat 8.0.14 but  some how in Tomcat 8.0.39 the same code
> > doesn't  works,  it does  not allows files to download as pdf from
> > browser.  Instead it shows pdf file type as all files and on
> > downloading it shows failed network error.
>
> Please take a protocol-trace of the HTTP response when you request the
> PDF and post it here.
>
> - -chris
>
> > On Fri, Dec 9, 2016, 23:23 Christopher Schultz
> > <ch...@christopherschultz.net> wrote:
> >
> > Raviraj,
> >
> > On 12/9/16 11:24 AM, RAVIRAJ SHAH wrote:
> >>>> I am using jasper reports the library using jasper report
> >>>> development studio
> >
> > No, you're not. The development studio is a GUI for building
> > reports.
> >
> > - From the Tomcat perspective, you are just using JasperReports
> > library.
> >
> >>>> I mean to say i can see pdf file on browser but when i try to
> >>>> save that pdf
> >
> > So the PDF displays correctly in the browser? That sounds like
> > it's working as expected.
> >
> >>>> i dont see file type as adobe acrobat file and saving pdf
> >>>> giving error
> >
> > What does the "file type" show up as instead of PDF?
> >
> > When you "save" (how?) what error do you get?
> >
> >>>> I am generating pdf file on runtime i am not storing file
> >>>> physically
> >
> > So are you streaming the file back to the client? That's not a
> > feature of JasperReports, so you must have written a servlet
> > wrapper that does this for you. What does the code look like?
> >
> >>>> One more thing same functionality working very fine with
> >>>> tomcat 8.0.14
> >
> > Understood. I suspect the problem is with your code; the Tomcat
> > upgrade has merely revealed the problem.
> >
> > -chris
> >>
> >> -
> >>
> >>
> 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/
>
> iQIcBAEBCAAGBQJYTx72AAoJEBzwKT+lPKRYIxIQAKWggT8+PROpYtbKplC2Nh/V
> lyMPG4UXP092siTnu7659+bj/6FI/dvH7IMp0sdmBIH5yi4T3BxVY79KXKsKiJEi
> IsVZgVf552qGa1rVCXPuEJUFKU8Y+9TApeGBoKJoJ2XXNWmuW3X0zEy/fXUmcF/4
> R4O0gO5LRZDoKN9M2+6tv2gKj9urAdMobvclpY3rug9pr5DF9l9B58ZIQpBF27+1
> /ZKMBvUo3zLY8NHZgJZubssc6YwyHZnKmZRqLhrm4qamFDWwzALjgvAdgL+RZxJE
> idufeZRAUL0ddwfsqaS+0husStsT/Hnle6KTFevlVlPbfyh4dnj9Uvl2GCb7hvWv
> yD17YnNO8wTdFCCgHdhIg/0cZDuxEd8t6klIRkKgVl5lNT4VRds7ZS8BTDig3MaP
> OYD0mFy4xpvhZQOjBk2Aocx09sP/E8xW80l7TLmNdAcFvxIOc0Fn+kkV1Ni0RRxX
> 2NSV2V9y3hAF4F4ePZZ1M6qNRmszkSb6dAUe3jXiHP4ClRZO4xqUdG/MPJ0UGro/
> d7fyGkt8m3PUT987xwq6scHlBkkcTmcYKgV0XqlwDS54W/mBXPSSXl6fSH+YM+wC
> BTyB25nfnF0PaWeBpC5jkD1MsaxFomZDzwlAHImFpJEz82Lg2Xl8d3mvl0rSDBNC
> V0/4wUHWNzONsYxAuss0
> =gV6P
> -END PGP SIGNATURE-
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: Issue with tomcat 8.0.39 and Jasper reports

2016-12-11 Thread RAVIRAJ SHAH
Thanks for suggestions
I have checked with your solution it did not work same issue is still there

Kindly do needful
We have to upgrade to new version but cant because of this issue
Even we are not able to use back button of browser

On Sat, Dec 10, 2016, 17:21 <frank.pien...@materna.de> wrote:

>
>
> Try start Tomcat with strict compliance enabled. Add the following to your
> startup script.
> -Dorg.apache.catalina.STRICT_SERVLET_COMPLIANCE=true
> When STRICT_SERVLET_COMPLIANCE is set to true, Tomcat will always send an
> HTTP Content-type header when responding to requests. This is significant
> as the behavior of web browsers is inconsistent in the absence of the
> Content-type header. Some browsers will attempt to determine the
> appropriate content-type by sniffing
> Regards Frank
>
> > Am 10.12.2016 um 06:22 schrieb RAVIRAJ SHAH <me.raviraj...@gmail.com>:
> >
> > We develop jrxml file using jasper Studio  and then use java code to
> > display that jrxml file which opens in new browser  tab and by right
> click
> > on that file we are able to download this as pdf file in tomacat 8.0.14
> > but  some how in Tomcat 8.0.39 the same code doesn't  works,  it does
> not
> > allows files to download as pdf from browser.  Instead it shows pdf file
> > type as all files and on downloading it shows failed network error.
> >
> > On Fri, Dec 9, 2016, 23:23 Christopher Schultz <
> ch...@christopherschultz.net>
> > wrote:
> >
> >> -BEGIN PGP SIGNED MESSAGE-
> >> Hash: SHA256
> >>
> >> Raviraj,
> >>
> >>> On 12/9/16 11:24 AM, RAVIRAJ SHAH wrote:
> >>> I am using jasper reports the library using jasper report
> >>> development studio
> >>
> >> No, you're not. The development studio is a GUI for building reports.
> >>
> >> - From the Tomcat perspective, you are just using JasperReports library.
> >>
> >>> I mean to say i can see pdf file on browser but when i try to save
> >>> that pdf
> >>
> >> So the PDF displays correctly in the browser? That sounds like it's
> >> working as expected.
> >>
> >>> i dont see file type as adobe acrobat file and saving pdf giving
> >>> error
> >>
> >> What does the "file type" show up as instead of PDF?
> >>
> >> When you "save" (how?) what error do you get?
> >>
> >>> I am generating pdf file on runtime i am not storing file
> >>> physically
> >>
> >> So are you streaming the file back to the client? That's not a feature
> >> of JasperReports, so you must have written a servlet wrapper that does
> >> this for you. What does the code look like?
> >>
> >>> One more thing same functionality working very fine with tomcat
> >>> 8.0.14
> >>
> >> Understood. I suspect the problem is with your code; the Tomcat
> >> upgrade has merely revealed the problem.
> >>
> >> - -chris
> >> -BEGIN PGP SIGNATURE-
> >> Comment: GPGTools - http://gpgtools.org
> >> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
> >>
> >> iQIcBAEBCAAGBQJYSu+wAAoJEBzwKT+lPKRYNRwP/ROxAziVyruW6byS19f0BrYD
> >> OX1DH2MFHarJo48bE42r+JwxNBqH/8FAzCyjamUj+xfD1iKXAwB1mA4lKaj0911D
> >> Rk4YbH2fIvDVQQ2EVR1SMViliYUMPmDe3PIiShvV+nt4rKMJMDwWavireCaHjQnP
> >> BkmbVTSJx3Ynyhb07EG6JexMELtWPHfjlxAKAzqfZntCJT1TYtABN6XWmRef82tz
> >> agaJfFyx/82kjLBROWQ/wpqRZL5gm6ZKQaWG1MPNTQx03CEE+UKDVPVMoVsYxnAx
> >> pe4w1R6eemCKsU+hRFmKKJxDzn+CJihENrfCRBV8bIqIXEtBTdbkPBnOUJ/V2x7U
> >> VhNoueuSNLAyWsd1uePdR5jhujxzF377rmr8+NId0DdUQmyq7c6xkByzywVhsPU+
> >> pxJeSRoLu0fyL0U9XHD0OF3hVLXrTapRaAT1qGm8r74H4Y9BoqWvEPIiGUrST+Q+
> >> ouJLnnHsPNcc6A52a88xbn73fMXLC+E2uHwest/tbxeUAGTXWIBsH6cmm1Si2wIj
> >> Q9JETiWLSGvuvPU16mPVnHb5t69IA9H+OCULFV/1RfT9f5XSGmtMwp6xmfzsHqkc
> >> lNHT4M0KoOkMeDuR09gps1FYulC8PqYbwsJ6gOsFt0dpnCOxWeosqhrPsf8N8fMr
> >> +mZGTdl1keV7n4DmG+ri
> >> =DHRG
> >> -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
>
>


Re: Issue with tomcat 8.0.39 and Jasper reports

2016-12-09 Thread RAVIRAJ SHAH
We develop jrxml file using jasper Studio  and then use java code to
display that jrxml file which opens in new browser  tab and by right  click
on that file we are able to download this as pdf file in tomacat 8.0.14
but  some how in Tomcat 8.0.39 the same code doesn't  works,  it does  not
allows files to download as pdf from browser.  Instead it shows pdf file
type as all files and on downloading it shows failed network error.

On Fri, Dec 9, 2016, 23:23 Christopher Schultz <ch...@christopherschultz.net>
wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA256
>
> Raviraj,
>
> On 12/9/16 11:24 AM, RAVIRAJ SHAH wrote:
> > I am using jasper reports the library using jasper report
> > development studio
>
> No, you're not. The development studio is a GUI for building reports.
>
> - From the Tomcat perspective, you are just using JasperReports library.
>
> > I mean to say i can see pdf file on browser but when i try to save
> > that pdf
>
> So the PDF displays correctly in the browser? That sounds like it's
> working as expected.
>
> > i dont see file type as adobe acrobat file and saving pdf giving
> > error
>
> What does the "file type" show up as instead of PDF?
>
> When you "save" (how?) what error do you get?
>
> > I am generating pdf file on runtime i am not storing file
> > physically
>
> So are you streaming the file back to the client? That's not a feature
> of JasperReports, so you must have written a servlet wrapper that does
> this for you. What does the code look like?
>
> > One more thing same functionality working very fine with tomcat
> > 8.0.14
>
> Understood. I suspect the problem is with your code; the Tomcat
> upgrade has merely revealed the problem.
>
> - -chris
> -BEGIN PGP SIGNATURE-
> Comment: GPGTools - http://gpgtools.org
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>
> iQIcBAEBCAAGBQJYSu+wAAoJEBzwKT+lPKRYNRwP/ROxAziVyruW6byS19f0BrYD
> OX1DH2MFHarJo48bE42r+JwxNBqH/8FAzCyjamUj+xfD1iKXAwB1mA4lKaj0911D
> Rk4YbH2fIvDVQQ2EVR1SMViliYUMPmDe3PIiShvV+nt4rKMJMDwWavireCaHjQnP
> BkmbVTSJx3Ynyhb07EG6JexMELtWPHfjlxAKAzqfZntCJT1TYtABN6XWmRef82tz
> agaJfFyx/82kjLBROWQ/wpqRZL5gm6ZKQaWG1MPNTQx03CEE+UKDVPVMoVsYxnAx
> pe4w1R6eemCKsU+hRFmKKJxDzn+CJihENrfCRBV8bIqIXEtBTdbkPBnOUJ/V2x7U
> VhNoueuSNLAyWsd1uePdR5jhujxzF377rmr8+NId0DdUQmyq7c6xkByzywVhsPU+
> pxJeSRoLu0fyL0U9XHD0OF3hVLXrTapRaAT1qGm8r74H4Y9BoqWvEPIiGUrST+Q+
> ouJLnnHsPNcc6A52a88xbn73fMXLC+E2uHwest/tbxeUAGTXWIBsH6cmm1Si2wIj
> Q9JETiWLSGvuvPU16mPVnHb5t69IA9H+OCULFV/1RfT9f5XSGmtMwp6xmfzsHqkc
> lNHT4M0KoOkMeDuR09gps1FYulC8PqYbwsJ6gOsFt0dpnCOxWeosqhrPsf8N8fMr
> +mZGTdl1keV7n4DmG+ri
> =DHRG
> -END PGP SIGNATURE-
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: Issue with tomcat 8.0.39 and Jasper reports

2016-12-09 Thread RAVIRAJ SHAH
I am using jasper reports the library using jasper report development studio

I mean to say i can see pdf file on browser but when i try to save that pdf
i dont see file type as adobe acrobat file and saving pdf giving error
I am generating pdf file on runtime i am not storing file physically
One more thing same functionality working very fine with tomcat 8.0.14
Kindly do needful

On Fri, Dec 9, 2016, 21:39 Christopher Schultz <ch...@christopherschultz.net>
wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA256
>
> Raviraj,
>
> On 12/9/16 3:35 AM, RAVIRAJ SHAH wrote:
> > Dear Support,
> >
> > Currently, I am using Tomcat 8.0.14 in my all production and test
> > server I am using Jasper reports to generate pdf runtime and my
> > clients download it Now i am planing to upgrade tomcat version to
> > tomcat 8.0.39 in which i am able to generate pdf on runtime but not
> > able to download and i am not getting save type as PDF
>
> Are you using JasperReports (the library) or JasperServer?
>
> When you say "not getting save type as PDF" what exactly do you mean?
>
> - -chris
> -BEGIN PGP SIGNATURE-
> Comment: GPGTools - http://gpgtools.org
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>
> iQIcBAEBCAAGBQJYStc8AAoJEBzwKT+lPKRYIeQP/jCPi3HPRVdumBTEr8rqPz1J
> xyORhUmNzxQtNdcX8/Sg+T5LLCC4Z0FNEd+fFChtE1H1PAJA7ZNpOaHUNQgapsvi
> BGD7NYRqB5eH/pek0BngnOlMALIZC/A8HSyilQyiMdr2+MGCA0D0AzF/9nUWZAoZ
> 6R8BUOdQn4xEV3Mpd0wKJ/PexOeBfPGQqjRgIUDYSwsiqz6/j20lumEsg98AWqgX
> v/4jrESOKG4BTjnucJBFYbi36UaJiZOy6KpXdFePVc9T474YMMwy8peaGMeWaFDV
> UG0aXuMMBF8lrfkl+pZbw7cbnloSZNsQ0PznilbnTB4KUfOmac+swOo/S3NweKf6
> 4AwSWNRm3TXZgP8ci62QCrs5nkPS/XkPdYFb98oVY8M/nDhIKewwH/xYmtPYn9rM
> VjS52clp+i5k4j2X5bBRYUb0c9RAUf+PQlPSwmmKwToMiQ9z7RVe2McsgK4JCWIg
> AJ4gfBeVCGD1RHp/R+p1cLF21ICFv57AlxKd2x0bbV2lgQdqXkQ2HBEouDsG1u9s
> lqjkND0blxDX8QPYdZZgkYwoG7fIja8ZtmYV7BKcy49IfHvCzLXOuOqtK2NazJ7R
> FKQY7ZIMEWaR45JgwqzAlcA5Zl8CExz/x487oG/2fajpBDsnw4itT/wyJQrIIcf6
> TclL4kyJudLD+6e3eb78
> =BoX2
> -END PGP SIGNATURE-
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Issue with tomcat 8.0.39 and Jasper reports

2016-12-09 Thread RAVIRAJ SHAH
Dear Support,

Currently, I am using Tomcat 8.0.14 in my all production and test server
I am using Jasper reports to generate pdf runtime and my clients download
it
Now i am planing to upgrade tomcat version to tomcat 8.0.39
in which i am able to generate pdf on runtime but not able to download and
i am not getting save type as PDF

Kindly do needful

Thanks & Regards,
Raviraj Shah