Hey!

Yep.  I've seen that before.

You need to install the Java2 driver for DB2.  When you install DB2
it installs Java1 by default.  The DB2Datasource class in not in there.

Wake up IBM.

Good luck.  Please don't respond to this Posting because it is
off-topic.  E-me privately if you have more questions.

Sans adieu,
Danny Rubis

Tom & Sharon Kochanowicz wrote:

> I feel your pain Mark, I am trying to set a servlet using jndi for
> connecting up to a DB2 ver 7.2 database and get the error:
>
> JDBC_DataSource.java:34: cannot resolve symbol
> symbol  : class DB2DataSource
> location: package jdbc
>                 ds = new COM.ibm.db2.jdbc.DB2DataSource();
>
> But I can't find where the package or jar file is. I can't help you, but
> I share your misery ;-)
>
> Tom K.
>
> -----Original Message-----
> From: A mailing list for discussion about Sun Microsystem's Java Servlet
> API Technology. [mailto:[EMAIL PROTECTED]] On Behalf Of Mark
> Galbreath
> Sent: Saturday, January 12, 2002 4:50 PM
> To: [EMAIL PROTECTED]
> Subject: JNDI Properties Question for JRun
>
> I can find no help in the JRun 3.1 docs for establishing the initial
> context
> in a servlet accessing an EJB entity bean.  The code compiles:
>
>     public static Context getInitialContext() throws
> javax.naming.NamingException {
>         Properties p = new Properties();
>         p.setProperty( Context.INITIAL_CONTEXT_FACTORY,
> "ContextFactory");
>         p.setProperty( Context.PROVIDER_URL, "ejipt://CC615520-C:8101");
>         return new InitialContext( p);
>     }
>
> but I get the old ClassNotFound exception for the
> allaire.ejipt.ContextFactory at runtime.  This is confounding me as I'd
> get
> a "can't resolve symbol" error at compile time if the compiler was not
> finding the package import, no?
>
> For reference, I'm working my way thorugh Monson-Haefel's "Enterprise
> JavaBeans, 3d Ed." and I'm stuck on pp. 102-103.
>
> Thanks,
> Mark
>
> ________________________________________________________________________
> ___
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to