You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2007/03/02 14:03:39 UTC
DO NOT REPLY [Bug 41746] New: - Default web application can not be changed
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41746>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=41746
Summary: Default web application can not be changed
Product: Tomcat 6
Version: unspecified
Platform: PC
OS/Version: Mac OS X 10.4
Status: NEW
Severity: normal
Priority: P1
Component: Catalina
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: smarjan@keenresearch.com
I have downloaded tomcat 6.0.10.
I added mysql-connector, log4j and commons-logging to lib directory.
My context.xml file, located in META-INF directory looks like this:
<Context path="" debug="5" reloadable="true" crossContext="true" docBase="lootist">
<Manager className="org.apache.catalina.session.PersistentManager"
saveOnRestart="false"/>
<Resource name="jdbc/lootist" auth="Container" type="javax.sql.DataSource"
maxActive="15" maxIdle="5" maxWait="19000" scope="Shareable"
username="lootist" password="lootist"
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/lootist?autoReconnect=true" />
<Resource name="repository/lootist" auth="Container"
type="com.lootist.webapp.beans.context.Repository"
scope="Shareable" factory="org.apache.naming.factory.BeanFactory"
productImageLocation="/lootist/data/repository/productimages"
productSecondaryImageLocation="/lootist/data/repository/productsecondaryimages"
lootistImageLocation="/lootist/data/repository/lootistimages"
/>
</Context>
When I deploy it on tomcat, the default web application is still ROOT webapp.
There are no warning/error messages (in all logs, including my application log)
except these:
Catalina.out:
Mar 2, 2007 1:51:21 PM org.apache.catalina.session.PersistentManagerBase start
SEVERE: No Store configured, persistence disabled
Mar 2, 2007 1:51:25 PM org.apache.catalina.startup.HostConfig deployDescriptor
WARNING: A docBase /Volumes/Work/apache-tomcat-6.0.10/webapps/lootist inside the
host appBase has been specified, and will be ignored
I haven't changed anything in tomcat config and I haven't deployed any other apps.
Note:
I tested the same app. couple of weeks ago on Apache Tomcat 6.0.7 and everything
worked ok.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 41746] - Default web application can not be changed
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41746>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=41746
------- Additional Comments From smarjan@keenresearch.com 2007-03-03 06:30 -------
> 1. define the <Context" in server.xml
This (need to define context in server.xml when trying to deploy application as
default one) isn't mentioned in your documentation describing the use of path
attribute (http://tomcat.apache.org/tomcat-6.0-doc/config/context.html), so this
could be a documentation bug.
>2. rename your app to ROOT
Consider the case when you want to change the root app - there is a loot of work
you need to do. This is more of a kludge then solution.
>3. define a TCHOME/conf/Catalina/localhost/ROOT.xml with a docbase pointing to
>your webapp
I like this solution, but I don't know how will this work with my "base"
context.xml located in META-INF folder. If I add a ROOT.xml = <Context path=""
docBase="/lootist"/> will this affect settings in context.xml(persistent
manager, logging, JNDI resources availability) ?
I think you should consider the case when user doesn't have access to server.xml
or the directory where context files are kept. Most of the companies we work for
have big concerns about security, and they allows us only the minimum access to
there servers and tomcat directories.
Proposal:
When new app is deployed, and if path="" element is found, Tomcat could create
ROOT.xml pointing to the docBase of previously mentioned app. If ROOT.xml
already exists, exception could be thrown.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 41746] - Default web application can not be changed
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41746>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=41746
------- Additional Comments From remm@apache.org 2007-03-02 07:06 -------
(In reply to comment #0)
> Note:
> I tested the same app. couple of weeks ago on Apache Tomcat 6.0.7 and everything
> worked ok.
Nice try :)
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 41746] - Default web application can not be changed
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41746>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=41746
fhanik@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
------- Additional Comments From fhanik@apache.org 2007-03-02 14:18 -------
Since 5.5, to create a path="" you have couple of different options
1. define the <Context" in server.xml
2. rename your app to ROOT
3. define a TCHOME/conf/Catalina/localhost/ROOT.xml with a docbase pointing to
your webapp
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org