[jboss-jira] [JBoss JIRA] Commented: (AS7-1284) Accessing localhost:8080 using JBoss Web Native causes java.lang.NoClassDefFoundError: sun/nio/ch/DirectBuffer
David Lloyd (JIRA)
jira-events at lists.jboss.org
Tue Jul 26 21:03:23 EDT 2011
[ https://issues.jboss.org/browse/AS7-1284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12616607#comment-12616607 ]
David Lloyd commented on AS7-1284:
----------------------------------
Ah, I see I only included sun.nio, not sun.nio.ch. Try this patch instead:
https://github.com/dmlloyd/jboss-as/commit/aa1ad71
> Accessing localhost:8080 using JBoss Web Native causes java.lang.NoClassDefFoundError: sun/nio/ch/DirectBuffer
> --------------------------------------------------------------------------------------------------------------
>
> Key: AS7-1284
> URL: https://issues.jboss.org/browse/AS7-1284
> Project: Application Server 7
> Issue Type: Bug
> Components: Web
> Affects Versions: 7.0.0.Final
> Environment: Darwin osx-en-jwegne.local 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386
> java version "1.6.0_26"
> Java(TM) SE Runtime Environment (build 1.6.0_26-b03-384-10M3425)
> Java HotSpot(TM) Client VM (build 20.1-b02-384, mixed mode)
> java version "1.6.0_26"
> Java(TM) SE Runtime Environment (build 1.6.0_26-b03-384-10M3425)
> Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02-384, mixed mode)
> Reporter: Josef Wegner
> Assignee: Remy Maucherat
> Priority: Minor
> Attachments: libtcnative-1.jnilib
>
>
> 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:
> {quote}
> 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
> {quote}
> This happens with only when using JDK 1.6 provided by Apple. OpenJDK 1.7 (self-compiled) works, though.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list