Your jndi.properties file has one line uncommented from the Jeremie section
and one line uncommented from the RMI section. Can't mix and match like
that. Pick one or the other.



----- Original Message -----
From: "Kemp Randy-W18971" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 01, 2001 12:23 PM
Subject: Problem with Jeremie in Jonas 2.2.6 (RMI fine)


> I am trying to use Jeremie instead of RMI for the EB examples in the
installation guide, but I am getting an error (everything works fine for
RMI).  What did I not do or what is wrong (Windows 2000 and JDK 1.3)?
>
> --------------------->1. Line in config_env.bat
<-------------------------------------------------------
>
> Set OBJECTWEB_ORB=JEREMIE
>
> ----------------------->2. Lines in
jndi.properties<------------------------------------------------------------
----------------
>
> # If you use Jeremie only
> #java.naming.factory.initial
org.objectweb.jeremie.libs.services.registry.jndi.JRMIInitialContextFactory
> #java.naming.provider.url jrmi://<hostname>:12340
> java.naming.provider.url jrmi://localhost:12340
>
>
> # if you use rmi only
> java.naming.factory.initial
com.sun.jndi.rmi.registry.RegistryContextFactory
> # java.naming.provider.url rmi://<hostname>:1099
> # java.naming.provider.url rmi://localhost:1099
>
>
> # In both cases
> java.naming.factory.url.pkgs org.objectweb.jonas.naming
>
> -----------------------> 3. Registry startup
<-------------------------------
>
>
D:\JavaServletProducts\jonas226\JONAS\bin\nt>java -Djava.security.policy=D:\
Java
> ServletProducts\jonas226\JONAS\java.policy
org.objectweb.jeremie.libs.services.r
> egistry.JRMIRegistry 23456789
> Jeremie Registry started
>
> --------------> 4. Attempting to start EB server (server starts fine with
RMI settings):  <--------------
>
> Microsoft Windows 2000 [Version 5.00.2195]
> (C) Copyright 1985-1999 Microsoft Corp.
>
> H:\>d:
>
> D:\>cd javaservletproducts
>
> D:\JavaServletProducts>cd jonas226
>
> D:\JavaServletProducts\jonas226>cd jonas
>
> D:\JavaServletProducts\jonas226\JONAS>cd examples
>
> D:\JavaServletProducts\jonas226\JONAS\examples>cd src
>
> D:\JavaServletProducts\jonas226\JONAS\examples\src>cd ejb
> The system cannot find the path specified.
>
> D:\JavaServletProducts\jonas226\JONAS\examples\src>cd eb
>
> D:\JavaServletProducts\jonas226\JONAS\examples\src\eb>EJBServer
>
>
D:\JavaServletProducts\jonas226\JONAS\examples\src\eb>java -Dinstall.root=D:
\Jav
>
aServletProducts\jonas226\JONAS -Djava.security.policy=D:\JavaServletProduct
s\jo
> nas226\JONAS\java.policy          org.objectweb.jonas.server.Server
> JOnAS Server, version 2.2.6, running on Jeremie.
> Exception in thread "main" java.lang.IllegalArgumentException:
rmiURLContext: na
> me is not an RMI URL: jrmi://localhost:12340
>         at
com.sun.jndi.url.rmi.rmiURLContext.getRootURLContext(rmiURLContext.ja
> va:53)
>         at
com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.j
> ava:185)
>         at
com.sun.jndi.url.rmi.rmiURLContextFactory.getUsingURL(rmiURLContextFa
> ctory.java:57)
>         at
com.sun.jndi.url.rmi.rmiURLContextFactory.getObjectInstance(rmiURLCon
> textFactory.java:42)
>         at
com.sun.jndi.rmi.registry.RegistryContextFactory.URLToContext(Registr
> yContextFactory.java:88)
>         at
com.sun.jndi.rmi.registry.RegistryContextFactory.getInitialContext(Re
> gistryContextFactory.java:55)
>         at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
> 68)
>         at
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246
> )
>         at javax.naming.InitialContext.init(InitialContext.java:222)
>         at javax.naming.InitialContext.<init>(InitialContext.java:178)
>         at
org.objectweb.jonas.naming.NamingManager.<init>(NamingManager.java:72
> )
>         at
org.objectweb.jonas.naming.NamingManager.getInstance(NamingManager.ja
> va:96)
>         at org.objectweb.jonas.server.Server.main(Server.java:104)
> D:\JavaServletProducts\jonas226\JONAS\examples\src\eb>
>
> -------------------------> 5.  machine settings
<-----------------------------------------------
>
>         at org.objectweb.jonas.server.Server.main(Server.java:104)
> D:\JavaServletProducts\jonas226\JONAS\examples\src\eb>set
> ALLUSERSPROFILE=D:\Profiles\All Users
> APPDATA=D:\Profiles\w18971\Application Data
>
CLASSPATH=D:\javajarfiles\idb.jar;D:\javajarfiles\jta-spec1_0_1.jar;D:\javaj
arfi
>
les\idbexmpl.jar;;D:\JavaServletProducts\jonas226\JONAS\examples\classes;D:\
Java
>
ServletProducts\jonas226\JONAS;D:\usr\local\lib\jms.jar;D:\JavaServletProduc
ts\j
>
onas\InstantDB\idb.jar;D:\JavaServletProducts\jonas\InstantDB\idbexmpl.jar;D
:\us
>
r\local\lib\classes111.zip;D:\javajarfiles\jndi.jar;D:\javajarfiles\provider
util
>
.jar;D:\javajarfiles\rmiregistry.jar;D:\JavaServletProducts\jonas226\JONAS\l
ib\J
>
EREMIE_jonas.jar;.;d:\javaprograms\javasource;c:\jdk1.3\lib\mail.jar;c:\jdk1
.3\l
>
ib\activation.jar;D:\javajdbcs\jdbc1\mm.mysql.jdbc-1.2c;C:\jdk1.3\lib\tools.
jar;
>
D:\JavaServletProducts\JbossData\addressbook;D:\JavaServletProducts\JbossDat
a\ad
>
dressbook\src\java;D:\javajarfiles\ejb.jar;D:\javajarfiles\servlet.jar;D:\ja
vaja
>
rfiles\server.jar\jboss-client.jar;D:\javajarfiles;D:\javajarfiles\jnp-clien
t.ja
>
r;D:\JavaServletProducts\JbossData\addressbook\src\java\addressbook;D:\javaj
arfi
> les\addressbook-client.jar;D:\javajarfiles\jndi.properties
> CommonProgramFiles=C:\Program Files\Common Files
> COMPUTERNAME=IL93-1093
> ComSpec=C:\WINNT\system32\cmd.exe
> HOMEDRIVE=H:
> HOMEPATH=\
> HOMESHARE=\\il93dat07\W18971$
> HTTP_proxy="http://wwwgate0.mot.com:1080"
>
IDB_CLASSES=D:\JavaServletProducts\jonas\InstantDB\idb.jar;D:\JavaServletPro
duct
> s\jonas\InstantDB\idbexmpl.jar
> IDB_HOME=D:\JavaServletProducts\jonas\InstantDB
> IMNINST=help
> IMNINSTSRV=D:\IMNnq_NT
>
JDBC_CLASSES=D:\JavaServletProducts\jonas\InstantDB\idb.jar;D:\JavaServletPr
oduc
> ts\jonas\InstantDB\idbexmpl.jar;D:\usr\local\lib\classes111.zip
> JMS_CLASSES=D:\usr\local\lib\jms.jar
> JMS_HOME=D:\usr\local\lib
>
JNDI_CLASSES=D:\javajarfiles\jndi.jar;D:\javajarfiles\providerutil.jar;D:\ja
vaja
> rfiles\rmiregistry.jar
> JNDI_HOME=D:\javajarfiles
> JONAS_CLASSES=D:\JavaServletProducts\jonas226\JONAS\lib\JEREMIE_jonas.jar
> JONAS_ROOT=D:\JavaServletProducts\jonas226\JONAS
> LOGONSERVER=\\IL93MDC02
> NUMBER_OF_PROCESSORS=1
> OBJECTWEB_ORB=JEREMIE
> ORACLE_CLASSES=D:\usr\local\lib\classes111.zip
> OS=Windows_NT
> Os2LibPath=C:\WINNT\system32\os2\dll;
>
Path=D:\ruby\bin;D:\Perl\bin\;d:\Perl\5.00502\bin\MSWin32-x86-object;d:\Perl
\5.0
>
0502\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;D:\Profiles\ALLUS
E~1\
>
STARTM~1\Programs;c:\jdk1.3\bin;c:\jdk1.3\lib;c:\JavaJikes;C:\VXIpnp\WINNT\B
IN;D
>
:\IMNnq_NT;D:\Python16\;D:\Python20\;D:\JavaServletProducts\jonas226\JONAS\b
in\n
> t
> PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
> PROCESSOR_ARCHITECTURE=x86
> PROCESSOR_IDENTIFIER=x86 Family 6 Model 5 Stepping 1, GenuineIntel
> PROCESSOR_LEVEL=6
> PROCESSOR_REVISION=0501
> ProgramFiles=C:\Program Files
> PROMPT=$P$G
> RUBY_TCL_DLL=D:\ruby\tcl\bin\tcl83.dll
> RUBY_TK_DLL=D:\ruby\tcl\bin\tk83.dll
> SMS_LOCAL_DIR=C:\WINNT
> SystemDrive=C:
> SystemRoot=C:\WINNT
> TCL_LIBRARY=D:\ruby\tcl\lib\tcl8.3
> TEMP=D:\Profiles\w18971\LOCALS~1\Temp
> TMP=D:\Profiles\w18971\LOCALS~1\Temp
> USERDOMAIN=NA1
> USERNAME=w18971
> USERPROFILE=D:\Profiles\w18971
> windir=C:\WINNT
>
>
>
> ----
> 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