cancel
Showing results for 
Search instead for 
Did you mean: 

EJB Project Not Building in NWDS 7.3 for Adapter Module in PI 7.3

former_member201264
Active Contributor
0 Kudos

Hi Experts,

I have developed an EJB Project for an Adapter Module in NWDS.

Before Deployment, While building the Project,it is not building and not giving any error when I check in Build Folder of the Project.

But I can see physically at Build Folder in the WorkSpace, there is Class folders.

I used to the following PDFs to develop this EJB Project:

1.  How To... Create Modules for the JEE Adapter Engine

2.  How To… Create Modules for the J2EE Adapter Engine

What mey be issue and how to solve the same?

Regards,

Sreeni.

Accepted Solutions (0)

Answers (1)

Answers (1)

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

What do you see  in the console log then ? There has to be something...

Regards,

Michal Krawczyk

former_member201264
Active Contributor
0 Kudos

Hi Michale,

Please let me know where can i check Console log.

And more over please find the below jar files used here.

Regard,

Sreeni.

smavachee
Active Contributor
0 Kudos

Repeat the steps from "Add Variable" of > Java Build Path

Seems that you have missed some steps there. Cross check > Configure Build Path

Hope it helps.!

Regards,

Sunil

former_member201264
Active Contributor
0 Kudos

Hi All,

Now I was able to deploy, but when i check in JNDI Regestry , I am not getting Object Name, but in Context name I can see my JNDI name as SreeJNDI..

Because of this my adapter is giving error as below:

-------------------

Attempt to process file failed with com.sap.engine.services.jndi.persistent.exceptions720.NameNotFoundException: Object not found in lookup of SreeJNDI.

------------------------------

Please le me know what may be issue in NWDS while Developing Adapter Module?

Regards,

Sreeni.

former_member201264
Active Contributor
0 Kudos

Hi Michal,

I have Deployed and used the same in File Adapter Sender Module as below: (I did not get any log in CC Monitoring about the this newy Deployed Module).

In the above delpoyed mdule i have written the as below to set the source directory value at runtime.

Here my intension is that I have to pick the file from a source directory based on environment.

If PI server is DEV then source directory ="//myeccserver/interface/payments/Bank/ECD";.

If PI server is TEST/QA then source directory ="//myeccserver/interface/payments/Bank/ECT";.

If PI server is PROD then source directory ="//myeccserver/interface/payments/Bank/ECP";.

See the below code from EJB Module:

-----------------------------------------------------------------------------------------------

public ModuleData process(ModuleContext moduleContext, ModuleData inputModuleData) throws ModuleException{
 
Object obj = null; // Handler to get Principle data
Message msg = null; // Handler to get Message object

String sourceDirectory = null; //  sourceDirectory Name which is being processed

String sid = null;
AuditAccess  audit = null;
MessageKey key1;
  
try {
  
  obj = inputModuleData.getPrincipalData();
  msg = (Message) obj;

         MessagePropertyKey key = new MessagePropertyKey("Directory", "http://sap.com/xi/XI/System" );
         key1 = new MessageKey(msg.getMessageId(),msg.getMessageDirection());
         audit = PublicAPIAccessFactory.getPublicAPIAccess().getAuditAccess();

         sid = System.getProperty("SAPSYSTEMNAME"); 
   
         if (sid.equals("XID")){
                sourceDirectory = "//myeccserver/interface/payments/Bank/ECD";
            audit.addAuditLogEntry(key1, AuditLogStatus.SUCCESS, " sourceDirectory: "+sourceDirectory);
         }
  else{
        
          if (sid.equals("XIT")){
             sourceDirectory = "//myeccserver/interface/payments/Bank/ECT";
             audit.addAuditLogEntry(key1, AuditLogStatus.SUCCESS, " sourceDirectory : "+sourceDirectory);
         }
  else{
          if (sid.equals("XIP")){
             sourceDirectory = "//myeccserver/interface/payments/Bank/ECP";
             audit.addAuditLogEntry(key1, AuditLogStatus.SUCCESS, " sourceDirectory : "+sourceDirectory);
         }
        }
        }
        
       msg.setMessageProperty(key,sourceDirectory);

        inputModuleData.setPrincipalData(msg);

    } catch (Exception e) {
        throw new ModuleException(e);
    }

    return inputModuleData;
}

-----------------------------------------------------------------------------------------------

Pleat me know if any thing missed the above.

Regards,

Sreeni.

former_member201264
Active Contributor
0 Kudos

Hi Experts,

I tried the same in other channel as well but it is recognizing the new adapter module.

Please verify the configuration in the above screenshot and help me further what may be the wrong.

Sreeni.

former_member201264
Active Contributor
0 Kudos

Hi Again,

I got the below error for my CC and Log Veiwer in NWA, but not able to trace the problem.

Please any body got this kind of error.

I think Michal and Raja Sekhar and some other developed these kind of modules.

Here the custom adapter module have to call first, then only other standerd modules, but i can not see trace in the log about the custome adapter module.

Please suggest me further.

Regards,

Sreeni.

yasha_dubey
Participant
0 Kudos

Hi Kancham,

I am facing the same issue. No objects under build.

Can you tell me how did you resolve your issue?

Thanks,
Pragya

suman_sourabh
Participant
0 Kudos

Hi Pragya,

This may be the issue with the view perspective you have selected in NWDS.
You can delete the unwanted folder structures under the build as per the document by directly going to the file path in your computer, and then refresh the project in NWDS. This will do the same thing as given in the How-To-Guide.

hope  this will help.

Regards,
Suman

yasha_dubey
Participant
0 Kudos

Thanks a  lot Suman