I think <order... should contain only title.
Ciao
On Fri, 23 Mar 2001 15:35:16 -0500 (EST), Donald Ball wrote:
>i wrote a little customer finder using the jawx.xml conf file, but it's
>not working, i get this exception:
>
>[balld@localhost news]$ java com.webslingerZ.news.client.NewsClient
>Exception in thread "main" javax.ejb.FinderException: Find failed
> at
>sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:245)
> at
>sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220)
> at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
> at
>org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invokeHome(Unknown
>Source)
> at
>org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:248)
> at $Proxy0.findByTitleManually(Unknown Source)
> at com.webslingerZ.news.client.NewsClient.main(NewsClient.java:22)
>
>my jaws.xml file looks like this:
>
><?xml version="1.0"?>
>
><jaws>
> <datasource>PostgresqlTest</datasource>
> <type-mapping>PostgreSQL</type-mapping>
> <enterprise-beans>
> <entity>
> <ejb-name>Article</ejb-name>
> <finder>
> <name>findByTitleManually</name>
> <query>title like '%{1}%'</query>
> <order>order by title</order>
> </finder>
> </entity>
> </enterprise-beans>
></jaws>
>
>and the relevant section of my ejb-jar.xml file:
>
> <entity>
> <description>
> A news article
> </description>
> <ejb-name>Article</ejb-name>
> <home>com.webslingerZ.news.beans.ArticleHome</home>
> <remote>com.webslingerZ.news.beans.Article</remote>
> <ejb-class>com.webslingerZ.news.beans.ArticleBean</ejb-class>
> <persistence-type>Container</persistence-type>
>
><prim-key-class>com.webslingerZ.news.beans.ArticlePK</prim-key-class>
> <reentrant>False</reentrant>
> <cmp-field><field-name>id</field-name></cmp-field>
> <cmp-field><field-name>title</field-name></cmp-field>
> <cmp-field><field-name>content</field-name></cmp-field>
> </entity>
>
>my ArticleHome class declares this method:
>
> public Collection findByTitleManually(String title)
> throws FinderException, RemoteException;
>
>any idea what's up?
>
>- donald
>
>
>_______________________________________________
>JBoss-user mailing list
>[EMAIL PROTECTED]
>http://lists.sourceforge.net/lists/listinfo/jboss-user
>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Author" content="Franco Biaggi">
<meta name="GENERATOR" content="Franco Biaggi">
</head>
<body>
<p> </p>
<table BORDER="1" COLS="1" WIDTH="452" BGCOLOR="#FFFF00">
<tr>
<td width="446"><font face="Comic Sans MS"><small><small><br>
<font color="#3333FF"><a href="http://www.ticino.com/usr/fbiaggi/">Franco
Biaggi</a></font><small><br>
<font color="#3333FF"><a href="http://www.sisa.ch">SISA Studio Informatica
SA</a></font><small><small><small> <br>
</small></small></small><font color="#3333FF">R&D
Services</font><small><small><small>
<br>
</small></small></small><font color="#3333FF">Via Carvina
1</font><small><small><small> <br>
</small></small></small><font color="#3333FF">CH-6807
Taverne</font><small><small><small> <br>
</small></small></small><font color="#3333FF">Efax +1 801 705
2839</font></small></small></small><br>
</small></small></small><font color="#3333FF">Tel. +41 91 935 75 35 Fax. +41
91 935
75 30</font></small></small></small><br>
</small></small></small><font color="#3333FF">Sorry for my bad
english...</font><small><small><small> <br>
</font></td>
</tr>
</table>
</body>
</html>
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user