Forum

This content is now out of date.

Visit Our Community

Unable to compile class for JSP after 6.0 to 7.2 upgrade

hi,

We recently upgrade from YF 6.0 to 7.2 using the upgrade installation file. The server using on Tomcat 5. After the upgrade, the custom login page no longer work and we the following exception:

Error: org.apache.jasper.JasperException: Unable to compile class for JSP

I switch the welcome file (web.xml) to the default index_ias.jsp, and still getting a compiling JSP file error.


Do I need to install a newer version of Tomcat? or do I need to do a fresh install to resolve?

Here is the stacktrace for index_ias.jsp:

An error occurred at line: 1 in the generated java file
The type java.io.ObjectInputStream cannot be resolved. It is indirectly referenced from required .class files
Stacktrace:
At:
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:93)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:435)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:298)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:265)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:302)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:679)
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:461)
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:399)
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1083)
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:396)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:232)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
javax.servlet.http.HttpServlet.service(HttpServlet.java:627)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
com.hof.servlet.BrowserHeaderFilter.doFilter(BrowserHeaderFilter.java:43)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875)
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
java.lang.Thread.run(Unknown Source)
Hi Dicky,

I hope all is well,

I have looked into this and have found a previous forum post based on something very similar to the issue that you are experiencing.

If you can read through the link below and get back to me with the results. You can see that an upgrade of Tomcat helped, so it might be worth looking into this;

https://www.yellowfinbi.com/YFForum-Java-error-on-first-page-load-?thread=228197

Regards,
Mark

Hi Mark, I saw that post when I was looking for the answer. I am wasn't about to do a clean install to resolve this issue. I have talked to my team and we are planning to do a separate install side by side to ensure the new install works first before uninstalling the old instance.

If the new installation works, is there any documentation on how to switch the database connection and the web server port to the old instance, so that I don't have to import and setup everything again?

Thanks
Hi Dicky,

To my knowledge there is no official documentation regarding this although I can provide the link below, which briefly touches on the migration of Yellowfin etc. although I'm not to sure how helpful this would be for you with regards to what you are looking for.

http://www.yellowfinbi.com/YFForum-Migrating-Yellowfin-Guide-?thread=105088

Going forward though, from using the 'upgrade' installation option, you should have had everything saved from your previous installation, minus a few tweaks here and there that you would need to alter/change.

Regards,
Mark

Thanks for trying Yellowfin

Please complete the form below to request your copy of Yellowfin today.