James,

Yes.  That did the trick.  We upgraded to JDK1.3 and no problems.

Thanks
John


                                                                                       
                         
                    "James Strachan"                                                   
                         
                    <james_strachan@ya        To:     
<[EMAIL PROTECTED]>,                       
                    hoo.co.uk>                <[EMAIL PROTECTED]>             
                         
                                              cc:                                      
                         
                    03/04/2002 09:42          Subject:     Re: [dom4j-user] 
NoSuchMethodError                   
                    PM                                                                 
                         
                                                                                       
                         
                                                                                       
                         




dom4j uses Java 2 Collections which are included as standard in JDK1.2
onwards. Isn't there a JDK1.2 version available for OS/390?

James
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 01, 2002 4:43 PM
Subject: [dom4j-user] NoSuchMethodError


> I am able to successfully test my class using dom4j on my workstation
(JRE
> 1.3.1).  When I move it to where I need it to run  (Unix System Services
on
> OS/390 - java version 1.1.8 ) and try to run it, I get the following:
>
> java.lang.NoSuchMethodError: java.lang.Class: method
> forName(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class; not
> found
>         at org.dom4j.io.SAXHelper.classNameAvailable(SAXHelper.java:130)
>         at
org.dom4j.io.SAXHelper.createXMLReaderViaJAXP(SAXHelper.java:89)
>         at org.dom4j.io.SAXHelper.createXMLReader(SAXHelper.java:65)
>         at org.dom4j.io.SAXReader.createXMLReader(SAXReader.java:574)
>         at org.dom4j.io.SAXReader.getXMLReader(SAXReader.java:457)
>         at org.dom4j.io.SAXReader.read(SAXReader.java:287)
>         at org.dom4j.io.SAXReader.read(SAXReader.java:229)
>         at com.mycompany.xxx.MyClass.getSampleRequest(MyClass.java:99)
>         at com.mycompany.xxx.MyClass.main(MyClass.java:70)
>
> The getSampleRequest method looks something like this...
>
>           SAXReader reader = new SAXReader();
>           System.err.println("reading msg");
>           Document doc = reader.read( "http://myserver/myxmlfile.xml"; );
>           return doc.asXML();
>
> I am not only a neophyte when it comes to dom4j but to java as well  I am
> sure I am doing something stupid.  But I'm not sure where to start
looking.
>
> Thanks in advance for any help.
>
> John
>
>
> _______________________________________________
> dom4j-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/dom4j-user






_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-user

Reply via email to