So, after having verified that realtime messaging is working for my configured channels, I enabled remote debugging on one browser, then I refreshed the other browser, opened the developer console, and, after some seconds, the developer console logged:
Code:
Messaging endpoint not responding - remote debugging unavailable. To fix, make sure you have correctly registered the Messaging servlet in your web.xml
Code:
<!-- //>RealtimeMessaging --> <!-- The MessagingServlet is used by realtime messaging --> <servlet> <servlet-name>MessagingServlet</servlet-name> <servlet-class>com.isomorphic.messaging.MessagingServlet</servlet-class> </servlet> <!-- //<RealtimeMessaging --> <!-- //>RealtimeMessaging --> <!-- Messaging uses this URL by default --> <servlet-mapping> <servlet-name>MessagingServlet</servlet-name> <url-pattern>/isomorphic/messaging/*</url-pattern> </servlet-mapping> <!-- //<RealtimeMessaging -->
Code:
2014-10-16 17:29:31,112 INFO [cbosticco 549] RequestContext URL: '/Legend/tools/developerConsoleOperations.jsp', User-Agent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:33.0) Gecko/20100101 Firefox/33.0': Moz (Gecko) with Accept-Encoding header 2014-10-16 17:29:31,134 INFO [cbosticco 549] RequestContext URL: '/Legend/isomorphic/skins/Graphite/images/Splitbar/vsplit_snap.png', User-Agent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:33.0) Gecko/20100101 Firefox/33.0': Moz (Gecko) with Accept-Encoding header 2014-10-16 17:29:31,136 INFO [cbosticco 549] RequestContext URL: '/Legend/isomorphic/skins/Graphite/images/Splitbar/hsplit_snap.png', User-Agent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:33.0) Gecko/20100101 Firefox/33.0': Moz (Gecko) with Accept-Encoding header 2014-10-16 17:29:31,136 INFO [cbosticco 549] RequestContext URL: '/Legend/isomorphic/skins/Graphite/images/DynamicForm/checked.png', User-Agent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:33.0) Gecko/20100101 Firefox/33.0': Moz (Gecko) with Accept-Encoding header 2014-10-16 17:29:31,138 INFO [cbosticco 549] RequestContext URL: '/Legend/isomorphic/skins/Graphite/images/DynamicForm/unchecked.png', User-Agent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:33.0) Gecko/20100101 Firefox/33.0': Moz (Gecko) with Accept-Encoding header 2014-10-16 17:29:31,141 DEBUG [cbosticco 549] XML Parsed XML from (in memory stream): 4ms 2014-10-16 17:29:31,142 DEBUG [cbosticco 549] ISCKeyedObjectPool Borrowing object for 'transaction' 2014-10-16 17:29:31,160 DEBUG [cbosticco 549] PoolableDataSourceFactory Created DataSource null of type 'transaction' in the pooling flow 2014-10-16 17:29:31,160 DEBUG [cbosticco 549] ISCKeyedObjectPool Borrowing object for 'Object' 2014-10-16 17:29:31,160 DEBUG [cbosticco 549] PoolableDataSourceFactory Created DataSource 1297 of type 'Object' and assigned it to thread http-bio-8443-exec-138 2014-10-16 17:29:31,160 DEBUG [cbosticco 549] PoolableDataSourceFactory Created DataSource 1297 of type 'Object' in the pooling flow 2014-10-16 17:29:31,160 DEBUG [cbosticco 549] PoolableDataSourceFactory Activated DataSource 1297 of type 'Object' 2014-10-16 17:29:31,161 INFO [cbosticco 549] Download done streaming: /usr/local/tomcat/apache-tomcat-7.0.40/webapps/Legend##0549/isomorphic/skins/Graphite/images/DynamicForm/unchecked.png 2014-10-16 17:29:31,165 INFO [cbosticco 549] Download done streaming: /usr/local/tomcat/apache-tomcat-7.0.40/webapps/Legend##0549/isomorphic/skins/Graphite/images/Splitbar/vsplit_snap.png 2014-10-16 17:29:31,170 INFO [cbosticco 549] Download done streaming: /usr/local/tomcat/apache-tomcat-7.0.40/webapps/Legend##0549/isomorphic/skins/Graphite/images/Splitbar/hsplit_snap.png 2014-10-16 17:29:31,171 INFO [cbosticco 549] Download done streaming: /usr/local/tomcat/apache-tomcat-7.0.40/webapps/Legend##0549/isomorphic/skins/Graphite/images/DynamicForm/checked.png 2014-10-16 17:29:31,175 DEBUG [cbosticco 549] ISCKeyedObjectPool Borrowing object for 'List' 2014-10-16 17:29:31,185 DEBUG [cbosticco 549] PoolableDataSourceFactory Created DataSource 1298 of type 'List' and assigned it to thread http-bio-8443-exec-138 2014-10-16 17:29:31,185 DEBUG [cbosticco 549] PoolableDataSourceFactory Created DataSource 1298 of type 'List' in the pooling flow 2014-10-16 17:29:31,185 DEBUG [cbosticco 549] PoolableDataSourceFactory Activated DataSource 1298 of type 'List' 2014-10-16 17:29:31,185 DEBUG [cbosticco 549] ISCKeyedObjectPool Borrowing object for 'elem' 2014-10-16 17:29:31,186 DEBUG [cbosticco 549] PoolableDataSourceFactory Created DataSource null of type 'elem' in the pooling flow 2014-10-16 17:29:31,186 DEBUG [cbosticco 549] RPCManager Processing 1 requests. 2014-10-16 17:29:31,186 DEBUG [cbosticco 549] RPCManager Request #1 (RPCRequest) data: { appID:"isc_builtin", className:"builtin", methodName:"areServerTimingsTracked", arguments:[ ], is_ISC_RPC_DMI:true } 2014-10-16 17:29:31,205 DEBUG [cbosticco 549] 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" } ] } ] }) 2014-10-16 17:29:31,225 DEBUG [cbosticco 549] RPCDMI rpc returned RPCResponse 2014-10-16 17:29:31,225 DEBUG [cbosticco 549] RPCManager Content type for RPC transaction: text/plain; charset=UTF-8 2014-10-16 17:29:31,226 INFO [cbosticco 549] Compression /Legend/tools/developerConsoleOperations.jsp: 89 -> 78 bytes
Leave a comment: