193 Lotus blogs updated hourly. Who will post next? Home | Blogs | Search | About 
 
Latest 7 Posts
Error running a Java migration from 5.0 to 5.5 on Linux
Tue, Mar 14th 2017 9
Employers, please respond to all job applications. You are damaging your company!!
Tue, Dec 27th 2016 6
DB2 10.5 Install on Red Hat
Fri, Jul 29th 2016 5
Social Connections Conference Toronto: Early bird expiring soon
Tue, Mar 29th 2016 7
Speaking at Engage conference in Eindhoven
Wed, Mar 2nd 2016 5
Impossible to launch open in Mobile link on iOS 9.2.1 with Cnx 4.5 backend
Thu, Feb 18th 2016 8
SocialBiz User Group is dead, long live IBM Social Business User Community
Mon, Feb 15th 2016 7
Top 10
How to change a password on AIX as an admin without following the password policy
Thu, Jun 5th 2014 10
Error running a Java migration from 5.0 to 5.5 on Linux
Tue, Mar 14th 2017 9
Function keys not working on AIX (smitty) when using Putty
Thu, May 8th 2014 8
Impossible to launch open in Mobile link on iOS 9.2.1 with Cnx 4.5 backend
Thu, Feb 18th 2016 8
SocialBiz User Group is dead, long live IBM Social Business User Community
Mon, Feb 15th 2016 7
Social Connections Conference Toronto: Early bird expiring soon
Tue, Mar 29th 2016 7
How to update the IBM Connections Favicons
Tue, Sep 30th 2014 6
Employers, please respond to all job applications. You are damaging your company!!
Tue, Dec 27th 2016 6
My presentation from the Engage conference
Fri, Mar 21st 2014 5
I will finally make it to IconUK (I hope)
Fri, Sep 18th 2015 5


Error running a Java migration from 5.0 to 5.5 on Linux
Twitter Google+ Facebook LinkedIn Addthis Email Gmail Flipboard Reddit Tumblr WhatsApp StumbleUpon Yammer Evernote Delicious
wannes@ramsit.com    

Yesterday I was trying to perform the Java upgrade to the Homepage database from 5.0 to 5.5 on a linux server. The command failed and whatever I tried, it kept on failing.

It seemed to interpret the jdbc url as a Java class and then threw an error it could not find it… obviously

The command I ran was taken from the technote the official documentation is pointing to

the command I tried to ran was:

jvm/linux/jre/bin/java -Dfile.encoding=UTF-8 -Xmx1024m -classpath /apps/ibm/data/DBT_HOME/db2jcc.jar:lib/news.migrate.jar:lib/news.core.data.jar:lib/lc.dbmigration.default.jar:lib/commons-logging-1.0.4.jar:com.ibm.lconn.news.migration.next60.RestoreStatusUpdateMigration jdbc:db2:/cnxdb1.dev.xxxx:50100/HOMEPAGE db2inst1somepassword production > java.out.log 2>&1

It failed with following error:

Exception in thread "main" java.lang.NoClassDefFoundError: jdbc:db2:..cnxdb1.dev.xxxx:50100.HOMEPAGE
Caused by: java.lang.ClassNotFoundException: jdbc:db2:..cnxdb1.dev.echonet:50100.HOMEPAGE
at java.net.URLClassLoader.findClass(URLClassLoader.java:434)
at java.lang.ClassLoader.loadClass(ClassLoader.java:677)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:358)
at java.lang.ClassLoader.loadClass(ClassLoader.java:643)
Could not find the main class: jdbc:db2://cnxdb1.dev.xxxx:50100/HOMEPAGE.  Program will exit.

Thanks to Nico
I learned that the : after lib/commons-logging-1.0.4.jar must be replaced with a space

So this is the correct command to run:

jvm/linux/jre/bin/java -Dfile.encoding=UTF-8 -Xmx1024m -classpath /apps/ibm/data/DBT_HOME/db2jcc.jar:lib/news.migrate.jar:lib/news.core.data.jar:lib/lc.dbmigration.default.jar:lib/commons-logging-1.0.4.jar com.ibm.lconn.news.migration.next60.RestoreStatusUpdateMigration jdbc:db2:/cnxdb1.dev.xxxx:50100/HOMEPAGE db2inst1somepassword production > java.out.log 2>&1

 



---------------------
http://www.ramsit.com/error-running-a-java-migration-from-5-0-to-5-5-on-linux/
Mar 14, 2017
10 hits



Recent Blog Posts
10
Error running a Java migration from 5.0 to 5.5 on Linux
Tue, Mar 14th 2017 1:23p   Wannes Rams
Yesterday I was trying to perform the Java upgrade to the Homepage database from 5.0 to 5.5 on a linux server. The command failed and whatever I tried, it kept on failing. It seemed to interpret the jdbc url as a Java class and then threw an error it could not find it… obviously The command I ran was taken from the technote the official documentation is pointing to the command I tried to ran was: jvm/linux/jre/bin/java -Dfile.encoding=UTF-8 -Xmx1024m -classpath /apps/ibm/data/DBT_HOME/db2j
6
Employers, please respond to all job applications. You are damaging your company!!
Tue, Dec 27th 2016 9:33a   Wannes Rams
To all HR departments, recruiters and small business owners out there. please respond to all job applications you receive. People that apply for a new job are humans and deserve to be treated that way. A lot of them put a lot of energy in applying for a new job. They are out of a job and really need one to be able to pay the bills and raise their children, they are currently in a bad job and need the change, they have taken a day off for their interview, …. Please threat those people with
5
DB2 10.5 Install on Red Hat
Fri, Jul 29th 2016 12:39p   Wannes Rams
We often complain about IBM documentation (and sometimes for good reasons) but there are moments that I am really grateful about the technotes from IBM. Lately the amount seems to increase and the new formatting corresponding to the new IBM website layout is great. I was installing DB2 10.5 on a Linux box and got an error /apps/ibm/sources/server/db2/linuxamd64/install/db2setup: line 626: /tmp/db2.tmp.2522/db2/linuxamd64/install//db2chgpath: Permission denied /apps/ibm/sources/server/db2/lin




Created and Maintained by Yancy Lent - About - Planet Lotus Blog - Advertising - Mobile Edition