Fórum

[RESOLVED] java.lang.NoClassDefFoundError: com/sun/crypto/provider/SunJCE

Romain Wilbert, modificado 12 Anos atrás.

[RESOLVED] java.lang.NoClassDefFoundError: com/sun/crypto/provider/SunJCE

New Member Postagens: 5 Data de Entrada: 16/11/10 Postagens Recentes
I get that error when I try to start Liferay EE 6.1.10 on a Jonas 5.2.3 server (I am trying to deploy the war on a existant server).

It seems this happens while trying to read the licence data.

By the way, where do I have to put the licence xml file ? In the deploy folder of Jonas ?

It's a pity there is no documentation on running the war on a Jonas server (had to deal with classloader issues / libraries conflits...)

Thanks if you can bring me any help.
thumbnail
David H Nebinger, modificado 12 Anos atrás.

RE: java.lang.NoClassDefFoundError: com/sun/crypto/provider/SunJCE

Liferay Legend Postagens: 14916 Data de Entrada: 02/09/06 Postagens Recentes
Are you using a non-sun/non-oracle jdk/jre?
Romain Wilbert, modificado 12 Anos atrás.

RE: java.lang.NoClassDefFoundError: com/sun/crypto/provider/SunJCE

New Member Postagens: 5 Data de Entrada: 16/11/10 Postagens Recentes
David H Nebinger:
Are you using a non-sun/non-oracle jdk/jre?


Hi David,

I am using the sun jre 1.6.0 update24.

I tried to add these 2 packages in the Jonas osgi "bootdelegation-packages" configuration :

com.sun.crypto, \
com.sun.crypto.*, \

Didn't change anything.
thumbnail
Hitoshi Ozawa, modificado 12 Anos atrás.

RE: java.lang.NoClassDefFoundError: com/sun/crypto/provider/SunJCE

Liferay Legend Postagens: 7942 Data de Entrada: 24/03/10 Postagens Recentes
In the deploy folder of Jonas ?


Yes.

It may not help you too much, but the only document there is, is the following:

http://www.liferay.com/community/wiki/-/wiki/Main/Jonas+Tips
Romain Wilbert, modificado 12 Anos atrás.

RE: java.lang.NoClassDefFoundError: com/sun/crypto/provider/SunJCE

New Member Postagens: 5 Data de Entrada: 16/11/10 Postagens Recentes
OK I managed to pass this error, adding the "com.sun.crypto.provider" package in the "osgi-system-packages" located in "defaults.properties" osgi configuration file :

osgi-system-packages org.osgi.framework; version=1.5.0, \
org.osgi.framework.launch; version=1.0.0, \
org.osgi.framework.hooks.service; version=1.0.0, \
org.osgi.service.packageadmin; version=1.2.0, \
org.osgi.service.startlevel; version=1.1.0, \
org.osgi.service.url; version=1.0.0, \
org.osgi.util.tracker; version=1.4.0, \
com.sun.crypto.provider;