Solved: -Dmaven.multiModuleProjectDirectory system property is not set


When we try to run Maven Project from Eclipse IDE, then we may encounter error such as -Dmaven.multiModuleProjectDirectory system propery is not set. Check $M2_HOME environment variable and mvn script match.

Interesting Books on Jenkins and DevOps… Have a look at it:

Solution:

1) Open Eclipse IDE
2) Go to Window-> Preference -> Java -> Installed JREs
Continue reading “Solved: -Dmaven.multiModuleProjectDirectory system property is not set”

Advertisements

VMware vCenter Orchestrator Troubleshooting: Sample workflows are not working


VMware vCenter Orchestrator
VMware vCenter Orchestrator
VMware vCenter Orchestrator Troubleshooting: Sample workflows are not working

1st 2 images are the screen shot of failed workflow in vCenter

Cloud Computing – Download Free EBooks and Whitepapers
Java – Download Free EBooks and Whitepapers
Windows – Download Free EBooks and Whitepapers
VMware vCenter Orchestrator workflow
VMware vCenter Orchestrator workflow
VMware vCenter Orchestrator workflow - Start Virtual Machine and Wait
VMware vCenter Orchestrator workflow – Start Virtual Machine and Wait

Rest 2 are of failed workflow vCloud Director.

failed workflow vCloud Director
failed workflow vCloud Director
failed workflow - Power on Virtual Machine
failed workflow – Power on Virtual Machine

Installation of vCenter Orchestrator was successful but Sample workflows were not working and we were not able to identify the issue.

Versions: vCenter–4.1 and vCenter plug-in for vCO 1.0 and the vCloud Director 1.0 and vCloud Director plug-in for vCO. 1.2

Workflow Error in vCloud Director
Workflow Error in vCloud Director

Workflow Token Tab was empty; Events tab showed only 2 events 1) created & 2) saved. Inventory for those vCO plug-ins inside the vCO client works fine.

Verify the user which is configured for both plug-ins (it could be the same or not) has the rights to perform the operation of powering on a VM.

If no issue exist with permission misconfiguration then…??/

Check for error messages on the server.log file and it would certainly gives the reasons it is failing.

2011-09-30 17:24:18.149+0530 INFO [Execution] Executing workflow ‘Power On VM’
2011-09-30 17:24:18.274+0530 WARN [WorkflowHandler] Error in execution of workflow ‘Power On VM’
java.lang.NoClassDefFoundError: Could not initialize class com.vmware.vmo.plugin.vix.VixServer
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at ch.dunes.vso.sdk.SDKModuleDescription.defineInScope(SDKModuleDescription.java:453)
at ch.dunes.vso.sdk.ModulesFactory.defineInScope(ModulesFactory.java:409)
at ch.dunes.scripting.jsmodel.Definitions.doDefineModelInScope(Definitions.java:94)
at ch.dunes.scripting.jsmodel.Definitions.defineModelInScope(Definitions.java:48)
at ch.dunes.scripting.server.script.MainScriptingObject.<init>(MainScriptingObject.java:144)
at ch.dunes.workflow.engine.mbean.helper.WorkflowHandler.execute(WorkflowHandler.java:183)
at ch.dunes.workflow.engine.mbean.helper.WorkflowHandler.run(WorkflowHandler.java:155)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
2011-09-30 17:24:18.289+0530 WARN [WorkflowHandler] Unable to Clean Scripting context
java.lang.NullPointerException
at ch.dunes.workflow.engine.mbean.helper.WorkflowHandler.end(WorkflowHandler.java:527)
at ch.dunes.workflow.engine.mbean.helper.WorkflowHandler.execute(WorkflowHandler.java:257)
at ch.dunes.workflow.engine.mbean.helper.WorkflowHandler.run(WorkflowHandler.java:155)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)

So now the Solution is: Disable the VIX plug-in in the web configuration and try again.

How to disable the VIX plug-in?

vCO configuration -> Plugins tab and uncheck that -> Restart the service or the server under the Startup tab -> Do it a couple different times to remove it from my inventory on the vCO client.

I removed the VIX plugin and all is working now.

—————————————————————————

2011-09-30 18:22:43.851+0530 INFO [STDOUT] ============================ VMO server ready ==============================

2011-09-30 18:26:57.281+0530 INFO [LicenseTester] LicenseTester [administrator] –> Login successful

2011-09-30 18:26:57.344+0530 INFO [LicenseTester] This vCenter server is licensed for vCenter Orchestrator Server

2011-09-30 18:27:28.818+0530 WARN [ConfigurationFactory] No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/C:/Program Files/VMware/Infrastructure/Orchestrator/app-server/server/vmo/lib//ext/ehcache-1.5.0.jar!/ehcache-failsafe.xml

2011-09-30 18:27:28.833+0530 INFO [VCloudCacheManager] Creating cache 5b57889ef05d998795b9bbbb73bb74

2011-09-30 18:27:30.318+0530 INFO [AuthChallengeProcessor] basic authentication scheme selected

2011-09-30 18:28:17.982+0530 INFO [Execution] Executing workflow ‘Power On VM’

2011-09-30 18:28:18.607+0530 INFO [Definitions] Adding mapper : ch.dunes.scripting.server.script.ServerScriptMapper@2805805d

2011-09-30 18:28:18.669+0530 INFO [ServerScriptMapper] Initialize Server Scripting Objects

————————————————————————————————————————————————————

Successful Execution of Workflow in vCenter Orchestrator - Power on VM
Successful Execution of Workflow in vCenter Orchestrator – Power on VM

References:

http://communities.vmware.com/message/1744403#1744403

http://communities.vmware.com/message/1735589#1735589

http://communities.vmware.com/message/1637297#1637297

How to Configure CloudAnalyst in Eclipse


Configure CloudAnalyst in Eclipse

Create New Java Project

Cloud Computing – Download Free EBooks and Whitepapers
Java – Download Free EBooks and Whitepapers
Windows – Download Free EBooks and Whitepapers
New Java Project in Eclipse
New Java Project in Eclipse
Create Java Project in Eclipse
Create Java Project in Eclipse
New Java Project in Eclipse: Java Settings
New Java Project in Eclipse: Java Settings

Java™ Application Development on Linux® – Free 599 Page eBook

Enterprise Java Virtualization:

Understanding the TCO Implications

InfoWorld’s Java IDE Comparison Strategy Guide:

Java Essential Training

Apache Jakarta Commons: Reusable Java™ Components

Enabling Rapid ROI: With Java™ – Based Business Intelligence Applications:

Go to File->Import

New Java Project in Eclipse: Import Source Code from Existing Project
New Java Project in Eclipse: Import Source Code from Existing Project
New Java Project in Eclipse: Import resources from Local File System
New Java Project in Eclipse: Import resources from Local File System
Run CloudAnalyst in Eclipse
Run CloudAnalyst in Eclipse

Done!!!

CloudAnalyst GUI
CloudAnalyst GUI

Single Sign-On for Java and Web Applications

Bulletproof Java Code: A Practical Strategy for Developing Functional, Reliable, and Secure Java Code

Transforming a Generic Java IDE to Your Application Specific IDE:

The Java Virtual Appliance—No OS Required

BEA WebLogic® Operations Control: Application Virtualization for Enterprise Java

Enabling Rapid ROI: With Java™ – Based Business Intelligence Applications:

How to install and add JRE7 in Eclipse?


We have moved this post at -> http://etutorialsworld.com/2016/03/how-to-install-and-add-jre7-in-eclipse/

How to remove Empty Packages from Package Explorer in Eclipse


remove Empty Packages from Package Explorer in Eclipse

Open Eclipse -> Go to Package Explorer View

Empty Packages in Project Explorer in Eclipse
Empty Packages in Project Explorer in Eclipse
Cloud Computing – Download Free EBooks and Whitepapers
Java – Download Free EBooks and Whitepapers
Windows – Download Free EBooks and Whitepapers

Select Filters

Filters for Packages in Eclipse
Filters for Packages in Eclipse

Java Element Filters in Eclipse…

Select the Empty Packages Element to From the View
Select the Empty Packages Element to From the View

Done!!!

Install Tomcat 6 or 6.0.35 on Ubuntu 11.10 or 11.04 or 10.10 or 10.04 LTS


While it is possible that older versions of Tomcat may not be compatible with newer JVMs, all the currently supported Apache Tomcat versions (5.5.x, 6.0.x and 7.0.x) are known to run correctly on Java 6 JVMs. (Ref-http://tomcat.apache.org/migration.html)

Cloud Computing – Download Free EBooks and Whitepapers
Java – Download Free EBooks and Whitepapers
Windows – Download Free EBooks and Whitepapers

we’ll download and extract Tomcat 6 or 6.0.35 from the Apache site

Find the appropriate installation version from : http://apache.hoxt.com/tomcat/tomcat-6/, Download it manually or by wget command from the console.

Installing Tomcat 6 on Ubuntu. If you are running Ubuntu and want to use the Tomcat servlet container, you should not use the version from the repositories as it just doesn’t work correctly. Instead you’ll need to use the manual installation process that I’m outlining here. Before you install Tomcat you’ll want to make sure that you’ve installed Java. Use Synaptic Package Manager to install Java.

Use Synaptic Package Manager to install Java
Use Synaptic Package Manager to install Java
Verify Java Version
Verify Java Version
Now Extract Tomcat files with tar xvzf apache-tomcat-6.0.35.tar.gzOpen Terminal, Go to Tomcat Directory/binRun ./startup.shOpen the default page- http://localhost:8080 Done!!!

Install Tomcat 5 or 5.5.35 on Ubuntu 11.10 or 11.04 or 10.10 or 10.04 LTS


While it is possible that older versions of Tomcat may not be compatible with newer JVMs, all the currently supported Apache Tomcat versions (5.5.x, 6.0.x and 7.0.x) are known to run correctly on Java 6 JVMs. (Ref-http://tomcat.apache.org/migration.html)

Cloud Computing – Download Free EBooks and Whitepapers
Java – Download Free EBooks and Whitepapers
Windows – Download Free EBooks and Whitepapers

we’ll download and extract Tomcat 5 or 5.5.35 from the Apache site

Find the appropriate installation version from : http://apache.hoxt.com/tomcat/tomcat-5/, Download it manually or by wget command from the console.

Installing Tomcat 5 on Ubuntu. If you are running Ubuntu and want to use the Tomcat servlet container, you should not use the version from the repositories as it just doesn’t work correctly. Instead you’ll need to use the manual installation process that I’m outlining here. Before you install Tomcat you’ll want to make sure that you’ve installed Java.

Use Synaptic Package Manager to install Java.

Use Synaptic Package Manager to install Java
Use Synaptic Package Manager to install Java
Verify Java Version
Verify Java Version
Now
Extract Tomcat files with tar xvzf apache-tomcat-5.5.35.tar.gzOpen Terminal, Go to Tomcat Directory/binRun ./startup.shOpen the default page- http://localhost:8080

Done!!!