This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JBoss running ?

 
Kay Tracid
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
i'm new to the topic Jboss. I just want to test if the jboss is runing. How can I do this? I think a simple request to the jboss server should solve my problem.
Please help...
Thanks a lot!
 
Craig Demyanovich
Ranch Hand
Posts: 173
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One way to do this is to check whether the agent view is available. For JBoss 2.4.x, point your browser at http://<machine-name-or-ip>:8082. For JBoss 3.0.x, point your browser to the previous address, or, for more details, point your browser to http://<machine-name-or-ip>:8080/jmx-console.
Craig
[ September 12, 2002: Message edited by: Craig Demyanovich ]
 
Rufus BugleWeed
Ranch Hand
Posts: 1551
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm running on windows 2k, 1.7 Ghz Pentium IV processor with 256 MB ram. It took about 8 minutes to start up. Does this seem reasonable?
 
Craig Demyanovich
Ranch Hand
Posts: 173
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Rufus Bugleweed:
I'm running on windows 2k, 1.7 Ghz Pentium IV processor with 256 MB ram. It took about 8 minutes to start up. Does this seem reasonable?

No. JBoss 2.4.8 and 3.0.2 both start on my machine in 5 to 15 seconds. I have a Dell Latitude C810 notebook, Windows XP Pro SP1, P III 1.13 GHz, 512 MB RAM. While the configuration of 3.0.2 is a little light yet, 2.4.8 is configured for our current enterprise project.
Which version of JBoss are you using?
Craig
[ September 12, 2002: Message edited by: Craig Demyanovich ]
 
Rufus BugleWeed
Ranch Hand
Posts: 1551
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I downlaoded 3.0.2 earlier this week.
The figure I quoted is based on the times that scroll out on the command window.
There's a big gap at the end before the last two entries. The first to last says
Registered JBoss.web.Jetty=0,HttpContext=0,Context=0/
The lasts says Started HttpContect
Before 8 minure the jmx-console page returns 404
 
Craig Demyanovich
Ranch Hand
Posts: 173
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My install of JBoss 3.0.2 has been configured with one datasource and supporting login configuration. I just ran it; the following is the last line of output on the console:
21:16:04,712 INFO [Server] JBoss (MX MicroKernel) [3.0.2 Date:200208271339] Started in 0m:17s:355ms
(I know I said 15 seconds before :-( ).
Immediately, I can go to http://<machine-name>:8080/jmx-console/ to use the JMX Agent View. http://<machine-name>:8082 didn't work for me, though. The information from my earlier post came from the JBoss 3.0 Quickstart Guide.
I'm still learning about JBoss 3.x, as I'm accustomed to 2.4.8. Hence, I don't have any answers re: your long startup time. If no answers arrive in this forum soon, you could use the JBoss forums.
Good luck,
Craig
 
Kay Tracid
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, I should say that I want to check it with a Java Application or JSP. Maybe a PHP Script. Do you know how I can make a simple connection for a running test?
 
Craig Demyanovich
Ranch Hand
Posts: 173
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, once JBoss is running, it serves the Agent View page. You could construct a bare bones http request and send it over a socket to the machine. If you receive a response (What would that be?), then you know JBoss is running.
Craig
 
Drew King
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could also try building a simple JSP that only prints a single block of text, say the date or simply "Hello, World." Then write a very simple client that requests that page. You could do it in PHP with something like

where $expectedString would be set to the first line of the HTML returned by test.jsp
 
prakashP
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have jboss 3.0.4 with tomcat 4.1.12 I do a run.bat and deploy my app in the default/deploy directory .I have been trying to bring up the app by typing http://localhost:8080/index.jsp
It gives a mapping configuration error
Is it the way I am startign jboss
 
sanjay kalsi
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am also having same problem i have jboss3.0.6 with tomcat.I have set the java_home path run.bat.
when i start it it gives message that jboss started.When i type http://localhost:8080/index.jsp or simply http://localhost:8080 i get error message "mapping configuration error for request uri /index.jsp
Please let me know why i am getting this error
 
Ashik Uzzaman
Ranch Hand
Posts: 2373
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Let me try.
You are using JSP pages as well that'll be served by Tomcat or Jetty Server that resides inside JBoss. So deploy your JSP pages or WAR file inside %JBoss_Home%\server\all\deploy instead of %JBoss_Home%\server\default\deploy and then run JBoss using run -c all instead of just double-clicking run.bat file. This is because in all server configuration mode JBoss serves along with its web containers (Tomcat/Jetty) but in case of default setting, I am not sure whether it does!
 
Parul Patidar
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
deploy your app as war in server\default\deploy and then use the url http://host:8080/warname/
there is an application already deployed there named jmx-console this is jsp application and can be checked using url
http://hostname:8080/jmx-console/
you can find expanded war in default deploy
name ins jamx-console jmx-console.war
Originally posted by prakash54208:
I have jboss 3.0.4 with tomcat 4.1.12 I do a run.bat and deploy my app in the default/deploy directory .I have been trying to bring up the app by typing http://localhost:8080/index.jsp
It gives a mapping configuration error
Is it the way I am startign jboss
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic