[Installation, Configuration & DEPLOYMENT] - Error Shutdown JBoss 4 from MyEclipse
by cutethree
It throws error message:
Exception in thread "main" javax.naming.NameNotFoundException: jmx not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
at org.jnp.server.NamingServer.lookup(NamingServer.java:267)
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:597)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
at sun.rmi.transport.Transport$1.run(Transport.java:159)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:142)
at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:667)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at org.jboss.Shutdown.main(Shutdown.java:214)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4200714#4200714
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4200714
17 years, 3 months
[JBoss Cache: Core Edition] - weird problem SocketException
by jreeman
Hello,
I use jboss cache in a clustered environement, here is my config file :
<?xml version="1.0" encoding="UTF-8"?>
| <!-- This cluster cache contains the "last" id of archives for the different mgmt data
| When a data is modified, the new id of the data is updated on all controllers
| and will be compared to the data in the local cache on controllers and based on
| expiration policy (see for example : tech.data.expiration.time.insecond in
| controller-env.properties)
| -->
| <server>
| <mbean code="org.jboss.cache.jmx.CacheJmxWrapper"
| name="jboss.cache:service=TreeCache">
|
| <depends>jboss:service=Naming</depends>
| <attribute name="IsolationLevel">READ_COMMITTED</attribute>
| <attribute name="CacheMode">REPL_SYNC</attribute>
|
| <!-- Policy configurations : FIFO Policy -->
| <attribute name="EvictionPolicyConfig">
| <config>
| <attribute name="policyClass">org.jboss.cache.eviction.FIFOPolicy</attribute>
|
| <!-- Cache wide default -->
| <region name="/_default_">
| <attribute name="maxNodes">1000</attribute>
| </region>
|
| <region name="/clusters" policyClass="org.jboss.cache.eviction.FIFOPolicy">
| <attribute name="maxNodes">50</attribute>
| </region>
|
| <region name="/section-mappings" policyClass="org.jboss.cache.eviction.FIFOPolicy">
| <attribute name="maxNodes">100</attribute>
| </region>
|
| <region name="/mgmt-mappings" policyClass="org.jboss.cache.eviction.FIFOPolicy">
| <attribute name="maxNodes">50</attribute>
| </region>
|
| <region name="/clients" policyClass="org.jboss.cache.eviction.FIFOPolicy">
| <attribute name="maxNodes">100</attribute>
| </region>
|
| <region name="/cfes" policyClass="org.jboss.cache.eviction.FIFOPolicy">
| <attribute name="maxNodes">100</attribute>
| </region>
|
| <region name="/sections" policyClass="org.jboss.cache.eviction.FIFOPolicy">
| <attribute name="maxNodes">200</attribute>
| </region>
|
| </config>
| </attribute>
|
| <attribute name="ClusterName">Cluster-Of-Controllers</attribute>
|
| <!-- JGroups protocol stack properties -->
| <attribute name="ClusterConfig">
| <config>
| <TCP start_port="7800" loopback="false" enable_diagnostics="false" />
|
| <!-- choose a mcast_addr that no other machine/processus use -->
| <!-- ip_ttl = 0 for local cluster, ip_ttl=1 for multicast in the current network/sub-network > 1
| and < 32 same organization or site
| -->
| <MPING timeout="3000" bind_to_all_interfaces="false"
| mcast_addr="225.0.0.1" mcast_port="7500" ip_ttl="0"
| num_initial_members="2" />
|
| <!-- suspecting node failures only when a regular TCP connection to the node fails -->
| <FD_SOCK />
|
| <!-- configuration to have a sequence for each message and detect/treat gap in this sequence
| -->
| <pbcast.NAKACK gc_lag="50" max_xmit_size="8192" retransmit_timeout="600,1200,2400,4800" />
|
| <!-- the sender resends the message if it hasn't received an ACK after 100 ms the first time
| -->
| <UNICAST timeout="600,1200,2400"/>
|
| <!-- time before two garbage collection -->
| <pbcast.STABLE desired_avg_gossip="20000" />
|
| <!-- merge partitioned cluster -->
| <MERGE2 max_interval="10000" min_interval="2000"/>
|
| <!-- managing nodes that joins -->
| <pbcast.GMS join_retry_timeout="2000" join_timeout="5000" print_local_addr="false" shun="true" />
|
| <!-- transfer the state of the cache to the other node -->
| <pbcast.STATE_TRANSFER />
| </config>
| </attribute>
|
| <attribute name="FetchStateOnStartup">false</attribute>
| <attribute name="InitialStateRetrievalTimeout">5000</attribute>
| <attribute name="LockAcquisitionTimeout">15000</attribute>
| <attribute name="UseMarshalling">false</attribute>
| <attribute name="CacheLoaderShared">true</attribute>
| <attribute name="CacheLoaderPreload">/</attribute>
| <attribute name="CacheLoaderPassivation">false</attribute>
| <attribute name="CacheLoaderFetchPersistentState">false</attribute>
| <attribute name="CacheLoaderFetchTransientState">false</attribute>
| <attribute name="CacheLoaderAsynchronous">false</attribute>
| </mbean>
| </server>
I have set the properties : -Djava.net.preferIPv4Stack=true because without I had exceptions.
java.net.SocketException: bad argument for IP_MULTICAST_IF: address not bound to any interface
This exception disappear but now I have this error in my log :
| org.jboss.cache.CacheException: Unable to invoke method public void org.jboss.cache.RPCManagerImpl.start() on object instance org.jboss.cache.RPCManagerImpl@77eb97
| at org.jboss.cache.util.reflect.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:127)
| at org.jboss.cache.factories.ComponentRegistry$PrioritizedMethod.invoke(ComponentRegistry.java:932)
| at org.jboss.cache.factories.ComponentRegistry.internalStart(ComponentRegistry.java:718)
| at org.jboss.cache.factories.ComponentRegistry.start(ComponentRegistry.java:582)
| at org.jboss.cache.invocation.CacheInvocationDelegate.start(CacheInvocationDelegate.java:279)
| at org.jboss.cache.DefaultCacheFactory.createCache(DefaultCacheFactory.java:95)
| at org.jboss.cache.DefaultCacheFactory.createCache(DefaultCacheFactory.java:67)
| at
| ...
| org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1172)
| at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:992)
| at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4058)
| at org.apache.catalina.core.StandardContext.start(StandardContext.java:4371)
| at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
| at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
| at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
| at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
| at org.apache.catalina.core.StandardService.start(StandardService.java:516)
| at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
| at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
| 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:597)
| at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
| at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
| Caused by: java.lang.reflect.InvocationTargetException
| 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:597)
| at org.jboss.cache.util.reflect.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:123)
| ... 26 more
| Caused by: org.jboss.cache.CacheException: Unable to connect to JGroups channel
| at org.jboss.cache.RPCManagerImpl.start(RPCManagerImpl.java:163)
| ... 31 more
| Caused by: org.jgroups.ChannelException: failed to start protocol stack
| at org.jgroups.JChannel.startStack(JChannel.java:1550)
| at org.jgroups.JChannel.connect(JChannel.java:429)
| at org.jboss.cache.RPCManagerImpl.start(RPCManagerImpl.java:147)
| ... 31 more
| Caused by: java.net.SocketException: Cannot assign requested address
| at java.net.PlainDatagramSocketImpl.socketSetOption(Native Method)
| at java.net.PlainDatagramSocketImpl.setOption(PlainDatagramSocketImpl.java:299)
| at java.net.MulticastSocket.setInterface(MulticastSocket.java:420)
| at org.jgroups.protocols.MPING.start(MPING.java:236)
| at org.jgroups.stack.Configurator.startProtocolStack(Configurator.java:124)
| at org.jgroups.stack.ProtocolStack.startStack(ProtocolStack.java:392)
| at org.jgroups.JChannel.startStack(JChannel.java:1547)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4200709#4200709
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4200709
17 years, 3 months
[Installation, Configuration & DEPLOYMENT] - Error while starting JBoss
by sanju_er
Hi All,
I am getting following error while starting jboss-5.0.0.GA server on Mac OSX 10.5.6:
| 11:52:17,844 ERROR [AbstractKernelController] Error installing to Start: name=WebServer state=Create
| java.lang.NoSuchMethodError: org.apache.catalina.startup.Catalina.setCatalinaHome(Ljava/lang/String;)V
| at org.jboss.web.tomcat.service.deployers.TomcatService.startService(TomcatService.java:187)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:376)
| at org.jboss.system.ServiceMBeanSupport.pojoStart(ServiceMBeanSupport.java:216)
| 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 org.jboss.reflect.plugins.introspection.Re
|
I tried with jboss-4.2.3.GA and jboss-4.2.2.GA also but getting the similar error related to catalina property:
| 11:32:50,266 WARN [ServiceController] Problem starting service jboss.web:service=WebServer
| javax.management.AttributeNotFoundException: Cannot find attribute catalinaHome
| at org.apache.tomcat.util.modeler.ManagedBean.getSetter(ManagedBean.java:531)
| at org.apache.tomcat.util.modeler.BaseModelMBean.setAttribute(BaseModelMBean.java:407)
| at org.jboss.mx.server.RawDynamicInvoker.setAttribute(RawDynamicInvoker.java:70)
| at org.jboss.mx.server.MBeanServerImpl.setAttribute(MBeanServerImpl.java:608)
| at org.jboss.web.tomcat.service.JBossWeb.startService(JBossWeb.java:423)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatche
|
Can someone please help me to fix this issue. Thanks in advance.
Thanks,
Sanjay
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4200704#4200704
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4200704
17 years, 3 months