199 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 3
Employers, please respond to all job applications. You are damaging your company!!
Tue, Dec 27th 2016 2
DB2 10.5 Install on Red Hat
Fri, Jul 29th 2016 3
Social Connections Conference Toronto: Early bird expiring soon
Tue, Mar 29th 2016 4
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 1
SocialBiz User Group is dead, long live IBM Social Business User Community
Mon, Feb 15th 2016 4
Top 10
WebSphere nodes no longer syncing
Fri, Jul 31st 2015 8
IBM Connections 4.5 CR4 brings new functionalities
Tue, Apr 1st 2014 5
How to change a password on AIX as an admin without following the password policy
Thu, Jun 5th 2014 5
IBM WebSphere on Raspberry PI
Fri, Sep 5th 2014 5
Unable to upgrade IBM Content Navigator to FP5
Wed, Dec 23rd 2015 5
Speaking at Engage conference in Eindhoven
Wed, Mar 2nd 2016 5
Our IBM Connect Session is Online – “Make Your IBM Connections Deployment Your Own: Customize It!”
Thu, Jan 30th 2014 4
My presentation from the Engage conference
Fri, Mar 21st 2014 4
Social Connections 9 preparations well on their way
Thu, Jul 16th 2015 4
SocialBiz User Group is dead, long live IBM Social Business User Community
Mon, Feb 15th 2016 4


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
4 hits



Recent Blog Posts
4
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
2
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
3
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