Author |
Message
|
mmo |
Posted: Tue Jan 11, 2005 1:03 pm Post subject: WSAD 5.1.0 MQ JMS Provide QueueConnectionFactory problem |
|
|
Newbie
Joined: 11 Jan 2005 Posts: 4
|
Hi,
I have WebSphere Application Developer 5.1.0 and MQ Series 5.3 installed on my Win2K machine.
Whenever I create a "WebSphere MQ JMS Provider" in the admin console and restart the server, I always got the same problem. Here is the stack trace:
------------------------------------------------------------------------------------
*** Starting the server ***
************ Start Display Current Environment ************
WebSphere Platform 5.0 [BASE 5.0.2 ptf2M0325.01] running with process name localhost\localhost\server1 and process id 2024
Host Operating System is Windows 2000, version 5.0
Java version = J2RE 1.3.1 IBM Windows 32 build cn131-20030711a (JIT enabled: jitc), Java Compiler = jitc, Java VM name = Classic VM
was.install.root = C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1\runtimes\base_v5
user.install.root = C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1\runtimes\base_v5
Java Home = C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1\runtimes\base_v5\java\jre
ws.ext.dirs = C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1\runtimes\base_v5/java/lib;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1\runtimes\base_v5/classes;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1\runtimes\base_v5/classes;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1\runtimes\base_v5/lib;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1\runtimes\base_v5/lib/ext;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1\runtimes\base_v5/web/help;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1\runtimes\base_v5/deploytool/itp/plugins/com.ibm.etools.ejbdeploy/runtime;C:/Program Files/IBM/WebSphere Studio/Application Developer/v5.1/wstools/eclipse/plugins/com.ibm.etools.webservice_5.1.0/runtime/worf.jar
Classpath = C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1\runtimes\base_v5/properties;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1\runtimes\base_v5/properties;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1\runtimes\base_v5/lib/bootstrap.jar;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1\runtimes\base_v5/lib/j2ee.jar;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1\runtimes\base_v5/lib/lmproxy.jar;C:/Program Files/IBM/WebSphere Studio/Application Developer/v5.1/wstools/eclipse/plugins/com.ibm.etools.websphere.tools.common_5.1.0/runtime/wteServers.jar;C:/Program Files/IBM/WebSphere Studio/Application Developer/v5.1/wstools/eclipse/plugins/com.ibm.etools.websphere.tools.common_5.1.0/runtime/wasToolsCommon.jar
Java Library path = C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1\runtimes\base_v5/bin;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1\runtimes\base_v5/java/bin;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1\runtimes\base_v5/java/jre/bin;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1\eclipse\jre\bin;.;C:\Program Files\IBM\WebSphere MQ\Java\lib;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1\runtimes\base_v5\bin;C:\Program Files\IBM\WebSphere MQ\Java\bin;C:/Program Files/IBM/WebSphere MQ/WEMPS\bin;C:\j2sdk1.4.2_05\bin;C:\Program Files\ibm\gsk5\lib;C:\oracle\ora81\bin;C:\oracle\ora81\Apache\Perl\5.00503\bin\mswin32-x86;C:\Program Files\Oracle\jre\1.1.7\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\WINNT\system32\nls;C:\WINNT\system32\nls\ENGLISH;C:\Program Files\Symantec\pcAnywhere\;%JAVA_HOME%\bin;C:\Ant1.5.3\bin;C:\Program Files\IBM\WebSphere MQ\Java;C:\Program Files\IBM\WebSphere MQ\bin;C:\Program Files\IBM\WebSphere MQ\tools\c\samples\bin;Z:.;Y:.
************* End Display Current Environment *************
[1/11/05 18:54:45:545 BRST] 4efb0e59 ManagerAdmin I TRAS0017I: The startup trace state is *=all=disabled.
[1/11/05 18:54:47:027 BRST] 4efb0e59 AdminInitiali A ADMN0015I: AdminService initialized
[1/11/05 18:54:50:402 BRST] 4efb0e59 Configuration A SECJ0215I: Successfully set JAAS login provider configuration class to com.ibm.ws.security.auth.login.Configuration.
[1/11/05 18:54:50:502 BRST] 4efb0e59 SecurityDM I SECJ0231I: The Security component's FFDC Diagnostic Module com.ibm.ws.security.core.SecurityDM registered successfully: true.
[1/11/05 18:54:50:923 BRST] 4efb0e59 SecurityCompo I SECJ0309I: Java 2 Security is disabled.
[1/11/05 18:54:50:933 BRST] 4efb0e59 SecurityCompo I SECJ0212I: WCCM JAAS configuration information successfully pushed to login provider class.
[1/11/05 18:54:50:963 BRST] 4efb0e59 SecurityCompo I SECJ0240I: Security service initialization completed successfully
[1/11/05 18:55:06:395 BRST] 4efb0e59 ResourceMgrIm E WSVR0017E: Error encountered binding the J2EE resource, aQ, as jms/aQ from file://C:\Documents and Settings\wpsadmin\My Documents\IBM\wsappdev51\workspace\ServerProject\test.wsc/cells/localhost/nodes/localhost/resources.xml
com.ibm.ws.runtime.component.binder.ResourceBindingException: invalid configuration passed to resource binding logic. REASON: Failed to create connection factory
at com.ibm.ejs.jms.JMSConnectionFactoryReferenceable.<init>(JMSConnectionFactoryReferenceable.java:132)
at com.ibm.ejs.jms.JMSResourceRefBuilderImpl.createNonGenericConnectionFactoryReferenceable(JMSResourceRefBuilderImpl.java:511)
at com.ibm.ejs.jms.JMSResourceRefBuilderImpl.createNonGenericQueueConnectionFactoryReferenceable(JMSResourceRefBuilderImpl.java:337)
at com.ibm.ejs.jms.JMSResourceRefBuilderImpl.createMQQueueConnectionFactoryReferenceable(JMSResourceRefBuilderImpl.java:314)
at com.ibm.ws.runtime.component.binder.MQQueueConnectionFactoryBinder.getBindingObject(MQQueueConnectionFactoryBinder.java:141)
at com.ibm.ws.runtime.component.ResourceMgrImpl.bind(ResourceMgrImpl.java:246)
at com.ibm.ws.runtime.component.ResourceMgrImpl.installResourceProvider(ResourceMgrImpl.java:597)
at com.ibm.ws.runtime.component.ResourceMgrImpl.installResource(ResourceMgrImpl.java:564)
at com.ibm.ws.runtime.component.ResourceMgrImpl.installResources(ResourceMgrImpl.java:524)
at com.ibm.ws.runtime.component.ResourceMgrImpl.loadResources(ResourceMgrImpl.java:404)
at com.ibm.ws.runtime.component.ResourceMgrImpl.start(ResourceMgrImpl.java:353)
at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:543)
at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:418)
at com.ibm.ws.runtime.component.ApplicationServerImpl.start(ApplicationServerImpl.java:117)
at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:543)
at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:418)
at com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:183)
at com.ibm.ws.runtime.WsServer.start(WsServer.java:128)
at com.ibm.ws.runtime.WsServer.main(WsServer.java:225)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)
at com.ibm.etools.websphere.tools.runner.api.ServerRunnerV5$1.run(ServerRunnerV5.java:97)
[1/11/05 18:55:08:077 BRST] 4efb0e59 CacheServiceI I DYNA0048I: WebSphere Dynamic Cache initialized successfully.
[1/11/05 18:55:13:335 BRST] 4efb0e59 JMXSoapAdapte A ADMC0013I: SOAP connector available at port 8880
[1/11/05 18:55:13:355 BRST] 4efb0e59 SecurityCompo I SECJ0243I: Security service started successfully
[1/11/05 18:55:13:355 BRST] 4efb0e59 SecurityCompo I SECJ0210I: Security enabled false
[1/11/05 18:55:15:969 BRST] 4efb0e59 ApplicationMg A WSVR0200I: Starting application: IBMUTC
[1/11/05 18:55:16:199 BRST] 4efb0e59 WebContainer A SRVE0161I: IBM WebSphere Application Server - Web Container. Copyright IBM Corp. 1998-2002
[1/11/05 18:55:16:239 BRST] 4efb0e59 WebContainer A SRVE0162I: Servlet Specification Level: 2.3
[1/11/05 18:55:16:249 BRST] 4efb0e59 WebContainer A SRVE0163I: Supported JSP Specification Level: 1.2
[1/11/05 18:55:16:409 BRST] 4efb0e59 WebContainer A SRVE0169I: Loading Web Module: IBM Universal Test Client.
[1/11/05 18:55:16:910 BRST] 4efb0e59 WebGroup I SRVE0180I: [IBM Universal Test Client] [/UTC] [Servlet.LOG]: JSP 1.2 Processor: init
[1/11/05 18:55:17:211 BRST] 4efb0e59 WebGroup I SRVE0180I: [IBM Universal Test Client] [/UTC] [Servlet.LOG]: SimpleFileServlet: init
[1/11/05 18:55:17:351 BRST] 4efb0e59 ApplicationMg A WSVR0221I: Application started: IBMUTC
[1/11/05 18:55:17:361 BRST] 4efb0e59 ApplicationMg A WSVR0200I: Starting application: adminconsole
[1/11/05 18:55:21:697 BRST] 4efb0e59 WebContainer A SRVE0169I: Loading Web Module: adminconsole.
[1/11/05 18:55:21:777 BRST] 4efb0e59 WebGroup I SRVE0180I: [adminconsole] [/admin] [Servlet.LOG]: JSP 1.2 Processor: init
[1/11/05 18:55:22:408 BRST] 4efb0e59 WebGroup I SRVE0180I: [adminconsole] [/admin] [Servlet.LOG]: SimpleFileServlet: init
[1/11/05 18:55:22:438 BRST] 4efb0e59 WebGroup I SRVE0180I: [adminconsole] [/admin] [Servlet.LOG]: InvokerServlet: init
[1/11/05 18:55:22:468 BRST] 4efb0e59 WebGroup I SRVE0180I: [adminconsole] [/admin] [Servlet.LOG]: validator: init
[1/11/05 18:55:24:401 BRST] 4efb0e59 WebGroup I SRVE0180I: [adminconsole] [/admin] [Servlet.LOG]: EventInitializer: init
[1/11/05 18:55:24:591 BRST] 4efb0e59 WebGroup I SRVE0180I: [adminconsole] [/admin] [Servlet.LOG]: action: init
[1/11/05 18:55:27:285 BRST] 4efb0e59 WebGroup I SRVE0180I: [adminconsole] [/admin] [Servlet.LOG]: action: Tiles definition factory loaded
[1/11/05 18:55:27:305 BRST] 4efb0e59 WebGroup I SRVE0180I: [adminconsole] [/admin] [Servlet.LOG]: SecureCleanup: init
[1/11/05 18:55:27:365 BRST] 4efb0e59 ApplicationMg A WSVR0221I: Application started: adminconsole
[1/11/05 18:55:27:455 BRST] 4efb0e59 HttpTransport A SRVE0171I: Transport http is listening on port 9,080.
[1/11/05 18:55:29:348 BRST] 4efb0e59 HttpTransport A SRVE0171I: Transport https is listening on port 9,443.
[1/11/05 18:55:29:348 BRST] 4efb0e59 HttpTransport A SRVE0171I: Transport http is listening on port 9,090.
[1/11/05 18:55:30:179 BRST] 4efb0e59 HttpTransport A SRVE0171I: Transport https is listening on port 9,043.
[1/11/05 18:55:30:460 BRST] 4efb0e59 RMIConnectorC A ADMC0026I: RMI Connector available at port 2809
[1/11/05 18:55:30:670 BRST] 4efb0e59 WsServer A WSVR0002I: Server server1 open for e-business, problems occurred during startup
------------------------------------------------------------------------------------
I have already set the variable MQ_INSTALL_ROOT to "C:/Program Files/IBM/WebSphere MQ" witch is my MQ Series root installation directory.
My resources.xml for that server looks like this:
-------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:resources.j2c="http://www.ibm.com/websphere/appserver/schemas/5.0/resources.j2c.xmi" xmlns:resources.jms="http://www.ibm.com/websphere/appserver/schemas/5.0/resources.jms.xmi" xmlns:resources.jms.mqseries="http://www.ibm.com/websphere/appserver/schemas/5.0/resources.jms.mqseries.xmi" xmlns:resources.mail="http://www.ibm.com/websphere/appserver/schemas/5.0/resources.mail.xmi" xmlns:resources.url="http://www.ibm.com/websphere/appserver/schemas/5.0/resources.url.xmi">
<resources.jms:JMSProvider xmi:id="builtin_jmsprovider" name="WebSphere JMS Provider" description="Built-in WebSphere JMS Provider" externalInitialContextFactory="" externalProviderURL=""/>
<resources.jms:JMSProvider xmi:id="builtin_mqprovider" name="WebSphere MQ JMS Provider" description="WebSphere MQ JMS Provider" externalInitialContextFactory="" externalProviderURL="">
<classpath>${MQJMS_LIB_ROOT}</classpath>
<nativepath>${MQJMS_LIB_ROOT}</nativepath>
<factories xmi:type="resources.jms.mqseries:MQQueueConnectionFactory" xmi:id="MQQueueConnectionFactory_1105476687721" name="aQ" jndiName="jms/aQ" authMechanismPreference="BASIC_PASSWORD" XAEnabled="true" queueManager="QM1" port="0" transportType="BINDINGS" CCSID="437" msgRetention="true">
<connectionPool xmi:id="ConnectionPool_1105476687721"/>
<mapping xmi:id="MappingModule_1105476687721" mappingConfigAlias="DefaultPrincipalMapping" authDataAlias=""/>
<sessionPool xmi:id="ConnectionPool_1105476687722"/>
</factories>
</resources.jms:JMSProvider>
<resources.j2c:J2CResourceAdapter xmi:id="builtin_rra" name="WebSphere Relational Resource Adapter" description="Built-in Relational Resource Adapter for Container Managed Persistence" archivePath="${WAS_LIBS_DIR}/rsadapter.rar">
<propertySet xmi:id="J2EEResourcePropertySet_8">
<resourceProperties xmi:id="J2EEResourceProperty_31" name="TransactionResourceRegistration" type="java.lang.String" value="dynamic" description="Type of transaction resource registration (enlistment). Valid values are either "static" (immediate) or "dynamic" (deferred)."/>
<resourceProperties xmi:id="J2EEResourceProperty_32" name="InactiveConnectionSupport" type="java.lang.Boolean" value="true" description="Specify whether connection handles support implicit reactivation. (Smart Handle support). Value may be "true" or "false"."/>
</propertySet>
</resources.j2c:J2CResourceAdapter>
<resources.mail:MailProvider xmi:id="builtin_mailprovider" name="Built-in Mail Provider" description="The built-in mail provider">
<protocolProviders xmi:id="builtin_smtp" protocol="smtp" classname="com.sun.mail.smtp.SMTPTransport" type="TRANSPORT"/>
<protocolProviders xmi:id="builtin_pop3" protocol="pop3" classname="com.sun.mail.pop3.POP3Store" type="STORE"/>
<protocolProviders xmi:id="builtin_imap" protocol="imap" classname="com.sun.mail.imap.IMAPStore" type="STORE"/>
</resources.mail:MailProvider>
<resources.url:URLProvider xmi:id="URLProvider_1" name="Default URL Provider" streamHandlerClassName="unused" protocol="unused"/>
</xmi:XMI>
-------------------------------------------------------------------------------------
Any help will be wellcome, because I really don't know what else to do.
Thanks in advance. |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Jan 11, 2005 1:10 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
What is the value of your MQ_JMS_ROOT variable ?
Did you fill in the class path on this variable as request (see admin console)
What is your JNDI setup for JMS?
Are there any naming conflicts with embedded JMS ?
Enjoy  |
|
Back to top |
|
 |
mmo |
Posted: Tue Jan 11, 2005 3:44 pm Post subject: |
|
|
Newbie
Joined: 11 Jan 2005 Posts: 4
|
My MQ_JMS_ROOT points to ${MQ_INSTALL_ROOT}/Java/lib.
I have a QueueConnectionFactory with the JNDI entry equals to "jms/aQCF" and a QueueDestination with a JNDI entry equals "jms/aQ".
Concerning the naming conflits, I don´t think this is the problem. I just created a new server and server copnfiguration, set the variables and created aQCF. Then I started the server and got the stack trace... |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Jan 11, 2005 7:31 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
You problem is the MQ_JMS_ROOT variable. If you had read the explanation on the variable you would know that just giving the path is not enough. Like in a classpath you need to specify each of the relevant jar files on top of the path.
Enjoy  |
|
Back to top |
|
 |
mmo |
Posted: Wed Jan 12, 2005 3:36 am Post subject: |
|
|
Newbie
Joined: 11 Jan 2005 Posts: 4
|
I don't think this is the problem, because I also tried several times using my MQJMS_LIB_ROOT pointing to ${MQ_INSTALL_ROOT}/Java/lib;${MQ_INSTALL_ROOT}/Java/lib/com.ibm.mqjms.jar;${MQ_INSTALL_ROOT}/Java/lib/com.ibm.mq.jar before posting this topic and the same error happens.
If I register a Generic JMS Provider and point it's class path to to ${MQ_INSTALL_ROOT}/Java/lib;${MQ_INSTALL_ROOT}/Java/lib/com.ibm.mqjms.jar;${MQ_INSTALL_ROOT}/Java/lib/com.ibm.mq.jar it works fine.
The thing is that I need to use XA Transactions and don't know how to set it it fot the Generic JMS Provider(even if it points to MQ Series). I tried to create a property XAEnabled set to true, but it still doesn't work.
That's why I need to be able to successfully register an MQ Queue Connection Factory...
I'm wondering if there's something else I need to do ... |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Jan 12, 2005 5:38 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
mmo wrote: |
I don't think this is the problem, because I also tried several times using my MQJMS_LIB_ROOT pointing to ${MQ_INSTALL_ROOT}/Java/lib;${MQ_INSTALL_ROOT}/Java/lib/com.ibm.mqjms.jar;${MQ_INSTALL_ROOT}/Java/lib/com.ibm.mq.jar before posting this topic and the same error happens. |
Just point it to ${MQ_INSTALL_ROOT}/java/lib. You don't need the jar files in this variable.
Also make sure that you did install the Java APIs and that java/lib is populated. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
mmo |
Posted: Wed Jan 12, 2005 12:34 pm Post subject: |
|
|
Newbie
Joined: 11 Jan 2005 Posts: 4
|
I just tried the same steps on our development server (using WAS5 and not the test environment) and it worked just fine...
This is weird... Maybe it´s a bug on the test environment...
Anyway, now it works.
Thanks for your attention. Best regards. |
|
Back to top |
|
 |
|