Hi All When I mention EJBException in throws clause in remote object, i am getting the warning "The method return values in the home interface must be of valid types for RMI/IIOP." while deploying the bean in JBoss. Can any body please help me out, whats the wrong here.
Bean : ManualAssemblyService Method : public abstract ManualAssemblyService create(long, long, ManualAssemblyServiceData) throws CreateException, EJBException, RemoteException, SQLException Section: 9.2.8 Warning: The method return values in the home interface must be of valid types for RMI/IIOP. [15:02:03,273,ContainerFactory] Bean : ManualAssemblyService Method : public abstract ManualAssemblyService findByPrimaryKey(ManualAssemblyServicePK) throws FinderException, RemoteException, EJBException Section: 9.2.8 Warning: The method return values in the home interface must be of valid types for RMI/IIOP. [15:02:03,273,ContainerFactory] Bean : ManualAssemblyService Method : public abstract ManualAssemblyServiceData getData() throws RemoteException, EJBException Section: 9.2.7 Warning: The exceptions thrown by methods in the remote interface must be valid types for RMI/IIOP [15:02:03,273,ContainerFactory] Bean : ManualAssemblyService Method : public abstract void setData(ManualAssemblyServiceData) throws RemoteException, EJBException Section: 9.2.7 Warning: The exceptions thrown by methods in the remote interface must be valid types for RMI/IIOP Thanks Mahesh -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 30, 2002 3:11 PM To: [EMAIL PROTECTED] Subject: JBoss-user digest, Vol 1 #2232 - 11 msgs Send JBoss-user mailing list submissions to [EMAIL PROTECTED] To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/jboss-user or, via email, send a message with subject or body 'help' to [EMAIL PROTECTED] You can reach the person managing the list at [EMAIL PROTECTED] When replying, please edit your Subject line so it is more specific than "Re: Contents of JBoss-user digest..." Today's Topics: 1. CD Subscription Update (Bill Burke) 2. RE: Classes in a SAR file cannnot see classes deplo yed in a seperate EAR (Qingxian Wang) 3. Re: [JBoss-dev] CD Subscription Update (Marius Kotsbak) 4. RE: JBoss and JNI (Dave Smith) 5. RE: JBoss and JNI (JD Brennan) 6. RE: Re: [JBoss-dev] CD Subscription Update (Bill Burke) 7. Oracle specific SQL (=?koi8-r?B?4c7E0sXKIO/Oyd3Vyw==?=) 8. RE: incorrect SQL generated for findAll() on CMP bean (Matt Munz) 9. Initial JBoss.3.0QuickStart.pdf available (Scott M Stark) 10. [ERROR, ContainerFactory] ... valid types for RMI/IIOP (Gary Grobe) --__--__-- Message: 1 From: "Bill Burke" <[EMAIL PROTECTED]> To: "Jboss-Dev" <[EMAIL PROTECTED]>, "JBoss 2" <[EMAIL PROTECTED]> Date: Thu, 30 May 2002 12:46:35 -0400 Subject: [JBoss-user] CD Subscription Update Reply-To: [EMAIL PROTECTED] Hi All, After a bit of market research we've dropped the CD subscription price to $500. $500 includes: * 1 hour support. * 4 CDs over 1 year span * Document subscription * graphical installer Help support JBoss development. Regards, Bill Burke JBossGroup --__--__-- Message: 2 From: Qingxian Wang <[EMAIL PROTECTED]> To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> Subject: RE: [JBoss-user] Classes in a SAR file cannnot see classes deplo yed in a seperate EAR Date: Thu, 30 May 2002 17:46:17 +0100 Reply-To: [EMAIL PROTECTED] I think I understand now how the UnifiedClassLoader can load classes from seperate EAR or other kind of archive files. thanks qwang -----Original Message----- From: David Jencks [mailto:[EMAIL PROTECTED]] Sent: 30 May 2002 17:00 To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Classes in a SAR file cannnot see classes deployed in a seperate EAR In my experience it does work. Are you sure the ear is properly deployed? (check mbean viewer and jndi view) If the ear is properly deployed, please provide an example showing this problem. thanks david jencks On 2002.05.30 11:10:36 -0400 Qingxian Wang wrote: > Hi, > > I have a MBean as a component deployer which invokes MainDeployer's > methods > to deploy components like EJBs, etc. I would like some classes deployed > in > the SAR file of the MBean to be able to load the class deployed in the > EAR > file that is deployed by the MBean by extracting component information > from > the EAR file. However, the classes in the SAR file cannot see the > classes > deployed with the EAR file. I understand that JBoss uses > UnifiedClassLoader > and class loader repository to share deployed classes. How can I make > this > work? > > I am using JBoss3.0.0RC3 on Windows2000. > > Thanks > > qwang > > > Message End. > > > > _______________________________________________________________ > > Don't miss the 2002 Sprint PCS Application Developer's Conference > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm > > _______________________________________________ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > > _______________________________________________________________ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user Message End. --__--__-- Message: 3 From: Marius Kotsbak <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Cc: JBoss 2 <[EMAIL PROTECTED]> Date: 30 May 2002 18:59:08 +0200 Subject: [JBoss-user] Re: [JBoss-dev] CD Subscription Update Reply-To: [EMAIL PROTECTED] On Thu, 2002-05-30 at 18:46, Bill Burke wrote: > Hi All, > > After a bit of market research we've dropped the CD subscription price to > $500. > > $500 includes: > > * 1 hour support. pr. month, 4 month, year or what? > * 4 CDs over 1 year span > * Document subscription > * graphical installer > > Help support JBoss development. > > Regards, > > Bill Burke > JBossGroup > > > _______________________________________________________________ > > Don't miss the 2002 Sprint PCS Application Developer's Conference > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm > > _______________________________________________ > Jboss-development mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-development --__--__-- Message: 4 Subject: RE: [JBoss-user] JBoss and JNI From: Dave Smith <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Date: 30 May 2002 12:59:17 -0400 Reply-To: [EMAIL PROTECTED] OK. You are on Linux. Make sure that the .so file starts with lib. So it needs to be lib<my lib name>.so. Put it in the <jboss path>/lib directory. Edit run.sh so it has -Djava.library.path=<jboss path>/lib. Should work fine. Dave On Thu, 2002-05-30 at 12:02, Paul Morris wrote: > David, thanks for the tip. I'm going to need a little clarification, > though. I copied my .so file (I'm on linux) to $JAVA_HOME/jre/lib/i386, but > this didn't work, so I'm sure this is not what you meant. Is this the right > location for the .so file? What about the java class with the native > methods, should I put it in a jar sommwhere under $JAVA_HOME as well? If > yes, where? > > Thanks, > Paul Morris --__--__-- Message: 5 From: JD Brennan <[EMAIL PROTECTED]> To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> Subject: RE: [JBoss-user] JBoss and JNI Date: Thu, 30 May 2002 10:03:48 -0700 Reply-To: [EMAIL PROTECTED] This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C207FB.F76D0CE0 Content-Type: text/plain; charset="iso-8859-1" Might be that some other .so file needed by your JNI .so file is not found. Run ldd on your JNI .so to see what other .so files it needs and make sure they are all in the path too. JD -----Original Message----- From: Paul Morris [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 30, 2002 9:43 AM To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] JBoss and JNI I'm running on RedHat 7.2 Linux. I've tried the -Djava.library.path as well. It clearly finds and loads the library. The UnsatisfiedLinkError occurs when any of the native methods are called. It works outside of JBoss when called from a stand-alone application. The calls are being made from a stateless session bean. Paul Morris ------_=_NextPart_001_01C207FB.F76D0CE0 Content-Type: text/html; charset="iso-8859-1" <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> <META content="MSHTML 5.00.3315.2870" name=GENERATOR></HEAD> <BODY> <DIV><FONT color=#000080 face="Comic Sans MS" size=2><SPAN class=086360417-30052002><STRONG>Might be that some other .so file needed by your JNI .so file is</STRONG></SPAN></FONT></DIV> <DIV><FONT color=#000080 face="Comic Sans MS" size=2><SPAN class=086360417-30052002><STRONG>not found. Run ldd on your JNI .so to see what other .so files</STRONG></SPAN></FONT></DIV> <DIV><FONT color=#000080 face="Comic Sans MS" size=2><SPAN class=086360417-30052002><STRONG>it needs and make sure they are all in the </STRONG></SPAN></FONT><FONT color=#000080 face="Comic Sans MS" size=2><SPAN class=086360417-30052002><STRONG>path too.</STRONG></SPAN></FONT></DIV> <DIV><FONT color=#000080 face="Comic Sans MS" size=2><SPAN class=086360417-30052002></SPAN></FONT> </DIV> <DIV><FONT color=#000080 face="Comic Sans MS" size=2><SPAN class=086360417-30052002><STRONG>JD</STRONG></SPAN></FONT></DIV> <DIV><FONT color=#000080 face="Comic Sans MS" size=2><SPAN class=086360417-30052002></SPAN></FONT> </DIV> <DIV align=left class=OutlookMessageHeader dir=ltr><FONT face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> Paul Morris [mailto:[EMAIL PROTECTED]]<BR><B>Sent:</B> Thursday, May 30, 2002 9:43 AM<BR><B>To:</B> [EMAIL PROTECTED]<BR><B>Subject:</B> RE: [JBoss-user] JBoss and JNI<BR><BR></FONT></DIV> <DIV><SPAN class=511073716-30052002><FONT face=Arial size=2>I'm running on RedHat 7.2 Linux. I've tried the -Djava.library.path as well. It clearly finds and loads the library. The UnsatisfiedLinkError occurs when any of the native methods are called. It works outside of JBoss when called from a stand-alone application. The calls are being made from a stateless session bean.</FONT></SPAN></DIV> <DIV><SPAN class=511073716-30052002><FONT face=Arial size=2></FONT></SPAN> </DIV> <DIV><SPAN class=511073716-30052002><FONT face=Arial size=2>Paul Morris</FONT></SPAN></DIV></BODY></HTML> ------_=_NextPart_001_01C207FB.F76D0CE0-- --__--__-- Message: 6 From: "Bill Burke" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Subject: RE: [JBoss-user] Re: [JBoss-dev] CD Subscription Update Date: Thu, 30 May 2002 13:25:02 -0400 Reply-To: [EMAIL PROTECTED] 1 hour support per subscription. No more no less. > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Marius > Kotsbak > Sent: Thursday, May 30, 2002 12:59 PM > To: [EMAIL PROTECTED] > Cc: JBoss 2 > Subject: [JBoss-user] Re: [JBoss-dev] CD Subscription Update > > > On Thu, 2002-05-30 at 18:46, Bill Burke wrote: > > Hi All, > > > > After a bit of market research we've dropped the CD > subscription price to > > $500. > > > > $500 includes: > > > > * 1 hour support. > pr. month, 4 month, year or what? > > > * 4 CDs over 1 year span > > * Document subscription > > * graphical installer > > > > Help support JBoss development. > > > > Regards, > > > > Bill Burke > > JBossGroup > > > > > > _______________________________________________________________ > > > > Don't miss the 2002 Sprint PCS Application Developer's Conference > > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm > > > > _______________________________________________ > > Jboss-development mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/jboss-development > > > > _______________________________________________________________ > > Don't miss the 2002 Sprint PCS Application Developer's Conference > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm > > _______________________________________________ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user --__--__-- Message: 7 Date: Thu, 30 May 2002 21:35:58 +0400 From: =?koi8-r?B?4c7E0sXKIO/Oyd3Vyw==?= <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Subject: [JBoss-user] Oracle specific SQL Reply-To: [EMAIL PROTECTED] Hello all! Can anyone please advise me. This is a bit of JDBC code from my BMP bean. --- ps =3D c.prepareStatement("select "+ "firstname, "+ "lastname, "+ "middlename, "+ "bdate, "+ "accepted, "+ "shoesize, "+ "shirtsize, "+ "trousersize, "+ "sex, "+ "password, "+ "salary, "+ "bonus, "+ "salarypercent, "+ "bonuspercent, "+ "e.schedule.getClobval() as schedule, "+ "e.address.getClobval() as address, "+ "workgroup, "+ "role, "+ "salarytype "+ "from employee e where id =3D ?"); Long id =3D (Long) entityContext.getPrimaryKey(); ps.setLong(1, id.longValue()); rs =3D ps.executeQuery(); --- The interesting lines is, where I trying to use Oracle XMLType feature. When I call this "select" from plsql - all right, but in JBOSS I cant = perform statement execution. =09 Bean can't be loaded, but if I comment this two fields (where I use = XMLtype) - Jboss become to live. With store I use similar call and it is works. --- ps =3D c.prepareStatement("update employee set" + " firstname =3D ?," + " lastname =3D ?," + " middlename =3D ?," + " bdate =3D ?," + " accepted =3D ?," + " shoesize =3D ?," + " shirtsize =3D ?," + " trousersize =3D ?," + " sex =3D ?," + " password =3D ?," + " salary =3D ?," + " salarypercent =3D ?," + " bonus =3D ?," + " bonuspercent =3D ?," + " schedule =3D SYS.XMLType.createXML(?)," = + " address =3D SYS.XMLType.createXML(?)," + " workgroup =3D ?," + " role =3D ?," + " salarytype =3D ?"+ " where id =3D ?"); --- =20 Is anybody knows how to solve this issue? Best regards, Andrey --__--__-- Message: 8 From: "Matt Munz" <[EMAIL PROTECTED]> To: "Jon Swinth" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Subject: RE: [JBoss-user] incorrect SQL generated for findAll() on CMP bean Date: Thu, 30 May 2002 13:51:04 -0400 Reply-To: [EMAIL PROTECTED] Jon, Thanks for your reply. > I am not sure why you are having the issue with the findAll() because I was > unable to view your config (attachments don't work well when emails are > converted to a digest). Is there another preferred way to post files to this list? > I would be interested to see the EJB-QL you created > in the ejb-jar.xml. Here it is. As you can see, there is no EJB-QL, as findAll() should be auto-generated by the container. <?xml version="1.0"?> <ejb-jar> <display-name>Shirts</display-name> <enterprise-beans> <!-- The primary key field is not specified. This indicates that the primary key is to be generated by the container. author: Matt Munz --> <entity> <description>Models a (T-)Shirt</description> <ejb-name>Shirt</ejb-name> <home>com.apelon.ase.shirts.ShirtHome</home> <remote>com.apelon.ase.shirts.Shirt</remote> <ejb-class>com.apelon.ase.shirts.ShirtBean</ejb-class> <persistence-type>Container</persistence-type> <prim-key-class>java.lang.Object</prim-key-class> <reentrant>False</reentrant> <cmp-field><field-name>name</field-name></cmp-field> <cmp-field><field-name>size</field-name></cmp-field> <cmp-field><field-name>color</field-name></cmp-field> </entity> <session> <description>Models a (T-)Shirt Collection</description> <ejb-name>ShirtCollection</ejb-name> <home>com.apelon.ase.shirts.ShirtCollectionHome</home> <remote>com.apelon.ase.shirts.ShirtCollection</remote> <ejb-class>com.apelon.ase.shirts.ShirtCollectionBean</ejb-class> <session-type>Stateless</session-type> <transaction-type>Container</transaction-type> <ejb-ref> <ejb-ref-name>Shirt</ejb-ref-name> <ejb-ref-type>Entity</ejb-ref-type> <home>com.apelon.ase.shirts.ShirtHome</home> <remote>com.apelon.ase.shirts.Shirt</remote> <ejb-link>Shirt</ejb-link> </ejb-ref> </session> </enterprise-beans> <assembly-descriptor> <container-transaction> <method> <ejb-name>Shirt</ejb-name> <method-name>*</method-name> </method> <trans-attribute>Required</trans-attribute> </container-transaction> </assembly-descriptor> </ejb-jar> > For now, you can get around the problem by removing the > ejb-jar.xml configuration and adding a custom finder to the bean file. Using > a custom finder has an added benefit of being able to specify an ORDER BY, > which EJB-QL does not support. I'm sure that works fine -- thanks for the code. At the moment, however, I am interested in CMP, and the functionality it claims to support. Perhaps there is something wrong with the container (JAWS)? - Matt Munz -----Original Message----- From: Jon Swinth [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 30, 2002 12:16 PM To: Matt Munz Cc: [EMAIL PROTECTED] Subject: RE: [JBoss-user] incorrect SQL generated for findAll() on CMP bean > Also, if anyone has any ideas about how to solve my problem with > incorrect SQL being generated for findAll(), please share them. If not, is > there some other mailing list I should try? I am not sure why you are having the issue with the findAll() because I was unable to view your config (attachments don't work well when emails are converted to a digest). I would be interested to see the EJB-QL you created in the ejb-jar.xml. For now, you can get around the problem by removing the ejb-jar.xml configuration and adding a custom finder to the bean file. Using a custom finder has an added benefit of being able to specify an ORDER BY, which EJB-QL does not support. Since this is a common practice for me, I have a static helper method that all the beans use. Here is what I add to the bean class: public Collection ejbFindByAll() { String sqlText = "SELECT user_group_no, name " + " FROM user_group " + " ORDER BY name " ; return Global.ejbFind(sqlText) ; } //end ejbFindByAll() And here is the static helper method: public static Vector ejbFind( String sqlText ) { Connection connection = null ; Statement s = null ; ResultSet rs = null ; Vector items = new Vector(); try { DataSource dataSource = (DataSource)(new InitialContext()).lookup(Global.DATA_SOURCE_NAME) ; connection = dataSource.getConnection() ; s = connection.createStatement(); rs = s.executeQuery(sqlText) ; while (rs.next()) { items.add(new Integer(rs.getInt(1))); } //end while rs.close(); s.close(); connection.close(); return items ; } catch (Exception e) { System.out.println(sqlText); DBUtil.close(rs); DBUtil.close(s); DBUtil.close(connection); throw new EJBException(e); } //end try } //end ejbFind() --__--__-- Message: 9 From: "Scott M Stark" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> Date: Thu, 30 May 2002 11:59:56 -0700 Organization: JBoss Group Subject: [JBoss-user] Initial JBoss.3.0QuickStart.pdf available Reply-To: [EMAIL PROTECTED] An initial draft of the JBoss 3.0 quick start guide is available: http://prdownloads.sourceforge.net/jboss/JBoss.3.0QuickStart.pdf?download xxxxxxxxxxxxxxxxxxxxxxxx Scott Stark Chief Technology Officer JBoss Group, LLC xxxxxxxxxxxxxxxxxxxxxxxx --__--__-- Message: 10 Date: Thu, 30 May 2002 14:05:49 -0500 From: Gary Grobe <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: [JBoss-user] [ERROR, ContainerFactory] ... valid types for RMI/IIOP Reply-To: [EMAIL PROTECTED] --Apple-Mail-1--618806821 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed I'm getting errors like below on all of my session and entity beans, yet, my beans still run fine and I'm seeing no problems besides this output. --- snip --- [ERROR,ContainerFactory] Bean : Account Method : public abstract boolean addAccount(AccountInfo) throws RemoteException Section: 9.2.7 Warning: The method arguments in the remote interface must be of valid types for RMI/IIOP. --- end --- The arguments in this interface are of valid types AFAIK, meaning ... AccountInfo is implements Serializable in this case. Any help much appreciated. --Apple-Mail-1--618806821 Content-Transfer-Encoding: 7bit Content-Type: text/enriched; charset=US-ASCII <fontfamily><param>Arial</param>I'm getting errors like below on all of my session and entity beans, yet, my beans still run fine and I'm seeing no problems besides this output. --- snip --- [ERROR,ContainerFactory] Bean : Account Method : public abstract boolean addAccount(AccountInfo) throws RemoteException Section: 9.2.7 Warning: The method arguments in the remote interface must be of valid types for RMI/IIOP. --- end --- The arguments in this interface are of valid types AFAIK, meaning ... AccountInfo is implements Serializable in this case. Any help much appreciated.</fontfamily> --Apple-Mail-1--618806821-- --__--__-- _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user End of JBoss-user Digest _______________________________________________________________ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user