ODP: Tomcat and mySQL

2001-02-28 Thread Herchel Wojciech

ok, now i know what's happening, looking at the process list i can see that
upon startup tomcat logs as specified by connectionUser/Password strings
from server.xml files. but then for no apparent reason it tries to reconnect
as nobody without providing passwd. 
how can i fix that?

vVolf


> -Oryginalna wiadomość-
> Od: Cato, Christopher [mailto:[EMAIL PROTECTED]]
> Wysłano: 28 lutego 2001 17:56
> Do: '[EMAIL PROTECTED]'
> Temat: RE: Tomcat and mySQL
> 
> 
> Add ;autoreconnect=true to the db connect string.
> 
> > -Original Message-
> > From: Herchel Wojciech [mailto:[EMAIL PROTECTED]]
> > Sent: den 28 februari 2001 17:32
> > To: 'Tomcat'
> > Subject: Tomcat and mySQL
> > 
> > 
> > Hi!
> > 
> > I'm using JDBCRealm authorisation.
> > How can I force mySQL not to close the connection Tomcat 
> > opened upon startup
> > (to database where users, roles, user_roles tables are stored)?
> > i assume mySQL's variable wait_timeout is responsible for 
> > closing inactive
> > connections. the default is 28800 secs, will changing it to 
> > zero do the
> > trick? or else? anyone?
> > 
> > regards, 
> > 
> > vVolf
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
> > 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 

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




Re:ajp12 or ajp13

2001-02-28 Thread Tomasz.Sucharzewski

Well, you should make chages in mod_jk.conf file (which is included in Apache
http.conf).
Then add new connector for apjv13 in server.xml file (look at dokumentation in
mod_jk section).

Tomasz Sucharzewski
ING Bank



Reply Separator
Subject:ajp12 or ajp13
Author: [EMAIL PROTECTED]
Date:   01-02-28 11:29

Hello,

I have configed Apache to work with Tomcat.  However, in the
mod_jk.conf-auto file,  it still uses JkMount /example/servlet/* ajp12, even
I already configed Apache to use ajp13.  Why tomcat still use ajp12?  Could
you please give me a help?   Thank you in advance.

Jianming Wang

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



-
ATTENTION:
The information in this electronic mail message is private and
confidential, and only intended for the addressee. Should you
receive this message by mistake, you are hereby notified that
any disclosure, reproduction, distribution or use of this
message is strictly prohibited. Please inform the sender by
reply transmission and delete the message without copying or
opening it.

Messages and attachments are scanned for all viruses known.
If this message contains password-protected attachments, the
files have NOT been scanned for viruses by the ING mail domain.
Always scan attachments before opening them.
-

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




Problem with cache

2001-02-28 Thread matteo belloni



I've a servlet that write on a file.
If the Tomcat is running the first time the 
application rewrite the file, the other time this file is appended but, If 
I first shutdown the webserver, the information in a file isn't appended and the 
application function correctly.
This appen because this file is keeping in the web 
server's cache.
How can I solve this problem and writing every time 
on a file instead of append the information? I must modify web.xml? And 
how?
Please help me.
Thanks in advance


ODP: Tomcat and mySQL

2001-02-28 Thread Herchel Wojciech

ok, i've checked tomcat logs - it tries to reconnect, but then it reports:
There was a SQLException: Invalid authorization specification: Access denied
for user: '[EMAIL PROTECTED]' (Using password: NO)
why does tomcat log as 'nobody'? although in server.xml there is a different
connectionUser specified. how can i make it to use original connection user
and passwd?

vVolf


> -Oryginalna wiadomość-
> Od: Cato, Christopher [mailto:[EMAIL PROTECTED]]
> Wysłano: 28 lutego 2001 17:56
> Do: '[EMAIL PROTECTED]'
> Temat: RE: Tomcat and mySQL
> 
> 
> Add ;autoreconnect=true to the db connect string.
> 
> > -Original Message-
> > From: Herchel Wojciech [mailto:[EMAIL PROTECTED]]
> > Sent: den 28 februari 2001 17:32
> > To: 'Tomcat'
> > Subject: Tomcat and mySQL
> > 
> > 
> > Hi!
> > 
> > I'm using JDBCRealm authorisation.
> > How can I force mySQL not to close the connection Tomcat 
> > opened upon startup
> > (to database where users, roles, user_roles tables are stored)?
> > i assume mySQL's variable wait_timeout is responsible for 
> > closing inactive
> > connections. the default is 28800 secs, will changing it to 
> > zero do the
> > trick? or else? anyone?
> > 
> > regards, 
> > 
> > vVolf
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
> > 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 

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




ODP: simple servlet setup question

2001-02-28 Thread Herchel Wojciech

> found.  I specify which servlet the form is submitted to
> in the html file with this line:
> 
> 

you should send an action to "servlet/ExtranetServlet.class"

> The html file is in the jakarta-tomcat\webapps\extranet
> directory, and the ExtranetServlet.class file is in the
> jakarta-tomcat\webapps\extranet\classes directory, but

and put class files under jakarta-tomcat\webapps\extranet\WEB-INF\classes

hope it helps.

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




Printing on Browser gives following exception.

2001-02-28 Thread Shriranga K Kulkarni


Hello All,

I am using TOMCAT-APACHE combination to Initialize an swing applet with
servlet and display on the browser. When the page is printed following
exception is being thrown.
Can any one help me in explaining what may be the source of problem and
any possible solution for the same. Thanks in advance.

With regards
Sriranga.

java.io.NotSerializableException: java.util.PropertyResourceBundle

 at java.io.ObjectOutputStream.outputObject(Unknown Source)

 at java.io.ObjectOutputStream.writeObject(Unknown Source)

 at java.io.ObjectOutputStream.outputClassFields(Unknown Source)

 at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source)

 at java.io.ObjectOutputStream.outputObject(Unknown Source)

 at java.io.ObjectOutputStream.writeObject(Unknown Source)

 at sun.beans.ole.OleBeanInterface.saveBean(Unknown Source)




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




Session value changes?

2001-02-28 Thread Neil Edney

Hi,

We have a JSP page with an HTML form. The form does a POST to a servlet and
if validation of the posted data fails, it uses RequestDispatcher to return
to the JSP page with a suitable error message (otherwise it goes to another
page).

We have discovered that the session id is changing if the validation fails
and goes back to the JSP page - can anyone tell me why? We thought the
session id would remain constant until it either times-out or is explicitly
invalidated...

Regards,
Neil

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




RE: Tomcat Src

2001-02-28 Thread Adam Fowler

Hi,

Try downloading the .tar.gz again (sounds like a bad download) and then run
tar xzvf jakarta-tomcat-3.2.1.tar.gz and It'll work. 8o)

Regards,
Adam.


Adam Fowler
Second year Computer Science undergraduate
University of Wales, Aberystwyth
Carroll College, WI, USA(2000-2001)
web: http://gucciboy.dyndns.org/aff9
e-mail: [EMAIL PROTECTED]
"Every new beginning comes from some other beginning's end"

-Original Message-
From: Tan Khim Siang [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 28, 2001 9:58 PM
To: Tomcat User Group
Subject: Tomcat Src


Hi I am trying to untar the tomcat src tarball and I always get this error
msg where I do a tar xvf on the tarball:





jakarta-tomcat-3.2.1-src/src/webpages/docs/api/javax/servlet/http/class-use/
HttpServletRequest.html, 13710 bytes, 27 tape blocks
tar: directory checksum error



--
Tan Khim Siang
Account Manager
DV9 International Pte Ltd
21A Sembawang Road
Singapore 779076
Tel: 4531435 Fax:4535106
http://www.dv9.com


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




RE: Can tomcat do ASP in VBScript

2001-02-28 Thread Rob Tanner

Halcyon makes a server called iASP which is an ASP server with VBScript 
and such.  However, it is actually a servlet and should run just fine under tomcat.  
Also, since it is a servlet, IIS and even windows is not 
a requirement.

-- Rob

--On Wednesday, February 28, 2001 06:00:41 PM -0300 "Rodriguez Victor A." 
<[EMAIL PROTECTED]> wrote:

> Mike,
>
>> I know this is probably a stupid question to ask
>> "can tomcat serve up the competition's ASP pages
>> written in VBScript" but I have a good reason to
>> ask it. I am trying to repair a damaged IIS server
>> on NT4  and it is turning out to be a real pain. I
>> have already installed tomcat on the server and it
>> works just great. All future CGI stuff on this box
>> will be written in JSP.But for the moment there is
>> a bunch of ASP scripts that I want to run via
>> Tomcat.
>>
>> Now I do know that IIS and Tomcat can work
>> together but to be honest I just want to dump IIS
>> completely and do everything with tomcat.
>>
>> So back to my question, can tomcat serve up ASP
>> pages written in VBSCript?
>
> At he moment Tomcat only supports JSP. You can put Tomcat as a
> service, use the filter in IIS (isapi_redir.dll) and IIS will serve
> ASP code and Tomcat the JSP one. Once all you code has been ported to
> JSP you can thrown IIS and use just Tomcat.
>
> BTW, I'm using it this way in OpenBSD v2.7 and Mac OS 9 ... it was a
> no pain installation, and smooth running (the Mac OS 9 is for my
> notepad Apple PowerBook, and OpenBSD for my home server: an Intel
> Pentium 133 Mhz/80 MB RAM).
>
> Cheers.
> --
> Víctor A. Rodríguez ( http://www.bit-man.com.ar)
> Telefónica de Argentina - http://www.Telefonica.com.ar
> Tel. (54-11) 4333-7305 - Fax: (54-11) 4303-5586 int. 1680
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>




   _ _ _ _   __ _ _ _ _
  /\_\_\_\_\/\_\ /\_\_\_\_\_\
 /\/_/_/_/_/   /\/_/ \/_/_/_/_/_/  QUIDQUID LATINE DICTUM SIT,
/\/_/__\/_/ __/\/_//\/_/  PROFUNDUM VIDITUR
   /\/_/_/_/_/ /\_\  /\/_//\/_/
  /\/_/ \/_/  /\/_/_/\/_//\/_/ (Whatever is said in Latin
  \/_/  \/_/  \/_/_/_/_/ \/_/  appears profound)

  Rob Tanner
  McMinnville, Oregon
  [EMAIL PROTECTED]


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




How to add/del an account in the James1.2?

2001-02-28 Thread zhouhao



 


Problem starting tomcat

2001-02-28 Thread J. Sainz

Help,

I hope I am sending this to the right place.

I just installed tomcat-3.2.2b1 this is how I installed it:

> gunzip jakarta-tomcat-3.2.2b1.tar.gz
> tar -xvf jakarta-tomcat-3.2.2b1.tar

>mv jakarta-tomcat-3.2.2b1/ /opt/tomcat-3.2.2b1

After doing this I added:
setenv TOMCAT_HOME /opt/tomcat-3.2.2b1
to my path and attempted to start tomcat for the first time just to see what
happens.

It sources a bunch of jar files. Like this:
>/opt/tomcat/bin/startup.sh
Using classpath:
/opt/tomcat-3.2.2b1/lib/ant.jar:/opt/tomcat-3.2.2b1/lib/jasper.jar:/opt/tomc
at-3.2.2b1/lib/jaxp.jar:/opt/tomcat-3.2.2b1/lib/parser.jar:/opt/tomcat-3.2.2
b1/lib/servlet.jar:/opt/tomcat-3.2.2b1/lib/test:/opt/tomcat-3.2.2b1/lib/webs
erver.jar:/usr/local/jdk1.2.2/lib/tools.jar:./:/usr/local/mm.mysql.jdbc-1.2c
:/usr/local/jdk1.2.2

All of the files it sources are present on my machine
in the exact path that tomcat looks for them.

After this I tried going to http://localhost:8080 and I get "The page cannot
be displayed" message.

So I restarted apache and tried restarting tomcat (if it was even started)
and I get nothing.

I have no idea what I am doing wrong.  Can you help me out?

s/Johnny (don't know if I like tomcat yet) Sainz
Fremont, CA


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




Tomcat Src

2001-02-28 Thread Tan Khim Siang



Hi I am trying to untar the tomcat src tarball and 
I always get this error msg where I do a tar xvf on the tarball:
 







jakarta-tomcat-3.2.1-src/src/webpages/docs/api/javax/servlet/http/class-use/HttpServletRequest.html, 
13710 bytes, 27 tape blockstar: directory checksum error
 
 
--Tan Khim 
SiangAccount ManagerDV9 International Pte Ltd21A Sembawang 
RoadSingapore 779076Tel: 4531435 Fax:4535106http://www.dv9.com


Re: CLASSPATH and Load-on-startup related issue - bug ??

2001-02-28 Thread Chandra Goliva


I too noticed this problem.The Tomcat is recognizing the WAR files/ web
appl. directory structure autmatically from TOMCAT_HOME/webapps but the
archieves or libraries that are put in WEB-INF/lib are not being picked
up dynamically.
That's the reason why I am just keeping all the reqd. libraries into
/lib
under TOMCAT_HOME.
I appreciate any comments/response on this.
-Chandra
Anuj Agrawal wrote:
Actually, i believe tomcat does pick up the jars
from the WEB-INF/lib directory.  You might want to try looking in
the jasper.log file in the logs directory.  It should show something
like:
Classpath according to the Servlet Engine is:

I'm using tomcat 3.2.1 - not sure if that makes a diff.  Originally
i thought i needed to add the jar files to classpath via the wrapper.properties
file, but then i found that i didn't need to.
Hope that helps.
Anuj.
Srinivas Kurella wrote:
i
am reposting this. I didn't get any responses. Does anybody have an answer
?? Thanks in advance.Srini

-Original
Message-
From: Srinivas Kurella
Sent: Wednesday, February
28, 2001 1:04 PM
To: '[EMAIL PROTECTED]'
Subject: RE: CLASSPATH and
Load-on-startup related issue - bug ??
Actually , it looks as if tomcat doesn't pick up the jars
from the web-inf/lib directory. Once i added the jars explicitly to the
classpath is worked. Is this a bug ???
Srini
-Original Message-
From: Srinivas Kurella
Sent: Wednesday, February 28, 2001 12:32 PM
To: '[EMAIL PROTECTED]'
Subject: CLASSPATH and Load-on-startup related issue
??
 
I have an application which is running under tomcat. However
i donot use the
2.2 spec directory structure. I have a servlet that is
loaded on startup. I
explicitly set the CLASSPATH with all the jars needed.
I am trying to move to the webapps/ directory structure
where i can put all
the jars under WEB-INF/lib.
However the startup servlet fails with some class not
found exception. Is
the CLASSPATH variable ignored in this case ?? What could
be the problem ??
The startup servlet is a class in a jar in WEB-INF/lib.
Thanks
Srini
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

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



Once Again IIS and Tomcat

2001-02-28 Thread Mandar Joshi

I have this setup with me

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

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

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

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

The log files has following lines.

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


Can somebody tell what's going wrong ?

TIA
Mandar


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




Re: alias servlet in Tomcat

2001-02-28 Thread Brett W. McCoy

On Wed, 28 Feb 2001, AC wrote:

> Does anyone know how to configure it so all I need is
> ?

We solved this problem by having an index.jsp in the root directory that
does a little bit of validation (checking for cookie support, etc.), then
redirects to the real login servlet.

-- Brett
 http://www.chapelperilous.net/~bmccoy/
---
Once a word has been allowed to escape, it cannot be recalled.
-- Quintus Horatius Flaccus (Horace)


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




More question about connect IIS to Tomcat :

2001-02-28 Thread EShin Yen



>Last year Aron mentioned :
>
>You can use IIS ISAPI redirector to redirect request for servlet and
>JSP
>to tomcat. The redirector can be d/l from binary directory.
>(somewhere
>within i386)
>
>My question is as followed :
>
>(1) We have existing customers using IIS. We have to deal with them
>(2) If I download mod_isapi.dll from APACHE site, how can I set up the 
>connection between IIS and Tomcat.
>(3) Basically, what will happen is :
>
>   * end user hit IIS and grab the html form (dynamic generated or static, 
>does not matter)
>   * end user fill the html form, hit the submit and the http message hit 
>one of the IIS ASP page.
>
>(4) Shall I use ISAPI function in the ASP code and try to "redirect" the 
>request to Tomcat or this redirection is a "set-up" thing. I can just set 
>up to let all the http request message be redirected to another machine 
>with Tomcat?
>
>(5) After setting up all these, the protocol between IIS and tomcat is HTTP 
>or AJP13 ?
>
>(5) more complex question. Probably, we all know there is a Apache-Jserv 
>architecture (tomcat can be a Jserv), to make a very nice load-balance and 
>fault tolerance scenario. If I redirect HTTP request from IIS to tomcat,I 
>think I would loss this architecture. Is there any way to redirect the HTTP 
>request from one IIS to many tomcat?
>
>(6) Any other suggesting about the web architecture if the IIS has to be 
>use in my case?
>
>   David.
>
>
>
>

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


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




Re: alias servlet in Tomcat

2001-02-28 Thread Chandra Goliva - Temp

R






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




alias servlet in Tomcat

2001-02-28 Thread AC

Hi,

I am using Tomcat 3.1 and I need to shorten URL such that if I type in
, it will get to the login servlet page. Basically,
I
have a servlet like com.abc.login and I was able to alias it to
 but I can't figure out a way to alias it
further such that even "login" following the servername is not necessary.
The way I mapped the login servlet is by adding the following to web.xml,



sl


com.abc.login





sl


/login



Does anyone know how to configure it so all I need is
?

Thank you!




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




Re: CLASSPATH and Load-on-startup related issue - bug ??

2001-02-28 Thread Anuj Agrawal


Actually, i believe tomcat does pick up the jars from the WEB-INF/lib directory. 
You might want to try looking in the jasper.log file in the logs directory. 
It should show something like:
Classpath according to the Servlet Engine is:

I'm using tomcat 3.2.1 - not sure if that makes a diff.  Originally
i thought i needed to add the jar files to classpath via the wrapper.properties
file, but then i found that i didn't need to.
Hope that helps.
Anuj.
Srinivas Kurella wrote:
 i
am reposting this. I didn't get any responses. Does anybody have an answer
?? Thanks
in advance.Srini

-Original
Message-
From: Srinivas Kurella
Sent: Wednesday, February
28, 2001 1:04 PM
To: '[EMAIL PROTECTED]'
Subject: RE: CLASSPATH and
Load-on-startup related issue - bug ??
 
Actually , it looks as if tomcat doesn't pick up the jars
from the web-inf/lib directory. Once i added the jars explicitly to the
classpath is worked. Is this a bug ???
Srini
-Original Message-
From: Srinivas Kurella
Sent: Wednesday, February 28, 2001 12:32 PM
To: '[EMAIL PROTECTED]'
Subject: CLASSPATH and Load-on-startup related issue
??
 
I have an application which is running under tomcat. However
i donot use the
2.2 spec directory structure. I have a servlet that is
loaded on startup. I
explicitly set the CLASSPATH with all the jars needed.
I am trying to move to the webapps/ directory structure
where i can put all
the jars under WEB-INF/lib.
However the startup servlet fails with some class not
found exception. Is
the CLASSPATH variable ignored in this case ?? What could
be the problem ??
The startup servlet is a class in a jar in WEB-INF/lib.
Thanks
Srini
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




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



Re: help building mod_jk

2001-02-28 Thread Kiet Duong

I've search the archives and have tried the suggestions (including the one 
below).

Has anybody successfully gotten mod_jk to build and work on FreeBSD?  If 
so, can I get the precompiled version?

Thanks

KD



At 01:20 AM 2/28/2001, you wrote:
>this is an old problem. You should look first to the mailing list 
>database! however I wonder why this bug still exist!
>This is an old response.
>---
>I'm not sure where is the error in the makefile because I'm not a shell 
>expert, but I solve the problem launching by myself apxs.
>The location of the apxs is (in my configuration) /usr/local/sbin/ instead 
>of ${APACHE_HOME}/bin/
>After correcting this I launch the Makefile that compile the mod_jk.so 
>(make all). The script launch :
>
>/usr/local/sbin/apxs -c -I/usr/local/jdk1.1.8/include 
>-I/usr/local/jdk1.1.8/include/freebsd -DFREEBSD 
>-I/usr/local/apache/include -I../jk mod_jk.c
>
>As you can see it compiles only the mod_jk.c. The command you have to 
>launch is:
>
>/usr/local/sbin/apxs -c -I/usr/local/jdk1.1.8/include 
>-I/usr/local/jdk1.1.8/include/freebsd -DFREEBSD 
>-I/usr/local/apache/include -I../jk mod_jk.c ../jk/*.c
>
>If you use a different jdk just yank the apxs command and add ../jk/*.c at 
>the end as I did.
>
>It works with all the jdk (1.1.8, 1.2 beta native and 1.2 linux)
>
>
>regards
>
>At 21.21 27/02/2001 -0600, you wrote:
>>Can any one make a suggestion as to solving following error.
>>
>>
>>bash-2.04# apachectl configtest
>>Syntax error on line 8 of /usr/local/www/conf/mod_jk.conf-auto:
>>Cannot load /usr/local/www/libexec/mod_jk.so into server: 
>>/usr/local/www/libexec/mod_jk.so: Undefined symbol "map_name_at"
>>
>>Kiet Duong
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, email: [EMAIL PROTECTED]
>


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




RE: CLASSPATH and Load-on-startup related issue - bug ??

2001-02-28 Thread Srinivas Kurella
Title: RE: CLASSPATH and Load-on-startup related issue - bug ??



i am 
reposting this. I didn't get any responses. Does anybody have an answer ?? 

Thanks 
in advance.
Srini

  -Original Message-From: Srinivas Kurella 
  Sent: Wednesday, February 28, 2001 1:04 PMTo: 
  '[EMAIL PROTECTED]'Subject: RE: CLASSPATH and 
  Load-on-startup related issue - bug ??
  Actually , it looks as if tomcat doesn't pick up the jars from 
  the web-inf/lib directory. Once i added the jars explicitly to the classpath 
  is worked. Is this a bug ???
  Srini 
  -Original Message- From: 
  Srinivas Kurella Sent: Wednesday, February 28, 2001 
  12:32 PM To: '[EMAIL PROTECTED]' 
  Subject: CLASSPATH and Load-on-startup related issue 
  ?? 
  I have an application which is running under tomcat. However i 
  donot use the 2.2 spec directory structure. I have a 
  servlet that is loaded on startup. I explicitly set 
  the CLASSPATH with all the jars needed. I am trying to 
  move to the webapps/ directory structure where i can put all the jars under WEB-INF/lib. However the startup 
  servlet fails with some class not found exception. Is the CLASSPATH variable ignored in this case ?? What could be the 
  problem ?? The startup servlet is a class in a jar in 
  WEB-INF/lib. 
  Thanks 
  Srini 
  - 
  To unsubscribe, e-mail: 
  [EMAIL PROTECTED] For 
  additional commands, email: [EMAIL PROTECTED] 



log4j usage in tomcat?

2001-02-28 Thread Anuj Agrawal

Hi!

I'm using Tomcat 3.2.1 with IIS on W2K.  Things work great!

Within my classes i'm utilizing Log4j logging which requires Log4j to be
configured.  I normally configure Log4j within my unit test cases, but in the
case of Tomcat, to my pleasant surprise, i found that (seemingly) without
configuration, it was handling all my log statements and outputing them to the
jvm.stdout file in the logs directory.

Log4j logging is configurable, but i was unable to find the location within
Tomcat where they set the Layout pattern.  For that matter, i couldn't find
*any* references to Log4j.

Questions:
1. Does Tomcat really use Log4j?
2. Where can i set the layout pattern?

Thanks.
Anuj.


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




Re: Hiding a jsp file from public access?

2001-02-28 Thread Ben Flaumenhaft

This makes good sense, but it doesn't seem to be working.

I have the following files, among others:

c:\tomcat\webapps\store\index.jsp
c:\tomcat\webapps\store\Web-inf\index_sub.jsp
c:\tomcat\webapps\store\test\index_sub.jsp

If index.jsp includes test\\index_sub.jsp, it works fine:

<% include file="test\\index_sub.jsp" %>

If index.jsp includes Web-inf\\index_sub.jsp, it doesn't:

<% include file="Web-inf\\index_sub.jsp" %>

I get a Compile Exception: "Bad file argument to include." ... do I need to
register the JSPs somewhere as accessible for include?

Thanks,
Ben Flaumenhaft

> Simply put the JSPs under the WEB-INF directory.
>
> Tomcat protects the WEB-INF directory for you.  This is required by the
servlet
> specification.
>
> -- Pierre
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>


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




Re: newbi javabeans

2001-02-28 Thread Brett W. McCoy

On Thu, 1 Mar 2001, teh j wrote:

> I am fairly new to java beans but i was wondering if
> it were possible for one java bean to call another
> should it need to?
> Im fairly certain it is possible
> its just that i havent really seen this done before.

A Javabean is just a Java class that adheres to a specific design pattern
for public methods and events.  If you have a bean and want to interface
with another bean, you know that the other bean will have defined ways of
manipulating its behavior.

You should probably see
http://java.sun.com/docs/books/tutorial/javabeans/index.html for more
information on Javabeans.

-- Brett
 http://www.chapelperilous.net/~bmccoy/
---
"If that man in the PTL is such a healer, why can't he make his wife's
 hairdo go down?"
-- Robin Williams


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




Re: I CANT COMPILE SERVLETS!!!HELP

2001-02-28 Thread aras

Chris, the only thing I can say is:  Thank You.

I've been struggling with TomCat for over a month(only at night so about 60
workhours) Your site has just what I need.  I'd go on and on, but I don't want
your head to explode :-)

Again Thanks,

Steve

[EMAIL PROTECTED]


Chris Andreou wrote:

> Yes, sorry for the confusion. I set my classpath to the JDK and to
> tomcat\lib. What platform are you using? Take a look at the following url
> http://www.ccl.net/cca/software/UNIX/apache/index.shtml
>
> I hope it helps
>
> -Original Message-
> From: aras [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 28, 2001 5:09 PM
> To: [EMAIL PROTECTED]
> Subject: Re: I CANT COMPILE SERVLETS!!!HELP
>
> I'm having the same problem.  So I looked  into your suggestion or adding
> $TOMCAT_HOME\bin jar file(s) to my CLASSPATH.  There are no jar files in
> that dir.  All my jars are in TOMCAT_HOME/lib.  If the lib dir is what your
> talking about, which or the jars to I need to add or do I just point to the
> lib dir and it figures it out.
>
> Chris Andreou wrote:
>
> > check you jdk path
> > and also set you classpath to all the jar files under the tomcat\bin
> >
> > -Original Message-
> > From: Zakaria . [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, February 28, 2001 4:33 PM
> > To: [EMAIL PROTECTED]
> > Subject: I CANT COMPILE SERVLETS!!!HELP
> >
> > Hello,
> > I have tomcat running fine but i couldnt compile any servlet. I put the
> > servlet in different directories and tried (does it matter?) but same
> > result:
> > cannot resolve symbol:HttpServlet
> >
> > i use this command line from the same directory as the servlet:
> > javac -classpath c:\tomcat\lib\servlet.jar Hello.java
> >
> > i also downloaded the servlet.jar from the sun site and include it in the
> > classpath and in the command line with the same result...
> > how can i compile using the servlet.jar???
> >
> > thanks.
> > _
> > Get your FREE download of MSN Explorer at http://explorer.msn.com
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]


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




Re: RMI

2001-02-28 Thread Sam Newman

I've just got my serlevt working as an RMI client. To do this I had to edit
the tomcat.policy file to give all permissions to everything, and use the
rmiSecurityManager. See my earlier posts for more info

sam
- Original Message -
From: Sergey V. Udaltsov <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 28, 2001 11:39 PM
Subject: RMI


> Hi all
>
> My 4-tier app uses RMI-based AppServer. I want my JSP to connect to it
> (using dynamic stub loading). In order to do this I have to install
> RMISecurityManager, haven't I? Is this legal in Tomcat? Probably, I
> should provide some policy file? Can my webapp use separate policy (I
> would not like to change the base Tomcat configuration)? I use JDK 1.3,
> so AFAIK RMISecurityManager === SecurityManager and uses usual policy
> files.
> Any comments are more than welcome.
>
> Regards,
>
> Sergey
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
>


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




RE: newbi javabeans

2001-02-28 Thread guyr

Sure, a javabean is just java code with some method naming structure.  Java
code can call other java code.

-Original Message-
From: teh j [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 28, 2001 6:37 PM
To: [EMAIL PROTECTED]
Subject: newbi javabeans


hello!

I am fairly new to java beans but i was wondering if
it were possible for one java bean to call another
should it need to?
Im fairly certain it is possible 
its just that i havent really seen this done before.

Jason


_
http://invites.yahoo.com.au - Yahoo! Invites
- Organise your Mardi Gras party online!

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

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




RMI

2001-02-28 Thread Sergey V. Udaltsov

Hi all

My 4-tier app uses RMI-based AppServer. I want my JSP to connect to it
(using dynamic stub loading). In order to do this I have to install
RMISecurityManager, haven't I? Is this legal in Tomcat? Probably, I
should provide some policy file? Can my webapp use separate policy (I
would not like to change the base Tomcat configuration)? I use JDK 1.3,
so AFAIK RMISecurityManager === SecurityManager and uses usual policy
files.
Any comments are more than welcome.

Regards,

Sergey

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




RE: More benchmarks on Tomcat 3.3-m1

2001-02-28 Thread Craig O'Brien

Thank you!!

Craig

-Original Message-
From: GOMEZ Henri [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 28, 2001 3:24 PM
To: [EMAIL PROTECTED]
Subject: More benchmarks on Tomcat 3.3-m1


Hi,

Just run some benchmarks against Tomcat 3.3-m1 :

Server was a Linux Redhat 6.2 box with PIII/800 + 256Mo.
128Mo were allocated to tomcat :

All tests conducted with ab :

ab -c 10 -n 1000 host

Test with Apache 1.3.17 and Apache 2.0.alpha12
mod_jk log desactivated with JkLogLevel error instead of warn

Apache 1.3 serving index.html
Requests per second:192.64

Apache 2.0 serving index.html
Requests per second:180.08

Tomcat serving HelloWorld directly (no ajp)
Requests per second:954.20

Tomcat serving HelloWorld via Apache 1.3 + mod_jk + ajp13
Requests per second:427.17  (cachesize = 1)
Requests per second:481.46  (cachesize = 16)

Tomcat serving HelloWorld via Apache 2.0 + mod_jk + ajp13
Requests per second:504.54  (cachesize = 1)
Requests per second:474.83  (cachesize = 16)

Tomcat serving HelloWorld via Apache 1.3 + mod_jk + ajp12
Requests per second:9.63(something bad there ?)

Tomcat serving HelloWorld via Apache 2.0 + mod_jk + ajp12
Requests per second:24.00   (something bad there ?)

Example Servlet info :
Document Path:  /examples/servlet/HelloWorldExample
Document Length:406 bytes
Concurrency Level:  10
Complete requests:  1000
Failed requests:0
Total transferred:  645645 bytes
HTML transferred:   406406 bytes

Static info:

Document Path:  /index.html
Document Length:1520 bytes
Concurrency Level:  10
Complete requests:  1000
Failed requests:0
Total transferred:  2004000 bytes
HTML transferred:   152 bytes



Some conclusion :

- The Tomcat HTTP connector is the clear winner and if its optimisations
  are ported back to ajp we may see something good here

- Apache 2.0 is not faster than Apache 1.3 but it's still in Alpha release.

- The c set to 16 didn't show any improvement but test must
  be reconducted with ab using -k flag (HTTP KeepAlive feature)

- ajp12 show a strange comportment and must be investigated further -(


Future benchs :

I plan to do the same tests but using LoadBalancing features of mod_jk
against 3 tomcat running on same server configurations
(Redhat 6.2, PIII/800, 256Mo, TC use 128mo)


Also use the HTTP KeepAlive feature to see if cachesize show improvment.

Regards



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




RE: /servlet

2001-02-28 Thread Chris Andreou
Title: RE: /servlet



Josh, 
I have the same problem. On step three to you imply that if I create a context 
that points to a different location than Tomcat_HOME then that location should 
be in the CLASSPATH? 
 

  -Original Message-From: Srinivas Kurella 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, February 
  28, 2001 3:15 PMTo: 
  '[EMAIL PROTECTED]'Subject: RE: 
  /servlet
  Josh, I am not sure if i understand 
  your problem completely , but you DONOT necessarily have to follow the webapp 
  dir structure.
  This is what i do to make the /servlet work(porting from jrun 
  to tomcat with minimum effort :)): 1. create a WEB-INF 
  directory under your app directory and add the web.xml file to it. 
  2. add a context "" in the server.xml file with the docBase 
  as your apps' root dir. 3. Add all the jars/classes 
  explicitly to the CLASSPATH variable before running tomcat.sh to start 
  tomcat. 
  This shd work. 
  Srini -Original 
  Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] 
  Sent: Wednesday, February 28, 2001 12:35 PM To: [EMAIL PROTECTED] Subject: RE: 
  /servlet 
      Yes.  Read the 
  manual and it will explain how the direcotry structure 
  has to work.  Read the Servlet and/or JSP specification (which 
  Tomcat is the reference implementation of) and you will find 
  out how the directory structure is supposed to 
  work.  Look at the sample WEBAPPs that come with 
  Tomcat and you will find out how the directory structure is supposed to work. 
      Randy 
  
  -Original Message- From: Josh 
  [mailto:[EMAIL PROTECTED]] 
  Sent: Wednesday, February 28, 2001 3:55 PM To: [EMAIL PROTECTED] Subject: 
  /servlet 
  I'm beginning to thing no one knows the answer to this 
  question.  Can anyone help me?  Does anyone 
  currently have their setup as follows? 
  As far as I can tell, tomcat doesn't have a way to just allow 
  a /servlet directory so I can put all my .java, 
  .class, and .jar files in like most servlet install 
  files ask, am I missing something? It appears that I have to use the webapps directory, then have the WEB-INF directory structure 
  below it. Is that right? 
  Josh 
  - 
  To unsubscribe, e-mail: 
  [EMAIL PROTECTED] For 
  additional commands, email: [EMAIL PROTECTED] 
  - 
  To unsubscribe, e-mail: 
  [EMAIL PROTECTED] For 
  additional commands, email: [EMAIL PROTECTED] 



newbi javabeans

2001-02-28 Thread teh j

hello!

I am fairly new to java beans but i was wondering if
it were possible for one java bean to call another
should it need to?
Im fairly certain it is possible 
its just that i havent really seen this done before.

Jason

_
http://invites.yahoo.com.au - Yahoo! Invites
- Organise your Mardi Gras party online!

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




Set a context different than the webapps

2001-02-28 Thread Chris Andreou

Hi, 

Platform NT4.0 Apache 1.3.14 Tomcat 3.2.1: 

I have a the following context in my server xml file: 

 


and set the the following settings in httpd.conf 
--- 
Alias /devexamples "e:/Apachegroup/Apache/htdocs/webdir/examples"

Options Indexes FollowSymLinks
DirectoryIndex index.htm


JkMount /devexamples/*.jsp apj12://trw02:8007/devexamples
JkMount /devexamples/servlet/* apj12://trw02:8007/devexamples
--- 

I get the following message in the jk_mod.log file: 

jk_worker.c (123)]: Into wc_get_worker_for_name
apj12://trw02:8007/devexamples
[jk_worker.c (127)]: wc_get_worker_for_name, done did not found a worker
[jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker
[jk_uri_worker_map.c (406)]: jk_uri_worker_map_t::map_uri_to_worker, Found a
match apj12://trw02:8007/devexamples
[jk_worker.c (123)]: Into wc_get_worker_for_name
apj12://trw02:8007/devexamples
[jk_worker.c (127)]: wc_get_worker_for_name, done did not found a worker

The Context(s) work fine when they are registered under webapps. Any
sugestions? I checked my
worker.properties file and everything is ok. 

Any suggestions? 

Thanks in advance

Chris




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




RE: I CANT COMPILE SERVLETS!!!HELP

2001-02-28 Thread Chris Andreou

Yes, sorry for the confusion. I set my classpath to the JDK and to
tomcat\lib. What platform are you using? Take a look at the following url
http://www.ccl.net/cca/software/UNIX/apache/index.shtml

I hope it helps


-Original Message-
From: aras [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 28, 2001 5:09 PM
To: [EMAIL PROTECTED]
Subject: Re: I CANT COMPILE SERVLETS!!!HELP


I'm having the same problem.  So I looked  into your suggestion or adding
$TOMCAT_HOME\bin jar file(s) to my CLASSPATH.  There are no jar files in
that dir.  All my jars are in TOMCAT_HOME/lib.  If the lib dir is what your
talking about, which or the jars to I need to add or do I just point to the
lib dir and it figures it out.


Chris Andreou wrote:

> check you jdk path
> and also set you classpath to all the jar files under the tomcat\bin
>
> -Original Message-
> From: Zakaria . [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 28, 2001 4:33 PM
> To: [EMAIL PROTECTED]
> Subject: I CANT COMPILE SERVLETS!!!HELP
>
> Hello,
> I have tomcat running fine but i couldnt compile any servlet. I put the
> servlet in different directories and tried (does it matter?) but same
> result:
> cannot resolve symbol:HttpServlet
>
> i use this command line from the same directory as the servlet:
> javac -classpath c:\tomcat\lib\servlet.jar Hello.java
>
> i also downloaded the servlet.jar from the sun site and include it in the
> classpath and in the command line with the same result...
> how can i compile using the servlet.jar???
>
> thanks.
> _
> Get your FREE download of MSN Explorer at http://explorer.msn.com
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]


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

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




More benchmarks on Tomcat 3.3-m1

2001-02-28 Thread GOMEZ Henri

Hi,

Just run some benchmarks against Tomcat 3.3-m1 :

Server was a Linux Redhat 6.2 box with PIII/800 + 256Mo.
128Mo were allocated to tomcat :

All tests conducted with ab :

ab -c 10 -n 1000 host

Test with Apache 1.3.17 and Apache 2.0.alpha12  
mod_jk log desactivated with JkLogLevel error instead of warn

Apache 1.3 serving index.html 
Requests per second:192.64

Apache 2.0 serving index.html   
Requests per second:180.08

Tomcat serving HelloWorld directly (no ajp)
Requests per second:954.20

Tomcat serving HelloWorld via Apache 1.3 + mod_jk + ajp13 
Requests per second:427.17  (cachesize = 1)
Requests per second:481.46  (cachesize = 16)

Tomcat serving HelloWorld via Apache 2.0 + mod_jk + ajp13 
Requests per second:504.54  (cachesize = 1)
Requests per second:474.83  (cachesize = 16)

Tomcat serving HelloWorld via Apache 1.3 + mod_jk + ajp12
Requests per second:9.63(something bad there ?)

Tomcat serving HelloWorld via Apache 2.0 + mod_jk + ajp12
Requests per second:24.00   (something bad there ?)

Example Servlet info :
Document Path:  /examples/servlet/HelloWorldExample
Document Length:406 bytes
Concurrency Level:  10
Complete requests:  1000
Failed requests:0
Total transferred:  645645 bytes
HTML transferred:   406406 bytes

Static info:

Document Path:  /index.html
Document Length:1520 bytes
Concurrency Level:  10
Complete requests:  1000
Failed requests:0
Total transferred:  2004000 bytes
HTML transferred:   152 bytes



Some conclusion :

- The Tomcat HTTP connector is the clear winner and if its optimisations
  are ported back to ajp we may see something good here

- Apache 2.0 is not faster than Apache 1.3 but it's still in Alpha release. 

- The c set to 16 didn't show any improvement but test must
  be reconducted with ab using -k flag (HTTP KeepAlive feature)

- ajp12 show a strange comportment and must be investigated further -(


Future benchs :

I plan to do the same tests but using LoadBalancing features of mod_jk 
against 3 tomcat running on same server configurations 
(Redhat 6.2, PIII/800, 256Mo, TC use 128mo)


Also use the HTTP KeepAlive feature to see if cachesize show improvment.

Regards


 benchs.zip

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


Re: I CANT COMPILE SERVLETS!!!HELP

2001-02-28 Thread aras

I'm having the same problem.  So I looked  into your suggestion or adding
$TOMCAT_HOME\bin jar file(s) to my CLASSPATH.  There are no jar files in
that dir.  All my jars are in TOMCAT_HOME/lib.  If the lib dir is what your
talking about, which or the jars to I need to add or do I just point to the
lib dir and it figures it out.


Chris Andreou wrote:

> check you jdk path
> and also set you classpath to all the jar files under the tomcat\bin
>
> -Original Message-
> From: Zakaria . [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 28, 2001 4:33 PM
> To: [EMAIL PROTECTED]
> Subject: I CANT COMPILE SERVLETS!!!HELP
>
> Hello,
> I have tomcat running fine but i couldnt compile any servlet. I put the
> servlet in different directories and tried (does it matter?) but same
> result:
> cannot resolve symbol:HttpServlet
>
> i use this command line from the same directory as the servlet:
> javac -classpath c:\tomcat\lib\servlet.jar Hello.java
>
> i also downloaded the servlet.jar from the sun site and include it in the
> classpath and in the command line with the same result...
> how can i compile using the servlet.jar???
>
> thanks.
> _
> Get your FREE download of MSN Explorer at http://explorer.msn.com
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]


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




RE: Where to place .properties-Files when deploying a .war ?

2001-02-28 Thread Michael Specht

>What deployment tool are you using to create the war file ?
Jar-Tool from JDK 1.3




Michael Specht

T-Systems
debis Systemhaus Dienstleistungen GmbH, BU CRM Nord
Hausanschrift: Frankfurter Straße 27, 65760 Eschborn
Telefon: (0 61 96) 9 61 - 575
Telefax: (0 61 96) 9 61 - 564
Mobiltelefon: (0171) 45 84 172
E-Mail: [EMAIL PROTECTED]
Internet: http://www.t-systems.de



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




Re: Tomcat or Resin

2001-02-28 Thread Alex Fernández

Three reasons pro-Tomcat:

- Freedom to change it if you don't like it.
- Specs compliance.
- And a great support list with the best Java server-side programmers around :)

Un saludo,

Alex.

Ase Lieden-Seeligson wrote:

> I am setting up this web server:
> Pentium 100
> RedHat 6.2
> Apache 1.3.17
>
> We will use both static and dynamic pages and therefor I was going to install 
>Tomcat. However, I keep coming across positive comments on Resin. Could anyone advise 
>me on which way to go, Tomcat or Resin? Especially if you have experience with both. 
>Why would I choose one over the other?? Is Tomcat still the main road?
>
> Åse
>
> PS I am an intern who is setting this system up for the local Court house. They have 
>staff who will be able to support it when I am done. Personally, I am new at this, so 
>please be clear and simple... Thanks!
>
> PS2. I realize this list might not be the most impartial place to post this 
>question, but I'll do it anyway. If anyone has suggestions on other mailing lists to 
>ask, please let me know. Thanks!
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]


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




RE: I CANT COMPILE SERVLETS!!!HELP

2001-02-28 Thread Chris Andreou

check you jdk path
and also set you classpath to all the jar files under the tomcat\bin


-Original Message-
From: Zakaria . [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 28, 2001 4:33 PM
To: [EMAIL PROTECTED]
Subject: I CANT COMPILE SERVLETS!!!HELP


Hello,
I have tomcat running fine but i couldnt compile any servlet. I put the 
servlet in different directories and tried (does it matter?) but same 
result:
cannot resolve symbol:HttpServlet

i use this command line from the same directory as the servlet:
javac -classpath c:\tomcat\lib\servlet.jar Hello.java

i also downloaded the servlet.jar from the sun site and include it in the 
classpath and in the command line with the same result...
how can i compile using the servlet.jar???

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


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

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




I CANT COMPILE SERVLETS!!!HELP

2001-02-28 Thread Zakaria .

Hello,
I have tomcat running fine but i couldnt compile any servlet. I put the 
servlet in different directories and tried (does it matter?) but same 
result:
cannot resolve symbol:HttpServlet

i use this command line from the same directory as the servlet:
javac -classpath c:\tomcat\lib\servlet.jar Hello.java

i also downloaded the servlet.jar from the sun site and include it in the 
classpath and in the command line with the same result...
how can i compile using the servlet.jar???

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


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




RE: mm.mysql - getLastInsertID() question

2001-02-28 Thread Randy Layman


Never worked with this, but the directions seem to indicate:


org.gjt.mm.mysql.Statement stmt =
(org.gjt.mm.mysql.Statement)dbConnection.createStatement();

int count = stmt.executeUpdate("INSERT INTO ...");

// here i need to catch the ID that was just created 
// in the auto_increment field..
id = stmt.getLastIncrementId()

I don't know the type this method returns, but its probably not to
hard to find out.

Randy

-Original Message-
From: Cato, Christopher [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 28, 2001 4:55 PM
To: [EMAIL PROTECTED]
Subject: OT: mm.mysql - getLastInsertID() question


Hello. I'm wondering if anyone here would like to elighten me on
how to use the getLastInsertId() function in the mm.mysql jdbc
driver??

I know it's an offtopic question but if you can help, please do so.

I need to retrieve the auto_increment id of the last row created in 
a table. Since there may be concurrent writes to the same table, I
cannot do a "select max(id)" to get it. I need to use the method
in mm.mysql. Only problem is, I just don't know how to use it.

Quoting m.matthews (mm.mysql authour):
--
With my driver, MM.MySQL available at 
http://www.worldserver.com/mm.mysql/ you can call get the id`s of 
AUTO_INCREMENT inserts by casting your 
java.sql.Statement/PreparedStatement to 
org.gjt.mm.mysql.Statement/PreparedStatement and calling 
getLastInsertID() on it.
--




Now, how do I use this from the following code snippet?

my code:
--
public void createSite(String a, String b, String c)
{
try{

// guess I need to cast this some other way, but how?
Statement stmt = dbConnection.createStatement();

int count = stmt.executeUpdate("INSERT INTO ...");

// here i need to catch the ID that was just created 
// in the auto_increment field..
}
catch (SQLException e)
{
log(e.getMessage());
}
}


Regards,
Christopher Cato

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

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




RE: simple servlet setup question

2001-02-28 Thread Mike Braden

Try this:

>The html file is in the jakarta-tomcat\webapps\extranet
>directory, and the ExtranetServlet.class file is in the
>jakarta-tomcat\webapps\extranet\classes directory,

action="servlet/ExtranetServlet"

The default for a webapps is that servlet classes are placed
webapps/myweb/WEB-INF/classes
and are called by servlet/myServlet or
http://myserver/myweb/servlet/myServlet

Remember to leave off the slash on the end.

--
Mike Braden
[EMAIL PROTECTED]


-Original Message-
From: Sean Hall [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 28, 2001 4:35 PM
To: [EMAIL PROTECTED]
Subject: simple servlet setup question


Hello -
I just installed Tomcat and am trying to set up a really
simple example using a servlet to process input from an
html form, but for some reason the servlet isn't being
found.  I specify which servlet the form is submitted to
in the html file with this line:



The html file is in the jakarta-tomcat\webapps\extranet
directory, and the ExtranetServlet.class file is in the
jakarta-tomcat\webapps\extranet\classes directory, but
for some reason I get "404 file not found" instead.  Any
suggestions on where I should put the servlet so that it
is seen?

Also, I have System.out.println() calls in the init() method
of the servlet.  Where should this be output?  to the ms-dos
command prompt window or to one of the logs?  I don't see it
anywhere and init() should be invoked when tomcat is start,
correct?

Thanks so much for any help
Sean
[EMAIL PROTECTED]
_
Get your FREE download of MSN Explorer at http://explorer.msn.com


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

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




RE: simple servlet setup question

2001-02-28 Thread Randy Layman


First, you need to move your .class file to
webapps\extranet\WEB-INF\classes directory.  Now you have two choices.  You
can either reference your servlet as /servlet/ExtranetServlet or you can add
a mapping to your web.xml file (see the Servlet spec for more info,
including an example) to make the Servlet respond to any URL on your server
you want.

Randy

-Original Message-
From: Sean Hall [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 28, 2001 4:35 PM
To: [EMAIL PROTECTED]
Subject: simple servlet setup question


Hello -
I just installed Tomcat and am trying to set up a really
simple example using a servlet to process input from an
html form, but for some reason the servlet isn't being
found.  I specify which servlet the form is submitted to
in the html file with this line:



The html file is in the jakarta-tomcat\webapps\extranet
directory, and the ExtranetServlet.class file is in the
jakarta-tomcat\webapps\extranet\classes directory, but
for some reason I get "404 file not found" instead.  Any
suggestions on where I should put the servlet so that it
is seen?

Also, I have System.out.println() calls in the init() method
of the servlet.  Where should this be output?  to the ms-dos
command prompt window or to one of the logs?  I don't see it
anywhere and init() should be invoked when tomcat is start,
correct?

Thanks so much for any help
Sean
[EMAIL PROTECTED]
_
Get your FREE download of MSN Explorer at http://explorer.msn.com


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

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




OT: mm.mysql - getLastInsertID() question

2001-02-28 Thread Cato, Christopher

Hello. I'm wondering if anyone here would like to elighten me on
how to use the getLastInsertId() function in the mm.mysql jdbc
driver??

I know it's an offtopic question but if you can help, please do so.

I need to retrieve the auto_increment id of the last row created in 
a table. Since there may be concurrent writes to the same table, I
cannot do a "select max(id)" to get it. I need to use the method
in mm.mysql. Only problem is, I just don't know how to use it.

Quoting m.matthews (mm.mysql authour):
--
With my driver, MM.MySQL available at 
http://www.worldserver.com/mm.mysql/ you can call get the id`s of 
AUTO_INCREMENT inserts by casting your 
java.sql.Statement/PreparedStatement to 
org.gjt.mm.mysql.Statement/PreparedStatement and calling 
getLastInsertID() on it.
--




Now, how do I use this from the following code snippet?

my code:
--
public void createSite(String a, String b, String c)
{
try{

// guess I need to cast this some other way, but how?
Statement stmt = dbConnection.createStatement();

int count = stmt.executeUpdate("INSERT INTO ...");

// here i need to catch the ID that was just created 
// in the auto_increment field..
}
catch (SQLException e)
{
log(e.getMessage());
}
}


Regards,
Christopher Cato

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




RE: Use of mod_jserv.so

2001-02-28 Thread Mike Braden

I'm pretty sure the mod_jserv for apache and the mod_jserv for Tomcat are
different.
For apache it works as a servlet container, while for Tomcat it is just a
communication link.

Download the Tomcat 3.3m1 release and use the mod_jk from it.
It's located in native/mod_jk/apache1.3

Send any errors you get to the list for assistance in fixing problems.
Make sure to make a note of the versions (OS, apache, tomcat, compiler).

One thing that will help will be first building apache from source on your
system.  Apache's
apxs is used to build mod_jk.  It's values are setup from the build, which
is why most
binary distributions of apache have problems building mod_jk.

You may also have better luck with gcc over a vendor compiler, but the
reverse may
be true for SGI.

Mike.
--
Mike Braden
[EMAIL PROTECTED]


-Original Message-
From: Bush, Craig R. [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 28, 2001 4:30 PM
To: '[EMAIL PROTECTED]'
Subject: Use of mod_jserv.so


I originally tried to install Jserv and gave up because it was simple too
complicated on my SGI IRIX machine.

However, I kept the module and want to know if I can use with in libexec
with tomcat.

If not, does anyone know how to build a new mod_jserv or mod_jk module using
the tomcat source code.  The example they gave in documentation only seems
to work for Solaris and Linux  :(

Any help would greatly be appreciated.

Craig R. Bush
Human Biological Chemistry and Genetics
University of Texas Medical Branch
409-747-6809
http://www.bioinfo.utmb.edu


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

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




simple servlet setup question

2001-02-28 Thread Sean Hall

Hello -
I just installed Tomcat and am trying to set up a really
simple example using a servlet to process input from an
html form, but for some reason the servlet isn't being
found.  I specify which servlet the form is submitted to
in the html file with this line:



The html file is in the jakarta-tomcat\webapps\extranet
directory, and the ExtranetServlet.class file is in the
jakarta-tomcat\webapps\extranet\classes directory, but
for some reason I get "404 file not found" instead.  Any
suggestions on where I should put the servlet so that it
is seen?

Also, I have System.out.println() calls in the init() method
of the servlet.  Where should this be output?  to the ms-dos
command prompt window or to one of the logs?  I don't see it
anywhere and init() should be invoked when tomcat is start,
correct?

Thanks so much for any help
Sean
[EMAIL PROTECTED]
_
Get your FREE download of MSN Explorer at http://explorer.msn.com


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




Use of mod_jserv.so

2001-02-28 Thread Bush, Craig R.

I originally tried to install Jserv and gave up because it was simple too
complicated on my SGI IRIX machine.

However, I kept the module and want to know if I can use with in libexec
with tomcat.

If not, does anyone know how to build a new mod_jserv or mod_jk module using
the tomcat source code.  The example they gave in documentation only seems
to work for Solaris and Linux  :(

Any help would greatly be appreciated.

Craig R. Bush
Human Biological Chemistry and Genetics
University of Texas Medical Branch
409-747-6809
http://www.bioinfo.utmb.edu


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




RE: /servlet

2001-02-28 Thread Srinivas Kurella
Title: RE: /servlet





Josh,
I am not sure if i understand your problem completely , but you DONOT necessarily have to follow the webapp dir structure.

This is what i do to make the /servlet work(porting from jrun to tomcat with minimum effort :)):
1. create a WEB-INF directory under your app directory and add the web.xml file to it.
2. add a context "" in the server.xml file with the docBase as your apps' root dir.
3. Add all the jars/classes explicitly to the CLASSPATH variable before running tomcat.sh to start tomcat.


This shd work.


Srini
-Original Message-
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 28, 2001 12:35 PM
To: [EMAIL PROTECTED]
Subject: RE: /servlet




    Yes.  Read the manual and it will explain how the direcotry
structure has to work.  Read the Servlet and/or JSP specification (which
Tomcat is the reference implementation of) and you will find out how the
directory structure is supposed to work.  Look at the sample WEBAPPs that
come with Tomcat and you will find out how the directory structure is
supposed to work.


    Randy



-Original Message-
From: Josh [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 28, 2001 3:55 PM
To: [EMAIL PROTECTED]
Subject: /servlet



I'm beginning to thing no one knows the answer to this question.  Can 
anyone help me?  Does anyone currently have their setup as follows?


As far as I can tell, tomcat doesn't have a way to just allow a /servlet 
directory so I can put all my .java, .class, and .jar files in like most 
servlet install files ask, am I missing something? It appears that I have 
to use the webapps directory, then have the WEB-INF directory structure 
below it. Is that right?


Josh 



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


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





RE: /servlet

2001-02-28 Thread Randy Layman


Yes.  Read the manual and it will explain how the direcotry
structure has to work.  Read the Servlet and/or JSP specification (which
Tomcat is the reference implementation of) and you will find out how the
directory structure is supposed to work.  Look at the sample WEBAPPs that
come with Tomcat and you will find out how the directory structure is
supposed to work.

Randy


-Original Message-
From: Josh [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 28, 2001 3:55 PM
To: [EMAIL PROTECTED]
Subject: /servlet


I'm beginning to thing no one knows the answer to this question.  Can 
anyone help me?  Does anyone currently have their setup as follows?

As far as I can tell, tomcat doesn't have a way to just allow a /servlet 
directory so I can put all my .java, .class, and .jar files in like most 
servlet install files ask, am I missing something? It appears that I have 
to use the webapps directory, then have the WEB-INF directory structure 
below it. Is that right?

Josh 


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

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




Re: Can tomcat do ASP in VBScript

2001-02-28 Thread Shahed Ali

There a a number of products that "simulate/translate" asp code.
Look at iasp from halcyonsoft and chiliasp from ??
AFAIK, both run as servlets that act upon *.asp and parse their content,
and interpret asp code into java methods calls.

IASP even supported ADO calls.

Best of Luck
Shahed



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




Re: /servlet

2001-02-28 Thread William Brogden



Josh wrote:
> 
> I'm beginning to thing no one knows the answer to this question.  Can
> anyone help me?  Does anyone currently have their setup as follows?
> 
> As far as I can tell, tomcat doesn't have a way to just allow a /servlet
> directory so I can put all my .java, .class, and .jar files in like most
> servlet install files ask, am I missing something? It appears that I have
> to use the webapps directory, then have the WEB-INF directory structure
> below it. Is that right?
> 
> Josh

The servlet 2.1 API lays down the law about the directory structure
for "Web applications" - WEB-INF is required.

JRun 3.0 provides for a JRun/servlets  directory to accommodate
old style configurations, but you might as well bite the bullet
and move to WEB-INF


-- 
WBB - [EMAIL PROTECTED]
Java Cert mock exams http://www.lanw.com/java/javacert/
Author of Java Developer's Guide to Servlets and JSP 
ISBN 0-7821-2809-2

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




Re: Can tomcat do ASP in VBScript

2001-02-28 Thread Noah silva

I know Tomcat is strictly for Java, but I heard there is an apache module
to do Front-page extensions...  Perhaps this is slightly usefull?

 - noah silva

On Wed, 28 Feb 2001, mike thomas wrote:

> Hi all
> 
> I know this is probably a stupid question to ask
> "can tomcat serve up the competition's ASP pages
> written in VBScript" but I have a good reason to
> ask it. I am trying to repair a damaged IIS server
>...
> So back to my question, can tomcat serve up ASP
> pages written in VBSCript?
> 
> Thanks
> 
> Michael Thomas
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 
> 


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




RE: CLASSPATH and Load-on-startup related issue - bug ??

2001-02-28 Thread Srinivas Kurella
Title: RE: CLASSPATH and Load-on-startup related issue - bug ??





Actually , it looks as if tomcat doesn't pick up the jars from the web-inf/lib directory. Once i added the jars explicitly to the classpath is worked. Is this a bug ???

Srini


-Original Message-
From: Srinivas Kurella 
Sent: Wednesday, February 28, 2001 12:32 PM
To: '[EMAIL PROTECTED]'
Subject: CLASSPATH and Load-on-startup related issue ??




I have an application which is running under tomcat. However i donot use the
2.2 spec directory structure. I have a servlet that is loaded on startup. I
explicitly set the CLASSPATH with all the jars needed.
I am trying to move to the webapps/ directory structure where i can put all
the jars under WEB-INF/lib. 
However the startup servlet fails with some class not found exception. Is
the CLASSPATH variable ignored in this case ?? What could be the problem ??
The startup servlet is a class in a jar in WEB-INF/lib.


Thanks


Srini


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





IIS 5.0 and adding contexts (JSPs not being processed)

2001-02-28 Thread Joe Ismert

Hello,

I know there are similiar threads like this one, but I am new to the list so
if anyone can send a response I would be very appreciative.

I have installed APache and Tomcat and have both working; however, I was
attempting to set-up the ISAPI filter to serve JSPs through IIS and
everything was working well with the examples/ example froma  defualt TOMCAT
server I have installed under c:\Jakarta, but when I tried to use another
installation under c:\Acadia (that is the project name)... the JSPs do not
process. I get them as if the were html files..

for example if I run a test JSP <% write.out("Blah") %> in the default
instance of Tomcat it outputs just the word Blah (i.e. it was processed);
however,

under the second instance where I have my wwwroot contect path="" set to
c:\wwwroot I get the page as <% out.write("Blah") %>...

One interesting thing to note is that the Javascript is still executed (i.e.
stuff inside tags)

I might be missing something, but it would have to be one of the conf or XML
files I assumme.


Please assist,

JOE



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




RE: Can tomcat do ASP in VBScript

2001-02-28 Thread Rodriguez Victor A.

Mike,

> I know this is probably a stupid question to ask
> "can tomcat serve up the competition's ASP pages
> written in VBScript" but I have a good reason to
> ask it. I am trying to repair a damaged IIS server
> on NT4  and it is turning out to be a real pain. I
> have already installed tomcat on the server and it
> works just great. All future CGI stuff on this box
> will be written in JSP.But for the moment there is
> a bunch of ASP scripts that I want to run via
> Tomcat.
> 
> Now I do know that IIS and Tomcat can work
> together but to be honest I just want to dump IIS
> completely and do everything with tomcat.
> 
> So back to my question, can tomcat serve up ASP
> pages written in VBSCript?

At he moment Tomcat only supports JSP. You can put Tomcat as a service, use
the filter in IIS (isapi_redir.dll) and IIS will serve ASP code and Tomcat
the JSP one. Once all you code has been ported to JSP you can thrown IIS and
use just Tomcat.

BTW, I'm using it this way in OpenBSD v2.7 and Mac OS 9 ... it was a no pain
installation, and smooth running (the Mac OS 9 is for my notepad Apple
PowerBook, and OpenBSD for my home server: an Intel Pentium 133 Mhz/80 MB
RAM).

Cheers.
-- 
Víctor A. Rodríguez ( http://www.bit-man.com.ar) 
Telefónica de Argentina - http://www.Telefonica.com.ar 
Tel. (54-11) 4333-7305 - Fax: (54-11) 4303-5586 int. 1680 

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




/servlet

2001-02-28 Thread Josh

I'm beginning to thing no one knows the answer to this question.  Can 
anyone help me?  Does anyone currently have their setup as follows?

As far as I can tell, tomcat doesn't have a way to just allow a /servlet 
directory so I can put all my .java, .class, and .jar files in like most 
servlet install files ask, am I missing something? It appears that I have 
to use the webapps directory, then have the WEB-INF directory structure 
below it. Is that right?

Josh 


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




Re: Can tomcat do ASP in VBScript

2001-02-28 Thread Brett W. McCoy

On Wed, 28 Feb 2001, mike thomas wrote:

> So back to my question, can tomcat serve up ASP
> pages written in VBSCript?

Nope.

-- Brett
 http://www.chapelperilous.net/~bmccoy/
---
The best man for the job is often a woman.


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




Future of the isapi redirector

2001-02-28 Thread Jones, Stephen


I noticed that isapi_redirect.dll uses ajp12, but ajp13 is already out (and
better), and there are talks of ajp14 and mod_webapp and other new Connector
ideas...

What is the current future Connector plan for IIS? Will it support these new
protocols anytime soon?

Thanks,
Steve

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




Can tomcat do ASP in VBScript

2001-02-28 Thread mike thomas

Hi all

I know this is probably a stupid question to ask
"can tomcat serve up the competition's ASP pages
written in VBScript" but I have a good reason to
ask it. I am trying to repair a damaged IIS server
on NT4  and it is turning out to be a real pain. I
have already installed tomcat on the server and it
works just great. All future CGI stuff on this box
will be written in JSP.But for the moment there is
a bunch of ASP scripts that I want to run via
Tomcat.

Now I do know that IIS and Tomcat can work
together but to be honest I just want to dump IIS
completely and do everything with tomcat.

So back to my question, can tomcat serve up ASP
pages written in VBSCript?

Thanks

Michael Thomas


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




CLASSPATH and Load-on-startup related issue ??

2001-02-28 Thread Srinivas Kurella


I have an application which is running under tomcat. However i donot use the
2.2 spec directory structure. I have a servlet that is loaded on startup. I
explicitly set the CLASSPATH with all the jars needed.
I am trying to move to the webapps/ directory structure where i can put all
the jars under WEB-INF/lib. 
However the startup servlet fails with some class not found exception. Is
the CLASSPATH variable ignored in this case ?? What could be the problem ??
The startup servlet is a class in a jar in WEB-INF/lib.

Thanks

Srini

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




RE: Help with Cable Modem

2001-02-28 Thread Randy Layman


It was in the mail message that I sent as the sender (not reply-to)
header, but its [EMAIL PROTECTED]

Also, if its using http://proxy:8080, how does that affect
http://localhost:8080 unless your computer is named proxy?

Randy


-Original Message-
From: Dave Parkin [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 28, 2001 3:13 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Help with Cable Modem


Thom,

I think maybe that you're on to it.  

Environ - WinMe (poor me). 

AT&T uses http://proxy:8080

I'll give it a try.  By the way, thanks Randy Layman but I don't have your
direct e-mail address.

Also, thanks Michael Wentzel. I've been using winipcfg.exe but to no avail.
I can't get to gateway.  I need to get through the gateway to get IP's
assigned. 

I think resetting the port for tomcat has promise.
One concern - tomcat wasn't running during my last attempts to ping the
gateway.

I will try the approach below tonight and let y'all know.

If anyone has more clues (or if this approach is all wet), please let me
know, it's appreciated!

Regards,
David
-Original Message-
From: Thom Park [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 28, 2001 11:10 AM
To: [EMAIL PROTECTED]
Subject: Re: Help with Cable Modem


Hi Dave,

Tomcat doesn't put anything in the registry. So I can't see why tomcat could
be
the culprit here.

What platform are you on?

Try changing the listener port numbers in the tomcat server.xml file
e.g  in the following server.xml extract, change the port value to 7070 (and
perhaps do something similar
with the Ajp12ConnectionHandler Connector)




 


I wouldn't have thought though, that the ping utility would be trying to
talk
over the port # that tomcat is listening on.

What does ping fail with? Have you tried the IP address as well as the
gateway
name?

To uninstall tomcat, all you need to do is delete the directory tree.

-T.


Dave Parkin wrote:

> I have an RCA cable modem supporting AT&T high speed cable modem internet
> service.
>
> I installed tomcat.  Got examples running (started tomcat successfully,
> etc.).
>
> http://localhost:8080
>
> Big problem resulted - now I cannot ping the gateway. Does anyone know why
> and what I should do to fix it.
>
> AT&T tech said to get tomcat out the registry.
>
> Is anyone aware of configuration settings that could be changed to allow
for
> both.
>
> Or, worst case, how to uninstall what tomcat installed.
>
> Regards,
> David Parkin
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]


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

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

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




RE: error in refreshing the servlet window

2001-02-28 Thread Adilakshmi Lingam

Cool! Randy.
It was the space between tname= and the quote. I've been spending a lot of
time with that.
And the JVM is JDK 1.2.2_007 only. For now, I'll just leave it like that.
Thanks.
Lakshmi



-Original Message-
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 28, 2001 1:27 PM
To: [EMAIL PROTECTED]
Subject: RE: error in refreshing the servlet window



First, you can check the JVM version by running the command java
-version.  This will give the latest build.

Second, you probably need to remove the apsace between tname= and
the quote.  If that's not it, look at your HTML and verify that the URL is
correct.  Try copying the URL from the HTML source and executing it
directly.

Randy

-Original Message-
From: Adilakshmi Lingam [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 28, 2001 2:57 PM
To: [EMAIL PROTECTED]
Subject: RE: error in refreshing the servlet window


I've been using JavaTM 2 SDK, Standard Edition, Version 1.2.2. I don't know
if it is JDK 1.2.2_002 or anything else. I'll try to change the VM.
I have another problem here.
I have a servlet which collects the name of the table as a parameter, runs
an sql query and displays the information on an html page. That page has to
be periodically refreshed, by everytime doing the query and displaying the
info.

This is what I have been using.

out.println("");
out.println("http://171.70.9.195:8080/demo/servlet/status?tname= "+tablename+">");
out.println("");

The servlet works fine the first time. But gives a null pointer exception
the next time when it is refreshed. the tablename is being collected as null
during the refreshing. It works ok, if I do a manual refresh.

Any pointers please,

Thanks,
L

-Original Message-
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 28, 2001 12:43 PM
To: [EMAIL PROTECTED]
Subject: RE: error in refreshing the servlet window



For what its worth, I recently upgraded from JDK 1.2.2_002 to
1.2.2_007 (I upgraded because of the security alert).  I have been having
the VM crash on me two or three times a day during active development.  In
the past three days since I upgraded it hasn't crashed once.  This is on Win
NT 4.0, not 2000, but it should be about the same.

Randy

-Original Message-
From: Ben Flaumenhaft [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 28, 2001 1:34 PM
To: [EMAIL PROTECTED]
Subject: Re: error in refreshing the servlet window



This is a VM crash. What VM are you using? You might try a different VM.
There are two high-quality, stable ones that I've been using -- one is the
Sun one, and the other is the IBM JDK, which you can get at
http://ibm.com/java.

Regards,
Ben Flaumenhaft
Principal, Sidelight Consulting
http://www.sidelight.com

- Original Message -
From: "Adilakshmi Lingam" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 28, 2001 10:13 AM
Subject: error in refreshing the servlet window


>
>
> Hi,
>
> I've started using Tomcat 3.2.1 on Win 2k very recently. I've been doing
> some small applications and had no problems, so far.
> Today, when I started to refresh the servlet page, after a couple of
times,
> the tomcat is automatically shut down and a window appears saying, "
> Java.exe has generated errors and closing the application. You will need
to
> restart the program. An error log is being generated."
>
> what might be the problem? Is there a way to automatically start Tomcat as
> soon as it has been shut down?
> Any sort of clues are very much appreciated.
>
> Thanks,
> Lakshmi
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>


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

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


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

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


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




RE: Help with Cable Modem

2001-02-28 Thread Dave Parkin

Thom,

I think maybe that you're on to it.  

Environ - WinMe (poor me). 

AT&T uses http://proxy:8080

I'll give it a try.  By the way, thanks Randy Layman but I don't have your
direct e-mail address.

Also, thanks Michael Wentzel. I've been using winipcfg.exe but to no avail.
I can't get to gateway.  I need to get through the gateway to get IP's
assigned. 

I think resetting the port for tomcat has promise.
One concern - tomcat wasn't running during my last attempts to ping the
gateway.

I will try the approach below tonight and let y'all know.

If anyone has more clues (or if this approach is all wet), please let me
know, it's appreciated!

Regards,
David
-Original Message-
From: Thom Park [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 28, 2001 11:10 AM
To: [EMAIL PROTECTED]
Subject: Re: Help with Cable Modem


Hi Dave,

Tomcat doesn't put anything in the registry. So I can't see why tomcat could
be
the culprit here.

What platform are you on?

Try changing the listener port numbers in the tomcat server.xml file
e.g  in the following server.xml extract, change the port value to 7070 (and
perhaps do something similar
with the Ajp12ConnectionHandler Connector)




 


I wouldn't have thought though, that the ping utility would be trying to
talk
over the port # that tomcat is listening on.

What does ping fail with? Have you tried the IP address as well as the
gateway
name?

To uninstall tomcat, all you need to do is delete the directory tree.

-T.


Dave Parkin wrote:

> I have an RCA cable modem supporting AT&T high speed cable modem internet
> service.
>
> I installed tomcat.  Got examples running (started tomcat successfully,
> etc.).
>
> http://localhost:8080
>
> Big problem resulted - now I cannot ping the gateway. Does anyone know why
> and what I should do to fix it.
>
> AT&T tech said to get tomcat out the registry.
>
> Is anyone aware of configuration settings that could be changed to allow
for
> both.
>
> Or, worst case, how to uninstall what tomcat installed.
>
> Regards,
> David Parkin
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]


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

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




RE: A few questions regarding file placement for projects

2001-02-28 Thread Randy Layman


See responses intermingled

-Original Message-
From: Adam Haberlach [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 28, 2001 3:05 PM
To: [EMAIL PROTECTED]
Subject: A few questions regarding file placement for projects


As I mentioned before, I'm trying to set up seperate contexts for
develoepers so that they can all use the same machine and have
individual class files.  I was told that each context gets its own
WEB-INF directory.

I'm somewhat new to Java, but what I need to know is:

o. Where, in relation to the WEB-INF of docroot directory for a
context would I place .class (or .java, if the server will compile
them for me) files so that they will be picked up automatically
for that context.
Tomcat won't compile .java files unless it generates from a .jsp file.  The
.class files go into webapps/MyWebApp/WEB-INF/classes.  (Jar files go in
webapps/MyWebApp/WEB-INF/lib.


o. How can I set up a class file heirarchy or system so that I
can 'import com.foo.bar.blah.*' and have the correct files for
the context picked up?
webapps/MyWebApp/WEB-INF/classes/com/foo/bar/blah (suprising like Java's
regular way of doing things)

o. Do I need to use .war files, and if so, how?
Need to, no.  Want to, probably not until you get close to packaging for
deployment to clients.

o. How dynamic is the web.xml file in the WEB-INF directory?  Must
I restart the server (and Apache, in this case) every time I or
any other engineer makes a change?

You must restart Tomcat if you are using 3.2.  Since you are integrating
with Apache, I believe that this means you must restart the server as well,
but I'm not sure since I don't use Apache.

You must reload the context if you are using Tomcat 4.0 (see
localhost:8080/manager)


-- 
Adam Haberlach| "Having a smoking section in a restaurant is
[EMAIL PROTECTED]   | like having a peeing section in a swimming pool"
http://www.newsnipple.com |
'88 EX500'00 >^<  |

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

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




A few questions regarding file placement for projects

2001-02-28 Thread Adam Haberlach

As I mentioned before, I'm trying to set up seperate contexts for
develoepers so that they can all use the same machine and have
individual class files.  I was told that each context gets its own
WEB-INF directory.

I'm somewhat new to Java, but what I need to know is:

o. Where, in relation to the WEB-INF of docroot directory for a
context would I place .class (or .java, if the server will compile
them for me) files so that they will be picked up automatically
for that context.

o. How can I set up a class file heirarchy or system so that I
can 'import com.foo.bar.blah.*' and have the correct files for
the context picked up?

o. Do I need to use .war files, and if so, how?

o. How dynamic is the web.xml file in the WEB-INF directory?  Must
I restart the server (and Apache, in this case) every time I or
any other engineer makes a change?


-- 
Adam Haberlach| "Having a smoking section in a restaurant is
[EMAIL PROTECTED]   | like having a peeing section in a swimming pool"
http://www.newsnipple.com |
'88 EX500'00 >^<  |

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




RE: error in refreshing the servlet window

2001-02-28 Thread Randy Layman


First, you can check the JVM version by running the command java
-version.  This will give the latest build.

Second, you probably need to remove the apsace between tname= and
the quote.  If that's not it, look at your HTML and verify that the URL is
correct.  Try copying the URL from the HTML source and executing it
directly.

Randy

-Original Message-
From: Adilakshmi Lingam [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 28, 2001 2:57 PM
To: [EMAIL PROTECTED]
Subject: RE: error in refreshing the servlet window


I've been using JavaTM 2 SDK, Standard Edition, Version 1.2.2. I don't know
if it is JDK 1.2.2_002 or anything else. I'll try to change the VM.
I have another problem here.
I have a servlet which collects the name of the table as a parameter, runs
an sql query and displays the information on an html page. That page has to
be periodically refreshed, by everytime doing the query and displaying the
info.

This is what I have been using.

out.println("");
out.println("http://171.70.9.195:8080/demo/servlet/status?tname= "+tablename+">");
out.println("");

The servlet works fine the first time. But gives a null pointer exception
the next time when it is refreshed. the tablename is being collected as null
during the refreshing. It works ok, if I do a manual refresh.

Any pointers please,

Thanks,
L

-Original Message-
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 28, 2001 12:43 PM
To: [EMAIL PROTECTED]
Subject: RE: error in refreshing the servlet window



For what its worth, I recently upgraded from JDK 1.2.2_002 to
1.2.2_007 (I upgraded because of the security alert).  I have been having
the VM crash on me two or three times a day during active development.  In
the past three days since I upgraded it hasn't crashed once.  This is on Win
NT 4.0, not 2000, but it should be about the same.

Randy

-Original Message-
From: Ben Flaumenhaft [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 28, 2001 1:34 PM
To: [EMAIL PROTECTED]
Subject: Re: error in refreshing the servlet window



This is a VM crash. What VM are you using? You might try a different VM.
There are two high-quality, stable ones that I've been using -- one is the
Sun one, and the other is the IBM JDK, which you can get at
http://ibm.com/java.

Regards,
Ben Flaumenhaft
Principal, Sidelight Consulting
http://www.sidelight.com

- Original Message -
From: "Adilakshmi Lingam" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 28, 2001 10:13 AM
Subject: error in refreshing the servlet window


>
>
> Hi,
>
> I've started using Tomcat 3.2.1 on Win 2k very recently. I've been doing
> some small applications and had no problems, so far.
> Today, when I started to refresh the servlet page, after a couple of
times,
> the tomcat is automatically shut down and a window appears saying, "
> Java.exe has generated errors and closing the application. You will need
to
> restart the program. An error log is being generated."
>
> what might be the problem? Is there a way to automatically start Tomcat as
> soon as it has been shut down?
> Any sort of clues are very much appreciated.
>
> Thanks,
> Lakshmi
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>


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

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


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

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




RE: Progress in JSP/Servlet

2001-02-28 Thread Jayesh

Hi,

I tried setting the header as you mentioned.
It does not do anything.

   resp.flushBuffer();
   resp.setStatus(HttpServletResponse.SC_MOVED_TEMPORARILY);
   resp.setHeader("Location", "/SomePage.jsp");

I tried another trick of writing 

This is working only when I have cookies enabled on my browser.

Jayesh


From: "Jones, Stephen" 
Subject:  RE: Progress in JSP/Servlet
Date:  Mon, 26 Feb 2001 19:22:17 -0800
Here is an alternate method of redirecting the browser:

response.setStatus(HttpServletResponse.SC_MOVED_TEMPORARILY);
response.setHeader("Location", sURL);

We use this instead of sendRedirect() or flushing so that we can
send
redirects even though we had already committed the response by
sending a
cookie. Not sure if this applies to plaintext, but give it a shot...

Steve

PS Please don't post in HTML

-Original Message-
From: Parayali, Jayesh 1065 [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 26, 2001 7:56 PM
To: '[EMAIL PROTECTED]'
Subject: Progress in JSP/Servlet


Hi,
I need to show a text message while a jsp/servlet is doing some
work.
If I use out.flush() or response.flushBuffer(), I can not use
sendRedirect
since the Response has already been committed
Any help is appreciated.
Thanks,
Jayesh

_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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




RE: confused

2001-02-28 Thread Dave Parkin

Try looking at \jakarta-tomcat-3.2.1\doc\appdev
- all kinds of docs there and up one level.

I'm building my first app too, and the instruction seem to be step by step.

Regards,
David

-Original Message-
From: Lori Edelen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 28, 2001 10:28 AM
To: [EMAIL PROTECTED]
Subject: Re: confused




Okay, I did that but it is not finding the classes in the /Web-inf/classes.
What else do I have to do?
Lori Edelen
Web Application Developer
Lattestone.com



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

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




RE: error in refreshing the servlet window

2001-02-28 Thread Adilakshmi Lingam

I've been using JavaTM 2 SDK, Standard Edition, Version 1.2.2. I don't know
if it is JDK 1.2.2_002 or anything else. I'll try to change the VM.
I have another problem here.
I have a servlet which collects the name of the table as a parameter, runs
an sql query and displays the information on an html page. That page has to
be periodically refreshed, by everytime doing the query and displaying the
info.

This is what I have been using.

out.println("");
out.println("http://171.70.9.195:8080/demo/servlet/status?tname= "+tablename+">");
out.println("");

The servlet works fine the first time. But gives a null pointer exception
the next time when it is refreshed. the tablename is being collected as null
during the refreshing. It works ok, if I do a manual refresh.

Any pointers please,

Thanks,
L

-Original Message-
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 28, 2001 12:43 PM
To: [EMAIL PROTECTED]
Subject: RE: error in refreshing the servlet window



For what its worth, I recently upgraded from JDK 1.2.2_002 to
1.2.2_007 (I upgraded because of the security alert).  I have been having
the VM crash on me two or three times a day during active development.  In
the past three days since I upgraded it hasn't crashed once.  This is on Win
NT 4.0, not 2000, but it should be about the same.

Randy

-Original Message-
From: Ben Flaumenhaft [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 28, 2001 1:34 PM
To: [EMAIL PROTECTED]
Subject: Re: error in refreshing the servlet window



This is a VM crash. What VM are you using? You might try a different VM.
There are two high-quality, stable ones that I've been using -- one is the
Sun one, and the other is the IBM JDK, which you can get at
http://ibm.com/java.

Regards,
Ben Flaumenhaft
Principal, Sidelight Consulting
http://www.sidelight.com

- Original Message -
From: "Adilakshmi Lingam" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 28, 2001 10:13 AM
Subject: error in refreshing the servlet window


>
>
> Hi,
>
> I've started using Tomcat 3.2.1 on Win 2k very recently. I've been doing
> some small applications and had no problems, so far.
> Today, when I started to refresh the servlet page, after a couple of
times,
> the tomcat is automatically shut down and a window appears saying, "
> Java.exe has generated errors and closing the application. You will need
to
> restart the program. An error log is being generated."
>
> what might be the problem? Is there a way to automatically start Tomcat as
> soon as it has been shut down?
> Any sort of clues are very much appreciated.
>
> Thanks,
> Lakshmi
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>


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

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


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




RE: error in refreshing the servlet window

2001-02-28 Thread Randy Layman


For what its worth, I recently upgraded from JDK 1.2.2_002 to
1.2.2_007 (I upgraded because of the security alert).  I have been having
the VM crash on me two or three times a day during active development.  In
the past three days since I upgraded it hasn't crashed once.  This is on Win
NT 4.0, not 2000, but it should be about the same.

Randy

-Original Message-
From: Ben Flaumenhaft [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 28, 2001 1:34 PM
To: [EMAIL PROTECTED]
Subject: Re: error in refreshing the servlet window



This is a VM crash. What VM are you using? You might try a different VM.
There are two high-quality, stable ones that I've been using -- one is the
Sun one, and the other is the IBM JDK, which you can get at
http://ibm.com/java.

Regards,
Ben Flaumenhaft
Principal, Sidelight Consulting
http://www.sidelight.com

- Original Message -
From: "Adilakshmi Lingam" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 28, 2001 10:13 AM
Subject: error in refreshing the servlet window


>
>
> Hi,
>
> I've started using Tomcat 3.2.1 on Win 2k very recently. I've been doing
> some small applications and had no problems, so far.
> Today, when I started to refresh the servlet page, after a couple of
times,
> the tomcat is automatically shut down and a window appears saying, "
> Java.exe has generated errors and closing the application. You will need
to
> restart the program. An error log is being generated."
>
> what might be the problem? Is there a way to automatically start Tomcat as
> soon as it has been shut down?
> Any sort of clues are very much appreciated.
>
> Thanks,
> Lakshmi
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>


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

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




error reading request, Ignored - java.lang.arrayIndexOutOfBoundsException

2001-02-28 Thread Bryan Murtha

Hi,

Does anyone have any insight on how to correct the following
error that is being generated everytime I try to send a request to Tomcat. 
It's running as a standalone server on :8080 on Redhat 7.

ContextManager: error reading request, Ignored - 
java.lang.arrayIndexOutOfBoundsException


thanks,
Bryan


Original Message Follows
From: "Ben Flaumenhaft" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: <[EMAIL PROTECTED]>
Subject: Re: error in refreshing the servlet window
Date: Wed, 28 Feb 2001 10:33:31 -0800


This is a VM crash. What VM are you using? You might try a different VM.
There are two high-quality, stable ones that I've been using -- one is the
Sun one, and the other is the IBM JDK, which you can get at
http://ibm.com/java.

Regards,
Ben Flaumenhaft
Principal, Sidelight Consulting
http://www.sidelight.com

- Original Message -
From: "Adilakshmi Lingam" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 28, 2001 10:13 AM
Subject: error in refreshing the servlet window


 >
 >
 > Hi,
 >
 > I've started using Tomcat 3.2.1 on Win 2k very recently. I've been doing
 > some small applications and had no problems, so far.
 > Today, when I started to refresh the servlet page, after a couple of
times,
 > the tomcat is automatically shut down and a window appears saying, "
 > Java.exe has generated errors and closing the application. You will need
to
 > restart the program. An error log is being generated."
 >
 > what might be the problem? Is there a way to automatically start Tomcat 
as
 > soon as it has been shut down?
 > Any sort of clues are very much appreciated.
 >
 > Thanks,
 > Lakshmi
 >
 >
 > -
 > To unsubscribe, e-mail: [EMAIL PROTECTED]
 > For additional commands, email: [EMAIL PROTECTED]
 >


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


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


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




RE: apache/tomcat with formbased security

2001-02-28 Thread John de la Garza

I just looked at tomcat 4.0 b1.  Where did you read about it having the
functionality you talked about?

> -Original Message-
> From: Andrew Robson [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 28, 2001 10:19 AM
> To: [EMAIL PROTECTED]
> Subject: Re: apache/tomcat with formbased security
>
>
> John,
>  This question has appeared on the list before.
> Below is a quote from a reply by one of the tomcat
> developers. I have the same
> problem. I want to integrate apache/tomcat but can't at the
> moment because
> I need the functionality I've built into my custom JDBCRealm.
> And I don't know
> how to replicate in apache. I'd be very interested in how you
> get on. You
> can email me directly if you make any progress and I'll do the same.
>
> Andrew
>
> >The Apache connector does not know anything about what is in
> your web.xml
> >file,so  it doesn't know about your security constraints that ask for
> >authentication. You will have to use standard Apache
> facilities to configure
> >valid users.
>
> >In Tomcat 4.0, this will not be the case -- the web connector will be
> >configured from the contents of the web.xml file.
>
>
> On Wed, 28 Feb 2001, you wrote:
> > Does anyone have formbased security working with apache and tomcat?
> >
> > I have formbased security working fine with tomcat in
> standalone, but when I
> > go through apache it doesn't recognize the post to j_security_check
> >
> >
> >
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
>


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




Re: Help with Cable Modem

2001-02-28 Thread Brett W. McCoy

On Wed, 28 Feb 2001, Dave Parkin wrote:

> I have an RCA cable modem supporting AT&T high speed cable modem internet
> service.
>
> I installed tomcat.  Got examples running (started tomcat successfully,
> etc.).
>
> http://localhost:8080
>
> Big problem resulted - now I cannot ping the gateway. Does anyone know why
> and what I should do to fix it.
>
> AT&T tech said to get tomcat out the registry.
>
> Is anyone aware of configuration settings that could be changed to allow for
> both.

I don't think the tech knew what he was talking about. Maybe he thought
your were trying to run a server off of their service, whihc some cable
companies don't allow.  AFAIK, Tomcat doesn't use any registry settings.
I'm using Tomcat on Win2K and it doesn't use the registry for anything --
it's all Java and runs the same on Unix as it does Windows.

What does ipconfig tell you about your network?  Have you tried using
tracert?

-- Brett
 http://www.chapelperilous.net/~bmccoy/
---
Kill Ugly Processor Architectures
- Karl Lehenbauer


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




Re: error in refreshing the servlet window

2001-02-28 Thread Ben Flaumenhaft


This is a VM crash. What VM are you using? You might try a different VM.
There are two high-quality, stable ones that I've been using -- one is the
Sun one, and the other is the IBM JDK, which you can get at
http://ibm.com/java.

Regards,
Ben Flaumenhaft
Principal, Sidelight Consulting
http://www.sidelight.com

- Original Message -
From: "Adilakshmi Lingam" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 28, 2001 10:13 AM
Subject: error in refreshing the servlet window


>
>
> Hi,
>
> I've started using Tomcat 3.2.1 on Win 2k very recently. I've been doing
> some small applications and had no problems, so far.
> Today, when I started to refresh the servlet page, after a couple of
times,
> the tomcat is automatically shut down and a window appears saying, "
> Java.exe has generated errors and closing the application. You will need
to
> restart the program. An error log is being generated."
>
> what might be the problem? Is there a way to automatically start Tomcat as
> soon as it has been shut down?
> Any sort of clues are very much appreciated.
>
> Thanks,
> Lakshmi
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>


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




Calling within and across webapp contexts

2001-02-28 Thread Rick Herrick

I asked the question earlier and never received a response, so I'll try again!

We have a JSP app that's currently running in JRun 2.3.3 (JSP 1.0 
compliant).  When we refer to different directories within the app, we 
always preface with the "context" name, or really the top-level virtual 
directory.  So if you want a common file, you do this:



The problem is that, testing under Tomcat, this doesn't work.  It tries to 
prepend the context name onto the path, so that this becomes 
/CpsAdmin/CpsAdmin/Common/loginForm.jsp.

My questions are:

* Is this part of the JSP 1.1 spec?  It flies in the face of conventional 
usage of path names across the board, i.e. anything that starts with '/' 
means you go to the top-level of the server hierarchy.  What's the rationale?

* Is there anyway to change this and make Tomcat do the "right" thing, i.e. 
see '/' as the server root?

* Does this also mean that you can't call across contexts?  That is, we 
produce our tools as separate items, since customers may install some 
pieces and not others.  But if two tools are installed, they can work 
together and then would need to call across contexts.  I can think of no 
good reason why this shouldn't be permitted, but based on this behavior, it 
does look as if it would.

Thanks in advance for any feedback!  Getting this worked out will help save 
me a TON of time porting over our apps!

Rick Herrick, AKA [EMAIL PROTECTED]
In zero gravity, nothing is amusing.
PGP: http://www.rickherrick.com/pgpkey


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




Re: apache/tomcat with formbased security

2001-02-28 Thread Andrew Robson

John,
 This question has appeared on the list before. 
Below is a quote from a reply by one of the tomcat developers. I have the same
problem. I want to integrate apache/tomcat but can't at the moment because 
I need the functionality I've built into my custom JDBCRealm. And I don't know 
how to replicate in apache. I'd be very interested in how you get on. You
can email me directly if you make any progress and I'll do the same.

Andrew

>The Apache connector does not know anything about what is in your web.xml
>file,so  it doesn't know about your security constraints that ask for
>authentication. You will have to use standard Apache facilities to configure
>valid users.

>In Tomcat 4.0, this will not be the case -- the web connector will be
>configured from the contents of the web.xml file.


On Wed, 28 Feb 2001, you wrote:
> Does anyone have formbased security working with apache and tomcat?
> 
> I have formbased security working fine with tomcat in standalone, but when I
> go through apache it doesn't recognize the post to j_security_check
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED] 



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




RE: error in refreshing the servlet window

2001-02-28 Thread Michael Wentzel

> I've started using Tomcat 3.2.1 on Win 2k very recently. I've 
> been doing
> some small applications and had no problems, so far.
> Today, when I started to refresh the servlet page, after a 
> couple of times,
> the tomcat is automatically shut down and a window appears saying, "
> Java.exe has generated errors and closing the application. 
> You will need to
> restart the program. An error log is being generated."
> 
> what might be the problem? Is there a way to automatically 
> start Tomcat as
> soon as it has been shut down?
> Any sort of clues are very much appreciated.

Not exactly sure what could cause this in W2K but you could always
write a small c/c++ program that would run as a service automatically
and poll the tomcat server periodically and restart the service if
necessary.

What does the error log say?


---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
mailto:[EMAIL PROTECTED]

- Punisher of those who cannot spell dumb!


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




Re: Help with Cable Modem

2001-02-28 Thread Thom Park

Hi Dave,

Tomcat doesn't put anything in the registry. So I can't see why tomcat could be
the culprit here.

What platform are you on?

Try changing the listener port numbers in the tomcat server.xml file
e.g  in the following server.xml extract, change the port value to 7070 (and
perhaps do something similar
with the Ajp12ConnectionHandler Connector)




 


I wouldn't have thought though, that the ping utility would be trying to talk
over the port # that tomcat is listening on.

What does ping fail with? Have you tried the IP address as well as the gateway
name?

To uninstall tomcat, all you need to do is delete the directory tree.

-T.


Dave Parkin wrote:

> I have an RCA cable modem supporting AT&T high speed cable modem internet
> service.
>
> I installed tomcat.  Got examples running (started tomcat successfully,
> etc.).
>
> http://localhost:8080
>
> Big problem resulted - now I cannot ping the gateway. Does anyone know why
> and what I should do to fix it.
>
> AT&T tech said to get tomcat out the registry.
>
> Is anyone aware of configuration settings that could be changed to allow for
> both.
>
> Or, worst case, how to uninstall what tomcat installed.
>
> Regards,
> David Parkin
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]


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




error in refreshing the servlet window

2001-02-28 Thread Adilakshmi Lingam



Hi,

I've started using Tomcat 3.2.1 on Win 2k very recently. I've been doing
some small applications and had no problems, so far.
Today, when I started to refresh the servlet page, after a couple of times,
the tomcat is automatically shut down and a window appears saying, "
Java.exe has generated errors and closing the application. You will need to
restart the program. An error log is being generated."

what might be the problem? Is there a way to automatically start Tomcat as
soon as it has been shut down?
Any sort of clues are very much appreciated.

Thanks,
Lakshmi


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




RE: Help with Cable Modem

2001-02-28 Thread Michael Wentzel

> I have an RCA cable modem supporting AT&T high speed cable 
> modem internet
> service.
> 
> I installed tomcat.  Got examples running (started tomcat 
> successfully,
> etc.).
> 
> http://localhost:8080
> 
> Big problem resulted - now I cannot ping the gateway. Does 
> anyone know why
> and what I should do to fix it.
> 
> AT&T tech said to get tomcat out the registry.  
> 
> Is anyone aware of configuration settings that could be 
> changed to allow for
> both.
> 
> Or, worst case, how to uninstall what tomcat installed.

Tomcat doesn't actually install anything(I'm assuming that you got
the zip file from jakarta.apache.org).  What do you get when you
type 'ipconfig /all' at a command prompt?

What is your system configuration like?
OS
Any other webservers?
ver of Tomcat
etc...

---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
mailto:[EMAIL PROTECTED]

- Punisher of those who cannot spell dumb!

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




RE: Help with Cable Modem

2001-02-28 Thread Randy Layman


Tomcat in no way by itself will affect any of your network settings.
To uninstall it remove its files.  Tomcat also doesn't affect the registry,
unless you have integrated it with IIS (and you would know the changes to
the registry at that point).

Basically, the tech was looking for an easy way to get you off the
phone.  Use ipconfig to view your network settings and any tools that you
might have to configure your modem.  Also, you might try rebooting your
modem.  

If you have more questions, contact me off list and I'll try and
help you.

Randy


-Original Message-
From: Dave Parkin [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 28, 2001 12:52 PM
To: '[EMAIL PROTECTED]'
Subject: Help with Cable Modem


I have an RCA cable modem supporting AT&T high speed cable modem internet
service.

I installed tomcat.  Got examples running (started tomcat successfully,
etc.).

http://localhost:8080

Big problem resulted - now I cannot ping the gateway. Does anyone know why
and what I should do to fix it.

AT&T tech said to get tomcat out the registry.  

Is anyone aware of configuration settings that could be changed to allow for
both.

Or, worst case, how to uninstall what tomcat installed.

Regards,
David Parkin 

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

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




Help with Cable Modem

2001-02-28 Thread Dave Parkin

I have an RCA cable modem supporting AT&T high speed cable modem internet
service.

I installed tomcat.  Got examples running (started tomcat successfully,
etc.).

http://localhost:8080

Big problem resulted - now I cannot ping the gateway. Does anyone know why
and what I should do to fix it.

AT&T tech said to get tomcat out the registry.  

Is anyone aware of configuration settings that could be changed to allow for
both.

Or, worst case, how to uninstall what tomcat installed.

Regards,
David Parkin 

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




apache/tomcat with formbased security

2001-02-28 Thread John de la Garza

Does anyone have formbased security working with apache and tomcat?

I have formbased security working fine with tomcat in standalone, but when I
go through apache it doesn't recognize the post to j_security_check


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




Re: confused

2001-02-28 Thread Mark Balster

Do the examples work?


http://localhost:8080/examples/jsp ...


When you start TC, does it echo your webapp context?

- Original Message -
From: "Lori Edelen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "Lori Edelen" <[EMAIL PROTECTED]>
Sent: Wednesday, February 28, 2001 12:35 PM
Subject: Re: confused


> Okay, I did that but it is not finding the classes in the
/Web-inf/classes.
> What else do I have to do?
>
> Lori Edelen
> Web Application Developer
> Lattestone.com
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
>

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




Paths from inside the servlets

2001-02-28 Thread Spectron International, Inc.

I have a webapp in a directory called /bin. Servlets are in
http://localhost/bin/servlet/MyServlet. Documents are in
http://localhost/bin/image.gif. What do I have to do to access the documents
from my servlets without using the hostname? For example, if I have a
servlet that has the following tag:

I want it to use the image in http://localhost/bin/images/myimage.gif.
Right now it will look for the image in
http://localhost/bin/servlet/images/myimage.gif.
Or if I do the following from inside the servlet:

I want it to use the image in http://localhost/bin/myimage.gif.  Right now
it will look for the image in http://localhost/bin/servlet/myimage.gif.

Is there a way to do this, or do I have to do the whole path for the image?
I want to be able to move the whole webapp just by copying the directory to
a new server. Is this even possible?

Faw




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




Re: confused

2001-02-28 Thread Sam Newman

Does it find a normal html file in your web applications directory? If it
does then server.xml is ok - then it must be the web.xml in your apps
directory. It would help if we could see it

sam
- Original Message -
From: Lori Edelen <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 28, 2001 5:28 PM
Subject: Re: confused


>
>
> Okay, I did that but it is not finding the classes in the
/Web-inf/classes.
> What else do I have to do?
> Lori Edelen
> Web Application Developer
> Lattestone.com




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




Re: [Security Issue] Sessions are visible across multiple clients

2001-02-28 Thread William Barker

It has more to do with a bug in SimpleSessionStore.java.  It recycles the
session on create, so then the instance is re-used for the next new session.
I've patched it via:
*** SimpleSessionStore.java.origMon Feb 26 14:59:53 2001
--- SimpleSessionStore.java Wed Feb 28 09:36:40 2001
***
*** 426,432 
if (session == null) {
session = new ServerSession();
session.setManager( this );
-   recycled.put( session );
}

// XXX can return MessageBytes !!!
--- 426,431 

- Original Message -
From: "GOMEZ Henri" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, February 28, 2001 8:59 AM
Subject: RE: [Security Issue] Sessions are visible across multiple clients


> Probably partially resolved by the patch I forward previously.
> From M. Frey
>
> La prise de conscience de votre propre ignorance est un grand pas vers la
> connaissance.
> -- Benjamin Disraeli
>
>
> >-Original Message-
> >From: Amrhein, Thomas [mailto:[EMAIL PROTECTED]]
> >Sent: Wednesday, February 28, 2001 5:59 PM
> >To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> >Subject: [Security Issue] Sessions are visible across multiple clients
> >
> >
> >Hi all,
> >
> >one session can be visible on multiple clients!!
> >
> >THIS IS A BIG SECURITY PROBLEM!
> >
> >Someone opens his webbrowser and has the session of somebody else.
> >So critical data could be viewed without permission.
> >Somebody can act as somebody else.
> >
> >What's wrong with tomcat's session-handling?
> >
> >I wrote a web application which can reproduce this.
> >
> >I'm working with Tomcat 3.3m1 on WinNT4.
> >On 3.2 I have the same problems sometimes with our application
> >but it is not reproducable there.
> >
> >To reproduce this:
> >- put sessiontest.war in %TOMCAT_HOME%/webapps/
> >- start Tomcat
> >- open browser1 (Netscape 4.7 or IE5) on machine1 (close it
> >before if it's
> >already open)
> >- locate browser1 on http://yourtomcat/sessiontest/index.jsp
> >(a cookie will
> >be set)
> >- browser1: login with name for example 'Testuser1'
> >- browser1: show settings (The name is displayed)
> >- open browser2 on machine2 (close it before if it's already open)
> >- locate browser2 on http://yourtomcat/sessiontest/index.jsp
> >(a cookie will
> >be set)
> >
> >Browser2 now sees the same content like browser1 (logged in as
> >Testuser1).
> >Look for the sourcecode in the .war. All objects are session-bound.
> >Normally you should not be logged in.
> >Remember that you are on different machines! They should have different
> >cookies, different
> >sessions, different usernames.
> >Sometimes but not often, they have the same Session-ID (I can
> >not reproduce
> >this).
> >
> >Bug #723: sessions are not properly recycled
> >Perhaps my issue belongs to this.
> >
> >I've seen different bugs reported but not solved belonging to
> >session-handling.
> >#131,152,183,189,267,429,723,731
> >
> >Can somebody reproduce this behaviour somewhere else?
> >And can this behaviour also happen in Tomcat 3.2/3.2.1 (I
> >don't know the
> >code)?
> >
> >regards,
> >
> >Thomas
> >
> >PS: I'm new to tomcat-dev-mailinglist (two or three hours) to
> >stay tuned.
> >Perhaps it's already discussed and patched. Please inform me.
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
>


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




Re: [Security Issue] Sessions are visible across multiple clients

2001-02-28 Thread Alex Fernández

Hi Thomas! I'll try to answer from my limited knowledge (couple of months
reading the list):

"Amrhein, Thomas" wrote:

> By the way I'm a bit confused about the different
> tomcat trees (3.2/3.3/4.0).
> There are no more 3.2 nightly builds but 3.2.2beta-release...

Right now there are three branches:
- 3.2.2beta: that would be 3.2.1 + bug fixes (beta version).
- 3.3m1: first milestone release of 3.3 (not stable).
3.3 is 3.2.1 + refactoring, supports servlet spec 2.2 and JDK 1.X
- 4.0b1: active development, new servlet engine Catalina.
4.0 supports servlet spec 2.3 and needs JDK 1.2 (beta version).

The last stable release is Tomcat 3.2.1, there is active development (nightly
builds) for 3.3 and 4.0. New development should be redirected to Tomcat 4.0.

Un saludo,

Alex.



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




Re: confused

2001-02-28 Thread Lori Edelen

Okay, I did that but it is not finding the classes in the /Web-inf/classes.
What else do I have to do?

Lori Edelen
Web Application Developer
Lattestone.com



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




RE: confused (more details? if Yoav's solution didn't work)

2001-02-28 Thread Michael Wentzel

> Okay, I did that but it is not finding the classes in the 
> /Web-inf/classes.
> What else do I have to do?
> Lori Edelen
> Web Application Developer
> Lattestone.com


Without seeing your config, steps used to achieve problem,
and the exact error it's hard to say what the problem is.

---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
mailto:[EMAIL PROTECTED]

- Punisher of those who cannot spell dumb!

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




RE: confused

2001-02-28 Thread Morahg, Yoav

Make sure WEB-INF is all in caps -- it has to be.

-Yoav

-Original Message-
From: Lori Edelen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 28, 2001 12:28 PM
To: [EMAIL PROTECTED]
Subject: Re: confused




Okay, I did that but it is not finding the classes in the /Web-inf/classes.
What else do I have to do?
Lori Edelen
Web Application Developer
Lattestone.com



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

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




Re: confused

2001-02-28 Thread Lori Edelen



Okay, I did that but it is not finding the classes in the /Web-inf/classes.
What else do I have to do?
Lori Edelen
Web Application Developer
Lattestone.com



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




guidelines

2001-02-28 Thread Marot Laurent



I'm a new tomcat user. I' ve installed it on Win2K platform and I'm now
trying to implement it on Solaris.
where could i find guidelines for this.

thanks.

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




Re:confused

2001-02-28 Thread Samson, Lyndon [IT]

Arrrh The HTML email, please not the HTML email...


make a directory under webapps in the tomcat dir ( easiest just to copy an
existing dir ), your classes go in
/WEB-INF/classes, jar files in /WEB-INF/lib. HTML gifs etc in


You don't have to but you can change /WEB-INF/web.xml so that you have
entries of the form



yournewservlet


/yournewservletpattern




  
  yournewservlet
  
  
  yournewservletclass
  



the  is what sets up the reference

http://yourcomputerhostname:8080/yournewservletpattern

so that is runs yourservletclass

cheers




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




AW: [Security Issue] Sessions are visible across multiple clients

2001-02-28 Thread Amrhein, Thomas

I think it will be in the next nightly build? I'll try.

By the way I'm a bit confused about the different
tomcat trees (3.2/3.3/4.0).
There are no more 3.2 nightly builds but 3.2.2beta-release...


-Ursprüngliche Nachricht-
Von: GOMEZ Henri [mailto:[EMAIL PROTECTED]]
Gesendet am: Mittwoch, 28. Februar 2001 17:59
An: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Betreff: RE: [Security Issue] Sessions are visible across multiple
clients

Probably partially resolved by the patch I forward previously.
>From M. Frey

La prise de conscience de votre propre ignorance est un grand pas vers la
connaissance.
-- Benjamin Disraeli
 

>-Original Message-
>From: Amrhein, Thomas [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, February 28, 2001 5:59 PM
>To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
>Subject: [Security Issue] Sessions are visible across multiple clients
>
>
>Hi all,
>
>one session can be visible on multiple clients!!
>
>THIS IS A BIG SECURITY PROBLEM!
>
>Someone opens his webbrowser and has the session of somebody else.
>So critical data could be viewed without permission.
>Somebody can act as somebody else.
>
>What's wrong with tomcat's session-handling?
>
>I wrote a web application which can reproduce this.
>
>I'm working with Tomcat 3.3m1 on WinNT4. 
>On 3.2 I have the same problems sometimes with our application
>but it is not reproducable there.
>
>To reproduce this:
>- put sessiontest.war in %TOMCAT_HOME%/webapps/
>- start Tomcat
>- open browser1 (Netscape 4.7 or IE5) on machine1 (close it 
>before if it's
>already open)
>- locate browser1 on http://yourtomcat/sessiontest/index.jsp 
>(a cookie will
>be set)
>- browser1: login with name for example 'Testuser1'
>- browser1: show settings (The name is displayed)
>- open browser2 on machine2 (close it before if it's already open)
>- locate browser2 on http://yourtomcat/sessiontest/index.jsp 
>(a cookie will
>be set)
>
>Browser2 now sees the same content like browser1 (logged in as 
>Testuser1).
>Look for the sourcecode in the .war. All objects are session-bound.
>Normally you should not be logged in.
>Remember that you are on different machines! They should have different
>cookies, different
>sessions, different usernames.
>Sometimes but not often, they have the same Session-ID (I can 
>not reproduce
>this).
>
>Bug #723: sessions are not properly recycled
>Perhaps my issue belongs to this.
>
>I've seen different bugs reported but not solved belonging to
>session-handling.
>#131,152,183,189,267,429,723,731
>
>Can somebody reproduce this behaviour somewhere else?
>And can this behaviour also happen in Tomcat 3.2/3.2.1 (I 
>don't know the
>code)?
>
>regards,
>
>Thomas
>
>PS: I'm new to tomcat-dev-mailinglist (two or three hours) to 
>stay tuned.
>Perhaps it's already discussed and patched. Please inform me.
>
>

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

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




Re: confused

2001-02-28 Thread Sam Newman



Right, if you want your app in its own area, you'll 
need to edit the server.xml file found in the conf directory. There is a 
section for special webapps, with an example there - its fairly straightforward 
(look for the Context tag). Next, create a directory under webapps mirroring 
exmaples with your code in it - don't forget to edit the web.xml file here to 
declare your servlets. If in doubt, use webapps/examples, and add your own stuff 
in to get started. You don't have to create a WAR file to get started - that can 
be done later
 
sam

  - Original Message - 
  From: 
  Lori Edelen 
  
  To: [EMAIL PROTECTED] 
  Sent: Wednesday, February 28, 2001 5:01 
  PM
  Subject: confused
  
  I have an application that 
  I want to run under tomcat.  What files do I have to change and where do 
  I put the classes so that tomcat can find them?  
  Lori EdelenWeb 
  Application 
DeveloperLattestone.com


confused

2001-02-28 Thread Lori Edelen



I have an application that I 
want to run under tomcat.  What files do I have to change and where do I 
put the classes so that tomcat can find them?  
Lori EdelenWeb 
Application DeveloperLattestone.com


Import Issue

2001-02-28 Thread Huiyuan Ma

Hello,I'm quite new to Tomcat and Jsp. I wonder to
import a self-defined class,for
example,ServletUtilities,I put into <%@ page import
="CORE.*"%> but no success,and was told some attribute
value was empty. Do I need to edit other files like
server.xml or web.xml?
Thanks.

__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

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




RE: [Security Issue] Sessions are visible across multiple clients

2001-02-28 Thread GOMEZ Henri

Probably partially resolved by the patch I forward previously.
>From M. Frey

La prise de conscience de votre propre ignorance est un grand pas vers la
connaissance.
-- Benjamin Disraeli
 

>-Original Message-
>From: Amrhein, Thomas [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, February 28, 2001 5:59 PM
>To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
>Subject: [Security Issue] Sessions are visible across multiple clients
>
>
>Hi all,
>
>one session can be visible on multiple clients!!
>
>THIS IS A BIG SECURITY PROBLEM!
>
>Someone opens his webbrowser and has the session of somebody else.
>So critical data could be viewed without permission.
>Somebody can act as somebody else.
>
>What's wrong with tomcat's session-handling?
>
>I wrote a web application which can reproduce this.
>
>I'm working with Tomcat 3.3m1 on WinNT4. 
>On 3.2 I have the same problems sometimes with our application
>but it is not reproducable there.
>
>To reproduce this:
>- put sessiontest.war in %TOMCAT_HOME%/webapps/
>- start Tomcat
>- open browser1 (Netscape 4.7 or IE5) on machine1 (close it 
>before if it's
>already open)
>- locate browser1 on http://yourtomcat/sessiontest/index.jsp 
>(a cookie will
>be set)
>- browser1: login with name for example 'Testuser1'
>- browser1: show settings (The name is displayed)
>- open browser2 on machine2 (close it before if it's already open)
>- locate browser2 on http://yourtomcat/sessiontest/index.jsp 
>(a cookie will
>be set)
>
>Browser2 now sees the same content like browser1 (logged in as 
>Testuser1).
>Look for the sourcecode in the .war. All objects are session-bound.
>Normally you should not be logged in.
>Remember that you are on different machines! They should have different
>cookies, different
>sessions, different usernames.
>Sometimes but not often, they have the same Session-ID (I can 
>not reproduce
>this).
>
>Bug #723: sessions are not properly recycled
>Perhaps my issue belongs to this.
>
>I've seen different bugs reported but not solved belonging to
>session-handling.
>#131,152,183,189,267,429,723,731
>
>Can somebody reproduce this behaviour somewhere else?
>And can this behaviour also happen in Tomcat 3.2/3.2.1 (I 
>don't know the
>code)?
>
>regards,
>
>Thomas
>
>PS: I'm new to tomcat-dev-mailinglist (two or three hours) to 
>stay tuned.
>Perhaps it's already discussed and patched. Please inform me.
>
>

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




[Security Issue] Sessions are visible across multiple clients

2001-02-28 Thread Amrhein, Thomas

Hi all,

one session can be visible on multiple clients!!

THIS IS A BIG SECURITY PROBLEM!

Someone opens his webbrowser and has the session of somebody else.
So critical data could be viewed without permission.
Somebody can act as somebody else.

What's wrong with tomcat's session-handling?

I wrote a web application which can reproduce this.

I'm working with Tomcat 3.3m1 on WinNT4. 
On 3.2 I have the same problems sometimes with our application
but it is not reproducable there.

To reproduce this:
- put sessiontest.war in %TOMCAT_HOME%/webapps/
- start Tomcat
- open browser1 (Netscape 4.7 or IE5) on machine1 (close it before if it's
already open)
- locate browser1 on http://yourtomcat/sessiontest/index.jsp (a cookie will
be set)
- browser1: login with name for example 'Testuser1'
- browser1: show settings (The name is displayed)
- open browser2 on machine2 (close it before if it's already open)
- locate browser2 on http://yourtomcat/sessiontest/index.jsp (a cookie will
be set)

Browser2 now sees the same content like browser1 (logged in as Testuser1).
Look for the sourcecode in the .war. All objects are session-bound.
Normally you should not be logged in.
Remember that you are on different machines! They should have different
cookies, different
sessions, different usernames.
Sometimes but not often, they have the same Session-ID (I can not reproduce
this).

Bug #723: sessions are not properly recycled
Perhaps my issue belongs to this.

I've seen different bugs reported but not solved belonging to
session-handling.
#131,152,183,189,267,429,723,731

Can somebody reproduce this behaviour somewhere else?
And can this behaviour also happen in Tomcat 3.2/3.2.1 (I don't know the
code)?

regards,

Thomas

PS: I'm new to tomcat-dev-mailinglist (two or three hours) to stay tuned.
Perhaps it's already discussed and patched. Please inform me.


 sessiontest.war

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


Re: How to count creation of new session

2001-02-28 Thread Bo Xu

"Winkel, Matthias; 2854" wrote:

> Hi!
>
> I am looking for a possibilty to implement a counter, that is incremented
> whenever a new session is created in my web application.
>
> In other words:
> I need something that sends an event to my counter object, when a session is
> created. One possibilty is to send this event manually to the counter object
> on every jsp-page, but this is not flexible.
>
> Any ideas how this could be done? (f.e. by replacing the session creator
> with my own session creator - or something like that?)
>
> Regards
> Matthias Winkel
> [...]

Hi :-)   I am not sure, is the following  possible ?
  -  use HttpSessionBindingListener, in valueBound(...),
  send a message to your counter.
  - put the counter in ServletContext, and everytime when
 making a new Httpsession,  update this counter.


Bo
Feb.28, 2001






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




  1   2   >