Hi,
  I am new to Jonas.Earliar I have done some R&D on Enhydra but unable to
connect to Oracle Database.Then by exploring more I found Jonas as its
better solution which says by making changes in some property file
(Oracle1.property,jonas.property) ,the same can be done.
  But now when I have installed Jonas-Binary version,I am not able to run
the example.

Steps I have taken to install and run :

1. I have installed Jonas in my C:\ directory  

2. I am working on Windows NT ,so in Environment settings I have set 
JONAS_ROOT = c:/jonas-2-1-1

3. In  c:\usr\local\lib ,I have copied all the jar files
jndi.jar,providerutil.jar,rmiregitry.jar ,classes.zip etc.

4. I made changes in C:\jonas-2-1-1\bin\nt\config_env.bat file.File contents
are listed below:

Rem Set the Objectweb ORB value with RMI or JEREMIE
Set OBJECTWEB_ORB=RMI

Rem Set those generated values according to your paths.
Set JNDI_HOME=C:\usr\local
Set
JNDI_CLASSES=%JNDI_HOME%\lib\jndi.jar;%JNDI_HOME%\lib\providerutil.jar;%JNDI
_HOME%\lib\rmiregistry.jar
Set IDB_HOME=C:\usr\local
Set IDB_CLASSES=%IDB_HOME%\lib\idb.jar;%IDB_HOME%\lib\idbexmpl.jar
Set ORACLE_CLASSES=C:\usr\local\lib\classes111.zip
Set JDBC_CLASSES=%IDB_CLASSES%;%ORACLE_CLASSES%
Set JONAS_CLASSES=%JONAS_ROOT%\lib\%OBJECTWEB_ORB%_jonas.jar

Rem  All these variables refer to classes or interfaces that will be
included
Rem  in your CLASSPATH, either to compile, or to run jonas servers.
Set CLASSPATH=%JONAS_CLASSES%
Set CLASSPATH=%JNDI_CLASSES%;%CLASSPATH%
Set CLASSPATH=%JDBC_CLASSES%;%CLASSPATH%
Rem jonas root for jndi.properties file
Set CLASSPATH=%JONAS_ROOT%;%CLASSPATH%

Rem  You can update the classpath with your own bean classes
Rem  or set a XTRA_CLASSPATH in your environment

Set CLASSPATH=%JONAS_ROOT%\examples\classes;%CLASSPATH%
Set CLASSPATH=%XTRA_CLASSPATH%;%CLASSPATH%





5.Oracle1.property file I also changed accordingly.


6. But when i compile the example  : from Dos prompt  ,it gives no error.But
after this when I use gnu make command from cygnus tool ,it gives error
which is as given below :


Enhydra$ make
+ c:/jonas-2-1-1/bin/unix/GenIC -d ../../classes -keepgenerated ejb-jar.xml
GenIC for JOnAS 2.1.1: Bean 'AccountExpl' generation...
Exception in thread "main" java.lang.NoClassDefFoundError:
javax/naming/Context
        at java.lang.Class.getMethod0(Native Method)
        at java.lang.Class.getMethod(Class.java, Compiled Code)
        at
org.objectweb.jonas.tools.GenICCommon.genCatchBean(GenICCommon.java,
Compiled Code)
        at
org.objectweb.jonas.tools.GenICRemote.genRemove(GenICRemote.java:217)
        at org.objectweb.jonas.tools.GenICRemote.generate(GenICRemote.java,
Compiled Code)
        at
org.objectweb.jonas.tools.GenIC.genImplRemoteClass(GenIC.java:213)
        at org.objectweb.jonas.tools.GenIC.main(GenIC.java, Compiled Code)
make: *** [../../classes/eb/ejb-jar.genic_xml_output] Error 1


I am not able to proceed next.And how to run rmiregistry and start EJBServer
also.


Your co-operation will be highly appreciated.

Looking forward for your early response.

Regards
Seema

----
This list is cross-posted to two mail lists.  To unsubscribe,
follow the instructions below for the list you subscribed to.
For objectweb.org: send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe ejb-container-group".
For enhydra.org: send email to [EMAIL PROTECTED] and include
in the body of the message "unsubscribe ejb-container-group".

Reply via email to