Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

JBoss -5.0.0 installation fails

 
Ranch Hand
Posts: 165
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm trying the installation of JBoss for first time on my system.I download a jboss-5.0.0.Beta1.zip,unzippd it in C:\ directory and tried to configure with MyEclipse through preferences.J2sdk1.5 is installed on my system.With everything done,on startup i get the below error:

16:55:52,281 INFO [ServerImpl] Starting JBoss (Microcontainer)...
16:55:52,281 INFO [ServerImpl] Release ID: JBoss [Morpheus] 5.0.0.Beta1 (build: CVSTag=https://svn.jboss.org/repos/jbossas/tags/JBoss_5_0_0_Beta1 date=200611191849)
16:55:52,281 INFO [ServerImpl] Home Dir: C:\jboss-5.0.0
16:55:52,281 INFO [ServerImpl] Home URL: file:/C:/jboss-5.0.0/
16:55:52,281 INFO [ServerImpl] Library URL: file:/C:/jboss-5.0.0/lib/
16:55:52,281 INFO [ServerImpl] Patch URL: null
16:55:52,296 INFO [ServerImpl] Server Name: default
16:55:52,296 INFO [ServerImpl] Server Home Dir: C:\jboss-5.0.0\server\default
16:55:52,328 INFO [ServerImpl] Server Home URL: file:/C:/jboss-5.0.0/server/default/
16:55:52,328 INFO [ServerImpl] Server Data Dir: C:\jboss-5.0.0\server\default\data
16:55:52,328 INFO [ServerImpl] Server Temp Dir: C:\jboss-5.0.0\server\default\tmp
16:55:52,328 INFO [ServerImpl] Server Config URL: file:/C:/jboss-5.0.0/server/default/conf/
16:55:52,328 INFO [ServerImpl] Server Library URL: file:/C:/jboss-5.0.0/server/default/lib/
16:55:52,328 INFO [ServerImpl] Root Deployment Filename: jboss-service.xml
16:55:52,343 INFO [ServerImpl] Starting Microcontainer, bootstrapURL=file:/C:/jboss-5.0.0/server/default/conf/bootstrap-beans.xml
Failed to boot JBoss:
java.lang.RuntimeException: Unable to create a KernelInitializer based on the specified KernelConfig
at org.jboss.kernel.KernelFactory.createKernelInitializer(KernelFactory.java:156)
at org.jboss.kernel.KernelFactory.assembleNewKernel(KernelFactory.java:99)
at org.jboss.kernel.KernelFactory.newInstance(KernelFactory.java:67)
at org.jboss.kernel.plugins.bootstrap.AbstractBootstrap.bootstrap(AbstractBootstrap.java:120)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.bootstrap(ProfileServiceBootstrap.java:186)
at org.jboss.kernel.plugins.bootstrap.AbstractBootstrap.run(AbstractBootstrap.java:89)
at org.jboss.system.server.profileservice.ServerImpl.doStart(ServerImpl.java:401)
at org.jboss.system.server.profileservice.ServerImpl.start(ServerImpl.java:340)
at org.jboss.Main.boot(Main.java:210)
at org.jboss.Main$1.run(Main.java:508)
at java.lang.Thread.run(Thread.java:566)
Caused by: java.lang.NoSuchMethodError: java.lang.Class.isAnnotation()Z
at org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl.instantiate(IntrospectionTypeInfoFactoryImpl.java:259)
at org.jboss.util.collection.WeakClassCache.get(WeakClassCache.java:66)
at org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl.getTypeInfo(IntrospectionTypeInfoFactoryImpl.java:233)
at org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl.getTypeInfo(IntrospectionTypeInfoFactoryImpl.java:244)
at org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactory.getTypeInfo(IntrospectionTypeInfoFactory.java:47)
at org.jboss.classadapter.plugins.BasicClassAdapterFactory.getClassAdapter(BasicClassAdapterFactory.java:61)
at org.jboss.config.plugins.AbstractConfiguration.getBeanInfo(AbstractConfiguration.java:72)
at org.jboss.kernel.plugins.config.AbstractKernelConfig.getBeanInfo(AbstractKernelConfig.java:55)
at org.jboss.kernel.plugins.config.property.PropertyKernelConfig.getImplementation(PropertyKernelConfig.java:157)
at org.jboss.kernel.plugins.config.property.PropertyKernelConfig.createKernelInitializer(PropertyKernelConfig.java:118)
at org.jboss.kernel.KernelFactory.createKernelInitializer(KernelFactory.java:150)
... 10 more
16:55:52,468 INFO [ServerImpl] JBoss SHUTDOWN
16:55:52,468 INFO [ServerImpl] Undeploying all packages
Shutting down Microcontainer
16:55:52,468 INFO [ServerImpl] Shutdown complete
Shutdown complete
Halting VM




What steps I need to follow? let me know.
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Caused by: java.lang.NoSuchMethodError: java.lang.Class.isAnnotation()



Are you sure you have set JAVA_HOME to JDK 1.5? What do the following commands output:





By the way, why are you using JBoss-5 Beta1? There is Beta4 which is available for download. Also, if you don't need any specific features of JBoss-5, then you can use the latest stable version JBoss-4.2.2 GA.
 
Phillipe Rodrigues
Ranch Hand
Posts: 165
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
With the command java -version execution I get:

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\aaa>cd\

C:\>java -version
java version "1.5.0-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta-b32c)
Java HotSpot(TM) Client VM (build 1.5.0-beta-b32c, mixed mode)

C:\>



Also I made samo changes in the run.bat file wherein I explicitly mention
the java home as below:

if not "%JAVA_HOME%" == "C:\Program Files\Java\j2sdk1.5.0" goto ADD_TOOLS


with these above changes,I get the error below when clicked on run.bat

JAVA_HOME is not set. Unexpected results may occur.
Set JAVA_HOME to the directory of your local JDK to avoid this message.
===============================================================================

JBoss Bootstrap Environment

JBOSS_HOME: C:\jboss-5.0.0\bin\\..

JAVA: 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:\Program Files\Java\j2sdk1.5.0\lib\tools.jar;C:\jboss-5.0.0\bin\\
run.jar

===============================================================================

Error: no `server' JVM at `C:\Program Files\Java\j2re1.5.0\bin\server\jvm.dll'.
Press any key to continue . . .



Now I mention the below path in run.bat file:

if not "%JAVA_HOME%" == "C:\Program Files\Java\j2sdk1.5.0\jre" goto ADD_TOOLS



For which I get error:

===============================================================================

JBoss Bootstrap Environment

JBOSS_HOME: C:\jboss-5.0.0\bin\\..

JAVA: C:\Program Files\Java\j2sdk1.5.0\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:\Program Files\Java\j2sdk1.5.0\lib\tools.jar;C:\jboss-5.0.0\bin\\
run.jar

===============================================================================

17:45:14,078 INFO [ServerImpl] Starting JBoss (Microcontainer)...
17:45:14,078 INFO [ServerImpl] Release ID: JBoss [Morpheus] 5.0.0.Beta1 (build:
CVSTag=https://svn.jboss.org/repos/jbossas/tags/JBoss_5_0_0_Beta1 date=20061119
1849)
17:45:14,078 INFO [ServerImpl] Home Dir: C:\jboss-5.0.0
17:45:14,078 INFO [ServerImpl] Home URL: file:/C:/jboss-5.0.0/
17:45:14,078 INFO [ServerImpl] Library URL: file:/C:/jboss-5.0.0/lib/
17:45:14,078 INFO [ServerImpl] Patch URL: null
17:45:14,078 INFO [ServerImpl] Server Name: default
17:45:14,093 INFO [ServerImpl] Server Home Dir: C:\jboss-5.0.0\server\default
17:45:14,093 INFO [ServerImpl] Server Home URL: file:/C:/jboss-5.0.0/server/def
ault/
17:45:14,093 INFO [ServerImpl] Server Data Dir: C:\jboss-5.0.0\server\default\d
ata
17:45:14,093 INFO [ServerImpl] Server Temp Dir: C:\jboss-5.0.0\server\default\t
mp
17:45:14,093 INFO [ServerImpl] Server Config URL: file:/C:/jboss-5.0.0/server/d
efault/conf/
17:45:14,093 INFO [ServerImpl] Server Library URL: file:/C:/jboss-5.0.0/server/
default/lib/
17:45:14,093 INFO [ServerImpl] Root Deployment Filename: jboss-service.xml
17:45:14,109 INFO [ServerImpl] Starting Microcontainer, bootstrapURL=file:/C:/j
boss-5.0.0/server/default/conf/bootstrap-beans.xml
Failed to boot JBoss:
java.lang.RuntimeException: Unable to create a KernelInitializer based on the sp
ecified KernelConfig
at org.jboss.kernel.KernelFactory.createKernelInitializer(KernelFactory.
java:156)
at org.jboss.kernel.KernelFactory.assembleNewKernel(KernelFactory.java:9
9)
at org.jboss.kernel.KernelFactory.newInstance(KernelFactory.java:67)
at org.jboss.kernel.plugins.bootstrap.AbstractBootstrap.bootstrap(Abstra
ctBootstrap.java:120)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.bootst
rap(ProfileServiceBootstrap.java:186)
at org.jboss.kernel.plugins.bootstrap.AbstractBootstrap.run(AbstractBoot
strap.java:89)
at org.jboss.system.server.profileservice.ServerImpl.doStart(ServerImpl.
java:401)
at org.jboss.system.server.profileservice.ServerImpl.start(ServerImpl.ja
va:340)
at org.jboss.Main.boot(Main.java:210)
at org.jboss.Main$1.run(Main.java:508)
at java.lang.Thread.run(Thread.java:566)
Caused by: java.lang.NoSuchMethodError: java.lang.Class.isAnnotation()Z
at org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryI
mpl.instantiate(IntrospectionTypeInfoFactoryImpl.java:259)
at org.jboss.util.collection.WeakClassCache.get(WeakClassCache.java:66)
at org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryI
mpl.getTypeInfo(IntrospectionTypeInfoFactoryImpl.java:233)
at org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryI
mpl.getTypeInfo(IntrospectionTypeInfoFactoryImpl.java:244)
at org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactory.
getTypeInfo(IntrospectionTypeInfoFactory.java:47)
at org.jboss.classadapter.plugins.BasicClassAdapterFactory.getClassAdapt
er(BasicClassAdapterFactory.java:61)
at org.jboss.config.plugins.AbstractConfiguration.getBeanInfo(AbstractCo
nfiguration.java:72)
at org.jboss.kernel.plugins.config.AbstractKernelConfig.getBeanInfo(Abst
ractKernelConfig.java:55)
at org.jboss.kernel.plugins.config.property.PropertyKernelConfig.getImpl
ementation(PropertyKernelConfig.java:157)
at org.jboss.kernel.plugins.config.property.PropertyKernelConfig.createK
ernelInitializer(PropertyKernelConfig.java:118)
at org.jboss.kernel.KernelFactory.createKernelInitializer(KernelFactory.
java:150)
... 10 more
17:45:14,187 INFO [ServerImpl] JBoss SHUTDOWN
17:45:14,187 INFO [ServerImpl] Undeploying all packages
Shutting down Microcontainer
17:45:14,187 INFO [ServerImpl] Shutdown complete
Shutdown complete
Halting VM
Press any key to continue . . .



How to proceed further?
 
Jaikiran Pai
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

java version "1.5.0-beta"



You are using a Beta version of Java. Please download the latest version of JDK (i guess it's JDK 5.0 Update 15).

%JAVA_HOME% = C:\Program Files\Java\j2sdk1.5.0



Always remember not to install JDK/JRE or Java applications (including JBoss) in folders that have a space in its path name. You are better off installing the JDK in maybe C:\Java.

And finally, do you really need JBoss-5.0 Beta, when there's a stable 4.2.2 GA? If yes, then why don't you use JBoss-5 Beta 4.
 
Jaikiran Pai
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rakesh,

I don't see any Portal or Portlet related question in this. This appears to be a JBoss installation question. I'll ask the moderators to move this to our JBoss forum. If you have anything specific to ask about Portal/Portlet, please open a new thread in this forum.
 
Phillipe Rodrigues
Ranch Hand
Posts: 165
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
As suggested,I installed jboss-4.2.2.GA on my system.When i click on the run.bay file i get the below error:

===============================================================================

JBoss Bootstrap Environment

JBOSS_HOME: D:\SCJP\jboss\jboss-4.2.2.GA

JAVA: C:\j2sdk1.4.2_12\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:\j2sdk1.4.2_12\lib\tools.jar;D:\SCJP\jboss\jboss-4.2.2.GA\bin\run
.jar

===============================================================================

java.lang.UnsupportedClassVersionError: javax/management/NotificationEmitter (Un
supported major.minor version 49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
3)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
3)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at org.jboss.system.server.ServerLoader.createServer(ServerLoader.java:2
86)
at org.jboss.system.server.ServerLoader.load(ServerLoader.java:268)
at org.jboss.Main.boot(Main.java:194)
at org.jboss.Main$1.run(Main.java:508)
at java.lang.Thread.run(Thread.java:534)
Press any key to continue . . .



Let me know what jdk version is jboss4.2.2 compatible?
 
Jaikiran Pai
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

JAVA: C:\j2sdk1.4.2_12\bin\java



You need JDK 1.5 for JBoss-4.2.2
 
Phillipe Rodrigues
Ranch Hand
Posts: 165
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
How to stop the JBoss server.
 
Jaikiran Pai
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use the shutdown.bat file present in %JBOSS_HOME%\bin folder
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic