Updated sources for webchat - works with 3.7.0

Look at the top few lines in the patch file to see which files it needs to be applied to. IIRC, it can be applied via the top-level plugin directory via patch -p0

Hello,

Can you please tell me where do i change the fastpath’s webchat port from 9090 to 7070 on source code ? I am new to java and could not find it by my self …

Thanks for your attention,

Andre

Hi!

how did you build the webchat source to a .war file? please help…

Isaac,

thanks for your excellent contribution…I truly thought webchat.war 4.0.2 would solve my problems but it does not. Am I correct in assuming that if I get a 404 error on URL: http://myserver.com:9090/webchat/ that the installation of fastpath webchat was not successful, even though it is listed as installed plugin in the Adom Console?

If that is true, how would I go about ‘extracting’ or ‘installing’ fastpath webchat for the directory webchat to be created, I haven’t got access to the server, it is a shared server? What would the file structure be? e.g. c:/openfire/webchat/ ?

Your help will truly be appreciated

Thx

Peter

Peter Nagel wrote:

I haven’t got access to the server, it is a shared server?
What do you mean you don’t have access? If you don’t have write permission on that server, then maybe that’s the cause why webchat is not installing as it has to write files into openfire dir. Are you able to install other plugins?

Thanks for the response,

yes…all other plugins install fine and work as well…what I mean by access is that I do not have direct access to the root install (it is a shared hosting, which implies that I have limited access to the server itself)

According to the Admin Console, Fastpath Webchat is installed successfully, but the 404 error suggets that there is no such directory?

Hi All,

Great that I found this post from Issac. Great effort by him and all there behind openfire.

Have checked out the revision **13045 **from the openfire trunk and tried to build the same.

Applied the patch as given above. It is definitely helpful but found that

+import org.eclipse.jetty.servlet.ServletContextHandler;

may not be required. It compiles well without that.

However, the webchat.war is of a larger size 3.1 MB than what is posted herein (2.1 MB) and there are 2 of them as detailed herein.

Also encountered ClassCastExceptions with regard to *Settings classes of smack and smackx which we worked around by replacing the META-INF/smack.providers as posted herein.

After deployment we are facing the same problem as faced by a few others while trying to route the chat from the client to the agent.

We are ready to put in the long-term effort of maintaining the webchat plugin to start with if we can get the right initiation.

Thanks for all the great work put in by all here.

Intelliant wrote:

We are ready to put in the long-term effort of maintaining the webchat plugin to start with if we can get the right initiation.

Great to hear. What do you mean by initiation? If you are talking about community support or Jira/SVN access, then i think you will get it for usre after a few good patches If you are waiting for Issac or someone else to answer you questions, then… could be tough. Probably you will have to make a decision by yourself.

Thanks wroot for your prompt response.

Nopes, not waiting for anyone’s response but it is definitely good to get some answers as is convenient with no obligations . Will not stop digging around anyways for our own answers.

We are well aware of the FLOSS dynamics, so looking forward to have some fun and make a mark here as well.

Cheers.

Thanks for the info

Honestly, I’m neither a diehard Java guy nor a Fastpath guy, so I might not have put together perfect code. My goal was just to try to see what was different in the new Jetty being bundled with OpenFire and get the old (perfectly working) code to compile against the new Jetty, so there might be extra lines, stupid lines, or other fluff.

Webchat needs a new mommy or daddy, and given the fact that I generally have had no use for OpenFire since shortly after submitting the patch, I’m not the prime candidate now (or oughtn’t be, at least)

Thanks Issac for the confirmation as we were just a bit unsure whether to keep or remove the code. Also the versioning to 4.0.2 is your own baby, right?

A glance at the source of the patch suggests so, yes…

Hi.

The posted webchat.war (http://community.igniterealtime.org/servlet/JiveServlet/download/210794-10686/we bchat.war) also works with openfire3.7.1-1.

Maybe they should update the web site…

Best regards,

Freddy

Hi.

I will configure **webchat.war **present over here .But get the error msg .Thing is that I get some javascript error in my error console.

HTTP ERROR: 503

Problem accessing /webchat. Reason:

Service Unavailable

Powered by Jetty://

Timestamp: 7/25/2012 7:31:33 PM

Error: [Exception… “‘JavaScript component does not have a method named: “onStatusChange”’ when calling method: [nsIWebProgressListener::onStatusChange]” nsresult: “0x80570030 (NS_ERROR_XPC_JSOBJECT_HAS_NO_FUNCTION_NAMED)” location: “” data: no]

Timestamp: 7/25/2012 7:31:33 PM

Error: [Exception… “‘JavaScript component does not have a method named: “onProgressChange”’ when calling method: [nsIWebProgressListener::onProgressChange]” nsresult: “0x80570030 (NS_ERROR_XPC_JSOBJECT_HAS_NO_FUNCTION_NAMED)” location: “” data: no]

like this.Can any one fix me how to get the right thing.

Hi!, tried this modified version but I’m still not able to use webchat, going to the main web page I don’t see listed the workgroup I just created.

Feb 04, 2013 4:33:33 AM org.jivesoftware.webchat.util.WebLog logError

WARNING: Error in web client

java.lang.NullPointerException

at org.jivesoftware.webchat.util.FormUtils.createDynamicField(FormUtils.java:151)

at org.apache.jsp.userinfo_jsp._jspService(userinfo_jsp.java:401)

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

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

at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)

at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)

at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)

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

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil terChain.java:305)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain .java:210)

at org.jivesoftware.webchat.SetCharacterEncodingFilter.doFilter(SetCharacterEncodi ngFilter.java:45)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil terChain.java:243)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain .java:210)

at org.jivesoftware.webchat.SetupFilter.doFilter(SetupFilter.java:92)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil terChain.java:243)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain .java:210)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: 222)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java: 123)

at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.ja va:472)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)

at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:11 8)

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)

at org.apache.coyote.ajp.AjpAprProcessor.process(AjpAprProcessor.java:197)

at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractPr otocol.java:585)

at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:181 3)

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

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

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

Feb 04, 2013 4:33:47 AM org.jivesoftware.webchat.util.WebLog logError

WARNING: Workgroup must be specified to retrieve image main

The workgrouop is specified like:

<script language="JavaScript" type="text/javascript"

src=“http://intranet.empresa.com/webchat/jivelive.jsp”>

Any ideas?, maybe I’m missing step to enable the workgroup?

Have anyone tried whether this one works with Openfire 3.8.2?

Because the default webchat.war on the admin module seems to give me OFFLINE STATUS problems.

----Update—

Fixed my issue. In case anyone else is having the same problem, try this if it helps.

Earlier i downloaded the ZIP version of open fire. Which is without the JRE.

I did this because I already have JRE on my PC. So then I had the OFFLINE problems.

But then i tried deleting the ZIP and use the EXE version and it seemed to work.

Almost magical.

Probably the ZIP version needed some configuration to be done that i wasnt aware of.

In case youre suggesting the environment variables, ive already had it set.

Ok hope this helps.

Peace!