[
https://issues.apache.org/jira/browse/TOMEE-493?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13481047#comment-13481047
]
Alex the Rocker commented on TOMEE-493:
---------------------------------------
Okay I have been able to upload the sample files which help to reproduce this
issue.
Here are the instructions:
Test with Tomcat 7:
- Start a command prompt with Administrator priviledges
- Type this:
title tomcat
set JAVA_HOME=c:\jdk1.7.0_07
cd C:\apache-tomcat-7.0.32\bin
service.bat install
net start Tomcat7
start http://localhost:8080/Test/Toto
net stop Tomcat7
startup.bat
=> Result is OK, you should see what's shown in tomcat7-service-webpage.png
Test with TomEE 1.5.x, x>0 :
- Start a command prompt with Administrator priviledges
- Type this:
title tomcat
set JAVA_HOME=c:\jdk1.7.0_07
cd C:\apache-tomcat-7.0.32\bin
service.bat install
net start Tomcat7
start http://localhost:8080/Test/Toto
net stop Tomcat7
startup.bat
Result : KO, you should get an UnsatisfyedLinkException like in screenshot
tomEE-service-webpage.png
Please let me know if this sample and those instructions are enough for this
issue to be reproduced and analzed.
Thanks,
Alex
> 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
> 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