[jboss-user] [JBossWS] - NoSuchMethodError in clientside of a jaxws ws

2007-03-24 Thread santhoshitha
Hi,
I am using jbossws1.2.0 on jboss as 4.0.5, and jdk 1.6.0. i have a web service 
that contains methods that accept arrays of custom classes as one of its 
parameters, and returns an array of strings. in the wsdl generated i see that 
separate classes are generated for the arrays of the custom objects and 
strings. objects of these classes are instead taken as parameters from the 
client. basically the wsdl contains separate complextypes created for the 
arrays of the custom objects and strings. when i do a wsdl to java generation 
on the client i see an sei and a service class that contains a get(service)port 
method. apart from these there are namespace and package mapping classes.

i would like to use a static stub at the client side, since my client is a 
standalone java app, that acts as an adapter and interacts with other apps in 
my organization. how do i get a static stub that implements the sei on the 
clientside  using the jaxws tools provided by jboss? as of now i have a cleint 
that tries to obtain the port by instanciating the service class and invoking 
the webservice method. since there is no impl on the client side, i get a 
NoSuchMethodError. 
i have also tried using the dynamic proxy invocation from my client and get an 
exception there too. the exception reads, Cannot obtain java type mapping for: 
{http://datamodel.nm_update}securityAttributesArray, where 
http://datamodel.nm_update is my target namespace and securityAttributeArray is 
the complex type generated in the wsdl for the array of custom objects, which 
is the webservice method's parameter.
below is a section of the wsdl generated for my ws.


http://datamodel.nm_update"; 
xmlns="http://schemas.xmlsoap.org/wsdl/"; 
xmlns:ns1="http://jaxb.dev.java.net/array"; 
xmlns:tns="http://datamodel.nm_update"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";>
  
http://jaxb.dev.java.net/array"; version="1.0" 
xmlns:xs="http://www.w3.org/2001/XMLSchema";>
   

 

   
  
http://datamodel.nm_update"; version="1.0" 
xmlns:tns="http://datamodel.nm_update"; 
xmlns:xs="http://www.w3.org/2001/XMLSchema";>
   

 
 
 
 

   
   

 

   
   
   
  





  
  

  

the java name of the webservice method is updateAttributes, and wsdl name is 
NmUpdateService_updateAttributesResponse.

1) could the nosuchmethoderror be because of incomplete/wrong mapping of type 
names from wsdl to java?

2) what could the reason for the inability to map between the 
securityattributesarray object from to java to wsdl be during invocation from 
the client?

3)will the provider and dispatch APIs help in any way for dynamic invocation?

any help is much appreciated. thanks.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031266#4031266

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031266
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: ClassCastException - jaxws webservice in jboss1.2.0

2007-03-22 Thread santhoshitha
buddy, 
thanks a lot. i dint quite figure what the exception was though. the classpath 
contained some proprietary jars needed for my custom class, which i later moved 
into the war.
my service is deployed successfully now.

thanks again,
San

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030935#4030935

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030935
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: ClassCastException - jaxws webservice in jboss1.2.0

2007-03-22 Thread santhoshitha
I know that this is something that's got to do with JAXB. how do i get over it? 
what is it exactly? 

below is my source code :

@WebService(
name = "UpdateService",
targetNamespace = "http://deshaw.com";,
serviceName = "NmUpdateService")
@SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use=SOAPBinding.Use.LITERAL)
public class NmUpdateService extends HttpServlet
{

/*some declarations and code go in here */

@WebMethod
@WebResult(name="returnValues")
public String[] updateAttributes(@WebParam(name="spn")Integer 
spn, 

@WebParam(name="attributes")SecurityAttributes[] attributes, 

@WebParam(name="userName")String userName,
@WebParam(name="date")Date 
date, 
@WebParam(name="source")Integer 
source
)
{
  StringBuffer cmd = prepareCommand(spn, attributes, date, source);

  cmd.append(");}; " );
  String[] returnValues = {};
  try { 
Object result = pit.submit(cmd.toString(), returnValues.getClass());
returnValues = (String[]) result;
} 
catch(Exception e) {e.printStackTrace();}

return returnValues;

}

}

the web service basically invokes a perl engine and passes a command to it. the 
exception however has got to do with the datatypes used by the web method, if i 
am right.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030726#4030726

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030726
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - ClassCastException - jaxws webservice in jboss1.2.0

2007-03-22 Thread santhoshitha
Hi there!
I have posted over a dozen questions in this forum but haven't gotten a reply 
to even one. I hope atleast this one qualifies for a reply.
I am using jbossws 1.2.0 installed in jboss server 4.0.5. i try to deploy a 
jaxws webservice that consists of methods accepting an array of custom classes 
as a parameter and returning an array of strings. i get an exception on 
deployment which is quite tough to debug. any help/insight into this would be a 
big help. i am in a fix, and need a solution quickly. 
the exception i get is :

[ServiceEndpointDeployer] Cannot create service endpoint
java.lang.ClassCastException: 
com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl$5

The complete stack trace is below:

22:04:35,219 ERROR [ServiceEndpointDeployer] Cannot create service endpoint
java.lang.ClassCastException: 
com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl$5
at 
com.sun.xml.bind.v2.model.impl.ClassInfoImpl.getBaseClass(ClassInfoImpl.java:170)
at 
com.sun.xml.bind.v2.model.impl.RuntimeClassInfoImpl.getBaseClass(RuntimeClassInfoImpl.java:59)
at 
com.sun.xml.bind.v2.model.impl.RuntimeClassInfoImpl.getBaseClass(RuntimeClassInfoImpl.java:39)
at 
com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:142)
at 
com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:48)
at 
com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:40)
at 
com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:189)
at 
com.sun.xml.bind.v2.model.impl.TypeRefImpl.calcRef(TypeRefImpl.java:56)
at 
com.sun.xml.bind.v2.model.impl.TypeRefImpl.getTarget(TypeRefImpl.java:33)
at 
com.sun.xml.bind.v2.model.impl.RuntimeTypeRefImpl.getTarget(RuntimeTypeRefImpl.java:22)
at 
com.sun.xml.bind.v2.model.impl.RuntimeTypeRefImpl.getTarget(RuntimeTypeRefImpl.java:15)
at 
com.sun.xml.bind.v2.model.impl.ElementPropertyInfoImpl$1.get(ElementPropertyInfoImpl.java:38)
at 
com.sun.xml.bind.v2.model.impl.ElementPropertyInfoImpl$1.get(ElementPropertyInfoImpl.java:41)
at java.util.AbstractList$Itr.next(AbstractList.java:422)
at 
com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:139)
at 
com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:48)
at 
com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:40)
at 
com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:189)
at 
com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:204)
at 
com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:356)
at 
com.sun.xml.bind.v2.runtime.JAXBContextImpl.(JAXBContextImpl.java:217)
at 
com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:76)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.xml.bind.api.JAXBRIContext.newInstance(JAXBRIContext.java:76)
at 
org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilder.createJAXBContext(JAXWSMetaDataBuilder.java:815)
at 
org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder.buildWebServiceMetaData(JAXWSWebServiceMetaDataBuilder.java:126)
at 
org.jboss.ws.metadata.builder.jaxws.JAXWSServerMetaDataBuilder.setupProviderOrWebService(JAXWSServerMetaDataBuilder.java:49)
at 
org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilderJSE.buildMetaData(JAXWSMetaDataBuilderJSE.java:68)
at 
org.jboss.ws.core.server.ServiceEndpointDeployer.create(ServiceEndpointDeployer.java:90)
at 
org.jboss.ws.integration.jboss42.DeployerInterceptor.createServiceEndpoint(DeployerInterceptor.java:127)
at 
org.jboss.ws.integration.jboss42.DeployerInterceptorJSE.createServiceEndpoint(DeployerInterceptorJSE.java:132)
at 
org.jboss.ws.integration.jboss42.DeployerInterceptor.create(DeployerInterceptor.java:78)
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 $Proxy43.create(Unknown Source)
at org.jboss.deployment.MainDeployer.create(MainDeployer.jav

[jboss-user] [JBossWS] - Re: EJB3 and JBossWS (JAXWS), is WSgen even needed for botto

2007-02-26 Thread santhoshitha
hey bk8133, thanks a lot for the last post. without that i wouldn't have known 
that the issue was with jdk 1.6. i have been trying to deploy my web 
services(hello worlds) in vain since my java_home was set to jdk 1.6.0 :)

i have been in the same situation as u have, evaluating web service stacks and 
implementations, and we here have also decided to go ahead with JSR181.

thank u again.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4022403#4022403

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4022403
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - using collections and complex types in web services

2007-02-13 Thread santhoshitha
i am trying to use jax-ws for my web service. i have to invoke a remote method 
that accepts a java.uitl.List(SecurityAttr is a user defined class) as one of 
the parameters. i would like guidance in this regard.

1) is it possible to use jax ws for this purpose? if so, how should the complex 
types and collection classes be serialised?
2) i dint find much guidance or tutorials in this regard. i would be really 
happy if i could be directed to some documents/samples.
3) as of now i have deployed the server side of the service and i try to 
connect using a jax rpc client. running wstools from the client, for wsdl to 
java generation, gives me a class called list along with the SEI and mapping 
files. i dont know how to use this. i am using the servicefactoryimpl class 
provided by jbossws to use the jaxrpc-mapping file, but the list class doesnt 
accept any parameters. hence if i connect from the client and try to pass a 
List, it doesnt help.

Kindly guide me. Any help is much appreciated. Thanks in advance.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4016215#4016215

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4016215
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: java.util.Map using wstools and generating wsdl

2007-02-13 Thread santhoshitha
this is similar to my post yesterday.
it would be nice if someone could tell us how to use jaxws to allow usage of 
complex types and java collections together.
if not an insight into how to handle the wsdl datatypes for complex types and 
collection classes would also help.

its sad that beginner's questions are mostly unanswered :(

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4015752#4015752

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4015752
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: trouble using user defined classes and java.util classes

2007-02-10 Thread santhoshitha
could some insider from jbossws development give me any idea please? i am a 
beginner and am very confused.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4014407#4014407

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4014407
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - trouble using user defined classes and java.util classes in

2007-02-09 Thread santhoshitha
i am trying to use jax-ws for my web service. i have to invoke a remote method 
that accepts a java.uitl.List(SecurityAttr is a user defined class) as one of 
the parameters. i would like guidance in this regard. 

1) is it possible to use jax ws for this purpose? if so, how should the complex 
types and collection classes be serialised?
2) i dint find much guidance or tutorials in this regard. i would be really 
happy if i could be directed to some documents/samples.
3) as of now i have deployed the server side of the service and i try to 
connect using a jax rpc client. running wstools from the client, for wsdl to 
java generation, gives me a class called list along with the SEI and mapping 
files. i dont know how to use this. i am using the servicefactoryimpl class 
provided by jbossws to use the jaxrpc-mapping file, but the list class doesnt 
accept any parameters. hence if i connect from the client and try to pass a 
List, it doesnt help.

Kindly guide me. Any help is much appreciated. Thanks in advance.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4013716#4013716

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4013716
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginners Corner] - newbie doubt in jbossws client stubs

2007-01-04 Thread santhoshitha
I have read that web service clients can use the dynamic proxy, dynamic 
invocation or static stub invocation methods to use the services. 

I dont find any samples or documentation illustrating the stub and tie 
invocation mechanism for jbossws. I am trying to use a standalone java 
application which tries to use the web service running in jboss, using the stub 
and tie mechanism. I am able to perform look up and invocation using dynamic 
proxy and DII however. 

Are there any tools present in jbossws to use this invocation mechanism? 
Am I missing something? I presume that the client stub contains an implemetaion 
of the SEI, and wstools does not return any SEI implementation when doing a 
wsdl to java generation. It returns 2 interfaces, one is the SEI and another is 
a service interface(which i dont know how to interpret, and where it is used). 
I am using jboss AS version 4.0.5. 

Have I misinterpreted something or is my understanding right? 
Any guidance in this regard will be appreciated. 
Thanks in advance.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3997915#3997915

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3997915
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - newbie doubt about jbossws client stubs

2007-01-04 Thread santhoshitha
I have read that web service clients can use the dynamic proxy, dynamic 
invocation or static stub invocation methods to use the services. 

I dont find any samples or documentation illustrating the stub and tie 
invocation mechanism for jbossws. I am trying to use a standalone java 
application which tries to use the web service running in jboss, using the stub 
and tie mechanism. I am able to perform look up and invocation using dynamic 
proxy and DII however.

Are there any tools present in jbossws to use this invocation mechanism?
Am I missing something? I presume that the client stub contains an implemetaion 
of the SEI, and wstools does not return any SEI implementation when doing a 
wsdl to java generation. It returns 2 interfaces, one is the SEI and another is 
a service interface(which i dont know how to interpret, and where it is used).
I am using jboss AS version 4.0.5.

Have I misinterpreted something or is my understanding right?
Any guidance in this regard will be appreciated.
Thanks in advance.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3997914#3997914

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3997914
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - new to jbossws

2006-12-27 Thread santhoshitha
I am new to jbossws and web services in general. I have been able to follow the 
userguide and get my server side artifacts generated properly(usng wstools) and 
my deployment in the server is also fine. i am able to obtain the wsdl once the 
service is deployed successfully on the server, and now, i am trying to connect 
via a client.
I intend to use a static java process client and not a j2ee client(although 
j2ee is recommended in the user guide). I do not know how to configure the 
service reference and consume the service from my static java client. I am 
however able to accomplish the same using DII. I would like to know if there is 
any API for this purpose, and whether it is only possible to use DII if not.
If there are any links to source codes and samples, with illustrations in 
detail, it will be a big help.
Thanks in advance.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996439#3996439

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996439
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB/JBoss] - EJB not bound error

2006-12-19 Thread santhoshitha
hi,
i am new to ejb and am trying to deploy a simple session bean ejb application. 
i have written all src files, ejb-jar.xml and jboss.xml, created a jar file 
that consists of the class files and the 2 xml files and dropped it into 
server/default/deploy. i try to connect from a client and get the ejb not bound 
error. i am using server version 4.0.5. once i drop the jar file into the 
deploy directory i dont see any status change that is reported on the server 
console. i have also checked the jmx page for all bound jndi names and dont see 
my ejb listed there.
i need guidance in this regard.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994902#3994902

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994902
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user