You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@xml.apache.org by Ned Wolpert <ne...@knowledgenet.com> on 2001/09/19 22:55:39 UTC
Tomcat 4.0 (Catalina) and soap 2.2
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Folks-
I'm trying to get tomcat 4.0 (just released, finally) working with soap 2.2.
(I've been using tomcat 3.2.3 just fine for some time.) During a registration, I
got the following response from Catalina:
Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Protocol;
msg=Unsupported response content type "text/html", must be: "text/xml".
Response was:
javax.servlet.ServletException: Servlet execution threw an exception
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown
Source)
at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
.....
I was calling "servlet/rpcrouter deploy" method, using a dd file that I have
been using find with tomcat 3.2.3. Does this sound familiar? None of my code
has changed between using tomcat 3.2.3 and tomcat 4.0. Is this a problem with
a) Catalina, b) Soap2.2, c) My dd file? (Shown at the bottom here.) Thanks.
dd.xml file:
<isd:service xmlns:isd="http://xml.apache.org/xml-soap/deployment"
id="urn:kn.delivery.mm">
<isd:provider type="java"
scope="Application"
methods="getServerOwners getCourses getMedia">
<isd:java class="org.mv.delivery.mm.services.ServerInfo" static="false"/>
</isd:provider>
<isd:faultListener>org.apache.soap.server.DOMFaultListener</isd:faultListener>
</isd:service>
Virtually,
Ned Wolpert <ne...@knowledgenet.com>
D08C2F45: 28E7 56CB 58AC C622 5A51 3C42 8B2B 2739 D08C 2F45
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE7qQZLiysnOdCML0URAqhgAJ9luSBIdx3R5hQEkOwOY4rxsMIuyACcDEtS
qjpubWa2KtqAEyBmO9jheOc=
=Qhq+
-----END PGP SIGNATURE-----
Re: Tomcat 4.0 (Catalina) and soap 2.2
Posted by Ned Wolpert <ne...@knowledgenet.com>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 19-Sep-2001 Rich Catlett wrote:
> Sounds like a classpath problem, I think where do you have xerces.jar
> located. should be in the lib dir of tomcat.
Likely the issue. But the question is where do I put it? In tomcat 4.0, the
classloader structure is further refined than 3.2.x. According to their faq
page:
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html#Tomcat%2
04%20and%20XML%20Parsers
they claim that the parser can lib in the WEB-INF/lib directory. (In tomcat
3.2.3, I modified the tomcat.sh program to place it in the default classpath
the shellscript builds) However, with tomcat 4.0, catalina.sh has a
bootclasspath, server/lib, common/lib, jasper and lib directory. It seems that
whenever I place the jar file within the tomcat hierarchy (or classpath) I get
the same error:
java.lang.ExceptionInInitializerError: java.lang.ClassCastException:
org.apache.crimson.jaxp.DocumentBuilderFactoryImpl
at
javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java
:152)
at
org.apache.soap.util.xml.XMLParserUtils.refreshDocumentBuilderFactory(XMLParserU
tils.java:112)
at
org.apache.soap.util.xml.XMLParserUtils.<clinit>(XMLParserUtils.java:79)
at org.apache.soap.server.ServiceManager.<init>(ServiceManager.java:83)
at
org.apache.soap.server.http.ServerHTTPUtils.getServiceManagerFromContext(ServerH
TTPUtils.java:103)
....
Which of course, means that its pulling the crimson stuff out instead of xerces.
I'm sure there is one combination I need to try, but I'm just not sure what
that is.
Virtually,
Ned Wolpert <ne...@knowledgenet.com>
D08C2F45: 28E7 56CB 58AC C622 5A51 3C42 8B2B 2739 D08C 2F45
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE7qQqPiysnOdCML0URAsFmAJ9uCcd5Z0qwIO2wUmnMs99BiPOcNgCfXI4k
BoIfCobDC4PFuhybFHLZk4g=
=FG7p
-----END PGP SIGNATURE-----
Re: Tomcat 4.0 (Catalina) and soap 2.2
Posted by Ned Wolpert <ne...@knowledgenet.com>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 19-Sep-2001 Rich Catlett wrote:
> Sounds like a classpath problem, I think where do you have xerces.jar
> located. should be in the lib dir of tomcat.
Likely the issue. But the question is where do I put it? In tomcat 4.0, the
classloader structure is further refined than 3.2.x. According to their faq
page:
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html#Tomcat%2
04%20and%20XML%20Parsers
they claim that the parser can lib in the WEB-INF/lib directory. (In tomcat
3.2.3, I modified the tomcat.sh program to place it in the default classpath
the shellscript builds) However, with tomcat 4.0, catalina.sh has a
bootclasspath, server/lib, common/lib, jasper and lib directory. It seems that
whenever I place the jar file within the tomcat hierarchy (or classpath) I get
the same error:
java.lang.ExceptionInInitializerError: java.lang.ClassCastException:
org.apache.crimson.jaxp.DocumentBuilderFactoryImpl
at
javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java
:152)
at
org.apache.soap.util.xml.XMLParserUtils.refreshDocumentBuilderFactory(XMLParserU
tils.java:112)
at
org.apache.soap.util.xml.XMLParserUtils.<clinit>(XMLParserUtils.java:79)
at org.apache.soap.server.ServiceManager.<init>(ServiceManager.java:83)
at
org.apache.soap.server.http.ServerHTTPUtils.getServiceManagerFromContext(ServerH
TTPUtils.java:103)
....
Which of course, means that its pulling the crimson stuff out instead of xerces.
I'm sure there is one combination I need to try, but I'm just not sure what
that is.
Virtually,
Ned Wolpert <ne...@knowledgenet.com>
D08C2F45: 28E7 56CB 58AC C622 5A51 3C42 8B2B 2739 D08C 2F45
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE7qQqPiysnOdCML0URAsFmAJ9uCcd5Z0qwIO2wUmnMs99BiPOcNgCfXI4k
BoIfCobDC4PFuhybFHLZk4g=
=FG7p
-----END PGP SIGNATURE-----
Re: Tomcat 4.0 (Catalina) and soap 2.2
Posted by Rich Catlett <ri...@more.net>.
Sounds like a classpath problem, I think where do you have xerces.jar
located. should be in the lib dir of tomcat.
Ned Wolpert wrote:
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>Folks-
>
> I'm trying to get tomcat 4.0 (just released, finally) working with soap 2.2.
>(I've been using tomcat 3.2.3 just fine for some time.) During a registration, I
>got the following response from Catalina:
>
>Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Protocol;
>msg=Unsupported response content type "text/html", must be: "text/xml".
>Response was:
> javax.servlet.ServletException: Servlet execution threw an exception
> at
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown
>Source)
> at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source)
> at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
> at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
>.....
>
>I was calling "servlet/rpcrouter deploy" method, using a dd file that I have
>been using find with tomcat 3.2.3. Does this sound familiar? None of my code
>has changed between using tomcat 3.2.3 and tomcat 4.0. Is this a problem with
>a) Catalina, b) Soap2.2, c) My dd file? (Shown at the bottom here.) Thanks.
>
>
>
>dd.xml file:
><isd:service xmlns:isd="http://xml.apache.org/xml-soap/deployment"
> id="urn:kn.delivery.mm">
> <isd:provider type="java"
> scope="Application"
> methods="getServerOwners getCourses getMedia">
> <isd:java class="org.mv.delivery.mm.services.ServerInfo" static="false"/>
> </isd:provider>
> <isd:faultListener>org.apache.soap.server.DOMFaultListener</isd:faultListener>
></isd:service>
>
>
>
>
>Virtually,
>Ned Wolpert <ne...@knowledgenet.com>
>
>D08C2F45: 28E7 56CB 58AC C622 5A51 3C42 8B2B 2739 D08C 2F45
>-----BEGIN PGP SIGNATURE-----
>Version: GnuPG v1.0.6 (GNU/Linux)
>Comment: For info see http://www.gnupg.org
>
>iD8DBQE7qQZLiysnOdCML0URAqhgAJ9luSBIdx3R5hQEkOwOY4rxsMIuyACcDEtS
>qjpubWa2KtqAEyBmO9jheOc=
>=Qhq+
>-----END PGP SIGNATURE-----
>
Re: Tomcat 4.0 (Catalina) and soap 2.2
Posted by Rich Catlett <ri...@more.net>.
Sounds like a classpath problem, I think where do you have xerces.jar
located. should be in the lib dir of tomcat.
Ned Wolpert wrote:
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>Folks-
>
> I'm trying to get tomcat 4.0 (just released, finally) working with soap 2.2.
>(I've been using tomcat 3.2.3 just fine for some time.) During a registration, I
>got the following response from Catalina:
>
>Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Protocol;
>msg=Unsupported response content type "text/html", must be: "text/xml".
>Response was:
> javax.servlet.ServletException: Servlet execution threw an exception
> at
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown
>Source)
> at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source)
> at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
> at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
>.....
>
>I was calling "servlet/rpcrouter deploy" method, using a dd file that I have
>been using find with tomcat 3.2.3. Does this sound familiar? None of my code
>has changed between using tomcat 3.2.3 and tomcat 4.0. Is this a problem with
>a) Catalina, b) Soap2.2, c) My dd file? (Shown at the bottom here.) Thanks.
>
>
>
>dd.xml file:
><isd:service xmlns:isd="http://xml.apache.org/xml-soap/deployment"
> id="urn:kn.delivery.mm">
> <isd:provider type="java"
> scope="Application"
> methods="getServerOwners getCourses getMedia">
> <isd:java class="org.mv.delivery.mm.services.ServerInfo" static="false"/>
> </isd:provider>
> <isd:faultListener>org.apache.soap.server.DOMFaultListener</isd:faultListener>
></isd:service>
>
>
>
>
>Virtually,
>Ned Wolpert <ne...@knowledgenet.com>
>
>D08C2F45: 28E7 56CB 58AC C622 5A51 3C42 8B2B 2739 D08C 2F45
>-----BEGIN PGP SIGNATURE-----
>Version: GnuPG v1.0.6 (GNU/Linux)
>Comment: For info see http://www.gnupg.org
>
>iD8DBQE7qQZLiysnOdCML0URAqhgAJ9luSBIdx3R5hQEkOwOY4rxsMIuyACcDEtS
>qjpubWa2KtqAEyBmO9jheOc=
>=Qhq+
>-----END PGP SIGNATURE-----
>