[Contrib: Evaluation System] Evaluation System 1.3.0on2.9.xtrunk - Tomcat starting issue

Daniel Merino daniel.merino at unavarra.es
Tue Jun 5 05:33:58 PDT 2012


Hi again. :-(

After the last changes that David told me, Evaluation 1.3.0 worked fine 
on my 2.9.x (I used it without issues), but suddenly I have another 
error message in Tomcat's starting log: Tomcat manages to start and 
Sakai works, but Evalsys crashes.

I haven't changed anything, at least I'm not aware to have done it.

Searching a bit in Google, it seems a kind of incompatibility between 
Log4j and Commons-logging, but I don't know how to solve this. Please, 
could you help me?

Thanks in advance for your help.
Best regards.



Catalina.out stack trace:

INFO: Despliegue del archivo 
/apps/tomcat/tomcat-b/webapps/sakai-evaluation-tool.war de la aplicación web
2012-06-05 14:15:36,199 ERROR pool-2-thread-1 
org.springframework.web.context.ContextLoader - Context initialization 
failed
org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean 
named 'messageSource' must be of type 
[org.springframework.context.MessageSource], but was actually of type 
[org.springfra
mework.context.support.ReloadableResourceBundleMessageSource]
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:168)
        at 
org.springframework.context.support.AbstractApplicationContext.initMessageSource(AbstractApplicationContext.java:627)
        at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:368)
        at 
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
        at 
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
        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:4779)
        at 
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5273)
        at 
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:895)
        at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871)
        at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615)
        at 
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:962)
        at 
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1603)
        at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
        at 
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:619)
05-jun-2012 14:15:36 org.apache.catalina.core.StandardContext startInternal
GRAVE: Error listenerStart

Daniel Merino escribió:
> Thanks a lot, David. It worked like a charm!
>
> Best regards.
>
> David Horwitz escribió:
>   
>> you need to overide the scope too:
>>
>> <dependency>
>>                  <groupId>org.springframework</groupId>
>>                  <artifactId>spring-webmvc</artifactId>
>> 		<scope>runtime</scope>
>>          </dependency>
>>
>>
>> D
>> On 06/01/2012 11:08 AM, Daniel Merino wrote:
>>   
>>     
>>> Thanks, David. Copy-pasting the spring-webmvc-2.5.6.SEC02.jar into
>>> sakai-evaluation-tool/WEB-INF/lib worked fine.
>>>
>>> However, I would like to make a more professional solution so I have
>>> tried to add the dependency into the pom.xml.
>>>
>>> Copying the dependency as it is in Evalsys 1.4.0 (
>>> https://source.sakaiproject.org/contrib/evaluation/tags/1.4.0/tool/pom.xml
>>> ), I have added to tool/pom.xml the next code:
>>>
>>>          <dependency>
>>>                  <groupId>org.springframework</groupId>
>>>                  <artifactId>spring-webmvc</artifactId>
>>>          </dependency>
>>>
>>> But spring-webmvc still is not deployed into tomcat.
>>>
>>> I don't know too much about Maven, please, could you give me any hint?
>>>
>>> Thanks in advance.
>>> Best regards.
>>>
>>> David Horwitz escribió:
>>>     
>>>       
>>>> You need to update the deploy to put spring-webmvc in the evals webapp -
>>>> as it is no longer in shared.
>>>>
>>>> I would also recommend upgrading to RSF 0.7.5
>>>>
>>>> D
>>>>
>>>>
>>>> On 05/30/2012 02:29 PM, Daniel Merino wrote:
>>>>
>>>>       
>>>>         
>>>>> Hi everybody.
>>>>>
>>>>> I'm trying to install our evalsys-1.3.0 in Sakai 2.9.x.
>>>>>
>>>>> First at all, I have found issues with pom.xml at api, tool and impl,
>>>>> because they have not profiles for 2.9. I have copied the 2.8 profile
>>>>> and renamed it as 2.9 in these pom.xml, so after that, deployment works.
>>>>>
>>>>> However, starting Tomcat I find the same errors which Jim Eng asked
>>>>> about in this list a few months ago:
>>>>> http://collab.sakaiproject.org/pipermail/evaluation/2011-November/001041.html
>>>>>
>>>>> No solution was provided to the list, and I'm stuck with this. Please,
>>>>> could you help me?
>>>>>
>>>>> I paste the Tomcat's starting log:
>>>>>
>>>>> INFO: Despliegue del archivo
>>>>> /apps/tomcat/tomcat-b/webapps/sakai-evaluation-tool.war de la aplicación web
>>>>> 2012-05-30 13:59:51,244 ERROR pool-2-thread-1
>>>>> org.springframework.web.context.ContextLoader - Context initialization
>>>>> failed
>>>>> org.springframework.beans.factory.BeanCreationException: Error creating
>>>>> bean with name 'TLABPostProcessorLoader' defined in class path resource
>>>>> [conf/rsf-config.xml]: Invocation of init method
>>>>> failed; nested exception is
>>>>> org.springframework.beans.factory.BeanCreationException: Error creating
>>>>> bean with name 'scopeAlterationWrapperProxy' defined in class path
>>>>> resource [conf/rsf-config.
>>>>> xml]: Cannot create inner bean 'RSACBridgeProxy$child#38a2aba4' of type
>>>>> [uk.org.ponder.rsac.RSACBridgeProxy] while setting bean property
>>>>> 'value'; nested exception is org.springframework.beans.f
>>>>> actory.BeanCreationException: Error creating bean with name
>>>>> 'RSACBridgeProxy$child#38a2aba4' defined in class path resource
>>>>> [conf/rsf-config.xml]: Cannot resolve reference to bean 'RSACBeanLoca
>>>>> tor' while setting bean property 'RSACBeanLocator'; nested exception is
>>>>> org.springframework.beans.factory.BeanCreationException: Error creating
>>>>> bean with name 'RSACBeanLocator' defined in class
>>>>>    path resource [conf/rsf-config.xml]: Invocation of init method failed;
>>>>> nested exception is java.lang.NoClassDefFoundError:
>>>>> org/springframework/web/multipart/MultipartResolver
>>>>> Related cause:
>>>>> org.springframework.beans.factory.CannotLoadBeanClassException: Error
>>>>> loading class [uk.org.ponder.springutil.BlankMultipartResolver] for bean
>>>>> with name 'multipartResolver' defin
>>>>> ed in class path resource [conf/blank-applicationContext.xml]: problem
>>>>> with class file or dependent class; nested exception is
>>>>> java.lang.NoClassDefFoundError: org/springframework/web/multipart/
>>>>> MultipartResolver
>>>>> Related cause:
>>>>> org.springframework.beans.factory.CannotLoadBeanClassException: Cannot
>>>>> find class
>>>>> [org.springframework.web.multipart.commons.CommonsMultipartResolver] for
>>>>> bean with name 'commons
>>>>> MultipartResolver' defined in class path resource
>>>>> [conf/sakai-applicationContext.xml]; nested exception is
>>>>> java.lang.ClassNotFoundException:
>>>>> org.springframework.web.multipart.commons.CommonsMul
>>>>> tipartResolver
>>>>> Related cause:
>>>>> org.springframework.beans.factory.CannotLoadBeanClassException: Error
>>>>> loading class [uk.org.ponder.springutil.BlankMultipartResolver] for bean
>>>>> with name 'blankMultipartResolver'
>>>>> defined in class path resource [conf/sakai-applicationContext.xml]:
>>>>> problem with class file or dependent class; nested exception is
>>>>> java.lang.NoClassDefFoundError: org/springframework/web/multi
>>>>> part/MultipartResolver
>>>>> Related cause:
>>>>> org.springframework.beans.factory.CannotLoadBeanClassException: Error
>>>>> loading class [uk.org.ponder.springutil.BlankMultipartResolver] for bean
>>>>> with name 'multipartResolver' defin
>>>>> ed in class path resource [conf/blank-applicationContext.xml]: problem
>>>>> with class file or dependent class; nested exception is
>>>>> java.lang.NoClassDefFoundError: org/springframework/web/multipart/
>>>>> MultipartResolver
>>>>> Related cause:
>>>>> org.springframework.beans.factory.CannotLoadBeanClassException: Cannot
>>>>> find class
>>>>> [org.springframework.web.multipart.commons.CommonsMultipartResolver] for
>>>>> bean with name 'commons
>>>>> MultipartResolver' defined in class path resource
>>>>> [conf/sakai-applicationContext.xml]; nested exception is
>>>>> java.lang.ClassNotFoundException:
>>>>> org.springframework.web.multipart.commons.CommonsMul
>>>>> tipartResolver
>>>>> Related cause:
>>>>> org.springframework.beans.factory.CannotLoadBeanClassException: Error
>>>>> loading class [uk.org.ponder.springutil.BlankMultipartResolver] for bean
>>>>> with name 'blankMultipartResolver'
>>>>> defined in class path resource [conf/sakai-applicationContext.xml]:
>>>>> problem with class file or dependent class; nested exception is
>>>>> java.lang.NoClassDefFoundError: org/springframework/web/multi
>>>>> part/MultipartResolver
>>>>>
>>>>> (...)
>>>>>
>>>>> org.springframework.beans.factory.CannotLoadBeanClassException: Cannot
>>>>> find class
>>>>> [org.springframework.web.multipart.commons.CommonsMultipartResolver] for
>>>>> bean with name 'commonsMultipartResolver' defined in class path resource
>>>>> [conf/sakai-applicationContext.xml]; nested exception is
>>>>> java.lang.ClassNotFoundException:
>>>>> org.springframework.web.multipart.commons.CommonsMultipartResolver
>>>>>
>>>>> Caused by: java.lang.ClassNotFoundException:
>>>>> org.springframework.web.multipart.commons.CommonsMultipartResolver
>>>>>
>>>>>
>>>>> Thanks in advance.
>>>>> Best regards.
>>>>>
>>>>>         
>>>>>           
>>>> _______________________________________________
>>>> evaluation mailing list
>>>> evaluation at collab.sakaiproject.org
>>>> http://collab.sakaiproject.org/mailman/listinfo/evaluation
>>>>
>>>> TO UNSUBSCRIBE: send email to evaluation-unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe"
>>>>
>>>>
>>>>       
>>>>         
>> _______________________________________________
>> evaluation mailing list
>> evaluation at collab.sakaiproject.org
>> http://collab.sakaiproject.org/mailman/listinfo/evaluation
>>
>> TO UNSUBSCRIBE: send email to evaluation-unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe"
>>
>>   
>>     
>
>   

-- 
Daniel Merino Echeverría
daniel.merino at unavarra.es
Gestor de teleformación - Centro Superior de Innovación Educativa.
Tfno: 948-168489 - Universidad Pública de Navarra.
--
España solo hay una. Y esto es algo que el resto del mundo no sabe 
agradecernos. (Perich)


More information about the evaluation mailing list