We are facing the below exception when accessing the WSDL for one of our webapps on weblogic 12c.
<Error> <HTTP> <BEA-101020> <[ServletContext#1959382202[app:mywebapp module:mywebapp path:null spec-version:3.0]] Servlet failed with an Exception
java.lang.ClassCastException: org.apache.axis2.wsdl.util.WSDLDefinitionWrapper cannot be cast to oracle.j2ee.ws.wsdl.DefinitionImpl
at oracle.j2ee.ws.wsdl.xml.WSDLWriterImpl.writeWSDL(WSDLWriterImpl.java:87)
at org.apache.axis2.description.AxisService.printDefinitionObject(AxisService.java:1085)
at org.apache.axis2.description.AxisService.printUserWSDL(AxisService.java:1112)
at org.apache.axis2.description.AxisService.printWSDL(AxisService.java:1386)
at org.apache.axis2.transport.http.ListingAgent.handleWSDLRequest(ListingAgent.java:327)
Truncated. see log file for complete stacktrace
>
When we try to hit the URL we see an error(contact the administrator) on the screen and the above exception in the logs.
Related
I am getting the following exception while trying to deploy ear file in WL 12.2.1 server. The ear gets deployed without issue in Weblogic 12.1.2. Here is the error log. Being trying to resolve this for few days without any success. Any idea why this exception comes from WebLogic packages?
<Error> <Deployer> <BEA-149265> <Failure
occurred in the execution of deployment request with ID "74520344836697" for task "0" on [partition-name: DOMAIN]. Error is: > "weblogic.management.DeploymentException: CDI deployment failure:groovy/lang/GroovyObject"
weblogic.management.DeploymentException: CDI deployment failure:groovy/lang/GroovyObject
at com.oracle.injection.integration.CDIAppDeploymentExtension.initCdi(CDIAppDeploymentExtension.java:95)
at com.oracle.injection.integration.CDIAppDeploymentExtension.activate(CDIAppDeploymentExtension.java:43)
at weblogic.application.internal.flow.AppDeploymentExtensionFlow.activate(AppDeploymentExtensionFlow.java:39)
at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:752)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:45)
Truncated. see log file for complete stacktrace
Caused By: java.lang.ClassNotFoundException: groovy.lang.GroovyObject
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:1029)
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:990)
at weblogic.utils.classloaders.GenericClassLoader.doFindClass(GenericClassLoader.java:611)
at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:543)
at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:496)
Truncated. see log file for complete stacktrace
Probably the older WLS has groovy-all-2.x.y.jar in its classpath.
That library can be found at any maven repository:
https://mvnrepository.com/artifact/org.codehaus.groovy/groovy-all/2.4.16
You must put that library in WLS classpath or inside your ear.
java.lang.NoClassDefFoundError: org/apache/commons/chain/config/ConfigParser
I deployed a Struts 1.x web application on Weblogic 9. Refer to this specific error line, it seem commons-chain-x.x.jar is missing from the build path. I tried with several different versions of commons-chain.jar (1.1 & 1.2) but not helpful. I googled about it for hours as well, can't find any solution. What's the actual issue here? Is the missing .jar actually caused the servlet to initialize properly?
p.s. I know...Struts is long outdated and no longer widely used, but for some reasons I have to. Any help over here would be appreciated.
Library:
Full error log:
Nov 9, 2018 4:00:25 PM org.apache.struts.action.ActionServlet init
SEVERE: Unable to initialize Struts ActionServlet due to an unexpected exception or error thrown, so marking the servlet as unavailable. Most likely, this is due to an incorrect or missing library dependency.
java.lang.NoClassDefFoundError: org/apache/commons/chain/config/ConfigParser
at org.apache.struts.action.ActionServlet.initChain(ActionServlet.java:1680)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:350)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:278)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:64)
at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58)
at weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:48)
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:507)
at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1723)
at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1700)
at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1620)
at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:2761)
at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:889)
at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:333)
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:117)
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:26)
at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:635)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)
at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:154)
at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:80)
at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:566)
at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:136)
at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:104)
at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:320)
at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:815)
at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1222)
at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:433)
at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:161)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:181)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:12)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:67)
at weblogic.work.ServerWorkManagerImpl$WorkAdapterImpl.run(ServerWorkManagerImpl.java:518)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
<Nov 9, 2018 4:00:25 PM SGT> <Error> <HTTP> <BEA-101216> <Servlet: "action" failed to preload on startup in Web application: "StrutsExample".
javax.servlet.UnavailableException: org/apache/commons/chain/config/ConfigParser
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:402)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:278)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
Truncated. see log file for complete stacktrace
>
With reference to this article, clear up WebLogic server cache would helps. So it did according to my issue here. I simply deleted tmp folder and the error now disappeared.
Weblogic Cache exists in $MW_HOME/user_projects/domains/ccg/servers/AdminServer/tmp
I had named my domain ccg. You can replace that with your domain name in the above path.
p.s. Folders tmp,cache and logs under the path above are safe for deletion.
HTTP Status 500 - Internal Server Error
exception
javax.servlet.ServletException: java.lang.ClassNotFoundException: sun.jdbc.odbc.JdbcOdbcDriver
root cause
java.lang.ClassNotFoundException: sun.jdbc.odbc.JdbcOdbcDriver
note The full stack traces of the exception and its root causes are available in the GlassFish Server Open Source Edition 4.0 logs.
Try to add the jar-library with the missing driver-class to the glassfish-runtime.
This is a duplicate to:
java.lang.ClassNotFoundException: sun.jdbc.odbc.JdbcOdbcDriver Exception occurring. Why?
My application is working with weblogic10.0 but in weblogic 12C it is showing following exception :
Servlet failed with an Exception
java.lang.UnsupportedOperationException
at javax.faces.context.ExternalContext.getRequestCharacterEncoding(ExternalContext.java:945)
at javax.faces.application.ViewHandler.initView(ViewHandler.java:477)
at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:115)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
at com.icesoft.faces.webapp.http.core.PageServer$1.respond(PageServer.java:25)
Truncated. see log file for complete stacktrace
can any one help me how to resolve it.
I am getting following error while starting my application:
SEVERE: Exception starting filter CSRF
java.lang.ClassNotFoundException: org.apache.catalina.filters.CsrfPreventionFilter
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
Tried to find jar for org.apache.catalina.filters.CsrfPreventionFilter on findjar.com but could not find anything.
You should check your tomcat installation, since this is a tomcat class.
http://tomcat.apache.org/tomcat-6.0-doc/config/filter.html#CSRF_Prevention_Filter