Re: [xwiki-users] Configuring XWiki as ROOT webapp

2009-08-24 Thread Trevor
Actually, I now have XWiki set up as the ROOT application, without the root.xml 
file.
All I did was rename webapps/xwiki to webapps/ROOT, restarted Tomcat and it 
worked. No root.xml file at all.

Trevor
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Configuring XWiki as ROOT webapp

2009-08-23 Thread clay

I've got my xwiki at http://localhost/bin/

My ROOT.xml context
1) omits the docbase attribute (it was the cause of a persistent gripe from
tomcat)
2) sets path to  (that is the option that got it done actually)

These were my guides:
tomcat/webapps/docs/config/context.html
tomcat/webapps/docs/config/host.html

My first try, changing the xwiki.cfg option
xwiki.webapppath=/
just caused me a lot of grief.


Trevor-3 wrote:
 
 I've been trying to get XWiki installed as the ROOT webapp so I can access
 it with localhost:8080 instead of localhost:8080/xwiki (referencing
 http://platform.xwiki.org/xwiki/bin/view/Main/ShortURLs).
 
 I had XWiki working properly first, following the original instructions
 (expanding the WAR to /usr/share/tomcat5.5/webapps/xwiki).
 
 Then I renamed xwiki to ROOT
 I created a ROOT.xml file in /usr/share/tomcat5.5//conf/Catalina/localhost
 as follows:
 
 Context path=/ docBase=/usr/share/tomcat5.5/webapps/ROOT 
 debug=0 privileged=false allowLinking=true
 /Context
 
 and restarted Tomcat.
 
 Now when I go to localhost:8080 I get 
 Connection Interrupted
 The connection to the server was reset while the page was loading.
 
 and get redirected to
 http://127.0.0.1:9080/xwiki/bin/Main/ThisWikiDoesNotExist
 
 Am I missing something?
 
 Thanks,
 Trevor
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 
 

-- 
View this message in context: 
http://n2.nabble.com/Configuring-XWiki-as-ROOT-webapp-tp3459179p3500583.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Configuring XWiki as ROOT webapp

2009-08-20 Thread Sergiu Dumitriu
Trevor wrote:
 A couple of things I just came across; I searched the archives to see if this 
 was a known issue, but didn't come up with anything.
 
 1.
 If I have XEM (1.7.3) running as the ROOT application in Tomcat 
 (webapps/ROOT), and a wiki named test: the test wiki works with 
 xwiki.virtual.usepath=0 at http://test.example.com:8180.
 
 But if xwiki.virtual.usepath=1 and I use 
 http://example.com:8180/xwiki/wiki/test the page layout is messed up and it 
 looks like bits of the wrong skin are applied (I get the doves in the header 
 image, for example), and the login page also appears *within* the comments 
 tab.  http://example.com:8180/xwiki (the XEM) works fine, though.  
 http://example.com:8180/wiki/test does not work either, it redirects to the 
 XEM login page at http://example.com:8180/bin/login/XWiki/XWikiLogin .
 
 If I change XEM to run as non-ROOT (webapps/xwiki), everything works fine 
 with xwiki.virtual.usepath=1 and http://example.com:8180/xwiki/wiki/test (no 
 doves in the header, grey sidebar instead of blue).
 
 I don't know if this is a bug, or if using virtual.usepath=1 does not work 
 with XWiki as a ROOT Tomcat application.

It's a bug. Please open an issue on jira.xwiki.org

 2.
 With XWiki set up as a non-ROOT application (webapps/xwiki) and 
 virtual.usepath=1, after restarting Tomcat, the first time I try to access 
 http://example.com:8180/xwiki/wiki/test I am redirected to 
 http://example.com:8180/xwiki/bin/login/XWiki/XWikiLogin, the login page for 
 XEM not the test wiki!  If I retype the address to the wiki again, it works 
 then.

This one looks like a bug, too.

-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Configuring XWiki as ROOT webapp

2009-08-19 Thread Trevor
On Tue, 18 Aug 2009 12:52:55 +0200 Thomas Mortagne wrote:

 Make sure your wikis descriptors are properly configured with the
 corresponding domain/alias names. See

You're correct, I hadn't set an alias for the IP I was using for the main wiki.
It now works just fine.

Thanks all for your help.

Trevor
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Configuring XWiki as ROOT webapp

2009-08-19 Thread Trevor
A couple of things I just came across; I searched the archives to see if this 
was a known issue, but didn't come up with anything.

1.
If I have XEM (1.7.3) running as the ROOT application in Tomcat (webapps/ROOT), 
and a wiki named test: the test wiki works with xwiki.virtual.usepath=0 at 
http://test.example.com:8180.

But if xwiki.virtual.usepath=1 and I use 
http://example.com:8180/xwiki/wiki/test the page layout is messed up and it 
looks like bits of the wrong skin are applied (I get the doves in the header 
image, for example), and the login page also appears *within* the comments tab. 
 http://example.com:8180/xwiki (the XEM) works fine, though.  
http://example.com:8180/wiki/test does not work either, it redirects to the XEM 
login page at http://example.com:8180/bin/login/XWiki/XWikiLogin .

If I change XEM to run as non-ROOT (webapps/xwiki), everything works fine with 
xwiki.virtual.usepath=1 and http://example.com:8180/xwiki/wiki/test (no doves 
in the header, grey sidebar instead of blue).

I don't know if this is a bug, or if using virtual.usepath=1 does not work with 
XWiki as a ROOT Tomcat application.

2.
With XWiki set up as a non-ROOT application (webapps/xwiki) and 
virtual.usepath=1, after restarting Tomcat, the first time I try to access 
http://example.com:8180/xwiki/wiki/test I am redirected to 
http://example.com:8180/xwiki/bin/login/XWiki/XWikiLogin, the login page for 
XEM not the test wiki!  If I retype the address to the wiki again, it works 
then.

Trevor
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Configuring XWiki as ROOT webapp

2009-08-18 Thread Thomas Mortagne
On Mon, Aug 17, 2009 at 20:03, Sergiu Dumitriuser...@xwiki.org wrote:
 On Mon, Aug 17, 2009 at 19:40, Trevor tr.w...@telus.net wrote:

 On Mon, 17 Aug 2009 19:29:03 +0300 Sergiu Dumitriu wrote:

  Are you running in virtual mode? (xwiki.virtual=1)

 Yes.
 I also now see the xwiki.virtual.redirect=http://127.0.0.1:9080...; line
 which corresponds to the error page I'm getting.


 Then you must add correct address alias entries for your wikis. Although,
 using IP addresses should always work, pointing to the main wiki. Thomas can
 provide further help with virtual wikis setup.

If you are redirected to what is configured in xwiki.virtual.redirec
property it mean you access XWiki. Sounds like you did not properly
configured you wikis descriptors (main wiki descriptor has to be
configured also in virtual mode depending of the form of your domain
name).

As Sergiu said, accessing XWiki with the IP always goes to the main
wiki by default.

Make sure your wikis descriptors are properly configured with the
corresponding domain/alias names. See
http://manager.xwiki.org/xwiki/bin/view/AdminGuide/ and
http://manager.xwiki.org/xwiki/bin/view/AdminGuide/AccessWiki to
better understand how XWiki decide which wiki to show based on the URL
and the configuration.





  You should put it on a pastebin and mail just the link to it.

 I'm guessing you're referring to an online repository of some kind?  I
 haven't used one before.


 http://pastebin.com/




 I also see a xwiki.webapppath= setting.  Should I set that to /?  (if
 the default is to use xwiki?)


 As the comment above it says, you should not need to change it. But yes, you
 can use /  just to be sure.
 --
 http://purl.org/net/sergiu
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users




-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Configuring XWiki as ROOT webapp

2009-08-17 Thread Trevor
On Mon, 17 Aug 2009 17:30:13 +0300 Sergiu Dumitriu wrote:

 Can you try with Context path= instead of path=/?

Same result.
http://127.0.0.1:9080/xwiki/bin/Main/ThisWikiDoesNotExist

What about privileged ?  Should that be false or true ?  allowLinking ?

Trevor
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Configuring XWiki as ROOT webapp

2009-08-17 Thread Trevor
Ok, I found out a little more.
It works fine when I browse to localhost:8180 from the machine that's running 
XWiki.
However, if I try it from another PC on the local network using 
192.168.1.196:8180 I get the Connection Interrupted error.

Do I have to bind something somewhere?

If requested I can attach a (large) log file with the exception.

Thanks again,
Trevor
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Configuring XWiki as ROOT webapp

2009-08-17 Thread Sergiu Dumitriu
Trevor wrote:
 Ok, I found out a little more.
 It works fine when I browse to localhost:8180 from the machine that's running 
 XWiki.
 However, if I try it from another PC on the local network using 
 192.168.1.196:8180 I get the Connection Interrupted error.
 
 Do I have to bind something somewhere?

Are you running in virtual mode? (xwiki.virtual=1)

 If requested I can attach a (large) log file with the exception.

You should put it on a pastebin and mail just the link to it.

-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Configuring XWiki as ROOT webapp

2009-08-17 Thread Trevor
On Mon, 17 Aug 2009 19:29:03 +0300 Sergiu Dumitriu wrote:

 Are you running in virtual mode? (xwiki.virtual=1)

Yes.
I also now see the xwiki.virtual.redirect=http://127.0.0.1:9080...; line which 
corresponds to the error page I'm getting.

 You should put it on a pastebin and mail just the link to it.

I'm guessing you're referring to an online repository of some kind?  I haven't 
used one before.

I also see a xwiki.webapppath= setting.  Should I set that to /?  (if the 
default is to use xwiki?)

Trevor

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users