Using JCA Connector in Web AS Java 6.40 without EP6!?

Hi!
For my understanding the SAP Connector (JRA) offers a standard JCA 1.0 compliant connector to connect to R/3 using the CCI. So it should be usable in any J2EE server?
How can I use the JCA Connector in Web AS 6.40 (without EP)?
I found the sapjra.rar in J2E/SYS/global/ra/, but I cannot find how to configure a R/3 connection pool in Visual Administrator!?
How to configure the server and determine the JNDI lookup name for that resource to be able to look it up inside an EJB!?
With other J2EE containers, how to import the sapjra.jar and use it as standard JCA Connector?
Thanx for any help with this

Hi,
may be that I’m a little bit to late,  but for the next one who has the same problem the solution could be interesting.
You can change the default smpt port on Web AS Java in the server parameters of the java virtual maschine.
Open the SAP J2EE Config-Tool. Goto „cluster-data | instance_<instance-id> | server_<server-id>“. In the tab „General“ insert unter „Java parameters“ the line
„-Dmail.smtp.port=<port>“ where <port> ist the port number of your smtp server.
Testet with SAP NetWeaver Portals / SAP NW 04s and SUN Java-VM but should also work with SAP NW 04.
Greetings
Jens

Similar Messages

  • Attach to Mail using FileUpload UI in Web dynpro Java

    Hi,
    I need to send a file from my system as attachment with a mail in a web dynpro java application.
    I am trying to implement it by uploading the file to server using FileUpload UI and then sending the file as attachment
    using java mail api which is not working at the moment.
    Can anyone please suggest possible solution for this. Is there anyother approach to implement this?
    -- Arnab

    I am using the following code to upload the file. Its not showing any error only the mail is sent without the attachment.
        IPrivateFormView.IFileUploadElement element = wdContext.currentFileUploadElement();
        InputStream text = null;
        int temp=0;
        try{
             File file = new File(element.getFilename().getResourceName());
             FileOutputStream out = new FileOutputStream(file);
             if(element.getFilename()!= null){
                  text = element.getFilename().read(false);
                  while((temp = text.read()) != -1){
                       out.write(temp);
             out.flush();
             out.close();
             String filePath = file.getAbsolutePath();
             wdContext.currentContextElement().setAttachFileExtension(filePath);
              msg.reportSuccess("File:" + filePath);
        }catch(Exception e){
    And the following code to attach the file to mail
              MimeBodyPart bodyPart = null;
              Multipart mp =  new MimeMultipart();
              try {
                   bodyPart = new MimeBodyPart();
                   bodyPart.setContent("Attached Mail","text/plain");
                   mp.addBodyPart(bodyPart);
                   //FileDataSource fds = new FileDataSource("http://dcwwdvsaprt02:50000/irj/go/km/docs");
                   MimeBodyPart attachmentBodyPart = new MimeBodyPart();
                   //attachmentBodyPart.setDataHandler(new DataHandler(fds));
                   URL URLattachedFileName = new URL(wdContext.currentContextElement().getAttachFileExtension());
                   attachmentBodyPart.setDataHandler(new DataHandler(URLattachedFileName));
                   attachmentBodyPart.setFileName("Attachment");
                   mp.addBodyPart(attachmentBodyPart);
              } catch (Exception e1) {
                   // TODO Auto-generated catch block
                   e1.printStackTrace();

  • Use loadrunner to test Web Dynpro Java Application

    Hi Gurus,
             I'm using Loadrunner 11.0 to do load test to Web Dynpro Java Application. At first, I used web(http/html) protocel script, and I could record the whole business process successfully.  But the script seems very hard to understand. For example, the following script is so complex.
    After this, I tried 'SAP Click and Script'. At this time, loadrunner only record my logon action, while my business operation was not recorded in the script.
    "Body=sap-ext-sid=nYCksrUa3nHq2NIwTPpTKg--LpNoVBU_d2sS7nCHLaG*qQ--&sap-wd-cltwndid=WID1411644055966&sap-wd-norefresh=X&sap-wd-secure-id=kNh-egwklSanOHIGRb7-eA%3D%3D&SAPEVENTQUEUE="
      "ComboBox_Select%EE%80%82Id%EE%80%84aaaa.App_Property_FormCompView.ANLKL%EE%80%85Key%EE%80%84FA040%EE%80%85ByEnter%EE%80%84false%EE%80%83%EE%80%82ClientAction%EE%80%84submit%EE%80%83%EE%80%82urEventName%EE%80%84COMBOBOXSELECTIONCHANGE%EE%80%83%EE%80%81Form_Request%EE%80%82Id%EE%80%84...form%EE%80%85Async%EE%80%84false%EE%80%85FocusInfo%EE%80%84%40%7B%22sFocussedId%22%3A%20%22aaaa.App_Property_FormCompView.ANLKL%22%7D%EE%80%85Hash%EE%80%84%EE%80%85DomChanged%EE%80%84false%EE%80%85IsDirty%EE%80%84fal"
      "se%EE%80%83%EE%80%82EnqueueCardinality%EE%80%84single%EE%80%83%EE%80%82%EE%80%83",
    Could anyone give me the clue or materials about WDJ load test using loadrunner? Thanks very much
    regards.
    zhihua

    Hi Zhihua,
    First delete all the cookies from your browser.
    Close all the internet sessions which are opened in your system. During your script recording
    Open only 1 session which you will be recording for java script.
    The above mention log is the cookies from the internet explorer.
    its of no use for the script you can even delete from the script.
    Regards
    Mohammed

  • Set Security Question & Answer using UME API in Web dynpro Java

    Hi Experts,
    I;ve developed a Web Dynpro java application to create a user in UME.
    I am able to set all the user account related attributes but I am not able to set the security question and answer as I do not see any attribute for the same.
    Can anyone please suggest how to set the Security question and answer in UME?
    This is required so that if the user wishes to reset his password / forgets password, we can ask him the security question which he selected at the time of registration.
    Please let me know if it can be achieved at the code level and whether UME API supports security question and answer or any such attribute.
    Also, if no such attribute is present by default in UME at the moment; can we create/configure some custom attributes in UME and store the security question and answer into those attributes. This would serve our purpose.
    Kindly assist.
    Regards,
    Anurag

    Hi,
    Thanks a lot for the reply!!!
    I have one doubt here:
    You've mentioned the below code to fetch the security questions in your reply:
    IUser user = WDClientUser.getCurrentUser().getSAPUser();
    String CUSTOMER_NAMESPACE = "com.sap.security.core.usermanagement";
    String attmotname [] = user.getAttribute(CUSTOMER_NAMESPACE,"MotherName");
    String attlucknum [] = user.getAttribute(CUSTOMER_NAMESPACE,"LuckyNumber");
    String attmobnum [] = user.getAttribute(CUSTOMER_NAMESPACE,"MobileNumber");.
    But this would be only applicable when the user has already logged on to the portal as it uses "WDClientUser.getCurrentUser().getSAPUser();" code.
    On the contrary, I want the security questions and answer to be accessed even when the user is not logged on to Portal so that based on the question & answer, the user can reset his password.
    Please suggest, how can we achieve this and where and how to set the custom attributes for the same?
    Do we have to set the Publicly Viewable Custom Attributes present at location you mentioned in your reply?
    Also, if yes; please let me know how to set the custom attributes?
    Thanks & Regards,
    Anurag

  • How to use chart engine for web dynpro java(EP) for Graphics generation.

    Hi Frndz..
    now lookiing out for different types of dynamic graphics generations according to my requirment, n i saw the followiing blog
    Testing BusinessGraphics in Web Dynpro for Java
    Itz very nice to see that we can generate planty of types, but here our server is EP 7.0(not CE 7.1) and i gone thru  these links also
    http://help.sap.com/saphelp_nwmobile71/helpdata/en/86/243f403f0a9354e10000000a155106/frameset.htm
    http://help.sap.com/saphelp_nwmobile71/helpdata/en/0b/79553b066d9414e10000000a114084/frameset.htm
    https://help.sap.com/saphelp_nw04/helpdata/en/0c/95c83956852b51e10000000a114084/frameset.htm
    here it seems to be Chart Engine n Chart Designer is mainly for BSP(R3), how best we can use this for web dyn pro java.
    Thanks in Advance
    Regards
    Rajesh

    hi
    if you want to use BusinessGraphics in WebDynpro java you have to configure IGS.
    IGS Configuration
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/4846ac90-0201-0010-099d-d3b4e271849c
    Business Graphics docs.
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/3261cd90-0201-0010-268c-d8d72e358af6
    ChartDeigner Usage
    http://help.sap.com/saphelp_nw04/helpdata/en/18/d4d43fb9490c65e10000000a114b1d/frameset.htm
    Generating Gantt chart using web dynpro business graphics

  • Use external libraries in web dynpro java

    Dear Experts,
    I need to add an external library to my project.
    Anyway, I do not know how to do it because it gives me many problems.
    I tried modifying the classpath and placing it in the lib folder of the project from "Navigator".
    Also project properties, add. jar outside, and throws me the following error:
    [javac] Compiling 213 source files to D:\WORK\WORKSPACE\7.2.jdi\LocalDevelopment\t\2BF09F48E6D0E2C201262098A0E4D79F\classes
         [javac] ERROR: D:\WORK\WORKSPACE\7.2.jdi\LocalDevelopment\t\2BF09F48E6D0E2C201262098A0E4D79F\gen_wdp\packages\elsys\com\.....\wd\comp\....\MainView.java:34: package com.estaf does not exist
         [javac] ERROR: import com.estaf.jpay;
         [javac] ERROR:             
    Given these errors, I know my includes without problems and I can instantiate objects from library classes, but these errors I can not deploy.
    I read the following link:
    /people/raphael.vogel/blog/2008/05/05/how-to-use-external-libraries-in-the-sap-component-model-part-ii
    I did everything the tutorial. I created the external library. I can see in my project "DC-Definition -> Used DCs" The public parts assembly and compilation. Now the problem is that it still does not recognize the classes of the libraries you want to use.
    A level of code, when I try to instantiate the class does not recognize me. What could be missing? I did a couple of times step by step and gives me the same results.
    I use SAP NetWeaver Developer Studio SAP NetWeaver 7.2 SP03 PAT0007 version.
    Infinitely appreciate any help. Thank you very much.
    Rasim
    Edited by: Rasim Donmez on Apr 11, 2011 4:50 PM
    Edited by: Rasim Donmez on Apr 11, 2011 4:51 PM

    Hi,
    please find below path for adding External Jar files.
    right click on the webdynpro dc and select the properties .
    then clcik on Java Build path->select libraries->select External External Jars.
    after that just rebuild your project (not Build).
    Regards,
    Govindu
    Edited by: Govindu Nagotla on Apr 12, 2011 2:28 PM

  • To generate a wsdl using JAX-WS in JBOSS with java program but without EJB

    Hi,
    I am using JAX-WS to generate webservices using JBOSS application server by writing a java program.
    My sample java program includes :which takes an i/p name as string and displays out put as "Hello name",with the use of annotations.And,also have written web.xml for it.If I start JBOSS without adding project to it,it is starting.BUt If I add project to it the server is not publishing.Its getting like:"publishing JBOSS 4.2.2....:waiting for virtual machine to exit".
    I have followed the link:*http://www.javabeat.net/articles/2007/10/creating-webservice-using-jboss-and-eclipse/3*
    to do this,where in it was given that by means of auto build process of eclipse IDE war file generates in default jboss folder.But which is not happening,so that,am unable to generate wsdl file..
    Can any body help me?
    1) why jboss is not publishing after adding project to it?
    2) why war file is not generating in the default jboss folder?
    Regards....

    Yeah sure!!
    Overall picture: I wish to expose my OSB services to the third parties using OCSG. For that I've created the Communication services corresponding to each OSB service.
    Problem: Integration with the OSB.
    At the OSB side I've got JMS queues which interacts with other existing systems in my SOA enviornment. But I'm not getting how to get the OCSG application- triggered request messages in that queue? Please help.
    Also I've read about the SOA facades for integration with OSB.Which of the two approaches you will suggest?

  • I have formerly used Sitegrinder to develop web pages from .PSD designs without writing any code. Is there a current Adobe product that will do that?

    I'm having trouble deciphering the capabilities of all the new Adobe products. I want to design relatively simple web site pages but include photos that demonstrate before and after such as a photo that has the sky replaced. I am still using Photoshop CS5 and Bridge, but I'm will upgrade if/as required. I'm not even sure how to get back to see answers here. What Adobe products should I use?

    Thanks. Your answer was correct, but my question was not as clear as It should have been. The only "animations" I currently have are images used as buttons. The top image is before and the button down image shows the sky replacement. These can be seen on the home page at www.2000skies.com. I also have some flash slide shows which would be nice to replicate, but not essential.

  • Silverlight in Web Dynpro Java

    Hi,
       I am trying to use silverlight islands in web dynpro java. But i'm not able take data from silverlight island to web dynpro context.
      Can anyone suggest me some way to solve this problem
          Thanks
          -Rohit

    Hi Rohit,
    Please refer to http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/d05953ea-2608-2d10-968a-b44e8315049c
    Hope it will helps
    Regards
    Arun Jaiswal

  • E-catt on Web-Dynpro Java application

    Hi All,
    Is there any way to use e-catt on Web-Dynpro Java application?
    If any one has use it please guide me the steps?
    Regards

    hi Rohan,
    check this
    http://help.sap.com/saphelp_nw04/helpdata/en/8e/df9f40eb72371be10000000a1550b0/frameset.htm
    Best,
    Ignacio.

  • How to create a user in UME Database using web dynpro java custom application

    Hi,
    Can you please suggest me how to create a user in UME Database using web dynpro java custom application.
    My Requirement is user can register his/her user id in SAP Portal 7.3 UME database.
    Please suggest me.
    Thanks and Regards,
    Amit

    Hi Amit,
    Generated Documentation (Untitled)
    This is what you're looking for, there's no real cook-book -- though Amey mentioned there might be some material on SDN, perhaps some tutorials.
    You should be looking into com.sap.security.api.IUserFactory, methods newUser(String) which gives you and IUserMaint and commitUser(IUserMaint, IUserAccount) -- IUserAccount can be obtained using com.sap.security.api.IUserAccountFactory, method newUserAccount(String)
    Hope it helps,
    D.

  • Java does not work on my Win 7 IBM-compatible PC using Firefox as my web browser

    A typical example of a website I would like to access & view is "www'cut-the-knot.org", a relatively mathematics-related website with a lot a very nice math content, where (roughly estimating) 70-90% of all web pages on the web site use Java applets to communicate that math content.
    I CANNOT view the Java applets (am restricted/prevented from doing so) --- on CTK or ANY other website!.
    I could go into all the details but, essentially, I have tried just about everything I can think of (or have found to do/try in discussions on the Internet by googling the problem) & nothing seems to have had any positive affect ... I can still not view ANY Java applets on ANY website! :-(
    I USED to be able to view Java content on the PC I was working on, although, a few months ago, I migrated from Win XP to Win 7 when MS stopped supported Win XP. I don't know when things changed but, "while I wasn't looking" (&/or paying attention) something DID change. :-(
    I'm using an IBM-compatble PC (not a Mac) with Windows 7 & Firefox as my web-browser.
    I'm just a private individual ... just a "little guy" in my home ... little personal technical knowledge, no big biz connections, no $ to hire expensive (or inexpensive) experts to come in & assess & fix the problem. I would even just like to know if there is some kind of future expected date when something MIGHT get improved, barring an action "solution" of the problem.
    From what I read on the Internet, some problem(s) relating to this issue has/have been extant for at least two years, dating back to at least 2012, if not further? I assume the problem would have been fixed long ago if it were easy to fix so, I'm not trying to be overly critical ... just asking for some kind of status report --- help/communication/knowledge/expertise/solution/etc ... & any information would be appreciated. Knowing WHAT the problem is is a high priority to me, certainly as well as understanding HOW TO FIX the problem, & WHEN that fix will occur.
    Java is a seemingly wonderful technology but, if there are such severe security risks that require it be enabled so that no one (I'll assume I'm not the only one unable to view Java applets) can use it, it doesn't have much value to visitors to websites that employ Java to deliver a majority of their content. Part of the problem, obviously, is that (like CTK) MANY websites ALREADY use/employ Java --- & therefore, end-users have almost no access to the content in/on those websites.
    Thanx in advance ...
    arbmm7
    (2014-08-30-1023 PST)
    PS - Just before posting this comment, I clicking a button at the bottom of the Mozilla web page that said it had "guessed" at current browser & OS, & the following is what was "reported":
    Firefox version 32
    Windows 7 OS
    * Shockwave Flash 14.0 r0
    * Adobe PDF Plug-In For Firefox and Netscape 10.1.11
    * Next Generation Java Plug-in 11.11.2 for Mozilla browsers
    * NPRuntime Script Plug-in Library for Java(TM) Deploy
    * VLC media player Web Plugin 2.1.3

    PS - SORRY --- I meant (in the title): "... using Firefox as my web browser."

  • I am trying to use an education program that needs Java applets to install and use and it will not use Safari. When I download IE from the web it will not install. How can I get a browser that will work on my MacAir for travel use of this program?

    I am trying to use and education program that needs Java applets and it will not run on Safari. IE will not install from the web. How do I get a browser that will work to install so I can use this program when I travel.

    Try using FireFox. IE will only run on a Mac if you run Windows on the Mac.
    Windows on Intel Macs
    There are presently several alternatives for running Windows on Intel Macs.
    Install the Apple Boot Camp software.  Purchase Windows 7 or Windows 8.  Follow instructions in the Boot Camp documentation on installation of Boot Camp, creating Driver CD, and installing Windows.  Boot Camp enables you to boot the computer into OS X or Windows.
    Parallels Desktop for Mac and Windows XP, Vista Business, Vista Ultimate, or Windows 7.  Parallels is software virtualization that enables running Windows concurrently with OS X.
    VM Fusion and Windows XP, Vista Business, Vista Ultimate, or Windows 7.  VM Fusion is software virtualization that enables running Windows concurrently with OS X.
    CrossOver which enables running many Windows applications without having to install Windows.  The Windows applications can run concurrently with OS X.
    VirtualBox is a new Open Source freeware virtual machine such as VM Fusion and Parallels that was developed by Solaris.  It is not as fully developed for the Mac as Parallels and VM Fusion.
    Note that Parallels and VM Fusion can also run other operating systems such as Linux, Unix, OS/2, Solaris, etc.  There are performance differences between dual-boot systems and virtualization.  The latter tend to be a little slower (not much) and do not provide the video performance of the dual-boot system. See MacTech.com's Virtualization Benchmarking for comparisons of Boot Camp, Parallels, and VM Fusion. A more recent comparison of Parallels, VM Fusion, and Virtual Box is found at Virtualization Benchmarks- Parallels 10 vs. Fusion 7 vs. VirtualBox. Boot Camp is only available with Leopard and later. Except for Crossover and a couple of similar alternatives like DarWine you must have a valid installer disc for Windows.
    You must also have an internal optical drive for installing Windows. Windows cannot be installed from an external optical drive.

  • How to set a variable in portal session using web dynpro java.

    Hi,
    I have created a web dynpro application, which is running inside portal. I have created a role called "R1". Inside role R1, i have created 3 workset W1, W2 and W3. and inside each workset i have some pages and iviews.
    My requirement is when user logins to the portal , and when he clicks on role R1 for the first time, a login page should come (so that we can do revalidation), and when he enters his password again in that login page , then only workset W1, W2 and W3 should be visible/accessible to him and after successful revalidation, if he clicks again on role R1, in that particular portal session, than that login page should not come.
    for this, i thought i will set a variable in portal session, whenever user successfully revalidated himself, and if after successful revalidation he clicks again on role R1, i will check in doinit method of webdynpro whether variable is set or not (which i already set on successful revalidation), and if it is set then i will do Donavigation else i will present login page to the user.
    Can anyone tells me how to set a variable in portal session using web dynpro java.
    thanks
    Arush

    Hi,
    Try this:
    WDScopeUtil.put(WDScopeType.CLIENTSESSION_SCOPE, key, value)
    WDScopeUtil.get(WDScopeType.CLIENTSESSION_SCOPE, key)
    Ex:
    WDScopeUtil.put(WDScopeType.CLIENTSESSION_SCOPE,"Key1","Value1");
    String value1=WDScopeUtil.get(WDScopeType.CLIENTSESSION_SCOPE,"Key1").toString();
    /people/william.cui/blog/2007/02/12/sharing-session-context-between-parent-and-external-windows-running-on-same-host
    Regards,
    Charan

  • Using mysql-connector-java-5.0.5 from oracle's java procedure.

    I need to write the java procedure in Oracle, which will get connection to mySQL server and put some data into it. I am using official mysql-connector-java-5.0.5 driver for this job. Java class for this job work well outside the Oracle. The problem is:
    When I try to import jar file of mysql connectior it fail son resolving inside the Oracle db. How can I get access to mysql from Oracle?

    Thanks for this quick reply!!
    --When adding a connection and clicking 'Test' in the end of the wizard or when right-click on the connection and click 'connect'.
    Also, I've just noticed this: when I start IDE using jdev.exe I'm getting:
    java.lang.NullPointerException at oracle.jdevimpl.cm.dt.DatabaseAddin._registerIDEObjects(DatabaseAddin.java:353)
    at oracle.jdevimpl.cm.dt.DatabaseAddin.initialize(DatabaseAddin.java:155
    at oracle.ideimpl.extension.AddinManagerImpl.initializeAddin(AddinManage
    rImpl.java:425)
    at oracle.ideimpl.extension.AddinManagerImpl.initializeAddins(AddinManag
    erImpl.java:240)
    at oracle.ideimpl.extension.AddinManagerImpl.initProductAndUserAddins(Ad
    dinManagerImpl.java:154)
    at oracle.ide.IdeCore.initProductAndUserAddins(IdeCore.java:1431)
    at oracle.ide.IdeCore.startupImpl(IdeCore.java:1196)
    at oracle.ide.Ide.startup(Ide.java:674)
    at oracle.ideimpl.Main.start(Main.java:49)
    at oracle.ideimpl.Main.main(Main.java:25)
    Does not look right to me.
    I've never tried to add a DB connection under this IDE installation earlier.
    Just yeasterday I've created a project with some DB related (mySQL and Hibernate) libraries, although it compiled fine.

Maybe you are looking for