My Oracle Support Banner

Registering JSR-168 Portlet Built With JPA2.0 Fails With "java.lang.NoSuchMethodError" (Doc ID 1368468.1)

Last updated on MARCH 26, 2024

Applies to:

Portal - Version 11.1.1.3.0 to 11.1.1.7.0 [Release FMW11g]
Oracle WebCenter Portal - Version 11.1.1.3.0 to 11.1.1.4.0 [Release 11g]
Information in this document applies to any platform.

Symptoms


Portal 10.1.4.2.0

Developing a new portlet to be hosted on a Weblogic Server installation in the following Portlet Container server built as follows: :

1. Installed Weblogic Server 10.3.3.0
2. Ran the RCU to enable Portlet Producers
3. Installed WebCenter Suite 11.1.1.2 (with 11.1.1.3) patch.
4. Java application deployed with JPA2.0 in Hibernate

Created a JSR-168 portlet and hosted it in the above environment.
Trying to consume the portlet in Oracle Portal (10.1.4.2), the following error is shown during registration :     

ServletContext@1888339014[app:bes-wsrp module:/bes path:/bes spec-version:2.5]] Root cause of ServletException.
java.lang.VerifyError: (class: oasis/names/tc/wsrp/v1/bind/runtime/WSRP_v1_ServiceDescription_Binding_SOAP_Tie, method: invoke_getServiceDescription signature: (Loracle/j2ee/ws/server/StreamingHandlerStateV) Incompatible argument to function.



Building newly the JSR-168 ear file, then using the wsrp-predeploy tool to inject the necessary WSRP config into the ear file.  The following error is shown:

  <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '<PROVIDER_ID>' for task '136'. Error is: 'java.lang.NoSuchMethodError: javax.persistence.spi.PersistenceUnitInfo.getValidationMode()Ljavax/persistence/ValidationMode;'
java.lang.NoSuchMethodError: javax.persistence.spi.PersistenceUnitInfo.getValidationMode()Ljavax/persistence/ValidationMode;
at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:625)
at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:73)
at weblogic.deployment.PersistenceUnitInfoImpl.createEntityManagerFactory(PersistenceUnitInfoImpl.java:352)
at weblogic.deployment.PersistenceUnitInfoImpl.createEntityManagerFactory(PersistenceUnitInfoImpl.java:332)
at weblogic.deployment.PersistenceUnitInfoImpl.<init>(PersistenceUnitInfoImpl.java:134)
Truncated. see log file for complete stacktrace

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.