Re: [Hypercontent-users] Publishing projects via sftp
Brought to you by:
alexvigdor
From: Alex V. <av...@co...> - 2005-12-07 06:33:09
|
The IFormProcessor implementation that receives the username and =20 password is org.hypercontent.form.common.ExecutableInputProcessor It loads the Executable associated with the publish request by ID, sets =20= the username and password on the stored UserInputException object, =20 stores the updated Executable and requeues it for asynchronous =20 execution. The Executable implementation is org.hypercontent.workflow.exec.impl.CopyingBatchExecutable but the code that mounts the SFTP filesystem is in the base class it =20 shares with RenderingBatchExecutable org.hypercontent.workflow.exec.impl.AbstractBatchExecutable in the execute() method at line 188. -Alex On Dec 6, 2005, at 12:23 PM, ke...@la... wrote: > I can see the form to put in the username and password, but when I =20 > submit this > form computer goes down for few minutes. Wich class is processing this = =20 > form > after submit? > > Cit=C4=93ju Alex Vigdor <av...@co...>: > >> Hi, >> I probably should reclassify that error as a debug message: the = =3D >> =3D20 >> UserInputException is how the filesystem communicates to the 2.0 =3D20 >> framework that a login is required to access it. So it is a useful =20= >> =3D20 >> exception; it triggers the username and password prompts to appear on = =20 >> =3D20=3D >> >> the Publish workflow screen. This may take a few seconds, so you may = =20 >> =3D20=3D >> >> not see the login box initially, but it will show up once the =3D20 >> asynchronous batch processor kicks off the publishing process. You =20= >> =3D20 >> don't need to make any changes to the project definition. >> >> I've posted a screenshot of how the login box will appear on the 2.0 =20= >> =3D20 >> help site >> >> http://hypercontent.sourceforge.net/help/project/filesystems/=20 >> login.html >> >> Cheers, >> Alex >> >> On Dec 6, 2005, at 8:15 AM, ke...@la... wrote: >> >>> Hello! >>> >>> What should I write in the project-definition.xml file to publish my = =20 >>> =3D20=3D >> >>> project to >>> the remote server? >>> >>> When I'm trying to use the same definition as was used in the >>> project-definition.xml from HyperContent 1.4( >>> <publish base-url=3D3D"http://www.lu.lv/"> >>> <filesystem-def name=3D3D"lu_publish" type=3D3D"sftp"> >>> <argument index=3D3D"0" value=3D3D"www.lu.lv"/> >>> <argument index=3D3D"1" prompt=3D3D"username" =3D >> type=3D3D"text"/> >>> <argument index=3D3D"2" prompt=3D3D"password" =3D >> type=3D3D"password"/> >>> <argument index=3D3D"3" = value=3D3D"/var/www/html/"/> >>> <argument index=3D3D"4" value=3D3D"0775"/> >>> </filesystem-def> >>> </publish> >>> ), I'm getting the error in the log file: >>> >>> ERROR 2005-12-06 16:10:48,671 >>> org.hypercontent.project.exceptions.UserInputException: You must =20 >>> enter =3D >> =3D20 >>> valid >>> responses to the user prompts >>> at >>> =3D >> = org.hypercontent.filesystem.FileSystemFactory.mountFileSystemManager(F=20= >> i=3D20=3D >> >>> leSystemFactory.java:180) >>> at =3D >> org.hypercontent.filesystem.FSMount.getManager(FSMount.java:86) >>> at >>> =3D >> = org.hypercontent.workflow.exec.impl.AbstractBatchExecutable.cleanup(Ab=20= >> s=3D20=3D >> >>> tractBatchExecutable.java:562) >>> at =3D20 >>> org.hypercontent.workflow.thread.BatchMonitor.run(BatchMonitor.java:=20= >>> =3D20=3D >> >>> 201) >>> at java.lang.Thread.run(Unknown Source) >>> >>> and only after that HyperContent2 asks me to input username and =3D20 >>> password. But >>> when I press button "Submit Query" after putting in all necessary =20= >>> data >>> computer's processor becomes busy by tomcat process for 100% for =20 >>> 5-10 =3D20=3D >> >>> minutes. >>> After that time nothing is published, but H2 asks me to input data =20= >>> =3D20 >>> again or >>> sometimes I'm getting other errors with workflow-data. >>> When username and password is shown in the project-definition.xml >>> directly(<argument index=3D3D"1" value=3D3D"..."/> >>> <argument index=3D3D"2" value=3D3D"..."/>) everything works perfect. >>> >>> Thank you! >>> >>> >>> >>> >>> ------------------------------------------------------- >>> This SF.net email is sponsored by: Splunk Inc. Do you grep through =20= >>> log =3D >> =3D20 >>> files >>> for problems? Stop! Download the new AJAX search engine that makes >>> searching your log files as easy as surfing the web. DOWNLOAD =3D >> SPLUNK! >>> http://ads.osdn.com/?ad_idv37&alloc_id=3D16865&op=3D3Dclick >>> _______________________________________________ >>> Hypercontent-users mailing list >>> Hyp...@li... >>> https://lists.sourceforge.net/lists/listinfo/hypercontent-users >>> >> >> >> >> >> ------------------------------------------------------- >> This SF.net email is sponsored by: Splunk Inc. Do you grep through =20= >> log files >> for problems? Stop! Download the new AJAX search engine that makes >> searching your log files as easy as surfing the web. DOWNLOAD =20 >> SPLUNK! >> http://ads.osdn.com/?ad_id=3D7637&alloc_id=3D16865&op=3Dclick >> _______________________________________________ >> Hypercontent-users mailing list >> Hyp...@li... >> https://lists.sourceforge.net/lists/listinfo/hypercontent-users >> >> > > > > |