Problem in Weblogic (related to tag library)

Discussions

Web tier: servlets, JSP, Web frameworks: Problem in Weblogic (related to tag library)

  1. Hi all,
    I have written one connection tag in JSP , the tag works fine in other servers like Resin but given problem with WebLogic. The error is can't be parsed, What can be the possible errors behind it.

    the error is pasted below.Is there any convention to store tags in Web-inf folder ????


    Mon Mar 12 19:14:34 GMT+05:30 2001:<I> <ServletContext-General> looking for taglib uri Connection.tld as resource /WEB-INF/Connection.tld in Web Application root:
    Mon Mar 12 19:14:34 GMT+05:30 2001:<E> <ServletContext-General> Servlet failed with Exception
    java.lang.NullPointerException
    at weblogic.servlet.jsp.StandardTagLib.declareTagExtra(StandardTagLib.java, Compiled Code)
    at weblogic.servlet.jsp.StandardTagLib.genericStartBegin(StandardTagLib.java, Compiled Code)
    at weblogic.servlet.jsp.StandardTagLib.processTag(StandardTagLib.java:517)
    at weblogic.servlet.jsp.JspLexer.mOPEN_EXTENSION_TAG(JspLexer.java, Compiled Code)
    at weblogic.servlet.jsp.JspLexer.mTOKEN(JspLexer.java, Compiled Code)
    at weblogic.servlet.jsp.JspLexer.nextToken(JspLexer.java, Compiled Code)
    at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java, Compiled Code)
    at weblogic.servlet.jsp.JspParser.doit(JspParser.java, Compiled Code)
    at weblogic.servlet.jsp.JspParser.parse(JspParser.java:109)
    at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:97)
    at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java, Compiled Code)
    at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java, Compiled Code)
    at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:174)
    at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java, Compiled Code)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java, Compiled Code)
    at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java, Compiled Code)
    at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java, Compiled Code)
    at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java, Compiled Code)
    at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java, Compiled Code)
    at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java, Compiled Code)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)


    thanx a lot
    pl reply ASAP

  2. Hi! Shailender:

    The problem is that weblogic is unable to locate the Connection.tld file. The Connection.tld file has to be in the ../webapp/WEB-INF directory. If you are using Windows/Unix make sure that the file exists in the WEB-INF directory, in addition if you are using Unix/Linux/Solaris make sure the file name case matches the one you have defined in your jsp.

    Regards,
    Pradeep.