• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Jj Roberts
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Himai Minh
  • Carey Brown
  • salvin francis

jdbc driver problem

 
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello,
I move my application to another PC where i set up weblogic 6.1. The server is runining, however when I start my application, the following error occurs:
C:\stage\jdbc>java login
Exception was thrown: java.sql.SQLException: $$$$$$$$$$$$$$$$ License Exception $$$$$$$$$$$$$$$$
Missing license file for: WebLogic Server 6.1
$$$$$$$$$$$$$$$$ License Exception $$$$$$$$$$$$$$$$
java.sql.SQLException: java.sql.SQLException: $$$$$$$$$$$$$$$$ License Exception $$$$$$$$$$$$$$$$
Missing license file for: WebLogic Server 6.1
$$$$$$$$$$$$$$$$ License Exception $$$$$$$$$$$$$$$$
at weblogic.jdbc.mssqlserver4.BaseConnection.prepareConnection(BaseConnection.java:223)
at weblogic.jdbc.mssqlserver4.Driver.newConnection(Driver.java:34)
at weblogic.jdbc.mssqlserver4.ConnectDriver.connect(ConnectDriver.java:151)
at login.main(login.java:26)
**************
this is my classpath:
C:\stage\jdbc>echo %classpath%
.;D:\Programme\SQLLIB\java\db2java.zip;D:\Programme\SQLLIB\java\runtime.zip;D:\Programme\SQLLIB\bin;d:\programme\sqllib\java\db2java.zip;D:\
Programme\WebSphere\AppServer\installedApps\maxwell\HelloWorld.ear.ear\HelloClient.jar;D:\Programme\WebSphere\AppServer\installedApps\maxwel
l\HelloWorld.ear.ear\Hello.jar;D:\Programme\WebSphere\AppServer\lib\j2ee.jar;C:\bea\wlserver6.1\lib\weblogic.jar;C:\bea\wlserver6.1\lib\mssq
lserver4v65.jar;c:\bea\license.bea
As you can see I included license.bea
Did i miss anything else ?
thanx,
max
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why are you adding the license file into CLASSPATH? It should be enough that your BEA_HOME environment variable is set to point at e.g. "C:\bea" if your license file is C:\bea\license.bea (or define BEA_HOME by using the command line parameter -Dbea.home=...).
However, I doubt that this is the cause of your problem.
<begin-guessing>
You seem to be running a standalone client, right? Maybe the problem is something like that the JDBC drivers that came along with weblogic.jar (or whatever) expect to have some license properties in the thread context, which aren't there because the threads weren't created by WebLogic. Anybody with some hard facts?
</end-guessing>
[ February 25, 2003: Message edited by: Lasse Koskela ]
 
Author
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As Lasse said, I think this problem can be solved by adding the directory with the license file to the CLASSPATH, rather than the license file itself.
The problem is that the BEA WebLogic drivers need to be able to locate a license file to start. In the olden days when you downloaded the JConnect drivers separately, this was super-painful. But with WebLogic 7, it should be as easy as adding c:\bea to the CLASSPATH.
Of course, the reason it wants a license file is that (if I understand correctly) you have to have a license to run the WebLogic JDBC drivers outside of the app server... I guess I wasn't clear from your post whether this is a problem within the WebLogic app server, or in a standalone application client.
 
Maximilian Trenks
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
adding c:\bea top the classpath solved my problem.
many thanx
 
Happily living in the valley of the dried frogs with a few tiny ads.
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic