[Installation, Configuration & DEPLOYMENT] - Running JBoss in Eclipse (in Linux)
by a_alam
Hi,
I can run JBOSS from Eclipse as a root, but not as a user.
JBOSS_HOME=/opt/jboss-4.2.3.GA
When I run JBoss in Eclipse as a normal user, I get the following error:
01:10:43,507 INFO [Server] Starting JBoss (MX MicroKernel)...
01:10:43,520 INFO [Server] Release ID: JBoss [Trinity] 4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181417)
01:10:43,521 INFO [Server] Home Dir: /opt/jboss-4.2.3.GA
01:10:43,521 INFO [Server] Home URL: file:/opt/jboss-4.2.3.GA/
01:10:43,522 INFO [Server] Patch URL: null
01:10:43,523 INFO [Server] Server Name: default
01:10:43,523 INFO [Server] Server Home Dir: /opt/jboss-4.2.3.GA/server/default
01:10:43,523 INFO [Server] Server Home URL: file:/opt/jboss-4.2.3.GA/server/default/
01:10:43,523 INFO [Server] Server Log Dir: /opt/jboss-4.2.3.GA/server/default/log
01:10:43,524 INFO [Server] Server Temp Dir: /opt/jboss-4.2.3.GA/server/default/tmp
01:10:43,524 INFO [Server] Root Deployment Filename: jboss-service.xml
01:10:43,979 ERROR [BasicMBeanRegistry] Unexpected Exception:
java.lang.ClassCastException: [[B
at java.net.InetAddress.getLocalHost(InetAddress.java:1312)
at javax.management.MBeanServerDelegate.getMBeanServerId(MBeanServerDelegate.java:71)
at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:245)
at org.jboss.mx.server.MBeanServerImpl.(MBeanServerImpl.java:215)
at org.jboss.mx.server.MBeanServerBuilderImpl.newMBeanServer(MBeanServerBuilderImpl.java:71)
at javax.management.MBeanServerFactory.newMBeanServer(MBeanServerFactory.java:310)
at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:213)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:420)
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:619)
Failed to boot JBoss:
java.lang.RuntimeException: Cannot create MBeanServer
at org.jboss.mx.server.MBeanServerImpl.(MBeanServerImpl.java:239)
at org.jboss.mx.server.MBeanServerBuilderImpl.newMBeanServer(MBeanServerBuilderImpl.java:71)
at javax.management.MBeanServerFactory.newMBeanServer(MBeanServerFactory.java:310)
at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:213)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:420)
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:619)
Caused by: javax.management.NotCompliantMBeanException: Cannot register MBean: JMImplementation:type=MBeanServerDelegate
at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:314)
at org.jboss.mx.server.MBeanServerImpl.(MBeanServerImpl.java:215)
... 8 more
Caused by: java.lang.ClassCastException: [[B
at java.net.InetAddress.getLocalHost(InetAddress.java:1312)
at javax.management.MBeanServerDelegate.getMBeanServerId(MBeanServerDelegate.java:71)
at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:245)
... 9 more
I also tried to give the user all the rights 777 for the directory /opt, but no success!
Does some one have the same problem or have a solution?
cheers
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4169987#4169987
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4169987
17 years, 11 months
[JBoss Messaging] - Re: Jboss JMS error - help needed
by ravichittari
The standard stuff that comes with jboss isntall. Below are two relevant params for hsqldb-ds.xml
<!-- The minimum connections in a pool/sub-pool. Pools are lazily constructed on first use -->
<min-pool-size>5</min-pool-size>
<!-- The maximum connections in a pool/sub-pool -->
<max-pool-size>20</max-pool-size>
For jms-ds.xml, again standard stuff
<tx-connection-factory>
<jndi-name>JmsXA</jndi-name>
<xa-transaction/>
<rar-name>jms-ra.rar</rar-name>
<connection-definition>org.jboss.resource.adapter.jms.JmsConnectionFactory</connection-definition>
<config-property name="SessionDefaultType" type="java.lang.String">javax.jms.Topic</config-property>
<config-property name="JmsProviderAdapterJNDI" type="java.lang.String">java:/DefaultJMSProvider</config-property>
<max-pool-size>20</max-pool-size>
<security-domain-and-application>JmsXARealm</security-domain-and-application>
</tx-connection-factory>
My suspicion is that the max pool size in tx-connection-factory defined in jms-ds.xml is low for the txns I am handling. Hence getting this error.
But, want to see if anyone else has run into this issue.
Would be nice if Jboss wiki has some good pointers to this topic.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4169984#4169984
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4169984
17 years, 11 months
[Clustering/JBoss] - Clustering in a distributed system
by andrew.henderson
I am trying to determine if JBoss can help me in my current situation. I have servers in two different geographic locations linked by a corporate WAN. I would like both application servers to share configuration information and configuration data, but I would like to regulate which node is being used so that all requests from location A go to location A's node and location B's requests go to the node at location B. The objective behind this is two fold, first the performance will be higher if not bogged down by the WAN and second, it is preferable not to send the data that is actually being passed, processed and returned across the WAN for security reasons.
Can my situation be resolved using Jboss clustering or some other feature of JBoss?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4169964#4169964
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4169964
17 years, 11 months