Skip to Content
author's profile photo
Former Member

Cannot buil Web Dynpro DC with JDBC connection

Hi,

I am working on the NWDS 7.2, trying to deploy my WDP DC on Netweaver CE 7.2. I have added my sqljdbc.jar driver to my build path in order to manage a SQL connection to my database.

When I try to build my project, here are the errors that occur:

-


[javac] ERROR: D:\Workspaces\Agora.jdi\LocalDevelopment\t\5174B44D6E83285F1B26D5FD421664E7\gen_wdp\packages\com\c10\testdbconnector\wd\comp\dbaccesscomp\DBAccessComp.java:23: package com.microsoft.sqlserver.jdbc does not exist

[javac] ERROR: import com.microsoft.sqlserver.jdbc.SQLServerConnection;

[javac] ERROR: ^

[javac] ERROR: D:\Workspaces\Agora.jdi\LocalDevelopment\t\5174B44D6E83285F1B26D5FD421664E7\gen_wdp\packages\com\c10\testdbconnector\wd\comp\dbaccesscomp\DBAccessComp.java:24: package com.microsoft.sqlserver.jdbc does not exist

[javac] ERROR: import com.microsoft.sqlserver.jdbc.SQLServerException;

[javac] ERROR: ^

[javac] ERROR: D:\Workspaces\Agora.jdi\LocalDevelopment\t\5174B44D6E83285F1B26D5FD421664E7\gen_wdp\packages\com\c10\testdbconnector\wd\comp\dbaccesscomp\DBAccessComp.java:25: package com.microsoft.sqlserver.jdbc does not exist

[javac] ERROR: import com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement;

[javac] ERROR: ^

[javac] ERROR: D:\Workspaces\Agora.jdi\LocalDevelopment\t\5174B44D6E83285F1B26D5FD421664E7\gen_wdp\packages\com\c10\testdbconnector\wd\comp\dbaccesscomp\DBAccessComp.java:26: package com.microsoft.sqlserver.jdbc does not exist

[javac] ERROR: import com.microsoft.sqlserver.jdbc.SQLServerResultSet;

[javac] ERROR: ^

[javac] ERROR: D:\Workspaces\Agora.jdi\LocalDevelopment\t\5174B44D6E83285F1B26D5FD421664E7\gen_wdp\packages\com\c10\testdbconnector\wd\comp\dbaccesscomp\DBAccessComp.java:27: package com.microsoft.sqlserver.jdbc does not exist

[javac] ERROR: import com.microsoft.sqlserver.jdbc.SQLServerStatement;

[javac] ERROR: ^

[javac] ERROR: D:\Workspaces\Agora.jdi\LocalDevelopment\t\5174B44D6E83285F1B26D5FD421664E7\gen_wdp\packages\com\c10\testdbconnector\wd\comp\dbaccesscomp\DBAccessComp.java:241: package com.microsoft.sqlserver.jdbc does not exist

[javac] ERROR: public void readDataBase( ) throws com.microsoft.sqlserver.jdbc.SQLServerException {

[javac] ERROR: ^

[javac] ERROR: D:\Workspaces\Agora.jdi\LocalDevelopment\t\5174B44D6E83285F1B26D5FD421664E7\gen_wdp\packages\com\c10\testdbconnector\wd\comp\dbaccesscomp\DBAccessComp.java:300: package com.microsoft.sqlserver.jdbc does not exist

[javac] ERROR: public void writeMetaData( com.microsoft.sqlserver.jdbc.SQLServerResultSet resultSet ) throws com.microsoft.sqlserver.jdbc.SQLServerException {

[javac] ERROR: ^

[javac] ERROR: D:\Workspaces\Agora.jdi\LocalDevelopment\t\5174B44D6E83285F1B26D5FD421664E7\gen_wdp\packages\com\c10\testdbconnector\wd\comp\dbaccesscomp\DBAccessComp.java:300: package com.microsoft.sqlserver.jdbc does not exist

[javac] ERROR: public void writeMetaData( com.microsoft.sqlserver.jdbc.SQLServerResultSet resultSet ) throws com.microsoft.sqlserver.jdbc.SQLServerException {

[javac] ERROR: ^

[javac] ERROR: D:\Workspaces\Agora.jdi\LocalDevelopment\t\5174B44D6E83285F1B26D5FD421664E7\gen_wdp\packages\com\c10\testdbconnector\wd\comp\dbaccesscomp\DBAccessComp.java:310: package com.microsoft.sqlserver.jdbc does not exist

[javac] ERROR: public void writeResultSet( com.microsoft.sqlserver.jdbc.SQLServerResultSet resultSet ) throws com.microsoft.sqlserver.jdbc.SQLServerException {

[javac] ERROR: ^

[javac] ERROR: D:\Workspaces\Agora.jdi\LocalDevelopment\t\5174B44D6E83285F1B26D5FD421664E7\gen_wdp\packages\com\c10\testdbconnector\wd\comp\dbaccesscomp\DBAccessComp.java:310: package com.microsoft.sqlserver.jdbc does not exist

[javac] ERROR: public void writeResultSet( com.microsoft.sqlserver.jdbc.SQLServerResultSet resultSet ) throws com.microsoft.sqlserver.jdbc.SQLServerException {

[javac] ERROR: ^

[javac] ERROR: D:\Workspaces\Agora.jdi\LocalDevelopment\t\5174B44D6E83285F1B26D5FD421664E7\gen_wdp\packages\com\c10\testdbconnector\wd\comp\dbaccesscomp\DBAccessComp.java:356: cannot find symbol

[javac] ERROR: symbol : class SQLServerConnection

[javac] ERROR: location: class com.c10.testdbconnector.wd.comp.dbaccesscomp.DBAccessComp

[javac] ERROR: private SQLServerConnection connect = null;

[javac] ERROR: ^

[javac] ERROR: D:\Workspaces\Agora.jdi\LocalDevelopment\t\5174B44D6E83285F1B26D5FD421664E7\gen_wdp\packages\com\c10\testdbconnector\wd\comp\dbaccesscomp\DBAccessComp.java:357: cannot find symbol

[javac] ERROR: symbol : class SQLServerStatement

[javac] ERROR: location: class com.c10.testdbconnector.wd.comp.dbaccesscomp.DBAccessComp

[javac] ERROR: private SQLServerStatement statement = null;

[javac] ERROR: ^

[javac] ERROR: D:\Workspaces\Agora.jdi\LocalDevelopment\t\5174B44D6E83285F1B26D5FD421664E7\gen_wdp\packages\com\c10\testdbconnector\wd\comp\dbaccesscomp\DBAccessComp.java:358: cannot find symbol

[javac] ERROR: symbol : class SQLServerPreparedStatement

[javac] ERROR: location: class com.c10.testdbconnector.wd.comp.dbaccesscomp.DBAccessComp

[javac] ERROR: private SQLServerPreparedStatement preparedStatement = null;

[javac] ERROR: ^

[javac] ERROR: D:\Workspaces\Agora.jdi\LocalDevelopment\t\5174B44D6E83285F1B26D5FD421664E7\gen_wdp\packages\com\c10\testdbconnector\wd\comp\dbaccesscomp\DBAccessComp.java:359: cannot find symbol

[javac] ERROR: symbol : class SQLServerResultSet

[javac] ERROR: location: class com.c10.testdbconnector.wd.comp.dbaccesscomp.DBAccessComp

[javac] ERROR: private SQLServerResultSet resultSet = null;

[javac] ERROR: ^

[javac] ERROR: D:\Workspaces\Agora.jdi\LocalDevelopment\t\5174B44D6E83285F1B26D5FD421664E7\gen_wdp\packages\com\c10\testdbconnector\wd\comp\dbaccesscomp\wdp\IPublicDBAccessComp.java:127: package com.microsoft.sqlserver.jdbc does not exist

[javac] ERROR: void readDataBase( ) throws com.microsoft.sqlserver.jdbc.SQLServerException;

[javac] ERROR: ^

[javac] ERROR: D:\Workspaces\Agora.jdi\LocalDevelopment\t\5174B44D6E83285F1B26D5FD421664E7\gen_wdp\packages\com\c10\testdbconnector\wd\comp\dbaccesscomp\wdp\IPublicDBAccessComp.java:132: package com.microsoft.sqlserver.jdbc does not exist

[javac] ERROR: void writeMetaData( com.microsoft.sqlserver.jdbc.SQLServerResultSet resultSet ) throws com.microsoft.sqlserver.jdbc.SQLServerException;

[javac] ERROR: ^

[javac] ERROR: D:\Workspaces\Agora.jdi\LocalDevelopment\t\5174B44D6E83285F1B26D5FD421664E7\gen_wdp\packages\com\c10\testdbconnector\wd\comp\dbaccesscomp\wdp\IPublicDBAccessComp.java:132: package com.microsoft.sqlserver.jdbc does not exist

[javac] ERROR: void writeMetaData( com.microsoft.sqlserver.jdbc.SQLServerResultSet resultSet ) throws com.microsoft.sqlserver.jdbc.SQLServerException;

[javac] ERROR: ^

[javac] ERROR: D:\Workspaces\Agora.jdi\LocalDevelopment\t\5174B44D6E83285F1B26D5FD421664E7\gen_wdp\packages\com\c10\testdbconnector\wd\comp\dbaccesscomp\wdp\IPublicDBAccessComp.java:137: package com.microsoft.sqlserver.jdbc does not exist

[javac] ERROR: void writeResultSet( com.microsoft.sqlserver.jdbc.SQLServerResultSet resultSet ) throws com.microsoft.sqlserver.jdbc.SQLServerException;

[javac] ERROR: ^

[javac] ERROR: D:\Workspaces\Agora.jdi\LocalDevelopment\t\5174B44D6E83285F1B26D5FD421664E7\gen_wdp\packages\com\c10\testdbconnector\wd\comp\dbaccesscomp\wdp\IPublicDBAccessComp.java:137: package com.microsoft.sqlserver.jdbc does not exist

[javac] ERROR: void writeResultSet( com.microsoft.sqlserver.jdbc.SQLServerResultSet resultSet ) throws com.microsoft.sqlserver.jdbc.SQLServerException;

[javac] ERROR: ^

[javac] ERROR: D:\Workspaces\Agora.jdi\LocalDevelopment\t\5174B44D6E83285F1B26D5FD421664E7\gen_wdp\packages\com\c10\testdbconnector\wd\comp\dbaccesscomp\wdp\InternalDBAccessComp.java:137: package com.microsoft.sqlserver.jdbc does not exist

[javac] ERROR: public void readDataBase( ) throws com.microsoft.sqlserver.jdbc.SQLServerException {

[javac] ERROR: ^

[javac] ERROR: D:\Workspaces\Agora.jdi\LocalDevelopment\t\5174B44D6E83285F1B26D5FD421664E7\gen_wdp\packages\com\c10\testdbconnector\wd\comp\dbaccesscomp\wdp\InternalDBAccessComp.java:141: package com.microsoft.sqlserver.jdbc does not exist

[javac] ERROR: public void writeMetaData( com.microsoft.sqlserver.jdbc.SQLServerResultSet _resultSet ) throws com.microsoft.sqlserver.jdbc.SQLServerException {

[javac] ERROR: ^

[javac] ERROR: D:\Workspaces\Agora.jdi\LocalDevelopment\t\5174B44D6E83285F1B26D5FD421664E7\gen_wdp\packages\com\c10\testdbconnector\wd\comp\dbaccesscomp\wdp\InternalDBAccessComp.java:141: package com.microsoft.sqlserver.jdbc does not exist

[javac] ERROR: public void writeMetaData( com.microsoft.sqlserver.jdbc.SQLServerResultSet _resultSet ) throws com.microsoft.sqlserver.jdbc.SQLServerException {

[javac] ERROR: ^

[javac] ERROR: D:\Workspaces\Agora.jdi\LocalDevelopment\t\5174B44D6E83285F1B26D5FD421664E7\gen_wdp\packages\com\c10\testdbconnector\wd\comp\dbaccesscomp\wdp\InternalDBAccessComp.java:145: package com.microsoft.sqlserver.jdbc does not exist

[javac] ERROR: public void writeResultSet( com.microsoft.sqlserver.jdbc.SQLServerResultSet _resultSet ) throws com.microsoft.sqlserver.jdbc.SQLServerException {

[javac] ERROR: ^

[javac] ERROR: D:\Workspaces\Agora.jdi\LocalDevelopment\t\5174B44D6E83285F1B26D5FD421664E7\gen_wdp\packages\com\c10\testdbconnector\wd\comp\dbaccesscomp\wdp\InternalDBAccessComp.java:145: package com.microsoft.sqlserver.jdbc does not exist

[javac] ERROR: public void writeResultSet( com.microsoft.sqlserver.jdbc.SQLServerResultSet _resultSet ) throws com.microsoft.sqlserver.jdbc.SQLServerException {

[javac] ERROR: ^

[javac] ERROR: D:\Workspaces\Agora.jdi\LocalDevelopment\t\5174B44D6E83285F1B26D5FD421664E7\gen_wdp\packages\com\c10\testdbconnector\wd\comp\dbaccesscomp\DBAccessComp.java:122: cannot find symbol

[javac] ERROR: symbol : class SQLServerException

[javac] ERROR: location: class com.c10.testdbconnector.wd.comp.dbaccesscomp.DBAccessComp

[javac] ERROR: } catch (SQLServerException e) {

[javac] ERROR: ^

[javac] ERROR: D:\Workspaces\Agora.jdi\LocalDevelopment\t\5174B44D6E83285F1B26D5FD421664E7\gen_wdp\packages\com\c10\testdbconnector\wd\comp\dbaccesscomp\DBAccessComp.java:247: cannot find symbol

[javac] ERROR: symbol : class SQLServerConnection

[javac] ERROR: location: class com.c10.testdbconnector.wd.comp.dbaccesscomp.DBAccessComp

[javac] ERROR: connect = (SQLServerConnection) DriverManager.getConnection(

[javac] ERROR: ^

[javac] ERROR: D:\Workspaces\Agora.jdi\LocalDevelopment\t\5174B44D6E83285F1B26D5FD421664E7\gen_wdp\packages\com\c10\testdbconnector\wd\comp\dbaccesscomp\DBAccessComp.java:251: cannot find symbol

[javac] ERROR: symbol : class SQLServerStatement

[javac] ERROR: location: class com.c10.testdbconnector.wd.comp.dbaccesscomp.DBAccessComp

[javac] ERROR: statement = (SQLServerStatement) connect.createStatement();

[javac] ERROR: ^

[javac] ERROR: D:\Workspaces\Agora.jdi\LocalDevelopment\t\5174B44D6E83285F1B26D5FD421664E7\gen_wdp\packages\com\c10\testdbconnector\wd\comp\dbaccesscomp\DBAccessComp.java:253: cannot find symbol

[javac] ERROR: symbol : class SQLServerResultSet

[javac] ERROR: location: class com.c10.testdbconnector.wd.comp.dbaccesscomp.DBAccessComp

[javac] ERROR: resultSet = (SQLServerResultSet) statement

[javac] ERROR: ^

[javac] ERROR: D:\Workspaces\Agora.jdi\LocalDevelopment\t\5174B44D6E83285F1B26D5FD421664E7\gen_wdp\packages\com\c10\testdbconnector\wd\comp\dbaccesscomp\wdp\InternalDBAccessComp.java:180: package com.microsoft.sqlserver.jdbc does not exist

[javac] ERROR: delegate.writeMetaData((com.microsoft.sqlserver.jdbc.SQLServerResultSet)args[0]);

[javac] ERROR: ^

[javac] ERROR: D:\Workspaces\Agora.jdi\LocalDevelopment\t\5174B44D6E83285F1B26D5FD421664E7\gen_wdp\packages\com\c10\testdbconnector\wd\comp\dbaccesscomp\wdp\InternalDBAccessComp.java:183: package com.microsoft.sqlserver.jdbc does not exist

[javac] ERROR: delegate.writeResultSet((com.microsoft.sqlserver.jdbc.SQLServerResultSet)args[0]);

[javac] ERROR: ^

[javac] 30 errors

-


I used to do the same when I was developing on NWDS 7.0 and it was working fine. Why isn't it working now ?

Thanks in advance for your help.

Thibault

Edited by: Thibault Schalck on Dec 7, 2010 11:27 AM

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    Posted on Dec 07, 2010 at 11:06 AM

    you can search in sdn regarding how to use external jar in sap java development.

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on May 05, 2011 at 05:02 AM

    Hi,Thibault Schalck

    Even i am facing the same issue can u tell me how can it be fixed..!

    Rajnikanth

    Add comment
    10|10000 characters needed characters exceeded