FAIL - Application at context path /jasperserver could not be started

0

Hi all, Jasperserver was warking without problem until stop/start Tomcat. After that all webapps ara running except Jasperserver. If i try to start via tomcat manager the message FAIL - Application at context path /jasperserver could not be started is returned.

I know is a lot of log but really i don't know what happens and what to do. Thanks for any kinf of help or suggestion.

catalina log is :

Dec 2, 2014 1:25:39 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Dec 2, 2014 1:25:39 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/jasperserver] startup failed due to previous errorse here..

localhost log is :

'refresh' before accessing beans via the ApplicationContext
    at org.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory(AbstractRefreshableApplicationContext.java:172)
    at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1078)
    at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1052)
    at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:1000)
    at org.springframework.web.context.ContextLoader.closeWebApplicationContext(ContextLoader.java:554)
    at org.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:142)
    at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4245)
    at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4886)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4750)
    at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1276)
    at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:625)
    at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:136)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:194)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:563)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
    at java.lang.Thread.run(Thread.java:736)
Dec 2, 2014 1:25:39 PM org.apache.catalina.core.ApplicationContext log
INFO: Shutting down log4j

manager log is:

 
pspjasper's picture
-19
Joined: Jul 18 2014 - 1:04am
Last seen: 2 weeks 2 days ago

2 Answers:

1

Please look into /WEB-INF/applicationContext-events-logging.xml, the first line should have some space or wanted characters. Have a look at this discussion

http://stackoverflow.com/questions/5138696/org-xml-sax-saxparseexception...

 

nthapa's picture
463
Joined: Jan 24 2014 - 9:53am
Last seen: 3 years 1 month ago
0

Hi

i was following the same trail and i found that my /WEB-INF/applicationContext-events-logging.xml is

#
# You can find all possible configuration parameters here:
# http://jasperforge.org/uploads/publish/jasperreportswebsite/trunk/config.reference.html
#
 
# general export properties
#net.sf.jasperreports.export.ignore.page.margins=true
 
# docx export properties
net.sf.jasperreports.export.docx.frames.as.nested.tables=true
 
# xls export properties (also for xlsx)
net.sf.jasperreports.export.xls.white.page.background=true
net.sf.jasperreports.export.xls.one.page.per.sheet=true
#net.sf.jasperreports.export.xls.remove.empty.space.between.columns=true
#net.sf.jasperreports.export.xls.remove.empty.space.between.rows=true
 
# csv export properties
net.sf.jasperreports.csv.field.delimiter=\t
 
# html export properties
net.sf.jasperreports.export.html.output.images.to.dir=true
net.sf.jasperreports.export.html.images.dir=/reports/tmp
net.sf.jasperreports.export.html.output.images.uri=/JasperReportsIntegration/reports/tmp/

I think it is totally wrong. I dont know what happens. How can i restore the right file?

Thanks.

pspjasper's picture
-19
Joined: Jul 18 2014 - 1:04am
Last seen: 2 weeks 2 days ago

Just for the shake of testing could you please remove all the commented line and also make sure there are no hidden characters except for what you see. NOTE: please make a backup before you do the changes.

nthapa - 4 years 7 months ago

I surely follow your suggestion but i think that my file looks to be a *.properties not an xml.
I have to reinstall the server?
Can i use the Tomcat manager's "deploy"?
There is in the installation jar an originale "applicationContext-events-logging.xml" to copy?
I will try one of these.
Thanks.

pspjasper - 4 years 7 months ago

Oops, didnt catch that, yes, you seem to somehow overwritten your xml file with content from .properties file. If you could get the xml file you dont need to reinstall.

nthapa - 4 years 7 months ago
show 2 more...

I found the same file here

./buildomatic/conf_source/ieCe/applicationContext-events-logging.xml

and the server restart correctly.

pspjasper - 4 years 7 months ago

Not sure, why it works on the other server, but regardless that is not the correct content.

nthapa - 4 years 7 months ago
Feedback