Importing Java Libraries
hi there,
When tried to download java user exits(user developed) from the development system to local system for debugging,using /n/sapcnd/ue_dev as mentioned in the SAP Note 809820,All I got was Standard user exits Provided by the SAP.I've verified the presence of user developed USEREXITS in VMC using SM53.Is there any other method to download the java user exits to local system.
Any help would be much appreciated.
Thank You,
Vikram
Hello Vikram,
To get the custom userexits in t code /n/sapcnd/ue_dev you select the option userexit.
Regards
shanto aloor
Similar Messages
-
Importing third-party java libraries
I have just downloaded jakarta httpclient and am trying to get it to work with a program I am writing. Are there instructions somewhere on importing third-party libraries? I've searched these forums, the tutorials, and even google and haven't found any. Or can someone just tell me how to do it?
Basically I have a folder with a list of java files. I run javac program.java to compile and then java program. The one thing I have seen in these forums is about setting the classpath, but no specifics on what to set it to. Basically I have a folder with the source called java. The only subfolder there is org, the next subfolder is apache, next is commons, then httpcliet, and then all the actual java files with a few other folders with the java files in them. It gives examples in the folder src which is the parent of java. In src there is a folder called examples. The relevent import statements are:
import org.apache.commons.httpclient.HttpClient;
import org.apache.commons.httpclient.MultiThreadedHttpConnectionManager;
import org.apache.commons.httpclient.methods.GetMethod;These are all valid files under the folder system, yet it gives me the error : package org.apache.commons.httpclient does not exist for the first 2 and package org.apache.commons.httpclient.methods does not exist.
There are also errors resulting from it not recognizing the import statements. Can someone help me please?I had a choice between source and binary, if I
download the binary, should I put the jar file inthe
folder with the rest of my *.java files?You can, but I'd advise against it because it gets
messy and confusing.
Or do I have
to put the whole folder (with the API, liscense,
readme, etc. in it) in the same folder as MY codeor
do I just need the .jar file? You just need the jar file. Don't unpack the jar
file; the standard java libraries know how to deal
with a jar file just fine.
More-or-less standard practice would be to create a
directory hierarchy like this:
project_name/
project_name/lib/
project_name/src/
project_name/classes/
Put the jar files in project_name/lib. Put your java
source files (the ones that you're creating) into
src/, and when you compile, put the compiled class
files into classes/ (use the -d option to javac to do
that). When you compile and run, include both the
classes/ directory and the jar files (note: NOT the
lib/ directory, specify the individual .jar files) in
the classpath.So do I need the absolute path of the .jar file? If I were to put it in the same folder as my source could I just specify as
javac -classpath whateverjar.jar MyFile.java
or do I have to do javac -classpath C:\my folder\my other folder\etc\projectName\lib\whateverjar.jar MyFile.java?
Thanks -
Hello,
Sorry for such a newbie question and such a long post, I did remember how to do this before but now I can't for the life of me remember. Anyhow, I have a simple question about importing custom-made java classes, from another directory in the windows operating system. I have the classpath set, and also I realize that because the two files below are in the same directory theres no need for an import statement as Java will look for the class in the same directory.
But I would like to know how the import statement is suppose to look to import a custom made java class from another directory, (assuming of course that I set the correct classpath)
here's the java class location:
c:\school\csc365\narcus.java
//narcus.java
import java.io.*;
class narcus implements Comparable
String firstName = "firstName";
String lastName = "lastName";
public narcus()
firstName = firstName;
lastName = lastName;
public narcus(String f)
firstName = f;
lastName = lastName;
public narcus(String f, String l)
firstName = f;
lastName = l;
public String getFirst()
return "first..";
public int compareTo(Object e)
return 1;
Here's the location of the driver program thats suppose to use the narcus.java class
c:\school\csc365\test.java
//test.java
//import statement? maybe import "c:\\school\\csc365\\*"; ?
import java.io.*;
class test
public static void main(String[] args)
narcus jim = new narcus();
System.out.println("omg\n");
System.out.println(jim.getFirst());
And also, here is my classpath:
PATH=c:\school\csc365\;c:\school\
The classpath also points to the jdk libraries and few other directories but I didn't write that above, as it probably isn't relevant.
I've tried the following import statements.
import "c:\\school\csc365\\narcus.java";
import "narcus.java";
import "c:\\school\\csc365\\*";
But I keep getting an error that says:
test.java:1 <identifier> expected
Any help is appreciated!Hi Folks,
I am new to this forum, heard that interesting discussions always happens on this forum so immediately registered,don't want to miss any oppurtunity to participate in discussions.
I have pretty much basic question regarding compiling and exceuting files in different packages.I have the following directory structure
C:\Projects\WDPROEast\Development\CommonService\Code\Java from where java files stored in different packages as follows:
com\wdpro\commerce\common\crm\dae\nautilus\adapter directory has java files in com.wdpro.commerce.coomon.crm.dae.nautilus.adapter package.
com\wdpro\commerce\common\dae\exception has java files with package named com.wdpro.commerce.common.dae.exception.
com\wdpro\commerce\common\dls\exception has java files with corresponding package name.
com\wdpro\commerce\common\dto has java files under proper package name.
com\wdpro\commerce\common\exception has java files with appropriate package name.
com\wdpro\commerce\common\util has java files with package name. I am starting at Java Directory,want to compile and run file named a.java in com.wdpro.commerce.coomon.crm.dae.nautilus.adapter package with having all other java files on classpath as follows
so I issued command for compilation as follows C:\Projects\WDPROEast\Development\CommonService\Code\Java>javac com/wdpro/commerce/common/crm/dae/nautilus/ada
pter/a.java com/wdpro/commerce/common/crm/dae/nautilus/adapter/NautilusServiceUtility.java com/wdp
ro/commerce/common/crm/dae/nautilus/adapter/URLReader.java com/wdpro/commerce/common/crm/dae/nautilus/adapter/
b.java com/wdpro/commerce/common/dae/exception/*.java com/wdpro/commerce/common/dto/*.java
com/wdpro/commerce/common/exception/*.java com/wdpro/commerce/common/util/*.java com/wdpro/commerce/common/dl
s/exception/*.java It compiled greatly but when I issue command to run a.class file as
C:\Projects\WDPROEast\Development\CommonService\Code\Java>java com/wdpro/commerce/common/crm/dae/nautilus/adap
ter/UtilityAccesssit's giving following exception
Exception in thread "main" java.lang.NoClassDefFoundError: com/wdpro/commerce/common/crm/dae/nautilus/adapter/
UtilityAccesssbut when I run a.java with the following command
C:\Projects\WDPROEast\Development\CommonService\Code\Java>java com/wdpro/commerce/common/crm/dae/nautilus/adap
ter/UtilityAccess com/wdpro/commerce/common/crm/dae/nautilus/adapter/NautilusServiceUtility.java com/wdpro/com
merce/common/crm/dae/nautilus/adapter/URLReader.java com/wdpro/commerce/common/crm/dae/nautilus/adapter/Nautil
usAccessUtility.java com/wdpro/commerce/common/dae/exception/*.java com/wdpro/commerce/common/dto/*.java com/w
dpro/commerce/common/exception/*.java com/wdpro/commerce/common/util/*.java com/wdpro/commerce/common/dls/exce
ption/*.javaSo my question do I need to add all required java files to path when required class files are under different packages?is it manadatory.
I hope you understand my question,pass me any comments you may have.
Thanks alot,
Anu -
Flare is an awesome data vizualization toolkit. Flare is a
collection of ActionScript 3 classes for building a wide variety of
interactive visualizations. For example, flare can be used to build
basic charts, complex animations, network diagrams, treemaps, and
more. Flare is written in the ActionScript 3 programming language
and can be used to build visualizations that run on the web in the
Adobe Flash Player. Flare applications can be built using the free
Adobe Flex SDK or Adobe's Flex Builder IDE. Flare is based on
prefuse, a full-featured visualization toolkit written in Java.
Flare is open source software licensed under the terms of the BSD
license, and can be freely used for both commercial and
non-commercial purposes.
Now, I downloaded the
flare-prefuse
visualization toolkit, from the
flare-prefuse.org site.
Following the steps in the
Flare Tutorial,
for the life of me I can't seem to import the flare libraries into
the Tuturial project within Flex Builder.
How do you import projects into another project? I'm able to
import the libraries so that they appear in the Flex Builder's
Navigation pane. I go through the "
Importing a libarary with another project" steps mentioned
below. When I click "OK" to add a project, the project name (eg.
flare.util) does not appear in the Library Path window. Further,
when I use a statement to reference the library, such as import
flare.animate.Tween, the FB2 compiler returns an error, "Definition
flare.animate:Tween could not be found".
Specifically, the flare tutorial states:
Importing Libraries
Before proceeding, make sure you have the flare libraries
loaded as projects within Flex Builder. You should have already
unzipped the flare files into your main Flex Builder workspace
directory. The next step is to import them into the Flex Builder
environment:
- Make sure you are in the "Flex Development" perspective.
- Right click the navigator pane on the left.
- Select "Import..." in the popup menu.
- In the dialog, select "General > Existing Projects into
Workspace" and click the "Next" button.
- Use the "Select root directory" widgets to navigate to your
Flex Builder workspace directory
- You should now seen the flare projects listed in the
"Projects:" panel
- Make sure all flare.* projects are selected and then click
the "Finish" button.
You should now see all the flare projects in the Navigator
pane. You can now browse the source code for each of the
sub-libraries.
Overview of the flare libraries
Here is a quick overview of the various flare projects:
flare.animate: animation library (depends on flare.util)
flare.data: library for loading data sets, useful, but still
under development (depends on flare.util)
flare.demos: an application project showcasing a number of
visualization demos
flare.physics: a physics engine, useful for physical effects
or force-directed layout (no dependencies)
flare.query: a query processor for ActionScript objects
(depends on flare.util)
flare.util: a set of utility classes shared by all projects
(no dependencies)
flare.vis: the flare visualization components and operators
(depends on flare.util, flare.animate, and flare.physics)
If a project has a dependency, you will need to import all
dependent projects into your application. We now describe how to do
that.
Importing a library within another project
Now we need to adjust our project settings so that we can
make use of the flare libraries. Just follow these steps:
1. In the Navigator pane, right click the top folder of the
"Tutorial" project
2. Click "Properties" in the context menu
3. In the resulting dialog, click "ActionScript Build Path"
in the left panel (it should be the 3rd item from the top)
4. Click the "Library path" tab in the right panel
5. Click the "Add Project" button
6. You should now see a list of projects, including all the
flare libraries.
7. Select "flare.util" and then click "OK"
You've now added the flare.util libraries to your project,
and can use any of the classes it provides. Repeat steps 5-7 above
for the "flare.animate", "flare.physics", and "flare.vis" projects.
(We will be using the flare.animate classes in this part of the
tutorial, and then adding in the flare.vis classes in the next
part, so we might as well import them all now). "
My directory structure for the Tutorial project is:
C:\Documents and Settings\Ron Barrett\My Documents\Flex
Builder 2\Tutorial
Can you help to explain to me how to import the flare
libraries so that they are available to the Tutorial project?
Man, if you can help me out with this I'd be REALLY
grateful!!
All the best,
RonHi Magicrebirth:
Jeff Heer, of UC Berkeley, responded to my question, which
was also posted on the SourceForge Flare forum. The following is
his reply, which solved my problem. The easy answer is simply to
download and install FlexBuilder beta version 3.
Sorry for your troubles! The tutorial was written and tested
with Adobe
Flex Builder 3 Beta, so one solution would be to use FB3
instead.
Another approach may instead be to do a clean import of the
projects.
To do this, first delete the following files in each flare
project:
.actionScriptProperties
.flexLibProject
.project
Next, you can manually set up each project. In Flex
Development mode,
right click in the Flex Navigator and select "New
> Flex Library
Project". Now create a new project. Flex Builder
acts strangely when
project names have a "." in them, so leave
the "." out of the name. For
example, type "flareutil" instead of
"flare.util". After typing the
name, click OK. There should now be a project named
"flareutil" in the
navigator pane.
Now rename the project: right-click the project and select
"Rename...".
Now add the "." back into name (for example
"flareutil" should become
"flare.util"). In a warning message pops
up, just dismiss it. The
project should now have the correct name and include the
files in the
flare.util folder.
Now we just need to setup the project settings. Right click
the project
and select "Properties". A dialog window
should appear. In the list on
the left, select "Flex Library Build Path".
Under the tab "Classes",
make sure the box next to the "flare"
package is checked (all sub
checkboxes should be checked as a result) -- this makes sure
all the
files are included with the project.
Finally, you need to set up any project dependencies. These
are
described in the Tutorial. For example, flare.animate has a
dependency
on flare.util. To specify this, click the "Library
path" tab in the
Properties dialog. Now click "Add Project"
and select the project to
add. After you've done that, the project should appear in the
"Build
path libraries:" list. Click the "Link
Type" setting under the newly
added project reference, click the "Edit"
button on the right, and
adjust the link type to "External". Now
repeat this for any other
project dependencies.
Repeat the above process for each of the included flare
projects. The
only difference is for flare.demos. For that project, create
a new
"ActionScript Project", NOT a
"Flex Library Project".
As you can see, this involves a bit of busy work, so
switching to Flex
Builder 3 may be simpler.
hope that helps,
-jeff -
Where are imported shared libraries defined
in system-application.xml, the imported-shared-libraries are defined as :
<imported-shared-libraries>
<import-shared-library name="oracle.dms"/>
<import-shared-library name="oracle.jdbc"/>
and these are used in server.xml like:
<import-shared-library name="oracle.jdbc"/>
my questions is where does the imported libraries name and actual jar files defined. for ex. for the name oracle.jdbc, where are the jar libraries location defined?
I got a problem looks like application server not able to find these jars unless I copy them to the applib folder.
ThanksAdditional shared libraries may be configured to override the default shared libaries, including the oracle.jdbc library.
http://www.oracle.com/technology/tech/java/oc4j/1013/how_to/how-to-swapjdbclib/doc/readme.html -
ASAP Is any Java libraries exist to modify Excel file and PDF file
Is any Java libraries exist to modify Excel file and PDF file. I know about the third party libraries like Apache poi and many more. But I want to know about java libraries not the third party tools.
Souvik_Software wrote:
I don't know what you guys want. I simply asked for a answer and because me want it urgently that is why I have written "ASAP". But I think you are more energetic in fighting not with the answer. Thanks for the help.By flagging it with words as "ASAP" and "Urgent" your are implying that your question is more important than other people's questions or that your time is more valuable than the time of people answering questions here. So you see, by doing so, you sound rather selfish.
But, the answer to the question in your original post is: "no, there are no classes in the core Java API that do what you want". Simple. -
Standard java libraries "do not exist"
I'm fairly new to Java programming, and, well, programming in general. I've been building small, simple java programs for a couple of months now.
But all of a sudden (after a short period of not coding anything) I tried to write a program with that imported a standard java library (javax.sound.midi), and on compile, got the error message "package sound does not exist." Upon trying other packages, I've found that none of them work. Not Swing, not even util. This hasn't happened before. I've written plenty of other programs that imported standard libraries with no problem. I've tried mussing with %CLASSPATH% to no avail, (namely setting it to "C:\j2sdk1.4.2_04\jre\lib" among other things), and at best can cause it to not be able to find java.lang anymore.
What gives?error message "package sound does not exist." I question if your import statement is valid - how come the complaint is about the sound package (a non-existent package) rather than javax.sound.midi?
I tried various invalid imports, though, and couldn't duplicate that exact error text. -
I have seen several threads (in forums), books and tutorials about SWING and I see that they all mix SWING with AWT (I mean they import both Swing and AWT in their code).
The conclusion that comes out is:
It is good to learn about SWING and forget AWT as it won't be supported later. I have decided to do so, and I never include <<import java.awt.*;>> in my code.
But I see that you cannot do much without <<import java.awt.*;>>. For example this line which changes the background color:
<<frame.getContentPane().setBackground(Color.red)>>
works only with <<import java.awt.*;>>. I have seen that codes in this and other forums import awt to change the background. Why is that?
After all, I wonder, what can I do;
My question is, can I change the background (and of course do all other things listener, buttons etc) without using <<import java.awt.*;>>.
I would like to avoid using <<import java.awt.*;>> and using awt since my program will not work later.
In addition, I believe there is no point to learn awt, which later will not exist.
I know, I must have misunderstood something. I would appreceate it very much, if anyone could give me even a short answer.
Thank you in advance,
JMelsiSince swing is a layer on top of awt, AWT will exist for as long as swing does.
If sun does ever remove AWT they will have to replace it something else swing can layer on to and you will probably only have to replace your import statements.
The main difference is the way there drawn to the screen.
You can do custom drawing on swing components but you can't on AWT.
If your using a desktop PC system it's probably best to use swing just in case you wish to do some custom drawing.
awt uses less memory than swing and is faster but swing can be extended. awt comes only as standard.
Say for example you wish to implement a JButton with a ProgressBar below the button text, this can be done with swing! -
SAP NW7.0 SR3 Java AddIn Installation failed at "Import Java dump"
Dear all,
I get an error at Java AddIn Installation SAP Netweaver 7.0 SR3
(Software Life-Cycle Option -> Java Add-In for ABAP -> Oracle ->
Central System ->)
The first installation step "Central Services Instance (SCS) Java Add-
In" I have installed it without errors.
The Installation failed at 2nd step "Database Instance Java Add-In" at phase 11
of 14 "Import java dump":
26.05.09 15:16:46 com.sap.inst.jload.Jload main
INFO: Jload -sec
Q2B,jdbc/pool/Q2B,/usr/sap/Q2B/SYS/global/security/data/SecStore.properties,/usr/sap/Q2B/SYS/global/security/
data/SecStore.key -
dataDir /usr/sap/swdc/51033513/DATA_UNITS/JAVA_EXPORT_JDMP -
job /tmp/sapinst_instdir/NW04S/LM/AS-JAVA/ADDIN
/ORA/CENTRAL/DB/IMPORT.XML -log jload.log
26.05.09 15:16:47 com.sap.inst.jload.Jload main
SEVERE: couldn't connect to DB
26.05.09 15:16:47 com.sap.inst.jload.Jload logStackTrace
SEVERE: java.sql.SQLException: Io exception: The Network Adapter could
not establish the connection
at oracle.jdbc.driver.DatabaseError.throwSqlException
(DatabaseError.java:112)
at oracle.jdbc.driver.DatabaseError.throwSqlException
(DatabaseError.java:146)
at oracle.jdbc.driver.DatabaseError.throwSqlException
(DatabaseError.java:255)
at oracle.jdbc.driver.T4CConnection.logon
(T4CConnection.java:387)
at oracle.jdbc.driver.PhysicalConnection.<init>
(PhysicalConnection.java:420)
at oracle.jdbc.driver.T4CConnection.<init>
(T4CConnection.java:165)
at oracle.jdbc.driver.T4CDriverExtension.getConnection
(T4CDriverExtension.java:35)
at oracle.jdbc.driver.OracleDriver.connect
(OracleDriver.java:801)
at
com.sap.sql.jdbc.NativeConnectionFactory.createNativeConnection
(NativeConnectionFactory.java:215)
at com.sap.sql.connect.OpenSQLDataSourceImpl.createConnection
(OpenSQLDataSourceImpl.java:522)
at com.sap.sql.connect.OpenSQLDataSourceImpl.getConnection
(OpenSQLDataSourceImpl.java:276)
at com.sap.inst.jload.db.DBConnection.connectViaSecureStore
(DBConnection.java:105)
at com.sap.inst.jload.db.DBConnection.connect
(DBConnection.java:149)
at com.sap.inst.jload.Jload.main(Jload.java:580)
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:324)
at com.sap.engine.offline.OfflineToolStart.main
(OfflineToolStart.java:81)
the database is up and running, the Oracle Listener is also working well.
Any idea??
Thanks so much in advance!
Best Regards,
GerdHi Sunny, hi Markus!
many thanks for your hints!
I've just solved the problem. The problem was, our Listener was not configured correctly.
I've adjusted the listener.ora, tnsnames.ora to the correct hostname - cause, we had a hostname-switch last month and I had forgotten to adapt the Listener...
now the Listener is running as well:
mcho35au:oraq2b 120% lsnrctl status LISTENER_Q2B
LSNRCTL for Solaris: Version 10.2.0.4.0 - Production on 30-MAY-2009
09:52:48
Copyright (c) 1991, 2007, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=IPC)(KEY=Q2B.WORLD))
STATUS of the LISTENER
Alias LISTENER_Q2B
Version TNSLSNR for Solaris: Version 10.2.0.4.0 -
Production
Start Date 30-MAY-2009 09:52:15
Uptime 0 days 0 hr. 0 min. 32 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /oracle/Q2B/102_64/network/admin/listener.ora
Listener Log
File /oracle/Q2B/102_64/network/log/listener_q2b.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=Q2B.WORLD)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=Q2B)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=mcho35au)(PORT=1527)))
Services Summary...
Service "Q2B" has 1 instance(s).
Instance "Q2B", status UNKNOWN, has 1 handler(s) for this service...
Service "Q2B.WORLD" has 1 instance(s).
Instance "Q2B", status READY, has 1 handler(s) for this service...
Service "Q2B_XPT.WORLD" has 1 instance(s).
Instance "Q2B", status READY, has 1 handler(s) for this service...
The command completed successfully
meanwhile the step "Import java dump" has finished successfully!
Thanks to all!
Best Regards,
Gerd
Edited by: Gerd Schuster on May 30, 2009 10:29 AM -
Error in Import Java Dump during installation on MSCS
Dear Experts,
I am facing the following the error during ECC 6 dual stack installation on MSCS.
PM com.sap.inst.jload.Jload main
SEVERE: couldn't connect to DB
Apr 29, 2011 5:40:30 PM com.sap.inst.jload.Jload logStackTrace
SEVERE: java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:255)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:395)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:441)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:166)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:801)
at com.sap.sql.jdbc.NativeConnectionFactory.createNativeConnection(NativeConnectionFactory.java:215)
at com.sap.sql.connect.OpenSQLDataSourceImpl.createConnection(OpenSQLDataSourceImpl.java:522)
at com.sap.sql.connect.OpenSQLDataSourceImpl.getConnection(OpenSQLDataSourceImpl.java:276)
at com.sap.inst.jload.db.DBConnection.connectViaSecureStore(DBConnection.java:105)
at com.sap.inst.jload.db.DBConnection.connect(DBConnection.java:149)
at com.sap.inst.jload.Jload.main(Jload.java:580)
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:324)
at com.sap.engine.offline.OfflineToolStart.main(OfflineToolStart.java:81)
I have successfully installed ASCS,SCS, and configured 1st MSCS node.
While installaing DB instance on 1st node SAPINST did not allow the physical host name of the node and gave the error oracle was not installed,install oracle before continuing so went ahead with the virtual hostname.I had faced oracle connectivity issues during import ABAP ,I changed the added the physical host name in listener.ora and continued.But durig the import java dump phase I guess the physical host name in expected in secure store key file.I can't edit the secure store file as config tool is not installed yet in the system.Please suggest me solutions and guide me whether I am going in the right direction.
Regards,
Dinakar
Edited by: mutnuru dinakar on Apr 30, 2011 10:22 AMI have successfully installed ASCS,SCS, and configured 1st MSCS node.
While installing DB instance on 1st node SAPINST did not allow the physical host name of the node and gave the error oracle was not installed,install oracle before continuing so went ahead with the virtual hostname.I had faced oracle connectivity issues during import ABAP ,I changed the added the physical host name in listener.ora and continued
The SAPINST should allow the physical host name to get chosen you should not get this error.
You have to first install the oracle DB and after that Oracle failsafe at both nodes ( not in parallel) . Further while doing the DB instance installation on first node the SAPCLUSTER and ORACLECLUSTER should be online.
Can you mark the steps you did in sequence.
Regards
Edited by: Singh Dharm on Apr 30, 2011 2:06 PM
Edited by: Singh Dharm on Apr 30, 2011 2:08 PM -
Error while importing java class into oracle forms 10g
Hi
I have generated a web service client using jdeveloper 10g. It consists of complex type methods. I am trying to import the class files using java importer in oracle form 10g. I am able import all of them successfully except one. That one is the main method. Please see the error and suggest me how to overcome this error.
Exception occurred: java.lang.NoClassDefFoundError: oracle/jdeveloper/webservices/runtime/WrappedDocLiteralStub
Thanks in advanceDo you see oracle/jdeveloper listed in "Import Java Classes" when you try to import?
If not, make sure you add C:\DevSuiteHome_1\jdev\lib\jdev.jar to FORMS_BUILDER_CLASSPATH in registry
Also excetion indicates: oracle/jdeveloper/webservices/runtime/WrappedDocLiteralStub
If you typing it - type: oracle.jdeveloper.webservices.runtime.WrappedDocLiteralStub -
Error while Installing Nw04S SR2 Developer Workplace - Import Java Dump
Hi All,
Iam trying to install NW04S SR2 Developer Workplace.Iam getting error in 15 th step i.e Import Java Dump.
I have gone thru SDN threads and check the basic things like
Java Version,whether i can connect to database or not..
Iam using SQL Server 2005,Win XP.The database is fine.
Please find the log file content below and let me know how to resolve the problem.
J2E,jdbc/pool/J2E,
GBC7621C/sapmnt/J2E/SYS/global/security/data/SecStore.properties,
GBC7621C/sapmnt/J2E/SYS/global/security/data/SecStore.key -dataDir C:/NW04s/51032258\JAVA_EXPORT\JDMP -job "C:\Program Files\sapinst_instdir\NW04S\SYSTEM\DEVWP\MSSQL\IMPORT.XML" -log jload.log" finished with return code 1. Output:
java version "1.4.2_14"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_14-b05)
Java HotSpot(TM) Client VM (build 1.4.2_14-b05, mixed mode)
15-Apr-2009 15:31:22 com.sap.inst.jload.Jload main
INFO: Jload -sec J2E,jdbc/pool/J2E,
GBC7621C/sapmnt/J2E/SYS/global/security/data/SecStore.properties,
GBC7621C/sapmnt/J2E/SYS/global/security/data/SecStore.key -dataDir C:/NW04s/51032258\JAVA_EXPORT\JDMP -job C:\Program Files\sapinst_instdir\NW04S\SYSTEM\DEVWP\MSSQL\IMPORT.XML -log jload.log
15-Apr-2009 15:31:51 com.sap.inst.jload.Jload main
SEVERE: couldn't connect to DB
15-Apr-2009 15:31:51 com.sap.inst.jload.Jload logStackTrace
SEVERE: java.sql.SQLException: [NWMss][SQLServer JDBC Driver]Error establishing socket to host and port: GBC7621C:1433. Reason: Connection refused: connect
at com.sap.nwmss.jdbc.base.BaseExceptions.createException(Unknown Source)
at com.sap.nwmss.jdbc.base.BaseExceptions.getException(Unknown Source)
at com.sap.nwmss.jdbc.sqlserver.tds.TDSConnection.<init>(Unknown Source)
at com.sap.nwmss.jdbc.sqlserver.SQLServerImplConnection.open(Unknown Source)
at com.sap.nwmss.jdbc.base.BaseConnection.connect(Unknown Source)
at com.sap.nwmss.jdbc.base.BaseConnection.setupImplConnection(Unknown Source)
at com.sap.nwmss.jdbc.base.BaseConnection.open(Unknown Source)
at com.sap.nwmss.jdbc.base.BaseDriver.connect(Unknown Source)
at com.sap.sql.jdbc.NativeConnectionFactory.createNativeConnection(NativeConnectionFactory.java:215)
at com.sap.sql.connect.OpenSQLDataSourceImpl.createConnection(OpenSQLDataSourceImpl.java:522)
at com.sap.sql.connect.OpenSQLDataSourceImpl.getConnection(OpenSQLDataSourceImpl.java:276)
at com.sap.inst.jload.db.DBConnection.connectViaSecureStore(DBConnection.java:105)
at com.sap.inst.jload.db.DBConnection.connect(DBConnection.java:149)
at com.sap.inst.jload.Jload.main(Jload.java:580)
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:324)
at com.sap.engine.offline.OfflineToolStart.main(OfflineToolStart.java:81)
ERROR 2009-04-15 15:31:52
CJS-30049 <html>Execution of JLoad tool 'C:\j2sdk1.4.2_14\bin\java.exe -classpath "C:\Program Files\sapinst_instdir\NW04S\SYSTEM\DEVWP\MSSQL\install\sharedlib\launcher.jar" -showversion -Xmx512m com.sap.engine.offline.OfflineToolStart com.sap.inst.jload.Jload "C:/Program Files/sapinst_instdir/NW04S/SYSTEM/DEVWP/MSSQL/install/lib/iaik_jce.jar;C:/Program Files/sapinst_instdir/NW04S/SYSTEM/DEVWP/MSSQL/install/sharedlib/jload.jar;C:/Program Files/sapinst_instdir/NW04S/SYSTEM/DEVWP/MSSQL/install/sharedlib/antlr.jar;C:/Program Files/sapinst_instdir/NW04S/SYSTEM/DEVWP/MSSQL/install/sharedlib/exception.jar;C:/Program Files/sapinst_instdir/NW04S/SYSTEM/DEVWP/MSSQL/install/sharedlib/jddi.jar;C:/Program Files/sapinst_instdir/NW04S/SYSTEM/DEVWP/MSSQL/install/sharedlib/logging.jar;C:/Program Files/sapinst_instdir/NW04S/SYSTEM/DEVWP/MSSQL/install/sharedlib/offlineconfiguration.jar;C:/Program Files/sapinst_instdir/NW04S/SYSTEM/DEVWP/MSSQL/install/sharedlib/opensqlsta.jar;C:/Program Files/sapinst_instdir/NW04S/SYSTEM/DEVWP/MSSQL/install/sharedlib/tc_sec_secstorefs.jar;C:/usr/sap/J2E/SYS/exe/uc/NTI386/mssjdbc/base.jar;C:/usr/sap/J2E/SYS/exe/uc/NTI386/mssjdbc/util.jar;C:/usr/sap/J2E/SYS/exe/uc/NTI386/mssjdbc/sqlserver.jar;C:/usr/sap/J2E/SYS/exe/uc/NTI386/mssjdbc/spy.jar" -sec J2E,jdbc/pool/J2E,
GBC7621C/sapmnt/J2E/SYS/global/security/data/SecStore.properties,
GBC7621C/sapmnt/J2E/SYS/global/security/data/SecStore.key -dataDir C:/NW04s/51032258\JAVA_EXPORT\JDMP -job "C:\Program Files\sapinst_instdir\NW04S\SYSTEM\DEVWP\MSSQL\IMPORT.XML" -log jload.log' aborts with return code 1.<br>SOLUTION: Check 'jload.log' and 'C:/Program Files/sapinst_instdir/NW04S/SYSTEM/DEVWP/MSSQL/jload.java.log' for more information.</html>
ERROR 2009-04-15 15:31:52
FCO-00011 The step importJavaDump with step key |NW_Workplace|ind|ind|ind|ind|0|0|NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_Jload|ind|ind|ind|ind|9|0|importJavaDump was executed with status ERROR .
Thanks,
Anil.> 15-Apr-2009 15:31:51 com.sap.inst.jload.Jload main
> SEVERE: couldn't connect to DB
> 15-Apr-2009 15:31:51 com.sap.inst.jload.Jload logStackTrace
> SEVERE: java.sql.SQLException: [NWMss][SQLServer JDBC Driver]Error establishing socket to host and port: GBC7621C:1433. Reason: Connection refused: connect
as you see yourself the jload is unable to connect to the database.
Check that your firewall is properly configured and that the SQL Server agent is running.
Markus -
Fatal PL/SQL error when calling imported java code
Hi,
I'm developing reports using Report builder 9.0.2 under Win2k and I have the following problem:
I select data into fieds A and B.
I created 2 formulas fA and fB that call a PLSQL function from my report in order to convert A and B based on other data.
I also have a formula fC which is actually fA-fB
I have 3 summary columns on fA, fB and fC. I don't display any of those columns on the report but I created other formulas columns fA_Fmt, fB_Fmt,... to format the values using an imported java class.
This java class is static.
so fA_Fmt looks like this:
function fA_Fmt return Char is
begin
return MyJavaClassPackageName.formatValue( :fA, report_global_variable );
end;
When I run my report under report builder, I get a REP-1401 report error like "fA_Fmt formula: fatal PL/SQL error occured
ORA-39565: Message not found, product RDBMS, facility: ORA"
This happens randomly on any of the formulas.
Sometimes I even get a java.lang.StaskOverFlowError and I have to close and restart report builder.
I've tried to debug and I even caught the exception.
The parameters passed to the java method are fine.
The exception number is 105101 and after a couple of exceptions like this, visual C++ runtime library tells me there's a runtime error in rwbuilder.exe and the application crashes.
I don't know if it's Java, if it's Report builder or even Win2k.
Anyway, I'm stuck with that and I don't know what to do to fix it.
Any idea or work around?
Thanks
ManuHi Manu
I suspect the line given below:
return MyJavaClassPackageName.formatValue( :fA, report_global_variable );
Do not pass report values directly. Instead, assign it to a temporary variable and try again. See if this works:
temp1 <Variable_Type>;
temp2 <Variable_Type>;
temp1 := :fA;
temp2 := report_global_variable;
return MyJavaClassPackageName.formatValue( temp1, temp2 );
Note: You may also hit Fatal PL/SQL errors if the arguments happen to be invalid.
Regards
Sripathy -
Cannot import java.sql.BaseQuery
Hi,
I am trying to run the following example using JDK6:
import java.sql.BaseQuery;
import java.sql.DataSet;
import java.sql.Select;
public interface UserQueries extends BaseQuery {
// Select all users
@Select (sql ="SELECT userId, firstName, lastName FROM Users",
readOnly=false, connected=false, tableName="Users")
DataSet<User> getAllUsers ();
// Select user by name */
@Select (sql ="SELECT userId, firstName, lastName FROM Users"
+ "WHERE userName=?", readOnly=false, connected=false,
tableName ="Users")
DataSet<User> getUserByName(String userName);
}But I get the error in the import statement itlself. It is not able to import these classe-
import java.sql.BaseQuery;
import java.sql.DataSet;
import java.sql.Select;
Are they shipped with JDK 6?
thnx
Sanjeev.Because those classes don't exist. A simple, and very quick, perusal of the API docs would have told you this.
http://java.sun.com/javase/6/docs/api/index.html -
Error in Import Java Dump phase while installing SAP solution Manager 7.1
Hi,
While installing SAP solution manager 7.1 I am getting the below error during the phase "Import Java Dump".
An error occurred while processing option SAP Solution Manager 7.1 > SAP Systems > MS SQL Server > Central System > Central System( Last error reported by the step : Execution of JLoad tool 'C:\j2sdk1.4.2_17-x64\bin\java.exe -classpath "C:\Program Files\sapinst_instdir\SOLMAN71\SYSTEM\MSS\CENTRAL\AS\install\sharedlib\launcher.jar" -showversion -Xmx1024m com.sap.engine.offline.OfflineToolStart com.sap.inst.jload.Jload "C:/Program Files/sapinst_instdir/SOLMAN71/SYSTEM/MSS/CENTRAL/AS/install/lib/iaik_jce.jar;C:/Program Files/sapinst_instdir/SOLMAN71/SYSTEM/MSS/CENTRAL/AS/install/sharedlib;D:/usr/sap/SPT/SYS/exe/uc/NTAMD64/mssjdbc/sqljdbc.jar" -sec SPT,jdbc/pool/SPT,
smn/sapmnt/SPT/SYS/global/security/data/SecStore.properties,
smn/sapmnt/SPT/SYS/global/security/data/SecStore.key -dataDir "D:/SAP SOLMAN/Java Components/51040039\DATA_UNITS\SOLMAN_JAVA_EXPORT_JDMP" -job "C:\Program Files\sapinst_instdir\SOLMAN71\SYSTEM\MSS\CENTRAL\AS\IMPORT.XML" -log jload.log' aborts with return code 1. SOLUTION: Check 'jload.log' and 'C:/Program Files/sapinst_instdir/SOLMAN71/SYSTEM/MSS/CENTRAL/AS/jload.java.log' for more information.
JLOAD.JAVA log details below
java version "1.4.2_17"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_17-b06)
Java HotSpot(TM) 64-Bit Server VM (build 1.4.2_17-b06, mixed mode)
Jload R 7.12 V 0 A 0
Jload -sec SPT,jdbc/pool/SPT,
smn/sapmnt/SPT/SYS/global/security/data/SecStore.properties,
smn/sapmnt/SPT/SYS/global/security/data/SecStore.key -dataDir D:/SAP SOLMAN/Java Components/51040039\DATA_UNITS\SOLMAN_JAVA_EXPORT_JDMP -job C:\Program Files\sapinst_instdir\SOLMAN71\SYSTEM\MSS\CENTRAL\AS\IMPORT.XML -log jload.log
Connecting to database
Couldn't connect to DB
com.sap.inst.common.exception.DBConnectionException: com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host has failed. java.net.ConnectException: Connection refused: connect
at com.sap.inst.common.db.DBConnection.connect(DBConnection.java:157)
at com.sap.inst.jload.Jload.main(Jload.java:222)
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:324)
at com.sap.engine.offline.OfflineToolStart.main(OfflineToolStart.java:81)
Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host has failed. java.net.ConnectException: Connection refused: connect
at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectHelper(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.loginWithoutFailover(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(Unknown Source)
at com.sap.sql.jdbc.NativeConnectionFactory.createNativeConnection(NativeConnectionFactory.java:215)
at com.sap.sql.connect.OpenSQLDataSourceImpl.createConnection(OpenSQLDataSourceImpl.java:522)
at com.sap.sql.connect.OpenSQLDataSourceImpl.getConnection(OpenSQLDataSourceImpl.java:276)
at com.sap.inst.common.db.DBConnection.connectViaSecureStore(DBConnection.java:111)
at com.sap.inst.common.db.DBConnection.connect(DBConnection.java:151)
... 6 more
An error occured during execution. Please consult SAP note 942766 for first steps on troubleshooting the problem.
I have gone thru with the notes and it didn't help me much.
I have used J2SDK 1.4.2_17 nad JCE_Policy-1.4.2 files.
Please let me know where IO went wrong.
Thanks in advance.
SaiHi,
1. Did you select java path (Export CD/DVD) while intsallation? Check once again.
2. Add JAVA_HOME = Java path in environment variable.
3. What is the exact error, you got it, post error here.
Regards,
Srini Nookala
Maybe you are looking for
-
If I make a new iTunes account with the same credit card number can I still have the same thing I bought from my other account?
-
I had previously had years worth of Christmas music in my iTunes. When not the holiday season I obviously deslect it so that it does not play. I thought it was all backed up to the cloud, but now upon trying to recover it and resync it to my phone fo
-
My photo stream pics not showing in my PC
Unable to transfer my iphone or ipad pics to my PC photo stream????. is blank?
-
UWL for Manager : Multiple work items for approval
Hi Experts, We have a scenario when the line manager is approving the leave workitems in his UWL. And the UWL has multiple leave workitems pending for approval. When the line manager click on any of the work item in the UWL, The UWL opens the items
-
"An error exists on this page." - too vague!
Hello. I'm using v 9.5.1. I open a PDF which I have created and it says "An error exists on this page. Acrobat may not display the page correctly. Please contact the person hwo created the PDF document to correct the problem." Well, I can't see any p