Announcement

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

    DS Console not loading (missing unused hibernate)

    Hi Isomorphic,

    I get this error when trying to open the DS Console (v10.0p_2015-04-10, see screenshot).
    I'm not using hibernate and do not have hibernate in my class path or WEB-INF\libs directory.

    Server log:
    === 2015-04-10 19:13:26,747 [c-11] INFO RequestContext - URL: '/lms/lms/tools/adminConsoleOperations.jsp', User-Agent: 'Mozilla/5.0 (Windows NT 6.3; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0': Moz (Gecko) with Accept-Encoding header
    === 2015-04-10 19:13:26,760 [c-11] DEBUG RPCManager - Processing 2 requests.
    === 2015-04-10 19:13:26,761 [c-11] DEBUG RPCManager - Request #1 (RPCRequest) data: {
    appID:"isc_builtin",
    className:"com.isomorphic.tools.AdminConsole",
    methodName:"getDefinedDatabases",
    arguments:[
    true
    ],
    is_ISC_RPC_DMI:true
    }
    === 2015-04-10 19:13:26,762 [c-11] DEBUG RPCManager - Request #2 (RPCRequest) data: {
    appID:"isc_builtin",
    className:"com.isomorphic.tools.BuiltinRPC",
    methodName:"getDefinedDataSources",
    arguments:[
    ],
    is_ISC_RPC_DMI:true
    }
    === 2015-04-10 19:13:26,767 [c-11] DEBUG RPCDMI - appConfig: isc.Application.create({
    rpcBindings:[
    {
    ID:"builtin",
    className:"com.isomorphic.rpc.BuiltinRPC",
    visibleMethods:[
    {
    name:"downloadWSDL"
    },
    {
    name:"downloadClientContent"
    },
    {
    name:"downloadClientExport"
    },
    {
    name:"xmlToJS"
    },
    {
    name:"uploadProgressCheck"
    },
    {
    name:"saveFile"
    },
    {
    name:"appendToFile"
    },
    {
    name:"loadFile"
    },
    {
    name:"deleteFile"
    },
    {
    name:"loadSharedXML"
    },
    {
    name:"saveSharedXML"
    },
    {
    name:"getAvailableScriptEngines"
    },
    {
    name:"devConsoleEvalServerScript"
    },
    {
    name:"evalJava"
    },
    {
    name:"getLogNames"
    },
    {
    name:"getLogEntries"
    },
    {
    name:"clearLogEntries"
    },
    {
    name:"getLogThresholds"
    },
    {
    name:"setLogThreshold"
    },
    {
    name:"setTemporaryLogThreshold"
    },
    {
    name:"revertTemporaryLogThresholds"
    },
    {
    name:"getPdfObject"
    },
    {
    name:"exportImage"
    },
    {
    name:"areServerTimingsTracked"
    },
    {
    name:"trackServerTimings"
    }
    ]
    },
    {
    ID:"builtin_tools",
    className:"com.isomorphic.tools.BuiltinRPC",
    visibleMethods:[
    {
    name:"getDataSourceFromTable"
    },
    {
    name:"getDataSourceJSONFromTable"
    },
    {
    name:"getDataSourceFromHibernateMapping"
    },
    {
    name:"getDataSourceJSONFromHibernateMapping"
    },
    {
    name:"getTables"
    },
    {
    name:"getFieldsFromTable"
    },
    {
    name:"getBeanFields"
    },
    {
    name:"getHibernateBeans"
    },
    {
    name:"getDatabaseProductNameAndVersion"
    },
    {
    name:"getDatabaseTableTypes"
    },
    {
    name:"setAttributes"
    },
    {
    name:"clearAttributes"
    },
    {
    name:"getAttributes"
    },
    {
    name:"getAttribute"
    },
    {
    name:"getDataSourceConfigFromJavaClass"
    },
    {
    args:"cName",
    language:"groovy",
    name:"getJavaSource",
    script:"\n if (!com.isomorphic.auth.DevModeAuthFilter.devModeAuthorized(request)) throw new Exception(\"Not Authorized\"); \n //import org.apache.bcel.Repository;\n\n try {\n return org.apache.bcel.Repository.lookupClass(cName).toString();\n } catch (Throwable e) {\n return \"Unable to reverse engineer class \"+cName+\": \"+e.getMessage();\n }\n "
    },
    {
    name:"loadDataSource"
    },
    {
    name:"dsFromXML"
    },
    {
    name:"dsConfigFromXML"
    },
    {
    name:"getDefinedDataSources"
    }
    ]
    },
    {
    ID:"builtin_adminconsole",
    className:"com.isomorphic.tools.AdminConsole",
    visibleMethods:[
    {
    name:"getDefinedDatabases"
    },
    {
    name:"testDB"
    },
    {
    name:"saveDBConfig"
    },
    {
    name:"setDefaultDB"
    },
    {
    name:"importDataSources"
    },
    {
    name:"discoverJNDIDatabases"
    }
    ]
    }
    ]
    })

    === 2015-04-10 19:13:26,773 [c-11] DEBUG RPCDMI - appConfig: isc.Application.create({
    rpcBindings:[
    {
    ID:"builtin",
    className:"com.isomorphic.rpc.BuiltinRPC",
    visibleMethods:[
    {
    name:"downloadWSDL"
    },
    {
    name:"downloadClientContent"
    },
    {
    name:"downloadClientExport"
    },
    {
    name:"xmlToJS"
    },
    {
    name:"uploadProgressCheck"
    },
    {
    name:"saveFile"
    },
    {
    name:"appendToFile"
    },
    {
    name:"loadFile"
    },
    {
    name:"deleteFile"
    },
    {
    name:"loadSharedXML"
    },
    {
    name:"saveSharedXML"
    },
    {
    name:"getAvailableScriptEngines"
    },
    {
    name:"devConsoleEvalServerScript"
    },
    {
    name:"evalJava"
    },
    {
    name:"getLogNames"
    },
    {
    name:"getLogEntries"
    },
    {
    name:"clearLogEntries"
    },
    {
    name:"getLogThresholds"
    },
    {
    name:"setLogThreshold"
    },
    {
    name:"setTemporaryLogThreshold"
    },
    {
    name:"revertTemporaryLogThresholds"
    },
    {
    name:"getPdfObject"
    },
    {
    name:"exportImage"
    },
    {
    name:"areServerTimingsTracked"
    },
    {
    name:"trackServerTimings"
    }
    ]
    },
    {
    ID:"builtin_tools",
    className:"com.isomorphic.tools.BuiltinRPC",
    visibleMethods:[
    {
    name:"getDataSourceFromTable"
    },
    {
    name:"getDataSourceJSONFromTable"
    },
    {
    name:"getDataSourceFromHibernateMapping"
    },
    {
    name:"getDataSourceJSONFromHibernateMapping"
    },
    {
    name:"getTables"
    },
    {
    name:"getFieldsFromTable"
    },
    {
    name:"getBeanFields"
    },
    {
    name:"getHibernateBeans"
    },
    {
    name:"getDatabaseProductNameAndVersion"
    },
    {
    name:"getDatabaseTableTypes"
    },
    {
    name:"setAttributes"
    },
    {
    name:"clearAttributes"
    },
    {
    name:"getAttributes"
    },
    {
    name:"getAttribute"
    },
    {
    name:"getDataSourceConfigFromJavaClass"
    },
    {
    args:"cName",
    language:"groovy",
    name:"getJavaSource",
    script:"\n if (!com.isomorphic.auth.DevModeAuthFilter.devModeAuthorized(request)) throw new Exception(\"Not Authorized\"); \n //import org.apache.bcel.Repository;\n\n try {\n return org.apache.bcel.Repository.lookupClass(cName).toString();\n } catch (Throwable e) {\n return \"Unable to reverse engineer class \"+cName+\": \"+e.getMessage();\n }\n "
    },
    {
    name:"loadDataSource"
    },
    {
    name:"dsFromXML"
    },
    {
    name:"dsConfigFromXML"
    },
    {
    name:"getDefinedDataSources"
    }
    ]
    },
    {
    ID:"builtin_adminconsole",
    className:"com.isomorphic.tools.AdminConsole",
    visibleMethods:[
    {
    name:"getDefinedDatabases"
    },
    {
    name:"testDB"
    },
    {
    name:"saveDBConfig"
    },
    {
    name:"setDefaultDB"
    },
    {
    name:"importDataSources"
    },
    {
    name:"discoverJNDIDatabases"
    }
    ]
    }
    ]
    })

    === 2015-04-10 19:13:26,777 [c-11] DEBUG RPCDMI - Invocation threw exception
    java.lang.NoClassDefFoundError: org/hibernate/cfg/Configuration
    at com.isomorphic.tools.BuiltinRPC.getDefinedDataSourcesAsList(BuiltinRPC.java:644)
    at com.isomorphic.tools.BuiltinRPC.getDefinedDataSources(BuiltinRPC.java:716)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.isomorphic.base.Reflection.adaptArgsAndInvoke(Reflection.java:975)
    at com.isomorphic.base.Reflection.adaptArgsAndInvoke(Reflection.java:805)
    at com.isomorphic.rpc.RPCDMI.execute(RPCDMI.java:309)
    at com.isomorphic.rpc.RPCDMI.execute(RPCDMI.java:66)
    at org.apache.jsp.lms.tools.adminConsoleOperations_jsp._jspService(adminConsoleOperations_jsp.java:137)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
    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:728)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at com.isomorphic.servlet.CompressionFilter._doFilter(CompressionFilter.java:260)
    at com.isomorphic.servlet.BaseFilter.doFilter(BaseFilter.java:83)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:611)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:409)
    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1044)
    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
    at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:315)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.ClassNotFoundException: org.hibernate.cfg.Configuration
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1702)
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1547)
    ... 40 more
    === 2015-04-10 19:13:26,783 [c-11] DEBUG RPCManager - Content type for RPC transaction: text/plain; charset=UTF-8
    === 2015-04-10 19:13:26,785 [c-11] INFO Compression - /lms/lms/tools/adminConsoleOperations.jsp: 7130 -> 1124 bytes
    Best regards,
    Blama
    Attached Files

    #2
    Thanks for reporting this. Documentation has been updated to include the tools dependency on isomorphic_hibernate, and will be available in builds dated 2015-04-17 or later.

    Comment

    Working...
    X