Did you generate a new custom project from the 0.23-SNAPSHOT archetype? I see references to Rave artifacts with version 0.22 in the logs.
On 10 August 2013 14:43, Sameera Jayaratna <[email protected]>wrote: > Hi Jasha, > > We tried building using 0.23-SNAPSHOT. But still we are unable to get the > custom Rave project working. What could be the issue now? Full log is > here<http://pastebin.com/Eu976ZtD> > . > > Thank you, > Sameera > > > On Sat, Aug 10, 2013 at 5:27 PM, Jasha Joachimsthal <[email protected] > >wrote: > > > Hi Sameera, > > > > the configuration in the archetype was outdated, see [RAVE-949]. I've > > updated these files in the trunk (0.23-SNAPSHOT). You can build the > > archetype locally by checking out the rave project and build the module > > rave-custom-project-archetype. You can then generate your custom Rave > > project from the archetype. > > > > [RAVE-949] https://issues.apache.org/jira/browse/RAVE-949 > > > > Regards, > > > > Jasha > > > > On 10 August 2013 10:48, Sameera Jayaratna <[email protected] > > >wrote: > > > > > Hi, > > > > > > Thanks for the concern. > > > > > > mvn install rins without any errors. > > > > > > mvn cargo:run gives following log. > > > > > > ERROR: org.springframework.web.context.ContextLoader - Context > > > initialization failed > > > [INFO] [talledLocalContainer] > > > org.springframework.beans.factory.BeanCreationException: Error creating > > > bean with name 'messageSource' defined in ServletContext resource > > > [/WEB-INF/applicationContext.xml]: BeanPostProcessor before > instantiation > > > of bean failed; nested exception is > > > org.springframework.beans.factory.BeanCreationException: Error creating > > > bean with name > > > 'org.springframework.transaction.config.internalTransactionAdvisor': > > Cannot > > > resolve reference to bean > > > > > > > > > 'org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0' > > > while setting bean property 'transactionAttributeSource'; nested > > exception > > > is org.springframework.beans.factory.BeanCreationException: Error > > creating > > > bean with name > > > > > > > > > 'org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0': > > > BeanPostProcessor before instantiation of bean failed; nested exception > > is > > > org.springframework.beans.factory.BeanCreationException: Error creating > > > bean with name > > > 'org.springframework.security.methodSecurityMetadataSourceAdvisor': > > Cannot > > > resolve reference to bean > > > > > > > > > 'org.springframework.security.access.method.DelegatingMethodSecurityMetadataSource#0' > > > while setting constructor argument; nested exception is > > > org.springframework.beans.factory.BeanCreationException: Error creating > > > bean with name > > > > > > > > > 'org.springframework.security.access.method.DelegatingMethodSecurityMetadataSource#0': > > > Cannot create inner bean '(inner bean)' of type > > > > > > > > > [org.springframework.security.access.prepost.PrePostAnnotationSecurityMetadataSource] > > > while setting constructor argument with key [0]; nested exception is > > > org.springframework.beans.factory.BeanCreationException: Error creating > > > bean with name '(inner bean)': Cannot create inner bean '(inner bean)' > of > > > type > > > > > > > > > [org.springframework.security.access.expression.method.ExpressionBasedAnnotationAttributeFactory] > > > while setting constructor argument; nested exception is > > > org.springframework.beans.factory.BeanCreationException: Error creating > > > bean with name '(inner bean)': Cannot resolve reference to bean > > > 'expressionHandler' while setting constructor argument; nested > exception > > is > > > org.springframework.beans.factory.BeanCreationException: Error creating > > > bean with name 'expressionHandler' defined in ServletContext resource > > > [/WEB-INF/applicationContext-security.xml]: Cannot resolve reference to > > > bean 'ravePermissionEvaluator' while setting bean property > > > 'permissionEvaluator'; nested exception is > > > org.springframework.beans.factory.UnsatisfiedDependencyException: Error > > > creating bean with name 'ravePermissionEvaluator' defined in URL > > > > > > > > > [jar:file:/home/harsha/FYP/codings/Rave/raveExample/myraveproject/myraveproject-portal/target/tomcat6x/webapps/portal/WEB-INF/lib/rave-core-0.22.jar!/org/apache/rave/portal/security/impl/RavePermissionEvaluator.class]: > > > Unsatisfied dependency expressed through constructor argument with > index > > 0 > > > of type [java.util.List]: : Error creating bean with name > > > 'defaultCategoryPermissionEvaluator' defined in URL > > > > > > > > > [jar:file:/home/harsha/FYP/codings/Rave/raveExample/myraveproject/myraveproject-portal/target/tomcat6x/webapps/portal/WEB-INF/lib/rave-core-0.22.jar!/org/apache/rave/portal/security/impl/DefaultCategoryPermissionEvaluator.class]: > > > Unsatisfied dependency expressed through constructor argument with > index > > 0 > > > of type [org.apache.rave.portal.repository.CategoryRepository]: : Error > > > creating bean with name 'jpaCategoryRepository': Injection of > persistence > > > dependencies failed; nested exception is > > > org.springframework.beans.factory.BeanCreationException: Error creating > > > bean with name 'entityManagerFactory' defined in URL > > > > > > > > > [jar:file:/home/harsha/FYP/codings/Rave/raveExample/myraveproject/myraveproject-portal/target/tomcat6x/webapps/portal/WEB-INF/lib/rave-jpa-0.22.jar!/org/apache/rave/persistence-applicationContext.xml]: > > > Cannot resolve reference to bean 'dataSource' while setting bean > property > > > 'dataSource'; nested exception is > > > org.springframework.beans.factory.BeanCreationException: Error creating > > > bean with name 'dataSource' defined in URL > > > > > > > > > [jar:file:/home/harsha/FYP/codings/Rave/raveExample/myraveproject/myraveproject-portal/target/tomcat6x/webapps/portal/WEB-INF/lib/rave-jpa-0.22.jar!/org/apache/rave/persistence-applicationContext.xml]: > > > Invocation of init method failed; nested exception is > > > javax.naming.NameNotFoundException: Name jdbc is not bound in this > > Context; > > > nested exception is > > > org.springframework.beans.factory.BeanCreationException: Error creating > > > bean with name 'jpaCategoryRepository': Injection of persistence > > > dependencies failed; nested exception is > > > org.springframework.beans.factory.BeanCreationException: Error creating > > > bean with name 'entityManagerFactory' defined in URL > > > > > > > > > [jar:file:/home/harsha/FYP/codings/Rave/raveExample/myraveproject/myraveproject-portal/target/tomcat6x/webapps/portal/WEB-INF/lib/rave-jpa-0.22.jar!/org/apache/rave/persistence-applicationContext.xml]: > > > Cannot resolve reference to bean 'dataSource' while setting bean > property > > > 'dataSource'; nested exception is > > > org.springframework.beans.factory.BeanCreationException: Error creating > > > bean with name 'dataSource' defined in URL > > > > > > > > > [jar:file:/home/harsha/FYP/codings/Rave/raveExample/myraveproject/myraveproject-portal/target/tomcat6x/webapps/portal/WEB-INF/lib/rave-jpa-0.22.jar!/org/apache/rave/persistence-applicationContext.xml]: > > > Invocation of init method failed; nested exception is > > > javax.naming.NameNotFoundException: Name jdbc is not bound in this > > Context; > > > nested exception is > > > org.springframework.beans.factory.UnsatisfiedDependencyException: Error > > > creating bean with name 'defaultCategoryPermissionEvaluator' defined in > > URL > > > > > > > > > [jar:file:/home/harsha/FYP/codings/Rave/raveExample/myraveproject/myraveproject-portal/target/tomcat6x/webapps/portal/WEB-INF/lib/rave-core-0.22.jar!/org/apache/rave/portal/security/impl/DefaultCategoryPermissionEvaluator.class]: > > > Unsatisfied dependency expressed through constructor argument with > index > > 0 > > > of type [org.apache.rave.portal.repository.CategoryRepository]: : Error > > > creating bean with name 'jpaCategoryRepository': Injection of > persistence > > > dependencies failed; nested exception is > > > org.springframework.beans.factory.BeanCreationException: Error creating > > > bean with name 'entityManagerFactory' defined in URL > > > > > > > > > [jar:file:/home/harsha/FYP/codings/Rave/raveExample/myraveproject/myraveproject-portal/target/tomcat6x/webapps/portal/WEB-INF/lib/rave-jpa-0.22.jar!/org/apache/rave/persistence-applicationContext.xml]: > > > Cannot resolve reference to bean 'dataSource' while setting bean > property > > > 'dataSource'; nested exception is > > > org.springframework.beans.factory.BeanCreationException: Error creating > > > bean with name 'dataSource' defined in URL > > > > > > > > > [jar:file:/home/harsha/FYP/codings/Rave/raveExample/myraveproject/myraveproject-portal/target/tomcat6x/webapps/portal/WEB-INF/lib/rave-jpa-0.22.jar!/org/apache/rave/persistence-applicationContext.xml]: > > > Invocation of init method failed; nested exception is > > > javax.naming.NameNotFoundException: Name jdbc is not bound in this > > Context; > > > nested exception is > > > org.springframework.beans.factory.BeanCreationException: Error creating > > > bean with name 'jpaCategoryRepository': Injection of persistence > > > dependencies failed; nested exception is > > > org.springframework.beans.factory.BeanCreationException: Error creating > > > bean with name 'entityManagerFactory' defined in URL > > > > > > > > > [jar:file:/home/harsha/FYP/codings/Rave/raveExample/myraveproject/myraveproject-portal/target/tomcat6x/webapps/portal/WEB-INF/lib/rave-jpa-0.22.jar!/org/apache/rave/persistence-applicationContext.xml]: > > > Cannot resolve reference to bean 'dataSource' while setting bean > property > > > 'dataSource'; nested exception is > > > org.springframework.beans.factory.BeanCreationException: Error creating > > > bean with name 'dataSource' defined in URL > > > > > > > > > [jar:file:/home/harsha/FYP/codings/Rave/raveExample/myraveproject/myraveproject-portal/target/tomcat6x/webapps/portal/WEB-INF/lib/rave-jpa-0.22.jar!/org/apache/rave/persistence-applicationContext.xml]: > > > Invocation of init method failed; nested exception is > > > javax.naming.NameNotFoundException: Name jdbc is not bound in this > > Context > > > [INFO] [talledLocalContainer] Related cause: > > > org.springframework.beans.factory.BeanCreationException: Error creating > > > bean with name 'dataSource' defined in URL > > > > > > > > > [jar:file:/home/harsha/FYP/codings/Rave/raveExample/myraveproject/myraveproject-portal/target/tomcat6x/webapps/portal/WEB-INF/lib/rave-jpa-0.22.jar!/org/apache/rave/persistence-applicationContext.xml]: > > > Invocation of init method failed; nested exception is > > > javax.naming.NameNotFoundException: Name jdbc is not bound in this > > Context > > > [INFO] [talledLocalContainer] Related cause: > > > org.springframework.beans.factory.BeanCreationException: Error creating > > > bean with name 'dataSource' defined in URL > > > > > > > > > [jar:file:/home/harsha/FYP/codings/Rave/raveExample/myraveproject/myraveproject-portal/target/tomcat6x/webapps/portal/WEB-INF/lib/rave-jpa-0.22.jar!/org/apache/rave/persistence-applicationContext.xml]: > > > Invocation of init method failed; nested exception is > > > javax.naming.NameNotFoundException: Name jdbc is not bound in this > > Context > > > [INFO] [talledLocalContainer] Related cause: > > > org.springframework.beans.factory.BeanCreationException: Error creating > > > bean with name 'dataSource' defined in URL > > > > > > > > > [jar:file:/home/harsha/FYP/codings/Rave/raveExample/myraveproject/myraveproject-portal/target/tomcat6x/webapps/portal/WEB-INF/lib/rave-jpa-0.22.jar!/org/apache/rave/persistence-applicationContext.xml]: > > > Invocation of init method failed; nested exception is > > > javax.naming.NameNotFoundException: Name jdbc is not bound in this > > Context > > > [INFO] [talledLocalContainer] at > > > > > > > > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:457) > > > [INFO] [talledLocalContainer] at > > > > > > > > > org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295) > > > [INFO] [talledLocalContainer] at > > > > > > > > > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223) > > > [INFO] [talledLocalContainer] at > > > > > > > > > org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292) > > > [INFO] [talledLocalContainer] at > > > > > > > > > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:198) > > > [INFO] [talledLocalContainer] at > > > > > > > > > org.springframework.context.support.AbstractApplicationContext.initMessageSource(AbstractApplicationContext.java:786) > > > [INFO] [talledLocalContainer] at > > > > > > > > > org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:467) > > > [INFO] [talledLocalContainer] at > > > > > > > > > org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383) > > > [INFO] [talledLocalContainer] at > > > > > > > > > org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283) > > > [INFO] [talledLocalContainer] at > > > > > > > > > org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112) > > > [INFO] [talledLocalContainer] at > > > > > > > > > org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206) > > > [INFO] [talledLocalContainer] at > > > > org.apache.catalina.core.StandardContext.start(StandardContext.java:4705) > > > [INFO] [talledLocalContainer] at > > > > > > > > > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799) > > > [INFO] [talledLocalContainer] at > > > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779) > > > [INFO] [talledLocalContainer] at > > > org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601) > > > [INFO] [talledLocalContainer] at > > > org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:943) > > > [INFO] [talledLocalContainer] at > > > org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:778) > > > [INFO] [talledLocalContainer] at > > > org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:504) > > > [INFO] [talledLocalContainer] at > > > org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317) > > > [INFO] [talledLocalContainer] at > > > > > > org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324) > > > [INFO] [talledLocalContainer] at > > > > > > > > > org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142) > > > [INFO] [talledLocalContainer] at > > > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065) > > > [INFO] [talledLocalContainer] at > > > org.apache.catalina.core.StandardHost.start(StandardHost.java:840) > > > [INFO] [talledLocalContainer] at > > > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057) > > > [INFO] [talledLocalContainer] at > > > org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463) > > > [INFO] [talledLocalContainer] at > > > > org.apache.catalina.core.StandardService.start(StandardService.java:525) > > > [INFO] [talledLocalContainer] at > > > org.apache.catalina.core.StandardServer.start(StandardServer.java:754) > > > [INFO] [talledLocalContainer] at > > > org.apache.catalina.startup.Catalina.start(Catalina.java:595) > > > [INFO] [talledLocalContainer] at > > > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > > [INFO] [talledLocalContainer] at > > > > > > > > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > > > [INFO] [talledLocalContainer] at > > > > > > > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > > > [INFO] [talledLocalContainer] at > > > java.lang.reflect.Method.invoke(Method.java:597) > > > [INFO] [talledLocalContainer] at > > > org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) > > > [INFO] [talledLocalContainer] at > > > org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) > > > > > > > > > Thank you, > > > Sameera > > > > > > > > > On Sat, Aug 10, 2013 at 1:13 AM, Matt Franklin < > [email protected] > > > >wrote: > > > > > > > Hi Sameera, > > > > > > > > I am building off the archetype now to see if there are any remaining > > > bugs. > > > > In the meantime, can you post the console or log output from Rave? > > > > > > > > > > > > On Fri, Aug 9, 2013 at 7:22 AM, Sameera Jayaratna < > > > > [email protected]> wrote: > > > > > > > > > Hi, > > > > > > > > > > We need to build a custom portal using Apache Rave. I tried > > 'extending > > > > rave > > > > > portal' but it does not work. http://localhost:8080/portal gives > > 404. > > > > Can > > > > > anyone please help resolve this issue? > > > > > > > > > > Thanks, > > > > > Sameera > > > > > > > > > > > > > > > On Mon, Jul 29, 2013 at 7:14 AM, Sameera Jayaratna < > > > > > [email protected]> wrote: > > > > > > > > > > > Hi, > > > > > > > > > > > > No, it does not work. Gives 404. > > > > > > > > > > > > Thank you, > > > > > > Sameera > > > > > > > > > > > > > > > > > > On Mon, Jul 29, 2013 at 7:02 AM, Matt Franklin < > > > > [email protected] > > > > > >wrote: > > > > > > > > > > > >> Does it work when you go to http://localhost:8080/portal? > > > > > >> > > > > > >> > > > > > >> On Sun, Jul 28, 2013 at 4:28 AM, Sameera Jayaratna < > > > > > >> [email protected]> wrote: > > > > > >> > > > > > >> > Hi, > > > > > >> > > > > > > >> > Is this issue resolved in the 0.22 release? I still get the > 404 > > > when > > > > > >> > accessing http://localhost:8080. > > > > > >> > > > > > > >> > Thank you, > > > > > >> > Sameera > > > > > >> > > > > > > >> > > > > > > >> > On Tue, Jun 11, 2013 at 7:09 AM, Sameera Jayaratna < > > > > > >> > [email protected]> wrote: > > > > > >> > > > > > > >> > > Hi, > > > > > >> > > > > > > > >> > > Thank you for the response. > > > > > >> > > > > > > > >> > > > > > > > >> > > > > > > > >> > > > > > > > >> > > On Tue, Jun 11, 2013 at 12:03 AM, Matt Franklin < > > > > > >> > [email protected]>wrote: > > > > > >> > > > > > > > >> > >> Hi Sameera, > > > > > >> > >> > > > > > >> > >> A bug was recently reported regarding a failure to start > when > > > > using > > > > > >> the > > > > > >> > >> custom maven archetype. It should be fixed by our next > > > release, > > > > > >> which > > > > > >> > is > > > > > >> > >> scheduled to be publicly available in July. > > > > > >> > >> > > > > > >> > >> > > > > > >> > >> > > > > > >> > >> On Mon, Jun 10, 2013 at 1:50 PM, Sameera Jayaratna < > > > > > >> > >> [email protected]> wrote: > > > > > >> > >> > > > > > >> > >> > Hi, > > > > > >> > >> > > > > > > >> > >> > I'm interested in using Apache Rave to build a portal of > my > > > > own. > > > > > >> > >> Therefore > > > > > >> > >> > I would like to customize it. I went through the > > > documentation > > > > > and > > > > > >> > >> followed > > > > > >> > >> > the steps given in "Extend Apache Rave to build your own > > > > portal" > > > > > >> [1]. > > > > > >> > I > > > > > >> > >> > followed up to the steps > > > > > >> > >> > > > > > > >> > >> > cd myraveproject-portal > > > > > >> > >> > mvn cargo:run > > > > > >> > >> > > > > > > >> > >> > As I understood, after this step I should be able to > access > > > it > > > > > on * > > > > > >> > >> > http://localhost:8080/myraveproject-portal/* . But I > get a > > > 404 > > > > > for > > > > > >> > it. > > > > > >> > >> > Where have I gone wrong? > > > > > >> > >> > > > > > > >> > >> > Thank you, > > > > > >> > >> > Sameera > > > > > >> > >> > > > > > > >> > >> > > > > > > >> > >> > [1] > > > http://rave.apache.org/documentation/rave-extensions.html > > > > > >> > >> > > > > > > >> > >> > > > > > >> > > > > > > > >> > > > > > > > >> > > > > > > > >> > > -- > > > > > >> > > *Sameera Jayaratna* > > > > > >> > > *Undergraduate* > > > > > >> > > *Department of Computer Science And Engineering* > > > > > >> > > *University of Moratuwa* > > > > > >> > > *Sri Lanka* > > > > > >> > > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > >> > -- > > > > > >> > *Sameera Jayaratna* > > > > > >> > *Undergraduate* > > > > > >> > *Department of Computer Science And Engineering* > > > > > >> > *University of Moratuwa* > > > > > >> > *Sri Lanka* > > > > > >> > > > > > > >> > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > *Sameera Jayaratna* > > > > > > *Undergraduate* > > > > > > *Department of Computer Science And Engineering* > > > > > > *University of Moratuwa* > > > > > > *Sri Lanka* > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > *Sameera Jayaratna* > > > > > *Undergraduate* > > > > > *Department of Computer Science And Engineering* > > > > > *University of Moratuwa* > > > > > *Sri Lanka* > > > > > > > > > > > > > > > > > > > > > -- > > > *Sameera Jayaratna* > > > *Undergraduate* > > > *Department of Computer Science And Engineering* > > > *University of Moratuwa* > > > *Sri Lanka* > > > > > > > > > -- > *Sameera Jayaratna* > *Undergraduate* > *Department of Computer Science And Engineering* > *University of Moratuwa* > *Sri Lanka* >
