Re: Re: tomcat4 context problem

2002-05-06 Thread userlist
Hi,
It's still not working after copying to ROOT webapp.
I need to do following to get it working
-  did following settings in httpd.conf, so that /servlet request will be passwed to mailclient webapp
  
   WebAppConnection connwarplocalhost:8008
   WebAppDeploy mailclientconn/mailclient
   WebAppDeploy mailclientconn/servlet
- And in mailclient/WEB-INF/web.xml, did these settings so that it will accept /* request to invoker


invoker


/*



Now it's working, but I want to know is this a right way to get whatever I want.
NOTE: I can make entry for each servlet in web.xml just like SnoopServlet then it will work as http://IP_ADDRESS/servlet/HellowWorld, but I wonder if I can do one settings for all my servlets.

thank you very much
amol


---Original Message-
>From : [EMAIL PROTECTED]  <[EMAIL PROTECTED]>
To : Tomcat Users List  <[EMAIL PROTECTED]>
Sent Date : Tue 30 April 2002
Subject : Re: tomcat4 context problem


>
Move the HelloWorldExample servlet under the webapps/ROOT/WEB-INF
directory.  Also uncomment the Context entry for ROOT in server.xml (if it
isn't already)

RS





[EMAIL PROTECTED] on 04/30/2002 05:53:29 AM

Please respond to 'Tomcat Users List' <[EMAIL PROTECTED]>

To:tomcat users list <[EMAIL PROTECTED]>
cc:

Subject:tomcat4 context problem

Hi everybody,
I am using
tomcat4-4.0-1
tomcat4-webapps-4.0-1
mod_webapp-1.0-1
rpms and I have set apache - tomcat connection successfully.
So now I can access sample servlet as
http://192.168.0.26:8180/examples/servlet/HelloWorldExample
as well as
http://192.168.0.26/examples/servlet/HelloWorldExample

But now I want to access this servlet using following URL
http://192.168.0.26/servlet/HelloWorldExample
I already have an web application which I am running on tomcat 3.2.1 with
such access paths.

Can you give me any pointers in setting apache-tomcat4 to work like this?

thanks
amol
--
To unsubscribe:   
For additional commands: 
Troubles with the list: 








--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



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


How to pass a global parameter to all servlet of a webapp

2002-05-06 Thread userlist
I have a webapplication which has 20/25 servlets, I have kept all global settings of the webapp in a property file and want to pass these property file path to all servlet .
I came to know that for individual servlet I can define init parameters as 


foo
bar

But again defining these for all servlet is a problem, so I am looking for a settings which will be accessible to all servlet from a webapp.

One way which I can think of is to pass argument to java using CATALINA_OPTS, but then it becomes accessible to all webapps. 
So please tell me if there is any way to have gloabl init parameters for all servlet/JSPs of a webapp?

thanks
Amol

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


RE: How to pass a global parameter to all servlet of a webapp

2002-05-06 Thread Mark.Nguyen

One way is to define this property in the web.xml as a env-entry and retrieve it 
using Context.lookup method.
 
check web.xml and jndiservlet.java under the examples directory of your tomcat 
installation.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday,6 May 2002 17:02
To: tomcat users list
Subject: How to pass a global parameter to all servlet of a webapp


I have a webapplication which has 20/25 servlets, I have kept all global settings of 
the webapp in a property file and want to pass these property file path to all servlet 
.

I came to know that for individual servlet I can define init parameters as 





foo

bar



But again defining these for all servlet is a problem, so I am looking for a settings 
which will be accessible to all servlet from a webapp.



One way which I can think of is to pass argument to java using CATALINA_OPTS, but then 
it becomes accessible to all webapps. 

So please tell me if there is any way to have gloabl init parameters for all 
servlet/JSPs of a webapp?



thanks

Amol


--
This message and any attachment is confidential and may be privileged or otherwise 
protected from disclosure.  If you have received it by mistake please let us know by 
reply and then delete it from your system; you should not copy the message or disclose 
its contents to anyone.






R: How to pass a global parameter to all servlet of a webapp

2002-05-06 Thread Alessio Fiore

Hi, you can use context params in web.xml:

context-param
param-nameConfigFilePath/param-name
param-value/foo/bar.properties/param-value
/context-param

Then you can read this parameter in all your servlets:

String strPath =
(String)(getServletConfig().getServletContext().getInitParameter(ConfigFile
Path));

Regards
Alessio

-Messaggio originale-
Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Inviato: lunedì 6 maggio 2002 9.02
A: tomcat users list
Oggetto: How to pass a global parameter to all servlet of a webapp


I have a webapplication which has 20/25 servlets, I have kept all global
settings of the webapp in a property file and want to pass these property
file path to all servlet .
I came to know that for individual servlet I can define init parameters as 


foo
bar

But again defining these for all servlet is a problem, so I am looking for a
settings which will be accessible to all servlet from a webapp.

One way which I can think of is to pass argument to java using
CATALINA_OPTS, but then it becomes accessible to all webapps. 
So please tell me if there is any way to have gloabl init parameters for all
servlet/JSPs of a webapp?

thanks
Amol



- Disclaimer -
This email and any attachments thereto may contain information which is
confidential and/or protected by intellectual property rights and are
intended for the sole use of the recipient(s) named above. Any use of the
information contained herein (including, but not limited to, total or
partial reproduction, communication or distribution in any form) or the
taking of any action in reliance on the contents, by persons other than the
designated recipient(s) is strictly prohibited.

If you have received this email in error, please notify the sender either by
telephone or by email and delete the material from any computer.

Thank you for your cooperation. 



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




URL rewriting

2002-05-06 Thread Chris Stephens

Hi folks,

Apologies if this is a newbie question but I've looked around a fair bit 
(inc. the archives of this list) and can't find an answer.

I want my users to enter in URLs like 
http://www.domain.com/products/zips and for this URL to be afront for 
a completely unrelated URL (e.g. /webappname/do/showall?id=zips [I'm 
using Struts btw for my current project but I'd like to achieve the 
rewrite outside of Struts]).

Where is the best place to do this URL rewriting? It needs to be a 
forward rather than a redirect (I don't want the actual URL showing 
in the browser).

Should I use 2.3 filters? Or is there a better way? Is there something 
already written to do this?

TIA,

Chris


*
This email and any files transmitted with it may be confidential and
privileged.  It is intended solely for the use of the individual or
parties to whom it is addressed. If you have received this email in
error please forward it to [EMAIL PROTECTED] and delete all
copies of this message immediately. Thank you.
*


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




mod_webapp.dll

2002-05-06 Thread Sven Linckels

Hi,

Yes, I need the mod_webapp.dll :) Could someone send me the file or give
me the link where to find it? I'm not good at handling compilers, so I
prefer getting a compiled version.

Thanx a lot!

Best regards,
Sven Linckels


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




Re: mod_webapp.dll

2002-05-06 Thread Galbayar


- Original Message - 
From: Sven Linckels [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, May 06, 2002 17:51
Subject: mod_webapp.dll


 Hi,
 
 Yes, I need the mod_webapp.dll :) Could someone send me the file or give
 me the link where to find it? I'm not good at handling compilers, so I
 prefer getting a compiled version.
 
 Thanx a lot!
 
 Best regards,
 Sven Linckels
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 



webapp-module-1.0-tc40-windows.zip
Description: application/compressed

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


SSL certificate help!

2002-05-06 Thread t . riteshmenon

Hello all,

I have got a  Trial SSL Server Digital ID from Verisign . I would like to
know how to configure it with tomcat(3.2.1) . i'm trying to enable ssl
with tomcat. 
any help in this regard would be most welcome.

thanks in advance
Ritesh

This message contains privileged and confidential information and is
intended only for the individual named.If you are not the intended recipient
you should not disseminate,distribute,store,print, copy or deliver this
message.Please notify the sender immediately by e-mail if you have received
this e-mail by mistake and delete this e-mail from your system.E-mail
transmission cannot be guaranteed to be secure or error-free as information
could be intercepted,corrupted,lost,destroyed,arrive late or incomplete or
contain viruses.The sender therefore does not accept liability for any
errors or omissions in the contents of this message which arise as a result
of e-mail transmission. If verification is required please request a
hard-copy version.


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




apache tomcat4 mod_webapp mod_jk

2002-05-06 Thread userlist
Sorry for asking this question if it is already debated. 

I could set tomcat, apache and mod_webapp very easily. But now I want to know 

- whether to go for mod_webapp or mod_jk for apache, tomcat4 integration ? 
- Is mod_webapp is offering any advantages over mod_jk? 

thanks
Amol

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


Re: apache tomcat4 mod_webapp mod_jk

2002-05-06 Thread Anthony W. Marino

Load balancing is possible with mod_jk but not for mod_webapp. 

Anthony

 Sorry for asking this question if it is already debated.

 I could set tomcat, apache and mod_webapp very easily. But now I want to
 know

 - whether to go for mod_webapp or mod_jk for apache, tomcat4 integration ?
 - Is mod_webapp is offering any advantages over mod_jk?

 thanks
 Amol


 
 Email in Indian languages.
 This mail has been sent to you from http://mithi.com.



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




Re: Re: apache tomcat4 mod_webapp mod_jk

2002-05-06 Thread userlist
Will you suggest to go for mod_webapp if I don't want load balancing ?

---Original Message-
>From : Anthony W. Marino  <[EMAIL PROTECTED]>
To : Tomcat Users List  <[EMAIL PROTECTED]>, [EMAIL PROTECTED]  <[EMAIL PROTECTED]>
Sent Date : Mon 06 May 2002
Subject : Re: apache tomcat4 mod_webapp mod_jk


>Load balancing is possible with mod_jk but not for mod_webapp. 

Anthony

> Sorry for asking this question if it is already debated.
>
> I could set tomcat, apache and mod_webapp very easily. But now I want to
> know
>
> - whether to go for mod_webapp or mod_jk for apache, tomcat4 integration ?
> - Is mod_webapp is offering any advantages over mod_jk?
>
> thanks
> Amol
>
>
> 
> Email in Indian languages.
> This mail has been sent to you from http://mithi.com.




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


Problem while configuring mod_jk for Tomcat 4.0.3

2002-05-06 Thread Raja Sekhar

Hi,

Can any one say me how exactly we need to configure mod_jk for Tomcat 4.0.3? I need to 
do this urgently. Some one who already did this, please let me know the steps.

I want to do it on Linux.

Thanks  Regards,

..Raj


Join 18 million Eudora users by signing up for a free Eudora Web-Mail account at 
http://www.eudoramail.com

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




Re: Problem while configuring mod_jk for Tomcat 4.0.3

2002-05-06 Thread userlist
If you can use mod_webapp then visit : 
http://www.ajug.org/howto/tomcat4.html
and follow steps. It worked for me.
But I am also struggling with mod_jk for tomcat4

regards
Amol


---Original Message-
>From : Raja  Sekhar  <[EMAIL PROTECTED]>
To : [EMAIL PROTECTED]  <[EMAIL PROTECTED]>
Sent Date : Mon 06 May 2002
Subject : Problem while configuring mod_jk for Tomcat 4.0.3


>Hi,

Can any one say me how exactly we need to configure mod_jk for Tomcat 4.0.3? I need to do this urgently. Some one who already did this, please let me know the steps.

I want to do it on Linux.

Thanks & Regards,

..Raj


Join 18 million Eudora users by signing up for a free Eudora Web-Mail account at http://www.eudoramail.com

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



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


Re: Loadbalancing....please Help!

2002-05-06 Thread Christophe Furmaniak

Tomcat 4 does know about loadbalancing, since 4.0.2 or something like
that. Just have a look at http://www.ubeans.com/tomcat/index.html where
everything is clearly explained...and don't forgot to use archives of
the mailing list
(http://nagoya.apache.org/eyebrowse/SummarizeList?listId=88) :)

Christophe


Le lun 06/05/2002 à 18:17, Gabriel Maffia a écrit :
 I thought that Sticky Sessions were a mod_jk feature...not a tomcat feature.
 Besides, Its weird that a newer version of Tomcat doesnt handle sticky
 sessions
 
 I´m doing loadbalancing now with an application called Pen that works pretty
 well...though I would like to find out why is Tomcat (or the connector)
 behaving this way.
 
 Thanks a lot
 
 Gabriel
 
 
 - Original Message -
 From: Vinay Singh [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Friday, May 03, 2002 3:41 AM
 Subject: RE: Loadbalancingplease Help!
 
 
 I do not think sticky session is avalable with TC 4.0.1
 
 I am using TC3.2.3 to be able to do sticky session LB.
 
 Vinay
 
 -Original Message-
 From: Gabriel Maffia [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, May 05, 2002 11:44 PM
 To: 'Tomcat Users List'
 Subject: Loadbalancingplease Help!
 
 
 Hello all:
 
 I´ve been struggling with this issue for quite a long time now, and I
 can´t
 seem to find a solution.
 
 I´m actually using this configuration:
 
 Apache 1.3.23
 Tomcat 4.0.1
 Jboss 4.2.3
 
 
 I´ve used mod_jk and the loadbalancer connector to connect my web server
 with two other tomcat servers. Both of the tomcat servers connect to the
 Jboss server.
 
 The problem is that sessions are not mantained. Apache keeps sending me
 randomly to one tomcat server or the other instead of choosing one. That
 makes me lose my session id and get errors in my application.
 
 
 Regarding to the tomcat servers configuration, I have my jvmroute
 statement
 set right (I think):
 
 in server 1:
 
 Engine jvmRoute=tomcat1 name=Standalone
 defaultHost=foo.bar.com
 debug=1
 
 in server 2:
 
 
 Engine jvmRoute=tomcat2 name=Standalone
 defaulttHost=foo2.bar.com
 debug=1
 
 
 
 the workers.properties file has this configuration:
 
 # list the workers by name
 
 worker.list=tomcat1, tomcat2, loadbalancer
 
 # 
 # First tomcat server
 # 
 worker.tomcat1.port=8009
 worker.tomcat1.host=foo.bar.com
 worker.tomcat1.type=ajp13#
 
 # Specifies the load balance factor when used with
 # a load balancing worker.
 # Note:
 #   lbfactor must be  0
 #   Low lbfactor means less work done by the worker.
 worker.tomcat1.lbfactor=50
 
 # 
 # Second tomcat server
 # 
 worker.tomcat2.port=8009
 worker.tomcat2.host=foo2.bar.com
 worker.tomcat2.type=ajp13
 
 # Specify the size of the open connection cache.
 #worker.tomcat2.cachesize
 
 #
 # Specifies the load balance factor when used with
 # a load balancing worker.
 # Note:
 #   lbfactor must be  0
 #   Low lbfactor means less work done by the worker.
 worker.tomcat2.lbfactor=50
 
 # 
 # Load Balancer worker
 # 
 
 #
 # The loadbalancer (type lb) worker performs weighted round-robin
 # load balancing with sticky sessions.
 # Note:
 #   If a worker dies, the load balancer will check its state
 #once in a while. Until then all work is redirected to peer
 #worker.
 worker.loadbalancer.type=lb
 worker.loadbalancer.balanced_workers=tomcat1, tomcat2
 
 #
 # END workers.properties
 #
 
 Maybe I set the lbfactor wrong? Wich numbers should I use?
 
 Thanks a lot for all your help so far.
 
 
 Gabriel
 
 PS: Here is a little graph of the distribution of the servers
 
 
 *
 ***
 *Apache web server  ** Tomcat2 server   *
 *Tomcat1 server   **  Jboss 2.4.3
 *
 *foo.bar.com** foo2.bar.com
 *
 *
 ***
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



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




RE: SSL certificate help!

2002-05-06 Thread Dave North

Here is what worked for me:

STEP A - generate your private key

Pre-req: JDK must be installed

1) cd to $JAVA_HOME/jre/bin

2) run ./keytool -genkey -alias tomcat -keyalg RSA -keystore FULL PATH
TO KEYSTORE

3) You will be prompted for a password for the keystore

3) at the prompts, enter: 

What is your first and last name?
  [Unknown]:  DO NOT USE NAME - ENTER THE NAME OF YOUR MACHINE AS IT'S
KNOWN TO VISITORS
What is the name of your organizational unit?
  [Unknown]:  WHATEVER YOU LIKE
What is the name of your organization?
  [Unknown]:  TYPICALLY COMPANY NAME
What is the name of your City or Locality?
  [Unknown]:  YOUR CITY
What is the name of your State or Province?
  [Unknown]:  STATE OR PROV
What is the two-letter country code for this unit?
  [Unknown]:  COUNTRY CODE

4) You will then be prompted for another password - use the same (ie.
Press ENTER)

STEP B - Generate a Certificate Request

1) cd to  $JAVA_HOME/jre/bin

2) ./keytool -certreq -alias tomcat -file csr.txt -keystore FULL PATH
TO SAME KEYSTORE CREATED IN STEP A

STEP C - Get the new cert from Verisign

www.versign.com has all the info here

STEP D - Install the Verisign ROOT CA cert AND your server cert

When you get your cert in step C, they will provide you with the root
cert

1) cd to  $JAVA_HOME/jre/bin

2) ./keytool -import -alias verisign -file FILE THAT CONTAINS THE
VERSIGN ROOT CA CERT -keystore PATH TO KEYSTORE

3) ./keytool -import -trustcacerts -alias tomcat -file FILE THAT
CONTAINS YOUR CERT FROM VERISIGN -keystore PATH TO KEYSTORE


STEP E - Configure an SSL listener for tomcat

1) edit $JAKARTA_HOME/conf/server.xml and add the following:

!-- 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=10 scheme=https secure=true
  Factory className=org.apache.catalina.net.SSLServerSocketFactory
   clientAuth=false protocol=TLS
   keystoreFile=FULL PATH TO KEYSTORE FILE
keystorePass=PASSWORD HERE/
/Connector

2) Stop and start the tomcat server

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Monday, May 06, 2002 6:27 AM
To: [EMAIL PROTECTED]
Subject: SSL certificate help!


Hello all,

I have got a  Trial SSL Server Digital ID from Verisign . I would like
to
know how to configure it with tomcat(3.2.1) . i'm trying to enable ssl
with tomcat. 
any help in this regard would be most welcome.

thanks in advance
Ritesh


This message contains privileged and confidential information and is
intended only for the individual named.If you are not the intended
recipient
you should not disseminate,distribute,store,print, copy or deliver this
message.Please notify the sender immediately by e-mail if you have
received
this e-mail by mistake and delete this e-mail from your system.E-mail
transmission cannot be guaranteed to be secure or error-free as
information
could be intercepted,corrupted,lost,destroyed,arrive late or incomplete
or
contain viruses.The sender therefore does not accept liability for any
errors or omissions in the contents of this message which arise as a
result
of e-mail transmission. If verification is required please request a
hard-copy version.



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


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




OT: where javax.sql.*

2002-05-06 Thread rainer jünger

Hi, 

I don't know where I can get teh javax.sql.* package from. It is not part of 
servlet.jar. But where is it??

thanks, rainer



Re: xerces version

2002-05-06 Thread PChaganti

Yes. If you place the new jar in your webapps lib, your webapp will use 
the new Xerces2. Keep in mind though that Tomcat itself will use the jar 
it is shipped with and not the new one in your webapp lib.

-prabhakar





Whats the version of Xerces that is shipped with
Tomcat 4.0.3. I want to use Xerces2 in my webapp,
Can I just place the Xerces2 jars in the webapp's lib?



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




Re: SSL certificate help!

2002-05-06 Thread Raja Sekhar

Hi,

Follow these steps to configure your digital id

1. generate a local certificate:
   keytool -genkey -alias tomcat -keyalg RSA -keystore myfile where myfile is the 
name of the desired keystore-file

2. generate the CSR (you need it to request your (demo)certificate)
   keytool -certreq -keyalg RSA -alias tomcat -file certreq.pem
-keystore
myfile
   now you have a file called certreq.pem. Send this to your
trustcenter.

Note : You can skip steps 1  2 becoz u said, u already got a verisign certificate. 
But make sure that u have done these steps only to send your demo cert. to verisign.

3. Goto verisign  download TrustedCA Root Certificate which they give for the 
browser. The downloaded file name would be getcacert. Now use the following command to 
import that into trust store

keytool -import -alias root -keystore myfile -trustcacerts -file
root-cert-file

4. Now import your verisign certificate with this command

keytool -import -alias tomcat -keystore myfile -trustcacerts -file
received-cert-file

With the above 4 steps, u r ready with your keystore. Now goto server.xml  search for 
Http10Connector  port=8443 secure=true /

Uncomment the above line  add the following changes

 Http10Connector  port=8443 secure=true 
  keystoreFile = path of your keystore
  keypass = if u give anything other than changeit
  socketFactory = org.apache.tomcat.net.SSLSocketFactory
/

I think this should solve your problem. All the best.

Regards,

..Raj
--

On Mon, 6 May 2002 15:57:03t.riteshmenon wrote:
Hello all,

I have got a  Trial SSL Server Digital ID from Verisign . I would like to
know how to configure it with tomcat(3.2.1) . i'm trying to enable ssl
with tomcat. 
any help in this regard would be most welcome.

thanks in advance
Ritesh

This message contains privileged and confidential information and is
intended only for the individual named.If you are not the intended recipient
you should not disseminate,distribute,store,print, copy or deliver this
message.Please notify the sender immediately by e-mail if you have received
this e-mail by mistake and delete this e-mail from your system.E-mail
transmission cannot be guaranteed to be secure or error-free as information
could be intercepted,corrupted,lost,destroyed,arrive late or incomplete or
contain viruses.The sender therefore does not accept liability for any
errors or omissions in the contents of this message which arise as a result
of e-mail transmission. If verification is required please request a
hard-copy version.


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




Join 18 million Eudora users by signing up for a free Eudora Web-Mail account at 
http://www.eudoramail.com

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




Re: where javax.sql.*

2002-05-06 Thread Richard Sobota

AFAIK, package javax.sql is part of JDK 1.4.

HTH

Richard


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




Force download through a jsp

2002-05-06 Thread RAYMOND Romain


Hello,

I try to download a text file through a jsp mapped to the correct url.
my problem is that the content file is shown and not downloaded.
I use  %@page contentType=text/plain% .


Thanks.

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




R: where javax.sql.*

2002-05-06 Thread Alessio Fiore

A javax.sql.* implementation is commonly included in a JDBC driver package
(i.e. classes12.zip, Oracle JDBC driver).

-Messaggio originale-
Da: rainer jünger [mailto:[EMAIL PROTECTED]]
Inviato: lunedì 6 maggio 2002 14.01
A: Tomcat Users List
Oggetto: OT: where javax.sql.*


Hi, 

I don't know where I can get teh javax.sql.* package from. It is not part of
servlet.jar. But where is it??

thanks, rainer



- Disclaimer -
This email and any attachments thereto may contain information which is
confidential and/or protected by intellectual property rights and are
intended for the sole use of the recipient(s) named above. Any use of the
information contained herein (including, but not limited to, total or
partial reproduction, communication or distribution in any form) or the
taking of any action in reliance on the contents, by persons other than the
designated recipient(s) is strictly prohibited.

If you have received this email in error, please notify the sender either by
telephone or by email and delete the material from any computer.

Thank you for your cooperation. 



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




Re: Re: apache tomcat4 mod_webapp mod_jk

2002-05-06 Thread Anthony W. Marino

On Monday 06 May 2002 07:42 am, [EMAIL PROTECTED] wrote:
 Will you suggest to go for mod_webapp if I don't want load balancing ?


Isn't there still a potential performance issue using mod_webapp since 
static pagesmust first go through TC before Apache can serve a page?

Anthony


 ---Original Message-
 From : Anthony W. Marino  [EMAIL PROTECTED]
 To : Tomcat Users List  [EMAIL PROTECTED],
 [EMAIL PROTECTED]  [EMAIL PROTECTED] Sent Date : Mon 06 May 2002
 Subject : Re: apache tomcat4 mod_webapp mod_jk

 Load balancing is possible with mod_jk but not for mod_webapp.

 Anthony

  Sorry for asking this question if it is already debated.
 
  I could set tomcat, apache and mod_webapp very easily. But now I want to
  know
 
  - whether to go for mod_webapp or mod_jk for apache, tomcat4 integration
  ? - Is mod_webapp is offering any advantages over mod_jk?
 
  thanks
  Amol
 
 
  
  Email in Indian languages.
  This mail has been sent to you from http://mithi.com.

 
 Email in Indian languages.
 This mail has been sent to you from http://mithi.com.



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




Running 3.2 and 4.0 instances on same machine

2002-05-06 Thread Steve Howie

Subject line says it all - are there any issues apart from port number 
stopping me from running Tomcat 3.2.4 and 4.0 on the same machine ??

Thanks

Scotty


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




jsp:param value?

2002-05-06 Thread Jay Burgess

I tried this question on the JSP list, but haven't
received any replies. I don't honestly know whether
this is a Tomcat issue, or my error in reading the
spec.

Very simply, shouldn't the percent sign be valid in
the following jsp:param element?

   jsp:include page=myservlet flush=true
   jsp:param name=width4 value=33%/
   /jsp:include

Tomcat 4.0.3 doesn't parse this include block correctly.

Jay


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




Re: URL rewriting

2002-05-06 Thread Jeffrey Bonevich

You can use mod_rewrite and mod_proxy to do just this (at least if you 
are using apache).  See http://www.engelschall.com/pw/apache/rewriteguide/

jeff

Chris Stephens wrote:

 Hi folks,
 
 Apologies if this is a newbie question but I've looked around a fair bit 
 (inc. the archives of this list) and can't find an answer.
 
 I want my users to enter in URLs like 
 http://www.domain.com/products/zips and for this URL to be afront for 
 a completely unrelated URL (e.g. /webappname/do/showall?id=zips [I'm 
 using Struts btw for my current project but I'd like to achieve the 
 rewrite outside of Struts]).
 
 Where is the best place to do this URL rewriting? It needs to be a 
 forward rather than a redirect (I don't want the actual URL showing 
 in the browser).
 
 Should I use 2.3 filters? Or is there a better way? Is there something 
 already written to do this?
 
 TIA,
 
 Chris
 
 
 *
 This email and any files transmitted with it may be confidential and
 privileged.  It is intended solely for the use of the individual or
 parties to whom it is addressed. If you have received this email in
 error please forward it to [EMAIL PROTECTED] and delete all
 copies of this message immediately. Thank you.
 *
 
 
 -- 
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 


-- 
Jeffrey Bonevich
Ann Arbor, Michigan
[EMAIL PROTECTED]
http://www.bonevich.com

Hwæt! Wë Gär-Dena   in geär-dagum,
peod-cyninga,   prym gefrünon,
hü ða aepelingas   ellen fremedon!


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




Re: Force download through a jsp

2002-05-06 Thread Mohan rao A / Care Computer Solutions Pvt Ltd

hi, the problem you mentioned is actually not with jsp. i think you might be using 
some filters to parse jsp files. the file is not parsed. that is why the entire file 
is download without being parsed.
-- Original message --
Date: Mon, 06 May 2002 14:35:26 +0200
From: RAYMOND Romain [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED], [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Force download through a jsp


Hello,

I try to download a text file through a jsp mapped to the correct url.
my problem is that the content file is shown and not downloaded.
I use  %@page contentType=text/plain% .


Thanks.

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


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




server.xml DTD - where can I find it ?

2002-05-06 Thread João Luiz de Brito Macaíba

Hi,

does anyone know where I can find the DTD for server.xml ?

TIA,

Macaíba.

--
From The Practice Programming by Brian W Kernighan  Rob Pike:

  Another effective [debugging] technique is to explain your code to
someone else. This will often cause you to explain the bug to yourself.
Sometimes it takes no more than a few sentences, followed by an
embarrassed Never mind. I see what's wrong. Sorry to bother you.

  This works remarkbly well; you can even use non-programmers as
listeners. One university computer center kept a teddy bear near the help
desk. Students with mysterious bugs were required to explain them to the
bear before they could speak to a human counselor.

**
|  .''`.  | Debian GNU/Linux: http://www.debian.org|
| : :'  : | Debian BR...: http://debian-br.sourceforge.net |
| `. `'`  |  |
|   `-|  Be Happy! Be FREE!  |
**


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




Re: where javax.sql.*

2002-05-06 Thread rainer jünger




 AFAIK, package javax.sql is part of JDK 1.4.

Yes, you are right! JDK 1.4 but not JDK 1.3

thanks, rainer


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




Re: where javax.sql.*

2002-05-06 Thread rainer jünger

Hi,


 A javax.sql.* implementation is commonly included in a JDBC driver package
 (i.e. classes12.zip, Oracle JDBC driver).

not with my MySQL JDBC Driver 2.0.12 : (

R.


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




help plz urgent

2002-05-06 Thread # Lalit Nagpal #


i use the MultipartRequest class getParameter function to receive html form data apart 
from the files which are uploaded too. i do not know why i get the error saying 
posted content type is not multi part form data. when i upload files with this 
servlet without any input type=text type data upload works fine. when i try to get 
other fields alongwith the input type=file at the server end file upload does not 
work. plz help. i want to receive both textual data typed by the user and a file 
attached by the user at the server from a single form. but when i try to do this i get 
content type is not multipart form-data error. someone plz help urgent.

thanx a lot


# Lalit Nagpal #


-
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness


Re: help plz urgent

2002-05-06 Thread David Rault

you _have_ to set the encoding on your form :
form method=POST action=/some_url  enctype=multipart/form-data
[some_form_inputs]
/form
bye
David

- Original Message -
From: # Lalit Nagpal # [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, May 06, 2002 4:12 PM
Subject: help plz urgent



 i use the MultipartRequest class getParameter function to receive html
form data apart from the files which are uploaded too. i do not know why i
get the error saying posted content type is not multi part form data. when
i upload files with this servlet without any input type=text type data
upload works fine. when i try to get other fields alongwith the input
type=file at the server end file upload does not work. plz help. i want to
receive both textual data typed by the user and a file attached by the user
at the server from a single form. but when i try to do this i get content
type is not multipart form-data error. someone plz help urgent.

 thanx a lot


 # Lalit Nagpal #


 -
 Do You Yahoo!?
 Yahoo! Health - your guide to health and wellness



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




Re: help plz urgent

2002-05-06 Thread # Lalit Nagpal #

P I HAVE ALREADY DONE THAT
Pnbsp; BIDavid Rault
lt;[EMAIL PROTECTED]gt;/I/B wrote: 
BLOCKQUOTE style=BORDER-LEFT: #1010ff 2px solid;
MARGIN-LEFT: 5px; PADDING-LEFT: 5pxyou _have_ to set
the encoding on your form :BR
FORM action=/some_url encType=multipart/form-data
method=postBR[some_form_inputs]BR/FORMBRbyeBRDavidBRBR-
Original Message -BRFrom: # Lalit Nagpal #
[EMAIL PROTECTED]BRTo:
[EMAIL PROTECTED]BRSent: Monday, May
06, 2002 4:12 PMBRSubject: help plz
urgentBRBRBRgt;BRgt; i use the
MultipartRequest class getParameter function to
receive htmlBRform data apart from the files which
are uploaded too. i do not know why iBRget the error
saying posted content type is not multi part form
data. whenBRi upload files with this servlet
without any INPUT databrupload works fine. when i
try to get other fields alongwith the
INPUTBRtype=file at the server end file upload
does not work. plz help. i want toBRreceive both
textual data typed by the user and a file attached by
the userBRat the server from a single form. but when
i try to do this i get contentBRtype is not
multipart form-data error. someone plz help
urgent.BRgt;BRgt; thanx a
lotBRgt;BRgt;BRgt; # Lalit Nagpal
#BRgt;BRgt;BRgt;
-BRgt; Do You
Yahoo!?BRgt; Yahoo! Health - your guide to health
and wellnessBRBRBRBR--BRTo unsubscribe,
e-mail: ?XML:NAMESPACE PREFIX = MAILTO
/MAILTO:[EMAIL PROTECTED]BRFor
additional commands, e-mail: 
MAILTO:[EMAIL PROTECTED]BR/BLOCKQUOTE/MAILTO:[EMAIL PROTECTED]/MAILTO:[EMAIL PROTECTED]

__
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com

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




R: where javax.sql.*

2002-05-06 Thread Gianluca Gravina

 
 not with my MySQL JDBC Driver 2.0.12 : (
 
 R.
 

.sql classes are classes to get data from a JDBC driver, If U're
searching a jdbc driver for mysql U have to download from www.mysql.org,
there are some stable, once downloaded put then in your jre/lib/ext
(hope it's the right path ...) and U get it 

Bye, 

Gianluca Gravina



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




HELP PLZ URGENT

2002-05-06 Thread # Lalit Nagpal #

i use the
MultipartRequest class getParameter function to
receive html form data apart from the files which
are uploaded too. i do not know why i get the error
saying posted content type is not multi part form
data. when i upload files with this servlet
without any INPUT type=text data upload works fine.
when i try to get other fields alongwith the
INPUT type=file at the server end file upload
does not work. plz help. i want to receive both
textual data typed by the user and a file attached by
the user at the server from a single form. but when
i try to do this i get content type is not
multipart form-data error. someone plz help
urgent.

I HAVE ALREADY SET input type=file
ENCTYPE=multipart/form-data method=post
action=servlet. so that is not the problem

thanx a lot

=
# Lalit Nagpal #

__
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com

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




Re: where javax.sql.*

2002-05-06 Thread rainer jünger

Hi,

well, I am using the MySQL JDBC driver since a while
But it does not include the packages javax.sql.* course I need the
javax.sql.DataSource class.

thanks, R.


 
  not with my MySQL JDBC Driver 2.0.12 : (
 
  R.
 

 .sql classes are classes to get data from a JDBC driver, If U're
 searching a jdbc driver for mysql U have to download from www.mysql.org,
 there are some stable, once downloaded put then in your jre/lib/ext
 (hope it's the right path ...) and U get it 

 Bye,

 Gianluca Gravina



 --
 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: where javax.sql.*

2002-05-06 Thread Jeff Macomber

in JDK 1.4 it is included with the jdk.  In Jdk1.3 it is a separate download
for the jdbc extensions.  Here is the link:

http://java.sun.com/products/jdbc/download.html#spec

Jeff

-Original Message-
From: Gianluca Gravina [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 06, 2002 10:22 AM
To: 'Tomcat Users List'
Subject: R: where javax.sql.*


 
 not with my MySQL JDBC Driver 2.0.12 : (
 
 R.
 

.sql classes are classes to get data from a JDBC driver, If U're
searching a jdbc driver for mysql U have to download from www.mysql.org,
there are some stable, once downloaded put then in your jre/lib/ext
(hope it's the right path ...) and U get it 

Bye, 

Gianluca Gravina



--
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 plz urgent

2002-05-06 Thread David Rault

well, first of all, YOU DON'T HAVE TO CAPITALIZE YOUR TEXT
IT'S ANNOYING TO READ
i'm trying to _help_ here

try to send some of your html code (the multi part form)
and the code of the server component in which you initialize the
wrapper/read the parameters
by the way, some extra info might help :
what multipart library are you using (o'reilly ? version ?)
same question about tomcat and web connector
since you didn't send any code, i assumed it might be an obvious problem...

David



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




Re: help plz urgent

2002-05-06 Thread # Lalit Nagpal #


so sorry ... so sorry for capitalising ... i know u
were trying to help ... just that things r urgent ...
so sorry anyway

html code a bit, form, type=text and type=file tags

body

form name=commonform action=/servlet/TotalUpload
ENCTYPE=multipart/form-data

input type=text size=10 name=acadyear
maxlength=9/input 

input type=file size=18 name=attach1/input

using oreilly ... one of the most recent versions ...
sorry cant say version date.

using MultipartRequest.getParameter(...) function to
extract text data. and upload as usual.

error is content type is not multipart/form-data

plz help man



--- David Rault [EMAIL PROTECTED] wrote:
 well, first of all, YOU DON'T HAVE TO CAPITALIZE
 YOUR TEXT
 IT'S ANNOYING TO READ
 i'm trying to _help_ here
 
 try to send some of your html code (the multi part
 form)
 and the code of the server component in which you
 initialize the
 wrapper/read the parameters
 by the way, some extra info might help :
 what multipart library are you using (o'reilly ?
 version ?)
 same question about tomcat and web connector
 since you didn't send any code, i assumed it might
 be an obvious problem...
 
 David
 
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


=
# Lalit Nagpal #

__
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com

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




.NoClassDefFoundError: java/util/ArrayList

2002-05-06 Thread kn Nair

Hi , I hope this is the way to ask,I'm new to apache and tomcat

OS HP-UX-11.0

jdk  j HP-UX Java C.01.18.05 02/06/2001 15:50:29 jind03
in /opt/java/bin

Apache is running trouble free on localhost:

Tomcat is under /opt/tomcat

the catalina.sh script runs and throws this error

This is the way i run  it

 $/opt/java/bin/java -classpath 
/opt/java/lib/classes.zip:/opt/tomcat/bin/bootstrap.jar -Dcatalina.base=/opt/tomcat 
-Dcatalina.home=/opt/tomcat org.apache.catalina.startup.Bootstrap start

and I get this error

Bootstrap: Class loader creation threw exception
java.lang.NoClassDefFoundError: java/util/ArrayList
at=20
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:138)

I wrote simple programs involving java.util.* and it works without any 
problem.What am i doing wrong
Where is the program trying to find the class.i tried it with tools.jar also in my 
java path
also in the classpath but the same error occurs

Thx for your help





 Krishnankutty  N Nair
Systems Engineer-Factory Automation
Sony Semi Conductor San Antonio
(210)-647-6754(W)
(210)-235-1059(Pager)
email:[EMAIL PROTECTED] 





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




JDom in java-xml-pack for Sun??

2002-05-06 Thread staginfo-ar

Does anybody know when JDom API will be add to The Java-Xml-pack for SUN ??
Thanks.
Jc


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




Re: help plz urgent

2002-05-06 Thread greyson . smith


How are you reading the data in the servlet?



   
   
# Lalit Nagpal 
   
# To: Tomcat Users List 
[EMAIL PROTECTED]  
lalit_tomcat@cc:  
   
yahoo.comSubject: Re: help plz urgent 
   
   
   
06-05-02 08:38 
   
AM 
   
Please respond 
   
to Tomcat 
   
Users List
   
   
   
   
   





so sorry ... so sorry for capitalising ... i know u
were trying to help ... just that things r urgent ...
so sorry anyway

html code a bit, form, type=text and type=file tags

body

form name=commonform action=/servlet/TotalUpload
ENCTYPE=multipart/form-data

input type=text size=10 name=acadyear
maxlength=9/input

input type=file size=18 name=attach1/input

using oreilly ... one of the most recent versions ...
sorry cant say version date.

using MultipartRequest.getParameter(...) function to
extract text data. and upload as usual.

error is content type is not multipart/form-data

plz help man



--- David Rault [EMAIL PROTECTED] wrote:
 well, first of all, YOU DON'T HAVE TO CAPITALIZE
 YOUR TEXT
 IT'S ANNOYING TO READ
 i'm trying to _help_ here

 try to send some of your html code (the multi part
 form)
 and the code of the server component in which you
 initialize the
 wrapper/read the parameters
 by the way, some extra info might help :
 what multipart library are you using (o'reilly ?
 version ?)
 same question about tomcat and web connector
 since you didn't send any code, i assumed it might
 be an obvious problem...

 David



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



=
# Lalit Nagpal #

__
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com

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




--

NOTICE:  The information contained in this electronic mail transmission is
intended by Convergys Corporation for the use of the named individual or
entity to which it is directed and may contain information that is
privileged or otherwise confidential.  If you have received this electronic
mail transmission in error, please delete it from your system without
copying or forwarding it, and notify the sender of the error by reply email
or by telephone (collect), so that the sender's address records can be
corrected.



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




Re: where javax.sql.*

2002-05-06 Thread rainer jünger




 In Jdk1.3 it is a separate download
 for the jdbc extensions.  Here is the link:

thats the best solution!

thanks rainer


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




RE: .NoClassDefFoundError: java/util/ArrayList

2002-05-06 Thread Greg Trasuk

Hi there:

I'm not current on HP-UX systems (at least not since 1993), but from the
command line you give, it looks like you're using a JDK 1.1.x system.  If
that is correct, it won't contain java.util.ArrayList, since the collections
framework was added in Java 2 (i.e. JDK1.2.2 or higher).  You need to
upgrade your JDK.

Greg Trasuk, President
StratusCom Manufacturing Systems Inc. - We use information technology to
solve business problems on your plant floor.
http://stratuscom.ca

 -Original Message-
 From: kn Nair [mailto:[EMAIL PROTECTED]]
 Sent: May 06, 2002 10:41
 To: [EMAIL PROTECTED]
 Subject: .NoClassDefFoundError: java/util/ArrayList


 Hi , I hope this is the way to ask,I'm new to apache and tomcat

 OS HP-UX-11.0

 jdk  j HP-UX Java C.01.18.05 02/06/2001 15:50:29 jind03
 in /opt/java/bin

 Apache is running trouble free on localhost:

 Tomcat is under /opt/tomcat

 the catalina.sh script runs and throws this error

 This is the way i run  it

  $/opt/java/bin/java -classpath
 /opt/java/lib/classes.zip:/opt/tomcat/bin/bootstrap.jar
 -Dcatalina.base=/opt/tomcat -Dcatalina.home=/opt/tomcat
 org.apache.catalina.startup.Bootstrap start

 and I get this error

 Bootstrap: Class loader creation threw exception
 java.lang.NoClassDefFoundError: java/util/ArrayList
 at=20
 at
 org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:138)

 I wrote simple programs involving java.util.* and it works
 without any
 problem.What am i doing wrong
 Where is the program trying to find the class.i tried it with
 tools.jar also in my java path
 also in the classpath but the same error occurs

 Thx for your help





  Krishnankutty  N Nair
 Systems Engineer-Factory Automation
 Sony Semi Conductor San Antonio
 (210)-647-6754(W)
 (210)-235-1059(Pager)
 email:[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: JDom in java-xml-pack for Sun??

2002-05-06 Thread Lance Smith

Thought it was in the 1.4.0 SDK

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 06, 2002 9:40 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: JDom in java-xml-pack for Sun??


Does anybody know when JDom API will be add to The Java-Xml-pack for SUN ??
Thanks.
Jc


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




is not a servlet

2002-05-06 Thread Tevfik Aytekin

Tomcat 4.0.3 insists that my servlet is not a servlet.
But the same servlet works under tomcat 4.0.1.

When I use the servlet.jar that comes with tomcat 4.0.1, tomcat 4.0.3 again
gives the same
error. So I think the problem have to be with the other parts of tomcat
4.0.3 software.

Tomcat 4.0.3 gives the following long error lines.
Any help will be greatly appreciated.

TA.



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: Class monline.SessionManager.SessionManager
is not a Servlet
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:88
8)
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.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:475)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
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
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:429)
at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:495)
at java.lang.Thread.run(Thread.java:536)


root cause

java.lang.ClassCastException: monline.SessionManager.SessionManager
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:88
4)
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.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:475)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
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

import javax.servlet.http.* problems

2002-05-06 Thread Helferty, Richard (FUSA)

Tomcat 4.0.3
JDK 1.4

Attempt to compile following Servlet results in error. Question. Is
ServletUtilities renamed
or unavailable in tomcat-4.0.3 or javax.servlet.http.* renamed. Or is it
something else. Thanks for the help


Code:
package moreservlets;

import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;

public class HelloServlet3 extends HttpServlet {
  public void doGet(HttpServletRequest request,
HttpServletResponse response)
  throws ServletException, IOException {
response.setContentType(text/html);
PrintWriter out = response.getWriter();
String title = Hello (3);
out.println(ServletUtilities.headWithTitle(title) + 
BODY BGCOLOR=\#FDF5E6\\n +
H1 + title + /H1\n +
/BODY/HTML);
  }
}


Error:

HelloServlet3.java:23: cannot resolve symbol
symbol  : variable ServletUtilities
location: class moreservlets.HelloServlet3
out.println(ServletUtilities.headWithTitle(title) +
^
1 error


**
This transmission may contain information that is privileged, confidential and/or 
exempt from disclosure under applicable law. If you are not the intended recipient, 
you are hereby notified that any disclosure, copying, distribution, or use of the 
information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. 
If you received this transmission in error, please immediately contact the sender and 
destroy the material in its entirety, whether in electronic or hard copy format. Thank 
you
**


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




mod_webapp and Windows 95?

2002-05-06 Thread Sven Linckels

Hi again!

I succeded in installing Tomcat 4.0.3 with the mod_webapp and Apache
1.3.20 on a Windows XP machine. Is it possible to run the same
installation on a Windows 95 machine?

Thanx

Best regards,
Sven Linckels


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




Re: server.xml DTD - where can I find it ?

2002-05-06 Thread Craig R. McClanahan



On Mon, 6 May 2002, João Luiz de Brito Macaíba wrote:

 Date: Mon, 6 May 2002 11:03:55 -0300 (EST)
 From: João Luiz de Brito Macaíba [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: server.xml DTD - where can I find it ?

 Hi,

   does anyone know where I can find the DTD for server.xml ?


The official copy is in the servlet specification, which you can download
at:

  http://java.sun.com/products/servlet/download.html

For Tomcat 4, there is a copy of all the relevant DTDs buried in the
servlet.jar file that is in the common/lib directory.

 TIA,

 Macaíba.

Craig


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




Re: JDom in java-xml-pack for Sun??

2002-05-06 Thread Craig R. McClanahan



On Mon, 6 May 2002 [EMAIL PROTECTED] wrote:

 Date: Mon, 6 May 2002 16:40:01 +0200
 From: [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED], [EMAIL PROTECTED]
 Subject: JDom in java-xml-pack for Sun??

 Does anybody know when JDom API will be add to The Java-Xml-pack for SUN ??
 Thanks.
 Jc



You'd do better asking questions like this where they are on topic (such
as the feedback address for the XML Pack).

The XML Pack is for official Java APIs, which JDOM is not (yet, although a
JSR for that has been filed).

Craig


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




manager reload not processing new security constraints

2002-05-06 Thread Lawlor, Frank

Tomcat 4.0.3:

If I add a security constraint to the web.xml of my application
and do a manager/reload of the app, it claims to have 
restarted the app OK, but the new constraint is not effected.

If I restart Tomcat, the new constraint does take effect.

Is this a bug in the manger reload?

Frank Lawlor
Athens Group, Inc.
(512) 345-0600 x151
Athens Group, an employee-owned consulting firm integrating technology
strategy and software solutions.



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




file path problem

2002-05-06 Thread Mani, Bharanidharan

Hi all,
   I have my login servlet under
webapp/jetspeed/web-inf/classes/myservlets/login.class. I invoke a
loggedin.html from this servlet. loggedin.html is located under
webapps/jetspeed/myhtml/loggedin.html. so in my servlet, i gave 


  window.open(../../../myhtml/loggedin.html);.

but apache gives error saying resource /myhtml/loggedin.html couldnt not be
found. I tried copying this file to various directories including the
template directories under jetspeed but no success.. can someone how the
file path is specified in jetspeed..


thanks
bharani.

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




Re: [ANNOUCEMENT] Apache Tomcat 4.1.0 Alpha

2002-05-06 Thread Jonathan Eric Miller

Does anyone know if this release contains the new JNDI Realm code that
allows you to authenticate users using LDAP binds instead of querying the
directory for the password and comparing?

Jon

- Original Message -
From: Remy Maucherat [EMAIL PROTECTED]
To: Tomcat Developers List [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Friday, May 03, 2002 11:25 PM
Subject: [ANNOUCEMENT] Apache Tomcat 4.1.0 Alpha


 Apache Tomcat 4.1.0 Alpha, the first milestone of the 4.1.x release cycle,
 is now available.

 Over Tomcat 4.0.x, Tomcat 4.1.x includes the following major new features:
 * JMX based administration features
 * JSP and Struts based administration web application
 * New Coyote HTTP/1.1 connector
 * New Coyote JK2 AJP 1.3 connector
 * Rewritten Jasper JSP page compiler
 * Performance and memory efficiency improvements
 * Enhanced manager application support for integration with development
 tools.
 * Custom Ant tasks to interact with the manager application directly
   from build.xml scripts.
 * Many other miscanellous improvements

 Note: In the 4.1.0 release, the administration web application is not
fully
 functional. It will be addressed in the next release.

 Downloads (source and binaries):
 http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.0-alpha/

 Remy


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



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




Servlet not updated till tomcat stop/start

2002-05-06 Thread Helferty, Richard (FUSA)

Quick Question. I updated serlevts while running Tomcat 403, but the updated
code didn't take effect till I stop/start Tomcat. Is this the normal
behavior of Tomcat or can I change a setting in which the update is seamless
without stop/start Tomcat.




**
This transmission may contain information that is privileged, confidential and/or 
exempt from disclosure under applicable law. If you are not the intended recipient, 
you are hereby notified that any disclosure, copying, distribution, or use of the 
information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. 
If you received this transmission in error, please immediately contact the sender and 
destroy the material in its entirety, whether in electronic or hard copy format. Thank 
you
**


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




Re: RE: .NoClassDefFoundError: java/util/ArrayList

2002-05-06 Thread kn Nair

Thanks Gred.I will try that.

K N

 Greg Trasuk [EMAIL PROTECTED] 05/06 10:06 AM 
Hi there:

I'm not current on HP-UX systems (at least not since 1993), but from the
command line you give, it looks like you're using a JDK 1.1.x system.  If
that is correct, it won't contain java.util.ArrayList, since the collections
framework was added in Java 2 (i.e. JDK1.2.2 or higher).  You need to
upgrade your JDK.

Greg Trasuk, President
StratusCom Manufacturing Systems Inc. - We use information technology to
solve business problems on your plant floor.
http://stratuscom.ca 

 -Original Message-
 From: kn Nair [mailto:[EMAIL PROTECTED]] 
 Sent: May 06, 2002 10:41
 To: [EMAIL PROTECTED] 
 Subject: .NoClassDefFoundError: java/util/ArrayList


 Hi , I hope this is the way to ask,I'm new to apache and tomcat

 OS HP-UX-11.0

 jdk  j HP-UX Java C.01.18.05 02/06/2001 15:50:29 jind03
 in /opt/java/bin

 Apache is running trouble free on localhost:

 Tomcat is under /opt/tomcat

 the catalina.sh script runs and throws this error

 This is the way i run  it

  $/opt/java/bin/java -classpath
 /opt/java/lib/classes.zip:/opt/tomcat/bin/bootstrap.jar
 -Dcatalina.base=/opt/tomcat -Dcatalina.home=/opt/tomcat
 org.apache.catalina.startup.Bootstrap start

 and I get this error

 Bootstrap: Class loader creation threw exception
 java.lang.NoClassDefFoundError: java/util/ArrayList
 at=20
 at
 org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:138)

 I wrote simple programs involving java.util.* and it works
 without any
 problem.What am i doing wrong
 Where is the program trying to find the class.i tried it with
 tools.jar also in my java path
 also in the classpath but the same error occurs

 Thx for your help





  Krishnankutty  N Nair
 Systems Engineer-Factory Automation
 Sony Semi Conductor San Antonio
 (210)-647-6754(W)
 (210)-235-1059(Pager)
 email:[EMAIL PROTECTED] 





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


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



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




RE: manager reload not processing new security constraints

2002-05-06 Thread Cox, Charlie

I don't think that manager reads server.xml on reload. You can use the
manager's stop/start instead.

Charlie

 -Original Message-
 From: Lawlor, Frank [mailto:[EMAIL PROTECTED]]
 Sent: Monday, May 06, 2002 12:09 PM
 To: 'Tomcat (E-mail)'
 Subject: manager reload not processing new security constraints
 
 
 Tomcat 4.0.3:
 
 If I add a security constraint to the web.xml of my application
 and do a manager/reload of the app, it claims to have 
 restarted the app OK, but the new constraint is not effected.
 
 If I restart Tomcat, the new constraint does take effect.
 
 Is this a bug in the manger reload?
 
 Frank Lawlor
 Athens Group, Inc.
 (512) 345-0600 x151
 Athens Group, an employee-owned consulting firm integrating technology
 strategy and software solutions.
 
 
 
 --
 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: file path problem

2002-05-06 Thread Jacob Kjome

Hello Bharanidharan,

Don't confuse the system file path with the URL path.

What URL is in your browser on the page that contains the
window.open()?

window.open will try to find the page relative to your domain root.

If you are at:

http://www.myserver.com/mywebapp/servlet/myservlets.login

Then the code you have for window.open will be attempting to find a
directory on the server that simply doesn't exist.  You would be able
to get to your myhtml directory with this, though.

window.open(../myhtml/loggedin.html);

However, you can't count on this, because what if you did a servlet
mapping and you got to your login servlet via:

http://www.myserver.com/mywebapp/login

now, the proper way to get to your html page would be:

window.open(myhtml/loggedin.html);

The issue here is that you are hard-coding a path that can't be
assumed.  What you should do, instead is the following:

out.println(window.open(\ + req.getContextPath() + /myhtml/loggedin.html\);


After doing this, it doesn't matter where you invoke your servlet from
as long as the static html is in the proper location relative to the
root of the webapp.

Jake

Monday, May 06, 2002, 11:30:37 AM, you wrote:

MB Hi all,
MBI have my login servlet under
MB webapp/jetspeed/web-inf/classes/myservlets/login.class. I invoke a
MB loggedin.html from this servlet. loggedin.html is located under
MB webapps/jetspeed/myhtml/loggedin.html. so in my servlet, i gave 


MB   window.open(../../../myhtml/loggedin.html);.

MB but apache gives error saying resource /myhtml/loggedin.html couldnt not be
MB found. I tried copying this file to various directories including the
MB template directories under jetspeed but no success.. can someone how the
MB file path is specified in jetspeed..


MB thanks
MB bharani.

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



-- 
Best regards,
 Jacobmailto:[EMAIL PROTECTED]


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




implicit object servlet

2002-05-06 Thread rainer jünger

Hi,

what is the equivalent object to servlet within a Taglib-class?
I want to use the methode:
servlet.findDataSource(null)
in a Taglib-class

thanks Rainer



Directory access control?

2002-05-06 Thread Golan

Greetings:

I am wondering/hoping that it is possible to control HTTP directory access
for Tomcat via either the server's root web.xml or server.xml. Is this
possible?

For example...

The system knows, automatically, to deny access to the ./WEB-INF/ directory.
How does it know this and is it possible to specify other off limits
directories?

Thanks.

Tal Golan

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002


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




Priviledged Access Scenario

2002-05-06 Thread Eddie Bush

Is it possible to have Tomcat, rather than displaying the typical username/password 
dialog, forward a user to a certain path for them to login?

Thanks so much!

Eddie




Ejb vs jsp

2002-05-06 Thread Vincent Stoessel

Hello,
Because I am curious about how these technologies are used in the real 
world. I would like to know how do you professionals use as your rule of 
thumb wether or not you are going build  web based  application using
Enterprise Javabeans or a standalone jsp applications.
Thanks in advance.
-- 
Vincent Stoessel
Linux Systems Developer
vincent xaymaca.com


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




Changing the IP Address that Tomcat Binds To

2002-05-06 Thread Brad Lisoweski

Hello,

I've been working with some developers and they want to test multiple
versions of Apache/Tomcat on the same machine.  Is it possible to bind
different instances of Tomcat to different IP addresses?  I've looked
through the documentation, and the FAQs, and the only way I've seen to do it
is to use virtual hosts in Apache.  Unfortunately, this scenario doesn't
apply here as I'm not using virtual hosts.

I'm currently using Tomcat 3.2.3 and 3.3.1 with both mod_jserv and mod_jk.

Any help would be appreciated.

Brad Lisoweski

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




Access to the source code from the begining

2002-05-06 Thread Emilio Miranda


Hello!!

I am developing a little site :

http://myhost:8080/mkg/

In mkg I have mi site, well if I put this link it appears the list of all my
files like this :

Directory Listing For /
Filename Size Last Modified

cfg/Sat, 04 May 2002 00:19:27 GMT
images/ Thu, 02 May 2002 21:52:59 GMT
jsp/Fri, 03 May 2002 23:35:32 GMT
servlets/   Thu, 02 May 2002 21:52:59 GMT


And somebody could read it, I mean the source code or cfg files. ... what
can I do in order to avoid this?

Thanks a lot!


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




Re: Access to the source code from the begining

2002-05-06 Thread rsequeira


You could either turn off directory listings or add a welcome file or do
both. See the web.xml for more information.
To turn off directory listings, look for the following tags:
  param-namelistings/param-name
  param-valuefalse/param-value

Add a welcome file entry in the application's web.xml
welcome-file-list
welcome-fileindex.html/welcome-file
welcome-fileindex.htm/welcome-file
welcome-fileindex.jsp/welcome-file
/welcome-file-list

Additional information pertinent toTC 3.x.x
Look for the StaticInterceptor defn. in your server.xml. Set the supress
property to true.

RS





Emilio Miranda [EMAIL PROTECTED] on 05/06/2002 12:28:52 PM

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:Tomcat Users List [EMAIL PROTECTED]
cc:

Subject:Access to the source code  from the begining


Hello!!

I am developing a little site :

http://myhost:8080/mkg/

In mkg I have mi site, well if I put this link it appears the list of all
my
files like this :

Directory Listing For /
Filename Size Last Modified

cfg/   Sat, 04 May 2002 00:19:27 GMT
images/Thu, 02 May 2002 21:52:59 GMT
jsp/   Fri, 03 May 2002 23:35:32 GMT
servlets/   Thu, 02 May 2002 21:52:59 GMT


And somebody could read it, I mean the source code or cfg files. ... what
can I do in order to avoid this?

Thanks a lot!


--
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: Access to the source code from the beginning

2002-05-06 Thread Golan

Emilio:

Check out the web.xml file located at ./TOMCAT_HOME/conf/web.xml.

You will notice, probably in the first servlet/ mapping, the following...

init-param
  param-namelistings/param-name
  param-valuetrue/param-value
/init-param

change this to...

init-param
  param-namelistings/param-name
  param-valuefalse/param-value
/init-param

Restart your server and this should solve the problem you have indicated.

Peace,

Tal

-Original Message-
From: Emilio Miranda [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 06, 2002 10:29 AM
To: Tomcat Users List
Subject: Access to the source code from the begining



Hello!!

I am developing a little site :

http://myhost:8080/mkg/

In mkg I have mi site, well if I put this link it appears the list of all my
files like this :

Directory Listing For /
Filename Size Last Modified

cfg/Sat, 04 May 2002 00:19:27 GMT
images/ Thu, 02 May 2002 21:52:59 GMT
jsp/Fri, 03 May 2002 23:35:32 GMT
servlets/   Thu, 02 May 2002 21:52:59 GMT


And somebody could read it, I mean the source code or cfg files. ... what
can I do in order to avoid this?

Thanks a lot!


--
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.351 / Virus Database: 197 - Release Date: 4/19/2002

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002


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




RE: Servlet not updated till tomcat stop/start

2002-05-06 Thread Dobson, Dave

Have a look in the Tomcat-docs folder under config and look for the
reloadable attribute on the Context xml tag.  You can find a sample in the
tomcat/conf/server.xml file.

---Original Message-
From: Helferty, Richard (FUSA) [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 06, 2002 12:29 PM
To: '[EMAIL PROTECTED]'
Subject: Servlet not updated till tomcat stop/start


Quick Question. I updated serlevts while running Tomcat 403, but the updated
code didn't take effect till I stop/start Tomcat. Is this the normal
behavior of Tomcat or can I change a setting in which the update is seamless
without stop/start Tomcat.




**
This transmission may contain information that is privileged, confidential
and/or exempt from disclosure under applicable law. If you are not the
intended recipient, you are hereby notified that any disclosure, copying,
distribution, or use of the information contained herein (including any
reliance thereon) is STRICTLY PROHIBITED. If you received this transmission
in error, please immediately contact the sender and destroy the material in
its entirety, whether in electronic or hard copy format. Thank you
**


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


 

This email communication is intended as a private communication for the sole
use of the primary addressee and those individuals listed for copies in the
original message. The information contained in this email is private and
confidential and if you are not an intended recipient you are hereby
notified that copying, forwarding or other dissemination or distribution of
this communication by any means is prohibited.  If you are not specifically
authorized to receive this email and if you believe that you received it in
error please notify the original sender immediately.  We honour similar
requests relating to the privacy of email communications.

Cette communication par courrier électronique est une communication privée à
l'usage exclusif du destinataire principal ainsi que des personnes dont les
noms figurent en copie.  Les renseignements contenus dans ce courriel sont
confidentiels et si vous n'êtes pas le destinataire prévu, vous êtes avisé,
par les présentes que toute reproduction, tout transfert ou toute autre
forme de diffusion de cette communication par quelque moyen que ce soit est
interdit.  Si vous n'êtes pas spécifiquement autorisé à recevoir ce courriel
ou si vous croyez l'avoir reçu par erreur, veuillez en aviser l'expéditeur
original immédiatement.  Nous respectons les demandes similaires qui
touchent la confidentialité des communications par courrier électronique.



Re: apache tomcat4 mod_webapp mod_jk

2002-05-06 Thread Alan

I remember reading on Jakarta's website that mod_webapp is the preferred for tomcat 4 
and above.

Is this really so? Besides the shortocomings just mentioned here, with mod_webapp we 
can't configure Apache to handle .jsp globally (even outside your contexts). And this 
is possible with mod_jk. Am I right on this?

Alan

[ posted using the Open Source Mailing Lists Gateway: http://opensourceware.net/jive/ ]

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




RE: Access to the source code from the beginning

2002-05-06 Thread Emilio Miranda


So sorry, but apparently it doesn`t work , I made the changes and it still
show the directories
even with the examples directory of the tomcat I have the problem.

http://myhost:8080/examples/

Directory Listing For /Filename Size Last Modified
images/ Tue, 09 Apr 2002 18:05:14 GMT
jsp/Tue, 09 Apr 2002 18:05:14 GMT
servlets/   Tue, 09 Apr 2002 18:05:12 GMT

Apache Tomcat/4.0

Please some other advice? I am using Tomcat4.0.3 I found the file, ok, I
turn off , I have the welcome page, but apparently it just work for the main
page, but what happen when I try to enter to my webapps like examples?

Really apreciate your help



-Mensaje original-
De: Golan [mailto:[EMAIL PROTECTED]]
Enviado el: lunes, 06 de mayo de 2002 12:38
Para: Tomcat Users List
Asunto: RE: Access to the source code from the beginning


Emilio:

Check out the web.xml file located at ./TOMCAT_HOME/conf/web.xml.

You will notice, probably in the first servlet/ mapping, the following...

init-param
  param-namelistings/param-name
  param-valuetrue/param-value
/init-param

change this to...

init-param
  param-namelistings/param-name
  param-valuefalse/param-value
/init-param

Restart your server and this should solve the problem you have indicated.

Peace,

Tal

-Original Message-
From: Emilio Miranda [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 06, 2002 10:29 AM
To: Tomcat Users List
Subject: Access to the source code from the begining



Hello!!

I am developing a little site :

http://myhost:8080/mkg/

In mkg I have mi site, well if I put this link it appears the list of all my
files like this :

Directory Listing For /
Filename Size Last Modified

cfg/Sat, 04 May 2002 00:19:27 GMT
images/ Thu, 02 May 2002 21:52:59 GMT
jsp/Fri, 03 May 2002 23:35:32 GMT
servlets/   Thu, 02 May 2002 21:52:59 GMT


And somebody could read it, I mean the source code or cfg files. ... what
can I do in order to avoid this?

Thanks a lot!


--
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.351 / Virus Database: 197 - Release Date: 4/19/2002

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002


--
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: Access to the source code from the beginning

2002-05-06 Thread Golan

Did you restart Tomcat?

T

-Original Message-
From: Emilio Miranda [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 06, 2002 10:52 AM
To: Tomcat Users List
Subject: RE: Access to the source code from the beginning



So sorry, but apparently it doesn`t work , I made the changes and it still
show the directories
even with the examples directory of the tomcat I have the problem.

http://myhost:8080/examples/

Directory Listing For /Filename Size Last Modified
images/ Tue, 09 Apr 2002 18:05:14 GMT
jsp/Tue, 09 Apr 2002 18:05:14 GMT
servlets/   Tue, 09 Apr 2002 18:05:12 GMT

Apache Tomcat/4.0

Please some other advice? I am using Tomcat4.0.3 I found the file, ok, I
turn off , I have the welcome page, but apparently it just work for the main
page, but what happen when I try to enter to my webapps like examples?

Really apreciate your help



-Mensaje original-
De: Golan [mailto:[EMAIL PROTECTED]]
Enviado el: lunes, 06 de mayo de 2002 12:38
Para: Tomcat Users List
Asunto: RE: Access to the source code from the beginning


Emilio:

Check out the web.xml file located at ./TOMCAT_HOME/conf/web.xml.

You will notice, probably in the first servlet/ mapping, the following...

init-param
  param-namelistings/param-name
  param-valuetrue/param-value
/init-param

change this to...

init-param
  param-namelistings/param-name
  param-valuefalse/param-value
/init-param

Restart your server and this should solve the problem you have indicated.

Peace,

Tal

-Original Message-
From: Emilio Miranda [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 06, 2002 10:29 AM
To: Tomcat Users List
Subject: Access to the source code from the begining



Hello!!

I am developing a little site :

http://myhost:8080/mkg/

In mkg I have mi site, well if I put this link it appears the list of all my
files like this :

Directory Listing For /
Filename Size Last Modified

cfg/Sat, 04 May 2002 00:19:27 GMT
images/ Thu, 02 May 2002 21:52:59 GMT
jsp/Fri, 03 May 2002 23:35:32 GMT
servlets/   Thu, 02 May 2002 21:52:59 GMT


And somebody could read it, I mean the source code or cfg files. ... what
can I do in order to avoid this?

Thanks a lot!


--
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.351 / Virus Database: 197 - Release Date: 4/19/2002

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002


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


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002


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




Re[2]: Access to the source code from the beginning

2002-05-06 Thread Jacob Kjome

Hello Emilio,

Are you using Apache and mod_jk to front requests to Tomcat?  If so,
you need to protect the static files or directories using Apache
directives.  Only if you forward *all* requests to Tomcat or just go
directly to Tomcat on port 8080 will the
previously mentioned solutions work.

Jake

Monday, May 06, 2002, 12:51:49 PM, you wrote:


EM So sorry, but apparently it doesn`t work , I made the changes and it still
EM show the directories
EM even with the examples directory of the tomcat I have the problem.

EM http://myhost:8080/examples/

EM Directory Listing For /Filename Size Last Modified
EM images/ Tue, 09 Apr 2002 18:05:14 GMT
EM jsp/Tue, 09 Apr 2002 18:05:14 GMT
EM servlets/   Tue, 09 Apr 2002 18:05:12 GMT

EM Apache Tomcat/4.0

EM Please some other advice? I am using Tomcat4.0.3 I found the file, ok, I
EM turn off , I have the welcome page, but apparently it just work for the main
EM page, but what happen when I try to enter to my webapps like examples?

EM Really apreciate your help



EM -Mensaje original-
EM De: Golan [mailto:[EMAIL PROTECTED]]
EM Enviado el: lunes, 06 de mayo de 2002 12:38
EM Para: Tomcat Users List
EM Asunto: RE: Access to the source code from the beginning


EM Emilio:

EM Check out the web.xml file located at ./TOMCAT_HOME/conf/web.xml.

EM You will notice, probably in the first servlet/ mapping, the following...

EM init-param
EM   param-namelistings/param-name
EM   param-valuetrue/param-value
EM /init-param

EM change this to...

EM init-param
EM   param-namelistings/param-name
EM   param-valuefalse/param-value
EM /init-param

EM Restart your server and this should solve the problem you have indicated.

EM Peace,

EM Tal

EM -Original Message-
EM From: Emilio Miranda [mailto:[EMAIL PROTECTED]]
EM Sent: Monday, May 06, 2002 10:29 AM
EM To: Tomcat Users List
EM Subject: Access to the source code from the begining



EM Hello!!

EM I am developing a little site :

EM http://myhost:8080/mkg/

EM In mkg I have mi site, well if I put this link it appears the list of all my
EM files like this :

EM Directory Listing For /
EM Filename Size Last Modified

EM cfg/Sat, 04 May 2002 00:19:27 GMT
EM images/ Thu, 02 May 2002 21:52:59 GMT
EM jsp/Fri, 03 May 2002 23:35:32 GMT
EM servlets/   Thu, 02 May 2002 21:52:59 GMT


EM And somebody could read it, I mean the source code or cfg files. ... what
EM can I do in order to avoid this?

EM Thanks a lot!


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


EM ---
EM Incoming mail is certified Virus Free.
EM Checked by AVG anti-virus system (http://www.grisoft.com).
EM Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002

EM ---
EM Outgoing mail is certified Virus Free.
EM Checked by AVG anti-virus system (http://www.grisoft.com).
EM Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002


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


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



-- 
Best regards,
 Jacobmailto:[EMAIL PROTECTED]


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




R: Access to the source code from the beginning

2002-05-06 Thread Gianluca Gravina


 So sorry, but apparently it doesn`t work , I made the changes 
 and it still show the directories even with the examples 
 directory of the tomcat I have the problem.
 
 http://myhost:8080/examples/
 
 Directory Listing For /Filename Size Last Modified
 images/   Tue, 09 Apr 2002 18:05:14 GMT
 jsp/  Tue, 09 Apr 2002 18:05:14 GMT
 servlets/   Tue, 09 Apr 2002 18:05:12 GMT
 
 Apache Tomcat/4.0
 
 Please some other advice? I am using Tomcat4.0.3 I found the 
 file, ok, I turn off , I have the welcome page, but 
 apparently it just work for the main page, but what happen 
 when I try to enter to my webapps like examples?
 
 Really apreciate your help

I didn't try, but perhaps U have to put that directive in the web.xml
situated in your app-folder, not in the server.xml. Try it and let me
know ...

Gianluca Gravina



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




RE: file path problem

2002-05-06 Thread Mani, Bharanidharan

jack,
 you are right.. i wasnt using url path.. it works fine now..

i appreciate your help..

thanks
bharani



-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 06, 2002 1:08 PM
To: Tomcat Users List
Subject: Re: file path problem


Hello Bharanidharan,

Don't confuse the system file path with the URL path.

What URL is in your browser on the page that contains the
window.open()?

window.open will try to find the page relative to your domain root.

If you are at:

http://www.myserver.com/mywebapp/servlet/myservlets.login

Then the code you have for window.open will be attempting to find a
directory on the server that simply doesn't exist.  You would be able
to get to your myhtml directory with this, though.

window.open(../myhtml/loggedin.html);

However, you can't count on this, because what if you did a servlet
mapping and you got to your login servlet via:

http://www.myserver.com/mywebapp/login

now, the proper way to get to your html page would be:

window.open(myhtml/loggedin.html);

The issue here is that you are hard-coding a path that can't be
assumed.  What you should do, instead is the following:

out.println(window.open(\ + req.getContextPath() +
/myhtml/loggedin.html\);


After doing this, it doesn't matter where you invoke your servlet from
as long as the static html is in the proper location relative to the
root of the webapp.

Jake

Monday, May 06, 2002, 11:30:37 AM, you wrote:

MB Hi all,
MBI have my login servlet under
MB webapp/jetspeed/web-inf/classes/myservlets/login.class. I invoke a
MB loggedin.html from this servlet. loggedin.html is located under
MB webapps/jetspeed/myhtml/loggedin.html. so in my servlet, i gave 


MB   window.open(../../../myhtml/loggedin.html);.

MB but apache gives error saying resource /myhtml/loggedin.html couldnt not
be
MB found. I tried copying this file to various directories including the
MB template directories under jetspeed but no success.. can someone how the
MB file path is specified in jetspeed..


MB thanks
MB bharani.

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



-- 
Best regards,
 Jacobmailto:[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: Access to the source code from the beginning

2002-05-06 Thread Emilio Miranda


ok, that is!

I am using just Tomcat 4.0.3, without apache.

It works now, well it is right, I modified the web.xml that is in the
TOMCAT_HOME/conf/web.xml
in listing I put false, but what I for got was put and index.html (welcome
page) in my directory.
Now it works I have

http://myhost:8080/examples/

and in the directory examples I put an index.html and I see it when I put
the link, but you know? there was still a problem.
for example if I know that there is and images directory I could put the
link of that and I can access to the files

http://myhost:8080/examples/images/

so I put and index.html also in this directory and well now when I tried to
enter to some directory (asume that I know the name) I show a page of
wellcome.

I Really apreciate your help.

Thanks a lot!



Monday, May 06, 2002, 12:51:49 PM, you wrote:


EM So sorry, but apparently it doesn`t work , I made the changes and it
still
EM show the directories
EM even with the examples directory of the tomcat I have the problem.

EM http://myhost:8080/examples/

EM Directory Listing For /Filename Size Last Modified
EM images/ Tue, 09 Apr 2002 18:05:14 GMT
EM jsp/Tue, 09 Apr 2002 18:05:14 GMT
EM servlets/   Tue, 09 Apr 2002 18:05:12 GMT

EM Apache Tomcat/4.0

EM Please some other advice? I am using Tomcat4.0.3 I found the file, ok, I
EM turn off , I have the welcome page, but apparently it just work for the
main
EM page, but what happen when I try to enter to my webapps like examples?

EM Really apreciate your help



EM -Mensaje original-
EM De: Golan [mailto:[EMAIL PROTECTED]]
EM Enviado el: lunes, 06 de mayo de 2002 12:38
EM Para: Tomcat Users List
EM Asunto: RE: Access to the source code from the beginning


EM Emilio:

EM Check out the web.xml file located at ./TOMCAT_HOME/conf/web.xml.

EM You will notice, probably in the first servlet/ mapping, the
following...

EM init-param
EM   param-namelistings/param-name
EM   param-valuetrue/param-value
EM /init-param

EM change this to...

EM init-param
EM   param-namelistings/param-name
EM   param-valuefalse/param-value
EM /init-param

EM Restart your server and this should solve the problem you have
indicated.

EM Peace,

EM Tal

EM -Original Message-
EM From: Emilio Miranda [mailto:[EMAIL PROTECTED]]
EM Sent: Monday, May 06, 2002 10:29 AM
EM To: Tomcat Users List
EM Subject: Access to the source code from the begining



EM Hello!!

EM I am developing a little site :

EM http://myhost:8080/mkg/

EM In mkg I have mi site, well if I put this link it appears the list of
all my
EM files like this :

EM Directory Listing For /
EM Filename Size Last Modified

EM cfg/Sat, 04 May 2002 00:19:27 GMT
EM images/ Thu, 02 May 2002 21:52:59 GMT
EM jsp/Fri, 03 May 2002 23:35:32 GMT
EM servlets/   Thu, 02 May 2002 21:52:59 GMT


EM And somebody could read it, I mean the source code or cfg files. ...
what
EM can I do in order to avoid this?

EM Thanks a lot!


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


EM ---
EM Incoming mail is certified Virus Free.
EM Checked by AVG anti-virus system (http://www.grisoft.com).
EM Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002

EM ---
EM Outgoing mail is certified Virus Free.
EM Checked by AVG anti-virus system (http://www.grisoft.com).
EM Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002


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


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



--
Best regards,
 Jacobmailto:[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: [ANNOUCEMENT] Apache Tomcat 4.1.0 Alpha

2002-05-06 Thread Rick Fincher

Hi Jon,

I have not used it, so I can't say how well it works but the 4.1 server.xml
and example webapps have examples showing how use JNDI for that.  The admin
webapp (kind of confusing terminology, manager now refers mostly to
persistence management and the admin webapp is the administration interface)
will use it to administer users, roles, etc.

Rick

 Does anyone know if this release contains the new JNDI Realm code that
 allows you to authenticate users using LDAP binds instead of querying the
 directory for the password and comparing?

 Jon




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




Re: How to create dynamic graphs on web pages?

2002-05-06 Thread PChaganti

Try the JFreeChart from 
http://www.object-refinery.com/jfreechart/index.html. 
I have used it on one of my projects and really liked it. It is Open 
source too...

-prabhakar



We need to display graphs on our web pages based on our data reports. We
guess we need a set of API to create the GIF/JPEG files dynamically in
servlets. I read
http://www.javaworld.com/javaworld/jw-05-2000/jw-0505-servlets.html already.
But I feel it is not sophisticate enough. Does anyone know how to create
complex dynamic graphs on web? for example, 3D graph, XML-graph, curve,
pie. Any good vendor APIs?



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




RE: How to create dynamic graphs on web pages?

2002-05-06 Thread Jim Urban

Check out:  http://jcharts.sourceforge.net/ it's a pure Java packaged
designed for use with servlets and JSPs.

Jim


Jim Urban - [EMAIL PROTECTED]
Park City Solutions Inc.
Clinical Connectivity Suite Product Manager
Suite 295
500 Park Blvd.
Itasca, IL  60143
Voice:  (630) 250-3045 x106
Fax:  (630) 250-3046

CONFIDENTIALITY NOTICE
This message and any included attachments are from Park City Solutions Inc.
and are intended only for the entity to which it is addressed. The contained
information is confidential and privileged material. If you are not the
intended recipient, you are hereby notified that any use, dissemination, or
copying of this communication is strictly prohibited and may be unlawful. If
you have received this communication in error please notify the sender of
the delivery error by e-mail or call Park City Solutions Inc. corporate
offices at (435) 654-0621

-Original Message-
From: Alvin Wang [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 06, 2002 1:24 PM
To: SERVLET-INTEREST
Cc: Tomcat Users List
Subject: How to create dynamic graphs on web pages?

We need to display graphs on our web pages based on our data reports. We
guess we need a set of API to create the GIF/JPEG files dynamically in
servlets. I read
http://www.javaworld.com/javaworld/jw-05-2000/jw-0505-servlets.html already.
But I feel it is not sophisticate enough. Does anyone know how to create
complex dynamic graphs on web? for example, 3D graph, XML-graph, curve,
pie. Any good vendor APIs?


Thanks!

Alvin


--
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: How to create dynamic graphs on web pages?

2002-05-06 Thread Helferty, Richard (FUSA)

SVG Scalable Vector Graphics
http://www.adobe.com/svg/demos/main.html
http://wwws.sun.com/software/xml/developers/svg/jsp/

-Original Message-
From: Alvin Wang [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 06, 2002 2:24 PM
To: SERVLET-INTEREST
Cc: Tomcat Users List
Subject: How to create dynamic graphs on web pages?


We need to display graphs on our web pages based on our data reports. We
guess we need a set of API to create the GIF/JPEG files dynamically in
servlets. I read
http://www.javaworld.com/javaworld/jw-05-2000/jw-0505-servlets.html already.
But I feel it is not sophisticate enough. Does anyone know how to create
complex dynamic graphs on web? for example, 3D graph, XML-graph, curve,
pie. Any good vendor APIs?


Thanks!

Alvin


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


**
This transmission may contain information that is privileged, confidential and/or 
exempt from disclosure under applicable law. If you are not the intended recipient, 
you are hereby notified that any disclosure, copying, distribution, or use of the 
information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. 
If you received this transmission in error, please immediately contact the sender and 
destroy the material in its entirety, whether in electronic or hard copy format. Thank 
you
**


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




RE: How to create dynamic graphs on web pages?

2002-05-06 Thread Jason Wood


http://www.singleton-labs.com
-Original Message-
From: Alvin Wang [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 06, 2002 1:24 PM
To: SERVLET-INTEREST
Cc: Tomcat Users List
Subject: How to create dynamic graphs on web pages?


We need to display graphs on our web pages based on our data reports. We
guess we need a set of API to create the GIF/JPEG files dynamically in
servlets. I read
http://www.javaworld.com/javaworld/jw-05-2000/jw-0505-servlets.html already.
But I feel it is not sophisticate enough. Does anyone know how to create
complex dynamic graphs on web? for example, 3D graph, XML-graph, curve,
pie. Any good vendor APIs?


Thanks!

Alvin


--
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: import javax.servlet.http.* problems

2002-05-06 Thread PChaganti

I don't think there is a ServletUtilities class in the servlet API (javax.servlet.*).

-prabhakar chaganti





Tomcat 4.0.3
JDK 1.4

Attempt to compile following Servlet results in error. Question. Is
ServletUtilities renamed
or unavailable in tomcat-4.0.3 or javax.servlet.http.* renamed. Or is it
something else. Thanks for the help



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




How to create dynamic graphs on web pages?

2002-05-06 Thread Alvin Wang

We need to display graphs on our web pages based on our data reports. We
guess we need a set of API to create the GIF/JPEG files dynamically in
servlets. I read
http://www.javaworld.com/javaworld/jw-05-2000/jw-0505-servlets.html already.
But I feel it is not sophisticate enough. Does anyone know how to create
complex dynamic graphs on web? for example, 3D graph, XML-graph, curve,
pie. Any good vendor APIs?


Thanks!

Alvin


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




Custom Login Procedure

2002-05-06 Thread Eddie Bush

Hello everyone.

I'd like to use Tomcat's built-in authentication, but have Tomcat redirect to a custom 
login page instead of displaying a dialog.

Can this be done?

Thanks loads!

Eddie




solaris netscape

2002-05-06 Thread Wei Li


Hi, there,

I installed tomcat 4.0.3 binary in my Solaris 8 box. I can see the 
http://myhost:8080/index.jsp in another windows box. When I tried to show the 
index.jsp on this local Solaris machine using netscape, after type 
http://localhost:8080, there will be a prompt Downloading index.jsp, asked me 
What should Netscape 6 do with this file. Some one can help me?
I had set the HTTP proxy port as 8080.

Thx.

Wei







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




the ups and downs of JNDI connection pooling

2002-05-06 Thread Cindy Ballreich


After reading every message I could find in the archives (and marveling at the blood, 
sweat, and tears shed over this subject) I believe that I've finally got JNDI 
connection pooling working with the Tyrex software!!!

My joy was boundless until I started having problems with Tyrex itself. (For example, 
NullPointerExceptions when Connection.setAutoCommit() is called.) The development 
archives seem to confirm this and other problems and talk about DBCP as the pooling 
software of the future. I found the DBCP pages (at 
http://jakarta.apache.org/commons/index.html), but it appears to be a log ways from 
being ready for a production environment. 

Are there are reliable ways to do connection pooling with JNDI or should I just go 
back to DbConnectionBroker and be happy with that?

Thanks

Cindy

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




Starting How to..Use jsp in tomcat

2002-05-06 Thread puneet sachar

hi friends

Listen ..
what if i want to change the default directory..i mean
i don't want to keep my html and servlets in the
default folder.../webapps/and..all...stuff

A different folder say d: drive for application 1 and
e:..application 2

or if not possible in same tomcat ..3 folders showing
3 different sun directories for different application

i want to keep all this in seperate folder so that
with same tomcat i may have 3 different application
ruuning just by changing the port no. the pointer
itself redirect to different folder...as u can see ur
self in tomcat there they have 3 different application
and different folders for them..

also do tell me what to do if i want to make ..jsp
running ..in tomcat


__
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com

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




RE: file path problem

2002-05-06 Thread Mani, Bharanidharan

jack,
I have a quick question. in your example below, i.e.

http://www.myserver.com/mywebapp/servlet/myservlets.login


you mean to say servlet in the URL is mapped to Web-inf directory under
jetspeed??.. i am still unable to comprehend the url path.


thanks
bharani

-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 06, 2002 1:08 PM
To: Tomcat Users List
Subject: Re: file path problem


Hello Bharanidharan,

Don't confuse the system file path with the URL path.

What URL is in your browser on the page that contains the
window.open()?

window.open will try to find the page relative to your domain root.

If you are at:

http://www.myserver.com/mywebapp/servlet/myservlets.login

Then the code you have for window.open will be attempting to find a
directory on the server that simply doesn't exist.  You would be able
to get to your myhtml directory with this, though.

window.open(../myhtml/loggedin.html);

However, you can't count on this, because what if you did a servlet
mapping and you got to your login servlet via:

http://www.myserver.com/mywebapp/login

now, the proper way to get to your html page would be:

window.open(myhtml/loggedin.html);

The issue here is that you are hard-coding a path that can't be
assumed.  What you should do, instead is the following:

out.println(window.open(\ + req.getContextPath() +
/myhtml/loggedin.html\);


After doing this, it doesn't matter where you invoke your servlet from
as long as the static html is in the proper location relative to the
root of the webapp.

Jake

Monday, May 06, 2002, 11:30:37 AM, you wrote:

MB Hi all,
MBI have my login servlet under
MB webapp/jetspeed/web-inf/classes/myservlets/login.class. I invoke a
MB loggedin.html from this servlet. loggedin.html is located under
MB webapps/jetspeed/myhtml/loggedin.html. so in my servlet, i gave 


MB   window.open(../../../myhtml/loggedin.html);.

MB but apache gives error saying resource /myhtml/loggedin.html couldnt not
be
MB found. I tried copying this file to various directories including the
MB template directories under jetspeed but no success.. can someone how the
MB file path is specified in jetspeed..


MB thanks
MB bharani.

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



-- 
Best regards,
 Jacobmailto:[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]




implicit object servlet

2002-05-06 Thread rainer jünger

Hi,

what is the equivalent implicit object to servlet within a Taglib-class?
I want to use the methode:
servlet.findDataSource(null)
in a Taglib-class

thanks Rainer



Re: Ejb vs jsp

2002-05-06 Thread Daniel Hinojosa



Vincent Stoessel wrote:

 Hello,
 Because I am curious about how these technologies are used in the real 
 world. I would like to know how do you professionals use as your rule 
 of thumb wether or not you are going build  web based  application using
 Enterprise Javabeans or a standalone jsp applications.
 Thanks in advance.

I use them both.  EJB are used to model information that is based on a 
db or other storage services.  I use the JSP as a view to dynamically 
create HTML.

-- 
Daniel Hinojosa
Java  XML: Consultant | Developer | Instructor
P.O. Box 4675
Albuquerque, NM 87196-4675
(505) 363-5832






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




Does mod_webapp support name-based virtual TOMCAT hosts?

2002-05-06 Thread Jeff

I'm having a bit of a problem getting mod_webapp to work with Tomcat 4.0.3
and Apache 1.3.19.

What I'm trying to achieve:

multiple independent name-based virtual hosts (say, tomcat.i300.net and
notjeff.i300.net) for both Apache and Tomcat, each with their own
independent Tomcat webapp directories and capable of independently mapping
paths within their namespace without regard to one another. In other words,
tomcat.i300.net/foo might correspond to the foo webapp deployed to the
tomcat.i300.net virtual host and be physically located at /home/i300/foo,
and notjeff.i300.net/foo might correspond to the foo webapp deployed to
the notjeff.i300.net virtual host and be physically located at
/home/notjeff/foo.  Yes, this is a trivial example to get it to work in the
first place... the real webapps use Struts and need to be kept apart so they
won't clobber each other.

My efforts so far:

I haven't even addressed the matter of getting the second host
(notjeff.i300.net) to work yet, because the FIRST one continues to elude me.

My Tomcat server.xml file (below) has a more or less unchanged default
virtual host container, as well as a virtual host for tomcat.i300.net.
Going straight to Tomcat at port 8080, virtual hosts seem to be working
properly.

My Apache httpd.conf file (below) has the expected lines to use mod_webapp,
as well as a virtual host defintion for tomcat.i300.net.

The virtual host's Tomcat-defined appDir is /export/home/jeff/tomcat.
The virtual host's Apache-defined DocumentRoot is /export/home/jeff/tomcat.
mod_webapp is supposed to be mapping requests to http://tomcat.i300.net/test
to Tomcat's tomcat.i300.net virtual server

What's really happening --

http://tomcat.i300.net/index.html WORKS. Apache returns the site's
index.html file, located at /export/home/jeff/tomcat/test/index.html

http://tomcat.i300.net:8080/index.jsp WORKS. Tomcat returns the site's
index.jsp file, located at /export/home/jeff/tomcat/test/index.jsp

http://tomcat.i300.net/test and http://tomcat.i300.net/test/index.jsp BOTH
HANG.

The Warp logfile (below) reports that it was unable to deploy the
application test into Tomcat's (DEFAULT) webapp directory. Which appears
to uncover an even bigger problem, because it's not SUPPOSED to be deploying
the test application into Tomcat's default webapps directory... it's
supposed to be deploying it into tomcat.i300.net's equivalent -- presumably,
/export/home/jeff/tomcat !


Is mod_webapp simply broken and unable to handle multiple sandboxed virtual
instances of Tomcat mapped to separate Apache virtual hosts, or did I do
something wrong in one of the config files?

As far as I can tell, mod_jk explicitly CAN'T do this because it can't
handle Tomcat virtual hosts, and forces all apache virtual hosts to share a
common namespace for its path mapping. So mod_jk could globally map /test
from ALL of Apache's virtual hosts to a single web app deployed to Tomcat,
but can't use the same name in different contexts to map /test to a
different webapp in a different instance for every virtual host.

I originally hacked it to work using mod_rewrite to proxy incoming requests
from port 80 to port 8080 of the appropriate virtual server, but I'd really
like to get it working the RIGHT way.


*
WEB.XML --

Server port=8005 shutdown=SHUTDOWN debug=0
  Service name=Tomcat-Standalone
Connector className=org.apache.catalina.connector.http.HttpConnector
   port=8080 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8443
   acceptCount=10 debug=0 connectionTimeout=6/
Connector className=org.apache.ajp.tomcat4.Ajp13Connector
   port=8009 minProcessors=5 maxProcessors=75
   acceptCount=10 debug=0/
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 /

!-- Define the default virtual host --
  Host name=localhost debug=0 appBase=webapps unpackWARs=true
Valve className=org.apache.catalina.valves.AccessLogValve
 directory=logs  prefix=localhost_access_log.
suffix=.txt
 pattern=common/
Logger className=org.apache.catalina.logger.FileLogger
 directory=logs  prefix=localhost_log. suffix=.txt
 timestamp=true/
!-- Tomcat Root Context --
!--
  Context path= docBase=ROOT debug=0/
--
Context path=/manager docBase=manager
 debug=0 privileged=true/
  /Host

!-- the Virtual Host I care about... there WILL BE MORE --
  Host name=tomcat.i300.net debug=1
appBase=/export/home/jeff/tomcat unpackWARs=true
   Valve className=org.apache.catalina.valves.AccessLogValve
directory=logs prefix=ttest. suffix=.txt pattern=common/
   Logger 

Re: Custom Login Procedure

2002-05-06 Thread Rick Fincher

 auth-constraint
Hi Eddie,

Put something like the following in your web.xml and set up a realm in
server.xml.  The transport-guaranteeCONFIDENTIAL tag causes SSL to be
used, drop it if you don't want SSL.

Your login form has to have a form with action=j_security_check and that
form must have the input fields j_username and j_password.

Rick

   security-constraint
 web-resource-collection
web-resource-nameApp Name/web-resource-name
url-pattern/*/url-pattern
 /web-resource-collection
 auth-constraint
  role-nameadmin/role-name
  role-nameuser/role-name
/auth-constraint
 user-data-constraint
transport-guaranteeCONFIDENTIAL/transport-guarantee
 /user-data-constraint
/security-constraint
  login-config
 auth-methodFORM/auth-method
 form-login-config
form-login-page/login.htm/form-login-page
form-error-page/loginFailed.htm/form-error-page
 /form-login-config
  /login-config
security-role
 role-nameuser/role-name
  /security-role
  security-role
 role-nameadmin/role-name
  /security-role

- Original Message -

Hello everyone.

I'd like to use Tomcat's built-in authentication, but have Tomcat redirect
to a custom login page instead of displaying a dialog.

Can this be done?

Thanks loads!

Eddie




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




turn off directory listing

2002-05-06 Thread David Gladstone

is there a way in the server.xml file to turn off directory listing?
-dave

---
David Gladstone
Data Center Manager
Automated Financial Systems
(212) 771-1927
cell: (718) 930-3708



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




RE: Ejb vs jsp

2002-05-06 Thread Kim Albee

We use JSP with our Java-based content management and collaboration engine,
which is RMI based, not EJB based.  The design of the java beans in our
persistent and manager layer could all be modified to run inside of an EJB
container, however, then there is the added expense of an Application
Server, that may not be necessary.  EJB for the most part, works well when
extending or bringing to the web a legacy system, or something of that
nature.  Or, if there is no overall framework in place for a large scale
development, then having an EJB container would provide many of the common
framework essentials that would otherwise need to be invented.  That way,
developers can focus on the essential building blocks rather than the
internal framework components.

JSP is only for the presentation layer -- we use it to dynamically create
the pages, based on a number of factors.

Kim Albee
Einsof, Inc.
www.einsof.com

-Original Message-
From: Daniel Hinojosa [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 06, 2002 2:24 PM
To: Tomcat Users List
Subject: Re: Ejb vs jsp




Vincent Stoessel wrote:

 Hello,
 Because I am curious about how these technologies are used in the real
 world. I would like to know how do you professionals use as your rule
 of thumb wether or not you are going build  web based  application using
 Enterprise Javabeans or a standalone jsp applications.
 Thanks in advance.

I use them both.  EJB are used to model information that is based on a
db or other storage services.  I use the JSP as a view to dynamically
create HTML.

--
Daniel Hinojosa
Java  XML: Consultant | Developer | Instructor
P.O. Box 4675
Albuquerque, NM 87196-4675
(505) 363-5832






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




data-sources configuration

2002-05-06 Thread rainer jünger

Hi,

we are using the pooling of Struts. I know there are better ones. But we think it 
should do before the new release(1.1) is out.
I am having a question on two attributes within the data-source tag of the 
struts-config.xml file

1) There are two values to be set:
maxCount=40
minCount=5
Is it right that minCount means the minimum number of pooled connections which are 
always provided and maxCount is the maximum number of connections?

2) How can I find out about the best configuration? Are there any values out of your 
experiance you can give?

thanks Rainer



Re: solaris netscape

2002-05-06 Thread Rick Fincher

Hi Wei,

I have used Netscape (4.7) with Tomcat 4.0.3 and had no trouble doing that,
so Netscape 6 should work.  Any browser that does HTML should work.

I suspect it is a Netscape configuration problem since it works OK on a
Windows box.

I've had a lot of problems with Netscape 6 on Solaris, so much so that I
dropped back to 4.7.

Rick
- Original Message -


 Hi, there,

 I installed tomcat 4.0.3 binary in my Solaris 8 box. I can see the
 http://myhost:8080/index.jsp in another windows box. When I tried to show
the
 index.jsp on this local Solaris machine using netscape, after type
 http://localhost:8080, there will be a prompt Downloading index.jsp,
asked me
 What should Netscape 6 do with this file. Some one can help me?
 I had set the HTTP proxy port as 8080.

 Thx.

 Wei



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




Memory Leak of JDBC Drive

2002-05-06 Thread Jack Li

Hi all, 
I  am using JSQLConnect Drive from NetDirect for SQL server connection. I
loose a lot of memory on the system. The memory does get recovered unless I
restart SQL Server. I am using Tomcat 3.12 and SQL Server 2000 on windows
2000. Any ideas?
 
Thanks,
Jack Li



Re[2]: file path problem

2002-05-06 Thread Jacob Kjome

Hello Bharanidharan,

/servlet/ is a mapping provided for you by Tomcat.  In fact, take a
look in the web.xml in $TOMCAT_HOME/conf and look for that mapping:

!-- The mapping for the invoker servlet --
  servlet-mapping
servlet-nameinvoker/servlet-name
url-pattern/servlet/*/url-pattern
  /servlet-mapping


If tomcat didn't provide this, you would have to set up a mapping for
each and every one of your servlets that you wished to run.  With
this, you can run any servlet in your webapp by naming the servlet
with the full package name.

When you want a more convenient URL to invoke your servlet, you can
provide your own mapping in a similar way as the above example in your
own web.xml.

Keep in mind that the /servlet/ mapping is *not* guaranteed to exist
across containers, although I would imagine that a number of
containers might just copy Tomcat's lead on this to be compatible.

Jake

Monday, May 06, 2002, 2:16:11 PM, you wrote:

MB jack,
MB I have a quick question. in your example below, i.e.

MB http://www.myserver.com/mywebapp/servlet/myservlets.login


MB you mean to say servlet in the URL is mapped to Web-inf directory under
MB jetspeed??.. i am still unable to comprehend the url path.


MB thanks
MB bharani

MB -Original Message-
MB From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
MB Sent: Monday, May 06, 2002 1:08 PM
MB To: Tomcat Users List
MB Subject: Re: file path problem


MB Hello Bharanidharan,

MB Don't confuse the system file path with the URL path.

MB What URL is in your browser on the page that contains the
MB window.open()?

MB window.open will try to find the page relative to your domain root.

MB If you are at:

MB http://www.myserver.com/mywebapp/servlet/myservlets.login

MB Then the code you have for window.open will be attempting to find a
MB directory on the server that simply doesn't exist.  You would be able
MB to get to your myhtml directory with this, though.

MB window.open(../myhtml/loggedin.html);

MB However, you can't count on this, because what if you did a servlet
MB mapping and you got to your login servlet via:

MB http://www.myserver.com/mywebapp/login

MB now, the proper way to get to your html page would be:

MB window.open(myhtml/loggedin.html);

MB The issue here is that you are hard-coding a path that can't be
MB assumed.  What you should do, instead is the following:

MB out.println(window.open(\ + req.getContextPath() +
MB /myhtml/loggedin.html\);


MB After doing this, it doesn't matter where you invoke your servlet from
MB as long as the static html is in the proper location relative to the
MB root of the webapp.

MB Jake

MB Monday, May 06, 2002, 11:30:37 AM, you wrote:

MB Hi all,
MBI have my login servlet under
MB webapp/jetspeed/web-inf/classes/myservlets/login.class. I invoke a
MB loggedin.html from this servlet. loggedin.html is located under
MB webapps/jetspeed/myhtml/loggedin.html. so in my servlet, i gave 


MB   window.open(../../../myhtml/loggedin.html);.

MB but apache gives error saying resource /myhtml/loggedin.html couldnt not
MB be
MB found. I tried copying this file to various directories including the
MB template directories under jetspeed but no success.. can someone how the
MB file path is specified in jetspeed..


MB thanks
MB bharani.

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






-- 
Best regards,
 Jacobmailto:[EMAIL PROTECTED]


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




Re: Memory Leak of JDBC Drive

2002-05-06 Thread Rick Fincher

Hi Jack,

What JVM are you using?  Java 1.4 has a memory leak in the javac compiler
that causes a problem under Tomcat.

Are you sure it's SQL Server and not Tomcat with the memory leak?

Rick
- Original Message -

 Hi all,
 I  am using JSQLConnect Drive from NetDirect for SQL server connection. I
 loose a lot of memory on the system. The memory does get recovered unless
I
 restart SQL Server. I am using Tomcat 3.12 and SQL Server 2000 on windows
 2000. Any ideas?

 Thanks,
 Jack Li



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




Re: Custom Login Procedure

2002-05-06 Thread Eddie Bush

Thanks Rick.  I got it going just fine.  I feel _really_ stupid because I
have both the O'Reilly JSP and Servlet books.  When I got it working I had a
desire to learn more ... and it then hit me I shouldn't have had to ask at
all.  D'oh!  Thank you for your patience =)

Eddie

- Original Message -
From: Rick Fincher [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, May 06, 2002 2:41 PM
Subject: Re: Custom Login Procedure


  auth-constraint
 Hi Eddie,

 Put something like the following in your web.xml and set up a realm in
 server.xml.  The transport-guaranteeCONFIDENTIAL tag causes SSL to be
 used, drop it if you don't want SSL.

 Your login form has to have a form with action=j_security_check and that
 form must have the input fields j_username and j_password.

 Rick
 
security-constraint
  web-resource-collection
 web-resource-nameApp Name/web-resource-name
 url-pattern/*/url-pattern
  /web-resource-collection
  auth-constraint
   role-nameadmin/role-name
   role-nameuser/role-name
 /auth-constraint
  user-data-constraint
 transport-guaranteeCONFIDENTIAL/transport-guarantee
  /user-data-constraint
 /security-constraint
   login-config
  auth-methodFORM/auth-method
  form-login-config
 form-login-page/login.htm/form-login-page
 form-error-page/loginFailed.htm/form-error-page
  /form-login-config
   /login-config
 security-role
  role-nameuser/role-name
   /security-role
   security-role
  role-nameadmin/role-name
   /security-role

 - Original Message -

 Hello everyone.

 I'd like to use Tomcat's built-in authentication, but have Tomcat redirect
 to a custom login page instead of displaying a dialog.

 Can this be done?

 Thanks loads!

 Eddie




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




Should i use J2re instead of jdk in my Tomcat server ?

2002-05-06 Thread Jose Euclides da Silva Junior - DIGR.O

Its a simple doubt. I ve downloaded the j2re1.4 version to mount my TomCat
Jsp/Servlet environment. But,  tomcat still asking for Java  home, whenever
i try to start it up. So, it always returns me an error. Otherwise, i guess
that if i install  j2sdk (instead of jre), i will get success! Am i right?
Regards, Euclides.  

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




IIS crashing

2002-05-06 Thread Michael Reardon

Does anyone have any insight as to what it going on here? I'm getting an
unhanded native exception that is bringing down IIS. The exception is
apparently thrown from isapi_redirect.dll. I can't find a pattern for
what triggers it either. Sometimes usage is very low, other times it's
very high.

The error is Event ID number 204, from Microsoft Internet Server Web
Application Manager (WAM) .

The following is the event description:

The HTTP server encountered an unhanded exception while processing
the ISAPI Application '
ntdll!RtlpWaitForCriticalSection + 0x60
ntdll!ZwQueryDefaultLocale + 0x11B
isapi_redirect + 0x8DDE

It is Tomcat 3.2.4 and IIS 5.0 on Windows 2000 Server.

Thanks
Michael Reardon


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




RE: Re[2]: file path problem

2002-05-06 Thread Mani, Bharanidharan

Jack.. i am sorry its very complicated for me and i didnt understand
anything you said.. I am new to tomcat environment. 

I have a servlet under
/webapps/jetspeed/Web-inf/classes/myservlet/NewLogin.class. In that servlet
i have to call a html file that is kept under
/webapps/jetspeed/Web-inf/templates/vm/navigations/html/loggedinportlet.html
. 

I have the following code in web.xml

!-- The mapping for the invoker servlet --
  servlet-mapping
servlet-nameinvoker/servlet-name
url-pattern/servlet/*/url-pattern
  /servlet-mapping



how do i map the html file in my NewLogin.class servlet. i still dont get
how the webpath is mapped to the system file path... 

sorry for the inconvenience.

please let me know..

thanks
bharani.
-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 06, 2002 3:52 PM
To: Tomcat Users List
Subject: Re[2]: file path problem


Hello Bharanidharan,

/servlet/ is a mapping provided for you by Tomcat.  In fact, take a
look in the web.xml in $TOMCAT_HOME/conf and look for that mapping:

!-- The mapping for the invoker servlet --
  servlet-mapping
servlet-nameinvoker/servlet-name
url-pattern/servlet/*/url-pattern
  /servlet-mapping


If tomcat didn't provide this, you would have to set up a mapping for
each and every one of your servlets that you wished to run.  With
this, you can run any servlet in your webapp by naming the servlet
with the full package name.

When you want a more convenient URL to invoke your servlet, you can
provide your own mapping in a similar way as the above example in your
own web.xml.

Keep in mind that the /servlet/ mapping is *not* guaranteed to exist
across containers, although I would imagine that a number of
containers might just copy Tomcat's lead on this to be compatible.

Jake

Monday, May 06, 2002, 2:16:11 PM, you wrote:

MB jack,
MB I have a quick question. in your example below, i.e.

MB http://www.myserver.com/mywebapp/servlet/myservlets.login


MB you mean to say servlet in the URL is mapped to Web-inf directory
under
MB jetspeed??.. i am still unable to comprehend the url path.


MB thanks
MB bharani

MB -Original Message-
MB From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
MB Sent: Monday, May 06, 2002 1:08 PM
MB To: Tomcat Users List
MB Subject: Re: file path problem


MB Hello Bharanidharan,

MB Don't confuse the system file path with the URL path.

MB What URL is in your browser on the page that contains the
MB window.open()?

MB window.open will try to find the page relative to your domain root.

MB If you are at:

MB http://www.myserver.com/mywebapp/servlet/myservlets.login

MB Then the code you have for window.open will be attempting to find a
MB directory on the server that simply doesn't exist.  You would be able
MB to get to your myhtml directory with this, though.

MB window.open(../myhtml/loggedin.html);

MB However, you can't count on this, because what if you did a servlet
MB mapping and you got to your login servlet via:

MB http://www.myserver.com/mywebapp/login

MB now, the proper way to get to your html page would be:

MB window.open(myhtml/loggedin.html);

MB The issue here is that you are hard-coding a path that can't be
MB assumed.  What you should do, instead is the following:

MB out.println(window.open(\ + req.getContextPath() +
MB /myhtml/loggedin.html\);


MB After doing this, it doesn't matter where you invoke your servlet from
MB as long as the static html is in the proper location relative to the
MB root of the webapp.

MB Jake

MB Monday, May 06, 2002, 11:30:37 AM, you wrote:

MB Hi all,
MBI have my login servlet under
MB webapp/jetspeed/web-inf/classes/myservlets/login.class. I invoke a
MB loggedin.html from this servlet. loggedin.html is located under
MB webapps/jetspeed/myhtml/loggedin.html. so in my servlet, i gave 


MB   window.open(../../../myhtml/loggedin.html);.

MB but apache gives error saying resource /myhtml/loggedin.html couldnt
not
MB be
MB found. I tried copying this file to various directories including the
MB template directories under jetspeed but no success.. can someone how
the
MB file path is specified in jetspeed..


MB thanks
MB bharani.

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






-- 
Best regards,
 Jacobmailto:[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: Memory Leak of JDBC Drive

2002-05-06 Thread Jack Li

I am using JDK1.31.

Thanks,
Jack

-Original Message-
From: Rick Fincher [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 06, 2002 3:59 PM
To: Tomcat Users List
Subject: Re: Memory Leak of JDBC Drive


Hi Jack,

What JVM are you using?  Java 1.4 has a memory leak in the javac compiler
that causes a problem under Tomcat.

Are you sure it's SQL Server and not Tomcat with the memory leak?

Rick
- Original Message -

 Hi all,
 I  am using JSQLConnect Drive from NetDirect for SQL server connection. I
 loose a lot of memory on the system. The memory does get recovered unless
I
 restart SQL Server. I am using Tomcat 3.12 and SQL Server 2000 on windows
 2000. Any ideas?

 Thanks,
 Jack Li



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




  1   2   >