Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] Jetty 7 and JNDI (EnvConfiguration) - In jetty6 all forks fine.

How can i make Jetty works with JNDI datasource?
In Jetty 6 i make the same configuration and all works fine, what i
need to change to get it work's in jetty 7?

1- I change jetty-plus and uncomment "<Call name="addLifeCycle">";
2- I put my war in webapps-plus
3- Run jetty with this commmand java -DOPTIONS=All -jar start.jar
etc/jetty.xml etc/jetty-plus.xml etc/jetty-logging.xml
4- And always i get

	at Method)
	at java.lang.ClassLoader.loadClass(
	at java.lang.ClassLoader.loadClass(
	at org.eclipse.jetty.util.Loader.loadClass(
	at org.eclipse.jetty.util.Loader.loadClass(
	at org.eclipse.jetty.webapp.WebAppContext.loadConfigurations(
	at org.eclipse.jetty.webapp.WebAppContext.doStart(
	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(

What I miss?


jetty-env (in WEB-INF of my app):
<Configure id='appcontext' class="org.eclipse.jetty.webapp.WebAppContext">
	<New id="site" class="">
			<New class="org.postgresql.ds.PGPoolingDataSource">
				<Set name="User">site</Set>
				<Set name="Password">pass</Set>
				<Set name="DatabaseName">base</Set>
				<Set name="ServerName"></Set>
				<Set name="PortNumber">5430</Set>
				<Set name="initialConnections">5</Set>
				<Set name="maxConnections">50</Set>

Thanks all for helping.

Back to the top