JDBCRealm

2001-02-25 Thread Herchel Wojciech

Hi!
I've got the following problem - I want to dynamically display certain
information to a user, depending upon a role they've been granted (via JDBC
authorisation). how do i do that? getParameter("role") returns null.

vVolf

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




ssl on tomcat

2001-02-25 Thread sun

hi, there,
when I tried generate keystore for SSl, I got error:
# keytool -genkey -alias tomcat -keyalg RSA
Enter keystore password:  changeit
keytool error: Keystore was tampered with, or password was incorrect

how come to this?
thanks a lot.

rgds
sun

-Original Message-
From: sun <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Thursday, February 22, 2001 9:36 PM
Subject: need help,please, second time to post it.


>hi, there,
>when I start tomcat with apache, I got error below:
>
>[jk_connect.c (143)]: jk_open_socket, connect() failed errno = 145
>[jk_ajp13_worker.c (173)]: In jk_endpoint_t::connect_to_tomcat, failed
errno
>= 145
>[jk_ajp13_worker.c (584)]: Error connecting to the Tomcat process.
>
>how come to this?
>it happened after I changed ip address of my solaris.
>
>rgds
>sun
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, email: [EMAIL PROTECTED]
>


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




with Tomcat4.0

2001-02-25 Thread S Ramakrishnan

Environment:
  Tomcat 4.0 on NT4.0
  Browser: IE5.5

Problem:
  I am unable to get  to work. 
  In my web.xml I have
   
Quote
Quote

  quotesFile
  quotes.txt

  

The ServletContext in init() fetches null for
init-param "quotesFile". (I've tried restrating catalina).

Could someone please give me an example of
storing and using resources (say, Files) in my
web application? I am not sure if I should put the file
in thge root of the web app or in the classes directory.

Thanks,

Rk
x77309


---
S Ramakrishnan
"... from the sunny shores of California ..."
[EMAIL PROTECTED], (408) 616.3100


Get your small business started at Lycos Small Business at 
http://www.lycos.com/business/mail.html

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




Re: website image viewer

2001-02-25 Thread Winifred Sanchez

I suggest you use a bean for this. In the bean, read the jpeg files in the directory 
using a java.io.File method and then save them into a File array. Then you can go 
through the list by accessing each by 
it's array index. You not only can go to the previous or next image, but you could 
also directly jump to an image.

On Sun, 25 Feb 2001 22:11:37  
 Ryan wrote:
>I want to make an image viewer for my web page. All the viewer will do is read in 
>jpegs from a directory and then output to a page that will look like
>
>
>   [image]
><< previous image   | next image >>
>
>where when you click on the link to the previous image. the page will reload with the 
>previous image loaded.
>
>Can anyone please give me suggestions as to the best way of doing this?
>
>-ryu
>


Get your small business started at Lycos Small Business at 
http://www.lycos.com/business/mail.html

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




URL Rewriting Problem

2001-02-25 Thread Boni

Hi all, 

I was using Tomcat 3.1 with Apache 1.3.12 till recently. Now I changed
my tomcat to 
Tomcat 3.2.1 and suddenly I started seeing jsessionid=* stuff in all my
url's. 

I have coded my JSP's to support with no cookies as well (ie. urlEncoded
all the links), 
but the thing is even tho my browser has cookies enabled tomcat seems to
be encoding 
the urls'. This is the first problem. 

The second problem is that the Apache webserver is not redirecting the
requests with 
the url having the jsessionid=* stuff. I have tried putting the URL
rewriting thing
given in the FAQ but even after putting that it didn't work. 

For you information i am giving you the thing that i put in the
httpd.conf file for URL rewriting. 



  RewriteEngine On
  RewriteRule  ^(boats/.*;jsessionid=.*)$  $1  [T=jserv-servlet]



Any help would be greatly appreciated. 

thanks 
boni

p.s I have searched all the archives and the FAQ without success.

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




disable file browser

2001-02-25 Thread unplug

Hi all,

  I am using tomcat as a stand alone web server.  I would like to 
disable tomcat to display the file when this is no html file on the
directory (i.e., just works like as an apache).  Could anyone tell
me how can I config it??

Rgds,
unplug

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




Re: JSP code wont run

2001-02-25 Thread Ryan



i had to shut down tomcat and apache and restart 
them both. annoying aint it?
 
-ryu
 
 

  - Original Message - 
  From: 
  Matt Reine 
  To: [EMAIL PROTECTED] 
  
  Sent: Thursday, February 25, 1999 9:28 
  AM
  Subject: JSP code wont run
  
  Hello All, 
   
  I'm a newbie and would appreciate help... I've 
  developed a few jsp pages and it seems to still caache the old servlets that 
  Ive run before and wont update with the new changes even when I saved it to 
  the hard drive and overwrote the old .jsp file.
   
  I think it's a caching issue... am I right? And 
  how do I fix it? Also, I did the shutdown.bat and startup.bat files to restart 
  tomcat with no effect... Even when I did the shutdown.bat I could still access 
  the program on localhost:8080/matt.jsp
   
  So I dont think shutdown is working right 
  either... Thanks all!
   
  -Matt
   
  [EMAIL PROTECTED]


website image viewer

2001-02-25 Thread Ryan



I want to make an image viewer for my web page. All 
the viewer will do is read in jpegs from a directory and then output to a page 
that will look like
 
 
   
[image]
<< previous image   
| next image >>
 
where when you click on the link to the previous 
image. the page will reload with the previous image loaded.
 
Can anyone please give me suggestions as to the 
best way of doing this?
 
-ryu


JSP/Tomcat Training

2001-02-25 Thread Arafat Mohamed

Didn't know where else to look for this so here goes...

Anyone know of any training/certification classes in JSP/Servlets (w.
Tomcat)? I found a few using JRun.

Also, preferably in the Atlanta area...

Thanks,
Arafat Mohamed


_
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: Authentication to LDAP

2001-02-25 Thread Falcon cheetah
 Well,  I extend SimpleRealm because I did not see securityCheck anywhere in the tomcat tree, and I assumed it was modified. And it works for me :)
What is JAAS? And I am not sure if writing and intercepter qualifies as a project. 
I guess what we need to do is to get the wrox code to work for us and then modify it to do more general auth with ldap. I saw that there is a huge amount of bad coding in that wrox class and I am waiting to see it working so I would do a whole rewrite.
I guess if you want us to launch a project for this we have to start putting the word on the tomcat-dev, rather than tomcat-users, someone would give us the heads on there.
 
Regards.
Ahmed.
  Martin Smith <[EMAIL PROTECTED]> wrote: 
OK, I've read over ldapAuthCheck.java (by Mark Wilcox, apparently.) Ipretty well understand everything there, except I have a blank spot inknowledge of the Tomcat architecture. Which means I don't understandwhy you had to extend simpleRealm instead of securityCheck.Obviously, neither this class nor Tomcat implements JAAS. I'm assumingthat's because they were built before JAAS was defined. They're alsomuch simpler than the total pluggable-authentication-module frameworkimplemented by JAAS. That's cool, since I don't need all that stuffanyhow. It's nice that the user name and password are just passed asstrings in the call to checkPassword(), for example.So--What needs doing? I've never worked on a project so I don't know therules.(The only thing I know I'd like to change is to add flexibility to usethe "mail" attribute as the userID instead of the "UID" attribute.)MartinFalcon cheetah wrote:> Martin,>> There is a good material about LDAP with Tomcat from Wrox's> Professional JSP. There are two chapters that talk about this, and on> chapter 15 they write a tomcat interceptor to do this task. I am> currently trying to squeez sometime to test that. If you want to> download the source code from their site and take a look at it.>> I know they have few issues with their interceptor. For example I had> to make the class extend SimpleRealm instead of CheckSecurity.>> If you want to play with it and we can cooporate on expanding this> code or put it in a seperate project if you want. If not I am glad to> point out this great book to you and everyone else. Ahmed.>> Martin Smith <[EMAIL PROTECTED]>wrote:>> I have been patiently lurking and waiting to see some news> on the> existence of a way to do Servlet container (ie Tomcat)> authentication> against an LDAP source of security info.>> I even posted an RFP at one of these freelancer sites> (ants.com) to have> one built. No credible responses.>> Limited though I am at programming java (or anything), I'm> considering> trying to build one myself. But I thought I'd ask one last> time: is> there a JNDI or LDAP Interceptor in the works anywhere?>> If not, any advice on the scope of the project? Do I just> get the> JDBCRealm source and analogize? (Sure hope we don't need> threads! And> callbacks sound hard, too.)>> TIA,>> martin -> --->> To unsubscribe, e-mail:> [EMAIL PROTECTED]> For additional commands, email:> [EMAIL PROTECTED]>>> ---> Do You Yahoo!?> Yahoo! Auctions - Buy the things you want at great prices!-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, email: [EMAIL PROTECTED]Do You Yahoo!?
Yahoo! Mail Personal Address - 
Get email at your own domain with Yahoo! Mail.

IIS and Tomcat (3.2.1)

2001-02-25 Thread Tin Ngoc Doan


I installed Tomcat and everything seems to work great.  Then I installed IIS Isapi, 
all examples seem to run great.

But I went ahead to create my own TEST.JSP under .\webapps\ROOT\

I can load it by http://localhost:8080/test.jsp but http://localhost/test.jsp does not 
work.
Doesn't IIS suppose to route all JSP to Tomcat? (i tried using machine name as well).

Any suggestion?

Thanks,
Tin Doan

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




use of tag in the apache/tomcat server

2001-02-25 Thread KAPIL SHUKLA


i have benn given the task of migrating a site(developed on the JAVA WEB
SERVER)to apache tomcat.THis site uses< servlet> tag extensively.But pages 
having servlet tag do not execute properly.
 any help
kapil


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




tomcat doc root

2001-02-25 Thread sun

hi, there,
how can I change tomcat:8080 default doc root to my own page?

thanks.

rgds
sun



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




™local_check_header

2001-02-25 Thread KAPIL SHUKLA

i am sending this mail in response to cofirmation.



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




RE: Problems with gabled mod_jk

2001-02-25 Thread Jones, Stephen

I apologize for not seeing your earlier post (Wed, 21st) regarding these
binaries being available-- thank you, Henri.

It is still very foggy to me what EAPI is-- some mod_ssl API extensions to
Apache? My best internet and e-mail searching skills are providing me only
with clues...

I would love to see this explained in mod_jk-howto.html or in a separate
building FAQ, as you suggested.

Steve

> -Original Message-
> From: GOMEZ Henri [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, February 24, 2001 7:41 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Problems with gabled mod_jk
> 
> 
> >I think the problem is that the distributed binary just does 
> >not work on
> >Linux! This is extremely frustrating and it means (to me) that 
> >the Tomcat
> >3.2.1 binary distribution does not work on Linux! This is just 
> >another bug
> >that would take 5 minutes to fix...
> 
> All the Linux binaries for tomcat where built by me on
> a Redhat Linux 6.2 in i386 standard mode.
> 
> I RECALL :
> 
> http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.1
> /bin/linux/i38
> 6/(mod_jk/jserv)
> http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.3-m
> 1/bin/linux/i3
> 86/   (mod_jk/jserv)
> http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4
> .0-b1/linux/i3
> 86/   (mod_webapp)
> 
> The binaries works on more than 10 servers here...
> 
> >Can't somebody just recompile it and commit it!?!?!?
> >
> >Steve
> >
> >> -Original Message-
> >> From: Adam Fowler [mailto:[EMAIL PROTECTED]]
> >> Sent: Friday, February 23, 2001 10:49 AM
> >> To: [EMAIL PROTECTED]
> >> Subject: RE: Problems with gabled mod_jk
> >> 
> >> 
> >> Hi,
> >> 
> >> It's EEAASSYY...kind of. *memories of 5 days of
> >> reading/e-mailing*
> >> 
> >> You need to recompile it else it'll never work! Have a look 
> >> at my exhaustive
> >> howto for mod_jk at http://willow.cc.edu/docs/adminguide . 
> >> You can find the
> >> source from there too.
> >> 
> >> A few of us are working on getting RPM's made for Redhat(done)
> >> Mandrake(gimme time!) and SUSE(anyone?) ao it'll be really 
> easy soon.
> >> 
> >> Redhat RPMs can be found at
> >> 
> http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.1/rpms/
> >> 
> >> Hope this works.
> >> 
> >> 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: Peter Andersén [mailto:[EMAIL PROTECTED]]
> >> Sent: Friday, February 23, 2001 8:11 AM
> >> To: [EMAIL PROTECTED]
> >> Subject: Re: Problems with gabled mod_jk
> >> 
> >> 
> >> Thanks
> >> But im  not using the mod_jk that ships with rpm, i have 
> >> downloaded the
> >> precompiled version that exists on jakartas homepage.
> >> But do you think this is a version that is compiled for RPM or?
> >> I could compile it , but im not that keen to spend another 
> 4 hours to
> >> compile this and end up with the same results.
> >> Since im pretty new to this evry step takes loong time to 
> >> conclude.
> >> 
> >> Regards
> >> Peter A
> >> - Original Message -
> >> From: "John Towell" <[EMAIL PROTECTED]>
> >> To: <[EMAIL PROTECTED]>
> >> Sent: Friday, February 23, 2001 3:02 PM
> >> Subject: RE: Problems with gabled mod_jk
> >> 
> >> 
> >> This one should be on an FAQ somewhere.  I experienced the 
> >> same message.  It
> >> resulted from using a mod_jk.so that was packed in an RPM.  
> >> The solution was
> >> to get the source from the tomcat site and build a new mod_jk.so by
> >> following the directions in the mod_jk howto that comes with tomcat
> >> documents. Good luck!
> >> 
> >> 
> >> 
> >> -Original Message-
> >> From: Peter Andersén
> >> To: [EMAIL PROTECTED]
> >> Sent: 2/23/01 8:03 AM
> >> Subject: Problems with gabled mod_jk
> >> 
> >> Hi have installed and tested with both apache 1.3.17 and 1.3.14 and
> >> 1.3.12 same result.
> >> 
> >> I have compiled my apache to support DSO.
> >> ./configure --prefix=/usr/local/apache --enable-module=so
> >> i have checked with httpd -l and seen that the dso support 
> is their.
> >> 
> >> But when i try to execute the mod_jk.conf-auto that tomcat 
> >> creates i get
> >> an error on the LoadModule jk_module libexec/mod_jk.so
> >> I have used the precompiled version form tomcats homepage.
> >> The error is saying that this module is garbeld.
> >> complete error messages API module structure 'jk_module' in file
> >> /usr/local/apache/libexec/mod_jk.so is garbled - perhaps this 
> >> is not an
> >> apache module DSO.
> >> Any out there having suggestion what to do, im pretty new to 
> >> linux so it
> >> should not be to advanced and if you suggest any advance 
> >step it would
> >> be extremly helpful to get a step by step instruction.

Locad Balancing w/ IIS and Tomcat

2001-02-25 Thread Arafat Mohamed

Hi,

I tried to search the archives for load balancing with tomcat. All the
results I found were about worker load balancing.

For my work, I'm supposed to research on how I can actually load balance
between different machines. I just need a pointer on where to get started...

Any help will be greatly appreciated.

Sincerely,
Arafat Mohamed


_
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: download file that is stored in a database

2001-02-25 Thread Steve Ruby



Mon-Quen Huang wrote:
> 
> I have a file stored in the backend Oracle database
> and has JSP communicating with the database in JDBC.
> I would like to allow user to click on a hyperlink and
> then download the file which is stored in the
> database.
> Is this possible?  If so, what are the steps to
> implement it?
> 
> Thanks,
> 
> MH
> 

do a getBinaryStream(col Index) and return that to
response.getOutputStream via your choice of buffering
scheme.


make sure you set the mime type for the response depending
on the type of file you are returning (before you return stuff).

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




download file that is stored in a database

2001-02-25 Thread Mon-Quen Huang

I have a file stored in the backend Oracle database
and has JSP communicating with the database in JDBC. 
I would like to allow user to click on a hyperlink and
then download the file which is stored in the
database.
Is this possible?  If so, what are the steps to
implement it?

Thanks,

MH

__
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: tomcat3.2 and tomcat 4

2001-02-25 Thread Craig R. McClanahan

Carlos de la Flor wrote:

> In the tomcat 3.2 i put a directory , 9in the tomcat home. The directory
> name is classes and in this directory i put my general all classes for all
> virtual domains.
> In the tomcat 4b1 i try to make the same thing but the classes aren't
> visibles (there aren't found)
> how can i make the same thing in the tomcat 4?
> thank
> Carlos
>

Currently, you need to combine your classes into a JAR file and place
this
file in the "lib" directory to accomplish this.

Craig McClanahan

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




Re: How to reload a web app?

2001-02-25 Thread Craig R. McClanahan

Alex Colic wrote:

> Hi,
>
> I am creating an admin servlet that will reload a web app. What command do you send 
>Tomcat to do
> that?
>

Depending on which version of Tomcat you are talking about, you might
want to use the facilities
that already exist -- the "admin" application in Tomcat 3.x, or the
"manager" application in Tomcat
4.0.  Even if you want to build your own admin app, you can use the
source code of these apps as the
starting point.

>
> Thanks for any help.
>
> Alex
>

Craig McClanahan

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




Re: tc4: catalina.home vs "catalina.install"

2001-02-25 Thread Craig R. McClanahan

Endre Stølsvik wrote:

> Hi!
>
> It kind of seems to me that there is some "inconsistency" between the
> catalina.home and where you actually want tomcat4 to _run_.
>
> I have a bunch of "installations" for my gang of developers, and each
> developer have a complete env. to develop in.
>
> But how do I configure, "say to", catalina that "this is where you're
> installed, and thus where you can find your code and stuff", and "this is
> where you're supposed to run, this is your _home_"..
>

Right now, Tomcat 4.0 does not have a clear distinction between these
two
concepts -- the best way to deal with multiple developers would be to
have
multiple installations of Tomcat, each with their own "catalina.home".

>
> Now, when I start up tomcat4, it starts to configure a lot of webapps
> coming from the installation area's "webapps" folder, and tell me that
> work directories are not existing, cannot be created or whatever (the
> installation is made as root, I run it as me).
>
> Typical error line if I try to set catalina.home to where I want it to be
> run from:
>
> Directory /devel/endre/active/SERVER/tomcat4.0-home/common/lib does not exist
>
> --
> Mvh,
> Endre
>

Craig McClanahan

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




Re: tc4: "No processor available, rejecting this connection"

2001-02-25 Thread Craig R. McClanahan

Endre Stølsvik wrote:

> My config is like this:
>
> port="##HTTPPORT##" minProcessors="1" maxProcessors="3"
>acceptCount="100" debug="99" connectionTimeout="6"/>
>
> This gives me lots of left out small gifs, maybe a leftout stylesheet, or
> the whole document.. or whatever.
>
> I realize that there's not many processors configured here, but why does
> it start to reject connections? It should stack them in a queue, shouldn't
> it? What am I doing wrong?
>

The basic function of the HttpConnector class is to perform the
following loop over and over again:
* Wait for an incoming socket connection
* Assign it to an available processor

When you define maxProcessors as 3, you are saying that you want Tomcat
to handle up to three simultaneous connections to
remote clients.  In an HTTP/1.0 environment, that many processors would
be able to handle a large number of clients if the
request rate was low, because each request is an individual socket
connection.

However, in an HTTP/1.1 environment (if your client supports it), Tomcat
supports persistent connections.  In such a case,
the first three clients will grab all the available processors, and
maintain those connections for later use.  For clients
that perform large numbers of requests, this is a huge win -- for
clients that are grabbing occasional images, it is rather
wasteful.  You might consider using the HTTP/1.0 connector for this type
of use.  Simply change the class name to

org.apache.catalina.connector.http10.HttpConnector

>
> 2001-02-25 12:49:21 HttpProcessor[10080][2]  An incoming request is being assigned
> 2001-02-25 12:49:21 HttpProcessor[10080][2]   The incoming request has been awaited
> 2001-02-25 12:49:21 HttpConnector[10080] No processor available, rejecting this 
>connection
> 2001-02-25 12:49:21 HttpProcessor[10080][2]   parseConnection:  
>address=endresin.intra.coretrek.com/10.0.0.14, port=10080
>
> Does the HttpConnector have any relation to the three other lines here,
> HttpProcessor? Could anyone just give me the briefest explanation of
> what's going on in theese four lines?
>

They are related (because they are all associated with the connector you
have listening on port 10080).  a request was handed
off to processor #2 -- but while it was being processed, another request
also came in.  Because there were no more available
processors, that one was refused -- but the handling of the previously
allocated request (to processor #2) continues anyway.

>
> Thanks a lot! Looking forward to both the 3.3 and 4.0! Especially the
> promised proper reloading of webapps in 4!
>

In 4.0, just put your classes in WEB-INF/classes and automatic reloading
will recognize changes to them.  You can also use
the management app to request a reload of *any* webapp -- whether or not
it has been configured for auto reload.

>
> --
> Mvh,
> Endre
>

Craig McClanahan

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




RE: reloading of changed servlets fails

2001-02-25 Thread Adam Fowler

Hi,

Did you guys try using c:\blah\blah instead of the unix '/' file seperator?

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: Ashant Chalasani [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 25, 2001 12:28 PM
To: [EMAIL PROTECTED]
Subject: Re: reloading of changed servlets fails


Hi,

This happens with me too, could never figure out for about a month why. But
the problem gets solved when I restart Tomcat service.

Is this a bug?

AC.

>From: "C _" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: reloading of changed servlets fails
>Date: Sun, 25 Feb 2001 18:09:09 +0100
>
>hi all,
>
>i'm using tomcat on win98 in standalone mode. I defined a context like
> docBase="C:/mydata/code/JAVA/foo/servlets"
> crossContext="false"
> debug="0"
> reloadable="true" >
>
>everytime i recompile a servlet's classfile in
>directory foo\servlets\Web-inf\classes
>i get a error like
>"java.lang.IllegalStateException: Can't happen - classname is null, who
>added this ?
>   at
>org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java:261)"
>
>anybody knows?
>
>thanx - carl
>
>
>_
>Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, email: [EMAIL PROTECTED]
>

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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: webapps/ROOT/index.html

2001-02-25 Thread Adam Fowler

Hi,

You could always try replacing the directory with a symbolic link to your
directory as a workaround. Make sure no files are deleted, though. 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: Batara Kesuma [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 25, 2001 2:44 PM
To: [EMAIL PROTECTED]
Subject: webapps/ROOT/index.html


Hi,

I just installed Tomcat 3.21. I installed it to the directory, say:
/home/bk/tomcat

And then I set:
TOMCAT_HOME=/home/bk/tomcat
JAVA_HOME=/usr/java/jdk1.3

Then I run tomcat with:
/home/bk/tomcat/bin/startup.sh

I can go to:
http://localhost:8080/index.html

And seems like it is the default page from Tomcat.

My question is, the main page is pointing to /home/bk/tomcat/webapps/ROOT.
I wonder how can you change this? I have edited server.xml and web.xml,
but there was no 'webapps/ROOT' word there. Please help, and thank you so
much :)

-bk-

-
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: Problem with Tomcat - Red Hat 7

2001-02-25 Thread Adam Fowler

Hi,

Which/who's JDK are you using? Sun/IBM/Blackdown??? And is it Java 2 SDK
v.1.3???

Also, If you installed from Henri's RPM's then they assume IBM's JDK.

I'm currently working on a bit of c that will do a locate for the JDK on an
RPM install so it _always_ get set right, but it'll take a while (pipe's n
stuff)

You can't use the java files that come with Redhat(or Mandrake) you'll need
Sun's JDK 1.3 or IBM's.

Make sure these are installed then check all classpaths to see they are
finding the right one.

Also, if upgrading then make sure the config files are accurate for the new
release. You may want to make backups of your current config files then
overwrite the originals with the 4.0 files. If the default 4.0 setup works
then add your extra info from your 3.2 files.

Good luck.

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: Nauman Rafique [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 25, 2001 2:16 PM
To: [EMAIL PROTECTED]
Subject: Re: Problem with Tomcat - Red Hat 7


I am having the same problem but here the problem is with jdk( not with
tomcat)
Its giving segmentation error...
nebody having any idea???

Thank you
- Original Message -
From: "niv the tool" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, February 25, 2001 8:45 PM
Subject: RE: Problem with Tomcat - Red Hat 7


> i also have prb. running tomcat 4 on redhat 7 i get these error
> ( BTW tomcat 3.2 works fine )
>
> Exception in thread "main" java.lang.IllegalArgumentException:
> addRepositoryInternal: java.lang.NullPointerException
> at
>
org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(Standar
> dClassLoader.java:1073)
> at
>
org.apache.catalina.loader.StandardClassLoader.(StandardClassLoader.ja
> va:166)
> at
>
org.apache.catalina.startup.Bootstrap.createSharedLoader(Bootstrap.java:280)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:106)
> Exception in thread "main" java.lang.IllegalArgumentException:
> addRepositoryInternal: java.lang.NullPointerException
> at
>
org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(Standar
> dClassLoader.java:1073)
> at
>
org.apache.catalina.loader.StandardClassLoader.(StandardClassLoader.ja
> va:166)
> at
>
org.apache.catalina.startup.Bootstrap.createSharedLoader(Bootstrap.java:280)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:106)
> Exception in thread "main" java.lang.IllegalArgumentException:
> addRepositoryInternal: java.lang.NullPointerException
> at
>
org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(Standar
> dClassLoader.java:1073)
> at
>
org.apache.catalina.loader.StandardClassLoader.(StandardClassLoader.ja
> va:166)
> at
>
org.apache.catalina.startup.Bootstrap.createSharedLoader(Bootstrap.java:280)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:106)
> Exception in thread "main" java.lang.IllegalArgumentException:
> addRepositoryInternal: java.lang.NullPointerException
> at
>
org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(Standar
> dClassLoader.java:1073)
> at
>
org.apache.catalina.loader.StandardClassLoader.(StandardClassLoader.ja
> va:166)
> at
>
org.apache.catalina.startup.Bootstrap.createSharedLoader(Bootstrap.java:280)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:106)
>
> any idea>
>
>
> -
> 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: tc4: catalina.home vs "catalina.install"

2001-02-25 Thread Jeff White

I've run into the exact same problem. I'd like to keep my tomcat
installations separate and independent of my runtime
environments. Here's what I did as a workaround: I have my own
catalina startup script that runs org.apache.catalina.startup.Catalina
instead of Bootstrap. In your script you'll need to explicitly add
many of the catalina jars to your system classpath. It seems to be
working, but it removes some of the catalina semantics found in
Bootstrap. So I think a more permanent change should happen. As you
suggest, there should be a distinction between the "install" directory
(where the tomcat jars are) and the "run" directory, under which
contains conf/, logs/, and webapps/.

jeff

On Sun, Feb 25, 2001 at 01:05:16PM +0100, Endre Stølsvik wrote:
> Hi!
> 
> It kind of seems to me that there is some "inconsistency" between the
> catalina.home and where you actually want tomcat4 to _run_.
> 
> I have a bunch of "installations" for my gang of developers, and each
> developer have a complete env. to develop in.
> 
> But how do I configure, "say to", catalina that "this is where you're
> installed, and thus where you can find your code and stuff", and "this is
> where you're supposed to run, this is your _home_"..
> 
> Now, when I start up tomcat4, it starts to configure a lot of webapps
> coming from the installation area's "webapps" folder, and tell me that
> work directories are not existing, cannot be created or whatever (the
> installation is made as root, I run it as me).
> 
> Typical error line if I try to set catalina.home to where I want it to be
> run from:
> 
> Directory /devel/endre/active/SERVER/tomcat4.0-home/common/lib does not exist
> 
> 
> -- 
> Mvh,
> Endre
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 

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




tomcat3.2 and tomcat 4

2001-02-25 Thread Carlos de la Flor

In the tomcat 3.2 i put a directory , 9in the tomcat home. The directory
name is classes and in this directory i put my general all classes for all
virtual domains.
In the tomcat 4b1 i try to make the same thing but the classes aren't
visibles (there aren't found)
how can i make the same thing in the tomcat 4?
thank
Carlos


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




webapps/ROOT/index.html

2001-02-25 Thread Batara Kesuma

Hi,

I just installed Tomcat 3.21. I installed it to the directory, say:
/home/bk/tomcat

And then I set:
TOMCAT_HOME=/home/bk/tomcat
JAVA_HOME=/usr/java/jdk1.3

Then I run tomcat with:
/home/bk/tomcat/bin/startup.sh

I can go to:
http://localhost:8080/index.html

And seems like it is the default page from Tomcat. 

My question is, the main page is pointing to /home/bk/tomcat/webapps/ROOT.
I wonder how can you change this? I have edited server.xml and web.xml,
but there was no 'webapps/ROOT' word there. Please help, and thank you so
much :)

-bk-

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




How to reload a web app?

2001-02-25 Thread Alex Colic

Hi,

I am creating an admin servlet that will reload a web app. What command do you send 
Tomcat to do
that? 

Thanks for any help.

Alex

=
Regards

Alex Colic, HBA, B. Ed
PopWare Inc. "Driving down the cost of conversions"
E-Mail: [EMAIL PROTECTED]
Tel: 1-905-777-8171 ext. 104
Fax: 1-905-777-0132

__
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: Problem with Tomcat - Red Hat 7

2001-02-25 Thread Nauman Rafique

I am having the same problem but here the problem is with jdk( not with
tomcat)
Its giving segmentation error...
nebody having any idea???

Thank you
- Original Message -
From: "niv the tool" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, February 25, 2001 8:45 PM
Subject: RE: Problem with Tomcat - Red Hat 7


> i also have prb. running tomcat 4 on redhat 7 i get these error
> ( BTW tomcat 3.2 works fine )
>
> Exception in thread "main" java.lang.IllegalArgumentException:
> addRepositoryInternal: java.lang.NullPointerException
> at
>
org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(Standar
> dClassLoader.java:1073)
> at
>
org.apache.catalina.loader.StandardClassLoader.(StandardClassLoader.ja
> va:166)
> at
>
org.apache.catalina.startup.Bootstrap.createSharedLoader(Bootstrap.java:280)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:106)
> Exception in thread "main" java.lang.IllegalArgumentException:
> addRepositoryInternal: java.lang.NullPointerException
> at
>
org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(Standar
> dClassLoader.java:1073)
> at
>
org.apache.catalina.loader.StandardClassLoader.(StandardClassLoader.ja
> va:166)
> at
>
org.apache.catalina.startup.Bootstrap.createSharedLoader(Bootstrap.java:280)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:106)
> Exception in thread "main" java.lang.IllegalArgumentException:
> addRepositoryInternal: java.lang.NullPointerException
> at
>
org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(Standar
> dClassLoader.java:1073)
> at
>
org.apache.catalina.loader.StandardClassLoader.(StandardClassLoader.ja
> va:166)
> at
>
org.apache.catalina.startup.Bootstrap.createSharedLoader(Bootstrap.java:280)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:106)
> Exception in thread "main" java.lang.IllegalArgumentException:
> addRepositoryInternal: java.lang.NullPointerException
> at
>
org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(Standar
> dClassLoader.java:1073)
> at
>
org.apache.catalina.loader.StandardClassLoader.(StandardClassLoader.ja
> va:166)
> at
>
org.apache.catalina.startup.Bootstrap.createSharedLoader(Bootstrap.java:280)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:106)
>
> any idea>
>
>
> -
> 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: Macintosh and Java

2001-02-25 Thread Angelique Gulermovich Epstein

Stephen,

I haven't succeeded in getting the JSP examples that come with Tomcat
working on the Mac, but you will probably find
http://www.rainwatersoft.com/java4u/tomcat_on_macintosh/ helpful.

Good luck!  (And please keep us posted.)

Angel

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




www authentication FYI

2001-02-25 Thread Joe Laffey

This is an FYI for people devloping servlets/JSP for use under Tomcat and
JRun. Tomcat works fine when using the Sun recommended way of setting
www-authenticate headers using setHEader followed by sendError with an
UNAUTHORIZED code. JRun, on the other hand (sorry, don't know the version,
but it is running Servlet API 2.1) need you to call setHeader followed by
setStatus(int) with the UNAUTHORIZED code (401). If you call sendError
jRun will not send the www-authenticate header and you will not be
prompted for a password in IE. Netscape will prompt you for a password for
"unknown" instead of for the Realm specified in the header (because the
header is not sent).

I am sending this because I figure a lot of people are doing devlopment
under Tomcat, but their servlets may be deployed using other servlet
containers...


Joe Laffey
LAFFEY Computer Imaging
St. Louis, MO
-


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




Re: reloading of changed servlets fails

2001-02-25 Thread Ashant Chalasani

Hi,

This happens with me too, could never figure out for about a month why. But 
the problem gets solved when I restart Tomcat service.

Is this a bug?

AC.

>From: "C _" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: reloading of changed servlets fails
>Date: Sun, 25 Feb 2001 18:09:09 +0100
>
>hi all,
>
>i'm using tomcat on win98 in standalone mode. I defined a context like
> docBase="C:/mydata/code/JAVA/foo/servlets"
> crossContext="false"
> debug="0"
> reloadable="true" >
>
>everytime i recompile a servlet's classfile in
>directory foo\servlets\Web-inf\classes
>i get a error like
>"java.lang.IllegalStateException: Can't happen - classname is null, who
>added this ?
>   at
>org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java:261)"
>
>anybody knows?
>
>thanx - carl
>
>
>_
>Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, email: [EMAIL PROTECTED]
>

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


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




Re: Macintosh and Java

2001-02-25 Thread Steve Ruby



You should be able to use IE or netscape, this is server side java
so it doesn't matter if your browser supports it or not.

Did you try the servlet examples?  if MRJ is just a runtime then there
is no compiler in it and your computer won't compile the JSP pages, try
the servlets. they are already compiled. You may need to compile the JSP
pages elsewhere. or find a compiler (JDK).

S Lafredo wrote:
> 
> I tried that and it did not work? I was getting very strange error
> messages from IE.
> 
> Not wanting to give up I quit Tomcat and started it up again while IE
> was running (shouldn't make a difference :) and now I get the Tomcat
> page.
> 
> When I run the sample JSPs I am throwing exceptions all over the place
> but at least I am running.
> 
> Thanks!
> 
> Stephen
> 
> On 2/25/01 at 5:55 PM, Stefán F. Stefánsson <[EMAIL PROTECTED]>
> wrote:
> 
> : can you give the exact string you're typing in your browser?
> :
> : here's what you should type: http://localhost:8080/
> :
> : the :8080 tells the browser to communicate on port 8080 instead of the
> : default http port (which is 80).  You can also open the server.xml
> : file in the /config directory and edit the 
> : tag.  It should have a parameter name=port value=8080.  You would have
> : to change that to 80 so that the address http://localhost/ would work.
> :
> : Hope this helps you.
> 
> -
> 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: Macintosh and Java

2001-02-25 Thread Mel Martinez


--- S Lafredo <[EMAIL PROTECTED]> wrote:
> 1. I am running MacOS 9.x, MRJ 2.2.4 and downloaded
> jakarta-tomcat-3.2.1
> I clicked on the Tomcat Start and a Java console
> opens and displays
> 
> 2001-02-25 12:40:09 - PoolTcpConnector: Starting
> HttpConnectionHandler
> on 8080

> So it looks like it is running correctly?
> 
> I then run IE 5 (Netscape does not support MRJ?) and
> type localhost.
> Nada?

By default, standalone Tomcat listens to port 8080. 
Try:  http://localhost:8080/ instead.  Alternatively,
edit the ..:tomcat:conf:server.xml file to change the
port.

Tomcat should be able to run fine with MacOS 9
and MRJ 2.2.4, but may occasionally encounter a glitch
with file separator.  I've spotted more than one case
in the code already where folks have improperly
assumed they can use "/" as the file separator.  So
watch out for possible problems in that area (mac OS 9
uses ':', mac OS X can use either ':' or '/').

Rule of thumb:  When building file paths, be sure to
either use either the system property
System.getProperty("file.separator") or the public
field java.io.File.separator as the separator. 
Alternatively, you should just let the File object
build paths for you:

String base = "/some/path"; // arbitrary '/' here
String dname = "mydir";
String fname = "myFile.txt";
File f = new File(base);
f = new File(f,dname);
f = new File(f,fname);

The above would build "/some/path/mydir/myFile.txt" on
unix.  On a mac (assuming base=":some:path", the
result would be ":some:path:mydir:myFile.txt"

> 
> 2. Download Darwin, Apache for Darwin and Tomcat.sit
> or Tomcat.sit.hqx?
> While waiting for MacOS X.
> 

If you want to run Apache, you will need to use Darwin
or Mac OS X public beta while waiting for Mac Os X. 
If you don't need Apache, then tomcat itself should
run fine on Mac OS 9.  MRJ 2.2.4 has many 'Java 2'
apis added on top of the offic 1.1.8 spec.

> 3. Purchase SuSE 7.0 for PPC?
> 

Drastic, but should work great.

> 4. Something else?
> 

If you have at least a 500MHz G3 box, running Apache
on Linux or WinNT inside Virtual PC v4 should be
actually viable unless you expect a lot of traffic
(i.e. it should be fine for development).

Cheers,

Mel

__
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: Macintosh and Java

2001-02-25 Thread S Lafredo

I tried that and it did not work? I was getting very strange error
messages from IE.

Not wanting to give up I quit Tomcat and started it up again while IE
was running (shouldn't make a difference :) and now I get the Tomcat
page.

When I run the sample JSPs I am throwing exceptions all over the place
but at least I am running.

Thanks!

Stephen

On 2/25/01 at 5:55 PM, Stefán F. Stefánsson <[EMAIL PROTECTED]>
wrote:

: can you give the exact string you're typing in your browser?
: 
: here's what you should type: http://localhost:8080/
: 
: the :8080 tells the browser to communicate on port 8080 instead of the
: default http port (which is 80).  You can also open the server.xml
: file in the /config directory and edit the 
: tag.  It should have a parameter name=port value=8080.  You would have
: to change that to 80 so that the address http://localhost/ would work.
: 
: Hope this helps you.

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




RE: Macintosh and Java

2001-02-25 Thread Stefán F. Stefánsson

can you give the exact string you're typing in your browser?

here's what you should type:
http://localhost:8080/

the :8080 tells the browser to communicate on port 8080 instead of the
default http port (which is 80).  You can also open the server.xml file
in the /config directory and edit the  tag.  It
should have a parameter name=port value=8080.  You would have to change
that to 80 so that the address http://localhost/ would work.

Hope this helps you.

-Original Message-
From: S Lafredo [mailto:[EMAIL PROTECTED]]
Sent: 25. febrúar 2001 17:47
To: [EMAIL PROTECTED]
Subject: Macintosh and Java


Hi,

Has anyone set-up a Macintosh to run Apache and/or Tomcat?

I think I have found several ways to do this but I was hoping someone
could confirm them for me.

1. I am running MacOS 9.x, MRJ 2.2.4 and downloaded jakarta-tomcat-3.2.1
I clicked on the Tomcat Start and a Java console opens and displays

2001-02-25 12:40:00 - ContextManager: Adding context Ctx( /examples )
2001-02-25 12:40:00 - ContextManager: Adding context Ctx( /admin )
Starting tomcat. Check logs/tomcat.log for error messages 
2001-02-25 12:40:01 - ContextManager: Adding context Ctx(  )
2001-02-25 12:40:01 - ContextManager: Adding context Ctx( /test )
2001-02-25 12:40:09 - PoolTcpConnector: Starting HttpConnectionHandler
on 8080
2001-02-25 12:40:10 - PoolTcpConnector: Starting Ajp12ConnectionHandler
on 8007

So it looks like it is running correctly?

I then run IE 5 (Netscape does not support MRJ?) and type localhost.
Nada?

I also tried copying on of the example.html pages into the browser but
when I try to run the JSP the Finder displays and error message stating
that the foo.jsp application could not be found.

Anyone know what I am doing wrong?

Or do I have to take on of the following routes...


2. Download Darwin, Apache for Darwin and Tomcat.sit or Tomcat.sit.hqx?
While waiting for MacOS X.

3. Purchase SuSE 7.0 for PPC?

4. Something else?

Thanks!

Stephen

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


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




Macintosh and Java

2001-02-25 Thread S Lafredo

Hi,

Has anyone set-up a Macintosh to run Apache and/or Tomcat?

I think I have found several ways to do this but I was hoping someone
could confirm them for me.

1. I am running MacOS 9.x, MRJ 2.2.4 and downloaded jakarta-tomcat-3.2.1
I clicked on the Tomcat Start and a Java console opens and displays

2001-02-25 12:40:00 - ContextManager: Adding context Ctx( /examples )
2001-02-25 12:40:00 - ContextManager: Adding context Ctx( /admin )
Starting tomcat. Check logs/tomcat.log for error messages 
2001-02-25 12:40:01 - ContextManager: Adding context Ctx(  )
2001-02-25 12:40:01 - ContextManager: Adding context Ctx( /test )
2001-02-25 12:40:09 - PoolTcpConnector: Starting HttpConnectionHandler
on 8080
2001-02-25 12:40:10 - PoolTcpConnector: Starting Ajp12ConnectionHandler
on 8007

So it looks like it is running correctly?

I then run IE 5 (Netscape does not support MRJ?) and type localhost.
Nada?

I also tried copying on of the example.html pages into the browser but
when I try to run the JSP the Finder displays and error message stating
that the foo.jsp application could not be found.

Anyone know what I am doing wrong?

Or do I have to take on of the following routes...


2. Download Darwin, Apache for Darwin and Tomcat.sit or Tomcat.sit.hqx?
While waiting for MacOS X.

3. Purchase SuSE 7.0 for PPC?

4. Something else?

Thanks!

Stephen

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




JSP code wont run

2001-02-25 Thread Matt Reine



Hello All, 
 
I'm a newbie and would appreciate help... I've 
developed a few jsp pages and it seems to still caache the old servlets that Ive 
run before and wont update with the new changes even when I saved it to the hard 
drive and overwrote the old .jsp file.
 
I think it's a caching issue... am I right? And how 
do I fix it? Also, I did the shutdown.bat and startup.bat files to restart 
tomcat with no effect... Even when I did the shutdown.bat I could still access 
the program on localhost:8080/matt.jsp
 
So I dont think shutdown is working right either... 
Thanks all!
 
-Matt
 
[EMAIL PROTECTED]


reloading of changed servlets fails

2001-02-25 Thread C _

hi all,

i'm using tomcat on win98 in standalone mode. I defined a context like


everytime i recompile a servlet's classfile in
directory foo\servlets\Web-inf\classes
i get a error like
"java.lang.IllegalStateException: Can't happen - classname is null, who 
added this ?
at 
org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java:261)"

anybody knows?

thanx - carl


_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


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




Re: help: no stack trace in standard out

2001-02-25 Thread Mel Martinez

--- Jon Crater <[EMAIL PROTECTED]> wrote:
> 
> but i can't get a stack trace printed to the
> standard out to save my
> life.
> any ideas?
> 

Whether or not a stack trace gets printed is not a
function  of the logging level.  A stack trace will be
printed under the following conditions:

If an uncaught exception makes it through to the VM
runtime, a trace will printed by the runtime to
standard err (System.err).

If a catch() block in your code (or someone else's
code higher up the call chain) catches an exception
and proceeds to  explicitely print the stack trace.
Note - if you are throwing an exception that you
expect to show a trace at the runtime level, it is
possible that "someone else's code" is catching it and
ignoring it (a very bad practice but all too common).

Finally, you can always just create a Throwable object
and print the stack trace yourself.

To display the stack trace of a Throwable object to
System.err, you can just use the
Throwable.printStackTrace() method.  Thus, in your
code you might put:

try{
  // do something that throws a FooException
}catch(FooException e){
  e.printStackTrace();
}

Or, for debug purposes to find out how you got to your
code without relying on some Exception being thrown,
just do the following:

   //...do stuff...
   (new Throwable()).printStackTrace();
   //... continue doing other stuff...

The only problem with the above technique is that
there is no control over formatting or where the
message goes.  It always goes straight to stderr.  To
change that, you can capture the stack trace in a
String using a simple method like so:

/**
  utility function for retrieving the stacktrace of
  a Throwable object as a String for easy
manipulation.
  Useful for debugging.  Returns "" if t==null.
  @param t a Throwable object.
  @return a String representation of the stack trace
  for t.
*/
public static String getStackTrace(Throwable t){
  if(t==null){
return "";
  }
  StringWriter sw = new StringWriter();
  t.printStackTrace(new PrintWriter(sw));
  return sw.toString(); 
}

Put the above method into a utility class (i.e.
'MyUtils' and then you can always grab the trace for a
throwable anywhere in your code with:

  String trace=MyUtils.getStackTrace(new Throwable());

That way, you can display the trace in an html page,
or search it or make it part of the message nested
inside another exception, or whatever.

Using stack traces like this is a very useful tool for
developing and debugging code, or for simply trying to
understand other folk's code.  Visual Debuggers are
useful too, but less reliable and not ubiquitous.

One tip:  You refer to wanting to print the trace to
'standard out'.  Just a bit of developer's philosophy,
but:

 Standard out - for program _output_ (i.e., the actual
  product of the application).  Example: 'more'
  displays text from files to stdout.
 Standard err - for program _debug_ and _error_
  messages.  Example, if 'more' can't find the file
  indicated, it prints an error message to stderr.

The distinction is important because conceptually,
these are two different io streams.  By default,
System.err prints to the same OutputStream as
System.out, but that is not necessarily always so. 
You can easily redirect one or the other using
System.setErr() or System.setOut().  By always sending
your debug and error messages to System.err, you
should not have to worry about forgetting to remove
all your debug statements and accidentally corrupting
your program's output.

Just my $.02.  Take it for what it's worth.  :-)

I hope this is helpful.

Mel
  



__
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: Problem with Tomcat - Red Hat 7

2001-02-25 Thread niv the tool

i also have prb. running tomcat 4 on redhat 7 i get these error
( BTW tomcat 3.2 works fine )

Exception in thread "main" java.lang.IllegalArgumentException:
addRepositoryInternal: java.lang.NullPointerException
at
org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(Standar
dClassLoader.java:1073)
at
org.apache.catalina.loader.StandardClassLoader.(StandardClassLoader.ja
va:166)
at
org.apache.catalina.startup.Bootstrap.createSharedLoader(Bootstrap.java:280)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:106)
Exception in thread "main" java.lang.IllegalArgumentException:
addRepositoryInternal: java.lang.NullPointerException
at
org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(Standar
dClassLoader.java:1073)
at
org.apache.catalina.loader.StandardClassLoader.(StandardClassLoader.ja
va:166)
at
org.apache.catalina.startup.Bootstrap.createSharedLoader(Bootstrap.java:280)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:106)
Exception in thread "main" java.lang.IllegalArgumentException:
addRepositoryInternal: java.lang.NullPointerException
at
org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(Standar
dClassLoader.java:1073)
at
org.apache.catalina.loader.StandardClassLoader.(StandardClassLoader.ja
va:166)
at
org.apache.catalina.startup.Bootstrap.createSharedLoader(Bootstrap.java:280)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:106)
Exception in thread "main" java.lang.IllegalArgumentException:
addRepositoryInternal: java.lang.NullPointerException
at
org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(Standar
dClassLoader.java:1073)
at
org.apache.catalina.loader.StandardClassLoader.(StandardClassLoader.ja
va:166)
at
org.apache.catalina.startup.Bootstrap.createSharedLoader(Bootstrap.java:280)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:106)

any idea>


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




RE: url-pattern question

2001-02-25 Thread Brett Knights


> -Original Message-

> My work aroudn was to url-map jsps to a particular
> folder in this web application, for example a
> url-mapping of /templates/* so a call to
> localhost/content/templates/test.jsp will process the
> jsp at that location.
> 
> It's not working.  I'm forced to url-map my servlet to
> a folder like /cofax/* and the jsps to a url-mapping
> of *.jsp to get it to work.  I don't want this.  I
> can't change the url path of the servlet. 

The servlet 2.2 spec says this should work. (i.e. if it doesn't it's a bug in Tomcat)

Did you map /templates to org.apache.jasper.runtime.JspServlet?
What happens if you unmap *.jsp in tomcat's default web.xml?



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




RE: Secure MessageDigest Login using JSP

2001-02-25 Thread Brett Knights



And IE5 
and Mozilla6 are supposed to support digest authentication so you 
might only need to implement something as a fallback (or if it is an 
intranet/extranet project specify only those browsers)
Reading 
the rfc (rfc 2617) on digest authentication is a good idea if you are thinking 
of rolling you own. 
 
HTH

  -Original Message-From: Brett Bergquist 
  [mailto:[EMAIL PROTECTED]]Sent: Saturday, February 24, 2001 7:13 
  PMTo: [EMAIL PROTECTED]Subject: RE: Secure 
  MessageDigest Login using JSP
  Ryan, I did something like this in my current 
  project.  The currently supported authentication forms do not support 
  this, but I needed it.  Since my application UI is Java Applet based, I 
  was able to use the message digest API's in Java 2 to do this.  What I 
  did is this:
  
Modified all of my pages that I need to protect to 
see if the user is logged in and if not, forward the request to a Login JSP 
page, keeping track of the original request destination. 
Created a Login JSP page which contained a Login 
applet.  The Login applet provides an area for the user to enter the 
username and password.  I use this along with the session ID for the 
session and compute the digest hash.  The digest hash, username, and 
session ID is passed to a Login servlet using HTTP POST. 
Created a Login servlet which receives a digest 
hash, username, and session ID in its POST handler.  The session ID is 
validated against the current session.  The username is used to lookup 
the user authentication information is a database and retrieves the user's 
password.  I then compute the digest hash using the supplied username, 
session ID and the password lookup.  If this hash is the same as the 
one passed in the POST message, then the user is authenticated and logged in 
and redirected to the orignal request destination.
  I 
  probably could have implemented an Interceptor or such to do this, but I was 
  fairly new to Tomcat and this seemed the easiest way and as a side benefit it 
  is not Tomcat specific.  The only real downside is having to protect each 
  page individually.
   
  If 
  you are not using an applet on the client side, you could still compute an MD5 
  hash in Javascript and do something similar.
   
  Hope 
  this helps
   
  Brett
  
-Original Message-From: Ryan 
[mailto:[EMAIL PROTECTED]]Sent: Friday, February 23, 2001 7:57 
PMTo: [EMAIL PROTECTED]Subject: Secure 
MessageDigest Login using JSP
Hello,
 
    I want to be able to use the 
MessageDigest class to make a secure login to a jsp page.
 
    Ultimately, I want the user 
to interact with a form and submit data entries into a mySQL database. This 
type of thing is very new to me and I was wondering if anyone could lead me 
to any good resources.
 
thanx
-ryan


Tomcat4 Authentication over Apache 1.3 does not work

2001-02-25 Thread Dietmar Kling

Hi,

I use the tomcat4 rpm from Henri Gomez
I've setup the apache 1.3 Module and 
can succesful browse the examples over
the apache webserver. I've setup a 
additional line in httpd.conf:

WebAppMount manager warpConnection /manager

and I've setup tomcat-users.xml

When i browse over the apache webserver
with http://myhostname/manager/
the authenticaiton prompt comes up, 
but I can not login. 

If i try this not over the apache 
webserver and use the tomcat4 engine
direct then i can authenticate and
it works.

What i am doing wrong?

Regards 
Dietmar

P.S. I am not on this list 
reply to [EMAIL PROTECTED]

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




tc4: catalina.home vs "catalina.install"

2001-02-25 Thread Endre Stølsvik

Hi!

It kind of seems to me that there is some "inconsistency" between the
catalina.home and where you actually want tomcat4 to _run_.

I have a bunch of "installations" for my gang of developers, and each
developer have a complete env. to develop in.

But how do I configure, "say to", catalina that "this is where you're
installed, and thus where you can find your code and stuff", and "this is
where you're supposed to run, this is your _home_"..

Now, when I start up tomcat4, it starts to configure a lot of webapps
coming from the installation area's "webapps" folder, and tell me that
work directories are not existing, cannot be created or whatever (the
installation is made as root, I run it as me).

Typical error line if I try to set catalina.home to where I want it to be
run from:

Directory /devel/endre/active/SERVER/tomcat4.0-home/common/lib does not exist


-- 
Mvh,
Endre


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




tc4: "No processor available, rejecting this connection"

2001-02-25 Thread Endre Stølsvik

My config is like this:



This gives me lots of left out small gifs, maybe a leftout stylesheet, or
the whole document.. or whatever.

I realize that there's not many processors configured here, but why does
it start to reject connections? It should stack them in a queue, shouldn't
it? What am I doing wrong?

2001-02-25 12:49:21 HttpProcessor[10080][2]  An incoming request is being assigned
2001-02-25 12:49:21 HttpProcessor[10080][2]   The incoming request has been awaited
2001-02-25 12:49:21 HttpConnector[10080] No processor available, rejecting this 
connection
2001-02-25 12:49:21 HttpProcessor[10080][2]   parseConnection:  
address=endresin.intra.coretrek.com/10.0.0.14, port=10080

Does the HttpConnector have any relation to the three other lines here,
HttpProcessor? Could anyone just give me the briefest explanation of
what's going on in theese four lines?

Thanks a lot! Looking forward to both the 3.3 and 4.0! Especially the
promised proper reloading of webapps in 4!


-- 
Mvh,
Endre


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




RE: Newbies UNITE!

2001-02-25 Thread Rizwan Ahmed
Title: RE: Newbies UNITE!





I am an IBM RPG programmer trying my best to learn java and this Tomcat & apache stuff.I was lurking along with this site and though I get lot of 'How to dos' and doc still it's complex for me.I've installed apache okay but still find complex installing tomcat.

I'll appreciate this idea and any good step to step like docs and examples to carry on


Rizwan  



-Original Message-
From:   Arafat Mohamed [SMTP:[EMAIL PROTECTED]]
Sent:   Sunday, February 25, 2001 4:10 AM
To: [EMAIL PROTECTED]
Subject:    RE: Newbies UNITE!


Count me in.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of aras
Sent: Saturday, February 24, 2001 7:49 PM
To: [EMAIL PROTECTED]
Subject: Re: Newbies UNITE!



Thanks Karl for a very eloquent albeit terse reason for belonging to the
group.


Let me make a few things clear.


1.  The Newbies UNITE TUG was started because email lists are not the ideal
way
of learning  a new technology.  I've been coding for almost twenty years and
from my experience User Groups are the best
way to get determined users up to speed quickly.


2.  User Groups also allow topic branching that could never be tolerated in
a
mailing list.  Could you imagine sharing emails on this list that went from
TomCat to Java Math Classes to developing financial
derivatives code.  It doesn't work on an email list.  Lists have to be
specific.


3.  We have five,people on the NEWBIE TUG so far (soon to be fifteen).  If
we
can lessen the amount of usual posts, thus sparing some of the more
experienced
users, that's a good thing.


Lastly,  This is to the folks who already agreed with the NEWBIE TUG
concept.
Thanks.  From reading your emails, it seems like we've got some motivated
people going into this thing.


If your a newbie and want to share and learn,  JOIN our TUG.



Lastly,  I don't want any flame stuff around here.  If you don't want to
join
or think we're crazy, please don't bash the concept.  I'll tell you a thing
or
two about user groups.  People have started companies from inside UGs,
people
have gotten friends from belonging to UGs,  users in groups have even gotten
married.  It's an import concept in the software development  industry.


While I was composing this post Ashant posted and I do need to add this
final
note:


Ashant does bring up a good point that should be addressed by our Virtual
TUG.
At some point, we should ask an experienced TomCat developer or User to join
or
at least give us some guidance.



Best Regards,


steve


[EMAIL PROTECTED]






> Hi,
>
> I guess a newbie group would be handy, I am a newbie to the apache (and
the
> overall open source) community myself.
>
> But I must say that I've been quite happy with this group.  The novice
> questions I have get answered quickly (and often from different points of
> view).  I'm not sure if the q's would be answered so fast and so well on a
> newbie group, makes me ask what would be the point of a new group of
> predominantly novice users?
>
> A doc's group, though, would be a different thing. I guess that becomes an
> essential for the long run.
>
> Ashant
>
> >From: "Adam Fowler" <[EMAIL PROTECTED]>
> >Reply-To: [EMAIL PROTECTED]
> >To: <[EMAIL PROTECTED]>
> >Subject: RE: Newbies UNITE!
> >Date: Sat, 24 Feb 2001 14:54:00 -0600
> >
> >Hi,
> >
> >Maybe it would be better and a hell of a lot simpler to form a
> >"documentation group" to get the docs done. Then everyone could use them
> >and
> >live happily ever after.
> >
> >Come to think of it, who is responsible for the tomcat/mod_jk docs atm?
> >
> >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: [EMAIL PROTECTED]
> >[mailto:[EMAIL PROTECTED]]On Behalf Of aras
> >Sent: Friday, February 23, 2001 4:40 PM
> >To: [EMAIL PROTECTED]
> >Subject: Newbies UNITE!
> >
> >
> >I admit it, I'm a ... newbie.  It makes me ill having to admit that
> >considering
> >I've been coding for almost twenty years.  Old dogs new tricks.
> >
> >Here's the deal.
> >
> >I've been trying to use TomCat for about a month.  That time isn't work
> >hours
> >because I'm doing this at night (2-3 hours per).  Anyway, I've been on
this
> >list for all that time and have seen literally thousands of emails.  Most
> >of
> >them being in the newbie variety.
> >
> >Here's what I'm thinking.  If there are ten to fifteen newbies out there
> >who
> >are in somewhat of my situation, let's join forces and kick this thing in
> >the
> >butt.  Now, I would imagine if your using TomCat 8 HR/Day (meaning "it's
> >your
> >job"), you'll be going too fast for us.  You might want to stick to this
> >list.
> >
> >We need the ability to exchange massive

RE: Tomcat deployment

2001-02-25 Thread Amir Nuri

When Using two tomcat with two server.xml files on the same machine I have 2
problems:
1. I can't stop one tomcat, I think it because I have two Ajp12 Connection
Handler for each server.xml file with different ports, but only one
tomcat.conf file, on my tomcat.conf file I have the following
configuration:
ApJServDefaultProtocol ajpv12
ApJServDefaultPort 8007
Should I have also two tomcat.conf files ???

2. I can't have two sessions on the same machine to two different ports,
each port is forone tomcat




-Original Message-
From: Amir Nuri [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 22, 2001 9:22 PM
To: Tomcat-User
Subject: FW: Tomcat deployment


In order to run two tomcat servers
Do I use two server.xml files ??
and Where do i tell tomcat what server.xml to use ??

-Original Message-
From: Nael Mohammad [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 22, 2001 7:53 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Tomcat deployment


Yes, just modify the port number they will be using. For example, tomcat be
default is 8080, so the second server would be port # 8081

-Original Message-
From: Amir Nuri [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 22, 2001 9:19 AM
To: Tomcat-User
Subject: Tomcat deployment


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




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

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



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



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