cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bharat Konduru (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CXF-3306) java.lang.ClassCastException: org.apache.cxf.transport.servlet.CXFServlet incompatible with javax.servlet.Servlet
Date Thu, 03 Feb 2011 19:01:29 GMT

    [ https://issues.apache.org/jira/browse/CXF-3306?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12990237#comment-12990237
] 

Bharat Konduru commented on CXF-3306:
-------------------------------------

After removing the jar it works. thanks.

> java.lang.ClassCastException: org.apache.cxf.transport.servlet.CXFServlet incompatible
with javax.servlet.Servlet
> -----------------------------------------------------------------------------------------------------------------
>
>                 Key: CXF-3306
>                 URL: https://issues.apache.org/jira/browse/CXF-3306
>             Project: CXF
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.3.1
>         Environment: IBM Websphere application server 6.1.0.31 and Java 5.0 (IBM Version)
>            Reporter: Bharat Konduru
>              Labels: CXFServlet, incompatible, javax.servlet.Servlet, with
>             Fix For: NeedMoreInfo
>
>
> I am using CXF 2.3.1. My development platform is Windows XP and IBM version of Java 5.0
(IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Windows XP x86-32 j9vmwi3223ifx-20100125 (JIT
enabled)). I am using Websphere Application Server 6.1.0.31. When I deploy the application,
it deploys successfully. But, when I try to access the service I get the following message
in the application server logs.
> the exception is 
> java.lang.ClassCastException: org.apache.cxf.transport.servlet.CXFServlet incompatible
with javax.servlet.Servlet
> Find the stack trace below:
> ------Start of DE processing------ = [2/3/11 9:58:04:936 EST] , key = java.lang.ClassCastException
com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadServlet 213
> Exception = java.lang.ClassCastException
> Source = com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadServlet
> probeid = 213
> Stack Dump = java.lang.ClassCastException: org.apache.cxf.transport.servlet.CXFServlet
incompatible with javax.servlet.Servlet
> 	at com.ibm.ws.webcontainer.servlet.ServletWrapper$1.run(ServletWrapper.java:1392)
> 	at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
> 	at com.ibm.ws.webcontainer.servlet.ServletWrapper.loadServlet(ServletWrapper.java:1387)
> 	at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.loadServlet(ServletWrapper.java:410)
> 	at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:433)
> 	at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:525)
> 	at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3548)
> 	at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:269)
> 	at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:831)
> 	at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1478)
> 	at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:133)
> 	at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458)
> 	at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387)
> 	at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:267)
> 	at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
> 	at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
> 	at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
> 	at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
> 	at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
> 	at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
> 	at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:196)
> 	at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:751)
> 	at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:881)
> 	at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1497)
> Dump of callerThis = 
> Object type = com.ibm.ws.webcontainer.servlet.ServletWrapper$1
> com.ibm.ws.webcontainer.servlet.ServletWrapper$1@3cb03cb0
> Exception = java.lang.ClassCastException
> Source = com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadServlet
> probeid = 213
> Dump of callerThis = 
> Object type = com.ibm.ws.webcontainer.servlet.ServletWrapper$1
>   val$className = org.apache.cxf.transport.servlet.CXFServlet
>   val$servletName = CXFServlet
>   this$0 = 
>     serialVersionUID = 1
>     webAppInvocationCollaborators = {}
>     tc = 
>       defaultMessageFile = com.ibm.ejs.resources.seriousMessages
>       EXTENSION_NAME_DPID = DiagnosticProvider
>       ivDumpEnabled = false
>       ivResourceBundleName = com.ibm.ws.webcontainer.resources.Messages
>       ivLogger = null
>       ivDiagnosticProviderID = null
>       anyTracingEnabled = false
>       ivLevel = 10
>       ivName = com.ibm.ws.wswebcontainer.servlet.ServletWrapper
>       ivDebugEnabled = false
>       ivEventEnabled = false
>       ivEntryEnabled = false
>       ivDetailEnabled = false
>       ivConfigEnabled = false
>       ivInfoEnabled = true
>       ivServiceEnabled = true
>       ivWarningEnabled = true
>       ivErrorEnabled = true
>       ivFatalEnabled = true
>     nls = 
>       tc = com.ibm.ejs.ras.TraceComponent@33d033d0
>       messages = null
>       baseClassPackage = com.ibm.ejs.resources
>       bundleName = com.ibm.ws.webcontainer.resources.Messages
>       bundle = com.ibm.ws.webcontainer.resources.Messages_en@67546754
>       class$com$ibm$ejs$sm$client$ui$NLS = java.lang.Class@79667966
>     connectionHandleCollaborator = 
>       tc = com.ibm.ejs.ras.TraceComponent@51c251c2
>       threadContext = com.ibm.ws.threadContext.ThreadContextImpl@63d863d8
>       disableMultiThreadConnMgmt = false
>       class$com$ibm$ws$webcontainer$collaborator$ConnectionHandleCollaborator = java.lang.Class@14de14de
>     nameSpaceCollaborator = 
>       threadContext = com.ibm.ws.threadContext.ThreadContextImpl@38843884
>     _j2eeNameFactory = com.ibm.ejs.csi.J2EENameFactoryImpl@1fec1fec
>     securityHelper = null
>     securityCollaborator = 
>       securityCollaborator = com.ibm.ws.security.web.NullWebSecurityCollaborator@42c242c2
>       lock = java.lang.Object@42724272
>       tc = com.ibm.ejs.ras.TraceComponent@42a042a0
>       _webContextRoot = CXF23onWASWeb
>       _vHostName = default_host
>       class$com$ibm$ws$webcontainer$webapp$WebAppSecurityCollaborator = java.lang.Class@5d065d06
>       class$com$ibm$wsspi$webcontainer$servlet$IServletContext = null
>     sessionSecurityIntegrationEnabled = false
>     activatedMBeanName = null
>     PARAMS_HEAD_TRACE = 
>       [0] = this.this$0.class$javax$servlet$http$HttpServletRequest
>       [1] = this.this$0.class$javax$servlet$http$HttpServletResponse
>     defaultHeadMethodInUse = true
>     defaultTraceMethodInUse = true
>     checkedForDefaultMethods = true
>     defaultTraceRequestBehavior = false
>     defaultHeadRequestBehavior = false
>     class$com$ibm$ws$wswebcontainer$servlet$ServletWrapper = 
>       serialVersionUID = 3206093459760846163
>       AllPermissionsPD = java.security.ProtectionDomain@699c699c
>       SYNTHETIC = 4096
>       ANNOTATION = 8192
>       ENUM = 16384
>       j9Version = 453640753
>       j9Config = 8314596479310233600
>       EmptyParameters = {}
>       copyMethod = java.lang.reflect.Method@75727572
>       copyField = java.lang.reflect.Method@75a275a2
>       copyConstructor = java.lang.reflect.Method@75fa75fa
>       methodParameterTypesField = java.lang.reflect.Field@75027502
>       constructorParameterTypesField = java.lang.reflect.Field@75ce75ce
>       NoArgs = {}
>       PublicKey = java.lang.Class$CacheKey@540054
>       DeclaredKey = java.lang.Class$CacheKey@5c005c
>       queue = java.lang.ref.ReferenceQueue@b6e0b6e
>     class$javax$servlet$http$HttpServletRequest = 
>       serialVersionUID = 3206093459760846163
>       AllPermissionsPD = this.this$0.class$com$ibm$ws$wswebcontainer$servlet$ServletWrapper.AllPermissionsPD
>       SYNTHETIC = 4096
>       ANNOTATION = 8192
>       ENUM = 16384
>       j9Version = 453640753
>       j9Config = 8314596479310233600
>       EmptyParameters = this.this$0.class$com$ibm$ws$wswebcontainer$servlet$ServletWrapper.EmptyParameters
>       copyMethod = this.this$0.class$com$ibm$ws$wswebcontainer$servlet$ServletWrapper.copyMethod
>       copyField = this.this$0.class$com$ibm$ws$wswebcontainer$servlet$ServletWrapper.copyField
>       copyConstructor = this.this$0.class$com$ibm$ws$wswebcontainer$servlet$ServletWrapper.copyConstructor
>       methodParameterTypesField = this.this$0.class$com$ibm$ws$wswebcontainer$servlet$ServletWrapper.methodParameterTypesField
>       constructorParameterTypesField = this.this$0.class$com$ibm$ws$wswebcontainer$servlet$ServletWrapper.constructorParameterTypesField
>       NoArgs = this.this$0.class$com$ibm$ws$wswebcontainer$servlet$ServletWrapper.NoArgs
>       PublicKey = this.this$0.class$com$ibm$ws$wswebcontainer$servlet$ServletWrapper.PublicKey
>       DeclaredKey = this.this$0.class$com$ibm$ws$wswebcontainer$servlet$ServletWrapper.DeclaredKey
>       queue = this.this$0.class$com$ibm$ws$wswebcontainer$servlet$ServletWrapper.queue
>     class$javax$servlet$http$HttpServletResponse = 
>       serialVersionUID = 3206093459760846163
>       AllPermissionsPD = this.this$0.class$com$ibm$ws$wswebcontainer$servlet$ServletWrapper.AllPermissionsPD
>       SYNTHETIC = 4096
>       ANNOTATION = 8192
>       ENUM = 16384
>       j9Version = 453640753
>       j9Config = 8314596479310233600
>       EmptyParameters = this.this$0.class$com$ibm$ws$wswebcontainer$servlet$ServletWrapper.EmptyParameters
>       copyMethod = this.this$0.class$com$ibm$ws$wswebcontainer$servlet$ServletWrapper.copyMethod
>       copyField = this.this$0.class$com$ibm$ws$wswebcontainer$servlet$ServletWrapper.copyField
>       copyConstructor = this.this$0.class$com$ibm$ws$wswebcontainer$servlet$ServletWrapper.copyConstructor
>       methodParameterTypesField = this.this$0.class$com$ibm$ws$wswebcontainer$servlet$ServletWrapper.methodParameterTypesField
>       constructorParameterTypesField = this.this$0.class$com$ibm$ws$wswebcontainer$servlet$ServletWrapper.constructorParameterTypesField
>       NoArgs = this.this$0.class$com$ibm$ws$wswebcontainer$servlet$ServletWrapper.NoArgs
>       PublicKey = this.this$0.class$com$ibm$ws$wswebcontainer$servlet$ServletWrapper.PublicKey
>       DeclaredKey = this.this$0.class$com$ibm$ws$wswebcontainer$servlet$ServletWrapper.DeclaredKey
>       queue = this.this$0.class$com$ibm$ws$wswebcontainer$servlet$ServletWrapper.queue
>     class$com$ibm$ws$webcontainer$srt$IExtendedResponse = null
>     config = null
> =======================================================================================================
> ------Start of DE processing------ = [2/3/11 9:58:04:983 EST] , key = javax.servlet.UnavailableException
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest() 302
> Exception = javax.servlet.UnavailableException
> Source = com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest()
> probeid = 302
> Stack Dump = javax.servlet.UnavailableException: SRVE0201E: Servlet [org.apache.cxf.transport.servlet.CXFServlet]:
not a servlet class
> 	at com.ibm.ws.webcontainer.servlet.ServletWrapper$1.run(ServletWrapper.java:1404)
> 	at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
> 	at com.ibm.ws.webcontainer.servlet.ServletWrapper.loadServlet(ServletWrapper.java:1387)
> 	at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.loadServlet(ServletWrapper.java:410)
> 	at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:433)
> 	at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:525)
> 	at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3548)
> 	at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:269)
> 	at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:831)
> 	at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1478)
> 	at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:133)
> 	at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458)
> 	at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387)
> 	at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:267)
> 	at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
> 	at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
> 	at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
> 	at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
> 	at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
> 	at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
> 	at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:196)
> 	at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:751)
> 	at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:881)
> 	at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1497)
> Dump of callerThis = 
> null
> Exception = javax.servlet.UnavailableException
> Source = com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest()
> probeid = 302
> Dump of callerThis = 
> null

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message