Bill, Please list the output of --list-config and --list-modules for your jetty.base.
Jan On 15 July 2015 at 08:44, Bill Ross <[email protected]> wrote: > Also per > > http://www.eclipse.org/jetty/documentation/current/jndi.html > > I added --add-to-startd=jndi to my startup script, but it just exited > without logging: > > --- script > cd > /Users/priot/jetty/org.eclipse.jetty.project/jetty-distribution/target/distribution > java -jar start.jar \ > > jetty.home=/Users/priot/jetty/org.eclipse.jetty.project/jetty-distribution/target/distribution > \ > jetty.base=/Users/priot/pr/jetty-base \ > --add-to-startd=jndi > --- > > > > > On 7/14/2015 3:42 PM, Bill Ross wrote: > > Fixed jetty-env.xml with DOCTYPE and <Call> nesting, still no evidence of > loading. Whole startup log: > > 2015-07-14 15:37:18.207:INFO::main: Logging initialized @374ms > 2015-07-14 15:37:18.388:INFO:oejs.Server:main: jetty-9.3.1-SNAPSHOT > 2015-07-14 15:37:18.404:INFO:oejdp.ScanningAppProvider:main: Deployment > monitor [file:///Users/priot/pr/jetty-base/webapps/] at interval 1 > 2015-07-14 15:37:18.552:INFO:oejw.StandardDescriptorProcessor:main: NO JSP > Support for /, did not find org.eclipse.jetty.jsp.JettyJspServlet > 15:37:18.853 [main] INFO com.priot.servlet.GetNext - GetNext Init OK > 15:37:18.853 [main] INFO com.priot.servlet.GetNext - GetNext Init OK > 15:37:18.865 [main] INFO com.priot.servlet.GetSession - GetSession Init OK > 2015-07-14 15:37:18.865:INFO:oejsh.ContextHandler:main: Started > o.e.j.w.WebAppContext@5f2050f6{/,file:///Users/priot/pr/jetty-base/webapps/ROOT/,AVAILABLE}{/ROOT} > 2015-07-14 15:37:18.932:INFO:oejw.StandardDescriptorProcessor:main: NO JSP > Support for /proj, did not find org.eclipse.jetty.jsp.JettyJspServlet > 15:37:19.081 [main] INFO com.priot.servlet.GetNext - GetNext Init OK > 15:37:19.081 [main] INFO com.priot.servlet.GetNext - GetNext Init OK > 15:37:19.083 [main] INFO com.priot.servlet.GetSession - GetSession Init OK > 2015-07-14 15:37:19.085:INFO:oejsh.ContextHandler:main: Started > o.e.j.w.WebAppContext@6156496{/proj,file:///private/var/folders/r1/fghw80h10b90nlggmfmd8jjr0000gn/T/jetty-0.0.0.0-8080-proj.war-_proj-any-1401716529541429412.dir/webapp/,AVAILABLE}{/proj.war} > 2015-07-14 15:37:19.101:INFO:oejs.ServerConnector:main: Started > ServerConnector@6e0bbd1c{HTTP/1.1,[http/1.1]}{0.0.0.0:8080} > 2015-07-14 15:37:19.102:INFO:oejs.Server:main: Started @1269ms > > > On 7/14/2015 3:13 PM, Joakim Erdfelt wrote: > > > On Tue, Jul 14, 2015 at 2:06 PM, Bill Ross <[email protected]> wrote: >> >> On 7/14/2015 1:50 PM, Joakim Erdfelt wrote: >> >> What does your jetty-env.xml look like (the contents)? >> >> >> <?xml version="1.0" encoding="UTF-8"?> >> <!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" >> "http://www.eclipse.org/jetty/configure.dtd"> >> <Call class="org.eclipse.jetty.util.log.Log" name="info"><Arg>Starting my >> super test application%%%%%%%%%%%%%%%%%%%%</Arg></Call> >> <Configure class="org.eclipse.jetty.webapp.WebAppContext"> >> <New id="prDataSource" class="org.eclipse.jetty.plus.jndi.Resource"> >> <Arg></Arg> >> <Arg>java:comp/env/jdbc/pr</Arg> >> <Arg> >> <New class="com.mchange.v2.c3p0.ComboPooledDataSource"> >> <Set name="driverClass">com.mysql.jdbc.Driver</Set> >> <Set name="jdbcUrl">jdbc:mysql://localhost:3306/pr</Set> >> <Set name="user">pr</Set> >> <Set name="password">@pr</Set> >> </New> >> </Arg> >> </New> >> </Configure> > > > Wrong DTD. > It should be > <!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" > "http://www.eclipse.org/jetty/configure_9_3.dtd"> > > The top level element is always <Configure>, but you have <Call> as your top > level. > Put that <Call> inside the <Configure> element. > > >> >> >> What version of Jetty? >> >> >> Current 9.3.1-SNAPSHOT - I find I have to change the code to get logs I >> can use (as you first suggested), so I have kept to this version. >> >> >> What you are doing is sane, at face value, but there's a lot of unknowns >> still. >> We need to know more about your setup, and desired/expected outcome to >> have any hope in helping you. >> >> >> I described that in detail in another thread, but since I was getting no >> response, I broke it down to this one unknown that I need to confirm to make >> it simple. Please see "Getting JNDI/ db connection pool to work" for setup, >> previous progress, documentation errata I've found, and other possible >> issues. >> >> On that bigger picture, here is why I am trying with java:comp/env/ in >> >> <Arg>java:comp/env/jdbc/pr</Arg> >> >> >> http://stackoverflow.com/questions/2131798/jetty-mysql-connection-pool-configuration-error-javax-naming-namenotfoundexcept >> >> And they say at one point, >> >> "The problem is you're missing ONE extra layer of indirection. Even though >> you've configured Jetty in your webapp, you still need to tell the Jetty >> container that it needs to look for jetty-env.xml in your webapp. " >> >> This is for an old version, and contradicts what is said above. >> However, it is consistent with the lack of evidence that jetty-env.xml >> is being seen. >> >> >> Thanks, >> Bill >> >> >> >> >> Right now your question is along the lines of "My car isn't running, I >> added gasoline, but it still doesn't run. I verified that what I added was >> gasoline by testing that it was flammable." >> A bit hard to troubleshoot when you can't see/touch/hear the car. >> >> >> Joakim Erdfelt / [email protected] >> >> On Tue, Jul 14, 2015 at 1:42 PM, Bill Ross <[email protected]> wrote: >>> >>> Copying the war to $jetty-base/webapps/. >>> >>> >>> On 7/14/2015 1:34 PM, Joakim Erdfelt wrote: >>> >>> How are you deploying that webapp? >>> >>> Joakim Erdfelt / [email protected] >>> >>> On Tue, Jul 14, 2015 at 1:25 PM, Bill Ross <[email protected]> wrote: >>>> >>>> Per >>>> >>>> http://www.eclipse.org/jetty/documentation/current/jetty-env-xml.html >>>> >>>> "Using jetty-env.xml >>>> >>>> Place the jetty-env.xml file in your web application's WEB-INF folder." >>>> >>>> -- I see it there when I unpack the war file. >>>> -- should there be any logging when this is seen? >>>> -- I added this to it, but still see no log: >>>> >>>> <Call class="org.eclipse.jetty.util.log.Log" name="info"><Arg>Starting >>>> my super test application</Arg></Call> >>>> >>>> Thanks, >>>> Bill >>>> _______________________________________________ >>>> jetty-users mailing list >>>> [email protected] >>>> To change your delivery options, retrieve your password, or unsubscribe >>>> from this list, visit >>>> https://dev.eclipse.org/mailman/listinfo/jetty-users >>> >>> >>> >>> >>> _______________________________________________ >>> jetty-users mailing list >>> [email protected] >>> To change your delivery options, retrieve your password, or unsubscribe >>> from this list, visit >>> https://dev.eclipse.org/mailman/listinfo/jetty-users >>> >>> >>> >>> _______________________________________________ >>> jetty-users mailing list >>> [email protected] >>> To change your delivery options, retrieve your password, or unsubscribe >>> from this list, visit >>> https://dev.eclipse.org/mailman/listinfo/jetty-users >> >> >> >> >> _______________________________________________ >> jetty-users mailing list >> [email protected] >> To change your delivery options, retrieve your password, or unsubscribe >> from this list, visit >> https://dev.eclipse.org/mailman/listinfo/jetty-users >> >> >> >> _______________________________________________ >> jetty-users mailing list >> [email protected] >> To change your delivery options, retrieve your password, or unsubscribe >> from this list, visit >> https://dev.eclipse.org/mailman/listinfo/jetty-users > > > > > _______________________________________________ > jetty-users mailing list > [email protected] > To change your delivery options, retrieve your password, or unsubscribe from > this list, visit > https://dev.eclipse.org/mailman/listinfo/jetty-users > > > > > _______________________________________________ > jetty-users mailing list > [email protected] > To change your delivery options, retrieve your password, or unsubscribe from > this list, visit > https://dev.eclipse.org/mailman/listinfo/jetty-users > > > > _______________________________________________ > jetty-users mailing list > [email protected] > To change your delivery options, retrieve your password, or unsubscribe from > this list, visit > https://dev.eclipse.org/mailman/listinfo/jetty-users -- Jan Bartel <[email protected]> www.webtide.com 'Expert assistance from the creators of Jetty and CometD' _______________________________________________ jetty-users mailing list [email protected] To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/jetty-users
