Webapplication directory

2002-07-16 Thread Ashish Kulkarni
Hi, I have just installed tomcat4.0.4, and i have to deploy a new application. so do i have to create a new folder say maps in c:\tomcat4.0.4\webapps\maps, and then create WEB-INF etc in it, or i can create it any where on my C drive and give the path in server.xml file, what is the best wayof

jk_open_socket, connect() failed errno = 61

2002-07-16 Thread Ashish Kulkarni
Hi, I am working with tomcat4.0.4 and apache 2.0.39, and using jk_mod to connect them. The intresting thing is even after getting this error, my tomcat and apache are working together... i can access all the servlets from apache port. so do i neglect this error, or else how can i fix it. I have

Tomcat and Session And jsp include

2002-07-17 Thread Ashish Kulkarni
Hi, I am developing an web application using tomcat4.0.4 and apache 2.0.39 on win2000 I want the user the login on the first page, so once the user logs in i create a session for the user, now in other jsp in applciation i have a header.jsp this jsp checks if the session is active or experied,

Check Session is valid response.sendRedirect not working

2002-07-17 Thread Ashish Kulkarni
Hi, I am developing a webapplication with tomcat4.0.4 and apache 2.0.39, I want the user to login on first page, and then check if the session is valid or not in each jsp, and servlet. So what is the best way to do it?? i am using jsp code code as below, but seems it that

JSP Compilation Error

2002-07-22 Thread Ashish Kulkarni
Hi I get the following error when running jsp, but the servlets have no problem. I am running windows 2000 server java.lang.NoClassDefFoundError: sun/tools/javac/Main my env is as follows JAVA_HOME=c:\j2sdk1.4.0

Re: How does Apache access more than one application on Tomcat?

2002-07-23 Thread Ashish Kulkarni
Hi, if u have set the communication between apache and tomcat for one appication what u need to do is just mount the other application JkMount /maps ajp13 JkMount /maps/* ajp13 these is an example for appication maps on tomcat --- shi_hang [EMAIL PROTECTED] wrote: Is there anyone can tell me

Change JDK version for tomcat4.0.4

2002-07-24 Thread Ashish Kulkarni
Hi, I am running tomcat4.0.4 on my windows 2000 server, I had jdk1.3.1 when i installed it and is running fine, but now i want to use jdk1.4.1 , so how can i upgrade tomcat to use jdk1.4 instead of jdk1.3.1 without installing it again Ashish

Update JDK version for tomcat

2002-07-25 Thread Ashish Kulkarni
Hi, I am running tomcat4.0.4 on windows2000, when i installed it i had jdk1.3.1 on my machine, so tomcat used jdk1.3.1 while installing, now i want to upgrade to jdk1.4.1, so how can i do it?? if only i change the classpath will it work or i will have to reinstall tomcat after changing my

Tomcato4.0.4 and included jsp compilation problem

2002-07-25 Thread Ashish Kulkarni
Hi, I m using tomcat4.0.4 , i found out today that when i modify the included jsp , tomcat does not recompile it. i.e. I have suppose a jsp called test.jsp and i include a jsp called test1.jsp. If for some reason i modify test1.jsp and dont modify test.jsp. tomcat does not recompile test.jsp so

Re: Tomcato4.0.4 and included jsp compilation problem

2002-07-25 Thread Ashish Kulkarni
://www.jjcc.com On Thu, 25 Jul 2002 08:31:12 -0700 (PDT), Ashish Kulkarni wrote: Hi, I m using tomcat4.0.4 , i found out today that when i modify the included jsp , tomcat does not recompile it. i.e. I have suppose a jsp called test.jsp and i include a jsp called test1.jsp. If for some

Tomcat does not pick the modified servlet

2002-07-25 Thread Ashish Kulkarni
Hi, I am using tomcat4.0.4 and i have a problem when i modify the servlet and put it in tomcat. The problem is tomcat does not pick up the new servlet code, so i have to go to the manager and restart the application. Is there a way tomcat will pick automatically new servlet code with out

Re: Tomcat does not pick the modified servlet

2002-07-25 Thread Ashish Kulkarni
Insurance Ashish Kulkarni kulkarni_ash13@To: Tomcat Users List

RE: Tomcat does not pick the modified servlet

2002-07-25 Thread Ashish Kulkarni
that need to reload modified servlets. reloadable=false will give better performance in a production environment because Tomcat does not have to check for a modified servlet on every request. -Original Message- From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 25

Error in MOD_JK

2002-08-02 Thread Ashish Kulkarni
Hi, I am using tomcat4.0.4 and apache2.0.39 I am using mod_jk for connecting them, every thing seems fine when working and i never get any error on screen , but my mod_jk.log file keeps getting this error [Wed Jul 31 12:12:36 2002] [jk_connect.c (151)]: jk_open_socket, connect() failed errno =

JSP getting submited twice

2002-08-02 Thread Ashish Kulkarni
Hi, I am using tomcat4.0.4 and apache2.0.39, I am developing a web application and some jsp, but the problem is all the jsp are getting submitted twice, so how do i debug and find why??? here is some sample code i use to request other jsp, i use javascript and onclick event of a button function

error in jsp??? Response has already been committed

2002-08-08 Thread Ashish Kulkarni
Hi, I am developing some jsp pages, and i get the following error br java.lang.IllegalStateException: Response has already been committed at allaire.jrun.servlet.JRunResponse.resetContent(../servlet/JRunResponse.java:172) at

Re: error in jsp??? Response has already been committed

2002-08-09 Thread Ashish Kulkarni
- Forward to another JSP (or servlet) - Set response headers (Cookies, character encoding ...) Ashish Kulkarni wrote: Hi, I am developing some jsp pages, and i get the following error br java.lang.IllegalStateException: Response has already been committed

jsp include question

2002-08-09 Thread Ashish Kulkarni
Hi I am developing a web application and came accross this problem. when in my jsp page i have jsp:include runtime include and then later in the code when i have response.sendRedirect or request.getRequestDispatcher() to forward the jsp page i get error saying the

tomcat4.0.4 and Servlet Specification 2.3 and JSp1.2

2002-08-12 Thread Ashish Kulkarni
Hi, Is tomcat4.0.4 using servlet specification 2.3 and JSP specification1.2?? Because as per these specification jsp:include page=common.jsp flush=true / % if (someCondition) { % jsp:forward page=another.jsp / % } % the above code will give error, but if u make the flush value=false, it

tomcat4.0.4 and Servlet Specification 2.3 and JSp1.2

2002-08-13 Thread Ashish Kulkarni
Does tomcat4.0.4 follow servlet specifications 2.3 and jsp 1.2 if yes then can some one explain the following as per these specification jsp:include page=common.jsp flush=true / % if (someCondition) { % jsp:forward page=another.jsp / % } % the above code will give error, but if u

Re: How to keep track of sessions

2002-08-14 Thread Ashish Kulkarni
Hi Can some one provide with some java code where in they have used HttpSessionListener, and then stored the sessions in a vector when a new session is created, and remove it when it is invalidated. i m developing a webapplication where in the database is as400, so when ever a user logs in a job

Re: AW: How to keep track of sessions

2002-08-14 Thread Ashish Kulkarni
or what ? -Ursprüngliche Nachricht- Von: Ashish Kulkarni [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 14. August 2002 17:14 An: Tomcat Users List Betreff: Re: How to keep track of sessions Hi Can some one provide with some java code where in they have used

RE: Apache not automatically starting Tomcat

2002-08-15 Thread Ashish Kulkarni
Hi, I am running tomcat4.0.4 and apache2.0.39 on windows2000 and using mod_jk to connect them, right now everything is working fine, but is it possible to configure apache to start tomcat, if yes how and where can i find the required worker2.properties and jk2.properties file for windows2000

Running 2 version of tomcat on same machine

2002-08-16 Thread Ashish Kulkarni
Hi, I am currently running tomcat4.0.4 on my windows 2000 server , I just downloaded jboss3.0 which comes with tomcat4.0.3, so i want to install it also, but i dont want to remove my existing tomcat4.0.4 with all the exisiting applications running on it... so what care should i take so there is

Running 2 version of tomcat on same machine

2002-08-19 Thread Ashish Kulkarni
Hi, I am currently running tomcat4.0.4 on my windows 2000 server , I just downloaded jboss3.0 which comes with tomcat4.0.3, so i want to install it also, but i dont want to remove my existing tomcat4.0.4 with all the exisiting applications running on it... so what care should i take so

two versions on tomcat on same machine

2002-08-19 Thread Ashish Kulkarni
Hi, Can i run 2 different versions of tomcat on same machine, if yes what are the things i need to check if they dont have to conflict when running Ashish __ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com -- To

Remote Start and Stop of tomcat4.0.4

2002-08-21 Thread Ashish Kulkarni
Hi, I am running tomcat4.0.4 with apache 2.0.39, i have this setup in office machine, i can access my office by remote login(from home). Can i start and stop tomcat and apache from home, i know i can use manager application to start, stop, reload a webapplication from home.. even if i m able to

Tomcat and connection pooling

2002-08-21 Thread Ashish Kulkarni
Hi, I am using tomcat 4.0.4 and developing a web application for as400 database, now IBM has provided with a set of libraries to connect with AS400 database, there is a class called AS400JDBCConnectionPool which creates a connection pool, there are methods to get the connection and return the

RE: Tomcat and connection pooling

2002-08-21 Thread Ashish Kulkarni
Hi Does that mean i can create an Instance of AS400JDBCConnectionPool class and keep it is servlet context and then all the servlets can have access to it?? Ashish --- neal [EMAIL PROTECTED] wrote: I see you guys are talking about connection pooling in Tomcat. I presume you must be referring

Re: connection pooling

2002-08-27 Thread Ashish Kulkarni
Hi, A Question about JNDI, to use it i have to configure it in server.xml file, suppose if i have to change my app server , say to JRun, or Weblogic or websphere...how will it affect me,i think since all these are J2EE compliant servers, they must have some place for defining it, also what if i

Send parameters from one web application to other

2002-08-28 Thread Ashish Kulkarni
Hi, i have 2 web applications runnung on tomcat,say A and B at some point i have to call a jsp B from A, and to to send some parameters, one approcah is that i can have an URL appended with the parameters like http://localhost:8080/B/test.jsp?name=a but i want to hide it from the user, or say if

Tomcat 4.0, with apache 1.3.22

2002-01-17 Thread Ashish kulkarni
Hi. I have installed tomcat4.0 on my windows 2000 and windows NT machine, i also have apache 1.3.22 working on the machine. I have 3 namebased virtual host working on apache, now i want to integrate both apache with tomcat4.0, I have downloaded the libapr.dll and mod_webapp.so and copied them

Tomcat 4.0, + apache 1.3.22 + web_mod

2002-01-18 Thread Ashish kulkarni
Hi, I was trying to integrate tomcat4.0 with apache 1.3.22 using web_mod, and i was able to do it, but now i am having a problem of multiple instance of tomcat and apache, I am able to forward all the request that come for servlet and jsp for the web applications defined in my webapp directory of

Re: Apache / Tomcat 4.01/ Virtualhost

2002-01-22 Thread Ashish kulkarni
Hi, I have done configured virtual host with apache 1.3.22 and tomcat 4.0.1 , on windows 2000 with mod_jk module, here are the steps, hope it helps #*** 1) Tomcat 4.0 : - Be carefull to do not install TC4 in a path with spaces ! otherwise you

multiple instance of tomcat4.0

2002-01-22 Thread Ashish kulkarni
Hi, I have tomcat4.0 on my win2000k and winnt server, i want to run multiple instance of it, like one instance for production, other for development, and the 3 for testing. so how can i do it?? do i have to modify server.xml??? if yes how?? i would appreciate if some one has an example

tomcat4.0 + apache1.3.22 + questions

2002-01-22 Thread Ashish kulkarni
Hi, I have configured tomcat4.0 with apache 1.3.22, using mod_jk as well as mod_web modules, Does any one have any information about which one is good for production purpose so i can conitnue using it. Also I have 3 directories on my win2000 and winnt server, first is c:\prodution second is

Tomcat 4.0, + apache 1.3.22 + web_mod configuration

2002-01-22 Thread Ashish kulkarni
Hi, If i have to configure tomcat4.0 with apache1.3.22 using web_mod 1 . I have to add these lines in httpd.conf of apache WebAppConnection conn warp pfizer-maps:8018 WebAppDeploy examples conn /examples does examples have to be in webapps directory of apache tomcat4.0, or can be

multiple instance of tomcat4.0

2002-01-22 Thread Ashish kulkarni
Hi, I want to create multiple instance of tomcat, so how can i do it??? i have read the RUNNING.txt in the tomcat-docs directory, but is not very clear, can anyone explain in detail about it.??? Ashish __ Do You Yahoo!? Send FREE video emails in

web_mod is stable????

2002-01-22 Thread Ashish kulkarni
Hi, I have configured tomcat4.0 with apache 1.3.22 using web_mod, it works fine but some times i get 5oo internal server error while serving jsp. but when i refresh the page it works again so i want to know is this configuration stable on win2000 andd winnt server or should i go back to using

RE: Ap 1.3.22+TC 4.0.1+NT 4 = Web-app not yet deployed

2002-01-23 Thread Ashish kulkarni
Hi Please find the attached httpd.conf filr for apache 1.3.22 along this mail, which is working fine for me Ashish --- [EMAIL PROTECTED] wrote: Ashish (and dchambers), (1) Changing ServerName from SAWEBD01 to sawebd01 did not make any difference. (2) http://localhost:8080/manager/list

Re: running servlet manually

2002-01-24 Thread Ashish kulkarni
i think, if you have that servlet in the package then http://localost:8080/appdir/servlet/subdir.HelloWorldExample will work, or else i think http://localost:8080/appdir/servlet/subdir/HelloWorldExample may also work i dont no for sure about the second case, but the package thing works for sure

Re: Problem with JDBC-Connection to DB2 from Tomcat4.0.1

2002-01-25 Thread Ashish kulkarni
hi, COpy the jar file of the JDBC driver, into lib directory of your server or web-inf lib directory of your application, then restart it, tomcat does not look into the system classpath as far as i know, i always copy the jar files in the lib directory of tomcat and all the classes need into the

Servlet And Connection pooling and How To

2002-08-29 Thread Ashish Kulkarni
Hi, I am using Connection pooling and storing the pool in servlet context and I have question about getting the connection from servlet context in a all servlets, I want to code a single class where the input paramter will be servlet context and session and this class will return me the

Re: need to restart tomcat when beans are updated (tomcat4.0.4)

2002-09-03 Thread Ashish Kulkarni
in your server.xml file Context path=/mapsstruts reloadable=true .. make reloadable = true, for your context Ashish --- Raj [EMAIL PROTECTED] wrote: Have just completed upgrade from tomcat-3.2.1 to tomcat-4.0.4. this works good, but has a problem when a java beans is updated - the tomcat

Tomcat and reload of application not kiling all processes

2002-09-09 Thread Ashish Kulkarni
Hi, I am using tomcat4.0.4 on windows 2000, i am developing a webapplication fro AS400 database (DB2) when i start tomcat, it creates 4 connections on AS400 for connection pooling. but when i relaod the application from tomcat manager, or when i modify a servlet( it reloads the application since

one servlet question

2002-09-10 Thread Ashish Kulkarni
Hi, I have to write a servlet which will be a base servlet for all servlets in my applications. I have a class called GetConnection which gets the connection from servletcontext depending upon some parameters in the session, so i have go send servletcontext, and session to this class. now the

Servlets not working with tomcat 4.1.12(4.0.4 error)

2002-10-09 Thread Ashish Kulkarni
Hi, I have an issue with deploying servlets in Tomcat 4.1.12. It doesn't seem to pick up even though they have been defined in web.xml. I get 4.0.4 error These servlets work fine with Tomcat 4.0.4, I get this log when i start tomcat 2002-10-09 19:37:41,872 DEBUG [main] digester.Digester

Servlets not working with tomcat 4.1.12(4.0.4 error)

2002-10-10 Thread Ashish Kulkarni
Hi, I was just trying to migrate to tomcat4.1.12 from tomcat 4.0.4, so created a web application in server.xml of tomcat4.1.12, pointing towards the extiting folder(where in have my web-inf) file, the problem i am facing is all the jsps work but none of the servlets work, i get 4.0.4 error,

Re: Servlets not working with tomcat 4.1.12(4.0.4 error)

2002-10-11 Thread Ashish Kulkarni
servlets in your web.xml. Raj Saini default sonam singh wrote: specify u'r server.xml and and web.xml so that i can helpu out regards Sonam Singh --- Ashish Kulkarni [EMAIL PROTECTED] wrote: Hi, I was just trying to migrate to tomcat4.1.12 from tomcat 4.0.4, so created

Re: Servlets not working with tomcat 4.1.12(4.0.4 error)

2002-10-11 Thread Ashish Kulkarni
Sonam Singh --- Ashish Kulkarni [EMAIL PROTECTED] wrote: Hi, I was just trying to migrate to tomcat4.1.12 from tomcat 4.0.4, so created a web application in server.xml of tomcat4.1.12, pointing towards the extiting folder(where in have my web-inf) file, the problem i am facing is all

Re: unable to start tomcat

2002-10-13 Thread Ashish Kulkarni
Hi are u running any other process which is using port 8081 on your machine, to check this go to command prompt, and type command netstat -an and see which are the ports used in your machine( i assume u are on windows platform) or else find the relevant command on unix, or u can change the port

Re: Tomcat 4.0.4 won't reload modified classes

2002-10-13 Thread Ashish Kulkarni
Hi, I also had the same problem but on windows 2000, but next day when i restarted my machine it was working again... dont know why it happened Ashish --- Guillermo Payet [EMAIL PROTECTED] wrote: Hello, I have a server running Tomcat 4.0.4, with a multitude of Web applications on top.

Pre compile of jsp

2002-10-14 Thread Ashish Kulkarni
Hi, when ever i modify a jsp, it is compiled first time when it is accessed from web, and this process takes a long time, if i have to precompile this jsp to use in tomcat4.0.4 so even the first time access will be fast how can i do it, can any one provide any info on doing this Ashish

RE: Pre compile of jsp

2002-10-14 Thread Ashish Kulkarni
Hi, thanx for the answer, is there any documentation present any where which will explain how to use it??? Ashish --- Sexton, George [EMAIL PROTECTED] wrote: Look at the jspc.sh script in the bin directory. -Original Message- From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]] Sent

pager taglib not working after migrating to tomcat 4.1.12 from tomcat 4.0.4

2003-02-12 Thread Ashish Kulkarni
Hi, I have been using the pager tag lib from http://jsptags.com/tags/navigation/pager/index.jsp for controling the number of records to be displayed on each JSP, It was working fine on tomcat4.0.4, but since i migrated to tomcat4.1.12, it is not working I get 10 records on first page, but nothing

is it possible to use setAttribute for request in jsp??

2003-02-20 Thread Ashish Kulkarni
Hi, I have to do some thing like this, From my jsp i want to pass some object to servlet, but do not want to use session for it so what i am trying is , in my jsp i have form action=/testapp/servlet/TestServlet method=post % request.setAttribute(myObject, myObject); % input type=submit

RE: is it possible to use setAttribute for request in jsp??

2003-02-20 Thread Ashish Kulkarni
PROTECTED] wrote: you are misusing the request.setAttribute, use session.setAttribute for what you want to achieve. request.setAttribute is only used to store data for the lifespan of the request. Filip -Original Message- From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]] Sent

secure jsp using web.xml in tomcat 5.0.19

2004-11-17 Thread Ashish Kulkarni
Hi I want to secure all my jsp in my web application, I added following security constraint in my web.xml file, but some how seems it does not work security-constraint web-resource-collection web-resource-nameBlock Access to jsp files/web-resource-name descriptionThis is to block access to all

Re: secure jsp using web.xml in tomcat 5.0.19

2004-11-18 Thread Ashish Kulkarni
Hi I am using struts framework and want to make sure that sure access jsp only from action classes and not directly Ashish --- Larry Meadors [EMAIL PROTECTED] wrote: You told tomcat to only allow post and get access to your jsp files. Uhh, that is about all you can possibly allow. What

basic or form based authentication not working

2005-01-20 Thread Ashish Kulkarni
Hi i am using tomcat5.0.28 and trying to setup basic or form based authentication, and it is just not working, following is the information in web.xml security-constraint web-resource-collection web-resource-namesecure download maps software /web-resource-name

Re: basic or form based authentication not working

2005-01-20 Thread Ashish Kulkarni
Hi I was able to get it working, in context i had not set privileged=true, i added this line and it works fine now Ashish --- Omar Adobati [EMAIL PROTECTED] wrote: can you show haow you set up the context for this webapp? On Thu, 20 Jan 2005 11:49:02 -0800 (PST), Ashish Kulkarni [EMAIL

problem with Basic authentication -- no window to login

2005-01-20 Thread Ashish Kulkarni
Hi i was able to make my application work with form authentication, then i changed the login-config to make it basic authentication like below, but i am not getting any login window, it just gives me no access 403 error why login-config auth-methodBASIC/auth-method realm-nameBasic

RE: problem with Basic authentication -- no window to login

2005-01-20 Thread Ashish Kulkarni
I have tried internet explorer and mozilla Ashish --- Aris Javier [EMAIL PROTECTED] wrote: what browser ar you using? -Original Message- From: Ashish Kulkarni [mailto:[EMAIL PROTECTED] Sent: Friday, January 21, 2005 6:24 AM To: tomcat-user@jakarta.apache.org Subject: problem

Re: problem with Basic authentication -- no window to login

2005-01-21 Thread Ashish Kulkarni
! =) -Original Message- From: Ashish Kulkarni [mailto:[EMAIL PROTECTED] Sent: Friday, January 21, 2005 11:21 AM To: Tomcat Users List Subject: RE: problem with Basic authentication -- no window to login I have tried internet explorer and mozilla Ashish --- Aris Javier [EMAIL

Re: reload log4j.properties on-the-fly?..servlet approach

2005-01-23 Thread Ashish Kulkarni
Hi I was thinking about a servlet approach, a initialization servlet which will load a properties file from its init method, and setup the initial debug level suppose ERROR, this servlet also has a get method which will read the input from a html page which can be DEBUG and then setup the log4j

Re: BASIC Authentication

2005-01-24 Thread Ashish Kulkarni
Hi May be try putting the following in web.xml file just before taglib ( i am not sure but works with 2.2) error-page error-code403/error-code location/pages/error/noaccess.jsp/location /error-page error-page

startup parameters in tomcat on windows 2000 server

2005-08-18 Thread Ashish Kulkarni
Hi how do i pass startup parameters when starting tomcat as service in windows 2000 server, what i have to pass is as below -Dsun.io.useCanonCaches=false -Djava.security.auth.login.config=%CATALINA_HOME%\conf\login.conf When i add this to catalina.bat file and start as

passing additional java parameters to tomcat

2005-08-19 Thread Ashish Kulkarni
Hi if i am running tomcat as service on windows 2000 server, and if i need to pass additional java parameters like -Dsun.io.useCanonCaches=false, what is the best way to do, i have already these parameters in catalina.bat file, but it seems that when tomcat runs as a service it does not use that