Message Boards

[RESOLU] Tunnel HTTP

Sylvain ROUSSY, modified 16 Years ago.

[RESOLU] Tunnel HTTP

New Member Posts: 4 Join Date: 6/6/07 Recent Posts
Bonjour,

Je souhaite piloter le portail depuis une application externe.

HttpPrincipal p = new HttpPrincipal ("http://localhost:8080", "test@liferay.com","test");
DLFileEntryServiceHttp.getFileEntry(p, "2", "DLFE-4.ppt");

L'appel de la méthode "getFileEntry" me retrourne l'erreur suivante :

com.liferay.portal.SystemException: java.io.FileNotFoundException: http://localhost:8080/tunnel-web/secure/liferay/do
at com.liferay.portlet.documentlibrary.service.http.DLFileEntryServiceHttp.getFileEntry(DLFileEntryServiceHttp.java:340)



J'ai bien vérifié le nom du fichier et l'identifiant du dossier, tout est correct. Où est le problème ?
Sylvain ROUSSY, modified 16 Years ago.

RE: Tunnel HTTP

New Member Posts: 4 Join Date: 6/6/07 Recent Posts
Finalement j'ai trouvé la réponse :

1) il y a une erreur dans le fichier "application.xml" du répertoire META-INF dans "liferay-portal.ear" :

il faut remplacer
<module>
<web>
<web-uri>tunnel-web.war</web-uri>
<context-root>/tunnel</context-root>
</web>
</module>

par
<module>
<web>
<web-uri>tunnel-web.war</web-uri>
<context-root>/tunnel-web</context-root>
</web>
</module>

2) J'ai commis une erreur dans les paramètres passés à la classe HTTPPrincipal, la correction :
HttpPrincipal p = new HttpPrincipal ("http://localhost:8080", "liferay.com.1","test");