Tribune

Home » Liferay IDE » English

Vista Combinata Vista Piatta Vista ad Albero
Discussioni [ Precedente | Successivo ]
toggle
David H Nebinger
Setting server.xml and context.xml...
18 settembre 2012 19.38
Risposta

David H Nebinger

Community Moderator

Punteggio: Liferay Legend

Messaggi: 11771

Data di Iscrizione: 1 settembre 2006

Messaggi recenti

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 settembre 2012 16.19
Risposta

Gregory Amerson

LIFERAY STAFF

Punteggio: Liferay Legend

Messaggi: 1041

Data di Iscrizione: 16 febbraio 2010

Messaggi recenti

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 settembre 2012 16.58
Risposta

Jack Bakker

Punteggio: Liferay Master

Messaggi: 882

Data di Iscrizione: 3 gennaio 2010

Messaggi recenti

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 settembre 2012 19.44
Risposta

David H Nebinger

Community Moderator

Punteggio: Liferay Legend

Messaggi: 11771

Data di Iscrizione: 1 settembre 2006

Messaggi recenti

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 marzo 2013 5.45
Risposta

ugandhar @

Punteggio: Junior Member

Messaggi: 25

Data di Iscrizione: 21 novembre 2011

Messaggi recenti

Thanks Gregory
viral bhat
RE: Setting server.xml and context.xml...
19 agosto 2014 1.28
Risposta

viral bhat

Punteggio: New Member

Messaggi: 5

Data di Iscrizione: 5 maggio 2014

Messaggi recenti

Thanks. It also Work for me.