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 guess this will be fairly typical these days, but I can't seem to work it out. In the main room I have the latest Apple TV using my library from my iMac.  This library contains everything for the whole family including thrillers, horror movies, etc [More]
error -10810 Just bought a new computer and registered with Adobe for the CC and can't open After effects. What can I do?That is a Mac OS error code that says that the OS doesn't have any room left in its process table to run another process. Restart [More]
I have a set of Inspire 6700 speakers connected to my present DVD player. The DVD player has six phono outputs: L, R, RL, RR, Ctr, Sub. I've used phono to 3.5mm converters to connect these into the three input sockets on the 6700 system. I am now loo [More]
Hi, I liked the class extention key="table" value="..." in the jdo metadata xml files ind Kodo 2.x. Unfortunately I can't find how to specify the tablename in my jdo metadata for Kodo 3.0. I want to generate the mapping with the mappin [More]
My Macbook 2007 is continuous Kernel Panicking, and i have no idea why. I have connected the hard drive to my Windows PC, and it does show up in Windows Explorer. I have even tried replacing the RAM, and that still doesn't help. I have an extra hard [More]
Hey guys, I wanted to make a little package for the "ventrilo_status" program. This is a CLI tool that's part of the ventrilo voice chat software. The download page for this particular piece of software is located here http://www.ventrilo.com/dl [More]
hello im using labview 8.5 and i was wondering how to read data from a wav file and then write the data into 1D array?? thank you... i can actually read the file by using Soun_File_Read.vi , but i need a 1d array..Use the index array to access the ch [More]
I downloaded iTunes 10.5 and my playback preferences are not working. For example, crossfade is screwy. Sometimes it will fade out at the end of a song, but the next song will not come in until the end, or the next song will come in WAY too early. So [More]
My daughter and I both have BlackBerry Curves that are approxiamately 2 years old.  They are constantly shutting down during phone calls and web browsing even though the battery shows a full charge. When they finally finish rebooting the battery indi [More]
What are the things which need a closer watch ! while migrating an application from 8.1.6 to 8.1.7. on SUN/Solaris Help will be appreciated. Regards SunilHi, The upgrade from 8.1.6 to 9.2 with full export method doesn't work, and it seems normal if w [More]