Hello,all
I downloaded the helloworld plugin sample and deployed it as document guide. But i can't see "sayhello" tag when server start. I have spent much time but no further.
I'm so confused. So somebody of you maybe help me.
Look forward to your help.
PS: It's CSX1.3
Thanks.
Hi there,
Sorry you're having trouble. Did you download the 1.3 sample, which is called simply helloworld.zip (the other is for 1.4)? Did you use the readme to get instructions for running the sample? Is there any information in your log?
Thanks,
Steve
Hi Steve
Thanks for you help.
Here is some log info.
SEVERE: Error loading plugin
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.RangeCheck(ArrayList.java:547)
at java.util.ArrayList.get(ArrayList.java:322)
at
?????????????
?????????????
SEVERE: null
ClientAbortException: java.net.SocketException: Connection reset by peer: socket write error
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
Thanks
Johnson
Hi Johnson. I grabbed the helloworld.zip with the plugin source code, built and installed it against Clearspace X 1.3. I didn't have any trouble seeing the message and didn't get any log entries.
Are you using the 1.3 version of the sample?
Hi Steve,
Thank you very much! It works well now?I using the 1.3 version sample.
Then i want to build web service as a plugin, so follow the step, write web service class, and add
<webservice>com.example.clearspace.plugin.webservices</webservice> to plugin.xml. then depoly the helloworld.jar. But i got some error info. as follows
java.lang.NoClassDefFoundError: com/jivesoftware/community/web/HttpClientWithTimeoutFeedFetcher
at org.apache.jsp.admin.main_jsp._jspService(main_jsp.java:1080)
..................
SEVERE: Error loading plugin
java.lang.NullPointerException
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:269)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
............
SEVERE: Error installing plugin: helloworld
com.jivesoftware.base.plugin.PluginException: java.lang.NullPointerException
at com.jivesoftware.base.plugin.PluginManager.loadPlugin(PluginManager.java:619)
at com.jivesoftware.base.plugin.PluginManager.installPlugin(PluginManager.java:249)
at com.jivesoftware.base.plugin.PluginManager.installPlugin(PluginManager.java:198)
I don't know why. So i downloaded the clearspacex1.7 and installed its incidental sample(example.jar). It works well. so i write a client to invoke the web service.The simple codes as follows:
package com.googlepages.smallnest.facet;
import java.net.MalformedURLException;
import java.net.URL;
import org.codehaus.xfire.client.*;
import org.codehaus.xfire.*;
public class DynamicClient {
public static void main(String[] args) throws MalformedURLException,
Exception {
Client client = new Client(
new URL(
"http://localhost:8080/clearspacex/rpc/soap/EchoService?wsdl"));
Object{"hello"});
System.out.println((String) results[0]);
}}
But unfortunately, i got errors:
Exception in thread "main" org.codehaus.xfire.fault.XFireFault: SOAP Webservices are disabled
at org.codehaus.xfire.fault.Soap11FaultSerializer.readMessage(Soap11FaultSerializer.java:31)
I'm so confused that. I know there will be a service.xml file when you build a separate web service project. So what should i be care of when build a web service in clearspacex?
Thanks
-Johnson
Exception in thread "main" org.codehaus.xfire.fault.XFireFault: SOAP Webservices are disabled
By default web-services is disabled for a new installation.
Go into the Admin console > System > Settings > Webservices
Hi Curtis,
I have enable web services and it works well now.
Thank you very much.
-Johnson
Thanks Johnson. I've added a note to the docs that web services are disabled by default.
Steve
Hi Steve,
Thank you very much! It works well now?I using the 1.3 version sample.
Then i want to build web service as a plugin, so follow the step, write web service class, and add
<webservice>com.example.clearspace.plugin.webservices</webservice> to plugin.xml. then depoly the helloworld.jar. But i got some error info. as follows
java.lang.NoClassDefFoundError: com/jivesoftware/community/web/HttpClientWithTimeoutFeedFetcher
at org.apache.jsp.admin.main_jsp._jspService(main_jsp.java:1080)
..................
SEVERE: Error loading plugin
java.lang.NullPointerException
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:269)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
............
SEVERE: Error installing plugin: helloworld
com.jivesoftware.base.plugin.PluginException: java.lang.NullPointerException
at com.jivesoftware.base.plugin.PluginManager.loadPlugin(PluginManager.java:619)
at com.jivesoftware.base.plugin.PluginManager.installPlugin(PluginManager.java:249)
at com.jivesoftware.base.plugin.PluginManager.installPlugin(PluginManager.java:198)
I don't know why. So i downloaded the clearspacex1.7 and installed its incidental sample(example.jar). It works well. so i write a client to invoke the web service.The simple codes as follows:
package com.googlepages.smallnest.facet;
import java.net.MalformedURLException;
import java.net.URL;
import org.codehaus.xfire.client.*;
import org.codehaus.xfire.*;
public class DynamicClient {
public static void main(String[] args) throws MalformedURLException,
Exception {
Client client = new Client(
new URL(
"http://localhost:8080/clearspacex/rpc/soap/EchoService?wsdl"));
Object{"hello"});
System.out.println((String) results[0]);
}}
But unfortunately, i got errors:
Exception in thread "main" org.codehaus.xfire.fault.XFireFault: SOAP Webservices are disabled
at org.codehaus.xfire.fault.Soap11FaultSerializer.readMessage(Soap11FaultSerializer.java:31)
I'm so confused that. I know there will be a service.xml file when you build a separate web service project. So what should i be care of when build a web service in clearspacex?
Thanks
-Johnson
Did you enable web services, as Curtis described in his reply?
Steve
Hi Steve,
I'm sorry that I have a weekend.
As Curtis described, I have changed setting. It is works well now.
Thank you very much.
-Johnson
Jive combines collaboration software, community software & social networking software into the leading SBS solution.
© Copyright 2000–2009 Jive Software. All rights reserved.
915 SW Stark St., Suite 400, Portland, OR 97205