On Thu, 2004-10-28 at 15:34, Luke FERNANDEZ wrote:
> Am I spamming if I say thanks to all of you for your help? 
No, there is nothing wrong with a thank you.

>  I changed
> the following line in server.xml and now both instances run:
> 
> <!-- <Server port="8005" shutdown="SHUTDOWN" debug="0"> -->
> <Server port="8007" shutdown="SHUTDOWN" debug="0">
> 
> I hope I wasn't imposing by asking all these naive questions.....for me
> this is a great way to learn.
It's a great way to get out of a bind.  Out of courtesy to everyone else
though, it's good to exhaust all other avenues before posting to the
list. These include, the Tomcat docs, Google, and the archives to this
list. You may have noticed this link on your way to signing up for the
list: http://www.catb.org/~esr/faqs/smart-questions.html
There are a handful of questions that get asked here every single day,
bloating the list with endless repetition. They are all answered in the
FAQ so they often get ignored.

> 
> Like you said, I actually have to read the message (although I didn't
> know that "create[8005]" was referring to a port).  
> 
> I wonder if there's a way to filter out some of all the stuff that is
> outputted on startup so one can zero in more easily on the error? 
Before you go too far down the road, you might want to look at log4j.
http://logging.apache.org/log4j
It's easy to set up and use, and it can be tuned to throttle the amount
of logging you see without having to change your soure.  There are
others out there too but this IMHO is the best.

 
> 
> But those are standard quibbles about cryptic error messages.....thanks
> again for your help.
> 
> Luke
Good luck with your project,
-Ben


















> 
> 
> 
> 
> 
> >>> [EMAIL PROTECTED] 10/28/2004 1:09:55 PM >>>
> yes, and if you actually read the message
> 
> StandardServer.await: create[8005]: java.net.BindException: Address
> already in u
> se: JVM_Bind
> java.net.BindException: Address already in use: JVM_Bind
> 
> 
> look for 8005 in your server.xml and you will find out that this is
> the
> shutdown port.
> 
> Filip
> 
> -----Original Message-----
> From: Luke FERNANDEZ [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, October 28, 2004 2:10 PM
> To: [EMAIL PROTECTED] 
> Subject: RE: newbie question
> 
> 
> Ok. When I use "catalina.bat run" instead of "startup" the window
> stays
> open but the second instance (on port 80) still isnt serving pages.
> I've included the screen output that happens after running
> "catalina.bat
> run".  Looks like its saying something about "address already in use":
> 
> C:\tomcat\jakarta-tomcat-5.0.28\bin>catalina.bat run
> Using CATALINA_BASE:   C:\tomcat\jakarta-tomcat-5.0.28
> Using CATALINA_HOME:   C:\tomcat\jakarta-tomcat-5.0.28
> Using CATALINA_TMPDIR: C:\tomcat\jakarta-tomcat-5.0.28\temp
> Using JAVA_HOME:       C:\j2sdk1.4.2_05
> Oct 28, 2004 12:58:57 PM org.apache.coyote.http11.Http11Protocol init
> INFO: Initializing Coyote HTTP/1.1 on http-80
> Oct 28, 2004 12:58:57 PM org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 1953 ms
> Oct 28, 2004 12:58:57 PM org.apache.catalina.core.StandardService
> start
> INFO: Starting service Catalina
> Oct 28, 2004 12:58:57 PM org.apache.catalina.core.StandardEngine start
> INFO: Starting Servlet Engine: Apache Tomcat/5.0.28
> Oct 28, 2004 12:58:57 PM org.apache.catalina.core.StandardHost start
> INFO: XML validation disabled
> Oct 28, 2004 12:58:57 PM org.apache.catalina.core.StandardHost
> getDeployer
> INFO: Create Host deployer for direct deployment ( non-jmx )
> Oct 28, 2004 12:58:57 PM org.apache.catalina.core.StandardHostDeployer
> install
> INFO: Processing Context configuration file URL
> file:C:\tomcat\jakarta-tomcat-5.
> 0.28\conf\Catalina\localhost\admin.xml
> Oct 28, 2004 12:58:59 PM
> org.apache.struts.util.PropertyMessageResources <init>
> INFO: Initializing, config='org.apache.struts.util.LocalStrings',
> returnNull=tru
> e
> Oct 28, 2004 12:58:59 PM
> org.apache.struts.util.PropertyMessageResources <init>
> INFO: Initializing, config='org.apache.struts.action.ActionResources',
> returnNul
> l=true
> Oct 28, 2004 12:58:59 PM
> org.apache.struts.util.PropertyMessageResources <init>
> INFO: Initializing,
> config='org.apache.webapp.admin.ApplicationResources', retur
> nNull=true
> Oct 28, 2004 12:59:02 PM org.apache.catalina.core.StandardHostDeployer
> install
> INFO: Processing Context configuration file URL
> file:C:\tomcat\jakarta-tomcat-5.
> 0.28\conf\Catalina\localhost\balancer.xml
> Oct 28, 2004 12:59:02 PM org.apache.catalina.core.StandardHostDeployer
> install
> INFO: Processing Context configuration file URL
> file:C:\tomcat\jakarta-tomcat-5.
> 0.28\conf\Catalina\localhost\manager.xml
> Oct 28, 2004 12:59:02 PM org.apache.catalina.core.StandardHostDeployer
> install
> INFO: Installing web application at context path /jsp-examples from
> URL
> file:C:\
> tomcat\jakarta-tomcat-5.0.28\webapps\jsp-examples
> Oct 28, 2004 12:59:03 PM org.apache.catalina.core.StandardHostDeployer
> install
> INFO: Installing web application at context path /Login from URL
> file:C:\tomcat\
> jakarta-tomcat-5.0.28\webapps\Login
> Oct 28, 2004 12:59:04 PM
> org.apache.struts.util.PropertyMessageResources <init>
> INFO: Initializing, config='org.apache.struts.util.LocalStrings',
> returnNull=tru
> e
> Oct 28, 2004 12:59:04 PM
> org.apache.struts.util.PropertyMessageResources <init>
> INFO: Initializing, config='org.apache.struts.action.ActionResources',
> returnNul
> l=true
> Oct 28, 2004 12:59:04 PM
> org.apache.struts.util.PropertyMessageResources <init>
> INFO: Initializing, config='ApplicationResources', returnNull=true
> Oct 28, 2004 12:59:04 PM org.apache.catalina.core.StandardHostDeployer
> install
> INFO: Installing web application at context path  from URL
> file:C:\tomcat\jakart
> a-tomcat-5.0.28\webapps\ROOT
> Oct 28, 2004 12:59:04 PM org.apache.catalina.core.StandardHostDeployer
> install
> INFO: Installing web application at context path /servlets-examples
> from URL fil
> e:C:\tomcat\jakarta-tomcat-5.0.28\webapps\servlets-examples
> Oct 28, 2004 12:59:05 PM org.apache.catalina.core.StandardHostDeployer
> install
> INFO: Installing web application at context path /tomcat-docs from URL
> file:C:\t
> omcat\jakarta-tomcat-5.0.28\webapps\tomcat-docs
> Oct 28, 2004 12:59:05 PM org.apache.catalina.core.StandardHostDeployer
> install
> INFO: Installing web application at context path /TomProj from URL
> file:C:\tomca
> t\jakarta-tomcat-5.0.28\webapps\TomProj
> Oct 28, 2004 12:59:06 PM org.apache.catalina.core.StandardHostDeployer
> install
> INFO: Installing web application at context path /webdav from URL
> file:C:\tomcat
> \jakarta-tomcat-5.0.28\webapps\webdav
> Oct 28, 2004 12:59:07 PM org.apache.coyote.http11.Http11Protocol start
> INFO: Starting Coyote HTTP/1.1 on http-80
> Oct 28, 2004 12:59:07 PM org.apache.jk.common.ChannelSocket init
> INFO: Port busy 8009 java.net.BindException: Address already in use:
> JVM_Bind
> Oct 28, 2004 12:59:07 PM org.apache.jk.common.ChannelSocket init
> INFO: JK2: ajp13 listening on /0.0.0.0:8010
> Oct 28, 2004 12:59:07 PM org.apache.jk.server.JkMain start
> INFO: Jk running ID=1 time=16/172
> config=C:\tomcat\jakarta-tomcat-5.0.28\conf\j
> k2.properties
> Oct 28, 2004 12:59:07 PM org.apache.catalina.startup.Catalina start
> INFO: Server startup in 10437 ms
> StandardServer.await: create[8005]: java.net.BindException: Address
> already in u
> se: JVM_Bind
> java.net.BindException: Address already in use: JVM_Bind
>         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
> org.apache.catalina.core.StandardServer.await(StandardServer.java:496
> )
>         at
> org.apache.catalina.startup.Catalina.await(Catalina.java:619)
>         at
> org.apache.catalina.startup.Catalina.start(Catalina.java:579)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:324)
>         at
> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
>         at
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
> Oct 28, 2004 12:59:07 PM org.apache.coyote.http11.Http11Protocol pause
> INFO: Pausing Coyote HTTP/1.1 on http-80
> 
> C:\tomcat\jakarta-tomcat-5.0.28\bin>
> 
> Any ideas?
> 
> Luke
> 
> 
> >>> [EMAIL PROTECTED] 10/28/2004 12:28:46 PM >>>
> you have conflict in ports, both tomcats can not run on the same port
> at the
> same time.
> instead of calling start.bat, call "catalina.bat run" to have the
> windows
> stay the same and not shutdown on you
> 
> FIlip
> 
> -----Original Message-----
> From: Luke FERNANDEZ [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, October 28, 2004 1:27 PM
> To: [EMAIL PROTECTED] 
> Subject: RE: newbie question
> 
> 
> Can you run multiple instances of Tomcat? I tried this but I ran into
> problems.
> 
> I'm running Sakai (the open source Learning Management System) which
> installs its own Tomcat engine.  When I try to start up my own
> non-Sakai
> Tomcat instance from the command line (which resides in a completely
> separate jakarta-tomcat-5.0.28 folder) a new DOS window pops up and it
> seems like it goes through the entire deployment in the conventional
> manner.  But instead of staying open, that second DOS window
> eventually
> closes.  And then when I try to request pages against the second
> Tomcat
> instance I don't get anything back in the browser.  The Sakai instance
> still serves pages correctly.
> 
> However, if the Sakai Tomcat server is turned off I can turn on my
> other instance and serve pages from it.  Is there a way to make both
> Tomcat engines run simultaneously without conflict?
> 
> Cheers,
> 
> Luke Fernandez
> 
> 
> 
> >>> [EMAIL PROTECTED] 10/28/2004 11:11:05 AM >>>
> Or you could run multiple instances of Tomcat
> 
> 
> 
> On Thu, 2004-10-28 at 12:23, Shapira, Yoav wrote:
> > Hi,
> > Yes: define separate Engines or Services for the two apps in your
> > server.xml, and put each connector only in the Service where you
> want
> > it.
> >
> > Yoav Shapira http://www.yoavshapira.com
> >
> >
> > >-----Original Message-----
> > >From: Luke FERNANDEZ [mailto:[EMAIL PROTECTED] 
> > >Sent: Thursday, October 28, 2004 12:16 PM
> > >To: [EMAIL PROTECTED] 
> > >Subject: newbie question
> > >
> > >Is there an easy way to specify that one of the apps in the webapps
> > >folder be served off one port (e.g. 80) whereas another app should
> be
> > >served off another port (8080)?
> > >
> > >Thanks for your help,
> > >
> > >Luke Fernandez
> > >Weber State University
> > >
> >
> >---------------------------------------------------------------------
> > >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] 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED] 
> For additional commands, e-mail: [EMAIL PROTECTED] 
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.778 / Virus Database: 525 - Release Date: 10/15/2004
> 
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.778 / Virus Database: 525 - Release Date: 10/15/2004
> 
> 
> ---------------------------------------------------------------------
> 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] 
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.778 / Virus Database: 525 - Release Date: 10/15/2004
> 
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.778 / Virus Database: 525 - Release Date: 10/15/2004
> 
> 
> ---------------------------------------------------------------------
> 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]
> 
> 


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

Reply via email to