I found this error when add new finder findByProduct

16:13:05,437 WARN  [ServiceController] Problem starting service
jboss.j2ee:jndiN
ame=LPCEventRemoteHome,service=EJB
org.jboss.deployment.DeploymentException: Parameter class not found:
java.lang.S
tring, java.util.Date, java.util.Date

Can enybody help, please?

-phuwarin

// ejb-jar.xml
        <entity>
            <description>LPCEvent Entity Bean</description>
            <ejb-name>LPCEventEJB</ejb-name>
            <home>lpc.LPCEventRemoteHome</home>
            <remote>lpc.LPCEventRemote</remote>
            <local-home>lpc.LPCEventHome</local-home>
            <local>lpc.LPCEvent</local>
            <ejb-class>lpc.LPCEventBean</ejb-class>
            <persistence-type>Container</persistence-type>
            <prim-key-class>java.lang.Long</prim-key-class>
            <reentrant>False</reentrant>
            <cmp-version>2.x</cmp-version>
            <abstract-schema-name>LPCEvent</abstract-schema-name>
            <cmp-field>
                <field-name>eventNum</field-name>
            </cmp-field>
            <cmp-field>
                <field-name>prdName</field-name>
            </cmp-field>
            <cmp-field>
                <field-name>eventDate</field-name>
            </cmp-field>
            <cmp-field>
                <field-name>serialNum</field-name>
            </cmp-field>
            <cmp-field>
                <field-name>headPos</field-name>
            </cmp-field>
            <cmp-field>
                <field-name>headNum</field-name>
            </cmp-field>
            <primkey-field>eventNum</primkey-field>
            <query>
                <query-method>
                    <method-name>findByProduct</method-name>
                    <method-params>
                        <method-param>java.lang.String, java.util.Date,
java.util.Date</method-param>
                    </method-params>
                </query-method>
                <result-type-mapping>Local</result-type-mapping>
                <ejb-ql>select object(a) from LPCEvent as a where a.prdName
= ?1 and a.eventDate between ?2 and ?3</ejb-ql>
            </query>
            <query>
                <query-method>
                    <method-name>findAll</method-name>
                    <method-params />
                </query-method>
                <result-type-mapping>Local</result-type-mapping>
                <ejb-ql>select object(a) from LPCEvent as a</ejb-ql>
            </query>
        </entity>

// LPCEventRemoteHome.java
package lpc;

import javax.ejb.*;
import java.util.*;
import java.lang.*;
import java.rmi.*;

public interface LPCEventRemoteHome extends EJBHome {
  public LPCEventRemote create(Long eventNum) throws CreateException,
RemoteException;
  public Collection findByProduct(String product, Date fromDate, Date
toDate) throws FinderException, RemoteException;
  public Collection findAll() throws FinderException, RemoteException;
  public LPCEventRemote findByPrimaryKey(Long eventNum) throws
FinderException, RemoteException;
}



-------------------------------------------------------
This sf.net email is sponsored by:
With Great Power, Comes Great Responsibility 
Learn to use your power at OSDN's High Performance Computing Channel
http://hpc.devchannel.org/
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to