You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by MW...@debitel.dk on 2006/03/08 10:21:43 UTC
Could not deserialize the context attribute "AxisEngine"
Hi
I am currently doing a webservice using wsdl first with Axis 1.3 on BEA
Weblogic 8,1.2. In my wsdl response i get the following in my comming
production enviornment, while in developement it works fine.
<?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xmlns:xsd='http://www.w3.org/2001/XMLSchema'
xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/'>
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Server.userException</faultcode>
<faultstring>java.lang.ClassCastException</faultstring>
<detail>
<ns1:hostname
xmlns:ns1='http://xml.apache.org/axis/'>dtdk11pdmdbea01</ns1:hostname>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
I seem to have found the cause, which apprently originates from some error
concerning getting a context attribute out of the servletcontex, see
stacktrace below. I have startede to consider to modify the
AxisServletBase.java to to handle this no nice exception. Urgent help is
neded.
regards
Max Winther
-path=/DangaardWS)] could not deserialize the context attribute
"AxisEngine"
java.io.NotSerializableException:
org.apache.axis.configuration.FileProvider
at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054)
at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1330)
at
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1302)
at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1245)
at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
at
weblogic.servlet.internal.AttributeWrapper.convertObjectToBytes(AttributeWrapper.java:136)
at
weblogic.servlet.internal.AttributeWrapper.getObject(AttributeWrapper.java:112)
at
weblogic.servlet.internal.AttributeWrapper.getObject(AttributeWrapper.java:69)
at
weblogic.servlet.internal.WebAppServletContext.getAttribute(WebAppServletContext.java:619)
at
org.apache.axis.transport.http.AxisServletBase.retrieveEngine(AxisServletBase.java:239)
at
org.apache.axis.transport.http.AxisServletBase.getEngine(AxisServletBase.java:170)
at
org.apache.axis.transport.http.AxisServletBase.getOption(AxisServletBase.java:396)
at
org.apache.axis.transport.http.AxisServletBase.init(AxisServletBase.java:112)
at
org.apache.axis.transport.http.AxisServlet.init(AxisServlet.java:156)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at
weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run(ServletStubImpl.java:993)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at
weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:869)
at
weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:848)
at
weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:787)
at
weblogic.servlet.internal.ServletStubImpl.reloadServlet(ServletStubImpl.java:705)
at
weblogic.servlet.internal.ServletStubImpl.checkForReload(ServletStubImpl.java:685)
at
weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:522)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:362)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6350)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)