Error in JSP File

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • SushmaLabh
    New Member
    • May 2007
    • 1

    #1

    Error in JSP File

    I am usinng J2EE 1.4 SDK.I got this error.Pls Hepl me.

    org.apache.jasp er.JasperExcept ion: Unable to compile class for JSP

    Generated servlet error:
    [javac] C:\Sun\AppServe r\domains\domai n1\generated\js p\j2ee-apps\ConverterA pp\war-ic_war\org\apac he\jsp\index_js p.java:20: unreported exception javax.naming.Na mingException; must be caught or declared to be thrown
    [javac] Context ic = new InitialContext( );
    [javac] ^


    Generated servlet error:
    [javac] C:\Sun\AppServe r\domains\domai n1\generated\js p\j2ee-apps\ConverterA pp\war-ic_war\org\apac he\jsp\index_js p.java:21: unreported exception javax.naming.Na mingException; must be caught or declared to be thrown
    [javac] Object objRef = ic.lookup("java :comp/env/ejb/TheConverter");
    [javac] ^


    Generated servlet error:
    [javac] C:\Sun\AppServe r\domains\domai n1\generated\js p\j2ee-apps\ConverterA pp\war-ic_war\org\apac he\jsp\index_js p.java:23: unreported exception javax.ejb.Creat eException; must be caught or declared to be thrown
    [javac] converter = home.create();
    [javac] ^
    [javac] 3 errors
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by SushmaLabh
    I am usinng J2EE 1.4 SDK.I got this error.Pls Hepl me.

    org.apache.jasp er.JasperExcept ion: Unable to compile class for JSP

    Generated servlet error:
    [javac] C:\Sun\AppServe r\domains\domai n1\generated\js p\j2ee-apps\ConverterA pp\war-ic_war\org\apac he\jsp\index_js p.java:20: unreported exception javax.naming.Na mingException; must be caught or declared to be thrown
    [javac] Context ic = new InitialContext( );
    [javac] ^


    Generated servlet error:
    [javac] C:\Sun\AppServe r\domains\domai n1\generated\js p\j2ee-apps\ConverterA pp\war-ic_war\org\apac he\jsp\index_js p.java:21: unreported exception javax.naming.Na mingException; must be caught or declared to be thrown
    [javac] Object objRef = ic.lookup("java :comp/env/ejb/TheConverter");
    [javac] ^


    Generated servlet error:
    [javac] C:\Sun\AppServe r\domains\domai n1\generated\js p\j2ee-apps\ConverterA pp\war-ic_war\org\apac he\jsp\index_js p.java:23: unreported exception javax.ejb.Creat eException; must be caught or declared to be thrown
    [javac] converter = home.create();
    [javac] ^
    [javac] 3 errors
    The problem is with your code. You didn't catch some checked exceptions. Can you post your code?

    Comment

    Working...