You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Pa...@allsolutions.com.au on 2002/11/29 02:15:06 UTC
unusual glitch (XML file location)
Thanks Mehdi,
That did the trick. I have now parsed the XML (finally), one last
thing, to anyone...
If a path to the XML file is provided or not, it is defaulting to
c:\WINNT\system32 hence if I place the XML file thus:
c:\WINNT\system32\stocks.xml , with the JSP calling it:
Document doc = domparser.getDocument("stocks.xml");
it works fine. I of course want the XML somewhere nearer to my system, ie
not in WINNT/system32! so I tried giving it a fully formed path eg:
Document doc =
domparser.getDocument("http://127.0.0.1:8080/mydir/stocks.xml");
I am given the 404:
C:\WINNT\system32\http:\127.0.0.1:8080\mydir\stocks.xml (The filename,
directory name, or volume label syntax is incorrect)
ie it is still looking for the XML in the system32 directory?
Any ideas for this unusuality?
Thanks
Paul.
You shouldn't need an empty constructor in order to import a class.
I notice the path to your "bean" was :
webapps/mydir/WEB-INF/mybean/mybean.class
classes should go into WEB-INF/classes - not the root of WEB-INF ! so u
want :
webapps/mydir/WEB-INF/classes/mybean/mybean.class
That should work
Mehdi
--