10.5.1 - can't configure jetty to run generated war file
I'm trying to run a project that produces a war file with jetty 7.0.1
I've set up the config to this:
And when I run the project I get:
/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home/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=7532 -Didea.launcher.bin.path=/Applications/IntelliJ IDEA 10.app/bin -Dfile.encoding=MacRoman -classpath start.jar:/Applications/IntelliJ IDEA 10.app/lib/idea_rt.jar com.intellij.rt.execution.application.AppMain org.eclipse.jetty.start.Main etc/jetty-jmx.xml etc/jetty.xml /private/var/folders/jg/jggRKgJXHoSIsZMlp8aP7k+++TM/-Tmp-/context3238148195785576376config/contexts-config.xml
[2011-07-28 10:57:52,196] Artifact h_cxf_rs:war: Server is not connected. Press 'Deploy' to start deployment.
55788
STOP.KEY=jol2axzedrsw
2011-07-28 10:57:53.270:INFO::Logging to StdErrLog::DEBUG=false via org.eclipse.jetty.util.log.StdErrLog
2011-07-28 10:57:53.307:WARN::Config error at <Set name="handler"><Ref id="oldhandler"/></Set> java.lang.IllegalStateException: No object for id=oldhandler
2011-07-28 10:57:53.307:WARN::Config error at <Set name="handler">| <New id="StatsHandler" ><Set name="handler"><Ref id="oldhandler"/></Set></New>| </Set> java.lang.IllegalStateException: No object for id=oldhandler
2011-07-28 10:57:53.308:WARN::EXCEPTION
java.lang.IllegalStateException: No object for id=oldhandler
at org.eclipse.jetty.xml.XmlConfiguration.refObj(XmlConfiguration.java:645)
...
at org.eclipse.jetty.start.Main.main(Main.java:75)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
Process finished with exit code 0
Disconnected from server
In the console.
When I use the command 'mvn jetty:run' my project works fine.
Thanks
Please sign in to leave a comment.