Tomcat on Solaris 10

2005-06-17 Thread Sunil
Hi,

Has anyone got Tomcat running on Solaris 10? Your responses will be
appreciated.

Thanks


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



24X7 deployment tips

2005-01-11 Thread sunil goyal
Hi all,

I am looking for resources for building and deploying
24X7 large scale web applications using Java. Can
anyone point towards any good books/links for the
same?

If I am trying to deploy an application via
apache/tomcat on a linux platform, is it possible to
upgrade certain servlets without actually shutting
down the server. What kind of principle is generally
followed in real life applications for the same?

Any help in this regard is appreciated.

Thanks

Regards
Sunil 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



mod_jk2 and tomcat 5 error

2004-11-19 Thread sunil goyal
Hello all,

I am trying to integrate modk_jk2 with httpd and
tomcat5 on Fedora Core 2, but I am unable to integrate
it.

http://localhost/jkstatus works fine
but when I try to request the standard examples
provided in tomcat using
http://localhost/servlets-examples/ - it gives error.

I am using Fedora Core 2.
Apache/2.0.49
tomcat-5.0.28
jk2-2.0.4

After starting tomcat, a file called jk2.socket should
exist in /opt/tomcat/work/ .

But this file is not created.

When I try this url
http://localhost/servlets-examples/

my /var/log/httpd/error_log contains

[Fri Nov 19 13:13:28 2004] [error] channelUn.connect()
connect failed 2 No such file or directory
[Fri Nov 19 13:13:28 2004] [error] ajp13.connect()
failed ajp13:/opt/tomcat/work/jk2.socket
[Fri Nov 19 13:13:28 2004] [error] ajp13.service()
failed to connect endpoint errno=2 No such file or
directory
[Fri Nov 19 13:13:28 2004] [error] ajp13.service()
Error  forwarding ajp13:/opt/tomcat/work/jk2.socket 1
1
[Fri Nov 19 13:13:28 2004] [error] lb.service() worker
failed 12 for ajp13:/opt/tomcat/work/jk2.socket
[Fri Nov 19 13:13:28 2004] [error] lb_worker.service()
all workers in error or disabled state
[Fri Nov 19 13:13:28 2004] [error] mod_jk2.handler()
Error connecting to tomcat 12, status 503



Then I created this file using "touch jk2.socket"
and gave permissions like chmod 666 jk2.socket 
I also gave similar permissions to /opt/tomcat/work
And after that I started apache.

Now after this http://localhost/jkstatus works fine. 
But http://localhost/servlet-examples/ still gives
error 

It gives a permission denied error in
/var/log/httpd/error_log

[error] channelUn.connect() connect failed 13
Permission denied
[Fri Nov 19 13:17:53 2004] [error] ajp13.connect()
failed ajp13:/opt/tomcat/work/jk2.socket
[Fri Nov 19 13:17:53 2004] [error] ajp13.service()
failed to connect endpoint errno=13 Permission denied
[Fri Nov 19 13:17:53 2004] [error] ajp13.service()
Error  forwarding ajp13:/opt/tomcat/work/jk2.socket 1
1
[Fri Nov 19 13:17:53 2004] [error] lb.service() worker
failed 12 for ajp13:/opt/tomcat/work/jk2.socket
[Fri Nov 19 13:17:53 2004] [error] lb_worker.service()
all workers in error or disabled state
[Fri Nov 19 13:17:53 2004] [error] mod_jk2.handler()
Error connecting to tomcat 12, status 503

Tomcat gives this error
Nov 19, 2004 2:21:50 PM org.apache.jk.server.JkMain
start
INFO: APR not loaded, disabling jni components:
java.io.IOException: java.lang.U nsatisfiedLinkError:
/usr/lib/httpd/modules/jkjni.so:
/usr/lib/httpd/modules/jkjni.so: undefined symbol:
apr_md5_final
Nov 19, 2004 2:21:50 PM
org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Nov 19, 2004 2:21:50 PM org.apache.jk.server.JkMain
start
INFO: Jk running ID=0 time=1/105 
config=/opt/tomcat/conf/jk2.properties


My config files are:
jk2.properties
--
handler.list=apr,request,channelUnix
  
 
channelUnix.file=/opt/tomcat/work/jk2.socket
  
 
serverRoot=/etc/httpd
apr.NativeSo=/usr/lib/httpd/modules/jkjni.so

worker2.properties
---
[shm]
info=Scoreboard. Required for reconfiguration and
status with multiprocess servers.
file=/opt/tomcat/logs/jk2.shm
size=1048576
debug=0
disabled=0

# Unix domain socket
[channel.un:/opt/tomcat/work/jk2.socket]
tomcatId=localhost:8009
debug=0
  
 
# define the worker
[ajp13:/opt/tomcat/work/jk2.socket]
channel=channel.un:/opt/tomcat/work/jk2.socket

[status:status]
info=Status worker, displays runtime information
  
 
[uri:/jkstatus/*]
#info= The Tomcat /jkstatus handler

group=status:status
  
 
[uri:/servlets-examples/*]


It will be great if someone can help find me the
mistake that I am making.

Thanks

Regards
Sunil





__ 
Do you Yahoo!? 
The all-new My Yahoo! - Get yours free! 
http://my.yahoo.com 
 


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



Starting At Virtual IP

2003-12-30 Thread Sunil Gavaskar
Hi,
   I need to start Tomcat at Virtual IP.
I have configured workers.properties and server.xml but Tomcat gets
started in all IP ( 0.0.0.0)
Plz throw your useful inputs on these!!
Regards
Gavaskar..!


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


Problems with JMX Bean in Tomcat4.1.18

2003-03-10 Thread Joshua Sunil Kumar

Hi
I have a problem with JMX Bean it was giving the following  error

ServerLifecycleListener: Creating MBean for Connector
[EMAIL PROTECTED]
java.lang.Exception: ManagedBean is not found with Ajp13Connector
at
org.apache.catalina.mbeans.MBeanUtils.createMean(MBeanUtils.java:234)


I commented out the code for the JMX Bean in the server.xml bcos in one of
the posts in the mail-archive site I found the JMX BEan and the Apj13 cannot
be used together. But
now I am getting these errors after commenting out the JMX Bean code.



java.net.BindException: Address already in use
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:447)
at java.net.ServerSocket.(ServerSocket.java:165)
at java.net.ServerSocket.(ServerSocket.java:116)
at
org.apache.catalina.net.DefaultServerSocketFactory.createSocket(DefaultServe
rSocketFactory.java:147)
at
org.apache.ajp.tomcat4.Ajp13Connector.open(Ajp13Connector.java:825)
at
org.apache.ajp.tomcat4.Ajp13Connector.start(Ajp13Connector.java:1071)
at
org.apache.catalina.core.StandardService.start(StandardService.java:506)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
java.lang.NullPointerException
at
org.apache.ajp.tomcat4.Ajp13Connector.run(Ajp13Connector.java:869)
at java.lang.Thread.run(Thread.java:479)


Tags in server.xml which is commented.

  

**Disclaimer

Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying 
or dissemination of the information contained in the E-MAIL in any manner 
whatsoever is strictly prohibited.

***

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

RE: Exception on Tomcat

2003-03-10 Thread Joshua Sunil Kumar
Hi
There is a jar file called activation jar. This file is not your classpath.
Add it up in ur classpath and the exceptions will disappear.

BR
Joshua


-Original Message-
From: Marcelo [mailto:[EMAIL PROTECTED]
Sent: Monday, March 10, 2003 7:00 PM
To: tom cat
Subject: Exception on Tomcat


Does anybody knows what this exception means? It
appers when I try to send a email(function that I get
from the webmail package of java):

org.apache.jasper.JasperException:
javax/activation/DataSource


thanks

Marcelo.

___
Busca Yahoo!
O serviço de busca mais completo da Internet. O que você pensar o Yahoo!
encontra.
http://br.busca.yahoo.com/

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

**Disclaimer

Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying 
or dissemination of the information contained in the E-MAIL in any manner 
whatsoever is strictly prohibited.

***

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

RE: Problem with sticky session in Tomcat4.1.18 and Apache 2.0.43 using mod_JK Connector.

2003-03-10 Thread Joshua Sunil Kumar
Hi
The sessiion problem has been fixed but I am getting the following error
something with the JMX Bean
I commented out the code for the JMX Bean in the server.xml bcos in one of
the posts I found the JMX BEan and the Apj13 cannot be used together. But
now I am getting these errors.


java.net.BindException: Address already in use
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:447)
at java.net.ServerSocket.(ServerSocket.java:165)
at java.net.ServerSocket.(ServerSocket.java:116)
at
org.apache.catalina.net.DefaultServerSocketFactory.createSocket(DefaultServe
rSocketFactory.java:147)
at
org.apache.ajp.tomcat4.Ajp13Connector.open(Ajp13Connector.java:825)
at
org.apache.ajp.tomcat4.Ajp13Connector.start(Ajp13Connector.java:1071)
at
org.apache.catalina.core.StandardService.start(StandardService.java:506)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
java.lang.NullPointerException
at
org.apache.ajp.tomcat4.Ajp13Connector.run(Ajp13Connector.java:869)
at java.lang.Thread.run(Thread.java:479)


Tags in server.xml which is commented.

  

Can neone help me on this.

Thanx in advance.
Joshua




-Original Message-
From: Joshua Sunil Kumar [mailto:[EMAIL PROTECTED]
Sent: Monday, March 10, 2003 5:43 PM
To: Tomcat Users List
Subject: RE: Problem with sticky session in Tomcat4.1.18 and Apache
2.0.43 using mod_JK Connector.


Hi Eric
Thanx for the config files it works now. The only difference was the
jvmRoute in the server.xml.
There was a typo error in the server.xml file.

Bye
Joshua



-Original Message-
From: Roberts, Eric [mailto:[EMAIL PROTECTED]
Sent: Monday, March 10, 2003 3:37 PM
To: Tomcat Users List
Subject: RE: Problem with sticky session in Tomcat4.1.18 and Apache
2.0.43 using mod_JK Connector.


Joshua,

Here are the extracts from my conf files. I am running Apache 2.0.43 with
mod_jk and Tomcat 4.1.18 also, so please check carefully that you have
similar.

workers.properties:

worker.list=tomcat1,tomcat2,loadbalancer

worker.tomcat1.port=9019
worker.tomcat1.host=myhost
worker.tomcat1.type=ajp13
worker.tomcat1.lbfactor=100

worker.tomcat2.port=9029
worker.tomcat2.host=myhost
worker.tomcat2.type=ajp13
worker.tomcat2.lbfactor=100

worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=tomcat1, tomcat2

mod_jk.conf:

JkMount /manager loadbalancer
JkMount /manager/* loadbalancer

JkMount /admin loadbalancer
JkMount /admin/* loadbalancer

JkMount /myapp loadbalancer
JkMount /myapp/* loadbalancer

server.xml on Tomcat 1:


  




server.xml on Tomcat 2


  




HTH

Eric

-Original Message-
From: Joshua Sunil Kumar [mailto:[EMAIL PROTECTED]
Sent: 10 March 2003 10:45
To: Tomcat Users List
Subject: RE: Problem with sticky session in Tomcat4.1.18 and Apache
2.0.43 using mod_JK Connector.


Hi
I tried correcting the typo but it does not work .Infact the load balancing
itself doesn't work if I change it to jvmRoute.

BR
Joshua



-Original Message-
From: Roberts, Eric [mailto:[EMAIL PROTECTED]
Sent: Monday, March 10, 2003 2:52 PM
To: Tomcat Users List
Subject: RE: Problem with sticky session in Tomcat4.1.18 and Apache
2.0.43 using mod_JK Connector.


There is a typo in the server.xml - it should be jvmRoute.

The worker.list in your workers.properties appears to only contain the
loadbalancer:

  #worker.list=tomcat1,tomcat2,loadbalancer
  worker.list=loadbalancer
  #worker.list=loadbalancer

Uncomment the top line and remove the rest.

Are you using jk or jk2?

Eric


-Original Message-
From: Joshua Sunil Kumar [mailto:[EMAIL PROTECTED]
Sent: 10 March 2003 10:14
To: Tomcat Users List
Subject: RE: Problem with sticky session in Tomcat4.1.18 and Apache
2.0.43 using mod_JK Connector.


Hi
I check out in the server.xml there is no entry for jvmRoute. There is
something called jmvRoute is it a typo or something cos I corrected it to
jvmRoute and it still does not work



This is tag directly taken from server.xml in the tomcat4.1.18's conf
directory

BR
Joshua

-Original Message-
From: Roberts, Eric [mailto:[EMAIL PROTECTED]
Sent: Monday, March 10, 2003 2:13 PM
To: Tomcat Users List
Subject: RE: Problem with sticky session in Tomcat4.1.18 and Apache
2.0.43 using mod_JK Connector.


Filip's memory is correct.

In server.xml you need an entry on the engine element:
mailto:[EMAIL PROTECTED]
Sent: 10 March 2003 07:36
To: Tomcat Users List
Subject: RE: Problem with sticky session in Tomcat4.1.18 and Apache
2.0.43 using m

RE: Problem with sticky session in Tomcat4.1.18 and Apache 2.0.43 using mod_JK Connector.

2003-03-10 Thread Joshua Sunil Kumar
Hi Eric
Thanx for the config files it works now. The only difference was the
jvmRoute in the server.xml.
There was a typo error in the server.xml file.

Bye
Joshua



-Original Message-
From: Roberts, Eric [mailto:[EMAIL PROTECTED]
Sent: Monday, March 10, 2003 3:37 PM
To: Tomcat Users List
Subject: RE: Problem with sticky session in Tomcat4.1.18 and Apache
2.0.43 using mod_JK Connector.


Joshua,

Here are the extracts from my conf files. I am running Apache 2.0.43 with
mod_jk and Tomcat 4.1.18 also, so please check carefully that you have
similar.

workers.properties:

worker.list=tomcat1,tomcat2,loadbalancer

worker.tomcat1.port=9019
worker.tomcat1.host=myhost
worker.tomcat1.type=ajp13
worker.tomcat1.lbfactor=100

worker.tomcat2.port=9029
worker.tomcat2.host=myhost
worker.tomcat2.type=ajp13
worker.tomcat2.lbfactor=100

worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=tomcat1, tomcat2

mod_jk.conf:

JkMount /manager loadbalancer
JkMount /manager/* loadbalancer

JkMount /admin loadbalancer
JkMount /admin/* loadbalancer

JkMount /myapp loadbalancer
JkMount /myapp/* loadbalancer

server.xml on Tomcat 1:


  




server.xml on Tomcat 2


  




HTH

Eric

-Original Message-
From: Joshua Sunil Kumar [mailto:[EMAIL PROTECTED]
Sent: 10 March 2003 10:45
To: Tomcat Users List
Subject: RE: Problem with sticky session in Tomcat4.1.18 and Apache
2.0.43 using mod_JK Connector.


Hi
I tried correcting the typo but it does not work .Infact the load balancing
itself doesn't work if I change it to jvmRoute.

BR
Joshua



-Original Message-
From: Roberts, Eric [mailto:[EMAIL PROTECTED]
Sent: Monday, March 10, 2003 2:52 PM
To: Tomcat Users List
Subject: RE: Problem with sticky session in Tomcat4.1.18 and Apache
2.0.43 using mod_JK Connector.


There is a typo in the server.xml - it should be jvmRoute.

The worker.list in your workers.properties appears to only contain the
loadbalancer:

  #worker.list=tomcat1,tomcat2,loadbalancer
  worker.list=loadbalancer
  #worker.list=loadbalancer

Uncomment the top line and remove the rest.

Are you using jk or jk2?

Eric


-Original Message-
From: Joshua Sunil Kumar [mailto:[EMAIL PROTECTED]
Sent: 10 March 2003 10:14
To: Tomcat Users List
Subject: RE: Problem with sticky session in Tomcat4.1.18 and Apache
2.0.43 using mod_JK Connector.


Hi
I check out in the server.xml there is no entry for jvmRoute. There is
something called jmvRoute is it a typo or something cos I corrected it to
jvmRoute and it still does not work



This is tag directly taken from server.xml in the tomcat4.1.18's conf
directory

BR
Joshua

-Original Message-
From: Roberts, Eric [mailto:[EMAIL PROTECTED]
Sent: Monday, March 10, 2003 2:13 PM
To: Tomcat Users List
Subject: RE: Problem with sticky session in Tomcat4.1.18 and Apache
2.0.43 using mod_JK Connector.


Filip's memory is correct.

In server.xml you need an entry on the engine element:
mailto:[EMAIL PROTECTED]
Sent: 10 March 2003 07:36
To: Tomcat Users List
Subject: RE: Problem with sticky session in Tomcat4.1.18 and Apache
2.0.43 using mod_JK Connector.


BlankI remember there being a property called jvmRoute in the server.xml
file that would allow the Apache workers to make sure you got the right
Tomcat server upon the next request.

otherwise, you can just cluster enable your system, and it should work for
you.
http://www.filip.net/tomcat-clustering.html

Filip

~
Namaste - I bow to the divine in you
~
Filip Hanik
Software Architect
www.filip.net

  -Original Message-
  From: Joshua Sunil Kumar [mailto:[EMAIL PROTECTED]
  Sent: Sunday, March 09, 2003 9:52 PM
  To: [EMAIL PROTECTED]
  Subject: Problem with sticky session in Tomcat4.1.18 and Apache 2.0.43
using mod_JK Connector.


  Hi
  I'm using Apache2.0.43 and Tomcat4.1.18. I have configured it with
multiple tomcat instances with a load balancer. But I am unable to maintain
sticky session . The application that I am using has to maintain sessions.
But this not happening .When I login the request is JSP so it does to the
first Tomcat after login when I click on any link it goes to the second
Tomcat and I get a session timeout.
  I want to know if any one has configured this version of tomcat for
maintaining sticky session . I am also sending the workers.properties
  # workers.properties
  #

  # In Unix, we use forward slashes:
  ps=/

  # list the workers by name

  #worker.list=tomcat1,tomcat2,loadbalancer
  worker.list=loadbalancer
  #worker.list=loadbalancer
  # 
  # First tomcat server
  # 
  worker.tomcat1.port=11009
  worker.tomcat1.host=192.168.146.205
  worker.tomcat1.type=ajp13

  # Specify the size of the open connection cache.
  #worker.tomcat1.cachesize

  #
  # Specifies the load balance factor when used with
  # a load balancing worker.
  # Note:
  #  > lbfactor must be > 0
  #  > Low lbfactor means less work done by the worker.

RE: Problem with sticky session in Tomcat4.1.18 and Apache 2.0.43 using mod_JK Connector.

2003-03-10 Thread Joshua Sunil Kumar
Hi
I tried correcting the typo but it does not work .Infact the load balancing
itself doesn't work if I change it to jvmRoute.

BR
Joshua



-Original Message-
From: Roberts, Eric [mailto:[EMAIL PROTECTED]
Sent: Monday, March 10, 2003 2:52 PM
To: Tomcat Users List
Subject: RE: Problem with sticky session in Tomcat4.1.18 and Apache
2.0.43 using mod_JK Connector.


There is a typo in the server.xml - it should be jvmRoute.

The worker.list in your workers.properties appears to only contain the
loadbalancer:

  #worker.list=tomcat1,tomcat2,loadbalancer
  worker.list=loadbalancer
  #worker.list=loadbalancer

Uncomment the top line and remove the rest.

Are you using jk or jk2?

Eric


-Original Message-
From: Joshua Sunil Kumar [mailto:[EMAIL PROTECTED]
Sent: 10 March 2003 10:14
To: Tomcat Users List
Subject: RE: Problem with sticky session in Tomcat4.1.18 and Apache
2.0.43 using mod_JK Connector.


Hi
I check out in the server.xml there is no entry for jvmRoute. There is
something called jmvRoute is it a typo or something cos I corrected it to
jvmRoute and it still does not work



This is tag directly taken from server.xml in the tomcat4.1.18's conf
directory

BR
Joshua

-Original Message-
From: Roberts, Eric [mailto:[EMAIL PROTECTED]
Sent: Monday, March 10, 2003 2:13 PM
To: Tomcat Users List
Subject: RE: Problem with sticky session in Tomcat4.1.18 and Apache
2.0.43 using mod_JK Connector.


Filip's memory is correct.

In server.xml you need an entry on the engine element:
mailto:[EMAIL PROTECTED]
Sent: 10 March 2003 07:36
To: Tomcat Users List
Subject: RE: Problem with sticky session in Tomcat4.1.18 and Apache
2.0.43 using mod_JK Connector.


BlankI remember there being a property called jvmRoute in the server.xml
file that would allow the Apache workers to make sure you got the right
Tomcat server upon the next request.

otherwise, you can just cluster enable your system, and it should work for
you.
http://www.filip.net/tomcat-clustering.html

Filip

~
Namaste - I bow to the divine in you
~
Filip Hanik
Software Architect
www.filip.net

  -Original Message-
  From: Joshua Sunil Kumar [mailto:[EMAIL PROTECTED]
  Sent: Sunday, March 09, 2003 9:52 PM
  To: [EMAIL PROTECTED]
  Subject: Problem with sticky session in Tomcat4.1.18 and Apache 2.0.43
using mod_JK Connector.


  Hi
  I'm using Apache2.0.43 and Tomcat4.1.18. I have configured it with
multiple tomcat instances with a load balancer. But I am unable to maintain
sticky session . The application that I am using has to maintain sessions.
But this not happening .When I login the request is JSP so it does to the
first Tomcat after login when I click on any link it goes to the second
Tomcat and I get a session timeout.
  I want to know if any one has configured this version of tomcat for
maintaining sticky session . I am also sending the workers.properties
  # workers.properties
  #

  # In Unix, we use forward slashes:
  ps=/

  # list the workers by name

  #worker.list=tomcat1,tomcat2,loadbalancer
  worker.list=loadbalancer
  #worker.list=loadbalancer
  # 
  # First tomcat server
  # 
  worker.tomcat1.port=11009
  worker.tomcat1.host=192.168.146.205
  worker.tomcat1.type=ajp13

  # Specify the size of the open connection cache.
  #worker.tomcat1.cachesize

  #
  # Specifies the load balance factor when used with
  # a load balancing worker.
  # Note:
  #  > lbfactor must be > 0
  #  > Low lbfactor means less work done by the worker.
  worker.tomcat1.lbfactor=100
  #worker.tomcat1.local_worker=1


  # 
  # Second tomcat server
  # 
  worker.tomcat2.port=12009
  worker.tomcat2.host=192.168.146.205
  worker.tomcat2.type=ajp13

  # Specify the size of the open connection cache.
  #worker.tomcat2.cachesize

  #
  # Specifies the load balance factor when used with
  # a load balancing worker.
  # Note:
  #  > lbfactor must be > 0
  #  > Low lbfactor means less work done by the worker.
  worker.tomcat2.lbfactor=100
  #worker.tomcat2.local_worker=1

  # 
  # Load Balancer worker
  # 

  #
  # The loadbalancer (type lb) worker performs weighted round-robin
  # load balancing with sticky sessions.
  # Note:
  #  > If a worker dies, the load balancer will check its state
  #once in a while. Until then all work is redirected to peer
  #worker.
  worker.loadbalancer.type=lb
  worker.loadbalancer.balanced_workers=tomcat1,tomcat2
  worker.loadbalancer.sticky_session=1
   in Tomcat#worker.loadbalancer.local_worker_only=2

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


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

RE: Problem with sticky session in Tomcat4.1.18 and Apache 2.0.43 using mod_JK Connector.

2003-03-10 Thread Joshua Sunil Kumar
Hi
I check out in the server.xml there is no entry for jvmRoute. There is
something called jmvRoute is it a typo or something cos I corrected it to
jvmRoute and it still does not work



This is tag directly taken from server.xml in the tomcat4.1.18's conf
directory

BR
Joshua

-Original Message-
From: Roberts, Eric [mailto:[EMAIL PROTECTED]
Sent: Monday, March 10, 2003 2:13 PM
To: Tomcat Users List
Subject: RE: Problem with sticky session in Tomcat4.1.18 and Apache
2.0.43 using mod_JK Connector.


Filip's memory is correct.

In server.xml you need an entry on the engine element:
mailto:[EMAIL PROTECTED]
Sent: 10 March 2003 07:36
To: Tomcat Users List
Subject: RE: Problem with sticky session in Tomcat4.1.18 and Apache
2.0.43 using mod_JK Connector.


BlankI remember there being a property called jvmRoute in the server.xml
file that would allow the Apache workers to make sure you got the right
Tomcat server upon the next request.

otherwise, you can just cluster enable your system, and it should work for
you.
http://www.filip.net/tomcat-clustering.html

Filip

~
Namaste - I bow to the divine in you
~
Filip Hanik
Software Architect
www.filip.net

  -Original Message-
  From: Joshua Sunil Kumar [mailto:[EMAIL PROTECTED]
  Sent: Sunday, March 09, 2003 9:52 PM
  To: [EMAIL PROTECTED]
  Subject: Problem with sticky session in Tomcat4.1.18 and Apache 2.0.43
using mod_JK Connector.


  Hi
  I'm using Apache2.0.43 and Tomcat4.1.18. I have configured it with
multiple tomcat instances with a load balancer. But I am unable to maintain
sticky session . The application that I am using has to maintain sessions.
But this not happening .When I login the request is JSP so it does to the
first Tomcat after login when I click on any link it goes to the second
Tomcat and I get a session timeout.
  I want to know if any one has configured this version of tomcat for
maintaining sticky session . I am also sending the workers.properties
  # workers.properties
  #

  # In Unix, we use forward slashes:
  ps=/

  # list the workers by name

  #worker.list=tomcat1,tomcat2,loadbalancer
  worker.list=loadbalancer
  #worker.list=loadbalancer
  # 
  # First tomcat server
  # 
  worker.tomcat1.port=11009
  worker.tomcat1.host=192.168.146.205
  worker.tomcat1.type=ajp13

  # Specify the size of the open connection cache.
  #worker.tomcat1.cachesize

  #
  # Specifies the load balance factor when used with
  # a load balancing worker.
  # Note:
  #  > lbfactor must be > 0
  #  > Low lbfactor means less work done by the worker.
  worker.tomcat1.lbfactor=100
  #worker.tomcat1.local_worker=1


  # 
  # Second tomcat server
  # 
  worker.tomcat2.port=12009
  worker.tomcat2.host=192.168.146.205
  worker.tomcat2.type=ajp13

  # Specify the size of the open connection cache.
  #worker.tomcat2.cachesize

  #
  # Specifies the load balance factor when used with
  # a load balancing worker.
  # Note:
  #  > lbfactor must be > 0
  #  > Low lbfactor means less work done by the worker.
  worker.tomcat2.lbfactor=100
  #worker.tomcat2.local_worker=1

  # 
  # Load Balancer worker
  # 

  #
  # The loadbalancer (type lb) worker performs weighted round-robin
  # load balancing with sticky sessions.
  # Note:
  #  > If a worker dies, the load balancer will check its state
  #once in a while. Until then all work is redirected to peer
  #worker.
  worker.loadbalancer.type=lb
  worker.loadbalancer.balanced_workers=tomcat1,tomcat2
  worker.loadbalancer.sticky_session=1
   in Tomcat#worker.loadbalancer.local_worker_only=2

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

**Disclaimer

Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying 
or dissemination of the information contained in the E-MAIL in any manner 
whatsoever is strictly prohibited.

***

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

Problem with sticky session in Tomcat4.1.18 and Apache 2.0.43 using mod_JK Connector.

2003-03-09 Thread Joshua Sunil Kumar



Hi 

I'm using 
Apache2.0.43 and Tomcat4.1.18. I have configured it with multiple tomcat 
instances with a load balancer. But I am unable to maintain sticky session . The 
application that I am using has to maintain sessions. But this not happening 
.When I login the request is JSP so it does to the first Tomcat after login when 
I click on any link it goes to the second Tomcat and I get a session timeout. 

I want to know if 
any one has configured this version of tomcat for maintaining sticky session . I 
am also sending the workers.properties 
# 
workers.properties#
 
# In Unix, we use 
forward slashes:ps=/
 
# list the workers 
by name
 
#worker.list=tomcat1,tomcat2,loadbalancerworker.list=loadbalancer#worker.list=loadbalancer# 
# First tomcat server# 
worker.tomcat1.port=11009worker.tomcat1.host=192.168.146.205worker.tomcat1.type=ajp13
 
# Specify the size 
of the open connection cache.#worker.tomcat1.cachesize
 
## Specifies 
the load balance factor when used with# a load balancing worker.# 
Note:#  > lbfactor must be > 0#  > Low 
lbfactor means less work done by the 
worker.worker.tomcat1.lbfactor=100#worker.tomcat1.local_worker=1
 
# # Second tomcat 
server# 
worker.tomcat2.port=12009worker.tomcat2.host=192.168.146.205worker.tomcat2.type=ajp13
 
# Specify the size of the open connection 
cache.#worker.tomcat2.cachesize
 
## Specifies the load balance factor when 
used with# a load balancing worker.# Note:#  > lbfactor 
must be > 0#  > Low lbfactor means less work done by the 
worker.worker.tomcat2.lbfactor=100#worker.tomcat2.local_worker=1
 
# # Load Balancer 
worker# 
 
## The loadbalancer (type lb) worker performs 
weighted round-robin# load balancing with sticky sessions.# 
Note:#  > If a worker dies, the load balancer will check its 
state#    once in a while. Until then 
all work is redirected to peer#    
worker.worker.loadbalancer.type=lbworker.loadbalancer.balanced_workers=tomcat1,tomcat2worker.loadbalancer.sticky_session=1 in 
Tomcat#worker.loadbalancer.local_worker_only=2
**Disclaimer** 
   
 
 Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' 
and 'confidential' and intended for use only by the individual or entity to which it 
is 
addressed. You are notified that any use, copying or dissemination of the information 
contained in the E-MAIL in any manner whatsoever is strictly prohibited.




Problem rendering Greek and Latin Characters in Tomcat 4.1.18

2003-02-28 Thread Joshua Sunil Kumar



Hi 

The JSP page that 
I am using has Greek and Latin Characters. I am unable to display it properly in 
the browser. 
I am fetching data 
from the a Oracle Database which is stored in UTF-8 . When I display it on the 
browser this the characters are getting garbled. Ex- Grønbæk 
If I change the 
View-->Encoding--> to UTF-8 then I am able to view it properly  as 
Ex- Grønbæk 
 
1.I am setting the 
the following META tag
But still 
when I check it up in the browser the encoding setting is 
ISO-8859-1
 
2. I have tried 
setting the response.setContentType("text/html;charset=UTF-8"); This also does 
not work. 
3. I have tried 
putting  <%@ page contentType = "text/html;charset=UTF-8" %>. This 
also does not work.
 
4. I have changed 
the setting Tomcat4.1.18 for web.xml file to 
 
Set Character 
Encoding    
filters.SetCharacterEncodingFilter    
    
encoding    
UTF-8    
    
 
 
5. I thought 
there might be a problem with the Apache webserver and then I set this in the 
httpd.conf file
AddDefaultCharset UTF-8 (default is 
ISO-8859-1)
Having done 
all the setting still I am unable to the view the characters properly. 

 
I am running 
Tomcat4.1.18 with Apache2.0.34 using the JK2 Connector on Solaris 
5.8.
 
Code snippet 
which I have used.
 
<%@ page import="java.util.*" %><%@ page 
import="java.io.*" %><%@ page import="java.sql.*" 
%><%
 
    
Class.forName(driverClassName);    
Connection con = DriverManager.getConnection(dbURL, user, 
password);    
con.setAutoCommit(false);    
Statement 
stmt=null;    
ResultSet 
rst=null;    
stmt = 
con.createStatement();    
String testString=null;
 
    
try {
 
 
 
    
rst = stmt.executeQuery(queryString);    
}    
catch(SQLException e)   
{    
System.out.println("error while fetching data from old 
table.");    
System.out.println("Error message: 
"+e.getMessage());    
return;    
}
 
    
while(rst.next())    
{    
testString = rst.getString(1);
 
    
out.println("LastNAME "+ testString);
 
 
}
 
%/>


 
7. I have also 
tried using the String.getBytes("UTF-8); But this also does not 
work.
 
I would like to know if any other setting also needs to be 
made for in addtion to what I have done so that it 
works.
 
Joshua Sunil Kumar
 
 
**Disclaimer** 
   
 
 Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' 
and 'confidential' and intended for use only by the individual or entity to which it 
is 
addressed. You are notified that any use, copying or dissemination of the information 
contained in the E-MAIL in any manner whatsoever is strictly prohibited.




Problem rendering Greek and Latin Characters in Tomcat 4.1.18

2003-02-28 Thread Joshua Sunil Kumar



 
Hi 

The JSP page that 
I am using has Greek and Latin Characters. I am unable to display it properly in 
the browser. 
I am fetching data 
from the a Oracle Database which is stored in UTF-8 . When I display it on the 
browser this the characters are getting garbled. Ex- Grønbæk 
If I change the 
View-->Encoding--> to UTF-8 then I am able to view it properly  as 
Ex- Grønbæk 
 
1.I am setting the 
the following META tag
But still 
when I check it up in the browser the encoding setting is 
ISO-8859-1
 
2. I have tried 
setting the response.setContentType("text/html;charset=UTF-8"); This also does 
not work. 
3. I have tried 
putting  <%@ page contentType = "text/html;charset=UTF-8" %>. This 
also does not work.
 
4. I have changed 
the setting Tomcat4.1.18 for web.xml file to 
 
Set Character 
Encoding    
filters.SetCharacterEncodingFilter    
    
encoding    
UTF-8    
    
 
 
5. I 
thought there might be a problem with the Apache webserver and then I set this 
in the httpd.conf file
AddDefaultCharset UTF-8 (default is 
ISO-8859-1)
Having done all the setting still I am unable to the view the characters 
properly. 
 
I am 
running Tomcat4.1.18 with Apache2.0.34 using the JK2 Connector on Solaris 
5.8.
 
Code 
snippet which I have used.
 
<%@ page import="java.util.*" %><%@ page 
import="java.io.*" %><%@ page import="java.sql.*" 
%><% 
 
    
Class.forName(driverClassName);    
Connection con = DriverManager.getConnection(dbURL, user, 
password);    
con.setAutoCommit(false);    
Statement 
stmt=null;    
ResultSet 
rst=null;    
stmt = 
con.createStatement();    
String testString=null;
 
    
try {
 
 
 
    
rst = stmt.executeQuery(queryString);    
}    
catch(SQLException e)   
{    
System.out.println("error while fetching data from old 
table.");    
System.out.println("Error message: 
"+e.getMessage());    
return;    
}
 
    
while(rst.next())    
{    
testString = rst.getString(1);
 
    
out.println("LastNAME "+ testString);
 
 
}
 
%/>


 
7. I have also 
tried using the String.getBytes("UTF-8); But this also does not 
work.
 
I would like to know if any other setting also needs to be 
made for in addtion to what I have done so that it 
works.
 
Joshua Sunil Kumar
 
 
**Disclaimer** 
   
 
 Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' 
and 'confidential' and intended for use only by the individual or entity to which it 
is 
addressed. You are notified that any use, copying or dissemination of the information 
contained in the E-MAIL in any manner whatsoever is strictly prohibited.




access denied

2002-12-24 Thread sunil . kumar
hi all,

i tried this code.. the below mentioned error is coming  pl help

javax.naming.Context ctx = new javax.naming.InitialContext();
if(ctx == null )
System.out.println("Context is null");
else {
javax.sql.DataSource ds1 = (javax.sql.DataSource)ctx.lookup
("java:comp/env/TestDB");

if (ds1 != null) {
java.sql.Connection conn = ds1.getConnection();
-

org.apache.jasper.JasperException: java.sql.SQLException: Invalid
authorization specification: Access denied for user:
'[EMAIL PROTECTED]' (Using password: YES)
   at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:248)

   at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)


T I A

best regards
sunil


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




access denied

2002-12-23 Thread sunil . kumar
hi all,

i tried this code.. the below mentioned error is coming  pl help

javax.naming.Context ctx = new javax.naming.InitialContext();
if(ctx == null )
System.out.println("Context is null");
else {
javax.sql.DataSource ds1 = (javax.sql.DataSource)ctx.lookup
("java:comp/env/TestDB");

if (ds1 != null) {
java.sql.Connection conn = ds1.getConnection();
-

org.apache.jasper.JasperException: java.sql.SQLException: Invalid
authorization specification: Access denied for user:
'[EMAIL PROTECTED]' (Using password: YES)
   at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:248)

   at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)


T I A

best regards
sunil


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




javax.sql.datasource

2002-12-23 Thread sunil . kumar
hi all,

where i can find out javax.sql.datasource (in which .jar file)

TIA

best regards
sunil



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




Re: DataSource error (DBCP)

2002-12-23 Thread sunil . kumar

sorry for replicating the same query!!! anyone can help

TIA

bringing attention to my old problem like i'm unable to compile DBTest.java
(i compiled the same in another machine where oracle 9i is running, and
copied to the machine where tomcat is running :))

I tried  to compile DBTest.java and ended up an error

  Type 'Datasource' not found in the declaration of table 'ds'

  "DataSource ds= "
   ^
1 error
---


   

sunil.kumar@imasst 

elecom.com   To: "Tomcat Users List" 
<[EMAIL PROTECTED]>  
 cc:   

12/23/2002 02:53 Subject: Re: DataSource error (DBCP)  

PM 

Please respond to  

"Tomcat Users  

List"  

   

   






that's cool!!! worked.

bringing attention to my old problem like i'm unable to compile DBTest.java
(i compiled the same in another machine where oracle 9i is running, and
copied to the machine where tomcat is running :))

I tried  to compile DBTest.java and ended up an error

  Type 'Datasource' not found in the declaration of table 'ds'

  "DataSource ds= "
   ^
1 error
---



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






--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: DataSource error (DBCP)

2002-12-23 Thread sunil . kumar

that's cool!!! worked.

bringing attention to my old problem like i'm unable to compile DBTest.java
(i compiled the same in another machine where oracle 9i is running, and
copied to the machine where tomcat is running :))

I tried  to compile DBTest.java and ended up an error

  Type 'Datasource' not found in the declaration of table 'ds'

  "DataSource ds= "
   ^
1 error
---



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: DataSource error (DBCP)

2002-12-23 Thread sunil . kumar

while executing ... http://195.54.247.110:8080/DBTest/test.jsp

getting the error message

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 6 in the jsp file: /test.jsp

Generated servlet error:
[javac] Compiling 1 source file

/home/sunil/jakarta-tomcat-4.1.18/work/Standalone/localhost/DBTest/test_jsp.java:48:

cannot resolve symbol
symbol  : class DBTest
location: class org.apache.jsp.test_jsp
DBTest tst = new DBTest();
^



An error occurred at line: 6 in the jsp file: /test.jsp

Generated servlet error:
/home/sunil/jakarta-tomcat-4.1.18/work/Standalone/localhost/DBTest/test_jsp.java:48:

cannot resolve symbol
symbol  : class DBTest
location: class org.apache.jsp.test_jsp
DBTest tst = new DBTest();
 ^
2 errors


anyone can help
a. on this.
b. see the first posting (compile error..)

 T I A




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




Re: DataSource error (DBCP)

2002-12-23 Thread sunil . kumar

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-how

i cut and paste the source codes for MYSQL Example...

u r right... first error was javax.sql.* missing... but i included all the
directories in classpath that error cleared..

this is the jsp file... DBTest is the class file.. (that i compiled inside
my oracle directory and moved to Tomcat and tried placing everywhere)
--

  
DB Test
  
  

  <%
foo.DBTest tst = new foo.DBTest();
tst.init();
  %>

  Results
Foo <%= tst.getFoo() %>
Bar <%= tst.getBar() %>

  

--



   

Peng Tuck Kwok 


al.net>  cc:   

 Subject: Re: DataSource error (DBCP)  

12/23/2002 

08:23 AM   

Please respond 

to "Tomcat 

Users List"

   

   





Could you post your source code for the java code? Sounds like you are
missing javax.sql.* , but can't be sure until someone has a look at it.

[EMAIL PROTECTED] wrote:
> i've already done that
> somehow i compiled :) DBTest.java and where should i place the
DBTest.class
> file. EVERYWHERE I TRIED :(. anyone can answer ?
>
> regards and thanks
> sunil
>
>
>
>

> "Galbayar

> Dorjgotov"   To: "Tomcat Users List"
<[EMAIL PROTECTED]>
>  net.mn>  Subject: RE: DataSource
error (DBCP)
>

> 12/23/2002

> 01:49 AM

> Please respond

> to "Tomcat

> Users List"

>

>

>
>
>
>
> copy mysql jdbc driver to tomcat/common/lib directory
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 23, 2002 3:09 AM
> To: [EMAIL PROTECTED]
> Subject: DataSource error (DBCP)
>
>
> hi all,
>
> i'm new to tomcat... if my queries are foolish...pl forgive.  :)
>
> my configuration is RH Linux 8/MYSQL 3.../TOMCAT 4.1.8
>
> all the examples provided are working correctly...
>
> i tried JNDI Datasource HOW-TO (more details in the URL)
>
>
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-how

>
> to.html#Database%20Connection%20Pool%20(DBCP)%20Configurations
> 4
> i tried with MYSQL DBCP Example
>
>   1. i've created mysql username,password,database,tables,records
>   2. i've changed the server.xml configuration by inserting the codes
given
> under no.2
>   3. i've created a web.xml as in no.3
>   4. i've written the same test.jsp and DBTest.java
>
>   and i created a directory DBTest and placed test.jsp and DBTest.java
> there and another subdirectory called WEB-INF and placed the web.xml
there.
> I tried  to compile DBTest.java and ended up an error
> 
>   Type 'Datasource' not found in the declaration of table 'ds'
>
>   "DataSource ds= "
>^
> 1 error
> -
>
> please help!
>
> THANKS IN ADVANCE
>
> best regards
> sunil
>
>
>
> --
> 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]>






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




RE: DataSource error (DBCP)

2002-12-23 Thread sunil . kumar

i've already done that
somehow i compiled :) DBTest.java and where should i place the DBTest.class
file. EVERYWHERE I TRIED :(. anyone can answer ?

regards and thanks
sunil



   

"Galbayar  

Dorjgotov"   To: "Tomcat Users List" 
<[EMAIL PROTECTED]>  
  Subject: RE: DataSource error (DBCP)  

   

12/23/2002 

01:49 AM   

Please respond 

to "Tomcat 

Users List"

   

   





copy mysql jdbc driver to tomcat/common/lib directory

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 23, 2002 3:09 AM
To: [EMAIL PROTECTED]
Subject: DataSource error (DBCP)


hi all,

i'm new to tomcat... if my queries are foolish...pl forgive.  :)

my configuration is RH Linux 8/MYSQL 3.../TOMCAT 4.1.8

all the examples provided are working correctly...

i tried JNDI Datasource HOW-TO (more details in the URL)

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-how

to.html#Database%20Connection%20Pool%20(DBCP)%20Configurations
4
i tried with MYSQL DBCP Example

  1. i've created mysql username,password,database,tables,records
  2. i've changed the server.xml configuration by inserting the codes given
under no.2
  3. i've created a web.xml as in no.3
  4. i've written the same test.jsp and DBTest.java

  and i created a directory DBTest and placed test.jsp and DBTest.java
there and another subdirectory called WEB-INF and placed the web.xml there.
I tried  to compile DBTest.java and ended up an error

  Type 'Datasource' not found in the declaration of table 'ds'

  "DataSource ds= "
   ^
1 error
-

please help!

THANKS IN ADVANCE

best regards
sunil



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




DataSource error (DBCP)

2002-12-22 Thread sunil . kumar
hi all,

i'm new to tomcat... if my queries are foolish...pl forgive.  :)

my configuration is RH Linux 8/MYSQL 3.../TOMCAT 4.1.8

all the examples provided are working correctly...

i tried JNDI Datasource HOW-TO (more details in the URL)

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html#Database%20Connection%20Pool%20(DBCP)%20Configurations
4
i tried with MYSQL DBCP Example

  1. i've created mysql username,password,database,tables,records
  2. i've changed the server.xml configuration by inserting the codes given
under no.2
  3. i've created a web.xml as in no.3
  4. i've written the same test.jsp and DBTest.java

  and i created a directory DBTest and placed test.jsp and DBTest.java
there and another subdirectory called WEB-INF and placed the web.xml there.
I tried  to compile DBTest.java and ended up an error

  Type 'Datasource' not found in the declaration of table 'ds'

  "DataSource ds= "
   ^
1 error
-----

please help!

THANKS IN ADVANCE

best regards
sunil



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




Regarding http forwarding

2002-12-12 Thread Sunil Ravipati
 Ihave an accesspoint and a machine on which tomcat 4.1 is running.The
Accesspoint has a linux OS stripped down version and a small httpd
server.I want to do http forward from the AccessPoint to my tomcat
server.IS there any configuration / setup to be done on tomcat if I want
the http requests to get forwarded from the AccessPoint to the tomcat.


Any help is appreciate

Thanks,
Sunil



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




apache-tomcat configuration for java server pages

2002-11-21 Thread kala sunil
hi

we are in a project that which is a e-mail reader which involves jsp,
voicexml.the problem has arised with the part of trying to configure
apache-tomcat for java server pages.

please look into the folowing:
WEB.XML FILE


   WebAppRegistrant
   org.machino.gardenpath.WebAppRegistrant
   
 gardenpath.registry.url
 http://localhost:8080/gardenpath/registrar
   
   
 gardenpath.httpserver.port
 8080
   
   1
 

the default path taken by it is gardenpath as mentioned above.
for our project we need to configure the web.xml file in such a way
that it configures our javaserver pages.

could u please help us in this and as to what is going on  with this,
how to change the entire servlet code above to jsp and as to how to register 
to get our java server pages running.

also need information regarding as to how to use tomcat manager application.

we would be greatly helpful if u can help us in this regard.

waiting for ur reply.thanking u

sunil k.n.s







_
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail


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



RE: Cannot allocate servlet instance for path

2002-08-27 Thread Annam, Sunil

Found the problem. I am using Windows NT. In NT explorer, "Web-inf" and "WEB-INF" are 
both displayed as "Web-inf". Only if you right click and see property you can find 
MS-DOS name which is the actual one.
When I installed Tomcat, "examples" webapps had a folder "Web-inf" which is actually 
"WEB-INF". So I also created same name.

Spent almost a day but now I am happy that it is working.


-Original Message-
From: Annam, Sunil 
Sent: Tuesday, August 27, 2002 3:23 PM
To: [EMAIL PROTECTED]
Subject: Cannot allocate servlet instance for path


Hi,

I was using Tomcat 3.x and now switched to tomcat 4.1.9. I am not able to run the 
servlets that I used to do. So just for testing I did the following
created a folder "exmp" under webapps. created a foler "Web-inf" under "exmp" and 
"classes" under "Web-inf". Copied "HelloWorldExample.class" from 
webapps/examples/Web-inf/classes. 

webapps-->exmp
|->Web-inf
|->web.xml
|->classes
   |->HelloWorldExample.class


Modified server.xml. Added the following



Created web.xml in Web-inf


http://java.sun.com/dtd/web-app_2_3.dtd";>



HelloWorld

  HelloWorldExample





  


When I start Tomcat and try to access HelloWorldExample by url 
"http://localhost:8080/exmp/servlets/HelloWorldExample";, it gives me Error 404
In the localhost_log.txt
invoker: Cannot allocate servlet instance for path /exmp/servlet/HelloWorldExample
javax.servlet.ServletException: Wrapper cannot find servlet class HelloWorldExample or 
a class it depends on
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:880)


Any idea what is happening ? what am I missing ?

HelloWorldExample from examples/servlet/HelloWorldExample is working.

Thanks in advance.

Sunil Annam



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




Cannot allocate servlet instance for path

2002-08-27 Thread Annam, Sunil

Hi,

I was using Tomcat 3.x and now switched to tomcat 4.1.9. I am not able to run the 
servlets that I used to do. So just for testing I did the following
created a folder "exmp" under webapps. created a foler "Web-inf" under "exmp" and 
"classes" under "Web-inf". Copied "HelloWorldExample.class" from 
webapps/examples/Web-inf/classes. 

webapps-->exmp
|->Web-inf
|->web.xml
|->classes
   |->HelloWorldExample.class


Modified server.xml. Added the following



Created web.xml in Web-inf


http://java.sun.com/dtd/web-app_2_3.dtd";>



HelloWorld

  HelloWorldExample





  


When I start Tomcat and try to access HelloWorldExample by url 
"http://localhost:8080/exmp/servlets/HelloWorldExample";, it gives me Error 404
In the localhost_log.txt
invoker: Cannot allocate servlet instance for path /exmp/servlet/HelloWorldExample
javax.servlet.ServletException: Wrapper cannot find servlet class HelloWorldExample or 
a class it depends on
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:880)


Any idea what is happening ? what am I missing ?

HelloWorldExample from examples/servlet/HelloWorldExample is working.

Thanks in advance.

Sunil Annam





Session Timeout

2002-02-07 Thread Sunil Mathew

Hi All,

How can I see the current session timeout and set a new value. The
documentation gives the following url

http://localhost:8080/manager/sessions?path=/examples

But I am not able to see /manager eventhough I have setup user with manager
role as:



Can somebody help me on this?

Thanks,
Sunil Mathew.




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




RE: Netscape-tomcat redirector help

2001-10-04 Thread Sunil Thakker

Hi Wesley,

What version of tomcat did u configure with netscape
6.0? I have downloaded and installed netscape 6.0 and
now trying to install tomcat ...

Thanks
Sunil

--- Wesley Gamble <[EMAIL PROTECTED]> wrote:
> Sunil,
> 
> I successfully got Tomcat working with iPlanet 6.0
> by using the 
> nsapi_redirect.dll file from the Tomcat 3.1.x
> download site.  I'm sure 
> it will probably work with NES 3.61.
> 
> Wes
> 
> 


__
Do You Yahoo!?
NEW from Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1



Pls help ... Netscape-Tomcat configuration

2001-10-03 Thread Sunil Thakker

Hi,

I need to configure netscape 3.61 with Tomcat 3.2.3 on
UNIX...There is no documentation available for this on
the net... Please let me know how to do this ... Also,
i require netscape-tomcat redirector for unix... from
where should i download it ?

Please help...

Thanks


__
Do You Yahoo!?
NEW from Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1



Netscape-tomcat redirector help

2001-10-03 Thread Sunil Thakker

Hello,

I am in process of configuring Netscape with Tomcat. I
have netscape 3.61 and tomcat 3.2.3 (for Unix). I
guess i need to download the plugin for redirecting
the requests from Netscape to Tomcat. Does anyone know
frome where should i download ? I had visited the
jakarta-tomcat site, but couldn't find the plugin (for
unix platform)...

Please help ...

Thanks in advance

__
Do You Yahoo!?
Listen to your Yahoo! Mail messages from any phone.
http://phone.yahoo.com



How to unsubscribe ??

2001-08-23 Thread Sunil Chandurkar

Hi
I want quit this list.. anyone of u wud like to tell
me how to unscribe this

Thanx for cooperation shown till now...

/sunil

_
Get LifeTime Free email Visit  ---> http://www.nagpurcity.net



My Question is other than tomcat stuffs

2001-07-31 Thread Sunil Chandurkar

Hello All.

Reason behind asking following question is users of this tomcat group are more and 
very much prompt I ever seen. So please if even I am doing anything wrong I believe 
you all pardon me.

I, Sunil chandurkar, 25 yrs. old, looking for IT business opportunity in India. 
Actually my problem is FUNDING. I am looking for funding from other companies. But I 
am new in this field, so I don't know even how to approach VCs or even how to find 
companies which can help me to establish my setup.

Apart from this, Does anybody have an idea about "Outsourcing"? 

At least tell me names of websites from which I can actually get more knowledge to 
establish my own firm here in bombay. 

I have team of 10 software engineers, skilled in fields like VC++,VB, ASP, Java 
technologies and Database stuffs, also I have lots of confidance to make my dreams 
happen.

Thanx in Advance

/sunil

_
Get LifeTime Free email Visit  ---> http://www.nagpurcity.net



How can I get Tomcat Code?

2001-07-13 Thread Sunil Chandurkar

Hello all..

How can I get source code for Tomcat?
I want to try to build this code for VxWorks?
If anybody can help me to build it for VxWorks please
let me know.
Please provide me link to get code if possible?


/sunil


--- Sunil Chandurkar <[EMAIL PROTECTED]>
> wrote:
>hi all
>
>Do anybody knows about how to run Tomcat on Vxworks (Real Time Opearting System)?
>
>First of tell me, do anybody know any webserver runs on VxWorks? 
>I know two web servers Wind Web Server and Go Ahead Web Server, but these webserver 
>not supporting servlets and I want a Web Server which supports Servlets? 
>
>can you please send me links to those webservers those can be running on VxWorks OS 
>and also supports Servlet.
>
>Most of the RTOS Web server supports CGI but I want to use Servlet.
>
>Thanx in Advance
>
>/Sunil
>
>Sunil Chandurkar
>Software Engineer
>Kuokoa Networks Inc.
>[EMAIL PROTECTED]
>
>
>_
>Get LifeTime Free email Visit  ---> http://www.nagpurcity.net

_
Get LifeTime Free email Visit  ---> http://www.nagpurcity.net



Mr. Matt - Re: Tomcat + VxWorks (RTOS)

2001-07-12 Thread Sunil Chandurkar


Hope you know you can any task like tomcat on vxworks provided it should be .out file 
.. can you please tell me how to run tomcat as a task on vxworks..

/sunil
--- "Matt Goodall" <[EMAIL PROTECTED]>
> wrote:
>VxWorks - are you insane? ;-)
>
>VxWorks supports Java these days doesn't it? If so could you not simply run
>Tomcat as a task and use it as the web server as well as the servlet
>container?. I know it's not the most efficient setup but it's probably a
>*lot* easier. You could change Tomcat's port to 80 to make it respond on the
>standard HTTP port.
>
>Cheers, Matt
>
>- Original Message -
>From: Sunil Chandurkar <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Thursday, July 12, 2001 3:56 PM
>Subject: Tomcat + VxWorks (RTOS)
>
>
>> hi all
>>
>> Do anybody knows about how to run Tomcat on Vxworks (Real Time Opearting
>System)?
>>
>> First of tell me, do anybody know any webserver runs on VxWorks?
>> I know two web servers Wind Web Server and Go Ahead Web Server, but these
>webserver not supporting servlets and I want a Web Server which supports
>Servlets?
>>
>> can you please send me links to those webservers those can be running on
>VxWorks OS and also supports Servlet.
>>
>> Most of the RTOS Web server supports CGI but I want to use Servlet.
>>
>> Thanx in Advance
>>
>> /Sunil
>>
>> Sunil Chandurkar
>> Software Engineer
>> Kuokoa Networks Inc.
>> [EMAIL PROTECTED]
>>
>>
>> _
>> Get LifeTime Free email Visit  ---> http://www.nagpurcity.net
>>

_
Get LifeTime Free email Visit  ---> http://www.nagpurcity.net



Tomcat + VxWorks (RTOS)

2001-07-12 Thread Sunil Chandurkar

hi all

Do anybody knows about how to run Tomcat on Vxworks (Real Time Opearting System)?

First of tell me, do anybody know any webserver runs on VxWorks? 
I know two web servers Wind Web Server and Go Ahead Web Server, but these webserver 
not supporting servlets and I want a Web Server which supports Servlets? 

can you please send me links to those webservers those can be running on VxWorks OS 
and also supports Servlet.

Most of the RTOS Web server supports CGI but I want to use Servlet.

Thanx in Advance

/Sunil

Sunil Chandurkar
Software Engineer
Kuokoa Networks Inc.
[EMAIL PROTECTED]


_
Get LifeTime Free email Visit  ---> http://www.nagpurcity.net



Invoke New Window From Applet

2001-07-06 Thread Sunil Chandurkar

Hi There

I know the question i'm going to ask, the best place is Java Forum, and I have tried 
there. but i didn't find quick response compartively here...I m asking you all this 
question...

Actually from Browser Applet I want to open new Window which should look like New 
Application: What exactly I want you can see it by visiting followin site...

I want the same way, they are invoking their application from applet..
please visit following site and let me know How can I invoke such window or 
application from applet

http://www.truesan.com/products/resources/sandesigner/sandesigner.htm

/sunil

_
Get LifeTime Free email Visit  ---> http://www.nagpurcity.net



Exception: I don't understand

2001-04-21 Thread Sunil Chandurkar

Hello All:

I am getting following exception on calling servlet from applet.

2001-04-21 03:11:13 - Ctx( ): IOException in: R( +/MyFolder/Mytest.class+ null) 
Connection reset by peer: socket write error.

When first time i visit local site at that time its not giving an exception but when i 
visit it second time at that time only i am getting this exception. The best part is 
it doesn't affect funtionality of my applet as well as servlet. 

I am sure this is an exception from web server not from servlet. Because  I have 
written all try-catch blocks in my servlet code at appropriate places.
There is one Folder "MyFolder" in ROOT directory and HTML file calling my applet is 
placed at ROOT.

First of tell me wht this error me and when generally this occur.

thanx in advance...

/sunil












_
Get LifeTime Free email Visit  ---> http://www.nagpurcity.net



Hades - RE: is it possible? (Modal Dialog thru Applet)

2001-04-17 Thread Sunil Chandurkar

Will it work with Netscape also.

/sunil

--- "Hunor Nam" <[EMAIL PROTECTED]>
> wrote:
>You could use showModalDialog, java script method, but it's suported
>only by IE4+
>Syntax:
>   vReturnValue =3D window.showModalDialog(sURL [, vArguments] [,
>sFeatures])
>
>   Hades
>
>-Original Message-
>From: Sunil Chandurkar [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, April 17, 2001 4:14 PM
>To: [EMAIL PROTECTED]
>Subject: is it possible? (Modal Dialog thru Applet)
>
>
>Hello All
>
>
>
>I need some more guidance on getting Modal Dialog Box from Applet. I
>could generate dialog box from applet on some press button, but all
>those are modeless dialog boxes.
>
>
>
>I have tried this stuff by calling Javascript, but there is restriction
>in Java script on calling modal dialog boxes, because there are alert
>and confirm dialog boxes in java script, but i want my own customize
>dialog box.. popup from applet on pressign some button.
>
>
>
>But, is it possible to popup our own customize dialog box from
>Browser(Applet)?
>
>
>
>thanx in advance
>
>
>
>/sunil
>
>_
>Get LifeTime Free email Visit  ---> http://www.nagpurcity.net

_
Get LifeTime Free email Visit  ---> http://www.nagpurcity.net



is it possible? (Modal Dialog thru Applet)

2001-04-17 Thread Sunil Chandurkar

Hello All

I need some more guidance on getting Modal Dialog Box from Applet. I could generate 
dialog box from applet on some press button, but all those are modeless dialog boxes.

I have tried this stuff by calling Javascript, but there is restriction in Java script 
on calling modal dialog boxes, because there are alert and confirm dialog boxes in 
java script, but i want my own customize dialog box.. popup from applet on pressign 
some button.

But, is it possible to popup our own customize dialog box from Browser(Applet)?

thanx in advance

/sunil

_
Get LifeTime Free email Visit  ---> http://www.nagpurcity.net



RE: Randy - RE: How can I run Batch file from servlet ??

2001-04-16 Thread Sunil Chandurkar


Thanx..

its working very finely

/sunil
--- Randy Layman <[EMAIL PROTECTED]>
> wrote:
>
>   Try replacing the relative osql with the fully-qualified path name
>(i.e. "C:\Program Files\Oracle Apps\bin\osql.exe").
>
>   I have several servlets that utilize external processes (and several
>other applications).  I've found that you can never count on environment
>variables to be correctly set, even when you use cmd.
>
>   Randy
>
>> -Original Message-
>> From: Sunil Chandurkar [mailto:[EMAIL PROTECTED]]
>> Sent: Monday, April 16, 2001 12:44 PM
>> To: [EMAIL PROTECTED]
>> Subject: Randy - RE: How can I run Batch file from servlet ??
>> 
>> 
>> 
>> I have set that path variable already.. still its not working 
>> did u find anyother solution
>> 
>> thanx.. for responding lot...
>> 
>> /sunil
>> --- Randy Layman <[EMAIL PROTECTED]>
>> > wrote:
>> >
>> >That sounds like the PATH environment variable isn't 
>> set (as in it
>> >can't find osql).
>> >
>> >> -Original Message-
>> >> From: Sunil Chandurkar [mailto:[EMAIL PROTECTED]]
>> >> Sent: Monday, April 16, 2001 12:08 PM
>> >> To: [EMAIL PROTECTED]
>> >> Subject: RE: How can I run Batch file from servlet ??
>> >> 
>> >> 
>> >> Randy 
>> >> Actually this batch file contains sql command..
>> >> like
>> >> osql -U sa -P -i D:\Myfolder\CreateDatabase.sql
>> >> 
>> >> i have tried this time.. with "/c start" option
>> >> Process p = Runtime.getRuntime().exec 
>> >>  ("cmd /c start D:\\myFolder\\myBatchFile.bat"); 
>> >>  p.waitFor(); 
>> >> and this time its able to fire the batch file
>> >> but that batch file itself giving error that "The name 
>> >> specified is not recognized as an internal or external command"
>> >> 
>> >> The good thing is this option of running batch file is 
>> >> working with standalone java application but not with servlet..
>> >> 
>> >> /sunil
>> >> --- Randy Layman <[EMAIL PROTECTED]>
>> >> > wrote:
>> >> >
>> >> > When you create a process like this, its up to you to 
>> >> read and write
>> >> >to the process.  This means that any output from your batch 
>> >> file will be
>> >> >lost unless you deal with is (Process has methods to get the 
>> >> input and
>> >> >output streams for standard in/out/error).
>> >> >
>> >> > I would suggest you try running your batch file from 
>> >> the tomcat's
>> >> >home directory.  The problem is usually one of two things.  
>> >> Either you have
>> >> >relative paths which aren't valid in the current context 
>> or you are
>> >> >expecting environment variables that aren't valid.  (Or 
>> possibly its
>> >> >actually working but you aren't catching the batch file's 
>> >> input to know
>> >> >that).
>> >> >
>> >> > Randy
>> >> >
>> >> >
>> >> >> -Original Message-
>> >> >> From: Sunil Chandurkar [mailto:[EMAIL PROTECTED]]
>> >> >> Sent: Monday, April 16, 2001 11:47 AM
>> >> >> To: [EMAIL PROTECTED]
>> >> >> Subject: How can I run Batch file from servlet ??
>> >> >> 
>> >> >> 
>> >> >> Hello All !! 
>> >> >> 
>> >> >> I am in big trouble, i want to call batch file on the server 
>> >> >> from the servlet. I have tried the following option but they 
>> >> >> didn't work.. please let me know if is there any way to 
>> do it... 
>> >> >> 
>> >> >> Process p = Runtime.getRuntime().exec 
>> >> >> ("cmd D:\\myFolder\\myBatchFile.bat"); 
>> >> >> p.waitFor(); 
>> >> >> 
>> >> >> also i have tried without cmd option: 
>> >> >> Process p = Runtime.getRuntime().exec 
>> >> >> ("D:\\myFolder\\myBatchFile.bat"); 
>> >> >> p.waitFor(); 
>> >> >> 
>> >> >> Its not throwing an exception and not even giving me 
>> any output.. 
>> >> >> 
>> >> >> Thanx in Advance...
>> >> >> 
>> >> >> /sunil 
>> >> >> 
>> >> >> 
>> >> >> 
>> >> >> _
>> >> >> Get LifeTime Free email Visit  ---> http://www.nagpurcity.net
>> >> >>
>> >> 
>> >> _
>> >> Get LifeTime Free email Visit  ---> http://www.nagpurcity.net
>> >>
>> 
>> _
>> Get LifeTime Free email Visit  ---> http://www.nagpurcity.net
>>

_
Get LifeTime Free email Visit  ---> http://www.nagpurcity.net



Randy - RE: How can I run Batch file from servlet ??

2001-04-16 Thread Sunil Chandurkar


I have set that path variable already.. still its not working did u find anyother 
solution

thanx.. for responding lot...

/sunil
--- Randy Layman <[EMAIL PROTECTED]>
> wrote:
>
>   That sounds like the PATH environment variable isn't set (as in it
>can't find osql).
>
>> -Original Message-
>> From: Sunil Chandurkar [mailto:[EMAIL PROTECTED]]
>> Sent: Monday, April 16, 2001 12:08 PM
>> To: [EMAIL PROTECTED]
>> Subject: RE: How can I run Batch file from servlet ??
>> 
>> 
>> Randy 
>> Actually this batch file contains sql command..
>> like
>> osql -U sa -P -i D:\Myfolder\CreateDatabase.sql
>> 
>> i have tried this time.. with "/c start" option
>> Process p = Runtime.getRuntime().exec 
>>  ("cmd /c start D:\\myFolder\\myBatchFile.bat"); 
>>  p.waitFor(); 
>> and this time its able to fire the batch file
>> but that batch file itself giving error that "The name 
>> specified is not recognized as an internal or external command"
>> 
>> The good thing is this option of running batch file is 
>> working with standalone java application but not with servlet..
>> 
>> /sunil
>> --- Randy Layman <[EMAIL PROTECTED]>
>> > wrote:
>> >
>> >When you create a process like this, its up to you to 
>> read and write
>> >to the process.  This means that any output from your batch 
>> file will be
>> >lost unless you deal with is (Process has methods to get the 
>> input and
>> >output streams for standard in/out/error).
>> >
>> >I would suggest you try running your batch file from 
>> the tomcat's
>> >home directory.  The problem is usually one of two things.  
>> Either you have
>> >relative paths which aren't valid in the current context or you are
>> >expecting environment variables that aren't valid.  (Or possibly its
>> >actually working but you aren't catching the batch file's 
>> input to know
>> >that).
>> >
>> >Randy
>> >
>> >
>> >> -Original Message-
>> >> From: Sunil Chandurkar [mailto:[EMAIL PROTECTED]]
>> >> Sent: Monday, April 16, 2001 11:47 AM
>> >> To: [EMAIL PROTECTED]
>> >> Subject: How can I run Batch file from servlet ??
>> >> 
>> >> 
>> >> Hello All !! 
>> >> 
>> >> I am in big trouble, i want to call batch file on the server 
>> >> from the servlet. I have tried the following option but they 
>> >> didn't work.. please let me know if is there any way to do it... 
>> >> 
>> >> Process p = Runtime.getRuntime().exec 
>> >> ("cmd D:\\myFolder\\myBatchFile.bat"); 
>> >> p.waitFor(); 
>> >> 
>> >> also i have tried without cmd option: 
>> >> Process p = Runtime.getRuntime().exec 
>> >> ("D:\\myFolder\\myBatchFile.bat"); 
>> >> p.waitFor(); 
>> >> 
>> >> Its not throwing an exception and not even giving me any output.. 
>> >> 
>> >> Thanx in Advance...
>> >> 
>> >> /sunil 
>> >> 
>> >> 
>> >> 
>> >> _
>> >> Get LifeTime Free email Visit  ---> http://www.nagpurcity.net
>> >>
>> 
>> _
>> Get LifeTime Free email Visit  ---> http://www.nagpurcity.net
>>

_
Get LifeTime Free email Visit  ---> http://www.nagpurcity.net



RE: How can I run Batch file from servlet ??

2001-04-16 Thread Sunil Chandurkar

Randy 
Actually this batch file contains sql command..
like
osql -U sa -P -i D:\Myfolder\CreateDatabase.sql

i have tried this time.. with "/c start" option
Process p = Runtime.getRuntime().exec 
 ("cmd /c start D:\\myFolder\\myBatchFile.bat"); 
 p.waitFor(); 
and this time its able to fire the batch file
but that batch file itself giving error that "The name specified is not recognized as 
an internal or external command"

The good thing is this option of running batch file is working with standalone java 
application but not with servlet..

/sunil
--- Randy Layman <[EMAIL PROTECTED]>
> wrote:
>
>   When you create a process like this, its up to you to read and write
>to the process.  This means that any output from your batch file will be
>lost unless you deal with is (Process has methods to get the input and
>output streams for standard in/out/error).
>
>   I would suggest you try running your batch file from the tomcat's
>home directory.  The problem is usually one of two things.  Either you have
>relative paths which aren't valid in the current context or you are
>expecting environment variables that aren't valid.  (Or possibly its
>actually working but you aren't catching the batch file's input to know
>that).
>
>   Randy
>
>
>> -Original Message-
>> From: Sunil Chandurkar [mailto:[EMAIL PROTECTED]]
>> Sent: Monday, April 16, 2001 11:47 AM
>> To: [EMAIL PROTECTED]
>> Subject: How can I run Batch file from servlet ??
>> 
>> 
>> Hello All !! 
>> 
>> I am in big trouble, i want to call batch file on the server 
>> from the servlet. I have tried the following option but they 
>> didn't work.. please let me know if is there any way to do it... 
>> 
>> Process p = Runtime.getRuntime().exec 
>> ("cmd D:\\myFolder\\myBatchFile.bat"); 
>> p.waitFor(); 
>> 
>> also i have tried without cmd option: 
>> Process p = Runtime.getRuntime().exec 
>> ("D:\\myFolder\\myBatchFile.bat"); 
>> p.waitFor(); 
>> 
>> Its not throwing an exception and not even giving me any output.. 
>> 
>> Thanx in Advance...
>> 
>> /sunil 
>> 
>> 
>> 
>> _
>> Get LifeTime Free email Visit  ---> http://www.nagpurcity.net
>>

_
Get LifeTime Free email Visit  ---> http://www.nagpurcity.net



How can I run Batch file from servlet ??

2001-04-16 Thread Sunil Chandurkar

Hello All !! 

I am in big trouble, i want to call batch file on the server from the servlet. I have 
tried the following option but they didn't work.. please let me know if is there any 
way to do it... 

Process p = Runtime.getRuntime().exec 
("cmd D:\\myFolder\\myBatchFile.bat"); 
p.waitFor(); 

also i have tried without cmd option: 
Process p = Runtime.getRuntime().exec 
("D:\\myFolder\\myBatchFile.bat"); 
p.waitFor(); 

Its not throwing an exception and not even giving me any output.. 

Thanx in Advance...

/sunil 



_
Get LifeTime Free email Visit  ---> http://www.nagpurcity.net



Getting an error during SSL

2001-04-12 Thread Sunil Chandurkar

Hello all

to achieve SSL i followed all the steps... given in
documentation.

I got test certificate e.g. t1.cacert from DST, i have imported it on to my machine 
using keytool command
this time it was imported successfully at
user/home/.keystore according to i have changed my server.xml also.

I have downloaded JSSE1.0.2 set all class path as given
i also added jar files of JSSE to jdk/jre/lib/ext

in short i have done everything given in documentation

After doing all this when i was trying to visit my webserver from other machine.. on 
browser error i am getting is "page not found" and on webserver i'm getting following 
error:



Ctx< >: 400 R< /> null
Ctx< >: IOException in: R< /> Socket Closed


I don't understand the meaning of this.

not only this.. i have tried to generate keystore values without using any other 
certificates..
i have just used keytool -genkey ..  comman 
with -keyalg RSA.

at that time it was giving me same error in server side
and browser side it was giving me error :
name of site is not matches with the name given in certificate 

so please help me.. 

thanx in advance

sunil





 









_
Get LifeTime Free email Visit  ---> http://www.nagpurcity.net



Welcome File : index.html

2001-04-10 Thread Sunil Chandurkar

Hello can i change welcome file index.html to
my sample.html

I have tried this by changing contents of  tag of file web.xml
still it didn't work..

please let me know the way... 

Thanx in advance

regards
sunil

_
Get LifeTime Free email Visit  ---> http://www.nagpurcity.net



Repaint( )

2001-04-04 Thread Sunil Chandurkar

Hello All !!

Do anybody of you know how to repaint particular area of Applet rather than repainting 
an entire applet.
First tell me is it possible to repaint particular area. 

Sorry I am asking this question in Tomcat user list
but i found this is the only way to ask this question
where lots of world class personality shares their views.

Thanks in Advance

Regards

Sunil

_
Get LifeTime Free email Visit  ---> http://www.nagpurcity.net



doGet - doPost

2001-03-27 Thread Sunil Chandurkar

Hello All..

Though i'm working on servlets from couple of months
i'm getting confused between doGet and doPost whenever i'm trying to do Applet-Servlet 
Communication.

My Problem is :

On particular event my Applet is sending one string to Servlet and inresponse servlet 
is sending one Vector to applet.
If i will keep on performing Applet - Servlet communication,hardly i can perform 2-3 
transactions.
On 4th request from applet to servlet .. my browser gets hung.
I have written entire code in doPost of servlet.

I am very much confused where shall i write the code on servlet side in doGet or in 
doPost.. and one more thing.. i have tried by writing code into doGet also.

I have already visited lots of sites from where i could get this solution.. and 
according to their samples. i did everything. but still problem is there only.

If anybody is having perfect solution on this Applet-Servlet communication please let 
me know...

Regards
Sunil




_
Get LifeTime Free email Visit  ---> http://www.nagpurcity.net



Re: chart in jsp

2001-03-26 Thread Sunil Chandurkar


Applet is time consuming stuff for genrating dynamic chart.. go for XML.. thats only 
recommended solution

sunil
--- "Kenneth Westelinck" <[EMAIL PROTECTED]>
> wrote:
>Hi,
>
>
>Maybe you should use an applet.
>
>
>regards,
>
>Kenneth Westelinck
>
>>From: Ludovic Maitre <[EMAIL PROTECTED]>
>>Reply-To: [EMAIL PROTECTED]
>>To: [EMAIL PROTECTED]
>>Subject: Re: chart in jsp
>>Date: Mon, 26 Mar 2001 14:34:46 +0200
>>
>>Altuð Altýntaþ (Koç.Net) wrote:
>> >
>> > are there  any way to draw a dynamic chart in jsp ?
>> >
>> > any source  or idea ?
>> >
>> > thanks ..
>> >
>> > Altug
>>
>>Perhaps that you can generate an SVG image (cf www.w3.org) from your
>>data but it's more easy with XML than with JSP.
>>And your public must have a SVG plugin on their browser.
>>
>>Regards,
>>
>>--
>>  [EMAIL PROTECTED]
>>
>>  INRIA - 2004 route des lucioles - BP 93Tel: (33/0) 4 92 38 50 41
>>  06902   SOPHIA-ANTIPOLIS cedex (France)Fax: (33/0) 4 92 38 76 02
>
>_
>Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

_
Get LifeTime Free email Visit  ---> http://www.nagpurcity.net



Re: Tomcat and Jsp files

2001-03-25 Thread Sunil Chandurkar

See for testing purpose you can use
"examples" as a context. 
You will find something like this in ur tomcat home 
folder: Tomcat_HOME\webapps\examples\jsp
inside this folder u will find lots of sample folders.
If you want to create new folder you can create here only... for example "TestFolder"
then u can copy all ur jsp files here : Tomcat_HOME\webapps\examples\jsp\TestFolder
and required class files(like applet files) u can copy at 
TOMCAT_HOME\webapps\examples\WEB-INF\classes

then u can run from ur browser like this

http://locahost:8080/examples/jsp/TestFolder/test.jsp

/sunil

--- Chris Andreou <[EMAIL PROTECTED]>
> wrote:
>Hi I am using Tomcat 3.2.1 and Apache on an Nt platform. My confusion is
>this: 
>In http.conf file I have :
>
>JkMount /*.jsp ajp12
>JkMount /servlet/* ajp12
>
>Should all the .jsp files be under the webapps directory? I have a jsp file
>under my webroot Apache directory but Tomcat does not see it? 
>
>Thanks
>
>Chris

_
Get LifeTime Free email Visit  ---> http://www.nagpurcity.net



I am getting an Exception on running JSP: - - -

2001-03-21 Thread Sunil Chandurkar

Hello All...

On running JSP pages.. its giving me proper output
and also giving me following exception. This is first time I am runnign JSP. I have 
not written a single JSP page... I was trying all those ASP pages those are coming 
with Tomcat Doc. There are some samples provided by tomcat...those only i have tried.. 
and those are giving me an exception.. 

what shall i do for that

First I have started Tomcat then started Apache service. Am i need to configure 
server.xml or anyother file to achieve proper output

Root cause:

java.lang.NoSuchMethodError at 
org.apache.jasper.runtime.JspWriterImpl.flush(JspWriterImpl.java:209) at 
jsp.dates._0002fjsp_0002fdates_0002fdate_0002ejspdate_jsp_0._jspService(_0002fjsp_0002fdates_0002fdate_0002ejspdate_jsp_0.java:159)
  at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:840)at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177)at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:840)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:797)at 
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)at 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)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)

_
Get LifeTime Free email Visit  ---> http://www.nagpurcity.net



How to run JSP on Tomcat under windows?

2001-03-21 Thread Sunil Chandurkar

Hello all,

Today is my first day to work on JSP, I have created 
very simple JSP file, and was trying to run
it was giving proper output and also it was giving me following error,

I am using windows machine.

Firsly i have started Apache service using net start option and then I have 
started tomcat server.

Please help me to run JSP on Tomcat server


2001-03-21 04:12:27 - Ctx( /examples ): Exception in: R( /examples + 
/jsp/dates/date.jsp 
+ null) - 
javax.servlet.ServletException at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:399) 
at javax.servlet.http.HttpServlet.service(HttpServlet.java:840)  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:797) 
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) 
at 
  :
  :
  :
  : etc.

please help me





_
Get LifeTime Free email Visit  ---> http://www.nagpurcity.net



How to JSP on Tomcat ...urgent !!!!.

2001-03-21 Thread Sunil Chandurkar

Hello all,

Today is my first day to work on JSP, I have created 
very simple JSP file, and was trying to run
it was giving proper output and also it was giving me following error,

Firsly i have started Apache service using net start option and then I have started 
tomcat server.

Please help me to run JSP on Tomcat server


2001-03-21 04:12:27 - Ctx( /examples ): Exception in: R( /examples + 
/jsp/dates/date.jsp + null) - 
javax.servlet.ServletException at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:399) at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:840)  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:797) at 
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at 
  :
  :
  :
  : etc.

please help me






_
Get LifeTime Free email Visit  ---> http://www.nagpurcity.net



Mandar I have read those documents (help on HTTPS)

2001-03-13 Thread Sunil Chandurkar

I have read them now proble is how to associate one
fake certificate with our web server.
I have achieved https by configuring server.xml, 
even i have created one certificate 
its asking me first time to install that certificate..
once i installed the proper certificate.. ideally he shouldn't ask me again but 
problem is its again keep on asking me for installing certificate.. 
i dont know how to cope with the situation...
or better u tell me how to associated one generated certificate to our web server.

/sunil

--- "Mandar Joshi" <[EMAIL PROTECTED]>
> wrote:
>Read Document how to ssl in the docs directory - see the option SSL direct.
>
>Mandar
>----- Original Message -
>From: "Sunil Chandurkar" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Monday, March 05, 2001 9:30 PM
>Subject: Re: I'm New User - Tomcat HTTPS Help expecting
>
>
>>
>> But Mr. David
>>
>> Is there any need to make any association between apache and tomcat. If
>yes how can i make it?
>> how can i get SSL Virtual Host?
>>
>> /sunil
>>
>> --- David Crooke <[EMAIL PROTECTED]>
>> > wrote:
>> >SSL is entirely orthogonal to Tomcat - just put the tomcat directives in
>> >your SSL virtual host and use https URLs - look at
>> >http://www.modssl.org/ for SSL info
>> >
>> >
>> >
>> >
>> >-
>> >To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >For additional commands, email: [EMAIL PROTECTED]
>>
>> _
>> Get LifeTime Free email Visit  ---> http://www.nagpurcity.net
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, email: [EMAIL PROTECTED]
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, email: [EMAIL PROTECTED]

_
Get LifeTime Free email Visit  ---> http://www.nagpurcity.net

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




Applet - Servlet Comm (Tomcat)

2001-03-13 Thread Sunil Chandurkar

Hello 

I have written code for Applet servlet communication
i'm using Tomcat as a web server...

following is Applet side code which is trying to read
object from servlet... once its giving me proper output
but during second call to this function for same servlet, hung the browser.

Applet side code :

public Object readFromServletEx(String servletName)
throws IOException, Exception
{
URLConnection   servletConnection   = null;
//*
//* Get The Servlet's URL and Connect it
//*
String  protocol= getCodeBase().getProtocol();
String  host  = getCodeBase().getHost();
int port  = getCodeBase().getPort();
URL url  = new URL(protocol,
host,
port,
"/examples/servlet/"+servletName);
servletConnection = url.openConnection();
servletConnection.setUseCaches (false);
InputStream in = servletConnection.getInputStream();
ObjectInputStream result = new ObjectInputStream(in);

return result.readObject();
}

Servlet side code :

public void doGet(HttpServletRequest request,
HttpServletResponse response)
   throws ServletException, IOException
{
ObjectOutputStream outKFileObj = 
new ObjectOutputStream   (response.getOutputStream());

Vector repositoryVector= new Vector();
repositoryVector.addElement("Ten");
repositoryVector.addElement("Tweleve");

outKFileObj.writeObject(repositoryVector);
outKFileObj.flush();
outKFileObj.close();
}


This is even not working with Java Web Server.

please help me

/sunil

_
Get LifeTime Free email Visit  ---> http://www.nagpurcity.net

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




Re: I'm New User - Tomcat HTTPS Help expecting

2001-03-05 Thread Sunil Chandurkar


But Mr. David

Is there any need to make any association between apache and tomcat. If yes how can i 
make it?
how can i get SSL Virtual Host?

/sunil

--- David Crooke <[EMAIL PROTECTED]>
> wrote:
>SSL is entirely orthogonal to Tomcat - just put the tomcat directives in
>your SSL virtual host and use https URLs - look at
>http://www.modssl.org/ for SSL info
>
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, email: [EMAIL PROTECTED]

_
Get LifeTime Free email Visit  ---> http://www.nagpurcity.net

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




I'm New User - Tomcat HTTPS Help expecting

2001-03-05 Thread Sunil Chandurkar

I am new user of Tomcat. I want to use Tomcat as a web serve in my application running 
on Win NT.

My application includes Applet-Servlet communication. 

I want to use HTTPS protocol instead of HTTP.
How can i achieve secure trasaction on Tomcat. 

I read some documentation on net... according to that
I have installed Apache then I have installed Tomcat.
then I have configured Server.xml file where i have added something about 
poolTCPConnector with port no. 8443 and i was trying to generate key using keytool 
command line option. But i didn't understand how to generate certificates and secondly 
once it is generated how to associate it with tomcat server.

I am bit confuse, please could u help me to get rid of all these confusion and please 
tell me 
steps to configure tomcat server. 

is there any provision to get sample certificates for testing...

please help me...


thanks

/sunil


_
Get LifeTime Free email Visit  ---> http://www.nagpurcity.net

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




Tomcat 3.1 can't handle load

2001-02-18 Thread Sunil Kumar Roy

Hello Sirs,
We are developing a B2B website using Tomcat 3.1 for our company.(We are yet
to buy a full-fledged webserver since ours is a startup firm).

The site displays many images.
We use SQL server7.0 for database.

When we are interacting with the database, very often the following prompt
appears "It has performed an illegal operation & will be shut down". There
is only one button for "close" in that prompt box.When we click on "close",
the tomcat shuts down.
The problem also sometimes comes when we are not accessing the database.

We are facing great difficulty in developing the site due to this frequent
problem.

Could you help please?

Thanks in anticipation.

Regards

Sunil K. Roy


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




Re: How do I determine the Relese Ver No

2000-12-13 Thread Sunil Kumar K



Hi Guys,    Can u ppl help 
me out    can anyone send me a complete installation 
script for tomcat 3.2 on Red Hat Linux 6.2    I have 
apache 1.3.14    apache Jserv 
1.1.2cheersSunil

  - Original Message - 
  From: 
  Craig R. McClanahan 
  To: [EMAIL PROTECTED] 
  Sent: Thursday, December 14, 2000 1:02 
  AM
  Subject: Re: How do I determine the 
  Relese Ver No
  Shahed Ali wrote: 
   Hi, I 
downloaded Tomcat 3.2 Final release a few days ago. How do I know if its b1 or b2 or what ? ThanksShahed
  On the "welcome" page you get when you first start Tomcat, you'll see 
  in the title something like "Tomcat 3.2" -- which means you have the final 
  version.  One of the betas would have identified itself as "Tomcat 
  3.2-b8" or something like that. 
  You can also detect this inside an application by calling 
  ServletContext.getServerInfo() -- the Tomcat version information will be 
  included in the string that is returned. 
  Craig McClanahan   


Complete Installation steps ..

2000-12-13 Thread Sunil Kumar K

Hi Guys,

Can u ppl help me out
can anyone send me a complete installation script for tomcat 4 on Red
Hat Linux 6.2
I have apache 1.3.14
apache Jserv 1.1.2

cheers
Sunil


- Original Message -
From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, December 13, 2000 10:29 AM
Subject: Re: Thread.currentThread().setContextClassLoader() [was:
ServletContext.getResourceAsStream() in 3.2?]


>
>
> "Roytman, Alex" wrote:
>
> > Tomcat developers, please correct me if I am wrong but as far as I know
> > Tomcat 3.2 does not set ContextClassLoader for its threads.
>
> The context class loader is a Java2 thing.  Since Tomcat 3.2 runs under
JDK 1.1
> as well, it cannot do this by default.  However, you can enable it by
adding the
> following in your server.xml file:
>
>   className="org.apache.tomcat.request.Jdk12Interceptor />
>
> Note -- any web application that depends on this (setting the context
class
> loader) is ***not*** guaranteed to be portable, because it is ***not***
required
> by the servlet specification.
>
> > So you are using
> > main class loader which knows nothing about your WEB-INF/lib
>
> This is not true.
>
> You are using a class loader that is aware of JAR files in WEB-INF/lib,
and
> unpacked classes in WEB-INF/classes, even on a JDK 1.1 system.  It just
doesn't
> call the Thread.setContextClassLoader() method by default.
>
> >
> > I had a different problem - when code loaded by main classloader need to
> > load classes from WEB-INF/lib. I solved it by writing request and
context
> > interceptors for tomcat to call
> > Thread.currentThread().setContextClassLoader() for each thread before it
> > touches a servlet (doing init/destroy or serving request)
> >
>
> See above.
>
> Craig McClanahan
>
> PS:  Note that Tomcat 4.0, because it is guaranteed a Java2 platform as a
> prerequisite, calls Thread.setContextClassLoader() on every request by
default.
>
>




JNI and Tomcat

2000-12-12 Thread Sunil Chandurkar

Hello

Let me tell you what i have done. and let me know if i'm doing anything
wrong...
(I just want to call DLL through servlet which is giving data to Applet)

-I have created one applet and then copied that applet into one directory
called "D:\ClassFolder"
-then copied this folder into directory .
-then copied html file into  which is calling my applet
(codebase="classfolder")
-then copied servlet at 
-the servlet is calling DLL, so I copied that DLL at 

"in case of Java Web Server.. I used to copy DLL at ,
I have created folder "ClassFolder" and copied into 
and copied all html files into 
and copied all servlets file at "
Here it was working

but in case of TOMCATi am getting an error:Plese go thru it and let me
know the exact way
to do it.
"I don't know what is Context Manager etc."

2000-12-13 12:43:57 - Ctx( /examples ): IOException in: R( /examples +
/ClassFol
der/AuthenticationApplet.class + null) Connection aborted by peer: socket
write
error
2000-12-13 12:44:10 - Ctx( /examples ): Exception in: R( /examples +
/servlet/Au
thenticationServlet + null) - java.lang.UnsatisfiedLinkError: no
KFRepInterface
in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1312)
at java.lang.Runtime.loadLibrary0(Runtime.java:749)
at java.lang.System.loadLibrary(System.java:820)
at GetArrayOfStructs.(GetArrayOfStructs.java:17)
at AuthenticationServlet.doPost(AuthenticationServlet.java:28)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:747)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:840)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:4
04)
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:797)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743
)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnectio
n(HttpConnectionHandler.java:210)
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)




https and Tomcat

2000-12-12 Thread Sunil Chandurkar

I have written one applet which is trying to talk to servlet thru https
protocol...
but its not working and even not giving error also. wht shall i do for this?
shall i configure tomcat to receive such request?


Regards

Sunil
Software Engineer
[Kuokoa Network Inc.]




I have Small Problem

2000-12-12 Thread Sunil Chandurkar

I am new user of Tomcat.  I have created simple helloworld servlet. Please
can u
tell me where to copy class file and how to call this from browser.
I have worked on Java Web Server, there i used to copy servlet file in the
following diretory: /examples/Web-Inf/servlets
and used to call this file as: http://localhost:8080/ServletName

How to do it in Tomcat?

Regards
Sunil