Could you send the output of the following commands:

java -version
which java
env | grep JAVA_HOME


It looks like you might be using the wrong version of jdk.  If you didn't
take steps to setup a usable jvm then maven is probably trying to use the
gnu jvm which will not work.  Try downloading the sun jdk 1.5+ and setting
JAVA_HOME to point to it.  Maven uses JAVA_HOME to find the java compiler
and virtual machine.

Brice


On 9/6/07, Mansour <[EMAIL PROTECTED]> wrote:
>
>
> Thank you for the fast response. It helped but I am getting different
> error now:
>
>
> hot-deploy-jar:
> [INFO] Executed tasks
> [INFO]
>
> ----------------------------------------------------------------------------
> [INFO] Building Jetspeed-2 RDBMS Components
> [INFO]    task-segment: [install]
> [INFO]
>
> ----------------------------------------------------------------------------
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:compile]
> [INFO] Compiling 13 source files to
> /home/mansour/src/jetspeed-2.1.2/src/components/rdbms/target/classes
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Compilation failure
> /home/mansour/src/jetspeed-2.1.2
> /src/components/rdbms/src/java/org/apache/jetspeed/components/rdbms/ojb/ConnectionRepositoryEntry.java:[408,12]
>
> org.apache.jetspeed.components.rdbms.ojb.ConnectionRepositoryEntry.MinimalDataSource
> is not abstract and does not override abstract method
> isWrapperFor(java.lang.Class) in java.sql.Wrapper
>
>
>
> /home/mansour/src/jetspeed-2.1.2
> /src/components/rdbms/src/java/org/apache/jetspeed/components/rdbms/ojb/ConnectionRepositoryEntry.java:[408,12]
>
> org.apache.jetspeed.components.rdbms.ojb.ConnectionRepositoryEntry.MinimalDataSource
> is not abstract and does not override abstract method
> isWrapperFor(java.lang.Class) in java.sql.Wrapper
>
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.BuildFailureException: Compilation failure
> /home/mansour/src/jetspeed-2.1.2
> /src/components/rdbms/src/java/org/apache/jetspeed/components/rdbms/ojb/ConnectionRepositoryEntry.java:[408,12]
>
> org.apache.jetspeed.components.rdbms.ojb.ConnectionRepositoryEntry.MinimalDataSource
> is not abstract and does not override abstract method
> isWrapperFor(java.lang.Class) in java.sql.Wrapper
>
>
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
> DefaultLifecycleExecutor.java:560)
>         at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
> (DefaultLifecycleExecutor.java:480)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
> DefaultLifecycleExecutor.java:459)
>         at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
> (DefaultLifecycleExecutor.java:311)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
> DefaultLifecycleExecutor.java:278)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
> DefaultLifecycleExecutor.java:143)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
> :39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at
> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>         at
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.CompilationFailureException:
> Compilation failure
> /home/mansour/src/jetspeed-2.1.2
> /src/components/rdbms/src/java/org/apache/jetspeed/components/rdbms/ojb/ConnectionRepositoryEntry.java:[408,12]
>
> org.apache.jetspeed.components.rdbms.ojb.ConnectionRepositoryEntry.MinimalDataSource
> is not abstract and does not override abstract method
> isWrapperFor(java.lang.Class) in java.sql.Wrapper
>
>
>         at
> org.apache.maven.plugin.AbstractCompilerMojo.execute(
> AbstractCompilerMojo.java:516)
>         at
> org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:114)
>         at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(
> DefaultPluginManager.java:443)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
> DefaultLifecycleExecutor.java:539)
>         ... 16 more
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 6 minutes 53 seconds
> [INFO] Finished at: Thu Sep 06 16:27:33 ADT 2007
> [INFO] Final Memory: 44M/81M
>
>
>
>
> Brice Lambi wrote:
> > You need to switch to the directory with the pom.xml file.
> jetspeed-2.1.2
> > /src
> >
> >
> >
> > On 9/6/07, Mansour <[EMAIL PROTECTED]> wrote:
> >
> >> Brice, I tried every single step you said, and I got an error on step
> 5:
> >>
> >>
> >> [INFO] Scanning for projects...
> >> [INFO]
> >>
> >>
> ----------------------------------------------------------------------------
> >> [INFO] Building Maven Default Project
> >> [INFO]    task-segment: [install]
> >> [INFO]
> >>
> >>
> ----------------------------------------------------------------------------
> >> [INFO]
> >>
> ------------------------------------------------------------------------
> >> [ERROR] BUILD ERROR
> >> [INFO]
> >>
> ------------------------------------------------------------------------
> >> [INFO] Cannot execute mojo: resources. It requires a project with an
> >> existing pom.xml, but the build is not using one.
> >> [INFO]
> >>
> ------------------------------------------------------------------------
> >> [INFO] For more information, run Maven with the -e switch
> >> [INFO]
> >>
> ------------------------------------------------------------------------
> >> [INFO] Total time: 1 second
> >> [INFO] Finished at: Thu Sep 06 15:43:21 ADT 2007
> >> [INFO] Final Memory: 5M/12M
> >> [INFO]
> >>
> ------------------------------------------------------------------------
> >> [EMAIL PROTECTED] jetspeed-2.1.2-src]$
> >>
> >> can you give me any hint ?
> >>
> >>
> >>
> >> Brice Lambi wrote:
> >>
> >>> I guess I'm not sure what you mean by "download or use
> >>>
> >> /jsetspeedtraining."
> >>
> >>> I don't know what that is but I don't think you need it.  The maven2
> >>>
> >> build
> >>
> >>> is extremely simple:
> >>>
> >>> 1.) Download jetspeed-src-2.1.2.zip
> >>> 2.) Unzip the file, resulting directory should be jetspeed-2.1.2
> >>> 3.) copy settings.xm.sample from jetspeed-2.1.2
> /src/settings.xml.sample
> >>>
> >> to
> >>
> >>> ~/.m2/settings.xml
> >>> 4.) edit ~/.m2/settings.xml (this involves entering the path to tomcat
> >>>
> >> and
> >>
> >>> database information)
> >>> 5.) mvn install
> >>> 6.) mvn -P tomcat
> >>>
> >>> What you are trying to do with the maven1 builds is generate your own
> >>> portal.  You can also do that with the maven2 builds (much
> >>>
> >> simpler).  But if
> >>
> >>> you just want jetspeed.war to deploy to tomcat follow the steps above.
> >>>
> >>> Brice
> >>>
> >>>
> >>>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >>
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to