1 Reply Latest reply: May 8, 2012 8:48 PM by Stuart Douglas RSS

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

Branden Smith Newbie

I've created a fork of the 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

 

(The github fork is here: 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!