[JBossWS] - Re: Problem with inheritance and JBossWS
by mrokka123
I also have the same problem. I have used jboss4.2.0+jbossws2.0.1+jdk 1.5. I tried using @XmlSeeAlso on base class but it also can't solved my porblem.
I have the following situation:
My Pojo classes
@XmlSeeAlso({B.class,C.class})
public class A extends java.io.Serializable{
}
public class B extends A{
}
public class C extends A{
}
Now webservice
@WebService(name = "MyWebServicePortType", serviceName = "MyWebService",
portName = "MyWebServicePort",targetNamespace = "http://mywebservice.com")
@SOAPBinding(style = SOAPBinding.Style.DOCUMENT,
use = SOAPBinding.Use.LITERAL,
parameterStyle = SOAPBinding.ParameterStyle.WRAPPED)
public class MyWebService{
@WebMethod
public String getClassName(A obj){
String className=obj.getClass().getName();
return className; //it always returns ?A? on jbossWS2.0.1 even if I pass the reference of B while calling this function from client
}
}
Does anybody knows the solution?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4087022#4087022
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4087022
17 years, 3 months
[JBossWS] - JBossWS 2.0.1 Inheritance problem
by mrokka123
I have tried @XmlSeeAlso on jbossWS2.0.1 to solved the type substitution problem[inheritance problem]. But it does not solved my problem. I have the following situation:
My Pojo classes
@XmlSeeAlso({B.class,C.class})
public class A extends java.io.Serializable{
}
public class B extends A{
}
public class C extends A{
}
Now webservice
@WebService(name = "MyWebServicePortType", serviceName = "MyWebService",
portName = "MyWebServicePort",targetNamespace = "http://mywebservice.com")
@SOAPBinding(style = SOAPBinding.Style.DOCUMENT,
use = SOAPBinding.Use.LITERAL,
parameterStyle = SOAPBinding.ParameterStyle.WRAPPED)
public class MyWebService{
@WebMethod
public String getClassName(A obj){
String className=obj.getClass().getName();
return className; //it always returns ?A? on jbossWS2.0.1 even if I pass the reference of B while calling this function from client
}
}
Does anybody knows the solution?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4087014#4087014
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4087014
17 years, 3 months
[JBossWS] - Stack Overflow while deploing JBossWS 2.0 web services [ on
by sujatha9964
Hi
I have RPC/literal style APIs that access data model that has more than 500 classes. I generated the wsdl that imported types from multiple XSDs.
These XSDs itself imported from other XSDs [ a complex graph of interdependencies].
When I deploy the war file with this, i get the stack overflow. Any insight or help is appreciated.
thnks
ravi n
13:33:38,990 INFO [TomcatDeployer] deploy, ctxPath=/jaxws-samples-webservice02-jse, warUrl=.../tmp/deploy/tmp37729jaxws-samples-webservice0
2-jse-exp.war/
13:33:40,011 INFO [WSDLFilePublisher] WSDL published to: file:/C:/Project/JBoss/jboss-4.2.0.GA/server/default/data/wsdl/jaxws-samples-webse
rvice02-jse.war/TestService.wsdl
13:34:03,949 ERROR [MainDeployer] Could not start deployment: file:/C:/Project/JBoss/jboss-4.2.0.GA/server/default/deploy/jaxws-samples-webs
ervice02-jse.war
java.lang.StackOverflowError
at java.lang.String.indexOf(String.java:1352)
at java.net.URLStreamHandler.parseURL(URLStreamHandler.java:127)
at org.jboss.net.protocol.file.Handler.parseURL(Handler.java:47)
at java.net.URL.(URL.java:596)
at java.net.URL.(URL.java:464)
at sun.misc.URLClassPath$FileLoader.getResource(URLClassPath.java:881)
at sun.misc.URLClassPath$FileLoader.findResource(URLClassPath.java:871)
at sun.misc.URLClassPath.findResource(URLClassPath.java:142)
at java.net.URLClassLoader$2.run(URLClassLoader.java:362)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findResource(URLClassLoader.java:359)
at java.lang.ClassLoader.getResource(ClassLoader.java:977)
at org.jboss.ws.integration.ResourceLoaderAdapter.findChild(ResourceLoaderAdapter.java:97)
at org.jboss.wsf.spi.deployment.UnifiedDeploymentInfo.getMetaDataFileURL(UnifiedDeploymentInfo.java:98)
at org.jboss.wsf.stack.jbws.WSDLFilePublisher.publishSchemaImports(WSDLFilePublisher.java:210)
at org.jboss.wsf.stack.jbws.WSDLFilePublisher.publishSchemaImports(WSDLFilePublisher.java:225)
at org.jboss.wsf.stack.jbws.WSDLFilePublisher.publishSchemaImports(WSDLFilePublisher.java:225)
at org.jboss.wsf.stack.jbws.WSDLFilePublisher.publishSchemaImports(WSDLFilePublisher.java:225)
at org.jboss.wsf.stack.jbws.WSDLFilePublisher.publishSchemaImports(WSDLFilePublisher.java:225)
at org.jboss.wsf.stack.jbws.WSDLFilePublisher.publishSchemaImports(WSDLFilePublisher.java:225)
at org.jboss.wsf.stack.jbws.WSDLFilePublisher.publishSchemaImports(WSDLFilePublisher.java:225)
at org.jboss.wsf.stack.jbws.WSDLFilePublisher.publishSchemaImports(WSDLFilePublisher.java:225)
at org.jboss.wsf.stack.jbws.WSDLFilePublisher.publishSchemaImports(WSDLFilePublisher.java:225)
at org.jboss.wsf.stack.jbws.WSDLFilePublisher.publishSchemaImports(WSDLFilePublisher.java:225)
at org.jboss.wsf.stack.jbws.WSDLFilePublisher.publishSchemaImports(WSDLFilePublisher.java:225)
at org.jboss.wsf.stack.jbws.WSDLFilePublisher.publishSchemaImports(WSDLFilePublisher.java:225)
at org.jboss.wsf.stack.jbws.WSDLFilePublisher.publishSchemaImports(WSDLFilePublisher.java:225)
at org.jboss.wsf.stack.jbws.WSDLFilePublisher.publishSchemaImports(WSDLFilePublisher.java:225)
at org.jboss.wsf.stack.jbws.WSDLFilePublisher.publishSchemaImports(WSDLFilePublisher.java:225)
at org.jboss.wsf.stack.jbws.WSDLFilePublisher.publishSchemaImports(WSDLFilePublisher.java:225)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4086935#4086935
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4086935
17 years, 3 months