Liferay First Start wizard not openeing - liferay

I had an old Liferay 6.2 environment that is no longer working well, so I decided to download and run a fresh new environment, so I downloaded the Liferay studio, unzipped it and started the executable, I was expecting to see the First Start wizard that installs the sdk and the server automatically, but this didn't happen and the LR studio finally opened bare with no server installed, even I have no idea if I wished to add the server, where its instance might be, As per what I understand, it's wrapped in one or more of the zip files contained inside.

Liferay Developer Studio 3.0 does not come with a "First Start Wizard" any more, however, Developer Studio 2.2 (the last one that explicitly targeted 6.2) does.
If the First Start Wizard already ran, it won't automatically start again (it's quite particular about that "first" attribute). However, if you look at the top right corner of the eclipse workbench, there's an input field, named "Quick Access". Enter "First" in that field, it will autocomplete to "First Start Wizard" (in DevStudio up to 2.2) and you can run the wizard again this way.
As Liferay 6.2 EE is no longer included in DevStudio 3.0, the wizard to set it up is no longer needed. And the Workspace setup for Liferay 7 / DXP is totally different than the Plugins SDK for Liferay up to 6.2

I don't understand your problem to be honest. Could you please delete ALL your liferay's folders and do this:
Install JDK and setting required environment variables (JAVA_HOME, path)
Download MySQL server and start server (mysqld --console and mysql -u root -p, ext.)
Connecting to MySQL server and create Database for Liferay (write down if you don't know how to do that)
Download Liferay 6.2 Tomcat Bundles
Download Liferay 6.2 Plugins SDK
Download Eclipse LUNA
Create Work space folder; extract the downloaded files in work space directory.
Configure Liferay Tomcat sever information in Plugins SDK properties file.
Start Eclipse and choose liferay prospective
Configure Plugins SDK in Eclipse
Configure Liferay Tomcat Server in Eclipse
Start Server
Could you please do this steps and then write down which point you have trouble with?
Thank you!

Sometimes due to some missing config or some corrupted file this might occur.
So firstly Liferay plugins SDK may or may not be a part of developer studio but generally server is available as a standalone component.
In case you fo not have LR server,please download it from Liferay site or it's github repo.
In order to configure LR server/Plugins SDK go to Windows->Preferences->Liferay to configure the same.

Related

How to install DCEVM in Guidewire?

I have downloaded DCEVM jar file. Now I want to install this jar to run Gosu queries in my Gudiewire Studio.
Please help me how to install this DCEVM jar in Guidewire Studio.
Thanks
DCEVM was first published in June 2010 as a research paper. Since then it has been widely used by Guidewire as the preferred VM for development environments. It allows you to Hot Swap (partially reload code changes to classes) without restarting the VM. In a development environment, it can help save a lot of time where a full VM restart can take several minutes. A fork of the original DCEVM is available at http://dcevm.github.io/.
The Dynamic Code Evolution Virtual Machine (DCE VM) is a modification
of the Java HotSpot™ VM that allows unlimited redefinition of loaded
classes at runtime. The current hot-swapping mechanism of the HotSpot™
VM allows only changing method bodies. Our enhanced VM allows adding
and removing fields and methods as well as changes to the super types
of a class.
You can download the suitable installer jar file for your java version and patch your existing JDK by DCEVM. Unfortunately, the only installer available is a jar file and there are caveats to using it.
First of all, you can only patch your JDK if the DCEVM version supports your JDK minor version. A lot of people don't understand this and encounter failures when they try to patch a newer update of Java with the previous version of DCEVM.
A key point to note in the image is the available versions of DCEVM. To be able to install it on Java 8, you must have Java with the update 181 installed i.e. your JDK version must equal 8u181. If you installed an update on the JDK and updated it to 8u271 or another version, the patch is not going to work.
Once you have the installer jar downloaded, you must run it with Administrator privileges on Windows for it to work. In Windows, run cmd as Administrator and then navigate to the directory where the jar is downloaded and run:
java -jar dcevm-installer.jar
For unix based systems you must run:
sudo java -jar dcevm-installer.jar
This should open a window where you need to select your correct JDK version and then click on the Replace by DCEVM button. If done correctly you'll be able to see the status as below:
DCEVM isn't required to run queries in GW Studio. DCEVM enables more capabilities to hotswap (class reloading after compile).
To run queries in GW Studio you only need start server in debug mode, open Gosu Scratchpad (Tools menu or Alt+Shift+S) and use "Run in Debug Process" button in scratchpad
C:\ java -jar dcevem.jar
It will open the DCEVM window, select the java version, and click on the install button.
For version 10.0.3 there actually 2 possible paths to run Guidewire on DCEVM, depending on the version of Java you are using. Those instructions should also work for other versions of GW
For Java 11
Visit http://dcevm.github.io/.
Click the Java 11 link.
Scroll to find the binary for your development platform, and click to download the relevant file, extract the contents of the downloaded file.
Add the DCEVM as an alternate JDK in Studio.
In Studio, click File → Project Structure
Under Platform Settings, click SDKs.
Click Add New SDK +.
Select the folder for the DCEVM, and then click OK.
In the Name text box, change the name to DCEVM.
Click OK.
Click Run → Edit Configurations.
Under Application, click Servers.
Next to JRE, click DCEVM.
Do not set the DCEVM as your project SDK.
For Java 8
Visit http://dcevm.github.io/.
Click the link under Binaries to download the appropriate DCEVM installer for your java version.
Install the DCEVM as an alternative JVM.
At a command prompt, run java -jar installer.jar, where installer.jar is the name of the file you downloaded in the previous step.
java –jar DCEVM-8u181-installer.jar
The Dynamic Code Evolution VM Installer dialog appears.
Select the installation directory for the JDK corresponding to the DCEVM version you are installing.
Click the Install DCEVM as altjvm button.
The Dynamic Code Evolution VM Installer dialog displays Yes in the Installed altjvm column for the selected JDK.
Click "X" to close the Dynamic Code Evolution VM Installer dialog.
In Studio, at the right hand side of the toolbar, select Server.
Click Run → Edit Configurations.
Under Application, click Servers.
In VM options, add -XXaltjvm=dcevm to the end of the line.
Click OK.
Both instructions above are based on the info from documentation

Problems running Agent AI in CodeRally

When I try and deploy to my AI into a local liberty Eclipse informs me that I don't have servlet 3.0 installed.
My liberty installation is:-
Launching server1 (WebSphere Application Server 8.5.5.6/wlp-1.0.9.cl50620150610-
1749) on Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_45-b15 (en_GB)
and it contains servlet 3.1
Even after installing the servlet 3.0 feature, it still says I need to install the feature
Here's some troubleshooting suggestions specific to your scenario.
If you're having issues with your own Liberty install, you can try using the one that ships with the Code Rally install (it's automatically included when you install using the Installation Manager install). You can find it under the Code Rally install dir, for example, on my Windows machine the Liberty install dir is:
C:\Program Files\IBM\CodeRally\wlp
As of July 2015, the Code Rally 1.4 install includes the Liberty 2015.5.0.0 beta, which does includes the servlet-3.0 feature by default.
I would also suggest creating a new workspace for Code Rally, rather than reusing an old workspace. This way you can ensure that there are not any old servers/runtimes defined (either Servers in the Servers view, or Runtimes defined under Preferences > Server > Runtime Environments). Code Rally should work with an existing workspace, but using a new workspace helps rule out these types of issues.
Ensure that you have the correct Liberty server defined in the Servers view, such that the 'WebSphere Application Server Liberty Profile at localhost' entry should be the only one listed. Note that you may also see Web Preview Server in the Servers view list; it can't hurt to remove this.
Finally, Code Rally Agents have a target Liberty server defined in their vehicle info. Right click on your vehicle in the Vehicles tab, and select Edit. Ensure that the "Liberty Server:" combo box is pointing to the correct server.
Thank you Jonathan for your help. The extra step I needed to do, was delete the contents of the c:\users\bondj\user.coderally directory - and then reinstall.

IIS Web Deploy's "Import/Export Application" Action Missing?

I had a working IIS 7.5 with Web Deploy 3.5 configuration such that the "Import/Export Application" feature in the right hand action pane showed up and functioned properly. Unfortunately I had to remove and reinstall IIS, and now the Import/Export functionality does not show up in the Actions pane, as if Web Deploy was not installed.
I tried to reinstall using the automated installer at http://www.iis.net/downloads/microsoft/web-deploy, but when I run it, the installer seems to think that Web Deploy is already installed and does not offer me any reinstall/uninstall option.
How can I force a reinstall of WebDeploy or force IIS to recognize that Web Deploy is still installed?
Go to http://www.iis.net/downloads/microsoft/web-deploy
Scroll to the bottom of the page to the "Download Web Deploy" header
Click the x86 or x64 link next to your language of choice. Do not click the WebPI link.
Once downloaded, click on the installer to open it.
Click Next
Click the Remove button
Now you can reinstall it using the Web Platform Installer, or just use the standalone.
On a side note...
If you don't see the Deploy options in IIS once you've reinstalled Web Deploy, try running IIS as Administrator. Hope this helps.
I am running IIS on my development machine on Windows 7. Web Deploy 3.6 seem to break something as the Import / Export Application options are not available. Had to uninstall 3.6 via control panel add/remove programs and then install 3.5 via Web PI.
I've installed Web Deployment Tool 2.1 then restart IIS Manager and the Import/Export Application appeared.
I was running a 'gallery template' Windows Server 2012 VM on Azure. Web Platform Installer said Web Deploy 3.5 was already installed. At first I thought this neat feature had been removed/moved.
In Add/Remove Programs, saw that Web Deploy 3.6 Beta was installed. Removed it and reinstalled 3.5 (without SQL stuff) via Web PI.
Ran IIS Manager as admin and all works fine.
Update - A new Azure VM also had this problem, but had 3.6 Beta3 installed. Again, removed and reinstalled 3.5 via WebPI.
None of the other answers here fixed this for me with Visual Studio 17 on Windows 10. The fix was here: https://developercommunity.visualstudio.com/content/problem/230372/web-deply-40-msi-location.html
Web Deploy 4 has moved to be distributed with Visual Studio 2017. This is nuts because the Web Deploy service and the Import/Export tools are for server administrators and not devs. The discussion in the link says they are working on adding Web Deploy 4 to the Web Platform Installer, but have encountered a few issues (read: we didn't create a proper deployment for it the first place.)
The fix for me was to uninstall Web Deploy 4 from Control Panel-Apps & features, then reinstall from the MSI provided with Studio. Look in C:\ProgramData\Microsoft\VisualStudio\Packages for a folder like Microsoft.VisualStudio.WebDeploy.Msi,version=...,chip=x64. The MSI file is within that. More detail in the link I mentioned.
My guess is if the IIS Manager is not turned on at the time Studio (and therefore Web Deploy) is installed, the hook for Import/Export can't be created.
My situation is slightly different as I never had the import/export menus. For what it's worth:
I tried to install the Web Deploy installer. It said that a newer version was installed. I tried repairing Web Platform Installer. Nothing changed. I tried changing but was told there were individual components. I tried uninstall/reinstalling WebPlatformInstaller.
After that, the IIS Manager showed a Web Platform Installer icon under the Management section after restarting, but still no Deploy menu on the right click.
Double-clicking that icon started the installer where I could then search for web deploy. There was a Web Deployment Tool 2.1 that was not installed. Clicking Add then Install and restarting IIS Manager (not run As Administrator) was all that was needed to get the Deploy menu:
According to this Microsoft document, the Web Platform Installer should have started automatically. Never did. But it is in the start menu. The steps are the same weather you start it from IIS Manager or standalone.

Setting up Eclipse with Tomcat 7 in Arch Linux

I have recently installed Arch Linux and using Pacman I installed Eclipse and Tomcat 7 using the relevant guides in the ArchWiki. I followed the guide Apache Tomcat Eclipse Integration, An Illustrated Quick Start Guide to integrate the two together.
To sum it up, I did the following:
Installed WPT from the Eclipse Install New Software feature.
Opened the new Dynamic Web Project wizard
During the wizard I selected Apache Tomcat v7.0 and set the Tomcat installation directory to /usr/share/tomcat7
Completed the wizard
Right clicked on the server tab (located at the bottom of the IDE) and clicked on the new server dialogue
In this dialouge is were I encounter an issue. When I choose Tomcat v7.0 Server the error Cannot create a server using the selected type pops up.
I'm suspecting that it might be a permission issue since I am not running Eclipse via root, but I am not sure how to set them up for this scenario. Other than that I am not sure if maybe it is a directory issue, that is, Eclipse is trying to locate a specific folder which is located somewhere else.
I am uncertain if this is an Arch Linux question specifically or Linux in general.
As mentioned before this sounds very much like a permission issue. Ensure that the user running Eclipse has read and execute privileges for Tomcat. Also you should check that the Tomcat server can start properly without running from Eclipse. Verify that it can bind to the default 8080 port, etc.
You can check the Tomcat logs for the details and the configuration file for Tomcat is usually in the <tomcat base>/conf/server.xml.
As you already suspect, it is probably a permission issue. Check that your user is added to the tomcat group and make sure that scripts in /usr/share/tomcat7/bin are readable and executable by tomcat group members. Also it is important that tomcat group has read access to /usr/share/tomcat7/conf files and of course the permission to enter the directories itself.

Make clients to download InstallShield PreRequisites from Internet

My installshield project uses custom prerequisites to install .Net Framework 4.0 Client Profile and Microsoft Sync Framework 2.0 client package.
I want to let clients to donwload .Net Framework and Sync Framework directly from the Internet so that our installer is small. But I cant see a way to this.
If you could give some advices or example, it would be most appreciated.
Cheers
In the Installation Designer, Go to the Media Folder, Select Releases from the Left Pane. On the right pane, under the releases Root tree note, select the Released Child node under this, then the next node under this that is the actual release type (the node above the folders that have the disk image, logs, reports and Validations folders).
Then on the Setup.exe tab for this, find the "InstallShield Prerequisites Location" property and set this to "Download From The Web".
I found a step to solve it on the way of release installer

Resources