Foren

Home » Liferay IDE » English

Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
David H Nebinger
Setting server.xml and context.xml...
18. September 2012 19:38
Antwort

David H Nebinger

Rang: Liferay Legend

Nachrichten: 7007

Eintrittsdatum: 1. September 2006

Neue Beiträge

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. September 2012 16:19
Antwort

Gregory Amerson

LIFERAY STAFF

Rang: Liferay Master

Nachrichten: 918

Eintrittsdatum: 16. Februar 2010

Neue Beiträge

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. September 2012 16:58
Antwort

Jack Bakker

Rang: Liferay Master

Nachrichten: 598

Eintrittsdatum: 3. Januar 2010

Neue Beiträge

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. September 2012 19:44
Antwort

David H Nebinger

Rang: Liferay Legend

Nachrichten: 7007

Eintrittsdatum: 1. September 2006

Neue Beiträge

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. März 2013 05:45
Antwort

ugandhar @

Rang: Junior Member

Nachrichten: 25

Eintrittsdatum: 21. November 2011

Neue Beiträge

Thanks Gregory
viral bhat
RE: Setting server.xml and context.xml...
19. August 2014 01:28
Antwort

viral bhat

Rang: New Member

Nachrichten: 5

Eintrittsdatum: 5. Mai 2014

Neue Beiträge

Thanks. It also Work for me.