论坛

主页 » Liferay IDE » English

组合视图 统一视图 树状图
讨论主题 [ 上一个 | 下一个 ]
toggle
David H Nebinger
Setting server.xml and context.xml...
2012年9月18日 下午7:38
答复

David H Nebinger

等级: Liferay Legend

帖子: 7252

加入日期: 2006年9月1日

最近的帖子

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...
2012年9月18日 下午4:19
答复

Gregory Amerson

LIFERAY STAFF

等级: Liferay Master

帖子: 935

加入日期: 2010年2月16日

最近的帖子

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...
2012年9月18日 下午4:58
答复

Jack Bakker

等级: Liferay Master

帖子: 645

加入日期: 2010年1月3日

最近的帖子

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...
2012年9月18日 下午7:44
答复

David H Nebinger

等级: Liferay Legend

帖子: 7252

加入日期: 2006年9月1日

最近的帖子

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...
2013年3月26日 上午5:45
答复

ugandhar @

等级: Junior Member

帖子: 25

加入日期: 2011年11月21日

最近的帖子

Thanks Gregory
viral bhat
RE: Setting server.xml and context.xml...
2014年8月19日 上午1:28
答复

viral bhat

等级: New Member

帖子: 5

加入日期: 2014年5月5日

最近的帖子

Thanks. It also Work for me.