I struggled with the same issue. The problem was that my settngs.xml file
did not have the <activeProfile>:

<activeProfiles>
        <!--  Apache DB Derby Embedded is the default Jetspeed database 
        --> 
        <activeProfile>jetspeed-derby-embedded</activeProfile> 
        <activeProfile>jetspeed-db-embedded-derby</activeProfile> 
        <!--  Apache DB Derby Network database 
        --> 
        
        <!--  Drivers path configured database profile 
        --> 
        <activeProfile>jetspeed-db-drivers-path</activeProfile> 
    </activeProfiles> 

I attach mu whole settings.xml that finally worked for me, maybe it helps
you to find solution. 

Regards,
Evi 

-----Original Message-----
From: Yang, Qiao [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 10, 2007 4:18 PM
To: Jetspeed Users List
Subject: RE: Tutorial and build issue

No, I don't have this configuration in my settings.xml. Similar one is in
the maven pom.xml though. You suspect something from the bluesunrise might
cause the issue?

At beginning I was building the project with archetypeVersion=2.1 as
suggested by David when tackling another issue and got the reported
exception. Later on, I changed back to 2.1-dev and rebuilt the application. 

mvn archetype:create -DarchetypeGroupId=org.apache.portals.jetspeed-2 
                     -DarchetypeArtifactId=application-archetype 
                     -DarchetypeVersion=2.1-dev 
                     -DgroupId=org.apache.portals.tutorials
                     -DartifactId=express-demo
                     -Dversion=1.0

That seems fix the exception and everything went well. I finally got a
successful build. However, after I started the jetexpress and trying
http://localhost:8080/jetexpress/portal. I got the following exception and
failed to get any page back. 

org.apache.jetspeed.capabilities.UnableToBuildCapabilityMapException: We
were unable to build a capability map for the agent, Mozilla/4.0.  This
might be an indiciation that the capability database has not been correctly
initialized.
        
org.apache.jetspeed.capabilities.impl.JetspeedCapabilities.getCapability
Map(JetspeedCapabilities.java:264)
        sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
        
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
        java.lang.reflect.Method.invoke(Method.java:585)
        
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(
AopUtils.java:318)

My browser is IE6. The error msg complained about Mozilla/4.0 instead, which
is the default value of userAgent variable in the JetspeedCapabilities
class. It seems like the parameter userAgent was failed to set initially
thus resulted in using the default value. Maybe the 2.1-dev version is also
not reliable to use?

/***
159      * @param userAgent Agent from the request
160      * @throws UnableToBuildCapabilityMapException
161      * @see
org.apache.jetspeed.services.capability.CapabilityService#getCapabilityM
ap(java.lang.String)
162      */
163     public CapabilityMap getCapabilityMap(String userAgent) throws
UnableToBuildCapabilityMapException
164     {        
165         CapabilityMap map = null;
166         boolean bClientFound = false;
167         String defaultAgent = null;

        if (userAgent == null)
170         {
171             userAgent = DEFAULT_AGENT;
172         }


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Philip Mark Donaghy
Sent: Wednesday, May 09, 2007 10:05 PM
To: Jetspeed Users List
Subject: Re: Tutorial and build issue

Hi Qiao,

On 5/9/07, Yang, Qiao <[EMAIL PROTECTED]> wrote:
>
>
>
>
> Hi,
>
>
>
> I'm building the Jetexpress by using maven as instructed in the online 
> Tutorial. I know there're many issues using the maven. But I've
overcomed a
> few and stumbled to "mvn -P tomcat,min". The new issue I'm facing is
some
> error occurs while the seed data is being populating. See the
exception
> below. Has anyone seen it before? Can anyone please give any idea?

I've seen this one before. Do you have this in your settings.xml?

          <repositories>
            <repository>
              <id>bluesunrise</id>
              <name>bluesunrise</name>
              <url>http://www.bluesunrise.com/maven2</url>
            </repository>
          </repositories>

Philip

>
> Thanks in advance.
>
>
>
> populate-seed-data:
>
>      [echo] called seed data with directory 
> D:\JetspeedTraining\workspace\jetexp
>
> ress\etc
>
> ...
>
>      [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
>
> ....
>
>  [INFO]
>
------------------------------------------------------------------------
>
> [ERROR] BUILD ERROR
>
> [INFO]
>
------------------------------------------------------------------------
>
> [INFO] Error executing ant tasks
>
>
>
> Embedded error: The following error occurred while executing this
line:
>
> D:\JetspeedTraining\workspace\jetexpress\etc\build.xml:299:
> The following error
>
> occurred while executing this line:
>
> D:\JetspeedTraining\workspace\jetexpress\etc\build.xml:304:
> The following error
>
> occurred while executing this line:
>
> D:\JetspeedTraining\workspace\jetexpress\etc\build.xml:501:
> java.lang.ClassCastE
>
> xception:
> 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)
>
>
>
>
>
> - Qiao
>
>
>
>
>
***********************************************************************
> Bear Stearns is not responsible for any recommendation, solicitation, 
> offer or agreement or any information about any transaction, customer 
> account or account activity contained in this communication.
>
***********************************************************************
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>


--
Philip Donaghy
donaghy.blogspot.com del.icio.us/donaghy/philip
Skype: philipmarkdonaghy
Office: +33 5 56 60 88 02
Mobile: +33 6 20 83 22 62

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




***********************************************************************
Bear Stearns is not responsible for any recommendation, solicitation, offer
or agreement or any information about any transaction, customer account or
account activity contained in this communication.
***********************************************************************

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<?xml version="1.0" encoding="UTF-8" ?> 
<!-- 
    Copyright 2006 The Apache Software Foundation
    
    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at
    
    http://www.apache.org/licenses/LICENSE-2.0
    
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
    
    $Id:$
    
    
--> 
<!-- 
    The Maven 2 profile is one place to set user or project specific settings.
    
    This settings file is useful for building the Apache Portals Jetspeed from the 
    subversion codebase. It is also useful for choosing a custom database to use 
    with Jetspeed. The default database is Apache DB Derby database.
    
    You will need to provide your own value anywhere you see the text SET*.
    
    This file is placed in ~/.m2 by convention. User defined profiles must be 
    defined or extended with these settings to perform a complete J2 build and 
    deployment. 
    
--> 
 <settings xmlns="http://maven.apache.org/POM/4.0.0";>
     
     <localRepository>c:/JetspeedTraining/maven/repository/</localRepository>

 <!--  Jetspeed-2 Profiles 
    --> 
<profiles>
 <!--  Jetspeed Settings Profile 
        --> 
<profile>
            <id>settings</id> 
            <activation>
                <activeByDefault>true</activeByDefault> 
            </activation>
            <properties>

                <!--  Jetspeed-2 deployment properties 
                --> 
                <org.apache.jetspeed.server.home>c:/JetspeedTraining/tomcat-express</org.apache.jetspeed.server.home>
                <org.apache.jetspeed.catalina.version.major>5.5</org.apache.jetspeed.catalina.version.major>
                <org.apache.jetspeed.services.autodeployment.server>localhost</org.apache.jetspeed.services.autodeployment.server>
                <org.apache.jetspeed.services.autodeployment.port>8080</org.apache.jetspeed.services.autodeployment.port>
                <org.apache.jetspeed.services.autodeployment.user>j2deployer</org.apache.jetspeed.services.autodeployment.user>
                <org.apache.jetspeed.services.autodeployment.password>j2deployer</org.apache.jetspeed.services.autodeployment.password>

        <!-- 
            The appropriate database profile may already be defined here. Verify the following settings before asking
            questions on the mailing lists. Each database platform defines two schema. One for testing and one for
            production. You will need to copy your driver jar(s) to the ${org.apache.jetspeed.server.home}/shared/lib
            directory and define the name, url, driver, username, and password for testing and production. 
            
        --> 
        <!--  Jetspeed Derby Embedded Profile 
        --> 


                <!--  Derby embedded database properties 
                --> 
                <org.apache.jetspeed.test.jdbc.drivers.path>${org.apache.jetspeed.server.home}/shared/lib/derby-10.1.1.0.jar</org.apache.jetspeed.test.jdbc.drivers.path> 
                <org.apache.jetspeed.test.database.default.name>derby</org.apache.jetspeed.test.database.default.name> 
                <org.apache.jetspeed.test.database.url>jdbc:derby:/JetspeedTraining/database/jetexpressT;create=true</org.apache.jetspeed.test.database.url> 
                <org.apache.jetspeed.test.database.driver>org.apache.derby.jdbc.EmbeddedDriver</org.apache.jetspeed.test.database.driver> 
                <org.apache.jetspeed.test.database.user></org.apache.jetspeed.test.database.user> 
                <org.apache.jetspeed.test.database.password></org.apache.jetspeed.test.database.password> 
                <org.apache.jetspeed.production.jdbc.drivers.path>${org.apache.jetspeed.server.home}/shared/lib/derby-10.1.1.0.jar</org.apache.jetspeed.production.jdbc.drivers.path> 
                <org.apache.jetspeed.production.database.default.name>derby</org.apache.jetspeed.production.database.default.name> 
                <org.apache.jetspeed.production.database.url>jdbc:derby:/JetspeedTraining/database/jetexpress;create=true</org.apache.jetspeed.production.database.url> 
                <org.apache.jetspeed.production.database.driver>org.apache.derby.jdbc.EmbeddedDriver</org.apache.jetspeed.production.database.driver> 
                <org.apache.jetspeed.production.database.user></org.apache.jetspeed.production.database.user> 
                <org.apache.jetspeed.production.database.password></org.apache.jetspeed.production.database.password> 
            </properties>
        </profile>

    </profiles>
    <activeProfiles>
        <!--  Apache DB Derby Embedded is the default Jetspeed database 
        --> 
        <activeProfile>jetspeed-derby-embedded</activeProfile> 
        <activeProfile>jetspeed-db-embedded-derby</activeProfile> 
        <!--  Apache DB Derby Network database 
        --> 
        <!-- 
            Uncomment this if you are using the Apache DB Derby Network Server
            database with the ClientDriver.
            <activeProfile>jetspeed-derby-network</activeProfile> 
            
        --> 
        <!--  MSSQL database 
        --> 
        <!-- 
            Uncomment this if you are using the MSSQL database
            <activeProfile>jetspeed-mssql</activeProfile> 
            
        --> 
        <!--  MySQL database 
        --> 
        <!-- 
            Uncomment this if you are using the MySQL database
            <activeProfile>jetspeed-mysql</activeProfile> 
            
        --> 
        <!--  HSQLDB embedded database 
        --> 
        <!-- 
            Uncomment if you are using the hsqldb.org database
            <activeProfile>jetspeed-hsql-embedded</activeProfile>
            <activeProfile>jetspeed-db-embedded-hsql</activeProfile> 
            
        --> 
        <!--  Drivers path configured database profile 
        --> 
        <activeProfile>jetspeed-db-drivers-path</activeProfile> 
    </activeProfiles>
</settings>

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

Reply via email to