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
Someone can help me? and sorry for my English
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
I'm going crazy
David O'Meara wrote:It looks like the first should be the correct one, do they all return the same error?
David O'Meara wrote:I'm also wondering if you should (could) store it as a String value (with escaped slashes) and then create a java.io.File from the String.
you mean this?
String fi = (String)PortableRemoteObject.narrow(
I tried now and the result is always that mistake
Resource of Type javax.mail.Session
To get a resource of type javax.mail.Session the web.xml descriptor can be as follows:
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: