[Building Sakai] Quartz

Steve Swinsburg steve.swinsburg at gmail.com
Tue Apr 2 17:58:55 PDT 2013


Do it the other way around.

1. Create project using archetype. Compile and run.
2. Check out the quartz example. Compile and run.
3. Move quartz code into project created in 1.

This way you only need to move one class a bit of XML. The other way you
need to move multiple classes, API's and spring wiring.



On Wed, Apr 3, 2013 at 10:18 AM, Antonio muñoz alonso <
antoniovalenciaspain at hotmail.com> wrote:

>  First Create and Compile this project : svn cohttps://
> source.sakaiproject.org/contrib/swinsburg/quartz-example/
> Run Ok in tomcat.
>
> After copy api and impl(SakaiProxy and SakaiLogic) of a project Sakai
> Maven Archetype.
> No run in tomcat.
> ------------------------------
> CC: sakai-dev at collab.sakaiproject.org
> From: steve.swinsburg at gmail.com
> Subject: Re: Quartz
> Date: Wed, 3 Apr 2013 09:16:57 +1100
> To: antoniovalenciaspain at hotmail.com
>
>
> If you do a brand new archetype project, then build and deploy, does it
> have the same error?
>
> Try a fresh tomcat.
>
> Cheers
>
>
> Sent from my iPhone
>
> On 03/04/2013, at 8:32, Antonio muñoz alonso <
> antoniovalenciaspain at hotmail.com> wrote:
>
> I still have the same error, I have the same dependencies in sakai  Maven
> archetype . :(
>
> ------------------------------
> Subject: Re: Quartz
> From: steve.swinsburg at gmail.com
> Date: Tue, 2 Apr 2013 22:41:44 +1100
> CC: sakai-dev at collab.sakaiproject.org
> To: antoniovalenciaspain at hotmail.com
>
> Yes.
>
> java.lang.NoClassDefFoundError:
> org/apache/commons/configuration/ConfigurationException
>
> IIRC you need to bundle commons configuration inside the component pack,
> so list that dependency as compile scope in the pom.
>
> It would be much easier for you if you used the archetype to generate a
> working app, then added the quartz class and fe lines of wiring XML to it,
> rather than adding multiple classes and wiring to a quartz project. Pull
> out the tool module if you don't need it.
>
>
> On 02/04/2013, at 11:47 AM, Antonio muñoz alonso <
> antoniovalenciaspain at hotmail.com> wrote:
>
> any ideas??
>
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name 'org.sakaiproject.msub.logic.ProjectLogic' defined in file
> [/opt/tomcat/components/alliance-quartz-pack/WEB-INF/components.xml]:
> Cannot resolve reference to bean 'org.sakaiproject.msub.dao.ProjectDao'
> while setting bean property 'dao'; nested exception is
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name 'org.sakaiproject.msub.dao.ProjectDao' defined in file
> [/opt/tomcat/components/alliance-quartz-pack/WEB-INF/components.xml]:
> Instantiation of bean failed; nested exception is
> java.lang.NoClassDefFoundError:
> org/apache/commons/configuration/ConfigurationException
> at
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)
> at
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
> at
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
> at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
> at
> org.sakaiproject.util.NoisierDefaultListableBeanFactory.getBean(NoisierDefaultListableBeanFactory.java:114)
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
> at
> org.sakaiproject.util.NoisierDefaultListableBeanFactory.preInstantiateSingletons(NoisierDefaultListableBeanFactory.java:73)
> at
> org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
> at
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
> at
> org.sakaiproject.component.impl.SpringCompMgr.init(SpringCompMgr.java:154)
> at
> org.sakaiproject.component.cover.ComponentManager.getInstance(ComponentManager.java:98)
> at
> org.sakaiproject.component.impl.ContextLoader.loadParentContext(ContextLoader.java:107)
> at
> org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:195)
> at
> org.sakaiproject.component.impl.ContextLoader.initWebApplicationContext(ContextLoader.java:64)
> at
> org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
> at
> org.sakaiproject.util.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:56)
> at
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3795)
> at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4252)
> at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
> at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
> at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
> at
> org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:634)
> at
> org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:561)
> at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:496)
> at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1203)
> at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:319)
> at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
> at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
> at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
> at org.apache.catalina.core.StandardService.start(StandardService.java:448)
> at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
> at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
> 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.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
> Caused by: org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name 'org.sakaiproject.msub.dao.ProjectDao' defined in
> file [/opt/tomcat/components/alliance-quartz-pack/WEB-INF/components.xml]:
> Instantiation of bean failed; nested exception is
> java.lang.NoClassDefFoundError:
> org/apache/commons/configuration/ConfigurationException
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:883)
>
>
> ------------------------------
> CC: sakai-dev at collab.sakaiproject.org
> From: steve.swinsburg at gmail.com
> Subject: Re: Quartz
> Date: Tue, 2 Apr 2013 07:23:00 +1100
> To: antoniovalenciaspain at hotmail.com
>
> There will be a stack trace well before that destroy bit, that will tell
> you what the problem is.
>
> Sent from my iPad
>
> On 01/04/2013, at 9:02, Antonio muñoz alonso <
> antoniovalenciaspain at hotmail.com> wrote:
>
> Get compile this project:
> https://source.sakaiproject.org/svn//msub/anu.edu.au/alliance/2.8.x/quartz/
> compiled and executed correctly.
>
> After, I added Impl and Api (for SakaiProxy and Spring JDBC).
> compiled when restart Tomcat this error:
> - Stopping Hibernate Cache Cache -------------------------------
> 2013-03-31 23:58:47,056  INFO main
> org.sakaiproject.db.impl.BasicSqlService - destroy()
> 2013-03-31 23:58:47,171  INFO main
> org.sakaiproject.log.impl.Log4jConfigurationManager - destroy()
> 2013-03-31 23:58:47,171  INFO main
> org.sakaiproject.component.impl.BasicConfigurationService - destroy()
>
> I just recompiled the basic project(
> https://source.sakaiproject.org/svn//msub/anu.edu.au/alliance/2.8.x/quartz/)
> but still the same error.
> I can not find the application to delete in /opt/tomcat/webapps.
>
> any ideas??
>
>
>
>
>
>
> ------------------------------
> Subject: Re: Quartz
> From: steve.swinsburg at gmail.com
> Date: Wed, 27 Mar 2013 23:23:35 +1100
> CC: sakai-dev at collab.sakaiproject.org
> To: antoniovalenciaspain at hotmail.com
>
> Have a look at one of the modules in your Sakai 2.8 release, and change
> the parent in this module to suit that one.
>
> This was a custom module for ANU so you need to change it for your build.
>
> cheers,
> Steve
>
> On 27/03/2013, at 11:14 PM, Antonio muñoz alonso <
> antoniovalenciaspain at hotmail.com> wrote:
>
> original Parent:
> <parent>
>         <groupId>org.sakaiproject.msub</groupId>
>         <artifactId>alliance-quartz</artifactId>
>         <version>2.8-SNAPSHOT</version>
>     </parent>
>
> Cha
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20130403/b1e5ddaf/attachment.html 


More information about the sakai-dev mailing list