Questions tagged [javalite]

JavaLite is a collection of frameworks including ActiveJDBC (an ORM) and ActiveWeb.

JavaLite is a collection of frameworks including and .

http://javalite.io/

123 questions
0
votes
1 answer

javalite could not find or load main class

After successfully following along the instructions of the javalite example project (here), the command line returns: Could not find or load main class activejdbc.examples.simple.Main when trying to execute: java -classpath…
Moritz
  • 85
  • 9
0
votes
1 answer

How to support netsted resources in ActiveWeb

Two models named "Post" and "Comment", and I want to build RESTful route like /post/123/comment/8 and CommentsController handles all RESTful actions. I have tried…
Jack Tang
  • 59
  • 5
0
votes
1 answer

Any example of uploading files using activeweb?

I try to upload some csv files to server side and process them and save to database, any example about uploading file in activeweb?
Jack Tang
  • 59
  • 5
0
votes
1 answer

log4j.properties does not have effects on logging in activeJDBC

I am currently working on a simple web application using javalite webactive and activeJDBC. To start with javalite I simply used https://github.com/javalite/activeweb-simple/ and expanded from there. One thing which I would like to change, now that…
spranger
  • 31
  • 8
0
votes
2 answers

ActiveJDBC: use scope with dynamic parameters

The actual scope examples provide the use of hard-coded parameters passed to the query: public class Employee extends Model { static { addScope("byDepartment", "department = 'marketing'"); } } Is it possible to make that parameter…
belgoros
  • 3,590
  • 7
  • 38
  • 76
0
votes
2 answers

ActiveWeb: model setter/getter does not work when calling in the template

When working with a legacy database, there are cases when I can't set up the relations properly using belongs_to annotation. In this case, I tried to define an attribute pointing to another Model class with its accessors methods as…
belgoros
  • 3,590
  • 7
  • 38
  • 76
0
votes
1 answer

How to configure a custom date format for ActiveWeb templates

The views docs have an example of number format configuration: public class FreeMarkerConfig extends AbstractFreeMarkerConfig { @Override public void init() { //this is to override a strange FreeMarker default processing of numbers …
belgoros
  • 3,590
  • 7
  • 38
  • 76
0
votes
1 answer

ActiveWeb view - <@compress single_line=true>

I wonder what is the following declaration/macro used for (I'm rendering a custom JSON response): <@compress single_line=true> { attribute_1: ${my_model.attribute_1}, attribute_2: ${my_model.attribute_2}, attribute_3:…
belgoros
  • 3,590
  • 7
  • 38
  • 76
0
votes
1 answer

Checking header for token presence

Is it possible to check header for available token and other OAuth values with ActiveWeb ? Are there any examples repos ? Thank you.
belgoros
  • 3,590
  • 7
  • 38
  • 76
0
votes
1 answer

ActiveJDBC DBSpec - JUnit5 support

For a JavaEE project with working JUnit 5 tests I decided to give ActiveJDBC a try. Unfortunately I implemented all the tests with JUnit 5 before this decision so I have to update my tests for the usage with ActiveJDBC and was wondering why they…
bytepool
  • 75
  • 1
  • 6
0
votes
1 answer

ControllerRunner's Execution order

this is the activeweb2.0 source code protected void run(Route route) throws Exception { Configuration.injectFilters(); //no worries, will execute once, as filters have a life span of the app try { try { //nested try , a bit ugly, but…
靳刘杰
  • 25
  • 4
0
votes
1 answer

JavaLite Vs Hibernate

I just started to learn javalite but I don't understand if javalite is more benificial and light weight than hibernate still most of the projects are working on hibernate why? and can we use javalite for large enterprise application.if anyone using…
A.K.
  • 1
  • 1
0
votes
1 answer

Transaction is not rolled back when run time exception programmatically fired

I couldn't understand why the after() function of DBConnectionFilter is called when the runtime exception is thrown. I was expecting onException() function to be called and a rollback of the transaction. But what's really happening is the after()…
0
votes
0 answers

ActiveWeb war undeployable to TomEE

I just started a new ActiveWeb/ActiveJDBC project based on the activeweb-simple example. When I build and run it with Jetty as described in the ReadMe everything works fine but I can't get it to work with TomEE plus (7.0.2/1.7.5) and I would like to…
bytepool
  • 75
  • 1
  • 6
0
votes
2 answers

Kill multiple connections at a time

I am using root as username. My program will refresh every 5 seconds. What it does is, it query from mysql table and display the data. Problem is, every after 5 seconds, the connection on mysql will append, reason that it will give an error of "TOO…
AyukNayr
  • 386
  • 2
  • 21
1 2 3
8 9