Announcement Announcement Module
Collapse
No announcement yet.
getting bean creation exception while initializing SimpleRemoteStatelessSessionProxyF Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • getting bean creation exception while initializing SimpleRemoteStatelessSessionProxyF

    getting following error:

    Exception in thread "main" org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'adderBean' defined in class path resource [beans.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchFieldError: TRACE
    java.lang.NoSuchFieldError: TRACE
    at org.jboss.logging.Log4jLogger.translate(Log4jLogge r.java:58)
    at org.jboss.logging.Log4jLogger.isEnabled(Log4jLogge r.java:39)
    at org.jboss.logging.Logger.isTraceEnabled(Logger.jav a:99)
    at org.jnp.interfaces.NamingContext.lookup(NamingCont ext.java:721)
    at org.jnp.interfaces.NamingContext.lookup(NamingCont ext.java:688)
    at javax.naming.InitialContext.lookup(Unknown Source)
    at org.springframework.jndi.JndiTemplate$1.doInContex t(JndiTemplate.java:123)
    at org.springframework.jndi.JndiTemplate.execute(Jndi Template.java:85)
    at org.springframework.jndi.JndiTemplate.lookup(JndiT emplate.java:121)
    at org.springframework.jndi.JndiTemplate.lookup(JndiT emplate.java:146)
    at org.springframework.jndi.JndiLocatorSupport.lookup (JndiLocatorSupport.java:86)
    at org.springframework.jndi.JndiObjectLocator.lookup( JndiObjectLocator.java:104)
    at org.springframework.ejb.access.AbstractRemoteSlsbI nvokerInterceptor.lookup(AbstractRemoteSlsbInvoker Interceptor.java:93)
    at org.springframework.ejb.access.AbstractSlsbInvoker Interceptor.refreshHome(AbstractSlsbInvokerInterce ptor.java:102)
    at org.springframework.ejb.access.AbstractSlsbInvoker Interceptor.afterPropertiesSet(AbstractSlsbInvoker Interceptor.java:90)
    at org.springframework.ejb.access.SimpleRemoteStatele ssSessionProxyFactoryBean.afterPropertiesSet(Simpl eRemoteStatelessSessionProxyFactoryBean.java:95)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.invokeInitMethods(Abstr actAutowireCapableBeanFactory.java:859)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.initializeBean(Abstract AutowireCapableBeanFactory.java:828)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:409)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:235)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:144)
    at org.springframework.beans.factory.support.DefaultL istableBeanFactory.preInstantiateSingletons(Defaul tListableBeanFactory.java:264)
    at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:331)
    at org.springframework.context.support.ClassPathXmlAp plicationContext.<init>(ClassPathXmlApplicationCon text.java:87)
    at org.springframework.context.support.ClassPathXmlAp plicationContext.<init>(ClassPathXmlApplicationCon text.java:72)
    at org.springframework.context.support.ClassPathXmlAp plicationContext.<init>(ClassPathXmlApplicationCon text.java:63)
    at AutoWire.main(AutoWire.java:11)

    AutoWire.java file is:

    import java.rmi.RemoteException;
    import org.springframework.context.ApplicationContext;
    import org.springframework.context.support.ClassPathXmlAp plicationContext;
    import com.ejb.Adder;

    public class AutoWire
    {
    public static void main(String args[]) throws RemoteException
    {
    ApplicationContext context=new ClassPathXmlApplicationContext("beans.xml");
    Adder adder=(Adder)context.getBean("adderBean");
    int result=adder.add(34,6);
    System.out.println("34+6=" + result);
    }
    }

    i have deployed Adder.jar on JBOSS 6.1 AS while contains Adder.java, AdderHome.java, AdderBean.java, ejb-jar.xml file
Working...
X