You need to make sure that your Oracle JDBC driver is in the 
{JRun-Home}\servers\default\lib directory with your bean that you are 
instantiating.  All classes (including the DB drivers) used by your app need 
to be in there so you can get to them.

Hope this helps.


>From: [EMAIL PROTECTED]
>Reply-To: [EMAIL PROTECTED]
>To: JRun-Talk <[EMAIL PROTECTED]>
>Subject: RE: Trouble running a bean.
>Date: Tue, 5 Dec 2000 10:34:36 -0000
>
>Can anybody give me the exact syntax of connecting to a database configured
>in the JRUN JDBC datasource settings?
>Also the regular way of connecting to a database through JDBC....currently 
>i
>am using this code and am getting a null pointer exception.
>
>       Class.forName("oracle.JDBC.driver.OracleDriver");
>
>       con =
>DriverManager.getConnection("jdbc:oracle:thin:@132.146.186.177:1521:orcl",
>"username", "password");
>
>Thanks in advance,
>-Krishna.
>
>-----Original Message-----
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
>Sent: 05 December 2000 00:22
>To: JRun-Talk
>Subject: Re: Trouble running a bean.
>
>
>I am also new to Jrun so I don't know if other directories might be better
>for one reason or another,
>but I put my beans in the JRun\servers\default\lib directory, and didn't
>need to refer to the path in any explicit way.
>
>[EMAIL PROTECTED] wrote:
>
> > Hi,
> >
> > I am new to JRUN and am having trouble running a jsp file that calls a
>bean.
> > I am getting a no class def found error. I have not been able to figure
>out
> > the reason why this is not working.
> >
> > I have saved my jsp file in the deffault-app directory in the servers
> > directory in jrun-root and the bean in the default-app/web-inf/classes
> > directory.
> >
> > the error is as given below:
> >
> > 500 Internal Server Error
> > /Automation.jsp:
> >
> > javax.servlet.ServletException: Exception thrown processing JSP page.
> > java.lang.NoClassDefFoundError: AutomationBean [AutomationBean]
> >         at jrun__Automation2ejspf.class$(jrun__Automation2ejspf.java)
> >         at
> > jrun__Automation2ejspf._jspService(jrun__Automation2ejspf.java:42)
> >         at 
>allaire.jrun.jsp.HttpJSPServlet.service(HttpJSPServlet.java:40)
> >         at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013)
> >         at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:925)
> >         at
> >
>allaire.jrun.servlet.JRunNamedDispatcher.forward(JRunNamedDispatcher.java:34
> > )
> >         at allaire.jrun.jsp.JSPServlet.service(JSPServlet.java:175)
> >         at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013)
> >         at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:925)
> >         at
> >
>allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.jav
> > a:88)
> >         at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1131)
> >         at allaire.jrun.servlet.JvmContext.dispatch(JvmContext.java:330)
> >         at allaire.jrun.http.WebEndpoint.run(WebEndpoint.java:107)
> >         at allaire.jrun.ThreadPool.run(ThreadPool.java:272)
> >         at allaire.jrun.WorkerThread.run(WorkerThread.java:75)
> >
> > Can anybody help me with this. Is it something to do with the class-path
> > settings?
> >
> > Thanks
> > -Krishna
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > Your ad could be here. Monies from ads go to support these lists and
>provide more resources for the community.
>http://www.fusionauthority.com/ads.cfm
> >
> > Archives: http://www.mail-archive.com/[email protected]/
> > Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
>
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>Your ad could be here. Monies from ads go to support these lists and 
>provide
>more resources for the community. http://www.fusionauthority.com/ads.cfm
>
>Archives: http://www.mail-archive.com/[email protected]/
>Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>Your ad could be here. Monies from ads go to support these lists and 
>provide more resources for the community. 
>http://www.fusionauthority.com/ads.cfm
>
>Archives: http://www.mail-archive.com/[email protected]/
>Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

_____________________________________________________________________________________
Get more from the Web.  FREE MSN Explorer download : http://explorer.msn.com

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to