Re: Factory already defined error with Tomcat 9
Thanks for the help. Nitish On Wed, Jun 14, 2023 at 9:57 PM Mark Thomas wrote: > 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 wrote: > > > >> Missed Tomcat 7 version : 7.0.94 > >> > >> Nitish > >> > >> On Wed, Jun 14, 2023 at 5:10 PM Nitish Chitta > 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.(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 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 > >
Re: Factory already defined error with Tomcat 9
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 wrote: > Missed Tomcat 7 version : 7.0.94 > > Nitish > > On Wed, Jun 14, 2023 at 5:10 PM Nitish Chitta 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.(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 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 >>> >>>
Re: Factory already defined error with Tomcat 9
Missed Tomcat 7 version : 7.0.94 Nitish On Wed, Jun 14, 2023 at 5:10 PM Nitish Chitta 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.(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 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 >> >>
Re: Factory already defined error with Tomcat 9
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.(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 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 > >
Factory already defined error with Tomcat 9
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? Regards, Nitish
Re: Regarding IPv6 support
Thanks for all the responses. Regards, Nitish On Wed, Aug 3, 2022 at 2:58 PM Konstantin Kolinko wrote: > ср, 3 авг. 2022 г. в 10:19, Nitish Chitta : > > > > Hello Team, > > I wanted to know if Tomcat 7 supports requests with IPv6 addresses in the > > URL as I am getting an HTTP 404 error when trying to hit the server with > an > > IPv6 address. > > 1. Tomcat 7 has reached End of Life and is no longer supported. > > 2. If the server answers with 404 it means that it does work and can > answer. > > Check your access logs (as generated by AccessLogValve) to see > > a.. that the server receives the requests > b. what is the actual IP address of your client, as seen by the server. > > Best regards, > Konstantin Kolinko > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >
Re: Regarding IPv6 support
I have done the required changes i.e added the IPv6 address to the connector that the server should listen on. Do I have to add any other property or am I missing something? On Wed, Aug 3, 2022 at 12:51 PM Jason Wee wrote: > yes, it should, read here > https://tomcat.apache.org/tomcat-7.0-doc/config/http.html > > On Wed, Aug 3, 2022 at 3:19 PM Nitish Chitta > wrote: > > > > Hello Team, > > I wanted to know if Tomcat 7 supports requests with IPv6 addresses in the > > URL as I am getting an HTTP 404 error when trying to hit the server with > an > > IPv6 address. > > > > Thanks & Regards, > > Nitish > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >
Regarding IPv6 support
Hello Team, I wanted to know if Tomcat 7 supports requests with IPv6 addresses in the URL as I am getting an HTTP 404 error when trying to hit the server with an IPv6 address. Thanks & Regards, Nitish