[Esapi-user] Can't built hello world with ESAPI

Brent Shikoski brent.shikoski at gmail.com
Sun Feb 27 15:42:31 EST 2011


Right click on the web project in eclipse and select properties.  In the
properties dialog, select 'Deployment Assembly'.  Make sure the esapi jars
are listed there.  If not, click the add button and select 'Java Build Path
Entries', then next and select all the jar files from there.  Click Finish
and then Okay (Make sure Tomcat gets restarted).

Putting jar files in the classpath does not ensure they get deployed at

Hope that helps,


On Sun, Feb 27, 2011 at 5:59 AM, Mostafa Siraj <mostafa.siraj at gmail.com>wrote:

> Hello,
> I'm newbie to ESAPI -and to Java as well (coming from .NET background)-.
> I'm trying to run ESAPI in a Dynamic Web Project on Eclipse
> Here is my environment
> I'm using Eclipse Helios Service Release 1
> JDK 1.6.0_03
> ESAPI 2.0 rc10
> Tomcat 7.0
> Windows XP
> I added .esapi folder in my User Directory and I added it to the classpath
> I followed all the instructions on the "install guide" coming with ESAPI,
> *The application runs just fine in Console application* but in Dynamic Web
> Project I always receive this exception
> org.apache.jasper.JasperException: Unable to compile class for JSP: An
> error occurred at line: 11 in the jsp file: /hope.jsp org.owasp.esapi.ESAPI
> cannot be resolved to a type
> 8: </head>
> 9: <body>
> 10: Hello There
> 11: <%= org.owasp.esapi.ESAPI.encoder().encodeForHTML("Please Work") %>
> 12: </body>
> 13: </html>
> I searched the archive of this user group and found similar questions I
> tried the answer posted (the classpath issue) and it didn't work
> I hope someone can help me
> --
> Thanks in Advance
> Mostafa Siraj <http://twitter.com/mostafasiraj>
> "Our deepest fear is not that we are inadequate. Our deepest fear is that
> we are powerful beyond measure. It is our light, not our darkness, that most
> frightens us. We ask ourselves, who am I to be brilliant, gorgeous,
> talented, and fabulous?Actually, who are you not to be? You are a child of
> God. Your playing small doesn't serve the world. There's nothing enlightened
> about shrinking so that other people won't feel insecure around you. We are
> all meant to shine, as children do. We are born to make manifest the glory
> of God that is within us. It's not just in some of us, it's in everyone. And
> as we let our own light shine, we unconsciously give other people permission
> to do the same. As we are liberated from our own fear, our presence
> automatically liberates others." --Nelson Mandela--
> _______________________________________________
> Esapi-user mailing list
> Esapi-user at lists.owasp.org
> https://lists.owasp.org/mailman/listinfo/esapi-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.owasp.org/pipermail/esapi-user/attachments/20110227/f3f5dcfe/attachment.html 

More information about the Esapi-user mailing list