facebook

No JSP exception messages in console

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #225424 Reply

    john jaster
    Member

    I am using JBoss 4.1. Exception logging works fine for java classes, but when there is an exception in the JSP nothing is logged to the console. I’m not sure if this is a myeclipse problem or a JBoss problem. Any help would be appriciated.

    #225427 Reply

    Riyad Kalla
    Member

    Does JBoss correctly log the problems when you launch it from the console and not MyEclipse? If not, then it is likely a configuration issue, are you SURE it isn’t going to a log file? I know in Tomcat there are 2 or 3 different log files that are used to log different information, it can get confusing at times.

    #225501 Reply

    john jaster
    Member

    When I bring up jboss outside of myeclipse I don’t get the exception messages either, so it has something to do with the jboss/tomcat logging?

    #225506 Reply

    Riyad Kalla
    Member

    It seems to be, I am not farmiliar with JBoss so I cannot offer much help in this regard. Please check with other JBoss users or possible Dr. Google for “JBoss log configuration” or something like that.

    #225619 Reply

    john jaster
    Member

    It seems that jboss defines the CONSOLE (std out) in the log4j.xml file and your program cannot also define or change an appender to the std out. It will ignore your definition. In fact it ignored anything I did to use the CONSOLE appender. The short answer is to let jboss do the logging to the console. As long as you do not try and override the jboss console appender, or try to define your own in you own log4j properties file, jboss will take care of sending JSP, or any other errors, to the console.

    #225622 Reply

    Riyad Kalla
    Member

    Thank you for posting your findings here for other users, this wasn’t the easiest thing to nail down.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: No JSP exception messages in console

You must be logged in to post in the forum log in