掲示板

Problème de déploiement Liferay6.2 sur Glassfish4

thumbnail
9年前 に Mehdi Bouks によって更新されました。

Problème de déploiement Liferay6.2 sur Glassfish4

New Member 投稿: 8 参加年月日: 15/01/21 最新の投稿
Bonjour,
J'ai suivi le user guide pour déployer Liferay 6.2 sur Glassfish 4 en manuel (le bundle contient la 3.1) sur windows:
http://www.liferay.com/fr/documentation/liferay-portal/6.2/user-guide/-/ai/installing-liferay-on-glassfish-3-liferay-portal-6-2-user-guide-15-en

quand j'ajoute au niveau de server.policy:
grant {
    permission java.security.AllPermission;
};

j'ai un warning
[#|2015-01-21T18:38:53.320+0000|
WARNING|glassfish4.1|javax.enterprise.system.container.web.com.sun.web.security|
_ThreadID=45;_ThreadName=admin-listener(4);_TimeMillis=1421865533320;_LevelValue=900;| 
Context path from ServletContext:  differs from path from bundle: /|#]

et quand j'essaye d’accéder à l'interface Glassfish j'ai une erreur:
[#|2015-01-21T18:39:49.301+0000|
SEVERE|glassfish 4.1|org.apache.jasper.servlet.JspServlet|
_ThreadID=46;_ThreadName=admin-listener(5);_TimeMillis=1421865589301;_LevelValue=1000;|  
PWC6117: File "null" not found|#]


si je n'ajoute pas la permission dans server.policy j’accède le plus normalement du monde à l'interface d'administration Glassfish mais je n'arrive pas à déployer Liferay que ce soit via l'interface ou par autoload :
Error occurred during deployment: 
Exception while loading the app : java.lang.IllegalStateException: 
ContainerBase.addChild: start: org.apache.catalina.LifecycleException: 
java.lang.IllegalArgumentException: javax.servlet.ServletException: java.lang.ExceptionInInitializerError. 


Merci de m'apporter votre aide.
thumbnail
9年前 に Ahmed bouchriha によって更新されました。

RE: Problème de déploiement Liferay6.2 sur Glassfish4

Junior Member 投稿: 55 参加年月日: 12/05/04 最新の投稿
Hi Mehdi,

The GlassFish documentation is stating that you should start your server with the -Djava.security.manager option

To enable the security manager, do one of the following:

To use the Administration Console, open the Security component under the relevant configuration, and check the Security Manager Enabled box. Then restart the server. For details, click the Help button in the Administration Console.

Use the following asadmin create-jvm-options command, then restart the server:

asadmin create-jvm-options -Djava.security.manager


The full doc is here

I wish this will help solving your problem emoticon



Best Regards
thumbnail
8年前 に Mehdi Bouks によって更新されました。

RE: Problème de déploiement Liferay6.2 sur Glassfish4

New Member 投稿: 8 参加年月日: 15/01/21 最新の投稿
Thank you Ahmed, i think that resolve the probleme, but i finally used another web server, i'll try this on free time.