Cannot cross launch to Smart Reporting after upgrade Tomcat |
Newer Tomcat out of the box configurations create problems with the MidTier cross launch showing the following error in the MIdTier log: Caused by: javax.wsdl.WSDLException: WSDLException: faultCode=PARSER_ERROR: Problem parsing 'http://<host>:<port>/SmartReporting/YFErroPage?wsdl'.:org.xml.sax.SAXParseException: The element type "br" must be terminated by the matching end-tag. These versions require JAX-WS API to be enabled.
Steps to enable it: 1- Stop Smart Reporting service 2- Open the web.xml file located at: Bundle Tomcat: [SmartReportingInstall]/appserver/webapps/ROOT/WEB-INF External Tomcat: [TomcatInstall]/webapps/SmartReporting/WEB-INF 3- Remove the comment of the JAX-WS API: From: <!-- Uncomment this section to enable JAX-WS Web Services. Java 1.6+ only <listener> <listener-class> com.sun.xml.ws.transport.http.servlet.WSServletContextListener </listener-class> </listener> <servlet> <servlet-name>WebServices</servlet-name> <servlet-class> com.sun.xml.ws.transport.http.servlet.WSServlet </servlet-class> </servlet> <servlet-mapping> <servlet-name>WebServices</servlet-name> <url-pattern>/webservices/*</url-pattern> </servlet-mapping> --> to: <!-- Uncomment this section to enable JAX-WS Web Services. Java 1.6+ only --> <listener> <listener-class> com.sun.xml.ws.transport.http.servlet.WSServletContextListener </listener-class> </listener> <servlet> <servlet-name>WebServices</servlet-name> <servlet-class> com.sun.xml.ws.transport.http.servlet.WSServlet </servlet-class> </servlet> <servlet-mapping> <servlet-name>WebServices</servlet-name> <url-pattern>/webservices/*</url-pattern> </servlet-mapping> 4- Start the Smart Reporting service. |