Foros de discusión

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

thumbnail
Mehdi Bouks, modificado hace 9 años.

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

New Member Mensajes: 8 Fecha de incorporación: 21/01/15 Mensajes recientes
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, modificado hace 9 años.

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

Junior Member Mensajes: 55 Fecha de incorporación: 4/05/12 Mensajes recientes
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, modificado hace 8 años.

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

New Member Mensajes: 8 Fecha de incorporación: 21/01/15 Mensajes recientes
Thank you Ahmed, i think that resolve the probleme, but i finally used another web server, i'll try this on free time.