facebook

Cannot Marshall type

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #272640 Reply

    anlevin
    Member

    Hi,
    I’ve created a new Web Service using myeclipse that exposes three methods:
    I’ve also created a Web Service Client using myeclise. when I am debugging the application using myeclipse, everything seems to be working ok.
    When I moved from my development workspace to the depolyed environment I get the following error:
    ERROR -Thread-20- [SanityTestRunThread.java:198] 12 Jul 2007 07:05:47,790 SanityTestRunThread – Caught error while calling web service
    org.codehaus.xfire.XFireRuntimeException: Could not invoke service.. Nested exception is org.codehaus.xfire.fault.XFireFault: Could not marshall type.
    org.codehaus.xfire.fault.XFireFault: Could not marshall type.
    at org.codehaus.xfire.jaxb2.JaxbType.writeObject(JaxbType.java:254)
    at org.codehaus.xfire.aegis.AegisBindingProvider.writeParameter(AegisBindingProvider.java:200)
    at org.codehaus.xfire.service.binding.AbstractBinding.writeParameter(AbstractBinding.java:273)
    at org.codehaus.xfire.service.binding.WrappedBinding.writeMessage(WrappedBinding.java:89)
    at org.codehaus.xfire.soap.SoapSerializer.writeMessage(SoapSerializer.java:80)
    at org.codehaus.xfire.transport.http.HttpChannel.writeWithoutAttachments(HttpChannel.java:56)
    at org.codehaus.xfire.transport.http.CommonsHttpMessageSender.getByteArrayRequestEntity(CommonsHttpMessageSender.java:313)
    at org.codehaus.xfire.transport.http.CommonsHttpMessageSender.send(CommonsHttpMessageSender.java:251)
    at org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(HttpChannel.java:123)
    at org.codehaus.xfire.transport.http.HttpChannel.send(HttpChannel.java:48)
    at org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:26)
    at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
    at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:75)
    at org.codehaus.xfire.client.Client.invoke(Client.java:335)
    at org.codehaus.xfire.client.XFireProxy.handleRequest(XFireProxy.java:77)
    at org.codehaus.xfire.client.XFireProxy.invoke(XFireProxy.java:57)
    at $Proxy15.runSanityTest(Unknown Source)
    at managementLayer.SanityTestRunThread.run(SanityTestRunThread.java:191)
    Caused by: javax.xml.bind.JAXBException: Unable to locate jaxb.properties for package logicallayer
    at javax.xml.bind.ContextFinder.searchcontextPath(ContextFinder.java:205)
    at javax.xml.bind.ContextFinder.find(ContextFinder.java:149)
    at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:281)
    at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:238)
    at org.codehaus.xfire.jaxb2.JaxbType.getJAXBContext(JaxbType.java:294)
    at org.codehaus.xfire.jaxb2.JaxbType.writeObject(JaxbType.java:218)

    for one out of the three methods. This method recieves as parameters: String, String[] (which was translated by my eclipse to ArrayOfString ) and boolean.
    When debugging in the production enviroment (but with another IDE) I also get the same problem.
    Can someone tell me what am I missing?

    Thanks,

    #272652

    Loyal Water
    Member

    Can you post your installation details for me please. The posting guideline is given at the top of the forum.

    #272717

    anlevin
    Member

    This is the info I got from the “About”:
    MyEclipse Enterprise Workbench

    Version: 5.1.1 GA
    Build id: 20070302-5.1.1-GA

    Any other information needed?

    #272749

    Loyal Water
    Member
    #272793

    anlevin
    Member

    These are the details according to the instructions:

    *** Date:
    Tuesday, July 17, 2007 6:07:17 AM GMT

    ** System properties:
    OS=WindowsXP
    OS version=5.1
    Java version=1.5.0_08

    *** MyEclipse details:
    MyEclipse Enterprise Workbench
    Version: 5.1.1 GA
    Build id: 20070302-5.1.1-GA

    *** Eclipse details:
    MyEclipse Enterprise Workbench

    Version: 5.1.1 GA
    Build id: 20070302-5.1.1-GA

    Eclipse Graphical Editing Framework

    Version: 3.2.2.v20070208
    Build id: 20070208-1315

    Eclipse Platform

    Version: 3.2.2.r322_v20070119-RQghndJN8IM0MsK
    Build id: M20070212-1330

    Eclipse RCP

    Version: 3.2.2.r322_v20070104-8pcviKVqd8J7C1U
    Build id: M20060921-0945

    Eclipse Java Development Tools

    Version: 3.2.2.r322_v20070104-R4CR0Znkvtfjv9-
    Build id: M20060921-0945

    Eclipse Plug-in Development Environment

    Version: 3.2.1.r321_v20060823-6vYLLdQ3Nk8DrFG
    Build id: M20070212-1330

    Eclipse Project SDK

    Version: 3.2.2.r322_v20070104-dCGKm0Ln38lm-8s
    Build id: M20070212-1330

    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -launcher
    C:\Program Files\MyEclipse Enterprise Workbench 5.1.0 GA\eclipse\eclipse.exe
    -name
    Eclipse
    -showsplash
    600
    -exitdata
    884_70
    -vm
    C:\Program Files\MyEclipse Enterprise Workbench 5.1.0 GA\jre\bin\javaw.exe

    Thanks,

    #272834

    Loyal Water
    Member

    Everything with your setup looks fine… and you said it used to work during development but production is giving you problems… can you think of any differences between the two?

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Cannot Marshall type

You must be logged in to post in the forum log in