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
>>>
>>>
>>
>>
>