You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@santuario.apache.org by Bryan Field-Elliot <br...@netmeme.org> on 2003/02/05 18:40:37 UTC
Deploying on Resin
We have developed and successfully deployed an application using
XML-Security on Tomcat.
Now we are tasked with testing this same application on Resin, which
(admittedly) we have a lot less experience upon.
Our environment is RH Linux 8.0, Sun JDK 1.3.1-06, and Resin 2.1.6.
xmlsec.jar didn't seem to be happy existing in our servlet's WEB-INF/lib
directory, so we moved it to Resin's common lib directory. As a
consequence, we also had to replace Resin's common lib version of
Xerces, with the latest Xerces and Xalan (Xerces-J 2.2.1 and Xalan-J
2.4.1). We also copied xmlsec.jar and log4j.jar into Resin's common lib
directory.
Now, upon loading, we're getting a lot of complaint from xmlsec.jar, as
follows. Any tips would be appreciated.
The line in question which is triggering all this is:
(exception stack trace) at
org.sourceid.sso.servlets.Manager.<clinit>(Manager.java:62)
Here is the code at line 62:
static {
org.apache.xml.security.Init.init();
}
Thank you,
Bryan
[main] FATAL org.apache.xml.security.Init - Cannot register URI to
class because this class does not exist in CLASSPATH
[main] FATAL org.apache.xml.security.Init - Cannot register URI to
class because this class does not exist in CLASSPATH
[main] FATAL org.apache.xml.security.Init - Cannot register URI to
class because this class does not exist in CLASSPATH
[main] FATAL org.apache.xml.security.Init - Cannot register URI to
class because this class does not exist in CLASSPATH
[main] FATAL org.apache.xml.security.Init - Cannot register URI to
class because this class does not exist in CLASSPATH
[main] FATAL org.apache.xml.security.Init - Cannot register URI to
class because this class does not exist in CLASSPATH
[main] FATAL org.apache.xml.security.Init - Cannot register URI to
class because this class does not exist in CLASSPATH
[main] FATAL org.apache.xml.security.Init - Cannot register URI to
class because this class does not exist in CLASSPATH
[main] FATAL org.apache.xml.security.Init - Cannot register URI to
class because this class does not exist in CLASSPATH
[main] FATAL org.apache.xml.security.Init - Cannot register URI to
class because this class does not exist in CLASSPATH
[main] FATAL org.apache.xml.security.Init - Cannot register URI to
class because this class does not exist in CLASSPATH
[main] FATAL org.apache.xml.security.Init - Cannot register URI to
class because this class does not exist in CLASSPATH
[main] FATAL org.apache.xml.security.Init - Cannot register URI to
class because this class does not exist in CLASSPATH
[main] FATAL org.apache.xml.security.Init - Cannot register URI to
class because this class does not exist in CLASSPATH
[main] FATAL org.apache.xml.security.Init - Cannot register URI to
class because this class does not exist in CLASSPATH
[main] FATAL org.apache.xml.security.Init - Cannot register URI to
class because this class does not exist in CLASSPATH
[main] FATAL org.apache.xml.security.Init - Cannot register URI to
class because this class does not exist in CLASSPATH
[main] FATAL org.apache.xml.security.Init - Cannot register URI to
class because this class does not exist in CLASSPATH
[main] FATAL org.apache.xml.security.Init - Cannot register URI to
class because this class does not exist in CLASSPATH
[main] FATAL org.apache.xml.security.Init - Cannot register URI to
class because this class does not exist in CLASSPATH
[main] FATAL org.apache.xml.security.Init - Cannot register URI to
class because this class does not exist in CLASSPATH
[main] FATAL org.apache.xml.security.Init - Cannot register URI to
class because this class does not exist in CLASSPATH
[main] FATAL org.apache.xml.security.Init - Cannot register URI to
class because this class does not exist in CLASSPATH
[main] FATAL org.apache.xml.security.Init - Cannot register URI to
class because this class does not exist in CLASSPATH
[main] FATAL org.apache.xml.security.Init - Cannot register URI to
class because this class does not exist in CLASSPATH
[main] FATAL org.apache.xml.security.Init - Cannot register URI to
class because this class does not exist in CLASSPATH
[main] FATAL org.apache.xml.security.Init - Cannot register URI to
class because this class does not exist in CLASSPATH
[main] FATAL org.apache.xml.security.Init - Cannot register URI to
class because this class does not exist in CLASSPATH
[main] FATAL org.apache.xml.security.Init - Cannot register URI to
class because this class does not exist in CLASSPATH
[main] FATAL org.apache.xml.security.Init - Cannot register URI to
class because this class does not exist in CLASSPATH
[main] FATAL org.apache.xml.security.Init - Cannot register URI to
class because this class does not exist in CLASSPATH
[main] FATAL org.apache.xml.security.Init - Cannot register URI to
class because this class does not exist in CLASSPATH
[main] FATAL org.apache.xml.security.Init - Cannot register URI to
class because this class does not exist in CLASSPATH
[main] FATAL org.apache.xml.security.Init - Cannot register URI to
class because this class does not exist in CLASSPATH
[main] FATAL org.apache.xml.security.Init - Cannot register URI to
class because this class does not exist in CLASSPATH
[main] FATAL org.apache.xml.security.Init - Cannot register URI to
class because this class does not exist in CLASSPATH
[main] FATAL org.apache.xml.security.Init - Cannot register URI to
class because this class does not exist in CLASSPATH
[main] FATAL org.apache.xml.security.Init - Cannot register URI to
class because this class does not exist in CLASSPATH
[main] FATAL org.apache.xml.security.Init - Cannot register URI to
class because this class does not exist in CLASSPATH
[main] FATAL org.apache.xml.security.Init - Cannot register URI to
class because this class does not exist in CLASSPATH
[main] FATAL org.apache.xml.security.Init - Cannot register URI to
class because this class does not exist in CLASSPATH
[main] FATAL org.apache.xml.security.Init - Cannot register URI to
class because this class does not exist in CLASSPATH
[main] FATAL org.apache.xml.security.Init - Cannot register URI to
class because this class does not exist in CLASSPATH
[main] FATAL org.apache.xml.security.Init - Cannot register URI to
class because this class does not exist in CLASSPATH
[main] FATAL org.apache.xml.security.Init - Cannot register URI to
class because this class does not exist in CLASSPATH
[main] FATAL org.apache.xml.security.Init - Cannot register URI to
class because this class does not exist in CLASSPATH
[main] FATAL org.apache.xml.security.Init - Cannot register URI to
class because this class does not exist in CLASSPATH
[main] FATAL org.apache.xml.security.Init - Cannot register URI to
class because this class does not exist in CLASSPATH
[main] FATAL org.apache.xml.security.Init - Cannot register URI to
class because this class does not exist in CLASSPATH
[main] FATAL org.apache.xml.security.Init - Cannot register URI to
class because this class does not exist in CLASSPATH
[main] FATAL org.apache.xml.security.Init - Cannot register URI to
class because this class does not exist in CLASSPATH
[main] FATAL org.apache.xml.security.Init - Cannot register URI to
class because this class does not exist in CLASSPATH
[main] FATAL org.apache.xml.security.Init - Cannot register URI to
class because this class does not exist in CLASSPATH
[main] FATAL org.apache.xml.security.Init - Cannot register URI to
class because this class does not exist in CLASSPATH
[main] FATAL org.apache.xml.security.Init - Cannot register URI to
class because this class does not exist in CLASSPATH
[main] FATAL org.apache.xml.security.Init - Cannot register URI to
class because this class does not exist in CLASSPATH
[main] ERROR org.apache.xml.security.Init - Already registered
[main] ERROR org.apache.xml.security.Init - Already registered
org.apache.xml.security.keys.ContentHandlerAlreadyRegisteredException:
URI {} already assigned to class
at
org.apache.xml.security.Init.registerKeyInfoContentHandler(Init.java:677)
at org.apache.xml.security.Init.init(Init.java:451)
at org.sourceid.sso.servlets.Manager.<clinit>(Manager.java:62)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:232)
at java.beans.Beans.instantiate(Beans.java:202)
at java.beans.Beans.instantiate(Beans.java:46)
at
com.caucho.server.http.Application.instantiateServlet(Application.java:3170)
at
com.caucho.server.http.Application.createServlet(Application.java:3093)
at
com.caucho.server.http.Application.loadServlet(Application.java:3054)
at
com.caucho.server.http.Application.initServlets(Application.java:1914)
at
com.caucho.server.http.Application.init(Application.java:1827)
at
com.caucho.server.http.VirtualHost.initWars(VirtualHost.java:824)
at com.caucho.server.http.VirtualHost.init(VirtualHost.java:687)
at
com.caucho.server.http.ServletServer.initHosts(ServletServer.java:853)
at
com.caucho.server.http.ServletServer.initInternal(ServletServer.java:698)
at
com.caucho.server.http.ServletServer.init(ServletServer.java:509)
at com.caucho.server.http.ResinServer.init(ResinServer.java:377)
at
com.caucho.server.http.ResinServer.main(ResinServer.java:1137)
at com.caucho.server.http.HttpServer.main(HttpServer.java:103)
[main] FATAL org.apache.xml.security.Init - Bad:
org.apache.xml.security.keys.ContentHandlerAlreadyRegisteredException:
URI {} already assigned to class
at
org.apache.xml.security.Init.registerKeyInfoContentHandler(Init.java:677)
at org.apache.xml.security.Init.init(Init.java:451)
at org.sourceid.sso.servlets.Manager.<clinit>(Manager.java:62)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:232)
at java.beans.Beans.instantiate(Beans.java:202)
at java.beans.Beans.instantiate(Beans.java:46)
at
com.caucho.server.http.Application.instantiateServlet(Application.java:3170)
at
com.caucho.server.http.Application.createServlet(Application.java:3093)
at
com.caucho.server.http.Application.loadServlet(Application.java:3054)
at
com.caucho.server.http.Application.initServlets(Application.java:1914)
at
com.caucho.server.http.Application.init(Application.java:1827)
at
com.caucho.server.http.VirtualHost.initWars(VirtualHost.java:824)
at com.caucho.server.http.VirtualHost.init(VirtualHost.java:687)
at
com.caucho.server.http.ServletServer.initHosts(ServletServer.java:853)
at
com.caucho.server.http.ServletServer.initInternal(ServletServer.java:698)
at
com.caucho.server.http.ServletServer.init(ServletServer.java:509)
at com.caucho.server.http.ResinServer.init(ResinServer.java:377)
at
com.caucho.server.http.ResinServer.main(ResinServer.java:1137)
at com.caucho.server.http.HttpServer.main(HttpServer.java:103)
[main] FATAL org.apache.xml.security.Init - Bad:
org.apache.xml.security.keys.ContentHandlerAlreadyRegisteredException:
URI {} already assigned to class
at
org.apache.xml.security.Init.registerKeyInfoContentHandler(Init.java:677)
at org.apache.xml.security.Init.init(Init.java:451)
at org.sourceid.sso.servlets.Manager.<clinit>(Manager.java:62)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:232)
at java.beans.Beans.instantiate(Beans.java:202)
at java.beans.Beans.instantiate(Beans.java:46)
at
com.caucho.server.http.Application.instantiateServlet(Application.java:3170)
at
com.caucho.server.http.Application.createServlet(Application.java:3093)
at
com.caucho.server.http.Application.loadServlet(Application.java:3054)
at
com.caucho.server.http.Application.initServlets(Application.java:1914)
at
com.caucho.server.http.Application.init(Application.java:1827)
at
com.caucho.server.http.VirtualHost.initWars(VirtualHost.java:824)
at com.caucho.server.http.VirtualHost.init(VirtualHost.java:687)
at
com.caucho.server.http.ServletServer.initHosts(ServletServer.java:853)
at
com.caucho.server.http.ServletServer.initInternal(ServletServer.java:698)
at
com.caucho.server.http.ServletServer.init(ServletServer.java:509)
at com.caucho.server.http.ResinServer.init(ResinServer.java:377)
at
com.caucho.server.http.ResinServer.main(ResinServer.java:1137)
at com.caucho.server.http.HttpServer.main(HttpServer.java:103)
org.apache.xml.security.keys.ContentHandlerAlreadyRegisteredException:
URI {} already assigned to class
at
org.apache.xml.security.Init.registerKeyInfoContentHandler(Init.java:677)
at org.apache.xml.security.Init.init(Init.java:451)
at org.sourceid.sso.servlets.Manager.<clinit>(Manager.java:62)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:232)
at java.beans.Beans.instantiate(Beans.java:202)
at java.beans.Beans.instantiate(Beans.java:46)
at
com.caucho.server.http.Application.instantiateServlet(Application.java:3170)
at
com.caucho.server.http.Application.createServlet(Application.java:3093)
at
com.caucho.server.http.Application.loadServlet(Application.java:3054)
at
com.caucho.server.http.Application.initServlets(Application.java:1914)
at
com.caucho.server.http.Application.init(Application.java:1827)
at
com.caucho.server.http.VirtualHost.initWars(VirtualHost.java:824)
at com.caucho.server.http.VirtualHost.init(VirtualHost.java:687)
at
com.caucho.server.http.ServletServer.initHosts(ServletServer.java:853)
at
com.caucho.server.http.ServletServer.initInternal(ServletServer.java:698)
at
com.caucho.server.http.ServletServer.init(ServletServer.java:509)
at com.caucho.server.http.ResinServer.init(ResinServer.java:377)
at
com.caucho.server.http.ResinServer.main(ResinServer.java:1137)
at com.caucho.server.http.HttpServer.main(HttpServer.java:103)
Re: Deploying on Resin
Posted by Bryan Field-Elliot <br...@netmeme.org>.
So you're saying that this message is complaining that
org.apache.xml.security.xxxxxx is not in the classpath? That would be an
odd thing for it say, given that the message itself is being generated
from another org.apache.xml.security class (Init). Clearly, xmlsec.jar
is reachable.
Do you have any recommendation as to what I might try to look for?
On Wed, 2003-02-05 at 13:17, Christian Geuer-Pollmann wrote:
This method is supposed to be called only once, e.g. in a main
method. I
don't know much about Servlets and where an appropriate place would
be.
Essentially, the Init.init() takes the mappings from the config.xml
file
and registers different algorithms in different Factory classes. For
instance, signature.Transform is the Factory for the ds:Transform
algorithms.
This "Cannot register URI to class because this class does not
exist in
CLASSPATH" is a buggy error message. It should read
Cannot register URI http://www.w3.org/... to class
org.apache.xml.sec....
because this class does not exist in CLASSPATH
Guess that the escaping for the error message is wrong so that there
is no
output WHICH class is missing. I'll check this out.
Christian
--On Mittwoch, 5. Februar 2003 12:50 -0700 Bryan Field-Elliot
<br...@netmeme.org> wrote:
> I just tried that (moving the Init() call into the Servlet init()
method,
> rather than in static class code). I am getting the same results.
Can you
> tell me what the messages mean? (e.g. what's it looking for?)
>
> Also FYI, the Init class (xml-security) is not present in your
online
> Javadocs.
>
> Thank you,
>
> Bryan
>
> On Wed, 2003-02-05 at 12:08, Christian Geuer-Pollmann wrote:
>
> Hi Bryan,
>
> can you call Init.init() somewhere else (not in the static
initializer)
> without complaints?
>
> Christian
>
> --On Mittwoch, 5. Februar 2003 10:40 -0700 Bryan Field-Elliot
> <br...@netmeme.org> wrote:
>
>> We have developed and successfully deployed an application using
>> XML-Security on Tomcat.
>>
>> Now we are tasked with testing this same application on Resin,
which
>> (admittedly) we have a lot less experience upon.
>>
>> Our environment is RH Linux 8.0, Sun JDK 1.3.1-06, and Resin
2.1.6.
>>
>> xmlsec.jar didn't seem to be happy existing in our servlet's
WEB-INF/lib
>> directory, so we moved it to Resin's common lib directory. As a
>> consequence, we also had to replace Resin's common lib version of
>> Xerces, with the latest Xerces and Xalan (Xerces-J 2.2.1 and
Xalan-J
>> 2.4.1). We also copied xmlsec.jar and log4j.jar into Resin's
common lib
>> directory.
>>
>> Now, upon loading, we're getting a lot of complaint from
xmlsec.jar, as
>> follows. Any tips would be appreciated.
>>
>> The line in question which is triggering all this is:
>> (exception stack trace) at
>> org.sourceid.sso.servlets.Manager.<clinit>(Manager.java:62)
>>
>> Here is the code at line 62:
>>
>> static {
>> org.apache.xml.security.Init.init();
>> }
>>
>>
>> Thank you,
>>
>> Bryan
>
Re: Deploying on Resin
Posted by Christian Geuer-Pollmann <ge...@nue.et-inf.uni-siegen.de>.
This method is supposed to be called only once, e.g. in a main method. I
don't know much about Servlets and where an appropriate place would be.
Essentially, the Init.init() takes the mappings from the config.xml file
and registers different algorithms in different Factory classes. For
instance, signature.Transform is the Factory for the ds:Transform
algorithms.
This "Cannot register URI to class because this class does not exist in
CLASSPATH" is a buggy error message. It should read
Cannot register URI http://www.w3.org/... to class org.apache.xml.sec....
because this class does not exist in CLASSPATH
Guess that the escaping for the error message is wrong so that there is no
output WHICH class is missing. I'll check this out.
Christian
--On Mittwoch, 5. Februar 2003 12:50 -0700 Bryan Field-Elliot
<br...@netmeme.org> wrote:
> I just tried that (moving the Init() call into the Servlet init() method,
> rather than in static class code). I am getting the same results. Can you
> tell me what the messages mean? (e.g. what's it looking for?)
>
> Also FYI, the Init class (xml-security) is not present in your online
> Javadocs.
>
> Thank you,
>
> Bryan
>
> On Wed, 2003-02-05 at 12:08, Christian Geuer-Pollmann wrote:
>
> Hi Bryan,
>
> can you call Init.init() somewhere else (not in the static initializer)
> without complaints?
>
> Christian
>
> --On Mittwoch, 5. Februar 2003 10:40 -0700 Bryan Field-Elliot
> <br...@netmeme.org> wrote:
>
>> We have developed and successfully deployed an application using
>> XML-Security on Tomcat.
>>
>> Now we are tasked with testing this same application on Resin, which
>> (admittedly) we have a lot less experience upon.
>>
>> Our environment is RH Linux 8.0, Sun JDK 1.3.1-06, and Resin 2.1.6.
>>
>> xmlsec.jar didn't seem to be happy existing in our servlet's WEB-INF/lib
>> directory, so we moved it to Resin's common lib directory. As a
>> consequence, we also had to replace Resin's common lib version of
>> Xerces, with the latest Xerces and Xalan (Xerces-J 2.2.1 and Xalan-J
>> 2.4.1). We also copied xmlsec.jar and log4j.jar into Resin's common lib
>> directory.
>>
>> Now, upon loading, we're getting a lot of complaint from xmlsec.jar, as
>> follows. Any tips would be appreciated.
>>
>> The line in question which is triggering all this is:
>> (exception stack trace) at
>> org.sourceid.sso.servlets.Manager.<clinit>(Manager.java:62)
>>
>> Here is the code at line 62:
>>
>> static {
>> org.apache.xml.security.Init.init();
>> }
>>
>>
>> Thank you,
>>
>> Bryan
>
Re: Deploying on Resin
Posted by Bryan Field-Elliot <br...@netmeme.org>.
I just tried that (moving the Init() call into the Servlet init()
method, rather than in static class code). I am getting the same
results. Can you tell me what the messages mean? (e.g. what's it looking
for?)
Also FYI, the Init class (xml-security) is not present in your online
Javadocs.
Thank you,
Bryan
On Wed, 2003-02-05 at 12:08, Christian Geuer-Pollmann wrote:
Hi Bryan,
can you call Init.init() somewhere else (not in the static
initializer)
without complaints?
Christian
--On Mittwoch, 5. Februar 2003 10:40 -0700 Bryan Field-Elliot
<br...@netmeme.org> wrote:
> We have developed and successfully deployed an application using
> XML-Security on Tomcat.
>
> Now we are tasked with testing this same application on Resin,
which
> (admittedly) we have a lot less experience upon.
>
> Our environment is RH Linux 8.0, Sun JDK 1.3.1-06, and Resin
2.1.6.
>
> xmlsec.jar didn't seem to be happy existing in our servlet's
WEB-INF/lib
> directory, so we moved it to Resin's common lib directory. As a
> consequence, we also had to replace Resin's common lib version of
Xerces,
> with the latest Xerces and Xalan (Xerces-J 2.2.1 and Xalan-J
2.4.1). We
> also copied xmlsec.jar and log4j.jar into Resin's common lib
directory.
>
> Now, upon loading, we're getting a lot of complaint from
xmlsec.jar, as
> follows. Any tips would be appreciated.
>
> The line in question which is triggering all this is:
> (exception stack trace) at
> org.sourceid.sso.servlets.Manager.<clinit>(Manager.java:62)
>
> Here is the code at line 62:
>
> static {
> org.apache.xml.security.Init.init();
> }
>
>
> Thank you,
>
> Bryan
Re: Deploying on Resin
Posted by Christian Geuer-Pollmann <ge...@nue.et-inf.uni-siegen.de>.
Hi Bryan,
can you call Init.init() somewhere else (not in the static initializer)
without complaints?
Christian
--On Mittwoch, 5. Februar 2003 10:40 -0700 Bryan Field-Elliot
<br...@netmeme.org> wrote:
> We have developed and successfully deployed an application using
> XML-Security on Tomcat.
>
> Now we are tasked with testing this same application on Resin, which
> (admittedly) we have a lot less experience upon.
>
> Our environment is RH Linux 8.0, Sun JDK 1.3.1-06, and Resin 2.1.6.
>
> xmlsec.jar didn't seem to be happy existing in our servlet's WEB-INF/lib
> directory, so we moved it to Resin's common lib directory. As a
> consequence, we also had to replace Resin's common lib version of Xerces,
> with the latest Xerces and Xalan (Xerces-J 2.2.1 and Xalan-J 2.4.1). We
> also copied xmlsec.jar and log4j.jar into Resin's common lib directory.
>
> Now, upon loading, we're getting a lot of complaint from xmlsec.jar, as
> follows. Any tips would be appreciated.
>
> The line in question which is triggering all this is:
> (exception stack trace) at
> org.sourceid.sso.servlets.Manager.<clinit>(Manager.java:62)
>
> Here is the code at line 62:
>
> static {
> org.apache.xml.security.Init.init();
> }
>
>
> Thank you,
>
> Bryan