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 "Nathaniel G. Auvil" <na...@yahoo.com> on 2005/02/21 23:16:58 UTC
Weblogic 8.1 sp4 NullPointer
I am trying to deploy the demo Axis Services web app to weblogic 8.1 sp4 and having issues. I
followed the instructions on the site to prefer the war local classes by adding the following to
weblogic.xml:
<weblogic-web-app>
<container-descriptor>
<prefer-web-inf-classes>true</prefer-web-inf-classes>
</container-descriptor>
</weblogic-web-app>
but anytime i try to get the WSDL from any of the samples i get the following Exception:
- Exception:
java.lang.NullPointerException
at
weblogic.xml.jaxp.ChainingEntityResolver.popEntityResolver(ChainingEntityResolver.java:61)
at
weblogic.xml.jaxp.RegistryDocumentBuilder.setEntityResolver(RegistryDocumentBuilder.java:168)
at org.apache.axis.utils.XMLUtils.releaseDocumentBuilder(XMLUtils.java:235)
at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:312)
at org.apache.axis.utils.XMLUtils.StringToElement(XMLUtils.java:485)
at org.apache.axis.AxisFault.addFaultDetail(AxisFault.java:654)
at org.apache.axis.AxisFault.addHostname(AxisFault.java:888)
at org.apache.axis.AxisFault.addHostnameIfNeeded(AxisFault.java:877)
at org.apache.axis.AxisFault.initFromException(AxisFault.java:280)
at org.apache.axis.AxisFault.<init>(AxisFault.java:181)
at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
at org.apache.axis.server.AxisServer.generateWSDL(AxisServer.java:487)
at org.apache.axis.transport.http.QSWSDLHandler.invoke(QSWSDLHandler.java:62)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.axis.transport.http.AxisServlet.processQuery(AxisServlet.java:1132)
at org.apache.axis.transport.http.AxisServlet.doGet(AxisServlet.java:233)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:301)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6718)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
Can anyone offer suggestions?
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Re: Weblogic 8.1 sp4 NullPointer
Posted by "Nathaniel G. Auvil" <na...@yahoo.com>.
That works! Thanks for your help.
--- Korhan G�lseven <gk...@gmail.com> wrote:
> Hi
>
> using xerces instead of what comes in weblogic.jar solved the problem
> for me with wls 8.1 sp3:
>
> -Put xml-apis.jar and xercesImpl.jar into <axis>/web-inf/lib
> -Go http://localhost:7001/axis/happyaxis.jsp
> Now you should see that xerces is in use:
> XML Parser:org.apache.xerces.jaxp.SAXParserImpl
>
>
> Korhan
>
>
> On Mon, 21 Feb 2005 14:16:58 -0800 (PST), Nathaniel G. Auvil
> <na...@yahoo.com> wrote:
> >
> > I am trying to deploy the demo Axis Services web app to weblogic 8.1 sp4 and having issues. I
> > followed the instructions on the site to prefer the war local classes by adding the following
> to
> > weblogic.xml:
> >
> > <weblogic-web-app>
> > <container-descriptor>
> > <prefer-web-inf-classes>true</prefer-web-inf-classes>
> > </container-descriptor>
> > </weblogic-web-app>
> >
> > but anytime i try to get the WSDL from any of the samples i get the following Exception:
> >
> > - Exception:
> > java.lang.NullPointerException
> > at
> > weblogic.xml.jaxp.ChainingEntityResolver.popEntityResolver(ChainingEntityResolver.java:61)
> > at
> > weblogic.xml.jaxp.RegistryDocumentBuilder.setEntityResolver(RegistryDocumentBuilder.java:168)
> > at org.apache.axis.utils.XMLUtils.releaseDocumentBuilder(XMLUtils.java:235)
> > at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:312)
> > at org.apache.axis.utils.XMLUtils.StringToElement(XMLUtils.java:485)
> > at org.apache.axis.AxisFault.addFaultDetail(AxisFault.java:654)
> > at org.apache.axis.AxisFault.addHostname(AxisFault.java:888)
> > at org.apache.axis.AxisFault.addHostnameIfNeeded(AxisFault.java:877)
> > at org.apache.axis.AxisFault.initFromException(AxisFault.java:280)
> > at org.apache.axis.AxisFault.<init>(AxisFault.java:181)
> > at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
> > at org.apache.axis.server.AxisServer.generateWSDL(AxisServer.java:487)
> > at org.apache.axis.transport.http.QSWSDLHandler.invoke(QSWSDLHandler.java:62)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> > at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> > at java.lang.reflect.Method.invoke(Method.java:324)
> > at org.apache.axis.transport.http.AxisServlet.processQuery(AxisServlet.java:1132)
> > at org.apache.axis.transport.http.AxisServlet.doGet(AxisServlet.java:233)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> > at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:301)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > at
> >
> weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
> > at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
> > at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
> > at
> >
>
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6718)
> > at
> weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
> > at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
> > at
> > weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)
> > at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
> > at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
> > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
> >
> > Can anyone offer suggestions?
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
> >
>
__________________________________
Do you Yahoo!?
The all-new My Yahoo! - What will yours do?
http://my.yahoo.com
Re: Weblogic 8.1 sp4 NullPointer
Posted by Korhan Gülseven <gk...@gmail.com>.
Hi
using xerces instead of what comes in weblogic.jar solved the problem
for me with wls 8.1 sp3:
-Put xml-apis.jar and xercesImpl.jar into <axis>/web-inf/lib
-Go http://localhost:7001/axis/happyaxis.jsp
Now you should see that xerces is in use:
XML Parser:org.apache.xerces.jaxp.SAXParserImpl
Korhan
On Mon, 21 Feb 2005 14:16:58 -0800 (PST), Nathaniel G. Auvil
<na...@yahoo.com> wrote:
>
> I am trying to deploy the demo Axis Services web app to weblogic 8.1 sp4 and having issues. I
> followed the instructions on the site to prefer the war local classes by adding the following to
> weblogic.xml:
>
> <weblogic-web-app>
> <container-descriptor>
> <prefer-web-inf-classes>true</prefer-web-inf-classes>
> </container-descriptor>
> </weblogic-web-app>
>
> but anytime i try to get the WSDL from any of the samples i get the following Exception:
>
> - Exception:
> java.lang.NullPointerException
> at
> weblogic.xml.jaxp.ChainingEntityResolver.popEntityResolver(ChainingEntityResolver.java:61)
> at
> weblogic.xml.jaxp.RegistryDocumentBuilder.setEntityResolver(RegistryDocumentBuilder.java:168)
> at org.apache.axis.utils.XMLUtils.releaseDocumentBuilder(XMLUtils.java:235)
> at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:312)
> at org.apache.axis.utils.XMLUtils.StringToElement(XMLUtils.java:485)
> at org.apache.axis.AxisFault.addFaultDetail(AxisFault.java:654)
> at org.apache.axis.AxisFault.addHostname(AxisFault.java:888)
> at org.apache.axis.AxisFault.addHostnameIfNeeded(AxisFault.java:877)
> at org.apache.axis.AxisFault.initFromException(AxisFault.java:280)
> at org.apache.axis.AxisFault.<init>(AxisFault.java:181)
> at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
> at org.apache.axis.server.AxisServer.generateWSDL(AxisServer.java:487)
> at org.apache.axis.transport.http.QSWSDLHandler.invoke(QSWSDLHandler.java:62)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at org.apache.axis.transport.http.AxisServlet.processQuery(AxisServlet.java:1132)
> at org.apache.axis.transport.http.AxisServlet.doGet(AxisServlet.java:233)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:301)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
> at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
> at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
> at
> weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6718)
> at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
> at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
> at
> weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)
> at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
> at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
>
> Can anyone offer suggestions?
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>