Quantcast
Channel: Ignite Realtime : Discussion List - All Communities
Viewing all 10742 articles
Browse latest View live

message archiving broken in 3.8.0

$
0
0

Hello All,

 

I recently upgraded my install from 3.7.1 to 3.8.0 and after the upgrade I upgraded to the updated version of the archiving plugin as well. I now notice that conversations are no longer being archived even when configured to do so. Is there a link I can download the old archiving plugin?

 

Thanks,


What needs to be done to move this project forward (Spark) ?

$
0
0

I use spark a lot and love it. I also love OpenFire. It seems that OpenFire gets all the love from the current devs (and for good reason, I don't know of many other XMPP servers that are as good as OpenFire -- Good work guys!).

 

What needs to be done to move Spark forward? It hasn't had a new build/version since 2011... It's still packaged with java6, and there are things that should get fixed with it.

 

I'm able to help out with the project (Java development), but don't know where to start or who to talk to?

 

A little about me - I'm a Systems Admin by trade but also do a lot of Java development - I'm self taught and have been doing Java for about a year now. I'm currently taking courses that cover java as part of my degree. I'd love to get into an Open Source project and help out. I do work full time and go to school full time, so I can't dedicate a ton of time to the project, but I'll do what I can.

 

The company I work for runs OpenFire and Spark at the office and I ran an OpenFire server from home until some recent ISP issues... so I'm pretty familiar with the "user end" of these projects.

 

Thanks!

UAC Pop Up when Running Spark

$
0
0

First of all, you can't register a new account on these forums. Luckily I remembered my old account info. Otherwise, you get an

 

Unexpected Error Occured as soon as you submit the CAPTCHA. Very frustrating.

 

Now, onto my problem..

 

I have a single user that is a local admin of their machine. Every time they start up Spark, they have to accept a UAC pop up. The Spark icon has that little shield on it. I have uninstalled and reinstalled Spark several times.

 

I have seen this on the forums in relation to SSO, but we're not using SSO. The first time we install Spark we have to put in the user's name, password, and Openfire server. Then I check the Remember Password and login boxes as well as Start on Startup and it's fine. We have 80+ clients, all running Windows 7 x64 and are all local admins of their machines, and Spark runs fine. We haven't had to do any registry hacks to get those other 79 users working with Spark.

 

The only other goofy thing is that every time I reinstall Spark, it remembers the user's password and server. Maybe deleting a preference file somewhere will help resolve this?

 

It's just this single user that gets the UAC pop up and I can't figure out what the problem is. Disabling UAC is not an option. Again this is not related to SSO - I have read through those threads on this forum and our situation doesn't apply, also as I said we have 79 other clients all running almost identical hardware, and none of them have the problem - Spark runs fine without UAC pop ups.

 

Thanks for any help.

Migrating Chat History

$
0
0

Recently our old Windows 2000 server went down and with it OpenFire 3.7.1.  I'm just learning how OpenFire works, so forgive me for any stupid questions - I've tried doing my homework on the forums, but I'm wondering if there is a way to bring the chat logs from the old system to the new.

 

Our old domain was an ip address, and that's just cumbersome to remember, so I've set up an A record so we can connect to our server using im.companyname.com.

 

I guess by making this change the chat history logs/users don't line up anymore.  I tried a mass replace of @123.123.123.123 to @im.mycompanyname.com, in the audit.log files, but that doesn't work - just a guess.

 

Has any one had to move their chat history to a new domain?  I'm running on Wind'ohs, so maybe I'm missing out on some neat Linux utility?  Maybe there isn't an easy way to do this?

 

Thanks in advance for the help!

 

EP

Any plans on migrating repos to git?

$
0
0

Just wondering...

 

Could even just use GitHub since its all opensource.

Clarification - Spark is running in secure mode

$
0
0

Greetings. I am somewhat of a newb to Openfire.  I would like some clarification on the security of Openfire Server with Spark IM Client.  Any feedback is appreciated.

 

I setup a Openfire Server in the Amazon EC2 Cloud and assigned it an elastic IP Address.

 

Under Server Settings, Client Connection Security is set as TLS Method:  Required. 

 

The client we are using to connect to this server is Spark 2.6.3, and I see that the lock in the bottom right corner says "Spark is running in secure mode" using port 5222 to connect.

 

Question:  With the server security setup as it is, does "Spark running in secure mode" mean that the client to server communication is in fact Secure via TLS? 

How to sucessfully import an existing StartSSL Cert & Key (Linux)

$
0
0

Notes: Openfire v3.7.1, Java 1.6, RHEL 6, StartSSL Class2 Signed Cert

The following are command line instructions for importing an existing SIGNED certificate and KEY to OpenFire.

 

1.) Stop Openfire.

 

2.) Merge your your root CA with your existing certificate:

cat example.com.cert startssl.class2.ca > example.com.TempCert

 

3.) Convert your existing Private Key and new merged certificate to the pkcs12 format.

(This step requires you create a password, I am going to use the default password for simplicity. "changeit")

openssl pkcs12 -export -in example.com.TempCert -inkey example.com.private -out example.com.pkcs12 -name example.com

 

4.) Merge your private key and cert to OpenFire's private Keystore.

keytool -importkeystore -deststorepass changeit -destkeypass changeit -destkeystore /opt/openfire/resources/security/keystore -srckeystore example.com.pkcs12 -srcstoretype PKCS12 -srcstorepass changeit -alias example.com

 

5.) Start OpenFire

 

Figuring this out took me forever. I hope it helps some one else too!

Spark 2.5.8 On Phone status


Problems with Sharing Groups

$
0
0

So I created one group and added all my users into one group (22 users). I am trying to share the users so that anytime some one logs into spark they have the list of all the all users.

 

Here is the settings I choose.

 

 

Once I try and save the contact list settings I get the gollowing error

 

 

HTTP ERROR 500

Problem accessing /group-edit.jsp. Reason:

    Server Error

 

Caused by:

java.lang.UnsupportedOperationException     at java.util.AbstractMap.put(Unknown Source)     at org.jivesoftware.openfire.admin.group_002dedit_jsp._jspService(group_002dedit_jsp.java:164)     at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)     at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:547)     at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1359)     at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)     at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)     at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1330)     at org.jivesoftware.util.LocaleFilter.doFilter(LocaleFilter.java:74)     at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1330)     at org.jivesoftware.util.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:50)     at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1330)     at org.jivesoftware.admin.PluginFilter.doFilter(PluginFilter.java:78)     at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1330)     at org.jivesoftware.admin.AuthCheckFilter.doFilter(AuthCheckFilter.java:164)     at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1330)     at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:478)     at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)     at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:520)     at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)     at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:941)     at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:409)     at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186)     at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:875)     at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)     at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250)     at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149)     at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)     at org.eclipse.jetty.server.Server.handle(Server.java:349)     at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:441)     at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:919)     at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:582)     at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:218)     at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:51)     at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:586)     at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:44)     at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598)     at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533)     at java.lang.Thread.run(Unknown Source)

 

I then tried to create second group to share the list with that group and I recieved the same error. I am running Openfire on a WIndows Server 2008 R2 and using Open 3.8.0. Also the account that is configured for AD I tried giving it Domain Admin but it made no change not sure where to go from here.

RPM build errors: *** ERROR: No build ID note found

$
0
0

Hi,

 

I'm having trouble trying to build openfire as an rpm.  I'm building Openfire 3.6.4 on Fedora 12.

Here's a the end of the output from ant installer.rpm:

 

      [rpm] + /usr/lib/rpm/find-debuginfo.sh --strict-build-id /home/xxx/dev/openfire_src/work/rpm/BUILD/openfire_src
      [rpm] extracting debug info from /home/xxx/dev/openfire_src/work/rpm/BUILDROOT/openfire-3.6.4-1.x86_64/opt/openf ire/jre/bin/rmiregistry
      [rpm]
      [rpm]
      [rpm] RPM build errors:
      [rpm] *** ERROR: No build ID note found in /home/xxx/dev/openfire_src/work/rpm/BUILDROOT/openfire-3.6.4-1.x86_64/opt/openf ire/jre/bin/rmiregistry
      [rpm] error: Bad exit status from /var/tmp/rpm-tmp.P0f8JL (%install)
      [rpm]     Bad exit status from /var/tmp/rpm-tmp.P0f8JL (%install)
      [rpm] '/usr/bin/rpmbuild' failed with exit code 1

 

BUILD FAILED
/home/xxx/dev/openfire_src/build/build.xml:1120: /home/xxx/dev/openfire_src/work/rpm/RPMS/i386 not found.

 

Any help would be appreciated.

 

Thanks.

log in error occur frequently...

$
0
0

I`m developing application using xmpp framework in iOS and using open-fire server by MAC OS...

 

the day before yesterday, I patched open-fire new released version...that was the start point of my problem....

 

after the day, sometimes, log in error message occcur,

 

[Login failed: make sure your username and password are correct and that you're an admin or moderator.]

 

so, I checked linked MySQL Database and modified Admin`s password...

 

this problem occurs frequently so i stress...

 

how can i do in this situation, many people say that re-start server is the best answer of this problem, but it doen`t solve this problem...

 

New version open-fire get some problems???thanks in advance...

custom provider for subscribe authorization

$
0
0

I am trying to create a provider extension for following stanza as this feature is not available in smack yet. its a feature to handle incoming subscription permission.

 

 

 

<message from="pubsub.example.com" to="fdf72c24@example.com" id="89939">

<x xmlns="jabber:x:data" type="form">

           <title>PubSub subscriber request</title>

           <instructions>Use the following form to approve or deny the subscription request.</instructions>

           <field var="FORM_TYPE" type="hidden">

                     <value>http://jabber.org/protocol/pubsub#subscribe_authorization</value>

           </field>

           <field var="pubsub#subid" type="hidden">

                     <value>9QojXw0GKibSGF6eu5xOzurK8m2iFMp9jJcO4llb</value>

           </field>

           <field var="pubsub#node" type="text-single" label="Node ID">

                     <value>fdf72c24/loc</value>

           </field>

           <field var="pubsub#subscriber_jid" type="jid-single" label="Subscriber Address">

                     <value>88f37b90@example.com</value>

           </field>

           <field var="pubsub#allow" type="boolean" label="Allow this JID to subscribe to this pubsub node?">

                     <value>0</value>

           </field>

    </x>

</message>

 

 

 

I have created customPacketExtensionProvider and PacketExtension to handle above xml stanza but the issue is when i add Privoder as follows

 

 

pm.addExtensionProvider(

                              "x",

                              "jabber:x:data",

                              new  com.bcl.provider.SubFormProvider());

 

 

this provider overlaps with the default DataFormProvider

 

            pm.addExtensionProvider(

                              "x",

                              "jabber:x:data",

                              new org.jivesoftware.smackx.provider.DataFormProvider());

 

 

 

so is there a way to differentiate between DataFormProvider and SubFormProvider ( custom provider) so that i can handle above xml stanza like the smack does.

Costly Transaction in 3.80: GroupManager.getGroup

$
0
0

Hi

 

we are profiling Openfire 3.80 (release) in our prod environment and I have stumbled across the GroupManager.get.group at line 294/312. It regulary produces transaction time of several seconds according to our profiler (AppDynamics).

 

Any idea what's the reason for that? PostGREs is prducing the results from the select of that transaction within a millisecond. Looks like a cache miss and a costly insert into the cache.

 

Ideas? Questions?

 

Walter

 

P.S. We are actually profiling against org.jivesoftware.openfire.spi.PacketRouterImpl.route since we assume that this method touches every message that runs through Openfire. Any other good idea what to profile is welcome (No we will not profile Kraken...).

After OpenFire 3.8 Update - Spark not showing Contacts

$
0
0

This morning I updated our OpenOffice install to 3.8. Install went well, but now Spark 2.6.3 is not showing any Contacts in the Contacts tab. Is this something that will automatically fill in after a few hours, like when a new user is created in OpenFire? Or is this another issue? I have restarted the OpenFire server, uninstalled/reinstalled the Spark 2.6.3 client. The issue is in both the Windows and Mac clients. Not sure what else to try.

 

Thank you forward for any type of help.

Can't see online users after upgrade to 3.8.0

$
0
0

I installed the upgrade to 3.8.0 today and now the users can't see each other's online status. Has this to do with the LDAP issue I read about (http://issues.igniterealtime.org/browse/OF-610)?

 

If so, how can I install a nightly build over my installation from the .deb package under ubuntu?


Not logging to MySQL Since update

$
0
0

Hello,

 

I updated to 3.8.0 then to 3.8.1 Alpha because of an LDAP Issue. I am now unable to log anything to my Local MySQL DB. As of now I do not see any errors to troubleshoot from. Is anyone else seeing this issue?

Chat Group Room Permission for LDAP Users

$
0
0

Hi all,

I am new with openfire. I installed Openfire 3.8 in windows system and intrigrate with Microsoft Active Directory. All AD users are able to login.

I am facing a issue with Chat Group Service Settings. I created an Chat Group Service. By default Room Creation Permission is Anyone can create a chat room.

But when I to change to Only specific users can create a chat room, --> Save Settings, Then it ask for Allowed Users.

In Add User (JID)  what ever I give it gives error.

 

java.lang.ClassCastException: org.xmpp.packet.JID cannot be cast to java.lang.String

at org.jivesoftware.openfire.admin.muc_002dcreate_002dpermission_jsp._jspService(m uc_002dcreate_002dpermission_jsp.java:229)

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

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

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

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

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:1330)

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

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

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

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

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

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

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

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

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

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

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

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

at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:94 1)

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

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

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

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

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

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

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

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

at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:441)

at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConne ction.java:919)

at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:582)

at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:218)

at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:51 )

at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.jav a:586)

at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java :44)

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

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

at java.lang.Thread.run(Unknown Source)

initiating chat from uri

$
0
0

I'm all but certain that this has been discussed/fixed/written-off,  but searching has produced either null results or the whole board. I've got xmpp handling in together in the registry (w7prof/64 if that makes a difference) and xmpp links are bringing Spark into focus, but not starting a new chat. It really looks like it might be a windows issue (read:my error) given the errors in the log.

 

For example (everything is hkcu\cmpp\shell\open\command)

default= "C:\Program Files (x86)\Spark\Spark.exe" "%1"

throws this in the spark log:

SEVERE: error parsing uri: "xmpp:user@server"

java.net.URISyntaxException: Illegal character in scheme name at index 0: "xmpp:user@server"

 

Unquoting %1 returns

SEVERE: Error settings font:

java.lang.NullPointerException

 

That's with Spark running. Exit Spark and either reg setting brings up a new chat window with a user named "null" and produces no errors.

 

It really seems like I have it almost set up correctly. Also note that this is something I started on a whim last week (along with convincing outlook that it should use spark instead of lync, which is a whole different mess) and it turned into a grudge match over the weekend. So if it's something that won't work that's fine, too, I'll just go ocd over something else.

 

Thanks!

Branding Spark using Ant Builder / IzPack and AdvancedInstaller

$
0
0

Hi

 

After spending hours/days braning spark and building packaging it to an msi all for free (as some alternatives cost money)

I thought I would post how I did it. I will try answer any questions or issues I came across

 

Hope this is of SOME help, to SOMEONE!

Some how to documents here are old and dated.

-------------------------------------------------------------------------------- --------------------------------------------------------------------

 

Scope:

This document will help you setup a secure and free open source instantmessenger server & client, branded with your own company logos fullycustomisable. The environment of this document is:

Ubuntu 10.04 Server 64Bit VM  & Windows 7 32Bit clients.

You will need to install the following free software (details givenbelow)

MySQL / Java RE / Notepad++ / TortoiseSVN / Ant Builder / IzPack /Launch4J / AdvancedInstaller

 

MySQLSetup

Step 1: sudoapt-get install mysql-server

Step 2: JDBC Driver is bundled with Openfire so we don’t need to worryabout it, you need to use the following values later on (ignore for now):

driver: com.mysql.jdbc.Driver

server: jdbc:mysql://[YOUR_HOST]/[DATABASE_NAME]

Step 3: Using MySQL 4.1.18 or later create a db for Openfire Tables

                mysqladmincreate [dbname]    //creates the database dbname, call yours anything

                catopenfire_mysql.sql | mysql [dbname];            //imports the schema file

 

OpenfireServer Setup

Step 1: Ensuring MySQL is installed, install Java JRE (Java 5 or later,I installed 7)

                sudoadd-apt-repository "deb http://archive.canonical.com/ lucid partner"

                sudoapt-get update

sudo apt-get install sun-java7-jre sun-java7-pluginsun-java7-fonts

                java –version//To confirm install & Java Version

Step 2: Download Openfire

wget http://www.igniterealtime.org/downloads/download-landing.jsp?file=openfire/openf ire_3_7_1.tar.gz

//This tar.gz does NOT include JAVA JRE so be sureto follow Step 2

 

Step 3: Extract Openfire to /opt

tar-xzvf openfire_3_0_0.tar.gz
mv openfire /opt

 

Step 4: Start the Openfire Service

                # ./opt/openfire/bin/openfirestart

 

Step 5: Launch the Openfire Admin Console to test

                http://127.0.0.1:9090 or http://server.name:9090

 

Step 6: Go through Openfire Server Wizard

                Page 1 LanguageSelection

                                -SelectLanguage

                Page 2: ServerSettings

                                -Domain: server.name

                                -Admin Console Port:9090

                                -Secure Admin Port :9091

                Page 3: DatabaseSettings

                                -Standard Database Connection

                                                -Database Driver:MySQL

                                                -JDBC Driver Class:com.mysql.jdbc.Driver

                                                -Database URL:jdbc.mysql://localhost:3306/openfire

                                                -Username / PasswordYour MySQLUsername & Password

                Page 4: ProfileSettings

                                -DirectoryServer (LDAP)

                                -Server Type: ActiveDirectory

                                -Host: IP Address of your AD server   Port:289

                                -Administrator DN: uid=Administrator,ou=OU Name,dc=company,dc=local

                                -Password= AdministratorPassword

                                //Selectusers for AD to be administrators

//more infoon AD setup:  here

Rebrandingof the Spark Client.

For the below example, we are going to rebrand spark and call ourclient “MyMessenger” havingspaces in your Client name can throw up problems later on so it’s easier toleave it out for now. Do not use underscores either.

 

Step 1: Download TortoiseSVNClient and Notepad++

Step 2 : Download the Source Code of Spark using TortoiseSVN, copy thesource code and create a copy in a folder on your desktop “MyMessenger” – we aregoing to work from here now.

Do NOThave spaces in this folder , this caused me problems later on.

svn cohttp://svn.igniterealtime.org/svn/repos/spark/trunk spark

Step 3: Using Notepad++ open the following files. Find and replace all “Spark”with “MyMessenger”

 

  1. 1.     build\build.xml
  2. 2.     src\resources\i18n\spark_i18n.properties (for English)
  3. 3.     src\java\org\jivesoftware\launcher\Installer.java
  4. 4.     src\java\org\jivesoftware\resource\default.properties (also enteryour server name for the value of HOST_NAME)
  5. 5.     src\java\org\jivesoftware\resource\spark.properties (also replace"1.0" in "Version 1.0 Release" with the version of Sparkyou're building)
  6. 6.     src\plugins\fastpath\src\resources\fastpath.properties (also replace"1.0" in "Version 1.0 Release" with the version of Sparkyou're building)

 

 

Step 4: Using Gimp / Photoshop / Paint.NET etc replace the followingimages – be sure to keep the dimensions, with your own cooperate images.

 

  1. 1.    spark.gif
  2. 2.    spark.ico
  3. 3.    spark_100.jpg(100 x 100)
  4. 4.    spark-16x16.png
  5. 5.    spark-32x32.png
  6. 6.    spark-60x60.png
  7. 7.    spark-64x64.png
  8. 8.    spark.png(244 x 188)
  9. 9.    away.png(16 x 16)
  10. 10.  DoNotDisturb.png(16 x 16)
  11. 11.  message.icns

 

Step 5: Install Apache Ant

                Follow theinstructions here forthe installation of Ant

The most importantpart is step 4, set environmental variables JAVA_HOME to your Java Enviroment, Set ANT_HOME to the directory you unzipped Ant to. Skipping this stepwill cause Ant not to run correctly. Steps 5&6 I didn’t do.

 

Step 6: Ok you now have replaced the spark images with your companybranding. We will launch MyMessenger to see how it looks. To do this:

Open command prompt & cd to your build folder:

Desktop\MyMessenger-Code\build>ant release  //Launch Ant

Desktop\MyMessenger-Code\target\build\bin>startup.bat//Run MyMessenger

 

Step 7: Once you’re happy, close MyMessenger & Download and Install izpack and launch4j

Step 8: Make the following changes to \build\build.xml

                <propertyname="installer.izpack.dir" value="c:\\ProgramFiles\\IzPack"/>

                <propertyname="launch4j.dir" location="c:\\ProgramFiles\\Launch4j" />

Step 9: Now compile and create your exe file

                From\MyMessenger\Build type the following:

                MyMessenger\build>antinstaller.izpack

                Yourcode should compile giving the final message “Build Successful”

Remember if your folder name is MyMessenger or My_Messenger it won’tcompile.

You will notice now you have two newfolders. \MyMessenger\Installer which contains your jar file and\MyMessenger\target which is your main folder containing your exe file \pluggins

Your executable file is located in \MyMessenger\target\build.   //starter.exe is needed, don’t delete

You will also notice your newly compiled exe is called Spark.exe, letschange this

 

  

Step 10: Changing compiler to makeMyMessenger.exe

For me this was very trialand error, but my advice would be – make a change, run ant installer.izpack andbe sure it says “Build Successful” then make another etc…

 

                In\MyMessenger\build\build.xml Ctrl&F and locate “Installer Ant Script”

                Rename thefollowing from Spark to MyMessenger

                installer.app_name

                installer.app_short_name

installer.product_name

 

In \MyMessenger\build\installer\izpack\launch4j.xmlchange the following lines:

<outfile>C:\Users\xxxxxx\Desktop\MyMessenger/target/build//MyMessenger.exe</outfile>

<errTitle>MyMessenger </errTitle>

<fileDescription>MyMessenger </fileDescription>

<copyright>http://www.yourcompany.com</copyright>

<productVersion>2.6.0.0</productVersion>

    <txtProductVersion>2.6.0</txtProductVersion>

    <productName>MyMessenger</productName>

    <companyName>Company Name - You</companyName>

    <internalName> MyMessenger </internalName>

    <originalFilename> MyMessenger.exe</originalFilename>

You can change more but I THINK these are the basics for now. Run antinstaller.izpack again.

 

Step 11: Default Properties

This file is very important.From here you can customize what users can and cannot do. It is very wellcommented and self-explained. For example, I have hardcoded in HOST_NAME anddisabled it to be changed. This way the user doesn’t have to enter the host.Many changes are available.

\MyMessenger\src\java\org\jivesoftware\resource\default.properties

I have also black listed the OTR (Off the Record) pluggin, that allowsencrypted off the record chats:

PLUGIN_BLACKLIST_CLASS = org.jivesoftware.spark.otrplug.OTRPlugin

From here we can also remove buttons that aren’tneeded in a cooperate setting. Such as creating accounts etc.

 

 

 

EXAMPLE ERRORS:

Build Failed:

C:\Users\......\build.xml868:com.izforge.izpack.compiler.CompilerException:….C:\Users\.../build/installer/spark-izpack.xml:76

The Errors can often be frustrating but the compiler points you in theright direction, in the above example, if you go to spark-izpack.xml and go to line 76, I still had spark.exe referenced ratherthan MyMessenger.exe

 

 

 

FinalStep: Package MSI for deployment

Let’s package up our exe and build files and create an msi fordeployment.

Download AdvancedInstaller

Advanced installer is free to create basic msi files. So lets createNEW – Installer – Simple

 

-Product Details: Enter as much information here as you require

-Install Parameters: Application Folder: [ProgramFilesFolder][ProductName]and the same under Application Shortcut Folder

-Files & folders : Application Folder – Right Click – Add Folderand add the \MyMessenger\target folder. Select the entire Target folder as youneed the plugins etc.

-Application Shortcut Folder:  Select Application Shortcut Folder – right clickwhitespace on right pane – New Shortcut to – Installed File – Select yourMyMessenger.exe file.

-Desktop – same step as above. This will create a shortcut toMyMessenger on the desktop for the users.

Everything else is fine as is. Save As in MyMessenger Folder

Select Build – once built go to \MyMessenger\Project –SetupFile whereyou will find your msi ready to deploy.

 

Good Luck!

3.8.0 Group issue?

$
0
0

For reals!  Just installed 3.7.2, then get a message on Sparks that 3.8.0 is out.  

 

But when I go to Group/User tab

Groups tab

Locate group

Enter in name for group sharing

Save Contact List

 

I got the attached error.

 

I have been testing 3.7.2 for a while and had not issues.  Today I decided to start building the official server, installed 3.7.2, some configs and was working. 

 

Then upgraded to 3.8.0.  Not sure if it was the upgrade or the install as i did not attempt the adding group thing until after the upgrade.

 

 

Thanks for the update!  Glad to see this is still moving forward.

Viewing all 10742 articles
Browse latest View live