mysql - Jetty 9 JNDI setup - Class not found: org.eclipse.jetty.plus.jndi.Resource -
i'm trying configure jndi entry in jetty 1 of applications.
i've put mysql jar: mysql-connector-java-5.1.24-bin.jar in lib/ext
i've edited start.ini , changed options to: options=server,websocket,resources,ext,plus
i've uncommented lines:
options=jndi options=plus etc/jetty-plus.xml
when run: service jetty start get:
java.lang.classnotfoundexception: org.eclipse.jetty.plus.jndi.resource in file:/usr/share/jetty-distribution-9.0.4.v20130625/etc/jetty.xml
i've checked plus jar in /usr/share/jetty/lib
jar tf jetty-plus-9.0.4.v20130625.jar |grep jndi/resource.class
gives:
org/eclipse/jetty/plus/jndi/resource.class
so class there.
the jndi entry defined in etc/jetty.xml:
... <new id="fhxprime_test" class="org.eclipse.jetty.plus.jndi.resource"> <arg><ref refid="server"/></arg> <arg>jdbc/fhxprime_test</arg> <arg> <new class="com.mysql.jdbc.jdbc2.optional.mysqlconnectionpooldatasource"> <set name="url">jdbc:mysql://hostname:3306/dbname</set> <set name="user">user</set> <set name="password">password</set> </new> </arg> </new> </configure>
any other ideas?
turns out modifying startup.ini on server
Comments
Post a Comment