0

I put jena jar files in the lib folder and see the message:

A JPA error occurred (Cannot start a JPA manager without a 
properly configured database): No datasource configured

what am I doing wrong?

I found the answer. This was a problem in Play. There's some reason put in front of the class directive from the module javax I do not know why it happened, simply remove and earned

Alex
  • 1
  • 1

2 Answers2

1

This error doesn't asoociate with jena, because if your dont't choose model (dataset) while your execute query, you will get next message - No dataset description for query and com.hp.hpl.jena.query.QueryExecException. But if you choose jena as datasource in play, you may get your message(sorry, but i don't know much about Play).

What operations you do with jena?

Chiffa
  • 136
  • 2
  • I know play much better than jena so if I can help, don't hesitate to ask! Several brains sometimes give a better solution :) – mandubian Apr 24 '11 at 14:48
  • 1
    I found the answer. This was a problem in Play. There's some reason put in front of the class directive from the module javax I do not know why it happened, simply remove and earned – Alex Apr 25 '11 at 06:38
  • I'm not sure to understand what you mean by "some reason put in front of the class directive" but if you solved your pb, it's great ;) – mandubian Apr 25 '11 at 09:28
0

I don't know much Jena but it seems that some persistent ontologies might be stored into database. Thus, it would mean Jena needs a database connection?
Is this error an error of Jena and not from Play?
What do you try to do in your code before getting this error?
If Jena requires some configuration and resource creation before using it, you should think of creating a little Jena play plugin to initialize your Jena context...

mandubian
  • 4,427
  • 1
  • 22
  • 15