Quantcast
Channel: SCN : Popular Discussions - SAP HANA Cloud Platform Developer Center
Viewing all articles
Browse latest Browse all 1318

Spring and JPA Error in NetWeaver Neo

$
0
0

Hello all,

 

               I have created a Spring+JPA application based on this link on Netweaver Neo http://cw.sdn.sap.com/cw/community/neo/blog/2011/12/23/spring-and-jpa . However if i try to run the application i m getting the following error. I have searched for the Must start with Java agent to use InstrumentationLoadTimeWeaver  error but couldn't find any solution.

 

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'helloBean' defined in class path resource [beans.xml]: Cannot resolve reference to bean 'personDAO' while setting bean property 'personDAO'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'personDAO' defined in class path resource [beans.xml]: Cannot resolve reference to bean 'entityManagerFactory' while setting bean property 'entityManagerFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [beans.xml]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: Must start with Java agent to use InstrumentationLoadTimeWeaver. See Spring documentation.

 

 

          at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)

          at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)

          at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1360)

          at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1118)

          at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)

          at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)

          at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)

          at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)

          at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)

          at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)

          at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)

          at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)

          at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)

          at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)

          at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)

          at com.arteriatech.HelloWorld.HelloWorld.init(HelloWorld.java:127)

          at javax.servlet.GenericServlet.init(GenericServlet.java:244)

          at sun.reflect.GeneratedMethodAccessor62.invoke(Unknown Source)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

          at java.lang.reflect.Method.invoke(Unknown Source)

          at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:274)

          at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:271)

          at java.security.AccessController.doPrivileged(Native Method)

          at javax.security.auth.Subject.doAsPrivileged(Unknown Source)

          at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:306)

          at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:166)

          at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:120)

          at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1260)

          at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1185)

          at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:857)

          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:135)

          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)

          at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)

          at com.sap.security.auth.service.webcontainer.internal.Authenticator.invoke(Authenticator.java:135)

          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)

          at com.sap.core.js.dsi.tomcat.valve.DistributedSecurityIndexValve.invoke(DistributedSecurityIndexValve.java:137)

          at com.sap.security.neo.local.form.auth.LoginScreensValve.invoke(LoginScreensValve.java:65)

          at com.sap.security.auth.basic.LoginScreensValve.invoke(LoginScreensValve.java:56)

          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)

          at com.sap.core.tenant.valve.TenantValidationValve.invokeNextValve(TenantValidationValve.java:159)

          at com.sap.core.tenant.valve.TenantValidationValve.invoke(TenantValidationValve.java:73)

          at com.sap.core.js.monitoring.tomcat.valve.RequestTracingValve.invoke(RequestTracingValve.java:27)

          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)

          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)

          at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:987)

          at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)

          at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:307)

          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

          at java.lang.Thread.run(Unknown Source)

 

can anyone help me.?

 

Thanks in advance

-----------------------------

         Amit


Viewing all articles
Browse latest Browse all 1318

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>