Hi,
We have an old project not with maven where properties file is directly in WAR file directory not on WEB-INF or class directory.
We have tried without succes many reading method like
InputStream in = this.getClass().getClassLoader().getResourceAsStream(file1);
InputStream in = com.google.gwt.user.server.rpc.RemoteServiceServlet.class.getResourceAsStream(file1);
path = RequestFactoryServlet.getThreadLocalServletContext().getRealPath(file1);
InputStream in = ServletContext.class.getResourceAsStream(file1);
URL url = com.google.gwt.user.server.rpc.RemoteServiceServlet.class.getClassLoader().getSystemResource("/"+file1);
InputStream in = Thread.currentThread().getContextClassLoader().getResourceAsStream(file1);
We tried acces properties file from server part of this project
Where is my mistake ?
Regards
Phil
-- We have an old project not with maven where properties file is directly in WAR file directory not on WEB-INF or class directory.
We have tried without succes many reading method like
InputStream in = this.getClass().getClassLoader().getResourceAsStream(file1);
InputStream in = com.google.gwt.user.server.rpc.RemoteServiceServlet.class.getResourceAsStream(file1);
path = RequestFactoryServlet.getThreadLocalServletContext().getRealPath(file1);
InputStream in = ServletContext.class.getResourceAsStream(file1);
URL url = com.google.gwt.user.server.rpc.RemoteServiceServlet.class.getClassLoader().getSystemResource("/"+file1);
InputStream in = Thread.currentThread().getContextClassLoader().getResourceAsStream(file1);
We tried acces properties file from server part of this project
Where is my mistake ?
Regards
Phil
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment