3 Replies Latest reply on May 20, 2009 11:51 AM by peterj

    JBoss on Eclipse

    ekusnady

      Hello all,

      Since yesterday i was still trying to be able to make a Java Portlet on my Eclipse and show it in JBoss Portal thru Eclipse.

      First, i did update the software into my eclipse from this website : http://download.jboss.org/jbosstools/updates/stable/

      After that,i also download jboss-portal-2.6.8.GA-bundled from http://www.jboss.org/jbossportal/download/index.html

      I also got other 3 files from internet which are portlet-api-1.0, servlet-api, and log4j-1.2.15

      And i added a new user library which contain those last 3 files named J22_BUNDLE

      It went ok when i made a new dynamic Web Project.
      But then the problem was there when i wanted to run my java class.

      On the WEB-INF :
      there were no portlet.xml, portlets-instances.xml, jboss-portlet.xml und so on.
      Only web.xml was there.

      What do u think? What are still missing here?

      I would be happy to get any feedback from you.



      Thanks

        • 1. Re: JBoss on Eclipse
          peterj

          So you question is why are those JAR files missing from WEB-INF/lib? The answer is that they are not needed - they are already part of either JBoss AS of Portal. If you package those files with your portlet your portlet will not work.

          Since you installed JBoss Tools, did you enable the portlet facet on you dynamic web app?

          • 2. Re: JBoss on Eclipse
            ekusnady

            Yes.. I enabled already the portlet facet on dynamic web project.

            I just tried to deploy again my java portlet, but it still didn't work.
            This is what i got from my eclipse :

            http://localhost:8080/HelloWorld/WEB-INF/classes/test/TEST.java

            --------------------------------------------------------------------------------

            type Status report

            message /HelloWorld/WEB-INF/classes/test/TEST.java

            description The requested resource (/HelloWorld/WEB-INF/classes/test/TEST.java) is not available.


            But if i test only like this : http://localhost:8080
            I could see JBoss Portal on my eclipse.

            Hmm .... Any suggestion?

            • 3. Re: JBoss on Eclipse
              peterj

              Once a portlet is created, it has to be registered with the Portal and placed on a portal page. Then you access it through the portal URL. Looks like you are not doing that. The Portal docs should tell you what is needed (besides the portlet.xml file you also need a portlet-instances.xml and *-object.xml file).

              Did you read the Tools portlet tutorial?
              http://docs.jboss.org/tools/3.0.1.GA/en/jboss_portal_tools_ref_guide/html_single/index.html