(jdeveloper11g,MacOSX,EJB) access to EJB in jdevdeloper but not from jar

hello,
I have created an application with an EJB which contains only one method : sayHello, which returns "hello" as a string.
I have also created another project in the same application, and the project is a swing project with one button; when you click opne the button the text of a jlabel is modified with the result of the method sayHello of the EJB.
The program runs well, I mean when I launch the application from jdeveloper, the window appears and when I click on the button the text of the label is changed
: the access to the EJB is good.
I specify the EJB is deplyed to a weblogic server, which seems to run well (I can access to the administration page).
But when I try to deploy the client to a JAR or a client JAR (I don't know the difference between them), the jar is created, and if I try to launch it the window appears but the text of the label isn't changed.
can you help me to make it work?
the access to the EJB seems good as it works from jdeveloper.
here is the client:
public class Frame1 extends JFrame {
private JButton jButton1 = new JButton();
private JLabel jLabel1 = new JLabel();
public Frame1() {
try {
jbInit();
} catch (Exception e) {
e.printStackTrace();
private void jbInit() throws Exception {
this.getContentPane().setLayout( null );
this.setSize( new Dimension(400, 300) );
jButton1.setText("Click me!");
jButton1.setBounds(new Rectangle(50, 30, 85, 29));
jButton1.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
jButton1_actionPerformed(e);
jLabel1.setText("jLabel1");
jLabel1.setBounds(new Rectangle(55, 80, 125, 15));
this.getContentPane().add(jLabel1, null);
this.getContentPane().add(jButton1, null);
private void jButton1_actionPerformed(ActionEvent e) {
myEJB MyEJB=null;
try {
final Context context = getInitialContext();
MyEJB = (myEJB)context.lookup("weblogic_2-Project1-myEJB#app7.myEJB");
} catch (Exception ex) {
ex.printStackTrace();
jLabel1.setText(MyEJB.disBonjour());
private static Context getInitialContext() throws NamingException {
Hashtable env = new Hashtable();
// WebLogic Server 10.x connection details
env.put( Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory" );
env.put(Context.PROVIDER_URL, "t3://localhost:7001");
return new InitialContext( env );
I can go deep further in details concerning the deployment of the project if you ask me a peculiar question (I start in jdeveloper and don't know it well).
olivier.

Hi Grzegorz,
you answered most of your questions by yourself already. First of all do NEVER EVER share database schemes between J2EE and ABAP. Why? Because in most cases, the data models of an ABAP system are not only represented by fields of database tables and relations between database tables, but by the application logic behind it. As a consequence this means, that it is not recommended to access any database table used by an ABAP system directly from the J2EE engine.
The only safe way for access is the usage of JCo/SAPJRA, so, as you also already said, the better or only choice is to use JCo calls from session beans. It doesn't matter, if the ABAP system is remote or not.
Hope that helps.
Regards
Stefan

Similar Messages

  • I have a time capsule connected directly to fiber connection. I have connected a windows server directly to TC and configured it for remote desktop connection. From my interanet I can access srvr but not from my home. What config I need on TC?

    I have a time capsule directly connected to fibre optic point out. All pcs and macs are connected wirelessly to the internet. I have connected a windows server pc to TC. When configured for Remote desktop connection, I can access windows server from within interanet but don't know how to access it from internet. I guess I need to change some settings in TC to get some ip adress for the remote desktop connection from my home. Anyone who can help me out? Appreciate it.
    Narmin

    I am a little lost now.. I have read again your title and your first post.. and they seem inconsistent.
    In the title you state.
    From my interanet I can access srvr but not from my home.
    Interanet is not a word I know.. I assumed intranet...are you talking about internet or intranet? And just to be clear say WAN or LAN.. !! Is your home part of the interanet??
    In the first post you state,
    I can access windows server from within interanet but don't know how to access it from internet.
    Now this is more normal.. the issue is not in the home at all, it is accessible from there but fails from internet. If this is correct, then you can do a few obvious things to determine where the problem is.
    But first I need to know are you actually testing from a different internet connection to your home lan.. you are not just trying the public IP from inside the LAN as that will fail due to the TC not doing NAT Loopback.
    I am also assuming the TC is the only router in the network, and has the public IP on the WAN interface.
    And I am also assuming you have turned on the ping responder and you can actually ping your public ip from the internet and get a response. This helps no end in figuring out where there are issues. Strange but I have no idea if there is a ping responder in the TC WAN so you might need to forward that as well. Also if you have a dynamic public ip address are you using dyndns or no-ip or some other service to connect.
    1. Test bypassing the TC.. plug the internet connection straight into the windows server,, and test if you have access. If yes, the TC is the problem.. if not, your setup on the windows server is wrong.. look at firewall in particular.
    2. Assuming from test 1 the TC is the problem, Post the screen shots of the port forwarding setup for us to look at.. that is by far the easiest way to check it out.
    There are lots of references to port forwarding in the TC.. eg
    http://must-know-mac.blogspot.com/2008/07/how-to-port-forward-time-capsule.html
    The things that generally go wrong are firewall on the computer that is accepting the port.
    The ISP doesn't allow connections on a particular port. (not likely in your case)
    The router is behind another router.. double NAT will kill any port forward.
    Upnp has already allocated a port.. not an issue as TC doesn't use upnp although a reboot of everything after you set port forwards is well worth it.. amazing how things don't stick properly without a reboot.
    IP on the receiving device is not static and so changes.
    Not enough or right type of ports are opened. This is always messier than it looks as one port is often not enough for two way communications.

  • I have configure remote access feature web application proxy but not configure give the error. The remote name could not be resolved.

    I have configure remote access feature web application proxy but not configure give the error. The remote name could not be resolved in server 2012 R2.
    I have configure Ad and ADFS different server and try to configure web application proxy different server. what setting are required for connect web application proxy to Ad and ADFS.

    Hi,
    In addition, please make sure that the port 443 is not blocked by the firewall.
    Web Application Proxy requires internal name resolution to resolve the names of backend servers, and AD FS servers. When publishing web applications via Web Application Proxy, every web application you publish requires an external URL. For clients to reach
    these web applications, a public DNS server must be able to resolve each external URL that you configure. Note that the external URL must resolve to the same IP address as the Web Application Proxy server, or the external IP address of a firewall or load-balancer
    placed in front of the Web Application Proxy server.
    Best regards,
    Susie
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • Why do headings turn Chinese when I access my email via Firefox but not via Internet Explorer?

    Why do headings turn Chinese when I access my email via Firefox but not via Internet Explorer?

    hello, this is a displaying flaw caused the mcafee site advisor extension - please try to disable or remove that in case you have it present until there is an update by mcafee that can fix the problem.
    http://service.mcafee.com/faqdocument.aspx?id=TS100162
    https://community.mcafee.com/thread/76071

  • TS2621 I can access yahoo mail from safari but not from the iphone ipad mail icon after changing password

    I can access yahoo mail from safari but not from the iphone ipad mail app after changing my password

    Go into your settings and remove the account. Add the account again with your new password.
    Best of luck- K.

  • I have an apple id for my itunes and want my wife to be able to access it on her ipad but not sure how when her id is different?

    I have an apple id for my itunes on my computer not a mac......and want my wife to be able to access the music I purchase on her ipad....but not sure how she can do it when her ipad has her own apple id and it says she would have to use my apple id.....any suggestions?

    You can use one account with iTunes on your Mac, and different account(s) with the Mac App Store (for buying/downloads apps or OS updates for your Mac), iCloud (System Preferences > iCloud) and Messages (Messages > Preferences, or command-comma)

  • Group Policy Preferences File Copy - Access is Denied on 2003 but not 2008 R2

    Hello,
    I have created a GPO which copies a file from a network share into a new folder under Program Files. This policy works just fine on a Windows 2008 box, but not on 2003. I've used "psexec -i -s cmd.exe" to verify system account permission to the
    share. I am able to successfully browse and copy files from the share as the system account on both boxes.
    However, when the GPO attempts to perform the file copy, it does not work, and generates the following error message:
    Event Type: Warning
    Event Source: Group Policy Files
    Event Category: (2)
    Event ID: 4098
    Date: 8/28/2013
    Time: 3:32:12 PM
    User: NT AUTHORITY\SYSTEM
    Computer: Server01
    Description:
    The computer 'file.txt' preference item in the 'TXT File Copy {9176122B-1A50-4AB8-91D9-6E8553727E18}' Group Policy object did not apply because it failed with error code '0x80070005 Access is denied.' This error was suppressed.
    I am trying to avoid writing a login script, so I am hoping someone will be able to help me figure out why this works fine on Windows 2008 but not Windows 2003. Please note file names and paths are modified here for security reasons, but the principle is
    the same.
    My GPO is:
    Computer Configuration\Preferences\Windows Settings\Files
    File (Target Path: c:\Program Files\path\to\file\file.txt)
    Source file: \\share\path\to\file\file.txt
    Destination File: c:\program files\path\to\file\file.txt
    Action: Update
    Suppress errors on individual file actions: Disabled
    Read-Only: Enabled
    Hidden: Disabled
    Archive: Enabled
    Stop Processing items on this extension if an error occurrs on this item: No
    Remove this item when it is no longer applied: No
    Apply once and do not reapply: No
    Item-level Targeting: None
    Thanks

    As a user, I am able to browse the share just fine using the alias. It is only when I try to access the share using the system account that I encounter a problem.
    experiencing the exact same symptoms. in the tests below, server, client1, and client2 are all are native instances of microsoft windows server.
    server: windows server 2008 R2 standard SP1
    client1: windows server 2003 standard SP2
    client2: windows server 2008 R2 standard SP1
    registry setting "DisableLoopbackCheck": unconfigured on server; unconfigured on client1; unconfigured on client2
    registry setting "DisableStrictNameChecking": configured as "1" on server; unconfigured on client1; unconfigured on client2
    domain user on client1 attempt to access server by name: success
    domain user on client1 attempt to access server by alias: success
    domain user on client2 attempt to access server by name: success
    domain user on client2 attempt to access server by alias: success
    local system on client1 attempt to access server by name: success
    local system on client1 attempt to access server by alias: failed (system error 5 has occurred. access is denied.)
    local system on client2 attempt to access server by name: success
    local system on client2 attempt to access server by alias: success
    all tests done using "net view \\target", but similar results were seen when using "dir \\target\share" which the domain user and local system account have access to.
    the differing behavior between client1 and client 2 suggests that server 2003 requires additional configuration to allow its local system account to access an SMB share by alias.
    this problem prevents group policy features (such as software installation) from an aliased file server.

  • HT4759 how do i access my photo stream on my iMac, I can access it on my PC but not on my iMac...why not if i am running iPhoto 9?

    How do i access my photo Stream on my iMac, I can access it on my PC, iPhone, iPad but not iMac...does it have to do with iPhoto?  I have not updated to iPhoto11 but am running iPhoto 9.  Thank you...

    This screenshot shows which previous versions of iPhoto are compatible with Mavericks.  It also indicates which versions qualify for a free upgrade to iPhoto 9.5.1 and which require a purchase:
    Note:  every day more users are reporting problems with iPhoto 8.1.2 so I've included it in the non compatible category.
    OT

  • Pls Help!! BMP EJB can select but not modify table

    Hi, please help!
    I wrote a CMP EJB for a simple table. Inside are JDBC calls to the database, using a connection object generated from the line:
    return new oracle.jdbc.driver.OracleDriver().defaultConnection();
    Or
    return DriverManager.getConnection("jdbc:oracle:kprb:");
    The EJB compiled and deployed without problem to OracleJVM, but using it with the test app, the bean can select, but no insert or update to the table!!!
    Then I found that, if I use the thin driver, as well as the username and password in the getConnection() call, I can insert and update without problem...
    I desperately need help for this problem, please enlighten me with any thought.
    Yours.
    Patrick.

    I have been suggested to use JNDI JDBC Datasource, but still no hope. Can someone on the JDev team helps?
    Very desperate.... =(
    Patrick.

  • Access of MySQlL Driver class by eclipse but not from Outside Jar file

    Dear All,
    I have done a standalone application having access with MySQl database.
    I could access it when i execute it from eclipse. But when i export it into Jar file and running I get MySQL Driver class not found exception.
    Give me a better solution for this issue.

    CLASSPATH, CLASSPATH, CLASSPATH.
    You have defined the Eclipses Project Library Path to include the MySQL jar, but ar not including it on the classpath when executing the jar.
    Either modify the MANIFEST.mf file in the jar to include a reference to the MySQL driver jarfile or call java in the following manner
    java -cp /full/path/to/MySQL/Driver/jarfile.jar -jar yourJarFile.jarObviously, if this is on Windows and you are executing through a double click, the first option is the best option.

  • "DTD is prohibited" error when accessing sharepoint 2013/office365 list (but not openly aware of using XML)

    I've been getting a list of folders and files from Sharepoint (on Office 365) by using the following C# code...
    var folders = ListFolders(libraryName, clientContext, web);
    public List<Folder> ListFolders(string libraryName, ClientContext clientContext, Web web)
    var list = GetDocumentLibrary(libraryName, clientContext, web);
        var folders = list.RootFolder.Folders;
        clientContext.Load(folders); 
       clientContext.ExecuteQuery();
        return folders.ToList();       
    public List GetDocumentLibrary(string libraryName, ClientContext clientContext, Web web)
    var query = clientContext.LoadQuery(web.Lists.Where(p => p.Title == libraryName));
       clientContext.ExecuteQuery();
    return query.FirstOrDefault();
    It was working fine until I rebooted my computer (it installed a Windows Update), I strongly suspect, based on some testing I've done, it is caused by http://support.microsoft.com/kb/2964358 
    When the *clientContext.ExecuteQuery()* statement is reached in *GetDocumentLibrary()*, the
    following exception is thrown.
    *An unhandled exception of type 'System.Xml.XmlException' occurred in System.Xml.dll
    Additional information: For security reasons DTD is prohibited in this XML document. To enable DTD processing set the DtdProcessing property on XmlReaderSettings to Parse and pass the settings into XmlReader.Create method.*
    I'm wondering how I can work around this, as I'm not consciously using System.XML, it's a background function or process when the ExecuteQuery runs. 
    Can I pass some additional XMLReader info to this or clientContext (I'm assuming not), so I'm not sure how to execute this query to prevent the DTD error. I have also tried accessing the list in a different manner, by using this code... (from Microsoft's MSDN
    pages)
    List list = clientContext.Web.Lists.GetByTitle(libraryName);CamlQuery camlQuery = new CamlQuery();            camlQuery.ViewXml = "<View/>";ListItemCollection listItems = list.GetItems(camlQuery);clientContext.Load(list); clientContext.Load(listItems);clientContext.ExecuteQuery();
    This works on a computer without the KB above, however on my PC it doesn't (I get the same exception as my other code) , obviously uninstalling the KB will make things work in the short term, but its no good in the longer term. Any advice on how to avoid
    this error would be greatly appreciated.  I can only assume there will be a "preferred" way from Microsoft for accessing lists now this KB is implemented, but I'm clueless as to what it is.
    Thanks
    Dougie

    I've found that the issue is related to certain ISP's providing a "search assistance" page when a request returns an error due to no DNS entry matching that URL.  For example, if you use Verizon in the USA, and go to www.somenonexistanturl.com, it will
    "helpfully" respond to you with a search results page of possible options to match the URL you requested.
    Because this is not the expected XML that the SP Client Context library was looking for (i.e., it does not have the DTD that it validates), the exception is thrown.  The offending request that I have seen in my case is to the following URL: http://msoid.[my
    office 365 acct name].onmicrosoft.com/FPUrl.xml
    A simple resolution is to change your network connection adapter settings to use a DNS server IP other than the one auto-retrieved from your ISP, such as Google's (8.8.8.8 and 8.8.4.4). It's not a long term fix, since you'd breaking the ability to resolve
    internal resources from a private or corporate network (unless the private network is also setup with Google's IP for the DNS gateway).
    While you may have not changed any of your code, I would bet that you changed how/where you access the internet from when it was working to when it stopped working.
    What I am not entirely sure of is why did this start happening all of a sudden - was it a change from MSFT that broke the URL, or did the ISP(s) decide to become extra helpful with bad URLs?
    HTH
    --Thiago
    --Thiago

  • Itunes accesses files on external drive but not showing in finder

    I'm running OS  10.6.8. I have an external NTFS drive that I read and wirte to using NTFS mounter. I have files that iTunes show are in a folder on the external drive. iTunes will even play the songs. When I navigate to that folder in Finder there are no files displayed. I connected the drive to a PC and navigated to the folder. Windows says the file (folder) is corrupt. How is it possible that iTunes can read the files? How can I get read & write access to my files?

    You'll have to try to repair the drive on a PC.
    How is it possible that iTunes can read the files?
    Some things will still be readable when corruption occurs, the big problem is when writing occurs when there's corruption.

  • Trying to access SMB share, can read but not write, I use the domain account to autenticate and domain account has access to the share. its a samba domain and im a Windows Admin by trade.

    I have two  I Mac's Intel i7 models.
    I have some problems getting them to write files to SMB shares.
    The domain user account I use when requested to enter when i first try to connect to the share seems to go though without a problem and it presents me with a list of mounts (shares) I select one and the folder opens, I can read files and copy them but I cant write to any of the folders.
    I have also mounted the network locatiosn to a folder from the terminal while also specifying a user name and password to use but this also doesnt allow the specified user account to write data to the share.
    I have confirmed the user account can write to the share by having the user do so from a windows box.
    any help from any of you mac guys would be great!!!!
    Im a windows fan boy / Windows Server based Network Administrator and am slowly becomming a fan of your macs (mainly due to the Unix terminal access letting me realise there is more control to be had than most haters would lead you to believe).
    Peace Out

    I should add that I originally formatted the problematic drive for FAT32 from the Mac, but then the WinXP computer couldn't see the drive when I plugged it in directly via USB. That's why I went with Seagate's utility to format it.

  • My applet can access an image in Eclipse, but not when I put it online...

    Basically, I have an applet that displays images among other things.
    I stuck the images in the bin directory, and when I run the applet from Eclipse, there's no problem.
    But when I put the applet on my webpage, it crashes with a NullPointerException because
    image = ImageIO.read( new File( imageName ) ) can't seem to get the image.
    The images are in the same directory as my class files. I tried turning on all permissions.
    My html code is very simple:
    <applet code="ImageGenerator.class" width=1000 height= 500> </applet>
    Am I missing anything?
    Any idea what the problem is?

    Meteor,
    Can you shed some light on how big these files are?
    If these images are 200K each and you have 10 of them, then you're loading 2MB across the network each time the application loads. Depending on what you are doing, that may not be a good design.
    If these slow-loading images are needed right away, then embed them with your applet (preferably a Jar) and they should load pretty fast.
    If these slow-loading images are needed later, then thread the loading of them to a background task and use some form of visual feedback (like a "please wait" image) until they're finished.
    Lastly, if these images are relatively small and you are experiencing a significant speed difference between accessing them locally (such as on the server's file system or through a mapped-drive) and accessing them through http (or url, etc) then make sure your web server is feeding them up in a timely fashion and that there's no outstanding issues with the URL loading method and the Java version you're using.
    Please read Andrew's posts closely as you should not be designing an applet that loads files as a local resource unless you really need to. Signing the applet will allow you to save them locally to the filesystem (as a "cached" version to be loaded later), but don't try to load the images as files directly from the web server's file system. The signed applet will only be able to access the local file system of the station it's being run on, hence, usually not the server!
    As far as caching the files locally, Java webstart has potentially a better ways of doing that sort of stuff for you.
    -Tres

  • Changed apple ID has caused loss of access to email on macbook but not phone

    I have a MacBook Air and a iphone 6 plus. I just upgraded the Macbook to Yosemite.
    I have 3 email accounts that I use. A hotmail, a gmail and a me.com.
    I changed my apple ID because it is linked to an old hotmail account that I cannot access. This seems to have worked on the phone and on iTunes.  The problem is I cannot now get my me.com emails on my macbook (they are still on my iPhone).   I have tried adding the me.com account. When it goes to the screen where you tick what you want to access this is blank.
    I also tried going to internet accounts.  There is a tick box for iCloud there but at the top it keeps asking for my login under my old apple ID.  I have tried to delete the account and re-install it. It will not let me and gives a message that says 'remove I cloud from all internet accounts'.
    I am thoroughly confused and don't know what I need to do next. But I do need to access the me.com account from my laptop as I use it for my small home business.
    Any thoughts or tips would be gratefully received.

    I only watch the Apple TV occasionally.  Each time I turn it on, I have to re-enter the wifi password even though it shows it is connected with an IP address assigned and good signal strength.
    I can't seem to find a solution to this issue.  I have every other device known to man connected to this wifi with no issues.  Android Tablet, Phone, iPhone, iPad, Mac, PC, none of which every require me to re-enter the password.  I am an true fan of Apple and "Just Works" tag line, but this Apple TV thing is challenging me faith...

Maybe you are looking for

  • Switching back to delete file from PC?

    I recently selected a few files that I wanted to remove from iTunes, but didn't want to delete from my hard drive. Now I want to switch back and delete files from my hard drive, but when I select a track and click 'delete' it doesn't give me the choi

  • I want to transfer my favorite music file in to my iPhone 4s. But I do not know how. I have iTunes app in my computer.

    Pls kindly help

  • Cannot delete mail when over quota

    Hi there, I have mailbox quotas enabled on a 10.5.5 server, clients who go over 90% of quota get a mail each day telling them to delete mail etc, all seems to work fine in that respect. However, when they actually try to delete messages they receive

  • Can't upgrade OS to Tiger

    I have a PowerBook G4 17" 1gHz. When I try to install Tiger from retail disks, the hard drive doesn't show up as an installation destination. If I install Tiger from another computer using target disk mode, or try to boot from an external drive with

  • Sap mm - invoice ver

    hi while doing  invoive posting   - the following error occur "  enter tax jurisadication " how to slove the problem - explain step by step ali another while GR Post- the error " price change amounting 133.331 in month 03/2009 help  - step by step  a