xoxomos
asked on
850 'missing objectspace' errors
I'm trying to use Visual Age 4.0 to put togather a bunch of servlets. There is this jar file called jgl3.1.0.jar which when i import into the project, errors go from 5 to 855.
The messages are mostly
'Field type com.objectspace.voyager.ut il.Tokes is missing'
'Superclass com.objectspace.voyager.VO bject missing.'
What do i need to to get the objectspace stuff clean compile.
the code is
import java.io.*;
import java.util.*;
import com.ibm.eNetwork.ECL.*;
import com.objectspace.jgl.*;
/*
* CSUHIBMConnectionBroker -- A broker for IBM 3270 connections.*
* Creates and manages a pool of 3270 connections.
* * At init time the max number of 3270 connections are established * along with timeout limits for age and idleness. *
* Every five minutes the connections are validated. As connections * exceed the maximum idle time they are removed from the connection
* pool. As connections exceed the maximum age they are disconnected * and restarted.
*
*/
public class CSUHIBMConnectionBroker implements Observer, Runnable, CSUHIBMConstants
{
private static final int MAX_NUMBER_OF_CONNECT_ATTE MPTS = 5;
private static final int TIME_TO_WAIT_AFTER_INIT_FA ILS = 10000;
private static final int MILLISECONDS_TO_WAIT_IF_AL L_CONNECTI ONS_ARE_BU SY = 600;
private static final String className = "CSUHIBMConnectionBroker";
private int connsInUse; //
private int minConns; // the minimum number of connections that are allowed
private int maxConns; // the maximum number of connections that are allowed
private long maxConnAge; // the maximum age that a connection can reach
private long maxConnIdleTime; // the maximum time that a connection can be idle
private long checkConnTime; // elapsed time before the connections are checked by the housekeeping thread
private long timeOutValue; //
private Properties connectionProperties; // property object for the CSUHMainframe objects
private MainframeQueue closedQueue; //
private MainframeQueue availableQueue; //
private CSUHAlarm timer; // the CSUHAlarm used to shut off and start registration
private Thread runner; // the housekeeping thread
private String userName; // the user name for the mainframe account
private String passWord; // the password for the mainframe account
private boolean regStatus; //
private boolean forever; //
// see init() method below
private static Properties config = new Properties();
private static File configfile = new File("/ws/csuhcode/csuh.pr operties") ;
private static String selectEnvironment;
private static String debug;
private static CSUHIBMConnectionBroker onlyInstance = null;
class MainframeQueue
{
private Queue baseQueue;
MainframeQueue()
{
baseQueue = new Queue(new Deque());
}
void push(CSUHMainframe ibmMainframe)
{
baseQueue.push(ibmMainfram e);
}
CSUHMainframe pop()
{
return (CSUHMainframe) baseQueue.pop();
}
boolean isEmpty()
{
return baseQueue.isEmpty();
}
int size()
{
return baseQueue.size();
}
void clear()
{
baseQueue.clear();
}
}
} // end of CSUHIBMConnectionBroker
The messages are mostly
'Field type com.objectspace.voyager.ut
'Superclass com.objectspace.voyager.VO
What do i need to to get the objectspace stuff clean compile.
the code is
import java.io.*;
import java.util.*;
import com.ibm.eNetwork.ECL.*;
import com.objectspace.jgl.*;
/*
* CSUHIBMConnectionBroker -- A broker for IBM 3270 connections.*
* Creates and manages a pool of 3270 connections.
* * At init time the max number of 3270 connections are established * along with timeout limits for age and idleness. *
* Every five minutes the connections are validated. As connections * exceed the maximum idle time they are removed from the connection
* pool. As connections exceed the maximum age they are disconnected * and restarted.
*
*/
public class CSUHIBMConnectionBroker implements Observer, Runnable, CSUHIBMConstants
{
private static final int MAX_NUMBER_OF_CONNECT_ATTE
private static final int TIME_TO_WAIT_AFTER_INIT_FA
private static final int MILLISECONDS_TO_WAIT_IF_AL
private static final String className = "CSUHIBMConnectionBroker";
private int connsInUse; //
private int minConns; // the minimum number of connections that are allowed
private int maxConns; // the maximum number of connections that are allowed
private long maxConnAge; // the maximum age that a connection can reach
private long maxConnIdleTime; // the maximum time that a connection can be idle
private long checkConnTime; // elapsed time before the connections are checked by the housekeeping thread
private long timeOutValue; //
private Properties connectionProperties; // property object for the CSUHMainframe objects
private MainframeQueue closedQueue; //
private MainframeQueue availableQueue; //
private CSUHAlarm timer; // the CSUHAlarm used to shut off and start registration
private Thread runner; // the housekeeping thread
private String userName; // the user name for the mainframe account
private String passWord; // the password for the mainframe account
private boolean regStatus; //
private boolean forever; //
// see init() method below
private static Properties config = new Properties();
private static File configfile = new File("/ws/csuhcode/csuh.pr
private static String selectEnvironment;
private static String debug;
private static CSUHIBMConnectionBroker onlyInstance = null;
class MainframeQueue
{
private Queue baseQueue;
MainframeQueue()
{
baseQueue = new Queue(new Deque());
}
void push(CSUHMainframe ibmMainframe)
{
baseQueue.push(ibmMainfram
}
CSUHMainframe pop()
{
return (CSUHMainframe) baseQueue.pop();
}
boolean isEmpty()
{
return baseQueue.isEmpty();
}
int size()
{
return baseQueue.size();
}
void clear()
{
baseQueue.clear();
}
}
} // end of CSUHIBMConnectionBroker
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Have you added the jar to your projects classpath?
ASKER
I've imported the .jar file into the project. I'm assuming Visual Age is including it in the classpath.
If it can't find com.objectspace.jgl then it sounds like the jar is not in your classpath.
ASKER
I'm wondering if
Field type com.objectspace.voyager.ut il.Tokens '
and 'Superclass com.objectspace.voyager.VO bject'
is included in the jgl3.1.0.jar.
I see there is something called voyager at the objectspace website so i'm going to download it now to see if voyager.VObject in there.
Field type com.objectspace.voyager.ut
and 'Superclass com.objectspace.voyager.VO
is included in the jgl3.1.0.jar.
I see there is something called voyager at the objectspace website so i'm going to download it now to see if voyager.VObject in there.
There certainly is a product called Voyager (very nice 2).
Though I doubt that jgl would have any dependencies on it.
You can open a jar with any zip tool if you want to have a look at the contents.
Though I doubt that jgl would have any dependencies on it.
You can open a jar with any zip tool if you want to have a look at the contents.
ASKER
OH!! you mean you don't think i want to import the jar files into the project. Yeah that's a big inprovement when i put them into java12/jre/lib/ext directory.
thanks. I'll probably edit that other question to something completely different.
thanks. I'll probably edit that other question to something completely different.
JGL has some Voyager dependendant classes. If your not using Voyager and you don't use these classes then you shouldn't have a problem.
My importing the jar into VAJ it appears to be going through the entire jar and complaining about the Voyager dependant stuff (which u aren't using).
Another solution would be to remove the voyager dependant classes from the jar.
My importing the jar into VAJ it appears to be going through the entire jar and complaining about the Voyager dependant stuff (which u aren't using).
Another solution would be to remove the voyager dependant classes from the jar.
ASKER
Whoops, forgot to accept comment for answer. I'll have to figure out your last
comment. If I put all the jar files in the ext directory i get 76 errors, down from 1072. If i
then import the jar files except for the jgl jar it goes down to 5 errors. The message is 'Import specifies a type that is not visable com.ibm.eNetwork ECLECLErr'. Maybe when i figure out your last comment
that 'l be it .
thanks
comment. If I put all the jar files in the ext directory i get 76 errors, down from 1072. If i
then import the jar files except for the jgl jar it goes down to 5 errors. The message is 'Import specifies a type that is not visable com.ibm.eNetwork ECLECLErr'. Maybe when i figure out your last comment
that 'l be it .
thanks
No worries.
Thanks for the points :)
Thanks for the points :)
ASKER
;Import refers to a missing package com.objectspace.jgl'