Re: [enhydra] enhydra 6.4
Slobodan Vujasinovic <[email protected]> Wed, 27 Jul 2005 08:44:13 +0200
| Newsgroups | gmane.comp.java.enhydra.general |
|---|---|
| Organization | PROZONE |
| Message-ID | <[email protected]> |
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 <[email protected]> wrote: > > >>Hi, >> >>----- Logger ----- >>Logger configuration is obligate for Enhydra aplications! >>If not defined, StandatdLogger will be initialized but I >>think 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 equal to >>'javax.sql.DataSource') which should be defined in >>'context.xml' file placed in 'META-INF' (sub)directory of >>application 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 Team >> >> > >Hi, > >Thanks for the pointer. But I did have those define in the >web.xml. But my problem I think - EAF is not reading the >configuration parameter from web.xml. I don't know why. I >hacked up the StandardLogger, but then now, it complains >about Server.AppClass. Please note from the web.xml, I >instruct HttpPresentationServlet to read from web.xml and >also use the org.enhydra.util.XMLConfigFile as its >interface to read in the web.xml parameter. > >WHY EAF is not reading configuration parameters from >web.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 complain about >not finding the parameter. Therefore, I am sure it is >reading the web.xml file as its configuration file. But in >the 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 in configuration >data by modifying the context.xml and web.xml as specified >in the document, also in one of your old email from the >archive. It is still not working. What am I missing? I have >IM, do you? > >thanks a million.. > >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 > >
message-footer.txt
(text/plain, 275 B)
-- 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