[Installation, Configuration & Deployment] - Jboss (sometimes) hangs on startup. Please help.
by giants_fan
Hi,
Usually, when I first boot up my machine, Jboss (4.03SP1) starts just fine, but after a few restarts, it just hangs. Here's the stdout:
10:55:29,887 INFO [Server] Root Deployment Filename: jboss-service.xml
10:55:30,418 INFO [ServerInfo] Java version: 1.5.0_11,Sun Microsystems Inc.
10:55:30,422 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.5.0_11-b03,Sun Microsystems Inc.
10:55:30,422 INFO [ServerInfo] OS-System: Linux 2.6.20-15-386,i386
10:55:31,508 INFO [Server] Core system initialized
and then it just sits there. The console is responsive because I can Control-C out of it, but seems like it's waiting for something. Here's where it stops in my boot.log file:
10:55:37,207 DEBUG [ServiceController] Creating dependent components for: jboss.system:service=ThreadPool dependents are: [ObjectName: jboss:service=WebService
State: CONFIGURED
I Depend On:
jboss.system:service=ThreadPool
, ObjectName: jboss:service=Naming
State: CONFIGURED
I Depend On:
jboss.system:service=ThreadPool
]
10:55:37,207 DEBUG [ServiceController] Creating service jboss:service=WebService
10:55:37,207 DEBUG [WebService] Creating jboss:service=WebService
Any ideas?
When I run the minimal server (-c minimal) everything works. This happens with a clean install of just the default (-c default) server. I've tried several different JVMs (1.42, 1.6) and also combinations with other Jbosses (4.04, 4.05) and have the same problem. I suspect it's something machine specific, but I don't quite know where to look.
Any help would be very appreciated.
Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042553#4042553
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042553
17 years, 4 months
[JBoss AOP] - Re: AOP within TestNG & EJB3 Embeddable
by kabir.khan@jboss.com
"mzeijen" wrote : What I want to do is to replace the HTTPClient (that makes the http call) with a Mock object. This mock object simply returns the value that I expect. I was thinking that AOP could be de the elegant solution for me. I am new to AOP so maybe I am seeing this completely wrong.
|
This sounds like a good idea to me.
"mzeijen" wrote : The problem is that I am having problems getting AOP to work within the Embeddable JBoss. I created a META-INF/jboss-aop.xml file and I am sure that it got loaded, because it throws exceptions if I do something wrong within the file. But as soon as the AOP should spring into action and call an Interceptor class nothing happens.
|
| Does someone else have any expierence with AOP and EJB3 Embeddable?
|
I have not really tried JBoss AOP with E-EJB, but it should be possible. As you say, it sounds like the jboss-aop.xml is getting picked up. So from that I *guess* you have runtime weaving turned on. If that is the case, and your classes are being woven, I would guess that your pointcuts are wrong. Remember that everything needs to be fully qualified. e.g
| <bind pointcut="execution(* org.acme.POJO->send(java.lang.String))">
| ...
| </bind>
|
would work, while the following 2 won't
| <bind pointcut="execution(* org.acme.POJO->send(String))">
| ...
| </bind>
| <bind pointcut="execution(* POJO->send(java.lang.String))">
| ...
| </bind>
|
You can pass in
-Djboss.aop.verbose=true to see if the different bindings in your file are matching the relevant joinpoints.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042548#4042548
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042548
17 years, 4 months