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 » Unable to create .binding file

Post new topic  Reply to topic
 Unable to create .binding file « View previous topic :: View next topic » 
Author Message
vishnuj
PostPosted: Tue Mar 16, 2010 8:00 pm    Post subject: Unable to create .binding file Reply with quote

Newbie

Joined: 16 Mar 2010
Posts: 8

Hi,

System Environment:
Platform: Win XP
Software: IBM WebSphere MQ 7.0v (Trail Software)

I'm facing the following error while execution of JMSAdmin command
Example:
C:\Program Files\IBM\Web Sphere MQ\java\bin> JMSAdmin <C:\JNDI-Directory\createJNDI.defs


Exception in thread "main" java.lang.NoClassDefFoundError: com/ibm/msg/client/co
mmonservices/nls/CodepageSetUp
Caused by: java.lang.ClassNotFoundException: com.ibm.msg.client.commonservices.n
ls.CodepageSetUp
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)
Could not find the main class: com.ibm.msg.client.commonservices.nls.CodepageSet
Up. Program will exit.
Error occurred during initialization of VM
java.nio.charset.IllegalCharsetNameException:
at java.nio.charset.Charset.checkName(Charset.java:273)
at java.nio.charset.Charset.lookup2(Charset.java:458)
at java.nio.charset.Charset.lookup(Charset.java:437)
at java.nio.charset.Charset.defaultCharset(Charset.java:579)
at sun.nio.cs.StreamEncoder.forOutputStreamWriter(StreamEncoder.java:37)

at java.io.OutputStreamWriter.<init>(OutputStreamWriter.java:94)
at java.io.PrintStream.<init>(PrintStream.java:100)
at java.lang.System.initializeSystemClass(System.java:1092)


I though it could be jar files problem... so went on to install fixpack for MQv7.0 ie., MQ 7.0.1

After that also this giving same error...
com.ibm.msg.client.commonservices.nls.CodepageSetUp ClassNotFoundException
I believe that this class doesn't contain in one of the jars present in java lib folder.

Could anyone please suggest me the relevant jar file to resolve this error
or it might be some other issue...

Kindly required your suggestions....
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Mar 16, 2010 8:45 pm    Post subject: Reply with quote

Grand High Poobah

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

Do you have all the jar files on the classpath?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
vishnuj
PostPosted: Wed Mar 17, 2010 7:52 am    Post subject: Reply with quote

Newbie

Joined: 16 Mar 2010
Posts: 8

Hi,
Could you please check the list of jars i had in java lib folder.

CL3Export.jar
CL3Nonexport.jar
com.ibm.mq.commonservices.jar
com.ibm.mq.defaultconfig.jar
com.ibm.mq.fta.jar
com.ibm.mq.headers.jar
com.ibm.mq.jar
com.ibm.mq.jmqi.jar
com.ibm.mq.jms.Nojndi.jar
com.ibm.mq.pcf.jar
com.ibm.mq.postcard.jar
com.ibm.mq.soap.jar
com.ibm.mq.tools.ras.jar
com.ibm.mqjms.jar
connector.jar
dhbcore.jar
fscontext.jar
jms.jar
jndi.jar
jta.jar
ldap.jar
providerutil.jar
rmm.jar

If any of the jar is missing please let me know.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Mar 17, 2010 1:30 pm    Post subject: Reply with quote

Grand High Poobah

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

Looks like you have them all.
Just make sure your OS supports the code page translations you are trying to make. It is possible that if the NLS is not found locally the code tries to load it from some IBM alternative and chokes there.

Instead of just having the java client try and install the full client with the conversion tables. Might work for you.

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
vishnuj
PostPosted: Fri Mar 19, 2010 10:12 pm    Post subject: Reply with quote

Newbie

Joined: 16 Mar 2010
Posts: 8

Now, the above error got resolved that is because of classpath problem.

now I'm able to create .binding file but while creating it its showing

InitCtx> Unknown command: TRANSPORT


As this TRANSPORT command has mentioned in my createJNDI.defs file


DEF QCF(QCF) +
TRANSPORT(CLIENT) +
QMANAGER(QMGR) +
HOSTNAME(localhost) +
PORT(1500)

# Define a Queue Destination
DEF Q(JMSINPUTQ) +
QUEUE(JMSINPUTQ) +
QMANAGER(QMGR)+
#
DEF Q(JMSOUTPUTQ) +
QUEUE(JMSOUTPUTQ) +
QMANAGER(QMGR)
#
END

Can u pls suggest what could be the problem ??
Back to top
View user's profile Send private message
aarenlainey
PostPosted: Mon Apr 05, 2010 10:17 pm    Post subject: Reply with quote

Newbie

Joined: 02 Apr 2010
Posts: 3

I have also use this class pathbut I have also same problem.can anyone help to slove problem.I don't understand what type of error occurred.
_________________
m3 real
Back to top
View user's profile Send private message Send e-mail
fjb_saper
PostPosted: Tue Apr 06, 2010 8:13 pm    Post subject: Reply with quote

Grand High Poobah

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

Check your manual (specifically the right version) as to what the content should be. You may have to use an MQ constant name there...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
helping_hand
PostPosted: Thu Apr 08, 2010 1:16 am    Post subject: Reply with quote

Novice

Joined: 28 Jul 2005
Posts: 14

If you are using TRANSPORT(CLIENT) you have to give Channel name.

define qcf(connection_factory_name)
tran(CLIENT)
host(<your_IP_address>)
port(1414)
chan(java.channel)
qmgr(<queue_manager_name>)

For localhost TRANSPORT(CLIENT) is not required.

define qcf(connection_factory_name) qmgr(<queue_manager_name>)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Unable to create .binding file
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.