Update 5.0.1 => 5.0.2 => org.springframework.beans.factory.CannotLoadBeanClassException

Hi list,

i just updated youtrack 5.0.1 instance on my server to 5.0.2.
After restarting tomcat and apache i only get this error messages:

org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [jetbrains.youtrack.workflow.persistent.WorkflowTranslator] for bean with name 'jetbrains.youtrack.workflow.persistent.WorkflowTranslator#0' defined in file http://forum.jetbrains.com/usr/share/tomcat/webapps/youtrack-5.0.2/WEB-INF/classes/jetbrains/youtrack/localization/translators/translatorsConfiguration.xml; nested exception is java.lang.ClassNotFoundException: jetbrains.youtrack.workflow.persistent.WorkflowTranslator
    org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1141)
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:524)
    org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1177)
    org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:222)
    org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:303)
    org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:947)
    org.springframework.beans.factory.BeanFactoryUtils.beansOfTypeIncludingAncestors(BeanFactoryUtils.java:270)
    webr.framework.controller.WebLocalClasspathXmlServiceLocator.getLocalBeansOfType(WebLocalClasspathXmlServiceLocator.java:97)
    jetbrains.springframework.configuration.runtime.ServiceLocator.getLocalBeansOfType(ServiceLocator.java:119)
    jetbrains.springframework.configuration.runtime.ServiceLocator.fireLocalAfterInit(ServiceLocator.java:104)
    jetbrains.charisma.main.ServletImpl.init(ServletImpl.java:70)
    javax.servlet.GenericServlet.init(GenericServlet.java:160)
    org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
    org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405)
    org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:196)
    org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515)
    org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:300)
    java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    java.lang.Thread.run(Thread.java:662)
root cause

java.lang.ClassNotFoundException: jetbrains.youtrack.workflow.persistent.WorkflowTranslator
    org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1678)
    org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1523)
    org.springframework.util.ClassUtils.forName(ClassUtils.java:211)
    org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:385)
    org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1138)
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:524)
    org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1177)
    org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:222)
    org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:303)
    org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:947)
    org.springframework.beans.factory.BeanFactoryUtils.beansOfTypeIncludingAncestors(BeanFactoryUtils.java:270)
    webr.framework.controller.WebLocalClasspathXmlServiceLocator.getLocalBeansOfType(WebLocalClasspathXmlServiceLocator.java:97)
    jetbrains.springframework.configuration.runtime.ServiceLocator.getLocalBeansOfType(ServiceLocator.java:119)
    jetbrains.springframework.configuration.runtime.ServiceLocator.fireLocalAfterInit(ServiceLocator.java:104)
    jetbrains.charisma.main.ServletImpl.init(ServletImpl.java:70)
    javax.servlet.GenericServlet.init(GenericServlet.java:160)
    org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
    org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405)
    org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:196)
    org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515)
    org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:300)
    java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    java.lang.Thread.run(Thread.java:662)  


Unfortunately I even could not go back to version 5.0.1, for this error keeps popping up.
Before updating youtrack I did not have this error.

Is there any thing I have to do to make this update work? Have I missed something?

Anyhints are welcome.

Best regards,
Tilman
7 comments
Comment actions Permalink
Hi list,

i cannot get it to work anymore.
Tried to fall back to previous version does not work. I keep getting this exception.

Is there anybody out there, having the same issue after updating to 5.0.2 and can point in right direction?

Regards,
Tilman
0
Comment actions Permalink
Hello Tilman,

Please try to execute as follows:
- stop Tomcat
  • remove tomcat/webapps/youtrack-xxx catalogue
  • put youtrack.war to the same directory
    - start Tomcat
Thank you.
0
Comment actions Permalink
thank you for your reply.
I tried this many times (/etc/init.d/tomcat restart)
But it seems that something was broken, because even if i stopped tomcat, it answers on port 8080.
So i tried to restart directly from bin, and this did it.
Now youtrack-5.0.2 runs but it seems to me, that there are issues and even projects missing. Is this possible?
0
Comment actions Permalink
It's kind of weird, but after rebooting my server, missing projects and issues are available again. So after some time of groping in the dark, now everything is fine again. Sorry for bringing this issue up.

Best regards,
Tilman
0
Comment actions Permalink
Hello Tilman,

Thank you keeping us in touch.
May it be the case, that you've run two YouTrack installation concurrently?
Also, am I correct that you've missed only some of the projects and issues, but not all of them? If it's about missing all issues and projects, I assume that you've started YouTrack under different Windows user.

Thank you.
0
Comment actions Permalink
Hello Andrey,

yes there were only some projects missing. But after rebooting my server they are back again. If there were two YouTrack instances running, the second one was unintentionally started. But thanks for this hint. Next time I will check this.
For now, i am happy again with my YouTrack instance :-)

Thank you very much for your support.

Regards,
Tilman
0
Comment actions Permalink
Tilman,

You are welcome!
0

Please sign in to leave a comment.