Re: Reading from files in servlet from Tomcat-4.0.4

2002-08-12 Thread TOMITA_ALEX_NONLILLY

Hi,

you need to put the file in /TOMCAT_HOME/bin

I had the same problem and first I made a simple servlet code that writes 
a txt file, then I look for that file and Tomcat put it in 
/TOMCAT_HOME/bin

regards
Alex Tomita






khozaima shakir [EMAIL PROTECTED]
10/08/2002 04:30 p.m.
Please respond to Tomcat Users List

 
To: [EMAIL PROTECTED]
cc: 
Subject:Reading from files in servlet from Tomcat-4.0.4



Hi all,
I am trying to read from a file : filename
Where should i put this file in tomcat 4.0.4 directory structure?
I tried putting the file in directories:
webapps/ROOT, webapps/ROOT/WEB-INF, webapps/ROOT/WEB-INF/classes  in each 
instance i get the error message
The system cannot find the file specified

I used following statement in servlet code.
bufferin = new BufferedReader(new InputStreamReader(new 
FileInputStream(fileName)));

Thanks
Khozaima


_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


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






Quick Question

2002-08-12 Thread TOMITA_ALEX_NONLILLY

Hi all,

I wrote a simple java bean that reads a txt file, the problem is where do 
I need to put the txt file??...
What is the default directory in Tomcat??

when I put something like this in my java bean : 
FileReader(config.txt) 
Where does tomcat look for that file?

thanks
Alex



RE: Quick Question

2002-08-13 Thread TOMITA_ALEX_NONLILLY

Hi all,

I'm trying to resolve this problem with all the solutions that you gave 
me,  but it doesn't work...
This is what I did:

in my java bean (not a servlet), I have this code:


public class DbBean {
   public  int Connect()  {
   InputStream is = 
Thread.currentThread().getContextClassLoader().getResourceAsStream(config.txt);
if (is == null) {
return 0;
}
else {
return 1;
}
}


then in my jsp, I called this method, and then I write the value (0 or 
1)..

The txt file is in WEB-INF/classes/beans..., because DbBean is in a 
package called beans, and I start tomcat from TOMCAT_HOME/bin..
When I load the jsp, the method Connect of the DbBean (java bean) returned 
0, which means the InputStream is null, but if I put the txt file in
TOMCAT_HOME/bin, I had no problem, the method returned 1  why is 
that??.. I'm using Tomcat 3.2
Do I need to set something else in Tomcat??

thanks again
Alex Tomita













Drinkwater, GJ (Glen) [EMAIL PROTECTED]
13/08/2002 08:11 a.m.
Please respond to Tomcat Users List

 
To: Tomcat Users List [EMAIL PROTECTED]
cc: 
Subject:RE: Quick Question




tomcats default directory is where ever you called the startup.sh/bat 
file.
So if you dont use another script to call the startup.sh/bat file tomcats
default will be the bin directory.

Use this code to find the directory where WEB-INF is.  Then you can 
traverse
your directory structure from there. 

//get context path
ServletConfig scon = null ;
String workingDir = null;
 
public void init(ServletConfig config) {
scon = config ;
 }
 public void doPost(HttpServletRequest request, HttpServletResponse
response)
throws ServletException, IOException {
 
//get working dir
ServletContext sc = scon.getServletContext();
workingDir = sc.getRealPath();


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






Re: Re[2]: Quick Question

2002-08-13 Thread TOMITA_ALEX_NONLILLY

My bean is WEB-INF/classes






Jacob Kjome [EMAIL PROTECTED]
13/08/2002 10:43 a.m.
Please respond to Tomcat Users List

 
To: Tomcat Users List [EMAIL PROTECTED]
cc: 
Subject:Re[2]: Quick Question



Hello TOMITA,

Where does your Bean exist?  Is it in one of Tomcat's classloaders, or
is it running out the WEB-INF/classes or WEB-INF/lib folder of your
webapp.  I'm geussing the it is in one of Tomcat's classloaders
meaning $CATALINA_HOME/common/lib, server/lib, or lib (shared/lib in
Tomcat-4.1.x).

Those classloaders can't see the individual webapp classloaders.
However, libraries in your webapp *can* see Tomcat's plublic
classloaders (all bug server/lib, server/classes).

You may have to rearrange the location of your libraries.

Jake

Tuesday, August 13, 2002, 9:29:19 AM, you wrote:

TLC Hi all,

TLC I'm trying to resolve this problem with all the solutions that you 
gave 
TLC me,  but it doesn't work...
TLC This is what I did:

TLC in my java bean (not a servlet), I have this code:


TLC public class DbBean {
TLCpublic  int Connect()  {
TLCInputStream is = 
TLC 
Thread.currentThread().getContextClassLoader().getResourceAsStream(config.txt);
TLC if (is == null) {
TLC return 0;
TLC }
TLC else {
TLC return 1;
TLC }
TLC }


TLC then in my jsp, I called this method, and then I write the value (0 
or 
TLC 1)..

TLC The txt file is in WEB-INF/classes/beans..., because DbBean is in 
a 
TLC package called beans, and I start tomcat from TOMCAT_HOME/bin..
TLC When I load the jsp, the method Connect of the DbBean (java bean) 
returned 
TLC 0, which means the InputStream is null, but if I put the txt file in
TLC TOMCAT_HOME/bin, I had no problem, the method returned 1  why 
is 
TLC that??.. I'm using Tomcat 3.2
TLC Do I need to set something else in Tomcat??

TLC thanks again
TLC Alex Tomita













TLC Drinkwater, GJ (Glen) [EMAIL PROTECTED]
TLC 13/08/2002 08:11 a.m.
TLC Please respond to Tomcat Users List

 
TLC To: Tomcat Users List [EMAIL PROTECTED]
TLC cc: 
TLC Subject:RE: Quick Question




TLC tomcats default directory is where ever you called the startup.sh/bat 

TLC file.
TLC So if you dont use another script to call the startup.sh/bat file 
tomcats
TLC default will be the bin directory.

TLC Use this code to find the directory where WEB-INF is.  Then you can 
TLC traverse
TLC your directory structure from there. 

TLC //get context path
TLC ServletConfig scon = null ;
TLC String workingDir = null;
 
TLC public void init(ServletConfig config) {
TLC scon = config ;
TLC  }
TLC  public void doPost(HttpServletRequest request, HttpServletResponse
TLC response)
TLC throws ServletException, IOException {
 
TLC //get working dir
TLC ServletContext sc = scon.getServletContext();
TLC workingDir = sc.getRealPath();


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






-- 
Best regards,
 Jacobmailto:[EMAIL PROTECTED]


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






Re: Re[2]: Quick Question

2002-08-13 Thread TOMITA_ALEX_NONLILLY

Can I use something like this in my jsp page (instead of a java sevlet) to 
get the parameter name?,
before that I set the parameter in my web.xml file like this:

context-param
  param-nameparameter name/param-name
  param-valuelocalhost/param-value
/context-param

String value =  getServletContext().getInitParameter(parameter name);

because I'm confusing here because of the name getServletContext. is 
it only works in a sevlet or it will work too in a jsp page???

thanks again 
Alex Tomita








[EMAIL PROTECTED]
13/08/2002 10:54 a.m.
Please respond to Tomcat Users List

 
To: Tomcat Users List [EMAIL PROTECTED]
cc: Tomcat Users List [EMAIL PROTECTED]
Subject:Re: Re[2]: Quick Question



My bean is WEB-INF/classes






Jacob Kjome [EMAIL PROTECTED]
13/08/2002 10:43 a.m.
Please respond to Tomcat Users List

 
To: Tomcat Users List [EMAIL PROTECTED]
cc: 
Subject:Re[2]: Quick Question



Hello TOMITA,

Where does your Bean exist?  Is it in one of Tomcat's classloaders, or
is it running out the WEB-INF/classes or WEB-INF/lib folder of your
webapp.  I'm geussing the it is in one of Tomcat's classloaders
meaning $CATALINA_HOME/common/lib, server/lib, or lib (shared/lib in
Tomcat-4.1.x).

Those classloaders can't see the individual webapp classloaders.
However, libraries in your webapp *can* see Tomcat's plublic
classloaders (all bug server/lib, server/classes).

You may have to rearrange the location of your libraries.

Jake

Tuesday, August 13, 2002, 9:29:19 AM, you wrote:

TLC Hi all,

TLC I'm trying to resolve this problem with all the solutions that you 
gave 
TLC me,  but it doesn't work...
TLC This is what I did:

TLC in my java bean (not a servlet), I have this code:


TLC public class DbBean {
TLCpublic  int Connect()  {
TLCInputStream is = 
TLC 
Thread.currentThread().getContextClassLoader().getResourceAsStream(config.txt);
TLC if (is == null) {
TLC return 0;
TLC }
TLC else {
TLC return 1;
TLC }
TLC }


TLC then in my jsp, I called this method, and then I write the value (0 
or 
TLC 1)..

TLC The txt file is in WEB-INF/classes/beans..., because DbBean is in 

a 
TLC package called beans, and I start tomcat from TOMCAT_HOME/bin..
TLC When I load the jsp, the method Connect of the DbBean (java bean) 
returned 
TLC 0, which means the InputStream is null, but if I put the txt file in
TLC TOMCAT_HOME/bin, I had no problem, the method returned 1  why 

is 
TLC that??.. I'm using Tomcat 3.2
TLC Do I need to set something else in Tomcat??

TLC thanks again
TLC Alex Tomita













TLC Drinkwater, GJ (Glen) [EMAIL PROTECTED]
TLC 13/08/2002 08:11 a.m.
TLC Please respond to Tomcat Users List

 
TLC To: Tomcat Users List [EMAIL PROTECTED]
TLC cc: 
TLC Subject:RE: Quick Question




TLC tomcats default directory is where ever you called the startup.sh/bat 


TLC file.
TLC So if you dont use another script to call the startup.sh/bat file 
tomcats
TLC default will be the bin directory.

TLC Use this code to find the directory where WEB-INF is.  Then you can 
TLC traverse
TLC your directory structure from there. 

TLC //get context path
TLC ServletConfig scon = null ;
TLC String workingDir = null;
 
TLC public void init(ServletConfig config) {
TLC scon = config ;
TLC  }
TLC  public void doPost(HttpServletRequest request, HttpServletResponse
TLC response)
TLC throws ServletException, IOException {
 
TLC //get working dir
TLC ServletContext sc = scon.getServletContext();
TLC workingDir = sc.getRealPath();


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






-- 
Best regards,
 Jacobmailto:[EMAIL PROTECTED]


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








Access Parameter

2002-08-13 Thread TOMITA_ALEX_NONLILLY

Can I use something like this in my jsp page (instead of a java sevlet) to 

get the parameter name?,
before that I set the parameter in my web.xml file like this:

context-param
  param-nameparameter name/param-name
  param-valuelocalhost/param-value
/context-param

String value =  getServletContext().getInitParameter(parameter name);

is it only works in a sevlet or will it work in a jsp page too???

thanks again 
Alex Tomita



Re: Re[4]: Quick Question

2002-08-13 Thread TOMITA_ALEX_NONLILLY

thanks for the information, I'm going to test it out.







Michael E. Locasto [EMAIL PROTECTED]
13/08/2002 12:34 p.m.
Please respond to Tomcat Users List

 
To: Tomcat Users List [EMAIL PROTECTED]
cc: 
Subject:Re: Re[4]: Quick Question



Check out the API too.

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/servletapi/index.html


Regards,
Michael

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, August 13, 2002 1:08 PM
Subject: Re: Re[4]: Quick Question



 Hi, Alex.

  Since JSP's are turned into servlets before they are executed, I
don't
 see why you couldn't do this.  For your convenience, JSP's have some
common
 objects already available for use.  The application object is 
equivalent
to
 the javax.servlet.ServletContext object you would get by doing a
 getServletContext() call.  So, application.getInitParameter(key) 
should
do
 the trick, too.

 HTH,
 -Jeff




 Jacob Kjome
 [EMAIL PROTECTED]To: Tomcat Users List
[EMAIL PROTECTED]
 m   cc:
  Subject: Re[4]: Quick
Question
 08/13/02
 12:00 PM
 Please
 respond to
 Jacob Kjome







 Hello TOMITA,

 I know next to nothing about JSP.  Haven't touched it.  I use XMLC and
 Barracuda to do presentation.  However, I would think that you should
 be able to use getServletContext() or something analogous in JSP.

 Jake

 Tuesday, August 13, 2002, 11:13:44 AM, you wrote:

 TLC Can I use something like this in my jsp page (instead of a java
sevlet)
 to
 TLC get the parameter name?,
 TLC before that I set the parameter in my web.xml file like this:

 TLC context-param
 TLC   param-nameparameter name/param-name
 TLC   param-valuelocalhost/param-value
 TLC /context-param

 TLC String value =  getServletContext().getInitParameter(parameter
name);

 TLC because I'm confusing here because of the name
getServletContext.
 is
 TLC it only works in a sevlet or it will work too in a jsp page???

 TLC thanks again
 TLC Alex Tomita








 TLC [EMAIL PROTECTED]
 TLC 13/08/2002 10:54 a.m.
 TLC Please respond to Tomcat Users List


 TLC To: Tomcat Users List [EMAIL PROTECTED]
 TLC cc: Tomcat Users List [EMAIL PROTECTED]
 TLC Subject:Re: Re[2]: Quick Question



 TLC My bean is WEB-INF/classes






 TLC Jacob Kjome [EMAIL PROTECTED]
 TLC 13/08/2002 10:43 a.m.
 TLC Please respond to Tomcat Users List


 TLC To: Tomcat Users List [EMAIL PROTECTED]
 TLC cc:
 TLC Subject:Re[2]: Quick Question



 TLC Hello TOMITA,

 TLC Where does your Bean exist?  Is it in one of Tomcat's classloaders,
or
 TLC is it running out the WEB-INF/classes or WEB-INF/lib folder of your
 TLC webapp.  I'm geussing the it is in one of Tomcat's classloaders
 TLC meaning $CATALINA_HOME/common/lib, server/lib, or lib (shared/lib 
in
 TLC Tomcat-4.1.x).

 TLC Those classloaders can't see the individual webapp classloaders.
 TLC However, libraries in your webapp *can* see Tomcat's plublic
 TLC classloaders (all bug server/lib, server/classes).

 TLC You may have to rearrange the location of your libraries.

 TLC Jake

 TLC Tuesday, August 13, 2002, 9:29:19 AM, you wrote:

 TLC Hi all,

 TLC I'm trying to resolve this problem with all the solutions that you
 TLC gave
 TLC me,  but it doesn't work...
 TLC This is what I did:

 TLC in my java bean (not a servlet), I have this code:


 TLC public class DbBean {
 TLCpublic  int Connect()  {
 TLCInputStream is =
 TLC
 TLC Thread.currentThread().getContextClassLoader().getResourceAsStream
 (config.txt);
 TLC if (is == null) {
 TLC return 0;
 TLC }
 TLC else {
 TLC return 1;
 TLC }
 TLC }


 TLC then in my jsp, I called this method, and then I write the value 
(0
 TLC or
 TLC 1)..

 TLC The txt file is in WEB-INF/classes/beans..., because DbBean is
in

 TLC a
 TLC package called beans, and I start tomcat from TOMCAT_HOME/bin..
 TLC When I load the jsp, the method Connect of the DbBean (java bean)
 TLC returned
 TLC 0, which means the InputStream is null, but if I put the txt file 
in
 TLC TOMCAT_HOME/bin, I had no problem, the method returned 1
why

 TLC is
 TLC that??.. I'm using Tomcat 3.2
 TLC Do I need to set something else in Tomcat??

 TLC thanks again
 TLC Alex Tomita













 TLC Drinkwater, GJ (Glen) [EMAIL PROTECTED]
 TLC 13/08/2002 08:11 a.m.
 TLC Please respond to Tomcat Users List


 TLC To: Tomcat Users List [EMAIL PROTECTED]
 TLC cc:
 TLC Subject:RE: Quick Question




 TLC tomcats default directory is where ever you called the
startup.sh/bat


 TLC file.
 TLC So if you dont use another script to call the startup.sh/bat file
 

Re: Access Parameter

2002-08-14 Thread TOMITA_ALEX_NONLILLY

thanks to all...

finally I resolved my problem, to get a parameter I used 
application.getIniParameter(parameter name)  in my jsp page..


thanks again
Alex





Cédric Viaud [EMAIL PROTECTED]
14/08/2002 07:57 a.m.
Please respond to Tomcat Users List

 
To: Tomcat Users List [EMAIL PROTECTED]
cc: 
Subject:Re: Access Parameter



As JSP are compiled as servlets, you can do with JSP everything you can 
do
with servlets.

Check for the exact syntax.

Regards,

   Cédric

- Original Message -
From: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, August 13, 2002 6:32 PM
Subject: Access Parameter


 Can I use something like this in my jsp page (instead of a java sevlet) 
to

 get the parameter name?,
 before that I set the parameter in my web.xml file like this:

 context-param
   param-nameparameter name/param-name
   param-valuelocalhost/param-value
 /context-param

 String value =  getServletContext().getInitParameter(parameter name);

 is it only works in a sevlet or will it work in a jsp page too???

 thanks again
 Alex Tomita




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







Re: Bean on Tomcat

2002-08-14 Thread TOMITA_ALEX_NONLILLY

I'm using java beans in Tomcat (not EJB), and I just put them in 
WEB-INF/classes...

regards
Alex







Cédric Viaud [EMAIL PROTECTED]
14/08/2002 07:59 a.m.
Please respond to Tomcat Users List

 
To: Tomcat Users List [EMAIL PROTECTED]
cc: 
Subject:Re: Bean on Tomcat



Hi,

may you precise what your aiming at ?

If you want tu use EJBs, Tomcat is not en EJB container. You then should
find one (JBoss is free).

Regards,

   Cédric

- Original Message -
From: Vishal Mukherjee [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, August 14, 2002 10:51 AM
Subject: Bean on Tomcat


 Hi all

 Can anyone tell me how to configure beans om Tomcat 4.0.4

 Thanks  Regards
 Vishal Mukherjee


 --
 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: Connection pooling using Jakarta commons

2002-08-14 Thread TOMITA_ALEX_NONLILLY

Hi,

I think you can add those parameters in your web.xml file...

something like this:

context-param
  param-namefactory/param-name
  param-valueorg.apache.commons.dbcp.BasicDataSourceFactory/param-value
/context-param


please, correct me if I'm wrong...

Alex






Capr1ce [EMAIL PROTECTED]
14/08/2002 05:47 a.m.
Please respond to Tomcat Users List

 
To: [EMAIL PROTECTED]
cc: 
Subject:Connection pooling using Jakarta commons



Hi,

I'm new here. My name's Mel. Hi!

Anyway, I have a question that I cannot find an answer for anywhere.
I've implemented connection pooling using Tomcat 4.0 and the required 
projects from Jakarta commons as instructed in the JNDI resources how to 
that can be found with in the Tomcat documentation. 
(http://jakarta.apache.org/tomcat/tomcat-4.0-doc/jndi-resources-howto.html)
I have edited my server.xml and web.xml files and it works perfectly. How 
comes the time for my project to be transferred onto the new web hosting 
companys web site. This is where I have hit a problem. I cannot edit their 

server.xml. Only my own web.xml. So i've added the resource-ref element 
to web.xml:

resource-ref
 res-ref-namejdbc/ocb_clients/res-ref-name
 res-typejavax.sql.DataSource/res-type
 res-authContainer/res-auth
/resource-ref

However, server.xml contains many parameters:

ResourceParams name=jdbc/ocb_clients
 parameter
   namefactory/name
   valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
 /parameter
 parameter
  nameusername/name
  valueusername here/value
 /parameter
 parameter
  namepassword/name
  valuepassword_here/value
 /parameter
 parameter
namedriverClassName/name
valueorg.gjt.mm.mysql.Driver/value
 /parameter
 parameter
   nameurl/name
   valuejdbc:mysql://localhost:3306/ocb_clients/value
 /parameter
/ResourceParams

Can these be included in web.xml somehow? Or do I need to take a different 

approach?
Thanks very much for any help,
Mel.




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






RE: Access Parameter

2002-08-14 Thread TOMITA_ALEX_NONLILLY

thanks for the advice...
Actually I need to learn java servlet Does anyone can recommend me a 
good java servlet book in amazon?

thanks again
Alex







Shapira, Yoav [EMAIL PROTECTED]
14/08/2002 08:13 a.m.
Please respond to Tomcat Users List

 
To: Tomcat Users List [EMAIL PROTECTED]
cc: 
Subject:RE: Access Parameter



Hi,

As JSP are compiled as servlets, you can do with JSP everything you
can
do
with servlets.

... but you shouldn't. 

JSPs are designed mostly for presentation and some associated logic.
Stuff like if this field in the database is this value, then show these
values in HTML. 

Servlets are designed for more powerful and involved processing,
back-end stuff, and not as much presentation. 

Sometimes knowing the conceptual differences between the technologies
and their intended uses can save you a ton of headaches down the road.
While Cedric's comment above has merits, I would say be very careful
before venturing down that path.

Yoav Shapira
Millennium ChemInformatics
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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]





Enterprise Java Beans (EJB)

2002-08-14 Thread TOMITA_ALEX_NONLILLY

Hi 

Does Tomcat support EJB?.
if not, is there a project to migrate tomcat to support EJB?... it will be 
a very nice feature...

Alex




Re: Setting up web pages with tomcat

2002-08-14 Thread TOMITA_ALEX_NONLILLY

Hi, 

it's very simple, you need to create a context in webapps directory under 
tomcat

Tomcat_Home/webapps/yourweb/index.html or index.jsp

then you should go to http://localhost:8080/yourweb/index.html

this is what you need to do

Alex






Gavin Alexander [EMAIL PROTECTED]
14/08/2002 06:10 p.m.
Please respond to Tomcat Users List

 
To: Tomcat Users List [EMAIL PROTECTED]
cc: 
Subject:Setting up web pages with tomcat



Hi,

Simple Question:
I'm just starting out with Tomcat 4.0, using it as a standalone on 
Win2000. 
I cannot find any reference to which directory my own HTML pages should be 

located in and what URLs to use to reach them.
Could somebody advise me?

Gavin


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






RE: Enterprise Java Beans (EJB)

2002-08-15 Thread TOMITA_ALEX_NONLILLY

Thanks for the information !!...






John Naldoza [EMAIL PROTECTED]
14/08/2002 10:20 p.m.
Please respond to Tomcat Users List

 
To: Tomcat Users List [EMAIL PROTECTED]
cc: 
Subject:RE: Enterprise Java Beans (EJB)



Hi,


Perhaps you may want to look into Jboss+Tomcat (http://www.jboss.org) :)


Cheers,


John Clark

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 15, 2002 7:01 AM
To: Tomcat Users List
Subject: Enterprise Java Beans (EJB)


Hi 

Does Tomcat support EJB?.
if not, is there a project to migrate tomcat to support EJB?... it will be 

a very nice feature...

Alex


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






Re: Apache 2.0.40 + mod_jk + Tomcat 4.1.9 + Load Balancing

2002-09-04 Thread TOMITA_ALEX_NONLILLY

I will appreciate it too.

thanks..
Alex





bwinders [EMAIL PROTECTED]
03/09/2002 07:41 p.m.
Please respond to Tomcat Users List

 
To: Tomcat Users List [EMAIL PROTECTED]
cc: 
Subject:Re: Apache 2.0.40 + mod_jk + Tomcat 4.1.9 + Load Balancing


I think it would be great if you were to provide the howto!  When might 
you update your web site?

Brenda

Pascal Forget wrote:

 Hi All,

 Last January I wrote up a document on how to set up Apache 1.3 with
 mod_jk and tomcat 4.0.2 on Linux with load balancing.
 (see www.ubeans.com/tomcat).

 Last week I suceeded in setting up Apache 2.0.40 with mod_jk and
 Tomcat 4.1.9 beta on Linux.

 Is there any interest in this group for me to write up a howto for this
 new setup?

 Pascal



 -- 
 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]





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




RE: Apache Tomcat

2002-09-04 Thread TOMITA_ALEX_NONLILLY

Hi John, I was reading your post and it seems very interesting, I'm a 
newbie with these tomcat stuff... 

I read a lot of emails in the past about the connectors, but what I don't 
understand is what is the function of these connectors... I know that 
Apache and Tomcat use these connectors for integrating jsp technology 
under apache... that's ok, but  what happens internally with Apache and 
Tomcat when I use these connectors???...
The webserver that comes with tomcat, what happens with it? is it 
still working...

thanks
Alex







Turner, John [EMAIL PROTECTED]
04/09/2002 11:40 a.m.
Please respond to Tomcat Users List

 
To: 'Tomcat Users List' [EMAIL PROTECTED]
cc: 
Subject:RE: Apache  Tomcat



Nothing.

Tomcat is great at what it does.  Apache is great at what it does.  Some
people have situations that require both, for various reasons.  Maybe 
there
is an existing site, and dynamic content via Tomcat is a retrofit.  Maybe
their application has a large amount of static content (an image library 
or
other digital asset library, for example).  Any number of things.

There are also security concerns, and usability concerns with running 
Tomcat
stand-alone.  To bind to port 80, Tomcat runs as root.  This is unwise in 
a
production environment.  Apache does not run as root on port 80.  Also, 
many
people do not like to see 8080 or some other port number on their URL, 
and
many corporate firewalls restrict outbound access to ports that are not
email, HTTP, or FTP related (8080 is not one of those). 

There are also problems with CGIs, and other extensions.  Perhaps you have 
a
need for mod_rewrite, or some other Apache module, before the request gets
to Tomcat.  Perhaps you have a significant amount of CGIs (perl, whatever)
that need to run, and only one IP address (and hence, only one port 80). 
So
you would setup Apache name-based virtual hosts on the single IP address,
and direct Tomcat-related requests to Tomcat and let Apache do it's thing
for the others.

There are all sorts of scenarios where Tomcat in stand-alone mode wouldn't
be the optimal choice.

John Turner
[EMAIL PROTECTED]

 -Original Message-
 From: Rui Fernandes [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, September 04, 2002 12:24 PM
 To: Tomcat Users List
 Subject: Apache  Tomcat
 
 
 Why not to use Tomcat alone? What offers the integration of 
 Apache with Tomcat for a pure Java/XML/HTML web site?
 

--
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: Is Tomcat just an add-on?

2002-09-04 Thread TOMITA_ALEX_NONLILLY

but when Tomcat is integrated with Apache, what happens with the webserver 
that comes with Tomcat???  Are ports 80 and 8080 working when both of 
them are integrated???...

Alex






Andy Eastham [EMAIL PROTECTED]
04/09/2002 04:49 p.m.
Please respond to Tomcat Users List

 
To: Tomcat Users List [EMAIL PROTECTED]
cc: 
Subject:RE: Is Tomcat just an add-on?


Ben,

It's both, depending on how you configure it.  It's pretty efficient
standalone, or you can integrate with a web server to serve static content
if you've got high traffic levels.

Andy

 -Original Message-
 From: Ben Austin [mailto:[EMAIL PROTECTED]]
 Sent: 04 September 2002 22:16
 To: [EMAIL PROTECTED]
 Subject: Is Tomcat just an add-on?


 Is Tomcat a web server or is it just an add-on for web servers
 that are not
 servlet-enabled?




 _
 MSN Photos is the easiest way to share and print your photos:
 http://photos.msn.com/support/worldwide.aspx


 --
 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]





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




Re: Documentation

2002-09-30 Thread TOMITA_ALEX_NONLILLY

It would be great to have a website with all the documentation and I 
would love to help building this website...

regards,
Alex






Robert L Sowders [EMAIL PROTECTED]
30/09/2002 04:01 p.m.
Please respond to Tomcat Users List

 
To: Tomcat Users List [EMAIL PROTECTED]
cc: 
Subject:Documentation


Since most of the questions to tomcat-users list concern installation and 
configuration issues it demonstrates that there is a real need for Tomcat 
to have a documentation project that it's users can contribute to. Right 

now most of the documentation consists of the xdocs which are pretty good, 

but can be so much more.  The developers obviously have little time to 
maintain the present documentation and there is such an apparent need that 

I wonder why a project for the documentation has not been started.

There are many doc-projects out there to emulate.  I especially like the 

one that the apache folks have running, the new xml documentation for 
Apache 2.0 is probably the best I've seen. 

I'm sure that many people would be willing to devote some time to 
organizing and maintaining input from the community into a resource that 
would benefit everyone.  I for one would be willing to contribute, but 
right now there is nothing an nowhere to submit to.

Should the developers of Tomcat initiate a project for the documentation? 
Or should we?  The Apache folks seem to have solved this issue, it remains 

to be solved for Tomcat.
 
Have a look at some examples of opensouce projects which have solved their 

documentation problems:

http://httpd.apache.org/docs-project/
http://www.freebsd.org/docproj/
http://www.debian.org/doc/ddp
http://developer.gnome.org/projects/gdp/
http://www.mulberrytech.com/dsssl/dsssldoc/index.html
http://pm-doc.sourceforge.net/
http://zdp.zope.org/
http://www.tldp.org/

rls

--
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]