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 Mansour <ma...@yahoo.com> on 2007/09/01 21:40:39 UTC

Building From source problems, and undesrtanding portlets

Hello every one:
I am following the build from source tutorial 
http://portals.apache.org/jetspeed-2/getting-started-source.html

here's my build.properties:
===================================================================
org.apache.jetspeed.portal.home                     = 
/home/mansour/workspace/jetspeed-dev
org.apache.jetspeed.portal.groupId                 = test-grp
org.apache.jetspeed.portal.artifactId               =myportal
org.apache.jetspeed.portal.name                     = Portal Name
org.apache.jetspeed.portal.currentVersion     = 1.0

org.apache.jetspeed.server.home                      = /opt/tomcat/
org.apache.jetspeed.server.shared                    = 
${org.apache.jetspeed.server.home}/shared/lib/
org.apache.jetspeed.deploy.war.dir                   = 
${org.apache.jetspeed.server.home}/webapps/
org.apache.jetspeed.services.autodeployment.user     = j2deployer
org.apache.jetspeed.services.autodeployment.password = xxxxx
org.apache.jetspeed.catalina.version.major           = 6.0

maven.repo.remote = http://www.bluesunrise.com/maven/, 
http://www.ibiblio.org/maven/, http://dist.codehaus.org/, 
http://cvs.apache.org/repository

===================================================================

When I get to the step of :

maven j2:portal.genapp

I get the following error:


j2:portal.conf.sql:
    [delete] Deleting directory 
/home/mansour/workspace/jetspeed-dev/target/portal-sql
    [mkdir] Created dir: 
/home/mansour/workspace/jetspeed-dev/target/portal-sql
    [copy] Copying 1 file to 
/home/mansour/workspace/jetspeed-dev/target/portal-sql
    [copy] Copying 
/home/mansour/.maven/cache/maven-jetspeed2-plugin-2.1.2/plugin-resources/sql/drop.sql 
to /home/mansour/workspace/jetspeed-dev/target/portal-sql/drop.sql
j2:_set.rdbms.props:
-------------------------------------------------------------------------------
 >> Unable to obtain goal [j2:portal.genapp]
 >> unsupported target database:
-------------------------------------------------------------------------------
BUILD FAILED
-------------------------------------------------------------------------------
Total time   : 4 seconds
Finished at  : Saturday, September 1, 2007 4:27:34 PM ADT
Final Memory : 4M/13M

Can someone help me on this?

Another Question. It looks like I don't see correctly the big picture. 
In the past I used the binary installer and tested it with the embedded 
tomcat. Then I copied the files "webapps/jetexpress"  and "lib/*" and 
the "jetspeed.xml" to another tomcat installation and worked great. 
Therefore, jetexpress directory is the portal application of jetspeed 
and any other directory I copy or deploy is a portlet application (ie. 
j2-admin), am I right here?

Thank you.







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


Re: [Bulk] Re: Building From source problems, and undesrtanding portlets

Posted by Mansour <ma...@yahoo.com>.
I can't use maven-2. I tried before, but I don't want to download or use 
/jetspeedtraning. What's this folder any way, and settings.xml ?? How 
come the documentation does not bring them up and point to the link to 
obtain them?

I have been there before. If I have to go there again, then I am going 
in a loop and wasting my time. It would be better for me (in that case) 
to try another portlet server.



Brice Lambi wrote:
> You really should be using the maven2 builds:
>
> http://portals.apache.org/tutorials/jetspeed-2/
>
> Brice
>
>
> On 9/3/07, Mansour <ma...@yahoo.com> wrote:
>   
>> Woonsan:
>> Thank you. I didn't try it yet, but I will, and I will post the results.
>>
>>
>> Woonsan Ko wrote:
>>     
>>> Hi Mansour,
>>>
>>> I think you met a problem with database settings.
>>> In my case, I use MySQL with the following database settings in
>>>       
>> build.properties:
>>     
>>> org.apache.jetspeed.test.database.url = jdbc:mysql://localhost/j2
>>> org.apache.jetspeed.test.database.driver = com.mysql.jdbc.Driver
>>> org.apache.jetspeed.test.database.user = j2
>>> org.apache.jetspeed.test.database.password = XX
>>>
>>> org.apache.jetspeed.test.jdbc.drivers.path =
>>> /home/woonsan/mysql-connector-java-5.0.5/mysql-
>>>       
>> connector-java-5.0.5-bin.jar
>>     
>>> org.apache.jetspeed.test.database.default.name = mysql
>>>
>>> org.apache.jetspeed.production.database.url = jdbc:mysql://localhost/j2
>>> org.apache.jetspeed.production.database.driver = com.mysql.jdbc.Driver
>>> org.apache.jetspeed.production.database.user = j2
>>> org.apache.jetspeed.production.database.password = XX
>>>
>>> org.apache.jetspeed.production.jdbc.drivers.path =
>>> /home/woonsan/mysql-connector-java-5.0.5/mysql-
>>>       
>> connector-java-5.0.5-bin.jar
>>     
>>> org.apache.jetspeed.production.database.default.name = mysql
>>>
>>>
>>> Also, MySQL should be accessible at the build time! If you use the
>>>       
>> default settings (e.g. HSQL
>>     
>>> DB), then you should start an instance of HSQL DB first.
>>>
>>>
>>>       
>>>> Therefore, jetexpress directory is the portal
>>>> application of jetspeed and any other directory I copy or deploy is a
>>>> portlet application (ie. j2-admin), am I right here?
>>>>
>>>>         
>>> Yes, you're right.
>>>
>>>
>>> -Woonsan
>>>
>>> --- Mansour <ma...@yahoo.com> wrote:
>>>
>>>
>>>       
>> ---------------------------------------------------------------------
>> 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: R: [Bulk] Re: Building From source problems, and undesrtanding portlets

Posted by Brice Lambi <la...@gmail.com>.
The class cast exception usually means you are using the wrong version of
jdbc driver.

Brice


On 9/5/07, Scandelli Francesco <Fr...@italtel.it> wrote:
>
> Hi
>
> I followed the steps you described for deploying jetspeed.war but I obtain
> the following error running 'mvn -P tomcat':
>
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Error executing ant tasks
>
> Embedded error: The following error occurred while executing this line:
> /home/cappelc/jetspeedSCAND/jetspeed-2.1.2/src/etc/build.xml:301: The
> following
> error occurred while executing this line:
> /home/cappelc/jetspeedSCAND/jetspeed-2.1.2/src/etc/build.xml:306: The
> following
> error occurred while executing this line:
> /home/cappelc/jetspeedSCAND/jetspeed-2.1.2/src/etc/build.xml:500:
> java.lang.Clas
> sCastException: 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)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal
> (Defau
> ltLifecycleExecutor.java:459)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
> dleFailures(DefaultLifecycleExecutor.java:311)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
> ts(DefaultLifecycleExecutor.java:278)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute
> (DefaultLi
> fecycleExecutor.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
> (DelegatingMethodAcces
> sorImpl.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 t
> asks
>         at org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks
> (AbstractA
> ntMojo.java:114)
>         at org.apache.maven.plugin.antrun.AntRunMojo.execute(
> AntRunMojo.java:83)
>         at org.apache.maven.plugin.DefaultPluginManager.executeMojo
> (DefaultPlugi
> nManager.java:443)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
> ultLifecycleExecutor.java:539)
>         ... 16 more
> Caused by: The following error occurred while executing this line:
> /home/cappelc/jetspeedSCAND/jetspeed-2.1.2/src/etc/build.xml:301: The
> following
> error occurred while executing this line:
> /home/cappelc/jetspeedSCAND/jetspeed-2.1.2/src/etc/build.xml:306: The
> following
> error occurred while executing this line:
> /home/cappelc/jetspeedSCAND/jetspeed-2.1.2/src/etc/build.xml:500:
> java.lang.Clas
> sCastException: org.apache.maven.usability.MojoFailureExceptionDiagnoser
>         at org.apache.tools.ant.ProjectHelper.addLocationToBuildException
> (Projec
> tHelper.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
> (AbstractA
> ntMojo.java:108)
>         ... 19 more
> Caused by: /home/cappelc/jetspeedSCAND/jetspeed-2.1.2/src/etc/build.xml:301:
> The
> following error occurred while executing this line:
> /home/cappelc/jetspeedSCAND/jetspeed-2.1.2/src/etc/build.xml:306: The
> following
> error occurred while executing this line:
> /home/cappelc/jetspeedSCAND/jetspeed-2.1.2/src/etc/build.xml:500:
> java.lang.Clas
> sCastException: org.apache.maven.usability.MojoFailureExceptionDiagnoser
>         at org.apache.tools.ant.ProjectHelper.addLocationToBuildException
> (Projec
> tHelper.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
> (Single
> CheckExecutor.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: /home/cappelc/jetspeedSCAND/jetspeed-2.1.2/src/etc/build.xml:306:
> The
> following error occurred while executing this line:
> /home/cappelc/jetspeedSCAND/jetspeed-2.1.2/src/etc/build.xml:500:
> java.lang.Clas
> sCastException: org.apache.maven.usability.MojoFailureExceptionDiagnoser
>         at org.apache.tools.ant.ProjectHelper.addLocationToBuildException
> (Projec
> tHelper.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
> (Single
> CheckExecutor.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: /home/cappelc/jetspeedSCAND/jetspeed-2.1.2/src/etc/build.xml:500:
> jav
> a.lang.ClassCastException:
> org.apache.maven.usability.MojoFailureExceptionDiagno
> ser
>         at org.apache.tools.ant.Task.perform(Task.java:373)
>         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
> (Single
> CheckExecutor.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
> Caused by: java.lang.ClassCastException:
> org.apache.maven.usability.MojoFailureE
> xceptionDiagnoser
>         at
> org.apache.maven.usability.diagnostics.ErrorDiagnostics.diagnose(Erro
> rDiagnostics.java:75)
>         at
> org.apache.maven.artifact.ant.AbstractArtifactTask.diagnoseError(Abst
> ractArtifactTask.java:382)
>         at org.apache.maven.artifact.ant.AbstractArtifactTask.execute
> (AbstractAr
> tifactTask.java:455)
>         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java
> :275)
>         at org.apache.tools.ant.Task.perform(Task.java:364)
>         ... 47 more
>
> Any idea about what is going wrong?
>
> Thanks
> Francesco
>
> -----Messaggio originale-----
> Da: Brice Lambi [mailto:lambi.brice@gmail.com]
> Inviato: mercoledì 5 settembre 2007 0.14
> A: Jetspeed Users List
> Oggetto: Re: [Bulk] Re: Building From source problems, and undesrtanding
> portlets
>
> I guess I'm not sure what you mean by "download or use
> /jsetspeedtraining."
> I don't know what that is but I don't think you need it.  The maven2 build
> is extremely simple:
>
> 1.) Download jetspeed-src-2.1.2.zip
> 2.) Unzip the file, resulting directory should be jetspeed-2.1.2
> 3.) copy settings.xm.sample from jetspeed-2.1.2/src/settings.xml.sample to
> ~/.m2/settings.xml
> 4.) edit ~/.m2/settings.xml (this involves entering the path to tomcat and
> database information)
> 5.) mvn install
> 6.) mvn -P tomcat
>
> What you are trying to do with the maven1 builds is generate your own
> portal.  You can also do that with the maven2 builds (much simpler).  But
> if
> you just want jetspeed.war to deploy to tomcat follow the steps above.
>
> Brice
>
>
> On 9/4/07, Mansour <ma...@yahoo.com> wrote:
> >
> > By the way, all I need to do is to have jetspeed2.war. Exactly like
> > jetspeed-1. THen I can copy it to my tomcat and import it inot eclipse,
> > customize it easily, and export it again into war.
> >
> >
> >
> > Brice Lambi wrote:
> > > You really should be using the maven2 builds:
> > >
> > > http://portals.apache.org/tutorials/jetspeed-2/
> > >
> > > Brice
> > >
> > >
> > > On 9/3/07, Mansour <ma...@yahoo.com> wrote:
> > >
> > >> Woonsan:
> > >> Thank you. I didn't try it yet, but I will, and I will post the
> > results.
> > >>
> > >>
> > >> Woonsan Ko wrote:
> > >>
> > >>> Hi Mansour,
> > >>>
> > >>> I think you met a problem with database settings.
> > >>> In my case, I use MySQL with the following database settings in
> > >>>
> > >> build.properties:
> > >>
> > >>> org.apache.jetspeed.test.database.url = jdbc:mysql://localhost/j2
> > >>> org.apache.jetspeed.test.database.driver = com.mysql.jdbc.Driver
> > >>> org.apache.jetspeed.test.database.user = j2
> > >>> org.apache.jetspeed.test.database.password = XX
> > >>>
> > >>> org.apache.jetspeed.test.jdbc.drivers.path =
> > >>> /home/woonsan/mysql-connector-java-5.0.5/mysql-
> > >>>
> > >> connector-java-5.0.5-bin.jar
> > >>
> > >>> org.apache.jetspeed.test.database.default.name = mysql
> > >>>
> > >>> org.apache.jetspeed.production.database.url =
> > jdbc:mysql://localhost/j2
> > >>> org.apache.jetspeed.production.database.driver =
> com.mysql.jdbc.Driver
> > >>> org.apache.jetspeed.production.database.user = j2
> > >>> org.apache.jetspeed.production.database.password = XX
> > >>>
> > >>> org.apache.jetspeed.production.jdbc.drivers.path =
> > >>> /home/woonsan/mysql-connector-java-5.0.5/mysql-
> > >>>
> > >> connector-java-5.0.5-bin.jar
> > >>
> > >>> org.apache.jetspeed.production.database.default.name = mysql
> > >>>
> > >>>
> > >>> Also, MySQL should be accessible at the build time! If you use the
> > >>>
> > >> default settings (e.g. HSQL
> > >>
> > >>> DB), then you should start an instance of HSQL DB first.
> > >>>
> > >>>
> > >>>
> > >>>> Therefore, jetexpress directory is the portal
> > >>>> application of jetspeed and any other directory I copy or deploy is
> a
> > >>>> portlet application (ie. j2-admin), am I right here?
> > >>>>
> > >>>>
> > >>> Yes, you're right.
> > >>>
> > >>>
> > >>> -Woonsan
> > >>>
> > >>> --- Mansour <ma...@yahoo.com> wrote:
> > >>>
> > >>>
> > >>>
> > >> ---------------------------------------------------------------------
> > >> 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
> >
> >
>
>
> Internet Email Confidentiality Footer
>
> -----------------------------------------------------------------------------------------------------
> La presente comunicazione, con le informazioni in essa contenute e ogni
> documento o file allegato, e' rivolta unicamente alla/e persona/e cui e'
> indirizzata ed alle altre da questa autorizzata/e a riceverla. Se non siete
> i destinatari/autorizzati siete avvisati che qualsiasi azione, copia,
> comunicazione, divulgazione o simili basate sul contenuto di tali
> informazioni e' vietata e potrebbe essere contro la legge (art. 616 C.P.,
> D.Lgs n. 196/2003 Codice in materia di protezione dei dati personali). Se
> avete ricevuto questa comunicazione per errore, vi preghiamo di darne
> immediata notizia al mittente e di distruggere il messaggio originale e ogni
> file allegato senza farne copia alcuna o riprodurne in alcun modo il
> contenuto.
>
> This e-mail and its attachments are intended for the addressee(s) only and
> are confidential and/or may contain legally privileged information. If you
> have received this message by mistake or are not one of the addressees
> above, you may take no action based on it, and you may not copy or show it
> to anyone; please reply to this e-mail and point out the error which has
> occurred.
>
> -----------------------------------------------------------------------------------------------------
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>

Re: [Bulk] Re: Building From source problems, and undesrtanding portlets

Posted by Mansour <ma...@yahoo.com>.
It's working now, and everything is OK.
Thank you every one.

Mansour wrote:
> Now, I an getting an exception. When I go to 
> http://localhost:8080/jetspeed, I get this :
>
> *exception*
>
> javax.servlet.ServletException: Failed to initalize jetspeed.  
> org.apache.jetspeed.exception.JetspeedException: Jetspeed 
> Initialization exception!
>     org.apache.jetspeed.engine.JetspeedServlet.doGet(JetspeedServlet.java:219) 
>
>     javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
>     javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>     org.apache.jetspeed.engine.servlet.XXSUrlAttackFilter.doFilter(XXSUrlAttackFilter.java:52) 
>
>
> *root cause*
>
> org.apache.jetspeed.exception.JetspeedException: Jetspeed 
> Initialization exception!
>     org.apache.jetspeed.engine.JetspeedEngine.start(JetspeedEngine.java:144) 
>
>     org.apache.jetspeed.engine.JetspeedServlet.init(JetspeedServlet.java:159) 
>
>     org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626) 
>
>     org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553) 
>
>     org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488) 
>
>     org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
>     org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) 
>
>     org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120) 
>
>     org.apache.catalina.startup.Catalina.start(Catalina.java:552)
>     sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
>
>     sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
>
>     java.lang.reflect.Method.invoke(Method.java:585)
>     org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
>     org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
>
> *root cause*
>
> org.springframework.beans.factory.BeanCreationException: Error 
> creating bean with name 'PlatformConfigurator' defined in 
> ServletContext resource [/WEB-INF/assembly/boot/datasource.xml]: 
> Invocation of init method failed; nested exception is 
> org.apache.ojb.broker.metadata.MetadataException: Could not get the 
> metadata from the given datasource
>     org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1175) 
>
>     org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:428) 
>
>     org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251) 
>
>     org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156) 
>
>     org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248) 
>
>     org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160) 
>
>     org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:287) 
>
>     org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352) 
>
>     org.apache.jetspeed.components.SpringComponentManager.start(SpringComponentManager.java:237) 
>
>     org.apache.jetspeed.engine.JetspeedEngine.start(JetspeedEngine.java:122) 
>
>     org.apache.jetspeed.engine.JetspeedServlet.init(JetspeedServlet.java:159) 
>
>     org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626) 
>
>     org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553) 
>
>     org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488) 
>
>     org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
>     org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) 
>
>     org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120) 
>
>     org.apache.catalina.startup.Catalina.start(Catalina.java:552)
>     sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
>
>     sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
>
>     java.lang.reflect.Method.invoke(Method.java:585)
>     org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
>     org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
>
>
>
>
> Mansour wrote:
>> It worked. I just built it with java 1.5 and it went fine (I don't 
>> understand why, if somehting works with 1.5 it should work with 1.6). 
>> Thank you everyone.
>> One question I have: I ran into a config problem because I changed 
>> the path to the tomcat/shared/lib and it generate an error during mvn 
>> -P tomcat.
>> It complained about the directory tomcat/shared/lib. The question 
>> here, shouldn't this variable exist once in the settings.xml ?
>
>
> ---------------------------------------------------------------------
> 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: [Bulk] Re: Building From source problems, and undesrtanding portlets

Posted by Mansour <ma...@yahoo.com>.
Now, I an getting an exception. When I go to 
http://localhost:8080/jetspeed, I get this :

*exception*

javax.servlet.ServletException: Failed to initalize jetspeed.  org.apache.jetspeed.exception.JetspeedException: Jetspeed Initialization exception!
	org.apache.jetspeed.engine.JetspeedServlet.doGet(JetspeedServlet.java:219)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
	org.apache.jetspeed.engine.servlet.XXSUrlAttackFilter.doFilter(XXSUrlAttackFilter.java:52)

*root cause*

org.apache.jetspeed.exception.JetspeedException: Jetspeed Initialization exception!
	org.apache.jetspeed.engine.JetspeedEngine.start(JetspeedEngine.java:144)
	org.apache.jetspeed.engine.JetspeedServlet.init(JetspeedServlet.java:159)
	org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626)
	org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
	org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
	org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
	org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
	org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
	org.apache.catalina.startup.Catalina.start(Catalina.java:552)
	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	java.lang.reflect.Method.invoke(Method.java:585)
	org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
	org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

*root cause*

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'PlatformConfigurator' defined in ServletContext resource [/WEB-INF/assembly/boot/datasource.xml]: Invocation of init method failed; nested exception is org.apache.ojb.broker.metadata.MetadataException: Could not get the metadata from the given datasource
	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1175)
	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:428)
	org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
	org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
	org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
	org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
	org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:287)
	org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
	org.apache.jetspeed.components.SpringComponentManager.start(SpringComponentManager.java:237)
	org.apache.jetspeed.engine.JetspeedEngine.start(JetspeedEngine.java:122)
	org.apache.jetspeed.engine.JetspeedServlet.init(JetspeedServlet.java:159)
	org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626)
	org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
	org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
	org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
	org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
	org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
	org.apache.catalina.startup.Catalina.start(Catalina.java:552)
	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	java.lang.reflect.Method.invoke(Method.java:585)
	org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
	org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)




Mansour wrote:
> It worked. I just built it with java 1.5 and it went fine (I don't 
> understand why, if somehting works with 1.5 it should work with 1.6). 
> Thank you everyone.
> One question I have: I ran into a config problem because I changed the 
> path to the tomcat/shared/lib and it generate an error during mvn -P 
> tomcat.
> It complained about the directory tomcat/shared/lib. The question 
> here, shouldn't this variable exist once in the settings.xml ?


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


Re: [Bulk] Re: Building From source problems, and undesrtanding portlets

Posted by Mansour <ma...@yahoo.com>.
It worked. I just built it with java 1.5 and it went fine (I don't 
understand why, if somehting works with 1.5 it should work with 1.6). 
Thank you everyone.
One question I have: I ran into a config problem because I changed the 
path to the tomcat/shared/lib and it generate an error during mvn -P tomcat.
It complained about the directory tomcat/shared/lib. The question here, 
shouldn't this variable exist once in the settings.xml ?



Mansour wrote:
> I thought the web page said 1.4+
>
> http://portals.apache.org/jetspeed-2/getting-started.html
>
>
> Nicolai_Guba@scee.net wrote:
>> Mansour <ma...@yahoo.com> wrote on 06/09/2007 23:24:10:
>>
>>  
>>> I am using java 1.6: here's the output you wanted:
>>>
>>> [mansour@mars ~]$ java -version
>>> java version "1.6.0_02"
>>>     
>>
>> Is JDK 6 supported?  I thought only up to JDK 5 was ok for the build?
>>
>>
>> **********************************************************************
>> This email and any files transmitted with it are confidential and 
>> intended solely for the use of the individual or entity to whom they 
>> are addressed. If you have received this email in error please notify 
>> postmaster@scee.net
>> This footnote also confirms that this email message has been checked
>> for all known viruses.
>> Sony Computer Entertainment Europe Limited
>> Registered Office: 10 Great Marlborough Street, London W1F 7LP, 
>> United Kingdom
>> Registered in England:3277793
>> **********************************************************************
>>
>> ---------------------------------------------------------------------
>> 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
>
>


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


Re: [Bulk] Re: Building From source problems, and undesrtanding portlets

Posted by Mansour <ma...@yahoo.com>.
I thought the web page said 1.4+

http://portals.apache.org/jetspeed-2/getting-started.html


Nicolai_Guba@scee.net wrote:
> Mansour <ma...@yahoo.com> wrote on 06/09/2007 23:24:10:
>
>   
>> I am using java 1.6: here's the output you wanted:
>>
>> [mansour@mars ~]$ java -version
>> java version "1.6.0_02"
>>     
>
> Is JDK 6 supported?  I thought only up to JDK 5 was ok for the build?
>
>
> **********************************************************************
> This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify postmaster@scee.net
> This footnote also confirms that this email message has been checked
> for all known viruses.
> Sony Computer Entertainment Europe Limited
> Registered Office: 10 Great Marlborough Street, London W1F 7LP, United Kingdom
> Registered in England:3277793
> **********************************************************************
>
> ---------------------------------------------------------------------
> 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: [Bulk] Re: Building From source problems, and undesrtanding portlets

Posted by Ni...@scee.net.
Mansour <ma...@yahoo.com> wrote on 06/09/2007 23:24:10:

> I am using java 1.6: here's the output you wanted:
> 
> [mansour@mars ~]$ java -version
> java version "1.6.0_02"

Is JDK 6 supported?  I thought only up to JDK 5 was ok for the build?


**********************************************************************
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify postmaster@scee.net
This footnote also confirms that this email message has been checked
for all known viruses.
Sony Computer Entertainment Europe Limited
Registered Office: 10 Great Marlborough Street, London W1F 7LP, United Kingdom
Registered in England:3277793
**********************************************************************

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


Re: [Bulk] Re: Building From source problems, and undesrtanding portlets

Posted by Mansour <ma...@yahoo.com>.
I am using java 1.6: here's the output you wanted:

[mansour@mars ~]$ java -version
java version "1.6.0_02"
Java(TM) SE Runtime Environment (build 1.6.0_02-b05)
Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_02-b05, mixed mode)
[mansour@mars ~]$ which java
/usr/bin/java
[mansour@mars ~]$ ll `which java`
lrwxrwxrwx 1 root root 17 2007-09-03 20:55 /usr/bin/java -> 
/opt/jdk/bin/java
[mansour@mars ~]$ env | grep JAVA_HOME
JAVA_HOME=/opt/jdk
[mansour@mars ~]$


Brice Lambi wrote:
> Could you send the output of the following commands:
>
> java -version
> which java
> env | grep JAVA_HOME
>
>
> It looks like you might be using the wrong version of jdk.  If you didn't
> take steps to setup a usable jvm then maven is probably trying to use the
> gnu jvm which will not work.  Try downloading the sun jdk 1.5+ and setting
> JAVA_HOME to point to it.  Maven uses JAVA_HOME to find the java compiler
> and virtual machine.
>
> Brice
>
>   


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


Re: [Bulk] Re: Building From source problems, and undesrtanding portlets

Posted by Brice Lambi <la...@gmail.com>.
Could you send the output of the following commands:

java -version
which java
env | grep JAVA_HOME


It looks like you might be using the wrong version of jdk.  If you didn't
take steps to setup a usable jvm then maven is probably trying to use the
gnu jvm which will not work.  Try downloading the sun jdk 1.5+ and setting
JAVA_HOME to point to it.  Maven uses JAVA_HOME to find the java compiler
and virtual machine.

Brice


On 9/6/07, Mansour <ma...@yahoo.com> wrote:
>
>
> Thank you for the fast response. It helped but I am getting different
> error now:
>
>
> hot-deploy-jar:
> [INFO] Executed tasks
> [INFO]
>
> ----------------------------------------------------------------------------
> [INFO] Building Jetspeed-2 RDBMS Components
> [INFO]    task-segment: [install]
> [INFO]
>
> ----------------------------------------------------------------------------
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:compile]
> [INFO] Compiling 13 source files to
> /home/mansour/src/jetspeed-2.1.2/src/components/rdbms/target/classes
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Compilation failure
> /home/mansour/src/jetspeed-2.1.2
> /src/components/rdbms/src/java/org/apache/jetspeed/components/rdbms/ojb/ConnectionRepositoryEntry.java:[408,12]
>
> org.apache.jetspeed.components.rdbms.ojb.ConnectionRepositoryEntry.MinimalDataSource
> is not abstract and does not override abstract method
> isWrapperFor(java.lang.Class) in java.sql.Wrapper
>
>
>
> /home/mansour/src/jetspeed-2.1.2
> /src/components/rdbms/src/java/org/apache/jetspeed/components/rdbms/ojb/ConnectionRepositoryEntry.java:[408,12]
>
> org.apache.jetspeed.components.rdbms.ojb.ConnectionRepositoryEntry.MinimalDataSource
> is not abstract and does not override abstract method
> isWrapperFor(java.lang.Class) in java.sql.Wrapper
>
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.BuildFailureException: Compilation failure
> /home/mansour/src/jetspeed-2.1.2
> /src/components/rdbms/src/java/org/apache/jetspeed/components/rdbms/ojb/ConnectionRepositoryEntry.java:[408,12]
>
> org.apache.jetspeed.components.rdbms.ojb.ConnectionRepositoryEntry.MinimalDataSource
> is not abstract and does not override abstract method
> isWrapperFor(java.lang.Class) in java.sql.Wrapper
>
>
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
> DefaultLifecycleExecutor.java:560)
>         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:597)
>         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.CompilationFailureException:
> Compilation failure
> /home/mansour/src/jetspeed-2.1.2
> /src/components/rdbms/src/java/org/apache/jetspeed/components/rdbms/ojb/ConnectionRepositoryEntry.java:[408,12]
>
> org.apache.jetspeed.components.rdbms.ojb.ConnectionRepositoryEntry.MinimalDataSource
> is not abstract and does not override abstract method
> isWrapperFor(java.lang.Class) in java.sql.Wrapper
>
>
>         at
> org.apache.maven.plugin.AbstractCompilerMojo.execute(
> AbstractCompilerMojo.java:516)
>         at
> org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:114)
>         at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(
> DefaultPluginManager.java:443)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
> DefaultLifecycleExecutor.java:539)
>         ... 16 more
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 6 minutes 53 seconds
> [INFO] Finished at: Thu Sep 06 16:27:33 ADT 2007
> [INFO] Final Memory: 44M/81M
>
>
>
>
> Brice Lambi wrote:
> > You need to switch to the directory with the pom.xml file.
> jetspeed-2.1.2
> > /src
> >
> >
> >
> > On 9/6/07, Mansour <ma...@yahoo.com> wrote:
> >
> >> Brice, I tried every single step you said, and I got an error on step
> 5:
> >>
> >>
> >> [INFO] Scanning for projects...
> >> [INFO]
> >>
> >>
> ----------------------------------------------------------------------------
> >> [INFO] Building Maven Default Project
> >> [INFO]    task-segment: [install]
> >> [INFO]
> >>
> >>
> ----------------------------------------------------------------------------
> >> [INFO]
> >>
> ------------------------------------------------------------------------
> >> [ERROR] BUILD ERROR
> >> [INFO]
> >>
> ------------------------------------------------------------------------
> >> [INFO] Cannot execute mojo: resources. It requires a project with an
> >> existing pom.xml, but the build is not using one.
> >> [INFO]
> >>
> ------------------------------------------------------------------------
> >> [INFO] For more information, run Maven with the -e switch
> >> [INFO]
> >>
> ------------------------------------------------------------------------
> >> [INFO] Total time: 1 second
> >> [INFO] Finished at: Thu Sep 06 15:43:21 ADT 2007
> >> [INFO] Final Memory: 5M/12M
> >> [INFO]
> >>
> ------------------------------------------------------------------------
> >> [mansour@mars jetspeed-2.1.2-src]$
> >>
> >> can you give me any hint ?
> >>
> >>
> >>
> >> Brice Lambi wrote:
> >>
> >>> I guess I'm not sure what you mean by "download or use
> >>>
> >> /jsetspeedtraining."
> >>
> >>> I don't know what that is but I don't think you need it.  The maven2
> >>>
> >> build
> >>
> >>> is extremely simple:
> >>>
> >>> 1.) Download jetspeed-src-2.1.2.zip
> >>> 2.) Unzip the file, resulting directory should be jetspeed-2.1.2
> >>> 3.) copy settings.xm.sample from jetspeed-2.1.2
> /src/settings.xml.sample
> >>>
> >> to
> >>
> >>> ~/.m2/settings.xml
> >>> 4.) edit ~/.m2/settings.xml (this involves entering the path to tomcat
> >>>
> >> and
> >>
> >>> database information)
> >>> 5.) mvn install
> >>> 6.) mvn -P tomcat
> >>>
> >>> What you are trying to do with the maven1 builds is generate your own
> >>> portal.  You can also do that with the maven2 builds (much
> >>>
> >> simpler).  But if
> >>
> >>> you just want jetspeed.war to deploy to tomcat follow the steps above.
> >>>
> >>> Brice
> >>>
> >>>
> >>>
> >> ---------------------------------------------------------------------
> >> 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: [Bulk] Re: Building From source problems, and undesrtanding portlets

Posted by Mansour <ma...@yahoo.com>.
Thank you for the fast response. It helped but I am getting different 
error now:


hot-deploy-jar:
[INFO] Executed tasks
[INFO] 
----------------------------------------------------------------------------
[INFO] Building Jetspeed-2 RDBMS Components
[INFO]    task-segment: [install]
[INFO] 
----------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Compiling 13 source files to 
/home/mansour/src/jetspeed-2.1.2/src/components/rdbms/target/classes
[INFO] 
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] 
------------------------------------------------------------------------
[INFO] Compilation failure
/home/mansour/src/jetspeed-2.1.2/src/components/rdbms/src/java/org/apache/jetspeed/components/rdbms/ojb/ConnectionRepositoryEntry.java:[408,12] 
org.apache.jetspeed.components.rdbms.ojb.ConnectionRepositoryEntry.MinimalDataSource 
is not abstract and does not override abstract method 
isWrapperFor(java.lang.Class) in java.sql.Wrapper



/home/mansour/src/jetspeed-2.1.2/src/components/rdbms/src/java/org/apache/jetspeed/components/rdbms/ojb/ConnectionRepositoryEntry.java:[408,12] 
org.apache.jetspeed.components.rdbms.ojb.ConnectionRepositoryEntry.MinimalDataSource 
is not abstract and does not override abstract method 
isWrapperFor(java.lang.Class) in java.sql.Wrapper


[INFO] 
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.BuildFailureException: Compilation failure
/home/mansour/src/jetspeed-2.1.2/src/components/rdbms/src/java/org/apache/jetspeed/components/rdbms/ojb/ConnectionRepositoryEntry.java:[408,12] 
org.apache.jetspeed.components.rdbms.ojb.ConnectionRepositoryEntry.MinimalDataSource 
is not abstract and does not override abstract method 
isWrapperFor(java.lang.Class) in java.sql.Wrapper


        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:560)
        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:597)
        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.CompilationFailureException: 
Compilation failure
/home/mansour/src/jetspeed-2.1.2/src/components/rdbms/src/java/org/apache/jetspeed/components/rdbms/ojb/ConnectionRepositoryEntry.java:[408,12] 
org.apache.jetspeed.components.rdbms.ojb.ConnectionRepositoryEntry.MinimalDataSource 
is not abstract and does not override abstract method 
isWrapperFor(java.lang.Class) in java.sql.Wrapper


        at 
org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:516)
        at 
org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:114)
        at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
        ... 16 more
[INFO] 
------------------------------------------------------------------------
[INFO] Total time: 6 minutes 53 seconds
[INFO] Finished at: Thu Sep 06 16:27:33 ADT 2007
[INFO] Final Memory: 44M/81M




Brice Lambi wrote:
> You need to switch to the directory with the pom.xml file.  jetspeed-2.1.2
> /src
>
>
>
> On 9/6/07, Mansour <ma...@yahoo.com> wrote:
>   
>> Brice, I tried every single step you said, and I got an error on step 5:
>>
>>
>> [INFO] Scanning for projects...
>> [INFO]
>>
>> ----------------------------------------------------------------------------
>> [INFO] Building Maven Default Project
>> [INFO]    task-segment: [install]
>> [INFO]
>>
>> ----------------------------------------------------------------------------
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] BUILD ERROR
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Cannot execute mojo: resources. It requires a project with an
>> existing pom.xml, but the build is not using one.
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] For more information, run Maven with the -e switch
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Total time: 1 second
>> [INFO] Finished at: Thu Sep 06 15:43:21 ADT 2007
>> [INFO] Final Memory: 5M/12M
>> [INFO]
>> ------------------------------------------------------------------------
>> [mansour@mars jetspeed-2.1.2-src]$
>>
>> can you give me any hint ?
>>
>>
>>
>> Brice Lambi wrote:
>>     
>>> I guess I'm not sure what you mean by "download or use
>>>       
>> /jsetspeedtraining."
>>     
>>> I don't know what that is but I don't think you need it.  The maven2
>>>       
>> build
>>     
>>> is extremely simple:
>>>
>>> 1.) Download jetspeed-src-2.1.2.zip
>>> 2.) Unzip the file, resulting directory should be jetspeed-2.1.2
>>> 3.) copy settings.xm.sample from jetspeed-2.1.2/src/settings.xml.sample
>>>       
>> to
>>     
>>> ~/.m2/settings.xml
>>> 4.) edit ~/.m2/settings.xml (this involves entering the path to tomcat
>>>       
>> and
>>     
>>> database information)
>>> 5.) mvn install
>>> 6.) mvn -P tomcat
>>>
>>> What you are trying to do with the maven1 builds is generate your own
>>> portal.  You can also do that with the maven2 builds (much
>>>       
>> simpler).  But if
>>     
>>> you just want jetspeed.war to deploy to tomcat follow the steps above.
>>>
>>> Brice
>>>
>>>
>>>       
>> ---------------------------------------------------------------------
>> 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: [Bulk] Re: Building From source problems, and undesrtanding portlets

Posted by Brice Lambi <la...@gmail.com>.
You need to switch to the directory with the pom.xml file.  jetspeed-2.1.2
/src



On 9/6/07, Mansour <ma...@yahoo.com> wrote:
>
> Brice, I tried every single step you said, and I got an error on step 5:
>
>
> [INFO] Scanning for projects...
> [INFO]
>
> ----------------------------------------------------------------------------
> [INFO] Building Maven Default Project
> [INFO]    task-segment: [install]
> [INFO]
>
> ----------------------------------------------------------------------------
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Cannot execute mojo: resources. It requires a project with an
> existing pom.xml, but the build is not using one.
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 1 second
> [INFO] Finished at: Thu Sep 06 15:43:21 ADT 2007
> [INFO] Final Memory: 5M/12M
> [INFO]
> ------------------------------------------------------------------------
> [mansour@mars jetspeed-2.1.2-src]$
>
> can you give me any hint ?
>
>
>
> Brice Lambi wrote:
> > I guess I'm not sure what you mean by "download or use
> /jsetspeedtraining."
> > I don't know what that is but I don't think you need it.  The maven2
> build
> > is extremely simple:
> >
> > 1.) Download jetspeed-src-2.1.2.zip
> > 2.) Unzip the file, resulting directory should be jetspeed-2.1.2
> > 3.) copy settings.xm.sample from jetspeed-2.1.2/src/settings.xml.sample
> to
> > ~/.m2/settings.xml
> > 4.) edit ~/.m2/settings.xml (this involves entering the path to tomcat
> and
> > database information)
> > 5.) mvn install
> > 6.) mvn -P tomcat
> >
> > What you are trying to do with the maven1 builds is generate your own
> > portal.  You can also do that with the maven2 builds (much
> simpler).  But if
> > you just want jetspeed.war to deploy to tomcat follow the steps above.
> >
> > Brice
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>

Re: [Bulk] Re: Building From source problems, and undesrtanding portlets

Posted by Mansour <ma...@yahoo.com>.
Brice, I tried every single step you said, and I got an error on step 5:


[INFO] Scanning for projects...
[INFO] 
----------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO]    task-segment: [install]
[INFO] 
----------------------------------------------------------------------------
[INFO] 
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] 
------------------------------------------------------------------------
[INFO] Cannot execute mojo: resources. It requires a project with an 
existing pom.xml, but the build is not using one.
[INFO] 
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] 
------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Thu Sep 06 15:43:21 ADT 2007
[INFO] Final Memory: 5M/12M
[INFO] 
------------------------------------------------------------------------
[mansour@mars jetspeed-2.1.2-src]$

can you give me any hint ?



Brice Lambi wrote:
> I guess I'm not sure what you mean by "download or use /jsetspeedtraining."
> I don't know what that is but I don't think you need it.  The maven2 build
> is extremely simple:
>
> 1.) Download jetspeed-src-2.1.2.zip
> 2.) Unzip the file, resulting directory should be jetspeed-2.1.2
> 3.) copy settings.xm.sample from jetspeed-2.1.2/src/settings.xml.sample to
> ~/.m2/settings.xml
> 4.) edit ~/.m2/settings.xml (this involves entering the path to tomcat and
> database information)
> 5.) mvn install
> 6.) mvn -P tomcat
>
> What you are trying to do with the maven1 builds is generate your own
> portal.  You can also do that with the maven2 builds (much simpler).  But if
> you just want jetspeed.war to deploy to tomcat follow the steps above.
>
> Brice
>
>   


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


R: [Bulk] Re: Building From source problems, and understanding portlets

Posted by Scandelli Francesco <Fr...@italtel.it>.
Thanks for the quick reply. Anyway, after having further analyzed the output of 'mvn -P tomcat' I discovered that maven stopped because it couldn't find some dependencies:

commons-betwixt/commons-betwixt/0.8 
commons-codec/commons-codec/1.2 
log4j/log4j/1.2.12 
log4j/log4j/1.2.8

As workaround I downloaded from the internet those projects and put them in ~/.m2/repository and finally everything worked fine!

Cheers
Francesco 

-----Messaggio originale-----
Da: Mohan K [mailto:kmoh.raj@gmail.com] 
Inviato: mercoledì 5 settembre 2007 17.50
A: 'Jetspeed Users List'
Oggetto: RE: [Bulk] Re: Building From source problems, and understanding portlets

For some reason, I didn't have much time to figure this out. The current
Maven-2 source build by default tries to setup the initial database. So make
sure in your settings.xml, the tomcat server home settings are available.
And I believe the default is "derby-embedded", make sure the the jar (as in
the profile element for derby in the settings.xml) is available in your
<tomcat-server-home>/shared/lib (also specified in settings.xml).
Cheers
mohan

-----Original Message-----
From: Scandelli Francesco [mailto:Francesco.Scandelli@italtel.it] 
Sent: Wednesday, September 05, 2007 8:22 AM
To: Jetspeed Users List
Subject: R: [Bulk] Re: Building From source problems, and undesrtanding
portlets

Hi

I followed the steps you described for deploying jetspeed.war but I obtain
the following error running 'mvn -P tomcat':

[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error executing ant tasks

Embedded error: The following error occurred while executing this line:
/home/cappelc/jetspeedSCAND/jetspeed-2.1.2/src/etc/build.xml:301: The
following
error occurred while executing this line:
/home/cappelc/jetspeedSCAND/jetspeed-2.1.2/src/etc/build.xml:306: The
following
error occurred while executing this line:
/home/cappelc/jetspeedSCAND/jetspeed-2.1.2/src/etc/build.xml:500:
java.lang.Clas
sCastException: 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)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:459)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:311)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:278)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.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(DelegatingMethodAcces
sorImpl.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 t
asks
        at
org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractA
ntMojo.java:114)
        at
org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:83)
        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:443)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:539)
        ... 16 more
Caused by: The following error occurred while executing this line:
/home/cappelc/jetspeedSCAND/jetspeed-2.1.2/src/etc/build.xml:301: The
following
error occurred while executing this line:
/home/cappelc/jetspeedSCAND/jetspeed-2.1.2/src/etc/build.xml:306: The
following
error occurred while executing this line:
/home/cappelc/jetspeedSCAND/jetspeed-2.1.2/src/etc/build.xml:500:
java.lang.Clas
sCastException: org.apache.maven.usability.MojoFailureExceptionDiagnoser
        at
org.apache.tools.ant.ProjectHelper.addLocationToBuildException(Projec
tHelper.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(AbstractA
ntMojo.java:108)
        ... 19 more
Caused by: /home/cappelc/jetspeedSCAND/jetspeed-2.1.2/src/etc/build.xml:301:
The
 following error occurred while executing this line:
/home/cappelc/jetspeedSCAND/jetspeed-2.1.2/src/etc/build.xml:306: The
following
error occurred while executing this line:
/home/cappelc/jetspeedSCAND/jetspeed-2.1.2/src/etc/build.xml:500:
java.lang.Clas
sCastException: org.apache.maven.usability.MojoFailureExceptionDiagnoser
        at
org.apache.tools.ant.ProjectHelper.addLocationToBuildException(Projec
tHelper.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(Single
CheckExecutor.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: /home/cappelc/jetspeedSCAND/jetspeed-2.1.2/src/etc/build.xml:306:
The
 following error occurred while executing this line:
/home/cappelc/jetspeedSCAND/jetspeed-2.1.2/src/etc/build.xml:500:
java.lang.Clas
sCastException: org.apache.maven.usability.MojoFailureExceptionDiagnoser
        at
org.apache.tools.ant.ProjectHelper.addLocationToBuildException(Projec
tHelper.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(Single
CheckExecutor.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: /home/cappelc/jetspeedSCAND/jetspeed-2.1.2/src/etc/build.xml:500:
jav
a.lang.ClassCastException:
org.apache.maven.usability.MojoFailureExceptionDiagno
ser
        at org.apache.tools.ant.Task.perform(Task.java:373)
        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(Single
CheckExecutor.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
Caused by: java.lang.ClassCastException:
org.apache.maven.usability.MojoFailureE
xceptionDiagnoser
        at
org.apache.maven.usability.diagnostics.ErrorDiagnostics.diagnose(Erro
rDiagnostics.java:75)
        at
org.apache.maven.artifact.ant.AbstractArtifactTask.diagnoseError(Abst
ractArtifactTask.java:382)
        at
org.apache.maven.artifact.ant.AbstractArtifactTask.execute(AbstractAr
tifactTask.java:455)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        ... 47 more

Any idea about what is going wrong?

Thanks
Francesco

-----Messaggio originale-----
Da: Brice Lambi [mailto:lambi.brice@gmail.com] 
Inviato: mercoledì 5 settembre 2007 0.14
A: Jetspeed Users List
Oggetto: Re: [Bulk] Re: Building From source problems, and undesrtanding
portlets

I guess I'm not sure what you mean by "download or use /jsetspeedtraining."
I don't know what that is but I don't think you need it.  The maven2 build
is extremely simple:

1.) Download jetspeed-src-2.1.2.zip
2.) Unzip the file, resulting directory should be jetspeed-2.1.2
3.) copy settings.xm.sample from jetspeed-2.1.2/src/settings.xml.sample to
~/.m2/settings.xml
4.) edit ~/.m2/settings.xml (this involves entering the path to tomcat and
database information)
5.) mvn install
6.) mvn -P tomcat

What you are trying to do with the maven1 builds is generate your own
portal.  You can also do that with the maven2 builds (much simpler).  But if
you just want jetspeed.war to deploy to tomcat follow the steps above.

Brice


On 9/4/07, Mansour <ma...@yahoo.com> wrote:
>
> By the way, all I need to do is to have jetspeed2.war. Exactly like
> jetspeed-1. THen I can copy it to my tomcat and import it inot eclipse,
> customize it easily, and export it again into war.
>
>
>
> Brice Lambi wrote:
> > You really should be using the maven2 builds:
> >
> > http://portals.apache.org/tutorials/jetspeed-2/
> >
> > Brice
> >
> >
> > On 9/3/07, Mansour <ma...@yahoo.com> wrote:
> >
> >> Woonsan:
> >> Thank you. I didn't try it yet, but I will, and I will post the
> results.
> >>
> >>
> >> Woonsan Ko wrote:
> >>
> >>> Hi Mansour,
> >>>
> >>> I think you met a problem with database settings.
> >>> In my case, I use MySQL with the following database settings in
> >>>
> >> build.properties:
> >>
> >>> org.apache.jetspeed.test.database.url = jdbc:mysql://localhost/j2
> >>> org.apache.jetspeed.test.database.driver = com.mysql.jdbc.Driver
> >>> org.apache.jetspeed.test.database.user = j2
> >>> org.apache.jetspeed.test.database.password = XX
> >>>
> >>> org.apache.jetspeed.test.jdbc.drivers.path =
> >>> /home/woonsan/mysql-connector-java-5.0.5/mysql-
> >>>
> >> connector-java-5.0.5-bin.jar
> >>
> >>> org.apache.jetspeed.test.database.default.name = mysql
> >>>
> >>> org.apache.jetspeed.production.database.url =
> jdbc:mysql://localhost/j2
> >>> org.apache.jetspeed.production.database.driver = com.mysql.jdbc.Driver
> >>> org.apache.jetspeed.production.database.user = j2
> >>> org.apache.jetspeed.production.database.password = XX
> >>>
> >>> org.apache.jetspeed.production.jdbc.drivers.path =
> >>> /home/woonsan/mysql-connector-java-5.0.5/mysql-
> >>>
> >> connector-java-5.0.5-bin.jar
> >>
> >>> org.apache.jetspeed.production.database.default.name = mysql
> >>>
> >>>
> >>> Also, MySQL should be accessible at the build time! If you use the
> >>>
> >> default settings (e.g. HSQL
> >>
> >>> DB), then you should start an instance of HSQL DB first.
> >>>
> >>>
> >>>
> >>>> Therefore, jetexpress directory is the portal
> >>>> application of jetspeed and any other directory I copy or deploy is a
> >>>> portlet application (ie. j2-admin), am I right here?
> >>>>
> >>>>
> >>> Yes, you're right.
> >>>
> >>>
> >>> -Woonsan
> >>>
> >>> --- Mansour <ma...@yahoo.com> wrote:
> >>>
> >>>
> >>>
> >> ---------------------------------------------------------------------
> >> 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
>
>


Internet Email Confidentiality Footer
----------------------------------------------------------------------------
-------------------------
La presente comunicazione, con le informazioni in essa contenute e ogni
documento o file allegato, e' rivolta unicamente alla/e persona/e cui e'
indirizzata ed alle altre da questa autorizzata/e a riceverla. Se non siete
i destinatari/autorizzati siete avvisati che qualsiasi azione, copia,
comunicazione, divulgazione o simili basate sul contenuto di tali
informazioni e' vietata e potrebbe essere contro la legge (art. 616 C.P.,
D.Lgs n. 196/2003 Codice in materia di protezione dei dati personali). Se
avete ricevuto questa comunicazione per errore, vi preghiamo di darne
immediata notizia al mittente e di distruggere il messaggio originale e ogni
file allegato senza farne copia alcuna o riprodurne in alcun modo il
contenuto. 

This e-mail and its attachments are intended for the addressee(s) only and
are confidential and/or may contain legally privileged information. If you
have received this message by mistake or are not one of the addressees
above, you may take no action based on it, and you may not copy or show it
to anyone; please reply to this e-mail and point out the error which has
occurred. 
----------------------------------------------------------------------------
-------------------------


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


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


RE: [Bulk] Re: Building From source problems, and understanding portlets

Posted by Mohan K <km...@gmail.com>.
For some reason, I didn't have much time to figure this out. The current
Maven-2 source build by default tries to setup the initial database. So make
sure in your settings.xml, the tomcat server home settings are available.
And I believe the default is "derby-embedded", make sure the the jar (as in
the profile element for derby in the settings.xml) is available in your
<tomcat-server-home>/shared/lib (also specified in settings.xml).
Cheers
mohan

-----Original Message-----
From: Scandelli Francesco [mailto:Francesco.Scandelli@italtel.it] 
Sent: Wednesday, September 05, 2007 8:22 AM
To: Jetspeed Users List
Subject: R: [Bulk] Re: Building From source problems, and undesrtanding
portlets

Hi

I followed the steps you described for deploying jetspeed.war but I obtain
the following error running 'mvn -P tomcat':

[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error executing ant tasks

Embedded error: The following error occurred while executing this line:
/home/cappelc/jetspeedSCAND/jetspeed-2.1.2/src/etc/build.xml:301: The
following
error occurred while executing this line:
/home/cappelc/jetspeedSCAND/jetspeed-2.1.2/src/etc/build.xml:306: The
following
error occurred while executing this line:
/home/cappelc/jetspeedSCAND/jetspeed-2.1.2/src/etc/build.xml:500:
java.lang.Clas
sCastException: 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)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:459)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:311)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:278)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.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(DelegatingMethodAcces
sorImpl.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 t
asks
        at
org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractA
ntMojo.java:114)
        at
org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:83)
        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:443)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:539)
        ... 16 more
Caused by: The following error occurred while executing this line:
/home/cappelc/jetspeedSCAND/jetspeed-2.1.2/src/etc/build.xml:301: The
following
error occurred while executing this line:
/home/cappelc/jetspeedSCAND/jetspeed-2.1.2/src/etc/build.xml:306: The
following
error occurred while executing this line:
/home/cappelc/jetspeedSCAND/jetspeed-2.1.2/src/etc/build.xml:500:
java.lang.Clas
sCastException: org.apache.maven.usability.MojoFailureExceptionDiagnoser
        at
org.apache.tools.ant.ProjectHelper.addLocationToBuildException(Projec
tHelper.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(AbstractA
ntMojo.java:108)
        ... 19 more
Caused by: /home/cappelc/jetspeedSCAND/jetspeed-2.1.2/src/etc/build.xml:301:
The
 following error occurred while executing this line:
/home/cappelc/jetspeedSCAND/jetspeed-2.1.2/src/etc/build.xml:306: The
following
error occurred while executing this line:
/home/cappelc/jetspeedSCAND/jetspeed-2.1.2/src/etc/build.xml:500:
java.lang.Clas
sCastException: org.apache.maven.usability.MojoFailureExceptionDiagnoser
        at
org.apache.tools.ant.ProjectHelper.addLocationToBuildException(Projec
tHelper.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(Single
CheckExecutor.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: /home/cappelc/jetspeedSCAND/jetspeed-2.1.2/src/etc/build.xml:306:
The
 following error occurred while executing this line:
/home/cappelc/jetspeedSCAND/jetspeed-2.1.2/src/etc/build.xml:500:
java.lang.Clas
sCastException: org.apache.maven.usability.MojoFailureExceptionDiagnoser
        at
org.apache.tools.ant.ProjectHelper.addLocationToBuildException(Projec
tHelper.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(Single
CheckExecutor.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: /home/cappelc/jetspeedSCAND/jetspeed-2.1.2/src/etc/build.xml:500:
jav
a.lang.ClassCastException:
org.apache.maven.usability.MojoFailureExceptionDiagno
ser
        at org.apache.tools.ant.Task.perform(Task.java:373)
        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(Single
CheckExecutor.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
Caused by: java.lang.ClassCastException:
org.apache.maven.usability.MojoFailureE
xceptionDiagnoser
        at
org.apache.maven.usability.diagnostics.ErrorDiagnostics.diagnose(Erro
rDiagnostics.java:75)
        at
org.apache.maven.artifact.ant.AbstractArtifactTask.diagnoseError(Abst
ractArtifactTask.java:382)
        at
org.apache.maven.artifact.ant.AbstractArtifactTask.execute(AbstractAr
tifactTask.java:455)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        ... 47 more

Any idea about what is going wrong?

Thanks
Francesco

-----Messaggio originale-----
Da: Brice Lambi [mailto:lambi.brice@gmail.com] 
Inviato: mercoledì 5 settembre 2007 0.14
A: Jetspeed Users List
Oggetto: Re: [Bulk] Re: Building From source problems, and undesrtanding
portlets

I guess I'm not sure what you mean by "download or use /jsetspeedtraining."
I don't know what that is but I don't think you need it.  The maven2 build
is extremely simple:

1.) Download jetspeed-src-2.1.2.zip
2.) Unzip the file, resulting directory should be jetspeed-2.1.2
3.) copy settings.xm.sample from jetspeed-2.1.2/src/settings.xml.sample to
~/.m2/settings.xml
4.) edit ~/.m2/settings.xml (this involves entering the path to tomcat and
database information)
5.) mvn install
6.) mvn -P tomcat

What you are trying to do with the maven1 builds is generate your own
portal.  You can also do that with the maven2 builds (much simpler).  But if
you just want jetspeed.war to deploy to tomcat follow the steps above.

Brice


On 9/4/07, Mansour <ma...@yahoo.com> wrote:
>
> By the way, all I need to do is to have jetspeed2.war. Exactly like
> jetspeed-1. THen I can copy it to my tomcat and import it inot eclipse,
> customize it easily, and export it again into war.
>
>
>
> Brice Lambi wrote:
> > You really should be using the maven2 builds:
> >
> > http://portals.apache.org/tutorials/jetspeed-2/
> >
> > Brice
> >
> >
> > On 9/3/07, Mansour <ma...@yahoo.com> wrote:
> >
> >> Woonsan:
> >> Thank you. I didn't try it yet, but I will, and I will post the
> results.
> >>
> >>
> >> Woonsan Ko wrote:
> >>
> >>> Hi Mansour,
> >>>
> >>> I think you met a problem with database settings.
> >>> In my case, I use MySQL with the following database settings in
> >>>
> >> build.properties:
> >>
> >>> org.apache.jetspeed.test.database.url = jdbc:mysql://localhost/j2
> >>> org.apache.jetspeed.test.database.driver = com.mysql.jdbc.Driver
> >>> org.apache.jetspeed.test.database.user = j2
> >>> org.apache.jetspeed.test.database.password = XX
> >>>
> >>> org.apache.jetspeed.test.jdbc.drivers.path =
> >>> /home/woonsan/mysql-connector-java-5.0.5/mysql-
> >>>
> >> connector-java-5.0.5-bin.jar
> >>
> >>> org.apache.jetspeed.test.database.default.name = mysql
> >>>
> >>> org.apache.jetspeed.production.database.url =
> jdbc:mysql://localhost/j2
> >>> org.apache.jetspeed.production.database.driver = com.mysql.jdbc.Driver
> >>> org.apache.jetspeed.production.database.user = j2
> >>> org.apache.jetspeed.production.database.password = XX
> >>>
> >>> org.apache.jetspeed.production.jdbc.drivers.path =
> >>> /home/woonsan/mysql-connector-java-5.0.5/mysql-
> >>>
> >> connector-java-5.0.5-bin.jar
> >>
> >>> org.apache.jetspeed.production.database.default.name = mysql
> >>>
> >>>
> >>> Also, MySQL should be accessible at the build time! If you use the
> >>>
> >> default settings (e.g. HSQL
> >>
> >>> DB), then you should start an instance of HSQL DB first.
> >>>
> >>>
> >>>
> >>>> Therefore, jetexpress directory is the portal
> >>>> application of jetspeed and any other directory I copy or deploy is a
> >>>> portlet application (ie. j2-admin), am I right here?
> >>>>
> >>>>
> >>> Yes, you're right.
> >>>
> >>>
> >>> -Woonsan
> >>>
> >>> --- Mansour <ma...@yahoo.com> wrote:
> >>>
> >>>
> >>>
> >> ---------------------------------------------------------------------
> >> 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
>
>


Internet Email Confidentiality Footer
----------------------------------------------------------------------------
-------------------------
La presente comunicazione, con le informazioni in essa contenute e ogni
documento o file allegato, e' rivolta unicamente alla/e persona/e cui e'
indirizzata ed alle altre da questa autorizzata/e a riceverla. Se non siete
i destinatari/autorizzati siete avvisati che qualsiasi azione, copia,
comunicazione, divulgazione o simili basate sul contenuto di tali
informazioni e' vietata e potrebbe essere contro la legge (art. 616 C.P.,
D.Lgs n. 196/2003 Codice in materia di protezione dei dati personali). Se
avete ricevuto questa comunicazione per errore, vi preghiamo di darne
immediata notizia al mittente e di distruggere il messaggio originale e ogni
file allegato senza farne copia alcuna o riprodurne in alcun modo il
contenuto. 

This e-mail and its attachments are intended for the addressee(s) only and
are confidential and/or may contain legally privileged information. If you
have received this message by mistake or are not one of the addressees
above, you may take no action based on it, and you may not copy or show it
to anyone; please reply to this e-mail and point out the error which has
occurred. 
----------------------------------------------------------------------------
-------------------------


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


R: [Bulk] Re: Building From source problems, and undesrtanding portlets

Posted by Scandelli Francesco <Fr...@italtel.it>.
Hi

I followed the steps you described for deploying jetspeed.war but I obtain the following error running 'mvn -P tomcat':

[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error executing ant tasks

Embedded error: The following error occurred while executing this line:
/home/cappelc/jetspeedSCAND/jetspeed-2.1.2/src/etc/build.xml:301: The following
error occurred while executing this line:
/home/cappelc/jetspeedSCAND/jetspeed-2.1.2/src/etc/build.xml:306: The following
error occurred while executing this line:
/home/cappelc/jetspeedSCAND/jetspeed-2.1.2/src/etc/build.xml:500: java.lang.Clas
sCastException: 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)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:459)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:311)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:278)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.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(DelegatingMethodAcces
sorImpl.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 t
asks
        at org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractA
ntMojo.java:114)
        at org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:83)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:443)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:539)
        ... 16 more
Caused by: The following error occurred while executing this line:
/home/cappelc/jetspeedSCAND/jetspeed-2.1.2/src/etc/build.xml:301: The following
error occurred while executing this line:
/home/cappelc/jetspeedSCAND/jetspeed-2.1.2/src/etc/build.xml:306: The following
error occurred while executing this line:
/home/cappelc/jetspeedSCAND/jetspeed-2.1.2/src/etc/build.xml:500: java.lang.Clas
sCastException: org.apache.maven.usability.MojoFailureExceptionDiagnoser
        at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(Projec
tHelper.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(AbstractA
ntMojo.java:108)
        ... 19 more
Caused by: /home/cappelc/jetspeedSCAND/jetspeed-2.1.2/src/etc/build.xml:301: The
 following error occurred while executing this line:
/home/cappelc/jetspeedSCAND/jetspeed-2.1.2/src/etc/build.xml:306: The following
error occurred while executing this line:
/home/cappelc/jetspeedSCAND/jetspeed-2.1.2/src/etc/build.xml:500: java.lang.Clas
sCastException: org.apache.maven.usability.MojoFailureExceptionDiagnoser
        at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(Projec
tHelper.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(Single
CheckExecutor.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: /home/cappelc/jetspeedSCAND/jetspeed-2.1.2/src/etc/build.xml:306: The
 following error occurred while executing this line:
/home/cappelc/jetspeedSCAND/jetspeed-2.1.2/src/etc/build.xml:500: java.lang.Clas
sCastException: org.apache.maven.usability.MojoFailureExceptionDiagnoser
        at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(Projec
tHelper.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(Single
CheckExecutor.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: /home/cappelc/jetspeedSCAND/jetspeed-2.1.2/src/etc/build.xml:500: jav
a.lang.ClassCastException: org.apache.maven.usability.MojoFailureExceptionDiagno
ser
        at org.apache.tools.ant.Task.perform(Task.java:373)
        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(Single
CheckExecutor.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
Caused by: java.lang.ClassCastException: org.apache.maven.usability.MojoFailureE
xceptionDiagnoser
        at org.apache.maven.usability.diagnostics.ErrorDiagnostics.diagnose(Erro
rDiagnostics.java:75)
        at org.apache.maven.artifact.ant.AbstractArtifactTask.diagnoseError(Abst
ractArtifactTask.java:382)
        at org.apache.maven.artifact.ant.AbstractArtifactTask.execute(AbstractAr
tifactTask.java:455)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        ... 47 more

Any idea about what is going wrong?

Thanks
Francesco

-----Messaggio originale-----
Da: Brice Lambi [mailto:lambi.brice@gmail.com] 
Inviato: mercoledì 5 settembre 2007 0.14
A: Jetspeed Users List
Oggetto: Re: [Bulk] Re: Building From source problems, and undesrtanding portlets

I guess I'm not sure what you mean by "download or use /jsetspeedtraining."
I don't know what that is but I don't think you need it.  The maven2 build
is extremely simple:

1.) Download jetspeed-src-2.1.2.zip
2.) Unzip the file, resulting directory should be jetspeed-2.1.2
3.) copy settings.xm.sample from jetspeed-2.1.2/src/settings.xml.sample to
~/.m2/settings.xml
4.) edit ~/.m2/settings.xml (this involves entering the path to tomcat and
database information)
5.) mvn install
6.) mvn -P tomcat

What you are trying to do with the maven1 builds is generate your own
portal.  You can also do that with the maven2 builds (much simpler).  But if
you just want jetspeed.war to deploy to tomcat follow the steps above.

Brice


On 9/4/07, Mansour <ma...@yahoo.com> wrote:
>
> By the way, all I need to do is to have jetspeed2.war. Exactly like
> jetspeed-1. THen I can copy it to my tomcat and import it inot eclipse,
> customize it easily, and export it again into war.
>
>
>
> Brice Lambi wrote:
> > You really should be using the maven2 builds:
> >
> > http://portals.apache.org/tutorials/jetspeed-2/
> >
> > Brice
> >
> >
> > On 9/3/07, Mansour <ma...@yahoo.com> wrote:
> >
> >> Woonsan:
> >> Thank you. I didn't try it yet, but I will, and I will post the
> results.
> >>
> >>
> >> Woonsan Ko wrote:
> >>
> >>> Hi Mansour,
> >>>
> >>> I think you met a problem with database settings.
> >>> In my case, I use MySQL with the following database settings in
> >>>
> >> build.properties:
> >>
> >>> org.apache.jetspeed.test.database.url = jdbc:mysql://localhost/j2
> >>> org.apache.jetspeed.test.database.driver = com.mysql.jdbc.Driver
> >>> org.apache.jetspeed.test.database.user = j2
> >>> org.apache.jetspeed.test.database.password = XX
> >>>
> >>> org.apache.jetspeed.test.jdbc.drivers.path =
> >>> /home/woonsan/mysql-connector-java-5.0.5/mysql-
> >>>
> >> connector-java-5.0.5-bin.jar
> >>
> >>> org.apache.jetspeed.test.database.default.name = mysql
> >>>
> >>> org.apache.jetspeed.production.database.url =
> jdbc:mysql://localhost/j2
> >>> org.apache.jetspeed.production.database.driver = com.mysql.jdbc.Driver
> >>> org.apache.jetspeed.production.database.user = j2
> >>> org.apache.jetspeed.production.database.password = XX
> >>>
> >>> org.apache.jetspeed.production.jdbc.drivers.path =
> >>> /home/woonsan/mysql-connector-java-5.0.5/mysql-
> >>>
> >> connector-java-5.0.5-bin.jar
> >>
> >>> org.apache.jetspeed.production.database.default.name = mysql
> >>>
> >>>
> >>> Also, MySQL should be accessible at the build time! If you use the
> >>>
> >> default settings (e.g. HSQL
> >>
> >>> DB), then you should start an instance of HSQL DB first.
> >>>
> >>>
> >>>
> >>>> Therefore, jetexpress directory is the portal
> >>>> application of jetspeed and any other directory I copy or deploy is a
> >>>> portlet application (ie. j2-admin), am I right here?
> >>>>
> >>>>
> >>> Yes, you're right.
> >>>
> >>>
> >>> -Woonsan
> >>>
> >>> --- Mansour <ma...@yahoo.com> wrote:
> >>>
> >>>
> >>>
> >> ---------------------------------------------------------------------
> >> 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
>
>


Internet Email Confidentiality Footer
-----------------------------------------------------------------------------------------------------
La presente comunicazione, con le informazioni in essa contenute e ogni documento o file allegato, e' rivolta unicamente alla/e persona/e cui e' indirizzata ed alle altre da questa autorizzata/e a riceverla. Se non siete i destinatari/autorizzati siete avvisati che qualsiasi azione, copia, comunicazione, divulgazione o simili basate sul contenuto di tali informazioni e' vietata e potrebbe essere contro la legge (art. 616 C.P., D.Lgs n. 196/2003 Codice in materia di protezione dei dati personali). Se avete ricevuto questa comunicazione per errore, vi preghiamo di darne immediata notizia al mittente e di distruggere il messaggio originale e ogni file allegato senza farne copia alcuna o riprodurne in alcun modo il contenuto. 

This e-mail and its attachments are intended for the addressee(s) only and are confidential and/or may contain legally privileged information. If you have received this message by mistake or are not one of the addressees above, you may take no action based on it, and you may not copy or show it to anyone; please reply to this e-mail and point out the error which has occurred. 
-----------------------------------------------------------------------------------------------------


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


Re: [Bulk] Re: Building From source problems, and undesrtanding portlets

Posted by Brice Lambi <la...@gmail.com>.
I guess I'm not sure what you mean by "download or use /jsetspeedtraining."
I don't know what that is but I don't think you need it.  The maven2 build
is extremely simple:

1.) Download jetspeed-src-2.1.2.zip
2.) Unzip the file, resulting directory should be jetspeed-2.1.2
3.) copy settings.xm.sample from jetspeed-2.1.2/src/settings.xml.sample to
~/.m2/settings.xml
4.) edit ~/.m2/settings.xml (this involves entering the path to tomcat and
database information)
5.) mvn install
6.) mvn -P tomcat

What you are trying to do with the maven1 builds is generate your own
portal.  You can also do that with the maven2 builds (much simpler).  But if
you just want jetspeed.war to deploy to tomcat follow the steps above.

Brice


On 9/4/07, Mansour <ma...@yahoo.com> wrote:
>
> By the way, all I need to do is to have jetspeed2.war. Exactly like
> jetspeed-1. THen I can copy it to my tomcat and import it inot eclipse,
> customize it easily, and export it again into war.
>
>
>
> Brice Lambi wrote:
> > You really should be using the maven2 builds:
> >
> > http://portals.apache.org/tutorials/jetspeed-2/
> >
> > Brice
> >
> >
> > On 9/3/07, Mansour <ma...@yahoo.com> wrote:
> >
> >> Woonsan:
> >> Thank you. I didn't try it yet, but I will, and I will post the
> results.
> >>
> >>
> >> Woonsan Ko wrote:
> >>
> >>> Hi Mansour,
> >>>
> >>> I think you met a problem with database settings.
> >>> In my case, I use MySQL with the following database settings in
> >>>
> >> build.properties:
> >>
> >>> org.apache.jetspeed.test.database.url = jdbc:mysql://localhost/j2
> >>> org.apache.jetspeed.test.database.driver = com.mysql.jdbc.Driver
> >>> org.apache.jetspeed.test.database.user = j2
> >>> org.apache.jetspeed.test.database.password = XX
> >>>
> >>> org.apache.jetspeed.test.jdbc.drivers.path =
> >>> /home/woonsan/mysql-connector-java-5.0.5/mysql-
> >>>
> >> connector-java-5.0.5-bin.jar
> >>
> >>> org.apache.jetspeed.test.database.default.name = mysql
> >>>
> >>> org.apache.jetspeed.production.database.url =
> jdbc:mysql://localhost/j2
> >>> org.apache.jetspeed.production.database.driver = com.mysql.jdbc.Driver
> >>> org.apache.jetspeed.production.database.user = j2
> >>> org.apache.jetspeed.production.database.password = XX
> >>>
> >>> org.apache.jetspeed.production.jdbc.drivers.path =
> >>> /home/woonsan/mysql-connector-java-5.0.5/mysql-
> >>>
> >> connector-java-5.0.5-bin.jar
> >>
> >>> org.apache.jetspeed.production.database.default.name = mysql
> >>>
> >>>
> >>> Also, MySQL should be accessible at the build time! If you use the
> >>>
> >> default settings (e.g. HSQL
> >>
> >>> DB), then you should start an instance of HSQL DB first.
> >>>
> >>>
> >>>
> >>>> Therefore, jetexpress directory is the portal
> >>>> application of jetspeed and any other directory I copy or deploy is a
> >>>> portlet application (ie. j2-admin), am I right here?
> >>>>
> >>>>
> >>> Yes, you're right.
> >>>
> >>>
> >>> -Woonsan
> >>>
> >>> --- Mansour <ma...@yahoo.com> wrote:
> >>>
> >>>
> >>>
> >> ---------------------------------------------------------------------
> >> 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: [Bulk] Re: Building From source problems, and undesrtanding portlets

Posted by Mansour <ma...@yahoo.com>.
By the way, all I need to do is to have jetspeed2.war. Exactly like 
jetspeed-1. THen I can copy it to my tomcat and import it inot eclipse, 
customize it easily, and export it again into war.



Brice Lambi wrote:
> You really should be using the maven2 builds:
>
> http://portals.apache.org/tutorials/jetspeed-2/
>
> Brice
>
>
> On 9/3/07, Mansour <ma...@yahoo.com> wrote:
>   
>> Woonsan:
>> Thank you. I didn't try it yet, but I will, and I will post the results.
>>
>>
>> Woonsan Ko wrote:
>>     
>>> Hi Mansour,
>>>
>>> I think you met a problem with database settings.
>>> In my case, I use MySQL with the following database settings in
>>>       
>> build.properties:
>>     
>>> org.apache.jetspeed.test.database.url = jdbc:mysql://localhost/j2
>>> org.apache.jetspeed.test.database.driver = com.mysql.jdbc.Driver
>>> org.apache.jetspeed.test.database.user = j2
>>> org.apache.jetspeed.test.database.password = XX
>>>
>>> org.apache.jetspeed.test.jdbc.drivers.path =
>>> /home/woonsan/mysql-connector-java-5.0.5/mysql-
>>>       
>> connector-java-5.0.5-bin.jar
>>     
>>> org.apache.jetspeed.test.database.default.name = mysql
>>>
>>> org.apache.jetspeed.production.database.url = jdbc:mysql://localhost/j2
>>> org.apache.jetspeed.production.database.driver = com.mysql.jdbc.Driver
>>> org.apache.jetspeed.production.database.user = j2
>>> org.apache.jetspeed.production.database.password = XX
>>>
>>> org.apache.jetspeed.production.jdbc.drivers.path =
>>> /home/woonsan/mysql-connector-java-5.0.5/mysql-
>>>       
>> connector-java-5.0.5-bin.jar
>>     
>>> org.apache.jetspeed.production.database.default.name = mysql
>>>
>>>
>>> Also, MySQL should be accessible at the build time! If you use the
>>>       
>> default settings (e.g. HSQL
>>     
>>> DB), then you should start an instance of HSQL DB first.
>>>
>>>
>>>       
>>>> Therefore, jetexpress directory is the portal
>>>> application of jetspeed and any other directory I copy or deploy is a
>>>> portlet application (ie. j2-admin), am I right here?
>>>>
>>>>         
>>> Yes, you're right.
>>>
>>>
>>> -Woonsan
>>>
>>> --- Mansour <ma...@yahoo.com> wrote:
>>>
>>>
>>>       
>> ---------------------------------------------------------------------
>> 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: Building From source problems, and undesrtanding portlets

Posted by Brice Lambi <la...@gmail.com>.
You really should be using the maven2 builds:

http://portals.apache.org/tutorials/jetspeed-2/

Brice


On 9/3/07, Mansour <ma...@yahoo.com> wrote:
>
> Woonsan:
> Thank you. I didn't try it yet, but I will, and I will post the results.
>
>
> Woonsan Ko wrote:
> > Hi Mansour,
> >
> > I think you met a problem with database settings.
> > In my case, I use MySQL with the following database settings in
> build.properties:
> >
> >
> > org.apache.jetspeed.test.database.url = jdbc:mysql://localhost/j2
> > org.apache.jetspeed.test.database.driver = com.mysql.jdbc.Driver
> > org.apache.jetspeed.test.database.user = j2
> > org.apache.jetspeed.test.database.password = XX
> >
> > org.apache.jetspeed.test.jdbc.drivers.path =
> > /home/woonsan/mysql-connector-java-5.0.5/mysql-
> connector-java-5.0.5-bin.jar
> > org.apache.jetspeed.test.database.default.name = mysql
> >
> > org.apache.jetspeed.production.database.url = jdbc:mysql://localhost/j2
> > org.apache.jetspeed.production.database.driver = com.mysql.jdbc.Driver
> > org.apache.jetspeed.production.database.user = j2
> > org.apache.jetspeed.production.database.password = XX
> >
> > org.apache.jetspeed.production.jdbc.drivers.path =
> > /home/woonsan/mysql-connector-java-5.0.5/mysql-
> connector-java-5.0.5-bin.jar
> > org.apache.jetspeed.production.database.default.name = mysql
> >
> >
> > Also, MySQL should be accessible at the build time! If you use the
> default settings (e.g. HSQL
> > DB), then you should start an instance of HSQL DB first.
> >
> >
> >> Therefore, jetexpress directory is the portal
> >> application of jetspeed and any other directory I copy or deploy is a
> >> portlet application (ie. j2-admin), am I right here?
> >>
> >
> > Yes, you're right.
> >
> >
> > -Woonsan
> >
> > --- Mansour <ma...@yahoo.com> wrote:
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>

Re: Building From source problems, and undesrtanding portlets

Posted by Mansour <ma...@yahoo.com>.
Woonsan:
Thank you. I didn't try it yet, but I will, and I will post the results.


Woonsan Ko wrote:
> Hi Mansour,
>
> I think you met a problem with database settings.
> In my case, I use MySQL with the following database settings in build.properties:
>
>
> org.apache.jetspeed.test.database.url = jdbc:mysql://localhost/j2
> org.apache.jetspeed.test.database.driver = com.mysql.jdbc.Driver
> org.apache.jetspeed.test.database.user = j2
> org.apache.jetspeed.test.database.password = XX
>
> org.apache.jetspeed.test.jdbc.drivers.path =
> /home/woonsan/mysql-connector-java-5.0.5/mysql-connector-java-5.0.5-bin.jar
> org.apache.jetspeed.test.database.default.name = mysql
>
> org.apache.jetspeed.production.database.url = jdbc:mysql://localhost/j2
> org.apache.jetspeed.production.database.driver = com.mysql.jdbc.Driver
> org.apache.jetspeed.production.database.user = j2
> org.apache.jetspeed.production.database.password = XX
>
> org.apache.jetspeed.production.jdbc.drivers.path =
> /home/woonsan/mysql-connector-java-5.0.5/mysql-connector-java-5.0.5-bin.jar
> org.apache.jetspeed.production.database.default.name = mysql
>
>
> Also, MySQL should be accessible at the build time! If you use the default settings (e.g. HSQL
> DB), then you should start an instance of HSQL DB first.
>
>   
>> Therefore, jetexpress directory is the portal 
>> application of jetspeed and any other directory I copy or deploy is a 
>> portlet application (ie. j2-admin), am I right here?
>>     
>
> Yes, you're right.
>
>
> -Woonsan
>
> --- Mansour <ma...@yahoo.com> wrote:
>
>   

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


Re: Building From source problems, and undesrtanding portlets

Posted by Woonsan Ko <wo...@yahoo.com>.
Hi Mansour,

I think you met a problem with database settings.
In my case, I use MySQL with the following database settings in build.properties:


org.apache.jetspeed.test.database.url = jdbc:mysql://localhost/j2
org.apache.jetspeed.test.database.driver = com.mysql.jdbc.Driver
org.apache.jetspeed.test.database.user = j2
org.apache.jetspeed.test.database.password = XX

org.apache.jetspeed.test.jdbc.drivers.path =
/home/woonsan/mysql-connector-java-5.0.5/mysql-connector-java-5.0.5-bin.jar
org.apache.jetspeed.test.database.default.name = mysql

org.apache.jetspeed.production.database.url = jdbc:mysql://localhost/j2
org.apache.jetspeed.production.database.driver = com.mysql.jdbc.Driver
org.apache.jetspeed.production.database.user = j2
org.apache.jetspeed.production.database.password = XX

org.apache.jetspeed.production.jdbc.drivers.path =
/home/woonsan/mysql-connector-java-5.0.5/mysql-connector-java-5.0.5-bin.jar
org.apache.jetspeed.production.database.default.name = mysql


Also, MySQL should be accessible at the build time! If you use the default settings (e.g. HSQL
DB), then you should start an instance of HSQL DB first.

> Therefore, jetexpress directory is the portal 
> application of jetspeed and any other directory I copy or deploy is a 
> portlet application (ie. j2-admin), am I right here?

Yes, you're right.


-Woonsan

--- Mansour <ma...@yahoo.com> wrote:

> Is my question that hard? Is it missing any details?
> Please, let me know if there's more info I need to include to get an answer.
> 
> 
> 
> Mansour wrote:
> > Hello every one:
> > I am following the build from source tutorial 
> > http://portals.apache.org/jetspeed-2/getting-started-source.html
> >
> > here's my build.properties:
> > ===================================================================
> > org.apache.jetspeed.portal.home                     = 
> > /home/mansour/workspace/jetspeed-dev
> > org.apache.jetspeed.portal.groupId                 = test-grp
> > org.apache.jetspeed.portal.artifactId               =myportal
> > org.apache.jetspeed.portal.name                     = Portal Name
> > org.apache.jetspeed.portal.currentVersion     = 1.0
> >
> > org.apache.jetspeed.server.home                      = /opt/tomcat/
> > org.apache.jetspeed.server.shared                    = 
> > ${org.apache.jetspeed.server.home}/shared/lib/
> > org.apache.jetspeed.deploy.war.dir                   = 
> > ${org.apache.jetspeed.server.home}/webapps/
> > org.apache.jetspeed.services.autodeployment.user     = j2deployer
> > org.apache.jetspeed.services.autodeployment.password = xxxxx
> > org.apache.jetspeed.catalina.version.major           = 6.0
> >
> > maven.repo.remote = http://www.bluesunrise.com/maven/, 
> > http://www.ibiblio.org/maven/, http://dist.codehaus.org/, 
> > http://cvs.apache.org/repository
> >
> > ===================================================================
> >
> > When I get to the step of :
> >
> > maven j2:portal.genapp
> >
> > I get the following error:
> >
> >
> > j2:portal.conf.sql:
> >    [delete] Deleting directory 
> > /home/mansour/workspace/jetspeed-dev/target/portal-sql
> >    [mkdir] Created dir: 
> > /home/mansour/workspace/jetspeed-dev/target/portal-sql
> >    [copy] Copying 1 file to 
> > /home/mansour/workspace/jetspeed-dev/target/portal-sql
> >    [copy] Copying 
> > /home/mansour/.maven/cache/maven-jetspeed2-plugin-2.1.2/plugin-resources/sql/drop.sql 
> > to /home/mansour/workspace/jetspeed-dev/target/portal-sql/drop.sql
> > j2:_set.rdbms.props:
> > ------------------------------------------------------------------------------- 
> >
> > >> Unable to obtain goal [j2:portal.genapp]
> > >> unsupported target database:
> > ------------------------------------------------------------------------------- 
> >
> > BUILD FAILED
> > ------------------------------------------------------------------------------- 
> >
> > Total time   : 4 seconds
> > Finished at  : Saturday, September 1, 2007 4:27:34 PM ADT
> > Final Memory : 4M/13M
> >
> > Can someone help me on this?
> >
> > Another Question. It looks like I don't see correctly the big picture. 
> > In the past I used the binary installer and tested it with the 
> > embedded tomcat. Then I copied the files "webapps/jetexpress"  and 
> > "lib/*" and the "jetspeed.xml" to another tomcat installation and 
> > worked great. Therefore, jetexpress directory is the portal 
> > application of jetspeed and any other directory I copy or deploy is a 
> > portlet application (ie. j2-admin), am I right here?
> >
> > Thank you.
> >
> >
> >
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > 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
> 
> 



       
____________________________________________________________________________________
Be a better Heartthrob. Get better relationship answers from someone who knows. Yahoo! Answers - Check it out. 
http://answers.yahoo.com/dir/?link=list&sid=396545433

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


Re: Building From source problems, and undesrtanding portlets

Posted by Mansour <ma...@yahoo.com>.
Is my question that hard? Is it missing any details?
Please, let me know if there's more info I need to include to get an answer.



Mansour wrote:
> Hello every one:
> I am following the build from source tutorial 
> http://portals.apache.org/jetspeed-2/getting-started-source.html
>
> here's my build.properties:
> ===================================================================
> org.apache.jetspeed.portal.home                     = 
> /home/mansour/workspace/jetspeed-dev
> org.apache.jetspeed.portal.groupId                 = test-grp
> org.apache.jetspeed.portal.artifactId               =myportal
> org.apache.jetspeed.portal.name                     = Portal Name
> org.apache.jetspeed.portal.currentVersion     = 1.0
>
> org.apache.jetspeed.server.home                      = /opt/tomcat/
> org.apache.jetspeed.server.shared                    = 
> ${org.apache.jetspeed.server.home}/shared/lib/
> org.apache.jetspeed.deploy.war.dir                   = 
> ${org.apache.jetspeed.server.home}/webapps/
> org.apache.jetspeed.services.autodeployment.user     = j2deployer
> org.apache.jetspeed.services.autodeployment.password = xxxxx
> org.apache.jetspeed.catalina.version.major           = 6.0
>
> maven.repo.remote = http://www.bluesunrise.com/maven/, 
> http://www.ibiblio.org/maven/, http://dist.codehaus.org/, 
> http://cvs.apache.org/repository
>
> ===================================================================
>
> When I get to the step of :
>
> maven j2:portal.genapp
>
> I get the following error:
>
>
> j2:portal.conf.sql:
>    [delete] Deleting directory 
> /home/mansour/workspace/jetspeed-dev/target/portal-sql
>    [mkdir] Created dir: 
> /home/mansour/workspace/jetspeed-dev/target/portal-sql
>    [copy] Copying 1 file to 
> /home/mansour/workspace/jetspeed-dev/target/portal-sql
>    [copy] Copying 
> /home/mansour/.maven/cache/maven-jetspeed2-plugin-2.1.2/plugin-resources/sql/drop.sql 
> to /home/mansour/workspace/jetspeed-dev/target/portal-sql/drop.sql
> j2:_set.rdbms.props:
> ------------------------------------------------------------------------------- 
>
> >> Unable to obtain goal [j2:portal.genapp]
> >> unsupported target database:
> ------------------------------------------------------------------------------- 
>
> BUILD FAILED
> ------------------------------------------------------------------------------- 
>
> Total time   : 4 seconds
> Finished at  : Saturday, September 1, 2007 4:27:34 PM ADT
> Final Memory : 4M/13M
>
> Can someone help me on this?
>
> Another Question. It looks like I don't see correctly the big picture. 
> In the past I used the binary installer and tested it with the 
> embedded tomcat. Then I copied the files "webapps/jetexpress"  and 
> "lib/*" and the "jetspeed.xml" to another tomcat installation and 
> worked great. Therefore, jetexpress directory is the portal 
> application of jetspeed and any other directory I copy or deploy is a 
> portlet application (ie. j2-admin), am I right here?
>
> Thank you.
>
>
>
>
>
>
>
> ---------------------------------------------------------------------
> 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