Skip to content

Instantly share code, notes, and snippets.

@kelvinewilliams
Created February 10, 2017 13:57
Show Gist options
  • Save kelvinewilliams/4f7897dce3c817671ce209a9b2473b36 to your computer and use it in GitHub Desktop.
Save kelvinewilliams/4f7897dce3c817671ce209a9b2473b36 to your computer and use it in GitHub Desktop.
jetty-env.xml : java.lang.reflect.InvocationTargetException / java.lang.IllegalStateException: Nothing to bind for name ...
<?xml version="1.0"?>
<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd">
<Configure class="org.eclipse.jetty.webapp.WebAppContext">
<New id="LERG" class="org.eclipse.jetty.plus.jndi.Resource">
<Arg></Arg>
<Arg>jdbc/LERG</Arg>
<Arg>
<New class="org.postgresql.ds.PGPoolingDataSource">
<Set name="user">redacted</Set>
<Set name="password">redacted</Set>
<Set name="databaseName">api</Set>
<Set name="serverName">localhost</Set>
<Set name="portNumber">5432</Set>
<Set name="dataSourceName">lerg</Set>
<Set name="initialConnections">5</Set>
</New>
</Arg>
</New>
</Configure>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment