Includes

2000-12-18 Thread Bruce Cota

Hi, I'm a newcomer to Tomcat and recently upgraded from
3.1 to 3.2.   I have been working on a site in which one
directory holds files included in several sibling directories.

With 3.1, I was able to use a Context with path="/", but
with 3.2 this  does not seem to work -- I get 404's from
tomcat in 3.2.

I tried breaking up my directories into different contexts, but
I can't seem to get includes to work across contexts -- I get
"Bad file argument to include" when I try to include a jsp
from the "include context"  in a file in one of the other
contexts.  For that matter, I seem to have the same problem
when I use anything but a relative url in an include.

Am I doing something wrong?  Is there a way to  use
a path="/" in a 3.2 context, or can I include files across
contexts?

Thanks for any advice,
-Bruce




AW: Tomcat 3.2.1 404 errors

2000-12-18 Thread Amrhein, Thomas

Name your error-pages *.jsp and they will be found by tomcat.
(this problem is discussed in this list)

I reported this bug.

http://znutar.cortexity.com/BugRatViewer/ShowReport/607

regards 

Thomas


To reproduce this bug:
Put a file called 404.html in the root directory of a context.
Create the following web.xml:
...
error-page
error-code404/error-code
location/404.html/location
/error-page
...
and try to load a non-existing page.
Tomcat will hang in an infinite loop (tested on Win NT) with a file not
found error.

Workaround:

Name your error-page *.jsp:
Put a file called 404.jsp in the root directory of a context.
Create the following web.xml:
...
error-page
error-code404/error-code
location/404.jsp/location
/error-page
...
and try to load a non-existing page.
Tomcat will display the 404.jsp - Page.


-Ursprüngliche Nachricht-
Von: Anthony Ikeda [mailto:[EMAIL PROTECTED]]
Gesendet am: Montag, 18. Dezember 2000 08:43
An: '[EMAIL PROTECTED]'
Betreff: Tomcat 3.2.1 404 errors

Hi, I'm new to this list and I've checked the mailing list archives and
cannot find a solution to my problem...

I have Tomcat 3.2.1 installed on an NT4 box. It seems to be functioning
alright, however when a page cannot be found it seems to get stuck in a loop
and eventually falls over with a stack overflow error:

java.lang.StackOverflowError
at java.lang.Exception.(Exception.java:38)
at java.io.IOException.(IOException.java:43)
at java.io.FileNotFoundException.(FileNotFoundException.java:62)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.(FileInputStream.java:64)
at java.io.FileInputStream.(FileInputStream.java:95)
at
org.apache.tomcat.request.FileHandler.doService(StaticInterceptor.java:365)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.handleStatus(ContextManager.java:1049)
at
org.apache.tomcat.request.FileHandler.doService(StaticInterceptor.java:387)
...

The last 4 lines just keep repeating over and over again.

I have error-pages set up in the web.xml file (have there been any changes
to this?) but it won't display them either.

Anyone have any ideas on how to fix it?

Cheers,
Anthony Ikeda,
Web Application Developer,
Proxima Technology,

Level 13,
181 Miller Street,
North Sydney
Australia


PH: +612-9458-1718
Mob: 041 624 5143



error in session management when using apache/tomcat 3.2.1 Release

2000-12-18 Thread Hanusch, Hartwig

Hi everybody,

i posted a few times earlier ...
but now i hope that  found the source of the error (till yet without
solution).

I am using a servlet which calls itself from the get to the post method.
A user is identified via sesion (quite usual i think)
When using tomcat via 8080 port everything works fine, but when using 
apache, tomcat looses the proper session (or gets a session for itself for
the
get and for the post).

Any ideas? 

Cheers Hartwig




Re: How to set apache so it starts from index.jsp?

2000-12-18 Thread Wojciech Wasowicz

Dave Newton wrote:

   Question like in Subject.
   I've tried to replace index.html with index.jsp _at_the_end_ of
   httpd.conf and it doesn't work.
   (I use mod_jk to connect to tomcat)
   Has someone any clues?
  I mean - in the root directory of apache.

 Do you mean have Apache look for an index.jsp before anything
 else by using the DirectoryIndex httpd.conf directive?

 If so, that's an Apache question, not Tomcat.

 Dave

Yes - it is what I mean - I've sent it here bacause
configuring apache with mod_jk.conf-auto gives
good results in aliased subdirectory - and it gives bad
results in apache documant root directory.
(good result - to set index.jsp as welcome page)

I've believed that is issue of communication
between apache and tomcat.
If not - I'm sorry, I didn't mean harasing you
with mails which are out of subject of this list.

In meantime I've solved this.

regards
Wojtek




RE: Can't stop tomcat

2000-12-18 Thread Kitching Simon

Try running the "stop" command several times.
If you eventually get a bunch of socket exceptions on the screen,
you know that it worked (the errors appear if you run stop, and there
is no tomcat instance to stop).

I think there are some problems with some JVMs, which are not
stopping all threads properly. I get this behaviour on HP-UX, and
used to get it on Solaris until I upgraded to the latest JVM.

 -Original Message-
 From: Blair Tingey [SMTP:[EMAIL PROTECTED]]
 Sent: Friday, December 15, 2000 7:31 PM
 To:   [EMAIL PROTECTED]
 Subject:  Can't stop tomcat
 
 Hello,
  
 I have installed Tomcat 3.2 on Solaris and I have not modified any of the
 XML files so this is a pretty generic install. After starting tomcat using
 ./tomcat.sh start
  
 I issue the command: ./tomcat.sh stop  to stop Tomcat and the process
 does not stop.
  
 It looks as if classes are unloaded and I get a  Tomcat Stopped message,
 but if I look at the processes I still have the Tomcat process running.
  
 What can I do to stop Tomcat by using ./tomcat.sh stop ?
  
 Thanks,
 Blair Tingey



wml

2000-12-18 Thread Landaluze Produktions IS - Carlos

how can configure tomcat to serve the wml pages?
thanks




RE: Includes

2000-12-18 Thread Kitching Simon

Hi Bruce,

I'm not entirely sure what your problem is.

I'm almost certain you cannot include files "across contexts"
using jsp:include (ie run-time include). That would involve
invoking a servlet in one context from a servlet in another
context.

I'm almost certain that %@ include url (ie compile-time include) 
would not work across contexts either. The JSP specification
(I used jsp1.2b1) states that the url *must* be a relative URL. It
also states that the included page is "subject to access control",
ie only files accessable from the webapp are includable; this seems
to rule out including any file that is not under the webapp-specific
document root, ie nothing stored in another webapp(context) can
be included.

Why can't you have all your files in a single context?? And
what is the relevance of the context path? Including of files
should work regardless of what prefix the webapp(context) has 
been given.

Regards,

Simon

 -Original Message-
 From: Bruce Cota [SMTP:[EMAIL PROTECTED]]
 Sent: Monday, December 18, 2000 9:23 AM
 To:   [EMAIL PROTECTED]
 Subject:  Includes
 
 Hi, I'm a newcomer to Tomcat and recently upgraded from
 3.1 to 3.2.   I have been working on a site in which one
 directory holds files included in several sibling directories.
 
 With 3.1, I was able to use a Context with path="/", but
 with 3.2 this  does not seem to work -- I get 404's from
 tomcat in 3.2.
 
 I tried breaking up my directories into different contexts, but
 I can't seem to get includes to work across contexts -- I get
 "Bad file argument to include" when I try to include a jsp
 from the "include context"  in a file in one of the other
 contexts.  For that matter, I seem to have the same problem
 when I use anything but a relative url in an include.
 
 Am I doing something wrong?  Is there a way to  use
 a path="/" in a 3.2 context, or can I include files across
 contexts?
 
 Thanks for any advice,
 -Bruce



RE: Need Some help..

2000-12-18 Thread Kitching Simon

Hi,

I suggest thinking of your mappings in two steps:
(a) get the mappings right *within* a context
(b) decide what context prefix you want.

If you ve a context with a path (ie url prefix) of
"mywebapp", then you can set up URLs as you desire
*within* that webapp. 

Configuring the url-servlet mappings (ie what servlet
is run when a user requests a particular url) is done
by defining servlet-mapping tags within the 
WEB-INF/web.xml file for your webapp. The urls
you define like this are all *relative* to the webapp
url, eg if you set up a mapping from "/foo" to the
java class "mypackage.myclass", then it must be
accessed by the user as "http://somehost/webappname/foo".

If you have a whole bunch of servlets, and you don't want
to enter separate servlet-mapping entries for each one, then
you may want to take advantage of the "invoker servlet" which
effectively sets up bulk url mappings for you, but doesn't give
you such fine control as creating invididual mappings.

Deciding whether you want the webapp to have a
prefix of "/" (ie be the root webapp) is a separate
thing. This is configured with the context tag
in the $TOMCAT_HOME/conf/server.xml file.

WAR files have nothing to do with paths at all; they
are just a convenient method of installing the bunch of
files making up a webapp.


PS: In future, please specify your tomcat VERSION, as
answers to questions often depend on which tomcat you
are using.

Regards,

Simon

 -Original Message-
 From: Thyagesh [SMTP:[EMAIL PROTECTED]]
 Sent: Monday, December 18, 2000 7:52 AM
 To:   [EMAIL PROTECTED]
 Subject:  Need Some help..
 
  Hi,
 I know its stupid. But I really struck with Tomcat's Docs  can't
 figure how to configure it. I had used JServ extensively. I had to migrate
 to Tomcat since I need a Servlet Container to Connect to IIS in Windows.
My Requirements are that I had to Run Servlets which are in
 packages.
 Hence I need mappings to these servlets. Also I need different context
 Paths
 to same set of code(ex: /servlet, /foo) like zones in JServ.
 Thing I want to know whether I had to create a WAR file to make it
 work
 . OR Just add code to /webapps/root/.../classes(then where would be
 mappings??).
 I had seen docs but couldn't figure out
 
 Any Help will be really useful. Please..
 
 -Thyagesh
 
 



Session management on load balanced server

2000-12-18 Thread Marsh Andy

I have proposals for the following system:

5 servers running tomcat/apache
1 load balancer
1 proxy/firewall.

We will be connecting to a wap/gprs gateway to make
connections for users. We cannot use cookies on the
wap phones and the gateway does not support them. we
need to manage sessions on the tomcat servlet process
and be able to load balance the servers for the first
request, or for every request if there is a way of
managing the session info sensibly.



What I would like to know is, how/what software do i
need to be able to manage the session sensibly. I have
done much research into this area but am having
trouble seeing how the sessions can be maintained
without cookies.

Any help will be much appreciated.

Andy


Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie



Pbm. in setting the parameter for an applet in servlet...

2000-12-18 Thread Subha Gowri K V


Hi,

We have a problem in passing parameter to an applet which is called by a
servlet.

1. In servlet we are setting the param like :

  out.println("APPLET CODE=ResultApplet.class
CODEBASE=\"http://hostname/dir\"" + " WIDTH=50 HEIGHT=100");
  out.println("ALIGN=TOP");
  out.println("PARAM NAME=\"Results\" VALUE=\""+"Hello"+"\"");
  out.println("/APPLET");

2. We are fetching the parameter in applet like
String s = getParameter("Results");

But in applet we are getting null value only.

3. If I call the same applet from a simple html page, it is passing
parameters correctly.

Note : We are using Tomcat as the servlet engine  apache as the web-server.

Any idea?

Thanks in advance.

Regards,
Subha




RE: Pbm. in setting the parameter for an applet in servlet...

2000-12-18 Thread Kitching Simon

I can see a typo in there - you don't have a "" before PARAM

To check the output of your servlet, are you running it, using
"view source", saving the results then trying to run *that*?
This procedure will ensure you are testing exactly what
your servlet is generating...

 -Original Message-
 From: Subha Gowri K V [SMTP:[EMAIL PROTECTED]]
 Sent: Monday, December 18, 2000 12:22 PM
 To:   [EMAIL PROTECTED]
 Subject:  Pbm. in setting the parameter for an applet in servlet...
 
 
 Hi,
 
 We have a problem in passing parameter to an applet which is called by a
 servlet.
 
 1. In servlet we are setting the param like :
 
 out.println("APPLET CODE=ResultApplet.class
 CODEBASE=\"http://hostname/dir\"" + " WIDTH=50 HEIGHT=100");
 out.println("ALIGN=TOP");
 out.println("PARAM NAME=\"Results\" VALUE=\""+"Hello"+"\"");
 out.println("/APPLET");
 
 2. We are fetching the parameter in applet like
   String s = getParameter("Results");
 
 But in applet we are getting null value only.
 
 3. If I call the same applet from a simple html page, it is passing
 parameters correctly.
 
 Note : We are using Tomcat as the servlet engine  apache as the
 web-server.
 
 Any idea?
 
 Thanks in advance.
 
 Regards,
 Subha



building mod_jk

2000-12-18 Thread Rashaad



Hi, i am having a problem building mod_jk provided 
with the "jakarta-tomcat-3.2.1-src" distribution

When i use the command "make 
--makefile=Makefile.linux"
i get an error of the sort

"../jk/jk_jni_worker.c :67:jni.h no such file 
or directory" 

followed by warnings and then next to these 
warnings is text saying

"no java 2 headers! support for java 2 
features disabled." 

What does this all mean and can someone help me 
out.

thanks in advance


Apache doesn't start with mod_jk

2000-12-18 Thread Jan Stevens

Hi,
When I try to start Apache with mod_jk, Apache doesn't start without any
messages.
Compiling of mod_jk goes ok.
I'm using Apache on an Alpha 1000 with Tru64 4.0D
Everything works fin ewith mod_jserv.
Am I missing something?

Jan





Re: Includes

2000-12-18 Thread Bruce Cota

Thanks for the reply

The problem I have is that I cannot get a context with the
path "/" to work -- I just get 404's.  The site I'm trying
to work on (which already exists) uses url's like
"www.company.com/app1/index.jsp" and
"www.company.com/app2/index.jsp", where both
index1.jsp and index.2.jsp include urls like
"/include/setup.jsp".   I can't seem to make this
work in tomcat 3.2.  In tomcat 3.1 I did it by
setting up a Context with path="/" and
a docBase set to the parent directory which
includes "app1", "app2", and "include".
But in 3.2 when I do this I get 404's.

Kitching Simon wrote:

 Hi Bruce,

 I'm not entirely sure what your problem is.

 I'm almost certain you cannot include files "across contexts"
 using jsp:include (ie run-time include). That would involve
 invoking a servlet in one context from a servlet in another
 context.

 I'm almost certain that %@ include url (ie compile-time include)
 would not work across contexts either. The JSP specification
 (I used jsp1.2b1) states that the url *must* be a relative URL. It
 also states that the included page is "subject to access control",
 ie only files accessable from the webapp are includable; this seems
 to rule out including any file that is not under the webapp-specific
 document root, ie nothing stored in another webapp(context) can
 be included.

 Why can't you have all your files in a single context?? And
 what is the relevance of the context path? Including of files
 should work regardless of what prefix the webapp(context) has
 been given.

 Regards,

 Simon

  -Original Message-
  From: Bruce Cota [SMTP:[EMAIL PROTECTED]]
  Sent: Monday, December 18, 2000 9:23 AM
  To:   [EMAIL PROTECTED]
  Subject:  Includes
 
  Hi, I'm a newcomer to Tomcat and recently upgraded from
  3.1 to 3.2.   I have been working on a site in which one
  directory holds files included in several sibling directories.
 
  With 3.1, I was able to use a Context with path="/", but
  with 3.2 this  does not seem to work -- I get 404's from
  tomcat in 3.2.
 
  I tried breaking up my directories into different contexts, but
  I can't seem to get includes to work across contexts -- I get
  "Bad file argument to include" when I try to include a jsp
  from the "include context"  in a file in one of the other
  contexts.  For that matter, I seem to have the same problem
  when I use anything but a relative url in an include.
 
  Am I doing something wrong?  Is there a way to  use
  a path="/" in a 3.2 context, or can I include files across
  contexts?
 
  Thanks for any advice,
  -Bruce




RES: multipart/form-data problem

2000-12-18 Thread Jose Euclides da Silva Junior - DIGR.O

-BEGIN PGP SIGNED MESSAGE-

Hi everybody,
i am using tomcat 3.1 and multipart/form-data works fine with oreilly'
components. Are you using it? If yes, It seems to be stupid hint, but try a
downgrade!

Regards,
José Euclides Júnior
__
E-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] 
[EMAIL PROTECTED]
http://euclides.8m.com


- -Mensagem original-
De: jokozlow [SMTP:[EMAIL PROTECTED]]
Enviada em: Quinta-feira, 14 de Dezembro de 2000 19:42
Para:   '[EMAIL PROTECTED]'
Assunto:RE: multipart/form-data problem

This has been a pretty common topic lately.  Since I am one of the last
people to ask a similar question, I thought I would share.

* Tomcat 3.2 final has a bug that garbles multi part streams. (Fix is
planned in 3.2.2, workaround available - see the last few days of list
topics).

* Prebuilt packages for handling most of the work exist from Both Sun (Java
Web Server 2.0 examples), and Oreilly ( http://java.oreilly.com/).

* Using multi part streams for binary data (such as file uploads) is
possible and does work with Tomcat (quite well and better than ASPUpload
might I add)

Best of Luck, 

Joel Kozlow 

 -Original Message- 
 From: Muehlmann, Fred [ mailto:[EMAIL PROTECTED]] 
 Sent: Thursday, December 14, 2000 11:59 AM 
 To: '[EMAIL PROTECTED]' 
 Subject: multipart/form-data problem 
 
 
 I'm trying to send Tomcat a "POST" with an 
 enctype="multipart/form-data". 
 This is for uploading a combination of form data and binary 
 files.  Tomcat 
 doesn't appear to take this type.  Netscape reports "A network error 
 occurred while sending data. (Network Error: Connection 
 aborted)".  I can 
 talk to the servlet if I'm not doing an enctype of 
 multipart/form-data. 
 I've written the Java servlet to handle this and it has been 
 functioning 
 perfectly using Sun's Java Web Server 2.0.  The only possible 
 difference 
 with the code should be where Tomcat will attempt to put the 
 uploaded file, 
 but I'm not even getting that far.  Anybody do this before 
 with Tomcat? 
 
 Thanks, 
 Fred Muehlmann 
 [EMAIL PROTECTED] 
 

-BEGIN PGP SIGNATURE-
Version: PGP 6.5.1

iQCVAwUBOj48CN0YhuJ3BUxtAQGSGgP9Hlcy2ZkrErJrLmxhCpr65XGmUhQ6EXOz
zuZQgUaV9JN0BdP9/l313m/vi+Yi0OxylvuU02nfp07nRRcmdl3ld5qmHeXouCJs
rXhgCQhCm3sUye/Bw+T0Fr9sAeuU+YE4t8Bm9ueResQw/Ge4TgKNkFVGYDgV5nTW
bthVswPkPmw=
=tiTO
-END PGP SIGNATURE-



RE: Includes

2000-12-18 Thread Kitching Simon

Hmm..seems like it should work fine. I do this sort of stuff
right now, and there are no problems.

One note: I set path to an *empty string*, not to "/"..don't
know if this makes a difference or not.

server.xml:
Context path=""
docBase="/home/ola3dev/webserver/docroot"
 debug="0"
 reloadable="false" 
/Context

directory "/home/ola3dev/webserver/docroot" is layed out like:

WEB-INF
directory1
  file1.jsp
  file2.jsp
directory2
  file3.jsp
  file4.jsp

and files in one directory can include files in another
directory without problem.

One question: what happens if you put plain html
files directly into the docBase directory. Can you
access them from tomcat??

 -Original Message-
 From: Bruce Cota [SMTP:[EMAIL PROTECTED]]
 Sent: Monday, December 18, 2000 2:46 PM
 To:   [EMAIL PROTECTED]
 Subject:  Re: Includes
 
 Thanks for the reply
 
 The problem I have is that I cannot get a context with the
 path "/" to work -- I just get 404's.  The site I'm trying
 to work on (which already exists) uses url's like
 "www.company.com/app1/index.jsp" and
 "www.company.com/app2/index.jsp", where both
 index1.jsp and index.2.jsp include urls like
 "/include/setup.jsp".   I can't seem to make this
 work in tomcat 3.2.  In tomcat 3.1 I did it by
 setting up a Context with path="/" and
 a docBase set to the parent directory which
 includes "app1", "app2", and "include".
 But in 3.2 when I do this I get 404's.
 
 Kitching Simon wrote:
 
  Hi Bruce,
 
  I'm not entirely sure what your problem is.
 
  I'm almost certain you cannot include files "across contexts"
  using jsp:include (ie run-time include). That would involve
  invoking a servlet in one context from a servlet in another
  context.
 
  I'm almost certain that %@ include url (ie compile-time include)
  would not work across contexts either. The JSP specification
  (I used jsp1.2b1) states that the url *must* be a relative URL. It
  also states that the included page is "subject to access control",
  ie only files accessable from the webapp are includable; this seems
  to rule out including any file that is not under the webapp-specific
  document root, ie nothing stored in another webapp(context) can
  be included.
 
  Why can't you have all your files in a single context?? And
  what is the relevance of the context path? Including of files
  should work regardless of what prefix the webapp(context) has
  been given.
 
  Regards,
 
  Simon
 
   -Original Message-
   From: Bruce Cota [SMTP:[EMAIL PROTECTED]]
   Sent: Monday, December 18, 2000 9:23 AM
   To:   [EMAIL PROTECTED]
   Subject:  Includes
  
   Hi, I'm a newcomer to Tomcat and recently upgraded from
   3.1 to 3.2.   I have been working on a site in which one
   directory holds files included in several sibling directories.
  
   With 3.1, I was able to use a Context with path="/", but
   with 3.2 this  does not seem to work -- I get 404's from
   tomcat in 3.2.
  
   I tried breaking up my directories into different contexts, but
   I can't seem to get includes to work across contexts -- I get
   "Bad file argument to include" when I try to include a jsp
   from the "include context"  in a file in one of the other
   contexts.  For that matter, I seem to have the same problem
   when I use anything but a relative url in an include.
  
   Am I doing something wrong?  Is there a way to  use
   a path="/" in a 3.2 context, or can I include files across
   contexts?
  
   Thanks for any advice,
   -Bruce



RE: Includes

2000-12-18 Thread Deepak C S

hi Friends,

1) Can anybody suggest How to create a Web Application structure i.e

 root/WEB-INF/web.xml
 root/WEB-INF/classes
   root/lib
   ..

  Is there a tool to develop this structure Or shd I do everything
manually i.e creating all directories??

  2) Problems in Tomcat-apache.conf

How to change the default parameters that are created when
tomcat starts?

eg: the Paths
 ApJServMount  /examples/servlet  /examples  is added by
default. 


 But what if I want to change above line 
   ApJServMount  /examples  /examples 

  without modifying directly in tomcat-apache.conf.


   3) Where to put Java Beans and how does Tomcat manage Life cycle of
bean?? How do I call Destroy() methods say for eg. to Release a Database
Connection handle which was created in a constructor??

  Thanx in Advance,
  Deepu

Thanks and Regards,

Deepak C. S.
Planetasia Ltd,
A Microland Group Company,
Bangalore,India
Contact: 5522252 54 57 58 58 Extn 544
Email: [EMAIL PROTECTED]

 --
 From: Kitching Simon[SMTP:[EMAIL PROTECTED]]
 Reply To: [EMAIL PROTECTED]
 Sent: Monday, December 18, 2000 7:33 PM
 To:   '[EMAIL PROTECTED]'
 Subject:  RE: Includes
 
 Hmm..seems like it should work fine. I do this sort of stuff
 right now, and there are no problems.
 
 One note: I set path to an *empty string*, not to "/"..don't
 know if this makes a difference or not.
 
 server.xml:
 Context path=""
 docBase="/home/ola3dev/webserver/docroot"
  debug="0"
  reloadable="false" 
 /Context
 
 directory "/home/ola3dev/webserver/docroot" is layed out like:
 
 WEB-INF
 directory1
   file1.jsp
   file2.jsp
 directory2
   file3.jsp
   file4.jsp
 
 and files in one directory can include files in another
 directory without problem.
 
 One question: what happens if you put plain html
 files directly into the docBase directory. Can you
 access them from tomcat??
 
  -Original Message-
  From:   Bruce Cota [SMTP:[EMAIL PROTECTED]]
  Sent:   Monday, December 18, 2000 2:46 PM
  To: [EMAIL PROTECTED]
  Subject:Re: Includes
  
  Thanks for the reply
  
  The problem I have is that I cannot get a context with the
  path "/" to work -- I just get 404's.  The site I'm trying
  to work on (which already exists) uses url's like
  "www.company.com/app1/index.jsp" and
  "www.company.com/app2/index.jsp", where both
  index1.jsp and index.2.jsp include urls like
  "/include/setup.jsp".   I can't seem to make this
  work in tomcat 3.2.  In tomcat 3.1 I did it by
  setting up a Context with path="/" and
  a docBase set to the parent directory which
  includes "app1", "app2", and "include".
  But in 3.2 when I do this I get 404's.
  
  Kitching Simon wrote:
  
   Hi Bruce,
  
   I'm not entirely sure what your problem is.
  
   I'm almost certain you cannot include files "across contexts"
   using jsp:include (ie run-time include). That would involve
   invoking a servlet in one context from a servlet in another
   context.
  
   I'm almost certain that %@ include url (ie compile-time include)
   would not work across contexts either. The JSP specification
   (I used jsp1.2b1) states that the url *must* be a relative URL. It
   also states that the included page is "subject to access control",
   ie only files accessable from the webapp are includable; this seems
   to rule out including any file that is not under the webapp-specific
   document root, ie nothing stored in another webapp(context) can
   be included.
  
   Why can't you have all your files in a single context?? And
   what is the relevance of the context path? Including of files
   should work regardless of what prefix the webapp(context) has
   been given.
  
   Regards,
  
   Simon
  
-Original Message-
From: Bruce Cota [SMTP:[EMAIL PROTECTED]]
Sent: Monday, December 18, 2000 9:23 AM
To:   [EMAIL PROTECTED]
Subject:  Includes
   
Hi, I'm a newcomer to Tomcat and recently upgraded from
3.1 to 3.2.   I have been working on a site in which one
directory holds files included in several sibling directories.
   
With 3.1, I was able to use a Context with path="/", but
with 3.2 this  does not seem to work -- I get 404's from
tomcat in 3.2.
   
I tried breaking up my directories into different contexts, but
I can't seem to get includes to work across contexts -- I get
"Bad file argument to include" when I try to include a jsp
from the "include context"  in a file in one of the other
contexts.  For that matter, I seem to have the same problem
when I use anything but a relative url in an include.
   
Am I doing something wrong?  Is there a way to  use
a path="/" in a 3.2 context, or can I include files across
contexts?
   
Thanks for any advice,
-Bruce
 



AW: JDBC Realm documentation

2000-12-18 Thread Kurt, Oliver

Okay then let me explain what I did and what didn't work

1.) I followed the instructions in the jdbc-realm howto (what means, that i
created the tables in the database and commented the line
"org.apache.tomcat.request.SimpleRealm" and inserted the following:

RequestInterceptor 
className="org.apache.tomcat.request.JDBCRealm"
debug="99"
driverName="oracle.jdbc.driver.OracleDriver"
connectionURL="jdbc:oracle:thin:@c_mgeiss:1521:testdb"
connectionName="utest"
connectionPassword="utest"
userTable="users" 
userNameCol="user_name" 
userCredCol="user_pass"
userRoleTable="user_roles" 
roleNameCol="role_name" /

2.) Now I thought the web.xml file has to be modified, so I added the
following lines (which I found in an old mail from this list):

security-constraint
   web-resource-collection
  web-resource-nameWebApp/web-resource-name
  url-pattern*.jsp/url-pattern
  http-methodDELETE/http-method
  http-methodGET/http-method
  http-methodPOST/http-method
  http-methodPUT/http-method
   /web-resource-collection
   auth-constraint
  role-nameadmin/role-name
   /auth-constraint
 /security-constraint

 login-config
   auth-methodBASIC/auth-method
   realm-nameokurt/realm-name
 /login-config

3.) but when I try to access an arbitrary jsp file in my tomcat\webapps\test
directory, the jsp file is display. And no security-check is done.


That was the reason, why I thought that the web.xml file has to contain some
parameter-tags for security checking.
If the web.xml file needn't to be modified, what to do else?





-Ursprüngliche Nachricht-
Von: Nacho [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 18. Dezember 2000 15:46
An: '[EMAIL PROTECTED]'
Betreff: RE: JDBC Realm documentation


 
 Hi again,
 
 it's actually pretty bad that there are no docs at all.
 
 I think my main problem are the entries in the web.xml file, which are
 unfortunately not described in the howto file (I do know that this is
 described in the servlet-api-specification, but this is not 
 very clear to
 me). 

This is unrelated to JDBCRealm itself, and the only and best doc is the
spec itself, or you can buy some books on that, or try to review
examples context web.xml for a good example of almost everything web.xml
can have, or you can post here your questions and people will help you.


 It would be very nice if someone can post the basically 
 needed entries in
 the web.xml file for a JDBCRealm.

Nothing so far not need for a regular application that uses Container
managed security, JDBRealm only plays a role of providing the
credentials for users, the very same that SimpleRealm 
conf/tomcat-users.xml do for examples context, there is nothing that
need to know about JDBCRealm to write a correct web.xml for your webapp.

 
 Thanks in advance
 Oliver Kurt
  

Saludos ,
Ignacio J. Ortega



RE: JDBC Realm documentation

2000-12-18 Thread Nacho

   url-pattern*.jsp/url-pattern

I dont have the spec in the wall... but i want to remember that spec
does not have defined this kind of wildcard matching (with the wildchar
as prefix ) it only deals with wildchars as suffix.., so your need to
rewrite your url-pattern ..


Saludos ,
Ignacio J. Ortega




Re: Tomcat + Windows 2000?

2000-12-18 Thread Harold Trammel

I am having similar problems with Tomcat. I have been running Apache for 
sometime without problems. I downloaded Tomcat 3.2, followed the 
directions, and had the same "flashing" experience stated here.

I edited the tomcat.bat file and added the -verbose option to the runServer 
command. This results in the following:

--- RESULTS ---

D:\Tomcat\bintomcat run
Including all jars in d:\Tomcat\\lib in your CLASSPATH.

Using CLASSPATH: 
d:\Tomcat\\classes;d:\Tomcat\\lib\ant.jar;d:\Tomcat\\lib\jasper
.jar;d:\Tomcat\\lib\jaxp.jar;d:\Tomcat\\lib\parser.jar;d:\Tomcat\\lib\servlet.ja
r;d:\Tomcat\\lib\webserver.jar;C:\Program 
Files\OpenLink\jdk1.2\megathin2.jar;C:
\Program 
Files\OpenLink\jdk1.2\opljdbc2.jar;.;C:\SQLLIB\java\db2java.zip;C:\SQLL
IB\java\runtime.zip;C:\SQLLIB\java\sqlj.zip;C:\SQLLIB\bin;;d:\jdk1.3\lib\tools.j
ar

[Opened d:\jdk1.3\jre\lib\rt.jar]
[Opened d:\jdk1.3\jre\lib\i18n.jar]
[Opened d:\jdk1.3\jre\lib\sunrsasign.jar]
[Loaded java.lang.Object from d:\jdk1.3\jre\lib\rt.jar]

... bunch of successful load statements omitted ...

[Loaded sun.misc.Launcher$3 from d:\jdk1.3\jre\lib\rt.jar]
[Loaded sun.net.www.protocol.file.Handler from d:\jdk1.3\jre\lib\rt.jar]
Usage: java [-options] class [args...]
(to execute a class)
or  java -jar [-options] jarfile [args...]
(to execute a jar file)

where options include:
 -cp -classpath directories and zip/jar files separated by ;
   set search path for application classes and resources
 -Dname=value
   set a system property
 -verbose[:class|gc|jni]
   enable verbose output
 -version  print product version and exit
 -showversion  print product version and continue
 -? -help  print this help message
 -Xprint help on non-standard options
[Loaded java.lang.Shutdown$Lock from d:\jdk1.3\jre\lib\rt.jar]
D:\Tomcat\bin
--- END RESULTS -

Does this help anyone solve the problem?  Conflicting java 
classes?  Missing jar files?

Thanks


___
Harold L. Trammel
ASPCA Animal Poison Control Center
Ph: 217/337-5030x260  Fax: 217/337-0599  http://www.napcc.aspca.org
"... encourage one another daily ..." Heb 3:13




AW: JDBC Realm documentation

2000-12-18 Thread Kurt, Oliver

I found, what I did wrong !!!

The security-specific entries in the web.xml file MUST be in a
webapplication-specific web.xml file under WEB-INF and not in /conf/web.xml.

This is - for someone who is familiar with all the stuff - totally clear.
But for a beginner it isn't. 

However, muchas gracias Ignacio

Oliver Kurt


ps. The url-mapping *.jsp is valid.

-Ursprüngliche Nachricht-
Von: Nacho [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 18. Dezember 2000 16:15
An: '[EMAIL PROTECTED]'
Betreff: RE: JDBC Realm documentation


   url-pattern*.jsp/url-pattern

I dont have the spec in the wall... but i want to remember that spec
does not have defined this kind of wildcard matching (with the wildchar
as prefix ) it only deals with wildchars as suffix.., so your need to
rewrite your url-pattern ..


Saludos ,
Ignacio J. Ortega



Apache-Tomcat configuration problems: PLEASE HELP

2000-12-18 Thread Dave Emerson

Hi, I've been trying to get Tomcat and Apache configured to avoid the need 
to reference the port number in the URL.  Instead of 
http://localhost:8080/, I want to be able to say 
http://localhost/servlet/.   Isn't that what mod_jk is supposed to do for 
me?  At the moment I just like to get the same display of the default 
static web page that displays when I enter http://localhost:8080/.  Am I 
missing something fundamental here?

I've followed mod_jk-howto, apache-tomcat-howto, workers-howto.  My 
configuration is entirely vanilla.  Tomcat works fine standalone.  Apache 
works fine standalone (including virtual hosts).

My software is as follows:
OS - Win2000 Server
Apache - 1.3.14
JKD - 1.3
Tomcat - 3.2.1

excerpts from various config files and logs are:

###
SERVER.XML:
except for enabling debugging and the host section below, the server.xml 
file is as shipped with 3.2.1
###

 Host name="127.0.0.1" 
Context path=""
 docBase="webapps/examples" /
Context path="/examples"
 docBase="webapps/ROOT" /
 /Host


###
HTTPD.CONF
except for setting the following, the httpd.conf is as shipped with 1.3.14
###

ServerRoot "i:/program files/Apache-1.3.14"
DocumentRoot "i:/program files/Apache-1.3.14/htdocs"
Directory "i:/program files/Apache-1.3.14/htdocs"
ServerName localhost

include I:/Dev/jakarta-tomcat/conf/mod_jk.conf

NameVirtualHost *

VirtualHost *
 ServerName localhost
 DocumentRoot "i:/program files/Apache-1.3.14/htdocs"
 JkMount /*.jsp ajp12
 JkMount /servlet/* ajp12
/VirtualHost
VirtualHost *
 ServerAdmin [EMAIL PROTECTED]
 DocumentRoot "I:/DataFiles/SabrewingRoot"
 ServerName www.sabrewing.com
 ErrorLog logs/www.sabrewing.com-error_log
 JkMount /*.jsp ajp12
 JkMount /servlet/* ajp12
 CustomLog logs/www.sabrewing.com-access_log common
/VirtualHost


###
MOD_JK.CONF
###

###
# Auto generated configuration. Dated: Sun Dec 17 08:14:13 EST 2000
###

#
# The following line instructs Apache to load the jk module
#
LoadModule jk_module modules/mod_jk.dll

JkWorkersFile "I:/Dev/jakarta-tomcat/conf/workers.properties"
JkLogFile "I:/Dev/jakarta-tomcat/logs/mod_jk.log"

#
# Log level to be used by mod_jk
#
JkLogLevel debug

###
# SSL configuration   #
#
# By default mod_jk is configured to collect SSL information from
# the apache environment and send it to the Tomcat workers. The
# problem is that there are many SSL solutions for Apache and as
# a result the environment variable names may change.
#
# The following (commented out) JK related SSL configureation
# can be used to customize mod_jk's SSL behaviour.
#
# Should mod_jk send SSL information to Tomact (default is On)
# JkExtractSSL Off
#
# What is the indicator for SSL (default is HTTPS)
# JkHTTPSIndicator HTTPS
#
# What is the indicator for SSL session (default is SSL_SESSION_ID)
# JkSESSIONIndicator SSL_SESSION_ID
#
# What is the indicator for client SSL cipher suit (default is SSL_CIPHER)
# JkCIPHERIndicator SSL_CIPHER
#
# What is the indicator for the client SSL certificated (default is 
SSL_CLIENT_CERT)
# JkCERTSIndicator SSL_CLIENT_CERT
#
# #
###

#
# Root context mounts for Tomcat
#
JkMount /*.jsp ajp12
JkMount /servlet/* ajp12

#
# Auto configuration for the /examples context starts.
#

#
# The following line makes apache aware of the location of the /examples 
context
#
Alias /examples "I:/Dev/jakarta-tomcat/webapps/examples"
Directory "I:/Dev/jakarta-tomcat/webapps/examples"
 Options Indexes FollowSymLinks
/Directory

#
# The following line mounts all JSP files and the /servlet/ uri to tomcat
#
JkMount /examples/servlet/* ajp12
JkMount /examples/*.jsp ajp12

#
# The following line prohibits users from directly accessing WEB-INF
#
Location "/examples/WEB-INF/"
 AllowOverride None
 deny from all
/Location
#
# Use Directory too. On Windows, Location doesn't work unless case matches
#
Directory "I:/Dev/jakarta-tomcat/webapps/examples/WEB-INF/"
 AllowOverride None
 deny from all
/Directory

#
# The following line prohibits users from directly accessing META-INF
#

RE: Apache doesn't start with mod_jk

2000-12-18 Thread Palumbo, Mark

How did you build mod_jk ?

Did you use a special Makefile etc?  If so could you please share it with
everyone?  I'm trying to build mod_jk under AIX, it seems most people here
are using the supported platforms of solaris or linux.  :)

I keep getting clean compiles, but the link process always fails with:
apxs:Break: Command failed with rc=8

Somewhat related to your problem, we have been able to compile/build a
mod_jserv.so also, but no luck building a mod_jk.so...

Thanks!
-Mark-

 -Original Message-
 From: Jan Stevens [mailto:[EMAIL PROTECTED]]
 Sent: Monday, December 18, 2000 8:21 AM
 To: [EMAIL PROTECTED]
 Subject: Apache doesn't start with mod_jk
 
 
 Hi,
 When I try to start Apache with mod_jk, Apache doesn't start 
 without any
 messages.
 Compiling of mod_jk goes ok.
 I'm using Apache on an Alpha 1000 with Tru64 4.0D
 Everything works fin ewith mod_jserv.
 Am I missing something?
 
 Jan
 
 



AW: Apache/Tomcat 3.2.1 session error - help!

2000-12-18 Thread Hanusch, Hartwig

Hi Henri,

indeed am i (trying to) use ajp13 with jk_mod but the error is reproducible
with jserv to.

Here are the code snipples 
-

public void doGet(HttpServletRequest req, HttpServletResponse res) throws
ServletException, IOException
{
HttpSession currentSession = req.getSession(true);

if (!(sessions_.contains(currentSession)))
{
System.out.println("in DoGET: found new session");
sessions_.add(currentSession);
currentSession.setAttribute("phase", "A");
System.out.println("session: "+ currentSession);
}

if(req.getParameter("user")!= null)
currentSession.setAttribute("user",
req.getParameter("user"));


if (everything OK)
{
out.println("form method=\"POST\" action=" +
redirectToMyself_ + " target=\"_self\"");
out.println("input type=\"hidden\" name=\"UserTyp\"
value=\"Gast\"input type=\"hidden\" name=\"T1\"value=\"GastReg\"");
out.println("input type=\"hidden\" name=\"T1\"
value=\"gastReg\"");
out.println("submit ");

}
}


public void doPost (HttpServletRequest req, HttpServletResponse res) throws
ServletException, IOException
{
System.out.println("in DoPost");
System.out.println("req.getSession -" + req.getSession(false));
}

so that gives two different session objects (), and req.getSession(false)
shouldnt return a new session!

Thanks for your help :)

Cheers Hartwig






Re: Tomcat 3.2 - getRequestDispatcher().forward

2000-12-18 Thread Matt Goss

G,
I'm not totally sure, but you may want to try renaming the subdirectory to
something other that admin (Apache may be picking it up as a call for its
mapping of /admin/ to the admin webapp...
Matt

Graeme Wallace wrote:

 So its a bug in 3.2 then.

 -Original Message-
 From: Matt Goss [mailto:[EMAIL PROTECTED]]
 Sent: Monday, December 18, 2000 8:24 AM
 To: [EMAIL PROTECTED]
 Subject: Re: Tomcat 3.2 - getRequestDispatcher().forward

 Graeme,
 No, the forwarded request is treated as the same request.
 Matt

 Graeme Wallace wrote:

  Hi,
 
  Is the behavior of getRequestDispatcher(pagelocation).forward(req,res)
  supposed to interpret
  the page location as if it was a new request to Tomcat ?
 
  ie. if I have a webapps that has an admin subdirectory and I want to
 forward
  to its
  index.jsp, I used to do
  getRequestDispatcher("/admin/index.jsp").forward(req,res)
 
  but if i do that with Tomcats default admin webapp still configured it
 gets
  the forward
  to process instead of tomcat picking up the file.
 
  regards,
 
  G.


begin:vcard 
n:Goss;Matt
tel;fax:919-657-1501
tel;work:919-657-1432
x-mozilla-html:FALSE
url:www.rtci.com
org:RTCI;Custom Solutions
adr:;;201 Shannon Oaks Circle;Cary;NC;27511;US
version:2.1
email;internet:[EMAIL PROTECTED]
title:Web Developer
fn:Matt
end:vcard



automatic Application restart on ServletException

2000-12-18 Thread Andreas Schildbach

What is the best way to tell Tomcat (3.2) to restart an entire application
(including all servlets) on a ServletException or an UnavailableException?

Or is there another way for a servlet to tell Tomcat to restart the
application?

Gruss,

  Andreas Schildbach
  financial media service





RE: JDBC Realm documentation

2000-12-18 Thread Nacho

 I found, what I did wrong !!!

Great to hear that

 However, muchas gracias Ignacio
 

de Nada.

 
 ps. The url-mapping *.jsp is valid.

Yes i did read the spec ( section 10.2 ), it seems that the type of
url-pattern that are not defined is with a url-pattern of this class
"*/pepe.jsp" not with the one you have posted, something like "*.jsp"
 i will put spec in the wall someday ASAP, :-) 


Saludos ,
Ignacio J. Ortega




Common Tomcat Installation Bugs Fix in Windows OS

2000-12-18 Thread isu:jwkoh

These are all the errors I encountered and fixed overnight during Tomcat
installation. ):-(

1. Error Message, "Out of environment space:" -- right click on startup.bat
and click on property and click memory tab and choose initial environment
drop-down box and choose 2048 or bigger. It doesn't have to be 2048+ but a
bigger number has the better chance of working. You can choose property by
clicking the top left corner of the console window.

For reference, I saw in a website a guy says - To solve the 'Out of
Environment Space' error you must edit CONFIG.SYS (again, the old MS-DOS not
so defunct operating system presence). You must add the following line:
SHELL=C:\COMMAND.COM /E:8192 /P
please replace C:\COMMAND.COM to the correct location if you moved
COMMAND.COM to another location. The "/E:8192" allocates 8k to be used by
environment variables. The maximum allowed is 32k (35736). The last
parameter, "/P", is used to make this COMMAND.COM instance resident in
memory and owner of main environment space (from which every process
receives a copy).

2. Error Message, "only DOS 8.3 names may be used in TOMCAT_HOME!"-- You
are using Windows Explorer folder name find dos name of the folder(=
directory) using DIR command in DOS console. If you have long dir name in
windows explorer such as "jakarta-tomcat-3.2.1", it will show up as jakart~1
in DOS. Use this 8 character long name.

2a. Use simple folder(=directory) names for JDK(=J2SDK 1.3) and TOMCAT. I
used default names "j2sdk1.3" and "jakarta-tomcat-3.2.1" They caused
conflicts in *.bat files when starting tomcat. Especially DON'T USE "." in
those folder names. USE 8 characters-long name, or find matching DOS DIR
name for the windows explorer long folder names. So I uninstalled and
reinstalled JDK in the folder,"j2sdk" and tomcat in the folder, "tomcat".

3. Common and Hard-to-find ERROR: Type in SET JAVA_HOME=C:\JDK in the first
line after REM lines (REM lines are comment lines so they are ignored in
execution)in startup.bat file. * VERY IMPORTANT NOT TO HAVE SPACES
before and after "=" *





RE: Apache doesn't start with mod_jk

2000-12-18 Thread Dave Newton

See my previous message regarding the final link step (it's also
in the documentation).

 I keep getting clean compiles, but the link process always fails with:
 apxs:Break: Command failed with rc=8

Dave




Standalone Tomcat

2000-12-18 Thread ECIS Gast

Dear Ladies and Gentleman,
i have a problem to run Tomcat 3.2.1 as Standalone-Server, i mean wihout a Web-Server. 
I can start the Tomcat-Server, but i can't execute the servlets in the webbrowser (for 
example with command "http://localhost/servlet/MyTestServlet").
Reportedly to the Guideline of Tomcat 3.2.1 its possible to run it without a WebServer.

Stand-alone servlet containers
These are an integral part of the web server. This is the case when using a Java-based 
web server, for example the servlet container that is part of the JavaWebServer. 
Stand-alone is the default mode used by Tomcat.
Most web servers, however, are not Java-based, which leads us to the next two 
container types

and

How Do I Install the Binary Version of Tomcat?
Very simple. You should:
*   Download the zip/tar.gz/whatever file from 
http://jakarta.apache.org/downloads/binindex.html. 
*   Unzip the file into some directory (say foo). This should create a new 
subdirectory named "tomcat". 
*   Change directory to "tomcat" and set a new environment variable (TOMCAT_HOME) 
to point to the root directory of your Tomcat hierarchy. 
On Win32 you should type: 
"set TOMCAT_HOME=foo\tomcat" 
On UNIX you should type: 
for bash/sh "TOMCAT_HOME=foo/tomcat ; export TOMCAT_HOME"
for tcsh "setenv TOMCAT_HOME foo/tomcat" 
*   Set the environment variable JAVA_HOME to point to the root directory of your 
JDK hierarchy, then add the Java interpreter to your PATH environment variable. 
That's it! You can now execute Tomcat and it will run as a stand-alone (type 1) 
servlet container. 

I execute this steps (for Windows), but i can't execute the servlets.
What must i do?

Regards
Sadettin Özdil

 




Re: Standalone Tomcat

2000-12-18 Thread Trevor Little

List the errors that you're getting please


ECIS Gast wrote:
 
 Dear Ladies and Gentleman,
 i have a problem to run Tomcat 3.2.1 as Standalone-Server, i mean wihout a 
Web-Server. I can start the Tomcat-Server, but i can't execute the servlets in the 
webbrowser (for example with command "http://localhost/servlet/MyTestServlet").
 Reportedly to the Guideline of Tomcat 3.2.1 its possible to run it without a 
WebServer.
 
 Stand-alone servlet containers
 These are an integral part of the web server. This is the case when using a 
Java-based web server, for example the servlet container that is part of the 
JavaWebServer. Stand-alone is the default mode used by Tomcat.
 Most web servers, however, are not Java-based, which leads us to the next two 
container types
 
 and
 
 How Do I Install the Binary Version of Tomcat?
 Very simple. You should:
 *   Download the zip/tar.gz/whatever file from 
http://jakarta.apache.org/downloads/binindex.html.
 *   Unzip the file into some directory (say foo). This should create a new 
subdirectory named "tomcat".
 *   Change directory to "tomcat" and set a new environment variable 
(TOMCAT_HOME) to point to the root directory of your Tomcat hierarchy.
 On Win32 you should type:
 "set TOMCAT_HOME=foo\tomcat"
 On UNIX you should type:
 for bash/sh "TOMCAT_HOME=foo/tomcat ; export TOMCAT_HOME"
 for tcsh "setenv TOMCAT_HOME foo/tomcat"
 *   Set the environment variable JAVA_HOME to point to the root directory of 
your JDK hierarchy, then add the Java interpreter to your PATH environment variable.
 That's it! You can now execute Tomcat and it will run as a stand-alone (type 1) 
servlet container.
 
 I execute this steps (for Windows), but i can't execute the servlets.
 What must i do?
 
 Regards
 Sadettin Özdil
 




Re: Standalone Tomcat

2000-12-18 Thread Clifford . Okoro




Try using http://localhost:8080/servlet/MyTestServlet

If you're using tomcat and have not changed the default port, you'll have to use
port 8080 as above.

Clifford







ECIS Gast [EMAIL PROTECTED] on 12/18/2000 04:45:38 PM


Please respond to [EMAIL PROTECTED]





  
  
  
 To:  "'[EMAIL PROTECTED]'"  
  [EMAIL PROTECTED]
  
 cc:  (bcc: Clifford Okoro/Harrow/Ladbrokes)  
  
  
  
 Subject: Standalone Tomcat   
  










Dear Ladies and Gentleman,
i have a problem to run Tomcat 3.2.1 as Standalone-Server, i mean wihout a
Web-Server. I can start the Tomcat-Server, but i can't execute the servlets in
the webbrowser (for example with command "http://localhost/servlet/MyTestServlet
").
Reportedly to the Guideline of Tomcat 3.2.1 its possible to run it without a
WebServer.

Stand-alone servlet containers
These are an integral part of the web server. This is the case when using a
Java-based web server, for example the servlet container that is part of the
JavaWebServer. Stand-alone is the default mode used by Tomcat.
Most web servers, however, are not Java-based, which leads us to the next two
container types

and

How Do I Install the Binary Version of Tomcat?
Very simple. You should:
*Download the zip/tar.gz/whatever file from 
http://jakarta.apache.org/downloads/binindex.html.
*Unzip the file into some directory (say foo). This should create a new
subdirectory named "tomcat".
*Change directory to "tomcat" and set a new environment variable
(TOMCAT_HOME) to point to the root directory of your Tomcat hierarchy.
   On Win32 you should type:
   "set TOMCAT_HOME=foo\tomcat"
   On UNIX you should type:
   for bash/sh "TOMCAT_HOME=foo/tomcat ; export TOMCAT_HOME"
   for tcsh "setenv TOMCAT_HOME foo/tomcat"
*Set the environment variable JAVA_HOME to point to the root directory of
your JDK hierarchy, then add the Java interpreter to your PATH environment
variable.
That's it! You can now execute Tomcat and it will run as a stand-alone (type 1)
servlet container.

I execute this steps (for Windows), but i can't execute the servlets.
What must i do?

Regards
Sadettin Özdil








__


   This communication and any files transmitted with it are confidential and
   intended solely for the use of the individual or entity to whom they are
   addressed. If you have received it in error please notify the sender or
   [EMAIL PROTECTED] or telephone +44 (0)20 8868 8899. The unauthorised
   use, disclosure, copying or alteration of this message is forbidden.
   Ladbrokes Limited will not be liable for direct, special, indirect or
   consequential damage as a result of any virus being passed on, or arising
   from alteration of the contents of this message by a third party. Please note
   that in replying to this mail, you are granting the right for that reply to
   be forwarded to any other individual and to be read by a surrogate in the
   event that the intended recipient is out of the office or is no longer
   employed by the company.
   Any views expressed by an individual within this message do not necessarily
   reflect the views of the firm.




TomCat into NT environment

2000-12-18 Thread Jose Euclides da Silva Junior - DIGR.O

-BEGIN PGP SIGNED MESSAGE-

What is the way to use TomCat into NT 4.0 Server? Just as a Stand-alone
web-server, or as a NT service or even mixed with IIS. I think that this
last option is the worst...

Best Regards,

José Euclides Júnior
__
E-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] 
[EMAIL PROTECTED]
http://euclides.8m.com


-BEGIN PGP SIGNATURE-
Version: PGP 6.5.1

iQCVAwUBOj5xgd0YhuJ3BUxtAQGcAAP9E6cHc9BFGA0j8xr5rvVcnv/v5f3GI4WY
8IwUtybgqEZNQxXH9Vvdw6X0fqZzK1urSYj5VykP1LM1n2NbnJiPoT3QVK79hghF
guylD+O3InOOSi/RRet48CA52iwONzyHJ7yRhODfsdZH7CLxKkfE4pZFjvzg856N
XgGR6qBFHRw=
=c8vz
-END PGP SIGNATURE-



At Value must be quoted. Error

2000-12-18 Thread Donald Mullaney




Help. I am running Apache 1.3 and Tomcat on 
Caldera's eServer. I was trying make modifications to the default 
server.xml file. After the modifications restarted tomcat and got the 
errors below. I also returned the server.xml to the orginal state and I 
still get the same error. Any ideas? What is the error in reference 
to? I have search the documentation and can't find anything that 
relates.

[root@host bin]# ./startup.shUsing classpath: 
.:/usr/local/jakarta-tomcat/lib/ant.jar:/usr/local/jakarta-tomcat/lib/jasper.jar:/usr/local/jakarta-tomcat/lib/servlet.jar:/usr/local/jakarta-tomcat/lib/test:/usr/local/jakarta-tomcat/lib/webserver.jar:/usr/local/jakarta-tomcat/lib/xml.jar:/usr/java/lib/tools.jar:.:/usr/local/jakarta-tomcat/src:/usr/local/lib/postgresql.jar:/usr/local/jakarta-tomcat/src:/usr/local/jakarta-tomcat/src[root@host 
bin]# ERROR reading /usr/local/jakarta-tomcat/conf/server.xmlAt Value must 
be quoted.FATAL: configuration 
errorjava.lang.NullPointerException: 
at 
org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:221) 
at 
org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:143) 
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163)

Thanks,
Donald 
MullaneyMelting Sand, LLC7660 E. Broadway Blvd Suite 
308Tucson, AZ 85710E-Mail: [EMAIL PROTECTED]Phone: 520.918.SAND 
(7263)


RE: multiple JVMs: how to manage tomcat-apache.conf?

2000-12-18 Thread James Morgenstein

George-

Instead of using the auto-generated tomcat-apache.conf, you could take a
copy of the tomcat-apache.conf for each of your configurations and rename it
to something else, e.g., tomcat-apache.conf.prod and tomcat-apache.conf.dev.

You could then include your renamed apache configuration files in the
httpd.conf.

James

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
George Armhold
Sent: Monday, December 18, 2000 1:03 PM
To: [EMAIL PROTECTED]
Subject: multiple JVMs: how to manage tomcat-apache.conf?


With Tomcat 3.1:

I'm trying to run multiple JVM's on the same machine (production and dev
setup.)  I've successfully modified my tomcat.conf to support the two
ApJ mountpoints, created a server-prod.xml and a server-dev.xml.  The
trouble is that when the second Tomcat process starts up it overwrites
the conf/tomcat-apache.conf file.  Thus apache only sees the container
aliases for the most recently started Tomcat JVM.  Is there any way to
specify to tomcat where to write its tomcat-apache.conf output?

Thanks  Happy Holidays to everyone.

--
George Armhold
Rutgers University
Bioinformatics Initiative




RE: Apache doesn't start with mod_jk

2000-12-18 Thread Dave Newton

Here's the relevent portion:

"Working with mod_jk" at
http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/mod_jk-howto.html

It sez:

"Your build may fail because the object files from the ../jk directory have
been compiled to the current directory, rather than their source directory.
Running gcc -shared -o mod_jk.so *.o should finish the build."

Hope that helps!

Dave




RE: Bizarre problem -- works fine, then doesn't

2000-12-18 Thread Ethan Michaels

I have restarted Tomcat again this morning, and all the material that was
in the logs is no longer there (since the restart). That seems a little
weird. Is that normal?

Anyway, I recall that none of them had anything that looked like an error
message. The jasper log recorded a series of requests and the parameters
that were sent. The servlet log just had a series of about 15 entries that
began with

Context log path= ...

I don't remember exactly what was in the Tomcat log. I'll have to wait til
the thing stops working again and take a look. Meanwhile, I'll explore this
dropped database connection concept. Maybe there's something to that.

Thanks,

Ethan

 I have discovered that restarting Tomcat returns everything to smooth
 functioning. It appears that somehow, in the middle of the night, some
 condition changes and causes the Web apps to fail. What could be
 happening?

So, ah, is the only information you have to go on? For instance, what's
in the logs? (Is there a dropped database connection, like there was in
mind?)

Dave








Ethan Michaels
Graphics

METROPOLITAN TRANSPORTATION COMMISSION
Transportation planning, financing, and
coordinating for the San Francisco Bay Area
http://www.mtc.ca.gov/







getting a jsp file to always be executed on form-based authentification

2000-12-18 Thread Joakim Verona

hello,

i would like a certain jsp file to always be executed when form based auth succeeds, 
regardless of which
resource we are trying to get at, something like an event-handler for the auth event.

i cant really find a provission for such a function, other than having some session 
variable
to check against, and including the same piece of code in every page.

This is doable, but is there any more elegant solution?

I will need to make my own security interceptor at some stage. Should I take care of 
this need in
the interceptor?

-- 
Joakim Verona
[EMAIL PROTECTED]
http://www.verona.se/



Re: At Value must be quoted. Error

2000-12-18 Thread Donald Mullaney

Thxs Simon,

I had a typo that I was looking right at and I could not see.  Nothing like
staring to hard..

Is there a document anywhere that describes error messages?  The error
message was not clear to me, but then again I am new to this.

Thanks again,
Donald

- Original Message -
From: "Kitching Simon" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, December 18, 2000 11:03 AM
Subject: RE: At Value must be quoted. Error


 Hi Don,

 It looks to me like the XML parser that tomcat uses to read the file is
 objecting to something in the file. Minor typos are sometimes damn
 hard to spot :-)

 I suggest:
 (a)
 try commenting out blocks of the server.xml file, and restarting.
 of course, tomcat won't *run* properly with only half a config file, but
 you should be able to see when the config file at least parses.
 By the old divide-and-conquer method, you should be able to narrow
 things down to the point you can spot the problem,
 (b)
 If you have made only minor changes to the default file, you can try
 using "diff" to compare the version in the distribution with the one that
 doesn't work.
 (c)
 if all else fails, try posting the server.xml file to this group...

 Cheers,

 Simon

  -Original Message-
  From: Donald Mullaney [SMTP:[EMAIL PROTECTED]]
  Sent: Monday, December 18, 2000 6:51 PM
  To: [EMAIL PROTECTED]
  Subject: At Value must be quoted.  Error
 
 
  Help.  I am running Apache 1.3 and Tomcat on Caldera's eServer.  I was
  trying make modifications to the default server.xml file.  After the
  modifications restarted tomcat and got the errors below.  I also
returned
  the server.xml to the orginal state and I still get the same error.  Any
  ideas?  What is the error in reference to?  I have search the
  documentation and can't find anything that relates.
 
  [root@host bin]# ./startup.sh
  Using classpath:
 
.:/usr/local/jakarta-tomcat/lib/ant.jar:/usr/local/jakarta-tomcat/lib/jasp
 
er.jar:/usr/local/jakarta-tomcat/lib/servlet.jar:/usr/local/jakarta-tomcat
 
/lib/test:/usr/local/jakarta-tomcat/lib/webserver.jar:/usr/local/jakarta-t
 
omcat/lib/xml.jar:/usr/java/lib/tools.jar:.:/usr/local/jakarta-tomcat/src:
 
/usr/local/lib/postgresql.jar:/usr/local/jakarta-tomcat/src:/usr/local/jak
  arta-tomcat/src
  [root@host bin]# ERROR reading /usr/local/jakarta-tomcat/conf/server.xml
  At Value must be quoted.
 
  FATAL: configuration error
  java.lang.NullPointerException:
  at
  org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:221)
  at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:143)
  at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163)
 
  Thanks,
 
  Donald Mullaney
 
  Melting Sand, LLC
  7660 E. Broadway Blvd Suite 308
  Tucson, AZ 85710
 
  E-Mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
  Phone: 520.918.SAND (7263)





Load Balancing / multiple mount points

2000-12-18 Thread Shahed Ali

Hi,

I am trying to load balance a virtual host running on apache 1.3.14 with
tomcat 3.2.


I have setup multiple worker threads and have Multiple JkMount points for
the same virtual
host pointing to the same mount point.

i.e
I have the following directives under the same apache virtual host (mapped
to tomcat context) directive.
JkMount /*.jsp ajp13a
JkMount /*.jsp ajp13b
JkMount /*.jsp ajp13c

I am running multiple instances of Tomcat from the same TOMCAT_HOME, but
with different server.xml files and
each server.xml file has its own log and work directories and the workers
listen on different ports.

Is this an acceptable way of doing Load Balancing for 1 website / context ?

Are there any docs on how to detrmine the load balance factor etc ?

Thanks
Shahed.





Re: getting a jsp file to always be executed on form-based authentification

2000-12-18 Thread Craig R. McClanahan

Joakim Verona wrote:

 hello,

 i would like a certain jsp file to always be executed when form based auth succeeds, 
regardless of which
 resource we are trying to get at, something like an event-handler for the auth event.

 i cant really find a provission for such a function, other than having some session 
variable
 to check against, and including the same piece of code in every page.

 This is doable, but is there any more elegant solution?


Doing this goes quite a lot against the intent of what form-based authentication is 
all about.

Have you ever gone to a website with a protected area, where it popped up the 
username/password dialog box?
(In other words, you were using BASIC authentication).  What happens is that you type 
in your
username/password and then you are sent to whatever page you originally requested.

Form based login is supposed to work exactly like that.  The first time you try to 
access a page that is
protected by a security constraint, the servlet container will save your original 
request and present the
login page to you.  Then, when you are successfully authenticated, your *originally* 
requested page is
displayed.

You will be able to tell whether the user is authenticated or not by checking the 
values returned by
request.getRemoteUser() and request.getUserPrincipal().


 I will need to make my own security interceptor at some stage. Should I take care of 
this need in
 the interceptor?

 --
 Joakim Verona
 [EMAIL PROTECTED]
 http://www.verona.se/

Craig McClanahan





Problems with change from 3.1 to 3.2

2000-12-18 Thread tobias . reinhardt

Hi

I have an web-app, which was running in tomcat 3.1 without error.
I tried to deploy this web-app in tomcat 3.2, but i get the following exception:

java.lang.NullPointerException at 
org.apache.tomcat.facade.HttpSessionFacade.getValue(HttpSessionFacade.java:158)

I know, that tomcat3.2 is now casesensitiv and i am sure that this is not the 
reason.
What else did change from 3.1 to 3.2 or is this maybe a bug ?

Tobias Reinhardt




mod_jk.so HELP

2000-12-18 Thread Thoger Sondergaard

newbi can't build mod_jk.so
Use this command to build (try to :)
sh apxs -o mod_jk.so -I../jk -I/usr/java/jdk1.3/include 
-I/usr/java/jdk1.3/include/linux -c *.c ../jk/*.c

perl-5.6.0-9 is installet and I start in the folder /src/native/apache1.3

But this is what I get:
apxs: require: command not found
apxs: use: command not found
apxs: package: command not found
apxs: line 72: syntax error near unexpected token `q(h'
apxs: line 72: `my $CFG_TARGET= q(httpd);# substituted 
via Makefile.tmpl '

Could someone help me figur out what I'm doing wrong

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




Tomcat configuration question

2000-12-18 Thread Fabricio Pirez

Hello
I'm using IIS+Tomcat+isapi_redirect.dll
I need to know how to disable directory browsing in a directory served by
tomcat
Is it possible?

Thanks in advance




Re: Apache-Tomcat configuration problems: PLEASE HELP

2000-12-18 Thread Dave Smith

Dave,

For me, the epiphany came when I figured out
that the server.xml Context needs to match up
with the apache directory you are serving out of.

See how your server.xml is mapping
the docBase to webapps/examples? That is
most likely a folder in the tomcat installation.
Apache doesn't know anything about that. To
synch them up, do something like this:

DocumentRoot for apache:  "i:/program files/Apache-1.3.14/htdocs"

in server.xml:

Context path=""
docBase="i:/program files/Apache-1.3.14/htdocs"
debug="1" reloadable="true"
/Context

This should get you working.

Regards,

Dave
- Original Message -
From: "Dave Emerson" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, December 18, 2000 9:43 AM
Subject: Apache-Tomcat configuration problems: PLEASE HELP


 Hi, I've been trying to get Tomcat and Apache configured to avoid the need
 to reference the port number in the URL.  Instead of
 http://localhost:8080/, I want to be able to say
 http://localhost/servlet/.   Isn't that what mod_jk is supposed to do for
 me?  At the moment I just like to get the same display of the default
 static web page that displays when I enter http://localhost:8080/.  Am I
 missing something fundamental here?

 I've followed mod_jk-howto, apache-tomcat-howto, workers-howto.  My
 configuration is entirely vanilla.  Tomcat works fine standalone.  Apache
 works fine standalone (including virtual hosts).

 My software is as follows:
 OS - Win2000 Server
 Apache - 1.3.14
 JKD - 1.3
 Tomcat - 3.2.1

 excerpts from various config files and logs are:

 ###
 SERVER.XML:
 except for enabling debugging and the host section below, the server.xml
 file is as shipped with 3.2.1
 ###

  Host name="127.0.0.1" 
 Context path=""
  docBase="webapps/examples" /
 Context path="/examples"
  docBase="webapps/ROOT" /
  /Host


 ###
 HTTPD.CONF
 except for setting the following, the httpd.conf is as shipped with 1.3.14
 ###

 ServerRoot "i:/program files/Apache-1.3.14"
 DocumentRoot "i:/program files/Apache-1.3.14/htdocs"
 Directory "i:/program files/Apache-1.3.14/htdocs"
 ServerName localhost

 include I:/Dev/jakarta-tomcat/conf/mod_jk.conf

 NameVirtualHost *

 VirtualHost *
  ServerName localhost
  DocumentRoot "i:/program files/Apache-1.3.14/htdocs"
  JkMount /*.jsp ajp12
  JkMount /servlet/* ajp12
 /VirtualHost
 VirtualHost *
  ServerAdmin [EMAIL PROTECTED]
  DocumentRoot "I:/DataFiles/SabrewingRoot"
  ServerName www.sabrewing.com
  ErrorLog logs/www.sabrewing.com-error_log
  JkMount /*.jsp ajp12
  JkMount /servlet/* ajp12
  CustomLog logs/www.sabrewing.com-access_log common
 /VirtualHost


 ###
 MOD_JK.CONF
 ###

 ###
 # Auto generated configuration. Dated: Sun Dec 17 08:14:13 EST 2000
 ###

 #
 # The following line instructs Apache to load the jk module
 #
 LoadModule jk_module modules/mod_jk.dll

 JkWorkersFile "I:/Dev/jakarta-tomcat/conf/workers.properties"
 JkLogFile "I:/Dev/jakarta-tomcat/logs/mod_jk.log"

 #
 # Log level to be used by mod_jk
 #
 JkLogLevel debug

 ###
 # SSL configuration   #
 #
 # By default mod_jk is configured to collect SSL information from
 # the apache environment and send it to the Tomcat workers. The
 # problem is that there are many SSL solutions for Apache and as
 # a result the environment variable names may change.
 #
 # The following (commented out) JK related SSL configureation
 # can be used to customize mod_jk's SSL behaviour.
 #
 # Should mod_jk send SSL information to Tomact (default is On)
 # JkExtractSSL Off
 #
 # What is the indicator for SSL (default is HTTPS)
 # JkHTTPSIndicator HTTPS
 #
 # What is the indicator for SSL session (default is SSL_SESSION_ID)
 # JkSESSIONIndicator SSL_SESSION_ID
 #
 # What is the indicator for client SSL cipher suit (default is SSL_CIPHER)
 # JkCIPHERIndicator SSL_CIPHER
 #
 # What is the indicator for the client SSL certificated (default is
 SSL_CLIENT_CERT)
 # JkCERTSIndicator SSL_CLIENT_CERT
 #
 # #
 ###

 #
 # Root context mounts for Tomcat
 #
 JkMount /*.jsp ajp12
 JkMount /servlet/* ajp12

 #
 # Auto configuration 

Re: Tomcat configuration question

2000-12-18 Thread isu:jwkoh

sorry, no idea.
- Original Message - 
From: "Fabricio Pirez" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, December 18, 2000 1:21 PM
Subject: Tomcat configuration question


 Hello
 I'm using IIS+Tomcat+isapi_redirect.dll
 I need to know how to disable directory browsing in a directory served by
 tomcat
 Is it possible?
 
 Thanks in advance
 
 




Re: LDAPRealm

2000-12-18 Thread Tim McNerney

 Anyone working on an LDAPRealm?

A good start might be to check out the LDAP Tomcat example from
Professional JSP from Wrox Press. They set up a fairly simple, but
workable LDAP security mechanism, though it is set up to work with an
older version of Tomcat. Perhaps with the permission of Mark Wilcox, the
author of the chapter, it would be possible to put together an LDAPRealm
using his example. I know people were able to get the code from the
example (available at wrox.com) to work with a more recent release of
Tomcat.

--Tim



Tomcat 3.2 and EJB server - Class Not Found exception

2000-12-18 Thread Alex Moffat

Trying to use Tomcat 3.2 and JBoss. After battling security problems I get
to the point where Tomcat attempts to load the ejb home interface, and it
won't, even thought the correct classes are in correct webapps subdirectory.
However, if I jar up the classes needed for the home interface and put that
file in the ${TOMCAT_HOME}/lib directory then it finds them there. 

Is this a knows problem or is there some config I've got wrong. BTW I've got
the same Tomcat and EJB server setup working fine under Tomcat 3.1

Thanks
Alex

---
Enjoy the different peculiar world as for the plastic model 



FW: LDAPRealm

2000-12-18 Thread Michael.L.Smith



Michael L Smith
AvantGardeSolutions.net
(501) 225-6153
[EMAIL PROTECTED]
--
The greatest programming project ever, took 6 days and 6 nights and on the
7th day the programmer rested...
we've been trying to debug the bloody thing ever since

 -Original Message-
From:   Tim McNerney [mailto:[EMAIL PROTECTED]] 
Sent:   Monday, December 18, 2000 1:30 PM
To: [EMAIL PROTECTED]
Subject:Re: LDAPRealm

 Anyone working on an LDAPRealm?

A good start might be to check out the LDAP Tomcat example from
Professional JSP from Wrox Press. They set up a fairly simple, but
workable LDAP security mechanism, though it is set up to work with an
older version of Tomcat. Perhaps with the permission of Mark Wilcox, the
author of the chapter, it would be possible to put together an LDAPRealm
using his example. I know people were able to get the code from the
example (available at wrox.com) to work with a more recent release of
Tomcat.

--Tim




FW: Tomcat 3.2 and EJB server - Class Not Found exception

2000-12-18 Thread Michael.L.Smith



Michael L Smith
AvantGardeSolutions.net
(501) 225-6153
[EMAIL PROTECTED]
--
The greatest programming project ever, took 6 days and 6 nights and on the
7th day the programmer rested...
we've been trying to debug the bloody thing ever since

 -Original Message-
From:   Alex Moffat [mailto:[EMAIL PROTECTED]]
Sent:   Monday, December 18, 2000 1:47 PM
To: [EMAIL PROTECTED]
Subject:Tomcat 3.2 and EJB server - Class Not Found exception

Trying to use Tomcat 3.2 and JBoss. After battling security problems I get
to the point where Tomcat attempts to load the ejb home interface, and it
won't, even thought the correct classes are in correct webapps subdirectory.
However, if I jar up the classes needed for the home interface and put that
file in the ${TOMCAT_HOME}/lib directory then it finds them there.

Is this a knows problem or is there some config I've got wrong. BTW I've got
the same Tomcat and EJB server setup working fine under Tomcat 3.1

Thanks
Alex

---
Enjoy the different peculiar world as for the plastic model




RE: At Value must be quoted. Error

2000-12-18 Thread Kitching Simon



 -Original Message-
 From: Donald Mullaney [SMTP:[EMAIL PROTECTED]]
 Sent: Monday, December 18, 2000 7:48 PM
 To:   [EMAIL PROTECTED]
 Subject:  Re: At Value must be quoted.  Error
 
 Thxs Simon,
 
 I had a typo that I was looking right at and I could not see.  Nothing
 like
 staring to hard..
 
 Is there a document anywhere that describes error messages?  The error
 message was not clear to me, but then again I am new to this.
[Kitching Simon]  
For this type of error, probably not. As I said, tomcat uses an XML
parser (probably
Xerces, as it's from apache..). So the place to look for any
documentation
on xml-parser-related errors is in the Xerces(?) documentation. 

In general, the documentation on tomcat isn't very in-depth. That's
the price
you pay for using open-source; who wants to write docs when they
could
be coding :-) Having said that, people are working on it, so I guess
that the 
situation will improve over time. For now, though, you need to
scratch the
old noggin a bit, search the email archives, and in extreme cases,
read the 
code...and for those really tough cases, there's always this group.

Cheers,

Simon


 Thanks again,
 Donald
 
 - Original Message -
 From: "Kitching Simon" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, December 18, 2000 11:03 AM
 Subject: RE: At Value must be quoted. Error
 
 
  Hi Don,
 
  It looks to me like the XML parser that tomcat uses to read the file is
  objecting to something in the file. Minor typos are sometimes damn
  hard to spot :-)
 
  I suggest:
  (a)
  try commenting out blocks of the server.xml file, and restarting.
  of course, tomcat won't *run* properly with only half a config file, but
  you should be able to see when the config file at least parses.
  By the old divide-and-conquer method, you should be able to narrow
  things down to the point you can spot the problem,
  (b)
  If you have made only minor changes to the default file, you can try
  using "diff" to compare the version in the distribution with the one
 that
  doesn't work.
  (c)
  if all else fails, try posting the server.xml file to this group...
 
  Cheers,
 
  Simon
 
   -Original Message-
   From: Donald Mullaney [SMTP:[EMAIL PROTECTED]]
   Sent: Monday, December 18, 2000 6:51 PM
   To: [EMAIL PROTECTED]
   Subject: At Value must be quoted.  Error
  
  
   Help.  I am running Apache 1.3 and Tomcat on Caldera's eServer.  I was
   trying make modifications to the default server.xml file.  After the
   modifications restarted tomcat and got the errors below.  I also
 returned
   the server.xml to the orginal state and I still get the same error.
 Any
   ideas?  What is the error in reference to?  I have search the
   documentation and can't find anything that relates.
  
   [root@host bin]# ./startup.sh
   Using classpath:
  
 .:/usr/local/jakarta-tomcat/lib/ant.jar:/usr/local/jakarta-tomcat/lib/jasp
  
 er.jar:/usr/local/jakarta-tomcat/lib/servlet.jar:/usr/local/jakarta-tomcat
  
 /lib/test:/usr/local/jakarta-tomcat/lib/webserver.jar:/usr/local/jakarta-t
  
 omcat/lib/xml.jar:/usr/java/lib/tools.jar:.:/usr/local/jakarta-tomcat/src:
  
 /usr/local/lib/postgresql.jar:/usr/local/jakarta-tomcat/src:/usr/local/jak
   arta-tomcat/src
   [root@host bin]# ERROR reading
 /usr/local/jakarta-tomcat/conf/server.xml
   At Value must be quoted.
  
   FATAL: configuration error
   java.lang.NullPointerException:
   at
   org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:221)
   at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:143)
   at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163)
  
   Thanks,
  
   Donald Mullaney
  
   Melting Sand, LLC
   7660 E. Broadway Blvd Suite 308
   Tucson, AZ 85710
  
   E-Mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
   Phone: 520.918.SAND (7263)
 



FW: At Value must be quoted. Error

2000-12-18 Thread Michael.L.Smith



Michael L Smith
AvantGardeSolutions.net
(501) 225-6153
[EMAIL PROTECTED]
--
The greatest programming project ever, took 6 days and 6 nights and on the
7th day the programmer rested...
we've been trying to debug the bloody thing ever since

 -Original Message-
From:   Kitching Simon [mailto:[EMAIL PROTECTED]]
Sent:   Monday, December 18, 2000 1:33 PM
To: '[EMAIL PROTECTED]'
Subject:RE: At Value must be quoted.  Error



 -Original Message-
 From: Donald Mullaney [SMTP:[EMAIL PROTECTED]]
 Sent: Monday, December 18, 2000 7:48 PM
 To:   [EMAIL PROTECTED]
 Subject:  Re: At Value must be quoted.  Error

 Thxs Simon,

 I had a typo that I was looking right at and I could not see.  Nothing
 like
 staring to hard..

 Is there a document anywhere that describes error messages?  The error
 message was not clear to me, but then again I am new to this.
[Kitching Simon]
For this type of error, probably not. As I said, tomcat uses an XML
parser (probably
Xerces, as it's from apache..). So the place to look for any
documentation
on xml-parser-related errors is in the Xerces(?) documentation.

In general, the documentation on tomcat isn't very in-depth. That's
the price
you pay for using open-source; who wants to write docs when they
could
be coding :-) Having said that, people are working on it, so I guess
that the
situation will improve over time. For now, though, you need to
scratch the
old noggin a bit, search the email archives, and in extreme cases,
read the
code...and for those really tough cases, there's always this group.

Cheers,

Simon


 Thanks again,
 Donald

 - Original Message -
 From: "Kitching Simon" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, December 18, 2000 11:03 AM
 Subject: RE: At Value must be quoted. Error


  Hi Don,
 
  It looks to me like the XML parser that tomcat uses to read the file is
  objecting to something in the file. Minor typos are sometimes damn
  hard to spot :-)
 
  I suggest:
  (a)
  try commenting out blocks of the server.xml file, and restarting.
  of course, tomcat won't *run* properly with only half a config file, but
  you should be able to see when the config file at least parses.
  By the old divide-and-conquer method, you should be able to narrow
  things down to the point you can spot the problem,
  (b)
  If you have made only minor changes to the default file, you can try
  using "diff" to compare the version in the distribution with the one
 that
  doesn't work.
  (c)
  if all else fails, try posting the server.xml file to this group...
 
  Cheers,
 
  Simon
 
   -Original Message-
   From: Donald Mullaney [SMTP:[EMAIL PROTECTED]]
   Sent: Monday, December 18, 2000 6:51 PM
   To: [EMAIL PROTECTED]
   Subject: At Value must be quoted.  Error
  
  
   Help.  I am running Apache 1.3 and Tomcat on Caldera's eServer.  I was
   trying make modifications to the default server.xml file.  After the
   modifications restarted tomcat and got the errors below.  I also
 returned
   the server.xml to the orginal state and I still get the same error.
 Any
   ideas?  What is the error in reference to?  I have search the
   documentation and can't find anything that relates.
  
   [root@host bin]# ./startup.sh
   Using classpath:
  
 .:/usr/local/jakarta-tomcat/lib/ant.jar:/usr/local/jakarta-tomcat/lib/jasp
  
 er.jar:/usr/local/jakarta-tomcat/lib/servlet.jar:/usr/local/jakarta-tomcat
  
 /lib/test:/usr/local/jakarta-tomcat/lib/webserver.jar:/usr/local/jakarta-t
  
 omcat/lib/xml.jar:/usr/java/lib/tools.jar:.:/usr/local/jakarta-tomcat/src:
  
 /usr/local/lib/postgresql.jar:/usr/local/jakarta-tomcat/src:/usr/local/jak
   arta-tomcat/src
   [root@host bin]# ERROR reading
 /usr/local/jakarta-tomcat/conf/server.xml
   At Value must be quoted.
  
   FATAL: configuration error
   java.lang.NullPointerException:
   at
   org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:221)
   at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:143)
   at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163)
  
   Thanks,
  
   Donald Mullaney
  
   Melting Sand, LLC
   7660 E. Broadway Blvd Suite 308
   Tucson, AZ 85710
  
   E-Mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
   Phone: 520.918.SAND (7263)
 




RE: Apache doesn't start with mod_jk

2000-12-18 Thread Palumbo, Mark

I still get the same error.  :(

Any other ideas?  

Here's the entire link statement and subsequent error message incase it
helps...first here's the "normal" way where 'apxs' flops out...

ld -H512 -T512 -bhalt:4 -bM:SRE -bnoentry
-bI:/usr/local/apache/libexec/httpd.ex
p -lc -o mod_jk.so mod_jk.o jk_worker.o jk_util.o jk_uri_worker_map.o
jk_sockbuf
.o jk_pool.o jk_nwmain.o jk_msg_buff.o jk_map.o jk_lb_worker.o
jk_jni_worker.o j
k_connect.o jk_ajp13_worker.o jk_ajp13.o jk_ajp12_worker.o

ld: 0711-244 ERROR: No csects or exported symbols have been saved.

apxs:Break: Command failed with rc=8  


Then if I just run gcc directly to do the link I get:

$ gcc -shared -o mod_jk.so *.o
collect2: ld returned 8 exit status
ld: 0711-244 ERROR: No csects or exported symbols have been saved.


Again if it helps my environment is...
aix 4.2
ibm's jdk 1.1.8
gcc 2.8.1
perl 5.004_01
apache 1.3.14

Thank you very much!!!
-Mark-


 -Original Message-
 From: Dave Newton [mailto:[EMAIL PROTECTED]]
 Sent: Monday, December 18, 2000 11:14 AM
 To: [EMAIL PROTECTED]
 Subject: RE: Apache doesn't start with mod_jk
 
 
 See my previous message regarding the final link step (it's also
 in the documentation).
 
  I keep getting clean compiles, but the link process always 
 fails with:
  apxs:Break: Command failed with rc=8
 
 Dave
 



RE: Apache doesn't start with mod_jk

2000-12-18 Thread Simon Orchanian

Mark,

I'm getting the EXACT same error messages on
both occasions. I could really use some help
from some of the experts out there. Please!

My environment is Solaris 2.7.

Thank you in advance,
Simon


--- "Palumbo, Mark" [EMAIL PROTECTED] wrote:
 I still get the same error.  :(
 
 Any other ideas?  
 
 Here's the entire link statement and subsequent error message incase it
 helps...first here's the "normal" way where 'apxs' flops out...
 
 ld -H512 -T512 -bhalt:4 -bM:SRE -bnoentry
 -bI:/usr/local/apache/libexec/httpd.ex
 p -lc -o mod_jk.so mod_jk.o jk_worker.o jk_util.o jk_uri_worker_map.o
 jk_sockbuf
 .o jk_pool.o jk_nwmain.o jk_msg_buff.o jk_map.o jk_lb_worker.o
 jk_jni_worker.o j
 k_connect.o jk_ajp13_worker.o jk_ajp13.o jk_ajp12_worker.o
 
 ld: 0711-244 ERROR: No csects or exported symbols have been saved.
 
 apxs:Break: Command failed with rc=8  
 
 
 Then if I just run gcc directly to do the link I get:
 
 $ gcc -shared -o mod_jk.so *.o
 collect2: ld returned 8 exit status
 ld: 0711-244 ERROR: No csects or exported symbols have been saved.
 
 
 Again if it helps my environment is...
 aix 4.2
 ibm's jdk 1.1.8
 gcc 2.8.1
 perl 5.004_01
 apache 1.3.14
 
 Thank you very much!!!
 -Mark-
 
 
  -Original Message-
  From: Dave Newton [mailto:[EMAIL PROTECTED]]
  Sent: Monday, December 18, 2000 11:14 AM
  To: [EMAIL PROTECTED]
  Subject: RE: Apache doesn't start with mod_jk
  
  
  See my previous message regarding the final link step (it's also
  in the documentation).
  
   I keep getting clean compiles, but the link process always 
  fails with:
   apxs:Break: Command failed with rc=8
  
  Dave
  


__
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/



RE: Bizarre problem -- works fine, then doesn't

2000-12-18 Thread Dave Newton

 I have restarted Tomcat again this morning, and all the material that was
 in the logs is no longer there (since the restart). That seems a little
 weird. Is that normal?

Yeah. I'm not sure if I like that either.

 Anyway, I recall that none of them had anything that looked like an error
 message. The jasper log recorded a series of requests and the parameters
 that were sent. The servlet log just had a series of about 15 entries that
 began with

This was my stupid, java errors show up on the console you started tomcat
on, not in the error log. Sorry about that.

 Meanwhile, I'll explore this dropped database connection concept. Maybe
 there's something to that.

I actually have two seperate errors regarding DB stuff but I haven't had
time to track them down yet. If you can, check your tomcat startup console
to see what happens.

(And let me know what happens, too, 'cuz maybe it'll help me out :D

Dave




RE: Tomcat configuration question

2000-12-18 Thread Paul FitzPatrick

Fram an earlier post :

conf/web.xml is not used in Tomcat 3.2.x.

Try this in server.xml:

!-- "default" handler - static files and dirs.  Set the
 "suppress" property to "true" to suppress directory listings
 when no welcome file is present.

 NOTE:  This setting applies to *all* web applications that
 are running in this instance of Tomcat.
--
RequestInterceptor 
className="org.apache.tomcat.request.StaticInterceptor" 
debug="0" suppress="true" /

Regards,
Paul


-Original Message-
From: isu:jwkoh [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 18, 2000 02:19 PM
To: [EMAIL PROTECTED]
Subject: Re: Tomcat configuration question


sorry, no idea.
- Original Message - 
From: "Fabricio Pirez" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, December 18, 2000 1:21 PM
Subject: Tomcat configuration question


 Hello
 I'm using IIS+Tomcat+isapi_redirect.dll
 I need to know how to disable directory browsing in a directory served by
 tomcat
 Is it possible?
 
 Thanks in advance
 
 





FW: At Value must be quoted. Error

2000-12-18 Thread Michael.L.Smith



Michael L Smith
AvantGardeSolutions.net
(501) 225-6153
[EMAIL PROTECTED]
--
The greatest programming project ever, took 6 days and 6 nights and on the
7th day the programmer rested...
we've been trying to debug the bloody thing ever since

 -Original Message-
From:   Michael.L.Smith [mailto:[EMAIL PROTECTED]]
Sent:   Monday, December 18, 2000 1:36 PM
To: Tomcat-User (E-mail)
Subject:FW: At Value must be quoted.  Error



Michael L Smith
AvantGardeSolutions.net
(501) 225-6153
[EMAIL PROTECTED]
--
The greatest programming project ever, took 6 days and 6 nights and on the
7th day the programmer rested...
we've been trying to debug the bloody thing ever since

 -Original Message-
From:   Kitching Simon [mailto:[EMAIL PROTECTED]]
Sent:   Monday, December 18, 2000 1:33 PM
To: '[EMAIL PROTECTED]'
Subject:RE: At Value must be quoted.  Error



 -Original Message-
 From: Donald Mullaney [SMTP:[EMAIL PROTECTED]]
 Sent: Monday, December 18, 2000 7:48 PM
 To:   [EMAIL PROTECTED]
 Subject:  Re: At Value must be quoted.  Error

 Thxs Simon,

 I had a typo that I was looking right at and I could not see.  Nothing
 like
 staring to hard..

 Is there a document anywhere that describes error messages?  The error
 message was not clear to me, but then again I am new to this.
[Kitching Simon]
For this type of error, probably not. As I said, tomcat uses an XML
parser (probably
Xerces, as it's from apache..). So the place to look for any
documentation
on xml-parser-related errors is in the Xerces(?) documentation.

In general, the documentation on tomcat isn't very in-depth. That's
the price
you pay for using open-source; who wants to write docs when they
could
be coding :-) Having said that, people are working on it, so I guess
that the
situation will improve over time. For now, though, you need to
scratch the
old noggin a bit, search the email archives, and in extreme cases,
read the
code...and for those really tough cases, there's always this group.

Cheers,

Simon


 Thanks again,
 Donald

 - Original Message -
 From: "Kitching Simon" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, December 18, 2000 11:03 AM
 Subject: RE: At Value must be quoted. Error


  Hi Don,
 
  It looks to me like the XML parser that tomcat uses to read the file is
  objecting to something in the file. Minor typos are sometimes damn
  hard to spot :-)
 
  I suggest:
  (a)
  try commenting out blocks of the server.xml file, and restarting.
  of course, tomcat won't *run* properly with only half a config file, but
  you should be able to see when the config file at least parses.
  By the old divide-and-conquer method, you should be able to narrow
  things down to the point you can spot the problem,
  (b)
  If you have made only minor changes to the default file, you can try
  using "diff" to compare the version in the distribution with the one
 that
  doesn't work.
  (c)
  if all else fails, try posting the server.xml file to this group...
 
  Cheers,
 
  Simon
 
   -Original Message-
   From: Donald Mullaney [SMTP:[EMAIL PROTECTED]]
   Sent: Monday, December 18, 2000 6:51 PM
   To: [EMAIL PROTECTED]
   Subject: At Value must be quoted.  Error
  
  
   Help.  I am running Apache 1.3 and Tomcat on Caldera's eServer.  I was
   trying make modifications to the default server.xml file.  After the
   modifications restarted tomcat and got the errors below.  I also
 returned
   the server.xml to the orginal state and I still get the same error.
 Any
   ideas?  What is the error in reference to?  I have search the
   documentation and can't find anything that relates.
  
   [root@host bin]# ./startup.sh
   Using classpath:
  
 .:/usr/local/jakarta-tomcat/lib/ant.jar:/usr/local/jakarta-tomcat/lib/jasp
  
 er.jar:/usr/local/jakarta-tomcat/lib/servlet.jar:/usr/local/jakarta-tomcat
  
 /lib/test:/usr/local/jakarta-tomcat/lib/webserver.jar:/usr/local/jakarta-t
  
 omcat/lib/xml.jar:/usr/java/lib/tools.jar:.:/usr/local/jakarta-tomcat/src:
  
 /usr/local/lib/postgresql.jar:/usr/local/jakarta-tomcat/src:/usr/local/jak
   arta-tomcat/src
   [root@host bin]# ERROR reading
 /usr/local/jakarta-tomcat/conf/server.xml
   At Value must be quoted.
  
   FATAL: configuration error
   java.lang.NullPointerException:
   at
   org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:221)
   at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:143)
   at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163)
  
   Thanks,
  
   Donald Mullaney
  
   Melting Sand, LLC
   7660 E. Broadway Blvd Suite 308
   Tucson, AZ 85710
  
   E-Mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
   Phone: 520.918.SAND (7263)
 





FW: Intermittent shutdown failures.

2000-12-18 Thread Michael.L.Smith



Michael L Smith
AvantGardeSolutions.net
(501) 225-6153
[EMAIL PROTECTED]
--
The greatest programming project ever, took 6 days and 6 nights and on the
7th day the programmer rested...
we've been trying to debug the bloody thing ever since

 -Original Message-
From:   Saurabh Shukla [mailto:[EMAIL PROTECTED]]
Sent:   Monday, December 18, 2000 1:13 AM
To: [EMAIL PROTECTED]
Subject:RE: Intermittent shutdown failures.

refer archives.

-Original Message-
From: James Bromberger [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 18, 2000 10:43 AM
To: [EMAIL PROTECTED]
Subject: Intermittent shutdown failures.



Anyone seen any problems with Tomcat not shutting down cleanly, and still
binding connectors to ports? I have AJP12 and HTTP connectors up on 3.2.1
(same as last message, Sun Solaris 2.6, JDK 1.3.0). Sometimes its fine,
sometimes it fails - and a startup after a failed shutdown gets an
"AddressInUse" exception. Do you know what it is?

Ta,
James

--
  James Bromberger,
  Senior Web/Systems Administrator, JDV
  +61 8 9268 2909, +61 417 322 500
  Fax: +61 8 9268 0200

JDV - e-Commerce and Outsourcing Solutions for Financial Services
http://www.jdv.com/

Any securities recommendation contained in this document is unsolicited
general information only. Do not act on a recommendation without first
consulting your investment advisor to determine whether the recommendation
is appropriate for your investment objectives, financial situation and
particular needs.
JDV  believes that any information or advice (including any securities
recommendation) contained in this document is accurate when issued. However,
JDV does not warrant its accuracy or reliability. JDV, its officers, agents
and employees exclude all liability whatsoever, in negligence or otherwise,
for any loss or damage relating to this document to the full extent
permitted by law.






FW: Bizarre problem -- works fine, then doesn't

2000-12-18 Thread Michael.L.Smith



Michael L Smith
AvantGardeSolutions.net
(501) 225-6153
[EMAIL PROTECTED]
--
The greatest programming project ever, took 6 days and 6 nights and on the
7th day the programmer rested...
we've been trying to debug the bloody thing ever since

 -Original Message-
From:   Dave Newton [mailto:[EMAIL PROTECTED]]
Sent:   Monday, December 18, 2000 1:48 PM
To: [EMAIL PROTECTED]
Subject:RE: Bizarre problem -- works fine, then doesn't

 I have restarted Tomcat again this morning, and all the material that was
 in the logs is no longer there (since the restart). That seems a little
 weird. Is that normal?

Yeah. I'm not sure if I like that either.

 Anyway, I recall that none of them had anything that looked like an error
 message. The jasper log recorded a series of requests and the parameters
 that were sent. The servlet log just had a series of about 15 entries that
 began with

This was my stupid, java errors show up on the console you started tomcat
on, not in the error log. Sorry about that.

 Meanwhile, I'll explore this dropped database connection concept. Maybe
 there's something to that.

I actually have two seperate errors regarding DB stuff but I haven't had
time to track them down yet. If you can, check your tomcat startup console
to see what happens.

(And let me know what happens, too, 'cuz maybe it'll help me out :D

Dave





FW: Tomcat configuration question

2000-12-18 Thread Michael.L.Smith



Michael L Smith
AvantGardeSolutions.net
(501) 225-6153
[EMAIL PROTECTED]
--
The greatest programming project ever, took 6 days and 6 nights and on the
7th day the programmer rested...
we've been trying to debug the bloody thing ever since

 -Original Message-
From:   Paul FitzPatrick [mailto:[EMAIL PROTECTED]] 
Sent:   Monday, December 18, 2000 1:53 PM
To: [EMAIL PROTECTED]
Subject:RE: Tomcat configuration question

Fram an earlier post :

conf/web.xml is not used in Tomcat 3.2.x.

Try this in server.xml:

!-- "default" handler - static files and dirs.  Set the
 "suppress" property to "true" to suppress directory listings
 when no welcome file is present.

 NOTE:  This setting applies to *all* web applications that
 are running in this instance of Tomcat.
--
RequestInterceptor 
className="org.apache.tomcat.request.StaticInterceptor" 
debug="0" suppress="true" /

Regards,
Paul


-Original Message-
From: isu:jwkoh [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 18, 2000 02:19 PM
To: [EMAIL PROTECTED]
Subject: Re: Tomcat configuration question


sorry, no idea.
- Original Message - 
From: "Fabricio Pirez" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, December 18, 2000 1:21 PM
Subject: Tomcat configuration question


 Hello
 I'm using IIS+Tomcat+isapi_redirect.dll
 I need to know how to disable directory browsing in a directory served by
 tomcat
 Is it possible?
 
 Thanks in advance
 
 






CLASSPATH precedence

2000-12-18 Thread David Miller

Hi,

Two related questions regarding CLASSPATH precedence:

(A) If I place the same *.jar files (same names but different versions)
in both
$TOMCAT_HOME/webapps/WEBAPP_A/WEB-INF/lib
and in $TOMCAT_HOME/webapps/WEBAPP_B/WEB-INF/lib

does the version of the *.jar files in WEBAPP_A or in WEBAPP_B take
precedence? Or does it depend on which context I am in (i.e., which
webapp tomcat is running). How does tomcat figure out which version of
the *.jar files to use? Do classes loaded from one *.jar file get
unloaded if I am running in a different context?

(B) (similar question but for system *.jar files vs tomcat *.jar files):

If I place the same *.jar files (same names but different versions) in
both
$TOMCAT_HOME/webapps/WEBAPP_A/WEB-INF/lib
and in my system CLASSPATH

which version of the *.jar files take precedence when I am running ?

Any answers/information regarding these two questions is greatly
appreciated, especially ones which shed some light on how tomcat figures
out which version of classes to load. Thanks,

-David-




serving PHP files with Tomcat 3.2

2000-12-18 Thread Christian Wenz

Hello,

after upgrading from 3.1 to 3.2.x, I have a problems if I want to server PHP
files - Tomcat returns the source code to the browser. I don't think I made
any mistake in web.xml - but can it be that web.xml has another
functionality in 3.2, and if so, where else can I commit changes?

Regards
Christian




RE: webapps are useless toys?!

2000-12-18 Thread Steven Newton

 So assuming the site requires "single sign-on".  And that there are
 several segmentations of the site, each of which could
 be handled by a different web-app:
 
 I'm getting the impression that I'm supposed to do some
 kind of magic with the session cookie.  Is it necessary
 to persist all of the session data, to be shared between
 web-apps, in the database?  Or is there a trick for finding
 the in-memory session data for another web-app?
 

A database would be necessary if you want the session information
to persist across server shutdowns, but if you just want to share
it amongst web apps there are alternatives.  You could, for example,
set up a JNDI context where all web apps needing access to particular
session information could store and retrieve session variables.
There's a number of ways to share session without going to a database
solution.

 What's the rationale behind this architecture?
 

Security, for one.  Multiple web apps running in the 
same application server are isolated from running into
each others' space.

s




Very Basic Help on TOMCAT how do I use it?

2000-12-18 Thread jang won koh

I installed it and compiled a servlet example. Where do I put servlet 
classes and JSP and how do I invoke them from Internet Explorer? How do I 
use things in tomcat\webapps\examples and \root and \test? I want to test 
but have no idea how. Thank you in advance




J2EE OpenEJB

2000-12-18 Thread dferugson

I noticed a reference to tomcat on the openEJB site.
Then I went to apache.org and notice that the latest build of tomcat is
JNDI complient
Will tomcat evolve into an application server or is it already read for
this?

If tomcat is not going the direction of app server is anyone making use
of OpenEJB?
Anybody have experience with JBOSS?\

Sorry for the slight tangent ;)
-- 
Doug Ferguson
Software Developer
www.coremetrics.com
512-342-2623x212
512-619-9972(cell)



RE: J2EE OpenEJB

2000-12-18 Thread Alex Moffat

I'm currently using a JBoss/Tomcat combination (the separate processes
version, not the all in one process version). It works fine with 3.1 tomcat.
I'm having problems with the 3.2 tomcat version related to how it finds, or
rather doesn't find, the classes that implement the beans' interfaces.

Alex

 -Original Message-
 From: dferugson [mailto:[EMAIL PROTECTED]]
 Sent: Monday, December 18, 2000 3:05 PM
 To: [EMAIL PROTECTED]
 Subject: J2EE  OpenEJB
 
 
 I noticed a reference to tomcat on the openEJB site.
 Then I went to apache.org and notice that the latest build of 
 tomcat is
 JNDI complient
 Will tomcat evolve into an application server or is it 
 already read for
 this?
 
 If tomcat is not going the direction of app server is anyone 
 making use
 of OpenEJB?
 Anybody have experience with JBOSS?\
 
 Sorry for the slight tangent ;)
 -- 
 Doug Ferguson
 Software Developer
 www.coremetrics.com
 512-342-2623x212
 512-619-9972(cell)
 



Getting Tomcat to run

2000-12-18 Thread Jon Pratt



I downloaded Apache and got it to run. I 
downloaded Tomcat 3.2.1 build and tried to compile the java files. Got tons of 
errors. Can anyone point me at a definitive step by step Howto? 

I did the following (from Tomcat - A Minimalistic 
User's guide):


  Download the zip/tar.gz/whatever file from http://jakarta.apache.org/downloads/binindex.html. 

  Unzip the file into some directory (say foo). This should create a new 
  subdirectory named "tomcat". 
  Change directory to "tomcat" and set a new environment variable 
  (TOMCAT_HOME) to point to the root directory of your Tomcat hierarchy. 
  
On Win32 you should type: "set TOMCAT_HOME=foo\tomcat" 
On UNIX you should type: for bash/sh "TOMCAT_HOME=foo/tomcat ; 
export TOMCAT_HOME"for tcsh "setenv TOMCAT_HOME foo/tomcat" 
  Set the environment variable JAVA_HOME to point to the root directory of 
  your JDK hierarchy, then add the Java interpreter to your PATH environment 
  variable. 
That's it! You can now execute Tomcat and it will run as a stand-alone (type 
1) servlet container...BUT that's not IT.


RE: link problem

2000-12-18 Thread Jacob Kjome

You can use:   ":" + request.getServerPort()
 
 
jake

-Original Message-
From: MK [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 18, 2000 2:58 PM
To: [EMAIL PROTECTED]
Subject: link problem



I have a problem which breaks my head :-)
I am using Tomcat 3.2.1.
Here is what I have in server.xml
 

  Host name="127.0.0.1" 
  Context path="/exchange" 
 docBase="D:/GuidanceExchange/exchange" 
 crossContext="false"
 debug="0" 
 reloadable="true"  
/Context
  /Host
 
I have two pages one is located:
 D:\GuidanceExchange\exchange\index.jsp
and have a link a href="%= request.getContextPath() %"/jsp/test.jsp"
test/a
 
test.jsp is another page located at
D:\GuidanceExchange\exchange\jsp\test.jsp
 
The problem is when I execute index.jsp page the link is pointing to
http:///exchange/jsp/test.jsp http:///exchange/jsp/test.jsp  which is
incorrect...it should point to 
http://127.0.0.1:8080/exchange/jsp/test.jsp
http://127.0.0.1:8080/exchange/jsp/test.jsp . So, how do I get
127.0.0.1:8080 into my URL?
 
Thank you very much for any help in advance,
 
Maksim.




wierd problem reading remote mapped files in servlets

2000-12-18 Thread Betty Chang




Hi all -- has anyone seen this problem? I running a servlet on 
Windows 2000, or NT, and it's trying to read a file that is mapped from a remote 
machine (e.g.: m:\junk.txt, where m: is mapped to something on the 
network). On Windows 2000, the drive will actually disconnect on me (when 
I run "net use", I see that) and the program cannot read the file.

If I run the program as a main(), things work fine.

Any clues??

Thanks

Betty
Portal Wave, Inc.The Fastest 
Track to Integrated e-Businesswww.portalwave.com


RE: link problem

2000-12-18 Thread Sean Jiang

Own your own personal link from Infotriever. Then your friends will not lose
your contacts anymore whenever you change your address.


http://my.infotriever.com/bobby2info
(Click to add my contact into your organizer and keep up-to-date)


-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
Sent: December 18, 2000 4:21 PM
To: [EMAIL PROTECTED]
Subject: RE: link problem


You can use:   ":" + request.getServerPort()
 
 
jake

-Original Message-
From: MK [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 18, 2000 2:58 PM
To: [EMAIL PROTECTED]
Subject: link problem



I have a problem which breaks my head :-)
I am using Tomcat 3.2.1.
Here is what I have in server.xml
 

  Host name="127.0.0.1" 
  Context path="/exchange" 
 docBase="D:/GuidanceExchange/exchange" 
 crossContext="false"
 debug="0" 
 reloadable="true"  
/Context
  /Host
 
I have two pages one is located:
 D:\GuidanceExchange\exchange\index.jsp
and have a link a href="%= request.getContextPath() %"/jsp/test.jsp"
test/a
 
test.jsp is another page located at
D:\GuidanceExchange\exchange\jsp\test.jsp
 
The problem is when I execute index.jsp page the link is pointing to
http:///exchange/jsp/test.jsp http:///exchange/jsp/test.jsp  which is
incorrect...it should point to 
http://127.0.0.1:8080/exchange/jsp/test.jsp
http://127.0.0.1:8080/exchange/jsp/test.jsp . So, how do I get
127.0.0.1:8080 into my URL?
 
Thank you very much for any help in advance,
 
Maksim.



servlet configuration help.

2000-12-18 Thread John Marquart

List members,
Excuse this relatively "newbie" question - but I have not yet
found anything in the FAQ or mailing list archives.

I am attempting to get my servlet - DataServ to work.  After fighting
various problems w/ classpaths and environment configurations, i finally
got stuck w/ the following error:

2000-12-18 05:18:05 - Ctx( /examples ): Exception in: R( /examples +
/servlet/DataServ + null) - java.lang.NullPointerException
at java.util.StringTokenizer.init(Compiled Code)
at java.util.StringTokenizer.init(Compiled Code)
at DataServ.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at org.apache.tomcat.core.ServletWrapper.doService(Compiled Code)
at org.apache.tomcat.core.Handler.service(Compiled Code)
at org.apache.tomcat.core.ServletWrapper.service(Compiled Code)
at org.apache.tomcat.core.ContextManager.internalService(Compiled
Code)
at org.apache.tomcat.core.ContextManager.service(Compiled Code)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Compiled
Code)
at org.apache.tomcat.service.TcpWorkerThread.runIt(Compiled Code)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled
Code)
at java.lang.Thread.run(Compiled Code)


Does the "R( /examples + /servlet/DataServ + null)" bit mean that DataServ
recieved no arguments from the http line?  i.e. what does null refer to?

I am trying to call this servlet as:

http://fqdn:8080/examples/servlet/DataServ?collection=hoagytype=musicpage=1version=screenid=ATM-MC2-1-2-9

Is this the correct syntax to send arguments to the servlet?  This is how
the system I inherited does it w/ jserv.

It seems to me, based on the errors generated - that the servlet is not
recieving the arguments it should be


Any help would be greatly appreciated,

-john marquart





bug in getUserPrincipal()?

2000-12-18 Thread Thom Park

Dear All,

I'm seeing some odd behavior from getUserPrincipal(). I have a simple
servlet that calls:

getRemoteUser(), getUserPrincipal() and isUserInRole().

I've setup an appropriate web.xml and all is well until I access the
same servlet from two web-browsers on the same machine.

In the first  browser, I login as user test1, in the second browser I
log in as user tomcat.

In the first (correct) case, I see that the user is 'test1', the
principal is 'test1' and the user is in role.
In the second case, I see that the user is 'tomcat', but the principal
is still 'test1'.

It seems to me that this is a bug (but I could be misconfiguring/using
something wrong)..

Has anyone seen this behavior / can explain it such that I can
understand this - am I misunderstanding the
relationship between running servlets and connected clients?






RE: bug in getUserPrincipal()?

2000-12-18 Thread Palumbo, Mark

How did you "open" the second browser?  Did you ask your browser to spawn a
new browser window, or did you open a new one via an icon, system menu,
command line, etc.?

If you ask an IE browser to open a new window, the two "browsers" will share
the same cookie so tomcat will think they are the same user...



 -Original Message-
 From: Thom Park [mailto:[EMAIL PROTECTED]]
 Sent: Monday, December 18, 2000 4:58 PM
 To: [EMAIL PROTECTED]
 Subject: bug in getUserPrincipal()?
 
 
 Dear All,
 
 I'm seeing some odd behavior from getUserPrincipal(). I have a simple
 servlet that calls:
 
 getRemoteUser(), getUserPrincipal() and isUserInRole().
 
 I've setup an appropriate web.xml and all is well until I access the
 same servlet from two web-browsers on the same machine.
 
 In the first  browser, I login as user test1, in the second browser I
 log in as user tomcat.
 
 In the first (correct) case, I see that the user is 'test1', the
 principal is 'test1' and the user is in role.
 In the second case, I see that the user is 'tomcat', but the principal
 is still 'test1'.
 
 It seems to me that this is a bug (but I could be misconfiguring/using
 something wrong)..
 
 Has anyone seen this behavior / can explain it such that I can
 understand this - am I misunderstanding the
 relationship between running servlets and connected clients?
 
 
 



What is net.class?

2000-12-18 Thread Smith, Steven M

Does anyone know why Apache/TomCat is looking for java/net.class?

I am running Apache 1.3.14 with TomCat 3.2.1 after upgrading from 3.1 on
Windows NT 4.0, SP 4 under JDK1.2.2_005. After upgrading, the following
messages appeared in Apache's error.log:

[Mon Dec 18 13:36:18 2000] [error] [client my IP address] File does not
exist:
d:/sms/junk/jakarta-tomcat-3.2.1/jakarta-tomcat-3.2.1/webapps/xerox/html/jba
sim/java/net.class

and this message in access.log:

my IP address - - [12/Dec/2000:13:30:57 -0500] "GET
/Xerox/HTML/JBAsim/java/net.class HTTP/1.0" 404 308

I have no references to a class named "net" in my source code. Any ideas why
this class is being referenced?

Thanks in advance for your help.


- Steve  



web.xml parsing

2000-12-18 Thread John de la Garza

I am a bit new to XML tools.  Can someone tell me what I should be doing to
be able to add and delete security constraint info in the web.xml file?

I have tried reading some docs on XML as a whole, but I need to get going
quickly and don't have time to read everything about XML as a whole...I just
need to know what to focus on to be able to parse a data file and add in
stuff and delete stuff...for a config file




RE: web.xml parsing

2000-12-18 Thread Dave Newton

 I am a bit new to XML tools.  Can someone tell me what I should 
 be doing to be able to add and delete security constraint info 
 in the web.xml file?

If it's just a config file just go in with a text editor~is that what
you're asking?

You don't need to parse/etc. unless you need to do this programmatically.

Dave




Re: bug in getUserPrincipal()?

2000-12-18 Thread Thom Park

Hi Mark,

I was using IE(5.5) -  I started up a fresh session from the icon on the
desktop for each test.
I also repeated the tesit using Netscape 4.7 and saw the same behaviour.

 I noticed that in  org.apache.tomcat.core.RequestImpl.getUserPrincipal() that
there's a test that goes something like:

if ( principal == null ) {
   principal = new SimplePrincipal( getRemoteUser());
   }

What happens if the principal isn't null and we have a different user logged in.

I'll be honest and say that my knowlege of what the relationship between the
RequestImpl object and the session
is somewhat clouded but I would have thought that I wouldn't be seeing this
behavior here.

Any ideas what I could have got wrong configuration-wise?

-Thom

p.s. did anyone take a look at that 'bug in security-role-ref' posting I sent
out? I need to verify with the
tomcat-elders that the change I proposed made sense prior to patching my copy of
tomcat, or
wether I'm making a damn fool of my self ;-)

-T



"Palumbo, Mark" wrote:

 How did you "open" the second browser?  Did you ask your browser to spawn a
 new browser window, or did you open a new one via an icon, system menu,
 command line, etc.?

 If you ask an IE browser to open a new window, the two "browsers" will share
 the same cookie so tomcat will think they are the same user...

  -Original Message-
  From: Thom Park [mailto:[EMAIL PROTECTED]]
  Sent: Monday, December 18, 2000 4:58 PM
  To: [EMAIL PROTECTED]
  Subject: bug in getUserPrincipal()?
 
 
  Dear All,
 
  I'm seeing some odd behavior from getUserPrincipal(). I have a simple
  servlet that calls:
 
  getRemoteUser(), getUserPrincipal() and isUserInRole().
 
  I've setup an appropriate web.xml and all is well until I access the
  same servlet from two web-browsers on the same machine.
 
  In the first  browser, I login as user test1, in the second browser I
  log in as user tomcat.
 
  In the first (correct) case, I see that the user is 'test1', the
  principal is 'test1' and the user is in role.
  In the second case, I see that the user is 'tomcat', but the principal
  is still 'test1'.
 
  It seems to me that this is a bug (but I could be misconfiguring/using
  something wrong)..
 
  Has anyone seen this behavior / can explain it such that I can
  understand this - am I misunderstanding the
  relationship between running servlets and connected clients?
 
 
 




New JSP based website

2000-12-18 Thread Alan Wright


Myself and a friend have just put a JSP based website up at www.free-minder.com
We have put a bit of background on the site up in the "About" section
and plan to put as much of the
source as we can in the New Year. I will post another message when
the source is available.
The site uses Interbase/Tomcat/JSP on a Cobalt RaQ4 and was developed
using JBuilder for the inter
active stuff and Perl for the batch stuff.
Please feel free to use the site as we intend to keep it free for use
and free of adverts.

Happy Christmas
Alan Wright and Fraser Maclennan
PS reply direct to my mail address as I have unsubscribed from the list
for the time being.


RE: Tomcat configuration question

2000-12-18 Thread Anthony Ikeda

This was brought up in the guru mailing list website:
There is some source code you need to rewrite and recompile the code.

I don't have the details handy, but if you email later I could dig it out
and pass it on.

Cheers
Anthony Ikeda,
Web Application Developer,
Proxima Technology,

Level 13,
181 Miller Street,
North Sydney
Australia


PH: +612-9458-1718
Mob: 041 624 5143


 -Original Message-
 From: isu:jwkoh [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, 19 December 2000 6:19 AM
 To: [EMAIL PROTECTED]
 Subject: Re: Tomcat configuration question
 
 
 sorry, no idea.
 - Original Message - 
 From: "Fabricio Pirez" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, December 18, 2000 1:21 PM
 Subject: Tomcat configuration question
 
 
  Hello
  I'm using IIS+Tomcat+isapi_redirect.dll
  I need to know how to disable directory browsing in a 
 directory served by
  tomcat
  Is it possible?
  
  Thanks in advance
  
  
 



3.2 + IIS: still having problems

2000-12-18 Thread Carles Pi-Sunyer

Hi,

I've been struggling for the last few days to integrate tomcat 3.2 with IIS.
My current situation is that I am getting the green up arrow for the filter,
but I'm getting 404 messages for the pages I'm requesting. 

I've tried the following advice without success:
1) use short directory names.
2) use the 3.1 workers.properties and uriworkermap.properties files
3) put the isapi_redirect.dll in a directory under the inetpub directory
4) reboot NT after changes

My IIS log files show this entry after a request:

20:17:11 127.0.0.1 GET /jakarta/isapi_redirect.dll+ 404

this is a little different then if I request a page that doesn't exist:

22:56:34 127.0.0.1 GET /notthere.html 404

What does the "+" after the isapi_redirect.dll mean?

Any other suggestions on getting this working?

Thanks,
Carles

Carles Pi-Sunyer
Stario, Inc.
http://www.stario.com
[EMAIL PROTECTED]
408 844-8333 ex:326
 



Re: Building output page by page.

2000-12-18 Thread Mark Koscak




Hello again,

I know someone responded to this message, I was unable to respond and the 
original message was deleted. My apologies. (Don't asklong story...)

At present it takes around 13sec to build a page of 1300 rows over 10MB 
Lan. I am pushing HTML output in a display method using out.println(...); 
right after my database table queries.

My aim is to reduce the time it takes to display an initial page to the end 
user, by breaking up the output into smaller chunks. 

There is also a good chance that I will merge the two tables into one to 
reduce the databaseconnection requirements.

Thanks Again.
Mark

/
* PREVOIUS MESSAGE
/

Hello everyone,

I have build a Servlet application thatcreates a single 
HTML page with up to 1300 rows in a table.

Can anyone give me some links or advice on how I can break 
this output into HTML pages with say 100 rows per table, with a corresponding 
selection bar at the bottom of each screen, giving the user access to 
anypage they click on?

Thanks in advance.

Mark


Re: J2EE OpenEJB

2000-12-18 Thread jdunn

From what I have read Enterprise level applications
are headed to  3 or 4 tiers. Tier 1 is the client (browser)
Tier two is the Web server coupled with a container for presentation logic.

Tier three is optional and is a container for business logic (ie.
Enterprise Java Beans )
Tier four is the database/ data repository.

The basic idea is to separate the data from the presentation (display)
tomcat is a web server add on that provides a container for the
presentation
logicby supporting JSP  servletts. It works with several web servers-
Apache, IIS among them.  It is built on java and has versions for
Linux/Unix and
windows. It can run on the same machine or a different machine than the
webserver.
In fact, different contex can be on different machines.

You can of course skip the EJB tier and put JDBC inside the jsp or
servletts
if you consider a full blown EJB container as overkill. If tomcat evolves,
 I expect it to merge with the web servers as built in. Not in the
direction
of EJB.   Also check out cocoon - an XML-Java document system.

dferugson wrote:

 I noticed a reference to tomcat on the openEJB site.
 Then I went to apache.org and notice that the latest build of tomcat is
 JNDI complient
 Will tomcat evolve into an application server or is it already read for
 this?

 If tomcat is not going the direction of app server is anyone making use
 of OpenEJB?
 Anybody have experience with JBOSS?\

 Sorry for the slight tangent ;)
 --
 Doug Ferguson
 Software Developer
 www.coremetrics.com
 512-342-2623x212
 512-619-9972(cell)




Re: Building output page by page.

2000-12-18 Thread Dave Smith



Hi Mark,

I'll repeat whatI said in my 
earlier
response. You are not giving much
information about what you are doing.

You do mention making "database 
queries".

Lets assume you are accessing a DB 
with
sequel. In that case you can perform the 
following
type of query:

select * from some_table where primaryKey  min 
and primaryKey = max;

Where min and max are limits you set. 
This would return a range of records between min 
and max, including max.

Translating into servlets:

A design that comes easily to mind 
would
use a controller servlet and a JSP 
page.

The controller is going to receive a POST from 

a webpage... The controller doesn't do 
anything,
just redirects output and passes on 
parameters.

form -- params( min, max) -- 
controller.

The controller redirects output to a 
JSP:

controller -- 
sendRedirect("/some.jsp?min=101max=200");

The webpage is going to be produced as 
output
from a JSP called some.jsp:

JSP --(current data, 101 through 200) and 
new form with code for next set of data.

...
current data
...

form action="/servlet/Controller" 
method="POST"
input type="hidden" name="min" 
value="%=min%"

input type="hidden" name="max" 
value="%=max%"
input type="submit" value="Get next one hundred entries"
/form


If this doesn't make any sense you might want 
to
read up on the technology before going much 
farther.
A good start would be Java Servlet Programming 
by Hunter and Crawford.

Dave

  - Original Message - 
  From: 
  Mark 
  Koscak 
  To: tomcat 
  Sent: Monday, December 18, 2000 5:39 
  PM
  Subject: Re: Building output page by 
  page.
  
  
  Hello again,
  
  I know someone responded to this message, I was unable to respond and the 
  original message was deleted. My apologies. (Don't asklong 
  story...)
  
  At present it takes around 13sec to build a page of 1300 rows over 10MB 
  Lan. I am pushing HTML output in a display method using 
  out.println(...); right after my database table queries.
  
  My aim is to reduce the time it takes to display an initial page to the 
  end user, by breaking up the output into smaller chunks. 
  
  There is also a good chance that I will merge the two tables into one to 
  reduce the databaseconnection requirements.
  
  Thanks Again.
  Mark
  
  /
  * PREVOIUS MESSAGE
  /
  
  Hello everyone,
  
  I have build a Servlet application thatcreates a 
  single HTML page with up to 1300 rows in a table.
  
  Can anyone give me some links or advice on how I can break 
  this output into HTML pages with say 100 rows per table, with a corresponding 
  selection bar at the bottom of each screen, giving the user access to 
  anypage they click on?
  
  Thanks in advance.
  
  Mark


C:\Jakarta\jakarta-tomcat-3.2.1-src\build.xml:93: Cannot use classic compiler

2000-12-18 Thread Jacob Thomas
Title: C:\Jakarta\jakarta-tomcat-3.2.1-src\build.xml:93: Cannot use classic compiler





While trying to install Tomcat, got the following error:


C:\Jakarta\jakarta-tomcat-3.2.1-src\build.xml:93: Cannot use classic compiler, a
s it is not available.


Tried removing the line
 property name=build.compiler value=classic/
from build.xml but that did not make any difference.


Any suggestions?
--
Thanks in advance
Jacob





Q:forcing reload of a changed bean

2000-12-18 Thread Joakim Verona

hello,

is there a way to force reload of a recompiled bean?
ok, this is supposed to be automatic but it doesnt always work,
so is there a way to force tomcat to unload a class so that it
will be forced to reload the same class next time??

-- 
Joakim Verona
[EMAIL PROTECTED]
http://www.verona.se/



Re: J2EE OpenEJB

2000-12-18 Thread Craig R. McClanahan

dferugson wrote:

 I noticed a reference to tomcat on the openEJB site.
 Then I went to apache.org and notice that the latest build of tomcat is
 JNDI complient
 Will tomcat evolve into an application server or is it already read for
 this?


I personally do not see Tomcat evolving into a J2EE-type application server.
Rather, I think you'll see folks like JBoss, OpenEJB, Enhydra, etc. embedding
Tomcat as their web container.

This is the same approach that Sun used in the J2EE reference implementation --
version 1.2 includes a highly modified version of Tomcat 3.0, and version 1.3 is
going to include Tomcat 4.0.


 If tomcat is not going the direction of app server is anyone making use
 of OpenEJB?
 Anybody have experience with JBOSS?\

 Sorry for the slight tangent ;)
 --
 Doug Ferguson
 Software Developer
 www.coremetrics.com
 512-342-2623x212
 512-619-9972(cell)

Craig McClanahan





Re: What is net.class?

2000-12-18 Thread Craig R. McClanahan

"Smith, Steven M" wrote:

 Does anyone know why Apache/TomCat is looking for java/net.class?


They are looking for this class because some client asked for it.  That's why it
shows up in the access log.

My guess would be it's an applet, but without knowing anything about the client
that issued this request, there is no way to be sure.

Another possibility is that you have a file like Net.class (note the case
difference) -- in Tomcat 3.1 (before the 3.1.1 update), filename matches were
not case senstive.  They are in 3.1.1, 3.2, and 3.2.1.

Craig McClanahan





How to password-protect a servlet?

2000-12-18 Thread Neil Aggarwal

Hello:

I am using Apache 1.3.12 with Tomcat 3.1 and I wanted to 
password protect a servlet running on Tomcat with the 
Apache password mechanism.

In my httpd.conf file, I placed the following lines:
LocationMatch /videosearch/servlet/AdminServlet
AuthName "VideoSearch Admin"
AuthType Basic
AuthUserFile /usr/local/apache/conf/vidadmin.password
require valid-user
/LocationMatch

But, it did not ask me for a password. But, if I change the location
match to:
LocationMatch /test
AuthName "VideoSearch Admin"
AuthType Basic
AuthUserFile /usr/local/apache/conf/vidadmin.password
require valid-user
/LocationMatch

(The only thing I changed is the location to a directory called
test)

Everything works fine in this case.

Is Tomcat intercepting the URL before apache has a chance to
check if it needs to ask for a password?

Is there a way to use Apache's authentication for URLs that
point to Tomcat?

If not, does Tomcat have authentication capabilities?

Thanks,
Neil.

--
Neil Aggarwal
JAMM Consulting, Inc. -- (972) 612-6056, http://www.JAMMConsulting.com
Custom Internet Development -- Java, JSP, servlets, databases






Re: 3.2 + IIS: still having problems

2000-12-18 Thread Winifred Sanchez

 are you trying to setup tomcat to serve only jsp pages or all pages in a context 
(including html)? if you're serving all pages, try opening a page by giving the 
complete url. if you still get a 404 message, it means that you haven't set-up tomcat 
to communicate with IIS properly. try checking the registry keys.

if you're setting up tomcat to serve only the jsp pages and IIS to serve the html 
pages in the context, you need to add a virtual directory to IIS. Use the context name 
as the virtual directory name and it should point to where the context is located. You 
can use the IIS Console Manager to do this. Stop and Stop IIS and see if it works.

Hope this helps.
--

On Mon, 18 Dec 2000 15:05:23  
 Carles Pi-Sunyer wrote:
Hi,

I've been struggling for the last few days to integrate tomcat 3.2 with IIS.
My current situation is that I am getting the green up arrow for the filter,
but I'm getting 404 messages for the pages I'm requesting. 

I've tried the following advice without success:
1) use short directory names.
2) use the 3.1 workers.properties and uriworkermap.properties files
3) put the isapi_redirect.dll in a directory under the inetpub directory
4) reboot NT after changes

My IIS log files show this entry after a request:

20:17:11 127.0.0.1 GET /jakarta/isapi_redirect.dll+ 404

this is a little different then if I request a page that doesn't exist:

22:56:34 127.0.0.1 GET /notthere.html 404

What does the "+" after the isapi_redirect.dll mean?

Any other suggestions on getting this working?

Thanks,
Carles

Carles Pi-Sunyer
Stario, Inc.
http://www.stario.com
[EMAIL PROTECTED]
408 844-8333 ex:326
 



Get FREE Email/Voicemail with 15MB at Lycos Communications at http://comm.lycos.com



Re: wierd problem reading remote mapped files in servlets

2000-12-18 Thread Julio Serje (@canada.com)



Hi, Beti

You may be referencing to the file in the wrong case. Tomcat 
3.2 is case sensitive. (I do read files in mapped drives in both NT/98 without a 
problem... Maybe there's an issue with Win2k)

Julio


  - Original Message - 
  From: 
  Betty Chang 
  To: [EMAIL PROTECTED] 
  
  Sent: Monday, December 18, 2000 4:35 
  PM
  Subject: wierd problem reading remote 
  mapped files in servlets
  
  
  Hi all -- has anyone seen this problem? I running a servlet 
  on Windows 2000, or NT, and it's trying to read a file that is mapped from a 
  remote machine (e.g.: m:\junk.txt, where m: is mapped to something on 
  the network). On Windows 2000, the drive will actually disconnect on me 
  (when I run "net use", I see that) and the program cannot read the 
  file.
  
  If I run the program as a main(), things work fine.
  
  Any clues??
  
  Thanks
  
  Betty
  Portal Wave, Inc.The Fastest 
  Track to Integrated e-Businesswww.portalwave.com


Re: my html FORM ACTION= can't find my servlet

2000-12-18 Thread Julio Serje (@canada.com)

Try:

FORM ACTION="/examples/servlet/ThreeParams" Method="get"
.
input type="text" name="param1" value="bubba"
input
input
.
.
/form


I'm assuming that you have the three fields in your form coresponding to the
three parameters, and that you are implementing the doGet method in your
servlet.

Julio


- Original Message -
From: Mark Koscak 
To: [EMAIL PROTECTED]
Sent: Sunday, December 17, 2000 5:09 PM
Subject: Re: my html FORM ACTION=  can't find my servlet


 I have encountered a similar problem.

 In my case I think it is because I have NOT integrated Apache with
 Jakarta-Tomcat. Therefore Apache would be unable to resolve the relative
 pathnames.

 Mark.

 - Original Message -
 From: 
 To: tomcat mailing list [EMAIL PROTECTED]
 Sent: Saturday, December 16, 2000 9:23 AM
 Subject: my html FORM ACTION=  can't find my servlet


  I am working on the "Three Parameters" servlet in Marty Hall's book
  (p.69) and the servlet is working great when I call it from the
  "Location" line of the browser such as:
 
 

http://localhost:8080/examples/servlet/ThreeParams?param1=bubbaparam2=jimbo
 param3=janiesue
 
  But I can't find the secret code to put in the ACTION argument of the
  FORM tag.  The book recommends :
 
  FORM ACTION="servlets/coreservlets.ThreeParams" which I tried
  unsuccessfully.  (Netscape gives me a variety of "unable to find
  directory or file" messages)  Then I removed the package statements and
  re-compiled with them in the base directory where I found the working
  examples:
 
  C:\\tomcat\webapps\examples\WEB-INF\classes
 
  I've tried all these variations, with forward and back slashes, and
  with/without double quote marks and with/without leading slashes:
 
  ThreeParams
  servlets/ThreeParams
  examples/servlets/ThreeParams
 
 
  When I used "ThreeParams", Netscape said it couldn't find file or
  directory C:\\tomcat\webapps\examples\WEB-INF\classes, which would have
  been the correct directory.  I tried "ThreeParams.class" and it produced
  the correct line at the location line of the browser, but the output was
  garbled, strange characters, etc.
 
  Any suggestions would be appreciated.  Thanks.
 
  Michael Brubaker, Java Developer Wannabe, Orlando, Florida
 
  Win98/Tomcat 3.2.1/JDK1.3/Netscape 4.75





sdk 1.3.0 fcs and netscape plugin problem

2000-12-18 Thread Robert B. Easter

This is off topic here, but maybe some knowledgable java coders in here can 
help me...

I've install Netscape 4.76 to /usr/local/netscape (fresh install) and the 
Blackdown SDK 1.3.0 FCS to /usr/local/j2sdk1.3.0

The instructions for installing the Netscape plugin that comes with sdk1.3.0 
says you just make a symlink like this:

cd /usr/local/netscape/plugins
ln -s /usr/local/j2sdk1.3.0/jre/plugin/i386/javaplugin.so javaplugin.so

I did that and it doesn't work.  When I run Netscape like this:

cd /usr/local/j2sdk1.3.0/jre
netscape JavaPluginControlPanel.html 

... I get a popup message in Netscape that it can't load libjvm.so:

java_vm: error in loading shared libraries: libjvm.so: cannot open shared 
object file: No such file or directory
Plugin: Plugin is not enabled or Java VM process has died.

I don't understand this, PLEASE help me! :)

Sorry for an off-topic post.

Before I can really get into Java development with Jakarta, I feel I at least 
need a working environment that includes the Netscape plugin.

-- 
 Robert B. Easter  [EMAIL PROTECTED] -
- CompTechNews Message Board   http://www.comptechnews.com/ -
- CompTechServ Tech Services   http://www.comptechserv.com/ -
-- http://www.comptechnews.com/~reaster/ 



Re: sdk 1.3.0 fcs and netscape plugin problem

2000-12-18 Thread Bojan Smojver

Try to put the plugin in ~/.netscape/plugins instead.

Bojan

"Robert B. Easter" wrote:
 cd /usr/local/netscape/plugins
 ln -s /usr/local/j2sdk1.3.0/jre/plugin/i386/javaplugin.so javaplugin.so



beans with Virtual Hosting (Apache + Tomcat + mod_jk)

2000-12-18 Thread Tung Fai


I success doing Virtual Hosting  on Apache + Tomcat + mod_jk

but I have another question.

How to make each virtual host have they own *private* bean ??

I need set the CLASSPATH to each virtual host's directory ?

Thanks








=
The information in this email is confidential and may be legally
privileged. It is intended solely for the addressee. Access to this
email by anyone else is unauthorised.  If you are not the intended
recipient, any disclosure, copying,  distribution or any action taken
or omitted to be taken in reliance on it, is prohibited and may be
unlawful. If it has been wrongly sent to you, please delete
immediately and notify us. Thank you.
=



Re: Building output page by page.

2000-12-18 Thread Mark Koscak



Thanks for the input Dave,

I have a HTML form that sends a POST request to a Servlet 
class. The servlet class interacts with another Java class that I use to 
access a MySQL database, and display the results.

Browser(FORM)--Servlet--JavaDBAccessdisplay--Browser(HTML 
Display)


When accessing the database on the first instance a result set 
is returned.

ResultSet rs = stmt.executeQuery(queryString);

Now that I have my first aggregation of data I enter a while 
loop
while( rs.next() )
{
 /* Perform my 
second query using fields from my earlier query

 /* Now that I have 
all my data I output my table row using the visibility
/* I have to 
my PrintWriter object. Passed earlier from my Servlet class.
}//end while

/* close any open connectionsand files 
/* and exit the method.

What I'm really after is similar functionality to say when the 
Google search engine returns a result set. 
For example say 100 results are returned. There are ten 
results per page with each page footer having
1 2 3 4 5 6 7 8 9 10. Each number being a link to a group of 
ten records.


  
- Original Message - 

  From: 
  Dave Smith 
  
  To: [EMAIL PROTECTED] 
  Sent: Sunday, November 19, 2000 11:35 
  AM
  Subject: Re: Building output page by 
  page.
  
  Hi Mark,
  
  I'll repeat whatI said in my 
  earlier
  response. You are not giving much
  information about what you are 
doing.
  
  You do mention making "database 
  queries".
  
  Lets assume you are accessing a DB 
  with
  sequel. In that case you can perform the 
  following
  type of query:
  
  select * from some_table where primaryKey  
  min and primaryKey = max;
  
  Where min and max are limits you set. 
  
  This would return a range of records between min 
  and max, including max.
  
  Translating into servlets:
  
  A design that comes easily to mind 
  would
  use a controller servlet and a JSP 
  page.
  
  The controller is going to receive a POST from 
  
  a webpage... The controller doesn't do 
  anything,
  just redirects output and passes on 
  parameters.
  
  form -- params( min, max) -- 
  controller.
  
  The controller redirects output to a 
  JSP:
  
  controller -- 
  sendRedirect("/some.jsp?min=101max=200");
  
  The webpage is going to be produced as 
  output
  from a JSP called some.jsp:
  
  JSP --(current data, 101 through 200) 
  and new form with code for next set of data.
  
  ...
  current data
  ...
  
  form action="/servlet/Controller" 
  method="POST"
  input type="hidden" name="min" 
  value="%=min%"
  
  input type="hidden" name="max" 
  value="%=max%"
  input type="submit" value="Get next one hundred entries"
  /form
  
  
  If this doesn't make any sense you might want 
  to
  read up on the technology before going much 
  farther.
  A good start would be Java Servlet Programming 
  by Hunter and Crawford.
  
  Dave
  
- Original Message - 
From: 
Mark 
Koscak 
To: tomcat 
Sent: Monday, December 18, 2000 5:39 
PM
Subject: Re: Building output page by 
page.


Hello again,

I know someone responded to this message, I was unable to respond and 
the original message was deleted. My apologies. (Don't asklong 
story...)

At present it takes around 13sec to build a page of 1300 rows over 10MB 
Lan. I am pushing HTML output in a display method using 
out.println(...); right after my database table queries.

My aim is to reduce the time it takes to display an initial page to the 
end user, by breaking up the output into smaller chunks. 

There is also a good chance that I will merge the two tables into one 
to reduce the databaseconnection requirements.

Thanks Again.
Mark

/
* PREVOIUS MESSAGE
/

Hello everyone,

I have build a Servlet application thatcreates a 
single HTML page with up to 1300 rows in a table.

Can anyone give me some links or advice on how I can break 
this output into HTML pages with say 100 rows per table, with a 
corresponding selection bar at the bottom of each screen, giving the user 
access to anypage they click on?

Thanks in advance.

Mark


RE: database connection problem when run nt service

2000-12-18 Thread Jared Clinton

I am extremly new to tomcat, although I suspect that it is to do with the NT
user that tha service logs in as and the permissions in the database that
the user has?

?Stab in the dark?

Jared Clinton.

 -Original Message-
 From: H Deng [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, 19 December 2000 17:10
 To: [EMAIL PROTECTED]
 Subject: database connection problem when run nt service
 
 
 Hi everyone, I installed apache 1.3.4 and tomcat 3.2.1 on 
 windows NT4.0
 /windows 2000 and tried to set up tomcat to run NT service. I used
 mod_jk.dll to test a simple java code to connect to a database and it
 worked fine. However, when I tried to use jk_nt_service.exe, 
 other part
 of the the java program can run but the connection to the 
 database can't
 be establised. The following code gives a SQLException:
 
 dbCon =3D DriverManager.getConnection("jdbc:odbc:book");
 
 but the same code worked fine with mod_jk.dll.
 
 I tried to put rt.jar (which contains DriverManager.class) in the
 classpath in wrapper.properties:
 
 wrapper.class_path=3D$(wrapper.java_home)\jre\lib\rt.jar
 
 but it did not help.
 
 Please help me. Thanks in advance.
 
 
 _
 Get your FREE download of MSN Explorer at http://explorer.msn.com
 



Tomcat won't serve JSP's from my web server's root directory

2000-12-18 Thread Andreas Sheriff

 Help!  I've installed Tomcat and the mod_jserv into Apache.  The examples
on
 the Tomcat side works, but it won't serve JSP pages from my Apache root
 directory.

 Here is a brief snippet of the automatically genrated config file:

 #Reference to .jsp added
 AddType text/jsp .jsp
 AddHandler jserv-servlet .jsp

 Is there anything else I need to make the engine process JSP files from my
 server's root directory?

 By the way, I'm coming from a JSERV environment.  Do I need a web
 application to serve my JSP's?





XMLC on Tomcat

2000-12-18 Thread Christian Bjørnbak

Hi

Using a XMLC (from Enhydra.org) based Servlet on Tomcat gives a
NoSuchMethodException.

Consulting the XMLC maillinglist gives the answer that it's proberly because
I use a level 1 DOM parser instead of the level 2 I should use...

As I'm starting Tomcat without a classpath the only DOM parser to override
the one in the xmlc.jar is the one in the tomcat xml.jar!?

Is it correct that it is a level 1 DOM parser in Tomcat 3.1? Is it changed
in newer Tomcats?

Can I change it? How?

Thanks,

Christian Bjørnbak




AW: Problems with change from 3.1 to 3.2

2000-12-18 Thread Hanusch, Hartwig

Hallo Tobias,

das selbs passiert bei mir auch (in Verbindung mit dem Apache - ohne
Webserver
, d.h. Port 8080 ist alles klar).
Es tritt bei mir im Zusammenhang mit dem Session-Management auf, wenn von
der 
get die post methode gerufen wird.
Hast du eine Lösung? Wenn ja, lasse sie mich doch bitte wissen (das gilt
auch andersherum :))

Viele Grüße
Hartwig Hanusch

 -Ursprüngliche Nachricht-
 Von:  [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
 Gesendet am:  Montag, 18. Dezember 2000 20:00
 An:   [EMAIL PROTECTED]
 Betreff:  Problems with change from 3.1 to 3.2
 
 Hi
 
 I have an web-app, which was running in tomcat 3.1 without error.
 I tried to deploy this web-app in tomcat 3.2, but i get the following
 exception:
 
 java.lang.NullPointerException at 
 org.apache.tomcat.facade.HttpSessionFacade.getValue(HttpSessionFacade.java
 :158)
 
 I know, that tomcat3.2 is now casesensitiv and i am sure that this is not
 the 
 reason.
 What else did change from 3.1 to 3.2 or is this maybe a bug ?
 
 Tobias Reinhardt



AW: Problems with change from 3.1 to 3.2

2000-12-18 Thread Hanusch, Hartwig

Hi there,

sorry - i should have written in english - sorry again,

so ... 
same think happens to me when using apache (without everything is fine on
tomcats port 8080).
This problem arises in relation to the session management ... when the get
method calls via html
the post method in the same servlet.
Whoever has a solution, please contact me - i am looking for that for over a
week now.

Cheers Hartwig






 -Ursprüngliche Nachricht-
 Von:  Hanusch, Hartwig 
 Gesendet am:  Dienstag, 19. Dezember 2000 07:49
 An:   '[EMAIL PROTECTED]'
 Betreff:  AW: Problems with change from 3.1 to 3.2
 
 Hallo Tobias,
 
 das selbs passiert bei mir auch (in Verbindung mit dem Apache - ohne
 Webserver
 , d.h. Port 8080 ist alles klar).
 Es tritt bei mir im Zusammenhang mit dem Session-Management auf, wenn von
 der 
 get die post methode gerufen wird.
 Hast du eine Lösung? Wenn ja, lasse sie mich doch bitte wissen (das gilt
 auch andersherum :))
 
 Viele Grüße
 Hartwig Hanusch
 
  -Ursprüngliche Nachricht-
  Von:[EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
  Gesendet am:Montag, 18. Dezember 2000 20:00
  An: [EMAIL PROTECTED]
  Betreff:Problems with change from 3.1 to 3.2
  
  Hi
  
  I have an web-app, which was running in tomcat 3.1 without error.
  I tried to deploy this web-app in tomcat 3.2, but i get the following
  exception:
  
  java.lang.NullPointerException at 
 
 org.apache.tomcat.facade.HttpSessionFacade.getValue(HttpSessionFacade.java
  :158)
  
  I know, that tomcat3.2 is now casesensitiv and i am sure that this is
 not
  the 
  reason.
  What else did change from 3.1 to 3.2 or is this maybe a bug ?
  
  Tobias Reinhardt



  1   2   >