Fórumok

Setting server.xml and context.xml...

thumbnail
David H Nebinger, módosítva 11 év-val korábban

Setting server.xml and context.xml...

Liferay Legend Bejegyzések: 14919 Csatlakozás dátuma: 2006.09.02. Legújabb bejegyzések
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?
thumbnail
Gregory Amerson, módosítva 11 év-val korábban

RE: Setting server.xml and context.xml... (Válasz)

Liferay Legend Bejegyzések: 1123 Csatlakozás dátuma: 2010.02.16. Legújabb bejegyzések
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.
thumbnail
Jack Bakker, módosítva 11 év-val korábban

RE: Setting server.xml and context.xml...

Liferay Master Bejegyzések: 978 Csatlakozás dátuma: 2010.01.03. Legújabb bejegyzések
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)
thumbnail
David H Nebinger, módosítva 11 év-val korábban

RE: Setting server.xml and context.xml...

Liferay Legend Bejegyzések: 14919 Csatlakozás dátuma: 2006.09.02. Legújabb bejegyzések
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 Reddy, módosítva 11 év-val korábban

RE: Setting server.xml and context.xml...

Junior Member Bejegyzések: 25 Csatlakozás dátuma: 2011.11.21. Legújabb bejegyzések
Thanks Gregory
viral bhat, módosítva 9 év-val korábban

RE: Setting server.xml and context.xml...

New Member Bejegyzések: 5 Csatlakozás dátuma: 2014.05.05. Legújabb bejegyzések
Thanks. It also Work for me.
Traolly Xiong, módosítva 7 év-val korábban

RE: Setting server.xml and context.xml...

Regular Member Bejegyzések: 195 Csatlakozás dátuma: 2011.12.30. Legújabb bejegyzések
Hello Gregory,
I had a question about the portlet xml. Each time the plugin is deployed, the portlet xml file under directory "...\liferay-portal-6.2-ee-sp2\tomcat-7.0.42\conf\Catalina\localhost" get's overwritten. Thoughts on why that is?

Custom content that is placed there manually:

<Context path="" crossContext="true">
<ResourceLink name="jdbc/GSPSRPool" global="jdbc/GSPSRPool" />
</Context>

Overwritten with this content:

<?xml version="1.0" encoding="UTF-8"?>
<Context docBase="C:\Liferay\bundles\prod\liferay-portal-6.2-ee-sp2\tomcat-7.0.42\webapps\gs-status-reporting-portlet" reloadable="true" source="org.eclipse.jst.jee.server:gs-status-reporting-portlet"/>

Thoughts?

Thanks.