users@grizzly.java.net

Re: [ANN] Running Hudson on top of Grizzly

From: Survivant 00 <survivant00_at_gmail.com>
Date: Thu, 18 Dec 2008 14:49:27 -0500

:)

use Virtualbox.. you won't impact your little Mac :)

2008/12/18 Jeanfrancois Arcand <Jeanfrancois.Arcand_at_sun.com>

> I guess I really need to try on windows :-)
>
> A+
>
> -- jeanfrancois
>
>
> Jeanfrancois Arcand wrote:
>
>> Salut,
>>
>> which hudson.war are you using? Can you unzip and see if the Stapler class
>> is inside the war?
>>
>> A+
>>
>> -- jeanfrancois
>>
>> Survivant 00 wrote:
>>
>>> trop facile...
>>>
>>> doesn't work
>>>
>>> C:\Source\grizzly\extras\hudson-on-grizzly\target>java -jar
>>> grizzly-hudson-1.9.2-SNAPSHOT.jar -a hudson
>>>
>>> Running from: C:\Source\grizzly\extras\hudson-on-grizzly\target\hudson
>>> 2008-12-18 14:37:33 com.sun.grizzly.tcp.StaticResourcesAdapter <init>
>>> INFO: Send-file enabled:true
>>> 2008-12-18 14:37:33 com.sun.grizzly.util.ClassLoaderUtil load
>>> GRAVE: Unable to load class org.kohsuke.stapler.Stapler
>>> java.lang.ClassNotFoundException: org.kohsuke.stapler.Stapler
>>> at java.net.URLClassLoader$1.run(Unknown Source)
>>> at java.security.AccessController.doPrivileged(Native Method)
>>> at java.net.URLClassLoader.findClass(Unknown Source)
>>> at java.lang.ClassLoader.loadClass(Unknown Source)
>>>
>>> C:\Source\grizzly\extras\hudson-on-grizzly\target>dir
>>> Le volume dans le lecteur C n'a pas de nom.
>>> Le numéro de série du volume est 902C-6663
>>>
>>> Répertoire de C:\Source\grizzly\extras\hudson-on-grizzly\target
>>>
>>> 2008/12/18 14:38 <REP> .
>>> 2008/12/18 14:38 <REP> ..
>>> 2008/12/18 13:27 <REP> classes
>>> 2008/12/18 10:30 881 567 grizzly-hudson-1.9.2-SNAPSHOT.jar
>>> 2008/12/18 14:36 <REP> hudson
>>>
>>>
>>>
>>>
>>>
>>> 2008/12/18 Jeanfrancois Arcand <Jeanfrancois.Arcand_at_sun.com <mailto:
>>> Jeanfrancois.Arcand_at_sun.com>>
>>>
>>> Salut,
>>>
>>> looks like an issue with win32:
>>>
>>>
>>> C:\DOCUME~1\dionnese\LOCALS~1\Temp\hudson
>>>
>>> I hate win32! As a workaround, unzip the war into a folder and do:
>>>
>>> % java -jar grizzly-hudson.jar -p 8080 -a hudson_folder
>>>
>>> A+
>>>
>>> -- Jeanfrancois
>>>
>>>
>>> Survivant 00 wrote:
>>>
>>> I try that this morning and it failed.
>>>
>>> I did 2 tests.
>>>
>>> #1 - I had already a tomcat running on 8080 and I got this
>>> error. (I was expected a bindException)
>>>
>>>
>>> C:\Source\grizzly\extras\hudson-on-grizzly\target>java -jar
>>> grizzly-hudson-1.9.2-SNAPSHOT.jar -p 8080 -a hudson.war
>>> Running from: C:\DOCUME~1\dionnese\LOCALS~1\Temp\hudson
>>> 2008-12-18 10:56:25 com.sun.grizzly.tcp.StaticResourcesAdapter
>>> <init>
>>> INFO: Send-file enabled:true
>>> 2008-12-18 10:56:27 com.sun.grizzly.util.ClassLoaderUtil load
>>> GRAVE: Unable to load class org.kohsuke.stapler.Stapler
>>> java.lang.ClassNotFoundException: org.kohsuke.stapler.Stapler
>>> at java.net.URLClassLoader$1.run(Unknown Source)
>>> at java.security.AccessController.doPrivileged(Native
>>> Method)
>>> at java.net.URLClassLoader.findClass(Unknown Source)
>>> at java.lang.ClassLoader.loadClass(Unknown Source)
>>> at java.lang.ClassLoader.loadClass(Unknown Source)
>>> at java.lang.ClassLoader.loadClassInternal(Unknown Source)
>>> at java.lang.Class.forName0(Native Method)
>>> at java.lang.Class.forName(Unknown Source)
>>> at
>>>
>>> com.sun.grizzly.util.ClassLoaderUtil.load(ClassLoaderUtil.java:110)
>>> at
>>> com.sun.grizzly.util.ClassLoaderUtil.load(ClassLoaderUtil.java:98)
>>> at
>>> com.sun.grizzly.hudson.Hudson.configureAdapter(Hudson.java:76)
>>> at
>>>
>>> com.sun.grizzly.standalone.StandaloneMainUtil.createSelectorThread(St
>>> andaloneMainUtil.java:129)
>>> at
>>>
>>> com.sun.grizzly.standalone.StandaloneMainUtil.start(StandaloneMainUti
>>> l.java:79)
>>> at com.sun.grizzly.hudson.Hudson.main(Hudson.java:64)
>>> 2008-12-18 10:56:27 com.sun.grizzly.util.ClassLoaderUtil load
>>> GRAVE: Unable to load class hudson.security.HudsonFilter
>>> java.lang.ClassNotFoundException: hudson.security.HudsonFilter
>>> at java.net.URLClassLoader$1.run(Unknown Source)
>>> at java.security.AccessController.doPrivileged(Native
>>> Method)
>>> at java.net.URLClassLoader.findClass(Unknown Source)
>>> at java.lang.ClassLoader.loadClass(Unknown Source)
>>> at java.lang.ClassLoader.loadClass(Unknown Source)
>>> at java.lang.ClassLoader.loadClassInternal(Unknown Source)
>>> at java.lang.Class.forName0(Native Method)
>>> at java.lang.Class.forName(Unknown Source)
>>> at
>>>
>>> com.sun.grizzly.util.ClassLoaderUtil.load(ClassLoaderUtil.java:110)
>>> at
>>> com.sun.grizzly.util.ClassLoaderUtil.load(ClassLoaderUtil.java:98)
>>> at
>>> com.sun.grizzly.hudson.Hudson.configureAdapter(Hudson.java:80)
>>> at
>>>
>>> com.sun.grizzly.standalone.StandaloneMainUtil.createSelectorThread(St
>>> andaloneMainUtil.java:129)
>>> at
>>>
>>> com.sun.grizzly.standalone.StandaloneMainUtil.start(StandaloneMainUti
>>> l.java:79)
>>> at com.sun.grizzly.hudson.Hudson.main(Hudson.java:64)
>>> 2008-12-18 10:56:27 com.sun.grizzly.util.ClassLoaderUtil load
>>> GRAVE: Unable to load class hudson.util.PluginServletFilter
>>> java.lang.ClassNotFoundException: hudson.util.PluginServletFilter
>>> at java.net.URLClassLoader$1.run(Unknown Source)
>>> at java.security.AccessController.doPrivileged(Native
>>> Method)
>>> at java.net.URLClassLoader.findClass(Unknown Source)
>>> at java.lang.ClassLoader.loadClass(Unknown Source)
>>> at java.lang.ClassLoader.loadClass(Unknown Source)
>>> at java.lang.ClassLoader.loadClassInternal(Unknown Source)
>>> at java.lang.Class.forName0(Native Method)
>>> at java.lang.Class.forName(Unknown Source)
>>> at
>>>
>>> com.sun.grizzly.util.ClassLoaderUtil.load(ClassLoaderUtil.java:110)
>>> at
>>> com.sun.grizzly.util.ClassLoaderUtil.load(ClassLoaderUtil.java:98)
>>> at
>>> com.sun.grizzly.hudson.Hudson.configureAdapter(Hudson.java:86)
>>> at
>>>
>>> com.sun.grizzly.standalone.StandaloneMainUtil.createSelectorThread(St
>>> andaloneMainUtil.java:129)
>>> at
>>>
>>> com.sun.grizzly.standalone.StandaloneMainUtil.start(StandaloneMainUti
>>> l.java:79)
>>> at com.sun.grizzly.hudson.Hudson.main(Hudson.java:64)
>>> 2008-12-18 10:56:28 com.sun.grizzly.http.SelectorThread
>>> displayConfiguration
>>> INFO:
>>> Grizzly configuration for port 8080
>>> Thread Pool: StatsThreadPool[name=http, priority=5,
>>> min-threads=5, max-
>>> threads=5, max-queue-size=2147483647,
>>> initial-byte-buffer-size=8192, byte-buffer
>>> -type=HEAP_VIEW, is-shutdown=false, port=8080]
>>> ByteBuffer size: 8192
>>> maxHttpHeaderSize: 8192
>>> maxKeepAliveRequests: 256
>>> keepAliveTimeoutInSeconds: 30
>>> Static File Cache enabled: true
>>> Static resources directory:
>>> C:\DOCUME~1\dionnese\LOCALS~1\Temp\hudson
>>> Adapter : com.sun.grizzly.http.servlet.ServletAdapter
>>> Asynchronous Request Processing enabled: false
>>> Server started in 12250 milliseconds.
>>>
>>>
>>> #2 - I close Tomcat and retry and I got this :
>>>
>>> C:\Source\grizzly\extras\hudson-on-grizzly\target>java -jar
>>> grizzly-hudson-1.9.2
>>> -SNAPSHOT.jar -p 8080 -a hudson.war
>>> Running from: C:\DOCUME~1\dionnese\LOCALS~1\Temp\hudson
>>> 2008-12-18 10:59:00 com.sun.grizzly.tcp.StaticResourcesAdapter
>>> <init>
>>> INFO: Send-file enabled:true
>>> 2008-12-18 10:59:07 com.sun.grizzly.util.ClassLoaderUtil load
>>> GRAVE: Unable to load class org.kohsuke.stapler.Stapler
>>> java.lang.ClassNotFoundException: org.kohsuke.stapler.Stapler
>>> at java.net.URLClassLoader$1.run(Unknown Source)
>>> at java.security.AccessController.doPrivileged(Native
>>> Method)
>>> at java.net.URLClassLoader.findClass(Unknown Source)
>>> at java.lang.ClassLoader.loadClass(Unknown Source)
>>> at java.lang.ClassLoader.loadClass(Unknown Source)
>>> at java.lang.ClassLoader.loadClassInternal(Unknown Source)
>>> at java.lang.Class.forName0(Native Method)
>>> at java.lang.Class.forName(Unknown Source)
>>> at
>>>
>>> com.sun.grizzly.util.ClassLoaderUtil.load(ClassLoaderUtil.java:110)
>>> at
>>> com.sun.grizzly.util.ClassLoaderUtil.load(ClassLoaderUtil.java:98)
>>> at
>>> com.sun.grizzly.hudson.Hudson.configureAdapter(Hudson.java:76)
>>> at
>>>
>>> com.sun.grizzly.standalone.StandaloneMainUtil.createSelectorThread(St
>>> andaloneMainUtil.java:129)
>>> at
>>>
>>> com.sun.grizzly.standalone.StandaloneMainUtil.start(StandaloneMainUti
>>> l.java:79)
>>> at com.sun.grizzly.hudson.Hudson.main(Hudson.java:64)
>>> 2008-12-18 10:59:07 com.sun.grizzly.util.ClassLoaderUtil load
>>> GRAVE: Unable to load class hudson.security.HudsonFilter
>>> java.lang.ClassNotFoundException: hudson.security.HudsonFilter
>>> at java.net.URLClassLoader$1.run(Unknown Source)
>>> at java.security.AccessController.doPrivileged(Native
>>> Method)
>>> at java.net.URLClassLoader.findClass(Unknown Source)
>>> at java.lang.ClassLoader.loadClass(Unknown Source)
>>> at java.lang.ClassLoader.loadClass(Unknown Source)
>>> at java.lang.ClassLoader.loadClassInternal(Unknown Source)
>>> at java.lang.Class.forName0(Native Method)
>>> at java.lang.Class.forName(Unknown Source)
>>> at
>>>
>>> com.sun.grizzly.util.ClassLoaderUtil.load(ClassLoaderUtil.java:110)
>>> at
>>> com.sun.grizzly.util.ClassLoaderUtil.load(ClassLoaderUtil.java:98)
>>> at
>>> com.sun.grizzly.hudson.Hudson.configureAdapter(Hudson.java:80)
>>> at
>>>
>>> com.sun.grizzly.standalone.StandaloneMainUtil.createSelectorThread(St
>>> andaloneMainUtil.java:129)
>>> at
>>>
>>> com.sun.grizzly.standalone.StandaloneMainUtil.start(StandaloneMainUti
>>> l.java:79)
>>> at com.sun.grizzly.hudson.Hudson.main(Hudson.java:64)
>>> 2008-12-18 10:59:07 com.sun.grizzly.util.ClassLoaderUtil load
>>> GRAVE: Unable to load class hudson.util.PluginServletFilter
>>> java.lang.ClassNotFoundException: hudson.util.PluginServletFilter
>>> at java.net.URLClassLoader$1.run(Unknown Source)
>>> at java.security.AccessController.doPrivileged(Native
>>> Method)
>>> at java.net.URLClassLoader.findClass(Unknown Source)
>>> at java.lang.ClassLoader.loadClass(Unknown Source)
>>> at java.lang.ClassLoader.loadClass(Unknown Source)
>>> at java.lang.ClassLoader.loadClassInternal(Unknown Source)
>>> at java.lang.Class.forName0(Native Method)
>>> at java.lang.Class.forName(Unknown Source)
>>> at
>>>
>>> com.sun.grizzly.util.ClassLoaderUtil.load(ClassLoaderUtil.java:110)
>>> at
>>> com.sun.grizzly.util.ClassLoaderUtil.load(ClassLoaderUtil.java:98)
>>> at
>>> com.sun.grizzly.hudson.Hudson.configureAdapter(Hudson.java:86)
>>> at
>>>
>>> com.sun.grizzly.standalone.StandaloneMainUtil.createSelectorThread(St
>>> andaloneMainUtil.java:129)
>>> at
>>>
>>> com.sun.grizzly.standalone.StandaloneMainUtil.start(StandaloneMainUti
>>> l.java:79)
>>> at com.sun.grizzly.hudson.Hudson.main(Hudson.java:64)
>>> 2008-12-18 10:59:07 com.sun.grizzly.http.SelectorThread
>>> displayConfiguration
>>> INFO:
>>> Grizzly configuration for port 8080
>>> Thread Pool: StatsThreadPool[name=http, priority=5,
>>> min-threads=5, max-
>>> threads=5, max-queue-size=2147483647,
>>> initial-byte-buffer-size=8192, byte-buffer
>>> -type=HEAP_VIEW, is-shutdown=false, port=8080]
>>> ByteBuffer size: 8192
>>> maxHttpHeaderSize: 8192
>>> maxKeepAliveRequests: 256
>>> keepAliveTimeoutInSeconds: 30
>>> Static File Cache enabled: true
>>> Static resources directory:
>>> C:\DOCUME~1\dionnese\LOCALS~1\Temp\hudson
>>> Adapter : com.sun.grizzly.http.servlet.ServletAdapter
>>> Asynchronous Request Processing enabled: false
>>> Server started in 11515 milliseconds.
>>>
>>>
>>>
>>> if I try to access http://localhost:8080/hudson
>>>
>>>
>>>
>>> I obtain this error
>>>
>>> 2008-12-18 11:00:52 com.sun.grizzly.http.servlet.ServletAdapter
>>> service
>>> GRAVE: service exception:
>>> java.lang.RuntimeException: Invalid Servlet defined
>>> at
>>>
>>> com.sun.grizzly.http.servlet.ServletAdapter.service(ServletAdapter.ja
>>> va:217)
>>> at
>>>
>>> com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java
>>> :147)
>>> at
>>>
>>> com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProces
>>> sorTask.java:646)
>>> at
>>>
>>> com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorT
>>> ask.java:568)
>>> at
>>>
>>> com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTas
>>> k.java:821)
>>> at
>>>
>>> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFil
>>> ter.java:153)
>>> at
>>>
>>> com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultPro
>>> tocolChain.java:136)
>>> at
>>>
>>> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.jav
>>> a:103)
>>> at
>>>
>>> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.jav
>>> a:89)
>>> at
>>>
>>> com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java
>>> :76)
>>> at
>>>
>>> com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextT
>>> ask.java:67)
>>> at
>>>
>>> com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.
>>> java:56)
>>> at java.util.concurrent.FutureTask$Sync.innerRun(Unknown
>>> Source)
>>> at java.util.concurrent.FutureTask.run(Unknown Source)
>>> at
>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
>>> Source
>>> )
>>> at
>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>>> at java.lang.Thread.run(Unknown Source)
>>> 2008-12-18 11:00:54 com.sun.grizzly.http.servlet.ServletAdapter
>>> service
>>> GRAVE: service exception:
>>> java.lang.RuntimeException: Invalid Servlet defined
>>> at
>>>
>>> com.sun.grizzly.http.servlet.ServletAdapter.service(ServletAdapter.ja
>>> va:217)
>>> at
>>>
>>> com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java
>>> :147)
>>> at
>>>
>>> com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProces
>>> sorTask.java:646)
>>> at
>>>
>>> com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorT
>>> ask.java:568)
>>> at
>>>
>>> com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTas
>>> k.java:821)
>>> at
>>>
>>> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFil
>>> ter.java:153)
>>> at
>>>
>>> com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultPro
>>> tocolChain.java:136)
>>> at
>>>
>>> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.jav
>>> a:103)
>>> at
>>>
>>> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.jav
>>> a:89)
>>> at
>>>
>>> com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java
>>> :76)
>>> at
>>>
>>> com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextT
>>> ask.java:67)
>>> at
>>>
>>> com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.
>>> java:56)
>>> at java.util.concurrent.FutureTask$Sync.innerRun(Unknown
>>> Source)
>>> at java.util.concurrent.FutureTask.run(Unknown Source)
>>> at
>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
>>> Source
>>> )
>>> at
>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>>> at java.lang.Thread.run(Unknown Source)
>>>
>>> here the files in the folder
>>>
>>> C:\Source\grizzly\extras\hudson-on-grizzly\target>dir
>>> Le volume dans le lecteur C n'a pas de nom.
>>> Le numéro de série du volume est 902C-6663
>>>
>>> Répertoire de C:\Source\grizzly\extras\hudson-on-grizzly\target
>>>
>>> 2008/12/18 10:56 <REP> .
>>> 2008/12/18 10:56 <REP> ..
>>> 2008/12/18 10:30 <REP> apidocs
>>> 2008/12/18 10:30 <REP> classes
>>> 2008/12/18 10:30 23 955
>>> grizzly-hudson-1.9.2-SNAPSHOT-javadoc.jar
>>> 2008/12/18 10:30 2 681
>>> grizzly-hudson-1.9.2-SNAPSHOT-sources.jar
>>> 2008/12/18 10:30 881 567
>>> grizzly-hudson-1.9.2-SNAPSHOT.jar
>>> 2008/12/18 10:54 21 034 907 hudson.war
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
>>> <mailto:users-unsubscribe_at_grizzly.dev.java.net>
>>> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>>> <mailto:users-help_at_grizzly.dev.java.net>
>>>
>>>
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
>> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>>
>>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>
>