Interesting, and what is javap says? John
2010/4/17 Nirmal Fernando <[email protected]>: > Hi, > On Fri, Apr 16, 2010 at 10:37 PM, Rick Hillegas <[email protected]> > wrote: >> >> Hi Nirmal, >> >> In my classpath, the tools/java jars are included before the Derby jars. >> But I don't think that's significant. If I were debugging this from your >> end, the next experiments I would try would be: >> >> o Try running one of the xalan classes as a java program. If you get a >> ClassNotFoundException, then something is wrong with the classpath. If you >> get an exception complaining that the class doesn't have a main() entry >> point, then the classpath is good. > > I checked for this earlier, it was fine --> Xalan works fine. >> >> o If the first experiment shows that the classpath is good, then start >> looking into why ij is picking up a different classpath than the one you are >> echoing. > > Yes, I think this is the case. I verified this by deleting the classpath > variable (ij was still runnable). > Then I tried issuing following command: > java -cp > C:\OtherNirmal\GSoC\Code\tools\java\xalan.jar;C:\OtherNirmal\GSoC\Code\tools\java\xercesImpl.jar;C:\OtherNirmal\GSoC > \Code\tools\java\serializer.jar;C:\OtherNirmal\GSoC\Code\tools\java\xml-apis.jar > -jar derbyrun.jar ij > but still it gave me the same error; > ERROR XML00: Failed to locate 'Xalan' API or implementation classes. XML > operat > ions are not permitted unless these classes are in your classpath. > I wonder from where ij is picking this classpath variable. > Thanks. >> >> Hope this helps, >> -Rick >> >> Nirmal Fernando wrote: >>> >>> Hi Rick, >>> >>> Thanks for the reply. >>> >>> After added as your suggestion to CLASSPATH, following is the echo: >>> >>> C:\Users\Nirmal>echo %CLASSPATH% >>> >>> C:\OtherNirmal\GSoC\Code\jars\sane\derby.jar;C:\OtherNirmal\GSoC\Code\jars\sane\ >>> >>> derbytools.jar;C:\OtherNirmal\GSoC\Code\jars\sane\derbyrun.jar;C:\OtherNirmal\GS >>> >>> oC\Code\jars\sane\derbynet.jar;C:\OtherNirmal\GSoC\Code\jars\sane\derbyclient.ja >>> >>> r;C:\OtherNirmal\GSoC\Code\jars\sane\derbyTesting.jar;C:\OtherNirmal\GSoC\Code\t >>> >>> ools\java\jakarta-oro-2.0.8.jar;C:\OtherNirmal\GSoC\Code\tools\java\junit.jar;C: >>> >>> \OtherNirmal\GSoC\Code\jars\sane\derbyLocale_cs.jar;C:\OtherNirmal\GSoC\Code\jar >>> >>> s\sane\derbyLocale_de_DE.jar;C:\OtherNirmal\GSoC\Code\jars\sane\derbyLocale_es.j >>> >>> ar;C:\OtherNirmal\GSoC\Code\jars\sane\derbyLocale_fr.jar;C:\OtherNirmal\GSoC\Cod >>> >>> e\jars\sane\derbyLocale_hu.jar;C:\OtherNirmal\GSoC\Code\jars\sane\derbyLocale_it >>> >>> .jar;C:\OtherNirmal\GSoC\Code\jars\sane\derbyLocale_ja_JP.jar;C:\OtherNirmal\GSo >>> >>> C\Code\jars\sane\derbyLocale_ko_KR.jar;C:\OtherNirmal\GSoC\Code\jars\sane\derbyL >>> >>> ocale_pl.jar;C:\OtherNirmal\GSoC\Code\jars\sane\derbyLocale_pt_BR.jar;C:\OtherNi >>> >>> rmal\GSoC\Code\jars\sane\derbyLocale_ru.jar;C:\OtherNirmal\GSoC\Code\jars\sane\d >>> >>> erbyLocale_zh_CN.jar;C:\OtherNirmal\GSoC\Code\jars\sane\derbyLocale_zh_TW.jar;C: >>> >>> \OtherNirmal\GSoC\Code\tools\java\xalan.jar;C:\OtherNirmal\GSoC\Code\tools\java\ >>> >>> xercesImpl.jar;C:\OtherNirmal\GSoC\Code\tools\java\serializer.jar;C:\OtherNirmal >>> >>> \GSoC\Code\tools\java\xml-apis.jar;C:\OtherNirmal\GSoC\Code\tools\java\xsltc.jar >>> >>> >>> ij version 10.6 >>> ij> CONNECT 'jdbc:derby:nirmal;create=false'; >>> ij> create table t4 ( a xml ); >>> 0 rows inserted/updated/deleted >>> ij> insert into t4 ( a ) values ( xmlparse( document '<?xml version="1.0" >>> encodi >>> ng="UTF-8"?> <!DOCTYPE xsl:stylesheet [<!ENTITY nbsp " ">]> >>> <?xml-styleshee >>> t href="z_files/global.css" type="text/css"?> <html id="feedHandler" >>> xmlns="http >>> ://www.w3.org/1999/xhtml <http://www.w3.org/1999/xhtml>" >>> xmlns:xul="http://www.mozilla.org/keymaster/gatekeepe >>> r/there.is.only.xul"> <head> <meta http-equiv="content-type" >>> content="text/htm >>> l; /> <title>Derby 10.6.1 Fixed Bugs List (ASF JIRA)</title> >>> <link rel="stylesheet" href="z_files/subscribe.css" type="text/css" >>> media=" >>> all" /> <script type="application/x-javascript" >>> src="z_files/subscribe.js">< >>> /script> </head></html>' preserve whitespace ) ); >>> >>> >>> ERROR XML00: Failed to locate 'Xalan' API or implementation classes. XML >>> operat >>> ions are not permitted unless these classes are in your classpath. >>> >>> Can you see any mistake in CLASSPATH? If it is correct, what can be the >>> reason? >>> >>> >>> Thanks. >>> >>> -- >>> Best Regards, >>> Nirmal >>> >>> C.S.Nirmal J. Fernando >>> Department of Computer Science & Engineering, >>> Faculty of Engineering, >>> University of Moratuwa, >>> Sri Lanka. >> > > > > -- > Best Regards, > Nirmal > > C.S.Nirmal J. Fernando > Department of Computer Science & Engineering, > Faculty of Engineering, > University of Moratuwa, > Sri Lanka. >
