Evi, Philip,

Thank both of you for giving me help. It was caused by the database. I
actually didn't provide
<org.apache.jetspeed.production.jdbc.drivers.path> in the settings.xml.
This made the DB setup failed and I didn't notice. After I added the
path, everything works like a charm. Thank you so much!


-----Original Message-----
From: evi [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 10, 2007 10:32 AM
To: 'Jetspeed Users List'
Subject: RE: Tutorial and build issue

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]



***********************************************************************
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]

Reply via email to