Hi Per...
Sorry this reply may not be enough but I am not at home and don't have time
to make a full reply, but I think this may help. Take a look at these two
files
http://svn.apache.org/repos/asf/incubator/openejb/trunk/openejb3/container/openejb-core/src/main/resources/default.openejb.conf
http://svn.apache.org/repos/asf/incubator/openejb/trunk/openejb3/container/openejb-core/src/test/resources/openejb-jar.xml
And I want you to notice how "*Default JDBC Database*" connector, has been
defined in the first file and referenced in the second one. I hope again
this will answer your question.
On 12/1/06, Per Newgro <[EMAIL PROTECTED]> wrote:
Hi David,
> I think this might be a path problem. You can try putting the
> absolute file path in your jdbc url like so:
>
> jdbc:hsql:file:/home/pnewgro/myapp/conf/default.hsql_database.conf
Yes. It was a path problem. But not the pathname was the cause. It has to
be
jdbc:hsqldb:file:/home/pnewgro/myapp/conf/default.hsql_database.conf
^^
>
> Or you can grab this build i just made you and give it a try. I
> added a hack for HSqlDB that ensures the file path conf/
> default.hsql_database.conf will be resolved relative to openejb.home.
>
> http://people.apache.org/~dblevins/openejb/v1.1-20061130/
>
I took this version and wondered that nothing changed. But then i took
KDiff3
and surprise, surprise : "No suitable driver . 0 . 08001". That was new
:-)
Ok, i investigated for this and found (by try and error) the above
solution
(hsqldb).
But now i run into the problem, that i can not find a datasource by
lookup. I
get a javax.naming.NameNotFoundException: Name "java:/APPLDB" not found.
Names in openejb.conf and in lookup match (already checked). Is it
possible to
obtain the datasource by lookup? Do i have to add other elements to a
config?
In jboss i have to deploy the dataset.xml in the appl.ear. So maybe i have
to
add the datasource to my openejb-jar.xml?
As i said before thanks for helping me.
Cheers
Per
--
Thanks
- Mohammad Nour