Alexander,
1. Is your deployment descriptor properly written?
2. Are you sure?
3. Get a second opinion on that one (you'd be surprised)
4. Are your fields declared public in the Bean class? (no, they're not.
declare them public)
5. You need to have a remote interface, and a home interface. (ALL EJBs, or
it won't work)
6. Download, print, take to a cafe, and READ the ENTIRE EJB Specification.
It'll help a lot.
7. Good luck : )
~Norman Rupp
Web Developer
Hypothermic LLC
----- Original Message -----
From: "Alexander Temerev" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 04, 2001 12:12 PM
Subject: [JBoss-user] JAWS doesn't launch
> I have an CMP entity bean which extends model class, like in Java Pet
Store
> patterns. And JAWS doesn't find any cmp fields in it :( What's wrong?
>
> public class TaskBean extends TaskModel implements EntityBean {
> ...
> }
>
> So, I have no attributes in TaskBean class, they're all in TaskModel:
>
> public class TaskModel implements Task {
> protected Long id;
> protected String category;
> protected Integer priority;
> protected String description;
> protected Date startTime;
> protected Date endTime;
> ...
> }
>
> Also, the 'Task' isn't remote interface, it's a:
>
> public interface Task {
> public Long getID() throws RemoteException;
> public String getCategory() throws RemoteException;
> public void setCategory(String category) throws RemoteException;
> public Integer getPriority() throws RemoteException;
> public void setPriority(Integer priority) throws RemoteException;
> public String getDescription() throws RemoteException;
> public void setDescription() throws RemoteException;
> public Date getStartTime() throws RemoteException;
> }
>
> Actual remote interface is TaskRemote:
>
> public interface TaskRemote extends EJBObject, Task {}
>
> Here's the ejb-jar.xml:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <ejb-jar>
> <description>Task test application</description>
> <display-name>Task</display-name>
> <enterprise-beans>
> <entity>
> <description>Models a task</description>
> <ejb-name>TaskBean</ejb-name>
> <home>u7.TaskHome</home>
> <remote>u7.TaskRemote</remote>
> <ejb-class>u7.TaskBean</ejb-class>
> <persistence-type>Container</persistence-type>
> <prim-key-class>java.lang.Long</prim-key-class>
> <reentrant>False</reentrant>
> <cmp-field><field-name>id</field-name></cmp-field>
> <cmp-field><field-name>category</field-name></cmp-field>
> <cmp-field><field-name>priority</field-name></cmp-field>
> <cmp-field><field-name>description</field-name></cmp-field>
> <cmp-field><field-name>startTime</field-name></cmp-field>
> <cmp-field><field-name>endTime</field-name></cmp-field>
> <primkey-field>id</primkey-field>
> </entity>
> </enterprise-beans>
> </ejb-jar>
>
> The jBoss output while deploying is here:
>
> [Auto deploy] Auto deploy of file:/D:/jBoss/deploy/task.jar
> [J2EE Deployer] Deploy J2EE application: file:/D:/jBoss/deploy/task.jar
> [J2EE Deployer] Create application task.jar
> [J2EE Deployer] Installing EJB package: task.jar
> [J2EE Deployer] Starting module task.jar
> [Container factory]
> Deploying:file:/D:/jBoss/bin/../tmp/deploy/task.jar/ejb1002.jar
> [Verifier] Verifying file:/D:/jBoss/bin/../tmp/deploy/task.jar/ejb1002.jar
> [Container factory] Deploying Interest
> [Container factory] Deployed application:
> file:/D:/jBoss/bin/../tmp/deploy/task.jar/ejb1002.jar
> [J2EE Deployer] J2EE application: file:/D:/jBoss/deploy/task.jar is
> deployed.
>
> Very strange, isn't it?
>
> Alexander Temerev
>
>
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user