Author |
Message
|
vishnuj |
Posted: Tue Mar 16, 2010 8:00 pm Post subject: Unable to create .binding file |
|
|
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 |
|
 |
fjb_saper |
Posted: Tue Mar 16, 2010 8:45 pm Post subject: |
|
|
 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 |
|
 |
vishnuj |
Posted: Wed Mar 17, 2010 7:52 am Post subject: |
|
|
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 |
|
 |
fjb_saper |
Posted: Wed Mar 17, 2010 1:30 pm Post subject: |
|
|
 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 |
|
 |
vishnuj |
Posted: Fri Mar 19, 2010 10:12 pm Post subject: |
|
|
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 |
|
 |
aarenlainey |
Posted: Mon Apr 05, 2010 10:17 pm Post subject: |
|
|
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 |
|
 |
fjb_saper |
Posted: Tue Apr 06, 2010 8:13 pm Post subject: |
|
|
 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 |
|
 |
helping_hand |
Posted: Thu Apr 08, 2010 1:16 am Post subject: |
|
|
 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 |
|
 |
|