cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erlend Hamnaberg <erle...@underdusken.no>
Subject Re: npe problem with cxf-2.0-inbubator-RC
Date Mon, 18 Jun 2007 14:04:26 GMT
Never mind this.
This was resolved by upgrading to the maven2 snapshots.

Regards

Erlend

Erlend Hamnaberg wrote:
> @WebService(targetNamespace = 
> "http://www.imsglobal.org/services/ti/wsdl/sync/TIRLaunchService_v1p0",
>        wsdlLocation = "META-INF/wsdl/TIRLaunchSyncSingle.wsdl",
>        endpointInterface = "org.evatest.ws.TIRLaunchServiceSyncPortType",
>        serviceName = "evatestLaunchService")
> public class TIRLaunchServiceImpl implements 
> TIRLaunchServiceSyncPortType{
>    protected Log log = LogFactory.getLog(getClass());
>    private String url;
>
>
>    public void proxyToolLaunch(ProxyToolLaunchRequest parameters,
>                                ImsxRequestHeaderInfoType 
> headerInfoParameters,
>                                Holder<ProxyToolLaunchResponse> response,
>                                Holder<ImsxResponseHeaderInfoType> 
> headerInfoResponse) {
>
>
>        try {
>            JAXBContext context = 
> JAXBContext.newInstance(org.evatest.ws.ProxyToolLaunchRequest.class);
>            Marshaller marshaller = context.createMarshaller();
>            Writer writer = new StringWriter();
>            marshaller.marshal(parameters, writer);
>            log.debug(writer.toString());
>            //System.out.println(writer.toString());
>        } catch (JAXBException e) {
>            log.error("A parser error occured", e);
>        }
>
>        ObjectFactory fact = new ObjectFactory();
>        UserProfileType user = 
> parameters.getContextualSettings().getUserProfile();
>        AcclipProfileType acc = 
> parameters.getContextualSettings().getAcclipProfile();
>        String anc = acc.getAncillary(); // department / School
>
>        if (user instanceof SimpleUserProfileType) {
>            SimpleUserProfileType simpleUser = (SimpleUserProfileType) 
> user;
>            log.debug(simpleUser.getUserid());
>            //simpleUser.
>        }
>
>        ProxyToolLaunchResponse val = 
> fact.createProxyToolLaunchResponse();
>        LaunchDirectiveType dir = fact.createLaunchDirectiveType();
>        dir.setDisplayResponseAction(url);
>        dir.setPerformRedirectAction("");
>        val.setLaunchDirective(dir);
>        response.value = val;
>    }
>
>
> Jim Ma wrote:
>> Hi ,
>>
>> Is there any annotation in your impl class? Can you provide your impl 
>> class ?
>>
>> --Jim
>>
>>
>> Erlend Hamnaberg wrote:
>>> Hello list.
>>>
>>> I have an npe problem with the binary distribution of cxf.
>>>
>>> I am stumped over why this happens. There is probably something 
>>> obvious that i have forgotten, however i dont see it.
>>>
>>> my config:
>>>
>>> applicationContext-ws.xml
(snip)

-- 
Erlend Hamnaberg
erlenha@underdusken.no
Student 3. dataingeniør AITeL HiST.
----------------------------------------
Tear down the walls
Wake up the world
Ignorance is not bliss
So fed up with second best
Our time is here and now

I am the enemy
I am the antidote
Watch me closely
I will stand up - now
  *Arch Enemy - We will rise*


Mime
View raw message