JWSDP and Tomcat

2003-01-26 Thread Paul Carpenter
HI all

I've been playing with the downloads of the Java Web Services Developer 
Pack. This package has lots of stuff in it, but older than the current 
individual release of Tomcat...or so it seems. The documentation

I've downloaded and installed JWSDP-1_0_01 - it would appear to have 
Tomcat 4.1 - but not 4.1.12, as the manager tool is missing (well, very 
different). I think the JWSDP has Tomcat 4.1.0 (?) whereas the newer 
versions (e.g. 4.1.12 or .4.1.18) have the latest bits'n'pieces.

QUESTION: How do I overwrite the installation of Tomcat in the JWSDP  
with whatever the latest release is?

Can I simply dump the jakarta-tomcat-4.1.nn directories right on top of 
the JWSDP files?


Thanks
Paul


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



find out why the loading of the driver fails

2003-01-26 Thread joe udder
Hello.

Does anyone have any good hints on how to tweak tomcat to output more 
information about errors?

When I am trying to load a JDBC-driver it fails, but it doesn't give me a 
clue on why it fails.


I checked the web for similar errors, so I started by adding the .JAR-file 
to the classpath, and put a copy of it in WEB-INF/lib.
I also doublechecked that the dbengine is up and running, and that the 
user/password/ip is OK.

Finally I set the debug-attribute in the Server-tag to 1, but it didn't 
give me any more information. :-/


The error I got is:
---
org.apache.jasper.JasperException:
SQLException: Cannot load JDBC driver class 'org.postgresql.Driver'
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:248)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
...
---


Any ideas are welcome.

TIA

// ju



_
Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail


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



RE: Tomcat 4.1.18/19 - How to activate gzip support?

2003-01-26 Thread Reynir Hübner
No I was not telling you to use orion server, just to use the Tutorial, and it's code 
examples to implement the GZIP filter. 
I think that should be allright.. you should not have any license problems.

-r


 -Original Message-
 From: Madhava Reddy [mailto:[EMAIL PROTECTED]] 
 Sent: 25. janúar 2003 17:48
 To: 'Tomcat Users List'
 Subject: RE: Tomcat 4.1.18/19 - How to activate gzip support?
 
 
 Reynir,
 
 It looks Orion is not open sourse and free.. What about 
 license issues, if we want to use for commertial purpose?
 
 Madhav
 
 -Original Message-
 From: Reynir Hübner [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, January 25, 2003 3:28 PM
 To: Tomcat Users List
 Subject: RE: Tomcat 4.1.18/19 - How to activate gzip support?
 
 
 You could install a filter in your webapplication to do this. 
 Check out the filter tutorials at www.orionserver.com
 
 Specifically this one : 
 http://www.orionserver.com/tutorials/filters/5.html
 
 
 Hope it helps
 -reynir
 
  -Original Message-
  From: mech [mailto:[EMAIL PROTECTED]]
  Sent: 24. janúar 2003 23:33
  To: 'Tomcat Users List'
  Subject: Tomcat 4.1.18/19 - How to activate gzip support?
  
  
  Hi,
  
  I'm currently using Tomcat 4.1.18 for my webapp quite
  successfully. Unfortunately one db output page is almost 60KB 
  large (1/3 of it is only spaces and tabs) so I was thinking 
  about trying Tomcat 4.1.19's new HTTP 1.1 gzip support.
  
  I installed 4.1.19 and my webapp is running again, but how to
  enable gzip support? My Mozilla supports gzip according to 
  header infos. But how do I find out if my pages really got 
  compressed? Mozilla's page info still says encoding=ISO... 
  (although I'm not sure if this is because of the page 
  content). Sorry, but I didn't see/feel any difference yet ;-) 
  Did I forget something?
  
  Anyhow I wonder how to activate gzip for the connector?
  Shouldn't there be some kind of attribute in server.xml to 
  set for Connector 
  className=org.apache.coyote.tomcat4.CoyoteConnector... ? 
  But I saw nothing in the documentation like enableGZIP=true.
  
  I also read that there was (is?) a filter servlet available
  somewhere to be used for on-the-fly gzip compression. Where 
  can I get some more info how to obtain it and set it up, if I 
  wouldn't use the http connector support?
  
  Any ideas about this.
  Michael
  
  
  
  
  --
  To unsubscribe, e-mail:   
  mailto:tomcat-user- [EMAIL PROTECTED]
  For
  additional commands, 
  e-mail: mailto:[EMAIL PROTECTED]
  
  
 
 --
 To unsubscribe, e-mail: 
 mailto:tomcat-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:[EMAIL PROTECTED]
 

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




RE: Tomcat 4.1.18/19 - How to activate gzip support?

2003-01-26 Thread mech
Maybe let's go back to the more interesting original question, although
it might be possible to use a filter for gzip,too.

That was how to enable gzip for Tomcat 4.1.19

Release notes say:

[4.1.19] CoyoteConnector:
 Add HTTP/1.1 GZIP compression support.
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.19-alph
a/RELEASE-NOTES


So great to hear, but which button to push to activate this secret
feature? Didn't find a hint in the 4.1.19 documentation.
Michael


 -Original Message-
 From: Reynir Hübner [mailto:[EMAIL PROTECTED]] 
 Sent: Sonntag, 26. Januar 2003 12:15
 To: Tomcat Users List
 Subject: RE: Tomcat 4.1.18/19 - How to activate gzip support?
 
 
 No I was not telling you to use orion server, just to use the 
 Tutorial, and it's code examples to implement the GZIP filter. 
 I think that should be allright.. you should not have any 
 license problems.
 
 -r
 
 
  -Original Message-
  From: Madhava Reddy [mailto:[EMAIL PROTECTED]]
  Sent: 25. janúar 2003 17:48
  To: 'Tomcat Users List'
  Subject: RE: Tomcat 4.1.18/19 - How to activate gzip support?
  
  
  Reynir,
  
  It looks Orion is not open sourse and free.. What about
  license issues, if we want to use for commertial purpose?
  
  Madhav
  
  -Original Message-
  From: Reynir Hübner [mailto:[EMAIL PROTECTED]]
  Sent: Saturday, January 25, 2003 3:28 PM
  To: Tomcat Users List
  Subject: RE: Tomcat 4.1.18/19 - How to activate gzip support?
  
  
  You could install a filter in your webapplication to do this.
  Check out the filter tutorials at www.orionserver.com
  
  Specifically this one :
  http://www.orionserver.com/tutorials/filters/5.html
  
  
  Hope it helps
  -reynir
  
   -Original Message-
   From: mech [mailto:[EMAIL PROTECTED]]
   Sent: 24. janúar 2003 23:33
   To: 'Tomcat Users List'
   Subject: Tomcat 4.1.18/19 - How to activate gzip support?
   
   
   Hi,
   
   I'm currently using Tomcat 4.1.18 for my webapp quite 
 successfully. 
   Unfortunately one db output page is almost 60KB large 
 (1/3 of it is 
   only spaces and tabs) so I was thinking about trying 
 Tomcat 4.1.19's 
   new HTTP 1.1 gzip support.
   
   I installed 4.1.19 and my webapp is running again, but 
 how to enable 
   gzip support? My Mozilla supports gzip according to header infos. 
   But how do I find out if my pages really got compressed? 
 Mozilla's 
   page info still says encoding=ISO... (although I'm not 
 sure if this 
   is because of the page content). Sorry, but I didn't see/feel any 
   difference yet ;-) Did I forget something?
   
   Anyhow I wonder how to activate gzip for the connector? Shouldn't 
   there be some kind of attribute in server.xml to set for 
 Connector
   className=org.apache.coyote.tomcat4.CoyoteConnector... ? 
   But I saw nothing in the documentation like enableGZIP=true.
   
   I also read that there was (is?) a filter servlet available 
   somewhere to be used for on-the-fly gzip compression. Where can I 
   get some more info how to obtain it and set it up, if I 
 wouldn't use 
   the http connector support?
   
   Any ideas about this.
   Michael
   
   
   
   
   --
   To unsubscribe, e-mail:   
   mailto:tomcat-user- [EMAIL PROTECTED]
   For
   additional commands,
   e-mail: mailto:[EMAIL PROTECTED]
   
   
  
  --
  To unsubscribe, e-mail:
  mailto:tomcat-user- [EMAIL PROTECTED]
  For 
  additional commands, 
  e-mail: mailto:[EMAIL PROTECTED]
  
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:[EMAIL PROTECTED]
 


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




Re: find out why the loading of the driver fails

2003-01-26 Thread p niemandt
1. I would put the db driver jar under $TOMCAT/common/lib
This directory is shared by all your web applications: any libraries
under this directory should be visible to your app.

2. Set your debug to 100: There are a few places you can / should do
this (for developing / debugging): Basically, any place you see a debug
parameter / attribute: Make it 100: You should get a lot of debugging
information, including which jar files have been picked up and deployed.

hth


On Sun, 2003-01-26 at 10:25, joe udder wrote:
 Hello.
 
 Does anyone have any good hints on how to tweak tomcat to output more 
 information about errors?
 
 When I am trying to load a JDBC-driver it fails, but it doesn't give me a 
 clue on why it fails.
 
 
 I checked the web for similar errors, so I started by adding the .JAR-file 
 to the classpath, and put a copy of it in WEB-INF/lib.
 I also doublechecked that the dbengine is up and running, and that the 
 user/password/ip is OK.
 
 Finally I set the debug-attribute in the Server-tag to 1, but it didn't 
 give me any more information. :-/
 
 
 The error I got is:
 ---
 org.apache.jasper.JasperException:
 SQLException: Cannot load JDBC driver class 'org.postgresql.Driver'
 at 
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:248)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 ...
 ---
 
 
 Any ideas are welcome.
 
 TIA
 
 // ju
 
 
 
 _
 Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
 http://join.msn.com/?page=features/junkmail
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
-- 
p niemandt [EMAIL PROTECTED]


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




How to get IP address Tomcat bound to.

2003-01-26 Thread Kirill Maximov
  I have a programming question - how can I get 
  the IP address the TomCat is bound to ? Is this possible?

  I suppose, I have to use some internal TomCat API here ..

  With kind regards,
  Kirill Maximov


-- 
Kirill Maximov aka KIR
[EMAIL PROTECTED] | http://www.maxkir.com/


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




RE: A follow-up of my last post

2003-01-26 Thread Turner, John

Only if the Invoker is enabled, which it isn't by default.

John


-Original Message-
From: Mark Liu [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, January 25, 2003 5:59 PM
To: Tomcat Users List
Subject: RE: A follow-up of my last post


Thanks, Vim.

I read that page.

However, the web.xml you pasted here says

You may define any number of servlet mappings,
including zero.It is also legal to define more than
one mapping for the same servlet, if you wish to.

That means it is not necessary to map each servlet I
have in my web application right?


--- vim m [EMAIL PROTECTED] wrote:
 Take a look at this web page.

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/appdev/deployment.html
 
 There is a sample web.xml file given here. You will
 do
 well do read that. In the web.xml file it does state
 that servlets can be called without making an entry
 in
 the web.xml file by using - 
 http://host/context-path/servlet/classname.
 But I have not tried it so far. The doc also says
 that
 this method is not portable. Have pasted the web.xml
 file below:
 
 
 ?xml version=1.0 encoding=ISO-8859-1?
 
 !DOCTYPE web-app 
 PUBLIC -//Sun Microsystems, Inc.//DTD Web
 Application 2.3//EN 
 http://java.sun.com/dtd/web-app_2_3.dtd;
 
 web-app
 
 
 !-- General description of your web application
 --
 
 display-nameMy Web Application/display-name
 description
   This is version X.X of an application to
 perform
   a wild and wonderful task, based on servlets
 and
   JSP pages.  It was written by Dave Developer
   ([EMAIL PROTECTED]), who should be contacted
 for
   more information.
 /description
 
 
 !-- Context initialization parameters that
 define
 shared
  String constants used within your
 application, which
  can be customized by the system
 administrator
 who is
  installing your application.  The values
 actually
  assigned to these parameters can be
 retrieved
 in a
  servlet or JSP page by calling:
 
  String value =
   
 getServletContext().getInitParameter(name);
 
  where name matches the param-name
 element
 of
  one of these initialization parameters.
 
  You can define any number of context
 initialization
  parameters, including zero.
 --
 
 context-param
   param-namewebmaster/param-name
  
 param-value[EMAIL PROTECTED]/param-value
   description
 The EMAIL address of the administrator to
 whom
 questions
 and comments about this application should
 be
 addressed.
   /description
 /context-param
 
 
 !-- Servlet definitions for the servlets that
 make up
  your web application, including
 initialization
  parameters.  With Tomcat, you can also send
 requests
  to servlets not listed here with a request
 like this:
 
   

http://localhost:8080/{context-path}/servlet/{classname}
 
  but this usage is not guaranteed to be
 portable.  It also
  makes relative references to images and
 other
 resources
  required by your servlet more complicated,
 so
 defining
  all of your servlets (and defining a
 mapping
 to them with
  a servlet-mapping element) is recommended.
 
  Servlet initialization parameters can be
 retrieved in a
  servlet or JSP page by calling:
 
  String value =
   
 getServletConfig().getInitParameter(name);
 
  where name matches the param-name
 element
 of
  one of these initialization parameters.
 
  You can define any number of servlets,
 including zero.
 --
 
 servlet
   servlet-namecontroller/servlet-name
   description
 This servlet plays the controller role in
 the MVC architecture
 used in this application.  It is generally
 mapped to the .do
 filename extension with a servlet-mapping
 element, and all form
 submits in the app will be submitted to a
 request URI like
 saveCustomer.do, which will therefore be
 mapped to this servlet.
 
 The initialization parameter namess for this
 servlet are the
 servlet path that will be received by this
 servlet (after the
 filename extension is removed).  The
 corresponding value is the
 name of the action class that will be used
 to
 process this request.
   /description
  

servlet-classcom.mycompany.mypackage.ControllerServlet/servlet-class
   init-param
 param-namelistOrders/param-name


param-valuecom.mycompany.myactions.ListOrdersAction/param-value
   /init-param
   init-param
 param-namesaveCustomer/param-name


param-valuecom.mycompany.myactions.SaveCustomerAction/param-value
   /init-param
   !-- Load this servlet at server startup time
 --
   load-on-startup5/load-on-startup
 /servlet
 
 servlet
   servlet-namegraph/servlet-name
   description
   

RE: A follow-up of my last post

2003-01-26 Thread Turner, John

Correct.  Search the archives for more info, or the BUGTRAQ database.

John


-Original Message-
From: Mark Liu [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, January 25, 2003 11:29 PM
To: Tomcat Users List
Subject: RE: A follow-up of my last post


I put the following segment of code in my x509
web.xml:

servlet-mapping
servlet-nameinvoker/servlet-name
url-pattern/servlet/*/url-pattern
/servlet-mapping

And then it starts to work.  But you said that this is
not safe, right?



--- Turner, John [EMAIL PROTECTED] wrote:
 
 That's why it isn't working.
 
 As I said, the Invoker servlet is disabled by
 default in recent versions of
 4.1.x due to security reasons.  It is enabled in the /examples 
 application.
 
 You can:
 
 1) map your servlet(s) in your application's web.xml
 file and leave the
 Invoker servlet disabled
 
 OR
 
 2) leave your web.xml alone and enable the Invoker
 servlet.
 
 If you choose #2, and you're going into production,
 you should understand
 the security issues before you go live.  If your web application may 
 be deployed on a server that you don't control, you
 should choose #1, since
 that will work all the time.
 
 John
 
 -Original Message-
 From: Mark Liu [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, January 25, 2003 12:44 PM
 To: Tomcat Users List
 Subject: RE: A follow-up of my last post
 
 
 Virtually, I don't have anything for my /x509
 web.xml.
 
 Here is my /x509 web.xml:
 
  beginning of x509 web.xml *
 
 ?xml version=1.0 encoding=ISO-8859-1?
 
 !DOCTYPE web-app
 PUBLIC -//Sun Microsystems, Inc.//DTD Web
 Application 2.3//EN
 http://java.sun.com/dtd/web-app_2_3.dtd;
 
 web-app
   display-nameX509 Project/display-name
   description
  X509 Public Key Certificate Authentication
   /description
 /web-app
 
  end of x509 web.xml *
 
 I remember in earlier versions of Tomcat, any web
 application should work just fine with a primitive
 web.xml like so:
 
 *** beginning of a primitive web.xml 
 
 ?xml version=1.0 encoding=ISO-8859-1?
 
 !DOCTYPE web-app
 PUBLIC -//Sun Microsystems, Inc.//DTD Web
 Application 2.3//EN
 http://java.sun.com/dtd/web-app_2_3.dtd;
 
 web-app
 /web-app
 
 *** end of a primitive web.xml 
 
 Is the servlet mapping a new Tomcat rule?  Is there
 any way I can have my web application work without
 mapping each servlet?
 
 Thanks.
 
 Mark
 
 --- Turner, John [EMAIL PROTECTED] wrote:
  
  Do you have a mapping for the servlet(s) in your
 application's web.xml
  file?
  
  The Invoker servlet is disabled by default in
 recent
  versions of 4.1.x for
  security reasons, but it is enabled in the
 /examples
  web.xml.
  
  John
  
  
  -Original Message-
  From: Mark Liu [mailto:[EMAIL PROTECTED]]
  Sent: Saturday, January 25, 2003 3:09 AM
  To: [EMAIL PROTECTED]
  Subject: A follow-up of my last post
  
  
  Also please note that I have changed Marty Hall's
  ServletUtilities.java and ShowParameters.java
 according my system.
  
  For example, I commented out the package line.
  
  Any way, as I said in the last post, the servlet
  works
  great if I put it under Tomcat's examples
  application.
  
  It just does not work under my newly-created x509
 application.
  
  I don't understand this.
  
  Please kindly help.
  
  Thanks.
  
  Mark.
  
  __
  Do you Yahoo!?
  Yahoo! Mail Plus - Powerful. Affordable. Sign up
  now.
  http://mailplus.yahoo.com
  
  --
  To unsubscribe, e-mail:
 
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
  
  ---
  
  Checked by AVG anti-virus system
  (http://www.grisoft.com).
  Version: 6.0.443 / Virus Database: 248 - Release
  Date: 1/10/2003
   
  
  ---
  
  Checked by AVG anti-virus system
  (http://www.grisoft.com).
  Version: 6.0.443 / Virus Database: 248 - Release
  Date: 1/10/2003
   
  
  --
  To unsubscribe, e-mail:
 
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail: 
  mailto:[EMAIL PROTECTED]
  
 
 
 __
 Do you Yahoo!?
 Yahoo! Mail Plus - Powerful. Affordable. Sign up
 now.
 http://mailplus.yahoo.com
 
 --
 To unsubscribe, e-mail: 
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 ---
 
 Checked by AVG anti-virus system
 (http://www.grisoft.com).
 Version: 6.0.443 / Virus Database: 248 - Release
 Date: 1/10/2003
  
 
 ---
 
 Checked by AVG anti-virus system
 (http://www.grisoft.com).
 Version: 6.0.443 / Virus Database: 248 - Release
 Date: 1/10/2003
  
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
=== message truncated ===


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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


RE: A follow-up of my last post

2003-01-26 Thread Turner, John

Not only is it not safe, it's not portable.  If your webapp counts on this,
but then is deployed to a machine you don't control, there is a 99.99%
chance that server admin has the Invoker disabled and won't enable it.  Then
what will you do?  Mapping your servlet in web.xml will work all the time,
everywhere.

John

-Original Message-
From: Mark Liu [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, January 25, 2003 11:29 PM
To: Tomcat Users List
Subject: RE: A follow-up of my last post


I put the following segment of code in my x509
web.xml:

servlet-mapping
servlet-nameinvoker/servlet-name
url-pattern/servlet/*/url-pattern
/servlet-mapping

And then it starts to work.  But you said that this is
not safe, right?



--- Turner, John [EMAIL PROTECTED] wrote:
 
 That's why it isn't working.
 
 As I said, the Invoker servlet is disabled by
 default in recent versions of
 4.1.x due to security reasons.  It is enabled in the /examples 
 application.
 
 You can:
 
 1) map your servlet(s) in your application's web.xml
 file and leave the
 Invoker servlet disabled
 
 OR
 
 2) leave your web.xml alone and enable the Invoker
 servlet.
 
 If you choose #2, and you're going into production,
 you should understand
 the security issues before you go live.  If your web application may 
 be deployed on a server that you don't control, you
 should choose #1, since
 that will work all the time.
 
 John
 
 -Original Message-
 From: Mark Liu [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, January 25, 2003 12:44 PM
 To: Tomcat Users List
 Subject: RE: A follow-up of my last post
 
 
 Virtually, I don't have anything for my /x509
 web.xml.
 
 Here is my /x509 web.xml:
 
  beginning of x509 web.xml *
 
 ?xml version=1.0 encoding=ISO-8859-1?
 
 !DOCTYPE web-app
 PUBLIC -//Sun Microsystems, Inc.//DTD Web
 Application 2.3//EN
 http://java.sun.com/dtd/web-app_2_3.dtd;
 
 web-app
   display-nameX509 Project/display-name
   description
  X509 Public Key Certificate Authentication
   /description
 /web-app
 
  end of x509 web.xml *
 
 I remember in earlier versions of Tomcat, any web
 application should work just fine with a primitive
 web.xml like so:
 
 *** beginning of a primitive web.xml 
 
 ?xml version=1.0 encoding=ISO-8859-1?
 
 !DOCTYPE web-app
 PUBLIC -//Sun Microsystems, Inc.//DTD Web
 Application 2.3//EN
 http://java.sun.com/dtd/web-app_2_3.dtd;
 
 web-app
 /web-app
 
 *** end of a primitive web.xml 
 
 Is the servlet mapping a new Tomcat rule?  Is there
 any way I can have my web application work without
 mapping each servlet?
 
 Thanks.
 
 Mark
 
 --- Turner, John [EMAIL PROTECTED] wrote:
  
  Do you have a mapping for the servlet(s) in your
 application's web.xml
  file?
  
  The Invoker servlet is disabled by default in
 recent
  versions of 4.1.x for
  security reasons, but it is enabled in the
 /examples
  web.xml.
  
  John
  
  
  -Original Message-
  From: Mark Liu [mailto:[EMAIL PROTECTED]]
  Sent: Saturday, January 25, 2003 3:09 AM
  To: [EMAIL PROTECTED]
  Subject: A follow-up of my last post
  
  
  Also please note that I have changed Marty Hall's
  ServletUtilities.java and ShowParameters.java
 according my system.
  
  For example, I commented out the package line.
  
  Any way, as I said in the last post, the servlet
  works
  great if I put it under Tomcat's examples
  application.
  
  It just does not work under my newly-created x509
 application.
  
  I don't understand this.
  
  Please kindly help.
  
  Thanks.
  
  Mark.
  
  __
  Do you Yahoo!?
  Yahoo! Mail Plus - Powerful. Affordable. Sign up
  now.
  http://mailplus.yahoo.com
  
  --
  To unsubscribe, e-mail:
 
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
  
  ---
  
  Checked by AVG anti-virus system
  (http://www.grisoft.com).
  Version: 6.0.443 / Virus Database: 248 - Release
  Date: 1/10/2003
   
  
  ---
  
  Checked by AVG anti-virus system
  (http://www.grisoft.com).
  Version: 6.0.443 / Virus Database: 248 - Release
  Date: 1/10/2003
   
  
  --
  To unsubscribe, e-mail:
 
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail: 
  mailto:[EMAIL PROTECTED]
  
 
 
 __
 Do you Yahoo!?
 Yahoo! Mail Plus - Powerful. Affordable. Sign up
 now.
 http://mailplus.yahoo.com
 
 --
 To unsubscribe, e-mail: 
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 ---
 
 Checked by AVG anti-virus system
 (http://www.grisoft.com).
 Version: 6.0.443 / Virus Database: 248 - Release
 Date: 1/10/2003
  
 
 ---
 
 Checked by AVG anti-virus system
 (http://www.grisoft.com).
 Version: 6.0.443 / Virus Database: 248 - Release
 Date: 1/10/2003
  
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
=== message truncated ===



RE: Apache 2 + mod_jk - webapp appending extraneous characters to server name?

2003-01-26 Thread Turner, John

Something in your configuration is messing up the HTTP Response headers,
probably Struts in some way.  That string is a mangled version of
Content-Type: text/html.

I guess it could also be mod_jk with Apache .44 (.44 being brand new) that's
doing it, but if the Tomcat examples work OK, I would say its Struts.

John


-Original Message-
From: Jeffery Cann [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, January 26, 2003 1:47 AM
To: [EMAIL PROTECTED]
Subject: Apache 2 + mod_jk - webapp appending extraneous characters to
server name?


Greetings.

I built apache 2.0.44 from source (default configuration).  I hooked it up
to 
mod_jk, version 1.2.2.  The tomcat examples application works great.

When I run one of my web apps, the browser (maybe?) is inserting additional 
information for the hostname in non-fully qualified URLs.  For example, my 
JSP code generates this link:

a href='do/initMemberHome'Member Homepage/a

When I run the jsp page via any browser (or simply hover over the link) 
(http://localhost/application/index.jsp), the browser thinks that the 
servername is:

http://localhostnt-Type  %1Ctext/do/initMemberHome

So, the 'nt-Type %1Ctext' string is appended to 'localhost'.  I grep'd
around 
the config files for tomcat, apache, and the webapp and see nothing.  It 
seems to be specific to my (simple) web application.  The one difference 
between it an other example applications is that the pages are generated
from 
struts, using tiles.  However, checking the HTML source of the generated JSP

page, I don't see the appended nt-Type %1Ctext.

Has anyone seen this problem?  Any suggestions?

Thanks in advance.
Jeff


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

---

Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.443 / Virus Database: 248 - Release Date: 1/10/2003
 

---

Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.443 / Virus Database: 248 - Release Date: 1/10/2003
 

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




JNDI jdbc resources

2003-01-26 Thread Paul Carpenter
Hi All

I've scoured the list and got so close, yet so far from making the jdbc  
stuff work. With some help from Manav and other postings, this is what  
i see. can anyone solve the riddle?

Please see the cut'n'pastes below. I draw you attention to the fact  
that the connection looks good right up to the point where it's used -  
like the DataSource object is good (because ds != null is true), yet  
the getConnection method throws the often seen Cannot load JDBC driver  
class 'null' error.

I know this is very close...what's missing?

I'm sure my jars are in the right place, as a regular forClass approach  
in the same webapp works with no problems?


Thanks
Paul

tomcat 4.1.12, Mac OSX 10.2.3

Output from my test servlet:
Simple lookup test :
dbName : org.apache.commons.dbcp.BasicDataSource@25debb
list() on /comp/env Context :
Binding : jdbc: org.apache.naming.NamingContext
listBindings() on /comp/env Context :
Binding : jdbc:  
org.apache.naming.NamingContext:org.apache.naming.NamingContext@41f80c
list() on full Context :
Binding : DBmultileague: org.apache.commons.dbcp.BasicDataSource
listBindings() on full Context today:
Binding : DBmultileague:  
org.apache.commons.dbcp.BasicDataSource:org.apache.commons.dbcp.BasicDat 
aSource@25debb
Connecting1 : Connecting2 : Connecting3 : Query1 :

The relevant servlet code;
try {
out.println(list() on full Context : );
NamingEnumeration enum2 = ctx.list(java:/comp/env/jdbc/);
while (enum2.hasMoreElements()) {
out.print(Binding : );
out.println(enum2.nextElement().toString());
}
out.println(listBindings() on full Context today: );
enum2 = ctx.listBindings(java:/comp/env/jdbc/);
while (enum2.hasMoreElements()) {
out.print(Binding : );
out.println(enum2.nextElement().toString());
}
} catch (NamingException e) {
out.println(JNDI lookup failed :  + e);
}
try{
Context ctx2 = new InitialContext();
out.print(Connecting1 : );
 	Context envCtx2 = (Context)  
ctx2.lookup(java:/comp/env/);
out.print(Connecting2 : );
 		DataSource ds = (DataSource)  
envCtx2.lookup(jdbc/DBmultileague);
out.print(Connecting3 : );

  		if (ds != null) {
out.print(Query1 : );
		Connection conn = ds.getConnection();
out.print(Query2 : );

The context/resource definition:
Context path=/DBmultileague-0.1-dev docBase=DBmultileague-0.1-dev  
debug=5 reloadable=true  naming=true crossContext=true
		
	Logger className=org.apache.catalina.logger.FileLogger
			prefix=localhost_DBmultileague_log. suffix=.txt  
timestamp=true/

	Resource name=jdbc/DBmultileague auth=Container  
type=javax.sql.DataSource/
	
	ResourceParams name=jdbc/DBmultileague
		ParameternamemaxIdle/namevalue3000/value/Parameter
		ParameternamemaxActive/namevalue10/value/Parameter
		ParameternamemaxWait/namevalue10/value/Parameter
		Parameternameusername/namevaluesa/value/Parameter
		Parameternamepassword/namevalue/value/Parameter
		Parameter
			namefactory/name
			valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
		/Parameter
  	Parameter
			namedriverClassName/name
			valuecom.sybase.jdbc2.jdbc.SybDriver/value
		/Parameter
		Parameter
			nameurl/name
			valuejdbc:sybase:Tds:PowerBookPaul:11222/multiLeague/value
		/Parameter
		ParameternameinitialPoolSize/namevalue2/value/Parameter
	/ResourceParams


Catalina 4.1.12 and 4.1.18 can't start w/ JPDA activated

2003-01-26 Thread Manuel Soto
I cant activate the JPDA service in catalina. I tried using:
catalina.sh jpda start
catalina.sh jpda run

I works in catalina 4.0.x. 

Does I need an special option?

ENV:
Linux MDK 9.0
java version 1.4.1_01
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_01-b01)
Java HotSpot(TM) Client VM (build 1.4.1_01-b01, mixed mode)

-- 
Manuel Soto [EMAIL PROTECTED]

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




Re: How to get IP address Tomcat bound to.

2003-01-26 Thread Mark
At 1/26/2003 04:57 PM, you wrote:

  I have a programming question - how can I get
  the IP address the TomCat is bound to ? Is this possible?

  I suppose, I have to use some internal TomCat API here ..

  With kind regards,
  Kirill Maximov


Not sure if I understand your question, but will this work for you from w/i 
a servlet or other class running under Tomcat?

   String ipaddr = InetAddress.getLocalHost().getHostAddress();


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



RE: A follow-up of my last post

2003-01-26 Thread Mark Liu
What if I am the server administrator?  In fact I am. 
Then I'll risk leaving a grave security hole, right?

But anyway, I would like to learn servlet mapping. 
Where do we have some documents about servlet mapping?

Suppose the invoker is disable, you said that have to
map each and every servlet I have for my web
application, right?

Mark

--- Turner, John [EMAIL PROTECTED] wrote:
 
 Not only is it not safe, it's not portable.  If your
 webapp counts on this,
 but then is deployed to a machine you don't control,
 there is a 99.99%
 chance that server admin has the Invoker disabled
 and won't enable it.  Then
 what will you do?  Mapping your servlet in web.xml
 will work all the time,
 everywhere.
 
 John
 
 -Original Message-
 From: Mark Liu [mailto:[EMAIL PROTECTED]] 
 Sent: Saturday, January 25, 2003 11:29 PM
 To: Tomcat Users List
 Subject: RE: A follow-up of my last post
 
 
 I put the following segment of code in my x509
 web.xml:
 
 servlet-mapping
 servlet-nameinvoker/servlet-name
 url-pattern/servlet/*/url-pattern
 /servlet-mapping
 
 And then it starts to work.  But you said that this
 is
 not safe, right?
 
 
 
 --- Turner, John [EMAIL PROTECTED] wrote:
  
  That's why it isn't working.
  
  As I said, the Invoker servlet is disabled by
  default in recent versions of
  4.1.x due to security reasons.  It is enabled in
 the /examples 
  application.
  
  You can:
  
  1) map your servlet(s) in your application's
 web.xml
  file and leave the
  Invoker servlet disabled
  
  OR
  
  2) leave your web.xml alone and enable the Invoker
  servlet.
  
  If you choose #2, and you're going into
 production,
  you should understand
  the security issues before you go live.  If your
 web application may 
  be deployed on a server that you don't control,
 you
  should choose #1, since
  that will work all the time.
  
  John
  
  -Original Message-
  From: Mark Liu [mailto:[EMAIL PROTECTED]]
  Sent: Saturday, January 25, 2003 12:44 PM
  To: Tomcat Users List
  Subject: RE: A follow-up of my last post
  
  
  Virtually, I don't have anything for my /x509
  web.xml.
  
  Here is my /x509 web.xml:
  
   beginning of x509 web.xml *
  
  ?xml version=1.0 encoding=ISO-8859-1?
  
  !DOCTYPE web-app
  PUBLIC -//Sun Microsystems, Inc.//DTD Web
  Application 2.3//EN
  http://java.sun.com/dtd/web-app_2_3.dtd;
  
  web-app
display-nameX509 Project/display-name
description
   X509 Public Key Certificate Authentication
/description
  /web-app
  
   end of x509 web.xml *
  
  I remember in earlier versions of Tomcat, any web
  application should work just fine with a primitive
  web.xml like so:
  
  *** beginning of a primitive web.xml 
  
  ?xml version=1.0 encoding=ISO-8859-1?
  
  !DOCTYPE web-app
  PUBLIC -//Sun Microsystems, Inc.//DTD Web
  Application 2.3//EN
  http://java.sun.com/dtd/web-app_2_3.dtd;
  
  web-app
  /web-app
  
  *** end of a primitive web.xml 
  
  Is the servlet mapping a new Tomcat rule?  Is
 there
  any way I can have my web application work without
  mapping each servlet?
  
  Thanks.
  
  Mark
  
  --- Turner, John [EMAIL PROTECTED] wrote:
   
   Do you have a mapping for the servlet(s) in your
  application's web.xml
   file?
   
   The Invoker servlet is disabled by default in
  recent
   versions of 4.1.x for
   security reasons, but it is enabled in the
  /examples
   web.xml.
   
   John
   
   
   -Original Message-
   From: Mark Liu [mailto:[EMAIL PROTECTED]]
   Sent: Saturday, January 25, 2003 3:09 AM
   To: [EMAIL PROTECTED]
   Subject: A follow-up of my last post
   
   
   Also please note that I have changed Marty
 Hall's
   ServletUtilities.java and ShowParameters.java
  according my system.
   
   For example, I commented out the package line.
   
   Any way, as I said in the last post, the servlet
   works
   great if I put it under Tomcat's examples
   application.
   
   It just does not work under my newly-created
 x509
  application.
   
   I don't understand this.
   
   Please kindly help.
   
   Thanks.
   
   Mark.
   
  
 __
   Do you Yahoo!?
   Yahoo! Mail Plus - Powerful. Affordable. Sign up
   now.
   http://mailplus.yahoo.com
   
   --
   To unsubscribe, e-mail:
  
 
 mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
   mailto:[EMAIL PROTECTED]
   
   ---
   
   Checked by AVG anti-virus system
   (http://www.grisoft.com).
   Version: 6.0.443 / Virus Database: 248 - Release
   Date: 1/10/2003

   
   ---
   
   Checked by AVG anti-virus system
   (http://www.grisoft.com).
   Version: 6.0.443 / Virus Database: 248 - Release
   Date: 1/10/2003
 
=== message truncated ===


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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

URL alias

2003-01-26 Thread Paul Phillips
I have a web application that I have written that uses a controller 
servlet.  The controller fires off event handlers that process the various 
forms submitted by the user in various parts of the webapp.

I am also using container managed security (forms based).

A typical URL will look like this:

http://myhost:8080/webappname/controller?event=login

or event=whatever, depending on where they are in the webapp.

Just for convenience sake, I would like to make an alias for login purposes 
that looks something like:

http://myhost:8080/webappname/login

I can't figure out how to map that to my controller servlet AND at the same 
time include the parameter event=login.

The servlet-mapping configuration in web.xml will allow me to map login - 
controller, but how do I throw in the parameter and its value?

Thanks
Paul Phillips


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



Re: How to get IP address Tomcat bound to.

2003-01-26 Thread Kirill Maximov
On  0, Mark [EMAIL PROTECTED] wrote:
 At 1/26/2003 04:57 PM, you wrote:
   I have a programming question - how can I get
   the IP address the TomCat is bound to ? Is this possible?
 
   I suppose, I have to use some internal TomCat API here ..
 
   With kind regards,
   Kirill Maximov
 
 Not sure if I understand your question, but will this work for you from w/i 
 a servlet or other class running under Tomcat?
 
String ipaddr = InetAddress.getLocalHost().getHostAddress();

  Thanks a lot, that's what I was looking for!

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

-- 
Kirill Maximov aka KIR


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




web.xml and ip-based virtual hosts

2003-01-26 Thread Marcin Gryszkalis
Hi
I have Tomcat 4.1.x
in configuration there's server block that contains two
service blocks (I have 2 ip/port-based virtual hosts).

1. How can I specify in application's web.xml which service
should it be deployed to?

2. Can I have ip-based virtual hosts with one serice
and multiple connector? I guess it's not possible
because there can be only one DefaultContext per Host
(and only one Host/Engine per service).

regards
--
Marcin Gryszkalis
http://fork.pl



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




RE: A follow-up of my last post

2003-01-26 Thread Turner, John

Depends on your definition of grave, I guess.  It was important enough
that it was changed and included in future releases.

Yes, if the Invoker servlet is disabled, you have to map your servlet in
web.xml.

For information, check $CATALINA_HOME/conf/web.xml, or check the archives,
this is a FAQ.  You'll need a servlet tag and a servlet-mapping tag for
every servlet in your application if you choose not to use the Invoker
servlet.

John

-Original Message-
From: Mark Liu [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, January 26, 2003 12:30 PM
To: Tomcat Users List
Subject: RE: A follow-up of my last post


What if I am the server administrator?  In fact I am. 
Then I'll risk leaving a grave security hole, right?

But anyway, I would like to learn servlet mapping. 
Where do we have some documents about servlet mapping?

Suppose the invoker is disable, you said that have to
map each and every servlet I have for my web
application, right?

Mark

--- Turner, John [EMAIL PROTECTED] wrote:
 
 Not only is it not safe, it's not portable.  If your
 webapp counts on this,
 but then is deployed to a machine you don't control,
 there is a 99.99%
 chance that server admin has the Invoker disabled
 and won't enable it.  Then
 what will you do?  Mapping your servlet in web.xml
 will work all the time,
 everywhere.
 
 John
 
 -Original Message-
 From: Mark Liu [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, January 25, 2003 11:29 PM
 To: Tomcat Users List
 Subject: RE: A follow-up of my last post
 
 
 I put the following segment of code in my x509
 web.xml:
 
 servlet-mapping
 servlet-nameinvoker/servlet-name
 url-pattern/servlet/*/url-pattern
 /servlet-mapping
 
 And then it starts to work.  But you said that this
 is
 not safe, right?
 
 
 
 --- Turner, John [EMAIL PROTECTED] wrote:
  
  That's why it isn't working.
  
  As I said, the Invoker servlet is disabled by
  default in recent versions of
  4.1.x due to security reasons.  It is enabled in
 the /examples
  application.
  
  You can:
  
  1) map your servlet(s) in your application's
 web.xml
  file and leave the
  Invoker servlet disabled
  
  OR
  
  2) leave your web.xml alone and enable the Invoker
  servlet.
  
  If you choose #2, and you're going into
 production,
  you should understand
  the security issues before you go live.  If your
 web application may
  be deployed on a server that you don't control,
 you
  should choose #1, since
  that will work all the time.
  
  John
  
  -Original Message-
  From: Mark Liu [mailto:[EMAIL PROTECTED]]
  Sent: Saturday, January 25, 2003 12:44 PM
  To: Tomcat Users List
  Subject: RE: A follow-up of my last post
  
  
  Virtually, I don't have anything for my /x509
  web.xml.
  
  Here is my /x509 web.xml:
  
   beginning of x509 web.xml *
  
  ?xml version=1.0 encoding=ISO-8859-1?
  
  !DOCTYPE web-app
  PUBLIC -//Sun Microsystems, Inc.//DTD Web
  Application 2.3//EN
  http://java.sun.com/dtd/web-app_2_3.dtd;
  
  web-app
display-nameX509 Project/display-name
description
   X509 Public Key Certificate Authentication
/description
  /web-app
  
   end of x509 web.xml *
  
  I remember in earlier versions of Tomcat, any web application should 
  work just fine with a primitive web.xml like so:
  
  *** beginning of a primitive web.xml 
  
  ?xml version=1.0 encoding=ISO-8859-1?
  
  !DOCTYPE web-app
  PUBLIC -//Sun Microsystems, Inc.//DTD Web
  Application 2.3//EN
  http://java.sun.com/dtd/web-app_2_3.dtd;
  
  web-app
  /web-app
  
  *** end of a primitive web.xml 
  
  Is the servlet mapping a new Tomcat rule?  Is
 there
  any way I can have my web application work without
  mapping each servlet?
  
  Thanks.
  
  Mark
  
  --- Turner, John [EMAIL PROTECTED] wrote:
   
   Do you have a mapping for the servlet(s) in your
  application's web.xml
   file?
   
   The Invoker servlet is disabled by default in
  recent
   versions of 4.1.x for
   security reasons, but it is enabled in the
  /examples
   web.xml.
   
   John
   
   
   -Original Message-
   From: Mark Liu [mailto:[EMAIL PROTECTED]]
   Sent: Saturday, January 25, 2003 3:09 AM
   To: [EMAIL PROTECTED]
   Subject: A follow-up of my last post
   
   
   Also please note that I have changed Marty
 Hall's
   ServletUtilities.java and ShowParameters.java
  according my system.
   
   For example, I commented out the package line.
   
   Any way, as I said in the last post, the servlet
   works
   great if I put it under Tomcat's examples
   application.
   
   It just does not work under my newly-created
 x509
  application.
   
   I don't understand this.
   
   Please kindly help.
   
   Thanks.
   
   Mark.
   
  
 __
   Do you Yahoo!?
   Yahoo! Mail Plus - Powerful. Affordable. Sign up
   now.
   http://mailplus.yahoo.com
   
   --
   To unsubscribe, e-mail:
  
 
 mailto:[EMAIL PROTECTED]
   For additional 

RE: How to get IP address Tomcat bound to.

2003-01-26 Thread Turner, John

How does this help if there are multiple IP addresses on a single host?

John


-Original Message-
From: Kirill Maximov [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, January 26, 2003 2:04 PM
To: Tomcat Users List
Subject: Re: How to get IP address Tomcat bound to.


On  0, Mark [EMAIL PROTECTED] wrote:
 At 1/26/2003 04:57 PM, you wrote:
   I have a programming question - how can I get
   the IP address the TomCat is bound to ? Is this possible?
 
   I suppose, I have to use some internal TomCat API here ..
 
   With kind regards,
   Kirill Maximov
 
 Not sure if I understand your question, but will this work for you 
 from w/i
 a servlet or other class running under Tomcat?
 
String ipaddr = InetAddress.getLocalHost().getHostAddress();

  Thanks a lot, that's what I was looking for!

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

-- 
Kirill Maximov aka KIR


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

---

Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.443 / Virus Database: 248 - Release Date: 1/10/2003
 

---

Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.443 / Virus Database: 248 - Release Date: 1/10/2003
 

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




Jakarta Tomcat ready to serve

2003-01-26 Thread Dan Koren
Dear all;
 
I do not know if this is a proper way to send a question about Jakarta
Tomcat usage, and if it is not, please accept my apologies and guide me.
 
I am running an application that uses the Jakarta Tomcat server.
Right now I need to start the Jakarta Tomcat (JT) server, wait a few
seconds, check in the Jakarta Tomcat window that the server is running and
only then run the application itself.
 
I am looking for a way to sense the fact that JT is ready, and then launch
automatically the application.
 
Any ideas how can I do this?
 
Thanks!
 
 

Dan Koren

[EMAIL PROTECTED]

www.orbotech.com

+972-8-942-3277

 



hi,I need your hand to get rid of my question

2003-01-26 Thread zhaoyw
Dear:
I am a programer ,my web Container is tomcat 4.1.12,when i develope my project,i 
usually change my class,these classes are used by some jsp pages,so when i launch my 
web application,i look the jsp page result in the IE explore,but now i need to change 
my class to meet my new need,i want to see the new result of the jsp,however,the 
tomcat can not response my change immediately ,fortunately there is a reloadable 
value configed in the file server.xml,the default reloading interval is 15 seconds,i 
want to decrease the interval to 1 second to see the new jsp as soon as possible,what 
shall i do ?
sincerly,yours
[EMAIL PROTECTED]



RE: A follow-up of my last post

2003-01-26 Thread Mark Liu
OK, thanks, I'll just try to follow the examples
applications' web.xml and give it a shot.

Mark

--- Turner, John [EMAIL PROTECTED] wrote:
 
 Depends on your definition of grave, I guess.  It
 was important enough
 that it was changed and included in future releases.
 
 Yes, if the Invoker servlet is disabled, you have to
 map your servlet in
 web.xml.
 
 For information, check $CATALINA_HOME/conf/web.xml,
 or check the archives,
 this is a FAQ.  You'll need a servlet tag and a
 servlet-mapping tag for
 every servlet in your application if you choose not
 to use the Invoker
 servlet.
 
 John
 
 -Original Message-
 From: Mark Liu [mailto:[EMAIL PROTECTED]] 
 Sent: Sunday, January 26, 2003 12:30 PM
 To: Tomcat Users List
 Subject: RE: A follow-up of my last post
 
 
 What if I am the server administrator?  In fact I
 am. 
 Then I'll risk leaving a grave security hole, right?
 
 But anyway, I would like to learn servlet mapping. 
 Where do we have some documents about servlet
 mapping?
 
 Suppose the invoker is disable, you said that have
 to
 map each and every servlet I have for my web
 application, right?
 
 Mark
 
 --- Turner, John [EMAIL PROTECTED] wrote:
  
  Not only is it not safe, it's not portable.  If
 your
  webapp counts on this,
  but then is deployed to a machine you don't
 control,
  there is a 99.99%
  chance that server admin has the Invoker disabled
  and won't enable it.  Then
  what will you do?  Mapping your servlet in web.xml
  will work all the time,
  everywhere.
  
  John
  
  -Original Message-
  From: Mark Liu [mailto:[EMAIL PROTECTED]]
  Sent: Saturday, January 25, 2003 11:29 PM
  To: Tomcat Users List
  Subject: RE: A follow-up of my last post
  
  
  I put the following segment of code in my x509
  web.xml:
  
  servlet-mapping
  servlet-nameinvoker/servlet-name
  url-pattern/servlet/*/url-pattern
  /servlet-mapping
  
  And then it starts to work.  But you said that
 this
  is
  not safe, right?
  
  
  
  --- Turner, John [EMAIL PROTECTED] wrote:
   
   That's why it isn't working.
   
   As I said, the Invoker servlet is disabled by
   default in recent versions of
   4.1.x due to security reasons.  It is enabled in
  the /examples
   application.
   
   You can:
   
   1) map your servlet(s) in your application's
  web.xml
   file and leave the
   Invoker servlet disabled
   
   OR
   
   2) leave your web.xml alone and enable the
 Invoker
   servlet.
   
   If you choose #2, and you're going into
  production,
   you should understand
   the security issues before you go live.  If your
  web application may
   be deployed on a server that you don't control,
  you
   should choose #1, since
   that will work all the time.
   
   John
   
   -Original Message-
   From: Mark Liu [mailto:[EMAIL PROTECTED]]
   Sent: Saturday, January 25, 2003 12:44 PM
   To: Tomcat Users List
   Subject: RE: A follow-up of my last post
   
   
   Virtually, I don't have anything for my /x509
   web.xml.
   
   Here is my /x509 web.xml:
   
    beginning of x509 web.xml *
   
   ?xml version=1.0 encoding=ISO-8859-1?
   
   !DOCTYPE web-app
   PUBLIC -//Sun Microsystems, Inc.//DTD Web
   Application 2.3//EN
   http://java.sun.com/dtd/web-app_2_3.dtd;
   
   web-app
 display-nameX509 Project/display-name
 description
X509 Public Key Certificate Authentication
 /description
   /web-app
   
    end of x509 web.xml *
   
   I remember in earlier versions of Tomcat, any
 web application should 
   work just fine with a primitive web.xml like so:
   
   *** beginning of a primitive web.xml 
   
   ?xml version=1.0 encoding=ISO-8859-1?
   
   !DOCTYPE web-app
   PUBLIC -//Sun Microsystems, Inc.//DTD Web
   Application 2.3//EN
   http://java.sun.com/dtd/web-app_2_3.dtd;
   
   web-app
   /web-app
   
   *** end of a primitive web.xml 
   
   Is the servlet mapping a new Tomcat rule?  Is
  there
   any way I can have my web application work
 without
   mapping each servlet?
   
   Thanks.
   
   Mark
   
   --- Turner, John [EMAIL PROTECTED] wrote:

Do you have a mapping for the servlet(s) in
 your
   application's web.xml
file?

The Invoker servlet is disabled by default in
   recent
versions of 4.1.x for
security reasons, but it is enabled in the
   /examples
web.xml.

John


-Original Message-
From: Mark Liu [mailto:[EMAIL PROTECTED]]
Sent: Saturday, January 25, 2003 3:09 AM
To: [EMAIL PROTECTED]
Subject: A follow-up of my last post


Also please note that I have changed Marty
  Hall's
ServletUtilities.java and ShowParameters.java
   according my system.

 
=== message truncated ===


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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

Tomcat 4.1.19 java.lang.ClassNotFoundException: org.apache.catalina.core.StandardServer

2003-01-26 Thread alexj
Hi,

After I upgrade my jdk to be 1.4.1 and update my JAVA_HOME
I could not anymore connect to Tomcat. I got the following error message :

Using CATALINA_BASE:   c:\tomcat
Using CATALINA_HOME:  c:\tomcat
Using CATALINA_TMPDIR: c:tomcat\temp
Using JAVA_HOME:   C:\j2sdk1.4.1
Begin event threw exception
java.lang.ClassNotFoundException: org.apache.catalina.core.StandardServer
 at java.net.URLClassLoader$1.run(URLClassLoader.java:198)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
 at
org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:154
)
 at org.apache.commons.digester.Digester.startElement(Digester.java:964)
 at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1490)
 at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500)
 at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
 at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
 at org.apache.commons.digester.Digester.parse(Digester.java:1216)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:449)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Catalina.start: java.lang.ClassNotFoundException:
org.apache.catalina.core.StandardServer
java.lang.ClassNotFoundException: org.apache.catalina.core.StandardServer
 at
org.apache.commons.digester.Digester.createSAXException(Digester.java:1843)
 at
org.apache.commons.digester.Digester.createSAXException(Digester.java:1865)
 at org.apache.commons.digester.Digester.startElement(Digester.java:967)
 at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1490)
 at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500)
 at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
 at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
 at org.apache.commons.digester.Digester.parse(Digester.java:1216)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:449)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

Thanks for you help.


--
Alexandre Jaquet
-
-BEGIN GEEK CODE BLOCK-
Version: 3.12
GCM d+ s: a-- C U*+ P L--- E--- W+++ N+++ o K w+
O M-- V-- PS+++ PE+++ Y+++ PGP--- 5-- X R* tv b DI--- D
G++ e* h++ r% y*
--END GEEK CODE BLOCK--


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




Re: hi,I need your hand to get rid of my question

2003-01-26 Thread Paul Yunusov
On Saturday 25 January 2003 10:45 pm, zhaoyw wrote:
 Dear:
 I am a programer ,my web Container is tomcat 4.1.12,when i develope my
 project,i usually change my class,these classes are used by some jsp
 pages,so when i launch my web application,i look the jsp page result in the
 IE explore,but now i need to change my class to meet my new need,i want to
 see the new result of the jsp,however,the tomcat can not response my change
 immediately ,fortunately there is a reloadable value configed in the file
 server.xml,the default reloading interval is 15 seconds,i want to
 decrease the interval to 1 second to see the new jsp as soon as
 possible,what shall i do ? sincerly,yours
 [EMAIL PROTECTED]

This should help:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/manager-howto.html

Paul

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




RE: How to get IP address Tomcat bound to.

2003-01-26 Thread Mark
Good question...and I don't know the answer.  I've never deployed on a host 
with more than one IP address.  Out of curiousity, any idea what IP address 
might be returned?

At 1/26/2003 02:31 PM, you wrote:

How does this help if there are multiple IP addresses on a single host?

John


-Original Message-
From: Kirill Maximov [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 26, 2003 2:04 PM
To: Tomcat Users List
Subject: Re: How to get IP address Tomcat bound to.


On  0, Mark [EMAIL PROTECTED] wrote:
 At 1/26/2003 04:57 PM, you wrote:
   I have a programming question - how can I get
   the IP address the TomCat is bound to ? Is this possible?
 
   I suppose, I have to use some internal TomCat API here ..
 
   With kind regards,
   Kirill Maximov

 Not sure if I understand your question, but will this work for you
 from w/i
 a servlet or other class running under Tomcat?

String ipaddr = InetAddress.getLocalHost().getHostAddress();

  Thanks a lot, that's what I was looking for!



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




Re: URL alias

2003-01-26 Thread Craig R. McClanahan


On Sun, 26 Jan 2003, Paul Phillips wrote:

 Date: Sun, 26 Jan 2003 12:08:32 -0600
 From: Paul Phillips [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: URL alias

 I have a web application that I have written that uses a controller
 servlet.  The controller fires off event handlers that process the various
 forms submitted by the user in various parts of the webapp.

 I am also using container managed security (forms based).

 A typical URL will look like this:

 http://myhost:8080/webappname/controller?event=login

 or event=whatever, depending on where they are in the webapp.

 Just for convenience sake, I would like to make an alias for login purposes
 that looks something like:

 http://myhost:8080/webappname/login

 I can't figure out how to map that to my controller servlet AND at the same
 time include the parameter event=login.

 The servlet-mapping configuration in web.xml will allow me to map login -
 controller, but how do I throw in the parameter and its value?


You cannot map a security constraint to a pattern like this (including the
query parameter) - the closest you could come would be mapping to the
/controller part, but that would mean all events have the same security
constraint -- most likely not what you want.

Instead, consider mapping your controller servlet to the pattern
/controller/* and changing the way your event selection works.  Make the
URL look like this instead:

  http://myhost:8080/webappname/controller/login

and you'll be able to define different security constraints to different
events.  In your controller servlet, you retrieve the selected event by
calling request.getPathInfo().

A third alternative would be to use extension mapping (in Struts-based
apps, a common convention is to map the *.do pattern because it implies
go DO something).  Then, the URL would be something like:

  http://myhost:8080/webappname/login.do

and grab the event name by calling request.getServletPath() and stripping
the extension off.

 Thanks
 Paul Phillips


Craig McClanahan


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




Re: How to get IP address Tomcat bound to.

2003-01-26 Thread Craig R. McClanahan


On Sun, 26 Jan 2003, Kirill Maximov wrote:

 Date: Sun, 26 Jan 2003 16:57:17 +0300
 From: Kirill Maximov [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED],
  [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: How to get IP address Tomcat bound to.

   I have a programming question - how can I get
   the IP address the TomCat is bound to ? Is this possible?

   I suppose, I have to use some internal TomCat API here ..


How Tomcat binds is based on the parameters to the attributes of your
Connector element.  By default, it will bind on all attached IP
addresses, but you can limit it to one by using an address attribute on
the Connector -- see the config docs for more:

  http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/

There is no portable API to retrieve this information from a servlet,
however.

On a given request, you can ask which address the request was received on
by calling request.getServerAddr().

   With kind regards,
   Kirill Maximov


Craig


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




Re: JWSDP and Tomcat

2003-01-26 Thread Craig R. McClanahan


On Sun, 26 Jan 2003, Paul Carpenter wrote:

 Date: Sun, 26 Jan 2003 19:15:49 +0900
 From: Paul Carpenter [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: JWSDP and Tomcat

 HI all

 I've been playing with the downloads of the Java Web Services Developer
 Pack. This package has lots of stuff in it, but older than the current
 individual release of Tomcat...or so it seems. The documentation

 I've downloaded and installed JWSDP-1_0_01 - it would appear to have
 Tomcat 4.1 - but not 4.1.12, as the manager tool is missing (well, very
 different). I think the JWSDP has Tomcat 4.1.0 (?) whereas the newer
 versions (e.g. 4.1.12 or .4.1.18) have the latest bits'n'pieces.

 QUESTION: How do I overwrite the installation of Tomcat in the JWSDP
 with whatever the latest release is?


My advice would be don't do that.  The software components of JWSDP are
tested as an integrated whole, and all you're likely to do is make things
stop working, but also make it impossible for anyone to help you.

 Can I simply dump the jakarta-tomcat-4.1.nn directories right on top of
 the JWSDP files?


 Thanks
 Paul


Craig


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




Re: web.xml and ip-based virtual hosts

2003-01-26 Thread Craig R. McClanahan


On Sun, 26 Jan 2003, Marcin Gryszkalis wrote:

 Date: Sun, 26 Jan 2003 20:32:04 +0100
 From: Marcin Gryszkalis [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: web.xml and ip-based virtual hosts

 Hi
 I have Tomcat 4.1.x
 in configuration there's server block that contains two
 service blocks (I have 2 ip/port-based virtual hosts).

 1. How can I specify in application's web.xml which service
 should it be deployed to?


You can't make this determination inside the web.xml file -- instead, the
determination is made in one of two ways, depending on how you've
configured the app in server.xml:

* If you created a Context element for your webapp,
  it belongs to the Service that encloses the Host
  element you put it inside.

* If you didn't create  Context element (because you're
  relying on the automatic deployment feature), you will
  note that each Host element has an appBase parameter.
  The webapp will belong to the Service that surrounds
  the Host element whose appBase directory you put the
  webapp inside.

 2. Can I have ip-based virtual hosts with one serice
 and multiple connector? I guess it's not possible
 because there can be only one DefaultContext per Host
 (and only one Host/Engine per service).


The DefaultContext element does not define an actual webapp - it defines
a bunch of default settings for automatically deployed webapps.  The
default settings are per-host.

However, it is perfectly legal to have more than one Connector per
Service.

The overall structure of the server.xml file lets you do pretty much
any combination of things you want to do.  Consider the following, for
example (only the important parts called out):

  Server ...

Service name=Tomcat-Standalone

  Connector port=8080 .../

  Connector port=8081 .../

  Engine name=Standalone defaultHost=localhost

Host name=localhost appBase=webapps
  ... Optional DefaultContext element ...
  ... Optional Context elements ...
/Host

  /Engine

/Service


Service name=My Own Service ...

  Connector port=8082 .../

  Connector port=8083 .../

  Engine name=First Service Engine

Host name=www.mycompany.com appBase=mycompany
  ... Optional DefaultContext element ...
  ... Optional Context elements ...
/Host

Host name=www.yourcompany.com appBase=/foo/yourcompany
  ... Optional DefaultContext element ...
  ... Optional Context elements ...
/Host

  /Engine

/Service

  /Server

You might recognize the first Service entry as pretty much what the
default Tomcat configuration looks like.  It has the following
characteristics:

* All incoming requests on port 8080 and 8081 are processed here.

* No matter what server name or IP address is used on the request,
  they are all processed by the localhost Host element, as long
  as the DNS addresses resolve to this server.

* You can optionally nest a DefaultContext element to define the
  characteristics of all automatically deployed webapps for this host.

* All web applications in the $CATALINA_HOME/webapps directory
  are automatically deployed at startup time.

* In addition, you can nest Context elements with a docBase that
  points at your application's directory or WAR file.  Relative
  pathnames are resolved against the appBase (in this case, against
  $CATALINA_HOME/webapps), while absolute pathnames tell Tomcat
  exactly where to find your app.

The second Service entry is quite a bit different.  It has the following
characteristics:

* All incoming requests on port 8082 and 8083 are processed here.

* Only host names www.mycompany.com and www.yourcompany.com are
  recognized (because there is no defaultHost element on this Engine).
  Any request for a different hostname that is received on these
  ports will be rejected.

* For each host, you can optionally nest a DefaultContext element to
  define the characteristics of all automatically deployed webapps
  for this host.

* All web applications in the $CATALINA_HOME/mycompany directory
  will be automatically deployed for the www.mycompany.com host
  (relative paths are resolved against $CATALINA_HOME).

* All web applications in the /foo/yourcompany directory
  will be automatically deployed for the www.yourcompany.com host
  (absolute pathnames are legal as well).

* In addition, you can nest Context elements under either Host
  for additional webapps for that host, with a docBase attribute
  defining where the webapp is on your filesystem.  Absolute paths
  are resolved relative to the appBase directory for your host,
  while absolute paths (by definition) tell Tomcat where the webapp
  files are.

For further information about all of the elements you can create in
server.xml, see the Configuration Reference information, included in your
Tomcat install or available online:

  http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/

 

Re: JNDI jdbc resources

2003-01-26 Thread Peng Tuck Kwok
Let's have a look at your web.xml as well. Might be helpful.

Paul Carpenter wrote:

Hi All

I've scoured the list and got so close, yet so far from making the jdbc  
stuff work. With some help from Manav and other postings, this is what  
i see. can anyone solve the riddle?

Please see the cut'n'pastes below. I draw you attention to the fact  
that the connection looks good right up to the point where it's used -  
like the DataSource object is good (because ds != null is true), yet  
the getConnection method throws the often seen Cannot load JDBC driver  
class 'null' error.

I know this is very close...what's missing?

I'm sure my jars are in the right place, as a regular forClass approach  
in the same webapp works with no problems?


Thanks
Paul

tomcat 4.1.12, Mac OSX 10.2.3

Output from my test servlet:
Simple lookup test :
dbName : org.apache.commons.dbcp.BasicDataSource@25debb
list() on /comp/env Context :
Binding : jdbc: org.apache.naming.NamingContext
listBindings() on /comp/env Context :
Binding : jdbc:  
org.apache.naming.NamingContext:org.apache.naming.NamingContext@41f80c
list() on full Context :
Binding : DBmultileague: org.apache.commons.dbcp.BasicDataSource
listBindings() on full Context today:
Binding : DBmultileague:  
org.apache.commons.dbcp.BasicDataSource:org.apache.commons.dbcp.BasicDat 
aSource@25debb
Connecting1 : Connecting2 : Connecting3 : Query1 :

The relevant servlet code;
try {
out.println(list() on full Context : );
NamingEnumeration enum2 = ctx.list(java:/comp/env/jdbc/);
while (enum2.hasMoreElements()) {
out.print(Binding : );
out.println(enum2.nextElement().toString());
}
out.println(listBindings() on full Context today: );
enum2 = ctx.listBindings(java:/comp/env/jdbc/);
while (enum2.hasMoreElements()) {
out.print(Binding : );
out.println(enum2.nextElement().toString());
}
} catch (NamingException e) {
out.println(JNDI lookup failed :  + e);
}
try{
Context ctx2 = new InitialContext();
out.print(Connecting1 : );
 Context envCtx2 = (Context)  
ctx2.lookup(java:/comp/env/);
out.print(Connecting2 : );
 DataSource ds = (DataSource)  
envCtx2.lookup(jdbc/DBmultileague);
out.print(Connecting3 : );

  if (ds != null) {
out.print(Query1 : );
Connection conn = ds.getConnection();
out.print(Query2 : );

The context/resource definition:
Context path=/DBmultileague-0.1-dev docBase=DBmultileague-0.1-dev  
debug=5 reloadable=true  naming=true crossContext=true
   
Logger className=org.apache.catalina.logger.FileLogger
prefix=localhost_DBmultileague_log. suffix=.txt  
timestamp=true/
   
Resource name=jdbc/DBmultileague auth=Container  
type=javax.sql.DataSource/

ResourceParams name=jdbc/DBmultileague
ParameternamemaxIdle/namevalue3000/value/Parameter
ParameternamemaxActive/namevalue10/value/Parameter
ParameternamemaxWait/namevalue10/value/Parameter
Parameternameusername/namevaluesa/value/Parameter
Parameternamepassword/namevalue/value/Parameter
Parameter
namefactory/name
valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/Parameter
  Parameter
namedriverClassName/name
valuecom.sybase.jdbc2.jdbc.SybDriver/value
/Parameter
Parameter
nameurl/name
valuejdbc:sybase:Tds:PowerBookPaul:11222/multiLeague/value
/Parameter
ParameternameinitialPoolSize/namevalue2/value/Parameter
/ResourceParams





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




TC HTTP Connector

2003-01-26 Thread Jason Jonas - ATTBI
Does the HTTP connector for Tomcat 4.1.x support server-side includes?
If so, where can I find the documentation regarding configuration?
Thanks a bunch.

Jason



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




Re: Error: 500 / Internal Servlet Error:

2003-01-26 Thread Pierre-Philipp Braun
oh there is a little difference with the error message on server-side
trace though, especially at the beginning. Here is the server-side message:


2003-01-27 02:16:42 - Ctx(  ): Exception in: R(  + /helloworld.jsp + null) - 
javax.servlet.ServletException: try to access method 
org/apache/tomcat/logging/Logger.realLog(Ljava/lang/String;)V from class 
org/apache/jasper/servlet/JspServlet
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java)
at org.apache.tomcat.core.Handler.service(Handler.java)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java)
at 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java)
at java.lang.Thread.run(Thread.java:484)
Root cause:
java.lang.IllegalAccessError: try to access method 
org/apache/tomcat/logging/Logger.realLog(Ljava/lang/String;)V from class 
org/apache/jasper/servlet/JspServlet
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java)
at org.apache.tomcat.core.Handler.service(Handler.java)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java)
at 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java)
at java.lang.Thread.run(Thread.java:484)


According to the FAQ, i looked at the JSP code... but it should be ok
(afaik, since it's my forst JSP code).

Any advice would be appreciated.
Thanks in advance.

BTW, how to get all those messages into directly into a log file?


-- 
Pierre-Philipp

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




using ajp without tomcat

2003-01-26 Thread James Chang
Hi:

I am trying to get ajp to work for other jsp/servlet engines other then
tomcat.   Right now I am working on IIS with isapi_redirector2.dll and
listening on port 8009 with my own ajp listener.

I downloaded isapi_redirector2.dll from:
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0.
2/bin/win32/

set up the registry settings and use the simple works2.properties file
below.  IIS shows the dll is loaded correctly, but when I try to request to
http://localhost/examples/x , the isapi_redirector2.dll doesn't send any
request to port 8009.

Could anyone tell me what is wrong with my configuration file?  Or is
the dll somehow need tomcat to work (I have set it to use socket, but maybe
the dll needs some configuration file or shared library from tomcat)??

Any pointer will be usefull.
Thanks!


the registry I used is:
REGEDIT4

[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi
Redirector\2.0]
serverRoot=d:\\tm
extensionUri=/jakarta/isapi_redirector2.dll
workersFile=D:\\shared\\iisredir\\workers2.properties
authComplete=0
threadPool=5

All strings are properly installed.


My workers2.properties file contains:

# Define the communication channel
[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
tomcatId=localhost:8009

# Map the Tomcat examples webapp to the Web server uri space
[uri:/examples/*]
info=Map the whole webapp



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




Re: JNDI jdbc resources

2003-01-26 Thread shawn
What about server.xml?

  try{
  Context ctx2 = new InitialContext();
  out.print(Connecting1 : );
   Context envCtx2 = (Context)  
  ctx2.lookup(java:/comp/env/);
  out.print(Connecting2 : );
   DataSource ds = (DataSource)  
  envCtx2.lookup(jdbc/DBmultileague);
  out.print(Connecting3 : );
  
if (ds != null) {
  out.print(Query1 : );
  Connection conn = ds.getConnection();
  out.print(Query2 : );

That part worked for me too.  Is there an advantage to breaking your
Context into two pieces.  Anyway, I tried it like that with no problem.

Shawn


On Mon, 2003-01-27 at 09:21, Peng Tuck Kwok wrote:
 Let's have a look at your web.xml as well. Might be helpful.
 
 Paul Carpenter wrote:
  Hi All
  
  I've scoured the list and got so close, yet so far from making the jdbc  
  stuff work. With some help from Manav and other postings, this is what  
  i see. can anyone solve the riddle?
  
  Please see the cut'n'pastes below. I draw you attention to the fact  
  that the connection looks good right up to the point where it's used -  
  like the DataSource object is good (because ds != null is true), yet  
  the getConnection method throws the often seen Cannot load JDBC driver  
  class 'null' error.
  
  I know this is very close...what's missing?
  
  I'm sure my jars are in the right place, as a regular forClass approach  
  in the same webapp works with no problems?
  
  
  Thanks
  Paul
  
  tomcat 4.1.12, Mac OSX 10.2.3
  
  Output from my test servlet:
  Simple lookup test :
  dbName : org.apache.commons.dbcp.BasicDataSource@25debb
  list() on /comp/env Context :
  Binding : jdbc: org.apache.naming.NamingContext
  listBindings() on /comp/env Context :
  Binding : jdbc:  
  org.apache.naming.NamingContext:org.apache.naming.NamingContext@41f80c
  list() on full Context :
  Binding : DBmultileague: org.apache.commons.dbcp.BasicDataSource
  listBindings() on full Context today:
  Binding : DBmultileague:  
  org.apache.commons.dbcp.BasicDataSource:org.apache.commons.dbcp.BasicDat 
  aSource@25debb
  Connecting1 : Connecting2 : Connecting3 : Query1 :
  
  The relevant servlet code;
  try {
  out.println(list() on full Context : );
  NamingEnumeration enum2 = ctx.list(java:/comp/env/jdbc/);
  while (enum2.hasMoreElements()) {
  out.print(Binding : );
  out.println(enum2.nextElement().toString());
  }
  out.println(listBindings() on full Context today: );
  enum2 = ctx.listBindings(java:/comp/env/jdbc/);
  while (enum2.hasMoreElements()) {
  out.print(Binding : );
  out.println(enum2.nextElement().toString());
  }
  } catch (NamingException e) {
  out.println(JNDI lookup failed :  + e);
  }
  try{
  Context ctx2 = new InitialContext();
  out.print(Connecting1 : );
   Context envCtx2 = (Context)  
  ctx2.lookup(java:/comp/env/);
  out.print(Connecting2 : );
   DataSource ds = (DataSource)  
  envCtx2.lookup(jdbc/DBmultileague);
  out.print(Connecting3 : );
  
if (ds != null) {
  out.print(Query1 : );
  Connection conn = ds.getConnection();
  out.print(Query2 : );
  
  The context/resource definition:
  Context path=/DBmultileague-0.1-dev docBase=DBmultileague-0.1-dev  
  debug=5 reloadable=true  naming=true crossContext=true
 
  Logger className=org.apache.catalina.logger.FileLogger
  prefix=localhost_DBmultileague_log. suffix=.txt  
  timestamp=true/
 
  Resource name=jdbc/DBmultileague auth=Container  
  type=javax.sql.DataSource/
  
  ResourceParams name=jdbc/DBmultileague
  ParameternamemaxIdle/namevalue3000/value/Parameter
  ParameternamemaxActive/namevalue10/value/Parameter
  ParameternamemaxWait/namevalue10/value/Parameter
  Parameternameusername/namevaluesa/value/Parameter
  Parameternamepassword/namevalue/value/Parameter
  Parameter
  namefactory/name
  valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
  /Parameter
Parameter
  namedriverClassName/name
  valuecom.sybase.jdbc2.jdbc.SybDriver/value
  /Parameter
  Parameter
  nameurl/name
  valuejdbc:sybase:Tds:PowerBookPaul:11222/multiLeague/value
  /Parameter
  ParameternameinitialPoolSize/namevalue2/value/Parameter
  /ResourceParams
  
  
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
-- 
shawn [EMAIL 

Re: Tomcat 4.1.19 java.lang.ClassNotFoundException: org.apache.catalina.core.StandardServer

2003-01-26 Thread Jacob Kjome

Are you running Tomcat as a Service?  If so, you need to uninstall the 
service and reinstall it in order to update the service with the new path 
to JAVA_HOME and any other paths that might have changed.

http://www.mattkelli.com/tech/tomcat/ntservice.htm

Jake

At 10:07 PM 1/26/2003 +0100, you wrote:
Hi,

After I upgrade my jdk to be 1.4.1 and update my JAVA_HOME
I could not anymore connect to Tomcat. I got the following error message :

Using CATALINA_BASE:   c:\tomcat
Using CATALINA_HOME:  c:\tomcat
Using CATALINA_TMPDIR: c:tomcat\temp
Using JAVA_HOME:   C:\j2sdk1.4.1
Begin event threw exception
java.lang.ClassNotFoundException: org.apache.catalina.core.StandardServer
 at java.net.URLClassLoader$1.run(URLClassLoader.java:198)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
 at
org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:154
)
 at org.apache.commons.digester.Digester.startElement(Digester.java:964)
 at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1490)
 at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500)
 at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
 at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
 at org.apache.commons.digester.Digester.parse(Digester.java:1216)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:449)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Catalina.start: java.lang.ClassNotFoundException:
org.apache.catalina.core.StandardServer
java.lang.ClassNotFoundException: org.apache.catalina.core.StandardServer
 at
org.apache.commons.digester.Digester.createSAXException(Digester.java:1843)
 at
org.apache.commons.digester.Digester.createSAXException(Digester.java:1865)
 at org.apache.commons.digester.Digester.startElement(Digester.java:967)
 at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1490)
 at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500)
 at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
 at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
 at org.apache.commons.digester.Digester.parse(Digester.java:1216)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:449)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

Thanks for you help.


--
Alexandre Jaquet
-
-BEGIN GEEK CODE BLOCK-
Version: 3.12
GCM d+ s: a-- C U*+ P L--- E--- W+++ N+++ o K w+
O M-- V-- PS+++ PE+++ Y+++ PGP--- 5-- X R* tv b DI--- D
G++ e* h++ r% y*
--END GEEK CODE BLOCK--


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



Re: TC HTTP Connector

2003-01-26 Thread Jacob Kjome

You really need to check the Tomcat docs before posting questions like 
this.  It is pretty well spelled out there.

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/ssi-howto.html

Jake

At 07:07 PM 1/26/2003 -0600, you wrote:
Does the HTTP connector for Tomcat 4.1.x support server-side includes?
If so, where can I find the documentation regarding configuration?
Thanks a bunch.

Jason



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



Connection pooling for MS Sql server

2003-01-26 Thread Venkat
Hi,
I am able to create a connection poll for ms acess and itz working fine.Now
i want to create a connection poll for MsSql server.

For MS access the server.xml looks like this.

!--1/23/2003 Added By  venkat
   The following block of code add the datasource for
connecting
MS Acess database using Connector JDBC Driver --

Context path=/test docBase=C:\Test\test
debug=5 reloadable=true crossContext=true

Logger className = org.apache.catalina.logger.FileLogger
prefix=localhost_DBTest_log. suffix=.txt
timestamp=true/
Resource name=jdbc/TestDB
auth=Container
type=javax.sql.DataSource/

ResourceParams name = jdbc/TestDB
parameter
  namefactory/name

valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/parameter

!--Maximum number of dBconnections in pool.  Make sure you
configure your
MS Acess max_connection large enough to handle all you
connections--

parameter
  namemaxActive/name
  value100/value
/parameter

parameter
  namepassword/name
  value/value
/parameter

!-- Class name for JDBC driver --

parameter
  namedriverClassName/name
  valuesun.jdbc.odbc.JdbcOdbcDriver/value
/parameter

!--  The JDBC connection url for connecting to your MS Acess db
if the connection closes then auto connect --

parameter
  nameurl/name
  valuejdbc:odbc:Test/value
/parameter

/ResourceParams

/Context

My problem is i have to specify username and password for MS Sql server.
Password i can specify Here
   parameter
  namepassword/name
  value/value
/parameter

But Where to specify  the user name?

Thanks in advance.

regards
venkat


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




Re: Connection pooling for MS Sql server

2003-01-26 Thread Peng Tuck Kwok

My problem is i have to specify username and password for MS Sql server.
Password i can specify Here
   parameter
		  namepassword/name
		  value/value
		/parameter

But Where to specify  the user name?

You can specify the username as another parameter.

parameter
nameusername/name
value/value
/parameter



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




Re: Tomcat 5 dist: servlet/* - 404

2003-01-26 Thread Jacob Kjome

I haven't checked with the latest Tomcat-5 and can't verify your findings, 
but there is a bug out where the admin app has no class files.  Maybe 
something like that is happening with the examples.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14975

Jake

At 10:05 PM 1/25/2003 +0100, you wrote:
I just installed the alpha version of Tomcat 5 - while JSPs (i.e.
/jsp-examples/) do work properly, servlet/* (/servlets-examples/) does not:
404.
--
http://nitwit.de/

Sixty years ago I knew everything; now I know nothing; education is a
progressive discovery of our own ignorance. - Will Durant



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



Class Loading problem on Tomcat 4.0.4, JDK 1.4.1, Debian

2003-01-26 Thread Robert Kent
Hi -

I'm having trouble getting classes loaded properly.  I have a workaround,
but I think the problem is more endemic and is (at least potentially)
preventing other resources from loading properly.

I'm running Tomcat 4.0.4 on Debian, with JDK 1.4.1 underneath.  I have
gotten all the tomcat examples running properly, so I proceded to go ahead
with my project.  Here's the top of a JSP file:

%@ page contentType=text/html %
%@ page import=ShopBean %
%@ page import=org.exolab.castor.* %
!-- Bean initialization throws exceptions... --

The fact that the bean throws exceptions is unsurprising, since I just
started writing it.  But they were all turning up like this:

java.lang.NoClassDefFoundError: org/apache/jasper/runtime/JspException

This means that the JspException class itself can't be found, right?  That's
what I thought, so I checked to make sure the jasper jars were installed
(though they must be since the examples are running), and sure enough:

/usr/share/tomcat4/lib/jasper-runtime.jar
/usr/share/tomcat4/lib/jasper-compiler.jar

( /usr/share/tomcat4 is my CATALINA_HOME, as established in the debian
'tomcat4' package installation).  Frustrated, I tried adding this line at
the top of my JSP:

%@ page import=org.apache.jasper.runtime.JspException %

... and it worked, to the extent that the JspException was thrown and I was
able to see the real exception my bean was throwing.  Certainly one
shouldn't have to explicitly include the libraries like this?  Can anyone
help enlighten me as to what's wrong with my class path, or class loader?
I'd also be more than happy to RTFM, if someone can direct me to it.


Thanks for any help,
_

 Robert Kent  -  (617) 413-3510
 http://www.rjk-comm.com/
_



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




Re: Tomcat 4.1.19 java.lang.ClassNotFoundException: org.apache.catalina.core.StandardServer

2003-01-26 Thread alexj
No isn't running as a nt service.


--
Alexandre Jaquet
-
-BEGIN GEEK CODE BLOCK-
Version: 3.12
GCM d+ s: a-- C U*+ P L--- E--- W+++ N+++ o K w+
O M-- V-- PS+++ PE+++ Y+++ PGP--- 5-- X R* tv b DI--- D
G++ e* h++ r% y*
--END GEEK CODE BLOCK--

- Original Message -
From: Jacob Kjome [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, January 27, 2003 5:15 AM
Subject: Re: Tomcat 4.1.19 java.lang.ClassNotFoundException:
org.apache.catalina.core.StandardServer



 Are you running Tomcat as a Service?  If so, you need to uninstall the
 service and reinstall it in order to update the service with the new path
 to JAVA_HOME and any other paths that might have changed.

 http://www.mattkelli.com/tech/tomcat/ntservice.htm

 Jake

 At 10:07 PM 1/26/2003 +0100, you wrote:
 Hi,
 
 After I upgrade my jdk to be 1.4.1 and update my JAVA_HOME
 I could not anymore connect to Tomcat. I got the following error message
:
 
 Using CATALINA_BASE:   c:\tomcat
 Using CATALINA_HOME:  c:\tomcat
 Using CATALINA_TMPDIR: c:tomcat\temp
 Using JAVA_HOME:   C:\j2sdk1.4.1
 Begin event threw exception
 java.lang.ClassNotFoundException: org.apache.catalina.core.StandardServer
   at java.net.URLClassLoader$1.run(URLClassLoader.java:198)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
   at

org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:15
4
 )
   at org.apache.commons.digester.Digester.startElement(Digester.java:964)
   at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1490)
   at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500)
   at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
   at
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
   at org.apache.commons.digester.Digester.parse(Digester.java:1216)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:449)
   at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
   at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3
9
 )
   at

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
l
 .java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
 Catalina.start: java.lang.ClassNotFoundException:
 org.apache.catalina.core.StandardServer
 java.lang.ClassNotFoundException: org.apache.catalina.core.StandardServer
   at

org.apache.commons.digester.Digester.createSAXException(Digester.java:1843)
   at

org.apache.commons.digester.Digester.createSAXException(Digester.java:1865)
   at org.apache.commons.digester.Digester.startElement(Digester.java:967)
   at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1490)
   at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500)
   at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
   at
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
   at org.apache.commons.digester.Digester.parse(Digester.java:1216)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:449)
   at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
   at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3
9
 )
   at

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
l
 .java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
 
 Thanks for you help.
 
 
 --
 Alexandre Jaquet
 -
 -BEGIN GEEK CODE BLOCK-
 Version: 3.12
 GCM d+ s: a-- C U*+ P L--- E--- W+++ N+++ o K w+
 O M-- V-- PS+++ PE+++ Y+++ PGP--- 5-- X R* tv b DI--- D
 G++ e* h++ r% y*
 --END GEEK CODE BLOCK--
 
 
 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



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




mod webapp

2003-01-26 Thread Bryan A. Zimmer
Hello,

I am trying to configure Tomcat to work with Apache on a Linux box running Redhat 8.0. 
Tomcat itself seemed fine, as does httpd (Apache) by itself, but when I add the 
mod_webapp.so lines to the httpd.conf file, I keep getting messages like:
undefined symbol: ap_table_get.

Can anyone shed light on this frustrating problem?

Thanks.




Fw: Help for integration between Tomcat 4.1 and Apache 2.0

2003-01-26 Thread Tang Dong

- Original Message - 
From: Tang Dong 
To: [EMAIL PROTECTED] 
Sent: Sunday, January 26, 2003 11:42 PM
Subject: Help for integration between Tomcat 4.1 and Apache 2.0


Hi, I get problem when try to integrate tomcat 4.1 with apache 2.0. The log file says:

[Sun Jan 26 23:33:07 2003] proj2003 rabi 0.00
[Sun Jan 26 23:33:08 2003] proj2003 rabi 0.00
[Sun Jan 26 23:33:08 2003] proj2003 rabi 0.00

in which proj2003 is my worker. and rabi is my host name.

Also I configured the bother http.conf of apache and worker.properties according 
to the manual. In the files, I add:
#-
# HTTP.CONF
# 
# The following is added for integration with TomCat
#
# Load mod_jk module
LoadModule jk_module d:/Proj2003/Apache2.04/Apache2/modules/mod_jk.so

# Declare the module for IfModule directive
# AddModule mod_jk.c

# Where to find workers.properties
JkWorkersFile d:/Proj2003/Apache2.04/Apache2/conf/workers.properties

# Where to put jk logs
JkLogFile d:/Proj2003/Apache2.04/Apache2/logs/mod_jk.log

# Set the jk log level [debug/error/info]
JkLogLevel error 

# Select the log format
JkLogStampFormat [%a %b %d %H:%M:%S %Y]  

# JkOptions indicate to send SSL KEY SIZE, 
JkOptions -ForwardKeySize -ForwardURICompat -ForwardDirectories 

# JkRequestLogFormat set the request format 
JkRequestLogFormat %w %V %T 

# Send servlet to worker named proj2003
JkMount /*/servlet/ proj2003

# Send JSPs to worker named proj2003
JkMount /*.jsp proj2003

JkMount /examples/servlet/* proj2003
JkMount /examples/*.jsp proj2003

#


#
# worker.properties
# Define 1 real worker using ajp13
worker.list=proj2003 

# Set properties for proj2003 (ajp13)
worker.proj2003.type=ajp13 
worker.proj2003.host=localhost 
worker.proj2003.port=11009 
worker.proj2003.lbfactor=50 
worker.proj2003.cachesize=10 
worker.proj2003.cache_timeout=600 
worker.proj2003.socket_keepalive=1 
worker.proj2003.socket_timeout=300 

 
Can you give me any suggestion to overcome this problem. Thanks a lot.
 



Re: Tag object reuse (pooling) in jsp 2.0?

2003-01-26 Thread Joe Tomcat
On Thu, 2003-01-23 at 04:02, Felipe Schnack wrote:
   I don't know, to me seems a good idea to pool tag instances. For people
 like me, that don't write a single line os scriptlet code, millions of tags 
 are created and destroyed... seems to me that we are freeing a lot of
 work from gc... gc is a resource intensive process.

Do you have any evidence of that?  gc was resource-intensive on the
original JVMs, but on modern ones, it is very fast.  Either you manage
your own memory, or you have a gc do it.  If we wanted to manage our own
memory we would still be using C++.  It turns out that computers are
much better at handling memory management than human programmers are.  I
would be very happy to trade a little bit of performance for a lot of
security, especially on applications like web servers.

   Hm... I don't know, but the way tags receive their fields now (getters and
 setters) is good for me. Receiving lots of attributes in a Map don't look
 clean for me... much like get an array of objects, who will know what
 he/she will find in each index? 
   Your idea is to have field name as the keys in the map? 

Yes, that's exactly my idea.  Setter methods are generally not a good
idea.  Immutable objects have many many advantages: They are completely
thread-safe, and they tend to be easier to debug and work with, because
if you can ensure that they are constructed in a correct state, they
will always remain in a correct state.  This is a little
counter-intuitive, but there are performance benefits to immutable
objects, too.  That's why I think that tags should have a constructor
which takes a Map, and that way, it doesn't need any setter methods.



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