How can i setup Liferay 6.2 tomcat8 server configuration in eclipse or liferay studio? Is it supportable? - eclipse

Actually i am not able to configure tomcat8 server in eclipse or liferay studio as liferay plugin is showing only 6.2 with tomcat7 option not 6.2 with tomcat8.
enter image description here

Looking at Liferay's 6.2 Compatibility Matrix, it looks like Tomcat 8 is a supported EE configuration when patched to SP15+.
I'd imagine that using a Tomcat 8 server with Liferay would be simpler in their studio than with basic Eclipse, and could probably be accomplished by:
Setting up a manual installation on an existing Tomcat 8 server
(that you've configured) using the Liferay .war (detailed steps can
be found here)
Creating a new Liferay Workspace in Dev
Studio, but deselect the "Download Liferay bundle" checkbox when
creating the workspace, and configure the workspace’s
gradle.properties file to point to the pre-existing bundle by
setting the liferay.workspace.home.dir property.
Alternatively, you could set up Liferay's Plugins SDK to be used with your Liferay version/application server of choice.
If you already have existing projects in Eclipse, though, you could probably modify the steps in this article to use a 6.2 Liferay .war with Tomcat 8 in Eclipse.

Related

Jboss 6.1 Eclipse 4.19.0 Integration

I have joined a new company where they do not allow us to download anything (Eclipse Marketplace). The default installation of eclipse does not have JBoss wildfly plugin.
Currently, even if I remove a comma in my code, it take 7 to 8 minutes to build/deploy/test
I need to configure Jboss in eclipse and able to do hot deployment whenever I change code. To download the plugin, I need to raise a request. Can I raise a request for below? would it solve my purpose? Can I install this plugin to my eclipse and configure jboss server in the server tab?
https://tools.jboss.org/downloads/jbosstools/2021-03/4.19.1.Final.html#update_site
Jboss 6.1 Eclipse 4.19.0 (I have eclipse 4.2 as well)
Any other idea would be helpful
Yes if you download the update site as a zip file, you will be able to install JBoss Tools plugins in your local Eclipse even in the case you don't have access to network

Liferay portlet development on JBoss AS 6

I am trying to create a new Portlet project (basically a portlet for Liferay) in Eclipse (Helios with Liferay SDK installed). I use JBoss AS 6.10.final and Liferay 6.05.
The problem is that everytime I try to create new portlet, it asks me for Runtime Enviroment. I want this enviroment to be JBoss AS, but Eclipse only suggests different Tomcat distributions. I dont have Tomcat bundle installed and I am not going to since it will run on JBoss AS.
Liferay is already installed on JBoss and running (when I start the JBoss AS, I can access the liferay portal page - it has all jars and wars on correct places in AS).
I havent found any tutorial how to make this work. Could someone perhaps provide some step by step guide or direct me to any existing one? Thank you!
PS: I hope that my question is not too confusing, if so, I will try to edit it and make myself clearer...
I have finally figured it out:
I changed the build.username.properties file
app.server.portal.dir=c:\\Programs\\jboss-6.1.0.Final-ESB-4.12\\server\\default\\deploy\\liferay-portal-6.0.5.war
app.server.lib.global.dir=c:\\Programs\\jboss-6.1.0.Final-ESB-4.12\\common\\lib
app.server.deploy.dir=c:\\Programs\\jboss-6.1.0.Final-ESB-4.12\\server\\default\\deploy
app.server.type=jboss
app.server.dir=c:\\Programs\\jboss-6.1.0.Final-ESB-4.12
so it points to the directory with liferay war files. Then I had to check in Eclipse that I do not want this file to be overwritten again and it works just fine. I can deploy all projects to JBoss using Liferay SDK!

How to develop Liferay project in Eclipsce juno and built it on on Jboss

I have downloaded the Liferay 6.1 with jboss 7.1.1 Bundle and Liferay IDE(Eclipsce Juno).All I have to do is to develop Liferay Project and running it on Jboss server.
I can able to run and open liferay portal in localhost:8080/
I am having issues in developing Liferay portal project.As default server adapter for Liferay in IDE is Tomcat 7.0 and I couldn't able to find Jboss server adapter.I tried by running and deploy it on Tomcat and running the Jboss server by running standalone.bat file.
Please advise and help in develop and running Liferay project on Jboss
There's guide in Liferay Wiki about developing with non-Tomcat Liferay bundles. There you can read about the disadvantages of that kind of development and how to do it if you still want.
But I agree, developing with Tomcat is definetely the better idea.
Liferay IDE is meant for development with Tomcat only since tomcat's start-up time, its simple structure and comparatively easy configuration makes it ideal for a development environment.
If you are development plugin projects like themes, portlets, hook, layouts etc then if it works on tomcat it would work on any other server running with Liferay, so during development you can use tomcat and then when you have completed your development iteration (i.e. when your project is ready to be deployed for testing or for stage environments) you can deploy the WAR to Jboss for testing and can do some testing to see if it works fine.
Since the plugins are made in such a way as to be independent of the underlying Server, there should not be any issues developing them on Tomcat and then running them on Jboss.
Hope this helps.
I achieved it through a work around, steps mentioned # https://www.liferay.com/community/forums/-/message_boards/message/17864836
Benefits of Liferay IDE plugin+ JBoss as runtime configured in IDE.
Only issue is you'll need to use any other eclipse based IDE which supports JBoss AS 7.1.1 as normal server/runtime (like JBoss Developer Studio).

Is it possible to integrate Glassfish support into Liferay IDE yet?

I am looking for a bit of Liferay/Glassfish assistance here.
I am currently using a Liferay 6.0.6 portal running on Glassfish 3.0.1 and developing in Eclipse 3.7 (Indigo). I have downloaded the Liferay IDE for Eclipse as well.
The trouble I am having is in actually developing in Eclipse against a Glassfish server. I cannot create an actual Liferay project in Eclipse because the wizard requires me to specify a Liferay-Tomcat runtime environment.
Now I realize that this is the only server that is supported for the Liferay IDE as it is clearly documented in multiple places on the Liferay website and various forums around the web. However, I seem to recall one site (which, of course, I didn't bookmark :/ ) that gave instructions on a workaround for using Glassfish within the Liferay IDE. I believe it had something to do with creating the initial project as a Tomcat project, then going behind the scenes and changing some configuration files' Tomcat references to point to my Glassfish server.
I have set up my Liferay SDK environment correctly, including the build.username.properties file. I have this file pointing to my Glassfish server.
#
# Specify the paths to an unzipped Glassfish bundle.
#
project.dir=C:\\DEV\\myworkspace
app.server.type=glassfish
app.server.dir=${project.dir}\\..\\bundles\\liferay-portal-6.0.6\\glassfish-3.0.1
app.server.deploy.dir=${app.server.dir}\\autodeploy
app.server.lib.global.dir=${app.server.dir}\\domains\\domain1\\lib
app.server.portal.dir=${app.server.dir}\\domains\\domain1\\applications\\liferay-portal
However, everytime I try to do a deploy through Eclipse...
...this build.username.properties file gets overwritten with Tomcat settings from the runtime environment.
app.server.type = tomcat
app.server.dir = C:\\DEV\\bundles\\liferay-tomcat-6.0.6\\tomcat-6.0.29
app.server.deploy.dir = C:\\DEV\\bundles\\liferay-tomcat-6.0.6\\tomcat-6.0.29\\webapps
app.server.lib.global.dir = C:\\DEV\\bundles\\liferay-tomcat-6.0.6\\tomcat-6.0.29\\lib\\ext
app.server.portal.dir = C:\\DEV\\bundles\\liferay-tomcat-6.0.6\\tomcat-6.0.29\\webapps\\ROOT
Is there somewhere else that I need to make a change in order to get Eclipse to recognize my Glassfish server?
Any help or tips would be greatly appreciated.
It is not currently possible to use a Liferay+Glassfish bundle directly as a runtime or server adapter in Eclipse with the Liferay IDE plugins. As you pointed out the only runtime and server adapters for Liferay IDE are the tomcat bundles. However, you can still use Liferay IDE to develop with Glassfish by using the following receipe with version 6.0.6 and current version of Liferay IDE.
Download Liferay+tomcat bundle
Configure it as a Liferay runtime
Create the project pointing to Liferay runtime
Go to Window > Preferences > Liferay > Installed SDKs, switch "update build.properties" option to Never
Launch Glashfish externally using startup script
Modify the build.properties in your SDK to point to Glasshfish as runtime
For deployment use the SDK deploy action just as you showed and it should be deployed to glassfish.
This should work for now. In the future, we will be adding support for Glassfish server to our Server Manager plugin that can be using with Liferay IDE and Liferay 6.1 for remote deployment and development, so it will work just like a local tomcat instance except it will be remote Liferay running on glassfish or jboss, or whatever you like. But right now the Server manager plugin in 6.1 beta4 only supports Tomcat6/7 and Jboss7. We hope to add Glassfish very soon.

doubts installing hibernate ,hsqldb plugins for eclipse helios

I am taking my first steps developing web apps using Eclipse, Java EE, Hibernate, spring and hsqldb.
I installed the Helios version of Eclipse and installed WTP through the updater. But trying to install the plugins for others, I am having doubts.
Hibernate:
I tried the download jboss.org/jbosstools/updates/stable/ as the hostname in updater and it shows
JBoss Tools - 3.0.3.v200910211631N-H194-GA
JBoss Tools Integration for TPTP, BIRT - 3.0.3.v200910211631N-H194-GA
in the list.Which am I supposed to install?Where is the hibernate plugin?
hsqldb:
when I googled ,I got these links
sourceforge.net/projects/hsqldb-plugin/
Is this the one?what is the update host name I am supposed to give to eclipse?
spring:
i tried springide.org/updatesite/ .It shows a list of some 10 or more items..What should I select?core /spring IDE?
The HSQLDB plugin for eclipse is an extension that can be added from within eclipse. See here for details on how to set up and use.
http://article.gmane.org/gmane.comp.java.hsqldb.user/4633/