Can't connect client with sdk 1.4 to glassfish 2.1 ejb

I have an EJB2 in Glassfish 2.1 correctly configured, my client is a vendor standalone app that uses jdk1.4 and I can not use appserv-rt because of a problem of incompatibility, I can only use an rt.jar library included in the app and maybe another library but not appserv-rt.
when I run my client I can't cast the object returned from the EJB so I obtain a NULL as a result of the cast
ctx = new InitialContext(env);
Object o = ctx.lookup("something");
----------------->Object narrowed = (AccesoSigeEJBHome)PortableRemoteObject.narrow(o, AccesoSigeEJBHome.class);
I tried adding appserv-rt in my test standalone app and it does good, my problem is that in real life I can not use that jar.
Anybody knows how to solve this problem?

Sometime I get the same problem, you don't use jboss: but jboss ist capable of so-called "class isolation".
Without using correct jar I have no idea to deal with this class loading issue ...

Similar Messages

  • HT4623 I just got an iPhone 4, and I can not connect it with my iTunes. I tried to set up a new iTunes account but it says that my security code is wrong, even when everything is correct. What should I do?

    I just got an iPhone 4s, and I can not connect it with my iTunes from my previous account. I have already tried making another account, however it says that I have the wrong security code even though this is not true. What should I do?

    Contact iTunes support.  There's a link to it on the bottom of every page in the iTunes store.

  • Macbook pro retina 15 after update OS X 10.9.3 to 10.9.4 can't connect wifi with Channel Width 40 HMz

    macbook pro retina 15 after update OS X 10.9.3 to 10.9.4 can't connect wifi with Channel Width 40 HMz

    That's odd. I assume this is the 5 GHz band, right?
    Have you tried changing the router to do auto 20/40?
    Have you tried deleting and reconnecting to the wifi network?

  • Macbook/mac mini can ethernet connected[crossover] with another PC-windows?

    macbook / mac mini can ethernet connected crossover with another PC - windows like Sony VAIO laptop VGN-A297XP CEZ ? If yes can share all services like pc-pc connection ? IF Ethernet speed is 100/1000 for this laptop what is connection speed mac-pc ?

    If you temporarily connect the Mac Mini server to the Time Capsule (TC) by Ethernet, can it gain Internet access now? Is the Mac Mini in the same room, different room/floor from the TC?

  • How can i connect labview with ge fanuc versamax plc via VISA

    I, ve a ge fanuc versamax plc. I am building a data logger in labview. There are two current trasmitters. I dont have any other data acquisition devices other than PLC. How can i access data acquired by PLC and how can i connect it with labview using VISA?

    KPAC wrote:
    I've a ge fanuc versamax plc. I am building a data logger in labview. There are two current trasmitters. I dont have any other data acquisition devices other than PLC. How can i access data acquired by PLC and how can i connect it with labview using VISA?
    There may be variations between models, but I believe all VersaMax support Modbus and GE's own SNP/SNPX serial communication protocols.
    For Modbus communication protocol:
    The link here is a good outline of the different options available. If you really want to limit yourself to the option of using VISA, then it's Items 1. and 2. in Khalid's list that are applicable. You might have to modify some of the free LabVIEW Modbus VIs to suit you needs, but they are useful as examples if you have little experience programming a serial driver.
    For SNP/SNPX:
    Your options are similar to those for Modbus, except that I'm not aware of any existing free set of LabVIEW VI's for it. With a web search you might find something (I almost programmed one 10 years ago). The SNP/SNPX protocol is/was well documented in a GE FANUC manual which you could get from them (in 1993 it was GFK-052B "Series 90 PLC Serial Communications User's Manual") so you still can write your own set of VIs.
    If you don't really need to limit yourself to using VISA, there are ActiveX and OPC drivers available which use SNP/SNPX that you can find with a web search. And you can see here that NI's Industrial Automation OPC Server's do include an object for GE Fanuc Versamax via Ethernet. This would not be the cheapest in terms of capital cost though.
    Good luck.
    =====================================================
    Fading out. " ... J. Arthur Rank on gong."

  • Can i connect iphone with itunes on windows pc?

    can i connect iphone with itunes on windows pc?
    and if i can, am i going to lose everything if the device is the fisrt time is connecting with this pc?

    Yes you can connect it.
    You will only loose everything if you choose to sync. If you don't then no.  But then you won;t be able to do much while connected, as any transfer of data  (music, movies, etc..) will require a sync.

  • Problem In connecting Client with oracle

    hello all,
    I am trying to connect a system, with my oracle server, but the client machine is also having oracle installed on it. Is it possible to connect same machin with my oracle server. I am working on Oracle 8i.

    Except version incompatibility, any Oracle system can connect to any Oracle DB, any Oracle server can work as Client to another Oracle server.
    On the machine that works as Client you have only to configure a TNS alias to connect to the DB on the other machine.

  • How can I connect PS3 with my iMac?

    I am using a 21 inches iMac all in one pc.... and i found out that i could connect it with the ps3... but I have no idea which adapter do i have to use and where i can get one....? If someone knows abt it, pls do share the information with me as soon as possible thanks...

    https://discussions.apple.com/thread/3578774?tstart=0
    xbox, pc, blueray player, ps3
    hdmi is hdmi and it all works the same way

  • SUPER URGENT - I can't connect Discoverer with my own Oracle Data Base

    Please sobebody help me!
    I've installed Oracle9i Personal, but I can't connect to Discoverer with it.
    When I put the "username" , "password" and the "name of the bank" the system
    returns the message:
    'I was not able define the name of the service'
    What must I do???
    How can I configure the 'Oracle 9i Personal' to connect to Discoverer 4?

    I have highlighted your error. You are trying to invoke a method over a null object.
    Hi,
    Is that something wrong with my db connection? Why I
    can't insert the data to the db. By the way, I using
    Tomcat 3.1, oracle enterprise 8.1.7 and JDK1.3
    <html>
    <head>
    <basefont face="Arial">
    <%@ page language="java" import="java.sql.*" %>
    <%!
    //define variable
    String UId;
    String FName;
    String LName;
    String city;
    String phone;
    String conn;
    %>
    <table border="2" cellspacing="2" cellpadding="5">
    <tr>
    <td><b>Owener</b></td>
    <td><b>First Name</b></td>
    <td><b>Last Name</b></td>
    </tr>
    <%
    Connection connection = null;
    Statement statement = null;
    ResultSet results = null;
    Statement SQLStatement =
    connection.createStatement();
    Class.forName("oracle.jdbc.driver.OracleDriver");
    String url =
    "jdbc:oracle:oci8@administrator:1521:mylogo";
    connection = DriverManager.getConnection(url,
    "sysman", "manager");
    statement = connection.createStatement();
    String Query = "SELECT * FROM USER";
    ResultSet SQLResult =
    SQLStatement.executeQuery(Query);
    while(SQLResult.next())
    UId = SQLResult.getString("LNAME");
    FName = SQLResult.getString("FNAME");
    LName = SQLResult.getString("DEPT");
    city = SQLResult.getString("TITLE");
    phone = SQLResult.getString("TEL");
    out.println("<tr><td>" + UId + "</td></td>" + FName
    me + "</td><td>" + LName
    +"</td><td>" + city + "</td><td>" + phone +"
    +" </td>");
    %>
    <td> <a
    a href="delete.jsp?uid=<%=UId%>">delete</a></td>
    <td> <a
    a href="editform.jsp?uid=<%=UId%>">edit</a></td>
    <td> <a href="insert.htm">Insert</a></td>
    <tr>
    <%
    //close connection
    SQLResult.close();
    SQLStatement.close();
    connection.close();
    %>
    </table>
    </body>
    </html>
    Any help is appreciated !

  • It can do internal reconciliacion with SDK

    Anybody know it's if It can internal reconciliacion with SDK
    I need reconcile a purchase invoice with a jounarl entry with SDK
    Plaase help me.
    Best regards.
    Claudio

    Hi,
    what you can do is to develop an AddOn
    that works with UIAPI.
    you open all windows with your addon and click everything you need.
    ok, you will see some minutes "windows opening and closing and data selecting"
    but at least it works
    lg David

  • Can we connect Outlook with Exchange 2013 with the default Self-signed certificate?

    Hi,
    the question is very simple, but after several days searching in this forums and in the web I have not been able to find a definitive answer YES or NOT. I know that Self-signed certificates are not for a production enviroment and only for labs and we must
    purchase a third party certificate or get one from a internal CA.
    Anyone can answer this question with no doubt?
    Thanks in advance!
    jspt

    Hi Abhi,
    I wrote this question because in a recent migration to 2013 from 2007 we've found with this problem: you can view it in the post http://social.technet.microsoft.com/Forums/exchange/en-US/1ddd1e81-1061-4461-95dd-13de653ef8fe/outlook-cant-connect-with-exchange-2013-after-migration-from-exchange-2007?forum=exchangesvrdeploy.
    Also I have installed a new exchange 2013 in a lab enviroment and I also have unabled to connect from a Outlook 2013. The problem is the same Outlook is unable to detect the exchange server. Many people in this forums told me that have to be a certificate
    problem and for that I posted this question. Honestly, I don't know how to do for Outlook can be connect with Exchange 2013. I don't know what I'm doing wrong.
    Anyway thanks for your answer.
    jspt

  • Powerbook & iBook can't connect simultaeneously with D-link 300-t modem

    Please help
    After much pulling of hair I finaly got my G4 Powerbook to connect to the internet via my airport express through a d-link 300-t modem. This I achieved by changing the default ip address of the modem from 192.168.1.1 to 192.168.1.234 and configuring the airport express manually to be 192.168.1.233.
    My problem is that my son now has an iBook which he can connect to the internet through the same modem, but we can't connect at the same time. I keep getting the message " 81.178.76.171 in use by 00:11:24:24:25:7d,DHCP Server 192.168.1.234" ( modem ip). Both machines configure IPv4 using DHCP.
    I don't want to configure his iBook manually if I don't have to as he doesn't live here and I don't want to muck up his settings for other places he may wish to use it.
    Any thoughts would be greatly appreciated
    David Moore

    Is the Airport Express distributing IP addresses?
    Probably no
    You can set up a new location on his iBook which will not conflict or change his current settings.
    iFelix

  • Can' t connect Java with MySQL

    My goal is to connect Java with MySQL. I found many solutions on Internet, but I always get the same mistake:
    SQLException: No suitable driver
    SQLState: 08001
    VendorError: 0MySQL works fine alone or with php.Only thing left me to think is that the installed versions are not compatible for this mysql-connector-java-5.0.4
    I don't believe that could be a reason.
    Installed versions are:
    Apache Tomcat 5.5.20 Server
    Apache HTTP Server 2.2.4
    PHP 5.2.0
    MySQL 5.2
    jre 1.5.0_11
    jdk1.5.0_11
    Apache Tomacat JK2 connector Version: 1.2.20 File Name: mod_jk-apache-2.2.3.so
    mysql-connector-java-5.0.4
    I also set connector in class path: C:\mysql-connector-java-5.0.4;C:\mysql-connector-java-5.0.4\mysql-connector-java-5.0.4-bin.jar;C:\mysql-connector-java-5.0.4\src\com\mysql\jdbc
    For installation I used manulas from:
    http://apacheguide.org/jsp.php
    http://doc.51windows.net/mysql/?url=/MySQL/ch23s03.html
    Here is also a test code in java:
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.SQLException;
       public class Connect
           public static void main (String[] args)
               Connection conn = null;
               try {
        conn =
           DriverManager.getConnection("jdbc:mysql://localhost/first_test" +
                                       "user=monty&password=greatsqldb");
        // Do something with the Connection
    } catch (SQLException ex) {
        // handle any errors
        System.out.println("SQLException: " + ex.getMessage());
        System.out.println("SQLState: " + ex.getSQLState());
        System.out.println("VendorError: " + ex.getErrorCode());
       }i'm desperate, please help or tell me someone who'll know the answer.
    Thank You in advance

    hey buddy .. it seems yr code is wrong .. in getconnection () method u should also specify the port ,which u r not doing ...
    the default port for MySQL is 3306 ... see below i am giving you a sample code ... its working fine .. and dont forget to put the MySQL driver jar path in to classpath and also copy the jar into common/lib folder of your tomcat ....
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;
    public class MySQLConnectionTest {
         public static void main(String[] args) {
    new MySQLConnectionTest().connTest();
    public void connTest() {
              String tableName = "portfolio"; //change as per setting
              String hostName = "10.81.9.39"; // please change for the target database ip or hostname
              String dbPort = "3306"; //change if not using the default
              String dbName = "tradingsystem"; //change as per the given DB name
              String username = "root"; //change as per setting
              String password = "password"; //change as per setting
              System.out.println("before try");
              Double data=0.0;
         Double data1=0.0;
              try {
    Class.forName("org.gjt.mm.mysql.Driver");
                   System.out.println("before driver manager");
    Connection conn = DriverManager.getConnection("jdbc:mysql://"+hostName+":"+dbPort+"/"+dbName, username, password);
    String query1 = "select * from "+tableName+" where User_id='trader1' and Stock_Type='Equity'";
    System.out.println("quesry1="+query1);
    Statement stmt = conn.createStatement();
    ResultSet rs1 = stmt.executeQuery(query1);
    while(rs1.next())
         System.out.println("hiiiiii for rs1");
         System.out.println(rs1);
         Quantity=(Integer)rs1.getObject(5);
         MarketPrice=(Double) rs1.getObject(8);
         data=Quantity*MarketPrice;
         data1+=data;
         System.out.println("data1="+data1);
         i=0;
    rs1.close();
    stmt.close();
    conn.close();
    } catch (ClassNotFoundException e) {
    e.printStackTrace(System.err);
    } catch (SQLException e) {
    e.printStackTrace(System.err);
    i hope it will work for u...
    cheers,

  • Can't connect FaceTime with iPad 2.

    After entering my Apple ID I get a message saying...
    FaceTime Activation
    Could not sign in.  Please check your
    network connection and try again.
    My network seems to be working fine and am able to access the internet as well as my Apple ID account through the internet.
    Please help...

    Hello gents
    I also had this problem and tried a number of options. Port forwarding did not do the trick and as it poses a security risk it's not the wisest thing to do anyway. But after a very long search I found another tip which was to set the DNS of every Apple device you want to run FaceTime on, to 8.8.8.8
    I tried this, and now FaceTime works on my iPad2 wifi/32 and also on my iMac and my MacBook Pro. On the same wireless network!
    So this action seems to solve both the "can't connect" problem and the problem of not being able to run FaceTime at the same time on multiple Macs.
    Just to make sure you should write down the original DNS address which is probably 10.0.0.138..
    On iPad2, exit FaceTime, then go to settings, find the wireless network you're using, and tap the blue arrow thing next to the network name. There you will be able to access the DNS number. Just change it and save settings, then start FaceTime again.
    Hope this helps guys.
    Good luck and greetings from sunny Netherlands

  • Can I do this with SDK?

    I have Premier CS 2. In project I want to check that the sequence within work area bar does contain no black fields or very short shots (microshots) before exporting video.
    Is it possible to do this with SDK?
    p.s. Sorry for my poor english.

    This is not possible with formated searches.
    With SDK, depends on if it is Matrix or Grid, on if it is a system form/your own form. But basically, loop throw the form or datasource, and do the sumatory.
    Regards,
    Ibai Peñ

Maybe you are looking for