Re: [xwiki-users] Problem using Xwiki with Tomcat 6.0

2008-02-16 Thread Ngo Thi Hong Nga
I don't know why but this morning when re-loading this page, everything is
ok :)

On Feb 16, 2008 10:24 PM, Ngo Thi Hong Nga <[EMAIL PROTECTED]> wrote:

> Hi, when changing from Tomcat 5.5 to Tomcat 6.0, I met a problem when
> loading http://localhost:8080/xwiki/bin/view/Main/WebHome
> The page is displayed with 3 lines:
>
> #template("startpage.vm")
>  #template("contentview.vm") #template("docextra.vm")
> #template("endpage.vm")
>
> Anyone can tell me how to fix this problem ? Thank in advance.
>
>



-- 
Ngô Thị Hồng Nga
Home: 0511 3 242519
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] [Error]: Java heap memory error on adding large attachment

2008-02-16 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Pavel wrote:
> Here is my version of what happens in Q&A.
>
> * What does out of memory error mean?
>   - Java virtual machine (which runs tomcat which runs xwiki) has run 
> out of heap space and cannot allocate anything anymore.
>
> * Is it related to MySQL packet size?
>   - No
>
> * Why this error happens?
>   - Because application needs more memory than JMV is allowed to use.
>
> * How is that related to attachments?
>   - The way xwiki handles attachments is, well, not perfect.
>   Somewhat related thread is 
> http://lists.xwiki.org/pipermail/users/2007-November/009362.html
>
> * So what can you do?
>   - a) Use -Xms and -Xmx java parameters to increase heap size.
>   - b) Implement and contribute to XWiki effective attachment handling.
>
> * What are the -Xms and -Xmx params?
>   - -Xms tells java the initial heap size, -Xmx controls max size. The 
> latter is of special interest in this case and can be increased.
>
> Pavel

Hi Pavel,

Do you know if this heap size issue happens just working with Tomcat as 
servlet container or it is generalizable to other application servers? 
It could be advisable clarify that this FAQ applies just to XWiki 
running on a Tomcat/MySQL server.

I would add a link to "heap", something as 
http://dictionary.zdnet.com/definition/heap.html. I am not a programmer, 
so I do need this kind of help to know what is happening with my 
installation :-)

As per the CATALINA_OPTS or JAVA_OPTS variables, it would be great to 
have a confirmation, but by tracking their values along catalina.sh and 
startup.sh I reach the same conclusion you presented. FAQs are wiki 
entries, so anybody can modify them! I would add some
sample lines as (this apply to Unix-based systems, could you add that 
applying to Windows ones?)...

* to be included in a script calling startup.sh: both variables will be 
passed in to the startup process.

export CATALINA_OPTS="-Xmx512m -Xms512m"
export JAVA_OPTS="-Xmx512m -Xms512m"

I am guessing it is of course possible to add this values within 
catanina.sh or startup.sh, but I do prefer don't touch these files if 
possible.

Cheers,

Ricardo


-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] [Error]: Java heap memory error on adding large attachment

2008-02-16 Thread Pavel
Here is my version of what happens in Q&A.

* What does out of memory error mean?
  - Java virtual machine (which runs tomcat which runs xwiki) has run out of
heap space and cannot allocate anything anymore.

* Is it related to MySQL packet size?
  - No

* Why this error happens?
  - Because application needs more memory than JMV is allowed to use.

* How is that related to attachments?
  - The way xwiki handles attachments is, well, not perfect.
  Somewhat related thread is
http://lists.xwiki.org/pipermail/users/2007-November/009362.html

* So what can you do?
  - a) Use -Xms and -Xmx java parameters to increase heap size.
  - b) Implement and contribute to XWiki effective attachment handling.

* What are the -Xms and -Xmx params?
  - -Xms tells java the initial heap size, -Xmx controls max size. The
latter is of special interest in this case and can be increased.

Pavel

On Feb 16, 2008 4:24 PM, <[EMAIL PROTECTED]> wrote:

> Ricardo Rodriguez wrote:
>
> >>[EMAIL PROTECTED] wrote:
> >> An MS Word document.
> >>
> >> The error also happened with a 6.5 MB zip file - so the xwiki limit
> of
> >> 10MB may not be the issue (although documents larger than the alleged
> >> 1MB MySQL limit have been successfully uploaded).
>
> >Thus, the problem may arise from the amount of memory available for
> >Java. What servlet container are you using? I've seen this error here
> >running Tomcat. You can increase this amount by passing this parameter
> >"-Xmx256m -Xms256m" (in this case 256Mb will be the new amount of
> >available memory) at startup time.
>
> I'll have to check with the lab folks - I believe they started with the
> 1.2M2 Windows complete build, then upgraded to 1.2RC2.
>
> I will let you know after I have heard from them.
>
> I wanted to make the changes one step at a time to isolate the root
> cause.
>
> >So, you have to shutdown your servlet container, modify some script to
> >startup.sh, catalina.sh or whatever your are using to launch Tomcat, to
>
> >>add this paramenters to CATALINA_OPTS or JAVA_OPTS. I have not a clear
>
> >idea about what is the right variable to be modified. Any feedback will
>
> >be really welcome.
>
> > Here is the script I am using here to start Tomcat:
>
> >mire:/home/webmaster/bin # cat start_tomcat6
> >#!/bin/sh
> >export CATALINA_HOME=/usr/share/tomcat-6.0.10
> >export JAVA_HOME=/usr/share/java/jre-1.6.0_01
> >export JRE_HOME=/usr/share/java/jre-1.6.0_01
> >export CATALINA_OPTS="-Xmx512m -Xms512m"
> >export JAVA_OPTS="-Xmx512m -Xms512m"
> >$CATALINA_HOME/bin/startup.sh
>
> >As per your question about the need of restarting XWiki so that the new
>
> >configuration values become effective. Yes, this is required. xwiki.cfg
>
> >is read at deployment time. So if you have any utility that allow you
> to
> >restart just one application, you are a lucky person :-) If you have
> not
> >it, just restart the servlet container.
>
> I expected that to be the case - and the FAQ should be updated to
> reflect that
> (I didn't consider myself as authoritative, so I didn't want to edit the
> entry).
>
> I would also suggest that the error code (Java ) be added to the
> text as well.
>
> >I am sure there are people out there with a much more in depth
> knowledge
> >about this issue. But this has helped me. I hope it could be useful for
>
> >you as well.
>
> Perhaps, but by speaking, you're the most effective person ;-)
>
> I'll update you (here) after we apply the changes and test again.
>
> Thanks for your help!
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] [Error]: Java heap memory error on adding large attachment

2008-02-16 Thread Pavel
I just looked at catalina.bat and it looks like there is no difference in
how these used - both eventually get into java command line.
Perhaps tomcat guys wanted to keep java and catalina params logically
separated.

Pavel

On Feb 16, 2008 4:38 PM, [Ricardo Rodriguez] Your EPEC Network ICT Team <
[EMAIL PROTECTED]> wrote:

> [EMAIL PROTECTED] wrote:
> > I'll update you (here) after we apply the changes and test again.
> >
> > Thanks for your help!
>
> Once you get it running I think we need to hear from anybody else about
> the difference between CATALINA_OPTS and JAVA_OPTS to create a
> reasonable FAQ entry applying to Tomcat.
>
> Greetings,
>
> --
> Ricardo Rodríguez
> Your EPEC Network ICT Team
>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Import of XAR: Java Heap Space Out Of Memory Exception in 1.2

2008-02-16 Thread Antonio Goncalves
Hi everybody,

I'm bringing this issue back but it still doesn't work. This is what I'm
doing :

I'm starting everything from scratch : new database completly empty and a
fresh XWiki 1.2.2.7518 on a fresh Tomcat 5.5.26 and a 5.0.41 MySQL (with a
5.1.5 driver). Just after installing XWiki, I try to import my 6Mb xar file
that I've exported from a XWiki 1.0. I select my file, click on Upload and I
end up with a "Java Heap Space Out Of Memory Exception" without any stack
trace. Notice that it breaks even before showing the page allowing me to
select the file.

Here is how I've checked that MySQL could handle 6Mb : SHOW SESSION
VARIABLES like max_allowed_packet';  and  SHOW GLOBAL VARIABLES like
'max_allowed_packet';  Both results are 16Mb (max_allowed_packet =
16776192). I don't know how to get the value max_upload_size from
XWiki.Preferences but following what Vincent said and
http://jira.xwiki.org/jira/browse/XE-145  it should be set to 32Mb. In terms
of size (MySQL and XWiki) it looks like it can handle 6Mb.

I have several archives. So I've tried with a 2.2Mb xar file. It also breaks
but the behaviour is different. After clicking on upload, XWiki shows me the
page allowing me to choose from a file (this page doesn't even appear with
the 6Mb file). But then it breaks with a more explicit stack trace (as
follow).

Any idea ?
Antonio

Error number 0 in 11: Uncaught exception
Wrapped Exception: Java heap spacecom.xpn.xwiki.XWikiException: Error
number 0 in 11: Uncaught exception
Wrapped Exception: Java heap space
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:164)
at 
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at 
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Thread.java:595)


Wrapped Exception:
java.lang.OutOfMemoryError: Java heap space
at 
java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:99)
at 
java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:393)
at java.lang.StringBuffer.append(StringBuffer.java:225)
at org.suigeneris.jrcs.rcs.impl.Node.toText(Node.java:720)
at org.suigeneris.jrcs.rcs.Archive.toString(Archive.java:914)
at org.suigeneris.jrcs.rcs.Archive.toString(Archive.java:686)
at org.suigeneris.jrcs.rcs.Archive.toByteArray(Archive.java:723)
at 
com.xpn.xwiki.doc.XWikiAttachmentArchive.getArchive(XWikiAttachmentArchive.java:79)
at 
com.xpn.xwiki.doc.XWikiAttachmentArchive.getArchive(XWikiAttachmentArchive.java:68)
at com.xpn.xwiki.doc.XWikiAttachment.toXML(XWikiAttachment.java:309)
at 
com.xpn.xwiki.doc.XWikiDocument.toXMLDocument(XWikiDocument.java:2191)
at com.xpn.xwiki.doc.XWikiDocument.toXML(XWikiDocument.java:2086)
at com.xpn.xwiki.doc.XWikiDocument.toFullXML(XWikiDocument.java:2055)
at 
com.xpn.xwiki.doc.XWikiDeletedDocument.setDocument(XWikiDeletedDocument.java:182)
at com.xpn.xwiki.doc.XWikiDeletedDocument.(XWikiDeletedDocumen

Re: [xwiki-users] Import of XAR: Java Heap Space Out Of Memory Exception in 1.2

2008-02-16 Thread Antonio Goncalves
Ok, I've found the problem. Nothing to do with XWiki or MySQL, the heap of
Tomcat was too low. I've increased the -Xmx and it works fine.

Antonio


2008/2/16, Antonio Goncalves <[EMAIL PROTECTED]>:
>
> Hi everybody,
>
> I'm bringing this issue back but it still doesn't work. This is what I'm
> doing :
>
> I'm starting everything from scratch : new database completly empty and a
> fresh XWiki 1.2.2.7518 on a fresh Tomcat 5.5.26 and a 5.0.41 MySQL (with a
> 5.1.5 driver). Just after installing XWiki, I try to import my 6Mb xar
> file that I've exported from a XWiki 1.0. I select my file, click on
> Upload and I end up with a "Java Heap Space Out Of Memory Exception" without
> any stack trace. Notice that it breaks even before showing the page allowing
> me to select the file.
>
> Here is how I've checked that MySQL could handle 6Mb : SHOW SESSION
> VARIABLES like max_allowed_packet';  and  SHOW GLOBAL VARIABLES like
> 'max_allowed_packet';  Both results are 16Mb (max_allowed_packet =
> 16776192). I don't know how to get the value max_upload_size from
> XWiki.Preferences but following what Vincent said and
> http://jira.xwiki.org/jira/browse/XE-145  it should be set to 32Mb. In
> terms of size (MySQL and XWiki) it looks like it can handle 6Mb.
>
> I have several archives. So I've tried with a 2.2Mb xar file. It also
> breaks but the behaviour is different. After clicking on upload, XWiki shows
> me the page allowing me to choose from a file (this page doesn't even appear
> with the 6Mb file). But then it breaks with a more explicit stack trace (as
> follow).
>
> Any idea ?
> Antonio
>
> Error number 0 in 11: Uncaught exception
> Wrapped Exception: Java heap spacecom.xpn.xwiki.XWikiException: Error number 
> 0 in 11: Uncaught exception
> Wrapped Exception: Java heap space
>   at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:164)
>   at 
> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
>   at 
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
>   at 
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
>   at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>   at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
>   at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
>   at 
> com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117)
>   at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
>   at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
>   at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>   at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
>   at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>   at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
>   at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
>   at 
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
>   at 
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
>   at 
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
>   at 
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
>   at 
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
>   at 
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
>   at java.lang.Thread.run(Thread.java:595)
>
>
> Wrapped Exception:
> java.lang.OutOfMemoryError: Java heap space
>   at 
> java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:99)
>   at 
> java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:393)
>   at java.lang.StringBuffer.append(StringBuffer.java:225)
>   at org.suigeneris.jrcs.rcs.impl.Node.toText(Node.java:720)
>   at org.suigeneris.jrcs.rcs.Archive.toString(Archive.java:914)
>   at org.suigeneris.jrcs.rcs.Archive.toString(Archive.java:686)
>   at org.suigeneris.jrcs.rcs.Archive.toByteArray(Archive.java:723)
>   at 
> com.xpn.xwiki.doc.XWikiAttachmentArchive.getArchive(XWikiAttachmentArchive.java:79)
>   at 
> com.xpn.xwiki.doc.XWikiAttachmentArchive.getArchive(XWikiAttachmentArchive.java:68)
>   at com.xpn.xwiki.doc.XWikiAttachment.toXML(XWikiAttachment.java:309)
>   at 
> com.xpn.xwiki.doc.XWikiDocument.toXMLDocument(XWikiDocument.java:2191

[xwiki-users] Problem using Xwiki with Tomcat 6.0

2008-02-16 Thread Ngo Thi Hong Nga
Hi, when changing from Tomcat 5.5 to Tomcat 6.0, I met a problem when
loading http://localhost:8080/xwiki/bin/view/Main/WebHome
The page is displayed with 3 lines:

#template("startpage.vm")
 #template("contentview.vm") #template("docextra.vm")
#template("endpage.vm")

Anyone can tell me how to fix this problem ? Thank in advance.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] [Error]: Java heap memory error on adding large attachment

2008-02-16 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
[EMAIL PROTECTED] wrote:
> I'll update you (here) after we apply the changes and test again.
>
> Thanks for your help!

Once you get it running I think we need to hear from anybody else about 
the difference between CATALINA_OPTS and JAVA_OPTS to create a 
reasonable FAQ entry applying to Tomcat.

Greetings,

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] [Error]: Java heap memory error on adding large attachment

2008-02-16 Thread Dowson_Jim
Ricardo Rodriguez wrote:

>>[EMAIL PROTECTED] wrote:
>> An MS Word document. 
>>
>> The error also happened with a 6.5 MB zip file - so the xwiki limit
of
>> 10MB may not be the issue (although documents larger than the alleged
>> 1MB MySQL limit have been successfully uploaded). 

>Thus, the problem may arise from the amount of memory available for 
>Java. What servlet container are you using? I've seen this error here 
>running Tomcat. You can increase this amount by passing this parameter 
>"-Xmx256m -Xms256m" (in this case 256Mb will be the new amount of 
>available memory) at startup time.

I'll have to check with the lab folks - I believe they started with the
1.2M2 Windows complete build, then upgraded to 1.2RC2.

I will let you know after I have heard from them. 

I wanted to make the changes one step at a time to isolate the root
cause.

>So, you have to shutdown your servlet container, modify some script to 
>startup.sh, catalina.sh or whatever your are using to launch Tomcat, to

>>add this paramenters to CATALINA_OPTS or JAVA_OPTS. I have not a clear

>idea about what is the right variable to be modified. Any feedback will

>be really welcome.

> Here is the script I am using here to start Tomcat:

>mire:/home/webmaster/bin # cat start_tomcat6
>#!/bin/sh
>export CATALINA_HOME=/usr/share/tomcat-6.0.10
>export JAVA_HOME=/usr/share/java/jre-1.6.0_01
>export JRE_HOME=/usr/share/java/jre-1.6.0_01
>export CATALINA_OPTS="-Xmx512m -Xms512m"
>export JAVA_OPTS="-Xmx512m -Xms512m"
>$CATALINA_HOME/bin/startup.sh

>As per your question about the need of restarting XWiki so that the new

>configuration values become effective. Yes, this is required. xwiki.cfg

>is read at deployment time. So if you have any utility that allow you
to 
>restart just one application, you are a lucky person :-) If you have
not 
>it, just restart the servlet container.

I expected that to be the case - and the FAQ should be updated to
reflect that 
(I didn't consider myself as authoritative, so I didn't want to edit the
entry). 

I would also suggest that the error code (Java ) be added to the
text as well.

>I am sure there are people out there with a much more in depth
knowledge 
>about this issue. But this has helped me. I hope it could be useful for

>you as well.

Perhaps, but by speaking, you're the most effective person ;-)

I'll update you (here) after we apply the changes and test again.

Thanks for your help!
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] passing username and password with the URL

2008-02-16 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
[Ricardo Rodriguez] Your EPEC Network ICT Team wrote:
> Hi all,
>
> We are using XWiki to share/develop R code.
>
> R has a source() command that can call a remote web page where the code 
> is stored and execute it locally. We can figure out more sophisticated 
> ways of getting R involved, but as an starting point it could be enough 
> to be able to call restricted access XWiki URLs from local R 
> installations with the source() command. Thus, I think that we need to 
> send to XWiki the username and the password together with this URL.
>
> Please, could you now if this is possible and point me in the right 
> direction? Thanks!
>
> Best regards,
>
> Ricardo
>
>   
Hi,

Following some advise from people in the R r-help e-mail list and from 
some other threads here I can read the following authentication header:

--
http://MyHostName/xwiki/bin/loginsubmit/XWiki/XWikiLogin

POST /xwiki/bin/loginsubmit/XWiki/XWikiLogin HTTP/1.1
Host: MyHostName
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; 
rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12
Accept: 
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en,en-us;q=0.7,es-es;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: UTF-8,*
Keep-Alive: 300
Connection: keep-alive
Referer: 
http://MyHostName/xwiki/bin/login/XWiki/XWikiLogin?xredirect=http%3A%2F%2FMyHostName%2Fxwiki%2Fbin%2Fview%2FMain%2F
Cookie: JSESSIONID=A89FBB1701789DE208FFDBD732E9EFFD; style=default
Content-Type: application/x-www-form-urlencoded
Content-Length: 146
xredirect=http%3A%2F%2FMyHostName%2Fxwiki%2Fbin%2Fview%2FMain%2F&j_username=x&j_password=x&j_rememberme=true
HTTP/1.x 302 Moved Temporarily
Server: Apache-Coyote/1.1
Set-Cookie: username=x==; Expires=Sun, 02-Mar-2008 11:26:15 GMT; 
Path=/
Set-Cookie: password=x==; Expires=Sun, 02-Mar-2008 11:26:15 GMT; 
Path=/
Set-Cookie: rememberme=true; Expires=Sun, 02-Mar-2008 11:26:15 GMT; Path=/
Set-Cookie: validation=2ea9cbeb40bdafc8314b50f18b440e30; Expires=Sun, 
02-Mar-2008 11:26:15 GMT; Path=/
Location: http://MyHostName/xwiki/bin/view/Main/
Content-Type: text/html;charset=ISO-8859-1
Content-Language: en
Content-Length: 0
Date: Sat, 16 Feb 2008 11:26:15 GMT
--

I've replaced username and password values with x and the real 
hostname with MyHostName.

In xredirect I can easily identify : as %3A and / as %2F. But, is it 
possible to pass the string &j_ in an "regular" URL? Is this possible to 
pass username and password with this string as an URL to access a 
restricted access document or it is a requirement that the cookies are 
set before the client can read it?

For instance, could I pass username and password with the following URL...?

http://xepecnet.environmentalchange.net/xwiki/bin/view/ICT/RGraphicSample01?xpage=plain

I keep trying to pass the code in this document to R. This is what I get 
right now...

 > 
source("http://xepecnet.environmentalchange.net/xwiki/bin/view/ICT/RGraphicSample01?xpage=plain";)
Error in file(file, "r", encoding = encoding) : unable to open connection
In addition: Warning message:
In file(file, "r", encoding = encoding) :
  cannot open: HTTP status was '401 Unauthorized'

Thanks for your help!

Best,

Ricardo


-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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