Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6690877

SchemaGen does not use the package name in java file to create targetNamespace

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • P3
    • None
    • 6u5
    • tools
    • apt
    • generic
    • generic

    Description

      OPERATING SYSTEM(S):
      ALL

      FULL JDK VERSION(S):
      java version "1.6.0_05"
      Java(TM) SE Runtime Environment (build 1.6.0_05-b13)
      Java HotSpot(TM) Client VM (build 10.0-b19, mixed mode)

      DESCRIPTION from Submitter:
      1. Unzip the schema1.zip (see attachment)
      2. Compile the java files: javac -d class -cp class PurchaseOrder.java
      3. schemagen -d class -cp class jaxws.sample.LaptopPurchaseOrder

      Result seen:
      The created xsd file doesn't have a "targetnamespace". While the expected result is that the targetnamespace should have the value specified by the XmlSchema.namespace for the package. The schema1.xsd is an example of the the result.

      Attachments

        Activity

          People

            Unassigned Unassigned
            dkorbel David Korbel (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: