于 2011/10/28 16:28, Thomas Mortagne 写道:
2011/10/28 Yang Li
<yang.lee.cool(a)gmail.com>om>:
于 2011/10/28 15:02, Thomas Mortagne 写道:
2011/10/28 Yang Li
<yang.lee.cool(a)gmail.com>om>:
> 于 2011/10/27 22:20, Thomas Mortagne 写道:
>> 2011/10/27 Yang Li <yang.lee.cool(a)gmail.com>om>:
>>> 于 2011/10/27 21:38, Thomas Mortagne 写道:
>>>> this script is supposed to tell you all it did so theses messages are
>>>> normal. What weird is that you get nothing, it's supposed to log
>>>> everything its doing so when it does work you should get informations
>>>> on the log.
>>>>
>>> I checked tomcat7-stderr.2011-10-27.txt and
>>> localhost_access_log.2011-10-27.txt when I
>>> tried to import something with LargeWikiImport page, nothing wrong was
>>> logged.
>> Could you check catalina.out ?
>>
> *In the localhost_access_log.2011-10-27*
>
> 10.92.1.226 - - [27/Oct/2011:02:09:22 +0800] "GET
> /xwiki/bin/view/XWiki/LargeWikiImport HTTP/1.1" 200 5991
> 10.92.1.226 - - [27/Oct/2011:02:09:22 +0800] "POST
> /xwiki/bin/get/XWiki/LargeWikiImport?xpage=xpart&vm=commentsinline.vm
> HTTP/1.1" 200 1589
> 10.92.1.226 - - [27/Oct/2011:02:09:35 +0800] "POST
> /xwiki/bin/view/XWiki/LargeWikiImport HTTP/1.1" 200 6258
> 10.92.1.226 - - [27/Oct/2011:02:09:35 +0800] "POST
> /xwiki/bin/get/XWiki/LargeWikiImport?xpage=xpart&vm=commentsinline.vm
> HTTP/1.1" 200 1589
> 10.92.1.226 - - [27/Oct/2011:02:16:02 +0800] "POST
> /xwiki/bin/view/XWiki/LargeWikiImport HTTP/1.1" 200 15563
> 10.92.1.226 - - [27/Oct/2011:02:16:03 +0800] "POST
> /xwiki/bin/get/XWiki/LargeWikiImport?xpage=xpart&vm=commentsinline.vm
> HTTP/1.1" 200 1584
> 10.92.1.226 - - [27/Oct/2011:02:16:47 +0800] "GET
> /xwiki/bin/view/Main/WebHome HTTP/1.1" 200 8490
>
> *In the catalina.2011-10-27.log*
>
> 2011-10-27 2:06:37 org.apache.catalina.startup.Catalina start
> 信息: Server startup in 9075 ms
> 2011-10-27 2:18:47 org.apache.catalina.core.AprLifecycleListener init
> 信息: Loaded APR based Apache Tomcat Native library 1.1.22.
>
>
> Nothing is logged during 2:09-2:16 in catalina.2011-10-27. Besides the
> "POST" seems to contain no filename of my xar file?
I just aded a
System.out.println("Start importing file [" + file + "]");
at the beginning of the script to that you can make sure where the log
really is and what the script tries to do when you get nothing.
I got nothing...maybe the execution stops before
System.out.println("Start importing file [" + file + "]");
?
I doubt that, there is nothing except the code to get the file from
the request before that.
What do you do exactly ?
I copied the latest LargeXarImport script from
XWiki.org to our wiki as
LargeWikiImport (with a little bit different name). wiki syntax 1.0 for
sure. After saving it, I can see a table asking the name of "File to
read from:", I input an arbitrary file name and checked "Import all",
and then submit...
I tried to find some logs and I found
61.129.42.14 - - [28/Oct/2011:16:34:22 +0800] "POST
/xwiki/bin/view/XWiki/LargeWikiImport HTTP/1.0" 200 6937
61.129.42.14 - - [28/Oct/2011:16:34:22 +0800] "POST
/xwiki/bin/get/XWiki/LargeWikiImport?xpage=xpart&vm=commentsinline.vm
HTTP/1.0" 200 1584
in request log, and nothing more...
Could you edit the page and add
<% println "Groovy is executed" %>
at the beginning. If you don't have it then it mean you can't execute
groovy script, generally it's because your user does not have
programming right.
>
>>> It seems XE doesn't find the targeted xar file, just a guess...
>>> _______________________________________________
>>> users mailing list
>>> users(a)xwiki.org
>>>
http://lists.xwiki.org/mailman/listinfo/users
>>>
> _______________________________________________
> users mailing list
> users(a)xwiki.org
>
http://lists.xwiki.org/mailman/listinfo/users
>
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users