Sitemap

Amicuk Programming Answers

Not getting connection using DBC file in JSP page

-0001-11-30   Views:0

Advertisement

Hi, I have a custom page. I am trying to open a JDBC connection using DBC file. Below is the command I am using for that - ctx = new WebAppsContext(dbfilename); Connection conn = ctx.getJDBCConnection(); My dbc file location is 'C:\OA\jdevhome\jdev\d

Hi,
I have a custom page. I am trying to open a JDBC connection using DBC file. Below is the command I am using for that -
ctx = new WebAppsContext(dbfilename);
Connection conn = ctx.getJDBCConnection();
My dbc file location is 'C:\OA\jdevhome\jdev\dbc_files\secure'.
the code is raising exception after getJDBCConnection is called.
Any Idea where I am missing?
Regards,
Adarsh

The replay answer
Advertisement
This is not an OA question...
The DBC information is already set in the JVM for the Oracle Application Server:
WebAppsContext ctx = new WebAppsContext(System.getProperty("JTFDBCFILE"));
Connection conn = ctx.getJDBCConnection();
And always check for if the WebAppsContext or the Connection objects are null.

Go to See the other 3 answers

Not getting connection using DBC file in JSP page

Category:DefaultRelease time:-0001-11-30Views:130

Hi, I have a custom page. I am trying to open a JDBC connection using DBC file. Below is the command I am using for that - ctx = new WebAppsContext(dbfilename); Connection conn = ctx.getJDBCConnection(); My dbc file location is 'C:\OA\jdevhome\jdev\d[More]

Dbc file and Jsp error

Category:DefaultRelease time:2015-10-11Views:130

Dear all, I am trying to do multinode installtion on AIX 5.3 HACMP . During post installation i am getting this error. Dbc file and Jsp error Updating Server Security Authentication java.sql.SQLException: Io exception: Invalid number format for port[More]

How can i render a dynamic html file in jsp page

Category:DefaultRelease time:2015-10-11Views:130

Hi everybody, i am trying to render a dynamic html file in jsp page with the result of querying a database. The response of the query is a xml document. And i have a stylesheet to transfer it to html. How can i render the html in a jsp file?I am usin[More]

How can i call java class file in jsp page

Category:DefaultRelease time:-0001-11-30Views:130

Hai, i wants to call .class file in jsp page. my class file is in C:\jsdk\bin. ThanksI'm not entirely sure what you mean by "calling a class file", but I'm going to assume that you want to do something like the following in your page: <% MyCl[More]

Forwarding to an xml file from jsp page

Category:DefaultRelease time:-0001-11-30Views:130

hi i am subhash. i have problem in forwarding an xml file from jsp page. i have a jsp page in which i have a button. upon click, its form method is triggered and the action is set to "serverpage.jsp". In that jsp page i have to move to an xml fi[More]

How to use MultipartParser to load a file through JSP page

Category:DefaultRelease time:-0001-11-30Views:130

Hello, Can anyone please tell me How to use MultipartParser to load a file through JSP page an display the file content in the webpage? Once the file diaplay has been viewed, an upload button will be clicked to process the file. Thanks :)This has bee[More]

Connect to dbf file from jsp with servletexec??

Category:DefaultRelease time:-0001-11-30Views:130

I am trying to connect to a dbf file from a jsp page on an win2003Server with ServletExec. But i get the exception "no suitable driver". It works fine with the exact same code and file on my winxp machine. This is the connectionstring: url = &qu[More]

Java File and JSP Page

Category:DefaultRelease time:2015-10-11Views:130

I am to create a link verification program -- a simple java file with the database connection & some business logic and a JSP page that instantiates the my java file. It won't work. Everytime I run the jsp page, it gives me java.lang.NullPointerExcep[More]

Open File Dialog - JSP pages

Category:DefaultRelease time:2015-10-11Views:130

If I create a jsp page with an open file dialog will it work no matter what OS people are running? What I want to do is attach a file. It would be preferrable if I could set a "working" directory and when I open up the dialog it starts in that d[More]

How to call cystal report8 report file from jsp page

Category:DefaultRelease time:2015-10-11Views:130

hi guys present i am using cystal report8 already i am having ReportViewer.jar and ReportviewerBean.jar files using that please send me sample code how to call that report from jsp page.. and how to pass the parameters from jsp page to crystalreport8[More]

How to search for file in jsp page

Category:DefaultRelease time:2015-10-11Views:130

i need help on how to search for a file in a folder where there is a lot of subfolder.like how u search in a document in windows. i need a complete codes in jsp page. thank you in advance. Message was edited by: n_dilahno i need to do a search engine[More]

Hot
I rented a movie on my Apple TV which has version 6.0 firmware.  About 90 minutes into the movie, playback abruptly stopped and the apple TV software locked up.  I had to hard-reboot the Apple TV to regain control of it (move the cursor).  I was unab [More]
We uses 3 computers to cover our development cycle: one for developing, one for testing with almost real data (integration test) and a production machine.I created a new Essbase appl. and want to transfer it from one machine to another, but only usin [More]
can i link a windows pc through the ethernet jacks to share files with my mac? if so how? i have it linked now and get internet on the pc, but i need to move a lot of picture files to the macWhen they can access the Internet simultaneously, click her [More]
Hello Framers, I am using Frame 7.1 and have just taken over a project from a colleague who is sometimes, er, careless with best practices. So I MIF-washed all files (replacing all OLE2 graphics) and tried to save as RTF. Frame crashed. I looked at t [More]
conduit search" How can I get rid of it for ever, seems to have hijacked something, Have removed it from search engine options but it keeps reappearing, have (apparently ) uninsulated the programme from control panel but its still lurking there somew [More]
Hi, We want to option that for certian vendors in a financial year we don't want issue PO if the total issued PO's order value crosses 1,00,000GBP. Is it possible to control and how? Thank youHi, Chk PO/GR/Invoice amount in MC$4 for a vendor BR, Kris [More]
I am using Windows 2000, and previously had the Evaluation version of LabVIEW installed. I am currently configuring the LabVIEW 6i Student Edition.Do you have NI-DAQ installed? When you install LabVIEW if you do not install NI-DAQ with the installati [More]
I updated ipad with Icloud, lost my passcode and had re-set ipad to factory setting. Now I can't sny ipad2 with iTunes.  I can see my content on the PC but they are not syncing to ipad nothing happensMany thanks for the reply. when i connect them do [More]
Hi, In ECC i did the follwong configuration for Client Proxy 1. Create RFC destination XI_INTEGRATIONSERVER type H (with target host, service no-50X00 and path prefix), test it and getting HTTP Response 500. I am using PIAPPLUSER and this user have r [More]
Hi, I am developing an applet which uses Java Comm API. I'm running into some deployment issue. My understanding is that Java Comm API needs to have win32com.dll and javax.comm.properties files installed on the client machine for my applet to use Com [More]