-
1. Re: JBoss Eclipse IDE Tutorial
wkkschb Oct 18, 2006 2:13 AM (in response to weiming)your probably using Eclipse 3.2...
the tutorial is using 3.1
you need to download the JBoss Eclipse IDE for Eclipse 3.2
but i'm still stuck on the deploy section..
anyway keeping asking in the forum for help -
2. Re: JBoss Eclipse IDE Tutorial
weiming Oct 18, 2006 4:31 PM (in response to weiming)Yes, your guess is correct. I am using 3.2 version, but not 3.1 version. Actually, I figuered out my last problem, and I successfully delopied my ear file into deploy folder. The total size is about 8k. However, when I turned on JBoss server and tried to run http:localhost:8080/fibo, it shows 404 error. My guess this time is something wrong with my xml file, but I didn't change anything from the tutorial.
Does anyone have the same problem?
Cheers
Ming -
3. Re: JBoss Eclipse IDE Tutorial
lp2532 Oct 20, 2006 6:59 PM (in response to weiming)Hi Ming,
so you were able to go past chapter 5 when you re-install eclipse 3.1? I am having the same problem as you did earlier and i'm going out of my mind trying to figure it out. I am using eclipse 3.2.1. thanks! -
4. Re: JBoss Eclipse IDE Tutorial
weiming Oct 22, 2006 4:48 AM (in response to weiming)Yes, I can pass chapter 5 with version 3.2. I guess that you missed out something at XDoclet Configurations setting. I suggest you to delete EJB and Web configuration, and then build them again, make sure that you are exactly following the instructions.
-
5. Re: JBoss Eclipse IDE Tutorial
lp2532 Oct 24, 2006 5:57 PM (in response to weiming)again, need your help =(
i am on chapter 11, Deployment, and i dont know what to do. the console does not show any deployment activity but the resource looks like it was deployed (a small decorator appears on the top-left conrner of the FiboApp.ear icon). I'm stuck!!! Need help please... -
6. Re: JBoss Eclipse IDE Tutorial
weiming Oct 24, 2006 6:55 PM (in response to weiming)Which version of JBoss Eclipse IDE are you using now? As I know that the deployment of ear between 1.6 and 2.0 are slightly different. Because I am using version 2.0, when I finished setting up the classpath for JBoss server at Eclipse, I only need to click run JBoss server, and it will automatically deploy an ear file into my JBoss deploy folder.
-
7. Re: JBoss Eclipse IDE Tutorial
mvaneck Oct 24, 2006 8:52 PM (in response to weiming)Hi, I am stuck at chapter 10.
I can run my JBoss server in the Eclipse IDE.
However, the tutorial states that I need to add the server under the 'Debug' menu item. I have no JBoss servers on the 'create, manage and run configurations' window.
The only JBoss item is JBoss AOP Application (and that seems to be something else).
I am running JBoss AS 4.04 and downloaded the IDE+Eclipse bundle (JBoss IDE 2.0.0, Eclipse 3.2.1) -
8. Re: JBoss Eclipse IDE Tutorial
mwr0707 Oct 24, 2006 9:58 PM (in response to weiming)If you are using JBoss IDE 2.x, you should watch the videos at:
http://docs.jboss.com/jbosside/jboss-as/NewAndNoteworthy/jbosside2.0.0.beta2.html
A very big part of the development and deployment process has been upgraded from what is documented in the 1.x tutorial.
Two basic differences:
To create a new project:
Choose File->New->Other...
In the New dialog, open the EJB node and select EJB Project, do not use the JBoss Eclipse IDE node as described in the 1.x tutorial. When creating your session bean, use 'XDoclet Enterprise JavaBean' again, under the EJB node.
This approach exposes the new productivity features in 2.x that allow automatic generation of interfaces, deployment descriptors, (and the EAR too!) without having to fill in XDoclet tags or configure Xdoclet and Packaging as described in the 1.x tutorial.
To configure a server, right-click in the JBoss Server View, and select New->Server.
In the 'New Server' dialog make sure you open the 'JBoss Inc' (Not JBoss) node, and choose 'JBoss AS 4.0'.
Early on, I mistakenly tried JBoss->Jbossv4.0 and found many of the 2.x features crippled.
Watch the videos. -
9. Re: JBoss Eclipse IDE Tutorial
weiming Oct 25, 2006 3:49 PM (in response to weiming)hi mwr0707
when you are talking about
"This approach exposes the new productivity features in 2.x that allow automatic generation of interfaces, deployment descriptors, (and the EAR too!) without having to fill in XDoclet tags or configure Xdoclet and Packaging as described in the 1.x tutorial. "
did you mean that there is a button I can click at Eclipse to generate EJB EAR file (like "build" in netbean)?
Ming -
10. Re: JBoss Eclipse IDE Tutorial
mwr0707 Oct 25, 2006 9:16 PM (in response to weiming)When you create a new project as previously described, the first panel in the new EJB Project wizard has a group box at the bottom named 'EAR Membership', in this group box is a check box 'Add project to an EAR'.
If you check this box, a new EAR project will be created for you automatically. The contents of this EAR project will be kept up-to-date automatically. No need to configure packaging for it.
When you are ready to deploy, you can move the EAR to the server by right-clicking on the server instance in the JBoss Server View, and selecting 'Add and Remove Projects'. -
11. Re: JBoss Eclipse IDE Tutorial
mwr0707 Oct 25, 2006 9:17 PM (in response to weiming)When you create a new project as previously described, the first panel in the new EJB Project wizard has a group box at the bottom named 'EAR Membership', in this group box is a check box 'Add project to an EAR'.
If you check this box, a new EAR project will be created for you automatically. The contents of this EAR project will be kept up-to-date automatically. No need to configure packaging for it.
When you are ready to deploy, you can move the EAR to the server by right-clicking on the server instance in the JBoss Server View, and selecting 'Add and Remove Projects'. -
12. Re: JBoss Eclipse IDE Tutorial
weiming Oct 26, 2006 12:10 AM (in response to weiming)Sorry, I cannot find the panel you mentioned in the new EJB Project wizard. Can you specify the path in Eclipse please? For example, the project is called "Calculator", then what's next
Cheers
Ming -
13. Re: JBoss Eclipse IDE Tutorial
weiming Oct 26, 2006 12:13 AM (in response to weiming)oh, do you mean I have to create an ear file before I create the project, but not at the end?
-
14. Re: JBoss Eclipse IDE Tutorial
mwr0707 Oct 26, 2006 7:50 AM (in response to weiming)That is mostly correct. You create the new EAR project at the same time as your EJB project. The ear does not go into your EJB project, an entirely separate project gets created for it. Try creating a new EJB project and look for the checkbox.
The new EJB project wizard also also allows you to create a separate client project which is also automatically maintained with the required client interface classes. I had to add a packaging configuration to the client project properties in order to create the client jar. So unlike with the automatically updated EAR, I had to right-click on the client project and 'Run Packaging' to build the client jar.
Another client project issue I ran into is the generated interfaces extend other interfaces such as javax.ejb.EJBObject. The library reference for these (J2EE 1.4 Libraries (JBoss-IDE)) is not not automatically added to the generated client project's build classpath, so I had to add it myself. I'm not sure if this is the way it is intended to work, or is just a beta issue. Considering how far the IDE team has been able to go in automating EAR generation and deployment, it's hard to believe they intend those extra steps to be required for the client JAR.