[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[xmlblaster] Re: xmlblaster and jdk 1.1.8



Mate Hollai wrote:
Hi there,



I'm currently testing xmlBlaster.

I need the client to run on JDK 1.1.8, and it doesnt seem to.



I seem to remeber reading in the doc's that it should be jdk 1.1.7 compatible (the client that is).



I've successfully compiled the xmlBlaster\demo\ClientSub.java as follows:



C:\jdk1.1.8\bin>javac -classpath "\jdk1.3.1\xmlBlaster\lib\jutils.jar;\jdk1.3.1\xmlBlaster\lib\xmlBlaster.jar;\jdk1.1.8\lib\classes.zip" \jdk1.3.1\xmlBlaster\demo\javaclients\ClientSub.java



and run it as follows:



C:\jdk1.1.8\bin>java -classpath "\jdk1.3.1\xmlBlaster\demo;\jdk1.3.1\xmlBlaster\lib\jutils.jar;\jdk1.3.1\xmlBlaster\lib\xmlBlaster.jar;\jdk1.1.8\lib\classes.zip;\jdk1.3.1\xmlBlaster\lib\parser.jar;\jdk1.3.1\xmlBlaster\lib\collections.jar;\jdk1.3.1\xmlBlaster\lib\xtdash.jar" javaclients.ClientSub





The following is the output :



Property: filenName=xmlBlaster.properties, scanSystemProperties=true, args=[0], replaceVariables=true
Property: File 'xmlBlaster.properties' is not in current directory C:\jdk1.1.8\bin
Property: File 'xmlBlaster.properties' is not in PROJECT_HOME, 'java -DPROJECT_HOME=...' is not set ...
Property: File 'xmlBlaster.properties' is not in user.home directory C:\
Property: File 'xmlBlaster.properties' is not in CLASSPATH
Property: File 'xmlBlaster.properties' is not in java.home/lib/ext directory null
Property: File 'xmlBlaster.properties' is not in java.home directory c:\jdk1.3.1\
Property: File 'xmlBlaster.properties' is not in directory \jutils\
Property: File 'xmlBlaster.properties' not found
Property: Please copy xmlBlaster.properties to your home directory. We continue with default settings.
Property: No property file given.
7/02/2002 15:40:52 INFO Log: XmlBlaster logging subsystem configured
7/02/2002 15:40:52 INFO Log: XmlBlaster logging switched
7/02/2002 15:40:52 INFO XmlBlasterConnection: Using 'client.protocol=IOR' to access xmlBlaster
java.lang.NoSuchMethodError: java.lang.System: method setProperty(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; not found
at org.xmlBlaster.client.protocol.corba.CorbaConnection.<init>(CorbaConnection.java:118)
at org.xmlBlaster.client.protocol.XmlBlasterConnection.initDriver(XmlBlasterConnection.java:267)
at org.xmlBlaster.client.protocol.XmlBlasterConnection.<init>(XmlBlasterConnection.java:191)
at javaclients.ClientSub.<init>(ClientSub.java:63)
at javaclients.ClientSub.main(ClientSub.java:201)






and when I checked the java api (for 1.1.x) I found it doesn't implement the java.lang.System: method setProperty .



So, is the problem that:

1) the java client isn't compatible with jdk 1.1.8 or

2) am I doing something wrong. (ie using wrong jars)



By the way when I did exactly the same procedure (but with jdk 1.1.3) it all worked nicely.



Thanks for any help,

Mate


Hi Mate,

you are right, the client classes didn't work with JDK 1.1x anymore.

I have changed this in the current cvs, please do a cvs checkout.

Then do a

build.bat all
  -> compiles everything

build.bat -DADD_COLLECTION=true dist-client
  -> creates a dist-client/lib/xmlBlasterClient.jar

You can switch on/off which jar files are included for the client
see usage with 'build.bat usage'.


Start the xmlBlaster server and then a client:


java -classpath ${JAVA_HOME}/lib/classes.zip:dist-client/lib/xmlBlasterClient.jar:lib/jaxp.jar:lib/parser.jar javaclients.ClientSub -client.protocol XML-RPC



which runs fine with JDK 1.1.8 here with xmlrpc!


Note that using CORBA (-client.protocol IOR) or RMI (-client.protocol RMI) does not work. I have posted this issue to the JacORB mailing list.

The RMI problem i haven't tracked down.

thanks for reporting the problem,

Marcel











--
Marcel Ruff
mailto:ruff at swand.lake.de
http://www.lake.de/home/lake/swand/
http://www.xmlBlaster.org