Hot deployment configuration with jetty??

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Hot deployment configuration with jetty??

copernic Jeremy
Hi there!

I am using Jetty 6.1.3 and I can't figure out how to specify a hot deployment repertory within Jetty. When I
 add the following configuration lines as suggested on the jetty website, I get the following errors when I try launching the server :

The added lines to my /etc/jetty.xml:

  <Call name="addLifeCycle">
      <Arg>
        <New id="hotdeployer" class="org.mortbay.jetty.deployer.HotDeployer">
          <Set name="server"><Ref id="Server"/></Set>
          <Set name="scanInterval">10</Set>
          <Set name="hotDeployDir"><SystemProperty name="jetty.home" default="."/>/hotdep</Set>
          <Set name="configurationManager">
            <New class="org.mortbay.jetty.deployer.FileConfigurationManager">
              <Set name="file"><SystemProperty name=" jetty.home" default="."/>/etc/deployment.properties</Set>
            </New>
          </Set>
        </New>
      </Arg>
    </Call>

And when I try launching the server I have the following errors message:


C:\jetty-6.1.3>java -jar start.jar
2007-05-15 10:58:27.310::INFO:  Logging to STDERR via org.mortbay.log.StdErrLog
2007-05-15 10:58:27.498::INFO:  Statistics on = false for SelectChannelConnector
 @ 0.0.0.0:8080
2007-05-15 10:58:27.545::WARN:  Config error at <Call name="addLifeCycle"><Arg>
        <New id="hotdeployer" class="org.mortbay.jetty.deployer.HotDeployer"><Se
t name="server"><Ref id="Server"/></Set><Set name="scanInterval">10</Set><Set na
me="hotDeployDir"><SystemProperty name="jetty.home" default="."/>/hotdep</Set><S
et name="configurationManager">
            <New class="org.mortbay.jetty.deployer.FileConfigurationManager"><Se
t name="file"><SystemProperty name="jetty.home" default="."/>/etc/deployment.pro
perties</Set></New>
          </Set></New>
      </Arg></Call>
2007-05-15 10:58:27.560::WARN:  EXCEPTION
java.lang.ClassNotFoundException: org.mortbay.jetty.deployer.HotDeployer
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at org.mortbay.util.Loader.loadClass(Loader.java:91)
        at org.mortbay.xml.XmlConfiguration.nodeClass(XmlConfiguration.java:213)

        at org.mortbay.xml.XmlConfiguration.newObj(XmlConfiguration.java:559)
        at org.mortbay.xml.XmlConfiguration.itemValue(XmlConfiguration.java:876)

        at org.mortbay.xml.XmlConfiguration.value(XmlConfiguration.java:798)
        at org.mortbay.xml.XmlConfiguration.call(XmlConfiguration.java :510)
        at org.mortbay.xml.XmlConfiguration.configure(XmlConfiguration.java:241)

        at org.mortbay.xml.XmlConfiguration.configure(XmlConfiguration.java:203)

        at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:919)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.mortbay.start.Main.invokeMain(Main.java:183)
        at org.mortbay.start.Main.start(Main.java:497)
        at org.mortbay.start.Main.main(Main.java:115)

The problem may be the fact that the class org.mortbay.jetty.deployer.HotDeployer is missing in the jetty 6.1.3 jar  but I can't find it anywhere else...
Any ideas or suggestions ?

Best regards,

Jeremy

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
jetty-discuss mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jetty-discuss
Reply | Threaded
Open this post in threaded view
|

Re: Hot deployment configuration with jetty??

jan_bartel
Hi Jeremy,

Oops, documentation must be out of date. You actually need the
ContextDeployer. You should already find it in your etc/jetty.xml
file, and some examples in $JETTY-HOME/contexts.

regards
Jan

copernic Jeremy wrote:

> Hi there!
>
> I am using Jetty 6.1.3 and I can't figure out how to specify a hot
> deployment repertory within Jetty. When I
>  add the following configuration lines as suggested on the jetty
> website, I get the following errors when I try launching the server :
>
> The added lines to my /etc/jetty.xml:
>
>   <Call name="addLifeCycle">
>       <Arg>
>         <New id="hotdeployer"
> class="org.mortbay.jetty.deployer.HotDeployer">
>           <Set name="server"><Ref id="Server"/></Set>
>           <Set name="scanInterval">10</Set>
>           <Set name="hotDeployDir"><SystemProperty name="jetty.home"
> default="."/>/hotdep</Set>
>           <Set name="configurationManager">
>             <New
> class="org.mortbay.jetty.deployer.FileConfigurationManager">
>               <Set name="file"><SystemProperty name=" jetty.home"
> default="."/>/etc/deployment.properties</Set>
>             </New>
>           </Set>
>         </New>
>       </Arg>
>     </Call>
>
> And when I try launching the server I have the following errors message:
>
>
> C:\jetty-6.1.3>java -jar start.jar
> 2007-05-15 10:58:27.310::INFO:  Logging to STDERR via
> org.mortbay.log.StdErrLog
> 2007-05-15 10:58:27.498::INFO:  Statistics on = false for
> SelectChannelConnector
>  @ 0.0.0.0:8080 <http://0.0.0.0:8080>
> 2007-05-15 10:58:27.545::WARN:  Config error at <Call
> name="addLifeCycle"><Arg>
>         <New id="hotdeployer"
> class="org.mortbay.jetty.deployer.HotDeployer"><Se
> t name="server"><Ref id="Server"/></Set><Set
> name="scanInterval">10</Set><Set na
> me="hotDeployDir"><SystemProperty name="jetty.home"
> default="."/>/hotdep</Set><S
> et name="configurationManager">
>             <New
> class="org.mortbay.jetty.deployer.FileConfigurationManager"><Se
> t name="file"><SystemProperty name="jetty.home"
> default="."/>/etc/deployment.pro
> perties</Set></New>
>           </Set></New>
>       </Arg></Call>
> 2007-05-15 10:58:27.560::WARN:  EXCEPTION
> java.lang.ClassNotFoundException: org.mortbay.jetty.deployer.HotDeployer
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>         at org.mortbay.util.Loader.loadClass(Loader.java:91)
>         at
> org.mortbay.xml.XmlConfiguration.nodeClass(XmlConfiguration.java:213)
>
>         at
> org.mortbay.xml.XmlConfiguration.newObj(XmlConfiguration.java:559)
>         at
> org.mortbay.xml.XmlConfiguration.itemValue(XmlConfiguration.java:876)
>
>         at org.mortbay.xml.XmlConfiguration.value(XmlConfiguration.java:798)
>         at org.mortbay.xml.XmlConfiguration.call(XmlConfiguration.java :510)
>         at
> org.mortbay.xml.XmlConfiguration.configure(XmlConfiguration.java:241)
>
>         at
> org.mortbay.xml.XmlConfiguration.configure(XmlConfiguration.java:203)
>
>         at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:919)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.mortbay.start.Main.invokeMain(Main.java:183)
>         at org.mortbay.start.Main.start(Main.java:497)
>         at org.mortbay.start.Main.main(Main.java:115)
>
> The problem may be the fact that the class
> org.mortbay.jetty.deployer.HotDeployer is missing in the jetty 6.1.3
> jar  but I can't find it anywhere else...
> Any ideas or suggestions ?
>
> Best regards,
>
> Jeremy
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> jetty-discuss mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/jetty-discuss


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
jetty-discuss mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jetty-discuss