Skip to main content

Running comet example from NetBeans 5.5.1

4 replies [Last post]
martingu
Offline
Joined: 2007-06-11
Points: 0

I'm trying to set up a project for the Comet example in NetBeans 5.5.1 and I've run into some problems.

What I've done is:

* Configured my Glassfish server (with comet enabled) in NetBeans (Runtime/Servers)
* Created a new project from the Comet sample code checked out from CVS
* Added the appserv-rt.jar as a library to get the project to compile

But when I run the project I get the following error:

org.apache.jasper.JasperException: /index.jsp(1,51) PWC6188: The absolute uri: http://jmaki/v1.0/jsp cannot be resolved in either web.xml or the jar files deployed with this application

Any suggestions?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
martingu
Offline
Joined: 2007-06-11
Points: 0

Unfortunately it was already present under Libraries. I tried removing it and adding it again, but with the same result...

gmurray71
Offline
Joined: 2003-07-31
Points: 0

Hi,

Can you try putting the comet.war file in your glassfish/domains/domain1/autodeploy directory and see if that works first?

The URL will be http://localhost:8080/jmaki-comet

Also can you also see if there are any errors reported in the glassfish/domains/domain1/logs/server.log?

thank you,

-Greg

martingu
Offline
Joined: 2007-06-11
Points: 0

That works great (I should have mentioned that). The problem arises when I tryto run it as a project from NetBeans (I wanna play around with the code, see ;-)

The server log has this to say about it:

[#|2007-06-11T11:23:19.191+0200|SEVERE|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=22;_ThreadName=httpSSLWorkerThread-8030-1;_RequestID=0596f889-0785-4158-b3cf-d32533482f1b;|StandardWrapperValve[jsp]: PWC1406: Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: /index.jsp(1,51) PWC6188: The absolute uri: http://jmaki/v1.0/jsp cannot be resolved in either web.xml or the jar files deployed with this application
at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:60)
at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:346)
at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:140)
at org.apache.jasper.compiler.TagLibraryInfoImpl.generateTLDLocation(TagLibraryInfoImpl.java:404)
at org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:209)
at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:469)
at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:549)
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1613)
at org.apache.jasper.compiler.Parser.parse(Parser.java:152)
at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:210)
at org.apache.jasper.compiler.ParserController.parse(ParserController.java:111)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:158)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:373)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:571)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:344)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:464)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:358)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:398)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:277)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:255)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:81)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:207)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:558)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1067)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:558)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1067)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:249)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:618)
at com.sun.enterprise.web.connector.grizzly.comet.CometEngine.handle(CometEngine.java:233)
at com.sun.enterprise.web.connector.grizzly.comet.CometAsyncFilter.doFilter(CometAsyncFilter.java:74)
at com.sun.enterprise.web.connector.grizzly.async.DefaultAsyncExecutor.invokeFilters(DefaultAsyncExecutor.java:162)
at com.sun.enterprise.web.connector.grizzly.async.DefaultAsyncExecutor.interrupt(DefaultAsyncExecutor.java:140)
at com.sun.enterprise.web.connector.grizzly.async.AsyncProcessorTask.doTask(AsyncProcessorTask.java:79)
at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:93)

Message was edited by: martingu

gmurray71
Offline
Joined: 2003-07-31
Points: 0

You will need to add a Library the ajax-wrapper-comp.jar as part of the web application. It is located in the WEB-INF/lib directory of the comet application. You can context click on the "Libraries" project node and select "Add Library" to add it.