RE: replacing ROOT

2005-03-23 Thread Rajesh Bagade
Hello,

In server.xml just comment original root context entry, and write your new
context.
Eg.-
Original Entry -
!--Context path= docBase=webapps/ROOT debug=0
reloadable=true 
/Context--
New Entry -
Context path=/ docBase=physical path for source files debug=0
reloadable=true 
/Context

-- Rajesh Bagade

-Original Message-
From: Andreas Andersson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 23, 2005 3:31 PM
To: tomcat-user@jakarta.apache.org
Subject: replacing ROOT

Hi!

I'm probably just stupid but I fail to replace the ROOT-context with my
own application.

I've tried to put path=/ and path= but nothing of those override the
default ROOT-context.

I've also seen in server.xml that the part that would define ROOT is
commented out.

This is tomcat 4.1.31.

Any ideas?
--
Andreas Andersson
IT Dept.
Travelstart Nordic
[EMAIL PROTECTED]
http://www.travelstart.se

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


--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.7.4 - Release Date: 3/18/2005

--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.7.4 - Release Date: 3/18/2005


--
iota technologies limited, pune, india


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



RE: replacing ROOT

2005-03-23 Thread Rajesh Bagade
Comment for context should start from same line where context line starts.
It should be as follows
!-- Context path= docBase=ROOT debug=0/ --

--Rajesh Bagade

-Original Message-
From: Andreas Andersson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 23, 2005 5:33 PM
To: Tomcat Users List
Subject: Re: replacing ROOT

Rajesh Bagade wrote:

 In server.xml just comment original root context entry, and write your new
 context.

The weird think is that that context is already commented and has been
so since I installed tomcat. It looks like this.

 !-- Tomcat Root Context --
 !--
   Context path= docBase=ROOT debug=0/
 --

When are the xml-files from /webapps read?


--
Andreas Andersson
IT Dept.
Travelstart Nordic
[EMAIL PROTECTED]
http://www.travelstart.se

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


--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.7.4 - Release Date: 3/18/2005

--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.7.4 - Release Date: 3/18/2005


--
iota technologies limited, pune, india


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



Tomcat Log for Web site Stats view

2005-01-31 Thread Rajesh
Hai all
I am using Tomcat5 i have 3 webapps.
I know tomcat stores all its access logs of each site in logs folder .
i want to display a WebSite Stats for thest 3 sites individuallin in 
there site ..

Can anybody tell me how to do this ??
its very urgent please help me
if any free tool is available it will be soo helpfull
thank you
Rajesh
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Please help me

2004-12-13 Thread Rajesh
Hai all,
i have a doubt please help me.
in my tomcat server, am developing a online shopping site.
the site is live,
i periodically upload updated pages, when uploading i donot want to down 
the server,

i use a way that creating 2 webapps, one will run, i upload the updated 
pages to webapp 2 afteruploading i go to webapp1 and point it to webapp2 
when i need to upload second time ill upload to webapp 1 and i will make 
point from webapp2 to webapp 1 .

is there any way to do this affectively ??
Please reply
Rajesh
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Please help me

2004-12-13 Thread Rajesh
i tryed but sometimes it gives error when i restart(restarting webapp) 
it works good

or is it possible to display a page for any request to the server or a 
perticular webapp that

site is under maintanance please visit in few minutes
is it possible?
Rajesh
VTR Ravi Kumar wrote:
I dont think u would have to shut down the server to upload files.
The context must be reloadable ie., set the reloadable = true in the 
context using the
admin page

VTR
BHEL haridwar
- Original Message - From: Rajesh [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, December 13, 2004 2:25 PM
Subject: Please help me

Hai all,
i have a doubt please help me.
in my tomcat server, am developing a online shopping site.
the site is live,
i periodically upload updated pages, when uploading i donot want to 
down the server,

i use a way that creating 2 webapps, one will run, i upload the 
updated pages to webapp 2 afteruploading i go to webapp1 and point it 
to webapp2 when i need to upload second time ill upload to webapp 1 
and i will make point from webapp2 to webapp 1 .

is there any way to do this affectively ??
Please reply
Rajesh
-
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]


MS Outlook 2003 Mail listing

2004-09-12 Thread Rajesh
Hai all
 
I just saw MS Outlook 2003
 
in this application the mail are sorted in date and given names like
Today
Yesterday
Last Week
Two Weeks Ago ...
 
Can anybody give me algorithm to get date in this string version . 
 
Thank you,
Rajesh
 
 
 


Connection and Tomcat server

2004-08-16 Thread Rajesh
Hai guys
   am still fasing same problem with my struts,tomcat with mysql.
am working in the environment of tomcat,struts,dbcp,JP2, mysql..
i developed a site of round 20-50 actions which accesses db through DBCP 
to MySQL

i completely debugged my site theroughly, there is no but in my code.
i uploaded the site to net, after a using the site successfully suddenly 
my connections is not working .

i found this by my index page where i am using 2 message board which 
takes top 5 records from db and displays it in text scrolling javascript

where ever am connection to mysql through getDataSource(request)  am not 
gettign connection properly.

i am properly closing connection in my program
but when i restart my tomcat then my program start working properlty 
then after a day or so the same problem arrice.

can anybody help me to overcome this.
am fasing the same problem for many days.
thanks  you
Rajesh
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


java.net.SocketException: Broken pipe Error

2004-08-16 Thread Rajesh
Hai
in my tomcat logfile am getting the following exception very rarely. 
Will this will cause any problem in server or in my code ?

Aug 14, 2004 11:46:49 AM org.apache.jk.server.JkCoyoteHandler action
SEVERE: Error in action code
java.net.SocketException: Broken pipe
   at java.net.SocketOutputStream.socketWrite0(Native Method)
   at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
   at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
   at org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:457)
   at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:654)
   at org.apache.jk.server.JkCoyoteHandler.action(JkCoyoteHandler.java:472)
   at org.apache.coyote.Response.action(Response.java:226)
   at org.apache.coyote.Response.finish(Response.java:348)
   at org.apache.coyote.tomcat5.OutputBuffer.close(OutputBuffer.java:328)
   at 
org.apache.coyote.tomcat5.CoyoteResponse.finishResponse(CoyoteResponse.java:497)
   at 
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:209)
   at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:324)
   at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:395)
   at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:673)
   at 
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:615)
   at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:786)
   at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
   at java.lang.Thread.run(Thread.java:534)
Aug 14, 2004 11:46:49 AM org.apache.jk.server.JkCoyoteHandler action

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


jvmps not displaying id of tomcat running

2004-08-13 Thread Rajesh
hai all
am trying to check tomcat GC from JVMStat  so i tryed to way in 
catalena.bat first line

first time
SET CATALINA_OPTS = -XX:+PerfBypassFileSystemCheck -verbose:gc
set JAVA_OPTS = -XX:+UsePerfData
second time
SET CATALINA_OPTS =  -verbose:gc
set JAVA_OPTS = -XX:+PerfBypassFileSystemCheck -XX:+UsePerfData
but am not getting the id of the jvm process
can anybody help me
rajesh
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Tomcat or DB Connection is not working please help

2004-08-12 Thread Rajesh
 Hi Technosavvians
This is Rajesh. Working on webApplication project.The project 
Environment is in
Struts1.1 Framework with jdk1.4.2_01,WebServer as Tomcat5 on O.S Linux 
connecting back-end Mysql.

Next thing is I've properly closed each connection whenever I've opened 
the connection.So the db connection is properly maintained.And

Session too also properly maintained.In struts1.1 struts-config.xml
just for connection pooling I've coded data-source tag like
data-sources
data-source type=org.apache.commons.dbcp.BasicDataSource
set-property property=driverClassName
value=com.mysql.jdbc.Driver/
set-property property=url
value=jdbc:mysql://ip address/contextname/
set-property property=username
value=/
set-property property=password
value=/
set-property property=removeAbandoned
value=true/
set-property property=removeAbandonedTimeout
value=60/
/data-source
/data-sources
So for every 60 seconds the connection pool is checked to freeze-out the 
unwanted Connection.

Every thing works fine on first day but on the consecutive day it troubles.
MAIN PROBLEM STATEMENT IS
On the next day my LOGIN page can't be accessed and mainly my DB too 
can't be accessed.
So I want to know where will problem arise.Whether it's in Database 
Pooling or Tomcat related problems.

Tomcat Status
Following is the server status
pls anybody help me

Server Status
Manager
List Applications HTML Manager Help Manager Help Complete Server Status
Server Information
Tomcat Version JVM Version JVM Vendor OS Name OS Version OS Architecture
Apache Tomcat/5.0.25 1.4.2_02-b03 Sun Microsystems Inc. Linux 
2.4.20-020stab009.21.777-enterprise i386

JVM
Free memory: 42.25 MB Total memory: 63.31 MB Max memory: 63.31 MB
http-8080
Max threads: 15 Min spare threads: 5 Max spare threads: 10 Current 
thread count: 5 Current thread busy: 1
Max processing time: 4 ms Processing time: 0 s Request count: 1 Error 
count: 0 Bytes received: 0.00 MB Bytes sent: 0.00 MB

Stage Time B Sent B Recv Client VHost Request
R ? ? ? ? ? ?
R ? ? ? ? ? ?
P: Parse and prepare request S: Service F: Finishing R: Ready K: Keepalive
jk8009
Max threads: 200 Min spare threads: 4 Max spare threads: 50 Current 
thread count: 8 Current thread busy: 3







Please if any body faced the same problem pls update me regarding this 
issues.It's really painning  brainstorming.please help me to find out
a solution.

Thankx in Advance.
Rajesh
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Please help me

2004-08-12 Thread Rajesh
This is Rajesh. I am working on webApplication project.The project
Environment is in
Struts1.1 Framework with jdk1.4.2_01,WebServer as Tomcat5 on O.S Linux
connecting back-end Mysql.
I am trouble shooting a problem.
   I have properly closed each and every connection whenever I
open a connection.So the db connection is properly maintained.And
the Session too is properly maintained.In struts1.1 struts-config.xml
just for connection pooling I've coded data-source tag like
   data-sources
   data-source type=org.apache.commons.dbcp.BasicDataSource
   set-property property=driverClassName
 value=com.mysql.jdbc.Driver/
   set-property property=url
 value=jdbc:mysql://ip address/contextname/
   set-property property=username
 value=/
   set-property property=password
 value=/
   set-property property=removeAbandoned
 value=true/
   set-property property=removeAbandonedTimeout
 value=60/
   /data-source
   /data-sources
So for every 60 seconds the connection pool is checked to freeze-out the
unwanted Connection.
Every thing works fine on first day but on the consecutive day it troubles.

MAIN PROBLEM STATEMENT IS
On the next day  when I try to login to my site it is not
letting me login.
   I am sure there is no problem in my coding, because the whole day 
the site
is working perfectly well. Only for a period of time the db access is not
working.

So I want to know where the problem is.Whether it's in Database
Pooling or it is Tomcat related problems.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: SOLVED: How to get the context path for a web application?

2004-08-12 Thread Rajesh
hai
use
request.getContextPath()
Rajesh
Jacob Kjome wrote:
To get the context path at init time, try this
from:
http://cvs.apache.org/viewcvs.cgi/logging-log4j-sandbox/src/java/org/apache/log4j/servlet/InitShutdownController.java 

/**
   * Retrieves the context path of the web application from the 
servlet context.
   *
   * @param context the current servlet context
   * @return the derived context path, guaranteed non-null
   */
  private static String getContextPath(final ServletContext context) {
//old way to determine context path
//String tempdir =  +
//context.getAttribute(javax.servlet.context.tempdir);
//int lastSlash = tempdir.lastIndexOf(File.separator);
//if ((tempdir.length() - 1)  lastSlash) {
//  logHomePropName = tempdir.substring(lastSlash + 1) + .log.home;
//}
String contextPath = ;

try {
  //use a more standard way to obtain the context path name
  //which should work across all servers. The tmpdir technique
  //(above) depends upon the naming scheme that Tomcat uses.
  String path = context.getResource(/).getPath();
  //first remove trailing slash, then take what's left over
  //which should be the context path less the preceeding
  //slash such as MyContext
  contextPath = path.substring(0, path.lastIndexOf(/));
  contextPath = contextPath.substring(contextPath.lastIndexOf(/) 
+ 1);
} catch (Exception e) {
  ;
}

return contextPath;
  }
Jake
At 10:28 AM 8/12/2004 +0200, you wrote:
On Wed, 11 Aug 2004, David Wall wrote:
|  The cause for some of these specs is the fact servlet containers 
aren't
|  required to run on file systems.  For example, they may run entirely
|  inside a DBMS (and Oracle had such a container for a while), in 
which
|  case you must deploy in a packed WAR and the subset under a server's
|  URL name space is not a hard-drive path.

I do know this.
|
| Nobody cares if this maps to a file system or not.
Totally agree - it has nothing at all with filesystem, or whether the
webapp is stored on a read-only stone-tablet - I want to know what 
subset
of the webserver's URL namespace I'm mounted beneath, at init time. 
What
I'll do with that information is my business!
  As this is a static element; the webapp is, -per definition- (The
javadoc snippet) mounted beneath a subset of the URL namespace; 
there is
no reason I can fathom why this shouldn't be made available to us 
coders
that are making webapps, at init time. The point is that the webapp 
won't
change mount point from request to request, will it? So the web
container must know at init-time which sub-space it will mount the 
webapp
under.. Just please make that information available then, at init time!



IMO, that is.
 ( -My- use-case is, as mentioned, that I want to make it easy for
developers to override some (development-)settings of the framework. In
the webapp I'll check whether it is possible to do file-system access 
and
System-property-getting, and if so, then check for and read the files
$userdir/devel/develconfig.xml, and then
$userdir/devel/webappname/develconfig.xml.  It if it is not possible,
then I won't do that, and assume that I am in a production 
environment or
something. )

I'd just love to see this extra method added.
Endre.
-
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: Trouble running Tomcat 5 in XP

2004-08-12 Thread Rajesh
Hai
Check the server wheather its running and see the port it is using
Rajesh
Shei Delfin wrote:
Hi,
I just installed Tomcat 5 on WinXP.  When trying to start the
Tomcat service, I get the following error Service Not Found
I have j2sdk1.4.2_03 and Tomcat 5
What am I doing wrong?
Thanks,
Sheila


-
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 performance/GC with JVMStat's visualgc

2004-08-12 Thread Rajesh
Hai all
how to check Tomcat's garbage collectioin with JVMStat's visualgc
Rajesh
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Overidding Tomcat error pages

2004-07-14 Thread EXT-Patel, Rajesh M
I would like to override tomcats' error messages for
all webapps.  I added the following to conf/web.xml:
error-page
error-code503/error-code
location/error/error.jsp/location
/error-page
error-page
error-code404/error-code
location/error/error.jsp/location
/error-page

Then I added /error/error.jsp to the ROOT application.
404 errors work fine, however 503 errors default
back to tomcats error page.

Am I doing something wrong?

Raj

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



RE: JMX tools survey

2004-07-14 Thread EXT-Patel, Rajesh M
There is mc4j, however I have not gotten it to work properly.


-Original Message-
From: Erik Earle [mailto:[EMAIL PROTECTED]
Sent: Friday, July 09, 2004 1:23 PM
To: [EMAIL PROTECTED]
Subject: JMX tools survey



I'm just curious: what tools folks are using for monitoring / managing 
Tomcat through JMX?

_
MSN Life Events gives you the tips and tools to handle the turning points in 
your life. http://lifeevents.msn.com


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



Multiple Tomcat Instance Administration

2004-07-14 Thread EXT-Patel, Rajesh M
Are there any tools that can Administer multiple tomcat instances?

I found this tool:
http://web.bvu.edu/staff/david/index.jsp?section=softwaresubsection=tcservcfgpage=overview

But it is very basic and does not allow editing of
the server.xml.

Raj

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



JMX Tomcat Manager

2004-07-07 Thread EXT-Patel, Rajesh M
Is there a way to use JMX to do what the 
tomcat manager does.  What I want to
do is to Reload, Stop, Start and Add Contexts
with JMX.


Raj

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



Tomcat Server Not Running

2003-10-07 Thread rajesh kannan krishnamoorthy
Hi,

I installed Tomcat Server.I config also JAVA_HOME and
CATALINA_HOME. I run the startup.bat file the new
window opened after few seconds the new window
closed.I don't know, when I mistake the config
file.The server was not working properly I check all
files.I am waiting for your hopeful reply.

Thanks and Regards

K RAJESH KANNAN

__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

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



Catching 401 Error

2003-01-28 Thread Rajesh Kanade
Hi All

I have written a web application which has main
servlet class.

We have a form which has basic authentication. When
the user cancels the authentication form shown to him
in the browser, We want to capture the 401 error and
dispaly it in a our own custom error page. but we are
unable to do this

What I have figured out is that control is not coming
back to our servlet at all  is infact going to
default servlet of Tomcat.

Does any one have any clues why this may be happening.
If yes can you please share it with me.

Thanks in advance

Rajesh Kanade


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




RE: Tomcat and Apache | Performance

2002-12-25 Thread Rajesh B
Hi Venkat,
Thankx for the information. We are using ajp12 protocol and have the following 
configuration.

Ajp12Connector  port=8701 maxThreads=500 maxSpareThreads=50 
minSpareThreads=10/

!-- Apache AJP13 support (mod_jk)
 Parameter address defines network interface this Interceptor
 binds to. Add it if you want to bind to just 127.0.0.1.

 address=127.0.0.1

 Parameter tomcatAuthentication, controls if Tomcat honors 
 ( and uses ) auth done in HTTP Server or not, when true Tomcat does 
 not use in any way auth information provided by the HTTP Server. 
 true is the default. 
 
 tomcatAuthentication=false
 

  --
Ajp13Connector port=8717 /


in server.xml. MaxClients in httpd.conf is set to 100.


regards
rajesh

-Original Message-
From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 24, 2002 7:46 PM
To: Tomcat Users List
Subject: RE: Tomcat and Apache | Performance



   There is a option in httpd.conf as well as server.xml(Ajp13Processor max 
processors) to set max clients to be served,
 incresing that size, may get it solved 
   Make sure max Ajp13processors should be greater than or equal to max clients in 
httpd.conf

Thks,
--Venkat


-Original Message-
From:   Rajesh B [mailto:[EMAIL PROTECTED]]
Sent:   Tue 12/24/2002 8:57 AM
To: Tomcat Users List
Cc: 
Subject:Tomcat and Apache | Performance
Hi All,
I am using tomcat 3.3.1 and apache 1.3.27 with mod_jk (ajp12
protocol). We are running it in Solaris 2.8 ( 4 CPU 4GB RAM ). At times
when the system is under heavy load, apache simply stops processessing
requests. And the hits/sec goes down. The system idle state is around
99%. At times , we get MaxClients reached error in error_logs. But
this happens rarely. 
After 10 or 15 minutes, apache is able to serve requests.
Has anyone expericed this kind of problem. Any pointers would be greatly
appreciated.


regards
Rajesh.B

--
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]




Tomcat and Apache | Performance

2002-12-24 Thread Rajesh B
Hi All,
I am using tomcat 3.3.1 and apache 1.3.27 with mod_jk (ajp12
protocol). We are running it in Solaris 2.8 ( 4 CPU 4GB RAM ). At times
when the system is under heavy load, apache simply stops processessing
requests. And the hits/sec goes down. The system idle state is around
99%. At times , we get MaxClients reached error in error_logs. But
this happens rarely. 
After 10 or 15 minutes, apache is able to serve requests.
Has anyone expericed this kind of problem. Any pointers would be greatly
appreciated.


regards
Rajesh.B

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




Tomcat 3.3.1 CPU utilization is too high.

2002-11-08 Thread Rajesh B
Hi,
   We are facing some problem with tomcat which takes 95% of the CPU. 

-   We have got a SPARC Solaris 8 with more that 4 CPUs and 8GB RAM. 

-   We have got one instance of tomcat 3.3.1 installed in this machine with JDK 
1.3.1_05. 

-   What we observed is that, after 20 minutes for no reason the tomcat uses 
almost 80-90% of the CPU. And it stays at the level itself. 

-   The load on the server is not also high. The tomcat log does not show any 
problem. Restarting tomcat helps. But again after 20 minutes the same problem is 
happening. 

-   There is only one context in this context. There are no multiple webapps 
running in this tomcat. 

-   Another thing we observed was, turning ON the logs of our web application 
helps. At this point, tomcat does not use much CPU. Usually, application logs would be 
turned off to improve the performance. But in  out case, the turning on application 
logs helps.


Has anyone faced this kind of behaviour. Any help on this would be of great help. 

Note : At this point, for various reasons, we can not upgrade the version of tomcat. 
Any pointers on 3.3 version would also help.

regards
Rajesh.B





RE: How can I protect my servlet with a login and a password?

2002-10-17 Thread Rajesh B

U just need to add basic authentication in ur apache httpd.conf file.
Nothing to change in tomcat. Have a look at basic authentication in apache

-Original Message-
From: Luca Ventura [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 17, 2002 12:37 PM
To: tomcat-user
Subject: How can I protect my servlet with a login and a password?


Hello everybody!

I have Apache Tomcat 4.0 as Servlet Engine and I would like to to the
following
thing: when a user tries to connect to my servlet MyServlet a window
should appear that ask him to insert a login and a password
before accessing to the servlet. How can I do this?

Must I change some configuration file in Tomcat? Can I use
the same solution to protect other web resources (for example
the files to download)?

Thanks a lot in advance!

Luca


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




Tomcat 4 - AJP13 and apache

2002-10-16 Thread Rajesh B

Hi,
   We have multiple instances of tomcat 4 which are load balanced. We have
integerated this to apache using mod_jk. The question is,
  - In server.xml, both ajp12 and ajp13 are enabled.
  - In worker.properties, only ajp12 is load balanced. But ajp13 also has
got entries (is not load balanced).
  - If this is the case, will the requests be sent to both ajp12 and ajp13
ports?.. Is there any disadvantage of this.

regards
Rajesh



(Urgent) Help with Tomcat 3.3 performance

2002-10-14 Thread Rajesh B

Hi all,
We have a web application running in Solaris 8, Tomcat 3.3 ( 3
tomcats are load balanced with ajp12 connector) , apache 1.3.2. The box has
got 4 CPUs and 4 GB of RAM. We are testing the application using LoadRunner.
For lower number of users, the hits/sec are good. But as we increase the
users hitting the webserver, the hits/sec decreases. 
We have checked some parameters in TCP/IP like
tcp_time_wait_interval, tcp_conn_req_max_q etc. Network is not a problem as
of now. We have got a 100 Mbps link. And there are no packet collisions. Has
anyone faced this kind of problem. Can anyone help us on this. Any help
would be of great help. Thankx in advance.


regards
Rajesh



Urgent help ( tomcat dies at restart time)

2002-10-14 Thread Rajesh . Bhabaraju



 When I stop and restart tomcat ( ./catalina.sh stop,  ./catalina.sh start)
 Tomcat starts up as required, but after few mins it goes down.
 
 however if I start with run mode  ( ./catalina.sh run) it works properly
 as required.
 
 I test the process by checking
 
 ps -ef|grep java and top statistics
 
 I am currently using tomcat as stand-alone server with ssl-mode. 
 
 Solaris 2.8
 Tomcat 4.0.4
 Java 1.4.01
  
 Can some please help me, this is happening in DEV, TEST and PRODUCTION
 machines.
 
 Rajesh Bhabaraju (RAJ)
 Office of Technology Services
 Phone: 502-564-6949 X 281
 [EMAIL PROTECTED]
 

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




Urgent help ( tomcat dies at restart time)

2002-10-12 Thread Rajesh . Bhabaraju

When I stop and restart tomcat ( ./catalina.sh stop,  ./catalina.sh start)
Tomcat starts up as required, but after few mins it goes down.

however if I start with run mode  ( ./catalina.sh run) it works properly as
required.

I test the process by checking

ps -ef|grep java and top statistics

I am currently using tomcat as stand-alone server with ssl-mode. 

Solaris 2.8
Tomcat 4.0.4
Java 1.4.01
 
Can some please help me, this is happening in DEV, TEST and PRODUCTION
machines.

Rajesh Bhabaraju (RAJ)
Office of Technology Services
Phone: 502-564-6949 X 281
[EMAIL PROTECTED]


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




Why to use Apace as web server with TOMCAT

2002-10-11 Thread Rajesh . Bhabaraju

I would like know what are the advantages of using apache as webserver for
tomcat.
ie, what is the disadvantage of using tomcat's own web server.


thanks

Rajesh Bhabaraju (RAJ)
Office of Technology Services
Phone: 502-564-6949 X 281
[EMAIL PROTECTED]


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




Form-based authentication

2002-10-09 Thread Rajesh Kanderi

how do you access a webpage which has a form-based
authentication setup using java.

i am able to do it using an href
http://user:password@url...
but the problem is it shows the passowrd. 

I tried to construct the above url in a servlet and
then doing a sendRedirect. but the sendRedirect
doesn't seem to like the format of the
url,specifically having the user:password.

Is there a way to do it using java classes
URLconnection or HttpURLConnection



__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos  More
http://faith.yahoo.com

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




Re: HOW TO: How do I add a global variable in server.xml readable in all webapps?

2002-10-07 Thread Rajesh . Bhabaraju


--
Sent from my BlackBerry Wireless Handheld (www.BlackBerry.net)

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




Starting TOMCAT without opening new DOS promt

2002-09-25 Thread RAJESH KANNAN

Hi all,

We would like to start the TOMCAT server without opening a new DOS prompt. 
How should we do this?


With Regards
K.RajeshKannan



_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


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




Starting TOMCAT without opening new DOS promt

2002-09-25 Thread RAJESH KANNAN

Hi all,

We would like to start the TOMCAT server without opening a new DOS prompt. 
How should we do this?

Thanks in anticipation.

With Regards
K.RajeshKannan



_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


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




RE: More info re: tomcat, 1.4 and jni for Jmagick

2002-09-17 Thread Rajesh Mishra


I was facing a similar linking error problem but with Tomcat 3.3a and
jdk1.3.1_03 on windows. Actually I was trying to make my own dll and then
calling that dll through jni calls from my servlet. I made a sample java
application to call that dll method and it was working fine. But when I was
trying to put packages in the same sample java program the same linking
error was coming .I then rebuilt the dll with package declaration and this
time it worked. I kept the dll in system's path. But I've not tested it
completely but you can give it a try. 

Thanks
Rajesh



-Original Message-
From: Mr. Tomcat [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 16, 2002 7:17 PM
To: Tomcat Users List
Subject: More info re: tomcat, 1.4 and jni for Jmagick


I did some more experimentation on this.  It seems that the way Tomcat's
classloader works is somehow preventing JNI from working.  The
LD_LIBRARY_PATH env variable is completely ignored.  No amount of
System.load() or System.loadLibrary() does anything.  The
java.library.path System property looks like this:

/usr/java/j2sdk1.4.0_01/jre/lib/i386/client
/usr/java/j2sdk1.4.0_01/jre/lib/i386
/usr/java/j2sdk1.4.0_01/jre/../lib/i386

but here is the weird part: even if I put the Jmagick and Imagemagick
shared libs in those directories in the JAVA_HOME, I still get a linking
error when I try to use them.

This is all with Tomcat 4.0.4 and JDK 1.4, with Linux.

So, the question is, can we still use JNIs with JDK 1.4, and if so,
how?  If there is no more JNI with JDK 1.4, is this something which is
being worked on, or do we have to move strictly to pure Java, or do we
need to go back to JDK 1.3?

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]




JRE and JSP

2002-09-07 Thread RAJESH KANNAN


Hi all,

We have a special requirement which warrants the use of tomcat with only 
JRE. (Not JDK).

In our web application we have JSPs also in addition to Java classes.

Is there any way by which we can operate TOMCAT only with JRE. (which 
supports JSP execution).

We are using TOMCAT-4.0.3 with JRE 1.4.1.

Can you please give some directions to go about.

Thanks in anticipation.

With Regards
K.RajeshKannan

_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


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




RE: tomcat and apache

2002-05-31 Thread Rajesh Mishra

Hello ,
Please look at the Apache's httpd.conf file and look for
'ServerName' property . If it is commentented , uncomment it and then change
with the ip address of machine or the machine name .
I think this should solve your problem .

Regards
Rajesh

-Original Message-
From: Andreas Boeyer [mailto:[EMAIL PROTECTED]]
Sent: Saturday, June 01, 2002 3:48 AM
To: Tomcat Users List
Subject: Re: tomcat and apache


Hello,
I have a problem with apache and tomcat.
Everything is working fine, as long I stay on the same computer.
If I call the servelet examples or jsp from an other computer it
only work if I typ the IP-address and the port 8080.
If I call the page normal like  http://ip-address/examples
the browser always say webpage not found
I try now since two days and don't know how to solve my problem.

when I call the examples with a webbrowser on the local computer the adress
line of the browser change to
http://linux.local/examples

How can external computers find my servlet if the adress change to  
http://linux.local/examples

Thanks a lot
Andreas

[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]




Strange Problems with Tomcat and Apache

2002-05-23 Thread Rajesh Mishra

I'm having horrible experiences with Tomcat and Apache.When I run stress
tools for my application , I face strange problems each day.
The environment I've been using are jdk1.3.1,Tomcat3.2,Apache1.3.12 and jdbc
driver for sql server 2000.

The problems I'm facing are :

1. Tomcat crashes after 15-20 hrs of stress testing.
2. CPU utilization of Apache process goes to 100% after 4-5 hrs.
3. After 15 hrs , I could not access anything of website and log says
Connection closed by Peer socket.
4. Cookie name Path is a reserved token exception. 

I'm facing any one of these problems each day.

Should upgrading to higher versions of Apache and Tomcat will solve the
problems. 
Please help.

Regards
Rajesh

-Original Message-
From: Rajesh Mishra 
Sent: Thursday, May 23, 2002 10:07 AM
To: [EMAIL PROTECTED]
Subject: Apcahe's CPU goes to 100%


I'm using Apache1.3.12 and Tomcat3.2 for my application.After stress testing
for 4 hours , CPU utilization of Apache.exe process goes to 100%. As a
result when I try to access the website , I'm getting timeouts. But I could
still access the website with tomcat port.

Has anyone experienced this problem .I'm using mod_jk for this purpose

Regards
Rajesh

--
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: Doubts on SSL configuration.???

2002-05-22 Thread Rajesh Harikrishnan

Hi Mike,

Thanks for the reply on this issue, i have no problem configuring SSL
with apache to run on my Windows NT4.0. The problem for which i am looking
for some help is as follows:

My two main problems are:
1) But how do i redirect few options of my application to work on Https and
others to serve on Http?
2) How to restrict a particular 'Context' to only serve on Http or Https?
3) Is their any difference between the Http | Https session objects?

Hope to get some advice from you,
thanks in advance

Regards
H.Rajesh
([EMAIL PROTECTED])
SoftSolutions Pvt. Ltd.,
Chennai. India.



- Original Message -
From: Mike Jackson [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, May 21, 2002 3:12 AM
Subject: RE: Doubts on SSL configuration.???


 I have this setup at home on my linux box.  Didn't have any problems
getting
 it working.  If you ask really, really nicely I could send you the
binaries
 I suppose, or the config files.  But really the major pain was getting
 apache
 to run with ssl, not the tomcat part.

 --mikej
 -=-
 mike jackson
 [EMAIL PROTECTED]

  -Original Message-
  From: Rutledge, Aaron [mailto:[EMAIL PROTECTED]]
  Sent: Monday, May 20, 2002 8:02 AM
  To: Tomcat Users List
  Subject: RE: Doubts on SSL configuration.???
 
 
 
  http://jakarta.apache.org/tomcat/tomcat-4.0-doc/ssl-howto.html
 
  I'm not sure if you've found this article or not.  On first run-through
  it appears to be the Idiot's Guide to SSL, but I am still having
  problems.  I configured my Tomcat exactly like it is explained and now I
  get a java.lang.IllegalStateException error when I start TomCat.  I have
  no idea why SSL would cause this type of exception.  Anyway, maybe this
  article will help you more than me.  Basically, as you probably know,
  you create a new port that allows for SSL.  You can force any context in
  your application to use this port by prefixing the URL with https...the
  How TO explains it like this...
 
   Any page within an application can be requested over a secure socket
  by simply prefixing the address with https: instead of http:. Any pages
  which absolutely require a secure connection should check the protocol
  type associated with the page request and take the appropriate action of
  https is not specified.
 
  probably not the detail you need
 
  I would love to hear from anyone out there who has successfully gotten
  SSL running to assist Rajesh and I.  I am kind of frustrated by what
  seems to be a simple task. --Aaron
 
 
 
  -Original Message-
  From: Rajesh Harikrishnan [mailto:[EMAIL PROTECTED]]
  Sent: Monday, May 20, 2002 7:02 AM
  To: [EMAIL PROTECTED]
  Subject: Doubts on SSL configuration.???
 
 
  HI All,
 
  I need Apache-ssl+tomcat expert's help on this issue. My problem is,
  after a lot of search i am still not able to find some useful
  documentation
  for Configuring the Apahce+tomcat (on Windows) for HTTPS(SSL).
 
  My application needs to handle both HTTP and HTTPS. Few modules in the
  application needs HTTPS and others needs HTTP. So how do i need my
  configuration to be?. Can some one sent me a sample 'httpd.conf /
  server.xml'?. I have downloaded a copy of Apache1.3.24+mod_ssl_openssl
  from
  'openssl' site and have set up for the application to run on this server
  with Tomcat 3.2.2.
 
  My two main problems are:
  1) But how do i redirect few options of my application to work on Https
  and
  others to serve on Http?
  2) How to restrict a particular 'Context' to only serve on Http or
  Https?
 
  Thanks in advance for all your help.
 
  Regards
  H.Rajesh
  ([EMAIL PROTECTED])
  SoftSolutions Pvt. Ltd.,
  Chennai. India.
 
 
 
  --
  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: Enabling SSL in tomcat

2002-05-22 Thread Rajesh Harikrishnan

Hi Ajay,

I also faced similar problem when tried to configure SSL on tomcat, then
tried what 'J' told, but due to Java's security permission for file reading
in local device's tomcat was possing a different 'IO Exception error'. I
finally had it running after a work around, that is.

I copied the '.keystore' file from the 'winnt\profiles\..' to the
'winnt\profiles\default user'. Now my configuration works in perfect shape.

Thanks for an intersting question.

Regards
H.Rajesh
[EMAIL PROTECTED]
SoftSolutions Pvt. Ltd.,
Chennai, India.



- Original Message -
From: Joaquín Sánchez Jiménez [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, May 15, 2002 12:58 PM
Subject: Re: Enabling SSL in tomcat


Hi:

Try with this.
Connector className=org.apache.tomcat.service.PoolTcpConnector

Parameter name=handler
value=org.apache.tomcat.service.http.HttpConnectionHandler/

Parameter name=port value=8443/

Parameter name=socketFactory
value=org.apache.tomcat.net.SSLSocketFactory /

Parameter name=keystore value=C:\WINNT\Profiles\ajay\.keystore /

Parameter name=keypass value= /

/Connector



Bye.

J.

- Original Message -
From: Ajay Chauhan [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, May 16, 2002 9:09 AM
Subject: Enabling SSL in tomcat


 I am facing one problem while enabling SSL in Tomcat on windows NT server.
I
 have created the keystore using the following command:

 keytool -genkey -alias tomcat -keyalg RSA

 using changeit password. It has created .keystore file in user.home
 directory. Say if my login is ajay then the files is created in :
 C:\WINNT\Profiles\ajay directory, which is the value of
 System.getProperty(user.home).

 However when I start the Tomcat server, the jvm.stderr log files show the
 following error and tomcat does not start:

 java.io.FileNotFoundException: C:\WINNT\Profiles\Default User\.keystore
(The
 system cannot find the file specified)
 at java.io.FileInputStream.open(Native Method)
 at java.io.FileInputStream.init(Unknown Source)
 at

org.apache.tomcat.net.SSLSocketFactory.initKeyStore(SSLSocketFactory.java:22
 0)
 at

org.apache.tomcat.net.SSLSocketFactory.initProxy(SSLSocketFactory.java:160)
 at

org.apache.tomcat.net.SSLSocketFactory.createSocket(SSLSocketFactory.java:11
 8)
 at

org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.java
 :239)
 at

org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnector.java:188)
 at
 org.apache.tomcat.core.ContextManager.start(ContextManager.java:527)
 at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202)
 at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)

 This problem does not appear in Windows NT Workstation. In the workstation
 the user.home property is the same as required by the Tomcat server at
run
 time.

 If anyone face the same problem earlier and have the solution please reply
 ASAP.

 Regards,
 Ajay







 --
 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]




Apcahe's CPU goes to 100%

2002-05-22 Thread Rajesh Mishra

I'm using Apache1.3.12 and Tomcat3.2 for my application.After stress testing
for 4 hours , CPU utilization of Apache.exe process goes to 100%. As a
result when I try to access the website , I'm getting timeouts. But I could
still access the website with tomcat port.

Has anyone experienced this problem .I'm using mod_jk for this purpose

Regards
Rajesh

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




jvm_recv

2002-05-21 Thread Rajesh Mishra

Hi ,
I'm using Tomcat3.2, jdk1.3.1,Ajp12 connector and jdbc driver for my
application. I'm getting the following error.Any help will help me greatly.


com.interra.web.dao.core.DALException: Error in get(). Error
[Microsoft][SQLServer 2000 Driver for JDBC]Connection reset by peer:
JVM_recv in socket input stream read
at com.interra.web.dao.core.DAL.get(DAL.java:374)
at com.interra.web.dao.DBMarquee.getAll(DBMarquee.java:36)
at
com.interra.web.actionObject.GetMarquees.serveRequest(GetMarquees.java:32)
at
com.interra.web.actionHandler.ActionHandler.serveRequest(ActionHandler.java:
79)
at
com.interra.web.common.utils.UserManager.GetMarquees(UserManager.java:74)
at
com.interra.web.presentationObject.NewsLetter.serveRequest(NewsLetter.java:3
1)
at
com.interra.web.presentationHandler.PresentationHandler.serveRequest(Present
ationHandler.java:92)
at
com.interra.web.uiGenerator.UIGenerator.generateDynamicResponse(UIGenerator.
java:173)
at
com.interra.web.requestHandler.RequestHandler.handleDynamicRequest(RequestHa
ndler.java:199)
at
com.interra.web.requestHandler.RequestHandler.serveRequest(RequestHandler.ja
va:139)
at
com.interra.web.requestHandler.servlet.RequestServlet.handleRequest(RequestS
ervlet.java:256)
at
com.interra.web.requestHandler.servlet.RequestServlet.doGet(RequestServlet.j
ava:117)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java:166)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)

Regards
Rajesh

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




Doubts on SSL configuration.???

2002-05-20 Thread Rajesh Harikrishnan

HI All,

I need Apache-ssl+tomcat expert's help on this issue. My problem is,
after a lot of search i am still not able to find some useful documentation
for Configuring the Apahce+tomcat (on Windows) for HTTPS(SSL).

My application needs to handle both HTTP and HTTPS. Few modules in the
application needs HTTPS and others needs HTTP. So how do i need my
configuration to be?. Can some one sent me a sample 'httpd.conf /
server.xml'?. I have downloaded a copy of Apache1.3.24+mod_ssl_openssl from
'openssl' site and have set up for the application to run on this server
with Tomcat 3.2.2.

My two main problems are:
1) But how do i redirect few options of my application to work on Https and
others to serve on Http?
2) How to restrict a particular 'Context' to only serve on Http or Https?

Thanks in advance for all your help.

Regards
H.Rajesh
([EMAIL PROTECTED])
SoftSolutions Pvt. Ltd.,
Chennai. India.



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




Doubts on SSL configuration.

2002-05-18 Thread Rajesh Harikrishnan

HI All,

I need Apache-ssl+tomcat expert's help on this issue. My problem is, after a lot 
of search i am still not able to find some useful documentation for Configuring the 
Apahce+tomcat (on Windows) for HTTPS(SSL).

My application needs to handle both HTTP and HTTPS. Few modules in the application 
needs HTTPS and others needs HTTP. So how do i need my configuration to be?. Can some 
one sent me a sample 'httpd.conf / server.xml'?. I have downloaded a copy of 
Apache1.3.24+mod_ssl_openssl from 'openssl' site and have set up for the application 
to run on this server with Tomcat 3.2.2.

My two main problems are:
1) But how do i redirect few options of my application to work on Https and others to 
serve on Http?
2) How to restrict a particular 'Context' to only serve on Http or Https?

Thanks in advance for all your help.

Regards
H.Rajesh
([EMAIL PROTECTED])
SoftSolutions Pvt. Ltd.,
Chennai. India.



Apache-Tomcat problem

2002-05-15 Thread Rajesh Mishra

Hi,
I'm using Tomcat3.2 and mod_jk to connect to Apache1.3.12. On
putting stress with 40 clients , the site becomes inaccessible after 30
mins.The mod_jk.log file size started to increase with following error
message.

[jk_connect.c (143)]: jk_open_socket, connect() failed errno = 61
[jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1

Then I tried with apj13 connector.I faced the same problem after 30 mins of
stress.The mod_jk.log file now had this error, but site was inaccessible.

[jk_ajp13_worker.c (584)]: Error connecting to the Tomcat process.
[jk_connect.c (143)]: jk_open_socket, connect() failed errno = 61
[jk_ajp13_worker.c (173)]: In jk_endpoint_t::connect_to_tomcat, failed errno
= 61

Has anyone experienced this problem.

Regards
Rajesh

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




Recall: Apache-Tomcat problem

2002-05-15 Thread Rajesh Mishra

Rajesh Mishra would like to recall the message, Apache-Tomcat problem.

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




Tomcat-Apache problem

2002-05-15 Thread Rajesh Mishra

Hi,
I'm using Tomcat3.2 and mod_jk to connect to Apache1.3.12. On
putting stress with 40 clients , the site becomes inaccessible after 30
mins.The mod_jk.log file size started to increase with following error
message.

[jk_connect.c (143)]: jk_open_socket, connect() failed errno = 61
[jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1

Then I tried with apj13 connector.I faced the same problem after 30 mins of
stress.The mod_jk.log file now had this error, but site was inaccessible.

[jk_ajp13_worker.c (584)]: Error connecting to the Tomcat process.
[jk_connect.c (143)]: jk_open_socket, connect() failed errno = 61
[jk_ajp13_worker.c (173)]: In jk_endpoint_t::connect_to_tomcat, failed errno
= 61

Has anyone experienced this problem.

Regards
Rajesh


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




Re: VM size increases.

2002-05-15 Thread Rajesh Harikrishnan

Hi Rajesh,

Why don't you try using 'poolman' from 'www.poolman.com', which is also
a free tool and is very good, we have been using it for almost an year and
half without any problems!!.

Hope this helps you.

Regards
H.Rajesh
([EMAIL PROTECTED])
SSPL,Chennai
India

- Original Message -
From: Rajesh Mishra [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Tuesday, May 14, 2002 5:49 PM
Subject: RE: VM size increases.


 Hi,
 I've used DDConnectionBroker.jar pooling software provided free by
 DevDaily.com. It gives  connection pooling facility.I've tested the
pooling
 software with a sample java program but it doesn't seem to have any memory
 leak problem.
 Is there any other pooling software available which I can use.

 Regards
 Rajesh





 -Original Message-
 From: Java Team [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, May 14, 2002 12:21 PM
 To: Tomcat Users List
 Subject: Re: VM size increases.


 Hi

 Have you used any pooling software?How can you achieved connection
 pooling?.
 Actually we had same problem and we got the solution.
 Give more details on that will help to identify the problem.

 Regards
 VelmurganP
 ([EMAIL PROTECTED])
 SoftSolutions
 Chennai.



 - Original Message -
 From: Rajesh Mishra [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, May 14, 2002 10:19 AM
 Subject: VM size increases.


 
  I'm using Tomcat3.2 and SQL server2000. I'm facing two problems
mentioned
  below..
 
  1.The VM size of Tomcat's java.exe process increases gradually and it
  doesn't come down. As a result machine hangs.I've closed database
  connections and Resultset's everywhere I accessed database.
 
  2. On running Web Application Stress testing tool for 2 days (with 10
  threads and 4 socket multiplier), Tomcat crashes.
 
  Rajesh
 
 
 
  --
  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: VM size increases.

2002-05-14 Thread Rajesh Mishra

Hi,
I've used DDConnectionBroker.jar pooling software provided free by
DevDaily.com. It gives  connection pooling facility.I've tested the pooling
software with a sample java program but it doesn't seem to have any memory
leak problem.
Is there any other pooling software available which I can use.

Regards
Rajesh





-Original Message-
From: Java Team [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 14, 2002 12:21 PM
To: Tomcat Users List
Subject: Re: VM size increases.


Hi

Have you used any pooling software?How can you achieved connection
pooling?.
Actually we had same problem and we got the solution.
Give more details on that will help to identify the problem.

Regards
VelmurganP
([EMAIL PROTECTED])
SoftSolutions
Chennai.



- Original Message -
From: Rajesh Mishra [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, May 14, 2002 10:19 AM
Subject: VM size increases.



 I'm using Tomcat3.2 and SQL server2000. I'm facing two problems mentioned
 below..

 1.The VM size of Tomcat's java.exe process increases gradually and it
 doesn't come down. As a result machine hangs.I've closed database
 connections and Resultset's everywhere I accessed database.

 2. On running Web Application Stress testing tool for 2 days (with 10
 threads and 4 socket multiplier), Tomcat crashes.

 Rajesh



 --
 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]




VM size increases.

2002-05-13 Thread Rajesh Mishra


I'm using Tomcat3.2 and SQL server2000. I'm facing two problems mentioned
below..

1.The VM size of Tomcat's java.exe process increases gradually and it
doesn't come down. As a result machine hangs.I've closed database
connections and Resultset's everywhere I accessed database.

2. On running Web Application Stress testing tool for 2 days (with 10
threads and 4 socket multiplier), Tomcat crashes. 

Rajesh



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




RE: VM size increases.

2002-05-13 Thread Rajesh Mishra

Hi Toru,
I'm using jdbc-odbc driver to connect to SQL server.
Regards
Rajesh

-Original Message-
From: Toru Watanabe [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 14, 2002 10:45 AM
To: Tomcat Users List
Subject: Re: VM size increases.


Hi Rajesh,

Let me know about your JDBC.
I suppose you are using JNI for Database connectivity.

Regards,
Watanabe

In the message VM size increases.
 
[EMAIL PROTECTED]
Rajesh Mishra [EMAIL PROTECTED] wrote:


Rajesh I'm using Tomcat3.2 and SQL server2000. I'm facing two
Rajesh problems mentioned below..

Rajesh 1.The VM size of Tomcat's java.exe process increases gradually
Rajesh and it doesn't come down. As a result machine hangs.I've
Rajesh closed database connections and Resultset's everywhere I
Rajesh accessed database.

Rajesh 2. On running Web Application Stress testing tool for 2 days
Rajesh(with 10 threads and 4 socket multiplier), Tomcat crashes.

Rajesh Rajesh

Rajesh --
Rajesh To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
Rajesh 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]




Any idea about Session object Failue?

2002-05-11 Thread Rajesh Harikrishnan

Hi All,

Thanks for your reply for my previous question on 'Session Problem'. In addition 
to the previous subject, i still could'nt figure out the exact problem in my 
application. After a close watch, i found some where in the application the existing 
'Session object' is being 'Written Over' by a new 'Session Object' when calling 
'request.getsession()'. 

Can somebody enlight, Is their any possibility for a existing session object to be 
implicitly killed without calling 'invalidate()' by the program??.

Thanks in advance for your help.

Regards

H.Rajesh
([EMAIL PROTECTED])
SSPL,Chennai
India.



Re: Tomcat as automatic service in WinNT 4.0

2002-05-10 Thread Rajesh Harikrishnan

Hi Jayakumar P,

What version of tomcat??

Have your heard of 'Jk_ntservice' package... For the old version like
'Tomcat 3.x'

Please download it from the 'jakarta site' (i don't remember the exact site
URL). That has a set of instructions to get on.

Hope this solves your query..

Regards
H.Rajesh
([EMAIL PROTECTED])
SSPL,Chennai
India.

- Original Message -
From: Jayakumar P [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, May 10, 2002 4:29 PM
Subject: Tomcat as automatic service in WinNT 4.0


Hi all,

How can i run tomcat as an automatic service in WinNT 4.0?

Jayakumar






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




Session Problem with Tomcat and Apache - URGENT - Please help!!!!

2002-05-10 Thread Rajesh Harikrishnan

Hi All,

 I am having a problem with the session objects, let me first explain how we have used 
the session object in our application

we have an application which is initalizing an 'SESSION' object when the user log's 
into the system. 
This object is used to store three attributes, 
1) we have used 'session.setAttribute()' and 'session.setValue()' methods for creating 
key pair value objects in the session.
2) We have also used the 'session.getAttribute()' and 'session.getValue()' for 
retriving the data from the session object.
3) We have not used the 'session.removeAttribute()' any where in our application.
4) But in all pages, to check the session object validity, we have used 
'request.getSession()'.

Does calling this creates a attribute set in a old session object to be incorrectly 
re-written?.

The problem:
We are getting this following problem randomly,

The session object exists, but the attributes inside the session object unbinds and 
returns a null value!!.


We are using 'Apache1.3.20+Tomcat3.2.2+JDK1.3.1+WINDOWS NT 4.0' for our application. 
we have also set our 'setMaxInactiveInterval(3)' when creating the session object 
for the first time.

What is the cause of the attributes being removed from the session object, or in case 
is the session object itself is created as a new object during 'request.getSession()' 
calls and causing this problem.

Have you people faced similar problems??.

Please post your reply on this issue, this is a very urgent issue to be solved.

Thanks in advance

Regards
H.Rajesh
([EMAIL PROTECTED])
SSPL,India



Session Problem - URGENT!!!!

2002-05-10 Thread Rajesh Harikrishnan

Hi All,

 I am having a problem with the session objects, let me first explain how we have used 
the session object in our application

we have an application which is initalizing an 'SESSION' object when the user log's 
into the system. 
This object is used to store three attributes, 
1) we have used 'session.setAttribute()' and 'session.setValue()' methods for creating 
key pair value objects in the session.
2) We have also used the 'session.getAttribute()' and 'session.getValue()' for 
retriving the data from the session object.
3) We have not used the 'session.removeAttribute()' any where in our application.
4) But in all pages, to check the session object validity, we have used 
'request.getSession()'.

Does calling this creates a attribute set in a old session object to be incorrectly 
re-written?.

The problem:
We are getting this following problem randomly,

The session object exists, but the attributes inside the session object unbinds and 
returns a null value!!.


We are using 'Apache1.3.20+Tomcat3.2.2' for our application. we have also set our 
'setMaxInactiveInterval(3)' when creating the session object for the first time.

What is the cause of the attributes being removed from the session object, or in case 
is the session object itself is created as a new object during 'request.getSession()' 
calls and causing this problem.

Have you people faced similar problems??.

Please post your reply on this issue, this is a very urgent issue to be solved.

Thanks in advance

Regards
H.Rajesh
([EMAIL PROTECTED])
SSPL,India



Please Help - New to SSL

2002-05-10 Thread Rajesh Harikrishnan

Hi,

I am a newbie to the Security Region, Can some body help me to configure my 
existing setup to support the 'SSL' with 'HTTPS' protocol and other regular 
webapplications to run on 'HTTP'.

My current setup is:
Apache 1.3.20
Tomcat 3.2.2
Jdk 1.3.1 (Standard)
Windows NT 4.0

1) How can i configure this setup to support 'HTTPS-SSL' for only a part of my already 
running application??. 
2) What the changes i need to make to this existing environment?
3) People speak about 'mod_ssl', is one available for windows environment??
4) How can i ask my apache to redirect to 'HTTPS' over 'SSL' for only a particular 
part of my application and then back to 'HTTP' when navigated to other modules??.

Looking forward for your kind help on these issues!!.

Thanks in advance

Regards
H.Rajesh
([EMAIL PROTECTED])
SSPL, Chennai
India.



Re: Apache 2 TomCat 4 Integration Troubles...

2002-04-26 Thread Rajesh Harikrishnan

HI Frederick,

You can always try defining the LoadModule with the full path of the
physical system. ie.if the mod_webapp.so is found in
E:\Apache\modules\mod_webapp.so you can specify them as follows:

LoadModule webapp_module E:/Apache/modules/mod_webapp.so
AddModule mod_webapp.c

Try this..

Regards
H.Rajesh
(Webteam)
[EMAIL PROTECTED]
SSPL India.

- Original Message -
From: Frederick Aubert [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, April 26, 2002 6:14 PM
Subject: Re: Apache 2  TomCat 4 Integration Troubles...


 Hi

 Syntax error on line 173 of D:/Server/Apache Group/
Apache2/conf/http.conf
 Cannot load D:\Server\Apache Group\Apache2\./modules/mod_webapp.so into
 server: The specified module could not be found...

 Here is the error message I got whenever I add the following line to my
 httpd: LoadModule webapp_module modules/mod_webapp.so. But what is
suprising
 me is that in the other LoadModule lines of the default httpd are using
 exactly the same syntaxis, for example I find: LoadModule userdir_module
 modules/mod_userdir.so which is working fine. Nonetheless I tried to
change
 the slash to a backslash (LoadModule webapp_modules modules\mod_webapp.so)
 but that doesn't change the error message. I double checked and have the
 mod_webapp.so file along in my modules directory... Any thought? Where is
 the ./ coming from? Any help appreciated?

 Sincerely, Frederick Aubert


 --

 !!! PLEASE UPDATE your address book, my NEW EMAIL is [EMAIL PROTECTED]
!!!

 Member of the Warlords II World Tournament Organizers Team

 ---
   (`-''-/).___..--''`-._
`6_ 6  )   `-.  ( ).`-.__.`)   Frederick Aubert
(_Y_.)'  ._   )  `._ `. ``-..-'
  _..`--'_..-_/  /--'_.' ,'[EMAIL PROTECTED]
 (il),-''  (li),'  ((!.-'
 ---


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: How can I get the location of the webapps-directory?

2002-04-22 Thread Rajesh Nair

Hi
I think u can try getContextPath() which will give u the root of ur web application 
.To get access to resources inside WAR or other archive files u can use the method 
getResource(String URIPath);
 If the context is in a different m/c u can use getContext() to get the context first 
and then use either getResource() or getResourceAsStream() methods

*** REPLY SEPARATOR  ***

On 4/19/02 at 3:22 PM Eichfelder, Frank wrote:

Hi,

how can I get the location from the webapps-directory on my filesystem?

It's easy, if I use

String path = getServletContext().getRealPath(/);

and then cut off the last part:

int index = path.lastIndexOf(System.getProperty(file.separator),
path.length()-2 );

path = path.substring(0, index);

But this works only, if you have your webapplication unpacked in the
file-system or if you have set unpackWars=true.

Now, I have set unpackWars=false, and now I get null for
getServletContext().getRealPath(/).

Is there any possibility to get the name of the war-File an application is
stored in or the name of the directory the war-file is stored in?

Thanks,

Frank

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




createNewFile method not found error(JSP)-Peculiar problem(Help please)

2002-04-10 Thread RAJESH KANNAN



Hi all,

In my JSP,I am using the following code segment.

java.io.File statusFile = new java.io.File(d:/temp/test1);
statusFile.createNewFile();

I am using TOMCAT 3.2.3 in Windows2000 machine.(JDK1.3) It is throwing
following error.

org.apache.jasper.JasperException: Unable to compile class for
JSPD:\jakarta-tomcat-3.2.3\work\localhost_8080%2FWindchillConnector6\_0002fjsp_0002fWindchillServerConfig_0005fGUI_0005f
write_0002ejspWindchillServerConfig_0005fGUI_0005fwrite_jsp_0.java:431:
Method createNewFile() not found in class
java.io.File.
statusFile.createNewFile();
^
1 error

Can any one of you throw some light on this? I don't understand this
problem.


With Regards
K.RajeshKannan


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Servlet cannot read properties file

2002-01-28 Thread Rajesh Joshi

Hi,
My servlet is unable to read my properties file. 
1. I am running Apache Tomcat/4.0.1.
2. I have added the following lines on server.xml file

   !-- add context for my test servlet --
   Context path=
 docBase=D:/TestServlet
 crossContext=false
 debug=0
 reloadable=false 
/Context

3. My class files and the .properties files are under
d:/TestServlet/WEB-INF/classes

4. Other jsp files are under
d:/TestServlet

My application was working fine..but now I want to externalize some
variables and read them through the properties file. Also I don't want it to
be shared between different servlets .It doesn't seem to work.


Code snippet which reads the file..
...
...
private static ResourceBundle bundle;

static {

bundle = ResourceBundle.getBundle(preference);
}

//preference.properites is under d:/TestServlet/WEB-INF/classes direcory


Thanks for your help
Rajesh

## This email communication may contain CONFIDENTIAL
INFORMATION and is intended only for the use of the intended recipients
identified above.  If you are not the intended recipient of this
communication, you must not use, disclose, distribute, copy or print this
email. If you have received this communication in error, please immediately
notify the sender by reply email, delete the communication and destroy all
copies.

##



HELP - PWS/IIS to Tomcat redirect

2001-12-25 Thread Rajesh Kulkarni

Hi,

I have TOMCAT-4.0  PWS for Windows-95 installed on my machine.
I wish to redirect Tomcat requests (servlet) through PWS. Where can I find
Redirector plug-in for the same?

Thanks

Rajesh

*
Disclaimer

This message (including any attachments) contains 
confidential information intended for a specific 
individual and purpose, and is protected by law. 
If you are not the intended recipient, you should 
delete this message and are hereby notified that 
any disclosure, copying, or distribution of this
message, or the taking of any action based on it, 
is strictly prohibited.

*
Visit us at http://www.mahindrabt.com

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




problems facing while configuring the Tomcat

2001-12-15 Thread rajesh kumar jhaver

Dear Sir,

I have installed and LINUX, POSTGRESQL and APACHE
server in my computer. all the configured properly.i
am able to get the index page page of apache by
invoking the url like http://ip address,
but when i installed the TOMCAT, i am not able to
invoke default servlet. please help me for getting
this.


thanks and regards,
rajesh kumar

__
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




SSL Governed by Web Server

2001-11-29 Thread RAJESH KANNAN

Hi all,

We have SSL implemented web servers(Apache,IIS). Meaning to invoke our CGI 
programs, user has to submit the certificate.

We would like to extend that SSL for invoking our servlets also. Our 
servlets are running under TomCAT. In our application environment TomCAT and 
webserver(IIS or Apache) will be always integrated.

Hence we would like to extend the webserver SSL rather than writing a 
seperate SSL for TOMCAT.



How can we go about???

RajeshKannan



_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Loading a file in servlet

2001-11-21 Thread Rajesh Kannan


Dear all,

We are developing a web application consisting of some servlets and JSPs.

To execute our servlets we need to get some values from a property file.

Presently we are hardcoding the path of the property file and loading it.

As in realtime we may be knowing the path we want to load that file without 
hardcoding.

How normally property files are loaded into Java servlets???

Can any one throw light on this?

We will be grateful if you give some hints.

Thanks in advance

With regards
K.RajeshKannan 


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Out of environment space

2001-08-30 Thread Rajesh Nair

Hi 

Ive set the initial space to 4096.
However if i run startup.bat...
it says starting tomcat in  new window and then
bad command or file name
and ends

if i run tomcat.bat
it gives the foll error
2001-08-30 17:18:18 The file argument '^' does not
 exist.

i wonder why...

thanks

Raj

--- [EMAIL PROTECTED] wrote:
 I had exactly the same problem.
 
 Type in the command in a DOS box instead of double
 clicking the batch file
 in a window. First, click the icon in the top left
 of the DOS window, choose
 properties, and the memory tab, then initial
 environment. It is probably set
 to Auto. Choose 4096, which I think is the highest
 possible. Then click
 apply, close the window, and open it up again and
 run the startup.bat batch
 file. That should take care of it.
 
 Also add:
 SHELL=C:\command.com /P /E:4096
 
 to your config.sys file. (Thanks Ted!)
 
 ---
 James
 
 
 - Original Message -
 From: Rajesh Nair [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, August 30, 2001 4:03 PM
 Subject: Out of environment space
 
 
 
  Hi,
 
  I have downloaded Tomcat 3.2.3 and when I try to
 run
  startup.bat(Win 98 ) I get the following output:
 
  Including all jars in d:tomcat\lib in your
 CLASSPATH
 
  Using CLASSPATH:d:\.
 
  bad command or file name
 
  out of environment space
 
  Including all jars in d:tomcat\lib in your
 CLASSPATH
 
  out of environment space
 
  2001-08-30 15:54:18 The file argument '^' does not
  exist.
 
  This problem may have occured to someone before.
 
  Please tell me what the problem is??
 
  Cheerz
 
  Raj
 
 
 
 
 
 
 
  __
  Do You Yahoo!?
  Get email alerts  NEW webcam video instant
 messaging with Yahoo!
 Messenger
  http://im.yahoo.com
 
 
 


__
Do You Yahoo!?
Get email alerts  NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com



Out of environment space

2001-08-29 Thread Rajesh Nair


Hi,

I have downloaded Tomcat 3.2.3 and when I try to run
startup.bat(Win 98 ) I get the following output:

Including all jars in d:tomcat\lib in your CLASSPATH

Using CLASSPATH:d:\.

bad command or file name

out of environment space

Including all jars in d:tomcat\lib in your CLASSPATH

out of environment space

2001-08-30 15:54:18 The file argument '^' does not
exist.

This problem may have occured to someone before.

Please tell me what the problem is??

Cheerz

Raj







__
Do You Yahoo!?
Get email alerts  NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com



does tomcat3.2.1 and apache1.3.14 are slow

2001-08-21 Thread Rajesh

Hi,

  Can anybody tell me that why tomcat is slow handling the request
coming form Apache1.3.14.
I am using Window2000 prof.
Pls help

Rajesh






how to automatically load the servlet

2001-08-21 Thread Rajesh

Hi,
How to load the servlet when tomcat3.2.1 starts

can anyone help me
Rajesh




Re: how to automatically load the servlet

2001-08-21 Thread Rajesh

Hi,
Thanx for everyone's response.
Can anyone tell me why tomcat takes time to forwards the request.
I am using tomcat3.2.1 and apache1.3.14 with mod_jk.dll
Rajesh

Thomas Tuft Muller wrote:

 See the load-on-startup/load-on-startup servlet parameter.

 --

 Thomas

 | -Original Message-
 | From: Rajesh [mailto:[EMAIL PROTECTED]]
 | Sent: 21 August 2001 15:25
 | To: [EMAIL PROTECTED]
 | Subject: how to automatically load the servlet
 |
 |
 | Hi,
 | How to load the servlet when tomcat3.2.1 starts
 |
 | can anyone help me
 | Rajesh
 |
 |

 *
 Copyright ERA Technology Ltd. 2001. (www.era.co.uk). All rights reserved.
 Confidential. No liability whatsoever is accepted for any loss or damage
 suffered as a result of accessing this message or any attachments.




where to find the Free Java TestingTool!!

2001-06-04 Thread Rajesh Chandran M. R.

Hi!!


  I want to test my web application developed in java.If U pls inform me
about the links for free java testingtool with license it would be more
helpful to me.

Thankx in advance,
Regards,
chandran...



Re: Auth bug in 3.2.1?

2001-04-16 Thread Rajesh A

I found this bug report- 
http://znutar.cortexity.com/BugRatViewer/ShowReport/757. I think this is 
what we are talking about. It has already been fixed in 3.2.2beta3. I 
installed it and my problem seems to have been solved. I will be interested 
to know if this beta3 release solves the problems others have posted in this 
thread "Auth bug in 3.2.1".

Rajesh

From: "Jeff Kilbride" [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Auth bug in 3.2.1?
Date: Sat, 14 Apr 2001 16:01:20 -0700

Hi Thom,

Thanks for posting a solution! I was just about to start exploring
JDBCRealms.

Did you post this as a patch to the Tomcat-dev list? If not, that might be
the best first step, since it looks like you've solved the problem. Who
knows how long it will take for someone on the Dev side to read through 
this
list and find this thread...

--jeff

- Original Message -
From: "Rajesh A" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, April 14, 2001 8:12 AM
Subject: Re: Auth bug in 3.2.1?


  I completely agree with Marc. This is a very serious problem and if I
  understand Thom's mail right, it affects ALL realms including 
SimpleRealm,
  JDBCRealm etc.
 
  I also request others using tomcat auth to revisit their applications 
and
  make sure users and roles are being assigned properly. Perhaps many may 
be
  hit by this problem but have not discovered it yet. Without a solution 
to
  this problem I will have to redesign security for my application and 
that
  will blow my project plan!
 
  We already seem to have a solution posted by Thom Park. Can someone from
  tomcat dev please consider it and release a patch?
 
  Please help.
 
  Rajesh
 
 
  From: Marc Palmer [EMAIL PROTECTED]
  Reply-To: [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: Re: Auth bug in 3.2.1?
  Date: Sat, 14 Apr 2001 08:08:21 GMT
  
   Hi Marc,
   I saw this problem in 3.2.1 as well  - I made a fix for it in the
tomcat
  that ships with the Borland AppServer but
   couldn't get anyone to comment on the fix in the main code-line
  (essentially I'm not a commiter so couldn't submit the fix)
  Hi Thom,
  Thanks for the info. Can someone from the Tomcat development team 
please
  comment on this? I would have thought that this was quite a serious
  security problem - am I wrong?
  The way I see it, the bug could lead to anybody grabbing another user's
  role while appearing to be somebody else. This is certainly possible if
  you use somebody else's PC after they have. It may be even worse if you
  can also do this from a different PC - essentially getting a "random"
  role that somebody else already "provided" by logging in. Not to 
mention
  plain old failure in the case where a higher "privileged" person get's 
a
  lower privileged role allocated. It's not clear at this time whether 
the
  principal caching is tied to IP or "per pooled connection". If the
  latter, it's a bit more scary.
  So once again, can someone from the Tomcat team PLEASE comment on this
  problem and whether a fix is being implemented? Perhaps there is too 
much
  work/redesign going on in 4.0 for people to consider patching 3.2.x but 
I
  would have thought this is pretty essential, and perhaps even merits a
  post to the BUGTRAQ mailing list. We already have 3 confirmed 
"sufferers"
  - who knows how many systems that depend on tomcat have slipped through
  the net and represent significant authentication breaches?
  
  Cheers
  
  
 
  
_
  Get Your Private, Free E-mail from MSN Hotmail at 
http://www.hotmail.com.
 


_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.




Re: Auth bug in 3.2.1?

2001-04-14 Thread Rajesh A

I completely agree with Marc. This is a very serious problem and if I 
understand Thom's mail right, it affects ALL realms including SimpleRealm, 
JDBCRealm etc.

I also request others using tomcat auth to revisit their applications and 
make sure users and roles are being assigned properly. Perhaps many may be 
hit by this problem but have not discovered it yet. Without a solution to 
this problem I will have to redesign security for my application and that 
will blow my project plan!

We already seem to have a solution posted by Thom Park. Can someone from 
tomcat dev please consider it and release a patch?

Please help.

Rajesh


From: Marc Palmer [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Auth bug in 3.2.1?
Date: Sat, 14 Apr 2001 08:08:21 GMT

 Hi Marc,
 I saw this problem in 3.2.1 as well  - I made a fix for it in the tomcat
that ships with the Borland AppServer but
 couldn't get anyone to comment on the fix in the main code-line
(essentially I'm not a commiter so couldn't submit the fix)
Hi Thom,
Thanks for the info. Can someone from the Tomcat development team please
comment on this? I would have thought that this was quite a serious
security problem – am I wrong?
The way I see it, the bug could lead to anybody grabbing another user's
role while appearing to be somebody else. This is certainly possible if
you use somebody else's PC after they have. It may be even worse if you
can also do this from a different PC – essentially getting a "random"
role that somebody else already "provided" by logging in. Not to mention
plain old failure in the case where a higher "privileged" person get's a
lower privileged role allocated. It's not clear at this time whether the
principal caching is tied to IP or "per pooled connection". If the
latter, it's a bit more scary.
So once again, can someone from the Tomcat team PLEASE comment on this
problem and whether a fix is being implemented? Perhaps there is too much
work/redesign going on in 4.0 for people to consider patching 3.2.x but I
would have thought this is pretty essential, and perhaps even merits a
post to the BUGTRAQ mailing list. We already have 3 confirmed "sufferers"
– who knows how many systems that depend on tomcat have slipped through
the net and represent significant authentication breaches?

Cheers



_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.




Re: Auth bug in 3.2.1?

2001-04-13 Thread Rajesh A

Thom,

Thanks for the detailed explanation and the solution. I am facing the same 
problem using jdbcRealm on tomcat3.2.1. Has anyone reported this as a bug 
and do we expect to have a fix soon? I am a new tomcat user and have never 
attempted to make code changes or never tried compiling tomcat source.

Please help..
Rajesh

From: Thom Park [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Auth bug in 3.2.1?
Date: Thu, 12 Apr 2001 22:31:26 -0700

Hi Marc,

I saw this problem in 3.2.1 as well  - I made a fix for it in the tomcat 
that
ships with the Borland AppServer but
couldn't get anyone to comment on the fix in the main code-line 
(essentially
I'm not a commiter so couldn't submit the fix)

Here's what I found:

The following code is in org.apache.tomcat.core.RequestImpl.java:

 public Principal getUserPrincipal() {
  if( getRemoteUser() == null ) return null;
  if( principal == null ) {
  principal=new SimplePrincipal( getRemoteUser() );
  }
  return principal;
 }

Notice the call to SimplePrincipal - this creates a new SimplePrincpal 
object
(i.e. a java.security.principal) using the
name associated with the remote User call.

I found two problems with this approach -

1. The username used was not that of the current user - it was of the
previously authorized user - subsequent users after the first one to be
authorized
 didn't get changed  the reason for this is that the only time we 
refresh
the principal with a new user, is if the principal was null, but, in this
case, it wasn't
 the principal still held the previous user's principal..

2. If you were using a custom Realm for authorization (e.g. LDAPRealm), 
then
this 'new' principal wouldn't be valid for that authorization object.
If the servlet tried to use that 'special' principal for use with some
other software, it would no longer be the 'special' principal -it would be 
a
SimplePrincipal.


  It blew my J2EE CTS testing out of the water in several places.

I fixed it by doing the following:
1.  in org.apache.tomcat.core.RequestImpl.java: I made the following change
to getUserPrincipal:

 public Principal getUserPrincipal() {
  if( getRemoteUser() == null ) return null;
  // else return principal
  return principal;
 }

And in SimplRealm (and JDBCRealm and any other special Realm Manager) I 
added
the following to the authenticate method:
(in bold).  My rationale for making this change was that, given it was the
Realm manager's job to authenticate the user - and, only after 
authentication

should the userPrincipal be set, I moved the responsibility for setting the
UserPrincipal to the Realm manager.

This also meant that, at any time following successful authorization, the
current user principal would be correct for the user.

 public int authenticate( Request req, Response response )
 {
  // Extract the credentials
  Hashtable cred=new Hashtable();
  SecurityTools.credentials( req, cred );

  // This realm will use only username and password callbacks
  String user=(String)cred.get("username");
  String password=(String)cred.get("password");

  if( debug  0 ) log( "Verify user=" + user + " pass=" + password );
  if( memoryRealm.checkPassword( user, password ) ) {
  if( debug  0 ) log( "Auth ok, user=" + user );
  req.setRemoteUser( user );
 // set principal as well
 req.setUserPrincipal(new SimplePrincipal(user));
 Context ctx = req.getContext();
 if (ctx != null)
 req.setAuthType(ctx.getAuthMethod());
 }
  return 0;
 }

Anyway, that's the story behind this particular problem.

There's also a bug in support for security-role-links but that's another
story ;-)

-Thom


Marc Palmer wrote:

  Hi,
 
  I'm a relative tomcat newbie but have discovered what looks to me like a
  bug in the simple tomcat-user.xml authentication interceptor.
 
  In a nutshell:
 
  In tomcat-users.xml I have 2 users, in 2 different roles, let's say:
 
  "john" has role "manager"
  "jane" has role "clerk"
 
  They auth fine, my servlet is protected using this scheme, everything is
  beautiful.
 
  However, when a (real life) user exits their browser (to clear auth
  credentials) and opens a browser again on the same PC and goes to my 
site
  and logs in as a different tomcat user, the user Principal remains the
  same as the previous request, but the role changes!
 
  Step by step:
 
  1) User logs in as "jane". Servlet prints "user = jane, role=clerk"
 
  2) User closes and re-opens browser window.
 
  3) User logs in again, this time as "john". Servlet prints "user = jane,
  role = manager".
 
  So, basically getUserPrincipal is not changing, for some WEIRD reason.

First ExceptionInInitializerError Then NoClassDefFoundError

2001-04-04 Thread Rajesh A

Everytime I start tomcat 3.2.1 (win2k) and run a servlet I get 
java.lang.ExceptionInInitializerError. Subsequent requests to the same 
servlet throw java.lang.NoClassDefFoundError. The servlet class file is 
located in the webapps/myapp/web-inf/classes/. This dir is in the classpath 
before starting tomcat.

I found similar problem reported in the archives but no solutions. I might 
have missed something very silly. Please help.

Rajesh
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.




Re: configuring Tomcat on Windows 2000 and IIS

2001-03-21 Thread Rajesh Jumde



Thanx Sal,
 Through your response for the mail i came to know how to
add ISAPI filter.
 But I am getting the red arrow pointing downwards.
 I followed all the steps from the document Tomcat IIS
How To.
 Can you suggest me any solution for the same.
Regards,
Rajesh
Salvatore Borrelli wrote:

Hi,
these are the steps you should follow:1.
run the Internet Services Manager MMC (i.e. ...\winnt\system32\iis.msc)2.
open your IIS server icon, right click the Web Server to which you whish
to add the ISAPI (e.g. Default Web Site), then choose Properties3.
from the Web Site Properties dialog window, choose the "ISAPI Filters"
property page and then click the Add button to open the Filter Properties
dialog box4. insert a name
for the ISAPI Redirector filter (I inserted the name "jakarta", suggested
in the Tomcat documentation), and the full path of the filter (which under
my system is $TOMCAT_HOME\bin\win32\i386\isapi_redirect.dll), then press
OK to add the redirector to IIS ISAPI filters5.
restart IIS (right click on the Web Server icon and choose Restart IIS
from the popup-menu)6. reopen
the ISAPI Filters tab to check that the redirector status contains an up
green arrow icon. If it does, you've done ...Hope
this helps,Sal.

- Original Message -

From:
Hwa-Su Kim

To: [EMAIL PROTECTED]

Sent: Wednesday, March 21, 2001 3:19
AM

Subject: configuring Tomcat on Windows
2000 and IIS
Hi,I've
been trying to configure the ISAPI Redirector on Windows 2000 server. I
followed the instruction that comes with Tomcat, tomcat_install\doc\tomcat-iis-howto.html.
My question is how do I add isapi_redirect.dll as a filter using the IIS
management console (configuring the ISAPI Redirector - step 8).
I've tried to add Filter DLLs using regedit, but I don't think it worked.
How would I set this up in Windows 2000. Where can I see the green up-pointing
arrow?Thanks
for your help.Hwa-Su
Kim






Re: configuring Tomcat on Windows 2000 and IIS

2001-03-21 Thread Rajesh Jumde



Thanx everybody I got the index page for the jsp.
Thanx to everyone for there responses.
Regards,
Rajesh
Salvatore Borrelli wrote:

Hi,
these are the steps you should follow:1.
run the Internet Services Manager MMC (i.e. ...\winnt\system32\iis.msc)2.
open your IIS server icon, right click the Web Server to which you whish
to add the ISAPI (e.g. Default Web Site), then choose Properties3.
from the Web Site Properties dialog window, choose the "ISAPI Filters"
property page and then click the Add button to open the Filter Properties
dialog box4. insert a name
for the ISAPI Redirector filter (I inserted the name "jakarta", suggested
in the Tomcat documentation), and the full path of the filter (which under
my system is $TOMCAT_HOME\bin\win32\i386\isapi_redirect.dll), then press
OK to add the redirector to IIS ISAPI filters5.
restart IIS (right click on the Web Server icon and choose Restart IIS
from the popup-menu)6. reopen
the ISAPI Filters tab to check that the redirector status contains an up
green arrow icon. If it does, you've done ...Hope
this helps,Sal.

- Original Message -

From:
Hwa-Su Kim

To: [EMAIL PROTECTED]

Sent: Wednesday, March 21, 2001 3:19
AM

Subject: configuring Tomcat on Windows
2000 and IIS
Hi,I've
been trying to configure the ISAPI Redirector on Windows 2000 server. I
followed the instruction that comes with Tomcat, tomcat_install\doc\tomcat-iis-howto.html.
My question is how do I add isapi_redirect.dll as a filter using the IIS
management console (configuring the ISAPI Redirector - step 8).
I've tried to add Filter DLLs using regedit, but I don't think it worked.
How would I set this up in Windows 2000. Where can I see the green up-pointing
arrow?Thanks
for your help.Hwa-Su
Kim






Help required

2001-03-20 Thread Rajesh Jumde


Hello everybody,
 I am trying to configure Tomcat with IIS5.0 on Windows2000
prof.
 I followed the document Tomcat IIS How To..
 But when i restart the IIS the jakarta filter does not
show the green up arrow.
 As well as when i run Tomcat with bin\startup it gives
me the error as
 The system cannot find the batch
label specified - startServer
 What is the problem?
Thanx in advance
Rajesh


Help required

2001-03-19 Thread Rajesh Jumde


Hello there,
 In the document Tomcat IIs How To has a statement called
The IIS redirector is not part of the "official"
build of Jakarta, You can obtain the code and binaries needed for it by
accessing
http://jakarta.apache.org/builds/tomcat/release/v3.1_beta_1/bin/win32/i386/.
The redirector related file is isapi_redirect.dll.
in the INSTALLATION para.
but when i tried the given url it gives me the error as HTTP 404 page
not found.
I want to test whether IIS works on Tomcat or not, so can you pls suggest
me that what should be done to configure Tomcat to IIS.
where from i will get all the installation files for Tomcat and how
to configure it..
Thanx and Regards,
Rajesh


Form-Based Auth and tracking Login Attempts

2001-03-07 Thread Rajesh A

I am using tomcat 3.2.1 + form-based authentication + jdbcRealm with oracle 
database. Everything has been configured and works perfect.

Now I have a requirement to lock a user account upon 3 consecutive login 
attempt failures. The user then needs to contact the application 
administrators to get their account unlocked.

I have tried searching this mailing list's archives with no luck. In 
form-based auth my login.jsp page has a html form that is submitted to 
j_security_check handled by the container. So I have no control it and so 
not able to count the number of login failures. Any help appreciated!

Rajesh
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


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




ajp12 error while making servlet call

2000-12-20 Thread Srinivas, Rajesh

hi ,
i get this error frequently in the mod_jserv.log, and tomcat does not seem
to respond to any servlet call.

[20/12/2000 14:46:39:366] (EMERGENCY) ajp12: can not connect to host
127.0.0.1:8083
[20/12/2000 14:46:39:369] (EMERGENCY) ajp12: connection fail
[20/12/2000 14:46:39:370] (ERROR) an error returned handling request via
protocol "ajpv12"

thanks
Rajesh





error while trying to create mod_jk for tomcat3.2

2000-12-20 Thread Srinivas, Rajesh

hi,
  I am new to unix and i am trying to create mok_jk.so. i am getting the
following errors when i execute the following command,

apxs -o mod_jk.so -DSOLARIS -I../jk -I/usr/java1.2/include
-I/usr/java1.2/include/solaris -c *.c ../jk/*.c

apxs:Error: Sorry, no DSO support for Apache available
apxs:Error: under your platform. Make sure the Apache
apxs:Error: module mod_so is compiled into your server
apxs:Error: binary `/usr/local/apache/bin/httpd'. 

I have installed ActivePerl5.6 as well as Apache1.3.

thanks in advance,
Rajesh





error while trying to create mod_jk for tomcat3.2

2000-12-20 Thread Srinivas, Rajesh

hi,
  I am new to unix and i am trying to create mok_jk.so. i am getting the
following errors when i execute the following command,

apxs -o mod_jk.so -DSOLARIS -I../jk -I/usr/java1.2/include
-I/usr/java1.2/include/solaris -c *.c ../jk/*.c

apxs:Error: Sorry, no DSO support for Apache available
apxs:Error: under your platform. Make sure the Apache
apxs:Error: module mod_so is compiled into your server
apxs:Error: binary `/usr/local/apache/bin/httpd'. 

I have installed ActivePerl5.6 as well as Apache1.3.

thanks in advance,
Rajesh







RE: Netscape displaying the HTML code

2000-12-19 Thread Srinivas, Rajesh

hi,
 I suppose you have to set the content type as text/html using the
setContentType() method of response object.
Hope this helps.
Rajesh

-Original Message-
From: Guntupalli Shanti [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 19, 2000 1:16 PM
To: [EMAIL PROTECTED]
Subject: Netscape displaying the HTML code


Hi,

I have tomcat 3.2 running on Apache 1.3.14.
All the HTML content in my web site is returned by the servlets based on 
the templates passed
in the query. Something like

http://www.myserver.com:8070/examples/servlet/servletname?page=main

where main is a html template file.
When I am accessing the page from IE I get exactly what I want
but when I access this in netscape it displays all the HTML code.
Does any one know how to fix it?

Thanks in advance
Shanti