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 funky01 <af...@gmail.com> on 2007/10/30 23:15:39 UTC

jetspeed2 tutorial

Hi

 In the jetspeed2 tutorial i get as far as running the task:
mvn -P tomcat,min

and i get the following error:


sql-classpath:
[torque-sql] Using classpath
[torque-sql] Generating to file
C:\JetspeedTraining\workspace\jetexpress\etc\target\sql\derby\schema\report.phase1.sql.generation


[INFO] XmlToAppData - Parsing file: 'phase1-schema.xml'
[INFO] DTDResolver - Resolver: used database.dtd from
'org.apache.torque.engine.database.transform' package
[WARN] PlatformFactory - problems with platform

org.apache.torque.engine.platform.PlatformDerbyImpl:
org.apache.torque.engine.platform.PlatformDerbyI
mpl
[WARN] PlatformFactory - Torque will use PlatformDefaultImpl instead
[INFO] XmlToAppData - Parsing file: '

phase2-schema.xml'
[INFO] DTDResolver - Resolver: used database.dtd from
'org.apache.torque.engine.database.transform' package
[INFO] XmlToAppData - Parsing file: 'phase3ojb-schema.xml'
[INFO] DTDResolver - Resolver: used

database.dtd from 'org.apache.torque.engine.database.transform' package
[INFO] XmlToAppData - Parsing file: 'prefs-schema.xml'
[INFO] DTDResolver - Resolver: used database.dtd from
'org.apache.torque.engine.database.transform

' package
[INFO] XmlToAppData - Parsing file: 'registry-schema.xml'
[INFO] DTDResolver - Resolver: used database.dtd from
'org.apache.torque.engine.database.transform' package
[INFO] XmlToAppData - Parsing file: '

security-schema.xml'
[INFO] DTDResolver - Resolver: used database.dtd from
'org.apache.torque.engine.database.transform' package

sql-template:

schema-filter-drops:
     [copy] Warning:
C:\JetspeedTraining\workspace\jetexpress\etc\sql\derby 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-et


c\1.0\portal-etc-1.0.pom
[INFO] [antrun:run {execution: etc-populate-production}]
[INFO] Executing tasks

create-populate-db:

test-populate-skip:

create-db:
     [echo] START-CREATE-DB



sql-test-database-classpath:

sql-execute-drivers-path:

sql-execute-derby:
     [java] Buildfile:
C:\JetspeedTraining\workspace\jetexpress\etc\derby-sql-build.xml

     [java] forked-sql-execute-derby:


     [java]       [sql] 0 of 0 SQL statements executed successfully

     [java] BUILD SUCCESSFUL
     [java] Total time: 1 second
   [delete] Deleting: C:\JetspeedTraining\workspace\jetexpress\etc\derby-
sql-build.xml


sql-execute-hsql:

sql-execute:

sql-test-database-classpath:

sql-execute-drivers-path:

sql-execute-derby:
     [java] Buildfile: C:\JetspeedTraining\workspace\jetexpress\etc\derby-
sql-build.xml


     [java] forked-sql-execute-derby:
     [java]       [sql] Executing file:
C:\JetspeedTraining\workspace\jetexpress\etc\target\sql\derby\schema\phase1-schema.sql
     [java]       [sql] Failed to execute:   CREATE TABLE MEDIA_TYPE (
MEDIATYPE_ID INTEGER NOT NULL, NAME VARCHAR(80) NOT NULL,
CHARACTER_SET VARCHA


R(40), TITLE VARCHAR(80), DESCRIPTION LONGVARCHAR, PRIMARY KEY(MEDIATYPE_ID))

     [java] BUILD FAILED
     [java] C:\JetspeedTraining\workspace\jetexpress\etc\derby-sql-build.xml:6:
SQL Exception: Syntax error: Encountered "" at line 1, column 145.



     [java] Total time: 1 second
[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:298: The
following error occurred while executing this line:


C:\JetspeedTraining\workspace\jetexpress\etc\build.xml:289: The
following error occurred while executing this line:
C:\JetspeedTraining\workspace\jetexpress\etc\build.xml:390: Java returned: 1
[INFO] ------------------------------------------------------------------------


[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error
executing ant tasks
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java
:459)

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments
(DefaultLifecycleExecutor.java
:278)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.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(DelegatingMethodAccessorImpl.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 tasks
        at org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks
(AbstractAntMojo.java:114)
        at
org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:83)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals
(DefaultLifecycleExecutor.java:539)
        ... 16 more
Caused by: The following error occurred while executing this line:
C:\JetspeedTraining\workspace\jetexpress\etc\build.xml:298: The
following error occurred while executing this line:


C:\JetspeedTraining\workspace\jetexpress\etc\build.xml:289: The
following error occurred while executing this line:
C:\JetspeedTraining\workspace\jetexpress\etc\build.xml:390: Java returned: 1
        at org.apache.tools.ant.ProjectHelper.addLocationToBuildException

(ProjectHelper.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(AbstractAntMojo.java:108)
        ... 19 more
Caused by: C:\JetspeedTraining\workspace\jetexpress\etc\build.xml:298:
The following error occurred while executing this line:


C:\JetspeedTraining\workspace\jetexpress\etc\build.xml:289: The
following error occurred while executing this line:
C:\JetspeedTraining\workspace\jetexpress\etc\build.xml:390: Java returned: 1
        at org.apache.tools.ant.ProjectHelper.addLocationToBuildException

(ProjectHelper.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(SingleCheckExecutor.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: C:\JetspeedTraining\workspace\jetexpress\etc\build.xml:289:
The following error occurred while executing this line:


C:\JetspeedTraining\workspace\jetexpress\etc\build.xml:390: Java returned: 1
        at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.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(SingleCheckExecutor.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: C:\JetspeedTraining\workspace\jetexpress\etc\build.xml:390:
Java returned: 1
        at org.apache.tools.ant.taskdefs.Java.execute
(Java.java:87)
        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
(SingleCheckExecutor.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
[INFO] ------------------------------------------------------------------------

[INFO] Total time: 11 seconds

[INFO] Finished at: Tue Oct 30 22:53:47 CET 2007
[INFO] Final Memory: 15M/27M
[INFO] ------------------------------------------------------------------------

C:\JetspeedTraining\workspace\jetexpress>




I would be grateful if anyone knew how to solve this problem.

Many thanks
funky01

Re: jetspeed2 tutorial

Posted by funky01 <af...@gmail.com>.
David

Thanks for your reply. I think you have done a lot already by providing so
much information. I for one am grateful.
All the best.

On 10/31/07, David Sean Taylor <da...@bluesunrise.com> wrote:
>
>
> On Oct 31, 2007, at 10:52 AM, funky01 wrote:
>
> > Hi
> >
> > Yes, i have exactly the same.
> > There are certain things in the tutorial that i never could be sure
> > of, for
> > which i have made certain assumptions:
> >
> > 1: tomcat-express
> > I never knew where this directory should have come from. It was not
> > in the
> > tutorial so what i did was that i created the directory myself and
> > then used
> > the jetspeed installer and installed a 'Jetspeed-2 Standard with
> > only the
> > required Administrative Portlets'  in that directory.
> >
> From the Getting Started doc:
>
> http://portals.apache.org/tutorials/jetspeed-2/01/first-steps.html
>
> "For the purpose of the training, lets all use the same Tomcat home,
> point it to the /JetspeedTraining/tomcat-express directory."
>
> I guess I make assumptions about knowing what a Tomcat home is
>
> > 2: mvn archetype:create  ............   DarchetypeVersion=2.1
> > I could not find this in Maven. I downloaded version 2.1-dev
> > according to an
> > earlier mail out and manually created the directory structure in my
> > maven
> > local repository.
>
> Its a Jetspeed plugin for Maven-2, it should  auto download and install
>
> >
> > 3: This led to maven succeding until it asked for
> > jetspeed-2-2.1.pom which
> > it could not find from any where and finally according to one of the
> > previous mail outs i saw the path to download jetspeed-2-2.1-
> > dev.pom and i
> > manually added this to my maven local repository.
> >
> > From there i arrived at the problem that i am experiencing now.
> >
> > Thanks in advance
> >
> > <file:///C:/JetspeedTraining/maven/repository/org/apache/portals/
> > jetspeed-2/jetspeed-2/2.1-dev/jetspeed-2-2.1-dev.pom>
> >
> I am finding that getting started with Maven-2 is hard for developers
> with varying experience levels. I just don't have to bandwidth to
> hand hold people through all the problems that come up with the
> tutorial + Maven2
> The tutorial was originally written for a training class where I
> provided a JetspeedTraining directory, so there may be assumptions
> there as well that files exist when they don't
>
> From all these problems on the list, I decided to abandon the
> Maven-2 tutorial and started on a second tutorial with Ant, but I
> never finished it due largely to poor reception from the community
> If interested, you can walk through this tutorial up until section 2,
> where I stopped writing
>
> http://people.apache.org/~taylor/tutorial/docs/site/
>
> Basically I stopped working on it because all I received was negative
> complaints about how people want to provide their own Tomcat, and how
> useless the tutorial is by providing a Tomcat embedding in it
> I took this as a cue that maybe I should get out of the tutorial
> business
> And that is where I stand currently, I will revisit this again in 2.2
> when we rewrite the Maven-2 build and plugins and probably will focus
> on 100% Eclipse/Maven-2-eclipse plugin based development for tutorials
> I was planning on replacing the Maven-2 tutorial with the Ant
> tutorial for 2.1.3 release, but stopped when the feedback was negative
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>

Re: jetspeed2 tutorial

Posted by David Sean Taylor <da...@bluesunrise.com>.
On Oct 31, 2007, at 10:52 AM, funky01 wrote:

> Hi
>
> Yes, i have exactly the same.
> There are certain things in the tutorial that i never could be sure  
> of, for
> which i have made certain assumptions:
>
> 1: tomcat-express
> I never knew where this directory should have come from. It was not  
> in the
> tutorial so what i did was that i created the directory myself and  
> then used
> the jetspeed installer and installed a 'Jetspeed-2 Standard with  
> only the
> required Administrative Portlets'  in that directory.
>
 From the Getting Started doc:

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

"For the purpose of the training, lets all use the same Tomcat home,  
point it to the /JetspeedTraining/tomcat-express directory."

I guess I make assumptions about knowing what a Tomcat home is

> 2: mvn archetype:create  ............   DarchetypeVersion=2.1
> I could not find this in Maven. I downloaded version 2.1-dev  
> according to an
> earlier mail out and manually created the directory structure in my  
> maven
> local repository.

Its a Jetspeed plugin for Maven-2, it should  auto download and install

>
> 3: This led to maven succeding until it asked for  
> jetspeed-2-2.1.pom which
> it could not find from any where and finally according to one of the
> previous mail outs i saw the path to download jetspeed-2-2.1- 
> dev.pom and i
> manually added this to my maven local repository.
>
> From there i arrived at the problem that i am experiencing now.
>
> Thanks in advance
>
> <file:///C:/JetspeedTraining/maven/repository/org/apache/portals/ 
> jetspeed-2/jetspeed-2/2.1-dev/jetspeed-2-2.1-dev.pom>
>
I am finding that getting started with Maven-2 is hard for developers  
with varying experience levels. I just don't have to bandwidth to  
hand hold people through all the problems that come up with the  
tutorial + Maven2
The tutorial was originally written for a training class where I  
provided a JetspeedTraining directory, so there may be assumptions  
there as well that files exist when they don't

 From all these problems on the list, I decided to abandon the  
Maven-2 tutorial and started on a second tutorial with Ant, but I  
never finished it due largely to poor reception from the community
If interested, you can walk through this tutorial up until section 2,  
where I stopped writing

http://people.apache.org/~taylor/tutorial/docs/site/

Basically I stopped working on it because all I received was negative  
complaints about how people want to provide their own Tomcat, and how  
useless the tutorial is by providing a Tomcat embedding in it
I took this as a cue that maybe I should get out of the tutorial  
business
And that is where I stand currently, I will revisit this again in 2.2  
when we rewrite the Maven-2 build and plugins and probably will focus  
on 100% Eclipse/Maven-2-eclipse plugin based development for tutorials
I was planning on replacing the Maven-2 tutorial with the Ant  
tutorial for 2.1.3 release, but stopped when the feedback was negative



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


Re: jetspeed2 tutorial

Posted by funky01 <af...@gmail.com>.
Hi

Yes, i have exactly the same.
There are certain things in the tutorial that i never could be sure of, for
which i have made certain assumptions:

1: tomcat-express
I never knew where this directory should have come from. It was not in the
tutorial so what i did was that i created the directory myself and then used
the jetspeed installer and installed a 'Jetspeed-2 Standard with only the
required Administrative Portlets'  in that directory.

2: mvn archetype:create  ............   DarchetypeVersion=2.1
I could not find this in Maven. I downloaded version 2.1-dev according to an
earlier mail out and manually created the directory structure in my maven
local repository.

3: This led to maven succeding until it asked for jetspeed-2-2.1.pom which
it could not find from any where and finally according to one of the
previous mail outs i saw the path to download jetspeed-2-2.1-dev.pom and i
manually added this to my maven local repository.

>From there i arrived at the problem that i am experiencing now.

Thanks in advance

<file:///C:/JetspeedTraining/maven/repository/org/apache/portals/jetspeed-2/jetspeed-2/2.1-dev/jetspeed-2-2.1-dev.pom>



On 10/31/07, David Sean Taylor <da...@bluesunrise.com> wrote:
>
>
> On Oct 30, 2007, at 3:15 PM, funky01 wrote:
>
> >
> > sql-execute-derby:
> >      [java] Buildfile: C:\JetspeedTraining\workspace\jetexpress\etc
> > \derby-
> > sql-build.xml
> >
> >
> >      [java] forked-sql-execute-derby:
> >      [java]       [sql] Executing file:
> > C:\JetspeedTraining\workspace\jetexpress\etc\target\sql\derby\schema
> > \phase1-schema.sql
> >      [java]       [sql] Failed to execute:   CREATE TABLE MEDIA_TYPE (
> > MEDIATYPE_ID INTEGER NOT NULL, NAME VARCHAR(80) NOT NULL,
> > CHARACTER_SET VARCHA
> >
> >
> > R(40), TITLE VARCHAR(80), DESCRIPTION LONGVARCHAR, PRIMARY KEY
> > (MEDIATYPE_ID))
> >
> >      [java] BUILD FAILED
> >      [java] C:\JetspeedTraining\workspace\jetexpress\etc\derby-sql-
> > build.xml:6:
> > SQL Exception: Syntax error: Encountered "" at line 1, column 145.
> >
> >
> not really sure , sounds like something going wrong with the create
> table statement
> Have you setup your database settings in settings.xml as described here:
>
> http://portals.apache.org/tutorials/jetspeed-2/01/first-steps.html
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>

Re: jetspeed2 tutorial

Posted by David Sean Taylor <da...@bluesunrise.com>.
On Oct 30, 2007, at 3:15 PM, funky01 wrote:

>
> sql-execute-derby:
>      [java] Buildfile: C:\JetspeedTraining\workspace\jetexpress\etc 
> \derby-
> sql-build.xml
>
>
>      [java] forked-sql-execute-derby:
>      [java]       [sql] Executing file:
> C:\JetspeedTraining\workspace\jetexpress\etc\target\sql\derby\schema 
> \phase1-schema.sql
>      [java]       [sql] Failed to execute:   CREATE TABLE MEDIA_TYPE (
> MEDIATYPE_ID INTEGER NOT NULL, NAME VARCHAR(80) NOT NULL,
> CHARACTER_SET VARCHA
>
>
> R(40), TITLE VARCHAR(80), DESCRIPTION LONGVARCHAR, PRIMARY KEY 
> (MEDIATYPE_ID))
>
>      [java] BUILD FAILED
>      [java] C:\JetspeedTraining\workspace\jetexpress\etc\derby-sql- 
> build.xml:6:
> SQL Exception: Syntax error: Encountered "" at line 1, column 145.
>
>
not really sure , sounds like something going wrong with the create  
table statement
Have you setup your database settings in settings.xml as described here:

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



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


Re: jetspeed2 tutorial

Posted by funky01 <af...@gmail.com>.
Hi

>
>  In the jetspeed2 tutorial i get as far as running the task:
> mvn -P tomcat,min
>
> and i get the following error:
>
>
> sql-classpath:
> [torque-sql] Using classpath
> [torque-sql] Generating to file C:\JetspeedTraining\workspace\jetexpress\etc\target\sql\derby\schema\report.phase1.sql.generation
>
>
>
> [INFO] XmlToAppData - Parsing file: 'phase1-schema.xml'
> [INFO] DTDResolver - Resolver: used database.dtd from 'org.apache.torque.engine.database.transform' package
> [WARN] PlatformFactory - problems with platform
>
>
> org.apache.torque.engine.platform.PlatformDerbyImpl: org.apache.torque.engine.platform.PlatformDerbyI
> mpl
> [WARN] PlatformFactory - Torque will use PlatformDefaultImpl instead
> [INFO] XmlToAppData - Parsing file: '
>
>
> phase2-schema.xml'
> [INFO] DTDResolver - Resolver: used database.dtd from 'org.apache.torque.engine.database.transform' package
> [INFO] XmlToAppData - Parsing file: 'phase3ojb-schema.xml'
>
> [INFO] DTDResolver - Resolver: used
>
> database.dtd from 'org.apache.torque.engine.database.transform' package
> [INFO] XmlToAppData - Parsing file: 'prefs-schema.xml'
> [INFO] DTDResolver - Resolver: used
> database.dtd from 'org.apache.torque.engine.database.transform
>
> ' package
> [INFO] XmlToAppData - Parsing file: 'registry-schema.xml'
> [INFO] DTDResolver - Resolver: used database.dtd from 'org.apache.torque.engine.database.transform
> ' package
> [INFO] XmlToAppData - Parsing file: '
>
> security-schema.xml'
> [INFO] DTDResolver - Resolver: used database.dtd from 'org.apache.torque.engine.database.transform' package
>
> sql-template:
>
>
> schema-filter-drops:
>      [copy] Warning: C:\JetspeedTraining\workspace\jetexpress\etc\sql\derby 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-et
>
>
>
> c\1.0\portal-etc-1.0.pom
> [INFO] [antrun:run {execution: etc-populate-production}]
> [INFO] Executing tasks
>
> create-populate-db:
>
> test-populate-skip:
>
> create-db:
>      [echo] START-CREATE-DB
>
>
>
>
> sql-test-database-classpath:
>
> sql-execute-drivers-path:
>
> sql-execute-derby:
>      [java] Buildfile: C:\JetspeedTraining\workspace\jetexpress\etc\derby-sql-build.xml
>
>      [java] forked-sql-execute-derby:
>
>
>
>      [java]       [sql] 0 of 0 SQL statements executed successfully
>
>      [java] BUILD SUCCESSFUL
>      [java] Total time: 1 second
>    [delete] Deleting: C:\JetspeedTraining\workspace\jetexpress\etc\derby-
>
> sql-build.xml
>
>
> sql-execute-hsql:
>
> sql-execute:
>
> sql-test-database-classpath:
>
> sql-execute-drivers-path:
>
> sql-execute-derby:
>      [java] Buildfile: C:\JetspeedTraining\workspace\jetexpress\etc\derby-
>
> sql-build.xml
>
>
>      [java] forked-sql-execute-derby:
>      [java]       [sql] Executing file: C:\JetspeedTraining\workspace\jetexpress\etc\target\sql\derby\schema\phase1-schema.sql
>      [java]       [sql] Failed to execute:   CREATE TABLE MEDIA_TYPE ( MEDIATYPE_ID INTEGER NOT NULL, NAME VARCHAR(80) NOT NULL, CHARACTER_SET VARCHA
>
>
>
> R(40), TITLE VARCHAR(80), DESCRIPTION LONGVARCHAR, PRIMARY KEY(MEDIATYPE_ID))
>
>      [java] BUILD FAILED
>      [java] C:\JetspeedTraining\workspace\jetexpress\etc\derby-sql-build.xml:6: SQL Exception: Syntax error: Encountered "" at line 1, column 145.
>
>
>
>
>      [java] Total time: 1 second
> [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:298: The following error occurred while executing this line:
>
>
>
> C:\JetspeedTraining\workspace\jetexpress\etc\build.xml:289: The following error occurred while executing this line:
> C:\JetspeedTraining\workspace\jetexpress\etc\build.xml:390: Java returned: 1
> [INFO] ------------------------------------------------------------------------
>
>
>
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Error executing ant tasks
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564)
>
>
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java
>
> :459)
>
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments
>
> (DefaultLifecycleExecutor.java
> :278)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.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(DelegatingMethodAccessorImpl.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 tasks
>         at org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks
>
> (AbstractAntMojo.java:114)
>         at
> org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:83)
>         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
>
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals
> (DefaultLifecycleExecutor.java:539)
>         ... 16 more
> Caused by: The following error occurred while executing this line:
> C:\JetspeedTraining\workspace\jetexpress\etc\build.xml:298: The following error occurred while executing this line:
>
>
>
> C:\JetspeedTraining\workspace\jetexpress\etc\build.xml:289: The following error occurred while executing this line:
> C:\JetspeedTraining\workspace\jetexpress\etc\build.xml:390: Java returned: 1
>         at
> org.apache.tools.ant.ProjectHelper.addLocationToBuildException
>
> (ProjectHelper.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
> (AbstractAntMojo.java:108)
>         ... 19 more
> Caused by: C:\JetspeedTraining\workspace\jetexpress\etc\build.xml:298: The following error occurred while executing this line:
>
>
> C:\JetspeedTraining\workspace\jetexpress\etc\build.xml:289: The following error occurred while executing this line:
>
> C:\JetspeedTraining\workspace\jetexpress\etc\build.xml:390: Java returned: 1
>         at org.apache.tools.ant.ProjectHelper.addLocationToBuildException
>
> (ProjectHelper.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(SingleCheckExecutor.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: C:\JetspeedTraining\workspace\jetexpress\etc\build.xml:289: The following error occurred while executing this line:
>
>
> C:\JetspeedTraining\workspace\jetexpress\etc\build.xml:390: Java returned: 1
>
>         at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.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
> (SingleCheckExecutor.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: C:\JetspeedTraining\workspace\jetexpress\etc\build.xml:390: Java returned: 1
>
>         at org.apache.tools.ant.taskdefs.Java.execute
> (Java.java:87)
>         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
> (SingleCheckExecutor.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
> [INFO] ------------------------------------------------------------------------
>
> [INFO] Total time: 11 seconds
>
> [INFO] Finished at: Tue Oct 30 22:53:47 CET 2007
> [INFO] Final Memory: 15M/27M
>
> [INFO] ------------------------------------------------------------------------
>
> C:\JetspeedTraining\workspace\jetexpress>
>
>
>
>
> I would be grateful if anyone knew how to solve this problem.
>
>
> Many thanks
> funky01
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>