[Building Sakai] Profile2 error when starting tomcat

Steve Swinsburg steve.swinsburg at gmail.com
Wed Mar 10 15:42:06 PST 2010


Hi Karen,

Yes you'll need JDK 1.6. The code current uses StAX for XML parsing, which is built in to 1.6, but I haven't had any luck in getting the necessary dependencies included so it will work in 1.5 - compounded by the fact I don't have a box running JDK 1.5 anymore. I do, however, have this flagged in JIRA, for moving over from StAX directly, to using SimpleXML which is an object oriented, Annotation based XML parsing library: http://jira.sakaiproject.org/browse/PRFL-241

Once that is done, it should work in 1.5 again. 

cheers,
Steve



On 11/03/2010, at 8:46 AM, Karen Tsao wrote:

> Hi,
> 
> After I updated my sakai instance with the latest trunk code, I got following tomcat error:
> 
> 2010-03-10 13:44:40,613 ERROR main org.sakaiproject.profile2.logic.SakaiProxyImpl - Profile2 SakaiProxy init()
> 2010-03-10 13:44:40,631 ERROR main org.sakaiproject.util.NoisierDefaultListableBeanFactory - Failed to preinstantiate the singleton named org.sakaiproject.entitybroker.impl.entityprovider.EntityProviderAutoRegistrar. Destroying all Spring beans.
> org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.sakaiproject.entitybroker.impl.entityprovider.EntityProviderAutoRegistrar' defined in file [/opt/tomcat_trunk/components/entitybroker-pack/WEB-INF/components.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.sakaiproject.profile2.entity.ProfileEntityProvider' defined in file [/opt/tomcat_trunk/components/profile2-pack/WEB-INF/components.xml]: Cannot resolve reference to bean 'org.sakaiproject.profile2.service.ProfileService' while setting bean property 'profileService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.sakaiproject.profile2.service.ProfileService' defined in file [/opt/tomcat_trunk/components/profile2-pack/WEB-INF/components.xml]: Cannot resolve reference to bean 'org.sakaiproject.profile2.logic.SakaiProxy' while setting bean property 'sakaiProxy'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.sakaiproject.profile2.logic.SakaiProxy' defined in file [/opt/tomcat_trunk/components/profile2-pack/WEB-INF/components.xml]: Invocation of init method failed; nested exception is javax.xml.stream.FactoryConfigurationError: Provider com.bea.xml.stream.MXParserFactory not found
>     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:480)
>     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:68)
>     at org.sakaiproject.component.cover.ComponentManager.get(ComponentManager.java:76)
>     at org.sakaiproject.component.cover.ServerConfigurationService.getInstance(ServerConfigurationService.java:52)
>     at org.sakaiproject.component.cover.ServerConfigurationService.getStrings(ServerConfigurationService.java:205)
>     at org.sakaiproject.util.BasicAuth.init(BasicAuth.java:111)
>     at org.sakaiproject.access.tool.AccessServlet.init(AccessServlet.java:147)
>     at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
>     at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
>     at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956)
>     at org.apache.catalina.core.StandardContext.start(StandardContext.java:4230)
>     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.deployWAR(HostConfig.java:825)
>     at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714)
>     at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
>     at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
>     at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
>     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:585)
>     at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
>     at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
> ...
> 
> I have deleted my repo and started with a new tomcat, but the error is still there... Appreciate any suggestions.
> 
> Thanks,
> Karen
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
> 
> TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe"

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3689 bytes
Desc: not available
Url : http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20100311/ae3d83df/attachment.bin 


More information about the sakai-dev mailing list