java - Derby included in Tomcat Webapp -


my web app connects derby database - ok.

my web app , derby installed separately in tomcat 7 server - ok

derby installed using derby.war file being deployed , me moving derby*.jar files tomcat lib directory.

my web app deployed exporting war file tomcat webapps directory.

i deploy derby without having put jars tomcat lib directory - problem in production environments.

my question(s) is/are

can derby.war file amended in anyway? - tried adding web-inf/lib directory , putting derby*.jar files in there , re-deploying it. didn't work, removed jars , lib directory. perhaps need else?

or

is there way of including derby jar files , derby web.xml own web application? tried not in anger, first attempt caused few issues regressed in panic.

i admit attempts deploy derby without using tomcat lib directory little rushed , have spent more time researching it. won't have access dev system while, thought i'd ask if be/has been done anyone.

trevor

you use tomcat datasource connect derby? think if use jdbc directly(initializing connection pool in webapp using c3p0 or tomcat pools), no problem include derby jars in web-inf/lib. can use embedded derby driver now. if need derby network server, start contextlistener, or can configure datasource in spring context if using spring.


Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -