ActiveJDBC - how to define models

3.5k views Asked by At

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,

1

There are 1 answers

3
ipolevoy On BEST ANSWER

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