Forums

Home » Liferay IDE » English

Combination View Flat View Tree View
Threads [ Previous | Next ]
David H Nebinger
Setting server.xml and context.xml...
September 18, 2012 7:38 PM
Answer

David H Nebinger

Rank: Liferay Legend

Posts: 6129

Join Date: September 1, 2006

Recent Posts

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...
September 18, 2012 4:19 PM
Answer

Gregory Amerson

LIFERAY STAFF

Rank: Liferay Master

Posts: 911

Join Date: February 16, 2010

Recent Posts

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...
September 18, 2012 4:58 PM
Answer

Jack Bakker

Rank: Liferay Master

Posts: 500

Join Date: January 3, 2010

Recent Posts

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...
September 18, 2012 7:44 PM
Answer

David H Nebinger

Rank: Liferay Legend

Posts: 6129

Join Date: September 1, 2006

Recent Posts

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...
March 26, 2013 5:45 AM
Answer

ugandhar @

Rank: Junior Member

Posts: 25

Join Date: November 21, 2011

Recent Posts

Thanks Gregory