Runtime error "didn't find subcontext 'jdbc'."

hi,
what does it take to make this application run back on WebLogic?
It's a bit boring testing applications on Glassfish...
So i'd prefer all-stage-development in JDeveloper, then final deployment to Glassfish.
I followed to Shay Shmeltzer blog's recommendation on deployement to Glassfish and reversed it.
i set deployment platfroms to Weblogic for Application and ViewController projects
During runtime i get the error:
While trying to lookup 'jdbc.ncsDS' didn't find subcontext 'jdbc'.Resolved
What might cause it?
i set for both DeployPlatform in bc4j.config
<Custom JDBCDataSource="java:comp/env/jdbc/ncsDS"/>

well , i talk about using integrated WL that comes with JDev.
i guess it's all about setting up jdbc in the application
(i hope nobody gets bored setting up integrated WL each day during development)

Similar Messages

  • Javax.naming.NameNotFoundException: While trying to lookup 'jdbc.SampleHR1DS' didn't find subcontext

    hi,
    i have installed hr schema and created a page with a table.when i run the page,
    i am getting  javax.naming.NameNotFoundException: While trying to lookup 'jdbc.SampleHR1DS' didn't find subcontext 'jdbc'. Resolved ''; remaining name 'jdbc/SampleHR1DS'
    Do i need to create data source for this.How to resolve this.
    i am using 11.1.2.4.0 jdev

    there are multiple option of creating data source.which one i should use.
    should i use generic one. what is URL information for oracle xe client.what is driver name?

  • Runtime error - class not found using JDBC driver and thin client

    Hi,
    We are running a small Java application on a Sun server which acts as a thin client connecting to an Oracle 8i server running on a different server.
    JDK version: 1.3.1_01
    OS version: Solaris 7
    JDBC classes file: classes12.zip
    It compiles fine, but get a runtime error (the DriverManager.registerDriver method )
    cruncher [40]% javac -classpath /export/home/mrscot/classes12.zip JDBCtest.java
    cruncher [41]% java JDBCtest
    Exception in thread "main" java.lang.NoClassDefFoundError: oracle/jdbc/driver/OracleDriver
    at JDBCtest.main(JDBCtest.java:7)
    cruncher [42]%
    Program:
    import java.sql.*;
    import java.math.*;
    class JDBCtest {
    public static void main (String args []) throws SQLException {
    try {
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    Connection conn = DriverManager.getConnection(
    "jdbc:oracle:thin@xxxxxxxxx:1521:xxxx", <userid>,<password>);
    Statement stmt = conn.createStatement ();
    ResultSet rset = stmt.executeQuery (".............");
    while (rset.next ())
    System.out.println (rset.getString ("......."));
    rset.close();
    stmt.close();
    conn.close();
    } catch (Exception e) {
    System.out.println("Error: " + e);
    Any ideas? Probably something very, very stupid I'm overlooking!
    Thanks
    Scotty ([email protected])

    Supplementary question:
    Hi,
    We are running a small Java application on a Sun server which acts as a thin client connecting to an Oracle 8i server running on a different server.The Oracle version is 8.1.6
    Will the 'classes12.zip' for 8.1.7 work with
    1.3.1 of the Java JDK, and Oracle 8i 8.16 ??
    Thanks Scotty

  • ABAP runtime error / DDIC_STRUCLENG_INCONSISTENT

    Hi
    I got a ABAP runtime error DDIC_STRUCLENG_INCONSISTENT / short dump while creating a pricing condition record.
    The error is "accoring to the ABAP load, the structure should have been 1675 bytes long, according to information from ABAP dictionary at run time, the structure is 1756 bytes long".
    To correct the error, there was option to regenerate the program SAPMV130. There were other options to look at SAP notes.
    I tried regenerating program SAPMV130 and system is asking for access key which i don't have.
    Is there any solution?
    I am working on a standalone system.
    Thanks

    HI
    Same problem has occured for me while reversing PGI.
    I had re-activated the Data type using abaper.In runtime error,u can find data type
    First u check whether the data type is inconsistent by
    goto SE12, type ur data type then display,then goto Utilities -runtime object-display .here u can see there will be incosistent data type length
    So finally goto SE11,there will be activate button ,save
    I think ur problem will be solved
    Raghu

  • Runtime error while pressing F4 in view

    Hi,
    I have created a View which is used to create a new record in PA0023 table.
    In that ,for one field (PA0023-TAETE)when i m pressing f4 button it is throwing one Runtime Error: " Could not find attribute LANGU ", where as , that attribute itself is not present in the PA0023 table.
    Please help me regarding this issue...
    Thanks,
    Deepika

    Hi Alex,
    I m using HR_Infotype_operation F.M. to Insert the Record into the PA0023 table.
    For getting the search help , i m binding that field to context node of that F.M. using Create container formular .
    And i m doing the same for some other fields also using the same F.M,and the F4 values are populating Correctly for them...only this field is throwing error...
    What could be the problem???
    Thanks,
    Deepika

  • Pop ups on Standard MDM Portal iViews throw Portal Runtime Error

    Hi all,
    We are facing some issues with MDM Standard Search iViews in Portal. We have configured MDM standard iViews using MDM Search Texts iView, MDM Result Set iView, MDM Search Picklists iView, MDM Item Details etc. We are facing a problem with the MDM Search Picklists iViews wherein we have to click the ellipses button to open the pop up. Whenever we open the pop up, the pop up shows Portal Runtime Error. Please find the screenshot below:
    http://img209.imageshack.us/img209/1138/portalruntimeerror.jpg
    The MDM System is working fine. The other Standard iViews are also working fine. The surprising thing is that, when the Super Admin role is assigned to the user, the iViews start working perfectly as shown below:
    http://img696.imageshack.us/img696/6808/worksfinethisway.jpg
    I have checked the permissions also on all these iViews as well as the System object and did not find any problem. Moreoever, this was working fine till some days back. All of a sudden these iViews have stopped working. Please guide me as to what can be the reason for this and any possible solutions.
    Thanks in advance.
    Regards,
    Ankur

    I would check the logs but it sounds like a permission error to me.  Can you or your basis resources modify the Security Zones?
    System Administration -> Permissions -> expand Security Zones folder -> right click on com.sap.pct.mdm.appl.masteriviews and select Open Permissions -> in the assign permissions section add read permissions for a particular user, role, or group which the user getting the error is part of, check the End User checkbox -> Save.  Login to the portal and try again.
    -Greg

  • Runtime Error using JDBC Driver in NetBeans IDE 6.9.1

    Hello,
    I receive a compiler error which reads as follows;
    java.lang.ClassNotFoundException: org.apache.derby.jdbc.EmbeddedDriver
    java.sql.SQLSyntaxErrorException: Schema 'DEMO' does not exist
    Heres the main body of code i am trying to execute.
    public class Main {
    @param args the command line arguments
    public static void main(String[] args) {
    // TODO code application logic here
    try{
    Class.forName("org.apache.derby.jdbc.EmbeddedDriver");
    }catch(ClassNotFoundException e){
    System.out.println(e);
    try{
    Connection con = DriverManager.getConnection("jdbc:derby://localhost:1527/SimpleDBDemo", "demo", "demo");
    Statement stmt = con.createStatement();
    ResultSet rs = stmt.executeQuery("SELECT * FROM DEMO.Table1");
    while (rs.next()) {
    String s = rs.getString("Name");
    float n = rs.getFloat("Age");
    System.out.println(s " " n);
    }catch(SQLException e){
    System.err.println(e);
    I am using NetBeans IDE and have created a database under: Services->Databases-> Java DB->SimpleDBDemo.
    I have a database connection in which theres a simple table (called "TABLE1") created which contains the names and ages of two people. I am trying to access the data of these two people.
    From what i can figure out i am getting a runtime error. I have downloaded a folder called "Microsoft SQL Driver 2005 JDBC Driver" which contains the "sqljdbc.jar" executable file. I copied the jar file to the library in "Program files->Sun->javadb" and then added the file to the project libraries section i.e. "Project->properties->add JAR/Folder->sqljdbc.jar" in netbeans.
    I am still getting the same runtime error. Have i the sqljdbc.jar file added in the wrong place?
    Any help would be greatly appreciated.

    Microsoft SQL Driver 2005 JDBC Driver is not the Derby driver.
    You need the correct JDBC driver for the database you are using, you can't simply grab the first one you find.

  • Eclipse give following error :could not find Java 2 runtime environment

    When I try to start eclipse it is giving me following error could not find Java 2 runtime environment.It was working fine untill I installed a new verson of eclipse although I am not whethar that is the source of problem.
    When i give java -version command in command prompt it shows
    Registry key 'Software\JavaSoft\Java Runtime Environment\CurrentVersion'
    has value '1.4', but '1.6' is required.
    Error: could not find java.dll
    Error: could not find Java 2 Runtime Environment.
    My java Home ,classpath , and path are all set as I say it was earliar woking fine.
    Please Help.

    I know this is a relatively old post, but some people can stumble on this page when doing a search for this problem.
    Anyway, I ran into this on my PC after I installed Sybase which had an older jre.
    Solution:
    1. Run regedit
    2. Look for Java Runtime Environment
    You may have to do multiple searches. Eventually you'll find one with the version number.
    3. Modify the value and change it to the correct version number. (in your case, you would have changed it from 1.4 to 1.6).
    This is much quicker than reinstalling Java every time installing something that uses an older version of Java hoses up the registry value.

  • Error:could not find Java 2 Runtime Environment

    Greetings,i have a java problem with a game(football manager 2008) installation.I have a hp laptop with windows vista installed and when the installation is on 100%.It appears Error:could not find Java 2 Runtime Environment.I have taken some screenshots to help you understand my problem.
    intallation:
    http://img218.imageshack.us/img218/7945/egkatastashba2.jpg
    the error:
    http://img232.imageshack.us/img232/6388/errorty5.jpg
    Also i tried to join a site which java is required and it appeard the following errors:
    http://img87.imageshack.us/img87/6465/sfalmasp6.jpg
    http://img87.imageshack.us/img87/9337/sfalma2sj1.jpg
    PS:I have installed the java(Java(TM)6 Update 5).I hope to receive a reply with the solution of the problem as soon as possible.Thank you
    Edited by: Cap.George on Mar 7, 2008 8:46 AM
    Edited by: Cap.George on Mar 7, 2008 8:47 AM

    Consider going to a Windows forum
    (or better yet, to Microsoft's web site or to a local book store)
    and learning about Vista's "User Account Control".
    At least do a Google search on it.

  • Can't find answer to Query Of Queries runtime error

    Not only I browsed this forum but also googled this problem but unfortunnately I have no luck in finding the answer.
    All I did was writing this simple query:
    <cfquery name="test" dbtype="query">
    select SSN,BirthDate from myquery where SSN <> '' OR BirthDate <> ''
    </cfquery>
    and I got this error:
    Query Of Queries runtime error.
    Comparison exception while executing <>.
    Unsupported Type Comparison Exception: The <> operator does not support comparison between the following types:
    Left hand side expression type = "DOUBLE".
    Right hand side expression type = "STRING".
    I tried the following and did not work either, still got the same error.
    <cfquery name="test" dbtype="query"> 
    select SSN,BirthDate from myquery
    where SSN <> <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value=""/>  
    OR BirthDate <> <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value=""/></cfquery>
    Has someone ever encountered the same problem and know how to solve it?

    HELP ! ! !  Going into testing soon. I need this to work to get correct report results ! ! ! !
    My issue seems similar to the one under discussion and the reply from lawhite01 caught my eye. Can you roll my issue into this discussion?
    This is a 2 parter. The second part is the QoQ part, but the 1st part has a line in the query that is similar to the QoQ one and it uses the same data. Part 1 also throws an error.
    PART # 1.
    I'm trying to use a query table created through QueryNew and then query it.
    I need multiple columns in the query table I create:
    <cfscript>
            tot_AllCurrentDraftListing = QueryNew("AnnounceNum, JP_PDLoc, JP_JS_Title, JP_JS, JP_KW_1, JP_JobTitle, JP_Open, JP_Close, JP_CloseType, JP_CloseName, JP_PosNeed, JP_DirectHire, JP_Desc, JP_Draft, JP_Archived, JP_State, JP_AreaName, JP_AreaID, JP_AreaAlias, JP_Fac_SU, JP_Fac_Facility, JP_FAC_ID, JP_Grade1, JP_sal_low1, JP_sal_high1, JP_Grade2, JP_sal_low2, JP_sal_high2, JP_Grade3, JP_sal_low3, JP_sal_high3, JP_Grade4, JP_sal_low4, JP_sal_high4, JP_Grade5, JP_sal_low5, JP_sal_high5, JP_Posted, JP_TypeHire, JP_HRemail");
        </cfscript>
    Then I populate all the cells of the query table.
    Then I set up to use the created query table.
    I do this first:
        <cfquery name="qAltPostID" datasource="#at_datasource#">
             SELECT AltPoster, fk_Job_AnnounceNum
             from JOB_JPContacts
             Where AltJPContactType = 'AltPosterID'
             and AltPoster = '#session.IHSUID#'
             </cfquery>
    Then, in my first query using the created query, I expect to need to choose from multiple values, so I'm using this line in the query (this is NOT a QoQ query):
                and AnnounceNum IN (<cfqueryparam cfsqltype="CF_SQL_varchar" value="#ValueList(qAltPostID.fk_Job_AnnounceNum)#">)
    I've also tried:
                   and AnnounceNum IN (#ValueList(qAltPostID.fk_Job_AnnounceNum)#)   
    and:
                   and JOB_AnnounceNum IN
                    SELECT fk_Job_AnnounceNum
                    from JOB_JPContacts
                    Where AltJPContactType = 'AltPosterID'
                    and AltPoster = '#session.IHSUID#'
    ERROR is: one record should return. I get 0.
    PART # 2: Here's the QoQ part.
    I get the error:
    Query Of Queries runtime error.
    Comparison exception while executing IN.
    Unsupported Type Comparison Exception: The IN operator does not support comparison between the following types:
    Left hand side expression type = "LONG".
    Right hand side expression type = "STRING".
    A tutorial I found gave an example using only one column for this part of the fix:
         tot_AllCurrentDraftListing = QueryNew("AnnounceNum", "CF_SQL_VARCHAR")
    How would I set up the query with the datatype when I'm using multiple columns:
    <cfscript>
            tot_AllCurrentDraftListing = QueryNew("AnnounceNum, JP_PDLoc, JP_JS_Title, JP_JS, JP_KW_1, JP_JobTitle, JP_Open, JP_Close, JP_CloseType, JP_CloseName, JP_PosNeed, JP_DirectHire, JP_Desc, JP_Draft, JP_Archived, JP_State, JP_AreaName, JP_AreaID, JP_AreaAlias, JP_Fac_SU, JP_Fac_Facility, JP_FAC_ID, JP_Grade1, JP_sal_low1, JP_sal_high1, JP_Grade2, JP_sal_low2, JP_sal_high2, JP_Grade3, JP_sal_low3, JP_sal_high3, JP_Grade4, JP_sal_low4, JP_sal_high4, JP_Grade5, JP_sal_low5, JP_sal_high5, JP_Posted, JP_TypeHire, JP_HRemail");
        </cfscript>
    I used this code after all the cells contained values and before running my QoQ query:
            <cfloop index="intID" from="1" to="#tot_AllCurrentDraftListing.recordcount#" step="1">
                <cfset tot_AllCurrentDraftListing["AnnounceNum"] [intID] = JavaCast("string", intID) />
            </cfloop>
              Is that correct?
    Thanks.
    Whoever can help me with this should be awarded extra points ! ! ! !

  • Runtime Error "Cannot find system in table file"

    I need assistance!
    I have a Blackberry Curve 8310 and have recently installed Version 4.5
    I am trying to setup my synchronization.  I have followed the steps to setup my calendar to Outlook 2007.  It tells me Congratulations! You have successfully configured the product. However, when I press Finish, I get a Runtime Error "Cannot find system in table file"
    I have uninstalled the program and reinstalled it - the same error appears. 
    Any help would be appreciated!
    Solved!
    Go to Solution.

    FIGURED IT OUT!!!  
    The following steps, which are posted on the RIM Support will work; however, I had to do it a different way.  In Step 1, it states that the ilxolkCompanion.fil is located in C:\Program Files\Research In Motion\BlackBerry\Connectors\MS Outlook Connector path...however, when I searched for this file, it was actually located in C:\Program Files\Blackberry\Connectors\MS Outlook Connector.  (This could be because I upgraded from 4.2.2 to 4.5 w/o completing a clean uninstall...not too sure why)
    Once I located the file through the command prompt, I unregistered as per the instructions in Step 1.  I then followed step 2 exactly word for word...and VOILA!!!  I now have Version 4.5 working with MS Outlook 2007
     ResolutionIf the Connectors folder is still present in C\Program Files\Research In Motion\BlackBerry\Connectors\MS Outlook Connector, follow these steps:
    Unregister the old Microsoft Outlook connector ilxolkCompanion.fil.
    Open the command prompt.
    Navigate to C:\Program Files\Research In Motion\BlackBerry\Connectors\MS Outlook Connector.
    Type in the command regsvr32 -u ilxolkCompanion.fil.
    In Desktop Manager, Microsoft Outlook will no longer be listed as an available desktop application.
    Register the most current Microsoft Outlook connector.
    Navigate to C:\Program Files\Research In Motion\BlackBerry\IS71 Connectors\MS Outlook Connector.
    Type in the command regsvr32 msoutlookconnector.fil.
    In Desktop Manager, Microsoft Outlook will now be registered as an available desktop application.
    Once these steps have been completed, configure synchronization again.

  • How do I resolve the "Mozilla cannot find runtime" error message when I try to start Firefox?

    Mozilla Firefox updated to version 36.0. When I click on the Firefox icon to open it I receive the message: "Mozilla cannot find runtime" I receive the same message if I try to open Firefox by selecting "firefox.exe" from within the Program Files. I subsequently uninstall Mozilla Firefox and reinstall it. It will open and run normally right after the re-installation. Then if I close the program and try to re-open it again, I get the same "Mozilla cannot find runtime" error message.
    The only way I can get Firefox to open is if I uninstall and re-install it every time I want to open it after the initial re-installation.

    ''sage68 [[#answer-700841|said]]''
    <blockquote>
    Hi Adriel,
    The "Mozilla cannot find runtime" problem has returned. It occurs in two situations:
    1. When Firefox tries to download updates using "updater.exe" (version 36.0.0.5531), which causes my "Norton Internet Security" program to notify me with the message: "Auto-Protect has removed security risk Suspicious.Cloud.9.B" This message is shown every time "updater.exe" activates.
    </blockquote>
    I also have experienced this during several upgrades, not just the latest. (I am using Windows XP and Norton Security Suite.) Norton identifies c:\program files\mozilla firefox\updated\xul.dll with the Suspicious.Cloud.9.B virus and removes the file. I can set the Norton installation to accept xul.dll but it would make more sense for a Mozilla expert to contact Norton and work out a permanent solution, for all who are facing this problem.

  • How do I find the "Preferences" file within Elements 10 to fix the runtime error?  I can't find it any where

    I am trying to fix the runtime error that occurs when I open the Photoshop Elements 10 editor and shuts down the program.  I am using the instructions found on the abode website here:
    http://helpx.adobe.com/x-productkb/global/troubleshoot-c-runtime-errors-products.html
    There are no good instructions telling me what the Preferences file is named or how to find it. If someone could help that would be great.

    If you are using Windows 7 then the preference file that needs to be renamed is at this location:
    <C:\Users\USERNAME\AppData\Roaming\Adobe\Photoshop Elements\10.0\Editor>
    In the above path, replace USERNAME with your windows profile name  which could be something like jblogetc or whatever.  Also the preference file is called: Adobe Photoshop Elements 10 Prefs.psp and this needs to be renamed to Adobe Photoshop Elements 10 Prefs.old
    Once this done, restart PSE 10 and then see if it works.

  • Portal runtime error: where can I find the system log?

    I got a portal runtime error. Like this:
    Portal Runtime Error
    An exception occurred while processing your request
    Exception id: 10:22_16/05/08_0007_13424550
    Where can I find the log file / more details?
    Thanks
    René

    Hello rene,
    2 ways for accessing log: 
    1) browse portal filesystem : \usr\sap\J2E\JC00\j2ee\cluster\<server instance>\log\
    2) use sap log applications
    I suggest you to use logviewer or visual admin(it contains logviewer) applications. It will display formated logfile and you will be able to filter on severity / User Name / date / .......
    if you are using visual admin, just connect with Visual Admin then browse to  <server name> / services / log viewer then  again <server name> \usr\sap\J2E\JC00
    j2ee\cluster\server0\log and then click on defaultTrace.trc
    it is pretty the same navigation when using logviewer
    Kind Regards
    Cedric Meyer

  • Finding the transaction of an abap runtime error

    hello,
    is it possible to find out the corresponding transaction to an abap runtime error?
    till now i've got all informations like they are shown in ST22 in my abap program. but i'd also like to have the transaction code, not only the corresponding devclass, subapplication and application.
    does anyone know a function module or any other solution for that problem?
    thanks in advance
    joschi

    When you are analyzing your short dump via ST22, there is a section called "User, transaction..." where the following information is shown:
    Client
    User
    Language key
    Transaction
    Program
    Screen
    That section will show you the transaction code you need.
    I hope that helps,

Maybe you are looking for

  • Can't import videos to iTunes!??

    I've been trying to import videos to itunes and for some reason they just won't go in! I have tried dvdrips and already converted to mp4 files on my harddrive, i've even downloaded the sample movie from the apple website to try and import that. When

  • I cannot access PDF files from my current BT Yahoo...

    Since downloading an updated version of Yahoo Mail a few months ago, I cannot now access PDF files from old e-mail messages which are located in the "Folders" section on the mail screen.  When trying to open them the message "Scanning Attachments" is

  • Cannot Get Voice Control to Work

    Just got the new ipod touch for xmas and i have to say it is absolutly amazing, so much better than i expected. However one major thing that is bugging me is the voice control won't work. I have the 32gb version and its the new generation (voice cont

  • Fonts not displaying properly in Safari

    I built a webpage in Adobe Dreamweaver and for the most part the text is editable. It displays properly in all web browsers (internet explorer, chrome, firefox) except for Safari. When I view it in Safari on my MacBook Pro, the sections where text is

  • What all switches do we require for ccnp

                       I am doing training for Ccnp best institute in Delhi , networers zone (http://networkerszone.com/), suggest me what all series switches access is required for ccnp, apart from Cisco 6500, cisco nexus, cisco 3770 and 2960.