Migration java,tomcat,postgre on ubuntu

June 20, 2016 653 views
Applications PostgreSQL Java

The problems are when I migrate from old server(ubuntu9.0.4, postgre 8.3,tomcat 6.0.14) on the new server(ubuntu 16.0.4, postgre 9.5, tomcat 6.0.45).

  1. First problem is that the tomcat webaps not comunicating with postgre databases on localhost(127.0.0.1). We can connect on database and managet it.

2.The second problem , the sorucecode is same for more webapps, but across the URL in browser we connect on different database and css files and some weppage drop error, others working .

error code:

HTTP Status 500 - Unable to compile class for JSP:

type Exception report

message Unable to compile class for JSP:

description The server encountered an internal error that prevented it from fulfilling this request.

exception

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

An error occurred at line: 6 in the generated java file
Only a type can be imported. org.apache.commons.httpclient.URI resolves to a package

Stacktrace:
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:460)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:356)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:334)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:321)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:592)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
szilanus.iconnect.util.CharsetFilter.doFilter(CharsetFilter.java:26)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.45 logs.

Be the first one to answer this question.