Derby is included in Tomcat Webapp

My web application connects to the Derby database - OK.

My web application and Derby are installed separately on my Tomcat 7 server - OK

Derby installs using the expanded derby.war file , and I move the * .jar derby files to the Tomcat lib directory.

My web application is deployed by exporting a war file to the Tomcat webapps directory.

I would like to deploy Derby without having to put banks in the Tomcat directory lib. This can be a problem in production environments.

My question is / are

Can I modify the derby.war file ? - I tried to add a directory WEB-INF/liband put * .jar derby files there and redeploy it. This did not work; it actually deleted the banks and the lib directory. Maybe I need to do something else?

or

Is there any way to include jar derby files and derby web.xml file in my own web application? I tried this, but not in anger, as my first attempt caused several problems, so I bounced back in a panic.

Now I admit that my attempts to deploy Derby without using the Tomcat lib directory were a little rushed, and I could spend more time researching it. But I will not have access to this dev system for a while, I thought I would ask if it could be anyone.

Trevor

+4
1

tomcat ? , jdbc ( webapp, c3p0 tomcat), WEB-INF/lib. derby. , ContextListener, spring, spring.

+3

All Articles