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

  • 404 errors after install

    I seem to have successfully deployed tcserver without AMS. I am using it in the tomcat mode. I added my war file to the webapps directory and it seems to have expanded correctly but when I attempt to reference it, I get 404 errors. I also tried applications called host-manager and manager with the same result. The only thing that works is the basic page.

  • #2
    Most likely your application failed to deploy. Check the log files, the error would be there.

    Comment


    • #3
      The log seems to imply that the server didn't install correctly

      ERROR ContextLoader - Context initialization failed
      org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'loginCommand'
      defined in class path resource [app/servlets/servletsContext.xml]: Cannot resolve reference to bean 'u
      serService' while setting bean property 'userService'; nested exception is org.springframework.beans.f
      actory.BeanCreationException: Error creating bean with name 'userService' defined in class path resour
      ce [app/services/servicesContext.xml]: Cannot resolve reference to bean 'userDao' while setting bean p
      roperty 'userDao'; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error
      creating bean with name 'userDao' defined in class path resource [app/services/servicesContext.xml]: C
      annot resolve reference to bean 'entityManagerFactory' while setting bean property 'entityManagerFacto
      ry'; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean
      with name 'entityManagerFactory' defined in class path resource [app/services/servicesContext.xml]: In
      stantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationExcepti on:
      Could not instantiate bean class [org.springframework.orm.jpa.LocalContainerEntityMa nagerFactoryBean]:
      Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: javax/persistence/Pe
      rsistenceException
      at org.springframework.beans.factory.support.BeanDefi nitionValueResolver.resolveReference(Bean
      DefinitionValueResolver.java:275)
      at org.springframework.beans.factory.support.BeanDefi nitionValueResolver.resolveValueIfNecessa
      ry(BeanDefinitionValueResolver.java:104)
      at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.applyPropertyV
      alues(AbstractAutowireCapableBeanFactory.java:1245 )
      at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.populateBean(A
      bstractAutowireCapableBeanFactory.java:1010)
      at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.doCreateBean(A
      bstractAutowireCapableBeanFactory.java:472)
      at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory$1.run(Abstract
      AutowireCapableBeanFactory.java:409)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(Abs
      tractAutowireCapableBeanFactory.java:380)
      at org.springframework.beans.factory.support.Abstract BeanFactory$1.getObject(AbstractBeanFacto
      ry.java:264)
      at org.springframework.beans.factory.support.DefaultS ingletonBeanRegistry.getSingleton(Default
      SingletonBeanRegistry.java:222)
      at org.springframework.beans.factory.support.Abstract BeanFactory.doGetBean(AbstractBeanFactory
      .java:261)

      Comment


      • #4
        missing library

        This library is missing
        java.lang.NoClassDefFoundError: javax/persistence/Pe
        rsistenceException


        Originally posted by garlicbulb View Post
        The log seems to imply that the aerver




        didn't install correctly

        ERROR ContextLoader - Context initialization failed
        org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'loginCommand'
        defined in class path resource [app/servlets/servletsContext.xml]: Cannot resolve reference to bean 'u
        serService' while setting bean property 'userService'; nested exception is org.springframework.beans.f
        actory.BeanCreationException: Error creating bean with name 'userService' defined in class path resour
        ce [app/services/servicesContext.xml]: Cannot resolve reference to bean 'userDao' while setting bean p
        roperty 'userDao'; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error
        creating bean with name 'userDao' defined in class path resource [app/services/servicesContext.xml]: C
        annot resolve reference to bean 'entityManagerFactory' while setting bean property 'entityManagerFacto
        ry'; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean
        with name 'entityManagerFactory' defined in class path resource [app/services/servicesContext.xml]: In
        stantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationExcepti on:
        Could not instantiate bean class [org.springframework.orm.jpa.LocalContainerEntityMa nagerFactoryBean]:
        Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: javax/persistence/Pe
        rsistenceException
        at org.springframework.beans.factory.support.BeanDefi nitionValueResolver.resolveReference(Bean
        DefinitionValueResolver.java:275)
        at org.springframework.beans.factory.support.BeanDefi nitionValueResolver.resolveValueIfNecessa
        ry(BeanDefinitionValueResolver.java:104)
        at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.applyPropertyV
        alues(AbstractAutowireCapableBeanFactory.java:1245 )
        at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.populateBean(A
        bstractAutowireCapableBeanFactory.java:1010)
        at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.doCreateBean(A
        bstractAutowireCapableBeanFactory.java:472)
        at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory$1.run(Abstract
        AutowireCapableBeanFactory.java:409)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(Abs
        tractAutowireCapableBeanFactory.java:380)
        at org.springframework.beans.factory.support.Abstract BeanFactory$1.getObject(AbstractBeanFacto
        ry.java:264)
        at org.springframework.beans.factory.support.DefaultS ingletonBeanRegistry.getSingleton(Default
        SingletonBeanRegistry.java:222)
        at org.springframework.beans.factory.support.Abstract BeanFactory.doGetBean(AbstractBeanFactory
        .java:261)

        Comment


        • #5
          How does one resolve that?

          Comment


          • #6
            What are you using for ORM, the class should be bundled with that software.

            Comment

            Working...
            X