sup03 Posted September 9, 2010 Share Posted September 9, 2010 Hi all,Im using JS 3.7 CE and weblogic 10gr2. when i run the command ./js-import.sh or ./js-export.sh i get the following exceptionException in thread "main" java.lang.NoClassDefFoundError: org.springframework.core.CollectionFactory at java.lang.Class.initializeClass(libgcj.so.7rh) at org.springframework.core.SimpleAliasRegistry.<init>(SimpleAliasRegistry.java:41) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.<init>(DefaultSingletonBeanRegistry.java:73) at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.<init>(FactoryBeanRegistrySupport.java:41) at org.springframework.beans.factory.support.AbstractBeanFactory.<init>(AbstractBeanFactory.java:146) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.<init>(AbstractAutowireCapableBeanFactory.java:144) at org.springframework.beans.factory.support.DefaultListableBeanFactory.<init>(DefaultListableBeanFactory.java:113) at org.springframework.context.support.GenericApplicationContext.<init>(GenericApplicationContext.java:99) at com.jaspersoft.jasperserver.export.BaseExportImportCommand.createSpringContext(BaseExportImportCommand.java:112) at com.jaspersoft.jasperserver.export.BaseExportImportCommand.process(BaseExportImportCommand.java:76) at com.jaspersoft.jasperserver.export.ImportCommand.main(ImportCommand.java:43)Caused by: java.lang.ClassNotFoundException: java.util.concurrent.ConcurrentHashMap not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:./,file:./,file:./,file:config/,file:lib/activation-1.1.jar,file:lib/ant-1.7.0.jar,file:lib/ant-launcher-1.7.0.jar,file:lib/antlr-2.7.6.jar,file:lib/aopalliance-1.0.jar,file:lib/aspectjrt-1.5.4.jar,file:lib/avalon-framework-api-4.3.1.jar,file:lib/avalon-framework-impl-4.3.1.jar,file:lib/axis-1.3.jar,file:lib/axis-jaxrpc-1.3.jar,file:lib/axis-saaj-1.3.jar,file:lib/backport-util-concurrent-3.1.jar,file:lib/batik-anim-1.7.jar,file:lib/batik-awt-util-1.7.jar,file:lib/batik-bridge-1.7.jar,file:lib/batik-css-1.7.jar,file:lib/batik-dom-1.7.jar,file:lib/batik-ext-1.7.jar,file:lib/batik-extension-1.7.jar,file:lib/batik-gvt-1.7.jar,file:lib/batik-parser-1.7.jar,file:lib/batik-script-1.7.jar,file:lib/batik-svg-dom-1.7.jar,file:lib/batik-svggen-1.7.jar,file:lib/batik-transcoder-1.7.jar,file:lib/batik-util-1.7.jar,file:lib/batik-xml-1.7.jar,file:lib/bcmail-jdk14-136.jar,file:lib/bcprov-jdk14-136.jar,file:lib/buildomatic.jar,file:lib/castor-1.2.jar,file:lib/cglib-nodep-2.2.jar,file:lib/commons-beanutils-1.8.0.jar,file:lib/commons-cli-1.2.jar,file:lib/commons-codec-1.2.jar,file:lib/commons-collections-3.2.jar,file:lib/commons-dbcp-1.2.1.jar,file:lib/commons-digester-1.7.jar,file:lib/commons-discovery-0.4.jar,file:lib/commons-fileupload-1.1.1.jar,file:lib/commons-httpclient-3.0.jar,file:lib/commons-io-1.1.jar,file:lib/commons-lang-2.4.jar,file:lib/commons-logging-1.0.4.jar,file:lib/commons-math-1.0.jar,file:lib/commons-pool-1.2.jar,file:lib/commons-vfs-1.0.jar,file:lib/dom4j-1.6.1.jar,file:lib/ehcache-1.5.0.jar,file:lib/eigenbase-properties-1.1.0.10924.jar,file:lib/eigenbase-resgen-1.3.0.11873.jar,file:lib/eigenbase-xom-1.3.0.11999.jar,file:lib/fop-0.95.jar,file:lib/groovy-all-1.5.5.jar,file:lib/hibernate-core-3.3.2.GA-HHH-2763.jar,file:lib/itext-2.1.0.jar,file:lib/jai_codec-1.1_mr.jar,file:lib/jai_core-1.1_mr.jar,file:lib/jasperreports-3.7.0.1.jar,file:lib/jasperserver-api-common-3.7.0.jar,file:lib/jasperserver-api-common-impl-3.7.0.jar,file:lib/jasperserver-api-engine-3.7.0.jar,file:lib/jasperserver-api-engine-impl-3.7.0.jar,file:lib/jasperserver-api-metadata-3.7.0.jar,file:lib/jasperserver-api-metadata-impl-3.7.0.jar,file:lib/jasperserver-common-ws-3.7.0.jar,file:lib/jasperserver-core-util-3.7.0.jar,file:lib/jasperserver-export-tool-3.7.0.jar,file:lib/jasperserver-repository-hibernate-3.7.0.jar,file:lib/jasperserver-war-jar-3.7.0.jar,file:lib/javacup-0.10k.jar,file:lib/javassist-3.7.ga.jar,file:lib/jcommon-1.0.15.jar,file:lib/jdtcore-3.1.0.jar,file:lib/jfreechart-1.0.12.jar,file:lib/ji-jpivot-3.7.0-20091215.224053-10.jar,file:lib/ji-wcf-3.7.0-20091102.093419-7.jar,file:lib/jline-0.9.94.jar,file:lib/json-org-1.0.jar,file:lib/jsr107cache-1.0.jar,file:lib/jstl-1.1.2.jar,file:lib/jta-1.1.jar,file:lib/junit-3.8.1.jar,file:lib/jxl-2.6.jar,file:lib/log4j-1.2.12.jar,file:lib/mail-1.4.jar,file:lib/mondrian-3.1.1.12687-Jaspersoft.jar,file:lib/mysql-connector-java-5.1.10.jar,file:lib/ognl-2.7.3.jar,file:lib/ojdbc5.jar,file:lib/olap4j-0.9.7.145.jar,file:lib/oro-2.0.8.jar,file:lib/png-encoder-1.5.jar,file:lib/postgresql-8.1-407.jdbc3.jar,file:lib/quartz-1.5.1-jaspersoft.jar,file:lib/serializer-2.7.1.jar,file:lib/sitemesh-2.2.1-JasperSoft.jar,file:lib/slf4j-api-1.5.8.jar,file:lib/slf4j-log4j12-1.5.8.jar,file:lib/spring-2.5.6.SEC01.jar,file:lib/spring-binding-2.0.7.RELEASE.jar,file:lib/spring-context-support-2.5.6.SEC01.jar,file:lib/spring-js-2.0.7.RELEASE.jar,file:lib/spring-orm-2.5.6.SEC01.jar,file:lib/spring-security-core-2.0.4.jar,file:lib/spring-tx-2.5.6.SEC01.jar,file:lib/spring-web-2.5.6.SEC01.jar,file:lib/spring-webflow-2.0.7.RELEASE.jar,file:lib/spring-webmvc-2.5.6.SEC01.jar,file:lib/standard-1.1.2.jar,file:lib/wsdl4j-1.5.1.jar,file:lib/xalan-2.7.1.jar,file:lib/xercesImpl-2.7.1.jar,file:lib/xml-apis-ext-1.3.04.jar,file:lib/xmlgraphics-commons-1.3.1.jar], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}} at java.net.URLClassLoader.findClass(libgcj.so.7rh) at java.lang.ClassLoader.loadClass(libgcj.so.7rh) at java.lang.ClassLoader.loadClass(libgcj.so.7rh) at java.lang.VMClassLoader.defineClass(libgcj.so.7rh) at java.lang.ClassLoader.defineClass(libgcj.so.7rh) at java.security.SecureClassLoader.defineClass(libgcj.so.7rh) at java.net.URLClassLoader.findClass(libgcj.so.7rh) at java.lang.ClassLoader.loadClass(libgcj.so.7rh) at java.lang.ClassLoader.loadClass(libgcj.so.7rh) at java.lang.Class.forName(libgcj.so.7rh) at java.lang.Class.initializeClass(libgcj.so.7rh)Is it because of java version. we are using java version "1.4.2". Thanks Link to comment Share on other sites More sharing options...
tkavanagh Posted September 9, 2010 Share Posted September 9, 2010 Java 1.4 will definitely create a problem at some point. JasperServer is compatible with java 1.5 and java 1.6.It will be necessary to upgrade to 1.5 or 1.6. Link to comment Share on other sites More sharing options...
sup03 Posted September 13, 2010 Author Share Posted September 13, 2010 Thanks Tony. I have upgraded java to 1.6. Now i am able to run js-import command in the JS machine :). But we are still facing the issue when import is done from build server. We have a build server and the script to import will be run from build server. Build server and target JS are 2 seperate machines. The script on build server will just connect to the JS macnhine and run import command. Java version on build server is also 1.6. Link to comment Share on other sites More sharing options...
tkavanagh Posted September 14, 2010 Share Posted September 14, 2010 Let me know what error you are getting. The import-export operation connects to the database via JDBC. So, it is possible to have a build server (ie with all the jasperserver code, import-export, etc) and have the build server point to a target Test, Staging or Production server in order to import resources into the target instance. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now