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_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>