Error starting up OG

Hi,

I have tried to start up OG server, but I am getting the follow error:

2011-09-07 20:31:54,782 [main] ERROR o.s.web.context.ContextLoader - Context initialization failed
org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.opengamma.integration.pnlexplain.rest.DataPnlExplainProcessorResource] for bean with name ‘pnlExplainRestBean’ defined in class path resource [com/opengamma/web/web-beans.xml]; nested exception is java.lang.ClassNotFoundException: com.opengamma.integration.pnlexplain.rest.DataPnlExplainProcessorResource
at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1235) [spring-beans-3.0.4.jar:3.0.4.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:576) [spring-beans-3.0.4.jar:3.0.4.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1304) [spring-beans-3.0.4.jar:3.0.4.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:870) [spring-beans-3.0.4.jar:3.0.4.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:562) [spring-beans-3.0.4.jar:3.0.4.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895) [spring-context-3.0.4.jar:3.0.4.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425) [spring-context-3.0.4.jar:3.0.4.RELEASE]
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276) [spring-web-3.0.4.jar:3.0.4.RELEASE]
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197) [spring-web-3.0.4.jar:3.0.4.RELEASE]
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47) [spring-web-3.0.4.jar:3.0.4.RELEASE]
at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:645) [jetty-server-7.0.1.v20091125.jar:7.0.1.v20091125]
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:189) [jetty-servlet-7.0.1.v20091125.jar:7.0.1.v20091125]
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:978) [jetty-webapp-7.0.1.v20091125.jar:7.0.1.v20091125]
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:586) [jetty-server-7.0.1.v20091125.jar:7.0.1.v20091125]
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:349) [jetty-webapp-7.0.1.v20091125.jar:7.0.1.v20091125]
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55) [jetty-util-7.0.1.v20091125.jar:7.0.1.v20091125]
at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:165) [jetty-server-7.0.1.v20091125.jar:7.0.1.v20091125]
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55) [jetty-util-7.0.1.v20091125.jar:7.0.1.v20091125]
at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:92) [jetty-server-7.0.1.v20091125.jar:7.0.1.v20091125]
at org.eclipse.jetty.server.Server.doStart(Server.java:228) [jetty-server-7.0.1.v20091125.jar:7.0.1.v20091125]
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55) [jetty-util-7.0.1.v20091125.jar:7.0.1.v20091125]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [na:1.6.0_26]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [na:1.6.0_26]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.6.0_26]
at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0_26]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1544) [spring-beans-3.0.4.jar:3.0.4.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1485) [spring-beans-3.0.4.jar:3.0.4.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417) [spring-beans-3.0.4.jar:3.0.4.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519) [spring-beans-3.0.4.jar:3.0.4.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) [spring-beans-3.0.4.jar:3.0.4.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291) [spring-beans-3.0.4.jar:3.0.4.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) [spring-beans-3.0.4.jar:3.0.4.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288) [spring-beans-3.0.4.jar:3.0.4.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190) [spring-beans-3.0.4.jar:3.0.4.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580) [spring-beans-3.0.4.jar:3.0.4.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895) [spring-context-3.0.4.jar:3.0.4.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425) [spring-context-3.0.4.jar:3.0.4.RELEASE]
at org.springframework.context.support.FileSystemXmlApplicationContext.(FileSystemXmlApplicationContext.java:140) [spring-context-3.0.4.jar:3.0.4.RELEASE]
at org.springframework.context.support.FileSystemXmlApplicationContext.(FileSystemXmlApplicationContext.java:84) [spring-context-3.0.4.jar:3.0.4.RELEASE]
at com.opengamma.web.jetty.JettyServer.process(JettyServer.java:65) [classes/:na]
at com.opengamma.web.jetty.JettyServer.run(JettyServer.java:49) [classes/:na]
at com.opengamma.examples.startup.ExampleServer.main(ExampleServer.java:19) [classes/:na]
Caused by: java.lang.ClassNotFoundException: com.opengamma.integration.pnlexplain.rest.DataPnlExplainProcessorResource
at java.net.URLClassLoader$1.run(URLClassLoader.java:202) [na:1.6.0_26]
at java.security.AccessController.doPrivileged(Native Method) [na:1.6.0_26]
at java.net.URLClassLoader.findClass(URLClassLoader.java:190) [na:1.6.0_26]
at java.lang.ClassLoader.loadClass(ClassLoader.java:306) [na:1.6.0_26]
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) [na:1.6.0_26]
at java.lang.ClassLoader.loadClass(ClassLoader.java:247) [na:1.6.0_26]

We don’t see a similar error here. What version are you using? v0.9 or git. Bear in mind that the git repository is being continually updated. It is possible that at the time you pulled there was a bug, but there isn’t a bug now.

Hi Stephen,

I am using git…It’s up-to-date. I am getting it now:

 [java] ================================== JETTY START BEGINS =======================================
 [java] 03:05:53.224 [main] WARN  n.s.e.config.ConfigurationFactory - No configuration found. Configuring ehcache from ehcache-failsafe.xml  found in the classpath: jar:file:/Users/henriqueolliveira/Dev/OG-Platform/projects/OG-Examples/lib/jar/net.sourceforge.ehcache/ehcache/ehcache-1.4.1.jar!/ehcache-failsafe.xml
 [java] 03:06:01.737 [main] ERROR c.o.e.m.SimulatedMarketDataGenerator - Not enough fields in CSV on line 2
 [java] 03:06:06.588 [main] ERROR c.o.e.m.SimulatedMarketDataGenerator - Not enough fields in CSV on line 506
 [java] 03:06:07.558 [pool-1-thread-1] ERROR c.o.e.f.CompiledFunctionService - Couldn't initialize function DEFAULT for IR_FUTURE_OPTION from DEFAULT Volatility Surface Data id=525 (RawVolatilitySurfaceDataFunction)
 [java] 03:06:07.578 [main] WARN  c.o.e.f.CompiledFunctionService - Couldn't initialize function
 [java] java.util.concurrent.ExecutionException: com.opengamma.OpenGammaRuntimeException: Couldn't initialize function
 [java] 	at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222) [na:1.6.0_26]
 [java] 	at java.util.concurrent.FutureTask.get(FutureTask.java:83) [na:1.6.0_26]
 [java] 	at com.opengamma.engine.function.CompiledFunctionService.initializeImpl(CompiledFunctionService.java:140) [og-engine-0.9.0-local-20110926232944.jar:na]
 [java] 	at com.opengamma.engine.function.CompiledFunctionService.initialize(CompiledFunctionService.java:178) [og-engine-0.9.0-local-20110926232944.jar:na]
 [java] 	at com.opengamma.engine.function.CompiledFunctionService.initialize(CompiledFunctionService.java:161) [og-engine-0.9.0-local-20110926232944.jar:na]
 [java] 	at com.opengamma.financial.view.ViewProcessorManager.start(ViewProcessorManager.java:157) [og-financial-0.9.0-local-20110926233301.jar:na]
 [java] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [na:1.6.0_26]
 [java] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [na:1.6.0_26]
 [java] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.6.0_26]
 [java] 	at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0_26]
 [java] 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1544) [spring-beans-3.0.4.jar:3.0.4.RELEASE]
 [java] 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1485) [spring-beans-3.0.4.jar:3.0.4.RELEASE]
 [java] 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417) [spring-beans-3.0.4.jar:3.0.4.RELEASE]
 [java] 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519) [spring-beans-3.0.4.jar:3.0.4.RELEASE]
 [java] 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) [spring-beans-3.0.4.jar:3.0.4.RELEASE]
 [java] 	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291) [spring-beans-3.0.4.jar:3.0.4.RELEASE]
 [java] 	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) [spring-beans-3.0.4.jar:3.0.4.RELEASE]
 [java] 	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288) [spring-beans-3.0.4.jar:3.0.4.RELEASE]
 [java] 	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190) [spring-beans-3.0.4.jar:3.0.4.RELEASE]
 [java] 	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580) [spring-beans-3.0.4.jar:3.0.4.RELEASE]
 [java] 	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895) [spring-context-3.0.4.jar:3.0.4.RELEASE]
 [java] 	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425) [spring-context-3.0.4.jar:3.0.4.RELEASE]
 [java] 	at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276) [spring-web-3.0.4.jar:3.0.4.RELEASE]
 [java] 	at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197) [spring-web-3.0.4.jar:3.0.4.RELEASE]
 [java] 	at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47) [spring-web-3.0.4.jar:3.0.4.RELEASE]
 [java] 	at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:645) [jetty-server-7.0.1.v20091125.jar:7.0.1.v20091125]
 [java] 	at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:189) [jetty-servlet-7.0.1.v20091125.jar:7.0.1.v20091125]
 [java] 	at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:978) [jetty-webapp-7.0.1.v20091125.jar:7.0.1.v20091125]
 [java] 	at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:586) [jetty-server-7.0.1.v20091125.jar:7.0.1.v20091125]
 [java] 	at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:349) [jetty-webapp-7.0.1.v20091125.jar:7.0.1.v20091125]
 [java] 	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55) [jetty-util-7.0.1.v20091125.jar:7.0.1.v20091125]
 [java] 	at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:165) [jetty-server-7.0.1.v20091125.jar:7.0.1.v20091125]
 [java] 	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55) [jetty-util-7.0.1.v20091125.jar:7.0.1.v20091125]
 [java] 	at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:92) [jetty-server-7.0.1.v20091125.jar:7.0.1.v20091125]
 [java] 	at org.eclipse.jetty.server.Server.doStart(Server.java:228) [jetty-server-7.0.1.v20091125.jar:7.0.1.v20091125]
 [java] 	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55) [jetty-util-7.0.1.v20091125.jar:7.0.1.v20091125]
 [java] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [na:1.6.0_26]
 [java] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 

I’m looking into this at the moment, have most of a fix checked in but have a problem with View Definitions not appearing in the resulting demo database sometimes. I’ll let you know when it’s done.

Thanks Jim