weblogic.management.DeploymentException: java.lang.ClassCastException: weblogic.jndi.internal.WLEventContextImpl cannot be cast to javax.sql.DataSource

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Stack Overflow by iKilany
, 1 year ago
java.lang.ClassCastException: weblogic.jndi.internal.WLEventContextImpl cannot be cast to javax.sql.DataSource
via Stack Overflow by Rômulo Deroci da Rocha
, 1 year ago
java.lang.ClassCastException: org.jboss.weld.security.Principal$1127466021$Proxy$_$$_Weld$Proxy$ cannot be cast to javassist.util.proxy.ProxyObject
via Stack Overflow by 6006604
, 1 year ago
javax.naming.NameNotFoundException: While trying to lookup 'UsersActivityServiceBean#myapp.services.ejb.UsersActivityService' didn't find subcontext 'UsersActivityServiceBean#ca'. Resolved ''; remaining name 'UsersActivityServiceBean#myapp/services/ejb/UsersActivityService'
via Oracle Community by 0f863aa9-1f2d-460a-a451-07d995e744c4, 1 year ago
java.lang.ClassCastException: org.jboss.weld.security.Principal$1463320632$Proxy$_$$_Weld$Proxy$ cannot be cast to javassist.util.proxy.ProxyObject
weblogic.management.DeploymentException: java.lang.ClassCastException: weblogic.jndi.internal.WLEventContextImpl cannot be cast to javax.sql.DataSource
at weblogic.application.internal.BaseDeployment.throwAppException(BaseDeployment.java:123)
at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:239)
at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:61)
at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:158)
at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:61)

Users with the same issue

7 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 3 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.