This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes Configuration of Jboss in Eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Configuration of Jboss in Eclipse" Watch "Configuration of Jboss in Eclipse" New topic
Author

Configuration of Jboss in Eclipse

ujwwala tem
Ranch Hand

Joined: Feb 10, 2010
Posts: 83
Hello All,

I am new to Jboss and EJB,

I am trying to run a simple EJB application so for that I have downloaded JBoss-2.4.3_Tomcat-3.2.3.zip from sourceforge.net,

I have lot of confusion here,

1.First of all, Please let me know what I have downloaded is correct as I was not able to download jboss from jboss website, I was confuses as there was 30days trial something so which one to download I didn't understand,

2. What I have downloaded I tried to run and server properly runs

3. If I want to check jboss version how should I check that

4. Do I need jboss plugin or tool for this

5. I have tried to configure as we do for the tomcat setting like in target runtime I added jboss directory path and its asking me for Missing classpath entry D:\ujwwala\JBoss-2.4.3_Tomcat-3.2.3\jboss\bin\shutdown.jar,

Please reply, I am trying to find step by step article but couldn't find it

Regards,
Ujwwala

Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5838
    
    7

The release you downloaded is older than ancient. The latest release is JBoss AS 6.

1) From your description i think you went to the site for the professional version. Look at http://www/jboss.org instead. (Let me know if you still can't find hte downloadp age)

3) Do you mean which one you have running, or which ones are available for download?

4) Not sure what you mean. Plugin for what? JBoss AS? Or do you mean for Eclipse? If for Eclipse, I recommend JBoss Tools - Tools has really good documents with detailed tutorials (e.g. "step by step articles")

5) I don't know what you configured, so I can't really comment on this.


JBoss In Action
ujwwala tem
Ranch Hand

Joined: Feb 10, 2010
Posts: 83
Hello,

Thanks for the information,

I have visited this page http://www.jboss.org/jbossas/downloads
Is it correct and for 6.o as you said I should download and whe I click on download I get the page http://sourceforge.net/projects/jboss/files/JBoss/JBoss-6.0.0.Final/ so here what particular zip file need to to be downloaded, Is it distribution(jboss-as-distribution-6.0.0.Final.zip) OR (jboss-as-distribution-6.0.0.Final-src.zip) I am bit confused,

Actually I want to try to develope my First EJB application so I am doing all this stuff at home,

Please help,

Thanks,
Ujwwala
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10240
    
168

ujwwala tem wrote:so here what particular zip file need to to be downloaded, Is it distribution(jboss-as-distribution-6.0.0.Final.zip) OR (jboss-as-distribution-6.0.0.Final-src.zip) I am bit confused,


You have to download the jboss-as-distribution-6.0.0.Final.zip. The jboss-as-distribution-6.0.0.Final-src.zip just contains the source code of the application server.

Here are some EJB3 tutorials http://www.jboss.org/ejb3/docs. Although, they were written for JBoss AS 5.x, they are still applicable for JBoss AS6. Also, if you want to try some new EJB3.1 features then follow these:

http://community.jboss.org/wiki/EJB31InAS600M2
http://community.jboss.org/wiki/EJB31SingletonBeansInAS600M3
http://community.jboss.org/wiki/EJB31InJBossAS600M4



[My Blog] [JavaRanch Journal]
ujwwala tem
Ranch Hand

Joined: Feb 10, 2010
Posts: 83
Thanks JaiKiran for your prompt response,
Will start now and will post queries if I have,

Thanks,
Ujwwala
ujwwala tem
Ranch Hand

Joined: Feb 10, 2010
Posts: 83
Hello,

As per the solution given by JaiKiran I have downloaded jboss-6.0.0.Final.Zip and run on command promt as run.bat

Its giving some deployment error and at last line it gives server started but when I am typing http://localhost:8080/jmx-console/index.jsp

I am not getting anything Its just showing waiting for localhost not processing further,

For all of this I am using Eclipse 3.3.2 , Jboss 6

I am referring
http://www.devx.com/Java/Article/21065/1954 as step by step,

I have copied two jars in jboss/server/default/lib
1.jboss j2ee.jar
2. javax.servlet.jar

the display at console is:
[[Moved to attachment]]

Please suggest solution,

Regards,
Ujwwala


[Download console.zip] Download

Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5838
    
    7

I have copied two jars in jboss/server/default/lib

No, do not do that! Do not follow the article that you referenced since it is for an ancient version of JBoss AS. Jaikiran gave you several good links to articles for AS 6.0. Also I mentioned the docs for JBoss Tools, which should also help you.

The console output you posted in unhelpful because the important part has scrolled out of the console buffer. You could either increase the size of the console buffer (I have mine set to 9000 lines), or you could attach the server.log file to the post. It is usually better to attach a file than to paste lengthy text within a post.
ujwwala tem
Ranch Hand

Joined: Feb 10, 2010
Posts: 83
Hello Peter,

Thanks for your suggestion,

I will see those docs gradually but before that in reply to my previous question please find the console what I have set buffer size to 999 its not going beyond that in winxp,

I am not able to attach file,It asking me can not attach txt file,so Please find the below console output:
[[Moved to attachment]]


Regards,
Ujwwala


[Download console.zip] Download

Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5838
    
    7

Again you have posted only a partial stat trace, and partial stack traces are useless!!! Please stop go back and reread my last post.

I have set buffer size to 999

I wrote:
peter wrote:(I have mine set to 9000 lines),


I also wrote:
peter wrote: It is usually better to attach a file than to paste lengthy text within a post.


I also hope that you undid this:
I have copied two jars in jboss/server/default/lib
ujwwala tem
Ranch Hand

Joined: Feb 10, 2010
Posts: 83
Hello Peter

I read you last post, Actually I was trying to attach server.log file but its giving me message as "Files with the extension .txt are not allowed as attachment in the message."
I tried with log and txt both.

Also I have increased buffer size to 999 which is maximum...

So Please reply how should I send the server.log file,

Regards,
Ujwwala
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5838
    
    7

You need to place the log file into a zip file and attach the zip file.

Also I have increased buffer size to 999 which is maximum...

In Command Prompt? It allows four digits for the buffer size (Layout tab -> Screen Buffer Size -> Height).
ujwwala tem
Ranch Hand

Joined: Feb 10, 2010
Posts: 83
Hello Peter,

Thanks for the reply,

I am trying to put .zip file for server log but still its giving me Files with the extension .zip are not allowed as attachment in the message.

So I am putting the command line buffer:
[[Moved to attachment]]


Please guide,

Thanks,
Ujwwala


[Download console.zip] Download

Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5838
    
    7

Here is the error:

14:24:29,531 ERROR [AjpProtocol] Error initializing endpoint: java.net.BindExcep
tion: Address already in use: JVM_Bind /127.0.0.1:8009

See if this helps: https://community.jboss.org/wiki/DebugBindException
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Configuration of Jboss in Eclipse