java.lang.ClassNotFoundException: org.xmlsoap.schemas.wsdl.http.AddressType

MuleSoft JIRA | Claus Ibsen | 8 years ago
  1. 0

    When I depend on mule-cxf in my pom.xml I get and old CXF 2.0.4 incubator version and then the wsdl2java generator fails with an exception. {code} <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>dk.regionh</groupId> <artifactId>mule-example</artifactId> <version>1.1</version> <packaging>war</packaging> <name>MuleWeb</name> <description>Mule in WebSphere</description> <properties> <webappName>mule</webappName> <muleVersion>2.0.1</muleVersion> <jettyVersion>6.1.1</jettyVersion> <cxfVersion>2.1.1</cxfVersion> </properties> <dependencies> <!-- mule --> <dependency> <groupId>org.mule</groupId> <artifactId>mule-core</artifactId> <version>${muleVersion}</version> </dependency> <dependency> <groupId>org.mule.modules</groupId> <artifactId>mule-module-builders</artifactId> <version>${muleVersion}</version> </dependency> <dependency> <groupId>org.mule.modules</groupId> <artifactId>mule-module-spring-config</artifactId> <version>${muleVersion}</version> </dependency> <dependency> <groupId>org.mule.transports</groupId> <artifactId>mule-transport-file</artifactId> <version>${muleVersion}</version> </dependency> <dependency> <groupId>org.mule.transports</groupId> <artifactId>mule-transport-jms</artifactId> <version>${muleVersion}</version> </dependency> <dependency> <groupId>org.mule.transports</groupId> <artifactId>mule-transport-vm</artifactId> <version>${muleVersion}</version> </dependency> <dependency> <groupId>org.mule.transports</groupId> <artifactId>mule-transport-cxf</artifactId> <version>${muleVersion}</version> </dependency> <!-- cxf --> <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-frontend-jaxws</artifactId> <version>${cxfVersion}</version> </dependency> <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-bindings-soap</artifactId> <version>${cxfVersion}</version> </dependency> <!-- unit test --> <dependency> <groupId>org.mule.modules</groupId> <artifactId>mule-module-client</artifactId> <version>${muleVersion}</version> <scope>test</scope> </dependency> <dependency> <groupId>org.mule</groupId> <artifactId>mule-core</artifactId> <version>${muleVersion}</version> <scope>test</scope> <type>test-jar</type> </dependency> <dependency> <groupId>org.mule.tests</groupId> <artifactId>mule-tests-functional</artifactId> <version>${muleVersion}</version> <scope>test</scope> </dependency> </dependencies> <repositories> <!-- TODO: Can be removed --> <repository> <id>apache-snapshots</id> <name>Apache SNAPSHOT Repository</name> <url>http://people.apache.org/repo/m2-snapshot-repository/</url> <snapshots> <enabled>true</enabled> </snapshots> </repository> <repository> <id>apache-incubating</id> <name>Apache Incubating Repository</name> <url>http://people.apache.org/repo/m2-incubating-repository/</url> </repository> <!-- for jaxb-impl --> <repository> <id>java.net</id> <url>http://download.java.net/maven/1/</url> <layout>legacy</layout> </repository> </repositories> <build> <plugins> <!-- to use JDK 1.5 only --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.5</source> <target>1.5</target> </configuration> </plugin> <!-- so we can run mvn jetty:run --> <plugin> <groupId>org.mortbay.jetty</groupId> <artifactId>maven-jetty-plugin</artifactId> <version>${jettyVersion}</version> </plugin> <plugin> <artifactId>maven-surefire-plugin</artifactId> <configuration> <!-- so we can run mvn package -Dtest=false --> <failIfNoTests>false</failIfNoTests> </configuration> </plugin> <!-- CXF wsdl2java generator, will plugin to the compile goal --> <plugin> <groupId>org.apache.cxf</groupId> <artifactId>cxf-codegen-plugin</artifactId> <version>${cxfVersion}</version> <executions> <execution> <id>generate-sources</id> <phase>generate-sources</phase> <configuration> <sourceRoot>${basedir}/target/generated/src/main/java</sourceRoot> <wsdlOptions> <wsdlOption> <wsdl>${basedir}/src/main/resources/wsdl/mywsdl.wsdl </wsdl> </wsdlOption> </wsdlOptions> </configuration> <goals> <goal>wsdl2java</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </project> {code} When mule-cxf is disabled I can do: [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building MuleWeb [INFO] task-segment: [clean, compile] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean] [INFO] Deleting directory D:\esb-helloworld\regh-mule-helloworld\target [INFO] [cxf-codegen:wsdl2java {execution: generate-sources}] 2008-07-01 13:07:45 org.apache.cxf.bus.spring.BusApplicationContext getConfigResources INFO: No cxf.xml configuration file detected, relying on defaults. [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:compile] [INFO] Compiling 7 source files to D:\esb-helloworld\regh-mule-helloworld\target\classes [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 11 seconds [INFO] Finished at: Tue Jul 01 13:07:48 CEST 2008 [INFO] Final Memory: 17M/33M [INFO] ------------------------------------------------------------------------ But when I depend on mule-cxf I get the following build failure: D:\esb-helloworld\regh-mule-helloworld>mvn clean compile [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building MuleWeb [INFO] task-segment: [clean, compile] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean] [INFO] Deleting directory D:\esb-helloworld\regh-mule-helloworld\target Downloading: http://people.apache.org/repo/m2-snapshot-repository//jetty/org.mortbay.jetty/5.1.12/org.mortbay.jetty-5.1.12.pom Downloading: http://people.apache.org/repo/m2-incubating-repository//jetty/org.mortbay.jetty/5.1.12/org.mortbay.jetty-5.1.12.pom Downloading: http://download.java.net/maven/1//jetty/poms/org.mortbay.jetty-5.1.12.pom Downloading: http://repo1.maven.org/maven2/jetty/org.mortbay.jetty/5.1.12/org.mortbay.jetty-5.1.12.pom [INFO] [cxf-codegen:wsdl2java {execution: generate-sources}] 2008-07-01 13:19:50 org.apache.cxf.bus.spring.BusApplicationContext getConfigResources INFO: No cxf.xml configuration file detected, relying on defaults. 2008-07-01 13:19:51 org.apache.cxf.wsdl11.WSDLManagerImpl registerInitialExtensions WARNING: Failed to add extension element. java.lang.ClassNotFoundException: org.xmlsoap.schemas.wsdl.http.AddressType at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:242) at org.apache.cxf.wsdl.JAXBExtensionHelper.addExtensions(JAXBExtensionHelper.java:72) at org.apache.cxf.wsdl11.WSDLManagerImpl.registerInitialExtensions(WSDLManagerImpl.java:241) at org.apache.cxf.wsdl11.WSDLManagerImpl.registerInitialExtensions(WSDLManagerImpl.java:220) at org.apache.cxf.wsdl11.WSDLManagerImpl.<init>(WSDLManagerImpl.java:110) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:85) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:61) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:757) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:722) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:386) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:249) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:155) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:246) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:291) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352) at org.apache.cxf.bus.spring.BusApplicationContext.<init>(BusApplicationContext.java:87) at org.apache.cxf.bus.spring.SpringBusFactory.createApplicationContext(SpringBusFactory.java:103) at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:94) at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:87) at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:65) at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:54) at org.apache.cxf.BusFactory.getDefaultBus(BusFactory.java:70) at org.apache.cxf.BusFactory.getDefaultBus(BusFactory.java:59) at org.apache.cxf.tools.common.toolspec.AbstractToolContainer.getBus(AbstractToolContainer.java:186) at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:124) at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:232) at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:83) at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:103) at org.apache.cxf.maven_plugin.WSDL2JavaMojo.processWsdl(WSDL2JavaMojo.java:344) at org.apache.cxf.maven_plugin.WSDL2JavaMojo.execute(WSDL2JavaMojo.java:223) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) at org.apache.maven.cli.MavenCli.main(MavenCli.java:287) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:compile] [INFO] Compiling 7 source files to D:\esb-helloworld\regh-mule-helloworld\target\classes [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Compilation failure D:\esb-helloworld\regh-mule-helloworld\target\generated\src\main\java\dk\regionh\integration\schema\gsskygge\_2008\_04\_14\ChangeNotificationService_Service.java:[77,20] cannot find symbol symbol : method getPort(javax.xml.namespace.QName,java.lang.Class<dk.regionh.integration.schema.gsskygge._2008._04._14.ChangeNotificationService>,javax.xml.ws.WebServiceFeature[]) location: class javax.xml.ws.Service D:\esb-helloworld\regh-mule-helloworld\target\generated\src\main\java\dk\regionh\integration\schema\gsskygge\_2008\_04\_14\ChangeNotificationService_Service.java:[77,20] cannot find symbol symbol : method getPort(javax.xml.namespace.QName,java.lang.Class<dk.regionh.integration.schema.gsskygge._2008._04._14.ChangeNotificationService>,javax.xml.ws.WebServiceFeature[]) location: class javax.xml.ws.Service [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 15 seconds [INFO] Finished at: Tue Jul 01 13:19:54 CEST 2008 [INFO] Final Memory: 21M/42M [INFO] ------------------------------------------------------------------------ I am sure there is a smarter feature to force mule-cxf to use cxf 2.1.1 instead of the 2.0.4 incubator it was build to use in the distro

    MuleSoft JIRA | 8 years ago | Claus Ibsen
    java.lang.ClassNotFoundException: org.xmlsoap.schemas.wsdl.http.AddressType
  2. 0

    When I depend on mule-cxf in my pom.xml I get and old CXF 2.0.4 incubator version and then the wsdl2java generator fails with an exception. {code} <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>dk.regionh</groupId> <artifactId>mule-example</artifactId> <version>1.1</version> <packaging>war</packaging> <name>MuleWeb</name> <description>Mule in WebSphere</description> <properties> <webappName>mule</webappName> <muleVersion>2.0.1</muleVersion> <jettyVersion>6.1.1</jettyVersion> <cxfVersion>2.1.1</cxfVersion> </properties> <dependencies> <!-- mule --> <dependency> <groupId>org.mule</groupId> <artifactId>mule-core</artifactId> <version>${muleVersion}</version> </dependency> <dependency> <groupId>org.mule.modules</groupId> <artifactId>mule-module-builders</artifactId> <version>${muleVersion}</version> </dependency> <dependency> <groupId>org.mule.modules</groupId> <artifactId>mule-module-spring-config</artifactId> <version>${muleVersion}</version> </dependency> <dependency> <groupId>org.mule.transports</groupId> <artifactId>mule-transport-file</artifactId> <version>${muleVersion}</version> </dependency> <dependency> <groupId>org.mule.transports</groupId> <artifactId>mule-transport-jms</artifactId> <version>${muleVersion}</version> </dependency> <dependency> <groupId>org.mule.transports</groupId> <artifactId>mule-transport-vm</artifactId> <version>${muleVersion}</version> </dependency> <dependency> <groupId>org.mule.transports</groupId> <artifactId>mule-transport-cxf</artifactId> <version>${muleVersion}</version> </dependency> <!-- cxf --> <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-frontend-jaxws</artifactId> <version>${cxfVersion}</version> </dependency> <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-bindings-soap</artifactId> <version>${cxfVersion}</version> </dependency> <!-- unit test --> <dependency> <groupId>org.mule.modules</groupId> <artifactId>mule-module-client</artifactId> <version>${muleVersion}</version> <scope>test</scope> </dependency> <dependency> <groupId>org.mule</groupId> <artifactId>mule-core</artifactId> <version>${muleVersion}</version> <scope>test</scope> <type>test-jar</type> </dependency> <dependency> <groupId>org.mule.tests</groupId> <artifactId>mule-tests-functional</artifactId> <version>${muleVersion}</version> <scope>test</scope> </dependency> </dependencies> <repositories> <!-- TODO: Can be removed --> <repository> <id>apache-snapshots</id> <name>Apache SNAPSHOT Repository</name> <url>http://people.apache.org/repo/m2-snapshot-repository/</url> <snapshots> <enabled>true</enabled> </snapshots> </repository> <repository> <id>apache-incubating</id> <name>Apache Incubating Repository</name> <url>http://people.apache.org/repo/m2-incubating-repository/</url> </repository> <!-- for jaxb-impl --> <repository> <id>java.net</id> <url>http://download.java.net/maven/1/</url> <layout>legacy</layout> </repository> </repositories> <build> <plugins> <!-- to use JDK 1.5 only --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.5</source> <target>1.5</target> </configuration> </plugin> <!-- so we can run mvn jetty:run --> <plugin> <groupId>org.mortbay.jetty</groupId> <artifactId>maven-jetty-plugin</artifactId> <version>${jettyVersion}</version> </plugin> <plugin> <artifactId>maven-surefire-plugin</artifactId> <configuration> <!-- so we can run mvn package -Dtest=false --> <failIfNoTests>false</failIfNoTests> </configuration> </plugin> <!-- CXF wsdl2java generator, will plugin to the compile goal --> <plugin> <groupId>org.apache.cxf</groupId> <artifactId>cxf-codegen-plugin</artifactId> <version>${cxfVersion}</version> <executions> <execution> <id>generate-sources</id> <phase>generate-sources</phase> <configuration> <sourceRoot>${basedir}/target/generated/src/main/java</sourceRoot> <wsdlOptions> <wsdlOption> <wsdl>${basedir}/src/main/resources/wsdl/mywsdl.wsdl </wsdl> </wsdlOption> </wsdlOptions> </configuration> <goals> <goal>wsdl2java</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </project> {code} When mule-cxf is disabled I can do: [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building MuleWeb [INFO] task-segment: [clean, compile] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean] [INFO] Deleting directory D:\esb-helloworld\regh-mule-helloworld\target [INFO] [cxf-codegen:wsdl2java {execution: generate-sources}] 2008-07-01 13:07:45 org.apache.cxf.bus.spring.BusApplicationContext getConfigResources INFO: No cxf.xml configuration file detected, relying on defaults. [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:compile] [INFO] Compiling 7 source files to D:\esb-helloworld\regh-mule-helloworld\target\classes [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 11 seconds [INFO] Finished at: Tue Jul 01 13:07:48 CEST 2008 [INFO] Final Memory: 17M/33M [INFO] ------------------------------------------------------------------------ But when I depend on mule-cxf I get the following build failure: D:\esb-helloworld\regh-mule-helloworld>mvn clean compile [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building MuleWeb [INFO] task-segment: [clean, compile] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean] [INFO] Deleting directory D:\esb-helloworld\regh-mule-helloworld\target Downloading: http://people.apache.org/repo/m2-snapshot-repository//jetty/org.mortbay.jetty/5.1.12/org.mortbay.jetty-5.1.12.pom Downloading: http://people.apache.org/repo/m2-incubating-repository//jetty/org.mortbay.jetty/5.1.12/org.mortbay.jetty-5.1.12.pom Downloading: http://download.java.net/maven/1//jetty/poms/org.mortbay.jetty-5.1.12.pom Downloading: http://repo1.maven.org/maven2/jetty/org.mortbay.jetty/5.1.12/org.mortbay.jetty-5.1.12.pom [INFO] [cxf-codegen:wsdl2java {execution: generate-sources}] 2008-07-01 13:19:50 org.apache.cxf.bus.spring.BusApplicationContext getConfigResources INFO: No cxf.xml configuration file detected, relying on defaults. 2008-07-01 13:19:51 org.apache.cxf.wsdl11.WSDLManagerImpl registerInitialExtensions WARNING: Failed to add extension element. java.lang.ClassNotFoundException: org.xmlsoap.schemas.wsdl.http.AddressType at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:242) at org.apache.cxf.wsdl.JAXBExtensionHelper.addExtensions(JAXBExtensionHelper.java:72) at org.apache.cxf.wsdl11.WSDLManagerImpl.registerInitialExtensions(WSDLManagerImpl.java:241) at org.apache.cxf.wsdl11.WSDLManagerImpl.registerInitialExtensions(WSDLManagerImpl.java:220) at org.apache.cxf.wsdl11.WSDLManagerImpl.<init>(WSDLManagerImpl.java:110) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:85) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:61) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:757) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:722) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:386) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:249) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:155) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:246) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:291) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352) at org.apache.cxf.bus.spring.BusApplicationContext.<init>(BusApplicationContext.java:87) at org.apache.cxf.bus.spring.SpringBusFactory.createApplicationContext(SpringBusFactory.java:103) at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:94) at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:87) at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:65) at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:54) at org.apache.cxf.BusFactory.getDefaultBus(BusFactory.java:70) at org.apache.cxf.BusFactory.getDefaultBus(BusFactory.java:59) at org.apache.cxf.tools.common.toolspec.AbstractToolContainer.getBus(AbstractToolContainer.java:186) at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:124) at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:232) at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:83) at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:103) at org.apache.cxf.maven_plugin.WSDL2JavaMojo.processWsdl(WSDL2JavaMojo.java:344) at org.apache.cxf.maven_plugin.WSDL2JavaMojo.execute(WSDL2JavaMojo.java:223) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) at org.apache.maven.cli.MavenCli.main(MavenCli.java:287) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:compile] [INFO] Compiling 7 source files to D:\esb-helloworld\regh-mule-helloworld\target\classes [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Compilation failure D:\esb-helloworld\regh-mule-helloworld\target\generated\src\main\java\dk\regionh\integration\schema\gsskygge\_2008\_04\_14\ChangeNotificationService_Service.java:[77,20] cannot find symbol symbol : method getPort(javax.xml.namespace.QName,java.lang.Class<dk.regionh.integration.schema.gsskygge._2008._04._14.ChangeNotificationService>,javax.xml.ws.WebServiceFeature[]) location: class javax.xml.ws.Service D:\esb-helloworld\regh-mule-helloworld\target\generated\src\main\java\dk\regionh\integration\schema\gsskygge\_2008\_04\_14\ChangeNotificationService_Service.java:[77,20] cannot find symbol symbol : method getPort(javax.xml.namespace.QName,java.lang.Class<dk.regionh.integration.schema.gsskygge._2008._04._14.ChangeNotificationService>,javax.xml.ws.WebServiceFeature[]) location: class javax.xml.ws.Service [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 15 seconds [INFO] Finished at: Tue Jul 01 13:19:54 CEST 2008 [INFO] Final Memory: 21M/42M [INFO] ------------------------------------------------------------------------ I am sure there is a smarter feature to force mule-cxf to use cxf 2.1.1 instead of the 2.0.4 incubator it was build to use in the distro

    MuleSoft JIRA | 8 years ago | Claus Ibsen
    java.lang.ClassNotFoundException: org.xmlsoap.schemas.wsdl.http.AddressType
  3. 0

    Dojo - Error Building CLDR - java.lang.ClassNotFoundException: net.sf.saxon.TransformerFactoryImpl

    nabble.com | 1 year ago
    java.lang.ClassNotFoundException: net.sf.saxon.TransformerFactoryImpl
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    DITA OpenToolkit 2.1.1 build.xml "BUILD FAILED" error when running ANT script

    Stack Overflow | 1 year ago | Chris Lindgren
    java.lang.ClassNotFoundException: org.dita.dost.module.GenMapAndTopicListModule
  6. 0

    Getting java.lang.NoClassDefFoundError on ant -f integrator.xml

    Google Groups | 1 year ago | Philip Dalrymple
    java.lang.ClassNotFoundException: org.dita.dost.module.GenMapAndTopicListModule

  1. gehel 1 times, last 5 days ago
  2. davidvanlaatum 3 times, last 5 days ago
  3. danleyb2Interintel 1 times, last 1 week ago
  4. malhobayyeb 3 times, last 2 weeks ago
  5. Kialandei 1 times, last 2 weeks ago
49 more registered users
46 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.ClassNotFoundException

    org.xmlsoap.schemas.wsdl.http.AddressType

    at java.net.URLClassLoader$1.run()
  2. Java RT
    Class.forName
    1. java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    2. java.security.AccessController.doPrivileged(Native Method)
    3. java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    4. java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    5. java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    6. java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    7. java.lang.Class.forName0(Native Method)
    8. java.lang.Class.forName(Class.java:242)
    8 frames
  3. Apache CXF Runtime Core for WSDL
    WSDLManagerImpl.<init>
    1. org.apache.cxf.wsdl.JAXBExtensionHelper.addExtensions(JAXBExtensionHelper.java:72)
    2. org.apache.cxf.wsdl11.WSDLManagerImpl.registerInitialExtensions(WSDLManagerImpl.java:241)
    3. org.apache.cxf.wsdl11.WSDLManagerImpl.registerInitialExtensions(WSDLManagerImpl.java:220)
    4. org.apache.cxf.wsdl11.WSDLManagerImpl.<init>(WSDLManagerImpl.java:110)
    4 frames
  4. Java RT
    Constructor.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    4. java.lang.reflect.Constructor.newInstance(Constructor.java:494)
    4 frames
  5. Spring Beans
    DefaultListableBeanFactory.preInstantiateSingletons
    1. org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:85)
    2. org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:61)
    3. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:757)
    4. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:722)
    5. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:386)
    6. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:249)
    7. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:155)
    8. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:246)
    9. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
    10. org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:291)
    10 frames
  6. Spring Context
    AbstractApplicationContext.refresh
    1. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
    1 frame
  7. Apache CXF Core
    BusFactory.getDefaultBus
    1. org.apache.cxf.bus.spring.BusApplicationContext.<init>(BusApplicationContext.java:87)
    2. org.apache.cxf.bus.spring.SpringBusFactory.createApplicationContext(SpringBusFactory.java:103)
    3. org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:94)
    4. org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:87)
    5. org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:65)
    6. org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:54)
    7. org.apache.cxf.BusFactory.getDefaultBus(BusFactory.java:70)
    8. org.apache.cxf.BusFactory.getDefaultBus(BusFactory.java:59)
    8 frames
  8. Apache CXF Command Line Tools Common
    AbstractToolContainer.getBus
    1. org.apache.cxf.tools.common.toolspec.AbstractToolContainer.getBus(AbstractToolContainer.java:186)
    1 frame
  9. Apache CXF Command Line Tools WSDLTo Core
    WSDLToJavaContainer.execute
    1. org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:124)
    2. org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:232)
    2 frames
  10. Apache CXF Command Line Tools Common
    ToolRunner.runTool
    1. org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:83)
    1 frame
  11. Apache CXF Command Line Tools WSDLTo Core
    WSDLToJava.run
    1. org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:103)
    1 frame
  12. CXF M2 Plugins
    WSDL2JavaMojo.execute
    1. org.apache.cxf.maven_plugin.WSDL2JavaMojo.processWsdl(WSDL2JavaMojo.java:344)
    2. org.apache.cxf.maven_plugin.WSDL2JavaMojo.execute(WSDL2JavaMojo.java:223)
    2 frames
  13. Maven Plugin
    DefaultPluginManager.executeMojo
    1. org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
    1 frame
  14. Maven Core
    DefaultMaven.execute
    1. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
    2. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)
    3. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478)
    4. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
    5. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
    6. org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
    7. org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
    8. org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
    8 frames
  15. M3 Interceptor
    MavenCli.main
    1. org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
    1 frame
  16. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:585)
    4 frames
  17. Plexus
    Launcher.main
    1. org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
    2. org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
    3. org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
    4. org.codehaus.classworlds.Launcher.main(Launcher.java:375)
    4 frames