Java DB2PROFC question

Ken Michalik

Java DB2PROFC question
I've been trying to get an SQLJ program to run in OS/390 USS.
SQLJ and JAVAC work fine, and I would think that DB2PROFC would be just a
formality.
When I get to DB2PROFC, however, I get things like:

-> Error: unable to customize profile MvseSQLJ_SJProfile0.ser

java.lang.ClassNotFoundException: MvseSQLJ_SJProfile0

at java.net.URLClassLoader.findClass(URLClassLoader.java:240)

at java.lang.ClassLoader.loadClass(ClassLoader.java:518)

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:440)

at java.lang.ClassLoader.loadClass(ClassLoader.java:450)

at java.lang.Class.forName1(Native Method)

at java.lang.Class.forName(Class.java:142)

at
sqlj.runtime.profile.util.DataCustomizer.customizeEntry(DataCustomize
r.java:195)

at.....

I would guess that there is some path parameter hidden somewhere, but I
couldn't discover one.
Any ideas would be gratefully appreciated.


Ken Michalik
Kraft Foods

---------------------------------------------------------------------------------
Welcome to the IDUG DB2-L list. To unsubscribe, go to the archives and home page at http://www.idugdb2-l.org/archives/db2-l.html. From that page select "Join or Leave the list". The IDUG DB2-L FAQ is at http://www.idugdb2-l.org. The IDUG List Admins can be reached at [login to unmask email] Find out the latest on IDUG conferences at http://conferences.idug.org/index.cfm

Lance Jackson

Re: Java DB2PROFC question
(in response to Ken Michalik)
Ken, are you running DB2PROFC from within the directory where the
serialized profile exists?



-----Original Message-----
From: DB2 Data Base Discussion List [mailto:[login to unmask email] On
Behalf Of Michalik, Ken
Sent: Wednesday, January 14, 2004 6:12 PM
To: [login to unmask email]
Subject: Java DB2PROFC question

I've been trying to get an SQLJ program to run in OS/390 USS.
SQLJ and JAVAC work fine, and I would think that DB2PROFC would be just
a
formality.
When I get to DB2PROFC, however, I get things like:

-> Error: unable to customize profile MvseSQLJ_SJProfile0.ser

java.lang.ClassNotFoundException: MvseSQLJ_SJProfile0

at java.net.URLClassLoader.findClass(URLClassLoader.java:240)

at java.lang.ClassLoader.loadClass(ClassLoader.java:518)

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:440)

at java.lang.ClassLoader.loadClass(ClassLoader.java:450)

at java.lang.Class.forName1(Native Method)

at java.lang.Class.forName(Class.java:142)

at
sqlj.runtime.profile.util.DataCustomizer.customizeEntry(DataCustomize
r.java:195)

at.....

I would guess that there is some path parameter hidden somewhere, but I
couldn't discover one.
Any ideas would be gratefully appreciated.


Ken Michalik
Kraft Foods

------------------------------------------------------------------------
---------
Welcome to the IDUG DB2-L list. To unsubscribe, go to the archives and
home page at http://www.idugdb2-l.org/archives/db2-l.html. From that
page select "Join or Leave the list". The IDUG DB2-L FAQ is at
http://www.idugdb2-l.org. The IDUG List Admins can be reached at
[login to unmask email] Find out the latest on IDUG conferences
at http://conferences.idug.org/index.cfm

---------------------------------------------------------------------------------
Welcome to the IDUG DB2-L list. To unsubscribe, go to the archives and home page at http://www.idugdb2-l.org/archives/db2-l.html. From that page select "Join or Leave the list". The IDUG DB2-L FAQ is at http://www.idugdb2-l.org. The IDUG List Admins can be reached at [login to unmask email] Find out the latest on IDUG conferences at http://conferences.idug.org/index.cfm

Michael Shields

Re: Java DB2PROFC question
(in response to Lance Jackson)
I had the same issue.
The following worked for me. Hopefully, it'll work for you as well.

Define a directory on 390 the way it is defined in you sqlj file.
If the sqlj file is found in package 'com.blah.moreblah'
You need to go to your root directory and setup directories 'mkdir com' --> 'mkdir blah' --> 'mkdir moreblah', then 'cd ~' back to your root directory where you'll execute 'db2profc -pgmname=xxxxxxxx com/blah/moreblah/blahProfile0'.

Make sense?



-----Original Message-----
From: DB2 Data Base Discussion List [mailto:[login to unmask email]On
Behalf Of Lance D. Jackson
Sent: Wednesday, January 14, 2004 8:51 PM
To: [login to unmask email]
Subject: Re: Java DB2PROFC question


Ken, are you running DB2PROFC from within the directory where the
serialized profile exists?



-----Original Message-----
From: DB2 Data Base Discussion List [mailto:[login to unmask email] On
Behalf Of Michalik, Ken
Sent: Wednesday, January 14, 2004 6:12 PM
To: [login to unmask email]
Subject: Java DB2PROFC question

I've been trying to get an SQLJ program to run in OS/390 USS.
SQLJ and JAVAC work fine, and I would think that DB2PROFC would be just
a
formality.
When I get to DB2PROFC, however, I get things like:

-> Error: unable to customize profile MvseSQLJ_SJProfile0.ser

java.lang.ClassNotFoundException: MvseSQLJ_SJProfile0

at java.net.URLClassLoader.findClass(URLClassLoader.java:240)

at java.lang.ClassLoader.loadClass(ClassLoader.java:518)

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:440)

at java.lang.ClassLoader.loadClass(ClassLoader.java:450)

at java.lang.Class.forName1(Native Method)

at java.lang.Class.forName(Class.java:142)

at
sqlj.runtime.profile.util.DataCustomizer.customizeEntry(DataCustomize
r.java:195)

at.....

I would guess that there is some path parameter hidden somewhere, but I
couldn't discover one.
Any ideas would be gratefully appreciated.


Ken Michalik
Kraft Foods

------------------------------------------------------------------------
---------
Welcome to the IDUG DB2-L list. To unsubscribe, go to the archives and
home page at http://www.idugdb2-l.org/archives/db2-l.html. From that
page select "Join or Leave the list". The IDUG DB2-L FAQ is at
http://www.idugdb2-l.org. The IDUG List Admins can be reached at
[login to unmask email] Find out the latest on IDUG conferences
at http://conferences.idug.org/index.cfm

---------------------------------------------------------------------------------
Welcome to the IDUG DB2-L list. To unsubscribe, go to the archives and home page at http://www.idugdb2-l.org/archives/db2-l.html. From that page select "Join or Leave the list". The IDUG DB2-L FAQ is at http://www.idugdb2-l.org. The IDUG List Admins can be reached at [login to unmask email] Find out the latest on IDUG conferences at http://conferences.idug.org/index.cfm

---------------------------------------------------------------------------------
Welcome to the IDUG DB2-L list. To unsubscribe, go to the archives and home page at http://www.idugdb2-l.org/archives/db2-l.html. From that page select "Join or Leave the list". The IDUG DB2-L FAQ is at http://www.idugdb2-l.org. The IDUG List Admins can be reached at [login to unmask email] Find out the latest on IDUG conferences at http://conferences.idug.org/index.cfm