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

ClassNotFoundException: javax.xml.rpc.soap.SOAPFaultException #9

Open
cptwunderlich opened this issue Jan 28, 2016 · 0 comments
Open

Comments

@cptwunderlich
Copy link

I'm trying to use plugin version 1.1.0:

<plugin>
  <groupId>de.juplo</groupId>
  <artifactId>hibernate4-maven-plugin</artifactId>
  <version>1.1.0</version>
  <executions>
    <execution>
      <goals>
        <goal>export</goal>
      </goals>
    </execution>
  </executions>
</plugin>

But I get the exception:

Caused by: java.lang.NoClassDefFoundError: javax/xml/rpc/soap/SOAPFaultException
        at java.lang.Class.getDeclaredMethods0(Native Method)
        at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
        at java.lang.Class.getDeclaredMethods(Class.java:1975)
        at org.hibernate.annotations.common.reflection.java.JavaXClass.getDeclaredMethodProperties(JavaXClass.java:112)
        at org.hibernate.annotations.common.reflection.java.JavaXClass.getDeclaredProperties(JavaXClass.java:129)
        at org.hibernate.annotations.common.reflection.java.JavaXClass.getDeclaredProperties(JavaXClass.java:121)
        at org.hibernate.cfg.InheritanceState.determineDefaultAccessType(InheritanceState.java:263)
        at org.hibernate.cfg.InheritanceState.getElementsToProcess(InheritanceState.java:224)
        at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:775)
        at org.hibernate.cfg.Configuration$MetadataSourceQueue.processAnnotatedClassesQueue(Configuration.java:3845)
        at org.hibernate.cfg.Configuration$MetadataSourceQueue.processMetadata(Configuration.java:3799)
        at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1412)
        at de.juplo.plugins.hibernate4.ValidationConfiguration.secondPassCompile(ValidationConfiguration.java:33)
        at org.hibernate.cfg.Configuration.buildMappings(Configuration.java:1373)
        at de.juplo.plugins.hibernate4.Hbm2DdlMojo.execute(Hbm2DdlMojo.java:1023)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
        ... 21 more
Caused by: java.lang.ClassNotFoundException: javax.xml.rpc.soap.SOAPFaultException
        at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        ... 37 more

I don't quite understand that. Does the plugin have a dependency on javax.xml.rpc? While I do include a lot of JavaEE APIs in my project, they are scoped as "provided", since my Application Server (JBoss) provides them.

The full output of mvn package -e: https://gist.github.com/cptwunderlich/0834b202c0d536426c22

Configuration is done with hibernate.properties:

hibernate.connection.datasource=java:jboss/datasources/projectDS
hibernate.cache.provider_class=org.hibernate.cache.HashtableCacheProvider
hibernate.connection.driver_class=org.postgresql.Driver
hibernate.connection.url=jdbc:postgresql://localhost:5432/project
hibernate.connection.username=<redacted>
hibernate.connection.password=<redacted>
hibernate.default_schema=public
hibernate.show_sql=true
hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
hibernate.connection.pool_size=1000

Maven Info:
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T17:41:47+01:00)
Maven home: C:\Program Files\Apache\Maven
Java version: 1.8.0_72, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.8.0_72\jre
Default locale: de_AT, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "dos"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant