[jboss-dev-forums] [JBoss AS 7 Development] - Integration of updated jboss-ejb-client into jboss-client.jar?

Branden Smith do-not-reply at jboss.com
Tue May 8 20:46:34 EDT 2012


Branden Smith [https://community.jboss.org/people/sumitsu] created the discussion

"Integration of updated jboss-ejb-client into jboss-client.jar?"

To view the discussion, visit: https://community.jboss.org/message/734387#734387

--------------------------------------------------------------
I've created a fork of the  https://github.com/jbossas/jboss-ejb-client *https://github.com/jbossas/jboss-ejb-client* project tin an effort to resolve a thread-synchronization issue which arises when setting EJB invocation properties at runtime rather than by jboss-ejb-client.properties.  Some discussion of the issue I'm trying to resolve is here:

 https://community.jboss.org/message/724430#724430 *https://community.jboss.org/message/724430#724430*

(The github fork is here:  https://github.com/sumitsu/jboss-ejb-client https://github.com/sumitsu/jboss-ejb-client, but I've not yet checked in any new code.)

To test my modifications, I'm trying to integrate the EJB-client JAR produced by Maven into the client jar supplied with AS7 (*jboss/bin/client/jboss-client.jar*) by replacing the latter's contents under *org/jboss/ejb/client* with the classes packaged by the jboss-ejb-client POM.  When I try to invoke an EJB, however, I'm getting the following Exception:


Exception in thread "Thread-0" java.lang.ExceptionInInitializerError
    at org.jboss.ejb.client.EJBClient.<clinit>(EJBClient.java:39)
    at org.jboss.ejb.client.naming.ejb.EjbNamingContext.doCreateProxy(EjbNamingContext.java:140)
    at org.jboss.ejb.client.naming.ejb.EjbNamingContext.createEjbProxy(EjbNamingContext.java:113)
    at org.jboss.ejb.client.naming.ejb.EjbNamingContext.lookup(EjbNamingContext.java:96)
    at javax.naming.InitialContext.lookup(InitialContext.java:392)
    at test.timeouttestclient.RemoteStallClient.stall_AS7props(RemoteStallClient.java:134)
    at test.timeouttestclient.RemoteStallClient.run(RemoteStallClient.java:145)
Caused by: *java.lang.IllegalArgumentException: Invalid logger interface org.jboss.ejb.client.Logs (implementation not found)*
    at org.jboss.logging.Logger.getMessageLogger(Logger.java:2250)
    at org.jboss.logging.Logger.getMessageLogger(Logger.java:2214)
    at org.jboss.ejb.client.Logs.<clinit>(Logs.java:50)
    ... 7 more


Thinking that it was some version discrepancy with between the version of jboss-logging supplied with the AS 7.1.1 client and the version required by the most recent jboss-ejb-client revision, I also tried replacing the classes in the JBoss client under org/jboss/logging directory with those in the 3.1.0 JAR specified by the jboss-ejb-client POM, to no effect.

Could someone guide me as to how to update the JBoss AS 7.1.1.Final client with the most recent version of jboss-ejb-client, so that I can test my modifications?  Please bear with me (and let me know) if I'm doing something wrong procedurally; this is my first attempt to modify/fork any JBoss code.  If there's some other way in which I should be rebuilding the JBoss AS client or testing my modifications, please advise.

Thanks!
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/734387#734387]

Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20120508/d0094dc7/attachment.html 


More information about the jboss-dev-forums mailing list