3 Replies Latest reply on Mar 31, 2009 11:56 AM by peterj

    Enabling APR connector on JBoss 5.0.0 GA

    joshua883

      Hi all,
      I'd like to enable the APR Connector on my JBoss 5.0.0 GA.
      From the tomcat 6 guide I've replaced the HTTP Connector with

      <Connector protocol="org.apache.coyote.http11.Http11AprProtocol" port="8080" address="${jboss.bind.address}"
       connectionTimeout="20000" redirectPort="8443" />


      then downloaded tomcat native dll and added to Windows path.
      However when I startup JBoss I have the following exception :
      21:58:56,432 ERROR [StandardService] Service initializing at jboss.web failed
      java.lang.UnsatisfiedLinkError: org.apache.tomcat.jni.Pool.create(J)J
       at org.apache.tomcat.jni.Pool.create(Native Method)
       at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:570)
       at org.apache.coyote.http11.Http11AprProtocol.init(Http11AprProtocol.jav
      a:107)
       at org.apache.catalina.connector.Connector.initialize(Connector.java:102
      9)
       at org.apache.catalina.core.StandardService.initialize(StandardService.j
      ava:683)
       at org.apache.catalina.core.StandardService.init(StandardService.java:69


      Is jBoss 5 able to use tomcat APR connector ?
      thanks a lot
      john


        • 1. Re: Enabling APR connector on JBoss 5.0.0 GA
          peterj

          To use APR, all you need to do is download JBoss Native and unpack it into your JBOSS_HOME. No other configuration is necessary.

          See this discussion: http://www.jboss.org/index.html?module=bb&op=viewtopic&t=147583

          • 2. Re: Enabling APR connector on JBoss 5.0.0 GA

            Hello,
            thank you very much for your response.
            Extracting JBossWeb produces some executables- however launching jbossweb.exe causes a core dump......

            --------------- T H R E A D ---------------
            
            Current thread (0x3bb0bc00): JavaThread "JBoss Shutdown Hook" daemon [_thread_in_native, id=2592, stack(0x43fd0000,0x44020000)]
            
            siginfo: ExceptionCode=0xc0000005, reading address 0x00000000
            
            Registers:
            EAX=0x438640f0, EBX=0x249bcd90, ECX=0x3bb0bd14, EDX=0x335973e8
            ESP=0x4401e44c, EBP=0x4401e458, ESI=0x00000000, EDI=0x3bb0bc00
            EIP=0x438640fd, EFLAGS=0x00010287
            
            Top of Stack: (sp=0x4401e44c)
            0x4401e44c: 43863f90 3bb0bc00 249bcd90 4401e498
            0x4401e45c: 00919cf1 3bb0bd14 4401e4a0 00000000
            0x4401e46c: 00000000 33597410 33597400 4401e478
            0x4401e47c: 249bcd90 4401e4ac 249be0a8 00000000
            0x4401e48c: 249bcd90 00000000 4401e4a8 4401e4d0
            0x4401e49c: 00912ec5 249be048 00918179 00000000
            0x4401e4ac: 00000000 4401e4b0 24946bdb 4401e4d8
            0x4401e4bc: 24948e18 00000000 24946c20 4401e4a8
            
            Instructions: (pc=0x438640fd)
            0x438640ed: 90 90 90 55 8b ec 56 8b 75 10 57 68 90 3f 86 43
            0x438640fd: 8b 0e 8b 46 08 33 ff 56 51 89 45 14 89 7e 08 e8


            I've tried also launching the run.bat and changing the protocol in server.xml

            <Connector protocol="org.apache.coyote.http11.Http11AprProtocol" port="8080" address="${jboss.bind.address}"
             connectionTimeout="20000" redirectPort="8443" />

            but the result is again an Unsatisfied Linkage error.....
            from the discussion you have pointed out, it seems that at the moment the win-32 porting for apr is broken...... :-(

            thanks
            john

            • 3. Re: Enabling APR connector on JBoss 5.0.0 GA
              peterj

              If you downloaded JBoss Web you downloaded the wrong package. You need JBoss Native. And yes if you are running 32-bit Windows you are stuck because APR does not work on that platform.