Stuart,

I have installed the Sun Java JDK as provided and outlined here,
http://java.sun.com/javase/downloads/index_jdk5.jsp 
http://java.sun.com/javase/6/webnotes/install/jdk/install-linux-self-ext
racting.html

Reran the ./dsrun net.handle.server.SimpleSetup
[dspace]/handle-server
and I am still getting the same java error, mentioned below, after
providing the encrypted private key passphrase.  I even rebooted the
server just in case.  Any help is greatly appreciated.

Greg

-----Original Message-----
From: Stuart Lewis [mailto:[email protected]] 
Sent: Wednesday, January 27, 2010 6:28 PM
To: Heh, Gregory
Cc: [email protected]
Subject: Re: [Dspace-tech] Handle SimpleSetup Java Error

Hi,

It looks like you are using the GNU Java JDK. If you install and use the
Sun Java JDK your problem will likely go away.

Thanks,


Stuart Lewis
IT Innovations Analyst and Developer
Te Tumu Herenga The University of Auckland Library
Auckland Mail Centre, Private Bag 92019, Auckland 1142, New Zealand
Ph: 64 9 373-7599 x81928
http://www.library.auckland.ac.nz/



On 28/01/2010, at 9:59 AM, Heh, Gregory wrote:

> Dspace version 1.5.2
>  
> When running command ./dsrun net.handle.server.SimpleSetup
[dspace]/handle-server
>  
> I get the following error after setting my private key passphrase:
>  
> Exception in thread "main" java.lang.NoClassDefFoundError:
> net.handle.security.provider.SunJceHdlSecurityProvider
>     at java.lang.Class.initializeClass(libgcj.so.7rh)
>     at java.lang.Class.forName(libgcj.so.7rh)
>     at java.lang.Class.forName(libgcj.so.7rh)
>     at
>
net.handle.security.HdlSecurityProvider.getInstance(HdlSecurityProvider.
java
> :36)
>     at net.handle.hdllib.Util.encrypt(Util.java:890)
>     at net.handle.hdllib.Util.encryptIfPossible(Util.java:931)
>     at
net.handle.server.SimpleSetup.generateKeys(SimpleSetup.java:527)
>     at net.handle.server.SimpleSetup.main(SimpleSetup.java:331)
>  Caused by: java.lang.ClassNotFoundException:
> com.sun.crypto.provider.SunJCE not found in
>
gnu.gcj.runtime.SystemClassLoader{urls=[file:./,file:/mnt/opt/dspace/lib
/act
>
ivation-1.1.jar,file:/mnt/opt/dspace/lib/bcmail-jdk14-136.jar,file:/mnt/
opt/
>
dspace/lib/bcprov-jdk14-136.jar,file:/mnt/opt/dspace/lib/commons-cli-1.0
.jar
>
,file:/mnt/opt/dspace/lib/commons-codec-1.3.jar,file:/mnt/opt/dspace/lib
/com
>
mons-collections-3.2.jar,file:/mnt/opt/dspace/lib/commons-dbcp-1.2.2.jar
,fil
>
e:/mnt/opt/dspace/lib/commons-fileupload-1.2.1.jar,file:/mnt/opt/dspace/
lib/
>
commons-io-1.4.jar,file:/mnt/opt/dspace/lib/commons-lang-2.2.jar,file:/m
nt/o
>
pt/dspace/lib/commons-logging-1.0.jar,file:/mnt/opt/dspace/lib/commons-p
ool-
>
1.4.jar,file:/mnt/opt/dspace/lib/dom4j-1.6.1.jar,file:/mnt/opt/dspace/li
b/ds
>
pace-api-1.5.2.jar,file:/mnt/opt/dspace/lib/dspace-api-lang-1.5.2.1.jar,
file
>
:/mnt/opt/dspace/lib/fontbox-0.1.0.jar,file:/mnt/opt/dspace/lib/handle-5
.3.4
>
.jar,file:/mnt/opt/dspace/lib/icu4j-3.4.4.jar,file:/mnt/opt/dspace/lib/j
argo
>
n-1.4.25.jar,file:/mnt/opt/dspace/lib/jaxen-1.1.jar,file:/mnt/opt/dspace
/lib
>
/jdom-1.0.jar,file:/mnt/opt/dspace/lib/jempbox-0.2.0.jar,file:/mnt/opt/d
spac
>
e/lib/log4j-1.2.14.jar,file:/mnt/opt/dspace/lib/lucene-analyzers-2.3.0.j
ar,f
>
ile:/mnt/opt/dspace/lib/lucene-core-2.3.0.jar,file:/mnt/opt/dspace/lib/m
ail-
>
1.4.jar,file:/mnt/opt/dspace/lib/mets-1.5.2.jar,file:/mnt/opt/dspace/lib
/oro
>
-2.0.8.jar,file:/mnt/opt/dspace/lib/pdfbox-0.7.3.jar,file:/mnt/opt/dspac
e/li
>
b/poi-2.5.1-final-20040804.jar,file:/mnt/opt/dspace/lib/postgresql-8.1-4
08.j
>
dbc3.jar,file:/mnt/opt/dspace/lib/rome-0.8.jar,file:/mnt/opt/dspace/lib/
tm-e
>
xtractors-0.4.jar,file:/mnt/opt/dspace/lib/xalan-2.7.0.jar,file:/mnt/opt
/dsp
>
ace/lib/xercesImpl-2.8.1.jar,file:/mnt/opt/dspace/lib/xml-apis-1.3.02.ja
r,fi
>
le:/mnt/opt/dspace/lib/xmlParserAPIs-2.0.2.jar,file:/mnt/opt/dspace/conf
ig/]
> , parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
>     at java.net.URLClassLoader.findClass(libgcj.so.7rh)
>     at gnu.gcj.runtime.SystemClassLoader.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)
>     ...7 more
>  
> Any help is greatly appreciated.  Thank you.
>  
> Greg
>  
> This email message and any files transmitted with it are intended only
for the use of the individual or entity to which it is addressed and may
contain information that is privileged, confidential, and exempt from
disclosure under applicable law.  Any use, distribution, copying or
disclosure by anyone other than the intended individual or entity is
prohibited without prior approval.  If you have received this
information in error, please notify the sender immediately.
> 
>
------------------------------------------------------------------------
------
> 
> The Planet: dedicated and managed hosting, cloud storage, colocation
> Stay online with enterprise data centers and the best network in the
business
> Choose flexible plans and management services without long-term
contracts
> Personal 24x7 support from experience hosting pros just a phone call
away.
>
http://p.sf.net/sfu/theplanet-com_______________________________________
________
> DSpace-tech mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dspace-tech



This email message and any files transmitted with it are intended only for the 
use of the individual or entity to which it is addressed and may contain 
information that is privileged, confidential, and exempt from disclosure under 
applicable law.  Any use, distribution, copying or disclosure by anyone other 
than the intended individual or entity is prohibited without prior approval.  
If you have received this information in error, please notify the sender 
immediately.


------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to