Serialization - ClassNotFound Exception ?!

First hallo every one :
Second:
i have a problem with deserialization , i have here 3 machines talk to each others through objects (Called MessageX) this happen through sockets and Object Input & Output Streams .
now class MessageX is inside the package of each program of the 3 machines , but once one of them receive an object at casting it back to the MessageX type i get a nice Exception saying that ClassNotFound Exception .
so now does that mean that i cant talk through objects [i guess not] , and if i can how i can overcome the class not found exception ?!
thanks in advance for each replay .

so now does that mean that i cant talk through objectsNo, of course it doesn't.
if i can how i can overcome the class not found exception ?!The machine where you got the exception doesn't have the class named in the exception available in its classpath. It's as simple as that.

Similar Messages

  • Classnotfound exception in Studio

    I have this entity bean that I have deployed in weblogic. I am now trying to use
    the studio to create a business operation from one of the Bean methods. When I
    click on Configuration->Business Operations, I get a Classnotfound exception for
    the beans remote class.
    To get around this, I placed the bean jar file in the classpath in startweblogic.cmd
    for the domain. After this the problem went away and I was able to create the operation.
    Question is, is this the right way to have WLI find the class? Since I have deployed
    this in weblogic, shouldn't it be able to find the class files? What is the recommended
    way or am I doing something wrong.
    Thanks,
    --Krish.

    Use
    Class.forName("com.mysql.jdbc.Driver");Is the MySQL JDBC JAR file listed in project path.?

  • Java.lang.ClassNotFound Exception whenever I include .send()

    Everything runs fine, but when I add the .send(message); [it is in bold] I get a java.lang.ClassNotFound Exception.
    It still compiles, it just won't allow me to launch the program in the emulator. If I take that one piece of code out, everything runs fine again. I've been messing with it, and searching for a long time in an attempt to solve the problem but I've yet to come across a solution.
    I'm also using Bluej
    import java.io.*;
    import java.lang.*;
    import javax.microedition.lcdui.*;
    import javax.microedition.io.*;//Add SMS text, Map selection (upload image/altitude-scale)
    import javax.microedition.lcdui.Font;
    import javax.microedition.lcdui.Graphics;
    import javax.microedition.lcdui.Image;
    import javax.microedition.lcdui.Canvas;
    import javax.microedition.lcdui.Graphics;
    import javax.microedition.lcdui.game.GameCanvas;
    import javax.wireless.messaging.*;
       public class cardcanvas extends GameCanvas implements Runnable, CommandListener {
        Image i, Mortar, Target, paintballcharleston, selectimg, Cursor;
        SendSMS sendtext;
        Thread t = new Thread(this);
        Command cmdfire=new Command("Fire", Command.BACK, 1 );
        Command cmdreset=new Command("Reset", Command.ITEM, 2 );
        String text, message;
        static Image Map;
        MessageConnection messageConnection;
        TextMessage textMessage;
        int mortarX=5500, mortarY=5500, targetX=5500, targetY=5500, distanceX, distanceY, delay, mapx=-250, mapy=-250, xvel=115, yvel=130, gameAction=0, timer=0;
        double A, B, C, b, degreeX, degreeY, degreeV, voltageX, voltageY, scale=1.4235, findDegree=90;//get scale of pixel:realtime feet
        boolean paintdown=false, paintup=false, paintright=false, paintleft=false, left, finish, firemor, initiate, click, bottom=true, noYdegree, reset, sms=false;
        public cardcanvas(){
            super(false);
            this.addCommand(cmdfire);
            this.addCommand(cmdreset);
            this.setCommandListener(this);
        public void intit() {}
        public void start() {
            t.start() {}
        public void run()
            try{
                while(true)
                    if(paintright) {
                        timer++;
                        if(timer>1&&timer<4) xvel=xvel+5;
                        if(timer>=4&&timer<6) xvel=xvel+10;
                        if(timer>=6) xvel=xvel+20;
                    if(paintleft) {
                        timer++;
                        if(timer>1&&timer<4) xvel=xvel-5;
                        if(timer>=4&&timer<6) xvel=xvel-10;
                        if(timer>=6) xvel=xvel-20;
                    if(paintup) {
                        timer++;
                        if(timer>1&&timer<4) yvel=yvel-5;
                        if(timer>=4&&timer<6) yvel=yvel-10;
                        if(timer>=6) yvel=yvel-20;
                    if(paintdown) {
                        timer++;
                        if(timer>1&&timer<4) yvel=yvel+5;
                        if(timer>=4&&timer<6) yvel=yvel+10;
                        if(timer>=6) yvel=yvel+20;
                    if(mapy<-320) mapy=-320;
                    if(mapx>0) mapx=0;
                    if(mapy>0) mapy=0;
                    if(mapx>197) mapx=197;
                    if(xvel>225)
                        mapx=mapx-5;
                        targetX=targetX-5;
                        mortarX=mortarX-5;
                        xvel=225;
                    if(xvel<5)
                        mapx=mapx+5;
                        targetX=targetX+5;
                        mortarX=mortarX+5;
                        xvel=5;
                    if(yvel>260)
                        mapy=mapy-5;
                        targetY=targetY-5;
                        mortarY=mortarY-5;
                        yvel=260;
                    if(yvel<5)
                        mapy=mapy+5;
                        targetY=targetY+5;
                        mortarY=mortarY+5;
                        yvel=5;
                        if(reset) {
                            mapx=-250;
                            mapy=-250;
                            xvel=115;
                            yvel=130;
                            left=false;
                            firemor=false;
                            finish=false;
                            initiate=false;
                            click=false;
                            bottom=true;
                            noYdegree=false;
                            reset=false;
                            targetX=5500;
                            targetY=5500;
                            mortarX=5500;
                            mortarY=5500;
                            A=0;
                            B=0;
                            C=0;
                            b=0;
                            degreeX=0;
                        if(initiate) {
                           distanceX=targetX-mortarX;
                           distanceY=targetY-mortarY;
                           A=distanceY;
                           B=distanceX;
                               if(distanceY<0)
                                    A=distanceY*-1;
                                    bottom=false;
                               if(distanceX<0)
                                    B=distanceX*-1;
                                    left=true;
                            A=A*scale;
                            B=B*scale;
                            C=Math.sqrt((A*A)+(B*B));
                                while(((A*(Math.tan(b)))<B+.00002))
                                    b=b+.0001;
                            b=b*180/3.1415926535897932384626435;
                            degreeX=b;
                                if(bottom)
                                    b=90-b;
                                    b=b+90;
                                    degreeX=b;
                                if(left)
                                    degreeX=360-b;
                            initiate=false;
                            text=("DegreeX is "+degreeX+" Range is "+C);
                             sendTextMessage();
                     verifyGameState();
                     paint(getGraphics());
                     Thread.currentThread().sleep(1);
                catch (Exception E) {}
        private void verifyGameState() {}
        public void sendTextMessage()
            try
                String message = " ";
                MessageConnection messageConnection = (MessageConnection)Connector.open("sms://18433036060");
                TextMessage textMessage = (TextMessage)messageConnection.newMessage(
                        MessageConnection.TEXT_MESSAGE, "18433036060");
                textMessage.setPayloadText(message);
                *messageConnection.send(textMessage);*
            catch (Exception e) {}
    }If I remove messageConnection.send(texstMessage); the error is gone.
    Thanks in advance for your time

    cardmidlet:
    import javax.microedition.lcdui.*;
    import javax.microedition.midlet.MIDlet;
    import javax.microedition.midlet.MIDletStateChangeException;
    import java.io.IOException;
    import java.lang.*;
    public class cardmidlet extends MIDlet implements CommandListener {
        private Display display; Display map;
        cardmidlet midlet;
        private Form form; Form mapselection;
        private List menuList ;
        String[] elements=new String[]{"Initiate Program","Select Map","Help","About"};
        private Command selectCommand;
        Alert alert;
            private Command fnext=new Command("NEXT",Command.ITEM,1);
            private Command fback=new Command("BACK",Command.BACK,1);
            private Command mapnext=new Command("Next",Command.ITEM,1);
        private TextField uname; TextField mapchoice;
        public String nname, nmap;
        cardcanvas cd;
        protected void destroyApp(boolean arg0) throws MIDletStateChangeException {
        protected void pauseApp() {
        public cardmidlet() {
             menuList();
             cd = new cardcanvas();
        public void menuList(){
             display = Display.getDisplay(this);
             menuList = new List("Menu", List.IMPLICIT, elements, null);
             selectCommand=new Command("open",Command.ITEM,1);
             menuList.setSelectCommand(selectCommand);
             menuList.setCommandListener(this);  
        protected void startApp() throws MIDletStateChangeException {
            display.setCurrent(menuList);
        public void about(){
            alert = new Alert("Option Selected", "This program is created by"+"\n"+" Chris Furlong.", null, null);
              alert.setTimeout(Alert.FOREVER);
              alert.setType(AlertType.INFO);
              display.setCurrent(alert);
        public void help() {
            alert = new Alert("Option Selected", "Use the 4 d-pad keys to move the cursor. Press the center button once to select the mortar position, and a second time to select the target position. When both the mortar and the target are on screen, press the upper left key to begin the firing process. If you place one on the map by mistake, simply reset the program with the upper right key and start over.", null, null);
            alert.setTimeout(Alert.FOREVER);
            alert.setType(AlertType.INFO);
            display.setCurrent(alert);
        public void InitiateProgram(){
            display=Display.getDisplay(this);
            uname=new TextField("Enter your name","",50,TextField.ANY);
            form =new Form("New User");
            form.append(uname);
            form.addCommand(fnext);
            form.addCommand(fback);
            form.setCommandListener(this);
            display.setCurrent(form);
        public void selectmap()
           /* display=map.getDisplay(this);
            mapchoice=new TextField("Enter Map Name","",50,TextField.ANY);
            mapselection=new Form("Map Selection");
            mapselection.append(mapchoice);
            mapselection.addCommand(mapnext);
            mapselection.addCommand(fback);
            mapselection.setCommandListener(this);
            display.setCurrent(mapselection);*/
            display = map.getDisplay(this);
            map choose=new map();
        public String name(){
            nname=uname.getString();
            return nname;
    /*   public String mapname() {
            nmap=mapchoice.getString();
            return nmap;
        public void commandAction(Command com, Displayable arg1) {
             if(com==selectCommand)
                if(menuList.getSelectedIndex()==3)
                    about();
                if(menuList.getSelectedIndex()==2)
                    help();
                if(menuList.getSelectedIndex()==1)
                    selectmap();
                if(menuList.getSelectedIndex()==0)
                    InitiateProgram();
            if(com==fback)
                display.setCurrent(menuList);
            if(com==fnext){
                display = Display.getDisplay(this);
                cd.start();
                display.setCurrent(cd);
            if(com==mapnext)
                display = map.getDisplay(this);
                map choose=new map();
                display.setCurrent(choose);
    }

  • JMF Application Throwing ClassNotFound Exception

    I have installed JMF 2.1.1 on Windows 2000 and JMStudio runs fine. However, when I try to run a custom application that uses JMF and the mediaplayer bean, it throws a ClassNotFound Exception:
    java -cp C:\JMF2.1\lib\sound.jar;C:\JMF2.1\lib\jmf.jar;C:\JMF2.1\lib\me
    diaplayer.jar -jar its.jar
    Exception occurred during event dispatching:
    java.lang.NoClassDefFoundError: jmapps/ui/JMFrame
    Could someone explain to me why I'm getting this error when the classpath appears to be set correctly? (I have also tried using the CLASSPATH environment variable with no avail)

    Are you sure that the class in question is in the packages you specified in the classpath? To double-check, you can use the jar utility to view which files and packages are in a given jar file. The jmapps package might be in a completely different jar file.
    Daniel Roth

  • JRE 1.4.x : ClassNotFound exception

    Hello
    I am having a problem in running a Swing based applet in 1.4.x JRE in Internet Explorer 6.0 SP1
    The HTML page loads the applet using the <APPLET> tag and the applet is loaded from a remote server.
    Via the browser settings, the browser has been instructed to use the SUN JRE Plugin for all <APPLET> tags.
    The plugin is able to retrieve the applet correctly, but, throws a ClassNotFound exception.
    The same works just fine in 1.3.1_x versions of JRE.
    Does anybody have a clue as to what is going on ?
    Thank you
    Regards

    First of all give the details about the exceptions thrown i.e. which class and what exception. Secondly install Java on the machine which is accessing APPLET through web browser. If the problem is solved it means that your internet explorer is not supporting Swing class (i.e. the required environment was not present) and this can be the problem.
    Intekhab

  • ClassNotFound exception... again

    Yet another ClassNotFound Exception error but I've trawled through the forum and done everything mentioned to no avail. I have downloaded the Oracle driver classes12.jar and taken the entire path and added it to my ClassPath. I've even opened the command window and ECHO %CLASSPATH% where I see the location of this jar:
    .....C:\Documents and Settings\hilton\My Documents\Java Projects\OracleExamples\classes12.jarI have also restarted NetBeans also without any positive effect, please could someone point me in the correct direction. Here's the code I'm trying to run, just something simple I found on the internet:
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package sandbox.jdbc;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.SQLException;
    * @author user
    public class SimpleConnection {
        public static void main(String[] args) {
            Connection connection = null;
            try {
                // Load the JDBC driver
                String driverName = "oracle.jdbc.driver.OracleDriver";
                Class.forName(driverName);
                System.out.println("Driver Set: "+ driverName);
                // Create a connection to the database
                String serverName = "appt2.erp.plasson.com";
                String portNumber = "8000";
                String sid = "DEV";
                String url = "jdbc:oracle:thin:@" + serverName + ":" + portNumber + ":" + sid;
                String username = "hilton";
                String password = "tarmenel";
                System.out.println("Parameters set");
                connection = DriverManager.getConnection(url, username, password);
            } catch (ClassNotFoundException e) {
                System.out.println("Class not found, check class path:");
                e.printStackTrace();
            } catch (SQLException e) {
                System.out.println("SQL Exception:");
                e.printStackTrace();
    }

    Thanks alot for the help. After establishing that I could connect to the database through the command prompt this time using DERBY to make sure it was working I also figured that there was something else missing and remembered that there were the libraries that could be added, basically the same as what you explained. For anyone who stumbles onto this post and finds the problem remember to add the library to the project:
    1. Right click on your project and select Properties
    2. Select Libraries
    3. On the right there are some buttons, select Add Library..
    4. From there I found the Java DB Driver
    A note is that you could probably add other jar and will try this with the Oracle driver.
    To test the DERBY connection I connected to the server, +%DERBY_INSTALL%/bin/ij+
    Here again I made sure the server was running from NetBeans, Tools>Java DB Database>Start Server
    I then connected to my database, ij> connect 'jdbc:derby://localhost:1527/COFFEEBREAK' USER 'user' PASSWORD '1234';
    Remember that the parameters are in inverted comma.
    I also found it easier to create the database in NetBeans before the time, Tools>Java DB Database>Create Database

  • Weblogic 6.1 sp2 throws ClassNotFound exception in war files

    Hi there,
    I have a question related to Weblogic 6.1 SP2. I developed
    a servlet app deployed as a war file. Inside the war file,
    I included two jar files in WEB-INF\lib. One of the jar files
    is a third party library. The other one is inhouse developed
    client classes that will require access to the third party
    libraries. This scheme works fine under Weblogic 6.0 sp2.
    But, once I upgraded to 6.1 SP2, it throws ClassNotFound
    exception. I suspect the class loader is different from
    6.0. To test it out, I extract the third party library to
    WEB-INF\classes. It finds the classes from the library.
    My question is how could I make it work as the way it does
    under 6.0?
    Thank in advance.

    Hi Rock,
    6.1 SP2 has a known bug in the servlet container.
    If a jar file in the WEB-INF/lib has dots in it's name,
    classloader will not find classes in the jar.
    Example of such naming is common1.2.0.jar. The
    solution is simple. The jar should be renamed to
    not contain dots, like common.jar.
    Regards,
    Slava Imeshev
    "Rock Wang" <[email protected]> wrote in message
    news:3cc5d454$[email protected]..
    >
    Hi there,
    I have a question related to Weblogic 6.1 SP2. I developed
    a servlet app deployed as a war file. Inside the war file,
    I included two jar files in WEB-INF\lib. One of the jar files
    is a third party library. The other one is inhouse developed
    client classes that will require access to the third party
    libraries. This scheme works fine under Weblogic 6.0 sp2.
    But, once I upgraded to 6.1 SP2, it throws ClassNotFound
    exception. I suspect the class loader is different from
    6.0. To test it out, I extract the third party library to
    WEB-INF\classes. It finds the classes from the library.
    My question is how could I make it work as the way it does
    under 6.0?
    Thank in advance.

  • Exception occured CRV.java.lang.classnotfound exception

    Dear sir
    I am implemention an application called CRV in that i am facing error as:
    " exception occured in CRV.java.lang.ClassNotFound exception com infy.bbu.crv. CRV error type"
    Kindly explain the cause and solution for the same

    CRV.java.lang.classnotfound exception
    may i know the some code of ua program
    Message was edited by:
    sareen
    Message was edited by:
    sareen

  • ClassNotFound Exception when try to list cardservice

    I was trying to list the applications in the card with the codes in OCF1.2 programmer's guide, but got a ClassNotFound Exception. Here is my code:
         AppletAccessCardService aacs = null;
                   aacs = (AppletAccessCardService)sc.getCardService(AppletAccessCardService.class, true);
                   if(aacs != null){
                        AppletInfo[] ai = aacs.list();
                        for(int i=0; i<ai.length; i++)
                             System.out.println(ai.toString());
    The output message:
    java.lang.ClassNotFoundException: CardService implementing interface opencard.opt.applet.mgmt.AppletAccessCardService
    at opencard.core.service.CardServiceRegistry.getCardServiceInstance(CardServiceRegistry.java:269)
    at opencard.core.service.SmartCard.getCardService(SmartCard.java:331)
    at GetCID.main(GetCID.java:27)
    But cardman list shows there are applets in the card:
    Application: PERSONALIZED (--------) 080000000A0001
    Load File : LOADED (--------) A0000000620001 (java.lang)
    Load File : LOADED (--------) A0000000620101 (javacard.framework)
    Load File : LOADED (--------) A0000000620102 (javacard.framework)
    Load File : LOADED (--------) A0000000620201 (javacardx.crypto)
    Load File : LOADED (--------) A0000000030000 (visa.openplatform)
    Load File : LOADED (--------) A000000167413001
    Load File : LOADED (--------) A0000001320001
    Load File : LOADED (--------) A0000000035350
    Load File : LOADED (--------) A000000063 (PKCS15)
    Load File : LOADED (--------) 080000000A00
    Why did I get this Exception? Is it because that no applet in the card implements the AppletAccessService interface? Thanks in advance.

    The problem is located in your opencard.properties file:
    You have to include opencard.opt.emv.mgmt.EMVCardServiceFactory to your list of OpenCard.services.
    My complete opencard.properties is as follows:
    # Card service configuration  #
    OpenCard.services = \
        com.ibm.opencard.factory.MFCCardServiceFactory \
        opencard.opt.util.PassThruCardServiceFactory \
         opencard.opt.emv.mgmt.EMVCardServiceFactory
    # Card terminal configuration #
    OpenCard.terminals = com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminalFactory
    # Trace configuration         #
    OpenCard.trace = opencard:5

  • ClassNotFound exception, when load own Customizer

    I have own BooleanCustomizer that implements DescriptorCustomizer, it's packed in the same jar as entity classes. It's registered in persistence.xml:
    <property
         name="toplink.descriptor.customizer.MyEntityClass"
         value="jpa.util.BooleanCustomizer"/>
    Customizer works fine out of container - JUnit tests from Eclipse and Swing app. But in JSF app running on Tomcat, I get exception:
    oracle.toplink.essentials.exceptions.EntityManagerSetupException Exception Description: ClassNotFound: [jpa.util.BooleanCustomizer]
    It looks similar as:
    class not found exception - where to put custom session customizer?
    Any solution ?

    Which version are you using? A change was made recently to TopLink essentials to correct a classloader issue on session customizers.
    Cheers,
    Guy

  • "Unable to de-serialize response" exception when quering mbeans

    Does anybody know what does it mean?
    Thanks
    Unable to de-serialize response, message [ JMX exception (java) v1.0 |  | com.sap.engine.services.jmx.exception.JmxConnectorException: Sending message synchronously failed, target node 4001, message [ JMX request (java) v1.0 len: 149 |  src: 2 target-node: 4001 req: queryNames params-number: 2 params-bytes: 0 |  ] ]
    com.sap.engine.services.jmx.exception.JmxConnectorException: Unable to de-serialize response, message [ JMX exception (java) v1.0 |  | com.sap.engine.services.jmx.exception.JmxConnectorException: Sending message synchronously failed, target node 4001, message [ JMX request (java) v1.0 len: 149 |  src: 2 target-node: 4001 req: queryNames params-number: 2 params-bytes: 0 |  ] ]
         at com.sap.engine.services.jmx.ClusterInterceptor.queryNames(ClusterInterceptor.java:1031)
         at com.sap.engine.services.jmx.MBeanServerInterceptorInvoker.invokeMbs(MBeanServerInterceptorInvoker.java:109)
         at com.sap.engine.services.jmx.connector.p4.P4ConnectorServerImpl.invokeMbs(P4ConnectorServerImpl.java:58)
         at com.sap.engine.services.jmx.connector.p4.P4ConnectorServerImplp4_Skel.dispatch(P4ConnectorServerImplp4_Skel.java:64)
         at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:268)
         at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:165)
         at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:102)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
         at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)

    Hi Pavel,
    have the same problem with SP15.
    java.lang.reflect.UndeclaredThrowableException
            at $Proxy1.deploy(Unknown Source)
            at com.sap.engine.services.deploy.gui.DeployingTask.run(DeployingTask.java:133)
            at java.lang.Thread.run(Thread.java:770)
    Caused by: com.sap.engine.services.jmx.exception.JmxConnectorException: Sending message synchronously failed, target node 6663450, message [ JMX request (java) v1.0 len: 575 |  src: 2 target-node: 6663450 req: invoke params-number: 4 params-bytes: 0 |  ]
            at com.sap.engine.services.jmx.JmxServiceConnectorServerInvoker.invokeMbs(JmxServiceConnectorServerInvoker.java:65)
            at com.sap.engine.services.jmx.MessageClientSecurityWrapper.invokeMbs(MessageClientSecurityWrapper.java:39)
            at com.sap.engine.services.jmx.ClusterInterceptor.invokeMbs(ClusterInterceptor.java:196)
            at com.sap.engine.services.jmx.ClusterInterceptor.invoke(ClusterInterceptor.java:766)
            at com.sap.engine.services.jmx.MBeanServerInterceptorInvoker.invokeMbs(MBeanServerInterceptorInvoker.java:102)
            at com.sap.engine.services.jmx.connector.p4.P4ConnectorServerImpl.invokeMbs(P4ConnectorServerImpl.java:61)
            at com.sap.engine.services.jmx.connector.p4.P4ConnectorServerImplp4_Skel.dispatch(P4ConnectorServerImplp4_Skel.java:64)
            at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:319)
            at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:200)
            at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:136)
            at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
            at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
            at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
            at java.security.AccessController.doPrivileged(AccessController.java:219)
            at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
            at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
    Caused by: com.sap.engine.frame.cluster.message.ResponseTimedOutException: Participant 6,663,450 did not return a response in the specified timeout of 100,000 ms.
            at com.sap.engine.core.cluster.impl6.lazy.AnswerObject.getResult(AnswerObject.java:88)
            at com.sap.engine.core.cluster.impl6.lazy.LazyConnection.sendRequest(LazyConnection.java:223)
            at com.sap.engine.core.cluster.impl6.lazy.LazyConnectorImpl.sendRequest(LazyConnectorImpl.java:171)
            at com.sap.engine.core.cluster.impl6.ClusterManagerImpl.ms_sendRequest(ClusterManagerImpl.java:2449)
            at com.sap.engine.core.service630.context.cluster.message.MessageContextImpl.sendAndWaitForAnswer(MessageContextImpl.java:93)
            at com.sap.engine.services.jmx.JmxFrame.sendAndWaitForAnswer(JmxFrame.java:695)
            at com.sap.engine.services.jmx.JmxServiceConnectorServerInvoker.invokeMbs(JmxServiceConnectorServerInvoker.java:47)
            ... 15 more
    this happens when deploy an one of our company application within Visual Admin.
    Thanks in advanced,
    alfseins

  • ClassNotFound Exception accessing EJBs in a cluster

    I am experiencing some weird behavior when attempting to access EJBs in a
              Weblogic 5.1.0 cluster. The cluster nodes startup fine, and the EJBs are
              correctly deployed. However, when my test client attempts to access them I
              get the ClassNotFoundException listed below. This same client can access the
              same EJBs deployed in a non-clustered environment without any problems, so
              it's definitely related to my cluster configuration. The problem seems to be
              that the client is not receiving the client-side stub. To confim this, I put
              the stub in the client's classpath, and did NOT get the
              ClassNotFoundException. Has anyone else seen this error?
              BTW, I have compiled the EJB both with and without the <home-is-clusterable>
              flag set to true. I get the same exception either way.
              Thanks for any assistance,
              Jason Donnell
              javax.naming.CommunicationException. Root exception is
              java.lang.ClassNotFoundException: class
              com.landacorp.maxmc.ejb.security.ProviderSecurityBeanHomeImpl_ServiceStub
              previously not found
              at weblogic.rjvm.MsgAbbrev.read(MsgAbbrev.java:184)
              at weblogic.socket.JVMAbbrevSocket.readMsgAbbrevs(JVMAbbrevSocket.java:505)
              at weblogic.rjvm.MsgAbbrevInputStream.prime(MsgAbbrevInputStream.java:134)
              at weblogic.rjvm.RJVMImpl.dispatch(RJVMImpl.java:700)
              at
              weblogic.rjvm.ConnectionManagerClient.handleRJVM(ConnectionManagerClient.jav
              a:34)
              at weblogic.rjvm.ConnectionManager.dispatch(ConnectionManager.java:630)
              at weblogic.socket.JVMAbbrevSocket.dispatch(JVMAbbrevSocket.java:393)
              at weblogic.socket.JVMSocketT3.dispatch(JVMSocketT3.java:355)
              at weblogic.socket.JavaSocketMuxer.processSockets(JavaSocketMuxer.java:247)
              at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:23)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)
              --------------- nested within: ------------------
              weblogic.rmi.UnmarshalException: Unmarshalling return
              - with nested exception:
              [java.lang.ClassNotFoundException: class
              com.landacorp.maxmc.ejb.security.ProviderSecurityBeanHomeImpl_ServiceStub
              previously not found]
              at
              weblogic.jndi.toolkit.BasicWLContext_WLStub.lookup(BasicWLContext_WLStub.jav
              a:256)
              at weblogic.jndi.toolkit.WLContextStub.lookup(WLContextStub.java:545)
              at javax.naming.InitialContext.lookup(InitialContext.java:350)
              at
              com.landacorp.maxmc.ejb.security.ClusterSecurityTest.main(ClusterSecurityTes
              t.java:52)
              

    Just a side note: I setup the cluster using the WebLogic recommended
              directory structure (see
              http://www.weblogic.com/docs51/cluster/setup.html#676105) and I no longer
              get the exception. I'm still interested in hearing, though, if anyone has a
              scheme for setting up the cluster in a directory that isn't directly under
              the weblogic installation directory.
              Jason
              "Jason Donnell" <[email protected]> wrote in message
              news:[email protected]...
              > My current idea is that our directory structure is not properly supported
              by
              > WebLogic. We are NOT putting everything under the weblogic install
              > directory, as the documentation suggests. Instead, it looks something like
              > this (on an NT box):
              >
              > \weblogic_install\<Weblogic 5.1.0 installation here>
              >
              > \our_weblogic\startWeblogicNode1.cmd
              > \our_weblogic\startWeblogicNode2.cmd
              > \our_weblogic\weblogic.properties (cluster-wide)
              > \our_weblogic\public_html\
              > \our_weblogic\our_cluster_name\
              > \our_weblogic\our_cluster_name\all_ejbs\<compiled beans are here>
              > \our_weblogic\our_cluster_name\server_node1\
              > \our_weblogic\our_cluster_name\server_node1\weblogic.properties
              > (server-specific)
              > \our_weblogic\our_cluster_name\server_node2\
              > \our_weblogic\our_cluster_name\server_node2\weblogic.properties
              > (server-specific)
              >
              > So, on the command line in our per-server startup scripts, we set the
              > weblogic.system.home=\our_weblogic,
              weblogic.cluster.name=our_cluster_name,
              > and weblogic.system.name=server_nodeX.
              >
              > Now, I want to emphasize that the server claims to start up just fine. It
              > claims the EJBs have been deployed. However, it is unable to deliver
              classes
              > dynamically, as we found by trying the
              > http://yourweblogic..../classes/some/class/name.class suggestion noted
              > previously.
              >
              > We had a similar directory structure for a single server, and it worked
              just
              > fine. However, in that case we obviously did not have the extra level of
              the
              > \our_cluster_name\ directory. It would seem that in the cluster
              > configuration, we cannot do it this way. I would be VERY interested to
              hear
              > if anyone else has setup a cluster in a directory that is not under the
              > weblogic installation directory.
              >
              > Hopefully this may shed some light on your problem. Feel free to contact
              me
              > if you need any additional information (or if you solve the problem!).
              >
              > Jason Donnell
              > [email protected]
              >
              >
              > "Chad" <[email protected]> wrote in message
              > news:[email protected]...
              > > I am very interested in this thread - I am having the same behavior:
              > >
              > > javax.naming.CommunicationException. Root exception is
              > > java.lang.ClassNotFoundException: class
              > > healthecare.drug.ejb.DrugAlternateBeanHomeImpl_ServiceStub previously
              > > not found
              > > at weblogic.rjvm.MsgAbbrev.read(MsgAbbrev.java:181)
              > > at
              > weblogic.socket.JVMAbbrevSocket.readMsgAbbrevs(JVMAbbrevSocket.java:505)
              > > at
              weblogic.rjvm.MsgAbbrevInputStream.prime(MsgAbbrevInputStream.java:134)
              > > at weblogic.rjvm.RJVMImpl.dispatch(RJVMImpl.java:630)
              > > at
              >
              weblogic.rjvm.ConnectionManagerClient.handleRJVM(ConnectionManagerClient.jav
              > a:34)
              > > at weblogic.rjvm.ConnectionManager.dispatch(ConnectionManager.java:630)
              > > at weblogic.socket.JVMAbbrevSocket.dispatch(JVMAbbrevSocket.java:393)
              > > at weblogic.socket.JVMSocketT3.dispatch(JVMSocketT3.java:355)
              > > at
              > weblogic.socket.JavaSocketMuxer.processSockets(JavaSocketMuxer.java:247)
              > > at
              > weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:23)
              > > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:135)
              > >
              > > --------------- nested within: ------------------
              > > weblogic.rmi.UnmarshalException: Unmarshalling return
              > > - with nested exception:
              > > [java.lang.ClassNotFoundException: class
              > > healthecare.drug.ejb.DrugAlternateBeanHomeImpl_ServiceStub previously
              > > not found]
              > > at
              >
              weblogic.jndi.toolkit.BasicWLContext_WLStub.lookup(BasicWLContext_WLStub.jav
              > a:256)
              > > at weblogic.jndi.toolkit.WLContextStub.lookup(WLContextStub.java:545)
              > > at javax.naming.InitialContext.lookup(InitialContext.java:350)
              > > at healthecare.util.EJBBase.findHomeInterface(EJBBase.java:178)
              > >
              > > One additional bit of information that I can add is that when I
              > > getInitialContext() like this:
              > >
              > > public static Context getInitialContext() throws Exception
              > > {
              > > String providerURL =
              > > "t3://" + CommonUtil.getProperty("ejb.server.name") +
              > > ":" + CommonUtil.getProperty("ejb.server.port");
              > >
              > > Hashtable ht = new Hashtable();
              > > ht.put(Context.INITIAL_CONTEXT_FACTORY,
              > > "weblogic.jndi.WLInitialContextFactory");
              > > ht.put(Context.PROVIDER_URL, providerURL);
              > >
              > > return new InitialContext(ht);
              > > }
              > >
              > > When the "ejb.server.name" property is one server, like "serverName1",
              > > the code works. But when the "ejb.server.name" property is clustered,
              > > like "serverName1, serverName2", the code throws the exception above.
              > >
              > > I'll definitely re-post if I come up with anything.
              > >
              > > thanks,
              > > chad small
              > >
              > > "Jason Donnell" <[email protected]> wrote in message
              > news:<[email protected]>...
              > > > Well, that was a good test. I discovered I am unable to download
              classes
              > > > from the clustered server when pointing my browser at it. Any ideas
              what
              > > > kind of misconfiguration on my part would cause that behavior?
              > > >
              > > > Thanks,
              > > > Jason Donnell
              > > >
              > > > "Dimitri Rakitine" <[email protected]> wrote in message
              > > > news:[email protected]...
              > > > > Try to point your browser to make sure you can actually download
              > classes
              > > > from it
              > > > > (point it to http://yourweblogic..../classes/some/class/name.class)
              > > > >
              > > > > Jason Donnell <[email protected]> wrote:
              > > > > > Yes, I know. That's the behavior that I had always seen before. Do
              > you
              > > > know
              > > > > > of any directory configurations or properties file settings that
              > could
              > > > make
              > > > > > the stub not be downloaded correctly, even though the EJB is
              > deployed on
              > > > the
              > > > > > server?
              > > >
              > > > > > "Tao Xie" <[email protected]> wrote in message
              > > > > > news:[email protected]...
              > > > > >> That's weird, Replica-aware stub should be downloaded to the
              client
              > > > except
              > > > > >> the client is on another Weblogic server.
              > > > > >>
              > > > > >> "Jason Donnell" <[email protected]> wrote in message
              > > > > >> news:[email protected]...
              > > > > >> | I am experiencing some weird behavior when attempting to access
              > EJBs
              > > > in
              > > > a
              > > > > >> | Weblogic 5.1.0 cluster. The cluster nodes startup fine, and the
              > EJBs
              > > > are
              > > > > >> | correctly deployed. However, when my test client attempts to
              > access
              > > > them
              > > > I
              > > > > >> | get the ClassNotFoundException listed below. This same client
              can
              > > > access
              > > > the
              > > > > >> | same EJBs deployed in a non-clustered environment without any
              > > > problems,
              > > > so
              > > > > >> | it's definitely related to my cluster configuration. The
              problem
              > > > seems
              > > > to
              > > > be
              > > > > >> | that the client is not receiving the client-side stub. To
              confim
              > > > this, I
              > > > put
              > > > > >> | the stub in the client's classpath, and did NOT get the
              > > > > >> | ClassNotFoundException. Has anyone else seen this error?
              > > > > >> |
              > > > > >> | BTW, I have compiled the EJB both with and without the
              > > > <home-is-clusterable>
              > > > > >> | flag set to true. I get the same exception either way.
              > > > > >> |
              > > > > >> | Thanks for any assistance,
              > > > > >> | Jason Donnell
              > > > > >> |
              > > > > >> |
              > > > > >> | javax.naming.CommunicationException. Root exception is
              > > > > >> | java.lang.ClassNotFoundException: class
              > > > > >> |
              > > > > >
              > > >
              > com.landacorp.maxmc.ejb.security.ProviderSecurityBeanHomeImpl_ServiceStub
              > > > > >> | previously not found
              > > > > >> |
              > > > > >> | at weblogic.rjvm.MsgAbbrev.read(MsgAbbrev.java:184)
              > > > > >> |
              > > > > >> | at
              > > > > >>
              > > >
              > weblogic.socket.JVMAbbrevSocket.readMsgAbbrevs(JVMAbbrevSocket.java:505)
              > > > > >> |
              > > > > >> | at
              > > >
              weblogic.rjvm.MsgAbbrevInputStream.prime(MsgAbbrevInputStream.java:134)
              > > > > >> |
              > > > > >> | at weblogic.rjvm.RJVMImpl.dispatch(RJVMImpl.java:700)
              > > > > >> |
              > > > > >> | at
              > > > > >> |
              > > > > >>
              > > > > >
              > > >
              >
              weblogic.rjvm.ConnectionManagerClient.handleRJVM(ConnectionManagerClient.jav
              > > > > >> | a:34)
              > > > > >> |
              > > > > >> | at
              > > > weblogic.rjvm.ConnectionManager.dispatch(ConnectionManager.java:630)
              > > > > >> |
              > > > > >> | at
              > > > weblogic.socket.JVMAbbrevSocket.dispatch(JVMAbbrevSocket.java:393)
              > > > > >> |
              > > > > >> | at weblogic.socket.JVMSocketT3.dispatch(JVMSocketT3.java:355)
              > > > > >> |
              > > > > >> | at
              > > > > >>
              > > >
              > weblogic.socket.JavaSocketMuxer.processSockets(JavaSocketMuxer.java:247)
              > > > > >> |
              > > > > >> | at
              > > > > >>
              > > >
              > weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:23)
              > > > > >> |
              > > > > >> | at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)
              > > > > >> |
              > > > > >> |
              > > > > >> |
              > > > > >> | --------------- nested within: ------------------
              > > > > >> |
              > > > > >> | weblogic.rmi.UnmarshalException: Unmarshalling return
              > > > > >> | - with nested exception:
              > > > > >> | [java.lang.ClassNotFoundException: class
              > > > > >> |
              > > > > >
              > > >
              > com.landacorp.maxmc.ejb.security.ProviderSecurityBeanHomeImpl_ServiceStub
              > > > > >> | previously not found]
              > > > > >> |
              > > > > >> | at
              > > > > >> |
              > > > > >>
              > > > > >
              > > >
              >
              weblogic.jndi.toolkit.BasicWLContext_WLStub.lookup(BasicWLContext_WLStub.jav
              > > > > >> | a:256)
              > > > > >> |
              > > > > >> | at
              > > > weblogic.jndi.toolkit.WLContextStub.lookup(WLContextStub.java:545)
              > > > > >> |
              > > > > >> | at javax.naming.InitialContext.lookup(InitialContext.java:350)
              > > > > >> |
              > > > > >> | at
              > > > > >> |
              > > > > >>
              > > > > >
              > > >
              >
              com.landacorp.maxmc.ejb.security.ClusterSecurityTest.main(ClusterSecurityTes
              > > > > >> | t.java:52)
              > > > > >> |
              > > > > >> |
              > > > > >> |
              > > > > >> |
              > > > > >>
              > > > > >>
              > > > >
              > > > >
              > > > >
              > > > > --
              > > > > Dimitri
              >
              >
              >
              >
              >
              >
              

  • Osgi workflowprocess gives classnotfound exception when osgi bundle is activated

    I did create an osgi service that extends workflowprocess interrface using eclipse. I install the bundle that contains this service and then deploy and activate the bundle in day cq. However, on activation I receive an error stating that my class is not found. Please note that both this service and the referenced service(twitterservice that I created) gets registered and the bundle is activated, however, its unable to find the class SendMessageProcessAction on the activation of the bundle. Hope someone could assist.
    POST /system/console/bundles/246 HTTP/1.1] com.day.twitter.workflow [com.day.twitter.service.impl.SendMessageProcessAction] Error during instantiation of the implementation object (java.lang.ClassNotFoundException: com.day.twitter.service.impl.SendMessageProcessAction not found by com.day.twitter.workflow [246]) java.lang.ClassNotFoundException: com.day.twitter.service.impl.SendMessageProcessAction not found by com.day.twitter.workflow [246]
        at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:787 )
        at org.apache.felix.framework.ModuleImpl.access$400(ModuleImpl.java:71)
    package com.day.twitter.service.impl;
    import javax.jcr.RepositoryException;
    import javax.jcr.Session;
    import org.apache.felix.scr.annotations.Component;
    import org.apache.felix.scr.annotations.Properties;
    import org.apache.felix.scr.annotations.Property;
    import org.apache.felix.scr.annotations.Reference;
    import org.apache.felix.scr.annotations.Service;
    import org.osgi.framework.Constants;
    import org.slf4j.Logger;
    import org.slf4j.LoggerFactory;
    import com.day.cq.workflow.WorkflowException;
    import com.day.cq.workflow.WorkflowSession;
    import com.day.cq.workflow.exec.WorkItem;
    import com.day.cq.workflow.exec.WorkflowData;
    import com.day.cq.workflow.exec.WorkflowProcess;
    import com.day.cq.workflow.metadata.MetaDataMap;
    import com.day.twitter.service.SendMessageProcess;
    import com.day.twitter.service.TwitterService;
    @Component
    @Service
    @Properties({
        @Property(name = Constants.SERVICE_DESCRIPTION, value = " An example of Social Publish Implementation"),
        @Property(name = Constants.SERVICE_VENDOR, value = "RIM POC"),
        @Property(name = "process.label", value = "RIM POC Social Publish")
    public class SendMessageProcessAction implements WorkflowProcess{
        @Reference
        private TwitterService twitterService; 
        public TwitterService getTwitterService() {
            return twitterService;
        public void setTwitterService(TwitterService twitterService) {
            this.twitterService = twitterService;
         * @scr.reference
        private static final String TYPE_JCR_PATH = "JCR_PATH";
        private final Logger logger = LoggerFactory.getLogger(this.getClass()
                .getName());
        private final Logger logger1 = LoggerFactory.getLogger(SendMessageProcessAction.class);
        public void execute(WorkItem workItem, WorkflowSession workflowSession,MetaDataMap args)
        throws WorkflowException {
            final Session session = workflowSession.getSession();
            final WorkflowData data = workItem.getWorkflowData();
            logger.info("TEST VIBHOR!!");
            logger1.info("TEST VIBHOR BHATIA!!");
            String path = null;
            String type = data.getPayloadType();
            if (type.equals(TYPE_JCR_PATH) && data.getPayload() != null) {
                String payloadData = (String) data.getPayload();
                try {
                    if (session.itemExists(payloadData)) {
                        path = payloadData;
                } catch (RepositoryException e) {
                    // TODO Auto-generated catch block
                    logger.error("Exception - Check repository for Payload data path");
                    e.printStackTrace();
            logger.info("arguments");
            String msg = "CQ5 workflow event";
                // is there a message?
            String argument = args.get("PROCESS_ARGS", "default value");
            boolean equal = argument.equals("argument1");
            if(equal){
                String recipient = argument.toString();
                 sendDirectMessageOnTwitter(recipient, msg, path);
            } else {
                logger
                        .error("for sending a DM on Twitter (make sure Twitter allows you to DM that account): dm,(recipient id)");   
               //  return "Check config - error";
        private void sendDirectMessageOnTwitter(String recipient, String msg, String path) {
            getTwitterService().sendDirectMessage(recipient, msg + ", path: " + path);

    <plugin>
            <groupId>org.apache.felix</groupId>
            <artifactId>maven-bundle-plugin</artifactId>
            <version>2.0.1</version>
            <extensions>true</extensions>
            <configuration>
              <instructions>
                <Bundle-Name>cq-core bundle</Bundle-Name>
                <Export-Package>twitter4j.*</Export-Package>
                <Import-Package>
                      !twitter4j.internal.http.alternative,
                      !org.slf4j.impl,com.day.*,*
                 </Import-Package>
                 <Private-Package>com.day.twitter</Private-Package>  
              </instructions>
            </configuration>
    </plugin>
    Bnd-LastModified: 1334862237167
    Build-Jdk: 1.6.0_21
    Built-By: bvibor
    Bundle-ManifestVersion: 2
    Bundle-Name: cq-core bundle
    Bundle-SymbolicName: com.day.twitter.workflow
    Bundle-Version: 1.0.0
    Created-By: Apache Maven Bundle Plugin
    Export-Package: twitter4j.internal.util, twitter4j.internal.http; uses:="twitter4j, twitter4j.internal.logging, twitter4j.internal.util, twitter4j.http, twitter4j.conf, javax.xml.parsers, twitter4j.internal.org.json, org.w3c.dom, org.xml.sax", twitter4j; uses:="twitter4j.internal.org.json, twitter4j.internal.http, twitter4j.api, twitter4j.http, twitter4j.internal.async, twitter4j.conf, twitter4j.internal.logging", twitter4j.internal.org.json, twitter4j.api; uses:=twitter4j, twitter4j.http; uses:="twitter4j.internal.http, twitter4j, twitter4j.conf, javax.crypto.spec, javax.crypto, twitter4j.internal.logging", twitter4j.internal.async, twitter4j.conf; uses:="twitter4j.internal.http, twitter4j.http, twitter4j.internal.async, twitter4j", twitter4j.internal.logging; uses:="org.apache.commons.logging, org.apache.log4j, org.slf4j, twitter4j.conf", twitter4j.util; uses:="twitter4j.internal.http, twitter4j, twitter4j.internal.org.json, twitter4j.http"
    Ignore-Package: org.slf4j.impl, twitter4j.internal.http.alternative
    Import-Package: javax.crypto, javax.crypto.spec, javax.xml.parsers, org.apache.commons.logging, org.apache.log4j, org.osgi.framework; version="1.4", org.slf4j; version="1.5", org.w3c.dom, org.xml.sax, twitter4j, twitter4j.api, twitter4j.conf, twitter4j.http, twitter4j.internal.async, twitter4j.internal.http, twitter4j.internal.logging, twitter4j.internal.org.json, twitter4j.internal.util, twitter4j.util
    Manifest-Version: 1.0
    Service-Component: OSGI-INF/components.xml
    Tool: Bnd-0.0.357

  • Tomcat: ClassNotFound Exception in security mode

    Hi there,
    we have a problem with our web application when starting Tomcat in security mode. For some reasons we always get some "ClassNotFoundExceptions" and we don't know why. The exception is:
    java.lang.ClassNotFoundException:org.mozilla.javascript.optimizer.OptRuntime
    org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1359)
    org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1205)
    java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    java.lang.Class.forName0(Native Method)
    java.lang.Class.forName(Class.java:164)
    ...The class which cannot be found is in a js.jar which is located at WEB-INF/lib of our web application. We also defined access to our web application in the catalina.policy which looks like:
    grant codeBase "file:${catalina.home}/webapps/ourWebApp/-"
        permission java.security.AllPermission;
    };If we start Tomcat in normal mode, everything works fine. So what could be the problem? Can you help me?
    Thanks,
    jacquipre

    Hi there,
    we have a problem with our web application when starting Tomcat in security mode. For some reasons we always get some "ClassNotFoundExceptions" and we don't know why. The exception is:
    java.lang.ClassNotFoundException:org.mozilla.javascript.optimizer.OptRuntime
    org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1359)
    org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1205)
    java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    java.lang.Class.forName0(Native Method)
    java.lang.Class.forName(Class.java:164)
    ...The class which cannot be found is in a js.jar which is located at WEB-INF/lib of our web application. We also defined access to our web application in the catalina.policy which looks like:
    grant codeBase "file:${catalina.home}/webapps/ourWebApp/-"
        permission java.security.AllPermission;
    };If we start Tomcat in normal mode, everything works fine. So what could be the problem? Can you help me?
    Thanks,
    jacquipre

  • Local interfaces classnotfound exception!

    Hello,
    I am working on a mdb which reference locally a session bean
    When I try to deploy my jar file I have got an error:
    RemoteException : java.rmi.ServerException: RemoteException occurred in server t
    hread; nested exception is:
    java.rmi.RemoteException: Cannot create Container; nested exception is:
    javax.ejb.EJBException: Transfert Cannot load com.iratensolutions.test.J
    OnASTransfertLocalHome; nested exception is: java.lang.ClassNotFoundException: c
    om.iratensolutions.test.JOnASTransfertLocalHome
    I don't know if the problem comes from my jndi.lookup as am doing like this:
              TransfertLocalHome transfertLocalHome = (TransfertLocalHome)jndiContext.lookup("java:comp/env/com/iratensolutions/test/TransfertLocalHome");
              TransfertLocal transfertLocal = transfertLocalHome.create();
              transfertLocal.transfert();
    I hav etry differnent combination for my lookup but always the same error occurs.
    If someone can help me or show me a simple example
    Thank you

    It does not seem really reach your lookup yet. The ClassNotFoundException says it does not see the Class at all so you may need find where you specify your classpath and add whatever jar file that contains this Class into the path.
    PC

Maybe you are looking for

  • Opening specific Spry tabbed panels not working or displaying in IE

    I have a tabbed panel spry widget on an asp page in Dreawmweaver (http://www.herbsmithinc.com/casedog.asp) that worked marverously across IE, Firefox and Safari until I tried to get different panels to open on load through links.  I used the followin

  • Mouse focus in custom DataGrid ItemRenderer (re-post*)

    * I already posted this question in the "Flex" forum, but didn't get any replies. I'm not sure if this will yield any different results, but I figure it's worth a try... I have a custom MXDataGridItemRenderer with a custom nested Spark CheckBox compo

  • Does File Move work in PSE 7.0?

    I have files scattered across two hard drives as a result of having two catalogs. For my primary catalog, I would like to consolidate all of the actual picture files onto a single location on one drive. I tried to use the File > Move command and opte

  • Circle Masking

    Hello! I'm starting on flash and I already manged to do some simple effects but i am not getting this one: Circle Masking Effect tutorial I manage to do the masking effect and I even see it action using live preview... But when I export the movie to

  • JAXB Namespace Requirements

    I was able to solve the unexpected root element error by including the namespace in the xml. Is there a way to configure JAXB to work with or without the namespace?