- This topic has 1 reply, 2 voices, and was last updated 19 years ago by Riyad Kalla.
-
AuthorPosts
-
xchen_cs@hotmail.comMemberHi, all
First, the system setteing:
Windows XP, Eclipse 3.0, JBoss3.2.3 (I don’t know how Eclipse how my JBoss version, I set JBOSS_HOME = C:\jboss3.2.3)
I am follwoing the tutorial. Till the very end of chapter 5. The build output:
[b]Buildfile: C:\eclipse\workspace\Tutorial\xdoclet-build.xml N65540: [ejbdoclet] (XDocletMain.start 47 ) Running <deploymentdescriptor/> [ejbdoclet] (XDocletMain.start 47 ) Running <jboss/> [ejbdoclet] (XDocletMain.start 47 ) Running <remoteinterface/> [ejbdoclet] (XDocletMain.start 47 ) Running <homeinterface/> _xdoclet_generation_: BUILD SUCCESSFUL Total time: 2 seconds[/b]
But in the IDE, there are some ‘RED’ cross showing somthings are wrong with the interface. Then I went into the 2 interfaces created by XDoclet:
=== Fibo.java ===
/* * Generated by XDoclet - Do not edit! */ package tutorial.interface; /** * Remote interface for Fibo. */ public interface Fibo extends javax.ejb.EJBObject { /** * Business method */ public double[] compute( int number ) throws java.rmi.RemoteException; }
=== FiboHome.java ===
/* * Generated by XDoclet - Do not edit! */ package tutorial.interface; /** * Home interface for Fibo. */ public interface FiboHome extends javax.ejb.EJBHome { public static final String COMP_NAME="java:comp/env/ejb/Fibo"; public static final String JNDI_NAME="ejb/Fibo"; public tutorial.interface.Fibo create() throws javax.ejb.CreateException,java.rmi.RemoteException; }
I paste the image of the error so you might better know my question.
http://129.173.105.113:8080/error.gif” alt=””>
http://129.173.105.113:8080/error1.gif” alt=””>If you click those link you will see that the error message is on the screen. I totally lost why it is like that.
Btw, the jre is slightly different than the one in the tutorial.
Help please!!!!
X.Chen
Riyad KallaMemberMoving to OT > Soft Dev, JBossIDE is actually a separate producgt to MyEclipse IDE (our product)
I would add that your problem is most likely the fact that you are using “interface” as part of a package name, but that is not allowed because “interface” is a reserved word in Java.
Try using “intf” or something like that, it should work.
-
AuthorPosts