Errors in Java maven com.google.api-ads version 2.5.0

297 views
Skip to first unread message

Adxsearch Adxpand

unread,
Oct 20, 2015, 8:13:56 AM10/20/15
to AdWords API Forum
We have 2 Java, Hibernate, Spring v2.5.6 web applications. In v2.4.1 both work fine. But when changing the version to 2.5.0 and AdWords API version 201509, one project boots with Maven 3.3.3 and Jetty version 9.2.11.v20150529. But the other one doesn't. Both uses Java 1.7.0_71

        <dependency>
            <groupId>com.google.api-ads</groupId>
            <artifactId>ads-lib</artifactId>
            <version>2.5.0</version>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>com.google.api-ads</groupId>
            <artifactId>adwords-axis</artifactId>
            <version>2.5.0</version>
            <scope>compile</scope>
        </dependency>

        <dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate-core</artifactId>
            <version>3.3.1.GA</version>
        </dependency>
        <dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate-annotations</artifactId>
            <version>3.4.0.GA</version>
        </dependency>
        <dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate-entitymanager</artifactId>
            <version>3.4.0.GA</version>
        </dependency>

The stack dumps are (partially)

[INFO] jetty-9.2.11.v20150529
[INFO] Initializing Spring root WebApplicationContext
2015-10-20 13:54:59,884 ERROR [org.springframework.web.context.ContextLoader] - <Context initialization failed>
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'accountService': Autowiring of fields failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: com.adxsearch.core.server.service.account.ListManagedAccounts com.adxsearch.core.server.facade.AccountServiceImpl.listManagedAccounts; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'listManagedAccounts': Autowiring of fields failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: com.adxsearch.core.server.service.publish.PublisherService com.adxsearch.core.server.service.account.ListManagedAccountsImpl.publisherService; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'publisherService': Autowiring of fields failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: com.adxsearch.core.server.service.publish.DeployService com.adxsearch.core.server.service.publish.PublisherServiceImpl.deployService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'deployServiceImpl': Autowiring of fields failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: com.adxsearch.core.server.service.publish.google.adwords.NewGoogleDeploySequencerImpl com.adxsearch.core.server.service.publish.DeployServiceImpl.googleDeploySequencer; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'newGoogleDeploySequencer': Autowiring of fields failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: com.adxsearch.core.server.service.publish.google.bulk.GoogleBulkCampaignDeployer com.adxsearch.core.server.service.publish.google.GoogleDeploySequencerImpl.googleBulkCampaignDeployer; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'googleBulkCampaignDeployer': Autowiring of fields failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: com.adxsearch.core.server.service.publish.google.bulk.GoogleBulkAdDeployer com.adxsearch.core.server.service.publish.google.bulk.GoogleBulkCampaignDeployerImpl.googleBulkAdDeployer; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'googleBulkAdDeployer' defined in file [C:\dev\STS_Workspace_3.6.1\adxcoreScand\target\classes\com\adxsearch\core\server\service\publish\google\bulk\GoogleBulkAdDeployerImpl.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.adxsearch.core.server.service.publish.google.bulk.GoogleBulkAdDeployerImpl]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError
        at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessAfterInstantiation(AutowiredAnnotationBeanPostProcessor.java:243)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:959)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)

Caused by: com.google.inject.CreationException: Guice creation errors:

1) Multibinder is not initialized
  at com.google.api.ads.adwords.axis.AdWordsAxisModule.configure(AdWordsAxisModule.java:44)
  while locating java.util.Set<java.util.Map$Entry<com.google.api.ads.adwords.lib.client.AdWordsServiceDescriptor$AdWordsSubProduct, 
  com.google.inject.Provider<com.google.api.ads.common.lib.client.HeaderHandler<com.google.api.ads.adwords.lib.client.AdWordsSession, com.google.api.ads.adwords.lib.client.AdWordsServiceDescriptor>>>>
  at com.google.inject.multibindings.MapBinder$RealMapBinder$RealProviderMapProvider.initialize(Unknown Source)
  at com.google.api.ads.adwords.axis.AdWordsAxisModule.configure(AdWordsAxisModule.java:44)

2) Multibinder is not initialized
  at com.google.api.ads.adwords.axis.AdWordsAxisModule.configure(AdWordsAxisModule.java:53)
  while locating java.util.Set<java.util.Map$Entry<com.google.api.ads.adwords.lib.client.AdWordsServiceDescriptor$AdWordsSubProduct, com.google.inject.Provider<java.lang.String>>>
  at com.google.inject.multibindings.MapBinder$RealMapBinder$RealProviderMapProvider.initialize(Unknown Source)
  at com.google.api.ads.adwords.axis.AdWordsAxisModule.configure(AdWordsAxisModule.java:53)

3) Error injecting method, java.lang.NoSuchMethodError: com.google.inject.spi.ProviderInstanceBinding.getUserSuppliedProvider()Ljavax/inject/Provider;
  at com.google.inject.multibindings.Multibinder$RealMultibinder.initialize(Unknown Source)
  at com.google.api.ads.adwords.axis.AdWordsAxisModule.configure(AdWordsAxisModule.java:53)
Caused by: java.lang.NoSuchMethodError: com.google.inject.spi.ProviderInstanceBinding.getUserSuppliedProvider()Ljavax/inject/Provider;

4) Error injecting method, java.lang.NoSuchMethodError: com.google.inject.spi.ProviderInstanceBinding.getUserSuppliedProvider()Ljavax/inject/Provider;
  at com.google.inject.multibindings.Multibinder$RealMultibinder.initialize(Unknown Source)
  at com.google.api.ads.adwords.axis.AdWordsAxisModule.configure(AdWordsAxisModule.java:53)
  while locating java.util.Set<java.util.Map$Entry<com.google.api.ads.adwords.lib.client.AdWordsServiceDescriptor$AdWordsSubProduct, com.google.inject.Provider<java.lang.String>>>
  at com.google.inject.multibindings.MapBinder$RealMapBinder$RealProviderMapProvider.initialize(Unknown Source)
  at com.google.api.ads.adwords.axis.AdWordsAxisModule.configure(AdWordsAxisModule.java:53)
Caused by: java.lang.NoSuchMethodError: com.google.inject.spi.ProviderInstanceBinding.getUserSuppliedProvider()Ljavax/inject/Provider;

Message has been deleted

Adxsearch Adxpand

unread,
Oct 20, 2015, 8:16:46 AM10/20/15
to AdWords API Forum
Neither 201506 nor 201509 works with 2.5.0

Josh Radcliff (AdWords API Team)

unread,
Oct 20, 2015, 2:55:31 PM10/20/15
to AdWords API Forum
Hi,

In v2.5.0, we upgraded to Guice 4.0 (see the ChangeLog). I suspect this is what's causing the exception you mentioned.

Do any of your other maven dependencies depend on Guice? Now that the client library depends on Guice 4.0, you might run into strange problems if another dependency depends on Guice 3.x.

Thanks,
Josh, AdWords API Team

Adxsearch Adxpand

unread,
Oct 23, 2015, 9:20:36 AM10/23/15
to AdWords API Forum
I don't think there are any Guice 3.0 dependencies in the project updated to use the 2.5.0 version of the API. If I change the name of the guice 3.0 folders in my local .m2 folder from "3.0" to "3.0.old", the project using the 2.2.0 version of the API doesn't start. It complains about a bunch of Guice 3.0 dependencies which it can't find. But the new project using the 2.5.0 version of the API starts without any complaints. This line of code seems to be the problem:
AdWordsServices adWordsServices = new AdWordsServices();
As soon as it's called, a million exceptions are thrown. It doesn't seem to matter in which class I have it. As soon as it's called the execution stops.

Josh Radcliff (AdWords API Team)

unread,
Oct 23, 2015, 3:48:13 PM10/23/15
to AdWords API Forum
Hi,

Are you saying that after you changed your local .m2 folder from 3.0 to 3.0.old, version 2.5.0 worked fine?

The reason that the creation of a new AdWordsServices object leads to this exception is that AdWordsServices has a static final Injector that's created when the AdWordsServices class initializes. Therefore, if there are any Guice-related issues, they'll generally surface at that point.

Thanks,
Josh, AdWords API Team

Adxsearch Adxpand

unread,
Oct 25, 2015, 4:50:32 AM10/25/15
to AdWords API Forum
Yes, the 2.2.0 version needs Guice 3.0. The 2.5.0 version does not need Guice 3.0, but it does need Guice 4.0. That folder name needs to be 4.0, not 4.0.old.

Josh Radcliff (AdWords API Team)

unread,
Oct 26, 2015, 8:03:51 AM10/26/15
to AdWords API Forum
Hi,

OK, thanks for confirming. If I'm reading your response correctly, this issue is now resolved (since the 2.5.0 pom.xml requires Guice 4.0). If you're still experiencing issues, please provide more details such as your complete set of Maven dependencies and I'll investigate further.

Thanks,
Josh, AdWords API Team

Adxsearch Adxpand

unread,
Oct 27, 2015, 11:48:49 AM10/27/15
to AdWords API Forum
No it's still not working. Here's our pom.xml:
As soon as I call 
adWordsServices = new AdWordsServices();
the exceptions are thrown.

         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
    <modelVersion>4.0.0</modelVersion>

    <groupId>com.adxsearch</groupId>
    <artifactId>adxcore-adxapp</artifactId>

    <version>5.12.0.0</version>

    <name>ADX Search Server Module</name>
    <packaging>war</packaging>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <old.spring.version>2.5.6</old.spring.version>
        <spring.version>2.5.6</spring.version>
        <new.spring.version>2.5.6</new.spring.version>
        <aspectj.version>1.6.1</aspectj.version>
        <jetty.version>9.2.11.v20150529</jetty.version>
        <old.jetty.version>6.1.21</old.jetty.version>
        <wicket.version>1.4.5</wicket.version>
        <!--fast-admomentum-api.version>3.4.sp3</fast-admomentum-api.version-->
    </properties>

    <repositories>
        <repository>
            <id>maven-restlet</id>
            <name>Public online Restlet repository</name>
            <url>http://maven.restlet.org</url>
        </repository>
        <repository>
            <id>mvnrepository.com</id>
            <name>Public online SpringFramework repository</name>
            <url>http://mvnrepository.com</url>
        </repository>
        <repository>
            <id>repository.jboss.org</id>
            <name>Public online jboss repository</name>
            <url>http://repository.jboss.org/maven2</url>
        </repository>
    </repositories>
    <pluginRepositories>
        <pluginRepository>
            <id>central</id>
            <name>Maven Plugin Repository</name>
            <url>http://repo1.maven.org/maven2</url>
            <layout>default</layout>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
            <releases>
                <updatePolicy>never</updatePolicy>
            </releases>
        </pluginRepository>
    </pluginRepositories>

    <dependencies>
<!-- <dependency>-->
<!-- <groupId>org.eclipse.jetty</groupId>-->
<!-- <artifactId>jetty-quickstart</artifactId>-->
<!-- <version>9.1.0.RC2</version>-->
<!-- </dependency>-->
        <dependency>
            <groupId>org.codehaus.plexus</groupId>
            <artifactId>plexus-utils</artifactId>
            <version>2.0.6</version>
        </dependency>
        <dependency>
            <groupId>org.apache.maven</groupId>
            <artifactId>maven-plugin-api</artifactId>
            <version>3.0.3</version>
        </dependency>
        <dependency>
            <groupId>org.apache.maven</groupId>
            <artifactId>maven-artifact</artifactId>
            <version>3.0.3</version>
        </dependency>
        <dependency>
            <groupId>org.apache.maven</groupId>
            <artifactId>maven-core</artifactId>
            <version>3.0.3</version>
        </dependency>
        <dependency>
            <groupId>com.google.api-ads</groupId>
            <artifactId>ads-lib</artifactId>
            <version>2.5.0</version>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>com.google.api-ads</groupId>
            <artifactId>adwords-axis</artifactId>
            <version>2.5.0</version>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.maven.plugin-tools</groupId>
            <artifactId>maven-plugin-tools-api</artifactId>
            <version>3.1</version>
        </dependency>
<!-- <dependency>-->
<!-- <groupId>org.eclipse.jetty</groupId>-->
<!-- <artifactId>jetty-quickstart</artifactId>-->
<!-- <version>${jetty.version}</version>-->
<!-- </dependency>-->
        <dependency>
            <groupId>org.eclipse.jetty</groupId>
            <artifactId>jetty-jaas</artifactId>
            <version>${jetty.version}</version>
        </dependency>
        <dependency>
            <groupId>org.eclipse.jetty.websocket</groupId>
            <artifactId>javax-websocket-server-impl</artifactId>
            <version>${jetty.version}</version>
        </dependency>
        <dependency>
            <groupId>org.eclipse.jetty</groupId>
            <artifactId>jetty-jmx</artifactId>
            <version>${jetty.version}</version>
        </dependency>
        <dependency>
            <groupId>org.eclipse.jetty</groupId>
            <artifactId>jetty-jsp</artifactId>
            <version>${jetty.version}</version>
        </dependency>
        <dependency>
            <groupId>org.eclipse.jetty.orbit</groupId>
            <artifactId>javax.activation</artifactId>
            <version>1.1.0.v201105071233</version>
        </dependency>
<!-- <dependency>-->
<!-- <groupId>org.eclipse.jetty</groupId>-->
<!-- <artifactId>apache-jsp</artifactId>-->
<!-- <version>${jetty.version}</version>-->
<!-- </dependency>-->
<!-- <dependency>-->
<!-- <groupId>org.eclipse.jetty</groupId>-->
<!-- <artifactId>apache-jstl</artifactId>-->
<!-- <version>${jetty.version}</version>-->
<!-- </dependency>-->
        <dependency>
            <groupId>org.apache.httpcomponents</groupId>
            <artifactId>httpcore</artifactId>
            <version>4.3.1</version>
        </dependency>
        <dependency>
            <groupId>org.apache.httpcomponents</groupId>
            <artifactId>httpclient</artifactId>
            <version>4.3.1</version>
        </dependency>
        <dependency>
            <groupId>org.apache.httpcomponents</groupId>
            <artifactId>httpmime</artifactId>
            <version>4.3.1</version>
        </dependency>
        <dependency>
            <groupId>org.restlet</groupId>
            <artifactId>org.restlet</artifactId>
            <version>2.0-SNAPSHOT-M5</version>
        </dependency>
        <dependency>
            <groupId>org.lpsolve</groupId>
            <artifactId>org.lpsolve</artifactId>
            <version>5.5</version>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>org.json</groupId>
            <artifactId>json</artifactId>
            <version>20090211</version>
        </dependency>
        <dependency>
            <groupId>net.sf.json-lib</groupId>
            <artifactId>json-lib</artifactId>
            <version>2.3</version>
            <type>jar</type>
            <classifier>jdk15</classifier>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>org.restlet</groupId>
            <artifactId>org.restlet</artifactId>
            <version>2.0-SNAPSHOT-M5</version>
        </dependency>
        <dependency>
            <groupId>org.restlet</groupId>
            <artifactId>org.restlet.ext.spring</artifactId>
            <version>2.0-SNAPSHOT-M5</version>
        </dependency>
        <dependency>
            <groupId>org.restlet</groupId>
            <artifactId>org.restlet.ext.servlet</artifactId>
            <version>2.0-SNAPSHOT-M5</version>
        </dependency>
        <dependency>
            <groupId>org.restlet.jee</groupId>
            <artifactId>org.restlet.ext.xml</artifactId>
            <version>2.0-M5</version>
        </dependency>
        <dependency>
            <groupId>org.restlet.jee</groupId>
            <artifactId>org.restlet.ext.json</artifactId>
            <version>2.0-M5</version>
        </dependency>
        <dependency>
            <groupId>org.osgi</groupId>
            <artifactId>org.osgi.core</artifactId>
            <version>4.0</version>
        </dependency>
        <dependency>
            <groupId>net.sf.json-lib</groupId>
            <artifactId>json-lib</artifactId>
            <version>2.3</version>
            <type>jar</type>
            <classifier>jdk15</classifier>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>saaj</groupId>
            <artifactId>saaj</artifactId>
            <version>adwords-7.1.0-dep</version>
            <scope>compile</scope>
        </dependency>

        <dependency>
            <groupId>jaxrpc</groupId>
            <artifactId>jaxrpc</artifactId>
            <version>adwords-7.1.0-dep</version>
            <scope>compile</scope>
        </dependency>

        <dependency>
            <groupId>org.apache.axis</groupId>
            <artifactId>axis</artifactId>
            <version>1.4</version>
            <scope>compile</scope>
        </dependency>
<!--        <dependency>-->
<!--            <groupId>com.yahoo.sm.ws.client</groupId>-->
<!--            <artifactId>yahoo-api</artifactId>-->
<!--            <version>7.0.0</version>-->
<!--            <scope>compile</scope>-->
<!--            <classifier>loner</classifier>-->
<!--        </dependency>-->

        <dependency>
            <groupId>com.baidu</groupId>
            <artifactId>api-gateway</artifactId>
            <version>1.0.4</version>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>com.microsoft.AdCenter-API</groupId>
            <artifactId>adintelligence</artifactId>
            <version>9</version>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>com.microsoft.AdCenter-API</groupId>
            <artifactId>customerbilling</artifactId>
            <version>9</version>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>com.microsoft.AdCenter-API</groupId>
            <artifactId>bulk</artifactId>
            <version>9</version>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>com.microsoft.AdCenter-API</groupId>
            <artifactId>campaignmanagement</artifactId>
            <version>9</version>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>com.microsoft.AdCenter-API</groupId>
            <artifactId>customermanagement</artifactId>
            <version>9</version>
            <scope>compile</scope>
        </dependency>
<!-- <dependency>-->
<!-- <groupId>com.microsoft.AdCenter-API</groupId>-->
<!-- <artifactId>notifications</artifactId>-->
<!-- <version>9</version>-->
<!-- <scope>compile</scope>-->
<!-- </dependency>-->
        <dependency>
            <groupId>com.microsoft.AdCenter-API</groupId>
            <artifactId>optimizer</artifactId>
            <version>9</version>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>com.microsoft.AdCenter-API</groupId>
            <artifactId>reporting</artifactId>
            <version>9</version>
            <scope>compile</scope>
        </dependency>

        <dependency>
            <groupId>commons-logging</groupId>
            <artifactId>commons-logging</artifactId>
            <version>1.0.4</version>
        </dependency>

        <dependency>
            <groupId>commons-codec</groupId>
            <artifactId>commons-codec</artifactId>
            <version>1.3</version>
        </dependency>
        <dependency>
            <groupId>commons-discovery</groupId>
            <artifactId>commons-discovery</artifactId>
            <version>0.2</version>
        </dependency>

        <dependency>
            <groupId>commons-lang</groupId>
            <artifactId>commons-lang</artifactId>
            <version>2.4</version>
        </dependency>

        <dependency>
            <groupId>commons-httpclient</groupId>
            <artifactId>commons-httpclient</artifactId>
            <version>3.1</version>
        </dependency>
        <dependency>
            <groupId>commons-net</groupId>
            <artifactId>commons-net</artifactId>
            <version>3.2</version>
        </dependency>
        <dependency>
            <groupId>commons-io</groupId>
            <artifactId>commons-io</artifactId>
            <version>2.4</version>
        </dependency>
            
        <dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-csv</artifactId>
            <version>1.1</version>
        </dependency>

        <dependency>
            <groupId>wsdl4j</groupId>
            <artifactId>wsdl4j</artifactId>
            <version>1.5.1</version>
            <scope>compile</scope>
        </dependency>

        <dependency>
            <groupId>wsdl4j</groupId>
            <artifactId>wsdl4j</artifactId>
            <version>1.6.2</version>
        </dependency>

        <dependency>
            <groupId>org.apache.axis</groupId>
            <artifactId>axis-saaj</artifactId>
            <version>1.4</version>
            <scope>compile</scope>
        </dependency>



<!---->
<!--        <dependency>-->
<!--            <groupId>com.fastsearch.admomentum</groupId>-->
<!--            <artifactId>fast-admomentum-adserver-client</artifactId>-->
<!--            <version>${fast-admomentum-api.version}</version>-->
<!--        </dependency>-->
<!--        <dependency>-->
<!--            <groupId>com.fastsearch.admomentum</groupId>-->
<!--            <artifactId>fast-admomentum-billing-client</artifactId>-->
<!--            <version>${fast-admomentum-api.version}</version>-->
<!--        </dependency>-->
<!--        <dependency>-->
<!--            <groupId>com.fastsearch.admomentum</groupId>-->
<!--            <artifactId>fast-admomentum-common</artifactId>-->
<!--            <version>${fast-admomentum-api.version}</version>-->
<!--        </dependency>-->
<!--        <dependency>-->
<!--            <groupId>com.fastsearch.admomentum</groupId>-->
<!--            <artifactId>fast-admomentum-admanager-client</artifactId>-->
<!--            <version>${fast-admomentum-api.version}</version>-->
<!--        </dependency>-->
<!--        <dependency>-->
<!--            <groupId>com.fastsearch.admomentum</groupId>-->
<!--            <artifactId>fast-admomentum-budgeting-client</artifactId>-->
<!--            <version>${fast-admomentum-api.version}</version>-->
<!--        </dependency>-->

        <dependency>
            <groupId>com.caucho</groupId>
            <artifactId>hessian</artifactId>
            <version>3.1.5</version>
        </dependency>


        <dependency>
            <groupId>commons-lang</groupId>
            <artifactId>commons-lang</artifactId>
            <version>2.4</version>
        </dependency>

        <dependency>
            <groupId>joda-time</groupId>
            <artifactId>joda-time-hibernate</artifactId>
            <version>1.2</version>
            <exclusions>
                <exclusion>
                    <groupId>org.hibernate</groupId>
                    <artifactId>hibernate</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

        <dependency>
            <groupId>xerces</groupId>
            <artifactId>xmlParserAPIs</artifactId>
            <version>2.6.2</version>
        </dependency>

        <dependency>
            <groupId>xerces</groupId>
            <artifactId>xercesImpl</artifactId>
            <version>2.9.1</version>
        </dependency>

        <dependency>
            <groupId>xml</groupId>
            <artifactId>xml-apis</artifactId>
            <version>1.3.04</version>
        </dependency>

        <dependency>
            <groupId>javax.annotation</groupId>
            <artifactId>jsr250-api</artifactId>
            <version>1.0</version>
        </dependency>

        <dependency>
            <groupId>org.apache.wicket</groupId>
            <artifactId>wicket</artifactId>
            <version>${wicket.version}</version>
        </dependency>

        <dependency>
            <groupId>org.apache.cxf</groupId>
            <artifactId>cxf</artifactId>
            <version>2.2.9</version>
        </dependency>

        <dependency>
            <groupId>org.objectweb</groupId>
            <artifactId>asm</artifactId>
            <version>2.2.3</version>
        </dependency>

        <dependency>
            <groupId>org.apache</groupId>
            <artifactId>neethi</artifactId>
            <version>2.0.4</version>
        </dependency>

        <dependency>
            <groupId>org.apache.ws.commons.schema</groupId>
            <artifactId>XmlSchema</artifactId>
            <version>1.4.5</version>
        </dependency>

        <dependency>
            <groupId>org.apache.wicket</groupId>
            <artifactId>wicket-spring</artifactId>
            <version>${wicket.version}</version>
        </dependency>
        <dependency>
            <groupId>org.wicketstuff</groupId>
            <artifactId>inmethod-grid</artifactId>
            <version>1.4.9.2</version>
        </dependency>

        <dependency>
            <groupId>org.apache.wicket</groupId>
            <artifactId>wicket-extensions</artifactId>
            <version>${wicket.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.wicket</groupId>
            <artifactId>wicket-ioc</artifactId>
            <version>${wicket.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.wicket</groupId>
            <artifactId>wicket-datetime</artifactId>
            <version>${wicket.version}</version>
        </dependency>

        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring</artifactId>
            <version>${spring.version}</version>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-tx</artifactId>
            <version>${spring.version}</version>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-jms</artifactId>
            <version>${spring.version}</version>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-aop</artifactId>
            <version>${spring.version}</version>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-context</artifactId>
            <version>${spring.version}</version>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-webmvc-portlet</artifactId>
            <version>${spring.version}</version>
        </dependency>
        <dependency>
            <groupId>org.aspectj</groupId>
            <artifactId>aspectjrt</artifactId>
            <version>${aspectj.version}</version>
        </dependency>
        <dependency>
            <groupId>org.aspectj</groupId>
            <artifactId>aspectjweaver</artifactId>
            <version>${aspectj.version}</version>
        </dependency>


        <dependency>
            <artifactId>xbean-spring</artifactId>
            <groupId>org.apache.xbean</groupId>
            <version>3.5</version>
        </dependency>
        <dependency>
            <groupId>org.apache.derby</groupId>
            <artifactId>derby</artifactId>
            <version>10.4.2.0</version>
        </dependency>


        <dependency>
            <groupId>commons-collections</groupId>
            <artifactId>commons-collections</artifactId>
            <version>3.2</version>
        </dependency>

        <dependency>
            <groupId>opensymphony</groupId>
            <artifactId>quartz</artifactId>
            <version>1.6.3</version>
            <scope>compile</scope>
        </dependency>

        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
            <version>1.5.2</version>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-log4j12</artifactId>
            <version>1.5.2</version>
        </dependency>

        <dependency>
            <groupId>commons-dbcp</groupId>
            <artifactId>commons-dbcp</artifactId>
            <version>1.2.2</version>
        </dependency>

        <dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate-core</artifactId>
            <version>3.3.1.GA</version>
        </dependency>
        <dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate-annotations</artifactId>
            <version>3.4.0.GA</version>
        </dependency>
        <dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate-entitymanager</artifactId>
            <version>3.4.0.GA</version>
        </dependency>

        <dependency>
            <groupId>javax.persistence</groupId>
            <artifactId>persistence-api</artifactId>
            <version>1.0</version>
        </dependency>
        <dependency>
            <groupId>hsqldb</groupId>
            <artifactId>hsqldb</artifactId>
            <version>1.8.0.7</version>
        </dependency>
        <dependency>
            <groupId>mysql</groupId>
            <artifactId>mysql-connector-java</artifactId>
            <version>5.1.5</version>
        </dependency>


        <dependency>
            <groupId>org.testng</groupId>
            <artifactId>testng</artifactId>
            <version>5.7</version>
            <scope>test</scope>
            <classifier>jdk15</classifier>
        </dependency>
        <dependency>
            <groupId>org.jmock</groupId>
            <artifactId>jmock</artifactId>
            <version>2.4.0</version>
        </dependency>
        <dependency>
            <groupId>org.easymock</groupId>
            <artifactId>easymock</artifactId>
            <version>2.0</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>cglib</groupId>
            <artifactId>cglib</artifactId>
            <version>2.1_3</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.dbunit</groupId>
            <artifactId>dbunit</artifactId>
            <version>2.2</version>
            <scope>test</scope>
        </dependency>

        <dependency>
            <groupId>com.thoughtworks.xstream</groupId>
            <artifactId>xstream</artifactId>
            <version>1.3.1</version>
        </dependency>


        <dependency>
            <groupId>c3p0</groupId>
            <artifactId>c3p0</artifactId>
            <version>0.9.1.2</version>
        </dependency>
        <dependency>
            <groupId>javax.jms</groupId>
            <artifactId>jms</artifactId>
            <version>1.1</version>
        </dependency>
        <dependency>
            <groupId>javax.mail</groupId>
            <artifactId>mail</artifactId>
            <version>1.4</version>
        </dependency>
        <dependency>
            <groupId>org.mortbay.jetty</groupId>
            <artifactId>jsp-2.1-jetty</artifactId>
            <version>${old.jetty.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.activemq</groupId>
            <artifactId>activemq-core</artifactId>
            <version>5.3.0</version>
        </dependency>

        <dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate-ehcache</artifactId>
            <version>3.3.1.GA</version>
        </dependency>
        <dependency>
            <groupId>net.sf.ehcache</groupId>
            <artifactId>ehcache</artifactId>
            <version>1.4.1</version>
        </dependency>
        <dependency>
            <groupId>xalan</groupId>
            <artifactId>xalan</artifactId>
            <version>2.7.1</version>
        </dependency>


        <dependency>
            <groupId>org.eclipse.jetty</groupId>
            <artifactId>jetty-server</artifactId>
            <version>${jetty.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.eclipse.jetty</groupId>
            <artifactId>jetty-plus</artifactId>
            <version>${jetty.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.eclipse.jetty</groupId>
            <artifactId>jetty-util</artifactId>
            <version>${jetty.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.eclipse.jetty</groupId>
            <artifactId>jetty-webapp</artifactId>
            <version>${jetty.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.eclipse.jetty</groupId>
            <artifactId>jetty-servlet</artifactId>
            <version>${jetty.version}</version>
            <scope>provided</scope>
        </dependency>
        <!--dependency>
                <groupId>org.eclipse.jetty</groupId>
                <artifactId>jetty-naming</artifactId>
                <version>${jetty.version}</version>
                <scope>test</scope>
        </dependency>
        <dependency>
                <groupId>org.eclipse.jetty</groupId>
                <artifactId>jetty-management</artifactId>
                <version>${jetty.version}</version>
                <scope>provided</scope>
        </dependency-->

        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>servlet-api</artifactId>
            <version>2.5</version>
            <scope>provided</scope>
        </dependency>


        <dependency>
            <groupId>com.sun.xml.ws</groupId>
            <artifactId>jaxws-rt</artifactId>
            <version>2.1.4</version>
            <exclusions>
                <exclusion>
                    <groupId>com.sun.xml.bind</groupId>
                    <artifactId>jaxb-impl</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>com.sun.xml.bind</groupId>
            <artifactId>jaxb-impl</artifactId>
            <version>2.1.9</version>
        </dependency>
        <dependency>
            <groupId>net.sf.opencsv</groupId>
            <artifactId>opencsv</artifactId>
            <version>2.0</version>
        </dependency>
        <dependency>
            <groupId>org.apache.axis2</groupId>
            <artifactId>axis2</artifactId>
            <version>1.4</version>
        </dependency>
        <dependency>
            <groupId>org.jsoup</groupId>
            <artifactId>jsoup</artifactId>
            <version>1.7.2</version>
        </dependency>

        <dependency>
            <groupId>org.apache.xmlrpc</groupId>
            <artifactId>xmlrpc-client</artifactId>
            <version>3.1.3</version>
        </dependency>

        <dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-databind</artifactId>
            <version>2.1.3</version>
        </dependency>
        <dependency>
            <groupId>jdom</groupId>
            <artifactId>jdom</artifactId>
            <version>1.0</version>
            <type>jar</type>
        </dependency>
    </dependencies>
    <build>
        <plugins>


            <plugin>

                <groupId>org.codehaus.mojo</groupId>
                <artifactId>jaxws-maven-plugin</artifactId>
                <version>1.12</version>


                <!--executions>
                    <execution>
                        <id>imp1</id>
                        <goals>
                            <goal>wsimport</goal>
                        </goals>
                        <configuration>

                            <bindingFiles>
                                <bindingFile>adgroup.xml</bindingFile>
                            </bindingFiles>
                            <wsdlLocation>wsdl/AdGroupService.wsdl</wsdlLocation>
                            <wsdlFiles>
                                <wsdlFile>AdGroupService.wsdl</wsdlFile>
                            </wsdlFiles>
                            <staleFile>
                                ${project.build.directory}/jaxws/stale/AdGroupService.wsdl.stale
                            </staleFile>
                            <target>2.1</target>
                            <xjcArgs>
                                <xjcArg>-XautoNameResolution</xjcArg>
                            </xjcArgs>
                            <bindingDirectory>src/jaxws</bindingDirectory>
                            <keep>true</keep>
                            <wsdlDirectory>src/jaxws/wsdl</wsdlDirectory>
                            <packageName>com.amdocs.adam.soap</packageName>
                        </configuration>
                    </execution>
                    <execution>
                        <id>imp2</id>
                        <goals>
                            <goal>wsimport</goal>
                        </goals>
                        <configuration>
                            <bindingFiles>
                                <bindingFile>adgroupcriterion.xml</bindingFile>
                            </bindingFiles>
                            <wsdlLocation>wsdl/AdGroupCriterionService.wsdl</wsdlLocation>
                            <wsdlFiles>
                                <wsdlFile>AdGroupCriterionService.wsdl</wsdlFile>
                            </wsdlFiles>
                            <staleFile>
                                ${project.build.directory}/jaxws/stale/AdGroupCriterionService.wsdl.stale
                            </staleFile>
                            <target>2.1</target>
                            <xjcArgs>
                                <xjcArg>-XautoNameResolution</xjcArg>
                            </xjcArgs>
                            <bindingDirectory>src/jaxws</bindingDirectory>
                            <keep>true</keep>
                            <wsdlDirectory>src/jaxws/wsdl</wsdlDirectory>
                            <packageName>com.amdocs.adam.soap</packageName>
                        </configuration>
                    </execution>
                    <execution>
                        <id>imp3</id>
                        <goals>
                            <goal>wsimport</goal>
                        </goals>
                        <configuration>
                            <bindingFiles>
                                <bindingFile>adgroupad.xml</bindingFile>
                            </bindingFiles>
                            <wsdlLocation>wsdl/AdGroupAdService.wsdl</wsdlLocation>
                            <wsdlFiles>
                                <wsdlFile>AdGroupAdService.wsdl</wsdlFile>
                            </wsdlFiles>
                            <staleFile>
                                ${project.build.directory}/jaxws/stale/AdGroupAdService.wsdl.stale
                            </staleFile>
                            <target>2.1</target>
                            <xjcArgs>
                                <xjcArg>-XautoNameResolution</xjcArg>
                            </xjcArgs>
                            <bindingDirectory>src/jaxws</bindingDirectory>
                            <keep>true</keep>
                            <wsdlDirectory>src/jaxws/wsdl</wsdlDirectory>
                            <packageName>com.amdocs.adam.soap</packageName>
                        </configuration>
                    </execution>
                    <execution>
                        <id>imp4</id>
                        <goals>
                            <goal>wsimport</goal>
                        </goals>
                        <configuration>
                            <bindingFiles>
                                <bindingFile>campaigntarget.xml</bindingFile>
                            </bindingFiles>
                            <wsdlLocation>wsdl/CampaignTargetService.wsdl</wsdlLocation>
                            <wsdlFiles>
                                <wsdlFile>CampaignTargetService.wsdl</wsdlFile>
                            </wsdlFiles>
                            <staleFile>
                                ${project.build.directory}/jaxws/stale/CampaignTargetService.wsdl.stale
                            </staleFile>
                            <target>2.1</target>
                            <xjcArgs>
                                <xjcArg>-XautoNameResolution</xjcArg>
                            </xjcArgs>
                            <bindingDirectory>src/jaxws</bindingDirectory>
                            <keep>true</keep>
                            <wsdlDirectory>src/jaxws/wsdl</wsdlDirectory>
                            <packageName>com.amdocs.adam.soap</packageName>
                        </configuration>
                    </execution>
                    <execution>
                        <id>imp5</id>
                        <goals>
                            <goal>wsimport</goal>
                        </goals>
                        <configuration>
                            <bindingFiles>
                                <bindingFile>campaign.xml</bindingFile>
                            </bindingFiles>
                            <wsdlLocation>wsdl/CampaignService.wsdl</wsdlLocation>
                            <wsdlFiles>
                                <wsdlFile>CampaignService.wsdl</wsdlFile>
                            </wsdlFiles>
                            <staleFile>
                                ${project.build.directory}/jaxws/stale/CampaignService.wsdl.stale
                            </staleFile>
                            <target>2.1</target>
                            <xjcArgs>
                                <xjcArg>-XautoNameResolution</xjcArg>
                            </xjcArgs>
                            <bindingDirectory>src/jaxws</bindingDirectory>
                            <keep>true</keep>
                            <wsdlDirectory>src/jaxws/wsdl</wsdlDirectory>
                            <packageName>com.amdocs.adam.soap</packageName>
                        </configuration>
                    </execution>

                </executions-->



                <dependencies>
                    <dependency>
                        <groupId>com.sun.xml.ws</groupId>
                        <artifactId>jaxws-tools</artifactId>
                        <version>2.1.4</version>
                    </dependency>
                    <dependency>
                        <groupId>com.sun.xml.bind</groupId>
                        <artifactId>jaxb-impl</artifactId>
                        <version>2.1.9</version>
                    </dependency>

                </dependencies>
            </plugin>

            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>axistools-maven-plugin</artifactId>
                <version>1.4</version>

                <configuration>
                    <packageSpace>ru.yandex.direct.soap</packageSpace>
                    <sourceDirectory>${basedir}/src/jaxws/wsdl/Yandex/</sourceDirectory>
                    <wsdlFiles>
                        <wsdlFile>yandex-sandbox.wsdl</wsdlFile>
                        <!--<wsdlFile>yandex.wsdl</wsdlFile>-->
                    </wsdlFiles>
                    <serverSide>true</serverSide>
                    <allElements>true</allElements>
                </configuration>

                <executions>
                    <execution>
                        <goals>
                            <goal>wsdl2java</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

            <plugin>

                <groupId>org.codehaus.mojo</groupId>
                <artifactId>cobertura-maven-plugin</artifactId>
            </plugin>

            <plugin>
                <!--groupId>org.mortbay.jetty</groupId>
                <artifactId>maven-jetty-plugin</artifactId>
                <version>${jetty.version}</version-->
                <groupId>org.eclipse.jetty</groupId>
                <artifactId>jetty-maven-plugin</artifactId>
                <version>${jetty.version}</version>
                <dependencies>
                    <dependency>
                        <groupId>commons-dbcp</groupId>
                        <artifactId>commons-dbcp</artifactId>
                        <version>1.2.2</version>
                    </dependency>
                    <dependency>
                        <groupId>mysql</groupId>
                        <artifactId>mysql-connector-java</artifactId>
                        <version>5.1.5</version>
                    </dependency>
                </dependencies>
                <configuration>
                    <jettyXml>${basedir}/jetty.xml,${basedir}/jetty-http.xml</jettyXml>
<!-- <stopKey>stopKey</stopKey>-->
<!-- <stopPort>8081</stopPort>-->
                    <contextPath>/</contextPath>
                    <stopPort>9966</stopPort>
                    <stopKey>foo</stopKey>
                    <stopWait>10</stopWait>
<!-- <webAppConfig>-->
<!-- <contextPath>/</contextPath>-->
<!--  <resourceBases>-->
<!--   <resourceBase>${project.basedir}/src/main/webapp</resourceBase>-->
<!--   <resourceBase>${basedir}/src/main/webapp</resourceBase>-->
<!--   <resourceBase>${basedir}/embedded-config</resourceBase>-->
<!--  </resourceBases>-->
<!-- <resource>${basedir}/embedded-config/WEB-INF/classes/env-spring.properties</resource>-->
<!-- <baseResource implementation="org.eclipse.jetty.util.resource.ResourceCollection">-->
<!-- <resourcesAsCSV>${basedir}/src/main/webapp</resourcesAsCSV>-->
<!-- </baseResource>-->
<!-- </webAppConfig>-->
                    <webAppConfig>
                        <contextPath>/</contextPath>
                        <baseResource implementation="org.eclipse.jetty.util.resource.ResourceCollection">
                            <resourcesAsCSV>${basedir}/src/main/webapp,${basedir}/embedded-config</resourcesAsCSV>
                        </baseResource>
                    </webAppConfig>
                    <!--contextXml>${basedir}/src/main/webapp/WEB-INF/jetty-context.xml</contextXml>
                    <useTestScope>true</useTestScope-->
                </configuration>
            </plugin>
            <plugin>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>1.7</source>
                    <target>1.7</target>
                </configuration>
            </plugin>
            <plugin>

                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <configuration>
                    <skipTests>true</skipTests>
                    <suiteXmlFiles>
                        <suiteXmlFile>testng.xml</suiteXmlFile>
                    </suiteXmlFiles>
                </configuration>
            </plugin>
        </plugins>
        <resources>
            <!--resource>
                <filtering>false</filtering>
                <directory>src/jaxws/wsdl</directory>
                <targetPath>com/amdocs/adam/soap/wsdl</targetPath>
                <includes>
                    <include>**/*</include>
                </includes>
            </resource>
            <resource>
                <filtering>false</filtering>
                <directory>src/jaxws/wsdl/AdCenter</directory>
                <targetPath>com/microsoft/AdCenter/soap/wsdl</targetPath>
                <includes>
                    <include>**/*</include>
                </includes>
            </resource-->
            <resource>
                <filtering>false</filtering>
                <directory>src/main/resources</directory>
                <includes>
                    <include>**/*</include>
                </includes>
            </resource>
            <resource>
                <filtering>false</filtering>
                <directory>src/main/java</directory>
                <includes>
                    <include>**</include>
                </includes>
                <excludes>
                    <exclude>**/*.java</exclude>
                </excludes>
            </resource>
        </resources>
<testResources>
<testResource>
<filtering>false</filtering>
<directory>src/test/resources</directory>
</testResource>
</testResources>
    </build>

</project> 

Josh Radcliff (AdWords API Team)

unread,
Oct 27, 2015, 5:01:06 PM10/27/15
to AdWords API Forum
Hi,

Since this is specific to the Java client library, could you open an issue on our issues list so we can better track this? Also, if you could provide the complete set of dependencies using dependency:list, that should help us identify the source of this problem.

Thanks,
Josh, AdWords API Team
...

Adxsearch Adxpand

unread,
Oct 28, 2015, 8:03:51 AM10/28/15
to AdWords API Forum
Reply all
Reply to author
Forward
0 new messages