Hi Ignat,
This problem comes if you have a resource that does not have a user name and
password (null values). The workaround would be to create a resource for
the
database with a valid user name and password . E.g.,
Name: MSQL
URL : jdbc:mysql://kosi.pramati.com:3306/test
Driver : org.gjt.mm.mysql.Driver
author: Container
user : test
password: test
Regards,
Ritesh Gupta
Customer Support
Pramati Technologies
http://www.pramati.com
----- Original Message -----
From: Ignat Skoryh <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, July 31, 2001 4:55 PM
Subject: DataSource and OR Mapping
> > Hello,
> >
> > Please write to us the following details :
> >
> > 1. Which database (e.g., Oracle, SQL Server ) were you trying to access
from
> > Server's deploytool ?
>
> It's MySQL.
>
> > 2. When were you getting this problem ? Do you get any
errors/exceptions ?
> > If yes, could you send us the stacktrace?
>
> I got this problem at Deploy Tool, CMFields tab of EJB properties.
> The Exception is:
> java.lang.IllegalArgumentException: setSelectedIndex: 0 out of bounds
> at javax.swing.JComboBox.setSelectedIndex(JComboBox.java:452)
> at
com.pramati.tools.deploy.panels.CMF20Panel.setTableComboModel(com/pramati/to
ols/deploy/panels/CMF20Panel.java:304)
> at
com.pramati.tools.deploy.panels.CMF20Panel.setMapDetails(com/pramati/tools/d
eploy/panels/CMF20Panel.java:115)
> at
com.pramati.tools.deploy.panels.CMP20BeanPanel$TabChangedListener.stateChang
ed(com/pramati/tools/deploy/panels/CMP20BeanPanel.java:54)
>
>
> > 3. After you have tested the data source, did you add the resource from
> > Server's management console ?
>
> I did!
>
> > Please address you queries regarding Server 3.0 to [EMAIL PROTECTED]
so
> > that our other evaluators and customers can benefit from your questions
and
> > their responses.
> >
> > Regards,
> >
> > Priya
> > Customer Support
> > Pramati Technologies
> > http://www.pramati.com
> >
> >
> >
> > ----- Original Message -----
> > From: Ignat Skoryh <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Monday, July 30, 2001 9:58 PM
> > Subject: DataSource and OR Mapping
> >
> >
> > > Hi!
> > >
> > > While examining your application server EJB 2.0 functionality, I met
some
> > problems with OR mapping configuration. I defined my own DataSource and
> > admin tool tested it and said that everything is ok, but when defining
> > ContainerMangedFields to DB mapping I cannot choose from table names
because
> > 'Table Name' drop-down is empty, nor I can type table/field names
manualy.
> > >
> > > Thanks,
> > > Ignat.
> > >
> >
>