RE: Create Valve and Deploy How to Help Please ????

2005-09-21 Thread Barbara.Townsend-Batten
Please remove me from this reply list.

-Original Message-
From: Bovy, Stephen J [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 20, 2005 11:06 PM
To: Tomcat Users List
Subject: RE: Create Valve and Deploy How to Help Please 


 
I have created a new Valve in the authenticator package called
ThreadSignOn

I added a descritpion for it to the mbean description xml file.

I re-built and verified that my new valve and the new description is in
catalina.jar

But When I refference my new valve nothing happens it does not work 

What else do I need to do ?


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


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



RE: Create Valve and Deploy How to Help Please ????

2005-09-21 Thread KEREM ERKAN
BARBARA,

FOR GOD'S SAKE, DO NOT REPLY ALL THESE MAILS AND SEND A BLANK E-MAIL TO

[EMAIL PROTECTED]

TO BE REMOVED FROM THIS REPLY LIST!

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, September 21, 2005 2:36 PM
 To: tomcat-user@jakarta.apache.org
 Subject: RE: Create Valve and Deploy How to Help Please 
 Importance: High
 
 Please remove me from this reply list.
 
 -Original Message-
 From: Bovy, Stephen J [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, September 20, 2005 11:06 PM
 To: Tomcat Users List
 Subject: RE: Create Valve and Deploy How to Help Please 
 
 
  
 I have created a new Valve in the authenticator package called
 ThreadSignOn
 
 I added a descritpion for it to the mbean description xml file.
 
 I re-built and verified that my new valve and the new 
 description is in
 catalina.jar
 
 But When I refference my new valve nothing happens it does not work 
 
 What else do I need to do ?
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


smime.p7s
Description: S/MIME cryptographic signature


Re: Create Valve and Deploy How to Help Please ????

2005-09-21 Thread Parsons Technical Services
Remove thyself. Look at the bottom of the email. Spamming the list will not 
help. The list admins are not on 24/7.


Doug


- Original Message - 
From: [EMAIL PROTECTED]

To: tomcat-user@jakarta.apache.org
Sent: Wednesday, September 21, 2005 7:36 AM
Subject: RE: Create Valve and Deploy How to Help Please 


Please remove me from this reply list.

-Original Message-
From: Bovy, Stephen J [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 20, 2005 11:06 PM
To: Tomcat Users List
Subject: RE: Create Valve and Deploy How to Help Please 



I have created a new Valve in the authenticator package called
ThreadSignOn

I added a descritpion for it to the mbean description xml file.

I re-built and verified that my new valve and the new description is in
catalina.jar

But When I refference my new valve nothing happens it does not work

What else do I need to do ?


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


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





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



RE: Cutomized SingleSignOn Valve Help Please

2005-09-20 Thread Bovy, Stephen J

I have created a new version of the singlesignon valve with a new class
name

SingleSignOn  -  ThreadSignOn

It compiles successfully, but I do not know how to package 
and/or deploy ??

Please Help  should I create a Jar package with a new customized
mbean-descriptor.xml  ??

And then deploy in Catalina/common 
 


Stephen Bovy
Computer Associates
6100 Center Drive
Suite 700
Los Angeles, CA 90045
Tel: (310) 957-3930
Fax: (310) 957-3917
e-mail: [EMAIL PROTECTED]

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



RE: Create Valve and Deploy How to Help Please ????

2005-09-20 Thread Bovy, Stephen J
 
I have created a new Valve in the authenticator package called
ThreadSignOn

I added a descritpion for it to the mbean description xml file.

I re-built and verified that my new valve and the new description is in
catalina.jar

But When I refference my new valve nothing happens it does not work 

What else do I need to do ?


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



security-constraint not working, help please...

2005-08-12 Thread Trey Ethridge
Hello all,

I'm ready to pull my hair out getting the security constraint to work.  
Basically, I need to forward all traffic except one directory to the https 
port.  I've got it to work if I use the url-pattern of /*.  However, when I 
specify the patterns to accomplish the task, nothing matches and I can access 
any page through the http port.

Here is what I'm using: 

In web.xml:
security-constraint
web-resource-collection
web-resource-nameAutomatic SLL Forwarding/web-resource-name
url-pattern/Temp/*/url-pattern
url-pattern/temp/*/url-pattern
url-pattern/pictures/*/url-pattern
url-pattern/resources/*/url-pattern
url-pattern/admin/*/url-pattern
url-pattern/web/*/url-pattern
url-pattern/Operator/*/url-pattern
url-pattern/operator/*/url-pattern
url-pattern/soap/*/url-pattern
url-pattern/webtools/*/url-pattern
/web-resource-collection
user-data-constraint
  transport-guarantee
CONFIDENTIAL
  /transport-guarantee
/user-data-constraint
/security-constraint

In server.xml:
Server
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener 
descriptors=/jboss-mbeans.xml debug=0/
  Service name=jboss.web 
className=org.jboss.web.tomcat.tc5.StandardService
Connector port=81 address=${jboss.bind.address}
 maxThreads=150 minSpareThreads=25 maxSpareThreads=75
 enableLookups=false redirectPort=8443 acceptCount=100
 connectionTimeout=2 disableUploadTimeout=true /
Connector port=8009 address=${jboss.bind.address} 
 enableLookups=false redirectPort=8443 debug=0
 protocol=AJP/1.3 /
Connector port=8443 minProcessors=5 maxProcessors=200
 enableLookups=true disableUploadTimeout=true
 scheme=https secure=true keystorepass=changeit 
 keystoreFile=${jboss.server.home.dir}/conf/.keystore 
acceptCount=200 debug=0
 clientAuth=false sslProtocol=TLS /
Engine name=jboss.web defaultHost=localhost
  Logger className=org.jboss.web.tomcat.Log4jLogger
  verbosityLevel=INFORMATION 
  category=org.jboss.web.localhost.Engine/
  Realm className=org.jboss.web.tomcat.security.JBossSecurityMgrRealm /
  Host name=localhost autoDeploy=false deployOnStartup=false 
deployXML=false
Valve className=org.apache.catalina.valves.AccessLogValve
prefix=localhost_access_log. suffix=.log
pattern=common directory=${jboss.server.home.dir}/log 
resolveHosts=false /
DefaultContext cookies=true crossContext=true override=true /
  /Host
/Engine
  /Service
/Server

Is there a way to specify everything except a directory using some kind of NOT 
operator?

Why won't what I'm using above forward me to the correct https port?

Thanks in advance.


___
Try Juno Platinum for Free! Then, only $9.95/month!
Unlimited Internet Access with 250MB of Email Storage.
Visit http://www.juno.com/value to sign up today!


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



Re: connection pooling basic help please

2005-04-04 Thread Kwok Peng Tuck
Krishnakant Mane wrote:
hello,
I refered to the docs in tomcat 5 for connection
pooling.  the document is pritty comprehencive and I
understood the server.xml part of it.
but now I want to know how exactly can I use a
connection from the pool in my servlet.
the example in tomcat documentation is on a jsp based
applicatio.  but I don't understand how I use a pooled
connection in a servlet.
 

You use a pooled connection in a simillar manner to a driver managed 
connection, except that you look up a resource (JNDI in this case). In 
your servlet just look up the resource.

should I initialise the connection in the Init method?
how and when should I close the connection?
 

You should close the connection immediately when you are done with it. 
Best not to pass references of them around. You would close them as a 
you would in a driver managed connection, that is Connection.close() ;

and wat entries in the web.xml file will effect
connection pooling?
 

Please help it is really urgent.
thanks
Krishnakant.
Send instant messages to your online friends http://uk.messenger.yahoo.com 

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


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


connection pooling basic help please

2005-04-02 Thread Krishnakant Mane
hello,
I refered to the docs in tomcat 5 for connection
pooling.  the document is pritty comprehencive and I
understood the server.xml part of it.
but now I want to know how exactly can I use a
connection from the pool in my servlet.
the example in tomcat documentation is on a jsp based
applicatio.  but I don't understand how I use a pooled
connection in a servlet.
should I initialise the connection in the Init method?
 how and when should I close the connection?
and wat entries in the web.xml file will effect
connection pooling?
Please help it is really urgent.
thanks
Krishnakant.

Send instant messages to your online friends http://uk.messenger.yahoo.com 

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



Re: connection pooling basic help please

2005-04-02 Thread QM
On Sat, Apr 02, 2005 at 08:21:24PM +0100, Krishnakant Mane wrote:
: the example in tomcat documentation is on a jsp based
: applicatio.  but I don't understand how I use a pooled
: connection in a servlet.
: [snip]
: should I initialise the connection in the Init method?
:  how and when should I close the connection?


1/ please post a *new* message when writing to the list.  Replying to
an old (unrelated) message confuses thread-aware mailers, which makes
your question harder to find (and thus answer).


2/ I don't have the JSP sample in front of me, but there should be
plenty of examples of using a DataSource out on the web.  A little
Googling should turn them up.  The short version is:
 - perform a JNDI lookup to find the DataSource
 - pull a Connection from that data source
 - use the Connection to talk with a databse
 - call close() on that connection

You should hold on to the Connection for as short a period of time as
possible.  This is easier to manage if all of the database calls are
done from a particular set of objects (a data layer).

Having all of your components do the JNDI lookup, etc can get messy and
tough to maintain.  Isolate all of your data calls to a separate object
(or set of objects).  You could initialize these objects in a
ServletContextListener and either store them under Application scope or
in a singleton such that they would be globally available.

-QM


-- 
software   -- http://www.brandxdev.net/
tech news  -- http://www.RoarNetworX.com/
code scan  -- http://www.JxRef.org/

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



Beginner's Guide help please

2004-10-21 Thread Darren Grant
Is there a really good beginner's guide for setting up a standalone 
tomcat server?

I've been reading through the docs on the jakarta home page... and have 
been searching through archives and google. So far I've gotten a 
standalone tomcat server (5.5.3) running 2 virtual hosts (without 
apache)... which work great... but I'm a little fuzzy on how you 
configure webdav to allow users to update the websites.  Right now I 
have both sites installed in /var/www/html/site1 and site2... within 
each site I have a /webdav/WEB-INF/web.xml file. I've enabled authorized 
user write priveledges... but it seems to only allow access to the 
/var/www/html/siteX/webdav folder. Should my web pages be deployed to 
the webdav folder... or is there a simple line of code I need to change 
or add to web.xml?

Sorry in advance if this has already been discussed... I'm new to the 
list and wasn't able to find an answer in the archives I looked through.

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


RE: Beginner's Guide help please

2004-10-21 Thread Shapira, Yoav

Hi,
What you're doing isn't considered beginner's stuff by most people ;)
Setting up Tomcat standalone is easy: get .zip download, extract using
Winzip or whatver software you want, and that's it.

Mark might be able to help a bit more with the WebDAV setup.  The WebDAV
app that ships with Tomcat is intended to be a simple and quick partial
solution, not a full WebDAV implementation.  If you want the latter (or
anticipate needing the latter), you should strongly consider using
Jakarta Slide (which runs on top of Tomcat) instead of the built-in
Tomcat WebDAV impl.

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: Darren Grant [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 21, 2004 1:46 PM
To: [EMAIL PROTECTED]
Subject: Beginner's Guide help please

Is there a really good beginner's guide for setting up a standalone
tomcat server?

I've been reading through the docs on the jakarta home page... and have
been searching through archives and google. So far I've gotten a
standalone tomcat server (5.5.3) running 2 virtual hosts (without
apache)... which work great... but I'm a little fuzzy on how you
configure webdav to allow users to update the websites.  Right now I
have both sites installed in /var/www/html/site1 and site2... within
each site I have a /webdav/WEB-INF/web.xml file. I've enabled
authorized
user write priveledges... but it seems to only allow access to the
/var/www/html/siteX/webdav folder. Should my web pages be deployed to
the webdav folder... or is there a simple line of code I need to change
or add to web.xml?

Sorry in advance if this has already been discussed... I'm new to the
list and wasn't able to find an answer in the archives I looked
through.

Thanks,
Darren

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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: Beginner's Guide help please

2004-10-21 Thread Darren Grant
Hey thanks for the reply. I didn't want to get too complicated... I read 
a bit about jakarta slide... but the built-in webdav sounds like it 
should meet my needs. I don't anticipate any growth, basically I just 
need webdav access for two sites... so if anyone could help with the 
web.xml config or my setup, I'd really appreciate it.

-Darren
Shapira, Yoav wrote:
Hi,
What you're doing isn't considered beginner's stuff by most people ;)
Setting up Tomcat standalone is easy: get .zip download, extract using
Winzip or whatver software you want, and that's it.
Mark might be able to help a bit more with the WebDAV setup.  The WebDAV
app that ships with Tomcat is intended to be a simple and quick partial
solution, not a full WebDAV implementation.  If you want the latter (or
anticipate needing the latter), you should strongly consider using
Jakarta Slide (which runs on top of Tomcat) instead of the built-in
Tomcat WebDAV impl.
Yoav Shapira http://www.yoavshapira.com
 

-Original Message-
From: Darren Grant [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 21, 2004 1:46 PM
To: [EMAIL PROTECTED]
Subject: Beginner's Guide help please
Is there a really good beginner's guide for setting up a standalone
tomcat server?
I've been reading through the docs on the jakarta home page... and have
been searching through archives and google. So far I've gotten a
standalone tomcat server (5.5.3) running 2 virtual hosts (without
apache)... which work great... but I'm a little fuzzy on how you
configure webdav to allow users to update the websites.  Right now I
have both sites installed in /var/www/html/site1 and site2... within
each site I have a /webdav/WEB-INF/web.xml file. I've enabled
   

authorized
 

user write priveledges... but it seems to only allow access to the
/var/www/html/siteX/webdav folder. Should my web pages be deployed to
the webdav folder... or is there a simple line of code I need to change
or add to web.xml?
Sorry in advance if this has already been discussed... I'm new to the
list and wasn't able to find an answer in the archives I looked
   

through.
 

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



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.
 

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


Re: Beginner's Guide help please

2004-10-21 Thread Remy Maucherat
On Thu, 21 Oct 2004 10:57:21 -0700, Darren Grant [EMAIL PROTECTED] wrote:
 Hey thanks for the reply. I didn't want to get too complicated... I read
 a bit about jakarta slide... but the built-in webdav sounds like it
 should meet my needs. I don't anticipate any growth, basically I just
 need webdav access for two sites... so if anyone could help with the
 web.xml config or my setup, I'd really appreciate it.

As Yoav said, you can find examples on using the WebDAV servlet in the
webdav webapp (copy over the relevant servlet declarations, and don't
forget to enable security).

-- 
x
Rémy Maucherat
Developer  Consultant
JBoss Group (Europe) SàRL
x

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



Undelpoying Web App - help please

2004-08-04 Thread Bussie, Andre D
Once you undeploy a web app from Tomcat 5.0.19 admin screen where does
the folder goes. I accidentally hit the undelpoy button Is there any way
to retrieve the folder?

 

 



RE: Undelpoying Web App - help please

2004-08-04 Thread Dale, Matt

I think it gets deleted completely.

-Original Message-
From: Bussie, Andre D [mailto:[EMAIL PROTECTED]
Sent: 04 August 2004 15:30
To: [EMAIL PROTECTED]
Subject: Undelpoying Web App - help please


Once you undeploy a web app from Tomcat 5.0.19 admin screen where does
the folder goes. I accidentally hit the undelpoy button Is there any way
to retrieve the folder?

 

 

Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the company. This E-mail and any files transmitted with it are 
confidential and solely for the use of the intended recipient. If you are not the 
intended recipient or the person responsible for delivering to the intended recipient, 
be advised that you have received this E-mail in error and that any use or copying is 
strictly prohibited. If you have received this E-mail in error please notify the 
beCogent postmaster at [EMAIL PROTECTED]
Unless expressly stated, opinions in this email are those of the individual sender and 
not beCogent Ltd. You must take full responsibility for virus checking this email and 
any attachments.
Please note that the content of this email or any of its attachments may contain data 
that falls within the scope of the Data Protection Acts and that you must ensure that 
any handling or processing of such data by you is fully compliant with the terms and 
provisions of the Data Protection Act 1984 and 1998.


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

DataSource -- help please

2004-07-28 Thread Bussie, Andre D
I restarted Tomcat and I'm still receiving the following error 

 

2004-07-28 12:56:27 StandardWrapperValve[jsp]: Servlet.service() for
servlet jsp threw exception

org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of
class '' for connect URL 'null', cause: 

java.lang.NullPointerException

 

Listed is my server.xml 

 

?xml version='1.0' encoding='utf-8'?

Server

  Listener
className=org.apache.catalina.mbeans.ServerLifecycleListener/

  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener/


  GlobalNamingResources

Environment name=simpleValue type=java.lang.Integer
value=30/

Resource name=jdbc/phone type=javax.sql.DataSource/

Resource auth=Container description=User database that can be
updated and saved name=UserDatabase
type=org.apache.catalina.UserDatabase/

Resource name=hsqldb type=javax.sql.DataSource/

ResourceParams name=jdbc/phone

  parameter

namemaxWait/name

value5000/value

  /parameter

  parameter

namemaxActive/name

value4/value

  /parameter

  parameter

namepassword/name

value/value

  /parameter

  parameter

nameurl/name

valuejdbc:hsqldb.hsql://localhost/value

  /parameter

  parameter

namedriverClassName/name

valueorg.hsqldb.jdbcDriver/value

  /parameter

  parameter

namemaxIdle/name

value2/value

  /parameter

  parameter

nameusername/name

valuesa/value

  /parameter

/ResourceParams

ResourceParams name=UserDatabase

  parameter

namefactory/name

 
valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value

  /parameter

  parameter

namepathname/name

valueconf/tomcat-users.xml/value

  /parameter

/ResourceParams

ResourceParams name=hsqldb

  parameter

nameurl/name

valuejdbc:hsqldb.hsql://localhost/value

  /parameter

  parameter

namepassword/name

value/value

  /parameter

  parameter

namemaxActive/name

value4/value

  /parameter

  parameter

namemaxWait/name

value5000/value

  /parameter

  parameter

namedriverClassName/name

valueorg.hsqldb.jdbcDriver/value

  /parameter

  parameter

nameusername/name

valuesa/value

  /parameter

  parameter

namemaxIdle/name

value2/value

  /parameter

/ResourceParams

  /GlobalNamingResources

  Service debug=9 name=Catalina

Connector acceptCount=100 connectionTimeout=2
disableUploadTimeout=true port=8080 redirectPort=8443

/Connector

Connector port=8009 protocol=AJP/1.3
protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler
redirectPort=8443

/Connector

Engine debug=9 defaultHost=localhost name=Catalina

  Host appBase=webapps name=localhost

Logger className=org.apache.catalina.logger.FileLogger
prefix=localhost_log. suffix=.txt timestamp=true/

  /Host

  Logger className=org.apache.catalina.logger.FileLogger
prefix=catalina_log. suffix=.txt timestamp=true/

  Realm className=org.apache.catalina.realm.UserDatabaseRealm/

/Engine

  /Service

/Server

 

I connected to the database earlier via Jakarta Struts datasource so I
know the url settings are correct. 

 

What is causing this? Someone help please.

 

 



Re: DataSource -- help please

2004-07-28 Thread Koon Yue Lam
Hi, 

I think the exception already told you what going wrong
according to:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-resources-howto.html

the url should be:
 parameter
  nameurl/name
  valuejdbc:HypersonicSQL:database/value
/parameter

so if your database call testDB

the url would become:
jdbc:HypersonicSQL:testDB

hope this help

Regards

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



Help Please : Session problem with multiple Tomcats

2004-04-23 Thread tschroeck





Can anyone assist on this one?  Does Tomcat have the ability to name the
session cookie differently ( like BEA Weblogic does )?


We are running multiple Tomcat servers with multiple JVM's and ports.
Everything works fine except for the sessions.
When using one browser (IE) and I flip back an forth between the two sites
( on the two ports ), the sessions are lost.

How does Tomcat's session logic work?  Is there a way to define two
different session names so they don't clash under one browser?

We've worked around it so far by using IE with one port and Netscape with
the other.

I've included the server.xml's from the two servers.

Thanks for any help
Ted

Server port=18005 shutdown=SHUTDOWN debug=0

  !-- Define the Tomcat Stand-Alone Service --
  Service name=Publishing-Manager

!-- Define a non-SSL HTTP/1.1 Connector on port 8401 --
Connector
   port=8601
   enableLookups=true redirectPort=8443
   acceptCount=10 debug=0 connectionTimeout=6/

!-- OPTIONAL: Define an SSL HTTP/1.1 Connector on port 8443 --
!--
Connector
   port=8443 minProcessors=2
maxProcessors=5
   enableLookups=true
acceptCount=10
debug=0 scheme=https secure=true
  Factory
clientAuth=false
protocol=TLS/
/Connector
--

!-- Define the top level container in our container hierarchy --
Engine name=Standalone defaultHost=pubmgr debug=0

  !-- Global logger unless overridden at lower levels --
  Logger className=org.apache.catalina.logger.FileLogger
  directory=../logs  prefix=pm_catalina_log. suffix=.txt
  timestamp=true/

  Realm className=org.apache.catalina.realm.MemoryRealm /

  !-- Define the default virtual host --
  Host name=pubmgr debug=0 appBase=webapps
unpackWARs=true autoDeploy=true 

Valve className=org.apache.catalina.valves.AccessLogValve
 directory=../logs  prefix=pm_access_log. suffix=.txt
 pattern=common/

Logger className=org.apache.catalina.logger.FileLogger
 directory=../logs  prefix=pm_localhost_log.
suffix=.txt
   timestamp=true/

!-- Tomcat Root Context --
Context path= docBase=ROOT debug=0 swallowOutput=true  /

Manager
className=org.apache.catalina.session.StandardManager
 checkInterval=600 entropy=pubmgr
/Manager

  /Host

/Engine

  /Service

/Server





Server port=8005 shutdown=SHUTDOWN debug=0

  !-- Define the Tomcat Stand-Alone Service --
  Service name=Webstore

!-- Define a non-SSL HTTP/1.1 Connector on port 8080 --
Connector
   port=80
   enableLookups=true redirectPort=443
   acceptCount=10 debug=0 connectionTimeout=6/

!-- Define an SSL HTTP/1.1 Connector on port 443 --
Connector
   port=443 minProcessors=3 maxProcessors=25
   enableLookups=true
 acceptCount=10 debug=0 scheme=https secure=true
  Factory
   clientAuth=false protocol=TLS
   keystoreFile=conf/keystore /
/Connector

!-- Define the top level container in our container hierarchy --
Engine name=Standalone defaultHost=webstore debug=0

  !-- Global logger unless overridden at lower levels --
  Logger className=org.apache.catalina.logger.FileLogger
  directory=../logs prefix=ws_catalina_log. suffix=.txt
  timestamp=true/

  Realm className=org.apache.catalina.realm.MemoryRealm /

  !-- Define the default virtual host --
  Host name=webstore debug=0 appBase=webapps
   unpackWARs=true autoDeploy=true

Valve className=org.apache.catalina.valves.AccessLogValve
 directory=../logs  prefix=ws_access_log. suffix=.txt
 pattern=common/

Logger className=org.apache.catalina.logger.FileLogger
directory=../logs  prefix=ws_localhost_log.
suffix=.txt
  timestamp=true/

!-- Tomcat Root Context --
Context path= docBase=ROOT debug=0 swallowOutput=true /

Manager
className=org.apache.catalina.session.StandardManager
 checkInterval=600 entropy=webstore
/Manager

  /Host

/Engine

  /Service

/Server




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



RE: Help Please : Session problem with multiple Tomcats

2004-04-23 Thread Berry, Layton
Servelet Spec requires the session cookie to be JSESSIONID.

If you launch two instances of IE, it should keep track
of a session ID for each instance.  That should let you
do what you want.

Mozilla just keeps one session ID, even with two instances.

-Layton 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, April 23, 2004 2:52 PM
To: Tomcat Users List
Subject: Help Please : Session problem with multiple Tomcats







Can anyone assist on this one?  Does Tomcat have the ability 
to name the
session cookie differently ( like BEA Weblogic does )?


We are running multiple Tomcat servers with multiple JVM's and ports.
Everything works fine except for the sessions.
When using one browser (IE) and I flip back an forth between 
the two sites
( on the two ports ), the sessions are lost.

How does Tomcat's session logic work?  Is there a way to define two
different session names so they don't clash under one browser?

We've worked around it so far by using IE with one port and 
Netscape with
the other.

I've included the server.xml's from the two servers.

Thanks for any help
Ted

Server port=18005 shutdown=SHUTDOWN debug=0

  !-- Define the Tomcat Stand-Alone Service --
  Service name=Publishing-Manager

!-- Define a non-SSL HTTP/1.1 Connector on port 8401 --
Connector
   port=8601
   enableLookups=true redirectPort=8443
   acceptCount=10 debug=0 connectionTimeout=6/

!-- OPTIONAL: Define an SSL HTTP/1.1 Connector on port 8443 --
!--
Connector
   port=8443 minProcessors=2
maxProcessors=5
   enableLookups=true
acceptCount=10
debug=0 scheme=https secure=true
  Factory
clientAuth=false
protocol=TLS/
/Connector
--

!-- Define the top level container in our container hierarchy --
Engine name=Standalone defaultHost=pubmgr debug=0

  !-- Global logger unless overridden at lower levels --
  Logger className=org.apache.catalina.logger.FileLogger
  directory=../logs  prefix=pm_catalina_log. 
suffix=.txt
  timestamp=true/

  Realm className=org.apache.catalina.realm.MemoryRealm /

  !-- Define the default virtual host --
  Host name=pubmgr debug=0 appBase=webapps
unpackWARs=true autoDeploy=true 

Valve className=org.apache.catalina.valves.AccessLogValve
 directory=../logs  prefix=pm_access_log. 
suffix=.txt
 pattern=common/

Logger className=org.apache.catalina.logger.FileLogger
 directory=../logs  prefix=pm_localhost_log.
suffix=.txt
   timestamp=true/

!-- Tomcat Root Context --
Context path= docBase=ROOT debug=0 
swallowOutput=true  /

Manager
className=org.apache.catalina.session.StandardManager
 checkInterval=600 entropy=pubmgr
/Manager

  /Host

/Engine

  /Service

/Server





Server port=8005 shutdown=SHUTDOWN debug=0

  !-- Define the Tomcat Stand-Alone Service --
  Service name=Webstore

!-- Define a non-SSL HTTP/1.1 Connector on port 8080 --
Connector
   port=80
   enableLookups=true redirectPort=443
   acceptCount=10 debug=0 connectionTimeout=6/

!-- Define an SSL HTTP/1.1 Connector on port 443 --
Connector
   port=443 minProcessors=3 maxProcessors=25
   enableLookups=true
 acceptCount=10 debug=0 scheme=https secure=true
  Factory
   clientAuth=false protocol=TLS
   keystoreFile=conf/keystore /
/Connector

!-- Define the top level container in our container hierarchy --
Engine name=Standalone defaultHost=webstore debug=0

  !-- Global logger unless overridden at lower levels --
  Logger className=org.apache.catalina.logger.FileLogger
  directory=../logs prefix=ws_catalina_log. 
suffix=.txt
  timestamp=true/

  Realm className=org.apache.catalina.realm.MemoryRealm /

  !-- Define the default virtual host --
  Host name=webstore debug=0 appBase=webapps
   unpackWARs=true autoDeploy=true

Valve className=org.apache.catalina.valves.AccessLogValve
 directory=../logs  prefix=ws_access_log. 
suffix=.txt
 pattern=common/

Logger className=org.apache.catalina.logger.FileLogger
directory=../logs  prefix=ws_localhost_log.
suffix=.txt
  timestamp=true/

!-- Tomcat Root Context --
Context path= docBase=ROOT debug=0 
swallowOutput=true /

Manager
className=org.apache.catalina.session.StandardManager
 checkInterval=600 entropy=webstore
/Manager

  /Host

/Engine

  /Service

/Server




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



RE: Help Please : Session problem with multiple Tomcats

2004-04-23 Thread Jacob Kjome
At 07:48 PM 4/23/2004 -0700, you wrote:
Servelet Spec requires the session cookie to be JSESSIONID.

If you launch two instances of IE, it should keep track
of a session ID for each instance.  That should let you
do what you want.
Mozilla just keeps one session ID, even with two instances.
You have to be careful about this.  IE can launch new windows in the same 
process or as a different process.  If it launches them in the same 
process, then you will share the same session, just like you observe in 
Mozilla.  If you have it set up to launch windows in a separate process, 
then you will have distinct session id's in each window.  This isn't a 
matter of IE doing something right and Mozilla doing something wrong.  In 
fact, they are both providing exactly the same behavior, except that IE can 
be configured to launch windows in a separate process and Mozilla always 
uses the same process.

Jake


-Layton

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, April 23, 2004 2:52 PM
To: Tomcat Users List
Subject: Help Please : Session problem with multiple Tomcats







Can anyone assist on this one?  Does Tomcat have the ability
to name the
session cookie differently ( like BEA Weblogic does )?


We are running multiple Tomcat servers with multiple JVM's and ports.
Everything works fine except for the sessions.
When using one browser (IE) and I flip back an forth between
the two sites
( on the two ports ), the sessions are lost.

How does Tomcat's session logic work?  Is there a way to define two
different session names so they don't clash under one browser?

We've worked around it so far by using IE with one port and
Netscape with
the other.

I've included the server.xml's from the two servers.

Thanks for any help
Ted

Server port=18005 shutdown=SHUTDOWN debug=0

  !-- Define the Tomcat Stand-Alone Service --
  Service name=Publishing-Manager

!-- Define a non-SSL HTTP/1.1 Connector on port 8401 --
Connector
   port=8601
   enableLookups=true redirectPort=8443
   acceptCount=10 debug=0 connectionTimeout=6/

!-- OPTIONAL: Define an SSL HTTP/1.1 Connector on port 8443 --
!--
Connector
   port=8443 minProcessors=2
maxProcessors=5
   enableLookups=true
acceptCount=10
debug=0 scheme=https secure=true
  Factory
clientAuth=false
protocol=TLS/
/Connector
--

!-- Define the top level container in our container hierarchy --
Engine name=Standalone defaultHost=pubmgr debug=0

  !-- Global logger unless overridden at lower levels --
  Logger className=org.apache.catalina.logger.FileLogger
  directory=../logs  prefix=pm_catalina_log.
suffix=.txt
  timestamp=true/

  Realm className=org.apache.catalina.realm.MemoryRealm /

  !-- Define the default virtual host --
  Host name=pubmgr debug=0 appBase=webapps
unpackWARs=true autoDeploy=true 

Valve className=org.apache.catalina.valves.AccessLogValve
 directory=../logs  prefix=pm_access_log.
suffix=.txt
 pattern=common/

Logger className=org.apache.catalina.logger.FileLogger
 directory=../logs  prefix=pm_localhost_log.
suffix=.txt
   timestamp=true/

!-- Tomcat Root Context --
Context path= docBase=ROOT debug=0
swallowOutput=true  /

Manager
className=org.apache.catalina.session.StandardManager
 checkInterval=600 entropy=pubmgr
/Manager

  /Host

/Engine

  /Service

/Server





Server port=8005 shutdown=SHUTDOWN debug=0

  !-- Define the Tomcat Stand-Alone Service --
  Service name=Webstore

!-- Define a non-SSL HTTP/1.1 Connector on port 8080 --
Connector
   port=80
   enableLookups=true redirectPort=443
   acceptCount=10 debug=0 connectionTimeout=6/

!-- Define an SSL HTTP/1.1 Connector on port 443 --
Connector
   port=443 minProcessors=3 maxProcessors=25
   enableLookups=true
 acceptCount=10 debug=0 scheme=https secure=true
  Factory
   clientAuth=false protocol=TLS
   keystoreFile=conf/keystore /
/Connector

!-- Define the top level container in our container hierarchy --
Engine name=Standalone defaultHost=webstore debug=0

  !-- Global logger unless overridden at lower levels --
  Logger className=org.apache.catalina.logger.FileLogger
  directory=../logs prefix=ws_catalina_log.
suffix=.txt
  timestamp=true/

  Realm className=org.apache.catalina.realm.MemoryRealm /

  !-- Define the default virtual host --
  Host name=webstore debug=0 appBase=webapps
   unpackWARs=true autoDeploy=true

Valve className=org.apache.catalina.valves.AccessLogValve
 directory=../logs  prefix=ws_access_log.
suffix=.txt
 pattern=common

Install Help Please

2004-04-10 Thread Andrew Robinson
I'm trying to install tomcat on my Mac OS X machine...   It's running  
apache that was preinstalled with the OS but when I try to build this  
download I get  7 or 8 of the following errors

 [javac] public interface HttpSessionActivationListener extends  
EventListener {
[javac]^
[javac]  
/Users/macusr/Desktop/apache-ant-1.6.1/jakarta-tomcat-5.0.19-src/ 
jakarta-servletapi-5/jsr154/src/share/javax/servlet/http/ 
HttpSessionAttruteListener.java:71: class HttpSessionAttributeListener  
is public, should be declared in a file named  
HttpSessionAttributeListener.java

Any suggestions?

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


Autoreply: Install Help Please

2004-04-10 Thread DirectXtras
Hello,

Due to the increased volume of SPAM this mailbox has been closed.

Please contact us via http://www.directxtras.com/ContactUS.asp

We apology for the inconvenience.

Best Regards,
--
The DirectXtras Team
-
DirectXtras - Xtra Power for Director and Authorware -
  http://www.directxtras.com
Sites with something to say - http://www.SpeaksForItself.com
-


Your message reads:

Received: from mail.apache.org (unverified [208.185.179.12]) by mail2.intermedia.net
 (Rockliffe SMTPRA 4.5.6) with SMTP id [EMAIL PROTECTED] for [EMAIL PROTECTED];
 Sat, 10 Apr 2004 17:27:50 -0700
Received: (qmail 85822 invoked by uid 500); 11 Apr 2004 00:27:27 -
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
List-Unsubscribe: mailto:[EMAIL PROTECTED]
List-Subscribe: mailto:[EMAIL PROTECTED]
List-Help: mailto:[EMAIL PROTECTED]
List-Post: mailto:[EMAIL PROTECTED]
List-Id: Tomcat Users List tomcat-user.jakarta.apache.org
Reply-To: Tomcat Users List [EMAIL PROTECTED]
Delivered-To: mailing list [EMAIL PROTECTED]
Received: (qmail 85809 invoked from network); 11 Apr 2004 00:27:27 -
Received: from unknown (HELO rwcrmhc13.comcast.net) (204.127.198.39)
  by daedalus.apache.org with SMTP; 11 Apr 2004 00:27:27 -
Received: from andrew-robinson.net ([65.96.121.31])
  by comcast.net (rwcrmhc13) with SMTP
  id 2004041100273501500aemeie; Sun, 11 Apr 2004 00:27:35 +
Date: Sat, 10 Apr 2004 20:27:34 -0400
Mime-Version: 1.0 (Apple Message framework v553)
Content-Type: text/plain; delsp=yes; charset=US-ASCII; format=flowed
Subject: Install Help Please
From: Andrew Robinson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Content-Transfer-Encoding: 7bit
Message-Id: [EMAIL PROTECTED]
X-Mailer: Apple Mail (2.553)
X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N

I'm trying to install tomcat on my Mac OS X machine...   It's running  
apache that was preinstalled with the OS but when I try to build this  
download I get  7 or 8 of the following errors

  [javac] public interface HttpSessionActivationListener extends  
EventListener {
 [javac]^
 [javac]  
/Users/macusr/Desktop/apache-ant-1.6.1/jakarta-tomcat-5.0.19-src/ 
jakarta-servletapi-5/jsr154/src/share/javax/servlet/http/ 
HttpSessionAttruteListener.java:71: class HttpSessionAttributeListener  
is public, should be declared in a file named  
HttpSessionAttributeListener.java


Any suggestions?

Thanks,
Andrew


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



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



Help please

2004-02-27 Thread Santosh Joshi
Yoav,

Could I please be removed from this list.

Two of my attempts to do so failed yesterday, perhaps you can help.

Regards,

Santosh


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



Help please

2004-02-27 Thread Santosh Joshi
Yoav,

Could you please remove me from the list?

Regards,

Santosh

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



RE: Help please

2004-02-27 Thread Shapira, Yoav

Howdy,
I removed [EMAIL PROTECTED] from this list after your first
request.  If you're still getting emails, it means you're subscribed
from another address.  Stop sending these public notices and follow the
normal unsubscribe directions, including the part where if it doesn't
work, email [EMAIL PROTECTED] (I'll get it on my
private account and the thousands of other subscribers don't have to get
this thread).

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Santosh Joshi [mailto:[EMAIL PROTECTED]
Sent: Friday, February 27, 2004 10:30 AM
To: Tomcat Users List
Subject: Help please

Yoav,

Could you please remove me from the list?

Regards,

Santosh

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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



servlet help please

2004-02-17 Thread Jason Tesser
OK I am new to Tomcat and I am going through one of Sun's courses
regarding Web apps.  I am working on the below example; I have complied
the code ok 
And put it in the servlets-examples/classes.  I also went into the
web.xml File under the servlets-examples directory and added the
following
servlet-mapping
servlet-nameMessageServlet1/servlet-name
url-pattern/servlet/MessageServlet1/url-pattern
/servlet-mapping

The problem is when I add the above code to the xml file nothing Under
servlets-examples will run.  What am I doing wrong?

Here is the java code for MessageServlet1 

import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
// Support classes
import java.io.IOException;
import java.io.PrintWriter;


public class MessageServlet1 extends HttpServlet {

  private static final String[] MESSAGES = {
How are you today?,
What's in a name? That which we call a rose by any other name would
smell as sweet.,
My hovercraft is full of eels.
  };

  public void doGet(HttpServletRequest request,
HttpServletResponse response)
 throws IOException {

// Pick a random message
int msg_index = (int) (Math.random() * MESSAGES.length);
String message = MESSAGES[msg_index];

response.setContentType(text/html);
PrintWriter out = response.getWriter();

out.println(HTML);
out.println(HEAD);
out.println(TITLEMessage Servlet/TITLE);
out.println(/HEAD);
out.println(BODY BGCOLOR='white');
out.println(The message is: BR);
out.println(BLOCKQUOTE + message + /BLOCKQUOTE);
out.println(/BODY);
out.println(/HTML);

out.close();
  }
}

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



RE: servlet help please

2004-02-17 Thread Shapira, Yoav

Howdy,

   servlet-mapping
   servlet-nameMessageServlet1/servlet-name
   url-pattern/servlet/MessageServlet1/url-pattern
   /servlet-mapping

The problem is when I add the above code to the xml file nothing Under
servlets-examples will run.  What am I doing wrong?

You need to have a servlet element in your web.xml file defining what
class MessageServlet1 is, e.g.
servlet
  servlet-nameMessageServlet1/servlet-name
  servlet-classcom.mycompany.SomeServlet/servlet-class
/servlet

It's preferable to put this servlet element before the servlet-mapping
one ;)

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: servlet help please

2004-02-17 Thread Jason Tesser
Hi

 Howdy,
 
  servlet-mapping
  servlet-nameMessageServlet1/servlet-name
  url-pattern/servlet/MessageServlet1/url-pattern
  /servlet-mapping
 
 The problem is when I add the above code to the xml file nothing
Under
 servlets-examples will run.  What am I doing wrong?
 
 You need to have a servlet element in your web.xml file defining
what
 class MessageServlet1 is, e.g.
 servlet
   servlet-nameMessageServlet1/servlet-name
   servlet-classcom.mycompany.SomeServlet/servlet-class
 /servlet
 
 It's preferable to put this servlet element before the servlet-mapping
 one ;)
 
 Yoav Shapira
 
ok got it :-)  Thanks now I am getting the following error

HTTP Status 500 - 




type Exception report

message 

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception 

javax.servlet.ServletException: No servlet class has been specified for
servlet MessageServlet1

org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator
Base.java:509)

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:164)

org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:206)

org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:82
8)

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
onnection(Http11Protocol.java:700)

org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:58
4)

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:683)
java.lang.Thread.run(Thread.java:534)


note The full stack trace of the root cause is available in the Tomcat
logs.

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



RE: servlet help please

2004-02-17 Thread Shapira, Yoav

Howdy,

javax.servlet.ServletException: No servlet class has been specified for
servlet MessageServlet1

Post the servlet and servlet-mapping elements from your amended
web.xml.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: servlet help please

2004-02-17 Thread Schalk
Paste your servlet and servlet-mapping code here.

Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.CEO
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.com
 
This message contains information that is considered to be sensitive or
confidential and may not be forwarded or disclosed to any other party
without the permission of the sender. If you received this message in error,
please notify me immediately so that I can correct and delete the original
email. Thank you. 

:: -Original Message-
:: From: Jason Tesser [mailto:[EMAIL PROTECTED]
:: Sent: Tuesday, February 17, 2004 9:22 PM
:: To: Tomcat Users List
:: Subject: RE: servlet help please
:: 
:: Hi
:: 
::  Howdy,
:: 
::servlet-mapping
::servlet-nameMessageServlet1/servlet-name
::url-pattern/servlet/MessageServlet1/url-pattern
::/servlet-mapping
::  
::  The problem is when I add the above code to the xml file nothing
:: Under
::  servlets-examples will run.  What am I doing wrong?
:: 
::  You need to have a servlet element in your web.xml file defining
:: what
::  class MessageServlet1 is, e.g.
::  servlet
::servlet-nameMessageServlet1/servlet-name
::servlet-classcom.mycompany.SomeServlet/servlet-class
::  /servlet
:: 
::  It's preferable to put this servlet element before the servlet-mapping
::  one ;)
:: 
::  Yoav Shapira
:: 
:: ok got it :-)  Thanks now I am getting the following error
:: 
:: HTTP Status 500 -
:: 
:: 
:: 
:: 
:: type Exception report
:: 
:: message
:: 
:: description The server encountered an internal error () that prevented
:: it from fulfilling this request.
:: 
:: exception
:: 
:: javax.servlet.ServletException: No servlet class has been specified for
:: servlet MessageServlet1
:: 
:: org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator
:: Base.java:509)
:: 
:: org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:: :164)
:: 
:: org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:206)
:: 
:: org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:82
:: 8)
:: 
:: org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
:: onnection(Http11Protocol.java:700)
:: 
:: org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:58
:: 4)
:: 
:: org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
:: .java:683)
::  java.lang.Thread.run(Thread.java:534)
:: 
:: 
:: note The full stack trace of the root cause is available in the Tomcat
:: logs.
:: 
:: -
:: To unsubscribe, e-mail: [EMAIL PROTECTED]
:: For additional commands, e-mail: [EMAIL PROTECTED]




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



RE: servlet help please

2004-02-17 Thread Jason Tesser
Hi,

Yes I got it working.  Thank you all for the help.  
 
 Paste your servlet and servlet-mapping code here.
 
 Kind Regards
 Schalk Neethling
 Web Developer.Designer.Programmer.CEO
 Volume4.Development.Multimedia.Branding
 emotionalize.conceptualize.visualize.realize
 Tel: +27125468436
 Fax: +27125468436
 email:[EMAIL PROTECTED]
 web: www.volume4.com
 
 This message contains information that is considered to be sensitive
or
 confidential and may not be forwarded or disclosed to any other party
 without the permission of the sender. If you received this message in
 error,
 please notify me immediately so that I can correct and delete the
original
 email. Thank you.
 
 :: -Original Message-
 :: From: Jason Tesser [mailto:[EMAIL PROTECTED]
 :: Sent: Tuesday, February 17, 2004 9:22 PM
 :: To: Tomcat Users List
 :: Subject: RE: servlet help please
 ::
 :: Hi
 ::
 ::  Howdy,
 :: 
 ::  servlet-mapping
 ::  servlet-nameMessageServlet1/servlet-name
 ::  
url-pattern/servlet/MessageServlet1/url-pattern
 ::  /servlet-mapping
 ::  
 ::  The problem is when I add the above code to the xml file nothing
 :: Under
 ::  servlets-examples will run.  What am I doing wrong?
 :: 
 ::  You need to have a servlet element in your web.xml file
defining
 :: what
 ::  class MessageServlet1 is, e.g.
 ::  servlet
 ::servlet-nameMessageServlet1/servlet-name
 ::servlet-classcom.mycompany.SomeServlet/servlet-class
 ::  /servlet
 :: 
 ::  It's preferable to put this servlet element before the servlet-
 mapping
 ::  one ;)
 :: 
 ::  Yoav Shapira
 :: 
 :: ok got it :-)  Thanks now I am getting the following error
 ::
 :: HTTP Status 500 -
 ::
 ::
---
 -
 :: 
 ::
 :: type Exception report
 ::
 :: message
 ::
 :: description The server encountered an internal error () that
prevented
 :: it from fulfilling this request.
 ::
 :: exception
 ::
 :: javax.servlet.ServletException: No servlet class has been specified
for
 :: servlet MessageServlet1
 ::
 ::

org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator
 :: Base.java:509)
 ::
 ::

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
 :: :164)
 ::
 ::
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:206)
 ::
 ::

org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:82
 :: 8)
 ::
 ::

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
 :: onnection(Http11Protocol.java:700)
 ::
 ::

org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:58
 :: 4)
 ::
 ::

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
 :: .java:683)
 ::java.lang.Thread.run(Thread.java:534)
 ::
 ::
 :: note The full stack trace of the root cause is available in the
Tomcat
 :: logs.
 ::
 ::
-
 :: To unsubscribe, e-mail: [EMAIL PROTECTED]
 :: For additional commands, e-mail:
[EMAIL PROTECTED]
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


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



Re: servlet help please

2004-02-17 Thread jugal
hi
tell me one thing...that u added the servlet tag in ur web.xml file or 
not...
if not then add it to web.xml file
servlet
servlet-nameMessageServlet1/servlet-name
servlet-classMessageServlet1/servlet-class
/servlet

try with this...
programme runs???...or not runlet me know
by by
jugal
Jason Tesser wrote:

OK I am new to Tomcat and I am going through one of Sun's courses
regarding Web apps.  I am working on the below example; I have complied
the code ok 
And put it in the servlets-examples/classes.  I also went into the
web.xml File under the servlets-examples directory and added the
following
	servlet-mapping
		servlet-nameMessageServlet1/servlet-name
		url-pattern/servlet/MessageServlet1/url-pattern
	/servlet-mapping

The problem is when I add the above code to the xml file nothing Under
servlets-examples will run.  What am I doing wrong?
Here is the java code for MessageServlet1 

import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
// Support classes
import java.io.IOException;
import java.io.PrintWriter;
public class MessageServlet1 extends HttpServlet {

 private static final String[] MESSAGES = {
   How are you today?,
   What's in a name? That which we call a rose by any other name would
smell as sweet.,
   My hovercraft is full of eels.
 };
 public void doGet(HttpServletRequest request,
HttpServletResponse response)
 throws IOException {
   // Pick a random message
   int msg_index = (int) (Math.random() * MESSAGES.length);
   String message = MESSAGES[msg_index];
   response.setContentType(text/html);
   PrintWriter out = response.getWriter();
   out.println(HTML);
   out.println(HEAD);
   out.println(TITLEMessage Servlet/TITLE);
   out.println(/HEAD);
   out.println(BODY BGCOLOR='white');
   out.println(The message is: BR);
   out.println(BLOCKQUOTE + message + /BLOCKQUOTE);
   out.println(/BODY);
   out.println(/HTML);
   out.close();
 }
}
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 





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


Re: newbie help please, localhost not found

2003-12-08 Thread D. Gilbert
Tomcat is now working for me. Thanks to everyone for the suggestions.
It turned out to be the firewall as Doug suggested. When I turned off Norton
Firewall
it worked straight away. I don't understand why a firewall would affect it
though, when its not
trying to access the internet, but perhaps thats too far off topic.
Thanks again,
Dave

- Original Message -
From: Doug Parsons [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Saturday, December 06, 2003 4:25 PM
Subject: Re: newbie help please, localhost not found


 You may want to go even more basic than that. Open a command prompt and
try
 pinging localhost and then try 127.0.0.1  Unless you are running some type
 of firewall you should get a response. If not, do you have a personal
 firewall enabled?

 No you don't have to be connected to a lan, but the TCP/IP stack must be
 running. The above test will help you determine that.

 If the ping fails you can contact me off list for more help.

 I know this veered off topic, but often it is the little things that get
ya.



 - Original Message -
 From: Jan Behrens [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Saturday, December 06, 2003 11:00 AM
 Subject: RE: newbie help please, localhost not found


  Hi there,
 
  have you tried http://127.0.0.1:8080 instead? That is the IP usually
bound
  to localhost and it might be that localhost is not resolved correctly to
  same. If not, try to provide further info. For example, have you
installed
  Tomcat in a path containing spaces such as c:\Program Files\Tomcat. If
so,
  reinstall to a path without spaces.
 
  Cheers, Jan
 
   -Original Message-
   From: D. Gilbert [mailto:[EMAIL PROTECTED]
   Sent: Saturday, December 06, 2003 4:56 PM
   To: Tomcat Users List
   Subject: newbie help please, localhost not found
  
  
   When I type http://localhost:8080 in Internet Explorer it says The
page
   cannot be displayed.
   I've looked through the archives but couldn't find anything.
   The running.txt file that comes with Tomcat lists only 3 possibilites
 for
   why it doesn't work.
   I've tried changing the port number, I'm using Windows XP so the
   environment
   issue doesn't apply
   and I'm pretty sure that I'm not behind a proxy as I am using my own
PC
 at
   home.
   I'm pretty sure the JDK is installed ok as I can run javac. I
   tried changing
   JAVA_HOME and CATALINA_HOME to
   incorrect values and that made things worse so I'm sure they are set
   correctly.
   I've tried 2 versions of Tomcat 4.0.1 and 4.1.29.
   When I startup 4.0.1 I get the messages
   
   Starting service Tomcat-Standalone
   Apache Tomcat/4.0.1
   Starting service Tomcat-Apache
   Apache Tomcat/4.0.1
   
   which are correct according to my book.
   Can anyone say what the problem is, or any ways to debug it?
  
   It should run on a standalone home PC shouldn't it? I don't need to be
   connected to a LAN or anything do I?
  
   I've been trying to solve this for 2 weeks now so I would really
   appreciate
   any help please.
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 



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




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



AW: newbie help please, localhost not found

2003-12-08 Thread Jan Behrens
Hi Dave,

your firewall should normally try to restrict ALL connections to and
from your maschine. That even applies to connections that originate on
your maschine, to the system those are handled basicaly on the same
basis that an external request would be handled. I would suggest to tell
your firewall that it can safely allow all connections from localhost
and 127.0.0.1 and then switch your firewall back on. In Norton you
should be able to easily do this by adding those addresses to the
trusted zones defined within Norton.

HTH, Jan

 -Ursprüngliche Nachricht-
 Von: D. Gilbert [mailto:[EMAIL PROTECTED] 
 Gesendet: Montag, 8. Dezember 2003 09:26
 An: Tomcat Users List
 Betreff: Re: newbie help please, localhost not found
 
 
 Tomcat is now working for me. Thanks to everyone for the 
 suggestions. It turned out to be the firewall as Doug 
 suggested. When I turned off Norton Firewall it worked 
 straight away. I don't understand why a firewall would affect 
 it though, when its not trying to access the internet, but 
 perhaps thats too far off topic. Thanks again, Dave
 
 - Original Message -
 From: Doug Parsons [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Saturday, December 06, 2003 4:25 PM
 Subject: Re: newbie help please, localhost not found
 
 
  You may want to go even more basic than that. Open a command prompt 
  and
 try
  pinging localhost and then try 127.0.0.1  Unless you are 
 running some 
  type of firewall you should get a response. If not, do you have a 
  personal firewall enabled?
 
  No you don't have to be connected to a lan, but the TCP/IP 
 stack must 
  be running. The above test will help you determine that.
 
  If the ping fails you can contact me off list for more help.
 
  I know this veered off topic, but often it is the little 
 things that 
  get
 ya.
 
 
 
  - Original Message -
  From: Jan Behrens [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Saturday, December 06, 2003 11:00 AM
  Subject: RE: newbie help please, localhost not found
 
 
   Hi there,
  
   have you tried http://127.0.0.1:8080 instead? That is the 
 IP usually
 bound
   to localhost and it might be that localhost is not resolved 
   correctly to same. If not, try to provide further info. 
 For example, 
   have you
 installed
   Tomcat in a path containing spaces such as c:\Program 
 Files\Tomcat. 
   If
 so,
   reinstall to a path without spaces.
  
   Cheers, Jan
  
-Original Message-
From: D. Gilbert [mailto:[EMAIL PROTECTED]
Sent: Saturday, December 06, 2003 4:56 PM
To: Tomcat Users List
Subject: newbie help please, localhost not found
   
   
When I type http://localhost:8080 in Internet Explorer it says 
The
 page
cannot be displayed.
I've looked through the archives but couldn't find 
 anything. The 
running.txt file that comes with Tomcat lists only 3 
 possibilites
  for
why it doesn't work.
I've tried changing the port number, I'm using Windows 
 XP so the 
environment issue doesn't apply
and I'm pretty sure that I'm not behind a proxy as I am 
 using my own
 PC
  at
home.
I'm pretty sure the JDK is installed ok as I can run javac. I
tried changing
JAVA_HOME and CATALINA_HOME to
incorrect values and that made things worse so I'm sure 
 they are set
correctly.
I've tried 2 versions of Tomcat 4.0.1 and 4.1.29.
When I startup 4.0.1 I get the messages

Starting service Tomcat-Standalone
Apache Tomcat/4.0.1
Starting service Tomcat-Apache
Apache Tomcat/4.0.1

which are correct according to my book.
Can anyone say what the problem is, or any ways to debug it?
   
It should run on a standalone home PC shouldn't it? I 
 don't need to be
connected to a LAN or anything do I?
   
I've been trying to solve this for 2 weeks now so I would really
appreciate
any help please.
   
   

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



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



newbie help please, localhost not found

2003-12-06 Thread D. Gilbert
When I type http://localhost:8080 in Internet Explorer it says The page
cannot be displayed.
I've looked through the archives but couldn't find anything.
The running.txt file that comes with Tomcat lists only 3 possibilites for
why it doesn't work.
I've tried changing the port number, I'm using Windows XP so the environment
issue doesn't apply
and I'm pretty sure that I'm not behind a proxy as I am using my own PC at
home.
I'm pretty sure the JDK is installed ok as I can run javac. I tried changing
JAVA_HOME and CATALINA_HOME to
incorrect values and that made things worse so I'm sure they are set
correctly.
I've tried 2 versions of Tomcat 4.0.1 and 4.1.29.
When I startup 4.0.1 I get the messages

Starting service Tomcat-Standalone
Apache Tomcat/4.0.1
Starting service Tomcat-Apache
Apache Tomcat/4.0.1

which are correct according to my book.
Can anyone say what the problem is, or any ways to debug it?

It should run on a standalone home PC shouldn't it? I don't need to be
connected to a LAN or anything do I?

I've been trying to solve this for 2 weeks now so I would really appreciate
any help please.


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



RE: newbie help please, localhost not found

2003-12-06 Thread Jan Behrens
Hi there,

have you tried http://127.0.0.1:8080 instead? That is the IP usually bound
to localhost and it might be that localhost is not resolved correctly to
same. If not, try to provide further info. For example, have you installed
Tomcat in a path containing spaces such as c:\Program Files\Tomcat. If so,
reinstall to a path without spaces.

Cheers, Jan

 -Original Message-
 From: D. Gilbert [mailto:[EMAIL PROTECTED]
 Sent: Saturday, December 06, 2003 4:56 PM
 To: Tomcat Users List
 Subject: newbie help please, localhost not found


 When I type http://localhost:8080 in Internet Explorer it says The page
 cannot be displayed.
 I've looked through the archives but couldn't find anything.
 The running.txt file that comes with Tomcat lists only 3 possibilites for
 why it doesn't work.
 I've tried changing the port number, I'm using Windows XP so the
 environment
 issue doesn't apply
 and I'm pretty sure that I'm not behind a proxy as I am using my own PC at
 home.
 I'm pretty sure the JDK is installed ok as I can run javac. I
 tried changing
 JAVA_HOME and CATALINA_HOME to
 incorrect values and that made things worse so I'm sure they are set
 correctly.
 I've tried 2 versions of Tomcat 4.0.1 and 4.1.29.
 When I startup 4.0.1 I get the messages
 
 Starting service Tomcat-Standalone
 Apache Tomcat/4.0.1
 Starting service Tomcat-Apache
 Apache Tomcat/4.0.1
 
 which are correct according to my book.
 Can anyone say what the problem is, or any ways to debug it?

 It should run on a standalone home PC shouldn't it? I don't need to be
 connected to a LAN or anything do I?

 I've been trying to solve this for 2 weeks now so I would really
 appreciate
 any help please.


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



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



AW: newbie help please, localhost not found

2003-12-06 Thread SH Solutions
Hi

 have you installed Tomcat in a path containing spaces such as c:\Program
Files\Tomcat. If so, reinstall to a path without spaces.

I'm not sure for older versions, but at least Tomcat 5.0.16 installs to a
path with a lot of spaces by default so this shouldn't be an issue. (As it
isn't on my mashine.)

 I'm not behind a proxy as I am using my own PC at home.

Anyway, check you Internet Explorer Options for proxy settings. Depending
upon you internet access there could be a setup for your providers proxy -
which in turn will surely not be aware of your tomcat.

Cu
  Steffen


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



RE: newbie help please, localhost not found

2003-12-06 Thread Wendell Holmes
Have you checked to see if Tomcat is actually running?  Type 'netstat' at a
command prompt to see if there is a service listening on port 8080.  If it's
not there, try checking the logs.

-Original Message-
From: D. Gilbert [mailto:[EMAIL PROTECTED]
Sent: Saturday, December 06, 2003 8:56 AM
To: Tomcat Users List
Subject: newbie help please, localhost not found


When I type http://localhost:8080 in Internet Explorer it says The page
cannot be displayed.
I've looked through the archives but couldn't find anything.
The running.txt file that comes with Tomcat lists only 3 possibilites for
why it doesn't work.
I've tried changing the port number, I'm using Windows XP so the environment
issue doesn't apply
and I'm pretty sure that I'm not behind a proxy as I am using my own PC at
home.
I'm pretty sure the JDK is installed ok as I can run javac. I tried changing
JAVA_HOME and CATALINA_HOME to
incorrect values and that made things worse so I'm sure they are set
correctly.
I've tried 2 versions of Tomcat 4.0.1 and 4.1.29.
When I startup 4.0.1 I get the messages

Starting service Tomcat-Standalone
Apache Tomcat/4.0.1
Starting service Tomcat-Apache
Apache Tomcat/4.0.1

which are correct according to my book.
Can anyone say what the problem is, or any ways to debug it?

It should run on a standalone home PC shouldn't it? I don't need to be
connected to a LAN or anything do I?

I've been trying to solve this for 2 weeks now so I would really appreciate
any help please.


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


Re: newbie help please, localhost not found

2003-12-06 Thread Doug Parsons
You may want to go even more basic than that. Open a command prompt and try
pinging localhost and then try 127.0.0.1  Unless you are running some type
of firewall you should get a response. If not, do you have a personal
firewall enabled?

No you don't have to be connected to a lan, but the TCP/IP stack must be
running. The above test will help you determine that.

If the ping fails you can contact me off list for more help.

I know this veered off topic, but often it is the little things that get ya.



- Original Message - 
From: Jan Behrens [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Saturday, December 06, 2003 11:00 AM
Subject: RE: newbie help please, localhost not found


 Hi there,

 have you tried http://127.0.0.1:8080 instead? That is the IP usually bound
 to localhost and it might be that localhost is not resolved correctly to
 same. If not, try to provide further info. For example, have you installed
 Tomcat in a path containing spaces such as c:\Program Files\Tomcat. If so,
 reinstall to a path without spaces.

 Cheers, Jan

  -Original Message-
  From: D. Gilbert [mailto:[EMAIL PROTECTED]
  Sent: Saturday, December 06, 2003 4:56 PM
  To: Tomcat Users List
  Subject: newbie help please, localhost not found
 
 
  When I type http://localhost:8080 in Internet Explorer it says The page
  cannot be displayed.
  I've looked through the archives but couldn't find anything.
  The running.txt file that comes with Tomcat lists only 3 possibilites
for
  why it doesn't work.
  I've tried changing the port number, I'm using Windows XP so the
  environment
  issue doesn't apply
  and I'm pretty sure that I'm not behind a proxy as I am using my own PC
at
  home.
  I'm pretty sure the JDK is installed ok as I can run javac. I
  tried changing
  JAVA_HOME and CATALINA_HOME to
  incorrect values and that made things worse so I'm sure they are set
  correctly.
  I've tried 2 versions of Tomcat 4.0.1 and 4.1.29.
  When I startup 4.0.1 I get the messages
  
  Starting service Tomcat-Standalone
  Apache Tomcat/4.0.1
  Starting service Tomcat-Apache
  Apache Tomcat/4.0.1
  
  which are correct according to my book.
  Can anyone say what the problem is, or any ways to debug it?
 
  It should run on a standalone home PC shouldn't it? I don't need to be
  connected to a LAN or anything do I?
 
  I've been trying to solve this for 2 weeks now so I would really
  appreciate
  any help please.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 


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





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



RE: mod_jk worker help please!!

2003-12-05 Thread Sullivan, Patrick
Check you tomcat logs for
Ajp13Connector[8883] Opening server socket on all host IP addresses
Ajp13Connector[8883] Starting background thread
Ajp13Processor[8883][0] Starting background thread
Ajp13Processor[8883][1] Starting background thread
Ajp13Processor[8883][2] Starting background thread
Ajp13Processor[8883][3] Starting background thread
Ajp13Processor[8883][4] Starting background thread

My server.xml:
Server port=8305 shutdown=SHUTDOWN debug=0
  Service name=Tomcat-Standalone
Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=8380 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8443
   acceptCount=100 debug=0 connectionTimeout=2
   useURIValidationHack=false disableUploadTimeout=true /
Connector className=org.apache.ajp.tomcat4.Ajp13Connector
   port=8883 minProcessors=5 maxProcessors=75
   acceptCount=10 tomcatAuthentication=false debug=0/

Engine name=Standalone defaultHost=localhost debug=0
  Realm className=org.apache.catalina.realm.MemoryRealm /
  Host name=localhost debug=0 appBase=webapps  unpackWARs=true 
autoDeploy=true
  Context path= docBase=ROOT debug=0/
  /Host
/Engine
  /Service
/Server

My workers.properties:
workers.apache_log=/usr/local/webservers/a2047d/logs
workers.catalina_home=/usr/local/webservers/t4129
workers.java_home=/usr/java131
ps=/

# Define 1 real worker using ajp13
worker.list=worker83

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

My httpd.conf (part of it atleast):
...
Listen 172.29.222.160:83

#Compiled in modules:
#  core.c
#  mod_access.c
#  mod_auth.c
#  mod_auth_dbm.c
#  mod_include.c
#  worker.c
#  http_core.c
#  mod_mime.c
#  mod_cgid.c
#  mod_dir.c
#  mod_alias.c
#  mod_so.c
LoadModule auth_ldap_module modules/mod_auth_ldap.so
LoadModule jk_module  modules/mod_jk.so

User lawweb
...

# Where to find workers.properties
JkWorkersFile /usr/local/webservers/a2047d/conf/workers.properties83
JkLogFile /usr/local/webservers/a2047d/logs/mod_jk83.log
# Set the jk log level [debug/error/info]
JkLogLevel info
JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat %w %V %T
JkMount /*.jsp worker83
JkMount /servlet/* worker83
JkMount /examples/* worker83
Location /servlet
AllowOverride AuthConfig
AuthType Basic
AuthName onyx TESTPL
AuthDBMUserFile /usr/local/webservers/law_web/userdb/lawson
AuthDBMAuthoritative Off
AuthLDAPAuthoritative On
LDAP_Debug Off
LDAP_Protocol_Version 3
LDAP_Server someADservers
LDAP_Port 389
Base_DN some baseDN
Bind_DN someDN
Bind_Pass somepassowrd
UID_Attr sAMAccountName
Options Indexes
Options FollowSymLinks
require valid-user
/Location

Buy you may have noticed I am actually running 2.0.48

Thank you,

Patrick Sullivan
Centura Health
303-643-4021

-Original Message-
From: Stephanie A Bickel [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 04, 2003 3:54 PM
To: [EMAIL PROTECTED]
Subject: mod_jk worker help please!!






I am trying to configure Apache 1.3.X with tomcat 4.1.29.

I am trying to use the connector mod_jk for connect the two.

I am having the following problem: In my workers.properties I have a worker
I defined as test (or a thousand other names). No matter how I change my
worker.properties, an instance of ajp12 seems to be created. I don't
understand!! I have been working on this for days and any help would be
appreciated. Here are my config files:

server.xml has


Connector className=org.apache.ajp.tomcat4.Ajp13Connector
   port=8009 minProcessors=5 maxProcessors=75
   acceptCount=10 debug=0/

workers.properties:

workers.tomcat_home=C:\tomcat
workers.java_home=C:\MMIS_IAS\jdk
workers.th=C:\tomcat
ps=\
worker.list=test
worker.test.port=8009
worker.test.host=localhost
worker.test.type=ajp13

http.conf:
LoadModule jk_module modules/mod_jk.dll
AddModule mod_jk.c
JkWorkersFile C:/Tomcat/conf/jk/workers.properties
JkLogFile C:/tomcat/logs/mod_jk.log
JkLogLevel debug
JkLogStampFormat [%a %b %d %H:%M:%S %Y] 

my mod_jk.log says:
[Tue Dec 02 17:52:45 2003]  [jk_worker.c (88)]: Into wc_open
[Tue Dec 02 17:52:45 2003]  [jk_worker.c (222)]: Into build_worker_map,
creating 1 workers
[Tue Dec 02 17:52:45 2003]  [jk_worker.c (228)]: build_worker_map, creating
worker ajp12
[Tue Dec 02 17:52:45 2003]  [jk_worker.c (148)]: Into wc_create_worker
[Tue Dec 02 17:52:45 2003]  [jk_worker.c (162)]: wc_create_worker, about to
create instance ajp12 of ajp12
[Tue Dec 02 17:52:45 2003]  [jk_ajp12_worker.c (283)]: Into
ajp12_worker_factory
[Tue Dec 02

RE: mod_jk worker help please!!

2003-12-05 Thread William R Briggs

Return Receipt
   
Your  RE: mod_jk worker help please!!  
document   
:  
   
was   William R Briggs/Burlington/IBM  
received   
by:
   
at:   12/05/2003 12:03:34  
   





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



RE: mod_jk worker help please!!

2003-12-05 Thread Stephanie A Bickel





Yes, I have that.  So, why would it ignore my worker.list for the workers I
define?

2003-12-04 17:16:58 Ajp13Connector[8009] Starting background thread
2003-12-04 17:16:58 Ajp13Processor[8009][0] Starting background thread
2003-12-04 17:16:58 Ajp13Processor[8009][1] Starting background thread
2003-12-04 17:16:58 Ajp13Processor[8009][2] Starting background thread
2003-12-04 17:16:58 Ajp13Processor[8009][3] Starting background thread
2003-12-04 17:16:58 Ajp13Processor[8009][4] Starting background thread






   
  
  Sullivan,   
  
  Patrick   To:  Stephanie A Bickel [EMAIL 
PROTECTED],
  [EMAIL PROTECTED] [EMAIL PROTECTED]   
 
  entura.Orgcc:   
  
 Subject: RE: mod_jk worker help 
please!!
  12/05/2003 09:56 
  
  AM   
  
  Please respond to
  
  Tomcat Users
  
  List
  
   
  
   
  




Check you tomcat logs for
Ajp13Connector[8883] Opening server socket on all host IP addresses
Ajp13Connector[8883] Starting background thread
Ajp13Processor[8883][0] Starting background thread
Ajp13Processor[8883][1] Starting background thread
Ajp13Processor[8883][2] Starting background thread
Ajp13Processor[8883][3] Starting background thread
Ajp13Processor[8883][4] Starting background thread

My server.xml:
Server port=8305 shutdown=SHUTDOWN debug=0
  Service name=Tomcat-Standalone
Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=8380 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8443
   acceptCount=100 debug=0 connectionTimeout=2
   useURIValidationHack=false disableUploadTimeout=true /
Connector className=org.apache.ajp.tomcat4.Ajp13Connector
   port=8883 minProcessors=5 maxProcessors=75
   acceptCount=10 tomcatAuthentication=false debug=0/

Engine name=Standalone defaultHost=localhost debug=0
  Realm className=org.apache.catalina.realm.MemoryRealm /
  Host name=localhost debug=0 appBase=webapps  unpackWARs=true
autoDeploy=true
  Context path= docBase=ROOT debug=0/
  /Host
/Engine
  /Service
/Server

My workers.properties:
workers.apache_log=/usr/local/webservers/a2047d/logs
workers.catalina_home=/usr/local/webservers/t4129
workers.java_home=/usr/java131
ps=/

# Define 1 real worker using ajp13
worker.list=worker83

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

My httpd.conf (part of it atleast):
...
Listen 172.29.222.160:83

#Compiled in modules:
#  core.c
#  mod_access.c
#  mod_auth.c
#  mod_auth_dbm.c
#  mod_include.c
#  worker.c
#  http_core.c
#  mod_mime.c
#  mod_cgid.c
#  mod_dir.c
#  mod_alias.c
#  mod_so.c
LoadModule auth_ldap_module modules/mod_auth_ldap.so
LoadModule jk_module  modules/mod_jk.so

User lawweb
...

# Where to find workers.properties
JkWorkersFile /usr/local/webservers/a2047d/conf/workers.properties83
JkLogFile /usr/local/webservers/a2047d/logs/mod_jk83.log
# Set the jk log level [debug/error/info]
JkLogLevel info
JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat %w %V %T
JkMount /*.jsp worker83
JkMount /servlet/* worker83
JkMount /examples/* worker83
Location /servlet
AllowOverride AuthConfig
AuthType Basic

RE: mod_jk worker help please!!

2003-12-05 Thread Jeff Tulley
I'll go through the potentially obvious mistakes:
1) Are you sure you are editing the correct workers.properties?
2) Have you cleared out the mod_jk.log before trying again, maybe the
messages are old

I'm sure you probably have done all of this, but I know that these
mistakes, while obvious, are quite easy to make.

 [EMAIL PROTECTED] 12/5/03 10:27:04 AM 

Yes, I have that.  So, why would it ignore my worker.list for the
workers I
define?

2003-12-04 17:16:58 Ajp13Connector[8009] Starting background thread
2003-12-04 17:16:58 Ajp13Processor[8009][0] Starting background thread
2003-12-04 17:16:58 Ajp13Processor[8009][1] Starting background thread
2003-12-04 17:16:58 Ajp13Processor[8009][2] Starting background thread
2003-12-04 17:16:58 Ajp13Processor[8009][3] Starting background thread
2003-12-04 17:16:58 Ajp13Processor[8009][4] Starting background thread

workers.properties:

workers.tomcat_home=C:\tomcat
workers.java_home=C:\MMIS_IAS\jdk
workers.th=C:\tomcat
ps=\
worker.list=test
worker.test.port=8009
worker.test.host=localhost
worker.test.type=ajp13

http.conf:
LoadModule jk_module modules/mod_jk.dll
AddModule mod_jk.c
JkWorkersFile C:/Tomcat/conf/jk/workers.properties
JkLogFile C:/tomcat/logs/mod_jk.log
JkLogLevel debug
JkLogStampFormat [%a %b %d %H:%M:%S %Y] 

my mod_jk.log says:
[Tue Dec 02 17:52:45 2003]  [jk_worker.c (88)]: Into wc_open
[Tue Dec 02 17:52:45 2003]  [jk_worker.c (222)]: Into
build_worker_map,
creating 1 workers
[Tue Dec 02 17:52:45 2003]  [jk_worker.c (228)]: build_worker_map,
creating
worker ajp12
[Tue Dec 02 17:52:45 2003]  [jk_worker.c (148)]: Into wc_create_worker
[Tue Dec 02 17:52:45 2003]  [jk_worker.c (162)]: wc_create_worker,
about to
create instance ajp12 of ajp12
[Tue Dec 02 17:52:45 2003]  [jk_ajp12_worker.c (283)]: Into
ajp12_worker_factory
[Tue Dec 02 17:52:45 2003]  [jk_worker.c (171)]: wc_create_worker,
about to
validate and init ajp12
[Tue Dec 02 17:52:45 2003]  [jk_ajp12_worker.c (200)]: Into
jk_worker_t::validate
[Tue Dec 02 17:52:45 2003]  [jk_ajp12_worker.c (212)]: In
jk_worker_t::validate for worker ajp12 contact is localhost:8007
[Tue Dec 02 17:52:45 2003]  [jk_worker.c (187)]: wc_create_worker,
done
[Tue Dec 02 17:52:45 2003]  [jk_worker.c (238)]: build_worker_map,
removing
old ajp12 worker
[Tue Dec 02 17:52:45 2003]  [jk_worker.c (250)]: build_worker_map,
done
[Tue Dec 02 17:52:45 2003]  [jk_worker.c (111)]: wc_open, done 1

Jeff Tulley  ([EMAIL PROTECTED])
(801)861-5322
Novell, Inc., The Leading Provider of Net Business Solutions
http://www.novell.com

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



RE: mod_jk worker help please!!

2003-12-05 Thread Stephanie A Bickel





Yes. I have tripple checked the workers.properties. I have also did a
search on the server to make sure there is no other worker.properties and
there is none.

I do clear out the mod_jk.log each time to make sure it is still doing the
same thing after each change.




   

  Jeff Tulley

  [EMAIL PROTECTED] To:  [EMAIL PROTECTED]  
 
  com cc: 

   Subject: RE: mod_jk worker help 
please!!
  12/05/2003 10:32 

  AM   

  Please respond   

  to Tomcat Users 

  List

   

   





I'll go through the potentially obvious mistakes:
1) Are you sure you are editing the correct workers.properties?
2) Have you cleared out the mod_jk.log before trying again, maybe the
messages are old

I'm sure you probably have done all of this, but I know that these
mistakes, while obvious, are quite easy to make.

 [EMAIL PROTECTED] 12/5/03 10:27:04 AM 

Yes, I have that.  So, why would it ignore my worker.list for the
workers I
define?

2003-12-04 17:16:58 Ajp13Connector[8009] Starting background thread
2003-12-04 17:16:58 Ajp13Processor[8009][0] Starting background thread
2003-12-04 17:16:58 Ajp13Processor[8009][1] Starting background thread
2003-12-04 17:16:58 Ajp13Processor[8009][2] Starting background thread
2003-12-04 17:16:58 Ajp13Processor[8009][3] Starting background thread
2003-12-04 17:16:58 Ajp13Processor[8009][4] Starting background thread

workers.properties:

workers.tomcat_home=C:\tomcat
workers.java_home=C:\MMIS_IAS\jdk
workers.th=C:\tomcat
ps=\
worker.list=test
worker.test.port=8009
worker.test.host=localhost
worker.test.type=ajp13

http.conf:
LoadModule jk_module modules/mod_jk.dll
AddModule mod_jk.c
JkWorkersFile C:/Tomcat/conf/jk/workers.properties
JkLogFile C:/tomcat/logs/mod_jk.log
JkLogLevel debug
JkLogStampFormat [%a %b %d %H:%M:%S %Y] 

my mod_jk.log says:
[Tue Dec 02 17:52:45 2003]  [jk_worker.c (88)]: Into wc_open
[Tue Dec 02 17:52:45 2003]  [jk_worker.c (222)]: Into
build_worker_map,
creating 1 workers
[Tue Dec 02 17:52:45 2003]  [jk_worker.c (228)]: build_worker_map,
creating
worker ajp12
[Tue Dec 02 17:52:45 2003]  [jk_worker.c (148)]: Into wc_create_worker
[Tue Dec 02 17:52:45 2003]  [jk_worker.c (162)]: wc_create_worker,
about to
create instance ajp12 of ajp12
[Tue Dec 02 17:52:45 2003]  [jk_ajp12_worker.c (283)]: Into
ajp12_worker_factory
[Tue Dec 02 17:52:45 2003]  [jk_worker.c (171)]: wc_create_worker,
about to
validate and init ajp12
[Tue Dec 02 17:52:45 2003]  [jk_ajp12_worker.c (200)]: Into
jk_worker_t::validate
[Tue Dec 02 17:52:45 2003]  [jk_ajp12_worker.c (212)]: In
jk_worker_t::validate for worker ajp12 contact is localhost:8007
[Tue Dec 02 17:52:45 2003]  [jk_worker.c (187)]: wc_create_worker,
done
[Tue Dec 02 17:52:45 2003]  [jk_worker.c (238)]: build_worker_map,
removing
old ajp12 worker
[Tue Dec 02 17:52:45 2003]  [jk_worker.c (250)]: build_worker_map,
done
[Tue Dec 02 17:52:45 2003]  [jk_worker.c (111)]: wc_open, done 1

Jeff Tulley  ([EMAIL PROTECTED])
(801)861-5322
Novell, Inc., The Leading Provider of Net Business Solutions
http://www.novell.com

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





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



RE: mod_jk worker help please!!

2003-12-05 Thread Stephanie A Bickel





One other question that MIGHT help. The apahe I am working with is running
on port  instead of the default port 80. Is there anything in the
configuration that needs to be done different in this case?




   

  Jeff Tulley

  [EMAIL PROTECTED] To:  [EMAIL PROTECTED]  
 
  com cc: 

   Subject: RE: mod_jk worker help 
please!!
  12/05/2003 10:32 

  AM   

  Please respond   

  to Tomcat Users 

  List

   

   





I'll go through the potentially obvious mistakes:
1) Are you sure you are editing the correct workers.properties?
2) Have you cleared out the mod_jk.log before trying again, maybe the
messages are old

I'm sure you probably have done all of this, but I know that these
mistakes, while obvious, are quite easy to make.

 [EMAIL PROTECTED] 12/5/03 10:27:04 AM 

Yes, I have that.  So, why would it ignore my worker.list for the
workers I
define?

2003-12-04 17:16:58 Ajp13Connector[8009] Starting background thread
2003-12-04 17:16:58 Ajp13Processor[8009][0] Starting background thread
2003-12-04 17:16:58 Ajp13Processor[8009][1] Starting background thread
2003-12-04 17:16:58 Ajp13Processor[8009][2] Starting background thread
2003-12-04 17:16:58 Ajp13Processor[8009][3] Starting background thread
2003-12-04 17:16:58 Ajp13Processor[8009][4] Starting background thread

workers.properties:

workers.tomcat_home=C:\tomcat
workers.java_home=C:\MMIS_IAS\jdk
workers.th=C:\tomcat
ps=\
worker.list=test
worker.test.port=8009
worker.test.host=localhost
worker.test.type=ajp13

http.conf:
LoadModule jk_module modules/mod_jk.dll
AddModule mod_jk.c
JkWorkersFile C:/Tomcat/conf/jk/workers.properties
JkLogFile C:/tomcat/logs/mod_jk.log
JkLogLevel debug
JkLogStampFormat [%a %b %d %H:%M:%S %Y] 

my mod_jk.log says:
[Tue Dec 02 17:52:45 2003]  [jk_worker.c (88)]: Into wc_open
[Tue Dec 02 17:52:45 2003]  [jk_worker.c (222)]: Into
build_worker_map,
creating 1 workers
[Tue Dec 02 17:52:45 2003]  [jk_worker.c (228)]: build_worker_map,
creating
worker ajp12
[Tue Dec 02 17:52:45 2003]  [jk_worker.c (148)]: Into wc_create_worker
[Tue Dec 02 17:52:45 2003]  [jk_worker.c (162)]: wc_create_worker,
about to
create instance ajp12 of ajp12
[Tue Dec 02 17:52:45 2003]  [jk_ajp12_worker.c (283)]: Into
ajp12_worker_factory
[Tue Dec 02 17:52:45 2003]  [jk_worker.c (171)]: wc_create_worker,
about to
validate and init ajp12
[Tue Dec 02 17:52:45 2003]  [jk_ajp12_worker.c (200)]: Into
jk_worker_t::validate
[Tue Dec 02 17:52:45 2003]  [jk_ajp12_worker.c (212)]: In
jk_worker_t::validate for worker ajp12 contact is localhost:8007
[Tue Dec 02 17:52:45 2003]  [jk_worker.c (187)]: wc_create_worker,
done
[Tue Dec 02 17:52:45 2003]  [jk_worker.c (238)]: build_worker_map,
removing
old ajp12 worker
[Tue Dec 02 17:52:45 2003]  [jk_worker.c (250)]: build_worker_map,
done
[Tue Dec 02 17:52:45 2003]  [jk_worker.c (111)]: wc_open, done 1

Jeff Tulley  ([EMAIL PROTECTED])
(801)861-5322
Novell, Inc., The Leading Provider of Net Business Solutions
http://www.novell.com

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





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



RE: mod_jk worker help please!!

2003-12-05 Thread David O'Brien
I see no jvm=workers83  in the sever.xml file ???
-Dave







Yes, I have that.  So, why would it ignore my worker.list for the workers I
define?
2003-12-04 17:16:58 Ajp13Connector[8009] Starting background thread
2003-12-04 17:16:58 Ajp13Processor[8009][0] Starting background thread
2003-12-04 17:16:58 Ajp13Processor[8009][1] Starting background thread
2003-12-04 17:16:58 Ajp13Processor[8009][2] Starting background thread
2003-12-04 17:16:58 Ajp13Processor[8009][3] Starting background thread
2003-12-04 17:16:58 Ajp13Processor[8009][4] Starting background thread






  Sullivan, 

  Patrick   To:  Stephanie A 
Bickel [EMAIL PROTECTED],
  [EMAIL PROTECTED] 
[EMAIL PROTECTED] 

  entura.Orgcc: 

 Subject: RE: mod_jk 
worker help please!!
  12/05/2003 
09:56 

  AM 

  Please respond 
to 

  Tomcat 
Users 

  List 









Check you tomcat logs for
Ajp13Connector[8883] Opening server socket on all host IP addresses
Ajp13Connector[8883] Starting background thread
Ajp13Processor[8883][0] Starting background thread
Ajp13Processor[8883][1] Starting background thread
Ajp13Processor[8883][2] Starting background thread
Ajp13Processor[8883][3] Starting background thread
Ajp13Processor[8883][4] Starting background thread
My server.xml:
Server port=8305 shutdown=SHUTDOWN debug=0
  Service name=Tomcat-Standalone
Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=8380 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8443
   acceptCount=100 debug=0 connectionTimeout=2
   useURIValidationHack=false disableUploadTimeout=true /
Connector className=org.apache.ajp.tomcat4.Ajp13Connector
   port=8883 minProcessors=5 maxProcessors=75
   acceptCount=10 tomcatAuthentication=false debug=0/
Engine name=Standalone defaultHost=localhost debug=0
  Realm className=org.apache.catalina.realm.MemoryRealm /
  Host name=localhost debug=0 appBase=webapps  unpackWARs=true
autoDeploy=true
  Context path= docBase=ROOT debug=0/
  /Host
/Engine
  /Service
/Server
My workers.properties:
workers.apache_log=/usr/local/webservers/a2047d/logs
workers.catalina_home=/usr/local/webservers/t4129
workers.java_home=/usr/java131
ps=/
# Define 1 real worker using ajp13
worker.list=worker83
# Set properties for worker83 (ajp13)
worker.worker83.type=ajp13
worker.worker83.host=localhost
worker.worker83.port=8883
worker.worker83.lbfactor=50
worker.worker83.cachesize=10
worker.worker83.cache_timeout=600
worker.worker83.socket_keepalive=1
worker.worker83.socket_timeout=300
My httpd.conf (part of it atleast):
...
Listen 172.29.222.160:83
#Compiled in modules:
#  core.c
#  mod_access.c
#  mod_auth.c
#  mod_auth_dbm.c
#  mod_include.c
#  worker.c
#  http_core.c
#  mod_mime.c
#  mod_cgid.c
#  mod_dir.c
#  mod_alias.c
#  mod_so.c
LoadModule auth_ldap_module modules/mod_auth_ldap.so
LoadModule jk_module  modules/mod_jk.so
User lawweb
...

# Where to find workers.properties
JkWorkersFile /usr/local/webservers/a2047d/conf/workers.properties83
JkLogFile /usr/local/webservers/a2047d/logs/mod_jk83.log
# Set the jk log level [debug/error/info]
JkLogLevel info
JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat %w %V %T
JkMount /*.jsp worker83
JkMount /servlet/* worker83
JkMount /examples/* worker83
Location /servlet
AllowOverride AuthConfig
AuthType Basic
AuthName onyx TESTPL
AuthDBMUserFile /usr/local/webservers/law_web/userdb/lawson
AuthDBMAuthoritative Off
AuthLDAPAuthoritative On
LDAP_Debug Off
LDAP_Protocol_Version 3
LDAP_Server someADservers
LDAP_Port 389
Base_DN some baseDN
Bind_DN someDN
Bind_Pass somepassowrd
UID_Attr sAMAccountName
Options Indexes
Options FollowSymLinks
require valid-user
/Location
Buy you may have noticed I am actually running 2.0.48

Thank you,

Patrick Sullivan
Centura Health
303-643-4021
-Original Message-
From: Stephanie A Bickel [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 04, 2003 3:54 PM
To: [EMAIL PROTECTED]
Subject: mod_jk worker help please!!




I am trying to configure Apache 1.3.X with tomcat 4.1.29.

I am trying to use the connector mod_jk for connect the two.

I am having the following problem: In my workers.properties I have a worker
I defined as test (or a thousand other names). No matter how I change my
worker.properties, an instance of ajp12 seems to be created. I don't
understand!! I have been working on this for days and any help would be
appreciated. Here are my config files:
server.xml has

Connector className

RE: mod_jk worker help please!!

2003-12-05 Thread Stephanie A Bickel





Dave -

I have changed the name of my worker in my workers.properties file. First I
had my worker.list=ajp13, which is the default in server.xml, right?

Then, I changed it to worker.list=test

I did not change my server.xml file, but I thought you only specify for the
listener. Maybe I am missing something. I am not aware of a jvm=
parameter..where am I supossed to put this?




   

  David O'Brien  

  [EMAIL PROTECTED] To:  Tomcat Users List [EMAIL 
PROTECTED]   
  .orgcc:  Tomcat Users List [EMAIL 
PROTECTED]   
   Subject: RE: mod_jk worker help 
please!!
  12/05/2003 11:20 

  AM   

  Please respond   

  to Tomcat Users 

  List

   

   





I see no jvm=workers83  in the sever.xml file ???
-Dave








Yes, I have that.  So, why would it ignore my worker.list for the workers
I
define?

2003-12-04 17:16:58 Ajp13Connector[8009] Starting background thread
2003-12-04 17:16:58 Ajp13Processor[8009][0] Starting background thread
2003-12-04 17:16:58 Ajp13Processor[8009][1] Starting background thread
2003-12-04 17:16:58 Ajp13Processor[8009][2] Starting background thread
2003-12-04 17:16:58 Ajp13Processor[8009][3] Starting background thread
2003-12-04 17:16:58 Ajp13Processor[8009][4] Starting background thread








   Sullivan,

   Patrick   To:  Stephanie A
 Bickel [EMAIL PROTECTED],
   [EMAIL PROTECTED]
 [EMAIL PROTECTED]

   entura.Orgcc:

  Subject: RE: mod_jk
 worker help please!!
   12/05/2003
 09:56

   AM

   Please respond
 to

   Tomcat
 Users

   List









Check you tomcat logs for
Ajp13Connector[8883] Opening server socket on all host IP addresses
Ajp13Connector[8883] Starting background thread
Ajp13Processor[8883][0] Starting background thread
Ajp13Processor[8883][1] Starting background thread
Ajp13Processor[8883][2] Starting background thread
Ajp13Processor[8883][3] Starting background thread
Ajp13Processor[8883][4] Starting background thread

My server.xml:
Server port=8305 shutdown=SHUTDOWN debug=0
   Service name=Tomcat-Standalone
 Connector className=org.apache.coyote.tomcat4.CoyoteConnector
port=8380 minProcessors=5 maxProcessors=75
enableLookups=true redirectPort=8443
acceptCount=100 debug=0 connectionTimeout=2
useURIValidationHack=false disableUploadTimeout=true
/
 Connector className=org.apache.ajp.tomcat4.Ajp13Connector
port=8883 minProcessors=5 maxProcessors=75
acceptCount=10 tomcatAuthentication=false debug=0/

 Engine name=Standalone defaultHost=localhost debug=0
   Realm className=org.apache.catalina.realm.MemoryRealm /
   Host name=localhost debug=0 appBase=webapps
unpackWARs=true
autoDeploy=true
   Context path= docBase=ROOT debug=0/
   /Host
 /Engine
   /Service
/Server

My workers.properties:
workers.apache_log=/usr/local/webservers/a2047d/logs
workers.catalina_home=/usr/local/webservers/t4129
workers.java_home=/usr/java131
ps=/

# Define 1 real worker using ajp13
worker.list=worker83

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

My httpd.conf (part of it atleast):
...
Listen 172.29.222.160:83

#Compiled in modules:
#  core.c

RE: mod_jk worker help please!!

2003-12-05 Thread David O'Brien
From my server.xml

  Service name=Tomcat-Standalone
Connector className=org.apache.ajp.tomcat4.Ajp13Connector
   port=8009 minProcessors=50 maxProcessors=100
   acceptCount=100 debug=0/
Engine name=Standalone defaultHost=localhost debug=0 
jvmRoute=tc221

the JVMROUTE has to be the same as the worker name or session won't be 
sticky...
-Dave

At 01:26 PM 12/5/2003, Stephanie A Bickel wrote:





Dave -

I have changed the name of my worker in my workers.properties file. First I
had my worker.list=ajp13, which is the default in server.xml, right?
Then, I changed it to worker.list=test

I did not change my server.xml file, but I thought you only specify for the
listener. Maybe I am missing something. I am not aware of a jvm=
parameter..where am I supossed to put this?




  David 
O'Brien 

  [EMAIL PROTECTED] To:  Tomcat Users 
List [EMAIL PROTECTED]
  .orgcc:  Tomcat Users 
List [EMAIL PROTECTED]
   Subject: RE: mod_jk worker 
help please!!
  12/05/2003 
11:20 

  AM 

  Please 
respond 

  to Tomcat 
Users 

  List 









I see no jvm=workers83  in the sever.xml file ???
-Dave






Yes, I have that.  So, why would it ignore my worker.list for the workers
I
define?

2003-12-04 17:16:58 Ajp13Connector[8009] Starting background thread
2003-12-04 17:16:58 Ajp13Processor[8009][0] Starting background thread
2003-12-04 17:16:58 Ajp13Processor[8009][1] Starting background thread
2003-12-04 17:16:58 Ajp13Processor[8009][2] Starting background thread
2003-12-04 17:16:58 Ajp13Processor[8009][3] Starting background thread
2003-12-04 17:16:58 Ajp13Processor[8009][4] Starting background thread








   Sullivan,

   Patrick   To:  Stephanie A
 Bickel [EMAIL PROTECTED],
   [EMAIL PROTECTED]
 [EMAIL PROTECTED]

   entura.Orgcc:

  Subject: RE: mod_jk
 worker help please!!
   12/05/2003
 09:56

   AM

   Please respond
 to

   Tomcat
 Users

   List









Check you tomcat logs for
Ajp13Connector[8883] Opening server socket on all host IP addresses
Ajp13Connector[8883] Starting background thread
Ajp13Processor[8883][0] Starting background thread
Ajp13Processor[8883][1] Starting background thread
Ajp13Processor[8883][2] Starting background thread
Ajp13Processor[8883][3] Starting background thread
Ajp13Processor[8883][4] Starting background thread

My server.xml:
Server port=8305 shutdown=SHUTDOWN debug=0
   Service name=Tomcat-Standalone
 Connector className=org.apache.coyote.tomcat4.CoyoteConnector
port=8380 minProcessors=5 maxProcessors=75
enableLookups=true redirectPort=8443
acceptCount=100 debug=0 connectionTimeout=2
useURIValidationHack=false disableUploadTimeout=true
/
 Connector className=org.apache.ajp.tomcat4.Ajp13Connector
port=8883 minProcessors=5 maxProcessors=75
acceptCount=10 tomcatAuthentication=false debug=0/

 Engine name=Standalone defaultHost=localhost debug=0
   Realm className=org.apache.catalina.realm.MemoryRealm /
   Host name=localhost debug=0 appBase=webapps
unpackWARs=true
autoDeploy=true
   Context path= docBase=ROOT debug=0/
   /Host
 /Engine
   /Service
/Server

My workers.properties:
workers.apache_log=/usr/local/webservers/a2047d/logs
workers.catalina_home=/usr/local/webservers/t4129
workers.java_home=/usr/java131
ps=/

# Define 1 real worker using ajp13
worker.list=worker83

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

My httpd.conf (part of it atleast):
...
Listen 172.29.222.160:83

#Compiled in modules:
#  core.c
#  mod_access.c
#  mod_auth.c
#  mod_auth_dbm.c
#  mod_include.c
#  worker.c
#  http_core.c
#  mod_mime.c
#  mod_cgid.c
#  mod_dir.c
#  mod_alias.c
#  mod_so.c
LoadModule auth_ldap_module modules/mod_auth_ldap.so
LoadModule jk_module  modules/mod_jk.so

User lawweb
...

# Where to find workers.properties
JkWorkersFile /usr/local/webservers/a2047d/conf/workers.properties83
JkLogFile /usr/local/webservers/a2047d/logs/mod_jk83.log
# Set the jk log level [debug/error/info]
JkLogLevel info
JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat %w %V %T
JkMount

RE: mod_jk worker help please!!

2003-12-05 Thread Stephanie A Bickel





David -

I added the jvmroute but it still is not working. The whole problem is the
worker is never being created in the first place...it seems to be ignoring
my worker.list and creating it's own worker ajp12 on port 8007.

So, even after that change, it can't find the worker I put in
workers.properties



   

  David O'Brien  

  [EMAIL PROTECTED] To:  Tomcat Users List [EMAIL 
PROTECTED]   
  .orgcc:  Tomcat Users List [EMAIL 
PROTECTED]   
   Subject: RE: mod_jk worker help 
please!!
  12/05/2003 11:28 

  AM   

  Please respond   

  to Tomcat Users 

  List

   

   





 From my server.xml


   Service name=Tomcat-Standalone
 Connector className=org.apache.ajp.tomcat4.Ajp13Connector
port=8009 minProcessors=50 maxProcessors=100
acceptCount=100 debug=0/
 Engine name=Standalone defaultHost=localhost debug=0
jvmRoute=tc221


the JVMROUTE has to be the same as the worker name or session won't be
sticky...
-Dave


At 01:26 PM 12/5/2003, Stephanie A Bickel wrote:





Dave -

I have changed the name of my worker in my workers.properties file. First
I
had my worker.list=ajp13, which is the default in server.xml, right?

Then, I changed it to worker.list=test

I did not change my server.xml file, but I thought you only specify for
the
listener. Maybe I am missing something. I am not aware of a jvm=
parameter..where am I supossed to put this?






   David
 O'Brien

   [EMAIL PROTECTED] To:  Tomcat Users
 List [EMAIL PROTECTED]
   .orgcc:  Tomcat Users
 List [EMAIL PROTECTED]
Subject: RE: mod_jk worker

 help please!!
   12/05/2003
 11:20

   AM

   Please
 respond

   to Tomcat
 Users

   List









I see no jvm=workers83  in the sever.xml file ???
-Dave








 Yes, I have that.  So, why would it ignore my worker.list for the
workers
I
 define?
 
 2003-12-04 17:16:58 Ajp13Connector[8009] Starting background thread
 2003-12-04 17:16:58 Ajp13Processor[8009][0] Starting background thread
 2003-12-04 17:16:58 Ajp13Processor[8009][1] Starting background thread
 2003-12-04 17:16:58 Ajp13Processor[8009][2] Starting background thread
 2003-12-04 17:16:58 Ajp13Processor[8009][3] Starting background thread
 2003-12-04 17:16:58 Ajp13Processor[8009][4] Starting background thread
 
 
 
 
 
 
 
 
Sullivan,
 
Patrick   To:  Stephanie A
  Bickel [EMAIL PROTECTED],
[EMAIL PROTECTED]
  [EMAIL PROTECTED]
 
entura.Orgcc:
 
   Subject: RE: mod_jk
  worker help please!!
12/05/2003
  09:56
 
AM
 
Please respond
  to
 
Tomcat
  Users
 
List
 
 
 
 
 
 
 
 
 
 Check you tomcat logs for
 Ajp13Connector[8883] Opening server socket on all host IP addresses
 Ajp13Connector[8883] Starting background thread
 Ajp13Processor[8883][0] Starting background thread
 Ajp13Processor[8883][1] Starting background thread
 Ajp13Processor[8883][2] Starting background thread
 Ajp13Processor[8883][3] Starting background thread
 Ajp13Processor[8883][4] Starting background thread
 
 My server.xml:
 Server port=8305 shutdown=SHUTDOWN debug=0
Service name=Tomcat-Standalone
  Connector className=org.apache.coyote.tomcat4.CoyoteConnector
 port

RE: mod_jk worker help please!!

2003-12-05 Thread Sullivan, Patrick
These are the workers:
2003-12-04 17:16:58 Ajp13Connector[8009] Starting background thread
2003-12-04 17:16:58 Ajp13Processor[8009][0] Starting background thread
2003-12-04 17:16:58 Ajp13Processor[8009][1] Starting background thread
2003-12-04 17:16:58 Ajp13Processor[8009][2] Starting background thread
2003-12-04 17:16:58 Ajp13Processor[8009][3] Starting background thread
2003-12-04 17:16:58 Ajp13Processor[8009][4] Starting background thread

So I forget the translation but I do a netstat -na |grep 8009 to see if the port is 
open for listen.

Do you have a tool that will do the same?

Thank you,

Patrick Sullivan

-Original Message-
From: Stephanie A Bickel [mailto:[EMAIL PROTECTED]
Sent: Friday, December 05, 2003 1:04 PM
To: Tomcat Users List
Subject: RE: mod_jk worker help please!!







David -

I added the jvmroute but it still is not working. The whole problem is the
worker is never being created in the first place...it seems to be ignoring
my worker.list and creating it's own worker ajp12 on port 8007.

So, even after that change, it can't find the worker I put in
workers.properties



   

  David O'Brien  

  [EMAIL PROTECTED] To:  Tomcat Users List [EMAIL 
PROTECTED]   
  .orgcc:  Tomcat Users List [EMAIL 
PROTECTED]   
   Subject: RE: mod_jk worker help 
please!!
  12/05/2003 11:28 

  AM   

  Please respond   

  to Tomcat Users 

  List

   

   





 From my server.xml


   Service name=Tomcat-Standalone
 Connector className=org.apache.ajp.tomcat4.Ajp13Connector
port=8009 minProcessors=50 maxProcessors=100
acceptCount=100 debug=0/
 Engine name=Standalone defaultHost=localhost debug=0
jvmRoute=tc221


the JVMROUTE has to be the same as the worker name or session won't be
sticky...
-Dave


At 01:26 PM 12/5/2003, Stephanie A Bickel wrote:





Dave -

I have changed the name of my worker in my workers.properties file. First
I
had my worker.list=ajp13, which is the default in server.xml, right?

Then, I changed it to worker.list=test

I did not change my server.xml file, but I thought you only specify for
the
listener. Maybe I am missing something. I am not aware of a jvm=
parameter..where am I supossed to put this?






   David
 O'Brien

   [EMAIL PROTECTED] To:  Tomcat Users
 List [EMAIL PROTECTED]
   .orgcc:  Tomcat Users
 List [EMAIL PROTECTED]
Subject: RE: mod_jk worker

 help please!!
   12/05/2003
 11:20

   AM

   Please
 respond

   to Tomcat
 Users

   List









I see no jvm=workers83  in the sever.xml file ???
-Dave








 Yes, I have that.  So, why would it ignore my worker.list for the
workers
I
 define?
 
 2003-12-04 17:16:58 Ajp13Connector[8009] Starting background thread
 2003-12-04 17:16:58 Ajp13Processor[8009][0] Starting background thread
 2003-12-04 17:16:58 Ajp13Processor[8009][1] Starting background thread
 2003-12-04 17:16:58 Ajp13Processor[8009][2] Starting background thread
 2003-12-04 17:16:58 Ajp13Processor[8009][3] Starting background thread
 2003-12-04 17:16:58 Ajp13Processor[8009][4] Starting background thread
 
 
 
 
 
 
 
 
Sullivan,
 
Patrick   To:  Stephanie A
  Bickel [EMAIL PROTECTED],
[EMAIL PROTECTED]
  [EMAIL PROTECTED]
 
entura.Orgcc:
 
   Subject: RE: mod_jk
  worker help

RE: mod_jk worker help please!!

2003-12-05 Thread Stephanie A Bickel





what does your mod_jk.log show? As far as I knew, that showed the workers.

In my mod_jk, it tells me it cannot find the worker and it does not show
the worker being created



   
  
  Sullivan,   
  
  Patrick   To:  [EMAIL PROTECTED]  
 
  [EMAIL PROTECTED] cc:   
  
  entura.OrgSubject: RE: mod_jk worker help 
please!!
   
  
  12/05/2003 02:51 
  
  PM   
  
  Please respond to
  
  Tomcat Users
  
  List
  
   
  
   
  




These are the workers:
2003-12-04 17:16:58 Ajp13Connector[8009] Starting background thread
2003-12-04 17:16:58 Ajp13Processor[8009][0] Starting background thread
2003-12-04 17:16:58 Ajp13Processor[8009][1] Starting background thread
2003-12-04 17:16:58 Ajp13Processor[8009][2] Starting background thread
2003-12-04 17:16:58 Ajp13Processor[8009][3] Starting background thread
2003-12-04 17:16:58 Ajp13Processor[8009][4] Starting background thread

So I forget the translation but I do a netstat -na |grep 8009 to see if the
port is open for listen.

Do you have a tool that will do the same?

Thank you,

Patrick Sullivan

-Original Message-
From: Stephanie A Bickel [mailto:[EMAIL PROTECTED]
Sent: Friday, December 05, 2003 1:04 PM
To: Tomcat Users List
Subject: RE: mod_jk worker help please!!







David -

I added the jvmroute but it still is not working. The whole problem is the
worker is never being created in the first place...it seems to be ignoring
my worker.list and creating it's own worker ajp12 on port 8007.

So, even after that change, it can't find the worker I put in
workers.properties




  David O'Brien

  [EMAIL PROTECTED] To:  Tomcat Users List
[EMAIL PROTECTED]
  .orgcc:  Tomcat Users List
[EMAIL PROTECTED]
   Subject: RE: mod_jk worker
help please!!
  12/05/2003 11:28

  AM

  Please respond

  to Tomcat Users

  List







 From my server.xml


   Service name=Tomcat-Standalone
 Connector className=org.apache.ajp.tomcat4.Ajp13Connector
port=8009 minProcessors=50 maxProcessors=100
acceptCount=100 debug=0/
 Engine name=Standalone defaultHost=localhost debug=0
jvmRoute=tc221


the JVMROUTE has to be the same as the worker name or session won't be
sticky...
-Dave


At 01:26 PM 12/5/2003, Stephanie A Bickel wrote:





Dave -

I have changed the name of my worker in my workers.properties file. First
I
had my worker.list=ajp13, which is the default in server.xml, right?

Then, I changed it to worker.list=test

I did not change my server.xml file, but I thought you only specify for
the
listener. Maybe I am missing something. I am not aware of a jvm=
parameter..where am I supossed to put this?






   David
 O'Brien

   [EMAIL PROTECTED] To:  Tomcat Users
 List [EMAIL PROTECTED]
   .orgcc:  Tomcat Users
 List [EMAIL PROTECTED]
Subject: RE: mod_jk worker

 help please!!
   12/05/2003
 11:20

   AM

   Please
 respond

   to Tomcat
 Users

   List









I see no jvm=workers83  in the sever.xml file ???
-Dave








 Yes, I have that.  So, why

RE: mod_jk worker help please!!

2003-12-05 Thread Stephanie A Bickel





Oh...and I believe that is the ajp13 connector, not the worker



   
  
  Sullivan,   
  
  Patrick   To:  [EMAIL PROTECTED]  
 
  [EMAIL PROTECTED] cc:   
  
  entura.OrgSubject: RE: mod_jk worker help 
please!!
   
  
  12/05/2003 02:51 
  
  PM   
  
  Please respond to
  
  Tomcat Users
  
  List
  
   
  
   
  




These are the workers:
2003-12-04 17:16:58 Ajp13Connector[8009] Starting background thread
2003-12-04 17:16:58 Ajp13Processor[8009][0] Starting background thread
2003-12-04 17:16:58 Ajp13Processor[8009][1] Starting background thread
2003-12-04 17:16:58 Ajp13Processor[8009][2] Starting background thread
2003-12-04 17:16:58 Ajp13Processor[8009][3] Starting background thread
2003-12-04 17:16:58 Ajp13Processor[8009][4] Starting background thread

So I forget the translation but I do a netstat -na |grep 8009 to see if the
port is open for listen.

Do you have a tool that will do the same?

Thank you,

Patrick Sullivan

-Original Message-
From: Stephanie A Bickel [mailto:[EMAIL PROTECTED]
Sent: Friday, December 05, 2003 1:04 PM
To: Tomcat Users List
Subject: RE: mod_jk worker help please!!







David -

I added the jvmroute but it still is not working. The whole problem is the
worker is never being created in the first place...it seems to be ignoring
my worker.list and creating it's own worker ajp12 on port 8007.

So, even after that change, it can't find the worker I put in
workers.properties




  David O'Brien

  [EMAIL PROTECTED] To:  Tomcat Users List
[EMAIL PROTECTED]
  .orgcc:  Tomcat Users List
[EMAIL PROTECTED]
   Subject: RE: mod_jk worker
help please!!
  12/05/2003 11:28

  AM

  Please respond

  to Tomcat Users

  List







 From my server.xml


   Service name=Tomcat-Standalone
 Connector className=org.apache.ajp.tomcat4.Ajp13Connector
port=8009 minProcessors=50 maxProcessors=100
acceptCount=100 debug=0/
 Engine name=Standalone defaultHost=localhost debug=0
jvmRoute=tc221


the JVMROUTE has to be the same as the worker name or session won't be
sticky...
-Dave


At 01:26 PM 12/5/2003, Stephanie A Bickel wrote:





Dave -

I have changed the name of my worker in my workers.properties file. First
I
had my worker.list=ajp13, which is the default in server.xml, right?

Then, I changed it to worker.list=test

I did not change my server.xml file, but I thought you only specify for
the
listener. Maybe I am missing something. I am not aware of a jvm=
parameter..where am I supossed to put this?






   David
 O'Brien

   [EMAIL PROTECTED] To:  Tomcat Users
 List [EMAIL PROTECTED]
   .orgcc:  Tomcat Users
 List [EMAIL PROTECTED]
Subject: RE: mod_jk worker

 help please!!
   12/05/2003
 11:20

   AM

   Please
 respond

   to Tomcat
 Users

   List









I see no jvm=workers83  in the sever.xml file ???
-Dave








 Yes, I have that.  So, why would it ignore my worker.list for the
workers
I
 define?
 
 2003-12-04 17:16:58 Ajp13Connector[8009] Starting

mod_jk worker help please!!

2003-12-04 Thread Stephanie A Bickel




I am trying to configure Apache 1.3.X with tomcat 4.1.29.

I am trying to use the connector mod_jk for connect the two.

I am having the following problem: In my workers.properties I have a worker
I defined as test (or a thousand other names). No matter how I change my
worker.properties, an instance of ajp12 seems to be created. I don't
understand!! I have been working on this for days and any help would be
appreciated. Here are my config files:

server.xml has


Connector className=org.apache.ajp.tomcat4.Ajp13Connector
   port=8009 minProcessors=5 maxProcessors=75
   acceptCount=10 debug=0/

workers.properties:

workers.tomcat_home=C:\tomcat
workers.java_home=C:\MMIS_IAS\jdk
workers.th=C:\tomcat
ps=\
worker.list=test
worker.test.port=8009
worker.test.host=localhost
worker.test.type=ajp13

http.conf:
LoadModule jk_module modules/mod_jk.dll
AddModule mod_jk.c
JkWorkersFile C:/Tomcat/conf/jk/workers.properties
JkLogFile C:/tomcat/logs/mod_jk.log
JkLogLevel debug
JkLogStampFormat [%a %b %d %H:%M:%S %Y] 

my mod_jk.log says:
[Tue Dec 02 17:52:45 2003]  [jk_worker.c (88)]: Into wc_open
[Tue Dec 02 17:52:45 2003]  [jk_worker.c (222)]: Into build_worker_map,
creating 1 workers
[Tue Dec 02 17:52:45 2003]  [jk_worker.c (228)]: build_worker_map, creating
worker ajp12
[Tue Dec 02 17:52:45 2003]  [jk_worker.c (148)]: Into wc_create_worker
[Tue Dec 02 17:52:45 2003]  [jk_worker.c (162)]: wc_create_worker, about to
create instance ajp12 of ajp12
[Tue Dec 02 17:52:45 2003]  [jk_ajp12_worker.c (283)]: Into
ajp12_worker_factory
[Tue Dec 02 17:52:45 2003]  [jk_worker.c (171)]: wc_create_worker, about to
validate and init ajp12
[Tue Dec 02 17:52:45 2003]  [jk_ajp12_worker.c (200)]: Into
jk_worker_t::validate
[Tue Dec 02 17:52:45 2003]  [jk_ajp12_worker.c (212)]: In
jk_worker_t::validate for worker ajp12 contact is localhost:8007
[Tue Dec 02 17:52:45 2003]  [jk_worker.c (187)]: wc_create_worker, done
[Tue Dec 02 17:52:45 2003]  [jk_worker.c (238)]: build_worker_map, removing
old ajp12 worker
[Tue Dec 02 17:52:45 2003]  [jk_worker.c (250)]: build_worker_map, done
[Tue Dec 02 17:52:45 2003]  [jk_worker.c (111)]: wc_open, done 1


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



Urgent help, please!Best practices using Connection Pool

2003-10-09 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Hi gurus, help me please.
i am using DBCP 1.0 to make connection pool avaiable. My question can be
easy: since DBCP 1.0 doesnt create a singleton object ( just a datasource
object), what should i do whenever my sql queries are done? Should i close
the connection after each sql command is completed? But, if i do this, will
i loose my connection pool facility, so my next sql command will spend more
time since the connection process ( with the database ) would be started
before the sql running. I really need to improve my database response time!
Thanks in advance,
Euclides.  


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



AW: Urgent help, please!Best practices using Connection Pool

2003-10-09 Thread Nitschke Michael
I could remember that there was a mail today that answered your question.
The pool provides an wrapper for the connection object that you receive, this means 
you call getConnection and you do not get the real connection instead you recive an 
object implementing the Connection functionality with an altered close() method, 
which does not close/release the connection, but returns the connection to the pool.

If it was to short, read the original post in the archives.
Mike

-Ursprüngliche Nachricht-
Von: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 09. Oktober 2003 15:27
An: '[EMAIL PROTECTED]'
Betreff: Urgent help, please!Best practices using Connection Pool

Hi gurus, help me please.
i am using DBCP 1.0 to make connection pool avaiable. My question can be
easy: since DBCP 1.0 doesnt create a singleton object ( just a datasource
object), what should i do whenever my sql queries are done? Should i close
the connection after each sql command is completed? But, if i do this, will
i loose my connection pool facility, so my next sql command will spend more
time since the connection process ( with the database ) would be started
before the sql running. I really need to improve my database response time!
Thanks in advance,
Euclides.  


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


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



RE: Urgent help, please!Best practices using Connection Pool

2003-10-09 Thread Arnaud HERITIER
You should close your pool connection because the pool doesn't close the
real connection.
this doc can help you :
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-how
to.html#Random%20Connection%20Closed%20Exceptions

Arnaud

 -Message d'origine-
 De : Jose Euclides da Silva Junior - DATAPREVRJ
 [mailto:[EMAIL PROTECTED]
 Envoyé : jeudi 9 octobre 2003 15:27
 À : '[EMAIL PROTECTED]'
 Objet : Urgent help, please!Best practices using Connection Pool


 Hi gurus, help me please.
 i am using DBCP 1.0 to make connection pool avaiable. My
 question can be
 easy: since DBCP 1.0 doesnt create a singleton object ( just
 a datasource
 object), what should i do whenever my sql queries are done?
 Should i close
 the connection after each sql command is completed? But, if i
 do this, will
 i loose my connection pool facility, so my next sql command
 will spend more
 time since the connection process ( with the database ) would
 be started
 before the sql running. I really need to improve my database
 response time!
 Thanks in advance,
 Euclides.


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



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



RE: Urgent help, please!Best practices using Connection Pool

2003-10-09 Thread Edson Alves Pereira
Usually you should return every connection to your Persistence
mechanism, you cannot close the connection, because if do that other process
won´t use it.

 --
 De:   Jose Euclides da Silva Junior -
 DATAPREVRJ[SMTP:[EMAIL PROTECTED]
 Responder:Tomcat Users List
 Enviada:  quinta-feira, 9 de outubro de 2003 10:26
 Para: '[EMAIL PROTECTED]'
 Assunto:  Urgent help, please!Best practices using Connection Pool
 
 Hi gurus, help me please.
 i am using DBCP 1.0 to make connection pool avaiable. My question can be
 easy: since DBCP 1.0 doesnt create a singleton object ( just a datasource
 object), what should i do whenever my sql queries are done? Should i close
 the connection after each sql command is completed? But, if i do this,
 will
 i loose my connection pool facility, so my next sql command will spend
 more
 time since the connection process ( with the database ) would be started
 before the sql running. I really need to improve my database response
 time!
 Thanks in advance,
 Euclides.  
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


Re: AW: Urgent help, please!Best practices using Connection Pool

2003-10-09 Thread Adam Hardy
I think he must be having problems with his email because he send more 
or less the same msg 12 hours ago but didn't respond to any of the replies.

On 10/09/2003 03:27 PM Nitschke Michael wrote:
I could remember that there was a mail today that answered your question.
The pool provides an wrapper for the connection object that you receive, this means you call 
getConnection and you do not get the real connection instead you recive an object implementing 
the Connection functionality with an altered close() method, which does not 
close/release the connection, but returns the connection to the pool.
If it was to short, read the original post in the archives.
Mike
-Ursprüngliche Nachricht-
Von: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 09. Oktober 2003 15:27
An: '[EMAIL PROTECTED]'
Betreff: Urgent help, please!Best practices using Connection Pool

Hi gurus, help me please.
i am using DBCP 1.0 to make connection pool avaiable. My question can be
easy: since DBCP 1.0 doesnt create a singleton object ( just a datasource
object), what should i do whenever my sql queries are done? Should i close
the connection after each sql command is completed? But, if i do this, will
i loose my connection pool facility, so my next sql command will spend more
time since the connection process ( with the database ) would be started
before the sql running. I really need to improve my database response time!
Thanks in advance,
Euclides.  

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

--
struts 1.1 + tomcat 5.0.12 + java 1.4.2
Linux 2.4.20 RH9
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RES: AW: Urgent help, please!Best practices using Connection Pool

2003-10-09 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Good! Its enough to me! So, i always can use the 'close()' method whenever
the query statement ends since my connection pool will stand 'alive', still.
Of course, my pool wraps the connection object... My email service was down
yesterday...
Thanks at all,
Euclides.

-Mensagem original-
De: Adam Hardy [mailto:[EMAIL PROTECTED]
Enviada em: quinta-feira, 9 de outubro de 2003 10:42
Para: Tomcat Users List
Assunto: Re: AW: Urgent help, please!Best practices using Connection
Pool


I think he must be having problems with his email because he send more 
or less the same msg 12 hours ago but didn't respond to any of the replies.

On 10/09/2003 03:27 PM Nitschke Michael wrote:
 I could remember that there was a mail today that answered your question.
 The pool provides an wrapper for the connection object that you receive,
this means you call getConnection and you do not get the real connection
instead you recive an object implementing the Connection functionality with
an altered close() method, which does not close/release the connection,
but returns the connection to the pool.
 
 If it was to short, read the original post in the archives.
 Mike
 
 -Ursprüngliche Nachricht-
 Von: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED] 
 Gesendet: Donnerstag, 09. Oktober 2003 15:27
 An: '[EMAIL PROTECTED]'
 Betreff: Urgent help, please!Best practices using Connection Pool
 
 Hi gurus, help me please.
 i am using DBCP 1.0 to make connection pool avaiable. My question can be
 easy: since DBCP 1.0 doesnt create a singleton object ( just a datasource
 object), what should i do whenever my sql queries are done? Should i close
 the connection after each sql command is completed? But, if i do this,
will
 i loose my connection pool facility, so my next sql command will spend
more
 time since the connection process ( with the database ) would be started
 before the sql running. I really need to improve my database response
time!
 Thanks in advance,
 Euclides.  
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

-- 
struts 1.1 + tomcat 5.0.12 + java 1.4.2
Linux 2.4.20 RH9


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

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



Urgent help, please!Best practices using Connection Pool

2003-10-08 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Hi,
i am using DBCP 1.0. My question is simple: since DBCP doesnt create a
singleton object ( just a data source object), what should i do whenever my
sql queries are done? Should i close the connection after that? But, if i do
this, will i loose my connection pool facility, so my next connection time
will waste more time...
Thanks in advance,
Euclides.  

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



RE: Urgent help, please!Best practices using Connection Pool

2003-10-08 Thread Nathan Christiansen
DBCP wraps the connection object. When you call conn.close(); on the connection object 
given to you by the DataSource.getConnection(); method, it just releases it back into 
the pool, it dosen't actually close the connection.

-- Nathan Christiansen
   Tahitian Noni International
   http://www.tahitiannoni.com


-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 08, 2003 5:19 PM
To: '[EMAIL PROTECTED]'
Subject: Urgent help, please!Best practices using Connection Pool


Hi,
i am using DBCP 1.0. My question is simple: since DBCP doesnt create a
singleton object ( just a data source object), what should i do whenever my
sql queries are done? Should i close the connection after that? But, if i do
this, will i loose my connection pool facility, so my next connection time
will waste more time...
Thanks in advance,
Euclides.  

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


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



Re: Urgent help, please!Best practices using Connection Pool

2003-10-08 Thread Adam Hardy
Hi Jose,
the connection that you are served by your data source is a connection 
wrapper where the close method will not really close the connection, 
rather it will tell the connection pool that this connection is free and 
can be put back in the pool.

HTH
Adam
PS I wouldn't flag your email as urgent - I doubt it makes much 
difference to how quickly you get an answer, and often it only serves to 
put people off from reading your mail at all, simply because it annoys 
them that you consider your email should have higher priority for some 
reason than everyone else's. As if everyone is sitting around happily 
chatting about really non-urgent things. (which they do sometimes, but 
mostly not).

On 10/09/2003 01:18 AM Jose Euclides da Silva Junior - DATAPREVRJ wrote:
Hi,
i am using DBCP 1.0. My question is simple: since DBCP doesnt create a
singleton object ( just a data source object), what should i do whenever my
sql queries are done? Should i close the connection after that? But, if i do
this, will i loose my connection pool facility, so my next connection time
will waste more time...
Thanks in advance,
Euclides.  

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

--
struts 1.1 + tomcat 5.0.12 + java 1.4.2
Linux 2.4.20 RH9
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Tomcat response blocks - help please!

2003-09-29 Thread Armenio Pinto
Hi there, I have the following scenario in my project:

Tomcat 3.2.4 -- mod_jk/ httpd 1.3.27 -- Transparent proxy -- Internet
Explorer

Without the proxy, everything works fine. With the proxy, Tomcat stops
responding in some situations, whenever a redirect is implied. The JSPs are
correctly processed in Tomcat, but the user browser shows nothing; if F5 or
reload is pressed, the page shows up! If the same operation is done,
without closing the browser, the following text is inlined in the response
HTML:

HTTP/1.0 200 OK
Date: Mon, 29 Sep 2003 17:00:08 GMT
Server: Apache/1.3.27 (Unix)  (Red-Hat/Linux) mod_jk/1.2.4 mod_python/2.7.8
Python/1.5.2 mod_ssl/2.8.12 OpenSSL/0.9.6b DAV/1.0.3 PHP/4.1.2 mod_perl/1.26
mod_throttle/3.1.2
Cache-Control: no-cache
Pragma: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Servlet-Engine: Tomcat Web Server/3.2.4 (JSP 1.1; Servlet 2.2; Java 1.4.2;
Linux 2.4.18-27.7.x i386; java.vendor=Sun Microsystems Inc.)
Content-Type: text/html;charset=ISO-8859-1
X-Cache: MISS from xx.xxx.xxx.xxx.pt
Connection: close


Now, the stranger part: EVERYTHING WORK FINE IN MOZILLA! Even with the
proxy! I guess this has something to do with caching configurations. Can
anyone help me please? Thanks in advance,

Arménio Pinto

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



Odd Network error using DBCP - help please

2003-09-12 Thread Neil M. Johnson



Hi, I have set up a connection pool to mySQL 
and get an error when trying to connect to it. The error is
 
org.apache.commons.dbcp.DbcpException: java.sql.SQLException: Unable to connect 
to any hosts due to exception:
 java.net.BindException: Address 
already in use: connect 

The full message follows this 
text.

This seems a very strange error as it 
appears to be coming from within the driver when it tries to make a 
connection. I can connect to the database by loading the driver and 
connecting directly and this works. It is only when I try it through 
Connection pooling that it fails.

This is a development system set up 
specifically for this project. I have installed MySQL and Tomcat 
4.1.27. I have stopped and restarted the server several 
times.

I have also attached the section of XML from 
server.xml and my web.xml file for this project(ignore the DBCP 
prefix). Any help would be appreciated.

Thanks, Neil


HTTP Status 500 - 

type Exception report
message 
description The server encountered an internal error () that prevented it 
from fulfilling this request.
exception 
org.apache.jasper.JasperException: java.sql.SQLException: Unable to connect 
to any hosts due to exception: java.net.BindException: Address already in use: 
connect
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254)
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
at java.lang.Thread.run(Thread.java:536)

root cause 
org.apache.commons.dbcp.DbcpException: java.sql.SQLException: Unable to 
connect to any hosts due to exception: java.net.BindException: Address already 
in use: connect
at 
org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:85)
at 
org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:184)
at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(Unknown 
Source)
at 
org.apache.commons.dbcp.AbandonedObjectPool.borrowObject(AbandonedObjectPool.java:117)
at 
org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:110)
at 
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:312)
at 
org.apache.jsp.PRIPListProfiles_jsp._jspService(PRIPListProfiles_jsp.java:62)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)

Error starting latest beta version of catalina - help please

2003-08-30 Thread Neil M. Johnson



I have just installed the new version 5 beta 
5.0.9. I have been unable to start any v5.0.x version on my system. 
The following messages are produced when I run catalina to show the 
output. Note that it will not start as a service, or as a startup.bat 
command.
One odd thing, after the installation process, 
it complains that the Tomcat 5.0 directory does not have a \lib directory. 
I create this by hand, and it runs, but then crashes with the following 
messages. Any suggestions as to what is wrong with my configuration? 
It appears to be having problems starting the logging facility.
Thanks, Neil

Microsoft Windows 2000 [Version 5.00.2195](C) Copyright 1985-2000 
Microsoft Corp.
D:\Program Files\Apache Software Foundation\Tomcat 5.0\bincatalina 
runUsing CATALINA_BASE: D:\Program Files\Apache Software 
Foundation\Tomcat 5.0Using CATALINA_HOME: D:\Program 
Files\Apache Software Foundation\Tomcat 5.0Using CATALINA_TMPDIR: D:\Program 
Files\Apache Software Foundation\Tomcat 5.0\tempUsing 
JAVA_HOME: D:\JBuilder8\jdk1.4Aug 29, 
2003 4:03:13 PM org.apache.coyote.http11.Http11Protocol initINFO: 
Initializing Coyote HTTP/1.1 on port 8080Aug 29, 2003 4:03:13 PM 
org.apache.catalina.startup.Catalina loadINFO: Initialization processed in 
9063 msException during startup 
processingjava.lang.reflect.InvocationTargetException 
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native 
Method) at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
at 
java.lang.reflect.Method.invoke(Method.java:324) 
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:190)Caused by: 
java.lang.ExceptionInInitializerError 
at 
org.apache.catalina.core.NamingContextListener.lifecycleEvent(NamingContextListener.java:276) 
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166) 
at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:2304) 
at 
org.apache.catalina.startup.Catalina.start(Catalina.java:578) 
at 
org.apache.catalina.startup.Catalina.process(Catalina.java:214) 
... 5 moreCaused by: org.apache.commons.logging.LogConfigurationException: 
org.apache.commons.logging.LogConfigurationException: 
org.apache.commons.logging.LogConfigurationException: Class 
org.apache.commons.logging.impl.Jdk14Logger does not implement 
Log at 
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:532) 
at 
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:272) 
at 
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:246) 
at 
org.apache.commons.logging.LogFactory.getLog(LogFactory.java:395) 
at 
org.apache.naming.NamingContext.clinit(NamingContext.java:102) 
... 10 moreCaused by: org.apache.commons.logging.LogConfigurationException: 
org.apache.commons.logging.LogConfigurationException: Class 
org.apache.commons.logging.impl.Jdk14Logger does not implement 
Log at 
org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:416) 
at 
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:525) 
... 14 moreCaused by: org.apache.commons.logging.LogConfigurationException: 
Class org.apache.commons.logging.impl.Jdk14Logger does not implement 
Log at 
org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:412) 
... 15 more
D:\Program Files\Apache Software Foundation\Tomcat 5.0\bin



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

HELP PLEASE- SQLException event whenever DBCP works

2003-08-25 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Hi guys, 
i am needing help with DBCP. Since it doesnt work as a singleton object, iam
making something crazy like that. 

if ( ds == null )
{
 BeanPoolConn bp = new BeanPoolConn();
 ds = bp.conexao();
}

The BeanPoolConn instances DBCP component. The problem regards sometimes
when my application throws an SQLException with the following content: no
more data to read from socket.
So, what does it mean? Help needed.
Regards, Euclides.

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



Rebuild HTTP header in a servlet on TOMCAT 4.1.24. NEED HELP PLEASE !!!!

2003-06-12 Thread Michel Jubault
Hi !

I've a serveur and a client both developped in Java. They exchange XML
messages with HTTP header.
I've to transform this server in a servlet for Tomcat.
Everything goes OK except one : the client accepts a particular HTTP header
and I can't modify the client |-(

In fact, the client freeze if it finds a server tag in HTTP header of
server message.

How I could remove the server : Apache ... tag from servlet response
header ?

Can someone explain me how to  do that ?

thanks in advance

Michel


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



I need help please (Tomcat 4.1.24 and IIS)

2003-06-09 Thread Jeffrey Cummings
I am trying to setup tomcat 4.1.24 with IIS. When I request a page I get the
following message:-


HTTP Status 404 - /tomcat/isapi_redirect.dll
___
type Status report
message /tomcat/isapi_redirect.dll
description The requested resource (/tomcat/isapi_redirect.dll) is not
available.
_
Apache Tomcat/4.1.24


My registry settings

extension_uri - /tomcat/isapi_redirector.dll
worker_file - C:\Jakarta-4.1.24\conf\workers.properties
worker_mount_file - C:\Jakarta-4.1.24\conf\uriworkermap.properties
log_file - C:\Jakarta-4.1.24\logs\mod_jk_iis.log
log_level - debug


I have a virtual directory tomcat - C:\Jakarta-4.1.24\conf
(isapi_redirector.dll is in the conf directory)
I’ve set up the filter in the default web site for tomcat (it has a green
arrow)
I’m running XP (this is where I test then move to Win2K)
By the way, http://localhost:8080/examples/jsp/index.html works fine


Here is the isapi log when I make the request for
http://localhost/examples/jsp/index.html

[jk_isapi_plugin.c (408)]: HttpFilterProc started
[jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of
/examples/jsp/index.html
[jk_uri_worker_map.c (345)]: Into jk_uri_worker_map_t::map_uri_to_worker
[jk_uri_worker_map.c (407)]: jk_uri_worker_map_t::map_uri_to_worker, Found a
match ajp13
[jk_isapi_plugin.c (439)]: HttpFilterProc [/examples/jsp/index.html] is a
servlet url - should redirect to ajp13
[jk_isapi_plugin.c (461)]: HttpFilterProc check if
[/examples/jsp/index.html] is points to the web-inf directory
[Sat Jun 07 09:18:40 2003]  [jk_isapi_plugin.c (766)]: HttpFilterProc
started
[Sat Jun 07 09:18:40 2003]  [jk_isapi_plugin.c (829)]: In HttpFilterProc
Virtual Host redirection of /localhost/tomcat/isapi_redirect.dll
[Sat Jun 07 09:18:40 2003]  [jk_uri_worker_map.c (460)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Sat Jun 07 09:18:40 2003]  [jk_uri_worker_map.c (477)]: Attempting to map
URI '/localhost/tomcat/isapi_redirect.dll'
[Sat Jun 07 09:18:40 2003]  [jk_uri_worker_map.c (599)]:
jk_uri_worker_map_t::map_uri_to_worker, done without a match
[Sat Jun 07 09:18:40 2003]  [jk_isapi_plugin.c (835)]: In HttpFilterProc
test Default redirection of /tomcat/isapi_redirect.dll
[Sat Jun 07 09:18:40 2003]  [jk_uri_worker_map.c (460)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Sat Jun 07 09:18:40 2003]  [jk_uri_worker_map.c (477)]: Attempting to map
URI '/tomcat/isapi_redirect.dll'
[Sat Jun 07 09:18:40 2003]  [jk_uri_worker_map.c (599)]:
jk_uri_worker_map_t::map_uri_to_worker, done without a match
[Sat Jun 07 09:18:40 2003]  [jk_isapi_plugin.c (899)]: HttpFilterProc
[/tomcat/isapi_redirect.dll] is not a servlet url
[Sat Jun 07 09:18:40 2003]  [jk_isapi_plugin.c (908)]: HttpFilterProc check
if [/tomcat/isapi_redirect.dll] is points to the web-inf directory
[Sat Jun 07 09:18:40 2003]  [jk_isapi_plugin.c (948)]: HttpExtensionProc
started
[Sat Jun 07 09:18:40 2003]  [jk_worker.c (132)]: Into wc_get_worker_for_name
ajp13
[Sat Jun 07 09:18:40 2003]  [jk_worker.c (136)]: wc_get_worker_for_name,
done  found a worker
[Sat Jun 07 09:18:40 2003]  [jk_isapi_plugin.c (983)]: HttpExtensionProc got
a worker for name ajp13
[Sat Jun 07 09:18:40 2003]  [jk_ajp_common.c (1404)]: Into
jk_worker_t::get_endpoint
[Sat Jun 07 09:18:40 2003]  [jk_ajp_common.c (1448)]: In
jk_endpoint_t::ajp_get_endpoint, time elapsed since last request = 497
seconds
[Sat Jun 07 09:18:40 2003]  [jk_ajp_common.c (1116)]: Into
jk_endpoint_t::service
[Sat Jun 07 09:18:40 2003]  [jk_ajp_common.c (295)]: Into
ajp_marshal_into_msgb
[Sat Jun 07 09:18:40 2003]  [jk_ajp_common.c (432)]: ajp_marshal_into_msgb -
Done
[Sat Jun 07 09:18:40 2003]  [jk_ajp_common.c (642)]: sending to ajp13 #314
[Sat Jun 07 09:18:40 2003]  [jk_ajp_common.c (884)]: ajp_send_request 2:
request body to send 0 - request body to resend 0
[Sat Jun 07 09:18:40 2003]  [jk_ajp_common.c (729)]: received from ajp13 #81
[Sat Jun 07 09:18:40 2003]  [jk_ajp_common.c (483)]: ajp_unmarshal_response:
status = 404
[Sat Jun 07 09:18:40 2003]  [jk_ajp_common.c (488)]: ajp_unmarshal_response:
Number of headers is = 2
[Sat Jun 07 09:18:40 2003]  [jk_ajp_common.c (532)]: ajp_unmarshal_response:
Header[0] [Content-Type] = [text/html;charset=ISO-8859-1]
[Sat Jun 07 09:18:40 2003]  [jk_ajp_common.c (532)]: ajp_unmarshal_response:
Header[1] [Content-Language] = [en-US]
[Sat Jun 07 09:18:40 2003]  [jk_isapi_plugin.c (432)]: Into
jk_ws_service_t::start_response
[Sat Jun 07 09:18:40 2003]  [jk_ajp_common.c (729)]: received from ajp13
#747
[Sat Jun 07 09:18:40 2003]  [jk_isapi_plugin.c (566)]: Into
jk_ws_service_t::write
[Sat Jun 07 09:18:40 2003]  [jk_ajp_common.c (729)]: received from ajp13 #2
[Sat Jun 07 09:18:40 2003]  [jk_isapi_plugin.c (995)]: HttpExtensionProc
service() returned OK
[Sat Jun 07 09:18:40 2003]  [jk_ajp_common.c (1382)]: Into
jk_endpoint_t::done, recycling connection

What have I missed?


Jeff




Re: I need help please (Tomcat 4.1.24 and IIS)

2003-06-09 Thread John Turner
[Sat Jun 07 09:18:40 2003]  [jk_uri_worker_map.c (477)]: Attempting to map
URI '/localhost/tomcat/isapi_redirect.dll'
[Sat Jun 07 09:18:40 2003]  [jk_uri_worker_map.c (599)]:
jk_uri_worker_map_t::map_uri_to_worker, done without a match
Please post your .properties files, without them we can't be much help, it 
looks like one of them has a munged up URL.

John

On Mon, 9 Jun 2003 07:47:30 -0400, Jeffrey Cummings [EMAIL PROTECTED] wrote:

I am trying to setup tomcat 4.1.24 with IIS. When I request a page I get 
the
following message:-

HTTP Status 404 - /tomcat/isapi_redirect.dll
___
type Status report
message /tomcat/isapi_redirect.dll
description The requested resource (/tomcat/isapi_redirect.dll) is not
available.
_
Apache Tomcat/4.1.24
My registry settings

extension_uri - /tomcat/isapi_redirector.dll
worker_file - C:\Jakarta-4.1.24\conf\workers.properties
worker_mount_file - C:\Jakarta-4.1.24\conf\uriworkermap.properties
log_file - C:\Jakarta-4.1.24\logs\mod_jk_iis.log
log_level - debug
I have a virtual directory tomcat - C:\Jakarta-4.1.24\conf
(isapi_redirector.dll is in the conf directory)
Ive set up the filter in the default web site for tomcat (it has a green
arrow)
Im running XP (this is where I test then move to Win2K)
By the way, http://localhost:8080/examples/jsp/index.html works fine
Here is the isapi log when I make the request for
http://localhost/examples/jsp/index.html
[jk_isapi_plugin.c (408)]: HttpFilterProc started
[jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of
/examples/jsp/index.html
[jk_uri_worker_map.c (345)]: Into jk_uri_worker_map_t::map_uri_to_worker
[jk_uri_worker_map.c (407)]: jk_uri_worker_map_t::map_uri_to_worker, 
Found a
match ajp13
[jk_isapi_plugin.c (439)]: HttpFilterProc [/examples/jsp/index.html] is a
servlet url - should redirect to ajp13
[jk_isapi_plugin.c (461)]: HttpFilterProc check if
[/examples/jsp/index.html] is points to the web-inf directory
[Sat Jun 07 09:18:40 2003]  [jk_isapi_plugin.c (766)]: HttpFilterProc
started
[Sat Jun 07 09:18:40 2003]  [jk_isapi_plugin.c (829)]: In HttpFilterProc
Virtual Host redirection of /localhost/tomcat/isapi_redirect.dll
[Sat Jun 07 09:18:40 2003]  [jk_uri_worker_map.c (460)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Sat Jun 07 09:18:40 2003]  [jk_uri_worker_map.c (477)]: Attempting to 
map
URI '/localhost/tomcat/isapi_redirect.dll'
[Sat Jun 07 09:18:40 2003]  [jk_uri_worker_map.c (599)]:
jk_uri_worker_map_t::map_uri_to_worker, done without a match
[Sat Jun 07 09:18:40 2003]  [jk_isapi_plugin.c (835)]: In HttpFilterProc
test Default redirection of /tomcat/isapi_redirect.dll
[Sat Jun 07 09:18:40 2003]  [jk_uri_worker_map.c (460)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Sat Jun 07 09:18:40 2003]  [jk_uri_worker_map.c (477)]: Attempting to 
map
URI '/tomcat/isapi_redirect.dll'
[Sat Jun 07 09:18:40 2003]  [jk_uri_worker_map.c (599)]:
jk_uri_worker_map_t::map_uri_to_worker, done without a match
[Sat Jun 07 09:18:40 2003]  [jk_isapi_plugin.c (899)]: HttpFilterProc
[/tomcat/isapi_redirect.dll] is not a servlet url
[Sat Jun 07 09:18:40 2003]  [jk_isapi_plugin.c (908)]: HttpFilterProc 
check
if [/tomcat/isapi_redirect.dll] is points to the web-inf directory
[Sat Jun 07 09:18:40 2003]  [jk_isapi_plugin.c (948)]: HttpExtensionProc
started
[Sat Jun 07 09:18:40 2003]  [jk_worker.c (132)]: Into 
wc_get_worker_for_name
ajp13
[Sat Jun 07 09:18:40 2003]  [jk_worker.c (136)]: wc_get_worker_for_name,
done  found a worker
[Sat Jun 07 09:18:40 2003]  [jk_isapi_plugin.c (983)]: HttpExtensionProc 
got
a worker for name ajp13
[Sat Jun 07 09:18:40 2003]  [jk_ajp_common.c (1404)]: Into
jk_worker_t::get_endpoint
[Sat Jun 07 09:18:40 2003]  [jk_ajp_common.c (1448)]: In
jk_endpoint_t::ajp_get_endpoint, time elapsed since last request = 497
seconds
[Sat Jun 07 09:18:40 2003]  [jk_ajp_common.c (1116)]: Into
jk_endpoint_t::service
[Sat Jun 07 09:18:40 2003]  [jk_ajp_common.c (295)]: Into
ajp_marshal_into_msgb
[Sat Jun 07 09:18:40 2003]  [jk_ajp_common.c (432)]: 
ajp_marshal_into_msgb -
Done
[Sat Jun 07 09:18:40 2003]  [jk_ajp_common.c (642)]: sending to ajp13 
#314
[Sat Jun 07 09:18:40 2003]  [jk_ajp_common.c (884)]: ajp_send_request 2:
request body to send 0 - request body to resend 0
[Sat Jun 07 09:18:40 2003]  [jk_ajp_common.c (729)]: received from ajp13 
#81
[Sat Jun 07 09:18:40 2003]  [jk_ajp_common.c (483)]: 
ajp_unmarshal_response:
status = 404
[Sat Jun 07 09:18:40 2003]  [jk_ajp_common.c (488)]: 
ajp_unmarshal_response:
Number of headers is = 2
[Sat Jun 07 09:18:40 2003]  [jk_ajp_common.c (532)]: 
ajp_unmarshal_response:
Header[0] [Content-Type] = [text/html;charset=ISO-8859-1]
[Sat Jun 07 09:18:40 2003]  [jk_ajp_common.c (532)]: 
ajp_unmarshal_response:
Header[1] [Content-Language] = [en-US]
[Sat Jun 07 09:18:40 2003]  [jk_isapi_plugin.c (432)]: Into
jk_ws_service_t::start_response
[Sat Jun 07 09:18:40 2003]  [jk_ajp_common.c (729)]: received from ajp13
#747
[Sat Jun 07 09:18:40 2003]  [jk_isapi_plugin.c (566)]: Into

RE: Help Please: Starting Tomcat using channelUnix with mod_jk2

2003-06-08 Thread Michael Cardon
Thanks Chong,

Yes, I did make the symbolic link as you mentioned.  Now I have a question
for you. In your server.xml file, in the connector definition, you are still
using port 8009. When using channelUnix shouldn't the port be set to 0
(zero)?

Michael


-Original Message-
From: Chong Yu Meng [mailto:[EMAIL PROTECTED]
Sent: Saturday, June 07, 2003 10:22 PM
To: Tomcat Users List
Subject: Re: Help Please: Starting Tomcat using channelUnix with mod_jk2


Michael Cardon wrote:

Thanks Chong,

I did have the apache2-devel package installed, but I started a fresh
install of Linux 8.0 and all the rpm's following your instructions again
anyway.

I'm ready to pull my hair out I get the same error about the undefined
symbol: apr_md5_final


Something occurred to me last night -- I forgot to remind you about a
certain symbolic link you need to make. You see, RH8 names the APR file
differently. Not sure if you did this :

*# ln -s /usr/lib/libapr-0.so.0.9.3 /usr/lib/libapr.so.0

*Regards,
pascal chong




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


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



RE: Help Please: Starting Tomcat using channelUnix with mod_jk2

2003-06-08 Thread Michael Cardon
Thanks Mark,

I tried it on RH Linux 9.0 with the same result myself. I bet your thought
on the recent change on the apr_md5_final is probably correct... no what can
we do about it???

Michael

-Original Message-
From: Mark Eggers [mailto:[EMAIL PROTECTED]
Sent: Saturday, June 07, 2003 10:56 PM
To: Tomcat Users List
Subject: Re: Help Please: Starting Tomcat using channelUnix with mod_jk2


Pascal,

I've been trying the same thing with Redhat 9, and
getting a similar problem.  I even put
/home/apache/lib in /etc/ld.so.conf and ran
/sbin/ldconfig -v.  I verified that that shared
libraries are indeed loaded.

I also tried modifying /home/tomcat/bin/catalina.sh to
include a -Djava.library.path=[various things], but
that failed to work as well.

I'll think about it some more tomorrow.

One thing to note:  In the source code, there has been
a recent change from apr_MD5FINAL to apr_md5_final.
I'm wondering if the propagation has made it all the
way through.

/mde/
just my two cents . . . .

__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

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


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



RE: Help Please: Starting Tomcat using channelUnix with mod_jk2

2003-06-07 Thread Michael Cardon
Thank you Bill, I'll give that a try

-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Bill Barker
Sent: Friday, June 06, 2003 9:04 PM
To: [EMAIL PROTECTED]
Subject: Re: Help Please: Starting Tomcat using channelUnix with mod_jk2


You need to have libapr on your LD_LIBRARY_PATH when you start Tomcat.

Michael Cardon [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Where I am missing this?: undefined symbol: apr_md5_final


 When I start my instance of tomcat it writes the following to
catalina.out:

 Jun 6, 2003 9:49:55 AM org.apache.commons.modeler.Registry loadRegistry
 INFO: Loading registry information
 Jun 6, 2003 9:49:55 AM org.apache.commons.modeler.Registry getRegistry
 INFO: Creating new Registry instance
 Jun 6, 2003 9:49:56 AM org.apache.commons.modeler.Registry getServer
 INFO: Creating MBeanServer
 Starting service Tomcat-Standalone
 Apache Tomcat/4.1.24
 Jun 6, 2003 9:50:00 AM org.apache.jk.server.JkMain start
 INFO: APR not loaded, disabling jni components: java.io.IOException:
 /usr/lib/apache2/jkjni.so: /usr/lib/apache2/jkjni.so: undefined symbol:
 apr_md5_final
 Jun 6, 2003 9:50:00 AM org.apache.jk.common.ChannelSocket init
 INFO: JK2: ajp13 disabling channelSocket
 Jun 6, 2003 9:50:00 AM org.apache.jk.server.JkMain start
 INFO: Jk running ID=0 time=1/50
 config=/home/jakarta1/tomcat/conf/jk2.properties


 My jk2.properties file looks like this:

 handler.list=apr,channelUnix,request
 channelUnix.file=${tomcatHome}/work/jk2.socket
 apr.NativeSo=/usr/lib/apache2/jkjni.so


 My platform: RH Linux 8.0

 j2sdk-1_4_2-beta-linux-i586.rpm
 apache2-2.0.45-1.7.2.i386.rpm
 tomcat-4.1.24.tar.gz
 tomcat-connectors-4.1.24-src.tar.gz or mod_jk2-ap20-2.0.1-1jpp.i386.rpm, I
 got the same results both ways.


 Any help or ideas would be greatly appreciated. Thanks




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


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



Re: Help Please: Starting Tomcat using channelUnix with mod_jk2

2003-06-07 Thread Chong Yu Meng
Michael Cardon wrote:

Where I am missing this?: undefined symbol: apr_md5_final
My platform: RH Linux 8.0
 

You're missing the Apache Portable Runtime (APR). This is found in the 
apache2-devel rpm package, which I see you do not seem to have. Download 
it from Falsehope as well.

j2sdk-1_4_2-beta-linux-i586.rpm
apache2-2.0.45-1.7.2.i386.rpm
tomcat-4.1.24.tar.gz
tomcat-connectors-4.1.24-src.tar.gz or mod_jk2-ap20-2.0.1-1jpp.i386.rpm, I
got the same results both ways.
Any help or ideas would be greatly appreciated. Thanks

 

Regards,
pascal chong


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


RE: Help Please: Starting Tomcat using channelUnix with mod_jk2

2003-06-07 Thread Michael Cardon
Thanks Chong,

I did have the apache2-devel package installed, but I started a fresh
install of Linux 8.0 and all the rpm's following your instructions again
anyway.

I'm ready to pull my hair out I get the same error about the undefined
symbol: apr_md5_final

I am using sun's j2sdk instead of IBM's, other than that, I think everything
is the same setup as your system.

I've done symbolic links, set environment variables, and everything else I
can think of, but I get the same error.

This seems so simple, I can't believe it's causing me this much grief
hehehe

Anyway, I'm looking for some more guidance if you can Thanks.





-Original Message-
From: Chong Yu Meng [mailto:[EMAIL PROTECTED]
Sent: Saturday, June 07, 2003 7:19 AM
To: Tomcat Users List
Subject: Re: Help Please: Starting Tomcat using channelUnix with mod_jk2


Michael Cardon wrote:

Where I am missing this?: undefined symbol: apr_md5_final
My platform: RH Linux 8.0


You're missing the Apache Portable Runtime (APR). This is found in the
apache2-devel rpm package, which I see you do not seem to have. Download
it from Falsehope as well.

j2sdk-1_4_2-beta-linux-i586.rpm
apache2-2.0.45-1.7.2.i386.rpm
tomcat-4.1.24.tar.gz
tomcat-connectors-4.1.24-src.tar.gz or mod_jk2-ap20-2.0.1-1jpp.i386.rpm, I
got the same results both ways.


Any help or ideas would be greatly appreciated. Thanks



Regards,
pascal chong




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


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



Re: Help Please: Starting Tomcat using channelUnix with mod_jk2

2003-06-07 Thread Chong Yu Meng
Michael Cardon wrote:

Thanks Chong,

I did have the apache2-devel package installed, but I started a fresh
install of Linux 8.0 and all the rpm's following your instructions again
anyway.
I'm ready to pull my hair out I get the same error about the undefined
symbol: apr_md5_final
 

Something occurred to me last night -- I forgot to remind you about a 
certain symbolic link you need to make. You see, RH8 names the APR file 
differently. Not sure if you did this :

*# ln -s /usr/lib/libapr-0.so.0.9.3 /usr/lib/libapr.so.0

*Regards,
pascal chong


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


Re: Help Please: Starting Tomcat using channelUnix with mod_jk2

2003-06-07 Thread Mark Eggers
Pascal,

I've been trying the same thing with Redhat 9, and
getting a similar problem.  I even put
/home/apache/lib in /etc/ld.so.conf and ran
/sbin/ldconfig -v.  I verified that that shared
libraries are indeed loaded.

I also tried modifying /home/tomcat/bin/catalina.sh to
include a -Djava.library.path=[various things], but
that failed to work as well.

I'll think about it some more tomorrow.

One thing to note:  In the source code, there has been
a recent change from apr_MD5FINAL to apr_md5_final. 
I'm wondering if the propagation has made it all the
way through.

/mde/
just my two cents . . . .

__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

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



Help Please: Starting Tomcat using channelUnix with mod_jk2

2003-06-06 Thread Michael Cardon
Where I am missing this?: undefined symbol: apr_md5_final


When I start my instance of tomcat it writes the following to catalina.out:

Jun 6, 2003 9:49:55 AM org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
Jun 6, 2003 9:49:55 AM org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance
Jun 6, 2003 9:49:56 AM org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
Starting service Tomcat-Standalone
Apache Tomcat/4.1.24
Jun 6, 2003 9:50:00 AM org.apache.jk.server.JkMain start
INFO: APR not loaded, disabling jni components: java.io.IOException:
/usr/lib/apache2/jkjni.so: /usr/lib/apache2/jkjni.so: undefined symbol:
apr_md5_final
Jun 6, 2003 9:50:00 AM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 disabling channelSocket
Jun 6, 2003 9:50:00 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=1/50
config=/home/jakarta1/tomcat/conf/jk2.properties


My jk2.properties file looks like this:

handler.list=apr,channelUnix,request
channelUnix.file=${tomcatHome}/work/jk2.socket
apr.NativeSo=/usr/lib/apache2/jkjni.so


My platform: RH Linux 8.0

j2sdk-1_4_2-beta-linux-i586.rpm
apache2-2.0.45-1.7.2.i386.rpm
tomcat-4.1.24.tar.gz
tomcat-connectors-4.1.24-src.tar.gz or mod_jk2-ap20-2.0.1-1jpp.i386.rpm, I
got the same results both ways.


Any help or ideas would be greatly appreciated. Thanks


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



Re: Help Please: Starting Tomcat using channelUnix with mod_jk2

2003-06-06 Thread Bill Barker
You need to have libapr on your LD_LIBRARY_PATH when you start Tomcat.

Michael Cardon [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Where I am missing this?: undefined symbol: apr_md5_final


 When I start my instance of tomcat it writes the following to
catalina.out:

 Jun 6, 2003 9:49:55 AM org.apache.commons.modeler.Registry loadRegistry
 INFO: Loading registry information
 Jun 6, 2003 9:49:55 AM org.apache.commons.modeler.Registry getRegistry
 INFO: Creating new Registry instance
 Jun 6, 2003 9:49:56 AM org.apache.commons.modeler.Registry getServer
 INFO: Creating MBeanServer
 Starting service Tomcat-Standalone
 Apache Tomcat/4.1.24
 Jun 6, 2003 9:50:00 AM org.apache.jk.server.JkMain start
 INFO: APR not loaded, disabling jni components: java.io.IOException:
 /usr/lib/apache2/jkjni.so: /usr/lib/apache2/jkjni.so: undefined symbol:
 apr_md5_final
 Jun 6, 2003 9:50:00 AM org.apache.jk.common.ChannelSocket init
 INFO: JK2: ajp13 disabling channelSocket
 Jun 6, 2003 9:50:00 AM org.apache.jk.server.JkMain start
 INFO: Jk running ID=0 time=1/50
 config=/home/jakarta1/tomcat/conf/jk2.properties


 My jk2.properties file looks like this:

 handler.list=apr,channelUnix,request
 channelUnix.file=${tomcatHome}/work/jk2.socket
 apr.NativeSo=/usr/lib/apache2/jkjni.so


 My platform: RH Linux 8.0

 j2sdk-1_4_2-beta-linux-i586.rpm
 apache2-2.0.45-1.7.2.i386.rpm
 tomcat-4.1.24.tar.gz
 tomcat-connectors-4.1.24-src.tar.gz or mod_jk2-ap20-2.0.1-1jpp.i386.rpm, I
 got the same results both ways.


 Any help or ideas would be greatly appreciated. Thanks




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



Logging help please

2003-06-05 Thread Tim Shaw
Hi,

Does anyone have a link to a FAQ or HOW-TO for using commons-logging 
with Tomcat 4.1.x please? I've read the obvious ones at apache.org and 
sun.com, and tried all sorts before having to back out and go to a 
wrapper around ServletContext.log (which doesn't give me levels and 
files etc). I was hoping to use the JDK14 Logger FileLogger.

I'd appreciate a sanity check on the below - thanks for your time.

I have 4 co-operating web apps, each of which extends their Controller 
servlet from a class in a common jar file (deployed in WEB-INF/lib with 
each app).

I would like to be able to 'tune' (outside the .war file) the logging 
levels, filenames etc.

Modifying the $JAVA_HOME/jre/lib/logging.properties file seems to make 
no difference (and seems as if it would be 'global').

I tried loading a log properties file using loadResourceAsStream in the 
Controller super-class - which seems better (in that it does some of the 
logging, but I can't seem to get it to log 'finer' than INFO). This also 
creates multiple log files (following the pattern %u.log as per JDK 
1.4 logging). I am happy to provide the properties file-name in the 
web.xml as an init parameter - seems sound.

Class Loading etc. :

For singletons (e.g. the Controller servlet super-class instances), I 
would assume that initialising the log as a static variable would result 
in different Factories for each app as it is a different class-loader.

When I have multiple instances of a class, however, (I'm using 
Command/Action pattern) should I use a static variable (write contention 
causes the multiple files mentioned above?)? Is there a distinction 
between logging to multiple instances of the  FileLogger as opposed to a 
single instance? Is there a reason to optimise the calls to get a Logger 
from the Factory - or is it OK to just grab one as and when?

Sorry for the length.

Regards

tim





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


RE: Logging help please

2003-06-05 Thread Phillip Qin
Commons-logging is a wrapper. Try use log4j or jdk 1.4 logger for the
underlying logger

-Original Message-
From: Tim Shaw [mailto:[EMAIL PROTECTED] 
Sent: June 4, 2003 1:42 PM
To: Tomcat Users List
Subject: Logging help please

Hi,

Does anyone have a link to a FAQ or HOW-TO for using commons-logging 
with Tomcat 4.1.x please? I've read the obvious ones at apache.org and 
sun.com, and tried all sorts before having to back out and go to a 
wrapper around ServletContext.log (which doesn't give me levels and 
files etc). I was hoping to use the JDK14 Logger FileLogger.

I'd appreciate a sanity check on the below - thanks for your time.

I have 4 co-operating web apps, each of which extends their Controller 
servlet from a class in a common jar file (deployed in WEB-INF/lib with 
each app).

I would like to be able to 'tune' (outside the .war file) the logging 
levels, filenames etc.

Modifying the $JAVA_HOME/jre/lib/logging.properties file seems to make 
no difference (and seems as if it would be 'global').

I tried loading a log properties file using loadResourceAsStream in the 
Controller super-class - which seems better (in that it does some of the 
logging, but I can't seem to get it to log 'finer' than INFO). This also 
creates multiple log files (following the pattern %u.log as per JDK 
1.4 logging). I am happy to provide the properties file-name in the 
web.xml as an init parameter - seems sound.

Class Loading etc. :

For singletons (e.g. the Controller servlet super-class instances), I 
would assume that initialising the log as a static variable would result 
in different Factories for each app as it is a different class-loader.

When I have multiple instances of a class, however, (I'm using 
Command/Action pattern) should I use a static variable (write contention 
causes the multiple files mentioned above?)? Is there a distinction 
between logging to multiple instances of the  FileLogger as opposed to a 
single instance? Is there a reason to optimise the calls to get a Logger 
from the Factory - or is it OK to just grab one as and when?

Sorry for the length.

Regards

tim





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


Re: Logging help please

2003-06-05 Thread Tim Shaw
Sorry, but that was what I tried first. My problem seems to be with the 
mechanics of using JDK1.4 logging within Tomcat (with or without the 
commons wrapper) - I can get it to work fine outside (where I 'control' 
the VM, ClassLoader etc).

Thanks

tim

Phillip Qin wrote:
Commons-logging is a wrapper. Try use log4j or jdk 1.4 logger for the
underlying logger
-Original Message-
From: Tim Shaw [mailto:[EMAIL PROTECTED] 
Sent: June 4, 2003 1:42 PM
To: Tomcat Users List
Subject: Logging help please

Hi,

Does anyone have a link to a FAQ or HOW-TO for using commons-logging 
with Tomcat 4.1.x please? I've read the obvious ones at apache.org and 
sun.com, and tried all sorts before having to back out and go to a 
wrapper around ServletContext.log (which doesn't give me levels and 
files etc). I was hoping to use the JDK14 Logger FileLogger.

I'd appreciate a sanity check on the below - thanks for your time.

I have 4 co-operating web apps, each of which extends their Controller 
servlet from a class in a common jar file (deployed in WEB-INF/lib with 
each app).

I would like to be able to 'tune' (outside the .war file) the logging 
levels, filenames etc.

Modifying the $JAVA_HOME/jre/lib/logging.properties file seems to make 
no difference (and seems as if it would be 'global').

I tried loading a log properties file using loadResourceAsStream in the 
Controller super-class - which seems better (in that it does some of the 
logging, but I can't seem to get it to log 'finer' than INFO). This also 
creates multiple log files (following the pattern %u.log as per JDK 
1.4 logging). I am happy to provide the properties file-name in the 
web.xml as an init parameter - seems sound.

Class Loading etc. :

For singletons (e.g. the Controller servlet super-class instances), I 
would assume that initialising the log as a static variable would result 
in different Factories for each app as it is a different class-loader.

When I have multiple instances of a class, however, (I'm using 
Command/Action pattern) should I use a static variable (write contention 
causes the multiple files mentioned above?)? Is there a distinction 
between logging to multiple instances of the  FileLogger as opposed to a 
single instance? Is there a reason to optimise the calls to get a Logger 
from the Factory - or is it OK to just grab one as and when?

Sorry for the length.

Regards

tim





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


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


RE: Logging help please

2003-06-05 Thread Phillip Qin
- Can you define different levels for different app in your
logging.properties?
- I don't think change properties on the fly will affect the loaded apps.
- I never have commons-logging working with my log4j.

-Original Message-
From: Tim Shaw [mailto:[EMAIL PROTECTED] 
Sent: June 4, 2003 2:23 PM
To: Tomcat Users List
Subject: Re: Logging help please

Sorry, but that was what I tried first. My problem seems to be with the 
mechanics of using JDK1.4 logging within Tomcat (with or without the 
commons wrapper) - I can get it to work fine outside (where I 'control' 
the VM, ClassLoader etc).

Thanks

tim

Phillip Qin wrote:
 Commons-logging is a wrapper. Try use log4j or jdk 1.4 logger for the
 underlying logger
 
 -Original Message-
 From: Tim Shaw [mailto:[EMAIL PROTECTED] 
 Sent: June 4, 2003 1:42 PM
 To: Tomcat Users List
 Subject: Logging help please
 
 Hi,
 
 Does anyone have a link to a FAQ or HOW-TO for using commons-logging 
 with Tomcat 4.1.x please? I've read the obvious ones at apache.org and 
 sun.com, and tried all sorts before having to back out and go to a 
 wrapper around ServletContext.log (which doesn't give me levels and 
 files etc). I was hoping to use the JDK14 Logger FileLogger.
 
 I'd appreciate a sanity check on the below - thanks for your time.
 
 I have 4 co-operating web apps, each of which extends their Controller 
 servlet from a class in a common jar file (deployed in WEB-INF/lib with 
 each app).
 
 I would like to be able to 'tune' (outside the .war file) the logging 
 levels, filenames etc.
 
 Modifying the $JAVA_HOME/jre/lib/logging.properties file seems to make 
 no difference (and seems as if it would be 'global').
 
 I tried loading a log properties file using loadResourceAsStream in the 
 Controller super-class - which seems better (in that it does some of the 
 logging, but I can't seem to get it to log 'finer' than INFO). This also 
 creates multiple log files (following the pattern %u.log as per JDK 
 1.4 logging). I am happy to provide the properties file-name in the 
 web.xml as an init parameter - seems sound.
 
 Class Loading etc. :
 
 For singletons (e.g. the Controller servlet super-class instances), I 
 would assume that initialising the log as a static variable would result 
 in different Factories for each app as it is a different class-loader.
 
 When I have multiple instances of a class, however, (I'm using 
 Command/Action pattern) should I use a static variable (write contention 
 causes the multiple files mentioned above?)? Is there a distinction 
 between logging to multiple instances of the  FileLogger as opposed to a 
 single instance? Is there a reason to optimise the calls to get a Logger 
 from the Factory - or is it OK to just grab one as and when?
 
 Sorry for the length.
 
 Regards
 
 tim
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



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


Tomcat redirect to 8080 Help please?

2003-03-31 Thread Taylor, Robert
When I browse to my Tomcat server examples from the web, I have no problems. When I 
browse to my WebApp and add the port 8080 I have no problems. But when I browse to my 
Web App without the 8080 the request does not seem to get redirected to Tomcat.
 
Why can I find the Tomcat Examples without 8080 but I need it for my App?
 
Please help
 
Rob

 


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

RE: Tomcat redirect to 8080 Help please?

2003-03-31 Thread Brian Menke
By default, tomcat serves EVERYTHING on port 8080. You can easily change it
to serve on port 80 so that you don't need to add any port numbers to your
url. You make this change in the tomcat_install_dir\conf\server.xml file.
Look for


   Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=8080 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8443
   acceptCount=100 debug=0 connectionTimeout=2
   useURIValidationHack=false disableUploadTimeout=true /
!-- Note : To disable connection timeouts, set connectionTimeout value
 to -1 --



8080 and change it to 80, restart your tomcat and it will work.


HOWEVER, you need to make sure you don't have any other web server running
on port 80 first. If you have apache or IIS installed, they usually install
on port 80 by default. If you have another web server using that port, you
will need to change it first, consult the applicable documentation. Of
course there are other ways to configure also, but that is a much longer
discussion.

-Brian

-Original Message-
From: Taylor, Robert [mailto:[EMAIL PROTECTED]
Sent: Monday, March 31, 2003 7:15 AM
To: Tomcat Users List
Subject: Tomcat redirect to 8080 Help please?


When I browse to my Tomcat server examples from the web, I have no problems.
When I browse to my WebApp and add the port 8080 I have no problems. But
when I browse to my Web App without the 8080 the request does not seem to
get redirected to Tomcat.

Why can I find the Tomcat Examples without 8080 but I need it for my App?

Please help

Rob






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



RE: Tomcat redirect to 8080 Help please?

2003-03-31 Thread Taylor, Robert
I am puzzeled by this behavior though.
 
I currently have IIS running on 80 and when I browse to http://IP/examples  It works 
properly, and Tomcat serves up the proper pages based on the Servlets. When I browse 
to http://IP/myApp Tomcat never gets the call. When I browse to 
http://IP:8080/myApp then I am forcing Tomcat to take the call.
 
Why does Tomcat get the call for examples (Without a port) but myApp does not?
 
I need to keep IIS running for my Static HTML sites, and I can see from Examples that 
Tomcat can get the requests necessary for examples. This makes me thing that I missed 
something in the configuration for myApp or Tomcat.
 
Any advice here would be much appreciated.

-Original Message- 
From: Brian Menke [mailto:[EMAIL PROTECTED] 
Sent: Mon 31/03/2003 10:43 
To: Tomcat Users List 
Cc: 
Subject: RE: Tomcat redirect to 8080 Help please?



By default, tomcat serves EVERYTHING on port 8080. You can easily change it
to serve on port 80 so that you don't need to add any port numbers to your
url. You make this change in the tomcat_install_dir\conf\server.xml file.
Look for


   Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=8080 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8443
   acceptCount=100 debug=0 connectionTimeout=2
   useURIValidationHack=false disableUploadTimeout=true /
!-- Note : To disable connection timeouts, set connectionTimeout value
 to -1 --



8080 and change it to 80, restart your tomcat and it will work.


HOWEVER, you need to make sure you don't have any other web server running
on port 80 first. If you have apache or IIS installed, they usually install
on port 80 by default. If you have another web server using that port, you
will need to change it first, consult the applicable documentation. Of
course there are other ways to configure also, but that is a much longer
discussion.

-Brian

-Original Message-
From: Taylor, Robert [mailto:[EMAIL PROTECTED]
Sent: Monday, March 31, 2003 7:15 AM
To: Tomcat Users List
Subject: Tomcat redirect to 8080 Help please?


When I browse to my Tomcat server examples from the web, I have no problems.
When I browse to my WebApp and add the port 8080 I have no problems. But
when I browse to my Web App without the 8080 the request does not seem to
get redirected to Tomcat.

Why can I find the Tomcat Examples without 8080 but I need it for my App?

Please help

Rob






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




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

Compiling Jsps With Tomcat (URGENT Help Please!)

2003-03-12 Thread Chayim I . Kirshen
All,

I've gone through the archive trying to find the solution to this one, and spent some 
time in th e irc room hunting.  Hopefully someone here can help me out.

OS: Linux and Solaris
jdk: 1.4.1_01
tomcat: 4.1.12 (but also tested with 4.1.18 and 4.1.21 beta)

I have a jsp file (that is valid and has already been tested) that I'm trying to 
compile to java code with jspc. I've tried doing the following:
./jspc test.jsp
./jspc -uriroot /tmp test.jsp

Both cases give me the following error (as does ant's jspc task):

Exception in thread main java.lang.ArrayIndexOutOfBoundsException: 1
at org.apache.jasper.JspC.locateUriRoot(JspC.java:616)
at org.apache.jasper.JspC.execute(JspC.java:747)
at org.apache.jasper.JspC.main(JspC.java:810

If I make the WEB-INF dir I get:

2003-03-12 03:08:30 - ERROR-the file '/test.jsp' generated the following general 
exception: java.lang.NullPointerException
error:null

Can someone please help?  I've tried everything I can think of and really need this.  
Oh, and please email me and the list since I'm not subscribed.

Thanks! 

--chayim

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



servlet not working on tomcat 4.1.18 - help please!!!

2003-02-11 Thread derrick . robertson
Im trying to migrate from tomcat 3.2.1 to tomcat 4.1.18.

Basically, Ive got the tomcat 4.1.18 to start up and the localhost:8080 runs
as do the examples such as jsp pages and servlet examples.

Ive added context to the server.xml like:
!--derrick added this line --
Contextpath=/intranettv 
docBase=D:\internettv\admin\public_site
debug=0
reloadable=true 
crossContext=false
/Context

In the folder public_site, i have a Web-inf folder with a web.xml in it.
My web.xml looks like this:
!DOCTYPE web-app 
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN 
http://java.sun.com/j2ee/dtds/web-app_2_2.dtd;

web-app

display-nameIntranetTV/display-name
description
This is the IntranetTV application with a source code organization
based on the recommendations of the Application Developer's Guide.
/description

servlet
servlet-nameIntranetTV/servlet-name
servlet-classcom.bt.intranettv.view.IntranetTV/servlet-class
init-param
param-nameroot/param-name
param-valueD:\intranettv\admin\public_site\/param-value
/init-param
load-on-startup-100/load-on-startup
/servlet

servlet-mapping
servlet-nameIntranetTV/servlet-name
url-pattern/IntranetTV/url-pattern
/servlet-mapping
/web-app

My problem is that when i then go to url localhost:8080/intranettv
the browser displays a 404 error - intranet. 
The requested resource (/intranet) is not available.

what have I done wrong, or what can i do to put it right??

(PS I have compiled the classes with java 1.2 but the tomcat is running with
java 1.4 - will this cause any problems - it should be backwards compatible)

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




RE: servlet not working on tomcat 4.1.18 - help please!!!

2003-02-11 Thread Larry Isaacs
Is it a typo that localhost:8080/intranettv doesn't match the
case in url-pattern/IntranetTV/url-pattern?  It needs
to in order to work.

Cheers,
Larry

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
 Sent: Tuesday, February 11, 2003 8:08 AM
 To: [EMAIL PROTECTED]
 Subject: servlet not working on tomcat 4.1.18 - help please!!!
 
 
 Im trying to migrate from tomcat 3.2.1 to tomcat 4.1.18.
 
 Basically, Ive got the tomcat 4.1.18 to start up and the 
 localhost:8080 runs
 as do the examples such as jsp pages and servlet examples.
 
 Ive added context to the server.xml like:
   !--derrick added this line --
   Contextpath=/intranettv 
   docBase=D:\internettv\admin\public_site
   debug=0
   reloadable=true 
   crossContext=false
   /Context
 
 In the folder public_site, i have a Web-inf folder with a 
 web.xml in it.
 My web.xml looks like this:
 !DOCTYPE web-app 
 PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN 
 http://java.sun.com/j2ee/dtds/web-app_2_2.dtd;
 
 web-app
 
 display-nameIntranetTV/display-name
 description
   This is the IntranetTV application with a source code 
 organization
   based on the recommendations of the Application 
 Developer's Guide.
 /description
 
 servlet
 servlet-nameIntranetTV/servlet-name
 
 servlet-classcom.bt.intranettv.view.IntranetTV/servlet-class
   init-param
 param-nameroot/param-name
 
 param-valueD:\intranettv\admin\public_site\/param-value
 /init-param
 load-on-startup-100/load-on-startup
 /servlet
 
 servlet-mapping
 servlet-nameIntranetTV/servlet-name
 url-pattern/IntranetTV/url-pattern
 /servlet-mapping
 /web-app
 
 My problem is that when i then go to url localhost:8080/intranettv
 the browser displays a 404 error - intranet. 
 The requested resource (/intranet) is not available.
 
 what have I done wrong, or what can i do to put it right??
 
 (PS I have compiled the classes with java 1.2 but the tomcat 
 is running with
 java 1.4 - will this cause any problems - it should be 
 backwards compatible)
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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




RE: servlet not working on tomcat 4.1.18 - help please!!!

2003-02-11 Thread derrick . robertson
I thought the intranettv is a path default (an alias) whereas the
IntranetTV is a classname and also the name that you are calling the
servlet.
Hence if i was to call a function in the servlet, would look something like:
http://localhost:8080/intranettv/IntranetTV?func=CreateEmbedVideoWindowarg=
942

Where intranettv is the path and IntranetTV is the servlet. (that was the
way it worked in tomcat 3.2.1. Please tell me if that is wrong!)

-Original Message-
From: Larry Isaacs [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 1:17 PM
To: Tomcat Users List
Subject: RE: servlet not working on tomcat 4.1.18 - help please!!!


Is it a typo that localhost:8080/intranettv doesn't match the
case in url-pattern/IntranetTV/url-pattern?  It needs
to in order to work.

Cheers,
Larry

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
 Sent: Tuesday, February 11, 2003 8:08 AM
 To: [EMAIL PROTECTED]
 Subject: servlet not working on tomcat 4.1.18 - help please!!!
 
 
 Im trying to migrate from tomcat 3.2.1 to tomcat 4.1.18.
 
 Basically, Ive got the tomcat 4.1.18 to start up and the 
 localhost:8080 runs
 as do the examples such as jsp pages and servlet examples.
 
 Ive added context to the server.xml like:
   !--derrick added this line --
   Contextpath=/intranettv 
   docBase=D:\internettv\admin\public_site
   debug=0
   reloadable=true 
   crossContext=false
   /Context
 
 In the folder public_site, i have a Web-inf folder with a 
 web.xml in it.
 My web.xml looks like this:
 !DOCTYPE web-app 
 PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN 
 http://java.sun.com/j2ee/dtds/web-app_2_2.dtd;
 
 web-app
 
 display-nameIntranetTV/display-name
 description
   This is the IntranetTV application with a source code 
 organization
   based on the recommendations of the Application 
 Developer's Guide.
 /description
 
 servlet
 servlet-nameIntranetTV/servlet-name
 
 servlet-classcom.bt.intranettv.view.IntranetTV/servlet-class
   init-param
 param-nameroot/param-name
 
 param-valueD:\intranettv\admin\public_site\/param-value
 /init-param
 load-on-startup-100/load-on-startup
 /servlet
 
 servlet-mapping
 servlet-nameIntranetTV/servlet-name
 url-pattern/IntranetTV/url-pattern
 /servlet-mapping
 /web-app
 
 My problem is that when i then go to url localhost:8080/intranettv
 the browser displays a 404 error - intranet. 
 The requested resource (/intranet) is not available.
 
 what have I done wrong, or what can i do to put it right??
 
 (PS I have compiled the classes with java 1.2 but the tomcat 
 is running with
 java 1.4 - will this cause any problems - it should be 
 backwards compatible)
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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


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




RE: servlet not working on tomcat 4.1.18 - help please!!!

2003-02-11 Thread Larry Isaacs
Sorry, didn't read your question carefully enough.  I need to
wake up more before trying to answer questions.

The browser response doesn't give you much of a clue as to
what happened in the server.  You should get better information
from the CATALINA_HOME/logs/localhost_log*.txt file.  Do you
see any clues there?

Larry

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
 Sent: Tuesday, February 11, 2003 8:21 AM
 To: [EMAIL PROTECTED]
 Subject: RE: servlet not working on tomcat 4.1.18 - help please!!!
 
 
 I thought the intranettv is a path default (an alias) whereas the
 IntranetTV is a classname and also the name that you are calling the
 servlet.
 Hence if i was to call a function in the servlet, would look 
 something like:
 http://localhost:8080/intranettv/IntranetTV?func=CreateEmbedVi
 deoWindowarg=
 942
 
 Where intranettv is the path and IntranetTV is the servlet. 
 (that was the
 way it worked in tomcat 3.2.1. Please tell me if that is wrong!)
 
 -Original Message-
 From: Larry Isaacs [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 11, 2003 1:17 PM
 To: Tomcat Users List
 Subject: RE: servlet not working on tomcat 4.1.18 - help please!!!
 
 
 Is it a typo that localhost:8080/intranettv doesn't match the
 case in url-pattern/IntranetTV/url-pattern?  It needs
 to in order to work.
 
 Cheers,
 Larry
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
  Sent: Tuesday, February 11, 2003 8:08 AM
  To: [EMAIL PROTECTED]
  Subject: servlet not working on tomcat 4.1.18 - help please!!!
  
  
  Im trying to migrate from tomcat 3.2.1 to tomcat 4.1.18.
  
  Basically, Ive got the tomcat 4.1.18 to start up and the 
  localhost:8080 runs
  as do the examples such as jsp pages and servlet examples.
  
  Ive added context to the server.xml like:
  !--derrick added this line --
  Contextpath=/intranettv 
  docBase=D:\internettv\admin\public_site
  debug=0
  reloadable=true 
  crossContext=false
  /Context
  
  In the folder public_site, i have a Web-inf folder with a 
  web.xml in it.
  My web.xml looks like this:
  !DOCTYPE web-app 
  PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN 
  http://java.sun.com/j2ee/dtds/web-app_2_2.dtd;
  
  web-app
  
  display-nameIntranetTV/display-name
  description
  This is the IntranetTV application with a source code 
  organization
  based on the recommendations of the Application 
  Developer's Guide.
  /description
  
  servlet
  servlet-nameIntranetTV/servlet-name
  
  servlet-classcom.bt.intranettv.view.IntranetTV/servlet-class
  init-param
  param-nameroot/param-name
  
  param-valueD:\intranettv\admin\public_site\/param-value
  /init-param
  load-on-startup-100/load-on-startup
  /servlet
  
  servlet-mapping
  servlet-nameIntranetTV/servlet-name
  url-pattern/IntranetTV/url-pattern
  /servlet-mapping
  /web-app
  
  My problem is that when i then go to url localhost:8080/intranettv
  the browser displays a 404 error - intranet. 
  The requested resource (/intranet) is not available.
  
  what have I done wrong, or what can i do to put it right??
  
  (PS I have compiled the classes with java 1.2 but the tomcat 
  is running with
  java 1.4 - will this cause any problems - it should be 
  backwards compatible)
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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




RE: servlet not working on tomcat 4.1.18 - help please!!!

2003-02-11 Thread derrick . robertson
Yes larry, your right but can you make any sense of this.
i purged the text file to get a fresh report. It looks like this.

Basically it looks like /intranettv has failed to start but ive no idea
why??
It doesnt seem to give you any reasons why!!

Catalina-localhost-log for this bootup!!

2003-02-11 13:28:13 StandardContext[/intranettv]: Resources start failed:
2003-02-11 13:28:13 StandardContext[/intranettv]: Context startup failed due
to previous errors
2003-02-11 13:28:13 StandardContext[/intranettv]: Exception during cleanup
after start failed
LifecycleException:  Container StandardContext[/intranettv] has not been
started
at
org.apache.catalina.core.StandardContext.stop(StandardContext.java:3643)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3621)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at
org.apache.catalina.core.StandardService.start(StandardService.java:497)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

2003-02-11 13:28:13 WebappLoader[]: Deploying class repositories to work
directory C:\jakarta-tomcat4.1\work\Standalone\localhost\_
2003-02-11 13:28:13 StandardManager[]: Seeding random number generator class
java.security.SecureRandom
2003-02-11 13:28:13 StandardManager[]: Seeding of random number generator
has been completed
2003-02-11 13:28:13 StandardWrapper[:default]: Loading container servlet
default
2003-02-11 13:28:13 StandardWrapper[:invoker]: Loading container servlet
invoker
2003-02-11 13:28:13 HostConfig[localhost]: Deploying configuration
descriptor admin.xml
2003-02-11 13:28:19 HostConfig[localhost]: Deploying configuration
descriptor manager.xml
2003-02-11 13:28:19 WebappLoader[/manager]: Deploying class repositories to
work directory C:\jakarta-tomcat4.1\work\Standalone\localhost\manager
2003-02-11 13:28:19 ContextConfig[/manager]: Configured an authenticator for
method BASIC
2003-02-11 13:28:19 StandardManager[/manager]: Seeding random number
generator class java.security.SecureRandom
2003-02-11 13:28:19 StandardManager[/manager]: Seeding of random number
generator has been completed
2003-02-11 13:28:19 StandardWrapper[/manager:default]: Loading container
servlet default
2003-02-11 13:28:19 StandardWrapper[/manager:invoker]: Loading container
servlet invoker
2003-02-11 13:28:19 HostConfig[localhost]: Deploying web application
directory tomcat-docs
2003-02-11 13:28:19 StandardHost[localhost]: Installing web application at
context path /tomcat-docs from URL
file:C:\jakarta-tomcat4.1\webapps\tomcat-docs
2003-02-11 13:28:19 WebappLoader[/tomcat-docs]: Deploying class repositories
to work directory C:\jakarta-tomcat4.1\work\Standalone\localhost\tomcat-docs
2003-02-11 13:28:20 StandardManager[/tomcat-docs]: Seeding random number
generator class java.security.SecureRandom
2003-02-11 13:28:20 StandardManager[/tomcat-docs]: Seeding of random number
generator has been completed
2003-02-11 13:28:20 StandardWrapper[/tomcat-docs:default]: Loading container
servlet default
2003-02-11 13:28:20 StandardWrapper[/tomcat-docs:invoker]: Loading container
servlet invoker
2003-02-11 13:28:20 HostConfig[localhost]: Deploying web application
directory webdav
2003-02-11 13:28:20 StandardHost[localhost]: Installing web application at
context path /webdav from URL file:C:\jakarta-tomcat4.1\webapps\webdav
2003-02-11 13:28:20 WebappLoader[/webdav]: Deploying class repositories to
work directory C:\jakarta-tomcat4.1\work\Standalone\localhost\webdav
2003-02-11 13:28:20 StandardManager[/webdav]: Seeding random number
generator class java.security.SecureRandom
2003-02-11 13:28:20 StandardManager[/webdav]: Seeding of random number
generator has been completed
2003-02-11 13:28:20 StandardWrapper[/webdav:default]: Loading container
servlet default
2003-02-11 13:28:20 StandardWrapper[/webdav:invoker]: Loading container
servlet invoker


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




RE: servlet not working on tomcat 4.1.18 - help please!!!

2003-02-11 Thread Keppel Yin
Hi,

Should you include a '/' in the url-pattern?
Could you try to remove it ?

Thanks,

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 8:21 AM
To: [EMAIL PROTECTED]
Subject: RE: servlet not working on tomcat 4.1.18 - help please!!!


I thought the intranettv is a path default (an alias) whereas the
IntranetTV is a classname and also the name that you are calling the
servlet.
Hence if i was to call a function in the servlet, would look something like:
http://localhost:8080/intranettv/IntranetTV?func=CreateEmbedVideoWindowarg=
942

Where intranettv is the path and IntranetTV is the servlet. (that was the
way it worked in tomcat 3.2.1. Please tell me if that is wrong!)

-Original Message-
From: Larry Isaacs [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 1:17 PM
To: Tomcat Users List
Subject: RE: servlet not working on tomcat 4.1.18 - help please!!!


Is it a typo that localhost:8080/intranettv doesn't match the
case in url-pattern/IntranetTV/url-pattern?  It needs
to in order to work.

Cheers,
Larry

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
 Sent: Tuesday, February 11, 2003 8:08 AM
 To: [EMAIL PROTECTED]
 Subject: servlet not working on tomcat 4.1.18 - help please!!!
 
 
 Im trying to migrate from tomcat 3.2.1 to tomcat 4.1.18.
 
 Basically, Ive got the tomcat 4.1.18 to start up and the 
 localhost:8080 runs
 as do the examples such as jsp pages and servlet examples.
 
 Ive added context to the server.xml like:
   !--derrick added this line --
   Contextpath=/intranettv 
   docBase=D:\internettv\admin\public_site
   debug=0
   reloadable=true 
   crossContext=false
   /Context
 
 In the folder public_site, i have a Web-inf folder with a 
 web.xml in it.
 My web.xml looks like this:
 !DOCTYPE web-app 
 PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN 
 http://java.sun.com/j2ee/dtds/web-app_2_2.dtd;
 
 web-app
 
 display-nameIntranetTV/display-name
 description
   This is the IntranetTV application with a source code 
 organization
   based on the recommendations of the Application 
 Developer's Guide.
 /description
 
 servlet
 servlet-nameIntranetTV/servlet-name
 
 servlet-classcom.bt.intranettv.view.IntranetTV/servlet-class
   init-param
 param-nameroot/param-name
 
 param-valueD:\intranettv\admin\public_site\/param-value
 /init-param
 load-on-startup-100/load-on-startup
 /servlet
 
 servlet-mapping
 servlet-nameIntranetTV/servlet-name
 url-pattern/IntranetTV/url-pattern
 /servlet-mapping
 /web-app
 
 My problem is that when i then go to url localhost:8080/intranettv
 the browser displays a 404 error - intranet. 
 The requested resource (/intranet) is not available.
 
 what have I done wrong, or what can i do to put it right??
 
 (PS I have compiled the classes with java 1.2 but the tomcat 
 is running with
 java 1.4 - will this cause any problems - it should be 
 backwards compatible)
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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


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

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




RE: servlet not working on tomcat 4.1.18 - help please!!!

2003-02-11 Thread derrick . robertson
It doesnt seem to make a difference.
Still not working?

2003-02-11 14:20:24 StandardContext[/intranettv]: Resources start failed:
2003-02-11 14:20:24 StandardContext[/intranettv]: Context startup failed due
to previous errors
2003-02-11 14:20:24 StandardContext[/intranettv]: Exception during cleanup
after start failed
LifecycleException:  Container StandardContext[/intranettv] has not been
started
at
org.apache.catalina.core.StandardContext.stop(StandardContext.java:3643)

This is the first couple of error lines reported by catalina log reports.
(Resources start failed)
Does anybody know how to get around this??? or even what makes it be thrown
would be nice!

-Original Message-
From: Keppel Yin [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 2:19 PM
To: Tomcat Users List
Subject: RE: servlet not working on tomcat 4.1.18 - help please!!!


Hi,

Should you include a '/' in the url-pattern?
Could you try to remove it ?

Thanks,

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 8:21 AM
To: [EMAIL PROTECTED]
Subject: RE: servlet not working on tomcat 4.1.18 - help please!!!


I thought the intranettv is a path default (an alias) whereas the
IntranetTV is a classname and also the name that you are calling the
servlet.
Hence if i was to call a function in the servlet, would look something like:
http://localhost:8080/intranettv/IntranetTV?func=CreateEmbedVideoWindowarg=
942

Where intranettv is the path and IntranetTV is the servlet. (that was the
way it worked in tomcat 3.2.1. Please tell me if that is wrong!)

-Original Message-
From: Larry Isaacs [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 1:17 PM
To: Tomcat Users List
Subject: RE: servlet not working on tomcat 4.1.18 - help please!!!


Is it a typo that localhost:8080/intranettv doesn't match the
case in url-pattern/IntranetTV/url-pattern?  It needs
to in order to work.

Cheers,
Larry

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
 Sent: Tuesday, February 11, 2003 8:08 AM
 To: [EMAIL PROTECTED]
 Subject: servlet not working on tomcat 4.1.18 - help please!!!
 
 
 Im trying to migrate from tomcat 3.2.1 to tomcat 4.1.18.
 
 Basically, Ive got the tomcat 4.1.18 to start up and the 
 localhost:8080 runs
 as do the examples such as jsp pages and servlet examples.
 
 Ive added context to the server.xml like:
   !--derrick added this line --
   Contextpath=/intranettv 
   docBase=D:\internettv\admin\public_site
   debug=0
   reloadable=true 
   crossContext=false
   /Context
 
 In the folder public_site, i have a Web-inf folder with a 
 web.xml in it.
 My web.xml looks like this:
 !DOCTYPE web-app 
 PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN 
 http://java.sun.com/j2ee/dtds/web-app_2_2.dtd;
 
 web-app
 
 display-nameIntranetTV/display-name
 description
   This is the IntranetTV application with a source code 
 organization
   based on the recommendations of the Application 
 Developer's Guide.
 /description
 
 servlet
 servlet-nameIntranetTV/servlet-name
 
 servlet-classcom.bt.intranettv.view.IntranetTV/servlet-class
   init-param
 param-nameroot/param-name
 
 param-valueD:\intranettv\admin\public_site\/param-value
 /init-param
 load-on-startup-100/load-on-startup
 /servlet
 
 servlet-mapping
 servlet-nameIntranetTV/servlet-name
 url-pattern/IntranetTV/url-pattern
 /servlet-mapping
 /web-app
 
 My problem is that when i then go to url localhost:8080/intranettv
 the browser displays a 404 error - intranet. 
 The requested resource (/intranet) is not available.
 
 what have I done wrong, or what can i do to put it right??
 
 (PS I have compiled the classes with java 1.2 but the tomcat 
 is running with
 java 1.4 - will this cause any problems - it should be 
 backwards compatible)
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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


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

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


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




RE: servlet not working on tomcat 4.1.18 - help please!!!

2003-02-11 Thread Keppel Yin
Could you check if all necessary files have been deployed correctly?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 9:39 AM
To: [EMAIL PROTECTED]
Subject: RE: servlet not working on tomcat 4.1.18 - help please!!!


It doesnt seem to make a difference.
Still not working?

2003-02-11 14:20:24 StandardContext[/intranettv]: Resources start failed:
2003-02-11 14:20:24 StandardContext[/intranettv]: Context startup failed due
to previous errors
2003-02-11 14:20:24 StandardContext[/intranettv]: Exception during cleanup
after start failed
LifecycleException:  Container StandardContext[/intranettv] has not been
started
at
org.apache.catalina.core.StandardContext.stop(StandardContext.java:3643)

This is the first couple of error lines reported by catalina log reports.
(Resources start failed)
Does anybody know how to get around this??? or even what makes it be thrown
would be nice!

-Original Message-
From: Keppel Yin [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 2:19 PM
To: Tomcat Users List
Subject: RE: servlet not working on tomcat 4.1.18 - help please!!!


Hi,

Should you include a '/' in the url-pattern?
Could you try to remove it ?

Thanks,

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 8:21 AM
To: [EMAIL PROTECTED]
Subject: RE: servlet not working on tomcat 4.1.18 - help please!!!


I thought the intranettv is a path default (an alias) whereas the
IntranetTV is a classname and also the name that you are calling the
servlet.
Hence if i was to call a function in the servlet, would look something like:
http://localhost:8080/intranettv/IntranetTV?func=CreateEmbedVideoWindowarg=
942

Where intranettv is the path and IntranetTV is the servlet. (that was the
way it worked in tomcat 3.2.1. Please tell me if that is wrong!)

-Original Message-
From: Larry Isaacs [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 1:17 PM
To: Tomcat Users List
Subject: RE: servlet not working on tomcat 4.1.18 - help please!!!


Is it a typo that localhost:8080/intranettv doesn't match the
case in url-pattern/IntranetTV/url-pattern?  It needs
to in order to work.

Cheers,
Larry

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
 Sent: Tuesday, February 11, 2003 8:08 AM
 To: [EMAIL PROTECTED]
 Subject: servlet not working on tomcat 4.1.18 - help please!!!
 
 
 Im trying to migrate from tomcat 3.2.1 to tomcat 4.1.18.
 
 Basically, Ive got the tomcat 4.1.18 to start up and the 
 localhost:8080 runs
 as do the examples such as jsp pages and servlet examples.
 
 Ive added context to the server.xml like:
   !--derrick added this line --
   Contextpath=/intranettv 
   docBase=D:\internettv\admin\public_site
   debug=0
   reloadable=true 
   crossContext=false
   /Context
 
 In the folder public_site, i have a Web-inf folder with a 
 web.xml in it.
 My web.xml looks like this:
 !DOCTYPE web-app 
 PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN 
 http://java.sun.com/j2ee/dtds/web-app_2_2.dtd;
 
 web-app
 
 display-nameIntranetTV/display-name
 description
   This is the IntranetTV application with a source code 
 organization
   based on the recommendations of the Application 
 Developer's Guide.
 /description
 
 servlet
 servlet-nameIntranetTV/servlet-name
 
 servlet-classcom.bt.intranettv.view.IntranetTV/servlet-class
   init-param
 param-nameroot/param-name
 
 param-valueD:\intranettv\admin\public_site\/param-value
 /init-param
 load-on-startup-100/load-on-startup
 /servlet
 
 servlet-mapping
 servlet-nameIntranetTV/servlet-name
 url-pattern/IntranetTV/url-pattern
 /servlet-mapping
 /web-app
 
 My problem is that when i then go to url localhost:8080/intranettv
 the browser displays a 404 error - intranet. 
 The requested resource (/intranet) is not available.
 
 what have I done wrong, or what can i do to put it right??
 
 (PS I have compiled the classes with java 1.2 but the tomcat 
 is running with
 java 1.4 - will this cause any problems - it should be 
 backwards compatible)
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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


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

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

Re: RE: servlet not working on tomcat 4.1.18 - help please!!!

2003-02-11 Thread jmong
i've actually seen this error with an improperly configured 
jboss+tomcat bundle.

the main idea is that a previous resource such as a database driver or 
jndi jar file failed to load due to one of many resources such as (a) 
improperly configured xml file, (b) file permissions, (c) not found in 
classpath (d) conflicting jars in classpath.

the only way i've been able to isolate is to turn on debugging to 
maximum and take add parts at a time until i can figure out what might 
be causing the problem.

i didn't really solve your initial problem.. but hopefully that helps 
you.

jan-michael

- Original Message -
From: [EMAIL PROTECTED]
Date: Tuesday, February 11, 2003 6:39 am
Subject: RE: servlet not working on tomcat 4.1.18 - help please!!!

 It doesnt seem to make a difference.
 Still not working?
 
 2003-02-11 14:20:24 StandardContext[/intranettv]: Resources start 
 failed:2003-02-11 14:20:24 StandardContext[/intranettv]: Context 
 startup failed due
 to previous errors
 2003-02-11 14:20:24 StandardContext[/intranettv]: Exception during 
 cleanupafter start failed
 LifecycleException:  Container StandardContext[/intranettv] has 
 not been
 started
at
 org.apache.catalina.core.StandardContext.stop
(StandardContext.java:3643)
 
 This is the first couple of error lines reported by catalina log 
 reports.(Resources start failed)
 Does anybody know how to get around this??? or even what makes it 
 be thrown
 would be nice!
 
 -Original Message-
 From: Keppel Yin [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 11, 2003 2:19 PM
 To: Tomcat Users List
 Subject: RE: servlet not working on tomcat 4.1.18 - help please!!!
 
 
 Hi,
 
 Should you include a '/' in the url-pattern?
 Could you try to remove it ?
 
 Thanks,
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 11, 2003 8:21 AM
 To: [EMAIL PROTECTED]
 Subject: RE: servlet not working on tomcat 4.1.18 - help please!!!
 
 
 I thought the intranettv is a path default (an alias) whereas the
 IntranetTV is a classname and also the name that you are calling the
 servlet.
 Hence if i was to call a function in the servlet, would look 
 something like:
 http://localhost:8080/intranettv/IntranetTV?
func=CreateEmbedVideoWindowarg=
 942
 
 Where intranettv is the path and IntranetTV is the servlet. (that 
 was the
 way it worked in tomcat 3.2.1. Please tell me if that is wrong!)
 
 -Original Message-
 From: Larry Isaacs [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 11, 2003 1:17 PM
 To: Tomcat Users List
 Subject: RE: servlet not working on tomcat 4.1.18 - help please!!!
 
 
 Is it a typo that localhost:8080/intranettv doesn't match the
 case in url-pattern/IntranetTV/url-pattern?  It needs
 to in order to work.
 
 Cheers,
 Larry
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
  Sent: Tuesday, February 11, 2003 8:08 AM
  To: [EMAIL PROTECTED]
  Subject: servlet not working on tomcat 4.1.18 - help please!!!
  
  
  Im trying to migrate from tomcat 3.2.1 to tomcat 4.1.18.
  
  Basically, Ive got the tomcat 4.1.18 to start up and the 
  localhost:8080 runs
  as do the examples such as jsp pages and servlet examples.
  
  Ive added context to the server.xml like:
  !--derrick added this line --
  Context path=/intranettv 
  docBase=D:\internettv\admin\public_site
  debug=0
   reloadable=true 
  crossContext=false
  /Context
  
  In the folder public_site, i have a Web-inf folder with a 
  web.xml in it.
  My web.xml looks like this:
  !DOCTYPE web-app 
  PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 
 2.2//EN 
   target=lhttp://java.sun.com/j2ee/dtds/web-app_2_2.dtd;
  
  web-app
  
  display-nameIntranetTV/display-name
  description
  This is the IntranetTV application with a source code 
  organization
  based on the recommendations of the Application 
  Developer's Guide.
  /description
  
  servlet
  servlet-nameIntranetTV/servlet-name
  
  servlet-classcom.bt.intranettv.view.IntranetTV/servlet-class
  init-param
  param-nameroot/param-name
  
  param-valueD:\intranettv\admin\public_site\/param-value
  /init-param
  load-on-startup-100/load-on-startup
  /servlet
  
  servlet-mapping
  servlet-nameIntranetTV/servlet-name
  url-pattern/IntranetTV/url-pattern
  /servlet-mapping
  /web-app
  
  My problem is that when i then go to url localhost:8080/intranettv
  the browser displays a 404 error - intranet. 
  The requested resource (/intranet) is not available.
  
  what have I done wrong, or what can i do to put it right??
  
  (PS I have compiled the classes with java 1.2 but the tomcat 
  is running with
  java 1.4 - will this cause any problems - it should be 
  backwards

Unable to connect to Sybase 11.9.2 server -Help please

2003-01-17 Thread Krishna_R . _Nagaraj




Hello Everyone,

I am trying to connect to sybase 11.9.2 database server. Has anyone
encountered this error. Your help on this will be greatly appreciated.

I have created a datasource in Tomcat 4.1.18.
I have the jconn2.jar file in webapps/ROOT/WEB_INF/classes/jconn2.jar
I have the jconn2.jar file in c:/tomcat4/commons/lib/jconn2.jar

However I get this error.

java.sql.SQLException: Cannot load JDBC driver class 'null'
  at
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:529)
  at
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:312)
  at SecurityCheckServlet.getConnection(SecurityCheckServlet.java:83)
  at SecurityCheckServlet.doGet(SecurityCheckServlet.java:37)

I have the following entries in the server.xml

 GlobalNamingResources
Environment name=simpleValue override=true
type=java.lang.Integer value=30/
Resource auth=Container description=User database that can be
updated and saved name=UserDatabase scope=Shareable
type=org.apache.catalina.UserDatabase/
ResourceParams name=UserDatabase
  parameter
namefactory/name
valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
  /parameter
  parameter
namepathname/name
valueconf/tomcat-users.xml/value
  /parameter
/ResourceParams

Resource name=jdbc/MBSDB scope=Shareable
type=javax.sql.DataSource/
ResourceParams name=jdbc/MBSDB
  parameter
nameusername/name
valuejgf/value
  /parameter
  parameter
namepassword/name
valuemypassword/value
  /parameter
 !-- parameter
namefactory/name
valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
  /parameter --
  parameter
namedriverClassName/name
valuecom.sybase.jdbc2.jdbc.SybDriver/value
  /parameter
  parameter
nameurl/name
valuejdbc:sybase:Tds:192.168.7.42:4100/mydatabase/value
  /parameter
  parameter
namemaxActive/name
value6/value
  /parameter
  parameter
namemaxWait/name
value5000/value
  /parameter
  parameter
namemaxIdle/name
value2/value
  /parameter
/ResourceParams
  /GlobalNamingResources

I have the following entries in the web.xml file

  resource-ref
  descriptionDB Connection/description
  res-ref-namejdbc/MBSDB/res-ref-name
  res-typejavax.sql.DataSource/res-type
  res-authContainer/res-auth
  /resource-ref


RE: HELP, PLEASE! Tomcat creates too many threads!

2003-01-10 Thread Joao Filipe Placido
]
at java.lang.Thread.sleep(Native Method)
at org.apache.catalina.session.StandardManager.threadSleep(Unknown
Source)
at org.apache.catalina.session.StandardManager.run(Unknown Source)
at java.lang.Thread.run(Thread.java:536)

StandardManager[/iepmms] daemon prio=1 tid=0x0x8386b80 nid=0x4163 waiting
on condition [4dd6c000..4dd6c840]
at java.lang.Thread.sleep(Native Method)
at org.apache.catalina.session.StandardManager.threadSleep(Unknown
Source)
at org.apache.catalina.session.StandardManager.run(Unknown Source)
at java.lang.Thread.run(Thread.java:536)

StandardManager[/statsmms] daemon prio=1 tid=0x0x82fd348 nid=0x4162
waiting on condition [4da1b000..4da1b840]
at java.lang.Thread.sleep(Native Method)
at org.apache.catalina.session.StandardManager.threadSleep(Unknown
Source)
at org.apache.catalina.session.StandardManager.run(Unknown Source)
at java.lang.Thread.run(Thread.java:536)

StandardManager[/MMS] daemon prio=1 tid=0x0x82c08a8 nid=0x4161 waiting on
condition [4d599000..4d599840]
at java.lang.Thread.sleep(Native Method)
at org.apache.catalina.session.StandardManager.threadSleep(Unknown
Source)
at org.apache.catalina.session.StandardManager.run(Unknown Source)
at java.lang.Thread.run(Thread.java:536)

StandardManager[/mmbox] daemon prio=1 tid=0x0x810c5b0 nid=0x4160 waiting
on condition [4d4ac000..4d4ac840]
at java.lang.Thread.sleep(Native Method)
at org.apache.catalina.session.StandardManager.threadSleep(Unknown
Source)
at org.apache.catalina.session.StandardManager.run(Unknown Source)
at java.lang.Thread.run(Thread.java:536)

StandardManager[/admin] daemon prio=1 tid=0x0x8730948 nid=0x415f waiting
on condition [4d151000..4d151840]
at java.lang.Thread.sleep(Native Method)
at org.apache.catalina.session.StandardManager.threadSleep(Unknown
Source)
at org.apache.catalina.session.StandardManager.run(Unknown Source)
at java.lang.Thread.run(Thread.java:536)

Signal Dispatcher daemon prio=1 tid=0x0x808d3d0 nid=0x415c waiting on
condition [0..0]

Finalizer daemon prio=1 tid=0x0x80867d8 nid=0x4159 in Object.wait()
[4c3f2000..4c3f2840]
at java.lang.Object.wait(Native Method)
- waiting on 0x446e3cb0 (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:111)
- locked 0x446e3cb0 (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:127)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)

Reference Handler daemon prio=1 tid=0x0x8085b90 nid=0x4158 in
Object.wait() [4c371000..4c371840]
at java.lang.Object.wait(Native Method)
- waiting on 0x446e3d18 (a java.lang.ref.Reference$Lock)
at java.lang.Object.wait(Object.java:426)
at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:113)
- locked 0x446e3d18 (a java.lang.ref.Reference$Lock)

main prio=1 tid=0x0x8051e68 nid=0x4155 runnable [bfffc000..bfffd580]
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:353)
- locked 0x44a91330 (a java.net.PlainSocketImpl)
at java.net.ServerSocket.implAccept(ServerSocket.java:439)
at java.net.ServerSocket.accept(ServerSocket.java:410)
at org.apache.catalina.core.StandardServer.await(Unknown Source)
at org.apache.catalina.startup.Catalina.start(Unknown Source)
at org.apache.catalina.startup.Catalina.execute(Unknown Source)
at org.apache.catalina.startup.Catalina.process(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Unknown Source)

VM Thread prio=1 tid=0x0x8082950 nid=0x4157 runnable

VM Periodic Task Thread prio=1 tid=0x0x808bf18 nid=0x415a waiting on
condition
Suspend Checker Thread prio=1 tid=0x0x808c968 nid=0x415b runnable







On Thu, 9 Jan 2003, Joao Filipe Placido wrote:

 Date: Thu, 9 Jan 2003 14:58:02 -
 From: Joao Filipe Placido [EMAIL PROTECTED]
 To: 'Craig R. McClanahan' [EMAIL PROTECTED],
  'Tomcat Users List' [EMAIL PROTECTED]
 Subject: RE: HELP, PLEASE! Tomcat creates too many threads!

 Hi,

 When using SingleThreadModel in the servlets, old tomcat threads never
die,
 and new threads are created for each request, so I have to restart tomcat
 once in a while. I'm

RE: HELP, PLEASE! Tomcat creates too many threads!

2003-01-09 Thread Joao Filipe Placido
Hi,

When using SingleThreadModel in the servlets, old tomcat threads never die,
and new threads are created for each request, so I have to restart tomcat
once in a while. I'm using linux and JDK 1.4.1 with Tomcat 4.1.12.

Anyone knows how to make old threads get killed?

Thank you.

Joao Filipe Placido

 -Original Message-
 From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
 Sent: terça-feira, 7 de Janeiro de 2003 20:28
 To: Tomcat Users List
 Subject: RE: HELP, PLEASE! Tomcat creates too many threads!
 
 
 
 On Tue, 7 Jan 2003, Denise Mangano wrote:
 
  Date: Tue, 7 Jan 2003 09:31:01 -0500
  From: Denise Mangano [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED]
  To: 'Tomcat Users List' [EMAIL PROTECTED]
  Subject: RE: HELP, PLEASE! Tomcat creates too many threads!
 
  I am curious about the same thing.  My app isn't fully up and
 operational
  yet so I do not know for sure if I suffer from the same problem, but I
 have
  noticed that while doing some testing new threads are getting started,
 and
  it usually takes a restart to get rid of them.
 
  I've seen this question posted a few times, but haven't noticed any
  'resolution' or possible solutions.  Can anyone recommend things to
 check
  for, settings to make, or perhaps any documentation on the issue?
 
  Is it possible that this could be a JSDK 1.4 issue?  It's the only
 common
  link I've noticed between my set up and other posters with this problem.
 
 
 Tomcat creates threads as follows:
 
 * One thread per Host element if you turn on autoDeploy -- should
   not have this on a production system.
 
 * One thread per Context element if you use reloading -- should
   not have this on a production system.
 
 * One thread per Context element for session expiration -- required.
 
 * One thread per processor in your Connector elements.
   At startup it will create the number of threads you configure
   for minProcessors.  The number will increase (up to the
   configured maxProcessors value) but never decrease.
 
 For most people, tuning maxProcessors is the easiest way to control the
 number of threads Tomcat creates, since that is where most of them come
 from.  Be aware, though, that reducing this number also limits the number
 of simultaneous requests your app will handle, since each simultaneous
 request requires a processor thread.
 
 If you're running behind Apache (via JK or JK2), you probably also want to
 comment out the stand-alone connector on port 8080.  Likewise, if you're
 running Tomcat standalone, you don't need the JK connector on 8009.
 
  Thanks :)
 
  Denise Mangano
  Help Desk Analyst
  Complus Data Innovations, Inc.
 
 
 Craig
 


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




RE: HELP, PLEASE! Tomcat creates too many threads!

2003-01-09 Thread Craig R. McClanahan


On Thu, 9 Jan 2003, Joao Filipe Placido wrote:

 Date: Thu, 9 Jan 2003 14:58:02 -
 From: Joao Filipe Placido [EMAIL PROTECTED]
 To: 'Craig R. McClanahan' [EMAIL PROTECTED],
  'Tomcat Users List' [EMAIL PROTECTED]
 Subject: RE: HELP, PLEASE! Tomcat creates too many threads!

 Hi,

 When using SingleThreadModel in the servlets, old tomcat threads never die,
 and new threads are created for each request, so I have to restart tomcat
 once in a while. I'm using linux and JDK 1.4.1 with Tomcat 4.1.12.

 Anyone knows how to make old threads get killed?


Using SingleThreadModel (by itself) has no impact on how many threads get
created -- it only affects how many instances of your servlet get created.
(Of course, I think using STM is a bad idea anyway, because it only gives
you a false sense of security about thread safety, but that's a different
issue.)

The only reasonable way to debug this kind of situation is to trigger a
thread dump after you've tried to shut Tomcat down, to see what the
remaining threads are actually doing.  If you're running Tomcat directly
from a console window on Unix, for example, you should be able to press
CTRL+\ (backslash) to trigger the dump.

 Thank you.

 Joao Filipe Placido

Craig


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




Help Please! Q: Perl Compatible Regular Expressions and urimapping

2003-01-09 Thread David Boyer
I'm using the 2.0.2 version of isapi_redirector2.dll which can use regex pattern 
matching, and it looks like it's based on PCRE 3.9.
 
I've been trying for most of the afternoon to successfully use regex's in my 
workers2.properties file, but I've had no success. Any thoughts on the PCRE that would 
match this uri:
 
/students/stuusername/servlet/servletname
 
stuusername will be one or more alpha-numeric characters
servletname will be one or more alpha-numeric characters
 
Basically, each of our students has a Tomcat-enabled home directory on our web server, 
and I'd like to come up with a single PCRE for use in workers2.properties that'll 
match any of their servlets. Using Tomcat 4.1.18 on W2K Server (IIS 5.0), JDK 1.4.1_01.




  1   2   3   >