rssh wrote:
And what container you use ?
This is jetty or apache ?
Tomcat. I guess when you say Apache you mean Apache Tomcat, doesn't you?
(btw,
1. if 'myDs' does not exists $plugin.getDatabase('myDs') must return
valid
SqlDatabase, which will throw exception on first SQL sentence)
2. test page is incorrect (my fault - I was mean velocity syntax of assigment
but write simple assigment). I. e. instead:
test page:
$plugin = $xwiki.sql
plugin is $plugin
<br>
$db = $plugin.getDatabase('myDs');
db is $db
must be:
#set($plugin = $xwiki.sql)
plugin is $plugin
<br>
#set($db = $plugin.getDatabase('myDs'))
db is $db
And we will have something like
plugin=ua.gradsoft.xwikisql.SqlPluginApi@19c21c6
udb=ua.gradsoft.xwikisql.SqlDatabase@16d5525
Not only your fault! I've not been critic with your code and the lacking
set was obvious! Sorry.
Then let add's add at end:
$db.wasError()<br>
$db.getLastException()
We must have something like
true
javax.naming.NameNotFoundException: Name UNEXISTENT is not bound in this Context
Is this true ?
http://mire.environmentalchange.net/~webmaster/images/XwikiSqlTest02.png
The message in Spanish is equivalent to the version in English you have
posted upper here.
Yeap, it is true!
No messages in xwiki.log yet.
P.S. looks like I just reproduced this effect and will
publish fix tomorrow.
Cool! I will be pending of this update and try it here ASAP. Thanks!
Greetings,
Ricardo
--
Ricardo RodrÃguez
Your EPEC Network ICT Team