Hi Andy,

Still having no luck. I merged the xml's as you suggesed & I get the following 
errors :- 

spring.jar/org/springframework/jmx/export/annotation/ManagedAttribute.class 
context=file:/C:/jboss-5.0.0.Beta3/server/default/deploy/ 
real=jar:file:/C:/DOCUME~1/Ragav/LOCALS~1
13:59:27,734 INFO  [SpringInjectionInterceptor] Instantiating 
SpringInjectionInterceptor
13:59:32,141 INFO  [MCKernelAbstraction] installing bean: 
jboss.j2ee:ear=Ejb3.ear,jar=Ejb3.jar,name=CalculatorBean,service=EJB3 with 
dependencies:
13:59:32,141 INFO  [MCKernelAbstraction]   and supplies:
13:59:32,141 INFO  [MCKernelAbstraction]        
Class:com.ejb3.interfaces.Calculator
13:59:34,328 INFO  [EJBContainer] STARTED EJB: com.ejb3.beans.CalculatorBean 
ejbName: CalculatorBean
13:59:34,859 INFO  [EJBContainer] STOPPED EJB: com.ejb3.beans.CalculatorBean 
ejbName: CalculatorBean
13:59:34,859 ERROR [AbstractKernelController] Error installing to Start: 
name=jboss.j2ee:ear=Ejb3.ear,jar=Ejb3.jar,name=CalculatorBean,service=EJB3 
state=Create
java.lang.NullPointerException
        at 
org.jboss.ejb.txtimer.EJBTimerServiceImpl.restoreTimers(EJBTimerServiceImpl.java:452)
        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:597)
        at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
        at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
        at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
        at $Proxy74.restoreTimers(Unknown Source)
        at 
org.jboss.ejb3.timerservice.jboss.JBossTimerServiceFactory.restoreTimerService(JBossTimerServiceFactory.java:121)
        at 
org.jboss.ejb3.stateless.StatelessContainer.start(StatelessContainer.java:128)
        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:597)
        at 
org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:56)
        at 
org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:110)
        at 
org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
        at 
org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:214)
        at 
org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:45)
        at 
org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:108)
        at 
org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:69)
        at 
org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:221)
        at 
org.jboss.kernel.plugins.dependency.KernelControllerContextAction.installAction(KernelControllerContextAction.java:135)
        at 
org.jboss.kernel.plugins.dependency.KernelControllerContextAction.installAction(KernelControllerContextAction.java:46)
13:59:34,891 INFO  [MCKernelAbstraction] installing bean: 
jboss.j2ee:ear=Ejb3.ear,jar=Ejb3.jar,name=SayHelloBean,service=EJB3 with 
dependencies:
13:59:34,891 INFO  [MCKernelAbstraction] installing bean: 
jboss.j2ee:ear=Ejb3.ear,jar=Ejb3.jar,name=SayHelloBean,service=EJB3 with 
dependencies:
13:59:34,891 INFO  [MCKernelAbstraction]   and supplies:
13:59:34,891 INFO  [MCKernelAbstraction]        
Class:com.ejb3.interfaces.SayHello
13:59:37,438 INFO  [NamedXmlApplicationContext] Refreshing [EMAIL PROTECTED]: 
display name [EMAIL PROTECTED]; startup date [Sun Dec 23 13:59:35 EST 2007]; 
root of context hierarchy
13:59:37,969 INFO  [NamedXmlBeanDefinitionReader] Loading XML bean definitions 
from URL 
[vfsfile:/C:/jboss-5.0.0.Beta3/server/default/deploy/Ejb3.ear/spring-inject.jar/META-INF/jboss-spring.xml]
13:59:39,250 INFO  [NamedXmlApplicationContext] Bean factory for application 
context [EMAIL PROTECTED]: [EMAIL PROTECTED]
13:59:39,281 INFO  [DefaultListableBeanFactory] Pre-instantiating singletons in 
[EMAIL PROTECTED]: defining beans [person]; root of factory hierarchy
13:59:40,266 INFO  [TomcatDeployment] deploy, ctxPath=/ejb3, 
vfsUrl=Ejb3.ear/Ejb3.war
13:59:47,562 INFO  [ContextLoaderPlugIn] ContextLoaderPlugIn for Struts 
ActionServlet 'action, module '': initialization started
13:59:47,562 INFO  [[/ejb3]] Initializing WebApplicationContext for Struts 
ActionServlet 'action', module ''
13:59:47,562 INFO  [XmlWebApplicationContext] Refreshing [EMAIL PROTECTED]: 
display name [WebApplicationContext for namespace 'action-servlet']; startup 
date [Sun Dec 23 13:59:47 EST 2007]; root of context hierarchy
13:59:47,875 INFO  [XmlBeanDefinitionReader] Loading XML bean definitions from 
ServletContext resource [/WEB-INF/spring-ejb3.xml]
13:59:48,031 INFO  [XmlWebApplicationContext] Bean factory for application 
context [EMAIL PROTECTED]: [EMAIL PROTECTED]
13:59:48,047 INFO  [DefaultListableBeanFactory] Pre-instantiating singletons in 
[EMAIL PROTECTED]: defining beans [/home,ejbLocalIntf]; root of factory 
hierarchy
13:59:48,250 INFO  [DefaultListableBeanFactory] Destroying singletons in [EMAIL 
PROTECTED]: defining beans [/home,ejbLocalIntf]; root of factory hierarchy
13:59:48,250 ERROR [ContextLoaderPlugIn] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name '/home' defined in ServletContext resource 
[/WEB-INF/spring-ejb3.xml]: Cannot resolve reference to bean 'ejbLocalIntf' 
while setting bean property 'sayhello'; nested exception is 
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'ejbLocalIntf': Invocation of init method failed; nested exception is 
javax.naming.NameNotFoundException: Ejb3 not bound
Caused by:
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'ejbLocalIntf': Invocation of init method failed; nested exception is 
javax.naming.NameNotFoundException: Ejb3 not bound
Caused by:
javax.naming.NameNotFoundException: Ejb3 not bound
        at org.jnp.server.NamingServer.getBinding(NamingServer.java:542)
        at org.jnp.server.NamingServer.getBinding(NamingServer.java:550)
        at org.jnp.server.NamingServer.getObject(NamingServer.java:556)
        at org.jnp.server.NamingServer.lookup(NamingServer.java:267)
        at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:669)
        at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:629)
        at javax.naming.InitialContext.lookup(InitialContext.java:392)
        at 
org.springframework.jndi.JndiTemplate$1.doInContext(JndiTemplate.java:123)
        at org.springframework.jndi.JndiTemplate.execute(JndiTemplate.java:85)
        at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:121)
        at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:146)
        at 
org.springframework.jndi.JndiLocatorSupport.lookup(JndiLocatorSupport.java:93)
        at 
org.springframework.jndi.JndiObjectLocator.lookup(JndiObjectLocator.java:105)
        at 
org.springframework.jndi.JndiObjectFactoryBean.lookupWithFallback(JndiObjectFactoryBean.java:197)
        at 
org.springframework.jndi.JndiObjectFactoryBean.afterPropertiesSet(JndiObjectFactoryBean.java:184)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1202)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1172)


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115277#4115277

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115277
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to