1 2 Previous Next 15 Replies Latest reply: Aug 18, 2013 10:35 AM by dvohra21 RSS

    ClassNotFoundException: weblogic.servlet.http.AbstractAsyncServlet

    user463145

      Using:

      Eclipse Kepler

      Geronimo-3.0.1

       

      [oracle.essentials-client_12.1.2]

      -adf-richclient-api-11.jar

      -adf-richclient-impl-11.jar

       

      [trinidad-2.0.1]

      -trinidad-api.jar

      -trinidad-impl.jar

       

       

      I recently converted my working trinidad project to adf-faces. Now when I include the two adf-richclient libraries to my project and deploy it, I see the errors below. I have even searched in the two libraries where AbstractAsyncServlet might have been referenced, but could not find any. I am also not using any weblogic classes nor AbstractAsyncServlet nor webservice in my project.  Please someone help. Do I need additional library which contains AbstractAsyncServlet?

       

      Thanks.

       

      java.lang.NoClassDefFoundError: weblogic/servlet/http/AbstractAsyncServlet

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

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

        at org.apache.geronimo.hook.equinox.GeronimoClassLoader.defineClass(GeronimoClassLoader.java:213)

        at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(ClasspathManager.java:601)

        at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java:567)

        at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager.java:490)

        at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass_LockClassLoader(ClasspathManager.java:478)

        at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:458)

      ...

      Caused by: java.lang.ClassNotFoundException: weblogic.servlet.http.AbstractAsyncServlet

        at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:513)

        at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)

        at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)

        at org.apache.geronimo.hook.equinox.GeronimoClassLoader.loadClass(GeronimoClassLoader.java:85)

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

        • 2. Re: ClassNotFoundException: weblogic.servlet.http.AbstractAsyncServlet
          user463145

          No, I am not using OEPE nor weblogic -- just the -adf-richclient libraries.

          • 3. Re: ClassNotFoundException: weblogic.servlet.http.AbstractAsyncServlet
            Timo Hahn

            You are using Eclipse, adf essentials uses jdev as IDE, so I assumed you are using OEPE.

            My guess is that you are missing (or have some entries too much) in the descriptors which you need to sort out. I'm not sure you can just add the two adf libraries to your eclipse project and assume it works.

            Two things you can do:

            1) use OEPE to setup a small app which run ok and check the differences to your project

            2) use jdev essentials and do the check with this

             

            Timo

            • 4. Re: ClassNotFoundException: weblogic.servlet.http.AbstractAsyncServlet
              user463145

              Hi TimoHahn,

               

              I avoid using OEPE in eclipse, because it installs all sort of files in the ide, making it dificult to switch application servers. But I do use separate a JDeveloper ide to build and test my adf pages before importing them into eclipse. Then

              when deploying my ear or war file, all I need are the aforementioned libraries.

               

              The problem is caused by the inclusion of adf-richclient-api-11.jar and adf-richclient-impl-11.jar in my deployment -- placed in WEB-INF/lib. The same setting, when I only using apache trinidad, works without any such error.

               

              I don't know which class in the adf-richclient jars is referencing weblogic.servlet.http.AbstractAsyncServlet. One library that contain that  class is the atmosphere-compat-weblogic-0.9.x.x.jar. But again, I don't have atmosphere setting in my web.xml.

              • 5. Re: ClassNotFoundException: weblogic.servlet.http.AbstractAsyncServlet
                dvohra21

                java.lang.NoClassDefFoundError: weblogic/servlet/http/AbstractAsyncServlet


                Ignore the message.


                Refer Runtime messages in log file for ADF Essentials applications on GlassFish

                11.1.2.3.0 11g Release 2 Update 3 Release Notes


                • 6. Re: ClassNotFoundException: weblogic.servlet.http.AbstractAsyncServlet
                  user463145

                  Hi dvohra21

                   

                  I can't ignore the message. My application wouldn't deploy. Further, I am using apache geronimo and not glassfish. Furthermore, it is a different error from mine, which cannot find the class definition for AbstractAsyncServlet.

                  • 7. Re: ClassNotFoundException: weblogic.servlet.http.AbstractAsyncServlet
                    dvohra21

                    The server may be different, but the class is the same.

                     

                    java.lang.NoClassDefFoundError: weblogic/servlet/http/AbstractAsyncServlet

                     

                    Runtime messages in log file for ADF Essentials applications on GlassFish

                    The following messages are known to be generated to the GlassFish log file. They can be safely ignored.

                    • Service entry 'org.glassfish.faces.integration.GlassFishInjectionProvider' does not extend DiscoverableInjectionProvider.  Entry will be ignored.  (14632049)
                    • Ignoring feature-dependency on feature "AdfDvtCommon".  No such feature exists. (14632046)
                    • Unsupported deployment descriptors element %% ( 14632045)
                    • Error in annotation processing: java.lang.NoClassDefFoundError: weblogic/servlet/http/AbstractAsyncServlet (14632042)
                    • 8. Re: ClassNotFoundException: weblogic.servlet.http.AbstractAsyncServlet
                      user463145

                      Hi dvohra21,

                       

                      As I said earlier, it cannot be ignored as it is an 'error' and not a 'warning';  On apache geronimo, the ear application is not processed and does not deployed.

                      • 9. Re: ClassNotFoundException: weblogic.servlet.http.AbstractAsyncServlet
                        dvohra21

                        Though runtime exceptions are generally not handled or required to be handled, add a try statement and a catch clause for the java.lang.NoClassDefFoundError in the application.

                        • 11. Re: ClassNotFoundException: weblogic.servlet.http.AbstractAsyncServlet
                          user463145

                          Did some test on glassfish4, but got the same problem although unlike in apache geronimo, it is classified as WARNING

                           

                           

                          [2013-08-16T17:26:23.088+0100] [glassfish 4.0] [WARNING] [] [javax.enterprise.system.tools.deployment.dol] [tid: _ThreadID=34 _ThreadName=admin-listener(3)] [timeMillis: 1376670383088] [levelValue: 900] [[

                            AS-DEPLOYMENT-00011

                          java.lang.NoClassDefFoundError: weblogic/servlet/http/AbstractAsyncServlet

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

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

                            at com.sun.enterprise.loader.ASURLClassLoader.findClass(ASURLClassLoader.java:803)

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

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

                            at com.sun.enterprise.deployment.annotation.impl.ModuleScanner.getElements(ModuleScanner.java:297)

                            at com.sun.enterprise.deployment.archivist.Archivist.processAnnotations(Archivist.java:585)

                            at com.sun.enterprise.deployment.archivist.Archivist.readAnnotations(Archivist.java:462)

                            at com.sun.enterprise.deployment.archivist.Archivist.readAnnotations(Archivist.java:446)

                            at org.glassfish.web.deployment.archivist.WebArchivist.postAnnotationProcess(WebArchivist.java:338)

                            at org.glassfish.web.deployment.archivist.WebArchivist.postAnnotationProcess(WebArchivist.java:91)

                            at com.sun.enterprise.deployment.archivist.Archivist.readRestDeploymentDescriptors(Archivist.java:420)

                            at com.sun.enterprise.deployment.archivist.Archivist.readDeploymentDescriptors(Archivist.java:396)

                            at com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:271)

                            at com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:280)

                            at com.sun.enterprise.deployment.archivist.ApplicationArchivist.readModulesDescriptors(ApplicationArchivist.java:611)

                            at com.sun.enterprise.deployment.archivist.ApplicationArchivist.openWith(ApplicationArchivist.java:229)

                            at com.sun.enterprise.deployment.archivist.ApplicationFactory.openWith(ApplicationFactory.java:232)

                            at org.glassfish.javaee.core.deployment.DolProvider.processDOL(DolProvider.java:188)

                            at org.glassfish.javaee.core.deployment.DolProvider.load(DolProvider.java:222)

                            at org.glassfish.javaee.core.deployment.DolProvider.load(DolProvider.java:96)

                            at com.sun.enterprise.v3.server.ApplicationLifecycle.loadDeployer(ApplicationLifecycle.java:878)

                            at com.sun.enterprise.v3.server.ApplicationLifecycle.setupContainerInfos(ApplicationLifecycle.java:818)

                            at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:374)

                            at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:219)

                            at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:491)

                            at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:527)

                            at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:523)

                            at java.security.AccessController.doPrivileged(Native Method)

                            at javax.security.auth.Subject.doAs(Subject.java:356)

                            at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:522)

                            at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:546)

                            at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1423)

                            at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1500(CommandRunnerImpl.java:108)

                            at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1762)

                            at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1674)

                            at org.glassfish.admin.rest.utils.ResourceUtil.runCommand(ResourceUtil.java:235)

                            at org.glassfish.admin.rest.utils.ResourceUtil.runCommand(ResourceUtil.java:257)

                            at org.glassfish.admin.rest.resources.TemplateListOfResource.createResource(TemplateListOfResource.java:134)

                            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                            at java.lang.reflect.Method.invoke(Method.java:606)

                            at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81)

                            at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:125)

                            at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:152)

                            at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:91)

                            at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:346)

                            at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:341)

                            at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:101)

                            at org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:224)

                            at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)

                            at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)

                            at org.glassfish.jersey.internal.Errors.process(Errors.java:315)

                            at org.glassfish.jersey.internal.Errors.process(Errors.java:297)

                            at org.glassfish.jersey.internal.Errors.process(Errors.java:267)

                            at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317)

                            at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:198)

                            at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:946)

                            at org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer.service(GrizzlyHttpContainer.java:331)

                            at org.glassfish.admin.rest.adapter.RestAdapter$2.service(RestAdapter.java:318)

                            at org.glassfish.admin.rest.adapter.RestAdapter.service(RestAdapter.java:181)

                            at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:246)

                            at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:191)

                            at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:168)

                            at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:189)

                            at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)

                            at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:288)

                            at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:206)

                            at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:136)

                            at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:114)

                            at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)

                            at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:838)

                            at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:113)

                            at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)

                            at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55)

                            at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135)

                            at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:564)

                            at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:544)

                            at java.lang.Thread.run(Thread.java:724)

                          Caused by: java.lang.ClassNotFoundException: weblogic.servlet.http.AbstractAsyncServlet

                            at com.sun.enterprise.loader.ASURLClassLoader.findClassData(ASURLClassLoader.java:835)

                            at com.sun.enterprise.loader.ASURLClassLoader.findClass(ASURLClassLoader.java:744)

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

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

                            ... 80 more

                          ]]

                          • 12. Re: ClassNotFoundException: weblogic.servlet.http.AbstractAsyncServlet
                            dvohra21

                            Did some test on glassfish4, but got the same problem although unlike in apache geronimo, it is classified as WARNING

                            Not an error, implying the application gets deployed. The Warning may be ignored as indicated in the documentation.

                            • 13. Re: ClassNotFoundException: weblogic.servlet.http.AbstractAsyncServlet
                              user463145

                              Not an error, implying the application gets deployed. The Warning may be ignored as indicated in the documentation.

                               

                              Thanks but this is not the point. Okay, it shows up as warning in glassfish and can be ignored, but it is an error in apache geronimo, and webpshere and cannot be ignored. Also one cannot change application server willy nilly during a project; the choice of application server is usually chosen at the beginning of a project.

                              1 2 Previous Next