Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ActiveJDBC - how to define models

you are trying to work with models, but no models are found. Maybe you have no models in project, or you did not instrument the models. It is expected that you have a file activejdbc_models.properties on classpath

Caused by: activejdbc.InitException: you are trying to work with models, but no models are found. Maybe you have no models in project, or you did not instrument the models. It is expected that you have a file activejdbc_models.properties on classpath
at activejdbc.ModelFinder.findModels(ModelFinder.java:46)
at activejdbc.Registry.init(Registry.java:97)
at activejdbc.Model.<clinit>(Model.java:53)
... 2 more

thanks,

like image 695
jrey Avatar asked May 10 '26 16:05

jrey


1 Answers

this has already been answered: Can't get activejdbc working?

Basically, you are missing an instrumentation step after compilation. If you are using Maven see this simple example: https://github.com/javalite/simple-example

if you are using Ant, see this: https://github.com/javalite/ant-example Refer: http://javalite.io/getting_started

thanks

like image 176
ipolevoy Avatar answered May 12 '26 07:05

ipolevoy



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!