AW: AW: problem with connections not closing...

2002-06-12 Thread Ralph Einfeldt

A JDBC Realm is just a tool to authenticate and authorize
an user against a database. So it has nothing to do with
your problem.

As said earlier finalize() won't help you, as the time
when a servlet instance is destroyed is undetermined.
It might never be destroyed until tomcat is shut down.

How you can achieve your goal is not easy to say, as it 
requires more knowledge about your application. It's quite
unclear to me when and under which circumstances you want 
to close the connections.

The socke write error you reported indicates, that you 
keep the connection open to long.

 -Ursprüngliche Nachricht-
 Von: Christian J. Dechery [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 11. Juni 2002 18:30
 An: [EMAIL PROTECTED]
 Betreff: Re: AW: problem with connections not closing...
 
 I was thinking of some type os static variable to control it 
 on the super DAO class. There is a super DAO class which all 
 the DAO inherit the connection object from, I wrote the 
 finalize() and cleanUp() code in there... I was thinking of a 
 solution that would use this class.
  
 But what about the JDBC Realm? I still don't know what it is, 
 and what it's for.


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




Re: Re[3]: Roles in JNDIRealms

2002-06-12 Thread Cristina Perez Sanchez

Hi Jon,

thanks for your help. I´ve tested group and
groupOfUniqueNames objectclass and JNDIRealm works
properly.

Thanks again,

Cristina

--- Jonathan Eric Miller [EMAIL PROTECTED]
wrote:
 I think you can use whatever objectClass you want.
 The only filter that it
 uses for finding roles is the string that you set
 roleSearch to.
 
 Jon
 
 - Original Message -
 From: Cristina Perez Sanchez [EMAIL PROTECTED]
 To: Tomcat Users List
 [EMAIL PROTECTED]
 Sent: Tuesday, June 11, 2002 3:36 AM
 Subject: Re: Re[3]: Roles in JNDIRealms
 
 
  Hi,
 
  first, thanks for your answers.
 
  I would like to ask another question. I use Tomcat
  4.0.3 and so I have to set roleSearch and create
 group
  objects that contain the DNs of users associated
 to.
  Which objectclass must be these group entries?
  groupOfUniqueNames objectclass? group class? Are
 both
  valid?
 
 
  Thanks,
 
  Cristina
 
 
  --- Jonathan Eric Miller [EMAIL PROTECTED]
  wrote:
   Jacob,
  
   I'm happy to say that there is a new bind as
 user
   mode in Tomcat 4.1.3
   which verifies the user password by binding as
 them
   to the directory, rather
   than querying the directory for the password.
 You
   are correct, previously it
   wouldn't work with Active Directory (as well as
 any
   other directory that
   didn't store it's passwords in the specific
 format
   that Tomcat wanted), but,
   now it does. Now, if you don't set the
 userPassword
   attribute, it operates
   in bind as user mode. They haven't updated the
   main end-user documentation
   on JNDIRealm yet, but, if you look at the
 Catalina
   developer docs, you'll
   see what I'm referring to if you look at the
   JNDIRealm class.
  
   Jon
  
   - Original Message -
   From: Ryan [EMAIL PROTECTED]
   To: Tomcat Users List
   [EMAIL PROTECTED]; Jacob Kjome
   [EMAIL PROTECTED]
   Sent: Monday, June 10, 2002 4:55 PM
   Subject: Re: Re[2]: Roles in JNDIRealms
  
  
Jacob,
I took a quick look at the source, but it
 looks
   like
the passwords are digested here also (i.e.
 will
   not
work with Active Directory). From what I
   understand,
with AD the authentication has to be done _on_
 the
server.
Thanks,
Ryan
   
--- Jacob Kjome [EMAIL PROTECTED] wrote:
 Hello Ryan,

 Check this out:

  
 http://www.peacetech.com/java/files/apache/tomcat/

 I haven't used it (nor have I used JNDIRealm
 at
   all
 so far), but I
 grab stuff that looks like useful info off
 the
   list
 and put it in my
 Vault ( http://www.personalmicrocosms.com/ )
   from
 time to time. Hopefully it is useful for
 you.

 Jake

 Monday, June 10, 2002, 3:18:15 PM, you
 wrote:

 R Jonathan,
 R This is sort of off subject, but does
 your
   Active
 R Directory setup work for Authentication??
 It
 seems to
 R me that it wouldn't since there is no
 userPassword
 R attribute in AD, but I am hoping I'm
 wrong.
 R Thanks,
 R Ryan

 R --- Jonathan Eric Miller
   [EMAIL PROTECTED]
 R wrote:
  If you are using Tomcat 4.1.3, there are
 two
 modes
  that you can use for
  checking roles. If you set roleSearch, it
   will
 look
  for search for group
  objects that contain a list of users for
 each
 group.
  If you set
  userRoleName, it will get the group
   information
 out
  of the user's entry
  instead. i.e. you don't need separate
 group
 objects.
 
  If you are using Active Directory, I
 found
   that
 you
  can use a setup similar
  to the following.
 
  This goes in server.xml,
 
  Realm
 
   className=org.apache.catalina.realm.JNDIRealm
   debug=99
   connectionName=myadminuser@mydomain
   connectionPassword=myadminpassword
  
 connectionURL=ldap://mydomaincontroller;
   userBase=cn=Users, dc=mydomain
   userRoleName=memberOf
 
   userSearch=(userPrincipalName={0}@mydomain)/
 
  Group membership is stored in an
 attribute
   named
  memberOf in Active
  Directory. myadminuser doesn't really
 have to
   be
 an
  admin user in AD. It
  just has to have read permission to the
   memberOf
  attribute which is visible
  to normal user accounts by default.
 
  This goes in web.xml,
 
  security-constraint
   web-resource-collection
 
   web-resource-nameTomcat/web-resource-name
url-pattern/*/url-pattern
   /web-resource-collection
   auth-constraint
 
 
 
=== message truncated ===


__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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




RE: newbie question urgent plz

2002-06-12 Thread Vikramjit Singh

Hi,

thanks for your help markus, ashraf and sankar. I have deployed my CorpMIS
context. I went through the docs and then slowly started fresh. one very
strange problem i found was this, earlier i was writing my web.xml file like
this

 servlet
  servlet-nameCreateCompanyMstr/servlet-name
 
servlet-classcom.gtl.corpmis.admin.adminservlets.CreateCompanyMstr/servle
t-class
/servlet
servlet-mapping
servlet-nameCreateCompanyMstr/servlet-name
url-pattern/CreateCompanyMstr/url-pattern
/servlet-mapping

 servlet
  servlet-nameCreateRoleMstr/servlet-name
 
servlet-classcom.gtl.corpmis.admin.adminservlets.CreateRoleMstr/servlet-c
lass
/servlet 
servlet-mapping
servlet-nameCreateRoleMstr/servlet-name
url-pattern/CreateRoleMstr/url-pattern
/servlet-mapping

due to which i was getting error, and u said to check manager/list which was
giving CorpMIS notstarted : 0.

but when i changed my web.xml file to

 servlet
  servlet-nameCreateCompanyMstr/servlet-name
 
servlet-classcom.gtl.corpmis.admin.adminservlets.CreateCompanyMstr/servle
t-class
/servlet

 servlet
  servlet-nameCreateRoleMstr/servlet-name
 
servlet-classcom.gtl.corpmis.admin.adminservlets.CreateRoleMstr/servlet-c
lass
/servlet 

servlet-mapping
servlet-nameCreateCompanyMstr/servlet-name
url-pattern/CreateCompanyMstr/url-pattern
/servlet-mapping

servlet-mapping
servlet-nameCreateRoleMstr/servlet-name
url-pattern/CreateRoleMstr/url-pattern
/servlet-mapping

it worked. Could anybody tell me the reason for it. Since it used to work
with the earlier structure of web.xml in tomcat 3.2.1. 

Regards,
Vikramjit Singh,
Systems Engineer,
GTL Ltd.
Ph. 7612929-1031


-Original Message-
From: Markus Kirsten [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 11, 2002 6:08 AM
To: Tomcat Users List
Subject: Re: newbie question urgent plz


Check the documentation! This is not an error, since you havn't supplied 
the manager application with any command. Try /list after manager...

Please look at the documenation before asking questions. You've got all 
you need @ http://jakarta.apache.org/tomcat/tomcat-4.0-doc/manager-
howto.html. Please mail back if you still having problems.


Markus


On tisdag, juni 11, 2002, at 02:48 , Vikramjit Singh wrote:

 ok changed the role to manager, now i didnt get that error, but this 
 line

 FAIL - Unknown command




 -Original Message-
 From: Arshad Mahmood [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, June 11, 2002 5:47 AM
 To: Tomcat Users List
 Subject: Re: newbie question urgent plz


 The role needs to be manager not tomcat to use the manager 
 application.

 Regards,
 Arshad

 - Original Message -
 From: Vikramjit Singh [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Tuesday, June 11, 2002 1:22 PM
 Subject: RE: newbie question urgent plz


 yeah i opened my tomcat-users and changed the existing file. now the 
 file
 contains this

 !--
   NOTE:  By default, no user is included in the manager role required
   to operate the /manager web application.  If you wish to use this 
 app,
   you must define such a user - the username and password are 
 arbitrary.
 --
 tomcat-users
   user name=vikram password=vikram roles=tomcat /
   user name=role1  password=tomcat roles=role1  /
   user name=both   password=tomcat roles=tomcat,role1 /
 /tomcat-users

 in the url i am writing http://localhost/manager

 username is vikram
 password is vikram

 It is giving

 type Status report

 message Access to the requested resource has been denied

 description Access to the specified resource (Access to the requested
 resource has been denied) has been forbidden.


 Regards,
 Vikramjit Singh,
 Systems Engineer,
 GTL Ltd.
 Ph. 7612929-1031


 -Original Message-
 From: Markus Kirsten [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, June 11, 2002 4:43 AM
 To: Tomcat Users List
 Subject: Re: newbie question urgent plz


 Hi,
 Check your tomcat-users file located in /conf/ and add an account with
 the role manager or change an existing one.

 Good luck!


 Markus


 On tisdag, juni 11, 2002, at 01:32 , Vikramjit Singh wrote:

 yeah the directory structure is exactly the same.
 how do i check the mananger list i am typing
 http://localhost:8080/manager
 its asking for password.


 Regards,
 Vikramjit Singh,
 Systems Engineer,
 GTL Ltd.
 Ph. 7612929-1031


 -Original Message-
 From: Chris Campbell [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, June 11, 2002 4:35 AM
 To: 'Tomcat Users List'
 Subject: RE: newbie question urgent plz



 What files are in the context? Do you have a
 webapps/CorpMIS/WEB-INF/web.xml? Does CorpMIS show up in the manager
 list,
 and if so what is its status?

 -Original Message-
 From: Vikramjit Singh [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, June 11, 2002 8:20 PM
 To: '[EMAIL PROTECTED]'
 Subject: newbie question urgent plz



 hi 

Problem JNDI DataSource - no Connection on MySQL DB

2002-06-12 Thread info

Hi,

trying to connect to my MySQL DB via JNDI but I do not get a Connection in detail:
Using Tomcat 4.03, Linux Suse 7.3, MySQL 3.23.14.

I try to connect with this code:
.
.
.
 Context initCtx = new InitialContext();
if (initCtx == null) throw new JspException(No Context available for DataSource, 
can't get connetion);
Context envCtx = (Context) initCtx.lookup(java:comp/env);
if (envCtx == null) throw new SQLException(No DataSource availale for Connection 
(envCtx == null));
  ds = (DataSource)envCtx.lookup(jdbc/wwa-mDB);
if (ds == null) throw new SQLException(No DataSource availale for Connection (ds 
== null)  + ds + envCtx =  + envCtx);
   verbin = ds.getConnection();
   verbin.setReadOnly(true);
stmt = verbin.createStatement(); 
.
.
an the problem ist that ds == null (envCtx == org.apache.naming.NamingContext@452200).
I am wondering why I cannot connect the DB. Before I connectet directly like:

Class.forName(org.gjt.mm.mysql.Driver).newInstance(); 
String url = jdbc:mysql://localhost:3306/wwa-m01?user=userpassword=pwd;

And it worked just fine.

My web.xml-File lookes like:
resource-ref
 description
Resource reference to a factory for java.sql.Connection
instances that may be used for talking to a particular
database that is configured in the server.xml file.
  /description
  res-ref-namejdbc/wwa-mDB/res-ref-name
  res-typejavax.sql.DataSource/res-type
  res-authContainer/res-auth
/resource-ref


und the server.xml:
Resource name=jdbc/wwa-mDB auth=Container
type=javax.sql.DataSource/
  ResourceParams name=jdbc/wwa-mDB
parameternameuser/namevalueuser/value/parameter
parameternamepassword/namevaluepwd/value/parameter

parameternamedriverClassName/namevalueorg.gjt.mm.mysql.Driver/value/parameter

parameternameurl/namevaluejdbc:mysql://localhost:3306/wwa_m01/value/parameter
  /ResourceParams

Can you give me any assistance on how to find out what is wrong with my Connection an 
how I can find out about that?

Thanks a lot!

Rainer



Re: Running Apache and Tomcat on different servers; problem with redirection

2002-06-12 Thread misterxyz misterxyz


thanks for the quick reply. actually, the proxy server is just a security meassure, so 
that the tomcat server is not directly exposed to the internet. the apache contacts an 
iis residing on the tomcat server, which then contacts tomcat.
i assume that in that case i do not need mod_jk, correct?
but i need to configure tomcat to avoid the redirects, correct? how can that be done?
thx, michael
  Hanks Mei [EMAIL PROTECTED] hat geschrieben: Hi,
Some questions
Are you using mod_jk cocnnectors for apache  tomcat to communicate
or are you just forwarding requests from apache.
If you are just forwarding(using redirects) then this is the expected behaviour
You should move to mod_jk adapter.

In case you are using a mod_jk adapter, have you configured the servername properly 
for apache. But anyway this should not be a problem if both are running in two 
different servers.

bye
mano


Quoting :

 
 I try to run apache and tomcat on two different servers; apache server
 is accessible from the Internet via ssl, tomcat is not directly
 accessible from the Internet. Request is forwarded by apache to tomcat
 server as http.
 
 tomcat server replaces the ip address in the response with the tomcat
 server's address, which it shouldn't
 
 Example: send request to /directory
 
 New URL shown in browser after the answer has been received:  server ip/directory
 
 how can i get rid of the address exchange? where is it configured?
 
 thx, michael
 
 
 



-
Gesendet von http://mail.yahoo.de.
Kreative Köpfe gesucht! Machen Sie mit beim Yahoo! SMS Literatur Wettbewerb und 
gewinnen Sie tolle Preise -  http://smswettbewerb.yahoo.de.


Simple j_security_check example not working

2002-06-12 Thread Jaspreet.Singh

Hi Guys
Attached is a simple example of form based login I'm trying to get working
on Tomcat 4.0.3 and it doesn't!!! I've checked the archives and noticed
someone else had the same problem and never got past it! Anyway if you type
the url
http://localhost:8080/SCJWD/servlet/secret
You get re-directed to the form based login page and if you type in the
correct username 
and password (tomcat, tomcat) you get an error - and I quote 

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).

Am I missing something somewhere .. Because I copied this example straight
out of the java servlets book.

If you use incorrect credentials then the behaviour is as expected.

Cheers
Jas

--
Jaspreet Singh
Application Solutions Developer
The Ultimate People Company
Phone/Fax: 0113 20 10 641/666
Mobile: 07866 260204
Web: www.upco.co.uk

The contents of this email are intended only for the named addressees and
may contain confidential and/or privileged material. If received in error
please contact UPCO on +44 (0) 113 201 0600 and then delete the entire
e-mail from your system. Unauthorised review, distribution, disclosure or
other use of this information could constitute a breach of confidence. Your
co-operation in this matter is greatly appreciated. 
  




SCJWD.war
Description: Binary data

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


Re: j_security_check in Jboss 3.0 with Tomcat

2002-06-12 Thread Mukul Joshi

Thanks Hanks.

I will try this out.

--- Hanks Mei [EMAIL PROTECTED] wrote:
 Quoting  Mukul Joshi [EMAIL PROTECTED]:
 
  Hi
  
  Has anyone used j_security_check in Jboss 3.0 with
  Tomcat.
  
  If yes, is the user authenticated with the custom
  login module in JBoss.
  
 Yes, JBoss plugs in his own realm into tomcat, so
 that
 the same security manager used in JBoss framework is
 used in 
 the tomcat web container also.
 
  Also is the authenticated user then associated
 with
  the Session.
 
 Yes ofcourse, you can also get the principal object
 using the 
 getUserPrincipal API.
 
  And is the authenticated user associated
  with the execution thread so that the method
  permissions work seamlessly on the EJB side and
 the
  user can also be identified in the EJB.
  
 If you are worried about the security(principal)
 being passed across, then:
 All the containers have a implicit rule of passing
 on the principal object 
 when communication goes from one container to
 another. i.e. for example  webcontainer to EJB
 container.
 So you will not have any problem.
 
  Is there any special setting to make
 j_security_check
  work thus.
  
 NOPE!!! no need.
  Many Thanks
  
  Mukul
  
  __
  Do You Yahoo!?
  Yahoo! - Official partner of 2002 FIFA World Cup
  http://fifaworldcup.yahoo.com
  
  --
  To unsubscribe, e-mail:  
 
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
  
  
 
 -
 Sify Mail - now with Anti-virus protection powered
 by Trend Micro, USA.
 Know more at http://mail.sify.com
 
 Take the shortest route to success! 
 Click here to know how http://education.sify.com
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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




Apache + Tomcat + SSI

2002-06-12 Thread hru

Hello everyone!

I have a problem concerning Apache + Tomcat + mod_jk + SSI (server side 
includes):
I want to place a SSI in a html-page which is dynamically generated by a 
jsp-page.
In static html-files (in those in my Apache htdocs-directory) SSI are 
working perfectly, but as soon as the page is generated by Tomcat, the 
SSI-directives are just sent to the browser, but not evaluated.
So for my problem  Apache would have to let Tomcat handle the jsp-Request 
first and then parse the generated document for SSI-directives --- how 
could I configure it to do so???

In the archives I found some questions like this one, but I have not seen 
a solution posted for this problem yet ... only some people proposing to 
use jsp:includes instead, but I really DO want Apache to handle these 
includes (performance)!!!

Is there a solution for my configuration (Apache 1.3 + Tomcat 3.2.3) or 
for a different configuration (like Apache 2.0 + Tomcat 4.0) ???

Thanks for any hints
Helmut Rubasch


Silbergrau Consulting  Software GmbH 
fon: +43.70.779169-25 
Dipl.Ing. Helmut Rubasch 
fax: +43.70.779169-12 
Stifterstraße 28/3, Postfach 21 
[EMAIL PROTECTED] 
A-4014 Linz 
www.silbergrau.com 



Line Numbers in compiled code...

2002-06-12 Thread August Detlefsen

How do I get line numbers in my stack trace? 

All the org.apache and javax class show line numbers, but my classes do
not:

java.lang.NullPointerException
at showplan.Controller.dispatchContentAction(Controller.java)
at showplan.Controller.service(Controller.java)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
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:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:528)
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.StandardContext.invoke(StandardContext.java:2343)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
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:468)
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:174)
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.warp.WarpRequestHandler.handle(WarpRequestHandler.java:217)
at
org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:194)
at java.lang.Thread.run(Thread.java:484)

__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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




driver manager does not work neither giving error

2002-06-12 Thread Vikramjit Singh

Hi,

I am deploying my application from tomcat 3.2.1 to tomcat 4.0.3. I have
installed tomcat 4.0.3 and its working fine. I have a servlet which is
loaded on start up. The servlet is for connection pooling which opens the
connections. I am using oracle driver classes12.zip for connection pooling. 

In my OracleConnectionPool.java these lines are not being reached: 

DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
Class.forName(oracle.jdbc.driver.OracleDriver);

and after these  lines the connection pooling methods of Oracle driver is
called.

neither is it throwing any error.

Since before these lines which ever code is there its working as the
system.out.println statements are being printed on the console. I know
Tomcat 4.0.3 has in built ConnectionPooling mechanism, hope thats not the
source of the problem. I am pretty much confused. Atleast it should throw an
error.

Thanking in advance.

Regards,
Vikramjit Singh,
Systems Engineer,
GTL Ltd.
Ph. 7612929-1031


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




Problem with load-on-startup and jsp pages

2002-06-12 Thread Neil Milne

Hi
I'm running Tomcat 4.0.3 in standalone mode and I can't get a JSP page
to load on startup.
I've put together a test webapp which has one servlet and one jsp page
both set to load on startup via the webapp web.xml file and only the
servlet is started when the webapp is loaded.
Here's the web.xml:

web-app
display-nameTest area/display-name
servlet
servlet-namesvstart/servlet-name
servlet-classStartup/servlet-class
load-on-startup1/load-on-startup
/servlet
servlet
servlet-namejsstart/servlet-name
jsp-file/index.jsp/jsp-file
load-on-startup2/load-on-startup
/servlet
/web-app

In the tomcat log for this webapp I can see the following:
2002-06-12 08:00:18 StandardWrapper[:default]: Loading container servlet
default
2002-06-12 08:00:18 default: init
2002-06-12 08:00:18 StandardWrapper[:invoker]: Loading container servlet
invoker
2002-06-12 08:00:18 invoker: init
2002-06-12 08:00:18 invoker: init: Associated with Context ''
2002-06-12 08:00:18 jsstart: init
2002-06-12 08:00:18 jsp: init
2002-06-12 08:00:18 StandardContext[]: Starting completed

Which implies that the jsp init method was run, but it hasn't been since
there is no output to stdout from the jspInit method until I actually
visit the jsp page via a browser.
Meanwhile, the servlet (class Startup above) has run its init method
fine and produced stdout output ok, even though it's not mentioned in
the webapp log.

Is this a known problem? I've looked in the source code for the
superclass for the JSP pages and jspInit should be called from the init
method so that seems to imply that the init method hasn't been called
either for the compiled servlet. I also can't see the compiled servlet
code in the $CATALINA_HOME/work directory until I access the jsp via a
browser.

I've tried varying the startup order, and only having jsp in the startup
without any luck.

Any help appreciated!

Thanks,
Neil.


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




AW: Line Numbers in compiled code...

2002-06-12 Thread Ralph Einfeldt

- Make shure that you compile with -g.
- If you did it and you still don't get the numbers, 
  it may help to disable the jit/hotspot compiler.

 -Ursprüngliche Nachricht-
 Von: August Detlefsen [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 12. Juni 2002 09:56
 An: Tomcat Users List
 Betreff: Line Numbers in compiled code...
snip/
 How do I get line numbers in my stack trace? 
 
 All the org.apache and javax class show line numbers, but my 
 classes do not:
snip/

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




File loading not complete, but no exceptions thrown!

2002-06-12 Thread Sunny Copony

Hi,

have a big problem with file loading, please, maybe some of you have an
idea!!

When a series of 20 - 120 files (jpg icons) is loaded, the client hangs
(single-thread) or 2 - 5 files are not loaded (multiple-threads), not
allways the same.
NO exception is thrown and the complete server method for loading is
done (inserted a counter to the while statement for read-write).

I tested with single-thread-client and a multiple-threads-client which
starts every http connect in an own thread. 

Single-thread:
the client hangs at icon x, the servlet did the complete method for icon
x. It seams that the response is not real and the client is still
waiting for it.

Multiple-threads:
2 - 5 files are not loaded, but in the servlet log everything seams ok.

I think that the servlet response is not ok, but have no idea how to
correct it!!

In server.xml the http connection parameters are:
!-- Define a non-SSL HTTP/1.1 Connector on port 8080 --
Connector
className=org.apache.catalina.connector.http.HttpConnector
   port=8090 minProcessors=5 maxProcessors=1000
   enableLookups=true redirectPort=8443
   acceptCount=30 debug=99 connectionTimeout=30/

For the multiple-thread-client I tryed to synchronize the servlet method
or parts of it - it didn't help.


Would be very happy to get your help, I'm completely stuck and have to
get it ready.

Love,
Sunny



logs 
--
servlet
...
2002-06-12 8:30:11 S HttpProcessor[8090][217]:
B2C14100530335D471943820A3F4F413 - GetImageServlet.doPost()
2002-06-12 8:30:11 I HttpProcessor[8090][217]: GetImagesServlet.Cmd:
getIcon
2002-06-12 8:30:11 D HttpProcessor[8090][217]: GetImagesServlet:
deserialized obj.toString:
1.2.840.113619.2.1.1.2702585278.286.781967413.52
2002-06-12 8:30:11 D HttpProcessor[8090][217]:
GetImagesServlet.getIcon(), call converter:
/usr/lib/tomcat/webapps/inowebvw/WEB-INF/dicom2jpg/WebMain/mainWeb_g.ora
cle i 1.2.840.113619.2.1.1.2702585278.286.781967413.52
/usr/lib/tomcat/webapps/inowebvw/WEB-INF/dicom2jpg/WebMain/convert.conf
2002-06-12 8:30:11 D HttpProcessor[8090][217]:
GetImagesServlet.getIcon(), converter returns:
/home/inovit/images/inopacs/jpg_icons/CT8F/D229.jpg
2002-06-12 8:30:11 D HttpProcessor[8090][217]:
GetImagesServlet.getIcon()... after setContType
2002-06-12 8:30:11 D HttpProcessor[8090][217]:
GetImagesServlet.getIcon()... after setHeader
2002-06-12 8:30:11 D HttpProcessor[8090][217]:
GetImagesServlet.getIcon() ... after new FileInoutStream(), imgpath =
/home/inovit/images/inopacs/jpg_icons/CT8F/D229.jpg
2002-06-12 8:30:11 D HttpProcessor[8090][217]:
GetImagesServlet.getIcon() ... after new BuffOutpStr
2002-06-12 8:30:11 D HttpProcessor[8090][217]:
GetImagesServlet.getIcon() ... 1x while
2002-06-12 8:30:11 D HttpProcessor[8090][217]:
GetImagesServlet.getIcon() ... whilecounter = 24
2002-06-12 8:30:11 D HttpProcessor[8090][217]:
GetImagesServlet.getIcon() ... after flush()
--
client
...
  --  loading ok --
15 loading535 143 1.2.840.113619.2.1.1.2702585278.286.781967413.51 16
1
getIcon 1.2.840.113619.2.1.1.2702585278.286.781967413.51
a
con:
sun.net.www.protocol.http.HttpURLConnection:http://192.9.200.15:8090/ino
webvw/GetImagesServlet?cmd=getIconsid=B2C14100530335D471943820A3F4F413
c
2
15 getIconSource returned
15 loading done 535 143 1.2.840.113619.2.1.1.2702585278.286.781967413.51
16

  --  loading not ok --
16 loading536 143 1.2.840.113619.2.1.1.2702585278.286.781967413.52 17
1
getIcon 1.2.840.113619.2.1.1.2702585278.286.781967413.52
a
con:
sun.net.www.protocol.http.HttpURLConnection:http://192.9.200.15:8090/ino
webvw/GetImagesServlet?cmd=getIconsid=B2C14100530335D471943820A3F4F413
--



I'm attaching here some code parts, maybe it helps to find the reason.
--
servlet
...
String executecom = dicom2jpgBin +  i  + siuid +   +
dicom2jpgConf;
Log.println (Log.DIAG_DEBUG, GetImagesServlet.getIcon(), call
converter:  + executecom);
Runtime runtime=Runtime.getRuntime();
Process process=null;
 
try{
//call converter
process=runtime.exec(executecom);
 // returns Path to converted Image
String line = ;
String imgpath = ;
BufferedReader in = new BufferedReader(new
InputStreamReader(process.getInputStream()));
while ((line = in.readLine()) != null) {
imgpath = imgpath + line;
}
Log.println (Log.DIAG_DEBUG, GetImagesServlet.getIcon(),
converter returns:  + imgpath);
 
// FileInputStream zu dem Pfad öffnen, dann mit
HttpOutputStream schreiben
res.setContentType(application/octet-stream);
  Log.println (Log.DIAG_DEBUG,
GetImagesServlet.getIcon()... after setContType);
res.setHeader(Cache-Control, no-cache);
  Log.println (Log.DIAG_DEBUG,

RE: Problem JNDI DataSource - no Connection on MySQL DB

2002-06-12 Thread Les Hughes


I refer the gentlemen to my previous answer :-)

http://marc.theaimsgroup.com/?l=tomcat-userm=102225547106556w=2

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: 12 June 2002 08:30
 To: Tomcat Users List
 Subject: Problem JNDI DataSource - no Connection on MySQL DB
 
 
 Hi,
 
 trying to connect to my MySQL DB via JNDI but I do not get a 
 Connection in detail:
 Using Tomcat 4.03, Linux Suse 7.3, MySQL 3.23.14.
 
 I try to connect with this code:
 .
 .
 .
  Context initCtx = new InitialContext();
 if (initCtx == null) throw new JspException(No Context 
 available for DataSource, can't get connetion);
 Context envCtx = (Context) initCtx.lookup(java:comp/env);
 if (envCtx == null) throw new SQLException(No DataSource 
 availale for Connection (envCtx == null));
   ds = (DataSource)envCtx.lookup(jdbc/wwa-mDB);
 if (ds == null) throw new SQLException(No DataSource 
 availale for Connection (ds == null)  + ds + envCtx =  + envCtx);
verbin = ds.getConnection();
verbin.setReadOnly(true);
 stmt = verbin.createStatement(); 
 .
 .
 an the problem ist that ds == null (envCtx == 
 org.apache.naming.NamingContext@452200).
 I am wondering why I cannot connect the DB. Before I 
 connectet directly like:
 
 Class.forName(org.gjt.mm.mysql.Driver).newInstance(); 
 String url = 
 jdbc:mysql://localhost:3306/wwa-m01?user=userpassword=pwd;
 
 And it worked just fine.
 
 My web.xml-File lookes like:
 resource-ref
  description
 Resource reference to a factory for java.sql.Connection
 instances that may be used for talking to a particular
 database that is configured in the server.xml file.
   /description
   res-ref-namejdbc/wwa-mDB/res-ref-name
   res-typejavax.sql.DataSource/res-type
   res-authContainer/res-auth
 /resource-ref
 
 
 und the server.xml:
 Resource name=jdbc/wwa-mDB auth=Container
 type=javax.sql.DataSource/
   ResourceParams name=jdbc/wwa-mDB
 
 parameternameuser/namevalueuser/value/parameter
 
 parameternamepassword/namevaluepwd/value/parameter
 
 parameternamedriverClassName/namevalueorg.gjt.mm.mysql
 .Driver/value/parameter
 
 parameternameurl/namevaluejdbc:mysql://localhost:3306/
 wwa_m01/value/parameter
   /ResourceParams
 
 Can you give me any assistance on how to find out what is 
 wrong with my Connection an how I can find out about that?
 
 Thanks a lot!
 
 Rainer
 

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




Re: Please help me improve my question skills (number of tomcat a pps)

2002-06-12 Thread Martin Jacobson

Knutsen Jeffrey S wrote:

 YES! You've hit it!  I AM asking the question about how fast the car will
 go.  At this time, I DON'T care about the type of car or engine! My question
 is being analyzed far too deeply by the diligent developers on this mail
 list. 
 
snip


Well, although I agree with other posters that answering your question 
will not provide you with any useful information, here goes...

I am developing a REAL application using Tomcat. Development is on a G3 
PowerBook running Mac OS X 10.1.5, Tomcat 4.0.3 standalone, and MySQL 
something or other (recent, anyway!) with mm.MySQL JDBC driver. 
Performance is very good.
Production will be on some kind of Sun box which also runs Samba 
(masquerades as an NT server) for local workgroup. Production DB will be 
Oracle 8i, which will probably slow down the app somewhat, but still 
confident the car will go fast enough!

Now, apart from the information that the Mac is an excellent platform 
for Java apps, I don't know how this helps you, but hey... :-)

Martin



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




mod_webapp and static content

2002-06-12 Thread Frans Stofberg

Hello

How dose one make Tomcat serve the dynamic content while Apache the static
content with mod_webapp

Currently, if i'm not mistaken the default configuration for this makes
Tomcat serve static and dynamic content

if it cant be done why would one whant to use Apache AND Tomcat if Tomcat
can do the job in any case?

thanks

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




Authentication Digest and JDBC Realm on Tomcat 4.0.3

2002-06-12 Thread PATTUS Jean-Philippe

Hello,
I'm working on Tomcat 4.0.3.
i'm trying to put an authentication on my web app,
if the auth-method is BASIC and 
the Realm is   
Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
 driverName=oracle.jdbc.driver.OracleDriver
 connectionName=Name
 connectionPassword=Password
  connectionURL=jdbc:oracle:thin:@host:1521:toto
  userTable=userTable userNameCol=userNameCol
userCredCol=userCredCol
  userRoleTable=userRole roleNameCol=roleNameCol / 
it works fine.
But, if i replace BASIC by DIGEST, my authentication is KO. I've seen in the
code that
 JDBCRealm::getPassword() always return null!!!  

How can i configure my Tomcat in order to have JDBC Realm and Digest
authentication???

Thanks 

PS : sorry for my poor english.



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




fyi: tomcat 4.0.1 examples on MacOS X (error 404)

2002-06-12 Thread Robert . Parker


I recently downloaded
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.1/bin/jakar
ta-tomcat-4.0.1.tar.gz but the servlet examples did not work (error 404).

Looking at the files in the logs/ folder showed there was a problem with
loading SetCharacterEncodingFilter class. I then came across a file called
SetCharacterEncodingFilter.clas in webapps/examples/WEB-INF/classes/filters/
folder.

When I renamed this file to SetCharacterEncodingFilter.class the examples
were accessible!

It's probably something to do with my OS X being on a Mac compatible partition
and so filenames longer than 32 are truncated (?)

Hope this helps someone

Robert



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




Re: BARCODE

2002-06-12 Thread D Bamud

http://www.bokai.com/BarcodeJSP/
Search Java Barcode API on net
There are many Java APIs available


- Original Message - 
From: Lee Chin Khiong [EMAIL PROTECTED]
To: Tomcat Users List (E-mail) [EMAIL PROTECTED]
Sent: Wednesday, June 12, 2002 11:36 AM
Subject: BARCODE


 DOES ANYBODY KNOWS HOW TO GENERATE BARCODE USING JAVA OR JSP ?
  
 


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




Re: fyi: tomcat 4.0.1 examples on MacOS X (error 404)

2002-06-12 Thread Martin Jacobson

[EMAIL PROTECTED] wrote:

 I recently downloaded
 http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.1/bin/jakar
 ta-tomcat-4.0.1.tar.gz but the servlet examples did not work (error 404).
 
 Looking at the files in the logs/ folder showed there was a problem with
 loading SetCharacterEncodingFilter class. I then came across a file called
 SetCharacterEncodingFilter.clas in webapps/examples/WEB-INF/classes/filters/
 folder.
 
 When I renamed this file to SetCharacterEncodingFilter.class the examples
 were accessible!
 
 It's probably something to do with my OS X being on a Mac compatible partition
 and so filenames longer than 32 are truncated (?)
 


IIRR, the problem is either in Stuffit, or std Mac OS X tar - I 
downloaded GNU tar, and have had no problems since.

Hope this helps
Martin.



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




RE: LDAP Authentication with Tomcat 4.1.3

2002-06-12 Thread John Burgess

Is having two OU entries OK?

Best Wishes
John Burgess
[EMAIL PROTECTED]
Tel: 01865 718666 
Fax: 01865 718600


-Original Message-
From: Josh Fenlason [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 11, 2002 9:12 PM
To: Tomcat
Subject: LDAP Authentication with Tomcat 4.1.3


I'm trying to do LDAP Authentication in Tomcat 4.1.3.  I found some a couple
of links that said to use LDAPRealm in Tomcat's server.xml, but I still
haven't had any luck.  Has anyone else been able to get this to work?  Here
are the two Realm elements that I've tried in server.xml.  Any help would be
greatly appreciated.  Thanks.
,
Josh.

Realm className=com.peacetech.webtools.tomcat.LdapRealmCatalina
debug=1
directoryUrl = ldap://corvette.mn.ptc.com:389;
searchBindDN = ou-jfenlason_r62DC,ou=jfenlason,l=Arden Hills,o=Bethel
searchBindCredentials = mypassword
searchBaseContext = o=PTC
searchFilter = cn={0}
searchScopeAsString = sub
securityAttributes = securityEquals
attributesReadByOwner = true
connectionMaxPoolSize = 10
ldapVersion = 3 /
Realm className=org.apache.catalina.realm.LDAPRealm
ldapContextFactory=com.sun.jndi.ldap.LdapCtxFactory
ldapServer=ldap.corvette.mn.com
ldapPort=389
ldapDN=cn=%u,ou=jfenlason_r62DC,ou=jfenlason,l=Arden Hills,o=Bethel
ldapGroupContext=ou=jfenlason_r62DC,ou=jfenlason,l=Arden
Hills,o=Bethel

ldapGroupFilter=(amp;(uniquemember=%dn)(objectclass=groupOfUniqueNames))
ldapRoleAttribute=cn
debug=99 /


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

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.365 / Virus Database: 202 - Release Date: 24/05/02
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.365 / Virus Database: 202 - Release Date: 24/05/02
 

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




Is it available Tomcat 2?

2002-06-12 Thread Luca Ventura

Hello everybody!

I would like to know if it is true that the next version of Tomcat (called
Apache 2) supports
ASP pages. Is it Apache 2 available for download (final version)?

Thanks a lot in advance!

 Luca


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




AW: Is it available Tomcat 2?

2002-06-12 Thread Ralph Einfeldt

- Apache is not tomcat.
  Apache is 'just' a web server, tomcat is a web server, a servlet 
  engine and a jsp engine. The web server part of tomcat can be 
  replaced by apache. In this mode tomcat is an extension of apache
  that provides apache with servlets and JSP's.

- There are modules that extend Apache to support ASP
  http://www.nodeworks.com/asp/
  http://www.chilisoft.com/chiliasp/default.asp

- Apache 2 is available for download
  http://www.apache.org/dist/httpd/

 -Ursprüngliche Nachricht-
 Von: Luca Ventura [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 12. Juni 2002 11:37
 An: tomcat-user
 Betreff: Is it available Tomcat 2?
 
 
 Hello everybody!
 
 I would like to know if it is true that the next version of 
 Tomcat (called Apache 2) supports ASP pages. Is it Apache 2 
 available for download (final version)?
 

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




AW: How many rows have a ResultSet?

2002-06-12 Thread Power-Netz \(Schwarz\)

 If you are using JDBC 1.2 you can do it like this (snippet): 
 
 //declare your Statement to return a scroll insensitive result set 
 //before you make the query
 stmt = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,
 ResultSet.CONCUR_READ_ONLY);
 
 //get the number of rows by scrolling to the last row, 
 //getting its number, then returning to the start: 
 try {
 resultSet.last();
 numberOfRows = resultSet.getRow();
 resultSet.beforeFirst();
 } catch (Exception e) {
 e.printStackTrace();
 }

This will only work, IF the underlying driver really supports all methods
offered by JDBC. !this is not for sure! - see ORACLE who did not implement
all resultset navigation methods.




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




RE: Plz help!! Consulted archives!! RE: JSP examples error but servelts examples running

2002-06-12 Thread Lynne Gurney

Hi RS, thanks for your patience. Had a little dinner party last night so
sorry my communications were so sketchy. I had a look at my files again and
discovered I was spelling the servlet wrongly . . . should be spelt
TestingServlet . . . doh!!

L

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 11 June 2002 23:00
To: Tomcat Users List
Subject: RE: Plz help!! Consulted archives!! RE: JSP examples error but
servelts examples running



Probably the web application that holds TestServlet hasn't been deployed or
you are trying to access TestServlet via an incorrect URL. Unless you send
in more details it difficult to resolve your problem.

RS





Lynne Gurney [EMAIL PROTECTED] on 06/11/2002 04:33:15 PM

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:Tomcat Users List [EMAIL PROTECTED]
cc:

Subject:RE: Plz help!! Consulted archives!! RE: JSP examples error but
   servelts examples running

or I get

type Status report

message /TestServlet

description The requested resource (/TestServlet) is not available.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 11 June 2002 22:22
To: Tomcat Users List
Subject: RE: Plz help!! Consulted archives!! RE: JSP examples error but
servelts examples running



Since you can run the examples servlets, there's something wrong with the
configuration (either in server.xml or web.xml). Apparently Tomcat cannot
find TestServlet. If you can elaborate on your configuration, directory
structure - it might help.

RS





Lynne Gurney [EMAIL PROTECTED] on 06/11/2002 04:12:25 PM

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:Tomcat Users List [EMAIL PROTECTED],
   [EMAIL PROTECTED]
cc:

Subject:RE: Plz help!! Consulted archives!! RE: JSP examples error but
   servelts examples running

I decided to reinstall tomcat and the example servlets are working now. The
problem with the first error was indeed something wrong with one of my test
applications which I have also resolved. However, I now cannot run any
servlets in any of my test apps. So it goes on . . . I have fiddled with
the
web.xml file and declaration of servlets for some time now and still get
the
following error 

type Exception report

message Internal Server Error

description The server encountered an internal error (Internal Server
Error)
that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: Wrapper cannot find servlet class
TestServlet or a class it depends on
 at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:87


1)
 at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:653)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja


va:214)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5


66)
 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.ja


va:190)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5


66)
 at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2


46)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5


64)
 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:2343)
 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180


)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5


66)
 at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.


java:170)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5


64)
 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170


)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5


64)
 at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5


64)
 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


:174)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5


66)
 at

Tomcat handling errors for Apache

2002-06-12 Thread hru

Hi!

I am using Apache and Tomcat together (with mod_jk) and would like to call 
a servlet as an error-document for non-existent Apache-documents (good old 
ErrorDocument 404-stuff).

The solution I need should:
* tell the servlet which url was really requested
* let the servlet return an error-document depending on the requested url, 
which ...
* might also be non-html (in some cases I would like to return a pdf-File 
AS errordocument!!!) ... so if a change the content-type of the response 
in the servlet, it should also change in the Apache-reply to the 
browser!!!

Currently I am doing some strange hack to get this (not quite!) right:
*  I direct the errordocument to a .shtml-file
*  this document does a server side include to the servlet and provides it 
with ${REQUEST_URI} as a request-parameter
*  the servlet can then return the dynamically generated error-document

but with this solution I am experiencing problems when I want to return 
some multimedia-data AS the errordocument (= e.g. returning some pdf-File 
instead of a html-errordocument).
Is this because I cannot change the content-type for the .shtml-file that 
called the jsp-page ??? (I am pretty lost here...)

Any help appreciated
Helmut Rubasch


Silbergrau Consulting  Software GmbH 
fon: +43.70.779169-25 
Dipl.Ing. Helmut Rubasch 
fax: +43.70.779169-12 
Stifterstraße 28/3, Postfach 21 
[EMAIL PROTECTED] 
A-4014 Linz 
www.silbergrau.com 



Re: Problem JNDI DataSource - no Connection on MySQL DB

2002-06-12 Thread info

thanks for that link but I read that already. I basically did it as it is
shown there. The only difference is that I am not using the Connection
pooling (DBCP) since I am waiting for the Tomcat 4.1 (which hopefully will
come soon) where it is implemented. I still don't have an idea how I can get
it to work?

Thanks for any more help.

Rainer



 I refer the gentlemen to my previous answer :-)

 http://marc.theaimsgroup.com/?l=tomcat-userm=102225547106556w=2

  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
  Sent: 12 June 2002 08:30
  To: Tomcat Users List
  Subject: Problem JNDI DataSource - no Connection on MySQL DB
 
 
  Hi,
 
  trying to connect to my MySQL DB via JNDI but I do not get a
  Connection in detail:
  Using Tomcat 4.03, Linux Suse 7.3, MySQL 3.23.14.
 
  I try to connect with this code:
  .
  .
  .
   Context initCtx = new InitialContext();
  if (initCtx == null) throw new JspException(No Context
  available for DataSource, can't get connetion);
  Context envCtx = (Context) initCtx.lookup(java:comp/env);
  if (envCtx == null) throw new SQLException(No DataSource
  availale for Connection (envCtx == null));
ds = (DataSource)envCtx.lookup(jdbc/wwa-mDB);
  if (ds == null) throw new SQLException(No DataSource
  availale for Connection (ds == null)  + ds + envCtx =  + envCtx);
 verbin = ds.getConnection();
 verbin.setReadOnly(true);
  stmt = verbin.createStatement();
  .
  .
  an the problem ist that ds == null (envCtx ==
  org.apache.naming.NamingContext@452200).
  I am wondering why I cannot connect the DB. Before I
  connectet directly like:
 
  Class.forName(org.gjt.mm.mysql.Driver).newInstance();
  String url =
  jdbc:mysql://localhost:3306/wwa-m01?user=userpassword=pwd;
 
  And it worked just fine.
 
  My web.xml-File lookes like:
  resource-ref
   description
  Resource reference to a factory for java.sql.Connection
  instances that may be used for talking to a particular
  database that is configured in the server.xml file.
/description
res-ref-namejdbc/wwa-mDB/res-ref-name
res-typejavax.sql.DataSource/res-type
res-authContainer/res-auth
  /resource-ref
 
 
  und the server.xml:
  Resource name=jdbc/wwa-mDB auth=Container
  type=javax.sql.DataSource/
ResourceParams name=jdbc/wwa-mDB
 
  parameternameuser/namevalueuser/value/parameter
 
  parameternamepassword/namevaluepwd/value/parameter
 
  parameternamedriverClassName/namevalueorg.gjt.mm.mysql
  .Driver/value/parameter
 
  parameternameurl/namevaluejdbc:mysql://localhost:3306/
  wwa_m01/value/parameter
/ResourceParams
 
  Can you give me any assistance on how to find out what is
  wrong with my Connection an how I can find out about that?
 
  Thanks a lot!
 
  Rainer
 

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




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




Re: AW: How many rows have a ResultSet?

2002-06-12 Thread August Detlefsen

LoL @ Oracle. It works great with Postgres!


--- Power-Netz (Schwarz) [EMAIL PROTECTED] wrote:
  If you are using JDBC 1.2 you can do it like this (snippet): 
  
  //declare your Statement to return a scroll insensitive result set 
  //before you make the query
  stmt = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,
  ResultSet.CONCUR_READ_ONLY);
  
  //get the number of rows by scrolling to the last row, 
  //getting its number, then returning to the start: 
  try {
  resultSet.last();
  numberOfRows = resultSet.getRow();
  resultSet.beforeFirst();
  } catch (Exception e) {
  e.printStackTrace();
  }
 
 This will only work, IF the underlying driver really supports all
 methods
 offered by JDBC. !this is not for sure! - see ORACLE who did not
 implement
 all resultset navigation methods.
 
 
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 maiƒ‰

__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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




mod_jk.so tomcat 4.0.3 and apache 1.3.22

2002-06-12 Thread zibie


I have a problem with connector ajp.
When i try to load mod_jk.so into apache 1.3.22, in log file i find:

tail logs/mod_jk.logs

[Wed Jun 12 12:02:17 2002]  [jk_connect.c (151)]: jk_open_socket, 
connect() failed errno = 111
[Wed Jun 12 12:02:17 2002]  [jk_ajp_common.c (598)]: In 
jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 111

how can i solve this problem ?

regards


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




R: Is it available Tomcat 2?

2002-06-12 Thread Luca Ventura

Hello!

Thanks for your clarifications...

A question: do the modules to support ASP you indicated to me
work only with Apache 2? or with Tomcat 4 too?

Can Apache 2 support JSP/Servlets without Tomcat?

Thanks,

   Luca

-Messaggio originale-
Da: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
Inviato: mercoledì 12 giugno 2002 11.49
A: Tomcat Users List
Oggetto: AW: Is it available Tomcat 2?


- Apache is not tomcat.
  Apache is 'just' a web server, tomcat is a web server, a servlet
  engine and a jsp engine. The web server part of tomcat can be
  replaced by apache. In this mode tomcat is an extension of apache
  that provides apache with servlets and JSP's.

- There are modules that extend Apache to support ASP
  http://www.nodeworks.com/asp/
  http://www.chilisoft.com/chiliasp/default.asp

- Apache 2 is available for download
  http://www.apache.org/dist/httpd/

 -Ursprüngliche Nachricht-
 Von: Luca Ventura [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 12. Juni 2002 11:37
 An: tomcat-user
 Betreff: Is it available Tomcat 2?


 Hello everybody!

 I would like to know if it is true that the next version of
 Tomcat (called Apache 2) supports ASP pages. Is it Apache 2
 available for download (final version)?


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




doco addition - Troubleshooting WinNT/Win2k IIS isapi redirector

2002-06-12 Thread neil

Here is a suggestion for an addition to the
Troubleshooting WinNT/Win2k section of
http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-iis-howto.html
This worked for me after a frustrating day of failure.

After:

5. Invoke the URL http://localhost/examples/jsp/index.html; in your
browser. Case is important. The characters following localhost in the URL
must be lower case. If the page fails to appear, examine the last line in
the IIS server log file in found in SYSTEM32/LogFiles/W3SVC1.
A. The last line should contain something like: GET
/jakarta/isapi_redirect.dll HTTP1.1, which indicates the Tomcat redirector
is recognizing that it should handle the request.
1. If the number following GET /... is 404, check the 
following:
a. Make sure you entered the URL correctly.


Insert:

  b. Maybe IIS Virtual Directories are not
working. Make a new Virtual Directory pointing to some local files, enable
Directory browsing and Read then check whether your browser can browse and
read from it. If not uninstall and reinstall IIS. (The Virtual Directories I
had created were no longer present at this stage.) Repeat the steps 3 to 5
of Configuring the ISAPI Tomcat Redirector and try again.


Although its stupid having to reinstall IIS, its fairly quick and doesn't
mess up your web site content or require reboots.


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




JSP Runtime error : Any idea?

2002-06-12 Thread Mike Niemaz

I'm getting such errors since i've upgraded to tomcat 4.1.2 ;-(
Any idea of what is causing this?

Thanx,

--mike


2002-06-12 11:22:16 StandardWrapperValve[jsp]: Servlet.service() for
servlet jsp threw exception
javax.servlet.ServletException: (class: org/apache/jsp/Logins$jsp,
method: _jspService signature:
(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V)
Incompatible type for getting or setting field
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)

at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)

at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)

at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:646)

at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:483)

at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:646)

at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:483)

at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2349)

at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)

at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:646)

at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)

at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:644)

at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:171)

at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:644)

at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:483)

at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)

at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:646)

at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:483)

at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.connector.warp.WarpRequestHandler.handle(Unknown
Source)
at org.apache.catalina.connector.warp.WarpConnection.run(Unknown
Source)
at java.lang.Thread.run(Thread.java:536)
- Root Cause -
java.lang.VerifyError: (class: org/apache/jsp/Logins$jsp, method:
_jspService signature:
(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V)
Incompatible type for getting or setting field
at java.lang.Class.getDeclaredConstructors0(Native Method)
at
java.lang.Class.privateGetDeclaredConstructors(Class.java:1576)
at java.lang.Class.getConstructor0(Class.java:1748)
at java.lang.Class.newInstance0(Class.java:266)
at java.lang.Class.newInstance(Class.java:249)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:170)

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

at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)

at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)

at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)

at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:646)

at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:483)

at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:646)

at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:483)

at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at

RE: Is it available Tomcat 2?

2002-06-12 Thread John Burgess

I think you've been fed some April fool stories, Luca

Best Wishes
John Burgess
[EMAIL PROTECTED]
Tel: 01865 718666 
Fax: 01865 718600


-Original Message-
From: Luca Ventura [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 10:37 AM
To: tomcat-user
Subject: Is it available Tomcat 2?


Hello everybody!

I would like to know if it is true that the next version of Tomcat (called
Apache 2) supports
ASP pages. Is it Apache 2 available for download (final version)?

Thanks a lot in advance!

 Luca


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

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.365 / Virus Database: 202 - Release Date: 24/05/02
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.365 / Virus Database: 202 - Release Date: 24/05/02
 

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




Tomcat4.1.2 shutdown error

2002-06-12 Thread Mike Niemaz

I'm getting this error when I try to stop Tomcat.
Any idea?

Thanx,

-mike

java.lang.NullPointerException
at
org.apache.catalina.core.NamingContextListener.lifecycleEvent(NamingContextListener.java:343)

at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)

at
org.apache.catalina.core.StandardServer.stop(StandardServer.java:2216)
at org.apache.catalina.startup.Catalina.start(Catalina.java:541)

at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)


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




help me

2002-06-12 Thread siva murugan

Sir/Madam,

 Fine and expect the same from U and all.

 Iam SivaMurugan from INDIA. Just minutes back i
downloaded jakarta-tomcat-4.0-20020530.zip from
http://jakarta.apache.org site.

 I tried my first servlet file in the name of
admin.java . I created the file and stored in the
directory of
c:\jakarta-tomcat-4.0\webapps\Root\WEB-INF . I
compiled using javadoc and i got the admin.class file
without any error, on my first attempt. To be frank i
was really feeeling great , since its my first time
downloading and running a program on an webserver.
Before that i set the classpath. I am using windows
2000 server. So i set the classpath in
MyComputer/Properties/SystemProperties/Advanced/Environmet
Variables/SystemVariables. Actually i set the
classpath as
c:\jakarta-tomcat-4.0\common\lib\servlet.jar;c:\jdk1.3\bin;

 Now tried to run the Tomcatwebserver from the
directory c:\jakarta-tomcat-4.0\bin\startup and
unfortunately i couldn't do that. Its showing the
following error. 

 The JAVA_HOME environment variable is not defined
 This environment Variable is needed to run this
program
 Using CATALINA_BASE:  ..
 Using CATALINA_HOME:  .. 
 Using CATALINA_TEMPDIR:  ..\temp
 Using JAVA_HOME:
 The System cannot find the file
-Djava.endorsed.dirs=.

So i tried to set the JAVA_HOME enviroment variable as
c:\jdk1.3\bin; Then i tried again, now also iam
getting the same error. What wrong? Please help me.. 

 Iam using 
JAVA VERSION 1.3.01
JAVA(TM)2 RUN TIMEENVIRONMENT, STANDARD EDITION
(BUILD  1.3.01)
JAVA HOTSPOT(TM) CLIENT VM (BUILD 1.3.01, MIXED
MODE)

 Waiting for a +ive and immediate mail from U
Sir/Madam.

Love,
Siva



__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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




tomcat 3.3.1 losing session after a redirect:

2002-06-12 Thread Olivier Fillon

Hi guys
I have the following problem:

2 servlets communicating via:
  HttpSession session = req.getSession(true);
  Log.debug(Payment.doGet() - session=+session);
  // add the transaction id to the session
  session.setAttribute(PARAMETER_TRANSACTION_ID, transactionId);
  // redirect to the receipt page
  Log.debug(Payment.doGet() - receiptUrl=+receiptURL);
  res.sendRedirect(res.encodeRedirectURL(receiptURL));


where the doGet of the receipt uRL servlet does:
// get the session associated with the request
HttpSession session = req.getSession(false);

Log.debug(Receipt.doGet() - session=+session);

Sometimes, the session is not defined anymore

 (not all the times: I can never reproduce the problem myself but the live systems 
fails 50% of the time)
Any idea, is this a known bug?
I doubt it is a timeout but  what is the default timeout session on tomcat?
Any help very welcome



Olivier Fillon
Managing Director and Principal Consultant
SoftOz Australia Pty Ltd
ABN 59 093 800 018
http://www.SoftOz.com
email: [EMAIL PROTECTED]
Mobile: 0417 762 651
A/H: +61 7 3289 4621



RE: help me

2002-06-12 Thread Barney Hamish

JAVA_HOME should be set as c:\jdk1.3 not c:\jdk1.3\bin
Hamish

-Original Message-
From: siva murugan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 2:24 AM
To: [EMAIL PROTECTED]
Subject: help me 


Sir/Madam,

 Fine and expect the same from U and all.

 Iam SivaMurugan from INDIA. Just minutes back i
downloaded jakarta-tomcat-4.0-20020530.zip from
http://jakarta.apache.org site.

 I tried my first servlet file in the name of
admin.java . I created the file and stored in the
directory of
c:\jakarta-tomcat-4.0\webapps\Root\WEB-INF . I
compiled using javadoc and i got the admin.class file
without any error, on my first attempt. To be frank i
was really feeeling great , since its my first time
downloading and running a program on an webserver.
Before that i set the classpath. I am using windows
2000 server. So i set the classpath in
MyComputer/Properties/SystemProperties/Advanced/Environmet
Variables/SystemVariables. Actually i set the
classpath as
c:\jakarta-tomcat-4.0\common\lib\servlet.jar;c:\jdk1.3\bin;

 Now tried to run the Tomcatwebserver from the
directory c:\jakarta-tomcat-4.0\bin\startup and
unfortunately i couldn't do that. Its showing the
following error. 

 The JAVA_HOME environment variable is not defined
 This environment Variable is needed to run this
program
 Using CATALINA_BASE:  ..
 Using CATALINA_HOME:  .. 
 Using CATALINA_TEMPDIR:  ..\temp
 Using JAVA_HOME:
 The System cannot find the file
-Djava.endorsed.dirs=.

So i tried to set the JAVA_HOME enviroment variable as
c:\jdk1.3\bin; Then i tried again, now also iam
getting the same error. What wrong? Please help me.. 

 Iam using 
JAVA VERSION 1.3.01
JAVA(TM)2 RUN TIMEENVIRONMENT, STANDARD EDITION
(BUILD  1.3.01)
JAVA HOTSPOT(TM) CLIENT VM (BUILD 1.3.01, MIXED
MODE)

 Waiting for a +ive and immediate mail from U
Sir/Madam.

Love,
Siva



__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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

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




RE: help me

2002-06-12 Thread John Niven

 -Original Message-
 From: siva murugan [mailto:[EMAIL PROTECTED]] 
 Sent: 12 June 2002 01:24
 To: [EMAIL PROTECTED]
 Subject: help me 
 
 
 Sir/Madam,
 
...snip...
 
  The JAVA_HOME environment variable is not defined
  This environment Variable is needed to run this
 program
  Using CATALINA_BASE:  ..
  Using CATALINA_HOME:  .. 
  Using CATALINA_TEMPDIR:  ..\temp
  Using JAVA_HOME:
  The System cannot find the file
 -Djava.endorsed.dirs=.
 
 So i tried to set the JAVA_HOME enviroment variable as 
 c:\jdk1.3\bin; Then i tried again, now also iam getting the 
 same error. What wrong? Please help me.. 
 

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/RUNNING.txt

* Set an environment variable JAVA_HOME to the pathname of the directory
  into which you installed the JDK release.

set JAVA_HOME=c:\jdk1.3


  Iam using 
   JAVA VERSION 1.3.01
   JAVA(TM)2 RUN TIMEENVIRONMENT, STANDARD EDITION
 (BUILD1.3.01)
   JAVA HOTSPOT(TM) CLIENT VM (BUILD 1.3.01, MIXED
 MODE)
 
  Waiting for a +ive and immediate mail from U
 Sir/Madam.
 
 Love,
 Siva
 

HTH
John

 --
John Niven
Please reply through mailing list

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




[offtopic] heaven and hell :)

2002-06-12 Thread Serge A. Redchuk

Hello ,

  
--
This e-mail was written on 100% recycled bytes!
--
With best forwards, Serge Redchuk
Web-Application Developer
[EMAIL PROTECTED], [EMAIL PROTECTED]

KSE
Paton Institute
20 Fedoreva St.
Building 7, 5th Floor
03150 Kiev
Ukraine

fon +380 44 495 2605
fax +380 44 495 2602

ICQ 59371423

www.kse.kiev.ua
attachment: paradise_hell.jpg
--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


Protecting a page with SSL

2002-06-12 Thread Donie Kelly

Hi all

I've setup SSL on tomcat but I can't find in the docs how to protect a .jsp
page or servlet mapping to force the connection over SSL

Please point me in the right direction.
Thanks
Donie

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




RE: Protecting a page with SSL

2002-06-12 Thread Sefton, Adam


Within your web.xml, inside the security-constraint tag, add:

user-data-constraint
 transport-guarantee
CONFIDENTIAL
 /transport-guarantee
/user-data-constraint

This will force the connection for the application.

If you want to force the connection for all applications across the Tomcat instance, 
then place this in the /conf/web.xml instead.

Hope this helps

Adam

-Original Message-
From: Donie Kelly [mailto:[EMAIL PROTECTED]]
Sent: 12 June 2002 12:21
To: 'Tomcat Users List'
Subject: Protecting a page with SSL


Hi all

I've setup SSL on tomcat but I can't find in the docs how to protect a .jsp
page or servlet mapping to force the connection over SSL

Please point me in the right direction.
Thanks
Donie

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


**
This message may contain information which is confidential or privileged.
If you are not the intended recipient, please advise the sender immediately
by reply e-mail and delete this message and any attachments
without retaining a copy.  

**


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




Re: +Tomcat+Performance??

2002-06-12 Thread peter lin


you can try it out in 4.1.4 when the binaries are released. a new
version of tag pooling, which is cleaner has already beed added. Once
the tires are kicked a bit, it should be in the first official 4.1.x
release.

peter


 As I see there is no tag pooling support as of now in 4.x.
 If my memory serves me right, it was lastly supported in 3.3.
 Let me know if it is avaiable in 4.x

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




RE: help me

2002-06-12 Thread puneet sachar

well according to ur problem

try and put ur setJAVA_HOME=ur dir before startup.bat
and catalaina home also there

and if this works..

thanx to shankar ...

he told me this and it works

Puneet
--- John Niven [EMAIL PROTECTED] wrote:
  -Original Message-
  From: siva murugan
 [mailto:[EMAIL PROTECTED]] 
  Sent: 12 June 2002 01:24
  To: [EMAIL PROTECTED]
  Subject: help me 
  
  
  Sir/Madam,
  
 ...snip...
  
   The JAVA_HOME environment variable is not defined
   This environment Variable is needed to run this
  program
   Using CATALINA_BASE:  ..
   Using CATALINA_HOME:  .. 
   Using CATALINA_TEMPDIR:  ..\temp
   Using JAVA_HOME:
   The System cannot find the file
  -Djava.endorsed.dirs=.
  
  So i tried to set the JAVA_HOME enviroment
 variable as 
  c:\jdk1.3\bin; Then i tried again, now also iam
 getting the 
  same error. What wrong? Please help me.. 
  
 

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/RUNNING.txt
 
 * Set an environment variable JAVA_HOME to the
 pathname of the directory
   into which you installed the JDK release.
 
 set JAVA_HOME=c:\jdk1.3
 
 
   Iam using 
  JAVA VERSION 1.3.01
  JAVA(TM)2 RUN TIMEENVIRONMENT, STANDARD EDITION
  (BUILD  1.3.01)
  JAVA HOTSPOT(TM) CLIENT VM (BUILD 1.3.01, MIXED
  MODE)
  
   Waiting for a +ive and immediate mail from U
  Sir/Madam.
  
  Love,
  Siva
  
 
 HTH
 John
 
  --
 John Niven
 Please reply through mailing list
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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




RE: How well does tomcat 4.0.03 work as a HTTP server?

2002-06-12 Thread John Roth

I agree with Trevor.  Here are a few things to think about as well:
1. Tomcat performance vs. dedicated web server (Apache or IIS):  Tomcat
(supposedly) is not as efficient at serving static content.  We switched off
of IIS/Tomcat because of a problem with SSL and large file uploads to Tomcat
standalone.  Because our app is 90% dynamic content, our tests showed no
change in performance.  If your app is highly static, a dedicated web server
offers some better 'tweaking' capabilities (such as cacheing static images,
etc).  Try it  measure your differences.
2. Using Tomcat in standalone mode does take a layer of complexity out of
the configuration.
3. Drawback: inability to use any other scripting languages in addition to
jsps, such as CGI, PHP, ASP

Just some food for thought!

John


-Original Message-
From: Trevor Nielsen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 2:08 AM
To: Tomcat Users List
Subject: Re: How well does tomcat 4.0.03 work as a HTTP server?



Tomcat works fine as a regular HTTP server, but does not server
up pages as well as a dedicated HTTP server like Apache.  It also
does not allow for the fine-tuning and advanced features of a
dedicated HTTP server (this is the reason that many people use
Tomcat to serve jsps/servlets from behind Apache). As long as your
are only planning to serve up pages to a small load and in the most
basic configuration, Tomcat should be fine.

Trevor.


- Original Message -
From: S W [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, June 12, 2002 2:23 PM
Subject: How well does tomcat 4.0.03 work as a HTTP server?


 HI Everyone,

 I'm curious has anyone used Tomcat as a regular http
 server, and would you recommend it?

 The reason I'm asking this quesion is because I'm not
 sure if it would be better to use IIS to redirect the
 Java pages to the Tomcat server or if it would be
 better to serve the htm pages straight from the Tomcat
 server.

 My concerns:
 - Adding IIS ads another layer leaving more chances
 for errors to occur
 - My knowledge of tomcat is limited at the moment as
 this is the first website I'm setting up using tomcat.


 Thank you any advice would be greatly appreciated.


 __
 Do You Yahoo!?
 Yahoo! - Official partner of 2002 FIFA World Cup
 http://fifaworldcup.yahoo.com

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






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


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




RE: getting exception when trying to close connection

2002-06-12 Thread Christian J. Dechery

I read in the javadoc of the .close() method, that when the garbage collector runs, it 
closes the connections.
 
Well, this isn't working obviously... the thing that's keeping me from solving the 
problem is the frequency it happens... I can't understand why a connection can't be 
closed... I know of no timeouts set on oracle,and if it had... the connection AND the 
socket would be closed, don't u think? And I still have dozens of open INACTIVE 
connections on oracle...
 
A timeout on the Connection obj is also hard to believe... even because when I 
debugged it with a page opening 10 connections (just for testing, I don't have such a 
page)... 3 of them didn't close... and it was not the last three... just some random 
conns... 
 
and I guess when the finalize() method runs, its because there's no use for that 
object (in this case the DAO) anymore, right? So what would cause the exception? I'll 
try to focus on the booleans, but I don't think it'll help, since everytime I debugged 
it, the error is always on the con.close(), meaning the booleans are ok.
 
I'm hopeless!
 
 
.:| Christian J. Dechery
.:| FINEP - Depto. de Sistemas
.:| [EMAIL PROTECTED]
.:| (21) 2555-0332

 [EMAIL PROTECTED] 11/06/02 18:17  
OK well, a couple answers first. The socket that is being referred to is the 
underlying (usually tcp/ip) socket that your driver uses to connect to the 
database. A connection is an abstraction from what the implementation socket 
is. A couple things could be happening with your oracle driver. First, there 
can be an inactive timeout set on your oracle database, where connections 
are closed after a timeout period to free up resources. You would get the 
same error if for instance the server on the other end lost power, and 
therefore closed the connection by being turned off. The other thing is, 
your driver could have a timeout set. I haven't used the oracle driver 
extensively, so i'm not really sure how you configure it. Look in the docs. 
The other thing you want to do is separate out those three boolean 
statements so you can determine which one is failing. Checking for null is 
not going to throw the exception so pretty much focus on your last two. (and 
look at your driver configuration docs) you may want to try this method 
instead. 
static Connection getConnection(String url, Properties info); 
//Attempts to establish a connection to the given database URL. 
In properties, you can specify driver settings. 

Zak 

-Original Message- 
From: Christian J. Dechery [ mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, June 11, 2002 12:03 PM 
To: [EMAIL PROTECTED] 
Subject: RE: getting exception when trying to close connection 


ok... there you go: 

public DAOFundos(Esquema esq) { 

if( esq==null ) { 
esq = esquemaDefault; 
} 

try { 
Class.forName( esq.getDriver() ); 
con = DriverManager.getConnection(esq.getUrl(), esq.getUser(), 
esq.getPassword()); 
} 
catch(ClassNotFoundException cnf) { 
System.out.println (Erro: driver nao encontrado! +cnf.getMessage()); 
} 
catch(SQLException sql) { 
System.out.println(Erro ao obter conexão! +sql.getMessage() ); 
} 
} 

this is the code for the default constructor... in this case the class 
Esquema contains info about: drivers, user, url and pwd. 
the driver is always oracle.jdbc.driver.OracleDriver 

thanks again 


.:| Christian J. Dechery 
.:| FINEP - Depto. de Sistemas 
.:| [EMAIL PROTECTED] 
.:| (21) 2555-0332 

 [EMAIL PROTECTED] 11/06/02 16:03  
It would be halpful to see the declaration of con, and the type of driver 
you are using 


-Original Message- 
From: Christian J. Dechery [ mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, June 11, 2002 11:41 AM 
To: [EMAIL PROTECTED] 
Subject: getting exception when trying to close connection 


I know my implementation isn't the best there is... take a look at this 
code: 

protected void finalize() 

try 

if( con!=null  !con.isClosed()  con.getAutoCommit() ) 

con.close(); 
} 
} 
catch(SQLException sqle) 

System.out.println([+this.getClass().getName()+] Não foi possível 
fechar a conexão. +sqle.toString()+\n); 
// sqle.printStackTrace(); 
} 
} 

that's what I use to TRY to close all connections... this code is in my DAO 
class. Sometimes I have up to four DAO classes instantiated in a single 
JSP... I debugged it... at least one always fails to close giving me this 
exception: I/O error: socket closed 

what does that mean? what socket? And why did all the other connections 
closed and this didn't? 

.:| Christian J. Dechery 
.:| FINEP - Depto. de Sistemas 
.:| [EMAIL PROTECTED] 
.:| (21) 2555-0332 



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






Problem with passing japanese values to a servlet

2002-06-12 Thread mubariz kharbe
Hi,

I am developing an internationalized web based application using Tomcat 3.1 on Windows 
2000. I am facing the following problems

When I pass Japanese values to the servlet and I retreive the value using 
myData = httpservletrequest.getParameter("foo");
I get ?? in myData.
So I used
myDataNew = new String(myData.getBytes("ISO-8859-1"),"UTF-8");
This is the solution that is found at most forums I looked for.
I still get the value of myDataNew as ??.
I am able to get the correct value in myDataNew only after I boot my server with 
default locale as Japanese. But I cannot do that since my application is web based and 
needs to have support for all the languages. So the server should necessarily be on 
English OS. This is also the business requirement.

Question 1. What should be done so that running the server on English OS I will be 
able to get the correct value in myData for all the languages, specially Japanese?

The new tomcat 4.0.3 uses the Servlet Engine 2.3 in which there is a facility to set 
the character encoding for the httpservletrequest. I upgraded my tomcat server to 
4.0.3.
Now I tried using 
httpservletrequest.setCharacterEncoding("UTF-8");
myData = httpservletrequest.getParameter("foo");
And I am still getting the value of myData as ?? for Japanese values.

Question 2. Is there a problem in the way I am using 
httpservletrequest.setCharacterEncoding method? What else is needed to be done?

Any advice will be greatly appreciated.

Thanking in anticipation
Regards
Mubariz









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


RE: Protecting a page with SSL

2002-06-12 Thread Donie Kelly

Thanks Adam

It sort of works now. I have a URL mapped as /info

I can access it as https://nysa/info and it works
If I use http://nysa/info I get HTTP 500 Internal Server Error

I want the request from http to re-direct to https. What am I doing wrong?
Thanks
Donie

Here is my web.xml

  servlet
servlet-nameinfo/servlet-name
jsp-file/onm/index.jsp/jsp-file
  /servlet

  servlet-mapping
servlet-nameinfo/servlet-name
url-pattern/info/url-pattern
  /servlet-mapping

  security-constraint
  web-resource-collection
  web-resource-namesecure/web-resource-name
  url-pattern/info/url-pattern
  /web-resource-collection

  user-data-constraint
  transport-guaranteeCONFIDENTIAL/transport-guarantee
  /user-data-constraint
  /security-constraint

And here is part of my server.xml

  Service name=Tomcat-Standalone

!-- Define an SSL HTTP/1.1 Connector on port 443 --
Connector className=org.apache.catalina.connector.http.HttpConnector
port=443 minProcessors=5 maxProcessors=75
enableLookups=true
acceptCount=10 debug=0 scheme=https
secure=true
Factory
className=org.apache.catalina.net.SSLServerSocketFactory
clientAuth=false protocol=TLS
keystoreFile=c:\tomcat4.0\.keystore
keystorePass=changit
 /
/Connector

!-- Define a non-SSL HTTP/1.1 Connector on port 80 --
Connector className=org.apache.catalina.connector.http.HttpConnector
port=80 minProcessors=5 maxProcessors=75
enableLookups=false
redirectPort=443 acceptCount=10 debug=0
connectionTimeout=6
allowChunking=false/

Engine name=Standalone defaultHost=localhost debug=0
  Logger className=org.apache.catalina.logger.FileLogger
prefix=catalina_log. suffix=.txt timestamp=true/
  Realm className=org.apache.catalina.realm.MemoryRealm /
  Host name=localhost debug=0 appBase=webapps
unpackWARs=false

Context path=
docBase=c:\mmsdev\dev\mms\webapps\mms/Context
  Context path=/images
docBase=c:\mmsdev\dev\mms\webapps\mms\onm\images/Context
  Context path=/tp
docBase=c:\mmsdev\dev\mms\webapps\tp/Context
/Host
/Engine
  /Service


 -Original Message-
From:   Sefton, Adam [mailto:[EMAIL PROTECTED]] 
Sent:   12 June 2002 12:28
To: 'Tomcat Users List'
Subject:RE: Protecting a page with SSL


Within your web.xml, inside the security-constraint tag, add:

user-data-constraint
 transport-guarantee
CONFIDENTIAL
 /transport-guarantee
/user-data-constraint

This will force the connection for the application.

If you want to force the connection for all applications across the Tomcat
instance, then place this in the /conf/web.xml instead.

Hope this helps

Adam

-Original Message-
From: Donie Kelly [mailto:[EMAIL PROTECTED]]
Sent: 12 June 2002 12:21
To: 'Tomcat Users List'
Subject: Protecting a page with SSL


Hi all

I've setup SSL on tomcat but I can't find in the docs how to protect a .jsp
page or servlet mapping to force the connection over SSL

Please point me in the right direction.
Thanks
Donie

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


**
This message may contain information which is confidential or privileged.
If you are not the intended recipient, please advise the sender immediately
by reply e-mail and delete this message and any attachments
without retaining a copy.  

**


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

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




Re: BARCODE

2002-06-12 Thread David Kavanagh

I've done it using a barcode font. Simply load the fonts and render the 
string you wish to encode. You can generate a BufferedImage in the 
servlet, and stream a jpeg to the browser. Here is where I got the font 
I've used.

http://www.zebex.com/free.asp

Good luck!

David

Lee Chin Khiong wrote:

DOES ANYBODY KNOWS HOW TO GENERATE BARCODE USING JAVA OR JSP ?
 




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




Re: BARCODE

2002-06-12 Thread Adrian

What kind of Barcode, Please type in lowercase.
- Original Message - 
From: Lee Chin Khiong [EMAIL PROTECTED]
To: Tomcat Users List (E-mail) [EMAIL PROTECTED]
Sent: Wednesday, June 12, 2002 2:06 AM
Subject: BARCODE


 DOES ANYBODY KNOWS HOW TO GENERATE BARCODE USING JAVA OR JSP ?
  
 



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




Re: help me

2002-06-12 Thread puneet sachar

siva,,,

i 'm facing same probelm for 5 days and no one helped
me...

shankar is there u asked him 
he is there in developer form..he will definately help
u''

Puneet
--- siva murugan [EMAIL PROTECTED] wrote:
 Sir/Madam,
 
  Fine and expect the same from U and all.
 
  Iam SivaMurugan from INDIA. Just minutes back i
 downloaded jakarta-tomcat-4.0-20020530.zip from
 http://jakarta.apache.org site.
 
  I tried my first servlet file in the name of
 admin.java . I created the file and stored in the
 directory of
 c:\jakarta-tomcat-4.0\webapps\Root\WEB-INF . I
 compiled using javadoc and i got the admin.class
 file
 without any error, on my first attempt. To be frank
 i
 was really feeeling great , since its my first time
 downloading and running a program on an webserver.
 Before that i set the classpath. I am using windows
 2000 server. So i set the classpath in

MyComputer/Properties/SystemProperties/Advanced/Environmet
 Variables/SystemVariables. Actually i set the
 classpath as

c:\jakarta-tomcat-4.0\common\lib\servlet.jar;c:\jdk1.3\bin;
 
  Now tried to run the Tomcatwebserver from the
 directory c:\jakarta-tomcat-4.0\bin\startup and
 unfortunately i couldn't do that. Its showing the
 following error. 
 
  The JAVA_HOME environment variable is not defined
  This environment Variable is needed to run this
 program
  Using CATALINA_BASE:  ..
  Using CATALINA_HOME:  .. 
  Using CATALINA_TEMPDIR:  ..\temp
  Using JAVA_HOME:
  The System cannot find the file
 -Djava.endorsed.dirs=.
 
 So i tried to set the JAVA_HOME enviroment variable
 as
 c:\jdk1.3\bin; Then i tried again, now also iam
 getting the same error. What wrong? Please help me..
 
 
  Iam using 
   JAVA VERSION 1.3.01
   JAVA(TM)2 RUN TIMEENVIRONMENT, STANDARD EDITION
 (BUILD1.3.01)
   JAVA HOTSPOT(TM) CLIENT VM (BUILD 1.3.01, MIXED
 MODE)
 
  Waiting for a +ive and immediate mail from U
 Sir/Madam.
 
 Love,
 Siva
 
 
 
 __
 Do You Yahoo!?
 Yahoo! - Official partner of 2002 FIFA World Cup
 http://fifaworldcup.yahoo.com
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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




Do scripts kill the HTTPsession object?

2002-06-12 Thread kevin_mckee

When I push down scripts to a client by putting something like
Script LANGUAGE = 'JavaScript' SRC
='wwwroot/intranet/includes/menuBar.js'/Script in the document - all of
a sudden I can no longer store or retrieve values from the HTTPsession
object.  I have to restart the server to get it back.  Does anyone know
why?  My background is with IIS and I know this works fine in that
environment

[EMAIL PROTECTED]


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




Re: help me

2002-06-12 Thread Tom Anderl

Also, you probably should not have c:\jdk1.3\bin in your classpath.  
Depending on which Virtual Machine or compiler you're using, you may need 
c:\jdk1.3\jre\lib\rt.jar to be in your classpath, but you should never 
need the bin directory in your classpath.

Tom

On Wed, 12 Jun 2002, kf platypus wrote:

 Your JAVA_HOME environment variable should be set to c:\jdk1.3 and not 
 c:\jdk1.3\bin and that should solve it.
 
 Regards!
 
 
 From: puneet sachar [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Re: help me Date: Wed, 12 Jun 2002 05:14:57 -0700 (PDT)
 
 siva,,,
 
 i 'm facing same probelm for 5 days and no one helped
 me...
 
 shankar is there u asked him
 he is there in developer form..he will definately help
 u''
 
 Puneet
 --- siva murugan [EMAIL PROTECTED] wrote:
   Sir/Madam,
  
Fine and expect the same from U and all.
  
Iam SivaMurugan from INDIA. Just minutes back i
   downloaded jakarta-tomcat-4.0-20020530.zip from
   http://jakarta.apache.org site.
  
I tried my first servlet file in the name of
   admin.java . I created the file and stored in the
   directory of
   c:\jakarta-tomcat-4.0\webapps\Root\WEB-INF . I
   compiled using javadoc and i got the admin.class
   file
   without any error, on my first attempt. To be frank
   i
   was really feeeling great , since its my first time
   downloading and running a program on an webserver.
   Before that i set the classpath. I am using windows
   2000 server. So i set the classpath in
  
 MyComputer/Properties/SystemProperties/Advanced/Environmet
   Variables/SystemVariables. Actually i set the
   classpath as
  
 c:\jakarta-tomcat-4.0\common\lib\servlet.jar;c:\jdk1.3\bin;
  
Now tried to run the Tomcatwebserver from the
   directory c:\jakarta-tomcat-4.0\bin\startup and
   unfortunately i couldn't do that. Its showing the
   following error.
  
The JAVA_HOME environment variable is not defined
This environment Variable is needed to run this
   program
Using CATALINA_BASE:  ..
Using CATALINA_HOME:  ..
Using CATALINA_TEMPDIR:  ..\temp
Using JAVA_HOME:
The System cannot find the file
   -Djava.endorsed.dirs=.
  
   So i tried to set the JAVA_HOME enviroment variable
   as
   c:\jdk1.3\bin; Then i tried again, now also iam
   getting the same error. What wrong? Please help me..
  
  
Iam using
 JAVA VERSION 1.3.01
 JAVA(TM)2 RUN TIMEENVIRONMENT, STANDARD EDITION
   (BUILD1.3.01)
 JAVA HOTSPOT(TM) CLIENT VM (BUILD 1.3.01, MIXED
   MODE)
  
Waiting for a +ive and immediate mail from U
   Sir/Madam.
  
   Love,
   Siva
  
  
  
   __
   Do You Yahoo!?
   Yahoo! - Official partner of 2002 FIFA World Cup
   http://fifaworldcup.yahoo.com
  
   --
   To unsubscribe, e-mail:
   mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
   mailto:[EMAIL PROTECTED]
  
 
 
 __
 Do You Yahoo!?
 Yahoo! - Official partner of 2002 FIFA World Cup
 http://fifaworldcup.yahoo.com
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 
 
 
 _
 Send and receive Hotmail on your mobile device: http://mobile.msn.com
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 


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




Re: mod_jk.so tomcat 4.0.3 and apache 1.3.22

2002-06-12 Thread PJ Crump

I have been getting the same error for days and have tried a lot of things
to no avail.  Lets try to share our experiences and hopefully we can both
find a solution
- Original Message -
From: zibie [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 12, 2002 5:06 AM
Subject: mod_jk.so tomcat 4.0.3 and apache 1.3.22



 I have a problem with connector ajp.
 When i try to load mod_jk.so into apache 1.3.22, in log file i find:

 tail logs/mod_jk.logs

 [Wed Jun 12 12:02:17 2002]  [jk_connect.c (151)]: jk_open_socket,
 connect() failed errno = 111
 [Wed Jun 12 12:02:17 2002]  [jk_ajp_common.c (598)]: In
 jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 111

 how can i solve this problem ?

 regards


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




AW: getting exception when trying to close connection

2002-06-12 Thread Ralph Einfeldt

It's probaly not a timeout of the connection object, but
one of the database server. If the database server has
a timeout for open connections, the connection on the driver
side is 'open' but not functional any more. What exactly 
happens depends on the driver. (I've seen posts where people 
reported that isClosed() still return false in such a case 
for a certain driver). My last contact with oracle is to long 
ago to be more specific. But I know that there is a default 
timeout for connections in oracle (No, I can't remember how 
to query or set it).

 -Ursprüngliche Nachricht-
 Von: Christian J. Dechery [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 12. Juni 2002 14:01
 An: [EMAIL PROTECTED]
 Betreff: RE: getting exception when trying to close connection
 
 A timeout on the Connection obj is also hard to believe... 
 even because when I debugged it with a page opening 10 
 connections (just for testing, I don't have such a page)... 3 
 of them didn't close... and it was not the last three... just 
 some random conns... 
  

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




RE: Is it available Tomcat 2?

2002-06-12 Thread Turner, John


The Apache::ASP module from nodeworks.com should work with Apache 1.3.x and
Apache 2.0. You will need mod_perl installed or loaded.

Chilisoft is not officially supported on Apache 2, as far as I know.  I've
worked with Chilisoft ASP on Apache 1.3.x, and the install and configuration
is fairly easy if you follow the instructions.  Development licenses for
Chilisoft are free, if I recall correctly, and production licenses are
approx. $500 USD.  Since development licenses are free, it might be worth a
test to see if it works with Apache 2.

Neither Apache::ASP or Chilisoft ASP have anything to do with Tomcat, both
products are written as Apache modules.

John Turner
[EMAIL PROTECTED]
http://www.aas.com


-Original Message-
From: Luca Ventura [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 6:19 AM
To: Tomcat Users List
Cc: [EMAIL PROTECTED]
Subject: R: Is it available Tomcat 2?


Hello!

Thanks for your clarifications...

A question: do the modules to support ASP you indicated to me
work only with Apache 2? or with Tomcat 4 too?

Can Apache 2 support JSP/Servlets without Tomcat?

Thanks,

   Luca

-Messaggio originale-
Da: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
Inviato: mercoledì 12 giugno 2002 11.49
A: Tomcat Users List
Oggetto: AW: Is it available Tomcat 2?


- Apache is not tomcat.
  Apache is 'just' a web server, tomcat is a web server, a servlet
  engine and a jsp engine. The web server part of tomcat can be
  replaced by apache. In this mode tomcat is an extension of apache
  that provides apache with servlets and JSP's.

- There are modules that extend Apache to support ASP
  http://www.nodeworks.com/asp/
  http://www.chilisoft.com/chiliasp/default.asp

- Apache 2 is available for download
  http://www.apache.org/dist/httpd/

 -Ursprüngliche Nachricht-
 Von: Luca Ventura [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 12. Juni 2002 11:37
 An: tomcat-user
 Betreff: Is it available Tomcat 2?


 Hello everybody!

 I would like to know if it is true that the next version of
 Tomcat (called Apache 2) supports ASP pages. Is it Apache 2
 available for download (final version)?


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



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



RE: newbie question urgent plz

2002-06-12 Thread Shapira, Yoav

Howdy,
Wow, this question really comes up a lot ;)

Tomcat 4.x is an implementation of the servlet specification, v2.3.  That spec says 
all servlet elements must come before all servlet-mapping elements.  Tomcat 3.x, 
which implements servlet spec v2.2, does not have the same requirement.  See the 
servlet spec for a detailed explanation of the DTD for web.xml.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Vikramjit Singh [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 3:02 AM
To: 'Tomcat Users List'
Subject: RE: newbie question urgent plz

Hi,

thanks for your help markus, ashraf and sankar. I have deployed my CorpMIS
context. I went through the docs and then slowly started fresh. one very
strange problem i found was this, earlier i was writing my web.xml file
like
this

 servlet
  servlet-nameCreateCompanyMstr/servlet-name

servlet-
classcom.gtl.corpmis.admin.adminservlets.CreateCompanyMstr/servle
t-class
/servlet
servlet-mapping
servlet-nameCreateCompanyMstr/servlet-name
url-pattern/CreateCompanyMstr/url-pattern
/servlet-mapping

 servlet
  servlet-nameCreateRoleMstr/servlet-name

servlet-classcom.gtl.corpmis.admin.adminservlets.CreateRoleMstr/servlet-
c
lass
/servlet
servlet-mapping
servlet-nameCreateRoleMstr/servlet-name
url-pattern/CreateRoleMstr/url-pattern
/servlet-mapping

due to which i was getting error, and u said to check manager/list which
was
giving CorpMIS notstarted : 0.

but when i changed my web.xml file to

 servlet
  servlet-nameCreateCompanyMstr/servlet-name

servlet-
classcom.gtl.corpmis.admin.adminservlets.CreateCompanyMstr/servle
t-class
/servlet

 servlet
  servlet-nameCreateRoleMstr/servlet-name

servlet-classcom.gtl.corpmis.admin.adminservlets.CreateRoleMstr/servlet-
c
lass
/servlet

servlet-mapping
servlet-nameCreateCompanyMstr/servlet-name
url-pattern/CreateCompanyMstr/url-pattern
/servlet-mapping

servlet-mapping
servlet-nameCreateRoleMstr/servlet-name
url-pattern/CreateRoleMstr/url-pattern
/servlet-mapping

it worked. Could anybody tell me the reason for it. Since it used to work
with the earlier structure of web.xml in tomcat 3.2.1.

Regards,
Vikramjit Singh,
Systems Engineer,
GTL Ltd.
Ph. 7612929-1031


-Original Message-
From: Markus Kirsten [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 11, 2002 6:08 AM
To: Tomcat Users List
Subject: Re: newbie question urgent plz


Check the documentation! This is not an error, since you havn't supplied
the manager application with any command. Try /list after manager...

Please look at the documenation before asking questions. You've got all
you need @ http://jakarta.apache.org/tomcat/tomcat-4.0-doc/manager-
howto.html. Please mail back if you still having problems.


Markus


On tisdag, juni 11, 2002, at 02:48 , Vikramjit Singh wrote:

 ok changed the role to manager, now i didnt get that error, but this
 line

 FAIL - Unknown command




 -Original Message-
 From: Arshad Mahmood [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, June 11, 2002 5:47 AM
 To: Tomcat Users List
 Subject: Re: newbie question urgent plz


 The role needs to be manager not tomcat to use the manager
 application.

 Regards,
 Arshad

 - Original Message -
 From: Vikramjit Singh [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Tuesday, June 11, 2002 1:22 PM
 Subject: RE: newbie question urgent plz


 yeah i opened my tomcat-users and changed the existing file. now the
 file
 contains this

 !--
   NOTE:  By default, no user is included in the manager role required
   to operate the /manager web application.  If you wish to use this
 app,
   you must define such a user - the username and password are
 arbitrary.
 --
 tomcat-users
   user name=vikram password=vikram roles=tomcat /
   user name=role1  password=tomcat roles=role1  /
   user name=both   password=tomcat roles=tomcat,role1 /
 /tomcat-users

 in the url i am writing http://localhost/manager

 username is vikram
 password is vikram

 It is giving

 type Status report

 message Access to the requested resource has been denied

 description Access to the specified resource (Access to the requested
 resource has been denied) has been forbidden.


 Regards,
 Vikramjit Singh,
 Systems Engineer,
 GTL Ltd.
 Ph. 7612929-1031


 -Original Message-
 From: Markus Kirsten [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, June 11, 2002 4:43 AM
 To: Tomcat Users List
 Subject: Re: newbie question urgent plz


 Hi,
 Check your tomcat-users file located in /conf/ and add an account with
 the role manager or change an existing one.

 Good luck!


 Markus


 On tisdag, juni 11, 2002, at 01:32 , Vikramjit Singh wrote:

 yeah the directory structure is exactly the same.
 how do i check the mananger list i am typing
 http://localhost:8080/manager
 its asking for password.


 Regards,
 Vikramjit Singh,
 

RE: Newbie Question: Apache+Tomcat configuration

2002-06-12 Thread Turner, John


You basically need to choose between mod_jk and mod_webapp as your
Apache-to-Tomcat connector.  If you look in the mailing list archives for
yesterday (June 11, 2002) you will see a brief How-To that I posted for
installing and setting up mod_webapp (though that was with Apache 2).

This URL might help with Apache 1.3, though it only addresses pre-version 4
Tomcat:
http://www.galatea.com/flashguides/apache-tomcat-unix.xml

There seems to be some issues with restricting mod_webapp to JSP and
servlets only...apparently mod_webapp sends all HTTP requests to Tomcat,
even images and HTML documents, which is bad.  From what I have read so far,
restricting mod_jk to serving only JSP and servlets is something that has
been done and is working.

There's a fairly severe lack of documentation on how to get Apache and
Tomcat working together...if you get yours working successfully, it would be
great if you could post a brief How-To document.

John Turner
[EMAIL PROTECTED]
http://www.aas.com


-Original Message-
From: Stonix [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 11, 2002 9:54 PM
To: Tomcat Users List
Subject: Newbie Question: Apache+Tomcat configuration


Hi,

I am absolutely newbie on Tomcat.
I have a Linux RH 7.1 box and a Apache 1.3.19 running on it. 
I just installed Tomcat 4.0.3. Seems like it has been successfully 
installed because if test it on 8080 port all the java examples 
running perfect. Now, what have to be done for the rest? I guess 
I need to configure both Tomcat and Apache to have them work 
together. However I don't know where to start from. What I want 
are, the apache should be the primary web server, and only java 
JSP and serverlet will be thrown to Tomcat; and, both servers 
recognize same document directories for those virtual hosts.
If any one out there can give me a brief explaination abou this
or just recomend a article, please give me a hand. Thanks in
advance!

Alex

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



Re: mod_jk.so tomcat 4.0.3 and apache 1.3.22

2002-06-12 Thread zibie


is there something to do to omit this error 
i can't use AJP connector.

My system is Linux/Slackware 8.0 and kernel 2.4.19pre1
Tomcat version 4.0.3
Connector from package jakarta-connector-tomcat-4.0.2src download from 
jakarta.apache.org.

i did:
tar zxf jakarta-connector-tomcat-4.0.2src
cd jakarta-connector-tomcat-4.0.2src/jk/native/apache-1.3
chmod 750 build-unix.sh
./build-unix.sh

compilation ok
cp mod_jk.so /usr/local/apache/libexec

I haven't get any error information.

If I upgrade Apache to 1.3.23 or 1.3.24 the problem disapear ?
Maybe Apache 2.x.x ?

Uytkownik PJ Crump napisa:
 I have been getting the same error for days and have tried a lot of things
 to no avail.  Lets try to share our experiences and hopefully we can both
 find a solution
I have a problem with connector ajp.
When i try to load mod_jk.so into apache 1.3.22, in log file i find:

tail logs/mod_jk.logs

[Wed Jun 12 12:02:17 2002]  [jk_connect.c (151)]: jk_open_socket,
connect() failed errno = 111
[Wed Jun 12 12:02:17 2002]  [jk_ajp_common.c (598)]: In
jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 111

how can i solve this problem ?



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




AJP13 through a firewall get stuck

2002-06-12 Thread Jan Singer

Hi all,

we have problems with AJP13 through a firewall. Our configuration is as
follows:

Webserver: SUN Solaris 2.8 (SPARC), Apache 1.3.24 with mod_jk 1.2 (from
jakarta-tomcat-connectors-4.0.2-01-src.tar.gz), configured to use AJP13

Firewall: Checkpoint FW1

Tomcat: SUN Solaris 2.6 (SPARC), Java 1.3.1, Tomcat 3.2.1 (will be
upgraded to 3.2.3 shortly), 3.2.3 and 4.0.3 (three different projects)

Everything works fine until the firewall drops the open connections
between apache and tomcat. It does so if the connection is idle for one
hour, and we can't change this behaviour because it's not in our
responsibility. The firewall drops the connection without any notify, so
mod_jk does not close its pooled connections.

Now the first request to a servlet after this happens will be stuck.
This meens tomcat never receives the request, and apache does not
respond anything to the browser. A second request is working most of the
times (so the connections are reopened), but sometimes (allways with
tomcat 3.2.1) only a restart of apache helps.

Does anyone have this problem and maybe a solution to it?

If not, do you think it will be a usefull feature to have a timeout for
the connections in the way that mod_jk closes all open connection after
a configurable time? Or would it be better to implement a keep-alive
into the protocol?

Thanks,

Jan


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




Re: System.out.println

2002-06-12 Thread @Basebeans.com

Subject: Re: System.out.println
From: Simon [EMAIL PROTECTED]
 ===
The System.out.println should normal goes to catalina.out under tomcat/logs

Simon.



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




Re: Apache + Tomcat + SSI

2002-06-12 Thread rsequeira



Apache behaves like a proxy server when it sees jsp requests. It just
forwards the jsp request to Tomcat. When Tomcat finishes generating a
response, it passes it to Apache which then serves the response back to the
client *without parsing it*. Apache can parse, only, static requests. So
all those who have been telling you to use jsp includes (dynamic) are
correct. You could, of course, use static includes (%@ include
=filename%. Reduces response time.
Some additional info: You could use ssi includes with Tomcat. I'm not sure
though since I haven't tried it. I think it looks for a particular file
extension, namely *.shtml, and parses only those files. But anyway, if you
wish to experiment, look under the TOMCAT_HOME/server/lib directory for
servlets-ssi.renametojar. Rename it to servlets-ssi.jar. Uncomment the

Server Side Includes section in TOMCAT_HOME/conf/web.xml. Test it out.

RS





Helmut Rubasch   06/12/2002 03:00 AM
(Embedded image moved to file: pic32209.pcx)

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:[EMAIL PROTECTED]
cc:

Subject:Apache + Tomcat + SSI

Hello everyone!

I have a problem concerning Apache + Tomcat + mod_jk + SSI (server side
includes):
I want to place a SSI in a html-page which is dynamically generated by a
jsp-page.
In static html-files (in those in my Apache htdocs-directory) SSI are
working perfectly, but as soon as the page is generated by Tomcat, the
SSI-directives are just sent to the browser, but not evaluated.
So for my problem  Apache would have to let Tomcat handle the jsp-Request
first and then parse the generated document for SSI-directives --- how
could I configure it to do so???

In the archives I found some questions like this one, but I have not seen
a solution posted for this problem yet ... only some people proposing to
use jsp:includes instead, but I really DO want Apache to handle these
includes (performance)!!!

Is there a solution for my configuration (Apache 1.3 + Tomcat 3.2.3) or
for a different configuration (like Apache 2.0 + Tomcat 4.0) ???

Thanks for any hints
Helmut Rubasch


Silbergrau Consulting  Software GmbH
fon: +43.70.779169-25
Dipl.Ing. Helmut Rubasch
fax: +43.70.779169-12
Stifterstraße 28/3, Postfach 21
[EMAIL PROTECTED]
A-4014 Linz
www.silbergrau.com









pic32209.pcx
Description: Binary data

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


RE: Protecting a page with SSL

2002-06-12 Thread Donie Kelly

Can somebody please answer this please...
Donie

 -Original Message-
From:   Donie Kelly [mailto:[EMAIL PROTECTED]] 
Sent:   12 June 2002 12:59
To: 'Tomcat Users List'
Subject:RE: Protecting a page with SSL

Thanks Adam

It sort of works now. I have a URL mapped as /info

I can access it as https://nysa/info and it works
If I use http://nysa/info I get HTTP 500 Internal Server Error

I want the request from http to re-direct to https. What am I doing wrong?
Thanks
Donie

Here is my web.xml

  servlet
servlet-nameinfo/servlet-name
jsp-file/onm/index.jsp/jsp-file
  /servlet

  servlet-mapping
servlet-nameinfo/servlet-name
url-pattern/info/url-pattern
  /servlet-mapping

  security-constraint
  web-resource-collection
  web-resource-namesecure/web-resource-name
  url-pattern/info/url-pattern
  /web-resource-collection

  user-data-constraint
  transport-guaranteeCONFIDENTIAL/transport-guarantee
  /user-data-constraint
  /security-constraint

And here is part of my server.xml

  Service name=Tomcat-Standalone

!-- Define an SSL HTTP/1.1 Connector on port 443 --
Connector className=org.apache.catalina.connector.http.HttpConnector
port=443 minProcessors=5 maxProcessors=75
enableLookups=true
acceptCount=10 debug=0 scheme=https
secure=true
Factory
className=org.apache.catalina.net.SSLServerSocketFactory
clientAuth=false protocol=TLS
keystoreFile=c:\tomcat4.0\.keystore
keystorePass=changit
 /
/Connector

!-- Define a non-SSL HTTP/1.1 Connector on port 80 --
Connector className=org.apache.catalina.connector.http.HttpConnector
port=80 minProcessors=5 maxProcessors=75
enableLookups=false
redirectPort=443 acceptCount=10 debug=0
connectionTimeout=6
allowChunking=false/

Engine name=Standalone defaultHost=localhost debug=0
  Logger className=org.apache.catalina.logger.FileLogger
prefix=catalina_log. suffix=.txt timestamp=true/
  Realm className=org.apache.catalina.realm.MemoryRealm /
  Host name=localhost debug=0 appBase=webapps
unpackWARs=false

Context path=
docBase=c:\mmsdev\dev\mms\webapps\mms/Context
  Context path=/images
docBase=c:\mmsdev\dev\mms\webapps\mms\onm\images/Context
  Context path=/tp
docBase=c:\mmsdev\dev\mms\webapps\tp/Context
/Host
/Engine
  /Service


 -Original Message-
From:   Sefton, Adam [mailto:[EMAIL PROTECTED]] 
Sent:   12 June 2002 12:28
To: 'Tomcat Users List'
Subject:RE: Protecting a page with SSL


Within your web.xml, inside the security-constraint tag, add:

user-data-constraint
 transport-guarantee
CONFIDENTIAL
 /transport-guarantee
/user-data-constraint

This will force the connection for the application.

If you want to force the connection for all applications across the Tomcat
instance, then place this in the /conf/web.xml instead.

Hope this helps

Adam

-Original Message-
From: Donie Kelly [mailto:[EMAIL PROTECTED]]
Sent: 12 June 2002 12:21
To: 'Tomcat Users List'
Subject: Protecting a page with SSL


Hi all

I've setup SSL on tomcat but I can't find in the docs how to protect a .jsp
page or servlet mapping to force the connection over SSL

Please point me in the right direction.
Thanks
Donie

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


**
This message may contain information which is confidential or privileged.
If you are not the intended recipient, please advise the sender immediately
by reply e-mail and delete this message and any attachments
without retaining a copy.  

**


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

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

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




RE: LDAP Authentication with Tomcat 4.1.3

2002-06-12 Thread Josh Fenlason

I used to use Apache1.3.24 and Tomcat 3.2 and I did the ldap authentication
from Apache with two ou entries.  Now I'm moving to Apache2 but the ldap
authentication modules don't seem to work, so I need to get Tomcat to do the
ldap authentication.  If anyone could give me a pointer, I would greatly
appreciate it.  Thanks in advance.
,
Josh.

-Original Message-
From: John Burgess [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 4:21 AM
To: Tomcat Users List
Subject: RE: LDAP Authentication with Tomcat 4.1.3


Is having two OU entries OK?

Best Wishes
John Burgess
[EMAIL PROTECTED]
Tel: 01865 718666
Fax: 01865 718600


-Original Message-
From: Josh Fenlason [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 11, 2002 9:12 PM
To: Tomcat
Subject: LDAP Authentication with Tomcat 4.1.3


I'm trying to do LDAP Authentication in Tomcat 4.1.3.  I found some a couple
of links that said to use LDAPRealm in Tomcat's server.xml, but I still
haven't had any luck.  Has anyone else been able to get this to work?  Here
are the two Realm elements that I've tried in server.xml.  Any help would be
greatly appreciated.  Thanks.
,
Josh.

Realm className=com.peacetech.webtools.tomcat.LdapRealmCatalina
debug=1
directoryUrl = ldap://corvette.mn.ptc.com:389;
searchBindDN = ou-jfenlason_r62DC,ou=jfenlason,l=Arden Hills,o=Bethel
searchBindCredentials = mypassword
searchBaseContext = o=PTC
searchFilter = cn={0}
searchScopeAsString = sub
securityAttributes = securityEquals
attributesReadByOwner = true
connectionMaxPoolSize = 10
ldapVersion = 3 /
Realm className=org.apache.catalina.realm.LDAPRealm
ldapContextFactory=com.sun.jndi.ldap.LdapCtxFactory
ldapServer=ldap.corvette.mn.com
ldapPort=389
ldapDN=cn=%u,ou=jfenlason_r62DC,ou=jfenlason,l=Arden Hills,o=Bethel
ldapGroupContext=ou=jfenlason_r62DC,ou=jfenlason,l=Arden
Hills,o=Bethel

ldapGroupFilter=(amp;(uniquemember=%dn)(objectclass=groupOfUniqueNames))
ldapRoleAttribute=cn
debug=99 /


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

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.365 / Virus Database: 202 - Release Date: 24/05/02


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.365 / Virus Database: 202 - Release Date: 24/05/02


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



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




RE: Plz help!! Consulted archives!! RE: JSP examples error but serveltsexamples running

2002-06-12 Thread rsequeira


Hope that solved your problem. Party on :-)

RS




Lynne Gurney [EMAIL PROTECTED] on 06/12/2002 04:46:13 AM

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:Tomcat Users List [EMAIL PROTECTED]
cc:

Subject:RE: Plz help!! Consulted archives!! RE: JSP examples error but
   servelts examples running

Hi RS, thanks for your patience. Had a little dinner party last night so
sorry my communications were so sketchy. I had a look at my files again and
discovered I was spelling the servlet wrongly . . . should be spelt
TestingServlet . . . doh!!

L

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 11 June 2002 23:00
To: Tomcat Users List
Subject: RE: Plz help!! Consulted archives!! RE: JSP examples error but
servelts examples running



Probably the web application that holds TestServlet hasn't been deployed or
you are trying to access TestServlet via an incorrect URL. Unless you send
in more details it difficult to resolve your problem.

RS





Lynne Gurney [EMAIL PROTECTED] on 06/11/2002 04:33:15 PM

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:Tomcat Users List [EMAIL PROTECTED]
cc:

Subject:RE: Plz help!! Consulted archives!! RE: JSP examples error but
   servelts examples running

or I get

type Status report

message /TestServlet

description The requested resource (/TestServlet) is not available.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 11 June 2002 22:22
To: Tomcat Users List
Subject: RE: Plz help!! Consulted archives!! RE: JSP examples error but
servelts examples running



Since you can run the examples servlets, there's something wrong with the
configuration (either in server.xml or web.xml). Apparently Tomcat cannot
find TestServlet. If you can elaborate on your configuration, directory
structure - it might help.

RS





Lynne Gurney [EMAIL PROTECTED] on 06/11/2002 04:12:25 PM

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:Tomcat Users List [EMAIL PROTECTED],
   [EMAIL PROTECTED]
cc:

Subject:RE: Plz help!! Consulted archives!! RE: JSP examples error but
   servelts examples running

I decided to reinstall tomcat and the example servlets are working now. The
problem with the first error was indeed something wrong with one of my test
applications which I have also resolved. However, I now cannot run any
servlets in any of my test apps. So it goes on . . . I have fiddled with
the
web.xml file and declaration of servlets for some time now and still get
the
following error 

type Exception report

message Internal Server Error

description The server encountered an internal error (Internal Server
Error)
that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: Wrapper cannot find servlet class
TestServlet or a class it depends on
 at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:87



1)
 at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:653)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja



va:214)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5



66)
 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.ja



va:190)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5



66)
 at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2



46)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5



64)
 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:2343)
 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180



)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5



66)
 at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.



java:170)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5



64)
 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170



)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5



64)
 at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5



64)
 at

RE: Protecting a page with SSL

2002-06-12 Thread Mike Millson

I think you can use Apache URL rewriting to do this. If you're using Apache,
check the Apache documentation.

-Original Message-
From: Donie Kelly [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 9:24 AM
To: 'Tomcat Users List'
Subject: RE: Protecting a page with SSL


Can somebody please answer this please...
Donie

 -Original Message-
From:   Donie Kelly [mailto:[EMAIL PROTECTED]]
Sent:   12 June 2002 12:59
To: 'Tomcat Users List'
Subject:RE: Protecting a page with SSL

Thanks Adam

It sort of works now. I have a URL mapped as /info

I can access it as https://nysa/info and it works
If I use http://nysa/info I get HTTP 500 Internal Server Error

I want the request from http to re-direct to https. What am I doing wrong?
Thanks
Donie

Here is my web.xml

  servlet
servlet-nameinfo/servlet-name
jsp-file/onm/index.jsp/jsp-file
  /servlet

  servlet-mapping
servlet-nameinfo/servlet-name
url-pattern/info/url-pattern
  /servlet-mapping

  security-constraint
  web-resource-collection
  web-resource-namesecure/web-resource-name
  url-pattern/info/url-pattern
  /web-resource-collection

  user-data-constraint
  transport-guaranteeCONFIDENTIAL/transport-guarantee
  /user-data-constraint
  /security-constraint

And here is part of my server.xml

  Service name=Tomcat-Standalone

!-- Define an SSL HTTP/1.1 Connector on port 443 --
Connector className=org.apache.catalina.connector.http.HttpConnector
port=443 minProcessors=5 maxProcessors=75
enableLookups=true
acceptCount=10 debug=0 scheme=https
secure=true
Factory
className=org.apache.catalina.net.SSLServerSocketFactory
clientAuth=false protocol=TLS
keystoreFile=c:\tomcat4.0\.keystore
keystorePass=changit
 /
/Connector

!-- Define a non-SSL HTTP/1.1 Connector on port 80 --
Connector className=org.apache.catalina.connector.http.HttpConnector
port=80 minProcessors=5 maxProcessors=75
enableLookups=false
redirectPort=443 acceptCount=10 debug=0
connectionTimeout=6
allowChunking=false/

Engine name=Standalone defaultHost=localhost debug=0
  Logger className=org.apache.catalina.logger.FileLogger
prefix=catalina_log. suffix=.txt timestamp=true/
  Realm className=org.apache.catalina.realm.MemoryRealm /
  Host name=localhost debug=0 appBase=webapps
unpackWARs=false

Context path=
docBase=c:\mmsdev\dev\mms\webapps\mms/Context
  Context path=/images
docBase=c:\mmsdev\dev\mms\webapps\mms\onm\images/Context
  Context path=/tp
docBase=c:\mmsdev\dev\mms\webapps\tp/Context
/Host
/Engine
  /Service


 -Original Message-
From:   Sefton, Adam [mailto:[EMAIL PROTECTED]]
Sent:   12 June 2002 12:28
To: 'Tomcat Users List'
Subject:RE: Protecting a page with SSL


Within your web.xml, inside the security-constraint tag, add:

user-data-constraint
 transport-guarantee
CONFIDENTIAL
 /transport-guarantee
/user-data-constraint

This will force the connection for the application.

If you want to force the connection for all applications across the Tomcat
instance, then place this in the /conf/web.xml instead.

Hope this helps

Adam

-Original Message-
From: Donie Kelly [mailto:[EMAIL PROTECTED]]
Sent: 12 June 2002 12:21
To: 'Tomcat Users List'
Subject: Protecting a page with SSL


Hi all

I've setup SSL on tomcat but I can't find in the docs how to protect a .jsp
page or servlet mapping to force the connection over SSL

Please point me in the right direction.
Thanks
Donie

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


**
This message may contain information which is confidential or privileged.
If you are not the intended recipient, please advise the sender immediately
by reply e-mail and delete this message and any attachments
without retaining a copy.

**


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

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

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



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




mod_jk2

2002-06-12 Thread Josh Fenlason

Does anyone know anything about mod_jk2?  Is it a new and improved mod_jk?
What changes were made?  I've looked around quite a bit and all I've been
able to find is the binaries.  If anyone knows where I could find some more
detailed documentation, source code or would be able to give me some more
info, I would greatly appreciate it.  Thanks.
,
Josh.


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




java line numbers

2002-06-12 Thread Dennis Muhlestein


Compile in debug mode.
read javac documentation.
With ant, you can put debug=true in the build.xml javac target.

On Wed, 2002-06-12 at 01:56, August Detlefsen wrote:
 How do I get line numbers in my stack trace? 
 
 All the org.apache and javax class show line numbers, but my classes
do
 not:
 
 java.lang.NullPointerException
 at showplan.Controller.dispatchContentAction(Controller.java)
 at showplan.Controller.service(Controller.java)
 at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
 at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
 at

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
 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:190)
 at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at

org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:528)
 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.StandardContext.invoke(StandardContext.java:2343)
 at

org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
 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:468)
 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:174)
 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.warp.WarpRequestHandler.handle(WarpRequestHandler.java:217)
 at

org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:194)
 at java.lang.Thread.run(Thread.java:484)
 
 __
 Do You Yahoo!?
 Yahoo! - Official partner of 2002 FIFA World Cup
 http://fifaworldcup.yahoo.com
 
 --
 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]




TR: Black magic Authentication Digest and JDBC Realm on Tomcat 4.0.3

2002-06-12 Thread PATTUS Jean-Philippe

Nobody for my little pb, should i try black magic?

 -Message d'origine-
 De:   PATTUS Jean-Philippe [SMTP:[EMAIL PROTECTED]]
 Date: mercredi 12 juin 2002 10:46
 À:[EMAIL PROTECTED]
 Objet:Authentication Digest and  JDBC Realm on Tomcat 4.0.3
 
 Hello,
 I'm working on Tomcat 4.0.3.
 i'm trying to put an authentication on my web app,
 if the auth-method is BASIC and 
 the Realm is   
 Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
  driverName=oracle.jdbc.driver.OracleDriver
connectionName=Name
connectionPassword=Password
   connectionURL=jdbc:oracle:thin:@host:1521:toto
   userTable=userTable userNameCol=userNameCol
 userCredCol=userCredCol
   userRoleTable=userRole roleNameCol=roleNameCol / 
 it works fine.
 But, if i replace BASIC by DIGEST, my authentication is KO. I've seen in
 the
 code that
  JDBCRealm::getPassword() always return null!!!  
 
 How can i configure my Tomcat in order to have JDBC Realm and Digest
 authentication???
 
 Thanks 
 
 PS : sorry for my poor english.
 
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 

--- Interscan -- (on antivirus)

email-body was scanned and no virus found
-  Traite Par  --



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


RE: mod_webapp and static content

2002-06-12 Thread Turner, John


From the tomcat 4.0.2 release notes:

Currently, mod_webapp forwards *all* requests under the specified context
path to Tomcat for processing.  In a futher release, it will automatically
configure itself to serve static resources from Apache *unless* the resource
is subject to filtering, or subject to a security constraint, as defined in
web.xml.  No extra configuration in httpd.conf will be required.

So the goal is to have Tomcat serve only JSP and servlet requests, and have
Apache handle all the rest.  Tomcat stand-alone is not built to be a very
efficient static content server...for smaller sites and sites with low
bandwidth needs Tomcat stand-alone would probably be suitable for serving
all content.  Anything bigger, with lots of images or other static content,
etc. would be much better off using a Tomcat/Apache combo, as Apache is very
good at serving static content, much better than Tomcat.

John Turner
[EMAIL PROTECTED]
http://www.aas.com


-Original Message-
From: Frans Stofberg [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 4:45 AM
To: Tomcat Users List
Subject: mod_webapp and static content


Hello

How dose one make Tomcat serve the dynamic content while Apache the static
content with mod_webapp

Currently, if i'm not mistaken the default configuration for this makes
Tomcat serve static and dynamic content

if it cant be done why would one whant to use Apache AND Tomcat if Tomcat
can do the job in any case?

thanks

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



Re: Problem with passing japanese values to a servlet

2002-06-12 Thread Ushakov, Sergey N
Internationalization was common issue with Tomcat 3 (or rather with servlet
spec 2.2).

If you can forget about Tomcat 3 - do not hesitate. If you can't - try
"com.oreilly.servlet" package available at http://www.servlets.com. It
worked for me perfectly in the past (not with Japanese locale but with
Russian one - not big difference :)

Now regarding your Tomcat 4 issues.

1) The OS needs not be Japanese and needs not have Japanese as default
locale. But what definitely needs be i18n-enabled is your JRE. Are you sure
your JRE/JDK is not English-only?

2) If JRE is ok it may be a good idea to check if your OS has Japanese
encodings support (though being an English edition). It is not an issue for
Windows 2000, but for English edition it is not the default and requires
explicit expression of your wish during setup. And you can always request
for it afterwards using Control Panel. But frankly speaking I have a vague
idea how much JRE depends on OS for encoding translations.

2) Are you sure your browser sends UTF-8? Maybe try other Japanese
encodings?

HTH.
Regards,
Sergey

P.S. Keep trying... It should work :)



- Original Message -
From: "mubariz kharbe" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 12, 2002 4:03 PM
Subject: Problem with passing japanese values to a servlet


 Hi,

 I am developing an internationalized web based application using Tomcat
3.1 on Windows 2000. I am facing the following problems

 When I pass Japanese values to the servlet and I retreive the value using
 myData = httpservletrequest.getParameter("foo");
 I get ?? in myData.
 So I used
 myDataNew = new String(myData.getBytes("ISO-8859-1"),"UTF-8");
 This is the solution that is found at most forums I looked for.
 I still get the value of myDataNew as ??.
 I am able to get the correct value in myDataNew only after I boot my
server with default locale as Japanese. But I cannot do that since my
application is web based and needs to have support for all the languages. So
the server should necessarily be on English OS. This is also the business
requirement.

 Question 1. What should be done so that running the server on English OS I
will be able to get the correct value in myData for all the languages,
specially Japanese?

 The new tomcat 4.0.3 uses the Servlet Engine 2.3 in which there is a
facility to set the character encoding for the httpservletrequest. I
upgraded my tomcat server to 4.0.3.
 Now I tried using
 httpservletrequest.setCharacterEncoding("UTF-8");
 myData = httpservletrequest.getParameter("foo");
 And I am still getting the value of myData as ?? for Japanese values.

 Question 2. Is there a problem in the way I am using
httpservletrequest.setCharacterEncoding method? What else is needed to be
done?

 Any advice will be greatly appreciated.

 Thanking in anticipation
 Regards
 Mubariz









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




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


RE: Black magic Authentication Digest and JDBC Realm on Tomcat 4 .0.3

2002-06-12 Thread John Niven

 -Original Message-
 From: PATTUS Jean-Philippe [mailto:[EMAIL PROTECTED]] 
 Sent: 12 June 2002 14:49
 To: [EMAIL PROTECTED]
 Subject: TR: Black magic Authentication Digest and JDBC Realm 
 on Tomcat 4 .0.3 
 
 
 Nobody for my little pb, should i try black magic?
 
  -Message d'origine-
  De: PATTUS Jean-Philippe [SMTP:[EMAIL PROTECTED]]
  Date:   mercredi 12 juin 2002 10:46
  À:  [EMAIL PROTECTED]
  Objet:  Authentication Digest and  JDBC Realm on Tomcat 4.0.3
  
  Hello,
  I'm working on Tomcat 4.0.3.
  i'm trying to put an authentication on my web app,
  if the auth-method is BASIC and 
  the Realm is   
  Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
   driverName=oracle.jdbc.driver.OracleDriver
   connectionName=Name
   connectionPassword=Password
connectionURL=jdbc:oracle:thin:@host:1521:toto
userTable=userTable userNameCol=userNameCol 
  userCredCol=userCredCol
userRoleTable=userRole roleNameCol=roleNameCol /
  it works fine.
  But, if i replace BASIC by DIGEST, my authentication is KO. 
 I've seen in
  the
  code that
   JDBCRealm::getPassword() always return null!!!  
  

Just an idea (I don't know) but this could be by design - if getPassword()
returns the hased-password, it's a potential security risk (an attacker
would just need to hash a dictionary until they came across a matching
hash).

Not sure how JDBCRealm deals with this, though...sorry.

  How can i configure my Tomcat in order to have JDBC Realm 
 and Digest 
  authentication???
  
  Thanks
  

Well, don't know how useful I've been :(
Cheers
John

 --
John Niven
Please reply through mailing list

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




RE: Choosing between mod_jk or mod_webapp?

2002-06-12 Thread Turner, John


From the Tomcat 4.0.2 release notes:

Currently, mod_webapp forwards *all* requests under the specified context
path to Tomcat for processing.  In a futher release, it will automatically
configure itself to serve static resources from Apache *unless* the resource
is subject to filtering, or subject to a security constraint, as defined in
web.xml.  No extra configuration in httpd.conf will be required.

So it looks like mod_webapp is the best choice, but apparently it's not
ready to do what you want to do, yet.  I can't seem to find any indication
of when mod_webapp will start distinguishing between static and dynamic
content, so it could be awhile before that functionality is released.

So for now, I would think sticking with mod_jk would be the way to go,
especially if it is working the way your client wants it to work.

HTH

John Turner
[EMAIL PROTECTED]
http://www.aas.com

-Original Message-
From: Ryan McDonough [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 11, 2002 11:11 PM
To: [EMAIL PROTECTED]
Subject: Choosing between mod_jk or mod_webapp?


I'm trying to help a client of mine choose between using mod_webapp or
mod_jk as their link between Tomcat and Apache. I have been successful in
getting both connectors to work, the question is which one is better? My gut
says mod_webapp is the way to go, but I haven't spent much time with it to
make a solid decision about it. I should mention some of my clients
requirements and concerns. As a requirement, they want Apache to handle
serving all non-JSP files such as images, html, javascripts, etc. They are
currently happy with mod_jk because they can configure like this:

JkMount /*.jsp ajp13

They like the idea that they an put JSP's in the doc root and tomcat will
only serve the JSP's. They are also running virtual hosts on Apache, and
they want the webapp to be mounted at the root of each virtual host. Their
concern is that if mod_webapp is used, HTML and image files will still be
served up by Tomcat, thus bringing into question if Apache is reducing the
server load on Tomcat.

I too am curious if mod_webapp uses Apache to server image and HTML files.
It does seem that mod_webapp is using Tomcat to serve everything, whereas
mod_jk seems to just handle servlets and JSP's. I know I can place an images
directory somewhere in Apache, but they also want to start using webapps to
deploy a complete module. So, in a nutshell, what connector is the best
choice? I would greatly appriciate any advice on this topic. Thanks.

Ryan-


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



RE: How well does tomcat 4.0.03 work as a HTTP server?

2002-06-12 Thread Edward Wilson

Will Tomcat handle name based virtual hosting?

..ed

__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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




RE: How well does tomcat 4.0.03 work as a HTTP server?

2002-06-12 Thread Turner, John


I think so.  The best resource I have found showing how this is done is
here:

http://www.codesta.com/knowledge/technical/tomcat_warp_apache/page_01.jsp

This document uses name based virtual hosting in the form of abc.domain.com
and xyz.domain.com, but I don't see why the same thing wouldn't hold true
for www.mydomain.com and www.myotherdomain.com.

HTH

John Turner
[EMAIL PROTECTED]
http://www.aas.com


-Original Message-
From: Edward Wilson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 10:17 AM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: RE: How well does tomcat 4.0.03 work as a HTTP server?


Will Tomcat handle name based virtual hosting?

..ed

__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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



Oracle driver and Tomca/apache ?!

2002-06-12 Thread Walid Al-Abbadi



  hi guys,

 i wish anybody can help me in my problem please.. i have jdk1.3.1,
Tomcat4.0.3 and Apache2.0.36 workino on win2k professional .. i had too
mod_jk.dll connector and i built it too .. everything works well with
simple jsp's and html files .. but when i want Mywork.jsp to deal with a
database system ( Oracle 8i) ..i got :

The server encountered an internal error (Internal Server Error) that
prevented it from fulfilling this request.

exception :

  javax.servlet.ServletException: oracle.jdbc.driver.OracleDriver

root cause:
java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver


i did the connection file AAST.jsp with the following contents :

%
String MM_AAST_DRIVER = oracle.jdbc.driver.OracleDriver;
String MM_AAST_USERNAME = scott;
String MM_AAST_PASSWORD = tiger;
String MM_AAST_STRING = jdbc:oracle:thin:@localhost:1521:AAST;
%
  
 and i included it in Mywork.jsp .. i don't know how to make Tomcat see the
Oracle driver ?! .. i heard about an oracle file called classes12.zip or
classes111.zip kind of a driver to jdbc !! 

 i need to know.. What should i do to make Tomcat/apache see the database
system driver ?!.. and  does that file classes12.zip has a relation with
that ?! 

 i'll apperciate anyhelp in that please ..

thanks in advance




Walid Al-Abbadi

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




Tomcat does not Auto-reload.

2002-06-12 Thread Rui Oliveira

Hello,

 

My Tomcat does not auto-reloads the servlets. Whenever I compile my
servlets, I place them under the WEB-INF/classes dir, but they simple do
not auto-reload. I have to restart TOMCAT before the update takes
effect.

 

Can someone tell me why?

 

I'm using Tomcat 4.0.1 on RedHat 7.2 (kernel 2.4.7). GLibc 2.2.4.

 

 

Thx

Rui




Re: Tomcat does not Auto-reload.

2002-06-12 Thread kf platypus

That's due in part to the servlet architectures caching mechanism. Typically 
we added a method to each servlet to destroy it. I don't know if there's a 
better method than that though as I know I would like to see one because 
they bith seem a bit ghetto.

Regards!


From: Rui Oliveira [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Tomcat does not Auto-reload.
Date: Wed, 12 Jun 2002 15:26:23 +0100

Hello,



My Tomcat does not auto-reloads the servlets. Whenever I compile my
servlets, I place them under the WEB-INF/classes dir, but they simple do
not auto-reload. I have to restart TOMCAT before the update takes
effect.



Can someone tell me why?



I'm using Tomcat 4.0.1 on RedHat 7.2 (kernel 2.4.7). GLibc 2.2.4.





Thx

Rui




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


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




Re: Tomcat does not Auto-reload.

2002-06-12 Thread rsequeira


Set the reloadable attribute of the Context element to true (if you
haven't done that already).

RS






Rui Oliveira [EMAIL PROTECTED] on 06/12/2002 09:26:23 AM

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:[EMAIL PROTECTED]
cc:

Subject:Tomcat does not Auto-reload.

Hello,



My Tomcat does not auto-reloads the servlets. Whenever I compile my
servlets, I place them under the WEB-INF/classes dir, but they simple do
not auto-reload. I have to restart TOMCAT before the update takes
effect.



Can someone tell me why?



I'm using Tomcat 4.0.1 on RedHat 7.2 (kernel 2.4.7). GLibc 2.2.4.





Thx

Rui










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




Re: Oracle driver and Tomca/apache ?!

2002-06-12 Thread rsequeira


You need oracle jdbc drivers to make a connection. You could download them
from the Oracle website. Rename the zip file (classes12.zip) that you
download to jar. Place it in the CATALINA_HOME/common/lib directory and you
should be good to go.

RS





Walid Al-Abbadi  [EMAIL PROTECTED] on 06/12/2002 09:21:53 AM

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:[EMAIL PROTECTED]
cc:

Subject:Oracle driver and Tomca/apache ?!



  hi guys,

 i wish anybody can help me in my problem please.. i have jdk1.3.1,
Tomcat4.0.3 and Apache2.0.36 workino on win2k professional .. i had too
mod_jk.dll connector and i built it too .. everything works well with
simple jsp's and html files .. but when i want Mywork.jsp to deal with a
database system ( Oracle 8i) ..i got :

The server encountered an internal error (Internal Server Error) that
prevented it from fulfilling this request.

exception :

  javax.servlet.ServletException: oracle.jdbc.driver.OracleDriver

root cause:
java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver


i did the connection file AAST.jsp with the following contents :

%
String MM_AAST_DRIVER = oracle.jdbc.driver.OracleDriver;
String MM_AAST_USERNAME = scott;
String MM_AAST_PASSWORD = tiger;
String MM_AAST_STRING = jdbc:oracle:thin:@localhost:1521:AAST;
%

 and i included it in Mywork.jsp .. i don't know how to make Tomcat see the
Oracle driver ?! .. i heard about an oracle file called classes12.zip or
classes111.zip kind of a driver to jdbc !!

 i need to know.. What should i do to make Tomcat/apache see the database
system driver ?!.. and  does that file classes12.zip has a relation with
that ?!

 i'll apperciate anyhelp in that please ..

thanks in advance




Walid Al-Abbadi

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










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




RE: Tomcat does not Auto-reload.

2002-06-12 Thread FEDERICO MARTIN LARA

I have to delete the temporal files in work directory, then I don?t to
restart Tomcat again.
Try this.

-Mensaje original-
De: Rui Oliveira [mailto:[EMAIL PROTECTED]]
Enviado el: miercoles, 12 de junio de 2002 16:26
Para: [EMAIL PROTECTED]
Asunto: Tomcat does not Auto-reload.


Hello,



My Tomcat does not auto-reloads the servlets. Whenever I compile my
servlets, I place them under the WEB-INF/classes dir, but they simple do
not auto-reload. I have to restart TOMCAT before the update takes
effect.



Can someone tell me why?



I'm using Tomcat 4.0.1 on RedHat 7.2 (kernel 2.4.7). GLibc 2.2.4.





Thx

Rui



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




RE: Tomcat does not Auto-reload.

2002-06-12 Thread FEDERICO MARTIN LARA

You can also place the jar file of the Oracle driver in the WEB-INF/lib
directory of the jakarta context that you are using at the time.

This works with the MySQL jar driver.

-Mensaje original-
De: Rui Oliveira [mailto:[EMAIL PROTECTED]]
Enviado el: miercoles, 12 de junio de 2002 16:26
Para: [EMAIL PROTECTED]
Asunto: Tomcat does not Auto-reload.


Hello,



My Tomcat does not auto-reloads the servlets. Whenever I compile my
servlets, I place them under the WEB-INF/classes dir, but they simple do
not auto-reload. I have to restart TOMCAT before the update takes
effect.



Can someone tell me why?



I'm using Tomcat 4.0.1 on RedHat 7.2 (kernel 2.4.7). GLibc 2.2.4.





Thx

Rui



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




RE: Tomcat does not Auto-reload.

2002-06-12 Thread Rui Oliveira

When is this destroy method invoked? If I copy the newer version of the
servlet to the WEB-INF/classes directory, how will a destroy method be
helpful?

Rui

 -Original Message-
 From: kf platypus [mailto:[EMAIL PROTECTED]]
 Sent: quarta-feira, 12 de Junho de 2002 15:29
 To: [EMAIL PROTECTED]
 Subject: Re: Tomcat does not Auto-reload.
 
 That's due in part to the servlet architectures caching mechanism.
 Typically
 we added a method to each servlet to destroy it. I don't know if
there's a
 better method than that though as I know I would like to see one
because
 they bith seem a bit ghetto.
 
 Regards!
 
 
 From: Rui Oliveira [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Tomcat does not Auto-reload.
 Date: Wed, 12 Jun 2002 15:26:23 +0100
 
 Hello,
 
 
 
 My Tomcat does not auto-reloads the servlets. Whenever I compile my
 servlets, I place them under the WEB-INF/classes dir, but they simple
do
 not auto-reload. I have to restart TOMCAT before the update takes
 effect.
 
 
 
 Can someone tell me why?
 
 
 
 I'm using Tomcat 4.0.1 on RedHat 7.2 (kernel 2.4.7). GLibc 2.2.4.
 
 
 
 
 
 Thx
 
 Rui
 
 
 
 
 _
 Get your FREE download of MSN Explorer at
 http://explorer.msn.com/intl.asp.
 
 
 --
 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]




RE: Tomcat does not Auto-reload.

2002-06-12 Thread kf platypus

just do something like:

if(request.getParameter(quit) == 1){
//insert destroy code here
}

then just call http://yourdomain.com/servlet?quit=1

Regards!



From: Rui Oliveira [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Subject: RE: Tomcat does not Auto-reload.
Date: Wed, 12 Jun 2002 15:49:29 +0100

When is this destroy method invoked? If I copy the newer version of the
servlet to the WEB-INF/classes directory, how will a destroy method be
helpful?

Rui

  -Original Message-
  From: kf platypus [mailto:[EMAIL PROTECTED]]
  Sent: quarta-feira, 12 de Junho de 2002 15:29
  To: [EMAIL PROTECTED]
  Subject: Re: Tomcat does not Auto-reload.
 
  That's due in part to the servlet architectures caching mechanism.
  Typically
  we added a method to each servlet to destroy it. I don't know if
there's a
  better method than that though as I know I would like to see one
because
  they bith seem a bit ghetto.
 
  Regards!
 
 
  From: Rui Oliveira [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: Tomcat does not Auto-reload.
  Date: Wed, 12 Jun 2002 15:26:23 +0100
  
  Hello,
  
  
  
  My Tomcat does not auto-reloads the servlets. Whenever I compile my
  servlets, I place them under the WEB-INF/classes dir, but they simple
do
  not auto-reload. I have to restart TOMCAT before the update takes
  effect.
  
  
  
  Can someone tell me why?
  
  
  
  I'm using Tomcat 4.0.1 on RedHat 7.2 (kernel 2.4.7). GLibc 2.2.4.
  
  
  
  
  
  Thx
  
  Rui
  
 
 
 
  _
  Get your FREE download of MSN Explorer at
  http://explorer.msn.com/intl.asp.
 
 
  --
  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]





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


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




Problem with passing japanese values to a servlet

2002-06-12 Thread Drew Sudell

mubariz kharbe writes:
  Hi,
  
  I am developing an internationalized web based application using Tomcat 3.1 on 
 Windows 2000. I am facing the following problems
  
  When I pass Japanese values to the servlet and I retreive the value using 
   myData = httpservletrequest.getParameter(foo);
  I get ?? in myData.
  So I used
   myDataNew = new String(myData.getBytes(ISO-8859-1),UTF-8);
  This is the solution that is found at most forums I looked for.

That is the way to manually transcode data that came in as UTF-8 and
is the way most people have done it in Servlet 2.2.

  I still get the value of myDataNew as ??.
  I am able to get the correct value in myDataNew only after I boot
  my server with default locale as Japanese. But I cannot do that
  since my application is web based and needs to have support for all
  the languages. So the server should necessarily be on English
  OS. This is also the business requirement.
  Question 1. What should be done so that running the server on English OS I will be 
 able to get the correct value in myData for all the languages, specially Japanese?

This isn't simple.  But I'll try to point you in a right direction
below.

  
  The new tomcat 4.0.3 uses the Servlet Engine 2.3 in which there is a facility to set 
 the character encoding for the httpservletrequest. I upgraded my tomcat server to 
 4.0.3.
  Now I tried using 
   httpservletrequest.setCharacterEncoding(UTF-8);
   myData = httpservletrequest.getParameter(foo);

This is a better way that is new to Servlet 2.3.  I'd suggest it in
preference to manual transcoding as in the above example.  It saves a 
bit of overhead by only doing one correct transcoding instead of
fouling it up, undoing it and then getting it right (3 transcodings).

  And I am still getting the value of myData as ?? for Japanese values.
  
  Question 2. Is there a problem in the way I am using 
 httpservletrequest.setCharacterEncoding method? What else is needed to be done?
 

Not particularly.
 
  Any advice will be greatly appreciated.
  

My first question is why do you believe the data being posted is UTF-8 
to begin with?  This is really less a question about servlets and java
than one about html forms and browsers.

The game is to get the browser to post the data in an encoding that
you can predict and to set the request encoding to that.

Above you mention that things workout when you set the default locale
to Japanese.  That makes me think you're getting the data posted in a
native Japanese encoding such as Shift-JIS or EUC, depending on the
platform.  If so transcoding it as UTF-8 won't work.

There are a couple of strategies that one can take.  A lot depends on
the languages, browsers, and client platforms you need to support as
well as how the application is structured and how the users use it.

The easiest thing is if you can do everything in a single encoding.
For example, if you only support English and Japanese, since English
is encodable in the Japanese native encodings, you could just use
those. If you have to support a wide range of languages, UTF-8 might
be a good answer, so long as you can be sure the browsers you support
will post the data back as UTF-8.  [I've never had to make that trick
work, but suspect that sending the pages as UTF-8 and/or setting the
acceptable content types on the form SHOULD do the trick.]

The other game you can play is to know what encoding you expect back
on a per form basis.  Basically this ends up being multiple sub-sites, 
one per encoding, for the application.  This can be done dynamically
or statically.  Staticly (copy pages and alter them) is easier but
harder to maintain as the number of encodings grows.  In this scenario 
you have to guess somehow what encoding each post is coming in as, or 
embed the information somewhere (in the url, in a hidden parameter, in 
the session, etc.)

There a a few good ideas at the end of this presentation
http://www.w3.org/Talks/1999/0830-tutorial-unicode-mjd/

Bottom line, there's no right answer to handling forms in a
completely internationalized site.  It would be nice if browsers
actually set the encoding on the content type of the posted data.
But I've yet to see one that did.  That forces the use of heuristics,
guesswork and silly kludges.

I've got a few other links that I've pulled together over time saved
off my home page at http://www.op.net/~asudell/info/i18n/index.html.
Some of those might help you too.

-- 
Drew Sudell [EMAIL PROTECTED]  http://www.op.net/~asudell

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




Re: Tomcat does not Auto-reload.

2002-06-12 Thread Louis Voo

I have this problem b4, but someone told me add reloadable=true in DefaultContext tag

!-- Define an Apache-Connector Service --
  Service name=Tomcat-Apache

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

!-- Replace localhost with what your Apache ServerName is set to --
Engine className=org.apache.catalina.connector.warp.WarpEngine
 name=Apache debug=0
  DefaultContext reloadable=true/

  !-- Global logger unless overridden at lower levels --
  Logger className=org.apache.catalina.logger.FileLogger
  prefix=apache_log. suffix=.txt
  timestamp=true/

  !-- Because this Realm is here, an instance will be shared globally --
  Realm className=org.apache.catalina.realm.MemoryRealm /

/Engine

  /Service


- Original Message - 
From: Rui Oliveira [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Wednesday, June 12, 2002 3:49 PM
Subject: RE: Tomcat does not Auto-reload.


 When is this destroy method invoked? If I copy the newer version of the
 servlet to the WEB-INF/classes directory, how will a destroy method be
 helpful?
 
 Rui
 
  -Original Message-
  From: kf platypus [mailto:[EMAIL PROTECTED]]
  Sent: quarta-feira, 12 de Junho de 2002 15:29
  To: [EMAIL PROTECTED]
  Subject: Re: Tomcat does not Auto-reload.
  
  That's due in part to the servlet architectures caching mechanism.
  Typically
  we added a method to each servlet to destroy it. I don't know if
 there's a
  better method than that though as I know I would like to see one
 because
  they bith seem a bit ghetto.
  
  Regards!
  
  
  From: Rui Oliveira [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: Tomcat does not Auto-reload.
  Date: Wed, 12 Jun 2002 15:26:23 +0100
  
  Hello,
  
  
  
  My Tomcat does not auto-reloads the servlets. Whenever I compile my
  servlets, I place them under the WEB-INF/classes dir, but they simple
 do
  not auto-reload. I have to restart TOMCAT before the update takes
  effect.
  
  
  
  Can someone tell me why?
  
  
  
  I'm using Tomcat 4.0.1 on RedHat 7.2 (kernel 2.4.7). GLibc 2.2.4.
  
  
  
  
  
  Thx
  
  Rui
  
  
  
  
  _
  Get your FREE download of MSN Explorer at
  http://explorer.msn.com/intl.asp.
  
  
  --
  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]
 


RE: mod_jk2

2002-06-12 Thread John Burgess

I believe its mod_jk for Apache 2

Best Wishes
John Burgess
[EMAIL PROTECTED]
Tel: 01865 718666 
Fax: 01865 718600


-Original Message-
From: Josh Fenlason [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 2:35 PM
To: Tomcat
Subject: mod_jk2


Does anyone know anything about mod_jk2?  Is it a new and improved mod_jk?
What changes were made?  I've looked around quite a bit and all I've been
able to find is the binaries.  If anyone knows where I could find some more
detailed documentation, source code or would be able to give me some more
info, I would greatly appreciate it.  Thanks.
,
Josh.


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

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.365 / Virus Database: 202 - Release Date: 24/05/02
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.365 / Virus Database: 202 - Release Date: 24/05/02
 

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




RE: Auto Start Tomcat

2002-06-12 Thread Edward Wilson

You should also use chkconfig to setup your scripts.

Two lines of code are required at the top of your
script to make it work with chkconfig.  From here you
can write a shell script which basically mimics
whatever you would normally do at the command prompt.

Use what the previous poster used and modify his
script to suit your environment.

`chkconfig' is one of the better RedHat isums...if you
are using redhat, you should familiarize yourself with
this great tool.

..ed


__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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




RE: mod_jk2

2002-06-12 Thread Josh Fenlason

I've mod_jk working with Tomcat4.1.3 and Apache2.  I was just curious about
mod_jk2.  What kind of changes, positive and negative it has?  Thanks.
,
Josh.

-Original Message-
From: John Burgess [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 10:30 AM
To: Tomcat Users List
Subject: RE: mod_jk2


I believe its mod_jk for Apache 2

Best Wishes
John Burgess
[EMAIL PROTECTED]
Tel: 01865 718666
Fax: 01865 718600


-Original Message-
From: Josh Fenlason [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 2:35 PM
To: Tomcat
Subject: mod_jk2


Does anyone know anything about mod_jk2?  Is it a new and improved mod_jk?
What changes were made?  I've looked around quite a bit and all I've been
able to find is the binaries.  If anyone knows where I could find some more
detailed documentation, source code or would be able to give me some more
info, I would greatly appreciate it.  Thanks.
,
Josh.


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

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.365 / Virus Database: 202 - Release Date: 24/05/02


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.365 / Virus Database: 202 - Release Date: 24/05/02


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




measuring round trip time

2002-06-12 Thread Philipp . Krummenacher

Hi All

I would like to measure the round trip time for packets from tomcat to a
client (and back). Is ther a simple way to do this (I just can immagine a
complex one using an applet ...). 

Thank for any tip
Philipp

-Ursprüngliche Nachricht-
Von: Louis Voo [mailto:[EMAIL PROTECTED]]
Gesendet am: Mittwoch, 12. Juni 2002 17:02
An: Tomcat Users List
Betreff: Re: Tomcat does not Auto-reload.

I have this problem b4, but someone told me add reloadable=true in
DefaultContext tag

!-- Define an Apache-Connector Service --
  Service name=Tomcat-Apache

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

!-- Replace localhost with what your Apache ServerName is set to
--
Engine className=org.apache.catalina.connector.warp.WarpEngine
 name=Apache debug=0
  DefaultContext reloadable=true/

  !-- Global logger unless overridden at lower levels --
  Logger className=org.apache.catalina.logger.FileLogger
  prefix=apache_log. suffix=.txt
  timestamp=true/

  !-- Because this Realm is here, an instance will be shared globally
--
  Realm className=org.apache.catalina.realm.MemoryRealm /

/Engine

  /Service


- Original Message - 
From: Rui Oliveira [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Wednesday, June 12, 2002 3:49 PM
Subject: RE: Tomcat does not Auto-reload.


 When is this destroy method invoked? If I copy the newer version of the
 servlet to the WEB-INF/classes directory, how will a destroy method be
 helpful?
 
 Rui
 
  -Original Message-
  From: kf platypus [mailto:[EMAIL PROTECTED]]
  Sent: quarta-feira, 12 de Junho de 2002 15:29
  To: [EMAIL PROTECTED]
  Subject: Re: Tomcat does not Auto-reload.
  
  That's due in part to the servlet architectures caching mechanism.
  Typically
  we added a method to each servlet to destroy it. I don't know if
 there's a
  better method than that though as I know I would like to see one
 because
  they bith seem a bit ghetto.
  
  Regards!
  
  
  From: Rui Oliveira [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: Tomcat does not Auto-reload.
  Date: Wed, 12 Jun 2002 15:26:23 +0100
  
  Hello,
  
  
  
  My Tomcat does not auto-reloads the servlets. Whenever I compile my
  servlets, I place them under the WEB-INF/classes dir, but they simple
 do
  not auto-reload. I have to restart TOMCAT before the update takes
  effect.
  
  
  
  Can someone tell me why?
  
  
  
  I'm using Tomcat 4.0.1 on RedHat 7.2 (kernel 2.4.7). GLibc 2.2.4.
  
  
  
  
  
  Thx
  
  Rui
  
  
  
  
  _
  Get your FREE download of MSN Explorer at
  http://explorer.msn.com/intl.asp.
  
  
  --
  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]




RE: doco addition - Troubleshooting WinNT/Win2k IIS isapi redirector

2002-06-12 Thread Short, Dave

Does anyone have Tomcat 4.0.3 running against IIS 5 on W2K as in-process?

-Original Message-
From: neil [mailto:[EMAIL PROTECTED]]
Sent: June 11, 2002 5:22 PM
To: [EMAIL PROTECTED]
Subject: doco addition - Troubleshooting WinNT/Win2k IIS isapi
redirector


Here is a suggestion for an addition to the
Troubleshooting WinNT/Win2k section of
http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-iis-howto.html
This worked for me after a frustrating day of failure.

After:

5. Invoke the URL http://localhost/examples/jsp/index.html; in your
browser. Case is important. The characters following localhost in the URL
must be lower case. If the page fails to appear, examine the last line in
the IIS server log file in found in SYSTEM32/LogFiles/W3SVC1.
A. The last line should contain something like: GET
/jakarta/isapi_redirect.dll HTTP1.1, which indicates the Tomcat redirector
is recognizing that it should handle the request.
1. If the number following GET /... is 404, check
the following:
a. Make sure you entered the URL
correctly.


Insert:

  b. Maybe IIS Virtual Directories are not
working. Make a new Virtual Directory pointing to some local files, enable
Directory browsing and Read then check whether your browser can browse and
read from it. If not uninstall and reinstall IIS. (The Virtual Directories I
had created were no longer present at this stage.) Repeat the steps 3 to 5
of Configuring the ISAPI Tomcat Redirector and try again.


Although its stupid having to reinstall IIS, its fairly quick and doesn't
mess up your web site content or require reboots.


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

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




RE: mod_jk2: and question

2002-06-12 Thread BBui

I have this may be ignorant question.  

Does mod_jk do anything if we are using IIS and Tomcat4.0.2?  If a site
running IIS with Tomcat and does not have mod_jk, what will that site not be
able to do?  Is isapi_redirect.dll the equivalent of mod_jk in IIS?

Sorry if I am totally not making sense.

Bao-Ha Dam Bui
[EMAIL PROTECTED]
S. Jude Medical, Inc
651.765.1018


-Original Message-
From: Josh Fenlason [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, June 12, 2002 10:24 AM
To: Tomcat Users List
Subject: RE: mod_jk2

I've mod_jk working with Tomcat4.1.3 and Apache2.  I was just curious about
mod_jk2.  What kind of changes, positive and negative it has?  Thanks.
,
Josh.

-Original Message-
From: John Burgess [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 10:30 AM
To: Tomcat Users List
Subject: RE: mod_jk2


I believe its mod_jk for Apache 2

Best Wishes
John Burgess
[EMAIL PROTECTED]
Tel: 01865 718666
Fax: 01865 718600


-Original Message-
From: Josh Fenlason [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 2:35 PM
To: Tomcat
Subject: mod_jk2


Does anyone know anything about mod_jk2?  Is it a new and improved mod_jk?
What changes were made?  I've looked around quite a bit and all I've been
able to find is the binaries.  If anyone knows where I could find some more
detailed documentation, source code or would be able to give me some more
info, I would greatly appreciate it.  Thanks.
,
Josh.


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

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.365 / Virus Database: 202 - Release Date: 24/05/02


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.365 / Virus Database: 202 - Release Date: 24/05/02


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



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



Tomcat not redirecting request from HTTP to HTTPS

2002-06-12 Thread Donie Kelly

Hi all 

Here is my server.xml and web.xml. When I request the page at /info I
expected the page to requested over SSL but it returns HTTP 500 Internal
server error

Why is this?


Web.xml

  servlet
servlet-nameinfo/servlet-name
jsp-file/onm/index.jsp/jsp-file
  /servlet

  servlet-mapping
servlet-nameinfo/servlet-name
url-pattern/info/url-pattern
  /servlet-mapping

  security-constraint
  web-resource-collection
  web-resource-namesecure/web-resource-name
  url-pattern/info/url-pattern
  /web-resource-collection

  user-data-constraint
  transport-guaranteeCONFIDENTIAL/transport-guarantee
  /user-data-constraint
  /security-constraint

server.xml

  Service name=Tomcat-Standalone

!-- Define an SSL HTTP/1.1 Connector on port 443 --
Connector className=org.apache.catalina.connector.http.HttpConnector
port=443 minProcessors=5 maxProcessors=75
enableLookups=true
acceptCount=10 debug=0 scheme=https
secure=true
Factory
className=org.apache.catalina.net.SSLServerSocketFactory
clientAuth=false protocol=TLS
keystoreFile=c:\tomcat4.0\.keystore
keystorePass=changit
 /
/Connector

!-- Define a non-SSL HTTP/1.1 Connector on port 80 --
Connector className=org.apache.catalina.connector.http.HttpConnector
port=80 minProcessors=5 maxProcessors=75
enableLookups=false
redirectPort=443 acceptCount=10 debug=0
connectionTimeout=6
allowChunking=false/

Engine name=Standalone defaultHost=localhost debug=0
  Logger className=org.apache.catalina.logger.FileLogger
prefix=catalina_log. suffix=.txt timestamp=true/
  Realm className=org.apache.catalina.realm.MemoryRealm /
  Host name=localhost debug=0 appBase=webapps
unpackWARs=false

Context path=
docBase=c:\mmsdev\dev\mms\webapps\mms/Context
  Context path=/images
docBase=c:\mmsdev\dev\mms\webapps\mms\onm\images/Context
  Context path=/tp
docBase=c:\mmsdev\dev\mms\webapps\tp/Context
/Host
/Engine
  /Service

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




RE: jk_nt_service.exe with Tomcat V4.0.3

2002-06-12 Thread Short, Dave

Which technique is better from a performance point of view?  I can't get the
tomcat 4.0.3 version (below) to work.  I can, however, get the old
jk_nt_service version to work with 4.0.3 just fine.

-Original Message-
From: Douglas, Rory [mailto:[EMAIL PROTECTED]]
Sent: June 11, 2002 8:56 AM
To: Tomcat Users List (E-mail)
Subject: Re: jk_nt_service.exe with Tomcat V4.0.3



Look inside the bootstrap.jar file in the \bin directory.

I think the startup class should be
org.apache.catalina.startup.BootstrapService
(I'm using 4.1.3)

I haven't got time to test this, but try

tomcat -install tomcat403 c:\jdk\jre\bin\server\jvm.dll -start
org.apache.catalina.startup.BootstratpService

Obviously, replace c:\jdk... with the path to your jdk directory. You can
use either the server or client jvm dll's.

Actually I just tested that now, it works !

cheers
Rory

-Original Message-
From: Short, Dave [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 11, 2002 11:12 AM
To: 'Douglas, Rory '
Subject: RE: jk_nt_service.exe with Tomcat V4.0.3


Can anyone please provide a working example of how to install Tomcat 4.0.3
as a service on W2K (which class to specify, etc.)? 

-Original Message-
From: Douglas, Rory
To: 'Tomcat Users List'
Sent: 6/11/02 8:50 AM
Subject: RE: jk_nt_service.exe with Tomcat V4.0.3

If you type TOMCAT.EXE /? you will see the that it is possible to
install
a tomcat service from the command line.  It is a bit tricky though, you
need
to specify the main class etc.

rory

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 11, 2002 7:14 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: jk_nt_service.exe with Tomcat V4.0.3


Hi Folks
Is jk_nt_service.exe compatible with Tomcat V4.0.3? There is no copy in
the
V4.0.3 directory structure.
There is the copy in the V3.3.1 directory. Is that version specific?
Thanks for any help,
Charlie.

Charles Collin
Software Engineer
eSolutions ITS
BT Ignite Solutions

   Tel: +44 (01442) 208756
   FAX: +44 (01442) 208757
   Mobile:  +44 (07764) 144289
   e-mail:  [EMAIL PROTECTED]
   Address: pp 421, 
Anzani House,
Trinity Avenue,
FELIXSTOWE, 
Suffolk,
IP11 4XB,
UK.

British Telecommunications plc
Registered office: 81 Newgate Street London EC1A 7AJ
Registered in England no. 180.

This electronic message contains information from British
Telecommunications
plc which may be privileged or confidential. The information is intended
to
be for the use of the individual(s) or entity named above. If you are
not
the intended recipient be aware that any disclosure, copying,
distribution
or use of the contents of this information is prohibited. If you have
received this electronic message in error, please notify us by telephone
or
email (to the numbers or address above) immediately.


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

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




RE: Tomcat not redirecting request from HTTP to HTTPS

2002-06-12 Thread Turner, John


An HTTP 500 Internal Server error is usually from the web server, not from
Tomcat.  Are you sure your Apache SSL configuration is correct?  Is mod_ssl
included and available?

John Turner
[EMAIL PROTECTED]
http://www.aas.com


-Original Message-
From: Donie Kelly [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 11:36 AM
To: 'Tomcat Users List'
Subject: Tomcat not redirecting request from HTTP to HTTPS


Hi all 

Here is my server.xml and web.xml. When I request the page at /info I
expected the page to requested over SSL but it returns HTTP 500 Internal
server error

Why is this?


Web.xml

  servlet
servlet-nameinfo/servlet-name
jsp-file/onm/index.jsp/jsp-file
  /servlet

  servlet-mapping
servlet-nameinfo/servlet-name
url-pattern/info/url-pattern
  /servlet-mapping

  security-constraint
  web-resource-collection
  web-resource-namesecure/web-resource-name
  url-pattern/info/url-pattern
  /web-resource-collection

  user-data-constraint
  transport-guaranteeCONFIDENTIAL/transport-guarantee
  /user-data-constraint
  /security-constraint

server.xml

  Service name=Tomcat-Standalone

!-- Define an SSL HTTP/1.1 Connector on port 443 --
Connector className=org.apache.catalina.connector.http.HttpConnector
port=443 minProcessors=5 maxProcessors=75
enableLookups=true
acceptCount=10 debug=0 scheme=https
secure=true
Factory
className=org.apache.catalina.net.SSLServerSocketFactory
clientAuth=false protocol=TLS
keystoreFile=c:\tomcat4.0\.keystore
keystorePass=changit
 /
/Connector

!-- Define a non-SSL HTTP/1.1 Connector on port 80 --
Connector className=org.apache.catalina.connector.http.HttpConnector
port=80 minProcessors=5 maxProcessors=75
enableLookups=false
redirectPort=443 acceptCount=10 debug=0
connectionTimeout=6
allowChunking=false/

Engine name=Standalone defaultHost=localhost debug=0
  Logger className=org.apache.catalina.logger.FileLogger
prefix=catalina_log. suffix=.txt timestamp=true/
  Realm className=org.apache.catalina.realm.MemoryRealm /
  Host name=localhost debug=0 appBase=webapps
unpackWARs=false

Context path=
docBase=c:\mmsdev\dev\mms\webapps\mms/Context
  Context path=/images
docBase=c:\mmsdev\dev\mms\webapps\mms\onm\images/Context
  Context path=/tp
docBase=c:\mmsdev\dev\mms\webapps\tp/Context
/Host
/Engine
  /Service

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



RE: Tomcat not redirecting request from HTTP to HTTPS

2002-06-12 Thread Donie Kelly

I'm using tomcat standalone. I can access the /info resource over https but
when I access it over http I get the error. I wan the http request to
automatically transfer over automatically to https.

In the servlet specs it says that the switch over is automatic. I think
that's where I read it anyway...
Thanks
Donie


 -Original Message-
From:   Turner, John [mailto:[EMAIL PROTECTED]] 
Sent:   12 June 2002 16:43
To: 'Tomcat Users List'
Subject:RE: Tomcat not redirecting request from HTTP to HTTPS


An HTTP 500 Internal Server error is usually from the web server, not from
Tomcat.  Are you sure your Apache SSL configuration is correct?  Is mod_ssl
included and available?

John Turner
[EMAIL PROTECTED]
http://www.aas.com


-Original Message-
From: Donie Kelly [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 11:36 AM
To: 'Tomcat Users List'
Subject: Tomcat not redirecting request from HTTP to HTTPS


Hi all 

Here is my server.xml and web.xml. When I request the page at /info I
expected the page to requested over SSL but it returns HTTP 500 Internal
server error

Why is this?


Web.xml

  servlet
servlet-nameinfo/servlet-name
jsp-file/onm/index.jsp/jsp-file
  /servlet

  servlet-mapping
servlet-nameinfo/servlet-name
url-pattern/info/url-pattern
  /servlet-mapping

  security-constraint
  web-resource-collection
  web-resource-namesecure/web-resource-name
  url-pattern/info/url-pattern
  /web-resource-collection

  user-data-constraint
  transport-guaranteeCONFIDENTIAL/transport-guarantee
  /user-data-constraint
  /security-constraint

server.xml

  Service name=Tomcat-Standalone

!-- Define an SSL HTTP/1.1 Connector on port 443 --
Connector className=org.apache.catalina.connector.http.HttpConnector
port=443 minProcessors=5 maxProcessors=75
enableLookups=true
acceptCount=10 debug=0 scheme=https
secure=true
Factory
className=org.apache.catalina.net.SSLServerSocketFactory
clientAuth=false protocol=TLS
keystoreFile=c:\tomcat4.0\.keystore
keystorePass=changit
 /
/Connector

!-- Define a non-SSL HTTP/1.1 Connector on port 80 --
Connector className=org.apache.catalina.connector.http.HttpConnector
port=80 minProcessors=5 maxProcessors=75
enableLookups=false
redirectPort=443 acceptCount=10 debug=0
connectionTimeout=6
allowChunking=false/

Engine name=Standalone defaultHost=localhost debug=0
  Logger className=org.apache.catalina.logger.FileLogger
prefix=catalina_log. suffix=.txt timestamp=true/
  Realm className=org.apache.catalina.realm.MemoryRealm /
  Host name=localhost debug=0 appBase=webapps
unpackWARs=false

Context path=
docBase=c:\mmsdev\dev\mms\webapps\mms/Context
  Context path=/images
docBase=c:\mmsdev\dev\mms\webapps\mms\onm\images/Context
  Context path=/tp
docBase=c:\mmsdev\dev\mms\webapps\tp/Context
/Host
/Engine
  /Service

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

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




RE: mod_jk2

2002-06-12 Thread Ignacio J. Ortega

 De: Josh Fenlason [mailto:[EMAIL PROTECTED]]
 Enviado el: 12 de junio de 2002 15:35


 Does anyone know anything about mod_jk2?  Is it a new and 
 improved mod_jk?

Yes..

 What changes were made?  I've looked around quite a bit and 
 all I've been
 able to find is the binaries.  If anyone knows where I could 
 find some more
 detailed documentation, source code or would be able to give 
 me some more
 info, I would greatly appreciate it.  Thanks.

It's currently on preAlpha state, it's reaching alpha at good pace.. :)
you can find more info by downloading jakarta-tomcat-connectors from CVS
and looking at jk/native2 dir.. or by visiting
http://cvs.apache.org/viewcvs/jakarta-tomcat-connectors/jk/native2/
just now the docs are at much brief.. :)..




Saludos ,
Ignacio J. Ortega


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




RE: mod_jk2

2002-06-12 Thread Josh Fenlason

Thanks.  You rule.

-Original Message-
From: Ignacio J. Ortega [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 10:58 AM
To: 'Tomcat Users List'
Subject: RE: mod_jk2


 De: Josh Fenlason [mailto:[EMAIL PROTECTED]]
 Enviado el: 12 de junio de 2002 15:35


 Does anyone know anything about mod_jk2?  Is it a new and
 improved mod_jk?

Yes..

 What changes were made?  I've looked around quite a bit and
 all I've been
 able to find is the binaries.  If anyone knows where I could
 find some more
 detailed documentation, source code or would be able to give
 me some more
 info, I would greatly appreciate it.  Thanks.

It's currently on preAlpha state, it's reaching alpha at good pace.. :)
you can find more info by downloading jakarta-tomcat-connectors from CVS
and looking at jk/native2 dir.. or by visiting
http://cvs.apache.org/viewcvs/jakarta-tomcat-connectors/jk/native2/
just now the docs are at much brief.. :)..




Saludos ,
Ignacio J. Ortega


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




Port based virtual hosting

2002-06-12 Thread David Oxley

In Tomcat 4 a Host node allows name based virtual hosting. How should this
be set up to handle port based virtual hosting.

i.e. should this work:

  Host name=www.host.co.uk:80 debug=0
appBase=/var/sites/webapps/www.host.co.uk:80 unpackWARs=false
autoDeploy=true

 

  /Host

  Host name=www.host.co.uk:443 debug=0
appBase=/var/sites/webapps/www.host.co.uk:443 unpackWARs=false
autoDeploy=true

 

  /Host

 

Dave.




Character encoding and euro currency symbol

2002-06-12 Thread Philippe Van Der Gucht

Hello,

The problem is the euro currency symbol entered in a textfield gets converted
to #8364; when it arrives on the server.

How can we stop this from happening?

The jsp page has the contentType=text/html;charset=UTF-8 directive and the
appropriate meta tag.

I've tried using the filter from the tomcat archive to set the character
encoding on the request but then all the special characters get dumped!

I'm using tomcat 4.0.1


Greetings, Philippe.

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




RE: driver manager does not work neither giving error

2002-06-12 Thread John Gregg

I don't think Tomcat will recognize classes12.zip no matter where you put
it.  Rename it to classes12.jar and place it under
tomcat-homewebapps/project/web-inf/lib, tomcat-home/lib, or
tomcat-home/common/lib.  If Tomcat can't find the driver class, I'd expect
a ClassNotFoundException in your localhost_log file.  Look in
tomcat-home/logs.  Try using a debugger or putting a try/catch around your
code.

Also, if you're happy with hard-coding which db driver to use in your
application, don't bother with Class.forName(...).  It's purpose is to allow
your application to be unaware of the particular driver.  In that case you'd
do this:

String driverName = System.getProperty(driverName);
Class clazz = Class.forName(driverName);
DriverManager.registerDriver(clazz.newInstance());

Of course you'd give up the ability to use driver-specific extensions but
you could swap drivers and databases more easily.

john

-Original Message-
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED].
org]On Behalf Of Vikramjit Singh
Sent: Wednesday, June 12, 2002 2:39 AM
To: '[EMAIL PROTECTED]'; JSP-INTEREST (E-mail)
Subject: driver manager does not work neither giving error


Hi,

I am deploying my application from tomcat 3.2.1 to tomcat 4.0.3. I have
installed tomcat 4.0.3 and its working fine. I have a servlet which is
loaded on start up. The servlet is for connection pooling which opens the
connections. I am using oracle driver classes12.zip for connection pooling.

In my OracleConnectionPool.java these lines are not being reached:

DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
Class.forName(oracle.jdbc.driver.OracleDriver);

and after these  lines the connection pooling methods of Oracle driver is
called.

neither is it throwing any error.

Since before these lines which ever code is there its working as the
system.out.println statements are being printed on the console. I know
Tomcat 4.0.3 has in built ConnectionPooling mechanism, hope thats not the
source of the problem. I am pretty much confused. Atleast it should throw an
error.

Thanking in advance.

Regards,
Vikramjit Singh,
Systems Engineer,
GTL Ltd.
Ph. 7612929-1031


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




  1   2   >