Re: Tomcat 9.0.36 - JDK 13/14

2020-06-29 Thread Kiran Badi
ringBootApplication; @SpringBootApplication public class SpringwarApplication { public static void main(String[] args) { SpringApplication.run(SpringwarApplication.class, args); } } On Mon, Jun 29, 2020 at 4:57 PM Christopher Schultz < ch...@christopherschultz.net> wrote: > --

Re: Tomcat 9.0.36 - JDK 13/14

2020-06-26 Thread Kiran Badi
some error saying major.minor version exception or something like that in some logs somewhere which java often throws in these cases. Any ways we are good to go now. Thanks for your reply. On Fri, Jun 26, 2020 at 6:34 AM Mark Thomas wrote: > On 26/06/2020 05:45, Kiran Badi wrote: > &g

Tomcat 9.0.36 - JDK 13/14

2020-06-25 Thread Kiran Badi
Hi All, I wanted to check if tomcat 9.0.36 supports open jdk 13/14. I created a simple spring boot war file and compiled/built it with openjdk 13/14. After running maven install , I deployed the war file from the target directory to tomcat webapps using tomcat manager. It did not work and gave me

Re: Amazon EC2 Tomcat 7.0.85 not starting up due to some memory issue .Please mask if

2018-05-17 Thread Kiran Badi
server. But I wonder > about the application you run on you Tomcat and if you know about the > wide-used exploit in the Java JSF library "Primefaces" (see > https://www.exploit-db.com/exploits/43733/). > > With greetings > > Guido > > >-Original Message-

Re: Amazon EC2 Tomcat 7.0.85 not starting up due to some memory issue .Please mask if

2018-05-16 Thread Kiran Badi
look at all the files I have attached in the drive. Please let me know if more information is needed. On Wed, May 16, 2018 at 11:09 AM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Kiran, > > O

Amazon EC2 Tomcat 7.0.85 not starting up due to some memory issue

2018-05-15 Thread Kiran Badi
Hi All, For some reason my application hosted on ec2 is just not starting up. I know I never had any memory issues in last 1 year or so. I see below trace in catalina.out file. I am not sure if I need to add swap space or file permission is an issue here. Something changed in ec2 that is causing

Re: Tomcat 7.082 not starting in EC2 after doing yum update

2017-10-26 Thread Kiran Badi
Let me check logs tomorrow for finer details. Thanking you Kiran Badi I will On Thu, Oct 26, 2017 at 11:03 PM, Kiran Badi wrote: > Hi, > > Couple of hours(3 hrs) back I did yum update to install 7.0.82 version to > install latest security patch. > > Yum update went well. The

Tomcat 7.082 not starting in EC2 after doing yum update

2017-10-26 Thread Kiran Badi
: line 40: /usr/share/tomcat7/logs/catalina.out: Permission denied and permissions I have on this folder is drwxr-xr-x 2 ec2-user ec2-user 12288 Oct 27 02:07 /usr/share/tomcat7/logs/ Thanking you Kiran Badi

Re: Context Dependency Injection with Tomcat 7.0 x / 8.0 x

2016-10-10 Thread Kiran Badi
client I have has few legacy projects and I need to see if I can suggest them spring. Weld and openbeans seems to be good option I can explore.Thanks On Thu, Oct 6, 2016 at 6:02 AM, Mark Eggers wrote: > Kiran, > > On 10/5/2016 5:15 PM, Kiran Badi wrote: > > Hi All, > > >

Context Dependency Injection with Tomcat 7.0 x / 8.0 x

2016-10-05 Thread Kiran Badi
Hi All, I wanted to check if their is a way to do CDI with Tomcat for 7x and 8x version as per JEE spec ? I have a project for which I wanted to use CDI the way spring does it. Appreciate if someone can suggest something. - Kiran

Re: request.getParameter and special characters - Apache Tomcat/7.0.57 on win 7

2016-05-18 Thread Kiran Badi
3:38 AM, Mark Thomas wrote: > On 18/05/2016 04:25, Kiran Badi wrote: > > Hi , > > > > I have this link in jsp which has below tags, > > > > <%@page contentType="text/html" pageEncoding="UTF-8"%> > > > > Testing > >

request.getParameter and special characters - Apache Tomcat/7.0.57 on win 7

2016-05-17 Thread Kiran Badi
tingServlet TestServlet at testing I really need to understand as what characters are accepted and what characters get truncated with getParameter. I am building few links on the fly which might have space,backslashes, comma and & characters in it.So wanted to understand should I encode it via js or container can take care of those for me. container connector setting has URIEncoding="UTF-8" settings. Thanking you Kiran Badi

Re: Tuckey Rewrite URL and infinite loop exception trace for Tomcat 7.0.57

2016-04-25 Thread Kiran Badi
I resolved it.My bad, to and from rule were having same url mapping and I feel thats the reason it filter was recursively called and finally resulting into stackoverflow error. On Mon, Apr 25, 2016 at 7:02 PM, Kiran Badi wrote: > Hi, > > I am having some issues with Tuckey Rewrite U

Tuckey Rewrite URL and infinite loop exception trace for Tomcat 7.0.57

2016-04-25 Thread Kiran Badi
Hi, I am having some issues with Tuckey Rewrite URL/Tomcat 7.0.57 and for some reasons I believe I am not getting it correct. It seems to me that I am getting into infinite loop somewhere.Not sure why but conditions do match. Hello World! This is a link I am trying to clean it. Below is test

Re: File size >= 2GB not uploaded in application [Tomcat 7.0.54 Struts: 2.3.24 JAVA: openJDK 1.7.79]

2016-01-18 Thread Kiran Badi
; > ch...@christopherschultz.net > wrote: > > > -BEGIN PGP SIGNED MESSAGE- > > Hash: SHA1 > > > > Kiran, > > > > On 1/18/16 1:33 AM, Kiran Badi wrote: > > > Did you exclude your upload servlet from struts.xml ? By default > > &g

Re: File size >= 2GB not uploaded in application [Tomcat 7.0.54 Struts: 2.3.24 JAVA: openJDK 1.7.79]

2016-01-17 Thread Kiran Badi
Did you exclude your upload servlet from struts.xml ? By default struts intercepts all multi part requests and this messes a lot specially when you have hybrid framework when few modules are plain j2ee and few are struts 2 or Spring MVc in the same app. Are you upload less than 2gb file ? On Mond

Re: Tomcat Session issue - Session not expiring on browser close event

2015-09-19 Thread Kiran Badi
Thanks Chris, Let me check user guide and come back. On Fri, Sep 18, 2015 at 11:26 AM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Kiran, > > On 9/17/15 11:11 PM, Kiran Badi wrote: > > Thanks Ch

Re: Tomcat Session issue - Session not expiring on browser close event

2015-09-17 Thread Kiran Badi
D MESSAGE- > Hash: SHA256 > > Kiran, > > On 9/13/15 8:40 PM, Kiran Badi wrote: > >> Perhaps you should think about using a leaner session, and then > >> sessions living for longer than necessary won't be such a big > >> problem > > > > What do

Re: Tomcat Session issue - Session not expiring on browser close event

2015-09-13 Thread Kiran Badi
ser is not doing anything on the site or I need to adjust my timeout value ? On Wed, Sep 9, 2015 at 9:34 AM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Kiran, > > On 9/7/15 12:54 PM, Kiran Badi wrot

Tomcat Session issue - Session not expiring on browser close event

2015-09-07 Thread Kiran Badi
via ajax means injecting that code in all my jsp's and have lot many. Thanking you Kiran Badi

Re: doDelete Servlet

2015-09-07 Thread Kiran Badi
Yup I solved this , just not deleting anything, I am not just setting flag to yes or no. Thanks Chris. On Fri, Sep 4, 2015 at 3:44 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Kiran, > > On 9/

doDelete Servlet

2015-09-04 Thread Kiran Badi
Hi , I have CRUD Multipart request and I have implemented it correctly works fine at my local host. I have upload upload pdf and tiff files, all this implemented via ajax call using onchange handler on file input multiple tag. The challenge I am having is that doDelete just deletes the file with

Re: Dynamically Create Subdomains - Tomcat 7x

2015-09-04 Thread Kiran Badi
, 2015 at 1:49 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Kiran, > > On 9/4/15 12:25 PM, Kiran Badi wrote: > > Let me try again Chris, I have this site www.mysite.com ready with > > some x

Re: Dynamically Create Subdomains - Tomcat 7x

2015-09-04 Thread Kiran Badi
Let me try again Chris, I have this site www.mysite.com ready with some x amount of features in it Now I need to customize this site based on regions,states, and cities.I will most likely go with cities. So I need my main site to redirect to city1.mysite.com etc based on cookie value which

Re: Dynamically Create Subdomains - Tomcat 7x

2015-09-04 Thread Kiran Badi
On Fri, Sep 4, 2015 at 3:34 AM, André Warnier (tomcat) wrote: > On 04.09.2015 05:31, Kiran Badi wrote: > >> Hi, >> >> I need some help, I need to create subdomains dynamically, Is this >> possible >> ? >> >> I have a site, www.mymainsite.com

Dynamically Create Subdomains - Tomcat 7x

2015-09-03 Thread Kiran Badi
Hi, I need some help, I need to create subdomains dynamically, Is this possible ? I have a site, www.mymainsite.com on this main site, I drop the zipcode and city cookie and then I forward it to front controller, and it's this front controller which will point it to city subdomain. Can we crea

Re: Tomcat 7.0.27 and Tomcat 7.0.50 - Valve - Dead thread and Crawlers

2015-07-19 Thread Kiran Badi
yes its StuckThreadDetectionValve for Tomcat 7.0.27. I made the change and its working fine now.Thanks On Sat, Jul 18, 2015 at 4:29 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Kiran, > > On 7/17

Re: Tomcat 7.0.27 and Tomcat 7.0.50 - Valve - Dead thread and Crawlers

2015-07-18 Thread Kiran Badi
Hah thanks Kolinko ,I will try it today and provide update. On Saturday, July 18, 2015, Konstantin Kolinko wrote: > 2015-07-17 18:35 GMT+03:00 Kiran Badi >: > > Hi > > > > I wanted to check if this setting in Server.xml is still valid, > > > > > craw

Tomcat 7.0.27 and Tomcat 7.0.50 - Valve - Dead thread and Crawlers

2015-07-17 Thread Kiran Badi
Hi I wanted to check if this setting in Server.xml is still valid, I edited by server xml and added these valves,but I adding tomcat refuses to start up and I see for some reasons Tomcat is not able to find those classes. Do I need do download some jar files to make it work ? I am looking f

Re: Tomcat - OOM Perm gen

2015-07-12 Thread Kiran Badi
4:38 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Kiran, > > On 7/5/15 10:24 AM, Kiran Badi wrote: > > Sorry for taking time to reply Chris. > > > >> Christopher Schultz wrote: Are

Re: why is Tomcat 7 invoking WebSocket protocol?

2015-07-05 Thread Kiran Badi
Thanks Charles for clarification. On Tue, Jun 30, 2015 at 12:47 PM, Caldarale, Charles R < chuck.caldar...@unisys.com> wrote: > > From: Kiran Badi [mailto:ki...@poonam.org] > > Subject: Re: why is Tomcat 7 invoking WebSocket protocol? > > > I know for sure I am

Re: Tomcat - OOM Perm gen

2015-07-05 Thread Kiran Badi
Mark. On Tue, Jun 30, 2015 at 1:17 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Kiran, > > On 6/29/15 10:21 AM, Kiran Badi wrote: > > Christopher Schultz wrote: > >> The number of users sh

Re: why is Tomcat 7 invoking WebSocket protocol?

2015-06-30 Thread Kiran Badi
; Hi. > > Sorry to jump in, and to top-post, and maybe make an irreverential comment > : > > But maybe the solution consists simply in renaming that filter, so that it > does not give the mistaken impression that the WebSocket protocol is > necessarily being used ? > > K

Re: why is Tomcat 7 invoking WebSocket protocol?

2015-06-30 Thread Kiran Badi
Hi Mark, Sorry to jumping in But even I have seen this in few of my exception traces though I never use websockets.Some where down the line when exception is thrown wsfilter shows up in traces.I am guessing it should be some kind of exception filter so it bubbles up for exception types irrespecti

Re: Tomcat - OOM Perm gen

2015-06-29 Thread Kiran Badi
. On Fri, Jun 26, 2015 at 11:56 AM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Kiran, > > On 6/25/15 6:32 PM, Kiran Badi wrote: > > I have 2 web apps sitting on single tomcat instance, App A( >

Tomcat - OOM Perm gen

2015-06-25 Thread Kiran Badi
Hi All, I have 2 web apps sitting on single tomcat instance, App A( Classic JSP/Servlet/jstl/velocity App) and App B (Struts2 based app). Now I have added S2 to App A and trying to fix some bad code in it with it.But after making this change I keep getting out of OOM issues once user count reach

Re: Tomcat 7.0.57 - Deployment Issue

2015-05-13 Thread Kiran Badi
May 13, 2015 at 11:17 AM, Jeffrey Janner < jeffrey.jan...@polydyne.com> wrote: > > -Original Message----- > > From: Kiran Badi [mailto:ki...@poonam.org] > > Sent: Tuesday, May 12, 2015 9:30 PM > > To: Tomcat Users List > > Subject: Re: Tomcat 7.0.57 - Dep

Re: Tomcat 7.0.57 - Deployment Issue

2015-05-12 Thread Kiran Badi
2015 at 7:43 AM, Caldarale, Charles R < chuck.caldar...@unisys.com> wrote: > > From: Kiran Badi [mailto:ki...@poonam.org] > > Subject: Re: Tomcat 7.0.57 - Deployment Issue > > > for some reasons it's not going well. Its getting deployed as single app > >

Re: Tomcat 7.0.57 - Deployment Issue

2015-05-11 Thread Kiran Badi
On Fri, May 8, 2015 at 10:09 PM, Kiran Badi wrote: > Thanks Hassan. I will let you know. > > On Fri, May 8, 2015 at 9:50 PM, Hassan Schroeder < > hassan.schroe...@gmail.com> wrote: > >> On Fri, May 8, 2015 at 6:14 PM, Kiran Badi wrote: >> >> > Here

Re: Tomcat 7.0.57 - Deployment Issue

2015-05-08 Thread Kiran Badi
Thanks Hassan. I will let you know. On Fri, May 8, 2015 at 9:50 PM, Hassan Schroeder wrote: > On Fri, May 8, 2015 at 6:14 PM, Kiran Badi wrote: > > > Here is server.xml I am going to try in this weekend. I have added host > > tags inside the engine element and mapped w

Re: Tomcat 7.0.57 - Deployment Issue

2015-05-08 Thread Kiran Badi
:46 PM, Hassan Schroeder < hassan.schroe...@gmail.com> wrote: > On Thu, May 7, 2015 at 7:24 PM, Kiran Badi wrote: > > > www.webapp1.com > > > > Now I have another webapp2. which I need to deploy it to same tomcat and > > access it as > > > > www.w

Tomcat 7.0.57 - Deployment Issue

2015-05-07 Thread Kiran Badi
Hi All, I need some help with my situation here. I have private tomcat with hosting provider which allows me to deploy unlimited domains/sites. Now I have 1 web application deployed to that tomcat at the root folder. Lets call this app as webapp1. I just rename webapp1.war to ROOT.war and drop i

Re: My problem: I cannot successfully get or set a session attribute from a JSP file.

2014-12-08 Thread Kiran Badi
I agree with Terence check if request is indeed getting fire. Add couple of alerts to jquery call. You can also check if value is getting added to session via tomcat manager admin interface , I remember there is option to see session values /attributes over there. On Monday, December 8, 2014, Tere

Re: INFO: TLD skipped Messages in logs

2014-10-29 Thread Kiran Badi
Thanks Mark On Tuesday, October 28, 2014, Mark Thomas wrote: > On 28/10/2014 00:59, Kiran Badi wrote: > > Hi > > > > Can someone reply to this query please. > > On 10/2/2014 8:10 PM, Kiran Badi wrote: > >> Hi, > >> > >> I am getting below m

Re: INFO: TLD skipped Messages in logs

2014-10-27 Thread Kiran Badi
Hi Can someone reply to this query please. On 10/2/2014 8:10 PM, Kiran Badi wrote: Hi, I am getting below messages in the logs, Oct 26, 2014 4:05:46 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: http://java.sun.com/jstl/xml_rt is already defined Oct 26, 2014 4:05

INFO: TLD skipped Messages in logs

2014-10-26 Thread Kiran Badi
understand if this messages are related to duplicate jstl jar or something else . - Kiran Badi - - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Struts 2 /Glassfish to Tomcat migration

2014-10-18 Thread Kiran Badi
Thanks Chris. I was able to fix the issue. On Fri, Oct 3, 2014 at 10:52 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Kiran, > > On 10/3/14 8:02 PM, Kiran Badi wrote: > > Thanks Chris for

Re: Struts 2 /Glassfish to Tomcat migration

2014-10-03 Thread Kiran Badi
SHA256 > > Kiran, > > On 10/2/14 9:59 PM, Kiran Badi wrote: > > I am migration my glassfish struts 2 based application to Tomcat > > 7.055. > > > > I am coming across 2 issues, first one is below exception while > > starting Tomcat > > > > java.lan

Struts 2 /Glassfish to Tomcat migration

2014-10-02 Thread Kiran Badi
I am migration my glassfish struts 2 based application to Tomcat 7.055. I am coming across 2 issues, first one is below exception while starting Tomcat java.lang.UnsatisfiedLinkError: C:\Apache Software Foundation\apache-tomcat-7.0.55\bin\tcnative-1.dll: Can't load IA 64-bit .dll on a AMD 64-bit

Re: Deploy application as Root

2014-09-14 Thread Kiran Badi
folder, how about myapp.war ? >> > > myapp.war will be extracted to directory myapp. > > > Does it go to work folder ? >> > > All web applications are unpacked to appBase folder. Work folder is > internal Tomcat folder. > > > On 12.9.2014 4:22, Kiran Badi wro

Re: Deploy application as Root

2014-09-14 Thread Kiran Badi
Thanks Sergio, I will give this approach a shot for next deployment. On Fri, Sep 12, 2014 at 2:31 AM, Sergio Fernández wrote: > Hi, > > On 12/09/14 04:22, Kiran Badi wrote: > >> This will be basically myapp2.war ,so how do I manage this deployment so >> that whenever s

Re: Deploy application as Root

2014-09-11 Thread Kiran Badi
.com, it should open up ? I assume we cannot have 2 root deployment in the same tomcat. On Thu, Sep 11, 2014 at 9:29 PM, Kiran Badi wrote: > Ok I made the changes, and trying. > > Andre, I tried your approach, it still same error.Making changes to server > xml now. > > P

Re: Deploy application as Root

2014-09-11 Thread Kiran Badi
Blagojevic < ognjen.d.blagoje...@gmail.com> wrote: > Kiran, > > On 11.9.2014 5:52, Kiran Badi wrote: > >> I am trying to deploy application as ROOT.war in tomcat 7.50 provided by >> hosting service provider, but for some reasons I get below message >> >> FAIL -

Deploy application as Root

2014-09-10 Thread Kiran Badi
Hi, I am trying to deploy application as ROOT.war in tomcat 7.50 provided by hosting service provider, but for some reasons I get below message FAIL - War file "ROOT.war" cannot be uploaded if context is defined in server.xml I have below in server xml, Host name="Myapp.com" appBase="path t

Re: Tomcat-user versus StackOverflow

2014-03-14 Thread Kiran Badi
I think I prefer to stay with Tomcat users list. Problem with SO is that they close the questions without the second thought.Its becoming more of kind of dictatorship. Too generic , close it and too easy, flame the poster altitude. Again I don't have any issues with SO and I did receive lot of as

Re: Encountered exception org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext for tomcat 7.0.50

2014-02-06 Thread Kiran Badi
art Starting ProtocolHandler > ["http-nio-8080"] > 06-Feb-2014 14:50:38.115 INFO [main] > org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler > ["ajp-nio-8009"] > 06-Feb-2014 14:50:38.120 INFO [main] > org.apache.catalina.startup.Catalina.start Server startup in 2861 ms &

Encountered exception org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext for tomcat 7.0.50

2014-02-05 Thread Kiran Badi
Hi All, I have 3 tomcats installed in my machine, one is 7.0.27, 7.0.35 and 7.0.50 Now when I deploy my war file to 7.0.27/7.0.35 it works perfectly fine and deployment goes through. But on 7.0.50 it fails with below message, FAIL - Application at context path /myapp could not be started FAIL

Re: Trying to install tomcat 7.0.35 but after installation it shows me as Apache Tomcat 7.0.2

2013-01-23 Thread Kiran Badi
Resolved and I am good now.Updated to 7.0.35. Thanks Chris On Wed, Jan 23, 2013 at 3:54 PM, Kiran Badi wrote: > My bad, I removed 7.0.2 instance by using service.bat uninstall from cmd > prompt and now I am not able to install updated one. getting the below > message.Do I ne

Re: Trying to install tomcat 7.0.35 but after installation it shows me as Apache Tomcat 7.0.2

2013-01-23 Thread Kiran Badi
My bad, I removed 7.0.2 instance by using service.bat uninstall from cmd prompt and now I am not able to install updated one. getting the below message.Do I need to set environment variables, I dont remember setting it earlier for any of version I had installed. Microsoft Windows [Version 6.0.6002

RE: Trying to install tomcat 7.0.35 but after installation it shows me as Apache Tomcat 7.0.2

2013-01-22 Thread Kiran Badi
Also I see version number 7.0.2 in welcome page. On Jan 22, 2013 11:52 PM, "Caldarale, Charles R" wrote: > > From: Kiran Badi [mailto:ki...@poonam.org] > > Subject: Trying to install tomcat 7.0.35 but after installation it shows > me as Apache Tomcat 7.0.2 > > &

RE: Trying to install tomcat 7.0.35 but after installation it shows me as Apache Tomcat 7.0.2

2013-01-22 Thread Kiran Badi
different directories.I will paste the screen to marrow as and will rechech once again. On Jan 22, 2013 11:52 PM, "Caldarale, Charles R" < chuck.caldar...@unisys.com> wrote: > > From: Kiran Badi [mailto:ki...@poonam.org] > > Subject: Trying to install tomcat 7.0.35 but

Trying to install tomcat 7.0.35 but after installation it shows me as Apache Tomcat 7.0.2

2013-01-22 Thread Kiran Badi
Hi All, >From this link, http://tomcat.apache.org/download-70.cgi I downloaded the Tomcat 7.0.35 from core binary distribution.32-bit Windows zip (pgp

[OT]- MYSQL + Tomcat + Apache + Java Hosting in India

2012-10-03 Thread Kiran Badi
they do not support java or tomcat. Thanks Kiran Badi - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Where do I store Images in tomcat structure so that I can retrive it properly in all browsers

2012-09-22 Thread Kiran Badi
On 9/17/2012 10:20 PM, Christopher Schultz wrote: If you instead implemented your own "aliases" feature using a servlet, you could do it in a smarter way because you understand your own URL space: you might always know that /images/X will translate directly into /file/place/on/the/disk/X and you

Re: Where do I store Images in tomcat structure so that I can retrive it properly in all browsers

2012-09-13 Thread Kiran Badi
size with unmanageable number of jsp/servlets/beans. Thanks Chris and Konstantio for replies.Currently I am on 7.027/7.011 and maybe after some days, I will upgrade to 7.030 or still better have one more TC for testing purpose. - Kiran Badi ---

Re: Where do I store Images in tomcat structure so that I can retrive it properly in all browsers

2012-09-11 Thread Kiran Badi
On 9/8/2012 4:09 PM, Konstantin Kolinko wrote: Regarding the aliases feature: single path -> multiple file paths: No multiple different non-intersecting paths -> multiple file paths: Yes As far as I remember, an example of using multiple aliases is present in documentation. Thanks Konstantin,

Re: Where do I store Images in tomcat structure so that I can retrive it properly in all browsers

2012-09-08 Thread Kiran Badi
Thanks Konstantin, I will check this and revert back. On 9/8/2012 4:09 PM, Konstantin Kolinko wrote: 2012/9/8 Kiran Badi : Hi Chris and All, I hope its alright if I reopen my old thread since I want to expand my earlier requirement. I have a requirement where for each category I need to

Re: Where do I store Images in tomcat structure so that I can retrive it properly in all browsers

2012-09-07 Thread Kiran Badi
lines if this saves me some bugs. On 6/5/2012 7:41 PM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kiran, On 6/5/12 1:31 AM, Kiran Badi wrote: After playing around for a day, this is another solutions which worked for me, with Tomcat 7.0.11 in context.xml Good

Re: [OT] Re: Warning: js modified in the future- not able to find the files

2012-08-08 Thread Kiran Badi
inside the app war file did not get impacted. Using that war file I was able to recover the library.Maybe its just my good luck. Probably since library was inside war file, it did not get impacted. Strange issue. On 8/5/2012 1:35 PM, Pid wrote: On 01/08/2012 04:35, Kiran Badi wrote: Hi All, I

Warning: js modified in the future- not able to find the files

2012-07-31 Thread Kiran Badi
Hi All, I have TC 7.0.11/7.0.27 and Apache 2.2 all sitting in the C://Program Files/Apache Software Foundation folder. I came across a strange issue today where in close to 10+ Javascript files were missing from the folder. Below is the way I do things I use dreamweaver for designing the pa

Re: Happy Birthday, Chuck!

2012-07-27 Thread Kiran Badi
please accept my best wishes. chuck. On Jul 27, 2012 3:19 AM, "Leon Rosenberg" wrote: > Maybe a little bit late, but still! > Happy Birthday Chuck! > Leon > > On Thu, Jul 26, 2012 at 10:46 PM, Rainer Jung > wrote: > > On 26.07.2012 15:46, Gregor S. wrote: > >> > >> Hi Chuck, > >> > >> thanks aga

Re: Logging framework for Tomcat -Exceptions

2012-07-11 Thread Kiran Badi
On 7/12/2012 7:20 AM, Tim Watts wrote: No offense, but this really isn't a list for teaching Java. But what the hell, I'll make one "exception": public class DAOException extends Exception { public DAOException(String msg) { super(); } public

Logging framework for Tomcat -Exceptions

2012-07-11 Thread Kiran Badi
Hi, I have below code for catching DAO exceptions,but I feel its not correct way to do this,Can some one point me to some library which will capture all exceptions which my code will throw and works with tomcat. I implementing Model2 mvc pattern and to my surprise I am able to show values to

Re: Tomcat DBCP Connection pool issue

2012-06-28 Thread Kiran Badi
On 6/27/2012 8:35 PM, Christopher Schultz wrote: 100 active db connections sounds like a lot. Do you really need to support 100 simultaneous connections to your database? Can your database support that many connections with active queries from each? Do you have a cluster? Remember that each membe

Re: Tomcat DBCP Connection pool issue

2012-06-26 Thread Kiran Badi
Probably waited too long for a connection. What does your pool configuration look like? Look in META-INF/context.xml or, I suppose, in conf/server.xml for elements. type="javax.sql.DataSource" maxActive="100" maxIdle="30" maxWait="1" username="user" password

Re: Tomcat DBCP Connection pool issue

2012-06-26 Thread Kiran Badi
On 6/26/2012 12:09 PM, Steven Sinclair wrote: > You can use java jmx console to monitor the number of db connections. Thanks Steven, I will check this.Actually servlet was leaking connection and I had forgot to close connection.Fixed it now. But I still need to monitor DB side.I will check jmx con

Tomcat DBCP Connection pool issue

2012-06-25 Thread Kiran Badi
Hi All, While testing the pagination links ,I am getting below error, SEVERE: null org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot get a connection, pool error Timeout waiting for idle object at org.apache.tomcat.dbcp.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:114)

Re: Javamail exception in tomcat 7.0.11

2012-06-19 Thread Kiran Badi
On 6/19/2012 11:09 PM, Mark Eggers wrote: If I remember correctly, you're using NetBeans. There are at least two ways of removing the JAR from the packaging without impacting your project. If you're using the NetBeans standard build mechanism: 1. Go to Project->Properties->Libraries 2. Uncheck

Re: Protect JSP from Direct Access in Tomcat 7.0.xx

2012-06-19 Thread Kiran Badi
Yup done this Sharon.Thanks On 6/19/2012 2:03 PM, Sharon Prober (sprober) wrote: You could always position your jsp's inside the WEB-INF dir This will enable you to access them only through server redirects rather than absolute url's Sharon -Original Message----- F

Re: Javamail exception in tomcat 7.0.11

2012-06-19 Thread Kiran Badi
On 6/19/2012 9:55 PM, Pid * wrote: Unfortunately you've completely omitted the code for setting the session object, so we can only guess why it's not working. Yup Pid, I realized it later on when Tim highlighted it.Its fixed now.Thanks I am able to send mail comfortably. --

Re: Javamail exception in tomcat 7.0.11

2012-06-19 Thread Kiran Badi
On 6/19/2012 11:23 AM, Tim Watts wrote: I have send mail servlet, which looks something like below, > > protected void doPost(HttpServletRequest request, HttpServletResponse > response) throws ServletException, IOException { > String emailRecipient = request.getParameter("name"); >

Re: Protect JSP from Direct Access in Tomcat 7.0.xx

2012-06-18 Thread Kiran Badi
On 6/19/2012 10:22 AM, Tim Watts wrote: Hopefully, you're trying to use or move toward the MVC (Model, View, Controller) pattern. If not, you should. Google "MVC design pattern". There are many, many frameworks that will make this easier for you (once you learn them): Struts, Spring MVC... If

Javamail exception in tomcat 7.0.11

2012-06-18 Thread Kiran Badi
Hi All, I have send mail servlet, which looks something like below, protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String emailRecipient = request.getParameter("name"); // String emailRecipient = "xxx";

Re: Protect JSP from Direct Access in Tomcat 7.0.xx

2012-06-18 Thread Kiran Badi
On 6/19/2012 8:03 AM, Tim Watts wrote: Hi Kiran, On Tue, 2012-06-19 at 05:40 +0530, Kiran Badi wrote: Hi All, I need your guidance again.I have bunch of JSP's close to 100+ which I need to protect it from direct access. By "direct access" do you mean that http://host/myap

Protect JSP from Direct Access in Tomcat 7.0.xx

2012-06-18 Thread Kiran Badi
Hi All, I need your guidance again.I have bunch of JSP's close to 100+ which I need to protect it from direct access. I have this mapping in web xml and this is not working,It seems that probably i need to define a role first and then use below settings.But unfortunately my app is open inter

Re: URL Rewriting

2012-06-15 Thread Kiran Badi
on hold though point d is something I can experiment with. Give me sometime to think about to redesign this piece of code. On 6/15/2012 3:53 AM, André Warnier wrote: Kiran Badi wrote: Please inline for my answers Andre. Kiran, Why does that "id=17" visible in the URL bother y

Re: URL Rewriting

2012-06-15 Thread Kiran Badi
Why are you so eager to remove the ids from the URL? Thanks Chris for reply,It was looking ugly thats the reason.Anyways, now that I have fixed most of gaps, I think I should be fine with this. - To unsubscribe, e-mail: users

Re: URL Rewriting

2012-06-13 Thread Kiran Badi
Thanks Hassan. If you want 'clean' URLs you should get rid of the '.jsp' too, but ... The bottom line is the value for 'id' needs to come from somewhere. Your choices are: 1) Embed it in the URL for GET requests, either via query string or as path info (e.g. /story/data/17 ) and handle t

Re: URL Rewriting

2012-06-13 Thread Kiran Badi
Please inline for my answers Andre. Kiran, Why does that "id=17" visible in the URL bother you ? Is it because of some security aspect ? (that the user could change it, and get something else than what they should be getting ?) Thanks for reminding this aspect.I was not checking for empty resu

Re: URL Rewriting

2012-06-12 Thread Kiran Badi
showing up with urls as http://localhost:8080/mysite/getmyservice.do?id=17 and I just need to hide them and show some neat url something like mysite/getmyservice.do without displaying parameters. Will hiding the url's cause any other issues ? - Kiran On 13/06/2012, at 1:21 PM, Kiran

URL Rewriting

2012-06-12 Thread Kiran Badi
Hi All, For some of the functionality, I have url in the below format http://localhost:8080/mysite/getmyservice.do?id=17 What I was looking for is to hide the id part of the url and just show something like http://localhost:8080/mysite/getmyservice.do# Is this hack possible with tomcat 7.01

Re: Can someone suggest mail some opensource mail server which works well with Tomcat.

2012-06-11 Thread Kiran Badi
On 6/10/2012 1:49 AM, André Warnier wrote: Kiran Badi wrote: Any feedback on apache james ? I've never used it, so I can't comment. What I would ask is: why are you are specifically looking for a Java-based mail server? I was looking for open source server ,capable for serving

Re: Can someone suggest mail some opensource mail server which works well with Tomcat.

2012-06-09 Thread Kiran Badi
On 6/8/2012 12:17 PM, Jose María Zaragoza wrote: Kiran: Is google mail a part of google apps or its normal gmail service which we use ?.I feel there might be some limits on the number of requests like google api's Can you elaborate more please. Take a look this http://www.google.com/enterprise

Re: Can someone suggest mail some opensource mail server which works well with Tomcat.

2012-06-09 Thread Kiran Badi
Any feedback on apache james ? I've never used it, so I can't comment. What I would ask is: why are you are specifically looking for a Java-based mail server? I was looking for open source server ,capable for serving atleast 5k mails daily to begin with.Since I am using java api, I am under

Re: Can someone suggest mail some opensource mail server which works well with Tomcat.

2012-06-06 Thread Kiran Badi
If you are going to use Javamail to access a remote mailbox (even if it's on localhost), then you can use any email server software that otherwise meets your needs. Javamail can communicate with any POP3 or IMAP server -- it need not be Java-based. You can even use Google Mail as your email ser

Re: Can someone suggest mail some opensource mail server which works well with Tomcat.

2012-06-06 Thread Kiran Badi
should not have more set up or communication issues talking to tomcat.I plan to use Javamail api's and read mail servers parameters via web xml resources section. On 6/6/2012 11:46 PM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kiran, On 6/6/12 12:24 PM,

Can someone suggest mail some opensource mail server which works well with Tomcat.

2012-06-06 Thread Kiran Badi
?. PS:I am going through apache james to see if it works for me. - Kiran Badi - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Where do I store Images in tomcat structure so that I can retrive it properly in all browsers

2012-06-05 Thread Kiran Badi
On 6/5/2012 7:41 PM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kiran, On 6/5/12 1:31 AM, Kiran Badi wrote: After playing around for a day, this is another solutions which worked for me, with Tomcat 7.0.11 in context.xml Good, except that you should really

Re: Where do I store Images in tomcat structure so that I can retrive it properly in all browsers

2012-06-04 Thread Kiran Badi
manager app I see something called /files , not sure as what is this ? On 6/2/2012 4:45 AM, Kiran Badi wrote: On 6/1/2012 9:27 PM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kiran, On 5/31/12 10:37 PM, Kiran Badi wrote: Ok I did it this way in TC 7.0.27 as I decided

Re: Where do I store Images in tomcat structure so that I can retrive it properly in all browsers

2012-06-01 Thread Kiran Badi
On 6/1/2012 9:27 PM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kiran, On 5/31/12 10:37 PM, Kiran Badi wrote: Ok I did it this way in TC 7.0.27 as I decided not to touch Netbeans setup with 7.0.11( I had messed up TC7.0.11 after doing several trial and error

  1   2   >