Bugs item #1041622, was opened at 2004-10-06 12:32 Message generated for change (Settings changed) made by osdchicago You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=1041622&group_id=22866
Category: None >Group: v4.0 Status: Open Resolution: None Priority: 5 Submitted By: John Mazz (mazzgolf) Assigned to: Anil Saldhana (osdchicago) Summary: invalid schemaLocation generated for imported schema Initial Comment: Somewhat related to 1041495 - see that issue for the hello.war attachment - the same war used to replicate the problem in that issue is the same war that can be used to replicate the problem for this issue. Same platforms as well were used to replicate. JBoss performs the cool feature of auto-modifying a web service's WSDLs (including its imported/included WSDLs and schemas). However, in one instance that modification produces a URL that does not point to the resource - I get a HTTP 500 instead. Deploy the hello.war (rather than duplicate attachments, see issue 1041495 for the attachment there). This assumes issue 1041495 has been corrected or worked around (I worked around it by fixing issue 1041495 inside a JPDA session and continuing). Once the web service is deployed, look at the hello service's WSDL. You will see an import of another WSDL (this is correct): <wsdl:import location="/hello/hello/? wsdl&resource=../spec/wsrf/WS-ResourceProperties- 1_1.wsdl" ... If you point your browser to that location, you can see that WS-ResourceProperties-1_1.wsdl file. Looking at that WSDL, you will notice that it, itself, imports another file - this time a .xsd schema inside its wsdl:types/wsd:schema element: <wsdl:import namespace="..." schemaLocation="/hello/hello? wsdl&resource=../../wsa/WS-Addressing-2003_03.xsd"> That schemaLocation is incorrect - if you point your browser to that URL, you will get a HTTP 500 and the JBoss logs tells me "cannot obtain wsdl resource from: WEB-INF/wsdl/wsa/WS-Addressing-2003_03.xsd". Notice the ".." appears twice - I _think_ that is incorrect. I think it only needs to go up to the immediate parent directory only - it should not have gone up twice to its grandparent directory. This wsa directory is located as a peer directory to wsmf (under the spec parent - just like the WS-ResouceProperties- 1_1.wsdl is under wsrf which is under spec). I think it should be: schemaLocation="/hello/hello?wsdl&resource=../wsa/WS- Addressing-2003_03.xsd" However, when I put that URL in my browser, I still did not get the .xsd served up - I again got a 500. Funny thing is that the JBoss error log says it was still looking for "WEB-INF/wsdl/wsa/WS-Addressing-2003_03.xsd" - the same relative path it told me when I used the ../.. form. Using just ../ to go up one level instead of two didn't change the relative path JBoss was looking for. I did not have a chance to debug this to find out how to fix this - I just noticed that I was unable to get to that .xsd file from my browser (so, therefore, I assume any client of this web service will not be able to successfully parse its WSDL due to the inability to have the server serve up this schema). ---------------------------------------------------------------------- Comment By: Anil Saldhana (osdchicago) Date: 2004-11-15 18:34 Message: Logged In: YES user_id=768753 I made a small fix for 1041495. That problem goes away. For this case, I cannot recreate whatever John is mentioning. I placed the hello.war in default./deploy directory. The webservice gets deployed in http://localhost:8080/hello/hello Now how do I check the wsdl that John is talking about. Can you give me the exact url from where to start in the browser? ---------------------------------------------------------------------- Comment By: John Mazz (mazzgolf) Date: 2004-10-06 12:42 Message: Logged In: YES user_id=1134120 This URL is one that JBoss likes - if I use this URL in my browser, I get that addressing schema .xsd file served up successfully to the browser: /hello/hello?wsdl&resource=../spec/wsa/WS-Addressing- 2003_03.xsd That's a URL that could have been generated in the imported WS-ResourceProperties-1_1.wsdl as mentioned in my first post. I don't know what "../.." is relative to so I don't know where JBoss went wrong in building that schemaLocation attribute. Hopefully, the info I have provided is enough info to fix this. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=1041622&group_id=22866 ------------------------------------------------------- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 _______________________________________________ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development