rssh wrote:
(backup file: SqlDatabase.java.bak.java
if we have SqlDatabase.java, than .bak.java can be deleted)
My fault: I'd renamed the old SqlDatabase.java to *.java.bak but my
clever MacBook had added .java to the file and I didn't realize. And I
dind't read the error message :-( Sorry.
Build successful, *.jar in place, XWiki restarted and here they are the
error messages in XWiki.log:
2008-04-15 01:14:13,276
[
http://test01.xen.net/xwiki/bin/view/Main/Database] [http-80-1] ERROR
xwikisql.SqlPlugin - exception during creation of datasource myDs
javax.naming.NameNotFoundException: El nombre myDs no este asociado a
este contexto
Now, the text code...
1.1.1 database is retrieved
#set($plugin = $xwiki.sql)
plugin is $plugin
#set($db = $plugin.getDatabase('myDs'))
db is $db
Gives...
http://mire.environmentalchange.net/~webmaster/images/XwikiSqlTest03.png
Well, great! this works fine, as far as I can understand. Thanks, Ruslan!
Now, I can move to JNDI set up. Any other thing I could try here before
moving ahead? I will try the new *.jar tomorrow in the production server
(java version "1.4.2_10") and post here the results. I've been trying in
a java version "1.5.0_13" so far.
Cheers,
Ricardo
--
Ricardo RodrÃguez
Your EPEC Network ICT Team