OC4j Developer Preview problem with JDBC

I'm running the developer preview of OC4J (9.0.4) and trying to get a connection to SQL Server 2000 for my CMP 2.0 entity beans.
I have a setup and configuration that works on Orion 2.0, but when I moved it over to OC4J it no longer worked. I get an error
SQL error: Io exception: The Network Adapter could not establish the connection
I checked my data-sources.xml file to make sure the syntax was OK and the driver url and properties were correct (they worked on Orion so they should be), and they looked OK.
This fails both with the JSQLConnect driver and with the recommended DataDirect driver. For the latter my data-sources.xml entry looks like:
<data-source
class="com.evermind.sql.DriverManagerDataSource"
name="MSSQL"
schema="database-schemas/ms-sql.xml"
location="jdbc/foo"
xa-location="jdbc/foo"
ejb-location="jdbc/foo"
connection-driver="com.ddtek.jdbc.sqlserver.SQLServerDriver"
url="jdbc:sqlserver://localhost;DatabaseName=foo;User=foouser;Password=foo"
username="foouser"
password="foo"
max-connections="5"
min-connections="2"
inactivity-timeout="30"
/>
The same URL works fine using DataDirect's JDBC Test utility.
I can't find anything useful in any of the OC4J logs and have basically run out of options to get OC4J working.
Any help much appreciated.
Thanks
Alan

Hi Steve
I had the JDBC driver jars in j2ee/home/lib (with pointers via <library> tags in server.xml).
The j2ee/home/applib directory didn't exist so I created it and copied the driver files there but alas it didn't help. (I also modified the appropriate <library> tags in server.xml but that didn't help.) I still get the same error.
When I removed the JDBC driver jars altogether then I did get an additional error:
Error initializing data-source 'jdbc/foo': DriverManagerDataSource driver 'com.ddtek.jdbc.sqlserver.SQLServerDriver' not found.
So it looks like the underlying problem is not inability to load the jars.

Similar Messages

  • Mac OS X Lion Developer Preview Problems With Update

    So I just downloaded Preview 2 from the App Store with the Redemption Code, and now I've installed it and the computer takes FOREVER to start up!!! I mean like a whole day! I need lion to develop my work applications! Please Help!

    >I need lion to develop my work applications!
    What part of 'beta' don't you understand?

  • I have a problem with JDBC Realm in Tomcat/Oracle/Win XP

    I have a problem with JDBC Realm in Tomcat.
    I have attached my server.xml file located in the
    C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\server.xml
    The Problem is that when I login I get the user name and password prompt but it does not resolve.
    When I enter in the tomcat-users.xml password with memory realm uncommented it works fine.
    C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\tomcat-users.xml
    Is there a cache or something I need to reset for the JDBC Realm to work?
    I have attached my tables and contents as well...
    Did I miss something????
    Thanks
    Phil
    server.xml
    <Server port="8005" shutdown="SHUTDOWN">
    <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" />
    <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
    <Listener className="org.apache.catalina.storeconfig.StoreConfigLifecycleListener"/>
    <!-- Global JNDI resources -->
    <GlobalNamingResources>
    <!-- Test entry for demonstration purposes -->
    <Environment name="simpleValue" type="java.lang.Integer" value="30"/>
    </GlobalNamingResources>
    <!-- Define the Tomcat Stand-Alone Service -->
    <Service name="Catalina">
    <!-- Define a non-SSL HTTP/1.1 Connector on port 8080 -->
    <Connector
    port="8080" maxHttpHeaderSize="8192"
    maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
    enableLookups="false" redirectPort="8443" acceptCount="100"
    connectionTimeout="20000" disableUploadTimeout="true" />
    <!-- Define an AJP 1.3 Connector on port 8009 -->
    <Connector port="8009"
    enableLookups="false" redirectPort="8443" protocol="AJP/1.3" />
    <!-- Define the top level container in our container hierarchy -->
    <Engine name="Catalina" defaultHost="localhost">
    <!--
    <Realm className="org.apache.catalina.realm.MemoryRealm" />
    -->
    <Realm className="org.apache.catalina.realm.JDBCRealm"
    driverName="oracle.jdbc.driver.OracleDriver"
    connectionURL="jdbc:oracle:thin:@localhost:1521:orcl"
    connectionName="testName" connectionPassword="testPass"
    userTable="users"
    userNameCol="user_name"
    userCredCol="user_pass"
    userRoleTable="user_roles"
    roleNameCol="role_name" />
    <!-- Define the default virtual host
    Note: XML Schema validation will not work with Xerces 2.2.
    -->
    <Host name="localhost" appBase="webapps"
    unpackWARs="true" autoDeploy="true"
    xmlValidation="false" xmlNamespaceAware="false">
    </Host>
    </Engine>
    </Service>
    </Server>
    Tables
    create table users
    user_name varchar(15) not null primary key,
    user_pass varchar(15) not null
    create table roles
    role_name varchar(15) not null primary key
    create table user_roles
    user_name varchar(15) not null,
    role_name varchar(15) not null,
    primary key( user_name, role_name )
    select * from users;
    ----------------------+
    | user_name | user_pass |
    ----------------------+
    | tomcat | tomcat |
    | user1 | tomcat |
    | user2 | tomcat |
    | user3 | tomcat |
    ----------------------+
    select * from roles;
    | role_name |
    | tomcat |
    | role1 |
    select * from user_roles;
    -----------------------+
    | role_name | user_name |
    -----------------------+
    | tomcat | user1 |
    | role1 | user2 |
    | tomcat | tomcat |
    | role1 | tomcat |
    -----------------------+

    Jan 2, 2008 11:49:35 AM org.apache.coyote.http11.Http11Protocol init
    INFO: Initializing Coyote HTTP/1.1 on http-8080
    Jan 2, 2008 11:49:35 AM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 734 ms
    Jan 2, 2008 11:49:35 AM org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    Jan 2, 2008 11:49:35 AM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/5.5.9
    Jan 2, 2008 11:49:35 AM org.apache.catalina.realm.JDBCRealm start
    SEVERE: Exception opening database connection
    java.sql.SQLException: oracle.jdbc.driver.OracleDriver
         at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:684)
         at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:758)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1004)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
         at org.apache.catalina.core.StandardService.start(StandardService.java:450)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:683)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
    Jan 2, 2008 11:49:35 AM org.apache.catalina.core.StandardHost start
    INFO: XML validation disabled
    Jan 2, 2008 11:49:36 AM org.apache.catalina.core.StandardContext resourcesStart

  • TS1702 I have developed a problem with some of th apps that connect and the throws you out of the games losing. Life or they won't connect at all can anyone offer a suggestion to solve problem

    I have developed a problem with some of my games apps - it closes the app and therefore less life's - it is not all games yangy suggestions

    What???

  • SQL Developer connection issue with JDBC

    Hi skutz & friends,
    I have problem with Oracle SQL Developer I can not connect to any oracle db
    because Status : Failure -Error loading native JDBC driver library.
    However, I download SQL developer [ Oracle SQL Developer for Windows (JDK1.5.0_06 is bundled in this zip) ]
    After it is not working. Also I download JDK 5.0 Update 14
    The Java SE Development Kit (JDK) to install it on my PC again.
    But it does not work. My install path information:
    install path as C:\Program Files\SQLDEVELOPER_INSTAL\sqldeveloper
    local oracle as !0g 10201
    SQL version as sqldeveloper-1.2.1.3213 which download last versionfrom OTN on 2/18/2008.
    for connection, taken basic.
    port as default 1521
    hostname and saver name are same.
    I created a environment variable in window xp.
    SQLDEVELOPER_USER_DIR AS C:\Program Files\SQLDEVELOPER_INSTAL\sqldeveloper
    can anybody help me with this connection?
    thanks
    Jimmy

    Duplicate thread: Please enter all responses on other thread: SQL seveloper connection issue with JDBC

  • Problem with JDBC and Tomcat

    I don't know where the problem originate, the only thing in my memory is that the program worked very well on my PC yesterday, but today, without even slightest change, it doesn't work anymore. As to debug it, I simplified the codes to the least, but it still refuse to work. I was beaten down by this problem totally, and cannot make out any solution for it, so, I come here, hoping to find a warrior to kill this damned bug for me.
    My program is a Servlet, but for the purpose of debugging, I have recode it to an Application/Servlet. When run as a application, I can get the result expected, but as a Servlet, :-(, maybe you should see it by yourself. My server software is Tomcat 4.1.15, and the JDK version is 1.4.0. To excute this program, you should add Data Source "Test" to ODBC.
    ///////////////////////code begins/////////////////////////
    import java.sql.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import java.util.*;
    public class Ex extends HttpServlet
         int ErrorType = 0;
         String err = new String("");
         public static void main(String args[]) throws Exception{
              Ex cEx = new Ex();
              cEx.init();     
              System.out.println(cEx.ErrorType);     
         public void init() {
              String url = "jdbc:odbc:Test";
              ErrorType = 3;     //passed
              try{
                   Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
              } catch (ClassNotFoundException e) {
                   e.printStackTrace();
                   ErrorType = 1; //trapped in Class.forName
              try{
                   Connection c = DriverManager.getConnection(url);
              } catch (SQLException e) {
                   e.printStackTrace();
                   ErrorType = 2; //trapped in DriverManager.getConnection
                   err = e.getMessage();
         public void service(HttpServletRequest req, HttpServletResponse res)
                   throws IOException {
              res.setContentType("text/html; charset=GB2312");
              PrintWriter out = res.getWriter();
              out.println("Success " + "<p>" + ErrorType + "<p>" +err);
              out.close();
    //////////////////////////code ends///////////////////////////////
    The result from the Servlet tell me that the problem occurred within the connection process, I don't know who should be responsible to this - Tomcat or JDBC?

    If you could print the exception that you got then that would help :) In the mean time, I could make a guess. It is unlikely that your application server (in this case, Tomcat) is blocking connections from your servlet. So the problem is either with JDBC directly or with the underlying datasource. It seems unlikely that it is JDBC given that you have stated that the code has not changed and it works in application form.
    My guess would be that you are coming up against some sort of security constraint (eg: your DBMS is letting you log in from one IP but not another?, your Java plug-in security policy is disallowing the connection?). It's hard to say.
    But if it works as an application but not via a servlet then you could try putting this in your java.policy file, which is located in the directory where your plug-ins are installed (eg: "C:\Program Files\Java\<version>\lib\security\") on Windows systems;
    permission java.net.SocketPermission "bend xp:1099", "listen,connect,accept";
    Try that, see if it works :)
    Ben

  • Problem with JDBC results calling simple stored procedure in VC 7.0

    Hi all,
    I am building a simple VC model which calls a stored procedure on a JDBC database. I have created the system in the portal, defined the alias and user mapping, the connection test is fine and the VC "find data" lists my bespoke stored procedure.
    The stored procedure is :
    CREATE PROCEDURE dbo.dt_getBieUsers
    AS
    select * from dbo.emailuserlink
    GO
    When I test it using query analyser, it returns 3 records each with the two fields I expect - user and email address.
    I drag the model onto the workspace in VC and create an input form ( with just a submit button ). i drag the result port out to create a table. This has no fields in it.
    I build and deploy as flex and the app runs, I click the submit button and SUCCESS! I get 3 records in my table each with 2 fields. The data is all correct. The problem with this is the fields are determined at runtime it seems.
    I go back to the table and add 2 columns "email" and "address".
    i build and deploy and run the app. Again I get 3 records, but this time the contents of all of the rows is not data, but "email" and "address". The data has been replaced by the header texts in all of the rows.
    Can anyone help? Why isn't the data being put in my columns as I would expect?
    I tried to build and deploy the app as Web Dynpro rather than Flex to see if it was a bug in Flex. The application starts but when I click the submit button to run the JDBC stored procedure I get a 500 Internal Server Error
    com.sap.tc.wd4vc.intapi.info.exception.WD4VCRuntimeException: No configuration is defined for the entry JDBCFunction
        at com.sap.tc.wd4vc.xglengine.XGLEngine.createComponentInternal(XGLEngine.java:559)
        at com.sap.tc.wd4vc.xglengine.XGLEngine.getCompInstanceFromUsage(XGLEngine.java:362)
        at com.sap.tc.wd4vc.xglengine.XGLEngine.getCompInstance(XGLEngine.java:329)
        at com.sap.tc.wd4vc.xglengine.wdp.InternalXGLEngine.getCompInstance(InternalXGLEngine.java:167)
        at com.sap.tc.wd4vc.xglengine.XGLEngineInterface.getCompInstance(XGLEngineInterface.java:165)
    The JDBC connection I am using has a connection URL of jdbc:sap:sqlserver://localhost;DatabaseName=BIEUSERS
    and a driver class of com.sap.portals.jdbc.sqlserver.SQLServerDriver
    Can anyone solve my wierd problems?
    Cheers
    Richard

    Hi Richard,
    After you drag and drop the data service, right click on it and choose "Test data service". Then click on "Execute" and after you see the result on the right, click on "Add fields" button (inside the same window). Now you'll see that the fields are on the tabel. This is required only for JDBC data services, since this data (how the resultset is built) is not know in DT and it needs to be run firest - then analysed and only then you have to add the fields to the table).
    Regards,
    Natty

  • Bridge CS 6 preview problem with video files

    Hey Community,
    I have a problem with the preview in Adobe Bridge Cs 6.
    With the pictures and photos everything is fine, but every kind of video format is not displayed as a preview in the preview window, so that I have to open each video manually by doubleclicking on it, so that it is opens in Quicktime.
    Is there an opportunity to get that fixed? I just see the Quicktime or VLC-Icon, nothing more.
    I tried to purge to cache, to set everything to defaults but nothing worked.
    Thank you in advance und best regards.
    Alex

    Doubleclicking on the files in Bridge causes that quicktime or VLC or itunes (depending on the file format) will open that, but bridge does not handle anything?!
    Bridge CC and Bridge CS6 both handle my .mov files from EOS 1Dx and iPhone without any problems. The show in the preview window and can be played with sound in this same window. (MacPro with 10.8.4)
    Purging cache is what it is, it dumps the previous cache of the preview and forces Bridge to create a new one, nothing else is set to default.
    First try a reset of preferences and hold down option key while restarting Bridge and choose reset prefs. then try again.

  • Preview problems with Adobe pdfs

    Hi all
    I hope this is in the right place ... I've checked through the forums, but couldn't find a problem like this anywhere.
    I have just upgraded from a PowerMac G4 dual to a PowerMac G5 dual-core, both running the latest version of Tiger and have managed to migrate across most things. However, there is one problem I'm having which is a bit frustrating.
    I use the Adobe CS2 for most of my work, but since changing machines, the Export/Save As PDF features aren't working properly. If I Export any document to pdf from InDesign, it will then not open in Preview, giving a particularly vague error: "File Error. Couldn't open the file." If I then open it up in Reader or Acrobat Pro it works, but when closing it afterwards, it asks me to Save the file (though to my knowledge I haven't made any changes). The file will then open in Preview.
    A similar thing happens in Illustrator, but with a twist ... a file Saved as pdf will open straight away in Preview, but once closed won't then open again, until I go through the same process with Acrobat. Having the tested the files on other Macs, the problem is with the files, as they don't open on any machine, nor on a PC (before realising the problem, I sent a pdf to a client).
    Does anyone have any ideas why this is happening? Any help will be much appreciated. Thanks in advance <d>

    Hi Vipir
    Thanks for the quick reply!
    When making the pdfs, I didn't use any of the standards (to maximise compatibility), but I tried every available version of Acrobat (from 4 to 7) and all produced the same result. When I started, I had them Optimised, but after reading a few things online, I tried without Optimising, and then without Tagging them, but still without success.
    The end result seems to be a pdf which will only open on Reader or Acrobat Pro, after being fixed by them in some way. If not opened in either of them, then they don't seem to be able to be opened by anyone (regardless of platform or program).
    Maybe I've been lucky in the past, but I've never experienced any problems with pdfs before, and I just got used to pdfs being fairly 'bullet-proof!'
    Thanks for your help <d>

  • Preview problem with C&EN pdf document

    Hi,
    I have problem with correct font view of some pdf (from web with password) in application Preview. When I have tried open file in Acrobat Reader or my iPhone it works fine. So, I have reinstalled Lion OSX again, I have checked Font Book in OSX Lion, but exclamation marks show me only duplicated fonts and only one problem with very rare font (Bauhaus 93). When I see pdf in Safari its also OK, but after saving it is "broken" (see supporting files).
    Thank you.
    Jan Bárta
    Czech Republic

    Hi Gangisetty,
    I guess there is no need to change any settings.
    You just need to change format from OTF to PDF using some FM.
    You can refer following links for conversion of OTF to PDF.
    Re: sending INVOICE as attachment in PDF for  external Mail address
    FM to send an email with a PDF attachment
    http://an-abaper.blogspot.com/2009/07/sending-smartform-as-pdf-through-mail.html
    Hope this will help you.
    Regards,
    Vivek

  • Problem with JDBC

    Hi, sorry but in other forum nobody answer my question.
    the probles is using JDBC 2.0, my cod is:
    Statement c = conn.createStatement();
    Statement =conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);
    ResultSet rest = n.executeQuery("select * from t_prueba");
    rest.last();
    rest.updateBlob("C", null);
    rest.updateRow();
    rest.close();c.close();conn.close();
    at time to execute this code, i have this error:
    java.sql.SQLException: Operaci�n no v�lida para el juego de resultados de s�lo lectura: updateBlob
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:124)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:161)
    at oracle.jdbc.driver.BaseResultSet.updateBlob(BaseResultSet.java:482)
    at oracle.jdbc.driver.OracleResultSet.updateBlob(OracleResultSet.java:1230)
    at mypackage3.Conversor.leerImagenBase64(Conversor.java:51)
    at mypackage3.Conversor.main(Conversor.java:77)
    why is this problem if i using ResultSet.CONCUR_UPDATABLE in my statement.
    i 'm using jdeveloper 10.1.2 whith j2se 1.4.2_04
    please anyone can help me please
    tanks
    alex

    There are numerous problems with what you posted.
    1) Do you mean to use updateNull and not what you are doing?
    2) As mentioned why would you not do this in an UPDATE query? Even if you get this to work arbitrary moving around in a result set that you don't even need along with bad practices like SELECT * is just bad all around.
    3) Further as mentioned what you are trying to do is not supported (obviously) by your driver/database etc. Just because you ASK for a scrollable updatable cursor does not mean that you get one. You ask for one but obviously that error message says that the cursor is read only. For the benefits of others it says (more or less) "invalid operation on read only result set : updateBlob"
    Possibly you will have to use a forward only cursor to make it updateable... I don't know consult the Oracle docs. Or better yet don't do it this way.

  • Web AS 6.40 Sneak Preview: Problems with monitoring Database with SQL Studi

    Hello!
    I'm new with SAP and SAP Web AS, and I installed the SAP Web AS 6.40 Sneak Preview recently. I'm exercizing with the tutorials, and in the Tutorial "Car rental Application", a "QCR_RESERVATION" database is created and deployed.
    The deployment worked fine, but I'm having problems accessing the SAP DB with SQL Studio.
    At first, I didn't find SQL studio in my SAP installation, so I installed it afterwards. I now tried to log on with the data mentioned in the tutorial (localhost, C11, SAPC11DB and "sap"), and got the error "Database not running (-709)". Looking at the SAP Management Console, I found a database with the name "J2E", so I tried this one.
    But now the problem is, that with user SAPJ2EDB and password "sap", I get the error "(-4008) Unknown username and password", and the same error with the combination "control", "control".
    What is my mistake? Could anybody give me a hint? Maybe there is something wrong with my Web AS 6.40 Sneak Preview Installation? I don't remember having changed any settings during installation ...
    Thank you in advance
    Bärbel Wolf

    Dale, thank you very much.
    Your hint really is useful, I know myself, I'd most probably need unlocking my admin user soon. )
    But nevertheless, I'm still looking for the right password for the database user "SAPJ2EDB".
    As I'm encountering problems with the "Quick Car Reservation" tutorial (the entity bean seems unable to access the database, too), I'd like to check the QCR_RESERVATION database with my SQL Studio. Maybe there's something wrong with it.
    Greetings
    Bärbel

  • Problems with jdbc and .jar files.

    I am having a problem with connecting to my database when running my .jar file as an executable.
    It connects correctly when I use the java command in command prompt and it also runs correctly when using my IDE.
    Is there something that needs to be added to the manifest or in the code it self inorder for the program to find the JDBC driver correctly?

    This is the error message that I get:
    java.lang.ClassNotFoundException: net.sourceforge.jtds.jdbc.Driver
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at AboutFrame2$Connect.getConnection(AboutFrame2.java:109)
    at AboutFrame2$Connect.displayDbProperties(AboutFrame2.java:127)
    at AboutFrame2.<init>(AboutFrame2.java:72)
    at MainStartFile2.main(MainStartFile2.java:7)
    Error Trace in getConnection() : net.sourceforge.jtds.jdbc.Driver
    Error: No active Connection
    I think that it is because it cannot find the driver. I am going to add the path to the manifest and see if that works thank you for all the help.

  • Problem With Jdbc-Odbc BRidge Connection

    I get The following error
    SQLException:[Microsoft][ODBC Driver Manager] Invalid cursor state
    when using the code
    whats the problem with it
    import java.sql.*;
    public class Employee {
    String DBurl;
    Connection con;
    public Employee(String url)
    DBurl=url;
    void queryTest()
    String query="SELECT * FROM EmpTable";
    ResultSet result;
    Statement stmt;
    try{
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    catch(java.lang.ClassNotFoundException e){
    System.err.println("Class not Found Exception:");
    System.err.println(e.getMessage());
    try{
    con=DriverManager.getConnection(DBurl,"myLogin","mypassword");
    stmt=con.createStatement();
    result=stmt.executeQuery(query);
    System.out.println("ID"+"\t"+"Name"+"\t"+"Rate"+"\t"+"DeptID");
    System.out.println("--"+"\t"+"----"+"\t"+"---"+"\t"+"----");
    while(result.next());
    String name=result.getString("Name");
    int ID=result.getInt("ID");
    float rate=result.getFloat("Rate");
    int deptID=result.getInt("DeptID");
    System.out.println(ID+"\t"+name+"\t"+rate+"\t"+deptID);
    stmt.close();
    con.close();
    catch(SQLException ex){
    System.err.println("SQLException:" + ex.getMessage());
    public static void main(String args[])
    Employee app = new Employee("jdbc:odbc:Employee");
    app.queryTest();
    }

    here's your mistake:
    while(result.next());  // <--- the loop body is empty.Remove the semi-colon.
    %

  • SAP NW Developer Studio: Problem with Import Development Configuration(DC)

    Dear Experts!
    I have a problem with SAP NetWeaver Developer Studio when import a Developement Configuration.
    I create a Software Component(SC) in SLD( with Dependencies:  SAP J2EE Engine, SAP Java Tech Service, DI BUILD TOOL, Then I create a Development Configuration(DC) and add this SC.
    On SAP Netweaver  Developer  Studio I import this DC. I see on the Component Browser My DC include: my software conponent , and SCs: SAPJEE, SAP_BUILDT, SAP_JTECHS but in DC detail there are nothing. So I cannot create the Development Component
    Please help me resolve this issue.
    Thanks all

    Hi,
    you cannot see the DCs (for SCs like SAPBUILDT, JTECHS, JEE, etc) in NWDS, because there is nothing imported into the buildspace(s) DEV (and cons).
    You need to go to the http://<host>:<port>/devinf -- CMS webui, to the Transport Studio, go to the Check-in tab, and check-in all the software you can see in the queue (which you have also added previously in SLD for your software) . This is a quick process, you'll see your software moved to the Development tab and waiting for import.
    Import all the components. This can take longer. As soon as all of them finished, you can open up your NWDS again. In order to see the DCs this time when you expand the corresponding node, you need to reimport (but at least) update the development configuration  (you do it in NWDS in the context menu of the development config in question).
    Best Regards,
    Ervin
    Edited by: Ervin Szolke on Sep 2, 2010 1:26 PM

Maybe you are looking for