203 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 4
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 1
Impossible to launch open in Mobile link on iOS 9.2.1 with Cnx 4.5 backend
Thu, Feb 18th 2016 5
SocialBiz User Group is dead, long live IBM Social Business User Community
Mon, Feb 15th 2016 3
Top 10
Function keys not working on AIX (smitty) when using Putty
Thu, May 8th 2014 8
How to change a password on AIX as an admin without following the password policy
Thu, Jun 5th 2014 8
@Mentions not working on Connections 4.5 CR3
Fri, Mar 21st 2014 7
Scripting Connections wsadmin commands in a clustered environment
Fri, Aug 21st 2015 7
Social Connections Conference Toronto: Early bird expiring soon
Tue, Mar 29th 2016 7
IBM Champion 2016
Tue, Nov 24th 2015 6
Social Connections Stuttgart agenda published
Fri, Oct 2nd 2015 5
Impossible to launch open in Mobile link on iOS 9.2.1 with Cnx 4.5 backend
Thu, Feb 18th 2016 5
DB2 10.5 Install on Red Hat
Fri, Jul 29th 2016 5
Our IBM Connect Session is Online – “Make Your IBM Connections Deployment Your Own: Customize It!”
Thu, Jan 30th 2014 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
4
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




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