[Installation, Configuration & Deployment] - Problems with JBoss deployment
by ppantazis
Hi all, new to JBoss which we are currently considering as a solution. I have an installation of JBoss 4.0.5GA with JDK1.5.0 update 11 installed. During server startup I am getting a collection of errors which In would like to receive some help with if at all possible. Bellow a segment of these errors. Since these log messages can be rather long, I am not quite sure if I should attach the entire thing here. I would rather start with what I consider a few key segments and go from there:
run.sh: Missing file: /lib/tools.jar
run.sh: Unexpected results may occur. Make sure JAVA_HOME points to a JDK and not a JRE.
=========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /opt/jboss-4.0.5.GA
JAVA: java
JAVA_OPTS: -Dprogram.name=run.sh -server -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcIn
terval=3600000
CLASSPATH: /opt/jboss-4.0.5.GA/bin/run.jar:/lib/tools.jar
=========================================================================
22:32:27,354 WARN [ServiceController] Problem starting service jboss:service=invoker,type=http
java.net.UnknownHostException: linux: linux
at java.net.InetAddress.getLocalHost(InetAddress.java:1308)
at org.jboss.invocation.http.server.HttpInvoker.checkInvokerURL(HttpInvoker.java:204)
at org.jboss.invocation.http.server.HttpInvoker.startService(HttpInvoker.java:101)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
at sun.reflect.GeneratedMethodAccessor2.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(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
at $Proxy0.start(Unknown Source)
-------------------------------------------------------
22:32:27,369 WARN [ServiceController] Problem starting service jboss:service=invoker,type=http,target=Naming
java.net.UnknownHostException: linux: linux
at java.net.InetAddress.getLocalHost(InetAddress.java:1308)
at org.jboss.invocation.http.server.HttpProxyFactory.checkInvokerURL(HttpProxyFactory.java:274)
at org.jboss.invocation.http.server.HttpProxyFactory.createInvoker(HttpProxyFactory.java:256)
at org.jboss.invocation.http.server.HttpProxyFactory.startService(HttpProxyFactory.java:195)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:196)
--------------------------------------------
22:32:33,606 ERROR [ServiceEndpointManager] Cannot map host: 0.0.0.0
java.net.UnknownHostException: linux: linux
at java.net.InetAddress.getLocalHost(InetAddress.java:1308)
at org.jboss.ws.server.ServiceEndpointManager.setWebServiceHost(ServiceEndpointManager.java:128)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
------------------------------------------------------------------------
--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: jboss:service=invoker,type=http
State: FAILED
Reason: java.net.UnknownHostException: linux: linux
ObjectName: jboss:service=invoker,type=http,target=Naming
State: FAILED
Reason: java.net.UnknownHostException: linux: linux
ObjectName: jboss.mq:service=InvocationLayer,type=HTTP
State: FAILED
Reason: java.net.UnknownHostException: linux: linux
I Depend On:
jboss.mq:service=Invoker
jboss.web:service=WebServer
ObjectName: jboss:service=invoker,type=http,target=Naming,readonly=true
State: FAILED
Reason: java.net.UnknownHostException: linux: linux
------------------------------------------------------------------
In the end:
22:42:36,651 INFO [Server] Shutdown complete
Shutdown complete
help is appreciated.
Paul
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4034570#4034570
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4034570
19 years
[Clustering/JBoss] - Re: Cannot persist replicated EntityBeans
by bstansberry@jboss.com
The CacheLoader discussed on the link you posted is not meant to be used with EJB entity caching. A CacheLoader allows the cache to maintain a persistent form of some or all of the data the cache is managing. In the case of entity caching, having the cache do this is redundant; the underlying database from which the entities come is already a persistent store.
As to why you're still seeing queries, that's hard to say. Some possibilities:
1) The queries are not of the simple 'select record from table where primary_key = ?' type. In that case Hibernate will be executing queries to determine the PK of entities that match your requirements, and then will either get then entity from the cache or from the DB. (Note: you can also configure the EntityManager to cache the results of such queries.)
2) Entities are being evicted from the cache to save memory (it has an eviction policy configure). If the entity is evicted, the EntityManager will have to go back to the DB.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4034557#4034557
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4034557
19 years