aspose file tools*
The moose likes JForum and the fly likes Eclipse and Jforum Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JForum
Bookmark "Eclipse and Jforum" Watch "Eclipse and Jforum" New topic
Author

Eclipse and Jforum

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Hello,

I have checked out the jforum code from the CVS but i dont know how to run it in my eclipse now. can somebody help me with this or point me to a tutorial which can help me.

Thanks,
Ankit.
[originally posted on jforum.net by ankitoshniwal]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
jforum is generally built by the build.xml ant script. However, it's no hard to set up eclipse to compile jforum.

First, in the Eclipse build properties, you need to tell Eclipse that the src directory is a source directory. For convenience, you'll want to set the classes directory to the WEB-INF/classes directory.

Next, you'll need to add all the jars that jForum is dependant on. The easy way to do this is to get the source distribution zip. It should have all the jars in it.

Add all the jars in the WEB-INF/lib directory to your build path. Then add the jars in the lib directory (these are things that are not needed in production or provided by the app engine. You can either point to them in some external location or just import them into your Eclipse project.

If you're using Tomcat, one trick is to set up a jforum.xml context file in your config/Catalina/localhost directory so that the jforum webapp context uses your Eclipse root directory for it's doc directory. If you have Tomcat set up to autoload on class changes, this make for a nice development environment.
[originally posted on jforum.net by monroe]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
So you are basically saying that i need to do changes in my build.xml that is in these things

<property name="project.name" value="JForum" />
<property name="project.title" value="JForum API" />
<property name="author" value="JForum Team - http://www.jforum.net/team.jsp" />
<property name="copyright" value="(c) JForum Team" />
<property name="version" value="2.1.8" />
<property name="filename" value="jforum-${version}" />
<property name="warfile" value="${filename}.war" />
<property name="srcfile" value="${filename}-src.zip"/>
<property name="javadoc.packages" value="net.jforum.*" />

according my environment.

I am sorry for this question because i am totally new to this and we want to use Jforum to create out college project.

Thanks,
Ankit.
[originally posted on jforum.net by ankitoshniwal]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Hi i was able to pass through the step where we have to change build.xml to point to my local directories, but now when i deploy the war file and go to http;//localhost:8080/jforum, i get this error, you can see it in the attached file error.txt (the errors were a lot and hence i copied them to another file).

In short this is the error i am getting is

Attempted reconnect 3 times. Giving up.
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:888)
at com.mysql.jdbc.Connection.createNewIO(Connection.java:2838)
at com.mysql.jdbc.Connection.<init>(Connection.java:1531)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266)
at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:120)
at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:143)
at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:132)
at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:129)
at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:862)
at com.mchange.v2.resourcepool.BasicResourcePool.access$700(BasicResourcePool.java:33)
at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1527)
at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547)


seems like a mysql exception and hence i checked my mysql.properties file and the contents of it are here:

#Wed Oct 10 14:26:58 BRT 2007
database.support.autokeys=true
database.driver.name=mysql
database.connection.pool.timeout=5000
database.connection.dbname=jforum_teste
database.support.subqueries=true
dao.driver=net.jforum.dao.mysql.MysqlDataAccessDriver
mysql.unicode=
database.connection.pool.min=5
database.connection.password=sasa
database.connection.pool.max=10
database.connection.username=root
dbencoding=utf-8
database.connection.port=3306
dbunicode=true
database.connection.host=localhost
database.connection.driver=com.mysql.jdbc.Driver
database.connection.string=jdbc\:mysql\://${database.connection.host}\:${database.connection.port}/${database.connection.dbname}?user\=${database.connection.username}&password\=${database.connection.password}&autoReconnect\=true${mysql.unicode}${mysql.encoding}&useNewIO\=false&zeroDateTimeBehavior\=convertToNull&useServerPrepStmts\=false&dumpQueriesOnException\=true&jdbcCompliantTruncation\=false
mysql.encoding=

can you suggest some solution for this?

Thanks,
Ankit.

[originally posted on jforum.net by ankitoshniwal]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Ok i had the issue resolved, thanks a lot.

Thanks,
Ankit....
[originally posted on jforum.net by ankitoshniwal]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
what u did for that
[originally posted on jforum.net by kcp]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Hello,

I have checked out the jforum code from the CVS but i dont know how to run it in my eclipse now. can somebody help me with this or point me to a tutorial which can help me.
I am very pleased with the thought and don�t feel like adding anything in it. It�s a perfect answer.

kelvin

Baby Gear
[originally posted on jforum.net by kelvin]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Eclipse and Jforum