Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Class not found error deploying war file to tomcat 7

    This is hopefully a fairly simple problem of deployment settings.

    I have a war file that includes my app, plus the isomorphic directory and the WEB-INF files from SmartClient_v100p_2015-11-11_Pro. I deploy the war using the tomcat web management app. When I try to browse to the app jsp file I get
    org.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspException: java.lang.ClassNotFoundException: com.isomorphic.sql.SQLDataSource

    There is of course a lot more to the error, but this feels like a class path problem. Being new to tomcat I don't know where to look for the relevant settings.

    The full error text:
    HTTP Status 500 - javax.servlet.ServletException: javax.servlet.jsp.JspException: java.lang.ClassNotFoundException: com.isomorphic.sql.SQLDataSource


    type Exception report
    message javax.servlet.ServletException: javax.servlet.jsp.JspException: java.lang.ClassNotFoundException: com.isomorphic.sql.SQLDataSource
    description The server encountered an internal error that prevented it from fulfilling this request.
    exception

    org.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspException: java.lang.ClassNotFoundException: com.isomorphic.sql.SQLDataSource at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:264) at com.isomorphic.base.Reflection.classForName(Reflection.java:141) at com.isomorphic.base.Reflection.getClassCache(Reflection.java:472) at com.isomorphic.base.Reflection.instantiateClass(Reflection.java:190) at com.isomorphic.base.Reflection.instantiateClass(Reflection.java:174) at com.isomorphic.interfaces.InterfaceProvider.load(InterfaceProvider.java:92) at com.isomorphic.datasource.BasicDataSource.fromConfig(BasicDataSource.java:160) at com.isomorphic.datasource.DataSource.fromConfig(DataSource.java:784) at com.isomorphic.datasource.DataSource.loadDS(DataSource.java:411) at com.isomorphic.datasource.DataSource.forName(DataSource.java:343) at com.isomorphic.datasource.PoolableDataSourceFactory.makeUnpooledObject(PoolableDataSourceFactory.java:132) at com.isomorphic.datasource.PoolableDataSourceFactory.makeObject(PoolableDataSourceFactory.java:148) at org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject(GenericKeyedObjectPool.java:1220) at com.isomorphic.pool.ISCKeyedObjectPool.borrowObject(ISCKeyedObjectPool.java:106) at com.isomorphic.pool.PoolManager.borrowObject(PoolManager.java:90) at com.isomorphic.datasource.DataSourceManager.getDataSource(DataSourceManager.java:135) at com.isomorphic.datasource.DataSourceManager.getDataSource(DataSourceManager.java:86) at com.isomorphic.datasource.DataSource.recordsFromXML(DataSource.java:1613) at com.isomorphic.datasource.IsomorphicXML.toRecord(IsomorphicXML.java:97) at com.isomorphic.datasource.BasicDataSource.toRecords(BasicDataSource.java:1184) at com.isomorphic.datasource.DataSource.recordsFromXML(DataSource.java:1601) at com.isomorphic.taglib.WidgetXMLTag.toJS(WidgetXMLTag.java:148) at com.isomorphic.taglib.WidgetXMLTag.parseAndOutputErrors(WidgetXMLTag.java:125) at com.isomorphic.taglib.WidgetXMLTag.doAfterBody(WidgetXMLTag.java:78) at org.apache.jsp.gradApplxml_jsp._jspx_meth_isomorphic_005fXML_005f0(gradApplxml_jsp.java:603) at org.apache.jsp.gradApplxml_jsp._jspService(gradApplxml_jsp.java:83) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:193) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745) org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:585) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:455) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334) javax.servlet.http.HttpServlet.service(HttpServlet.java:727) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
    root cause

    javax.servlet.ServletException: javax.servlet.jsp.JspException: java.lang.ClassNotFoundException: com.isomorphic.sql.SQLDataSource at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:264) at com.isomorphic.base.Reflection.classForName(Reflection.java:141) at com.isomorphic.base.Reflection.getClassCache(Reflection.java:472) at com.isomorphic.base.Reflection.instantiateClass(Reflection.java:190) at com.isomorphic.base.Reflection.instantiateClass(Reflection.java:174) at com.isomorphic.interfaces.InterfaceProvider.load(InterfaceProvider.java:92) at com.isomorphic.datasource.BasicDataSource.fromConfig(BasicDataSource.java:160) at com.isomorphic.datasource.DataSource.fromConfig(DataSource.java:784) at com.isomorphic.datasource.DataSource.loadDS(DataSource.java:411) at com.isomorphic.datasource.DataSource.forName(DataSource.java:343) at com.isomorphic.datasource.PoolableDataSourceFactory.makeUnpooledObject(PoolableDataSourceFactory.java:132) at com.isomorphic.datasource.PoolableDataSourceFactory.makeObject(PoolableDataSourceFactory.java:148) at org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject(GenericKeyedObjectPool.java:1220) at com.isomorphic.pool.ISCKeyedObjectPool.borrowObject(ISCKeyedObjectPool.java:106) at com.isomorphic.pool.PoolManager.borrowObject(PoolManager.java:90) at com.isomorphic.datasource.DataSourceManager.getDataSource(DataSourceManager.java:135) at com.isomorphic.datasource.DataSourceManager.getDataSource(DataSourceManager.java:86) at com.isomorphic.datasource.DataSource.recordsFromXML(DataSource.java:1613) at com.isomorphic.datasource.IsomorphicXML.toRecord(IsomorphicXML.java:97) at com.isomorphic.datasource.BasicDataSource.toRecords(BasicDataSource.java:1184) at com.isomorphic.datasource.DataSource.recordsFromXML(DataSource.java:1601) at com.isomorphic.taglib.WidgetXMLTag.toJS(WidgetXMLTag.java:148) at com.isomorphic.taglib.WidgetXMLTag.parseAndOutputErrors(WidgetXMLTag.java:125) at com.isomorphic.taglib.WidgetXMLTag.doAfterBody(WidgetXMLTag.java:78) at org.apache.jsp.gradApplxml_jsp._jspx_meth_isomorphic_005fXML_005f0(gradApplxml_jsp.java:603) at org.apache.jsp.gradApplxml_jsp._jspService(gradApplxml_jsp.java:83) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:193) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745) org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:916) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:845) org.apache.jsp.gradApplxml_jsp._jspService(gradApplxml_jsp.java:92) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) javax.servlet.http.HttpServlet.service(HttpServlet.java:727) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334) javax.servlet.http.HttpServlet.service(HttpServlet.java:727) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
    root cause

    javax.servlet.jsp.JspException: java.lang.ClassNotFoundException: com.isomorphic.sql.SQLDataSource at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:264) at com.isomorphic.base.Reflection.classForName(Reflection.java:141) at com.isomorphic.base.Reflection.getClassCache(Reflection.java:472) at com.isomorphic.base.Reflection.instantiateClass(Reflection.java:190) at com.isomorphic.base.Reflection.instantiateClass(Reflection.java:174) at com.isomorphic.interfaces.InterfaceProvider.load(InterfaceProvider.java:92) at com.isomorphic.datasource.BasicDataSource.fromConfig(BasicDataSource.java:160) at com.isomorphic.datasource.DataSource.fromConfig(DataSource.java:784) at com.isomorphic.datasource.DataSource.loadDS(DataSource.java:411) at com.isomorphic.datasource.DataSource.forName(DataSource.java:343) at com.isomorphic.datasource.PoolableDataSourceFactory.makeUnpooledObject(PoolableDataSourceFactory.java:132) at com.isomorphic.datasource.PoolableDataSourceFactory.makeObject(PoolableDataSourceFactory.java:148) at org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject(GenericKeyedObjectPool.java:1220) at com.isomorphic.pool.ISCKeyedObjectPool.borrowObject(ISCKeyedObjectPool.java:106) at com.isomorphic.pool.PoolManager.borrowObject(PoolManager.java:90) at com.isomorphic.datasource.DataSourceManager.getDataSource(DataSourceManager.java:135) at com.isomorphic.datasource.DataSourceManager.getDataSource(DataSourceManager.java:86) at com.isomorphic.datasource.DataSource.recordsFromXML(DataSource.java:1613) at com.isomorphic.datasource.IsomorphicXML.toRecord(IsomorphicXML.java:97) at com.isomorphic.datasource.BasicDataSource.toRecords(BasicDataSource.java:1184) at com.isomorphic.datasource.DataSource.recordsFromXML(DataSource.java:1601) at com.isomorphic.taglib.WidgetXMLTag.toJS(WidgetXMLTag.java:148) at com.isomorphic.taglib.WidgetXMLTag.parseAndOutputErrors(WidgetXMLTag.java:125) at com.isomorphic.taglib.WidgetXMLTag.doAfterBody(WidgetXMLTag.java:78) at org.apache.jsp.gradApplxml_jsp._jspx_meth_isomorphic_005fXML_005f0(gradApplxml_jsp.java:603) at org.apache.jsp.gradApplxml_jsp._jspService(gradApplxml_jsp.java:83) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:193) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745) com.isomorphic.taglib.WidgetXMLTag.doAfterBody(WidgetXMLTag.java:81) org.apache.jsp.gradApplxml_jsp._jspx_meth_isomorphic_005fXML_005f0(gradApplxml_jsp.java:603) org.apache.jsp.gradApplxml_jsp._jspService(gradApplxml_jsp.java:83) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) javax.servlet.http.HttpServlet.service(HttpServlet.java:727) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334) javax.servlet.http.HttpServlet.service(HttpServlet.java:727) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
    note The full stack trace of the root cause is available in the Apache Tomcat/7.0.54 logs.

    Apache Tomcat/7.0.54


    #2
    This doesn't look like a settings issue per se, just the lack of isomorphic_sql.jar or one of it's dependencies. See "javaModuleDependencies" in the SmartClient Reference.

    Comment

    Working...
    X