Call TomcatURLStreamHandlerFactory.disable() before you start Tomcat.

Note that this means that if your Tomcat instance is using WAR files it will only work if the WAR files are unpacked to a directory first.

Mark


On 14/06/2023 14:51, Nitish Chitta wrote:
Please let me know in case a more detailed stack trace is required.

Nitish

On Wed, Jun 14, 2023 at 6:10 PM Nitish Chitta <nchi...@tibco.com> wrote:

Missed Tomcat 7 version : 7.0.94

Nitish

On Wed, Jun 14, 2023 at 5:10 PM Nitish Chitta <nchi...@tibco.com> wrote:

Tomcat version : 9.0.44
Stack Trace :

Caused by: java.lang.Error: factory already defined
         at java.net.URL.setURLStreamHandlerFactory(URL.java:1159)
         at
org.apache.catalina.webresources.TomcatURLStreamHandlerFactory.<init>(TomcatURLStreamHandlerFactory.java:130)
         at
org.apache.catalina.webresources.TomcatURLStreamHandlerFactory.getInstanceInternal(TomcatURLStreamHandlerFactory.java:53)
         at
org.apache.catalina.webresources.TomcatURLStreamHandlerFactory.register(TomcatURLStreamHandlerFactory.java:77)
         at
org.apache.catalina.webresources.StandardRoot.registerURLStreamHandlerFactory(StandardRoot.java:711)
         at
org.apache.catalina.webresources.StandardRoot.initInternal(StandardRoot.java:698)
         at
org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)

Regards,
Nitish

On Wed, Jun 14, 2023 at 4:52 PM Mark Thomas <ma...@apache.org> wrote:

On 14/06/2023 12:16, Nitish Chitta wrote:
Hello,
I am trying to connect to a Weblogic server and have an embedded
Tomcat 9
instance running in my application as well.

I suppose the factory is being set twice and hence I am getting this
error.

I wanted to know why this issue was not occuring with Tomcat 7?#

Exact Tomcat versions?

The full error message including stack trace is?

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to