----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

Try Vector.addElement(). According do the docs, "As of JDK1.2, this class
has been retrofitted to implement List", which includes the add() method.
Prior to 1.2, addElement() was the only way to add an element to a Vector.

Hope this helps,
David

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Bob Berman
Sent: Wednesday, January 05, 2000 8:26 PM
To: Java Apache Users
Subject: why NoSuchMethod all of a sudden?


----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

I have been using Apache JServ for a while and it was working fine
for a while. Before, I had JDK 1.2 installed, but I have recently
downgrade to IBM 1.1.8 in an effort to get Weblogic working. I use
Weblogic for EJBs and JServ for servlets which simply generate HTML,
as usual.

I thought I had covered all my conf files with a fine tooth comb, but
I guess there must be somewhere out there, a reference to JDK 1.2 still.

Here's what's in my Apache 1.3.9 error_log:

java.lang.NoSuchMethodError: java.util.Vector: method
add(Ljava/lang/Object;)Z not found
        at org.apache.jserv.JServConnection.processRequest(Compiled Code)
        at org.apache.jserv.JServConnection.run(Compiled Code)
        at java.lang.Thread.run(Compiled Code)
java.lang.NoSuchMethodError: java.util.Vector: method
add(Ljava/lang/Object;)Z not found
        at org.apache.jserv.JServConnection.processRequest(Compiled Code)
        at org.apache.jserv.JServConnection.run(Compiled Code)
        at java.lang.Thread.run(Compiled Code)

I thought java.util.Vector was a standard class in classes.jar?
And I can see the class if I "jar tvf classes.jar" in $JDK_HOME/lib.

Is Vector.add(Object) a 1.2 method only? If so, how do I convince Jserv
to use JDK 1.1.8 now?

Here's my configure deal:

./configure                                     \
        --with-apache-src=/src/apache_1.3.9     \
        --prefix=/usr/local/jserv               \
        --with-jdk-home=/usr/local/java         \
        --with-JSDK=/usr/local/JSDK2.0

/usr/local/java is definitely 1.1.8

I am using Apache Jserv-20050105 from working_dogs. I think my EJBs are
OK, as I can get data from them using a simple text client. In addition, the
whole setup works great at work under both HP-UX and Solaris 2.6. Only Linux
has been a bear to get working. Any ideas or pointers?

Thanks....



--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]



--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to