The community will be in read-only from Tuesday 11:59pm (PST) to Wednesday 7:30am (PST)
The community will be in read-only from Tuesday 11:59pm (PST) to Wednesday 7:30am (PST)
Service Desk Practitioners Forum
cancel
Showing results for 
Search instead for 
Did you mean: 

SP21 Web api build error

Highlighted
Metin INAN_1
Collector

SP21 Web api build error

Hi,

We are compiling web-api.jar (via instructions supplied by HP) as we add new custom fields.Now when we try to re-build,we get following error:

[javac] C:\IDEA\WebAPI\web-api\api-client\src\com\hp\itsm\api\interfaces\ICo
nfigurationItem.java:286: cannot resolve symbol
[javac] symbol : class ICustom_code_100
[javac] location: interface com.hp.itsm.api.interfaces.IConfigurationItem
[javac] public ICustom_code_100 getCI_category();
[javac] ^
[javac] C:\IDEA\WebAPI\web-api\api-client\src\com\hp\itsm\api\interfaces\ICo
nfigurationItem.java:291: cannot resolve symbol
[javac] symbol : class ICustom_code_100
[javac] location: interface com.hp.itsm.api.interfaces.IConfigurationItem
[javac] public void setCI_category(ICustom_code_100 value);
[javac] ^
[javac] C:\IDEA\WebAPI\web-api\api-client\src\com\hp\itsm\api\ApiSDSession.j
ava:255: cannot resolve symbol
[javac] symbol : class ICustom_code_100Home
[javac] location: class com.hp.itsm.api.ApiSDSession
[javac] public ICustom_code_100Home getCustom_code_100Home() {
[javac] ^
[javac] C:\IDEA\WebAPI\web-api\api-client\src\com\hp\itsm\api\interfaces\ICo
nfigurationItemHome.java:398: cannot resolve symbol
[javac] symbol : class ICustom_code_100
[javac] location: interface com.hp.itsm.api.interfaces.IConfigurationItemHom
e
[javac] public IConfigurationItem[] searchOnCI_category(ICustom_code_100
value);
[javac] ^
[javac] C:\IDEA\WebAPI\web-api\api-client\src\com\hp\itsm\api\interfaces\ICo
nfigurationItemWhere.java:344: cannot resolve symbol
[javac] symbol : class ICustom_code_100
[javac] location: interface com.hp.itsm.api.interfaces.IConfigurationItemWhe
re
[javac] public void addCriteriumOnCI_category(ICustom_code_100 value);
[javac] ^
[javac] C:\IDEA\WebAPI\web-api\api-client\src\com\hp\itsm\api\impl\ApiConfig
urationItem.java:392: cannot resolve symbol
[javac] symbol : class ICustom_code_100
[javac] location: class com.hp.itsm.api.impl.ApiConfigurationItem
[javac] public ICustom_code_100 getCI_category() {
[javac] ^
[javac] C:\IDEA\WebAPI\web-api\api-client\src\com\hp\itsm\api\impl\ApiConfig
urationItem.java:400: cannot resolve symbol
[javac] symbol : class ICustom_code_100
[javac] location: class com.hp.itsm.api.impl.ApiConfigurationItem
[javac] public void setCI_category(ICustom_code_100 value) {
[javac] ^
[javac] C:\IDEA\WebAPI\web-api\api-client\src\com\hp\itsm\api\impl\ApiConfig
urationItemHome.java:585: cannot resolve symbol
[javac] symbol : class ICustom_code_100
[javac] location: class com.hp.itsm.api.impl.ApiConfigurationItemHome
[javac] public IConfigurationItem[] searchOnCI_category(ICustom_code_100
value) {
[javac] ^
[javac] C:\IDEA\WebAPI\web-api\api-client\src\com\hp\itsm\api\impl\ApiConfig
urationItemWhere.java:460: cannot resolve symbol
[javac] symbol : class ICustom_code_100
[javac] location: class com.hp.itsm.api.impl.ApiConfigurationItemWhere
[javac] public void addCriteriumOnCI_category(ICustom_code_100 value) {
[javac] ^
[javac] C:\IDEA\WebAPI\web-api\api-client\src\com\hp\itsm\api\ApiSDSession.j
ava:256: cannot resolve symbol
[javac] symbol : class ICustom_code_100Home
[javac] location: class com.hp.itsm.api.ApiSDSession
[javac] return (ICustom_code_100Home) getHome("com.hp.itsm.api.i
mpl.ApiCustom_code_100Home");
[javac] ^
[javac] C:\IDEA\WebAPI\web-api\api-client\src\com\hp\itsm\api\impl\ApiConfig
urationItem.java:394: cannot resolve symbol
[javac] symbol : class ICustom_code_100
[javac] location: class com.hp.itsm.api.impl.ApiConfigurationItem
[javac] return (ICustom_code_100) getRefValue(281766364912444L,
subHome);
[javac] ^
[javac] 11 errors

BUILD FAILED
C:\IDEA\WebAPI\build.xml:65: Compile failed; see the compiler error output for d
etails.

We need urgent help.

Thanks,
1 REPLY
Selvarajan
Regular Collector

Re: SP21 Web api build error

Hi,
Before compiling, after you generate WEB API,check all the classes (Custom_code_100) are available in the C:\tmp\WebAPI\web-api\api-client\src\com\hp\itsm\api\interfaces.
Then try to build the webapi.jar file.
//Add this to "OnDomLoad" event