Leave feedback
  • Question

    Unable to start a StreamServe web application on Tomcat

Enter a new topic
  • Vladimir Selivanov Vladimir Selivanov
    0 likes 512 views

    Dear Colleagues,

    I am facing an issue with starting a new StreamServe web application, deployed onto Tomcat 7 via the Control Center.

    Based on the log file, the application expects a lowercase spring app name 'portal'. However, if I rename the app folder in the exploded StreamServe web application, another components are starting to look for the 'Portal' with a uppercase P.

    Please find the log snippet below.

    Could you please advise what could be the root cause of the issue?

    Thank you

    Kind regards,

    Vladimir

    Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from ServletContext resource [/WEB-INF/apps/portal/spring/application.xml]; nested exception is java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/apps/portal/spring/application.xml]
    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:341)
    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)
    at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:174)
    at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:209)
    at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:180)
    at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:125)
    at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)
    at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:131)
    at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:530)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:444)
    at com.streamserve.web.framework.application.SpringApplicationResolver.loadApplication(SpringApplicationResolver.java:193)
    ... 54 more
    Caused by: java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/apps/portal/spring/application.xml]
    at org.springframework.web.context.support.ServletContextResource.getInputStream(ServletContextResource.java:140)
    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:328)
    ... 64 more

    Tuesday 10 January, 2017
  • Christofer Lindqvist Christofer Lindqvist StreamServe Employee
    0 likes

    Hi,

    Which version are you running? Which web application are you deploying?

    Default behaviour is that you should browse to http://localhost:8080/StreamStudio/Portal/start (case sensitive, where StreamStudio in this case is the name of the application you deployed in Tomcat).

    Regards,
    Christofer

    Tuesday 10 January, 2017