[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[jetty-users] java.lang.IllegalStateException: No object for id=Contexts
|
Hello,
It seems that jetty does not find any contexts to add. But the pathes are correct. Can you tell me what i'm doing wrong? I use jetty version jetty-7.1.6.v20100715.
Establishing start.log on Thu Sep 30 13:00:34 UTC 2010
2010-09-30 13:00:35.599:WARN::Config error at <Set name="contexts"><Ref id="Contexts"/></Set> java.lang.IllegalStateException: No object for id=Contexts
2010-09-30 13:00:35.599:WARN::Config error at <Call name="addLifeCycle">| <Arg>| <New class="org.eclipse.jetty.deploy.ContextDeployer">| <Set name="contexts"><Ref id="Contexts"/></Set>| <Set name="configurationDir"><SystemProperty name="jetty.home" default="."/>/contexts2/jetty8090</Set>| <Set name="scanInterval">5</Set>| </New>| </Arg>| </Call> java.lang.IllegalStateException: No object for id=Contexts
2010-09-30 13:00:35.599:WARN::EXCEPTION
java.lang.IllegalStateException: No object for id=Contexts
at org.eclipse.jetty.xml.XmlConfiguration.refObj(XmlConfiguration.java:676)
at org.eclipse.jetty.xml.XmlConfiguration.itemValue(XmlConfiguration.java:941)
at org.eclipse.jetty.xml.XmlConfiguration.value(XmlConfiguration.java:865)
at org.eclipse.jetty.xml.XmlConfiguration.set(XmlConfiguration.java:292)
at org.eclipse.jetty.xml.XmlConfiguration.configure(XmlConfiguration.java:254)
at org.eclipse.jetty.xml.XmlConfiguration.newObj(XmlConfiguration.java:657)
at org.eclipse.jetty.xml.XmlConfiguration.itemValue(XmlConfiguration.java:940)
at org.eclipse.jetty.xml.XmlConfiguration.value(XmlConfiguration.java:865)
at org.eclipse.jetty.xml.XmlConfiguration.call(XmlConfiguration.java:554)
at org.eclipse.jetty.xml.XmlConfiguration.configure(XmlConfiguration.java:258)
at org.eclipse.jetty.xml.XmlConfiguration.configure(XmlConfiguration.java:220)
at org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:1007)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:983)
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 org.eclipse.jetty.start.Main.invokeMain(Main.java:490)
at org.eclipse.jetty.start.Main.start(Main.java:631)
at org.eclipse.jetty.start.Main.parseCommandLine(Main.java:280)
at org.eclipse.jetty.start.Main.main(Main.java:82)
Can somebody tell me what I forgotten to configure?
Here how my configuration looks:
etc2/jetty8090.xml:
<Configure id="jetty8090" class="org.eclipse.jetty.server.Server">
<!-- set up the port for ServerA -->
<Set name="connectors">
<Array type="org.eclipse.jetty.server.Connector">
<Item>
<New class="org.eclipse.jetty.server.nio.SelectChannelConnector">
<Set name="port">8090</Set>
<Set name="maxIdleTime">30000</Set>
<Set name="Acceptors">10</Set>
</New>
</Item>
</Array>
</Set>
<!-- set up a context deployer for Server A -->
<Call name="addLifeCycle">
<Arg>
<New class="org.eclipse.jetty.deploy.ContextDeployer">
<Set name="contexts"><Ref id="Contexts"/></Set>
<Set name="configurationDir"><SystemProperty name="jetty.home" default="."/>/contexts2/jetty8090</Set>
<Set name="scanInterval">5</Set>
</New>
</Arg>
</Call>
</Configure>
/contexts2/jetty8090/www.acolsolutions.com.xml:
<Configure class="org.eclipse.jetty.webapp.WebAppContext">
<Set name="contextPath">/contexts2/jetty8090</Set>
<Set name="war"><SystemProperty name="jetty.home"/>/webapps2/acol.war</Set>
<Set name="virtualHosts">
<Array type="java.lang.String">
<Item>www.acolsolutions.com</Item>
</Array>
</Set>
</Configure>
webapps2/acol.war
exists
etc/jetty.conf:
--pre=etc2/jetty8090.xml
--pre=etc/jetty-logging.xml