Hi
I followed the steps you described for deploying jetspeed.war but I obtain the
following error running 'mvn -P tomcat':
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error executing ant tasks
Embedded error: The following error occurred while executing this line:
/home/cappelc/jetspeedSCAND/jetspeed-2.1.2/src/etc/build.xml:301: The following
error occurred while executing this line:
/home/cappelc/jetspeedSCAND/jetspeed-2.1.2/src/etc/build.xml:306: The following
error occurred while executing this line:
/home/cappelc/jetspeedSCAND/jetspeed-2.1.2/src/etc/build.xml:500: java.lang.Clas
sCastException: org.apache.maven.usability.MojoFailureExceptionDiagnoser
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error executing ant task
s
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:564)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:480)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:459)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:311)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:278)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.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(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
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.MojoExecutionException: Error executing ant t
asks
at org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractA
ntMojo.java:114)
at org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:83)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:443)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:539)
... 16 more
Caused by: The following error occurred while executing this line:
/home/cappelc/jetspeedSCAND/jetspeed-2.1.2/src/etc/build.xml:301: The following
error occurred while executing this line:
/home/cappelc/jetspeedSCAND/jetspeed-2.1.2/src/etc/build.xml:306: The following
error occurred while executing this line:
/home/cappelc/jetspeedSCAND/jetspeed-2.1.2/src/etc/build.xml:500: java.lang.Clas
sCastException: org.apache.maven.usability.MojoFailureExceptionDiagnoser
at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(Projec
tHelper.java:539)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:384)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractA
ntMojo.java:108)
... 19 more
Caused by: /home/cappelc/jetspeedSCAND/jetspeed-2.1.2/src/etc/build.xml:301: The
following error occurred while executing this line:
/home/cappelc/jetspeedSCAND/jetspeed-2.1.2/src/etc/build.xml:306: The following
error occurred while executing this line:
/home/cappelc/jetspeedSCAND/jetspeed-2.1.2/src/etc/build.xml:500: java.lang.Clas
sCastException: org.apache.maven.usability.MojoFailureExceptionDiagnoser
at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(Projec
tHelper.java:539)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:384)
at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(Single
CheckExecutor.java:37)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
... 23 more
Caused by: /home/cappelc/jetspeedSCAND/jetspeed-2.1.2/src/etc/build.xml:306: The
following error occurred while executing this line:
/home/cappelc/jetspeedSCAND/jetspeed-2.1.2/src/etc/build.xml:500: java.lang.Clas
sCastException: org.apache.maven.usability.MojoFailureExceptionDiagnoser
at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(Projec
tHelper.java:539)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:384)
at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(Single
CheckExecutor.java:37)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
... 32 more
Caused by: /home/cappelc/jetspeedSCAND/jetspeed-2.1.2/src/etc/build.xml:500: jav
a.lang.ClassCastException: org.apache.maven.usability.MojoFailureExceptionDiagno
ser
at org.apache.tools.ant.Task.perform(Task.java:373)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(Single
CheckExecutor.java:37)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
... 41 more
Caused by: java.lang.ClassCastException: org.apache.maven.usability.MojoFailureE
xceptionDiagnoser
at org.apache.maven.usability.diagnostics.ErrorDiagnostics.diagnose(Erro
rDiagnostics.java:75)
at org.apache.maven.artifact.ant.AbstractArtifactTask.diagnoseError(Abst
ractArtifactTask.java:382)
at org.apache.maven.artifact.ant.AbstractArtifactTask.execute(AbstractAr
tifactTask.java:455)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
... 47 more
Any idea about what is going wrong?
Thanks
Francesco
-----Messaggio originale-----
Da: Brice Lambi [mailto:[EMAIL PROTECTED]
Inviato: mercoledì 5 settembre 2007 0.14
A: Jetspeed Users List
Oggetto: Re: [Bulk] Re: Building From source problems, and undesrtanding
portlets
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
On 9/4/07, Mansour <[EMAIL PROTECTED]> wrote:
>
> By the way, all I need to do is to have jetspeed2.war. Exactly like
> jetspeed-1. THen I can copy it to my tomcat and import it inot eclipse,
> customize it easily, and export it again into war.
>
>
>
> Brice Lambi wrote:
> > You really should be using the maven2 builds:
> >
> > http://portals.apache.org/tutorials/jetspeed-2/
> >
> > Brice
> >
> >
> > On 9/3/07, Mansour <[EMAIL PROTECTED]> wrote:
> >
> >> Woonsan:
> >> Thank you. I didn't try it yet, but I will, and I will post the
> results.
> >>
> >>
> >> Woonsan Ko wrote:
> >>
> >>> Hi Mansour,
> >>>
> >>> I think you met a problem with database settings.
> >>> In my case, I use MySQL with the following database settings in
> >>>
> >> build.properties:
> >>
> >>> org.apache.jetspeed.test.database.url = jdbc:mysql://localhost/j2
> >>> org.apache.jetspeed.test.database.driver = com.mysql.jdbc.Driver
> >>> org.apache.jetspeed.test.database.user = j2
> >>> org.apache.jetspeed.test.database.password = XX
> >>>
> >>> org.apache.jetspeed.test.jdbc.drivers.path =
> >>> /home/woonsan/mysql-connector-java-5.0.5/mysql-
> >>>
> >> connector-java-5.0.5-bin.jar
> >>
> >>> org.apache.jetspeed.test.database.default.name = mysql
> >>>
> >>> org.apache.jetspeed.production.database.url =
> jdbc:mysql://localhost/j2
> >>> org.apache.jetspeed.production.database.driver = com.mysql.jdbc.Driver
> >>> org.apache.jetspeed.production.database.user = j2
> >>> org.apache.jetspeed.production.database.password = XX
> >>>
> >>> org.apache.jetspeed.production.jdbc.drivers.path =
> >>> /home/woonsan/mysql-connector-java-5.0.5/mysql-
> >>>
> >> connector-java-5.0.5-bin.jar
> >>
> >>> org.apache.jetspeed.production.database.default.name = mysql
> >>>
> >>>
> >>> Also, MySQL should be accessible at the build time! If you use the
> >>>
> >> default settings (e.g. HSQL
> >>
> >>> DB), then you should start an instance of HSQL DB first.
> >>>
> >>>
> >>>
> >>>> Therefore, jetexpress directory is the portal
> >>>> application of jetspeed and any other directory I copy or deploy is a
> >>>> portlet application (ie. j2-admin), am I right here?
> >>>>
> >>>>
> >>> Yes, you're right.
> >>>
> >>>
> >>> -Woonsan
> >>>
> >>> --- Mansour <[EMAIL PROTECTED]> wrote:
> >>>
> >>>
> >>>
> >> ---------------------------------------------------------------------
> >> 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]
>
>
Internet Email Confidentiality Footer
-----------------------------------------------------------------------------------------------------
La presente comunicazione, con le informazioni in essa contenute e ogni
documento o file allegato, e' rivolta unicamente alla/e persona/e cui e'
indirizzata ed alle altre da questa autorizzata/e a riceverla. Se non siete i
destinatari/autorizzati siete avvisati che qualsiasi azione, copia,
comunicazione, divulgazione o simili basate sul contenuto di tali informazioni
e' vietata e potrebbe essere contro la legge (art. 616 C.P., D.Lgs n. 196/2003
Codice in materia di protezione dei dati personali). Se avete ricevuto questa
comunicazione per errore, vi preghiamo di darne immediata notizia al mittente e
di distruggere il messaggio originale e ogni file allegato senza farne copia
alcuna o riprodurne in alcun modo il contenuto.
This e-mail and its attachments are intended for the addressee(s) only and are
confidential and/or may contain legally privileged information. If you have
received this message by mistake or are not one of the addressees above, you
may take no action based on it, and you may not copy or show it to anyone;
please reply to this e-mail and point out the error which has occurred.
-----------------------------------------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]