users@grizzly.java.net

Re: pyservlet.war - problemes with grizzly 1.9.17

From: Survivant 00 <survivant00_at_gmail.com>
Date: Thu, 20 Aug 2009 18:50:40 -0400

I open a Issue

https://grizzly.dev.java.net/issues/show_bug.cgi?id=716



2009/8/20 Survivant 00 <survivant00_at_gmail.com>

> I'll run it in debug mode. I'll open a issue if needed.
>
>
> à la bouffe.
>
>
> 2009/8/20 Survivant 00 <survivant00_at_gmail.com>
>
>> GWSD it's not a complete web container... not yet :)
>>
>> -Djava.util.logging.config.file=C:/source/logging.properties
>>
>>
>> we never try with this war file... will be a good testcase for regression.
>>
>>
>>
>>
>>
>> 2009/8/20 Ng, Victor <Victor.Ng_at_cibc.ca>
>>
>>> That's bizarre. I don't get those errors when I hit
>>> http://localhost:8090/pyservlet/.
>>>
>>> C:\dev\gf-samples\plyjy-servlet\demo>java -jar
>>> grizzly-http-servlet-deployer-1.9.17.jar --port=8090 -a pyservlet.war
>>> Aug 20, 2009 5:27:06 PM
>>> com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeployer deploy
>>> INFO: Will deploy application
>>> path=C:\DOCUME~1\ngvictor\LOCALS~1\Temp\pyservlet\WEB-INF\web.xml
>>> Aug 20, 2009 5:27:08 PM
>>> com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeployer deploy
>>> INFO: Not a valid WebApp, will be ignored :
>>> path=C:\DOCUME~1\ngvictor\LOCALS~1\Temp\pyservlet\WEB-INF\web.xml
>>> Aug 20, 2009 5:27:08 PM
>>> com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeployer deploy
>>> INFO: deployed application
>>> path=C:\DOCUME~1\ngvictor\LOCALS~1\Temp\pyservlet\WEB-INF\web.xml
>>> Aug 20, 2009 5:27:08 PM com.sun.grizzly.Controller start
>>> INFO: Starting Grizzly Framework 1.9.17 - Thu Aug 20 17:27:08 EDT 2009
>>>
>>> Just to make sure I'm not hallucinating, I just double checked and the
>>> war file does work with Jetty 7.0pre5 and Glassfish v2.1 final.
>>>
>>> How do you turn on debugging output?
>>>
>>> I doubt it's anything important, but I'm using Java 1.6.0_07, maybe I
>>> ought to upgrade to the latest 1.6 version.
>>>
>>> vic
>>>
>>> ------------------------------
>>> *From:* Survivant 00 [mailto:survivant00_at_gmail.com]
>>> *Sent:* Thursday, August 20, 2009 5:25 PM
>>> *To:* Ng, Victor
>>> *Cc:* users_at_grizzly.dev.java.net
>>>
>>> *Subject:* Re: pyservlet.war - problemes with grizzly 1.9.17
>>>
>>> oups.. I forgot the context in my URL
>>>
>>> http://localhost:8090/pyservlet/
>>>
>>>
>>> now I got this error in the console.
>>>
>>> maybe it's a bug. Look like it didn't find the class.
>>>
>>>
>>> INFO: deployed application
>>> path=C:\DOCUME~1\dionnese\LOCALS~1\Temp\pyservlet\WEB
>>> -INF\web.xml
>>> com.sun.grizzly.http.servlet.ServletAdapter_at_e0cc23
>>> com.sun.grizzly.http.servlet.ServletAdapter_at_7a1576
>>> 2009-08-20 17:21:53 com.sun.grizzly.Controller start
>>> INFO: Starting Grizzly Framework 1.9.17-SNAPSHOT - Thu Aug 20 17:21:53
>>> EDT 2009
>>> *sys-package-mgr*: processing new jar,
>>> 'C:\Tmp\grizzly-http-servlet-deployer-1.9
>>> .17-SNAPSHOT.jar'
>>> *sys-package-mgr*: processing new jar, 'C:\Program
>>> Files\Java\jre6\lib\resources
>>> .jar'
>>> *sys-package-mgr*: processing new jar, 'C:\Program
>>> Files\Java\jre6\lib\rt.jar'
>>> *sys-package-mgr*: processing new jar, 'C:\Program
>>> Files\Java\jre6\lib\jsse.jar'
>>>
>>> *sys-package-mgr*: processing new jar, 'C:\Program
>>> Files\Java\jre6\lib\jce.jar'
>>> *sys-package-mgr*: processing new jar, 'C:\Program
>>> Files\Java\jre6\lib\charsets.
>>> jar'
>>> *sys-package-mgr*: processing new jar, 'C:\Program
>>> Files\Java\jre6\lib\ext\dnsns
>>> .jar'
>>> *sys-package-mgr*: processing new jar, 'C:\Program
>>> Files\Java\jre6\lib\ext\local
>>> edata.jar'
>>> *sys-package-mgr*: processing new jar, 'C:\Program
>>> Files\Java\jre6\lib\ext\QTJav
>>> a.zip'
>>> *sys-package-mgr*: processing new jar, 'C:\Program
>>> Files\Java\jre6\lib\ext\sunjc
>>> e_provider.jar'
>>> *sys-package-mgr*: processing new jar, 'C:\Program
>>> Files\Java\jre6\lib\ext\sunms
>>> capi.jar'
>>> *sys-package-mgr*: processing new jar, 'C:\Program
>>> Files\Java\jre6\lib\ext\sunpk
>>> cs11.jar'
>>> 2009-08-20 17:22:45 com.crankycoder.PyServlet init_delegate_proxy
>>> INFO: PyServlet Module: crankycoder.servlet.http
>>> 2009-08-20 17:22:45 com.crankycoder.PyServlet init_delegate_proxy
>>> INFO: PyServlet Class: DefaultDelegate
>>> 2009-08-20 17:22:45 com.crankycoder.PyServlet createObject
>>> INFO: importing delegate_proxy class : [from crankycoder.servlet.http
>>> import Jyt
>>> honDelegateProxy]
>>> 2009-08-20 17:22:45 com.crankycoder.PyServlet createObject
>>> GRAVE: null
>>> Traceback (most recent call last):
>>> File "<string>", line 1, in <module>
>>> ImportError: No module named crankycoder
>>>
>>> at
>>> org.python.core.PyException.fillInStackTrace(PyException.java:70)
>>> at java.lang.Throwable.<init>(Throwable.java:181)
>>> at java.lang.Exception.<init>(Unknown Source)
>>> at java.lang.RuntimeException.<init>(Unknown Source)
>>> at org.python.core.PyException.<init>(PyException.java:46)
>>> at org.python.core.PyException.<init>(PyException.java:43)
>>> at org.python.core.PyException.<init>(PyException.java:61)
>>> at org.python.core.Py.ImportError(Py.java:264)
>>> at org.python.core.imp.import_first(imp.java:657)
>>> at org.python.core.imp.import_name(imp.java:741)
>>> at org.python.core.imp.importName(imp.java:791)
>>> at org.python.core.ImportFunction.__call__(__builtin__.java:1236)
>>> at org.python.core.PyObject.__call__(PyObject.java:367)
>>> at org.python.core.__builtin__.__import__(__builtin__.java:1207)
>>> at org.python.core.imp.importFromAs(imp.java:869)
>>> at org.python.core.imp.importFrom(imp.java:845)
>>> at org.python.pycode._pyx0.f$0(<string>:1)
>>> at org.python.pycode._pyx0.call_function(<string>)
>>> at org.python.core.PyTableCode.call(PyTableCode.java:165)
>>> at org.python.core.PyCode.call(PyCode.java:18)
>>> at org.python.core.Py.runCode(Py.java:1197)
>>> at org.python.core.Py.exec(Py.java:1241)
>>> at
>>> org.python.util.PythonInterpreter.exec(PythonInterpreter.java:138)
>>> at com.crankycoder.PyServlet.createObject(PyServlet.java:88)
>>> at
>>> com.crankycoder.PyServlet.init_delegate_proxy(PyServlet.java:75)
>>> at com.crankycoder.PyServlet.setupEnvironment(PyServlet.java:63)
>>> at com.crankycoder.PyServlet.init(PyServlet.java:42)
>>> at javax.servlet.GenericServlet.init(GenericServlet.java:241)
>>> at
>>> com.sun.grizzly.http.servlet.ServletAdapter.loadServlet(ServletAdapte
>>> r.java:404)
>>> at
>>> com.sun.grizzly.http.servlet.ServletAdapter.service(ServletAdapter.ja
>>> va:342)
>>> at
>>> com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java
>>> :166)
>>> at
>>> com.sun.grizzly.tcp.http11.GrizzlyAdapterChain.service(GrizzlyAdapter
>>> Chain.java:185)
>>> at
>>> com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java
>>> :166)
>>> at
>>> com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:7
>>> 49)
>>> at
>>> com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:657)
>>> at
>>> com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:908)
>>> at
>>> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFil
>>> ter.java:164)
>>> at
>>> com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultPro
>>> tocolChain.java:135)
>>> at
>>> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.jav
>>> a:102)
>>> at
>>> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.jav
>>> a:88)
>>> at
>>> com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java
>>> :76)
>>> at
>>> com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextT
>>> ask.java:53)
>>> at
>>> com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.
>>> java:57)
>>> at com.sun.grizzly.NIOContext.execute(NIOContext.java:510)
>>> at
>>> com.sun.grizzly.SelectorHandlerRunner.handleSelectedKey(SelectorHandl
>>> erRunner.java:357)
>>> at
>>> com.sun.grizzly.SelectorHandlerRunner.handleSelectedKeys(SelectorHand
>>> lerRunner.java:257)
>>> at
>>> com.sun.grizzly.SelectorHandlerRunner.doSelect(SelectorHandlerRunner.
>>> java:194)
>>> at
>>> com.sun.grizzly.SelectorHandlerRunner.run(SelectorHandlerRunner.java:
>>> 129)
>>> at
>>> com.sun.grizzly.util.FixedThreadPool$BasicWorker.dowork(FixedThreadPo
>>> ol.java:379)
>>> at
>>> com.sun.grizzly.util.FixedThreadPool$BasicWorker.run(FixedThreadPool.
>>> java:360)
>>> at java.lang.Thread.run(Unknown Source)
>>> 2009-08-20 17:22:45 com.crankycoder.PyServlet createObject
>>> GRAVE: null
>>> com.crankycoder.ModuleNotFoundException: The module
>>> 'crankycoder.servlet.http' i
>>> s not found.
>>> at com.crankycoder.PyServlet.createObject(PyServlet.java:98)
>>> at
>>> com.crankycoder.PyServlet.init_delegate_proxy(PyServlet.java:75)
>>> at com.crankycoder.PyServlet.setupEnvironment(PyServlet.java:63)
>>> at com.crankycoder.PyServlet.init(PyServlet.java:42)
>>> at javax.servlet.GenericServlet.init(GenericServlet.java:241)
>>> at
>>> com.sun.grizzly.http.servlet.ServletAdapter.loadServlet(ServletAdapte
>>> r.java:404)
>>> at
>>> com.sun.grizzly.http.servlet.ServletAdapter.service(ServletAdapter.ja
>>> va:342)
>>> at
>>> com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java
>>> :166)
>>> at
>>> com.sun.grizzly.tcp.http11.GrizzlyAdapterChain.service(GrizzlyAdapter
>>> Chain.java:185)
>>> at
>>> com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java
>>> :166)
>>> at
>>> com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:7
>>> 49)
>>> at
>>> com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:657)
>>> at
>>> com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:908)
>>> at
>>> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFil
>>> ter.java:164)
>>> at
>>> com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultPro
>>> tocolChain.java:135)
>>> at
>>> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.jav
>>> a:102)
>>> at
>>> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.jav
>>> a:88)
>>> at
>>> com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java
>>> :76)
>>> at
>>> com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextT
>>> ask.java:53)
>>> at
>>> com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.
>>> java:57)
>>> at com.sun.grizzly.NIOContext.execute(NIOContext.java:510)
>>> at
>>> com.sun.grizzly.SelectorHandlerRunner.handleSelectedKey(SelectorHandl
>>> erRunner.java:357)
>>> at
>>> com.sun.grizzly.SelectorHandlerRunner.handleSelectedKeys(SelectorHand
>>> lerRunner.java:257)
>>> at
>>> com.sun.grizzly.SelectorHandlerRunner.doSelect(SelectorHandlerRunner.
>>> java:194)
>>> at
>>> com.sun.grizzly.SelectorHandlerRunner.run(SelectorHandlerRunner.java:
>>> 129)
>>> at
>>> com.sun.grizzly.util.FixedThreadPool$BasicWorker.dowork(FixedThreadPo
>>> ol.java:379)
>>> at
>>> com.sun.grizzly.util.FixedThreadPool$BasicWorker.run(FixedThreadPool.
>>> java:360)
>>> at java.lang.Thread.run(Unknown Source)
>>> 2009-08-20 17:22:45 com.crankycoder.PyServlet createObject
>>> INFO: Instantiating the delegate_proxy proxy
>>> 2009-08-20 17:22:45 com.sun.grizzly.http.servlet.ServletAdapter service
>>> GRAVE: service exception:
>>> java.lang.NullPointerException
>>> at com.crankycoder.PyServlet.createObject(PyServlet.java:106)
>>> at
>>> com.crankycoder.PyServlet.init_delegate_proxy(PyServlet.java:75)
>>> at com.crankycoder.PyServlet.setupEnvironment(PyServlet.java:63)
>>> at com.crankycoder.PyServlet.init(PyServlet.java:42)
>>> at javax.servlet.GenericServlet.init(GenericServlet.java:241)
>>> at
>>> com.sun.grizzly.http.servlet.ServletAdapter.loadServlet(ServletAdapte
>>> r.java:404)
>>> at
>>> com.sun.grizzly.http.servlet.ServletAdapter.service(ServletAdapter.ja
>>> va:342)
>>> at
>>> com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java
>>> :166)
>>> at
>>> com.sun.grizzly.tcp.http11.GrizzlyAdapterChain.service(GrizzlyAdapter
>>> Chain.java:185)
>>> at
>>> com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java
>>> :166)
>>> at
>>> com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:7
>>> 49)
>>> at
>>> com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:657)
>>> at
>>> com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:908)
>>> at
>>> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFil
>>> ter.java:164)
>>> at
>>> com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultPro
>>> tocolChain.java:135)
>>> at
>>> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.jav
>>> a:102)
>>> at
>>> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.jav
>>> a:88)
>>> at
>>> com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java
>>> :76)
>>> at
>>> com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextT
>>> ask.java:53)
>>> at
>>> com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.
>>> java:57)
>>> at com.sun.grizzly.NIOContext.execute(NIOContext.java:510)
>>> at
>>> com.sun.grizzly.SelectorHandlerRunner.handleSelectedKey(SelectorHandl
>>> erRunner.java:357)
>>> at
>>> com.sun.grizzly.SelectorHandlerRunner.handleSelectedKeys(SelectorHand
>>> lerRunner.java:257)
>>> at
>>> com.sun.grizzly.SelectorHandlerRunner.doSelect(SelectorHandlerRunner.
>>> java:194)
>>> at
>>> com.sun.grizzly.SelectorHandlerRunner.run(SelectorHandlerRunner.java:
>>> 129)
>>> at
>>> com.sun.grizzly.util.FixedThreadPool$BasicWorker.dowork(FixedThreadPo
>>> ol.java:379)
>>> at
>>> com.sun.grizzly.util.FixedThreadPool$BasicWorker.run(FixedThreadPool.
>>> java:360)
>>> at java.lang.Thread.run(Unknown Source)
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> 2009/8/20 Survivant 00 <survivant00_at_gmail.com>
>>>
>>>> thanks. no trouble.. most of the time I used mediafire for big files.
>>>>
>>>>
>>>> ok.. I did that
>>>>
>>>> C:\Tmp>java -jar grizzly-http-servlet-deployer-1.9.17-SNAPSHOT.jar
>>>> --port=8090 -
>>>> a pyservlet.war
>>>> 2009-08-20 17:16:54
>>>> com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeploy
>>>> er deploy
>>>> INFO: Will deploy application
>>>> path=C:\DOCUME~1\dionnese\LOCALS~1\Temp\pyservlet\
>>>> WEB-INF\web.xml
>>>> 2009-08-20 17:16:57
>>>> com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeploy
>>>> er deploy
>>>> INFO: deployed application
>>>> path=C:\DOCUME~1\dionnese\LOCALS~1\Temp\pyservlet\WEB
>>>> -INF\web.xml
>>>> com.sun.grizzly.http.servlet.ServletAdapter_at_f42ad0
>>>> com.sun.grizzly.http.servlet.ServletAdapter_at_26dbec
>>>> 2009-08-20 17:16:57 com.sun.grizzly.Controller start
>>>> INFO: Starting Grizzly Framework 1.9.17-SNAPSHOT - Thu Aug 20 17:16:57
>>>> EDT 2009
>>>>
>>>>
>>>> http://localhost:8090/
>>>>
>>>> obtain a message : Not found.
>>>>
>>>>
>>>> Do you know what the output should be ?
>>>>
>>>> I will run it in debug.
>>>>
>>>>
>>>>
>>>> 2009/8/20 Ng, Victor <Victor.Ng_at_cibc.ca>
>>>>
>>>>> WAR file : http://bit.ly/ayQYL
>>>>>
>>>>> Sorry - attachments are filtered by the mail server.
>>>>>
>>>>> vic
>>>>>
>>>>> ------------------------------
>>>>> *From:* Survivant 00 [mailto:survivant00_at_gmail.com]
>>>>> *Sent:* Thursday, August 20, 2009 5:11 PM
>>>>> *To:* Ng, Victor
>>>>> *Subject:* Re: pyservlet.war - problemes with grizzly 1.9.17
>>>>>
>>>>> the syntax is
>>>>>
>>>>> --port=8090
>>>>>
>>>>> if it still doesn't work.. just send me your war file.
>>>>>
>>>>>
>>>>> 2009/8/20 Ng, Victor <Victor.Ng_at_cibc.ca>
>>>>>
>>>>>>
>>>>>> argh.. stupid outlook.
>>>>>>
>>>>>> The URL I got the Jetty-runner was :
>>>>>>
>>>>>> *
>>>>>> http://repo2.maven.org/maven2/org/mortbay/jetty/jetty-runner/7.0.0.pre5/
>>>>>> *<http://repo2.maven.org/maven2/org/mortbay/jetty/jetty-runner/7.0.0.pre5/>
>>>>>>
>>>>>> My command line (I'm on WinXP) is:
>>>>>>
>>>>>> java -jar grizzly-http-servlet-deployer-1.9.17.jar --port 8090 -a
>>>>>> pyservlet.war
>>>>>>
>>>>>> Grizzly starts on port 8080 no matter what port I specify.
>>>>>>
>>>>>> It *does* give me a response on *http://localhost:8080/pyservlet/*<http://localhost:8080/pyservlet/>, but it's not a 200 - there's no status set at all. Firebug gives me these
>>>>>> headers:
>>>>>>
>>>>>> Server grizzly/1.9.17
>>>>>> Content-Length 0
>>>>>> Date Thu, 20 Aug 2009 21:04:54 GMT
>>>>>>
>>>>>> As the content-length indicates - I'm getting no content body on that
>>>>>> URL.
>>>>>>
>>>>>> vic
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>
>>
>