[jboss-user] [Beginners Corner] - Re: java.lang.NoClassDefFoundError exception when starting 4

Vijay_javaoca do-not-reply at jboss.com
Fri Sep 19 07:31:08 EDT 2008


I have downloaded the latest version jboss Application server (jboss-4.2.3.GA-jdk6.zip) and unzipped.

But when I start the server I see many errors stack trace on the server console, specified below.

C:\>DevEnv\jboss-4.2.3.GA1\bin\run.bat -c all

  JBoss Bootstrap Environment

  JBOSS_HOME: C:\DevEnv\jboss-4.2.3.GA1

  JAVA: C:\Java\jdk1.5.0_16\bin\java

  JAVA_OPTS:  -Dprogram.name=run.bat -server -Xms128m -Xmx512m -Dsun.rmi.dgc.cli
ent.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000

  CLASSPATH: C:\Java\jdk1.5.0_16\lib\tools.jar;C:\DevEnv\jboss-4.2.3.GA1\bin\run


12:07:42,609 INFO  [Server] Starting JBoss (MX MicroKernel)...
12:07:42,609 INFO  [Server] Release ID: JBoss [Trinity] 4.2.3.GA (build: SVNTag=
JBoss_4_2_3_GA date=200807181439)
12:07:42,609 INFO  [Server] Home Dir: C:\DevEnv\jboss-4.2.3.GA1
12:07:42,609 INFO  [Server] Home URL: file:/C:/DevEnv/jboss-4.2.3.GA1/
12:07:42,609 INFO  [Server] Patch URL: null
12:07:42,609 INFO  [Server] Server Name: all
12:07:42,609 INFO  [Server] Server Home Dir: C:\DevEnv\jboss-4.2.3.GA1\server\al
12:07:42,609 INFO  [Server] Server Home URL: file:/C:/DevEnv/jboss-4.2.3.GA1/ser
12:07:42,609 INFO  [Server] Server Log Dir: C:\DevEnv\jboss-4.2.3.GA1\server\all
12:07:42,609 INFO  [Server] Server Temp Dir: C:\DevEnv\jboss-4.2.3.GA1\server\al
12:07:42,609 INFO  [Server] Root Deployment Filename: jboss-service.xml
12:07:43,171 INFO  [ServerInfo] Java version: 1.5.0_16,Sun Microsystems Inc.
12:07:43,171 INFO  [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.5.0_16-b02
,Sun Microsystems Inc.
12:07:43,171 INFO  [ServerInfo] OS-System: Windows XP 5.1,x86
12:07:44,500 INFO  [Server] Core system initialized
12:07:50,125 INFO  [WebService] Using RMI server codebase:
12:07:50,125 INFO  [Log4jService$URLWatchTimerTask] Configuring from URL: resour
12:07:51,093 INFO  [TransactionManagerService] JBossTS Transaction Service (JTA
version) - JBoss Inc.
12:07:51,093 INFO  [TransactionManagerService] Setting up property manager MBean
 and JMX layer
12:07:51,531 INFO  [TransactionManagerService] Starting recovery manager
12:07:51,703 INFO  [TransactionManagerService] Recovery manager started
12:07:51,703 INFO  [TransactionManagerService] Binding TransactionManager JNDI R
12:07:58,687 INFO  [EJB3Deployer] Starting java:comp multiplexer
12:08:01,578 INFO  [STDOUT]
GMS: address is
12:08:03,609 INFO  [TreeCache] viewAccepted(): [|0] [
12:08:03,640 INFO  [TreeCache] TreeCache local address is
12:08:03,640 INFO  [TreeCache] State could not be retrieved (we are the first me
mber in group)
12:08:03,640 INFO  [TreeCache] parseConfig(): PojoCacheConfig is empty
12:08:04,828 ERROR [MainDeployer] Could not initialise deployment: file:/C:/DevE
java.lang.NoClassDefFoundError: javax/ejb/Stateless
        at org.jboss.ejb3.EJB3Util.isStateless(EJB3Util.java:42)
        at org.jboss.ejb3.EJB3Deployer.hasEjbAnnotation(EJB3Deployer.java:219)
        at org.jboss.ejb3.EJB3Deployer.accepts(EJB3Deployer.java:271)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch

And once I try to access the URL http://localhost:8080/ I’m not getting any thing displayed. Even though I see this on  the server console:

12:12:52,859 INFO  [Http11Protocol] Starting Coyote HTTP/1.1 on http-
12:12:52,937 INFO  [AjpProtocol] Starting Coyote AJP/1.3 on ajp-
12:12:52,953 INFO  [Server] JBoss (MX MicroKernel) [4.2.3.GA (build: SVNTag=JBos
s_4_2_3_GA date=200807181439)] Started in 5m:10s:344ms

Can any one please help me out with a solution?

Many Thanks,
Vijay G

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

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

More information about the jboss-user mailing list