I just upgraded to GWT 1.6 and have the following problem. The servlet
of my web app calls a native application on the server. In order to
test this on my local machine I had used environment variables to
specify where the binary resides.
With GWT 1.5 I could set them in my Eclipse launch config for
debugging in hosted mode on my local machine and as init parameters in
the web.xml file for the deployed version running on the web server.
So my RemoteServiceServlet contains this init method:
public void init(ServletConfig config) throws ServletException{
super.init(config);
myapp_cmd = config.getInitParameter("MYAPP_CMD");
myapp_param = config.getInitParameter("MYAPP_PARAM");
output_dir = config.getInitParameter("OUTPUT_DIR");
if (myapp_cmd == null) {
myapp_cmd = System.getenv("MYAPP_CMD");
}
if (myapp_param == null) {
myapp_param = System.getenv("MYAPP_PARAM");
}
if (output_dir == null) {
output_dir = System.getenv("OUTPUT_DIR");
}
}
GWT 1.6 seems to load the web.xml file even when running in hosted
mode, thereby breaking my code. I searched the help for information on
the issue, but couldn't find anything. Could someone tell me how I
should include these parameters/environment variables instead?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---