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

Sumit Mohanty commented on SLIDER-252:
--------------------------------------

This is the error while reading ca.config

{noformat}
Using configuration from c:\tmp\work\security\ca.config
Loading 'screen' into random state - done
I am unable to access the c:    mpworksecurity/db/newcerts directory
c:      mpworksecurity/db/newcerts: Invalid argument
{noformat}

This is because File.getAbsolutePath() returns path with "\" on Windows and it 
needs to be "/" when its in ca.config.

So "c:\tmp\work\security" is being read as "c:      mpworksecurity" by openssl
Perhaps this was the original reason but before I figured it out I had changed 
the path format - so need to revert that back and try again.

> openssl support needs to handle file path differences between windows and 
> linux
> -------------------------------------------------------------------------------
>
>                 Key: SLIDER-252
>                 URL: https://issues.apache.org/jira/browse/SLIDER-252
>             Project: Slider
>          Issue Type: Bug
>          Components: appmaster
>    Affects Versions: Slider 0.50
>            Reporter: Sumit Mohanty
>            Assignee: Jonathan Maron
>             Fix For: Slider 0.50
>
>
> After openssl is installed ...
> {noformat}
> java.io.FileNotFoundException: C:\tmp\work\security\keystore.p12 (The system 
> cannot find the file specified)
>       at java.io.FileInputStream.open(Native Method)
>       at java.io.FileInputStream.<init>(FileInputStream.java:146)
>       at 
> org.mortbay.resource.FileResource.getInputStream(FileResource.java:275)
>       at 
> org.mortbay.jetty.security.SslSelectChannelConnector.createSSLContext(SslSelectChannelConnector.java:624)
>       at 
> org.mortbay.jetty.security.SslSelectChannelConnector.doStart(SslSelectChannelConnector.java:598)
>       at 
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
>       at org.mortbay.jetty.Server.doStart(Server.java:235)
>       at 
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
>       at 
> org.apache.slider.server.appmaster.web.rest.agent.AgentWebApp$Builder.start(AgentWebApp.java:102)
>       at 
> org.apache.slider.server.appmaster.SliderAppMaster.startAgentWebApp(SliderAppMaster.java:760)
>       at 
> org.apache.slider.server.appmaster.SliderAppMaster.createAndRunCluster(SliderAppMaster.java:605)
>       at 
> org.apache.slider.server.appmaster.SliderAppMaster.runService(SliderAppMaster.java:421)
>       at 
> org.apache.slider.core.main.ServiceLauncher.launchService(ServiceLauncher.java:186)
>       at 
> org.apache.slider.core.main.ServiceLauncher.launchServiceRobustly(ServiceLauncher.java:474)
>       at 
> org.apache.slider.core.main.ServiceLauncher.launchServiceAndExit(ServiceLauncher.java:405)
>       at 
> org.apache.slider.core.main.ServiceLauncher.serviceMain(ServiceLauncher.java:629)
>       at 
> org.apache.slider.server.appmaster.SliderAppMaster.main(SliderAppMaster.java:1618)
> {noformat}
> File path differences need to be handled
> ca.conf file still needs value where path separator is "/"



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to