[Installation, Configuration & DEPLOYMENT] - Problem running Jboss 4.2.0 - Centos 5 OS
by fmi2
Hi there, i am trying to set up my development environment on a machine using Centos 5 OS. I've installed jboss-4.2.0 but I am having problems starting the server. The server starts up and then shuts down immediately , the output is as follows:-
| =========================================================================
|
| JBoss Bootstrap Environment
|
| JBOSS_HOME: /home/fmi2/jboss-4.2.0.GA
|
| JAVA: /opt/jdk1.5.0_14/bin/java
|
| JAVA_OPTS: -Dprogram.name=run.sh -server -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net.preferIPv4Stack=true
|
| CLASSPATH: /home/fmi2/jboss-4.2.0.GA/bin/run.jar:/opt/jdk1.5.0_14/lib/tools.jar
|
| =========================================================================
|
| 13:01:39,935 INFO [Server] Starting JBoss (MX MicroKernel)...
| 13:01:39,936 INFO [Server] Release ID: JBoss [Trinity] 4.2.0.GA (build: SVNTag=JBoss_4_2_0_GA date=200705111440)
| 13:01:39,938 INFO [Server] Home Dir: /home/fmi2/jboss-4.2.0.GA
| 13:01:39,938 INFO [Server] Home URL: file:/home/fmi2/jboss-4.2.0.GA/
| 13:01:39,939 INFO [Server] Patch URL: null
| 13:01:39,939 INFO [Server] Server Name: default
| 13:01:39,939 INFO [Server] Server Home Dir: /home/fmi2/jboss-4.2.0.GA/server/default
| 13:01:39,940 INFO [Server] Server Home URL: file:/home/fmi2/jboss-4.2.0.GA/server/default/
| 13:01:39,940 INFO [Server] Server Log Dir: /home/fmi2/jboss-4.2.0.GA/server/default/log
| 13:01:39,940 INFO [Server] Server Temp Dir: /home/fmi2/jboss-4.2.0.GA/server/default/tmp
| 13:01:39,941 INFO [Server] Root Deployment Filename: jboss-service.xml
| 13:01:40,341 INFO [ServerInfo] Java version: 1.5.0_14,Sun Microsystems Inc.
| 13:01:40,341 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.5.0_14-b03,Sun Microsystems Inc.
| 13:01:40,341 INFO [ServerInfo] OS-System: Linux 2.6.18-53.1.6.el5,i386
| 13:01:40,748 INFO [Server] Core system initialized
| 13:01:43,003 WARN [BasicMBeanRegistry] javax.management.MBeanRegistrationException: preRegister() failed: [ObjectName='jboss.remoting:service=NetworkRegistry', Class=org.jboss.remoting.network.NetworkRegistry (org.jboss.remoting.network.NetworkRegistry@9a8a68)]
| 13:01:43,064 ERROR [MainDeployer] Could not create deployment: file:/home/fmi2/jboss-4.2.0.GA/server/default/conf/jboss-service.xml
| org.jboss.deployment.DeploymentException: - nested throwable: (java.lang.reflect.InvocationTargetException)
| at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:196)
| at org.jboss.system.ServiceController.install(ServiceController.java:226)
| 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.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.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy4.install(Unknown Source)
| at org.jboss.deployment.SARDeployer.create(SARDeployer.java:249)
| at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
| 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.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy5.deploy(Unknown Source)
| at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
| at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
| at org.jboss.Main.boot(Main.java:200)
| at org.jboss.Main$1.run(Main.java:508)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: java.lang.reflect.InvocationTargetException
| at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1451)
| at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1350)
| at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:345)
| at org.jboss.system.ServiceCreator.install(ServiceCreator.java:157)
| at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:449)
| at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
| ... 36 more
| Caused by: javax.management.MBeanException
| at org.jboss.mx.interceptor.ReflectedDispatcher.handleInvocationExceptions(ReflectedDispatcher.java:180)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:163)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.server.MBeanServerImpl$3.run(MBeanServerImpl.java:1422)
| at java.security.AccessController.doPrivileged(Native Method)
| at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1417)
| ... 41 more
| Caused by: javax.management.MBeanRegistrationException: preRegister() failed: [ObjectName='jboss.remoting:service=NetworkRegistry', Class=org.jboss.remoting.network.NetworkRegistry (org.jboss.remoting.network.NetworkRegistry@9a8a68)]
| at org.jboss.mx.server.registry.BasicMBeanRegistry.invokePreRegister(BasicMBeanRegistry.java:713)
| at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:211)
| at sun.reflect.GeneratedMethodAccessor1.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)
| ... 51 more
| Caused by: java.lang.RuntimeException: Exception creating identity: dhcp-748-237: dhcp-748-237
| at org.jboss.remoting.ident.Identity.get(Identity.java:211)
| at org.jboss.remoting.network.NetworkRegistry.preRegister(NetworkRegistry.java:268)
| at org.jboss.mx.server.AbstractMBeanInvoker.invokePreRegister(AbstractMBeanInvoker.java:966)
| at org.jboss.mx.modelmbean.ModelMBeanInvoker.invokePreRegister(ModelMBeanInvoker.java:489)
| at org.jboss.mx.server.AbstractMBeanInvoker.preRegister(AbstractMBeanInvoker.java:654)
| at org.jboss.mx.server.registry.BasicMBeanRegistry.invokePreRegister(BasicMBeanRegistry.java:697)
| ... 56 more
| Failed to boot JBoss:
| org.jboss.deployment.DeploymentException: - nested throwable: (java.lang.reflect.InvocationTargetException)
| at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:196)
| at org.jboss.system.ServiceController.install(ServiceController.java:226)
| 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.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.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy4.install(Unknown Source)
| at org.jboss.deployment.SARDeployer.create(SARDeployer.java:249)
| at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
| 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.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy5.deploy(Unknown Source)
| at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
| at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
| at org.jboss.Main.boot(Main.java:200)
| at org.jboss.Main$1.run(Main.java:508)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: java.lang.reflect.InvocationTargetException
| at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1451)
| at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1350)
| at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:345)
| at org.jboss.system.ServiceCreator.install(ServiceCreator.java:157)
| at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:449)
| at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
| ... 36 more
| Caused by: javax.management.MBeanException
| at org.jboss.mx.interceptor.ReflectedDispatcher.handleInvocationExceptions(ReflectedDispatcher.java:180)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:163)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.server.MBeanServerImpl$3.run(MBeanServerImpl.java:1422)
| at java.security.AccessController.doPrivileged(Native Method)
| at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1417)
| ... 41 more
| Caused by: javax.management.MBeanRegistrationException: preRegister() failed: [ObjectName='jboss.remoting:service=NetworkRegistry', Class=org.jboss.remoting.network.NetworkRegistry (org.jboss.remoting.network.NetworkRegistry@9a8a68)]
| at org.jboss.mx.server.registry.BasicMBeanRegistry.invokePreRegister(BasicMBeanRegistry.java:713)
| at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:211)
| at sun.reflect.GeneratedMethodAccessor1.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)
| ... 51 more
| Caused by: java.lang.RuntimeException: Exception creating identity: dhcp-748-237: dhcp-748-237
| at org.jboss.remoting.ident.Identity.get(Identity.java:211)
| at org.jboss.remoting.network.NetworkRegistry.preRegister(NetworkRegistry.java:268)
| at org.jboss.mx.server.AbstractMBeanInvoker.invokePreRegister(AbstractMBeanInvoker.java:966)
| at org.jboss.mx.modelmbean.ModelMBeanInvoker.invokePreRegister(ModelMBeanInvoker.java:489)
| at org.jboss.mx.server.AbstractMBeanInvoker.preRegister(AbstractMBeanInvoker.java:654)
| at org.jboss.mx.server.registry.BasicMBeanRegistry.invokePreRegister(BasicMBeanRegistry.java:697)
| ... 56 more
| 13:01:43,137 INFO [Server] Runtime shutdown hook called, forceHalt: true
| 13:01:43,137 INFO [Server] JBoss SHUTDOWN: Undeploying all packages
| 13:01:43,142 INFO [Server] Shutdown complete
| Shutdown complete
| Halting VM
|
The problem seems to be with the jboss-service.xml, but i haven't got the foggiest idea what it is.
Any suggestion/guidance/solution would be greatly appreciated.
Thanks in advance.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4124174#4124174
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4124174
18 years, 3 months
[JBoss jBPM] - Re: how to define global variables for process in xml
by inxaoc
Ok! But I've posted here because you said that those forum is wrong! Did I make something wrong?
I have one more question!
Variables that are created in expression language in xml is accessible from processInstance.getContextInstance().getVariable("globalStatus")?
Like here:
| <process-definition xmlns="urn:jbpm.org:jpdl-3.2" name="test simple">
| <event type="process-start">
| <action name="action1">
| <script>
| <variable name='globalStatus' access='write' mapped-name='globalStatus'/>
| </script>
| </action>
| </event>
|
| <start-state name="start">
| <transition name="" to="node1"></transition>
| </start-state>
|
| <end-state name="end1"></end-state>
|
| <node name="node1">
| <event type="node-enter">
| <script>
| <expression>
| globalStatus='New';
| System.out.println("this script is entering node"+node+" "+globalStatus);
| </expression>
| </script>
| </event>
| <transition name="" to="end1"></transition>
| </node>
| </process-definition>
Or is there other way?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4124170#4124170
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4124170
18 years, 3 months
[Installation, Configuration & DEPLOYMENT] - deployment with many nodes
by kcbraunschweig
I've been running large clustered mod_perl applications for a few
years and now am about to be deploying a cluster of jboss application
servers for the first time. I've read through the general and clustering docs on labs.jboss.com.
1. With our mod_perl applications we mount a shared filesystem with apache and our mod_perl application code. Individual nodes write to individual filesystem locations for logs and that type of thing but the app code is shared. Is it possible or useful to use this model with jboss? Farm deployment seems great for tossing out new EAR files in a running cluster, but the nodes have to have a basic jboss install up and running for that to work. I'd like a way to not have to configure jboss separately for each node in the cluster. Can anyone describe a solution like this?
2. Can anyone verify what directories in the <jboss_home>/server// directory that jboss needs write access to to run the server instance? Obviously the log directory and likely the work directory. Anything else? All? Can the things that need to be written to be moved outside this tree?
3. Is there a way to relocate the server directory outside the <JBOSS_HOME> dir? Do the other directories besides server need to be writable to the running server? I would like to place <JBOSS_HOME> on a volume mounted read-only by all nodes in a cluster, but I don't know if this will work. If not, it could be installed locally in /usr/local/. Either way, I'd still need a way to move the server directory outside that tree to another shared NFS mount, but one that is writable obviously as this directory is
clearly written to during server operation. I'm hoping the server directory can be moved with something more graceful than replacing it with a symlink after install.
4. Taking suggestions or examples for how to plan for deployment of
code (is it really just new EAR files via deploy or farm deploy as our
dev claims or are the other server bits twiddled often?) as well as
configuration changes and other maintenance of a cluster of many nodes
to minimize administrative effort.
5. It looks like the JMX console provides a lot of data about the
state of a running cluster though I haven't gotten into all its
support uses yet. Any good docs for utilizing built in jboss features
for operations support of webapps? Is it advisable to run this console
on all nodes? Would it be better to use HA Singleton to run it on one
node only? Or potentially even run it only on a specific node that
does not serve customer traffic due to security or performance
concerns?
Thanks,
KC Braunschweig
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4124168#4124168
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4124168
18 years, 3 months