Le 21 déc. 07 à 15:30, Sergiu Dumitriu a écrit :
Paul Libbrecht wrote:
A single attempt was pretty catastrophic with me
(on 1.1)... was this
working for your Karim-Pierre ? Which version ?
It should work fine for 1.1, too.
What exactly failed?
Actually, at the time, superadmin login failed... but after trying
again and a browser restart it worked as ROOT context... I'll use
that for now. Sorry for the wrong info.
That's good news.
I tried to take it further. So for Tomcat, it meant to me to add, in
the web.xml:
<servlet-mapping>
<servlet-name>default</servlet-name>
<url-pattern>/skins</url-pattern>
</servlet-mapping>
(on such for each subdirectory)
(and no servlet element with the corresponding name, it's inherited)
For the documentation entry, I think a good place would be the FAQ
(there's only one of these, right?) and one should really just put a
pointer to the thread for now, I think.
But I do not get it fully...
http://ocms.activemath.org/bin/view/Main/WebHome
displays fine but
http://ocms.activemath.org/Main/WebHome
or
http://ocms.activemath.org/WebHome
seem both to be styleless and the log displays
14:46:41,745 [http-51080-3] ERROR log.SimpleLog4JLogSystem -
Right side ($xwiki.null) of '!=' operation has null value. Operation
not possible. [line 9, column 12]
15:12:08,829 [http-51080-3] ERROR log.SimpleLog4JLogSystem -
Left side ($request.xpage) of '==' operation has null value. If a
reference, it may not be in the context. Operation not possible.
[line 156, column 21]
paul
>>> If you deploy XWiki as the ROOT app, you
must also change in
>>> WEB-INF/web.xml the <display-name> parameter to the empty
>>> string, like:
>>>
>>> <display-name></display-name>
>>>
>>> To get rid of /view/, in xwiki.cfg write
>>>
>>> xwiki.showviewaction=0
>>>
>>> To get rid of /bin/, for the moment you have to change web.xml in a
>>> container-dependent way, so that you map the container's default
>>> servlet
>>> to existing directories, like skins, yui, tinymce and
>>> wikieditor, copy
>>> the /bin mapping to also be activated for / (copy, don't change,
>>> so that
>>> /bin works, too), then add in xwiki.cfg
>>>
>>> xwiki.defaultactionpath=
>>>
>>> This will allow you to access documents with
server.com/Space/
>>> Document,
>>>
server.com/Space/ (pointing to Space.WebHome),
server.com/Document
>>> (pointing to Main.Document), and
server.com/ will show Main.WebHome
>>> without needing a redirect.
>>>
>>> As a bonus, these changes are backwards compatible, meaning that
>>> any
>>> currently working URL will also work with these changes
>>> performed, so
>>> you won't have any broken bookmarks.
>>>
>>> All these changes aren't completely tested, so there could be some
>>> things that aren't working, because of code that parses the URL and
>>> counts the number of slashes, or expects an exact URL pattern
>>> containing
>>> /bin/ or stuff like that. But my unconfirmed guess is that it
>>> should all
>>> work fine.
>>>
>>> If you want to have different action mappings, like
>>>
server.com/Space/Doc?action=edit, then there's more work, like
>>> writing a
>>> new URLFactory, changing struts-config.xml, and creating another
>>> RequestProcessor.
>>>