jQuery in Action, 2nd edition*
The moose likes Ant, Maven and Other Build Tools and the fly likes MVN build error : could not copy webapp classes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "MVN build error : could not copy webapp classes" Watch "MVN build error : could not copy webapp classes" New topic
Author

MVN build error : could not copy webapp classes

M sallu
Ranch Hand

Joined: Dec 13, 2009
Posts: 42
Hi,

I am trying to build my local environment using mvn clean install. I am running on RSA which has eclipse inside it. Using Weblogic server and maven 2.0.7 my build tool.

When I build it, getting this error

[INFO] Scanning for projects...
[INFO] ----------------------------------------------------------------------------
[INFO] Building Implementation of Payment Service Adapter 10.01-SNAPSHOT
[INFO] task-segment: [clean, install]
[INFO] ----------------------------------------------------------------------------
[INFO] Ignoring available plugin update: 2.1 as it requires Maven version 2.0.9
[INFO] [clean:clean]
[INFO] Deleting C:\MyWorkspaces\EnterpriseServicesPlatform\trunk\com.ideatoceo.billing.payment.PaymentServiceBase-TRUNK\AdapterImpl_10.01\target
[INFO] Deleting C:\MyWorkspaces\EnterpriseServicesPlatform\trunk\com.ideatoceo.billing.payment.PaymentServiceBase-TRUNK\AdapterImpl_10.01\src\main\java (includes = [**/types], excludes = [])
[INFO] [version:version {execution: default}]
[INFO] [antrun:run {execution: ServiceBuild}]
[INFO] Executing tasks
[unzip] Expanding: C:\Documents and Settings\Brixton Six\.m2\repository\com\ideatoceo\core\BuildScripts\10.03-SNAPSHOT\BuildScripts-10.03-SNAPSHOT.jar into C:\MyWorkspaces\EnterpriseServicesPlatform\trunk\com.ideatoceo.billing.payment.PaymentServiceBase-TRUNK\AdapterImpl_10.01\target\BuildScripts
[INFO] Executed tasks
[INFO] [antrun:run {execution: wsdlc}]
[INFO] Executing tasks
[echo] artifact.final.name = PaymentService-ADPTR-10.01-SNAPSHOT
[echo] types.model.package = v1001
[echo] ${legacy.wsdl}
[echo] context.root = ${context.root}
[echo] context.path = Payment/10.01

ntd:check-major-release:
[echo] release.namespace.portion set to ''

ntd:extract-wsdl-service-adapter:
[unzip] Expanding: C:\Documents and Settings\Brixton Six\.m2\repository\com\ideatoceo\service\ServicesModel\10.01-SNAPSHOT\ServicesModel-10.01-SNAPSHOT.jar into C:\MyWorkspaces\EnterpriseServicesPlatform\trunk\com.ideatoceo.billing.payment.PaymentServiceBase-TRUNK\AdapterImpl_10.01\src\main\resources
[copy] Copying 1 file to C:\MyWorkspaces\EnterpriseServicesPlatform\trunk\com.ideatoceo.billing.payment.PaymentServiceBase-TRUNK\AdapterImpl_10.01\src\main\resources

ntd:wsdlc-service-adapter:
[WARNING] Generating array which is non-compliant with JaxRPC 1.1 for XML name: t=ArrayOfCardPaymentType@java:com.ideatoceo.billing.payment.v1001.types
[WARNING] Generating array which is non-compliant with JaxRPC 1.1 for XML name: t=ArrayOfBankAccountPaymentType@java:com.ideatoceo.billing.payment.v1001.types
[WARNING] Generating array which is non-compliant with JaxRPC 1.1 for XML name: t=MessagesType@java:com.ideatoceo.v1001.types
[WARNING] The binding soap:header element for binding operation:
{http://xml.ideatoceo.com/payment/services}addPaymentInstrument
is being IGNORED because its message:
{http://xml.ideatoceo.com/payment/services}paymentServiceRequestHeader
does not match the corresponding input/output portType message:
{http://xml.ideatoceo.com/payment/services}addPaymentInstrument
To handle this soap header, you need to add a handler to your client.

[WARNING] The binding soap:header element for binding operation:
{http://xml.ideatoceo.com/payment/services}addPaymentInstrument
is being IGNORED because its message:
{http://xml.ideatoceo.com/payment/services}paymentServiceResponseHeader
does not match the corresponding input/output portType message:
{http://xml.ideatoceo.com/payment/services}addPaymentInstrumentResponse
To handle this soap header, you need to add a handler to your client.

[WARNING] The binding soap:header element for binding operation:
{http://xml.ideatoceo.com/payment/services}getPrepaidCard
is being IGNORED because its message:
{http://xml.ideatoceo.com/payment/services}paymentServiceRequestHeader
does not match the corresponding input/output portType message:
{http://xml.ideatoceo.com/payment/services}getPrepaidCard
To handle this soap header, you need to add a handler to your client.

[WARNING] The binding soap:header element for binding operation:
{http://xml.ideatoceo.com/payment/services}getPrepaidCard
is being IGNORED because its message:
{http://xml.ideatoceo.com/payment/services}paymentServiceResponseHeader
does not match the corresponding input/output portType message:
{http://xml.ideatoceo.com/payment/services}getPrepaidCardResponse
To handle this soap header, you need to add a handler to your client.

[WARNING] The binding soap:header element for binding operation:
{http://xml.ideatoceo.com/payment/services}modifyPaymentInstrument
is being IGNORED because its message:
{http://xml.ideatoceo.com/payment/services}paymentServiceRequestHeader
does not match the corresponding input/output portType message:
{http://xml.ideatoceo.com/payment/services}modifyPaymentInstrument
To handle this soap header, you need to add a handler to your client.

[WARNING] The binding soap:header element for binding operation:
{http://xml.ideatoceo.com/payment/services}modifyPaymentInstrument
is being IGNORED because its message:
{http://xml.ideatoceo.com/payment/services}paymentServiceResponseHeader
does not match the corresponding input/output portType message:
{http://xml.ideatoceo.com/payment/services}modifyPaymentInstrumentResponse
To handle this soap header, you need to add a handler to your client.

[WARNING] The binding soap:header element for binding operation:
{http://xml.ideatoceo.com/payment/services}queryPaymentInstrumentType
is being IGNORED because its message:
{http://xml.ideatoceo.com/payment/services}paymentServiceRequestHeader
does not match the corresponding input/output portType message:
{http://xml.ideatoceo.com/payment/services}queryPaymentInstrumentType
To handle this soap header, you need to add a handler to your client.

[WARNING] The binding soap:header element for binding operation:
{http://xml.ideatoceo.com/payment/services}queryPaymentInstrumentType
is being IGNORED because its message:
{http://xml.ideatoceo.com/payment/services}paymentServiceResponseHeader
does not match the corresponding input/output portType message:
{http://xml.ideatoceo.com/payment/services}queryPaymentInstrumentTypeResponse
To handle this soap header, you need to add a handler to your client.

[WARNING] The binding soap:header element for binding operation:
{http://xml.ideatoceo.com/payment/services}removePaymentInstrument
is being IGNORED because its message:
{http://xml.ideatoceo.com/payment/services}paymentServiceRequestHeader
does not match the corresponding input/output portType message:
{http://xml.ideatoceo.com/payment/services}removePaymentInstrument
To handle this soap header, you need to add a handler to your client.

[WARNING] The binding soap:header element for binding operation:
{http://xml.ideatoceo.com/payment/services}removePaymentInstrument
is being IGNORED because its message:
{http://xml.ideatoceo.com/payment/services}paymentServiceResponseHeader
does not match the corresponding input/output portType message:
{http://xml.ideatoceo.com/payment/services}removePaymentInstrumentResponse
To handle this soap header, you need to add a handler to your client.

[WARNING] The binding soap:header element for binding operation:
{http://xml.ideatoceo.com/payment/services}submitPayment
is being IGNORED because its message:
{http://xml.ideatoceo.com/payment/services}paymentServiceRequestHeader
does not match the corresponding input/output portType message:
{http://xml.ideatoceo.com/payment/services}submitPayment
To handle this soap header, you need to add a handler to your client.

[WARNING] The binding soap:header element for binding operation:
{http://xml.ideatoceo.com/payment/services}submitPayment
is being IGNORED because its message:
{http://xml.ideatoceo.com/payment/services}paymentServiceResponseHeader
does not match the corresponding input/output portType message:
{http://xml.ideatoceo.com/payment/services}submitPaymentResponse
To handle this soap header, you need to add a handler to your client.

[unjar] Expanding: C:\MyWorkspaces\EnterpriseServicesPlatform\trunk\com.ideatoceo.billing.payment.PaymentServiceBase-TRUNK\AdapterImpl_10.01\target\wsdlc\compiledWsdl\PaymentService_wsdl.jar into C:\MyWorkspaces\EnterpriseServicesPlatform\trunk\com.ideatoceo.billing.payment.PaymentServiceBase-TRUNK\AdapterImpl_10.01\src\main\java
[delete] Deleting: C:\MyWorkspaces\EnterpriseServicesPlatform\trunk\com.ideatoceo.billing.payment.PaymentServiceBase-TRUNK\AdapterImpl_10.01\src\main\resources\PaymentService.wsdl
[copy] Copying 1 file to C:\MyWorkspaces\EnterpriseServicesPlatform\trunk\com.ideatoceo.billing.payment.PaymentServiceBase-TRUNK\AdapterImpl_10.01\src\main\java\com\ideatoceo\billing\payment\v1001\service
[echo] wsdlc-service-adapter complete.
[INFO] Executed tasks
[INFO] [service-adapter:generate {execution: generate}]
[INFO] The file C:\MyWorkspaces\EnterpriseServicesPlatform\trunk\com.ideatoceo.billing.payment.PaymentServiceBase-TRUNK\AdapterImpl_10.01\src\main\java\com\ideatoceo\billing\payment\v1001\service\PaymentServiceAdapterImpl.java already exists. Don't generate it, remove the file first if you want to generate it.
[INFO] The file C:\MyWorkspaces\EnterpriseServicesPlatform\trunk\com.ideatoceo.billing.payment.PaymentServiceBase-TRUNK\AdapterImpl_10.01\src\main\java\com\ideatoceo\billing\payment\v1001\service\jws\PaymentWS.java already exists. Don't generate it, remove the file first if you want to generate it.
[INFO] [resources:resources]
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 4 resources
[INFO] [compiler:compile]
[INFO] Compiling 35 source files to C:\MyWorkspaces\EnterpriseServicesPlatform\trunk\com.ideatoceo.billing.payment.PaymentServiceBase-TRUNK\AdapterImpl_10.01\target\classes
[INFO] [resources:testResources]
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 1 resource
[INFO] [compiler:testCompile]
[INFO] Compiling 1 source file to C:\MyWorkspaces\EnterpriseServicesPlatform\trunk\com.ideatoceo.billing.payment.PaymentServiceBase-TRUNK\AdapterImpl_10.01\target\test-classes
[INFO] [surefire:test]
[INFO] Surefire report directory: C:\MyWorkspaces\EnterpriseServicesPlatform\trunk\com.ideatoceo.billing.payment.PaymentServiceBase-TRUNK\AdapterImpl_10.01\target\surefire-reports

-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running com.ideatoceo.billing.payment.v1001.service.DozerMappingTest
log4j:WARN No appenders could be found for logger (com.ideatoceo.billing.payment.v1001.service.DozerMappingTest).
log4j:WARN Please initialize the log4j system properly.
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.453 sec

Results :

Tests run: 1, Failures: 0, Errors: 0, Skipped: 0

[INFO] [war:war]
[INFO] Packaging webapp
[INFO] Assembling webapp[PaymentAdapter_v1001Impl] in [C:\MyWorkspaces\EnterpriseServicesPlatform\trunk\com.ideatoceo.billing.payment.PaymentServiceBase-TRUNK\AdapterImpl_10.01\target\PaymentAdapter_v1001Impl-10.01-SNAPSHOT]
[INFO] Processing war project
[INFO] Copying webapp resources[C:\MyWorkspaces\EnterpriseServicesPlatform\trunk\com.ideatoceo.billing.payment.PaymentServiceBase-TRUNK\AdapterImpl_10.01\src\main\webapp]
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Could not copy webapp classes[C:\MyWorkspaces\EnterpriseServicesPlatform\trunk\com.ideatoceo.billing.payment.PaymentServiceBase-TRUNK\AdapterImpl_10.01\target\classes]

Embedded error: Failed to copy full contents from C:\MyWorkspaces\EnterpriseServicesPlatform\trunk\com.ideatoceo.billing.payment.PaymentServiceBase-TRUNK\AdapterImpl_10.01\target\classes\com\ideatoceo\billing\payment\v1001\types\ModifyPaymentInstrumentResponse.class to C:\MyWorkspaces\EnterpriseServicesPlatform\trunk\com.ideatoceo.billing.payment.PaymentServiceBase-TRUNK\AdapterImpl_10.01\target\PaymentAdapter_v1001Impl-10.01-SNAPSHOT\WEB-INF\classes\com\ideatoceo\billing\payment\v1001\types\ModifyPaymentInstrumentResponse.class
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 41 seconds
[INFO] Finished at: Tue Feb 09 23:10:14 EST 2010
[INFO] Final Memory: 42M/64M
[INFO] ------------------------------------------------------------------------
Evan Caballero
Ranch Hand

Joined: Dec 10, 2009
Posts: 59
Try to "uncheck" the "Resolve Workspace Artifacts" checkbox in the maven run configuration under eclipse (assuming that you use the maven eclipse plugin)
M sallu
Ranch Hand

Joined: Dec 13, 2009
Posts: 42
I am using RSA which is nothing but eclipse. So where can I find that check box "Resolve unchecked artifacts"?, under windows --> preferences?

Could you guide me through the menu?
 
 
subject: MVN build error : could not copy webapp classes
 
Similar Threads
Confusion with Coldfusion / Groupwise web service
How to get Servcies,Input output xml formats from WSDL
WSAD5.1 WebService Client failure?
Problem when create client for web services because of XSD import url
SAML assertion in WSDL