• 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
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Error when running php2BB to JForum migration script (noClassDefFoundError)

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am having a problem testing out the phpBB2 to JForum migration script.
The documentation for this is listed here:
http://www.jforum.net/doc/Migration

First, the documentation is out of date. It says that phpbb2jforum.bat is found in /tools/phpbb2jforum/, but I found it in /tools/bin/ instead.

Second, when I ran the migration script, it threw an exception:
C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\jforum2\tools\bin>phpBB2JForum.bat C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps
\jforum2

C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\jforum2\tools\bin>java -cp bin;lib\mysql-connector-java-3.0.15-ga-bin.jar net.jforum.tools.phpbb2
jforum.Main C:\Program Files\Apache Software
Exception in thread "main" java.lang.NoClassDefFoundError: net/jforum/tools/phpb
b2jforum/Main


I'm not a Java programmer, so can anybody tell me what has happened here?
There is a Main.class file in C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\jforum2\tools\bin\net\jforum\tools\phpb
b2jforum\, so I don't know why this exception is being generated.

Thank you for reading this.
[originally posted on jforum.net by Stephen]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Stephen wrote:Hi,
I am having a problem testing out the phpBB2 to JForum migration script.
The documentation for this is listed here:
http://www.jforum.net/doc/Migration



I founded the same kind of errors!

1. MODIFY .bat:

java -cp %classpath%;bin;..\mysql-connector-java-5.0.4-bin.jar;..\WEB-INF\classes;..\WEB-INF\lib\log4j-1.2.12.jar;"C:\java\os\Apache Tomcat 6.0.14\webapps\forum\WEB-INF\lib\commons-lang-2.3.jar" net.jforum.tools.phpbb2jforum.Main %1 %2 %3

2. copy mysql connection jar (like mysql-connector-java-5.0.4-bin.jar) into jforum dir.

2. execute AFTER
..\webapps\jforum\tools>bin\phpbb2JForum.bat "C:\jav
a\os\Apache Tomcat 6.0.14\webapps\jforum"

3. Change dirs into your dir paths

4. phpbb*tables should exists and jforum tables also

5. Modify SystemGlobals.properties below tools/bin

6. (I don't why, but): if got errors after exectuting .bat (phpbb2JForum.bat)

6.1 create dir phpbb2jforum\resource below jforum
6.2 copy files and dirs from tools\bin into phpbb2jforum\resource

Hope this helps and developers changet the .bat file!

Tuomas
[originally posted on jforum.net by tkassila]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
Thanks for finding this out. Ah, so the batch file was bugged. Let me go modify the batch file and see what happens.
[originally posted on jforum.net by Stephen]
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!