You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Alex the Rocker (JIRA)" <ji...@apache.org> on 2012/10/21 21:50:12 UTC

[jira] [Created] (TOMEE-493) Regression on TomEE vs Tomcat 7 on Windows native library loading

Alex the Rocker created TOMEE-493:
-------------------------------------

             Summary: 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


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

[jira] [Commented] (TOMEE-493) Regression on TomEE vs Tomcat 7 on Windows native library loading

Posted by "Alex the Rocker (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TOMEE-493?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13481045#comment-13481045 ] 

Alex the Rocker commented on TOMEE-493:
---------------------------------------

Romain:

My bad, this issue indeed can't be reproduced using TomEE 1.5.0 because Windows services binaries were broken, it has been reproduced with TomEE+ 1.5.1 snapshot 34.

Unfortunatly, it blocks adoption of TomEE for our app, which remains on Tomcat 7 until it's fixed.
Hope it's not too late for 1.5.1 final.

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
>
>
> 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

[jira] [Closed] (TOMEE-493) Regression on TomEE vs Tomcat 7 on Windows native library loading

Posted by "Romain Manni-Bucau (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TOMEE-493?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Romain Manni-Bucau closed TOMEE-493.
------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.5.1
    
> 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

[jira] [Reopened] (TOMEE-493) Regression on TomEE vs Tomcat 7 on Windows native library loading

Posted by "Romain Manni-Bucau (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TOMEE-493?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Romain Manni-Bucau reopened TOMEE-493:
--------------------------------------

    
> 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

[jira] [Commented] (TOMEE-493) Regression on TomEE vs Tomcat 7 on Windows native library loading

Posted by "Alex the Rocker (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TOMEE-493?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13481050#comment-13481050 ] 

Alex the Rocker commented on TOMEE-493:
---------------------------------------

Again my bad, here are the accurate instructions for reproducing with TomEE:

- Start a command prompt with Administrator priviledges
- Type this:
title Tomee
set JAVA_HOME=c:\jdk1.7.0_07
cd apache-tomee-plus-1.5.1-SNAPSHOT\bin
service.bat install
net start TomEE
start http://localhost:8080/Test/Toto
net stop TomEE
startup.bat

Note: actual path to Tomcat 7, TomEE and JDK7 should be set to your own pathes


                
> 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

[jira] [Closed] (TOMEE-493) Regression on TomEE vs Tomcat 7 on Windows native library loading

Posted by "Romain Manni-Bucau (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TOMEE-493?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Romain Manni-Bucau closed TOMEE-493.
------------------------------------

    Resolution: Fixed
    
> 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

[jira] [Commented] (TOMEE-493) Regression on TomEE vs Tomcat 7 on Windows native library loading

Posted by "Alex the Rocker (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TOMEE-493?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13483503#comment-13483503 ] 

Alex the Rocker commented on TOMEE-493:
---------------------------------------

Hi Romain:

I tested both manual fix & 1.5.1 snapshot #50, in both the fix works like a charm, thank you very much!
=> you can close this JIRA

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

[jira] [Commented] (TOMEE-493) Regression on TomEE vs Tomcat 7 on Windows native library loading

Posted by "Alex the Rocker (JIRA)" <ji...@apache.org>.
    [ 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

[jira] [Updated] (TOMEE-493) Regression on TomEE vs Tomcat 7 on Windows native library loading

Posted by "Alex the Rocker (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TOMEE-493?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alex the Rocker updated TOMEE-493:
----------------------------------

    Attachment: tomEE-startup-process.png
                tomEE-startup-dll-search.png
                tomEE-service-webpage.png
                tomEE-service-process.png
                tomEE-service-dll-search.png
                tomcat7-startup-process.png
                tomcat7-startup-dll-search.png
                tomcat7-service-webpage.png
                tomcat7-service-process.png
                tomcat7-service-dll-search.png
    
> 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

[jira] [Commented] (TOMEE-493) Regression on TomEE vs Tomcat 7 on Windows native library loading

Posted by "Romain Manni-Bucau (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TOMEE-493?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13481203#comment-13481203 ] 

Romain Manni-Bucau commented on TOMEE-493:
------------------------------------------

just commited a fix, can you test it please?

you can do the same manually removing the line "++JvmOptions=-Djava.library.path="%CATALINA_BASE%\bin" ^" in service.bat (if you don't want to wait the snapshot ;))
                
> 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

[jira] [Commented] (TOMEE-493) Regression on TomEE vs Tomcat 7 on Windows native library loading

Posted by "Romain Manni-Bucau (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TOMEE-493?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13481042#comment-13481042 ] 

Romain Manni-Bucau commented on TOMEE-493:
------------------------------------------

Hi Alex, did you try the snapshot? it seems our exe were corrupted during maven build, it should have been fixed on trunk. Would be nice to know it the issue is linked or not

                
> 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
>
>
> 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

[jira] [Updated] (TOMEE-493) Regression on TomEE vs Tomcat 7 on Windows native library loading

Posted by "Alex the Rocker (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TOMEE-493?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alex the Rocker updated TOMEE-493:
----------------------------------

    Attachment: Test.war

Here's the sample web app to reproduce this issue. Can be dropped in Tomcat 7 webapps/ directory or in TomEE webapps/ directory.

Works like a charm with Tomcat 7, fails with TomEE


                
> 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
>
>
> 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