powered by Jive Software

Build/compile openfire from source code (Github)

Hello Developers,

I am a developer, i am trying t o build openfire from source code and start developing some plugins.

So i cloned the github repository: GitHub - igniterealtime/Openfire: A XMPP server licensed under the Open Source Apache License.

So its a clean Openfire.

I followed the build guide from:

Working with Spark/Openfire source in Eclipse (GitHub)

Openfire: Building the Source

Environment:

OS: Mac OS X Yosemite

Git Tool: SourceTree

Java SDK: Java JDK 1.7

IDE: Eclipse Mars.1 (4.5.1)

After opening the project with eclipse a list of problems displayed :

Screen Shot 2016-02-11 at 10.07.28 PM.png

i think there is some missing JARs files, i searched for them within the repo but could not find any.

i can download these libs from internet but the problem that i don’t know its required version.

http://igniterealtime.org/builds/openfire/docs/latest/documentation/source-build .htmlbefor i talk with you guys, i googled the problem and did not find any solution.

can anyone help me, i will be thankful.

I think you are getting those old libraries form this file https://github.com/igniterealtime/Openfire/blob/master/build/eclipse/classpath

But i don’t know why. I’m cloning with Egit in Eclipse itself and i don’t get such errors (on Windows 7).

You can probably configure the Buildpath in Eclipse and remove libraries with errors from your classpath. But wait for some real developer to advise.

All the libraries that are needed to compile Openfire itself are located in /build/lib/ (and subdirectories thereof).

Individual plugins can have additional libraries. If so, they are located in /src/plugins//lib/

Have a look at where you have compilation problems: if it’s in the Openfire source, you’ll need to add libraries from /build/lib/ to your classpath. If you have problems compiling plugin code, then you’re likely missing libraries from the /lib/ folder of that specific plugin on your classpath.

No, i do not configure Buildpath in Eclipse as it told before its a clean copy.

I tried to remove these libraries reference from Buildpath, but unfortunately a missing class problems appeared.

I add all libs within /build/lib/ (and subdirectories) to Buildpath in Eclipse, and no complier error appear.

Then i start the ant build task, and its work good.

ty @Guus der Kinderen for your help.

i think the problem was in eclipse classpath file not updating anymore.

Build Task: ant build openfire

Console:

Buildfile: /Users/MKD/Documents/GitHub/Java/Openfire/build/build.xml

init:

compile:

jspc:

-jspc-impl:

[java] [main] INFO org.eclipse.jetty.util.log - Logging initialized @95ms

[copy] Copying 1 file to /Users/MKD/Documents/GitHub/Java/Openfire/work/webapp/WEB-INF

[copy] Copying 12 files to /Users/MKD/Documents/GitHub/Java/Openfire/work/webapp/WEB-INF

-i18n:

openfire:

[jar] Building jar: /Users/MKD/Documents/GitHub/Java/Openfire/work/lib/openfire.jar

[jar] META-INF/LICENSE.txt already added, skipping

[jar] META-INF/NOTICE.txt already added, skipping

[jar] META-INF/LICENSE.txt already added, skipping

[jar] META-INF/NOTICE.txt already added, skipping

[jar] META-INF/LICENSE.txt already added, skipping

[jar] about.html already added, skipping

[jar] META-INF/LICENSE.txt already added, skipping

[jar] about.html already added, skipping

[jar] about.html already added, skipping

[jar] about.html already added, skipping

[jar] about.html already added, skipping

[jar] about.html already added, skipping

[jar] about.html already added, skipping

[jar] about.html already added, skipping

[jar] about.html already added, skipping

[jar] about.html already added, skipping

[jar] about.html already added, skipping

[jar] about.html already added, skipping

[jar] about.html already added, skipping

[jar] META-INF/LICENSE already added, skipping

[jar] META-INF/NOTICE already added, skipping

[jar] META-INF/DEPENDENCIES already added, skipping

[jar] META-INF/LICENSE already added, skipping

[jar] META-INF/NOTICE already added, skipping

[jar] META-INF/DEPENDENCIES already added, skipping

[jar] META-INF/LICENSE already added, skipping

[jar] META-INF/NOTICE already added, skipping

[jar] META-INF/DEPENDENCIES already added, skipping

[jar] META-INF/LICENSE already added, skipping

[jar] META-INF/NOTICE already added, skipping

[jar] META-INF/DEPENDENCIES already added, skipping

[jar] META-INF/LICENSE already added, skipping

[jar] META-INF/NOTICE already added, skipping

[jar] Warning: selected jar files include a META-INF/INDEX.LIST which will be replaced by a newly generated one.

[jar] META-INF/DEPENDENCIES already added, skipping

[jar] META-INF/LICENSE already added, skipping

[jar] META-INF/NOTICE already added, skipping

[jar] META-INF/DEPENDENCIES already added, skipping

[jar] META-INF/LICENSE already added, skipping

[jar] META-INF/NOTICE already added, skipping

[jar] META-INF/services/javax.servlet.ServletContainerInitializer already added, skipping

[jar] about.html already added, skipping

[jar] about.html already added, skipping

[jar] META-INF/LICENSE already added, skipping

[jar] META-INF/NOTICE already added, skipping

[jar] META-INF/LICENSE already added, skipping

[jar] META-INF/NOTICE already added, skipping

[jar] javax/servlet/jsp/resources/jsp_2_0.xsd already added, skipping

[jar] javax/servlet/jsp/resources/jsp_2_1.xsd already added, skipping

[jar] javax/servlet/jsp/resources/jsp_2_2.xsd already added, skipping

[jar] javax/servlet/jsp/resources/jsp_2_3.xsd already added, skipping

[jar] javax/servlet/jsp/resources/jspxml_2_0.dtd already added, skipping

[jar] javax/servlet/jsp/resources/jspxml_2_0.xsd already added, skipping

[jar] javax/servlet/jsp/resources/web-jsptaglibrary_1_1.dtd already added, skipping

[jar] javax/servlet/jsp/resources/web-jsptaglibrary_1_2.dtd already added, skipping

[jar] javax/servlet/jsp/resources/web-jsptaglibrary_2_0.xsd already added, skipping

[jar] javax/servlet/jsp/resources/web-jsptaglibrary_2_1.xsd already added, skipping

[jar] META-INF/License.txt already added, skipping

[jar] META-INF/LICENSE.txt already added, skipping

[jar] about.html already added, skipping

[jar] about.html already added, skipping

[jar] about.html already added, skipping

[jar] about.html already added, skipping

[jar] about.html already added, skipping

[jar] META-INF/c-1_0-rt.tld already added, skipping

[jar] META-INF/c.tld already added, skipping

[jar] META-INF/fmt-1_0-rt.tld already added, skipping

[jar] META-INF/fmt.tld already added, skipping

[jar] META-INF/fn.tld already added, skipping

[jar] META-INF/permittedTaglibs.tld already added, skipping

[jar] META-INF/scriptfree.tld already added, skipping

[jar] META-INF/sql-1_0-rt.tld already added, skipping

[jar] META-INF/sql.tld already added, skipping

[jar] META-INF/x-1_0-rt.tld already added, skipping

[jar] META-INF/x.tld already added, skipping

[jar] org/apache/taglibs/standard/Version.class already added, skipping

[jar] org/apache/taglibs/standard/functions/Functions.class already added, skipping

[jar] org/apache/taglibs/standard/resources/Resources.class already added, skipping

[jar] org/apache/taglibs/standard/resources/Resources.properties already added, skipping

[jar] org/apache/taglibs/standard/resources/Resources_ja.properties already added, skipping

[jar] org/apache/taglibs/standard/tag/common/core/CatchTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/core/ChooseTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/core/DeclareTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/core/ForEachSupport.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/core/ForTokensSupport.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/core/ImportSupport$ImportResponseWrapper .class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/core/ImportSupport.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/core/NullAttributeException.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/core/OtherwiseTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/core/OutSupport.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/core/ParamParent.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/core/ParamSupport$ParamManager.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/core/ParamSupport.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/core/RedirectSupport.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/core/RemoveTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/core/SetSupport.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/core/UrlSupport.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/core/Util.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/core/WhenTagSupport.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/fmt/BundleSupport.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/fmt/FormatDateSupport.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/fmt/FormatNumberSupport.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/fmt/MessageSupport.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/fmt/ParamSupport.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/fmt/ParseDateSupport.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/fmt/ParseNumberSupport.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/fmt/RequestEncodingSupport.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/fmt/SetBundleSupport.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/fmt/SetLocaleSupport.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/fmt/SetTimeZoneSupport.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/fmt/TimeZoneSupport.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/sql/DataSourceUtil.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/sql/DataSourceWrapper.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/sql/DateParamTagSupport.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/sql/ParamTagSupport.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/sql/QueryTagSupport.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/sql/ResultImpl.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/sql/SetDataSourceTagSupport.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/sql/TransactionTagSupport.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/sql/UpdateTagSupport.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/xml/ExprSupport.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/xml/ForEachTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/xml/IfTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/xml/ParamSupport.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/xml/ParseSupport$JstlEntityResolver.clas s already added, skipping

[jar] org/apache/taglibs/standard/tag/common/xml/ParseSupport.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/xml/SetTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/xml/TransformSupport$JstlUriResolver.cla ss already added, skipping

[jar] org/apache/taglibs/standard/tag/common/xml/TransformSupport$SafeWriter.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/xml/TransformSupport.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/xml/WhenTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/rt/core/ForEachTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/rt/core/ForTokensTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/rt/core/IfTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/rt/core/ImportTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/rt/core/OutTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/rt/core/ParamTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/rt/core/RedirectTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/rt/core/SetTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/rt/core/UrlTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/rt/core/WhenTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/rt/fmt/BundleTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/rt/fmt/FormatDateTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/rt/fmt/FormatNumberTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/rt/fmt/MessageTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/rt/fmt/ParamTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/rt/fmt/ParseDateTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/rt/fmt/ParseNumberTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/rt/fmt/RequestEncodingTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/rt/fmt/SetBundleTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/rt/fmt/SetLocaleTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/rt/fmt/SetTimeZoneTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/rt/fmt/TimeZoneTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/rt/sql/DateParamTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/rt/sql/ParamTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/rt/sql/QueryTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/rt/sql/SetDataSourceTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/rt/sql/TransactionTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/rt/sql/UpdateTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/rt/xml/ExprTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/rt/xml/ParamTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/rt/xml/ParseTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/rt/xml/TransformTag.class already added, skipping

[jar] org/apache/taglibs/standard/tei/DeclareTEI.class already added, skipping

[jar] org/apache/taglibs/standard/tei/ForEachTEI.class already added, skipping

[jar] org/apache/taglibs/standard/tei/ImportTEI.class already added, skipping

[jar] org/apache/taglibs/standard/tei/Util.class already added, skipping

[jar] org/apache/taglibs/standard/tei/XmlParseTEI.class already added, skipping

[jar] org/apache/taglibs/standard/tei/XmlTransformTEI.class already added, skipping

[jar] org/apache/taglibs/standard/tlv/JstlBaseTLV.class already added, skipping

[jar] org/apache/taglibs/standard/tlv/JstlCoreTLV$1.class already added, skipping

[jar] org/apache/taglibs/standard/tlv/JstlCoreTLV$Handler.class already added, skipping

[jar] org/apache/taglibs/standard/tlv/JstlCoreTLV.class already added, skipping

[jar] org/apache/taglibs/standard/tlv/JstlFmtTLV$1.class already added, skipping

[jar] org/apache/taglibs/standard/tlv/JstlFmtTLV$Handler.class already added, skipping

[jar] org/apache/taglibs/standard/tlv/JstlFmtTLV.class already added, skipping

[jar] org/apache/taglibs/standard/tlv/JstlSqlTLV$1.class already added, skipping

[jar] org/apache/taglibs/standard/tlv/JstlSqlTLV$Handler.class already added, skipping

[jar] org/apache/taglibs/standard/tlv/JstlSqlTLV.class already added, skipping

[jar] org/apache/taglibs/standard/tlv/JstlXmlTLV$1.class already added, skipping

[jar] org/apache/taglibs/standard/tlv/JstlXmlTLV$Handler.class already added, skipping

[jar] org/apache/taglibs/standard/tlv/JstlXmlTLV.class already added, skipping

[jar] org/jivesoftware/util/FastDateFormat$CharacterLiteral.class already added, skipping

[jar] org/jivesoftware/util/FastDateFormat$NumberRule.class already added, skipping

[jar] org/jivesoftware/util/FastDateFormat$PaddedNumberField.class already added, skipping

[jar] org/jivesoftware/util/FastDateFormat$Pair.class already added, skipping

[jar] org/jivesoftware/util/FastDateFormat$Rule.class already added, skipping

[jar] org/jivesoftware/util/FastDateFormat$StringLiteral.class already added, skipping

[jar] org/jivesoftware/util/FastDateFormat$TextField.class already added, skipping

[jar] org/jivesoftware/util/FastDateFormat$TimeZoneDisplayKey.class already added, skipping

[jar] org/jivesoftware/util/FastDateFormat$TimeZoneRule.class already added, skipping

[jar] org/jivesoftware/util/FastDateFormat$TwelveHourField.class already added, skipping

[jar] org/jivesoftware/util/FastDateFormat$TwentyFourHourField.class already added, skipping

[jar] org/jivesoftware/util/FastDateFormat$TwoDigitMonthField.class already added, skipping

[jar] org/jivesoftware/util/FastDateFormat$TwoDigitNumberField.class already added, skipping

[jar] org/jivesoftware/util/FastDateFormat$TwoDigitYearField.class already added, skipping

[jar] org/jivesoftware/util/FastDateFormat$UnpaddedMonthField.class already added, skipping

[jar] org/jivesoftware/util/FastDateFormat$UnpaddedNumberField.class already added, skipping

[jar] org/jivesoftware/util/FastDateFormat.class already added, skipping

[jar] about.html already added, skipping

[jar] about.html already added, skipping

[jar] about.html already added, skipping

[jar] about.html already added, skipping

[jar] about.html already added, skipping

openfireHome:

[mkdir] Created dir: /Users/MKD/Documents/GitHub/Java/Openfire/target/openfire

[copy] Copying 3 files to /Users/MKD/Documents/GitHub/Java/Openfire/target/openfire

[echo] No custom config here

[copy] Copying 152 files to /Users/MKD/Documents/GitHub/Java/Openfire/target/openfire/resources

[copy] Copying 3 files to /Users/MKD/Documents/GitHub/Java/Openfire/target/openfire/resources

[copy] Copying 3 files to /Users/MKD/Documents/GitHub/Java/Openfire/target/openfire/resources

[copy] Copying 18 files to /Users/MKD/Documents/GitHub/Java/Openfire/target/openfire/lib

adminPlugin:

[copy] Copying 1 file to /Users/MKD/Documents/GitHub/Java/Openfire/target/openfire/plugins

[copy] Copying 156 files to /Users/MKD/Documents/GitHub/Java/Openfire/target/openfire/plugins/admin/webapp

[copy] Copying 9 files to /Users/MKD/Documents/GitHub/Java/Openfire/target/openfire/plugins/admin/webapp

[copy] Copying 1 file to /Users/MKD/Documents/GitHub/Java/Openfire/target/openfire/plugins/admin/webapp/ WEB-INF/lib

spank:

[mkdir] Created dir: /Users/MKD/Documents/GitHub/Java/Openfire/target/openfire/resources/spank

[copy] Copying 2 files to /Users/MKD/Documents/GitHub/Java/Openfire/target/openfire/resources/spank

[copy] Copying 12 files to /Users/MKD/Documents/GitHub/Java/Openfire/target/openfire

[mkdir] Created dir: /Users/MKD/Documents/GitHub/Java/Openfire/target/openfire/logs

BUILD SUCCESSFUL

Total time: 20 seconds

—> Success Build

So second step was to run the server for the first time :

and a error log file generated :

================================================================================ =====

{openfire_target_dir}/log/error.log

2016.02.13 02:49:20 org.jivesoftware.openfire.container.AdminConsolePlugin - An exception occurred while trying to make available the admin console via HTTPS.

java.lang.NullPointerException

at org.jivesoftware.openfire.container.AdminConsolePlugin.startup(AdminConsolePlug in.java:141)

at org.jivesoftware.openfire.container.AdminConsolePlugin.initializePlugin(AdminCo nsolePlugin.java:241)

at org.jivesoftware.openfire.container.PluginManager.loadPlugin(PluginManager.java :447)

at org.jivesoftware.openfire.container.PluginManager.access$1(PluginManager.java:2 63)

at org.jivesoftware.openfire.container.PluginManager$PluginMonitor.run(PluginManag er.java:1037)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)

at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301 (ScheduledThreadPoolExecutor.java:178)

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Schedu ledThreadPoolExecutor.java:293)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

at java.lang.Thread.run(Thread.java:745)

================================================================================ =====

I traced this problem and i figured out why its appear.

It produced at line (org.jivesoftware.openfire.container.AdminConsolePlugin:141) because CertificateStoreManager Module not loaded yet because it first time and it works in setup mode.

Thats not a big deal for now, but the real problem is that when i tried to open the web console in browser at :

http://localhost:9090/index.jsp

================================================================================ =====Screen Shot 2016-02-13 at 2.57.13 AM.png

================================================================================ =====

i traced this problem by decompiling the admin.jar file

so the problem 1: JSP not initialized well, because its JspApplicationContext is null

I review the index.jsp code and its must redirect me to setup page for the first time.

So i open the link manually:

================================================================================ =====

http://localhost:9090/setup/index.jsp

HTTP ERROR 500

Problem accessing /setup/index.jsp. Reason:

Server Error

Caused by:

javax.servlet.ServletException: java.lang.NullPointerException

at org.jivesoftware.openfire.admin.setup.index_jsp._jspService(index_jsp.java:349)

at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)

at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)

at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1669)

at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:11 8)

at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)

at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1652)

at org.jivesoftware.util.LocaleFilter.doFilter(LocaleFilter.java:76)

at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1652)

at org.jivesoftware.util.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingF ilter.java:53)

at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1652)

at org.jivesoftware.admin.PluginFilter.doFilter(PluginFilter.java:80)

at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1652)

at org.jivesoftware.admin.AuthCheckFilter.doFilter(AuthCheckFilter.java:162)

at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1652)

at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)

at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)

at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)

at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:22 3)

at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:11 27)

at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)

at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185 )

at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:106 1)

at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)

at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandler Collection.java:215)

at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.jav a:110)

at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)

at org.eclipse.jetty.server.Server.handle(Server.java:499)

at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)

at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)

at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)

at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635 )

at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)

at java.lang.Thread.run(Thread.java:745)

Caused by: java.lang.NullPointerException

at org.jivesoftware.openfire.admin.setup.index_jsp._jspService(index_jsp.java:89)

… 34 more

Caused by:

java.lang.NullPointerException

at org.jivesoftware.openfire.admin.setup.index_jsp._jspService(index_jsp.java:89)

at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)

at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)

at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1669)

at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:11 8)

at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)

at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1652)

at org.jivesoftware.util.LocaleFilter.doFilter(LocaleFilter.java:76)

at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1652)

at org.jivesoftware.util.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingF ilter.java:53)

at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1652)

at org.jivesoftware.admin.PluginFilter.doFilter(PluginFilter.java:80)

at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1652)

at org.jivesoftware.admin.AuthCheckFilter.doFilter(AuthCheckFilter.java:162)

at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1652)

at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)

at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)

at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)

at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:22 3)

at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:11 27)

at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)

at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185 )

at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:106 1)

at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)

at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandler Collection.java:215)

at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.jav a:110)

at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)

at org.eclipse.jetty.server.Server.handle(Server.java:499)

at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)

at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)

at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)

at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635 )

at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)

at java.lang.Thread.run(Thread.java:745)

================================================================================ =====

After tracing the code as well:

So the problem 2: ServletContext is null

================================================================================ =====

Conclusion:

All the above errors within the generated code by the JSP, when it convert the *.jsp files to java classes and package it in jar file.

So I think the problem form first place in the included libraries with the openfire repo, or there is missing libraries should be downloaded.

I need some one from openfire developer to confirm, because there is no clear recent guide on how to build openfire from github repo with Eclipse IDE.

I read this thread

Re: Compiling Openfire 3.10.3 source - Docs seriously outdate/incorrect

and no one reply on how to build it successfully from source code.

its confusing i do not know where is the problem :

  • is it from lib files from repos ?

  • or from the way we building the code is wrong ?

  • etc …

where is the problem !!!

@wroot

@Guus der Kinderen

It is very easy to build Openfire from source: you get the source, go into the ‘build’ directory and execute: “ant openfire”. Assuming that you have Ant and a proper JDK installed, that’s it. It doesn’t get easier than that.

Your question relates to setting up a development environment for Openfire, using a IDE. That’s a lot different. The answer depends on the IDE used, its make and version number, and the personal preference of the developer.

I’ve given quite a bit of pointers in my earlier comment, which should serve as a good general guideline for setting up any IDE. Providing a lot more details will likely be very specific to someones exact situation, something that will vary from person to person, and is therefor hardly suitable for others. Time permitting, I’d be happy to help people out where possible, but at some point, you’ll need some basic knowledge about Java development to get started.

Your problem seems similar to one i had before Exceptions running latest version built in Eclipse

I was just updating the clone as usually in Eclipse and at some point it started failing, though i haven’t done anything with it (some older libs got into buildpath somehow, or they were left after the libs were removed from the repository). I have “fixed” that by wiping out my clone and cloning a fresh one.

I’m not a developer myself, so can’t tell why it happens and what to do. I have created a guide for such noobs like me, who wants to try changing something, testing a patch, etc. It works for me, not sure why it doesn’t for you. Maybe Eclipse behave differently on Mac. I’m using JDK 1.8, though it should work with 1.7 from what i know.

P.S. please, do not include our nicknames in a message. This way we get two notifications for one message, which is annoying.

Btw, you said you use Source Tree for Git. Try cloning it with Eclipse’s built-in Egit. Maybe Eclipse is having problems with clones done with other Git tools. Though it works fine for me when i clone with GitHub Desktop app (i can import such clone into Eclipse without problems).

Step 1: Downloading Source from repo.

Step 2: building openfire

Mohammeds-MacBook-Pro:build MKD$ pwd

/Users/MKD/Documents/GitHub/Java/Openfire/build

Mohammeds-MacBook-Pro:build MKD$ ant -version

Apache Ant™ version 1.9.6 compiled on June 29 2015

Mohammeds-MacBook-Pro:build MKD$ javac -version

javac 1.7.0_60

Mohammeds-MacBook-Pro:build MKD$ java -version

java version “1.7.0_60”

Java™ SE Runtime Environment (build 1.7.0_60-b19)

Java HotSpot™ 64-Bit Server VM (build 24.60-b09, mixed mode)

Mohammeds-MacBook-Pro:build MKD$ ant openfire

Buildfile: /Users/MKD/Documents/GitHub/Java/Openfire/build/build.xml

init:

compile:

jspc:

-jspc-impl:

[java] [main] INFO org.eclipse.jetty.util.log - Logging initialized @168ms

[copy] Copying 1 file to /Users/MKD/Documents/GitHub/Java/Openfire/work/webapp/WEB-INF

[copy] Copying 12 files to /Users/MKD/Documents/GitHub/Java/Openfire/work/webapp/WEB-INF

-i18n:

openfire:

[jar] Building jar: /Users/MKD/Documents/GitHub/Java/Openfire/work/lib/openfire.jar

[jar] META-INF/LICENSE.txt already added, skipping

[jar] META-INF/NOTICE.txt already added, skipping

[jar] META-INF/LICENSE.txt already added, skipping

[jar] META-INF/NOTICE.txt already added, skipping

[jar] META-INF/LICENSE.txt already added, skipping

[jar] about.html already added, skipping

[jar] META-INF/LICENSE.txt already added, skipping

[jar] about.html already added, skipping

[jar] about.html already added, skipping

[jar] about.html already added, skipping

[jar] about.html already added, skipping

[jar] about.html already added, skipping

[jar] about.html already added, skipping

[jar] about.html already added, skipping

[jar] about.html already added, skipping

[jar] about.html already added, skipping

[jar] about.html already added, skipping

[jar] about.html already added, skipping

[jar] about.html already added, skipping

[jar] META-INF/LICENSE already added, skipping

[jar] META-INF/NOTICE already added, skipping

[jar] META-INF/DEPENDENCIES already added, skipping

[jar] META-INF/LICENSE already added, skipping

[jar] META-INF/NOTICE already added, skipping

[jar] META-INF/DEPENDENCIES already added, skipping

[jar] META-INF/LICENSE already added, skipping

[jar] META-INF/NOTICE already added, skipping

[jar] META-INF/DEPENDENCIES already added, skipping

[jar] META-INF/LICENSE already added, skipping

[jar] META-INF/NOTICE already added, skipping

[jar] META-INF/DEPENDENCIES already added, skipping

[jar] META-INF/LICENSE already added, skipping

[jar] META-INF/NOTICE already added, skipping

[jar] Warning: selected jar files include a META-INF/INDEX.LIST which will be replaced by a newly generated one.

[jar] META-INF/DEPENDENCIES already added, skipping

[jar] META-INF/LICENSE already added, skipping

[jar] META-INF/NOTICE already added, skipping

[jar] META-INF/DEPENDENCIES already added, skipping

[jar] META-INF/LICENSE already added, skipping

[jar] META-INF/NOTICE already added, skipping

[jar] META-INF/services/javax.servlet.ServletContainerInitializer already added, skipping

[jar] about.html already added, skipping

[jar] about.html already added, skipping

[jar] META-INF/LICENSE already added, skipping

[jar] META-INF/NOTICE already added, skipping

[jar] META-INF/LICENSE already added, skipping

[jar] META-INF/NOTICE already added, skipping

[jar] javax/servlet/jsp/resources/jsp_2_0.xsd already added, skipping

[jar] javax/servlet/jsp/resources/jsp_2_1.xsd already added, skipping

[jar] javax/servlet/jsp/resources/jsp_2_2.xsd already added, skipping

[jar] javax/servlet/jsp/resources/jsp_2_3.xsd already added, skipping

[jar] javax/servlet/jsp/resources/jspxml_2_0.dtd already added, skipping

[jar] javax/servlet/jsp/resources/jspxml_2_0.xsd already added, skipping

[jar] javax/servlet/jsp/resources/web-jsptaglibrary_1_1.dtd already added, skipping

[jar] javax/servlet/jsp/resources/web-jsptaglibrary_1_2.dtd already added, skipping

[jar] javax/servlet/jsp/resources/web-jsptaglibrary_2_0.xsd already added, skipping

[jar] javax/servlet/jsp/resources/web-jsptaglibrary_2_1.xsd already added, skipping

[jar] META-INF/License.txt already added, skipping

[jar] META-INF/LICENSE.txt already added, skipping

[jar] about.html already added, skipping

[jar] about.html already added, skipping

[jar] about.html already added, skipping

[jar] about.html already added, skipping

[jar] about.html already added, skipping

[jar] META-INF/c-1_0-rt.tld already added, skipping

[jar] META-INF/c.tld already added, skipping

[jar] META-INF/fmt-1_0-rt.tld already added, skipping

[jar] META-INF/fmt.tld already added, skipping

[jar] META-INF/fn.tld already added, skipping

[jar] META-INF/permittedTaglibs.tld already added, skipping

[jar] META-INF/scriptfree.tld already added, skipping

[jar] META-INF/sql-1_0-rt.tld already added, skipping

[jar] META-INF/sql.tld already added, skipping

[jar] META-INF/x-1_0-rt.tld already added, skipping

[jar] META-INF/x.tld already added, skipping

[jar] org/apache/taglibs/standard/Version.class already added, skipping

[jar] org/apache/taglibs/standard/functions/Functions.class already added, skipping

[jar] org/apache/taglibs/standard/resources/Resources.class already added, skipping

[jar] org/apache/taglibs/standard/resources/Resources.properties already added, skipping

[jar] org/apache/taglibs/standard/resources/Resources_ja.properties already added, skipping

[jar] org/apache/taglibs/standard/tag/common/core/CatchTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/core/ChooseTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/core/DeclareTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/core/ForEachSupport.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/core/ForTokensSupport.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/core/ImportSupport$ImportResponseWrapper .class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/core/ImportSupport.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/core/NullAttributeException.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/core/OtherwiseTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/core/OutSupport.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/core/ParamParent.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/core/ParamSupport$ParamManager.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/core/ParamSupport.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/core/RedirectSupport.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/core/RemoveTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/core/SetSupport.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/core/UrlSupport.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/core/Util.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/core/WhenTagSupport.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/fmt/BundleSupport.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/fmt/FormatDateSupport.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/fmt/FormatNumberSupport.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/fmt/MessageSupport.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/fmt/ParamSupport.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/fmt/ParseDateSupport.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/fmt/ParseNumberSupport.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/fmt/RequestEncodingSupport.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/fmt/SetBundleSupport.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/fmt/SetLocaleSupport.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/fmt/SetTimeZoneSupport.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/fmt/TimeZoneSupport.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/sql/DataSourceUtil.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/sql/DataSourceWrapper.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/sql/DateParamTagSupport.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/sql/ParamTagSupport.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/sql/QueryTagSupport.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/sql/ResultImpl.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/sql/SetDataSourceTagSupport.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/sql/TransactionTagSupport.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/sql/UpdateTagSupport.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/xml/ExprSupport.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/xml/ForEachTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/xml/IfTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/xml/ParamSupport.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/xml/ParseSupport$JstlEntityResolver.clas s already added, skipping

[jar] org/apache/taglibs/standard/tag/common/xml/ParseSupport.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/xml/SetTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/xml/TransformSupport$JstlUriResolver.cla ss already added, skipping

[jar] org/apache/taglibs/standard/tag/common/xml/TransformSupport$SafeWriter.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/xml/TransformSupport.class already added, skipping

[jar] org/apache/taglibs/standard/tag/common/xml/WhenTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/rt/core/ForEachTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/rt/core/ForTokensTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/rt/core/IfTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/rt/core/ImportTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/rt/core/OutTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/rt/core/ParamTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/rt/core/RedirectTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/rt/core/SetTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/rt/core/UrlTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/rt/core/WhenTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/rt/fmt/BundleTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/rt/fmt/FormatDateTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/rt/fmt/FormatNumberTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/rt/fmt/MessageTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/rt/fmt/ParamTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/rt/fmt/ParseDateTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/rt/fmt/ParseNumberTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/rt/fmt/RequestEncodingTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/rt/fmt/SetBundleTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/rt/fmt/SetLocaleTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/rt/fmt/SetTimeZoneTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/rt/fmt/TimeZoneTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/rt/sql/DateParamTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/rt/sql/ParamTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/rt/sql/QueryTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/rt/sql/SetDataSourceTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/rt/sql/TransactionTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/rt/sql/UpdateTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/rt/xml/ExprTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/rt/xml/ParamTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/rt/xml/ParseTag.class already added, skipping

[jar] org/apache/taglibs/standard/tag/rt/xml/TransformTag.class already added, skipping

[jar] org/apache/taglibs/standard/tei/DeclareTEI.class already added, skipping

[jar] org/apache/taglibs/standard/tei/ForEachTEI.class already added, skipping

[jar] org/apache/taglibs/standard/tei/ImportTEI.class already added, skipping

[jar] org/apache/taglibs/standard/tei/Util.class already added, skipping

[jar] org/apache/taglibs/standard/tei/XmlParseTEI.class already added, skipping

[jar] org/apache/taglibs/standard/tei/XmlTransformTEI.class already added, skipping

[jar] org/apache/taglibs/standard/tlv/JstlBaseTLV.class already added, skipping

[jar] org/apache/taglibs/standard/tlv/JstlCoreTLV$1.class already added, skipping

[jar] org/apache/taglibs/standard/tlv/JstlCoreTLV$Handler.class already added, skipping

[jar] org/apache/taglibs/standard/tlv/JstlCoreTLV.class already added, skipping

[jar] org/apache/taglibs/standard/tlv/JstlFmtTLV$1.class already added, skipping

[jar] org/apache/taglibs/standard/tlv/JstlFmtTLV$Handler.class already added, skipping

[jar] org/apache/taglibs/standard/tlv/JstlFmtTLV.class already added, skipping

[jar] org/apache/taglibs/standard/tlv/JstlSqlTLV$1.class already added, skipping

[jar] org/apache/taglibs/standard/tlv/JstlSqlTLV$Handler.class already added, skipping

[jar] org/apache/taglibs/standard/tlv/JstlSqlTLV.class already added, skipping

[jar] org/apache/taglibs/standard/tlv/JstlXmlTLV$1.class already added, skipping

[jar] org/apache/taglibs/standard/tlv/JstlXmlTLV$Handler.class already added, skipping

[jar] org/apache/taglibs/standard/tlv/JstlXmlTLV.class already added, skipping

[jar] org/jivesoftware/util/FastDateFormat$CharacterLiteral.class already added, skipping

[jar] org/jivesoftware/util/FastDateFormat$NumberRule.class already added, skipping

[jar] org/jivesoftware/util/FastDateFormat$PaddedNumberField.class already added, skipping

[jar] org/jivesoftware/util/FastDateFormat$Pair.class already added, skipping

[jar] org/jivesoftware/util/FastDateFormat$Rule.class already added, skipping

[jar] org/jivesoftware/util/FastDateFormat$StringLiteral.class already added, skipping

[jar] org/jivesoftware/util/FastDateFormat$TextField.class already added, skipping

[jar] org/jivesoftware/util/FastDateFormat$TimeZoneDisplayKey.class already added, skipping

[jar] org/jivesoftware/util/FastDateFormat$TimeZoneRule.class already added, skipping

[jar] org/jivesoftware/util/FastDateFormat$TwelveHourField.class already added, skipping

[jar] org/jivesoftware/util/FastDateFormat$TwentyFourHourField.class already added, skipping

[jar] org/jivesoftware/util/FastDateFormat$TwoDigitMonthField.class already added, skipping

[jar] org/jivesoftware/util/FastDateFormat$TwoDigitNumberField.class already added, skipping

[jar] org/jivesoftware/util/FastDateFormat$TwoDigitYearField.class already added, skipping

[jar] org/jivesoftware/util/FastDateFormat$UnpaddedMonthField.class already added, skipping

[jar] org/jivesoftware/util/FastDateFormat$UnpaddedNumberField.class already added, skipping

[jar] org/jivesoftware/util/FastDateFormat.class already added, skipping

[jar] about.html already added, skipping

[jar] about.html already added, skipping

[jar] about.html already added, skipping

[jar] about.html already added, skipping

[jar] about.html already added, skipping

openfireHome:

[mkdir] Created dir: /Users/MKD/Documents/GitHub/Java/Openfire/target/openfire

[copy] Copying 3 files to /Users/MKD/Documents/GitHub/Java/Openfire/target/openfire

[echo] No custom config here

[copy] Copying 152 files to /Users/MKD/Documents/GitHub/Java/Openfire/target/openfire/resources

[copy] Copying 3 files to /Users/MKD/Documents/GitHub/Java/Openfire/target/openfire/resources

[copy] Copying 3 files to /Users/MKD/Documents/GitHub/Java/Openfire/target/openfire/resources

[copy] Copying 18 files to /Users/MKD/Documents/GitHub/Java/Openfire/target/openfire/lib

adminPlugin:

[copy] Copying 1 file to /Users/MKD/Documents/GitHub/Java/Openfire/target/openfire/plugins

[copy] Copying 156 files to /Users/MKD/Documents/GitHub/Java/Openfire/target/openfire/plugins/admin/webapp

[copy] Copying 9 files to /Users/MKD/Documents/GitHub/Java/Openfire/target/openfire/plugins/admin/webapp

[copy] Copying 1 file to /Users/MKD/Documents/GitHub/Java/Openfire/target/openfire/plugins/admin/webapp/ WEB-INF/lib

spank:

[mkdir] Created dir: /Users/MKD/Documents/GitHub/Java/Openfire/target/openfire/resources/spank

[copy] Copying 2 files to /Users/MKD/Documents/GitHub/Java/Openfire/target/openfire/resources/spank

[copy] Copying 12 files to /Users/MKD/Documents/GitHub/Java/Openfire/target/openfire

[mkdir] Created dir: /Users/MKD/Documents/GitHub/Java/Openfire/target/openfire/logs

BUILD SUCCESSFUL

Total time: 21 seconds

Mohammeds-MacBook-Pro:build MKD$

Step 3: Running the server:

Mohammeds-MacBook-Pro:bin MKD$ pwd

/Users/MKD/Documents/GitHub/Java/Openfire/target/openfire/bin

Mohammeds-MacBook-Pro:bin MKD$ ./openfire.sh

Openfire 4.1.0 Alpha [Feb 16, 2016 3:54:31 PM]

Admin console listening at http://mohammeds-macbook-pro.local:9090

Step 4: Opening the browser:

I do as you told @Guus der Kinderen @wroot

the problem was that i built openfire for the first time by JDK 1.8, and then when i switched to JDK 1.7 the work folder did not cleaned totally so when i tried to build it again ant assumed that tsp files were built before and use it.

i force deleted the work & build folder and executed : ant openfire

then its work.

ty

Hi @guus @wroot,

I facing test case failure while building the openfire.

I checkout the Openfire source code from branch 4.4 and import it into IntelliJ.
Now running mvn verify command to build the openfire project. It failed the build with below errors.

Please help me with this !!

Thanks
Mayur