Thursday, January 20, 2011

vCO - Access to Java Classes

By default JavaScript in vCO is limited to class subtree java.util.* . Please read vCenter Orchestrator Administration Guide 4.1 on page 69 before changing default settings.
Why changing default settings? In my case I want to unzip bundles in an offline repository only with vCO, not using 3rd party tools. The ZipFile object is direct accessible, but some methods are derived from classes in java.io.* and java.lang.Object. So I have to loosen the default restrictions, described on Page 69.

Step1:

create a text file e.g MyShutter.txt with following content:

java.io.*
java.util.*
java.lang.Object


Save this file at <VCO-install-folder>\Orchestrator\app-server\bin\MyShutter.txt. This folder already exists.

Step 2:

Stop VCO-Server
Edit vmo.properties (look in ...\app-server\server\vmo\conf) and add following line:

com.vmware.scripting.rhino-class-shutter-file=MyShutter.txt

I've tried to use here an absolute path e.g. C:/VCO/MyShutter.txt (nothing was mentioned in documentation). You will get an error (server.log) like this if doing so:

2011-01-20 16:52:31.540+0100 ERROR [MainScriptingObject] Cannot find rhino js shutter class file at location : C:\Program Files\VMware\Orchestrator\app-server\bin\VCOMyShutter.txt

Step 3:

Start VCO-Server
Run an example using an object from new accessible classes.
Check server.log
If your example fails, check
  • server.log for above error - maybe the shutter file was not found
  • object naming - so you not using import the object must be fully qualified - e.g. ZipFile object qualifies as java.util.zip.ZipFile
Feel free to leave comments or drop your questions.

Regards, Andreas

23 comments:

  1. Welcome to our website
    java training that is the largest professional java training site where java,
    java training, online java course, java training in Virginia,
    java programming are available

    more detail.......
    online java course
    java programming
    java training in Virginia

    ReplyDelete
  2. very good infromation and thanks for sharing this keepitup.
    JAVA Online Tutorials

    ReplyDelete
  3. Hi,
    Very nice information shared ...
    Online learning patform is being widely spread these days because most of the people are very busy and do not have time to travel and attentd regular classes . And everybody wants to learn from best teachers available so that's why they are inclined towards online learning . I myself like to learn online and i have taken many courses online and now planning to do online java training course from http://www.wiziq.com/course/12145-the-6-week-complete-java-primer-with-training-certificate .

    ReplyDelete
  4. Excellent piece of knowledge, I had come back to read concerning your web site from my friend shiva, bangalore. I have readed atleast eight posts of your website and let me tell you, your website provides the most fascinating information. This is the knowledge that I had been craving for, I am already your rss reader currently and that I would frequently be careful for the new posts. Thanks plenty another time, Regards,Java Online Training

    ReplyDelete
  5. I have come to know you had a good knowledge on Java.. I too had good knowledge on java because i have java online training in 123trainings at hyderabad.. They will provide excellent training

    ReplyDelete
  6. Hello this is awesome blog. You have really did very well in this blog.
    It has a lots of information.
    Thank You so much.
    Free English Speaking Course in India

    ReplyDelete
  7. Online CCNA Training, Online CCIE Training, Online Cisco Training, Online Ethical Hacking Training, Online CCNP Training, Online MCSE T, Online Linux Training, MCITP Training, Online VMware Training and more offered by Zoom Technologies by highly proficient CISCO certified experts - Hyderabad, India. Visit http://zoomgroup.com

    ReplyDelete
  8. vmware online training| vmware training| call us+ ...
    www.21cssindia.com/courses/vmware-online-training-81.html
    vmware online training india, vmware online training visakhapatnam, vmware online training free, vmware online training courses, vmware web based training, ...Call Us +919000444287

    ReplyDelete
  9. Very useful site for all the students and must be shareable site. thanks a lot for the post!
    Microsoft Dynamics AX Training | VMware Virtualization Online Training

    ReplyDelete
  10. Hi,
    awesome information shared on this blog thanks to shared the information
    www.magnificonlinetraining.com

    ReplyDelete
  11. very nice blogs!!! i have to learning for lot of information for this sites...Sharing for wonderful information.Thanks for sharing this valuable information to our vision. You have posted a trust worthy blog keep sharing.
    sap scm training

    ReplyDelete
  12. I feel really glad to read the blog with attractive . Online education is really gaining a global attention. I enjoy reading through your article post sap all modules
    sap fico training

    ReplyDelete
  13. Thank you for very nice information.
    It is very useful to me and who are searching for Java online training

    ReplyDelete
  14. I have read your blog its very attractive and impressive. I like it your blog.

    Java Training in Chennai Java Training in Chennai | Core Java Training in Chennai

    Online Java Training Online Java Training | Java J2EE Online Training | JavaEE Training Institute in Chennai

    ReplyDelete
  15. Java Training Institutes Java Training Institutes Java EE Training in Chennai Java EE Training in Chennai Java Spring Hibernate Training Institutes in Chennai J2EE Training Institutes in Chennai J2EE Training Institutes in Chennai Core Java Training Institutes in Chennai Core Java Training Institutes in Chennai

    ReplyDelete
  16. That really great information.....
    keep me informed
    <a href="http://itutorial.i

    ReplyDelete
  17. Excellent and very cool idea and the subject at the top of magnificence and I am happy to this post..Interesting post! Thanks for writing it.What's wrong with this kind of post exactly? It follows your previous guideline for post length as well as clarity..
    Android Training in Chennai

    ReplyDelete
  18. Java Online Training Java Online Training Java Online Training Java Online Training Java Online Training Java Online Training

    Hibernate Online Training Hibernate Online Training Spring Online Training Spring Online Training Spring Batch Training Online Spring Batch Training Online

    ReplyDelete
  19. This is very educational content and written well for a change. It's nice to see that some people still understand how to write a quality post!
    vmware training london

    ReplyDelete
  20. This is an awesome post.Really very informative and creative contents. These concept is a good way to enhance the knowledge.I like it and help me to development very well.Thank you for this brief explanation and very nice information.Well, got a good knowledge.
    CCNA Training in Chennai

    ReplyDelete