RE: Message status - delivered

2001-09-04 Thread Mandar Joshi

What the hell is that ? It's flooding my inbox.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 04, 2001 10:41 AM
To: [EMAIL PROTECTED]
Subject: Message status - delivered


The message that you sent was delivered to the following:




RE: Redirection and Load Balancing

2001-08-08 Thread Mandar Joshi


Is it possible to use mod_jk with standalone tomcat ?

Thanks for your help
Mandar

-Original Message-
From: Paul Nock [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 08, 2001 3:44 PM
To: [EMAIL PROTECTED]
Subject: RE: Redirection and Load Balancing


You can use mod_jk to load balance between different JVMs running Tomcat.
Works well, we use it.

The JVMs could then also be on remote machines to either each other, and/or
the machine running Apache.

mod_jk will preserve sessions for you so that subsequent request go to the
right JVM.

You'll need to configure the workers.properties, etc. to use the
'loadbalancer' worker.

Paul

-Original Message-
From: George Shafik [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 08, 2001 3:40 PM
To: [EMAIL PROTECTED]
Subject: Redirection and Load Balancing


Hi All,

Current System Architecture
Apache : 3.17 (Custom Build)
Tomcat : 3.2.2 (Custom Build)
Deployment : war files.
Platform : Red Hat Linux 6.2

We are after a method to redirect based on a limit on the number of page
hits or the load on the current Web Server.

The redirection needs to be performed by Apache or Tomcat not by the web
page itself. Currently we are redirecting the user to another Web Server
from the current page as the page hits reach a certain limit or the load is
too much on the current box. A better way to conduct this is to redirect the
call to another Web Server at the Web Server or Servlet Engine level, in our
case that's Apache or Tomcat. Its not clear to us where in Apache or Tomcat
we can configure things based on page hits or load if its possible to do at
all.

Many thanks in advance for any help in this area.

Regards,
George Shafik






RE: Redirection and Load Balancing

2001-08-08 Thread Mandar Joshi

Then is there any mechanism on tomcat standalone for load balancing ?

Thanks
Mandar

-Original Message-
From: Tim O'Neil [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 08, 2001 4:02 PM
To: [EMAIL PROTECTED]
Subject: RE: Redirection and Load Balancing


At 03:51 PM 8/8/2001, you wrote:

Is it possible to use mod_jk with standalone tomcat ?

No, mod_jk is an apache binary module. How could tomcat
alone use it?



RE: imp - Tomcat with SSL

2001-07-06 Thread Mandar Joshi



I guess it does not 
support digest based (SSL) client 
authenticationthough.

cheers,
Mandar

  -Original Message-From: Rams 
  [mailto:[EMAIL PROTECTED]]Sent: Thursday, July 05, 2001 11:24 
  PMTo: [EMAIL PROTECTED]Subject: RE: imp - 
  Tomcat with SSL
  Tomcat does 
  support SSL..
  Ver 3.2.1 or 
  above.
  
  Rams 
  +91-040-3000401 x 2162 
  (O) +91-040-6313447 
  (R) 
  
-Original Message-From: Parag S 
[mailto:[EMAIL PROTECTED]]Sent: Friday, July 06, 2001 11:33 
AMTo: [EMAIL PROTECTED]Subject: imp - 
Tomcat with SSL
Does Tomcat supports SSL
If yes then which version supports it.

Please let me know immediatly

Thanking you in advance.
parag


Client Authentication not supported in Tomcat 3.x.

2001-07-02 Thread Mandar Joshi

Hi,

I was looking at the release notes for 3.2 and 3.3 and I found following
statement in there -
- DIGEST authentication and HTTPS client authentication (i.e. SSL) are not
supported in this release. 

Does that mean that I can not use Client Authentication in 3.x versions of
tomcat ? (Its confusing, since the connector example for https has a mention
of client authentication)

Thanks for your help,
Mandar



How to control the http reponse code from Servlet ?

2001-06-06 Thread Mandar Joshi

Hi,

My application demands control over http response codes while sending a
response from a servlet.
Please help me understand how can one do this. I am using Tomcat 3.2 as
servlet engine on Windows NT platform

Thanks in advance,
Mandar




Re: How to control the http reponse code from Servlet ?

2001-06-06 Thread Mandar Joshi

Sorry for that stupid question.

Thanks Warren,
Best Regards,
Mandar
- Original Message - 
From: Warren Crossing [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 06, 2001 5:29 PM
Subject: RE: How to control the http reponse code from Servlet ?


 response.sendResponse();
 
 look at the javadoc api for javax.servlets.http
 
 -Original Message-
 From: Mandar Joshi [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, 7 June 2001 10:34 AM
 To: [EMAIL PROTECTED]
 Subject: How to control the http reponse code from Servlet ?
 
 
 Hi,
 
 My application demands control over http response codes while sending a
 response from a servlet.
 Please help me understand how can one do this. I am using Tomcat 3.2 as
 servlet engine on Windows NT platform
 
 Thanks in advance,
 Mandar




Re: simple question for servlet-configuration of tomcat

2001-04-06 Thread Mandar Joshi


You simply need to put your stuff uner ROOT context.


- Original Message - 
From: "TOPO graphics GmbH" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, April 06, 2001 7:19 AM
Subject: simple question for servlet-configuration of tomcat


 Hello,
 
 since several weeks I am testing tomcat as a Servlet Engine with great
 success. I use Win98 SE2 with PWS.
 Now I have a simple problem (I think):
 
 What I have to do (in the configuration files) when I want to start my
 servlets with the URL:
 
 http://localhost/servlet/TestServlet
 
 and not with a WEPAPP-Directory like
 http://localhost/example/servlet/TestServlet
 
 Which settings I have to do in the configuration-files and in which
 directory I have to put my Servlets ?
 
 Thanks a lot for your answer
 
 With best regards
 
 M. Thorand
 
 TOPO graphics
 Geographische Informationssysteme GmbH
 
 EMail:  [EMAIL PROTECTED]
 




Re: Client Authentication

2001-04-05 Thread Mandar Joshi

Hi Rams,

I have kept my Client Certificate in the cert store specified by 'keystore'
parameter of the SSL connector in TC.
while importing it from file to this keystore, I have trusted the Root CA
(this is CA of my company).

I have same certificate installed on my IE, with Root CA in the Root CA
store of windows.

It still does not show a dialog to select cert from - I still see page can
not be displayed error on IE.
And I still get these lines on TC consol -

2001-04-05 10:35:24 - Ctx(  ): 400 R( /) null
2001-04-05 10:35:24 - Ctx(  ): IOException in: R( /) Socket closed
2001-04-05 10:35:24 - Ctx(  ): 400 R( /) null
2001-04-05 10:35:24 - Ctx(  ): IOException in: R( /) Socket closed

your help is appriciated.
Mandar

- Original Message -
From: "Rams" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, April 04, 2001 10:30 PM
Subject: RE: Client Authentication


 Hi Mandar,

 I want to know if there are any additional settings to be done on Tomcat
 side ?
 There is nothing to done extra on Tomcat side for Client Authentication..
 u have to get SSLClient Cert. from any Trusted CA, in case if u want to
 connect to any server which needs client Authentication.

 I know IE should atleast allow me to select a certificate to be sent to
the
 server by showing a dialog box.
 It does not reach that stage.

 For this u should import ur client cert to browser , it'll be stored in
 personal settings.
 if the CA of ur cert matches any of the trusted CAs in the browser, u'll
get
 a dialog to select a cert.

 Thats it.

 do reply if it works.

 --Rams




Client Authentication

2001-04-04 Thread Mandar Joshi

Hi,

I am using Tomcat 3.2 on WindowsNT 4.0. I have enabled SSL direct on tomcat.
If I access my server without client authentication it goes on well.
But if I specify client authentication then it gives me following error on
the server screen

2001-04-04 04:02:42 - Ctx(  ): 400 R( /) null
2001-04-04 04:02:42 - Ctx(  ): IOException in: R( /) Socket closed
2001-04-04 04:02:42 - Ctx(  ): 400 R( /) null
2001-04-04 04:02:42 - Ctx(  ): IOException in: R( /) Socket closed
2001-04-04 04:02:42 - Ctx(  ): 400 R( /) null
2001-04-04 04:02:42 - Ctx(  ): IOException in: R( /) Socket closed


The browser shows me Page Cannot be displayed error.

This is how my server.xml entry looks like

Connector className="org.apache.tomcat.service.PoolTcpConnector"
Parameter name="handler"

value="org.apache.tomcat.service.http.HttpConnectionHandler"/
Parameter name="port"
value="8443"/
Parameter name="socketFactory"
value="org.apache.tomcat.net.SSLSocketFactory" /
Parameter name="keystore" value="/tomcat/conf/newCerts" /
Parameter name="keypass" value="keypass"/
Parameter name="clientAuth" value="true"/
/Connector

What could be wrong ?

your help is appriciated

Mandar




Re: Client Authentication

2001-04-04 Thread Mandar Joshi

 Do you understand how SSL/TLS works for "Client Authentication"?
I guess I know sufficient about SSL and client authentication.

 Do you think the client must obey everything mandated by the server?
???

 Try have a grasp how both ends *agree* on the "client authentication".
I want to know if there are any additional settings to be done on Tomcat
side ?
I know IE should atleast allow me to select a certificate to be sent to the
server by showing a dialog box.
It does not reach that stage.

Mandar


 Pae

 -Original Message-
 From: Mandar Joshi [EMAIL PROTECTED]
 To: [EMAIL PROTECTED] [EMAIL PROTECTED]
 Date: Wednesday, April 04, 2001 4:03 PM
 Subject: Client Authentication


 Hi,
 
 I am using Tomcat 3.2 on WindowsNT 4.0. I have enabled SSL direct on
 tomcat.
 If I access my server without client authentication it goes on well.
 But if I specify client authentication then it gives me following error
on
 the server screen
 
 2001-04-04 04:02:42 - Ctx(  ): 400 R( /) null
 2001-04-04 04:02:42 - Ctx(  ): IOException in: R( /) Socket closed
 2001-04-04 04:02:42 - Ctx(  ): 400 R( /) null
 2001-04-04 04:02:42 - Ctx(  ): IOException in: R( /) Socket closed
 2001-04-04 04:02:42 - Ctx(  ): 400 R( /) null
 2001-04-04 04:02:42 - Ctx(  ): IOException in: R( /) Socket closed
 
 
 The browser shows me Page Cannot be displayed error.
 
 This is how my server.xml entry looks like
 
 Connector className="org.apache.tomcat.service.PoolTcpConnector"
 Parameter name="handler"
 
 value="org.apache.tomcat.service.http.HttpConnectionHandler"/
 Parameter name="port"
 value="8443"/
 Parameter name="socketFactory"
 value="org.apache.tomcat.net.SSLSocketFactory" /
 Parameter name="keystore" value="/tomcat/conf/newCerts" /
 Parameter name="keypass" value="keypass"/
 Parameter name="clientAuth" value="true"/
 /Connector
 
 What could be wrong ?
 
 your help is appriciated
 
 Mandar
 




Deploying servlet without an application

2001-03-22 Thread Mandar Joshi

I want to make a simple applet run on tomcat.
I don't want to put that in an enterprise application just want to have it
in the classpath and make an entry in the web.xml like this

servlet
servlet-name
ServRequests
/servlet-name
servlet-class
com.mandar.servlet.RequestsServlet
/servlet-class
context-param
init-param
 param-name
  acceptrequests
 /param-name
 param-value
  quoteRequests
 /param-value
/init-param
/context-param
/servlet

secondly can I pass in the init param as shown above ?

Thanks in advance

Mandar




Simple servlet without an application

2001-03-22 Thread Mandar Joshi

Hi All,
I want to make a simple servlet run on tomcat.
I don't want to put that in an enterprise application just want to have it
in the classpath and make an entry in the web.xml like this

servlet
servlet-name
ServRequests
/servlet-name
servlet-class
com.mandar.servlet.RequestsServlet
/servlet-class
context-param
init-param
 param-name
  acceptrequests
 /param-name
 param-value
  quoteRequests
 /param-value
/init-param
/context-param
/servlet

For some reason this is not working.
Secondly can I pass in the init param as shown above ?

Thanks in advance

Mandar





javax.servlet.ServletException: sealing violation

2001-03-14 Thread Mandar Joshi

I just moved my server side java class to another directory and altered the
classpaths to the new directory. I am getting follwoing exception while
calling my jsp

javax.servlet.ServletException: sealing violation
 at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:459)
 at
jsp.dates._0002fjsp_0002fdates_0002fnewdate_0002ejspnewdate_jsp_0._jspServic
e(_0002fjsp_0002fdates_0002fnewdate_0002ejspnewdate_jsp_0.java:91)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va: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:853)
 at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
 at org.apache.tomcat.core.Handler.service(Handler.java:286)
 at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
 at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
 at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.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)

Root cause:
java.lang.SecurityException: sealing violation
 at java.net.URLClassLoader.defineClass(URLClassLoader.java:234)
 at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
 at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
 at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
 at
com.commerceroute.rosettanet.xml.template.BaseTemplate.(BaseTemplate.java:14
)
 at com.commerceroute.rosettanet.xml.template.CRMsg.(CRMsg.java:26)
 at com.commerceroute.sxmsgr.MsgCreator.(MsgCreator.java:31)
 at
jsp.dates._0002fjsp_0002fdates_0002fnewdate_0002ejspnewdate_jsp_0._jspServic
e(_0002fjsp_0002fdates_0002fnewdate_0002ejspnewdate_jsp_0.java:62)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va: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:853)
 at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
 at org.apache.tomcat.core.Handler.service(Handler.java:286)
 at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
 at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
 at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.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)

Any idea why is this happening ?

TIA
Mandar


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




Re: Error: 500 while compiling a JSP file

2001-03-13 Thread Mandar Joshi

Thanks it seems to be working with that

Mandar
- Original Message -
From: "Randy Layman" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, March 13, 2001 4:11 AM
Subject: RE: Error: 500 while compiling a JSP file



 I don't believe that the Java compilers import the classes from the
 default package (no package specified) when the class isn't in the default
 package itself.  Tomcat automatically puts all its generated classes into
 packages as determined by your directory structure so that you can have
 files with the same name in different directories.  What you need to do is
 to either import * (all in the default package) or import DBWriter (the
 class specifically).

 Randy

 -Original Message-----
 From: Mandar Joshi [mailto:[EMAIL PROTECTED]]
 Sent: Monday, March 12, 2001 5:51 PM
 To: [EMAIL PROTECTED]
 Subject: Error: 500 while compiling a JSP file


 Hi,

 I have a simple server side java class named DBWriter (with no package
name)
 I am using it in a jsp file like this

 %DBWriter dbwrt = new DBWriter()%

 I get following exception on browser page while browsing the above jsp



 _
 Error: 500
 Location: /examples/jsp/dates/mydate.jsp
 Internal Servlet Error:

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

JSPD:\tomcat\work\localhost_8080%2Fexamples\_0002fjsp_0002fdates_0002fmydate
 _0002ejspmydate_jsp_0.java:87: Class jsp.dates.DBWriter not found.
 DBWriter w = new DBWriter();
 ^

D:\tomcat\work\localhost_8080%2Fexamples\_0002fjsp_0002fdates_0002fmydate_00
 02ejspmydate_jsp_0.java:87: Class jsp.dates.DBWriter not found.
 DBWriter w = new DBWriter();
  ^
 2 errors

  at org.apache.jasper.compiler.Compiler.compile(Compiler.java:254)
  at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462)
  at
 org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
  at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)
  at

org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
 rvlet.java:152)
  at

org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
 va:164)
  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:853)
  at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
  at org.apache.tomcat.core.Handler.service(Handler.java:286)
  at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
  at

org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
 7)
  at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
  at

org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
 onnectionHandler.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)


 __


 as I told earlier the class I am using is not residing in any package,
while
 tomcat is trying to find it in jsp.dates package.

 How do I get around this problem ? Is this a bug since I see similar kinds
 of problems reported on the mailing list archieve

 your help is appriciated,
 Mandar


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

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


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




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

2001-03-12 Thread Mandar Joshi

Hi,

 I have a simple server-side java class named DBWriter (with no package
name)
I am using it in a jsp file like this

 %DBWriter dbwrt = new DBWriter()%

 I get following exception on browser page while browsing the above jsp



 _
 Error: 500
 Location: /examples/jsp/dates/mydate.jsp
 Internal Servlet Error:

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

JSPD:\tomcat\work\localhost_8080%2Fexamples\_0002fjsp_0002fdates_0002fmydate
 _0002ejspmydate_jsp_0.java:87: Class jsp.dates.DBWriter not found.
 DBWriter w = new DBWriter();
 ^

D:\tomcat\work\localhost_8080%2Fexamples\_0002fjsp_0002fdates_0002fmydate_00
 02ejspmydate_jsp_0.java:87: Class jsp.dates.DBWriter not found.
 DBWriter w = new DBWriter();
  ^
 2 errors

  at org.apache.jasper.compiler.Compiler.compile(Compiler.java:254)
  at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462)
  at
 org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
  at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)
  at

org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
 rvlet.java:152)
  at

org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
 va:164)
  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:853)
  at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
  at org.apache.tomcat.core.Handler.service(Handler.java:286)
  at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
  at

org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
 7)
  at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
  at

org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
 onnectionHandler.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)


 __


 as I told earlier the class I am using is not residing in any package,
while
 tomcat is trying to find it in jsp.dates package.

 How do I get around this problem ? Is this a bug since I see similar kinds
 of problems reported on the mailing list archieve

 your help is appriciated,
 Mandar



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




SSL Direct - badly in need of help.

2001-03-05 Thread Mandar Joshi

Hi All,

 am trying to SSL Direct configuration.
I have a servercertificate installed in a store.

Connector className="org.apache.tomcat.service.PoolTcpConnector"
Parameter name="handler"

value="org.apache.tomcat.service.http.HttpConnectionHandler"/
Parameter name="port"
value="8443"/
Parameter name="socketFactory"
value="org.apache.tomcat.net.SSLSocketFactory" /
Parameter name="keystore"
value="/tomcat/conf/tomcatServerCerts" /
Parameter name="keypass" value="changeit"/
Parameter name="clientAuth" value="false"/
/Connector

I have made an entry in the java.security file as followes
security.provider.2=com.sun.net.ssl.internal.ssl.Provider

I go to the following link
https://mandar:8443/index.html from IE -  It gives me message
The page cannot be displayed
The error on the tomcat console is
2001-03-05 02:25:54 - Ctx(  ): 400 R( /) null
2001-03-05 02:25:54 - Ctx(  ): IOException in: R( /) Socket closed

If use http://mandar:8080/index.html - Works properly

Can you advice me on this problem.

Thanks in advance,
Mandar


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




Once Again IIS and Tomcat

2001-02-28 Thread Mandar Joshi

I have this setup with me

IIS4.0, WinNT 4.0 server.
Jdk1.3
Tomcat 3.2

I have followed the instructions in the howto_IIS.html
I can see the green arrow in the filter screen.

I have changed following entries in workers.properties
workers.tomcat_home=D:\tomcat
workers.java_home=D:\jdk1.3

I can not see http://localhost/examples/index.html
the error page is The Page cannot be found

The log files has following lines.

[jk_isapi_plugin.c (408)]: HttpFilterProc started
[jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of
/examples/index.html
[jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker
[jk_uri_worker_map.c (406)]: jk_uri_worker_map_t::map_uri_to_worker, Found a
match ajp12
[jk_isapi_plugin.c (439)]: HttpFilterProc [/examples/index.html] is a
servlet url - should redirect to ajp12
[jk_isapi_plugin.c (461)]: HttpFilterProc check if [/examples/index.html] is
points to the web-inf directory


Can somebody tell what's going wrong ?

TIA
Mandar


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




More on tomcat with SSL problem

2001-02-26 Thread Mandar Joshi

I created a java client communicating over https and used it with the same
URL it throws following exception:

javax.net.ssl.SSLException: Received fatal alert: handshake_failure (no
cipher suites in common)
at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.b([DashoPro-V1.2-120198])
at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.a([DashoPro-V1.2-120198])
at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.a([DashoPro-V1.2-120198])
at
com.sun.net.ssl.internal.ssl.AppOutputStream.write([DashoPro-V1.2-120198])
at java.io.OutputStream.write(Unknown Source)
at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake([DashoPro-V1.2-120
198])
at
com.sun.net.ssl.internal.www.protocol.https.HttpsClient.doConnect([DashoPro-
V1.2-120198])

at
com.sun.net.ssl.internal.www.protocol.https.NetworkClient.openServer([DashoP
ro-V1.2-120198])
at
com.sun.net.ssl.internal.www.protocol.https.HttpClient.l([DashoPro-V1.2-1201
98])
at
com.sun.net.ssl.internal.www.protocol.https.HttpClient.init([DashoPro-V1.2
-120198])
at
com.sun.net.ssl.internal.www.protocol.https.HttpsClient.init([DashoPro-V1.
2-120198])
at
com.sun.net.ssl.internal.www.protocol.https.HttpsClient.a([DashoPro-V1.2-120
198])
at
com.sun.net.ssl.internal.www.protocol.https.HttpsClient.a([DashoPro-V1.2-120
198])
at
com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnection.connect([Dash
oPro-V1.2-120198])
at
com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnection.getOutputStre
am([DashoPro-V1.2-120198])
at TestMessage.main(TestMessage.java:116)

The tomcat consol still dumps
2001-02-24 04:48:53 - Ctx(  ): 400 R( /) null
2001-02-24 04:48:53 - Ctx(  ): IOException in: R( /) Socket closed

There has to be a common Cipher Suite since both the programs are running on
same machine and sharing same environment.

Any help appritiated

Mandar

 -Original Message-
 From: Mandar Joshi [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, February 24, 2001 6:27 PM
 To: [EMAIL PROTECTED]
 Subject: tomcat with SSL


 Hi,

 I am using tomcat V3.2. I am trying to configure SSL for stand alone
tomcat.
 I have following entry in the server.xml file
 Connector className="org.apache.tomcat.service.PoolTcpConnector"
 Parameter name="handler"

 value="org.apache.tomcat.service.http.HttpConnectionHandler"/
 Parameter name="port"
 value="8443"/
 Parameter name="socketFactory"
 value="org.apache.tomcat.net.SSLSocketFactory" /
 Parameter name="keystore" value="tomCertStore" /
 Parameter name="keypass" value="mypass"/
  Parameter name="clientAuth" value="false"/
 /Connector

 When I start tomcat it shows me that it has started listening to port 8443
 however When I type https://myserv:8443/, it gives me 'The page cannot be
 displayed' error

 Tomcat consol dumps following lines
 2001-02-24 04:18:13 - Ctx(  ): 400 R( /) null
 2001-02-24 04:18:13 - Ctx(  ): IOException in: R( /) Socket closed

 Any ideas why is this happening ?

 Thanks in advance
 Mandar


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



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


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




Re: first time user!!!

2001-02-22 Thread Mandar Joshi

I use
tomcat start
command to start it

Mandar
- Original Message -
From: "Zakaria ." [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, February 22, 2001 5:34 PM
Subject: first time user!!!


 My question is very basic, i cant get tomcat (jakarta-tomcat-3.2.1) to
work
 on my windows machine, i set JAVA_HOME=c:\jdk1.3 and TOMCAT_HOME=c:\tomcat
 (i renamed jakarta-tomcat-3.2.1 to tomcat), and set the PATH for java
 interpreter...i keep getting:
 (after i type bin\startup in tomcat directory)
 ...
 Out of environment space
 Out of environment space
 Out of environment space
 Out of environment space
 Out of environment space
 Out of environment space
 Out of environment space
 Out of environment space
 Unable to set CLASSPATH dynamically.
 Note: To set the CLASSPATH dynamically on Win9x systems
   only DOS 8.3 names may be used in TOMCAT_HOME!
 Setting your CLASSPATH statically.
 Out of environment space
 Out of environment space
 Out of environment space
 Out of environment space
 Out of environment space
 Out of environment space
 Out of environment space
 Using CLASSPATH:
 Starting Tomcat in new window
 Bad command or file name
 ...
 Please help!!!
 _
 Get your FREE download of MSN Explorer at http://explorer.msn.com


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


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




Anybody doing doPost successfully ?

2001-02-16 Thread Mandar Joshi



Hi,
I am still not successful in getting data in 
doPost. anybody is doing it successfully ?

Regards,
Mandar

  - Original Message - 
  From: 
  Mandar Joshi 
  To: [EMAIL PROTECTED] 
  
  Sent: Thursday, February 15, 2001 6:15 
  PM
  Subject: No Data available in doPost 
  ?
  
  Hi,
  
  I am doing the following thing in my doPost() 
  method.
  
  __
  
   public void 
  doPost(HttpServletRequestrequest,HttpServletResponseresponse) 
  throws ServletException, IOException {
  try 
   { 
   InputStream ins = 
  request.getInputStream();  
  logMsg("Bytes available " + ins.available());

  } 
  }
  
  I am posting some data to this servlet but 
  I am getting the available bytes to be 0 
  ??
  
  Any guess why is this happening ?
  
  TIA
  Mandar


Re: Anybody doing doPost successfully ?

2001-02-16 Thread Mandar Joshi



Hi ,

This is for a Servlet-

Well I tried it in both ways - 

Posting datausing a java client like 
this
 URL url = new URL(http://mandar:8080/commerceroute/servletname); URLConnection conn = 
url.openConnection(); if(conn instanceof 
HttpURLConnection) { 
HttpURLConnection httpConn = (HttpURLConnection) 
conn; 
httpConn.setRequestMethod("POST"); 
httpConn.setDoOutput(true); 
out.write(arr); System.out.println("bytes written : 
" + arr.length); 
out.flush(); 
out.close(); out = null; 
httpConn.getContent(); InputStream ins = 
httpConn.getInputStream(); InputStreamReader rd = 
new InputStreamReader(ins); // read from 
rd }
Using a html page like this

HTMLHEADTITLERosettaNet Request 
POST/TITLE/HEADBODYFORM METHOD=POST 
ACTION="http://mandar:8080/commerceroute/servletname" 
INPUT TYPE=HIDDEN NAME=ERNOVALUE="Test_Data"INPUT 
TYPE=SUBMIT 
NAME="Submit"/FORM/BODY/HTML

In both cases the servlet seems to be stuck while 
reading from the request.InputStream


Mandar

  - Original Message - 
  From: 
  CPC 
  Livelink Admin 
  To: [EMAIL PROTECTED] 
  
  Sent: Friday, February 16, 2001 11:23 
  AM
  Subject: RE: Anybody doing doPost 
  successfully ?
  
  I 
  have successfully received post data in a JSP both using the getParameter and 
  using the com.oreilly.servlet utility classes.
  
  How 
  are you sending the post data? Are you using a web browser and form, or 
  are you trying to post it yourself using an applet or something. The 
  process does work, so it must be something unique to the way you are sending 
  the info.
  
  Regards,
  Paul
  
  
-Original Message-From: Mandar Joshi 
[mailto:[EMAIL PROTECTED]]Sent: Friday, February 16, 2001 
1:39 PMTo: [EMAIL PROTECTED]Subject: 
Anybody doing doPost successfully ?
Hi,
I am still not successful in getting data in 
doPost. anybody is doing it successfully ?

Regards,
Mandar

  - Original Message - 
  From: 
  Mandar Joshi 
  To: [EMAIL PROTECTED] 
  
  Sent: Thursday, February 15, 2001 
  6:15 PM
  Subject: No Data available in doPost 
  ?
  
  Hi,
  
  I am doing the following thing in my doPost() 
  method.
  
  __
  
   public void 
  doPost(HttpServletRequestrequest,HttpServletResponseresponse) 
  throws ServletException, IOException {
  try 
   { 
   InputStream ins = 
  request.getInputStream();  
  logMsg("Bytes available " + 
  ins.available());

  } 
  }
  
  I am posting some data to this servlet but 
  I am getting the available bytes to be 0 
  ??
  
  Any guess why is this happening 
?
  
  TIA
  Mandar


No Data available in doPost ?

2001-02-15 Thread Mandar Joshi



Hi,

I am doing the following thing in my doPost() 
method.

__

 public void 
doPost(HttpServletRequestrequest,HttpServletResponseresponse) throws 
ServletException, IOException {
try 
 { 
 InputStream ins = 
request.getInputStream();  
logMsg("Bytes available " + ins.available());
  
} 
}

I am posting some data to this servlet but 
I am getting the available bytes to be 0 
??

Any guess why is this happening ?

TIA
Mandar