Class path error in connection to jdbc system
Dear all,
I m trying to create a jdbc conection to access the a system "jdbc" in the portal database.I have included four jar files namely
Generic connector.jar
Helper.jar
Extended connector.jar
com.sap.portal.ivs.connectionserviceapi.jar
bt still i m getting a class path error.the error says
"The project was not built since its classpath is incomplete. Cannot find the class file for com.sap.portal.services.api.connectorgateway.IConnectorGatewayService."
Can anyone help me resolve this error.
Regards
Shaila
Hi Shila,
Actually Portal runs on Web Application server.The server does not know any details about R/3 system which you want to connect. for that first you have to configur Your J2ee Engine And than Proceed.
for configuring J2ee Engine see ths notes.
<a href="http://help.sap.com/saphelp_nw70/helpdata/en/93/8aea385252494d9b1eb92e0b7f1bad/content.htm">Notes</a>
and go through thease links it will be full to you...
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6209b52e-0401-0010-6a9f-d40ec3a09424
http://help.sap.com/saphelp_nw04s/helpdata/en/5e/4d48b62fe54c23a8dbef364a289d8f/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/93/8aea385252494d9b1eb92e0b7f1bad/frameset.htm
Reward Points if Helpfull.
Regards
Vinit
Similar Messages
-
"no ocijdbc11 in java.library.path" error when connecting a TNS database co
Hi
"no ocijdbc11 in java.library.path" error when connecting a TNS database connection
I have the same problem 'error code' when testing the connection to a database although I have an APEX db that connects without a problem.
I have re downloaded jre & SQL Developer just to ensure all files are where they should be with no luck.
I've also tried most of the suggestions in various threads.
Does anyone know what exactly causes this error?
eg; should I be looking for a file called 'ocijdbc11' & put it into the 'java.library.path' path?
Can anyone explain to a newbie at db connections what I should do?
I'm using the 'thin' client as the checkbox is clear & I don't know what path to enter into the correct file to make this work??
This is & needs to connect as a TNS connection & was working fine until recently, the only change I can think of is a move of files from the 'C' drive but I thought redownloading SQL Developer would slove this.
ThanksWhen you reinstalled SQL Developer, did you install into a new directory (ie rename or delete the old directory first)?
I don't know if system setup contains directory references (which might be invalid after moving the location of SQL Developer). Does renaming your system2.1.1.64.45 directory (in C:\Documents and Settings\username\Application Data\SQL Developer) help? Note that your connections are in the connections.xml file in the o.jdeveloper.db.connection.11.1.1.2.36.55.30 subdirectory of system2.1.1.64.45 - you will either need to export connections before renaming and then import again after or copy this file to test if you can connect.
Finally, the TNS Names directory preference is just a way of telling SQL Developer where to look for the tnsnames.ora file, rather than just assuming it will pick the right one. If you go to create a new connection, do you get the right list of TNS aliases? If not, then set this preference to the directory where the right tnsnames.ora file lives.
theFurryOne -
Hi Guys,
I was trying to write an WD application to check connector connectivity in EP, I have included these jar files in class path "com.sap.portal.ivs.connectorservice_api.jar" and "GenericConnector.jar".
The codes are like
IConnection connection = null;
IConnectorService cs = (IConnectorService) PortalRuntime.getRuntimeResources().getService(IConnectorService.KEY);
IConnectorGatewayService cgs = cs.getIConnectorGatewayService();
connection = cgs.getconnection(Alias,request)
but as soon as I write this last line getconnection() I get error which is "Compilation unit indirectly references the missing type com.sap.portal.services.api.connectorgateway.IConnectorGatewayService(typically some required class file is referencing a type outside the class path)"
and this given below error comes when I build the project.
"The project was not built since its classpath is incomplete. Cannot find the class file for com.sap.portal.services.api.connectorgateway.IConnectorGatewayService. Fix the classpath then try rebuilding this project."
can any one please tell me how can I fix this problem.
Thanks in advance
Best Regards
Yasir Noman
Message was edited by: Yasir NomanHi,
I am facing the problem of class path errors.
my error is :
*Error: Missing required library: 'C:Program Files/SAP/IDE/IDE70/eclipse/plugins/com.sap.security2.0.0/lib/com.sap.security.api.jar'.*_
And when I checkd on the program file \ lib folder there is .jar file.
And the second error is
Error: The project was not built due to classpath errors (incomplete or involved in cycle).
I tried to rebuild it and also repair it with project structure and classpath. so that it can find the missing libraries.
I checked it out in the properties of the project in Java Build path it is showing an error of build path entry is missing
Please can anyone help on this error.
I am stuck on this error for past a long time.
Please Reply asap. -
ORA-105100 Import Java Class (Not a class path error)
i have a problem while using java imported class
java class
import java.io.*;
import java.lang.*;
import java.util.*;
public class externalCall{
public static String Run(String One, String Two){
String commandOutput = null;
commandOutput = concat(One,Two);
return commandOutput;
public static String concat(String One, String Two){
return One+Two;
the problem is that when using externalCall.run from oracle forms it is generating
error ORA-105100 err.
This is not a class path error as we are able to access concat function of java
class using Import Java Class.
Any Clues?...
Best Regards
AshishORA-105101 when using Java Importer
-
Windows classpath vs java.class.path error in QuickTime based applet
Hello
I've spent days reading and searching the internet, and I'm still stumped why some Windows installations are not able to run my QuickTime for Java based applet even though QuickTime is installed (the specific error is: java.lang.NoClassDefFoundError: quicktime/QTException). I have some additional details and a question that might spur someone to an insightful nudge.
On a Windows system that fails:
echo %classpath%
.;C:\Program Files\QuickTime\QTSystem\QTJava.zipWhich is where QTJava.zip is found on the (faulty?) system, but java.class.path is just:
java.class.path = C:\PROGRA~1\Java\jre6\classes
Of the dumped system properties, only java.library.path makes any mention of the QTSystem folder (or any other QT or QuickTime related items).
java.library.path = C:\Program Files\Safari;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\PROGRA~1\Java\jre6\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\QuickTime\QTSystem\
I ran across one thread (elsewhere) where the user was having problems with loading some classes from a complex JAR environment, and a solution was to write a custom class loader. After doing so, the user got the same error "java.lang.NoClassDefFoundError: quicktime/QTException" that was resolved by extending the custom class loader to include .zip files. I'm not sure if the solution is relevant, or if he simply broke something in his custom class loader that would have worked otherwise. I've not written a custom class loader and not sure where to begin, so before I ventured down that path I was hoping someone might shed some light as to if this is a dead end or potential solution. This is a signed applet (QuickTime now requires it, even if you are only playing files of the same server) and it does work on several Windows machines and all tested Macs.
Thank you,
Deron
output to Java Console with level 5 tracing enabled
basic: Joining applet thread ...
basic: Joined applet thread ...
basic: Referencing classloader: sun.plugin.ClassLoaderInfo@750159, refcount=2
basic: Finding information ...
basic: Releasing classloader: sun.plugin.ClassLoaderInfo@750159, refcount=1
basic: Done ...
basic: Added progress listener: sun.plugin.util.GrayBoxPainter$GrayBoxProgressListener@3a9bba
basic: Loading applet ...
basic: Initializing applet ...
basic: Starting applet ...
basic: completed perf rollup
network: Cache entry not found [url: http://www.equushd.com/quicktime/QTException.class, version: null]
network: Connecting http://www.equushd.com/quicktime/QTException.class with proxy=DIRECT
network: Connecting socket://www.equushd.com:80 with proxy=DIRECT
java.lang.NoClassDefFoundError: quicktime/QTException
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
at java.lang.Class.getConstructor0(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: quicktime.QTException
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
... 10 more
basic: Exception: java.lang.NoClassDefFoundError: quicktime/QTException
Ignored exception: java.lang.NoClassDefFoundError: quicktime/QTExceptionSomething is wrong with the library.
Staring at java code will not help you figure that out.
Maybe it isn't intended to be loaded in java but instead it loads java itself?
If not then write a C/C++ basic app that links that dll in and see if you can at least get it to start. -
Hi Guys,
I was trying to write codes to check connector connectivity, I have included these jar files in class path "com.sap.portal.ivs.connectorservice_api.jar" and "GenericConnector.jar".
The codes are like
IConnection connection = null;
IConnectorService cs = (IConnectorService) PortalRuntime.getRuntimeResources().getService(IConnectorService.KEY);
IConnectorGatewayService cgs = cs.getIConnectorGatewayService();
connection = cgs.getconnection(Alias,request)
but as soon as I write this last line getconnection() I get error which is "Compilation unit indirectly references the missing type com.sap.portal.services.api.connectorgateway.IConnectorGatewayService(typically some required class file is referencing a type outside the class path)"
and this given below error comes when I build the project.
"The project was not built since its classpath is incomplete. Cannot find the class file for com.sap.portal.services.api.connectorgateway.IConnectorGatewayService. Fix the classpath then try rebuilding this project."
can any one please tell me how can I fix this problem.
Thanks in advance
Best Regards
Yasir NomanHi,
If you are using a portal service, may you forgot to do the following->
Right click on your application -> properties -> Web Dynpro references -> sharing references - > add PORTAL:sap.com/<your service>
Regards
yoel -
I wrote a JAVA program to test the connection with Oracle. It worked in NT environment, but it did not in Linux Environment. I got the error message: "IO exception: The Network Adapter could not establish the connection."
Here is JAVA code:
import java.sql.*;
class Employee1
public static void main (String args [])
throws SQLException
try{
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection conn =
DriverManager.getConnection ("jdbc:oracle:thin:@203.149.143.1:1521:ora1",
"dxhub", "manager");
Statement stmt = conn.createStatement ();
ResultSet rset = stmt.executeQuery ("select user_id from user_info");
while (rset.next ())
System.out.println (rset.getString ("user_id"));
catch(Exception e)
System.out.println(e.getMessage());
I think there is nothing wrong with JAVA code. There must be something wrong in the Linux environment. I appreciate your help if someone can give me a little advice.
Tony
nullPerhaps you have't listener
Do you sure what your port 1521 - is open?
I recieve this message only if in my "NMAP <myhost> don't have port 1521 is open
- $ORACLE_HOME/bin/lsnrctl
- start
- exit
And everything - ok
null -
Compile error when connecting to JDBC:ODBC
Hi
I am not used to java so probably this is an enivorment problem, but I cannot fix, please help!
FOLLOWING CODE
import java.sql.*;
public class DBtest {
public static void main (String args[]) {
String jdbcDriver = "sun.jdbc.odbc.JdbcOdbcDriver";
String protocolHeader = "jdbc:odbc:";
String dbName = "myodbc3-test";
String user = "";
String password = "";
Class.forName(jdbcDriver);
Connection cn =
DriverManager.getConnection(protocolHeader+dbName, user, password);
GENERATES FOLLOWING COMPILING ERROR
cd c:/Javakod/NewFolder/
javac -classpath C:\Javakod\ DBtest.java
DBtest.java:17: incompatible types
found : java.sql.Connection
required: NewFolder.Connection
DriverManager.getConnection(protocolHeader+dbName, user, password);
^
1 error
What is wrong? I am using a Win2000.This code compiles and runs fine on my Windows 2000 machine running JDK 1.4.1:
import java.sql.*;
public class AnotherConnectionTester
public static void main(String [] args)
String jdbcDriver = "sun.jdbc.odbc.JdbcOdbcDriver";
String protocolHeader = "jdbc:odbc:";
String dbName = "myodbc3-test";
String user = "";
String password = "";
try
Class.forName(jdbcDriver);
Connection cn = DriverManager.getConnection(protocolHeader+dbName, user, password);
DatabaseMetaData meta = cn.getMetaData();
System.out.println("product name: " + meta.getDatabaseProductName());
catch (Exception e)
e.printStackTrace(System.err);
}I set up an ODBC DSN myodbc3-test to connect to an Access database. It was no problem. I guess that doesn't explain why your post didn't work. I changed the name of the class and added that meta data output so I could make sure that it connected. - MOD -
Error when connect from portal system (abap ) to external ssl client - sm59
Hi I am tryign to setup a ssl connection from the abap sm59 portal system to an exteral server.. I have setup the certs that the client has given me in strust.but i m gettign the ffg error.
sysno 60
sid PID
systemid 370 (Solaris on SPARCV9 CPU)
relno 7110
patchlevel 0
patchno 150
intno 20020600
make multithreaded, Unicode, 64 bit, optimized
profile /usr/sap/PID/SYS/profile/PID_DVEBMGS60_pidevdb
pid 3911
[Thr 01] Thu Jun 14 08:38:48 2012
[Thr 01] TRACE FILE TRUNCATED
[Thr 07] Thu Jun 14 08:39:07 2012
[Thr 07] *** ERROR during SecudeSSL_SessionStart() from SSL_connect()==SSL_ERROR_SSL
[Thr 07] session uses PSE file "/usr/sap/PID/DVEBMGS60/sec/SAPSSLA.pse"
[Thr 07] SecudeSSL_SessionStart: SSL_connect() failed
[Thr 07] secude_error 536871970 (0x20000422) = "SSL record with the wrong SSLPlaintext.version received"
[Thr 07] >> Begin of Secude-SSL Errorstack >>
[Thr 07] ERROR in ssl3_get_record: (536871970/0x20000422) SSL record with the wrong SSLPlaintext.version received
[Thr 07] << End of Secude-SSL Errorstack
[Thr 07] SSL_get_state() returned 0x00002120 "SSLv3 read server hello A"
[Thr 07] SSL NI-sock: local=57.24.111.151:34110 peer=57.24.110.116:5081
[Thr 07] <<- ERROR: SapSSLSessionStart(sssl_hdl=10720d530)==SSSLERR_SSL_CONNECT
[Thr 07] *** ERROR => IcmConnInitClientSSL: SapSSLSessionStart failed (-57): SSSLERR_SSL_CONNECT {00020a7c} [icxxconn_mt.c 1957]
When i change the sm59 connection not to use ssl. it give me a pop up screen . and asks me to enter user and password...
He then give me a private key file .. i.e a .pfx file but not sure how to load this in strust. I tried to convert in useign sapgenpse. but it fails with teh ffg error
12% sapgenpse import_p12 -p /usr/sap/PID/amos/amos_client.pse /usr/sap/PID/amos/amos_client_pk.pfx
import_p12: MISSING password for PKCS#12 file "/usr/sap/PID/amos/amos_client_pk.pfx"
Please enter PKCS#12 encryption password: *******
PKCS#12/PFX file contains 1 keypair:
1. FriendlyName = "amos.server.interface.webuser.web_int.cert"
X.509v3 (type=Both) RSA-2048 (signed with sha1WithRsaEncryption)
Subject="CN=AMOS WebService Interface Client, OU=IT&S MRO, O=South African Airways (Pty) Ltd, L=OR Tambo International Airport, SP=Gauteng, C=ZA"
Issuer ="[email protected], CN=ca.flysaa.com, OU=Certificate Authority, O=South African Airways (Pty) Ltd, L=OR Tambo International Airport, SP=Gauteng, C=ZA"
ERROR: Incomplete certification path -- NEED certificate of "[email protected], CN=ca.flysaa.com, OU=Certificate Authority, O=South African Airways (Pty) Ltd, L=OR Tambo International Airport, SP=Gauteng, C=ZA"!
I have attached a doc of what it looks like.. appreciate any helpHi,
There is an error in the publishing of template
Template :"bbpsc02" is not publised in ITS.
Go to T.code: SE80
Publish all the templates again and check
Check with your SAP BASIS team for the help
Regards
Ganesh -
Error database connection in JDBC Adapter
Hi Experts,
I am facing errror database connection problem in production system.
My interface was working fine in production till yesterday but suddenly from today i am facing the error connection problem.
Below is the error message i am getting.
Error during database connection to the database URL 'jdbc:oracle:thin:@<ip>:<port>:"' using the JDBC driver 'oracle.jdbc.driver.OracleDriver': 'com.sap.aii.adapter.jdbc.sql.DriverManagerException: Cannot establish connection to URL 'jdbc:oracle:thin:@'jdbc:oracle:thin:@<ip>:<port>:": SQLException: Io exception: The Network Adapter could not establish the connection'
Please advice what would be the problem.
I have checked the IP by pinging, its working fine.
Thanks,
Swetha ReddyHi Sarvesh,
I have tried with deactivaing and activating channel.. but facing same problem..
Nio firewall settings has been changed either side..
Regarding patch i am not sure what patch should be applied..
i can tell that BASIS has not applied ant patch..
Thanks,
Swetha Reddy -
Error establishing connection to JDBC
Hi guys,
I'm doing a JDBC to file scenario. I'm using MS SQL as my database. I'm getting an error as class not found 'com.microsoft.jdbc.sqlserver.SQLServerDriver'
I wanted to know have i provided the JDBC driver correctly for MS SQL,
Also I've given the connection URL as
jdbc:microsoft:sqlserver://hostname:1433;DatabaseName=Employee
Is this a correct way??
If not please help me on this guys and tell me the correct connection establishment parameters...
Thanks
Varunhttp://www.microsoft.com/downloads/details.aspx?FamilyID=6D483869-816A-44CB-9787-A866235EFC7C&displaylang=en
Find the right driver there and deploy the JDBC driver using SDM.
JDBC Driver Deployment Guide -
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70ffd890-0201-0010-708f-d5dad2dfcf3a -
Error while connecting to external system in SM59 with ICM_HTTP_SSL_ERROR
Hi all,
we have configured an SM59 RFC destination of G type which pings to the external third party server. Before testing we have uploaded the external server certificate in PI system. it was working fine with * HTTP 200 OK* message. since 2 days we are facing the ICM_HTTP_SSL_ERROR while testing the connection. when we telnet from PI to the external system using the port no.443, its getting connected.
so any idea why it started giving the error.
We have check out this forums but of no help.
[ICM_HTTP_SSL_ERROR|ICM_HTTP_SSL_ERROR;
The trace file dev_icm says
[Thr 52] Thu Jan 20 14:34:00 2011
[Thr 52] *** ERROR during SecudeSSL_SessionStart() from SSL_connect()==SSL_ERROR_CONNECTION_LOST
[Thr 52] session uses PSE file "/usr/sap/XD1/DVEBMGS00/sec/SAPSSLDRV.pse"
[Thr 52] No Secude Error present in trace stack!
[Thr 52] SSL_get_state() returned 0x00002141 "SSLv3 read server key exchange B"
[Thr 52] SSL NI-sock: local=192.168.127.70:65243 peer=80.78.2.187:443
[Thr 52] <<- ERROR: SapSSLSessionStart(sssl_hdl=6000000000d50fd0)==SSSLERR_SSL_CONNECT
[Thr 52] *** ERROR => IcmConnInitClientSSL: SapSSLSessionStart failed (-57): SSSLERR_SSL_CONNECT {00370a03} [icxxconn_mt.c 1957]
[Thr 81] Thu Jan 20 14:34:15 2011
[Thr 81] IcmWorkerThread: end worker thread 53
[Thr 80] Thu Jan 20 14:44:45 2011
[Thr 80] IcmWorkerThread: end worker thread 52
Thanks,
AsemHareen,
We checked the the note 1318906 and followed the steps but error persists.
Could you please advice more on this.
Rahul,
The note you mentioned is for different error "ICM_HTTP_INTERNAL_ERROR".
Br
Asem -
Error with Connection to JDBC MS SQL Server 2000
Hi,
I have this error:
java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]End of stream was detected on a read.
And here is my connection statment:
Connection conn = DriverManager.getConnection ("jdbc:microsoft:sqlserver://MYPC:8081","*****","*****");
Any ideas?
Many thanks in advance.java.sql.SQLException: [Microsoft][SQLServer 2000
Driver for JDBC]End of stream was detected on a
read.
Any ideas?http://support.microsoft.com/?kbid=823896
if that doesn't work, try this:
http://www.mcse.ms/archive90-2005-9-1649153.html
thanks.
mp -
BEx error when connecting to BW system
I get the error below when trying to connect remotely to BW 3.1 system using BEx Analyzer. I can connect successfully to the BW system using SAPLogon and BEx install appears to be correct. I connect successfully to BEx 3.5 and BEx BI sandboxes. Any ideas.
<----
>
Error Group
RFC_ERROR_COMMUNICATION
Message
CMALLC : rc=20 > Connect from SAP gateway to RFC server failed
Connect_PM GWHOST=<...>, GWSERV=sapgw57, SYSNR=57
LOCATION SAP-Gateway on host <...>.com / sapgw57
ERROR partner not reached (host xxx.xxx.xx.xxx, service sapgw57)
TIME Tue Mar 27 06:23:23 2007
RELEASE 640
COMPONENT NI (network interface)
VERSION 37
RC -10
MODULE nixxi.cpp
LINE 8724
DETAIL NiPCoIs the IP address correct? do you use IP address in your sap logon pad or hostname/servername ? do you maintain the IP mapping in 'host' file ? changed accordingly ?
also try to search if there are 2 'saplogon.ini' file, maybe the one with IP updated not used by BEx, try to overwrite with the latest one. normaly located in windows folder and program files\... \frontend ...
Hope it helps.
Regards -
Error in connecting to file system repository
Hi
Whn i gav the connection class name as com.bea.content.spi.internal.FileSystemRepositoryImpl , the followin error is thrown.
An exception has been thrown while attempting to persist changes for the service: Repository Configuration.
Error authenticating to repository: BEA Repository. Possible cause could include, but is not limited to a bad repository configuration or the repository is unknown.
(For the above, i hv also added the property cm_fileSystem_Path ).
Also when i gave connctn class as com.interwoven.vcr.bea.spi.RepositoryImpl , its not proceedin further.
Can someone tel what the problm cud be ?
Thanks in advanceWhich version of WLP are you using?
Can you report any exceptions logged in the console output before this exception? Sometimes this message is preceded by another exception in the console log.
-Steve
Maybe you are looking for
-
How to sort web dynpro table wich data bind to CAF Entity Service
Hi I created UI Table based on Model Node (CAF Entity). When I try to sort this Table with using TableSorter, I get following in the trace log: The error is: com.sap.caf.rt.exception.CAFBaseRuntimeException: Aspect does not support changing rows via
-
WM auto determination for storage bin
Hi experts. In the WM , presently auto TR-TO is designed and the system determine the storage Bin automatically. when we transfer the stock from interim. My question if the material is maintain in more then one sotrage bin. How the system determine t
-
Hello. I am having trouble printing a 20-page document as a Postscript file into spreads. The Setup option is grayed out. I have 8.5x11 pages set up but need to print to 11x17 for saddle stitch printing. Any help would be appreciated!
-
Hi, we have deployed Office 365 C2R in our environment and we are now ready to apply our first update. We used the Office Deployment Tool to install the first version and we disabled the updates to free our external link bandwidth. We are also using
-
Galaxy nexus - defect return 6/27/2013
My Galaxy Nexus power/sleep button stopped functioning (covered under warranty). Went to Verizon store and they are sending me a replacement. Will Verizon be sending me another galaxy nexus or will they be sending me a S3 or S4? Just wondering.