Re: Factory methods.

2003-10-28 Thread Micael
They create objects -- the are an object factory/maker.

At 05:05 PM 10/28/2003 +0530, you wrote:
Why are some methods called factory methods?
e.g. prepareStatement() in java.sql.PreparedStatement
-
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]


RE: Hosting

2003-10-13 Thread Micael
I have found http://www.lunarpages.com unbeatable.

At 08:04 PM 10/12/2003 -0700, Richard Mixon (qwest) wrote:
We are extremely happy with the support, capabilities and overall value 
offered by http://www.mmaweb.net .  If your site is
commercial or is critical that it be available, I would check them out. We 
have tried some cheaper sites, but it was not worth the
grief. Their support staff is very knowledgable, responsive and helpful. 
Also, all of their equipment runs Sun Solaris on SPARC
boxes.

-Original Message-
From: Rafael Angarita [mailto:[EMAIL PROTECTED]
Sent: Sunday, October 12, 2003 8:01 PM
To: Tomcat Users List
Subject: Hosting
  Hi,

  I know this could be a little off topic, but I would like some 
suggestions about with alternatives to host my website (I need a
mysql DB and J2EE support)

  Thanks in advance,



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


LEGAL NOTICE

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



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


Re: OT: Apologies

2003-09-24 Thread Micael
Aoccdrnig to a rscheearch at Cmabrigde Uinervtisy, it deosn't
mttaer in waht oredr the ltteers in a wrod are, the olny iprmoetnt tihng is
taht the frist and lsat ltteer be at the rghit pclae. The rset can be
a total mses and you can sitll raed it wouthit porbelm. Tihs is
bcuseae the huamn mnid deos not raed ervey lteter by istlef, but the
wrod as a wlohe.


At 07:50 AM 9/24/2003 +0200, you wrote:


I5 t43r3 a pr06l3m h3r3 ?





On Mon, 22 Sep 2003, Christopher Williams wrote:

 Sorry, folks, I didn't mean to start a flame war.  Also, I certainly didn't
 mean to call anybody a moron - I simply meant that sloppy writing makes you
 sound less intelligent than you really are (and unpunctuated sentences
 really are harder to read).  I also appreciate that English is not
 everybody's first language.



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


***
* Dr. John Wallis *
* *
* SFB 359: Reaktive Stromungen, Diffusion *
* und Transport   *
* Universität Heidelberg  *
* Im Neuenheimer Feld 294 *
* 69120 Heidelberg*
* *
* Tel. : +49 6221 54 4986 *
* Email: [EMAIL PROTECTED] *
***


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


LEGAL NOTICE

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  

Re: trouble access admin

2003-09-21 Thread Micael
Hi, Dan,

I assume that you tried to login with your admin or manager id and then got 
the status report listed.  That indicates that the code on the page is 
mistaken.  Sounds like a bug.  What version of tomcat are you talking 
about?  Mine worked out of the box, so yours must be a newer version.

Micael

At 01:24 PM 9/21/2003 -0700, you wrote:
Added the admin and manager to the tomcat-users.xml file.

went to login and this is what I got
type Status report
message Invalid direct reference to form login page
description The request sent by the client was syntactically incorrect 
(Invalid direct reference
to form login page).

any thoughts

=

Theres no such thing as a problem unless the servers are on fire!
__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


LEGAL NOTICE

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



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


Re: WAR

2003-09-18 Thread Micael
Try Java in a Nutshell.

At 08:11 AM 9/18/2003 +0100, Jerald Powel wrote:

Hello,

Can anyone tell me, what is the purpose of the WAR file, how does one 
create / implement it? Where may I find doco about WAR please?



thanks

J.

P.S Why WAR? What does it stand for?

-
Want to chat instantly with your online friends? Get the FREE Yahoo!Messenger


LEGAL NOTICE

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



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


Re: article on tomcat performance

2003-09-17 Thread Micael
Also, YES

At 08:59 AM 9/17/2003 +0200, you wrote:
YES

- Original Message -
From: Peter Lin [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, September 17, 2003 5:17 AM
Subject: article on tomcat performance



 It looks like the tomcat performance book probably won't happen, so I am
writing a short article based on some of the benchmark results. I should
have a draft done in a week. Anyone interested in reviewing it?





 peter lin


 -
 Do you Yahoo!?
 Yahoo! SiteBuilder - Free, easy-to-use web site design software
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


LEGAL NOTICE

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



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


Re: [File Upload] How to Increase the Speed of File transfer ??

2003-08-19 Thread Micael
You definitely should use a buffered stream.  Get a book on networking and 
take a look at these issues.  There are many good ones out there.  Network 
Programming by Hughes, et al, is one I have enjoyed.

Micael

At 01:50 AM 8/19/2003 -0700, Bikash Paul wrote:
Hi gang,

I have developed one file transfer(means file
uploading) application for that I have used
swing,servlet and Tomcat4.1.24.Now my problem is the
speed. The speed of manual copy and paste of file on
hard disk of remote computer is faster than my
application.I want to increase the speed of file
transfer.Networking is done through 2MBPS dedicated
ISDN lease line.Any help will be highly appreciated.
I want some suggestion about below factors:

1.Iam sending file to server as block wise of 1024
bytes and my servlet also writes file in remote
destination folder as a block wise of 1024 bytes.If I
increase the block size then is it increase the speed
?
2. I have used DataOutputStream for writing on
outputstream and InputStream for reading,if I used
BufferWriter and BufferReader then is it increase the
speed ?
3.Is there any tuning of tomcat,so that it increase
the speed ?
4.Lastly I have closed all my Input and output stream
object and I have also closed all connection at the
end of file transfer method.
Or is there any other factor for increasing Speed ?

Thanks  Regards
Bikash


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


LEGAL NOTICE

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



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


RE: JNDI References To Tomcat 4.1

2003-08-16 Thread Micael
Thanks, Yoav.  I really could not tell what the question was.

At 03:27 PM 8/15/2003 -0700, Yoav Shapira wrote:
Howdy,
I believe he was referring to external access to tomcat's JNDI provider,
which is tricky.  In-memory is easy and you're right a JDBC resource can
be configured (just like any other JNDI resource).
Of course, if tomcat's JNDI provider moves into its own jakarta-commons
component as we've been discussing, I bet you'd have standalone JNDI very
soon ;)
Yoav Shapira

On Fri, 15 Aug 2003, Micael wrote:

 This is mistaken, if you mean what you say.  There is a JDBC resource
 available via JNDI in Tomcat.  You have to code it, of course, but it
 definitely is available.

 At 02:53 PM 8/15/2003 -0500, Madere, Colin wrote:
 I think your inclinations that Tomcat is not a naming service are correct.
 I have not seen reference to anything that suggests you can set up 
resources
 in Tomcat that are available via JNDI.  JBoss, certainly, as it does 
provide
 a JNDI server (whatever the appropriate name for that is), as I've 
used that
 with JMS/JBossMQ.  AFAIK, the Tomcat JNDI setup stuff is just for 
processes
 internal to Tomcat, but that is an educated guess, not a known fact :)
 
 -Original Message-
 From: Jason Mowat [mailto:[EMAIL PROTECTED]
 Sent: Friday, August 15, 2003 12:14 PM
 To: [EMAIL PROTECTED]
 Subject: JNDI References To Tomcat 4.1
 
 
 Greetings,
 
 I am trying to create a standalone application that references a DBCP on
 Tomcat.  I'm not sure if I can do this; I've seem some articles that 
seem to
 suggest that it can be done, but again, I'm not sure.  I've read
 http://www.mail-archive.com/[EMAIL PROTECTED]/msg08353.html.
 
 I have set up in tomcat/conf/server.xml the following context info:
 
DefaultContext
  Resource name=jdbc/test_db auth=Container
 type=javax.sql.DataSource/
 
  ResourceParams name=jdbc/test_db
parameter
  namefactory/name
  valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/parameter
 
parameter
  namedriverClassName/name
  valueoracle.jdbc.driver.OracleDriver/value
/parameter
 
parameter
  nameurl/name
  valuejdbc:oracle:thin:@internal.sbgh.mb.ca:1521:test/value
 
/parameter
 
parameter
  nameusername/name
  valuetest/value
/parameter
 
parameter
  namepassword/name
  valuetest/value
/parameter
 
parameter
  namemaxActive/name
  value20/value
/parameter
 
parameter
  namemaxIdle/name
  value3/value
/parameter
 
parameter
  namemaxWait/name
  value100/value
/parameter
  /ResourceParams
 
/DefaultContext
 
 Note that I have not created any references in a web.xml, since I will not
 be running an application, per se, from Tomcat.  PERHAPS THIS IS WHERE MY
 PROBLEM IS?
 
 The client code I am using is not a servlet or a JSP; it's a simple 
piece of
 code to see if I can communicate with the database pool on Tomcat as
 configured above.
 
 Hashtable env = new Hashtable();
 env.put(
  Context.INITIAL_CONTEXT_FACTORY,
  org.apache.commons.dbcp.BasicDataSourceFactory
 );
 
 //  ***  THIS IS ANOTHER AREA WHERE I MAY BE WRONG! *** env.put(
  Context.PROVIDER_URL,
  http://localhost:8080;
 );
 
 try {
  InitialContext initCtx = new InitialContext(env);
  DataSource ds =
 (DataSource)initCtx.lookup(java:comp/env/jdbc/test_db);
  Connection conn = ds.getConnection();
  Statement stmt = conn.createStatement();
  ResultSet rset = stmt.executeQuery(SELECT * FROM tbl_test);
  conn.close();
  initCtx.close();
 }
 catch(NamingException e) {
  fail(Naming exception thrown);
 }
 catch (SQLException e) {
  fail(SQL Exception thrown);
 }
 
 I start Tomcat, assuming that the pool is set up.  Then I use the 
client to
 try to get an initial context from it.  This throws a naming exception,
 because it doesn't know how to get an initial context for
 org.apache.commons.dbcp.BasicDataSourceFactory at http://localhost:8080.
 
 My first question: can I do this?
 My second question: If I can't do it like this, do I need to set up a JNDI
 provider (like on JBoss) and set up the pooling there? My final question:
 It feels as if my problem is simply setting up the PROVIDER_URL properly
 so that it can get the context from Tomcat.  I've done LDAP PROVIDER_URLs
 before, but never one that gets a data source factory from a servlet
 container.  Can I use http over port 8080 to get the data source factory?
 Is there a different mechanism for getting the factory from code that 
is not
 residing within the servlet container?  Can this even be done on Tomcat?
 
 I appreciate any help that anyone can provide.
 
 Cheers,
 Jason

RE: JNDI References To Tomcat 4.1

2003-08-15 Thread Micael
This is mistaken, if you mean what you say.  There is a JDBC resource 
available via JNDI in Tomcat.  You have to code it, of course, but it 
definitely is available.

At 02:53 PM 8/15/2003 -0500, Madere, Colin wrote:
I think your inclinations that Tomcat is not a naming service are correct.
I have not seen reference to anything that suggests you can set up resources
in Tomcat that are available via JNDI.  JBoss, certainly, as it does provide
a JNDI server (whatever the appropriate name for that is), as I've used that
with JMS/JBossMQ.  AFAIK, the Tomcat JNDI setup stuff is just for processes
internal to Tomcat, but that is an educated guess, not a known fact :)
-Original Message-
From: Jason Mowat [mailto:[EMAIL PROTECTED]
Sent: Friday, August 15, 2003 12:14 PM
To: [EMAIL PROTECTED]
Subject: JNDI References To Tomcat 4.1
Greetings,

I am trying to create a standalone application that references a DBCP on
Tomcat.  I'm not sure if I can do this; I've seem some articles that seem to
suggest that it can be done, but again, I'm not sure.  I've read
http://www.mail-archive.com/[EMAIL PROTECTED]/msg08353.html.
I have set up in tomcat/conf/server.xml the following context info:

  DefaultContext
Resource name=jdbc/test_db auth=Container
type=javax.sql.DataSource/
ResourceParams name=jdbc/test_db
  parameter
namefactory/name
valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
  /parameter
  parameter
namedriverClassName/name
valueoracle.jdbc.driver.OracleDriver/value
  /parameter
  parameter
nameurl/name
valuejdbc:oracle:thin:@internal.sbgh.mb.ca:1521:test/value
  /parameter

  parameter
nameusername/name
valuetest/value
  /parameter
  parameter
namepassword/name
valuetest/value
  /parameter
  parameter
namemaxActive/name
value20/value
  /parameter
  parameter
namemaxIdle/name
value3/value
  /parameter
  parameter
namemaxWait/name
value100/value
  /parameter
/ResourceParams
  /DefaultContext

Note that I have not created any references in a web.xml, since I will not
be running an application, per se, from Tomcat.  PERHAPS THIS IS WHERE MY
PROBLEM IS?
The client code I am using is not a servlet or a JSP; it's a simple piece of
code to see if I can communicate with the database pool on Tomcat as
configured above.
Hashtable env = new Hashtable();
env.put(
Context.INITIAL_CONTEXT_FACTORY,
org.apache.commons.dbcp.BasicDataSourceFactory
);
//  ***  THIS IS ANOTHER AREA WHERE I MAY BE WRONG! *** env.put(
Context.PROVIDER_URL,
http://localhost:8080;
);
try {
InitialContext initCtx = new InitialContext(env);
DataSource ds =
(DataSource)initCtx.lookup(java:comp/env/jdbc/test_db);
Connection conn = ds.getConnection();
Statement stmt = conn.createStatement();
ResultSet rset = stmt.executeQuery(SELECT * FROM tbl_test);
conn.close();
initCtx.close();
}
catch(NamingException e) {
fail(Naming exception thrown);
}
catch (SQLException e) {
fail(SQL Exception thrown);
}
I start Tomcat, assuming that the pool is set up.  Then I use the client to
try to get an initial context from it.  This throws a naming exception,
because it doesn't know how to get an initial context for
org.apache.commons.dbcp.BasicDataSourceFactory at http://localhost:8080.
My first question: can I do this?
My second question: If I can't do it like this, do I need to set up a JNDI
provider (like on JBoss) and set up the pooling there? My final question:
It feels as if my problem is simply setting up the PROVIDER_URL properly
so that it can get the context from Tomcat.  I've done LDAP PROVIDER_URLs
before, but never one that gets a data source factory from a servlet
container.  Can I use http over port 8080 to get the data source factory?
Is there a different mechanism for getting the factory from code that is not
residing within the servlet container?  Can this even be done on Tomcat?
I appreciate any help that anyone can provide.

Cheers,
Jason
-
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]


LEGAL NOTICE

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this 

Re: Best Tomcat Book, Recommendations???

2003-07-29 Thread Micael
WROX professional series are just great, I think.  I like Ian Darwin's 
work, and he is the new guy with O'Reilly and Tomcat.  I am +1 with John 
Turner on this.

At 08:24 AM 7/29/2003 -0400, you wrote:

As a Wrox author, I have to tell you that your overall impression is 
incorrect.  Books are like anything else: sometimes you think they're 
great, sometimes you think they're not.

To make a sweeping generalization is, in my mind, illogical.

John

Tony LaPaso wrote:

Hi all,
Can some of you recommend a good Tomcat book? In the archives I've read that
the Wrox book, Professional Apache Tomcat, is pretty good but my overall
impression of Wrox books is that they're generally not worth the paper
they're printed on.
I know O'Reilly has a relatively new TC book that looks pretty good. I was
also hoping to find something that covered TC 5, although this is a nice to
have.
Any suggestions?
Thanks.
-
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]


LEGAL NOTICE

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



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


RE: Best Tomcat Book, Recommendations???

2003-07-29 Thread Micael
They are not the right kind of book for that.

At 02:07 PM 7/29/2003 +0100, you wrote:
I wish Wrox would bind the books the same way as O'Reilly though.

-Original Message-
From: epyonne [mailto:[EMAIL PROTECTED]
Sent: 29 July 2003 13:43
To: Tomcat Users List
Subject: Re: Best Tomcat Book, Recommendations???
You are so wrong about Wrox books.  Most of them are very good and
moderately priced.  The Professional Tomcat book from Wrox is an excellent
book.  Of course, there are some discrepancies.  But hey, there is no writer
on earth can catch up 100% with the fast pace of software development.  The
Professional Tomcat book is the best you can get out there.
By the way, I also bought the JBoss book from Wrox and it is very good as
well.  =)
- Original Message -
From: Tony LaPaso [EMAIL PROTECTED]
To: Tomcat User [EMAIL PROTECTED]
Sent: Monday, July 28, 2003 06:11 PM
Subject: Best Tomcat Book, Recommendations???
 Hi all,

 Can some of you recommend a good Tomcat book? In the archives I've read
that
 the Wrox book, Professional Apache Tomcat, is pretty good but my overall
 impression of Wrox books is that they're generally not worth the paper
 they're printed on.

 I know O'Reilly has a relatively new TC book that looks pretty good. I was
 also hoping to find something that covered TC 5, although this is a nice
to
 have.

 Any suggestions?

 Thanks.



 -
 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]
PLEASE READ: The information contained in this email is confidential
and intended for the named recipient(s) only. If you are not an intended
recipient of this email you must not copy, distribute or take any
further action in reliance on it and you should delete it and notify the
sender immediately. Email is not a secure method of communication and
Nomura International plc cannot accept responsibility for the accuracy
or completeness of this message or any attachment(s). Please examine this
email for virus infection, for which Nomura International plc accepts
no responsibility. If verification of this email is sought then please
request a hard copy. Unless otherwise stated any views or opinions
presented are solely those of the author and do not represent those of
Nomura International plc. This email is intended for informational
purposes only and is not a solicitation or offer to buy or sell
securities or related financial instruments. Nomura International plc is
regulated by the Financial Services Authority and is a member of the
London Stock Exchange.


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


LEGAL NOTICE

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



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


Re: mysql connection pool

2003-07-28 Thread Micael
I don't know what is going on in this case but this is normal 
procedure.  When you close the connection, you really are (normally) just 
closing a wrapper to a connection, which, instead of really closing it, 
just sends it back to the pool.  I suspect this is really what is 
happening.  The pools should, I think, have a command like returnToPool() 
rather than close(), but they commonly use close().

At 04:02 PM 7/28/2003 +0200, you wrote:
Hi,
does anyone know why I have to close the connection retrieved from a mysql 
database connection pool ?
Isn't the connection returned to the pool automatically when the object 
goes out of scope?

And why is the datasource.getNumActive() value always 0 even though I have 
multiple connections open ?

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


LEGAL NOTICE

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



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


Re: Where are translated classes stored in Tomcat 5??

2003-07-26 Thread Micael
The xml should tell you where it is.

At 11:25 PM 7/26/2003 +0200, Julien Martin wrote:
Hello,
I am having some problems with tomcat5.  I don't know where translated 
files (something_jsp.java) are stored.  It used to be stored in 
%catalina_home%\work\catalina\localhost\myapp for an app called myapp in 
tomcat 4x and I can't find the file anymore now.  Can you help?
Thanks in advance,
Julien.


LEGAL NOTICE

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



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


Re: Scheduling within Tomcat

2003-07-21 Thread Micael
I would suggest you look at Doug Lea's concurrent programming, which I 
think is scheduled to be partly included in j2se 1.5.

At 09:51 AM 7/22/2003 +0800, you wrote:
How about this : http://jcrontab.sourceforge.net  ?
Works for me.
Tim Shaw wrote:

Linux RH8, TC 4.1.24

I have an app I want to run regularly, so I've exposed the URI, and used 
wget to trigger it from a cron job. I also want to run this (or sub-set) 
at a particular point in time (e.g. 3:27mins in the future).

If I provide an app that uses the java...Timer, can I just use it or are 
there any restrictions on thread control etc in TC. (I'd create the Timer 
in the init and use the post/get to schedule/deschedule commands).

If I want to move to JBoss with TC serving ...?

I guess I would use a Timer MBean in TC 5?

Thoughts? and thanks

tim

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


LEGAL NOTICE

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



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


Re: Tomcat on windows 98

2003-07-08 Thread Micael
Works fine on Win98.

At 09:31 AM 7/8/03 +0100, you wrote:
Hi,
Will tomcat4.18  work on windows 98???
I am facing with the installation problems???I have read somewhere on the
net that it wont work on windows 98.
Would you please let me know.
As a work around,after I  installed 4.1.18. and at the command prompt i've
entered into 4.0/bin directory. but the autoexec file contains catalina home
as 4.1.18. and i gave catalina run at 4.0/bin. it has started apache 4.1.18
bcos of catalina home in autoexec is referring to that version of tomcat.
Please  tell me whether it is appropriate to run this service like this.
will i get the features of 4.1.18 like this.
Thanks
GVS


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


LEGAL NOTICE

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



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


Re: Tomcat on windows 98

2003-07-08 Thread Micael
You should not do 5, in my opinion.  You should, rather, provide for each 
individual servlet in your xml files.  There are security problems with 
enabling the invoker servlet.  That is why it is commented out in the first 
place.

At 06:35 PM 7/8/03 +0530, you wrote:

Hello Sirinivas, i am here in sending u it again

  1.. Install the JDK. Make sure you have JDK 1.3 or 1.4 installed and your
PATH set so that both java -version and javac -help give a result.
  2.. Configure Tomcat.
  3.. Download the software. Go to
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/ and download
and unpack the zip file for the latest version (4.1.24 as of last revision
of this page).
  4.. Enable the ROOT context. Edit install_dir/conf/server.xml and
uncomment this line: Context path= docBase=ROOT debug=0/. Not
necessary in Tomcat 4.0.3 and earlier. In Tomcat 5.0.3, the element is
missing the trailing slash and you need to add it.
  5.. Enable the invoker servlet. Go to install_dir/conf/web.xml and
uncomment the servlet-mapping element that maps the invoker servlet to
/servlet/*. Not necessary prior to Tomcat 4.1.12.
  6.. Change the port to 80. Edit install_dir/conf/server.xml and change the
port attribute of the Connector element from 8080 to 80.
  7.. Turn on servlet reloading. Edit install_dir/conf/server.xml and add a
DefaultContext subelement to the main Service element and supply true for
the reloadable attribute.
  8.. Set the JAVA_HOME variable. Set it to refer to the base JDK directory,
not the bin subdirectory.
  9.. Change the DOS memory settings. If you get an Out of Environment
Space error message when you start the server, right-click on
install_dir/bin/startup.bat, select Properties, select Memory, and change
the Initial Environment entry from Auto to at least 2816. Repeat the process
for install_dir/bin/shutdown.bat.
  10.. Set the CATALINA_HOME variable. Optionally, set CATALINA_HOME to
refer to the top-level Tomcat installation directory.
  11.. Test the server.
  12.. Verify that you can start the server. Double-click
install_dir/bin/startup.bat and try accessing http://localhost/.
  13.. Check that you can access your own HTML  JSP pages. Drop some simple
HTML and JSP pages into install_dir/webapps/ROOT and access them with
http://localhost/filename.
  14.. Set up your development environment.
  15.. Create a development directory. Put it anywhere except within the
Tomcat installation hierarchy.
  16.. Make shortcuts to the Tomcat startup  shutdown Scripts. Put
shortcuts to install_dir/bin/startup.bat and install_dir/bin/shutdown.bat in
your development directory and/or on your desktop.
  17.. Set your CLASSPATH. Include the current directory (.),
install_dir/common/lib/servlet.jar, and the main development directory.
  18.. Bookmark the servlet  JSP javadocs. Add
install_dir/webapps/tomcat-docs/servletapi/index.html to your
bookmarks/favorites list.
  19.. Compile and test some simple servlets.
  20.. Test a packageless servlet. Compile a simple servlet, put the .class
file in install_dir/webapps/ROOT/WEB-INF/classes, and access it with
http://localhost/servlet/ServletName.
  21.. Test a servlet that uses packages. Compile the servlet, put the
.class file in install_dir/webapps/ROOT/WEB-INF/classes/packageName, and
access it with http://localhost/servlet/packageName.ServletName.
  22.. Test a servlet that uses packages and utility classes. Follow the
same procedure as the second step above. This third step verifies that the
CLASSPATH includes the top level of your development directory.
  23.. Establish a simplified deployment method.
  24.. Copy to a shortcut. Make a shortcut to install_dir/webapps/ROOT. Copy
packageless .class files directly there. With packages, copy the entire
directory there.
  25.. Use the -d option of javac. Use -d to tell Java where the deployment
directory is.
  26.. Let your IDE take care of deployment. Tell your IDE where the
deployment directory is and let it copy the necessary files.
  27.. Use ant or a similar tool. Use the Apache make-like tool to automate
copying of files.


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


LEGAL NOTICE

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



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

Re: Accessing databases...

2003-07-01 Thread Micael
I wholeheartedly endorse this approach, using value objects and a composite 
entity pattern.  The book on j2ee patterns shows a lot on how to do all 
this.  It is a really valuable book if followed.

At 11:38 AM 7/1/03 -0400, you wrote:
Depending on your app, you might find the the Data Access Object design 
pattern useful:

http://java.sun.com/blueprints/corej2eepatterns/Patterns/DataAccessObject.html

At 7/1/2003 10:47 AM, you wrote:
Hi, could anyone tell me which's the best way to access databases within a
tomcat webapp?? is it better to use beans or scriptlets?
thanks...

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


LEGAL NOTICE

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



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


Re: Proper way to deal with serialization of session attribute with Logger attribute

2003-05-27 Thread Micael
At 12:31 PM 5/27/03 -0500, you wrote:

Normally, loggers should be created as class static variable which are, 
effectively, transient already.  Why would you want instance loggers 
anyway?  Loggers are thread safe.  Just make it static.  You can deal with 
creating a new logger in the readObject() when the object is deserialized.

Jake

At 10:09 AM 5/27/2003 -0700, you wrote:
I'm using JDK 1.4.1, and Tomcat 4.1.24.

I was seeing a strange situation where some cactus/ant tests of mine
would succeed on one run, and then fail on the next, and alternate in
that pattern continuously.
After looking carefully at the Tomcat logs, I discovered that a class
that is instantiated and then put into the session has a Log4J Logger
object.  Tomcat tries to persist that session, but it fails because
Logger is not serializable.
If I want to allow objects of this class to be serialized and
deserialized, how do I deal with the contained Logger object?
The class presently defines it's logger instance variable like this:

protected final Logger logger =
Logger.getLogger(this.getClass());
Do I instead have to make this transient and change all the references
to the logger instance variable to call an accessor which tries to
initialize the value first if it's null?  Or perhaps do I have to add
writeObject() and readObject() methods where the writeObject()
method specifically writes all the fields but this one, and the
readObject() method reads all those fields, and then manually sets the
logger value?


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


LEGAL NOTICE

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  %@ page language='java'  %
%@ taglib uri='struts-bean' 
   prefix='bean' %
%@ taglib uri='struts-html' 
   prefix='html' %
%@ taglib uri='struts-tiles' 
   prefix='tiles' %
%@ page import='com.michaelmcgrady.user.GuiData' %
%@ page import='com.michaelmcgrady.constant.SiteConstant' %

link href='/css/index_css.css' rel='stylesheet' type='text/css'

html:html locale='true'

head
tiles:insert attribute=meta/

titlebean:write name=GuiData property=scheme.title //title
html:base/
!-- This is the JavaScript for chat popups --
script Language=JavaScript
!--
function popup(url, name, width, height)
{
settings=
toolbar=no,location=yes,directories=no,+
status=no,menubar=no,scrollbars=yes,+
resizable=yes,width=+width+,height=+height;

Information=window.open(url,name,settings);
}
//--
/script 
/head
!--body bgcolor='#66'--
body bgcolor='#55'
  text='#ff'
table cellspacing='0' 
   border='1' 
   bordercolor='#99' 
   width='100%' 
   height='100%' 
   valign='middle'
  !--tiles:insert attribute=top_spacing 
ignore='true'/--
  tr height='95%'
td width='100%' 
height='90%'
  table cellspacing='0' 
 align='middle' 
 border='0' 
 bordercolor='#99' 
 width='100%' 
 height='100%'
tr
  !--tiles:insert attribute=left_spacing 
ignore='true'/--
  td width='90%' 
  height='90%'
  border='0'
table cellspacing='0' 
   border='0' 
   width='100%' 
   height='100%'
  tr height='10%'
tiles:insert attribute=banner 
  ignore='true'/
  /tr
  tr height='90%'
  border='0'
td border='0' 
width='100%' 
height='90%' 
valign='top'
  table cellspacing='0' 
 border='0' 
 height='100%' 
 width='100%' 
 valign='top'
tr border='0'
tiles:insert attribute=nav 
  ignore='true'/
tiles:insert attribute=content 
  ignore='true'/
/tr
  /table
/td
  /tr
/table
  /td
  !--tiles:insert attribute=right_spacing 
 

[OT] Thanks: Re: Tomcat vs. JBoss

2003-04-05 Thread Micael
Thanks for these references.  Much appreciated.  The IBM stuff is really 
helpful.

At 01:50 PM 4/5/03 -0500, you wrote:


 Do you know any real-life scenarios where you can't do it with
 Tomcat but need EJB seriously?
The short answer is yes.  But this is really getting off-topic for this
list.  As I and several others have pointed out, servlet and JSP technology
are just one aspect of J2EE.
If you need more information, I believe that I already responded to one
questioner who wanted EJB info to take a look at my tutorial Getting
Started with EJB Technology, which is this week's feature at both
developerWorks ( www.ibm.com/developerworks ) and the developerWorks
Java zone ( www.ibm.com/developerworks/java ).  It includes a brief
J2EE overview.
Sun also has a J2EE tutorial, and I saw on the J2EE mailing list that
someone is offering a free online class.
These and the J2EE and EJB mailing list should help clarify your
understanding of what J2EE is about and what servlet technology provides.
 Joe Sam

Joe Sam Shirah -http://www.conceptgo.com
conceptGO -Consulting/Development/Outsourcing
Java Filter Forum:   http://www.ibm.com/developerworks/java/
Just the JDBC FAQs: http://www.jguru.com/faq/JDBC
Going International?http://www.jguru.com/faq/I18N
Que Java400? http://www.jguru.com/faq/Java400


- Original Message -
From: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Sunday, April 06, 2003 1:01 PM
Subject: Re: Tomcat vs. JBoss
 Hi Joe Sam,

 Thanks for your detailed reply.

 Do you know any real-life scenarios where you can't do it with Tomcat but
 need EJB seriously?
 So far I've done any backend-access using Apache Axis (Soap) and haven't
 yet had a great desire to use RMI/EJB remote access with pages of nested
 exceptions if anything goes wrong.

 Thx alot
 Johannes






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


LEGAL NOTICE

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



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


Re: ?? Simple Newbie Question about Root Context ??

2003-03-31 Thread Micael
No, it is not a guess.  I mean has to be.  The default has to be 
hardcoded somewhere, since it is not configured and it does not happen 
magically.

At 05:59 AM 3/31/03 -0600, you wrote:
Well, it sounds like a guess...

- Original Message -
From: Micael [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, March 31, 2003 12:33 AM
Subject: Re: ?? Simple Newbie Question about Root Context ??
 The reason has to be, then, that the startup of the webapp creates a
 default context on its own, because it cannot happen magically.  I hope
 that does not sound smart-alexey but, rather, clear.



 At 08:14 PM 3/30/03 -0600, you wrote:
 But my point is that everything works fine even *with* the comment. THAT
is
 what's confusing.
 
 
 - Original Message -
 From: Carol Carrick [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Sunday, March 30, 2003 4:20 PM
 Subject: Re: ?? Simple Newbie Question about Root Context ??
 
 
   The website I sent tells you to take the comments out.
   - Original Message -
   From: Tony LaPaso [EMAIL PROTECTED]
   To: Tomcat Users List [EMAIL PROTECTED]
   Sent: Sunday, March 30, 2003 5:01 PM
   Subject: Re: ?? Simple Newbie Question about Root Context ??
  
  
Well, I don't have to create pages under ROOT as you did, but that's
a
separate issue from what I'm asking.
   
   
   
- Original Message -
From: Carol Carrick [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Sunday, March 30, 2003 3:50 PM
Subject: Re: ?? Simple Newbie Question about Root Context ??
   
   
 Although I am really a newbie, I have the same o/s system.  I have
   trouble
 loading my pages until I created them under the ROOT path and
   uncommented
 the section you are referring to.  Here is a good web reference.
 http://www.moreservlets.com/Using-Tomcat-4.html




 - Original Message -
 From: Tony LaPaso [EMAIL PROTECTED]
 To: Tomcat User [EMAIL PROTECTED]
 Sent: Sunday, March 30, 2003 4:00 PM
 Subject: ?? Simple Newbie Question about Root Context ??


  My Tomcat skills are rusty -- I must be missing something easy
here.
 
  I just installed TC v4.1.24 on Win 2k. The installation worked
right
   out
 of
  the box. I didn't have to make any changes to the server.xml. TC
is
 up
and
  running but I'm seeing something strange I was hoping someone
could
 explain:
 
 
  Here's a quote from the TC documentation: ...you MUST define a
   Context
 with
  a context path equal to a zero-length string. This Context
becomes
 the
  default web application for this virtual host, and is used to
 process
all
  requests that do not match any other Context's context path.
 
  Okay, that's fine, but when I look at conf/server.xml I see
this:
 
  !-- Tomcat Root Context --
  !--
  Context path= docBase=ROOT debug=0/
  --
 
 
  Why is this commented out? According to the documentation there
must
   be
a
  context path equal to a zero-length string. The quote I cited
 seems
   to
  contradict what I'm seeing in server.xml.
 
  Even though this is commented out everything seems to work fine.
In
other
  words, if I browse to localhost:8080 I do indeed see
 webapps/ROOT/index.jsp.
  Is the docBase named ROOT the default? If so, then the
 documentation
  should mention that I think.
 
  Thanks very much,
 
  Tony
 
 
 
 
 
 
 

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



 LEGAL NOTICE

 This electronic mail  transmission and any accompanying documents contain
 information belonging to the sender which may be confidential and legally
 privileged.  This information is intended only for the use of the
 individual or entity to whom this electronic mail transmission was sent as
 indicated above. If you are not the intended recipient, any disclosure,
 copying, distribution, or action taken in reliance on the contents

Re: ?? Simple Newbie Question about Root Context ??

2003-03-30 Thread Micael
The reason has to be, then, that the startup of the webapp creates a 
default context on its own, because it cannot happen magically.  I hope 
that does not sound smart-alexey but, rather, clear.



At 08:14 PM 3/30/03 -0600, you wrote:
But my point is that everything works fine even *with* the comment. THAT is
what's confusing.
- Original Message -
From: Carol Carrick [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Sunday, March 30, 2003 4:20 PM
Subject: Re: ?? Simple Newbie Question about Root Context ??
 The website I sent tells you to take the comments out.
 - Original Message -
 From: Tony LaPaso [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Sunday, March 30, 2003 5:01 PM
 Subject: Re: ?? Simple Newbie Question about Root Context ??


  Well, I don't have to create pages under ROOT as you did, but that's a
  separate issue from what I'm asking.
 
 
 
  - Original Message -
  From: Carol Carrick [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Sunday, March 30, 2003 3:50 PM
  Subject: Re: ?? Simple Newbie Question about Root Context ??
 
 
   Although I am really a newbie, I have the same o/s system.  I have
 trouble
   loading my pages until I created them under the ROOT path and
 uncommented
   the section you are referring to.  Here is a good web reference.
   http://www.moreservlets.com/Using-Tomcat-4.html
  
  
  
  
   - Original Message -
   From: Tony LaPaso [EMAIL PROTECTED]
   To: Tomcat User [EMAIL PROTECTED]
   Sent: Sunday, March 30, 2003 4:00 PM
   Subject: ?? Simple Newbie Question about Root Context ??
  
  
My Tomcat skills are rusty -- I must be missing something easy here.
   
I just installed TC v4.1.24 on Win 2k. The installation worked right
 out
   of
the box. I didn't have to make any changes to the server.xml. TC is
up
  and
running but I'm seeing something strange I was hoping someone could
   explain:
   
   
Here's a quote from the TC documentation: ...you MUST define a
 Context
   with
a context path equal to a zero-length string. This Context becomes
the
default web application for this virtual host, and is used to
process
  all
requests that do not match any other Context's context path.
   
Okay, that's fine, but when I look at conf/server.xml I see this:
   
!-- Tomcat Root Context --
!--
Context path= docBase=ROOT debug=0/
--
   
   
Why is this commented out? According to the documentation there must
 be
  a
context path equal to a zero-length string. The quote I cited
seems
 to
contradict what I'm seeing in server.xml.
   
Even though this is commented out everything seems to work fine. In
  other
words, if I browse to localhost:8080 I do indeed see
   webapps/ROOT/index.jsp.
Is the docBase named ROOT the default? If so, then the
documentation
should mention that I think.
   
Thanks very much,
   
Tony
   
   
   
   
   
   
   
  
 -
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]
 


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


LEGAL NOTICE

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



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


Re: Classloader Mysteries

2003-03-29 Thread Micael


At 09:55 AM 3/29/03 -0700, you wrote:
A couple of questions:  How are you deploying the web app?
The web app is deployed as ROOT.  The server.xml is:

  Context path=
   docBase=my_app
   debug=0/
The daemon thread is created and destroyed in the struts PlugIn 
interface.  I have given the relevant code below.  My application shows 
that the application is created both as root /_ and as /my_app.  Could that 
be the cause?  If so, what is the solution?  I want the web app to come up 
when the url is called and don't want to have to call 
www.url.com/my_app.  Thanks.  This seems like it may be the source of the 
difficulty.  See below.

Is the
daemon thread aware of the Servlet lifecycle?
I have observed that when deploying via the Tomcat manager, there are
cases where the web app is stopped and restarted erroneously.
Basically, it starts after a deploy, then within a few seconds it stops
and then restarts.  If this is happening and your daemon thread is not
Servlet lifecycle aware and does not stop when the ServletContext is
destroyed, then that daemon is what is pinning your web application and
therefore WebappClassLoader.


No code calls the daemon.  The only mention of the PlugIn on the entire 
computer is in the struts-config, which says:

plug-in className=com.michaelmcgrady.util.message.IpDaemon/

I originally had code that would create the daemon by calling a servlet 
from a browser.  That created only one object.  No problems!  To make life 
easy (or possible) for the person purchasing the software, I wanted to 
auto-generate the daemon, and have tried the web.xml generation through a 
servlet and the struts-config.xml generation through the PlugIn 
interface.   I do not have initialization other than through the PlugIn 
init method.  My initialization is:

public void init(ActionServlet servlet, ApplicationConfig config) 
throws ServletException {
this.servlet = servlet;
thread = new Thread(this);
thread.setPriority(Thread.MIN_PRIORITY);
thread.start();
}

My destroy method, through the PlugIn, is:

public void destroy() {
Thread moribund = thread;
thread = null;
moribund.interrupt();
}
The debug (on the first object being created) gives the following read-out:

ClassLoader Hash (20632381) Class Hash (30102190) -- In constructor: Sat 
Mar 29 09:31:07 PST 2003
Start of init(ActionServlet, ApplicationConfig): Sat Mar 29 09:31:07 PST 2003
End of init(ActionServlet, ApplicationConfig): Sat Mar 29 09:31:07 PST 2003

ClassLoader Hash (274614) Class Hash (7084674) -- In constructor: Sat Mar 
29 09:31:34 PST 2003
Start of init(ActionServlet, ApplicationConfig): Sat Mar 29 09:31:34 PST 2003
End of init(ActionServlet, ApplicationConfig): Sat Mar 29 09:31:34 PST 2003

The Thread object is static in this class.  What do you think?

Micael



On Sat, 2003-03-29 at 00:48, Micael wrote:
 I have created a daemon which I want to startup when Tomcat is started
 up.  If I configure the daemon to be started with a servlet in web.xml or
 by using a PlugIn interface and struts-config.xml, I get two daemons
 running.  How I don't know.  If I don't start the daemon at startup but by
 tweaking a servlet after startup, where the servlet calls the daemon, then
 I don't get two daemons.  Does anyone have any idea how this is
 happening?  I am getting two classloaders of the same type, i.e. same type
 but different hashcodes.  Anyone know what is going on.  I am running
 Struts 1.1 and Tomcat 1.1.18.  I have asked this question in a few ways
 with no responses.  I can find nothing relevant in the archives.  They are
 both coming from the WebappClassLoader which has as a parent
 [EMAIL PROTECTED]

 Hopefully someone has some assistance, because I am somewhat at a
 loss.  This must have something to do with the launcher, but I don't know
 what.  I have tried to get some information for a week out of this
 list.  Not sure if no one is doing PlugIns, or why there is so little
 interest in this.

 The hashcodes I get for the classloaders are as follows:


 LOOP: ClassLoader.hashCode(): 728272 Class.hashCode(): 15612583   Check
 No.: 657) Fri Mar 28 22:47:17 PST 2003 END


 LOOP: ClassLoader.hashCode(): 20632381 Class.hashCode(): 10973446  Check
 No.: 659) Fri Mar 28 22:47:19 PST 2003 END

 The details on the classloaders are:

 LOOP: ClassLoader.toString(): WebappClassLoader
available:
  Extension[org.apache.commons.beanutils, implementationVendor=Apache
 Software Foundation, implementationVersion=1.4-dev,
 specificationVendor=Apache Software Foundation, specificationVersion=1.0]
  Extension[org.apache.commons.collections, implementationVendor=Apache
 Software Foundation, implementationVersion=2.0, specificationVendor=Apache
 Software Foundation, specificationVersion=1.0]
  Extension[org.apache.commons.dbcp, implementationVendor=Apache
 Software Foundation, implementationVersion=1.0-dev

MYSTERY SOLVED: Re: Classloader Mysteries

2003-03-29 Thread Micael
An extra version of the app was being created under root in 
web.xml.  Thanks for all who assisted.

At 09:55 AM 3/29/03 -0700, you wrote:
A couple of questions:  How are you deploying the web app?  Is the
daemon thread aware of the Servlet lifecycle?
I have observed that when deploying via the Tomcat manager, there are
cases where the web app is stopped and restarted erroneously.
Basically, it starts after a deploy, then within a few seconds it stops
and then restarts.  If this is happening and your daemon thread is not
Servlet lifecycle aware and does not stop when the ServletContext is
destroyed, then that daemon is what is pinning your web application and
therefore WebappClassLoader.
On Sat, 2003-03-29 at 00:48, Micael wrote:
 I have created a daemon which I want to startup when Tomcat is started
 up.  If I configure the daemon to be started with a servlet in web.xml or
 by using a PlugIn interface and struts-config.xml, I get two daemons
 running.  How I don't know.  If I don't start the daemon at startup but by
 tweaking a servlet after startup, where the servlet calls the daemon, then
 I don't get two daemons.  Does anyone have any idea how this is
 happening?  I am getting two classloaders of the same type, i.e. same type
 but different hashcodes.  Anyone know what is going on.  I am running
 Struts 1.1 and Tomcat 1.1.18.  I have asked this question in a few ways
 with no responses.  I can find nothing relevant in the archives.  They are
 both coming from the WebappClassLoader which has as a parent
 [EMAIL PROTECTED]

 Hopefully someone has some assistance, because I am somewhat at a
 loss.  This must have something to do with the launcher, but I don't know
 what.  I have tried to get some information for a week out of this
 list.  Not sure if no one is doing PlugIns, or why there is so little
 interest in this.

 The hashcodes I get for the classloaders are as follows:


 LOOP: ClassLoader.hashCode(): 728272 Class.hashCode(): 15612583   Check
 No.: 657) Fri Mar 28 22:47:17 PST 2003 END


 LOOP: ClassLoader.hashCode(): 20632381 Class.hashCode(): 10973446  Check
 No.: 659) Fri Mar 28 22:47:19 PST 2003 END

 The details on the classloaders are:

 LOOP: ClassLoader.toString(): WebappClassLoader
available:
  Extension[org.apache.commons.beanutils, implementationVendor=Apache
 Software Foundation, implementationVersion=1.4-dev,
 specificationVendor=Apache Software Foundation, specificationVersion=1.0]
  Extension[org.apache.commons.collections, implementationVendor=Apache
 Software Foundation, implementationVersion=2.0, specificationVendor=Apache
 Software Foundation, specificationVersion=1.0]
  Extension[org.apache.commons.dbcp, implementationVendor=Apache
 Software Foundation, implementationVersion=1.0-dev,
 specificationVendor=Apache Software Foundation, specificationVersion=1.0]
  Extension[org.apache.commons.digester, implementationVendor=Apache
 Software Foundation, implementationVersion=1.3-dev,
 specificationVendor=Apache Software Foundation, specificationVersion=1.0]
  Extension[commons-lang, implementationVendor=Apache Software
 Foundation, implementationVersion=1.0-dev, specificationVendor=Apache
 Software Foundation, specificationVersion=1.0]
  Extension[org.apache.commons.logging, implementationVendor=Apache
 Software Foundation, implementationVersion=1.0.1-dev,
 specificationVendor=Apache Software Foundation, specificationVersion=1.0]
  Extension[org.apache.commons.pool, implementationVendor=Apache
 Software Foundation, implementationVersion=1.0, specificationVendor=Apache
 Software Foundation, specificationVersion=1.0]
  Extension[org.apache.commons.resources, implementationVendor=Apache
 Software Foundation, implementationVersion=0.1-dev,
 specificationVendor=Apache Software Foundation, specificationVersion=1.0]
  Extension[org.apache.commons.services, implementationVendor=Apache
 Software Foundation, implementationVersion=1.0-dev,
 specificationVendor=Apache Software Foundation, specificationVersion=1.0]
  Extension[Struts Framework, implementationVendor=Apache Software
 Foundation, implementationVendorId=org.apache, implementationVersion=1.0,
 specificationVendor=Apache Software Foundation, specificationVersion=1.0]
  Extension[Components Framework, implementationVendor=Apache Software
 Foundation, implementationVendorId=org.apache, implementationVersion=0.7,
 specificationVendor=Apache Software Foundation, specificationVersion=1.0]
delegate: false
repositories:
  /WEB-INF/classes/
required:
 -- Parent Classloader:
 StandardClassLoader
available:
delegate: true
repositories:
required:
 -- Parent Classloader:
 StandardClassLoader
available:
  Extension[org.apache.tools.ant, implementationVendor=Apache Software
 Foundation, implementationVersion=1.5.1, specificationVendor=Apache
 Software Foundation, specificationVersion=1.5.1]
  Extension[org.apache.commons.collections

Classloader Mysteries

2003-03-28 Thread Micael
I have created a daemon which I want to startup when Tomcat is started 
up.  If I configure the daemon to be started with a servlet in web.xml or 
by using a PlugIn interface and struts-config.xml, I get two daemons 
running.  How I don't know.  If I don't start the daemon at startup but by 
tweaking a servlet after startup, where the servlet calls the daemon, then 
I don't get two daemons.  Does anyone have any idea how this is 
happening?  I am getting two classloaders of the same type, i.e. same type 
but different hashcodes.  Anyone know what is going on.  I am running 
Struts 1.1 and Tomcat 1.1.18.  I have asked this question in a few ways 
with no responses.  I can find nothing relevant in the archives.  They are 
both coming from the WebappClassLoader which has as a parent 
[EMAIL PROTECTED]

Hopefully someone has some assistance, because I am somewhat at a 
loss.  This must have something to do with the launcher, but I don't know 
what.  I have tried to get some information for a week out of this 
list.  Not sure if no one is doing PlugIns, or why there is so little 
interest in this.

The hashcodes I get for the classloaders are as follows:

LOOP: ClassLoader.hashCode(): 728272 Class.hashCode(): 15612583   Check 
No.: 657) Fri Mar 28 22:47:17 PST 2003 END

LOOP: ClassLoader.hashCode(): 20632381 Class.hashCode(): 10973446  Check 
No.: 659) Fri Mar 28 22:47:19 PST 2003 END

The details on the classloaders are:

LOOP: ClassLoader.toString(): WebappClassLoader
  available:
Extension[org.apache.commons.beanutils, implementationVendor=Apache 
Software Foundation, implementationVersion=1.4-dev, 
specificationVendor=Apache Software Foundation, specificationVersion=1.0]
Extension[org.apache.commons.collections, implementationVendor=Apache 
Software Foundation, implementationVersion=2.0, specificationVendor=Apache 
Software Foundation, specificationVersion=1.0]
Extension[org.apache.commons.dbcp, implementationVendor=Apache 
Software Foundation, implementationVersion=1.0-dev, 
specificationVendor=Apache Software Foundation, specificationVersion=1.0]
Extension[org.apache.commons.digester, implementationVendor=Apache 
Software Foundation, implementationVersion=1.3-dev, 
specificationVendor=Apache Software Foundation, specificationVersion=1.0]
Extension[commons-lang, implementationVendor=Apache Software 
Foundation, implementationVersion=1.0-dev, specificationVendor=Apache 
Software Foundation, specificationVersion=1.0]
Extension[org.apache.commons.logging, implementationVendor=Apache 
Software Foundation, implementationVersion=1.0.1-dev, 
specificationVendor=Apache Software Foundation, specificationVersion=1.0]
Extension[org.apache.commons.pool, implementationVendor=Apache 
Software Foundation, implementationVersion=1.0, specificationVendor=Apache 
Software Foundation, specificationVersion=1.0]
Extension[org.apache.commons.resources, implementationVendor=Apache 
Software Foundation, implementationVersion=0.1-dev, 
specificationVendor=Apache Software Foundation, specificationVersion=1.0]
Extension[org.apache.commons.services, implementationVendor=Apache 
Software Foundation, implementationVersion=1.0-dev, 
specificationVendor=Apache Software Foundation, specificationVersion=1.0]
Extension[Struts Framework, implementationVendor=Apache Software 
Foundation, implementationVendorId=org.apache, implementationVersion=1.0, 
specificationVendor=Apache Software Foundation, specificationVersion=1.0]
Extension[Components Framework, implementationVendor=Apache Software 
Foundation, implementationVendorId=org.apache, implementationVersion=0.7, 
specificationVendor=Apache Software Foundation, specificationVersion=1.0]
  delegate: false
  repositories:
/WEB-INF/classes/
  required:
-- Parent Classloader:
StandardClassLoader
  available:
  delegate: true
  repositories:
  required:
-- Parent Classloader:
StandardClassLoader
  available:
Extension[org.apache.tools.ant, implementationVendor=Apache Software 
Foundation, implementationVersion=1.5.1, specificationVendor=Apache 
Software Foundation, specificationVersion=1.5.1]
Extension[org.apache.commons.collections, implementationVendor=Apache 
Software Foundation, implementationVersion=1.1-dev, 
specificationVendor=Apache Software Foundation, specificationVersion=1.0]
Extension[org.apache.commons.logging, implementationVendor=Apache 
Software Foundation, implementationVersion=1.0.2, 
specificationVendor=Apache Software Foundation, specificationVersion=1.0]
  delegate: true
  repositories:
file:C:\michaelmcgrady\tomcat\common\lib\ant.jar
file:C:\michaelmcgrady\tomcat\common\lib\commons-collections.jar
file:C:\michaelmcgrady\tomcat\common\lib\commons-logging-api.jar
file:C:\michaelmcgrady\tomcat\common\lib\jasper-compiler.jar
file:C:\michaelmcgrady\tomcat\common\lib\jasper-runtime.jar
file:C:\michaelmcgrady\tomcat\common\lib\jdbc2_0-stdext.jar

[OT] Contract Work Hourly Rates

2003-03-26 Thread Micael
I have a job offer to do contract work coding websites.  I am well versed 
in most of the areas required, and wonder what is a good hourly rate to ask 
for?  I know Java (certified programmer), Tomcat, Struts, Ant, blah, blah, 
as well as scripting, Red Hat, etc.  Thanks for any assistance.

LEGAL NOTICE

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank you 



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


Re: [OT] Contract Work Hourly Rates

2003-03-26 Thread Micael
I live in Washington (state) and the coding is being done for a firm in 
California.

At 04:46 PM 3/26/03 -0500, you wrote:


Micael wrote:
I have a job offer to do contract work coding websites.  I am well versed 
in most of the areas required, and wonder what is a good hourly rate to 
ask for?  I know Java (certified programmer), Tomcat, Struts, Ant, blah, 
blah, as well as scripting, Red Hat, etc.  Thanks for any assistance.
What country/city do you live in?

Erik

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


LEGAL NOTICE

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



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


RE: [OT] Contract Work Hourly Rates

2003-03-26 Thread Micael
Thanks, anyway, Filip.  You must be poor, you cannot afford the rest of the 
P, an h or the extra l in Phillip.  LOL.  I will work for food 
too.  How much is the issue.  LOL.

At 01:47 PM 3/26/03 -0800, you wrote:
will work for food

Filip

 -Original Message-
 From: Micael [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, March 26, 2003 1:44 PM
 To: Tomcat Users List
 Subject: [OT] Contract Work Hourly Rates


 I have a job offer to do contract work coding websites.  I am
 well versed
 in most of the areas required, and wonder what is a good
 hourly rate to ask
 for?  I know Java (certified programmer), Tomcat, Struts,
 Ant, blah, blah,
 as well as scripting, Red Hat, etc.  Thanks for any assistance.


 LEGAL NOTICE

 This electronic mail  transmission and any accompanying
 documents contain
 information belonging to the sender which may be confidential
 and legally
 privileged.  This information is intended only for the use of the
 individual or entity to whom this electronic mail
 transmission was sent as
 indicated above. If you are not the intended recipient, any
 disclosure,
 copying, distribution, or action taken in reliance on the
 contents of the
 information contained in this transmission is strictly
 prohibited.  If you
 have received this transmission in error, please delete the
 message.  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]


LEGAL NOTICE

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



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


RE: [OT] Contract Work Hourly Rates

2003-03-26 Thread Micael
Do you have a ballpark, since I was asked?

At 03:15 PM 3/26/03 -0700, you wrote:
In this economy, I usually ask the client how much they're willing to spend.
Usually they will fess up and then you can decide from there.  Telling them
how much you (truly) want will usually result in yeah, right.
Matt

 -Original Message-
 From: Micael [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, March 26, 2003 2:44 PM
 To: Tomcat Users List
 Subject: [OT] Contract Work Hourly Rates


 I have a job offer to do contract work coding websites.  I am
 well versed
 in most of the areas required, and wonder what is a good
 hourly rate to ask
 for?  I know Java (certified programmer), Tomcat, Struts,
 Ant, blah, blah,
 as well as scripting, Red Hat, etc.  Thanks for any assistance.


 LEGAL NOTICE

 This electronic mail  transmission and any accompanying
 documents contain
 information belonging to the sender which may be confidential
 and legally
 privileged.  This information is intended only for the use of the
 individual or entity to whom this electronic mail
 transmission was sent as
 indicated above. If you are not the intended recipient, any
 disclosure,
 copying, distribution, or action taken in reliance on the
 contents of the
 information contained in this transmission is strictly
 prohibited.  If you
 have received this transmission in error, please delete the
 message.  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]


LEGAL NOTICE

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



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


RE: [OT] Contract Work Hourly Rates

2003-03-26 Thread Micael
Thanks, Jeff.

At 03:40 PM 3/26/03 -0700, you wrote:
http://www.htmlgoodies.com/letters/221.html

A recent htmlgoodies.com newsletter dealt with this subject, helping
you with the formula since there is no real definitive easy answer that
we could give you.  Follow the link above, I hope it helps.
Jeff Tulley  ([EMAIL PROTECTED])
(801)861-5322
Novell, Inc., The Leading Provider of Net Business Solutions
http://www.novell.com
 [EMAIL PROTECTED] 3/26/03 3:26:27 PM 
Do you have a ballpark, since I was asked?
At 03:15 PM 3/26/03 -0700, you wrote:
In this economy, I usually ask the client how much they're willing to
spend.
Usually they will fess up and then you can decide from there.  Telling
them
how much you (truly) want will usually result in yeah, right.

Matt

  -Original Message-
  From: Micael [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, March 26, 2003 2:44 PM
  To: Tomcat Users List
  Subject: [OT] Contract Work Hourly Rates
 
 
  I have a job offer to do contract work coding websites.  I am
  well versed
  in most of the areas required, and wonder what is a good
  hourly rate to ask
  for?  I know Java (certified programmer), Tomcat, Struts,
  Ant, blah, blah,
  as well as scripting, Red Hat, etc.  Thanks for any assistance.
 
 
  LEGAL NOTICE
 
  This electronic mail  transmission and any accompanying
  documents contain
  information belonging to the sender which may be confidential
  and legally
  privileged.  This information is intended only for the use of the
  individual or entity to whom this electronic mail
  transmission was sent as
  indicated above. If you are not the intended recipient, any
  disclosure,
  copying, distribution, or action taken in reliance on the
  contents of the
  information contained in this transmission is strictly
  prohibited.  If you
  have received this transmission in error, please delete the
  message.  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]


LEGAL NOTICE

This electronic mail  transmission and any accompanying documents
contain
information belonging to the sender which may be confidential and
legally
privileged.  This information is intended only for the use of the
individual or entity to whom this electronic mail transmission was sent
as
indicated above. If you are not the intended recipient, any disclosure,
copying, distribution, or action taken in reliance on the contents of
the
information contained in this transmission is strictly prohibited.  If
you
have received this transmission in error, please delete the message.
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]


LEGAL NOTICE

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



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


RE: [OT] Contract Work Hourly Rates

2003-03-26 Thread Micael
Where are you located, Matt?

At 03:45 PM 3/26/03 -0700, you wrote:
Most clients seem to want to pay b/w 30 and 50, from what I've seen.  When
I've asked for more than that - I don't get any returned e-mails or phone
calls.
In Florida, where I've been hoping to find my next job, it's more like
20-40/hour.  :(
Matt

 -Original Message-
 From: Micael [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, March 26, 2003 3:26 PM
 To: Tomcat Users List
 Subject: RE: [OT] Contract Work Hourly Rates


 Do you have a ballpark, since I was asked?

 At 03:15 PM 3/26/03 -0700, you wrote:
 In this economy, I usually ask the client how much they're
 willing to spend.
 Usually they will fess up and then you can decide from
 there.  Telling them
 how much you (truly) want will usually result in yeah, right.
 
 Matt
 
   -Original Message-
   From: Micael [mailto:[EMAIL PROTECTED]
   Sent: Wednesday, March 26, 2003 2:44 PM
   To: Tomcat Users List
   Subject: [OT] Contract Work Hourly Rates
  
  
   I have a job offer to do contract work coding websites.  I am
   well versed
   in most of the areas required, and wonder what is a good
   hourly rate to ask
   for?  I know Java (certified programmer), Tomcat, Struts,
   Ant, blah, blah,
   as well as scripting, Red Hat, etc.  Thanks for any assistance.
  
  
   LEGAL NOTICE
  
   This electronic mail  transmission and any accompanying
   documents contain
   information belonging to the sender which may be confidential
   and legally
   privileged.  This information is intended only for the use of the
   individual or entity to whom this electronic mail
   transmission was sent as
   indicated above. If you are not the intended recipient, any
   disclosure,
   copying, distribution, or action taken in reliance on the
   contents of the
   information contained in this transmission is strictly
   prohibited.  If you
   have received this transmission in error, please delete the
   message.  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]



 LEGAL NOTICE

 This electronic mail  transmission and any accompanying
 documents contain
 information belonging to the sender which may be confidential
 and legally
 privileged.  This information is intended only for the use of the
 individual or entity to whom this electronic mail
 transmission was sent as
 indicated above. If you are not the intended recipient, any
 disclosure,
 copying, distribution, or action taken in reliance on the
 contents of the
 information contained in this transmission is strictly
 prohibited.  If you
 have received this transmission in error, please delete the
 message.  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]


LEGAL NOTICE

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



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


Servlet init() versus doPost() Classloading???

2003-03-24 Thread Micael
I am having a problem with a daemon I want to create at startup.  I have a 
singleton daemon that I used to load on startup in the init(ServletConfig) 
method of a servlet.  The problem is that this ends up creating two 
versions that then run concurrently and duplicate everything they each are 
doing.  So, I had to quite doing that and instead kickstart the daemon by 
putting it in doPost(HttpServletRequest, HttpServletResponse) instead.  I 
am really not quite sure what the classloader issues are here.

I would like to kickstart the daemon on startup, because then I can avoid 
having to have clients get it going on their server with a call to 
http://localhost/kickstart where /kickstart is the mapping that calls the 
servlet with the daemon in doPost(HttpServletRequest, 
HttpServletResponse).  Does someone have an idea.  I am sure there are a 
lot of good ideas (there must be) but they are not coming to me 
immediately.  I don't know that much about classloaders.  I am not sure how 
the second version of the daemon is getting loaded, i.e. what other 
classloader is doing that.  I know that each servlet has its own 
classloader.  How that translates into the difference between init and 
doPost and the difference between startup of Tomcat and startup by call via 
doPost is dark to me.

I would just go read more intensively on classloaders, if I could know that 
was the way to solve this dilemma of my own making.

Thanks for any assistance on this.

Micael

LEGAL NOTICE

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank you 



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


Re: Can't connect to X11 window server using '0:0' as the value of the display and now java.awt.HeadlessException

2003-03-23 Thread Micael
I added the headless flag to catalina.sh as follows:

# - Execute The Requested Command -

echo Using CATALINA_BASE:   $CATALINA_BASE
echo Using CATALINA_HOME:   $CATALINA_HOME
echo Using CATALINA_TMPDIR: $CATALINA_TMPDIR
echo Using JAVA_HOME:   $JAVA_HOME
if [ $1 = jpda ] ; then
  if [ -z $JPDA_ADDRESS ]; then
JPDA_ADDRESS=8000
  fi
  if [ -z $JDPA_OPTS ]; then
JPDA_OPTS=-Xdebug 
-Xrunjdwp:transport=dt_socket,address=$JPDA_ADDRESS,server=y,suspend=n
  fi
  CATALINA_OPTS=$CATALINA_OPTS $JPDA_OPTS
  shift
fi
CATALINA_OPTS=-Djava.awt.headless=true

This worked fine.

At 08:15 AM 3/23/03 +, you wrote:

 On Thu, 2003-03-20 at 20:36, Micael wrote:
 For me the easiest thing was just to provide the right command line 
options
 (java.awt.headless=true) when I started up Tomcat.
May I ask, how you did this ? I've also encountered
JNI_OnLoad errors runing on Solaris due, I suspect, the lack of
XWindows on my server.  I tried adding the headless flag to
my catalina.sh script as follows ~
elif [ $1 = start ] ; then
  shift
  touch $CATALINA_BASE/logs/catalina.out
  if [ $1 = -security ] ; then
echo Using Security Manager
shift
$_RUNJAVA $JAVA_OPTS $CATALINA_OPTS \
  -Djava.endorsed.dirs=$JAVA_ENDORSED_DIRS -classpath $CLASSPATH \
  -Djava.security.manager \
  -Djava.security.policy==$CATALINA_BASE/conf/catalina.policy \
  -Dcatalina.base=$CATALINA_BASE \
  -Dcatalina.home=$CATALINA_HOME \
  -Djava.io.tmpdir=$CATALINA_TMPDIR \
  -Djava.awt.headless=true \
  org.apache.catalina.startup.Bootstrap $@ start \
   $CATALINA_BASE/logs/catalina.out 21 
  else
$_RUNJAVA $JAVA_OPTS $CATALINA_OPTS \
  -Djava.endorsed.dirs=$JAVA_ENDORSED_DIRS -classpath $CLASSPATH \
  -Dcatalina.base=$CATALINA_BASE \
  -Dcatalina.home=$CATALINA_HOME \
  -Djava.io.tmpdir=$CATALINA_TMPDIR \
  -Djava.awt.headless=true \
  org.apache.catalina.startup.Bootstrap $@ start \
   $CATALINA_BASE/logs/catalina.out 21 
  fi
But that just resulted in the following error,
java.awt.HeadlessException
at 
java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:121)
at java.awt.Window.(Window.java:266)
at java.awt.Frame.(Frame.java:398)
at java.awt.Frame.(Frame.java:363)
at ImageUtils.loadImage(Unknown Source)

where the loadImage() function is simply supposed to load an image,
 public static Image loadImage(String fileName) {
  Image image = Toolkit.getDefaultToolkit().getImage(fileName);
  MediaTracker mediaTracker = new MediaTracker(new Frame());
  mediaTracker.addImage(image, 0);
  try {
   mediaTracker.waitForID(0);
  }
  catch (InterruptedException ie) {
   //
  }
  return image;
 }
Any ideas/help would be great.
Stephen.
ps. I also tried PJA but couldn't get that to work either :(


-
With Yahoo! Mail you can get a bigger mailbox -- choose a size that fits 
your needs


LEGAL NOTICE

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



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


Re: Can't connect to X11 window server using '0:0' as the value of the display and now java.awt.HeadlessException

2003-03-23 Thread Micael
Here are two uses, if they are of help.  I am using Red Hat 7.2 Linux.

FIRST:

public JPEGEncoder(Image image, int quality, OutputStream out) {
MediaTracker tracker = new MediaTracker(this);
tracker.addImage(image, 0);
try {
tracker.waitForID(0);
} catch (InterruptedException e) {
}
/* Quality of the image.
 * 0 to 100 and from bad image quality, high compression 
to good
 * image quality low compression*/
this.quality = quality;

/* Getting picture information
 * It takes the Width, Height and RGB scans of the image. */
info= new JPEGInfo(image);
imageHeight = info.imageHeight;
imageWidth  = info.imageWidth;
outStream   = new BufferedOutputStream(out);
dct = new JPEGDCT(quality);
huffman = new JPEGConvert(imageWidth,imageHeight);
}
SECOND:
public class JPEGCompression {
/* The parameter element compressionQuality is the compression 
(compressionQuality) from
 * 0 to 100. */
public void compress(String inputImage, String outputImage, String 
compressionQuality) {
FileOutputStream dataOut = null;
int  compression = 80;

File outputFile = new File(outputImage);
int i = 1;
// Makes sure there are no duplicates
while (outputFile.exists()) {
outputFile = new File(outputImage.substring(0, 
outputImage.lastIndexOf(.)) + (i++) + .jpg);
}

File inputFile = new File(inputImage);

if (inputFile.exists()) {
try {
dataOut = new FileOutputStream(outputFile);
} catch(IOException e) {}
try {
compression = 
Integer.parseInt(compressionQuality);
} catch (NumberFormatException e) {
e.printStackTrace();
}
Image image = 
Toolkit.getDefaultToolkit().getImage(inputImage);
JPEGEncoder encoder = new JPEGEncoder(image, 
compression, dataOut);
encoder.compress();
try {
dataOut.close();
} catch(IOException e) {}
} else {
throw new IllegalArgumentException(We couldn't 
find  + inputImage + . Is it in another directory?);
}
}
}

At 09:09 AM 3/23/03 +, you wrote:

Thanks Micael. Tried the same thing and got the same results.
Looks like Catalina/Tomcat is indeed using headless mode but
it's not working with my Java (1.4) and operating system (SunOS 5.6).
I'm presuming you're using this to create/generate graphics in a
servlet ?  Do you mind posting sample Java that creates a
Toolkit or MediaTracker (and which therefore requires headless
mode) ? I can't fathom what's wrong with mine. Mine works fine
when running on Win2K and Tomcat, but now dying on Sun.
Thanks for the help,
Stephen.
 Micael [EMAIL PROTECTED] wrote:
I added the headless flag to catalina.sh as follows:
# - Execute The Requested Command 
-

echo Using CATALINA_BASE: $CATALINA_BASE
echo Using CATALINA_HOME: $CATALINA_HOME
echo Using CATALINA_TMPDIR: $CATALINA_TMPDIR
echo Using JAVA_HOME: $JAVA_HOME
if [ $1 = jpda ] ; then
if [ -z $JPDA_ADDRESS ]; then
JPDA_ADDRESS=8000
fi
if [ -z $JDPA_OPTS ]; then
JPDA_OPTS=-Xdebug
-Xrunjdwp:transport=dt_socket,address=$JPDA_ADDRESS,server=y,suspend=n
fi
CATALINA_OPTS=$CATALINA_OPTS $JPDA_OPTS
shift
fi
CATALINA_OPTS=-Djava.awt.headless=true
This worked fine.

At 08:15 AM 3/23/03 +, you wrote:

  On Thu, 2003-03-20 at 20:36, Micael wrote:
  For me the easiest thing was just to provide the right command line
 options
  (java.awt.headless=true) when I started up Tomcat.
May I ask, how you did this ? I've also encountered
JNI_OnLoad errors runing on Solaris due, I suspect, the lack of
XWindows on my server. I tried adding the headless flag to
my catalina.sh script as follows ~
elif [ $1 = start ] ; then
 shift
 touch $CATALINA_BASE/logs/catalina.out
 if [ $1 = -security ] ; then
 echo Using Security Manager
 shift
 $_RUNJAVA $JAVA_OPTS $CATALINA_OPTS \
 -Djava.endorsed.dirs=$JAVA_ENDORSED_DIRS -classpath $CLASSPATH \
 -Djava.security.manager \
 -Djava.security.policy==$CATALINA_BASE/conf/catalina.policy \
 -Dcatalina.base=$CATALINA_BASE \
 -Dcatalina.home=$CATALINA_HOME \
 -Djava.io.tmpdir=$CATALINA_TMPDIR \
 -Djava.awt.headless=true \
 org.apache.catalina.startup.Bootstrap $@ start \
  $CATALINA_BASE/logs/catalina.out 21 
 else
 $_RUNJAVA

Re: Can't connect to X11 window server using '0:0' as the value of the display and now java.awt.HeadlessException

2003-03-23 Thread Micael
The material George gave you is really good.  Do you have X11 installed, 
even if not running?  I am not a Solaris guy, so don't know what that may 
mean in that context.

At 09:09 AM 3/23/03 +, you wrote:

Thanks Micael. Tried the same thing and got the same results.
Looks like Catalina/Tomcat is indeed using headless mode but
it's not working with my Java (1.4) and operating system (SunOS 5.6).
I'm presuming you're using this to create/generate graphics in a
servlet ?  Do you mind posting sample Java that creates a
Toolkit or MediaTracker (and which therefore requires headless
mode) ? I can't fathom what's wrong with mine. Mine works fine
when running on Win2K and Tomcat, but now dying on Sun.
Thanks for the help,
Stephen.
 Micael [EMAIL PROTECTED] wrote:
I added the headless flag to catalina.sh as follows:
# - Execute The Requested Command 
-

echo Using CATALINA_BASE: $CATALINA_BASE
echo Using CATALINA_HOME: $CATALINA_HOME
echo Using CATALINA_TMPDIR: $CATALINA_TMPDIR
echo Using JAVA_HOME: $JAVA_HOME
if [ $1 = jpda ] ; then
if [ -z $JPDA_ADDRESS ]; then
JPDA_ADDRESS=8000
fi
if [ -z $JDPA_OPTS ]; then
JPDA_OPTS=-Xdebug
-Xrunjdwp:transport=dt_socket,address=$JPDA_ADDRESS,server=y,suspend=n
fi
CATALINA_OPTS=$CATALINA_OPTS $JPDA_OPTS
shift
fi
CATALINA_OPTS=-Djava.awt.headless=true
This worked fine.

At 08:15 AM 3/23/03 +, you wrote:

  On Thu, 2003-03-20 at 20:36, Micael wrote:
  For me the easiest thing was just to provide the right command line
 options
  (java.awt.headless=true) when I started up Tomcat.
May I ask, how you did this ? I've also encountered
JNI_OnLoad errors runing on Solaris due, I suspect, the lack of
XWindows on my server. I tried adding the headless flag to
my catalina.sh script as follows ~
elif [ $1 = start ] ; then
 shift
 touch $CATALINA_BASE/logs/catalina.out
 if [ $1 = -security ] ; then
 echo Using Security Manager
 shift
 $_RUNJAVA $JAVA_OPTS $CATALINA_OPTS \
 -Djava.endorsed.dirs=$JAVA_ENDORSED_DIRS -classpath $CLASSPATH \
 -Djava.security.manager \
 -Djava.security.policy==$CATALINA_BASE/conf/catalina.policy \
 -Dcatalina.base=$CATALINA_BASE \
 -Dcatalina.home=$CATALINA_HOME \
 -Djava.io.tmpdir=$CATALINA_TMPDIR \
 -Djava.awt.headless=true \
 org.apache.catalina.startup.Bootstrap $@ start \
  $CATALINA_BASE/logs/catalina.out 21 
 else
 $_RUNJAVA $JAVA_OPTS $CATALINA_OPTS \
 -Djava.endorsed.dirs=$JAVA_ENDORSED_DIRS -classpath $CLASSPATH \
 -Dcatalina.base=$CATALINA_BASE \
 -Dcatalina.home=$CATALINA_HOME \
 -Djava.io.tmpdir=$CATALINA_TMPDIR \
 -Djava.awt.headless=true \
 org.apache.catalina.startup.Bootstrap $@ start \
  $CATALINA_BASE/logs/catalina.out 21 
 fi
But that just resulted in the following error,
java.awt.HeadlessException
 at
 java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:121)
 at java.awt.Window.(Window.java:266)
 at java.awt.Frame.(Frame.java:398)
 at java.awt.Frame.(Frame.java:363)
 at ImageUtils.loadImage(Unknown Source)

where the loadImage() function is simply supposed to load an image,
 public static Image loadImage(String fileName) {
 Image image = Toolkit.getDefaultToolkit().getImage(fileName);
 MediaTracker mediaTracker = new MediaTracker(new Frame());
 mediaTracker.addImage(image, 0);
 try {
 mediaTracker.waitForID(0);
 }
 catch (InterruptedException ie) {
 //
 }
 return image;
 }
Any ideas/help would be great.
Stephen.
ps. I also tried PJA but couldn't get that to work either :(




-
With Yahoo! Mail you can get a bigger mailbox -- choose a size that fits
your needs


LEGAL NOTICE

This electronic mail transmission and any accompanying documents contain
information belonging to the sender which may be confidential and legally
privileged. This information is intended only for the use of the
individual or entity to whom this electronic mail transmission was sent as
indicated above. If you are not the intended recipient, any disclosure,
copying, distribution, or action taken in reliance on the contents of the
information contained in this transmission is strictly prohibited. If you
have received this transmission in error, please delete the message. Thank
you


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


-
With Yahoo! Mail you can get a bigger mailbox -- choose a size that fits 
your needs


LEGAL NOTICE

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited

Re: Problems with tomcat 4.0.1 and 4.1.18

2003-03-21 Thread Micael
The two are likely the same problem.  Do you have something that might be 
spawning threads in your application?

At 09:48 AM 3/21/03 +0100, you wrote:
Hi to all

Recently, we updated our Tomcat server from 4.0.1 to 4.1.18.
All was perfect on the first day, but then the new server crashed and I 
can't found the cause.

Doing a ps -ef i see lots of tomcat processes that are'nt finalizing, and 
when this number arrives to the value we have in acceptCount variable it 
stops serving pages.

Here is the error on catalina.out

Mar 20, 2003 9:34:30 PM org.apache.tomcat.util.log.CommonLogHandler log
INFO: All threads are busy, waiting. Please increase maxThreads or check 
the servlet status75 75

maxThreads is set to 75 but we haven't more from 2-3 concurrent users so I 
think this is not th problem.

We tried to run again the old server, but now we have a very strange 
error, we can execute servlets but not jsp pages. Here is the error 
received by the browser:

Apache Tomcat/4.0.1 - HTTP Status 503 - Servlet jsp is currently unavailable

this happens too to the examples directory, I think it's not caused by the 
application...

I'm going crazy, somebody could help?

Thanks in advance
--

Daniel Rubio Rodríguez
OASI (Organisme Autònom Per la Societat de la Informació)
c/ Assalt, 12
43003 - Tarragona
Tef.: 977.244.007 - Fax: 977.224.517
e-mail: [EMAIL PROTECTED]

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


LEGAL NOTICE

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



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


Re: Can't connect to X11 window server using '0:0' as the value of the display and now java.awt.HeadlessException

2003-03-20 Thread Micael
You using Linux?  What is your environment?  Anyway, setting the JVM is the 
way to go if you are using Linux.

At 06:09 PM 3/20/03 +0100, you wrote:
Hi,

I put System.setProperty(java.awt.headless, true);
in my servlet init method it's ok, but now when I open a Frame,
I get the exception HeadlessException:
java.awt.HeadlessException
   at 
java.awt.GraphicsEnvironnement.checkHeadless(GraphicsEnvironement.java:121)
   at java.awt.window.init(Window.java:226)
   at java.awt.Frame.init(Frame.java:398)
   ...

What can I do?

Georges



Chad Johnson wrote:

If I had to wager a guess you'll need to run tomcat in a 'headless' JVM.
To do that add :
-Djava.awt.headless=true

To the :

CATALINA_OPTS

environment variable.

-Chad Johnson

-Original Message-
From: Georges Roux [mailto:[EMAIL PROTECTED] Sent: Tuesday, 
March 18, 2003 5:32 PM
To: [EMAIL PROTECTED]
Subject: Can't connect to X11 window server using '0:0' as the value of
the display

Hello everybody,

Hi run Tomcat 4.1.18 Standalone on Linux debian(sid)and use
J2sdk1.4.1_01.
I have a servlet which manipulate exif informations in jpg images. it
works well but when I try to run it on tomcat it fails (error 500)
I have the following error:
Can't connect to X11 window server using '0:0' as the value of the
display
What can I do?

Georges

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

--

18:54 18:54 connard
18:55 18:54 t'as que ca a faire? ;)
18:56 18:55 je m'ennuies ferme ouais ! encore 5mn avant la fin du taf,
 donc j'en profite pour passer dans les fortunes :)
+==+
|  |
|  Georges Roux|
|  URL : georgesroux.pacageek.org  |
|  email : [EMAIL PROTECTED]|
|  mobile : +33 (0) 613977573  |
+==+


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


LEGAL NOTICE

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



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


Re: Classpath Question

2003-03-20 Thread Micael
A problem with the classpath should indicate a classpath related exception, 
which essentially is an inability to find a class.  Why do you think that 
hte java.rmi.ServerException fits into this pattern?  If you don't declare 
where the class paths [sic] are for each application how do you expect the 
JVM to find the classes?  You sure that is what you mean?

At 04:54 PM 3/20/03 +, you wrote:
Hi,

I am using tomcat version 4 as a web service provider. I have 10 web 
services for my application and they all seem to compile properly. the 
issue is when I go to run the application I get a java.rmi.ServerException 
error with a missing port.

I am nearly 95% sure that it is a problem with the CLASSPATH in that I 
dont declare where the class paths are for each application. How do I do 
this: An example of where the java classes are is C:\tops\classes. I cant 
move the classes as it is an application in itself and is connected to an 
oracle database.

Please I need the following information?

1 Can this be done at all? Or is my boss nuts?

2 How do I do it?

Regards

Richard Newbie Jones
--
___
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


LEGAL NOTICE

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



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


Re: Can't connect to X11 window server using '0:0' as the value of the display and now java.awt.HeadlessException

2003-03-20 Thread Micael
For me the easiest thing was just to provide the right command line options 
(java.awt.headless=true) when I started up Tomcat.

At 02:27 PM 3/20/03 -0500, you wrote:
At 07:18 PM 3/20/2003 +, you wrote:
ok: there is another solution to the headless thing: (I wrote a
graphical servlet that runs on a linux box without X, and had the same
problems: The headless seemed to work, well, kinda, but not to my
liking): So I went the xvfb route: This is a virtual frame buffer to can
install on a linux box that emulates an X session, which then kinda
solves all the graphical problems in one step. You set the xvfb to the
resolution required and just start and forget about it.
Worth I shot, I'd say, and might safe you hours of frustration [It did
me ;-) ].
 I had tried xvfb and had some difficulties. Any pointers? suggestions?

Thanks,
Glenn


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


LEGAL NOTICE

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



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


RE: web.xml question

2003-02-03 Thread Micael
Read recent posts on this.

At 05:49 PM 2/3/03 -0500, you wrote:

 -Original Message-
 From: Haytham Samad [mailto:[EMAIL PROTECTED]]
 Sent: Monday, February 03, 2003 5:47 PM
 To: Tomcat Users List
 Subject: RE: web.xml question


 Hi,

 I think you need to change your url to the following:

 http://localhost:8080/test/servlets/SessioinTest

 or change servlets to servlet, not sure which at this point.
 This is basically how you call a servlet that is not mapped
 to a specific url pattern in your web.xml config file.  I am
 assuming test is your context name!?

Note that in Tomcat 4.1.12 and later, this won't work either on an
out-of-the-box install.  You should define an explicit servlet-mapping
in your web.xml.

--
Tim Moore / Blackboard Inc. / Software Engineer
1899 L Street, NW / 5th Floor / Washington, DC 20036
Phone 202-463-4860 ext. 258 / Fax 202-463-4863


 ...

 -Original Message-
 From: Pooleery, Manoj [mailto:[EMAIL PROTECTED]]
 Sent: Monday, February 03, 2003 4:31 PM
 To: 'Tomcat Users List'
 Subject: RE: web.xml question


 Maybe I am doing this incorrectly - but I have a servlet
 class in my WEB-INF/classes
 directory(SessionTestServlet.class) and in my web.xml, I have
 an entry like this servlet
   servlet-nameSessionTest/servlet-name
   servlet-classSessionTestServlet/servlet-class
 /servlet

 When I type http://localhost:8080/test/SessioinTest, it gives
 me an error saying requested resource not found.  What could
 I be doing wrong?

 Thanks
 -Manoj.



 -Original Message-
 From: Paul Hsu [mailto:[EMAIL PROTECTED]]
 Sent: Monday, February 03, 2003 5:24 PM
 To: Tomcat Users List
 Subject: Re: web.xml question


 Not really, if you have a servlet is used for startup a
 background process, then you do not need a mapping section.

 - Original Message -
 From: Pooleery, Manoj [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Monday, February 03, 2003 2:22 PM
 Subject: web.xml question


  Is it necessary that for each of the servlet elements in the
  web.xml, a corresponding servlet-mapping element should be there?
  (For a context other than root).
 
  Thanks
  -Manoj.
 


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




LEGAL NOTICE

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



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



Re: Tomcat and java.nio

2003-01-07 Thread Micael
I have heard that it is unpredicatably buggie?  Is that not true?

At 02:40 AM 1/6/03 -0800, you wrote:

For those who haven't experienced the joys of java.nio yet, I highly
recomend it.  Not only do you get performance advantages, but it's
easier to use, too, in my opinion.

Speaking of which... If I have a servlet which I want to use to send a
file straight from disk to the browser, right now it seems like the best
way to do that is to get a FileChannel for the file, read it into a
buffer, and send that buffer out to the outputstream from
Request.getOutputStream().  It seems that it would be much nicer and
more efficient if there were a Request.getChannel() type of method, so I
could use the highly-efficient FileChannel.transferTo() method.  Using
that method, the file could be transfered straight from the disk to the
network, possibly never leaving kernel space and possibly never being
copied (depending on OS).  Perhaps Tomcat could serve static content as
quickly as its native C competitors (Apache).  Is this something which
might appear in future releases of the Servlet API?  I hope so.



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




LEGAL NOTICE

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



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



log4j initialization: Tomcat, Struts Framework, or Application?

2002-12-25 Thread Micael
I am new to using log4j and am getting the standard error log4j:ERROR No 
appenders could be found for category (Actions).  log4j:ERROR Please 
initialize the log4j system properly.  I don't know if this means that 
Tomcat, Struts, or the Application (Chiki) is not initialized 
properly.  The manual has the following for Tomcat, and I don't know if I 
should immediately get into that.  Could someone kick me to the right place 
to start?  I did not have this problem with Tomcat 4.1.12, so I assume this 
is some difference in Tomcat 4.1.18.  However, the error seems to be 
related to Struts actions, so I am not sure where to start.  Thanks for any 
assistance, which I don't really expect, since I have asked this question 
before and have not gotten an answer.



package com.foo;

import org.apache.log4j.PropertyConfigurator;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.PrintWriter;
import java.io.IOException;

public class Log4jInit extends HttpServlet {

  public
  void init() {
String prefix =  getServletContext().getRealPath(/);
String file = getInitParameter(log4j-init-file);
// if the log4j-init-file is not set, then no point in trying
if(file != null) {
  PropertyConfigurator.configure(prefix+file);
}
  }

  public
  void doGet(HttpServletRequest req, HttpServletResponse res) {
  }
}

Define the following servlet in the web.xml file for your web-application.


  servlet
servlet-namelog4j-init/servlet-name
servlet-classcom.foo.Log4jInit/servlet-class

init-param
  param-namelog4j-init-file/param-name
  param-valueWEB-INF/classes/log4j.lcf/param-value
/init-param

load-on-startup1/load-on-startup
  /servlet




LEGAL NOTICE

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



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



CLASSPATH again -- weird Win98 issues: JGurus Around?

2002-12-20 Thread Micael
I am trying to get the basic commands, besides JAVA read, i.e. JAR, JAVAX, 
etc.  JAVA is read for reasons I am not sure.  I am not getting my 
autoexec.bat for Win98 read, I think.  I set autoexec.bat to the following:

@ECHO OFF
SET PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;
SET APP=C:\myapp
SET JAVA_HOME=%APP%\jdk
SET TOMCAT_HOME=%APP%\tomcat
SET CATALINA_HOME=%TOMCAT_HOME%
PATH=%PATH%;%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin
SET CLASSPATH=.;%JAVA_HOME%;%JAVA_HOME%\lib\tools.jar;%TOMCAT_HOME%

However, after rebooting, etc., I get the following from C:\set

TMP=C:\WINDOWS\TEMP
TEMP=C:\WINDOWS\TEMP
PROMPT=$p$g
winbootdir=C:\WINDOWS
PATH=C:\WINDOWS\COMMAND.COM
windir=C:\WINDOWS
BLASTER=A220 I5 D1 T4 P300

There was nothing originally in AUTOEXEC.BAT and nothing is now in CONFIG.SYS.

What the hay is going on?  Thanks for any help.

Micael


LEGAL NOTICE

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank you 


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



RE: Almost there...Updated Apach-Tomcat with mod_jk .. please he lp!

2002-12-15 Thread micael


At 03:38 PM 12/15/2002 -0500, you wrote:

Jake,

Thanks for supplying me with that info.  I will certainly refer to it, when
I set up Tomcat again.  However, first I need to get Apache back up and
running.  I know this is slightly off topic, but can you tell me how to
check what else is trying to access port 443.


Not sure what you meant by trying to access but that would not be the 
problem, if you mean that literally.  Rather, the problem is that some 
application is listening at port 443.  You have something that is listening 
at port 443 for others to access.  So, you should have a server set to 
listen at 443.


Micael

---

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



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



Re: Classpath

2002-12-11 Thread micael
What do you mean by the JSP classes?  Do you mean where you put the JSP 
pages?  Do you mean where you put the Java Classes?  You put the JSP pages 
at the root of your application, unless you specify elsewhere, which is a 
long discussion.  You put classes at [your_app]/WEB-INF/classes/  e.g. 
[your_app]/WEB-INF/classes/com/manago/user/User.class.

At 01:07 PM 12/11/2002 -0500, you wrote:
With release 4.1.12 of Tomcat, which file should be specified for the JSP
classes in my classpath?  The book I have as a resource (Core JSP) tell me
to point to jsp.jar, jspengine.jar, or jasper.jar, but I do not see any of
these files. Is it possible this jar file is under a different name in the
newer version?

Thanks in advance!

Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.



Micael

---

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



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



Re: How to access /images?

2002-12-11 Thread micael
Don't know if this helps, but I put a Navigator class in 
WEB-INF/classes/navigator/ and by accessing its ClassLoader can always tell 
what the paths on the server are.  The sole purpose of this class is to 
reveal information not capable of being known prior to startup (e.g. is 
this Unix, XP, or Memorex?) and providing this to any part of the whole 
deal that needs to know.  The parts can then use the information as they 
like.  I usually create another class which gives me the location of the 
application itself, which is stored in application scope and everything 
from there is up to the individual parts to specify where they are relative 
to that.

package navigator;

import java.io.File;
import java.net.URL;

public class Navigator {

public URL location()
{

return 
navigator.Navigator.class.getClassLoader().getResource(navigator + 
File.separator + Navigator.class);

}

}

At 11:26 AM 12/11/2002 -0600, you wrote:
Hello Boris,

This issue is much more problematic in servlets.  Since you know which
directory your .jsp file is relative to your images, I would continue
using relative paths.  This is what you'd need to do for static html
files anyway.  For servlets, prepending the context path is probably a
good idea, but make sure to ask the servlet api what the current
context path is instead of just assuming your app will always be
called, for instance, myapp.  The name could change or it could be
served off the root context where the context path would be / so
always grab that value dynamically.

Otherwise, use an MVC pattern and access a servlet via a mapping to
your controller at the root of the context and *only* at the root of
the context.  That way, you always know where your static resources
exist relative to the current dynamic page.

Otherwise, you can always pre-pend all static resources with some path
which maps to a servlet which serves resources out of a classloader.
You could put your images in a .jar file in some package.  that way,
no matter where your page is, you always know exactly how to refer to
the resources since the package name never changes.  The Barracuda
project has such a servlet called ResourceGateway which you can take a
look at here.
http://barracuda.enhydra.org/software/cvs/cvsweb.cgi/Projects/EnhydraOrg/toolsTech/Barracuda/src/org/enhydra/barracuda/core/helper/servlet/ResourceGateway.java

Jake

Wednesday, December 11, 2002, 11:03:18 AM, you wrote:

BF Hi!

BF What's the preferred way of accessing e.g. images or other JSPs using
BF absolute pathnames in a JSP? If I use something like
BF img src=/images/pic.gif this does not work if the webapp is not
BF deployed to the root context. There are some methods in ServletContext for
BF path handling, which should be used for constructing the right path?
BF I think it should look like that
BF img src='% magicthing(/images/pic.gif) %'

BF Does anybody know what the magicthing should be? At the moment I use
BF relative pathnames, but that gets complicated if you really have a lot of
BF JSPs, e.g. you need a lot of ../ if you have nested a lot of directories.

BF cu,
BF boris



--
Best regards,
 Jacobmailto:[EMAIL PROTECTED]


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


Micael

---

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



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



RE: The future of Tomcat and java.nio

2002-12-11 Thread micael
PLEASE make them use JDK 1.4.

At 08:22 AM 12/11/2002 -0500, you wrote:

Howdy,
This is a common, and will become even more prevalent, question. ;)  Mr.
Schnack's answer explains a big part of it: right now we still have a
lot of users using JDK's older than 1.4.  A JDK 1.4 requirement is not
possible for the 4.x branch of tomcat.

For Tomcat 5.x, there may be some discussion about this requirement, but
I doubt it's going to happen.

I also think most people working on tomcat recognize that the Apache
http is great at what it does: so why re-invent the wheel?  Especially
when we barely have enough time to keep our wheel (tomcat) rolling...
NIO fits in, IMHO (and I'm not speaking for any other developers) as a
cool thing to do once we have a JDK 1.4 requirement, but insufficient by
itself to make JDK 1.4 required.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Felipe Schnack [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 11, 2002 6:14 AM
To: Tomcat Users List
Subject: RE: The future of Tomcat and java.nio

  Yes... would be really cool, I took a look at these packages... but I
think probably tomcat will implement them in a year or more, 1.3 is
being used by a lot of people yet.

 It seems like Java 1.4's NIO package offers some very
high-performance IO
 capabilities, such as select loops, which could allow Java to serve
static
 content as fast as Apache can.  Will Tomcat be going in the direction
of
 using a NIO-based connector that might incorporate these
high-performance
 features?

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


Micael

---

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



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



Re: server.dtd

2002-12-11 Thread micael
THNX

At 10:23 AM 12/11/2002 -0800, you wrote:

In the Servlet specification, the file described is web.xml (used for 
deploying web application).  server.xml is a Tomcat proprietary 
configuration file ;-)

-- Jeanfrancois

Noel J. Bergman wrote:

But there is one in the servlet specification, if he just wants one for
study.

--- Noel

-Original Message-
From: Jeanfrancois Arcand [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 11, 2002 12:50
To: Tomcat Users List
Subject: Re: server.dtd

There is no such file. If you look inside server.xml, you will see there
is no DOCTYPE element. Tomcat do not validate this file when reading it.

-- Jeanfrancois

David Rayroud wrote:




Has anyone a dtd file for the server.xml file ?

I'm using Tomcat4.1.12, running on SME5.7 Linux Server.

Thank you

David Rayroud




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





Micael

---

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



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



RE: The future of Tomcat and java.nio

2002-12-11 Thread micael
All good points, of course.  I just don't understand why certain things 
move so slow.  This is one thing that seems to be much slower than 
reasonable conduct would dictate.  NIO is so important that we should do 
quite a lot to move to it.

At 02:51 PM 12/11/2002 -0500, you wrote:
Howdy,
I can't make anyone use anything ;)  Like other Jakarta projects, things
like these must be voted upon among the developers, and only committers
(as opposed to plain contributors like me) can vote.

I would point out that like Mr. Arcand, said, the servlet spec 2.4
doesn't require JDK 1.4.  If the spec doesn't require it, Tomcat
certainly isn't going to require it.  So go bother the spec people ;)

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: micael [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 11, 2002 2:41 PM
To: Tomcat Users List
Subject: RE: The future of Tomcat and java.nio

PLEASE make them use JDK 1.4.

At 08:22 AM 12/11/2002 -0500, you wrote:
Howdy,
This is a common, and will become even more prevalent, question. ;)
Mr.
Schnack's answer explains a big part of it: right now we still have a
lot of users using JDK's older than 1.4.  A JDK 1.4 requirement is not
possible for the 4.x branch of tomcat.

For Tomcat 5.x, there may be some discussion about this requirement,
but
I doubt it's going to happen.

I also think most people working on tomcat recognize that the Apache
http is great at what it does: so why re-invent the wheel?  Especially
when we barely have enough time to keep our wheel (tomcat) rolling...
NIO fits in, IMHO (and I'm not speaking for any other developers) as a
cool thing to do once we have a JDK 1.4 requirement, but insufficient
by
itself to make JDK 1.4 required.

Yoav Shapira
Millennium ChemInformatics


 -Original Message-
 From: Felipe Schnack [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, December 11, 2002 6:14 AM
 To: Tomcat Users List
 Subject: RE: The future of Tomcat and java.nio
 
   Yes... would be really cool, I took a look at these packages...
but I
 think probably tomcat will implement them in a year or more, 1.3 is
 being used by a lot of people yet.
 
  It seems like Java 1.4's NIO package offers some very
high-performance IO
  capabilities, such as select loops, which could allow Java to
serve
 static
  content as fast as Apache can.  Will Tomcat be going in the
direction
of
  using a NIO-based connector that might incorporate these
high-performance
  features?

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

Micael

---

This electronic mail  transmission and any accompanying documents
contain
information belonging to the sender which may be confidential and
legally
privileged.  This information is intended only for the use of the
individual or entity to whom this electronic mail transmission was sent
as
indicated above. If you are not the intended recipient, any disclosure,
copying, distribution, or action taken in reliance on the contents of
the
information contained in this transmission is strictly prohibited.  If
you
have received this transmission in error, please delete the message.
Thank
you



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


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

Micael

---

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



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



Re: For all: Excuse me please.

2002-12-09 Thread micael
I don't even know what the questions were?  I hope they were answered, 
Sir.  If not, I would keep trying.  Don't apologize to this honkers.  They 
are not big on Geese on Earth. ///8--)

At 09:51 AM 12/9/2002 -0500, you wrote:
First that all, sorry by my english. Since the Friday 07 of December, i 
post my
questions in the list and i don´t have answer of nobody. Maybe, nobody have a
little time for help me. Now, I think that this is my problem and no the
problem of other persons. Please, for Jhon Turner, Laxmikanth M S, Doni 
Kelly,
Yoav Shapira and for ALL persons of this list, i give to all a excuses for my
despair.
I sorry my behavior, and my big wish is that all people...they can be my
friends.
Sorry for all, and i hope your hands for help me.
God bless all here and thank´s for your answers.
:):):):):):):):):):):):):):):):):):):):):):):):):):):):):):):):):):):):):):):):)
:):):):):)






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

Micael

---

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



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



Re: How to get a File for a certain folder

2002-12-09 Thread micael
I can tell you, but I think you will misunderstand.  File certainFolder = 
new File([folder file url]);  You need to read a Java book on 
files.  There are lots of good ones.  You can actually just read the 
interface, JavaDocs, for File and pretty much get the answer.  Most Java 
books include something on files.  Go to www.java.sun.com and read a 
tutorial.  Then you can traverse away.  The answers are all in the File 
class, if you know Java sufficiently to be able to read a JavaDoc.

At 12:34 PM 12/9/2002 +0100, you wrote:
Hi,

how can I get a File-Object for a certain Folder placed under my 
$CATALINA_HOME/webapps/ROOT/ - Folder. I want to traverse over the files 
that are placed there.
Can anyone help me?

thx
Patrick


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


Micael

---

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



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



Re: How to get a File for a certain folder

2002-12-09 Thread micael
You just want some functionality in a class.  Where you use it is not 
immediately important.  Just use it in a servlet.  If you don't know how to 
use servlets, that is a separate problem.  Check out Hunter and Crawford on 
servlets.

At 12:37 PM 12/9/2002 +0100, you wrote:


Patrick Kosiol wrote:


Hi,

how can I get a File-Object for a certain Folder placed under my 
$CATALINA_HOME/webapps/ROOT/ - Folder. I want to traverse over the files 
that are placed there.
Can anyone help me?

thx
Patrick


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

I have forgot to say that I want to do this trought out of a Servlet that 
is placed under $CATALINA_HOME/webapps/ROOT/WEB-INF/classes/myapp



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


Micael

---

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



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



Re: I don´t understand the objective of this open list !

2002-12-09 Thread micael
Well, you have lots of answers now.

At 08:40 AM 12/9/2002 -0500, you wrote:

In 3 opportunities i wrote to this stuped (sorry) list, and NEVER i found 
help.
I hope that the people that participates of this list, don´t have damages 
about
other people that don´t belong´s at your countries.
Thank´s for NOTHING.


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

Micael

---

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



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



RE: How do I install a jar file and reference it with a jsp page? (Next problem)

2002-12-09 Thread micael
Read up about how CLASSPATH works for .jar files as well as for normal 
directory structures, which are reflected in a jar file.  If you cannot 
reach something in a normal directory (outside the .jar file) you sure 
cannot inside a .jar file.  For example, in a normal directory structure, 
you would have to put com.blah.blah. at WEB-INF/classes/, because 
your CLASSPATH has WEB-INF/classes included.  See what I mean?

At 11:47 AM 12/9/2002 -0500, you wrote:

yeah getting the same error.  Here's the full description.

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: -1 in the jsp file: null

Generated servlet error:
[javac] Compiling 1 source file

/web1/labwerks/tomcat/work/Standalone/localhost/_/dev/credit_check_jsp.java:7: 
package com.equifax.rcas.tools does not exist
import com.equifax.rcas.tools.*;
^
1 error

---
Here is my JSP page fragment.


%@ page import=com.equifax.rcas.tools.*%

-Original Message-
From: Hamilton, Andrew [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 09, 2002 11:43 AM
To: Tomcat Users List
Subject: RE: How do I install a jar file and reference it with a jsp
page? (Next problem)


Have you tried changeing the import to com.equifax.rcas.tools.*?

-Original Message-
From: Brian O. Bozarth [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 09, 2002 11:21 AM
To: Tomcat Users List
Subject: RE: How do I install a jar file and reference it with a jsp
page? (Next problem)



okay I put the jar file in /tomcat/webapps/ROOT/WEB-INF/lib  (I had to
actually create the lib folder)

I used this in my jsp page.

%@ page import=com.equifax.rcas.*%

getting an error of:

/web1/labwerks/tomcat/work/Standalone/localhost/_/dev/credit_check_jsp.java:
7: package com.equifax.rcas does not exist
import com.equifax.rcas.*;
^

Let me know if I'm doing something wrong.

Does it matter what the folder directory is in the jar file?   When I
unzipped the directory, the java files were in here.

\data\esecure\rcas2.3.0-0018\com\equifax\rcas\tools


-Original Message-
From: Brian O. Bozarth
Sent: Monday, December 09, 2002 10:50 AM
To: [EMAIL PROTECTED]
Subject: Q: How do I install a jar file and reference it with a jsp
page?



Having trouble using this jar file which has code for an Equifax interface
(credit check).   I've been given a jar file with sample code.   Where do I
put in the tomcat directory and how do I reference it in a jsp page?   Do I
need to do anything on the server to configure?

The package is called package com.equifax.rcas.tools;

I am using Apache Tomcat/4.1.12

Brian Bozarth
Chief Technical Officer
Labwerks
3618 Penn Avenue
Pittsburgh, PA 15201
P. 412-621-9375
F. 412-621-6082
http://www.labwerks.com

A Marketing Communications Company






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

Micael

---

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



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



-- Starting and Stopping Applications in Servlets: Re: Threads of Control

2002-12-09 Thread micael
At 05:17 PM 12/8/2002 -0800, you wrote:

Can a servlet start an application on a server which is available to a 
user on the server machine?  Something, i.e., like the following:

import java.io.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;

public class AppCtrl extends HttpServlet implements Runnable {
  private boolean change;
  private Thread ctrl;
  private App [] app;

  public void init() throws ServletException() {
ctrl = new Thread(this);
ctrl.setPriority(Thread.MIN_PRIORITY);
ctrl.start();
  }

  public void run() {
while(true) {
  if(AppProps.change()) {
app = AppProps.changes();
for(int i = 0; i  app.length; i++) {
  AppManager.implementChange(app[i]);
  try {
ctrl.sleep(200); // .2 second break between changes.
  } catch (InterruptedException ignored) {
  }
}
  }
}
  }
}


Micael

---

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the 
message.  Thank you


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


Micael

---

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



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



Re: File structure in webapps for tomcat.

2002-12-09 Thread micael
You can get the URL for any class from its ClassLoader.  So, I don't know 
what you mean by the current path, but this functionality provides a lot 
of tricks.

-micael


At 06:00 AM 12/9/2002, you wrote:

I've just been looking at the URL package, but I can't see how that is going
to get around the directory problem?  I need the host to be transparent to
the servlet and the files to be always found from the web app location.  If
I start putting urls in, I will start to tie myself to specific locations.

Is there a way of getting the current URL path from the server without
writing it in explisitly.

Cheers

Simon

PS
Excuse the spelling, I've been at the for days now and I'm getting a little
tierd. ;-)

- Original Message -
From: Laxmikanth M.S. [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, December 09, 2002 12:55 PM
Subject: RE: File structure in webapps for tomcat.


 use class URI in java.net.* package.
 no need to set in server.xml

 Regards
 Laxmikanth M S
 Off*  : 91-80-6610330 extn 1256
 Res* : 91-80-5267150
 http://www.sonata-software.com

  Coming together is the beginning, staying together is progress and
working
  together is Success
 What lies behind us and what lies before us are tiny matters compared to
 what lies within us  - Emerson


  -Original Message-
  From: Simon Kelly [SMTP:[EMAIL PROTECTED]]
  Sent: Monday, December 09, 2002 5:23 PM
  To: Tomcat Users List
  Subject: File structure in webapps for tomcat.
 
  Hi,
 
  I am trying to get my servlet to write to and read from files within my
  webapp structure.  However, when the servlet runs it seems that the
  working
  directory during its lifecycle is c:\xxx\tomcat 4.1.  Is there any way,
in
  web.xml, to force the servlet to run in it's own app directory
structure?
 
  Regards
 
  Simon



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



Micael

---

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



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



RE: I don´t understand the objective of this open list !

2002-12-09 Thread micael
What questions are you talking about?

At 06:51 PM 12/9/2002 -0500, you wrote:

 Thank´s for your answer. Yes, maybe my questions is very dificult because:
 1. Nobody has to installed tomcat 4.1.12 and
 2. Nobody has to run the simple examples of tomcat 4.1.12 after the
install.

I installed 4.1.12 in the car on my laptop.  Took me all of a few minutes,
and was a lot less boring than watching the road.  I don't recall anything
even remotely resembling an issue installing Tomcat standalone.

--- Noel

[For the horrified, I wasn't the one driving at the time ;-)]


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


Micael

---

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



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



[OT} T.O. RE: I don´t understand the objective of this open list !

2002-12-09 Thread micael
Lord, let's stop this.  What is the point?  Who knows what this person 
means?  If they don't like Tomcat, fine.  I don't know why they are 
here.  But that is fine too.

At 08:28 PM 12/9/2002 +, you wrote:
I also have a technical background, but not as big as yours. I have been
programming in java por 3 months now. Even before I started programming
I gave tomcat a try to see my options. I have to tell you that getting
tomcat to run and work fine is trivial. That setting up  connection
pooling is just a matter of following the instructions in jakarta's
site, and that setting mod_jk to work, just following the example, took
like 30 minutes... Now, i'm a linux user, i don't know if it's as easy
or not in windows, but if you can't get tomcat running with minimal
effort, then there has to be a problem in your setop that is beyont
tomcat.

On Tue, 2002-12-10 at 00:37, Mike DiChiappari wrote:
 Notice that I didn't ask a question JOEL BERGMAN (are you a Jakarta
 developer).  I simply chimed in when someone else expressed
 dissatisfaction with this list.  I have been disappointed and
 frustrated by the  that is called documentation.  I stopped
 trying to get tomcat to work properly over a year ago.  Recently I
 looked into it again, and noticed little to no improvement.

 Note that my background is technical, with over twenty years of
 building commercial quality software.  I don't believe in a lot of
 pie-in-the-sky ideals in terms of software development.  I rate
 software on three important criteria: does it do what it is intended,
 can it be used easily, and is it maintainable.

 In terms of tomcat, I give it a grade of incomplete on all three of
 the above.  I can not tell if it does what its supposed to because I
 can't get it to work with a reasonable amount of effort.

 Here if my contribution to Jarkata and people looking for a low cost
 Java solution.  Use JRUN (discalimer: I am not affiliated with
 Macromedia in any way).  It is under $1000 and includes a full J2EE
 implementation (JSP, servlets, EJB).  It looks like the installer
 does all the stuff that mod_jk, mod_jk2, and mod_web are supposed to
 (if anyone could get them to work).  A development version is
 available for free.

 Mike



-Original Message-
   From: Mike DiChiappari [mailto:[EMAIL PROTECTED]]
   Sent: Monday, December 09, 2002 4:37 PM
   To: Tomcat Users List
   Subject: Re: I don´t understand the objective of this open list !
 
 
   I know the reason for this list - at least as it applies to Jakarta.
   It is meant to address the complete lack of adequate documentation
   for tomcat.
 
 Are you volunteering to write some, Mike DiChiappari?  That is how things
 get done: someone DOES them.
 
 If you don't know enough, you could skim the mailing list looking for
 questions, finding out when they were answered to the questioner's
 satisfaction, and using that as your source material.
 
 Or do you just want answers to YOUR questions?
 
  --- Noel
 
 
 --
 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]

Micael

---

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



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



Re: I don¥t understand the objective of this open list !

2002-12-09 Thread micael
I think that you may find, from my experience, that you are going to have 
to pay more than a little for accountability to get what you are asking 
for here.  What is your problem that is Tomcat's fault anyway?

At 09:43 PM 12/9/2002 -0500, you wrote:
Mark,

Thank you for your candid response.  I believe I understand the point of 
Jakarta now.

We're happy not to have you use the software.  If you
read the documentation for other application servers,
you'll quickly find that there is an equal amount of
'geek' speak.


Since you say we're I assume you have had your hand in tomcat 
development.  If this is so, then I believe it is true that in order to be 
able to successfully use tomcat, one must be involved in it.  I am glad 
that is not true about other things in life.  For example, I can drive a 
car, but can't (and have no desire to) build or fix one.


Sad to say, but at some point you need to understand
the technology and know what you are doing in order to
accomplish a reasonably complex configuration.


I understand J2EE methodology, design standards, how to design, build, 
develop and code in Java.  I can figure out how to setup Weblogic, 
iPlanet, and JRun.  I guess I still am not savy enough to use tomcat.


Currently, I run Tomcat 4.12 and Apache 2.043 on a
Windows/2000 Pro development box with multiple virtual
hosts.


That's one of you (and I'm assuming you're a developer of tomcat)./



Complaining about what isn't is in general not in
anyone's best interest.  Rather than complain, do.  If
you don't wish to do, then don't complain.

I understand it if your management has asked you to
perform some application build on Tomcat, and your
experience has only been with vendor hand-holding.
It's time to start learning the basics, and not
vendor-speak.

This I think is the major cause of IT issues today.
People implement vendor solutions without
understanding the underlying technology used to meet
the business requirements.  This leads to people being
familiar with vendor implementations, and not the
underlying standards.

What happens when a vendor goes out of business?  What
happens when the vendor decides not to support your
favorite feature?  What happens when the vendor
decides not to implement your desired feature.

Sure they may lose your business, but it's hardly the
only business that they have.  However, what you've
lost is all the investment in vendor technology, since
you've not invested in the fundamentals underlying
that technology.

In short, you either change your business practices to
suit the technology that past [bad] decisions have
constrained you to, or you throw away a lot of
investment.


First of all, this thread was started by someone who could get no support 
and was complaining.  I'll leave it up to you to go through the mail 
archive to find the original poster (how do you like being referred to the 
mail archives).  At least with a vendor I have someone to yell at.  And 
I've seen that technique work.

Secondly, I am not so full of myself to take responsibility for an entire 
app server.  Yes, it is worth it to pay a few bucks to a company - just 
for the accountability.  When your medical software can not meet FDA 
guidelines or you get sued because of a bug in your app server - good 
luck.   I feel like I can depend on my app server vendor more than whoever 
is Jakarta.

Third, I'm not worried about my J2EE vendor going out of business. The 
entire point of J2EE is that it is a portable platform.  I've already 
ported between real J2EE app servers with little trouble.

Fourth, I've had success with much of the open source and Linux 
software.  We run Redhat with sendmail, Apache with PHP (Horde and IMP), 
and have built solutions with Xerces/Xalan.  My main complaint is with 
Jakarta/tomcat.  It really is awful.

Even though I disagree with you on just about every point, I am going to 
take your invitation.  Bye bye tomcat.

Mike



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


Micael

---

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



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



Re: localization recommendation for tomcat

2002-12-09 Thread micael
I will take scalable over speed any day.  I cannot imagine writing a 
separate class for a language in Java.  I have not looked at these, but it 
just feels so wrong.  Do you have to rewrite these classes each time you 
change something?  I think I will take a look at this Baracuda.  That seems 
the fair thing to do.  I think at the very minimum, however, that this is 
going to cause me to have to shutdown the application and recompile 
everytime I want to add a new language, make some changes to the text, 
etc.  The only way to escape doing what needs to be done at runtime is to 
do it in compiling, I suspect, which means downtime, etc.  I will look 
though, to be fair, and I always liked Jacob's submissions.

Micael

At 08:51 PM 12/9/2002 -0600, you wrote:

Take a look at the Barracuda project localization.
http://barracuda.enhydra.org/cvs_source/Barracuda/docs/comp/tutorial_hello_world4.html

It utilizes XMLC ( http://xmlc.enhydra.org/ )

Using one or more properties files which contain localized strings, a 
localization Ant taskdef creates localized XMLC template classes replacing 
the strings in html templates which are XMLC pre-compiled to java classes 
and then are compiled.  The classes are loaded in a similar fashion to 
Java string bundles.  So, you have your Interface class  MyClassHTML.class 
and then localized implementation classes such as MyClassHTML_en.class, 
MyClassHTML_fr.class, MyClass_de.class, and so on.  It can be set up so 
that the browser locale controls which localized class gets instantiated 
or you can do it manually.  So, instead of incurring runtime overhead 
replacing strings and such, you have compile-time localization which is 
nice and fast and easily maintained.

Note, don't try running the examples off the enhydra.org site.  The stuff 
there is old.  We are in the process of moving Barracuda to a new server 
where everything will be running perfectly.  Until then, download the 
latest CVS or grab the latest release:

http://barracuda.enhydra.org/software/cvs/index.html
http://barracuda.enhydra.org/software/downloads/barracuda-1.1.1.zip


The CVS source is quite stable and I'd recommend using it, although some 
of the package structure has been modifed.  If you have questions, don't 
hesitate to join the Barracuda list ask someone there.  It is pretty active.
http://barracuda.enhydra.org/cvs_source/Barracuda/docs/mailing_lists.html


Jake


At 05:09 PM 12/9/2002 -0800, you wrote:
I used the jakarta-taglibs stamdardized jstl and in particular fmt:message

There is a writeup in TheJavaServerPages book on localization.
Pg 221 has an example that has more than you need.

One problem in 4.1.12 was that I needed to set
enablePooling=false in the context, I think.

The problem may have been fixed in a more recent version of the
jstl.

Let me know if you need more.

JSPs for this are really easy.

I am also starting to look at Struts.

Cheers


At 02:50 PM 12/9/02 -0800, you wrote:
I am looking for a recommendation for serving localized HTML content via
tomcat.   I am looking to have Tomcat provide the most accurate HTML file
based on the locale of the browser.  The Apache web server handles this
nicely and I would like to implement the same functionality in tomcat 
4.1.x.
For example, when a request comes in for index.html and the browser locale
is french [fr], if the server has an index.html.fr file and an 
index.html.en
file, I would like it to serve the French version.

I am not looking for a complete solution but rather a pointer for a
developer.  I have read a little about turbine services and servlets
filters.  Can someone make a recommendation for the most applicable
technology for this feature?


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

Micael

---

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



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



Threads of Control

2002-12-08 Thread micael
Can a servlet start an application on a server which is available to a user 
on the server machine?  Something, i.e., like the following:

import java.io.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;

public class AppCtrl extends HttpServlet implements Runnable {
  private boolean change;
  private Thread ctrl;
  private App [] app;

  public void init() throws ServletException() {
ctrl = new Thread(this);
ctrl.setPriority(Thread.MIN_PRIORITY);
ctrl.start();
  }

  public void run() {
while(true) {
  if(AppProps.change()) {
app = AppProps.changes();
for(int i = 0; i  app.length; i++) {
  AppManager.implementChange(app[i]);
  try {
ctrl.sleep(200); // .2 second break between changes.
  } catch (InterruptedException ignored) {
  }
}
  }
}
  }
}


Micael

---

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank you 



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



RE: Tomcat 4.1, DBCP and Oracle

2002-12-07 Thread micael
Sounds as if you don't have the class that it says you don't have.  You 
need to load in the appropriate JDBC driver class.  Have you just loaded 
the standard version of JDBC?

At 12:45 PM 12/7/2002 -0500, you wrote:
Oh yeah...the error I get is:
java.sql.SQLException: Cannot load JDBC driver class 'null'


~ t r o y ~


  -Original Message-
 From: Campano, Troy
 Sent: Saturday, December 07, 2002 12:44 PM
 To:   '[EMAIL PROTECTED]'
 Subject:  Tomcat 4.1, DBCP and Oracle

 Has anyone been able to get Tomcat 4.1.12 or Tomcat 4.1.16 working with 
DBCP and Oracle (classes12.zip)?
 I've tried a billion combinations of configurations and nothing works.

 I've see other people on the web have also had this problem.
 I've tried for months to figure this out and I've opened bug cases, but 
nothing seems to work.

 Anyone able to do it?

 thank you!

 ~ Troy Campano ~

Micael

---

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



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



Re: Where to put JSP files?

2002-12-06 Thread micael
Thanks.  I have always put the webpages under WEB-INF to avoid directory 
views.  This is a realistic option.

At 03:45 AM 12/6/2002 -0800, you wrote:
To prevent users from seeing any directory add the
entry
welcome-file-list
welcome-fileindex.jsp/welcome-file
/welcome-file-list
To your web.xml and in every directory, place a copy
of index.jsp.  It can just be a redirect to your home
page.
--- Peter Lee [EMAIL PROTECTED] wrote:
 Where should I put my jsp files? I usually put them
 above the /web-inf folder, but this
 would allow  clients to see the directory listing.
 Should I use a redirect mapping to
 protect them from being viewed? In which file should
 I do it?

 Thanks

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



__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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


Micael

---

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



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



Re: Where to put JSP files?

2002-12-06 Thread micael
You can check the struts list archives and look under jim mitchell's 
name.  He has provided a sample application with all he JSP pages  under 
WEB-INF.  The key is just to put the JSP pages where you want them 
protected under WEB-INF and then to map your result pages to wherever you 
put them.  It is straightforward.  The idea some people have given you of 
using drilled pages in webapps, of course, does not answer your 
question.  I like the idea of the welcome page solution offered 
though.  That is nice!

Micael

At 03:42 AM 12/6/2002 -0800, you wrote:
Where should I put my jsp files? I usually put them above the /web-inf 
folder, but this
would allow  clients to see the directory listing. Should I use a redirect 
mapping to
protect them from being viewed? In which file should I do it?

Thanks

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

Micael

---

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



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



RE: Why run tomcat as root

2002-12-06 Thread micael
John, I like your horse sense.  It is refreshing. Micael

At 12:00 PM 12/6/2002 -0500, you wrote:


Well, we are going around in circles.  You're not understanding that the
developers HAVE thought about this issue, and have thought about it for
years (more than 40 years).  It's not a mistake.  Not only have they thought
about it, they've had ample opportunity to start over and implement the
feature you're talking about, and have decided NOT to do it.  Do you get
that?  Not to be rude, but nobody, nobody, is going to seriously consider
doing what you want to do in any future versions of Linux.  Why on earth
would they completely reverse previous design decisions in an incremental
release instead of designing it that way from the beginning?

The things I've suggested aren't workarounds.  Workaround implies
something that is done to get around a bug.  That isn't the case.  The
things that I (and others) have suggested are viable alternatives for doing
what you want to do, instead of destroying a major design decision that was
made years ago for very good reason.

There's no problem in the kernel team from the perspective of the
privileged ports issue.  The scheme is set up the way it is set up for very
good reason, and unless you have a better reason for changing it (you
don't...convenience is not a reason) it isn't going to get changed, at
least not as an official release.  If you want to change it, you'll have to
take the source and change it yourself, find someone else to change it for
you, or pay someone to change it for you.

John

 -Original Message-
 From: Vy Ho [mailto:[EMAIL PROTECTED]]
 Sent: Friday, December 06, 2002 11:51 AM
 To: Tomcat Users List
 Subject: RE: Why run tomcat as root



 Thank you for your comment.  However, I think you gave a good
 practical
 work around for now, when the kernel is not there yet.  But that also
 means many developers still have to search for a solution.  I
 think kernel
 developers should think about this issues, and also similar
 issues, and
 come up with a good one.  I don't think anyone need to hack into it if
 they are not expert in the kernel yet.  For now, I think
 using redirect
 and taken your advice is a right thing to do.  I only want to
 say that the
 problem is in the kernel team, and they should fix that in the future.
 Note that I haven't develop any kernel.  My suggestion is not
 the best,
 but hey, that means there's a better one out there, and I
 hope it'll make
 into the next release (too bad, 2.6 feature already is frozen :-).


 On Fri, 6 Dec 2002, Turner, John wrote:

 
  There is already a process and there are several tools for
 delegating
  superuser access to a non-superuser account in specific
 circumstances, and
  protecting against misuse of same.  Research things like
 the sudo tool,
  chroot jails, etc.  Makes much more sense to me than
 hacking around in the
  kernel.
 
  John
 
   -Original Message-
   From: Vy Ho [mailto:[EMAIL PROTECTED]]
   Sent: Friday, December 06, 2002 11:12 AM
   To: Tomcat Users List
   Subject: RE: Why run tomcat as root
  
  
  
  
   Very good point, but what if the administrator
 him/herself grand this
   access to this particular user?  Linux and Unix is all about
   flexibility
   right?  Yes, kernel would be to be changed.  But I thought I
   already have
   that, and if it's not, then it's worth a change, versus
 thousands and
   thousands of developers has to work around it (take it millions).
  
  
  
   On Thu, 5 Dec 2002, Turner, John wrote:
  
   
Switching UNIX/Linux to allow non-privileged users to bind
   to privileged
ports would require fairly major modifications to the
   kernel.  There's no
runtime parameter that can be set to magically allow
   regular user accounts
to bind to a privileged port.
   
Let's remember that the privileged port restriction is
   there for a reason, a
very valid reason.  Would you really want just any user on
   your server to be
able to install a homegrown listener on port 80?  I sure
   wouldn't...the
potential for malicious use is huge.  Imagine somebody
   getting a regular
user account on one of Amazon.com's web servers in their
   web server farm,
then installing a web server on port 80 (or 443) that
   would simply look
for traffic starting with 3, 4 or 5 (first digits for
   valid credit
cards) and copy the traffic to an external location.
   
Sometimes it helps to consider the bigger picture.  The
   people who wrote
UNIX weren't stupid.  They did things for a reason.
   Sometimes the reason
seems silly, sometimes it seems outdated, but after review,
   it usually makes
perfect sense.  Linus and the rest of the Linux hackers
   could have easily
changed this when they wrote the first Linux kernel, but
   they didn't.  So,
you've got two LARGE groups of people over a combined span
   of about 45 years
(30+ for UNIX, 10 or so for Linux) choosing to make ports

Re: OFF-TOPIC: weak references

2002-12-06 Thread micael
If you still have a reference to the object in the HashMap the object won't 
be gced.  The weak hash map is just a weak hash map, not a weak 
application in the appropriate sense.

At 04:48 PM 12/6/2002 -0200, you wrote:
  This is actually about java in general
  I just to assure I understood the concept of WeakHashMap. What is weak
referenced in this map is the keys, right? So, let's say I have a
WeakHashMap and a HashMap, both with the same key/value pairs. When I
remove an object from the HashMap the garbage collector will remove its
REFERENCE in the WeakHashMap object, but not necessarily the object,
correct?

--

Felipe Schnack
Analista de Sistemas
[EMAIL PROTECTED]
Cel.: (51)91287530
Linux Counter #281893

Faculdade Ritter dos Reis
www.ritterdosreis.br
[EMAIL PROTECTED]
Fone/Fax.: (51)32303328


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


Micael

---

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



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



Re: OFF-TOPIC: weak references

2002-12-06 Thread micael
The object is not gced.  That is right.

At 05:00 PM 12/6/2002 -0200, you wrote:

  Yes, so the reference to my object is gc'd, not the object itself (as
long its key is not strongly referenced anywhere else) when I remove an
object from the HashMap
  right?

On Fri, 2002-12-06 at 16:59, micael wrote:
 If you still have a reference to the object in the HashMap the object 
won't
 be gced.  The weak hash map is just a weak hash map, not a weak
 application in the appropriate sense.

 At 04:48 PM 12/6/2002 -0200, you wrote:
This is actually about java in general
I just to assure I understood the concept of WeakHashMap. What is weak
 referenced in this map is the keys, right? So, let's say I have a
 WeakHashMap and a HashMap, both with the same key/value pairs. When I
 remove an object from the HashMap the garbage collector will remove its
 REFERENCE in the WeakHashMap object, but not necessarily the object,
 correct?
 
 --
 
 Felipe Schnack
 Analista de Sistemas
 [EMAIL PROTECTED]
 Cel.: (51)91287530
 Linux Counter #281893
 
 Faculdade Ritter dos Reis
 www.ritterdosreis.br
 [EMAIL PROTECTED]
 Fone/Fax.: (51)32303328
 
 
 --
 To unsubscribe, 
e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]

 Micael

 ---

 This electronic mail  transmission and any accompanying documents contain
 information belonging to the sender which may be confidential and legally
 privileged.  This information is intended only for the use of the
 individual or entity to whom this electronic mail transmission was sent as
 indicated above. If you are not the intended recipient, any disclosure,
 copying, distribution, or action taken in reliance on the contents of the
 information contained in this transmission is strictly prohibited.  If you
 have received this transmission in error, please delete the 
message.  Thank
 you



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

--

Felipe Schnack
Analista de Sistemas
[EMAIL PROTECTED]
Cel.: (51)91287530
Linux Counter #281893

Faculdade Ritter dos Reis
www.ritterdosreis.br
[EMAIL PROTECTED]
Fone/Fax.: (51)32303328


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

Micael

---

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



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



Re: Tomcat 4 class loader precedence order?

2002-12-06 Thread micael
I had missed this.  Thanks, Jacob.

At 01:14 PM 12/6/2002 -0600, you wrote:

Hello Will,

The way webapps work with classloaders is opposite that of the normal
classloader precedence.  The WebappClassloader looks in its own
classloader for libraries first before looking at parent classloaders.
What normally happens is that the parent classloader is queried first
for libraries and if they don't exist there, then they are loaded from
those further down the hierarchy (closer to the current classloader).

As far as the order goes, here is the WebappClassloader order:

WEB-INF/classes
WEB-INF/lib

class files in the WEB-INF/classes dir are *always* loaded first.

See more here:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html

Jake

Friday, December 06, 2002, 12:30:25 PM, you wrote:

WH Hi all, class loader question (aren't they all?)

WH We're running against Weblogic, and Weblogic issues Service Packs which
WH inevitably are simply jar files with updated classes.

WH However, these jar files need to be specified BEFORE the regular weblogic
WH jar files in the classpath.

WH So, I'm curious as whether there is a determinate order that the files in
WH WEB-INF/lib are placed on the classpath, and also whether lib is placed
WH before WEB-INF/classes. (i.e. is it alphabetical or simply whatever 
order it
WH shows up in an unsorted directory listing)

WH I suppose the same question applies to the $CATALINA_HOME/shared 
directories
WH as well.

WH Thanx!

WH Regards,

WH Will Hartung
WH ([EMAIL PROTECTED])




WH --
WH To unsubscribe, 
e-mail:   mailto:[EMAIL PROTECTED]
WH 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]

Micael

---

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



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



RE: DNS NAMES

2002-12-04 Thread micael
You need to understand that http://www.test.com/test/test.htm is a compound 
name, meaning that it covers differing naming 
systems/applications.  test.com comes from the the internet naming strategy 
and is read, as a tree structure, from right to left.  However, the file 
test/test.htm comes from a file naming strategy and is read, as a tree 
structure, from left to right.  You, essentially, are trying to combine two 
disparate but cooperative naming systems.

Micael

At 08:45 AM 12/4/2002 -0500, you wrote:

No, it is not possible.  www.test.com is a hostname, equal to an IP
address.  /final can never work in DNS, / is an illegal hostname
character.

Since this is completely off topic, you should RTFM on the Internet Domain
Name System, then come back with a Tomcat question.

John

 -Original Message-
 From: Laxmikanth M.S. [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, December 04, 2002 6:08 AM
 To: Tomcat Users List
 Subject: RE: DNS NAMES


 Hi Noel,
 I want to create a DNS name itself like thatis it possible.



  -Original Message-
  From:   Noel J. Bergman [SMTP:[EMAIL PROTECTED]]
  Sent:   Wednesday, December 04, 2002 4:28 PM
  To: Tomcat Users List
  Subject:RE: DNS NAMES
 
   Is it possible to create a DNS Name like www.test.com/final.
 
  The DNS name is www.test.com.  The /final is not part of
 the DNS.  The
  www,
  by convention only, implies a protocol of HTTP and a port
 of 80.  But if
  you
  are unfamilar with the Domain Name System, that is probably
 just going to
  confuse you.
 
  see also: http://www.dns.net/dnsrd/rfc/
 
  --- Noel
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 *
 Disclaimer: The information in this e-mail and any attachments is
 confidential / privileged. It is intended solely for the addressee or
 addressees. If you are not the addressee indicated in this
 message, you may
 not copy or deliver this message to anyone. In such case, you
 should destroy
 this message and kindly notify the sender by reply email.
 Please advise
 immediately if you or your employer does not consent to
 Internet email for
 messages of this kind.
 *

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


Micael

---

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank you 



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



RE: DNS NAMES

2002-12-04 Thread micael
There is much that could be said, if we decide to talk precisely.  A URL, 
for example, is quite different than a URI, etc.  But, that would take us 
beyond the confines of tomcat-user.  That is unfortunate, because this is 
an interesting conversation.  Too often these discussions are not precise, 
and ill-educate newbies like myself.

At 11:18 AM 12/4/2002 -0500, you wrote:

True, but there are many services out there that provide DNS-based URL
forwarding, where some.url.com can be forwarded to
some.other-url.com/file.html.  So, technically, it *is* possible to set up
DNS for http://www.test.com/test/test.htm; but doing so requires a special
service that supersedes DNS, a URL forwarding service.  Such special
services typically require a fee.

DNS in and of itself cannot resolve URLs that have filenames in them.

John

 -Original Message-
 From: micael [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, December 04, 2002 11:08 AM
 To: Tomcat Users List
 Subject: RE: DNS NAMES


 You need to understand that http://www.test.com/test/test.htm
 is a compound
 name, meaning that it covers differing naming
 systems/applications.  test.com comes from the the internet
 naming strategy
 and is read, as a tree structure, from right to left.
 However, the file
 test/test.htm comes from a file naming strategy and is read,
 as a tree
 structure, from left to right.  You, essentially, are trying
 to combine two
 disparate but cooperative naming systems.

 Micael

 At 08:45 AM 12/4/2002 -0500, you wrote:

 No, it is not possible.  www.test.com is a hostname, equal to an IP
 address.  /final can never work in DNS, / is an illegal hostname
 character.
 
 Since this is completely off topic, you should RTFM on the
 Internet Domain
 Name System, then come back with a Tomcat question.
 
 John
 
   -Original Message-
   From: Laxmikanth M.S. [mailto:[EMAIL PROTECTED]]
   Sent: Wednesday, December 04, 2002 6:08 AM
   To: Tomcat Users List
   Subject: RE: DNS NAMES
  
  
   Hi Noel,
   I want to create a DNS name itself like thatis it
 possible.
  
  
  
-Original Message-
From:   Noel J. Bergman [SMTP:[EMAIL PROTECTED]]
Sent:   Wednesday, December 04, 2002 4:28 PM
To: Tomcat Users List
Subject:RE: DNS NAMES
   
 Is it possible to create a DNS Name like www.test.com/final.
   
The DNS name is www.test.com.  The /final is not part of
   the DNS.  The
www,
by convention only, implies a protocol of HTTP and a port
   of 80.  But if
you
are unfamilar with the Domain Name System, that is probably
   just going to
confuse you.
   
see also: http://www.dns.net/dnsrd/rfc/
   
--- Noel
   
   
--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
  
 *
   Disclaimer: The information in this e-mail and any attachments is
   confidential / privileged. It is intended solely for the
 addressee or
   addressees. If you are not the addressee indicated in this
   message, you may
   not copy or deliver this message to anyone. In such case, you
   should destroy
   this message and kindly notify the sender by reply email.
   Please advise
   immediately if you or your employer does not consent to
   Internet email for
   messages of this kind.
  
 *
  
   --
   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]

 Micael

 ---

 This electronic mail  transmission and any accompanying
 documents contain
 information belonging to the sender which may be confidential
 and legally
 privileged.  This information is intended only for the use of the
 individual or entity to whom this electronic mail
 transmission was sent as
 indicated above. If you are not the intended recipient, any
 disclosure,
 copying, distribution, or action taken in reliance on the
 contents of the
 information contained in this transmission is strictly
 prohibited.  If you
 have received this transmission in error, please delete the
 message.  Thank you



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


Micael

---

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above

RE: DNS NAMES

2002-12-04 Thread micael
But don't be misled.  Noel is giving you direct answer to the way you put 
the question, and I suspect, as others before me have, that you don't mean 
the question the way you are expressing it.  You would be better served 
saying why you want to do this, because you are really going to a lot of 
this and that over something that seems to be really unimportant.  What you 
want to do probably can be done, if you state what the real objective 
is.  Of course, making whatever into a DNS name is not your goal, we can 
surmise.

Micael

At 06:03 PM 12/4/2002 -0500, you wrote:
 I want to create a DNS name itself like thatis it possible.

As I said, the DNS name is www.test.com.  The /final is not part of the DNS.
If you want the short answer, it is: NO, by definition.  If you want to know
WHY: DNS is DOMAIN Naming System.  The /final is a local resource, not the
domain.

--- Noel


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


Micael

---

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank you 



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



RE: Loading Properties Files

2002-12-04 Thread micael
Depends upon what you want to do with the properties files and how you 
access them.  Some ways of accessing them require that the name to access 
be relative to the classpath, others don't.  You are better off to learn 
about properties files in this instance.  There is nothing peculiar to the 
web-structure that I know of that is important about locating properties 
files.

At 03:14 PM 12/4/2002 -0800, you wrote:

And if you have a .war file?  Then where would you put your properties
files?

 -Original Message-
 From: Roberto Bouza [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, December 04, 2002 2:49 PM
 To: Tomcat Users List
 Subject: Re: Loading Properties Files



  Thats right.

  If you don't have a .war file, you can use the classes dir
 inside your WEB-INF
 dir, and create a new directory like conf, the put inside
 all the properties
 files. In that way the ClassLoader looks for  the files in
 there when you use
 something like this:

   try {
   Properties props = new Properties();
   InputStream in =
 getClass().getResourceAsStream(/conf/db.properties);
   props.load(in);
 ..

  propertie1 = props.getProperty(propertie1);

  C'ya

 Quoting Will Hartung [EMAIL PROTECTED]:

   From: [EMAIL PROTECTED]
   Subject: Loading Properties Files
 
 
   My problem is that the class cannot location my
 properties file. I am
   unable to
   use other suggested methods that I have noticed on this
 list since those
   problems
   involved Properties File within Servlets.
  
   After some testing, I determined for some reason the
 default directory it
   is looking
   for my properties file is the Windows System Directory
 (Determined this
  by
   opening
   a file in the default directory, outputing something in
 it and searching
   for the file).
  
   Anyone have any ideas on how to solve this problem? I do
 not want to hard
   code the
   exact location due to obvious reasons
 
  The problem is that you appear to be loading a file with an
 absolute path,
  versus the common form of load a properties file via the
 ClassLoader.
 
  Fumble about with the ClassLoader.getResourceAsStream to
 have it hunt down
  your properties file, and then feed that stream to your Properties.
 
  public static yourMethod()
  {
  ClassLoader cl = YourClass.class.getClassLoader();
  Properties prop = new Properties();
  prop.load(cl.getResourceAsStream(yours.properties));
  }
 
  Then, just drop your properties at the right place in your
 WARs classes
  area.
 
  Regards,
 
  Will Hartung
  ([EMAIL PROTECTED])
 
 
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
 


 --
 = Roberto Bouza Fraga   =
 ===
   Research  Development Engineer
Ella Cisneros Fontanals Holdings
  Ph: (305)-860-0116 / Fax:(305)-860-9401
 ===
e-Mail:[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]


Micael

---

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank you 



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



RE: DNS NAMES

2002-12-04 Thread micael
That only cuts to the chase you are thinking of George.  It is correct and 
neat and all that, but does not respond to what the question really must 
be.  At least I would be amazed if the writer actually is asking about or 
worried about this.  It would be nice to know what the person is trying to 
achieve, then we can give them an answer related to that.  The chase 
depends upon what the hunter wants, not what we want.  Nice to see this 
list though.  ///8-)

At 04:57 PM 12/4/2002 -0700, you wrote:
Let me really cut right down to the chase here:

Valid characters in a domain name are:

a-z
0-9 (digits)
- (Hyphen)
. (Period)

Look at the RFC, and read the BNF definition for an identifier.

-Original Message-
From: micael [mailto:[EMAIL PROTECTED]]
Sent: 04 December, 2002 4:22 PM
To: Tomcat Users List
Subject: RE: DNS NAMES


But don't be misled.  Noel is giving you direct answer to the way you put
the question, and I suspect, as others before me have, that you don't mean
the question the way you are expressing it.  You would be better served
saying why you want to do this, because you are really going to a lot of
this and that over something that seems to be really unimportant.  What you
want to do probably can be done, if you state what the real objective
is.  Of course, making whatever into a DNS name is not your goal, we can
surmise.

Micael

At 06:03 PM 12/4/2002 -0500, you wrote:
  I want to create a DNS name itself like thatis it possible.

As I said, the DNS name is www.test.com.  The /final is not part of the
DNS.
If you want the short answer, it is: NO, by definition.  If you want to
know
WHY: DNS is DOMAIN Naming System.  The /final is a local resource, not the
domain.

 --- Noel


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

Micael

---

This electronic mail  transmission and any accompanying documents contain
information belonging to the sender which may be confidential and legally
privileged.  This information is intended only for the use of the
individual or entity to whom this electronic mail transmission was sent as
indicated above. If you are not the intended recipient, any disclosure,
copying, distribution, or action taken in reliance on the contents of the
information contained in this transmission is strictly prohibited.  If you
have received this transmission in error, please delete the message.  Thank
you



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


Micael

---

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank you 



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



RE: Loading Properties Files

2002-12-04 Thread micael
A .war file is just a wrapper for a web application.  I think he does not 
know what one is.  It is like a .zip or a .jar file.  Do you know that?

At 06:56 PM 12/4/2002 -0600, you wrote:

No, that's not true at all.

The examples already given will find properties files for you just fine 
whether the file is in a directory structure or inside an archive.  How do 
you think Java loads classes?  It works out of archives, no?

here are some various was to access a properties file ( or any resource, 
for that matter) in whether the app is deployed as a directory or as a 
.war file (even inside a .jar file in WEB-INF/lib)

This will load a file in WEB-INF/classes/conf or any jar file in the 
classpath with a package of conf...
getClass().getResourceAsStream(/conf/db.properties);

This will load a file relative to the current class.  For instance, if the 
class is org.mypackage.MyClass, then the file would be loaded at 
org.mypackage.conf.dbproperties.  Note that this is because we didn't 
prepend / to the path.  When that is done, the file is loaded from the 
root of the current classloader where this loads it relative to the 
current class...
getClass().getResourceAsStream(conf/db.properties);

this will find db.properties anywhere in the current classloader as long 
as it exists in a conf package...
getClass().getClassLoader().getResourceAsStream(conf/db.properties);


This will find the file in a conf directory inside the webapp (starting 
from the root).  This starts looking in the same directory as contains 
WEB-INF.  When I say directory, I don't mean filesystem.  This could 
be in a .war file as well as in an actual directory on the filesystem...
getServletContext().getResourceAsStream(/conf/db.properties);

of course you would probably not want just anyone seeing your 
db.properties file, so you'd probably want to put in inside WEB-INF of 
your webapp, so
getServletContext().getResourceAsStream(/WEB-INF/conf/db.properties);

If your db.properties exists in another classloader which your app has 
access to, you can reach it by using:
Thread.currentThread().getContextClassLoader().getResourceAsStream(conf/db.properties);

That will act similar to getClass().getClassLoader(), but it can see 
across all available classloaders where the latter can only see within the 
classloader that loaded the current class.

So, as you can see, you have quite a number of options.  There you go.

Jake

At 03:37 PM 12/4/2002 -0800, you wrote:

If I understand you correctly, the properties file CANNOT be in the war
file, it needs to be external.  Right.

 -Original Message-
 From: micael [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, December 04, 2002 3:25 PM
 To: Tomcat Users List
 Subject: RE: Loading Properties Files


 Depends upon what you want to do with the properties files
 and how you
 access them.  Some ways of accessing them require that the
 name to access
 be relative to the classpath, others don't.  You are better
 off to learn
 about properties files in this instance.  There is nothing
 peculiar to the
 web-structure that I know of that is important about locating
 properties
 files.

 At 03:14 PM 12/4/2002 -0800, you wrote:

 And if you have a .war file?  Then where would you put your
 properties
 files?
 
   -Original Message-
   From: Roberto Bouza [mailto:[EMAIL PROTECTED]]
   Sent: Wednesday, December 04, 2002 2:49 PM
   To: Tomcat Users List
   Subject: Re: Loading Properties Files
  
  
  
Thats right.
  
If you don't have a .war file, you can use the classes dir
   inside your WEB-INF
   dir, and create a new directory like conf, the put inside
   all the properties
   files. In that way the ClassLoader looks for  the files in
   there when you use
   something like this:
  
 try {
 Properties props = new Properties();
 InputStream in =
   getClass().getResourceAsStream(/conf/db.properties);
 props.load(in);
   ..
  
propertie1 = props.getProperty(propertie1);
  
C'ya
  
   Quoting Will Hartung [EMAIL PROTECTED]:
  
 From: [EMAIL PROTECTED]
 Subject: Loading Properties Files
   
   
 My problem is that the class cannot location my
   properties file. I am
 unable to
 use other suggested methods that I have noticed on this
   list since those
 problems
 involved Properties File within Servlets.

 After some testing, I determined for some reason the
   default directory it
 is looking
 for my properties file is the Windows System Directory
   (Determined this
by
 opening
 a file in the default directory, outputing something in
   it and searching
 for the file).

 Anyone have any ideas on how to solve this problem? I do
   not want to hard
 code the
 exact location due to obvious reasons
   
The problem is that you appear to be loading a file with an
   absolute path,
versus the common form of load a properties file

Re: SUCCESS w. Tomcat execution!

2002-12-03 Thread micael
Congratulations, even from me.  ///;-).  Would you like a small list of 
books that will give you the inside scoop on this sort of technology?  I 
think that it would serve the list well if you asked for the same under a 
Subject of Tomcat Book List, and people could make their recommendations 
for your perusal.  Congratulations again.  (The Ant suggestion was a good 
one for you to pay attention to, Steve.)  Micael

At 10:36 PM 12/2/2002 -0800, you wrote:
 Yes, SUCCESS is what I have finally met with in trying/attempting to get 
Tomcat
activated!!!  I make a thunderous declaration that I have finally done 
it, and
of course I thank all those who helped me out, and that even includes Micael!!
Now, I need some help with trying to see a JSP/Servlet in my browser, a 
long time
problem with me!! I have just now installed Ant. Does that aid me in 
trying to get
a JSP going or not?

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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

Micael

---

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank you 



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



Re: Newbie: Infos about Windows NT Authentication

2002-12-03 Thread micael
You might be better off looking at the NT documentation than Tomcat 
documentation.  The way environmental variables, etc. are set on NT is an 
NT matter.

At 06:39 PM 12/3/2002 +0100, you wrote:
Hello,
where can I get basic-information about Windows NT Authentication and
Tomcat. I read the Tomcat Documentation JNDI-Resource HOW-TO and REALM
HOW-TO, but I didn’t understand for example how to configure the Windows NT
Server to run Tomcat with Windows NT Authentication …

thanks for help,
Jasper



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


Micael

---

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank you 



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



Re: Tomcat BOOK List Request

2002-12-03 Thread micael
You should get a lot of them from this:

Servlets:
Java Servlet Programming, Hunter and Crawford
JSP:
I learned this the hard way (reading the source code) and never 
found a book I liked before learning it on my own.
Tomcat:
Apache- akarta -Tomcat, Goodwill
David Geary has one coming out, which probably will be good.
Taglibs (essential to JSP);
Get Geary's book on that one.
Struts:
Struts in Action (new book), really good.
XML (you have to learn this or forget it)
Read Bret McLaughlin's books with O'Reilly - All of them.


At 03:13 PM 12/3/2002 -0800, you wrote:
 Hello, as Micael wanted me to do, I am making a formal request of the 
group of
any and all good books on Tomcat technology! I want books specifically on the
subject of deploying either JSP's and/or Servlets in the Tomcat container. 
I have
gone WAY TOO DAMN LONG now with an utter inability to do this!

__
Do you Yahoo!?
Yahoo! News - Today's headlines
http://news.yahoo.com

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

Micael

---

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank you 



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



Re: HELP!! Tomcat crashes on me!

2002-12-02 Thread micael
Once again, and for the last time, please tell us everything you did after 
opening the zip (or whatever) file.  There is not that much to do, and we 
can get you on the right path if you tell us whatever you did.  If you 
won't bother to do that, I am putting you on iggy, Steve.

At 10:28 PM 12/1/2002 -0800, you wrote:
Listen up, men, I just now got thru with trying/attempting to activate 
Tomcat on
the command line, but WITHOUT SUCCESS!! In fact here, for your reading 
pleasure,
is the DOS screen dump: Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\srburrusCd C:\jakarta-tomcat-4.1.12\bin\

C:\jakarta-tomcat-4.1.12\binstartup
Using CATALINA_BASE:   ..
Using CATALINA_HOME:   ..
Using CATALINA_TMPDIR: ..\temp
Using JAVA_HOME:   C:\j2sdk1.4.1_01\
C:\jakarta-tomcat-4.1.12\bin
Now, there has to be something basicly unstable about my current 
installation of
Tomcat, I just don't know what the hell it is!!! Is there possibly a problem
lurking in my system or what?


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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

Micael

---

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank you 



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



Re: HELP!! Tomcat crashes on me!

2002-12-02 Thread micael
So, you have a Context tag that is not closed.  Close it.

At 11:26 PM 12/1/2002 -0800, you wrote:

 Bill, I am about to go to bed, but I couldn't help but displaying the 
screen
dump to u from executing the catalina run command:

 C:\jakarta-tomcat-4.1.12\bincatalina run
Using CATALINA_BASE:   ..
Using CATALINA_HOME:   ..
Using CATALINA_TMPDIR: ..\temp
Using JAVA_HOME:   C:\j2sdk1.4.1_01\
Dec 2, 2002 1:21:41 AM org.apache.commons.modeler.Registry loadRegis
INFO: Loading registry information
Dec 2, 2002 1:21:42 AM org.apache.commons.modeler.Registry getRegist
INFO: Creating new Registry instance
Dec 2, 2002 1:21:43 AM org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
Dec 2, 2002 1:21:45 AM org.apache.commons.digester.Digester fatalErr
SEVERE: Parse Fatal Error at line 369 column 14: The element type C
 be terminated by the matching end-tag /Context.
org.xml.sax.SAXParseException: The element type Context must be te
the matching end-tag /Context.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParse
rorHandlerWrapper.java:232)
at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Err
pper.java:213)
at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLEr
java:366)
at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLEr
java:296)
at org.apache.xerces.impl.XMLScanner.reportFatalError(XMLSca
69)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.han
t(XMLDocumentFragmentScannerImpl.java:1133)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.sca
XMLDocumentFragmentScannerImpl.java:987)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$Fra
Dispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1445)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.sca
LDocumentFragmentScannerImpl.java:333)
at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfi
a:524)
at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfi
a:580)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:
at org.apache.xerces.parsers.AbstractSAXParser.parse(Abstrac
ava:1169)
at org.apache.commons.digester.Digester.parse(Digester.java:
at org.apache.catalina.startup.Catalina.start(Catalina.java:
at org.apache.catalina.startup.Catalina.execute(Catalina.jav
at org.apache.catalina.startup.Catalina.process(Catalina.jav
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Metho
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodA
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Delegatin
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java
Catalina.start: org.xml.sax.SAXParseException: The element type Con
e terminated by the matching end-tag /Context.
org.xml.sax.SAXParseException: The element type Context must be te
the matching end-tag /Context.
at org.apache.xerces.parsers.AbstractSAXParser.parse(Abstrac
ava:1183)
at org.apache.commons.digester.Digester.parse(Digester.java:
at org.apache.catalina.startup.Catalina.start(Catalina.java:
at org.apache.catalina.startup.Catalina.execute(Catalina.jav
at org.apache.catalina.startup.Catalina.process(Catalina.jav
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Metho
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodA
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Delegatin
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java

C:\jakarta-tomcat-4.1.12\bin

I DEFY you to make any kind of rhyme or reason out of this error 
message! What
does all of this mean?

__
Do you Yahoo!?
Yahoo! News - Today's headlines
http://news.yahoo.com

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

Micael

---

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank you 



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



Re: HELP!! Tomcat crashes on me!

2002-12-02 Thread micael
I mean to close the tag.  Did you misunderstand that?  Do you want me to 
drag on the point?  I really have absolutely no interest in insulting you 
and only am trying to help you.

I am not ordering you anything.  I just am not taking the time to be as 
chatty as you would like.  Sorry.  I am taking the time to help you, you 
know.  I don't mind that.  But, if I am trying to help you, why do you care 
if I am being abrupt which I would prefer to describe as terse?

At any rate, it is not my intention, or my desire to upset you.  I am 
trying to help.  Maybe you need different help than I provide.  Sorry.

Micael

At 12:59 PM 12/2/2002 -0800, you wrote:
 Micael, before I refer to my problem w. Tomcat NOT starting the 
correct/right way
for me, I MUST point out something about u (And I frankly don't care at all if
this observation of you gets my emails in the future filtered out of your 
inbox or
not!!) and that is that you are WAY TOO DAMNED ABRUPT and almost demanding 
in the
way that you seem to deal with everyone else in this newsgroup of ours!!! 
I mean,
in your last posting dealing with my problem, you had to say that the 
problem was
with the Context tag in the C:\jakarta-tomcat-4.1.12\conf\server.xml 
file, and
to CLOSE IT!!! Do you really have to be so damned demanding of me?! I mean you
don't even know me at all, so what gives you the right to talk to me--or 
enyone
else--like that???

 With having said that, lemme say that I was just now in that server.xml 
file,
following up on the advice that a Bill Barker gave me, NOT any advice from 
Micael,
and I couldn't readily find at what place exactly in the file I should do the
editing to close the Context tag. There are 2 sections in it that refer to a
context tag, for the ROOT or for the EXAMPLES. I put the context path in 
the ROOT
section recently to try to view a JSP in my web browser, so maybe I messed up
things in the file by doing that, I don't know.

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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

Micael

---

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank you 



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



Re: HELP!! Tomcat crashes on me!

2002-12-02 Thread micael
I have no idea what you did in the server.xml file.  I don't know what I 
put the context path in the ROOT section recently to try to view a JSP in 
my web browser... could mean you were doing.  The context tag is not for 
JSPs.  I really don't know what to say.  What I want to say I won't say 
because I am afraid you will take umbrage at it.  I have no idea what you 
are trying to do or what you have done.  I do know that you can pretty much 
open up Tomcat, set the environmental variables, toss in a war, and run 
it.  You don't have to fuss with the server.xml file at all to do 
that.  What do you want to do?

At 12:59 PM 12/2/2002 -0800, you wrote:
 Micael, before I refer to my problem w. Tomcat NOT starting the 
correct/right way
for me, I MUST point out something about u (And I frankly don't care at all if
this observation of you gets my emails in the future filtered out of your 
inbox or
not!!) and that is that you are WAY TOO DAMNED ABRUPT and almost demanding 
in the
way that you seem to deal with everyone else in this newsgroup of ours!!! 
I mean,
in your last posting dealing with my problem, you had to say that the 
problem was
with the Context tag in the C:\jakarta-tomcat-4.1.12\conf\server.xml 
file, and
to CLOSE IT!!! Do you really have to be so damned demanding of me?! I mean you
don't even know me at all, so what gives you the right to talk to me--or 
enyone
else--like that???

 With having said that, lemme say that I was just now in that server.xml 
file,
following up on the advice that a Bill Barker gave me, NOT any advice from 
Micael,
and I couldn't readily find at what place exactly in the file I should do the
editing to close the Context tag. There are 2 sections in it that refer to a
context tag, for the ROOT or for the EXAMPLES. I put the context path in 
the ROOT
section recently to try to view a JSP in my web browser, so maybe I messed up
things in the file by doing that, I don't know.

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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

Micael

---

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank you 



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



Re: JSP page not found, invoker mess

2002-12-01 Thread micael
This thinking is wrong, Ho.  You don't understand the situation.  The 
invoker servlet only involves the servlets and not the JSP pages, even 
though they become servlets.  The truth is that this is all a freebee and 
we owe the people that did this work a lot of thanks.  If you don't like 
it, don't use it.  However, they have done a marvelous job.  I can tell you 
this, my copy of Tomcat starts up with little fuss and little muss.  I do 
have to know something.  Your difficulty at this point is not what they did 
not do, but what you do not know.

That is not a critique of you but an attempt to get you to see things a bit 
more fairly.  Don't look a gift horse in the mouth.  Know what that 
means?  You can take a horse to water, but you cannot make it float on its 
back.  Know what that means?

Micael

At 01:02 PM 12/1/2002 -0500, you wrote:

After having my problem, and reading the discussion about invoker,
security, etc, I decide to voice up.

My servlets work fine in both tomcat 4.03 and 4.1.12.  However, none of my
jsp pages work (not found).  I guess, it has something to do with the
servlet.  The problem is that if I use the invoker, then it's secuity
whole.  If not, then I will have to change the web.xml to add a new entry
for each of my new jsp pages, or even change the file name.  That is very
inconvenient, and very BAD considering I have to restart the tomcat server
for this to take effect (Please correct me if I am wrong).

I think Tomcat must be changed to be usable. Just to run JSP, servlets, I
think you just drop  it in and it should work.  That's not hard to do and
it's much easier than the rocket science people has put into tomcat.  Why
these developers leave the last mile of development to the users and let
them scramble?  Yes, people could argue about features/ease of use
argument, but I am sick and tired of all intelligent argument, and stick
with my common sense that I am much more productive to turn on the server
and it works (with a few muse click on a GUI interface).  Then there's
people who argue about free and all that.  Hey, if you think too much
about free stuff you give out, then don't give out, or don't charge for
it.  After all, you can just post the http rfc, and let people build the
server.  The reason you do all that is that users don't have to do much to
get things to work, so it's alot of value to add the last peice of puzzle
to the board.

Maybe the invoker stuff is just a temporary solution (to disable it), but
I think it got to be fixed, and users should not need to do anything.

About Apache and Tomcat things, I think it's much better to merge them
into one.  It's a big waste of time and headache for developers, users to
configuer/ develop 2 servers to serve the web.

I wonder when the developers start to see this, and find out one morning
that porting/merging the two things together wasn't that bad an idea and
wasn't that hard and wasn't that time consumming, and start to do so.








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


Micael

---

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank you 



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



Re: HELP!! Tomcat crashes on me!

2002-12-01 Thread micael
The envirnomental variables probably are irrelevant, so long as you did not 
change the name of your directories, especially the one Tomcat is in.  What 
you probably have is some problem with how you set up the web.xml, or a war 
or application in the TOMCAT_HOME/webapps directory.  Since you don't say 
what you have done, it is impossible to tell.  If you download Tomcat and 
follow the simple directions, it works everytime in my experience.  So, why 
don't you start from scratch and keep a list of what you do, so you can 
tell us?  Probably, if you do that, you won't even have anything to say, 
because it will work.

JRun is another list.  Irrelevant here.  What?  Are you trying to do 
dynamic Flash or something?  Why would you want Tomcat and JRun?  Sounds to 
me like you might be mixing two incompatible servers.

Micael

At 01:42 PM 12/1/2002 -0800, you wrote:
 Hello all. I need some help w. Tomcat 4.1.12 simply CRASHING ON ME when I
try/attempt to activate the damned thing!!! Now, what in the hell could be
possibly causing this anyway??!!!

 I WAS using the version 4.1.16 of Tomcat for a little while before it 
too started
to crash on me. I might suggest a possible solution: delete and then write in
again all of the environment variables in the System settings. Does that ring
true with anyone out there or not? I mean, once I finally figured out how 
to do
those variables the correct way, then everything sort of fell into place and I
finally got Tomcat going, at least for while. Listen, this is a bit off 
topic, but
I was also wondering if anyone out there knows anything about Macromedia's 
JRun
Server or not and how to configure it to run properly? There are 3 kinds of
servers for it, the Default, the Examples, and the Admin. I got the 
Default server
up and running twice last nite, and the Admin server running once earlier 
today.
The folders for the 3 kinds of servers are C:\JRun4\servers\[admin, examples,
default], and if I could just go to work editing them the right way, then 
I could
get JRun running.

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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

Micael

---

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank you 



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



RE: tomcat 4.1.12 much slower than Tomcat 4.0.3

2002-11-30 Thread micael
Won't this just begin the whole problem with security again?

At 02:30 PM 11/30/2002 -0500, you wrote:

Ron,

I had the same problem, and fixed it with this same web.xml for all my apps
(this goes in the WEB-INF dir of each app):

*
?xml version=1.0 encoding=ISO-8859-1?

!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
  servlet
 servlet-namehome/servlet-name
 servlet-classhome/servlet-class
 load-on-startup1/load-on-startup
  /servlet
 servlet-mapping
  servlet-nameinvoker/servlet-name
   url-pattern/servlet/*/url-pattern
 /servlet-mapping
/web-app
**

I found that if I preloaded the first servlet (in my case, home) everything
ran OK after that.

Scott


-Original Message-
From: Ron Day [mailto:[EMAIL PROTECTED]]
Sent: Saturday, November 30, 2002 11:03 AM
To: Tomcat Users List
Subject: RE: tomcat 4.1.12 much slower than Tomcat 4.0.3


What does this have to do with my problem .

I am getting tired of seeing your pleas for help. Please buy a book !!

R

-Original Message-
From: Steven Burrus [mailto:[EMAIL PROTECTED]]
Sent: Saturday, November 30, 2002 12:36 AM
To: Tomcat Users List
Subject: Re: tomcat 4.1.12 much slower than Tomcat 4.0.3


 I need some help/assistance right away with trying to see a JSP in my
browser!! All that I get for my efforts is a cryptic server error msg.
[404] message saying that the requested resource couldn't be found!


On Fri, 29 Nov 2002 22:47:02 -0600, Ron Day [EMAIL PROTECTED] wrote:

 I just installed Tomcat 4.1.12.

 But now my tomcat 4.0.3 webapps run about 10 times slower.

 Anyone have any ideas as to why this may be.

 I did not change anything, and it happens for jsp's and servlets !!!

 ron


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





--
Steven Burrus

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

Micael

---

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank you 



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



RE: tomcat 4.1.12 much slower than Tomcat 4.0.3

2002-11-30 Thread micael
How did you ever figure this out, Ron?

At 02:30 PM 11/30/2002 -0500, you wrote:

Ron,

I had the same problem, and fixed it with this same web.xml for all my apps
(this goes in the WEB-INF dir of each app):

*
?xml version=1.0 encoding=ISO-8859-1?

!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
  servlet
 servlet-namehome/servlet-name
 servlet-classhome/servlet-class
 load-on-startup1/load-on-startup
  /servlet
 servlet-mapping
  servlet-nameinvoker/servlet-name
   url-pattern/servlet/*/url-pattern
 /servlet-mapping
/web-app
**

I found that if I preloaded the first servlet (in my case, home) everything
ran OK after that.

Scott


-Original Message-
From: Ron Day [mailto:[EMAIL PROTECTED]]
Sent: Saturday, November 30, 2002 11:03 AM
To: Tomcat Users List
Subject: RE: tomcat 4.1.12 much slower than Tomcat 4.0.3


What does this have to do with my problem .

I am getting tired of seeing your pleas for help. Please buy a book !!

R

-Original Message-
From: Steven Burrus [mailto:[EMAIL PROTECTED]]
Sent: Saturday, November 30, 2002 12:36 AM
To: Tomcat Users List
Subject: Re: tomcat 4.1.12 much slower than Tomcat 4.0.3


 I need some help/assistance right away with trying to see a JSP in my
browser!! All that I get for my efforts is a cryptic server error msg.
[404] message saying that the requested resource couldn't be found!


On Fri, 29 Nov 2002 22:47:02 -0600, Ron Day [EMAIL PROTECTED] wrote:

 I just installed Tomcat 4.1.12.

 But now my tomcat 4.0.3 webapps run about 10 times slower.

 Anyone have any ideas as to why this may be.

 I did not change anything, and it happens for jsp's and servlets !!!

 ron


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





--
Steven Burrus

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

Micael

---

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank you 



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



RE: tomcat 4.1.12 much slower than Tomcat 4.0.3

2002-11-30 Thread micael
Okay, Murray, give it up!

At 02:45 PM 11/30/2002 -0600, you wrote:

I didn't figure it out, Scott Murray did, I'm waiting for his explanation.

Ron

-Original Message-
From: micael [mailto:[EMAIL PROTECTED]]
Sent: Saturday, November 30, 2002 2:38 PM
To: Tomcat Users List
Subject: RE: tomcat 4.1.12 much slower than Tomcat 4.0.3


How did you ever figure this out, Ron?

At 02:30 PM 11/30/2002 -0500, you wrote:
Ron,

I had the same problem, and fixed it with this same web.xml for all my apps
(this goes in the WEB-INF dir of each app):

*
?xml version=1.0 encoding=ISO-8859-1?

!DOCTYPE web-app
 PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
 http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
   servlet
  servlet-namehome/servlet-name
  servlet-classhome/servlet-class
  load-on-startup1/load-on-startup
   /servlet
  servlet-mapping
   servlet-nameinvoker/servlet-name
url-pattern/servlet/*/url-pattern
  /servlet-mapping
/web-app
**

I found that if I preloaded the first servlet (in my case, home) everything
ran OK after that.

Scott


-Original Message-
From: Ron Day [mailto:[EMAIL PROTECTED]]
Sent: Saturday, November 30, 2002 11:03 AM
To: Tomcat Users List
Subject: RE: tomcat 4.1.12 much slower than Tomcat 4.0.3


What does this have to do with my problem .

I am getting tired of seeing your pleas for help. Please buy a book !!

R

-Original Message-
From: Steven Burrus [mailto:[EMAIL PROTECTED]]
Sent: Saturday, November 30, 2002 12:36 AM
To: Tomcat Users List
Subject: Re: tomcat 4.1.12 much slower than Tomcat 4.0.3


  I need some help/assistance right away with trying to see a JSP in my
browser!! All that I get for my efforts is a cryptic server error msg.
[404] message saying that the requested resource couldn't be found!


On Fri, 29 Nov 2002 22:47:02 -0600, Ron Day [EMAIL PROTECTED] wrote:

  I just installed Tomcat 4.1.12.
 
  But now my tomcat 4.0.3 webapps run about 10 times slower.
 
  Anyone have any ideas as to why this may be.
 
  I did not change anything, and it happens for jsp's and servlets !!!
 
  ron
 
 
  --
  To unsubscribe, e-mail:   mailto:tomcat-user-
 [EMAIL PROTECTED]
  For additional commands, e-mail: mailto:tomcat-user-
 [EMAIL PROTECTED]
 
 



--
Steven Burrus

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

Micael

---

This electronic mail  transmission and any accompanying documents contain
information belonging to the sender which may be confidential and legally
privileged.  This information is intended only for the use of the
individual or entity to whom this electronic mail transmission was sent as
indicated above. If you are not the intended recipient, any disclosure,
copying, distribution, or action taken in reliance on the contents of the
information contained in this transmission is strictly prohibited.  If you
have received this transmission in error, please delete the message.  Thank
you



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


Micael

---

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank you 



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



RE: tomcat 4.1.12 much slower than Tomcat 4.0.3

2002-11-30 Thread micael
Ron,

You should look at:

http://www.mail-archive.com/tomcat-dev@jakarta.apache.org/msg33723.html

Micael

At 02:45 PM 11/30/2002 -0600, you wrote:

I didn't figure it out, Scott Murray did, I'm waiting for his explanation.

Ron

-Original Message-
From: micael [mailto:[EMAIL PROTECTED]]
Sent: Saturday, November 30, 2002 2:38 PM
To: Tomcat Users List
Subject: RE: tomcat 4.1.12 much slower than Tomcat 4.0.3


How did you ever figure this out, Ron?

At 02:30 PM 11/30/2002 -0500, you wrote:
Ron,

I had the same problem, and fixed it with this same web.xml for all my apps
(this goes in the WEB-INF dir of each app):

*
?xml version=1.0 encoding=ISO-8859-1?

!DOCTYPE web-app
 PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
 http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
   servlet
  servlet-namehome/servlet-name
  servlet-classhome/servlet-class
  load-on-startup1/load-on-startup
   /servlet
  servlet-mapping
   servlet-nameinvoker/servlet-name
url-pattern/servlet/*/url-pattern
  /servlet-mapping
/web-app
**

I found that if I preloaded the first servlet (in my case, home) everything
ran OK after that.

Scott


-Original Message-
From: Ron Day [mailto:[EMAIL PROTECTED]]
Sent: Saturday, November 30, 2002 11:03 AM
To: Tomcat Users List
Subject: RE: tomcat 4.1.12 much slower than Tomcat 4.0.3


What does this have to do with my problem .

I am getting tired of seeing your pleas for help. Please buy a book !!

R

-Original Message-
From: Steven Burrus [mailto:[EMAIL PROTECTED]]
Sent: Saturday, November 30, 2002 12:36 AM
To: Tomcat Users List
Subject: Re: tomcat 4.1.12 much slower than Tomcat 4.0.3


  I need some help/assistance right away with trying to see a JSP in my
browser!! All that I get for my efforts is a cryptic server error msg.
[404] message saying that the requested resource couldn't be found!


On Fri, 29 Nov 2002 22:47:02 -0600, Ron Day [EMAIL PROTECTED] wrote:

  I just installed Tomcat 4.1.12.
 
  But now my tomcat 4.0.3 webapps run about 10 times slower.
 
  Anyone have any ideas as to why this may be.
 
  I did not change anything, and it happens for jsp's and servlets !!!
 
  ron
 
 
  --
  To unsubscribe, e-mail:   mailto:tomcat-user-
 [EMAIL PROTECTED]
  For additional commands, e-mail: mailto:tomcat-user-
 [EMAIL PROTECTED]
 
 



--
Steven Burrus

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

Micael

---

This electronic mail  transmission and any accompanying documents contain
information belonging to the sender which may be confidential and legally
privileged.  This information is intended only for the use of the
individual or entity to whom this electronic mail transmission was sent as
indicated above. If you are not the intended recipient, any disclosure,
copying, distribution, or action taken in reliance on the contents of the
information contained in this transmission is strictly prohibited.  If you
have received this transmission in error, please delete the message.  Thank
you



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


Micael

---

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank you 



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



RE: tomcat 4.1.12 much slower than Tomcat 4.0.3

2002-11-30 Thread micael
Do you mean the time it takes to start 4.1.12?

At 03:26 PM 11/30/2002 -0600, you wrote:

Yes, I'm aware of that. I was more interested in Scotts servlet tag. Even
more I am hoping someone has a better way to get my 4.1.12 install working
correctly (at same speed as 3.0.4).

ron

-Original Message-
From: micael [mailto:[EMAIL PROTECTED]]
Sent: Saturday, November 30, 2002 2:55 PM
To: Tomcat Users List
Subject: RE: tomcat 4.1.12 much slower than Tomcat 4.0.3


Ron,

You should look at:

http://www.mail-archive.com/tomcat-dev@jakarta.apache.org/msg33723.html

Micael

At 02:45 PM 11/30/2002 -0600, you wrote:
I didn't figure it out, Scott Murray did, I'm waiting for his explanation.

Ron

-Original Message-
From: micael [mailto:[EMAIL PROTECTED]]
Sent: Saturday, November 30, 2002 2:38 PM
To: Tomcat Users List
Subject: RE: tomcat 4.1.12 much slower than Tomcat 4.0.3


How did you ever figure this out, Ron?

At 02:30 PM 11/30/2002 -0500, you wrote:
 Ron,
 
 I had the same problem, and fixed it with this same web.xml for all my
apps
 (this goes in the WEB-INF dir of each app):
 
 *
 ?xml version=1.0 encoding=ISO-8859-1?
 
 !DOCTYPE web-app
  PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
  http://java.sun.com/dtd/web-app_2_3.dtd;
 web-app
servlet
   servlet-namehome/servlet-name
   servlet-classhome/servlet-class
   load-on-startup1/load-on-startup
/servlet
   servlet-mapping
servlet-nameinvoker/servlet-name
 url-pattern/servlet/*/url-pattern
   /servlet-mapping
 /web-app
 **
 
 I found that if I preloaded the first servlet (in my case, home)
everything
 ran OK after that.
 
 Scott
 
 
 -Original Message-
 From: Ron Day [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, November 30, 2002 11:03 AM
 To: Tomcat Users List
 Subject: RE: tomcat 4.1.12 much slower than Tomcat 4.0.3
 
 
 What does this have to do with my problem .
 
 I am getting tired of seeing your pleas for help. Please buy a book !!
 
 R
 
 -Original Message-
 From: Steven Burrus [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, November 30, 2002 12:36 AM
 To: Tomcat Users List
 Subject: Re: tomcat 4.1.12 much slower than Tomcat 4.0.3
 
 
   I need some help/assistance right away with trying to see a JSP in my
 browser!! All that I get for my efforts is a cryptic server error msg.
 [404] message saying that the requested resource couldn't be found!
 
 
 On Fri, 29 Nov 2002 22:47:02 -0600, Ron Day [EMAIL PROTECTED] wrote:
 
   I just installed Tomcat 4.1.12.
  
   But now my tomcat 4.0.3 webapps run about 10 times slower.
  
   Anyone have any ideas as to why this may be.
  
   I did not change anything, and it happens for jsp's and servlets !!!
  
   ron
  
  
   --
   To unsubscribe, e-mail:   mailto:tomcat-user-
  [EMAIL PROTECTED]
   For additional commands, e-mail: mailto:tomcat-user-
  [EMAIL PROTECTED]
  
  
 
 
 
 --
 Steven Burrus
 
 --
 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]

Micael

---

This electronic mail  transmission and any accompanying documents contain
information belonging to the sender which may be confidential and legally
privileged.  This information is intended only for the use of the
individual or entity to whom this electronic mail transmission was sent as
indicated above. If you are not the intended recipient, any disclosure,
copying, distribution, or action taken in reliance on the contents of the
information contained in this transmission is strictly prohibited.  If you
have received this transmission in error, please delete the message.  Thank
you



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

Micael

---

This electronic mail  transmission and any accompanying documents contain
information belonging to the sender which may be confidential and legally
privileged.  This information is intended only for the use of the
individual or entity to whom this electronic mail transmission was sent as
indicated above. If you are not the intended recipient, any disclosure,
copying, distribution, or action taken in reliance on the contents of the
information contained in this transmission is strictly prohibited.  If you
have received this transmission in error, please delete the message.  Thank
you



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


--
To unsubscribe, e

RE: tomcat 4.1.12 much slower than Tomcat 4.0.3

2002-11-30 Thread micael
So, I guess I am confused.  Murray's suggestion did not help?

At 03:46 PM 11/30/2002 -0600, you wrote:

Micael

not start-up but running webapps..

My original post, still happening

**

I just installed Tomcat 4.1.12.

But now my tomcat 4.0.3 webapps run about 10 times slower.

Anyone have any ideas as to why this may be.

I did not change anything, and it happens for jsp's and servlets !!!

**

ron


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


Micael

---

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank you 



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



Re: tomcat 4.1.12 much slower than Tomcat 4.0.3

2002-11-30 Thread micael
This is just to allow initialization prior to runtime in the applications, 
in case you need specific values before that.

At 05:00 PM 11/30/2002 -0500, you wrote:
The servlet tag:
**
   servlet
  servlet-namehome/servlet-name
  servlet-classhome/servlet-class
  load-on-startup1/load-on-startup
   /servlet
***
is just something I came up with after reading the Chapter 5 document on
moreservlets.com. This solved the slowness problem for me (NOTE: my app is
all servlets and no JSP's, so I don't know how this affects JSP's).

My solution may be violating all kinds of security issues...I am a novice
with Tomcat and am just feeling my way as I go along (actually I expected to
be thrashed by someone ;-) who is more expert). I am still in the process of
reading the rest of Ch. 5.

RE: but I do not see why the servlet-mapping tag is there:
Ron you are correct...I did this as my first solution and it worked. I
subsequently read that it can be done globally, rather than in each
individual web.xml, but I haven't got around to changing it yet (and may
never change it, as the current solution works and I agree with Shakespeare:
Striving to better, oft we mar what's well.

Scott Murray

- Original Message -
From: micael [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Saturday, November 30, 2002 3:53 PM
Subject: RE: tomcat 4.1.12 much slower than Tomcat 4.0.3


 Okay, Murray, give it up!

 At 02:45 PM 11/30/2002 -0600, you wrote:
 I didn't figure it out, Scott Murray did, I'm waiting for his
explanation.
 
 Ron
 
 -Original Message-
 From: micael [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, November 30, 2002 2:38 PM
 To: Tomcat Users List
 Subject: RE: tomcat 4.1.12 much slower than Tomcat 4.0.3
 
 
 How did you ever figure this out, Ron?
 
 At 02:30 PM 11/30/2002 -0500, you wrote:
  Ron,
  
  I had the same problem, and fixed it with this same web.xml for all my
apps
  (this goes in the WEB-INF dir of each app):
  
  *
  ?xml version=1.0 encoding=ISO-8859-1?
  
  !DOCTYPE web-app
   PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
   http://java.sun.com/dtd/web-app_2_3.dtd;
  web-app
 servlet
servlet-namehome/servlet-name
servlet-classhome/servlet-class
load-on-startup1/load-on-startup
 /servlet
servlet-mapping
 servlet-nameinvoker/servlet-name
  url-pattern/servlet/*/url-pattern
/servlet-mapping
  /web-app
  **
  
  I found that if I preloaded the first servlet (in my case, home)
everything
  ran OK after that.
  
  Scott
  
  
  -Original Message-
  From: Ron Day [mailto:[EMAIL PROTECTED]]
  Sent: Saturday, November 30, 2002 11:03 AM
  To: Tomcat Users List
  Subject: RE: tomcat 4.1.12 much slower than Tomcat 4.0.3
  
  
  What does this have to do with my problem .
  
  I am getting tired of seeing your pleas for help. Please buy a book !!
  
  R
  
  -Original Message-
  From: Steven Burrus [mailto:[EMAIL PROTECTED]]
  Sent: Saturday, November 30, 2002 12:36 AM
  To: Tomcat Users List
  Subject: Re: tomcat 4.1.12 much slower than Tomcat 4.0.3
  
  
I need some help/assistance right away with trying to see a JSP in my
  browser!! All that I get for my efforts is a cryptic server error msg.
  [404] message saying that the requested resource couldn't be found!
  
  
  On Fri, 29 Nov 2002 22:47:02 -0600, Ron Day [EMAIL PROTECTED] wrote:
  
I just installed Tomcat 4.1.12.
   
But now my tomcat 4.0.3 webapps run about 10 times slower.
   
Anyone have any ideas as to why this may be.
   
I did not change anything, and it happens for jsp's and servlets !!!
   
ron
   
   
--
To unsubscribe, e-mail:   mailto:tomcat-user-
   [EMAIL PROTECTED]
For additional commands, e-mail: mailto:tomcat-user-
   [EMAIL PROTECTED]
   
   
  
  
  
  --
  Steven Burrus
  
  --
  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]
 
 Micael
 
 ---
 
 This electronic mail  transmission and any accompanying documents contain
 information belonging to the sender which may be confidential and legally
 privileged.  This information is intended only for the use of the
 individual or entity to whom this electronic mail transmission was sent
as
 indicated above. If you are not the intended recipient, any disclosure,
 copying, distribution, or action taken in reliance on the contents of the
 information contained in this transmission is strictly prohibited.  If
you
 have received this transmission in error, please delete the message.
Thank

Re: tomcat 4.1.12 much slower than Tomcat 4.0.3

2002-11-30 Thread micael
You should turn that invoker off, Murray.  It is a security hole.  Read the 
release notes to your Tomcat 4.1.12.  You can get to your servlets by 
declaring them individually in your xml.

At 05:00 PM 11/30/2002 -0500, you wrote:
The servlet tag:
**
   servlet
  servlet-namehome/servlet-name
  servlet-classhome/servlet-class
  load-on-startup1/load-on-startup
   /servlet
***
is just something I came up with after reading the Chapter 5 document on
moreservlets.com. This solved the slowness problem for me (NOTE: my app is
all servlets and no JSP's, so I don't know how this affects JSP's).

My solution may be violating all kinds of security issues...I am a novice
with Tomcat and am just feeling my way as I go along (actually I expected to
be thrashed by someone ;-) who is more expert). I am still in the process of
reading the rest of Ch. 5.

RE: but I do not see why the servlet-mapping tag is there:
Ron you are correct...I did this as my first solution and it worked. I
subsequently read that it can be done globally, rather than in each
individual web.xml, but I haven't got around to changing it yet (and may
never change it, as the current solution works and I agree with Shakespeare:
Striving to better, oft we mar what's well.

Scott Murray

- Original Message -
From: micael [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Saturday, November 30, 2002 3:53 PM
Subject: RE: tomcat 4.1.12 much slower than Tomcat 4.0.3


 Okay, Murray, give it up!

 At 02:45 PM 11/30/2002 -0600, you wrote:
 I didn't figure it out, Scott Murray did, I'm waiting for his
explanation.
 
 Ron
 
 -Original Message-
 From: micael [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, November 30, 2002 2:38 PM
 To: Tomcat Users List
 Subject: RE: tomcat 4.1.12 much slower than Tomcat 4.0.3
 
 
 How did you ever figure this out, Ron?
 
 At 02:30 PM 11/30/2002 -0500, you wrote:
  Ron,
  
  I had the same problem, and fixed it with this same web.xml for all my
apps
  (this goes in the WEB-INF dir of each app):
  
  *
  ?xml version=1.0 encoding=ISO-8859-1?
  
  !DOCTYPE web-app
   PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
   http://java.sun.com/dtd/web-app_2_3.dtd;
  web-app
 servlet
servlet-namehome/servlet-name
servlet-classhome/servlet-class
load-on-startup1/load-on-startup
 /servlet
servlet-mapping
 servlet-nameinvoker/servlet-name
  url-pattern/servlet/*/url-pattern
/servlet-mapping
  /web-app
  **
  
  I found that if I preloaded the first servlet (in my case, home)
everything
  ran OK after that.
  
  Scott
  
  
  -Original Message-
  From: Ron Day [mailto:[EMAIL PROTECTED]]
  Sent: Saturday, November 30, 2002 11:03 AM
  To: Tomcat Users List
  Subject: RE: tomcat 4.1.12 much slower than Tomcat 4.0.3
  
  
  What does this have to do with my problem .
  
  I am getting tired of seeing your pleas for help. Please buy a book !!
  
  R
  
  -Original Message-
  From: Steven Burrus [mailto:[EMAIL PROTECTED]]
  Sent: Saturday, November 30, 2002 12:36 AM
  To: Tomcat Users List
  Subject: Re: tomcat 4.1.12 much slower than Tomcat 4.0.3
  
  
I need some help/assistance right away with trying to see a JSP in my
  browser!! All that I get for my efforts is a cryptic server error msg.
  [404] message saying that the requested resource couldn't be found!
  
  
  On Fri, 29 Nov 2002 22:47:02 -0600, Ron Day [EMAIL PROTECTED] wrote:
  
I just installed Tomcat 4.1.12.
   
But now my tomcat 4.0.3 webapps run about 10 times slower.
   
Anyone have any ideas as to why this may be.
   
I did not change anything, and it happens for jsp's and servlets !!!
   
ron
   
   
--
To unsubscribe, e-mail:   mailto:tomcat-user-
   [EMAIL PROTECTED]
For additional commands, e-mail: mailto:tomcat-user-
   [EMAIL PROTECTED]
   
   
  
  
  
  --
  Steven Burrus
  
  --
  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]
 
 Micael
 
 ---
 
 This electronic mail  transmission and any accompanying documents contain
 information belonging to the sender which may be confidential and legally
 privileged.  This information is intended only for the use of the
 individual or entity to whom this electronic mail transmission was sent
as
 indicated above. If you are not the intended recipient, any disclosure,
 copying, distribution, or action taken in reliance on the contents of the
 information contained in this transmission is strictly prohibited.  If
you
 have

RE: tomcat 4.1.12 much slower than Tomcat 4.0.3

2002-11-30 Thread micael
Ron, the first solution (load on startup) is just for servlets that have a 
load of detail to do the first time they start up and has nothing to do 
with our situation.  The second part (servlet-mapping) is just creating a 
security problem that the release notes explained should not be done.  I 
had the problem you had, and as I said, I solved it by rebooting Tomcat and 
cleaning out the work directory. I was working at the time with linux 
RedHat and had to make sure the work file was completely cleared as 
well.  I don't know what happened, but it was with 4.1.12 and it happened 
twice.  Both times, restarting Tomcat worked.  Why, I don't know.  Micael

At 02:30 PM 11/30/2002 -0500, you wrote:
Ron,

I had the same problem, and fixed it with this same web.xml for all my apps
(this goes in the WEB-INF dir of each app):

*
?xml version=1.0 encoding=ISO-8859-1?

!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
  servlet
 servlet-namehome/servlet-name
 servlet-classhome/servlet-class
 load-on-startup1/load-on-startup
  /servlet
 servlet-mapping
  servlet-nameinvoker/servlet-name
   url-pattern/servlet/*/url-pattern
 /servlet-mapping
/web-app
**

I found that if I preloaded the first servlet (in my case, home) everything
ran OK after that.

Scott


-Original Message-
From: Ron Day [mailto:[EMAIL PROTECTED]]
Sent: Saturday, November 30, 2002 11:03 AM
To: Tomcat Users List
Subject: RE: tomcat 4.1.12 much slower than Tomcat 4.0.3


What does this have to do with my problem .

I am getting tired of seeing your pleas for help. Please buy a book !!

R

-Original Message-
From: Steven Burrus [mailto:[EMAIL PROTECTED]]
Sent: Saturday, November 30, 2002 12:36 AM
To: Tomcat Users List
Subject: Re: tomcat 4.1.12 much slower than Tomcat 4.0.3


 I need some help/assistance right away with trying to see a JSP in my
browser!! All that I get for my efforts is a cryptic server error msg.
[404] message saying that the requested resource couldn't be found!


On Fri, 29 Nov 2002 22:47:02 -0600, Ron Day [EMAIL PROTECTED] wrote:

 I just installed Tomcat 4.1.12.

 But now my tomcat 4.0.3 webapps run about 10 times slower.

 Anyone have any ideas as to why this may be.

 I did not change anything, and it happens for jsp's and servlets !!!

 ron


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





--
Steven Burrus

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

Micael

---

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank you 



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



Re: tomcat 4.1.12 much slower than Tomcat 4.0.3

2002-11-29 Thread micael
I don't get why someone answers another person's request for assistance 
with their own request, but what do I know.  The one I am answer is the 
first guy.  You may need to reboot your Tomcat.  That happened to me 
once.  4.1.12 is not slower.  Sometimes I have found that if Tomcat is 
accessed while it is building, some strange things happen and I don't have 
a clue what, of course, but I have gotten the same run about 10 times 
slower phenomenon.  I would say 40 times actually, in one case.  Anyway, 
rebooting fixed if for me, for what that is worth.

At 12:36 AM 11/30/2002 -0600, you wrote:
I need some help/assistance right away with trying to see a JSP in my 
browser!! All that I get for my efforts is a cryptic server error msg. 
[404] message saying that the requested resource couldn't be found!


On Fri, 29 Nov 2002 22:47:02 -0600, Ron Day [EMAIL PROTECTED] wrote:

I just installed Tomcat 4.1.12.

But now my tomcat 4.0.3 webapps run about 10 times slower.

Anyone have any ideas as to why this may be.

I did not change anything, and it happens for jsp's and servlets !!!

ron


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




--
Steven Burrus

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



Micael

---

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank you 



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



Re: tomcat 4.1.12 much slower than Tomcat 4.0.3

2002-11-29 Thread micael
Okay, Steve.  Don't know why you answered Ron's question with yours.  Must 
have hit the wrong switch?  You need to give more information.  Where is 
your JSP, for example.  Is this the index.jsp you are talking about, or 
some other situation?  With no information, answering is impossible.  Micael

At 12:36 AM 11/30/2002 -0600, you wrote:
I need some help/assistance right away with trying to see a JSP in my 
browser!! All that I get for my efforts is a cryptic server error msg. 
[404] message saying that the requested resource couldn't be found!


On Fri, 29 Nov 2002 22:47:02 -0600, Ron Day [EMAIL PROTECTED] wrote:

I just installed Tomcat 4.1.12.

But now my tomcat 4.0.3 webapps run about 10 times slower.

Anyone have any ideas as to why this may be.

I did not change anything, and it happens for jsp's and servlets !!!

ron


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




--
Steven Burrus

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



Micael

---

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank you 



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



MYSTERY SOLVED: RE: How to add a servlet to a new Webapp

2002-11-28 Thread micael
The reason is that the invoker servlet is not turned off for the 
examples.  Okay?  Check the code and the xml.

At 01:06 PM 11/28/2002 +, you wrote:
Well I also tried
http://localhost:8080/study/servlet/com.wrox.projsp.ch03.TestServlet

but the same whereas
http://localhost:8080/examples/servlet/com.wrox.projsp.ch03.TestServlet works


??

Thomas


-Original Message-
From: Collins, Jim [mailto:[EMAIL PROTECTED]]
Sent: 28 November 2002 13:04
To: 'Tomcat Users List'
Subject: RE: How to add a servlet to a new Webapp


I believe that servlet has been disabled by default in 4.1.12 for security
reasons. That is probably why you can't use:
http://localhost:8080/study/servlet/TestServlet

Jim

 -Original Message-
 From: Curley, Thomas [mailto:[EMAIL PROTECTED]]
 Sent: 28 November 2002 12:58
 To: [EMAIL PROTECTED]
 Subject: How to add a servlet to a new Webapp


 Hi All,

 Using Tomcat 4.1.12 on Win 2K

 I am getting a 404 error when I try to create a new webapp
 and add a very basic servlet.  The servlet works if I create
 the package structure within the examples WEB-INF/classes.
 Here are the steps:

 1.created webapps/study
 2.created
 .../study/WEB-INF/classes/com/wrox/projsp/ch03/TestServlet.jav
 a and compiled [ok]
 3.added the following line to server.xml after the
 examples /Context

   Context path=/study docBase=study debug=0 
 /Context
 4.just copied the examples web.xml to study/WEB-INF and
 added the following lines


 servlet
   servlet-name
   TestServlet
   /servlet-name
   servlet-class
   com.wrox.projsp.ch03.TestServlet
   /servlet-class
 /servlet

 servlet-mapping
 servlet-nameTestServlet/servlet-name
 url-pattern/TestServlet/url-pattern
 /servlet-mapping


 5.restart tomcat


 RESULT - The requested resource (/study/servlet/TestServlet)
 is not available.


 Can anyone see what I am missing ?



 thanks


 Thomas



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



PLEASE READ: The information contained in this email is confidential
and intended for the named recipient(s) only. If you are not an intended
recipient of this email you must not copy, distribute or take any
further action in reliance on it and you should delete it and notify the
sender immediately. Email is not a secure method of communication and
Nomura International plc cannot accept responsibility for the accuracy
or completeness of this message or any attachment(s). Please examine this
email for virus infection, for which Nomura International plc accepts
no responsibility. If verification of this email is sought then please
request a hard copy. Unless otherwise stated any views or opinions
presented are solely those of the author and do not represent those of
Nomura International plc. This email is intended for informational
purposes only and is not a solicitation or offer to buy or sell
securities or related financial instruments. Nomura International plc is
regulated by the Financial Services Authority and is a member of the
London Stock Exchange.



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


Micael

---

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank you 



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



Re: MYSTERY SOLVED: RE: How to add a servlet to a new Webapp

2002-11-28 Thread micael
You just have to either turn the invoker servlet back on (with security 
problems, if it is not yet fixed) or use the standard xml way of getting 
access to the classes.

At 04:15 PM 11/28/2002 -0500, you wrote:
i am having the same problem described in this thread

what does this (the proposed solution) mean:

The reason is that the invoker servlet is not turned off for the
examples.  Okay?  Check the code and the xml.

I am migrating from 4.0.3 to 4.1.12.

Thanks,
Scott




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


Micael

---

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank you 



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



[OT] - Let's be nice -- Re: How do I integrate my CLASSPATH on Tomcat?

2002-11-27 Thread micael
Pae, you are sure a sensitive person.  I, for one, do not appreciate this 
nastiness in a public place.  Please try to play well with others.  And, 
to be fair, I certainly have had my moments too.

At 11:41 AM 11/27/2002 -0800, you wrote:
First, let me copy the initial inquriy to refresh your memory.

I'm wondering how I should do to make tomcat use the paths that are in
my CLASSPATH?

Does it say or imply to move JARs or packages to a specific
location? The question was simple and the my reply included
a simple suggestion according to the inquiry.

And back to your comments. Look back about 5 years ago. Did
you envisoned all the technologies and standards what's going on
now? What make so sure what's going on will stay same in next
5 to 10 years later?

Also, not every user of TC develop the app to sell and consider
all the factors you mentioned. A matter fact, most of products from
your company, Millennium ChemInformatics, do no even have the
basic concept of n-tier architecture nor grid-level, distributed computing.

If you are so well-planned and -built the outstanding product(if there
is any) let me know, I will not mind given you some lessons of
well structured architecture and success characteristics in marketability
 as well as other factors.

Last, AFAIK, your compnay is losing the money than making it. Perhaps,
you contributed that too?


Pae



- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, November 27, 2002 8:17 AM
Subject: RE: How do I integrate my CLASSPATH on Tomcat?


Howdy,

Long run? I've been watching TC a long enough and have changed
a number of times the scheme of including the CLASSPTH. In the
long run, are you absolutely sure what is going right now will be
stay same ... say in next 5 years?

I'm sure tomcat will implement the servlet specification standard, yes.
I'm sure the servlet specification standard will not mention anything
about $CLASSPATH in server-specific startup scripts, yes.  /WEB-INF/lib
is the standard way to go.  It's the only way to go if you don't want to
change scripts when changing servers.  If you had put the libs there
when using tomcat 3.x, you wouldn't have had to move them when moving to
4.x, etc.

What's the time frame for the long run mean? More than 5 years?

Any time other than the initial beginner setup.  You want to be able to
setup from scratch automatically, e.g. using an ant script.  You want a
3rd party person to be able to deploy your app.  That's why the spec is
there.  That's why the idea of a .war file exists.

Sure, you could write detailed instructions and require a specific
version of tomcat with your modifications to tomcat's startup script,
but good luck getting people to use (much less buy) your app then ;)

Obviously it's your app, your company (or university or whatever), so
it's your call.  In my personal experience, every place I've worked and
every boss I've had always insisted on portability and
standards-compliance as much as reasonably possible.  It's saved us many
times.  Now I insist on the same with all the developers that work for
me, all the projects I'm responsible for, etc.  And if I had a dollar
for every time it's paid off, I'd be rich ;)

Yoav Shapira
Millennium ChemInformatics

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


Micael

---

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank you 



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



Re: OFF-TOPIC: creating classes

2002-11-27 Thread micael
The answer is that you can create any class you want at runtime.  Read 
about reflection and introspection, and the classes Class, Method, Field, 
etc., for starters.

At 11:40 AM 11/27/2002 -0200, you wrote:
  Hi all,
  I know this is off-topic, but I just had a crazy idea and couldn't
find about it anywhere...
  There is a way to modify/create java classes at runtime? I mean,
create plain new classes, or add attributes/methods to an existing, etc?

  Maybe I'm asking for Java++? :-)

--

Felipe Schnack
Analista de Sistemas
[EMAIL PROTECTED]
Cel.: (51)91287530
Linux Counter #281893

Faculdade Ritter dos Reis
www.ritterdosreis.br
[EMAIL PROTECTED]
Fone/Fax.: (51)32303328


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


Micael

---

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank you 



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



Re: [OT] - Let's be nice -- Re: How do I integrate my CLASSPATH on Tomcat?

2002-11-27 Thread micael
My apologies, Pae.  I had no idea this was your private line.  How are 
things going generally, just to make conversation?

At 04:12 PM 11/27/2002 -0800, you wrote:
You listen up. You should know who started this first.
And mind your own business.


Pae



 Pae, you are sure a sensitive person.  I, for one, do not appreciate this
 nastiness in a public place.  Please try to play well with others.  And,
 to be fair, I certainly have had my moments too.

 At 11:41 AM 11/27/2002 -0800, you wrote:
 First, let me copy the initial inquriy to refresh your memory.
 
 I'm wondering how I should do to make tomcat use the paths that are in
 my CLASSPATH?
 
 Does it say or imply to move JARs or packages to a specific
 location? The question was simple and the my reply included
 a simple suggestion according to the inquiry.
 
 And back to your comments. Look back about 5 years ago. Did
 you envisoned all the technologies and standards what's going on
 now? What make so sure what's going on will stay same in next
 5 to 10 years later?
 
 Also, not every user of TC develop the app to sell and consider
 all the factors you mentioned. A matter fact, most of products from
 your company, Millennium ChemInformatics, do no even have the
 basic concept of n-tier architecture nor grid-level, distributed
computing.
 
 If you are so well-planned and -built the outstanding product(if there
 is any) let me know, I will not mind given you some lessons of
 well structured architecture and success characteristics in marketability
   as well as other factors.
 
 Last, AFAIK, your compnay is losing the money than making it. Perhaps,
 you contributed that too?
 
 
 Pae
 
 
 
 - Original Message -
 From: Shapira, Yoav [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Wednesday, November 27, 2002 8:17 AM
 Subject: RE: How do I integrate my CLASSPATH on Tomcat?
 
 
 Howdy,
 
  Long run? I've been watching TC a long enough and have changed
  a number of times the scheme of including the CLASSPTH. In the
  long run, are you absolutely sure what is going right now will be
  stay same ... say in next 5 years?
 
 I'm sure tomcat will implement the servlet specification standard, yes.
 I'm sure the servlet specification standard will not mention anything
 about $CLASSPATH in server-specific startup scripts, yes.  /WEB-INF/lib
 is the standard way to go.  It's the only way to go if you don't want to
 change scripts when changing servers.  If you had put the libs there
 when using tomcat 3.x, you wouldn't have had to move them when moving to
 4.x, etc.
 
  What's the time frame for the long run mean? More than 5 years?
 
 Any time other than the initial beginner setup.  You want to be able to
 setup from scratch automatically, e.g. using an ant script.  You want a
 3rd party person to be able to deploy your app.  That's why the spec is
 there.  That's why the idea of a .war file exists.
 
 Sure, you could write detailed instructions and require a specific
 version of tomcat with your modifications to tomcat's startup script,
 but good luck getting people to use (much less buy) your app then ;)
 
 Obviously it's your app, your company (or university or whatever), so
 it's your call.  In my personal experience, every place I've worked and
 every boss I've had always insisted on portability and
 standards-compliance as much as reasonably possible.  It's saved us many
 times.  Now I insist on the same with all the developers that work for
 me, all the projects I'm responsible for, etc.  And if I had a dollar
 for every time it's paid off, I'd be rich ;)
 
 Yoav Shapira
 Millennium ChemInformatics
 
 --
 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]

 Micael

 ---

 This electronic mail  transmission and any accompanying documents contain
 information belonging to the sender which may be confidential and legally
 privileged.  This information is intended only for the use of the
 individual or entity to whom this electronic mail transmission was sent as
 indicated above. If you are not the intended recipient, any disclosure,
 copying, distribution, or action taken in reliance on the contents of the
 information contained in this transmission is strictly prohibited.  If you
 have received this transmission in error, please delete the message.
Thank you



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


Micael

---

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally

Re: Tomcat

2002-11-27 Thread micael
There are a lot of options here.  You might try, first, removing your 
context definitions and just dropping your app into the webapps prior to 
starting tomcat up.  If everything is setup okay, then 
http://localhost:8080/abcd should work.  If not, then the question is not 
the context.  The class files should be placed in 
webapps/abcd/WEB-INF/classes, if they are not jarred up.  They should be 
referenced in your jsp import with their fully qualified name, which I am 
sure you know.  You might try seeing if you get to index.html first with 
http://localhost:8080/abcd when putting it at webapps/abcd with something 
in there (i.e. index.html) like:
html
TEST
/html
If so, things should be okay, and it is not the app setup.  This is too 
verbose.  'Hope it is helpful nonetheless.

Micael

At 01:24 PM 11/27/2002 -0800, you wrote:

Hi,

I have installed Apache-Tomcat 4.1.12 and its running its demo jsp and 
servlets fine. But while running my own jsp in which i instantiate an 
object it gives 404. I don't know where exactly to place the class files.

Right now I have made a WEB-INF directory and a classes directory in 
between that, where i have places the classes. but its not picking it up.

also in the server.xml i have made the entry

  Context 
path=/abcd   docBase=webapps/abcd 
crossContext=true   debug=0   reloadable=true 
 trusted=false/Context

Can some body suggest the exact steps to be taken to get this thing 
configured.

Thanx

Nitesh



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now

Micael

---

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank you 



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



Re: Tomcat

2002-11-27 Thread micael
I don't want to guess what they told you, Nltesh.  Let's stick with the 
basics and get you going and then worry about more arcane things.

At 01:54 PM 11/27/2002 -0800, you wrote:

also, while adding the context entry to the server.xml, where exactly do 
we need to put that entry. someone tolde me before /contextmanager , but 
there is no context manager tag in server.xml

thanx
NItesh
 micael [EMAIL PROTECTED] wrote:There are a lot of options here. 
You might try, first, removing your
context definitions and just dropping your app into the webapps prior to
starting tomcat up. If everything is setup okay, then
http://localhost:8080/abcd should work. If not, then the question is not
the context. The class files should be placed in
webapps/abcd/WEB-INF/classes, if they are not jarred up. They should be
referenced in your jsp import with their fully qualified name, which I am
sure you know. You might try seeing if you get to index.html first with
http://localhost:8080/abcd when putting it at webapps/abcd with something
in there (i.e. index.html) like:

TEST

If so, things should be okay, and it is not the app setup. This is too
verbose. 'Hope it is helpful nonetheless.

Micael

At 01:24 PM 11/27/2002 -0800, you wrote:

Hi,

I have installed Apache-Tomcat 4.1.12 and its running its demo jsp and
servlets fine. But while running my own jsp in which i instantiate an
object it gives 404. I don't know where exactly to place the class files.

Right now I have made a WEB-INF directory and a classes directory in
between that, where i have places the classes. but its not picking it up.

also in the server.xml i have made the entry

  path=/abcd docBase=webapps/abcd
 crossContext=true debug=0 reloadable=true
 trusted=false 

Can some body suggest the exact steps to be taken to get this thing
configured.

Thanx

Nitesh



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now

Micael

---

This electronic mail transmission and any accompanying documents contain
information belonging to the sender which may be confidential and legally
privileged. This information is intended only for the use of the
individual or entity to whom this electronic mail transmission was sent as
indicated above. If you are not the intended recipient, any disclosure,
copying, distribution, or action taken in reliance on the contents of the
information contained in this transmission is strictly prohibited. If you
have received this transmission in error, please delete the message. Thank 
you



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



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now

Micael

---

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank you 



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



  1   2   3   4   >