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'm abroad at present and using a wireless connection at the lab. Itunes keeps changing internet radio stations as a function of time, Any suggestions or os it a known problem with the current version? DonTry the following user tip: "Invalid drive X: [More]
On my mac the Software Update appeared, then it asked me to update some software,when I clicked Install all or update all, it said that it will restart and it told me not to turn it off, then when the screen appears, it is too slow, I can't "barely&q [More]
So, I was attempting to download this app to test it out when I saw user reviews stating you can't uninstall the app after download. I decided not to take the dive in the Amazon lava pool. Then I got thinking, if rumors are true about Verizon updates [More]
Quick question, Is the Ethernet port on my Apple TV suitable to plug in a smart TV, in order to connect the TV to my WiFi network ? Thanks, David.No, the ATV does not provide Internet access to any other device, it is not a hub/switch or Wi-Fi hotspo [More]
Hi My clent has deleted one personnel Number by using PU00, But when he go to Pa20 and enter particular deleted personnel number system gives a message "personnel number not assigned" but a flag will come in front of Personnel data. Please sugge [More]
How do I extract the BODY of a POST request? Is this possible?Yes, this is true but why is it that after I use request.getInputStream() then request.getParameterValues() stops working correctly?Read other 3 answers [More]
My wife and I have identical IMacs and I bought Aperture 2 for them last year. It was good for 3 computers, I think. Just upgraded her to Aperture 3 for $99 or so. Question is... do I have to shell out another $99 for my machine.The Aperture SLA says [More]
Hi all, I am configuring a scenario using IDOCS. I'm using program RSEINB00 to read my flat file and transfert it to the proper scenario. It works fine. The problem I have is I am receiving other idocs with different partner numbers with same scheme [More]
I am no longer able to use dynamic link when I try to link to multiple AE compositions from Premiere. What happens is, when playing the sequence back in premiere, there are random frames in the dynamic link clip that are out of order. For example if [More]
Hi, I have created an org. unit for purchasing org and it is linked to the back-end purchasing org ( Function TAB). Now I want to know where is purchasing org. (Function TAB) is stored in SRM table please  help -PranavHi, Check table hrv5500a to get [More]