Hello,
I've installed  jetspeed-2.1.2-demo-installer.jar on my
FreeBSD/postgreSQL environment, and now trying the JetExpress
tutorial.  Though there were quite a few complications, the mailing
list archives have been filling in the missing pieces for me.
However, I just couldn't find the solution to the problem I'm facing
now, and would like to ask for your help.

Following the instructions on
<http://portals.apache.org/tutorials/jetspeed-2/01/build-it.html>,
when I executed "mvn -P tomcat,min", I got
"java.lang.ClassCastException:
org.apache.maven.usability.MojoFailureExceptionDiagnoser:".
Detailed messages are attached at the end of this mail.

I found two similar correspondences in the archive; one solution was
to specify "-DarchetypeVersion=2.1" (instead of 2.1-dev), and the
other was to specify "http://www.bluesunrise.com/maven2"; as the
mirror site in maven setting.xml.
Based on the information, I've regenerated the jetexpress portal
using "-DarchetypeVersion=2.1" option (instead of 2.1-dev), but
neither value made any difference.

The mirrors section in my setting.xml for maven is as follows, and I
haven't been having problems downloading necessary files so far:
<mirrors>
  <mirror>
     <id>central.mirror</id>
     <name>Mirror http://repo1.maven.org/maven2/</name>
     <url>http://www.bluesunrise.com/maven2</url>
     <mirrorOf>central</mirrorOf>
  </mirror>
</mirrors>

The database-related entries in setting.xml are as follows, and all
83 tables were created in the database :
<org.apache.jetspeed.production.jdbc.drivers.path>
/usr/local/share/java/classes/postgresql.jar
</org.apache.jetspeed.production.jdbc.drivers.path>
<org.apache.jetspeed.production.database.default.name>
postgres
</org.apache.jetspeed.production.database.default.name>
<org.apache.jetspeed.production.database.url>
jdbc:postgresql://localhost:5432/jetexpress
</org.apache.jetspeed.production.database.url>
<org.apache.jetspeed.production.database.driver>
org.postgresql.Driver
</org.apache.jetspeed.production.database.driver>
<org.apache.jetspeed.production.database.user>
jetspeed
</org.apache.jetspeed.production.database.user>
<org.apache.jetspeed.production.database.password>
*****
</org.apache.jetspeed.production.database.password>

One thing I did that might have something to do with this is that
because I came across "The plugin 'xxxx' does not exist or no valid
version could be found" messages for the following components, I
downloaded them from http://repo1.maven.org/maven2 instead of
http://www.bluesunrise.com/maven2.

org/apache/maven/plugins/maven-archetype-plugin/
org/apache/maven/plugins/maven-site-plugin/
plexus/
org/codehaus/plexus
org/apache/maven/plugins/maven-install-plugin/
org/apache/maven/maven-parent/
org/apache/maven/plugins/maven-plugins/
org/apache/maven/plugins/maven-antrun-plugin/

I would appreciate any suggestions or insights as to how I can
resolve this problem.

Thank you and best regards,
Sari

====== Beginning of the generated messages ======
populate-seed-data:
     [echo] called seed data with directory
/usr/home/sari/JetspeedTraining/workspace/jetexpress/etc
   [delete] Deleting directory
/usr/home/sari/JetspeedTraining/workspace/jetexpress/etc/target/seed
    [mkdir] Created dir:
/usr/home/sari/JetspeedTraining/workspace/jetexpress/etc/target/seed
    [mkdir] Created dir:
/usr/home/sari/JetspeedTraining/workspace/jetexpress/etc/target/seed/data
     [copy] Copying 1 file to
/usr/home/sari/JetspeedTraining/workspace/jetexpress/etc/target/seed/data
     [copy] Copying
/usr/home/sari/JetspeedTraining/workspace/jetexpress/etc/sql/j2-seed.xml
to
/usr/home/sari/JetspeedTraining/workspace/jetexpress/etc/target/seed/data/j2-seed.xml
     [echo] Running Jetspeed Seed Importer with -b
/usr/home/sari/JetspeedTraining/workspace/jetexpress/etc/serializer/assembly//boot/
-c
/usr/home/sari/JetspeedTraining/workspace/jetexpress/etc/serializer/assembly//
     [echo]  IN SEED establishing dependency to
org.apache.pluto.version=1.0.1
     [echo]     portlet-api.version=1.0
     [echo]     org.apache.jetspeed.deploy.version=2.1
     [echo]
org.apache.jetspeed.deploy.groupid=org.apache.portals.jetspeed-2
Downloading:
org/apache/portals/jetspeed-2/jetspeed-api/2.1/jetspeed-api-2.1.pom
Downloading:
org/apache/portals/jetspeed-2/jetspeed-commons/2.1/jetspeed-commons-2.1.pom
Downloading:
org/apache/portals/jetspeed-2/jetspeed-components/2.1/jetspeed-components-2.1.pom
Downloading:
org/apache/portals/jetspeed-2/jetspeed-cm/2.1/jetspeed-cm-2.1.pom
Downloading:
org/apache/portals/jetspeed-2/jetspeed-rdbms/2.1/jetspeed-rdbms-2.1.pom
Downloading:
org/apache/portals/jetspeed-2/jetspeed-capability/2.1/jetspeed-capability-2.1.pom
Downloading:
org/apache/portals/jetspeed-2/jetspeed-security/2.1/jetspeed-security-2.1.pom
Downloading:
org/apache/portals/jetspeed-2/jetspeed-serializer/2.1/jetspeed-serializer-2.1.pom
Downloading:
org/apache/portals/jetspeed-2/jetspeed-profiler/2.1/jetspeed-profiler-2.1.pom
Downloading:
org/apache/portals/jetspeed-2/jetspeed-registry/2.1/jetspeed-registry-2.1.pom
Downloading:
org/apache/portals/jetspeed-2/jetspeed-portal/2.1/jetspeed-portal-2.1.pom
Downloading:
org/apache/portals/jetspeed-2/jetspeed-commons/2.1/jetspeed-commons-2.1.jar
Downloading:
org/apache/portals/jetspeed-2/jetspeed-portal/2.1/jetspeed-portal-2.1.jar
Downloading:
org/apache/portals/jetspeed-2/jetspeed-profiler/2.1/jetspeed-profiler-2.1.jar
Downloading:
org/apache/portals/jetspeed-2/jetspeed-api/2.1/jetspeed-api-2.1.jar
Downloading:
org/apache/portals/jetspeed-2/jetspeed-components/2.1/jetspeed-components-2.1.jar
Downloading:
org/apache/portals/jetspeed-2/jetspeed-security/2.1/jetspeed-security-2.1.jar
Downloading:
org/apache/portals/jetspeed-2/jetspeed-serializer/2.1/jetspeed-serializer-2.1.jar
Downloading:
org/apache/portals/jetspeed-2/jetspeed-rdbms/2.1/jetspeed-rdbms-2.1.jar
Downloading:
org/apache/portals/jetspeed-2/jetspeed-capability/2.1/jetspeed-capability-2.1.jar
Downloading:
org/apache/portals/jetspeed-2/jetspeed-registry/2.1/jetspeed-registry-2.1.jar
Downloading:
org/apache/portals/jetspeed-2/jetspeed-cm/2.1/jetspeed-cm-2.1.jar
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error executing ant tasks

Embedded error: The following error occurred while executing this line:
/usr/home/sari/JetspeedTraining/workspace/jetexpress/etc/build.xml:299:
The following error occurred while executing this line:
/usr/home/sari/JetspeedTraining/workspace/jetexpress/etc/build.xml:304:
The following error occurred while executing this line:
/usr/home/sari/JetspeedTraining/workspace/jetexpress/etc/build.xml:501:
java.lang.ClassCastException:
org.apache.maven.usability.MojoFailureExceptionDiagnoser
====== End of the generated messages ======






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to