Code Monkey home page Code Monkey logo

Comments (3)

kwwall avatar kwwall commented on July 3, 2024

This line in your exception stack trace:

at org.owasp.esapi.util.ObjFactory.loadMethodByStringName(ObjFactory.java:196) ~[esapi-2.5.3.1.jar:2.5.3.1]

shows that you are using the wrong jar file. The Jakarta jar file for ESAPI should be named 'esapi-jakarta-2.5.3.1.jar' instead. (E.g., see https://repo1.maven.org/maven2/org/owasp/esapi/esapi/2.5.3.1/.)
Maybe Gradle pulled down both versions or the wrong version, I'm not sure. I you want to create a mini-dummy project using your build.gradle and Spring Boot 3.x, I can take a look at it and see if I can figure it out, but otherwise, I don't have the time to troubleshoot this for quite some time.

from esapi-java-legacy.

kwwall avatar kwwall commented on July 3, 2024

@popa-raluca - BTW, one quick and dirty workaround might be for you to explicitly download the 'esapi-jakarta-2.5.3.1.jar' directly from https://repo1.maven.org/maven2/org/owasp/esapi/esapi/2.5.3.1/ and then rename 'esapi-jakarta-2.5.3.1.jar' as 'esapi-2.5.3.1.jar'. It's admittedly a bit of a kludge, but it should allow you to make progress. If this happens with the Jakarta version of the jar though, please let us know. I just used 'strings' to confirm that the 'javax.servlet.http' package had been rewritten (at the byte-code level) as 'jakarta.servlet.http', but that's the only testing I did on it.

from esapi-java-legacy.

popa-raluca avatar popa-raluca commented on July 3, 2024

I think the problem was that the initial dependency that I added was without the jakarta identifier, and a clean build didn't add the correct lib afterwards. I was able to force redownload of the dependencies using gradle clean build --refresh-dependencies and then the right jakarta jar was added.

from esapi-java-legacy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.