I would appreciate if someone could give few easy steps how to deploy and test portlet in Liferay portal. I tried to search of course but some of the tutorials doesn't apply to new versions, some were overcomplicated and some didn't work for me.
I have a one JSR-286 portlet which I want deploy (I have Tomcat bundle on 6.1 version), add it to same page and see if the portlet works. So if you can can give five steps or so how to do this I would be really grateful.
P.S. This seems to me like in the Boromir meme - one does not simply deploy portlet into Liferay:-)
1.)Run the ant deploy script
2).Log in to the
portal with your default administrator credentials
3). On any page,
click Add in the Dockbar and select More
4). By default, the portlet
you just created would be under the Sample category. Click the Add
button next to whatever portlet you just deployed
Good luck let me know if you have any questions
The best way to deploy portlets in liferay is hot deployment.
Check this link.. Surely it will work
http://docs.liferay.com/portal/4.2/official/liferay-portlet-development-guide-4.2/multipage/ch04.html
Related
I am asked to Create a Portal Website on a Button Click
When a button is clicked on Portlet i have to Create a Page and add content and theme to it programatically using the action method of that portlet
However i am not able to find how to do this using java.
Wherever i have seen i could see how to do it on Websphere Portal Admin
I am using http://wpcertification.blogspot.in/ and http://www-10.lotus.com/ for reference and not able to find how to do this .
For example from UI http:localhost:10039/wps/portal
i can do the same by following steps
1. Click on Administration
2. Click on Manage Pages
3. Create new Page
4. Select default Theme for page
5. goto page
6. Add Content or Portlets
Server used: IBM websphere Portal 8.5
Technology: Java /Spring/Portlet
I am still not sure if portletfactory can do the same work as i am totally new To this so can someone guide on how to move forward
Expected End result: create a portal website with few dynamic portlets created on a button click based on some inputs and the website should be saved on a URL.
You will have to use the Controller SPIs for what you want to do. Here are links to the documentation:
http://www.ibm.com/support/knowledgecenter/SSHRKX_8.5.0/mp/dev/ctrlrapic_ovu.html
http://www.ibm.com/support/knowledgecenter/SSHRKX_8.5.0/mp/dev/ctrlrapit_crt_rsrc.html
Sorry for the late answer, but I was finally able to solve this issue with the help of a post by Georgy Gobozov. I used the Migration Script Created by him to handle the page creation -
Page Create Code and Copy.
This really helped me in solving the issue. With this I was able to create pages on runtime and add portlets to them on a button click.
I asked this question here and the answer came back to refer to this article. However something seems to have changed in Eclipse since that article was written. There is no menu option New > Web Services > select Web Service Client in Eclipse 4.5.
Is there another way to do this?
I have referred to the question Here and have been unable to resolve my issue at all.
I'm making a dynamic web project that uses jsp / css as well as jquery. Right now I need to stop the server, clean, and republish.
I have build automatically checked, I have selected automatically publish on the server... I'm not really sure if I'm missing something but I'd love to get this working as frontend development without realtime editing is horrid.
I'm not using maven or any other form of source control (yet)(I can add in ivy, if need be?)
Thanks.!
Image of server setup
If your are using the JBoss Server Manager that came with the Jboss Tools Suite you have to mark the "Automatically publish when resources change" option of the "Publishing" section of your Jboss Server Configuration.
You can find the Jboss Tools for Juno here, or you can use the Jboss Developer Studio IDE, that is an Eclipse Indigo + Jboss Tools like explained here (I'm using it, and it runs way better than eclipse, don't know why, but that's just my experience)
I'm starting to work on a project on java with eclipse IDE, and I understood that there is a plug-in that I can follow the requests and the responds.
I've been looking for them but haven't found anything, if anyone knows, I'd be very thankful.
I'd recommend that you use SoapUI for your response/requests, if you have deployed web service on your localhost or anywhere.
SOAPUI is a very nice tool. You can download it standalone (I prefer) or you can also download the Eclipse plugin for it.
Eclipse has a built in Web Service explorer that may be enough for your needs.
Open the JavaEE Perspective
Click "Run", then "Launch the Web Services Explorer"
Click the WSDL Page icon in the top right corner
Click "WSDL Main" and enter your WSDL URL.
This will allow you to use a UI to enter in your parameter values but also switch back to the raw request and response xml if necessary.
I need some step by step tutorials/documents on developing Java web applications using Eclipse/apache.
appreciate directions/help.
I recommend you read a book instead:
This is probably the simplest way to get started. It really helped me with getting a grasp on how the directory structure and web.xml go together and make a web app. Eclipse is only a partner in your development, you really need to understand the underlying infrastructure no matter what framework you are using, and this book gives you a solid start.
There are some video tutorials available at http://eclipsetutorial.sourceforge.net/
The first tutorial begins with the absolute basics of setting up a workspace and getting started. It also shows the Welcome screen available under the help menu which has links to an overview, samples, and tutorials
As you've already installed Apache Tomcat. I assume you've not installed Java EE tools for Eclipse. If not, then First download Eclipse Java EE tools from Help > Software Updates > Available Software > Java EE developer Tools.
First way : is using Tomcat plugin with eclipse,for that you've to check this tutorial
Second way: If the Tomcat Plugin is not working with you then other alternative as follow Click on Click Window in menu> Preferences then click Server pane. Open Runtime Requirement pane. Add path for the tomcat directory. Click Ok. You're done with the settings.
Now you can create new projects from File >New >Projects. And start building servlets/jsp projects. Try learning from good books like "Head first: Servlets & JSP".
Hope this helps.
When you first start Eclipse there is a screen with tutorials right in the program. They are also accessible from the Help menu
Reminds me of that old joke:
Some people, when confronted with a problem, think "I know, I'll use regular expressions." Now they have two problems.
Sounds like you have several things that you don't know: Eclipse, Tomcat, Java EE development, maybe JSPs, JSTL, WAR files, the list goes on.
My advice would be to strip things down to the bare bones and decompose the problem a bit.
Start by doing a simple servlet/JSP app talking to a database, without using Eclipse. See if you can compile on the command line, create the WAR file, package it properly, and deploy it on Tomcat.
If you can manage that, then work Eclipse into the mix. Don't worry about running Tomcat inside Eclipse at first. You can go back and forth until the IDE is comfortable.
But you're asking a lot when you say you'd like step by step instructions. You're tackling a very big problem.
DZone REFCARZ might be helpful, there's one for eclipse:
Getting Started with Eclipse