-
1. Re: install jbossportal source code ...
lttnd Aug 16, 2005 6:23 AM (in response to 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 Aug 22, 2005 11:36 AM (in response to lttnd)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 Aug 23, 2005 7:27 AM (in response to 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 Aug 23, 2005 9:14 AM (in response to lttnd)That is a symbolic link not a simple link.
-
5. Re: install jbossportal source code ...
martin0721 Aug 24, 2005 3:24 AM (in response to lttnd)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 Aug 24, 2005 10:58 PM (in response to 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 Aug 25, 2005 10:24 PM (in response to lttnd)i had resolved the problem according to lttnd's instruction. thanks a lot.
Regards