Jakarta request taglib
Hey, I'm porting my application from a custom jsp based security, to the build-in Glassfish V2 application server based security.I am building it on Netbeans 6.0 on Windows with JDK 6.0. Now the problem I am having happens when I add the request tag isUserInRole from the jakarta taglibs project. When I build and run the program on Glassfish, I receive the following error when I navigate to a page that contains my request tag req:isUserInRole role=ADMIN: ... EJBClassLoader : urlSet = [] doneCalled = false Parent - [EMAIL PROTECTED] Loading class from local repository *** InstanceEvent: afterService *** InstanceEvent: afterFilter StandardWrapperValve[jsp]: PWC1406: Servlet.service() for servlet jsp threw exception java.lang.AbstractMethodError: org.apache.crimson.tree.XmlDocument.setDocumentURI(Ljava/lang/String;)V at org.apache.jasper.xmlparser.ParserUtils.parseXMLDocument(ParserUtils.java:226) at org.apache.jasper.xmlparser.ParserUtils.parseXMLDocument(ParserUtils.java:291) at org.apache.jasper.compiler.TldLocationsCache.getUriFromTld(TldLocationsCache.java:562) at org.apache.jasper.compiler.TldLocationsCache.scanJar(TldLocationsCache.java:449) at org.apache.jasper.compiler.TldLocationsCache.scanJars(TldLocationsCache.java:626) at org.apache.jasper.compiler.TldLocationsCache.init(TldLocationsCache.java:315) at org.apache.jasper.compiler.TldLocationsCache.getLocation(TldLocationsCache.java:272) at org.apache.jasper.JspCompilationContext.getTldLocation(JspCompilationContext.java:556) at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:480) at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:562) at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1626) at org.apache.jasper.compiler.Parser.parse(Parser.java:165) at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:223) at org.apache.jasper.compiler.ParserController.parse(ParserController.java:140) at org.apache.jasper.compiler.Parser.processIncludeDirective(Parser.java:374) at org.apache.jasper.compiler.Parser.parseIncludeDirective(Parser.java:411) at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:554) at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1626) at org.apache.jasper.compiler.Parser.parse(Parser.java:165) at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:223) at org.apache.jasper.compiler.ParserController.parse(ParserController.java:140) at org.apache.jasper.compiler.Parser.processIncludeDirective(Parser.java:374) at org.apache.jasper.compiler.Parser.parseIncludeDirective(Parser.java:411) at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:554) at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1626) at org.apache.jasper.compiler.Parser.parse(Parser.java:165) at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:223) at org.apache.jasper.compiler.ParserController.parse(ParserController.java:124) at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:184) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:409) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:592) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:344) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:470) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:364) at javax.servlet.http.HttpServlet.service(HttpServlet.java:831) at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:317) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198) at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:288) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94) at
Re: Jakarta request taglib
Do you have any XML libs installed in WEB-INF/lib? On Jan 31, 2008 9:12 AM, phife757 [EMAIL PROTECTED] wrote: Hey, I'm porting my application from a custom jsp based security, to the build-in Glassfish V2 application server based security.I am building it on Netbeans 6.0 on Windows with JDK 6.0. Now the problem I am having happens when I add the request tag isUserInRole from the jakarta taglibs project. When I build and run the program on Glassfish, I receive the following error when I navigate to a page that contains my request tag req:isUserInRole role=ADMIN: ... EJBClassLoader : urlSet = [] doneCalled = false Parent - [EMAIL PROTECTED] Loading class from local repository *** InstanceEvent: afterService *** InstanceEvent: afterFilter StandardWrapperValve[jsp]: PWC1406: Servlet.service() for servlet jsp threw exception java.lang.AbstractMethodError: org.apache.crimson.tree.XmlDocument.setDocumentURI(Ljava/lang/String;)V at org.apache.jasper.xmlparser.ParserUtils.parseXMLDocument(ParserUtils.java:226) at org.apache.jasper.xmlparser.ParserUtils.parseXMLDocument(ParserUtils.java:291) at org.apache.jasper.compiler.TldLocationsCache.getUriFromTld(TldLocationsCache.java:562) at org.apache.jasper.compiler.TldLocationsCache.scanJar(TldLocationsCache.java:449) at org.apache.jasper.compiler.TldLocationsCache.scanJars(TldLocationsCache.java:626) at org.apache.jasper.compiler.TldLocationsCache.init(TldLocationsCache.java:315) at org.apache.jasper.compiler.TldLocationsCache.getLocation(TldLocationsCache.java:272) at org.apache.jasper.JspCompilationContext.getTldLocation(JspCompilationContext.java:556) at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:480) at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:562) at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1626) at org.apache.jasper.compiler.Parser.parse(Parser.java:165) at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:223) at org.apache.jasper.compiler.ParserController.parse(ParserController.java:140) at org.apache.jasper.compiler.Parser.processIncludeDirective(Parser.java:374) at org.apache.jasper.compiler.Parser.parseIncludeDirective(Parser.java:411) at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:554) at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1626) at org.apache.jasper.compiler.Parser.parse(Parser.java:165) at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:223) at org.apache.jasper.compiler.ParserController.parse(ParserController.java:140) at org.apache.jasper.compiler.Parser.processIncludeDirective(Parser.java:374) at org.apache.jasper.compiler.Parser.parseIncludeDirective(Parser.java:411) at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:554) at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1626) at org.apache.jasper.compiler.Parser.parse(Parser.java:165) at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:223) at org.apache.jasper.compiler.ParserController.parse(ParserController.java:124) at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:184) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:409) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:592) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:344) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:470) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:364) at javax.servlet.http.HttpServlet.service(HttpServlet.java:831) at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:317) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198) at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:288) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
Re: Jakarta request taglib
Thanks, Kris, for the help. I think i fixed it. I do have an xml jar in the lib directory but I think i proved that it was a different jar that was causing the problem. Anyways it was a library conflict, old jars vs new java ee. Thanks again, Matt Kris Schneider wrote: Do you have any XML libs installed in WEB-INF/lib? On Jan 31, 2008 9:12 AM, phife757 [EMAIL PROTECTED] wrote: Hey, I'm porting my application from a custom jsp based security, to the build-in Glassfish V2 application server based security.I am building it on Netbeans 6.0 on Windows with JDK 6.0. Now the problem I am having happens when I add the request tag isUserInRole from the jakarta taglibs project. When I build and run the program on Glassfish, I receive the following error when I navigate to a page that contains my request tag req:isUserInRole role=ADMIN: ... EJBClassLoader : urlSet = [] doneCalled = false Parent - [EMAIL PROTECTED] Loading class from local repository *** InstanceEvent: afterService *** InstanceEvent: afterFilter StandardWrapperValve[jsp]: PWC1406: Servlet.service() for servlet jsp threw exception java.lang.AbstractMethodError: org.apache.crimson.tree.XmlDocument.setDocumentURI(Ljava/lang/String;)V at org.apache.jasper.xmlparser.ParserUtils.parseXMLDocument(ParserUtils.java:226) at org.apache.jasper.xmlparser.ParserUtils.parseXMLDocument(ParserUtils.java:291) at org.apache.jasper.compiler.TldLocationsCache.getUriFromTld(TldLocationsCache.java:562) at org.apache.jasper.compiler.TldLocationsCache.scanJar(TldLocationsCache.java:449) at org.apache.jasper.compiler.TldLocationsCache.scanJars(TldLocationsCache.java:626) at org.apache.jasper.compiler.TldLocationsCache.init(TldLocationsCache.java:315) at org.apache.jasper.compiler.TldLocationsCache.getLocation(TldLocationsCache.java:272) at org.apache.jasper.JspCompilationContext.getTldLocation(JspCompilationContext.java:556) at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:480) at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:562) at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1626) at org.apache.jasper.compiler.Parser.parse(Parser.java:165) at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:223) at org.apache.jasper.compiler.ParserController.parse(ParserController.java:140) at org.apache.jasper.compiler.Parser.processIncludeDirective(Parser.java:374) at org.apache.jasper.compiler.Parser.parseIncludeDirective(Parser.java:411) at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:554) at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1626) at org.apache.jasper.compiler.Parser.parse(Parser.java:165) at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:223) at org.apache.jasper.compiler.ParserController.parse(ParserController.java:140) at org.apache.jasper.compiler.Parser.processIncludeDirective(Parser.java:374) at org.apache.jasper.compiler.Parser.parseIncludeDirective(Parser.java:411) at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:554) at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1626) at org.apache.jasper.compiler.Parser.parse(Parser.java:165) at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:223) at org.apache.jasper.compiler.ParserController.parse(ParserController.java:124) at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:184) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:409) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:592) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:344) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:470) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:364) at javax.servlet.http.HttpServlet.service(HttpServlet.java:831) at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:317) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198) at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:288)