Update Glassfish to V2.1.1 Fail

วันที่ 25/01/2011 ทำการ update Glassfish ให้เป็น version 2.1.1 พอทำเสร็จจะ startup domain ก็เจอ error เลย
[#|2011-01-25T20:02:44.836+0700|SEVERE|sun-appserver2.1.1|javax.enterprise.resource.resourceadapter|_ThreadID=10;_ThreadName=main;_RequestID=70a78efd-c5b8-42dc-bc07-66419c9d4216;|RAR6035 : Resource adapter start failed : {0}
java.lang.NoSuchMethodError: com.sun.messaging.jmq.jmsserver.Globals.getClusterDiscoveryService()Lcom/sun/messaging/jmq/jmsserver/service/ClusterDiscoveryService;
at com.sun.messaging.jmq.jmsserver.service.PortMapper.(PortMapper.java:153)
at com.sun.messaging.jmq.jmsserver.Globals.getPortMapper(Globals.java:546)
at com.sun.messaging.jmq.jmsserver.Broker._start(Broker.java:753)
at com.sun.messaging.jmq.jmsserver.Broker.start(Broker.java:412)
at com.sun.messaging.jmq.jmsserver.BrokerProcess.start(BrokerProcess.java:219)
at com.sun.messaging.jmq.jmsserver.DirectBrokerProcess.start(DirectBrokerProcess.java:87)
at com.sun.messaging.jmq.jmsclient.runtime.impl.BrokerInstanceImpl.start(BrokerInstanceImpl.java:144)
at com.sun.messaging.jms.ra.EmbeddedBrokerRunner.start(EmbeddedBrokerRunner.java:284)
at com.sun.messaging.jms.ra.LifecycleManagedBroker.start(LifecycleManagedBroker.java:337)
at com.sun.messaging.jms.ra.ResourceAdapter.start(ResourceAdapter.java:314)
at com.sun.enterprise.connectors.ActiveInboundResourceAdapter$1.run(ActiveInboundResourceAdapter.java:180)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.enterprise.connectors.ActiveInboundResourceAdapter.startResourceAdapter(ActiveInboundResourceAdapter.java:174)
at com.sun.enterprise.connectors.ActiveInboundResourceAdapter.(ActiveInboundResourceAdapter.java:132)
at com.sun.enterprise.connectors.system.ActiveJmsResourceAdapter.(ActiveJmsResourceAdapter.java:235)
at com.sun.enterprise.connectors.ActiveRAFactory.createActiveResourceAdapter(ActiveRAFactory.java:107)
at com.sun.enterprise.connectors.ResourceAdapterAdminServiceImpl.createActiveResourceAdapter(ResourceAdapterAdminServiceImpl.java:300)
at com.sun.enterprise.connectors.ResourceAdapterAdminServiceImpl.createActiveResourceAdapter(ResourceAdapterAdminServiceImpl.java:445)
at com.sun.enterprise.connectors.ConnectorRuntime.createActiveResourceAdapter(ConnectorRuntime.java:230)
at com.sun.enterprise.jms.JmsProviderLifecycle.onStartup(JmsProviderLifecycle.java:451)
at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:449)
at com.sun.enterprise.server.ondemand.OnDemandServer.onStartup(OnDemandServer.java:134)
at com.sun.enterprise.server.PEMain.run(PEMain.java:398)
at com.sun.enterprise.server.PEMain.main(PEMain.java:325)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.enterprise.server.PELaunch.main(PELaunch.java:415)
|#]
เข้าใจว่า library ตัวใดตัวหนึ่งมันไม่ update หรือ update ไม่ครบ จึงจำเป็นต้องใช้ imq ตัวเก่า v.4.1 copy มาแปะแทน – -”
,จะพยายามไล่หาว่า lib ตัวไหนไม่ update ก็ไม่ทัน
แปะทั้ง path นี้เลย %{APP_HOME}/imq
วิธี check version คือ %{APP_HOME}/imq/imqcmd.sh -v

เปลี่ยนจาก V.4.4 ที่ update แล้ว คืนเป็น V.4.1

================================================================================
Sun GlassFish(tm) Message Queue 4.4
Sun Microsystems, Inc.
Version: 4.4 (Build 16-a)
Compile: Thu 08/27/2009
xxxxx…..
================================================================================
com.sun.messaging.jmq Version Information
Product Compatibility Version: 4.4
Protocol Version: 4.4
Target JMS API Version: 1.1
Java Runtime Version: 1.6.0_05 Sun Microsystems Inc. /usr/lib/java/jdk1.6.0_05/jre
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
================================================================================
Sun Java(tm) System Message Queue 4.1
Sun Microsystems, Inc.
Version: 4.1 Patch 1 (Build 4-b)
Compile: Wed Nov 7 22:30:57 PST 2007
xxxxxx ……
================================================================================
com.sun.messaging.jmq Version Information
Product Compatibility Version: 4.1
Protocol Version: 4.1
Target JMS API Version: 1.1
Java Runtime Version: 1.6.0_05 Sun Microsystems Inc. /usr/lib/java/jdk1.6.0_05/jre

About WK

Kajook is a Senior Software Engineer. Job is Design & Develop in Java EE environment on Glassfish. I'm Interested in Agile software development ,iOS and Android.
This entry was posted in ploblem and tagged . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s