xvpsource / xvp

Cross-platform VNC-based and Web-based Management for Citrix XenServer and Xen Cloud Platform
GNU General Public License v2.0
40 stars 14 forks source link

Java 8 Error #11

Open plastilincheg opened 9 years ago

plastilincheg commented 9 years ago

XVP Viewer not working in java above 7 version.

xvperror

mahdilogs commented 9 years ago

I have the same problem with java 8. why xvp don't use a javascript VNC client?

plastilincheg commented 9 years ago

I think it would be great to give up Java in favor of HTML5, namely NOVNC. That would be fine. http://kanaka.github.io/noVNC/noVNC/vnc.html It is used to control the virtual machine console in Proxmox

SnakeDoc commented 9 years ago

"access denied" usually doesn't mean your java is not working... it usually means "access is denied".

java is pretty standard for most IPMI interfaces and the like. there is nothing wrong with using java here.

mahdilogs commented 9 years ago

I know what does "access is denied" means, but the problem is when i uninstalled java 8 and installed java 6 it's works without that error, with the same java security settings. it's better you say the solution with that version of java if you know.

also i think there is no problem to use a HTML5 and JS on IPMI interfaces like here, absolutely it's better than java that makes your app on user dependent..

plastilincheg commented 9 years ago

I would like to know. In a thread there are developers? Or only users?

jonathanhoskin commented 9 years ago

@plastilincheg I am a developer along with one or two others. However we are heavily time constrained, so unless you are willing to open a pull request with a fix, it could be a way off.

plastilincheg commented 9 years ago

@jonathanhoskin I'm not a developer. So I will have to wait until you will have free time to correct the problem. I will hope that it will be fast. Thank you.

x-source commented 9 years ago

Actual Java Version use the RMI Security Manager Features. As a workaround open the file java.policy (for example C:\Program Files (x86)\Java\jre8\lib\security) and put the following lines inside grant {

// Allow the client to connect to the server // connect includes resolve, client need only connect permission java.net.SocketPermission "YOURIP:5900-", "connect";

change YOURIP.

Note that your config is not secure and read the tunnel-guide at http://www.xvpsource.org/tunnel-guide.html

... on a tunneled connection the way is similar but you must also change the port 5900 to 443 in the java.policy file.

Hope thats help.

plastilincheg commented 9 years ago

@x-source Sorry, but can you help me? What configuration file i must edit for change port 5900 to 443? Where it store on VM?

shadowdao commented 9 years ago

It's been a while but if I recall 5900 is the connection between xvp and xen server's VNC for the vm. Why are you looking to change that port?

On Tuesday, March 17, 2015, plastilincheg notifications@github.com wrote:

@x-source https://github.com/x-source Sorry, but can you help me? What configuration file i must edit for change port 5900 to 443? Where it store on VM?

— Reply to this email directly or view it on GitHub https://github.com/xvpsource/xvp/issues/11#issuecomment-82194274.

Sent from my iPhone. Please excuse any grammar, spelling or auto-correct errors.

plastilincheg commented 9 years ago

@shadowdao I want change this port to standard SSL because Java 8 not work.

shadowdao commented 9 years ago

Have you tried to add the domain to security exceptions? Its been a while since I started a new job and they have VMware and Hyper-V instead of Xen so I haven't had a lot of time to work on XVP.

On Tue, Mar 17, 2015 at 8:31 AM, plastilincheg notifications@github.com wrote:

@shadowdao https://github.com/shadowdao I want change this port to standard SSL because Java 8 not work.

— Reply to this email directly or view it on GitHub https://github.com/xvpsource/xvp/issues/11#issuecomment-82415738.

plastilincheg commented 9 years ago

@shadowdao IP and domain name in exceptions on Java Security Settings. But Console not work.

plastilincheg commented 9 years ago

For fix. Do these:

  1. Edit the file java.policy: C:\Program Files (x86)\Java\jre1.8.0_60\lib\security\java.policy
  2. Add line with your IP or domain name: permission java.net.SocketPermission "kvm.mydomain.tld:5900", "connect, resolve";
  3. Save
  4. Restart your browser

Working for me )