The moose likes JForum and the fly likes Export jforum project Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JForum
Bookmark "Export jforum project" Watch "Export jforum project" New topic

Export jforum project

Migrated From
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424

I have my jforum project and i want to host it on another distant server
so i have copied the jforum folder contained in the webapps of my tomcat to the webapps of the other server
and i have copied the database folder jforum from wamp/bin/mysql/data to the wamp of the other server
but it doesn't work here is the stack trace of the exception throwed by the server:

what should i do, is there another way to export a jforum project?
thanks for helping
[originally posted on by walido]
Migrated From
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
The basic problem seems to be connecting to your database server.

I don't think that a MySQL database and user information can be copied by just moving the Data directory. Maybe it can, but that doesn't seem like a good way to do it. Especially if there is ANY version or patch differences between the systems.

Can you verify that your jforum database and information is available on the remote server? E.g., thru command line mysql calls or web admin tools (like PhPMySQLAdmin).

It could be a problem with database user id not being allowed to connect from the application server as well. MySQL is picky about such things.

You might also need to check that the DB connection URL in your jforum-custom.conf file is what is needed on the remote server. E.g., if the MySQL server is on a different machine or port.
[originally posted on by monroe]
Migrated From
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Thanks it's done
that exception was throwed because of the export of the DB the tables was incomplete ,so i tried to do the export by script not by copying and it worked just fine
Thanks monroe you have been a great help
[originally posted on by walido]
Nancy James

Joined: Oct 23, 2014
Posts: 9
I have the same Database problem with Jforum. Am using struts2 application. Am not sure about jforum-custom.config file. i don know what to put in that file. I checked username and password. Do i want to change anything in SystemGlobals. properties file?
Also while starting Tomcat server i got the following error message:
java.lang.Exception: Could not load com/mysql/jdbc/ResultSet.class
at com.opensymphony.xwork2.util.finder.ClassFinder.readClassDef(
at com.opensymphony.xwork2.util.finder.ClassFinder.access$400(
at com.opensymphony.xwork2.util.finder.ClassFinder$InfoBuildingVisitor.extractSuperInterfaces(
at com.opensymphony.xwork2.util.finder.ClassFinder$InfoBuildingVisitor.visit(
at org.objectweb.asm.xwork.ClassReader.accept(Unknown Source)
at org.objectweb.asm.xwork.ClassReader.accept(Unknown Source)
at com.opensymphony.xwork2.util.finder.ClassFinder.readClassDef(
at com.opensymphony.xwork2.util.finder.ClassFinder.<init>(
at org.apache.struts2.convention.PackageBasedActionConfigBuilder.findActions(
at org.apache.struts2.convention.PackageBasedActionConfigBuilder.buildActionConfigs(
at org.apache.struts2.convention.ClasspathPackageProvider.loadPackages(
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(
at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(
at org.apache.struts2.dispatcher.Dispatcher.init(
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(
at org.apache.catalina.core.ApplicationFilterConfig.<init>(
at org.apache.catalina.core.StandardContext.filterStart(
at org.apache.catalina.core.StandardContext.start(
at org.apache.catalina.core.ContainerBase.start(
at org.apache.catalina.core.StandardHost.start(
at org.apache.catalina.core.ContainerBase.start(
at org.apache.catalina.core.StandardEngine.start(
at org.apache.catalina.core.StandardService.start(
at org.apache.catalina.core.StandardServer.start(
at org.apache.catalina.startup.Catalina.start(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(
at org.apache.catalina.startup.Bootstrap.main(

Please help . Am working it for 3 days more....
subject: Export jforum project
It's not a secret anymore!