Custom EJB's registered but not found for compilation

Topics related to the LSPS SDK and custom development of applications.
Forum rules
Make sure every topic contains information about your LSPS version and if relevant also your server OS, client OS, database name and version, and application server name and version.
scott.warnick
 
Posts: 25
Joined: Mon Jan 16, 2017 10:26 pm

Custom EJB's registered but not found for compilation

Thu Apr 13, 2017 9:28 pm

I posted previously on this topic but I don't see the post now so I must have done something wrong.

We have registered our custom EJB's successfully and we are getting log messages that indicate they are started.

2017-04-11 16:43:22,021 INFO startup Jndi(name=ejb/AuthorizeWorkProductTask) --> Ejb(deployment-id=AuthorizeWorkProductTask)
2017-04-11 16:43:22,021 INFO startup Jndi(name=global/Launcher.EAR/automation-ejb/AuthorizeWorkProductTask!com.whitestein.lsps.engine.ExecutableTask) --> Ejb(deployment-id=AuthorizeWorkProductTask)
2017-04-11 16:43:22,045 INFO startup Jndi(name=global/Launcher.EAR/automation-ejb/AuthorizeWorkProductTask) --> Ejb(deployment-id=AuthorizeWorkProductTask)

However, when we try to upload a module that uses these EJB's they are not found so the compilation fails.

om.whitestein.lsps.engine.exception.ModelUploadException: Compilation of module BAHProcess failed: Java implementation for task AuthorizeWorkProduct not found.
Java implementation for task CreateWorkProduct not found.
Java implementation for task LookupClaimant not found.
Java implementation for task ObtainLatestWorkProduct not found.
Java implementation for task ReleasePersonLock not found.
Java implementation for task SendImmediatePayment not found.
Java implementation for task GenerateReports not found.
Java implementation for task PreAuthBAHValidations not found.
Java implementation for task ValidateCreateWorkProduct not found.
Java implementation for task InitializationTask not found.

We have checked our EJB's and the registration in ComponentServiceBean.java and they match the examples given in the LSPS 3.2 Customization Guide.

We can send a full log files on request.
We can send the full log file on request.

Roman Kubascik
 
Posts: 57
Joined: Thu Apr 16, 2015 9:05 am

Re: Custom EJB's registered but not found for compilation

Tue Apr 18, 2017 8:26 am

Hi Scott,

to answer your question I need to know your current setup.
* I know you had trouble with our embedded server so I guess you now use standalone application server, is it correct?
* Have you modified compiled EAR as recommended in our documentation? https://docs.whitestein.com/lsps/3_2/se ... #wildfly10
* Was deployment of EAR without errors?

Feel free to send me your ComponentServiceBean.java and AuthorizeWorkProduct.java (relevant part) so I can analyze it.

Regards,
Roman

scott.warnick
 
Posts: 25
Joined: Mon Jan 16, 2017 10:26 pm

Re: Custom EJB's registered but not found for compilation

Thu Apr 27, 2017 2:18 am

Hi Scott,

to answer your question I need to know your current setup.
* I know you had trouble with our embedded server so I guess you now use standalone application server, is it correct?
No. We went back to trying to use the Tomee launcher for a variety of reasons, not the least of which is we need it to run our unit tests.

* Have you modified compiled EAR as recommended in our documentation? https://docs.whitestein.com/lsps/3_2/se ... #wildfly10
No
See the preceding point

* Was deployment of EAR without errors?
With the Launcher, yes.

Feel free to send me your ComponentServiceBean.java and AuthorizeWorkProduct.java (relevant part) so I can analyze it.
The files are attached.
Attachments
BAHAuthorizeWorkProductTask.java
This is the task for the test we are trying to run
(2.45 KiB) Downloaded 128 times
ComponentServiceBean.java
All ejbs are registered
(4.79 KiB) Downloaded 159 times

Roman Kubascik
 
Posts: 57
Joined: Thu Apr 16, 2015 9:05 am

Re: Custom EJB's registered but not found for compilation

Tue May 02, 2017 9:01 am

Hi Scott,

I made modification I recommended lately and it works.
viewtopic.php?f=10&t=271&p=990#p990

I started LSPSLauncher.java, uploaded and started test model.
Both model and java code are attached.

Regards,
Roman
Attachments
TestAppAndModel.zip
Test app and model with sample custom task.
(174.15 KiB) Downloaded 131 times

Return to SDK

Who is online

Users browsing this forum: No registered users and 0 guests