[Management, JMX/JBoss] - Jboss 5: jmx not bound
by editha
Hi!
I'm trying to deploy my application, which is already running on Jboss 4, in jboss 5 beta.
When I try to lookup the RMIAdaptor with
Properties p = new Properties(); p.put("java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory");
| p.put("java.naming.provider.url","localhost:1099");
|
| InitialContext jndiContext = new InitialContext(p);
|
| RMIAdaptor rmiadaptor = (RMIAdaptor)jndiContext.lookup("jmx/rmi/RMIAdaptor");
I get this error:
javax.naming.NameNotFoundException: jmx not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:542)
at org.jnp.server.NamingServer.getBinding(NamingServer.java:550)
at org.jnp.server.NamingServer.getObject(NamingServer.java:556) at org.jnp.server.NamingServer.listBindings(NamingServer.java:385)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
at sun.rmi.transport.Transport$1.run(Transport.java:153)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
at java.lang.Thread.run(Thread.java:595)
Does any one know why this error occurs or if anything has changed in Jboss 5 that could cause this error?
Thanks!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4058863#4058863
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4058863
18Â years, 9Â months
[JBoss Seam] - Strange behaviour in 2.0.0beta1
by rmemoria
I've been upgrading since version 1.2.1 and in version 2.0.0.beta1 I found something very strange:
I have a long running conversation with an EntityHome bean like that:
@Name("recebimentoHome")
| public class RecebimentoHome extends EntityHome<Recebimento> {
|
| private ItemRecebimento itemRec;
|
| @Factory("recebimento")
| public Recebimento getRecebimento() {
| return getInstance();
| }
|
| public ItemRecebimento getItem() {
| if (itemRec == null) {
| itemRec = new ItemRecebimento();
| }
|
| return itemRecebimento;
| }
|
| public void addNewItem() {
| getInstance().getItens().add(itemRec);
| itemRec = null;
| }
| ..
| ..
| ..
So when the addNewItem() is called from a button, the property recebimentoHome.item should return a new item, but in fact, after calling addNewItem() the property itemRec is restored to the previous value . The same before calling addNewItem().
Any tip?
Regards,
Ricardo Memória
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4058852#4058852
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4058852
18Â years, 9Â months