[JBossWS] - Endpoint registration
by monkeyden
I have an endpoint, in my ejb jar file, deployed to JBoss 4.2.2GA. I can see the bean is being deployed but I see nothing about the endpoint registration, like I do all the portal services. I also see the portal services endpoints at the services URL http://localhost:8080/jbossws/services but not mine. Is there something else I need to do to get it to register? Perhaps a cfg file in the ear? I am using the first example from Java Web Services: Up and Running
Interface
| @WebService
| @SOAPBinding(style = Style.RPC) // more on this later
| public interface TimeServer {
| @WebMethod String getTimeAsString();
| @WebMethod long getTimeAsElapsed();
| }
|
Impl
@WebService(endpointInterface = "com.symcare.ids.services.TimeServer")
| public class TimeServerImpl implements TimeServer {
| public String getTimeAsString() { return new Date().toString(); }
| public long getTimeAsElapsed() { return new Date().getTime(); }
| }
|
Thanks!
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4249274#4249274
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4249274
15 years, 4 months
[JBossWS] - Problem deploy WS (ClassFormatError)
by konstt2000
Hi,
I have a project java and compile it with ANT. When deploy the war (with his web.xml, etc) gives me a error.
| 14:23:19,852 ERROR [MainDeployer] Could not create deployment: file:/D:/jboss-soa-p.4.3.0/jboss-as_SOA/server/default/deploy/WebServiceGde.war
| java.lang.ClassFormatError: Method "getDescripcion" in class es/ree/gde/webservice/logica/WebServiceGde has illegal signature "ourceFile"
| at java.lang.ClassLoader.defineClass1(Native Method)
| at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
| at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
| at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
| at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
| at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
| at java.security.AccessController.doPrivileged(Native Method)
| at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
| at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
| at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
| at org.jboss.wsf.container.jboss42.JAXWSDeployerHookPreJSE.getEndpointBeans(JAXWSDeployerHookPreJSE.java:145)
| at org.jboss.wsf.container.jboss42.JAXWSDeployerHookPreJSE.isWebServiceDeployment(JAXWSDeployerHookPreJSE.java:104)
| at org.jboss.wsf.container.jboss42.ArchiveDeployerHook.deploy(ArchiveDeployerHook.java:87)
| at org.jboss.wsf.container.jboss42.DeployerInterceptor.create(DeployerInterceptor.java:79)
| at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.create(SubDeployerInterceptorSupport.java:180)
| at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:91)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy46.create(Unknown Source)
| at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at sun.reflect.GeneratedMethodAccessor24.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy9.deploy(Unknown Source)
|
If I believe a project web in eclipse and deploy the webservice works fine.
I believe
I believe that the classes are not compiled well. In addition they occupy differently the .class that I compile that those that eclipse generates. ¿?¿?¿??
I work with JDK1.5 and JBOSS.4.3
Thanks.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4249211#4249211
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4249211
15 years, 4 months
[JBossWS] - Re: Problem in a WSclient (JBoss 4.2.3) to connect .NET serv
by magacho
The [404] is the answer from our partner, when he got a transfer-encoding: chunked for protection agains Deny os service attacs, he returns 404 as an answer.
The fact is that depending on the context (EJB or WS) the code (Soap Request) works in two diferent ways.
| WS
| POST /virtual/wsi/cap.asmx HTTP/1.1
| SOAPAction: "http://qqcoisa.com.br/GetAuthorized"
| Content-Type: text/xml; charset=UTF-8
| JBoss-Remoting-Version: 22
| User-Agent: JBossRemoting - 2.2.2.SP8
| Host: ecommerce.redecard.com.br
| Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
| Connection: keep-alive
| Content-Length: 860
|
| JNDI Remote / Local
| POST /virtual/ws/cap.asmx HTTP/1.1
| SOAPAction: "http://qqcoisa.com.br/GetAuthorized"
| Content-Type: text/xml; charset=UTF-8
| JBoss-Remoting-Version: 22
| User-Agent: JBossRemoting - 2.2.2.SP8
| Host: ecommerce.redecard.com.br
| Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
| Connection: keep-alive
| Transfer-Encoding: chunked
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4249057#4249057
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4249057
15 years, 4 months