Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

database connection in J2EE

1 view
Skip to first unread message

Chan Wun Tat

unread,
Mar 15, 2000, 3:00:00 AM3/15/00
to
I have problem in running the "Account" example of entity bean in
the J2EE document. I ran the example in windowsNT and tried
to use MS Access instead of the build-in Cloudscape.
I got following error from the J2EE server in running the
client "AccountClient".

Cannot find principal mapping information for data source with
JNDI name jdbc/datasource

However, I have set
jdbc.drivers=sun.jdbc.odbc.JdbcOdbcDriver
jdbc.datasources=jdbc/datasource|jdbc:odbc:my_datasource
in default.properties and I saw the following message

Binding DataSource, name = jdbc/datasource, url = jdbc:odbc:my_datasource

after I start the J2EE server. I have also installed the ODBC driver for
MS Access in the control panel.

Where did I get wrong?

--
Wun-Tat Chan


Precision 610

unread,
Mar 16, 2000, 3:00:00 AM3/16/00
to
hi,

i am trying to use j2ee. but whenever i try
j2ee -verbose
i get the following error msg:

can u help me solve this?

Logging for J2EE Server Version: 1.2-BL started at: Wed Mar 15 17:45:17 EST
2000..
Using the Classic VM and the version number 1.2.2 from Sun Microsystems
Inc..
VM is using the classpath:
d:\j2sdkee1.2\lib\classes;d:\j2sdkee1.2\lib\locale;d:\j2sdkee1.2\lib\j2ee.ja
r;d:\jdk1.2.2\jre\lib\rt.jar;d:\jdk1.2.2\lib\tools.jar;.;d:\j2sdkee1.2\lib;;
d:\j2sdkee1.2\lib\cloudscape\RmiJdbc.jar;d:\j2sdkee1.2\lib\cloudscape\client
.jar;d:\j2sdkee1.2\lib\jhall.jar .
J2EE Home Directory has been set to: d:\j2sdkee1.2.


org.omg.CORBA.INTERNAL: minor code: 1398079496 completed: No
at
com.sun.corba.ee.internal.iiop.GIOPImpl.createListener(GIOPImpl.java:193)
at com.sun.corba.ee.internal.iiop.GIOPImpl.getEndpoint(GIOPImpl.java:152)
at
com.sun.corba.ee.internal.POA.POAORB.setPersistentServerPort(POAORB.java:402
)
at
com.sun.enterprise.iiop.POAEJBORB.setPersistentServerPort(POAEJBORB.java:299
)
at
com.sun.enterprise.iiop.POAProtocolMgr.setPersistentServerPort(POAProtocolMg
r.java:168)
at
com.sun.enterprise.server.EJBServer.setPersistentServerPort(EJBServer.java:4
67)
at
com.sun.enterprise.server.EJBServer.setPersistentServerInfo(EJBServer.java:4
15)
at com.sun.enterprise.server.EJBServer.init(EJBServer.java:197)
at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:233)
at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:829)


thanxs in advance,

"Chan Wun Tat" <wtc...@virtue.csis.hku.hk> wrote in message
news:8ango8$of4$1...@www.csis.hku.hk...

0 new messages