ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » java.lang.NoClassDefFound com.sun.jndi.toolkit.chars.Charact

Post new topic  Reply to topic
 java.lang.NoClassDefFound com.sun.jndi.toolkit.chars.Charact « View previous topic :: View next topic » 
Author Message
vmanbc
PostPosted: Fri Jun 01, 2007 8:05 am    Post subject: java.lang.NoClassDefFound com.sun.jndi.toolkit.chars.Charact Reply with quote

Novice

Joined: 28 May 2007
Posts: 12

I have a web app deployed on Webshpere running on AIX with MQ 5.3, for some reason when my application attempts to create the InitialContext, the following is thrown: Any Ideas? BTW this is only happening on AIX

Platform Info:
Webshere 5.1, AIX 5.3, MQ 5.3

java.lang.NoClassDefFoundError: com.sun.jndi.toolkit.chars.CharacterEncoder
at java.lang.J9VMInternals.verifyImpl(Native Method)
at java.lang.J9VMInternals.verify(J9VMInternals.java:59)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:120)
at com.sun.jndi.fscontext.RefFSContextFactory.createContext(RefFSContextFactory.java:42)
at com.sun.jndi.fscontext.RefFSContextFactory.createContextAux(RefFSContextFactory.java:47)
at com.sun.jndi.fscontext.FSContextFactory.getInitialContext(FSContextFactory.java:49)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:675)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:257)
at javax.naming.InitialContext.init(InitialContext.java:233)
at javax.naming.InitialContext.<init>(InitialContext.java:209)

Thanks in advance
Back to top
View user's profile Send private message AIM Address
fjb_saper
PostPosted: Fri Jun 01, 2007 11:37 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

which platform / ccsid was the .bindings file created on / with.

What is the code page /ccsid of the consumber ( your AIX)
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
rparti
PostPosted: Fri Jun 01, 2007 11:46 am    Post subject: Reply with quote

Voyager

Joined: 05 Oct 2005
Posts: 86
Location: U.S.A.

You need to include the necessary jar files and set classpath to include the jar files as well.
Back to top
View user's profile Send private message
vmanbc
PostPosted: Fri Jun 01, 2007 2:48 pm    Post subject: Reply with quote

Novice

Joined: 28 May 2007
Posts: 12

Thanks for the replies, all the jars are currently in the classpath. Im wondering if this is a permission of JVM issue?

In response to the below questions, how do I determine these, IE what commands can I run?
which platform / ccsid was the .bindings file created on / with.

What is the code page /ccsid of the consumber ( your AIX)

Regards
V
Back to top
View user's profile Send private message AIM Address
vmanbc
PostPosted: Mon Jun 04, 2007 2:46 pm    Post subject: Reply with quote

Novice

Joined: 28 May 2007
Posts: 12

Any additional suggestion on this problem?

Appreciate the feedback
Back to top
View user's profile Send private message AIM Address
fjb_saper
PostPosted: Mon Jun 04, 2007 2:49 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

you are looking at JNDI with a file system context:
Quote:
at com.sun.jndi.fscontext.RefFSContextFactory.createContext(RefFSContextFactory.java:42)
at com.sun.jndi.fscontext.RefFSContextFactory.createContextAux(RefFSContextFactory.java:47)
at com.sun.jndi.fscontext.FSContextFactory.getInitialContext(FSContextFactory.java:49)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:675)


So sombody had to create the .bindings file referenced in the Provider_URL for your context...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » java.lang.NoClassDefFound com.sun.jndi.toolkit.chars.Charact
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.