Uploaded image for project: 'TomEE'
  1. TomEE
  2. TOMEE-493

Regression on TomEE vs Tomcat 7 on Windows native library loading

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.5.0
    • Fix Version/s: 1.5.1
    • Component/s: None
    • Labels:
      None

      Description

      On Windows operating systems (Windows 7, Window 2008 R2), we found that when TomEE is registered as a service, it ignores PATH, which makes native library loading impossible.

      This is a show stopper for our web application which relies on native libraries.

      We have created a sample based on a simple servlet which loads remotepg.dll using

      System.loadLibrary("remotepg");

      statement. it works fine with Tomcat 7, it's KO with java.lang.UnsatisfiedLinkError with TomEE on the same machine with same PATH.

      I'm not sure how to upload a sample using JIRA, if you tell how then I'll upload self contained sample for easy reproduction.

        Attachments

        1. tomEE-startup-process.png
          10 kB
          Alex the Rocker
        2. tomEE-startup-dll-search.png
          9 kB
          Alex the Rocker
        3. tomEE-service-webpage.png
          25 kB
          Alex the Rocker
        4. tomEE-service-process.png
          8 kB
          Alex the Rocker
        5. tomEE-service-dll-search.png
          7 kB
          Alex the Rocker
        6. tomcat7-startup-process.png
          19 kB
          Alex the Rocker
        7. tomcat7-startup-dll-search.png
          9 kB
          Alex the Rocker
        8. tomcat7-service-webpage.png
          8 kB
          Alex the Rocker
        9. tomcat7-service-process.png
          13 kB
          Alex the Rocker
        10. tomcat7-service-dll-search.png
          8 kB
          Alex the Rocker
        11. Test.war
          4 kB
          Alex the Rocker

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              alex.m3tal Alex the Rocker
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: