Skip to content

Commit

Permalink
finally figured the cf9 stupid cached dan error, cf10 all is good, ra…
Browse files Browse the repository at this point in the history
…ilo as well
  • Loading branch information
lmajano committed Oct 8, 2012
1 parent 40c26d0 commit c17b540
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 4 deletions.
2 changes: 1 addition & 1 deletion index.cfm
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ See the License for the specific language governing permissions and
limitations under the License.
********************************************************************************
--->
<cfsetting showdebugoutput="false" >
<cfsetting showdebugoutput="false" >
5 changes: 2 additions & 3 deletions modules/contentbox-dsncreator/model/cf9-OnError.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ public void function onError(exception, eventName){
// STUPID ColdFusion 9 hibernate cached connection error.
// THIS CAN BE REMOVED ONCE INSTALLER COMPLETES
if( structKeyExists(URL, "cbInstaller") AND
arguments.exception.type eq "coldfusion.orm.hibernate.HibernateConfiguration$ConnectionException" AND
arguments.exception.detail eq "java.sql.SQLException: Datasource not found." ){
location("index.cfm");
findNoCase( "Datasource not found", arguments.exception.detail ) ){
include "modules/contentbox-dsncreator/views/cf9-refresher.cfm";
}
else{
throw( arguments.exception );
Expand Down
27 changes: 27 additions & 0 deletions modules/contentbox-dsncreator/views/cf9-refresher.cfm
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<cfoutput>
<cfsetting showdebugoutput="false">
<!DOCTYPE html>
<html>
<!--============================Head============================-->
<head>
<!--- Title --->
<title>ContentBox Datasource Wizard</title>
<script>
function refreshit(){
var t=setTimeout("reloadit()",8000);
}
function reloadit(){
window.location.reload();
}
</script>
</head>
<!--============================Body============================-->
<body onload="refreshit()">
<h1>Creating Datasource...</h1>
<p>
Please wait as we configure the system for operation (About 8-10 seconds), be patient now!
</p>
</body>
<!--End Body-->
</html>
</cfoutput>

0 comments on commit c17b540

Please sign in to comment.