momsse [
http://community.jboss.org/people/momsse] created the discussion
"Problem with importing a simple Java project on an Ejb"
To view the discussion, visit:
http://community.jboss.org/message/578785#578785
--------------------------------------------------------------
Hello and happy new year,
Please excuse me for my English (i am French).
I'm new to JBoss (AS version 4.4 GA), I work on a project with EJB 3.0, and am having
a problem to import a project (a simple java project) in my EJB:
My project contains an EJB module:
- DemoEJB
an WAR:
- DemoWAR
and an EAR that includes them:
-DemoEAR
I want to use a Java project that contains the example for this simple class:
public class Hello {
public String hello(){
return "Hello";
}
}
When I made it like that:
@Entity
@Table(name = "addresses")
public class Address implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private int ID;
private String name;
public Address() {
}
public Address(Hello h) {
}
//...
}
I get the following error:
18:40:37,464 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
--- MBeans waiting for other MBeans ---
ObjectName: persistence.units:ear=DemoEAR.ear,jar=DemoEJB.jar,unitName=DemoPU
State: FAILED
Reason: java.lang.RuntimeException: java.lang.NoClassDefFoundError: hello/Hello
I Depend On:
jboss.jca:service=ManagedConnectionFactory,name=DemoDS
Depends On Me:
jboss.j2ee:ear=DemoEAR.ear,jar=DemoEJB.jar,name=DemoDB,service=EJB3
ObjectName: jboss.j2ee:ear=DemoEAR.ear,jar=DemoEJB.jar,name=DemoDB,service=EJB3
State: NOTYETINSTALLED
I Depend On:
persistence.units:ear=DemoEAR.ear,jar=DemoEJB.jar,unitName=DemoPU
Depends On Me:
jboss.j2ee:ear=DemoEAR.ear,jar=DemoEJB.jar,name=DemoRemoteImpl,service=EJB3
ObjectName: jboss.j2ee:ear=DemoEAR.ear,jar=DemoEJB.jar,name=DemoRemoteImpl,service=EJB3
State: NOTYETINSTALLED
I Depend On:
jboss.j2ee:ear=DemoEAR.ear,jar=DemoEJB.jar,name=DemoDB,service=EJB3
--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: persistence.units:ear=DemoEAR.ear,jar=DemoEJB.jar,unitName=DemoPU
State: FAILED
Reason: java.lang.RuntimeException: java.lang.NoClassDefFoundError: hello/Hello
I Depend On:
jboss.jca:service=ManagedConnectionFactory,name=DemoDS
Depends On Me:
jboss.j2ee:ear=DemoEAR.ear,jar=DemoEJB.jar,name=DemoDB,service=EJB3
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/578785#578785]
Start a new discussion in JBoss Portal at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]