[JBossWS] - WS Clinet working as a standalone but not when I deployed on
by arekatla@gmail.com
Hi
I've written a SOAP client using AXIS, Its working as a standalone but not when I deployed on JBOSS APP server.
I'm getting the following error.
can anyone help me out to fix this?
ERROR [org.jboss.ws.binding.soap.SOAPMessageUnMarshaller] Cannot unmarshall SOAPMessage
javax.xml.soap.SOAPException: Unsupported content type: text/html; charset=ISO-8859-1
at org.jboss.ws.soap.MessageFactoryImpl.createMessageInternal(MessageFactoryImpl.java:206)
at org.jboss.ws.binding.soap.SOAPMessageUnMarshaller.read(SOAPMessageUnMarshaller.java:76)
at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:175)
at org.jboss.remoting.transport.http.HTTPClientInvoker.transport(HTTPClientInvoker.java:81)
at org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:143)
at org.jboss.remoting.Client.invoke(Client.java:525)
at org.jboss.remoting.Client.invoke(Client.java:488)
at org.jboss.ws.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:189)
at org.jboss.ws.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:99)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:595)
2007-04-02 21:11:06,140 DEBUG [org.jboss.remoting.transport.http.HTTPClientInvoker] Error invoking http client invoker.
java.io.IOException: javax.xml.soap.SOAPException: Unsupported content type: text/html; charset=ISO-8859-1
at org.jboss.ws.binding.soap.SOAPMessageUnMarshaller.read(SOAPMessageUnMarshaller.java:82)
at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:175)
at org.jboss.remoting.transport.http.HTTPClientInvoker.transport(HTTPClientInvoker.java:81)
at org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:143)
at org.jboss.remoting.Client.invoke(Client.java:525)
at org.jboss.remoting.Client.invoke(Client.java:488)
at org.jboss.ws.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:189)
at org.jboss.ws.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:99)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:595)
2007-04-02 21:11:06,140 INFO [STDOUT] javax.xml.soap.SOAPException: Could not transmit message
2007-04-02 21:11:06,156 ERROR [STDERR] javax.xml.soap.SOAPException: Could not transmit message
2007-04-02 21:11:06,156 ERROR [STDERR] at org.jboss.ws.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:204)
2007-04-02 21:11:06,156 ERROR [STDERR] at org.jboss.ws.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:99)
2007-04-02 21:11:06,156 ERROR [STDERR] at com.dnb.linkage.testharness.action.LinkageReport.getReport(LinkageReport.java:42)
2007-04-02 21:11:06,156 ERROR [STDERR] at com.dnb.linkage.testharness.action.WSLinkageAction.execute(WSLinkageAction.java:28)
2007-04-02 21:11:06,156 ERROR [STDERR] at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
2007-04-02 21:11:06,156 ERROR [STDERR] at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
2007-04-02 21:11:06,156 ERROR [STDERR] at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
2007-04-02 21:11:06,156 ERROR [STDERR] at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
2007-04-02 21:11:06,156 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
2007-04-02 21:11:06,156 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
2007-04-02 21:11:06,156 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
2007-04-02 21:11:06,156 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
2007-04-02 21:11:06,156 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
2007-04-02 21:11:06,156 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
2007-04-02 21:11:06,156 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
2007-04-02 21:11:06,156 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
2007-04-02 21:11:06,156 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
2007-04-02 21:11:06,156 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
2007-04-02 21:11:06,156 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
2007-04-02 21:11:06,156 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
2007-04-02 21:11:06,156 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
2007-04-02 21:11:06,156 ERROR [STDERR] at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
2007-04-02 21:11:06,156 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
2007-04-02 21:11:06,156 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
2007-04-02 21:11:06,156 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
2007-04-02 21:11:06,156 ERROR [STDERR] at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
2007-04-02 21:11:06,156 ERROR [STDERR] at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
2007-04-02 21:11:06,156 ERROR [STDERR] at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
2007-04-02 21:11:06,156 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
2007-04-02 21:11:06,156 ERROR [STDERR] Caused by: org.jboss.remoting.CannotConnectException: Can not connect http client invoker.
2007-04-02 21:11:06,156 ERROR [STDERR] at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:201)
2007-04-02 21:11:06,156 ERROR [STDERR] at org.jboss.remoting.transport.http.HTTPClientInvoker.transport(HTTPClientInvoker.java:81)
2007-04-02 21:11:06,156 ERROR [STDERR] at org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:143)
2007-04-02 21:11:06,156 ERROR [STDERR] at org.jboss.remoting.Client.invoke(Client.java:525)
2007-04-02 21:11:06,156 ERROR [STDERR] at org.jboss.remoting.Client.invoke(Client.java:488)
2007-04-02 21:11:06,156 ERROR [STDERR] at org.jboss.ws.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:189)
2007-04-02 21:11:06,156 ERROR [STDERR] ... 28 more
2007-04-02 21:11:06,156 ERROR [STDERR] Caused by: java.io.IOException: javax.xml.soap.SOAPException: Unsupported content type: text/html; charset=ISO-8859-1
2007-04-02 21:11:06,171 ERROR [STDERR] at org.jboss.ws.binding.soap.SOAPMessageUnMarshaller.read(SOAPMessageUnMarshaller.java:82)
2007-04-02 21:11:06,171 ERROR [STDERR] at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:175)
2007-04-02 21:11:06,171 ERROR [STDERR] ... 33 more
2007-04-02 21:41:18,343
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4033872#4033872
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4033872
17 years, 8 months
[JBossWS] - Unable to create a WSClient that uses jboss-wsse-client.xml
by noclueu2
Hello All,
I am trying to do a simple WS that requires a user/password and has encryption. I have the user/password working and the server (i think) is doing encryption but I cannot get my client to use the jboss-wsse-client.xml file. Here is all my code, step by step.
SERVER:
jboss-wsse-server.xml
| <?xml version="1.0" encoding="UTF-8"?>
|
| <jboss-ws-security xmlns="http://www.jboss.com/ws-security/config" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://www.jboss.com/ws-security/config http://www.jboss.com/ws-security/schema/jboss-ws-security_1_0.xsd">
| <key-store-file>META-INF/wsse.keystore</key-store-file>
| <key-store-password>jbossws</key-store-password>
| <trust-store-file>META-INF/wsse.truststore</trust-store-file>
| <trust-store-password>jbossws</trust-store-password>
| <config>
| <sign type="x509v3" alias="wsse"/>
| <requires>
| <signature/>
| </requires>
| </config>
| </jboss-ws-security>
|
ServerHandler.xml
| <?xml version="1.0" encoding="UTF-8"?>
|
| <handler-config>
| <handler-chain>
| <handler-chain-name>SecureHandlerChain</handler-chain-name>
| <handler>
| <handler-name>WSSecurityHandlerInbound</handler-name>
| <handler-class>org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerServer</handler-class>
| </handler>
| </handler-chain>
| </handler-config>
|
Server Source:
TestMagicRemoteInterface.java
| import javax.ejb.Local;
| import javax.ejb.Remote;
|
| @Local
| @Remote
| public interface TestMagicRemoteInterface {
| String pullFromHat(String input);
| }
|
TestMagicBean.java
| import javax.annotation.PostConstruct;
| import javax.annotation.security.RolesAllowed;
| import javax.ejb.Local;
| import javax.ejb.Remote;
| import javax.ejb.Stateless;
| import javax.jws.WebMethod;
| import javax.jws.WebResult;
| import javax.jws.WebService;
| import javax.jws.HandlerChain;
| import javax.jws.soap.SOAPBinding;
|
| import org.jboss.annotation.ejb.RemoteBinding;
| import org.jboss.annotation.security.SecurityDomain;
| import org.jboss.ws.annotation.WebContext;
|
| @WebService(name = "EndpointInterface",
| targetNamespace = "http://com.test.www/test/jsr181ejb",
| serviceName = "MagicService")
| @SOAPBinding(style = SOAPBinding.Style.RPC)
| @Local(TestMagicRemoteInterface.class)
| @Remote(TestMagicRemoteInterface.class)
| @RolesAllowed("internal")
| @Stateless
| @RemoteBinding(jndiBinding = "/ejb3/TestMagician")
| @WebContext(authMethod="BASIC", transportGuarantee="NONE", secureWSDLAccess=false)
| @SecurityDomain(value="JBossWS")
| @HandlerChain(file="resource://config/ServerHandler.xml", name="SecureHandlerChain")
| public class TestMagicBean implements TestMagicRemoteInterface {
|
| @WebMethod(operationName="PullFromHat")
| @WebResult(name = "hat")
| public String pullFromHat(String input) {
| return "White Rabbit--"+input;
| }
| }
|
build.xml
| <?xml version="1.0" encoding="UTF-8"?>
| <project default="dist" basedir="." name="JBossWS-Tests">
| <property file="${basedir}/build.properties"/>
|
| <property name="dist.dir" value="${basedir}/dist"/>
| <property name="bin.dir" value="${basedir}/bin"/>
| <property name="src.dir" value="${basedir}/src"/>
| <property name="conf.dir" value="${basedir}/conf"/>
| <property name="keystore.dir" value="${basedir}/keystore"/>
|
| <property name="jboss.client" value="${jboss40.home}/client"/>
| <property name="jboss.deploy" value="${jboss40.home}/server/${jboss.server.instance}"/>
|
| <available classname="java.lang.Enum" property="HAVE_JDK_1.5"/>
|
| <target name="check-jvm">
| <fail message="jdk-1.5 is required" unless="HAVE_JDK_1.5"/>
| </target>
|
| <target name="prepare-classpath" depends="check-jvm">
| <path id="core.classpath">
| <pathelement location="${jboss40.home}/lib/jboss-common.jar"/>
| <pathelement location="${jboss40.home}/lib/jboss-jmx.jar"/>
| <pathelement location="${jboss40.home}/lib/jboss-system.jar"/>
| <pathelement location="${jboss40.home}/lib/jboss-xml-binding.jar"/>
| </path>
| <path id="jbossws.classpath">
| <fileset dir="${jboss.deploy}/deploy/jbossws.sar">
| <include name="*.jar"/>
| </fileset>
| <pathelement location="${jboss.client}/jbossws-client.jar"/>
| <pathelement location="${jboss.client}/jboss-jaxrpc.jar"/>
| <pathelement location="${jboss.client}/jboss-saaj.jar"/>
| </path>
| <path id="ejb3.classpath">
| <fileset dir="${jboss.deploy}/deploy/ejb3.deployer">
| <include name="*.jar"/>
| </fileset>
| <pathelement location="${jboss.client}/jboss-ejb3-client.jar"/>
| <pathelement location="${jboss.deploy}/lib/jboss-j2ee.jar"/>
| </path>
| <path id="wstools.classpath">
| <pathelement location="${jboss.client}/jboss-xml-binding.jar"/>
| <pathelement location="${jboss.client}/activation.jar"/>
| <pathelement location="${jboss.client}/javassist.jar"/>
| <pathelement location="${jboss.client}/jbossall-client.jar"/>
| <pathelement location="${jboss.client}/jbossretro-rt.jar"/>
| <pathelement location="${jboss.client}/jboss-backport-concurrent.jar"/>
| <pathelement location="${jboss.client}/jbossws-client.jar"/>
| <pathelement location="${jboss.client}/log4j.jar"/>
| <pathelement location="${jboss.client}/mail.jar"/>
| </path>
| <path id="build.classpath">
| <path refid="core.classpath"/>
| <path refid="jbossws.classpath"/>
| <path refid="ejb3.classpath"/>
| </path>
| </target>
|
| <target name="wstools" depends="prepare-classpath">
| <taskdef name="wstools" classname="org.jboss.ws.tools.ant.wstools"
| classpathref="wstools.classpath"/>
|
| </target>
|
|
| <target name="compile" depends="prepare-classpath">
| <delete dir="${bin.dir}"/>
| <mkdir dir="${bin.dir}"/>
| <javac destdir="${bin.dir}">
| <src path="${src.dir}"/>
| <classpath refid="build.classpath"/>
| </javac>
| </target>
|
| <target name="package" depends="compile">
| <delete dir="${dist.dir}"/>
| <mkdir dir="${dist.dir}"/>
| <jar destfile="${dist.dir}/${project.name}.jar">
| <zipfileset dir="${bin.dir}">
| <include name="**"/>
| </zipfileset>
| <zipfileset dir="${conf.dir}" prefix="config">
| <include name="ServerHandler.xml"/>
| </zipfileset>
| <zipfileset dir="${conf.dir}" prefix="META-INF">
| <include name="jboss-wsse-server.xml"/>
| </zipfileset>
| <zipfileset dir="${keystore.dir}" prefix="META-INF">
| <include name="wsse.*"/>
| </zipfileset>
| </jar>
| </target>
|
|
| <target name="dist" depends="package">
| <echo message="Preparing Dist"/>
| </target>
| </project>
|
Everything above builds and deploys and expects the client to use wsse:Security
Client Code:
jboss-wsse-client.jar
| <?xml version="1.0" encoding="UTF-8"?>
|
| <jboss-ws-security xmlns="http://www.jboss.com/ws-security/config" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://www.jboss.com/ws-security/config http://www.jboss.com/ws-security/schema/jboss-ws-security_1_0.xsd">
| <key-store-file>c:/work/workspace/TestWebServicesClient/keystore/wsse.keystore</key-store-file>
| <key-store-password>jbossws</key-store-password>
| <trust-store-file>c:/work/workspace/TestWebServicesClient/keystore/wsse.truststore</trust-store-file>
| <trust-store-password>jbossws</trust-store-password>
| <config>
| <sign type="x509v3" alias="wsse"/>
| <requires>
| <encryption/>
| </requires>
| </config>
| </jboss-ws-security>
|
wstools-config.xml
| <?xml version="1.0" encoding="UTF-8"?>
|
| <configuration xmlns="http://www.jboss.org/jbossws-tools"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://www.jboss.org/jbossws-tools http://www.jboss.org/jbossws-tools/schema/jbossws-tool_1_0.xsd">
| <wsdl-java file="http://localhost:8080/MagicService/TestMagicBean?wsdl">
|
| </wsdl-java>
| </configuration>
|
ClientTest.java
| import java.net.URL;
| import java.util.Map;
|
| import javax.xml.namespace.QName;
| import javax.xml.ws.BindingProvider;
|
| import com.client.MagicService;
| import com.client.EndpointInterface;
|
| public class ClientTest {
|
| public static void main(String[] args) {
| System.setProperty("org.jboss.wsse.keyStore", "c:/work/workspace/TestWebServicesClient/keystore/wsse.keystore");
| System.setProperty("org.jboss.wsse.keyStorePassword", "jbossws");
| System.setProperty("org.jboss.wsse.keyStoreType", "x509v3");
| System.setProperty("org.jboss.wsse.trustStore", "c:/work/workspace/TestWebServicesClient/keystore/wsse.truststore");
| System.setProperty("org.jboss.wsse.trustStorePassword", "jbossws");
| System.setProperty("org.jboss.wsse.trustStoreType", "x509v3");
|
|
| try {
| System.out.println("Hello World, I'm about to do magic");
| MagicService service = new MagicService();
| EndpointInterface port = service.getEndpointInterfacePort();
| BindingProvider bindingProvider = (BindingProvider) port;
| Map<String, Object> reqContext = bindingProvider.getRequestContext();
| reqContext.put(BindingProvider.USERNAME_PROPERTY, "myuser");
| reqContext.put(BindingProvider.PASSWORD_PROPERTY, "mypassword");
|
| System.out.println(port.pullFromHat("Java Client Test"));
|
| } catch (Exception e) {
| e.printStackTrace();
| }
|
| }
|
| }
|
build.xml
| <?xml version="1.0" encoding="UTF-8"?>
| <project default="dist" basedir="." name="JBossWS-Tests">
| <property file="${basedir}/build.properties"/>
|
| <property name="dist.dir" value="${basedir}/dist"/>
| <property name="bin.dir" value="${basedir}/bin"/>
| <property name="src.dir" value="${basedir}/src"/>
| <property name="conf.dir" value="${basedir}/conf"/>
| <property name="keystore.dir" value="${basedir}/keystore"/>
| <property name="thirdparty.dir" value="${basedir}/thirdparty"/>
|
| <property name="jboss.client" value="${jboss40.home}/client"/>
| <property name="jboss.deploy" value="${jboss40.home}/server/${jboss.server.instance}"/>
|
| <available classname="java.lang.Enum" property="HAVE_JDK_1.5"/>
|
| <target name="check-jvm">
| <fail message="jdk-1.5 is required" unless="HAVE_JDK_1.5"/>
| </target>
|
| <target name="prepare-classpath" depends="check-jvm">
| <path id="core.classpath">
| <pathelement location="${jboss40.home}/lib/jboss-common.jar"/>
| <pathelement location="${jboss40.home}/lib/jboss-jmx.jar"/>
| <pathelement location="${jboss40.home}/lib/jboss-system.jar"/>
| <pathelement location="${jboss40.home}/lib/jboss-xml-binding.jar"/>
| </path>
| <path id="jbossws.classpath">
| <fileset dir="${jboss.deploy}/deploy/jbossws.sar">
| <include name="*.jar"/>
| </fileset>
| <pathelement location="${jboss.client}/jbossws-client.jar"/>
| <pathelement location="${jboss.client}/jboss-jaxrpc.jar"/>
| <pathelement location="${jboss.client}/jboss-saaj.jar"/>
| </path>
| <path id="ejb3.classpath">
| <fileset dir="${jboss.deploy}/deploy/ejb3.deployer">
| <include name="*.jar"/>
| </fileset>
| <pathelement location="${jboss.client}/jboss-ejb3-client.jar"/>
| <pathelement location="${jboss.deploy}/lib/jboss-j2ee.jar"/>
| </path>
| <path id="wstools.classpath">
| <pathelement location="${jboss.client}/jboss-xml-binding.jar"/>
| <pathelement location="${jboss.client}/activation.jar"/>
| <pathelement location="${jboss.client}/javassist.jar"/>
| <pathelement location="${jboss.client}/jbossall-client.jar"/>
| <pathelement location="${jboss.client}/jbossretro-rt.jar"/>
| <pathelement location="${jboss.client}/jboss-backport-concurrent.jar"/>
| <pathelement location="${jboss.client}/jbossws-client.jar"/>
| <pathelement location="${jboss.client}/log4j.jar"/>
| <pathelement location="${jboss.client}/mail.jar"/>
| <path refid="core.classpath"/>
| <path refid="jbossws.classpath"/>
| <path refid="ejb3.classpath"/>
| </path>
| <path id="build.classpath">
| <path refid="core.classpath"/>
| <path refid="jbossws.classpath"/>
| <path refid="ejb3.classpath"/>
| </path>
| <path id="client.classpath">
| <fileset dir="${jboss.client}">
| <include name="*.jar"/>
| </fileset>
| <path refid="core.classpath"/>
| <path refid="jbossws.classpath"/>
| <path refid="ejb3.classpath"/>
| <pathelement location="${jboss40.home}/lib/endorsed/xercesImpl.jar"/>
| </path>
| </target>
|
| <target name="wstools" depends="prepare-classpath">
|
| <taskdef name="wstools" classname="org.jboss.ws.tools.ant.wstools"
| classpathref="wstools.classpath"/>
| <!-- <wstools dest="${bin.dir}" config="conf/wstools-config.xml"/> -->
| <taskdef name="wsconsume" classname="org.jboss.ws.tools.jaxws.ant.wsconsume">
| <classpath refid="wstools.classpath"/>
| <classpath location="${thirdparty.dir}/jbossws-wsconsume-impl.jar"/>
| <classpath location="${thirdparty.dir}/jaxb-xjc.jar"/>
| </taskdef>
| <wsconsume wsdl="http://localhost:8080/MagicService/TestMagicBean?wsdl" package="com.client" sourcedestdir="${src.dir}" keep="true"/>
|
|
| </target>
|
|
| <target name="compile" depends="prepare-classpath">
| <delete dir="${bin.dir}"/>
| <mkdir dir="${bin.dir}"/>
| <javac destdir="${bin.dir}">
| <src path="${src.dir}"/>
| <classpath refid="build.classpath"/>
| </javac>
| </target>
|
| <target name="package" depends="compile">
| <delete dir="${dist.dir}"/>
| <mkdir dir="${dist.dir}"/>
| <jar destfile="${dist.dir}/${project.name}-Client.jar">
| <manifest>
| <attribute name="Main-Class" value="ClientTest"/>
| </manifest>
| <zipfileset dir="${bin.dir}">
| <include name="**"/>
| </zipfileset>
| <zipfileset dir="${conf.dir}" prefix="META-INF">
| <include name="jboss-wsse-client.xml"/>
| </zipfileset>
| </jar>
| </target>
|
|
| <target name="dist" depends="package">
| <echo message="Preparing Dist"/>
| </target>
|
| <target name="run" depends="dist">
| <echo message="About To RUN"/>
|
|
| <java classname="ClientTest" fork="true">
| <classpath>
| <pathelement location="${dist.dir}/${project.name}-Client.jar"/>
| <fileset dir="${jboss.client}">
| <include name="*.jar"/>
| </fileset>
| <pathelement location="${jboss40.home}/lib/endorsed/xercesImpl.jar"/>
| </classpath>
| </java>
| </target>
| </project>
|
Jar File structure:
| META-INF
| jboss-wsse-client.xml
| Manifest.mf
| ClientTest.class
| com
| client
| MagicService.class
| EndpointInterface.class
|
My above code works if I do not include the jboss-wsse-server.xml but once I add it, the client fails. I do know that I had to add the HandlerChain to the server class for things to work, is there something similar that I have to do to the client?
Thanks,
Richard K
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4033861#4033861
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4033861
17 years, 8 months
[JBossWS] - how to run the jbossws samples?
by danielmesser
Hi,
I am running JBoss-4.0.5.GA on linux Suse 10.0.
I installed jbossws-1.2.0-SP1 using the instructions in the user guide.
To build the samples I dis the following:
- unziped the jbossws-samples-1.2.0.SP1.zip file
- cd jbossws-samples-1.2.0.SP1
- cp ant.properties.example ant.properties
- in the ant.properties file:
- set jboss40.home
- set jbossws.integration.target=jboss40
I then ran ant.
It got most of the third party libraries but failed to compile because the junit library was missing.
I downloaded junit4.1 and installed it in the thirdparty directory.
I was then able to build the samples.
Now, my general question is:
what do I do to run the tests?
I am most interested in running the jaxws/webresult sample.
I tried to run:
- ant tests
but I don't see any web services deployed in my $JBOSS_HOME/server/default/deploy directory and I don't see any services in
http://localhost:8080/jbossws/services
I also get the following exceptions:
tests-main:
[mkdir] Created dir: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/reports
[junit] Running org.jboss.test.ws.jaxrpc.samples.docstyle.bare.TrivialServiceDocBareTestCase
[junit] java.lang.SecurityException: Failed to authenticate principal=null, securityDomain=jmx-console
[junit] at org.jboss.jmx.connector.invoker.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:97)
[junit] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
[junit] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
[junit] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
[junit] at org.jboss.invocation.jrmp.server.JRMPProxyFactory.invoke(JRMPProxyFactory.java:179)
[junit] at sun.reflect.GeneratedMethodAccessor1189.invoke(Unknown Source)
[junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[junit] at java.lang.reflect.Method.invoke(Method.java:585)
[junit] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
[junit] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
[junit] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
[junit] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
[junit] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
[junit] at org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:819)
[junit] at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:420)
[junit] at sun.reflect.GeneratedMethodAccessor1188.invoke(Unknown Source)
[junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[junit] at java.lang.reflect.Method.invoke(Method.java:585)
[junit] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
[junit] at sun.rmi.transport.Transport$1.run(Transport.java:153)
[junit] at java.security.AccessController.doPrivileged(Native Method)
[junit] at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
[junit] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
[junit] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
[junit] at java.lang.Thread.run(Thread.java:595)
[junit] at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
[junit] at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
[junit] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126)
[junit] at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source)
[junit] at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:133)
[junit] at org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerInterceptor.java:365)
[junit] at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:197)
[junit] at org.jboss.jmx.connector.invoker.client.InvokerAdaptorClientInterceptor.invoke(InvokerAdaptorClientInterceptor.java:66)
[junit] at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:70)
[junit] at org.jboss.proxy.ClientMethodInterceptor.invoke(ClientMethodInterceptor.java:74)
[junit] at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
[junit] at $Proxy0.invoke(Unknown Source)
[junit] at org.jboss.test.ws.TestDeployerJBoss.deploy(TestDeployerJBoss.java:48)
[junit] at org.jboss.test.ws.JBossWSTestHelper.deploy(JBossWSTestHelper.java:55)
[junit] at org.jboss.test.ws.JBossWSTestSetup.setUp(JBossWSTestSetup.java:90)
[junit] at junit.extensions.TestSetup$1.protect(TestSetup.java:22)
[junit] at junit.framework.TestResult.runProtected(TestResult.java:128)
[junit] at junit.extensions.TestSetup.run(TestSetup.java:27)
[junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:421)
[junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:912)
[junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:766)
[junit] Tests run: 0, Failures: 0, Errors: 1, Time elapsed: 0.921 sec
[junit] Test org.jboss.test.ws.jaxrpc.samples.docstyle.bare.TrivialServiceDocBareTestCase FAILED
[junit] Running org.jboss.test.ws.jaxrpc.samples.docstyle.wrapped.TrivialServiceDocWrappedTestCase
[junit] java.lang.SecurityException: Failed to authenticate principal=null, securityDomain=jmx-console
[junit] at org.jboss.jmx.connector.invoker.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:97)
[junit] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
[junit] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
[junit] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
[junit] at org.jboss.invocation.jrmp.server.JRMPProxyFactory.invoke(JRMPProxyFactory.java:179)
[junit] at sun.reflect.GeneratedMethodAccessor1189.invoke(Unknown Source)
[junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[junit] at java.lang.reflect.Method.invoke(Method.java:585)
[junit] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
[junit] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
[junit] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
[junit] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
[junit] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
[junit] at org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:819)
[junit] at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:420)
[junit] at sun.reflect.GeneratedMethodAccessor1188.invoke(Unknown Source)
[junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[junit] at java.lang.reflect.Method.invoke(Method.java:585)
[junit] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
[junit] at sun.rmi.transport.Transport$1.run(Transport.java:153)
[junit] at java.security.AccessController.doPrivileged(Native Method)
[junit] at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
[junit] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
[junit] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
[junit] at java.lang.Thread.run(Thread.java:595)
[junit] at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
[junit] at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
[junit] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126)
[junit] at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source)
[junit] at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:133)
[junit] at org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerInterceptor.java:365)
[junit] at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:197)
[junit] at org.jboss.jmx.connector.invoker.client.InvokerAdaptorClientInterceptor.invoke(InvokerAdaptorClientInterceptor.java:66)
[junit] at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:70)
[junit] at org.jboss.proxy.ClientMethodInterceptor.invoke(ClientMethodInterceptor.java:74)
[junit] at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
[junit] at $Proxy0.invoke(Unknown Source)
[junit] at org.jboss.test.ws.TestDeployerJBoss.deploy(TestDeployerJBoss.java:48)
[junit] at org.jboss.test.ws.JBossWSTestHelper.deploy(JBossWSTestHelper.java:55)
[junit] at org.jboss.test.ws.JBossWSTestSetup.setUp(JBossWSTestSetup.java:90)
[junit] at junit.extensions.TestSetup$1.protect(TestSetup.java:22)
[junit] at junit.framework.TestResult.runProtected(TestResult.java:128)
[junit] at junit.extensions.TestSetup.run(TestSetup.java:27)
[junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:421)
[junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:912)
[junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:766)
[junit] Tests run: 0, Failures: 0, Errors: 1, Time elapsed: 0.688 sec
[junit] Test org.jboss.test.ws.jaxrpc.samples.docstyle.wrapped.TrivialServiceDocWrappedTestCase FAILED
Just FYI, here is the output of the build process:
Buildfile: build.xml
prepare:
[mkdir] Created dir: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/log
[touch] Creating /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/log/test.log
[echo]
[echo] -----------------------------------------------
[echo] jboss.home = /opt/jboss/jboss-4.0.5.GA
[echo] tomcat.home = /usr/java/tomcat
[echo] java.home = /usr/java/jdk1.5.0_11/jre
[echo] endorsed = /opt/jboss/jboss-4.0.5.GA/lib/endorsed
[echo] excludesfile = tests-jboss40-excludes.txt
[echo] -----------------------------------------------
thirdparty-get:
thirdparty-classpath:
thirdparty:
common-classpath:
jboss-classpath:
tomcat-classpath:
init:
wsconsume:
compile14:
compile15:
[mkdir] Created dir: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/classes
[javac] Compiling 230 source files to /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/classes
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
compile:
copy-resources:
[copy] Copying 1 file to /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/classes
[copy] Copying 1 file to /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/classes
[copy] Copying 169 files to /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/resources
[copy] Copying 28 files to /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/resources
[copy] Copied 24 empty directories to 11 empty directories under /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/resources
servicegen:
[mkdir] Created dir: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs
[zip] Building zip: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-wsbpel-hello-process.zip
[copy] Copying 1 file to /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs
[servicegen] Apr 2, 2007 11:44:44 AM org.jbpm.JbpmConfiguration getInstance
[servicegen] INFO: using jbpm configuration resource 'jbpm.cfg.xml'
[servicegen] Warning: Running an XSLT 1.0 stylesheet with an XSLT 2.0 processor
[servicegen] Apr 2, 2007 11:44:46 AM org.jbpm.bpel.xml.BpelReader readWsdlDocument
[servicegen] INFO: read wsdl definitions: hello.wsdl
[servicegen] Warning: Running an XSLT 1.0 stylesheet with an XSLT 2.0 processor
[servicegen] Apr 2, 2007 11:44:47 AM org.jbpm.bpel.xml.BpelReader read
[servicegen] INFO: read bpel process: hello.bpel
[servicegen] Apr 2, 2007 11:44:47 AM org.jbpm.bpel.wsdl.util.ServiceGenerator writeImportedDefinition
[servicegen] INFO: wrote interface definition: locationURI=hello.wsdl, basePath=/home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/wstools/resources/jaxrpc/samples/wsbpel/hello/WEB-INF/wsdl
[servicegen] Apr 2, 2007 11:44:47 AM org.jbpm.bpel.wsdl.util.ServiceGenerator generatePortComponents
[servicegen] INFO: wrote binding definition: hello-binding-1.wsdl
[servicegen] Apr 2, 2007 11:44:47 AM org.jbpm.bpel.wsdl.util.ServiceGenerator generatePortComponents
[servicegen] INFO: wrote service definition: hello-service.wsdl
wstools:
[mkdir] Created dir: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/wstools/java
[move] Moving 2 files to /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/wstools/java
[copy] Copying 51 files to /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/resources
[copy] Copying 10 files to /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/resources/jaxrpc/samples
[copy] Copied 18 empty directories to 1 empty directory under /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/resources/jaxrpc/samples
wsprovide:
generate-resources:
[javac] Compiling 2 source files to /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/classes
main:
build-samples-jaxrpc:
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-docstyle-bare.war
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-docstyle-bare-client.jar
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-docstyle-wrapped.war
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-docstyle-wrapped-client.jar
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-dynamichandler.war
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-dynamichandler-client.jar
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-exception.war
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-exception-client.jar
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-handler.war
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-handler-client.jar
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-holder.war
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-holder-client.jar
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-jmstransport.jar
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-jmstransport.sar
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-jsr109ejb-rpc.jar
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-jsr109ejb-rpc-client.jar
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-jsr109ejb-doc.jar
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-jsr109ejb-doc-client.jar
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-jsr109pojo-rpc.war
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-jsr109pojo-rpc-client.jar
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-jsr109pojo-doc.war
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-jsr109pojo-doc-client.jar
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-message.war
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-message-client.jar
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-mtom.war
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-mtom-client.jar
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-oneway.war
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-oneway-client.jar
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-rpcstyle.war
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-rpcstyle-client.jar
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-secureejb.jar
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-secureejb-client.jar
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-swa.war
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-swa-client.jar
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-store-pass-encrypt.war
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-store-pass-encrypt-client.jar
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-wsbpel-hello.war
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-wsbpel-hello-client.jar
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-wssecurity-sign.war
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-wssecurity-sign-client.jar
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-wssecurity-encrypt.war
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-wssecurity-encrypt-client.jar
build-samples-jaxws:
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-asynchronous.war
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-context.war
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-context.jar
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-context-jboss4x.jar
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-exception.war
[copy] Copying 1 file to /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/classes/org/jboss/test/ws/jaxws/samples/handlerchain
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-handlerchain.war
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-handlerchain-client.jar
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-jsr181ejb.jar
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-jsr181pojo.war
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-jsr181pojo-docwrapped.war
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-jsr181pojo-docwrapped-client.jar
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-logicalhandler-source.war
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-logicalhandler-jaxb.war
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-oneway.war
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-provider-jaxb.war
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-provider-message.war
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-provider-payload.war
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-retail.jar
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-retail-client.jar
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-soapbinding.war
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-webmethod.war
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-webparam.war
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-webresult.war
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-webservice01-jse.war
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-webservice02-jse.war
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-webservice03-jse.war
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-webservice01-ejb3.jar
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-webservice02-ejb3.jar
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-webservice03-ejb3.jar
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-webserviceref.war
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-webserviceref-client.jar
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-webserviceref-servlet-client.war
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-webserviceref-ejb3-client.jar
[jar] Warning: skipping jar archive /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-webserviceref-secure.jar because no files were included.
[jar] Building MANIFEST-only jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-webserviceref-secure.jar
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-webserviceref-secure-client.jar
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-webserviceref-override-client.jar
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-wsaddressing.war
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-wseventing.war
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-wssecurity-encrypt.war
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-wssecurity-sign.war
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-xop-doclit.war
BUILD SUCCESSFUL
Total time: 21 seconds
Thanks,
Daniel Messer
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4033759#4033759
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4033759
17 years, 8 months
[JBossWS] - JbossWs and hibernate
by nicolemans72
I have another problem.
My webservice is a methode that takes an object of type "Dmex" in the mysql data base (with Hibernate).
| public class DmexWs implements IDmexWs {
|
| SessionFactory sessionFactory = new Configuration().configure ().buildSessionFactory();
|
| public String getDmex(int id) throws RemoteException {
| CommonManager cm = HibernateEnviron.getCommonManager();
|
| Dmex dmex = (Dmex)cm.findOneId(Dmex.class, 792);
|
| return dmex.getDescription();
|
| }
|
| }
|
And when I run the client, I have this error:
| java.rmi.RemoteException: Call invocation failed with code [Client] because of: JDBC Driver class not found: com.mysql.jdbc.Driver; nested exception is:
|
Must I put the mysqlConnector jar with my class DmexWs in the .war deployed on the server?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4033697#4033697
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4033697
17 years, 8 months
[JBossWS] - Mapping problem
by nicolemans72
I have a problem with my web service client :
| try {
| //urn:bsa.ws.test
| ServiceFactory factory = ServiceFactory.newInstance();
| URL wsdlLocation = new URL("http://localhost:8080/DmexWs" + "?wsdl");
| QName serviceName = new QName("urn:bsa.ws.test", "DmexWs");
| Service service = (Service)factory.createService(wsdlLocation, serviceName);
| Call call = service.createCall();
|
| QName operationName = new QName("urn:bsa.ws.test", "getDmex");
| call.setOperationName(operationName);
|
| Integer id = new Integer(274);
| Object retObj = call.invoke(new Object[]{id});
|
| System.out.println(retObj);
| } catch (Exception e) {
| e.printStackTrace();
| }
|
The return type is "Dmex" and when I run my client I have this error:
| org.jboss.ws.WSException: Cannot obtain java type mapping for: {urn:bsa.ws.test.types}Dmex
|
I generated the jaxrpc-mapping.xml but it seems that my client doesn't use it.
What could I do for this problem?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4033677#4033677
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4033677
17 years, 8 months