Skip to main content

Verifier crash?

2 replies [Last post]
Anonymous

verifier.bat today told me this:

Error Name :
com.sun.enterprise.tools.verifier.tests.persistence.DefaultProviderVerification
Error Description : java.lang.NoClassDefFoundError:
junit/framework/TestCase

at java.lang.ClassLoader.defineClass1(Native Method)

at java.lang.ClassLoader.defineClass(ClassLoader.java:620)

at
com.sun.enterprise.loader.EJBClassLoader$DelegatingClassLoader.findClass(EJBClassLoader.java:1406)

at java.lang.ClassLoader.loadClass(ClassLoader.java:306)

at java.lang.ClassLoader.loadClass(ClassLoader.java:251)

at
oracle.toplink.essentials.ejb.cmp3.persistence.PersistenceUnitProcessor.isEntity(PersistenceUnitProcessor.java:316)

at
oracle.toplink.essentials.ejb.cmp3.persistence.PersistenceUnitProcessor.getEntityClassNamesFromURL(PersistenceUnitProcessor.java:301)

at
oracle.toplink.essentials.internal.ejb.cmp3.metadata.MetadataProcessor.buildEntityClassSetFromAnnotations(MetadataProcessor.java:501)

at
oracle.toplink.essentials.internal.ejb.cmp3.metadata.MetadataProcessor.buildEntityList(MetadataProcessor.java:462)

at
oracle.toplink.essentials.ejb.cmp3.persistence.PersistenceUnitProcessor.processORMetadata(PersistenceUnitProcessor.java:366)

at
oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:607)

at
oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.createContainerEntityManagerFactory(EntityManagerFactoryProvider.java:244)

at
com.sun.enterprise.tools.verifier.tests.persistence.DefaultProviderVerification.check(DefaultProviderVerification.java:103)

at com.sun.enterprise.tools.verifier.CheckMgr.check(CheckMgr.java:133)

at
com.sun.enterprise.tools.verifier.persistence.PersistenceUnitCheckMgrImpl.check(PersistenceUnitCheckMgrImpl.java:96)

at
com.sun.enterprise.tools.verifier.CheckMgr.checkPersistenceUnits(CheckMgr.java:390)

at
com.sun.enterprise.tools.verifier.ejb.EjbCheckMgrImpl.check(EjbCheckMgrImpl.java:80)

at
com.sun.enterprise.tools.verifier.BaseVerifier.verify(BaseVerifier.java:146)

at
com.sun.enterprise.tools.verifier.ejb.EjbVerifier.verify(EjbVerifier.java:78)

at
com.sun.enterprise.tools.verifier.VerificationHandler.runVerifier(VerificationHandler.java:236)

at
com.sun.enterprise.tools.verifier.VerificationHandler.verifyArchive(VerificationHandler.java:141)

at com.sun.enterprise.tools.verifier.Verifier.verify(Verifier.java:144)

at com.sun.enterprise.tools.verifier.Verifier.main(Verifier.java:114)

Caused by: java.lang.ClassNotFoundException: junit.framework.TestCase

at
com.sun.enterprise.loader.EJBClassLoader.findClassData(EJBClassLoader.java:737)

at
com.sun.enterprise.loader.EJBClassLoader$DelegatingClassLoader.findClass(EJBClassLoader.java:1376)

at java.lang.ClassLoader.loadClass(ClassLoader.java:306)

at java.lang.ClassLoader.loadClass(ClassLoader.java:251)

at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

... 23 more

Any ideas what my fault is?
What do I have to change to make it work again?

Thanks
Markus

--
QUIPSY QUALITY GmbH & Co. KG
Ein Unternehmen der MES-Gruppe
Stuttgarter Strasse 23
D-75179 Pforzheim
Tel: 07231-9189-52
Fax: 07231-9189-59
www.quipsy.de
karg@quipsy.de
Registergericht Mannheim HRA 701214
Geschäftsführer: Nils Schroeder

Diese E-Mail enthält persönliche, vertrauliche und vor Weitergabe geschützte Informationen und ist ausschließlich für den vorgesehenen o.g. Empfänger (Adressaten) bestimmt. Falls Sie diese E-Mail versehentlich erhalten haben und nicht der vorgesehene Empfänger sind, bitten wir Sie, die E-Mail und deren Anhänge nicht aufzubewahren, nicht zu vervielfältigen, nicht zu nutzen und nicht weiterzugeben. Bitte informieren Sie uns als Absender über diesen Zustellungsfehler und löschen Sie die E-Mail.

[karg.vcf]
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Sahoo

It appears that one of your classes in the jar file depends on junit and
junit is not packaged as part of the application. Ideally, this error
should have been reported in a better way, but that's a different issue
(you can file a bug for that if you like).

Thanks,
Sahoo

Markus KARG wrote:
> verifier.bat today told me this:
>
> Error Name :
> com.sun.enterprise.tools.verifier.tests.persistence.DefaultProviderVerification
>
> Error Description : java.lang.NoClassDefFoundError:
> junit/framework/TestCase
>
> at java.lang.ClassLoader.defineClass1(Native Method)
>
> at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
>
> at
> com.sun.enterprise.loader.EJBClassLoader$DelegatingClassLoader.findClass(EJBClassLoader.java:1406)
>
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>
> at
> oracle.toplink.essentials.ejb.cmp3.persistence.PersistenceUnitProcessor.isEntity(PersistenceUnitProcessor.java:316)
>
>
> at
> oracle.toplink.essentials.ejb.cmp3.persistence.PersistenceUnitProcessor.getEntityClassNamesFromURL(PersistenceUnitProcessor.java:301)
>
>
> at
> oracle.toplink.essentials.internal.ejb.cmp3.metadata.MetadataProcessor.buildEntityClassSetFromAnnotations(MetadataProcessor.java:501)
>
>
> at
> oracle.toplink.essentials.internal.ejb.cmp3.metadata.MetadataProcessor.buildEntityList(MetadataProcessor.java:462)
>
>
> at
> oracle.toplink.essentials.ejb.cmp3.persistence.PersistenceUnitProcessor.processORMetadata(PersistenceUnitProcessor.java:366)
>
>
> at
> oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:607)
>
>
> at
> oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.createContainerEntityManagerFactory(EntityManagerFactoryProvider.java:244)
>
>
> at
> com.sun.enterprise.tools.verifier.tests.persistence.DefaultProviderVerification.check(DefaultProviderVerification.java:103)
>
>
> at com.sun.enterprise.tools.verifier.CheckMgr.check(CheckMgr.java:133)
>
> at
> com.sun.enterprise.tools.verifier.persistence.PersistenceUnitCheckMgrImpl.check(PersistenceUnitCheckMgrImpl.java:96)
>
>
> at
> com.sun.enterprise.tools.verifier.CheckMgr.checkPersistenceUnits(CheckMgr.java:390)
>
>
> at
> com.sun.enterprise.tools.verifier.ejb.EjbCheckMgrImpl.check(EjbCheckMgrImpl.java:80)
>
>
> at
> com.sun.enterprise.tools.verifier.BaseVerifier.verify(BaseVerifier.java:146)
>
>
> at
> com.sun.enterprise.tools.verifier.ejb.EjbVerifier.verify(EjbVerifier.java:78)
>
>
> at
> com.sun.enterprise.tools.verifier.VerificationHandler.runVerifier(VerificationHandler.java:236)
>
>
> at
> com.sun.enterprise.tools.verifier.VerificationHandler.verifyArchive(VerificationHandler.java:141)
>
>
> at
> com.sun.enterprise.tools.verifier.Verifier.verify(Verifier.java:144)
>
> at com.sun.enterprise.tools.verifier.Verifier.main(Verifier.java:114)
>
> Caused by: java.lang.ClassNotFoundException: junit.framework.TestCase
>
> at
> com.sun.enterprise.loader.EJBClassLoader.findClassData(EJBClassLoader.java:737)
>
>
> at
> com.sun.enterprise.loader.EJBClassLoader$DelegatingClassLoader.findClass(EJBClassLoader.java:1376)
>
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>
> ... 23 more
>
>
>
> Any ideas what my fault is?
> What do I have to change to make it work again?
>
> Thanks
> Markus
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

Markus KARG

Sahoo schrieb:
> It appears that one of your classes in the jar file depends on junit
> and junit is not packaged as part of the application. Ideally, this
> error should have been reported in a better way, but that's a
> different issue (you can file a bug for that if you like).
I see. You are right, as soon as I removed that code (shouldn't be part
of my EAR anyways) verifier was happy again.

I filed enhancement
https://glassfish.dev.java.net/issues/show_bug.cgi?id=4836.

Thanks a lot! :-)
Markus
>
> Thanks,
> Sahoo
>
> Markus KARG wrote:
>> verifier.bat today told me this:
>>
>> Error Name :
>> com.sun.enterprise.tools.verifier.tests.persistence.DefaultProviderVerification
>>
>> Error Description : java.lang.NoClassDefFoundError:
>> junit/framework/TestCase
>>
>> at java.lang.ClassLoader.defineClass1(Native Method)
>>
>> at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
>>
>> at
>> com.sun.enterprise.loader.EJBClassLoader$DelegatingClassLoader.findClass(EJBClassLoader.java:1406)
>>
>>
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>>
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>>
>> at
>> oracle.toplink.essentials.ejb.cmp3.persistence.PersistenceUnitProcessor.isEntity(PersistenceUnitProcessor.java:316)
>>
>>
>> at
>> oracle.toplink.essentials.ejb.cmp3.persistence.PersistenceUnitProcessor.getEntityClassNamesFromURL(PersistenceUnitProcessor.java:301)
>>
>>
>> at
>> oracle.toplink.essentials.internal.ejb.cmp3.metadata.MetadataProcessor.buildEntityClassSetFromAnnotations(MetadataProcessor.java:501)
>>
>>
>> at
>> oracle.toplink.essentials.internal.ejb.cmp3.metadata.MetadataProcessor.buildEntityList(MetadataProcessor.java:462)
>>
>>
>> at
>> oracle.toplink.essentials.ejb.cmp3.persistence.PersistenceUnitProcessor.processORMetadata(PersistenceUnitProcessor.java:366)
>>
>>
>> at
>> oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:607)
>>
>>
>> at
>> oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.createContainerEntityManagerFactory(EntityManagerFactoryProvider.java:244)
>>
>>
>> at
>> com.sun.enterprise.tools.verifier.tests.persistence.DefaultProviderVerification.check(DefaultProviderVerification.java:103)
>>
>>
>> at
>> com.sun.enterprise.tools.verifier.CheckMgr.check(CheckMgr.java:133)
>>
>> at
>> com.sun.enterprise.tools.verifier.persistence.PersistenceUnitCheckMgrImpl.check(PersistenceUnitCheckMgrImpl.java:96)
>>
>>
>> at
>> com.sun.enterprise.tools.verifier.CheckMgr.checkPersistenceUnits(CheckMgr.java:390)
>>
>>
>> at
>> com.sun.enterprise.tools.verifier.ejb.EjbCheckMgrImpl.check(EjbCheckMgrImpl.java:80)
>>
>>
>> at
>> com.sun.enterprise.tools.verifier.BaseVerifier.verify(BaseVerifier.java:146)
>>
>>
>> at
>> com.sun.enterprise.tools.verifier.ejb.EjbVerifier.verify(EjbVerifier.java:78)
>>
>>
>> at
>> com.sun.enterprise.tools.verifier.VerificationHandler.runVerifier(VerificationHandler.java:236)
>>
>>
>> at
>> com.sun.enterprise.tools.verifier.VerificationHandler.verifyArchive(VerificationHandler.java:141)
>>
>>
>> at
>> com.sun.enterprise.tools.verifier.Verifier.verify(Verifier.java:144)
>>
>> at com.sun.enterprise.tools.verifier.Verifier.main(Verifier.java:114)
>>
>> Caused by: java.lang.ClassNotFoundException: junit.framework.TestCase
>>
>> at
>> com.sun.enterprise.loader.EJBClassLoader.findClassData(EJBClassLoader.java:737)
>>
>>
>> at
>> com.sun.enterprise.loader.EJBClassLoader$DelegatingClassLoader.findClass(EJBClassLoader.java:1376)
>>
>>
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>>
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>>
>> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>>
>> ... 23 more
>>
>>
>>
>> Any ideas what my fault is?
>> What do I have to change to make it work again?
>>
>> Thanks
>> Markus
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
>> For additional commands, e-mail: users-help@glassfish.dev.java.net
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>

--
http://www.xing.com/go/invita/58469

[smime.p7s]