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 #333

Closed
meg23 opened this issue Nov 13, 2014 · 3 comments
Closed

logger is gettin class cast exception #333

meg23 opened this issue Nov 13, 2014 · 3 comments

Comments

@meg23
Copy link

meg23 commented Nov 13, 2014

From balakrsn...@gmail.com on May 28, 2014 04:57:17

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: http://code.google.com/p/owasp-esapi-java/issues/detail?id=329

@xeno6696
Copy link
Collaborator

There isn't enough information here to troubleshoot without blindly recreating your setup.

Please attach a project (preferably an eclipse/maven project) that successfully recreates the condition. Recommend closing the issue otherwise.

@kwwall
Copy link
Contributor

kwwall commented Jan 17, 2016

The fact that you have it working in your DEV environment would seem to indicate it's some sort of environment problem, likely related to a classpath issue.

Also, I'm having a difficult time understanding what you mean by "in RSA while publishing". Please elaborate.

@xeno6696
Copy link
Collaborator

Not likely to get any additional input.

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

3 participants