Hi,
I need to uses jndi to connected my apps with my postgresql database.
My jndi conf is ok on external tomcat server. (<code>mvn install</
code> -> and running tomcat is ok)
But, in dev mode, <code>mvn gwt:run</code> i the following error:
<code>Caused by: javax.naming.NoInitialContextException: Need to
specify class name in environment or system property, or as an applet
parameter, or in an application resource file:
java.naming.factory.initial</code>
I put the jetty-env.xml in the WEB-INF folder.
Seeing my gwt-maven-pligin config :
<code> <plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>1.3.2.google</version>
<configuration>
<gwtVersion>${gwt.version}</gwtVersion>
<module>fr.grouperatp.ratp.applications.accessio.Application</
module>
<runTarget>fr.grouperatp.ratp.applications.accessio.Application/
Application.html</runTarget>
<webXml>src/main/webapp/WEB-INF/web.xml</webXml>
<jettyEnvXml>src/main/webapp/WEB-INF/jetty-env.xml</jettyEnvXml>
<copyWebapp>true</copyWebapp>
<soyc>false</soyc>
</configuration>
<executions>
<execution>
<goals>
<goal>compile</goal>
<goal>test</goal>
</goals>
</execution>
</executions>
</plugin>
</code>
I trying to added this "-
Djava.naming.factory.initial=org.mortbay.naming.InitialContextFactory"
on argument in run configuration but i have the same error log.
How can i solved my problem ?
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.