Hi Werner, the first lines from the xsd i used to codegen the source from are:
<?xml version="1.0" encoding="UTF-8"?> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.header.nl/XMLHeader/10" xmlns:rgh="http://www.header.nl/XMLHeader/10" > <xsd:element name="Header"> <xsd:complexType> <xsd:sequence> <xsd:element ref="rgh:HeaderVersion"/> <xsd:element ref="rgh:MessageId"/> <xsd:element ref="rgh:ServiceRequestorDomain"/> <xsd:element ref="rgh:ServiceRequestorId"/> <xsd:element ref="rgh:ServiceProviderDomain"/> <xsd:element ref="rgh:ServiceId"/> <xsd:element ref="rgh:ServiceVersion"/> <xsd:element ref="rgh:FaultIndication"/> <xsd:element ref="rgh:MessageTimestamp"/> </xsd:sequence> </xsd:complexType> </xsd:element> ... Furthermore, i found an article that almost exactly mirrors the problem i have, but that's partially because they are using java 1.4.2 while i'm using java 5.0. Thanks for you help, -Harry Werner Guttmann wrote: > > Hi, > > in this case, can you please create a new Jira issue at > > http://jira.codehaus.org/browse/CASTOR > > and attach all relevant files so that I will be enabled to replay the > problem. > > Regards > Werner > > harmengosen wrote: >> Hi Werner, >> >> I'm sorry but i think i didn't express myself very well. What i mean is >> that >> in my development environment both descriptor and .cdr files are on the >> classpath, but this is not the case when í'm deploying because the .cdr >> files are missing from the generated jar. So when i'm running the app >> locally on my development machine, all resources are avalable, but it >> still >> doesn't work. >> >> >> Werner Guttmann wrote: >>> Yes, I think you are wrong. The .cdr files need to be on the classpath, >>> otherwise Castor will not be able to find descriptor classes. In other >>> words, please make sure that both the descriptor classes as well as the >>> .cdr files are available. >>> >>> Werner >>> >>> harmengosen wrote: >>>> Hi Werner, >>>> >>>> thanks for you quick reply! >>>> I have inspected my .jar file and the descriptor files are there but >>>> the >>>> .cdr files are not. However, this seems to be a problem only when i >>>> deploy >>>> the application to an application server. However, my development >>>> environment (RSA 7.0) should have access to the missing .cdr files and >>>> when >>>> i'm running the application there it should not cause any problems. >>>> >>>> So, there definitely is a problem because the .cdr files are not in the >>>> .jar, but when working with my local development environment there >>>> should >>>> be >>>> no problem. >>>> >>>> Or am i mistaken? >>>> >>>> Regards, >>>> Harry >>>> >>>> >>>> Werner Guttmann wrote: >>>>> Hi, >>>>> >>>>> did you compile the descriptor classes and package them with your >>>>> application JAR (including the .cdr files) ? If that's not the case, >>>>> Castor (upon marshalling) will use introspection, and that's what it >>>>> looks like. >>>>> >>>>> Regards >>>>> Werner >>>>> >>>>> harmengosen wrote: >>>>>> Hi, >>>>>> >>>>>> i'm relatively new to Castor so please forgive me if the question >>>>>> seems >>>>>> trivial. >>>>>> >>>>>> I have generated classes using Castor codegen v.1.2, from XSD's. When >>>>>> i >>>>>> create an object model using these classes and then marshall it to >>>>>> XML, >>>>>> the >>>>>> namespaces are omitted, but that is not what i want. >>>>>> This is what i get: >>>>>> >>>>>> <Header> >>>>>> >>>>>> and this is what i want: >>>>>> >>>>>> <rfh:Header xmlns:rfh="..." > >>>>>> >>>>>> I have not found a clue as to why Castor doesn't generate this >>>>>> namespace. >>>>>> The namespace was present in the XSD that i used to generate the >>>>>> classes >>>>>> and >>>>>> descriptorfiles from. >>>>>> >>>>>> Am i omitting/forgetting something? >>>>>> >>>>>> Thanks a lot for your help! >>>>> --------------------------------------------------------------------- >>>>> To unsubscribe from this list, please visit: >>>>> >>>>> http://xircles.codehaus.org/manage_email >>>>> >>>>> >>>>> >>>>> >>> --------------------------------------------------------------------- >>> To unsubscribe from this list, please visit: >>> >>> http://xircles.codehaus.org/manage_email >>> >>> >>> >>> >> > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > > -- View this message in context: http://www.nabble.com/Problem-generating-namespaces-during-Mashall-tp21849114p21950120.html Sent from the Castor - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

