[
https://issues.apache.org/jira/browse/TOMEE-493?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13661839#comment-13661839
]
Sabri LABBENE commented on TOMEE-493:
-------------------------------------
Hi all,
I have the same issue with a dll that tomee refuse to load at startup. The
issue is really blocking !
I'm using tomee in eclipse. When I start tomee I have this on the startup
traces :
Could not find library ... Native Library ... already loaded in another
classloader.
when requesting my web service that's linked with this library I have an
UnsatisfiedLinkError.
I'm wondering if the fix only apply for starting tomee as service. I d'ont
really know how eclipse starts tomee (means with which script).
I'm using tomee 1.6.0 in eclipse juno.
Does the fix takes into consideration other ways of starting tomee (from
eclipse for instance) ?
Thanks for your help.
> 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