1 2 Previous Next 17 Replies Latest reply on Apr 20, 2006 8:51 AM by suniil

    Latest source from CVS

    scottdawson

      Last night I downloaded the latest portal source from CVS - jboss-portal-2.2. Now when I navigate to the test portlet, it shows the version as JBoss Portal 2.0.1-RC3. Is that OK or does it indicate that I did not get the latest 2.2 source?

      Also, the thirdparty/jakarta-slide directory was missing. Is that a known problem or a problem in my environment?

      Thanks,
      Scott Dawson

        • 1. Re: Latest source from CVS

          TestPortlet for me shows: version : JBoss Portal 2.2.0-ALPHA

          Slide is no longer going to be used. We have moved to use apache jackrabbit, aligning ourselves with JCR.

          • 2. Re: Latest source from CVS
            scottdawson

            Thanks Roy. I have 2.2 built and running now. I was using the CVS and Eclipse instructions that I found here: http://www.jboss.org/index.html?module=bb&op=viewtopic&t=67347 and my mistake was that where the instructions say "Unfold the Branches", to get the latest source it is necessary to unfold the Head node instead.

            I got an error while building:
            taskdef A class needed by class org.apache.cactus.integration.ant.CactusTask cannot be found: junit/framework/Test
            My workaround for that was to comment out a couple of Cactus sections in tools.ent. I know that's not optimal but it allowed me to build and get the portal running. The error is puzzling because junit.jar (with junit.framework.Test inside) is in the thirdparty\junit-junit\lib directory. Maybe someone can post a proper solution to that.

            Scott

            • 3. Re: Latest source from CVS
              darranl

              How are you running the build?

              • 4. Re: Latest source from CVS
                scottdawson

                I use the ant deploy target which copies jboss-portal.sar to my app server deploy directory. The app server is JBoss 4.0.3SP1 and the database is MySQL 4.1.

                Scott

                • 5. Re: Latest source from CVS
                  scottdawson

                  If you meant how do I build in the first place... I just run ant from the build directory. I'm developing on Windows XP and the build.bat doesn't work, so I run ant using the default target (main), and then ant deploy.


                  Scott

                  • 6. Re: Latest source from CVS
                    robert.f

                    Scott,

                    Just for the record, here is how I built the JBoss Portal 2.2 on Windows 2000, with Ant (not with Eclipse) :
                    1) The hard part was to figure out what to download and from where.
                    The documentation (JBossPortalUserGuide.pdf, section 2.1 "Getting the JBoss Portal files") states :

                    <<CVS Version HEAD (The most up to date sources at your own risks):

                    cvs -d :pserver:anonymous@anoncvs.forge.jboss.com co jboss-portal-2.0

                    >>
                    For 2.2, I found the relevant information in a Novell presentation by M.Holzner (http://www.novell.com/brainshare/europe/05_presentations/tut248.pdf) :
                    cvs -d :pserver:anonymous@anoncvs.forge.jboss.com:/cvsroot/jboss co jboss-portal-2.2

                    For those behind a CVS-blocking firewall (like me at work), note that the FishEye Web interface (http://anoncvs.forge.jboss.com/viewrep/JBoss) does not show this module as top-level. Rather, the "/CVSROOT/modules" file must be consulted to determine how "jboss-portal-2.2" is made up and which parts you must get.
                    I tried to use CVSgrab (http://cvsgrab.sourceforge.net) as described in http://www.jboss.org/wiki/Wiki.jsp?page=CVSRepository and apparently this tool cannot determine automatically what goes in "jboss-portal-2.2".
                    BTW, I also found out that CVSgrab.bat aborted with a cryptic (and unhelpful) error unless I removed the double quotes around %HOME_ARG% on Java.exe command line.

                    2) Once you get the sources (in "jboss-portal-2.2" if you have followed Martin's presentation), go to the "build" folder. On Windows :
                    c:\>cd jboss-portal-2.2\build

                    3) Start the command line ANT build by running :
                    c:\jboss-portal-2.2\build>build.bat

                    Note that ANT is part of the downloaded files. There are no extra tools needed at this point.

                    4) Upon build completion, my 930 MHz Pentium III machine displayed a reassuring :
                    BUILD SUCCESSFUL
                    Total time: 3 minutes 42 seconds
                    Press any key to continue . . .

                    5) The result of the build is \jboss-portal-2.2\core\output\lib\jboss-portal.sar (approx 8.5 MBytes)

                    Now, I had some issues deploying this files (got many exceptions). I think a dedicated thread will be more appropriate for discussing the latter, though.

                    Hope this helps

                    François


                    • 7. Re: Latest source from CVS
                      robert.f

                      Eventually found why I got exceptions (forgot to copy MySQL connector to /server/lib...). Now the deploy goes smoothly and I get the home page without trouble.

                      Here is the configuration I use :


                      - JBoss 4.0.3SP1 (from the JBoss.com binaries, not rebuilt from the sources)
                      - JBoss Portal 2.2 Alpha (rebuilt as described in the present thread)
                      - MySQL connector 3.0.17 (for now)
                      - Suse Linux 9.3 Entreprise Edition which comes with :

                      - JVM 1.4.2_04-b05 (JRockit BEA)
                      - MySQL 4.0.18-Max



                      François


                      • 8. Re: Latest source from CVS
                        sitongia

                         

                        "ScottDawson" wrote:

                        I got an error while building:
                        taskdef A class needed by class org.apache.cactus.integration.ant.CactusTask cannot be found: junit/framework/Test

                        Scott


                        I'm trying to build 2.4 in CVS and have the same trouble. What was the resolution of this, other than commenting stuff out in tools? Why isn't it picking up where junit.jar is? Is it a matter of path style (Unix versus Windows)?

                        Thanks.

                        • 9. Re: Latest source from CVS

                          I am getting the same problem from a 2.4 Portal checked out today. I am compiling on Windows XP, java 1.5.

                          When executing the build, thirdparty\junit-junit\lib\junit.jar is not being picked up for thirdparty\jakarta-cactus\lib\cactus-ant.jar.

                          I got around this problem by adding junit.jar to my CLASSPATH environment variable.

                          Danny

                          • 10. Re: Latest source from CVS
                            sitongia

                            Danny, which project did you add it to?

                            Like Scott, I was trying to build using Eclipse (JBoss IDE). The build from a shell (bash/cygwin) worked fine. Build from Eclipse gave this problem.

                            I was able to build and deploy from Netbeans. :-)

                            ==Leonard

                            • 11. Re: Latest source from CVS
                              sitongia

                              Danny, which project did you add the jar to?

                              I could build fine at the shell (cygwin).

                              I was able to use Netbeans to build and deploy.

                              ==Leonard

                              • 12. Re: Latest source from CVS

                                I didn't add it to a project, I just added junit.jar to my CLASSPATH Windows environment variable. Junit.jar may be on the CLASSPATH for your NetBeans IDE but not on the CLASSPATH for your Eclipse IDE.

                                Someone on the dev team should debug this on a Windows XP platform by performing a command line build of the Portal.

                                Danny

                                • 13. Re: Latest source from CVS
                                  scottdawson

                                  Danny,
                                  I've had build problems similar to yours when I: 1) had spaces in the directory path where the code was located and 2) didn't get rid of the previous portal Eclipse project and code when I did a checkout. Do either of these apply to your situation?
                                  I use CVS in Eclipse to checkout portal code and I use build.bat from the command line to build.

                                  Regards,
                                  Scott

                                  • 14. Re: Latest source from CVS

                                    I don't have spaces in the source code directory path, C:\Projects\Workspace\portal24\. The code was freshly pulled from CVS. Try pulling the code as anonymous from CVS using the labels defined on the JBoss wiki. Make sure you don't have a CLASSPATH environment variable set and then do 'ant deploy' from the portal build directory. The build.bat got errors so I didn't bother with that.

                                    Danny

                                    1 2 Previous Next