I've done an application to sign xml's. And my unit tests inside eclipse are ok, so I export the project as jar to sign with it.

I run the jar and create the signed xml's. Apparently there is no difference between the xml generarted inside eclipse and the resulting jar. But the second one generates a wrong signature. I compare the files, everything is equal except the signature fields.

I guess something's wrong with the environments. I've checked the eclipse classpahts and command line classpath. It's all ok. I have no clue.

Any idea?