Configuration Questions !

2002-11-20 Thread Joseph Stephen Vaithara
Hi All,

I was trying to tweak around the tomcat configuration and had couple of questions. 

1) How do we specify java run time options for tomcat 4. In this case I want to 
increase the min & max heap size.

2) In the http connector what do the following parameters signify and what is the 
optimum value for the same. 

a) tcpNoDelay
b) acceptCount
c) buffersize

Any kind of pointer, wild guesses are welcome ! 

Thanks & Regards,
Joe


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Configuration questions.....

2003-06-16 Thread Ciramella, EJ
Ok, I'm done searching and ready to ask questions
 
I'm trying to connect Tomcat 4.0 to apache 1.3.X (Linux - RedHat 7.2) - what
do I need to do?  The only explicit instructions I can find are for Tomcat
3.3 and/or Apache 2.X.
 
 
 
Can someone point me in the right direction?


more configuration questions

2002-09-10 Thread Craig Longman


ok.  now i've got another problem, related to using apache to proxy and
the perceived hostname, with setting of session cookie names.

to get around the restriction in tomcat of forcing applications in
subdirectories on the url, i have the following setup:

  server.begeek.com -> proxies to server.local.begeek.com/server/

then, tomcat is configured to with a host element of
server.local.begeek.com and a context element of /server.  all is good
and everything 'looks' right.

now, i noticed that i was getting new sessions for every hit, and found
that indeed the cookie domain was restricted to server.local.begeek.com,
which in retrospect is correct.  so far so good.

trying to resolve this though, i find the only obvious way is to put a
proxyName and a proxyPort entry in the connector element.  well, i have
been sharing one connector for the whole shebang so far, so i can't put
it in there easily, using this scheme, i'll need to create multiple
connectors, one for each webapp i want.

what are the overheads associated with multiple connectors running?  and
how could i have multiple mount targets in apache?
  JkMount / ajp13-2
with multiple entries in the worker.properties?

is there any other way to set this on the context level?  that would be
ideal for my purposes.  one would think that makes sense, right?  i
mean, the getServerName() and getServerPort() are both in the
ServletContext, which is kind of what we're talking about here.  most of
the methods in ServletContext return data that are very specific to an
individual context (as in the server.xml contexts).

once again, suggestions greatly appreciated.

-- 

CraigL->Thx();
Be Developer ID: 5852




signature.asc
Description: This is a digitally signed message part


Two configuration questions

2001-08-14 Thread Kenneth Litwak

1.  Where do I put a JSP file?  Where do I put
associated helper beans and custom tags? 

2.  I want to access from a JSP's helper bean or a
servlet running on Tomcat on one host an EJB running
on the J2EE RI on another server on a separate host. 
If this were a standalone client I'd just give the
client some new JNDI code and provide the proper
client side jar.  How do I do this with Tomcat?  WOuld
my servlet or helper bean simply run the same JNDI
code?  Where do you put jar files for client side jars
for EJBs on Tomcat?  Thanks.



Ken

__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/



Tomcat configuration questions?

2001-03-14 Thread Ben Sifuentes

Currently my Apache is servicing requests on port 80 and Tomcat is using
port
8080 to service all application.

1.) Is there away to have each applications being serviced by Tomcat on
there
own ports?


2.) Under the current Apache setup all applications are accessible from
outside domains from port 80. Is there away to secure a specific application
from
the outside?

Thanks,
-Ben




Re: Configuration questions.....

2003-06-16 Thread John Turner
The instructions are essentially the same.

http://tomcatfaq.sourceforge.net/apache.html

http://www.johnturner.com/howto

http://www.galatea.com/flashguides

John

On Mon, 16 Jun 2003 15:33:22 -0400, Ciramella, EJ <[EMAIL PROTECTED]> 
wrote:

Ok, I'm done searching and ready to ask questions
I'm trying to connect Tomcat 4.0 to apache 1.3.X (Linux - RedHat 7.2) - 
what
do I need to do?  The only explicit instructions I can find are for 
Tomcat
3.3 and/or Apache 2.X.

Can someone point me in the right direction?



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Configuration questions.....

2003-06-16 Thread Ciramella, EJ
Wow - thanks for the quick turnaround!  

-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED]
Sent: Monday, June 16, 2003 3:41 PM
To: Tomcat Users List
Subject: Re: Configuration questions.



The instructions are essentially the same.

http://tomcatfaq.sourceforge.net/apache.html

http://www.johnturner.com/howto

http://www.galatea.com/flashguides

John

On Mon, 16 Jun 2003 15:33:22 -0400, Ciramella, EJ <[EMAIL PROTECTED]> 
wrote:

> Ok, I'm done searching and ready to ask questions
> I'm trying to connect Tomcat 4.0 to apache 1.3.X (Linux - RedHat 7.2) - 
> what
> do I need to do?  The only explicit instructions I can find are for 
> Tomcat
> 3.3 and/or Apache 2.X.
>
>
> Can someone point me in the right direction?
>



-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

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


Re: more configuration questions

2002-09-10 Thread Craig Longman

On Wed, 2002-09-11 at 02:07, Craig Longman wrote:
>
> is there any other way to set this on the context level?  that would be
> ideal for my purposes.  one would think that makes sense, right?  i
> mean, the getServerName() and getServerPort() are both in the
> ServletContext, which is kind of what we're talking about here.  most of
> the methods in ServletContext return data that are very specific to an
> individual context (as in the server.xml contexts).

not sure what i was thinking here, getServerName/Port are, of course, in
the ServletRequest object. sigh.

but anyway, the question is still, can i set the proxy stuff at the
context level, or can i at least change the servername for the session
cookie stuff to be at the context level.

cheers,

-- 

CraigL->Thx();
Be Developer ID: 5852




signature.asc
Description: This is a digitally signed message part


FW: Tomcat configuration questions?

2001-03-15 Thread Ben Sifuentes

I sent this yesterday but, I don't see it on the list today so I'm sending
it again

-Original Message-
From: Ben Sifuentes [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 14, 2001 5:02 PM
To: [EMAIL PROTECTED]
Subject: Tomcat configuration questions?


Currently my Apache is servicing requests on port 80 and Tomcat is using
port
8080 to service all application.

1.) Is there away to have each applications being serviced by Tomcat on
there
own ports?


2.) Under the current Apache setup all applications are accessible from
outside domains from port 80. Is there away to secure a specific application
from
the outside?

Thanks,
-Ben




IIS and Tomcat basic configuration questions

2003-01-23 Thread Brantley Hobbs
Hello all.

I'm new to the entire concept of Tomcat and I have a question which I
have not found a clear explanation for.

Does Tomcat have to be installed on the webserver?  In other words, can
I not just install the redirect filter (and not Tomcat, per se) on the
webserver and have it connect (using ajpv13) to a back-end Tomcat
server?  I only want to install the redirect filter on the webserver.
Does a working JVM need to be in place for the filter to work properly?

Brantley Hobbs

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Embedded Tomcat JNDI/JDBC Configuration Questions

2005-05-29 Thread Joe Reger, Jr.
Hi!
 
I've successfully created a project that embeds Tomcat. Excellent!  I can
see the sample page and the manager app, reporting Tomcat 5.5.9.  Now I'm
working on deploying a .war file programatically:   
 
public void registerWAR(String contextPath, String absolutePath) throws
Exception {
Context context = this.embedded.createContext(contextPath,
absolutePath);
context.setReloadable(false);
this.host.addChild(context);
}
 
I pass in the path "" and the location of the .war file.  When I run the
application the .war file is found and exploded to the /ROOT directory
properly.   Inside of the .war file is a context.xml file.  The "jdbc/db"
resource is defined in context.xml, inside of the .war file with the
following:
 

  

  factory
  org.apache.commons.dbcp.BasicDataSourceFactory


  maxActive
  100


  maxIdle
  30


  maxWait
  1


 username
 foo


 password
 bar


   driverClassName
   com.mysql.jdbc.Driver


  url
 
jdbc:mysql://localhost:3306/reger?autoReconnect=true

  
 
When I make a call to my application the code inside the .war file attempts
to connect to the database like this:
 
private static final String jndiPrePend = "java:comp/env/";
private static final String jndiDB = "jdbc/db";
public static Connection getConnection(){
Connection conn=null;
try{
  Context ctx = new InitialContext();
  if(ctx != null){
DataSource ds = (DataSource)ctx.lookup(jndiPrePend + jndiDB);
if(ds != null){
conn = ds.getConnection();
return conn;
}
  }
} catch (Exception e){
e.printStackTrace();
   util.errorsave(e);
}
return null;
  }
 
But I get the following error in the console window, repeatedly, each time
my app tries to connect to the db:
 
javax.naming.NamingException: Cannot create resource instance
 at
org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.
java:132)
 at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
 at org.apache.naming.NamingContext.lookup(NamingContext.java:792)
 at org.apache.naming.NamingContext.lookup(NamingContext.java:139)
 at org.apache.naming.NamingContext.lookup(NamingContext.java:780)
 at org.apache.naming.NamingContext.lookup(NamingContext.java:139)
 at org.apache.naming.NamingContext.lookup(NamingContext.java:780)
 at org.apache.naming.NamingContext.lookup(NamingContext.java:139)
 at org.apache.naming.NamingContext.lookup(NamingContext.java:780)
 at org.apache.naming.NamingContext.lookup(NamingContext.java:152)
 at org.apache.naming.SelectorContext.lookup(SelectorContext.java:136)
 at javax.naming.InitialContext.lookup(InitialContext.java:351)
 at reger.db.RunSQL(db.java:64)
 at reger.db.RunSQL(db.java:124)
 at reger.scheduler.MasterThread.setupThread(MasterThread.java:377)
 at reger.scheduler.MasterThread.run(MasterThread.java:48)
 
It looks like the jndi/jdbc resource isn't configured correctly and/or isn't
available to the code from the .war file running inside of the embedded
tomcat.
 
Questions:
1) Is my jndiPrePend variable correct?  It works for a standard deployment
on a non-embedded tomcat.
2) Is there anything special I need to do to get a jndi/jdbc resource
configured under the embedded tomcat?
3) Does the error message I'm seeing point to anything that I need to
change?
 
Thanks,
 
Joe


RE: IIS and Tomcat basic configuration questions

2003-01-23 Thread Wagoner, Mark
No, Tomcat and IIS can be on different machines (the redirector is on the
IIS server, but it is simply a DLL).  One of the entries in the properties
file used to configure the redirector is the name of the machine where
Tomcat is running.  This is how the redirector knows where to redirect the
request to.

-Original Message-
From: Brantley Hobbs [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 23, 2003 10:48 AM
To: [EMAIL PROTECTED]
Subject: IIS and Tomcat basic configuration questions


Hello all.

I'm new to the entire concept of Tomcat and I have a question which I
have not found a clear explanation for.

Does Tomcat have to be installed on the webserver?  In other words, can
I not just install the redirect filter (and not Tomcat, per se) on the
webserver and have it connect (using ajpv13) to a back-end Tomcat
server?  I only want to install the redirect filter on the webserver.
Does a working JVM need to be in place for the filter to work properly?

Brantley Hobbs

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

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




RE: IIS and Tomcat basic configuration questions

2003-01-23 Thread Turner, John

> -Original Message-
> From: Brantley Hobbs [mailto:[EMAIL PROTECTED]]
> 
> Hello all.
> 
> I'm new to the entire concept of Tomcat and I have a question which I
> have not found a clear explanation for.
> 
> Does Tomcat have to be installed on the webserver?  

No.

> In other 
> words, can
> I not just install the redirect filter (and not Tomcat, per se) on the
> webserver and have it connect (using ajpv13) to a back-end Tomcat
> server?  

Yes.

> I only want to install the redirect filter on the webserver.
> Does a working JVM need to be in place for the filter to work 
> properly?

No, the JVM goes on the server running Tomcat, as Tomcat is the Java
application that requires it.  The redirector is just a DLL.

> 
> Brantley Hobbs
> 

John


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: IIS and Tomcat basic configuration questions

2003-01-23 Thread Hari Venkatesan
Take a look at this site. It has step by step installation instructions

http://www.onjava.com/pub/ct/33

Hari

-Original Message-
From: Brantley Hobbs [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 23, 2003 10:48 AM
To: [EMAIL PROTECTED]
Subject: IIS and Tomcat basic configuration questions

Hello all.

I'm new to the entire concept of Tomcat and I have a question which I
have not found a clear explanation for.

Does Tomcat have to be installed on the webserver?  In other words, can
I not just install the redirect filter (and not Tomcat, per se) on the
webserver and have it connect (using ajpv13) to a back-end Tomcat
server?  I only want to install the redirect filter on the webserver.
Does a working JVM need to be in place for the filter to work properly?

Brantley Hobbs

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


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




mod_jserv vs. mod_jk (configuration questions for workers.properties)

2001-01-10 Thread Max Clark

I have been browsing through the documentation and have hit a wall. I want
to run Apache and Tomcat on separate machines. More than that I want to load
balance my Tomcat application servers. I have done this in the past using
mod_jserv to talk to jserv servers and it worked pretty well.

>From what I have gathered I want to use mod_jk with ajp v1.3. I understand
everything in the mod_jk.conf-auto and the workers.properties except... the
workers.properties file defines tomcat specific variables (i.e.
workers.tomcat_home, workers.java_home, classpaths etc...). How can I define
tomcat internals from an apache machine that doesn't have tomcat installed?
What do I need to define within the workers.properties to have my apache
machines connect to the tomcat machines.

Do I have to install tomcat on all of the machines? What about a jdk? Has
anybody done this? Can somebody help me with this config?

Thanks in advance,

-Max

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




RE: mod_jserv vs. mod_jk (configuration questions for workers.propert ies)

2001-01-10 Thread Michael Kuz
Title: RE: mod_jserv vs. mod_jk (configuration questions for workers.propert ies)





Hey Max, 
We've (almost) got the same setup: Multiple Apache boxes (LVSed) and multiple Tomcat boxes in a load balanced setup (via mod_jk)

All of out Tomcat boxes are identical, so we set the 'home' type attributes of the worker.properties file to where they are on the _Tomcat_ machines. 

Our Apache boxes just have Apache on them (no jdk etc)
It seems to be working fine.. Hope that helped.
mk


Michael R. Kuz
Developer
Service Intelligence
(403) 261-5000 ext. 363
[EMAIL PROTECTED]


> -Original Message-
> From: Max Clark [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 10, 2001 12:50 PM
> To: '[EMAIL PROTECTED]'
> Subject: mod_jserv vs. mod_jk (configuration questions for
> workers.propert ies)
> 
> 
> I have been browsing through the documentation and have hit a 
> wall. I want
> to run Apache and Tomcat on separate machines. More than that 
> I want to load
> balance my Tomcat application servers. I have done this in 
> the past using
> mod_jserv to talk to jserv servers and it worked pretty well.
> 
> From what I have gathered I want to use mod_jk with ajp v1.3. 
> I understand
> everything in the mod_jk.conf-auto and the workers.properties 
> except... the
> workers.properties file defines tomcat specific variables (i.e.
> workers.tomcat_home, workers.java_home, classpaths etc...). 
> How can I define
> tomcat internals from an apache machine that doesn't have 
> tomcat installed?
> What do I need to define within the workers.properties to 
> have my apache
> machines connect to the tomcat machines.
> 
> Do I have to install tomcat on all of the machines? What 
> about a jdk? Has
> anybody done this? Can somebody help me with this config?
> 
> Thanks in advance,
> 
> -Max
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 





RE: mod_jserv vs. mod_jk (configuration questions for workers.pro pert ies)

2001-01-10 Thread Max Clark
Title: RE: mod_jserv vs. mod_jk (configuration questions for workers.propert ies)



Wait... So you copied the workers.properties file from the tomcat machine 
and put it onto the apache servers. The apache servers have the mod_jk, no java, 
no tomcat and everything works? So even though the workers.properties file has 
classpaths and everything else the proxy connection works.
 
Thanks,
 
mc

  -Original Message-From: Michael Kuz 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, January 10, 
  2001 12:34 PMTo: 
  '[EMAIL PROTECTED]'Subject: RE: mod_jserv vs. mod_jk 
  (configuration questions for workers.pro pert ies)
  Hey Max, We've (almost) got the same 
  setup: Multiple Apache boxes (LVSed) and multiple Tomcat boxes in a load 
  balanced setup (via mod_jk)
  All of out Tomcat boxes are identical, so we set the 'home' 
  type attributes of the worker.properties file to where they are on the 
  _Tomcat_ machines. 
  Our Apache boxes just have Apache on them (no jdk etc) 
  It seems to be working fine.. Hope that helped. 
  mk 
  Michael R. Kuz Developer 
  Service Intelligence (403) 261-5000 
  ext. 363 [EMAIL PROTECTED] 
  > -Original Message- > 
  From: Max Clark [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 10, 2001 12:50 PM > To: '[EMAIL PROTECTED]' > 
  Subject: mod_jserv vs. mod_jk (configuration questions for > workers.propert ies) > > > I have been browsing through the 
  documentation and have hit a > wall. I want 
  > to run Apache and Tomcat on separate machines. More than 
  that > I want to load > 
  balance my Tomcat application servers. I have done this in > the past using > mod_jserv to talk to 
  jserv servers and it worked pretty well. > 
  > From what I have gathered I want to use mod_jk 
  with ajp v1.3. > I understand > everything in the mod_jk.conf-auto and the workers.properties 
  > except... the > 
  workers.properties file defines tomcat specific variables (i.e. 
  > workers.tomcat_home, workers.java_home, classpaths 
  etc...). > How can I define > tomcat internals from an apache machine that doesn't have 
  > tomcat installed? > 
  What do I need to define within the workers.properties to > have my apache > machines connect to 
  the tomcat machines. > > 
  Do I have to install tomcat on all of the machines? What > about a jdk? Has > anybody done this? 
  Can somebody help me with this config? > 
  > Thanks in advance, > 
  > -Max > 
  > 
  - 
  > To unsubscribe, e-mail: 
  [EMAIL PROTECTED] > For 
  additional commands, email: [EMAIL PROTECTED] 
  >