Wednesday, January 21, 2009

how to setup your run configuration to run your GWT app under eclipse.

Assuming you have tried to run your GWT app and failed...

Open Run Dialog and locate your app run config. Copy the following into the VM arguments field in the Arguments tab

-Xmx512m
-Djava.naming.factory.initial=org.jboss.security.jndi.JndiLoginInitialContextFactory
-Djava.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
-Djava.naming.security.principal=admin
-Djava.naming.security.credentials=admin
-Djava.naming.provider.url=localhost:1099

Copy the attached jndi.properties file into a folder called conf and add that folder to the project classpath (I do this by adding it as a src folder).

Add Jboss Client and Jboss libraries to your project cllasspath (you need jboss client jars as well as server jars).

Get rid of Log 4 J library if you have it on classpath (when we migrated to Jboss 4.2.3, I started getting weird errors about TRACE field not being available - probably jboss uses a newer log4j version that what is in our libs).

No comments: