The problem is solved ... now I have another PROBLEM (big)

when I run export, on the source site machine throws me the folling
exception

1737954 [org.jahia.services.importexport.ProductionJob] ERROR - Production
job execute fail for site sitioDestino to target http://nmosca:8080 with
error
org.apache.commons.httpclient.HttpException: Unbuffered entity enclosing
request can not be repeated.
        at
org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:468)
        at
org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2322)
        at
org.apache.commons.httpclient.HttpMethodBase.processRequest(HttpMethodBase.java:2657)
        at
org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1093)
        at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:675)
        at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:529)
        at
org.apache.webdav.lib.WebdavResource.putMethod(WebdavResource.java:2735)
        at
org.apache.webdav.lib.WebdavResource.putMethod(WebdavResource.java:2710)
        at
org.jahia.services.importexport.ImportExportBaseService.exportToSite(ImportExportBaseService.java:1792)
        ......


I readed documentation about this and some people recommends to use the
"expect 100 continue" feature of HTTP
I saw the jahia source code where the excepcion ocurrs (line 1792), and has
the folling line:

      webdavSession.addRequestHeader("Expect", "100-continue");

I found another possibility in forums: set the response length to
CONTENT_LENGTH_AUTO, but i dont known how to set it with webdavSession
(WebdavResource has method setGetContentLength protected)...

Another one: in some forums recommends use BufferedInputStreams ... I
wrapped the FileInputStream (in jahia sources) with a Buffered one, and send
it through put method ...  the result was the same excepcion  ...

I first test the export using two jahias on separate machines (win and
linux), and later using the two jahias on the same machine (linux) ...  I
get the same error ..., 

I'm using tomcat 5.5.17 and jdk 1.5.0_08. The jahia version is the one that
I explain in first post of this thread

any ideas??

Thans in advance




Gustav wrote:
> 
> Thank you !  I'll try that
> 
> 
> 
> Cédric Mailleux wrote:
>> 
>> Hi gustav,
>> 
>> You can manage the way the url is generated for this file inside the file
>> :
>> 
>> WEB-INF/etc/spring/applicationcontext-basejahiaconfig.xml :
>> 
>> <bean id="groovyScriptEngine" class="groovy.util.GroovyScriptEngine">
>>         <constructor-arg>
>>             <list>
>>                 
>> <value>file:///${jahiaWebAppRoot}/WEB-INF/var/scripts/groovy/</value>
>>                 <value>file:///${jahiaWebAppRoot}/jsp/jahia/</value>
>>             </list>
>>         </constructor-arg>
>>     </bean>
>> 
>> Regards,
>> Cédric Mailleux
>> 
>> Gustav a écrit :
>>> Hi ... 
>>>
>>> We have a problem with autoexport ...
>>>
>>> I downloaded the jahia  5.0 sources from svn
>>> http://svn.jahia.org/svn/jahia/branches/JAHIA-5-0-SP-BRANCH/
>>> I compiled and installed jahia succesfully ...
>>>
>>> Later we create a site and fill it with pages .... 
>>>
>>> In another PC we installed the same compiled jahia, create a site, and
>>> add
>>> all tamplates from original site ...
>>>
>>> Finally we try to export and we get the following errors:
>>>
>>> 2281734 [org.jahia.services.events.GroovyEventListener] ERROR - Error
>>> while
>>> dispatching to Groovy script : EventListener.groovy
>>> groovy.util.ScriptException: Could not parse script:
>>> events/EventListener.groovy
>>>
>>> ....
>>>
>>> Caused by: java.io.FileNotFoundException:
>>> C:\tomcat-jahia-fix\bin\file:\C:\tomcat-jahia-fix\webapps\jahia\jsp\events\EventListener.groovy
>>> (El nombre de archivo, directorio o etiqueta del volumen no es valido)
>>>
>>> ..
>>>
>>> I see that jahia isn't generating Ok the file URL ... 
>>>
>>> can anybody help me with that ... we really need auto-export feature
>>> working
>>> ... 
>>>
>>> thanks in advance ...
>>>
>>>   
>> 
>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/autoexport-problem-tf2810330.html#a7863894
Sent from the Jahia - Dev mailing list archive at Nabble.com.

Reply via email to