How to Transport Java Classes used in Mapping?
Hi XI experts,
Within the development of one message mapping, some external java classes are imported and used in my UDF(user defined function). My question is: how will these external java classes be transported to the QA/PRD system? If I choose to use the file system transport method, do I have to manually find these jar files and transport them separately?
Any comments or suggestions are highly appreciated.
Thanks in advance
Luis
Hi Luis,
Normally Mapping programs and External Jars are used in XI using Imported Archive. So this Imported archive once activated will become part of your SWCV and can be transported automatically with the SWCV.
You dont have to worry about transporting it seperately, it will be avilable once you transport your SWCV using File system transport.
Hope this helps,
Regards,
Ananth
Similar Messages
-
Calling Java class in XSLT mapping
Hi,
how can we call a java class in XSLT mapping..
thanks
gunaThis is a good one too:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8e7daa90-0201-0010-9499-cd347ffbbf72
Found this one helpfull too
http://www.cafeconleche.org/books/xmljava/chapters/ch17s03.html
Christof -
How to import java Classes in report Builder 10g
How to import java Classes in report Builder 10g .....
ArshadHello,
To import the Java classes:
Add your jar in the REPORTS_CLASSPATH
Launch Reports Builder.
Note:
You must launch Reports Builder now so that the new REPORTS_CLASSPATH is used.
Choose Program > Import Java Classes to display the Import Java Classes dialog box.
Regards -
How to load java class from jsp page?
hi all!
Does anyone know how to load java class from jsp page?
I try to load java class from jsp page.
Is it possible to load java class fom jsp page?
thanks and have a good day!What I mean is How to load/open java class file from jsp page?
I think we can open Applet from jsp page by using
<applet code=helloApplet.class width=100 height=100>
</applet>
but, how to open java class which is an application made by Frame?
thanks and have a good day -
Can not locate Java class using JNI within C++ DLL
I am using trying to use JNI to call a Java class from C++. The Java class uses JMS to send messages to a JMS message queue. At first I coded the C++ in a console application that created the JavaVM and used JNI to access the Java class. All worked fine. Then I called the Java class using JNI from threads and ran into the problem of the Java class not able to locate the JMS related classes. This was solved by placing the following line in the constructor of the Java class.
Thread.currentThread().setContextClassLoader(ClassLoader.getSystemClassLoader());
Then I moved the JNI code from a console application to a DLL in specific an extension DLL that is called by SQL Server or Oracle server. The DLL will use JNI to call the Java class and send messages to a JMS message queue.
The problem I am having now when the DLL code is called by SQL Server the call to
JNI_CreateJavaVM
appears to work correctly but the call to find the Java class using
jvmEnv->FindClass(pName)
fails. It appears the is a class loading problem which occurs due to the fact JNI is called from a DLL. When the VM is created I pass the class path information using the statement
-Djava.class.path=
And as I stated before it all works when running from a console application. I am new to JNI and really need help in the form of some sample code that will solve this problem. I believe I need to somehow load the classpath information from the DLL but I can not find examples on how to do this using JNI. I have tried several ways using URLClassLoader and getSystemClassLoader from JNI and either it does not work or it crashes very badly.
I used the following code to determine what the existing class path is and the string returns empty.
jcls = jvmEnv->FindClass("java/lang/System");
jmid = jvmEnv->GetStaticMethodID(jcls, "getProperty", "(Ljava/lang/String;)Ljava/lang/String;");
jstrClassPath = jvmEnv->NewStringUTF("java.class.path");
jstr = (jstring)jvmEnv->CallStaticObjectMethod(jcls, jmid, jstrClassPath);
m_jstr = (jstring)jvmEnv->NewGlobalRef(jstr);
pstr = jvmEnv->GetStringUTFChars(m_jstr, 0);
Can anyone please help with example code that will solve this problem. Thanks in advance for any help.
Charles�I have determined the problem occurs when the application/component is compiled using VC 6.0. The test application was compiled using VC 7.1 and works correctly by locating the class path information. If the test application is compiled using VC 6.0 it has the same problem.
The jvm.dll I am using is version 1.4.2.80. Currently this is not an option to compile all the applications that use JNI using VC 7.1 so can someone please tell me how to solve this problem. -
How to decode java class file to java file
hi
how to decode java class file into java file
regards
kedarIts really.......... really BAD.
Write ur own code... or use open source code..
Its a bad practice...
however i am telling u ..there is DJ java decompiler.
but mind it there are Obfuscator also....like codeshield and others
take care...
Alok -
How to call java class from pl/sql procedure ?
Hello everyone,
My query is..
There is one pl/sql stored procedure which is doing some business logic and storing data in some columns of one table, suppose the table name is 'ABC' .. and the rest of columns of table ABC are getting updated using java class. Now my problem is whenever I insert data in ABC using store proc.. i have to call that java class so that it will update the rest columns ( why java class for updating the columns in ABC is ..because that logic cant be done from pl/sql proc.. it has to be done using java )
and the other thing is.. oracle is in one machine and java is in another .. :(
hope ..u can help me out !!
Thank in advance !!but that updation have to be done from java code only.. we are using GIS tools .. have to create some shape files and update the column with that shape file.. so creation of shape file has to be done from java code only..
so how to call java class file which is on another machine and oracle in another.. -
Can anyone help i want to call java class using visual basic
I want to call java class using visual basic and send some arguments to the main class
Hi,
I don't know VB, but you can surely launch a command line like :
javaw.exe mypackage.MyMainClass myArgument1
Regards -
LSADMIN CMS authorization problem - How To Transport XI Content Using CMS
We are configuring CMS using the "How To Transport XI Content Using CMS". For the LSADMIN user we have added the SAP_XI_CMS_SERV_USER and SAP_SLD_ORGANIZER roles. We have followed all of the steps in the guide.
The problem we are encountering is that when we define the domain but put in the LSADMIN as the user, we get an error - "SLD (URL http://server:50000) server exception: HTTP response code: 403 Forbidden"
We then gave the LSADMIN all of the roles of XISUPER and restarted the J2EE engine. We still have the same problem. So we changed the CMS User to be XISUPER and we could save the domain. Now, we have another problem - when we try to export from dev using CMS, we get the following problem:
"Sent on 3/9/06 at 1:26 PM: Unable to establish connection to CMS server http://servername:50000. Unable to transfer the following transport lists: Export list for ...
Details: unknown exception: com.sap.cms.util.exception.conf.CMSCFinderException: Workspace name does not exist: com.sap.cms.util.exception.conf.CMSCFinderException: Workspace name does not exist: version=0,dtrWSName=
Check the availability of the CMS and the user authorizations and send the transport request again if necessary
We are on SP16. Anyone encountered this issue?
Regards,
JayHere are all of roles we have given LSADMIN in client 100:
SAP_CMS_ADMINISTRATOR
SAP_SLD_DEVELOPER
SAP_SLD_GUEST
SAP_SLD_ORGANIZER
SAP_XI_BPE_MONITOR_ABAP
SAP_XI_CMS_SERV_USER
SAP_XI_CMS_SERV_USER
SAP_XI_DEMOAPP
SAP_XI_DEVELOPER
SAP_XI_DEVELOPER_ABAP
SAP_XI_DEVELOPER_J2EE
SAP_XI_MONITOR
SAP_XI_MONITOR_ABAP
SAP_XI_MONITOR_J2EE
But on the J2EE side, we only see the following roles for LSADMIN:
- Authenticated Users Built-in Group Authenticated Users
- Everyone Built-in Group Everyone
- SAP_XI_CMS_SERV_USER Exchange Infrastructure: Change Management Service User
I checked client 000, and noticed that LSADMIN only had the SAP_XI_CMS_SERV_USER. So this the problem. I added all of the roles to LSADMIN in client 000 and restarted J2EE and now i can see all of the roles under the LSADMIN user in UME.
We noticed the problem that our UME configuration was pointing to client 000 and not client 100. If we go to Visual administrator and go to the Services->UME Provider, we see that - ume.r3.connection.master.client points to client 000. We will need to change this.
That was the issue. UME was pointing to the wrong ABAP client. I appreciate all of your help.
Regards,
Jay -
We have Oracle 8.1.7 spatial database. We got to load some java classes into the database. We would like to make it as the java programs to be loaded from a client system into the oracle server. I am using CREATE DIRECTORY command to create a directory object (say suppose \\prav\loadjavaclasses\. Then using the CREATE OR REPLACE JAVA CLASS USING BFILE (object_name, 'CLASSNAME.CLASS'). This .class file is in the network identified by prav which in turn has a shared directory (full privileges) loadjavaclasses folder. Can you please help in this regard.
Please mail me to [email protected]
thanks in advance
SudhaSrikanthan
nulluse loadjava
-
How to call java method using jsp
how to call java method using jsp.....
anyone can help me.....i having problem here...coz i very new in java and jsp.....
thanks.....keep an eye on this person's thread...they have code there and everything.
http://forum.java.sun.com/thread.jspa?threadID=777263&tstart=0 -
How to create a class using java script..
Hi all,
Iam new to java script and I tried out the following program but its not working..I basically created a class just like a java prog' but Iam not getting any output or error.Iam attaching the code below.
If I created one function inside the script and create one object its working fine but what should I do when I have a lot of function??so I created a class and put all the function and created an object but its not working..
Do let me know what changes should I do..Iam attaching the code which I had written. or give me an example of how to create a class with couple of functions using JAVASCRIPT
Thanks
Avis_su
<html>
<head><title>JSP Page</title></head>
<body>
<SCRIPT language = "JavaScript">
<!--
//Created classes
class book
var title: String;
var author:String;
function author()
doucument.write("Author is " +this.author);
function tile()
doucument.write("Title is " +this.title);
function printall()
var counter = 0;
function author();
function title();
var chapters = Array[String];
for(chapter in this chapters)
counter++;
document.write("Chapter" counter" :"+this.chapters[chapter]+"<br>");
var thisbook = new book()
thisbook.author = "Sivagami";
thisbook.title = "MS in CS giude";
thisbook.chapters = new Array[10];
thisbook[0] = "Prepare to Excell in all ";
thisbook[1] = "Learn to be happy";
thisbook[2] = "Learn to be healthy mentally emotionally physically";
thisbook[3] = "Siva and Subbu along with kidssssss will be successful in future";
thisbook.printall();
//-->
</script>
</body>
</html>Run this program to get your answer:
public class AnswerToYourPost {
public static void main(String args[]) {
System.out.println("TRUE/FALSE: This question
ion belongs on a Java forum.\n"
+ "ANSWER: " + ("Javascript" == "Java"));
}Since when do we compare objects for equality using operator == ? -
How to convert java class to dll file for using in Microsoft Technology(.n)
hey hemmj !!!!!!
nice replying , first of all i d like to say thanks for response me so frequently..... i like such type of guy... i d never forget ur online support.
hey buddy, i ve a problem with applet application...
i m working on java chat server build on swing applet. As it is chat server, it is divided into two parts, one is server application and other is client application. I want to run this server app on the client server and the basic thing with this site is that it is running on .net platform(Microsoft). and the other app ll running on the client machine or end user. Now the problem is that this site would run only if the server app ll be run on server. This server app ll open the socket of server, which ll listen the request of the user...... So, the requirement is to convert this java sever class file into dll file and register this dll file with the IIS server.So, It run and stop with the IIS server.
I ve already search the way to convert the java class file into dll file. This is possible in such way........... below code is for the java class file...
import java.net.*;
import java.io.*;
import java.util.*;
public class chatServer
public static void main(String args[]) throws Exception
ServerSocket sersoc=new ServerSocket(1234);// Any port number above 1000 should do
// as most ports below 1000 are used by system
Vector socvec=new Vector();
String data="";int i,j=0;
BufferedReader in;
//System.out.println("Listening of port " + sersoc.getLocalPort());
//System.out.println("Waiting for connections...");
while(true)
Socket soc=sersoc.accept();
socvec.addElement(soc);
chatServerReadThread csrt=new chatServerReadThread(socvec, soc);
in=new BufferedReader(new InputStreamReader(soc.getInputStream()));
PrintStream out=new PrintStream(soc.getOutputStream());
out.println("Connected to chat server");
out.flush();
data= in.readLine();
for(i=0;i<socvec.size();i++)
soc=(Socket)socvec.elementAt(i);
out=new PrintStream(soc.getOutputStream());
out.println(data + " connected");
out.flush();
//System.out.println(data + " connected");
csrt.start(); // error is comming from here..... plz help me.
class chatServerReadThread extends Thread
Vector socvec;
PrintStream out;
chatServerReadThread(Vector socvec, Socket soc)
this.socvec=socvec;
try
out=new PrintStream(soc.getOutputStream());
}catch(Exception e){}
public void run()
try
String data;
Socket soc;
BufferedReader in;
while(true)
for(int i=0;i<socvec.size();i++)
soc=(Socket)socvec.elementAt(i);
in=new BufferedReader(new InputStreamReader(soc.getInputStream()));
if(in.ready())
try
data=in.readLine();
if(data.charAt(0) == ']')
data = in.readLine() + " exited";
//System.out.println(data);
socvec.removeElement(soc);
for(int e=0;e<socvec.size();e++)
soc=(Socket)socvec.elementAt(e);
out=new PrintStream(soc.getOutputStream());
out.println(data);
out.flush();
else
for(int e=0;e<socvec.size();e++)
soc=(Socket)socvec.elementAt(e);
out=new PrintStream(soc.getOutputStream());
out.println(data);
out.flush();
}catch(Exception e){socvec.removeElement(soc);}
}catch(Exception e){e.printStackTrace();}
first i ve made the jar file of this class
jar cvf chatServer.jar chatServer.classafter getting the jar chatServer.jar. I ve opened the .net dos prompt and
type this command which ll make dll file automatically....
> jbimp /t:library chatServer.jar
And you'll see the following output:
Microsoft (R) Java-language bytecode to MSIL converter version 1.1.4322.0
for Microsoft (R) .NET Framework version 1.1.4322
Copyright (C) Microsoft Corp 2000-2002. All rights reserved.
Created chatServer.dll
I cant get the problem origin from where it is comming, when i tried to convert it into .dll file it shown an error that, it did not recongnized the method in first class
public static void chatServerReadThread.start() method
is not recognized by .net dos prompt commnad. But when i omit this method it gets created the .dll file. This start method is basically the default method of thread class that run the thread from the same class..
By vewing the code u can visulize the thing,, i ve marked the code from where the error is comming.
Plz do it as soon as possible, i ll waiting for ur reply......
I ll be really thanking u for that....
Thanx and regards
Niraj Kumar SinghI wonder if this will work:
jbimp /t:exe chatServer.jar
Your chatServer is an application that can be started from the commandline.
A dll is a library to be used in com, com+, other executables or .... -
How to retrieve a class from a map function ?
I have a class which I add to Map Function something like this
import java.util.*;
public class DataStorage
private Map<String, StoreData> callRecords = null;
public void StoreCalls(String callOrigin, StoreData sd)
callRecords = new HashMap<String, StoreData>();
callRecords.put(callOrigin, sd);
public Map<String, StoreData> getDataStorageMap()
return callRecords;
}Now If I want to retreive the data using the Map how should I do it.....You really need to study that tutorial. The answers are there, but in the case of Maps, keys are unique:
map.put("unqiue", obj1);
map.put("unique", obj2); //"unique" no longer maps to obj1 -- unless obj1 == obj2! -
Global Container in Java Class of Interface Mapping
I have written a Java Class that implements the StreamTransformation interface for use in an Interface Mapping. I would like to cache information read from a file between message processing calls of this mapping.
It appears that maybe the GlobalContainer object can be used to perform this caching. How do I access the GlobalContainer object from a class that implements StreamTransformation?
The examples all show container.getGlobalContainer() method call to get access to this object. However container is not a variable in this interface. Any ideas on how to do this?
Thanks,
JayHi Jay,
if you want to link data from different messages you must use BPM, you cannot do this with GlobalContainer because it is instantiated at the begin of the mapping and is flushed at the end of the mapping (e.g. graphical mapping).
2 files for the same scenario will use 2 different instances of the same message mapping program and they will not share the container.
The container is shared inside the same instance of the mapping program.
So it is shared for example between two UDF in the same mapping
So if you are using Java mapping you do not need to use the global container, you can use an Object to store data, but keep in mind that all this data will be lost at the end of the mapping.
Hope it helps,
Kind Regards,
Sergio
Maybe you are looking for
-
Hi All, I have a function and a column with same name. No parameter passing into the function but function return type is number. I have a column name same as function name and datatype also number. In my query i want to use the return result of func
-
Hello all, every now and then I need the mathematical set operations "intersect", "unify" and "subtract". It's no big problem to implement them where needed, but I wondered if there is an official version in the Java-API. This would be especially use
-
Stalls when trying to export media to HD 1080p 25fps PAL
Hi, I'm trying to export the media to HD 1080p 25fps PAL but it stalls about 10% into the export. I am able to export the sequence to Youtube 1080p 25fps PAL though although I don't know if this is suitable for TV broadcast quality. Does anyone know
-
Deauthorizing computers used in the past
Hi, Unfortunately i am not able to use the store downloads on a new laptop since i did not deauthorized computers in the past. Unfortunately, I can not execute this process since two computers in the past 4 years are not in use any longer. Both were
-
Need help. HP dv6 2090er. Wi-fi module upgrade
Hello everyone. Decided to replace the module Wi fi on my laptop 2090er However, know that not to put any work because of the whitelist Please tell me which module can be installed in this laptop or remove restrictions from whitelist Intel 7260.HMWAN