org.mortbay.jetty.deployer.WebAppDeployer is for Jetty 6.x You are using jetty-distribution-8.1.8.v20121106 The Jetty project moved to Eclipse.org after Jetty 6.x and had to take on a new namespace.
http://download.eclipse.org/jetty/stable-8/apidocs/index.html Use classname org.eclipse.jetty.deploy.WebAppDeployer http://download.eclipse.org/jetty/stable-8/apidocs/org/eclipse/jetty/deploy/WebAppDeployer.html -- Joakim Erdfelt <[email protected]> webtide.com <http://www.webtide.com/> Developer advice, services and support from the Jetty & CometD experts eclipse.org/jetty - cometd.org On Mon, Jan 7, 2013 at 1:14 PM, kamiseq <[email protected]> wrote: > well it simply doesnt work for me > > to jetty.xml I added > > <Call name="addLifeCycle"> > <Arg> > <New class="org.mortbay.jetty.deployer.WebAppDeployer"> > <Set name="contexts"><Ref id="Contexts"/></Set> > <Set name="webAppDir"><SystemProperty name="jetty.home" > default="."/>/webapps</Set> > <Set name="parentLoaderPriority">false</Set> > <Set name="extract">true</Set> > <Set name="allowDuplicates">false</Set> > <Set > name="defaultsDescriptor">d:\serwer\jetty-distribution-8.1.8.v20121106\etc\webdefault.xml</Set> > </New> > </Arg> > </Call> > > as documentation you provided suggests but intellij prints (at the end of > the first line intellij logs what is the jetty configuration) > > D:\java\jdk1.7.0_03\bin\java -DSTOP.PORT=0 -Dcom.sun.management.jmxremote= > -Dcom.sun.management.jmxremote.port=1099 > -Dcom.sun.management.jmxremote.authenticate=false > -Dcom.sun.management.jmxremote.ssl=false -DOPTIONS=jmx > -Didea.launcher.port=7553 > -Didea.launcher.bin.path=D:\editors\IntelliJ12.0.1\bin > -Dfile.encoding=windows-1250 -classpath > start.jar;D:\editors\IntelliJ12.0.1\lib\idea_rt.jar > com.intellij.rt.execution.application.AppMain org.eclipse.jetty.start.Main > etc/jetty-jmx.xml etc/jetty.xml contexts-config.xml > [2013-01-07 09:02:22,224] Artifact search:war exploded: Server is not > connected. Press 'Deploy' to start deployment. > [2013-01-07 09:02:22,225] Artifact web:war exploded: Server is not > connected. Press 'Deploy' to start deployment. > 51931 > STOP.KEY=m9exjuy1c000 > 2013-01-07 21:02:23.004:WARN:oejx.XmlConfiguration:Config error at <Call > name="addLifeCycle"><Arg>| <New > class="org.mortbay.jetty.deployer.WebAppDeployer"><Set name="contexts"><Ref > id="Contexts"/></Set><Set name="webAppDir"><SystemProperty > name="jetty.home" default="."/>/webapps</Set><Set > name="parentLoaderPriority">false</Set><Set name="extract">true</Set><Set > name="allowDuplicates">false</Set><Set > name="defaultsDescriptor">d:\serwer\jetty-distribution-8.1.8.v20121106\etc\webdefault.xml</Set></New>| > </Arg></Call> java.lang.ClassNotFoundException: > org.mortbay.jetty.deployer.WebAppDeployer > java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:601) > at org.eclipse.jetty.start.Main.invokeMain(Main.java:472) > at org.eclipse.jetty.start.Main.start(Main.java:620) > at org.eclipse.jetty.start.Main.main(Main.java:95) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:601) > at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120) > Caused by: java.lang.ClassNotFoundException: > org.mortbay.jetty.deployer.WebAppDeployer .... > > then I search more about that and I have found > http://wiki.eclipse.org/Jetty/Feature/WebAppProvider could be the > solution but again intellij failed to start jetty > > D:\java\jdk1.7.0_03\bin\java -DSTOP.PORT=0 -Dcom.sun.management.jmxremote= > -Dcom.sun.management.jmxremote.port=1099 > -Dcom.sun.management.jmxremote.authenticate=false > -Dcom.sun.management.jmxremote.ssl=false -DOPTIONS=jmx > -Didea.launcher.port=7554 > -Didea.launcher.bin.path=D:\editors\IntelliJ12.0.1\bin > -Dfile.encoding=windows-1250 -classpath > start.jar;D:\editors\IntelliJ12.0.1\lib\idea_rt.jar > com.intellij.rt.execution.application.AppMain org.eclipse.jetty.start.Main > etc/jetty-jmx.xml etc/jetty-webapps.xml etc/jetty.xml contexts-config.xml > [2013-01-07 09:07:49,376] Artifact search:war exploded: Server is not > connected. Press 'Deploy' to start deployment. > [2013-01-07 09:07:49,376] Artifact web:war exploded: Server is not > connected. Press 'Deploy' to start deployment. > 51988 > STOP.KEY=ls2wegzso5xc > 2013-01-07 21:07:50.152:WARN:oejx.XmlConfiguration:Config error at <Ref > id="DeploymentManager"><Call id="webappprovider" > name="addAppProvider"><Arg>| <New > class="org.eclipse.jetty.deploy.providers.WebAppProvider"><Set > name="monitoredDirName"><Property name="jetty.home" > default="."/>/webapps</Set><Set name="defaultsDescriptor"><Property > name="jetty.home" default="."/>/etc/webdefault.xml</Set><Set > name="scanInterval">1</Set><Set name="contextXmlDir"><Property > name="jetty.home" default="."/>/contexts</Set><Set > name="extractWars">true</Set></New>| </Arg></Call></Ref> > java.lang.IllegalStateException: No object for id=DeploymentManager > java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:601) > at org.eclipse.jetty.start.Main.invokeMain(Main.java:472) > at org.eclipse.jetty.start.Main.start(Main.java:620) > at org.eclipse.jetty.start.Main.main(Main.java:95) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:601) > at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120) > Caused by: java.lang.IllegalStateException: No object for > id=DeploymentManager > at > org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.refObj(XmlConfiguration.java:839) > at > org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:403) > at > org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:350) > at > org.eclipse.jetty.xml.XmlConfiguration.configure(XmlConfiguration.java:303) > at > org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:1254) > at java.security.AccessController.doPrivileged(Native Method) > at > org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:1189) > ... 12 more > > Usage: java -jar start.jar [options] [properties] [configs] > java -jar start.jar --help # for more information > > Process finished with exit code -2 > Disconnected from server > > unfortunately I cannot control context.xml file as it is generated by > intellij > > > pozdrawiam > Paweł Kamiński > > [email protected] > [email protected] > ______________________ > > > On 6 January 2013 23:53, Jan Bartel <[email protected]> wrote: > >> Pawel, >> >> Changing the webdefaults.xml initparam for useFileMappedBuffer is the >> correct way to fix the issue on Windows platforms. Sounds like the >> webdefaults.xml is not being picked up. You need to apply that modified >> webdefaults.xml file to the context for your webapp. How you do that >> depends on how you are running jetty and deploying your webapp. If you're >> using the jetty maven plugin then set <webapp><defaultsDescriptor> to be >> the location of the modified webdefaults.xml file. If you have a context >> xml file that describes your webapp, then call <Set >> name="defaultsDescriptor"> to be the location of the modified >> webdefaults.xml file. If you deploy the context directly in your jetty xml >> file, then call <Set name="defaultsDescriptor"> on the section that >> represents the context. If you're using one of the Deployers to deploy your >> webapp, then there are instructions on >> http://wiki.eclipse.org/Jetty/Howto/Deal_with_Locked_Windows_Files how >> to set it. >> >> regards >> Jan >> >> >> On 3 January 2013 19:59, kamiseq <[email protected]> wrote: >> >>> hi, >>> I have problem when I redeploy war to local jetty in IDEA Intellij (when >>> I select 'update resources on frame deactivation' or I choose artifacts to >>> redeploy) editor throws >>> >>> Error copying 'myproj\src\main\webapp\less\defaults.less' to >>> 'myproj\target\myproj.war >>> \less\defaults.less'.: myproj\target\myproj.war\less\defaults.less >>> (The requested operation cannot be performed on a file with a >>> user-mapped section open) >>> >>> from this post >>> http://stackoverflow.com/questions/4988019/jetty-maven-plugin-is-ignoring-custom-webdefault-xmlI >>> ve found out that I should configure jetty to stop lock resources but I >>> cannot force jetty to do so. >>> >>> I tried to override configuration in web.xml or in webdefault.xml >>> >>> <init-param> >>> <param-name>useFileMappedBuffer</param-name> >>> <param-value>false</param-value> >>> </init-param> >>> >>> but it has no effect. my jetty server is configured using jetty-jmx.xml >>> file inside intellij and it throws error when I try to to change it to >>> something different. I tried to set useFileMappedBuffer propoerty somwhere >>> in jetty-jmx.xml but I cant find the proper place. >>> >>> I had same exception using intellij 11 and most recent 12 so I guess it >>> has more to do with jetty configuration rather then editor itself. >>> anyway I ve already asked similar question on IDEA forum but I have no >>> response since then. >>> >>> I would appreciate any feedback on this, >>> >>> thanks >>> >>> pozdrawiam >>> Paweł Kamiński >>> >>> [email protected] >>> [email protected] >>> ______________________ >>> >>> _______________________________________________ >>> jetty-users mailing list >>> [email protected] >>> https://dev.eclipse.org/mailman/listinfo/jetty-users >>> >>> >> >> >> -- >> Jan Bartel <[email protected]> >> www.webtide.com – Developer advice, services and support >> from the Jetty & CometD experts. >> >> _______________________________________________ >> jetty-users mailing list >> [email protected] >> https://dev.eclipse.org/mailman/listinfo/jetty-users >> >> > > _______________________________________________ > jetty-users mailing list > [email protected] > https://dev.eclipse.org/mailman/listinfo/jetty-users > >
_______________________________________________ jetty-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/jetty-users
