[Dspace-tech] [Dspace]/bin Scripts : Errors!!!!!!!

瀏覽次數:0 次
跳到第一則未讀訊息

Harsha Balasooriya

未讀,
2015年8月25日 下午2:07:382015/8/25
收件者:dspac...@lists.sourceforge.net
I have installed Dspace in following OS and packages and everthing goes fine  but I cannot excecute any script in /[dsapce]/bin directory
 
OS -Redhad ES4
apache-ant-1.8.1
apache-maven-2.2.1
apache-tomcat-6.0.29
dspace-1.6.1
jdk1.6.0_21 [from jdk-6u21-linux-i586.rpm]
 
the bin directory permission set to 777
 
 
Please help me! I have reinstalled the  set up again and again but  same error appear!
 
Error comming is  
 
[root@OUSL bin]# ./create-administrator

Warning: -Xmx256m not understood. Ignoring.
Exception in thread "main" java.lang.NoClassDefFoundError: while resolving class: org.dspace.app.launcher.ScriptLauncher
   at java.lang.VMClassLoader.resolveClass(java.lang.Class) (/usr/lib/libgcj.so.5.0.0)
   at java.lang.Class.initializeClass() (/usr/lib/libgcj.so.5.0.0)
   at java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader) (/usr/lib/libgcj.so.5.0.0)
   at java.lang.Class.forName(java.lang.String) (/usr/lib/libgcj.so.5.0.0)
   at gnu.gcj.runtime.FirstThread.run() (/usr/lib/libgcj.so.5.0.0)
   at _Jv_ThreadRun(java.lang.Thread) (/usr/lib/libgcj.so.5.0.0)
   at _Jv_RunMain(java.lang.Class, byte const, int, byte const, boolean) (/usr/lib/libgcj.so.5.0.0)
   at __gcj_personality_v0 (/usr/dspace-1.6.1/bin/java.version=1.4.2)
   at __libc_start_main (/lib/tls/libc-2.3.4.so)
   at _Jv_RegisterClasses (/usr/dspace-1.6.1/bin/java.version=1.4.2)
Caused by: java.lang.ClassNotFoundException: javax.management.DynamicMBean not found in [file:/usr/java/jdk1.6.0_21/jre/lib/, file:/usr/apache-maven-2.2.1/lib/, file:/usr/apache-ant-1.8.1/lib/, file:usr/apache-tomcat-6.0.29/lib, file:/usr/dspace-1.6.1/lib/activation-1.1.jar, file:/usr/dspace-1.6.1/lib/ant-1.7.1.jar, file:/usr/dspace-1.6.1/lib/ant-launcher-1.7.1.jar, file:/usr/dspace   ..........................................
 
 
Thank you

Keith Gilbertson

未讀,
2015年8月25日 下午2:07:392015/8/25
收件者:Harsha Balasooriya、dspac...@lists.sourceforge.net
Even though you've installed jdk1.6, it looks like your system may be using  a different version of Java.  This guess is based on this line in your error message:

   at __gcj_personality_v0 (/usr/dspace-1.6.1/bin/java.version=1.4.2)

This indicates a 1.4.2 version of the GCJ Java system.  Try reviewing the instructions linked below for installing a Sun(now Oracle) JDK 1.6 on Red Hat, and pay special attention to the section titled Setting the Default JDK with the alternatives Utility.

Luck,
Keith

------------------------------------------------------------------------------
This SF.net email is sponsored by

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev _______________________________________________
DSpace-tech mailing list
DSpac...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Keith Gilbertson

未讀,
2015年8月25日 下午2:07:402015/8/25
收件者:Harsha Balasooriya、dspac...@lists.sourceforge.net

Peter Dietz

未讀,
2015年8月25日 下午2:07:442015/8/25
收件者:Keith Gilbertson、dspac...@lists.sourceforge.net、Harsha Balasooriya
The bin scripts are all deprecated, and will be removed in 1.7.

The better way of running their functionality is through the dspace launcher.
/dspace/bin/dspace

So your command would be:
/dspace/bin/dspace create-administrator

Peter Dietz
Systems Developer/Engineer
Ohio State University Libraries
回覆所有人
回覆作者
轉寄
0 則新訊息