aspose file tools*
The moose likes JBoss/WildFly and the fly likes JBOSS 6.0 Error While Starting Up.. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "JBOSS 6.0 Error While Starting Up.." Watch "JBOSS 6.0 Error While Starting Up.." New topic
Author

JBOSS 6.0 Error While Starting Up..

Somnath Mallick
Ranch Hand

Joined: Mar 04, 2009
Posts: 477
Hi Everyone,

I am using JBOSS 6.0 GA and I have JDK 1.6 installed on it. But the problem is when I boot up the server i some exceptions.
16:55:53,346 INFO [AbstractJBossASServerBase] Server Configuration:



Could you please tell me what's the problem???
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10112
    
165

Somnath Mallick wrote:Hi Everyone,

I am using JBOSS 6.0 GA

6.0 GA is not out yet. What you are using is 6.0.0 M3.


16:55:57,566 INFO [ServerInfo] Java version: 1.6.0,Sun Microsystems Inc.
16:55:57,582 INFO [ServerInfo] Java Runtime: Java(TM) SE Runtime Environment (build 1.6.0-b105)
16:55:57,582 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.6.0-b105,Sun Microsystems Inc.
16:55:57,582 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
16:55:57,582 INFO [ServerInfo] VM arguments: -Dprogram.name=run.bat -Xms128m -Xmx512m -XX:MaxPermSize=256m -Dfile.encoding=Cp1252
16:55:57,708 INFO [JMXKernel] Legacy JMX core initialized
16:56:17,804 ERROR [AbstractKernelController] Error installing to Create: name=ManagedConnectionFactoryParserDeployer state=Configured: java.lang.LinkageError: JAXB 2.1 API is being loaded from the bootstrap classloader, but this RI (from vfs:/E:/jboss-6.0.0.20100429-M3/lib/jaxb-impl.jar/com/sun/xml/bind/v2/model/impl/ModelBuilder.class) needs 2.2 API. Use the endorsed directory mechanism to place jaxb-api.jar in the bootstrap classloader. (See http://java.sun.com/j2se/1.6.0/docs/guide/standards/)


You seem to be using a old version of Java 6. You'll have to download the latest available Java 6 version and use it.

[My Blog] [JavaRanch Journal]
Somnath Mallick
Ranch Hand

Joined: Mar 04, 2009
Posts: 477
Sorry about the version names...

Can these errors be ignored? I have the JDK1.6 build 10... isn't that latest enough??
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10112
    
165

Somnath Mallick wrote:
Can these errors be ignored?

No, those errors cannot be ignored.

Somnath Mallick wrote:
I have the JDK1.6 build 10... isn't that latest enough??


The latest is Update 20 http://java.sun.com/javase/downloads/index.jsp

Somnath Mallick
Ranch Hand

Joined: Mar 04, 2009
Posts: 477
Thanks Jai!!!

I trying out a code... in which a servlet which is running on Tomcat and an EJB running on JBoss. The servlet is calling the EJB to process a set of data. Its a very basic code. But I am getting a huge naming exception. I have used the environment properties in the servlet. Here is the code:


And here is the exception that I am getting:

Prasad Krishnegowda
Ranch Hand

Joined: Apr 25, 2010
Posts: 532

Jar file providing org.jnp.interfaces.NamingContextFactory needs to be in the classpath, i guess its not there.. so, the ClassNotFoundException is coming..
Somnath Mallick
Ranch Hand

Joined: Mar 04, 2009
Posts: 477
I have the jbossall-client.jar added to the classpath. So that shouldn't be the problem, would it??
Prasad Krishnegowda
Ranch Hand

Joined: Apr 25, 2010
Posts: 532

It has to be inside WEB-INF/lib folder...
Somnath Mallick
Ranch Hand

Joined: Mar 04, 2009
Posts: 477
They are in the WEB-INF/lib folder as well...
What's going wrong then???
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10112
    
165

Somnath Mallick wrote:I have the jbossall-client.jar added to the classpath. So that shouldn't be the problem, would it??


How exactly have you added it to the classpath? And to which classpath?
Somnath Mallick
Ranch Hand

Joined: Mar 04, 2009
Posts: 477
Well i created a lib folder in WEB-INF in Eclipse. Then went to the properties of the project and added the jar in the "Libraries" tab.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10112
    
165

Somnath Mallick wrote:Well i created a lib folder in WEB-INF in Eclipse. Then went to the properties of the project and added the jar in the "Libraries" tab.


Let's keep the IDE out of the picture for now. Which jars does your WEB-INF/lib folder contain?
Somnath Mallick
Ranch Hand

Joined: Mar 04, 2009
Posts: 477
That's the only one!
Somnath Mallick
Ranch Hand

Joined: Mar 04, 2009
Posts: 477
I meant... jbossall-client.jar
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10112
    
165

Somnath Mallick wrote:I meant... jbossall-client.jar


That's an (empty) Manifest only jar file. You'll have to package the jar files that have been listed in the META-INF/MANIFEST.MF file. You can find those jars in the JBOSS_HOME/client folder. You don't actually need all those listed jars, but I don't have a exact set of the jar names. So you'll either have to package them all or selectively choose the correct ones.
Somnath Mallick
Ranch Hand

Joined: Mar 04, 2009
Posts: 477
Finally i have got rid of the JAR issues... I added the following jars:
jbossall-client.jar
jbossjmx-ant.jar
jboss-logging.jar
PercentageProject.jar (JAR of the EJB)

But now that I run the servlet i get this error:

Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10112
    
165

Please create a separate thread for different issues, like this one. And provide all the relevant details in that thread.
Somnath Mallick
Ranch Hand

Joined: Mar 04, 2009
Posts: 477
Done!!!

http://www.coderanch.com/t/501996/EJB-JEE/java/javax-naming-NameNotFoundException-Please-help#2263253

Thanks all for helping out on this one.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JBOSS 6.0 Error While Starting Up..