How to configure DODS_HOME

"Juan R. Migoya" <[email protected]>
Newsgroups gmane.comp.java.enhydra.barracuda.general
Message-ID <[email protected]>
I'm trying to run barracudadiscrack withthe java files generated with Dods.
Well, I had some problems to compile the whole stuff and others more to run.
Now, I get this problem: It seems that the method
org.enhydra.xml.XMLConfig.newXMLConfigInstance
can't locate DODS_HOME. When I load the app into Tomcat,
this method write the message "JVM don't know abotu DOS_HOME
neither ENHYDRA_HOME."
Reading the source of this class, I can see that the cause of this is that
it can't read the DODS_HOME enviroment variable with the method getenv().
I work with Windows NT and have DODS_HOME both in the user and
in the administration enviroment. Also, in my web.xml file I have:
    <env-entry>
        <env-entry-name>DODS_HOME</env-entry-name>
        <env-entry-value>D:\Dods5.1</env-entry-value>
        <env-entry-type>java.lang.String</env-entry-type>
    </env-entry>
What must I do to feed the DODS_HOME variable into the
application?

This is part of my log file:

2003-11-13 17:07:27 StandardContext[/BarracudaDiscRack]: Servlet 
/BarracudaDiscRack threw load() exception
javax.servlet.ServletException: Servlet.init() for servlet 
ApplicationGateway threw exception
    at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:963)
    at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
    at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3420)
....
----- Root Cause -----
java.lang.ExceptionInInitializerError
    at 
com.lutris.appserver.server.sql.StandardDatabaseManager.loadLogicalDatabase(Unknown 
Source)
    at 
com.lutris.appserver.server.sql.StandardDatabaseManager.<init>(Unknown 
Source)
    at 
com.lutris.appserver.server.StandardApplication.createDatabaseManager(Unknown 
Source)
    at com.lutris.appserver.server.StandardApplication.startup(Unknown 
Source)
    at 
org.enhydra.barracuda.discRack.DiscRackGateway.setUpEnhydraApplication(DiscRackGateway.java:141)
    at 
org.enhydra.barracuda.discRack.DiscRackGateway.initializeLocal(DiscRackGateway.java:99)
    at 
org.enhydra.barracuda.core.event.ApplicationGateway.init(ApplicationGateway.java:903)
    at javax.servlet.GenericServlet.init(GenericServlet.java:256)
    at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
...
Caused by: java.lang.NullPointerException
    at org.enhydra.xml.XMLConfig.newXMLConfigInstance(Unknown Source)
    at org.enhydra.dods.Common.init(Unknown Source)
    at org.enhydra.dods.Common.<clinit>(Unknown Source)
    ... 48 more

Any help will be greatly appreciated.
Thanks in advance and best regards,
Juan R. Migoya
SPAIN
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.