[ 
https://issues.apache.org/jira/browse/TOMEE-493?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13661896#comment-13661896
 ] 

Sabri LABBENE commented on TOMEE-493:
-------------------------------------

Hi Romain,
Unfortunately it is not possible for me to provide a public sample. 
I overcomed the issue by a small refactoring in my code which consists in 
moving staff that loads the native libraries to a point where web services 
classes are already constructed.
I don't really understand why it stopped working after migrating to tomee. The 
same code used to work with tomcat6

                
> Regression on TomEE vs Tomcat 7 on Windows native library loading
> -----------------------------------------------------------------
>
>                 Key: TOMEE-493
>                 URL: https://issues.apache.org/jira/browse/TOMEE-493
>             Project: TomEE
>          Issue Type: Bug
>    Affects Versions: 1.5.0
>            Reporter: Alex the Rocker
>            Priority: Blocker
>             Fix For: 1.5.1
>
>         Attachments: Test.war, tomcat7-service-dll-search.png, 
> tomcat7-service-process.png, tomcat7-service-webpage.png, 
> tomcat7-startup-dll-search.png, tomcat7-startup-process.png, 
> tomEE-service-dll-search.png, tomEE-service-process.png, 
> tomEE-service-webpage.png, tomEE-startup-dll-search.png, 
> tomEE-startup-process.png
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to