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 2006/12/29 15:16:43 UTC
DO NOT REPLY [Bug 41260] New: - [Contribution] WebAppLoader and DirContext implementations for handling with expanded webapp during development
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=41260>.
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=41260
Summary: [Contribution] WebAppLoader and DirContext
implementations for handling with expanded webapp during
development
Product: Tomcat 6
Version: 6.0.2
Platform: Other
OS/Version: other
Status: NEW
Severity: enhancement
Priority: P2
Component: Catalina
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: fgiust@apache.org
Background:
Through the customization of the <Loader> and <Resources> elements in a context
definition tomcat allow to plug in custom implementations that can handle a
webapp also if not assembled in a standard way.
This is especially useful during development and I saw several implementations
of custom classloaders in the past (see for example the one used by the Sysdeo
tomcat plugin for Eclipse, or other implementations for eclipse Webtools
adapters): this makes possible for IDE users to develop and update classes
without the need for fully republishing jars in WEB-INF/lib. The addition of a
custom classloader also needs the modification of the server (or common) loader
in catalina.properties.
By using a custom DirContext is also possible to handle tld files that should be
placed in WEB-INF or in the META-INF directory of jars in the classpath by
"virtually publishing" them to the WEB-INF dir, making a webapp with unexpanded
jars behave like a standard one.
Since these "development versions" of a webapp classloader are fairly simple and
could be made very generic I think that it makes sense to add such a
customizable classloader directly to the tomcat distribution.
I have implemented two fairly simple extension that allow a "virtualClasspath"
element that can be used to configure additional classpath entries. This is a
sample context configuration:
<Context docBase="\webapps\mydocbase">
<Loader className="org.apache.catalina.loader.VirtualWebappLoader"
virtualClasspath="\dir\classes;\somedir\somejar.jar"/>
<Resources className="org.apache.naming.resources.VirtualDirContext"
virtualClasspath="\dir\classes;\somedir\somejar.jar"/>
</Context>
I would be happy to see them integrated in the tomcat codebase, so that any
development environment that needs a simplified way of loading webapps could
make use of it without having to reinvent them...
--
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 41260] - [Contribution] WebAppLoader and DirContext implementations for handling with expanded webapp during development
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=41260>.
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=41260
------- Additional Comments From fgiust@apache.org 2007-01-03 01:28 -------
Created an attachment (id=19343)
--> (http://issues.apache.org/bugzilla/attachment.cgi?id=19343&action=view)
VirtualDirContext enhancement
Thanks Tim, great news!
Could you please also apply this patch to the newly committed
VirtualDirContext? I just enhanced it to also handle tag files loaded from
META-INF/tags dirs of referenced libraries, in order to fully emulate an
assembled 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
DO NOT REPLY [Bug 41260] - [Contribution] WebAppLoader and DirContext implementations for handling with expanded webapp during development
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=41260>.
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=41260
------- Additional Comments From fgiust@apache.org 2006-12-29 06:18 -------
Created an attachment (id=19327)
--> (http://issues.apache.org/bugzilla/attachment.cgi?id=19327&action=view)
VirtualDirContext implementation (full file)
--
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 41260] - [Contribution] WebAppLoader and DirContext implementations for handling with expanded webapp during development
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=41260>.
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=41260
pombredanne@nexb.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pombredanne@nexb.com
--
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 41260] - [Contribution] WebAppLoader and DirContext implementations for handling with expanded webapp during development
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=41260>.
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=41260
funkman@joedog.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From funkman@joedog.org 2007-01-02 16:52 -------
Add as part of Committed revision 491995.
Thanks.
--
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 41260] - [Contribution] WebAppLoader and DirContext implementations for handling with expanded webapp during development
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=41260>.
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=41260
funkman@joedog.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |FIXED
------- Additional Comments From funkman@joedog.org 2007-01-03 04:56 -------
Done - Committed revision 492112.
Also added warning to javadocs that the files should be used for developmenet /
IDE's only, not for production.
--
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 41260] - [Contribution] WebAppLoader and DirContext implementations for handling with expanded webapp during development
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=41260>.
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=41260
------- Additional Comments From fgiust@apache.org 2006-12-29 06:17 -------
Created an attachment (id=19326)
--> (http://issues.apache.org/bugzilla/attachment.cgi?id=19326&action=view)
VirtualWebappLoader implementation (full file)
--
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 41260] - [Contribution] WebAppLoader and DirContext implementations for handling with expanded webapp during development
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=41260>.
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=41260
fgiust@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
--
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