Re: [enhydra] InvocationTargetException
Slobodan Vujasinovic <[email protected]> Fri, 29 Jul 2005 08:32:57 +0200
| Newsgroups | gmane.comp.java.enhydra.general |
|---|---|
| Organization | PROZONE |
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format...
------------=_1122618901-21516-22
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit
Hi,
For multiple database instances you should use:
<env-entry>
<env-entry-name>DatabaseManager/Databases[]</env-entry-name>
<env-entry-value>setnet_host, setnet_stage</env-entry-value>
<env-entry-type>java.lang.String</env-entry-type>
</env-entry>
Database driver must be loaded by the same class loader as DODS
binaries. Therefore if you have DODS binaries loaded by 'Shared Class
Loader' (loads binaries from <enhydra_root>/multiserver/shared/lib) you
should place your driver binary here also (to be loaded by the same
class loader). This way DODS will be able to see your driver implementation.
Additionally, when you are using DataSource DatabaseManager
configuration your DataSource object is actually initialized by Tomcat
itself. Therefore, in this case your DB driver implementation is not
obligate to be placed together with DODS binaries (but Tomcat requires
driver implementation to be placed either in
'<enhydra_root>/multiserver/common/lib' or in
'<enhydra_root>/multiserver/shared/lib').
Hope this clears things up!
Regards,
Slobodan Vujasinovic
Enhydra Development Team
Phoebe Whitefield wrote:
>Hi,
>
>I finally able to bring up enhydra now. Thanks for all the
>help. The other questions I have
>-) I tried to put in 2 logical databases by using this
>
><!-- Generic DB configuration -->
> <env-entry>
> <env-entry-name>DatabaseManager/Databases[]</env-entry-name>
> <env-entry-value>setnet_host</env-entry-value>
> <env-entry-type>java.lang.String</env-entry-type>
> <!-- why can't use 2 here, it only do 1 P.W.
> <env-entry-value>setnet_stage</env-entry-value>
> <env-entry-type>java.lang.String</env-entry-type>
> -->
> </env-entry>
>
> <env-entry>
> <env-entry-name>DatabaseManager/DefaultDatabase</env-entry-name>
> <env-entry-value>setnet_host</env-entry-value>
> <env-entry-type>java.lang.String</env-entry-type>
> </env-entry>
>
>but it won't work. The error was - can't find setnet_host.
>>From the enhydra.log, I found out enhydra only know about
>setnet_stage, the last entry in the Databases[] value.
>Ummmmmm.....
>
>Also, I put my jdbc driver jar under app/WEB-INF/lib, but
>it complains not finding the driver, therefore, I moved the
>jar to ENHYDRA_HOME/multiserver/shared/lib, then it worked.
>
>thanks a million for all your help so far. Have a great
>evening.
>
>Phoebe
>
>
>
>
>------------------------------------------------------------------------
>
>
>--
>You receive this message as a subscriber of the [email protected] mailing list.
>To unsubscribe: mailto:[email protected]
>For general help: mailto:[email protected]?subject=help
>ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
>
------------=_1122618901-21516-22
Content-Type: text/plain; name="message-footer.txt"
Content-Disposition: inline; filename="message-footer.txt"
Content-Transfer-Encoding: 8bit
--
You receive this message as a subscriber of the [email protected] mailing list.
To unsubscribe: mailto:[email protected]
For general help: mailto:[email protected]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
------------=_1122618901-21516-22--