Hi Juergen,

With JOnAS 2.4, the CLASSPATH must NOT contain ejb-jar files.
Indeed, if the CLASSPATH contains ejb-jar files, the EJBServer will always
load the beans defined in the first ejb-jar file specified in the CLASSPATH
instead of the beans defined in the ejb-jar files specified in the
'jonas.service.ejb.descriptors' property.
Unfortunately, it seems to be a side effect of a modification we have done
since JOnAS 2.3.
So you have to remove 'c:/usr/local/jars/dp909.jar' of your classpath.


Moreover, note that some JOnAS 2.4 features seem to be interesting in your case:

- It's now possible to launch the Registry in the same JVM as the JOnAS server
(see the 'jonas.registry' property of jonas.properties file).

- It's now possible to defined "external" services to be run together with
the EJB server.
In your case, you could define a new service to dynamically creates new JOnAS
containers and adds your beans in it.
(see the documentation in
        http://www.objectweb.org/jonas/jonas_root/doc/Services.html)
To create a new JOnAS containers and add beans in it, you can use the remote
object registered in JNDI with the name <jonas_name>_Adm by the JOnAS Server;
(<jonas_name> is the value of the 'jonas.name' property).
This remote object implements the interface org.objectweb.jonas.adm.AdmInterface
(see
http://cvs.objectweb.org/cgi-bin/cvsweb/jonas/src/org/objectweb/jonas/adm/AdmInterface.java?cvsroot=Jonas,
  addBeans method).


Kind regards.
H�l�ne.

> Juergen Messer wrote:
> 
> Hi Helene,
> 
> sorry, that I can't help myself, but I'm trying to configure Jonas 2.4 since
> more than 3 days by myself without any success.
> Ever the same Problem: I tell the server to load 20 jar-files and the server
> reads every jar-file, but in the jndi- is 20 times the first jar file
> registred... the sb and the eb from the first jar file.... 20 times... :-(
> We start jonas with a self-written class, which creates the classpath and
> build the jonas.service.ejb.descriptors from the filesystem....
> I have marked the classpath and the descriptors in red.
> The first jar file is loaded correctly (dp000.jar) I marked the important area
> red
> The second jar file (dp100.jar) loads again eb and sb from dp000.jar, it must
> load de.dpd.dp100.xxxxxx (I have marked it in blue!!)
> With Jonas 2.3 all works fine!
> It would be great if we can change to Jonas2.4 because it has so much butiful
> features.... ;-)))
> Thanks for you help !!!! Best regards, Juergen Messer
> 
> OUT > de.dpd.depotsw_home=C:\usr\local
> OUT > New JavaVM started Mon Oct 22 15:02:39 CEST 2001
> OUT > ** Starting Registry ...
> OUT > ** Registry started !
> OUT > ** Starting EJB-Server ...
> OUT > classpath:
> C:\usr\local/properties;/usr/myclasses;C:\usr\local\jonas\lib\R
> MI_jonas.jar;C:\usr\local\jonas\lib\jpp.jar;C:\usr\local\jonas\lib\jdbc2_0-stdex
> t.jar;C:\usr\local\jonas\lib\jndi.jar;C:\usr\local\jonas\lib\jta-spec1_0_1.jar;C
> :\usr\local\jonas\lib\providerutil.jar;C:\usr\local\jonas\lib\rmiregistry.jar;C:
> \usr\local/jars/thirdparty/ifxjdbc.jar;C:\usr\local/jars/thirdparty/tools.jar;C:
> \usr\local/jars/thirdparty/parser.jar;C:\usr\local/jars/thirdparty/jaxp.jar;C:\u
> sr\local/jars/thirdparty/dbswing.jar;C:\usr\local/jars/thirdparty/dx.jar;C:\usr\
> local/jars/thirdparty/jbcl.jar;C:\usr\local/jars/thirdparty/jgl3.1.0.jar;C:\usr\
> local/jars/thirdparty/itext-0.52.jar;C:\usr\local/jars/thirdparty/activation.jar
> ;C:\usr\local/jars/thirdparty/mail.jar;c:/usr/local/jars/dp909.jar;
> OUT > descriptoren:
> C:\usr\local\jars\dp000.jar,C:\usr\local\jars\dp100.jar,C:\u
> sr\local\jars\dp110.jar,C:\usr\local\jars\dp111.jar,C:\usr\local\jars\dp120.jar,
> C:\usr\local\jars\dp121.jar,C:\usr\local\jars\dp122.jar,C:\usr\local\jars\dp123.
> jar,C:\usr\local\jars\dp125.jar,C:\usr\local\jars\dp126.jar,C:\usr\local\jars\dp
> 130.jar,C:\usr\local\jars\dp160.jar,C:\usr\local\jars\dp201.jar,C:\usr\local\jar
> s\dp202.jar,C:\usr\local\jars\dp203.jar,C:\usr\local\jars\dp210.jar,C:\usr\local
> \jars\dp220.jar,C:\usr\local\jars\dp250.jar,C:\usr\local\jars\dp800.jar,C:\usr\l
> ocal\jars\dp801.jar,C:\usr\local\jars\dp802.jar,C:\usr\local\jars\dp903.jar,C:\u
> sr\local\jars\dp904.jar,C:\usr\local\jars\dp906.jar,C:\usr\local\jars\dp912.jar,
> C:\usr\local\jars\dp920.jar,C:\usr\local\jars\dp921.jar,C:\usr\local\jars\dp940.
> jar
> OUT > JOnAS Server, version 2.4, running on rmi.
> OUT > The 'jonas.orb.port' value is 44444
> OUT > CompNamingContext rebind jonas.name
> OUT > CompNamingContext rebind remote
> OUT > CompNamingContext rebind timeout
> OUT > CompNamingContext rebind jonas.name
> OUT > CompNamingContext rebind datasources
> OUT > CompNamingContext rebind jonas.name
> OUT > CompNamingContext rebind descriptors
> OUT > CompNamingContext rebind jonas.name
> OUT > CompNamingContext lookup jonas.name
> OUT > JMX Service initialized
> OUT > jmx service started
> OUT > CompNamingContext lookup remote
> OUT > CompNamingContext lookup timeout
> OUT > TransactionService initialized
> OUT > TransactionService: Working with a colocated Transaction Manager
> OUT > Create and register TM factory
> OUT >  TransactionFactory constructor
> OUT >  Current.Current(TransactionFactory tmfact)
> OUT >  Batch constructor
> OUT >  Clock constructor
> OUT > TM:setTimeout=6000
> OUT > Register UserTransactionFactory
> OUT > javaURLContextFactory.getObjectInstance:null
> OUT > javaURLContext rebind java:comp/UserTransaction
> OUT >  Current.getReference()
> OUT > TransactionService started, default timeout=6000
> OUT > jtm service started
> OUT > CompNamingContext lookup datasources
> OUT > DataBaseService initialized
> OUT > Creating Datasource informix
> OUT > DataBaseService: create ConnectionManager
> OUT > XADataSourceImpl.XADataSourceImpl()
> OUT > XADataSourceImpl.setDataSourceName(informix_jdbc_1)
> OUT > Load JDBC driver com.informix.jdbc.IfxDriver
> OUT > ConnectionManager configured with:
> OUT >    jdbcConnCheckLevel  = 1
> OUT >    jdbcConnMaxAge      = 30
> OUT >    jdbcTestStmt        = select depnr from ts000
> OUT > Mapping ConnectionManager
> jdbc:informix-sqli://10.1.32.50:25000/db189:INFO
> RMIXSERVER=dpd_tcp on informix_jdbc_1
> OUT > dbm service started
> OUT > CompNamingContext lookup descriptors
> OUT > EJBService initialized
> OUT > CompNamingContext rebind filename
> OUT > EJBService: createContainer
> OUT > CompNamingContext lookup filename
> OUT >   PoolKeeper: started
> OUT > EJBService: working without Security Service
> OUT >  EJB container : addSessionBean
> OUT >  EJB container : de.dpd.dp000.JOnASReOrganisationSBHome loaded
> OUT >  JBeanHome constructor for ReOrganisationSB
> OUT > NamingManager: setComponentContext: ReOrganisationSB
> OUT > NamingManager: setComponentContext: reset to null
> OUT >  JBeanMetaData.JBeanMetaData(ejbHome,de.dpd.dp000.ReOrganisationSBHome,
> de
> .dpd.dp000.ReOrganisationSB, null, true, false)
> OUT >  JBeanHome.setEJBMetaData
> OUT >  JOnASReOrganisationSBHome(ReOrganisationSB)
> OUT > EJB container : ReOrganisationSB available
> OUT >  JBeanHome.getDeploymentDescriptor()
> OUT >  EJB container : addEntityBean
> OUT > DataSourceFactory: getObjectInstance
> org.objectweb.jonas.dbm.ConnectionMan
> ager
> OUT > DataSourceFactory: return the matching ConnectionManager
> OUT >  EJB container : de.dpd.dp000.JOnASDt00200EBHome loaded
> OUT >  JBeanHome constructor for Dt00200EB
> OUT > NamingManager: setComponentContext: Dt00200EB
> OUT > NamingManager: setComponentContext: reset to null
> OUT >  JEntityHome constructor for Dt00200EB
> OUT >  JBeanMetaData.JBeanMetaData(ejbHome,de.dpd.dp000.Dt00200EBHome,
> de.dpd.dp
> 000.Dt00200EB, de.dpd.dp000.Dt00200EBPK, false, false)
> OUT >  JBeanHome.setEJBMetaData
> OUT >  JOnASDt00200EBHome(Dt00200EB)
> OUT >  EJB container : setSwapTime 0
> OUT >  EJB container : syncAll
> OUT >  JEntityHome.passivateAllIH
> OUT > NamingManager: setComponentContext: Dt00200EB
> OUT > NamingManager: setComponentContext: reset to null
> OUT > EJB container : Dt00200EB available
> OUT >  JBeanHome.getDeploymentDescriptor()
> OUT > EJBService: Created container for C:\usr\local\jars\dp000.jar
> OUT > CompNamingContext rebind filename
> OUT > EJBService: createContainer
> OUT > CompNamingContext lookup filename
> OUT > EJBService: working without Security Service
> OUT >  EJB container : addSessionBean
> OUT >  EJB container : de.dpd.dp000.JOnASReOrganisationSBHome loaded
> OUT >  JBeanHome constructor for ReOrganisationSB
> OUT > NamingManager: setComponentContext: ReOrganisationSB
> OUT > NamingManager: setComponentContext: reset to null
> OUT >  JBeanMetaData.JBeanMetaData(ejbHome,de.dpd.dp000.ReOrganisationSBHome,
> de
> .dpd.dp000.ReOrganisationSB, null, true, false)
> OUT >  JBeanHome.setEJBMetaData
> OUT >  JOnASReOrganisationSBHome(ReOrganisationSB)
> OUT > EJB container : ReOrganisationSB available
> OUT >  JBeanHome.getDeploymentDescriptor()
> OUT >  EJB container : addEntityBean
> OUT > DataSourceFactory: getObjectInstance
> org.objectweb.jonas.dbm.ConnectionMan
> ager
> OUT > DataSourceFactory: return the matching ConnectionManager
> OUT >  EJB container : de.dpd.dp000.JOnASDt00200EBHome loaded
> OUT >  JBeanHome constructor for Dt00200EB
> OUT > NamingManager: setComponentContext: Dt00200EB
> OUT > NamingManager: setComponentContext: reset to null
> OUT >  JEntityHome constructor for Dt00200EB
> OUT >  JBeanMetaData.JBeanMetaData(ejbHome,de.dpd.dp000.Dt00200EBHome,
> de.dpd.dp
> 000.Dt00200EB, de.dpd.dp000.Dt00200EBPK, false, false)
> OUT >  JBeanHome.setEJBMetaData
> OUT >  JOnASDt00200EBHome(Dt00200EB)
> OUT >  EJB container : setSwapTime 0
> OUT >  EJB container : syncAll
> OUT >  JEntityHome.passivateAllIH
> OUT > NamingManager: setComponentContext: Dt00200EB
> OUT > NamingManager: setComponentContext: reset to null
> OUT > EJB container : Dt00200EB available
> OUT >  JBeanHome.getDeploymentDescriptor()
> OUT > EJBService: Created container for C:\usr\local\jars\dp100.jar
> ----- Original Message -----
> From: "H�l�ne JOANIN" <[EMAIL PROTECTED]>
> To: "Juergen Messer" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Thursday, October 18, 2001 11:33 AM
> Subject: Re: Only one SB, one EB by switching from 2.3 to 2.4
> 
> Hi,
> 
> May be the problem is that the CLASSPATH (or the XTRA_CLASSPATH) at the JOnAS
> server launching,
> contains your ejb-jar files: dp000.jar, dp010.jar, dp100.jar...
> Indeed, it is not necessary to add the ejb-jar file in the CLASSPATH before
> launching the EJBServer.
> 
> I hope this will help you.
> Kind regards.
> H�l�ne.
> --
> -=- H�l�ne JOANIN -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
>   mailto:[EMAIL PROTECTED]   http://www.evidian.com
>   Phone: 33.4.76.29.73.53            Fax: 33.4.76.29.76.00
>   Download our EJB Server JOnAS at http://www.objectweb.org

-- 
-=- H�l�ne JOANIN -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  mailto:[EMAIL PROTECTED]   http://www.evidian.com
  Phone: 33.4.76.29.73.53            Fax: 33.4.76.29.76.00
  Download our EJB Server JOnAS at http://www.objectweb.org
----
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