-----Urspr�ngliche Nachricht-----
Von: Christian Hummer (MADIBA)
[mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 28. Juli 2000 08:37
An: [EMAIL PROTECTED]
Betreff: AW: EJBServer errors


Hi Martyn,

I got this error a couple of days ago...
in the <jonas.properties> file I specified the following entry:

jonas.datasources               orcl.properties

This led to problems when starting up the server and building the datasource
(NullPointerException)

I solved the problem by using the following entry instead:

jonas.datasources               orcl

i.e., do not specify the extension (�.properties�)

regards,
christian

-----Urspr�ngliche Nachricht-----
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]Im Auftrag von Martyn Wilson
Gesendet: Donnerstag, 27. Juli 2000 23:32
An: [EMAIL PROTECTED]
Betreff: EJBServer errors


I have tried again to set up JONAS to run the examples.

Now I get this:

bash-2.03# EJBServer &
[2] 1282
bash-2.03# JOnAS Server, version 2.0, running on rmi.
 Cannot create ConnectionManager for null
JOnAS: Cannot start DataBase Manager
java.lang.NullPointerException
        at java.util.Hashtable.put(Compiled Code)
        at
org.objectweb.jonas.dbm.ConnectionManager.setDataSourceName(Connectio
nManager.java:548)
        at
org.objectweb.jonas.dbm.DataBaseManager.createConnectionManager(DataB
aseManager.java:114)
        at
org.objectweb.jonas.dbm.DataBaseManager.createConnectionManagers(Comp
iled Code)
        at org.objectweb.jonas.server.Server.main(Server.java:100)

[2]+  Exit 2                  EJBServer

Here is my jonas.properties file in the $JONAS_ROOT/examples/src/eb
directory:

jonas.beans.descriptors       ejb-jar.xml

jonas.datasources               PostgreSQL.properties

Here is my jndi.properties file:

###################### JNDI configuration
# Please refer to the JNDI documentation for further details.
# You must adapt <hostname> and maybe the port number (1099 by default)
# depending on your configuration.

# If you use Jeremie only
#java.naming.factory.initial
org.objectweb.jeremie.libs.services.registry.jnd
i.JRMIInitialContextFactory
#java.naming.provider.url       jrmi://<hostname>:1099

# if you use rmi only
java.naming.factory.initial
com.sun.jndi.rmi.registry.RegistryContextFactory
java.naming.provider.url        rmi://63.77.18.10:1099

# In both cases
java.naming.factory.url.pkgs    org.objectweb.jonas.naming

Here is my $CLASSPATH after running config.env and using XTRA_CLASSPTH:

bash-2.03# echo $CLASSPATH
/usr/local/jonas_jdk1.2:/usr/local/jonas_jdk1.2/PostgreSQL.properties:/usr/l
ocal

/j2sdkee1.2.1/lib/j2ee.jar:/usr/local/jonas_jdk1.2/examples/classes:/usr/loc
al/l

ib/jndi.jar:/usr/local/lib/providerutil.jar:/usr/local/lib/rmiregistry.jar:/
usr/

local/lib/ejb.jar:/usr/local/lib/jta-spec1_0_1.jar:/usr/local/lib/jdbc2_0-st
dext

.jar:/usr/local/jonas_jdk1.2/lib/RMI_jonas.jar

Where I am I going wrong?

----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".

----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".

Reply via email to