Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

logger is gettin class cast exception #329

Open
GoogleCodeExporter opened this issue May 5, 2015 · 0 comments
Open

logger is gettin class cast exception #329

GoogleCodeExporter opened this issue May 5, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
i tried to implement the ESAPI implementation in our application like the below 
code by adding ESAPI jar and two property files and added the system resource 
variable pointing to the property files ,

import org.owasp.esapi.Logger;
import org.owasp.esapi.ESAPI;



public class BrandTag extends BodyTagSupport {



                private final static Logger logger = (org.owasp.esapi.Logger)ESAPI.getLogger(BrandTag.class);



        public int doStartTag() throws javax.servlet.jsp.JspException{

                Object sessionObj = pageContext.getSession().getAttribute(getBrandName);

                if(getBrandName!= null){

            try {

                        logger.info(Logger.EVENT_SUCCESS,"ESAPI's log: brand received from getBrandName is "+getBrandName);



with this code am able get the log only after restarting the web server. if i 
made any changes in code and try to publish it, am getting  error 
org.owasp.esapi.reference.Log4JLogger incompatible with org.owasp.esapi.Logger.



i have deployed EAR in DEV server, its working fine. but in RSA while 
publishing only am getting class type cast error


What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?


Does this issue affect only a specified browser or set of browsers?


Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 28 May 2014 at 8:57

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant