Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

jConnect and servlets

3 posts in JDBC Connect (product renamed to JConnect) Last posting was on 1997-07-30 20:06:50.0Z
Randy Cinco Posted on 1997-07-24 20:05:20.0Z
Message-ID: <33D7B57F.C9298A8D@delgroup.com>
Date: Thu, 24 Jul 1997 16:05:20 -0400
From: Randy Cinco <rcinco@delgroup.com>
Organization: Delaware Group
X-Mailer: Mozilla 4.01 [en]C-Delgroup (WinNT; I)
MIME-Version: 1.0
Subject: jConnect and servlets
X-Priority: 3 (Normal)
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Newsgroups: sybase.public.jdbcconnect
Lines: 28
Path: forums-1-dub!forums-master.sybase.com!forums.powersoft.com
Xref: forums-1-dub sybase.public.jdbcconnect:468
Article PK: 252220

I'm trying to write a very simple servlet that basically connects to a
database, executes a query, and returns the result; that is, it serves
up a page with a form (a textarea in which the user types a query),
deals with the submission, and returns a page with the form and the
results. I can get this to work as a atand-alone app, but as a servlet
it always returns

java.lang.ClassNotFoundException: com.sybase.jdbc.SybDriver

Why is this? My classpath seems acceptable:


/opt/jConnect/classes:/opt/jdk/jdk1.1.3/lib/classes.zip:/opt/jdk/jdk1.1.3/lib:.

I've tried copying the whole classes tree from the jConnect directory to
the same directory that the servlet resides in, but that doesn't seem to
work.

I'm writing the servlet for Javasoft's Javaserver 1.0.1, which is
running on the Solaris Unix platform. It is a trusted servlet, so it
has access to the whole system.

Thanks in advance,
Randy Cinco
rcinco@delgroup.com


David Clegg Posted on 1997-07-30 20:06:50.0Z
Message-ID: <33DF9EDA.17C85B2D@sybase.com>
Date: Wed, 30 Jul 1997 13:06:50 -0700
From: David Clegg <davec@sybase.com>
X-Mailer: Mozilla 3.01 (X11; I; Linux 1.2.13 i586)
MIME-Version: 1.0
To: Randy Cinco <rcinco@delgroup.com>
Subject: Re: jConnect and servlets
References: <33D7B57F.C9298A8D@delgroup.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Newsgroups: sybase.public.jdbcconnect
Lines: 39
Path: forums-1-dub!forums-master.sybase.com!forums.powersoft.com
Xref: forums-1-dub sybase.public.jdbcconnect:443
Article PK: 252193

I believe that trusted servlets get a special class loader in
JavaServer so that you can dynamically recompile a servlet while
the server is running and the changes will be seen.
I've taken a quick glance at JavaServer documentation, and didn't
see anything about how to set the classpath in this case - hopefully
this may give you ideas on what to try next.

dave

Randy Cinco wrote:
>
> I'm trying to write a very simple servlet that basically connects to a
> database, executes a query, and returns the result; that is, it serves
> up a page with a form (a textarea in which the user types a query),
> deals with the submission, and returns a page with the form and the
> results. I can get this to work as a atand-alone app, but as a servlet
> it always returns
>
> java.lang.ClassNotFoundException: com.sybase.jdbc.SybDriver
>
> Why is this? My classpath seems acceptable:
>
> /opt/jConnect/classes:/opt/jdk/jdk1.1.3/lib/classes.zip:/opt/jdk/jdk1.1.3/lib:.
>
> I've tried copying the whole classes tree from the jConnect directory to
> the same directory that the servlet resides in, but that doesn't seem to
> work.
>
> I'm writing the servlet for Javasoft's Javaserver 1.0.1, which is
> running on the Solaris Unix platform. It is a trusted servlet, so it
> has access to the whole system.
>
> Thanks in advance,
> Randy Cinco
> rcinco@delgroup.com


Lance Andersen Posted on 1997-07-28 21:09:38.0Z
Message-ID: <33DD0A92.4C84@sybase.com>
Date: Mon, 28 Jul 1997 17:09:38 -0400
From: Lance Andersen <lancea@sybase.com>
X-Mailer: Mozilla 3.01Gold (X11; I; SunOS 5.5.1 sun4m)
MIME-Version: 1.0
To: Randy Cinco <rcinco@delgroup.com>
Subject: Re: jConnect and servlets
References: <33D7B57F.C9298A8D@delgroup.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Newsgroups: sybase.public.jdbcconnect
Lines: 43
Path: forums-1-dub!forums-master.sybase.com!forums.powersoft.com
Xref: forums-1-dub sybase.public.jdbcconnect:457
Article PK: 252211

Randy,

You need to have $JDBC_HOME/classes/com (as you are using jdk113)
in your codebase for your servlet.


-lance

Randy Cinco wrote:
>
> I'm trying to write a very simple servlet that basically connects to a
> database, executes a query, and returns the result; that is, it serves
> up a page with a form (a textarea in which the user types a query),
> deals with the submission, and returns a page with the form and the
> results. I can get this to work as a atand-alone app, but as a servlet
> it always returns
>
> java.lang.ClassNotFoundException: com.sybase.jdbc.SybDriver
>
> Why is this? My classpath seems acceptable:
>
> /opt/jConnect/classes:/opt/jdk/jdk1.1.3/lib/classes.zip:/opt/jdk/jdk1.1.3/lib:.
>
> I've tried copying the whole classes tree from the jConnect directory to
> the same directory that the servlet resides in, but that doesn't seem to
> work.
>
> I'm writing the servlet for Javasoft's Javaserver 1.0.1, which is
> running on the Solaris Unix platform. It is a trusted servlet, so it
> has access to the whole system.
>
> Thanks in advance,
> Randy Cinco
> rcinco@delgroup.com

--
===============================================================================
Lance J. Andersen Email: lancea@sybase.com
Sybase Technical Support Phone:(617) 564-6336
77 South Bedford Street Fax: (617) 564-6148
Burlington, MA 01803

The Dark Knight Returns!!! Let's Go Penguins!!!
===============================================================================