Re: JSP problem

2002-02-02 Thread Michael Burke

Randy Layman wrote:

 I assume when you mean access your jsp page through a servlet you
 mean you are calling the RequestDispather's forward method.  This method
 takes paths relative to the root of your webapp.  If your webapp is called
 cdtest, then you would want to forward to just /menu.jsp

 Randy

  -Original Message-
  From: Michael Burke [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, January 30, 2002 10:06 PM
  To: [EMAIL PROTECTED]
  Subject: JSP problem
 
 
  I'm using the build.xml file and ant to deploy my app in tomcat4. The
  app is deployed successfully but when I try to access my jsp page
  through a servlet I get a /cdtest/menu.jsp is not available error.
  Menu.jsp is in the cdtest directory (my apps root directory) under the
  webapps directory. I own all the directories of my webapp and
  the files
  are executable so I don't think that's the problem.. Tomcat's log
  doesn't give an error message so that's not helping. Any suggestions
  would be appreciated.
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

Thanks for the reply Randy, yes that was the problem. That was the next area
I was going to check. Thanks again.


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




User-defined implicit objects

2002-02-02 Thread Dave Ford

I would like to augment JSP's list of implicit objects (request, out, etc.)
with one of my own. I currently know of one way to do this. It requires me
to add a taglib directive and custom tag to the top of every page, which
seems more hassle than it's worth. I was wondering if there's a way to do
this without adding all the junk to the top of every page.

So, instead of this:

%@ taglib uri=.. prefix=me %
me:defineObjects /
%
myImplicitObject.foo();
%

I would like this:

%
myImplicitObject.foo();
%

Q1: Is there a standard way to do this? (I'm guessing no)
Q2: Is there a Tomcat-specific way to do this?

Dave Ford
Smart Soft - The Developer Training Company
http://www.smart-soft.com


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Advanced Ques. w/SSL

2002-02-02 Thread Dean Hiller

I have done the HOW-TO on SSL and it works fine with stand-alone tomcat.  I am 
preparing an installation of tomcat to be installed on many
computers.  I CANNOT create a separate certificate for each computer.  Am I 
screwed  Our installation program installs tomcat, and then changes
server.xml to enable SSL, and how do I deal with the certificates(I mean not 
self-signed ones).  What do I do in this circumstance?  I need one certificate
on every tomcat installation but this is not possible

Any ideas on any of this.
thanks
Dean


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Why this happens

2002-02-02 Thread Dino Cherian K

Hi

I am trying to configure Tomcat 3.3a.rc2 on RedHat Linux 7.0 and Apache
1.3.12. 
Whe I look into the log file for the domain mydom.com it shows this.

2002-02-02 15:47:23 - mydom.com:: Class not found:
org.apache.jasper.servlet.JspServlet
2002-02-02 15:47:23 - mydom.com:: Status code:404 request:R(  +
/test.jsp + null) msg:null
2002-02-02 15:47:42 - mydom.com:: Status code:404 request:R(  +
/test.jsp + null) msg:null
2002-02-02 15:47:52 - mydom.com:: Status code:404 request:R(  +
/test.jsp + null) msg:null


When I look into the mod_jk.log it has the following messages.

[Sat Feb 02 15:47:14 2002]  [jk_connect.c (143)]: jk_open_socket,
connect() failed errno = 111
[Sat Feb 02 15:47:14 2002]  [jk_ajp13_worker.c (196)]: In
jk_endpoint_t::connect_to_tomcat, failed errno = 111
[Sat Feb 02 15:47:14 2002]  [jk_ajp13_worker.c (635)]: Error connecting
to the Tomcat process.
[Sat Feb 02 15:47:14 2002]  [jk_ajp13_worker.c (848)]: In
jk_endpoint_t::service, send_request failed in send loop 0
[Sat Feb 02 15:47:15 2002]  [jk_connect.c (143)]: jk_open_socket,
connect() failed errno = 111
[Sat Feb 02 15:47:15 2002]  [jk_ajp13_worker.c (196)]: In
jk_endpoint_t::connect_to_tomcat, failed errno = 111
[Sat Feb 02 15:47:15 2002]  [jk_ajp13_worker.c (635)]: Error connecting
to the Tomcat process.
[Sat Feb 02 15:47:15 2002]  [jk_ajp13_worker.c (848)]: In
jk_endpoint_t::service, send_request failed in send loop 1
[Sat Feb 02 15:47:15 2002]  [jk_connect.c (143)]: jk_open_socket,
connect() failed errno = 111
[Sat Feb 02 15:47:15 2002]  [jk_ajp13_worker.c (196)]: In
jk_endpoint_t::connect_to_tomcat, failed errno = 111
[Sat Feb 02 15:47:15 2002]  [jk_ajp13_worker.c (635)]: Error connecting
to the Tomcat process.
[Sat Feb 02 15:47:15 2002]  [jk_ajp13_worker.c (848)]: In
jk_endpoint_t::service, send_request failed in send loop 2


Anybody have any idea about the situtation. Please help me ASAP.

Thank You
Dino

_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Principal Cast Exception

2002-02-02 Thread Nicolas PERIDONT

Hi,

I have make my own Principal class name MyPrincipal that extends from
java.scurity.Principal
I make my own Realm and i can log with it.
But when i get the Principal object whith the request.getUserPrincipal()
method i cant cast this object in (MyPrincipal).
I get a classCastException when i try to to this
(MyPrincipal)request.getUserPrincipal().
But the most strange is that i get a MyPrincipal response when i try a
request.getUserPrincipal().getclass().getName().

Have some idea why i can't make a cast on it ?
Does it come from the diference of classLoader between the JSP environement
and the Server environement ?

Thanks in advance for your help

Nicolas PERIDONT


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: HELP on server.xml PLEASE

2002-02-02 Thread Rich Hansen

 Okay.  try to change the following from:

 docBase=webapps/ourforge

 to:

 docBase=ourforge

 Here is an example I have:

 Context path=/search
 docBase=quest/portalsearch
 crossContext=false
 debug=0
 reloadable=true
 /Context

 Note: the quest folder resides under the webapps folder such as
 webapps\quest

 - Rich

 - Original Message -
 From: Micael Padraig Og mac Grene [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Saturday, February 02, 2002 1:52 AM
 Subject: Re: HELP on server.xml PLEASE


  Thanks, Rick.  I guess I was not clear.  What I need is a way to set the
  context for different urls rather than aliases for a single url. Micael
 
  At 05:58 PM 2/1/02 -0500, you wrote:
  Michael,
  
  There should be a folder under the tomcat installation director called
  webapps.  Under that folder you should create a new folder for your
jsp
  pages.  Lets call your new folder home for argument sake.  Under the
  home folder you should have created a folder called WEB-INF.  Under
  WEB-INF you should have created two additional folders called classes
 and
  lib.  So, your directory structure should look like this:
  
  Tomcat
   -home
   --WEB-INF
   ---classes
   ---lib
  
  Place your jsp files under the home directory, the custom classes
under
  the WEB-INF\classes directory and your custom JAR files under the
  WEB-INF\lib directory.
  
  Now to access your files go to:
http://server:port/home/something.jsp
 or
  html.
  
  Hope this helps!
  - Original Message -
  From: Micael Padraig Og mac Grene [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Friday, February 01, 2002 4:13 PM
  Subject: HELP on server.xml PLEASE
  
  
My forte is Java and at the XML configuration of Tomcat I suck.
Could
someone please help me with this?  It would be greatly appreciated.
   
If I add the following to servlet.xml, then I get the startup.sh to
 create
the proper directories under TOMCAT_HOME/work/.  But, then I cannot
 reach
my site with the urls.  If I don't add these, then I can reach the
 site,
but without the create of the appropriate subfolders.  What is up?
   
   
   
Context path=/ourforge
docBase=webapps/ourforge
debug=0
reloadable=true
/Context
Context path=/micael
docBase=webapps/micael
debug=0
reloadable=true 
/Context
Context path=/db
docBase=webapps/db
debug=0
reloadable=true 
/Context
Context path=/ctr
docBase=webapps/ctr
debug=0
reloadable=true 
/Context
   
!-- Example Server Configuration File --
!-- Note that component elements are nested corresponding to their
  parent-child relationships with each other --
   
!-- A Server is a singleton element that represents the entire
JVM,
  which may contain one or more Service instances.  The Server
  listens for a shutdown command on the indicated port.
   
  Note:  A Server is not itself a Container, so you may not
  define subcomponents such as Valves or Loggers at this
 level.
  --
   
Server port=8005 shutdown=SHUTDOWN debug=0
   
   
   !-- A Service is a collection of one or more Connectors that
 share
a single Container (and therefore the web applications
 visible
within that Container).  Normally, that Container is an
 Engine,
but this is not required.
   
Note:  A Service is not itself a Container, so you may
not
define subcomponents such as Valves or Loggers at this
 level.
--
   
   !-- Define the Tomcat Stand-Alone Service --
   Service name=Tomcat-Standalone
   
 !-- A Connector represents an endpoint by which requests are
  received
  and responses are returned.  Each Connector passes
requests
 on
  to the
  associated Container (normally an Engine) for
processing.
   
  By default, a non-SSL HTTP/1.1 Connector is established on
 port
  8080.
  You can also enable an SSL HTTP/1.1 Connector on port 8443
 by
  following the instructions below and uncommenting the
second
Connector
  entry.  SSL support requires the following steps (see the
 SSL
  Config
  HOWTO in the Tomcat 4.0 documentation bundle for more
 detailed
  instructions):
  * Download and install JSSE 1.0.2 or later, and put the
JAR
  files
into $JAVA_HOME/jre/lib/ext.
  * Execute:
  %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg
 RSA
(Windows)
  $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg
RSA
  (Unix)
with a password value of changeit for both the
 certificate
  and
the keystore itself.
   
  By default, DNS lookups are enabled when a web application
 calls
  request.getRemoteHost().  This can have an 

Problems running servlets on OSX

2002-02-02 Thread Michael Dizon

I am having problems running accessing servlets on Tomcat. JSP files are 
fine, but when trying to access the servlets I get a 404. Everything 
seems okay in the catalina.out log file.
Here is what is outputted in the localhost_examples_log:

2002-02-02 15:00:33 WebappLoader[/examples]: Deploying class 
repositories to work directory /usr/local/jakarta-
tomcat-4.0.1/work/localhost/examples
2002-02-02 15:00:33 WebappLoader[/examples]: Reloading checks are 
enabled for this Context
2002-02-02 15:00:33 StandardManager[/examples]: Seeding random number 
generator class java.security.SecureRandom
2002-02-02 15:00:33 StandardManager[/examples]: Seeding of random number 
generator has been completed
2002-02-02 15:00:35 ContextConfig[/examples]: Added certificates - 
request attribute Valve
2002-02-02 15:00:35 ContextConfig[/examples]: Configured an 
authenticator for method FORM
2002-02-02 15:00:35 ContextListener: contextInitialized()
2002-02-02 15:00:35 SessionListener: contextInitialized()
2002-02-02 15:00:35 StandardContext[/examples]: Exception starting 
filter Set Character Encoding
java.lang.ClassNotFoundException: filters.SetCharacterEncodingFilter
 at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:
1307)
 at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:
1156)
 at org.apache.catalina.core.ApplicationFilterConfig.getFilter
(ApplicationFilterConfig.java:252)
 at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef
(ApplicationFilterConfig.java:314)
 at org.apache.catalina.core.ApplicationFilterConfig.init
(ApplicationFilterConfig.java:120)
 at 
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:
3065)
 at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:3371)
 at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
 at 
org.apache.catalina.core.StandardHost.start(StandardHost.java:612)
 at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
 at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307)
 at 
org.apache.catalina.core.StandardService.start(StandardService.java:388)
 at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:505)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:776)
 at 
org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
 at 
org.apache.catalina.startup.Catalina.process(Catalina.java:179)
 at java.lang.reflect.Method.invoke(Native Method)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)

2002-02-02 15:00:35 StandardContext[/examples]: Context startup failed 
due to previous errors
2002-02-02 15:00:35 SessionListener: contextDestroyed()
2002-02-02 15:00:35 ContextListener: contextDestroyed()

Mike


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Java Petstore + Tomcat 3.3 web.xml problem

2002-02-02 Thread Renato

Hi all,

I'm trying to deploy the Java Pet store 1.1.2 with Tomcat 3.3 and JBoss. I 
actually trying to run Tomcat apart from JBoss and putting just the client 
side EJBs on my WEB-INF directory.

I'm using the web.xml provided by the application ( they say to run Tomcat 
integrated with JBoss, so I don't know if it's suppose to work the way I'm 
doing )



  env-entry
env-entry-nameejb/catalog/CatalogDAOClass/env-entry-name
env-entry-typejava.lang.String/env-entry-type
env-entry-
valuecom.sun.j2ee.blueprints.shoppingcart.catalog.dao.CatalogDAOImpl/env-
entry-value
  /env-entry
  env-entry
env-entry-nameejb/profilemgr/ProfileMgrDAOClass/env-entry-name
env-entry-typejava.lang.String/env-entry-type
env-entry-
valuecom.sun.j2ee.blueprints.personalization.profilemgr.dao.ProfileMgrDAOIm
pl/env-entry-value
  /env-entry
  env-entry
env-entry-nameserver/ServerType/env-entry-name
env-entry-valueJBoss 2.4 BETA/env-entry-value
env-entry-typejava.lang.String/env-entry-type
  /env-entry

  ejb-ref
ejb-ref-nameejb/catalog/Catalog/ejb-ref-name
ejb-ref-typeSession/ejb-ref-type

homecom.sun.j2ee.blueprints.shoppingcart.catalog.ejb.CatalogHome/home

remotecom.sun.j2ee.blueprints.shoppingcart.catalog.ejb.Catalog/remote
  /ejb-ref



And I have the error during Tomcat initialization ( note that I didn't do 
anything yet... )

2002-02-02 18:26:37 - Ctx() : Validating web.xml
2002-02-02 18:26:37 - Ctx() : web.xml: Error org.xml.sax.SAXParseException: 
Element web-app does not allow servlet here.
2002-02-02 18:26:38 - Ctx() : Line 20 /web-app/
2002-02-02 18:26:38 - Ctx() : web.xml: Error org.xml.sax.SAXParseException: 
Element env-entry allows no further input; env-entry-value is not 
allowed.
2002-02-02 18:26:38 - Ctx() : Line 49 /web-app/env-entry/
2002-02-02 18:26:38 - Ctx() : Add env-entry ejb/catalog/CatalogDAOClass  
java.lang.String 
com.sun.j2ee.blueprints.shoppingcart.catalog.dao.CatalogDAOImpl null
2002-02-02 18:26:38 - Ctx() : web.xml: Error org.xml.sax.SAXParseException: 
Element env-entry allows no further input; env-entry-value is not 
allowed.
2002-02-02 18:26:38 - Ctx() : Line 54 /web-app/env-entry/
2002-02-02 18:26:38 - Ctx() : Add env-entry 
ejb/profilemgr/ProfileMgrDAOClass  java.lang.String 
com.sun.j2ee.blueprints.personalization.profilemgr.dao.ProfileMgrDAOImpl 
null
2002-02-02 18:26:38 - Ctx() : Add env-entry server/ServerType  
java.lang.String JBoss 2.4 BETA null

What can this be ? An old version of a parser ? Do these tags are allowed 
on the web.xml ? 

Thanks
Renato

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




applet works, https doesn't

2002-02-02 Thread Dean Hiller

I have an applet that connects back to the server on 8443 and it works fine even 
without a certificate.  When I go to https://localhost:8443 web page, I get a prompt 
with an unknown certificate(certificate was created and self signed by me).  Why don't 
I get this prompt with the applet, it is using port 8443?  Something is questionable 
here.

Can anybody explain this to me?
thanks,
Dean


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Startup error: no userdatabase

2002-02-02 Thread www.custos.de Information

hello,

I have an major error while starting tomcat 4.0 on a apache webserver on
win2k.
After install tomcat, the first startup works fine.
After I shutdown the servlet and the start it again an error message occurs
No UserDatabase
component found...
So the tomcat doesn't start up.
I reinstalled everything, same problem.
Can anyone hlp we??

Thanks in advance

Friedemann Enderlein
---
dresden . germany


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Tyrex transactions: a workaround

2002-02-02 Thread Fabrizio Giudici

Hi.

After some investigations about tyrex problems with
transactions and messing up with tyrex and catalina
sources I was able to analyze the problem (actually
two different bugs) and to find a quick and dirty workaround.


THE PROBLEM 1
=

Tyrex defines, among others, two kinds of DataSources:

- tyrex.jdbc.xa.EnabledDataSource
  is not aware of pooling and it does not register
  its connections with the transaction manager
- tyrex.jdbc.ServerDataSource
  is aware of pooling and registers its connections
  with the transaction manager

Guess what, it happens that tomcat 4 is giving us
the FORMER DataSource, so transactions are not working
(and pooling neither).

The factory for Tyrex datasources is
org.apache.naming.factory.TyrexDataSourceFactory
which lives in %CATALINA_HOME%/lib/naming-factory.jar.

The logics inside the factory create a
tyrex.jdbc.ServerDataSource only if the resource class
type is explicitly set to tyrex.jdbc.ServerDataSource.

It appears that the problem should be solved by properly
setting the 'type' attribute of Resource in server.xml:

Resource name=jdbc/adi auth=Container
type=tyrex.jdbc.ServerDataSource/

Unfortunately this does not work, and I believe this is a
tomcat bug (in facts, try to set 'type' to I.DO.NOT.EXIST
and you'll discover that catalina doesn't notice it).
The Resource gets always bound in JNDI with type
javax.sql.DataSource.

I haven't checked the bug archive yet to find if this is
a known bug; in the meantime I found a workaround that
works. I consider it a quick-and-dirty fix to help us
working with our applications until apache staff fixes the
problem.


THE WORKAROUND
==

Unfortunately we have to patch catalina :-(
Download catalina sources (I worked with 4.0.2-b2 but it
works well also with 4.0.1) and edit
\src\share\org\apache\naming\factory\TyrexDataSourceFactory:


 214 if (ref.getClassName().equals
 215 (tyrex.jdbc.ServerDataSource)) {
 216
 217 ServerDataSource sds =
 218 new
ServerDataSource((javax.sql.XADataSource) ds);
 219
 220 currentRefAddr = ref.get(DESCRIPTION);
 221 if (currentRefAddr != null)
 222 sds.setDescription
 223
(currentRefAddr.getContent().toString());
 224
 225 return sds;
 226
 227 }
 228
 229 return ds;

REMOVE LINES 214,215 and 227, 228, 229 so that the ServerDataSource is
always created.

To compile the code, if you don't want to do a complete build of
catalina, do the following:


1. get the %CATALINA_HOME%\server\lib\catalina.jar
2. compile TyrexDataSourceFactory.java including catalina.jar, servlet.jar
   and jdbc2_0-stdext.jar in the classpath
3. replace the TyrexDataSourceFactory.class in catalina.jar with the
   compiled one.


THE PROBLEM 2
=

A this point, you will find that every transaction operation
fails with catalina complaining about a org.omb.corba.XXX
missing class. The problem is that tyrex depends on a couple
of corba classes (even if you don't use them working locally).
To solve this, you must download tyrex distribution from
tyrex.exolab.org, find ots.jar and add it into
%CATALINA_HOME%\common\lib. At this point I was succesful in
having my transaction works!!!

Summing up, the bugs are:

  1. the type attribute for Resource does not work
  2. apache should include ots.jar with its distribution

Neither is a tyrex bug.

PS. There is a third, small problem that you can live with.
tyrex-0.9.7.0 misses a message resource file, so you will find
a complaining warning (and in case of problems you won't get
the correct diagnostic). If you want to fix it, download tyrex
sources from exolab, and add to the .jar the file
tyrex\utils\resources\message.properties. I sent an email to
the tyrex mailing list a couple of weeks ago, asking them if
it possible to quickly release a 0.9.7.1 with the missing file
added... but I got no reply.


If you manage in following my instructions and the thing
works for you, please let me know (to confirm my analisys).
If my analisys gets confirmed, I will post a message to the
tomcat-dev m.l. (and/or register a bug with the damn bug tracking
thing if I understand how to use it :-)


--
Fabrizio Giudici, Ph.D. - Senior Consultant
Java(TM) Architect, Mentor, Senior Writer
email  [EMAIL PROTECTED]
mobile +39 348 1506941 - fax +39 02 700510536
Member of ADI (Italian Ph.D. Association)


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Tyrex transactions: a workaround

2002-02-02 Thread Remy Maucherat

 Hi.
 
 After some investigations about tyrex problems with
 transactions and messing up with tyrex and catalina
 sources I was able to analyze the problem (actually
 two different bugs) and to find a quick and dirty workaround.

Ok, I'll fix both.

Thanks,
Remy


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




restarting tomcat by calling runtime.exec on a .bat file (tc 3.2.4)

2002-02-02 Thread Matt Egyhazy

hi,

im trying to exec a .bat file that moves files around and restarts tomcat
from a servlet.  it seems as though the .bat file is being run up to the
point where it calls
net stop tomcat
net start tomcat

any ideas?  am i doing something wrong or is there an easier way to restart
tomcat?

thanks,
matt


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Tyrex transactions: a workaround

2002-02-02 Thread Fabrizio Giudici

 Unfortunately this does not work, and I believe this is a
 tomcat bug (in facts, try to set 'type' to I.DO.NOT.EXIST
 and you'll discover that catalina doesn't notice it).
 The Resource gets always bound in JNDI with type
 javax.sql.DataSource.

Remy make me understand that this is not a bug in the way
I described it. My problem was that I had declared the resource
twice, both in server.xml and web.xml; in the latter I used
javax.sql.DataSource and it overrode the former.

Nevertheless, removing the entry from web.xml and using
tyrex.jdbc.ServerDataSource doesn't work, so it seems that 
the workaround is still needed. I will try again tomorrow.

--
Fabrizio Giudici, Ph.D. - Senior Consultant
Java(TM) Architect, Mentor, Senior Writer
email  [EMAIL PROTECTED]
mobile +39 348 1506941 - fax +39 02 700510536 
Member of ADI (Italian Ph.D. Association)


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Tyrex transactions: a workaround

2002-02-02 Thread Remy Maucherat

  Unfortunately this does not work, and I believe this is a
  tomcat bug (in facts, try to set 'type' to I.DO.NOT.EXIST
  and you'll discover that catalina doesn't notice it).
  The Resource gets always bound in JNDI with type
  javax.sql.DataSource.

 Remy make me understand that this is not a bug in the way
 I described it. My problem was that I had declared the resource
 twice, both in server.xml and web.xml; in the latter I used
 javax.sql.DataSource and it overrode the former.

Well, that's a (small, but quite annoying to fix, so it probably won't be in
4.0.2) bug, because the one in server.xml is the one set by the admin. So it
is the Law ;-)

 Nevertheless, removing the entry from web.xml and using
 tyrex.jdbc.ServerDataSource doesn't work, so it seems that
 the workaround is still needed. I will try again tomorrow.

You may need to use a ResourceParams element to specify the factory.

Remy


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Tyrex transactions: a workaround

2002-02-02 Thread Fabrizio Giudici

 Nevertheless, removing the entry from web.xml and using
 tyrex.jdbc.ServerDataSource doesn't work, so it seems that
 the workaround is still needed. I will try again tomorrow.

Thanks to Remy, I've finally discovered that we don't need to
patch catalina for tyrex transaction to work. Finally, both
with 4.0.1 and 4.0.2-b2, you just need to configure your JDBC
resources as follows (excerpt from server.xml):

 Context path=/newadi docBase=webapps debug=0 privileged=false
   Resource name=jdbc/adi auth=Container
type=tyrex.jdbc.ServerDataSource/
   ResourceParams name=jdbc/adi
 parameter
   namefactory/name
   valueorg.apache.naming.factory.TyrexDataSourceFactory/value
 /parameter
 parameter
   nameuser/name
   valuesystem/value
 /parameter
 parameter
   namepassword/name
   valuemanager/value
 /parameter
 parameter
   namedriverClassName/name
   valueoracle.lite.poljdbc.POLJDBCDriver/value
 /parameter
 parameter
   namedriverName/name
   valuejdbc:polite:adi/value
 /parameter
   /ResourceParams
/Context

The important things are:

  1. the attribute type=tyrex.jdbc.ServerDataSource for the Resource
  2. the 'factory' parameter set for ResourceParams to
 org.apache.naming.factory.TyrexDataSourceFactory

I remind you that you will still need to put ots.jar from
tyrex sources into %CATALINA_HOME%/common/lib, and that
tyrex-0.9.7.0 will complain about a missing message.properties
file (but it will work).

That's all.

--
Fabrizio Giudici, Ph.D. - Senior Consultant
Java(TM) Architect, Mentor, Senior Writer
email  [EMAIL PROTECTED]
mobile +39 348 1506941 - fax +39 02 700510536
Member of ADI (Italian Ph.D. Association)



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Apache-1.3.22 and Tomcat-4.0 and mod_webapp

2002-02-02 Thread Ilic Aleksandar

I am trying to configure Apache-1.3.22 and Tomcat-4.0 and mod_webapp to
work together. I have some virtual hosts in tomcat and have same VH in
apache. root dirs of those VH are in /home/VH_name/www/htdocs
Tomcat is working fine, but I can't configure mod_webapp in apache

 LoadModule webapp_module /usr/lib/apache/1.3/mod_webapp.so
AddModule mod_webapp.c
WebAppConnection  tomcat4_connect  warp  localhost:8008
IfModule mod_webapp.c
#WebAppInfo /webapp-info
/IfModule


VirtualHost x.x.x.x
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /home/proba/www/htdocs
ServerName gavrilo
WebAppDeploy /home/proba/www/htdocs tomcat4_connect /proba
/VirtualHost

But when I start apache , I got messages that application couldn't be
deployed and that server could not conect on tomcat4_connect. I have some
another server but without virtual hosts and everything works fine

Can anybody help me


Ilic Aleksandar


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Catalina Beans - Class Path Problem

2002-02-02 Thread Jon Shoberg

Short Version:

For some reason, I can not get my JSP pages to compile when loading a little
bean ... It is not reading web-inf/classes.  Although, it is reading
web-inf/web.xml

Long Version:

A)Installed tomcat, got it running, all of the example programs work.
B)I am building an application called Gateway I created
 ./webapps/gateway
./webapps/gateway/index.jsp   --- works no problem
./webapps/gateway/kw.jsp     calls bean, has
problem

modified server.xml and reloaded ... my index.jsp works no
problem on this web app

./webapps/gateway/WEB-INF/
./webapps/gatewayWEB-INF/web.xml   --- this app is a
proteced resource, I know it is reading this properly

./webapps/gateway/classes/
./webapps/gateway/classes/gwclasses   gateway classes
and beans go in here
./webapps/gateway/classes/gwclasses/words.java
./webapps/gateway/classes/gwclasses/words.class   -
yeah, testing my code with another ide first so I know it works


 C)So from kw.jsp I cam calling a bean such as
jsp:useBean id=Words scope=session class=gwclasses.words
/

So I understand this to be creating a bean with id Words from the
class ./webapps/gateway/classes/gwclasses/words.class in the kw.jsp.
However, I am getting a compiler error saying

C:\apache\Tomcat4\work\localhost\gateway\kw$jsp.java:63: Class
gwclasses.words not found


Any thoughts ?


Thanks





--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Catalina Beans - Class Path Problem

2002-02-02 Thread Jon Shoberg

As a follow-up  If I try a page import of gwclasses  it failes
with that top level error ...

Any thoughts?

Thanks



- Original Message -
From: Jon Shoberg [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Saturday, February 02, 2002 8:12 PM
Subject: Catalina Beans - Class Path Problem


 Short Version:

 For some reason, I can not get my JSP pages to compile when loading a
little
 bean ... It is not reading web-inf/classes.  Although, it is reading
 web-inf/web.xml

 Long Version:

 A)Installed tomcat, got it running, all of the example programs work.
 B)I am building an application called Gateway I created
  ./webapps/gateway
 ./webapps/gateway/index.jsp   --- works no problem
 ./webapps/gateway/kw.jsp     calls bean, has
 problem

 modified server.xml and reloaded ... my index.jsp works no
 problem on this web app

 ./webapps/gateway/WEB-INF/
 ./webapps/gatewayWEB-INF/web.xml   --- this app is a
 proteced resource, I know it is reading this properly

 ./webapps/gateway/classes/
 ./webapps/gateway/classes/gwclasses   gateway
classes
 and beans go in here
 ./webapps/gateway/classes/gwclasses/words.java
 ./webapps/gateway/classes/gwclasses/words.class   -
 yeah, testing my code with another ide first so I know it works


  C)So from kw.jsp I cam calling a bean such as
 jsp:useBean id=Words scope=session
class=gwclasses.words
 /

 So I understand this to be creating a bean with id Words from
the
 class ./webapps/gateway/classes/gwclasses/words.class in the kw.jsp.
 However, I am getting a compiler error saying

 C:\apache\Tomcat4\work\localhost\gateway\kw$jsp.java:63: Class
 gwclasses.words not found


 Any thoughts ?


 Thanks





 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




htdocs or servlet

2002-02-02 Thread Rob

Howdy all!

We are using Apache for web serving and Tomcat for servlets in a project
that involves web pages and servlets being accessed by the user.

We have html pages, XML documents and a large java package containing server
side application logic, servlets and applets to be used by the system.

The problem we are having is how to store our files in one directory so that
both Apach and Tomcat know where they are. At the moment we are in the
awkward situation of having copies of our package stored in two locations -
one in htdocs and the other in the servlet directory so that each part of
the system can access the files and other classes needed.

How can we solve this problem? Is it a matter of setting up aliases in a
config file or something similar?

Thanks!

Rob

:-)
;-
:-]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Catalina Beans - Class Path Problem

2002-02-02 Thread Pavel Brun

Please see my comments below:

All your classes and/or beans should go into:

./webapps/gateway/WEB-INF/classes, or
./webapps/gateway/WEB-INF/lib

This should help you out. :-)

Paul

-Original Message-
From: Jon Shoberg [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 02, 2002 8:12 PM
To: Tomcat Users List
Subject: Catalina Beans - Class Path Problem


Short Version:

For some reason, I can not get my JSP pages to compile when loading a little
bean ... It is not reading web-inf/classes.  Although, it is reading
web-inf/web.xml

Long Version:

A)Installed tomcat, got it running, all of the example programs work.
B)I am building an application called Gateway I created
 ./webapps/gateway
./webapps/gateway/index.jsp   --- works no problem
./webapps/gateway/kw.jsp     calls bean, has
problem

modified server.xml and reloaded ... my index.jsp works no
problem on this web app

./webapps/gateway/WEB-INF/
./webapps/gatewayWEB-INF/web.xml   --- this app is a
proteced resource, I know it is reading this properly

./webapps/gateway/classes/
./webapps/gateway/classes/gwclasses   gateway classes
and beans go in here
./webapps/gateway/classes/gwclasses/words.java
./webapps/gateway/classes/gwclasses/words.class   -
yeah, testing my code with another ide first so I know it works


 C)So from kw.jsp I cam calling a bean such as
jsp:useBean id=Words scope=session class=gwclasses.words
/

So I understand this to be creating a bean with id Words from the
class ./webapps/gateway/classes/gwclasses/words.class in the kw.jsp.
However, I am getting a compiler error saying

C:\apache\Tomcat4\work\localhost\gateway\kw$jsp.java:63: Class
gwclasses.words not found


Any thoughts ?


Thanks





--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: htdocs or servlet

2002-02-02 Thread Matt Egyhazy

take a look at mod_jk, the directory directive for apache, and the
context directive in tc.  ive always used the j2ee standard .war packaging
for server side java applications.

matt
- Original Message -
From: Rob [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Saturday, February 02, 2002 8:31 PM
Subject: htdocs or servlet


 Howdy all!

 We are using Apache for web serving and Tomcat for servlets in a project
 that involves web pages and servlets being accessed by the user.

 We have html pages, XML documents and a large java package containing
server
 side application logic, servlets and applets to be used by the system.

 The problem we are having is how to store our files in one directory so
that
 both Apach and Tomcat know where they are. At the moment we are in the
 awkward situation of having copies of our package stored in two
locations -
 one in htdocs and the other in the servlet directory so that each part of
 the system can access the files and other classes needed.

 How can we solve this problem? Is it a matter of setting up aliases in a
 config file or something similar?

 Thanks!

 Rob

 :-)
 ;-
 :-]


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




How to make Tomcat 4.01 + Apache http server 1.3.19 work?

2002-02-02 Thread Dong Wenyu

I have been confused for weeks about Tomcat 4.01 +
Apache http server 1.3.19. 

1, Does Tomact 4.01 alone support servlet already?
Does it necessary to install JServ in addition as the
case with Tomcat 3.x?

2, Many books recommend the configuration of Tomcat +
pache http server. Does it make any sense? Couldn't
Tomcat 4.01 alone serve as a http server?

3, Anyone would give me instructions to connect Tomcat
4.01 + Apache http server 1.3.19 ?  Or is there
webpages to find them?




Thank you very much in advance.


sincerely,
Dong Wenyu


__
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions! 
http://auctions.yahoo.com

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Tomcat 4 and Apache w/ webapp module

2002-02-02 Thread salphonse


Hello.
I have installed apache-1.3.20-16 and tomcat4-4.0.2-b2.1 with 
mod_webapp-1.0.2-1 on Linux/Red Hat 7.2. The httpd.conf I am able to set up a 
test jsp page and it works under the following directory 
/var/tomcat4/webapps/jsp. When I  try the same test jsp page under the 
directory of /var/www/html I don't the desired jsp results. What am I doing 
wrong?

Thank-you for your time.

Sean Alphonse.


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Apache, Tomcat 4 and Webapp Module

2002-02-02 Thread Sean Alphonse


Hello.
I have installed apache-1.3.20-16 and tomcat4-4.0.2-b2.1 with 
mod_webapp-1.0.2-1 on Linux/Red Hat 7.2. Everything is installed properly and 
the httpd.conf file is configured properly. I am able to set up a 
test jsp page and it works under the following directory 
/var/tomcat4/webapps/jsp. When I  try the same test jsp page under the 
directory of /var/www/html I don't the desired jsp results. What am I doing 
wrong?

Thank-you for your time.

Sean Alphonse.

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




can't get tomat working with IIS

2002-02-02 Thread Scott Adamson

I'm trying to get Tomcat 4.0 working with IIS, the ISAPI redirect has loaded correctly 
(green arrow) but still nothing. Works fine with 8080. I have checked the 
iis_redirect.log - it generates -

[Sun Feb 03 04:42:55 2002]  [jk_isapi_plugin.c (555)]: HttpFilterProc started
[Sun Feb 03 04:42:55 2002]  [jk_isapi_plugin.c (600)]: In HttpFilterProc Virtual Host 
redirection of /localhost/examples/jsp/index.html
[Sun Feb 03 04:42:55 2002]  [jk_uri_worker_map.c (351)]: Into 
jk_uri_worker_map_t::map_uri_to_worker
[Sun Feb 03 04:42:55 2002]  [jk_uri_worker_map.c (368)]: Attempting to map URI 
'/localhost/examples/jsp/index.html'
[Sun Feb 03 04:42:55 2002]  [jk_uri_worker_map.c (456)]: 
jk_uri_worker_map_t::map_uri_to_worker, done without a match
[Sun Feb 03 04:42:55 2002]  [jk_isapi_plugin.c (606)]: In HttpFilterProc test Default 
redirection of /examples/jsp/index.html
[Sun Feb 03 04:42:55 2002]  [jk_uri_worker_map.c (351)]: Into 
jk_uri_worker_map_t::map_uri_to_worker
[Sun Feb 03 04:42:55 2002]  [jk_uri_worker_map.c (368)]: Attempting to map URI 
'/examples/jsp/index.html'
[Sun Feb 03 04:42:55 2002]  [jk_uri_worker_map.c (391)]: 
jk_uri_worker_map_t::map_uri_to_worker, Found a context match ajp13 - /examples/
[Sun Feb 03 04:42:55 2002]  [jk_isapi_plugin.c (625)]: HttpFilterProc 
[/examples/jsp/index.html] is a servlet url - should redirect to ajp13
[Sun Feb 03 04:42:55 2002]  [jk_isapi_plugin.c (647)]: HttpFilterProc check if 
[/examples/jsp/index.html] is points to the web-inf directory


every request. I have read that the existance of the line 'In HttpFilterProc Virtual 
Host redirection of /localhost/examples/jsp/index.html'
indicates that the 'Filter DLLs' registry key is incorrectly set (as this is a W2K 
server). But I have NOT set this, and I can't find anything like it in the registry.


As previously mentioned I'm running Tomcat4.0 on Windows 2000 server, I don't know 
what version of IIS - can't find this information, don't know which stinkin GUI panel 
will show this. Any help or advice anyone can offer would be much appreciated, as I 
have been thru all the docos and have searched the web. I have included my settings 
below. 

Thanks,
Scott.



Tomcat
worker.properties - 


#  Begin worker.properties **
worker.ajp13.type=ajp13

#
# Specifies the load balance factor when used with
# a load balancing worker.
# Note:
#   lbfactor must be  0
#   Low lbfactor means less work done by the worker.
worker.ajp13.lbfactor=1

#
# Specify the size of the open connection cache.
#worker.ajp13.cachesize

#
#-- DEFAULT LOAD BALANCER WORKER DEFINITION --
#-
#

#
# The loadbalancer (type lb) worker perform weighted round-robin
# load balancing with sticky sessions.
# Note:
#   If a worker dies, the load balancer will check its state
#once in a while. Until then all work is redirected to peer
#worker.
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=ajp13

#
# worker.tomcat_home should point to the location where you
# installed tomcat. This is where you have your conf, webapps and lib
# directories.
#
worker.tomcat_home=D:\Apache Tomcat 4.0

#
# worker.java_home should point to your Java installation. Normally
# you should have a bin and lib directories beneath it.
#
worker.java_home=D:\jdk1.3.1_01

#
# You should configure your environment slash... ps=\ on NT and / on UNIX
# and maybe something different elsewhere.
#
ps=\

#
#-- ADVANCED MODE 
#-
#

#
#-- DEFAULT worker list --
#-
#
# The worker that your plugins should create and work with
worker.list=ajp13

#
#-- DEFAULT ajp13 WORKER DEFINITION --
#-
#

#
# Defining a worker named ajp13 and of type ajp13
# Note that the name and the type do not have to match.
#
worker.ajp13.port=8009
worker.ajp13.host=localhost

#  End worker.properties **

Note : no other Tomcat files have been modified

registry - 

REGEDIT4
[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi
Redirector\1.0]
extension_uri=/jakarta/isapi_redirect.dll
log_file=D:\\Apache Tomcat 4.0\\logs\\iis_redirect.log
log_level=info
worker_file=D:\\Apache Tomcat 4.0\\conf\\worker.properties
worker_mount_file=D:\\Apache Tomcat 4.0\\conf\\uriworkermap.properties

IIS - 

- virtual directory jakarta points to d:\Apache Tomcat 4.0\bin\
- isapi redirector loaded successfully (green arrow) from d:\Apache Tomcat 
4.0\bin\isapi_redirect.dll






Re: How to make Tomcat 4.01 + Apache http server 1.3.19 work?

2002-02-02 Thread rakesh

Tomcat looks all the servlet under WEB-INF/classes directory so amke ythese
directories under ur servlet directory and put all the class files there

thanks
rakesh
- Original Message -
From: Dong Wenyu [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, February 03, 2002 8:35 AM
Subject: How to make Tomcat 4.01 + Apache http server 1.3.19 work?


 I have been confused for weeks about Tomcat 4.01 +
 Apache http server 1.3.19.

 1, Does Tomact 4.01 alone support servlet already?
 Does it necessary to install JServ in addition as the
 case with Tomcat 3.x?

 2, Many books recommend the configuration of Tomcat +
 pache http server. Does it make any sense? Couldn't
 Tomcat 4.01 alone serve as a http server?

 3, Anyone would give me instructions to connect Tomcat
 4.01 + Apache http server 1.3.19 ?  Or is there
 webpages to find them?




 Thank you very much in advance.


 sincerely,
 Dong Wenyu


 __
 Do You Yahoo!?
 Great stuff seeking new owners in Yahoo! Auctions!
 http://auctions.yahoo.com

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Reload servlet

2002-02-02 Thread rakesh

Tomcat looks all the servlet under WEB-INF/classes directory so amke ythese
directories under ur servlet directory and put all the class files there

thanks
rakesh

- Original Message - 
From: Harry Long [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, January 30, 2002 4:21 AM
Subject: Reload servlet


 Hi ,  I have a problem with servlet's reloadable.  I run Tomcat4.0 on
 Linux7.2 and connect to
 Apache using mod_webapps connector. I do set the reloadable=true in the
 context. But It seems
 that It doesn't work at all. Every time I change something on the servlet
 and recompile it , I have to
 restart Tomcat to see my any updates.  Is my setting wrong or something I
 have missed ?
 
 Thanks a lot.
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: can't get tomat working with IIS

2002-02-02 Thread Pavel Brun

Did you add the appropriate directories to uriworkermap.properties?

Also, did you uncomment the reference to the ajp13 connector in server.xml?

I am also running Windows 2K IIS and Tomcat and they both work well.

Thanks
PAul

-Original Message-
From: Scott Adamson [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 02, 2002 1:00 PM
To: [EMAIL PROTECTED]
Subject: can't get tomat working with IIS


I'm trying to get Tomcat 4.0 working with IIS, the ISAPI redirect has loaded
correctly (green arrow) but still nothing. Works fine with 8080. I have
checked the iis_redirect.log - it generates -

[Sun Feb 03 04:42:55 2002]  [jk_isapi_plugin.c (555)]: HttpFilterProc
started
[Sun Feb 03 04:42:55 2002]  [jk_isapi_plugin.c (600)]: In HttpFilterProc
Virtual Host redirection of /localhost/examples/jsp/index.html
[Sun Feb 03 04:42:55 2002]  [jk_uri_worker_map.c (351)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Sun Feb 03 04:42:55 2002]  [jk_uri_worker_map.c (368)]: Attempting to map
URI '/localhost/examples/jsp/index.html'
[Sun Feb 03 04:42:55 2002]  [jk_uri_worker_map.c (456)]:
jk_uri_worker_map_t::map_uri_to_worker, done without a match
[Sun Feb 03 04:42:55 2002]  [jk_isapi_plugin.c (606)]: In HttpFilterProc
test Default redirection of /examples/jsp/index.html
[Sun Feb 03 04:42:55 2002]  [jk_uri_worker_map.c (351)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Sun Feb 03 04:42:55 2002]  [jk_uri_worker_map.c (368)]: Attempting to map
URI '/examples/jsp/index.html'
[Sun Feb 03 04:42:55 2002]  [jk_uri_worker_map.c (391)]:
jk_uri_worker_map_t::map_uri_to_worker, Found a context match ajp13 -
/examples/
[Sun Feb 03 04:42:55 2002]  [jk_isapi_plugin.c (625)]: HttpFilterProc
[/examples/jsp/index.html] is a servlet url - should redirect to ajp13
[Sun Feb 03 04:42:55 2002]  [jk_isapi_plugin.c (647)]: HttpFilterProc check
if [/examples/jsp/index.html] is points to the web-inf directory


every request. I have read that the existance of the line 'In HttpFilterProc
Virtual Host redirection of /localhost/examples/jsp/index.html'
indicates that the 'Filter DLLs' registry key is incorrectly set (as this is
a W2K server). But I have NOT set this, and I can't find anything like it in
the registry.


As previously mentioned I'm running Tomcat4.0 on Windows 2000 server, I
don't know what version of IIS - can't find this information, don't know
which stinkin GUI panel will show this. Any help or advice anyone can offer
would be much appreciated, as I have been thru all the docos and have
searched the web. I have included my settings below.

Thanks,
Scott.



Tomcat
worker.properties -


#  Begin worker.properties **
worker.ajp13.type=ajp13

#
# Specifies the load balance factor when used with
# a load balancing worker.
# Note:
#   lbfactor must be  0
#   Low lbfactor means less work done by the worker.
worker.ajp13.lbfactor=1

#
# Specify the size of the open connection cache.
#worker.ajp13.cachesize

#
#-- DEFAULT LOAD BALANCER WORKER DEFINITION --
#-
#

#
# The loadbalancer (type lb) worker perform weighted round-robin
# load balancing with sticky sessions.
# Note:
#   If a worker dies, the load balancer will check its state
#once in a while. Until then all work is redirected to peer
#worker.
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=ajp13

#
# worker.tomcat_home should point to the location where you
# installed tomcat. This is where you have your conf, webapps and lib
# directories.
#
worker.tomcat_home=D:\Apache Tomcat 4.0

#
# worker.java_home should point to your Java installation. Normally
# you should have a bin and lib directories beneath it.
#
worker.java_home=D:\jdk1.3.1_01

#
# You should configure your environment slash... ps=\ on NT and / on UNIX
# and maybe something different elsewhere.
#
ps=\

#
#-- ADVANCED MODE 
#-
#

#
#-- DEFAULT worker list --
#-
#
# The worker that your plugins should create and work with
worker.list=ajp13

#
#-- DEFAULT ajp13 WORKER DEFINITION --
#-
#

#
# Defining a worker named ajp13 and of type ajp13
# Note that the name and the type do not have to match.
#
worker.ajp13.port=8009
worker.ajp13.host=localhost

#  End worker.properties **

Note : no other Tomcat files have been modified

registry -

REGEDIT4
[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi
Redirector\1.0]
extension_uri=/jakarta/isapi_redirect.dll
log_file=D:\\Apache Tomcat 4.0\\logs\\iis_redirect.log
log_level=info
worker_file=D:\\Apache Tomcat 4.0\\conf\\worker.properties

Re: can't get tomat working with IIS

2002-02-02 Thread Scott Adamson

What is required in uriworkermap.properties ? No, I haven't modified this
file. I can't find any reference to 'ajp13' in server.xml, what is meant to
be there ?


- Original Message -
From: Pavel Brun [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Sunday, February 03, 2002 5:15 PM
Subject: RE: can't get tomat working with IIS


 Did you add the appropriate directories to uriworkermap.properties?

 Also, did you uncomment the reference to the ajp13 connector in
server.xml?

 I am also running Windows 2K IIS and Tomcat and they both work well.

 Thanks
 PAul

 -Original Message-
 From: Scott Adamson [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, February 02, 2002 1:00 PM
 To: [EMAIL PROTECTED]
 Subject: can't get tomat working with IIS


 I'm trying to get Tomcat 4.0 working with IIS, the ISAPI redirect has
loaded
 correctly (green arrow) but still nothing. Works fine with 8080. I have
 checked the iis_redirect.log - it generates -

 [Sun Feb 03 04:42:55 2002]  [jk_isapi_plugin.c (555)]: HttpFilterProc
 started
 [Sun Feb 03 04:42:55 2002]  [jk_isapi_plugin.c (600)]: In HttpFilterProc
 Virtual Host redirection of /localhost/examples/jsp/index.html
 [Sun Feb 03 04:42:55 2002]  [jk_uri_worker_map.c (351)]: Into
 jk_uri_worker_map_t::map_uri_to_worker
 [Sun Feb 03 04:42:55 2002]  [jk_uri_worker_map.c (368)]: Attempting to map
 URI '/localhost/examples/jsp/index.html'
 [Sun Feb 03 04:42:55 2002]  [jk_uri_worker_map.c (456)]:
 jk_uri_worker_map_t::map_uri_to_worker, done without a match
 [Sun Feb 03 04:42:55 2002]  [jk_isapi_plugin.c (606)]: In HttpFilterProc
 test Default redirection of /examples/jsp/index.html
 [Sun Feb 03 04:42:55 2002]  [jk_uri_worker_map.c (351)]: Into
 jk_uri_worker_map_t::map_uri_to_worker
 [Sun Feb 03 04:42:55 2002]  [jk_uri_worker_map.c (368)]: Attempting to map
 URI '/examples/jsp/index.html'
 [Sun Feb 03 04:42:55 2002]  [jk_uri_worker_map.c (391)]:
 jk_uri_worker_map_t::map_uri_to_worker, Found a context match ajp13 -
 /examples/
 [Sun Feb 03 04:42:55 2002]  [jk_isapi_plugin.c (625)]: HttpFilterProc
 [/examples/jsp/index.html] is a servlet url - should redirect to ajp13
 [Sun Feb 03 04:42:55 2002]  [jk_isapi_plugin.c (647)]: HttpFilterProc
check
 if [/examples/jsp/index.html] is points to the web-inf directory


 every request. I have read that the existance of the line 'In
HttpFilterProc
 Virtual Host redirection of /localhost/examples/jsp/index.html'
 indicates that the 'Filter DLLs' registry key is incorrectly set (as this
is
 a W2K server). But I have NOT set this, and I can't find anything like it
in
 the registry.


 As previously mentioned I'm running Tomcat4.0 on Windows 2000 server, I
 don't know what version of IIS - can't find this information, don't know
 which stinkin GUI panel will show this. Any help or advice anyone can
offer
 would be much appreciated, as I have been thru all the docos and have
 searched the web. I have included my settings below.

 Thanks,
 Scott.



 Tomcat
 worker.properties -


 #  Begin worker.properties **
 worker.ajp13.type=ajp13

 #
 # Specifies the load balance factor when used with
 # a load balancing worker.
 # Note:
 #   lbfactor must be  0
 #   Low lbfactor means less work done by the worker.
 worker.ajp13.lbfactor=1

 #
 # Specify the size of the open connection cache.
 #worker.ajp13.cachesize

 #
 #-- DEFAULT LOAD BALANCER WORKER DEFINITION --
 #-
 #

 #
 # The loadbalancer (type lb) worker perform weighted round-robin
 # load balancing with sticky sessions.
 # Note:
 #   If a worker dies, the load balancer will check its state
 #once in a while. Until then all work is redirected to peer
 #worker.
 worker.loadbalancer.type=lb
 worker.loadbalancer.balanced_workers=ajp13

 #
 # worker.tomcat_home should point to the location where you
 # installed tomcat. This is where you have your conf, webapps and lib
 # directories.
 #
 worker.tomcat_home=D:\Apache Tomcat 4.0

 #
 # worker.java_home should point to your Java installation. Normally
 # you should have a bin and lib directories beneath it.
 #
 worker.java_home=D:\jdk1.3.1_01

 #
 # You should configure your environment slash... ps=\ on NT and / on UNIX
 # and maybe something different elsewhere.
 #
 ps=\

 #
 #-- ADVANCED MODE 
 #-
 #

 #
 #-- DEFAULT worker list --
 #-
 #
 # The worker that your plugins should create and work with
 worker.list=ajp13

 #
 #-- DEFAULT ajp13 WORKER DEFINITION --
 #-
 #

 #
 # Defining a worker named ajp13 and of type ajp13
 # Note that the name and the type do 

RE: can't get tomat working with IIS

2002-02-02 Thread Pavel Brun

The uriworkermap.properties has the following format:

-
#
# Default worker to be used through our mappings
#
default.worker=ajp13

#
# Sites to be redirected to Tomcat
#

/example=$(default.worker)
/example/*=$(default.worker)
-

If example was a directory located under webapps, then
this would define what IIS would redirect to Tomcat for
processing.

As for server.xml, there is something that looks like this:

-
!-- Define an AJP 1.3 Connector on port 8009 --
Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009
minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/




-Original Message-
From: Scott Adamson [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 02, 2002 1:27 PM
To: Tomcat Users List
Subject: Re: can't get tomat working with IIS


What is required in uriworkermap.properties ? No, I haven't modified this
file. I can't find any reference to 'ajp13' in server.xml, what is meant to
be there ?


- Original Message -
From: Pavel Brun [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Sunday, February 03, 2002 5:15 PM
Subject: RE: can't get tomat working with IIS


 Did you add the appropriate directories to uriworkermap.properties?

 Also, did you uncomment the reference to the ajp13 connector in
server.xml?

 I am also running Windows 2K IIS and Tomcat and they both work well.

 Thanks
 PAul

 -Original Message-
 From: Scott Adamson [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, February 02, 2002 1:00 PM
 To: [EMAIL PROTECTED]
 Subject: can't get tomat working with IIS


 I'm trying to get Tomcat 4.0 working with IIS, the ISAPI redirect has
loaded
 correctly (green arrow) but still nothing. Works fine with 8080. I have
 checked the iis_redirect.log - it generates -

 [Sun Feb 03 04:42:55 2002]  [jk_isapi_plugin.c (555)]: HttpFilterProc
 started
 [Sun Feb 03 04:42:55 2002]  [jk_isapi_plugin.c (600)]: In HttpFilterProc
 Virtual Host redirection of /localhost/examples/jsp/index.html
 [Sun Feb 03 04:42:55 2002]  [jk_uri_worker_map.c (351)]: Into
 jk_uri_worker_map_t::map_uri_to_worker
 [Sun Feb 03 04:42:55 2002]  [jk_uri_worker_map.c (368)]: Attempting to map
 URI '/localhost/examples/jsp/index.html'
 [Sun Feb 03 04:42:55 2002]  [jk_uri_worker_map.c (456)]:
 jk_uri_worker_map_t::map_uri_to_worker, done without a match
 [Sun Feb 03 04:42:55 2002]  [jk_isapi_plugin.c (606)]: In HttpFilterProc
 test Default redirection of /examples/jsp/index.html
 [Sun Feb 03 04:42:55 2002]  [jk_uri_worker_map.c (351)]: Into
 jk_uri_worker_map_t::map_uri_to_worker
 [Sun Feb 03 04:42:55 2002]  [jk_uri_worker_map.c (368)]: Attempting to map
 URI '/examples/jsp/index.html'
 [Sun Feb 03 04:42:55 2002]  [jk_uri_worker_map.c (391)]:
 jk_uri_worker_map_t::map_uri_to_worker, Found a context match ajp13 -
 /examples/
 [Sun Feb 03 04:42:55 2002]  [jk_isapi_plugin.c (625)]: HttpFilterProc
 [/examples/jsp/index.html] is a servlet url - should redirect to ajp13
 [Sun Feb 03 04:42:55 2002]  [jk_isapi_plugin.c (647)]: HttpFilterProc
check
 if [/examples/jsp/index.html] is points to the web-inf directory


 every request. I have read that the existance of the line 'In
HttpFilterProc
 Virtual Host redirection of /localhost/examples/jsp/index.html'
 indicates that the 'Filter DLLs' registry key is incorrectly set (as this
is
 a W2K server). But I have NOT set this, and I can't find anything like it
in
 the registry.


 As previously mentioned I'm running Tomcat4.0 on Windows 2000 server, I
 don't know what version of IIS - can't find this information, don't know
 which stinkin GUI panel will show this. Any help or advice anyone can
offer
 would be much appreciated, as I have been thru all the docos and have
 searched the web. I have included my settings below.

 Thanks,
 Scott.



 Tomcat
 worker.properties -


 #  Begin worker.properties **
 worker.ajp13.type=ajp13

 #
 # Specifies the load balance factor when used with
 # a load balancing worker.
 # Note:
 #   lbfactor must be  0
 #   Low lbfactor means less work done by the worker.
 worker.ajp13.lbfactor=1

 #
 # Specify the size of the open connection cache.
 #worker.ajp13.cachesize

 #
 #-- DEFAULT LOAD BALANCER WORKER DEFINITION --
 #-
 #

 #
 # The loadbalancer (type lb) worker perform weighted round-robin
 # load balancing with sticky sessions.
 # Note:
 #   If a worker dies, the load balancer will check its state
 #once in a while. Until then all work is redirected to peer
 #worker.
 worker.loadbalancer.type=lb
 worker.loadbalancer.balanced_workers=ajp13

 #
 # worker.tomcat_home should point to the location where you
 # installed tomcat. This is where you have your conf, webapps and lib
 # directories.
 #
 

RE: can't get tomat working with IIS (complete email...earlier one was incomplete)

2002-02-02 Thread Pavel Brun

woopssent it prematurely. :-)


The uriworkermap.properties has the following format:

--
# Default worker to be used through our mappings
#
default.worker=ajp13

#
# Sites to be redirected to Tomcat
#

/example=$(default.worker)
/example/*=$(default.worker)
--

If example was a directory located under webapps, then
this would define what IIS would redirect to Tomcat for
processing.

As for server.xml, there is something that looks like this:

--
!-- Define an AJP 1.3 Connector on port 8009 --
Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009
minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/
--


Hope this helpsany questions, just shout...

Paul


-Original Message-
From: Scott Adamson [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 02, 2002 1:27 PM
To: Tomcat Users List
Subject: Re: can't get tomat working with IIS


What is required in uriworkermap.properties ? No, I haven't modified this
file. I can't find any reference to 'ajp13' in server.xml, what is meant to
be there ?


- Original Message -
From: Pavel Brun [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Sunday, February 03, 2002 5:15 PM
Subject: RE: can't get tomat working with IIS


 Did you add the appropriate directories to uriworkermap.properties?

 Also, did you uncomment the reference to the ajp13 connector in
server.xml?

 I am also running Windows 2K IIS and Tomcat and they both work well.

 Thanks
 PAul

 -Original Message-
 From: Scott Adamson [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, February 02, 2002 1:00 PM
 To: [EMAIL PROTECTED]
 Subject: can't get tomat working with IIS


 I'm trying to get Tomcat 4.0 working with IIS, the ISAPI redirect has
loaded
 correctly (green arrow) but still nothing. Works fine with 8080. I have
 checked the iis_redirect.log - it generates -

 [Sun Feb 03 04:42:55 2002]  [jk_isapi_plugin.c (555)]: HttpFilterProc
 started
 [Sun Feb 03 04:42:55 2002]  [jk_isapi_plugin.c (600)]: In HttpFilterProc
 Virtual Host redirection of /localhost/examples/jsp/index.html
 [Sun Feb 03 04:42:55 2002]  [jk_uri_worker_map.c (351)]: Into
 jk_uri_worker_map_t::map_uri_to_worker
 [Sun Feb 03 04:42:55 2002]  [jk_uri_worker_map.c (368)]: Attempting to map
 URI '/localhost/examples/jsp/index.html'
 [Sun Feb 03 04:42:55 2002]  [jk_uri_worker_map.c (456)]:
 jk_uri_worker_map_t::map_uri_to_worker, done without a match
 [Sun Feb 03 04:42:55 2002]  [jk_isapi_plugin.c (606)]: In HttpFilterProc
 test Default redirection of /examples/jsp/index.html
 [Sun Feb 03 04:42:55 2002]  [jk_uri_worker_map.c (351)]: Into
 jk_uri_worker_map_t::map_uri_to_worker
 [Sun Feb 03 04:42:55 2002]  [jk_uri_worker_map.c (368)]: Attempting to map
 URI '/examples/jsp/index.html'
 [Sun Feb 03 04:42:55 2002]  [jk_uri_worker_map.c (391)]:
 jk_uri_worker_map_t::map_uri_to_worker, Found a context match ajp13 -
 /examples/
 [Sun Feb 03 04:42:55 2002]  [jk_isapi_plugin.c (625)]: HttpFilterProc
 [/examples/jsp/index.html] is a servlet url - should redirect to ajp13
 [Sun Feb 03 04:42:55 2002]  [jk_isapi_plugin.c (647)]: HttpFilterProc
check
 if [/examples/jsp/index.html] is points to the web-inf directory


 every request. I have read that the existance of the line 'In
HttpFilterProc
 Virtual Host redirection of /localhost/examples/jsp/index.html'
 indicates that the 'Filter DLLs' registry key is incorrectly set (as this
is
 a W2K server). But I have NOT set this, and I can't find anything like it
in
 the registry.


 As previously mentioned I'm running Tomcat4.0 on Windows 2000 server, I
 don't know what version of IIS - can't find this information, don't know
 which stinkin GUI panel will show this. Any help or advice anyone can
offer
 would be much appreciated, as I have been thru all the docos and have
 searched the web. I have included my settings below.

 Thanks,
 Scott.



 Tomcat
 worker.properties -


 #  Begin worker.properties **
 worker.ajp13.type=ajp13

 #
 # Specifies the load balance factor when used with
 # a load balancing worker.
 # Note:
 #   lbfactor must be  0
 #   Low lbfactor means less work done by the worker.
 worker.ajp13.lbfactor=1

 #
 # Specify the size of the open connection cache.
 #worker.ajp13.cachesize

 #
 #-- DEFAULT LOAD BALANCER WORKER DEFINITION --
 #-
 #

 #
 # The loadbalancer (type lb) worker perform weighted round-robin
 # load balancing with sticky sessions.
 # Note:
 #   If a worker dies, the load balancer will check its state
 #once in a while. Until then all work is redirected to peer
 #worker.
 

Can multiple URLs with a single IP address be mapped to discrete Applications in Tomcat 4.0?

2002-02-02 Thread Micael Padraig Og mac Grene

Clear question: No answers

The subject, supra, asks the question.  If you have a number of URLs 
pointed to a single IP address, can you map the URLs somehow to discrete 
web applications in Tomcat 4.0?

I have read everything I know to read and cannot get the answer to this.  I 
know I could do it with JBoss and Tomcat 3.2.4 and the context 
manager.  But, I don't see that in Tomcat 4.0.  What's up?

Sure is hard to get a response to this question.  Have no idea 
what.  Please don't tell me the stuff that is simple and covered like how 
to set up directories, etc.  I know how to handle aliases, how to handle 
multiple IP addresses on the same machine, etc.  My question is 
specific.  How can I get, e.g. www.a.com and www.b.com when they 
are pointed to a given IP address, 209.43.251.66 (for example), to map to 
webapps/a and webapps/b?  Or, is this not now possible?

Some people have suggested that, since I don't know the answer to this, I 
need to essentially take the classes I teach for fun.  Lord.  If only they 
could answer the question instead of loading me with pompous self-righteous 
drivel.  I do thank those who have tried.  I don't know where to look at 
this point.  I may just write the classes to do it.

Micael



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




webapp WebAppDeploy root + other webapps

2002-02-02 Thread Troy A. Griffitts

I've seen many questions about this in the FAQ and none have good
answers.

Can anyone tell me how I might make this work:

WebAppDeploy sword  warpConnection  /sword
WebAppDeploy crosswire  warpConnection  /



The crosswire webapp overrides the /sword webapp.

I've seen a response about regular expressions like ^/^(sword) on the
second WebAppDeploy, but I may have MANY webapps deployed in the future
and this is not an acceptable means.  mod_webapp should be smart enough
to resolve webapps accordingly.

Please let me know if there is a solution, or point me to the correct
place in mod_webapp so I might make the enhancements myself.


Thank you,

-Troy.

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: can't get tomat working with IIS

2002-02-02 Thread Mark Eggers

Did you also create a virtual directory for IIS?

I am running IIS, Tomcat, Cocoon, Jetspeed, and the
Turbine development kit on Win/2K professional
(laptop) along with Perl, PHP, and MySQL.

Of course the laptop is pretty loaded, but it all
works and I have a portable development environment /
web site.

/mde/

--- Pavel Brun [EMAIL PROTECTED] wrote:
 Did you add the appropriate directories to
 uriworkermap.properties?
 
 Also, did you uncomment the reference to the ajp13
 connector in server.xml?
 
 I am also running Windows 2K IIS and Tomcat and they
 both work well.
 
 Thanks
 PAul
 
 -Original Message-
 From: Scott Adamson [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, February 02, 2002 1:00 PM
 To: [EMAIL PROTECTED]
 Subject: can't get tomat working with IIS
 
 
 I'm trying to get Tomcat 4.0 working with IIS, the
 ISAPI redirect has loaded
 correctly (green arrow) but still nothing. Works
 fine with 8080. I have
 checked the iis_redirect.log - it generates -
 
 [Sun Feb 03 04:42:55 2002]  [jk_isapi_plugin.c
 (555)]: HttpFilterProc
 started
 [Sun Feb 03 04:42:55 2002]  [jk_isapi_plugin.c
 (600)]: In HttpFilterProc
 Virtual Host redirection of
 /localhost/examples/jsp/index.html
 [Sun Feb 03 04:42:55 2002]  [jk_uri_worker_map.c
 (351)]: Into
 jk_uri_worker_map_t::map_uri_to_worker
 [Sun Feb 03 04:42:55 2002]  [jk_uri_worker_map.c
 (368)]: Attempting to map
 URI '/localhost/examples/jsp/index.html'
 [Sun Feb 03 04:42:55 2002]  [jk_uri_worker_map.c
 (456)]:
 jk_uri_worker_map_t::map_uri_to_worker, done without
 a match
 [Sun Feb 03 04:42:55 2002]  [jk_isapi_plugin.c
 (606)]: In HttpFilterProc
 test Default redirection of /examples/jsp/index.html
 [Sun Feb 03 04:42:55 2002]  [jk_uri_worker_map.c
 (351)]: Into
 jk_uri_worker_map_t::map_uri_to_worker
 [Sun Feb 03 04:42:55 2002]  [jk_uri_worker_map.c
 (368)]: Attempting to map
 URI '/examples/jsp/index.html'
 [Sun Feb 03 04:42:55 2002]  [jk_uri_worker_map.c
 (391)]:
 jk_uri_worker_map_t::map_uri_to_worker, Found a
 context match ajp13 -
 /examples/
 [Sun Feb 03 04:42:55 2002]  [jk_isapi_plugin.c
 (625)]: HttpFilterProc
 [/examples/jsp/index.html] is a servlet url - should
 redirect to ajp13
 [Sun Feb 03 04:42:55 2002]  [jk_isapi_plugin.c
 (647)]: HttpFilterProc check
 if [/examples/jsp/index.html] is points to the
 web-inf directory
 
 
 every request. I have read that the existance of the
 line 'In HttpFilterProc
 Virtual Host redirection of
 /localhost/examples/jsp/index.html'
 indicates that the 'Filter DLLs' registry key is
 incorrectly set (as this is
 a W2K server). But I have NOT set this, and I can't
 find anything like it in
 the registry.
 
 
 As previously mentioned I'm running Tomcat4.0 on
 Windows 2000 server, I
 don't know what version of IIS - can't find this
 information, don't know
 which stinkin GUI panel will show this. Any help or
 advice anyone can offer
 would be much appreciated, as I have been thru all
 the docos and have
 searched the web. I have included my settings below.
 
 Thanks,
 Scott.
 
 
 
 Tomcat
 worker.properties -
 
 
 #  Begin worker.properties
 **
 worker.ajp13.type=ajp13
 
 #
 # Specifies the load balance factor when used with
 # a load balancing worker.
 # Note:
 #   lbfactor must be  0
 #   Low lbfactor means less work done by the
 worker.
 worker.ajp13.lbfactor=1
 
 #
 # Specify the size of the open connection cache.
 #worker.ajp13.cachesize
 
 #
 #-- DEFAULT LOAD BALANCER WORKER DEFINITION
 --

#-
 #
 
 #
 # The loadbalancer (type lb) worker perform weighted
 round-robin
 # load balancing with sticky sessions.
 # Note:
 #   If a worker dies, the load balancer will
 check its state
 #once in a while. Until then all work is
 redirected to peer
 #worker.
 worker.loadbalancer.type=lb
 worker.loadbalancer.balanced_workers=ajp13
 
 #
 # worker.tomcat_home should point to the location
 where you
 # installed tomcat. This is where you have your
 conf, webapps and lib
 # directories.
 #
 worker.tomcat_home=D:\Apache Tomcat 4.0
 
 #
 # worker.java_home should point to your Java
 installation. Normally
 # you should have a bin and lib directories beneath
 it.
 #
 worker.java_home=D:\jdk1.3.1_01
 
 #
 # You should configure your environment slash...
 ps=\ on NT and / on UNIX
 # and maybe something different elsewhere.
 #
 ps=\
 
 #
 #-- ADVANCED MODE
 

#-
 #
 
 #
 #-- DEFAULT worker list
 --

#-
 #
 # The worker that your plugins should create and
 work with
 worker.list=ajp13
 
 #
 #-- DEFAULT ajp13 WORKER DEFINITION
 --

#-
 #
 
 #
 # Defining a 

Re: Can multiple URLs with a single IP address be mapped to discrete Applications in Tomcat 4.0?

2002-02-02 Thread pete

What you are after is essentially a 'Layer-7 Switch'

I do this with the SQUID proxy server and a perl script which rewrites 
HTTP requests using regular expressions to match URL fragments.

e.g. all our domains are pointed at a single IP, and i map requests for 
external domain namesservers to internal servers e.g. 
http://www.mydomain.com/myapp/ gets mapped to http://192.168.x.x:8080/myapp/


There are a few hurdles to overcome with this approach, chiefly that 
cookies get set based on the server name and directory, which means that 
you need to match webapp names - i.e. you need to map 
http://externally.visible.domain/myapp to 
http://internally.visible.domain/myapp - trying to map e.v.d/myapp to 
i.v.d/someotherapp probably won't work properly with sessions etc.

Also, you'll probably need to use absolute URLs in your JSPs etc. , 
since the client and the web server have different ideas about exactly 
what is being requested.

I believe Apache has built-in URL-rewriting features, and Tomcat may do 
as well, however, I find SQUID works reliably for what I want to do, so 
I have not looked for another solution.

One thing to be aware of with the SQUID approach is the fact that your 
proxy server is effectively opened to the net, and clients are free to 
request arbitary URLs from your proxy, letting them use your bandwidth 
to fetch their URLs. I see a surprisingly high level of abuse for a 
fairly obscure and little-used web server, with requests for banner-ads, 
machines with obvious viral infections and others trying to exploit my 
'open' proxy server.

However, a small perl script run daily by cron that parses the SQUID 
access log and bans IPs with IPTables that match abuse patterns takes 
care of that pretty quickly.

Hope that helps

-Pete

Micael Padraig Og mac Grene wrote:

 Clear question: No answers
 
 The subject, supra, asks the question.  If you have a number of URLs 
 pointed to a single IP address, can you map the URLs somehow to discrete 
 web applications in Tomcat 4.0?
 
 I have read everything I know to read and cannot get the answer to 
 this.  I know I could do it with JBoss and Tomcat 3.2.4 and the context 
 manager.  But, I don't see that in Tomcat 4.0.  What's up?
 
 Sure is hard to get a response to this question.  Have no idea what.  
 Please don't tell me the stuff that is simple and covered like how to 
 set up directories, etc.  I know how to handle aliases, how to handle 
 multiple IP addresses on the same machine, etc.  My question is 
 specific.  How can I get, e.g. www.a.com and www.b.com when they 
 are pointed to a given IP address, 209.43.251.66 (for example), to map 
 to webapps/a and webapps/b?  Or, is this not now possible?
 
 Some people have suggested that, since I don't know the answer to this, 
 I need to essentially take the classes I teach for fun.  Lord.  If only 
 they could answer the question instead of loading me with pompous 
 self-righteous drivel.  I do thank those who have tried.  I don't know 
 where to look at this point.  I may just write the classes to do it.
 
 Micael
 
 
 
 -- 
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]