Who has any good advice for me?
The result of the statement
InitialContext ic = new InitialContext(prop);
is:
23:30:18,023 INFO [STDOUT] javax.naming.CommunicationException [Root exception is java.io.InvalidClassException: org.jboss.util.id.GUID; local class incompatible: stream classdesc serialVersionUID = 3289509836244263718, local class serialVersionUID = 6926421946503004889]
23:30:18,023 INFO [STDOUT] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:647)
23:30:18,023 INFO [STDOUT] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:507)
23:30:18,023 INFO [STDOUT] at javax.naming.InitialContext.lookup(InitialContext.java:351)
Update the jars that are referenced by the client so that they are the ones from the version of JBoss you are using.