You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Javier padrón <jp...@nartexsoft.com> on 2007/02/01 20:06:28 UTC

RE: Questions about JetExpress Portal Tutorial

Hello 

I continue having problems to generate the JetExpress Portal Tutorial. 

I have downloaded complete bluesunrise maven2 repository  from http://www.bluesunrise.com/maven2/repository.zip,
and all the resources of tutorial, from http://www.bluesunrise.com/training 

But I follow without obtaining that it works.
I have attached 2 complete log files whit builds erros full trace.

Thanks again!

:: 1)
# Windows
cd \JetspeedTraining\workspace
mvn archetype:create -DarchetypeGroupId=org.apache.portals.jetspeed-2 -DarchetypeArtifactId=portal-archetype -DarchetypeVersion=2.1-dev -DgroupId=org.apache.portals.tutorials -DartifactId=jetexpress -Dversion=1.0

BUILD SUCCESSFUL !, but many dependencies errors are generates 'ReferenceException'

// ---------- init output -----------------------

[INFO] ----------------------------------------------------------------------------
[INFO] Using following parameters for creating Archetype: portal-archetype:2.1-dev [INFO] ----------------------------------------------------------------------------
[INFO] Parameter: groupId, Value: org.apache.portals.tutorials [INFO] Parameter: packageName, Value: org.apache.portals.tutorials [INFO] Parameter: basedir, Value: C:\JetspeedTraining\workspace [INFO] Parameter: package, Value: org.apache.portals.tutorials [INFO] Parameter: version, Value: 1.0 [INFO] Parameter: artifactId, Value: jetexpress [WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference : template = archetype-resources/pom.xml [line 17,column 3] : $Id is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference : template = archetype-resources/pom.xml [line 218,column 26] : ${pom.groupId} is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference : template = archetype-resources/pom.xml [line 221,column 26] : ${pom.version} is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference : template = archetype-resources/pom.xml [line 224,column 26] : ${pom.groupId} is not a valid reference.
...
...(420 more...)
...
[WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference : template = archetype-resources/settings.xml.sample [line 60,column 67] : ${org.apache.jetspeed.server.home} is not a valid reference.
[INFO] Archetype created in dir: C:\JetspeedTraining\workspace\jetexpress
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3 seconds
[INFO] Finished at: Thu Feb 01 09:11:36 GMT 2007 [INFO] Final Memory: 5M/10M [INFO] ------------------------------------------------------------------------
// ---------- end output -----------------------


:: 2)
# Windows
cd \JetspeedTraining\workspace\jetexpress  	 
mvn -P tomcat,min

BUILD ERROR !

// ---------- init output -----------------------

[WARNING] 
	Artifact ant:ant:jar:1.6.5:runtime retains local scope 'runtime' overriding broader scope 'compile'
	given by a dependency. If this is not intended, modify or remove the local scope.

[WARNING] 
	Artifact org.apache.maven:maven-project:jar:2.0.1:runtime retains local scope 'runtime' overriding broader scope 'compile'
	given by a dependency. If this is not intended, modify or remove the local scope.

[INFO] [antrun:run {execution: etc-schema}] [INFO] Executing tasks

clean-schema:

test-database-default-name:

test-database-filter-drops:

test-database-target-sql:

schema:
    [mkdir] Created dir: C:\JetspeedTraining\workspace\jetexpress\etc\target\sql\${org.apache.jetspeed.production.database.default.name}
     [copy] Copying 3 files to C:\JetspeedTraining\workspace\jetexpress\etc\target\sql\${org.apache.jetspeed.production.database.default.name}
     [copy] Copying C:\JetspeedTraining\workspace\jetexpress\etc\sql\drop.sql to C:\JetspeedTraining\workspace\jetexpress\etc\target\sql\${org.apache.jetspeed.production.database.default.name}\drop.sql
     [copy] Copying C:\JetspeedTraining\workspace\jetexpress\etc\sql\populate-db-default.sql to C:\JetspeedTraining\workspace\jetexpress\etc\target\sql\${org.apache.jetspeed.production.database.default.name}\populate-db-default.sql
     [copy] Copying C:\JetspeedTraining\workspace\jetexpress\etc\sql\populate-userinfo-for-default-psml.sql to C:\JetspeedTraining\workspace\jetexpress\etc\target\sql\${org.apache.jetspeed.production.database.default.name}\populate-userinfo-for-default-psml.sql

schema-mssql:

schema-mysql:

schema-oracle:

schema-hsql:

schema-postgres:

schema-sapdb:

schema-derby:

schema-filter-drops:
     [copy] Warning: C:\JetspeedTraining\workspace\jetexpress\etc\sql\${org.apache.jetspeed.production.database.default.name} not found.
[INFO] Executed tasks
[INFO] [site:attach-descriptor]
[INFO] [install:install]
[INFO] Installing C:\JetspeedTraining\workspace\jetexpress\etc\pom.xml to c:\JetspeedTraining\maven\repository\org\apache\portals\tutorials\portal-etc\1.0\portal-etc-1.0.pom
[INFO] [antrun:run {execution: etc-populate-production}] [INFO] Executing tasks ...
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error executing ant tasks

Embedded error: The following error occurred while executing this line:
C:\JetspeedTraining\workspace\jetexpress\etc\build.xml:296: The following error occurred while executing this line:
C:\JetspeedTraining\workspace\jetexpress\etc\build.xml:280: The following error occurred while executing this line:
C:\JetspeedTraining\workspace\jetexpress\etc\build.xml:340: Class Not Found: JDBC driver ${org.apache.jetspeed.production.database.driver} could not be loaded [INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------
[INFO] Total time: 7 seconds
[INFO] Finished at: Thu Feb 01 09:12:38 GMT 2007 [INFO] Final Memory: 7M/14M [INFO] ------------------------------------------------------------------------
// ---------- end output -----------------------


 
Javier Padron
Nartex Software


-----Original Message-----
From: David Sean Taylor [mailto:david@bluesunrise.com]
Sent: Monday, January 29, 2007 5:46 PM
To: Jetspeed Users List
Subject: Re: Questions about JetExpress Portal Tutorial


On Jan 29, 2007, at 5:41 AM, Javier padrón wrote:

> Hello to all,
>
> I am trying to create my first custom Portal folowing the steps on 
> 'JetExpress Portal Tutorial', I see that she is a complete guide.
> But I have some doubts, and these are the following ones:
>
> 1) tomcat-express refers to tomcat with the previous installation of 
> JetSpeed 2 (default build), or is new empty tomcat, without nothing 
> installed?
>
> 2) jetspeed-2-resources.zip, where is to unzip this file, is correct 
> in c:\JetspeedTraining\resources?
>
> 3) Generating a Jetspeed Portal
> # Windows
> cd \JetspeedTraining\workspace
> mvn archetype:create -DarchetypeGroupId=org.apache.portals.jetspeed-2
>                      -DarchetypeArtifactId=portal-archetype
>                      -DarchetypeVersion=2.1-dev
>                      -DgroupId=org.apache.portals.tutorials
>                      -DartifactId=jetexpress
>                      -Dversion=1.0
>
> The folder \JetspeedTraining\workspace is empty, this is correct, buid 
> throws errors :( ?
>
>
> I have the sensation that is no complete config...
>
I copied up the resources to here:

http://www.bluesunrise.com/training





---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


Re: Questions about JetExpress Portal Tutorial

Posted by Philip Mark Donaghy <ph...@gmail.com>.
Javier,

On 2/6/07, Javier padron <jp...@nartexsoft.com> wrote:
> Hi Philip
>
> I am new with Maven and Jetspeed, I go step by step slowly.
>
> I hope that they know to understand that for those who we are not
> familiarized with these tools it is not easy to do simple 'build' or
> 'deploy'.
>
> Excuse me if sometimes I make dumb questions.  ;)

There are no dumb questions. :)

Philip

>
>
> Thaks,
> Javier.-
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>


-- 
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: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


RE: Questions about JetExpress Portal Tutorial

Posted by Javier padron <jp...@nartexsoft.com>.
Hi Philip

I am new with Maven and Jetspeed, I go step by step slowly. 

I hope that they know to understand that for those who we are not
familiarized with these tools it is not easy to do simple 'build' or
'deploy'. 

Excuse me if sometimes I make dumb questions.  ;)


Thaks,
Javier.-

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


Re: Questions about JetExpress Portal Tutorial

Posted by Philip Mark Donaghy <ph...@gmail.com>.
Hi Javier,

On 2/5/07, Javier padron <jp...@nartexsoft.com> wrote:
> Finally I have obtained BUILD SUCCESSFUL !!!.

Welcome to the club. We need people to compile regularly so thanks for helping.

>
> The configuration of my settings.xml:
>
>
>
>                 <!-- Oracle TEST DB properties -->
>
> <org.apache.jetspeed.test.jdbc.drivers.path>c:/JetspeedTraining/tomcat-e
> xpress/common/endorsed/ojdbc14.jar</org.apache.jetspeed.test.jdbc.driver
> s.path>
>
> <org.apache.jetspeed.test.database.default.name>oracle</org.apache.jetsp
> eed.test.database.default.name>
>
> <org.apache.jetspeed.test.database.url>jdbc:oracle:thin:@348DESARROLLO:1
> 521:ORA348</org.apache.jetspeed.test.database.url>
>
> <org.apache.jetspeed.test.database.driver>oracle.jdbc.driver.OracleDrive
> r</org.apache.jetspeed.test.database.driver>
>
> <org.apache.jetspeed.test.database.user>JS2</org.apache.jetspeed.test.da
> tabase.user>
>
> <org.apache.jetspeed.test.database.password>***</org.apache.jetspeed.tes
> t.database.password>
>
> <org.apache.jetspeed.test.database.driver>oracle.jdbc.driver.OracleDrive
> r</org.apache.jetspeed.test.database.driver>

Duplicate.

>
> <org.apache.jetspeed.test.database.default.name>oracle</org.apache.jetsp
> eed.test.database.default.name>

Declared twice.

>
>                 <!-- Oracle PRODUCTION DB properties -->
>
> <org.apache.jetspeed.production.jdbc.drivers.path>c:/JetspeedTraining/to
> mcat-express/common/endorsed/ojdbc14.jar</org.apache.jetspeed.production
> .jdbc.drivers.path>
>
> <org.apache.jetspeed.production.database.default.name>oracle</org.apache
> .jetspeed.production.database.default.name>
>
> <org.apache.jetspeed.production.database.url>jdbc:oracle:thin:@348DESARR
> OLLO:1521:ORA348</org.apache.jetspeed.production.database.url>
>
> <org.apache.jetspeed.production.database.driver>oracle.jdbc.driver.Oracl
> eDriver</org.apache.jetspeed.production.database.driver>

Once again.

>
> <org.apache.jetspeed.production.database.user>JS2</org.apache.jetspeed.p
> roduction.database.user>
>
> <org.apache.jetspeed.production.database.password>***</org.apache.jetspe
> ed.production.database.password>
>
> <org.apache.jetspeed.production.database.driver>oracle.jdbc.driver.Oracl
> eDriver</org.apache.jetspeed.production.database.driver>
>
> <org.apache.jetspeed.production.database.default.name>oracle</org.apache
> .jetspeed.production.database.default.name>

One more duplicate. Never mind it doesn't hurt to declare them twice :)

I'm going to add an oracle profile to our sample settings.xml file.
Thanks because I don't have to look them up.

Philip

>
>
> Thanks !
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>


-- 
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: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


RE: Questions about JetExpress Portal Tutorial

Posted by Javier padron <jp...@nartexsoft.com>.
Finally I have obtained BUILD SUCCESSFUL !!!.

The configuration of my settings.xml:



                <!-- Oracle TEST DB properties -->
 
<org.apache.jetspeed.test.jdbc.drivers.path>c:/JetspeedTraining/tomcat-e
xpress/common/endorsed/ojdbc14.jar</org.apache.jetspeed.test.jdbc.driver
s.path>
 
<org.apache.jetspeed.test.database.default.name>oracle</org.apache.jetsp
eed.test.database.default.name>
 
<org.apache.jetspeed.test.database.url>jdbc:oracle:thin:@348DESARROLLO:1
521:ORA348</org.apache.jetspeed.test.database.url>
 
<org.apache.jetspeed.test.database.driver>oracle.jdbc.driver.OracleDrive
r</org.apache.jetspeed.test.database.driver>
 
<org.apache.jetspeed.test.database.user>JS2</org.apache.jetspeed.test.da
tabase.user>
 
<org.apache.jetspeed.test.database.password>***</org.apache.jetspeed.tes
t.database.password>
 
<org.apache.jetspeed.test.database.driver>oracle.jdbc.driver.OracleDrive
r</org.apache.jetspeed.test.database.driver>
 
<org.apache.jetspeed.test.database.default.name>oracle</org.apache.jetsp
eed.test.database.default.name>

                <!-- Oracle PRODUCTION DB properties -->
 
<org.apache.jetspeed.production.jdbc.drivers.path>c:/JetspeedTraining/to
mcat-express/common/endorsed/ojdbc14.jar</org.apache.jetspeed.production
.jdbc.drivers.path>
 
<org.apache.jetspeed.production.database.default.name>oracle</org.apache
.jetspeed.production.database.default.name>
 
<org.apache.jetspeed.production.database.url>jdbc:oracle:thin:@348DESARR
OLLO:1521:ORA348</org.apache.jetspeed.production.database.url>
 
<org.apache.jetspeed.production.database.driver>oracle.jdbc.driver.Oracl
eDriver</org.apache.jetspeed.production.database.driver>
 
<org.apache.jetspeed.production.database.user>JS2</org.apache.jetspeed.p
roduction.database.user>
 
<org.apache.jetspeed.production.database.password>***</org.apache.jetspe
ed.production.database.password>
 
<org.apache.jetspeed.production.database.driver>oracle.jdbc.driver.Oracl
eDriver</org.apache.jetspeed.production.database.driver>
 
<org.apache.jetspeed.production.database.default.name>oracle</org.apache
.jetspeed.production.database.default.name>
 

Thanks !

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


RE: Questions about JetExpress Portal Tutorial

Posted by Javier padron <jp...@nartexsoft.com>.
Hello, I am using Oracle 9i, in Tutorial JetExpress Portal/First
Steps/Editing the settings.xml says 

"The settings are preconfigured for an embedded Derby database, so more
changes are required if another database solution is to be used, covered
later in this tutorial."



But I do not know as they are the changes that I must do so that it
works with Oracle.

It could indicate it to me?

Attach the file settings.xml.

Thanks !

>> C:\JetspeedTraining\workspace\jetexpress\etc\build.xml:340: Class Not
> Found: JDBC driver $ {org.apache.jetspeed.production.database.driver} 
>> could not be loaded [INFO]
>>
----------------------------------------------------------------------
>> --

>Seems to be some kind of problem with the JDBC driver variable ...
>Have you followed the tutorial page here?:
>http://portals.apache.org/tutorials/jetspeed-2/01/first-steps.html
>send us your  ~/.m2/settings.xml

Re: Questions about JetExpress Portal Tutorial

Posted by David Sean Taylor <da...@bluesunrise.com>.
Please do not cross post


On Feb 1, 2007, at 11:06 AM, Javier padrón wrote:

> Hello
>
> I continue having problems to generate the JetExpress Portal Tutorial.
>
[snip]
> [INFO]  
> ---------------------------------------------------------------------- 
> --
> [ERROR] BUILD ERROR
> [INFO]  
> ---------------------------------------------------------------------- 
> --
> [INFO] Error executing ant tasks
>
> Embedded error: The following error occurred while executing this  
> line:
> C:\JetspeedTraining\workspace\jetexpress\etc\build.xml:296: The  
> following error occurred while executing this line:
> C:\JetspeedTraining\workspace\jetexpress\etc\build.xml:280: The  
> following error occurred while executing this line:
> C:\JetspeedTraining\workspace\jetexpress\etc\build.xml:340: Class  
> Not Found: JDBC driver $ 
> {org.apache.jetspeed.production.database.driver} could not be  
> loaded [INFO]  
> ---------------------------------------------------------------------- 
> --

Seems to be some kind of problem with the JDBC driver variable ...

Have you followed the tutorial page here?:

http://portals.apache.org/tutorials/jetspeed-2/01/first-steps.html

send us your  ~/.m2/settings.xml
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org