Re: How to configure DODS_HOME

Jacob Kjome <[email protected]>
Newsgroups gmane.comp.java.enhydra.barracuda.general
Message-ID <[email protected]>
Hi Juan,

What version of BarracudaDiscRack are you using? It should work with no 
modifications at all.  Just use ant to generate the .war file and deploy 
that to Tomcat.  It should just work.  All the Dods stuff is pre-generated 
and set to use.

Note that if you are trying to compile against newer Dods and such, things 
might not work.  The Dods stuff that BarracudaDiscRack uses depends on the 
version in Enhydra3.1.1beta (which BaracudaDiscRack includes as a stripped 
down  jar file in WEB-INF/lib).  There hasn't been, nor will there be (at 
least by me) any attempt to bring this up to date with the latest Dods 
stuff.  I just don't use it.  I have verified that everything works under 
Tomcat versions 4.1.xx and 5.0.xx.  If you are running this under Enhydra 
5.1, you might ask those guys how to get it to run(I'm not even sure 
they've verified it?).  My expertise is in Barracuda and XMLC, but not 
Enhydra (haven't used it in a long time).

Can anyone else provide any help here?

Jake

At 05:21 PM 11/13/2003 +0100, you wrote:
>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
>
>
>_______________________________________________
>Barracuda mailing list
>[email protected]
>http://barracudamvc.org/lists/listinfo/barracuda
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.