Database alias in B2B server and Oracle thin driver

I created a database alias in B2B Server 4.0.2 for Oracle database. I am using and gave url for thin driver. Same url and driver works in simple JDBC java client. But in B2B if I try to generate service from the B2B administrator screen, it gives ‘protocol violation’ error.
Any reasons?

What version of Oracle are you using?

You might want to check the B2B Server classpath. Look for and If both are there you have multiple version of the JDBC driver. When resolving which driver to use, the JVM will take the one that appears first in the classpath, and that one may be incompatible with the version of Oracle you are using.