Announcement Announcement Module
Collapse
No announcement yet.
applicationcontext errors ?? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • applicationcontext errors ??

    Hi, I have a strange problem I have been struggling with sometime and wonder if any of you might have a clue.

    Im running my application on a windowsXP, tomcat 5.0.28, springframework1.2.5, hibernate2, mysql 4.1.x and jdk1.4 and everything works nice and smooth, no exceptions.
    Now I have contact with a webhotel that are suppose to host this app and when I upload this war file I get the error shown below.
    The webhotel run the same versions but under linux 2.6.

    I have tryed to change the contextLoaderListner to the contextLoaderServlet without success and don't know what the problem is.
    Strange is that I have runned this app-version at another hosingcompany without problems, however they did not have the right DB.

    I do declare the homeController and the categoryService in my xml. Bear in mind this app works on a fresh downloaded tomcat server.

    Any suggestions would be great:

    2005-11-17 14:39:38 StandardContext[/buysell]Loading Spring root WebApplicationContext
    2005-11-17 14:39:39 StandardContext[/buysell]Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListe ner
    org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'homeController' defined in ServletContext resource [/WEB-INF/buysell-servlet.xml]: Can't resolve reference to bean 'categoryService' while setting property 'categoryService'; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'categoryService' defined in ServletContext resource [/WEB-INF/buysell-servlet.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.FatalBeanException: Could not instantiate class [org.springframework.transaction.interceptor.Transa ctionProxyFactoryBean]; constructor threw exception; nested exception is java.lang.ExceptionInInitializerError: null
    org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'categoryService' defined in ServletContext resource [/WEB-INF/buysell-servlet.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.FatalBeanException: Could not instantiate class [org.springframework.transaction.interceptor.Transa ctionProxyFactoryBean]; constructor threw exception; nested exception is java.lang.ExceptionInInitializerError: null
    org.springframework.beans.FatalBeanException: Could not instantiate class [org.springframework.transaction.interceptor.Transa ctionProxyFactoryBean]; constructor threw exception; nested exception is java.lang.ExceptionInInitializerError: null
    java.lang.ExceptionInInitializerError
    at net.sf.cglib.core.KeyFactory$Generator.generateCla ss(KeyFactory.java:167)
    at net.sf.cglib.core.DefaultGeneratorStrategy.generat e(DefaultGeneratorStrategy.java:25)
    at net.sf.cglib.core.AbstractClassGenerator.create(Ab stractClassGenerator.java:215)
    at net.sf.cglib.core.KeyFactory$Generator.create(KeyF actory.java:145)
    at net.sf.cglib.core.KeyFactory.create(KeyFactory.jav a:117)
    at net.sf.cglib.core.KeyFactory.create(KeyFactory.jav a:108)
    at net.sf.cglib.core.KeyFactory.create(KeyFactory.jav a:104)
    at net.sf.cglib.proxy.Enhancer.<clinit>(Enhancer.java :69)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:141)
    at org.springframework.aop.framework.DefaultAopProxyF actory.<clinit>(DefaultAopProxyFactory.java:57)
    at org.springframework.aop.framework.ProxyConfig.<ini t>(ProxyConfig.java:72)
    at org.springframework.transaction.interceptor.Transa ctionProxyFactoryBean.<init>(TransactionProxyFacto ryBean.java:113)
    at sun.reflect.NativeConstructorAccessorImpl.newInsta nce0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInsta nce(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newI nstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Construc tor.java:274)
    at org.springframework.beans.BeanUtils.instantiateCla ss(BeanUtils.java:100)
    at org.springframework.beans.BeanUtils.instantiateCla ss(BeanUtils.java:76)
    at org.springframework.beans.factory.support.SimpleIn stantiationStrategy.instantiate(SimpleInstantiatio nStrategy.java:49)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.instantiateBean(Abstrac tAutowireCapableBeanFactory.java:453)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:333)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:226)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:147)
    at org.springframework.beans.factory.support.BeanDefi nitionValueResolver.resolveReference(BeanDefinitio nValueResolver.java:176)
    at org.springframework.beans.factory.support.BeanDefi nitionValueResolver.resolveValueIfNecessary(BeanDe finitionValueResolver.java:105)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.applyPropertyValues(Abs tractAutowireCapableBeanFactory.java:1012)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.populateBean(AbstractAu towireCapableBeanFactory.java:823)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:345)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:226)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:147)
    at org.springframework.beans.factory.support.DefaultL istableBeanFactory.preInstantiateSingletons(Defaul tListableBeanFactory.java:275)
    at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:318)
    at org.springframework.web.context.support.AbstractRe freshableWebApplicationContext.refresh(AbstractRef reshableWebApplicationContext.java:134)
    at org.springframework.web.context.ContextLoader.crea teWebApplicationContext(ContextLoader.java:230)
    at org.springframework.web.context.ContextLoader.init WebApplicationContext(ContextLoader.java:156)
    at org.springframework.web.context.ContextLoaderListe ner.contextInitialized(ContextLoaderListener.java: 48)
    at org.apache.catalina.core.StandardContext.listenerS tart(StandardContext.java:3831)
    at org.apache.catalina.core.StandardContext.start(Sta ndardContext.java:4323)
    at org.apache.catalina.core.StandardHostDeployer.star t(StandardHostDeployer.java:830)
    at org.apache.catalina.core.StandardHost.start(Standa rdHost.java:991)
    at org.apache.catalina.manager.ManagerServlet.start(M anagerServlet.java:1326)
    at org.apache.catalina.manager.HTMLManagerServlet.sta rt(HTMLManagerServlet.java:530)
    at org.apache.catalina.manager.HTMLManagerServlet.doG et(HTMLManagerServlet.java:104)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:689)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:802)
    at sun.reflect.GeneratedMethodAccessor1088.invoke(Unk nown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.apache.catalina.security.SecurityUtil$1.run(Se curityUtil.java:243)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Subject .java:500)
    at org.apache.catalina.security.SecurityUtil.execute( SecurityUtil.java:272)
    at org.apache.catalina.security.SecurityUtil.doAsPriv ilege(SecurityUtil.java:161)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:245)
    at org.apache.catalina.core.ApplicationFilterChain.ac cess$000(ApplicationFilterChain.java:50)
    at org.apache.catalina.core.ApplicationFilterChain$1. run(ApplicationFilterChain.java:156)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:152)
    at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:214)
    at org.apache.catalina.core.StandardValveContext.invo keNext(StandardValveContext.java:104)
    at org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:520)
    at org.apache.catalina.core.StandardContextValve.invo keInternal(StandardContextValve.java:198)
    at org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:144)
    at org.apache.catalina.core.StandardValveContext.invo keNext(StandardValveContext.java:104)
    at org.apache.catalina.authenticator.AuthenticatorBas e.invoke(AuthenticatorBase.java:540)
    at org.apache.catalina.core.StandardValveContext.invo keNext(StandardValveContext.java:102)
    at org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:520)
    at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:137)
    at
Working...
X