ObjectWeb Consortium
Search ObjectWeb Mail Archive: 

Advanced Search - Powered by Google


Mail Archive Home | enhydra List | March 2005 Index

<--  Date Index  --> <--  Thread Index  -->

Application start problem


Ok. I give up.  I hope someone else here will be able to help me out, because 
I've been at this for over a day now.  Any help is greatly appreciated.

I finally decided to make the upgrade from Enhydra 3.1 to Enhydra 6.2.  The 
compilation process was easy.  I just made a handful of import changes (after 
looking at jars to see where everything went) and I was compiling with no 
problem.  Very backwards compatible.  Good job.

Trying to start the application, however, has been an exercise in futility 
for me.  After educating myself about the web.xml file and extensive reading 
the Enhydra documentation, I keep getting the same error every time.

- Key "LogFile" not found in configuration

I was trying to maintain the use of my previous .conf file.  I thought I did 
everything right, with the use of the correct "ConfFileClass" and the 
addition of the <resource-env-ref>.

Obviously, I had the Server.LogFile statement in my .conf file.

Here's some other things that I tried:

I converted my .conf file to web.xml using the utility provided.  Still the 
same error.

I edited out my application's entry point class (the one that extends 
StandardApplication) so that it doesn't do anything.  Still the same error.

I changed the logging to use Log4j instead in the web.xml.  Still the same 
error.


Could some kind of early error be triggered that causes Enhydra to try and 
use the default logging to be used and the error is happening so early that 
the configuration has not been read yet?

One other thing I tried was to take the calculator sample app and 
uncomment/comment the web.xml file so that it would use it's .conf file.  
This resulted in the same error message for the calculator app, but it loads 
fine if I put it back to using only web.xml.


Here's how my web/xml file looks at the moment (application specific settings 
removed):

<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 
2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd";>
<web-app>
  <servlet>
    <servlet-name>enhydra</servlet-name>
    
<servlet-class>com.lutris.appserver.server.httpPresentation.servlet.HttpPresentationServlet</servlet-class>
    <init-param>
      <param-name>ConfFile</param-name>
      <param-value>web.xml</param-value>
    </init-param>
    <init-param>
      <param-name>ConfFileClass</param-name>
      <param-value>org.enhydra.util.XMLConfigFile</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
  </servlet>
  <servlet-mapping>
    <servlet-name>enhydra</servlet-name>
    <url-pattern>/*</url-pattern>
  </servlet-mapping>

  <env-entry>
    <description></description>
    <env-entry-name>Server/AppClass</env-entry-name>
    <env-entry-value>com.nassets.conduits.NetAssets</env-entry-value>
    <env-entry-type>java.lang.String</env-entry-type>
  </env-entry>

  <env-entry>
    <description></description>
    <env-entry-name>Server/PresentationPrefix</env-entry-name>
    <env-entry-value>com/nassets/conduits/presentation</env-entry-value>
    <env-entry-type>java.lang.String</env-entry-type>
  </env-entry>

  <env-entry>
    <description></description>
    <env-entry-name>Server/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>
    <description></description>
    <env-entry-name>Server/Log4j</env-entry-name>
    <env-entry-value>../conf/log4j.xml</env-entry-value>
    <env-entry-type>java.lang.String</env-entry-type>
  </env-entry>



<--  Date Index  --> <--  Thread Index  -->

Reply via email to:

Powered by MHonArc.

Copyright © 1999-2005, ObjectWeb Consortium | contact | webmaster.