java.lang.NoClassDefFoundError

com/sun/jersey/multipart/FormDataMultiPart

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

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

Solutions on the web8572

  • via Oracle Community by gf2111, 11 months ago
    com/sun/jersey/multipart/FormDataMultiPart
  • com/sun/jersey/multipart/BodyPart
  • via GitHub by jztech101
    , 1 year ago
    com/sun/jersey/spi/MessageBodyWorkers
  • Stack trace

    • java.lang.NoClassDefFoundError: com/sun/jersey/multipart/FormDataMultiPart at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Unknown Source) at java.lang.Class.privateGetPublicMethods(Unknown Source) at java.lang.Class.privateGetPublicMethods(Unknown Source) at java.lang.Class.privateGetPublicMethods(Unknown Source) at java.lang.Class.getMethods(Unknown Source) at com.sun.jersey.core.reflection.MethodList.getMethods(MethodList.java:77) at com.sun.jersey.core.reflection.MethodList.<init>(MethodList.java:64) at com.sun.jersey.core.reflection.MethodList.<init>(MethodList.java:60) at com.sun.jersey.server.impl.modelapi.annotation.IntrospectionModeller.createResource(IntrospectionModeller.java:115) at com.sun.jersey.server.impl.application.WebApplicationImpl.getAbstractResource(WebApplicationImpl.java:671) at com.sun.jersey.server.impl.application.RootResourceUriRules.<init>(RootResourceUriRules.java:117) at com.sun.jersey.server.impl.application.WebApplicationImpl._initiate(WebApplicationImpl.java:1184) at com.sun.jersey.server.impl.application.WebApplicationImpl.access$600(WebApplicationImpl.java:159) at com.sun.jersey.server.impl.application.WebApplicationImpl$12.f(WebApplicationImpl.java:700) at com.sun.jersey.server.impl.application.WebApplicationImpl$12.f(WebApplicationImpl.java:697) at com.sun.jersey.spi.inject.Errors.processWithErrors(Errors.java:193) at com.sun.jersey.server.impl.application.WebApplicationImpl.initiate(WebApplicationImpl.java:697) at com.sun.jersey.api.container.ContainerFactory.createContainer(ContainerFactory.java:172) at com.sun.jersey.api.container.ContainerFactory.createContainer(ContainerFactory.java:134) at org.glassfish.admin.rest.LazyJerseyInit.exposeContext(LazyJerseyInit.java:124) at org.glassfish.admin.rest.adapter.RestAdapter.exposeContext(RestAdapter.java:452) at org.glassfish.admin.rest.adapter.RestAdapter.service(RestAdapter.java:173) at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:168) at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:234) at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:817) at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:718) at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1007) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225) at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59) at com.sun.grizzly.ContextTask.run(ContextTask.java:71) at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532) at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.ClassNotFoundException: com.sun.jersey.multipart.FormDataMultiPart not found by org.glassfish.admin.rest-service [2] 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(Unknown Source) ... 40 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 user
    Once, 1 year ago
    Once, 8 months ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago