Mail Archive Home | enhydra List | July 2005 Index
| <-- Date Index --> | <-- Thread Index --> |
Hi Phoebe, I'm glad that everything works now! Regarding DatabaseManager problem!I think that you are missing 'DataSourceName' connection parameter setting (since you are using DataSource configuration option).
Should go something like this: <env-entry> <env-entry-name>DatabaseManager/DB/setnet_host/Connection/DataSourceName</env-entry-name> <env-entry-value>jndi:setnetHostDB</env-entry-value> <env-entry-type>java.lang.String</env-entry-type> </env-entry>where 'setnetHostDB' is name of your 'javax.sql.DataSource' resource (that should be) defined in 'META-INF/context.xml' file (check out 'DiscRack' as sample configuration)
Regards, Slobodan Vujasinovic Enhydra Development Team Phoebe Whitefield wrote:
On Wed, 27 Jul 2005 08:44:13 +0200 Slobodan Vujasinovic <slobodan@xxxxxxxxxxxxx> wrote:Hi, Just note that 'ConfFile' is obligate initialization parameter for 'HttpPresentationServlet'. Default value for 'ConfFileClass' (second initialization parameter) is 'com.lutris.util.ConfigFile'. I can't think of scenario in which this could happen! Are you working on clean Enhydra Server installation or have you done some additional server administration? Which OS are you working on? Do you have context descriptor file defined in '<enhydra_root>/multiserver/conf/Catalina/localhost' directory? I'm truing to reproduce the problem but without any success (for now)! Regards, Slobodan Vujasinovic Enhydra Development Team Phoebe Whitefield wrote:On Tue, 26 Jul 2005 17:08:47 +0200 Slobodan Vujasinovic <slobodan@xxxxxxxxxxxxx> wrote:Hi, ----- Logger ----- Logger configuration is obligate for Enhydraaplications!If not defined, StandatdLogger will be initialized butIthink that he also requiers 'LogFile, LogToFile and LogToStderr' configuration parameters. Therefore, I strongly recomend you to leave present logger configuration <!-- Log4j logger configuration --> <env-entry> <env-entry-name>LogClassName</env-entry-name><env-entry-value>com.lutris.logging.Log4jLogger</env-entry-value><env-entry-type>java.lang.String</env-entry-type></env-entry> <env-entry> <env-entry-name>Log4j</env-entry-name><env-entry-value>../conf/log4j.xml</env-entry-value><env-entry-type>java.lang.String</env-entry-type></env-entry> ----- Data Source ----- I've noticed that you have DataSource - DatabaseManager configuration but no 'Connection/DataSourceName' parameter defined for your 'setnet_host' database. Should look something like this: <env-entry><env-entry-name>DatabaseManager/DB/sid1/Connection/DataSourceName</env-entry-name><env-entry-value>jndi:setnetHostDB</env-entry-value><env-entry-type>java.lang.String</env-entry-type> </env-entry> "setnetHostDB" is application resource (of type equalto'javax.sql.DataSource') which should be defined in 'context.xml' file placed in 'META-INF' (sub)directoryofapplication WAR file (and/or application context directory). You can checkout 'DisRack' demo application as our sample configuration. But, this should not be the reason of your previously described problems! Do you have '<App_Name>/META-INF/context.xml' and/or'<enhydra_root>/multiserver/conf/Catalina/loclhost/<App_Name>.xml'files present? Note that setting defined in those two files will overwrite those defined in 'web.xml' file. Regards, Slobodan Vujasinovic Enhydra Development TeamHi, Thanks for the pointer. But I did have those define intheweb.xml. But my problem I think - EAF is not reading the configuration parameter from web.xml. I don't know why.Ihacked up the StandardLogger, but then now, it complains about Server.AppClass. Please note from the web.xml, I instruct HttpPresentationServlet to read from web.xmlandalso use the org.enhydra.util.XMLConfigFile as itsinterface to read in the web.xml parameter. WHY EAF is not reading configuration parameters fromweb.xml even I told it to do so in the web.xml file. The other thing I tried - I took out the ConfFile init parameter, then HttpPresentationServlet is complainaboutnot finding the parameter. Therefore, I am sure it is reading the web.xml file as its configuration file. Butinthe source code, if the ConfFileClass is not defined in web.xml, it will default to use the old configuration class? Please help me. I can't pass using the web.xml. I even reverse back to using the old way to read inconfigurationdata by modifying the context.xml and web.xml asspecifiedin the document, also in one of your old email from the archive. It is still not working. What am I missing? IhaveIM, do you? thanks a million.. Phoebe-------------------------------------------------------------------------- You receive this message as a subscriber of theenhydra@xxxxxxxxxxxxx mailing list.To unsubscribe: mailto:enhydra-unsubscribe@xxxxxxxxxxxxx For general help:mailto:sympa@xxxxxxxxxxxxx?subject=helpObjectWeb mailing lists service home page:http://www.objectweb.org/wwsHi, I reinstall Enhydra this morning, it works. I think somehow the installation was corrupted. I don't know how. But it happened. I was able to bring up my application without it kept asking me about LogFile since I am using Log4j. I am sorry about all those trouble. I was truly going to give up and ask to try out something else. But now I have database manager error now. I need to look at enhydra.log to find out more why it is not happy again. I was new to this Enhydra. My boss would like me to upgradefrom 5.0 to 6.4. I am having fun doing it now.thanks again for all your help. I will ask you later related to database manager problem if I can't figure it out.... Have a nice day Phoebe------------------------------------------------------------------------ -- You receive this message as a subscriber of the enhydra@xxxxxxxxxxxxx mailing list. To unsubscribe: mailto:enhydra-unsubscribe@xxxxxxxxxxxxx For general help: mailto:sympa@xxxxxxxxxxxxx?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
| <-- Date Index --> | <-- Thread Index --> |
Powered by MHonArc.
Copyright © 1999-2005, ObjectWeb Consortium | contact | webmaster.