Cannot start Apollo as a windows service when not on C drive
Looks like this happens because the classpath cannot be set properly within apollo.
in org.apache.activemq.apollo.boot.Apollo, line 45, the path is split by the ":' character
That means a location like D:\\apache-apollo-1.4\\lib ends up being split into:
When run as a windows service, it must be run from a command on the C drive, so \\apache-apollo-1.4\\lib will resolve to C:\\apache-apollo-1.4\\lib but if apollo was installed on the D:\ drive, this would be incorrect. If you run the winsw command directly on the C: drive vs the D: drive you can see it behaves the same (i.e., doesn't work if run from the C: drive, but works fine if run on D: drive).
Two solutions I can think... of somehow tell the windows service to make its home dir the same as the apollo distro (so that it would be run from the D drive) and the code as it is should work
change the code to handle the location on windows correctly, that is, split on something that doesn't make D:\\apache-apollo-1.4\\lib into D and \\apache-apollo-1.4\\lib
I prefer the later. I'll post a patch when i get a sec.
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: