Not getting connection using DBC file in JSP page

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

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.

Similar Messages

  • How use class file in jsp(very urgent)

    i have class file called birds (birds is actually a xslt file transformed to java class file) now this class file i have to use in my jsp file. how can i use them. if possible can any one give me sample code please very urgent
    can any one help me

    java files
    import org.w3c.dom.*;
    import javax.servlet.http.*;
    import javax.xml.transform.*;
    import javax.xml.transform.stream.*;
    import java.io.*;
    public class XmlParser
         public String XmlParser()
              try
    String strXML= "employee.xml";
                   String xslFile = "employeeId.xsl";
                   TransformerFactory tFactory = TransformerFactory.newInstance();
                   StreamResult theTransformationResult = new StreamResult( new ByteArrayOutputStream() );
                   Transformer transformer = tFactory.newTransformer(new StreamSource(xslFile));
                   transformer.transform(new StreamSource(new StringReader(strXML)), theTransformationResult);
                   String output = theTransformationResult.getOutputStream().toString()
              catch(Exception e)
                   System.out.println(" ***** XmlParser.XmlParser ERROR ***** " + e);
    return output;
    using class files in jsp
    <%@ page import="com.qqqq.aaaa.XmlParser"%>
    <%
         XmlParser xmlParser          =     new XmlParser();
    out.println(xmlParser.XmlParser());
    %>
    i think it will help you.

  • I am trying to setup wireless using my old dome Airport ExtremeBase station. I had previously used it about 5 years ago when I had dial up but have now switche to DSL with Windstream. I can not get connecte as ABS keeps trying to dial up(the phone number)

    I am trying to setup wireless using my old dome Airport Extreme Base station. I had previously used it about 5 years ago when I had dial up but have now switched to DSL with Windstream. I can not get connected as the ABS keeps trying to dial up(the old phone number). When I tried to change my network settings an annoying popup window says "your network settings have been changed by another application'. I have no idea what the message is all about and when I close this window it immediately pops up again and prevents me -as far as I can tell -from changing my Airport settings?  I need advice on how to get this wireless setup done. Maybe a reset? or something else? I have the DSL phone line plugged into WIndsteam Seimens Speedstream 4200 modem and then the ethernet (yellow) wire from the WIndsteam Seimens Speedstream 4200 modem to the port on the dome that is a circle of dots.

    1)Can you explain how using the AEBS as a bridge will work with the Seimens Speedstream4200?
    As a bridge, the AEBS will basically become a wireless access point. This will allow the AEBS to provide a wireless network, but still allow the Speedstream to provide NAT & DHCP services for the wireless clients connected to the AEBS. If the AEBS was left as a router, you would have a double-NAT condition which isn't necessary bad in itself, but would create a second subnet. That would make it more difficult for clients connected to the AEBS to access clients connected to the Speedstream.
    2) Is there a link that will guide me through the steps to set the AEBS as a bridge?
    You can easily reconfigure the AEBS as a bridge using the AirPort Utility.
    ref: AirPort Utility > Select the AEBS > Manual Setup > Internet > Internet Connection > Connection Sharing = Off (Bridge Mode)
    3)Can I just connect the DSL phone line to the AEBS and eliminate the Speedstream4200?
    Unfortunately no. The AEBS does not have a built-in DSL modem. You will still need the Speedstream to provide this function.

  • Dbc file and Jsp error

    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 number
    Database connection to jdbc:oracle:thin:@host_name:port_number:database failed
    Updating Server Security Authentication failed with exit code 1
    adgendbc.sh exiting with status 1
    ERRORCODE = 1 ERRORCODE_END
    SQLPLUS Executable : /mglapp/oramgl/mglora/8.0.6/bin/sqlplus
    SP2-0642: SQL*Plus internal error state 2165, context 4294967295:0:0
    Unable to proceed
    ERRORCODE = 1 ERRORCODE_END
    Thanks in advance

    Maybe you have problem with the date format, please ensure that NLS_DATE_FORMAT env variable is set to a valid value.
    Please view SP2-0642: Sql*Plus Internal Error State 2165, Context 4294967295:0:0 Doc ID: Note:396154.1.
    Hope it helps.
    Adith

  • Error is not getting logged in error file while running dataload maxl

    Hello All,
    I am running a Maxl to load data in a database which is running fine but noted a weird issue that the errors are not getting logged in error file. Suppose i changed the name of data file then it should give error something like
    ERROR - {Error no.} - Unable to open file {filename} which should be logged in error file but my error file is still empty.
    I am using the Maxl -
    import database {dbname} data from data_file {filename} on error append to "D:/Error/errorfile.err";
    Any inputs please...
    Thanks

    Try to use single quotes and the backslash. It may depend on the operating system and /or the version of essbase used. This is an example from one of my maxls:
    on error append to 'D:\Hyperion\logfiles\myload.err';
    cheers, chris

  • SQLite encrypted Database does not get attached Using Adobe Air,Why?

    Hi,
    Any one knows the solution, am trying to attach the encrypted SQLite database adobe air-adobe flex bulder , it does not get attached using sqlconnection.attach throws error, though the given key is correct, but it gets open using sqlconnection.open with the same key, any one knows the solution, how to attach the encrypted data base, since am using two data base one is opened and another must be attached to the existing ,thanks in advance. using adobe air- flex related. i use the following code
                   databaseFile1 = File.applicationStorageDirectory.resolvePath("Sample_1.sqlite");
                   databaseFile2 = File.applicationStorageDirectory.resolvePath("Sample_2.sqlite");
    dbConnection.open(databaseFile1, SQLMode.CREATE, false, 1024, secKey);
    dbConnection.attach("db2",databaseFile2,null,secKey);
    got the following error.
    ERROR #3125 Unable to open the database file.

    And I would say more "this is the issue" !
    It should be possible as it is clearly stated in the doc :
    public function attach(name:String, reference:Object = null, responder:Responder = null, encryptionKey:ByteArray = null):void
    with 
    encryptionKey:ByteArray (default = null) — The encryption key for the database file. If the attach() call creates a database, the database is encrypted and the specified key is used as the encryption key for the database. If the call attaches an existing encrypted database, the value must match the database's encryption key or an error occurs. If the database being attached is not encrypted, or to create an unencrypted database, the value must be null (the default).
    so with a same encryptionkey, I (and this should be the same for FinalTarget) can open the encrypted db but not to attach it... quite strange.

  • Error when using %@ include file="/test.jsp"%&

    UsingNitrox version 2.1 M3 (build 419 06022005):
    with jdk version: 1.5.0_03 and Tomcat 5.5.9
    This is the error :cry: when using <%@ include file="/test.jsp"%> in jsp:
    Severity     2
    The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files (test.jsp)
    It used to work in previuos version of Nitrox. I can't use struts tiles because the tiles content is dynamic (run time) and I need it to be static (at compile time).
    Have you encountered this problem? What is the fix? Nitrox bug?
    I need your help please,
    Alberto

    M7,
    I found the problem :wink: . In the java Build path having the default (ALL) is not picking up the content of the package. I had to use add multiple and include all the folders and subfolders (many L) in my packages. After that I added *.java and *.properties to select all the java files. Now it is working. I assume this is a bug in Nitrox. The default ALL should include the all the files in the path.
    Thanks,
    Alberto

  • My Ipod Touch is not getting connected to the itunes its showing error

    my ipod dose not get connected in the itunes its goin on showing an error message whn ever i connect kindly help me plz

    it says tht the ipod cannot connect to d itunes and on my ipod screen an image only i can c the image is like when u buy the ipod and connect it for the first time to your laptop u can see an image right asking u to connect to the itunes only that image i can c and on my itunes page it shows an error that my ipod cannot connect......

  • Not getting connected to a data source in obiee 11g

    Hi friends,
    In OBIEE 11g I cannot able to import meta data into a new repository...
    It is not connecting to data source for importing meta data
    It throws the error like connection is failed....
    I have also restarted the services and also checked for the odbc connectivity it is showing connection is
    successful..
    I also entered the corresponding details in TNS notepad...
    These are the following details
    TEST =
    (DESCRIPTION =
    (ADDRESS =
    (PROTOCOL = TCP)
    (HOST = 172.16.1.110)
    (PORT = 1522)
    (CONNECT_DATA =
    (SID = TEST)
    The data source name that i was given is ORCLBI for my reference...
    Then why it is not getting connecting to the data source..Help me friends For importing tables to my repository as soon as it is connected to the data source...
    Thanks
    Harry...

    Hi,
    Go through venkat reply in this...May help you..Re: Cannot connect to Database from the OBIEE 11g upgraded RPD
    Regards,
    Srikanth

  • TS1398 Hi.. My internet and wifi are working on samsung phone and hp laptop but its not getting connected to iphone ipad, only skype is coming online rest all apps and safari show no internet connection. Got new linksys router WRT160NL , but situation sam

    Hi.. My internet and wifi are working on samsung phone and hp laptop but its not getting connected to iphone ipad, only skype is coming online rest all apps and safari show no internet connection. Got new linksys router WRT160NL , but situation same. Tried reboot, renew lease, forget network, reset network setting. Pls advice

    Have you tried a simple reset of your iPod to see if that helps?  To do this, press and hold both the Sleep/Wake and Home buttons together long enough for the Apple logo to appear.
    Otherwise, have you tried any of the troubleshooting mentioned in this Apple support document?
    iOS: Troubleshooting Wi-Fi networks and connections
    B-rock

  • After moving from my home country (Poland) to the Middle East (UAE) with the same computer I can not get connected to Apple Store and iTunes Store.

    After moving from my home country (Poland) to the Middle East (UAE) with the same computer I can not get connected to Apple Store and iTunes Store. Any clue why?
    Regards,
    Maciek

    Click the round flag icon bottom right corner of the App Store window.

  • HT4623 I can not get connected to App Store , download or update any apps,  EVEN I DID RESET ALL SETTING , STILL I RECIEVE A MESSAGE says: YOUR REQUEST IS NOT PROCESSED ,ERROR COD: 109 !! WHAT DOSE IT MEAN? HOW CAN I SOLVE THE PROBLEM??

    I can not get connected to AppStore , DOWNLOAD OR UPDATE ANY OF MY APPS , WHEN I GO FOR INSTALLING , THE MESSAGE SAYS: YOIR REQUEST IS NOT PROCESSED ,  ERROR CODE, 1009!!! HOW CAN I SOLVE THIS PROBLEM??

    Try contacting the iTunes support staff, they do the app store also, at:  http://www.apple.com/emea/support/itunes/contact.html

  • I just signed the creative cloud, and I'm not getting to use the purchased software. thank you

    I just signed the creative cloud, and I'm not getting to use the purchased software. thank you

    Rodrigo_1405 do you receive any specific error messages?  For information on how to install the Adobe Creative applications included with your membership please see Creative Cloud Help | Install, update, or uninstall apps.

  • Pls tell me use %@ include file="myfile.jsp"% with endcoding UTF-8??

    My jsp pages use some endcoding as UTF-8.
              When I use <%@ include file="myfile.jsp"%> endcoding lose format UTF-8. But
              if I use <jsp:forward page="myfile.jsp"/> it work fine.
              Pls tell me use <%@include %>
              (I use Jbuilder 6 and weblogic server 6.1)
              Thanks .
              

    From http://java.sun.com/products/jsp/tags/12/syntaxref1214.html#8828 (emphasis mine):
    page="{ relativeURL | <%= expression %> }"
    The relative URL that locates the resource to be included, or an expression that evaluates to a String equivalent to the relative URL.
    The relative URL looks like a pathname--it cannot contain a protocol name, port number, or domain name. The URL can be absolute or relative to the current JSP page. If it is absolute (beginning with a /), the pathname is resolved by your web or application server.
    You could use a servlet in your "path" attribute and have that servlet read and return the page from a different server; there are ways to do what you want, but <jsp:include> isn't one of them.

  • GetCoreResourceModificationDate could not get path to timestamp file

    Porting my InDesign CS5.5 Plugin to InDesign CS6, when I build a debug version of the plugin and deploy it to the  InDesign CS6 Debug version and launch InDesign I get "PlugInData::GetCoreResourceModificationDate could not get path to timestamp file: C:\Program Files (x86)\Adobe\Adobe InDesign CS6 Debug\Plug-ins\SCC\(SCCINDDEXTRACTION V7.1.0.17 FOR CS6 Resources)\timestamp.idrc" which suggests that InDesign is expecting to find a "timestamp.idrc" file in the root of my plugin's resources subfolder. I have searched the sdk and google and have found nothing about a timestamp resource for InDesign plugins. Is my plugin resource (.rc or .fr file) supposed to include some kind of timestamp that would cause the resource compiler to generate a timestamp.idrc file?

    OK, I fixed this, but not sure how.
    I think the cache was corrupt.

Maybe you are looking for

  • ABAP Code in Start Routine for restricing the data records from ODS1 - ODS2

    Hi I need small ABAP Code in Start Routine Of Update rules Of ODS . Im in BW 3.5 . I have records like below in first layer ODS and i want to restrict some records while going to second layer ODS .. ODS1 :- DocNO   EventType    Date 123         001  

  • Count column in query

    Hi all, I work with forms 6i and database oracle 8. I want to know if it's possible to count the number of column in a sql query. For exemple, i have : "select id, name, dtbirth from table". In this query, I have 3 column. But I don't know how can I

  • Can you export a PDF to pages?

    Can a PDF document be changed into a pages document?

  • Bapi G/L posting problem

    Hi experts,     am using the bapi  BAPI_ACC_DOCUMENT_POST    for posting GL for t-code f-02. am getting erros like Error in document: BKPFF $ P31CLNT781 No currency line exists for line item 0000000000 Order 6000002 does not exist. whats the problem

  • Problem in installing ADS in CE 7.1 Ehp1

    Hi, I want to install the Adobe Document Services on my CE Ehp1 System.I have downloaded the corresponding SCA file and update file from the servive market place. When i click on the update file,it is asking for Java EE Administrator password.I gave