[
https://issues.jboss.org/browse/AS7-1284?page=com.atlassian.jira.plugin.s...
]
Brian Stansberry updated AS7-1284:
----------------------------------
Assignee: Remy Maucherat (was: Stuart Douglas)
Component/s: Web
(was: CDI / Weld)
Discussing this issue with the reporter on #jboss-as7 yesterday, my original theory was
the Apple JDK did not include sun.nio.ch.DirectBuffer. But that was incorrect; it is
present.
David Lloyd's theory was it's a module configuration issue, where the class is not
visible. He suggested this as a possible fix:
https://github.com/dmlloyd/jboss-as/commit/b150d42
I couldn't reproduce the issue and thus couldn't confirm the fix. I couldn't
reproduce because my Mac is x86_64 and there are no jboss-native binaries for x86_64. I
made a small attempt at building from source, but that failed, and that was all the cycles
I had for this.
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
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