I have a problem,I have basically set jndi 2, 1 to access a db and the other to access a properties file so you can manage some parameters outside the application, the jdbc jndi is read properly, instead of the jndi properties file I should be in error.
first of all I will explain my setup, I have a tomcat server 5.5, Struts 1.3, winxp, sp1 helios eclipse.
then in web.xml I have these lines of code
instead of the server in the context.xml I have these lines
and finally to retrieve jndi use these instructions
db connection when the call goes alright, the db is read and written.
when I call the properties file back to me this error
David O'Meara wrote:You need to escape the backslash (I think)
thanks for reply and for welcome.
I have already tried this solution, with the same result error, I tried also
Resource of Type java.net.URL
We need to redirect an HTTP request to a URL available as JNDI resource. The following source code retrieves the corresponding java.net.URL resource and redirects the client request to it.
InitialContext context = new InitialContext();
We describe the reference to that resource in the web.xml as follows:
We describe the reference to that resource in the web-j2ee-engine.xml as follows: