Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-1284

Accessing localhost:8080 using JBoss Web Native causes java.lang.NoClassDefFoundError: sun/nio/ch/DirectBuffer

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Minor
    • 7.0.1.Final
    • 7.0.0.Final
    • Web
    • None
    • Hide
      1. Download jboss-as-7.0.0.Final.tar.gz
      2. Extract downloaded archive
      3. Download jboss-native-2.0.9-macosx-x86-ssl.tar
      4. Extract downloaded archive into some directory, e.g. jboss-native
      5. set environment variables:
        1. export DYLD_LIBRARY_PATH=<path to jboss-native/bin/native>
        2. export JAVA_OPTS=-d32 -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djboss.modules.system.pkgs=org.jboss.byteman
      6. start standlone instance: jboss-as-web-7.0.0.Final/bin/standalone.sh
      7. Access http://localhost:8080 with web browser
      Show
      Download jboss-as-7.0.0.Final.tar.gz Extract downloaded archive Download jboss-native-2.0.9-macosx-x86-ssl.tar Extract downloaded archive into some directory, e.g. jboss-native set environment variables: export DYLD_LIBRARY_PATH=<path to jboss-native/bin/native> export JAVA_OPTS=-d32 -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djboss.modules.system.pkgs=org.jboss.byteman start standlone instance: jboss-as-web-7.0.0.Final/bin/standalone.sh Access http://localhost:8080 with web browser

    Description

      Hi,

      accessing http://localhost:8080 using JBoss Web Native 2.0.9 (self compiled for x64 and downloaded from http://www.jboss.org/jbossweb/downloads/jboss-native-2-0-9.html for i386) causes following stack trace:

      15:23:18,710 ERROR [org.apache.coyote.http11.Http11AprProtocol] (http--127.0.0.1-8080-1) Error reading request, ignored: java.lang.NoClassDefFoundError: sun/nio/ch/DirectBuffer
      at org.apache.tomcat.jni.Socket.setrbb(Native Method)
      at org.apache.coyote.http11.InternalAprInputBuffer.setSocket(InternalAprInputBuffer.java:202)
      at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:825)
      at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:626)
      at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:2054)
      at java.lang.Thread.run(Thread.java:680) [:1.6.0_26]
      Caused by: java.lang.ClassNotFoundException: sun.nio.ch.DirectBuffer from [Module "org.jboss.as.web:main" from local module loader @39e87719 (roots: /Users/jwegne/Tools/jboss-as-web-7.0.0.Final/modules)]
      at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:191)
      at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:358)
      at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:330)
      at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:307)
      at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:101)
      ... 6 more

      This happens with only when using JDK 1.6 provided by Apple. OpenJDK 1.7 (self-compiled) works, though.

      Attachments

        Issue Links

          Activity

            People

              rmaucher Remy Maucherat
              flynntheavatar Josef Wegner (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: