From Tomcat 5.0.28 to 5.5.20

2006-10-10 Thread Roel De Nijs
Hi all,
 
i want to migrate from tomcat 5.0 to tomcat 5.5, but it's not going very 
smoothly. 
 
i noticed that the Logger-tag isn't valid anymore, so i deleted it out of 
server.xml and use log4j instead.
 
but i'm very confused with the contexts. i keep getting this 
warning/info-message: A docBase C:\Program Files\Apache Software 
Foundation\Tomcat AG4W\webapps\AquaGis4Web inside the host appBase has been 
specified, and will be ignored
i tried a lot of things, but none of the ones i tried let disappear that 
message. and if i succeed in letting disappear that message, i can't access my 
application anymore.
 
i have (like in tomcat 5.0.28) a xml-file under conf/[engine]/[host] with the 
name of my web-application.
content of the file:
?xml version='1.0' encoding='utf-8'?
!-- Tomcat AquaGis4Web Context --
Context path=/AquaGis4Web docBase=AquaGis4Web debug=2 reloadable=true 
crossContext=true
 ResourceLink name=jdbc/db global=jdbc/db type=java.lang.String /
/Context
 
my server.xml contains 2 global jndi resources (db to authenticate users, 
connection to sql-db) and 1 engine with 1 host. so it looks like this:
Server port=8005 shutdown=SHUTDOWN
 Listener className=org.apache.catalina.core.AprLifecycleListener /
 Listener className=org.apache.catalina.mbeans.ServerLifecycleListener /
 Listener 
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener /
 Listener 
className=org.apache.catalina.storeconfig.StoreConfigLifecycleListener/
 
 !-- Global JNDI resources --
 GlobalNamingResources
  !-- Editable user database that can also be used by UserDatabaseRealm to 
authenticate users --
  Resource
   name=UserDatabase
   auth=Container
   type=org.apache.catalina.UserDatabase
   description=User database that can be updated and saved
   factory=org.apache.catalina.users.MemoryUserDatabaseFactory
   pathname=conf/tomcat-users.xml
  /
 
  !-- database Tomcat 5.5 --
  Resource
   name=jdbc/db 
   auth=Container 
   type=javax.sql.DataSource
   driverClassName=net.sourceforge.jtds.jdbc.Driver
   url=***
   username=***
   password=***
   maxActive=20
   maxIdle=5
   maxWait=10
   removeAbandoned=true
   removeAbandonedTimeout=5
   logAbandoned=true
  /
 /GlobalNamingResources
 
 !-- Define the Tomcat Stand-Alone Service --
 Service name=Catalina
  !-- Define a non-SSL HTTP/1.1 Connector on port 8080 --
  Connector
   port=8080
   maxHttpHeaderSize=8192
   maxThreads=150
   minSpareThreads=25
   maxSpareThreads=75
   enableLookups=false
   redirectPort=8443
   acceptCount=100
   connectionTimeout=2
   disableUploadTimeout=true
  /
 
  !-- Define an AJP 1.3 Connector on port 8009 --
  Connector
   port=8009 
   enableLookups=false
   redirectPort=8443
   protocol=AJP/1.3
  /
 
  !-- Define the top level container in our container hierarchy --
  Engine name=Catalina defaultHost=localhost
   Realm 
className=org.apache.catalina.realm.UserDatabaseRealm
resourceName=UserDatabase
   /
 
   Host
name=localhost
appBase=webapps
unpackWARs=true
autoDeploy=true
xmlValidation=false
xmlNamespaceAware=false
   /
  /Engine
 /Service
/Server
 
which adjustments i have to do to get rid of that message but still be able to 
access my web-application.
 
any tips, hints, suggestions, remarks,... are welcome
thanks a lot for your time
 
With kind regards
Roel


**
Disclaimer: zie www.aquafin.be


RE: From Tomcat 5.0.28 to 5.5.20

2006-10-10 Thread Caldarale, Charles R
 From: Roel De Nijs [mailto:[EMAIL PROTECTED] 
 Subject: From Tomcat 5.0.28 to 5.5.20
  
 i want to migrate from tomcat 5.0 to tomcat 5.5, but it's not 
 going very smoothly. 
  
 but i'm very confused with the contexts.
  
 any tips, hints, suggestions, remarks

For a start, read the 5.5 doc for Context, in particular the
description of the path attribute:

The value of this field must not be set except when statically defining
a Context in server.xml, as it will be infered [sic] from the filenames
used for either the .xml context file or the docBase.

http://tomcat.apache.org/tomcat-5.5-doc/config/context.html

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Betr.: RE: From Tomcat 5.0.28 to 5.5.20

2006-10-10 Thread Roel De Nijs
OK, i did read it -- conclusion: you don't have to set it. so i adjusted my 
web-app.xml by deleting the path-attribute, resulting in:
 
?xml version='1.0' encoding='utf-8'?
!-- Tomcat AquaGis4Web Context --
Context displayName=AquaGis4Web docBase=AquaGis4Web debug=2 
reloadable=true crossContext=true
 ResourceLink name=jdbc/db global=jdbc/db type=java.lang.String /
/Context
 
but still getting the A docBase C:\Program Files\Apache Software 
Foundation\Tomcat AG4W\webapps\AquaGis4Web inside the host appBase has been 
specified, and will be ignored - message
 


 Caldarale, Charles R [EMAIL PROTECTED] 10/10/2006 15:45 

 From: Roel De Nijs [mailto:[EMAIL PROTECTED] 
 Subject: From Tomcat 5.0.28 to 5.5.20
  
 i want to migrate from tomcat 5.0 to tomcat 5.5, but it's not 
 going very smoothly. 
  
 but i'm very confused with the contexts.
  
 any tips, hints, suggestions, remarks

For a start, read the 5.5 doc for Context, in particular the
description of the path attribute:

The value of this field must not be set except when statically defining
a Context in server.xml, as it will be infered [sic] from the filenames
used for either the .xml context file or the docBase.

http://tomcat.apache.org/tomcat-5.5-doc/config/context.html

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




**
Disclaimer: zie www.aquafin.be


RE: Betr.: RE: From Tomcat 5.0.28 to 5.5.20

2006-10-10 Thread Caldarale, Charles R
 From: Roel De Nijs [mailto:[EMAIL PROTECTED] 
 Subject: Betr.: RE: From Tomcat 5.0.28 to 5.5.20
 
 OK, i did read it -- conclusion: you don't have to set it. 

Not that you don't have to set it, you MUST NOT set it.

 so i adjusted my web-app.xml by deleting the path-attribute, 
 resulting in:
  
 ?xml version='1.0' encoding='utf-8'?
 !-- Tomcat AquaGis4Web Context --
 Context displayName=AquaGis4Web docBase=AquaGis4Web 
 debug=2 reloadable=true crossContext=true
  ResourceLink name=jdbc/db global=jdbc/db 
 type=java.lang.String /
 /Context
  
 but still getting the A docBase C:\Program Files\Apache 
 Software Foundation\Tomcat AG4W\webapps\AquaGis4Web inside 
 the host appBase has been specified, and will be ignored - message

Where is the AquaGis4Web application deployed?  Since it appears to be
under Tomcat's normal webapps directory, you would normally put the
Context element in webapps/[appName]/META-INF/context.xml, rather than
conf/[engine]/[host]/[appname].xml.  Since you're choosing to place it
in the latter location but have the app deployed under webapps, the
docBase attribute is redundant and should be removed.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]