Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eclipse error: Execution of XJC goal... A required class was missing.. #156

Closed
edtshuma opened this issue Sep 7, 2018 · 2 comments
Closed
Assignees
Labels
Milestone

Comments

@edtshuma
Copy link

edtshuma commented Sep 7, 2018

In my Spring SOAP web service when I run

mvn eclipse:eclipse
I get an exception:

A required class was missing while executing org.codehaus.mojo:jaxb2-maven-plugin:2.2:xjc: com/sun/codemodel/CodeWriter*.

1)`Specifying a JDK for my Eclipse installation in eclipse.ini. I am not sure however if i should remove the Default JRE definition in the IDE and if so should i define a new JRE that pints to my JDK.
2)Force update of project and release snapshots.
3) I have checked the relevant jars in in my repository to see if they are any a malformed(size) but they are all ok.
I am using Eclipse Oxygen.3a Release (4.7.3a).Build id: 20180405-1200 .Also Spring Boot 1.5.9,,wsdl4j Ver 1.6.3, jaxb-api 2.3.0.
In my pom.xml i have:

<plugins>
          <plugin>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-maven-plugin</artifactId>
              </plugin>
          <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>jaxb2-maven-plugin</artifactId>
            <version>2.3.1</version>
            <executions>
                <execution>
                    <id>xjc-schema</id>
                    <goals>
                        <goal>xjc</goal>
                    </goals>
                </execution>
            </executions>
            <configuration>
                <sources>
                          <source>src/main/resources/xsds</source>
                        </sources>
                        <packageName>webservices.disburse.generated</packageName>
                <clearOutputDir>false</clearOutputDir>
            </configuration>
          </plugin>
      </plugins>

In my disburse.xsd i have:

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" 
    xmlns:tns="http://www.onewallet.com/webservices/disburse/generated"
           targetNamespace="http://www.onewallet.com/webservices/disburse/generated" elementFormDefault="qualified">     
     <xs:element name="getAllDisbursementsRequest">
        <xs:complexType/>
    </xs:element>    
    <xs:element name="getAllDisbursementsResponse">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="disburseInfo" type="tns:disburseInfo" maxOccurs="unbounded"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>   
    <xs:complexType name="serviceStatus">
        <xs:sequence>
            <xs:element name="statusCode" type="xs:string"/>
            <xs:element name="message" type="xs:string"/>
        </xs:sequence>
    </xs:complexType>     
</xs:schema>

I am stuck..any assistance on what i may be missing would be greatly appreciated.

@highsource
Copy link
Owner

highsource commented Sep 7, 2018 via email

@edtshuma
Copy link
Author

edtshuma commented Sep 7, 2018

Ok thanks .. I will refactor to maven-jaxb2-plugin and see if i can generate the classes .

@highsource highsource self-assigned this Sep 7, 2018
@highsource highsource added this to the 0.14.x milestone Sep 7, 2018
laurentschoelens pushed a commit to laurentschoelens/jaxb-tools that referenced this issue May 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants