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
Hi everyone I am modifying an existing program that makes use of the VC_I_GET_CONFIGURATION FM.  Under certain conditions SAP will throw a 'memory_no_more_paging' error.  This always happens at line 55 of the SET_MD_TO_BUFFER Form, which is called fr [More]
When accessing a web based program I got a message that it could only be accessed using MS Explorer 6.0 or newer. Is there a work around for this?There is a way to do this. But it works or not, I have no idea. Enable  "Develop menu". Safari > [More]
My iPod refuses to show up as a source in iTunes. This is the only possible conclusion I can make, given I've tried each of the following steps: 1. Re-setting the iPod. 2. Restoring the iPod. 3. Restarting the iPod service. 4. Re-installing iTunes (a [More]
Ok here is my problem. I bought a Creative Sound Blaster PCI sound card a while back and it was working fine but recently when I would boot up my computer and try to play music say off of Winamp it says Bad DirectSound Driver. When I check device man [More]
during installation something went awol. Ive tried resetting the iphone, computer, and itunes. my computer is still telling me it cant restore my iphone! help!When the computer says that it can't restore your phone does it give a specific error code? [More]
I am using EVOPDF for testing html to pdf. http://idealpi.azurewebsites.net/defaultpdf.aspx On local development works fine in full trust. When run on Azure website Reserved mode with full trust in web.config I get error. Could not get conversion res [More]
Hello Experts, I need your urgent help. I have created a web template in Web Application Designer. In this template I have created a data provider which is based on a query. If I execute this query directly from WAD then it executes successfully. How [More]
Hi All, When I am executing Info Package in BW PROD the system is showing error Transfer (IDocs and TRFC): Errors occurred Request IDoc : Application document not posted I searched the forums but no such kind of error regarding this senario.This prob [More]
I lately have a problem when using the capital T on my keyboard. It won't work when I type a password in the keychain by using the left caption key + t, but it will work with the right caption key + t. This is not always the case, but it happens pret [More]
Hi I have a system that contains 1000 forms. They attached PL/SQL library with Developer Forms 6.0 using relative path I mean: For example: if form A is in C:\Developer\forms\A.fmb if library B is in C:\Developer\plsql\B.plx Then in the attached libr [More]