Wednesday, 15 August 2012

jetty 9 and intellij won't start -



jetty 9 and intellij won't start -

i'm playing around intellij new project , having bit of problem. when seek run jetty 9 intellij 12, error

"c:\program files\java\jdk1.7.0_13\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=c:\program files (x86)\jetbrains\intellij thought 12.0.4\bin" -dfile.encoding=windows-1252 -classpath "start.jar;c:\program files (x86)\jetbrains\intellij thought 12.0.4\lib\idea_rt.jar" com.intellij.rt.execution.application.appmain org.eclipse.jetty.start.main etc/jetty-jmx.xml c:\users\willie\appdata\local\temp\context9038140457899104277config\jetty-contexts.xml [2013-02-17 01:49:18,784] artifact armor:war exploded: server not connected. press 'deploy' start deployment. 2013-02-17 01:49:20.055:warn:oejx.xmlparser:main: fatal@file:/c:/code/jetty-9.0.0.rc0/start.d/ line:1 col:1 : org.xml.sax.saxparseexception; systemid: file:/c:/code/jetty-9.0.0.rc0/start.d/; linenumber: 1; columnnumber: 1; content not allowed in prolog. java.lang.reflect.invocationtargetexception @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:57) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) @ java.lang.reflect.method.invoke(method.java:601) @ org.eclipse.jetty.start.main.invokemain(main.java:453) @ org.eclipse.jetty.start.main.start(main.java:595) @ org.eclipse.jetty.start.main.main(main.java:96) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:57) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) @ java.lang.reflect.method.invoke(method.java:601) @ com.intellij.rt.execution.application.appmain.main(appmain.java:120) caused by: org.xml.sax.saxparseexception; systemid: file:/c:/code/jetty-9.0.0.rc0/start.d/; linenumber: 1; columnnumber: 1; content not allowed in prolog. @ com.sun.org.apache.xerces.internal.util.errorhandlerwrapper.createsaxparseexception(errorhandlerwrapper.java:198) @ com.sun.org.apache.xerces.internal.util.errorhandlerwrapper.fatalerror(errorhandlerwrapper.java:177) @ com.sun.org.apache.xerces.internal.impl.xmlerrorreporter.reporterror(xmlerrorreporter.java:441) @ com.sun.org.apache.xerces.internal.impl.xmlerrorreporter.reporterror(xmlerrorreporter.java:368) @ com.sun.org.apache.xerces.internal.impl.xmlscanner.reportfatalerror(xmlscanner.java:1388) @ com.sun.org.apache.xerces.internal.impl.xmldocumentscannerimpl$prologdriver.next(xmldocumentscannerimpl.java:998) @ com.sun.org.apache.xerces.internal.impl.xmldocumentscannerimpl.next(xmldocumentscannerimpl.java:607) @ com.sun.org.apache.xerces.internal.impl.xmlnsdocumentscannerimpl.next(xmlnsdocumentscannerimpl.java:116) @ com.sun.org.apache.xerces.internal.impl.xmldocumentfragmentscannerimpl.scandocument(xmldocumentfragmentscannerimpl.java:489) @ com.sun.org.apache.xerces.internal.parsers.xml11configuration.parse(xml11configuration.java:835) @ com.sun.org.apache.xerces.internal.parsers.xml11configuration.parse(xml11configuration.java:764) @ com.sun.org.apache.xerces.internal.parsers.xmlparser.parse(xmlparser.java:123) @ com.sun.org.apache.xerces.internal.parsers.abstractsaxparser.parse(abstractsaxparser.java:1210) @ com.sun.org.apache.xerces.internal.jaxp.saxparserimpl$jaxpsaxparser.parse(saxparserimpl.java:568) @ com.sun.org.apache.xerces.internal.jaxp.saxparserimpl.parse(saxparserimpl.java:302) @ org.eclipse.jetty.xml.xmlparser.parse(xmlparser.java:204) @ org.eclipse.jetty.xml.xmlparser.parse(xmlparser.java:220) @ org.eclipse.jetty.xml.xmlconfiguration.<init>(xmlconfiguration.java:138) @ org.eclipse.jetty.xml.xmlconfiguration$1.run(xmlconfiguration.java:1209) @ java.security.accesscontroller.doprivileged(native method) @ org.eclipse.jetty.xml.xmlconfiguration.main(xmlconfiguration.java:1160) ... 12 more usage: java -jar start.jar [options] [properties] [configs] java -jar start.jar --help # more info process finished exit code -2 disconnected server

this base of operations system. have deleted profile, recreated it, i've downloaded re-create of jetty, i've done can think of. curious thing thing in start.d folder default test ini file came distribution. opened xml file ini file references , there nil wrong it. i'm stumped. know going on here?

update, jetty runs fine command line, not intellij

update 2, seems way intellij deployments thru plugin, creates new jetty-contexts.xml file. file seems not liked jetty. here file

<?xml version="1.0" encoding="utf-8"?> <!doctype configure public "-//jetty//configure//en" "http://www.eclipse.org/jetty/configure.dtd"> <configure class="org.eclipse.jetty.server.server" id="server"> <ref id="deploymentmanager"> <call name="addappprovider"> <arg> <new class="org.eclipse.jetty.deploy.providers.contextprovider"> <set name="monitoreddir">c:\users\willie\appdata\local\temp\context7950837742823871110deploy</set> <set name="scaninterval">1</set> </new> </arg> </call> </ref> </configure>

and new dump, i've deleted test wars , removed start.d config.

"c:\program files\java\jdk1.7.0_13\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=7538 "-didea.launcher.bin.path=c:\program files (x86)\jetbrains\intellij thought 12.0.4\bin" -dfile.encoding=windows-1252 -classpath "start.jar;c:\program files (x86)\jetbrains\intellij thought 12.0.4\lib\idea_rt.jar" com.intellij.rt.execution.application.appmain org.eclipse.jetty.start.main etc/jetty-jmx.xml c:\users\willie\appdata\local\temp\context826007528789372946config\jetty-contexts.xml [2013-02-17 05:38:31,987] artifact armor:war exploded: server not connected. press 'deploy' start deployment. 2013-02-17 05:38:33.509:warn:oejx.xmlconfiguration:main: config error @ <call name="addappprovider"><arg>|????<new class="org.eclipse.jetty.deploy.providers.contextprovider"><set name="monitoreddir">c:\users\willie\appdata\local\temp\context7950837742823871110deploy</set><set name="scaninterval">1</set></new>|???</arg></call> java.lang.classnotfoundexception: org.eclipse.jetty.deploy.providers.contextprovider in file:/c:/users/willie/appdata/local/temp/context826007528789372946config/jetty-contexts.xml 2013-02-17 05:38:33.510:warn:oejx.xmlconfiguration:main: config error @ <ref id="deploymentmanager"><call name="addappprovider"><arg>|????<new class="org.eclipse.jetty.deploy.providers.contextprovider"><set name="monitoreddir">c:\users\willie\appdata\local\temp\context7950837742823871110deploy</set><set name="scaninterval">1</set></new>|???</arg></call></ref> java.lang.classnotfoundexception: org.eclipse.jetty.deploy.providers.contextprovider in file:/c:/users/willie/appdata/local/temp/context826007528789372946config/jetty-contexts.xml java.lang.reflect.invocationtargetexception @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:57) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) @ java.lang.reflect.method.invoke(method.java:601) @ org.eclipse.jetty.start.main.invokemain(main.java:453) @ org.eclipse.jetty.start.main.start(main.java:595) @ org.eclipse.jetty.start.main.main(main.java:96) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:57) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) @ java.lang.reflect.method.invoke(method.java:601) @ com.intellij.rt.execution.application.appmain.main(appmain.java:120) caused by: java.lang.classnotfoundexception: org.eclipse.jetty.deploy.providers.contextprovider @ java.net.urlclassloader$1.run(urlclassloader.java:366) @ java.net.urlclassloader$1.run(urlclassloader.java:355) @ java.security.accesscontroller.doprivileged(native method) @ java.net.urlclassloader.findclass(urlclassloader.java:354) @ java.lang.classloader.loadclass(classloader.java:423) @ java.lang.classloader.loadclass(classloader.java:356) @ org.eclipse.jetty.util.loader.loadclass(loader.java:100) @ org.eclipse.jetty.xml.xmlconfiguration$jettyxmlconfiguration.nodeclass(xmlconfiguration.java:354) @ org.eclipse.jetty.xml.xmlconfiguration$jettyxmlconfiguration.newobj(xmlconfiguration.java:743) @ org.eclipse.jetty.xml.xmlconfiguration$jettyxmlconfiguration.itemvalue(xmlconfiguration.java:1111) @ org.eclipse.jetty.xml.xmlconfiguration$jettyxmlconfiguration.value(xmlconfiguration.java:1016) @ org.eclipse.jetty.xml.xmlconfiguration$jettyxmlconfiguration.call(xmlconfiguration.java:710) @ org.eclipse.jetty.xml.xmlconfiguration$jettyxmlconfiguration.configure(xmlconfiguration.java:407) @ org.eclipse.jetty.xml.xmlconfiguration$jettyxmlconfiguration.refobj(xmlconfiguration.java:819) @ org.eclipse.jetty.xml.xmlconfiguration$jettyxmlconfiguration.configure(xmlconfiguration.java:419) @ org.eclipse.jetty.xml.xmlconfiguration$jettyxmlconfiguration.configure(xmlconfiguration.java:344) @ org.eclipse.jetty.xml.xmlconfiguration.configure(xmlconfiguration.java:262) @ org.eclipse.jetty.xml.xmlconfiguration$1.run(xmlconfiguration.java:1221) @ java.security.accesscontroller.doprivileged(native method) @ org.eclipse.jetty.xml.xmlconfiguration.main(xmlconfiguration.java:1160) ... 12 more usage: java -jar start.jar [options] [properties] [configs] java -jar start.jar --help # more info

the utilize of org.eclipse.jetty.start.main meant utilize total , finish jetty distribution.

it bootstrap found right classpath , configuration xmls start jetty.

your command line (i have not tested this) instead ...

"c:\program files\java\jdk1.7.0_13\bin\java" -djetty.home=c:\path\to\jetty\distribution -dstop.port=0 -didea.launcher.port=7553 "-didea.launcher.bin.path=c:\program files (x86)\jetbrains\intellij thought 12.0.4\bin" -dfile.encoding=windows-1252 -jar start.jar "-dpath=c:\program files (x86)\jetbrains\intellij thought 12.0.4\lib\idea_rt.jar" org.eclipse.jetty.start.main

note need next ...

to define jetty.home property jetty knows files to have intellij jars defined via -dpath=${classpath} configurable jetty pass through running server to have intellij properties defined in ${jetty.home}/start.ini to have options command line defined in ${jetty.home/start.ini to have various jmx properties defined in ${jetty.home}/start.ini put custom jetty-context.xml ${jetty.home}/webapps/ directory, or alter deployment directory (in etc/jetty-deploy.xml) jetty-context.xml file located. sure reference war file create sense.

finally, know can inquire jetty server classpath plenty command line alternative --version list classpath server utilize (in order server utilize it) based on have configured start bootstrap process.

intellij-idea jetty

No comments:

Post a Comment