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 to [Release FMW11g]
Oracle WebCenter Portal - Version to [Release 11g]
Information in this document applies to any platform.



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
2. Ran the RCU to enable Portlet Producers
3. Installed WebCenter Suite (with 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 (, 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(
at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(
at weblogic.deployment.PersistenceUnitInfoImpl.createEntityManagerFactory(
at weblogic.deployment.PersistenceUnitInfoImpl.createEntityManagerFactory(
at weblogic.deployment.PersistenceUnitInfoImpl.<init>(
Truncated. see log file for complete stacktrace


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

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