Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7735379
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T07:29:16+00:00 2026-06-01T07:29:16+00:00

I was trying to run a request factory example, but, I got this error

  • 0

I was trying to run a request factory example, but, I got this error running a mvn clean install.

[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] /home/carlos/workspace/requestfactory/tutorial/src/main/java/cleancodematters/requestfactory/tutorial/client/Tutorial.java:[74,53] cannot access javax.validation.ConstraintViolation
class file for javax.validation.ConstraintViolation not found
    context.save( pizza ).fire( new Receiver<Void>() {
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure
/home/carlos/workspace/requestfactory/tutorial/src/main/java/cleancodematters/requestfactory/tutorial/client/Tutorial.java:[74,53] cannot access javax.validation.ConstraintViolation
class file for javax.validation.ConstraintViolation not found
    context.save( pizza ).fire( new Receiver<Void>() {

The code of the example can be found at github. I tried other examples, tried to change the pom.xml, I think I tried almost everything, and I always jump in the same error.

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T07:29:17+00:00Added an answer on June 1, 2026 at 7:29 am

    I would assume the problem is related to the following dependencies:

    <dependency>
      <groupId>javax.validation</groupId>
      <artifactId>validation-api</artifactId>
      <version>1.0.0.GA</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>javax.validation</groupId>
      <artifactId>validation-api</artifactId>
      <version>1.0.0.GA</version>
      <classifier>sources</classifier>
      <scope>test</scope>
    </dependency>
    

    In the first dependency you are using a classifier “sources” which does not make sense at all. Furthermore the scope “test” does not make sense either, cause these classes are needed for compilation etc. So you should use no scope. Just reduce it to the following single dependency:

    <dependency>
      <groupId>javax.validation</groupId>
      <artifactId>validation-api</artifactId>
      <version>1.0.0.GA</version>
    </dependency>
    

    A second point is why are you using the build-helper-plugin and add a supplemental folder which is not necessary, cause it’s already added by the maven-processor-plugin based on the documentation.
    And it would be wise to update the maven-war-plugin to the most-up-to-date (2.2)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

iam trying to run an application visual studio 2008.. got this error.. help me
I am trying to run GWT RequestFactory and facing this error: ClassNotFoundException: org.slf4j.LoggerFactory I
Under Python 3.1, when trying to run this code: from urllib import request def
I am trying to run a long-running task (without blocking the HTTP request execution
I'm trying to run the example from NDK package on a AT91SAM9M10-EKES board running
I received this error when trying to run a build from within VS2010. C:\Program
Situation: I'm trying run an https store (xcart) under one domain secure.example.com and I
Trying to run Jison unit tests, but the command fails. How do I fix
Am trying to run pdf.js example on localhost and after downloading i did make
Im trying to run a shell with cakephp but I'm not able to do

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.