[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] hot deploy to embedded jetty

Hi,

Looking for some insight here.
I have created a test framework for JSP taglibs using embedded Jetty. I register a servlet that dispatches to the jsp and startup the server and it works fine.
The problem happens when I add servlets (dispatching to jsp) to an already started server, I get below exception on access.
However, if I stop the webcontext and add the servlet and start webcontext again, things run fine. Is there a way to add servlet (and jsp) to an already running embedded jetty server?

java.lang.NullPointerException
    at org.apache.taglibs.standard.tlv.JstlBaseTLV.validate(JstlBaseTLV.java:149)
    at org.apache.taglibs.standard.tlv.JstlCoreTLV.validate(JstlCoreTLV.java:105)
    at org.apache.jasper.compiler.TagLibraryInfoImpl.validate(TagLibraryInfoImpl.java:949)
    at org.apache.jasper.compiler.Validator.validateXmlView(Validator.java:1921)
    at org.apache.jasper.compiler.Validator.validate(Validator.java:1888)
    at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:223)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
    at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:625)
    at org.apache.jasper.servlet.JspServletWrapper.loadTagFile(JspServletWrapper.java:280)
    at org.apache.jasper.compiler.TagFileProcessor.loadTagFile(TagFileProcessor.java:660)
    at org.apache.jasper.compiler.TagFileProcessor.access$000(TagFileProcessor.java:91)
    at org.apache.jasper.compiler.TagFileProcessor$TagFileLoaderVisitor.visit(TagFileProcessor.java:719)

org.apache.jasper.JasperException: PWC6033: Error in Javac compilation for JSP
    at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:634)
    at org.apache.jasper.servlet.JspServletWrapper.loadTagFile(JspServletWrapper.java:280)
    at org.apache.jasper.compiler.TagFileProcessor.loadTagFile(TagFileProcessor.java:660)
    at org.apache.jasper.compiler.TagFileProcessor.access$000(TagFileProcessor.java:91)
    at org.apache.jasper.compiler.TagFileProcessor$TagFileLoaderVisitor.visit(TagFileProcessor.java:719)
    at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1502)
    at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2297)
    at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2347)
    at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2353)
    at org.apache.jasper.compiler.Node$Root.accept(Node.java:499)
    at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2297)
    at org.apache.jasper.compiler.TagFileProcessor.loadTagFiles(TagFileProcessor.java:737)

Thanks,
Susmit