Forum

Accueil » Liferay IDE » English

Vue combinée Vue Plate Arborescence
Sujets [ Précédent | Suivant ]
toggle
David H Nebinger
Setting server.xml and context.xml...
18 septembre 2012 19:38
Réponse

David H Nebinger

Community Moderator

Rang: Liferay Legend

Publications: 11464

Date d'inscription: 1 septembre 2006

Publications Récentes

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 septembre 2012 16:19
Réponse

Gregory Amerson

LIFERAY STAFF

Rang: Liferay Legend

Publications: 1032

Date d'inscription: 16 février 2010

Publications Récentes

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 septembre 2012 16:58
Réponse

Jack Bakker

Rang: Liferay Master

Publications: 840

Date d'inscription: 3 janvier 2010

Publications Récentes

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 septembre 2012 19:44
Réponse

David H Nebinger

Community Moderator

Rang: Liferay Legend

Publications: 11464

Date d'inscription: 1 septembre 2006

Publications Récentes

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 mars 2013 05:45
Réponse

ugandhar @

Rang: Junior Member

Publications: 25

Date d'inscription: 21 novembre 2011

Publications Récentes

Thanks Gregory
viral bhat
RE: Setting server.xml and context.xml...
19 août 2014 01:28
Réponse

viral bhat

Rang: New Member

Publications: 5

Date d'inscription: 5 mai 2014

Publications Récentes

Thanks. It also Work for me.