cancel
Showing results for 
Search instead for 
Did you mean: 

External jars not recognized at build time

bhavya_sri3
Participant
0 Kudos

Hi Experts,

We are trying to migrate webdynpro java projects from NW 7.01 to NW 7.5.

The original project was a webdynpro project. So I have converted to Development Component. Resolved all the compilation errors. Then migrated using the 'cheat sheet available'. The component is now successfully migrated. This is a local DC as we don't have NWDI in the landscape.

The project is not having any errors during compilation. But when I build the DC, I'm getting lot of errors saying some of the classes are not recognized. All the classes listed in the error log are from various external jars. I have maintained all, the jars in Lib folder and maintained them as External Libraries to the project. Also I tried as an alternative by creating an external library dc with all the required jars, and another ear dc as well and added both of them as dependencies to the webdynpro component.

The DC is not showing any errors during compilation but only at build time it is showing those errors and also showing the DC status as 'Dirty, Rebuild needed'

Has anyone encountered this kind of an issue before? Can anyone throw some light on this.

Java Build Path External Libraries:

Dependency tab of WebDynpro DC with external library DC and ear added as dependencies:

Build Log:


[javac] Compiling 109 source files to C:\Users\709547\workspace_29Jul_2016.jdi\LocalDevelopment\t\7BB67A5B3E3A7278844CF757625A4991\classes

[javac] ERROR: C:\Users\709547\workspace_29Jul_2016.jdi\LocalDevelopment\t\7BB67A5B3E3A7278844CF757625A4991\gen_wdp\packages\com\asml\barcoding\comp\wdp\IPublicBarcodingComp.java:6349: error: package org.apache.axis does not exist

     [javac] ERROR:   java.lang.String getAxisFaultMessage( org.apache.axis.AxisFault elemAxisFault );

     [javac] ERROR:                                                        ^

[javac] ERROR: C:\Users\709547\workspace_29Jul_2016.jdi\LocalDevelopment\t\7BB67A5B3E3A7278844CF757625A4991\gen_wdp\packages\com\asml\barcoding\comp\BarcodingComp.java:34: error: package org.apache.axis.utils does not exist

     [javac] ERROR: import org.apache.axis.utils.XMLUtils;

     [javac] ERROR:                             ^

[javac] ERROR: C:\Users\709547\workspace_29Jul_2016.jdi\LocalDevelopment\t\7BB67A5B3E3A7278844CF757625A4991\gen_wdp\packages\com\asml\barcoding\comp\wdp\InternalBarcodingComp.java:546: error: package org.apache.axis does not exist

     [javac] ERROR:   public java.lang.String getAxisFaultMessage( org.apache.axis.AxisFault _elemAxisFault ) {

     [javac] ERROR:                                                               ^

[javac] ERROR: C:\Users\709547\workspace_29Jul_2016.jdi\LocalDevelopment\t\7BB67A5B3E3A7278844CF757625A4991\gen_wdp\packages\com\asml\barcoding\comp\SupplierNameCust.java:22: error: package javax.xml.rpc does not exist

     [javac] ERROR: import javax.xml.rpc.ServiceException;

     [javac] ERROR:                     ^

[javac] ERROR: C:\Users\709547\workspace_29Jul_2016.jdi\LocalDevelopment\t\7BB67A5B3E3A7278844CF757625A4991\gen_wdp\packages\com\asml\barcoding\comp\SupplierNameCust.java:24: error: package org.apache.axis does not exist

     [javac] ERROR: import org.apache.axis.AxisFault;

     [javac] ERROR:                       ^

[javac] ERROR: C:\Users\709547\workspace_29Jul_2016.jdi\LocalDevelopment\t\7BB67A5B3E3A7278844CF757625A4991\gen_wdp\packages\com\asml\barcoding\comp\SupplierNameCust.java:29: error: package com.asml.www.schemas.Barcode does not exist

     [javac] ERROR: import com.asml.www.schemas.Barcode.ExceptionDetail;

     [javac] ERROR:                                    ^

[javac] ERROR: C:\Users\709547\workspace_29Jul_2016.jdi\LocalDevelopment\t\7BB67A5B3E3A7278844CF757625A4991\gen_wdp\packages\com\asml\barcoding\comp\SupplierNameCust.java:30: error: package com.asml.www.schemas.Barcode does not exist

     [javac] ERROR: import com.asml.www.schemas.Barcode.RootSupplier;

     [javac] ERROR:                                    ^

[javac] ERROR: C:\Users\709547\workspace_29Jul_2016.jdi\LocalDevelopment\t\7BB67A5B3E3A7278844CF757625A4991\gen_wdp\packages\com\asml\barcoding\comp\SupplierNameCust.java:31: error: package com.asml.www.schemas.Barcode does not exist

     [javac] ERROR: import com.asml.www.schemas.Barcode.SupplierPayload;

     [javac] ERROR:                                    ^

[javac] ERROR: C:\Users\709547\workspace_29Jul_2016.jdi\LocalDevelopment\t\7BB67A5B3E3A7278844CF757625A4991\gen_wdp\packages\com\asml\barcoding\comp\SupplierNameCust.java:32: error: package com.asml.www.schemas.Barcode does not exist

     [javac] ERROR: import com.asml.www.schemas.Barcode.SupplierRecords;

     [javac] ERROR:                                    ^

[javac] ERROR: C:\Users\709547\workspace_29Jul_2016.jdi\LocalDevelopment\t\7BB67A5B3E3A7278844CF757625A4991\gen_wdp\packages\com\asml\barcoding\comp\SupplierNameCust.java:33: error: package com.asml.www.schemas.Barcode does not exist

     [javac] ERROR: import com.asml.www.schemas.Barcode.SupplierServiceLocator;

     [javac] ERROR:                                    ^

[javac] ERROR: C:\Users\709547\workspace_29Jul_2016.jdi\LocalDevelopment\t\7BB67A5B3E3A7278844CF757625A4991\gen_wdp\packages\com\asml\barcoding\comp\SupplierNameCust.java:34: error: package com.asml.www.schemas.Barcode does not exist

     [javac] ERROR: import com.asml.www.schemas.Barcode.SupplierServices_PortType;

     [javac] ERROR:                                    ^

[javac] ERROR: C:\Users\709547\workspace_29Jul_2016.jdi\LocalDevelopment\t\7BB67A5B3E3A7278844CF757625A4991\gen_wdp\packages\com\asml\barcoding\comp\SupplierNameCust.java:35: error: package com.asml.www.schemas.Barcode does not exist

     [javac] ERROR: import com.asml.www.schemas.Barcode.SupplierServices_PortTypeEndpoint1BindingStub;

     [javac] ERROR:                                    ^

[javac] ERROR: C:\Users\709547\workspace_29Jul_2016.jdi\LocalDevelopment\t\7BB67A5B3E3A7278844CF757625A4991\gen_wdp\packages\com\asml\barcoding\comp\BarcodingComp.java:1637: error: package org.apache.axis does not exist

     [javac] ERROR:   public java.lang.String getAxisFaultMessage( org.apache.axis.AxisFault elemAxisFault )  {

     [javac] ERROR:                                                               ^

[javac] ERROR: C:\Users\709547\workspace_29Jul_2016.jdi\LocalDevelopment\t\7BB67A5B3E3A7278844CF757625A4991\gen_wdp\packages\com\asml\barcoding\comp\CreateandPrintCust.java:22: error: package javax.xml.rpc does not exist

     [javac] ERROR: import javax.xml.rpc.ServiceException;

     [javac] ERROR:                     ^

[javac] ERROR: C:\Users\709547\workspace_29Jul_2016.jdi\LocalDevelopment\t\7BB67A5B3E3A7278844CF757625A4991\gen_wdp\packages\com\asml\barcoding\comp\CreateandPrintCust.java:24: error: package org.apache.axis does not exist

     [javac] ERROR: import org.apache.axis.AxisFault;

     [javac] ERROR:                       ^

[javac] ERROR: C:\Users\709547\workspace_29Jul_2016.jdi\LocalDevelopment\t\7BB67A5B3E3A7278844CF757625A4991\gen_wdp\packages\com\asml\barcoding\comp\CreateandPrintCust.java:29: error: package com.asml.www.schemas.Barcode does not exist

     [javac] ERROR: import com.asml.www.schemas.Barcode.ExceptionDetail;

     [javac] ERROR:                                    ^

[javac] ERROR: C:\Users\709547\workspace_29Jul_2016.jdi\LocalDevelopment\t\7BB67A5B3E3A7278844CF757625A4991\gen_wdp\packages\com\asml\barcoding\comp\CreateandPrintCust.java:30: error: package com.asml.www.schemas.Barcode does not exist

     [javac] ERROR: import com.asml.www.schemas.Barcode.ProcessEquipmentPayload;

     [javac] ERROR:                                    ^

[javac] ERROR: C:\Users\709547\workspace_29Jul_2016.jdi\LocalDevelopment\t\7BB67A5B3E3A7278844CF757625A4991\gen_wdp\packages\com\asml\barcoding\comp\CreateandPrintCust.java:31: error: package com.asml.www.schemas.Barcode does not exist

     [javac] ERROR: import com.asml.www.schemas.Barcode.ProcessEquipmentRecords;

     [javac] ERROR:                                    ^

[javac] ERROR: C:\Users\709547\workspace_29Jul_2016.jdi\LocalDevelopment\t\7BB67A5B3E3A7278844CF757625A4991\gen_wdp\packages\com\asml\barcoding\comp\CreateandPrintCust.java:32: error: package com.asml.www.schemas.Barcode does not exist

     [javac] ERROR: import com.asml.www.schemas.Barcode.ProcessEquipmentServiceLocator;

Thanks,

Bhavya

Accepted Solutions (1)

Accepted Solutions (1)

junwu
Active Contributor
0 Kudos

for extlibdc, you need the buid time dependency.

bhavya_sri3
Participant
0 Kudos

Thanks for your reply Jun Wu.

I was able to identify the actual issue. When I was creating the public part, I have added the jars in the external library as 'publish as file' instead of 'publish as archive'. So the actual content of the jar couldn't be referenced. Once I changed it as 'publish as archive' I was able to refer the jars successfully.

Thanks,

Bhavya

Answers (0)