You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Miguel Correia Ricardo <mi...@gmail.com> on 2006/10/10 16:16:40 UTC

Tomcat Embedded and Server.xml

Hello,

I'm having a doubt that is bugging me. And I need to solve it also.
Everywhere I look, it says that by using Tomcat Embedded I don't need
the server.xml configuration file. Ok, I can understand why... But,
what about the Connector ports, how do I know at advance wich one are
busy or not... I want to be able to use Tomcat Embedded and still use
the server.xml configuration file, for the most various reasons, one
of them is to define the Connector ports.

Is there any class in the tomcat *.jars that will help me achieve it
easily? Or I have to follow the same thing that Catalina is doing,
that is, creating a Digest object, set the Sax rules, and so on...

Hope you can help. And thanks in advance.

My best regards,
Miguel Correia Ricardo

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat Embedded and Server.xml

Posted by Miguel Correia Ricardo <mi...@gmail.com>.
Oh, well... I'm reading the connector ports from the server.xml with a
my own custom SAXParser... Didn't see anyother way of doing it...
Apreciate all the help.

On 10/13/06, Mark Miller <ma...@gmail.com> wrote:
> I am using embedded tomcat and I do not use server.xml. Unfortunately, I am
> away from home until Sunday. I will give you more info then.
>
> - Mark
>
> On 10/13/06, Miguel Correia Ricardo <mi...@gmail.com> wrote:
> >
> > But, do you use server.xml to configure tomcat embedded? For example,
> > for the connector ports? If so, how may I ask?
> >
> > Best regards,
> > Miguel
> >
> > On 10/12/06, Andre Prasetya <an...@gmail.com> wrote:
> > > Hi Miguel, I m using tomcat embedded but i still use server.xml too
> > >
> > > -Andre-
> > >
> > >
> > > On 10/10/06, Miguel Correia Ricardo <mi...@gmail.com> wrote:
> > > >
> > > > Hello,
> > > >
> > > > I'm having a doubt that is bugging me. And I need to solve it also.
> > > > Everywhere I look, it says that by using Tomcat Embedded I don't need
> > > > the server.xml configuration file. Ok, I can understand why... But,
> > > > what about the Connector ports, how do I know at advance wich one are
> > > > busy or not... I want to be able to use Tomcat Embedded and still use
> > > > the server.xml configuration file, for the most various reasons, one
> > > > of them is to define the Connector ports.
> > > >
> > > > Is there any class in the tomcat *.jars that will help me achieve it
> > > > easily? Or I have to follow the same thing that Catalina is doing,
> > > > that is, creating a Digest object, set the Sax rules, and so on...
> > > >
> > > > Hope you can help. And thanks in advance.
> > > >
> > > > My best regards,
> > > > Miguel Correia Ricardo
> > > >
> > > > ---------------------------------------------------------------------
> > > > To start a new topic, e-mail: users@tomcat.apache.org
> > > > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > > > For additional commands, e-mail: users-help@tomcat.apache.org
> > > >
> > > >
> > >
> > >
> > > --
> > > -Andre-
> > >
> > > PCs are like air conditioner, if you open Windows, they don't work
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To start a new topic, e-mail: users@tomcat.apache.org
> > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: users-help@tomcat.apache.org
> >
> >
>
>

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat Embedded and Server.xml

Posted by Mark Miller <ma...@gmail.com>.
I am using embedded tomcat and I do not use server.xml. Unfortunately, I am
away from home until Sunday. I will give you more info then.

- Mark

On 10/13/06, Miguel Correia Ricardo <mi...@gmail.com> wrote:
>
> But, do you use server.xml to configure tomcat embedded? For example,
> for the connector ports? If so, how may I ask?
>
> Best regards,
> Miguel
>
> On 10/12/06, Andre Prasetya <an...@gmail.com> wrote:
> > Hi Miguel, I m using tomcat embedded but i still use server.xml too
> >
> > -Andre-
> >
> >
> > On 10/10/06, Miguel Correia Ricardo <mi...@gmail.com> wrote:
> > >
> > > Hello,
> > >
> > > I'm having a doubt that is bugging me. And I need to solve it also.
> > > Everywhere I look, it says that by using Tomcat Embedded I don't need
> > > the server.xml configuration file. Ok, I can understand why... But,
> > > what about the Connector ports, how do I know at advance wich one are
> > > busy or not... I want to be able to use Tomcat Embedded and still use
> > > the server.xml configuration file, for the most various reasons, one
> > > of them is to define the Connector ports.
> > >
> > > Is there any class in the tomcat *.jars that will help me achieve it
> > > easily? Or I have to follow the same thing that Catalina is doing,
> > > that is, creating a Digest object, set the Sax rules, and so on...
> > >
> > > Hope you can help. And thanks in advance.
> > >
> > > My best regards,
> > > Miguel Correia Ricardo
> > >
> > > ---------------------------------------------------------------------
> > > To start a new topic, e-mail: users@tomcat.apache.org
> > > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > > For additional commands, e-mail: users-help@tomcat.apache.org
> > >
> > >
> >
> >
> > --
> > -Andre-
> >
> > PCs are like air conditioner, if you open Windows, they don't work
> >
> >
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: Tomcat Embedded and Server.xml

Posted by Miguel Correia Ricardo <mi...@gmail.com>.
Thanks.

On 10/13/06, Andre Prasetya <an...@gmail.com> wrote:
> Yes I use server.xml to configure the comcat embedded, and only for
> connector ports, I attach the server.xml, hopefully its usefull for you.
>
>
>
> On 10/13/06, Miguel Correia Ricardo <mi...@gmail.com> wrote:
> >
> > But, do you use server.xml to configure tomcat embedded? For example,
> > for the connector ports? If so, how may I ask?
> >
> > Best regards,
> > Miguel
> >
> > On 10/12/06, Andre Prasetya < andre.prasetya@gmail.com> wrote:
> > > Hi Miguel, I m using tomcat embedded but i still use server.xml too
> > >
> > > -Andre-
> > >
> > >
> > > On 10/10/06, Miguel Correia Ricardo < miguelcricardo@gmail.com> wrote:
> > > >
> > > > Hello,
> > > >
> > > > I'm having a doubt that is bugging me. And I need to solve it also.
> > > > Everywhere I look, it says that by using Tomcat Embedded I don't need
> > > > the server.xml configuration file. Ok, I can understand why... But,
> > > > what about the Connector ports, how do I know at advance wich one are
> > > > busy or not... I want to be able to use Tomcat Embedded and still use
> > > > the server.xml configuration file, for the most various reasons, one
> > > > of them is to define the Connector ports.
> > > >
> > > > Is there any class in the tomcat *.jars that will help me achieve it
> > > > easily? Or I have to follow the same thing that Catalina is doing,
> > > > that is, creating a Digest object, set the Sax rules, and so on...
> > > >
> > > > Hope you can help. And thanks in advance.
> > > >
> > > > My best regards,
> > > > Miguel Correia Ricardo
> > > >
> > > >
> ---------------------------------------------------------------------
> > > > To start a new topic, e-mail: users@tomcat.apache.org
> > > > To unsubscribe, e-mail:
> users-unsubscribe@tomcat.apache.org
> > > > For additional commands, e-mail: users-help@tomcat.apache.org
> > > >
> > > >
> > >
> > >
> > > --
> > > -Andre-
> > >
> > > PCs are like air conditioner, if you open Windows, they don't work
> > >
> > >
> >
> >
> ---------------------------------------------------------------------
> > To start a new topic, e-mail: users@tomcat.apache.org
> > To unsubscribe, e-mail:
> users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: users-help@tomcat.apache.org
> >
> >
>
>
>
> --
> -Andre-
>
> PCs are like air conditioner, if you open Windows, they don't work
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat Embedded and Server.xml

Posted by Andre Prasetya <an...@gmail.com>.
Yes I use server.xml to configure the comcat embedded, and only for
connector ports, I attach the server.xml, hopefully its usefull for you.


On 10/13/06, Miguel Correia Ricardo <mi...@gmail.com> wrote:
>
> But, do you use server.xml to configure tomcat embedded? For example,
> for the connector ports? If so, how may I ask?
>
> Best regards,
> Miguel
>
> On 10/12/06, Andre Prasetya <an...@gmail.com> wrote:
> > Hi Miguel, I m using tomcat embedded but i still use server.xml too
> >
> > -Andre-
> >
> >
> > On 10/10/06, Miguel Correia Ricardo <mi...@gmail.com> wrote:
> > >
> > > Hello,
> > >
> > > I'm having a doubt that is bugging me. And I need to solve it also.
> > > Everywhere I look, it says that by using Tomcat Embedded I don't need
> > > the server.xml configuration file. Ok, I can understand why... But,
> > > what about the Connector ports, how do I know at advance wich one are
> > > busy or not... I want to be able to use Tomcat Embedded and still use
> > > the server.xml configuration file, for the most various reasons, one
> > > of them is to define the Connector ports.
> > >
> > > Is there any class in the tomcat *.jars that will help me achieve it
> > > easily? Or I have to follow the same thing that Catalina is doing,
> > > that is, creating a Digest object, set the Sax rules, and so on...
> > >
> > > Hope you can help. And thanks in advance.
> > >
> > > My best regards,
> > > Miguel Correia Ricardo
> > >
> > > ---------------------------------------------------------------------
> > > To start a new topic, e-mail: users@tomcat.apache.org
> > > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > > For additional commands, e-mail: users-help@tomcat.apache.org
> > >
> > >
> >
> >
> > --
> > -Andre-
> >
> > PCs are like air conditioner, if you open Windows, they don't work
> >
> >
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>


-- 
-Andre-

PCs are like air conditioner, if you open Windows, they don't work

Re: Tomcat Embedded and Server.xml

Posted by Miguel Correia Ricardo <mi...@gmail.com>.
But, do you use server.xml to configure tomcat embedded? For example,
for the connector ports? If so, how may I ask?

Best regards,
Miguel

On 10/12/06, Andre Prasetya <an...@gmail.com> wrote:
> Hi Miguel, I m using tomcat embedded but i still use server.xml too
>
> -Andre-
>
>
> On 10/10/06, Miguel Correia Ricardo <mi...@gmail.com> wrote:
> >
> > Hello,
> >
> > I'm having a doubt that is bugging me. And I need to solve it also.
> > Everywhere I look, it says that by using Tomcat Embedded I don't need
> > the server.xml configuration file. Ok, I can understand why... But,
> > what about the Connector ports, how do I know at advance wich one are
> > busy or not... I want to be able to use Tomcat Embedded and still use
> > the server.xml configuration file, for the most various reasons, one
> > of them is to define the Connector ports.
> >
> > Is there any class in the tomcat *.jars that will help me achieve it
> > easily? Or I have to follow the same thing that Catalina is doing,
> > that is, creating a Digest object, set the Sax rules, and so on...
> >
> > Hope you can help. And thanks in advance.
> >
> > My best regards,
> > Miguel Correia Ricardo
> >
> > ---------------------------------------------------------------------
> > To start a new topic, e-mail: users@tomcat.apache.org
> > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: users-help@tomcat.apache.org
> >
> >
>
>
> --
> -Andre-
>
> PCs are like air conditioner, if you open Windows, they don't work
>
>

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat Embedded and Server.xml

Posted by Andre Prasetya <an...@gmail.com>.
Hi Miguel, I m using tomcat embedded but i still use server.xml too

-Andre-


On 10/10/06, Miguel Correia Ricardo <mi...@gmail.com> wrote:
>
> Hello,
>
> I'm having a doubt that is bugging me. And I need to solve it also.
> Everywhere I look, it says that by using Tomcat Embedded I don't need
> the server.xml configuration file. Ok, I can understand why... But,
> what about the Connector ports, how do I know at advance wich one are
> busy or not... I want to be able to use Tomcat Embedded and still use
> the server.xml configuration file, for the most various reasons, one
> of them is to define the Connector ports.
>
> Is there any class in the tomcat *.jars that will help me achieve it
> easily? Or I have to follow the same thing that Catalina is doing,
> that is, creating a Digest object, set the Sax rules, and so on...
>
> Hope you can help. And thanks in advance.
>
> My best regards,
> Miguel Correia Ricardo
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>


-- 
-Andre-

PCs are like air conditioner, if you open Windows, they don't work