[jboss-user] [Microcontainer] - Re: Using VFS to create a symbolic link from WEB-INF/lib
do-not-reply at jboss.com
Wed Apr 29 13:02:38 EDT 2009
Is there anyupdate on the TLD issue? is is being tracked in jira anywhere?
There are a few ways of getting around it right now, but they are a pain.
- getting the actual location of where the webapp is deployed and copying the file across. Finding the actual file location is a big pain requiring many levels of hacks.
- manipulating the web.xml metadata (easily done with a deployer) to redefine the JspServlet. This will override the JspServlet setting in jboss-web.deployer/web.xml (the shared web.xml file for all webapps). By setting a properly formatted <init-param> for the JspServlet you can make it add any tld from any specified jar with no requirements on it existing in the WEB-INF directory of your webapp.
| <description>JSTL standard tlds</description>
The problem here is that it does change the global JspServlet setting and all webapps will be able to find your tlds. And its probably not the safest operation to be overwriting the JspServlet like this, but it is possible.
It would be a lot easier if this default global web.xml was being handled by deployers and was being exported as an attachment that other deployers could use (like the current MergedJBossWebMetaDataDeployer).
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227616#4227616
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227616
More information about the jboss-user