• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

JBOSS 6.0 Error While Starting Up..

 
Ranch Hand
Posts: 483
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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???
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
 
Somnath Mallick
Ranch Hand
Posts: 483
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry about the version names...

Can these errors be ignored? I have the JDK1.6 build 10... isn't that latest enough??
 
Jaikiran Pai
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 483
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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:

 
Ranch Hand
Posts: 672
4
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 483
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have the jbossall-client.jar added to the classpath. So that shouldn't be the problem, would it??
 
Prasad Krishnegowda
Ranch Hand
Posts: 672
4
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It has to be inside WEB-INF/lib folder...
 
Somnath Mallick
Ranch Hand
Posts: 483
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
They are in the WEB-INF/lib folder as well...
What's going wrong then???
 
Jaikiran Pai
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 483
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 483
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That's the only one!
 
Somnath Mallick
Ranch Hand
Posts: 483
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I meant... jbossall-client.jar
 
Jaikiran Pai
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 483
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please create a separate thread for different issues, like this one. And provide all the relevant details in that thread.
 
Somnath Mallick
Ranch Hand
Posts: 483
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Done!!!

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

Thanks all for helping out on this one.
 
It is difficult to free fools from the chains they revere - Voltaire. tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic