What you suggest is possible, the javax.xml.parsers.DocumentBuilder
class is in the Java 1.4 rt.jar library. But I don't understand why this
problem would show up when using Java 1.4 with Resin 2.1.0, but not with
2.0.5.
I guess there could be a conflict of some sort with the XML classes in
Resin 2.1.0 and Java 1.4. I'm not concerned about this particular case
since there is an easy work-around: use a FileInputStream object instead
of a File object. But it makes me wonder about other possible conflicts
and who, Caucho or Sun, should address the issue.
Rob
On Saturday, March 30, 2002, at 07:35 PM, Joao Assad wrote:
> Im very new to Resin and also to Java
> Im not even a Java programmer. All my java/resin/many_other_app_servers
> experience is based on getting our huge application, test it running on
> many
> different JVM versions running on many different OSs using many
> different
> app_servers and find out which combination is better for us.
>
> So, please pardon me if what Im about to sujest is very stupid.
>
> I think the JVM 1.4 comes with its own xml parser. Try removing Resin's
> xml
> parser and do some further testing. Maybe thats the problem, you could
> be
> using 2 different xml parsers at the same time.
>
> Best regards,
>
> Joćo Assad
>
> ----- Original Message -----
> From: "Rob Lockstone" <lockstone@xxx.com>
> To: <resin-interest@xxx.com>
> Sent: Friday, March 29, 2002 6:12 PM
> Subject: Resin 2.1.0 or JVM 1.4 Bug? re: XML Parsing
>
>
>> This is on a Win2K Pro machine using Resin 2.1.0 and Java 1.4.
>>
>> There is an odd bug when using the
>> javax.xml.parsers.DocumentBuilder.parse(File) method. It only appears
>> when using the File argument in the parse method, and only when using
>> Resin 2.1.0 and Java 1.4. Resin 2.0.5 does not have this problem when
>> using Java 1.4. So, I tend to think this is probably a resin bug.
>>
>> Example:
>>
>> DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
>> DocumentBuilder builder = factory.newDocumentBuilder();
>> //This line throws an exception.
>> Document doc = builder.parse(new File("ConfigFiles/test.xml"));
>>
>> The path name to the file is getting mangled. The error message is:
>>
>> java.io.FileNotFoundException: D:\resin\D:\resin\ConfigFiles\test.xml
>> (The filename, directory name, or volume label syntax is incorrect)
>>
>> Notice the double "D:\resin\D:\resin\". Yikes!
>>
>> Should I file a bug against resin about this? Or is posting here good
>> enough?
>>
>> Complete source example and stack trace attached.
>>
>> Rob
>>
>>
>
>
>
_________________________________________
Rob Lockstone <http://www.iRideSnow.com>
Received on Mon 01 Apr 2002 23:20:04 -0800
This archive was generated by hypermail 2.1.8 : Thu Sep 28 2006 - 20:17:00 PDT