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:   
For additional commands, e-mail: 




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 
# 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.
 



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.




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:

> >For additional commands, e-mail:

>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




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.*" %>


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:   
For additional commands, e-mail: 




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:   
For additional commands, e-mail: 



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
   
		  password
		  
		

But Where to specify  the user name?

You can specify the username as another parameter.


username





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




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.










  factory

org.apache.commons.dbcp.BasicDataSourceFactory





  maxActive
  100



  password
  





  driverClassName
  sun.jdbc.odbc.JdbcOdbcDriver





  url
  jdbc:odbc:Test






My problem is i have to specify username and password for MS Sql server.
Password i can specify Here
   
  password
  


But Where to specify  the user name?

Thanks in advance.

regards
venkat


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




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:   
For additional commands, e-mail: 



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:   
For additional commands, e-mail: 



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:
> >  > debug="5" reloadable="true"  naming="true" crossContext="true">
> >
> >  > prefix="localhost_DBmultileague_log." suffix=".txt"  
> > timestamp="true"/>
> >
> >  > type="javax.sql.DataSource"/>
> > 
> > 
> > maxIdle3000
> > maxActive10
> > maxWait10
> > usernamesa
> > password
> > 
> > factory
> > org.apache.commons.dbcp.BasicDataSourceFactory
> > 
> >   
> > driverClassName
> > com.sybase.jdbc2.jdbc.SybDriver
> > 
> > 
> > url
> > jdbc:sybase:Tds:PowerBookPaul:11222/multiLeague
> > 
> > initialPoolSize2
> > 
> > 
> > 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
-- 
shawn <[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




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:   
For additional commands, e-mail: 




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:   
For additional commands, e-mail: 




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:   
For additional commands, e-mail: 




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:

   

prefix="localhost_DBmultileague_log." suffix=".txt"  
timestamp="true"/>
   



maxIdle3000
maxActive10
maxWait10
usernamesa
password

factory
org.apache.commons.dbcp.BasicDataSourceFactory

  
driverClassName
com.sybase.jdbc2.jdbc.SybDriver


url
jdbc:sybase:Tds:PowerBookPaul:11222/multiLeague

initialPoolSize2






--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




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  block that contains two
>  blocks (I have 2 ip/port-based virtual hosts).
>
> 1. How can I specify in application's web.xml which 
> 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  element for your webapp,
  it belongs to the  that encloses the 
  element you put it inside.

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

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

The  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  per
.

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):

  



  

  

  


  ... Optional  element ...
  ... Optional  elements ...


  






  

  

  


  ... Optional  element ...
  ... Optional  elements ...



  ... Optional  element ...
  ... Optional  elements ...


  



  

You might recognize the first  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"  element, as long
  as the DNS addresses resolve to this server.

* You can optionally nest a  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  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  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 ).
  Any request for a different hostname that is received on these
  ports will be rejected.

* For each host, you can optionally nest a  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  elements under either 
  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/

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

Craig McClanahan



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




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:   
For additional commands, e-mail: 




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
 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  -- 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:   
For additional commands, e-mail: 




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:   
For additional commands, e-mail: 




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:   
For additional commands, e-mail: 




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:   
For additional commands, e-mail: 




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:   
For additional commands, e-mail: 




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  tag and a
>  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:
> > 
> > 
> > invoker
> > /servlet/*
> > 
> > 
> > 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 *
> > > 
> > > 
> > > 
> > >  > > PUBLIC "-//Sun Microsystems, Inc.//DTD Web
> > > Application 2.3//EN"
> > > "http://java.sun.com/dtd/web-app_2_3.dtd";>
> > > 
> > > 
> > >   X509 Project
> > >   
> > >  X509 Public Key Certificate Authentication
> > >   
> > > 
> > > 
> > >  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 
> > > 
> > > 
> > > 
> > >  > > PUBLIC "-//Sun Microsystems, Inc.//DTD Web
> > > Application 2.3//EN"
> > > "http://java.sun.com/dtd/web-app_2_3.dtd";>
> > > 
> > > 
> > > 
> > > 
> > > *** 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 ==

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]



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

 



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:   
> 
> For additional commands, e-mail:
> 

-- 
Kirill Maximov aka KIR


--
To unsubscribe, e-mail:

For additional commands, e-mail:


---

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:   
For additional commands, e-mail: 




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  tag and a  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:
> 
> 
> invoker
> /servlet/*
> 
> 
> 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 *
> > 
> > 
> > 
> >  > PUBLIC "-//Sun Microsystems, Inc.//DTD Web
> > Application 2.3//EN"
> > "http://java.sun.com/dtd/web-app_2_3.dtd";>
> > 
> > 
> >   X509 Project
> >   
> >  X509 Public Key Certificate Authentication
> >   
> > 
> > 
> >  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 
> > 
> > 
> > 
> >  > PUBLIC "-//Sun Microsystems, Inc.//DTD Web
> > Application 2.3//EN"
> > "http://java.sun.com/dtd/web-app_2_3.dtd";>
> > 
> > 
> > 
> > 
> > *** 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
>

web.xml and ip-based virtual hosts

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

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

2. Can I have ip-based virtual hosts with one serice
and multiple ? 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:   
For additional commands, e-mail: 




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:   
> 
> For additional commands, e-mail: 
> 

-- 
Kirill Maximov aka KIR


--
To unsubscribe, e-mail:   
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:   
For additional commands, e-mail: 



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:
> 
> 
> invoker
> /servlet/*
> 
> 
> 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 *
> > 
> > 
> > 
> >  > PUBLIC "-//Sun Microsystems, Inc.//DTD Web
> > Application 2.3//EN"
> > "http://java.sun.com/dtd/web-app_2_3.dtd";>
> > 
> > 
> >   X509 Project
> >   
> >  X509 Public Key Certificate Authentication
> >   
> > 
> > 
> >  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 
> > 
> > 
> > 
> >  > PUBLIC "-//Sun Microsystems, Inc.//DTD Web
> > Application 2.3//EN"
> > "http://java.sun.com/dtd/web-app_2_3.dtd";>
> > 
> > 
> > 
> > 
> > *** 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:
> > >
> >
> 
> > > For additional commands, e-mail:
> > > 
> > > 
> > > ---
> > > 
> > > 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

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:   
For additional commands, e-mail: 



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:   
For additional commands, e-mail: 




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:

		
	
			prefix="localhost_DBmultileague_log." suffix=".txt"  
timestamp="true"/>

	
	
	
		maxIdle3000
		maxActive10
		maxWait10
		usernamesa
		password
		
			factory
			org.apache.commons.dbcp.BasicDataSourceFactory
		
  	
			driverClassName
			com.sybase.jdbc2.jdbc.SybDriver
		
		
			url
			jdbc:sybase:Tds:PowerBookPaul:11222/multiLeague
		
		initialPoolSize2
	


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:

Member Homepage

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:

For additional commands, e-mail:


---

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:   
For additional commands, e-mail: 




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:


invoker
/servlet/*


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 *
> 
> 
> 
>  PUBLIC "-//Sun Microsystems, Inc.//DTD Web
> Application 2.3//EN"
> "http://java.sun.com/dtd/web-app_2_3.dtd";>
> 
> 
>   X509 Project
>   
>  X509 Public Key Certificate Authentication
>   
> 
> 
>  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 
> 
> 
> 
>  PUBLIC "-//Sun Microsystems, Inc.//DTD Web
> Application 2.3//EN"
> "http://java.sun.com/dtd/web-app_2_3.dtd";>
> 
> 
> 
> 
> *** 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:
> >
> 
> > For additional commands, e-mail:
> > 
> > 
> > ---
> > 
> > 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:
> >
> 
> > For additional commands, e-mail: 
> > 
> > 
> 
> 
> __
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up
> now.
> http://mailplus.yahoo.com
> 
> --
> To unsubscribe, e-mail: 
> 
> For additional commands, e-mail: 
> 
> 
> ---
> 
> 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:
> 
> For additional commands, e-mail:
> 
> 
=== m

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:


invoker
/servlet/*


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 *
> 
> 
> 
>  PUBLIC "-//Sun Microsystems, Inc.//DTD Web
> Application 2.3//EN"
> "http://java.sun.com/dtd/web-app_2_3.dtd";>
> 
> 
>   X509 Project
>   
>  X509 Public Key Certificate Authentication
>   
> 
> 
>  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 
> 
> 
> 
>  PUBLIC "-//Sun Microsystems, Inc.//DTD Web
> Application 2.3//EN"
> "http://java.sun.com/dtd/web-app_2_3.dtd";>
> 
> 
> 
> 
> *** 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:
> >
> 
> > For additional commands, e-mail:
> > 
> > 
> > ---
> > 
> > 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:
> >
> 
> > For additional commands, e-mail: 
> > 
> > 
> 
> 
> __
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up
> now.
> http://mailplus.yahoo.com
> 
> --
> To unsubscribe, e-mail: 
> 
> For additional commands, e-mail: 
> 
> 
> ---
> 
> 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:
> 
> For additional commands, e-mail:
> 
> 
=== message truncated ===


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

--
To unsubscribe, e-mail:

For additional c

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:
> 
> 
> 
> 
>  PUBLIC "-//Sun Microsystems, Inc.//DTD Web
> Application 2.3//EN" 
> "http://java.sun.com/dtd/web-app_2_3.dtd";>
> 
> 
> 
> 
> 
> 
> My Web Application
> 
>   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.
> 
> 
> 
> 
> 
> 
>   webmaster
>  
> [EMAIL PROTECTED]
>   
> The EMAIL address of the administrator to
> whom
> questions
> and comments about this application should
> be
> addressed.
>   
> 
> 
> 
> 
> 
> 
>   controller
>   
> 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 
> 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.
>   
>  
>
com.mycompany.mypackage.ControllerServlet
>   
> listOrders
>
>
com.mycompany.myactions.ListOrdersAction
>   
>   
> saveCustomer
>
>
com.mycompany.myactions.SaveCustomerAction
>   
>   
>   5
> 
> 
> 
>   graph
>   
> This servlet produces GIF images that are
> dynamically generated
> graphs, based on the input parameters
> included
> on the request.
> It is generally mapped to a specific request
> URI like "/graph".
>   
> 
> 
> 
> 

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:   
For additional commands, e-mail: 




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:   
> For additional commands, e-mail: 
-- 
p niemandt <[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




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 
>  > > 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:   
> > >  [EMAIL PROTECTED]>
> > > For
> > > additional commands,
> > > e-mail: 
> > > 
> > > 
> > 
> > --
> > To unsubscribe, e-mail:
> >  [EMAIL PROTECTED]>
> > For 
> > additional commands, 
> > e-mail: 
> > 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




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  > 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:   
> >  [EMAIL PROTECTED]>
> > For
> > additional commands, 
> > e-mail: 
> > 
> > 
> 
> --
> To unsubscribe, e-mail: 
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




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:   
For additional commands, e-mail: 



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:   
For additional commands, e-mail: