Re: resend:correction-org.gjt.mm.mysql.driver

2001-05-04 Thread Tom Woteki aka Dr. Wo
In response to your second posting below, it seems to me that you are not successfully authenticating yourself to your mysql server. Have you provided the proper authentication credentials in the xml file? Have you set up corresponding permissions in mysql? Is the url to the database correct?

The answer to your first set of questions is similarly in two parts. You presumably have set up the mysql database that you are using for realm (i.e. role) authentication and its tables such that the answers to these questions are straightforward. For example, you might have a table called "users" with a column called "user_name" (within a database called "userroles" say). These then would be the answers to your first 2 questions. So on for the rest.

Regards,
Tom Woteki aka Dr. Wo

how to setup in the
userTable=?
userNameCol=?
userCredCol=?
userRoleTable=?
roleNameCol=?


On Friday, May 4, 2001, at 03:32 AM, yuzz wrote:

again...i receive this error

FATAL:java.lang.RuntimeException: JDBCRealm.start.readXml:
java.sql.SQLException: Server configuration denies access to data source
java.lang.RuntimeException: JDBCRealm.start.readXml: java.sql.SQLException:
Server configuration denies access to data source
at org.apache.tomcat.request.JDBCRealm.contextInit(JDBCRealm.java:439)
at
org.apache.tomcat.core.ContextManager.initContext(ContextManager.java:491)
at org.apache.tomcat.core.ContextManager.init(ContextManager.java:453)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)

how to solve this??



Re: JDBC realm - Pls help

2001-02-22 Thread Tom Woteki

Did you in fact set up the userTable and userRoleTables tables in Oracle and
did you specify security constraints in your web.xml for the application?
-- 
Tom Woteki, a.k.a. Dr. Wo
mail to:<[EMAIL PROTECTED]>
202-544-2743 (fax)
http://www.woteki.com/wines <-- a pure Java, Apache-Tomcat web application
running under MacOSX
> From: Suchi Somasekar <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> Date: Wed, 21 Feb 2001 12:31:52 -0500
> To: [EMAIL PROTECTED]
> Subject: JDBC realm - Pls help
> 
> Hi
> I am a new user of tomcat and I am having trouble getting the JDBC realm
> to work. I am using Tomcat 3.2.1 on Windows2000 and I am testing a small
> sample application that I wrote. Everything including the user
> authentication works great when I use the "SimpleRealm".
> But, When I tried to use the JDBC realm the server will not start, it
> just dies with no error messages, no log messages.
> I have made absolutely no other changes except comment out the
> SimpleRealm and include the JDBC realm information to the server.xml and
> added the Oracle driver in tomcat/lib. The following is the relevant
> portion of my server.xml
> 
> 
> 
> className="org.apache.tomcat.request.JDBCRealm"
>   debug="99"
>driverName="oracle.jdbc.driver.OracleDriver"
> connectionURL="jdbc:oracle:thin:@testserver:1521:TEST3"
>   connectionName="readonly"
> connectionPassword="nowrites"
> 
>   userTable="usernames"
>   userNameCol="username"
>   userCredCol="password"
>userRoleTable="userroles"
>  roleNameCol="rolename" />
> 
> Can someone please tell me what I am missing.
> 
> Thanks
> Suchithra
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 


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




Re: Apache SetEnv variables and tomcat

2001-02-22 Thread Tom Woteki

The authentication values (user name, user role and password) are not stored
in the web.xml file. They are stored in your database which tables
presumably can be password protected. What is in the web.xml file is
configuration info concerning the resources that are to be protected, what
roles have access to them and the level of security that applies to the
resources.

The servlet needing authentication protection does not need access to
web.xml at all so the file can be owned by root (or not) with the server
running as root and having access to it.

I believe all this accomplishes the objective stated in your third point
below.

Hope this helps., If not I'm afraid I'm out of ideas.
-- 
Tom Woteki, a.k.a. Dr. Wo
mail to:<[EMAIL PROTECTED]>
202-544-2743 (fax)
http://www.woteki.com/wines <-- a pure Java, Apache-Tomcat web application
running under MacOSX
> user/password the servlet uses to access the database.  If the values
> are simply stored in web.xml, what is to prevent anyone with access to
> the system from reading the web.xml file and compromising the database

> On the other hand, if web.xml is root
> protected (i.e., need root privileges to read it), other than running
> the servlet as root, how do I read the file.  That's the quandry.

> What I need is a similar mechanism of securing the
> servlet's credentials against unauthorized access while still enabling
> the servlet to read them up. 


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




Re: Running servlet from /

2001-02-21 Thread Tom Woteki

You need to do 2 things in your web.xml file: name the servlet and map it to
a URL. Something like the following is what you'll have to do:


yourServletName
your.servlets.fully.qualified.ClassName



yourServletName
/


The first declaration associates a logical name with the actual fully
qualified class name of the servlet.

The second associates the named servlet with a url pattern to which Tomcat
will respond by invoking the servlet. In your case you want the pattern to
be the root.

Now I am reasoning by analogy with what I know works wherein one maps the
servlet to say /foobar/myServlet. I haven't actually tried running a servlet
from /.

Good luck.
-- 
Tom Woteki, a.k.a. Dr. Wo
mail to:<[EMAIL PROTECTED]>
202-544-2743 (fax)
http://www.woteki.com/wines <-- a pure Java, Apache-Tomcat web application
running under MacOSX


> From: Donie Kelly <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> Date: Wed, 21 Feb 2001 06:25:36 -0500
> To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> Subject: RE: Running servlet from /
> 
> Thanks Tom
> How exactly do I do that. My servlet is located in
> /webapps/ROOT/WEB-INF/classes? At the moment I can access it using
> /servlet/serbletName.
> 
> Forgive me, because I'm new to Tomcat but can you show me exactly how to do
> this...
> 
> Thanks in advance
> Donie
> 
> -Original Message-
> From: Tom Woteki [mailto:[EMAIL PROTECTED]]
> Sent:21 February 2001 01:14
> To:tomcat user help; Donie Kelly
> Subject:Re: Running servlet from /
> 
> Map the servlet to an appropriate URL in the web.xml file or make the home
> page into a jsp file.
> 
>> From: Donie Kelly <[EMAIL PROTECTED]>
>> Reply-To: [EMAIL PROTECTED]
>> Date: Tue, 20 Feb 2001 15:10:17 -0500
>> To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
>> Subject: Running servlet from /
>> 
>> Hi 
>> 
>> Hi all
>> 
>> I want a servlet to run when I use the URL http://wilson/ <http://wilson/>
>> 
>> i.e., no servlet specified. How can this be easily achieved?
>> 
>> Donie
>> 
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, email: [EMAIL PROTECTED]
>> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 


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




Re: Running servlet from /

2001-02-20 Thread Tom Woteki

Map the servlet to an appropriate URL in the web.xml file or make the home
page into a jsp file.

> From: Donie Kelly <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> Date: Tue, 20 Feb 2001 15:10:17 -0500
> To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> Subject: Running servlet from /
> 
> Hi 
> 
> Hi all
> 
> I want a servlet to run when I use the URL http://wilson/ 
> 
> i.e., no servlet specified. How can this be easily achieved?
> 
> Donie
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 


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




Re: Tomcat + Apache + mod_jk and virtual hosts

2001-02-20 Thread Tom Woteki

I had the same objective, went through the same agony and finally got it to
work. Glancing at your conf files I'll hazard the following guess:

The docBase parameters are relative to the root of the host. This example is
for one of my virtual hosts and it works:


Httpd.conf:


ServerName www.woteki.com
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /Library/WebServer/Documents/www

#
# /wines context
#
Alias /wines "/Library/WebServer/Documents/www/wines"

Options Indexes FollowSymLinks


# mount all JSP files and /servlet/ uri to Tomcat
JkMount /wines/servlet/* ajp13
JkMount /wines/*.jsp ajp13


AllowOverride None
order deny,allow
deny from all
allow from cauchy.woteki.com



AllowOverride None
deny from all




Server.xml:


    
    
-- 
Tom Woteki, a.k.a. Dr. Wo
mail to:<[EMAIL PROTECTED]>
202-544-2743 (fax)
http://www.woteki.com/wines <-- a pure Java, Apache-Tomcat web application
running under MacOSX

> Can anyone help?
> 
> I've been trying to achieve very simple name based virtual hosting
> with very little luck. I have read the mod_jk documentation but not
> found what I'm looking for. I've also read a vast number of postings
> in this mailing list, but found 99% more questions than answers.
> 
> 
> I DO NOT want to place things anywhere under $TOMCAT_HOME.
> 
> Here are snippets of the various config files, set up as recommended in
> the mod_jk documentation.
> 
> from server.xml
> ---
> 
> 
>   docBase="/home/www.domain1.com"
>crossContext="true"
>debug="0"
>reloadable="true"
>trusted="false" >
>   
> 
> 
>   docBase="/home/www.domain2.com"
>crossContext="true"
>debug="0"
>reloadable="true"
>trusted="false" >
>   
> 


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




Re: Setting up Virtual Hosts

2001-02-20 Thread Tom Woteki

I have a similar observation and similar set up to that descried by Rory.

-- 
Tom Woteki, a.k.a. Dr. Wo
mail to:<[EMAIL PROTECTED]>
202-544-2743 (fax)
http://www.woteki.com/wines <-- a pure Java, Apache-Tomcat web application
running under MacOSX
> From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> Date: Tue, 20 Feb 2001 14:28:35 -0500
> To: <[EMAIL PROTECTED]>
> Subject: Re: Setting up Virtual Hosts
> 
> In my experience I have had to stop using the auto generated
> "mod_jk.conf-auto". I lose too much control over the configuration. Once I
> get the configuration I like, however, I rarely have to change it. So it
> works for me.


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




Re: Apache SetEnv variables and tomcat

2001-02-20 Thread Tom Woteki

A very different approach from the one that you are used to, but which is
explicitly  supported by Tomcat, is to use the JDBCRealm class to perform
user authentication in which you look up authentication credentials in an
ODBC database.

You can use either basic authentication, in which the browser obtains the
authentication info, or form based in which you prepare a (jsp based) form
of your own devise. You must configure Tomcat in the server.xml file to do
this and you must configure the application in the web.xml file. In the
latter you can specify collections of URL resources that need be
authenticated and user roles (i.e authentication levels) that can have
access to them. Finally, you need an ODBC compliant database and JDBC
driver.

Regards,
-- 
Tom Woteki, a.k.a. Dr. Wo
mail to:<[EMAIL PROTECTED]>
202-544-2743 (fax)
http://www.woteki.com/wines <-- a pure Java, Apache-Tomcat web application
running under MacOSX
> 
> What I am stumped on is how to accomplish the same in servlets running
> under apache/tomcat.  I know you can set properties files for servlets
> (though I havn't tried it yet), but other than running the servlet
> under root I don't see how to read up root protected data.
> 
> Thanks,
> Rob


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




Re: Using a servlet superclass

2001-02-11 Thread Tom Woteki

Perhaps this will work, though I am not so certain of the life cycle of a
servlet to say for sure:

Define the default (i.e. no argument) constructor for SuperServlet (its
signature is: SuperServlet() ) within which you call init. Any child of
SuperServlet should then automagically call init (or any override of it)
when its own default constructor is invoked: default constructors are
automatically invoked to the top of the inheritance hierarchy.

Dr. Wo
-- 
Tom Woteki, a.k.a. Dr. Wo
mail to:<[EMAIL PROTECTED]>
202-544-2743 (fax)
http://www.woteki.com/wines <-- a pure Java, Apache-Tomcat web application
running under MacOSX

> From: Jill Stephenson <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> Date: Sun, 11 Feb 2001 20:52:03 -0500
> To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> Subject: Using a servlet superclass
> 
> I have a number of servlets in my application that need to
> perform common initialisation, etc.  So I was thinking of
> creating a superclass that has an init method that does all
> of the common work, eg.,
> 
> public class SuperServlet extends HttpServlet {
> public void init() {
>   // do common initialisation stuff in here
> } // init
> } // SuperServlet
> 
> Then all the workers servlets would extend SuperServlet
> rather than HttpServlet, eg.,
> 
> public class WorkerServlet extends SuperServlet {
> ...
> } // WorkerServlet
> 
> This seems to be OK, until I implement init in the
> WorkerServlet, as the init method in the SuperServlet
> does not then get invoked.  While I can call super.init()
> in the WorkServlet, I want this to be handled automatically
> as I can bet on someone forgetting this step, eg.,
> 
> public class WorkerServlet extends SuperServlet {
> public void init() {
>   // don't want to have to make this call ==> super.init();
> } // init 
> ...
> } // WorkerServlet
> 
> Is there any way to implement this ?
> 
> 
> Jill
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 


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




Re: mod_jk.conf-auto + ajp13

2001-02-11 Thread Tom Woteki

I understand what you are saying, but you only need manually update the auto
config file when you actually add a new web app. Up until that point the
regenerated config file remains constant. You don't even need to touch it
while you are revising an existing app.

Further, you could run Tomcat stand alone, debug any new app, then just
before putting it into production (with Apache) you would manually alter the
auto config file.

Having said that (which you may already know), I know of no way to
accomplish what you are suggesting. Given Apache's recommendation to use
ajp13 it would seem that the auto config file should be generated that way.

Tom
-- 
Tom Woteki, a.k.a. Dr. Wo
mail to:<[EMAIL PROTECTED]>
202-544-2743 (fax)
http://www.woteki.com/wines <-- a pure Java, Apache-Tomcat web application
running under MacOSX

> From: Rob Tanner <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> Date: Sun, 11 Feb 2001 17:55:17 -0500
> To: [EMAIL PROTECTED], [EMAIL PROTECTED]
> Subject: Re: mod_jk.conf-auto + ajp13
> 
> That's what I've been doing -- I don't use mod_jk.conf-auto at all.
> The point is that I have to maintain another file by hand that I
> shouldn't have to, a file almost exactly identical to mod_jk.conf-auto
> other than specifying the ajp13 connector.  Is there a way to get
> mod_jk.conf-auto to use ajp13 by default, otherwise, what's the purpose
> of the conf-auto file in the first place?
> 
> -- Rob
> 
> --On Sunday, February 11, 2001 04:34:03 PM -0500 Rick Roberts
> <[EMAIL PROTECTED]> wrote:
> 
>> Make the change in mod_jk.conf
>> 
>> #JkMount /*.jsp ajp12
>> #JkMount /servlet/* ajp12
>> #JkMount /examples/* ajp12
>> 
>> JkMount /*.jsp ajp13
>> JkMount /servlet/* ajp13
>> JkMount /examples/* ajp13
>> 
>> 
>> 
>> Rick
>> 
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, email: [EMAIL PROTECTED]
>> 
> 
>  _ _ _ _   __ _ _ _ _
> /\_\_\_\_\/\_\ /\_\_\_\_\_\
>/\/_/_/_/_/   /\/_/ \/_/_/_/_/_/  QUIDQUID LATINE DICTUM SIT,
>   /\/_/__\/_/ __/\/_//\/_/  PROFUNDUM VIDITUR
>  /\/_/_/_/_/ /\_\  /\/_//\/_/
> /\/_/ \/_/  /\/_/_/\/_//\/_/ (Whatever is said in Latin
> \/_/  \/_/  \/_/_/_/_/ \/_/  appears profound)
> 
> Rob Tanner
> McMinnville, Oregon
> [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 


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




Re: tomcat.bat file

2001-02-11 Thread Tom Woteki
Title: Re: tomcat.bat file



Are Tomcat’s jar files in your classpath? All the jar files in $TOMCAT_HOME/lib need to be in the class path.

From: "wkc" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Date: Sat, 10 Feb 2001 12:13:33 -0500
To: <[EMAIL PROTECTED]>
Subject: tomcat.bat file


Can some please tell me how to configure the tomcat.bat file?...since I am getting a NoClassDefFound error when I try to access the JSP examples..
 
Some please help?.








Re: JSP 404 Problem

2001-02-11 Thread Tom Woteki

In addition to the online documentation
(http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/index.html) there
are several good books that cover setting up Tomcat etc. See for example,
³Web Development with Java Server Pages² by Fields & Kolb.

Try the following: clean out the directory $TOMCAT_HOME/work. That's where
the file you referenced is located after Tomcat creates its wrapper around
your original jsp file. I don't guarantee this will work but it often does
after one has changed the jsp file and somehow Tomcat doesn't recompile it
properly.


> From: "Matt Campbell" <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> Date: Sat, 10 Feb 2001 11:30:43 -0500
> To: [EMAIL PROTECTED]
> Subject: JSP 404 Problem
> 
> Hi All,
> 
> Just started with Tomcat and I'm having a bit of trouble with JSPs.  I have a
> webapp up and going that I've been using to play around with servlets, its all
> working fine.  As far as I knew all I had to do to run JSPs was place the JSP
> file in the same directory as my HTML files, in this case
> $TOMCAT_HOME/webapps/coreapp/
> 
> Well I'm doing that and this is the error I get:
> 
> 
> 
> Error: 404
> 
> Location: /coreapp/BGColor.jsp
> 
> JSP file 
> ta-tomcat/work/localhost_8080%2Fcoreapp/_0002fBGColor_0002ejspBGColor_jsp_0.ja
> va 
> (Permission denied)" not
> found 
> 
> ***
> 
> Can anyone tell me why?
> 
> I've had a look in what Tomcat Documentation I have which is the Users Guide
> and 
> the App Development Guide.  Are there any other good sources of information?
> 
> Cheers
> 
> Matt
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 


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




Re: **** How do I configure Tomcat for use with j2ee ****

2001-02-11 Thread Tom Woteki
Title: Re:  How do I configure Tomcat for use with j2ee 



In addition to the online documentation (http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/index.html) there are several good books that cover these questions. See for example, “Web Development with Java Server Pages” by Fields & Kolb.

From: "jon" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Date: Sat, 10 Feb 2001 20:52:19 -0500
To: <[EMAIL PROTECTED]>
Subject:  How do I configure Tomcat for use with j2ee 


What do I need to do to getTomcat to work with enterprise architectures?  Can it be done at all or do I have to use a weblogic or something comparable?  Download j2ee and include jar files in classpath?  Or is there more?  How must I organize directory structures?








Re: mod_jk vs ApacheModuleJServ.dll

2001-01-07 Thread Tom Woteki

Scott:
I don't do windows so I may be a bit off base. There is some reference in
the Tomcat user's guide on the difference between Tomcat (with mod_jserv)
and Jserv. Then in the still newer documentation with release 3.1.14 there
is a brief comparison of mod_jserv and mod_jk. The bottom line as I
understand it is that mod_jk is the recommended successor to mod_jserv and
replaces it.

-- 
Tom Woteki, a.k.a. Dr. Wo
mail to:<[EMAIL PROTECTED]>
202-544-2743 (fax)
> Can someone point me towards docs or tell me what the difference is between
> mod_jk and ApacheModuleJServ.dll. They are both used for Apache to
> communicate with Tomcat correct? Does one replace the other? Am I clueless?
> Thanks, -Scott


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




Re: anyone using ajp13 protocol with mod_jk?

2001-01-02 Thread Tom Woteki

Yes I do mean $TOMCAT/work and I know they are generated by Tomcat, which I,
in the circumstances I described to you, I "su"-ed to root to launch. In the
event I had a mixture of work files that were owned by root and owned by me
-- however it got that way. When I reverted all ownership back to me things
were fine and have been ever since and I have been merrily using ajp13
since. All I know is -- it worked!

Hope this helps. In any case it wont hurt to try. You can always chown them
back to tomcat.

Tom

> From: William Au <[EMAIL PROTECTED]>
> Date: Tue, 2 Jan 2001 10:29:05 -0500
> To: Tom Woteki <[EMAIL PROTECTED]>
> Cc: tomcat user help <[EMAIL PROTECTED]>
> Subject: Re: anyone using ajp13 protocol with mod_jk?
> 
> By "webapp work files" do you mean directories and files under $TOMCAT/work?
> Those directories and files are generated by tomcat.  I am running tomcat
> 3.2.1 as
> root.  So They are all owned by root.
> 
> Am I not supposed to run Tomcat 3.2.1 as root when using the ajp13 protocol?
> 
> Bill
> 
> Tom Woteki wrote:
> 
>> I was having what seems to have been a similar problem though I can't say
>> for sure because I didn't have my logs set up the way you appear to have. In
>> any case, the root problem for me was that the permissions on my webapp work
>> files were set to root. Upon setting ownership recursively to me everything
>> with ajp13 seems to be working well.
>> 
>> --
>> Tom Woteki, a.k.a. Dr. Wo
>> mail to:<[EMAIL PROTECTED]>
>> 202-544-2743 (fax)
>>> From: William Au <[EMAIL PROTECTED]>
>>> Reply-To: [EMAIL PROTECTED]
>>> Date: Thu, 28 Dec 2000 18:42:09 -0500
>>> To: [EMAIL PROTECTED]
>>> Subject: anyone using ajp13 protocol with mod_jk?
>>> 
>>> Is anyone actually using the ajp13 protocol with mod_jk?
>>> I tried it but had to switch back to ajp12.  It seems faster
>>> but less reliable.  I am getting the following error messages
>>> in mod_jk.log.  All these messages occur multiple
>>> times.  They only occur when I use the ajp13 protocol.
>>> 
>>> In mod_jk.log:
>>> 
>>> [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 145
>>> [jk_ajp13_worker.c (173)]: In jk_endpoint_t::connect_to_tomcat, failed
>>> errno = 145
>>> [jk_ajp13_worker.c (584)]: Error connecting to the Tomcat process.
>>> [jk_ajp13_worker.c (325)]: Error ajp13_process_callback - write failed
>>> 
>>> In tomcat.log:
>>> 
>>> 2000-12-28 04:04:07 - Ctx( /examples ): Exception in: R( /examples +
>>> /10k.jsp + null) - java.lang.NullPointerException
>>>   at _0002f_00031_00030k_0002ejsp10k_jsp_0._jspService(Compiled
>>> Code)
>>>   at org.apache.jasper.runtime.HttpJspBase.service(Compiled Code)
>>>   at javax.servlet.http.HttpServlet.service(Compiled Code)
>>>   at
>>> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Compiled
>>> Code)
>>>   at org.apache.jasper.servlet.JspServlet.serviceJspFile(Compiled
>>> Code)
>>>   at org.apache.jasper.servlet.JspServlet.service(Compiled Code)
>>>   at javax.servlet.http.HttpServlet.service(Compiled Code)
>>>   at org.apache.tomcat.core.ServletWrapper.doService(Compiled
>>> Code)
>>>   at org.apache.tomcat.core.Handler.service(Compiled Code)
>>>   at org.apache.tomcat.core.ServletWrapper.service(Compiled Code)
>>>   at
>>> org.apache.tomcat.core.ContextManager.internalService(Compiled Code)
>>>   at org.apache.tomcat.core.ContextManager.service(Compiled Code)
>>>   at
>>> org.apache.tomcat.service.connector.Ajp13ConnectionHandler.processConnection
>>> (C
>>> ompiled
>>> Code)
>>>   at org.apache.tomcat.service.TcpWorkerThread.runIt(Compiled
>>> Code)
>>>   at
>>> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled Code)
>>>   at java.lang.Thread.run(Compiled Code)
>>> 
>>> Bill
>>> 
> 


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




Re: anyone using ajp13 protocol with mod_jk?

2001-01-01 Thread Tom Woteki

I was having what seems to have been a similar problem though I can't say
for sure because I didn't have my logs set up the way you appear to have. In
any case, the root problem for me was that the permissions on my webapp work
files were set to root. Upon setting ownership recursively to me everything
with ajp13 seems to be working well.

-- 
Tom Woteki, a.k.a. Dr. Wo
mail to:<[EMAIL PROTECTED]>
202-544-2743 (fax)
> From: William Au <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> Date: Thu, 28 Dec 2000 18:42:09 -0500
> To: [EMAIL PROTECTED]
> Subject: anyone using ajp13 protocol with mod_jk?
> 
> Is anyone actually using the ajp13 protocol with mod_jk?
> I tried it but had to switch back to ajp12.  It seems faster
> but less reliable.  I am getting the following error messages
> in mod_jk.log.  All these messages occur multiple
> times.  They only occur when I use the ajp13 protocol.
> 
> In mod_jk.log:
> 
> [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 145
> [jk_ajp13_worker.c (173)]: In jk_endpoint_t::connect_to_tomcat, failed
> errno = 145
> [jk_ajp13_worker.c (584)]: Error connecting to the Tomcat process.
> [jk_ajp13_worker.c (325)]: Error ajp13_process_callback - write failed
> 
> In tomcat.log:
> 
> 2000-12-28 04:04:07 - Ctx( /examples ): Exception in: R( /examples +
> /10k.jsp + null) - java.lang.NullPointerException
>   at _0002f_00031_00030k_0002ejsp10k_jsp_0._jspService(Compiled
> Code)
>   at org.apache.jasper.runtime.HttpJspBase.service(Compiled Code)
>   at javax.servlet.http.HttpServlet.service(Compiled Code)
>   at
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Compiled
> Code)
>   at org.apache.jasper.servlet.JspServlet.serviceJspFile(Compiled
> Code)
>   at org.apache.jasper.servlet.JspServlet.service(Compiled Code)
>   at javax.servlet.http.HttpServlet.service(Compiled Code)
>   at org.apache.tomcat.core.ServletWrapper.doService(Compiled
> Code)
>   at org.apache.tomcat.core.Handler.service(Compiled Code)
>   at org.apache.tomcat.core.ServletWrapper.service(Compiled Code)
>   at
> org.apache.tomcat.core.ContextManager.internalService(Compiled Code)
>   at org.apache.tomcat.core.ContextManager.service(Compiled Code)
>   at
> org.apache.tomcat.service.connector.Ajp13ConnectionHandler.processConnection(C
> ompiled
> Code)
>   at org.apache.tomcat.service.TcpWorkerThread.runIt(Compiled
> Code)
>   at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled Code)
>   at java.lang.Thread.run(Compiled Code)
> 
> Bill
> 


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




Re: Building mod_jk on Mac OS X

2001-01-01 Thread Tom Woteki

FYI, I discovered this in the macosx-dev (www.omnigroup.com) list archive.
Highly relevant in case you hadn't seen it. And it works!

http://www.omnigroup.com/mailman/archive/macosx-dev/2000-September/004046.ht
ml



> From: James Duncan Davidson <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> Date: Thu, 28 Dec 2000 02:51:50 -0500
> To: <[EMAIL PROTECTED]>
> Subject: Re: Building mod_jk on Mac OS X
> 
> On 12/27/00 9:10 AM, "Tom Woteki" <[EMAIL PROTECTED]> wrote:
> 
>> I am attempting to build mod_jk on Mac OS X (because I don't think there is a
>> pre-built binary). The build fails because the directive #include 
>> in
>> source code fails. There seems to be no such header file anywhere in the OS X
>> public beta distribution.
>> 
>> I am attempting to build using Project Builder, Apple¹s IDE. I have taken
>> this
>> approach because I don¹t know the command line options to pass to the build
>> script for Mac OS X/Darwin.
> 
> At least one of the MacOS X/Darwin developers hangs out on the httpd list.
> If you are serious about hacking Apache based C code on Darwin (a *good*
> thing -- I *love* my MacOS X installation), I'd go check there.
> 
> -- 
> James Duncan Davidson[EMAIL PROTECTED]
> !try; do()
> 


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




Re: What's in the classes directory?

2000-12-30 Thread Tom Woteki
Title: Re: What's in the classes directory?



Based on my set up, it is sufficient to have the 4 jar files that are part of the binary distribution reside in the lib directory that is parallel to the class directory. Nothing more is required.

-- 
Tom Woteki, a.k.a. Dr. Wo
mail to:<[EMAIL PROTECTED]>
202-544-2743 (fax)
From: "Robert Zazueta" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Date: Fri, 29 Dec 2000 18:12:01 -0500
To: <[EMAIL PROTECTED]>
Subject: What's in the classes directory?





We're currently upgrading from 3.1.1 to 3.2.1. In the existing 3.1.1 dist (please keep in mind that I inherited this from another group) there is a directory called /usr/local/jakarta/tomcat/classes which contains  the org.apache.tomcat, org.apache.jasper and javax.servlet packages.  

According to the documentation, the classes directory is meant for additional classes we'd like loaded along with Tomcat. However, these three packages -- at least to my understanding -- should automatically be loaded when Tomcat starts up, as they should be part of the standard tomcat dist and the JDK 1.2. 

So, question 1: Do those packages need to be in the classes directory for 3.2.1 or are they just extra fluff? 

Question 2: Did those classes need to be in there for 3.1.1? Why? 

Thanks a ton! 

Rob Z. 








Building mod_jk on Mac OS X

2000-12-27 Thread Tom Woteki
Title: Building mod_jk on Mac OS X



I am attempting to build mod_jk on Mac OS X (because I don't think there is a pre-built binary). The build fails because the directive #include  in source code fails. There seems to be no such header file anywhere in the OS X public beta distribution.

I am attempting to build using Project Builder, Apple’s IDE. I have taken this approach because I don’t know the command line options to pass to the build script for Mac OS X/Darwin. 

Can anyone help? Has anyone successfully built mod_jk for OS X? How do you go about doing it?

Thanks very much,