This revised guide supports version 1.3 of the Dataverse Network application. Use this guide to create a development environment in which you can view, modify, or add to the existing DVN core code. Also see the Dataverse Network Project Forum for additional information about specific platforms and versions.
Required components for the development environment are:
You can download all of the required components from the Internet.
Note: You do not need to install the DVN-DSB package from SourceForge.Net, unless you choose to work with the DVN data subsetting function. See the Installers Guide for information about installing and configuring this package.
Read the following topics for detailed information about how to install and set up a development environment:
Use the following checklist to create the DVN development environment.
Note: You must have superuser (admin or root user) privileges on the installation machine. Also, all ports mentioned in this guide are defaults specified by the applicationsused, and you can substitute your own port numbers if you choose.
DVN-EAR package.To access your local DVN application, run or deploy the application from the NetBeans IDE. The default location for the deployed DVN application is http://localhost:8080/dvn.
Install the components of the development environment:
If you are not using the minimum Java platform version in your environment, go to http://java.sun.com/javase/downloads/index.jsp and update to this version.
To install the NetBeans Web bundle, including the GlassFish server:
Install PostgreSQL and the pgAdmin utility. If you encounter problems installing PostgreSQL, be sure to check the Dataverse Network Forum for platform-specific information that might help you resolve issues.
Note: The JDBC driver used with PostgreSQL is packaged with the DVN core code.
To install and set up the DBMS:
secret.http://localhost:5432.dvnApp and the password to secret. Accept all default settings.<your database name>, and the owner to dvnApp. Accept all default settings.Install an SVN client:
http://www.netbeans.org/kb/60/ide/subversion.html.https://dvn.svn.sourceforge.net/svnroot/dvnIf you choose to check out the DVN project packages from a command line, enter the following:
svn co <https://dvn.svn.sourceforge.net/svnroot/dvn dvn
Note: Make sure that you check out the DVN-EAR release that uses the GlassFish version which you installed with NetBeans.
After you install the DVN development environment, configure the NetBeans IDE with project-specific settings for the DVN. Also see the GlassFish server configuration.
To configure NetBeans, open the IDE and perform the following:
DVN-EAR project.DVN-EAR project as the main project. To check that your environment is configured properly, perform a build for the main project, DVN-EAR. Resolve any errors before you continue.
Complete the following NetBeans configurations before you build the main project:
Use the Library Tool and add a new class library, dvn-WEB, with the following 16 classpaths:
<SVN>/lib/commons-beanutils.jar<SVN>/lib/commons-codec-1.3.jar<SVN>/lib/commons-collections-3.2.jar<SVN>/lib/commons-digester-1.7.jar<SVN>/lib/commons-el.jar<SVN>/lib/commons-httpclient-3.0.1.jar<SVN>/lib/commons-io-1.4.jar<SVN>/lib/commons-lang-2.4.jar<SVN>/lib/commons-logging-1.1.jar<SVN>/lib/dvn-defaulttheme.jar<SVN>/lib/dvn-webui.jar<SVN>/lib/harvester2.jar<SVN>/lib/log4j-1.2.12.jar<SVN>/lib/oaicat.jar<SVN>/lib/recaptcha4j-0.0.7.jar<SVN>/lib/xalan.jarAdd a second new class library, dvn-EJB, with the following 17 classpaths:
<SVN>/lib/commons-codec-1.3.jar<SVN>/lib/commons-httpclient-3.0.1.jar<SVN>/lib/commons-io-1.4.jar<SVN>/lib/commons-lang-2.4.jar<SVN>/lib/datax.jar<SVN>/lib/handle.jar<SVN>/lib/harvester2.jar<SVN>/lib/jhove-handler.jar<SVN>/lib/jhove-module.jar<SVN>/lib/jhove.jar<SVN>/lib/license.jar<SVN>/lib/log4j-1.2.12.jar<SVN>/lib/lucene-core-2.3.2.jar<SVN>/lib/marc4j.jar<SVN>/lib/nesstar_api.jar<SVN>/lib/NesstarHarvester.jar<SVN>/lib/normalizer.jar<SVN>/lib/oaicat.jar<SVN>/lib/parser.jar<SVN>/lib/REngine.jar<SVN>/lib/Rserve.jar<SVN>/lib/VDCNet-jaxb.jar<SVN>/lib/xalan.jardvn-Ice, with the following 13 classpaths:
<SVN>/lib/icefaces/backport-util-concurrent.jar<SVN>/lib/icefaces/commons-beanutils.jar<SVN>/lib/icefaces/commons-collections.jar<SVN>/lib/icefaces/commons-digester.jar<SVN>/lib/icefaces/commons-discovery.jar<SVN>/lib/icefaces/commons-fileupload.jar<SVN>/lib/icefaces/commons-logging.jar<SVN>/lib/icefaces/el-ri.jar<SVN>/lib/icefaces/icefaces.jar<SVN>/lib/icefaces/icefaces-bm.jar<SVN>/lib/icefaces/icefaces-comps.jar<SVN>/lib/icefaces/icefaces-facelets.jar<SVN>/lib/icefaces/krysalis-jCharts-1.0.0-alpha-1.jarSet up the DVN-WEB project properties:
Web UI componentsWeb UI default themesJSF1.1/1.2 support (Package)DVN-ejb - dist/DVN-ejb.jar (Package)dvn-WEB (Package)dvn-Ice (Package)WEB-INF/lib as the path in the WAR for all of them:
dvn-WEBdvn-IceWeb UI componentsWeb UI Default ThemesJSF1.1/1.2 supportExceptionhandler-runtimeSet up the DVN-EJB project properties:
dvn-EJB (Package).After you install the DVN development environment, configure the GlassFish server. Also see the NetBeans IDE configuration.
To configure GlassFish:
jar file from the/<SVN>/doc/PostgresDriver directory and paste it in the/<glassfish>/lib directory.postgresql-8.3-603.jdbc4.jar file./<SVN>/working_directory directory and paste them in /<glassfish>/domains/domain1/config directory.http://localhost:4848.-Djhove.conf.dir=${com.sun.aas.instanceRoot}/config-Ddvn.inetAddress=localhost:8080-Dvdc.export.log.dir=${com.sun.aas.instanceRoot}/logs/export-Dvdc.temp.file.dir=${com.sun.aas.instanceRoot}/config/files/temp-Dvdc.import.log.dir=${com.sun.aas.instanceRoot}/logs/import-Dvdc.study.file.dir=${com.sun.aas.instanceRoot}/config/files/studies-Dvdc.dsb.host=<DSB component host URL>-Ddsb.rserve.host=<R host machine domain>-Ddsb.rserve.port=<R host machine port>-Dvdc.dsb.rserve.user=<account>-Dvdc.dsb.rserve.pwrd=<password>-Dvdc.dsb.rserve.port=<port number>-Dvdc.dsb.port=<DSB component host port>-Ddvn.index.location=${com.sun.aas.instanceRoot}/config-Ddvn.googleanalytics.key=<googleanalyticsTrackingCode> (Optional)-Djava.util.logging.config.file= ${com.sun.aas.instanceRoot}/config/logging.properties (Optional)Notes: To customize error logging, edit the <glassfish>/config/logging.properties file and change WARNING to INFO.
Also, see Install RServe for information about configuring the -Dvdc.dsb.rserve values in the Rserv.conf and Rserv.pwd files.
–client to –server.-Xms512m to –Xms1024m.-Xmx512m to –Xmx1024m.Note: Make sure that the Xms and Xmx settings have the same value.
To build and deploy the DVN application:
referencedData.sql script from the PostgreSQL pgAdmin tool to poplulate the database with default values:
referenceData.sql in the directory /<SVN>/src/DVN-EJB/src.conf.By default, the DVN application deploys from the build directory. To deploy from the GlassFish directory:
To access your local DVN application, run or deploy the application from the NetBeans IDE. The default location for the deployed DVN application is http://localhost:8080/dvn.
Upgrades to the development environment to support version 1.3 were extensive.
The Project recommends that you review the full Developers Guide to upgrade your environment. Pay particular attention to the Configure NetBeans and Configure GlassFish sections.