David, You need to execute "java -jar start.jar --list-modes" from inside a standard distribution of jetty.
Eg output is: There are 32 OPTIONs available to use. Each option is listed along with associated available classpath entries, in the order that they would appear from that mode. Note: If using multiple options (eg: 'Server,servlet,webapp,jms,jmx') then overlapping entries will not be repeated in the eventual classpath. ${jetty.home} = /home/janb/src/jetty-codehaus/jetty-7/jetty-hightide/target/hightide GLOBAL option (Prepended Entries) ------------------------------------------------------------- Empty option, no classpath entries active. GLOBAL option (Appended Entries) (*) ------------------------------------------------------------- 0: 7.5.2-SNAPSHOT | ${jetty.home}/lib/jetty-util-7.5.2-SNAPSHOT.jar 1: 7.5.2-SNAPSHOT | ${jetty.home}/lib/jetty-io-7.5.2-SNAPSHOT.jar Option [ajp] ------------------------------------------------------------- 0: 7.5.2-SNAPSHOT | ${jetty.home}/lib/jetty-ajp-7.5.2-SNAPSHOT.jar Option [All] (Aggregate) ------------------------------------------------------------- 0: (dir) | ${jetty.home}/resources 1: 7.5.2-SNAPSHOT | ${jetty.home}/lib/jetty-xml-7.5.2-SNAPSHOT.jar 2: 2.5.0.v200910301333 | ${jetty.home}/lib/servlet-api-2.5.jar 3: 7.5.2-SNAPSHOT | ${jetty.home}/lib/jetty-http-7.5.2-SNAPSHOT.jar 4: 7.5.2-SNAPSHOT | ${jetty.home}/lib/jetty-continuation-7.5.2-SNAPSHOT.jar 5: 7.5.2-SNAPSHOT | ${jetty.home}/lib/jetty-server-7.5.2-SNAPSHOT.jar 6: 7.5.2-SNAPSHOT | ${jetty.home}/lib/jetty-security-7.5.2-SNAPSHOT.jar 7: 7.5.2-SNAPSHOT | ${jetty.home}/lib/jetty-servlet-7.5.2-SNAPSHOT.jar 8: 7.5.2-SNAPSHOT | ${jetty.home}/lib/jetty-webapp-7.5.2-SNAPSHOT.jar 9: 7.5.2-SNAPSHOT | ${jetty.home}/lib/jetty-deploy-7.5.2-SNAPSHOT.jar 10: 7.5.2-SNAPSHOT | ${jetty.home}/lib/jetty-servlets-7.5.2-SNAPSHOT.jar 11: 7.5.2-SNAPSHOT | ${jetty.home}/lib/jetty-rewrite-7.5.2-SNAPSHOT.jar 12: 7.5.2-SNAPSHOT | ${jetty.home}/lib/jetty-jmx-7.5.2-SNAPSHOT.jar 13: 7.5.2-SNAPSHOT | ${jetty.home}/lib/jetty-ajp-7.5.2-SNAPSHOT.jar 14: 7.5.2-SNAPSHOT | ${jetty.home}/lib/jetty-jndi-7.5.2-SNAPSHOT.jar 15: 7.5.2-SNAPSHOT | ${jetty.home}/lib/jetty-plus-7.5.2-SNAPSHOT.jar 16: 1.1.0.v201005080500 | ${jetty.home}/lib/jndi/javax.activation_1.1.0.v201005080500.jar 17: 1.4.1.v201005082020 | ${jetty.home}/lib/jndi/javax.mail.glassfish_1.4.1.v201005082020.jar 18: 7.5.2-SNAPSHOT | ${jetty.home}/lib/jetty-annotations-7.5.2-SNAPSHOT.jar 19: 3.1 | ${jetty.home}/lib/annotations/asm-3.1.jar 20: 3.1 | ${jetty.home}/lib/annotations/asm-commons-3.1.jar 21: 3.1 | ${jetty.home}/lib/annotations/asm-tree-3.1.jar 22: 1.1.1 | ${jetty.home}/lib/annotations/geronimo-annotation_1.0_spec-1.1.1.jar 23: 1.0.0.v20100513-0750 | ${jetty.home}/lib/annotations/javax.annotation_1.0.0.v20100513-0750.jar 24: 3.1.0.v200803061910 | ${jetty.home}/lib/annotations/org.objectweb.asm_3.1.0.v200803061910.jar 25: 7.5.2-SNAPSHOT | ${jetty.home}/lib/setuid/jetty-setuid-java-7.5.2-SNAPSHOT.jar 26: 3.2.2 b0 | ${jetty.home}/lib/setuid/jna-3.2.2.jar 27: 7.5.2-SNAPSHOT | ${jetty.home}/lib/jetty-policy-7.5.2-SNAPSHOT.jar 28: 7.5.2-SNAPSHOT | ${jetty.home}/lib/jetty-client-7.5.2-SNAPSHOT.jar 29: 7.5.2-SNAPSHOT | ${jetty.home}/lib/jetty-websocket-7.5.2-SNAPSHOT.jar 30: 7.5.2-SNAPSHOT | ${jetty.home}/lib/jetty-overlay-deployer-7.5.2-SNAPSHOT.jar 31: 1.0.0.v201004190952 | ${jetty.home}/lib/jsp/com.sun.el_1.0.0.v201004190952.jar 32: 3.6.0.I20100608-0911 | ${jetty.home}/lib/jsp/ecj-3.6.jar 33: 2.1.0.v201004190952 | ${jetty.home}/lib/jsp/javax.el_2.1.0.v201004190952.jar 34: 2.1.0.v201004190952 | ${jetty.home}/lib/jsp/javax.servlet.jsp_2.1.0.v201004190952.jar 35: 1.2.0.v201004190952 | ${jetty.home}/lib/jsp/javax.servlet.jsp.jstl_1.2.0.v201004190952.jar 36: 7.5.2-SNAPSHOT | ${jetty.home}/lib/jsp/jetty-jsp-2.1-7.5.2-SNAPSHOT.jar 37: 2.1.3.b10 | ${jetty.home}/lib/jsp/jsp-impl-2.1.3-b10.jar 38: 1.2.0.v201004190952 | ${jetty.home}/lib/jsp/org.apache.taglibs.standard.glassfish_1.2.0.v201004190952.jar 39: 1.1.1 | ${jetty.home}/lib/jta/javax.transaction_1.1.1.v201004190952.jar 40: 3.7.0 | ${jetty.home}/lib/jta/atomikos/atomikos-util-3.7.0.jar 41: 3.7.0 | ${jetty.home}/lib/jta/atomikos/transactions-3.7.0.jar 42: 3.7.0 | ${jetty.home}/lib/jta/atomikos/transactions-api-3.7.0.jar 43: 3.7.0 | ${jetty.home}/lib/jta/atomikos/transactions-jdbc-3.7.0.jar 44: 3.7.0 | ${jetty.home}/lib/jta/atomikos/transactions-jta-3.7.0.jar 45: 7.5.2-SNAPSHOT | ${jetty.home}/lib/spring/jetty-spring-7.5.2-SNAPSHOT.jar 46: 10.6.1000000.938214 | ${jetty.home}/lib/jdbc/derby/derby-10.6.1.0.jar 47: (not specified) | ${jetty.home}/lib/jdbc/derby/derbytools-10.6.1.0.jar 48: 7.5.2-SNAPSHOT | ${jetty.home}/lib/monitor/jetty-monitor-7.5.2-SNAPSHOT.jar Option [annotations] ------------------------------------------------------------- 0: 7.5.2-SNAPSHOT | ${jetty.home}/lib/jetty-annotations-7.5.2-SNAPSHOT.jar 1: 3.1 | ${jetty.home}/lib/annotations/asm-3.1.jar 2: 3.1 | ${jetty.home}/lib/annotations/asm-commons-3.1.jar 3: 3.1 | ${jetty.home}/lib/annotations/asm-tree-3.1.jar 4: 1.1.1 | ${jetty.home}/lib/annotations/geronimo-annotation_1.0_spec-1.1.1.jar 5: 1.0.0.v20100513-0750 | ${jetty.home}/lib/annotations/javax.annotation_1.0.0.v20100513-0750.jar 6: 3.1.0.v200803061910 | ${jetty.home}/lib/annotations/org.objectweb.asm_3.1.0.v200803061910.jar Option [client] ------------------------------------------------------------- 0: 7.5.2-SNAPSHOT | ${jetty.home}/lib/jetty-client-7.5.2-SNAPSHOT.jar Option [Client] (Aggregate) ------------------------------------------------------------- 0: 7.5.2-SNAPSHOT | ${jetty.home}/lib/jetty-client-7.5.2-SNAPSHOT.jar 1: 7.5.2-SNAPSHOT | ${jetty.home}/lib/jetty-http-7.5.2-SNAPSHOT.jar Option [default] ------------------------------------------------------------- 0: (dir) | ${jetty.home}/resources 1: 7.5.2-SNAPSHOT | ${jetty.home}/lib/jetty-xml-7.5.2-SNAPSHOT.jar 2: 2.5.0.v200910301333 | ${jetty.home}/lib/servlet-api-2.5.jar 3: 7.5.2-SNAPSHOT | ${jetty.home}/lib/jetty-http-7.5.2-SNAPSHOT.jar 4: 7.5.2-SNAPSHOT | ${jetty.home}/lib/jetty-continuation-7.5.2-SNAPSHOT.jar 5: 7.5.2-SNAPSHOT | ${jetty.home}/lib/jetty-server-7.5.2-SNAPSHOT.jar 6: 7.5.2-SNAPSHOT | ${jetty.home}/lib/jetty-security-7.5.2-SNAPSHOT.jar 7: 7.5.2-SNAPSHOT | ${jetty.home}/lib/jetty-servlet-7.5.2-SNAPSHOT.jar 8: 7.5.2-SNAPSHOT | ${jetty.home}/lib/jetty-webapp-7.5.2-SNAPSHOT.jar 9: 7.5.2-SNAPSHOT | ${jetty.home}/lib/jetty-deploy-7.5.2-SNAPSHOT.jar 10: 7.5.2-SNAPSHOT | ${jetty.home}/lib/jetty-servlets-7.5.2-SNAPSHOT.jar Option [deploy] ------------------------------------------------------------- 0: 7.5.2-SNAPSHOT | ${jetty.home}/lib/jetty-deploy-7.5.2-SNAPSHOT.jar Option [ext] ------------------------------------------------------------- Empty option, no classpath entries active. Option [jdbc] ------------------------------------------------------------- 0: 10.6.1000000.938214 | ${jetty.home}/lib/jdbc/derby/derby-10.6.1.0.jar 1: (not specified) | ${jetty.home}/lib/jdbc/derby/derbytools-10.6.1.0.jar Option [jmx] ------------------------------------------------------------- 0: 7.5.2-SNAPSHOT | ${jetty.home}/lib/jetty-jmx-7.5.2-SNAPSHOT.jar Option [jndi] ------------------------------------------------------------- 0: 7.5.2-SNAPSHOT | ${jetty.home}/lib/jetty-jndi-7.5.2-SNAPSHOT.jar 1: 7.5.2-SNAPSHOT | ${jetty.home}/lib/jetty-plus-7.5.2-SNAPSHOT.jar 2: 1.1.0.v201005080500 | ${jetty.home}/lib/jndi/javax.activation_1.1.0.v201005080500.jar 3: 1.4.1.v201005082020 | ${jetty.home}/lib/jndi/javax.mail.glassfish_1.4.1.v201005082020.jar Option [jsp] ------------------------------------------------------------- 0: 1.0.0.v201004190952 | ${jetty.home}/lib/jsp/com.sun.el_1.0.0.v201004190952.jar 1: 3.6.0.I20100608-0911 | ${jetty.home}/lib/jsp/ecj-3.6.jar 2: 2.1.0.v201004190952 | ${jetty.home}/lib/jsp/javax.el_2.1.0.v201004190952.jar 3: 2.1.0.v201004190952 | ${jetty.home}/lib/jsp/javax.servlet.jsp_2.1.0.v201004190952.jar 4: 1.2.0.v201004190952 | ${jetty.home}/lib/jsp/javax.servlet.jsp.jstl_1.2.0.v201004190952.jar 5: 7.5.2-SNAPSHOT | ${jetty.home}/lib/jsp/jetty-jsp-2.1-7.5.2-SNAPSHOT.jar 6: 2.1.3.b10 | ${jetty.home}/lib/jsp/jsp-impl-2.1.3-b10.jar 7: 1.2.0.v201004190952 | ${jetty.home}/lib/jsp/org.apache.taglibs.standard.glassfish_1.2.0.v201004190952.jar Option [jta] ------------------------------------------------------------- 0: 1.1.1 | ${jetty.home}/lib/jta/javax.transaction_1.1.1.v201004190952.jar 1: 3.7.0 | ${jetty.home}/lib/jta/atomikos/atomikos-util-3.7.0.jar 2: 3.7.0 | ${jetty.home}/lib/jta/atomikos/transactions-3.7.0.jar 3: 3.7.0 | ${jetty.home}/lib/jta/atomikos/transactions-api-3.7.0.jar 4: 3.7.0 | ${jetty.home}/lib/jta/atomikos/transactions-jdbc-3.7.0.jar 5: 3.7.0 | ${jetty.home}/lib/jta/atomikos/transactions-jta-3.7.0.jar Option [monitor] ------------------------------------------------------------- 0: 7.5.2-SNAPSHOT | ${jetty.home}/lib/monitor/jetty-monitor-7.5.2-SNAPSHOT.jar Option [overlay] ------------------------------------------------------------- 0: 7.5.2-SNAPSHOT | ${jetty.home}/lib/jetty-overlay-deployer-7.5.2-SNAPSHOT.jar Option [overlays] ------------------------------------------------------------- 0: 7.5.2-SNAPSHOT | ${jetty.home}/lib/jetty-overlay-deployer-7.5.2-SNAPSHOT.jar Option [plus] ------------------------------------------------------------- 0: 7.5.2-SNAPSHOT | ${jetty.home}/lib/jetty-jndi-7.5.2-SNAPSHOT.jar 1: 7.5.2-SNAPSHOT | ${jetty.home}/lib/jetty-plus-7.5.2-SNAPSHOT.jar 2: 1.1.0.v201005080500 | ${jetty.home}/lib/jndi/javax.activation_1.1.0.v201005080500.jar 3: 1.4.1.v201005082020 | ${jetty.home}/lib/jndi/javax.mail.glassfish_1.4.1.v201005082020.jar Option [policy] ------------------------------------------------------------- 0: 7.5.2-SNAPSHOT | ${jetty.home}/lib/jetty-policy-7.5.2-SNAPSHOT.jar Option [resources] ------------------------------------------------------------- 0: (dir) | ${jetty.home}/resources Option [rewrite] ------------------------------------------------------------- 0: 7.5.2-SNAPSHOT | ${jetty.home}/lib/jetty-rewrite-7.5.2-SNAPSHOT.jar Option [security] ------------------------------------------------------------- 0: 7.5.2-SNAPSHOT | ${jetty.home}/lib/jetty-security-7.5.2-SNAPSHOT.jar Option [server] ------------------------------------------------------------- 0: 2.5.0.v200910301333 | ${jetty.home}/lib/servlet-api-2.5.jar 1: 7.5.2-SNAPSHOT | ${jetty.home}/lib/jetty-http-7.5.2-SNAPSHOT.jar 2: 7.5.2-SNAPSHOT | ${jetty.home}/lib/jetty-continuation-7.5.2-SNAPSHOT.jar 3: 7.5.2-SNAPSHOT | ${jetty.home}/lib/jetty-server-7.5.2-SNAPSHOT.jar Option [Server] (Aggregate) ------------------------------------------------------------- 0: 7.5.2-SNAPSHOT | ${jetty.home}/lib/jetty-xml-7.5.2-SNAPSHOT.jar 1: 2.5.0.v200910301333 | ${jetty.home}/lib/servlet-api-2.5.jar 2: 7.5.2-SNAPSHOT | ${jetty.home}/lib/jetty-http-7.5.2-SNAPSHOT.jar 3: 7.5.2-SNAPSHOT | ${jetty.home}/lib/jetty-continuation-7.5.2-SNAPSHOT.jar 4: 7.5.2-SNAPSHOT | ${jetty.home}/lib/jetty-server-7.5.2-SNAPSHOT.jar 5: 7.5.2-SNAPSHOT | ${jetty.home}/lib/jetty-security-7.5.2-SNAPSHOT.jar 6: 7.5.2-SNAPSHOT | ${jetty.home}/lib/jetty-servlet-7.5.2-SNAPSHOT.jar 7: 7.5.2-SNAPSHOT | ${jetty.home}/lib/jetty-webapp-7.5.2-SNAPSHOT.jar 8: 7.5.2-SNAPSHOT | ${jetty.home}/lib/jetty-deploy-7.5.2-SNAPSHOT.jar 9: 7.5.2-SNAPSHOT | ${jetty.home}/lib/jetty-servlets-7.5.2-SNAPSHOT.jar Option [servlet] ------------------------------------------------------------- 0: 7.5.2-SNAPSHOT | ${jetty.home}/lib/jetty-servlet-7.5.2-SNAPSHOT.jar Option [servlets] ------------------------------------------------------------- 0: 7.5.2-SNAPSHOT | ${jetty.home}/lib/jetty-servlets-7.5.2-SNAPSHOT.jar Option [setuid] ------------------------------------------------------------- 0: 7.5.2-SNAPSHOT | ${jetty.home}/lib/setuid/jetty-setuid-java-7.5.2-SNAPSHOT.jar 1: 3.2.2 b0 | ${jetty.home}/lib/setuid/jna-3.2.2.jar Option [spring] ------------------------------------------------------------- 0: 7.5.2-SNAPSHOT | ${jetty.home}/lib/spring/jetty-spring-7.5.2-SNAPSHOT.jar Option [webapp] ------------------------------------------------------------- 0: 7.5.2-SNAPSHOT | ${jetty.home}/lib/jetty-webapp-7.5.2-SNAPSHOT.jar Option [websocket] ------------------------------------------------------------- 0: 7.5.2-SNAPSHOT | ${jetty.home}/lib/jetty-websocket-7.5.2-SNAPSHOT.jar Option [xml] ------------------------------------------------------------- 0: 7.5.2-SNAPSHOT | ${jetty.home}/lib/jetty-xml-7.5.2-SNAPSHOT.jar On 29 September 2011 11:14, David Haynes <david.dhc...@gmail.com> wrote: > [david@vsa-ge libs]$ java -jar jetty-start.jar --list-modes OPTION=plus > jetty-plus.xml jetty-web.xml > There are 27 OPTIONs available to use. > Each option is listed along with associated available classpath entries, > in the order that they would appear from that mode. > Note: If using multiple options (eg: 'Server,servlet,webapp,jms,jmx') then > overlapping entries will not be repeated in the eventual classpath. > > ${jetty.home} = /home/david/workspaces/directory-service/test/libs > > GLOBAL option (Prepended Entries) > ------------------------------------------------------------- > Empty option, no classpath entries active. > > GLOBAL option (Appended Entries) (*) > ------------------------------------------------------------- > Empty option, no classpath entries active. > > Option [ajp] > ------------------------------------------------------------- > Empty option, no classpath entries active. > > Option [All] (Aggregate) > ------------------------------------------------------------- > Empty option, no classpath entries active. > > Option [annotations] > ------------------------------------------------------------- > Empty option, no classpath entries active. > > Option [client] > ------------------------------------------------------------- > Empty option, no classpath entries active. > > Option [Client] (Aggregate) > ------------------------------------------------------------- > Empty option, no classpath entries active. > > Option [default] > ------------------------------------------------------------- > Empty option, no classpath entries active. > > Option [deploy] > ------------------------------------------------------------- > Empty option, no classpath entries active. > > Option [ext] > ------------------------------------------------------------- > Empty option, no classpath entries active. > > Option [jmx] > ------------------------------------------------------------- > Empty option, no classpath entries active. > > Option [jndi] > ------------------------------------------------------------- > Empty option, no classpath entries active. > > Option [overlay] > ------------------------------------------------------------- > Empty option, no classpath entries active. > > Option [overlays] > ------------------------------------------------------------- > Empty option, no classpath entries active. > > Option [plus] > ------------------------------------------------------------- > Empty option, no classpath entries active. > > Option [policy] > ------------------------------------------------------------- > Empty option, no classpath entries active. > > Option [resources] > ------------------------------------------------------------- > Empty option, no classpath entries active. > > Option [rewrite] > ------------------------------------------------------------- > Empty option, no classpath entries active. > > Option [security] > ------------------------------------------------------------- > Empty option, no classpath entries active. > > Option [server] > ------------------------------------------------------------- > Empty option, no classpath entries active. > > Option [Server] (Aggregate) > ------------------------------------------------------------- > Empty option, no classpath entries active. > > Option [servlet] > ------------------------------------------------------------- > Empty option, no classpath entries active. > > Option [servlets] > ------------------------------------------------------------- > Empty option, no classpath entries active. > > Option [setuid] > ------------------------------------------------------------- > Empty option, no classpath entries active. > > Option [webapp] > ------------------------------------------------------------- > Empty option, no classpath entries active. > > Option [websocket] > ------------------------------------------------------------- > Empty option, no classpath entries active. > > Option [xml] > ------------------------------------------------------------- > Empty option, no classpath entries active. > > Looks like a whole lot of nothing... > > > On Wed, Sep 28, 2011 at 8:48 PM, Jan Bartel <j...@intalio.com> wrote: > >> David, >> >> Try doing: >> java -jar start.jar --list-options >> >> Jan >> >> On 29 September 2011 10:43, David Haynes <david.dhc...@gmail.com> wrote: >> >>> Thanks for the response. >>> >>> Well, I guess I am closer. >>> I changed the jetty-web.xml as follows: >>> >>> <?xml version="1.0" encoding="ISO-8859-1"?> >>> <!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting/DTD Configure/EN" " >>> http://www.eclipse.org/jetty/configure.dtd"> >>> <Configure id="wac" class="org.eclipse.jetty.webapp.WebAppContext"> >>> <Array id="plusConfig" type="java.lang.String"> >>> <Item>org.eclipse.jetty.webapp.WebInfConfiguration</Item> >>> <Item>org.eclipse.jetty.webapp.WebXmlConfiguration</Item> >>> <Item>org.eclipse.jetty.webapp.MetaInfConfiguration</Item> >>> <Item>org.eclipse.jetty.webapp.FragmentConfiguration</Item> >>> <Item>org.eclipse.jetty.plus.webapp.EnvConfiguration</Item> <!-- >>> add for JNDI --> >>> <Item>org.eclipse.jetty.plus.webapp.PlusConfiguration</Item> >>> <!-- add for JNDI --> >>> <Item>org.eclipse.jetty.webapp.JettyWebXmlConfiguration</Item> >>> <Item>org.eclipse.jetty.webapp.TagLibConfiguration</Item> >>> </Array> >>> >>> <Set name="war"><SystemProperty name="jetty.home" >>> default="."/>/directory</Set> >>> <Set name="configurationClasses"><Ref id="plusConfig"/></Set> >>> </Configure> >>> >>> The other part of the manual page is about how to set the OPTIONS on the >>> java invocation but I am running this as an embedded service. So how do I do >>> the equivalent of the OPTIONS=plus from inside a Java class? >>> >>> The error message I am getting now is: >>> [2011-09-28 20:33:48,579][DEBUG]?:?(?:?): XML >>> o.e.j.w.WebAppContext{/directory,file:/tmp/jetty-127.0.0.1-8099-directory.war-_directory-any-/webapp/},./directory.setConfigurationClasses([Ljava.lang.String;@8f9a32) >>> >>> [2011-09-28 20:33:48,579][ WARN]?:?(?:?): Config error at <Set >>> name="configurationClasses"><Ref id="plusConfig"/></Set> >>> [2011-09-28 20:33:48,581][ WARN]?:?(?:?): Failed startup of context >>> o.e.j.w.WebAppContext{/directory,file:/tmp/jetty-127.0.0.1-8099-directory.war-_directory-any-/webapp/},./directory >>> java.lang.reflect.InvocationTargetException >>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>> >>> I have tried the '/webapps/directory', '/webapp/directory' and >>> '/directory' for the <Set name="war" with no difference. >>> >>> >>> On Wed, Sep 28, 2011 at 6:49 PM, Jan Bartel <j...@intalio.com> wrote: >>> >>>> David, >>>> >>>> You need to ensure you have the jars on the classpath that enable >>>> j2ee-style features for jetty and configure the webapp to use them also. >>>> >>>> See http://wiki.eclipse.org/Jetty/Feature/JNDI >>>> >>>> Jan >>>> >>>> On 29 September 2011 03:23, David Haynes <david.dhc...@gmail.com>wrote: >>>> >>>>> I am probably missing something trivial but I can't seem to find it. >>>>> I am running Jetty 8.0.1.v20110908 as an embedded server. >>>>> My jetty-web.xml file looks like this: >>>>> >>>>> <?xml version="1.0" encoding="ISO-8859-1"?> >>>>> <!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting/DTD Configure/EN" " >>>>> http://www.eclipse.org/jetty/configure.dtd"> >>>>> <Configure class="org.eclipse.jetty.webapp.WebAppContext"> >>>>> <Set name="contextPath">/directory</Set> >>>>> <Set name="war"><SystemProperty name="jetty.home" >>>>> default="."/>/webapp/directory</Set> >>>>> </Configure> >>>>> >>>>> My web.xml has this env-entry in it: >>>>> <env-entry> >>>>> <env-entry-name>database.fqn</env-entry-name> >>>>> <env-entry-type>java.lang.String</env-entry-type> >>>>> <env-entry-value>192.168.215.35</env-entry-value> >>>>> </env-entry> >>>>> >>>>> When I try to read the value from my webapp, I get the following: >>>>> [2011-09-28 13:12:55,638][DEBUG]?:?(?:?): No entry for classloader: >>>>> WebAppClassLoader=Directory Service@2f996f >>>>> [2011-09-28 13:12:55,638][DEBUG]?:?(?:?): Looking up >>>>> name="env/database.fqn" >>>>> [2011-09-28 13:12:55,639][ WARN]?:?(?:?): /directory/api/ping >>>>> org.jboss.resteasy.spi.UnhandledException: >>>>> javax.naming.NameNotFoundException; remaining name 'env/database.fqn' >>>>> at >>>>> org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:340) >>>>> at >>>>> org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:214) >>>>> at >>>>> org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:190) >>>>> >>>>> This is the start method: >>>>> public void startServer() throws Exception { >>>>> Connector connector = new SelectChannelConnector(); >>>>> connector.setHost(fqn); >>>>> connector.setPort(port); >>>>> connector.setMaxIdleTime(10000); // 10 seconds >>>>> >>>>> server = new Server(); >>>>> WebAppContext wac = new WebAppContext(warFilePath, >>>>> contextPath); >>>>> wac.setParentLoaderPriority(true); >>>>> server.setHandler(wac); >>>>> server.setConnectors(new Connector[] { connector }); >>>>> server.start(); >>>>> } >>>>> >>>>> Does anyone have any idea why its not working? >>>>> Any suggestions would be great at this point! >>>>> >>>>> -david- >>>>> >>>>> _______________________________________________ >>>>> jetty-users mailing list >>>>> jetty-users@eclipse.org >>>>> https://dev.eclipse.org/mailman/listinfo/jetty-users >>>>> >>>>> >>>> >>>> _______________________________________________ >>>> jetty-users mailing list >>>> jetty-users@eclipse.org >>>> https://dev.eclipse.org/mailman/listinfo/jetty-users >>>> >>>> >>> >>> _______________________________________________ >>> jetty-users mailing list >>> jetty-users@eclipse.org >>> https://dev.eclipse.org/mailman/listinfo/jetty-users >>> >>> >> >> _______________________________________________ >> jetty-users mailing list >> jetty-users@eclipse.org >> https://dev.eclipse.org/mailman/listinfo/jetty-users >> >> > > _______________________________________________ > jetty-users mailing list > jetty-users@eclipse.org > https://dev.eclipse.org/mailman/listinfo/jetty-users > >
_______________________________________________ jetty-users mailing list jetty-users@eclipse.org https://dev.eclipse.org/mailman/listinfo/jetty-users