You probably have an EJB interface named org.omg.stub.tstejb.WellDayData for which is also defined the EJBHome interface which name must be org.omg.stub.tstejb.WellDayDataHome. Then you need to use the command:
rmic -iiop <class name> on your classes to generate the corresponding Stub class Lee a écrit : > Hi, > > I just try to make a RMI/IIOP program use JBoss,the server side is an EJB > and its class is tstejb.WellDayData,the client is a java application. > > When I test this program,it generate following exception: > > [ Property "jacorb.hashtable_class" not present. Will use default > hashtable implementation ] > > [ ConnectionManager: created new conn to target 10.68.168.68:8683 ] > > [ Trying to connect to 10.68.168.68:8683 ] > > [ Succeeded to connect to 10.68.168.68:8683 ] > > [ ConnectionManager: found conn to target 10.68.168.68:8683 ] > > java.lang.ClassCastException: Unable to load class: > org.omg.stub.tstejb._WellDayDataHome_Stub > > at > com.ibm.rmi.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:269) > > at > javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:136) > > at > javaclt.WellDayDataTestClient1.<init>(WellDayDataTestClient1.java:31) > > I'm sorry but I don't know what is _WellDayDataHome_Stub,how can I get it > and where should I put it. > > Please help me. > > Lee > > _______________________________________________________________ > > Don't miss the 2002 Sprint PCS Application Developer's Conference > August 25-28 in Las Vegas - >http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink > > _______________________________________________ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user -- [EMAIL PROTECTED] - Atlantide - http://www.ago.fr/atlantide/ Technopole Brest Iroise BP 80802 - Site du Vernis - 29608 Brest cedex - France Tel. : +33 2 98 05 43 21 - Fax. : +33 2 98 05 20 34 e-mail: [EMAIL PROTECTED] Centre Affaires Oberthur - 74D, rue de Paris - 35700 Rennes - France Tel. : +33 2 99 84 15 84 - Fax : +33 2 99 84 15 85 e-mail: [EMAIL PROTECTED] _______________________________________________________________ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas - http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user