[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: xmlBlaster 0.7.9 does not compile
Douglas Dickinson wrote:
>
> Some more investigation from the stack traces in my previous
> message reveal that org.xmlBlaster.util.SaxHandlerBase.java,
> at line 88 in method parse(), is calling a method of
> javax.xml.parsers.SAXParser that DOES NOT EXIST!!
> (getXMLReader())
>
> javax.xml.parsers.SAXParser comes from jaxp.jar
Hi Douglas,
with my CLASSPATH i get following result:
javap javax.xml.parsers.SAXParser
...
Compiled from SAXParser.java
public abstract class javax.xml.parsers.SAXParser extends
java.lang.Object {
...
public abstract org.xml.sax.XMLReader getXMLReader() throws
org.xml.sax.SAXException;
...
The returned SAXParser from SAXParserFactory.newSAXParser()
returns a valid implementation of getXMLReader().
Are you sure your CLASSPATH is correct (no other jaxp/parser in front
of the one delivered with xmlBlaster) ?
This looks like a CLASSPATH problem.
Have you hanging around some other jaxp/parser in $JAVA_HOME/jre/lib
or $JAVA_HOME/jre/lib/ext ??
To compile this should work (even with an empty CLASSPATH
'unset CLASSPATH'):
cd $XMLBLASTER_HOME
build.sh all
I am running Linux and JDK 1.3 as well.
Hope it helps,
best regards,
Marcel
>
> I have tried running both with the jaxp.jar that comes with
> xmlBlaster, as well as a freshly downloaded copy of Sun's
> jaxp v1.1 reference implementation. Both throw the error.
>
> So I thought that I would rebuild xmlBlaster.jar from the
> distributed source code...
>
> It doesn't even compile!!!
> There are 3 errors, two of which are the non-existant method
> mentioned above. (compile output below)
>
> I have tried to compile it both with the provided jaxp.jar,
> as well as with sun's jaxp.jar (v1.1)
> I hava also tried to compile it using build.sh, ant, and
> (as a last ditch attempt) find src -name *.java -exec javac {} \;
> ... all produced exactly the same compile errors:
>
> ddd at moria 1061 ~/xmlBlaster $ find src -name *.java -exec javac {} \;
> src/java/org/xmlBlaster/engine/persistence/mudb/dom/XmlToDom.java:193:
> cannot resolve symbol
> symbol : method getXMLReader ()
> location: class javax.xml.parsers.SAXParser
> XMLReader parser = sp.getXMLReader();
> ^
> 1 error
> src/java/org/xmlBlaster/protocol/jdbc/XmlDBAdapter.java:225: cannot resolve
> symbol
> symbol : method setIgnoringComments (boolean)
> location: class javax.xml.parsers.DocumentBuilderFactory
> factory.setIgnoringComments(false);
> ^
> 1 error
> src/java/org/xmlBlaster/util/SaxHandlerBase.java:88: cannot resolve symbol
> symbol : method getXMLReader ()
> location: class javax.xml.parsers.SAXParser
> XMLReader parser = sp.getXMLReader();
> ^
> 1 error
>
> I have to make a go/no-go decision on this technology tomorrow.
> Too bad, I thought that xmlBlaster would have met our needs.
>
> DouglasDD
> --
> Douglas D. Dickinson =^..^= ddd at taralnetworks.com
>
> -----Original Message-----
> From: owner-xmlblaster at xmlBlaster.org
> [mailto:owner-xmlblaster at xmlBlaster.org]On Behalf Of Douglas D.
> Dickinson
> Sent: Wednesday, May 02, 2001 1:53 PM
> To: xmlblaster at server.xmlBlaster.org
> Subject: "install in 30 seconds" gives NoSuchMethodError
>
> Can anyone tell me what I'm doing wrong that prevents me from even running
> the "INSTALLATION IN 30 SECONDS" example?
> (from the INSTALL doc)
>
> When starting the server it throws the following error:
>
> May 2, 2001 12:52:40 PM ERROR Main.java:204-Main:
> java.lang.NoSuchMethodError
> java.lang.NoSuchMethodError
> at org.xmlBlaster.util.SaxHandlerBase.parse(SaxHandlerBase.java:88)
> at org.xmlBlaster.util.SaxHandlerBase.init(SaxHandlerBase.java:70)
> at
> org.xmlBlaster.authentication.ClientQoS.<init>(ClientQoS.java:49)
> at
> org.xmlBlaster.authentication.Authenticate.login(Authenticate.java:109)
> at
> org.xmlBlaster.protocol.jdbc.JdbcDriver.login(JdbcDriver.java:152)
> at org.xmlBlaster.protocol.jdbc.JdbcDriver.init(JdbcDriver.java:99)
> at org.xmlBlaster.Main.loadDriver(Main.java:246)
> at org.xmlBlaster.Main.loadDrivers(Main.java:198)
> at org.xmlBlaster.Main.init(Main.java:122)
> at org.xmlBlaster.Main.<init>(Main.java:100)
> at org.xmlBlaster.Main.main(Main.java:462)
>
> Any help that you can provide is greatly appreciated!
>
> Lots of details follow:
>
> I'm using:
> xmlBlaster-0.7.9b.tgz
> Sun JDK 1.3.0
> Linux 2.2.18 (x86)
>
> Modifications made to $HOME/xmlBlater.properties:
> NONE
>
> Modifications made to $HOME/jacorb.properties:
> Changed
> ORBInitRef.NameService=file:///tmp/NS
> Commented-out:
> ## jacorb.ImplementationRepositoryURL=http://www.x.y.z/~user/ImR_Ref
> ## jacorb.ProxyServerURL=http://www.x.y.z/~user/Appligator_Ref
>
> First, I run the nameserver
>
> ddd at moria 1000 ~ $ export XMLBLASTER_HOME=/home/ddd/xmlBlaster
> ddd at moria 1001 ~ $ export JUTILS_HOME=${XMLBLASTER_HOME}
> ddd at moria 1002 ~ $ source ${XMLBLASTER_HOME}/.bashrc
> ...
> ddd at moria 1020 ~ $ ${XMLBLASTER_HOME}/bin/ns /tmp/NS
> [ POA RootPOA - ready ]
> [ POA NameServer-POA - ready ]
> ...(later output)...
> [ Accepted connection from 10.0.2.27:3672 ]
> [ Bound name: xmlBlaster-Authenticate.MOM ]
>
> Next, I start the server (throws the error):
>
> ddd at moria 1000 ~ $ export XMLBLASTER_HOME=/home/ddd/xmlBlaster
> ddd at moria 1001 ~ $ export JUTILS_HOME=${XMLBLASTER_HOME}
> ddd at moria 1002 ~ $ source ${XMLBLASTER_HOME}/.bashrc
> Welcome to xmlBlaster.org
> Using XMLBLASTER_HOME=/home/ddd/xmlBlaster
> Using JacORB_HOME=/home/ddd/xmlBlaster
> If you want to use the C++ MICO client, set the MICO_HOME environment
> variable
> Example: 'export MICO_HOME=/usr/local/mico'
> You choosed to use the C++ MICO client but forgot to set MICO_VER
> Example: export MICO_VER='2.3.1'
> Could not find the MICO library. Check MICO_HOME & MICO_VER
> corba for java: jacorb
> corba for c++ : mico
> c++ classes not activated. If you want to compile them
> please set USE_CPP=true
> ddd at moria 1003 ~ $ cd ${XMLBLASTER_HOME}
> ddd at moria 1004 ~/xmlBlaster $
> ddd at moria 1004 ~/xmlBlaster $ java -jar lib/xmlBlaster.jar
> Property: filenName=xmlBlaster.properties, scanSystemProperties=true,
> args=[0], replaceVariables=true
> Property: File 'xmlBlaster.properties' is not in current directory
> /home/ddd/xmlBlaster
> Property: File 'xmlBlaster.properties' is not in PROJECT_HOME,
> 'java -DPROJECT_HOME=...' is not set ...
> Property: Loading xmlBlaster.properties from directory /home/ddd
> Property: Loaded file xmlBlaster.properties
> Property: Replacing 'Persistence.Path=${user.home}${file.separator}tmp' to
> '/home/ddd/tmp'
> May 2, 2001 12:52:37 PM INFO Log: XmlBlaster logging subsystem configured
> May 2, 2001 12:52:37 PM INFO Log: XmlBlaster logging switched
> May 2, 2001 12:52:38 PM INFO RequestBroker: Loaded persistence driver
> org.xmlBlaster.engine.persistence.filestore.FileDriver
> May 2, 2001 12:52:38 PM INFO FileDriver: Successfully got 0 stored
> message-oids from /home/ddd/tmp
> May 2, 2001 12:52:38 PM INFO Main: Found 'IOR' driver
> 'org.xmlBlaster.protocol.corba.CorbaDriver'
> [ POA RootPOA - ready ]
> [ POA xmlBlaster-POA - ready ]
> May 2, 2001 12:52:39 PM INFO CorbaDriver: Published AuthServer IOR on
> 10.0.2.27:7609
> [ New connection to 10.0.2.27:3650 ]
> May 2, 2001 12:52:39 PM INFO CorbaDriver: Published AuthServer IOR to
> naming service
> May 2, 2001 12:52:39 PM INFO Main: Found 'RMI' driver
> 'org.xmlBlaster.protocol.rmi.RmiDriver'
> May 2, 2001 12:52:39 PM INFO XmlBlasterSecurityManager: Using security
> policy file:/home/ddd/xmlBlaster/lib/xmlBlaster.jar!/xmlBlaster.policy,
> found it in your CLASSPATH.
> May 2, 2001 12:52:39 PM INFO RmiDriver: Started RMI registry on port 1099
> May 2, 2001 12:52:40 PM INFO RmiDriver: Bound authentication RMI server to
> registry with name 'rmi://moria.taralnetworks.com:1099/I_AuthServer'
> May 2, 2001 12:52:40 PM INFO RmiDriver: Bound xmlBlaster RMI server to
> registry with name 'rmi://moria.taralnetworks.com:1099/I_XmlBlaster'
> May 2, 2001 12:52:40 PM INFO RmiDriver: Started successfully RMI driver.
> May 2, 2001 12:52:40 PM INFO Main: Found 'XML-RPC' driver
> 'org.xmlBlaster.protocol.xmlrpc.XmlRpcDriver'
> May 2, 2001 12:52:40 PM INFO XmlRpcDriver: Started successfully XML-RPC
> driver, access url=http://moria.taralnetworks.com:8080/
> May 2, 2001 12:52:40 PM INFO Main: Found 'JDBC' driver
> 'org.xmlBlaster.protocol.jdbc.JdbcDriver'
> May 2, 2001 12:52:40 PM INFO JdbcDriver: Jdbc driver
> 'sun.jdbc.odbc.JdbcOdbcDriver' loaded.
> Exception found location=Main.java:204
> May 2, 2001 12:52:40 PM ERROR Main.java:204-Main:
> java.lang.NoSuchMethodError
> java.lang.NoSuchMethodError
> at org.xmlBlaster.util.SaxHandlerBase.parse(SaxHandlerBase.java:88)
> at org.xmlBlaster.util.SaxHandlerBase.init(SaxHandlerBase.java:70)
> at
> org.xmlBlaster.authentication.ClientQoS.<init>(ClientQoS.java:49)
> at
> org.xmlBlaster.authentication.Authenticate.login(Authenticate.java:109)
> at
> org.xmlBlaster.protocol.jdbc.JdbcDriver.login(JdbcDriver.java:152)
> at org.xmlBlaster.protocol.jdbc.JdbcDriver.init(JdbcDriver.java:99)
> at org.xmlBlaster.Main.loadDriver(Main.java:246)
> at org.xmlBlaster.Main.loadDrivers(Main.java:198)
> at org.xmlBlaster.Main.init(Main.java:122)
> at org.xmlBlaster.Main.<init>(Main.java:100)
> at org.xmlBlaster.Main.main(Main.java:462)
> May 2, 2001 12:52:40 PM INFO Main: Total memory allocated = 2.31 MBytes.
> Free memory available = 1.382 MBytes.
> May 2, 2001 12:52:40 PM INFO Main:
> ###########################################
> May 2, 2001 12:52:40 PM INFO Main: # xmlBlaster 0.79+ is ready for requests
> #
> May 2, 2001 12:52:40 PM INFO Main: # press <?> and <enter> for options
> #
> May 2, 2001 12:52:40 PM INFO Main:
> ###########################################
>
> Then I run the client (which fails):
>
> ddd at moria 1000 ~ $ export XMLBLASTER_HOME=/home/ddd/xmlBlaster
> ddd at moria 1001 ~ $ export JUTILS_HOME=${XMLBLASTER_HOME}
> ddd at moria 1002 ~ $ source ${XMLBLASTER_HOME}/.bashrc
> Welcome to xmlBlaster.org
> Using XMLBLASTER_HOME=/home/ddd/xmlBlaster
> Using JacORB_HOME=/home/ddd/xmlBlaster
> If you want to use the C++ MICO client, set the MICO_HOME environment
> variable
> Example: 'export MICO_HOME=/usr/local/mico'
> You choosed to use the C++ MICO client but forgot to set MICO_VER
> Example: export MICO_VER='2.3.1'
> Could not find the MICO library. Check MICO_HOME & MICO_VER
> corba for java: jacorb
> corba for c++ : mico
> c++ classes not activated. If you want to compile them
> please set USE_CPP=true
> ddd at moria 1003 ~ $ cd ${XMLBLASTER_HOME}
> ddd at moria 1004 ~/xmlBlaster $ java -classpath lib/xmlBlaster.jar
> javaclients.ClientSub
> Property: filenName=xmlBlaster.properties, scanSystemProperties=true,
> args=[0], replaceVariables=true
> Property: File 'xmlBlaster.properties' is not in current directory
> /home/ddd/xmlBlaster
> Property: File 'xmlBlaster.properties' is not in PROJECT_HOME,
> 'java -DPROJECT_HOME=...' is not set ...
> Property: Loading xmlBlaster.properties from directory /home/ddd
> Property: Loaded file xmlBlaster.properties
> Property: Replacing 'Persistence.Path=${user.home}${file.separator}tmp' to
> '/home/ddd/tmp'
> May 2, 2001 1:10:17 PM INFO Log: XmlBlaster logging subsystem configured
> May 2, 2001 1:10:17 PM INFO Log: XmlBlaster logging switched
> May 2, 2001 1:10:17 PM INFO XmlBlasterConnection: Using
> 'client.protocol=IOR' to access xmlBlaster
> [ POA RootPOA - ready ]
> May 2, 2001 1:10:19 PM INFO CorbaCallbackServer-ClientSub: Success, created
> CORBA callback server for ClientSub
> May 2, 2001 1:10:19 PM INFO CorbaConnection-ClientSub: Accessing xmlBlaster
> AuthServer IOR using builtin http connection, host 10.0.2.27 and port 7609
> [ New connection to 10.0.2.27:3671 ]
> Exception found location=ClientSub.java:162
> May 2, 2001 1:10:19 PM ERROR ClientSub.java:162-ClientSub: Client failed:
> org.omg.CORBA.UNKNOWN: minor code: 0 completed: No
> May 2, 2001 1:10:19 PM INFO ClientSub: Good bye
> Total memory allocated = 2.31 MBytes. Free memory available = 1.515 MBytes.
> There were 1 ERRORS and 0 WARNINGS
> ddd at moria 1005 ~/xmlBlaster $
>
> Which generates the following output/error on the server:
>
> ...
> [ Closing connection to 10.0.2.27:3670 ]
> ...
> [ Accepted connection from 10.0.2.27:3679 ]
> May 2, 2001 1:10:19 PM INFO AuthServerImpl: Trying login for ClientSub
> [ POA RootPOA - rid: 0 oid: 00 10 1E 48 23 17 38 38 01 2A 41 opname:
> login - in
> vocation: throwable was thrown ]
> ############################ StackTrace ############################
> java.lang.NoSuchMethodError
> at org.xmlBlaster.util.SaxHandlerBase.parse(SaxHandlerBase.java:88)
> at org.xmlBlaster.util.SaxHandlerBase.init(SaxHandlerBase.java:70)
> at
> org.xmlBlaster.authentication.ClientQoS.<init>(ClientQoS.java:49)
> at
> org.xmlBlaster.authentication.Authenticate.login(Authenticate.java:10
> 9)
> at
> org.xmlBlaster.protocol.corba.AuthServerImpl.login(AuthServerImpl.jav
> a:157)
> at
> org.xmlBlaster.protocol.corba.authenticateIdl.AuthServerPOATie.login(
> AuthServerPOATie.java:45)
> at
> org.xmlBlaster.protocol.corba.authenticateIdl.AuthServerPOA._invoke(A
> uthServerPOA.java:61)
> at
> jacorb.poa.RequestProcessor.invokeOperation(RequestProcessor.java:206
> )
> at jacorb.poa.RequestProcessor.process(RequestProcessor.java:401)
> at jacorb.poa.RequestProcessor.run(RequestProcessor.java:510)
> ####################################################################
> [ Closing connection to 10.0.2.27:3679 ]
>
> My Other Environment Settings (after sourcing ${XMLBLASTER_HOME}/.bashrc):
>
> JAVA_HOME=/tools/java/sun-jdk1.3.0
>
> XMLBLASTER_HOME=/home/ddd/xmlBlaster
>
> JUTILS_HOME=/home/ddd/xmlBlaster
>
> IDL2JAVA='/home/ddd/xmlBlaster/bin/idl -p org.xmlBlaster.protocol.corba'
>
> JacORB_HOME=/home/ddd/xmlBlaster
>
> JacORB_LIB=/home/ddd/xmlBlaster/lib
>
> JACO_EXE=/home/ddd/xmlBlaster/bin/jaco
>
> JACO_BIN=/home/ddd/xmlBlaster/bin
>
> CLASSPATH=/home/ddd/xmlBlaster/lib/jacorb.jar:
> /home/ddd/xmlBlaster/lib/idl.jar:
> /home/ddd/xmlBlaster/demo:
> /home/ddd/xmlBlaster/classes:
> /home/ddd/xmlBlaster/src/java:
> /home/ddd/xmlBlaster/lib/xmlBlaster.jar:
> /home/ddd/xmlBlaster/lib/ejb2.0.jar:
> /home/ddd/xmlBlaster/lib/jms.jar:
> /home/ddd/xmlBlaster/lib/jta-spec1_0_1.jar:
> /home/ddd/xmlBlaster/lib/jaas.jar:
> /home/ddd/xmlBlaster/lib/connector.jar:
> /home/ddd/xmlBlaster/lib/xmlrpc.jar:
> /home/ddd/xmlBlaster/lib/gnu-regexp-1.0.8.jar:
> /home/ddd/xmlBlaster/lib/servlet.jar:
> /home/ddd/xmlBlaster/lib/test.jar:
> /home/ddd/xmlBlaster/lib/omquery.jar:
> /home/ddd/xmlBlaster/lib/xtdash.jar:
> /home/ddd/xmlBlaster/lib/jaxp.jar:
> /home/ddd/xmlBlaster/lib/parser.jar:
> /tools/java/lib/junit3.5/junit.jar:
> /tools/java/lib/berkeley-db-3.1.17/classes:
> /home/ddd/xmlBlaster/lib/jndi-jdk1_3_1.jar
>
> PATH=/home/ddd/xmlBlaster/bin:
> /tools/java/sun-jdk1.3.0/bin:
> /tools/pkg/ant/bin:
> /tools/pkg/qt/bin:
> /tools/bin:
> /tools/sbin:
> /usr/kerberos/bin:
> /usr/local/bin:
> /bin:
> /usr/bin:
> /usr/X11R6/bin:
> /home/ddd/apps/bdb/bin:
> /home/ddd/bin:
> /home/ddd/apps/bdb/bin:
> /home/ddd/xmlBlaster/bin:
> /home/ddd/xmlBlaster/testsuite/bin:
> /bin
>
> Any help greatly appreciated,
> DouglasDD
> --
> --
> Douglas D. Dickinson =^..^= ddd at taralnetworks.com
--
Marcel Ruff
mailto:ruff at swand.lake.de
http://www.lake.de/home/lake/swand/
http://www.xmlBlaster.org