|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
JCA RA on Sun Application Server 8.1 |
« View previous topic :: View next topic » |
Author |
Message
|
ConnyG |
Posted: Tue Oct 16, 2007 12:33 am Post subject: JCA RA on Sun Application Server 8.1 |
|
|
Newbie
Joined: 15 Oct 2007 Posts: 2
|
Websphere MQ 6.0.2.1
Sun Application Server EE 8.1
I have done the following.
* Added this to server.policy for the domain:
grant {
permission java.util.PropertyPermission "*", "read,write";
permission java.lang.RuntimePermission "modifyThreadGroup";
permission java.lang.RuntimePermission "modifyThread";
permission java.lang.RuntimePermission "getClassLoader";
permission java.io.FilePermission "*", "read,write";
};
grant {
permission java.security.AllPermission;
};
* Created resource adapter configuration
asadmin create-resource-adapter-config --user admin -–port 4855 --property maxConnections=10:connectionConcurrency=5:reconnectionRetryCount=5:reconnectionRetryInterval=300000:traceEnabled=true:traceDestination=System.err:traceLevel=10 wmqjmsra
* Deployed resource adapter
asadmin deploy --user admin --port 4855 --name wmqjmsra --target server /tmp/wmq.jmsra.notransaction.rar
(the rar has been modified with <transaction-support>NoTransaction</transaction-support> in ra.xml)
Upon startup I get:
[#|2007-10-16T11:11:25.093+0300|WARNING|sun-appserver-ee8.1_02|javax.enterprise.system.stream.err|_ThreadID=12;|[16/10/07 11:11:25:093 EEST.0] service-j2ee-2 <---ResourceAdapterImpl.start(...)|#]
[#|2007-10-16T11:11:25.162+0300|WARNING|sun-appserver-ee8.1_02|javax.enterprise.system.stream.err|_ThreadID=12;|[16/10/07 11:11:25:162 EEST.0] service-j2ee-2 --->ManagedConnectionFactoryImpl()|#]
[#|2007-10-16T11:11:25.163+0300|WARNING|sun-appserver-ee8.1_02|javax.enterprise.system.stream.err|_ThreadID=12;|[16/10/07 11:11:25:163 EEST.0] service-j2ee-2 <---ManagedConnectionFactoryImpl()|#]
[#|2007-10-16T11:11:25.191+0300|WARNING|sun-appserver-ee8.1_02|javax.enterprise.system.stream.err|_ThreadID=12;|[16/10/07 11:11:25:190 EEST.0] service-j2ee-2 --->ManagedConnectionFactoryImpl()|#]
[#|2007-10-16T11:11:25.191+0300|WARNING|sun-appserver-ee8.1_02|javax.enterprise.system.stream.err|_ThreadID=12;|[16/10/07 11:11:25:191 EEST.0] service-j2ee-2 <---ManagedConnectionFactoryImpl()|#]
[#|2007-10-16T11:11:25.192+0300|WARNING|sun-appserver-ee8.1_02|javax.enterprise.system.stream.err|_ThreadID=12;|[16/10/07 11:11:25:192 EEST.0] service-j2ee-2 --->ManagedQueueConnectionFactoryImpl()|#]
[#|2007-10-16T11:11:25.193+0300|WARNING|sun-appserver-ee8.1_02|javax.enterprise.system.stream.err|_ThreadID=12;|[16/10/07 11:11:25:192 EEST.1] service-j2ee-2 <---ManagedQueueConnectionFactoryImpl()|#]
[#|2007-10-16T11:11:25.259+0300|WARNING|sun-appserver-ee8.1_02|javax.enterprise.system.stream.err|_ThreadID=12;|[16/10/07 11:11:25:259 EEST.0] service-j2ee-2 --->ManagedConnectionFactoryImpl()|#]
[#|2007-10-16T11:11:25.260+0300|WARNING|sun-appserver-ee8.1_02|javax.enterprise.system.stream.err|_ThreadID=12;|[16/10/07 11:11:25:260 EEST.0] service-j2ee-2 <---ManagedConnectionFactoryImpl()|#]
[#|2007-10-16T11:11:25.260+0300|WARNING|sun-appserver-ee8.1_02|javax.enterprise.system.stream.err|_ThreadID=12;|[16/10/07 11:11:25:260 EEST.1] service-j2ee-2 --->ManagedTopicConnectionFactoryImpl()|#]
[#|2007-10-16T11:11:25.261+0300|WARNING|sun-appserver-ee8.1_02|javax.enterprise.system.stream.err|_ThreadID=12;|[16/10/07 11:11:25:261 EEST.0] service-j2ee-2 <---ManagedTopicConnectionFactoryImpl()|#]
[#|2007-10-16T11:11:25.301+0300|WARNING|sun-appserver-ee8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=12;|Please add the following permissions to the server.policy file and restart the appserver.null
grant {
permission java.security.AllPermission;
};|#]
Any idea what is causing this? Do I need to add anything to the server classpath/library path? Any environment variables it needs? |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Oct 16, 2007 2:09 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Could be that the original .rar file was signed and your tampering with it invalidated that signature.
Better setup the permissions in the appserver running the rar.
Enjoy  _________________ MQ & Broker admin |
|
Back to top |
|
 |
ConnyG |
Posted: Mon Dec 17, 2007 3:38 am Post subject: |
|
|
Newbie
Joined: 15 Oct 2007 Posts: 2
|
Managed to get it working (mostly), here is what I did:
1) removed the security-spec from ra.xml which removed the error messages, and made sure the settings were in server.policy
2) added com.ibm.mqetclient.jar to the resource adapter rar-file since I got classloader problems if I added it to the classpath
3) if the JNDI names contains /jms/ the application server tries to serialize something resulting in an error since the adapter references a non-serializable class. We got around this by using /eis/ in the JNDI names instead.
We currently have it sending messages but with an empty ReplyToQ header, even though we use setJMSReplyTo to set a valid destination. Once we have this solved it should run just perfectly.
Just figured I'd post this info in case anyone else ever wants to get it up and running on a non-supported application server and runs into similar problems.
//Conny |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|