2 Replies Latest reply on Feb 24, 2011 4:14 PM by Sam W

    JDK 1.7 and AIO for JBOSS 6

    Sam W Expert

      Hello,

       

      Is OpenJDK1.7 good for JBOSS 6? Should I be using JDK1.6_xx instead?

      Another issue is AIO with JBOSS. How can I enable AIO support for JBOSS? I have enabled AIO kernal in FreeBSD, but JBOSS couldn't see it.

       

       

      Here is the JBOSS startup message:

       

      01:40:44,818 INFO  [AbstractServer] Starting: JBossAS [6.0.0.Final "Neo"]

      01:40:50,188 INFO  [ServerInfo] Java version: 1.7.0,Oracle Corporation

      01:40:50,189 INFO  [ServerInfo] Java Runtime: OpenJDK Runtime Environment (build 1.7.0-root_2011_02_24_21_49-b00)

      01:40:50,189 INFO  [ServerInfo] Java VM: OpenJDK Server VM 20.0-b03,Oracle Corporation

      01:40:50,189 INFO  [ServerInfo] OS-System: FreeBSD 8.1-RELEASE,i386

      01:40:50,190 INFO  [ServerInfo] VM arguments: -Xms128m -Xmx512m -XX:MaxPermSize=256m -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dprogram.name=run.sh -Djava.library.path=/usr/local/users/jboss/jboss6/bin/native/lib -Djava.endorsed.dirs=/usr/local/users/jboss/jboss6/lib/endorsed

      01:40:50,280 INFO  [JMXKernel] Legacy JMX core initialized

      01:41:12,106 INFO  [AbstractServerConfig] JBoss Web Services - Stack CXF Server 3.4.1.GA

      01:41:13,847 INFO  [JSFImplManagementDeployer] Initialized 3 JSF configurations: [Mojarra-1.2, MyFaces-2.0, Mojarra-2.0]

      01:41:44,090 WARNING [FileConfigurationParser] AIO wasn't located on this platform, it will fall back to using pure Java NIO. If your platform is Linux, install LibAIO to enable the AIO journal

       

      Thanks

      Sam

        • 1. JDK 1.7 and AIO for JBOSS 6
          jaikiran pai Master

          Sam W wrote:

           

          Hello,

           

          Is OpenJDK1.7 good for JBOSS 6?

          It's never been tested.

           

           

          Sam W wrote:

           

          Should I be using JDK1.6_xx instead?

          Yes

           

           

          Sam W wrote:

           


          Another issue is AIO with JBOSS. How can I enable AIO support for JBOSS? I have enabled AIO kernal in FreeBSD, but JBOSS couldn't see it.

           

          See this http://hornetq.sourceforge.net/docs/hornetq-2.1.2.Final/user-manual/en/html/using-server.html#using-server.library.path

          • 2. JDK 1.7 and AIO for JBOSS 6
            Sam W Expert

            I got the following warings, not sure if it is because I am using OpenJDK7:

             

            eption: jboss.web:j2eeType=Servlet,name=ContextServlet,WebModule=//localhost/jbossws,J2EEApplication=none,J2EEServer=none is not registered.

                    at org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistry.java:529) [:6.0.0.GA]

                    at org.jboss.mx.server.MBeanServerImpl.getMBeanInfo(MBeanServerImpl.java:677) [:6.0.0.GA]

                    at org.jboss.jmx.adaptor.control.Server.getMBeanData(Server.java:98) [:]

                    at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet$1.run(HtmlAdaptorServlet.java:357) [:]

                    at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet$1.run(HtmlAdaptorServlet.java:354) [:]

                    at java.security.AccessController.doPrivileged(Native Method) [:1.7.0]

                    at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.getMBeanData(HtmlAdaptorServlet.java:353) [:]

                    at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.inspectMBean(HtmlAdaptorServlet.java:224) [:]

                    at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.processRequest(HtmlAdaptorServlet.java:100) [:]

                    at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.doGet(HtmlAdaptorServlet.java:81) [:]

                    at javax.servlet.http.HttpServlet.service(HttpServlet.java:734) [:1.0.0.Final]

                    at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [:1.0.0.Final]

                    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324) [:6.0.0.Final]

                    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]

                    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [:6.0.0.Final]

                    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) [:6.0.0.Final]

                    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181) [:6.0.0.Final]

                    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88) [:6.0.0.Final]

                    at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100) [:6.0.0.Final]

                    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) [:6.0.0.Final]

                    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [:6.0.0.Final]

                    at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158) [:6.0.0.Final]

                    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [:6.0.0.Final]

                    at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53) [:6.0.0.Final]

                    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [:6.0.0.Final]

                    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [:6.0.0.Final]

                    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:654) [:6.0.0.Final]

                    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951) [:6.0.0.Final]

                    at java.lang.Thread.run(Thread.java:732) [:1.7.0]

             

             

            2011-02-25 01:44:50,481 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/jmx-console].[HtmlAdaptor]] (http-0.0.0.0-80-1) Servlet.service() for servlet HtmlAdaptor threw exception: javax.management.InstanceNotFoundException: jboss.web:type=Valve,name=SecurityAssociationValve,path=/admin-console,host=localhost is not registered.

                    at org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistry.java:529) [:6.0.0.GA]

             

            if there is something missing in my project deployment, I like to fix it regardless whether it is jdk1.6 or openjdk7.

             

            Thanks

            Sam