java.lang.RuntimeException

Could not invoke defineClass!]

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web183

  • via Unknown by djordjevs,
  • via Stack Overflow by rhythmic
    ,
  • Stack trace

    • java.lang.RuntimeException: Could not invoke defineClass!] at com.sun.ejb.EJBUtils.lookupRemote30BusinessObject(EJBUtils.java:434) at com.sun.ejb.containers.RemoteBusinessObjectFactory.getObjectInstance(RemoteBusinessObjectFactory.java:75) at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304) at com.sun.enterprise.naming.impl.SerialContext.getObjectInstance(SerialContext.java:556) at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:514) Caused by: java.lang.RuntimeException: Could not invoke defineClass! at com.sun.corba.ee.impl.orbutil.codegen.CodeGeneratorUtil.makeClass(CodeGeneratorUtil.java:102) at com.sun.corba.ee.spi.orbutil.codegen.Wrapper._generate(Wrapper.java:1106) at com.sun.corba.ee.spi.orbutil.codegen.Wrapper._generate(Wrapper.java:1090) at com.sun.ejb.EJBUtils.generateAndLoad(EJBUtils.java:596) at com.sun.ejb.EJBUtils.loadGeneratedRemoteBusinessClasses(EJBUtils.java:508) at com.sun.ejb.EJBUtils.loadGeneratedRemoteBusinessClasses(EJBUtils.java:466) at com.sun.ejb.EJBUtils.lookupRemote30BusinessObject(EJBUtils.java:414) ... 5 more Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.GeneratedMethodAccessor40.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sun.corba.ee.impl.orbutil.codegen.CodeGeneratorUtil.makeClass(CodeGeneratorUtil.java:99) ... 12 more Caused by: java.lang.NoClassDefFoundError: com/sun/ejb/containers/RemoteBusinessObject at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:616) ... 16 more Caused by: java.lang.ClassNotFoundException: com.sun.ejb.containers.RemoteBusinessObject not found by ima-wl-client-web- osgi [584] at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:787) at org.apache.felix.framework.ModuleImpl.access$400(ModuleImpl.java:71) at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1768) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316) ... 18 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown visitor
    Unknown visitorOnce,
    poroszdporoszd
    Once,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,