Liberty profile server with the name 'worklight' does not exist - ibm-mobilefirst

I have change my workspace path in my eclipse, but after that, there is an error : Liberty profile server with the name 'worklight' does not exist.
How to setting my liberty profile server?

I believe one of the following will help:
From the workspace, delete the MobileFirstServerConfig folder and restart Eclipse
From Eclipse, open the Projects view and delete the "MobileFirst Development Server" folder and restart Eclipse
If you're using Worklight and not MobileFirst, then you'll see the same names, just with "worklight".

Related

Deploy ear file to weblogic 12.1.3 from IntelliJ IDEA 2018.2.5 x64

I have a java EE 5 project. I'm building a project with maven. I use IntelliJ IDEA 2018.2.5 x64.I use weblogic 12.1.3. In the Department of deployment( edit configuration -> Deployment ) specify the ear file. Why doesn't IDEA put ear file in localhost:port/console -> deployments when running ?
Make sure the Runtime Server is added correctly in IntelliJ. Once Added Correctly,You should see the Application servers Tab, where you could Add/Remove Applications effectively.
The Status of the deployment can be seen as Module with a tick Mark in Application Servers Tab.
The answer was simple, the ear file did not deploy due to the fact that I did not enter the domain name and password in the configuration

How can I install Maven plug-in in Anypoint Studio?

For one of my POC, I need to get Maven plug-in installed in my Mule Anypoint studio. How I can install the same?
Follow the steps provided by Pratikkumar. Please remember either you need to get settings.xml from your client or get authentication details to connect nexus repository and create settings.xml. This settings.xml should be placed under .m2 folder(Local repository).
click Help > Install New Software and in Work with, click Anypoint Addons Update Site > Maven Tools for Mule. Click Next and follow the install prompts:
you can follow the next instructions from the below links.
https://docs.mulesoft.com/mule-user-guide/v/3.6/using-maven-with-mule
maven installed on your local machine contains conf folder under that global (settings.xml) is available.
copy the settings.xml and placed under .m2 folder(Local repository).
.m2 folder is generated by executing mvn in cmd prompt.
place the authentication details in settings.xml to connect with nexus repository(if it enterprise)
In Anypoint studio click on help==>click on install new software and follow the steps provided in the below image url.
https://i.stack.imgur.com/oGixo.png
After completing this process change the Installed JRE'S in build path to JDK and restart Any point studio.

ResourcesPlugin.getWorkspace() is not taking the currently opened workspace

I am a novice in Plugin development and I am facing this issue in opening my current workspace:
ResourcesPlugin.getWorkspace() is not taking the currently opened workspace which is D:/ABCDWoekspace, instead it is returning the workspace of eclipse that is created in the eclipse installaction directory d:/eclipse/workspace as my eclipse in installed in D:eclipse
When you run your plugin from within Eclipse a new Eclipse is started with a new workspace in which to run the test. A new workspace is necessary because only one Eclipse instance can access a workspace at a time.
If you open 'Run > Run Configurations' and find your plugin in the 'Eclipse Application' section you can see the workspace location in the 'Location' field on the 'Main' tab. You can change this location to point to another existing workspace location.
You will need to set up this new workspace with whatever projects you need for testing.

IBM Worklight v6.0 - Error while adding an application to the Mobile Test Workbench

I have a Worklight app, created an apk file from it. Created a Test Project.
Adding the apk file to the workbench, it has an error saying:
Application xxx.apk cannot be imported; it is either an invalid one or
it contains specific features that are not supported.
Try opening the .log file for the worklight workspace. I saw an error saying that for the Rational Test Workbench to work, I need to use JDK and not JRE.
The solution that solves my problem is as follow:
In the workspace, go to Window > Preferences
Expand Java > Installed JREs
Add a new JDK and ticky mark it
Open the xxx.ma file
You should still see the error in that file
Select the mobile app from the test workbench file. Delete it
Add the mobile app again to the test workbench file. It will take some time to process.
The problem is most likely to do with the fact that your Eclipse is not pointing to a JDK.
Please edit eclipse.ini to point to your JDK (-vm ... jdk location...)

How can I deploy an exploded web app through WebLogic 11g administrative console?

I need to deploy a web applicataion as an exploded archive (instead of .war) due to some legacy servlet path location code used in it (ServletContext.getRealPath()). I only have web-based admin console access to the WebLogic 11g server that I intend to deploy to. However, I can't figure how to do it. I see an option for deploying archives, but not directories.
Thanks!
http://download.oracle.com/docs/cd/E13222_01/wls/docs81/deployment/overview.html
"WebLogic Server supports deployments that are packaged either as archive files using the jar utility, or as exploded archive directories".
The link
http://download.oracle.com/docs/cd/E13222_01/wls/docs81/deployment/overview.html
is for version 8.1. In newer versions this option does not exist in the admin console (production mode).
The only way is if you somehow access the operating system, or ask somebody to, unzip the war file in some place and then install from that directory (through admin console). You can also upload the war using admin console, and then in the uploaded directory ask to whom as access to SO to unzip it in that place.
You can also try some ninja stuff like: upload the war that you want to expand. Then make another war that contains code that unzips the war you want to expand.
To solve your problem in weblogic11gR1,In admin console in configuration tab -->web-App container click the option "Archived Real path enabled" so that you can access the servletcontext.getRealpath().