Hi Lilianne,
I'm not sure that's the solution to your problem. I think you should
look into the "cross-context" feature of Tomcat (Thanks benjamin from
eXo for this info).
This is the way exo accessed portlet context from a webapp
In your code
ServletContext portletContext = portalContext.getContext("/" +
portletApplicationName);
In the server.xml
<Context path="/xwiki" docBase="content" debug="0"
reloadable="true"
crossContext="true"/>
It's the crossContext="true" that gives the right..
It's something like that that you should be looking for.
Ludovic
Lilianne E. Blaze a écrit :
Hello,
For a project I work on I need ability to change all (or most) of
XWiki directories, basically I need to:
1. Move everything from /WEB-INF/ to /WEB-INF/xwiki
2. Move everything from / to /xwiki
3. Everything in /WEB-INF/classes and /WEB-INF/lib can obviously
remain where it is.
4. Merge two web.xml
5. Normally XWiki would have "/" directory on "/xwiki" context. What
I
need is for it to have "/xwiki" directory on "/" context.
Why:
To be able to place XWiki on the same ServletContext as the main
project, while maintaining "separate" directory structure. I have to
use custom RightService and UserService which has to have access to
main project's data through the ServletContext, so both this project
and XWiki have to share the ServletContext, effectively being one
web-app from container's point of view.
How:
I was thinking about:
1. Modifying the default initialization so XWiki first tries to load
/WEB-INF/xwiki.cfg, then if it fails /WEB-INF/xwiki/xwiki.cfg.
2.1. Having the ability to specify each configuration file (like
hibernate.xml, velocity.properties) path in xwiki.cfg.
or
2.2. Doing the same for every configuration file, first trying to load
it from /WEB-INF/, then from /WEB-INF/xwiki/ (I think it's less prone
to errors)
3. Changing the top-level directories (like /templates/) paths from
xwiki.cfg
4. Changing the Struts paths (like /bin/)
Would such a functionality be welcome?
I think I can do much work on my own, but I'll probably need some
pointers now and then.
Greetings, Lilianne E. Blaze
------------------------------------------------------------------------
--
You receive this message as a subscriber of the xwiki-dev(a)objectweb.org mailing list.
To unsubscribe: mailto:xwiki-dev-unsubscribe@objectweb.org
For general help: mailto:sympa@objectweb.org?subject=help
ObjectWeb mailing lists service home page:
http://www.objectweb.org/wws
--
Ludovic Dubost
XPertNet:
http://www.xpertnet.fr/
Blog:
http://www.ludovic.org/blog/
XWiki:
http://www.xwiki.com
Skype: ldubost AIM: nvludo Yahoo: ludovic