Hi,
This is R Pavan Vasista .I am trying to build a sample Hello world portlet application using maven buid tool.
Here is the Helloworld class
public class Helloworld extends GenericPortlet{
protected void doView(RenderRequest rRequest, RenderResponse rResponse) throws PortletException, IOException, UnavailableException
{
rResponse.setContentType("text/html");
PrintWriter writer = rResponse.getWriter();
writer.write("Hello Manju!");
writer.write("how r u!");
writer.close();
}
}
I have put portlet.xml,portlet-instances.xml,helloworld-object.xml and web.xml in WEB-INF folder.I have added all required jar files and then i developed the .war file .
When i deployed the war file in jboss server,it is giving the following error message..
Failed to create instance HelloWorldPortletInstance of portlet /springs-0.0.1.HelloWorldPortlet because portlet /springs-0.0.1.HelloWorldPortlet is not available..
I tried many things but its not working..Kindly if someone can help me I will be very thankfull to them..
Regards
R Pavan