First, I am a complete novice with JBoss and Java. My task is to get a default configuration of JBoss up and running for use by another system that has its own applications. So I have minimal knowledge as yet of what I am doing.
I am running on SUSE 10.1 SP2 and have Sun JDK 1.5.0 Update 17 installed. I have done the basic unpack of jboss-4.2.3.GA to /usr/local. Below is the first small portion of the trace I see when running bin/run.sh. I am not including the whole thing since it is very long. Suffice it to say that I get a lot of error trace dumps like the below. The server appears to be running after startup but responds with a blank page to http://localhost:8080/jmx-console.
I am probably failing to do something simple but do not have a clue what. I would greatly appreciate any guidance on what is wrong.
JBoss Bootstrap Environment
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
11:35:05,349 INFO [Server] Starting JBoss (MX MicroKernel)...
11:35:05,350 INFO [Server] Release ID: JBoss [Trinity] 4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181439)
11:35:05,351 INFO [Server] Home Dir: /usr/local/jboss/jboss-4.2.3.GA
11:35:05,351 INFO [Server] Home URL: file:/usr/local/jboss/jboss-4.2.3.GA/
11:35:05,351 INFO [Server] Patch URL: null
11:35:05,351 INFO [Server] Server Name: default
11:35:05,351 INFO [Server] Server Home Dir: /usr/local/jboss/jboss-4.2.3.GA/server/default
11:35:05,352 INFO [Server] Server Home URL: file:/usr/local/jboss/jboss-4.2.3.GA/server/default/
11:35:05,352 INFO [Server] Server Log Dir: /usr/local/jboss/jboss-4.2.3.GA/server/default/log
11:35:05,352 INFO [Server] Server Temp Dir: /usr/local/jboss/jboss-4.2.3.GA/server/default/tmp
11:35:05,352 INFO [Server] Root Deployment Filename: jboss-service.xml
11:35:05,540 INFO [ServerInfo] Java version: 1.5.0_17,Sun Microsystems Inc.
11:35:05,542 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.5.0_17-b04,Sun Microsystems Inc.
11:35:05,544 INFO [ServerInfo] OS-System: Linux 188.8.131.52-0.21-smp,i386
11:35:05,871 INFO [Server] Core system initialized
11:35:07,699 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8083/
11:35:07,701 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:jboss-log4j.xml
11:35:08,388 INFO [TransactionManagerService] JBossTS Transaction Service (JTA version) - JBoss Inc.
11:35:08,388 INFO [TransactionManagerService] Setting up property manager MBean and JMX layer
11:35:08,593 INFO [TransactionManagerService] Starting recovery manager
11:35:08,647 INFO [TransactionManagerService] Recovery manager started
11:35:08,649 INFO [TransactionManagerService] Binding TransactionManager JNDI Reference
11:35:10,806 INFO [EJB3Deployer] Starting java:comp multiplexer
11:35:11,357 ERROR [MainDeployer] Could not initialise deployment: file:/usr/local/jboss/jboss-4.2.3.GA/server/default/deploy/jbossws.sar/
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at $Proxy34.accepts(Unknown Source)
Are you running it as root? Does the /usr/local/jboss directory, and it subdirectories and files, have full access for the account being used to run it?
Yes, I am running as root and all the files are owned by root.
Why didn't I think of this before? There are two birnary downloads for 4.2.3 - one is for JDK 5 the other for JDK6. I think you have the one for JDK6 (check the name of the zip file, does it have 'jdk6' in the name?) Are you using the right one?
The zip file I am using is jboss-4.2.3.GA.zip. However, I was just informed by support for the vendor whose application depends on JBOSS that I must run version 4.0.5. So I will download the jboss-4.0.5.GA.zip file. Will that work OK with the JDK 1.5.0_17 that I currently have?
I suspect this will not make a difference in my problem. I do agree that it must be something like what you suspect. Something with my SUSE setup or configuration maybe.
So I will download the jboss-4.0.5.GA.zip file. Will that work OK with the JDK 1.5.0_17 that I currently have?
Yes, should work fine.
I do agree that it must be something like what you suspect.
Definitely the issue that Peter pointed out, you are using an incorrect JBossAS download (one meant for JDK6) against JDK5. See this http://www.jboss.org/community/docs/DOC-12933
Thanks to all of you for help. The odd thing about 4.2.3 is that the included notes document says that it will work with either JDK5 or JDK6. However, I do not see any indication of whether you must do some configuration to run it with either. I do not find but one download for 4.2.3.
However, as I mentioned before, the third part software I am trying to install (TeamCenter PDM system from UG/Siemens) actually requires the specific version 4.0.5. That seems to start up without errors now.
Now I just need to learn how to configure it ;-}