VMware {code} Community
CathyBr
Enthusiast
Enthusiast

Vsphere WebClient SDK V6.7U2 - problems to setup tomcat server in eclipse

Hi,

I saw that the new sdk is available, so I downloaded it.  After realizing that the   "Eclipse-Setup.html" which is found in the "docs" subdirectory is out of date (still refers to the virgo server instead of tomcat)

I also downloaded the "Developing Local Plug-ins with vSphere Client SDK - VMWare vSphere 6.7".

I  followed the directions in this file, and even got rid of my old sts - and replaced it with the newest Eclipse - so I could match the directions completely.

Starting the tomcat directly using the "startup.bat" script worked as expected, I could login to the remote vCenter and see the inventory.

Then I stopped it and tried to start it within the eclipse - after trying and retrying for a complete day, I have given up.

I got to the Chapter "Configure the Tomcat Server in Your Eclipse IDE" - here you are instructed to add a new server "Apache->Tomcat v8.5" - ok

Then you should set the VMWARE_CFG_DIR to the correct directory - also ok

Then it says "From the Overview Page" you should set values in the "Server Startup Configuration" and "Redeploy Behavior" Panes - these are not available for me in the Server Configuration ...

Instead, you are expected to configure ports 2 for http, and one for SSL - so I set them to 9090 and 9443 respectively.

I then started the tomcat - and it started successfully.  But none of the Html Client packages were deployed.  I checked out the catalina.bat and saw values for things like ports (http.port, https.port, shutdown.port) etc. are configured here - but do not seem to be confiured when the tomcat is started from eclipse.  I added the defines in the runtime environment, but this did not help either.

So it seems to me that this Chapter is not complete - or does not match together with the newest version of eclipse.   Could you please tell me how to get the tomcat server to pickup the vpshere packages?

I checked the logs - in "access"-> localhost_acess_log.xxx.txt I see:

120.0.0.1 ... "GET / HTTP1.1" 404 -- http-nio-127.0.0.1-9090-exec 1 0

The catalina.log looks very much like the one written when the startup.bat is called. I could find no error.

They other logs (also the virgo log) are missing or have no content.

thanks for the help

Cathy

Reply
0 Kudos
7 Replies
Denis_Chorbadzh
VMware Employee
VMware Employee

Hi Cathy,

 

We were able to reproduce the issue and indeed the tomcat reports "started", but the vSphere Client's UI is inaccessible.

However, the "startup.sh/bat" scripts work as expected.

We are currently investigating the issue and will give updates as soon as possible.

 

Best Regards,

Denis

Reply
0 Kudos
CathyBr
Enthusiast
Enthusiast

Hi  Denis,

do you have anything new about this issue?

thanks

Cahy

Reply
0 Kudos
Denis_Chorbadzh
VMware Employee
VMware Employee

Hi Cathy,

 

Sorry for the delay in the response.

We managed to get the Tomcat server running in Eclipse, however, the process required many additional steps due to the fact that we are using a custom configuration of the server.

This makes the process more tedious than before and we will be working to streamline the process and make it easier for developers.

For now, the recommended approach is to use the scripts that come with the vSphere Client SDK.

 

Again, we are sorry for the inconvenience.

 

Best Regards,

Denis

Reply
0 Kudos
SwethaJeyaraman
Contributor
Contributor

Hi,

I downloaded the client SDK from 

     https://code.vmware.com/web/sdk/6.7/client

Followed the steps to setup Java, Eclipse and Tomcat server from

https://vdc-download.vmware.com/vmwb-repository/dcr-public/f13a3bdb-1ba1-48c3-8e00-3d213264b8fd/eea0...

As commented earlier in this thread we have been able to use the scripts to get to localhost:9443/ui to start up the vsphere client but when the Tomcat server is started in eclipse I am not able to access localhost:9443/ui.

Screen Shot 2019-06-07 at 9.47.46 AM.png

I wanted to clarify if this is a known issue and if so do we have a timeline on when we can expect a fix/workaround for this.

Thanks for any help!

-Swetha

Reply
0 Kudos
Denis_Chorbadzh
VMware Employee
VMware Employee

Hi Swetha,

 

This is a known issue and currently, the recommended approach is to use the scripts available in the SDK: <sdk_folder>/vsphere-ui/server/bin

 

Best Regards,

Denis

 
 
Reply
0 Kudos
CathyBr
Enthusiast
Enthusiast

Hi Denis,

can you please tell me if this issue is resolved in V6.7U3?

thanks

Cathy

Reply
0 Kudos
Denis_Chorbadzh
VMware Employee
VMware Employee

Hi Cathy,

 

Since the process of setting up the server in Eclipse has become tedious and requires many manual steps, we have decided to not recommend this approach anymore.

The currently supported way is to use the scripts that come with the vSphere Client SDK.

 

Best Regards,

Denis

Reply
0 Kudos