(pardon for my English, I'm Spanish)

Yes, I use Eclipse Ide to develop my portlets.

These are my steps:

1 - I create a new project. (I will base on the portlet HellowPortlet example 
http://labs.jboss.com/portal/index.html?ctrl:id=page.default.downloads&project=portletswap&category=.portlets.samples
   )

2 - I create this directory structure in Eclipse:
  - src
   ------ org
   --------- jboss
   ----------- portlet
    --------------- hello
    -------------------- HelloWorldPortlet.java
   - META-INF
    ----application.xml
    ----MANIFEST.MF

   - WEB-INF
   ---- classes
   ---- jsp
   --------view.jsp

   ---- lib
    ------- explode.jar
    ------- portal-commons-lib.jar
    ------- portlet-api-lib.jar

    ---- helloworld-object.xml
    ---- jboss-app.xml
    ---- jboss-web.xml
    ---- portlet.xml
    ---- web.xml

3- Next, mount all libraries (lib directory)

4- Next, press "build path -> use as source folder" 
   in the "src" folder .

5- Next, in the properties of the proyect, enable the "pakaging configurations"

6- Add this structure to pakaging configuration:

helloworldportlet-lib.jar
       _file:  /HelloPortlet/bin/org/jboss/portlet/hello/HelloWorldPortlet.class
       _prefix:  org/jboss/portlet/hello


helloworldportlet.war
    _folder:  /HelloPortlet/src/WEB-INF/classes
    _prefix:  WEB-INF/classes

    _folder:  /HelloPortlet/src/WEB-INF/jsp
    _prefix:  WEB-INF/jsp

    _folder:  /HelloPortlet/src/WEB-INF
    _includes:  *.xml
    _prefix:  WEB-INF

     _file:  /HelloPortlet/src/META-INF/MANIFEST.MF
     _prefix:  META-INF

helloworldportlet.ear

      _file:  /HelloPortlet/helloworldportlet-lib.jar
      _prefix: 

      _file:  /HelloPortlet/helloworldportlet.war
      _prefix: 

      _file:  /HelloPortlet/src/META-INF/application.xml
      _prefix:  META-INF

7- Start Jboss server with Eclipse Ide  (debug mode)

8- Select the root directoy of the proyect and press run pakaging

9- Select helloworldportlet.ear and press deployment->depoly to and select the 
jboss server session started.

10- we finish, very easy   http://localhost:8080/portal


If there is some problem tell it to me.

Bye

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3932742#3932742

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3932742


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to