Andrew Gray wrote:
> 
> Hi,
> 
> I am getting an error when running the JOnAS server (everything seems now to
> deploy okay). It seems to initialise the beans okay but I get the error:
> 
> ...
> getPrimaryKeyField()=public java.lang.String
> examples.ejb.basic.containerManaged.AccountBean.accountId
> getDatasourceJndiName()=weblogic.jdbc.connectionPool.demoPool
> getJdbcTableName()=ejbAccounts
> DataSourceFactory: return the matching ConnectionManager
> examples.ejb.basic.containerManaged.JOnASAccountBeanAccountHome loaded
>     Call of examples.ejb.basic.containerManaged.JOnASAccountBeanAccountHome
> constructor : java.lang.NoSuchMethodException: <init>
> java.lang.NoSuchMethodException: <init>
>         at java.lang.Class.getConstructor0(Native Method)
>         at java.lang.Class.getConstructor(Class.java:890)
>         at
> org.objectweb.jonas.container.Container.addBeans(Container.java:157)
>         at
> org.objectweb.jonas.container.EJBContainerManager.createEJBContainer(EJBCont
> ainerManager.java:65)
>         at
> org.objectweb.jonas.container.EJBContainerManager.createEJBContainers(EJBCon
> tainerManager.java, Compiled Code)
>         at org.objectweb.jonas.server.Server.main(Server.java:113)
> Cannot create containers : java.lang.NullPointerException
> java.lang.NullPointerException
>         at java.util.Hashtable.put(Hashtable.java, Compiled Code)
>         at
> org.objectweb.jonas.container.Container.addBeans(Container.java:169)
>         at
> org.objectweb.jonas.container.EJBContainerManager.createEJBContainer(EJBCont
> ainerManager.java:65)
>         at
> org.objectweb.jonas.container.EJBContainerManager.createEJBContainers(EJBCon
> tainerManager.java, Compiled Code)
>         at org.objectweb.jonas.server.Server.main(Server.java:113)
> ...
> 
> Does this mean that the datasource that I am mapping to is not specified
> correctly?
> What does it mean by "return the matching ConnectionManager"?
> My jdbc drivers are referenced in the class path as well, so I do not think
> that is the problem.
> The problem seems to be related to the generated JOnASAccountBeanAccountHome
> file?
> I can deploy a BMP Bean fine and run the server without getting errors (not
> tried looking it up via a client yet though). Which perhaps points towards
> it being a CMP related error?
> 
> Any help (again) appreciated. Thanks.
> 
> Andy.

Hi Andy
it will be fine if you could send us the xml files for the BMP beans
that runs
and the xml files for the CMP files that doesn't.
+ the jonas.datasources  property in jonas.properties
and if you have set 
jonas.datasources  XX
the content of XX.properties
there is something confusing in your traces:
getDatasourceJndiName()=weblogic.jdbc.connectionPool.demoPool
it seems it remains some links to a previous weblogic environment

Best regards,

-- 
        Philippe

Philippe Coq  Evidian   Phone: (33) 04 76 29 78 49
Bull S.A  - 1 rue de Provence - 38432 Echirolles Cedex France
Download our EJBServer 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