• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

it is a bug in InstallAction!

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
in InstallAction.java

//---------------------------------------------------------------------
if ("JDBC".equals(connectionType)) {
implementation = "yes".equals(this.getFromSession("usePool")) &&
!"hsqldb".equals(database)
? "net.jforum.PooledConnection"
: "net.jforum.SimpleConnection";

this.configureJDBCConnection();
} else {
isDs = true;
implementation = "net.jforum.DataSourceConnection";
SystemGlobals.setValue(ConfigKeys.DATABASE_DATASOURCE_NAME,
this.getFromSession("dbdatasource"));
}

//------------------------------------------------------------------
shoud be repaired :

if ("JDBC".equals(connectionType)) {
implementation = "yes".equals(this.getFromSession("usePool")) &&
!"hsqldb".equals(database)
? "net.jforum.core.db.PooledConnection"
: "net.jforum.core.db.SimpleConnection";

this.configureJDBCConnection();
} else {
isDs = true;
implementation = "net.jforum.core.db.DataSourceConnection";
SystemGlobals.setValue(ConfigKeys.DATABASE_DATASOURCE_NAME,
this.getFromSession("dbdatasource"));
}


thinks!



i love jforum!!!
[originally posted on jforum.net by jyhcyd]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

jyhcyd wrote:in InstallAction.java

//---------------------------------------------------------------------
if ("JDBC".equals(connectionType)) {
implementation = "yes".equals(this.getFromSession("usePool")) &&
!"hsqldb".equals(database)
? "net.jforum.PooledConnection"
: "net.jforum.SimpleConnection";

this.configureJDBCConnection();
} else {
isDs = true;
implementation = "net.jforum.DataSourceConnection";
SystemGlobals.setValue(ConfigKeys.DATABASE_DATASOURCE_NAME,
this.getFromSession("dbdatasource"));
}

//------------------------------------------------------------------
shoud be repaired :

if ("JDBC".equals(connectionType)) {
implementation = "yes".equals(this.getFromSession("usePool")) &&
!"hsqldb".equals(database)
? "net.jforum.core.db.PooledConnection"
: "net.jforum.core.db.SimpleConnection";

this.configureJDBCConnection();
} else {
isDs = true;
implementation = "net.jforum.core.db.DataSourceConnection";
SystemGlobals.setValue(ConfigKeys.DATABASE_DATASOURCE_NAME,
this.getFromSession("dbdatasource"));
}


thinks!



i love jforum!!!



Fixed in CVS
[originally posted on jforum.net by Serge Maslyukov]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thinks!

but here will repair too !
at

SystemGlobals.properties -> database.connection.implementation = net.jforum.SimpleConnection


[originally posted on jforum.net by jyhcyd]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just got the latest version from CVS. did the net.jforum.core.db disappear? IT looks like SimpleConnection is back where it started...
[originally posted on jforum.net by roach]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just got the latest version from CVS
the
SystemGlobals.properties -> database.connection.implementation = net.jforum.core.db.SimpleConnection

is ok!! thinks!!!
[originally posted on jforum.net by jyhcyd]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We moved to the .core.db package, but then discarted the changes, as it would cause many problems to people upgrading.

All is in net.jforum package again.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks!! Rafael Steil
[originally posted on jforum.net by jyhcyd]
 
To do a great right, do a little wrong - shakepeare. twisted little ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic