HelloWorld + Incomplete Deployment listing
joycestack Jan 16, 2003 7:30 AMHello Everyone,
This is going to be a long email so pull up a chair. Like everyone else I am trying to deploy a simple HelloWorld Example on JBoss 3.0.
I have my HelloWorldBean which has some XDoclet tags in it. It then creates my interfaces for me. HelloWorld and HelloWorldHome (remote and home interfaces). No problem. I build using Ant. This generates my ejb-jar.xml file and my jboss.xml file. Here the generated files are
ejb-jar.xml
<?xml version="1.0" encoding="UTF-8"?>
<ejb-jar >
No Description.
<display-name>Generated by XDoclet</display-name>
<enterprise-beans>
<!-- Session Beans -->
[CDATA[No Description.]]
<ejb-name>HelloWorld</ejb-name>
helloworld.interfaces.HelloWorldHome
helloworld.interfaces.HelloWorld
<ejb-class>helloworld.session.HelloWorldBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Bean</transaction-type>
<!--
To add session beans that you have deployment descriptor info for, add
a file to your merge directory called session-beans.xml that contains
the markup for those beans.
-->
<!-- Entity Beans -->
<!--
To add entity beans that you have deployment descriptor info for, add
a file to your merge directory called entity-beans.xml that contains
the markup for those beans.
-->
<!-- Message Driven Beans -->
<!--
To add message driven beans that you have deployment descriptor info for, add
a file to your merge directory called message-driven-beans.xml that contains
the <message-driven></message-driven> markup for those beans.
-->
</enterprise-beans>
<!-- Relationships -->
<!-- Assembly Descriptor -->
<assembly-descriptor >
<!-- finder permissions -->
<!-- transactions -->
<!-- finder transactions -->
</assembly-descriptor>
</ejb-jar>
Here is my jboss.xml
<?xml version="1.0" encoding="UTF-8"?>
<enterprise-beans>
<ejb-name>helloworld.interfaces.HelloWorld</ejb-name>
<jndi-name>helloworld.interfaces.HelloWorld</jndi-name>
</enterprise-beans>
<resource-managers>
</resource-managers>
My HelloClient.jar is placed into the client folder.
My HelloJAR.jar file (which has my jboss.xml, ejb-jar.xml, the HelloWorldBean and the interface classes) into the deploy folder.
When I start my JBoss I get the error:-
12:10:01,032 ERROR [URLDeploymentScanner] MBeanException: Exception in MBean operation 'checkIncompleteDeployments()'
Cause: Incomplete Deployment listing:
Packages waiting for a deployer:
Incompletely deployed packages:
MBeans waiting for classes:
MBeans waiting for other MBeans:
[ObjectName: jboss.j2ee:jndiName=HelloWorld,service=EJB
state: FAILED
I Depend On:
Depends On Me: java.lang.NoSuchMethodException]
12:10:01,212 INFO [URLDeploymentScanner] Started
12:10:01,222 INFO [MainDeployer] Deployed package: file:/E:/jboss-3.0.4_tomcat-4.1.12/server/default/conf/jboss-service.xml
12:10:01,242 INFO [Server] JBoss (MX MicroKernel) [3.0.4 Date:200211021607] Started in 0m:31s:585ms
I know im very close to the end but I think I am having problems with my JNDI stuff. Also when I run my client class I get the error
client\HelloClient.jar" helloworld.client.HelloClient
javax.naming.NameNotFoundException: HelloWorld not bound
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.jnp.server.NamingServer_Stub.lookup(Unknown Source)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:464)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:443)
at javax.naming.InitialContext.lookup(InitialContext.java:350)
at helloworld.client.HelloClient.main(HelloClient.java:23)
Thanks alot for the help,
Joyce