Skip to main content

Missing class def com/werken/forehead/Forehead

2 replies [Last post]
hyau
Offline
Joined: 2005-03-29

Have anyone see this error when checkout from the beta branch using maven?

# maven checkout bootstrap build configure-runtime
Exception in thread "main" java.lang.NoClassDefFoundError: com/werken/forehead/Forehead

I have cvs login and checkout the appserverbootstrap.
I have set $JAVA_HOME already and $JAVA_HOME/bin $ANT_HOME/bin and maven all are set in the $PATH.

Any idea? What am I missing?...

-hyau

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
dochez
Offline
Joined: 2003-06-10

It should be in you $maven/lib directory in the forehead-1.0-xxx jar file.

Either the maven installation was incorrect or you installed the wrong version. you need 1.0.2

HTH

hyau
Offline
Joined: 2005-03-29

Hi,

You are right. Those jars file is in that directory.

However, besides having the command "maven" in the $PATH, I have to set $MAVEN_HOME in order to get maven command to be able to access those jar library files.

Besides $JAVA_HOME, I have to set $MAVEN_HOME, too.

Steps that I do :
-----------------

# set MAVEN_HOME=/usr/local/share/java/maven
# export MAVEN_HOME
# echo $MAVEN_HOME
/usr/local/share/java/maven

# set JAVA_HOME=/usr/local/jdk1.5.0
# export JAVA_HOME
# echo $JAVA_HOME
/usr/local/jdk1.5.0

# set PATH=$JAVA_HOME/bin:$MAVEN_HOME/bin:$PATH
# echo $PATH
/usr/local/jdk1.5.0/bin:/usr/local/share/java/maven/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/root/bin

After setting MAVEN_HOME, then I could use maven to checkout the bootstrap-all, build, configure-runtime.

# maven checkout bootstrap-all build configure-runtime
__ __
| \/ |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \ ~ intelligent projects ~
|_| |_\__,_|\_/\___|_||_| v. 1.0.2

[cvs] cvs server: Updating glassfish/activation/META-INF
[cvs] cvs server: Updating glassfish/activation/nbproject
[cvs] cvs server: Updating glassfish/activation/src
[cvs] cvs server: Updating glassfish/activation/src/java
[cvs] cvs server: Updating glassfish/activation/src/java/com
[cvs] cvs server: Updating glassfish/activation/src/java/com/sun
[cvs] cvs server: Updating glassfish/activation/src/java/com/sun/activation
[cvs] cvs server: Updating glassfish/activation/src/java/com/sun/activation/
registries
[cvs] cvs server: Updating glassfish/activation/src/java/com/sun/activation/
viewers
[cvs] cvs server: Updating glassfish/activation/src/java/javax
[cvs] cvs server: Updating glassfish/activation/src/java/javax/activation
[echo] Checking out from source: mail
[cvs] Using cvs passfile: /root/.cvspass

.................................

Attempting to download imq-4.0-20051217.jar.
WARNING: Failed to download imq-4.0-20051217.jar.
Attempting to download appserv-native-9.0-b25.jar.
WARNING: Failed to download appserv-native-9.0-b25.jar.
Attempting to download nss-util-3_3_11_BETA2.jar.
WARNING: Failed to download nss-util-3_3_11_BETA2.jar.
Attempting to download NSsecurity-JES5_20050929.jar.
WARNING: Failed to download NSsecurity-JES5_20050929.jar.

BUILD FAILED
File...... /export/glassfish_workspace/glassfish/bootstrap/maven.xml
Element... maven:reactor
Line...... 58
Column.... 40
The build cannot continue because of the following unsatisfied dependencies:

imq-4.0-20051217.jar
appserv-native-9.0-b25.jar
nss-util-3_3_11_BETA2.jar
NSsecurity-JES5_20050929.jar

Total time: 7 minutes 58 seconds
Finished at: Wed Feb 01 17:46:44 PST 2006

However, I am facing another issue, four of these jars files are not able to be download. (imq-4.0-20051217.jar, appserv-native-9.0-b25.jar, nss-util-3_3_11_BETA2.jar, and Ssecurity-JES5_20050929.jar)

I guess I have to build it from scatch. Maybe it is another topic.

Anyway, thanks for you help.

Thanks,
Hyau