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 2010/03/24 16:53:15 UTC

DO NOT REPLY [Bug 48979] New: defaultContextXml not set by Embedded.createContext

https://issues.apache.org/bugzilla/show_bug.cgi?id=48979

           Summary: defaultContextXml not set by Embedded.createContext
           Product: Tomcat 6
           Version: 6.0.26
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: mguillemot@yahoo.fr


Embedded.createContext returns a StandardContext but it doesn't configure
defaultContextXml on it. The result is that all mapping that are defined in
conf/web.xml are not available (like *-jsp) and need to be redefined in custom
web.xml. This forces having references to Tomcat internal classes in own
web.xml what is not good.

I think that conf/web.xml should be packaged in catalina jar and Embedded
should configure it defaultContextXml with it on the created contexts.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 48979] defaultContextXml not set by Embedded.createContext

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48979

--- Comment #2 from Marc Guillemot <mg...@yahoo.fr> 2010-03-24 16:20:07 UTC ---
May you tell in two words, why it is not correct rather than sending me to a
high volume mailing list that doesn't provide the possibility not to receive
the emails?

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 48979] defaultContextXml not set by Embedded.createContext

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48979

--- Comment #3 from Peter Rossbach <pr...@objektpark.de> 2010-03-26 10:42:21 UTC ---
Hi Marc,
are you setup the catalina.base system property correct at your env?

The Embedded class ist setup a ContextConfig Listener and the method
defaultWebConfig
configure the conf/web.xml file. You can also bundle your conf/web.xml or
web-embed.xml at your classpath.

Peter

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 48979] defaultContextXml not set by Embedded.createContext

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48979

--- Comment #4 from Marc Guillemot <mg...@yahoo.fr> 2010-03-26 10:47:49 UTC ---
Hi Peter,

I don't set catalina.base as I use it embedded (ie only the jars, no dependency
on a Tomcat installation on the file system). I know that it is possible to
provide default web.xml by myself but I think that it should already be done by
Tomcat's Embedded class to provide similar behaviour to "normal" Tomcat.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 48979] defaultContextXml not set by Embedded.createContext

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48979

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #1 from Mark Thomas <ma...@apache.org> 2010-03-24 15:59:09 UTC ---
Your analysis is not correct. The users list is the place to seek help.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org