Foros

Inicio » Liferay IDE » English

Vista combinada Visión Plana Vista de árbol
Discusiones [ Anterior | Siguiente ]
toggle
David H Nebinger
Setting server.xml and context.xml...
18 de septiembre de 2012 19:38
Respuesta

David H Nebinger

Community Moderator

Ranking: Liferay Legend

Mensajes: 11114

Fecha de incorporación: 1 de septiembre de 2006

Mensajes recientes

Okay, this is just pissing me off...

I have some JMS entities that I have set up in server.xml and context.xml as JNDI resources (because they are global references), but every time I stop and then start (not restart) the bundled tomcat within the IDE, it freaking overwrites my files and, because the JNDI entities are not there, things fail. I have to delete the ones that the IDE has overwritten, replace with the ones that I want to use, then restart tomcat again...

How can I stop the IDE from overwriting conf/server.xml and conf/context.xml?
Gregory Amerson
RE: Setting server.xml and context.xml...
18 de septiembre de 2012 16:19
Respuesta

Gregory Amerson

LIFERAY STAFF

Ranking: Liferay Legend

Mensajes: 1024

Fecha de incorporación: 16 de febrero de 2010

Mensajes recientes

Hey David,

Can you try making your edits to the server.xml and context.xml that is in the Eclipse workspace? In there you should see a Servers project and under it there is a folder for every server instance. Inside that folder you will see the various tomcat config files. Try making your changes there and then restarting the server. Those files should be copied out to the tomcat instance on each startup.
Jack Bakker
RE: Setting server.xml and context.xml...
18 de septiembre de 2012 16:58
Respuesta

Jack Bakker

Ranking: Liferay Master

Mensajes: 840

Fecha de incorporación: 3 de enero de 2010

Mensajes recientes

no kidding

and all this time I've been maintaining a server.xml.jdbc and a context.xml.jdbc that I copy into place

I guess u don't know till u ask

Thanks Greg (and David for asking)
David H Nebinger
RE: Setting server.xml and context.xml...
18 de septiembre de 2012 19:44
Respuesta

David H Nebinger

Community Moderator

Ranking: Liferay Legend

Mensajes: 11114

Fecha de incorporación: 1 de septiembre de 2006

Mensajes recientes

Gregory Amerson:
Can you try making your edits to the server.xml and context.xml that is in the Eclipse workspace? In there you should see a Servers project and under it there is a folder for every server instance. Inside that folder you will see the various tomcat config files. Try making your changes there and then restarting the server. Those files should be copied out to the tomcat instance on each startup.


Thank you, thank you, thank you!
ugandhar @
RE: Setting server.xml and context.xml...
26 de marzo de 2013 5:45
Respuesta

ugandhar @

Ranking: Junior Member

Mensajes: 25

Fecha de incorporación: 21 de noviembre de 2011

Mensajes recientes

Thanks Gregory
viral bhat
RE: Setting server.xml and context.xml...
19 de agosto de 2014 1:28
Respuesta

viral bhat

Ranking: New Member

Mensajes: 5

Fecha de incorporación: 5 de mayo de 2014

Mensajes recientes

Thanks. It also Work for me.