Re: [base] BASE installation issue
That was just a directory name with accents in the path. Thank you ! Le 25/09/2013 11:19, Nicklas Nordborg a écrit : > 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 > /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.(ZipFile.java:132) >>at java.util.jar.JarFile.(JarFile.java:151) >>at java.util.jar.JarFile.(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.(ZipFile.java:132) >>at java.util.jar.JarFile.(JarFile.java:151) >>at java.util.jar.JarFile.(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.(ZipFile.java:132) >>at java.util.jar.JarFile.(JarFile.java:151) >>at java.util.jar.JarFile.(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 > __
Re: [base] BASE installation issue
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 /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.(ZipFile.java:132) > at java.util.jar.JarFile.(JarFile.java:151) > at java.util.jar.JarFile.(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.(ZipFile.java:132) > at java.util.jar.JarFile.(JarFile.java:151) > at java.util.jar.JarFile.(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.(ZipFile.java:132) > at java.util.jar.JarFile.(JarFile.java:151) > at java.util.jar.JarFile.(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
[base] BASE installation issue
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.(ZipFile.java:132) at java.util.jar.JarFile.(JarFile.java:151) at java.util.jar.JarFile.(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.(ZipFile.java:132) at java.util.jar.JarFile.(JarFile.java:151) at java.util.jar.JarFile.(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.(ZipFile.java:132) at java.util.jar.JarFile.(JarFile.java:151) at java.util.jar.JarFile.(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 -- François Vallée INRA - Centre Angers-Nantes 42 rue Georges Morel - BP 60057 49071 Beaucouzé cedex - France Tel. : +33 (0)2 41 22 57 40 -- 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
Re: [base] BASE Installation
Hi Niklas, 1. Included the 1-line at the beginning to the catalina.sh script in bin/ directory of my tomcat installation: CATALINA_OPTS="-Xmx500m -Dorg.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPING=false" 2. re-started the server 3. everything ok. -- ___ 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
Re: [base] BASE Installation
You need to set the CATALINA_OPTS environment variable and disable the STRICT_QUOTE_ESCAPING options. For more information see the installation documentation: http://base.thep.lu.se/chrome/site/latest/html/admindoc/installation_upgrade/installation_upgrade.installation.html /Nicklas Wagied Davids wrote: > Hi, > > > I am new to BASE, and trying to install the software. > > I have already performed the database server set-up, works! > Encountered a problem with viewing the welcome page on > http://localhost:8080/base2 > > > S > Web server: Apache Tomcat/6.0.20 > jdk: 1.6.0_14-b08 > OS: openSuse > MySQL: 5.0.67 SUSE MySQL > > > > Here is the problem offending section line (146:18): > > > > 145 146 title="<%=numItems + ". " + shortName + %>" > 147 onclick="<%="Main.viewOrEditItem('" + ID + "', '" + itemType.name() + "', > " + itemId + ")"%>" > > 148 tooltip="<%="Go to " + HTML.encodeTags(fullName) + " (" + itemType + > ")"%>" > 149 /> > > > Here is the stack trace: > - > > javax.servlet.ServletException: javax.servlet.jsp.JspTagException: > org.apache.jasper.JasperException: /include/menu.jsp(146,18) Attribute value > numItems + ". " + shortName + is quoted with " which must be escaped when > used within the value > > > org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:858) > > org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791) > org.apache.jsp.main_jsp._jspService(main_jsp.java:516) > > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) > javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374) > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342) > > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267) > javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > > net.sf.basedb.clients.web.servlet.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:70) > > > org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390) > > *root cause* > > org.apache.jasper.JasperException: /include/menu.jsp(146,18) Attribute value > numItems + ". " + shortName + is quoted with " which must be escaped when > used within the value > > > org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40) > > org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407) > > org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:198) > > org.apache.jasper.compiler.Parser.parseQuoted(Parser.java:299) > org.apache.jasper.compiler.Parser.parseAttributeValue(Parser.java:249) > org.apache.jasper.compiler.Parser.parseAttribute(Parser.java:211) > org.apache.jasper.compiler.Parser.parseAttributes(Parser.java:154) > > org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1250) > org.apache.jasper.compiler.Parser.parseElements(Parser.java:1462) > org.apache.jasper.compiler.Parser.parseBody(Parser.java:1670) > org.apache.jasper.compiler.Parser.parseOptionalBody(Parser.java:1020) > > org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1288) > org.apache.jasper.compiler.Parser.parseElements(Parser.java:1462) > org.apache.jasper.compiler.Parser.parse(Parser.java:137) > > org.apache.jasper.compiler.ParserController.doParse(ParserController.java:255) > > > org.apache.jasper.compiler.ParserController.parse(ParserController.java:103) > org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:170) > org.apache.jasper.compiler.Compiler.compile(Compiler.java:332) > org.apache.jasper.compiler.Compiler.compile(Compiler.java:312) > > org.apache.jasper.compiler.Compiler.compile(Compiler.java:299) > > org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586) > > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317) > > avax.servlet.ServletException: javax.servlet.jsp.JspTagException: > org.apache.jasper.JasperException: /include/menu.jsp(146,18) Attribute value > numItems + ". " + shortName + is quoted with " which must be escaped when > used within the value > > > org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:858) > > org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791) > org.apache.jsp.main_jsp._jspService(main_jsp.java:516) > > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) > javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374) > or
[base] BASE Installation
Hi, I am new to BASE, and trying to install the software. I have already performed the database server set-up, works! Encountered a problem with viewing the welcome page on http://localhost:8080/base2 S Web server: Apache Tomcat/6.0.20 jdk: 1.6.0_14-b08 OS: openSuse MySQL: 5.0.67 SUSE MySQL Here is the problem offending section line (146:18): 145 " 147 onclick="<%="Main.viewOrEditItem('" + ID + "', '" + itemType.name() + "', " + itemId + ")"%>" 148 tooltip="<%="Go to " + HTML.encodeTags(fullName) + " (" + itemType + ")"%>" 149 /> Here is the stack trace: - javax.servlet.ServletException: javax.servlet.jsp.JspTagException: org.apache.jasper.JasperException: /include/menu.jsp(146,18) Attribute value numItems + ". " + shortName + is quoted with " which must be escaped when used within the value org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:858) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791) org.apache.jsp.main_jsp._jspService(main_jsp.java:516) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) net.sf.basedb.clients.web.servlet.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:70) org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390) *root cause* org.apache.jasper.JasperException: /include/menu.jsp(146,18) Attribute value numItems + ". " + shortName + is quoted with " which must be escaped when used within the value org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40) org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407) org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:198) org.apache.jasper.compiler.Parser.parseQuoted(Parser.java:299) org.apache.jasper.compiler.Parser.parseAttributeValue(Parser.java:249) org.apache.jasper.compiler.Parser.parseAttribute(Parser.java:211) org.apache.jasper.compiler.Parser.parseAttributes(Parser.java:154) org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1250) org.apache.jasper.compiler.Parser.parseElements(Parser.java:1462) org.apache.jasper.compiler.Parser.parseBody(Parser.java:1670) org.apache.jasper.compiler.Parser.parseOptionalBody(Parser.java:1020) org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1288) org.apache.jasper.compiler.Parser.parseElements(Parser.java:1462) org.apache.jasper.compiler.Parser.parse(Parser.java:137) org.apache.jasper.compiler.ParserController.doParse(ParserController.java:255) org.apache.jasper.compiler.ParserController.parse(ParserController.java:103) org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:170) org.apache.jasper.compiler.Compiler.compile(Compiler.java:332) org.apache.jasper.compiler.Compiler.compile(Compiler.java:312) org.apache.jasper.compiler.Compiler.compile(Compiler.java:299) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317) avax.servlet.ServletException: javax.servlet.jsp.JspTagException: org.apache.jasper.JasperException: /include/menu.jsp(146,18) Attribute value numItems + ". " + shortName + is quoted with " which must be escaped when used within the value org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:858) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791) org.apache.jsp.main_jsp._jspService(main_jsp.java:516) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) net.sf.basedb.clients.web.servlet.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:70) org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390) *root cause* org.apache.jasper.JasperException: /include/menu.jsp(146,18) Attribute value numItems + ". " + shortName