deploytool BMP unable to update - Anybody lend me a hammer?

Dear readers,

OK, so I successfully deployed a simple client-BMP app using the deploytool where the primary key was a String. I am packaging and deploying using deploytool and J2EE and then closing them and running the application on JBoss. Happy memories.

I then altered the BMP to have its own primary key. Here the problems start - the deploytool verifier refuses to recognise that the new BMP has a primary key class. The verifier first gives out a PubIdLiteral test failure (whatever that may be) and also complains that the findByPrimaryKey method does not return EJB primary key.

If I ignore these errors and then deploy the app., I now get java.io.InvalidClassException where the Client.jar serialVersionID is different from the server classes.

Also if I run serialVer tool, I can specify my primary key class EVEN though I haven't made it visible in the classpath.

To me it looks like deploytool is creating phantom versions of the original application and is ignoring the new one. I can see that deploytool created many little new files all over the joint when I use it This is driving me nuts. I can see the primary key class in the deploytool panels.And have reinstalled j2ee and jboss, deleted old .ear files with no luck.

Where am I going wrong?

thanks in advance for your helpful replies.

[1353 byte] By [robbiesta] at [2007-9-27 7:57:14]
# 1

I admit it, I am a doughball. Here is the solution: the PC I inherited strangely enough had a set of packages with exactly the same hierarchy as my own set AND there was a classpath setting to a directory. And I thought classpaths were only for files and jars, but no, you can set them to directories also. So there was a 'phantom' app sitting on my box. So deploytool was looking at these set of classes and happily, kind of, deploying my own app and cheekily not telling it was looking at another set of classes and not my own.

Moral is: check your classpaths for directories as well as jars and use the serialver -show tool.

robbiesta at 2007-7-8 12:29:38 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...