Foros de discusión

Portlet redeploy can't get jndi datasource

Migue M L, modificado hace 10 años.

Portlet redeploy can't get jndi datasource

New Member Mensajes: 15 Fecha de incorporación: 5/12/07 Mensajes recientes
Hi all:

I'm developing a Vaadin + Spring + Hibernate (JPA) portlet in tomcat 7 and liferay 6.1.2. (using elicpse Juno 4.2 and liferay IDE 1.6.2) and I want to connect to a datasource via JNDI.
I configure de datasource in Context.xml at <CATALINA_HOME>/conf and reference it in the portlet web.xml configuration file.
All works fine when I start server and I can view my portlet in the portal.
The problem is when I modify the portlet and redeploy it, the javax.naming.NameNotFoundException is thrown.
If I restart the server it works again.
Is very slow is I must restart the server to test evety change in my portlet.
Any suggestion?
thumbnail
Gregory Amerson, modificado hace 10 años.

RE: Portlet redeploy can't get jndi datasource

Liferay Legend Mensajes: 1123 Fecha de incorporación: 16/02/10 Mensajes recientes
How are you redeploying? Through Server publishing? Or using 'ant deploy' from the Liferay Plugins SDK build script?
thumbnail
Richard SINELLE, modificado hace 10 años.

RE: Portlet redeploy can't get jndi datasource

Junior Member Mensajes: 28 Fecha de incorporación: 7/04/11 Mensajes recientes
Hi

Add
portal.security.manager.strategy=none
to your portal-ext.properties in order to be able to reploy without restart your server.

Regards
Richard