Hello,

It could be an issue with the OpenJDK java version you are using. To 
confirm if this seems to be the case you can try to turn on info-level 
logging. Find the log4j.properties file inside the 
<base-install-dir>/www/WEB-INF/classes. A couple of lines down in that 
file is an entry for 'log4j.logger.net.sf.basedb.core=warn'. Change 
'warn' to 'info' and try the installation again. This will print a lot 
of information, but just before it crashes there should a line 
containing something like:

'... INFO core:268 - Loading mappings files from jar: ....'

Check that path given in the log statement actually corresponds to the 
real path to the 'base-core-3.2.3.jar' file.

If the path seems not be correct, try downloading and installing a Java 
version from Oracle instead.

Hope this helps.

/Nicklas

On 2013-09-25 09:24, François Vallée wrote:
> Hello,
>
> I am trying to install BASE-3.2.3 from pre-compiled release following
> the instructions on this page :
> http://base.thep.lu.se/chrome/site/latest/html/admin/installation.main.html
> and i am stuck at the database initialization step.
>
> When I use the command :
>
> ./initdb.sh [baseadmin] baseadmpwd
>
> I have the error:
>
> [0%]    --System information-----------------------------
> BASE     : 3.2.3(build 6317)
> Database : jdbc:postgresql:base2
> Dialect  : org.hibernate.dialect.PostgreSQLDialect
> JDBC     : org.postgresql.Driver; version 9.1
> Java     : OpenJDK Runtime Environment; 1.6.0_27-b27; Sun Microsystems Inc.
> OS       : Linux; amd64; 3.2.0-53-generic
> -------------------------------------------------
> ERROR core:308 - Exception while loading mapping files
> java.util.zip.ZipException: error in opening zip file
>       at java.util.zip.ZipFile.open(Native Method)
>       at java.util.zip.ZipFile.<init>(ZipFile.java:132)
>       at java.util.jar.JarFile.<init>(JarFile.java:151)
>       at java.util.jar.JarFile.<init>(JarFile.java:88)
>       at
> net.sf.basedb.core.HibernateUtil.addStaticMappings(HibernateUtil.java:269)
>       at net.sf.basedb.core.HibernateUtil.init2(HibernateUtil.java:207)
>       at net.sf.basedb.core.Application.start(Application.java:493)
>       at net.sf.basedb.core.Install.createTables(Install.java:131)
>       at net.sf.basedb.install.InitDB.main(InitDB.java:75)
> 08:58:29,934 ERROR Application:655 - Exception when starting...
> net.sf.basedb.core.BaseException: error in opening zip file
>       at
> net.sf.basedb.core.HibernateUtil.addStaticMappings(HibernateUtil.java:309)
>       at net.sf.basedb.core.HibernateUtil.init2(HibernateUtil.java:207)
>       at net.sf.basedb.core.Application.start(Application.java:493)
>       at net.sf.basedb.core.Install.createTables(Install.java:131)
>       at net.sf.basedb.install.InitDB.main(InitDB.java:75)
> Caused by: java.util.zip.ZipException: error in opening zip file
>       at java.util.zip.ZipFile.open(Native Method)
>       at java.util.zip.ZipFile.<init>(ZipFile.java:132)
>       at java.util.jar.JarFile.<init>(JarFile.java:151)
>       at java.util.jar.JarFile.<init>(JarFile.java:88)
>       at
> net.sf.basedb.core.HibernateUtil.addStaticMappings(HibernateUtil.java:269)
>       ... 4 more
>
> [30%]    Building database failed: error in opening zip file
>
> net.sf.basedb.core.BaseException: error in opening zip file
>       at net.sf.basedb.core.Application.start(Application.java:658)
>       at net.sf.basedb.core.Install.createTables(Install.java:131)
>       at net.sf.basedb.install.InitDB.main(InitDB.java:75)
> Caused by: net.sf.basedb.core.BaseException: error in opening zip file
>       at
> net.sf.basedb.core.HibernateUtil.addStaticMappings(HibernateUtil.java:309)
>       at net.sf.basedb.core.HibernateUtil.init2(HibernateUtil.java:207)
>       at net.sf.basedb.core.Application.start(Application.java:493)
>       ... 2 more
> Caused by: java.util.zip.ZipException: error in opening zip file
>       at java.util.zip.ZipFile.open(Native Method)
>       at java.util.zip.ZipFile.<init>(ZipFile.java:132)
>       at java.util.jar.JarFile.<init>(JarFile.java:151)
>       at java.util.jar.JarFile.<init>(JarFile.java:88)
>       at
> net.sf.basedb.core.HibernateUtil.addStaticMappings(HibernateUtil.java:269)
>       ... 4 more
>
> Maybe my installation of hibernate fails somewhere but I can't figure
> out what to do to check it.
>
> Cheers,
> François
>


------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
_______________________________________________
The BASE general discussion mailing list
basedb-users@lists.sourceforge.net
unsubscribe: send a mail with subject "unsubscribe" to
basedb-users-requ...@lists.sourceforge.net

Reply via email to