Yoav,

That worked. I put JAVA_OPTS=-Djava.net.preferIPv4Stack="true" for run,start and stop 
in my catalina.sh and now it starts.

Thank you very much

Dean

-----Original Message-----
From:   Dean Searle
Sent:   Mon 11/17/2003 10:04
To:     Tomcat Users List
Cc:     
Subject:        RE: Unique error message when starting Tomcat 4.1.27
ok, sorry I didn't see that in the error message until I reread it. I'll use the flag 
-Djava.net.preferIPv4Stack=true and see if that helps.

Thank you again,

Dean


-----Original Message-----
From:   Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent:   Mon 11/17/2003 09:02
To:     Tomcat Users List
Cc:     
Subject:        RE: Unique error message when starting Tomcat 4.1.27

Howdy,
Not a tomcat problem: it's your OS configuration.  Either make sure your
OS has an IPv6 stack installed or add the IPv4 preference flag to
JAVA_OPTS as the error message suggests.

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: Dean Searle [mailto:[EMAIL PROTECTED]
>Sent: Friday, November 14, 2003 10:54 PM
>To: Tomcat Users List
>Subject: Unique error message when starting Tomcat 4.1.27
>
>I have just installed tomcat 4.1.27 from the FreeBSD Ports for FreeBSD
>5.0-RELEASE-p11. Here is the JDK I am using:
>
>Java(TM) 2 Runtime Environment, Standard Edition (build
>1.4.2-p5-dean_13_nov_2003_15_51)
>Java HotSpot(TM) Client VM (build 1.4.2-p5-dean_13_nov_2003_15_51,
mixed
>mode)
>
>Here is the message I get when I start tomcat:
>
><snip>
>
>
>./catalina.sh run
>Using CATALINA_BASE:   /usr/local/jakarta-tomcat4.1
>Using CATALINA_HOME:   /usr/local/jakarta-tomcat4.1
>Using CATALINA_TMPDIR: /usr/local/jakarta-tomcat4.1/temp
>Using JAVA_HOME:       /usr/local/jdk1.4.2
>Nov 14, 2003 9:55:06 PM org.apache.commons.modeler.Registry
loadRegistry
>INFO: Loading registry information
>Nov 14, 2003 9:55:06 PM org.apache.commons.modeler.Registry getRegistry
>INFO: Creating new Registry instance
>Nov 14, 2003 9:55:07 PM org.apache.commons.modeler.Registry getServer
>INFO: Creating MBeanServer
>Nov 14, 2003 9:55:08 PM org.apache.coyote.http11.Http11Protocol init
>SEVERE: Error initializing endpoint
>java.net.SocketException: IPv4 mapped addresses usage is turned off.
>Set net.inet6.ip6.v6only=0 or use '-Djava.net.preferIPv4Stack=true' to
>disable java IPv6 support
>        at java.net.PlainSocketImpl.socketBind(Native Method)
>        at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:331)
>        at java.net.ServerSocket.bind(ServerSocket.java:318)
>        at java.net.ServerSocket.<init>(ServerSocket.java:185)
>        at java.net.ServerSocket.<init>(ServerSocket.java:141)
>        at
>org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(Defa
u
>ltServerSocketFactory.java:96)
>        at
>org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint
.
>java:275)
>        at
>org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:150)
>        at
>org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.ja
v
>a:1156)
>        at
>org.apache.catalina.core.StandardService.initialize(StandardService.jav
a
>:579)
>        at
>org.apache.catalina.core.StandardServer.initialize(StandardServer.java:
2
>246)
>        at
org.apache.catalina.startup.Catalina.start(Catalina.java:511)
>        at
>org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
>        at
>org.apache.catalina.startup.Catalina.process(Catalina.java:180)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at
>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
v
>a:39)
>        at
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
r
>Impl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:324)
>        at
>org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
>Catalina.start: LifecycleException:  Protocol handler initialization
>failed: java.net.SocketException: IPv4 mapped addresses usage is turned
>off.  Set net.inet6.ip6.v6only=0 or use
>'-Djava.net.preferIPv4Stack=true' to disable java IPv6 support
>LifecycleException:  Protocol handler initialization failed:
>java.net.SocketException: IPv4 mapped addresses usage is turned off.
>Set net.inet6.ip6.v6only=0 or use '-Djava.net.preferIPv4Stack=true' to
>disable java IPv6 support
>        at
>org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.ja
v
>a:1158)
>        at
>org.apache.catalina.core.StandardService.initialize(StandardService.jav
a
>:579)
>        at
>org.apache.catalina.core.StandardServer.initialize(StandardServer.java:
2
>246)
>        at
org.apache.catalina.startup.Catalina.start(Catalina.java:511)
>        at
>org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
>        at
>org.apache.catalina.startup.Catalina.process(Catalina.java:180)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at
>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
v
>a:39)
>        at
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
r
>Impl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:324)
>        at
>org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
>Catalina.stop: LifecycleException:  This server has not yet been
started
>LifecycleException:  This server has not yet been started
>        at
>org.apache.catalina.core.StandardServer.stop(StandardServer.java:2213)
>        at
org.apache.catalina.startup.Catalina.start(Catalina.java:543)
>        at
>org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
>        at
>org.apache.catalina.startup.Catalina.process(Catalina.java:180)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at
>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
v
>a:39)
>        at
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
r
>Impl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:324)
>        at
>org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
>
></snip>
>
>From what I can guess it looks like it has IPv4 disabled, but not sure
>where that occurred at? This usually works well. Any help with this
>would be appreciated. Also I cvsup'd on Nov 14 at 16:30 EDT.
>
>Thanks in advance,
>
>Dean
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]









---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to