Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 351284 - [Gogo] SSH is not available when starting Virgo 3 M06 from within Eclipse
Summary: [Gogo] SSH is not available when starting Virgo 3 M06 from within Eclipse
Status: CLOSED WORKSFORME
Alias: None
Product: Virgo
Classification: RT
Component: tooling (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 3.5.0.RELEASE   Edit
Assignee: Florian Waibel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 351328
Blocks: 368783
  Show dependency tree
 
Reported: 2011-07-06 05:08 EDT by Frieder Heugel CLA
Modified: 2014-12-03 16:49 EST (History)
5 users (show)

See Also:


Attachments
The serviceability log (378.08 KB, application/octet-stream)
2011-07-06 05:12 EDT, Frieder Heugel CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Frieder Heugel CLA 2011-07-06 05:08:25 EDT
Build Identifier: 3.0.0.M06

When I try to start the latest milestone 6 from within Eclipse an exception is thrown and SSH is not available. When I start Virgo from the filesystem everything works as expected and I can connect to Virgo via SSH.

Reproducible: Always
Comment 1 Frieder Heugel CLA 2011-07-06 05:12:06 EDT
Created attachment 199170 [details]
The serviceability log

The exceptions start at line 891 and 1183
Comment 2 Frieder Heugel CLA 2011-07-06 05:14:02 EDT
(In reply to comment #1)
> Created attachment 199170 [details]
> The serviceability log
> 
> The exceptions start at line 891 and 1183

One more thing I am using Eclipse 3.7, Spring IDE 2.7.0 and Virgo Tooling 1.0.0.201106292003-SNAPSHOT.
Comment 3 Glyn Normington CLA 2011-07-19 07:26:09 EDT
Deferring as this is a tooling fix.

It should be possible to work around this bug by specifying some extra parameters in the runtime configuration.
Comment 4 Miles Parker CLA 2012-03-20 15:21:11 EDT
What would those parameters be? Would they interfere with non-ssh case if we included them in all configs? Assuming so, we could provide a checkbox for using SSH in the Server Runtime UI.
Comment 5 Lazar Kirchev CLA 2012-03-23 12:45:55 EDT
(In reply to comment #4)
> What would those parameters be? Would they interfere with non-ssh case if we
> included them in all configs? Assuming so, we could provide a checkbox for
> using SSH in the Server Runtime UI.

Hi,

Currently in 3.5 the following properties are defined for the ssh:

these 2 are in configuration/config.ini:

osgi.console.ssh.useDefaultSecureStorage=false
osgi.console.useConfigAdmin=true


these 2 are in dmk.bat
-Dssh.server.keystore="%CONFIG_DIR%/hostkey.ser"
-Djava.security.auth.login.config="%CONFIG_DIR%\org.eclipse.virgo.kernel.authentication.config"

In addition, in configuration and repository/ext folders there are osgi.console.properties files, which define some properties for the console. 

The properties above should be available when Virgo is run. Does the tooling uses config.ini and dmk.bat as they are in the Virgo installation? If it does, then the properties should come from there, otherwise the tooling should set them.
Comment 6 Glyn Normington CLA 2012-03-23 12:57:10 EDT
(In reply to comment #5)
> Does the tooling uses config.ini and dmk.bat as they are in the Virgo installation?

The tooling does not use dmk.bat. That much I know. ;-)
Comment 7 Miles Parker CLA 2012-04-26 12:48:37 EDT
Frieder, sorry for taking so long to get back to you on this -- just missed that I had the reply saved but not submitted..

(In reply to comment #6)
> (In reply to comment #5)
> > Does the tooling uses config.ini and dmk.bat as they are in the Virgo
> installation?
> 
> The tooling does not use dmk.bat. That much I know. ;-)

Right. :). Well I just checked and they appear in dmk.sh as well. :D

(In reply to comment #5)
> (In reply to comment #4)
> The properties above should be available when Virgo is run. Does the tooling
> uses config.ini and dmk.bat as they are in the Virgo installation? If it does,
> then the properties should come from there, otherwise the tooling should set
> them.

So, both values are already being set, but the keystore setting is only set for Virgo 3.5 servers. Is that what you're using?
Comment 8 Miles Parker CLA 2012-07-03 18:27:41 EDT
See related bug 351328 which is probably the cause. I won't close until we can test that.
Comment 9 Lazar Kirchev CLA 2012-07-04 03:58:29 EDT
(In reply to comment #8)
> See related bug 351328 which is probably the cause. I won't close until we can
> test that.

As can be seen from the log, the exception is:

Cannot start ssh: Property org.eclipse.equinox.console.jaas.file is not set; cannot use JAAS authentication 
[2011-07-06 11:09:20.284] ERROR ManagedService Update Queue  System.err                                                        java.lang.IllegalArgumentException: Property org.eclipse.equinox.console.jaas.file is not set; cannot use JAAS authentication

So if the property is set, and the server is Virgo 3.5, SSH should work. If it fails, it should be with another problem.

I think that this is not related to bug 351328, at least the exception from the log.
Comment 10 Florian Waibel CLA 2014-12-03 16:49:48 EST
I wasn't able to reproduce this issue with:

Eclipse Virgo Tools                      1.0.1.201408222103-SNAPSHOT
Eclipse Virgo Server for Apache Tomcat   3.6.3.RELEASE

Please reopen if need be.