Problems in deploying the webchat

Hi, I’m trying to test openfire+fastpath with the source of webchat. The openfire and fastpath are working fine. However, I have got problems on deploying webchat. I deploy webchat with tomcat. But when I go to the homepage, I get a problem like:

Online Chat Service

Our chat service is unavailable at this time. Please check back soon.java.lang.NullPointerException at org.apache.jsp.index_jsp._jspService(index_jsp.java:149) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil terChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain .java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: 230) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java: 175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at

the error in the console is

java.lang.NullPointerException

at org.jivesoftware.webchat.actions.WorkgroupStatus.getWorkgroupNames(WorkgroupSta tus.java:242)

at org.apache.jsp.index_jsp._jspService(index_jsp.java:114)

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

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

and when I** try to build the webchat project using ant, it come out with the problem:**

[javac] D:\im\webchat\src\plugin\java\org\jivesoftware\liveassistant\WebClientPlugin.ja va:24: error: missing org.mortbay.jetty.servlet

[javac] import org.mortbay.jetty.servlet.Context;

[javac] ^

[javac] D:\im\webchat\src\plugin\java\org\jivesoftware\liveassistant\WebClientPlugin.ja va:25: error: missing org.mortbay.jetty.handler

[javac] import org.mortbay.jetty.handler.ContextHandlerCollection;

[javac] ^

[javac] D:\im\webchat\src\plugin\java\org\jivesoftware\liveassistant\WebClientPlugin.ja va:26: error: missing org.mortbay.jetty.webapp

[javac] import org.mortbay.jetty.webapp.WebAppContext;

[javac] ^

[javac] D:\im\webchat\src\plugin\java\org\jivesoftware\liveassistant\WebClientPlugin.ja va:42: error: mising the sign

[javac] private Context context;

[javac] ^

[javac] sign: class Context

[javac] location: class WebClientPlugin

[javac] D:\im\webchat\src\plugin\java\org\jivesoftware\liveassistant\WebClientPlugin.ja va:58: error: missing signs

[javac] ContextHandlerCollection contexts = ((AdminConsolePlugin)pluginManager.getPlugin(“admin”)).getContexts();

[javac] ^

[javac] sign: class ContextHandlerCollection

[javac] location: class WebClientPlugin

[javac] D:\im\webchat\src\plugin\java\org\jivesoftware\liveassistant\WebClientPlugin.ja va:60: error: missing sign

[javac] context = new WebAppContext(pluginDirectory.getPath(),

[javac] ^

[javac] sign: class WebAppContext

[javac] sign: class WebClientPlugin

** Should I change jdk1.5 to solve the problems or should I do any other thing?**

Could someone help me?

Cheers!

I had the same problem (i guess) 3 days ago…

I reinstalled tomcat but before i had backup the webchat.war and folder and it worked

If you notice tomcat service dont start, at least mine dont…

Thanks for answering!

I have solve it by removing the jasper-complier.jar and jasper-runtime.jar. To get success to build the project, I remove the java file in the plugin(it use jetty6, but the openfie uses jetty7 which is not fit), and also i change the web.xml to version 2.3.

However, I still have problems when clicking into the workgroup in webchat, although I have remove the workgroup.jar according to others’ advice.

item-not-found(404)

at org.jivesoftware.smackx.workgroup.user.Workgroup.getWorkgroupForm(Workgroup.jav a:850)

at org.jivesoftware.webchat.actions.WorkgroupStatus.getWorkgroupForm(WorkgroupStat us.java:281)

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

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

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

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

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

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

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

at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)

at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11P rotocol.java:581)

at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)

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

2012-4-27 3:15:25 org.jivesoftware.webchat.util.WebLog logError

警告: Workgroup must be specified to retrieve image main