I am in process of migrating a java project from weblogic 8.1 to weblogic 12c.
As per oracle document i have converted below things.
 1. Servicegen converted to jwsc task
 2. deployment descriptor has been modified
 3. Below annotations added in service implementation file
  @WebService
  @SoapBinding
  @SoapMessageHandler
After all above changes did generate war file and deployed in weblogic 12c server which throws error like below
Unable to invoke annotation processor
<BEA-160228> App merge failed your application
weblogic.utils.compiler.ToolFailureException: unable to invoke annotation processor
Code :
package com.tutorialspoint.stateless;
import com.tutorialspoint.entity.Book;
import java.util.List;
import javax.ejb.Stateless;
import javax.jws.WebMethod;
import javax.jws.WebService;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
@Stateless
@WebService(serviceName="LibraryService")
public class LibraryPersistentBean implements LibraryPersistentBeanRemote {
    
   public LibraryPersistentBean() {
   }
   @PersistenceContext(unitName="EjbComponentPU")
   private EntityManager entityManager;         
   public void addBook(Book book) {
      entityManager.persist(book);
   }    
   
   @WebMethod(operationName="getBooks")
   public List <Book> getBooks() {
      return entityManager.createQuery("From Book").getResultList();
   }
}
Solution:
Servlet mapping caused an issue in webservice.xml while migration.
<servlet-link></servlet-link>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With