RE: will pay money for tomcat install

2000-11-15 Thread GOMEZ Henri

Hey,

Don't spend money and use my Redhat RPM to install tomcat on
a Redhat Linux Box (i386).

1) Go to : http://rpmized.free.fr/rpms/tomcat/

2) Download all stuff =

tomcat-3.2-beta7.1.src.rpm  (tomcat RPM source)
tomcat-3.2-beta7.1.noarch.rpm   (tomcat RPM with java stuff)
tomcat-manual-3.2-beta7.1.noarch.rpm(tomcat manual (fall in
/home/httpd/html/manual/tomcat)

tomcat-mod-3.2-beta7.1.src.rpm  (tomcat/apache connectors RPM
source)
tomcat-mod-3.2-beta7.1.i386.rpm (tomcat/apache connectors RPM i386)

3) rpm -Uvh tomcat-3.2-beta7.1.noarch.rpm   (at this moment you can do :
http://yoursystem:8080/examples/

4) rpm -Uvh tomcat-mod-3.2-beta7.1.i386.rpm (if you want to use tomcat with
apache - http://yoursystem/examples/ ) 

5) Go to amazon.com and buy me the latest O'Reilly book on Servlet (2nd
Edition) ;-)






some jsp examples fail with Error 500

2000-11-15 Thread Christoph Kukulies


After working with Tomcat 3.1/apache for a while now the project
is growing and demands and complexity grow as well. I wanted to use
my first own jsp application and while trying out the examples
I find that everything that accesses the compiler doesn't work.

Since the logs are spread all over the system (tomcat.log, http-error.log etc.)
all I can locate is jasper.log:
JASPER_LOG Wed Nov 15 09:33:48 CET 2000 Classpath according to the Servlet Eng
ine is: /usr/local/build/tomcat/webapps/examples/WEB-INF/classes/JASPER_LOG


The error on the client side:

Error: 500

Location: /examples/jsp/colors/colrs.jsp

org/apache/jasper/compiler/JavaCompiler 



Any help would be greatly appreciated.

-- 
Chris Christoph P. U. Kukulies [EMAIL PROTECTED]



RE: some jsp examples fail with Error 500

2000-11-15 Thread Kent Huo

Do you include jasper.jar and tools.jar in your classpath?

-Original Message-
From: Christoph Kukulies [mailto:[EMAIL PROTECTED]]
Sent: November 15, 2000 12:35 AM
To: [EMAIL PROTECTED]
Subject: some jsp examples fail with Error 500



After working with Tomcat 3.1/apache for a while now the project
is growing and demands and complexity grow as well. I wanted to use
my first own jsp application and while trying out the examples
I find that everything that accesses the compiler doesn't work.

Since the logs are spread all over the system (tomcat.log, http-error.log
etc.)
all I can locate is jasper.log:
JASPER_LOG Wed Nov 15 09:33:48 CET 2000 Classpath according to the Servlet
Eng
ine is:
/usr/local/build/tomcat/webapps/examples/WEB-INF/classes/JASPER_LOG


The error on the client side:

Error: 500

Location: /examples/jsp/colors/colrs.jsp

org/apache/jasper/compiler/JavaCompiler



Any help would be greatly appreciated.

--
Chris Christoph P. U. Kukulies [EMAIL PROTECTED]




RE: tomcat 3.2b5 - worker not found?

2000-11-15 Thread Alistair Hopkins

I posted earlier today [ApJservMount and VirtualHost] with exactly the same
problem.

And yes, I have https enabled in apache (mod_ssl).  Didn't think it was
relevant...

I'll try tomorrow and see if I can cure it by removing HTTPS.

Alistair.

-Original Message-
From: Day, Evan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 14, 2000 6:16 PM
To: '[EMAIL PROTECTED]'
Subject: tomcat 3.2b5 - worker not found?


Platform: Redhat 7.0, OpenSSL 0.9.6, Apache 1.3.14 w/ mm 1.1.3 and mod_ssl
2.7.1, tomcat 3.2b5
Vanilla configurations from fresh builds.

Apache works fine on its own in both HTTP and HTTPS.  Tomcat works find
standalone.

When I turn on mod_jk in apache to run servlets from the apache server, it
works fine if I run apache without SSL.  However, when I do an apachectl
startssl, I start seeing the following in the mod_jk.log:

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

I've looked through my httpd.conf (straight out of the apache distribution
with no changes except to include mod_jk.conf), the mod_jk.conf, and the
worker.properties files (only changes were to point the tomcat home and java
directories to the right places).  Haven't been able to find anything in the
archives or various FAQs to shed any light on this.

Any ideas what might be wrong?

Thanks

o  _  _ _
   _o  /\_   _ |\o   (_)\__/o  (_)
 _ \__(_) (_)/_ \_| \   _|/' \/
(_)(_)o (_) o   o  (_) o  (_)(_)'  _\o_
-
Evan Day
SUMMIT Information Systems
[EMAIL PROTECTED]
(800) 937-7500 x6301





RE: workers - loadbalancing

2000-11-15 Thread Christopher Blasnik

first off, thanks for all the replies and sorry for responding 2 days
too late :-)


Alistair Hopkins:

A guess,

but do green threads show up in your monitoring?

if sun uses green by default, but blackdown uses native, you may not see the
green as they are internal.

Al.

Indeed you are right. the SUN jdk uses the green threads!
i just wonder if there is any difference in speed, whether green or
native threads are used ? unfortunately my _very_ limited knowledge of
java, respectively my knowledge of how the JDK works ends here :-)
(btw, this is kind of off-topic, but is there any site that compares the
speed of the different JVMs from the various developers ?)


David Oxley wrote:

I believe the worker.ajp13.lbfactor parameter is only the priority of this
worker (not the number of processes).
You must start your own processes
seperatley as in virtual hosting and set up your
worker.loadbalancer.balanced_workers to point at the various workers you
have set up. You must then swap your config in mod_jk.conf from using ajp13
or ajp12 to use lb.

i do have a setup like this (currently experimenting with multiple
tomcats), but how does one calculate the right settings for the
lbfactor?
or are, for example, these settings sufficient:
ServerA (slow):  1
ServerB (fast):  2
ServerC (light-speed): 3


One more question i wanted to ask:
if i have a setup with like 100 virtual hosts on one machine, and tomcat
on the same server, is it a good idea to set up more than one tomcat for
these hosts ?
i thought about the following:
100 hosts - 4 tomcats - each tomcat responsible for 25 virtual hosts
or another scenario:
100 hosts - 2 tomcats - each tomcat responsible for 50 hosts

my thoughts behind all this are, that, if one tomcat dies by whatever
reason, there would still be another one left to serve the remaining
host, in order to guarantee at least some functionality in an
environment without any loadbalancing software / hardware.


regards,

christopher blasnik
mailto:[EMAIL PROTECTED]



permissions of tomcat tree

2000-11-15 Thread Christoph Kukulies


What are the permissions/ownership of the full tomcat tree?
I wonder if moving around the tree from one disk to another
using a tar pipe has messed my tomcat tree.

-- 
Chris Christoph P. U. Kukulies [EMAIL PROTECTED]





Re: permissions of tomcat tree

2000-11-15 Thread Christopher Blasnik

Christoph Kukulies wrote:
 
 What are the permissions/ownership of the full tomcat tree?
 I wonder if moving around the tree from one disk to another
 using a tar pipe has messed my tomcat tree.
 
 --
 Chris Christoph P. U. Kukulies [EMAIL PROTECTED]


in my setup everything belongs to root, but since "nobody" starts
tomcat, the logfile and work directory belong to nobody:nobody (or
nobody:root if you prefer)
(actually the work and log dir are just sym-links to another dir in
/var/log/tomcat/ - one should keep the filesystem tidy :-)

the class (respectively .jar) files and config files only have to be
readable by the user starting tomcat

regards,

christopher blasnik



Re: some jsp examples fail with Error 500

2000-11-15 Thread Christoph Kukulies

Interestingly I found this answer only in the archive but not (yet) 
in my mail. Anyway, I searched further and found that tomcat issues the
following error:

Unhandled error! You might want to consider having an error page to report such errors 
more gracefully
java.lang.NoClassDefFoundError: org/apache/jasper/compiler/JavaCompiler
at org.apache.jasper.JspEngineContext.createCompiler(JspEngineContext.java:293)
at org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:410)
at 
org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:149)
at 
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:161)
at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)
at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
at org.apache.tomcat.core.Co

This can be found several times in the archives and in many cases 
tools.jar is the answer.

I located tools.jar in my system only in /usr/local/jdk1.2/lib
ans since I'm using jdk1.1.8 I was not worrying about it. I now put
tools.jar explicitly in my CLASSPATH but things still do not 
work.

Same error message (as above).


Now you write I should include jasper.jar in my classpath. Hmm. Surely
an important piece, that jasper.jar but locate jasper.jar
doesn't give me any hit. Strange. Did I ever compile it during tomcat ant 
installation? I'm not sure now. How can I generate jasper.jar separately?


Thanks for helping.


 Do you include jasper.jar and tools.jar in your classpath?



 -Original Message-
 From: Christoph Kukulies [mailto:[EMAIL PROTECTED]]
 Sent: November 15, 2000 12:35 AM
 To: [EMAIL PROTECTED]
 Subject: some jsp examples fail with Error 500



 After working with Tomcat 3.1/apache for a while now the project
 is growing and demands and complexity grow as well. I wanted to use
 my first own jsp application and while trying out the examples
 I find that everything that accesses the compiler doesn't work.

 Since the logs are spread all over the system (tomcat.log, http-error.log
 etc.)
 all I can locate is jasper.log:
 JASPER_LOG Wed Nov 15 09:33:48 CET 2000 Classpath according to the Servlet
 Eng
 ine is:
 /usr/local/build/tomcat/webapps/examples/WEB-INF/classes/JASPER_LOG


-- 
Chris Christoph P. U. Kukulies [EMAIL PROTECTED]



Re: Integrating servlet output into JSP

2000-11-15 Thread carnell

I have been using doGet()!. So I make myself a doPost, and add in some
System.err.println,
and neither doGet or doPost is being called. :(

Craig.

- Original Message -
From: "Wyn Easton" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; "C S Carnell" [EMAIL PROTECTED]
Sent: Tuesday, November 14, 2000 5:15 PM
Subject: Re: Integrating servlet output into JSP


 Hmm...
 I know that if I'm in the doPost() of a servlet and I include() another
 servlet the included servlet's doPost() method will be called.
 I'm not sure which method in the servlet is called when you do the
 include from a JSP to a servlet.
 Maybe you could put a System.out.println() in the doGet() and
 doPost() of the included servlet to see which method is being called.
 (Or maybe someone else already knows...)

 --- carnell [EMAIL PROTECTED] wrote:
  Thanks, I've tried the code,  the JSP produces my layout/menus and
  stuff,
  but theres no output from the servlet.
 
  getRequestDispatcher appears to work correctly as rd is not null, but
  nothing seems to be included. I have tried
  both the bookholidayshow, and /servlet/bookholidayshow. The servlet
  works
  fine when entered
  into the browser.(although missing html/end html tags etc, IE doesn't
  care
  :)
 
  - Original Message -
  From: "Wyn Easton" [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Tuesday, November 14, 2000 2:55 PM
  Subject: Re: Integrating servlet output into JSP
 
 
   See code added below.
  
   --- carnell [EMAIL PROTECTED] wrote:
If in my JSP page, say bookholiday.jsp, I would like to include
output from
bookholidayshow servlet...
   
bookholiday.jsp:
html
include body/various menus and stuff
%
RequestDispather rd =
  request.getRequestDispatcher("bookholidayshow");
if (rd != null)
rd.include(request, resource);
%
/body
/html
   
bookholidayshow.java(class/servlet)
doGet(...)
{
out.println... etc..
}
   
But how do I use RequestDispatcher in the JSP? Can't make much
  sense
of the
docs.
   
- Original Message -
From: "Wyn Easton" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, November 14, 2000 12:38 PM
Subject: Re: Integrating servlet output into JSP
   
   
 This may be over simplifying your problem, but have you looked
 at the RequestDispather include() method?
 It allows you to use the output of another servlet/JSP in the
current
 servlet/JSP.

 --- carnell [EMAIL PROTECTED] wrote:
  I am currently migrating two projects that we have, both in
Servlets
  into
  JSP.
 
  Rather than rewriting everything into Model 2/with JSP
architecture,
  is it
  possible for me to write a JSP page that includes the output
  of
the
  Servlet(which make use of out.println a lot etc). I could
  simply
  remove the
  outs in the Servlet which generate the html/body/end body/end
html
  HTML
  tags.?
 
  Thanks,
 
  Craig.
 


 =
 Wyn Easton
 [EMAIL PROTECTED]

 __
 Do You Yahoo!?
 Yahoo! Calendar - Get organized for the holidays!
 http://calendar.yahoo.com/

   
  
  
   =
   Wyn Easton
   [EMAIL PROTECTED]
  
   __
   Do You Yahoo!?
   Yahoo! Calendar - Get organized for the holidays!
   http://calendar.yahoo.com/
 


 =
 Wyn Easton
 [EMAIL PROTECTED]

 __
 Do You Yahoo!?
 Yahoo! Calendar - Get organized for the holidays!
 http://calendar.yahoo.com/




RE: how to run a class on startup of tomcat ??

2000-11-15 Thread Sudheshna Methuku

Hi,

We used a servlet with init() and destroy() methods to start the services we
wanted to run at the tomcat startup and stop when tomcat is stopped. But we
found that the servlet's init() is getting called 5 times and destroy is not
at all being called. 

The xml tag we used in web.xml is 

servlet
servlet-nameinitializerServlet/servlet-name
servlet-classInitializerServlet/servlet-class
load-on-startup1/load-on-startup
/servlet

Any clues what could be the problem.

Thanks,
Sudheshna.M.


-Original Message-
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
ache.org]On Behalf Of Christian Mack
Sent: Monday, November 06, 2000 5:22 PM
To: '[EMAIL PROTECTED]'
Subject: RE: how to run a class on startup of tomcat ??


Hi Sudheshna

That's easy.
Just use a servlet which gets startet on tomcats startup.
In it's init() just start your Runnable.
The doXXX() methods are empty, as this servlet will never be called.

Tschau
Christian

 -Original Message-
 From: Sudheshna Methuku [mailto:[EMAIL PROTECTED]]
 Sent: Monday, November 06, 2000 7:25 AM
 To: [EMAIL PROTECTED]
 Cc: Subhashini Chirunomula; Marthi Nalini
 Subject: how to run a class on startup of tomcat ??
 
 
 Hi All,
 
 We have a startup class which needs to be run when tomcat is 
 started. Could
 anyone pl. tell us how it is possible. The startup class is 
 not a servlet,
 it implements runnable and it in turn starts some more threads. 
 
 Thanks,
 Sudheshna.M.
 



Re: [ANNOUNCE] Tomcat 4.0 Milestone 4

2000-11-15 Thread Marcus Crafter

Hi Craig,

Thanks for the announcement email. Great work! :-)

How are the Apache Connectors for Tomcat 4.0 coming along ? Is there
some kind of source already available via CVS somewhere ?

Cheers,

Marcus

On Wed, 1 Nov 2000, Craig R. McClanahan wrote:

 We're pleased to announce the availabililty of milestone 4 of the Tomcat
 4.0 servlet container and JSP engine.  Compared to milestone 3, this
 release reflects the following changes:
 
 * Implementation of all the changes between "public draft" and "proposed
 final draft"
   of the Servlet 2.3 and JSP 1.2 specifications.
 
 * Implementation of all remaining 2.3 / 1.2 features -- Tomcat 4.0 is
 now a
   feature complete implementation of the new specs!
 
 * Many bug fixes (see RELEASE-NOTES-4.0-M4.txt in the top level
 directory).
 
 Binary distributions of the new release are available from:
 
 http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0-m4
 
 and source releases can be downloaded from:
 
 
 http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0-m4/src
 
 If you are planning on building Tomcat 4.0-m4 from source, you will want
 to pick up the corresponding distribution of the servlet API classes,
 found in the same directory.  Users of the binary distribution need not
 do this -- a servlet.jar file containing the most current version of the
 servlet API classes is included in the "bin" directory of the binary
 release.
 
 Come and get it!
 
 Craig McClanahan
 
 
 
 

-- 
.
 ,,$,  Marcus Crafter
;$'  ':Computer Systems Engineer
$: :   Open Software Associates GmbH
 $   o_)$$$:   82-84 Mainzer Landstrasse
 ;$,_/\ :'   60327 Frankfurt Germany
   ' /( 
   \_' Email : [EMAIL PROTECTED]
  .Business Hours : +49 69 9757 200
:   After Hours: +49 69 49086750




Re: ?

2000-11-15 Thread Olivier Baillard




You can find it at:
http://jakarta.apache.org/builds/tomcat/release/v3.1/bin/linux/i386/


Bye!
Olivier


At 12:06 15.11.00 +0100, you wrote:
Hi all,

sorry for a dummy question. but where can i find the module to connect 
tomcat to apache? i want to use apache to catch requests to static HTML 
pages and tomcat to catch requests to servlets.

thanx and regards,
evgeni prikhodko




problems getting jdom to work

2000-11-15 Thread Philipp Zuderell

Hi all,

I can't get jdom to work.

I'm using jdom beta5 and tomcat 3.1 embedded with
apache 1.3.14. The sample servlets work just fine, and
my own servlet works too, unless it comes to the XML
parsing part.
I have included jdom.jar in the jakarta-tomcat\lib\ directory
and modified the tomcat.bat file. My .class-files reside in the same
directory as the sample servlets  (
jakarta-tomcat\webapps\examples\Web-inf\classes\ ).
As a java-application, the program works perfectly, but as
a servlet, I get the following Error:500:

java.lang.NoSuchMethodError: org.w3c.dom.DocumentType: method
getPublicId()Ljava/lang/String; not found
at org.jdom.input.DOMBuilder.buildTree(DOMBuilder.java, Compiled
Code)
at org.jdom.input.DOMBuilder.buildTree(DOMBuilder.java, Compiled
Code)
at org.jdom.input.DOMBuilder.build(DOMBuilder.java:191)
at org.jdom.input.DOMBuilder.build(DOMBuilder.java:216)
at HandleXML.XMLCreator(HandleXML.java:52)
at ResponseCreator.doPost(ResponseCreator.java:43)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java,
Compiled Code)
at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:597)

at
org.apache.tomcat.servlets.InvokerServlet.service(InvokerServlet.java:257)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java,
Compiled Code)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160)

at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java,
Compiled Code)
at java.lang.Thread.run(Unknown Source)

Thanks a lot for any help you can provide

Philipp





RE: problems getting jdom to work

2000-11-15 Thread Schell Wolfgang

 I can't get jdom to work.
 
 I'm using jdom beta5 and tomcat 3.1 embedded with
 apache 1.3.14. The sample servlets work just fine, and
 my own servlet works too, unless it comes to the XML
 parsing part.
 I have included jdom.jar in the jakarta-tomcat\lib\ directory
 and modified the tomcat.bat file. My .class-files reside in the same
 directory as the sample servlets  (
 jakarta-tomcat\webapps\examples\Web-inf\classes\ ).
 As a java-application, the program works perfectly, but as
 a servlet, I get the following Error:500:
 
 java.lang.NoSuchMethodError: org.w3c.dom.DocumentType: method
 getPublicId()Ljava/lang/String; not found
 at 
 org.jdom.input.DOMBuilder.buildTree(DOMBuilder.java, Compiled
 Code)
[snip]

You probably have an old version of the w3c DOM classes in your classpath.
JDOM might bring the version it needs with it but they might be hidden by
some prior version somewhere in your classpath.
Try to put the JDOM classes first in your classpath. If you don't have the
newest DOM classes go to
http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/java-binding.html
and download the DOM level 2 classes.

Hope this helps


Wolfgang

--
Wolfgang Schell



Virus checked  by Siemens AG ATD TD GFA Mannheim

 Wolfgang Schell (E-mail).vcf


Beginner: servlet.xml, .conf How set root

2000-11-15 Thread Maik Wiege

Hello,
I do not get it with this servlet.xml...
This is what I want:
I put all my static-files and jsp's into the TOMCAT_HOME\webapps\ROOT -
directory and some subdirectorys; and my classes and libs into the web-inf.
This project should be the default, so that http://localhost/ points to
TOMCAT_HOME\webapps\ROOT \index.html and http://localhost/servlets/Hello
should invoke the Servlet Hello.class in
TOMCAT_HOME\webapps\ROOT\web-inf\classes\
Of course I want my Apache-Server to serve the static HTML and Image files!

Can someone show me now what exactly I have to put into the server.xml,
web.xml and myTomcat-apache.conf (my file included into the httpd.conf)

Thank you for your help
  Maik





Tomcat, Apache mod_jk.so

2000-11-15 Thread Hans Kind

Hello,

Has there been experience with installing Tomcat, with Apache  mod_jk.so 
on a virtual server setup.

Note, virtual server means: Each customer on the server is running there 
own Apache web server. (and there own ip number).

rgds

Hans Kind.




Re: Integrating servlet output into JSP

2000-11-15 Thread Wyn Easton

Well, nobody else has jumped in to tell us which method will be called,
so, try putting the print statements in the servlets init() and
service() methods.  Maybe that will give us something to go on.

--- carnell [EMAIL PROTECTED] wrote:
 I have been using doGet()!. So I make myself a doPost, and add in
 some
 System.err.println,
 and neither doGet or doPost is being called. :(
 
 Craig.
 
 - Original Message -
 From: "Wyn Easton" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]; "C S Carnell" [EMAIL PROTECTED]
 Sent: Tuesday, November 14, 2000 5:15 PM
 Subject: Re: Integrating servlet output into JSP
 
 
  Hmm...
  I know that if I'm in the doPost() of a servlet and I include()
 another
  servlet the included servlet's doPost() method will be called.
  I'm not sure which method in the servlet is called when you do the
  include from a JSP to a servlet.
  Maybe you could put a System.out.println() in the doGet() and
  doPost() of the included servlet to see which method is being
 called.
  (Or maybe someone else already knows...)
 
  --- carnell [EMAIL PROTECTED] wrote:
   Thanks, I've tried the code,  the JSP produces my layout/menus
 and
   stuff,
   but theres no output from the servlet.
  
   getRequestDispatcher appears to work correctly as rd is not null,
 but
   nothing seems to be included. I have tried
   both the bookholidayshow, and /servlet/bookholidayshow. The
 servlet
   works
   fine when entered
   into the browser.(although missing html/end html tags etc, IE
 doesn't
   care
   :)
  
   - Original Message -
   From: "Wyn Easton" [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Sent: Tuesday, November 14, 2000 2:55 PM
   Subject: Re: Integrating servlet output into JSP
  
  
See code added below.
   
--- carnell [EMAIL PROTECTED] wrote:
 If in my JSP page, say bookholiday.jsp, I would like to
 include
 output from
 bookholidayshow servlet...

 bookholiday.jsp:
 html
 include body/various menus and stuff
 %
 RequestDispather rd =
   request.getRequestDispatcher("bookholidayshow");
 if (rd != null)
 rd.include(request, resource);
 %
 /body
 /html

 bookholidayshow.java(class/servlet)
 doGet(...)
 {
 out.println... etc..
 }

 But how do I use RequestDispatcher in the JSP? Can't make
 much
   sense
 of the
 docs.

 - Original Message -
 From: "Wyn Easton" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, November 14, 2000 12:38 PM
 Subject: Re: Integrating servlet output into JSP


  This may be over simplifying your problem, but have you
 looked
  at the RequestDispather include() method?
  It allows you to use the output of another servlet/JSP in
 the
 current
  servlet/JSP.
 
  --- carnell [EMAIL PROTECTED] wrote:
   I am currently migrating two projects that we have, both
 in
 Servlets
   into
   JSP.
  
   Rather than rewriting everything into Model 2/with JSP
 architecture,
   is it
   possible for me to write a JSP page that includes the
 output
   of
 the
   Servlet(which make use of out.println a lot etc). I could
   simply
   remove the
   outs in the Servlet which generate the html/body/end
 body/end
 html
   HTML
   tags.?
  
   Thanks,
  
   Craig.
  
 
 
  =
  Wyn Easton
  [EMAIL PROTECTED]
 
  __
  Do You Yahoo!?
  Yahoo! Calendar - Get organized for the holidays!
  http://calendar.yahoo.com/
 

   
   
=
Wyn Easton
[EMAIL PROTECTED]
   
__
Do You Yahoo!?
Yahoo! Calendar - Get organized for the holidays!
http://calendar.yahoo.com/
  
 
 
  =
  Wyn Easton
  [EMAIL PROTECTED]
 
  __
  Do You Yahoo!?
  Yahoo! Calendar - Get organized for the holidays!
  http://calendar.yahoo.com/
 


=
Wyn Easton
[EMAIL PROTECTED]

__
Do You Yahoo!?
Yahoo! Calendar - Get organized for the holidays!
http://calendar.yahoo.com/



using SSL on standalone Tomcat - Urgent !

2000-11-15 Thread Lacerda, Wellington (AFIS)

Hi All,

I've set up SSL on a 3.2b7 instance. Also I defined a context, say /wlss,
with a directory and a resource, say /wlss1/index.htm inside that context.

I want to configure that context in such a way that the access to
/wlss1/index.htm is only allowed if the transport is guaranteed at
confidential level(SSL). I read the spec and created this web.xml to do the
job:

web-app
 security-constraint
  web-resource-collection
   web-resource-namea/web-resource-name
   url-pattern/wlss1/*/url-pattern
   http-methodGET/http-method
   http-methodPOST/http-method
   user-data-constraint
transport-guaranteeCONFIDENTIAL/transport-guarantee
   /user-data-constraint
  /web-resource-collection
 /security-constraint
/web-app

By my understanding, I'm allowing access to the resource collection "a" -
mapped to /wlss1/anything with GET or POST only through a confidential
transport - SSL. 

It's not working at all. I can still access it through normal http. Am I
missing something here ?

Another question - how to impose confidential transport to the entire
context ?

Thanks in advance for any help,

Wellington Silva
UN/FAO




EJB

2000-11-15 Thread Peter Knight

I have tried to invoke EJB's from TOMCAT and get:

Internal Servlet Error:
javax.servlet.ServletException: Need to specify class name in environment or
system property:
Root cause:
javax.naming.NoInitialContextException: Need to specify class name in
environment or system property: e.t.c.

The EJB resides in an Oracle 8i 8.1.6 database.
I have included the EJB API and the two EJB jar files in the class path and
it doesn't seem to matter what I do, I cannot get it to work!!
PLEASE PLEASE HELP ME!

Regards Peter Knight



_
Important Note: This E-Mail is confidential, it must not be read, 
copied, disclosed or used by any person other than the above 
named addressees. Unauthorised use, disclosure or copying is 
strictly prohibited and may be unlawful. Eurostar (U.K.) Limited 
disclaims any liability for any action taken in reliance on the 
content of this E-Mail. The comments or statements expressed in 
this E-Mail are not necessarily those of Eurostar (U.K.) Limited 
or its subsidiaries or affiliates.

Eurostar (U.K.) Ltd. Registered Office: Eurostar House, Waterloo
Station, London, SE1 8SE, Registered in England No. 2462001 
VAT No. GB 657 719 590
_



UNSUBSCRIBE!

2000-11-15 Thread Rene' Clayton



-Original Message-
From: Lacerda, Wellington (AFIS) [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 15, 2000 7:28 AM
To: '[EMAIL PROTECTED]'
Subject: using SSL on standalone Tomcat - Urgent !


Hi All,

I've set up SSL on a 3.2b7 instance. Also I defined a context, say /wlss,
with a directory and a resource, say /wlss1/index.htm inside that context.

I want to configure that context in such a way that the access to
/wlss1/index.htm is only allowed if the transport is guaranteed at
confidential level(SSL). I read the spec and created this web.xml to do the
job:

web-app
 security-constraint
  web-resource-collection
   web-resource-namea/web-resource-name
   url-pattern/wlss1/*/url-pattern
   http-methodGET/http-method
   http-methodPOST/http-method
   user-data-constraint
transport-guaranteeCONFIDENTIAL/transport-guarantee
   /user-data-constraint
  /web-resource-collection
 /security-constraint
/web-app

By my understanding, I'm allowing access to the resource collection "a" -
mapped to /wlss1/anything with GET or POST only through a confidential
transport - SSL. 

It's not working at all. I can still access it through normal http. Am I
missing something here ?

Another question - how to impose confidential transport to the entire
context ?

Thanks in advance for any help,

Wellington Silva
UN/FAO



Re: some jsp examples fail with Error 500

2000-11-15 Thread Christoph Kukulies

On Wed, Nov 15, 2000 at 12:56:33AM -0800, Kent Huo wrote:
 Do you include jasper.jar and tools.jar in your classpath?

I repaired it by re-anting tomcat. JSP examples do work now again.
Unfortunately I deleted my conf directory and could hit ^C right before
build.sh clean deleted my webapps/servlets subdirectories but after
resurrecting everything (that's still tomcat 3.1beta - I didn't dare
to switch to 3.2b7 at this point in time)

Thanks.

 
 -Original Message-
 From: Christoph Kukulies [mailto:[EMAIL PROTECTED]]
 Sent: November 15, 2000 12:35 AM
 To: [EMAIL PROTECTED]
 Subject: some jsp examples fail with Error 500
 
 
 
 After working with Tomcat 3.1/apache for a while now the project
 is growing and demands and complexity grow as well. I wanted to use
 my first own jsp application and while trying out the examples
 I find that everything that accesses the compiler doesn't work.
 
 Since the logs are spread all over the system (tomcat.log, http-error.log
 etc.)
 all I can locate is jasper.log:
 JASPER_LOG Wed Nov 15 09:33:48 CET 2000 Classpath according to the Servlet
 Eng
 ine is:
 /usr/local/build/tomcat/webapps/examples/WEB-INF/classes/JASPER_LOG
 
 
 The error on the client side:
 
 Error: 500
 
 Location: /examples/jsp/colors/colrs.jsp
 
 org/apache/jasper/compiler/JavaCompiler
 
 
 
 Any help would be greatly appreciated.
 
 --
 Chris Christoph P. U. Kukulies [EMAIL PROTECTED]

-- 
Chris Christoph P. U. Kukulies [EMAIL PROTECTED]



Re: Apache is writing 800\n to servlet response outputstream.

2000-11-15 Thread Jon Skeet

Sounds like apache is chunking the output stream, which seems a reasonable
thing to do. Do the headers mention anything about chunking?
What happens if you have a static image served by apache,
out of interest?

Jon



Re: some jsp examples fail with Error 500

2000-11-15 Thread Christoph Kukulies

On Wed, Nov 15, 2000 at 03:13:48PM +0100, Christoph Kukulies wrote:
 On Wed, Nov 15, 2000 at 12:56:33AM -0800, Kent Huo wrote:
  Do you include jasper.jar and tools.jar in your classpath?
 
 I repaired it by re-anting tomcat. JSP examples do work now again.
 Unfortunately I deleted my conf directory and could hit ^C right before
 build.sh clean deleted my webapps/servlets subdirectories but after
 resurrecting everything (that's still tomcat 3.1beta - I didn't dare
 to switch to 3.2b7 at this point in time)

...everything works fine now, I wanted to say :-) (to complete the unfinished
sentence).

 
 Thanks.
 
-- 
Chris Christoph P. U. Kukulies [EMAIL PROTECTED]



RE: Tomcat 3.1 crashes when closing ODBC connection

2000-11-15 Thread Nacho

Hola Alex:

 * Microsoft Access 97
 * Microsoft Access ODBC driver
 * JAVA 2 SDK, Standard Edition, Version 1.2.2 for the Server

Use JDK 1.3.0 for a better JDBC-ODBC Bridge, it works like a charm for
me much better than 1.2.2, despite the java services problems of 1.3.0
in Windows..

 * TOMCAT Version 3.1

The same use Tomcat 3.2 Beta 7 is much much better any previous Release
version i.e. 3.1 :-)

Saludos ,
Ignacio J. Ortega



embedding jsp into an html file.

2000-11-15 Thread Christoph Kukulies

How can I use jsp in a normal html file (extension .html) with tomcat?

test.html:

html
FORM
INPUT TYPE='text'
   NAME='hn'
   VALUE='%= request.GetRemoteHost() %'
   SIZE='15'
/FORM
/html

-- 
Chris Christoph P. U. Kukulies [EMAIL PROTECTED]




RE: Tomcat 3.1 crashes when closing ODBC connection

2000-11-15 Thread Paul Gallagher

cheers ignacio - i'll check out jdk1.3 asap

 [EMAIL PROTECTED] 11/15/00 02:35PM 
Hola Alex:

 * Microsoft Access 97
 * Microsoft Access ODBC driver
 * JAVA 2 SDK, Standard Edition, Version 1.2.2 for the Server

Use JDK 1.3.0 for a better JDBC-ODBC Bridge, it works like a charm for
me much better than 1.2.2, despite the java services problems of 1.3.0
in Windows..

 * TOMCAT Version 3.1

The same use Tomcat 3.2 Beta 7 is much much better any previous Release
version i.e. 3.1 :-)

Saludos ,
Ignacio J. Ortega




JServ vs. Tomcat

2000-11-15 Thread Tim Wright

Hi,

I work for an free web based mail service, Another.com. We are interested in
migrating our service to use either JServ or Tomcat. We currently has a
server farm with 10 web servers running Apache and a JRun on each machine.
We are interested in changing the architecture to use a small number of
Apache web servers (e.g. 2) with a set of load balanced Tomcat or JServ
boxes.

My understanding is that this arhitecture could be achieved with either
Tomcat or JServ. Tomcat is perferable from a developers perspective, but is
Tomcat considered subitble for a production environment?

I was particulatly worried by the problem of Apache hanging when Tomcat is
restarted. Since we release new build of the site regularly, we need a
mechanism to rollout new builds onto servers. Concider the following
example:

We have 2 appache servers (WEB1, WEB2) connecting to 6 Tomcat server (TC1 -
TC2).

Initial all the tomcat servers TC1 - TC3 are running build 1.0. TC4 - TC6
are out of use.

We want to release build 1.1 onto TC4 - TC6. We then need to configure the
web boxes to send all new sessions to TC4 - TC6, whilst maintaining old
session on TC1 - TC3. Can this be done without restarting the WEB1 and WEB2.

At some later date we need to restart TC1 - TC3 with build 1.2, whilst
maintain sessions on TC4 - TC6. If we restart TC1 - TC3, will this cause
WEB1 and WEB2 to lock?

I would appreciate any advice or comments.


Cheers
Tim Wright
Java Engineer
Another.com




Re: EJB

2000-11-15 Thread Simon Oldeboershuis, outermedia

Hi Peter,

I think you have to add the jndi.properties file (see JONAS_ROOT
directory) to classpath. I have added it to the classpath of the
environment in which tomcat is started. I tried to put into the 
WEB-INF/lib packed into a test.jar - no success
WEB-INF/classes - no success
/tomcat/lib - no success
export CLASSPATH=... - SUCCESS

Does anybody knows a better solution???

simon

Peter Knight schrieb:
 
 I have tried to invoke EJB's from TOMCAT and get:
 
 Internal Servlet Error:
 javax.servlet.ServletException: Need to specify class name in environment or
 system property:
 Root cause:
 javax.naming.NoInitialContextException: Need to specify class name in
 environment or system property: e.t.c.
 
 The EJB resides in an Oracle 8i 8.1.6 database.
 I have included the EJB API and the two EJB jar files in the class path and
 it doesn't seem to matter what I do, I cannot get it to work!!
 PLEASE PLEASE HELP ME!
 
 Regards Peter Knight
 
 _
 Important Note: This E-Mail is confidential, it must not be read,
 copied, disclosed or used by any person other than the above
 named addressees. Unauthorised use, disclosure or copying is
 strictly prohibited and may be unlawful. Eurostar (U.K.) Limited
 disclaims any liability for any action taken in reliance on the
 content of this E-Mail. The comments or statements expressed in
 this E-Mail are not necessarily those of Eurostar (U.K.) Limited
 or its subsidiaries or affiliates.
 
 Eurostar (U.K.) Ltd. Registered Office: Eurostar House, Waterloo
 Station, London, SE1 8SE, Registered in England No. 2462001
 VAT No. GB 657 719 590
 _

begin:vcard 
n:Oldeboershuis;Simon
tel;fax:+49.30.44350949
tel;work:+49.30.44350943
x-mozilla-html:FALSE
org:outermedia;Entwicklung
adr:;;Greifswalder Str. 207;Berlin;;10405;
version:2.1
email;internet:[EMAIL PROTECTED]
fn:Simon Oldeboershuis
end:vcard



Re: I have tried to invoke EJB's from TOMCAT: NoInitialContextException:

2000-11-15 Thread Thom Park

Peter,

It looks like your JNDI context info isn't initialized (stating the obvious - I
apologize).

I had a similar problem (with env-entry constructs). Tomcat 3.2 doesn't come
with any JNDI so I had to add a JNDI service
layer of my own. Prior to the servlet that makes the EJB call, the JNDI
environment needs to be initialized such that any JNDI lookup calls
know where to start looking from.

Given I'm not an EJB wiz by any stretch of the imagination, all I can say is
check the EJB documentation from ORACLE that specifies the
setup steps needed to ensure that the intial context will succeed - I suspect
that the EJB call is trying to find EJB home or something or other from the
JNDI
service.

To solve my problem, I wrote a (very) simple interceptor that set up the initial
context information for the JNDI that I'm using in the preService call of the
interceptor. Sorry if I can't be of much more help.

I hope that you solve your problem. Tomcat 4.0 looks to be much, much nicer in
the JNDI area and for support of the ejb-ref construct (which Tomcat 3.x doesn't
deal with).

-Thom


Peter Knight wrote:

 I have tried to invoke EJB's from TOMCAT and get:

 Internal Servlet Error:
 javax.servlet.ServletException: Need to specify class name in environment or
 system property:
 Root cause:
 javax.naming.NoInitialContextException: Need to specify class name in
 environment or system property: e.t.c.

 The EJB resides in an Oracle 8i 8.1.6 database.
 I have included the EJB API and the two EJB jar files in the class path and
 it doesn't seem to matter what I do, I cannot get it to work!!
 PLEASE PLEASE HELP ME!

 Regards Peter Knight

 _
 Important Note: This E-Mail is confidential, it must not be read,
 copied, disclosed or used by any person other than the above
 named addressees. Unauthorised use, disclosure or copying is
 strictly prohibited and may be unlawful. Eurostar (U.K.) Limited
 disclaims any liability for any action taken in reliance on the
 content of this E-Mail. The comments or statements expressed in
 this E-Mail are not necessarily those of Eurostar (U.K.) Limited
 or its subsidiaries or affiliates.

 Eurostar (U.K.) Ltd. Registered Office: Eurostar House, Waterloo
 Station, London, SE1 8SE, Registered in England No. 2462001
 VAT No. GB 657 719 590
 _




Re: long file names when compiling *.jsp files

2000-11-15 Thread Pierre Neihouser

Since this is a repost and nobody seems to give any hint, I'll give it a shot:

- The file name limits is (AFAIK) 255
- This is a limit on the file name and not the whole path
- Maybe you do not have proper access rights in d:\jdk1.3\jakarta-tomcat\work
as is indicating the error message
- Maybe your disk is full

Here it is, let me know how it's going...
Thanks

--
Pierre


Ari Volcoff wrote:

 We receive this message when trying to run a jsp file

 Internal Servlet Error:

 org.apache.jasper.JasperException: Unable to compile class for JSPerror:
 Can't write:
 D:\jdk1.3\jakarta-tomcat\work\localhost_8080%2FRio\_0005f_0005f\Online\Templ
 ates\Classes\Forums_0005fObject_0005fClass\Ari\_0002f_0002e_0002e_0002fOnlin
 e_0002fTemplates_0002fClasses_0002fForums_0005fObject_0005fClass_0002fAri_00
 02ftest_00031_0002ejsptest1_jsp_0.class
 1 error

 this is because there is a limit of 260 characters for a file name on the NT
 Platform !

 is there a way to overcome this problem ?




Number of Instances

2000-11-15 Thread Lauber Christof

How must I configure the jakarta-tomcat 3.1 that just one Instance per 
servlet is allowed? Which config file do I have to edit(server.xml, 
web.xml, ? ) ?




Re: EJB

2000-11-15 Thread John Ellis

Actually, Peter is not using JOnAS, he is using Oracle.  Somewhere in the Oracle
documentation, it should say what type of environment you need to pass into the
new InitialContext() call or have in your jndi.properties file.

Typically, the parameters you will need are:

java.naming.factory.initial=some oracle class that extends
javax.naming.spi.InitialContextFactory
java.naming.provider.url=some url specific to Oracle
java.naming.security.principal=user_id
java.naming.security.credentials=password

These can be in a properties file called jndi.properties in your classpath, or you
can programatically set them into a Hashtable and pass the hashtable into your
InitialContext constructor.

Simon,

What I did to get the parameters was to put them in my web.xml file like:

context-param
  param-namejava.naming.factory.initial/param-name

param-valuecom.inetbasics.server.naming.provider.rmi.RMIContextFactory/param-value

  descriptionblah/description
/context-param

context-param
  param-namejava.naming.provider.url/param-name
  param-valuermi://localhost:900/Storesmith/param-value
  descriptionblah/description
/context-param

I then read them and pass them to InitialContext:

Hashtable env = new Hashtable();

env.put(Context.INITIAL_CONTEXT_FACTORY,
   servletContext.getInitParameter(Context.INITIAL_CONTEXT_FACTORY));
env.put(Context.PROVIDER_URL,
   servletContext.getInitParameter(Context.PROVIDER_URL));

if (userName != null)
{
   env.put(Context.SECURITY_PRINCIPAL, userName);
   if (password == null)
  password = "";
   env.put(Context.SECURITY_CREDENTIALS, password);
}

   Context ctx = new InitialContext(env);

That works well for me, because I have to set the user id and password, but you
might not like the complicated way of setting the InitialContext.  I am
considering writing a security interceptor to do this stuff for me, however.

John

"Simon Oldeboershuis, outermedia" wrote:

 Hi Peter,

 I think you have to add the jndi.properties file (see JONAS_ROOT
 directory) to classpath. I have added it to the classpath of the
 environment in which tomcat is started. I tried to put into the
 WEB-INF/lib packed into a test.jar - no success
 WEB-INF/classes - no success
 /tomcat/lib - no success
 export CLASSPATH=... - SUCCESS

 Does anybody knows a better solution???

 simon

 Peter Knight schrieb:
 
  I have tried to invoke EJB's from TOMCAT and get:
 
  Internal Servlet Error:
  javax.servlet.ServletException: Need to specify class name in environment or
  system property:
  Root cause:
  javax.naming.NoInitialContextException: Need to specify class name in
  environment or system property: e.t.c.
 
  The EJB resides in an Oracle 8i 8.1.6 database.
  I have included the EJB API and the two EJB jar files in the class path and
  it doesn't seem to matter what I do, I cannot get it to work!!
  PLEASE PLEASE HELP ME!
 
  Regards Peter Knight
 
  _
  Important Note: This E-Mail is confidential, it must not be read,
  copied, disclosed or used by any person other than the above
  named addressees. Unauthorised use, disclosure or copying is
  strictly prohibited and may be unlawful. Eurostar (U.K.) Limited
  disclaims any liability for any action taken in reliance on the
  content of this E-Mail. The comments or statements expressed in
  this E-Mail are not necessarily those of Eurostar (U.K.) Limited
  or its subsidiaries or affiliates.
 
  Eurostar (U.K.) Ltd. Registered Office: Eurostar House, Waterloo
  Station, London, SE1 8SE, Registered in England No. 2462001
  VAT No. GB 657 719 590
  _

   
  Name: sol.vcf
sol.vcf   Type: VCard (text/x-vcard)
  Encoding: 7bit
   Description: Visitenkarte für Simon Oldeboershuis, outermedia




mod_jk.so

2000-11-15 Thread Danijel Pajur

Where is jk's dir in tomcat 3.1 ?
I must be going blind, I've downloaded the 3.1 binary and source, can't find
it anywhere.
I mean the instructions for tomcat+apache are pretty simple if I could just
find jk somewhere.

Are there instructions somewhere for configuring apache + tomcat to run with
mod_jserv?
That one is available from the site as a linux binary so i dont have to
worry about locating it.

thanks
Dan




Reaped pid

2000-11-15 Thread Christoph Kukulies


from time to time I'm getting errormessages like this from tomcat:

 Reaped pid = 9003, status = 0

How come?

-- 
Chris Christoph P. U. Kukulies [EMAIL PROTECTED]



aaargh..

2000-11-15 Thread Alexander ten Bruggencate

for the past 3 days i've been trying to get a jsp to work with an ejb of
mine.
the only problem is that jsp:setProperty / and jsp:getProperty
/ won't work.

tomcat reports: org.apache.jasper.JasperException: Attempted a bean
operation on a null object.
at
org.apache.jasper.runtime.JspRuntimeLibrary.handleGetProperty(JspRuntimeLibrary.java:427)

part of the jsp file:
%
nl.step.stepdb.person.interfaces.Person p;
p = pbrowse.createUser();
%

now I KNOW that the creation of the person is succesfull because it
turns up in the datatbase.
so what's wrong here?

i use jboss-2.0-final with tomcat 3.2b7.
i could really use some help here...

-Alexander.




Re: aaargh..

2000-11-15 Thread William Brogden



Alexander ten Bruggencate wrote:
 
 for the past 3 days i've been trying to get a jsp to work with an ejb of
 mine.
 the only problem is that jsp:setProperty / and jsp:getProperty
 / won't work.
 
 tomcat reports: org.apache.jasper.JasperException: Attempted a bean
 operation on a null object.
 at
 
org.apache.jasper.runtime.JspRuntimeLibrary.handleGetProperty(JspRuntimeLibrary.java:427)
 
 part of the jsp file:
 %
 nl.step.stepdb.person.interfaces.Person p;
 p = pbrowse.createUser();
 %
 
 now I KNOW that the creation of the person is succesfull because it
 turns up in the datatbase.
 so what's wrong here?
 
 i use jboss-2.0-final with tomcat 3.2b7.
 i could really use some help here...
 
 -Alexander.

In your useBean tag, did you give the complete package when naming the
class?
If you just give the class, the bean will not be created.

-- 
WBB - [EMAIL PROTECTED]
Author of Java Developer's Guide to Servlets and JSP 
ISBN 0-7821-2809-2



AW: Accessing Beans; was: aaargh..

2000-11-15 Thread Ralph Einfeldt

You are mixing to different things.

jsp:setProperty/ works on beans.
In JSP beans have to be declared and created
with the jsp:useBean/ tag.

So your p is not a bean to JSP. To change
this you have to use the jsp:useBean/ tag.
Otherwise the only way to access it, is to 
use it in expressions %= p.someMethod() % or 
scriptlets % p.anotherMethod(); %

 -Ursprüngliche Nachricht-
 Von: Alexander ten Bruggencate [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 15. November 2000 16:58
 An: tomcat-user
 Betreff: aaargh..
snip/
 the only problem is that jsp:setProperty / and jsp:getProperty
 / won't work.
snip/
 part of the jsp file:
 %
 nl.step.stepdb.person.interfaces.Person p;
 p = pbrowse.createUser();
 %
snip/



Re: /test interferes - how to get rid of it?

2000-11-15 Thread Mike La Budde

It seems you still have the test webapp deployed. Try removing 
/usr/local/build/tomcat/webapps/test AND 
/usr/local/build/tomcat/webapps/test.war (otherwise it will just keep 
coming back)

Mike

At 11/15/2000 05:29 PM +0100, you wrote:

In tomcat 3.1 beta (I reinstalled today) I once had managed to get rid of that
/test context entry but now it sticks like the pest:

Context log: path="/admin" Automatic context load 
docBase="/usr/local/build/tomcat/webapps/admin"
Context log: path="/admin" Adding context 
path="/admin"  docBase="/usr/local/build/tomcat/webapps/admin"
Context log: path="/test" Automatic context load 
docBase="/usr/local/build/tomcat/webapps/test"

I thought I removed it from server.xml, and every other file in the conf
directory.

It interferes with a /test directory I have in my server tree.


--
Chris Christoph P. U. Kukulies [EMAIL PROTECTED]

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
- - - - - - - - - - - - - - - - - */
  Michael H. La Buddeemail:  [EMAIL PROTECTED]
  Prosoft, Inc.  phone:  414-860-6509
  [EMAIL PROTECTED]  fax:414-860-7014
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
- - - - - - - - - - - - - - - - - */




Functional testing anyone?

2000-11-15 Thread Mike La Budde

How are people performing their functional testing? Are there any tools out 
there to help script/automate the process?

TIA,

Mike

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
- - - - - - - - - - - - - - - - - */
  Michael H. La Buddeemail:  [EMAIL PROTECTED]
  Prosoft, Inc.  phone:  414-860-6509
  [EMAIL PROTECTED]  fax:414-860-7014
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
- - - - - - - - - - - - - - - - - */




Performance testing anyone?

2000-11-15 Thread Mike La Budde

How are people doing performance testing? What tools are out there to aid 
in this process?

TIA,

Mike

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
- - - - - - - - - - - - - - - - - */
  Michael H. La Buddeemail:  [EMAIL PROTECTED]
  Prosoft, Inc.  phone:  414-860-6509
  [EMAIL PROTECTED]  fax:414-860-7014
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
- - - - - - - - - - - - - - - - - */




Re: Performance testing anyone?

2000-11-15 Thread raimee



You can check out JMeter from Apache. Works rather well.



How are people doing performance testing? What tools are out there to aid
in this process?

TIA,

Mike

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - */
  Michael H. La Buddeemail:  [EMAIL PROTECTED]
  Prosoft, Inc.  phone:  414-860-6509
  [EMAIL PROTECTED]  fax:414-860-7014
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - */







Re: Tomcat 3.2 beta and PHP

2000-11-15 Thread Sam Ruby/Raleigh/IBM

Olivier Baillard wrote:

 I would kike to know if somebody already have some experience
 with tomcat and PHP working as serlet (with Tomcat).  If
 somebody has some interest, I would be happy to exchange my
 own experience. I get PHP to work with Tomcat 3.2 beta 7 on
 Linux with Java extension. You can exchange data between PHP
 and Tomcat, use Java classes/beans. I know, some people will
 say me : use JSP, you stupid idiot!! But the purpose of
 it is to use the flexibility of PHP (whith html) and the
 power of Java together. Later we will connect our
 Web-Application with some Software of us.

It would be fair to say that I have some experience and interest.  I've
contributed to both projects, and in particular am the author of the
integration between the two.

- Sam Ruby




RE: Tomcat 3.2 beta and PHP

2000-11-15 Thread Lacerda, Wellington (AFIS)

C'mon... :D

Let me know how you did it, can you ? Which package do you use ?

Thanks,

Wellington

-Original Message-
From:   Christian Wenz
[mailto:[EMAIL PROTECTED]]
Sent:   15 November 2000 18:39
To: [EMAIL PROTECTED]
Subject:Re: Tomcat 3.2 beta and PHP

Hallo,

I've tried this as well, and was really happy with the
results. However please
take into account that the windows versions of PHP are quite
different in terms
of stability. Some versions just fail to cooperate with
Tomcat, crashing
reproducably, however most versions work just fine ... :-)

Regards
Christian

Olivier Baillard wrote:

 I would kike to know if somebody already have some
experience with tomcat
 and PHP working as serlet (with Tomcat). If somebody has
some interest, I
 would be happy to exchange my own experience. I get PHP to
work with Tomcat
 3.2 beta 7 on Linux with Java extension. You can exchange
data between PHP
 and Tomcat, use Java classes/beans. I know, some people
will say me : use
 JSP, you stupid idiot!! But the purpose of it is to
use the flexibility
 of PHP (whith html) and the power of Java together. Later
we will connect
 our Web-Application with some Software of us.




Runtime.exec Nullpointer Exception

2000-11-15 Thread Christoph Kukulies


Weird, I reinstalled Tomcat 3.1beta (changed to jdk1.2 also)
and suddenly one of my servlets crashes:

Runtime.exec crashes:
if(type.compareTo("Diff Run")==0){
  out.println("Diff Run");
  try {
   cmdarray[0]="/usr/local/www/cgi-bin/Diffrun";
   cmdarray[1]=Proband;
   cmdarray[2]=Referenz;
   cmdarray[3]=Mandant;
   cmdarray[4]=Testrechner;
   cmdarray[5]=null;
   out.println("try executing..." + cmdarray[0] + "\n");
   try {
int b;
Process p=runner.exec(cmdarray);
InputStream i=p.getInputStream();
while((b=i.read()) = 0) {
out.write(b);out.flush();
}
  } catch(Exception e) {
   out.println("some exception occured ["+ e + "]");
  ^ This happens ^^


Any clues?


-- 
Chris Christoph P. U. Kukulies [EMAIL PROTECTED]



Re: Tomcat 3.2 beta and PHP

2000-11-15 Thread Sam Ruby/Raleigh/IBM

Christian Wenz wrote:

 I've tried this as well, and was really happy with
 the results. However please take into account that
 the windows versions of PHP are quite different in
 terms of stability. Some versions just fail to
 cooperate with Tomcat, crashing reproducably,
 however most versions work just fine ... :-)

Most of the development of this function was originaly on WinNT, and now on
Win2K...

- Sam Ruby




mod_jk multiple JVMs

2000-11-15 Thread Dave Fox

Running Tomcat 3.2b7 on NT and SunOS 5.7 both using Apache 1.3.12, and JDK
1.2.2.

My question: How do I configure 2 instances of Tomcat (each running their
own JVM) on 2 different ports using mod_jk.  I have been using a hardcoded
tomcat.conf to do this (ApJServMount /contentserver/servlet
ajpv12://localhost:8008/contentserver) but I can't figure out how to do this
with mod_jk.  I'm guessing that the answer has to do with a hardcoded
mod_jk.conf and workers.properties but I'm stuck.

Thanks in advance,
Dave




Re: Tomcat 3.2 beta and PHP

2000-11-15 Thread Olivier Baillard

Hello Christian,


I'am happy to see someone else in the world has tried to use PHP and Tomcat 
together.

Sooo!! Which version of PHP work (or doesn't work) on Windows?

For the moment, I only really try on SUSE 7.0. with Apache. Which results 
did you get?


Personally, I get the following:
- exchange of simple data like boolean, string, int, double and array of 
string (String [][] for example).
- I wrote a class who is running in Tomcat to make some request from PHP 
and give the result to PHP. Problem: it crashes sometimes. I compiled PHP 
whit jdk1.3 from SUN and run Tomcat whith the samke jdk, adn know it seems 
to be stable. But!
- with phplib, I can use common session variable with PHP and Tomcat. The 
adavantage: you can reach the session variable from PHP and from others 
Java classes/applications.


The problems I found:
- Generally, php as servlet doesn't seems to be really stable (Tomcat 
crashes, not really often, but I am not hapy with it).
- Sometimes mit Tomcat hang up (it doesn't answer to www request).
- if I make an include in a  PHP file and use the same include later, I 
become some strange result : page not completly downloaded.


Bye! / Tschuess!

O. Baillard




At 18:38 15.11.00 +0100, you wrote:
[EMAIL PROTECTED]
Hallo,
I've tried this as well, and was really happy with the results. However please
take into account that the windows versions of PHP are quite different in 
terms
of stability. Some versions just fail to cooperate with Tomcat, crashing
reproducably, however most versions work just fine ... :-)
Regards
Christian
Olivier Baillard wrote:
  I would kike to know if somebody already have some experience with tomcat
  and PHP working as serlet (with Tomcat). If somebody has some interest, I
  would be happy to exchange my own experience. I get PHP to work with Tomcat
  3.2 beta 7 on Linux with Java extension. You can exchange data between PHP
  and Tomcat, use Java classes/beans. I know, some people will say me : use
  JSP, you stupid idiot!! But the purpose of it is to use the flexibility
  of PHP (whith html) and the power of Java together. Later we will connect
  our Web-Application with some Software of us.




Re: Tomcat 3.1 crashes when closing ODBC connection

2000-11-15 Thread Kurt Bernhard Pruenner

Paul Gallagher wrote:
 cheers ignacio - i'll check out jdk1.3 asap

Have a look at the following page as well, as it is about a service wrapper
that won't get the JVM killed when the user logs out... :)

http://www.alexandriasc.com/software/JavaService/

I've been using it for over a month now, and it works perfectyl.

-- 
Kurt Pruenner - Haendelstrasse 17, 4020 Linz, Austria | Briareos at Olymp BBS:
http://www.mp3.com/Leak http://www.ssw.uni-linz.ac.at | ssh [EMAIL PROTECTED]
...It might be written "Mindfuck", but it's spelt "L-A-I-N"...
np: dreamSTATE - White Winter Moon (ambient.01@hyperreal)



Re: Tomcat 3.2 beta and PHP

2000-11-15 Thread Christian Wenz

Hi Olivier,

the version not working was 4.0.1 - if I remember correctly. I tried it of course
in a very unstable environment (Win98, Microsoft's own PWS, old JDK 1.1.8) and had
no luck (however all versions from 4.0beta to 4.0.0 worked really fine, and
chances that I made some mistakes when replacing the appropriate files are minimal
;) ); under WinNT/Apache the system ran stable for about one minute ... The
strange thing was that Sam Ruby couldn't reproduce the crashes, other users
couldn't reproduce the crashed, however I always "succeeded" on all systems I
tried. The later versions however work like a charm (ok, most of the time :) ). I
think it's a great piece of code from Sam :-)

Regards
Christian

Olivier Baillard wrote:


 I'am happy to see someone else in the world has tried to use PHP and Tomcat
 together.

 Sooo!! Which version of PHP work (or doesn't work) on Windows?





Installing tomcat filter in IIS

2000-11-15 Thread Erik Vande Velde

I've installed the tomcat filter in IIS 5.0 under WIN2000 as explained in
the documentation ( with all required registry changes ) but it just don't
seem to work. In the IIS console the filter is always marked with a red
down-arrow instead of a green up-one. What could be wrong ? Which port do I
have to specify in the server.xml for tomcat ?

TIA for your answer,

Erik
Hoboken
Belgium




RE: Installing tomcat filter in IIS

2000-11-15 Thread Mark Franz

I have never had to change the port for Tomcat in the server.xml, did you
follow the instructions at apache.org exactly?  Make sure the paths and the
virtual dirs are exact, and the registry entries are spelled right!

Mark G. Franz


-Original Message-
From: Erik Vande Velde [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 15, 2000 12:26 PM
To: [EMAIL PROTECTED]
Subject: Installing tomcat filter in IIS


I've installed the tomcat filter in IIS 5.0 under WIN2000 as explained in
the documentation ( with all required registry changes ) but it just don't
seem to work. In the IIS console the filter is always marked with a red
down-arrow instead of a green up-one. What could be wrong ? Which port do I
have to specify in the server.xml for tomcat ?

TIA for your answer,

Erik
Hoboken
Belgium



Why tomcat NT service get killed when the user log off

2000-11-15 Thread Zhiping Wei
Title: Why tomcat NT service get killed when the user log off





Please Help!!!


This is for tomcat 3.2 beta 7 on Windows NT/2000. Tomcat is registed as an NT service using 'jk_nt_service.exe' (under Systemlocal account). It's starts fine but if I log off the windows, tomcat get killed which is not suppose to be. Could anybody tell me why this happen and how to fix it. 

-- Zhiping (ext: 307)





no need to read

2000-11-15 Thread Rebecca
Title: Why tomcat NT service get killed when the user log off



just joined list. want to test 
subscription.


Re: WWW-Auth

2000-11-15 Thread Danno Ferrin

What you would want to do then is to use form based authentication and 
enable the JDBC realm.

--Danno
p.s. please continue discussion in the tomcat-user list.  The dev list 
is for patches, comments about the code, etc., and not use of tomcat 
itself.  [EMAIL PROTECTED] is meant for the use of tomcat 
itself and for configuration questions such as this.

shahed wrote:

 I am using Tomcat 3.1 with Apache/Stronghold.
 I assumed that all the web.xml stuff would not work.
 Am I right ? or will it still work ?
 
 Also, I want to auth against a database. In the book Professional JSP, 
 there is an example of using a security interceptor. But again,
 will that work if I am using Apache + Tomcat ?
 
 You need to set up the web-app to require authentication.  In the
 web.xml in the WEB-APP directory you need to add a security-constraint
 element and a login-config element.  There are examples in the examples
 web-app.
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 




Re: how to run a class on startup of tomcat ??

2000-11-15 Thread Elliot Schwartz

Sudheshna Methuku [EMAIL PROTECTED] writes:

 We used a servlet with init() and destroy() methods to start the services we
 wanted to run at the tomcat startup and stop when tomcat is stopped. But we
 found that the servlet's init() is getting called 5 times and destroy is not
 at all being called. 

I'm new to Tomcat but I can make some wild guesses here, since I ran into
similar issues with JServ.

The reason init() is getting called 5 times is probably because 5 instances of
the servlet have been created, so that multiple requests for that servlet
can be handled simultaneously. What we did to deal with this was just have the
servlet call a method in a singleton class, which only performed the
initialization the first time it was called. I'm not sure if that's the
best way to do this. You may also be able to get only a single instance
of the servlet created by modifying some Tomcat parameters or perhaps even
by not using the single-thread model.

What we currently do is a little different: we write our own main() which 
has initialization code, and then start Tomcat, as opposed to trying to
put initialization code that's not really related to any particular servlet
into a servlet.

As for the destroy problem, I'm not sure. Perhaps Tomcat doesn't yet
destroy the servlets when they are no longer needed.

elliot


 
 The xml tag we used in web.xml is 
 
 servlet
 servlet-nameinitializerServlet/servlet-name
 servlet-classInitializerServlet/servlet-class
 load-on-startup1/load-on-startup
 /servlet
 
 Any clues what could be the problem.
 
 Thanks,
 Sudheshna.M.
 
 
 -Original Message-
 From:
 [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]
 ache.org]On Behalf Of Christian Mack
 Sent: Monday, November 06, 2000 5:22 PM
 To: '[EMAIL PROTECTED]'
 Subject: RE: how to run a class on startup of tomcat ??
 
 
 Hi Sudheshna
 
 That's easy.
 Just use a servlet which gets startet on tomcats startup.
 In it's init() just start your Runnable.
 The doXXX() methods are empty, as this servlet will never be called.
 
 Tschau
 Christian
 
  -Original Message-
  From: Sudheshna Methuku [mailto:[EMAIL PROTECTED]]
  Sent: Monday, November 06, 2000 7:25 AM
  To: [EMAIL PROTECTED]
  Cc: Subhashini Chirunomula; Marthi Nalini
  Subject: how to run a class on startup of tomcat ??
  
  
  Hi All,
  
  We have a startup class which needs to be run when tomcat is 
  started. Could
  anyone pl. tell us how it is possible. The startup class is 
  not a servlet,
  it implements runnable and it in turn starts some more threads. 
  
  Thanks,
  Sudheshna.M.
  
 



Re: mod_jk.so

2000-11-15 Thread Jim Richards


Danijel Pajur wrote:
 
 Where is jk's dir in tomcat 3.1 ?
 I must be going blind, I've downloaded the 3.1 binary and source, can't find it 
anywhere.
 I mean the instructions for tomcat+apache are pretty simple if I could just find jk 
somewhere.

It's not in tomcat 3.1, it comes starting from tomcat 3.2 ...



Re: how to run a class on startup of tomcat ??

2000-11-15 Thread Zebadiah Kimmel

I suggest using a static block, as shown below. No matter how many servet 
instances are created, the static block will only execute once.

=
public class MyServlet
{

protected static DatabasePool dbPool=null;

static
{
 try
 {
 dbPool=new DatabasePool();
 }
 catch (Throwable t)
 {
 (log error)
 }

}


}

==

--Zeba

At 06:34 PM 11/15/00 -0500, Elliot Schwartz wrote:
Sudheshna Methuku [EMAIL PROTECTED] writes:

  We used a servlet with init() and destroy() methods to start the 
 services we
  wanted to run at the tomcat startup and stop when tomcat is stopped. But we
  found that the servlet's init() is getting called 5 times and destroy 
 is not
  at all being called.

I'm new to Tomcat but I can make some wild guesses here, since I ran into
similar issues with JServ.

The reason init() is getting called 5 times is probably because 5 instances of
the servlet have been created, so that multiple requests for that servlet
can be handled simultaneously. What we did to deal with this was just have the
servlet call a method in a singleton class, which only performed the
initialization the first time it was called. I'm not sure if that's the
best way to do this. You may also be able to get only a single instance
of the servlet created by modifying some Tomcat parameters or perhaps even
by not using the single-thread model.

--

Zebadiah Kimmel
Chief Technology Officer
Zebware, Inc.
[EMAIL PROTECTED]

www.instantcanvas.com
www.zebware.com

212-780-1994 phone
646-638-3901 phone
646-638-3905 fax

30 West 21st St.
8th Floor
NY, NY 10010



RE: Why tomcat NT service get killed when the user log off

2000-11-15 Thread Brett Bergquist
Title: Why tomcat NT service get killed when the user log off



Zhiping, even though jk_nt_service is being used to 
launch Tomcat, there is a bug in the Java 1.3 runtime under Windows that causes 
any java.exe process to be terminated when the user logs off. The bug is 
that a console control handler is setup inside of the java runtime that detects 
the CTRL_LOGOFF_EVENT that is sent by Windows to each process when the user logs 
off and the handler inside of Java 1.3 is terminating the process when this 
occurs. This is the correct operation for a normal application running but 
not the correct one for a service.

There 
is a couple of packages around, one being located at http://www.kcmultimedia.com/javaserv 
another at http://www.eworksmart.com/jnt that 
handle the CTRL_LOGOFF_EVENT. I tried a couple of these and while I found 
that they indeed to stop the application from being terminated by the 
CTRL_LOGOFF_EVENT, I found that they interferred with the normal shutdown of 
Tomcat. That is, using these packages, I was not able to shutdown Tomcat 
cleanly, which caused the servlets to not have their "destroy" method 
invoked. 

The 
reason that this occurs is because the way that these packages work is that they 
invoke the Java VM using the JNI interface. When Tomcat is to be 
shutdown, the same JNI interface is used to invoke a shutdown method. The 
problem occurs because the way that Tomcat (3.x) is shutdown is by using the 
APJ interface to send the existing Tomcat instance a APJ shutdown message 
(through a TCP connection in fact). These packages send the APJ message 
using the JNI interface, but when call returns, they assume that Tomcat is ready 
to be shutdown and they then tear down the Java VM running the Tomcat 
process. In reality, the Tomcat process has not yet received the APJ 
message through its socket interface and as such has not shutdown cleanly and 
does not give the servlets a chance to have their "destroy" method 
called.

Because my application needs to have the servlet's 
"destroy" method called when Tomcat shuts down, I solved this 
problem by using the source to "java.exe" launcher as a starting point and then 
modified it to install a console control handler that ignores the 
CTRL_LOGOFF_EVENT. I called this new launcher "javaex.exe". I then 
used jk_nt_service and changed the configuration file references of "java.exe" 
to "javaex.exe". 

I hope 
this helps.


  -Original Message-From: Zhiping Wei 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, November 15, 2000 5:38 
  PMTo: '[EMAIL PROTECTED]'Subject: Why 
  tomcat NT service get killed when the user log off
  Please Help!!! 
  This is for tomcat 3.2 beta 7 on Windows 
  NT/2000. Tomcat is registed as an NT service using 'jk_nt_service.exe' (under 
  Systemlocal account). It's starts fine but if I log off the windows, tomcat 
  get killed which is not suppose to be. Could anybody tell me why this happen 
  and how to fix it. 
  -- Zhiping (ext: 
  307) 


Jsps on subdirectorios of web/

2000-11-15 Thread Victor Rodriguez

Hello all,

I'm using tomcat on a project and I have run into the following problem:

A coworker built a webapp, all his classes are in web-inf/classes, and
all his html/jsps are in the webapp root. I'm now writing an additional
module for the webapp, but I must put my classes and jsps on different
directories than his. So for the classes I just put my source files on a
package, and I made a subdirectory on web to put my jsps. The problem I
have is that I cannot use his classes from mine or from my jsps.

I guess I must import or qualify his classes with a package name, but
for the life of me I can't figure it out.

I've looked at the jakarta-tomcat faq but have been unable to find a
solution for this. Any help would be greatly appreciated.

-- Victor R.



How to set the ROOT w Apache

2000-11-15 Thread Maik Wiege

Hello,
I do not get it with this servlet.xml...
This is what I want:
I put all my static-files and jsp's into the TOMCAT_HOME\webapps\ROOT -
directory and some subdirectorys; and my classes and libs into the web-inf.
This project should be the default, so that http://localhost/ points to
TOMCAT_HOME\webapps\ROOT \index.html and http://localhost/servlets/Hello
should invoke the Servlet Hello.class in
TOMCAT_HOME\webapps\ROOT\web-inf\classes\
Of course I want my Apache-Server to serve the static HTML and Image files!

Can someone show me now what exactly I have to put into the server.xml,
web.xml and myTomcat-apache.conf (my file included into the httpd.conf)

Thank you for your help
  Maik






JServ Port

2000-11-15 Thread JTBldrCO

I am porting a web app from JServ to Tomcat on Linux.  I have having trouble 
configuring servlets that reside in my own packages.  My test cases can 
access .class files in:

/usr/local/jakarta-tomcat/webapps/myWebApp/WEB-INF/classes

I can access for example "SnoopServlet.class" in that subdir with an address 
like:

http://www.mySiteName.com/myWebApp/servlet/SnoopServlet

Now suppose I have a class, SomePackageClass, declared to be in package 
testapackage within its .java code file.  Its compiled form is in the 
following location and file:

/usr/local/jakarta-tomcat/webapps/myWebApp/WEB-INF/classes/testapackage/SomePa

ckageClass.class

Now, I would like to (but cannot seem to) access it with:

http://www.mySiteName.com/myWebApp/servlet/testapackage/SomePackageClass

What configuration steps must I take?  Or, how can I access it from that 
location?

Thanks, 
John Thompson
Boulder, Colorado, USA
[EMAIL PROTECTED]

 



Re: /test interferes - how to get rid of it?

2000-11-15 Thread Julio Serje (@canada.com)

When you unpack the distribution of Tomcat it comes with several WAR files
(inlcuding test.war admin.war and examples.war).  You have to:

- get rid of the WAR files
- remove the corresponding directories
- and of course, remove the contexts from xerver.xml

(I had the same problem, but with an /admin directory)

Julio


- Original Message -
From: Christoph Kukulies [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, November 15, 2000 11:29 AM
Subject: /test interferes - how to get rid of it?



 In tomcat 3.1 beta (I reinstalled today) I once had managed to get rid of
that
 /test context entry but now it sticks like the pest:

 Context log: path="/admin" Automatic context load
docBase="/usr/local/build/tomcat/webapps/admin"
 Context log: path="/admin" Adding context path="/admin"
docBase="/usr/local/build/tomcat/webapps/admin"
 Context log: path="/test" Automatic context load
docBase="/usr/local/build/tomcat/webapps/test"

 I thought I removed it from server.xml, and every other file in the conf
 directory.

 It interferes with a /test directory I have in my server tree.


 --
 Chris Christoph P. U. Kukulies [EMAIL PROTECTED]





Re: session.getSessionContext();

2000-11-15 Thread Craig R. McClanahan

David Molloy wrote:

 Hi,

 I'm trying to write a simple Snoop servlet for my system
 and have run into a small problem while porting from JServ to Tomcat.
 I have sessions working for authentication etc. - however when I use

 HttpSessionContext context = session.getSessionContext();
 System.err.println("Context = " + context);
 System.err.println("Enumeration = " + context.getIds());
 System.err.println("NextElement = " + context.getIds().nextElement());

 The Enumeration doesn't give an error but it doesn't fill up, despite
 the fact that there is definately a session open (you need to be
 logged in to use the snoop servlet).  For some reason the context
 doesn't seem to have any Ids, and hence the next line gives a
 java.util.NoSuchElementException: VectorEnumerator

 I've been looking for docs on any changes in session but didn't
 find any.  Any ideas would be greatly appreciated...thanks.

 Dave Molloy

See the Servlet 2.2 specification at
http://java.sun.com/products/servlet/download.html, and the
corresponding servlet API Javadocs.  You will find that the
getSessionContext() method has been deprecated, and returns an "empty"
session context.  Likewise, the ServletContext.getServlet() method has
been deprecated, and always returns null.  These tend to be the two
largest issues when porting applications based on the servlet 2.0 API (as
Apache JServ is).

Craig McClanahan





Re: downloading Word doc

2000-11-15 Thread Craig R. McClanahan

Laurens Pit wrote:

 Can someone get this to the developers? Thanks.


The most likely scenario is that JRun has a predefined MIME mapping that tells
it to download Word documents as "application/ms-word", and Tomcat doesn't.  To
change this, add an appropriate mime-mapping entry in
$TOMCAT_HOME/conf/web.xml (for Tomcat 3.1).  For 3.2, there is unfortunately no
easy way to adjust the default MIME mappings.

Craig McClanahan





Re: Please Look - 3.2 beta 7 problem - RequestDispatcher include()

2000-11-15 Thread Craig R. McClanahan

Wyn Easton wrote:

 Are you not suppose to mix URL access with a RequestDispatcher?
 Thanks.

 Also, in 3.2 beta 6 I could do an include() then a forward().
 Now in 3.2 beta 7 I get an illegalState error on the forward()
 because of an open outputstream.  I'm not opening an output stream.
 The include() must be doing it.


This assumption is pretty close to being correct.

There was an absolutely horrible bug in 3.2 that caused all sorts of
problems with included servlets and JSP pages.  The "quick and dirty"
workaround was to have Tomcat 3.2b7 commit the response before processing
an include -- which is what causes the forward to fail now (since you
cannot do a forward after the response is committed).

Fixing this the right way this would require some fundamental changes to
3.2's architecture, which are unlikely given how late 3.2 already is.  As a
workaround, I would suggest that you change your application logic to
decide if you're going to do a forward *before* you actually do the
include.  (The include is wasted anyway, since any output it produces would
be thrown away.)

Craig McClanahan





Re: Please Look - 3.2 beta 7 problem - RequestDispatcher inclu de()

2000-11-15 Thread Craig R. McClanahan

Wyn Easton wrote:


 I guess it is OK by the spec. to do multiple include() method calls?


Yes.


 Thanks.


Craig McClanahan





Re: EJB

2000-11-15 Thread Craig R. McClanahan

Peter Knight wrote:

 I have tried to invoke EJB's from TOMCAT and get:

 Internal Servlet Error:
 javax.servlet.ServletException: Need to specify class name in environment or
 system property:
 Root cause:
 javax.naming.NoInitialContextException: Need to specify class name in
 environment or system property: e.t.c.

 The EJB resides in an Oracle 8i 8.1.6 database.
 I have included the EJB API and the two EJB jar files in the class path and
 it doesn't seem to matter what I do, I cannot get it to work!!
 PLEASE PLEASE HELP ME!


Tomcat by itself does not support the JNDI context lookup stuff as described for
J2EE applications.  You will need to run on a server that embeds Tomcat and
provides the extra functionality required, such as the J2EE RI, or JBoss.


 Regards Peter Knight



Craig McClanahan





Re: Number of Instances

2000-11-15 Thread Craig R. McClanahan

Lauber Christof wrote:

 How must I configure the jakarta-tomcat 3.1 that just one Instance per
 servlet is allowed? Which config file do I have to edit(server.xml,
 web.xml, ? ) ?

The only thing you have to "configure" is your servlet -- be sure you do
*not* implement the SingleThreadModel interface, and Tomcat (or any other
servlet container) is required to create only one instance per servlet
definition (i.e. per servlet entry in web.xml).

Craig McClanahan





very very urgent!!!

2000-11-15 Thread Rasika



I have installed Apache3.1 and TOMCAT 
3.1
Inside Apache\donf\httpd.conf I have included 
reference to tomcat-apache.conf file. I have also downloaded 
apachemodulejserv.dll But I'm not able to run my servlets stored inside 
tomcat\webapps\root\web-inf\classes directory. I'm able to run servlets created 
inside tomcat\webapps\examples\web-inf\classes directory. Please tell me what 
configuration I need to do in order to run servlets from tomcat root??? 

Thanks. 


Re: very very urgent!!!

2000-11-15 Thread Rama Venkata Kunapuli


Rasika:

Please see Tomcat development documentation in jakarta-tomcat\doc\appdev. It 
has excellent approach to build your servlet/jsp applications.

In short you should
make a directory for your application. Say c:\test\cusinf where cusinf is 
the application.
cd test\cusinf
mkdir src
mkdir etc
mkdir lib
mkdir web
copy/build web.xml into etc ( See sample directory listed in documentation)
copy/build build.xml and build.bat files for compilations in c:\test\cusinf 
area
copy your servlet java files into src
run build.bat file in the c:\test\cusinf

It should build the applications move your directory tree into webapps.

Cheers,
Rk

From: "Rasika" [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: very very urgent!!!
Date: Thu, 16 Nov 2000 11:43:28 +0800

I have installed Apache3.1 and TOMCAT 3.1
  Inside Apache\donf\httpd.conf I have included reference to 
tomcat-apache.conf file. I have also downloaded apachemodulejserv.dll But 
I'm not able to run my servlets stored inside 
tomcat\webapps\root\web-inf\classes directory. I'm able to run servlets 
created inside tomcat\webapps\examples\web-inf\classes directory. Please 
tell me what configuration I need to do in order to run servlets from 
tomcat root???
Thanks.

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

Share information about yourself, create your own public profile at 
http://profiles.msn.com.




Re: JServ Port

2000-11-15 Thread Kurt R. Hoehn

http://www.mySiteName.com/myWebApp/servlet/testapackage.SomePackageClass

You can also  modify the web.xml under the WEB-INF so you dont have to
prefix the package

Kurt

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, November 15, 2000 8:39 PM
Subject: JServ Port


 I am porting a web app from JServ to Tomcat on Linux.  I have having
trouble
 configuring servlets that reside in my own packages.  My test cases can
 access .class files in:

 /usr/local/jakarta-tomcat/webapps/myWebApp/WEB-INF/classes

 I can access for example "SnoopServlet.class" in that subdir with an
address
 like:

 http://www.mySiteName.com/myWebApp/servlet/SnoopServlet

 Now suppose I have a class, SomePackageClass, declared to be in package
 testapackage within its .java code file.  Its compiled form is in the
 following location and file:


/usr/local/jakarta-tomcat/webapps/myWebApp/WEB-INF/classes/testapackage/Some
Pa

 ckageClass.class

 Now, I would like to (but cannot seem to) access it with:

 http://www.mySiteName.com/myWebApp/servlet/testapackage/SomePackageClass

 What configuration steps must I take?  Or, how can I access it from that
 location?

 Thanks,
 John Thompson
 Boulder, Colorado, USA
 [EMAIL PROTECTED]







Tomcat in J2EE

2000-11-15 Thread LUN

Hi all,
I would like to how to where the jar of 
Tomcat in J2EE, where should I place the jsp and servlet
in J2EE,  may be say, should I set the tomcat in J2EE
Yours,
LUN




AW: Runtime.exec Nullpointer Exception

2000-11-15 Thread Ralph Einfeldt

Guess:
  the cause is cmdarray[5]=null;

  I think the arguments to exec are not null terminated 
  arrays is in c(++).
  So you have to define the arrays with a size that meets 
  your argument count.

If not, what about a stacktrace? 
At which line is the Exception thrown ?

e.printStackTrace();

 -Ursprüngliche Nachricht-
 Von: Christoph Kukulies [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 15. November 2000 19:14
 An: [EMAIL PROTECTED]
 Betreff: Runtime.exec Nullpointer Exception



Struts/Java/Tomcat/Digester error?

2000-11-15 Thread Mike Campbell

All, When trying to run the struts example, it dies.  We think here it's a lower level 
problem than struts, but are at a loss to
figure out what.

It SEEMS the Digester.getParser() dies whenever an XML file is trying to be read (the 
database.xml file can't be read and the
action.xml file seems to have problems being read also).

Tomcat is installed to the point where it CAN run servlets and JSP's successfully.  
I'm using it on NT in standalone mode (no
apache).

When Tomcat starts, here's the error.  Anyone have any ideas here?  Thanks.

Digester.getParser:
java.lang.SecurityException: sealing violation
at java.net.URLClassLoader.defineClass(URLClassLoader.java:234)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:92)
at org.apache.struts.digester.Digester.getParser(Digester.java:284)
at org.apache.struts.digester.Digester.parse(Digester.java:748)
at org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:619)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:291)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at org.apache.tomcat.core.ServletWrapper.initServlet(ServletWrapper.java:315)
at org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java:276)
at 
org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOnStartupInterceptor.java:132)
at org.apache.tomcat.core.ContextManager.initContext(ContextManager.java:227)
at org.apache.tomcat.core.ContextManager.init(ContextManager.java:201)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:156)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163)
--
Mike Campbell, RD, Norcross, GA
mailto: [EMAIL PROTECTED]
+678.421.4641