-
1. Re: Guide me in creating sample Portlet program on Jboss Por
theute Mar 14, 2007 6:50 AM (in response to agarwar7)Do you have the portlet deployed as a portlet definition ? I mean does it appear in the list of portlets in the portlet management ?
-
2. Re: Guide me in creating sample Portlet program on Jboss Por
agarwar7 Mar 14, 2007 7:05 AM (in response to agarwar7)Hi
I followed these steps
1) i created a sample application as Dynamic web Project on Eclipse IDE
then I deployed on Jboss Portlet server 2.4.1
as when i am trying to run Jboss from Eclipse it's giving me Error"Can not start server after 50 ms"
So I am externally starting the server
and Exporting my application as WAR file and putting that in
Jboss->server->default->deploy
and when i am trying URL "http://localhost:8080/portal
It's showing me my application on right bottom but giving me msg as "Object not found of hello(which is my application name )"
My application structure is
i have one source package in which i have my HelloWorld class
and
in web-inf i have portlet.xml and web.xml
As i don't know so much about the flow so i am not able to understand the whole thing
Ruchi -
3. Re: Guide me in creating sample Portlet program on Jboss Por
agarwar7 Mar 14, 2007 7:10 AM (in response to agarwar7)"thomas.heute@jboss.com" wrote:
Do you have the portlet deployed as a portlet definition ? I mean does it appear in the list of portlets in the portlet management ?
Hi
I followed these steps
1) i created a sample application as Dynamic web Project on Eclipse IDE
then I deployed on Jboss Portlet server 2.4.1
as when i am trying to run Jboss from Eclipse it's giving me Error"Can not start server after 50 ms"
So I am externally starting the server
and Exporting my application as WAR file and putting that in
Jboss->server->default->deploy
and when i am trying URL "http://localhost:8080/portal
It's showing me my application on right bottom but giving me msg as "Object not found of hello(which is my application name )"
My application structure is
i have one source package in which i have my HelloWorld class
and
in web-inf i have portlet.xml and web.xml
As i don't know so much about the flow so i am not able to understand the whole thing
Ruchi -
4. Re: Guide me in creating sample Portlet program on Jboss Por
theute Mar 14, 2007 7:37 AM (in response to agarwar7)So you have an empty window on the portal page, with an error message ?
How did you create the window ? -
5. Re: Guide me in creating sample Portlet program on Jboss Por
agarwar7 Mar 14, 2007 7:49 AM (in response to agarwar7)"thomas.heute@jboss.com" wrote:
So you have an empty window on the portal page, with an error message ?
How did you create the window ?
This is the code of my HelloWorld.java
package source;
import javax.portlet.*;
import java.io.*;
public class HelloWorld extends GenericPortlet{
protected void doView(RenderRequest request,
RenderResponse response) throws
PortletException, IOException {
response.setContentType("text/html");
response.getWriter().println("Hello Portlet");
}
}
and rest is my Portlet.xml has following code
HelloWorldDescription
<portlet-name>hello
</portlet-name>
<display-name>hello
</display-name>
<portlet-class>classes.source.HelloWorld
</portlet-class>
<!--<expiration-cache></expiration-cache>-->
<mime-type>text/html</mime-type>
<portlet-mode>VIEW
</portlet-mode>
<supported-locale>en
</supported-locale>
<portlet-info>
Hello World
<short-title>Hello World
</short-title>
Hello,pluto
</portlet-info>
This is the only thing i have
tell me one thing to deploy a project in Jboss through Eclipse should i download Jboss IDE Plugin if yes
then which version i should download -
6. Re: Guide me in creating sample Portlet program on Jboss Por
theute Mar 14, 2007 7:57 AM (in response to agarwar7)You got your portlet-class wrong
<portlet-class>source.HelloWorld</portlet-class>
-
7. Re: Guide me in creating sample Portlet program on Jboss Por
agarwar7 Mar 14, 2007 8:11 AM (in response to agarwar7)"thomas.heute@jboss.com" wrote:
You got your portlet-class wrong<portlet-class>source.HelloWorld</portlet-class>
I tried but this coming the same
On the top of that whenever i am deleting some war file from deploy folder it is still showing on Portal page
Can you pls tell me where it stores the details of portlets because it seems once it deploy some portlet it stored this somwhere -
8. Re: Guide me in creating sample Portlet program on Jboss Por
theute Mar 14, 2007 8:26 AM (in response to agarwar7)To start from scratch, delete the directory server/default/data from JBoss AS
-
9. Re: Guide me in creating sample Portlet program on Jboss Por
agarwar7 Mar 14, 2007 11:49 PM (in response to agarwar7)"thomas.heute@jboss.com" wrote:
To start from scratch, delete the directory server/default/data from JBoss AS
Hi
I tried this now it's updated my Portal and not showing those portlet ,which i deleted but problem is this is showing the same Problem with the message as Can not remder and Object not found hello(my application name )
please solve this