modify web deployment descriptor at runtime

2004-10-25 Thread Saravanan Veerappan
Is there a way to modify web deployment descriptor (web.xml) at
runtime using MBeans? I would like to add security roles/ constraints
at runtime by providing a admin interface, so admin can add /remove
users described in web.xml. Appreciate your replies.

Thanks

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How Servlets work?

2004-02-16 Thread saravanan
Hi all,

 may be not the right place to ask this question. Hope somebody is kind 
enough to clarify this doubt of mine.

i understand, in  a servlet, if i need any code to be thread safe, then 
i shud put that code inside a synhronized block
or declared the entire method as synchronized. if my understanding is 
right, only instance of our serlvet class is being
created. in that case how the webserver handles more than one request at 
the same time. i mean, is some queuing structure
being followed, (i am tempted to believe it is not multithreaded)?

Could anybody clarify this doubt of mine or atleast point out some ref. 
material for this.

Thanks
R.Saravanan
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: How Servlets work?

2004-02-16 Thread saravanan
Thanks a lot Harry. Thank you so much.

Saravanan
Harry Mantheakis wrote:
Hello

 

how the webserver handles more than one
request at the same time.
   

The answer is: by invoking the servlet's service method in a new thread for
each new request to that servlet.
Think of any Java object, instantiated once - a public method in that object
can be called any number of times, concurrently. Each invocation will be
processed in a new thread.
Synchronisation is an issue only when the method in question uses references
to other objects. If the method only works with local variables, there is no
synchronisation problem!
So, in a nutshell: with servlets, make sure the service method only uses
local variables, including, of course, those two most useful parameters, the
request and the response objects.
Regards

Harry Mantheakis
London, UK
 

Hi all,

may be not the right place to ask this question. Hope somebody is kind
enough to clarify this doubt of mine.
i understand, in  a servlet, if i need any code to be thread safe, then
i shud put that code inside a synhronized block
or declared the entire method as synchronized. if my understanding is
right, only instance of our serlvet class is being
created. in that case how the webserver handles more than one request at
the same time. i mean, is some queuing structure
being followed, (i am tempted to believe it is not multithreaded)?
Could anybody clarify this doubt of mine or atleast point out some ref.
material for this.
Thanks
R.Saravanan
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


[Tomcat Admin user name password]

2003-12-18 Thread saravanan
Hi all,

  i am a newbie for Tomcat. i just installed Tomcat/5.0.16 on my RH 9.0 
box and its running. But I cant login to the admin tool. Whats the admin 
user name  pwd.  How do i konw it???. any help wud be greatly appreciated.

Thanks in advance.
TR.Saravanan


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [Tomcat Admin user name password]

2003-12-18 Thread saravanan
Hi Karam,
  Thanks for the reply. I tried it.  I also added the following lines.
role rolename=manager/
role rolename=admin/
Now if try login with uname as admin and pwd as pass, i get the
error message inavalid login. correct me if i am wrong. Thanks for your 
support.

Saravanan
L.Karam wrote:
 in TOMCAT_HOME/conf/tomcat-users.xml you need add a new tag

 user username=admin password=pass roles=manager,admin/

 - Original Message - 
   From: saravanan 
   To: [EMAIL PROTECTED] 
   Sent: Thursday, December 18, 2003 2:13 PM
   Subject: [Tomcat Admin user name  password]

   Hi all,

  i am a newbie for Tomcat. i just installed Tomcat/5.0.16 on my RH 9.0 
   box and its running. But I cant login to the admin tool. Whats the admin 
   user name  pwd.  How do i konw it???. any help wud be greatly appreciated.

   Thanks in advance.
   TR.Saravanan


   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [Tomcat Admin user name password]

2003-12-18 Thread saravanan
Hi Karam,

 Thank you so much. Yeah It works. :-)

Saravanan
L.Karam wrote:
 try reboot the tomcat..
   - Original Message - 
   From: saravanan 
   To: Tomcat Users List 
   Sent: Thursday, December 18, 2003 2:27 PM
   Subject: Re: [Tomcat Admin user name  password]

   Hi Karam,
  Thanks for the reply. I tried it.  I also added the following lines.
   role rolename=manager/
role rolename=admin/
   Now if try login with uname as admin and pwd as pass, i get the
   error message inavalid login. correct me if i am wrong. Thanks for your 
   support.

   Saravanan
   L.Karam wrote:
 in TOMCAT_HOME/conf/tomcat-users.xml you need add a new tag
   
 user username=admin password=pass roles=manager,admin/
   
 - Original Message - 
   From: saravanan 
   To: [EMAIL PROTECTED] 
   Sent: Thursday, December 18, 2003 2:13 PM
   Subject: [Tomcat Admin user name  password]
   
   
   Hi all,
   
  i am a newbie for Tomcat. i just installed Tomcat/5.0.16 on my RH 9.0 
   box and its running. But I cant login to the admin tool. Whats the admin 
   user name  pwd.  How do i konw it???. any help wud be greatly appreciated.
   
   Thanks in advance.
   TR.Saravanan
   
   
   
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
   
 
   



   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [Tomcat Admin user name password]

2003-12-18 Thread saravanan
Hi Antony,

Thanks for the reply. yeah there is a file called admin.xml. but i dont 
know what is it meant for.
i just restarted tomcat. it works.

thanks
Saravanan
Antony Paul wrote:
check for any file named admin-users.xml. I think Tomcat 5 uses this file. I
am not sure.
Antony Paul.
- Original Message -
From: saravanan [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, December 18, 2003 9:57 PM
Subject: Re: [Tomcat Admin user name  password]
 

Hi Karam,
  Thanks for the reply. I tried it.  I also added the following lines.
role rolename=manager/
role rolename=admin/
Now if try login with uname as admin and pwd as pass, i get the
error message inavalid login. correct me if i am wrong. Thanks for your
support.
Saravanan
L.Karam wrote:
   

in TOMCAT_HOME/conf/tomcat-users.xml you need add a new tag

user username=admin password=pass roles=manager,admin/

- Original Message -
  From: saravanan
  To: [EMAIL PROTECTED]
  Sent: Thursday, December 18, 2003 2:13 PM
  Subject: [Tomcat Admin user name  password]
  Hi all,

 i am a newbie for Tomcat. i just installed Tomcat/5.0.16 on my RH
 

9.0
 

  box and its running. But I cant login to the admin tool. Whats the
 

admin
 

  user name  pwd.  How do i konw it???. any help wud be greatly
 

appreciated.
 

  Thanks in advance.
  TR.Saravanan


  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]


 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Newbie questions

2002-08-16 Thread Saravanan Bellan

Just Right click on the link and do a 'Save as' and save it on your hard
disk. You may then open it in your favourite text editor.

 -Original Message-
 From: Jim Marnell [mailto:[EMAIL PROTECTED]]
 Sent: Friday, August 16, 2002 5:58 AM
 To: Tomcat Users List
 Subject: RE: Newbie questions
 
 
 
 Saravanan,
 
 Unfortunately the first link you sent me (web.xml.txt) cannot 
 open with my browser.
 
 Can you cut paste and send me the relevant parts on how to 
 code the web.xml file for my app?
 
 Thanks again!
 
 J
 
  
  Saravanan Bellan 
 wrote:http://jakarta.apache.org/tomcat/tomcat-4.0-doc/appdev/w
 eb.xml.txt
 
 Also look at
 http://jakarta.apache.org/tomcat/tomcat-4.0-doc/appdev/index.h
 tml for other
 information.
 
 
  -Original Message-
  From: Jim Marnell [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, August 15, 2002 12:23 PM
  To: Tomcat Users List
  Subject: RE: Newbie questions
  
  
  
  Can you show a complete example please?
  Thanks
  /Jim
  Saravanan Bellan wrote:Servlets should have their mapping 
  defined in WEB-INF/web.xml
  
  
   -Original Message-
   From: Jim Marnell [mailto:[EMAIL PROTECTED]]
   Sent: Thursday, August 15, 2002 12:12 PM
   To: Tomcat Users List
   Subject: RE: Newbie questions
   
   
   
   I had not added context entry's to server.xml. I added the 
   following and it still does not work:
   
debug=0 privileged=true/
   
debug=0 privileged=true/
   
   
   The examples entry looked complicated so I tried to emulate a 
   simple example (manager). Should that have worked?
   Also, I moved my servlet into the examples directory - did 
   not work - 404 not available. Restarted for both tries.
   /Jim
   Turner, John wrote:
   
   Did you add a Context entry in server.xml for jimbo? 
   Basically, wherever
   you see entries in server.xml for examples, you need to do 
   the same thing
   for jimbo, then restart tomcat
   
   You can also put your servlet into the examples directory, 
   with the example
   servlets, and see if you can call it via
   http://localhost:8080/examples/Form1
   
   John Turner
   [EMAIL PROTECTED]
   
   
   -Original Message-
   From: Jim Marnell [mailto:[EMAIL PROTECTED]]
   Sent: Thursday, August 15, 2002 2:31 PM
   To: [EMAIL PROTECTED]
   Subject: Newbie questions
   
   
   
   I'm having problems running a servlet. I've installed tomcat 
   4.0.4, apache
   2  jdk 1.4 on redhat 7.2.
   
   I put html file with the following into apache's htdocs directory
   
   
   
   
   I then created a directory in $tomcat_home/webapps called 
   jimbo. Within
   directory jimbo I created WEB-INF/classes and moved my 
   compiled servlet into
   it. I restarted tomcat and get a 404 message stating that 
  Form1 is not
   available. Please let me know what is wrong.
   
   Also, do I need any special apache modules for tomcat?
   
   Thanks in advance.
   
   /J
   
   
   
   -
   Do You Yahoo!?
   HotJobs, a Yahoo! service - Search Thousands of New Jobs
   
   --
   To unsubscribe, e-mail: 
   For additional commands, e-mail: 
   
   
   
   -
   Do You Yahoo!?
   HotJobs, a Yahoo! service - Search Thousands of New Jobs
   
  
  --
  To unsubscribe, e-mail: 
  For additional commands, e-mail: 
  
  
  
  -
  Do You Yahoo!?
  HotJobs, a Yahoo! service - Search Thousands of New Jobs
  
 
 --
 To unsubscribe, e-mail: 
 For additional commands, e-mail: 
 
 
 
 -
 Do You Yahoo!?
 HotJobs, a Yahoo! service - Search Thousands of New Jobs
 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Calling a servlet from a jsps page

2002-08-16 Thread Saravanan Bellan

 jsp: include page=/rajapp/mypkg.CurrentTime.class flush=true /

My guesses,

Remove .class
try page=servlet/mypkg.CurrentTime  or
 page=/rajapp/servlet/mypkg.CurrentTime


 -Original Message-
 From: Raju Lokhande [mailto:[EMAIL PROTECTED]]
 Sent: Friday, August 16, 2002 12:53 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Calling a servlet from a jsps page
 
 
 Yes, I can run my servlet in IE as
 http://my-local-host-name/rajapp/servlet/mypkg.CurrentTime 
 and the browser shows the expected output which is current time.
 Raju Lokhande
 
 
  [EMAIL PROTECTED] 08/16/02 02:55PM 
 
 Oops! I missed the word classes. Sorry about that. But 
 heck, you got it
 right.
 Can you run your servlet as
 http://my-local-host-name/rajapp/servlet/mypkg.CurrentTime 
 What error do you get on the browser? Check you logs file for
 exceptions/errors.
 
 RS
 
 
 
   
  
   Raju Lokhande 
  
   [EMAIL PROTECTED]To:   
 [EMAIL PROTECTED]  
   lth.net cc:
  
Subject:  Re: 
 Calling a servlet from a jsps page
   
08/16/02 01:43 PM  
   
   Please respond to   
  
   Tomcat Users   
  
   List   
  
   
  
   
  
 
 
 
 
 My class is under c:
 \jakarta-tomcat\4.0.3\webapps\rajapp\WEB-INF\classes\mypkg
 I tried both of your suggestions
 jsp:include page=/CurrentTime flush=true /
 or
 jsp:include page=/servlet/mypkg.CurrentTime flush=true /
 Any idea what is happening here?
 Thanks
 Raju Lokhande
 
  [EMAIL PROTECTED] 08/16/02 02:11PM 
 
 Assuming rajapp is your context, your jsp:include / 
 statement will be:
 jsp:include page=/CurrentTime flush=true /
 or
 jsp:include page=/servlet/mypkg.CurrentTime flush=true /
 
 Ofcourse make sure your class is under
 appBaseDirectory/rajapp/WEB-INF/mypkg
 
 RS
 
 
 
 
 
   Raju Lokhande
 
   [EMAIL PROTECTED]To:
 [EMAIL PROTECTED]
   lth.net cc:
 
Subject:  
 Calling a servlet
from a jsps page
   08/16/02 01:05 PM
 
   Please respond to
 
   Tomcat Users
 
   List
 
 
 
 
 
 
 
 Greetings everyone,
  I have a .jsps page as follows:
 ===Begin==
 html
 headtitleTimes!/title/head
 body
 The current time here is:
 jsp: include page=/rajapp/mypkg.CurrentTime.class flush=true /
 P
 /body
 /html
 =End=
 My application web.xml entries are as follows
 ===Begin==
 servlet
 servlet-name CurrentTime /servlet-name
 servlet-class mypkg.CurrentTime /servlet-class
 /servlet
 
 servlet-mapping
 servlet-name CurrentTime /servlet-name
 url-pattern /CurrentTime /url-pattern
 /servlet-mapping
 ==End
 I invoke this page as http://my-local-host-name/rajapp/times.jsps 
 I get no output from the servlet.
 The Servlet class compiled fine. I followed the advice from 
 my searches in
 the archives for this list server.
 Any idea about what is wrong here. I am using jakarta-tomcat-4.0.3 on
 Win2000.
 Thanks in advance
 Raju Lokhande
 
 
 
 
 **
 ***
 This message, together with any attachments, is intended only
 for the use of the individual or entity to which it is addressed. It
 may contain information that is confidential and prohibited from
 disclosure.  If you are not the intended recipient, you are
 hereby notified that any dissemination or copying of this
 message or any attachment is strictly prohibited. If you have
 received this message in error, please notify the original sender
 immediately by telephone or by return e-mail and delete this
 message along with any attachments, from your computer.
 Thank you.
 **
 ***
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 
 
 
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL 

FW: Newbie questions

2002-08-15 Thread Saravanan Bellan



-Original Message-
From: Saravanan Bellan 
Sent: Thursday, August 15, 2002 12:48 PM
To: 'Tomcat Users List'
Subject: RE: Newbie questions


http://jakarta.apache.org/tomcat/tomcat-4.0-doc/appdev/web.xml.txt

Also look at
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/appdev/index.html for other
information.


 -Original Message-
 From: Jim Marnell [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, August 15, 2002 12:23 PM
 To: Tomcat Users List
 Subject: RE: Newbie questions
 
 
 
 Can you show a complete example please?
 Thanks
 /Jim
  Saravanan Bellan wrote:Servlets should have their mapping 
 defined in WEB-INF/web.xml
 
 
  -Original Message-
  From: Jim Marnell [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, August 15, 2002 12:12 PM
  To: Tomcat Users List
  Subject: RE: Newbie questions
  
  
  
  I had not added context entry's to server.xml. I added the 
  following and it still does not work:
  
   debug=0 privileged=true/
  
   debug=0 privileged=true/
  
  
  The examples entry looked complicated so I tried to emulate a 
  simple example (manager). Should that have worked?
  Also, I moved my servlet into the examples directory - did 
  not work - 404 not available. Restarted for both tries.
  /Jim
  Turner, John wrote:
  
  Did you add a Context entry in server.xml for jimbo? 
  Basically, wherever
  you see entries in server.xml for examples, you need to do 
  the same thing
  for jimbo, then restart tomcat
  
  You can also put your servlet into the examples directory, 
  with the example
  servlets, and see if you can call it via
  http://localhost:8080/examples/Form1
  
  John Turner
  [EMAIL PROTECTED]
  
  
  -Original Message-
  From: Jim Marnell [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, August 15, 2002 2:31 PM
  To: [EMAIL PROTECTED]
  Subject: Newbie questions
  
  
  
  I'm having problems running a servlet. I've installed tomcat 
  4.0.4, apache
  2  jdk 1.4 on redhat 7.2.
  
  I put html file with the following into apache's htdocs directory
  
  
  
  
  I then created a directory in $tomcat_home/webapps called 
  jimbo. Within
  directory jimbo I created WEB-INF/classes and moved my 
  compiled servlet into
  it. I restarted tomcat and get a 404 message stating that 
 Form1 is not
  available. Please let me know what is wrong.
  
  Also, do I need any special apache modules for tomcat?
  
  Thanks in advance.
  
  /J
  
  
  
  -
  Do You Yahoo!?
  HotJobs, a Yahoo! service - Search Thousands of New Jobs
  
  --
  To unsubscribe, e-mail: 
  For additional commands, e-mail: 
  
  
  
  -
  Do You Yahoo!?
  HotJobs, a Yahoo! service - Search Thousands of New Jobs
  
 
 --
 To unsubscribe, e-mail: 
 For additional commands, e-mail: 
 
 
 
 -
 Do You Yahoo!?
 HotJobs, a Yahoo! service - Search Thousands of New Jobs
 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Newbie questions

2002-08-15 Thread Saravanan Bellan

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/appdev/web.xml.txt

Also look at
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/appdev/index.html for other
information.


 -Original Message-
 From: Jim Marnell [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, August 15, 2002 12:23 PM
 To: Tomcat Users List
 Subject: RE: Newbie questions
 
 
 
 Can you show a complete example please?
 Thanks
 /Jim
  Saravanan Bellan wrote:Servlets should have their mapping 
 defined in WEB-INF/web.xml
 
 
  -Original Message-
  From: Jim Marnell [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, August 15, 2002 12:12 PM
  To: Tomcat Users List
  Subject: RE: Newbie questions
  
  
  
  I had not added context entry's to server.xml. I added the 
  following and it still does not work:
  
   debug=0 privileged=true/
  
   debug=0 privileged=true/
  
  
  The examples entry looked complicated so I tried to emulate a 
  simple example (manager). Should that have worked?
  Also, I moved my servlet into the examples directory - did 
  not work - 404 not available. Restarted for both tries.
  /Jim
  Turner, John wrote:
  
  Did you add a Context entry in server.xml for jimbo? 
  Basically, wherever
  you see entries in server.xml for examples, you need to do 
  the same thing
  for jimbo, then restart tomcat
  
  You can also put your servlet into the examples directory, 
  with the example
  servlets, and see if you can call it via
  http://localhost:8080/examples/Form1
  
  John Turner
  [EMAIL PROTECTED]
  
  
  -Original Message-
  From: Jim Marnell [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, August 15, 2002 2:31 PM
  To: [EMAIL PROTECTED]
  Subject: Newbie questions
  
  
  
  I'm having problems running a servlet. I've installed tomcat 
  4.0.4, apache
  2  jdk 1.4 on redhat 7.2.
  
  I put html file with the following into apache's htdocs directory
  
  
  
  
  I then created a directory in $tomcat_home/webapps called 
  jimbo. Within
  directory jimbo I created WEB-INF/classes and moved my 
  compiled servlet into
  it. I restarted tomcat and get a 404 message stating that 
 Form1 is not
  available. Please let me know what is wrong.
  
  Also, do I need any special apache modules for tomcat?
  
  Thanks in advance.
  
  /J
  
  
  
  -
  Do You Yahoo!?
  HotJobs, a Yahoo! service - Search Thousands of New Jobs
  
  --
  To unsubscribe, e-mail: 
  For additional commands, e-mail: 
  
  
  
  -
  Do You Yahoo!?
  HotJobs, a Yahoo! service - Search Thousands of New Jobs
  
 
 --
 To unsubscribe, e-mail: 
 For additional commands, e-mail: 
 
 
 
 -
 Do You Yahoo!?
 HotJobs, a Yahoo! service - Search Thousands of New Jobs
 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Trying to work with JDBC OCI

2002-08-14 Thread Saravanan Bellan



-Original Message-
From: Saravanan Bellan 
Sent: Wednesday, August 14, 2002 12:16 PM
To: 'Tomcat Users List'
Subject: RE: Trying to work with JDBC OCI


It is most definitely a native library location problem not a CLASSPATH
problem.

 
 2) I have put LD_LIBRARY_PATH=$ORACLE_HOME/lib. 
 
Where have you set this variable. It should be visible to the run.sh script.
Also, make sure that $ORACLE_HOME is also set.

 -Original Message-
 From: Nagpal, Vikas [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, August 14, 2002 11:58 AM
 To: '[EMAIL PROTECTED]'
 Cc: '[EMAIL PROTECTED]'
 Subject: Trying to work with JDBC OCI
 
 
 Hi Everybody, 
 
 I have been trying to work with JDBC OCI Driver.While trying 
 to run my code 
 i get the following error message: 
 1)javax.servlet.ServletException:no ocijdbc9 in java.library.path . 
 
 My jsp code is as follows: 
 
 1)I am importing the following packages 
 import=java.sql.*, javax.sql.*, javax.servlet.*, 
 javax.servlet.http.*, 
 java.util.*, oracle.jdbc.*, java.net.* % 
 
 2)My connecion code is as follows: 
 
 Class.forName(oracle.jdbc.driver.OracleDriver); 
   DriverManager.registerDriver(new oracle.jdbc.OracleDriver()); 
   Connection myConn = 
 DriverManager.getConnection(jdbc:oracle:oci:@bioinfo.utmb.edu
 :1521:PLSExtPr
 
 oc); 
  where 
 database=host=bioinfo.utmb.edu:port=1521:sid=PLSExtProc 
 
   Statement stmt = myConn.createStatement(); 
  ResultSet myResultSet = stmt.executeQuery(select * from 
 table where 
 field='117_at'); 
 
   if (myResultSet != null) 
 { 
 while (myResultSet.next()) { 
 
 To Resolve this error i am trying out the following things: 
 
 1)I have added classes12.jar, nls-charset12.jar, 
 ocijdbc.0.0.jar to my 
 $TOMCAT_HOME/common/lib and configured it to my CLASSPATH. 
 
 2) I have put LD_LIBRARY_PATH=$ORACLE_HOME/lib. 
 
 3) i have imported package java.net.* into my code. 
 
 
 
 Can anyone help. 
 
 Thanks, 
 With regards, 
 Vikas nagpal. 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Setting up web pages with tomcat

2002-08-14 Thread Saravanan Bellan

 Tomcat_Home/webapps/yourweb/index.html didn't work, but I used 

Probably you did not restart tomcat after creating yourweb.


 -Original Message-
 From: Gavin Alexander [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, August 14, 2002 4:23 PM
 To: Tomcat Users List
 Subject: Re: Setting up web pages with tomcat
 
 
 I'm sorted:
 
 Tomcat_Home/webapps/yourweb/index.html didn't work, but I used 
 Tomcat_Home/webapps/ROOT/yourweb/index.html and this worked fine with 
 http://localhost/yourweb/index.html (I have localhost set to port 80)
 
 Thanks,
 
 Gavin
 
 
 At 00:13 15/08/2002, you wrote:
 Hi,
 
 it's very simple, you need to create a context in webapps 
 directory under
 tomcat
 
 Tomcat_Home/webapps/yourweb/index.html or index.jsp
 
 then you should go to http://localhost:8080/yourweb/index.html
 
 this is what you need to do
 
 Alex
 
 
 
 
 
 
 Gavin Alexander [EMAIL PROTECTED]
 14/08/2002 06:10 p.m.
 Please respond to Tomcat Users List
 
 
  To: Tomcat Users List [EMAIL PROTECTED]
  cc:
  Subject:Setting up web pages with tomcat
 
 
 
 Hi,
 
 Simple Question:
 I'm just starting out with Tomcat 4.0, using it as a standalone on
 Win2000.
 I cannot find any reference to which directory my own HTML 
 pages should be
 
 located in and what URLs to use to reach them.
 Could somebody advise me?
 
 Gavin
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Trying to work with JDBC OCI

2002-08-14 Thread Saravanan Bellan

It is most definitely a native library location problem not a CLASSPATH
problem.

 
 2) I have put LD_LIBRARY_PATH=$ORACLE_HOME/lib. 
 
Where have you set this variable. It should be visible to the run.sh script.
Also, make sure that $ORACLE_HOME is also set.

 -Original Message-
 From: Nagpal, Vikas [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, August 14, 2002 11:58 AM
 To: '[EMAIL PROTECTED]'
 Cc: '[EMAIL PROTECTED]'
 Subject: Trying to work with JDBC OCI
 
 
 Hi Everybody, 
 
 I have been trying to work with JDBC OCI Driver.While trying 
 to run my code 
 i get the following error message: 
 1)javax.servlet.ServletException:no ocijdbc9 in java.library.path . 
 
 My jsp code is as follows: 
 
 1)I am importing the following packages 
 import=java.sql.*, javax.sql.*, javax.servlet.*, 
 javax.servlet.http.*, 
 java.util.*, oracle.jdbc.*, java.net.* % 
 
 2)My connecion code is as follows: 
 
 Class.forName(oracle.jdbc.driver.OracleDriver); 
   DriverManager.registerDriver(new oracle.jdbc.OracleDriver()); 
   Connection myConn = 
 DriverManager.getConnection(jdbc:oracle:oci:@bioinfo.utmb.edu
 :1521:PLSExtPr
 
 oc); 
  where 
 database=host=bioinfo.utmb.edu:port=1521:sid=PLSExtProc 
 
   Statement stmt = myConn.createStatement(); 
  ResultSet myResultSet = stmt.executeQuery(select * from 
 table where 
 field='117_at'); 
 
   if (myResultSet != null) 
 { 
 while (myResultSet.next()) { 
 
 To Resolve this error i am trying out the following things: 
 
 1)I have added classes12.jar, nls-charset12.jar, 
 ocijdbc.0.0.jar to my 
 $TOMCAT_HOME/common/lib and configured it to my CLASSPATH. 
 
 2) I have put LD_LIBRARY_PATH=$ORACLE_HOME/lib. 
 
 3) i have imported package java.net.* into my code. 
 
 
 
 Can anyone help. 
 
 Thanks, 
 With regards, 
 Vikas nagpal. 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: localhost vs IP address in the URL

2002-07-26 Thread Saravanan Bellan

Thanks to whoever has been following this.

dwh, your pet theory about maximum packet size is right.

This explains it.

http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q294769;



 -Original Message-
 From: Saravanan Bellan [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, July 25, 2002 2:46 PM
 To: 'Tomcat Users List'
 Subject: RE: localhost vs IP address in the URL
 
 
  
  
  I'm not a networking guru, (and this is sort of OT for 
  Tomcat) but I'm not
  convinced by M.Schwartz's response that this is due solely 
 to DNS name
  resolution.  I don't think that would account for such a big 
  difference in
  time--once the name was resolved to the IP address, behavior 
  should be the same,
  no?
  
  Saravanan, you say there's a 20x difference but what's the 
  magnitude?  Are we
  talking 10 ms vs. 200 ms. or 1 second vs 20 seconds?  By IP 
  address do you mean
  127.0.0.1 or the IP address of the computer?
 
 If it takes about 10 seconds when using the IP address/hostname,
 then it takes more than 5 minutes when using localhost/127.0.0.1
 
 By IP address I mean the Network IP address of the machine, 
 not 127.0.0.1
 
  
  My pet theory is that the TCP/IP stack is recognizing the IP 
  address as being of
  the local box and is shortcutting packets from transmit 
  queues to receive
  queues in memory, without actually getting the NIC involved 
  or anything.  Or
  maybe the NIC is doing this.
  
  Many years ago when I did hardware testing, we first ran into 
  TCP/IP stacks that
  had this optimization.
  
  The other thought is that for some reason different maximum 
  packet sizes are
  being used with these different connections?
  
  Of course, this is just a theory.  Someone with a little more 
  knowledge might be
  able to speak more authoritatively grin.
  
  dwh
  
  
  Saravanan Bellan wrote:
  
   Windows 2000
   Tomcat 3.2.3
  
   If I try to upload a file using the regular HTML/HTTP, 
  there is a 20x
   difference in performance
   between using localhost vs the IP address in the Web Server 
  URL. Ofcourse
   I'm running the browser
   on the same machine where tomcat is installed. Using 
  localhost is 20 times
   slower than using IP address.
  
   Doesnt make a difference if I use Apache/AJP/Tomcat or 
  Direct to Tomcat web
   server.
  
   Can somebody throw some light on this.
  
   Thanks,
  
   --
   To unsubscribe, e-mail:   
  mailto:[EMAIL PROTECTED]
   For additional commands, e-mail: 
  mailto:[EMAIL PROTECTED]
  
  
  --
  To unsubscribe, e-mail:   
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail: 
  mailto:[EMAIL PROTECTED]
  
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: localhost vs IP address in the URL

2002-07-25 Thread Saravanan Bellan

 
 
 I'm not a networking guru, (and this is sort of OT for 
 Tomcat) but I'm not
 convinced by M.Schwartz's response that this is due solely to DNS name
 resolution.  I don't think that would account for such a big 
 difference in
 time--once the name was resolved to the IP address, behavior 
 should be the same,
 no?
 
 Saravanan, you say there's a 20x difference but what's the 
 magnitude?  Are we
 talking 10 ms vs. 200 ms. or 1 second vs 20 seconds?  By IP 
 address do you mean
 127.0.0.1 or the IP address of the computer?

If it takes about 10 seconds when using the IP address/hostname,
then it takes more than 5 minutes when using localhost/127.0.0.1

By IP address I mean the Network IP address of the machine, not 127.0.0.1

 
 My pet theory is that the TCP/IP stack is recognizing the IP 
 address as being of
 the local box and is shortcutting packets from transmit 
 queues to receive
 queues in memory, without actually getting the NIC involved 
 or anything.  Or
 maybe the NIC is doing this.
 
 Many years ago when I did hardware testing, we first ran into 
 TCP/IP stacks that
 had this optimization.
 
 The other thought is that for some reason different maximum 
 packet sizes are
 being used with these different connections?
 
 Of course, this is just a theory.  Someone with a little more 
 knowledge might be
 able to speak more authoritatively grin.
 
 dwh
 
 
 Saravanan Bellan wrote:
 
  Windows 2000
  Tomcat 3.2.3
 
  If I try to upload a file using the regular HTML/HTTP, 
 there is a 20x
  difference in performance
  between using localhost vs the IP address in the Web Server 
 URL. Ofcourse
  I'm running the browser
  on the same machine where tomcat is installed. Using 
 localhost is 20 times
  slower than using IP address.
 
  Doesnt make a difference if I use Apache/AJP/Tomcat or 
 Direct to Tomcat web
  server.
 
  Can somebody throw some light on this.
 
  Thanks,
 
  --
  To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




localhost vs IP address in the URL

2002-07-22 Thread Saravanan Bellan

Sorry, if this is a duplicate.

 Windows 2000
 Tomcat 3.2.3
 
 If I try to upload a file using the regular HTML/HTTP, there is a 20x
 difference in performance 
 between using localhost vs the IP address in the Web Server URL. Ofcourse
 I'm running the browser 
 on the same machine where tomcat is installed. Using localhost is 20 times
 slower than using IP address.
 
 Doesnt make a difference if I use Apache/AJP/Tomcat or Direct to Tomcat
 web server. 
 
 Can somebody throw some light on this. 
 
 Thanks,
 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




localhost vs IP address in the URL

2002-07-22 Thread Saravanan Bellan

Windows 2000
Tomcat 3.2.3

If I try to upload a file using the regular HTML/HTTP, there is a 20x
difference in performance 
between using localhost vs the IP address in the Web Server URL. Ofcourse
I'm running the browser 
on the same machine where tomcat is installed. Using localhost is 20 times
slower than using IP address.

Doesnt make a difference if I use Apache/AJP/Tomcat or Direct to Tomcat web
server.

Can somebody throw some light on this.


Thanks,


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]