留言板

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

thumbnail
Mehdi Bouks,修改在9 年前。

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

New Member 帖子: 8 加入日期: 15-1-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
Ahmed bouchriha,修改在9 年前。

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

Junior Member 帖子: 55 加入日期: 12-5-4 最近的帖子
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
Mehdi Bouks,修改在8 年前。

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

New Member 帖子: 8 加入日期: 15-1-21 最近的帖子
Thank you Ahmed, i think that resolve the probleme, but i finally used another web server, i'll try this on free time.