[cosmo-dev] cosmo webapp packaging

Benoit Mercier Benoit.Mercier at USherbrooke.ca
Fri Nov 16 07:54:58 PST 2007


Hi,

I am a brand new (happy) user of cosmo server (0.9.1 and previous one). Since I want to deploy cosmo web application under one of my existing Tomcat instances I have to extract the cosmo.war from the server bundle and modify it a bit to make it work perfectly well when I drop it in my Tomcat.  My question is: would it be possible for you to provide an adapted war alone or simply adapt the current one in the bundle in order to be able to make it work out of the box under an existing Tomcat ?

Here is what I have to do for the moment:

- extract and explode the war from the server bundle
- add a context.xml file under /META-INF
- add cosmo.properties file under /WEB-INF/classes
- add log4j.jar archive under /WEB-INF/lib
- recreate the war
- deploy the war

This modified war should work perfectly well even inside your bundled Tomcat (if you modify a bit you server.xml of course)

I attach to this mail the context.xml (based on provided server.xml).  It should be reviewed but works for me (I am using MySQL).

It would be so nice to simply be able to extract or download the cosmo war and drop it "as it" in a running Tomcat.  We will still have to adapt the connection to the database by editing the /conf/Catalina/localhost/chandler.xml file created automagically by Tomcat from the context.xml file, but so much easier...  I am perhaps missing something, but I think it would be nice to have this configuration that suits the 2 worlds: embedded/bundled and "standard J2EE deployment".

Thank you in advance for your attention!

Best regards,

Benoit

-------------- next part --------------
A non-text attachment was scrubbed...
Name: context.xml
Type: text/xml
Size: 2044 bytes
Desc: not available
Url : http://lists.osafoundation.org/pipermail/cosmo-dev/attachments/20071116/f3f6a480/context.bin


More information about the cosmo-dev mailing list