5 Replies Latest reply on Jul 1, 2009 12:47 PM by peterj

    Tutorial that WORKS? and jboss source code?

      Hi Folks,

      till now after days of trying and trying i was able to build a simple portlet and a simple jsp portlet under eclipse. I used for that the exampes of jboss portal bundle 2.7.2. Both of this "simple" portlets were not so simple. For me there is no functioning tutorial of jboss under eclipse. I had to read the jboss documentation and import the examples in eclipse and then i tried to make the changes in the examples manually from the thinngs i understood in the reference guide.
      I am searching now for a jsf step by step Tutorial under eclipse. If anyone could help me in that i would appreciate it. I am also searching for the source code package of jboss bundle 2.7.2 so i can import it in eclipse and have in that way every time i move with the mouse over a class the comments about it. Does anyone know where i can find it.

      p.s: i have downloaded the source packages from here http://sourceforge.net/project/showfiles.php?group_id=22866&package_id=16942&release_id=684683 but i can't find there for example the class GenericPortlet and i am thinking that it is not the right package.

      Thanks for the help

        • 1. Re: Tutorial that WORKS? and jboss source code?
          peterj

          Do you have JBoss Tools installed? Have you seen this: http://docs.jboss.org/tools/3.0.1.GA/en/jboss_portal_tools_ref_guide/html/starting_project.html
          The next chapter has a JSF example.

          For source, the link you gave is for AS, not Portal. For Portal source, start at the Portal home page http://www.jboss.org/jbossportal/, click Downloads, then click on the source download.

          • 2. Re: Tutorial that WORKS? and jboss source code?

            first of all thanx a lot for trying to help:)

            to the tutorial you gave to me, yes i've been working with that but either is the tutorial wrong or the jboss tools have a lot of bugs. I've installed it and things happens not as the tutorial says.
            first of all no java class is beeing generated. I had to write the TestPortlet.java manually and after i do run on server the browser on eclipse shows the link http://localhost/testPortal not what the tutorial shows. these are just small thinks but even after adding the class manually there are a lot of problems showing in the console after "run on server"-command and i am sure that i have a right installation of JBoss Bundle cause i have managed to repair all the problems and deploy all example portlets till jsf Examples. But i had to search every time in forums and google about it. And after days of searching i found no good documentation and no good tutorial. And the same problems has also another person that is working with me at this time.

            about the source Link: did you tried it and did it work in eclipse or you just gave me something that you have heard about. Where is for example the GenericPortlet.java in the source that you gave me?

            let's make the question different: Does anyone know where the source for portlet-api.jar is. As mentioned above i want to import the source in eclipse and have in that way every time i move with the mouse over a class the comments about it.

            • 3. Re: Tutorial that WORKS? and jboss source code?
              peterj

               

              did you tried it and did it work in eclipse or you just gave me something that you have heard about


              My, we are cynical today, aren't we.

              I did go through the tutorial, but it has been a while, and I do not recall any significant issues with it (there are always minor differences because as the code progresses sometimes the docs don't keep up all that well). I have to admit that I have not tried that exact tutorial with that exact version of Eclipse and JBoss Tools - like I said it was a while ago so it was an earlier version of Eclipse and of Tools and of the tutorial. Needless to say, I refuse to run through the tutorial again just to verify that it still works correctly. If I would have know that you expected that of me before I posted my reply, then I would not have replied.

              Also, your question was open ended. You never even stated that you were already using JBoss Tools. If you would have instead state the exact version of JBoss Tools that you installed, and given the URL for the tutorial you read and pointed out specific inconsistencies, then they could have been specifically dealt with.

              Finally, I don't think you need the source for portlet-api.jar; I think what you need is the javadoc. Well, I guess the source would work if you want to set it up as another Eclipse project, but why do that when attaching the javadoc to the jar file accomplishes the same task? With the javadoc you will get the class and method comments you are looking for.

              I did find the javadoc - it took some searching. Go the the JSR-286 download page and request the specification - you will get a ZIP file. Within the ZIP file there is a doc.zip file - unpack that, it has the javadoc.

              • 4. Re: Tutorial that WORKS? and jboss source code?

                Hi Peter,

                sorry if it sound cynycal and i did not want to offend anybody but i was a little in stress because all of that things and all that time spended in vain. Well i have tried a lot of tutorials even the one that you gave me and i was just expecting an answer from someone that had worked with a tutorial and found it useful. Don't get me wrong the tutorials were useful but just for some first little things but the most important they were not right.
                and thanks for the zip file yes what i was looking for was in there and very good hidden:)

                I have jboss tools 3.1M1 and the last bundled version of jboss portal.

                Thanks for the help.

                • 5. Re: Tutorial that WORKS? and jboss source code?
                  peterj

                  I understand your frustration with using the various tools, plugins and wizards in Eclipse. Even though I have gone through a lot of tutorials with many of the tools in JBoss Tools, when it comes time to do actual work I ignore all of those tools and wizards and use Eclipse as a glorified text editor, and use Maven and/or Ant for build and deploy. I hate nothing more than trying to convince some wizard to do things the way I want them done, or trying to figure out why it is not doing what it is supposed to. Thus, I do everything by hand (well, I do have some templates that help here and there). I find that this saves my sanity and increases my productivity.