The getting started guide is pretty weak on how to setup JBoss as a service on 
Linux. I'm an experienced UNIX admin and i'm still having issues getting it to 
work. Thanks to doing searches in here i'm making progress but here is where 
i'm at..

first downloaded j2sdk1.4.2_06 for linux as rpm and installed..
added symbolic link /usr/bin/java -> /usr/java/j2sdk1.4.2_06/bin/java

untar'd JBoss 4.0.1 to /usr/local/
created symbolic link from /usr/local/jboss to /usr/local/jboss-4.0.1
chown jboss.jboss on /usr/local/jboss directory structure
created jboss user, group, and set password
copied jboss_init_redhat.sh to /etc/init.d/jboss
chkconfig --add jboss
edited /etc/init.d/jboss and changed:
1. added JBOSS_CONSOLE to /home/jboss/jboss.log
2. added JAVA_HOME to /usr/java/j2sdk1.4.2_06/
touch /home/jboss/jboss.log
chmod 777 /home/jboss/jboss.log

Those last two steps i did after noticing errors during startup that it 
couldn't write to JBOSS_CONSOLE. I looked in /home/jboss and found the file 
with 0 bytes with ownership root.root. Interesting.. the init script creates 
the file as root.root but then tries to write to it as user jboss. Kind of 
broken if u ask me..

Anyways, i can start it find if i go to /usr/bin/jboss-4.0.1/bin and run.sh. I 
get no warnings, errors, or other exceptions. I see the microkernel note as i 
expect and can shut it down via ctrl-C. All is good..

except..

service jboss start produces different results. . I get some exceptions and 
never see the microkernel message..

exceptions:

18:17:26,207 INFO  [STDOUT] Loading properties file: resourceName = 
'/org/exolab/castor/castor.properties' fileName = 'castor.properties'
18:17:26,630 WARN  [TrapEmitter] Error compiling monitoring manager #0
java.net.BindException: Cannot assign requested address
        at java.net.PlainDatagramSocketImpl.bind(Native Method)
        at java.net.DatagramSocket.bind(DatagramSocket.java:368)
        at java.net.DatagramSocket.(DatagramSocket.java:210)
        at java.net.DatagramSocket.(DatagramSocket.java:261)
        at org.opennms.protocols.snmp.SnmpPortal.(SnmpPortal.java:256)
        at org.opennms.protocols.snmp.SnmpPortal.(SnmpPortal.java:227)
        at org.opennms.protocols.snmp.SnmpSession.(SnmpSession.java:747)


(skipping some of it)

18:17:26,765 INFO  [SnmpAgentService] SNMP agent going active
18:17:26,789 ERROR [TrapEmitter] SNMP send error for localhost/127.0.0.1:1162: 
<java.lang.NullPointerException>
18:17:28,229 INFO  [DefaultPartition] Initializing
18:17:28,446 ERROR [JChannel] exception: java.lang.Exception: exception caused 
by UDP.start(): java.lang.Exception: UDP.createSockets(): cannot list on any 
port in range 0-1
18:17:28,447 ERROR [ClusterPartition] Starting failed 
jboss:service=DefaultPartition
ChannelException: java.lang.Exception: exception caused by UDP.start(): 
java.lang.Exception: UDP.createSockets(): cannot list on any port in range 0-1
        at org.jgroups.JChannel.connect(JChannel.java:328)
        at 
org.jboss.ha.framework.server.ClusterPartition.startService(ClusterPartition.java:297)
        at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:272)
        at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:222)
        at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)

(skipping some)

18:17:28,451 WARN  [ServiceController] Problem starting service 
jboss:service=DefaultPartition
ChannelException: java.lang.Exception: exception caused by UDP.start(): 
java.lang.Exception: UDP.createSockets(): cannot list on any port in range 0-1
        at org.jgroups.JChannel.connect(JChannel.java:328)
        at 
org.jboss.ha.framework.server.ClusterPartition.startService(ClusterPartition.java:297)
        at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:272)
        at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:222)
        at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)

(skipping some)

18:17:28,789 INFO  [STDOUT] [ jacorb.home unset! Will use '.' ]
18:17:28,789 INFO  [STDOUT] [ File ./jacorb.properties for configuration jacorb 
not found ]
18:17:29,134 INFO  [interceptors] InterceptorManager started with 2 SIs, 2 CIs 
and 4 IORIs
18:17:29,368 INFO  [orb] ORB run
18:17:29,532 INFO  [CorbaNamingService] Naming: 
[IOR:000000000000002B49444C3A6F6D672E6F72672F43.....

Thats it.. It seems to throw exceptions related to SNMP and UDP sockets. Errors 
i don't see if i run run.sh manually.

Appreciate any thoughts/directions on what i'm missing. It would be even more 
helpful if the getting started guide actually got me started :)

Thanks,
Gerald







View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3860520#3860520

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3860520


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to