[JBossWS] - SOAPElementImpl cast excepion (JBoss 4.2 + Axis2 + JDK1.6)
by kalparser
Need help ugently!
Does anyone have the same problem as below?
----------------------------------------------------
14:40:01,221 ERROR [SOAPFaultHelperJAXWS] SOAP request exception
java.lang.ClassCastException: org.apache.axis2.saaj.SOAPElementImpl cannot be cast to org.jboss.ws.core.soap.SOAPElementImpl
at org.jboss.ws.core.soap.SOAPEnvelopeImpl.(SOAPEnvelopeImpl.java:60)
at org.jboss.ws.core.soap.EnvelopeBuilderDOM.build(EnvelopeBuilderDOM.java:124)
at org.jboss.ws.core.soap.EnvelopeBuilderDOM.build(EnvelopeBuilderDOM.java:96)
at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:262)
at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:185)
at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:389)
at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:272)
at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:189)
at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:122)
at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
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.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
at java.lang.Thread.run(Thread.java:619)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4135191#4135191
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4135191
16 years, 9 months
[JBossWS] - cannot be cast to java.lang.RuntimeException
by QkI
When I try to run my ws client, I get error
| Exception in thread "main" java.lang.ClassCastException: java.lang.ExceptionInInitializerError cannot be cast to java.lang.RuntimeException
| at com.sun.xml.internal.ws.protocol.soap.client.SOAPMessageDispatcher.doSend(SOAPMessageDispatcher.java:268)
| at com.sun.xml.internal.ws.protocol.soap.client.SOAPMessageDispatcher.send(SOAPMessageDispatcher.java:139)
| at com.sun.xml.internal.ws.encoding.soap.internal.DelegateBase.send(DelegateBase.java:86)
| at com.sun.xml.internal.ws.client.EndpointIFInvocationHandler.implementSEIMethod(EndpointIFInvocationHandler.java:174)
| at com.sun.xml.internal.ws.client.EndpointIFInvocationHandler.invoke(EndpointIFInvocationHandler.java:108)
| at $Proxy16.sayHello(Unknown Source)
| at biz.safo.ws.client.Client.main(Client.java:12)
|
this's my ws
| @Stateless
| @WebService(name="Hello",
| targetNamespace="http://ws.safo.biz",
| serviceName="HelloService")
| public class Hello implements HelloRemote {
|
| @WebMethod
| public String sayHello(String name) {
| System.out.println("<< sayHello");
| return "Hello, " + name;
| }
|
| }
|
and client
| public class Client {
| public static void main(String[] args) {
| HelloService service = new HelloService();
| Hello hello = service.getHelloPort();
| hello.sayHello("heh");
| }
| }
|
classes Hello and HelloService i generate by wsconsume.
My configuration JBoss 4.2.1, jbossws 2.0.3, jdk6.
Any idea what I'm doing wrong?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4135144#4135144
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4135144
16 years, 9 months
[JBossWS] - webservice compiler error
by arrojusrikanth
when compile webservice with ant it generating compiler errors
|
|
| D:\programs\webservices\calculatorwebservice>ant
| Buildfile: build.xml
|
| prepare:
| [mkdir] Created dir:
|
| D:\programs\webservices\calculatorwebservice\build
| [mkdir] Created dir:
|
| D:\programs\webservices\calculatorwebservice\build\
|
| clas
| ses
|
| compile:
| [javac] Compiling 3 source files to
|
| D:\programs\webservices\calculatorwebser
| vice\build\classes
| [javac]
|
| D:\programs\webservices\calculatorwebservice\src\we
|
| bservice1\Calcula
| torBean.java:2: cannot find symbol
| [javac] symbol : class Stateless
| [javac] location: package javax.ejb
| [javac] import javax.ejb.Stateless;
| [javac] ^
| [javac]
|
| D:\programs\webservices\calculatorwebservice\src\we
|
| bservice1\Calcula
| tor.java:9: incompatible types
| [javac] found : javax.jws.WebService
| [javac] required:
|
| java.lang.annotation.Annotation
| [javac] @WebService(name="Calculator1")
| [javac] ^
| [javac]
|
| D:\programs\webservices\calculatorwebservice\src\we
|
| bservice1\Calcula
| tor.java:10: incompatible types
| [javac] found : javax.jws.soap.SOAPBinding
| [javac] required:
|
| java.lang.annotation.Annotation
| [javac] @SOAPBinding(style=Style.RPC)
| [javac] ^
| [javac]
|
| D:\programs\webservices\calculatorwebservice\src\we
|
| bservice1\Calcula
| tor.java:10: duplicate annotation
| [javac] @SOAPBinding(style=Style.RPC)
| [javac] ^
| [javac]
|
| D:\programs\webservices\calculatorwebservice\src\we
|
| bservice1\Calcula
| tor.java:13: incompatible types
| [javac] found : javax.jws.WebMethod
| [javac] required:
|
| java.lang.annotation.Annotation
| [javac] @WebMethod int add(int x, int y);
| [javac] ^
| [javac]
|
| D:\programs\webservices\calculatorwebservice\src\we
|
| bservice1\Calcula
| tor.java:15: incompatible types
| [javac] found : javax.jws.WebMethod
| [javac] required:
|
| java.lang.annotation.Annotation
| [javac] @WebMethod int subtract(int x, int
|
| y);
| [javac] ^
| [javac]
|
| D:\programs\webservices\calculatorwebservice\src\we
|
| bservice1\Calcula
| torBean.java:6: cannot find symbol
| [javac] symbol: class Stateless
| [javac] @Stateless
| [javac] ^
| [javac]
|
| D:\programs\webservices\calculatorwebservice\src\we
|
| bservice1\Calcula
| torBean.java:7: incompatible types
| [javac] found : javax.jws.WebService
| [javac] required:
|
| java.lang.annotation.Annotation
| [javac] @WebService(name="Calculator1",
|
| endpointInterface="webservice1.Calcu
| lator")
| [javac] ^
| [javac]
|
| D:\programs\webservices\calculatorwebservice\src\we
|
| bservice1\Client.
| java:17: warning: [deprecation]
|
| webservice1.Calculator in webservice1 has been d
| eprecated
| [javac] Calculator calculator =
|
| (Calculator) service.getPort(Calculato
| r.class);
| [javac] ^
| [javac]
|
| D:\programs\webservices\calculatorwebservice\src\we
|
| bservice1\Client.
| java:17: warning: [deprecation]
|
| webservice1.Calculator in webservice1 has been d
| eprecated
| [javac] Calculator calculator =
|
| (Calculator) service.getPort(Calculato
| r.class);
| [javac] ^
| [javac]
|
| D:\programs\webservices\calculatorwebservice\src\we
|
| bservice1\Client.
| java:17: warning: [deprecation]
|
| webservice1.Calculator in webservice1 has been d
| eprecated
| [javac] Calculator calculator =
|
| (Calculator) service.getPort(Calculato
| r.class);
| [javac]
|
| ^
| [javac]
|
| D:\programs\webservices\calculatorwebservice\src\we
|
| bservice1\Client.
| java:18: warning: [deprecation] add(int,int) in
|
| webservice1.Calculator has been
| deprecated
| [javac] System.out.println("1 + 1 = " +
|
| calculator.add(1, 1));
| [javac]
|
| ^
| [javac]
|
| D:\programs\webservices\calculatorwebservice\src\we
|
| bservice1\Client.
| java:19: warning: [deprecation] subtract(int,int)
|
| in webservice1.Calculator has
| been deprecated
| [javac] System.out.println("1 - 1 = " +
|
| calculator.subtract(1, 1));
| [javac]
|
| ^
| [javac] 8 errors
| [javac] 5 warnings
|
| BUILD FAILED
| D:\programs\webservices\calculatorwebservice\build.
|
| xml:47: Compile failed; see t
| he compiler error output for details.
|
| Total time: 10 seconds
|
| D:\programs\webservices\calculatorwebservice>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4135137#4135137
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4135137
16 years, 9 months
[JBossWS] - Upgrading to 4.2.2 changed published WSDL
by GTWebDev
We recently upgraded our JBossAS from 4.0.5 to 4.2.2. We have EJBs exposed as Web Services. Since the upgrade, applications that consume the Services no longer work due to changes in the WSDL produced by 4.2.2. Though our EJBs are annotated, the WSLDs are very different. We have tried to annotate at the package level to get the WSDL to match the old services in 4.0.5 but have had no luck.
Errors we experience are similar to the following:
12:46:10,048 ERROR [SOAPFaultHelperJAXWS] SOAP request exception javax.ejb.EJBException: java.lang.NullPointerException
All is good if we Re-consume the service but the is not a viable solutions for all of our clients.
Has anyone experienced XmlSchema changes when upgrading? Does anyone have a solution for such a problem? Any guidance is appreciated.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4134962#4134962
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4134962
16 years, 9 months
[JBossWS] - How to tell which Web Service stack(s) are in which Redhat J
by anguilla
Please forgive this total newbie question, but I have been searching for 3 days to an answer to this question. I'm sure the info is out there, and I just haven't been smart enough to stumble upon it. Anyway, I am trying to understand which web service stacks are integrated in the various JBoss product offerings from Redhat, what standards each implement, and what the RH web services roadmap looks like. I am totally confused by all this, probably because I come from a background where I only had the choice of using ASP.NET for web services, and now there are too many options 8=).
If I buy JBoss Application Server from Redhat, am I getting JBossWS as the web service solution? Or is JBossWS something that I have to acquire separately? Or are there multiple WS implementations (of which JBossWS is only one), any of which can be utilized with the JBoss AS?
I purchased the JBoss Developer Studio from Redhat, which came with an entitlement to RHEL 5 (which I installed), and came bundled with the JBoss Enterprise Application Platform (which appears to include JBoss Application Server 4.2). How can I tell what the web service stack is for the AS? On the IDE side of things, it looks like the JBDS wants me to create Apache Axis or Axis2 web services. I don't see any mention of JBossWS in the IDE. Am I missing some crucial plug-in?
I fear the answer to my questions is that I am just totally clueless, but if some kind soul could point me to some specific information (just telling me to go to the forum or wiki won't help, as I've already been there and am still confused), I would really appreciate it. Thanks in advance.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4134960#4134960
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4134960
16 years, 9 months