JPAStore error spring boot started failed

Hi, i’m using axon spring boot starter for my spring boot project.
I’m using spring-boot-starter-data-jpa, and postgresql for query projection. I have problem that project always started failed caused by error “TokenEntry is not mapped [SELECT te.segment FROM TokenEntry te WHERE te.processorName = :processorName ORDER BY te.segment ASC]”.
Can anybody give me some advices about it?


Hi, are you defining any entities explicitly? In that case, Axon/SpringBoot doesn’t configure any defaults.

Check out this chapter in the rederence guide: Spring Boot Integration - Axon Reference Guide

1 Like

Hi, on top of Allard’s suggestion I would also recommend checking how you set up your schema. In some cases, you might need to add spring.jpa.hibernate.ddl-auto to your application properties to actually let the JPA implementation to create your schema tables.

1 Like

if you use default axon entity ,you could add annotation below to your spring configuration

@EntityScan(basePackages = {

just try it, and you should refer some sample on axonframework · GitHub Topics · GitHub

1 Like