jbossws

java.util.List is an interface, and JAXB can't handle interfaces

Hi. I seemed to get the following exception when trying to deploy my application: Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 2 counts of IllegalAnnotationExceptions java.util.List is an interface, and JAXB can't handle interfaces. this problem is related to the following location: at java.util.List ...

How do I erase passwords from memory when using Username tokens with JBossWS?

I'm using JBoss Web Services for a payment service application. At some point I need to make remote SOAP calls to a payment service provider, and I need to authenticate with a Username token. The only way I know how to do this with JBossWS is like this: Map<String, Object> requestContext = ((BindingProvider)port).getRequestContext(); r...

JBoss 4.2.3 + WebServices Client

Hi, I have Web application deployed on a JBoss 4.2.3, that access a SOAP Webservices deployed at a GlassFish V2. When a I run the web application in my local Jetty, it runs smoothly. When I deploy it to JBoss 4.2.3 (Java 1.6), it raises an EOFException. Caused by: javax.xml.ws.WebServiceException: java.io.IOException: Could not tra...

JAX-WS on JBoss fetches WSDL 3 times ?!?

I'm trying to use JAX-WS on a JSF app on JBoss 4.2.3 and from the logs I notice that for every operation it fetches the WSDL not once, but 3 times: [07/Jul/2009:14:45:52 +0300] "GET /wsdl/my.wsdl " 200 23731 "-" "Java/1.6.0_13" [07/Jul/2009:14:45:52 +0300] "GET /wsdl/my.wsdl " 200 23731 "-" "Java/1.6.0_13" [07/Jul/2009:14:45:...

How to inject EntityManager in non-EJB based WebService?

The headline says it all: I've got a simple WebService @WebService(serviceName="G08WService", portName="G08WPort", endpointInterface = "at.fhj.itm.g08.wservice.IUserWebService") public class WService implements IUserWebService { @PersistenceContext(unitName="g08b2") EntityManager em; @Resource UserTransaction utx; ...

Getting username/password in JBoss?

In our system the user logs in using JBOSSWS and accesses the services using through Web Services. The services themselves are Stateless session beans. Is there a way to get user name/password on calls to the EJB? Also, is there a way to persist any information in session cache or I need to use state full session bean for that? ...

WebService/SLSB a Singleton in JBossWS?

I am using the JAX-WS "WebService" annotation on a class to expose its "WebMethod"s as a web service. The class is denoted as the servlet class handling calls to "/MyService". As essentially a servlet, I would expect an instance of this class to be created once and to basically be a singleton. I have code in the constructor of this cl...

How can I add WSDL <types> restrictions programmatically?

Hello. Where I work, we have a policy in place that states we should try to build web services "bottom-up" (code-first). When doing this, how can I add restrictions within my XSD <types> WSDL element? For example, in the following: import javax.jws.WebService; import javax.xml.ws.BindingType; @WebService @BindingType(javax.xml.ws.soa...

wsimport multiple generated wsdl's

I am using jbossws (with jax-ws) to serve 3 webservices generated from annotated POJOs. These 3 webservices share a few data classes and also have a common method (ping). They all reside in the same java package (namespace) The 3 WSDL files are generated automatically by jbossws at deploy time. Now I want to generate client code using ...

How to keep attachments in temporary file, not in memory, during web service message download on JBoss

I have the following problem on JBoss 4.2.3 and 5.1 using JBoss WS Native Stack. The web service is receiving a significant number of large attachments. When my server is receiving these attachments, they are stored in memory until the whole message is transfered and parsed. As a result, I am runnig out of memory quickly (due to large ...

How do I extend a wsimport-generated exception annotated with WebFault?

I'm building a web service in Java from an existing WSDL. The wsimport tool has generated all the Java classes bound to the elements in the service's schema. In particular, the fault declaration yields the following class: @javax.xml.ws.WebFault(name = "Fault", targetNamespace = "http://my.company.com/service-1") public class ServiceFau...

Can't set serviceName and endpointName on an EndpointReference

I need to add ServiceName and PortName information on a W3CEndpointReference, but even if I add those to the W3CEndpointReferenceBuilder, this information won't show on the resulting EPR. This is preventing me from successfully creating a proxy to consume the service, getting the following error when I call epr.getPort(InterfaceClass.cl...

Is it possible to handle User Defined Exception using JAX WS Dispatch API ?

Hello, I'm performing dynamic webservices call using following code snippet: JAXBContext jc = getJAXBContext(requestClass, responseClass, jaxbContextExtraClasses); Dispatch<Object> dispatch = service.createDispatch(portQName, jc, Service.Mode.PAYLOAD); Object requestValue = getRequestValue(requestClass, pOrderedParameters...

Configuring different auth-methods for different "folders" in a single .war

I would like to create a single .war that contains both a web based FORM login for a web GUI AND BASIC authentication (in this case, for a web service interface.) /index.html (unsecured welcome page) +---/interactive (folder containing web pages using auth-method=FORM) +---/service (servlet mapping for web service using auth-method=B...

RPC/Encoded Jboss solution

I recently posted a question regarding RPC/Encoded Jboss problem since I was having problems with jboss-4.2.1.GA to generate RPC/Encoded WS requests. The solution I found was to have jaxrpc.jar, saaj.jar and wsdl4j-1.5.1.jar files in the EAR file that I deploy to Jboss. I did not have to run Axis as a client from inside JBoss as kindly ...

Unable to find/alter default configuration for log4j when using JBossWS on client-side web services

Hi all, I created a web service client using JBossWS and am now having problems with logging. There seems to be some kind of default logging configuration being used (it is ignoring my log4j.properties file entirely), but I can't find where it is getting the information from. Is there a way to find the location configuration data? ...

Amazon EC2 and jbossws

Hi - I've deployed a webservice to a Jboss instance running on Amazon EC2. The webservice works fine locally, but when I deploy on EC2, and go to the /jbossws/services page the Endpoint Address for the webservice is the private DNS of the ec2 instance (domU-X-X-X-X etc...), not the public dns (which I would like it to be). I've tried ...

WebServiceexception "No Content-type in the header" when trying to consume JBoss hosted webservice with a console application

I have a small assignment where I have to consume a webservice hosted with JBoss using a console application. I have 2 projects in the same workspace, The DynamicWebApplication that I used as a webservice that is hosted using JBoss and a console application to access it. The console application also has the java files generated with wsi...

Jboss webservice client error

Hi I am getting following error, when a java webservice client written using jboss webservices, tries to invoke a webservice through WSDL URL. The program is executed in java 1.5 VM installed in RHEL Any idea when this kind of exception will pop up? And moreover the IP 192.168.182.20 is not of the system from which the client program e...

Problem with wsrunclient (JBoss 5.1.0 GA) on Mac.

When running my WebService Client with "wsrunclient" I get the following: Applications/jboss-5.1.0.GA/bin/wsrunclient.sh -verbose -cp output Client [Opened /Users/peter/Applications/jboss-5.1.0.GA/lib/endorsed/activation.jar] [Opened /Users/peter/Applications/jboss-5.1.0.GA/lib/endorsed/jaxb-api.jar] [Opened /Users/peter/Applications/jb...