Help Tomcat session replication!!!!!!!!!!!!!!!!!!!!!

2005-05-20 Thread etienne
Hello, I would like to know how session replication works with TOMCAT.
And what is the configuration?
 
My configuration is: 
 
One Apache 192.168.0.122
Three tomcat servers 192.168.0.121-123 
 
The load balancing with Apache and Tomcat works. I tested the
configuration with a simple JSP like this:
 
html
body bgcolor=red
center
%= request.getSession().getId() %
h1Tomcat 1/h1
/body
/html
 
When I test I obtain three pages (red, blue, green) with different ID. I
want to have only ID in order to see Session Replication works
correctly. 
 
Best regards, 
 
Etienne 
 
 mailto:[EMAIL PROTECTED] [EMAIL PROTECTED]
 


How to prioritize WEB-INF\lib jar files loading order

2005-03-25 Thread Etienne Klajnerman
Hi all,

Is there a possibility to assign to Tomcat class loader priority in the way
it loads the jar in WEB-INF\lib?

My application uses axis.jar in WEB-INF\lib.

However, some classes from axis.jar had had to be rewritten (i.e. Calendar
serializer and deserializer).

I'd like to include them in my application specific jar file, which is also
in WEB-INF\lib.

It appears that Tomcat (4.1) class loader load the jars in an undocumented
and not guaranteed alphabetic order.
Though, I don't want to rely on this hypothetical behaviour. 

Thanks for your help

I found a similar thread in the mailing list archive, but it has been closed
3 years ago. I hope someone got a solution in the meantime.

Regards,
ATN.



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



tomcat 4.0 and jaas (without JASSRealm)

2003-06-24 Thread Etienne Deleflie
Hello,

I am getting a security exception when my servlet is loaded:

java.lang.ExceptionInInitializerError: java.lang.SecurityException: 
java.lang.ClassNotFoundException: javax.security.auth.SubjectDomainCombiner
	at javax.security.auth.Subject.(Subject.java:170)
	at  bla.bla.blaom.mycompmany.etc. UserManager.java:107)

I assume it is because I need to declare that I can trust jaas.jar. I am 
using jdk 1.3 and tomcat 4.0.1

If I understand correctly, Tomcat makes the JDK's resident policy file 
defunct for its webapps, and replaces it with catalina.policy.

so in catalina.policy, I am trying to grant jaas.jar all permissions 
(for tests sake) with the following lines:

grant codeBase file:${catalina.home}/webapps/myApp/lib/- {
permission java.security.AllPermission;
};
This does not work. I get the same error.

So I have created a jaas.policy file and a jaas.conf and I am referring 
them into the JVM by running Tomcat with the following options:

CATALINA_OPTS= -Djava.security.auth.policy==/bla/bla/bin/jaas.policy 
-Djava.security.auth.login.config=/bla/bla/config/jaas.conf

Should this do the trick ? or will the Tomcat sandbox environement 
ignore this ?

any suggestions ?

any help is appreciated

etienne

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


Sealing violation loading javax.security.auth.AuthPermission

2003-06-24 Thread Etienne Deleflie
Hello all,

I'm stumped! I'm getting a Sealing violation. and its got me beat.

sealing violation trying to access javax.security.auth.AuthPermission 
. I cant find any reference to the same class in any other jar 
(eccept our own jars)... the problem does not exist on identical code 
that is not run with a servlet sandbox.

java.lang.SecurityException: Sealing violation loading 
javax.security.auth.AuthPermission : Package javax.security.auth is sealed.
at 
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1523)
at 
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:852)
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1273)
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1156)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310)
at 
com.company.software.userdatabase.UserManager.init(UserManager.java:110)

etienne

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


creating Datasource on Tomcat and JBuilkder

2003-03-17 Thread Etienne
Hi, I will rephrase my question. Because I send this email already.

I want to create a Datasource using the web base administration tools of
Tomcat. 

The problem I have is when I use JBuilder6 starting my tomcat 4.1.18
server, I cannot access the administration section of Tomcat. I think
JBuilder is not using the admin.xml file for
redirection on the admin section (because admin is a new Web Application
of Tomcat). So would it be best to migrate to another IDE (NetBeans,
Eclipse) instead... maybe it will be more customisable...?

Any other idea?

Thanks

Etienne.


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



RE: Tomcat web admin change

2003-03-16 Thread Etienne
I found part of the answer: the admin.xml file present in windows and
unix version. In this file you can change the admin path as you can see
(Context path=/admin). On a running tomcat it is working. So I have
found a part of my problem.

The problem I have now is when I use JBuilder6 starting my tomcat
server, it does not works; I cannot have access to the admin using
JBuilder. I think JBuilder is not using the admin.xml file for
redirection (because admin is a new Web Application from Tomcat). So I
am thinking to migrate to the NetBeans IDE instead... maybe it will be
more customisable...?

The goal of this, frankly, is to build a Tomcat Datasource... but if I
don’t have access to the tomcat admin in JBuilder, I don’t see how I can
easily do this job.

The reason why I needed first to change the /admin path is that I add
previously an admin/ section in my site, and the tomcat admin/ was
overriding my admin/ on any tomcat installation. So to make my site
works, I need to change the path of the tomcat admin.

Thanks for any support, idea...

Etienne.

!--

Context configuration file for the Tomcat Administration Web App

$Id: admin.xml,v 1.3 2002/07/23 12:12:15 remm Exp $

--


Context path=/admin docBase=../server/webapps/admin
debug=0 privileged=true

  !-- Uncomment this Valve to limit access to the Admin app to
localhost
   for obvious security reasons. Allow may be a comma-separated list of
   hosts (or even regular expressions).
  Valve className=org.apache.catalina.valves.RemoteAddrValve
allow=127.0.0.1/
  --

  Logger className=org.apache.catalina.logger.FileLogger
 prefix=localhost_admin_log. suffix=.txt
  timestamp=true/

/Context


Etienne Laverdière
[EMAIL PROTECTED]
514-277-7792


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: March 15, 2003 1:46 PM
To: [EMAIL PROTECTED]
Subject: RE: Tomcat web admin change

are you using tomcat or apache + tomcat ?
If you are using apache tomcat use the proxy module / url rewrite module
to
have this done ..
Thanks 
guru


-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: 15 March 2003 18:39
To: Tomcat Users List
Subject: Re: Tomcat web admin change


I don't think this can be done yet in any current releases because the 
admin app assumes it is in the path /admin. I think there have been 
patches which fix this and might be part of 4.1.23 which might be coming

very soon.

(Sorry for being so vague)

-Tim

Etienne wrote:
 Where can I change the path of the ADMINISTRATION section? I want to
 change it from mysite.com/admin to mysite/tomcatAdmin
 
 Thanks
 
 Etienne
 
  


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

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


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



Tomcat web admin change

2003-03-15 Thread Etienne
Where can I change the path of the ADMINISTRATION section? I want to
change it from mysite.com/admin to mysite/tomcatAdmin

Thanks

Etienne



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



Servlet filter and listerner best practices

2003-02-21 Thread Etienne
Hi all, 

I am looking for some best practices for servlet filter (and servlet
listener). These are quite new (servlet 2.3). I am using a servlet
filter on some of my jsp page, but I would need a detail example of the
best way to implement it. I am not sure how to catch exception in the
servlet filter without hiding everything in the back on it. Also, I find
it a bit limited to map the servlet on jsp and servlet using the
web.xml. Is there a more precise way (with some reg ex?) to associate a
filter with pages? If I had some good example of good patterns, using
filter chain... I would probably apply it a better way. I would have the
same question about listener servlet too.

Thanks.

Etienne.


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




servlet/jsp/j2ee/pattern/ mailing list

2003-02-21 Thread Etienne
It there a newsgroup of a good mailing list for
servlet/jsp/j2ee/pattern/? I have search for some of them, I didn't find
anything.

Thanks.

Etienne. 


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




Tomcat admin

2003-02-21 Thread Etienne

Hi, 

Last week, I have change the path of the tomcat admin from mysite/admin
to mysite/admins, because I already had a custom administration section
on mysite/admin/. Now I have tried to access the tomcat admin, but I
have a security error. It seems that only admin/index.jsp can request
the admin section. So, is there a better way to configure my
tomcat/admin? By the way in which file can I set the path of the
administration section? I forgot where I did it!

ERROR:

HTTP Status 400 - Invalid direct reference to form login page




type Status report

message Invalid direct reference to form login page

description The request sent by the client was syntactically incorrect
(Invalid direct reference to form login page).



Thanks

Etienne.


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




RE: Servlet filter and listerner best practices

2003-02-21 Thread Etienne
Thanks Will, 

The filter servlet is only for logging checking and parameter init. I
would have like to learn more about (J2EE) pattern using filter and
listener servlet.

The problem about the filter servlet is that doFilter() do not throws
exception, so we must catch everything in doFilter. So that is why I was
hiding everything in back of it. It can be hard to debug that way.

Regards, 

Etienne


-Original Message-
From: Will Hartung [mailto:willh@x] 
Sent: February 21, 2003 12:36 PM
To: Tomcat Users List
Subject: Re: Servlet filter and listerner best practices

 From: Etienne etienno@
 Sent: Friday, February 21, 2003 3:47 AM
 Subject: Servlet filter and listerner best practices


 Hi all,

 I am looking for some best practices for servlet filter (and servlet
 listener). These are quite new (servlet 2.3). I am using a servlet
 filter on some of my jsp page, but I would need a detail example of
the
 best way to implement it.

It kind of all depends on what your Filter needs to do. Passive filters
(like, say, a Logging Filter) can be quite different from something like
a
GZip filter, which needs to really muck about with the request and
streams
and what not.

 I am not sure how to catch exception in the servlet filter without
hiding
 everything in the back on it.

Pretty standard exception technique here. If you catch an exception that
you
don't want to deal with, simply throw it again and let something else
higher
up take care of it. Even better, don't catch exceptions that you can't
handle at all. The old proclamation of Don't test for something you
can't
handle rings loudly here.

Perhaps some more detail about your situation would be helpful.

 Is there a more precise way (with some reg ex?) to associate a filter
with
pages?

I dunno, the filter specification is pretty specific, perhaps too
specific
meaning that for lots of disparate pages, you'll have lots of entries in
the
web.xml. Perhaps if you could organize your pages in a hierarchy so you
could simply put the filter on a parent directory part of the path would
help reduce the load on the web.xml file.

Regards,

Will Hartung
(willh@x)





-
To unsubscribe, e-mail: tomcat-user-unsubscribe@xx
For additional commands, e-mail: tomcat-user-help@xx



-
To unsubscribe, e-mail: tomcat-user-unsubscribe@xx
For additional commands, e-mail: tomcat-user-help@xx



Junk email

2003-02-15 Thread Etienne
Everyone who participate in the my attitude thread are already in my
junk email (stop downloading it from the pop server). I think everyone
should do the same thing, until the mail administrator takes some
action.

Thanks.

Etienne. 


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




Is 4.1.18 ready?

2003-02-14 Thread Etienne

Hi I just want to know is Tomcat 4.1.18 is a stable (production stable)
version. (I am pretty sure it is, but I just want a confirmation from
some gurus) My company is still using 4.1.12 because of some problems
in 4.1.18. I didn't go further, but I think they didn't write compatible
TagLibs to the 4.1.18 TagLib pooling... I guess the next Tomcat version
will stay in the specification of 4.1.18. So we should jump into it now?
Right?

Etienne



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




RE: How can I get the web application name?

2003-02-11 Thread Etienne
Yes, I guess.

()

Thanks.

E.L.


-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]] 
Sent: February 11, 2003 7:44 AM
To: Tomcat Users List
Subject: Re: How can I get the web application name?

Do you mean HttpServletRequest.getContextPath()?

-Tim

Etienne wrote:
 Hi, I found a way to retrieve the web application name for WebSphere I
 guess. Can I do the same for Tomcat?
 
 Thanks.
 
 Etienne.
 
 
 
 
George,
I've got a small servlet that'll show the docroot.  Check out
http://home.nc.rr.com/hygh/was/WebAppName.java

Ken

George wrote:


Hi,
In a servlet, I want to get the Web Application Name in which the
 
 servlet
 
belongs.
Actually, I want to retrieve the webapp docRoot using

I found in ServletEngineConfigDumper example the following code, but
 
 I need
 
the webappname

 ServletEngineInfo engineInfo =
 
 ServletEngine.getEngine().getInfo();
 
 ServletHostInfo vhinfo   =
engineInfo.getServletHostInfo(default_host);
 WebGroupInfo wgInfo  =
 
 vhinfo.getWebGroupInfo(webappname);
 
String docroot=wgInfo.getDocumentRoot();

Any other way to get the WebApplication Doc Root?

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


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



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




Tomcat 4.1.18 and Sub Domain Name access

2003-02-08 Thread Etienne
Hi,

I made a migration from Tomcat 4.0.3 to Tomcat 4.1.18. With Tomcat 4.0.3
I never had problem with accessing sub domain name. I could load a page
using sub1.mydomaine.com or sub2.mydomaine.com. Now only mydomaine.com
works, the web page/servlet is never reach. Is there a sub-domain name
setting in Tomcat? I don't see where.


Regards, 

E.L.



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




RE: Tomcat 4.1.18 and Sub Domain Name access

2003-02-08 Thread Etienne
Hi, 

Sorry for the last email, the problem is elsewhere.

E.L.


-Original Message-
From: Etienne [mailto:[EMAIL PROTECTED]] 
Sent: February 8, 2003 8:28 AM
To: 'Tomcat Users List'
Subject: Tomcat 4.1.18 and Sub Domain Name access

Hi,

I made a migration from Tomcat 4.0.3 to Tomcat 4.1.18. With Tomcat 4.0.3
I never had problem with accessing sub domain name. I could load a page
using sub1.mydomaine.com or sub2.mydomaine.com. Now only mydomaine.com
works, the web page/servlet is never reach. Is there a sub-domain name
setting in Tomcat? I don't see where.


Regards, 

E.L.



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


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




How to get the web application or Tomcat path inside a class

2003-02-07 Thread Etienne
Hi, 

Is there a way to get the web application path or the tomcat path inside
a java bean not using any Request object? I am running tomcat on
Windows. I need sometime to access xml file placed on the
web_app_path/xml/ folder. On windows, it is easy to retrace them
because the starting (default) path for retrieving a file is based on
the web application path. So new File(xml/myfile.xml) works. 

But on the unix box, the starting (default) path is at
tomcat_path/bin/. I don't want to put my xml files there. So, is there
a way (without the servletContext.getRealPath(//);  method, because I
don't have access to the servletContext object ) to retrieve the path of
the tomcat path or better,  the Web Application path?

tks

E.L. 


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




RE: How to get the web application or Tomcat path inside a class

2003-02-07 Thread Etienne
It is because the applications work with a lot of interne singleton
objects (one instance for all the application). Like a ConnectionPool or
a ApplicationScopeUtil that do not need to know the actual request, of
servlet context: this would add a unused parameter to all the methods
and mix up everything, and maybe creating new thread problems... 

So, for now, I don't want to put inside each singleton object a
constructor asking for the ServletContext parameter... or
HttpServletRequest parameter... everything is working well without any
request indication. But when I need to get a file on the drive, I need
to know where is the tomcat path... That is the only problem here. There
is no way to get the CATALINA_HOME of the JVM?

E.L

-Original Message-
From: Tim Moore [mailto:[EMAIL PROTECTED]] 
Sent: February 7, 2003 5:14 PM
To: Tomcat Users List
Subject: RE: How to get the web application or Tomcat path inside a
class

Why don't you have access to the ServletContext?  That's really the only
portable way to access resources in your webapp.

-- 
Tim Moore / Blackboard Inc. / Software Engineer
1899 L Street, NW / 5th Floor / Washington, DC 20036
Phone 202-463-4860 ext. 258 / Fax 202-463-4863


 -Original Message-
 From: Etienne [mailto:[EMAIL PROTECTED]] 
 Sent: Friday, February 07, 2003 5:01 PM
 To: 'Tomcat Users List'
 Subject: How to get the web application or Tomcat path inside a class
 
 
 Hi, 
 
 Is there a way to get the web application path or the tomcat 
 path inside a java bean not using any Request object? I am 
 running tomcat on Windows. I need sometime to access xml file 
 placed on the web_app_path/xml/ folder. On windows, it is 
 easy to retrace them because the starting (default) path for 
 retrieving a file is based on the web application path. So 
 new File(xml/myfile.xml) works. 
 
 But on the unix box, the starting (default) path is at 
 tomcat_path/bin/. I don't want to put my xml files there. 
 So, is there a way (without the 
 servletContext.getRealPath(//);  method, because I don't 
 have access to the servletContext object ) to retrieve the 
 path of the tomcat path or better,  the Web Application path?
 
 tks
 
 E.L. 

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



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




RE: How to get the web application or Tomcat path inside a class

2003-02-07 Thread Etienne
Right on.

E.L.


-Original Message-
From: Tim Moore [mailto:[EMAIL PROTECTED]] 
Sent: February 7, 2003 5:31 PM
To: Tomcat Users List
Subject: RE: How to get the web application or Tomcat path inside a
class

What about creating one more singleton object that is constructed with
the ServletContext, and then all of the other objects use that one to
access the file?  It's probably a good idea to encapsulate access to the
file anyway.

-- 
Tim Moore / Blackboard Inc. / Software Engineer
1899 L Street, NW / 5th Floor / Washington, DC 20036
Phone 202-463-4860 ext. 258 / Fax 202-463-4863


 -Original Message-
 From: Etienne [mailto:[EMAIL PROTECTED]] 
 Sent: Friday, February 07, 2003 5:28 PM
 To: 'Tomcat Users List'
 Subject: RE: How to get the web application or Tomcat path 
 inside a class
 
 
 It is because the applications work with a lot of interne 
 singleton objects (one instance for all the application). 
 Like a ConnectionPool or a ApplicationScopeUtil that do not 
 need to know the actual request, of servlet context: this 
 would add a unused parameter to all the methods and mix up 
 everything, and maybe creating new thread problems... 
 
 So, for now, I don't want to put inside each singleton object 
 a constructor asking for the ServletContext parameter... or 
 HttpServletRequest parameter... everything is working well 
 without any request indication. But when I need to get a file 
 on the drive, I need to know where is the tomcat path... That 
 is the only problem here. There is no way to get the 
 CATALINA_HOME of the JVM?
 
 E.L
 
 -Original Message-
 From: Tim Moore [mailto:[EMAIL PROTECTED]] 
 Sent: February 7, 2003 5:14 PM
 To: Tomcat Users List
 Subject: RE: How to get the web application or Tomcat path 
 inside a class
 
 Why don't you have access to the ServletContext?  That's 
 really the only portable way to access resources in your webapp.
 
 -- 
 Tim Moore / Blackboard Inc. / Software Engineer
 1899 L Street, NW / 5th Floor / Washington, DC 20036
 Phone 202-463-4860 ext. 258 / Fax 202-463-4863
 
 
  -Original Message-
  From: Etienne [mailto:[EMAIL PROTECTED]]
  Sent: Friday, February 07, 2003 5:01 PM
  To: 'Tomcat Users List'
  Subject: How to get the web application or Tomcat path 
 inside a class
  
  
  Hi,
  
  Is there a way to get the web application path or the tomcat
  path inside a java bean not using any Request object? I am 
  running tomcat on Windows. I need sometime to access xml file 
  placed on the web_app_path/xml/ folder. On windows, it is 
  easy to retrace them because the starting (default) path for 
  retrieving a file is based on the web application path. So 
  new File(xml/myfile.xml) works. 
  
  But on the unix box, the starting (default) path is at
  tomcat_path/bin/. I don't want to put my xml files there. 
  So, is there a way (without the 
  servletContext.getRealPath(//);  method, because I don't 
  have access to the servletContext object ) to retrieve the 
  path of the tomcat path or better,  the Web Application path?
  
  tks
  
  E.L.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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



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




RE: How to get the web application or Tomcat path inside a class

2003-02-07 Thread Etienne
Thanks!

E. L.

-Original Message-
From: Tim Moore [mailto:[EMAIL PROTECTED]] 
Sent: February 7, 2003 5:31 PM
To: Tomcat Users List
Subject: RE: How to get the web application or Tomcat path inside a
class

What about creating one more singleton object that is constructed with
the ServletContext, and then all of the other objects use that one to
access the file?  It's probably a good idea to encapsulate access to the
file anyway.

-- 
Tim Moore / Blackboard Inc. / Software Engineer
1899 L Street, NW / 5th Floor / Washington, DC 20036
Phone 202-463-4860 ext. 258 / Fax 202-463-4863


 -Original Message-
 From: Etienne [mailto:[EMAIL PROTECTED]] 
 Sent: Friday, February 07, 2003 5:28 PM
 To: 'Tomcat Users List'
 Subject: RE: How to get the web application or Tomcat path 
 inside a class
 
 
 It is because the applications work with a lot of interne 
 singleton objects (one instance for all the application). 
 Like a ConnectionPool or a ApplicationScopeUtil that do not 
 need to know the actual request, of servlet context: this 
 would add a unused parameter to all the methods and mix up 
 everything, and maybe creating new thread problems... 
 
 So, for now, I don't want to put inside each singleton object 
 a constructor asking for the ServletContext parameter... or 
 HttpServletRequest parameter... everything is working well 
 without any request indication. But when I need to get a file 
 on the drive, I need to know where is the tomcat path... That 
 is the only problem here. There is no way to get the 
 CATALINA_HOME of the JVM?
 
 E.L
 
 -Original Message-
 From: Tim Moore [mailto:[EMAIL PROTECTED]] 
 Sent: February 7, 2003 5:14 PM
 To: Tomcat Users List
 Subject: RE: How to get the web application or Tomcat path 
 inside a class
 
 Why don't you have access to the ServletContext?  That's 
 really the only portable way to access resources in your webapp.
 
 -- 
 Tim Moore / Blackboard Inc. / Software Engineer
 1899 L Street, NW / 5th Floor / Washington, DC 20036
 Phone 202-463-4860 ext. 258 / Fax 202-463-4863
 
 
  -Original Message-
  From: Etienne [mailto:[EMAIL PROTECTED]]
  Sent: Friday, February 07, 2003 5:01 PM
  To: 'Tomcat Users List'
  Subject: How to get the web application or Tomcat path 
 inside a class
  
  
  Hi,
  
  Is there a way to get the web application path or the tomcat
  path inside a java bean not using any Request object? I am 
  running tomcat on Windows. I need sometime to access xml file 
  placed on the web_app_path/xml/ folder. On windows, it is 
  easy to retrace them because the starting (default) path for 
  retrieving a file is based on the web application path. So 
  new File(xml/myfile.xml) works. 
  
  But on the unix box, the starting (default) path is at
  tomcat_path/bin/. I don't want to put my xml files there. 
  So, is there a way (without the 
  servletContext.getRealPath(//);  method, because I don't 
  have access to the servletContext object ) to retrieve the 
  path of the tomcat path or better,  the Web Application path?
  
  tks
  
  E.L.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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



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




RE: How to get the web application or Tomcat path inside a class (KMM37443975V57528L0KM)

2003-02-07 Thread Etienne
Dear Jon Earthlink, 


My inquiry is already resolved.

E. L.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: February 7, 2003 5:48 PM
To: Francesa Lacreativa
Subject: RE: How to get the web application or Tomcat path inside a
class (KMM37443975V57528L0KM)

Dear Francesa Etienne,

We are unable to determine the nature of your inquiry from the
information you have provided. Could you kindly resubmit your concern?
Every attempt will be made to assist you as shortly as possible.


Why wait?  Resolve your customer service questions on-line at our
Account Maintenance web site.  To add email mailboxes, change passwords,
or update your credit card information, go to:

http://myaccount.earthlink.net

We also offer a wide variety of online self help options for technical
issues such as setting up your service, troubleshooting problems, or
just using the Internet and email, you can access clear, step-by-step
instructions at your Support Center:

http://support.earthlink.net


Jon E. 
Electronic  Support  
EarthLink, Inc. 
Why Wait? Move to EarthLink. 
CSR ID#: 1286 
Case ID 20891569



Original Message Follows:
-

What about creating one more singleton object that is constructed with
the ServletContext, and then all of the other objects use that one to
access the file?  It's probably a good idea to encapsulate access to the
file anyway.
-- 
Tim Moore / Blackboard Inc. / Software Engineer
1899 L Street, NW / 5th Floor / Washington, DC 20036
Phone 202-463-4860 ext. 258 / Fax 202-463-4863
 -Original Message-
 From: Etienne [mailto:[EMAIL PROTECTED]] 
 Sent: Friday, February 07, 2003 5:28 PM
 To: 'Tomcat Users List'
 Subject: RE: How to get the web application or Tomcat path 
 inside a class
 
 
 It is because the applications work with a lot of interne 
 singleton objects (one instance for all the application). 
 Like a ConnectionPool or a ApplicationScopeUtil that do not 
 need to know the actual request, of servlet context: this 
 would add a unused parameter to all the methods and mix up 
 everything, and maybe creating new thread problems... 
 
 So, for now, I don't want to put inside each singleton object 
 a constructor asking for the ServletContext parameter... or 
 HttpServletRequest parameter... everything is working well 
 without any request indication. But when I need to get a file 
 on the drive, I need to know where is the tomcat path... That 
 is the only problem here. There is no way to get the 
 CATALINA_HOME of the JVM?
 
 E.L
 
 -Original Message-
 From: Tim Moore [mailto:[EMAIL PROTECTED]] 
 Sent: February 7, 2003 5:14 PM
 To: Tomcat Users List
 Subject: RE: How to get the web application or Tomcat path 
 inside a class
 
 Why don't you have access to the ServletContext?  That's 
 really the only portable way to access resources in your webapp.
 
 -- 
 Tim Moore / Blackboard Inc. / Software Engineer
 1899 L Street, NW / 5th Floor / Washington, DC 20036
 Phone 202-463-4860 ext. 258 / Fax 202-463-4863
 
 
  -Original Message-
  From: Etienne [mailto:[EMAIL PROTECTED]]
  Sent: Friday, February 07, 2003 5:01 PM
  To: 'Tomcat Users List'
  Subject: How to get the web application or Tomcat path 
 inside a class
  
  
  Hi,
  
  Is there a way to get the web application path or the tomcat
  path inside a java bean not using any Request object? I am 
  running tomcat on Windows. I need sometime to access xml file 
  placed on the web_app_path/xml/ folder. On windows, it is 
  easy to retrace them because the starting (default) path for 
  retrieving a file is based on the web application path. So 
  new File(xml/myfile.xml) works. 
  
  But on the unix box, the starting (default) path is at
  tomcat_path/bin/. I don't want to put my xml files there. 
  So, is there a way (without the 
  servletContext.getRealPath(//);  method, because I don't 
  have access to the servletContext object ) to retrieve the 
  path of the tomcat path or better,  the Web Application path?
  
  tks
  
  E.L.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


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




Bug? in Tomcat 4.1.18 with TagLib

2003-02-06 Thread Etienne
Hi, 
 
I am new to this list, and I add problem retrieving archive, so sorry if
that question was already answered.
 
My web application was running on tomcat 3,2 and 4.0.3 it was running
well. Now that I have switch to Tomcat 4.1.18 I have a strange problem
with one of my custom tag. It seems that the local variables in the
doStartTag() method are not cleared after the tag, something is not
calling the clearProperties() method at the end of each tag. But if I
put clearProperties() inside the doStartTag(), it is working better. But
I cannot still get a random number for each image. The main idea is that
every tag on the page is using the same value for some variable. It
shouldn't happen. Any idea?
 
By the way, I think I can fix it by clearing each value in the
doStartTag(), but I still don't understand why is was working on Tomcat
3.2, 4.0.3 and not and 4.1.8. The specs says that the variables should
be clean with the clearProperties() after the end of the tag. Is there a
problem of configuration on my side?
 
Here's the code, I use the Manning Jsp Tag Library classes as a base.
 
package my.taglib.html;
 
import my.taglib.util.LocalStrings;
import my.taglib.util.ExTagSupport;
import java.util.Properties;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.JspTagException;
import java.util.Random;
public class DwRollTag extends ExTagSupport {
 
static LocalStrings ls =
LocalStrings.getLocalStrings(TestHtmlTag.class);
protected String url = null;
protected String imgid = null;
protected String image = null;
protected String imageOut = null;
 
public void setUrl(String url) {this.url = url;}
public void setImgid(String imgid) {this.imgid = imgid;}
public void setImage(String image) {this.image = image;}
public void setImageOut(String imageOut) {this.imageOut = imageOut;}
 
 
public int doStartTag() throws JspException{
 
if(null==url){url = ;}
if(null==image){image = ; imageOut=;}
if(imgid == null){ imgid = getRandom();}
if(imageOut == null){imageOut = getImageOut(image);}
System.err.println( image : +  image + , url :  + url +
, imgid :  + imgid+ , imageOut :  + imageOut);
 
try {
pageContext.getOut().print(getImageRoll(url, imgid, image,
imageOut));
} catch(java.io.IOException ioe) {
 
// User probably disconnected ...
log(ls.getStr(error), ioe);
throw new JspTagException(ls.getStr(error));
}
 
return SKIP_BODY;
}
 
protected String getRandom(){
Random wheel = new Random() ;
int unique = ( wheel.nextInt()  Integer.MAX_VALUE ) %90 +
10 ;
return  + unique;
}
 
/**
 * short version of getImageRoll, locationOut is named form the location
in + a _over just
 *  before the file extention
 *
 * @param name
 * @param locationIn
 * @return
 */
public String getImageOut(String image){
String imageOut;
int length = image.length();
int dot = image.lastIndexOf(.);
String first = ;
String last = .gif;
if(dot!=-1){
first = image.substring(0,dot);
last = image.substring(dot, length);
}
imageOut = first+_over+last;
return imageOut;
}
 
/**
 * getImageRoll return a typical rollover statement used by a standard
javascript function changeImage()
 * @param name
 * @param locationIn
 * @param locationOut
 * @return
 */
public String getImageRoll(String url,
String imgid,
String image,
String imageOut){
 
String retString = a href=\+url+\
onMouseOut=\MM_swapImgRestore()\
onMouseOver=\MM_swapImage('+imgid+','','+imageOut+',1)\img
name=\+imgid+\ border=\0\ src=\+image+\/a;
return retString;
}
 
 
 protected void clearProperties(){
url = null;
imgid = null;
image = null;
imageOut = null;
super.clearProperties();
}
 
}
 
 
 
tks 
 
E. L.
[EMAIL PROTECTED]
 



RE: Bug? in Tomcat 4.1.18 with TagLib

2003-02-06 Thread Etienne
Tks!


Etienne Laverdière
[EMAIL PROTECTED]
514-277-7792


-Original Message-
From: John Trollinger [mailto:[EMAIL PROTECTED]] 
Sent: February 6, 2003 8:40 AM
To: 'Tomcat Users List'
Subject: RE: Bug? in Tomcat 4.1.18 with TagLib

This is because of tag pooling.

Please see http://issues.apache.org/bugzilla/show_bug.cgi?id=13392 or
http://issues.apache.org/bugzilla/show_bug.cgi?id=16001 or
http://issues.apache.org/bugzilla/show_bug.cgi?id=10220

And there are lots more.

John

 -Original Message-
 From: Etienne [mailto:[EMAIL PROTECTED]] 
 Sent: Thursday, February 06, 2003 8:30 AM
 To: [EMAIL PROTECTED]
 Subject: Bug? in Tomcat 4.1.18 with TagLib
 
 
 Hi, 
  
 I am new to this list, and I add problem retrieving archive, 
 so sorry if that question was already answered.
  
 My web application was running on tomcat 3,2 and 4.0.3 it was 
 running well. Now that I have switch to Tomcat 4.1.18 I have 
 a strange problem with one of my custom tag. It seems that 
 the local variables in the
 doStartTag() method are not cleared after the tag, something 
 is not calling the clearProperties() method at the end of 
 each tag. But if I put clearProperties() inside the 
 doStartTag(), it is working better. But I cannot still get a 
 random number for each image. The main idea is that every tag 
 on the page is using the same value for some variable. It 
 shouldn't happen. Any idea?
  
 By the way, I think I can fix it by clearing each value in 
 the doStartTag(), but I still don't understand why is was 
 working on Tomcat 3.2, 4.0.3 and not and 4.1.8. The specs 
 says that the variables should be clean with the 
 clearProperties() after the end of the tag. Is there a 
 problem of configuration on my side?
  
 Here's the code, I use the Manning Jsp Tag Library classes 
 as a base.
  
 package my.taglib.html;
  
 import my.taglib.util.LocalStrings;
 import my.taglib.util.ExTagSupport;
 import java.util.Properties;
 import javax.servlet.jsp.JspException;
 import javax.servlet.jsp.JspTagException;
 import java.util.Random;
 public class DwRollTag extends ExTagSupport {
  
 static LocalStrings ls = 
 LocalStrings.getLocalStrings(TestHtmlTag.class);
 protected String url = null;
 protected String imgid = null;
 protected String image = null;
 protected String imageOut = null;
  
 public void setUrl(String url) {this.url = url;}
 public void setImgid(String imgid) {this.imgid = imgid;}
 public void setImage(String image) {this.image = image;}
 public void setImageOut(String imageOut) {this.imageOut = 
 imageOut;}
  
  
 public int doStartTag() throws JspException{
  
 if(null==url){url = ;}
 if(null==image){image = ; imageOut=;}
 if(imgid == null){ imgid = getRandom();}
 if(imageOut == null){imageOut = getImageOut(image);}
 System.err.println( image : +  image + , url : 
  + url + , imgid :  + imgid+ , imageOut :  + imageOut);
  
 try {
 pageContext.getOut().print(getImageRoll(url, 
 imgid, image, imageOut));
 } catch(java.io.IOException ioe) {
  
 // User probably disconnected ...
 log(ls.getStr(error), ioe);
 throw new JspTagException(ls.getStr(error));
 }
  
 return SKIP_BODY;
 }
  
 protected String getRandom(){
 Random wheel = new Random() ;
 int unique = ( wheel.nextInt()  Integer.MAX_VALUE ) 
 %90 + 10 ;
 return  + unique;
 }
  
 /**
  * short version of getImageRoll, locationOut is named form 
 the location in + a _over just
  *  before the file extention
  *
  * @param name
  * @param locationIn
  * @return
  */
 public String getImageOut(String image){
 String imageOut;
 int length = image.length();
 int dot = image.lastIndexOf(.);
 String first = ;
 String last = .gif;
 if(dot!=-1){
 first = image.substring(0,dot);
 last = image.substring(dot, length);
 }
 imageOut = first+_over+last;
 return imageOut;
 }
  
 /**
  * getImageRoll return a typical rollover statement used by a 
 standard javascript function changeImage()
  * @param name
  * @param locationIn
  * @param locationOut
  * @return
  */
 public String getImageRoll(String url,
 String imgid,
 String image,
 String imageOut){
  
 String retString = a href=\+url+\ 
 onMouseOut=\MM_swapImgRestore()\
 onMouseOver=\MM_swapImage('+imgid+','','+imageOut+',1)\img
 name=\+imgid+\ border=\0\ src=\+image+\/a;
 return retString;
 }
  
  
  protected void clearProperties(){
 url = null;
 imgid = null;
 image = null;
 imageOut = null;
 super.clearProperties();
 }
  
 }
  
  
  
 tks 
  
 E. L.
 [EMAIL PROTECTED

RE: Bug? in Tomcat 4.1.18 with TagLib

2003-02-06 Thread Etienne
Does it mean that all the tag lib from the Manning Book are wrong with
theses TagLib specs? The manning tag lib will never  work on the 4.1.18
environment.


E.L.


-Original Message-
From: John Trollinger [mailto:[EMAIL PROTECTED]] 
Sent: February 6, 2003 8:40 AM
To: 'Tomcat Users List'
Subject: RE: Bug? in Tomcat 4.1.18 with TagLib

This is because of tag pooling.

Please see http://issues.apache.org/bugzilla/show_bug.cgi?id=13392 or
http://issues.apache.org/bugzilla/show_bug.cgi?id=16001 or
http://issues.apache.org/bugzilla/show_bug.cgi?id=10220

And there are lots more.

John

 -Original Message-
 From: Etienne [mailto:[EMAIL PROTECTED]] 
 Sent: Thursday, February 06, 2003 8:30 AM
 To: [EMAIL PROTECTED]
 Subject: Bug? in Tomcat 4.1.18 with TagLib
 
 
 Hi, 
  
 I am new to this list, and I add problem retrieving archive, 
 so sorry if that question was already answered.
  
 My web application was running on tomcat 3,2 and 4.0.3 it was 
 running well. Now that I have switch to Tomcat 4.1.18 I have 
 a strange problem with one of my custom tag. It seems that 
 the local variables in the
 doStartTag() method are not cleared after the tag, something 
 is not calling the clearProperties() method at the end of 
 each tag. But if I put clearProperties() inside the 
 doStartTag(), it is working better. But I cannot still get a 
 random number for each image. The main idea is that every tag 
 on the page is using the same value for some variable. It 
 shouldn't happen. Any idea?
  
 By the way, I think I can fix it by clearing each value in 
 the doStartTag(), but I still don't understand why is was 
 working on Tomcat 3.2, 4.0.3 and not and 4.1.8. The specs 
 says that the variables should be clean with the 
 clearProperties() after the end of the tag. Is there a 
 problem of configuration on my side?
  
 Here's the code, I use the Manning Jsp Tag Library classes 
 as a base.
  
 package my.taglib.html;
  
 import my.taglib.util.LocalStrings;
 import my.taglib.util.ExTagSupport;
 import java.util.Properties;
 import javax.servlet.jsp.JspException;
 import javax.servlet.jsp.JspTagException;
 import java.util.Random;
 public class DwRollTag extends ExTagSupport {
  
 static LocalStrings ls = 
 LocalStrings.getLocalStrings(TestHtmlTag.class);
 protected String url = null;
 protected String imgid = null;
 protected String image = null;
 protected String imageOut = null;
  
 public void setUrl(String url) {this.url = url;}
 public void setImgid(String imgid) {this.imgid = imgid;}
 public void setImage(String image) {this.image = image;}
 public void setImageOut(String imageOut) {this.imageOut = 
 imageOut;}
  
  
 public int doStartTag() throws JspException{
  
 if(null==url){url = ;}
 if(null==image){image = ; imageOut=;}
 if(imgid == null){ imgid = getRandom();}
 if(imageOut == null){imageOut = getImageOut(image);}
 System.err.println( image : +  image + , url : 
  + url + , imgid :  + imgid+ , imageOut :  + imageOut);
  
 try {
 pageContext.getOut().print(getImageRoll(url, 
 imgid, image, imageOut));
 } catch(java.io.IOException ioe) {
  
 // User probably disconnected ...
 log(ls.getStr(error), ioe);
 throw new JspTagException(ls.getStr(error));
 }
  
 return SKIP_BODY;
 }
  
 protected String getRandom(){
 Random wheel = new Random() ;
 int unique = ( wheel.nextInt()  Integer.MAX_VALUE ) 
 %90 + 10 ;
 return  + unique;
 }
  
 /**
  * short version of getImageRoll, locationOut is named form 
 the location in + a _over just
  *  before the file extention
  *
  * @param name
  * @param locationIn
  * @return
  */
 public String getImageOut(String image){
 String imageOut;
 int length = image.length();
 int dot = image.lastIndexOf(.);
 String first = ;
 String last = .gif;
 if(dot!=-1){
 first = image.substring(0,dot);
 last = image.substring(dot, length);
 }
 imageOut = first+_over+last;
 return imageOut;
 }
  
 /**
  * getImageRoll return a typical rollover statement used by a 
 standard javascript function changeImage()
  * @param name
  * @param locationIn
  * @param locationOut
  * @return
  */
 public String getImageRoll(String url,
 String imgid,
 String image,
 String imageOut){
  
 String retString = a href=\+url+\ 
 onMouseOut=\MM_swapImgRestore()\
 onMouseOver=\MM_swapImage('+imgid+','','+imageOut+',1)\img
 name=\+imgid+\ border=\0\ src=\+image+\/a;
 return retString;
 }
  
  
  protected void clearProperties(){
 url = null;
 imgid = null;
 image = null

mod_webapp causes 2 instances of the one webapp

2003-01-12 Thread Etienne Deleflie
Hello,

I am using mod_webapp to connect Apache 2.0.43 to Tomcat 4.0.1

Problem is that both Tomcat AND Apache each cause an instance of the 
same webapp. So the one webapp is instantiated twice (this breaks all 
sorts of socket stuff we have in our webapp)

there is a reference to this problem (in the tomcat-dev archives) here:
http://w6.metronet.com/~wjm/tomcat/2001/Oct/msg00792.html

... but I cant work out how to change my config to make sure that only 1 
 instance of the webapp is created.

can anyone help ?

below is my server.xml, and my httpd.conf


server.xml:

[snip]

  Service name=Tomcat-Apache

Connector className=org.apache.catalina.connector.warp.WarpConnector
 port=8008 minProcessors=5 maxProcessors=75
 enableLookups=true
 acceptCount=10 debug=0/

Engine className=org.apache.catalina.connector.warp.WarpEngine
 name=Apache debug=0 appBase=webapps

  Logger className=org.apache.catalina.logger.FileLogger
  prefix=apache_log. suffix=.txt
  timestamp=true/

  Realm className=org.apache.catalina.realm.MemoryRealm /

/Engine

  /Service

[snip]

httpd.conf:

[snip]

IfModule mod_webapp.c
	WebAppConnection conn warp xenakis:8008
	WebAppDeploy myWebapp conn /plug/
	WebAppInfo info
/IfModule

[snip]

-

any help is appreciated

etienne



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



how to exclude a jar from being deployed

2002-11-11 Thread Etienne Deleflie
Hello list,

is it possible to exclude a jar from bring deployed by Tomcat ?.

The jar is in WEB-INF/lib ... and needs to be served by Webstart 
(along with all the other jars in WEB-INF/lib) , but breaks the webapp 
when it is deployed by Tomcat.

etienne



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org



RE: Checking Tomcat's Memory

2002-08-15 Thread Etienne, Ingo (Goetzfried AG)

Hi,

if you are using jk_nt_service.exe try to modify this property in
%CATALINA_HOME%\conf\jk\wrapper.properties:

wrapper.cmd_line=$(wrapper.javabin) -Xrs
-Djava.security.policy==$(wrapper.tomcat_policy)
-Dtomcat.home=$(wrapper.tomcat_home) -classpath $(wrapper.class_path)
$(wrapper.startup_class) -config $(wrapper.server_xml) start

Then you have to restart the service...

HTH
Ingo

-Original Message-
From: Marinko, Jeff [mailto:[EMAIL PROTECTED]]
Sent: Donnerstag, 15. August 2002 21:08
To: 'Tomcat Users List'
Subject: RE: Checking Tomcat's Memory


I'm running Tomcat as a service.  I've done echo %CATALINA_OPTS% and set
just to make sure the variable is showing up.  I'll try putting it in
catalina.bat.  Not sure why defining it as an environment variable does not
work...

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 15, 2002 11:57 AM
To: Tomcat Users List
Subject: RE: Checking Tomcat's Memory


Hi,
On unix, we put our CATALINA_OPTS settings in
$CATALINA_HOME/bin/catalina.sh.

Are you running tomcat as a service on NT or from the command line?  If
you're running from the command line, can you do 
echo %CATALINA_OPTS% before starting tomcat and verify the values are
set correctly? 

Regardless of the above, I would try putting CATALINA_OPTS in
catalina.bat. Can't hurt ;)

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Marinko, Jeff [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 15, 2002 2:49 PM
To: 'Tomcat Users List'
Subject: RE: Checking Tomcat's Memory

Alright, new environment variable...

CATALINA_OPTS=-server -Xms1024m -Xmx3072m

Should give me a range of 1-3 gigs.  When I restart Tomcat, however,
this
doesn't appear to affect anything.  I'm running a simple memory
servlet, as
suggested by Yoav Shapira, to simply create a whole bunch of memory,
but it
still caps out as if it were using the defaults.

Couple questions:  1)  Must I restart the machine for the CATALINA_OPTS
to
take effect (or, what is wrong with my environment variable)? In my
experience this has not been necessary, only restart the
application/process. (Maybe this is a WinNT4 quirk or something
similar).

2)  Tomcat's configuration files most likely support what I'm trying to
do.
Is there an appropriate/recommended place I define this envirnoment
variable?

Quick config rundown:  JDK 1.4, WinNT4 (or 2K), Tomcat 4.0.4.

Thanks!

-Original Message-
From: Sexton, George [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 15, 2002 10:51 AM
To: Tomcat Users List
Subject: RE: Checking Tomcat's Memory


g doesn't seem to be a valid memory increment. From the sun web site:


-Xmsn
Specify the initial size, in bytes, of the memory allocation pool. This
value must be a multiple of 1024 greater than 1MB. Append the letter k
or K
to indicate kilobytes, or m or M to indicate megabytes. The default
value
is
2MB. Examples:
   -Xms6291456
   -Xms6144k
   -Xms6m


-Xmxn
Specify the maximum size, in bytes, of the memory allocation pool. This
value must a multiple of 1024 greater than 2MB. Append the letter k or
K to
indicate kilobytes, or m or M to indicate megabytes. The default value
is
64MB. Examples:
   -Xmx83886080
   -Xmx81920k
   -Xmx80m


-Original Message-
From: Marinko, Jeff [mailto:[EMAIL PROTECTED]]
Sent: 15 August, 2002 11:44 AM
To: 'Tomcat Users List'
Subject: RE: Checking Tomcat's Memory


Heh, the answer to that is kind of.  I can actually do roughly 250
TPS
(at
least according to a tool I'm using) for about 10-20 thousand requests,
but
I think this memory problem is giving me trouble after that.  I thought
it
was a connections problem (I was getting connection errors from the
tool),
then I thought I had screwed something up in my code (and I've tried
different versions, nothing seems to affect performance), then I
noticed
the
memory never went above ~154 MB, so now I'm examining memory issues.

My problem is still the same, after so many requests (and thus some
amount
of information stored in memory), Tomcat starts to use up a whole lot
of
CPU
time.  I think I hit the memory limit (as I get out of memory errors),
so
I'm trying to increase the memory Tomcat has, without much luck.

I set the environment variable (as I mentioned before), but it does not
appear to be working.  I stopped and restarted Tomcat after doing this
(although I have not restarted Windows) and the results were the same,
no
change in memory I'm still working on it though, still have a
couple
more things to try, if anyone has a good suggestions, feel free to
chime
in!

Thanks!

-Original Message-
From: Sexton, George [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 15, 2002 10:34 AM
To: Tomcat Users List
Subject: RE: Checking Tomcat's Memory


So, did you get past to your 200 TPS limit goal?

-Original Message-
From: Marinko, Jeff [mailto:[EMAIL PROTECTED]]
Sent: 15 August, 2002 10:49 AM
To: Tomcat Users List

Umlaut

2002-08-02 Thread Etienne, Ingo (Goetzfried AG)

Hi,

my config is Tomcat 4.0.4 on Windows NT with JDK 1.4.

When I'm using german umlaut characters, Tomcat doesn't display them
correctly. Neither in the generated HTML Source, nor when I'm recieving a
submitted form text field that has a value with those special characters.

Has anyone else experianced this before or can someone give me a hint...

Thanks
Ingo

PS: This doesn't happen in jakarta-tomcat-4.0.4-b2-01-LE-jdk14.

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




RE: Umlaut

2002-08-02 Thread Etienne, Ingo (Goetzfried AG)

Thanks for your hint,

I was using

meta http-equiv=Content-Type content=text/html; charset=utf-8 /

but charset iso-8859-1 was correct.

Thanks again.
Ingo


-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]]
Sent: Freitag, 2. August 2002 17:01
To: Tomcat Users List
Subject: RE: Umlaut


Hi,
This is probably the first thing you checked, but just in case: are you
sure you are specifying the correct encoding (charset) all the way
around?  For example the HTML page, any string reading you're doing to
get the form values, etc?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Etienne, Ingo (Goetzfried AG)
[mailto:[EMAIL PROTECTED]]
Sent: Friday, August 02, 2002 10:26 AM
To: [EMAIL PROTECTED]
Subject: Umlaut

Hi,

my config is Tomcat 4.0.4 on Windows NT with JDK 1.4.

When I'm using german umlaut characters, Tomcat doesn't display them
correctly. Neither in the generated HTML Source, nor when I'm recieving
a
submitted form text field that has a value with those special
characters.

Has anyone else experianced this before or can someone give me a
hint...

Thanks
Ingo

PS: This doesn't happen in jakarta-tomcat-4.0.4-b2-01-LE-jdk14.

--
To unsubscribe, e-mail:   mailto:tomcat-user-
[EMAIL PROTECTED]
For additional commands, e-mail: mailto:tomcat-user-
[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]




jar loader / precedence / order

2002-01-07 Thread Etienne Deleflie

Hello list,

I am using tomcat 4.

I have all my jars in the WEB-INF/lib folder of my web-app. The thing 
is, they need to be loaded in a specific order.

What is the default order for loading jar files in the same directory 
... alphabetical ? date ? 

can I set a CLASSPATH variable for a webapp ? . to instruct the 
webapp to load the classes in a specific order ?

etienne


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




Re: jar loader / precedence / order

2002-01-07 Thread Etienne Deleflie

Remy Maucherat wrote:

Hello list,

I am using tomcat 4.

I have all my jars in the WEB-INF/lib folder of my web-app. The thing
is, they need to be loaded in a specific order.

What is the default order for loading jar files in the same directory
... alphabetical ? date ? 


It's alphabetical.

can I set a CLASSPATH variable for a webapp ? . to instruct the
webapp to load the classes in a specific order ?


No, you can't do that.

Do you mean you want to override some classes from one JAR ? If so, you
should extract the overriding classes and put them in /WEB-INF/classes, so
that your application is actually portable.

.. that's a good point, can I separate the jars into 2 different 
directories, so that certain ones are loaded first ?

can I put a jar in the classes directory (or anywhere else )?

etienne



Remy


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





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




mime types not mapping to the web-app

2002-01-07 Thread Etienne Deleflie

Hello,

I have a web-app (in Tomcat 4.0.1), that is working fine in all 
respects, except that all mime types (except .html) map to the tomcat 
document root, not the web-app document root.

So I have modified my web.xml file to include mime type mapppings 
... but .gif, .css etc. still goes to the Tomcat root.

Does anyone have any idea why ? (web.xml is below)

etienne

--

?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
display-nameCentauri/display-name
context-param
param-nameSupport/param-name
param-value[EMAIL PROTECTED]/param-value
/context-param
servlet
   
 servlet-namecom.proxima.centauri.webinterface.servlets.MainServlet/servlet-name
   
 servlet-classcom.proxima.centauri.webinterface.servlets.MainServlet/servlet-class
init-param
param-nameproperties/param-name
param-value/WEB-INF/MainServlet.properties/param-value
/init-param
load-on-startup1/load-on-startup
/servlet
servlet
   
 servlet-namecom.proxima.centauri.webinterface.servlets.TreeServlet/servlet-name
   
 servlet-classcom.proxima.centauri.webinterface.servlets.TreeServlet/servlet-class
/servlet
!-- servlet mappings follow --
servlet-mapping
   
 servlet-namecom.proxima.centauri.webinterface.servlets.TreeServlet/servlet-name
url-pattern/TreeServlet/*/url-pattern
/servlet-mapping
servlet-mapping
   
 servlet-namecom.proxima.centauri.webinterface.servlets.MainServlet/servlet-name
url-pattern/MainServlet/*/url-pattern
/servlet-mapping

!-- mime types to follow --
mime-mapping
extensioncss/extension
mime-typetext/css/mime-type
/mime-mapping
mime-mapping
extensionxml/extension
mime-typetext/xml/mime-type
/mime-mapping
mime-mapping
extensiongif/extension
mime-typeimage/gif/mime-type
/mime-mapping
mime-mapping
extensionjpeg/extension
mime-typeimage/jpeg/mime-type
/mime-mapping
mime-mapping
extensionjpg/extension
mime-typeimage/jpeg/mime-type
/mime-mapping
mime-mapping
extensionhtm/extension
mime-typetext/html/mime-type
/mime-mapping
mime-mapping
extensionhtml/extension
mime-typetext/html/mime-type
/mime-mapping
mime-mapping
extensionjar/extension
mime-typeapplication/java-archive/mime-type
/mime-mapping
mime-mapping
extensionpdf/extension
mime-typeapplication/pdf/mime-type
/mime-mapping
mime-mapping
extensionpng/extension
mime-typeimage/png/mime-type
/mime-mapping
mime-mapping
extensiontxt/extension
mime-typetext/plain/mime-type
/mime-mapping
mime-mapping
extensioncsv/extension
mime-typetext/plain/mime-type
/mime-mapping

!-- other --
welcome-file-list
welcome-fileindex.html/welcome-file
/welcome-file-list
error-page
error-code404/error-code
location/lib/error_pages/404.html/location
/error-page
error-page
error-code500/error-code
location/lib/error_pages/404.html/location
/error-page
error-page
error-code503/error-code
location/lib/error_pages/503.html/location
/error-page

/web-app



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




Re: dynamic content not mapping correctly

2002-01-07 Thread Etienne Deleflie



Try href=MyServlet/style.css (drop the leading slash)

no can do . that misses the point.

the XSL file that contains that link is used to write files in all sorts 
of sub-directories

... so it has to be relative to the web-app root

etienne



- Original Message - 
From: Etienne Deleflie [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, January 07, 2002 4:08 PM
Subject: dynamic content not mapping correctly


| Hello list,
| 
| I just want to describe my problem better..I have an XML 
| application.
| 
| Via a web-app (in Tomcat 4.0.1) a URL is mapped to a servlet
| The servlet reads an XML file which defines the retrieval of other XML 
| data and what XSL files to render that retrieved XML data with.
| 
| The XML and XSL is rendered together using JAXP 1.1 before the servlet 
| outputs the result back to the browser.
| 
|  all this works.
| 
| 
| BUT, the HTML stylesheets ( that are in written in the XSL files), and 
| images, have absolute links . that is, absolute to the web-app. 
| eg. the XSL file contains this line:
| 
| link rel=stylesheet href=/MyServlet/style.css type=text/css/


| 
| When the page eventually hits the browser, the HTTP request that this 
| causes is
| 
| http://localhost:8080/MyServlet/style.css , instead of
| http://localhost:8080/myWeb-appName/MyServlet/style.css
| 
|  the page that contains this stylesheet link is 
| http://localhost:8080/myWeb-appName/MyServlet/index.html
| 
| shouldn't Tomcat always prepend the name of the web-app to any request 
| that comes FROM a page in the web-app ?
| (or am I doing something wrong?)
| 
| etienne
| 
| 
| 
| --
| To unsubscribe:   mailto:[EMAIL PROTECTED]
| For additional commands: mailto:[EMAIL PROTECTED]
| Troubles with the list: mailto:[EMAIL PROTECTED]
| 
| 
| 


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





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




Re: dynamic content not mapping correctly

2002-01-07 Thread Etienne Deleflie

Tom,

thanks for your reply.

The standard, and by extension, Tomcat, is designed such that there are
no dependancies between contexts. Attempting to create such dependancies
is really just asking for headaches.

I think your best bet is to setup your deployment process to make a copy of
this file to each context that you create. 

cant do that, because the application is designed such that the end user 
can create new web pages (xml xsl combinations) with a few 
clicks. the whole system depends on having absolute paths in 
standard XSL files which are going to be used in all of the end user's 
personalised pages and you will never know what directory 
structure the end user might create.


so perhaps the only option is to use getContextPath()  in the servlet 
.. pass that value as a param into the XML Transformers . 
suck up that value in the XSL files, and change all my links to :

img src=/$webappPath/MainServlet/blabla.gif/

... unless someone can think of an other solution ?

etienne

That way, there's only one copy
to keep track of in your source management system, each context simply
refers to it's own copy, no dependancies between contexts. This comes
at the cost of bloating your deployment process, and increasing (minimally)
your disk space requirements.

Perhaps this is not the most ideal solution. It is the one that will be
guaranteed
to work with all servlet containers, however.

Good luck,

Tom Drake.

- Original Message -
From: Etienne Deleflie [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, January 07, 2002 4:27 PM
Subject: Re: dynamic content not mapping correctly


| 
| 
| Try href=MyServlet/style.css (drop the leading slash)
| 
| no can do . that misses the point.
|
| the XSL file that contains that link is used to write files in all sorts
| of sub-directories
|
| ... so it has to be relative to the web-app root
|
| etienne
|
| 
| 
| - Original Message -
| From: Etienne Deleflie [EMAIL PROTECTED]
| To: Tomcat Users List [EMAIL PROTECTED]
| Sent: Monday, January 07, 2002 4:08 PM
| Subject: dynamic content not mapping correctly
| 
| 
| | Hello list,
| |
| | I just want to describe my problem better..I have an XML
| | application.
| |
| | Via a web-app (in Tomcat 4.0.1) a URL is mapped to a servlet
| | The servlet reads an XML file which defines the retrieval of other XML
| | data and what XSL files to render that retrieved XML data with.
| |
| | The XML and XSL is rendered together using JAXP 1.1 before the servlet
| | outputs the result back to the browser.
| |
| |  all this works.
| |
| |
| | BUT, the HTML stylesheets ( that are in written in the XSL files), and
| | images, have absolute links . that is, absolute to the web-app.
| | eg. the XSL file contains this line:
| |
| | link rel=stylesheet href=/MyServlet/style.css type=text/css/
| 
| 
| |
| | When the page eventually hits the browser, the HTTP request that this
| | causes is
| |
| | http://localhost:8080/MyServlet/style.css , instead of
| | http://localhost:8080/myWeb-appName/MyServlet/style.css
| |
| |  the page that contains this stylesheet link is
| | http://localhost:8080/myWeb-appName/MyServlet/index.html
| |
| | shouldn't Tomcat always prepend the name of the web-app to any request
| | that comes FROM a page in the web-app ?
| | (or am I doing something wrong?)
| |
| | etienne
| |
| |
| |
| | --
| | To unsubscribe:   mailto:[EMAIL PROTECTED]
| | For additional commands: mailto:[EMAIL PROTECTED]
| | Troubles with the list: mailto:[EMAIL PROTECTED]
| |
| |
| |
| 
| 
| --
| To unsubscribe:   mailto:[EMAIL PROTECTED]
| For additional commands: mailto:[EMAIL PROTECTED]
| Troubles with the list: mailto:[EMAIL PROTECTED]
| 
|
|
|
|
| --
| To unsubscribe:   mailto:[EMAIL PROTECTED]
| For additional commands: mailto:[EMAIL PROTECTED]
| Troubles with the list: mailto:[EMAIL PROTECTED]
|
|
|


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





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




getInitParameter() throws an exception .....

2001-12-11 Thread Etienne Deleflie

Hello all,

I am using tomcat 4.0.1 (and jdk1.3.1)

In my servlet, the getInitParameter() throws an NullPointerException 
...(stack trace below)... . but where is the null pointer ?

code is   String path = getInitParameter(properties);

Is there something wrong with my declarations in the web.xml file ?

My web.xml looks like this :

web-app
display-nameCentauri/display-name
servlet

servlet-namecom.proxima.centauri.webinterface.servlets.MainServlet/servlet-name

servlet-classcom.proxima.centauri.webinterface.servlets.MainServlet/servlet-class
init-param
param-nameproperties/param-name
param-value/WEB-INF/MainServlet/param-value
/init-param
load-on-startup1/load-on-startup
/servlet
!-- servlet mappings follow --
servlet-mapping

servlet-namecom.proxima.centauri.webinterface.servlets.MainServlet/servlet-name
url-pattern/MainServlet/*/url-pattern
/servlet-mapping

..

001-12-12 15:06:32 
StandardWrapperValve[com.proxima.centauri.webinterface.servlets.MainServlet]: 
Allocate exception for servlet 
com.proxima.centauri.webinterface.servlets.MainServlet
javax.servlet.ServletException: Servlet.init() for servlet 
com.proxima.centauri.webinterface.servlets.MainServlet threw exception
at java.lang.Throwable.init(Throwable.java:96)
at java.lang.Exception.init(Exception.java:44)
at javax.servlet.ServletException.init(ServletException.java:132)
at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:871)
at 
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
at java.lang.Thread.run(Thread.java:498)
- Root Cause -
java.lang.NullPointerException
at 
javax.servlet.GenericServlet.getInitParameter(GenericServlet.java:145)
at 
com.proxima.centauri.webinterface.servlets.MainServlet.init(MainServlet.java:255)
at  ..etc.


etienne


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




Re:Socket closed in Tomcat https session

2001-06-20 Thread Jean-Etienne G.

You may have more info of your problem using openssl has a client to interrogate your 
server. Maybe you will have the same problem has me (handshake error).



 Hi,

 I have installed Apache + mod_ssl successfully in Windows NT server and also
 installed Tomcat standalone correctly.  I can't configure Tomcat to talk to
 Apache using mod_jk.  After several tries and lots of searching, it is still
 not successfull.

 I decided to set up Tomcat with Direct SSL and have generated a keystore and
 a certificate, added a connector in server.xml to handle ssl connections.
 Starting tomcat correctly establishes the correct connction handlers for
 normal http and for ssl (port 8443).

 But if I try to start up a https session using https://localhost:8443
 I get : IOException in:  400 R( /) Socket closed.

 I noticed that others are having the same problem, but I can't locate the
 solutions or suggestions anywhere in the archive.

 Could anybody offer any suggestions or help, please ?

 I also noticed that if I change the true in clientAuth (in server.xml) to
 false, I am able to use https://localhost:8443.  But what is the good if I
 can't authenticate the users ?

 Best Regards,
 Chai Hong



__
Voila vous propose une boite aux lettres gratuite sur Voila Mail:
http://mail.voila.fr






RE: SSL handshake failure URGENT

2001-06-18 Thread Jean-Etienne G.


Of sure, there it is.


 Could you retry with openssl s_client in full debug mode ?

 -
 Henri Gomez ___[_]
 EMAIL : [EMAIL PROTECTED](. .)
 PGP KEY : 697ECEDD...oOOo..(_)..oOOo...
 PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6



 -Original Message-
 From: Jean-Etienne G. [mailto:[EMAIL PROTECTED]]
 Sent: Friday, June 15, 2001 12:21 PM
 To: [EMAIL PROTECTED]
 Subject: RE: SSL handshake failure URGENT
 
 
 So, every seems to be well configured, but I always get this
 handshake error, what could be the problem in that case ?
 
 # openssl s_client -connect 127.0.0.1:8443 -cert cl_cert.pem
 -key cl_key.pem -state
 Enter PEM pass phrase:
 CONNECTED(0003)
 SSL_connect:before/connect initialization
 SSL_connect:SSLv2/v3 write client hello A
 SSL3 alert read:fatal:handshake failure
 SSL_connect:error in SSLv2/v3 read server hello A
 
 
  ok now it's done, but same error
  HandShake Failure
  
  I made the new server request, the new server certification,
  the new server x509 conversion, and the new server into tomcat
  keystore importation
  
  (I send you the new server certificate)
  
  must we also replace to CN of the client ? (I didn't do it)
  maybe the CN of the CA ?
  
  CN of you client could be what you want
 
  
   The problem is in the CN of the server cert :
  
   replace CN=server by CN=thehostname !!!
  
   Certificate:
   Data:
   Version: 3 (0x2)
   Serial Number: 2 (0x2)
   Signature Algorithm: md5WithRSAEncryption
   Issuer: C=FR, ST=France, L=Genvilliers, O=THE_ORG,
  OU=UNIT, CN=ca
   Validity
   Not Before: Jun 14 08:47:55 2001 GMT
   Not After : Jun 14 08:47:55 2002 GMT
   Subject: C=FR, ST=France, O=THE_ORG, OU=UNIT, CN=server
   Subject Public Key Info:
   Public Key Algorithm: rsaEncryption
   RSA Public Key: (1024 bit)
   Modulus (1024 bit):
   00:f2:bc:0c:53:78:d3:08:85:b3:e1:70:7c:a8:d1:
   f1:64:49:37:e0:83:48:ac:5c:18:51:93:fd:31:49:
   12:24:3a:57:13:e0:3a:97:25:ee:29:f5:16:f2:da:
   a7:fc:84:89:f6:50:53:2c:09:2a:a9:f5:91:b8:33:
   a5:ec:2f:16:07:b8:bf:60:01:06:aa:cc:be:fd:a9:
   85:04:22:25:2b:16:4d:49:b4:11:bc:0a:68:1c:95:
   6c:a6:ad:8c:f4:ef:30:11:41:6e:cf:3b:ca:a6:6a:
   e9:1b:bf:41:28:b0:5e:c8:03:8c:cb:22:ce:80:38:
   3b:c3:9f:ac:e3:5e:77:cb:7b
   Exponent: 65537 (0x10001)
   X509v3 extensions:
   X509v3 Basic Constraints:
   CA:FALSE
   Netscape Comment:
   OpenSSL Generated Certificate
   X509v3 Subject Key Identifier:
  
  44:3C:48:E2:82:B6:77:02:B1:90:84:D3:B0:CD:0C:18:6E:81:9F:7E
   X509v3 Authority Key Identifier:
  
   keyid:85:64:41:58:57:5F:91:5E:E1:A7:85:6B:CB:B7:F4:03:C4:F9:A8:31
  
   DirName:/C=FR/ST=France/L=Genvilliers/O=THE_ORG/OU=UNIT/CN=ca
   serial:00
  
   Signature Algorithm: md5WithRSAEncryption
   05:0a:10:ec:dd:04:9e:8d:bb:98:2d:82:8f:c5:a0:f7:6b:06:
   97:52:c0:a2:c0:f2:25:8c:81:41:a5:80:f2:1e:72:da:a5:d2:
   28:df:44:77:0f:6b:df:9a:1e:06:c7:83:6a:7d:40:89:96:1f:
   be:f5:2b:b2:fc:4c:91:a9:0c:89:e8:00:37:d5:a1:ab:a8:82:
   7b:92:d9:ba:e9:1b:57:3d:32:62:96:ba:29:1d:3f:9b:83:64:
   b8:92:37:74:16:4d:3f:be:bf:cf:25:70:03:05:06:de:d2:52:
   94:ff:6a:fc:0c:32:ef:aa:ab:63:6d:e1:77:56:fc:3f:32:c6:
   20:a8
  
  
  
   -
   Henri Gomez ___[_]
   EMAIL : [EMAIL PROTECTED](. .)
   PGP KEY : 697ECEDD...oOOo..(_)..oOOo...
   PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6
  
  
  
  __
  Voila vous propose une boite aux lettres gratuite sur Voila Mail:
  http://mail.voila.fr
  
  
 
 
 __
 Voila vous propose une boite aux lettres gratuite sur Voila Mail:
 http://mail.voila.fr
 
 
 



__
Voila vous propose une boite aux lettres gratuite sur Voila Mail:
http://mail.voila.fr


 error2.txt


RE: SSL handshake failure URGENT

2001-06-18 Thread Jean-Etienne G.

I would try to do that following a document you wrote about SSL via apache, but I was 
a little lost in your indication
(for example some Jk... directives are not recognized, [JkExtractSSL, ...] ) and I 
don't have a mod_jk.so module to load)

 Could you try the server cert on apache/SSL or Apache-mod_ssl
 and see if it works ?



 -
 Henri Gomez ___[_]
 EMAIL : [EMAIL PROTECTED](. .)
 PGP KEY : 697ECEDD...oOOo..(_)..oOOo...
 PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6



 -Original Message-
 From: Jean-Etienne G. [mailto:[EMAIL PROTECTED]]
 Sent: Monday, June 18, 2001 10:05 AM
 To: [EMAIL PROTECTED]
 Subject: RE: SSL handshake failure URGENT
 
 
 
 Of sure, there it is.
 
 
  Could you retry with openssl s_client in full debug mode ?
 
  -
  Henri Gomez ___[_]
  EMAIL : [EMAIL PROTECTED](. .)
  PGP KEY : 697ECEDD...oOOo..(_)..oOOo...
  PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6
 
 
 
  -Original Message-
  From: Jean-Etienne G. [mailto:[EMAIL PROTECTED]]
  Sent: Friday, June 15, 2001 12:21 PM
  To: [EMAIL PROTECTED]
  Subject: RE: SSL handshake failure URGENT
  
  
  So, every seems to be well configured, but I always get this
  handshake error, what could be the problem in that case ?
  
  # openssl s_client -connect 127.0.0.1:8443 -cert cl_cert.pem
  -key cl_key.pem -state
  Enter PEM pass phrase:
  CONNECTED(0003)
  SSL_connect:before/connect initialization
  SSL_connect:SSLv2/v3 write client hello A
  SSL3 alert read:fatal:handshake failure
  SSL_connect:error in SSLv2/v3 read server hello A
  
  
   ok now it's done, but same error
   HandShake Failure
   
   I made the new server request, the new server certification,
   the new server x509 conversion, and the new server into tomcat
   keystore importation
   
   (I send you the new server certificate)
   
   must we also replace to CN of the client ? (I didn't do it)
   maybe the CN of the CA ?
   
   CN of you client could be what you want
  
   
The problem is in the CN of the server cert :
   
replace CN=server by CN=thehostname !!!
   
Certificate:
Data:
Version: 3 (0x2)
Serial Number: 2 (0x2)
Signature Algorithm: md5WithRSAEncryption
Issuer: C=FR, ST=France, L=Genvilliers, O=THE_ORG,
   OU=UNIT, CN=ca
Validity
Not Before: Jun 14 08:47:55 2001 GMT
Not After : Jun 14 08:47:55 2002 GMT
Subject: C=FR, ST=France, O=THE_ORG, OU=UNIT, CN=server
Subject Public Key Info:
Public Key Algorithm: rsaEncryption
RSA Public Key: (1024 bit)
Modulus (1024 bit):
   
 00:f2:bc:0c:53:78:d3:08:85:b3:e1:70:7c:a8:d1:
   
 f1:64:49:37:e0:83:48:ac:5c:18:51:93:fd:31:49:
   
 12:24:3a:57:13:e0:3a:97:25:ee:29:f5:16:f2:da:
   
 a7:fc:84:89:f6:50:53:2c:09:2a:a9:f5:91:b8:33:
   
 a5:ec:2f:16:07:b8:bf:60:01:06:aa:cc:be:fd:a9:
   
 85:04:22:25:2b:16:4d:49:b4:11:bc:0a:68:1c:95:
   
 6c:a6:ad:8c:f4:ef:30:11:41:6e:cf:3b:ca:a6:6a:
   
 e9:1b:bf:41:28:b0:5e:c8:03:8c:cb:22:ce:80:38:
3b:c3:9f:ac:e3:5e:77:cb:7b
Exponent: 65537 (0x10001)
X509v3 extensions:
X509v3 Basic Constraints:
CA:FALSE
Netscape Comment:
OpenSSL Generated Certificate
X509v3 Subject Key Identifier:
   
   44:3C:48:E2:82:B6:77:02:B1:90:84:D3:B0:CD:0C:18:6E:81:9F:7E
X509v3 Authority Key Identifier:
   
   
 keyid:85:64:41:58:57:5F:91:5E:E1:A7:85:6B:CB:B7:F4:03:C4:F9:A8:31
   
DirName:/C=FR/ST=France/L=Genvilliers/O=THE_ORG/OU=UNIT/CN=ca
serial:00
   
Signature Algorithm: md5WithRSAEncryption
05:0a:10:ec:dd:04:9e:8d:bb:98:2d:82:8f:c5:a0:f7:6b:06:
97:52:c0:a2:c0:f2:25:8c:81:41:a5:80:f2:1e:72:da:a5:d2:
28:df:44:77:0f:6b:df:9a:1e:06:c7:83:6a:7d:40:89:96:1f:
be:f5:2b:b2:fc:4c:91:a9:0c:89:e8:00:37:d5:a1:ab:a8:82:
7b:92:d9:ba:e9:1b:57:3d:32:62:96:ba:29:1d:3f:9b:83:64:
b8:92:37:74:16:4d:3f:be:bf:cf:25:70:03:05:06:de:d2:52:
94:ff:6a:fc:0c:32:ef:aa:ab:63:6d:e1:77:56:fc:3f:32:c6:
20:a8
   
   
   
-
Henri Gomez ___[_]
EMAIL : [EMAIL PROTECTED](. .)
PGP KEY : 697ECEDD...oOOo..(_)..oOOo...
PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6
   
   
   
   __
   Voila vous propose une boite aux lettres gratuite sur Voila Mail:
   http://mail.voila.fr
   
   
  
  
  __
  Voila vous propose une boite aux lettres gratuite sur Voila Mail:
  http://mail.voila.fr
  
  
  
 
 
 
 __
 Voila vous propose une boite aux lettres gratuite sur Voila Mail:
 http

RE: SSL handshake failure URGENT

2001-06-18 Thread Jean-Etienne G.

ok, thanks Henri and Tim

I use Linux RedHat 7, but it seems that SSL options was not taken in account with 
default launching of httpd (with httpd start) so I made first some modifications of 
httpd conf (specially putting on comment the ifDefine SSL tags to make it taken in 
account, and made some mistakes maybe cause httpd will not launch now :-)

I (true)hope so that the packages I download from your site are the good ones 
(tomcat-3.2.2-1.noarch.rpm and apache-mod_ssl-1.3.20.2.8.4-2.i386.rpm) even if I was 
surprised that apache-mod_ssl-1.3.19.2.8.3-1.i386.rpm was bigger (1.6M) than the next 
version apache-mod_ssl-1.3.20.2.8.4-2.i386.rpm (879k)

I will give you wedensday the next episod of my SSL/Linux/tomcat/apache adventure.

 PS: Did you have a Linux boxes, I've packaged easy to use
 RPM which will let you install apache-mod_ssl, tomcat and
 mod_jk in less than 30 mins

 http://www.falsehope.com/ftp-site/home/gomez/apache-mod_ssl/
 http://www.falsehope.com/ftp-site/home/gomez/tomcat/

 Redhat 7.0/7.1 users allready have a Apache using mod_ssl

 -
 Henri Gomez ___[_]
 EMAIL : [EMAIL PROTECTED](. .)
 PGP KEY : 697ECEDD...oOOo..(_)..oOOo...
 PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6



 -Original Message-
 From: Jean-Etienne G. [mailto:[EMAIL PROTECTED]]
 Sent: Monday, June 18, 2001 11:41 AM
 To: [EMAIL PROTECTED]
 Subject: RE: SSL handshake failure URGENT
 
 
 I would try to do that following a document you wrote about
 SSL via apache, but I was a little lost in your indication
 (for example some Jk... directives are not recognized,
 [JkExtractSSL, ...] ) and I don't have a mod_jk.so module to load)
 
  Could you try the server cert on apache/SSL or Apache-mod_ssl
  and see if it works ?
 
 
 
  -
  Henri Gomez ___[_]
  EMAIL : [EMAIL PROTECTED](. .)
  PGP KEY : 697ECEDD...oOOo..(_)..oOOo...
  PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6
 
 
 
  -Original Message-
  From: Jean-Etienne G. [mailto:[EMAIL PROTECTED]]
  Sent: Monday, June 18, 2001 10:05 AM
  To: [EMAIL PROTECTED]
  Subject: RE: SSL handshake failure URGENT
  
  
  
  Of sure, there it is.
  
  
   Could you retry with openssl s_client in full debug mode ?
  
   -
   Henri Gomez ___[_]
   EMAIL : [EMAIL PROTECTED](. .)
   PGP KEY : 697ECEDD...oOOo..(_)..oOOo...
   PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6
  
  
  
   -Original Message-
   From: Jean-Etienne G. [mailto:[EMAIL PROTECTED]]
   Sent: Friday, June 15, 2001 12:21 PM
   To: [EMAIL PROTECTED]
   Subject: RE: SSL handshake failure URGENT
   
   
   So, every seems to be well configured, but I always get this
   handshake error, what could be the problem in that case ?
   
   # openssl s_client -connect 127.0.0.1:8443 -cert cl_cert.pem
   -key cl_key.pem -state
   Enter PEM pass phrase:
   CONNECTED(0003)
   SSL_connect:before/connect initialization
   SSL_connect:SSLv2/v3 write client hello A
   SSL3 alert read:fatal:handshake failure
   SSL_connect:error in SSLv2/v3 read server hello A
   
   
ok now it's done, but same error
HandShake Failure

I made the new server request, the new server certification,
the new server x509 conversion, and the new server
 into tomcat
keystore importation

(I send you the new server certificate)

must we also replace to CN of the client ? (I didn't do it)
maybe the CN of the CA ?

CN of you client could be what you want
   

 The problem is in the CN of the server cert :

 replace CN=server by CN=thehostname !!!

 Certificate:
 Data:
 Version: 3 (0x2)
 Serial Number: 2 (0x2)
 Signature Algorithm: md5WithRSAEncryption
 Issuer: C=FR, ST=France, L=Genvilliers, O=THE_ORG,
OU=UNIT, CN=ca
 Validity
 Not Before: Jun 14 08:47:55 2001 GMT
 Not After : Jun 14 08:47:55 2002 GMT
 Subject: C=FR, ST=France, O=THE_ORG,
 OU=UNIT, CN=server
 Subject Public Key Info:
 Public Key Algorithm: rsaEncryption
 RSA Public Key: (1024 bit)
 Modulus (1024 bit):

  00:f2:bc:0c:53:78:d3:08:85:b3:e1:70:7c:a8:d1:

  f1:64:49:37:e0:83:48:ac:5c:18:51:93:fd:31:49:

  12:24:3a:57:13:e0:3a:97:25:ee:29:f5:16:f2:da:

  a7:fc:84:89:f6:50:53:2c:09:2a:a9:f5:91:b8:33:

  a5:ec:2f:16:07:b8:bf:60:01:06:aa:cc:be:fd:a9:

  85:04:22:25:2b:16:4d:49:b4:11:bc:0a:68:1c:95:

  6c:a6:ad:8c:f4:ef:30:11:41:6e:cf:3b:ca:a6:6a:

  e9:1b:bf:41:28:b0:5e:c8:03:8c:cb:22:ce:80:38:
 3b:c3:9f:ac:e3:5e:77:cb:7b
 Exponent: 65537 (0x10001)
 X509v3 extensions:
 X509v3 Basic Constraints:
 CA:FALSE
 Netscape Comment:
 OpenSSL

RE: SSL handshake failure URGENT

2001-06-18 Thread Jean-Etienne G.


The rpm installation of apache (1.3.20) failed cause it claims openssl = 0.9.6 (that 
I installed) and cause there are a lot of conflicts with previous version of apache 
(1.3.12)
I am not a big afficionados of Linux fine configuration and tuning but I am compelled 
to work on this plateform. Do you have a magic (rpm or not) package that I just may 
click on to auto configurate and update the components I already have ?


 PS: Did you have a Linux boxes, I've packaged easy to use
 RPM which will let you install apache-mod_ssl, tomcat and
 mod_jk in less than 30 mins

 http://www.falsehope.com/ftp-site/home/gomez/apache-mod_ssl/
 http://www.falsehope.com/ftp-site/home/gomez/tomcat/

 Redhat 7.0/7.1 users allready have a Apache using mod_ssl

 -
 Henri Gomez ___[_]
 EMAIL : [EMAIL PROTECTED](. .)
 PGP KEY : 697ECEDD...oOOo..(_)..oOOo...
 PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6



 -Original Message-
 From: Jean-Etienne G. [mailto:[EMAIL PROTECTED]]
 Sent: Monday, June 18, 2001 11:41 AM
 To: [EMAIL PROTECTED]
 Subject: RE: SSL handshake failure URGENT
 
 
 I would try to do that following a document you wrote about
 SSL via apache, but I was a little lost in your indication
 (for example some Jk... directives are not recognized,
 [JkExtractSSL, ...] ) and I don't have a mod_jk.so module to load)
 
  Could you try the server cert on apache/SSL or Apache-mod_ssl
  and see if it works ?
 
 
 
  -
  Henri Gomez ___[_]
  EMAIL : [EMAIL PROTECTED](. .)
  PGP KEY : 697ECEDD...oOOo..(_)..oOOo...
  PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6
 
 
 
  -Original Message-
  From: Jean-Etienne G. [mailto:[EMAIL PROTECTED]]
  Sent: Monday, June 18, 2001 10:05 AM
  To: [EMAIL PROTECTED]
  Subject: RE: SSL handshake failure URGENT
  
  
  
  Of sure, there it is.
  
  
   Could you retry with openssl s_client in full debug mode ?
  
   -
   Henri Gomez ___[_]
   EMAIL : [EMAIL PROTECTED](. .)
   PGP KEY : 697ECEDD...oOOo..(_)..oOOo...
   PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6
  
  
  
   -Original Message-
   From: Jean-Etienne G. [mailto:[EMAIL PROTECTED]]
   Sent: Friday, June 15, 2001 12:21 PM
   To: [EMAIL PROTECTED]
   Subject: RE: SSL handshake failure URGENT
   
   
   So, every seems to be well configured, but I always get this
   handshake error, what could be the problem in that case ?
   
   # openssl s_client -connect 127.0.0.1:8443 -cert cl_cert.pem
   -key cl_key.pem -state
   Enter PEM pass phrase:
   CONNECTED(0003)
   SSL_connect:before/connect initialization
   SSL_connect:SSLv2/v3 write client hello A
   SSL3 alert read:fatal:handshake failure
   SSL_connect:error in SSLv2/v3 read server hello A
   
   
ok now it's done, but same error
HandShake Failure

I made the new server request, the new server certification,
the new server x509 conversion, and the new server
 into tomcat
keystore importation

(I send you the new server certificate)

must we also replace to CN of the client ? (I didn't do it)
maybe the CN of the CA ?

CN of you client could be what you want
   

 The problem is in the CN of the server cert :

 replace CN=server by CN=thehostname !!!

 Certificate:
 Data:
 Version: 3 (0x2)
 Serial Number: 2 (0x2)
 Signature Algorithm: md5WithRSAEncryption
 Issuer: C=FR, ST=France, L=Genvilliers, O=THE_ORG,
OU=UNIT, CN=ca
 Validity
 Not Before: Jun 14 08:47:55 2001 GMT
 Not After : Jun 14 08:47:55 2002 GMT
 Subject: C=FR, ST=France, O=THE_ORG,
 OU=UNIT, CN=server
 Subject Public Key Info:
 Public Key Algorithm: rsaEncryption
 RSA Public Key: (1024 bit)
 Modulus (1024 bit):

  00:f2:bc:0c:53:78:d3:08:85:b3:e1:70:7c:a8:d1:

  f1:64:49:37:e0:83:48:ac:5c:18:51:93:fd:31:49:

  12:24:3a:57:13:e0:3a:97:25:ee:29:f5:16:f2:da:

  a7:fc:84:89:f6:50:53:2c:09:2a:a9:f5:91:b8:33:

  a5:ec:2f:16:07:b8:bf:60:01:06:aa:cc:be:fd:a9:

  85:04:22:25:2b:16:4d:49:b4:11:bc:0a:68:1c:95:

  6c:a6:ad:8c:f4:ef:30:11:41:6e:cf:3b:ca:a6:6a:

  e9:1b:bf:41:28:b0:5e:c8:03:8c:cb:22:ce:80:38:
 3b:c3:9f:ac:e3:5e:77:cb:7b
 Exponent: 65537 (0x10001)
 X509v3 extensions:
 X509v3 Basic Constraints:
 CA:FALSE
 Netscape Comment:
 OpenSSL Generated Certificate
 X509v3 Subject Key Identifier:

44:3C:48:E2:82:B6:77:02:B1:90:84:D3:B0:CD:0C:18:6E:81:9F:7E
 X509v3 Authority Key Identifier:


  keyid:85:64:41:58:57:5F:91:5E:E1:A7:85:6B:CB:B7:F4:03:C4:F9:A8:31


 DirName:/C=FR/ST=France/L=Genvilliers/O

RE: SSL handshake failure URGENT

2001-06-15 Thread Jean-Etienne G.

 Did you set correctly the SERVER Common Name ?
 It must match the server name (ie: mybecane.com)

First, thanks to have taken the time to help me :)
But I fear I didn't understand the answer :(
where must I enter the same name as what ?

example : I am under Linux, the hostname is thehostname
is that that you call server name, or is it a name that you enter in the server.xml 
file (if yes with witch tag ?)

And where must I enter the same name as the servername ?
what field of witch openSSL command ?

Thanks for your answer !

 JEG

  # CA
  openssl req -new -out ca_req.pem -keyout ca_key.pem
  #pwd:pwd_ca
  #challenge_pwd:ch_ca
  #company name:THE_ORG
 
  # CLIENT
  openssl req -new -out cl_req.pem -keyout cl_key.pem
  #pwd:pwd_cl
  #ch_pwd:ch_cl
  #company name:THE_ORG
  # SERVER
  openssl req -new -out sr_req.pem -keyout sr_key.pem
  #pwd:pwd_sr
  #ch_pwd:ch_sr
  #company name:THE_ORG
  # CA AUTH
  echo CA AUTH : enter CA password
  openssl req -x509 -in ca_req.pem -key ca_key.pem -out ca_cert.pem
  #pwd:pwd_ca
  rm ./demoCA/index.txt
  rm ./demoCA/serial
  cat   ./demoCA/index.txt
  cat 01  ./demoCA/serial
 
  # CLIENT AUTH BY CA
  echo CL AUTH : enter CA password
  openssl ca -cert ca_cert.pem -in cl_req.pem -out cl_cert.pem
 -keyfile ca_key.pem -config /usr/local/ssl/openssl.cnf
  #pwd:pwd_ca
 
  # SERVER AUTH BY CA
  echo SR AUTH : enter CA password
  openssl ca -cert ca_cert.pem -in sr_req.pem -out sr_cert.pem
 -keyfile ca_key.pem -config /usr/local/ssl/openssl.cnf
  #pwd:pwd_ca
 
  # CONVERT SERVER AUTH FROM PEM FORMAT TO DER FORMAT
  openssl x509 -inform PEM -in sr_cert.pem -outform DER -out sr_cert.der
 
  # REMOVE PREVIOUS KEYSTORE
  rm /opt/tomcat-3-2-2/tomcat/conf/keystore
 
  # IMPORT SERVER CERT IN TOMCAT KEYSTORE
  echo IMPORT SR CERT : enter SR password
  /usr/java/jdk1.3/bin/keytool -import -v -trustcacerts -alias
 tomcat -file sr_cert.der -keystore
 /opt/tomcat-3-2-2/tomcat/conf/keystore
  #pwd:pwd_sr
 
  # CONVERTING CLIENT CERT INTO NETSCAPE PKCS12 FORMAT
  echo CL CERT CONVERSION : PEM - P12 : enter CL passwd
  openssl pkcs12 -in cl_cert.pem -inkey cl_key.pem -export -out
 cl_cert.p12
  #pwd:pwd_cl
  #exp_pwd:pwd_cl
 
  # CONNECTION TO THE TOMCAT SERVER
  openssl s_client -connect 127.0.0.1:8443 -cert cl_cert.pem
 -key cl_key.pem -state


__
Voila vous propose une boite aux lettres gratuite sur Voila Mail:
http://mail.voila.fr






RE: SSL handshake failure URGENT

2001-06-15 Thread Jean-Etienne G.

Here they are
(all the files I have generated with these openssl commands)

 can u send ur server,client,ca certs?

 Rams
 +91-040-3000401 x 2162 (O)
 +91-040-6313447 (R)


 -Original Message-
 From: Jean-Etienne G. [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, June 14, 2001 7:27 PM
 To: [EMAIL PROTECTED]
 Subject: SSL handshake failure URGENT


 Hello,

  I get no responses for my previous mails... so maybe I did not contact the
 good mailing list. Please give me an start of response...

  Hello,
  I have a cert importation problem

  here is the output of an openSSL client command [witch emulate a browser]
 (openssl s_client -connect 127.0.0.1:8443 -cert cl_cert.pem -key
  cl_key.pem -state) :

  Enter PEM pass phrase:
  CONNECTED(0003)
  SSL_connect:before/connect initialization
  SSL_connect:SSLv2/v3 write client hello A
  SSL3 alert read:fatal:handshake failure
  SSL_connect:error in SSLv2/v3 read server hello A
  1993:error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert
 handshake failure:s23_clnt.c:453:

  Can someone help me ?
  Is it a way to make it work without installing apache ?
  Thanks for your answer




  I have this tomcat configuration :


  Connector className=3Dorg.apache.tomcat.service.PoolTcpConnector
  Parameter name=3Dhandler
  value=3Dorg.apache.tomcat.service.http.HttpConnectionHandler/
  Parameter name=3Dport
  value=3D8443/
  Parameter name=3DsocketFactory
  value=3Dorg.apache.tomcat.net.SSLSocketFactory /
  Parameter name=3Dkeystore
  value=3D/opt/tomcat-3-2-2/tomcat/conf/keystore /
  Parameter name=3Dkeypass
  value=3Dpwd_sr /
  Parameter name=3DclientAuth
  value=3Dtrue /
  /Connector


  And that are all the lines procedure I entered to make it well work

  mkdir ./demoCA
  echo   ./demoCA/index.txt
  echo 01  ./demoCA/serial

  # CA
  openssl req -new -out ca_req.pem -keyout ca_key.pem
  #pwd:pwd_ca
  #challenge_pwd:ch_ca
  #company name:THE_ORG

  # CLIENT
  openssl req -new -out cl_req.pem -keyout cl_key.pem
  #pwd:pwd_cl
  #ch_pwd:ch_cl
  #company name:THE_ORG
  # SERVER
  openssl req -new -out sr_req.pem -keyout sr_key.pem
  #pwd:pwd_sr
  #ch_pwd:ch_sr
  #company name:THE_ORG
  # CA AUTH
  echo CA AUTH : enter CA password
  openssl req -x509 -in ca_req.pem -key ca_key.pem -out ca_cert.pem
  #pwd:pwd_ca
  rm ./demoCA/index.txt
  rm ./demoCA/serial
  cat   ./demoCA/index.txt
  cat 01  ./demoCA/serial

  # CLIENT AUTH BY CA
  echo CL AUTH : enter CA password
  openssl ca -cert ca_cert.pem -in cl_req.pem -out cl_cert.pem -keyfile
 ca_key.pem -config /usr/local/ssl/openssl.cnf
  #pwd:pwd_ca

  # SERVER AUTH BY CA
  echo SR AUTH : enter CA password
  openssl ca -cert ca_cert.pem -in sr_req.pem -out sr_cert.pem -keyfile
 ca_key.pem -config /usr/local/ssl/openssl.cnf
  #pwd:pwd_ca

  # CONVERT SERVER AUTH FROM PEM FORMAT TO DER FORMAT
  openssl x509 -inform PEM -in sr_cert.pem -outform DER -out sr_cert.der

  # REMOVE PREVIOUS KEYSTORE
  rm /opt/tomcat-3-2-2/tomcat/conf/keystore

  # IMPORT SERVER CERT IN TOMCAT KEYSTORE
  echo IMPORT SR CERT : enter SR password
  /usr/java/jdk1.3/bin/keytool -import -v -trustcacerts -alias tomcat -file
 sr_cert.der -keystore /opt/tomcat-3-2-2/tomcat/conf/keystore
  #pwd:pwd_sr

  # CONVERTING CLIENT CERT INTO NETSCAPE PKCS12 FORMAT
  echo CL CERT CONVERSION : PEM - P12 : enter CL passwd
  openssl pkcs12 -in cl_cert.pem -inkey cl_key.pem -export -out cl_cert.p12
  #pwd:pwd_cl
  #exp_pwd:pwd_cl

  # CONNECTION TO THE TOMCAT SERVER
  openssl s_client -connect 127.0.0.1:8443 -cert cl_cert.pem -key
 cl_key.pem -state
 __
 Voila vous propose une boite aux lettres gratuite sur Voila Mail:
 http://mail.voila.fr





__
Voila vous propose une boite aux lettres gratuite sur Voila Mail:
http://mail.voila.fr


 certs.zip


Re:FW: newbie: Starting Tomcat

2001-06-15 Thread Jean-Etienne G.

I am really not sure, but maybe you can try to include the jnet.jar file in your 
ClassPath



 Hello,

 I'm new to java and was coming to grips with it until I got to the
 chapter on SERVLETS.  I hope some one out there can help me and I
 would like to thank you in advance.

 I downloaded and installed Tomcat 3.2.2 under NT 4.0 (SP 6) without
 any problems.  I also have JDK 1.3 on the machine.  Following one
 posting on Google I added the line to the server.xml file:
 RequestInterceptor
 className=org.apache.tomcat.request.Jdk12Interceptor /


 When trying to start Tomcat I get the following message:

 E:\jakarta-tomcat-3.2.2\bintomcat run
 Including all jars in E:\jakarta-tomcat-3.2.2\lib in your CLASSPATH.

 Using CLASSPATH:
 E:\jakarta-tomcat-3.2.2\classes;E:\jakarta-tomcat-3.2.2\lib\ant.jar;E:\jakar
 ta-tomc
 at-3.2.2\lib\jasper.jar;E:\jakarta-tomcat-3.2.2\lib\jaxp.jar;E:\jakarta-tomc
 at-3.2.2\lib\parser.jar;
 E:\jakarta-tomcat-3.2.2\lib\servlet.jar;E:\jakarta-tomcat-3.2.2\lib\webserve
 r.jar

 2001-06-12 04:16:19 - ContextManager: Adding context Ctx( /examples )
 2001-06-12 04:16:19 - ContextManager: Adding context Ctx( /admin )
 Starting tomcat. Check logs/tomcat.log for error messages
 2001-06-12 04:16:19 - ContextManager: Adding context Ctx(  )
 2001-06-12 04:16:19 - ContextManager: Adding context Ctx( /test )
 Exception in thread main java.lang.ExceptionInInitializerError:
 java.util.MissingResourceException
 : Can't find bundle for base name javax.servlet.http.LocalStrings,
 locale en_US
 at java.util.ResourceBundle.throwMissingResourceException(Unknown
 Source)
 at java.util.ResourceBundle.getBundleImpl(Unknown Source)
 at java.util.ResourceBundle.getBundle(Unknown Source)
 at javax.servlet.http.HttpServlet.clinit(HttpServlet.java:144)
 at java.lang.Class.newInstance0(Native Method)
 at java.lang.Class.newInstance(Unknown Source)
 at
 org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java:268)
 at
 org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:289)
 at
 org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOnStartup
 Interceptor.j
 ava:130)
 at
 org.apache.tomcat.core.ContextManager.initContext(ContextManager.java:491)
 at
 org.apache.tomcat.core.ContextManager.init(ContextManager.java:453)
 at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195)
 at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
 E:\jakarta-tomcat-3.2.2\bin

 If I use Tomcat Start or just the Start.bat I get a second window that
 opens and disappears rather quickly before I can see what's going on.  Can
 anyone help?  Also, can anyone suggest any books on Tomcat?

 Regards,
 LeRoi



__
Voila vous propose une boite aux lettres gratuite sur Voila Mail:
http://mail.voila.fr






RE: SSL handshake failure URGENT

2001-06-15 Thread Jean-Etienne G.

ok now it's done, but same error
HandShake Failure

I made the new server request, the new server certification, the new server x509 
conversion, and the new server into tomcat keystore importation

(I send you the new server certificate)

must we also replace to CN of the client ? (I didn't do it)
maybe the CN of the CA ?



 The problem is in the CN of the server cert :

 replace CN=server by CN=thehostname !!!

 Certificate:
 Data:
 Version: 3 (0x2)
 Serial Number: 2 (0x2)
 Signature Algorithm: md5WithRSAEncryption
 Issuer: C=FR, ST=France, L=Genvilliers, O=THE_ORG, OU=UNIT, CN=ca
 Validity
 Not Before: Jun 14 08:47:55 2001 GMT
 Not After : Jun 14 08:47:55 2002 GMT
 Subject: C=FR, ST=France, O=THE_ORG, OU=UNIT, CN=server
 Subject Public Key Info:
 Public Key Algorithm: rsaEncryption
 RSA Public Key: (1024 bit)
 Modulus (1024 bit):
 00:f2:bc:0c:53:78:d3:08:85:b3:e1:70:7c:a8:d1:
 f1:64:49:37:e0:83:48:ac:5c:18:51:93:fd:31:49:
 12:24:3a:57:13:e0:3a:97:25:ee:29:f5:16:f2:da:
 a7:fc:84:89:f6:50:53:2c:09:2a:a9:f5:91:b8:33:
 a5:ec:2f:16:07:b8:bf:60:01:06:aa:cc:be:fd:a9:
 85:04:22:25:2b:16:4d:49:b4:11:bc:0a:68:1c:95:
 6c:a6:ad:8c:f4:ef:30:11:41:6e:cf:3b:ca:a6:6a:
 e9:1b:bf:41:28:b0:5e:c8:03:8c:cb:22:ce:80:38:
 3b:c3:9f:ac:e3:5e:77:cb:7b
 Exponent: 65537 (0x10001)
 X509v3 extensions:
 X509v3 Basic Constraints:
 CA:FALSE
 Netscape Comment:
 OpenSSL Generated Certificate
 X509v3 Subject Key Identifier:
 44:3C:48:E2:82:B6:77:02:B1:90:84:D3:B0:CD:0C:18:6E:81:9F:7E
 X509v3 Authority Key Identifier:

 keyid:85:64:41:58:57:5F:91:5E:E1:A7:85:6B:CB:B7:F4:03:C4:F9:A8:31

 DirName:/C=FR/ST=France/L=Genvilliers/O=THE_ORG/OU=UNIT/CN=ca
 serial:00

 Signature Algorithm: md5WithRSAEncryption
 05:0a:10:ec:dd:04:9e:8d:bb:98:2d:82:8f:c5:a0:f7:6b:06:
 97:52:c0:a2:c0:f2:25:8c:81:41:a5:80:f2:1e:72:da:a5:d2:
 28:df:44:77:0f:6b:df:9a:1e:06:c7:83:6a:7d:40:89:96:1f:
 be:f5:2b:b2:fc:4c:91:a9:0c:89:e8:00:37:d5:a1:ab:a8:82:
 7b:92:d9:ba:e9:1b:57:3d:32:62:96:ba:29:1d:3f:9b:83:64:
 b8:92:37:74:16:4d:3f:be:bf:cf:25:70:03:05:06:de:d2:52:
 94:ff:6a:fc:0c:32:ef:aa:ab:63:6d:e1:77:56:fc:3f:32:c6:
 20:a8



 -
 Henri Gomez ___[_]
 EMAIL : [EMAIL PROTECTED](. .)
 PGP KEY : 697ECEDD...oOOo..(_)..oOOo...
 PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6



__
Voila vous propose une boite aux lettres gratuite sur Voila Mail:
http://mail.voila.fr


 sr_cert_new.pem


RE: SSL handshake failure URGENT

2001-06-15 Thread Jean-Etienne G.

So, every seems to be well configured, but I always get this
handshake error, what could be the problem in that case ?

# openssl s_client -connect 127.0.0.1:8443 -cert cl_cert.pem -key cl_key.pem -state
Enter PEM pass phrase:
CONNECTED(0003)
SSL_connect:before/connect initialization
SSL_connect:SSLv2/v3 write client hello A
SSL3 alert read:fatal:handshake failure
SSL_connect:error in SSLv2/v3 read server hello A


 ok now it's done, but same error
 HandShake Failure
 
 I made the new server request, the new server certification,
 the new server x509 conversion, and the new server into tomcat
 keystore importation
 
 (I send you the new server certificate)
 
 must we also replace to CN of the client ? (I didn't do it)
 maybe the CN of the CA ?
 
 CN of you client could be what you want

 
  The problem is in the CN of the server cert :
 
  replace CN=server by CN=thehostname !!!
 
  Certificate:
  Data:
  Version: 3 (0x2)
  Serial Number: 2 (0x2)
  Signature Algorithm: md5WithRSAEncryption
  Issuer: C=FR, ST=France, L=Genvilliers, O=THE_ORG,
 OU=UNIT, CN=ca
  Validity
  Not Before: Jun 14 08:47:55 2001 GMT
  Not After : Jun 14 08:47:55 2002 GMT
  Subject: C=FR, ST=France, O=THE_ORG, OU=UNIT, CN=server
  Subject Public Key Info:
  Public Key Algorithm: rsaEncryption
  RSA Public Key: (1024 bit)
  Modulus (1024 bit):
  00:f2:bc:0c:53:78:d3:08:85:b3:e1:70:7c:a8:d1:
  f1:64:49:37:e0:83:48:ac:5c:18:51:93:fd:31:49:
  12:24:3a:57:13:e0:3a:97:25:ee:29:f5:16:f2:da:
  a7:fc:84:89:f6:50:53:2c:09:2a:a9:f5:91:b8:33:
  a5:ec:2f:16:07:b8:bf:60:01:06:aa:cc:be:fd:a9:
  85:04:22:25:2b:16:4d:49:b4:11:bc:0a:68:1c:95:
  6c:a6:ad:8c:f4:ef:30:11:41:6e:cf:3b:ca:a6:6a:
  e9:1b:bf:41:28:b0:5e:c8:03:8c:cb:22:ce:80:38:
  3b:c3:9f:ac:e3:5e:77:cb:7b
  Exponent: 65537 (0x10001)
  X509v3 extensions:
  X509v3 Basic Constraints:
  CA:FALSE
  Netscape Comment:
  OpenSSL Generated Certificate
  X509v3 Subject Key Identifier:
 
 44:3C:48:E2:82:B6:77:02:B1:90:84:D3:B0:CD:0C:18:6E:81:9F:7E
  X509v3 Authority Key Identifier:
 
  keyid:85:64:41:58:57:5F:91:5E:E1:A7:85:6B:CB:B7:F4:03:C4:F9:A8:31
 
  DirName:/C=FR/ST=France/L=Genvilliers/O=THE_ORG/OU=UNIT/CN=ca
  serial:00
 
  Signature Algorithm: md5WithRSAEncryption
  05:0a:10:ec:dd:04:9e:8d:bb:98:2d:82:8f:c5:a0:f7:6b:06:
  97:52:c0:a2:c0:f2:25:8c:81:41:a5:80:f2:1e:72:da:a5:d2:
  28:df:44:77:0f:6b:df:9a:1e:06:c7:83:6a:7d:40:89:96:1f:
  be:f5:2b:b2:fc:4c:91:a9:0c:89:e8:00:37:d5:a1:ab:a8:82:
  7b:92:d9:ba:e9:1b:57:3d:32:62:96:ba:29:1d:3f:9b:83:64:
  b8:92:37:74:16:4d:3f:be:bf:cf:25:70:03:05:06:de:d2:52:
  94:ff:6a:fc:0c:32:ef:aa:ab:63:6d:e1:77:56:fc:3f:32:c6:
  20:a8
 
 
 
  -
  Henri Gomez ___[_]
  EMAIL : [EMAIL PROTECTED](. .)
  PGP KEY : 697ECEDD...oOOo..(_)..oOOo...
  PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6
 
 
 
 __
 Voila vous propose une boite aux lettres gratuite sur Voila Mail:
 http://mail.voila.fr
 
 


__
Voila vous propose une boite aux lettres gratuite sur Voila Mail:
http://mail.voila.fr






RE: SSL handshake failure URGENT

2001-06-15 Thread Jean-Etienne G.

 Could you retry with openssl s_client in full debug mode ?

Here it is, for me it's like chinese :

[arcade2]# openssl s_client -connect 127.0.0.1:8443 -cert cl_cert.pem -key cl_key.pem 
-state -debug
Enter PEM pass phrase:
CONNECTED(0003)
SSL_connect:before/connect initialization
write to 08156A30 [08157E98] (124 bytes = 124 (0x7C))
 - 80 7a 01 03 01 00 51 00-00 00 20 00 00 16 00 00   .zQ... .
0010 - 13 00 00 0a 07 00 c0 00-00 66 00 00 05 00 00 04   .f..
0020 - 03 00 80 01 00 80 08 00-80 00 00 65 00 00 64 00   ...e..d.
0030 - 00 63 00 00 62 00 00 61-00 00 60 00 00 15 00 00   .c..b..a..`.
0040 - 12 00 00 09 06 00 40 00-00 14 00 00 11 00 00 08   ..@.
0050 - 00 00 06 00 00 03 04 00-80 02 00 80 61 bf 17 f2   a...
0060 - 3c c8 5d 69 0a 5c d9 28-e6 9c fe 89 bc 0b 53 13   .]i.\.(..S.
0070 - 63 4d 3e 55 27 4d 38 86-5c 78 a8 e2   cMU'M8.\x..
SSL_connect:SSLv2/v3 write client hello A
read from 08156A30 [0815D3F8] (7 bytes = 7 (0x7))
 - 15 03 01 00 02 02 28  ..(
SSL3 alert read:fatal:handshake failure
SSL_connect:error in SSLv2/v3 read server hello A
1754:error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake 
failure:s23_clnt.c:453:



 Could you retry with openssl s_client in full debug mode ?

 -
 Henri Gomez ___[_]
 EMAIL : [EMAIL PROTECTED](. .)
 PGP KEY : 697ECEDD...oOOo..(_)..oOOo...
 PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6



 -Original Message-
 From: Jean-Etienne G. [mailto:[EMAIL PROTECTED]]
 Sent: Friday, June 15, 2001 12:21 PM
 To: [EMAIL PROTECTED]
 Subject: RE: SSL handshake failure URGENT
 
 
 So, every seems to be well configured, but I always get this
 handshake error, what could be the problem in that case ?
 
 # openssl s_client -connect 127.0.0.1:8443 -cert cl_cert.pem
 -key cl_key.pem -state
 Enter PEM pass phrase:
 CONNECTED(0003)
 SSL_connect:before/connect initialization
 SSL_connect:SSLv2/v3 write client hello A
 SSL3 alert read:fatal:handshake failure
 SSL_connect:error in SSLv2/v3 read server hello A
 
 
  ok now it's done, but same error
  HandShake Failure
  
  I made the new server request, the new server certification,
  the new server x509 conversion, and the new server into tomcat
  keystore importation
  
  (I send you the new server certificate)
  
  must we also replace to CN of the client ? (I didn't do it)
  maybe the CN of the CA ?
  
  CN of you client could be what you want
 
  
   The problem is in the CN of the server cert :
  
   replace CN=server by CN=thehostname !!!
  
   Certificate:
   Data:
   Version: 3 (0x2)
   Serial Number: 2 (0x2)
   Signature Algorithm: md5WithRSAEncryption
   Issuer: C=FR, ST=France, L=Genvilliers, O=THE_ORG,
  OU=UNIT, CN=ca
   Validity
   Not Before: Jun 14 08:47:55 2001 GMT
   Not After : Jun 14 08:47:55 2002 GMT
   Subject: C=FR, ST=France, O=THE_ORG, OU=UNIT, CN=server
   Subject Public Key Info:
   Public Key Algorithm: rsaEncryption
   RSA Public Key: (1024 bit)
   Modulus (1024 bit):
   00:f2:bc:0c:53:78:d3:08:85:b3:e1:70:7c:a8:d1:
   f1:64:49:37:e0:83:48:ac:5c:18:51:93:fd:31:49:
   12:24:3a:57:13:e0:3a:97:25:ee:29:f5:16:f2:da:
   a7:fc:84:89:f6:50:53:2c:09:2a:a9:f5:91:b8:33:
   a5:ec:2f:16:07:b8:bf:60:01:06:aa:cc:be:fd:a9:
   85:04:22:25:2b:16:4d:49:b4:11:bc:0a:68:1c:95:
   6c:a6:ad:8c:f4:ef:30:11:41:6e:cf:3b:ca:a6:6a:
   e9:1b:bf:41:28:b0:5e:c8:03:8c:cb:22:ce:80:38:
   3b:c3:9f:ac:e3:5e:77:cb:7b
   Exponent: 65537 (0x10001)
   X509v3 extensions:
   X509v3 Basic Constraints:
   CA:FALSE
   Netscape Comment:
   OpenSSL Generated Certificate
   X509v3 Subject Key Identifier:
  
  44:3C:48:E2:82:B6:77:02:B1:90:84:D3:B0:CD:0C:18:6E:81:9F:7E
   X509v3 Authority Key Identifier:
  
   keyid:85:64:41:58:57:5F:91:5E:E1:A7:85:6B:CB:B7:F4:03:C4:F9:A8:31
  
   DirName:/C=FR/ST=France/L=Genvilliers/O=THE_ORG/OU=UNIT/CN=ca
   serial:00
  
   Signature Algorithm: md5WithRSAEncryption
   05:0a:10:ec:dd:04:9e:8d:bb:98:2d:82:8f:c5:a0:f7:6b:06:
   97:52:c0:a2:c0:f2:25:8c:81:41:a5:80:f2:1e:72:da:a5:d2:
   28:df:44:77:0f:6b:df:9a:1e:06:c7:83:6a:7d:40:89:96:1f:
   be:f5:2b:b2:fc:4c:91:a9:0c:89:e8:00:37:d5:a1:ab:a8:82:
   7b:92:d9:ba:e9:1b:57:3d:32:62:96:ba:29:1d:3f:9b:83:64:
   b8:92:37:74:16:4d:3f:be:bf:cf:25:70:03:05:06:de:d2:52:
   94:ff:6a:fc:0c:32:ef:aa:ab:63:6d:e1:77:56:fc:3f:32:c6:
   20:a8
  
  
  
   -
   Henri Gomez ___[_]
   EMAIL : [EMAIL

RE: FW: newbie: Starting Tomcat

2001-06-15 Thread Jean-Etienne G.


Here is my jnet.jar (I use it under a Linux Plateform)
Either it seems that it is not the solution of your problem, you can try including it 
in last hope ;)

[I was thinking of this file, cause I had also a problem speaking of javax and 
ressource not found, and this pb disapear when I copied this file into the 
JAVA_HOME/lib directory, even if I didn't know why]

 Jean-Etienne:  I have tried the suggestion of including jnet.jar in my
 classpath, however, it appears that I don't even have that file in my
 Tomcat or Java directories.
__
Voila vous propose une boite aux lettres gratuite sur Voila Mail:
http://mail.voila.fr


 jnet.jar


SSL handshake failure URGENT

2001-06-14 Thread Jean-Etienne G.

Hello,

 I get no responses for my previous mails... so maybe I did not contact the good 
mailing list. Please give me an start of response...

 Hello,
 I have a cert importation problem

 here is the output of an openSSL client command [witch emulate a browser] (openssl 
s_client -connect 127.0.0.1:8443 -cert cl_cert.pem -key
 cl_key.pem -state) :

 Enter PEM pass phrase:
 CONNECTED(0003)
 SSL_connect:before/connect initialization
 SSL_connect:SSLv2/v3 write client hello A
 SSL3 alert read:fatal:handshake failure
 SSL_connect:error in SSLv2/v3 read server hello A
 1993:error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake 
failure:s23_clnt.c:453:

 Can someone help me ?
 Is it a way to make it work without installing apache ?
 Thanks for your answer




 I have this tomcat configuration :


 Connector className=3Dorg.apache.tomcat.service.PoolTcpConnector
 Parameter name=3Dhandler
 value=3Dorg.apache.tomcat.service.http.HttpConnectionHandler/
 Parameter name=3Dport
 value=3D8443/
 Parameter name=3DsocketFactory
 value=3Dorg.apache.tomcat.net.SSLSocketFactory /
 Parameter name=3Dkeystore
 value=3D/opt/tomcat-3-2-2/tomcat/conf/keystore /
 Parameter name=3Dkeypass
 value=3Dpwd_sr /
 Parameter name=3DclientAuth
 value=3Dtrue /
 /Connector


 And that are all the lines procedure I entered to make it well work

 mkdir ./demoCA
 echo   ./demoCA/index.txt
 echo 01  ./demoCA/serial

 # CA
 openssl req -new -out ca_req.pem -keyout ca_key.pem
 #pwd:pwd_ca
 #challenge_pwd:ch_ca
 #company name:THE_ORG

 # CLIENT
 openssl req -new -out cl_req.pem -keyout cl_key.pem
 #pwd:pwd_cl
 #ch_pwd:ch_cl
 #company name:THE_ORG
 # SERVER
 openssl req -new -out sr_req.pem -keyout sr_key.pem
 #pwd:pwd_sr
 #ch_pwd:ch_sr
 #company name:THE_ORG
 # CA AUTH
 echo CA AUTH : enter CA password
 openssl req -x509 -in ca_req.pem -key ca_key.pem -out ca_cert.pem
 #pwd:pwd_ca
 rm ./demoCA/index.txt
 rm ./demoCA/serial
 cat   ./demoCA/index.txt
 cat 01  ./demoCA/serial

 # CLIENT AUTH BY CA
 echo CL AUTH : enter CA password
 openssl ca -cert ca_cert.pem -in cl_req.pem -out cl_cert.pem -keyfile ca_key.pem 
-config /usr/local/ssl/openssl.cnf
 #pwd:pwd_ca

 # SERVER AUTH BY CA
 echo SR AUTH : enter CA password
 openssl ca -cert ca_cert.pem -in sr_req.pem -out sr_cert.pem -keyfile ca_key.pem 
-config /usr/local/ssl/openssl.cnf
 #pwd:pwd_ca

 # CONVERT SERVER AUTH FROM PEM FORMAT TO DER FORMAT
 openssl x509 -inform PEM -in sr_cert.pem -outform DER -out sr_cert.der

 # REMOVE PREVIOUS KEYSTORE
 rm /opt/tomcat-3-2-2/tomcat/conf/keystore

 # IMPORT SERVER CERT IN TOMCAT KEYSTORE
 echo IMPORT SR CERT : enter SR password
 /usr/java/jdk1.3/bin/keytool -import -v -trustcacerts -alias tomcat -file sr_cert.der 
-keystore /opt/tomcat-3-2-2/tomcat/conf/keystore
 #pwd:pwd_sr

 # CONVERTING CLIENT CERT INTO NETSCAPE PKCS12 FORMAT
 echo CL CERT CONVERSION : PEM - P12 : enter CL passwd
 openssl pkcs12 -in cl_cert.pem -inkey cl_key.pem -export -out cl_cert.p12
 #pwd:pwd_cl
 #exp_pwd:pwd_cl

 # CONNECTION TO THE TOMCAT SERVER
 openssl s_client -connect 127.0.0.1:8443 -cert cl_cert.pem -key cl_key.pem -state
__
Voila vous propose une boite aux lettres gratuite sur Voila Mail:
http://mail.voila.fr






RE: tomcat installation on Windows 2000

2001-04-06 Thread Etienne Baert \(SPS Europe\)




http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/tomcat-iis-howto.html
Then 
follow the instructions as for tomcat-IIS4-NT4
Etienne

  -Original Message-From: Hossein Horrian 
  [mailto:[EMAIL PROTECTED]]Sent: vendredi 6 avril 2001 
  18:00To: [EMAIL PROTECTED]Subject: tomcat 
  installation on Windows 2000
  
  Is there any 
  documentation for installing tomcat on Windows 
  2000?
  I would appreciate 
  your help.
  
  Thank 
  you,
  
  Hossein 
  Horrian
  Email 
  [EMAIL PROTECTED] 



RE: File Upload

2001-03-27 Thread Etienne Baert \(SPS Europe\)
at http://www.servlets.com/resources/com.oreilly.servlet/index.html

Etienne

-Original Message-
From: Valeriy Molyakov [mailto:[EMAIL PROTECTED]]
Sent: mercredi 28 mars 2001 9:53
To: [EMAIL PROTECTED]
Subject: Re: File Upload


Hi!
Where I can found class MultipartRequest ?

- Original Message - 
From: "NSB)Hiroshi Kasamatsu" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, March 28, 2001 10:12 AM
Subject: Re: File Upload


 Hi,Fabien
 
 MultipartRequest works very fine.
 You may use file stream wrongly.
 
 My coding is as follows. I make it in any file because of byte
 input-output.
 
 MultipartRequest multi=new MultipartRequest(req,".");
 
   Enumeration params=multi.getParameterNames();
   Enumeration files=multi.getFileNames();
 
 
   File f=null;
 
String f_name=null;
while(files.hasMoreElements()){
f_name=(String)files.nextElement();
 f_name=f_name.trim();
 
 st_type=multi.getContentType(f_name);
 f=multi.getFile(f_name);
}
 
 if(f!=null){
FileInputStream fis=new FileInputStream(f);
 
FileOutputStream fos=new FileOutputStream(fname);
int b;
while((b=fis.read())!=-1){
 fos.write((byte)b);
 }
fis.close();fos.close();
 }
 
 
 
 
 
 
 
 
 
 Fabien Modoux wrote:
 
  Hello,
 
  I am using Tomcat with Apache on Linux. I am using the OReilly
  package to upload files through a servlet, but it only works
  for text files. I found several messages in the archive about
  that, but haven't been able to find a good solution. Does
  anyone know how to go around or fix this problem.
 
  Thanks,
 
  -Fabien


RE: ok .. where is the latest tomcat + IIS 5.0 howto ?

2001-03-07 Thread Etienne Baert



Latest 
info is available on the mailing list ...
to 
install tomcat on win2000 - IIS5 you simply have to
follow 
the process for NT4-IIS4in the iis_tomcat howto.

The 
doc is at :

http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/tomcat-iis-howto.html

http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/index.html

Etienne

  -Original Message-From: Aaron Cody 
  [mailto:[EMAIL PROTECTED]]Sent: jeudi 8 mars 2001 6:29To: 
  [EMAIL PROTECTED]Subject: ok .. where is the latest 
  tomcat + IIS 5.0 howto ?
  hello
  I would like to know where the latest HOWTO doc 
  is that describes what to download, where to put it and how to configure it 
  for Tomcat and IIS on Win2000
  I started looking at the IIS + Tomcat howto and 
  it referred to certain properties files that have recently been removed... so 
  I'm thinking i'm barking up the wrong tree with that doc
  
  where's the latest info?
  
  thanks
  Aaron
  


RE: Installing Tomcat and ISAPI_Redirect.dll on Win2K

2001-02-22 Thread Etienne Baert

Hi Rob,

Yes, several (many) tomcat users already successfully integrated
tomcat on Win2K-IIS5.
Common problems when isapi filter doesn't work as expected comes
from mispelling errors in the value for the registry entries.
So, double-checked all that part of the installation.

Another source of troubles can come from the use of blanks
in directories under which tomcat has been installed (tomcat
is a Java product and java doesn't really like this).

Regarding your last question, the installation procedure
described for NT4-IIS4 is the one you have to follow also
for W2K-IIS5.

Hope this helps,
Etienne

-Original Message-
From: Rob Mulder [mailto:[EMAIL PROTECTED]]
Sent: jeudi 22 fvrier 2001 11:39
To: [EMAIL PROTECTED]
Subject: Installing Tomcat and ISAPI_Redirect.dll on Win2K


Has anybody done this before. I have Tomcat Working now Win2K SP1 with IIS
5.0. However, the Isapi_Redirect.dll does not work. Do I have to rebuild the
Isapi.Redirect? Is there anything on a configuration level that is different
from NT4.0?

Regards Rob

-
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: Where is the installation documentation???

2001-02-22 Thread Etienne Baert \(SPS Europe\)

Available at :
http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/tomcat-iis-howto.htm
l
Please note that this document refers to WinNT4, Win98, IIS4 and PWS4.
To install on the Win2000-IIS5 combination, follow the steps for
WinNT4-IIS4 and it will work fine.
A list of additional documentations can be found at :
http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/index.html

Etienne

-Original Message-
From: Wally Highsmith [mailto:[EMAIL PROTECTED]]
Sent: jeudi 22 fvrier 2001 2:52
To: [EMAIL PROTECTED]
Subject: Where is the installation documentation???


All the how-to's I've found do not match what is listed in the win32/i386
directory.


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




RE: Starting tomcat as an NT Service

2001-02-22 Thread Etienne Baert \(SPS Europe\)

Which JDK version are you using ?

-Original Message-
From: Scott Eversole [mailto:[EMAIL PROTECTED]]
Sent: jeudi 22 fvrier 2001 17:14
To: '[EMAIL PROTECTED]'
Subject: Starting tomcat as an NT Service


Hi,

I'm running tomcat on NT 4 workstation.  I installed it as a service using
jk_nt_service.exe.  It installed perfectly without a hitch.  However, when I
modified the service to start automatically it doesn't want to cooperate.
Whenever I log off the service dies and when I log in again I have to
restart it manually even though "automatic" is selected.  Have you ever seen
this problem before? Any thoughts on how I might overcome this problem?

Thanks much,

Scott Eversole

-
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: IIS5 - Missing something very simple

2001-02-22 Thread Etienne Baert \(SPS Europe\)
Title: IIS5 - Missing something very simple



Hi 
Bryan,

when 
specifying the 8080 port, you access your pages directly via
tomcat, you thus bypass IIS in that case.
You 
maybe configured tomcat with security rules (see 
tomcat.properties
and 
tomcat-users.xml)

If you 
would like to access tomcat through IIS, you need to use
URL 
without specifying the tomcat port (http://localhost/ for example).

Hope 
this helps,
Etienne

  -Original Message-From: Bryan Lipscy 
  [mailto:[EMAIL PROTECTED]]Sent: jeudi 22 février 2001 
  17:35To: '[EMAIL PROTECTED]'Subject: IIS5 - 
  Missing something very simple
  Good morning to all, 
  Quick config rundown: [Root partition]  
  Windows 2000 Server (no sp1) 
   IIS5 
  (Ports 80, 81, 8080) [Seperate 
  partition]  Apache 1.3.14 r2 (Port 90) 
   JDK 
  1.3  J2EE 1.3  Tomcat 3.2.1 
  I know that I am missing something very 
  simple. When I call up http://localhost:8080 I am getting 403'd (You 
  are not authorized to view this page).
  Checked  re-checked my registry 
  settings. Checked the config 
  files. Sharing and/or web sharing is 
  not enabled. IIS5 is set up with a 
  jakarta web root pointed to the folder with the isapi_redirect.dll. 
  The isapi_redirect.dll is installed in the ISAPI 
  filters and has a green arrow. 
  Anyone have any idea what it is that I am 
  missing? 
  Bryan 


RE: Tomcat deployment

2001-02-22 Thread Etienne Baert \(SPS Europe\)

Yes you can,
if you are interested on having two (or more) tomcat instances running
on a Win2K machine, I can help you further (but on tomorrow as it 
becomes late here). I haven't experienced it on other OS.

Etienne

-Original Message-
From: Amir Nuri [mailto:[EMAIL PROTECTED]]
Sent: jeudi 22 f?vrier 2001 18:19
To: Tomcat-User
Subject: Tomcat deployment


Hi
Can I run two tomcat servers on the some machine ??




-
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 Etienne Baert

Well, the answer to your problem has been given a lot
of time, so searching a little bit in the archive
you would have find it.

The problem is simply the amount of memory allocated
to a command window in win98, it should be set up to 4096.

-Original Message-
From: Zakaria . [mailto:[EMAIL PROTECTED]]
Sent: vendredi 23 fvrier 2001 2:35
To: [EMAIL PROTECTED]
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]




RE: Installing Tomcat to run as an IIS-ISAPI filter on Win2000.

2001-02-21 Thread Etienne Baert

Hi Tomer,

you can download tomcat from :
http://jakarta.apache.org/builds/tomcat/release/v3.2.1/bin/tomcat-3.2.1.zip

In order to integrate tomcat with IIS, you will need the following
isapi filter :
http://jakarta.apache.org/builds/tomcat/release/v3.2.1/bin/win32/i386/isapi_
redirect.zip
and to install it, you simply have to follow carefully the steps
described in the tomcat-iis howto :
http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/tomcat-iis-howto.htm
l
Please note that this document refers to WinNT4, Win98, IIS4 and PWS4.
To install on the Win2000-IIS5 combination, follow the steps for
WinNT4-IIS4 and it will work fine.

A list of additional documentations can be found at :
http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/index.html


Etienne

-Original Message-
From: Tomer Cohen [mailto:[EMAIL PROTECTED]]
Sent: mercredi 21 fvrier 2001 11:00
To: '[EMAIL PROTECTED]'
Subject: Installing Tomcat to run as an IIS-ISAPI filter on Win2000.


Hi,

I'm Tomer Cohen, from Exent Technologies Ltd.

We are currently looking for a Servlets/JSPs engine to run as an ISAPI
filter/redirector on Win2k IIS's web server.
I'd highly appreciate if you could send me the URL where information is
available for installing and running Tomcat on this configuration/platform.
Moreover, any further tips regarding this usage would be very welcome.


Thank you in advance,

Tomer Cohen.

__

Tomer Cohen
RD, Exent Technologies Ltd.
E-Mail: [EMAIL PROTECTED]
Phone no.: 03-9243935 ext.153
Mobile: 058-316566
__


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


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




FW: Installing Tomcat to run as an IIS-ISAPI filter on Win2000.

2001-02-21 Thread Etienne Baert

Maurine,

sorry to answer you so late ... I hope you were able
to find your needed information.
If not, please refer to the links mentioned below.

Etienne

-Original Message-
From: Etienne Baert [mailto:[EMAIL PROTECTED]]
Sent: mercredi 21 fvrier 2001 11:26
To: [EMAIL PROTECTED]
Subject: RE: Installing Tomcat to run as an IIS-ISAPI filter on Win2000.


Hi Tomer,

you can download tomcat from :
http://jakarta.apache.org/builds/tomcat/release/v3.2.1/bin/tomcat-3.2.1.zip

In order to integrate tomcat with IIS, you will need the following
isapi filter :
http://jakarta.apache.org/builds/tomcat/release/v3.2.1/bin/win32/i386/isapi_
redirect.zip
and to install it, you simply have to follow carefully the steps
described in the tomcat-iis howto :
http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/tomcat-iis-howto.htm
l
Please note that this document refers to WinNT4, Win98, IIS4 and PWS4.
To install on the Win2000-IIS5 combination, follow the steps for
WinNT4-IIS4 and it will work fine.

A list of additional documentations can be found at :
http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/index.html


Etienne

-Original Message-
From: Tomer Cohen [mailto:[EMAIL PROTECTED]]
Sent: mercredi 21 fvrier 2001 11:00
To: '[EMAIL PROTECTED]'
Subject: Installing Tomcat to run as an IIS-ISAPI filter on Win2000.


Hi,

I'm Tomer Cohen, from Exent Technologies Ltd.

We are currently looking for a Servlets/JSPs engine to run as an ISAPI
filter/redirector on Win2k IIS's web server.
I'd highly appreciate if you could send me the URL where information is
available for installing and running Tomcat on this configuration/platform.
Moreover, any further tips regarding this usage would be very welcome.


Thank you in advance,

Tomer Cohen.

__

Tomer Cohen
RD, Exent Technologies Ltd.
E-Mail: [EMAIL PROTECTED]
Phone no.: 03-9243935 ext.153
Mobile: 058-316566
__


-
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: JDBC Connection Pooling

2001-02-19 Thread Etienne Baert

Please, have a look on Turbine at http://java.apache.org
there were a lot of discussions in the related groups
about JDBC connection pooling.

Etienne

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: lundi 19 fevrier 2001 16:49
To: [EMAIL PROTECTED]
Cc: '[EMAIL PROTECTED]'
Subject: Re: JDBC Connection Pooling



JDBC connection pooling !

Tomcat do not provide resource pooling ? I think ?

I know that some JDBC driver support pooling in native !!! Or you can use
your own pooling mechanism, use minerva, poolman, jpool 

Christophe




"Nazzaro,
Mark (Mark)" To:
"'[EMAIL PROTECTED]'"
mnazzaro@luc[EMAIL PROTECTED]
ent.com cc:
 Subject: JDBC Connection
Pooling
02/19/01
04:34 PM
Please
respond to
tomcat-user





Does anyone know if Tomcat supports JDBC connection Pooling similar to
WebSphere?
Any information would be appreciated.

Thank you,

Mark Nazzaro
eAssociate
Lucent Technologies
(908) 559-6105
[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]


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




RE: tomcat on win2k

2001-02-07 Thread Etienne Baert \(SPS Office\)

Hi Salvatore,

this happens when you click inside the command window in which the tomcat
process is active. Microsoft sets the default behaviour in w2k for such
actions
to hanging the running application. Pressing on ENTER key simply releases
this hanging.

If you need to select the tomcat process window, don't click inside the
window but on its title bar or via its icon in the taskbar to avoid this
strange behaviour to happen.

Etienne

-Original Message-
From: Salvatore Borrelli [mailto:[EMAIL PROTECTED]]
Sent: mercredi 7 fvrier 2001 15:20
To: [EMAIL PROTECTED]
Subject: Re: tomcat on win2k


Hi everyone,
I have installed the Tomcat Release version 3.2 on a Windows 2000
server, and integrated it with IIS 5.0 (as a standalone process) with almost
no problems.

I say "almost" because, though the system seems to work correctly, sometime
it hangs (i.e. it doesn't serve my JSP pages anymore), and it restart to
work properly only when i set the focus to the Tomcat window and press the
ENTER key.

Someone has an idea about the cause of this strange behavior?

Thank a lot for your suggestions,
Sal


- Original Message -
From: "CPC Livelink Admin" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, February 07, 2001 1:35 AM
Subject: RE: tomcat on win2k



 IE is pretty stupid that way.  It does it to me and I am online all the
 time. The trick is to put the http:// in there explicitly, then it won't
 convert to local:8080

 -Original Message-
 From: Peter Alfors [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 06, 2001 5:10 PM
 To: [EMAIL PROTECTED]
 Subject: Re: tomcat on win2k


 I have the Tomcat 4.0 Dev nightly build (? - i'd have to check which one)
 running on Windows 2000.
 I didn't come across any errors.

 The only thing I couldn't do was actually view the examples web app using
IE
 (i
 believe 5.5).
 IE does not want to let me connect to 'localhost:8080' offline.  It
changes
 the
 address to 'local:8080'.
 Running the examples in Netscape 4.01 worked fine though.

 Pete

 Lakshmi Bhetanabhotla wrote:

  Hi ,
  I wanted to know if this servlet engine..( TOMCAT) is supported on
Win2K.
 I
  have installed it on Win2k,
  set up all the paths and classpaths, but when I startup the server, the
  process aborts giving a runtime
  exception. Has anyone had a similar problem regarding installation of
 tomcat
  on win2k. I greatly appreciate
  any feedback or help on this.
  Thank You,
  Lakshmi.
  _
  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]





-
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: Logging errors on Tomcat Startup

2001-02-05 Thread Etienne Baert \(SPS Office\)

Or you simply add the "pause" command at the end of the .bat file ...

-Original Message-
From: Gallicus [mailto:[EMAIL PROTECTED]]
Sent: lundi 5 fvrier 2001 13:25
To: [EMAIL PROTECTED]
Subject: Re: Logging errors on Tomcat Startup



 Hi,I have problem during the start of TomCat servertomcat start After few
seccond, TomCut write some errors on the screen and then that window
desappear. I can not see what is the problem. My question is: Can I see log
of those errors??? Thanks!!!

If you are using NT or 2000 Windows Os try starting Tomcat, instead of by
doubleclikking the start bat file, calling the bat file from a OS command
windows. In this way the window doasn,'t desappear immediatly and you have
time to read your errors

-
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: Redirecting and Broken Streams with Tomcat under IIS

2001-02-01 Thread Etienne Baert \(SPS Office\)

Hi Daniel,

we also had the problem with response.sendRedirect().
In fact, the sendRedirect() was sent when already html
tags were sent to the browser. We avoided that problem
by using a workaround : the sendRedirect is now pointing
to a javascript function = location.replace() that will
reset all header information and send the URL as a complete
new page.

Etienne

-Original Message-
From: Daniel Noelpp [mailto:[EMAIL PROTECTED]]
Sent: jeudi 1 fevrier 2001 7:37
To: [EMAIL PROTECTED]
Subject: Redirecting and Broken Streams with Tomcat under IIS


Hello Web Developers!

I found out that redirects (response.sendRedirect()) don't
always work with Tomcat started from IIS. Sometimes contents
of the two JSP pages get mixed up, sometimes IIS just hangs.
The hang happens when we are using file upload (using
jspSmartUpload) and redirecting. Sometimes adding return;
after a redirect() helps as a work-around.

In an other part of the web application there is some broken
stream detection to cancel some operations when the web app
user prematurely disconnects (catching an IOException
flushing the response buffer: response.flushBuffer() and
cancelling the rest of the operation when an exception
occurs). This detection doesn't work anymore running under
IIS.

Does someone of you know of such issues with IIS?

We are using IIS 5 on Windows NT 4 and the ISAPI redirector
from Jakarta. The Tomcat worker uses ajp12 (out of process).

Daniel Noelpp


-
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: NT 4.0 + IIS + Multiple tomcat instances

2001-01-22 Thread Etienne Baert \(SPS Office\)

Hi Mark,

we already setted up a system running two instances of tomcat on the same
machine (under nt4). The way we followed to achieve it was to download the
sources of the isapi_redirect filter, change the lines referring to
registration keys and recompile everything. Using the binaries coming
from jakarta web site and the one we re-recompiled, we were able to
set up two tomcat instances.

Hope this helps,
Etienne

-Original Message-
From: Mark Parish [mailto:[EMAIL PROTECTED]]
Sent: lundi 22 janvier 2001 13:47
To: [EMAIL PROTECTED]
Subject: NT 4.0 + IIS + Multiple tomcat instances


Hello,

Am trying to setup multiple tomcat instances under nt, when adding the
registry entries for the isapi redirector what should I set regarding the
second instance of tomcat, tried using "2.0" as the final key and then setup
the strings under this in regedit but the service refused to start.

Are there any instructions any place for this ?  or can some please help...

I have created c:\jakarta-tomcat1\and c:\jakarta-tomcat2\.
etc

and then i have virtual webs with each trying to use a different tomcat
instance 1 or 2.

1 works fine but I must be getting the registry wrong on 2 because the
service will no start?

Any help much appreciated.



Mark Parish
Proprietor
Pipeline Computers
Programming and Web Design

Email : [EMAIL PROTECTED]
Phone : (03) 6244 6435
Address :   8 Ninda Street, Rosny TAS 7018
Web :   http://www.pipelinecomputers.com.au



-
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: Two instances of tomcat

2001-01-22 Thread Etienne Baert \(SPS Office\)

Hi Mark,

Indeed, we modified more than one line in the code, here they are :

#define VERSION_STRING "Jakarta/ISAPI/1.0"
replaced by : #define VERSION_STRING "Jakarta/ISAPI/1.0_bis"

#define REGISTRY_LOCATION   ("Software\\Apache Software
Foundation\\Jakarta Isapi Redirector\\1.0")
replaced by : #define REGISTRY_LOCATION   ("Software\\Apache Software
Foundation\\Jakarta Isapi Redirector\\1.0_bis")

static char extension_uri[INTERNET_MAX_URL_LENGTH] =
"/jakarta/isapi_redirect.dll";
replaced by : static char extension_uri[INTERNET_MAX_URL_LENGTH] =
"/jakarta_bis/isapi_redirect_bis.dll";

You then need to recompile the sources and go to the windows registry
to add entries for the recompiled version. Please notice that you will
need to use 1.0_bis as version number (as used in the above example).
In IIS, you will also need to create an additional virtual directory
called jakarta_bis and you will need to make active as filter the
file isapi_redirect_bis.dll (the jakarta_bis virtual directory must
point to the physical folder that contains the isapi_redirect_bis.dll
file).

Compare to the iis_redirect.regauto file generated by tomcat (this file is
automatically
generated by tomcat 3.2.1, it allow you to automate the windows registration
of the default
instance of the isapi filter), your registry entries should look like this :

[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi
Redirector\1.0_bis]
"extension_uri"="/jakarta_bis/isapi_redirect_bis.dll"
"log_file"="C:\\jakarta-tomcat2\\logs\\iis_redirect_bis.log"
"log_level"="debug"
"worker_file"="C:\\jakarta-tomcat2\\conf\\workers.properties"
"worker_mount_file"="C:\\jakarta-tomcat2\\conf\\uriworkermap.properties"

Don't hesitate to contact me if you need further information,
Etienne

-Original Message-
From: Mark Parish [mailto:[EMAIL PROTECTED]]
Sent: mardi 23 janvier 2001 6:41
To: [EMAIL PROTECTED]
Subject: Two instances of tomcat


Hi Etienne,

Thanks for your excellent help, however am still having problem which I
think is close to being solved.

You might be able to sort it out.

Have managed to compile the source for the isapi redirect and only
discovered one place to change the registry key from 1.0 to 2.0, and noticed
that you said there were (multiple ???) lines referring to reg keys, have I
missed one ?

Also when I start the second tomcat service , a file iis_redirect.regauto is
created as per attached file.
it looks incorrect because it is still saying 1.0 for reg key, yet the other
values are correct,  I am certian I am compiling the source ok but must have
missed a reg entry in the source somewhere...

What do your iis_redirect.regauto  files look like for each instance of
tomcat ?  Do they specify different reg values because mine do not and I
think they should.

Also do you know what this file is used for ?

Thanks again for your help ...

Many cheers
Mark





Mark Parish
Network Manager
Elizabeth College

Email   : [EMAIL PROTECTED]
Land Mail   : 256 Elizabeth Street, Hobart Tasmania 7000
Phone   : (03) 6235 6519
Fax : (03) 6231 2242
Web : http://www.eliz.tased.edu.au




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




RE: Thanks!

2001-01-21 Thread Etienne Baert

Can the respondible of the message make the necessary
in order to get removed from that stupid mailing list ?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: vendredi 19 janvier 2001 10:25
To: [EMAIL PROTECTED]
Subject: Thanks!


Save 20% to 50% on your phone bill each month and
we will donate 5% of your long distance phone bill to
the charity of your choice!

No monthly service charges - save $3 to $9 per month!
No Installation fees!
Billed in 6 second increments - not 1 minute increments!
Only 6.9 cents per minute interstate 24 hours a day!
Low intrastate rates as well!
Rates are the same 24 hours a day 7 days a week!
Toll free 800# service with no additional charges with
no monthly fees and billed at 6.9 cents per minute!

Help your favorite charity while you save money on your phone bill!
We will donate 5% of your long distance phone bill to the
charity of your choice!

To get an application by fax call
(617) 747-1933

You can call from a fax machine to get the application immediately
or call from a regular phone line and punch in your fax number and
an application will be sent to you within minutes.

Give 5% to your long distance bill to your favorite charity.

Call now to get your application and start saving money
and help your favorite charity.

Call 24 hours a day 7 days a week!


 ** REMOVE ** REMOVE ** REMOVE ** REMOVE ** REMOVE **

To be removed from our mailing list, please email [EMAIL PROTECTED]
 All REMOVE requests AUTOMATICALLY honored upon receipt. PLEASE understand
that any effort to disrupt, close or block this REMOVE account can only
result in difficulties for others wanting to be removed from our mailing
list as it will be impossible to take anyone off the list if the remove
instruction can not be received.




-
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: installing servlet

2001-01-21 Thread Etienne Baert

Hi,

there is an issue regarding the use of tomcat as
service on NT when running it with JDK1.3.

Use tomcat as stand-alone by starting it using the
command line, then try to access your servlet through
the port 8080. If it works, then your settings were
OK and the problem is well the NT service not working
correctly with JDK1.3 == use older jdk or browse
the tomcat archives to find other solutions.

Hope this helps.

-Original Message-
From: wtf [mailto:[EMAIL PROTECTED]]
Sent: lundi 22 janvier 2001 2:14
To: [EMAIL PROTECTED]
Subject: "installing" servlet


I'm new to Tomcat; I've recently downloaded and installed (from binaries)
Tomcat 3.2 for Windows onto a WinNT 4.0 SP6a machine.  I'm using IIS 4.0,
JDK1.3 (Sun's), servlet API 2.1.1 (Sun's), isapi_redirect.dll, and I'm
running Tomcat as an NT service (jk_nt_service.exe).

I've read (and re-read and re-read) all the on-line docs that come with the
Jakarta-Tomcat ZIP.  I've also poured over bunches of docs and samples
found on the Web, as well as consulting the O'Reilly's "Java Examples in a
Nutshell" book.

No matter what I do, I CANNOT get a servlet to run within my own
context.  I have NO problem running the demos (examples), and I *CAN* get
my servlet to run, but ONLY if I drop it into the examples\WEB-INF\classes
directory.  (Therefore, I know my Tomcat installation is fine, and I know
that my servlet works.)

I've added the following to conf\server.xml between two other Context ...
items:

Context path="/util"
 docBase="webapps/util"
 crossContext="false"
 debug="0"
 reloadable="true" 
/Context

I've created webapps\util and ...\util\WEB-INF and ...\util\WEB-INF\classes.
I copied conf\web.xml to my WEB-INF directory and tweaked it down to this:

?xml version="1.0" encoding="ISO-8859-1"?
!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"
web-app
servlet
servlet-nameSimpleServlet/servlet-name
servlet-classSimpleServlet/servlet-class
/servlet
session-config
session-timeout30/session-timeout
/session-config
/web-app

Needless to say, the servlet's name is SimpleServlet, and it belongs to no
package.
I might add at this point that when I dropped my servlet's class into the
examples directory - the only place I can get it to run - I did NOT need to
alter the web.xml file in that location.

The best and most clear instructions I have found for how to "install" a
servlet appear in the FAQ list of the docs included with the Tomcat
installation.  Yet, even after following those procedures step-by-step, I
still cannot get my servlet to run within a context I created.

HELP

- Liam


-
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: IIS 5.0, Windows 2000 Server, Tomcat 32

2001-01-21 Thread Etienne Baert

Hi Greg,

we are running tomcat 3.2.1 (and ran tomcat 3.1) on 2
dual-CPU machines without any problems. We simply
followed the howto documentation for installing them.

Etienne

-Original Message-
From: Niemiec, Greg [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 21, 2001 12:59 PM
To: '[EMAIL PROTECTED]'
Subject: IIS 5.0, Windows 2000 Server, Tomcat 32


I am looking at installing Tomcat on a multiple CPU IIS 5.0 system and was
wondering has anyone did it yet?  I have read the tomcat-iis-howto but the
thread stops 30 November..

Thanks in advance..

Greg..

Greg Niemiec
Per-Se Technologies
Software Development Environment Engineer
[EMAIL PROTECTED]
909/888-3282



-
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: Tomcat - IIS

2001-01-21 Thread Etienne Baert

In your Admnistrative Tools menu, you should have
a link to Internet Service Management, open it.
Expand branches to locate your Default Web Site,
right-click on it and select properties.
In the window you opened, locate the ISAPI filter tab.

-Original Message-
From: Kenny Lee [mailto:[EMAIL PROTECTED]]
Sent: lundi 22 janvier 2001 2:12
To: [EMAIL PROTECTED]
Subject: Tomcat - IIS


Hi,
   May i know how to do this step:

   8.Using the IIS management console, add
isapi_redirect.dll as a filter in your IIS/PWS web
site...

   I am using IIS4.0 on a NT Environment.

Rgds,
Kenny

__
Do You Yahoo!?
Yahoo! Mail – Free email you can access from anywhere!
http://mail.yahoo.com.sg/

-
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: Servlet Mappings and what am I doing wrong.

2000-12-13 Thread Etienne Baert \(SPS Office\)

Hi Andy,

I think your problem comes because you are
putting directory information into the
url-mapping value in web.xml :
you wrote : /myorg.com/*.msp
you should write : *.msp

Your path to your application (context) should 
appear into the server.xml under the conf folder :

Context path="/myorg.com" docBase="..." ...
/Context

Hope this helps,
Etienne

-Original Message-
From: Andrew Oliver [mailto:[EMAIL PROTECTED]]
Sent: mercredi 13 decembre 2000 15:42
To: [EMAIL PROTECTED]
Subject: Servlet Mappings and what am I doing wrong.


I have some legacy code that uses its own non-jsp tag
system.  

The following is my web.xml file put in 

webapps/myapp/WEB-INF dir

The attempt is to map files with the extension *.msp
to the RouterServlet.  Unfortunately this is not
happening, if I goto the directory and do an msp file
it lists it as text.  I then tried to do the same with
the entire directory (hence the second mapping).

What else do I need?  What am I doing wrong?  (This
used to use JServ ApJServAction but I'm attempting to
move to Tomcat3.2 and the new connector) and migrate
toward a standard system.  

Please note I've genericised all filenames/ips in
this.  If there is a site called myorg.com, I'm not
affilliated with it.  I was trying to be generic.

Thanks,

-Andy

?xml version="1.0" encoding="ISO-8859-1"?

!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web
Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2.2.dtd"

web-app
servlet
servlet-name
RouterServlet
/servlet-name
servlet-class
com.myorg.servlet.RouterServlet
/servlet-class
init-param
   
param-namehandlers_classpath/param-name
   
param-valuecom.myorg.servlet/param-value
/init-param
init-param
param-namehandlers/param-name
param-value
Article,Index,Default,Previous,Image,SendFriend,Poll/param-value
/init-param
init-param
param-namepools/param-name
param-valuepools/param-value
/init-param
init-param
param-namepool_url/param-name
   
param-valuejdbc:oracle:thin:@192.168.1.2:1521:MYDB/param-value
/init-param
init-param
param-namepool_max_conn/param-name
param-value20/param-value
/init-param
init-param
   
param-namepool_max_checkout/param-name
param-value10/param-value
/init-param
init-param
param-namerealfiledir/param-name
   
param-value/usr/local/apache/virtual/myorg.com/htdocs/param-value
/init-param
init-param
param-namethread/param-name
param-valuetrue/param-value
/init-param
init-param
   
param-namethread_interval/param-name
param-value300/param-value
/init-param
init-param
param-namedebug/param-name
param-valuefalse/param-value
/init-param
/servlet
servlet-mapping
servlet-name
RouterServlet
/servlet-name
url-pattern
/myorg.com/*
/url-pattern
/servlet-mapping
servlet-mapping
servlet-name
RouterServlet
/servlet-name
url-pattern
/myorg.com/*.msp
/url-pattern
/servlet-mapping

taglib
taglib-uri
  
http://java.apache.org/tomcat/examples-taglib
/taglib-uri
taglib-location
   /WEB-INF/jsp/example-taglib.tld
/taglib-location
taglib

security-constraint
  web-resource-collection
 web-resource-nameProtected
Area/web-resource-name
 !-- Define the context-relative URL(s) to be
protected --

url-pattern/jsp/security/protected/*/url-pattern
 !-- If you list http methods, only those
methods are protected --
 http-methodDELETE/http-method
 http-methodGET/http-method
 http-methodPOST/http-method
 http-methodPUT/http-method
  /web-resource-collection
  auth-constraint
 !-- Anyone with one of the listed roles may
access this area --
 role-nametomcat/role-name
 role-namerole1/role-name
  /auth-constraint
/security-constraint

!-- Default login configuration uses BASIC
authentication --
login-config
  auth-methodBASIC/auth-method
  realm-nameExample Basic Authentication
Area/realm-name
/login-config

!-- If you want to experiment with form-based
logins, comment
 out the login-config element above and
replace it with
 this one.  Note that we are currently using a
nonstandard
 authentica

RE: Problems getting generated images through the IIS connector.

2000-11-13 Thread Etienne Baert

Hi,

I do have have the same problem, I am interested in sharing any solution
you can find.

Etienne

-Original Message-
From: Michel Lehon [mailto:[EMAIL PROTECTED]]
Sent: mardi 14 novembre 2000 8:17
To: [EMAIL PROTECTED]
Subject: Problems getting generated images through the IIS connector.


Hi,

We are having a wierd problem here... here's the (short) story.

We are generating JPEG Images from one of our servlets (Java2D and the sun
Jpeg codec).

It shows up correctly in IE without problems... but when we try to print the
page (yep, some of our users want to do that), the images do not show.

The wired thing is that it only happens when we access the images through
IIS (using the isapi_redirect filter).
When we access the image through tomcat (port 8080) they show and print
correctly.


I tried to look a little bit further...
In IE when I take the properties of the image (coming trough Tomcat:8080) it
knows the size (in pixels and in bytes) and it shows it mime/type (JPEG).
When I do the same trough IIS it does not know the size (in bytes) nor its
mime type. Even save image does not work as expected (it only saves in BMP).

I almost forgot to mention versions... I does that under Tomcat 3.1 (final)
and the new 3.2b7, I'm going to test with the 4.0M4 very soon.

Does anyone has any idea ???

Thanks a lot.

Michel Lehon.
[EMAIL PROTECTED]
SAS Data Warehousing and Web Enablement.