Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

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]
 
reply
    Bookmark Topic Watch Topic
  • New Topic