Fóruns

Início » Liferay IDE » English

Visualização combinada Visão plana Exibição em árvore
Tópicos [ Anterior | Próximo ]
toggle
David H Nebinger
Setting server.xml and context.xml...
18 de Setembro de 2012 19:38
Resposta

David H Nebinger

Community Moderator

Ranking: Liferay Legend

Mensagens: 11046

Data de entrada: 1 de Setembro de 2006

Mensagens recentes

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 Setembro de 2012 16:19
Resposta

Gregory Amerson

LIFERAY STAFF

Ranking: Liferay Legend

Mensagens: 1024

Data de entrada: 16 de Fevereiro de 2010

Mensagens recentes

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 Setembro de 2012 16:58
Resposta

Jack Bakker

Ranking: Liferay Master

Mensagens: 840

Data de entrada: 3 de Janeiro de 2010

Mensagens recentes

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 Setembro de 2012 19:44
Resposta

David H Nebinger

Community Moderator

Ranking: Liferay Legend

Mensagens: 11046

Data de entrada: 1 de Setembro de 2006

Mensagens recentes

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 Março de 2013 05:45
Resposta

ugandhar @

Ranking: Junior Member

Mensagens: 25

Data de entrada: 21 de Novembro de 2011

Mensagens recentes

Thanks Gregory
viral bhat
RE: Setting server.xml and context.xml...
19 de Agosto de 2014 01:28
Resposta

viral bhat

Ranking: New Member

Mensagens: 5

Data de entrada: 5 de Maio de 2014

Mensagens recentes

Thanks. It also Work for me.