7 Replies Latest reply on Aug 25, 2005 10:24 PM by martin0721

    install jbossportal source code ...

    lttnd

      Good morning ,
      I have installed sucessfully jboss portal from source code on WinXP .
      But on Linux I install jboss portal from source code , I always meet the errors like "BUILD FAILED
      java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory " or "BUILD FAILED
      file:/root/jboss-portal-2.0/build/../tools/etc/buildfragments/tools.ent:153: taskdef class org.apache.cactus.integration.ant.CactusTask cannot be found "
      ; althought , I had downloaded code from cvs .

      Would you like to help me to resolve this problem ?

      On Linux I use Fedora core 2.6.5 as OS , j2sdk1.4.2 , mysql database , JBOSS_HOME =/usr/local/jboss_4.02 ; I create both classpath and CLASSPATH variables ; and i run java application on computer normally on tomcat

      Thank in advanced ,

      Regards

        • 1. Re: install jbossportal source code ...
          lttnd

          Hi ,
          There are no members repply this topic ; but I have resolved this problem ; It is because of I created a simple link for java home and build successfully from source code .

          Regards

          • 2. Re: install jbossportal source code ...
            martin0721

            I had the same problem . Would you like help me by give me your solution in detail? What's meaning of "a simple link for java"
            thanks a lot in advance!

            • 3. Re: install jbossportal source code ...
              lttnd

               

              "martin0721" wrote:
              I had the same problem . Would you like help me by give me your solution in detail? What's meaning of "a simple link for java"
              thanks a lot in advance!


              Simple link means ; for example ; you go to /usr/java directory that is where contains jdks ; you have a jdk has installed ; in my linux computer ; I have /usr/java/j2sdk1.4.2_03 ; you type :
              ln -s j2sdk1.4.2_03 java ; so java folder is created and it is simple link(simlink) of j2sdk1.4.2_03 .
              Now you set JAVA_HOME=/usr/java/java in your linux environment .

              Regards


              • 4. Re: install jbossportal source code ...
                darranl

                That is a symbolic link not a simple link.

                • 5. Re: install jbossportal source code ...
                  martin0721

                  Thanks lttnd a lot .

                  I had not resolve my problem yet.
                  I have sucessfully installed jboss portal from binary, and have set JAVA_HOME, JBOSS_HOME, ANT_HOME rightly. My linux is Redhat 9.0, and j2ee 1.4, ant 1.6.5.
                  However, I still meet the problem when I compile using ant in the build directory of jboss-portal-2.0-src :

                  BUILD FAILED
                  /home/linux/portal/jboss-portal-2.0-src/tools/etc/buildfragments/tools.ent:153: taskdef A class needed by class org.apache.cactus.integration.ant.CactusTask cannot be found: junit/framework/Test

                  I set junit.jar in CLASS_PATH. but the problem is the same as before.
                  I tried to compile using "sh build.sh", but it cann't pass either.

                  Regards

                  • 6. Re: install jbossportal source code ...
                    lttnd

                    Hi ,
                    - in my linux computer ; i has set some env variables like :
                    export JAVA_HOME=/usr/java/java
                    export ANT_HOME=/usr/local/portals/JBPortal/Ant
                    export CATALINA_HOME=/usr/local/portals/JBPortal/Tomcat
                    export TOMCAT_HOME=/usr/local/portals/JBPortal/Tomcat
                    export CATALINA_BASE=$CATALINA_HOME
                    export PATH=.:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:$ANT_HOME/bin:$TOMCAT_HOME/bin:$JAVA_HOME/bin
                    export CLASSPATH=.:$CATALINA_HOME/common/lib/commons-logging-api.jar:$CATALINA_HOME/bin/bootstrap.jar:$JAVA_HOME/lib/htmlconverter.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$CATALINA_HOME/common/lib/servlet-api.jar:$CATALINA_HOME/common/lib/mysql-connector-java-3.0.16-ga-bin.jar

                    you should exit the terminal and open other terminal then type env to know above information is set or not .

                    -In /etc/ant.conf you may change ANT_HOME=/usr/local/Ant_1-5-3 or ANT_HOME=/usr/local/portals/JBPortal/Ant

                    You logout and login with other user to compile source code again . It may build successfully .
                    (Note : you should use CLASSPATH ; not CLASS_PATH because it is final parameter of java)

                    Regards

                    • 7. Re: install jbossportal source code ...
                      martin0721

                      i had resolved the problem according to lttnd's instruction. thanks a lot.

                      Regards