Servlet as Virtual Include in ASP file

2002-10-22 Thread Kurisu QT
My company's website uses default.asp?page= to precede
the actual file being called.  Because my project uses
servlets and must be integrated into the site, I'm
going nuts trying to figure out if a servlet can be
called as an virtual include in an ASP file. Or can I
do the reverse-- call an ASP file as a virtual include
within a servlet.

My only other option is to break down the default.asp
page into htm pages and call them in the servlet, but
then i'm dealing with updates in 2 places, rather than
one.

Any info would be appreciated.
Thanks.

 

__
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
http://webhosting.yahoo.com/

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: Database Issues

2002-10-22 Thread Kwok Peng Tuck
Try the jetspeed mailling list. this sounds like a configuration issue 
with jetspeed itself.

[EMAIL PROTECTED] wrote:

Apologies in advance for posting a repeat of earlier messages but I've yet 
to come across a solution to my problem...

I'm attempting to get jetspeed working with PostgreSQL.
Following initial abortive attempts, I've installed the latest versions of 
both Tomcat (4.1.12) and Postgresql(7.2.3) to ensure I have clean builds 
but the issue remains.

The error when starting jetspeed is:

Horrible Exception: java.lang.Error: Error in 
BasePeer.initTableSchema(TURBINE_USER): Connection object is null!
at 
org.apache.jetspeed.om.security.turbine.BaseTurbineUserPeer.initClass(BaseTurbineUserPeer.java:145)
at 
org.apache.jetspeed.om.security.turbine.BaseTurbineUserPeer.clinit(BaseTurbineUserPeer.java:124)

..etc...



my torque.properties file looks like this:

database.default=jetspeed

database.default.driver=org.postgresql.Driver
database.default.url=jdbc:postgresql://localhost/jetspeed
database.default.username=jetspeed
database.default.password=



with a jetspeed database setup from the scripts provided and pjdbc2.jar 
intsalled in the lib directory from jdbc.postgresql.org



I've seen people with similar errors using both postgreSQL and mySQL.

I've also tried removing hsql.jar from the lib directory to make sure 
there is no classname clash between the hsql and postgres jdbc jars.


Any Ideas??


Brendan Richards
 




--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: Tomcat/log4j Question

2002-10-22 Thread achana
Hi, Tomcat1.4 here, please elaborate and do be expansive.
A new piece of software is always scary for me.
TIA

Mr. Tomcat wrote:

 You may consider using Java 1.4's built-in logging mechanism instead.  I
 don't think log4j has much of an advantage over the built-in logger, so
 I'm getting log4j out of all my code and switching entirely to the
 standard logger.  Of course, this requires that you use java 1.4.  If
 you have to stick with an older version for some reason you will have to
 use log4j.  Java 1.4 has many improvements so it's worth switching if
 you can.
 
 --
 To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: Apache/2 and Tomcat/4 not talking

2002-10-22 Thread Milt Epstein
On Tue, 22 Oct 2002, Jim Urban wrote:

 I have spent the past two days trying to get Apache/2 to forward servlet
 requests to Tomcat.  Here are the particulars:

 Java 1.3.0
 Win 2K SP3
 Tomcat 4.0.4
 Apache/2 0.43
 AJP13
 SSL

 Mod_jk.conf
 ## Auto generated on Tue Oct 22 12:01:16 CDT 2002##

 IfModule !mod_jk.c
   LoadModule jk_module modules/mod_jk.dll
 /IfModule

 JkWorkersFile y:/Tomcat4.0.4/conf/jk/workers.properties
 JkLogFile y:/Tomcat4.0.4/logs/mod_jk.log

 JkLogLevel debug
 JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
[ ... ]

You don't have any JkMount directives.  JkMount directives are of the
form:

JkMount url-pattern worker-name

They tell Apache what URL's (based on a match of the URL pattern) to
forward to Tomcat.  worker-name should be defined in
workers.properties with a number of:

worker.worker-name.property=value

where property is { host, port, type }.

Milt Epstein
Research Programmer
Integration and Software Engineering (ISE)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




InvocationTargetException upon server start

2002-10-22 Thread Becky Phaneuf
Hello,

After installing Tomcat 4.1.12 I copied a relatively simple web application called 
ISOdownload (1 jsp invoking 1 servlet that prints http headers) from my post-ant build 
directory to /webapps/ISOdownload/.  Upon restarting Tomcat I received the exception 
below:

-
Oct 22, 2002 3:41:54 PM org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
Oct 22, 2002 3:41:55 PM org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance
Oct 22, 2002 3:41:55 PM org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
Oct 22, 2002 3:41:58 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
Starting service Tomcat-Standalone
Apache Tomcat/4.1.12
WebappClassLoader: addRepository(/WEB-INF/classes/)
Oct 22, 2002 3:42:05 PM org.apache.commons.digester.Digester endElement
SEVERE: End event threw exception
java.lang.reflect.InvocationTargetException
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.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:228)
at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:260)
at org.apache.commons.digester.Digester.endElement(Digester.java:1036)
at 
org.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:579)
at 
org.apache.xerces.impl.XMLNamespaceBinder.endElement(XMLNamespaceBinder.java:646)
at 
org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValidator.java:1972)
at 
org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.java:878)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.handleEndElement(XMLDocumentFragmentScannerImpl.java:144)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:987
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentcannerImpl.java:1445)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:333)
at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:524)
at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:580)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
at 
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1169)
at org.apache.commons.digester.Digester.parse(Digester.java:1495)
at 
org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig.java:282)
at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:639)
at 
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:243)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3493)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at org.apache.catalina.core.StandardService.start(StandardService.java:497)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
at org.apache.catalina.startup.Catalina.start(Catalina.java:510)
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)
Caused by: java.lang.IllegalArgumentException: Filter mapping specifies an unknown 
filter name Servlet Mapped Filter
at 
org.apache.catalina.core.StandardContext.addFilterMap(StandardContext.java:1472)
... 39 more
WebappClassLoader: loadClass(java.lang.Integer, false)
WebappClassLoader: loadClass(java.lang.Number, false)
WebappClassLoader: loadClass(java.lang.Long, false)
WebappClassLoader: loadClass(java.lang.Boolean, false)
Oct 22, 2002 3:42:05 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 8080
Oct 22, 2002 3:42:05 PM 

RE: Tomcat Connection Pooling

2002-10-22 Thread garrett smith
It's on the tomcat page under documentation. click on tomcat 4.0

here:
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/index.html

It's basically the same, but you have to download all the jars, so more work to
set up.

--- Lior Shliechkorn [EMAIL PROTECTED] wrote:
 
 Is this feature is not available for tomcat 4.0.5?
  Steltner, Jorn HTC/DE/ESS [EMAIL PROTECTED] wrote:Have a look
 at
 http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-how
 to.html
 
 -Original Message-
 From: Lior Shliechkorn [mailto:liorshliech;yahoo.com]
 Sent: Dienstag, 22. Oktober 2002 16:55
 To: Tomcat
 Subject: Tomcat Connection Pooling
 
 
 
 Can someone please send me a link for reading information about Tomcat
 connection pooling?
 
 Thanks,
 
 lior
 
 
 
 -
 Do you Yahoo!?
 Y! Web Hosting - Let the expert host your web site
 
 --
 To unsubscribe, e-mail: 
 For additional commands, e-mail: 
 
 
 
 -
 Do you Yahoo!?
 Y! Web Hosting - Let the expert host your web site


=
Garrett Needs A Job

__
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
http://webhosting.yahoo.com/

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: Tomcat Manager APP: manage VIRTUALHOST'S apps all TOGHETHER?

2002-10-22 Thread Wu Yiqun
There was a site http://www.talika.org/. The author wrote a Tomcat ManagerX
Servlet
which can support virtual host. He sent out an email about it long time ago.
I have successfully
tested it with Tomcat 4.0.4 or some early version.(I cannot remember) You
can have a try.

Btw, developer such as Craig, Remy or someone else, would you please
consider adding this
servlet to new version of tomcat? IMHO this is useful to tomcat user.
Thanks.

- Original Message -
From: Randy Secrist [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, October 23, 2002 7:50 AM
Subject: Re: Tomcat Manager APP: manage VIRTUALHOST'S apps all TOGHETHER?



 - Original Message -
 From: Craig R. McClanahan [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Tuesday, October 22, 2002 10:34 AM
 Subject: Re: Tomcat Manager APP: manage VIRTUALHOST'S apps all TOGHETHER?

  It depends on how you've configured your Tomcat virtual hosts.  If you
  have set up separate Host elements for each of them, then you must set
  up a webapp for the Manager inside each of them.  If there is a single
  Host element (relying on the defaulthost attribute to resolve all
  unknown host names to the same one), then a single Manager webapp will
  manage all of them.
 
  Craig
 

 Silly question I suppose - but can you nest a Host element inside
another
 Host element?  Unless you can, then a single manager app will not
 encompass all virtual hosts since each host needs it's own manager...

 Randy


 --
 To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: SSL Servlet Client

2002-10-22 Thread Monte . Gardner
OK, I think I've got to where I understand the problem more clearly 
then i did yesterday. Here it is.  When I followed the tomcat ssl how to
and typed
keytool -genkey -alias tomcat -keyalg RSA
it created a keystore file called /root/.keystore in which a key aliased
by 'tomcat' was stored.  This key is what tomcat uses to present a certificate
to any client that requests an SSL session.  

Now what I want to do is create a Java Client that will connect to Tomcat
via SSL and communicate with one of it's servlets.  When Tomcat receives
the request, it sends it's 'tomcat' certificate.  However, when the Java
client receives that certificate, it looks in a list of certificates found
in 
$JAVA_HOME/jre/lib/security/cacerts
and doesn't find a certificate that matches the one it receives, so it 
throws an exception: 
javax.net.ssl.SSLHandshakeException: Received fatal alert: certificate_unknown

So, what I need to do is put a copy of the Tomcat certificate in the cacerts
file.  So I tried using a combination of keytool -import / -export to copy
the certificate over.  It seemed like I was succesfull in doing so, but
when I rebooted tomcat and ran the webpage again, I got the same
exception.  Have I misunderstood the problem or the key management 
process somehow?

here is the console output from when I tried to copy the certificate:

[rootrho /root]# keytool -export -alias tomcat -file cert.cer -keystore
.keysto re
Enter keystore password:  changeit
Certificate stored in file cert.cer
[rootrho /root]# keytool -import -alias tomcat -file cert.cer -keystore
$DOCUTRAK/tomcat
Enter keystore password:  changeit
Owner: CN=rho.abstrax.nan, OU=Abstrax, O=Abstrax, L=Mesz, ST=AZ, C=US
Issuer: CN=rho.abstrax.nan, OU=Abstrax, O=Abstrax, L=Mesz, ST=AZ, C=US
Serial number: 3db5698b
Valid from: Tue Oct 22 08:06:51 MST 2002 until: Mon Jan 20 08:06:51 MST 2003
Certificate fingerprints:
 MD5:  84:A4:4B:0D:F9:AE:2B:D2:4D:DD:84:0C:8F:D7:DD:EC
 SHA1: 67:AF:81:96:98:3F:0B:B3:84:BF:73:62:2A:45:05:C5:19:9C:F8:F1
Trust this certificate? [no]:  y
Certificate was added to keystore


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: Startup Bootstrap error message

2002-10-22 Thread garrett smith
You brought up a good point. I sometimes have a stupid error in web.xml and
this is not logged in the logfile. I would appreciate better logging mechanism
for tomcat-start-up. 


--- Michael Langan [EMAIL PROTECTED] wrote:
 Hello.
 
 Apologies for bringing up perhaps the oldest error in the book but I'm
 a newbie at this and have searched everywhere for the solution and can
 get no satisfactory explanation. When starting up tomcat the following
 message is written to the catalina.out file;
 
 Exception in thread main java.lang.NoClassDefFoundError:
 org/apache/catalina/startup
 /Bootstrap
 
 The version of tomcat I'm using is 4.1.12, running on a Linux RedHat
 7.2 server. I'm just trying to start up a single instance and have set
 the CATALINA_HOME variable correctly. I have installed Java version
 j2sdk1.4.1_01 and have also set the JAVA_HOME variable correctly. Still
 no joy. Any ideas what to try next?
 
 Reply to me privately if you like to avoid cluttering up the list.
 Many thanks, Mike.
 
 
 --
 To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
 


=
Garrett Needs A Job

__
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
http://webhosting.yahoo.com/

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Installing Tomcat 4.1.12 under Win2k, Apache 1.3.22, PHP4.1.2

2002-10-22 Thread Rainer Bruch
hi list,
as a newbee on tomcat i need installation assistance (manual, etc.) for
correct installation for
tomcat 4.1.12 for following systemconfiguration:

- win2k pro
- apache 1.3.22
- php4.1.2
- j2sdk1.4.0_02 (including jre)

how can i include the tomcat in my apache webserver and my php-scripting?
which files do i need?
where can i download this files?
where can i download installation instructions?
etc.

my tomcat installation is running as standalone server, but i cannot include
the tomcat in my apache to improve performance for java, php scripting, etc.

thanks for help.
raibru
[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




URI mapping looks in root not webapp

2002-10-22 Thread Lior Shliechkorn

Hello,

I'm using IIS 5 and Win2000 server. I'm trying to have a url of a website mapped 
directly to a webapp

www.xxx.com --- c:\tomcat\webapp\AppName

I tested the webapp normally under localhost and it works fine. I packed all the 
utility classes and the web.xml file is created. The directory structure is as 
required as well. I'm getting strange results though.

The redirect log finds the mapping that I created in the URIWORKERMAP.PROP file

/www.xxx.com/*.jsp=ajp13

and a worker is created to take on that request. However, it looks in the ROOT folder 
instead of looking at the AppName folder that I created. If I add the examples virtual 
directory it works fine and I see that there is a match with the uri mapping and it 
looks like this:

http://www.xxx.com/examples/jsp/num/numguess.jps  -- one of the lines in the log 
looks like the one below

HttpFilterProc [/examples/jsp...] is a 

The page is fetched and working fine. Now when I go to the regular URL I get a page is 
not available:

http://www.xxx.com/index.jsp

HttpFilterProc [/index.jsp] is a servlet ...

So it's looking in the root instead of in the AppName. Can anyone help me with this 
issue? I'm not sure what I can do to resolve that.

Thanks,

Lior



-
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site


tomcat 3.3.1 ThreadPool Bug?

2002-10-22 Thread Nagesh Nayudu
Hi,
I am running Tomcat3.3.1 on Solaris. I specified the maxthreads for the
AJP13 connector as 256. But, when I load test the web.app., I get a log
message in stdout:
ThreadPool: All threads are busy, waiting. Please increase maxThreads or
check the servlet status200 200

Looks like the max threads specified in server.xml is ignored, and tomcat
uses the default value of 200. I searched the bug database but, did not find
this bug reported. Has this bug been fixed in later releases of 3.3.1? I can
not start using 4.x version even if this has been fixed in it. Thanks.

-Nagesh.

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: multiple servlet instances?

2002-10-22 Thread Jon Eaves
Craig R. McClanahan wrote:


On Mon, 21 Oct 2002, Nick Wesselman wrote:



Date: Mon, 21 Oct 2002 18:07:42 -0500
From: Nick Wesselman [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: multiple servlet instances?

the book was actually referring to the case where isThreadSafe=false
... it uses misleading wording, however.

... you also need to be aware that, even if a JSP page sets the
isThreadSafe attribute to false, JSP implementations are still
permitted to create multiple instances of the corresponding servlet...
(my emph)

Web Development with Java Server Pages by Duane Fields and Mark Kolb
... p. 62 ... I just got a fax of the page in reference to a question
from a client. Thanks for your help!



I would need one of the authors to substantiate where in the JSP specs
they see the support for the assertion that multiple instances are
allowed.  I cannot find any evidence to support this in the JSP 1.2
specification (which the current edition purports to cover).

Further, I'm *very* skeptical about any claim that multiple instances of
the servlet running behind your JSP page would actually provide any
performance benefits, even if it were allowed by the specification.


Servlet Specification p22-23
SRV2.2 Number of Instances
The servlet declaration which is part of the deployment descriptor of the 
web application containing the servlet, as described in Chapter SRV.13, 
“Deployment Descriptor”, controls how the servlet container provides 
instances of the servlet. For a servlet not hosted in a distributed 
environment (the default), the servlet container must use only one instance 
per servlet declaration. However, for a servlet implementing the
SingleThreadModel interface, the servlet container may instantiate multiple 
instances to handle a heavy request load and serialize requests
to a particular instance.

I took that section of the specification to mean that multiple instances
of servlets can be created iff the SingleThreadModel interface is implemented.

Of course, that's just a reading of the spec and I'm not part of that JSR
so I could be interpreting it incorrectly.  I would be interested in a
clarification though.

Cheers,
	-- jon

--
Jon Eaves [EMAIL PROTECTED]
http://www.eaves.org/jon/


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org



Broken Link to Catalina Javadoc

2002-10-22 Thread Adam Sherman
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/catalina/docs/api/index.html

Doesn't exist. I actually the docs too, are they anywhere else?

Thanks,

A.

--
Adam Sherman
Software Developer
Teach and Travel Inc.
+1.613.241.3103



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: Broken Link to Catalina Javadoc

2002-10-22 Thread Warner Onstine
Funny I reported this almost a week ago and have heard nothing, even filed a
bug on it.

-warner

- Original Message -
From: Adam Sherman [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, October 22, 2002 1:28 PM
Subject: Broken Link to Catalina Javadoc



http://jakarta.apache.org/tomcat/tomcat-4.1-doc/catalina/docs/api/index.html

 Doesn't exist. I actually the docs too, are they anywhere else?

 Thanks,

 A.

 --
 Adam Sherman
 Software Developer
 Teach and Travel Inc.
 +1.613.241.3103



 --
 To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org




--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




mod_jk - Apache 2.0.43 - Tomcat 4.1.12 config issues on Solaris 8

2002-10-22 Thread Tref Gare
Hi Folks,
 
We're having more than a few problems in this process so far.  Any help will be as 
always gratefully received.
 
A: we've been unable to compile a fresh connector in either jk or jk2 flavour.  Each 
one fails at a late stage of compile listing copious parse errors in the jni.h include 
in the JDK.
 
As such we've taken a precompiled binary of mod_jk.so (2.0.42) and plugged it in 
instead.  Everything seems to be ok from this point except of course that it's not 
working.  Apache and Tomcat continue to work standalone, both boot without errors (now 
that I've commented out the lifecycle listeners - jk2 only?) and the Apache Include in 
httpd.conf (Include /opt/jakarta-tomcat-4.1.12/conf/auto/mod_jk.conf) seems to be 
running as the log files etc are being created.  However mod_jk is giving us the 
following error/s
 
[jk_connect.c (177)]: jk_open_socket, connect() failed errno = 146
[jk_ajp_common.c (626)]: In jk_endpoint_t::ajp_connect_to_endpoint, failed errno 146

For completeness our system is:

Solaris 2.8 sparc version
Apache 2.0.43 (fresh compile with dso)
Tomcat 4.1.12
mod_jk-2.0.42.so  (symlink to mod_jk.so)

server.xml got the following additions to generate the auto config files

Immediately following the server port=8005 ..

Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
  modJk=/opt/apache_2/modules/mod_jk.so jkDebug=info
  workersConfig=/opt/jakarta-tomcat-4.1.12/conf/jk/workers.properties
  jkLog=/opt/jakarta-tomcat-4.1.12/logs/mod_jk.log / 
Then after Host name=localhost .. 
Listener className=org.apache.ajp.tomcat4.config.ApacheConfig 
  append=true /

workers.properties is very minimal todate

#Define some properties
workers.apache_log=/opt/apache_2/logs/
workers.tomcat_home=/opt/jakarta-tomcat-4.1.12
workers.java_home=$(JAVA_HOME)
ps =/

worker.list=acmi1

woker.acmi1.port
woker.acmi1.host
woker.acmi1.type=ajp13
woker.acmi1.lbfactor=1
woker.acmi1.cachesize=10
woker.acmi1.socket_keepalive=1
woker.acmi1.socket_timeout=300

There is some other stuff for a jni inprocess worker and an lb worker but it's all 
commented (#) out for now

 



Re: multiple servlet instances?

2002-10-22 Thread Craig R. McClanahan


On Wed, 23 Oct 2002, Jon Eaves wrote:

 Date: Wed, 23 Oct 2002 11:53:29 +1000
 From: Jon Eaves [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Re: multiple servlet instances?

 Craig R. McClanahan wrote:
 
  On Mon, 21 Oct 2002, Nick Wesselman wrote:
 
 
 Date: Mon, 21 Oct 2002 18:07:42 -0500
 From: Nick Wesselman [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Re: multiple servlet instances?
 
 the book was actually referring to the case where isThreadSafe=false
 ... it uses misleading wording, however.
 
 ... you also need to be aware that, even if a JSP page sets the
 isThreadSafe attribute to false, JSP implementations are still
 permitted to create multiple instances of the corresponding servlet...
 (my emph)
 
 Web Development with Java Server Pages by Duane Fields and Mark Kolb
 ... p. 62 ... I just got a fax of the page in reference to a question
 from a client. Thanks for your help!
 
 
  I would need one of the authors to substantiate where in the JSP specs
  they see the support for the assertion that multiple instances are
  allowed.  I cannot find any evidence to support this in the JSP 1.2
  specification (which the current edition purports to cover).
 
  Further, I'm *very* skeptical about any claim that multiple instances of
  the servlet running behind your JSP page would actually provide any
  performance benefits, even if it were allowed by the specification.

 Servlet Specification p22-23
 SRV2.2 Number of Instances
 The servlet declaration which is part of the deployment descriptor of the
 web application containing the servlet, as described in Chapter SRV.13,
 “Deployment Descriptor”, controls how the servlet container provides
 instances of the servlet. For a servlet not hosted in a distributed
 environment (the default), the servlet container must use only one instance
 per servlet declaration. However, for a servlet implementing the
 SingleThreadModel interface, the servlet container may instantiate multiple
 instances to handle a heavy request load and serialize requests
 to a particular instance.

 I took that section of the specification to mean that multiple instances
 of servlets can be created iff the SingleThreadModel interface is implemented.


That is correct -- but there is still a subtlety when there's more than
one mapping for the same servlet.  Consider a web.xml file with:

servlet
servlet-namefoo/servlet-name
servlet-classcom.mycompany.MyFooServlet/servlet-class
/servlet

servlet-mapping
servlet-namefoo/servlet-name
url-pattern/bar/*/url-pattern
/servlet-mapping

servlet-mapping
servlet-namefoo/servlet-name
url-pattern*.baz/url-pattern
/servlet-mapping

If the MyFooServlet class does not implement SingleThreadModel, there will
be one and only one instance of the foo servlet created, no matter now
many different URLs you use to access it.

Hence, my clarification that it is one instance per servlet *definition*
(i.e. a servlet element), not one instance per servlet *mapping* as
someone else mistakenly said.

 Of course, that's just a reading of the spec and I'm not part of that JSR
 so I could be interpreting it incorrectly.  I would be interested in a
 clarification though.

 Cheers,
   -- jon


Craig


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: problem on deployment

2002-10-22 Thread Billy Ng
 If you copied the war file to the TOMCAT_HOME/webapps directory, TC should
 recognize it and expand it for you.  Is it expanded?  Look in the webapps
 directory, do you see a new directory there with the same name as your war
 file?.  If you still have the Tomcat http connector running then go to
 http://localhost:8080/name_of_your_webapp and it should be there.  If not
 look through all your log files for errors.

After I reinstalled the tomcat, it works now.  I don't know why???


 To use the manager app go to http://localhost:8080 then click on Tomcat
 Manager, login with the same login you used for admin, put in your
 password.


The tomcat is running on my local windows XP, what user id should I use?

Thanks!

Billy Ng



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




mod_jk Internal Server Error

2002-10-22 Thread chris . hanrahan
Greetings,

I am running Apache 1.3.27 and Tomcat 3.3.1 under Red Hat Linux.

Apache is on one server, and Tomcat is on a different server.

I have configured apache to send all requests for .jsp files to the Tomcat
server.  Here is the workers.properties file from the apache server:

worker.baluxas01.port=8009
worker.baluxas01.host=10.179.16.53
worker.baluxas01.type=ajp13
worker.baluxas01.lbfactor=1

In httpd.conf on the apache server, I have:

JkMount /*.jsp baluxas01

Whenever I access any jsp file, I receive an Apache Internal Error
message via the web browser.  There are no other details listed, no Java or
other errors.  There is also nothing in the Apache error log, the mod_jk
error log, or the Tomcat error log.  No console messages appear on the
server running Tomcat.

If I install Tomcat on the same server as Apache, and reconfigure the
workers.properties file so that :

worker.baluxas01.host=10.179.16.53

is set to

worker.baluxas01.host=localhost

then everything works correctly and the jsp pages appear like they are
supposed to.  It is when I try to connect to a Tomcat container running on
another machine that I run into problems.

I have searched the Internet and the mail list archives without much
success.  Most people are running Apache and Tomcat on the same physical
server.  Is the setup I described supported ?  Am I missing something in my
configuration ?

Any help would be appreciated.

Thanks very much,

Chris Hanrahan




**Disclaimer**
This  Memo and any attachments, may be confidential and legally privileged.
If  you  are  not  the  intended recipient and have received this in error,
kindly  destroy  this  message  and  notify the sender.  Thank you for your
assistance.


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: tomcat 3.3.1 ThreadPool Bug?

2002-10-22 Thread Larry Isaacs
The property name is case sensitive.  Thus,

maxThreads=256

will work, but

maxthreads=256

won't.

Cheers,
Larry

 -Original Message-
 From: Nagesh Nayudu [mailto:nagesh;supportsoft.com] 
 Sent: Tuesday, October 22, 2002 9:52 PM
 To: 'Tomcat Users List'
 Subject: tomcat 3.3.1 ThreadPool Bug?
 
 
 Hi,
 I am running Tomcat3.3.1 on Solaris. I specified the 
 maxthreads for the
 AJP13 connector as 256. But, when I load test the web.app., I 
 get a log
 message in stdout:
 ThreadPool: All threads are busy, waiting. Please increase 
 maxThreads or
 check the servlet status200 200
 
 Looks like the max threads specified in server.xml is 
 ignored, and tomcat
 uses the default value of 200. I searched the bug database 
 but, did not find
 this bug reported. Has this bug been fixed in later releases 
 of 3.3.1? I can
 not start using 4.x version even if this has been fixed in it. Thanks.
 
 -Nagesh.
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:tomcat-user-help;jakarta.apache.org
 
 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: problem on deployment

2002-10-22 Thread Jean-Francois Arcand
In ${CATALINA_HOME}/conf/tomcat-user.xml, add a user and a role like this

user name=XXX password=XXX roles=manager /

Then restart Tomcat.

--  Jeanfrancois

Billy Ng wrote:


If you copied the war file to the TOMCAT_HOME/webapps directory, TC should
recognize it and expand it for you.  Is it expanded?  Look in the webapps
directory, do you see a new directory there with the same name as your war
file?.  If you still have the Tomcat http connector running then go to
http://localhost:8080/name_of_your_webapp and it should be there.  If not
look through all your log files for errors.
   


After I reinstalled the tomcat, it works now.  I don't know why???

 

To use the manager app go to http://localhost:8080 then click on Tomcat
Manager, login with the same login you used for admin, put in your
password.

   


The tomcat is running on my local windows XP, what user id should I use?

Thanks!

Billy Ng



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org


 



Re: InvocationTargetException upon server start

2002-10-22 Thread Jean-Francois Arcand
Seems to be related to a parsing error. Are you sure your web.xml file 
is a proper XML instance? Try to validate your XML file againts the DTD 
included in the DOCTYPE element of the file.

-- Jeanfrancois

Becky Phaneuf wrote:

Hello,

After installing Tomcat 4.1.12 I copied a relatively simple web application called ISOdownload (1 jsp invoking 1 servlet that prints http headers) from my post-ant build directory to /webapps/ISOdownload/.  Upon restarting Tomcat I received the exception below:

-
Oct 22, 2002 3:41:54 PM org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
Oct 22, 2002 3:41:55 PM org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance
Oct 22, 2002 3:41:55 PM org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
Oct 22, 2002 3:41:58 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
Starting service Tomcat-Standalone
Apache Tomcat/4.1.12
WebappClassLoader: addRepository(/WEB-INF/classes/)
Oct 22, 2002 3:42:05 PM org.apache.commons.digester.Digester endElement
SEVERE: End event threw exception
java.lang.reflect.InvocationTargetException
   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.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:228)
   at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:260)
   at org.apache.commons.digester.Digester.endElement(Digester.java:1036)
   at org.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:579)
   at org.apache.xerces.impl.XMLNamespaceBinder.endElement(XMLNamespaceBinder.java:646)
   at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValidator.java:1972)
   at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.java:878)
   at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.handleEndElement(XMLDocumentFragmentScannerImpl.java:144)
   at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:987
   at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentcannerImpl.java:1445)
   at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:333)
   at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:524)
   at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:580)
   at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
   at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1169)
   at org.apache.commons.digester.Digester.parse(Digester.java:1495)
   at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig.java:282)
   at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:639)
   at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:243)
   at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
   at org.apache.catalina.core.StandardContext.start(StandardContext.java:3493)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
   at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
   at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
   at org.apache.catalina.core.StandardService.start(StandardService.java:497)
   at org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:510)
   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)
Caused by: java.lang.IllegalArgumentException: Filter mapping specifies an unknown filter name Servlet Mapped Filter
   at org.apache.catalina.core.StandardContext.addFilterMap(StandardContext.java:1472)
   ... 39 more
WebappClassLoader: loadClass(java.lang.Integer, false)
WebappClassLoader: loadClass(java.lang.Number, false)
WebappClassLoader: loadClass(java.lang.Long, false)
WebappClassLoader: 

Re: session replication

2002-10-22 Thread Jean-Francois Arcand
Euhmm..turn off the JMX stuff by commenting the follwoing in server.xml:

!--
 !-- Uncomment these entries to enable JMX MBeans support --
 Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
   debug=0/
 Listener 
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
   debug=0/
--

This will turn off JMX and the exception will disappears. The next step 
is to file a bug against Tomcat :-) by including your stack trace

-- Jeanfrancois


Ricardo de Souza Moura wrote:

Does anybody use the javagroups session replication with tomcat4.1.12 ?

I read a article of theserverside: 
http://www2.theserverside.com/resources/articles/Tomcat/article.html
about how to use javagroups session replication, but I am getting the 
error:

java.lang.Exception: ManagedBean is not found with 
InMemoryReplicationManager
   at 
org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:531
)
   at 
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Serve
rLifecycleListener.java:422)
   at 
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Serve
rLifecycleListener.java:651)
   at 
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Serve
rLifecycleListener.java:590)
   at 
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Serve
rLifecycleListener.java:783)
   at 
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Serve
rLifecycleListener.java:751)
   at 
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Serve
rLifecycleListener.java:339)
   at 
org.apache.catalina.mbeans.ServerLifecycleListener.lifecycleEvent(Ser
verLifecycleListener.java:206)
   at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:166)
   at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:218
2)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:510)
   at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
   at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
   at java.lang.reflect.Method.invoke(Native Method)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

Why ?

_
MSN Hotmail, o maior webmail do Brasil. http://www.hotmail.com


--
To unsubscribe, e-mail:   
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: 
mailto:tomcat-user-help;jakarta.apache.org




--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Manager?

2002-10-22 Thread Bryan Dollery
Hi,

Tomcat 4.1.12 question:

1. Install and Deploy manager functions - what's the difference?

The documents mention something about deploy copying and install not doing
so, but I can't find any more information on this. I've looked back through
this list's archives and can't find any other mention of the difference.

2. How does tomcat handle manager deployed files?

If I deploy (manager deploy) a simple war file, with a single html page
linking to a simple hello-world servlet it works fine. But, I don't know
what tomcat is doing with the contents of the war.

I can see that the war itself is copied to the manager work directory, and
that the class files are unpacked. However, the html file, and the web.xml
file don't get unpacked. Does tomcat access these directly from the war,
and if so does it cache them?

Thanks for any answers you can provide.

Cheers,

Bryan

b r y a n   d o l l e r y
c h a o s   e n g i n e e r s
 www.ChaosEngineers.co.nz
 +64 (0)21 330607


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: Manager?

2002-10-22 Thread Kwok Peng Tuck
I think(?) it should go to the {CATALINA_HOME}/webapps directory.

Bryan Dollery wrote:


Hi,

Tomcat 4.1.12 question:

1. Install and Deploy manager functions - what's the difference?

The documents mention something about deploy copying and install not doing
so, but I can't find any more information on this. I've looked back through
this list's archives and can't find any other mention of the difference.

2. How does tomcat handle manager deployed files?

If I deploy (manager deploy) a simple war file, with a single html page
linking to a simple hello-world servlet it works fine. But, I don't know
what tomcat is doing with the contents of the war.

I can see that the war itself is copied to the manager work directory, and
that the class files are unpacked. However, the html file, and the web.xml
file don't get unpacked. Does tomcat access these directly from the war,
and if so does it cache them?

Thanks for any answers you can provide.

Cheers,

Bryan

   b r y a n   d o l l e r y
c h a o s   e n g i n e e r s
www.ChaosEngineers.co.nz
+64 (0)21 330607


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org


 




--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: Tomcat/log4j Question

2002-10-22 Thread Jacob Kjome

Log4j requires its own logging universe in the default setup.  The easiest 
way to do this in a servlet container is to put the log4j jar in
WEB-INF/lib of each web application you have.  You can put a 
log4j.properties or a log4j.xml in WEB-INF/classes for default 
configuration initialization.  There are more advanced (and complex) ways 
of using Log4j such as this:

http://qos.ch/containers/sc.html

Contrary to what Mr. Tomcat wrote saying that the j2sdk1.4.x logging and 
Log4j had no significant functional differences, you might want to read up 
on the docs for log4j and see for youself that log4j is infinitely more 
powerful than the j2sdk1.4.x logging and is compatible with
Java 1.1+.  Log4j-1.3 will provide even more power and will be compatible 
with jdk1.2+.  Either way, the way you define loggers in your code is 
really no different between the two logging frameworks.  In fact, all you'd 
have to do to switch between the two for most cases would be to switch the 
import statement from import org.apache.log4j.Logger; to import 
java.util.logging.Logger; and vice-versa.  See the following for details:

http://qos.ch/logging/thinkAgain.html


I'm not going to detail all the features.  That has already been done.  If 
you want to get a fast start, the main contributor to Log4j wrote a book 
about it.  I suggest grabbing a copy to get up to speed quickly:

http://qos.ch/log4jBook.html

of course there is free documentation here:

http://jakarta.apache.org/log4j/docs/documentation.html


Jake


At 03:59 PM 10/22/2002 -0700, you wrote:


I am planning on using log4j within several tomcat based applications.
My question is, where is the best place to install log4j.jar?

Shoud I place it in $TOMCAT_HOME/common/lib and also place the
log4j.properties file in the same directory, or should I place a copy of
log4j.jar in the WEB-INF/lib directory of each application and maintain
a separate log4j.properties files for each application?

Thaks,
CC


--
This message contains confidential information and is intended only for
the individual named. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately by e-mail if you have received this e-mail by mistake and
delete this e-mail from your system. E-mail transmission cannot be
guaranteed to be secure or error-free as information could be
intercepted, corrupted, lost, destroyed, arrive late or incomplete, or
contain viruses. The sender therefore does not accept liability for any
errors or omissions in the contents of this message, which arise as a
result of e-mail transmission. If verification is required please
request a hard-copy version.

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org



RE: mod_jk - Apache 2.0.43 - Tomcat 4.1.12 config issues on Solaris 8

2002-10-22 Thread Tref Gare
In the hope that someone can clarify how this has worked or that this will help 
someone else,  I seem to have resolved the issue we were having getting mod_jk working 
with Apache 2.0.43 and Tomcat 4.1.12.
 
As far as I can make out the problem was associated with the automatically configured 
mod_jk.conf.
 
I was originally following the (some may say) lazy route of getting apache to create 
the mod_jk.conf file automatically and then including it in the http.conf.  However 
the generated file was placing all of the JkMount instructions within a Virtual Host 
localhost tag.  I was including this file immediately below the DSO LoadModules area 
of httpd.conf.
 
On a bit of a whim (having no hair left to tear out) I manually added the data within 
mod_jk.conf to the httpd.conf.
 
More particularly I added the following beneath the DSO LoadModules section:
 
IfModule !mod_jk.c
  LoadModule jk_module modules/mod_jk.so
/IfModule

then I added the basic jk commands to the very end of httpd.conf (ie: after everything 
else)
 
JkWorkersFile /opt/jakarta-tomcat-4.1.12/conf/jk/workers.properties
JkLogFile /opt/jakarta-tomcat-4.1.12/logs/mod_jk.log

JkLogLevel debug

JkMount /examples/* ajp13
JkMount /examples ajp13
 
For reasons I'm almost entirely unclear about this configuration now works fine.
 
As I say.  If anybody can clarify why I'd rest easier, but in the meantime it may help 
some other poor soul.
 
Cheers
 
Tref Gare
 
 

-Original Message- 
From: Tref Gare 
Sent: Wed 23/10/2002 12:20 
To: [EMAIL PROTECTED] 
Cc: 
Subject: mod_jk - Apache 2.0.43 - Tomcat 4.1.12 config issues on Solaris 8


 


winmail.dat--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org


Re: Jasper redistribution issues

2002-10-22 Thread Bill Barker
Tomcat (including Jasper) are distributed with the Apache License
http://www.apache.org/LICENSE.  In particular, you are free to bundle
Jasper, subject to the rules in the license.

Eugene Zhuravlev [EMAIL PROTECTED] wrote in message
news:003601c279eb$f6f015c0$2301a8c0;Labs.IntelliJ.Net...
 Hello,

 Could anyone help me with the following question:
 Does Tomcat license allow 3-rd party tools to bundle Jasper jars?
 I'm asking because I haven't found any mentioning about certain libraries
 redistribution in the licence agreement.
 We are interested in bundling with our IDE the following libraries from
 Tomcat 4.0.6 distribution:

 jasper-compiler.jar
 jasper-runtime.jar
 servlet.jar

 Thanks in advance -

 Best regards,
 Eugene Zhuravlev
 JetBrains, Inc, http://www.intellij.com
 Develop with pleasure!





--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: Servlet as Virtual Include in ASP file

2002-10-22 Thread Nicholas Orr
What is the default.asp?page= actually doing? When I was doing ASP I would
do this only to include something out of a database.  You may find that what
default.asp is doing is not very complex and you could just replicate it in
your servlets.

I don't know, but you haven't really given enough information.
Need more information to help you.
Does the whole site currently run from default.asp? And it does what
suggested up top.

-Original Message-
From: Kurisu QT [mailto:kurisuqt;yahoo.com] 
Sent: Wednesday, 23 October 2002 5:36 AM
To: [EMAIL PROTECTED]
Subject: Servlet as Virtual Include in ASP file


My company's website uses default.asp?page= to precede
the actual file being called.  Because my project uses
servlets and must be integrated into the site, I'm
going nuts trying to figure out if a servlet can be
called as an virtual include in an ASP file. Or can I
do the reverse-- call an ASP file as a virtual include
within a servlet.

My only other option is to break down the default.asp
page into htm pages and call them in the servlet, but
then i'm dealing with updates in 2 places, rather than
one.

Any info would be appreciated.
Thanks.

 

__
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
http://webhosting.yahoo.com/

--
To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org


**
The information contained in this e-mail is confidential and is
intended only for the use of the addressee(s).
If you receive this e-mail in error, any use, distribution or
copying of this e-mail is not permitted. You are requested to
forward unwanted e-mail and address any problems to the
MIM Holdings Limited Support Centre.

For general enquires:   ++61 7 3833 8000
Support Centre e-mail:  [EMAIL PROTECTED]
Support Centre phone:   Australia 1800500646
International ++61 7 38338042
**


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: Database Issues

2002-10-22 Thread Sexton, George
Change:

database.default.url=jdbc:postgresql://localhost/jetspeed

to

database.default.url=jdbc:postgresql://localhost:5432/jetspeed

Also, make sure that PostgreSQL is accepting TCP connections. Check the
postgresql.conf (on RedHat this is /var/lib/pgsql/data). If you have
connection problems, set 127.0.0.1 to be trusted in pg_hba.conf.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:brendan.richards;draftlondon.com]
Sent: 22 October, 2002 9:12 AM
To: [EMAIL PROTECTED]
Subject: Database Issues


Apologies in advance for posting a repeat of earlier messages but I've yet
to come across a solution to my problem...

I'm attempting to get jetspeed working with PostgreSQL.
Following initial abortive attempts, I've installed the latest versions of
both Tomcat (4.1.12) and Postgresql(7.2.3) to ensure I have clean builds
but the issue remains.

The error when starting jetspeed is:

Horrible Exception: java.lang.Error: Error in
BasePeer.initTableSchema(TURBINE_USER): Connection object is null!
 at
org.apache.jetspeed.om.security.turbine.BaseTurbineUserPeer.initClass(BaseTu
rbineUserPeer.java:145)
 at
org.apache.jetspeed.om.security.turbine.BaseTurbineUserPeer.clinit(BaseTur
bineUserPeer.java:124)

..etc...



my torque.properties file looks like this:

database.default=jetspeed

database.default.driver=org.postgresql.Driver
database.default.url=jdbc:postgresql://localhost/jetspeed
database.default.username=jetspeed
database.default.password=



with a jetspeed database setup from the scripts provided and pjdbc2.jar
intsalled in the lib directory from jdbc.postgresql.org



I've seen people with similar errors using both postgreSQL and mySQL.

I've also tried removing hsql.jar from the lib directory to make sure
there is no classname clash between the hsql and postgres jdbc jars.


Any Ideas??


Brendan Richards


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Do I need to delete the app directory for new deployment?

2002-10-22 Thread Billy Ng
I notice if I just copy the was file and not delete the old app directory, tomcat will 
not extract the new war file.  Is there any setting in the web.xml to enforce tomcat 
to extract the war file after restarting?

Thanks!

Billy Ng



tomcat's web xml

2002-10-22 Thread Mark Goking

in your web.xml suppose your login page is login.jsp

so when you go to a url, it shows u the login page before you are able to access the 
page that you wish to access

how can you set it in the configuration such that when the webserver shows you the 
login page, it simulates a redirection so that you can get
the value of request.getHeader(referer)

problem is, that value is always null. unless i do a response.sendRedirect() to a 
certain page, and it shows the login page

mark

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.404 / Virus Database: 228 - Release Date: 10/15/2002
 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: Security RISK !

2002-10-22 Thread Nikola Milutinovic
Sigurður Bjarnason wrote:

Hi all

The question is.. is there any security risk if I Have the Apache DocumentRoot
pointing straight to the webapps folder ?!


First of all, Apache cannot handle JSPs and has no knowledge of Servlets. 
Second, if both Apache and Tomcat-via-connector access the same dir, won't there 
be a confusion? Third, yes, it is a security risk, since not only protection in 
Tomcat is bypassed, but Apache might display your JSP source.

Nix.


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org



Re: Manager?

2002-10-22 Thread Craig R. McClanahan


On Wed, 23 Oct 2002, Bryan Dollery wrote:

 Date: Wed, 23 Oct 2002 16:55:40 +1300
 From: Bryan Dollery [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Manager?

 Hi,

 Tomcat 4.1.12 question:

 1. Install and Deploy manager functions - what's the difference?

 The documents mention something about deploy copying and install not doing
 so, but I can't find any more information on this. I've looked back through
 this list's archives and can't find any other mention of the difference.


Install mounts a WAR file or directory right where it currently sits,
with no copying.  In effect, it dynamically creates a Context element
that has an absolute path for the docBase attribute.  Because of this,
the WAR or directory must exist on the server that is running Tomcat.
Because no copying occurs, this can happen pretty quickly.

Deploy uploads a WAR file to a private location within the Tomcat
directory hierarchy, and runs the webapp directly from there.  Because of
this, you can deploy to a Tomcat running on a different server than where
you are.  NOTE - The deploy command uses an HTTP PUT transaction, so
it's not usable directly from a browser.  The easiest way to use it, then,
is to utilize the custom Ant task that is provided.

The deploy mechanism is designed for easy integration into tools.  For
example, the deploytool GUI in the Java Web Services Developer Pack uses
the deploy function behind the scenes for you.

 2. How does tomcat handle manager deployed files?


Note that, in a properly designed webapp, you should not have to care
about this.  But let's answer the questions for curiousity's sake.

 If I deploy (manager deploy) a simple war file, with a single html page
 linking to a simple hello-world servlet it works fine. But, I don't know
 what tomcat is doing with the contents of the war.

 I can see that the war itself is copied to the manager work directory, and
 that the class files are unpacked. However, the html file, and the web.xml
 file don't get unpacked. Does tomcat access these directly from the war,
 and if so does it cache them?


Tomcat is perfectly happy to run an application directly from a WAR file
if you want to.  The classes and JARs have to be copied so that they are
accessible to the Java compiler utilized to convert your JSP pages into
servlets.  All the other resources are accessed directly from the WAR.

Note that exactly the same thing happens to a WAR file that you put in the
webapps directory, if you turn the unpackWARs option off.

One ramification of running directly from a WAR file *is* visible to your
webapps - the ServletContext.getRealPath() method will always return null,
because there is no such thing as a real path to a resource embedded in
a WAR.  To avoid any difficulty caused by this, you should always program
using ServletContext.getResource() and ServletContext.getResourceAsStream()
if you need access to resources in the WAR.  These calls are guaranteed to
work portably on all servlet containers -- running from unpacked directories
the way Tomcat does is a Tomcat specific feature, and is *not* defined in
the servlet specification.

 Thanks for any answers you can provide.

 Cheers,

 Bryan

Craig


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: Do I need to delete the app directory for new deployment?

2002-10-22 Thread Craig R. McClanahan


On Tue, 22 Oct 2002, Billy Ng wrote:

 Date: Tue, 22 Oct 2002 22:56:54 -0700
 From: Billy Ng [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Do I need to delete the app directory for new deployment?

 I notice if I just copy the was file and not delete the old app
 directory, tomcat will not extract the new war file.  Is there any
 setting in the web.xml to enforce tomcat to extract the war file after
 restarting?


No.  You have to delete the old directory yourself.

The reason for this design choice is that *way* too many developers seem
to edit changes directly in the directory after it's been unpacked -- and
if Tomcat unconditionally unpacked the WAR every time, we'd get thousands
of bug reports that Tomcat wiped out my changes!.

A much better development approach is to separate your webapp sources into
their own directory, and have a build/deploy mechanism that assembles the
webapp and deploys it as needed.  An example of how to set this up with
Ant is documented in the Application Developer's Guide that is included
with Tomcat.

 Thanks!

 Billy Ng


Craig



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Sorry - Forgot subject : Tomcat 4.1.12 IBM HTTP Server 1.3.19.3

2002-10-22 Thread Kristian A. Leth
I'm having a bit troubles with configuring Tomcat 4.1.12 LE for use with
IBM HTTP Server 1.3.19.3 (Powered by Apache) on Windows 2000 Server.
I'm trying to configure the connection through the webapp connector (
mod_webapp) - Is this the right track or am I tracing shadows ?
If it's the right way to do it, I will get it working.

If anyone has a fullblown how-to or just a couple of hints I would be very
glad to read it.

Regards

Kleth

--

Kristian A. Leth.
Systemsdeveloper, Maersk Data A/S.
--
Professionals are predictable;
the world is full of dangerous amateurs.
--





--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: Security RISK !

2002-10-22 Thread Dennis Muhlestein
One issue I am aware of, but may not apply, is that apache I think has a
setting that can autofill in file extensions for you.  If you put the
files in the same folder you may want to check for that.

If you map *.jsp to go to tomcat, index.jsp goes to tomcat.  But if you
type in /index apache, under that circumstance, would show the source of
the jsp. 

There is also an issue with tomcat 4.0.4 and before if you type in the
default servlet with the jsp name as an extension, it'll show the
source.  That is with or without apache though.

-Dennis

On Tue, 2002-10-22 at 10:23, Sigurður Bjarnason wrote:
 
 Hi all
 
 I am using apache 1.3 and tomcat 4.0.4 together
 
 I use apache to serve all the static content, witch I have a special directory for 
and Tomcat serve all the jsp and servlet stuff..
 
 The question is.. is there any security risk if I Have the Apache DocumentRoot 
pointing straight to the webapps folder ?!
 ¨
 Best Regards
 Siggi
 
 
 --
 To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
 


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




<    1   2