[jira] [Commented] (KARAF-3288) karaf script doesn't start on Solaris if JAVA_HOME is not set
[ https://issues.apache.org/jira/browse/KARAF-3288?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14173555#comment-14173555 ] Kevin Earls commented on KARAF-3288: Thanks, I didn't think about those. Would it be possible to apply this to the 2.4 branch as well? karaf script doesn't start on Solaris if JAVA_HOME is not set - Key: KARAF-3288 URL: https://issues.apache.org/jira/browse/KARAF-3288 Project: Karaf Issue Type: Bug Affects Versions: 3.0.1 Environment: Solaris Reporter: Kevin Earls Assignee: Jean-Baptiste Onofré Priority: Minor On Solaris the karat script fails with the error JVM must be greater than 1.6 if JAVA_HOME is not set. (On 2.4 it also fails but with the message exec: a tracked alias for /usr/bin/java: not found). This fails because the locateJava() function depends on the output of `type java` to set JAVA_HOME and determine what version of java it's using. On most platforms type java returns something like java is /path/to/java, but on solaris it returns java is a tracked alias for /path/to/java The fix just requires a change to the expression used to chop off the leading text. I will submit a pull request for this. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Created] (KARAF-3288) karaf script doesn't start on Solaris if JAVA_HOME is not set
Kevin Earls created KARAF-3288: -- Summary: karaf script doesn't start on Solaris if JAVA_HOME is not set Key: KARAF-3288 URL: https://issues.apache.org/jira/browse/KARAF-3288 Project: Karaf Issue Type: Bug Affects Versions: 3.0.1 Environment: Solaris Reporter: Kevin Earls Priority: Minor On Solaris the karat script fails with the error JVM must be greater than 1.6 if JAVA_HOME is not set. (On 2.4 it also fails but with the message exec: a tracked alias for /usr/bin/java: not found). This fails because the locateJava() function depends on the output of `type java` to set JAVA_HOME and determine what version of java it's using. On most platforms type java returns something like java is /path/to/java, but on solaris it returns java is a tracked alias for /path/to/java The fix just requires a change to the expression used to chop off the leading text. I will submit a pull request for this. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Created] (KARAF-2621) PropertiesLoginModuleTest.testNonExistantPropertiesFile fails on windows
Kevin Earls created KARAF-2621: -- Summary: PropertiesLoginModuleTest.testNonExistantPropertiesFile fails on windows Key: KARAF-2621 URL: https://issues.apache.org/jira/browse/KARAF-2621 Project: Karaf Issue Type: Bug Reporter: Kevin Earls Priority: Minor This test fails on windows with the following error: junit.framework.ComparisonFailure: expected:...s file not found at [/test/]users.properties but was:...s file not found at [\test]users.properties at junit.framework.Assert.assertEquals(Assert.java:85) at junit.framework.Assert.assertEquals(Assert.java:91) at org.apache.karaf.jaas.modules.properties.PropertiesLoginModuleTest.testNonExistantPropertiesFile(PropertiesLoginModuleTest.java:49) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222) at org.junit.runners.ParentRunner.run(ParentRunner.java:300) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:236) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:134) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:113) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189) at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165) at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:103) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:74) -- This message was sent by Atlassian JIRA (v6.1.4#6159)
[jira] [Updated] (KARAF-2621) PropertiesLoginModuleTest.testNonExistantPropertiesFile fails on windows
[ https://issues.apache.org/jira/browse/KARAF-2621?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kevin Earls updated KARAF-2621: --- Attachment: KARAF-2621.patch PropertiesLoginModuleTest.testNonExistantPropertiesFile fails on windows Key: KARAF-2621 URL: https://issues.apache.org/jira/browse/KARAF-2621 Project: Karaf Issue Type: Bug Reporter: Kevin Earls Priority: Minor Attachments: KARAF-2621.patch This test fails on windows with the following error: junit.framework.ComparisonFailure: expected:...s file not found at [/test/]users.properties but was:...s file not found at [\test]users.properties at junit.framework.Assert.assertEquals(Assert.java:85) at junit.framework.Assert.assertEquals(Assert.java:91) at org.apache.karaf.jaas.modules.properties.PropertiesLoginModuleTest.testNonExistantPropertiesFile(PropertiesLoginModuleTest.java:49) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222) at org.junit.runners.ParentRunner.run(ParentRunner.java:300) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:236) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:134) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:113) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189) at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165) at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:103) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:74) -- This message was sent by Atlassian JIRA (v6.1.4#6159)