[JBoss-user] [JBossWS] - Cannot obtain java type mapping
We recently upgraded to JBoss 4.0.4 with the JBossWS stack and are noticing what may be a bug in JBossWS. When it comes to defining faults in our messages, all instances of the fault name must be EXACTLY the same in our XSD and all points in our WSDL. For example. This works. OurService.xsd | ... | | | | | | | | | ... | OurService.wsdl | ... | ...successfully loaded OurService.xsd... | | ... | | | | | | | | | | | | | | http://schemas.xmlsoap.org/soap/http"; style="document" /> | | | | | | | | | | | | | | ... | In this scenario, the jax-rpc mapping file appears to be correct and the server starts up with no error/warning messages. This is the ONLY scenario in which this works correctly. We'd like to leave the XSD file in-tact (no need to change the type names). But if I were to leave the change the wsdl:message name from ServiceFaultMessageType to something like OurServiceFault and update the wsdl:fault definitions accordingly, I get the "Cannot obtain java type mapping" error when starting up the server. Here's an example of the same WSDL fragment that would cause this error with only minor naming changes. OurNewService.wsdl | ... | ...successfully loaded OurService.xsd... | | ... | | | | | | | | | | | | | | http://schemas.xmlsoap.org/soap/http"; style="document" /> | | | | | | | | | | | | | | ... | We're only seeing this type mapping issue with faults (and not input our output messages). Why do the , and "name" attribute values ALL need to be EXACTLY the same as the schema's data type name (i.e. ServiceFaultMessageType)? Thanks in advance for your help. Michael View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3952423#3952423 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3952423 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossWS] - Cannot obtain java type mapping for: {http://org.mazurek.ws/
I have deployed ws - endpoint is ejb3 component, which has method: public long numOfBooksByAuthor(Author author) ... Author is an entity bean. After I have deployed ws I can see the wsdl file and then I include it to my client application, but when I invoke ws i get exception: Exception in thread "main" org.jboss.ws.WSException: Cannot obtain java type mapping for: {http://org.mazurek.ws/jsr181ejb}Author My wsdl file: What is wrong? I have no idea :(( Help me Thanks in advance, Adam View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3946660#3946660 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3946660 --- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossWS] - Cannot obtain java type mapping
I made a simple ws and test it. and I got that exception Cannot obtain java type mapping. Can any one tell me what is going wrong? I use Java EE 5 and JBoss Alpha 5 -- Regards; Stephen View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3916369#3916369 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3916369 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user