I cannot use 3.0.1RC1-tomcat4.0.4 because of this.
I have not found the solutions for this.
Any know what to do?
It works fine with Jetty but I cannot get getRealPath("/")
to return a non-null value with any version of Jboss 3.X with Tomcat4.X
I have the same problem. Any solution/suggestions?
ive been thinking about this and i may be a mile of but in the web.xml or the tomcat-service.xml or what ever havent really invested really does it say anything about unpacking the war on deployment cos i think the web apps aint unpacked and maybe that is making the null exception
thats just a thought havent done anything about it really i may do when i get back to programming
I tried to do this:-
In the web.xml of the .war, I created
and inside the .jsp that's calling getRealPath(), I used getServletContext().getInitParameter("ContextRoot_docBase");
This seems to work atleast for the creation of file at /MyApplContextRoot/newlycreated.jsp (I am creating a dynamic .jsp).
However, JBoss does't seem to find 'newlycreated.jsp' at root context????
I experienced the same with Tomcat. I tried to build a upload-ejb but I can not getRealPath(). Could that be a permission issue? (I am using linux)