RE: Where do context end?

2004-11-01 Thread Benson Margulies
No, once your Context has a ResourceLink, the same code thatwords in
an action should work anywhere else. You start with an InitialContext
and do a lookup; the HttpServletRequest has nothing to do with the
process. 

-Original Message-
From: Roland Carlsson [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 01, 2004 7:15 AM
To: TomcatUsers
Subject: SV: Where do context end?

I have a resourcelink. ..

I can successfully perform my lookup from a struts-action but not from a
class that my struts-action uses.

Do you say that I have to define a resource-link to classes that doesn't
have access to HttpServletRequest or some other class?

Regards
Roland Carlsson




Den 04-11-01 13.10, skrev Benson Margulies [EMAIL PROTECTED]:

 You need a ResourceLink in your context. See the JNDI howto document.
 
 -Original Message-
 From: Roland Carlsson [mailto:[EMAIL PROTECTED]
 Sent: Monday, November 01, 2004 1:51 AM
 To: TomcatUsers
 Subject: Where do context end?
 
 Hi!
 
 I encounterd what I thought to be a little curiosity this weekend. I 
 tried to call a GlobalNamingResource from a class that I'm using as 
 homegrown PersistenceManager, ie it doesn't have anything to do with 
 the webapplication except that it is packaged inside the webapp that 
 uses it.
 
 I do the usual InitalContext and try to get the JNDI but it says that 
 comp:java isn't bound for this context.
 
 If I try from the StrutsAction that is calling my class it works nice.
 (cut
 n'paste)
 
 So, why can't I use the JNDI-lookup from my persistencemanager that 
 runs inside a web-app?
 
 I apologize if this question belongs in a JNDI forum.
 
 Thanks in advance
 Roland Carlsson
 
 
 
 -
 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]



Where do context end?

2004-10-31 Thread Roland Carlsson
Hi!

I encounterd what I thought to be a little curiosity this weekend. I tried
to call a GlobalNamingResource from a class that I'm using as homegrown
PersistenceManager, ie it doesn't have anything to do with the
webapplication except that it is packaged inside the webapp that uses it.

I do the usual InitalContext and try to get the JNDI but it says that
comp:java isn't bound for this context.

If I try from the StrutsAction that is calling my class it works nice. (cut
n'paste)

So, why can't I use the JNDI-lookup from my persistencemanager that runs
inside a web-app?

I apologize if this question belongs in a JNDI forum.

Thanks in advance
Roland Carlsson



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



RE: Where do UnavailableExceptions get reported?

2004-10-26 Thread Chris Bergstresser
Steve Kirk wrote:
 At a guess, you are seeing the
 UnavailableException manifested as a 404 error in your
 browser, like this: HTTP Status 404 - Servlet hemlock is not
 available, rather than an UnavailableException ?

   Yes, exactly.  Which isn't a problem -- except I can't find the *actual*
error anywhere.

 PS I just ran my own test of UnavailableException along the
 same lines that you described, and found that my custom UE
 message was not shown in the browser, but WAS logged in my catalina
 log file: 
 
 2004-10-25 17:30:31 StandardWrapperValve[uethrower]:
 Servlet.service() for servlet uethrower threw exception
 javax.servlet.UnavailableException: MY UE MSG
   at myWebApp.test.UEThrower.doGet(UEThrower.java:24) ...
 2004-10-25 17:30:31 StandardContext[/ao]Marking servlet uethrower as
 unavailable 

  Uh, where is this log file?  I have a Tomcat 5.0 directory, and under it
a logs directory, but it's not in any of those.  And I have not been able
to find anything that looks like a log anywhere else.

-- Chris


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



RE: Where do UnavailableExceptions get reported?

2004-10-26 Thread Steve Kirk
Logging seems to be a problem which keeps coming up on the list, in
particular people seem to complain about missing log files.  I'm no expert
on logging, so I'll just say this to put my previous post in more context:

I am using a logging setup based around the standard TC/commons logging.

Apparently, log4j is a better solution, and the standard Logger config
elements disappear in TC 5.5; conversion to log4j is on my to do list.  You
might want to consider doing the same.

My installation is on Win2k, using jakarta-tomcat-5.0.27.zip, installed
under C:\jakarta-tomcat-5.0.27\, running as a service.  My logs folder
contains:
C:\jakarta-tomcat-5.0.27\logs\catalina.2004-10-26.log
C:\jakarta-tomcat-5.0.27\logs\jakarta_service_20041026.log
C:\jakarta-tomcat-5.0.27\logs\stderr.log
C:\jakarta-tomcat-5.0.27\logs\stdout.log

At a guess from the Tomcat 5.0 foldername, you might have installed using
the .exe installer (?) but I don't know why this might produce different
logging setup.

I can post my config files if you like, but there's nothing special in them
with respect to logging that I can recall.

 -Original Message-
 From: Chris Bergstresser [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday 27 October 2004 01:56
 To: 'Tomcat Users List'
 Subject: RE: Where do UnavailableExceptions get reported?
 
 
 Steve Kirk wrote:
  At a guess, you are seeing the
  UnavailableException manifested as a 404 error in your
  browser, like this: HTTP Status 404 - Servlet hemlock is not
  available, rather than an UnavailableException ?
 
Yes, exactly.  Which isn't a problem -- except I can't 
 find the *actual*
 error anywhere.
 
  PS I just ran my own test of UnavailableException along the
  same lines that you described, and found that my custom UE
  message was not shown in the browser, but WAS logged in my catalina
  log file: 
  
  2004-10-25 17:30:31 StandardWrapperValve[uethrower]:
  Servlet.service() for servlet uethrower threw exception
  javax.servlet.UnavailableException: MY UE MSG
  at myWebApp.test.UEThrower.doGet(UEThrower.java:24) ...
  2004-10-25 17:30:31 StandardContext[/ao]Marking servlet uethrower as
  unavailable 
 
   Uh, where is this log file?  I have a Tomcat 5.0 
 directory, and under it
 a logs directory, but it's not in any of those.  And I have 
 not been able
 to find anything that looks like a log anywhere else.
 
 -- Chris



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



RE: Where do UnavailableExceptions get reported?

2004-10-25 Thread Shapira, Yoav

Hi,
UnavailableExceptions are a bit of an unusual beast in how they're
handled by the server, especially when thrown by users.  Try throwing
the exception type actually declared by the init method
(ServletException) ;)

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, October 22, 2004 6:44 PM
To: [EMAIL PROTECTED]
Subject: Where do UnavailableExceptions get reported?

Hi all --

   I just installed Tomcat, and created a servlet, and installed it.
It
worked.
 I then added an init() method, which also worked.  Finally, I changed
my
init
method to throw an UnavailableException if a configuration variable
wasn't
specified.
   Now, obviously, I get an The requested resource (Servlet hemlock is
not
available) is not available error.  But the message I specified in the
exception I threw does not show up -- not in the logs, not when I
reload
the
servlet in the manager, not on the page when I try to run the servlet.
I
searched all the available files in the Apache install directory, and
it's
not
in any of them.  Where does it go?  If it disappears, what good is
having
UnavailableExceptions being thrown?

-- Chris



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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: Where do UnavailableExceptions get reported?

2004-10-25 Thread Steve Kirk

If you really need to, you can wrap one exception inside the other, e.g.

throw new ServletException(new UnavailableException(my unavaiable
message));

and I think you'll find that the Tomcat error page (or your own custom error
page, if configured) will automatically strip the outer ServletException
layer off and report the underlying UnavailableException.

I think your problelm might be related to my previous post regarding a
similar issue with ServletException:
http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]
he.orgmsgNo=158528

I have also submitted a report to the JSR154 team as suggested by Yoav.  Let
me know if your problem is similar, and I'll add it to my report.

 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
 Sent: Monday 25 October 2004 14:18
 To: Tomcat Users List
 Subject: RE: Where do UnavailableExceptions get reported?
 
 
 
 Hi,
 UnavailableExceptions are a bit of an unusual beast in how they're
 handled by the server, especially when thrown by users.  Try throwing
 the exception type actually declared by the init method
 (ServletException) ;)
 
 Yoav Shapira http://www.yoavshapira.com
  
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Friday, October 22, 2004 6:44 PM
 To: [EMAIL PROTECTED]
 Subject: Where do UnavailableExceptions get reported?
 
 Hi all --
 
I just installed Tomcat, and created a servlet, and installed it.
 It
 worked.
  I then added an init() method, which also worked.  Finally, 
 I changed
 my
 init
 method to throw an UnavailableException if a configuration variable
 wasn't
 specified.
Now, obviously, I get an The requested resource (Servlet 
 hemlock is
 not
 available) is not available error.  But the message I 
 specified in the
 exception I threw does not show up -- not in the logs, not when I
 reload
 the
 servlet in the manager, not on the page when I try to run 
 the servlet.
 I
 searched all the available files in the Apache install directory, and
 it's
 not
 in any of them.  Where does it go?  If it disappears, what good is
 having
 UnavailableExceptions being thrown?
 
 -- Chris
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 This e-mail, including any attachments, is a confidential 
 business communication, and may contain information that is 
 confidential, proprietary and/or privileged.  This e-mail is 
 intended only for the individual(s) to whom it is addressed, 
 and may not be saved, copied, printed, disclosed or used by 
 anyone else.  If you are not the(an) intended recipient, 
 please immediately delete this e-mail from your computer 
 system and notify the sender.  Thank you.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 



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



RE: Where do UnavailableExceptions get reported?

2004-10-25 Thread Chris Bergstresser
Steve Kirk wrote:
 ...I think you'll find that the Tomcat error page (or your
 own custom error page, if configured) will automatically
 strip the outer ServletException layer off and report the
 underlying UnavailableException.

That's a possible workaround.  But the JavaDocs are pretty clear: 

 public class UnavailableException extends ServletException
 
 Defines an exception that a servlet or filter throws 
 to indicate that it is permanently or temporarily unavailable. 

 When a servlet or filter is permanently unavailable, 
 something is wrong with the it, and it cannot handle requests 
 until some action is taken. For example, a servlet might be 
 configured incorrectly, or a filter's state may be corrupted. 
 The component should log both the error and the corrective 
 action that is needed.

Throwing a generic ServletException wrapping my UnavailableException
would probably get the report showing up, but it also means Tomcat won't be
able to respond correctly to it.

 I think your problelm might be related to my previous post
 regarding a similar issue with ServletException:

http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]
he.orgmsgNo=158528
 
 I have also submitted a report to the JSR154 team as
 suggested by Yoav.  Let me know if your problem is similar, and I'll
 add it to my report. 

I'm not sure it is.  That's a problem with wrapping Exceptions, mine's a
problem with reporting them.  Slightly different.

-- Chris


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



RE: Where do UnavailableExceptions get reported?

2004-10-25 Thread Steve Kirk

 Throwing a generic ServletException wrapping my UnavailableException
 would probably get the report showing up, but it also means Tomcat won't
be
 able to respond correctly to it.

Yes.  Sorry, I had missed the fact that UnavailableException is a subclass
of ServletException, so unless your web.xml specifies an error-page for
UnavailableException, there _shouldn't_ be any need to wrap an UE inside a
SE anyway.

But, back to your original question:
  Where does it go?  If it disappears, what good is
  having
  UnavailableExceptions being thrown?

I've had problem with error and exception handling myself, so you got me
interested in this one.  I just read up on it in the servlet spec.
Interesting.  It seems that one good reason to use UEs is that servlet
containers are supposed to give them special treatment compared to SEs (see
servlet spec SRV.2.3.3.2).  It may be that this special treatment is
actually the problem that you're experiencing?

What I mean by this is, that the servlet spec requires TC to return a 404 or
503 to every request to the servlet after it has thrown the
UnavailableException (up toa time limit in the case of a temp UE).  So, each
new request to that servlet produces a new 404 or 503 error.  Therefore you
probably wouldn't expect each of these new Exceptions to contain the error
message from your original UnavailableException (and the spec does not seem
to require this as far as I can see).  This is maybe why a generic exception
message is returned each time instead.  At a guess, you are seeing the
UnavailableException manifested as a 404 error in your browser, like this:
HTTP Status 404 - Servlet hemlock is not available, rather than an
UnavailableException ?

PS I just ran my own test of UnavailableException along the same lines that
you described, and found that my custom UE message was not shown in the
browser, but WAS logged in my catalina log file:

2004-10-25 17:30:31 StandardWrapperValve[uethrower]: Servlet.service() for
servlet uethrower threw exception
javax.servlet.UnavailableException: MY UE MSG
at myWebApp.test.UEThrower.doGet(UEThrower.java:24)
...
2004-10-25 17:30:31 StandardContext[/ao]Marking servlet uethrower as
unavailable



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



Where can I find mod_jk2 for apache 1.3?

2004-10-25 Thread Sergey Kamshilin
Hi all,

Trying to find the subj. The link on jakarta web site has a tar file with
mod_jk2 for apache 2. The readme file states that there should be a version
for apache 1.3 but it's not there. Does anybody have idea where can I
download it from?

Thank you!

/Sergeyk


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



RE: Where do UnavailableExceptions get reported?

2004-10-24 Thread Chris Bergstresser
QM wrote:
 On Fri, Oct 22, 2004 at 06:44:07PM -0400, [EMAIL PROTECTED] wrote:
 ...the message I specified in the exception I
 threw does not show up -- not in the logs, not when I reload the
 servlet in the manager, not on the page when I try to run the
 servlet.  I searched all the available files in the Apache install
 directory, and it's not in any of them. 
 
 What about the logfiles in the Tomcat directory, instead of
 the Apache directory?  Look for files along the lines of
 
   catalina.out
   tomcat-*.log

   I don't have a separate Apache and Tomcat directory, as far as I can
tell.  I searched through all the files in the Tomcat log directory
(including the .out and .err output logs, and the tomcat logs), and it's not
showing in any of those.  I have found the log announcing my servlet being
marked available and unavailable, but there's no information on the
exception triggering it.  What's going on?

-- Chris


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



Where do UnavailableExceptions get reported?

2004-10-22 Thread chris
Hi all --

   I just installed Tomcat, and created a servlet, and installed it.  It worked.
 I then added an init() method, which also worked.  Finally, I changed my init
method to throw an UnavailableException if a configuration variable wasn't
specified.
   Now, obviously, I get an The requested resource (Servlet hemlock is not
available) is not available error.  But the message I specified in the
exception I threw does not show up -- not in the logs, not when I reload the
servlet in the manager, not on the page when I try to run the servlet.  I
searched all the available files in the Apache install directory, and it's not
in any of them.  Where does it go?  If it disappears, what good is having
UnavailableExceptions being thrown?

-- Chris



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



Re: Where do UnavailableExceptions get reported?

2004-10-22 Thread QM
On Fri, Oct 22, 2004 at 06:44:07PM -0400, [EMAIL PROTECTED] wrote:
: Finally, I changed my init
: method to throw an UnavailableException if a configuration variable wasn't
: specified.
:Now, obviously, I get an The requested resource (Servlet hemlock is not
: available) is not available error.  But the message I specified in the
: exception I threw does not show up -- not in the logs, not when I reload the
: servlet in the manager, not on the page when I try to run the servlet.  I
: searched all the available files in the Apache install directory, and it's not
: in any of them.

What about the logfiles in the Tomcat directory, instead of the Apache
directory?  Look for files along the lines of

catalina.out
tomcat-*.log

etc.


-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



RE: where is Catalina.out

2004-10-14 Thread Dale, Matt

Are you running tomcat as a service?

-Original Message-
From: Fred Yu [mailto:[EMAIL PROTECTED]
Sent: 14 October 2004 03:00
To: [EMAIL PROTECTED]
Subject: where is Catalina.out


Does anyone know why I can not find Catalina.out file under logs directory?
I followed steps to install Tomcat 5.0.28 and there is no changes made to
tomcat.

Please advise

Thanks

Fred



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

Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the company. This E-mail and any files transmitted with it are 
confidential and solely for the use of the intended recipient. If you are not the 
intended recipient or the person responsible for delivering to the intended recipient, 
be advised that you have received this E-mail in error and that any use or copying is 
strictly prohibited. If you have received this E-mail in error please notify the 
beCogent postmaster at [EMAIL PROTECTED]
Unless expressly stated, opinions in this email are those of the individual sender and 
not beCogent Ltd. You must take full responsibility for virus checking this email and 
any attachments.
Please note that the content of this email or any of its attachments may contain data 
that falls within the scope of the Data Protection Acts and that you must ensure that 
any handling or processing of such data by you is fully compliant with the terms and 
provisions of the Data Protection Act 1984 and 1998.


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

RE: where is Catalina.out

2004-10-14 Thread Fred Yu
No, I run tomcat by executing startup.bat.

-Original Message-
From: Dale, Matt [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 14, 2004 9:52 PM
To: Tomcat Users List
Subject: RE: where is Catalina.out



Are you running tomcat as a service?

-Original Message-
From: Fred Yu [mailto:[EMAIL PROTECTED]
Sent: 14 October 2004 03:00
To: [EMAIL PROTECTED]
Subject: where is Catalina.out


Does anyone know why I can not find Catalina.out file under logs directory?
I followed steps to install Tomcat 5.0.28 and there is no changes made to
tomcat.

Please advise

Thanks

Fred



-
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: where is Catalina.out

2004-10-14 Thread Dale, Matt

I've got no ideas then, i've never had this problem. 

-Original Message-
From: Fred Yu [mailto:[EMAIL PROTECTED]
Sent: 14 October 2004 10:03
To: Tomcat Users List
Subject: RE: where is Catalina.out


No, I run tomcat by executing startup.bat.

-Original Message-
From: Dale, Matt [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 14, 2004 9:52 PM
To: Tomcat Users List
Subject: RE: where is Catalina.out



Are you running tomcat as a service?

-Original Message-
From: Fred Yu [mailto:[EMAIL PROTECTED]
Sent: 14 October 2004 03:00
To: [EMAIL PROTECTED]
Subject: where is Catalina.out


Does anyone know why I can not find Catalina.out file under logs directory?
I followed steps to install Tomcat 5.0.28 and there is no changes made to
tomcat.

Please advise

Thanks

Fred



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

Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the company. This E-mail and any files transmitted with it are 
confidential and solely for the use of the intended recipient. If you are not the 
intended recipient or the person responsible for delivering to the intended recipient, 
be advised that you have received this E-mail in error and that any use or copying is 
strictly prohibited. If you have received this E-mail in error please notify the 
beCogent postmaster at [EMAIL PROTECTED]
Unless expressly stated, opinions in this email are those of the individual sender and 
not beCogent Ltd. You must take full responsibility for virus checking this email and 
any attachments.
Please note that the content of this email or any of its attachments may contain data 
that falls within the scope of the Data Protection Acts and that you must ensure that 
any handling or processing of such data by you is fully compliant with the terms and 
provisions of the Data Protection Act 1984 and 1998.


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

Where can I get mod_jk-2.0.42.so?

2004-10-12 Thread Brenner, Andrea
Hi,

some time ago there was a download link for mod_jk-2.0.42.so at
jakarta.apache.org, but it seems they have a new website structure now and I
am not able to find this file there anymore.

Is this file no more needed? 

I'm trying to set up an intranet solution and following the instructions
included apache 2 now asks for mod_jk-2.0.42.so. I installed the apache
tomcat jk2 connector rpm, but this module file is not on the pc.

Many thanks for your help in anticipation!

Best Regards,

Andrea

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



Re: Where can I get mod_jk-2.0.42.so?

2004-10-12 Thread QM
On Tue, Oct 12, 2004 at 02:29:40PM +0200, Brenner, Andrea wrote:
: I'm trying to set up an intranet solution and following the instructions
: included apache 2 now asks for mod_jk-2.0.42.so. I installed the apache
: tomcat jk2 connector rpm, but this module file is not on the pc.

You can list what files were installed by the RPM:

rpm -q -l {package name}

Add grep action as needed.

Perhaps the mod_jk library has a different version number in the RPM you
installed.

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



Where is Catalina.out?

2004-10-11 Thread Fred Yu
Hi

I just downloaded and unpacked tomcat 5.0.28 to window 2000 machine. I
deployed my web war file and am able to run it through window explorer. But
I can not find Catalina.out file under logs directory. The tomcat is in
default configuration. Can anyone tell me why?

Cheers
Fred



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



RE: Where is Catalina.out?

2004-10-11 Thread Sng Wee Jim

On windows the logs will go to TOMCAT_HOME/log directory.
It will appear in file localhost_log.-MM-dd.txt
Correct me if I am wrong, Catalina.out is only created when tomcat is
running on unix.

- Jim

-Original Message-
From: Fred Yu [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 12, 2004 10:49 AM
To: [EMAIL PROTECTED]
Subject: Where is Catalina.out?

Hi

I just downloaded and unpacked tomcat 5.0.28 to window 2000 machine. I
deployed my web war file and am able to run it through window explorer.
But I can not find Catalina.out file under logs directory. The tomcat is
in default configuration. Can anyone tell me why?

Cheers
Fred





The information in this email is confidential and is intended solely
for the addressee(s).
Access to this email by anyone else is unauthorized. If you are not
an intended recipient, please notify the sender of this email
immediately. You should not copy, use or disseminate the
information contained in the email.
Any views expressed in this message are those of the individual
sender, except where the sender specifically states them to be
the views of Capco.

http://www.capco.com/



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



RE: Where is Catalina.out?

2004-10-11 Thread Fred Yu
Thanks Jim

I have tried on linux (Redhat) and can not find Catalina.out under logs
directory, that was the reason I tried that on windows 2000.

Cheers
Fred

-Original Message-
From: Sng Wee Jim [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 12, 2004 4:23 PM
To: Fred Yu; [EMAIL PROTECTED]
Subject: RE: Where is Catalina.out?



On windows the logs will go to TOMCAT_HOME/log directory. It will appear
in file localhost_log.-MM-dd.txt
Correct me if I am wrong, Catalina.out is only created when tomcat is
running on unix.

- Jim

-Original Message-
From: Fred Yu [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 12, 2004
10:49 AM
To: [EMAIL PROTECTED]
Subject: Where is Catalina.out?

Hi

I just downloaded and unpacked tomcat 5.0.28 to window 2000 machine. I
deployed my web war file and am able to run it through window explorer.
But I can not find Catalina.out file under logs directory. The tomcat is
in default configuration. Can anyone tell me why?

Cheers
Fred





The information in this email is confidential and is intended solely
for the addressee(s).
Access to this email by anyone else is unauthorized. If you are not
an intended recipient, please notify the sender of this email immediately.
You should not copy, use or disseminate the information contained in the
email.
Any views expressed in this message are those of the individual
sender, except where the sender specifically states them to be
the views of Capco.

http://www.capco.com/



-
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: Where is Catalina.out?

2004-10-11 Thread Hassan Schroeder
Sng Wee Jim wrote:
Correct me if I am wrong, Catalina.out is only created when tomcat is
running on unix.
OK, you're corrected :-)
I see catalina.out created on W2K as well as Mac OS X, Linux...
--
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
  dream.  code.

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


where can i get jkjni.dll for windows.

2004-10-04 Thread Sato
hi,

where can i get jkjni.dll for win32 to run apache with tomcat as
inmemory process(mod_jk2)?


regards,
0xcafebabe

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



Other Question - RE: Help - Newbie questions - where are the uplo aded files stored ?

2004-09-11 Thread MATHOT Jacques
Hello,

Thanks a lot for the information and the link to the upload handling. So far it works 
very well, uploading the files in a temp directory.
The purpose is to upload archive for specific users (after authentication) in the 
archive directory of the application (called icaoref); consequently i would like to 
have those files stored in icaoref/archives instead of the temp directory.
But so far I do not succeed to do it.

Sorry of the part at the end of the message but it is generated automatically at the 
Agency, for legal reasons.

Thanks in advance,
Regards,
Jacques Mathot

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: vendredi 10 septembre 2004 14:54
To: Tomcat Users List; Arun Prasad R
Subject: RE: Help - Newbie questions - where are the uploaded files stored ?



Hi,
Both this and the original poster's intent are pretty bad as far as portability goes.

First, instead of re-inventing the wheel, use a good and proven componet for upload 
handling, like commons-fileupload 
(http://jakarta.apache.org/commons/fileupload/using.html).

Second, know that the Servlet Specification guarantees only one place where you can 
write files: the directory accessible via
(File) getServletContext().getAttribute(javax.servlet.context.tempdir).

If you want another directory, set it as an init-parameter to your upload servlet or 
your servlet context, or maybe even a JNDI Environment reference.  Don't rely on the 
concept of current working directory as that's wildly different from one server 
implementation to another, and it's highly insecure.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Arun Prasad R [mailto:[EMAIL PROTECTED]
Sent: Friday, September 10, 2004 8:00 AM
To: Tomcat Users List
Subject: Re: Help - Newbie questions - where are the uploaded files
stored
?

hi

you can set a session property like System.setProperty(user.dir, 
/your/application/home); this will change the applications current 
working dir.

i have not checked the side effects. whether tomcat will be affected by 
this action or not arun

On Fri, 10 Sep 2004 12:00:45 +0200, MATHOT Jacques 
[EMAIL PROTECTED] wrote:
 Hi All,

 I am implementing an upload function for my web applications using
Tomcat
4.0.14 server. I was expecting the files to be stored on the root
directory
of my application and not in one of the own Tomcat directories.
 How can I specify that the directory to be used is my application
root
directory ?
 Thanks in advance.
 Regards,
 Jacques Mathot

 FileInputStream fis = new FIleInputStream(Doc8585.zip);
 ...

 

 This message and any files transmitted with it are legally privileged
and
intended for the sole use of the individual(s) or entity to whom they
are
addressed. If you are not the intended recipient, please notify the
sender
by reply and delete the message and any attachments from your system.
Any
unauthorised use or disclosure of the content of this message is
strictly
prohibited and may be unlawful.

 Nothing in this e-mail message amounts to a contractual or legal
commitment on the part of EUROCONTROL unless it is confirmed by 
appropriately signed hard copy.

 Any views expressed in this message are those of the sender.

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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



This message and any files transmitted with it are legally privileged and intended for 
the sole use of the individual(s) or entity to whom they are addressed. If you are not 
the intended recipient, please notify the sender by reply and delete the message and 
any attachments from your system. Any unauthorised use or disclosure of the content of 
this message is strictly prohibited and may be unlawful.

Nothing in this e-mail message amounts to a contractual or legal commitment on the 
part of EUROCONTROL unless it is confirmed by appropriately signed hard copy.

Any views expressed in this message are those of the sender.

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

Help - Newbie questions - where are the uploaded files stored ?

2004-09-10 Thread MATHOT Jacques
Hi All,

I am implementing an upload function for my web applications using Tomcat 4.0.14 
server. I was expecting the files to be stored on the root directory of my application 
and not in one of the own Tomcat directories.
How can I specify that the directory to be used is my application root directory ?
Thanks in advance.
Regards,
Jacques Mathot

FileInputStream fis = new FIleInputStream(Doc8585.zip);
...



This message and any files transmitted with it are legally privileged and intended for 
the sole use of the individual(s) or entity to whom they are addressed. If you are not 
the intended recipient, please notify the sender by reply and delete the message and 
any attachments from your system. Any unauthorised use or disclosure of the content of 
this message is strictly prohibited and may be unlawful.

Nothing in this e-mail message amounts to a contractual or legal commitment on the 
part of EUROCONTROL unless it is confirmed by appropriately signed hard copy.

Any views expressed in this message are those of the sender.

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



Re: Help - Newbie questions - where are the uploaded files stored ?

2004-09-10 Thread Arun Prasad R
hi

you can set a session property like 
System.setProperty(user.dir, /your/application/home);
this will change the applications current working dir.

i have not checked the side effects. whether tomcat will be affected
by this action or not
arun

On Fri, 10 Sep 2004 12:00:45 +0200, MATHOT Jacques
[EMAIL PROTECTED] wrote:
 Hi All,
 
 I am implementing an upload function for my web applications using Tomcat 4.0.14 
 server. I was expecting the files to be stored on the root directory of my 
 application and not in one of the own Tomcat directories.
 How can I specify that the directory to be used is my application root directory ?
 Thanks in advance.
 Regards,
 Jacques Mathot
 
 FileInputStream fis = new FIleInputStream(Doc8585.zip);
 ...
 
 
 
 This message and any files transmitted with it are legally privileged and intended 
 for the sole use of the individual(s) or entity to whom they are addressed. If you 
 are not the intended recipient, please notify the sender by reply and delete the 
 message and any attachments from your system. Any unauthorised use or disclosure of 
 the content of this message is strictly prohibited and may be unlawful.
 
 Nothing in this e-mail message amounts to a contractual or legal commitment on the 
 part of EUROCONTROL unless it is confirmed by appropriately signed hard copy.
 
 Any views expressed in this message are those of the sender.
 
 -
 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: Help - Newbie questions - where are the uploaded files stored ?

2004-09-10 Thread Shapira, Yoav

Hi,
Both this and the original poster's intent are pretty bad as far as
portability goes.

First, instead of re-inventing the wheel, use a good and proven componet
for upload handling, like commons-fileupload
(http://jakarta.apache.org/commons/fileupload/using.html).

Second, know that the Servlet Specification guarantees only one place
where you can write files: the directory accessible via
(File)
getServletContext().getAttribute(javax.servlet.context.tempdir).

If you want another directory, set it as an init-parameter to your
upload servlet or your servlet context, or maybe even a JNDI Environment
reference.  Don't rely on the concept of current working directory as
that's wildly different from one server implementation to another, and
it's highly insecure.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Arun Prasad R [mailto:[EMAIL PROTECTED]
Sent: Friday, September 10, 2004 8:00 AM
To: Tomcat Users List
Subject: Re: Help - Newbie questions - where are the uploaded files
stored
?

hi

you can set a session property like
System.setProperty(user.dir, /your/application/home);
this will change the applications current working dir.

i have not checked the side effects. whether tomcat will be affected
by this action or not
arun

On Fri, 10 Sep 2004 12:00:45 +0200, MATHOT Jacques
[EMAIL PROTECTED] wrote:
 Hi All,

 I am implementing an upload function for my web applications using
Tomcat
4.0.14 server. I was expecting the files to be stored on the root
directory
of my application and not in one of the own Tomcat directories.
 How can I specify that the directory to be used is my application
root
directory ?
 Thanks in advance.
 Regards,
 Jacques Mathot

 FileInputStream fis = new FIleInputStream(Doc8585.zip);
 ...

 

 This message and any files transmitted with it are legally privileged
and
intended for the sole use of the individual(s) or entity to whom they
are
addressed. If you are not the intended recipient, please notify the
sender
by reply and delete the message and any attachments from your system.
Any
unauthorised use or disclosure of the content of this message is
strictly
prohibited and may be unlawful.

 Nothing in this e-mail message amounts to a contractual or legal
commitment on the part of EUROCONTROL unless it is confirmed by
appropriately signed hard copy.

 Any views expressed in this message are those of the sender.

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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: Help - Newbie questions - where are the uploaded files stored ?

2004-09-10 Thread erh
On Fri, Sep 10, 2004 at 12:00:45PM +0200, MATHOT Jacques wrote:
 I am implementing an upload function for my web applications using Tomcat 4.0.14 
 server. I was expecting the files to be stored on the root directory of my 
 application and not in one of the own Tomcat directories.
 How can I specify that the directory to be used is my application root directory ?
 
   FileInputStream fis = new FIleInputStream(Doc8585.zip);
   ...
I don't think you can.  You'll run into what seems to be a related problem
if you try to, for example, use struts-tiles and specify a dtd in the
tiles-defs.xml file.  The location is based on whereever you happen to
be when tomcat is started.  i.e. if you are in /foo/bar when you run
startup.sh files will end up there.
Either create a directory somewhere else, and hard code the entire path
to that, or hardcode the path to the tomcat webapps directory and use 
request.getContextPath() to append the application directory.

 This message and any files transmitted with it are legally privileged and intended 
 for the sole use of the individual(s) or entity to whom they are addressed. If you 
 are not the intended recipient, please notify the sender by reply and delete the 
 message and any attachments from your system. Any unauthorised use or disclosure of 
 the content of this message is strictly prohibited and may be unlawful.

What is this crap?  This seems rather inappropriate to be sending to
a mailing list.

eric


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



RE: Help - Newbie questions - where are the uploaded files stored ?

2004-09-10 Thread Shapira, Yoav

Hi,

 This message and any files transmitted with it are legally privileged
and
intended for the sole use of the individual(s) or entity to whom they
are
addressed. If you are not the intended recipient, please notify the
sender
by reply and delete the message and any attachments from your system.
Any
unauthorised use or disclosure of the content of this message is
strictly
prohibited and may be unlawful.

   What is this crap?  This seems rather inappropriate to be
sending to
a mailing list.

Isn't that crap self-evident? ;)  Most companies attach such footers
and related disclaimers or legal notices to all outgoing mail, and most
users can't control it.

Yoav



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: Help - Newbie questions - where are the uploaded files stored ?

2004-09-10 Thread erh
On Fri, Sep 10, 2004 at 10:57:18AM -0400, Shapira, Yoav wrote:
 Isn't that crap self-evident? ;)  Most companies attach such footers
 and related disclaimers or legal notices to all outgoing mail, and most
 users can't control it.

well then you shouldn't be using a work email address to send email
to a public list.  It's not at all reasonable to claim that those messages
are in any way confidential, or try to limit how they get saved and copied.
You don't expect the list maintainer to trim out from the archives any
messages that, as your footer says, may not be saved, do you?

eric

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



Re: Help - Newbie questions - where are the uploaded files stored ?

2004-09-10 Thread John Villar
Actually, the list and all its recipients are the actual individual(s) 
(Lawyer lingo, yuck!!) the mail is intended to
Remember, most of us have a daily work and use tomcat as a tool on our 
works...

[EMAIL PROTECTED] escribió:
On Fri, Sep 10, 2004 at 10:57:18AM -0400, Shapira, Yoav wrote:
 

Isn't that crap self-evident? ;)  Most companies attach such footers
and related disclaimers or legal notices to all outgoing mail, and most
users can't control it.
   

well then you shouldn't be using a work email address to send email
to a public list.  It's not at all reasonable to claim that those messages
are in any way confidential, or try to limit how they get saved and copied.
You don't expect the list maintainer to trim out from the archives any
messages that, as your footer says, may not be saved, do you?
eric
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

--
John Villar
Gerente de Proyectos
Computadores Flor Hard Soft 2058 C.A.
www.florhard.com

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

RE: Help - Newbie questions - where are the uploaded files stored ?

2004-09-10 Thread Shapira, Yoav

Hi,
Nope, I don't expect the maintainers of this list to strip out my
messages.  They, you, and all the subscribers to the list (including
computerized archive addresses like MARC and Eyebrowse) are the intended
individual(s) for whom this email is addressed, so they may save and
copy it.  I had cleared it with our legal department in the past, not to
mention that this is a routine and accepted practice, so you're ranting
about nothing.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, September 10, 2004 11:36 AM
To: Shapira, Yoav
Cc: Tomcat Users List
Subject: Re: Help - Newbie questions - where are the uploaded files
stored
?

On Fri, Sep 10, 2004 at 10:57:18AM -0400, Shapira, Yoav wrote:
 Isn't that crap self-evident? ;)  Most companies attach such
footers
 and related disclaimers or legal notices to all outgoing mail, and
most
 users can't control it.

   well then you shouldn't be using a work email address to send
email
to a public list.  It's not at all reasonable to claim that those
messages
are in any way confidential, or try to limit how they get saved and
copied.
You don't expect the list maintainer to trim out from the archives any
messages that, as your footer says, may not be saved, do you?

eric



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: Where can I get JK2 binary for Redhat Enterprise Linux?

2004-09-05 Thread nyhgan
 
Thank you so much!
 
I will give it a try!
 


Cott Lang [EMAIL PROTECTED] wrote:Why not just use Redhat's? 

http://ftp.redhat.com/pub/redhat/linux/enterprise/3/en/RHAPS/i386/RPMS/mod_jk2-2.0.4-4jpp_4rh.i386.rpm


On Sat, 2004-09-04 at 11:04, nyhgan wrote:
 Hi, 
 
 Where can I get JK2 binary for Redhat Enterprise Linux? If anyone happens to have 
 one, pleas email that to me. Thanks!
 
 nyhgan
 
 
 -
 Do you Yahoo!?
 Yahoo! Mail Address AutoComplete - You start. We finish.


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




-
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!

Where can I get JK2 binary for Redhat Enterprise Linux?

2004-09-04 Thread nyhgan
Hi, 
 
Where can I get JK2 binary for Redhat Enterprise Linux? If anyone happens to have one, 
pleas email that to me. Thanks!
 
nyhgan


-
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.

Re: Where can I get JK2 binary for Redhat Enterprise Linux?

2004-09-04 Thread Cott Lang
Why not just use Redhat's? 

http://ftp.redhat.com/pub/redhat/linux/enterprise/3/en/RHAPS/i386/RPMS/mod_jk2-2.0.4-4jpp_4rh.i386.rpm


On Sat, 2004-09-04 at 11:04, nyhgan wrote:
 Hi, 
  
 Where can I get JK2 binary for Redhat Enterprise Linux? If anyone happens to have 
 one, pleas email that to me. Thanks!
  
 nyhgan
 
   
 -
 Do you Yahoo!?
 Yahoo! Mail Address AutoComplete - You start. We finish.


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



Re: repost: Where to get 5.5.1 from? ( Was TC 5.5 - 4 issues (jasper, ROOT, jndi, logging))

2004-09-03 Thread Vic
Silly me, I can't find where to get the 5.5.1 or the 5.5 nighly's from?
They are not here, this looks like the 5.0 brach.
http://cvs.apache.org/builds
Where can I get the new 5.5s from?
Do I have to go to cvs and build?
tia,
.V
Vic wrote:
Yes, but where? What URL?
(the commons download link I think is for the 5.0 trunk? or is that 5.5?)
.V
ps: Thax tomcat team on very nice product!
Remy Maucherat wrote:
On Thu, 02 Sep 2004 11:52:48 -0500, Vic [EMAIL PROTECTED] 
wrote:

Where can we get 5.5.1? Or 5.5 nightlies?

Don't worry: since this is heavy development mode, new binaries are
going to be released often (unless Yoav doesn't have time to do the
releases).


--
Please post on Rich Internet Applications User Interface (RiA/SoA)
http://www.portalvu.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: repost: Where to get 5.5.1 from? ( Was TC 5.5 - 4 issues (jasper, ROOT, jndi, logging))

2004-09-03 Thread Shapira, Yoav

Hi,
5.5 releases are on the normal download pages, right above 5.0 releases.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Vic
Sent: Friday, September 03, 2004 6:53 AM
To: [EMAIL PROTECTED]
Subject: Re: repost: Where to get 5.5.1 from? ( Was TC 5.5 - 4 issues
(jasper, ROOT, jndi, logging))

Silly me, I can't find where to get the 5.5.1 or the 5.5 nighly's from?
They are not here, this looks like the 5.0 brach.
http://cvs.apache.org/builds

Where can I get the new 5.5s from?
Do I have to go to cvs and build?

tia,
.V

Vic wrote:
 Yes, but where? What URL?

 (the commons download link I think is for the 5.0 trunk? or is that
5.5?)

 .V

 ps: Thax tomcat team on very nice product!

 Remy Maucherat wrote:

 On Thu, 02 Sep 2004 11:52:48 -0500, Vic [EMAIL PROTECTED]
 wrote:

 Where can we get 5.5.1? Or 5.5 nightlies?



 Don't worry: since this is heavy development mode, new binaries are
 going to be released often (unless Yoav doesn't have time to do the
 releases).





--
Please post on Rich Internet Applications User Interface (RiA/SoA)
http://www.portalvu.com


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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: repost: Where to get 5.5.1 from? ( Was TC 5.5 - 4 issues (jasper, ROOT, jndi, logging))

2004-09-03 Thread Vic
That is 5.5.0.
But 5.5.1 has bug fixes, where is that?
And where can I get the 5.5.x nighlies?
tia,
.V
Shapira, Yoav wrote:
Hi,
5.5 releases are on the normal download pages, right above 5.0 releases.
Yoav Shapira
Millennium Research Informatics

-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Vic
Sent: Friday, September 03, 2004 6:53 AM
To: [EMAIL PROTECTED]
Subject: Re: repost: Where to get 5.5.1 from? ( Was TC 5.5 - 4 issues
(jasper, ROOT, jndi, logging))
Silly me, I can't find where to get the 5.5.1 or the 5.5 nighly's from?
They are not here, this looks like the 5.0 brach.
http://cvs.apache.org/builds
Where can I get the new 5.5s from?
Do I have to go to cvs and build?
tia,
.V
Vic wrote:
Yes, but where? What URL?
(the commons download link I think is for the 5.0 trunk? or is that
5.5?)
.V
ps: Thax tomcat team on very nice product!
Remy Maucherat wrote:

On Thu, 02 Sep 2004 11:52:48 -0500, Vic [EMAIL PROTECTED]
wrote:

Where can we get 5.5.1? Or 5.5 nightlies?

Don't worry: since this is heavy development mode, new binaries are
going to be released often (unless Yoav doesn't have time to do the
releases).

--
Please post on Rich Internet Applications User Interface (RiA/SoA)
http://www.portalvu.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged.  This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender.  Thank you.

--
Please post on Rich Internet Applications User Interface (RiA/SoA)
http://www.portalvu.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: repost: Where to get 5.5.1 from? ( Was TC 5.5 - 4 issues (jasper, ROOT, jndi, logging))

2004-09-03 Thread Shapira, Yoav

Hi,
How many times do I have to post this? ;)

5.5.1 is NOT AVAILABLE YET.  It's looking like I'll cut it Tuesday.

Nightlies are available at the usual place,
http://cvs.apache.org/builds/jakarta-tomcat-5/nightly/, but they're use
at your own risk of course.  Note that the above URL is nicely linked
from the normal Jakarta download pages, it's not hard to find ;)

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Vic
Sent: Friday, September 03, 2004 12:08 PM
To: [EMAIL PROTECTED]
Subject: Re: repost: Where to get 5.5.1 from? ( Was TC 5.5 - 4 issues
(jasper, ROOT, jndi, logging))

That is 5.5.0.
But 5.5.1 has bug fixes, where is that?
And where can I get the 5.5.x nighlies?

tia,
.V


Shapira, Yoav wrote:
 Hi,
 5.5 releases are on the normal download pages, right above 5.0
releases.

 Yoav Shapira
 Millennium Research Informatics



-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Vic
Sent: Friday, September 03, 2004 6:53 AM
To: [EMAIL PROTECTED]
Subject: Re: repost: Where to get 5.5.1 from? ( Was TC 5.5 - 4 issues
(jasper, ROOT, jndi, logging))

Silly me, I can't find where to get the 5.5.1 or the 5.5 nighly's
from?
They are not here, this looks like the 5.0 brach.
http://cvs.apache.org/builds

Where can I get the new 5.5s from?
Do I have to go to cvs and build?

tia,
.V

Vic wrote:

Yes, but where? What URL?

(the commons download link I think is for the 5.0 trunk? or is that

 5.5?)

.V

ps: Thax tomcat team on very nice product!

Remy Maucherat wrote:


On Thu, 02 Sep 2004 11:52:48 -0500, Vic
[EMAIL PROTECTED]
wrote:


Where can we get 5.5.1? Or 5.5 nightlies?



Don't worry: since this is heavy development mode, new binaries are
going to be released often (unless Yoav doesn't have time to do the
releases).




--
Please post on Rich Internet Applications User Interface (RiA/SoA)
http://www.portalvu.com


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





 This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential,
proprietary and/or privileged.  This e-mail is intended only for the
individual(s) to whom it is addressed, and may not be saved, copied,
printed, disclosed or used by anyone else.  If you are not the(an)
intended
recipient, please immediately delete this e-mail from your computer
system
and notify the sender.  Thank you.


--
Please post on Rich Internet Applications User Interface (RiA/SoA)
http://www.portalvu.com


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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: repost: Where to get 5.5.1 from? ( Was TC 5.5 - 4 issues (jasper, ROOT, jndi, logging))

2004-09-03 Thread Vic
Shapira, Yoav wrote:
Hi,
How many times do I have to post this? ;)
5.5.1 is NOT AVAILABLE YET.  It's looking like I'll cut it Tuesday.
A. OK!

Nightlies are available at the usual place,
http://cvs.apache.org/builds/jakarta-tomcat-5/nightly/, but they're use
at your own risk of course.  Note that the above URL is nicely linked
from the normal Jakarta download pages, it's not hard to find ;)
So the niglies are not 5.0 branch, they are 5.5.
THNX,sorry to be slow on the uptake.
.V

Yoav Shapira
Millennium Research Informatics

--

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


RE: repost: Where to get 5.5.1 from? ( Was TC 5.5 - 4 issues (jasper, ROOT, jndi, logging))

2004-09-03 Thread Shapira, Yoav

Hi,

So the niglies are not 5.0 branch, they are 5.5.

Yup, nightlies are always built from CVS HEAD, which is the latest 5.5
stuff.  If someone wanted to do a latest 5.0 build they'd use the
TOMCAT_5_0 CVS branch, not HEAD.

Yoav



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: Where do I place a servlet class

2004-08-27 Thread gerardo

Hello,

I noticed that you mentioned the server specification. I have seen it 
mentioned before, many times. But where is it? I have searched for it at 
java.sun.com and all I get is a Javadoc *reference* of some classes. Is 
this the so-called 'specification'? Shouldn't it be a *text*?

Greetings,
Gerardo

On Fri, 20 Aug 2004, Shapira, Yoav wrote:

 
 Hi,
 
 I added the servlet mapping entry but it's still not working.
 I have the class file in /dev_new/WEB-INF/classes/umJavaLib/.  Does the
 class file need to go into a special directory of anything?
 
  servlet
 servlet-nameservUploadMedia/servlet-name
 
 servlet-classumJavaLib.servUploadMedia/servlet-class
 load-on-startup1/load-on-startup
 /servlet
   servlet-mapping
 servlet-nameservUploadMedia/servlet-name
 url-
 pattern/dev_new/servlet/umJavaLib.servUploadMedia/url-pattern
 /servlet-mapping
 
 First try to get it to work in tomcat-standalone.  It's the KISS
 principle.
 
 Do you realize what the above url-pattern means?  With it, you can
 access your servlet at
 http://yourhost:yourport/yourwebapp/dev_new/server/umJavaLib.servUploadM
 edia.  A more typical url-pattern would just be
 url-pattern/uploadMedia/url-pattern, and then you'd access your
 servlet at http://yourhost:yourport/yourwebapp/uploadMedia.
 
 If you're unclear on url-pattern and how it works, check out the Servlet
 Specification itself for details and examples.
 
 Yoav Shapira
 
 
 
 This e-mail, including any attachments, is a confidential business communication, 
 and may contain information that is confidential, proprietary and/or privileged.  
 This e-mail is intended only for the individual(s) to whom it is addressed, and may 
 not be saved, copied, printed, disclosed or used by anyone else.  If you are not 
 the(an) intended recipient, please immediately delete this e-mail from your computer 
 system and notify the sender.  Thank you.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



Re: Where do I place a servlet class

2004-08-27 Thread Wendy Smoak
From: [EMAIL PROTECTED]
 I noticed that you mentioned the server specification. I have seen it
 mentioned before, many times. But where is it? I have searched for it at
 java.sun.com and all I get is a Javadoc *reference* of some classes. Is
 this the so-called 'specification'? Shouldn't it be a *text*?

Servlet Specification:
http://java.sun.com/products/servlet/download.html

The Specification will explain exactly what the container is required to do
for you, what it may do, and some things it must not do.

-- 
Wendy Smoak


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



Where are Tomcat logs when run as service?

2004-08-23 Thread ohaya
Hi,

Up until tonight, I've been running standalone Tomcat as an executable. 
But, I installed Tomcat on another machine, this time, installing it as
a service.  I can't find anywhere where Tomcat on this new machine logs
the messages like you seen in the DOS window when you run Tomcat as an
executable.

I've checked in my .\logs directory, and watched the localhost...txt
file, but I don't seen anthing much there?

Can someone tell me where Tomcat is logging to?

Thanks,
Jim

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



RE: Where are Tomcat logs when run as service?

2004-08-23 Thread Joseph Samuel

The logs are present in the 'logs' directory of your tomcat installation. It
is stored in the file 'stdout.log' These log files are cleared each time you
restart Tomcat.

Jo


-Original Message-
From: ohaya [mailto:[EMAIL PROTECTED]
Sent: Monday, August 23, 2004 12:06 PM
To: Tomcat Users List
Subject: Where are Tomcat logs when run as service?


Hi,

Up until tonight, I've been running standalone Tomcat as an executable.
But, I installed Tomcat on another machine, this time, installing it as
a service.  I can't find anywhere where Tomcat on this new machine logs
the messages like you seen in the DOS window when you run Tomcat as an
executable.

I've checked in my .\logs directory, and watched the localhost...txt
file, but I don't seen anthing much there?

Can someone tell me where Tomcat is logging to?

Thanks,
Jim

-
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: Where are Tomcat logs when run as service?

2004-08-23 Thread Eric YH WONG
Try to see /logs/stdout.log


- Original Message - 
From: ohaya [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, August 23, 2004 2:36 PM
Subject: Where are Tomcat logs when run as service?


 Hi,
 
 Up until tonight, I've been running standalone Tomcat as an executable. 
 But, I installed Tomcat on another machine, this time, installing it as
 a service.  I can't find anywhere where Tomcat on this new machine logs
 the messages like you seen in the DOS window when you run Tomcat as an
 executable.
 
 I've checked in my .\logs directory, and watched the localhost...txt
 file, but I don't seen anthing much there?
 
 Can someone tell me where Tomcat is logging to?
 
 Thanks,
 Jim
 
 -
 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: Where are Tomcat logs when run as service?

2004-08-23 Thread Shakeel
Hi, thats good that you started this as a service, we just done same with
our application, and may be our discussion help each other.

Here is exact information about logs of Tomcat when running as a service.
1- All System.out.print go to $:\Tomcat4.1\logs\stdout.log
2- All System.err.print go to $:\Tomcat4.1\logs\stderr.log
3- All other loggers like Log4j etc go to there respective streams.

Now if you want to see the live logs exactly like Tomcat running as a stand
alone server you will install cygwin and use folllowing command.
tail -f c:/Tomcat4.1/logs/stdout.log

etc.

I wish we could communicate as we also have some unresolved issues like
printing from POS terminals, which are under RD.
Also keep in mind that as a service JVM is picking JAVA_OPTS or not. Or you
will have to edit some registry values.

S H A K E E L   A H M A D
(EE, SCJP, SCWCD  SCBCD)

Northstar Technologies, Inc.



-Original Message-
From: ohaya [mailto:[EMAIL PROTECTED]
Sent: Monday, August 23, 2004 11:36 AM
To: Tomcat Users List
Subject: Where are Tomcat logs when run as service?


Hi,

Up until tonight, I've been running standalone Tomcat as an executable.
But, I installed Tomcat on another machine, this time, installing it as
a service.  I can't find anywhere where Tomcat on this new machine logs
the messages like you seen in the DOS window when you run Tomcat as an
executable.

I've checked in my .\logs directory, and watched the localhost...txt
file, but I don't seen anthing much there?

Can someone tell me where Tomcat is logging to?

Thanks,
Jim

-
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: Where are Tomcat logs when run as service?

2004-08-23 Thread ohaya


Shakeel wrote:
 
 Hi, thats good that you started this as a service, we just done same with
 our application, and may be our discussion help each other.
 
 Here is exact information about logs of Tomcat when running as a service.
 1- All System.out.print go to $:\Tomcat4.1\logs\stdout.log
 2- All System.err.print go to $:\Tomcat4.1\logs\stderr.log
 3- All other loggers like Log4j etc go to there respective streams.
 
 Now if you want to see the live logs exactly like Tomcat running as a stand
 alone server you will install cygwin and use folllowing command.
 tail -f c:/Tomcat4.1/logs/stdout.log
 
 etc.
 
 I wish we could communicate as we also have some unresolved issues like
 printing from POS terminals, which are under RD.
 Also keep in mind that as a service JVM is picking JAVA_OPTS or not. Or you
 will have to edit some registry values.
 


Hi Joseph, Eric, and Shakeel,

Thanks!  I missed those files, as I've been working with the .EXE for
awhile, and didn't notice them there after I installed the service on
the new machine :(.  Things seem to be working ok now.

Thanks,
Jim

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



Where to put Listener Realm instead of server.xml?

2004-08-23 Thread Wendy Smoak
We're going to try out a third-party report generation tool, and the
installation instructions involve replacing server.xml.  They assume they
will be the only webapp running, which is not the case here.

Can I put their changes somewhere else?

They need:
Listener className=... descriptors=... debug=0/
and also
Realm className=... debug=99 /

I don't really want to edit my server.xml, since I don't need to for any of
my own webapps.  But I'm not sure if these tags can go in web.xml, or if
not, I seem to remember maybe putting a file in the 'webapps' directory
which will get picked up.

Can someone enlighten me or point me in the right direction?  Thanks!

-- 
Wendy Smoak



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



RE: Where to put Listener Realm instead of server.xml?

2004-08-23 Thread Shapira, Yoav

Hi,
If you're using Tomcat 5.x, you can put these in the context.xml file
(in the META-INF directory of your application / WAR).  They don't go in
web.xml, as they're not portable, but rather they are Tomcat-specific.
If you're using Tomcat 4.x, consider this another reason to upgrade ;)

Note however that Realm implementations need to be visible to the common
classloader.  So if the ... in your message is a custom Realm
implementation, you're SOL as far as self-containment goes.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED]
Sent: Monday, August 23, 2004 12:23 PM
To: Tomcat Users List
Subject: Where to put Listener  Realm instead of server.xml?

We're going to try out a third-party report generation tool, and the
installation instructions involve replacing server.xml.  They assume
they
will be the only webapp running, which is not the case here.

Can I put their changes somewhere else?

They need:
Listener className=... descriptors=... debug=0/
and also
Realm className=... debug=99 /

I don't really want to edit my server.xml, since I don't need to for
any of
my own webapps.  But I'm not sure if these tags can go in web.xml, or
if
not, I seem to remember maybe putting a file in the 'webapps' directory
which will get picked up.

Can someone enlighten me or point me in the right direction?  Thanks!

--
Wendy Smoak



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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: Where to put Listener Realm instead of server.xml?

2004-08-23 Thread Jon Wingfield
If you're using 4.1.x you can place a context-name.xml file in the 
webapps (appBase) directory. It contains the Context element that would 
have gone in server.xml.
The custom Realm classes still need to be in the common classloader.

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html#Automatic%20Application%20Deployment
Shapira, Yoav wrote:
Hi,
If you're using Tomcat 5.x, you can put these in the context.xml file
(in the META-INF directory of your application / WAR).  They don't go in
web.xml, as they're not portable, but rather they are Tomcat-specific.
If you're using Tomcat 4.x, consider this another reason to upgrade ;)
Note however that Realm implementations need to be visible to the common
classloader.  So if the ... in your message is a custom Realm
implementation, you're SOL as far as self-containment goes.
Yoav Shapira
Millennium Research Informatics

-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED]
Sent: Monday, August 23, 2004 12:23 PM
To: Tomcat Users List
Subject: Where to put Listener  Realm instead of server.xml?
We're going to try out a third-party report generation tool, and the
installation instructions involve replacing server.xml.  They assume
they
will be the only webapp running, which is not the case here.
Can I put their changes somewhere else?
They need:
  Listener className=... descriptors=... debug=0/
and also
  Realm className=... debug=99 /
I don't really want to edit my server.xml, since I don't need to for
any of
my own webapps.  But I'm not sure if these tags can go in web.xml, or
if
not, I seem to remember maybe putting a file in the 'webapps' directory
which will get picked up.
Can someone enlighten me or point me in the right direction?  Thanks!
--
Wendy Smoak

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


This e-mail, including any attachments, is a confidential business communication, 
and may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


Re: Where to put Listener Realm instead of server.xml?

2004-08-23 Thread Dennis Dai
On 8/23/2004 9:22 AM, Wendy Smoak wrote:
We're going to try out a third-party report generation tool, and the
installation instructions involve replacing server.xml.  They assume they
will be the only webapp running, which is not the case here.
Can I put their changes somewhere else?
They need:
Listener className=... descriptors=... debug=0/
and also
Realm className=... debug=99 /
I don't really want to edit my server.xml, since I don't need to for any of
my own webapps.  But I'm not sure if these tags can go in web.xml, or if
not, I seem to remember maybe putting a file in the 'webapps' directory
which will get picked up.
Can someone enlighten me or point me in the right direction?  Thanks!
I believe Listener ... / should go into web.xml (beware the order), 
Realm ... / can go into server.xml's Engine, Host or Context section, 
depending on your needs. If you decided to put it into Context, you can 
put it into conf/Catalina/localhost/context.xml, thus no need to touch 
your server.xml ...

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


RE: Where to put Listener Realm instead of server.xml?

2004-08-23 Thread Shapira, Yoav

Hi,

I believe Listener ... / should go into web.xml (beware the order),

Listener can also be a Tomcat listener which goes in server.xml, as
documented in
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/context.html.

Yoav



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: Where to put Listener Realm instead of server.xml?

2004-08-23 Thread Dennis Dai
On 8/23/2004 12:16 PM, Shapira, Yoav wrote:
I believe Listener ... / should go into web.xml (beware the order),
Listener can also be a Tomcat listener which goes in server.xml, as
documented in
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/context.html.
I actually looked through the document before I did the posting, but I 
guess I didn't look hard enough. :(

Thanks for clearing that up!
--
Dennis Dai
[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Where do I place a servlet class

2004-08-20 Thread Diego, Emil
 
I have upgraded my system from apache 3 and tomcat 3 and am now running tomcat 
4.1.27-13 and apache 2.0.49-4.  My webapp can't find a servlet after the upgrade.  
It's called servUploadMedia.  I had it in my classes directory and it was configured 
in my web.xml file:

web-app
display-nameUpgrade Test/display-name
session-timeout900/session-timeout
servlet
servlet-nameservUploadMedia/servlet-name
servlet-classumJavaLib.servUploadMedia/servlet-class
load-on-startup1/load-on-startup
/servlet
servlet
servlet-nameCalendarServlet/servlet-name
servlet-classcom.jsos.calendar.CalendarServlet/servlet-class
init-param
param-nameconfig/param-name
param-value/sections/plcmt/students/config//param-value
/init-param
/servlet

!-- Default directory Files --
welcome-file-list
welcome-fileindex.jsp/welcome-file
welcome-fileintro.jsp/welcome-file
welcome-fileindex.html/welcome-file
welcome-fileindex.htm/welcome-file
/welcome-file-list
/web-app

Does tomcat 4 look for servlets in a different directory in this new version ?

Emil Diego
Website Administrator
University of Miami School of Business



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.736 / Virus Database: 490 - Release Date: 8/9/2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.736 / Virus Database: 490 - Release Date: 8/9/2004
 

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



Re: Where do I place a servlet class

2004-08-20 Thread John Villar
You need to include yet another directive in your web.xml file called 
servlet-mapping, search the web for it

Diego, Emil escribi:
I have upgraded my system from apache 3 and tomcat 3 and am now running tomcat 
4.1.27-13 and apache 2.0.49-4.  My webapp can't find a servlet after the upgrade.  
It's called servUploadMedia.  I had it in my classes directory and it was configured 
in my web.xml file:
web-app
display-nameUpgrade Test/display-name
session-timeout900/session-timeout
servlet
servlet-nameservUploadMedia/servlet-name
servlet-classumJavaLib.servUploadMedia/servlet-class
load-on-startup1/load-on-startup
/servlet
servlet
servlet-nameCalendarServlet/servlet-name
servlet-classcom.jsos.calendar.CalendarServlet/servlet-class
init-param
param-nameconfig/param-name
param-value/sections/plcmt/students/config//param-value
/init-param
/servlet
!-- Default directory Files --
welcome-file-list
welcome-fileindex.jsp/welcome-file
welcome-fileintro.jsp/welcome-file
welcome-fileindex.html/welcome-file
welcome-fileindex.htm/welcome-file
/welcome-file-list
/web-app
Does tomcat 4 look for servlets in a different directory in this new version ?
Emil Diego
Website Administrator
University of Miami School of Business

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.736 / Virus Database: 490 - Release Date: 8/9/2004
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.736 / Virus Database: 490 - Release Date: 8/9/2004
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

 


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


RE: Where do I place a servlet class

2004-08-20 Thread Diego, Emil
I added the servlet mapping entry but it's still not working. 
I have the class file in /dev_new/WEB-INF/classes/umJavaLib/.  Does the class file 
need to go into a special directory of anything? 

servlet
servlet-nameservUploadMedia/servlet-name
servlet-classumJavaLib.servUploadMedia/servlet-class
load-on-startup1/load-on-startup
/servlet
 servlet-mapping
servlet-nameservUploadMedia/servlet-name
url-pattern/dev_new/servlet/umJavaLib.servUploadMedia/url-pattern
/servlet-mapping


I also added a uri entry in workers2.properties.  Here are the 2 entries for my app:
# Map the jsp extension in the dev_new directory to tomcat
[uri:/dev_new/*.jsp]
info=Extension mapping

[uri:/dev_new/servlet/*]
info=Prefix Mapping



Emil Diego
Website Administrator
University of Miami School of Business
305.284.5449


-Original Message-
From: John Villar [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 20, 2004 11:14 AM
To: Tomcat Users List
Subject: Re: Where do I place a servlet class

You need to include yet another directive in your web.xml file called servlet-mapping, 
search the web for it

Diego, Emil escribi?:

 
I have upgraded my system from apache 3 and tomcat 3 and am now running tomcat 
4.1.27-13 and apache 2.0.49-4.  My webapp can't find a servlet after the upgrade.  
It's called servUploadMedia.  I had it in my classes directory and it was configured 
in my web.xml file:

web-app
   display-nameUpgrade Test/display-name
   session-timeout900/session-timeout
   servlet
   servlet-nameservUploadMedia/servlet-name
   servlet-classumJavaLib.servUploadMedia/servlet-class
   load-on-startup1/load-on-startup
   /servlet
   servlet
   servlet-nameCalendarServlet/servlet-name
   servlet-classcom.jsos.calendar.CalendarServlet/servlet-class
   init-param
   param-nameconfig/param-name
   param-value/sections/plcmt/students/config//param-value
   /init-param
   /servlet

   !-- Default directory Files --
   welcome-file-list
   welcome-fileindex.jsp/welcome-file
   welcome-fileintro.jsp/welcome-file
   welcome-fileindex.html/welcome-file
   welcome-fileindex.htm/welcome-file
   /welcome-file-list
/web-app

Does tomcat 4 look for servlets in a different directory in this new version ?

Emil Diego
Website Administrator
University of Miami School of Business



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.736 / Virus Database: 490 - Release Date: 8/9/2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.736 / Virus Database: 490 - Release Date: 8/9/2004
 

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



  



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


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.736 / Virus Database: 490 - Release Date: 8/9/2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.736 / Virus Database: 490 - Release Date: 8/9/2004
 

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



Re: Where do I place a servlet class

2004-08-20 Thread John Villar
did you restart tomcat or your context?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Where do I place a servlet class

2004-08-20 Thread Diego, Emil
Yes.  I restarted. 


Emil Diego
Website Administrator
University of Miami School of Business
305.284.5449


-Original Message-
From: John Villar [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 20, 2004 11:55 AM
To: Tomcat Users List
Subject: Re: Where do I place a servlet class

did you restart tomcat or your context?

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


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.736 / Virus Database: 490 - Release Date: 8/9/2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.736 / Virus Database: 490 - Release Date: 8/9/2004
 

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



RE: [tomcat] Re: Where do I place a servlet class

2004-08-20 Thread Ernesto Echeverría
One of the major differences between your actual version and the your
previous one has to do with disabling the invoker servlet.

I don't know if you've checked this before, but take a look at

http://www.ftponline.com/javapro/2002_11/online/servletsjsp_bkurniawan_11_08
_02/default_pf.aspx

Just to see if that's happening to you.


José Ernesto Echeverría
 

-Original Message-
From: John Villar [mailto:[EMAIL PROTECTED] 
Sent: Viernes, 20 de Agosto de 2004 09:14 a.m.
To: Tomcat Users List
Subject: [tomcat] Re: Where do I place a servlet class

You need to include yet another directive in your web.xml file called
servlet-mapping, search the web for it

Diego, Emil escribió:

 
I have upgraded my system from apache 3 and tomcat 3 and am now running
tomcat 4.1.27-13 and apache 2.0.49-4.  My webapp can't find a servlet after
the upgrade.  It's called servUploadMedia.  I had it in my classes directory
and it was configured in my web.xml file:

web-app
   display-nameUpgrade Test/display-name
   session-timeout900/session-timeout
   servlet
   servlet-nameservUploadMedia/servlet-name
   servlet-classumJavaLib.servUploadMedia/servlet-class
   load-on-startup1/load-on-startup
   /servlet
   servlet
   servlet-nameCalendarServlet/servlet-name

servlet-classcom.jsos.calendar.CalendarServlet/servlet-class
   init-param
   param-nameconfig/param-name

param-value/sections/plcmt/students/config//param-value
   /init-param
   /servlet

   !-- Default directory Files --
   welcome-file-list
   welcome-fileindex.jsp/welcome-file
   welcome-fileintro.jsp/welcome-file
   welcome-fileindex.html/welcome-file
   welcome-fileindex.htm/welcome-file
   /welcome-file-list
/web-app

Does tomcat 4 look for servlets in a different directory in this new
version ?

Emil Diego
Website Administrator
University of Miami School of Business



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.736 / Virus Database: 490 - Release Date: 8/9/2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.736 / Virus Database: 490 - Release Date: 8/9/2004
 

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



  



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



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



Re: Where do I place a servlet class

2004-08-20 Thread John Villar
well your configuration seems fine i remember Cicer0 posted 
recently a problem like yours search the archive for ExportSerials

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


RE: [tomcat] Re: Where do I place a servlet class

2004-08-20 Thread Diego, Emil
I saw that.  I've read a couple of negative things about enabling the invoker.  It 
seems it's less secure and stuff.  I figured it would be better to use explicit 
mapping, but cant get that to work.  I'll keep trying but if I cant get it working I 
guess I'll just enable the invoker. 


Emil Diego
Website Administrator
University of Miami School of Business
305.284.5449


-Original Message-
From: Ernesto Echeverría [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 20, 2004 12:01 PM
To: 'Tomcat Users List'
Subject: RE: [tomcat] Re: Where do I place a servlet class

One of the major differences between your actual version and the your previous one has 
to do with disabling the invoker servlet.

I don't know if you've checked this before, but take a look at

http://www.ftponline.com/javapro/2002_11/online/servletsjsp_bkurniawan_11_08
_02/default_pf.aspx

Just to see if that's happening to you.


José Ernesto Echeverría
 

-Original Message-
From: John Villar [mailto:[EMAIL PROTECTED]
Sent: Viernes, 20 de Agosto de 2004 09:14 a.m.
To: Tomcat Users List
Subject: [tomcat] Re: Where do I place a servlet class

You need to include yet another directive in your web.xml file called servlet-mapping, 
search the web for it

Diego, Emil escribió:

 
I have upgraded my system from apache 3 and tomcat 3 and am now running
tomcat 4.1.27-13 and apache 2.0.49-4.  My webapp can't find a servlet after the 
upgrade.  It's called servUploadMedia.  I had it in my classes directory and it was 
configured in my web.xml file:

web-app
   display-nameUpgrade Test/display-name
   session-timeout900/session-timeout
   servlet
   servlet-nameservUploadMedia/servlet-name
   servlet-classumJavaLib.servUploadMedia/servlet-class
   load-on-startup1/load-on-startup
   /servlet
   servlet
   servlet-nameCalendarServlet/servlet-name

servlet-classcom.jsos.calendar.CalendarServlet/servlet-class
   init-param
   param-nameconfig/param-name

param-value/sections/plcmt/students/config//param-value
   /init-param
   /servlet

   !-- Default directory Files --
   welcome-file-list
   welcome-fileindex.jsp/welcome-file
   welcome-fileintro.jsp/welcome-file
   welcome-fileindex.html/welcome-file
   welcome-fileindex.htm/welcome-file
   /welcome-file-list
/web-app

Does tomcat 4 look for servlets in a different directory in this new
version ?

Emil Diego
Website Administrator
University of Miami School of Business



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.736 / Virus Database: 490 - Release Date: 8/9/2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.736 / Virus Database: 490 - Release Date: 8/9/2004
 

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



  



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



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


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.736 / Virus Database: 490 - Release Date: 8/9/2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.736 / Virus Database: 490 - Release Date: 8/9/2004
 

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



Re: [tomcat] Re: Where do I place a servlet class

2004-08-20 Thread QM
On Fri, Aug 20, 2004 at 12:04:10PM -0400, Diego, Emil wrote:
: I saw that.  I've read a couple of negative things about enabling the invoker.
: It seems it's less secure and stuff.  I figured it would be better to use
: explicit mapping, but cant get that to work.  I'll keep trying but if I cant
: get it working I guess I'll just enable the invoker.

That should work as a short-term goal, but you'd do yourself a favor to
find out what's going on.  If the servlet mapping works through the
invoker then it must work through a manual mapping, as well.

I missed the earlier posts: what's the error in the Tomcat logs?

Did you recompile your webapp with the newer Tomcat JARs, etc.?

There's a brief upgrade guide on my website (brandxdev.net).  That
covers the 4 -5 upgrade but some of it is container-neutral.



-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



Re: [tomcat] Re: Where do I place a servlet class

2004-08-20 Thread John Villar
QM escribió:
On Fri, Aug 20, 2004 at 12:04:10PM -0400, Diego, Emil wrote:
: I saw that.  I've read a couple of negative things about enabling the invoker.
: It seems it's less secure and stuff.  I figured it would be better to use
: explicit mapping, but cant get that to work.  I'll keep trying but if I cant
: get it working I guess I'll just enable the invoker.
That should work as a short-term goal, but you'd do yourself a favor to
find out what's going on.  If the servlet mapping works through the
invoker then it must work through a manual mapping, as well.
I missed the earlier posts: what's the error in the Tomcat logs?
Did you recompile your webapp with the newer Tomcat JARs, etc.?
There's a brief upgrade guide on my website (brandxdev.net).  That
covers the 4 -5 upgrade but some of it is container-neutral.
 

Also, if everything gets wacky and you're desperate, delete everything 
under your work directory, on the tomcat root and see what happens 
it helps sometimes

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


Re: [tomcat] Re: Where do I place a servlet class

2004-08-20 Thread QM
On Fri, Aug 20, 2004 at 12:20:19PM -0400, John Villar wrote:
: Also, if everything gets wacky and you're desperate, delete everything 
: under your work directory, on the tomcat root and see what happens 
: it helps sometimes

No need for to wait for wacky -- I added a clean action to my Tomcat
scripts to do just this, aka

./tomcat_ctl stop clean start

Handy for testing, when you'd rather not use reloadable=true...

=)

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



RE: [tomcat] Re: Where do I place a servlet class

2004-08-20 Thread Ernesto Echeverría
Ok.

I don't like the invoker either.

I thought you were trying only to have things working as before, that's why
I pointed out that difference.

Starting from scratch, let's try to break the problem into smaller pieces.
Have you checked if the invocation works right without passing thru
Apache/mod_jk2? That is? Have you tried the

http://localhost:8080/route-to-servlet-dir/servlet/ServletName

Invocation directly and then what's the message you get from tomcat or logs,
etc.


José Ernesto Echeverría

 

-Original Message-
From: Diego, Emil [mailto:[EMAIL PROTECTED] 
Sent: Viernes, 20 de Agosto de 2004 10:04 a.m.
To: Tomcat Users List
Subject: RE: [tomcat] Re: Where do I place a servlet class

I saw that.  I've read a couple of negative things about enabling the
invoker.  It seems it's less secure and stuff.  I figured it would be better
to use explicit mapping, but cant get that to work.  I'll keep trying but if
I cant get it working I guess I'll just enable the invoker. 


Emil Diego
Website Administrator
University of Miami School of Business
305.284.5449


-Original Message-
From: Ernesto Echeverría [mailto:[EMAIL PROTECTED]
Sent: Friday, August 20, 2004 12:01 PM
To: 'Tomcat Users List'
Subject: RE: [tomcat] Re: Where do I place a servlet class

One of the major differences between your actual version and the your
previous one has to do with disabling the invoker servlet.

I don't know if you've checked this before, but take a look at

http://www.ftponline.com/javapro/2002_11/online/servletsjsp_bkurniawan_11_08
_02/default_pf.aspx

Just to see if that's happening to you.


José Ernesto Echeverría
 

-Original Message-
From: John Villar [mailto:[EMAIL PROTECTED]
Sent: Viernes, 20 de Agosto de 2004 09:14 a.m.
To: Tomcat Users List
Subject: [tomcat] Re: Where do I place a servlet class

You need to include yet another directive in your web.xml file called
servlet-mapping, search the web for it

Diego, Emil escribió:

 
I have upgraded my system from apache 3 and tomcat 3 and am now running
tomcat 4.1.27-13 and apache 2.0.49-4.  My webapp can't find a servlet after
the upgrade.  It's called servUploadMedia.  I had it in my classes directory
and it was configured in my web.xml file:

web-app
   display-nameUpgrade Test/display-name
   session-timeout900/session-timeout
   servlet
   servlet-nameservUploadMedia/servlet-name
   servlet-classumJavaLib.servUploadMedia/servlet-class
   load-on-startup1/load-on-startup
   /servlet
   servlet
   servlet-nameCalendarServlet/servlet-name

servlet-classcom.jsos.calendar.CalendarServlet/servlet-class
   init-param
   param-nameconfig/param-name

param-value/sections/plcmt/students/config//param-value
   /init-param
   /servlet

   !-- Default directory Files --
   welcome-file-list
   welcome-fileindex.jsp/welcome-file
   welcome-fileintro.jsp/welcome-file
   welcome-fileindex.html/welcome-file
   welcome-fileindex.htm/welcome-file
   /welcome-file-list
/web-app

Does tomcat 4 look for servlets in a different directory in this new
version ?

Emil Diego
Website Administrator
University of Miami School of Business



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.736 / Virus Database: 490 - Release Date: 8/9/2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.736 / Virus Database: 490 - Release Date: 8/9/2004
 

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



  



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



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


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.736 / Virus Database: 490 - Release Date: 8/9/2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.736 / Virus Database: 490 - Release Date: 8/9/2004
 

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



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



RE: Where do I place a servlet class

2004-08-20 Thread Shapira, Yoav

Hi,

I added the servlet mapping entry but it's still not working.
I have the class file in /dev_new/WEB-INF/classes/umJavaLib/.  Does the
class file need to go into a special directory of anything?

   servlet
servlet-nameservUploadMedia/servlet-name

servlet-classumJavaLib.servUploadMedia/servlet-class
load-on-startup1/load-on-startup
/servlet
servlet-mapping
servlet-nameservUploadMedia/servlet-name
url-
pattern/dev_new/servlet/umJavaLib.servUploadMedia/url-pattern
/servlet-mapping

First try to get it to work in tomcat-standalone.  It's the KISS
principle.

Do you realize what the above url-pattern means?  With it, you can
access your servlet at
http://yourhost:yourport/yourwebapp/dev_new/server/umJavaLib.servUploadM
edia.  A more typical url-pattern would just be
url-pattern/uploadMedia/url-pattern, and then you'd access your
servlet at http://yourhost:yourport/yourwebapp/uploadMedia.

If you're unclear on url-pattern and how it works, check out the Servlet
Specification itself for details and examples.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: [tomcat] Re: Where do I place a servlet class

2004-08-20 Thread Diego, Emil
I have a script that resets the web and apache servers, compiles the
webapp classes, and deletes the classes in the work directory.   


Emil Diego
Website Administrator
University of Miami School of Business
305.284.5449


-Original Message-
From: John Villar [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 20, 2004 12:20 PM
To: Tomcat Users List
Subject: Re: [tomcat] Re: Where do I place a servlet class

QM escribi?:

On Fri, Aug 20, 2004 at 12:04:10PM -0400, Diego, Emil wrote:
: I saw that.  I've read a couple of negative things about enabling the
invoker.
: It seems it's less secure and stuff.  I figured it would be better to

use
: explicit mapping, but cant get that to work.  I'll keep trying but if

I cant
: get it working I guess I'll just enable the invoker.

That should work as a short-term goal, but you'd do yourself a favor to

find out what's going on.  If the servlet mapping works through the 
invoker then it must work through a manual mapping, as well.

I missed the earlier posts: what's the error in the Tomcat logs?

Did you recompile your webapp with the newer Tomcat JARs, etc.?

There's a brief upgrade guide on my website (brandxdev.net).  That 
covers the 4 -5 upgrade but some of it is container-neutral.

  

Also, if everything gets wacky and you're desperate, delete everything
under your work directory, on the tomcat root and see what happens 
it helps sometimes

-
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: [tomcat] Re: Where do I place a servlet class

2004-08-20 Thread Diego, Emil
I don't have tomcat configured to work standalone.   


Emil Diego
Website Administrator
University of Miami School of Business
305.284.5449


-Original Message-
From: Ernesto Echeverría [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 20, 2004 12:23 PM
To: 'Tomcat Users List'
Subject: RE: [tomcat] Re: Where do I place a servlet class

Ok.

I don't like the invoker either.

I thought you were trying only to have things working as before, that's why I pointed 
out that difference.

Starting from scratch, let's try to break the problem into smaller pieces.
Have you checked if the invocation works right without passing thru Apache/mod_jk2? 
That is? Have you tried the

http://localhost:8080/route-to-servlet-dir/servlet/ServletName

Invocation directly and then what's the message you get from tomcat or logs, etc.


José Ernesto Echeverría

 

-Original Message-
From: Diego, Emil [mailto:[EMAIL PROTECTED]
Sent: Viernes, 20 de Agosto de 2004 10:04 a.m.
To: Tomcat Users List
Subject: RE: [tomcat] Re: Where do I place a servlet class

I saw that.  I've read a couple of negative things about enabling the invoker.  It 
seems it's less secure and stuff.  I figured it would be better to use explicit 
mapping, but cant get that to work.  I'll keep trying but if I cant get it working I 
guess I'll just enable the invoker. 


Emil Diego
Website Administrator
University of Miami School of Business
305.284.5449


-Original Message-
From: Ernesto Echeverría [mailto:[EMAIL PROTECTED]
Sent: Friday, August 20, 2004 12:01 PM
To: 'Tomcat Users List'
Subject: RE: [tomcat] Re: Where do I place a servlet class

One of the major differences between your actual version and the your previous one has 
to do with disabling the invoker servlet.

I don't know if you've checked this before, but take a look at

http://www.ftponline.com/javapro/2002_11/online/servletsjsp_bkurniawan_11_08
_02/default_pf.aspx

Just to see if that's happening to you.


José Ernesto Echeverría
 

-Original Message-
From: John Villar [mailto:[EMAIL PROTECTED]
Sent: Viernes, 20 de Agosto de 2004 09:14 a.m.
To: Tomcat Users List
Subject: [tomcat] Re: Where do I place a servlet class

You need to include yet another directive in your web.xml file called servlet-mapping, 
search the web for it

Diego, Emil escribió:

 
I have upgraded my system from apache 3 and tomcat 3 and am now running
tomcat 4.1.27-13 and apache 2.0.49-4.  My webapp can't find a servlet after the 
upgrade.  It's called servUploadMedia.  I had it in my classes directory and it was 
configured in my web.xml file:

web-app
   display-nameUpgrade Test/display-name
   session-timeout900/session-timeout
   servlet
   servlet-nameservUploadMedia/servlet-name
   servlet-classumJavaLib.servUploadMedia/servlet-class
   load-on-startup1/load-on-startup
   /servlet
   servlet
   servlet-nameCalendarServlet/servlet-name

servlet-classcom.jsos.calendar.CalendarServlet/servlet-class
   init-param
   param-nameconfig/param-name

param-value/sections/plcmt/students/config//param-value
   /init-param
   /servlet

   !-- Default directory Files --
   welcome-file-list
   welcome-fileindex.jsp/welcome-file
   welcome-fileintro.jsp/welcome-file
   welcome-fileindex.html/welcome-file
   welcome-fileindex.htm/welcome-file
   /welcome-file-list
/web-app

Does tomcat 4 look for servlets in a different directory in this new
version ?

Emil Diego
Website Administrator
University of Miami School of Business



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.736 / Virus Database: 490 - Release Date: 8/9/2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.736 / Virus Database: 490 - Release Date: 8/9/2004
 

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



  



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



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


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.736 / Virus Database: 490 - Release Date: 8/9/2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.736 / Virus Database: 490 - Release Date: 8/9/2004
 

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

Building mod_jk2 and pointers to where to modify it...

2004-08-18 Thread ohaya
Hi,

I am not getting anywhere with a problem that I'm having with trying to
access/retrieve SSL client certificate information with
Apache+Tomcat+mod_jk2, so I'm thinking that my only avenue for resolving
this problem may be to build mod_jk2 binary myself, possibly modifying
the code to add some additional information (e.g., dumping out what it
is getting from Apache).  

I built this system from Binaries for Apache, Tomcat, and mod_jk2, and
I'm wondering how difficult is this going to be?  I have Visual
Studio/C++, and have some experience with C/C++ programming.

It would be very helpful if someone could point me to what module to
look at to add this additional debug info.  What I would like to do is
maybe have mod_jk2 dump the information that it receives from Apache
into a file so that I can see whether or not the SSL-related
attributes/headers are being sent by Apache.

Thanks,
Jim

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



JK2 ISAPI in IIS6 - Where to put it?

2004-08-11 Thread Bjoern . Andersen
Hi TC-Users,
I'm using JK2-ISAPI 2.0.4 in a IIS6, communicating via AJP13 with the
Tomcat's. The /jkstatus - Page shows a lot nice info.

My question: With many web's running on one machine, where do I put the
filter / Jakarta-dir?

Each web needs it's own /Jakarta -Virtual dir, I suppose. And I tried to
configure the ISAPI-filter globally and per web. But no matter what I do,
the statuspage always shows info for that web (scroeboard) not for the
entire Server. I tried anonymous anf file for SHM, both seems to work, but
still each statuspage seems separated. I even managed to reconfigure the JK2
during runtime via JMX, but the JK's on the other web's do not seem to catch
that change.
Runtime-reconfigure via a change of workers2.properties do not seem to work
either.

--
Bjoern Andersen

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



Where is the jk2 documentation gone ?

2004-08-06 Thread Francois JEANMOUGIN
Hi everyone,

Sorry to bother you, but at the end of the page:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/ajp.html
There is a broken link to:
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/doc/

It is not that I need a so special configuration at the time, but I am lost
with a silly question. When to use Jk2 and when to use Jk1.2? Is it related
to the JSP spec version? Where can I find a simple doc for it without
downloading the whole source code?

Thanks for any tip.

François.


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



RE: Where is the jk2 documentation gone ?

2004-08-06 Thread Shapira, Yoav

Hi,
It's not a bother: thanks for reporting the broken link.  I've fixed it in CVS and the 
site will be updated during our next release.

For now, use the main JK documentation link (JK Documentation from the Reference 
section of the Tomcat 5 Docs home), or just bookmark 
http://jakarta.apache.org/tomcat/connectors-doc/jk2/index.html.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Francois JEANMOUGIN [mailto:[EMAIL PROTECTED]
Sent: Friday, August 06, 2004 5:59 AM
To: Tomcat Users List
Subject: Where is the jk2 documentation gone ?

Hi everyone,

Sorry to bother you, but at the end of the page:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/ajp.html
There is a broken link to:
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/doc/

It is not that I need a so special configuration at the time, but I am lost
with a silly question. When to use Jk2 and when to use Jk1.2? Is it related
to the JSP spec version? Where can I find a simple doc for it without
downloading the whole source code?

Thanks for any tip.

François.


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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: where to put config.xml

2004-07-26 Thread Shapira, Yoav
Hi,

Hi Saeed
I think this better that you don't put CATALINA_HOME in your
environment
variables, because TOMCAT recognizes that automatically (because this
same
as Tomcat installation dir), 

I'm actually going to mildly disagree on this.  Tomcat makes a
reasonable guess at CATALINA_HOME (just relative and up from the current
dir), which works for the default setup.  But it's not a bad idea to
explicitly specify this important configuration variable, and it's
essential if you move things around so that they're different from the
default setup.  It also allows for easy switching for those that run
multiple versions of tomcat.

Yoav Shapira

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



Re: where to put config.xml

2004-07-25 Thread Masood Reyhanei Hamedani

Hi Saeed
I think this better that you don't put CATALINA_HOME in your environment variables, 
because TOMCAT recognizes that automatically (because this same as Tomcat installation 
dir), plus you can put the JAVA_HOME directly in setclasspath.bat (in bin dir).
In installaton time you must indicate your JAVA_HOME.After that you must don't change 
your JAVA_HOME or create an environment variable for that.
 
By

Sayeed [EMAIL PROTECTED] wrote:
Dear Sir/Madam

I do not know much about the Question - so sorry sir/madam as i am new to
this thing.

I do have however question from you.

I start learning JSP and ohter J2EE tools recently.
I buy a book of Professional JSP 2nd Edition.

Sir i am facing a problem:

I dowload jakarta_tomcat 4.1.30.exe from the website.

I already do have jdk1.3 at my PC ( iam using win98 OS).

Now after installing jakarta_tomcat to a folder c\apache\tomcat,
I create two environment variables into my Autoexe.bat file as under :

set JAVA_HOME=C:\jdk1.3
set CATALINA_HOME=C:\APACHE\TOMCAT

Now when I Start Tomcat - a DOS base window is opened and remained active
for few seconds and then close automatically. Also i try Startup.bat file at
MS DOS promt, it shows some lines as follows:

C:\Apache\Tomcat\binstartup
Using CATALINA_BASE: C:\APACHE\TOMCAT
Using CATALINA_HOME: C:\APACHE\TOMCAT
Using CATALINA_TMPDIR: C:\APACHE\TOMCAT\temp
Using JAVA_HOME: C:\jdk1.3
C:\Apache\Tomcat\bin
And in the mid also a new DOS base window shows a name 'Java' opened for few
seconds and automatically closed.

Sir/Madam, whats the wrong with the tomcat? coz as per book instructions it
must shows a Catalina named window and remained active till I did not issue
a command Shutdown.

So please guide me what I should do in this connection in detail.

An early reply shall highly bhe appreicated.


Saeed
Programmer

- Original Message -
From: John Hill 
To: 'Tomcat Users List' 
Sent: Tuesday, July 20, 2004 4:38 PM
Subject: where to put config.xml


 Hi

 can anyone tell me where I should put the config.xml file for a web
 application. IF I put it under META-INF , tomcat doesnt seem to find it.
Does
 it need to be in a WAR file for this to occur ?


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



-
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!

where to put config.xml

2004-07-20 Thread John Hill
Hi

can anyone tell me where I should put the config.xml file for a web 
application. IF I put it under META-INF , tomcat doesnt seem to find it. Does 
it need to be in a WAR file for this to occur ?


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



Re: where to put config.xml

2004-07-20 Thread Sayeed
Dear Sir/Madam

I do not know much about the Question - so sorry sir/madam as i am new to
this thing.

I do have however question from you.

I start learning JSP and ohter J2EE tools recently.
I buy a book of Professional JSP 2nd Edition.

Sir i am facing a problem:

I dowload jakarta_tomcat 4.1.30.exe from the website.

I already do have jdk1.3 at my PC ( iam using win98 OS).

Now after installing jakarta_tomcat to a folder c\apache\tomcat,
I create two environment variables into my Autoexe.bat file as under :

set JAVA_HOME=C:\jdk1.3
set CATALINA_HOME=C:\APACHE\TOMCAT

 Now when I Start Tomcat - a DOS base window is opened and remained active
for few seconds and then close automatically. Also i try Startup.bat file at
MS DOS promt, it shows some lines as follows:

C:\Apache\Tomcat\binstartup
Using CATALINA_BASE:   C:\APACHE\TOMCAT
Using CATALINA_HOME:   C:\APACHE\TOMCAT
Using CATALINA_TMPDIR: C:\APACHE\TOMCAT\temp
Using JAVA_HOME:   C:\jdk1.3
C:\Apache\Tomcat\bin
And in the mid also a new DOS base window shows a name 'Java' opened for few
seconds and automatically closed.

Sir/Madam, whats the wrong with the tomcat? coz as per book instructions it
must shows a Catalina named window and remained active till I did not issue
a command Shutdown.

So please guide me what I should do in this connection in detail.

An early reply shall highly bhe appreicated.


Saeed
Programmer

- Original Message -
From: John Hill [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Tuesday, July 20, 2004 4:38 PM
Subject: where to put config.xml


 Hi

 can anyone tell me where I should put the config.xml file for a web
 application. IF I put it under META-INF , tomcat doesnt seem to find it.
Does
 it need to be in a WAR file for this to occur ?


 -
 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: where to put config.xml

2004-07-20 Thread Nicolas PEREZ

Return Receipt
   
 
Your  Re: where to put config.xml  
 
document:  
 
   
 
was received  Nicolas PEREZ/PAR/HD/Corp
 
by:
 
   
 
at:   20/07/2004 13:50:44  
 
   
 





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



Re: where to put config.xml

2004-07-20 Thread Schalk Neethling
You can find out more info on the exact cause of the error by looking at 
Tomcat's error/general log located at:
TOMCAT_HOME/logs/

Sayeed wrote:
Dear Sir/Madam
I do not know much about the Question - so sorry sir/madam as i am new to
this thing.
I do have however question from you.
I start learning JSP and ohter J2EE tools recently.
I buy a book of Professional JSP 2nd Edition.
Sir i am facing a problem:
I dowload jakarta_tomcat 4.1.30.exe from the website.
I already do have jdk1.3 at my PC ( iam using win98 OS).
Now after installing jakarta_tomcat to a folder c\apache\tomcat,
I create two environment variables into my Autoexe.bat file as under :
set JAVA_HOME=C:\jdk1.3
set CATALINA_HOME=C:\APACHE\TOMCAT
Now when I Start Tomcat - a DOS base window is opened and remained active
for few seconds and then close automatically. Also i try Startup.bat file at
MS DOS promt, it shows some lines as follows:
   C:\Apache\Tomcat\binstartup
   Using CATALINA_BASE:   C:\APACHE\TOMCAT
   Using CATALINA_HOME:   C:\APACHE\TOMCAT
   Using CATALINA_TMPDIR: C:\APACHE\TOMCAT\temp
   Using JAVA_HOME:   C:\jdk1.3
   C:\Apache\Tomcat\bin
And in the mid also a new DOS base window shows a name 'Java' opened for few
seconds and automatically closed.
Sir/Madam, whats the wrong with the tomcat? coz as per book instructions it
must shows a Catalina named window and remained active till I did not issue
a command Shutdown.
So please guide me what I should do in this connection in detail.
An early reply shall highly bhe appreicated.
Saeed
Programmer
- Original Message -
From: John Hill [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Tuesday, July 20, 2004 4:38 PM
Subject: where to put config.xml
 

Hi
can anyone tell me where I should put the config.xml file for a web
application. IF I put it under META-INF , tomcat doesnt seem to find it.
   

Does
 

it need to be in a WAR file for this to occur ?
-
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]
 

--
Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.co.za
This message contains information that is considered to be sensitive or confidential 
and may not be forwarded or disclosed to any other party without the permission of the 
sender. If you received this message in error, please notify me immediately so that I 
can correct and delete the original email. Thank you.

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


Re: where to put config.xml

2004-07-20 Thread Sayeed
there is nothing in Error/general Logs
?
what i can do and how i can find where is fault?
Saeed

- Original Message -
From: Schalk Neethling [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, July 20, 2004 5:01 PM
Subject: Re: where to put config.xml


 You can find out more info on the exact cause of the error by looking at
 Tomcat's error/general log located at:
 TOMCAT_HOME/logs/

 Sayeed wrote:

 Dear Sir/Madam
 
 I do not know much about the Question - so sorry sir/madam as i am new to
 this thing.
 
 I do have however question from you.
 
 I start learning JSP and ohter J2EE tools recently.
 I buy a book of Professional JSP 2nd Edition.
 
 Sir i am facing a problem:
 
 I dowload jakarta_tomcat 4.1.30.exe from the website.
 
 I already do have jdk1.3 at my PC ( iam using win98 OS).
 
 Now after installing jakarta_tomcat to a folder c\apache\tomcat,
 I create two environment variables into my Autoexe.bat file as under :
 
 set JAVA_HOME=C:\jdk1.3
 set CATALINA_HOME=C:\APACHE\TOMCAT
 
  Now when I Start Tomcat - a DOS base window is opened and remained
active
 for few seconds and then close automatically. Also i try Startup.bat file
at
 MS DOS promt, it shows some lines as follows:
 
 C:\Apache\Tomcat\binstartup
 Using CATALINA_BASE:   C:\APACHE\TOMCAT
 Using CATALINA_HOME:   C:\APACHE\TOMCAT
 Using CATALINA_TMPDIR: C:\APACHE\TOMCAT\temp
 Using JAVA_HOME:   C:\jdk1.3
 C:\Apache\Tomcat\bin
 And in the mid also a new DOS base window shows a name 'Java' opened for
few
 seconds and automatically closed.
 
 Sir/Madam, whats the wrong with the tomcat? coz as per book instructions
it
 must shows a Catalina named window and remained active till I did not
issue
 a command Shutdown.
 
 So please guide me what I should do in this connection in detail.
 
 An early reply shall highly bhe appreicated.
 
 
 Saeed
 Programmer
 
 - Original Message -
 From: John Hill [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Tuesday, July 20, 2004 4:38 PM
 Subject: where to put config.xml
 
 
 
 
 Hi
 
 can anyone tell me where I should put the config.xml file for a web
 application. IF I put it under META-INF , tomcat doesnt seem to find it.
 
 
 Does
 
 
 it need to be in a WAR file for this to occur ?
 
 
 -
 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]
 
 
 

 --
 Kind Regards
 Schalk Neethling
 Web Developer.Designer.Programmer.President
 Volume4.Development.Multimedia.Branding
 emotionalize.conceptualize.visualize.realize
 Tel: +27125468436
 Fax: +27125468436
 email:[EMAIL PROTECTED]
 web: www.volume4.co.za

 This message contains information that is considered to be sensitive or
confidential and may not be forwarded or disclosed to any other party
without the permission of the sender. If you received this message in error,
please notify me immediately so that I can correct and delete the original
email. 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]



Re: where to put config.xml

2004-07-20 Thread Nicolas PEREZ

Return Receipt
   
 
Your  Re: where to put config.xml  
 
document:  
 
   
 
was received  Nicolas PEREZ/PAR/HD/Corp
 
by:
 
   
 
at:   20/07/2004 14:29:49  
 
   
 





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



RE: where to put config.xml

2004-07-20 Thread Shapira, Yoav

Hi,
The META-INF/context.xml file is only consulted if inside a WAR.
Otherwise, put the config.xml file in the webapps directory itself (if
your autodeploy is on, which is the default), or whatever directory you
designate as the Host's appBase (tomcat4), or the conf/[engine
name]/[host name] directory (tomcat 5).

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: John Hill [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 20, 2004 7:39 AM
To: 'Tomcat Users List'
Subject: where to put config.xml

Hi

   can anyone tell me where I should put the config.xml file for a
web
application. IF I put it under META-INF , tomcat doesnt seem to find
it.
Does
it need to be in a WAR file for this to occur ?


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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Where is the Real JAVAHOME?

2004-07-16 Thread Aris Javier
Hello!

I'm confused... I installed j2sdk1.4.1 in my D drive..
D:\j2sdk1.4.1

But when i take a look at my C drive under program files..
there is C:\program files\java\j2re1.4.1

Both includes \lib and \bin folders... 

Which of those two directories is the JAVAHOME?

Thanks!

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



Vedr.: Where is the Real JAVAHOME?

2004-07-16 Thread Thomas Nybro Bolding
j2sdk is the development kit and contains a _private_ jre whereas the 
_public_ jre is installed in the default folder. JAVAHOME should point to 
j2sdk.

/Thomas




Aris Javier [EMAIL PROTECTED]
16-07-2004 09:58
Besvar venligst til Tomcat Users List

 
Til:Tomcat Users List [EMAIL PROTECTED]
cc: 
Vedr.:  Where is the Real JAVAHOME?



Hello!

I'm confused... I installed j2sdk1.4.1 in my D drive..
D:\j2sdk1.4.1

But when i take a look at my C drive under program files..
there is C:\program files\java\j2re1.4.1

Both includes \lib and \bin folders... 

Which of those two directories is the JAVAHOME?

Thanks!

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





FONT SIZE=1 FACE=Arial___
Vi goer opmaerksom paa, at denne e-mail kan indeholde fortrolig information. Hvis du 
ved en fejltagelse modtager e-mailen, beder vi dig venligst informere afsender om 
fejlen ved at bruge svar-funktionen. Samtidig beder vi dig slette e-mailen i dit 
system uden at videresende eller kopiere den.
Selv om e-mailen og ethvert vedhaeftet bilag efter vores overbevisning er fri for 
virus og andre fejl, som kan paavirke computeren eller it-systemet, hvori den modtages 
og laeses, aabnes den paa modtagerens eget ansvar. Vi paatager os ikke noget ansvar 
for tab og skade, som er opstaaet i forbindelse med at modtage og bruge e-mailen.
___
Please note that this message may contain confidential information. If you have 
received this message by mistake, please inform the sender of the mistake by sending a 
reply, then delete the message from your system without making, distributing or 
retaining any copies of it.
Although we believe that the message and any attachments are free from viruses and 
other errors that might affect the computer or IT system where it is received and 
read, the recipient opens the message at his or her own risk. We assume no 
responsibility for any loss or damage arising from the receipt or use of this message.
/FONT



Re: Where is the Real JAVAHOME?

2004-07-16 Thread Thilo Krawietz
Hello Aris,
j2sdk is the full featured Java Development Kit including javac 
compiler, java interpreter, jdb Debugger , rmic and so on.

j2re is the so called Java run time environment. This is like a somewhat 
slim JDK, which also provides you the Java interpreter, but NOT the 
compiler.

With both version you may run java applications, but you may compile 
source code only with the jre. Since Tomcat needs the ability to compile 
JSP pages from source, the j2sdk is the better choice, because otherwise 
you will receive a ClassDefNot FoundError, when you try to request a JSP 
pages.
Nevertheless, if you only run pre-compiled servlets and have no need for 
compile operation, jre may suffice also!

regards,
Thilo
Hello!
I'm confused... I installed j2sdk1.4.1 in my D drive..
D:\j2sdk1.4.1
But when i take a look at my C drive under program files..
there is C:\program files\java\j2re1.4.1
Both includes \lib and \bin folders... 

Which of those two directories is the JAVAHOME?
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]


Re: Where is the Real JAVAHOME?

2004-07-16 Thread Thilo Krawietz
sorry, i made an error:
of course you may compile source only with the j2sdk NOT with the jre!
s*** happens :-)
Hello!
I'm confused... I installed j2sdk1.4.1 in my D drive..
D:\j2sdk1.4.1
But when i take a look at my C drive under program files..
there is C:\program files\java\j2re1.4.1
Both includes \lib and \bin folders... 

Which of those two directories is the JAVAHOME?
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]


RE: Where is the Real JAVAHOME?

2004-07-16 Thread Sternbergh, Cornell
So, presumably, in the general case, JAVAHOME would be d:\j2sdk1.4.1,
because TomCat would find the compiler needed for JSPs.

In the particular case of an installation that was already compiled,
either j2sdk or j2re would work.

And just to add to it, consider what happens when you upgrade.  Every
reference; server, IDE, whatever; to drive:\..\jxxVersion has to be
changed, it takes a while, and if you miss one you're broken.

While we generally develop in 1.4.2, we sometimes have need to for
previous versions.  Further, it won't be too long until there's 1.4.3 or
1.5.  To reduce upgrade, and downgrade, difficulties, we use a generic
directory, c:\java, and all appropriate environment variables and IDE
settings, etc. refer to it.

We install j2sdk into it's default directory and add a file named
j2sdkWhateverVersion.bat.  The batch file deletes all files in c:\java
and copies it's own directory to c:\java.  So changing versions becomes:

C: \j2sdkWhateverVersion\j2sdkWhateverVersion.bat

(rather than use a standard named batch file, such as switchJava.bat, we
use one with the version name, so when we look in C:\java we see a file
with the current version name.)



-Original Message-
From: Thilo Krawietz [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 16, 2004 04:05
To: Tomcat Users List
Subject: Re: Where is the Real JAVAHOME?


sorry, i made an error:

of course you may compile source only with the j2sdk NOT with the jre!

s*** happens :-)

Hello!

I'm confused... I installed j2sdk1.4.1 in my D drive..
D:\j2sdk1.4.1

But when i take a look at my C drive under program files..
there is C:\program files\java\j2re1.4.1

Both includes \lib and \bin folders... 

Which of those two directories is the JAVAHOME?

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]


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



RE: NPE in ActionForm where it is not be possible

2004-07-14 Thread Shapira, Yoav

Hi,
Because Log is not Serializable, you can't put it in the session.  So
making it transient is fine.  I also saw your reasoning for making it
dynamic rather than static.

Tomcat will save and restore your sessions across server restarts by
default.  That includes session attributes that are Serializable.  If
the Form was in the session, it will be deserialized: this is not the
same process as reconstruction.  So if you choose to stick with this
transient modifier, you will need to check for the log being null before
every time you use it.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 13, 2004 6:26 PM
To: Tomcat Users List
Subject: RE: NPE in ActionForm where it is not be possible

QM mailto:[EMAIL PROTECTED] wrote:
 On Sat, Jul 10, 2004 at 12:31:21PM -0700, Richard Mixon (qwest)
wrote:
 The log variable is initialized when the Action form is
   instantiated, like so: public class ChartWizardForm extends
   ActionForm implements java.io.Serializable { private transient
 Log log =
 LogFactory.getLog(ChartWizardForm.class);
   ...

 Obviously I'm missing something pretty basic. Is Tomcat re-using a
 form instance across restarts? I've got pretty much default settings
 in Tomcat:

 I notice, you define/initialize the instance variable log at its
 declaration point.

 Humor me: what happens if you initialize log in the ctor?

 -QM

I've had to look at higher priorities for a couple of days :)

Thanks for the idea. I changed as follows:
...
// private transient Log log =
LogFactory.getLog(ChartWizardForm.class);
private transient Log log; // Logging instance for this class
...

public ChartWizardForm() {
showInactive = false;
altClassMeasOrder = false;
...
outputFmt=;
scaleFactor=;
log = LogFactory.getLog(ChartWizardForm.class); // -- ADDED
INITIALIZATION HERE
}
...

But, still get the NPE :(

I'm defininig the instance variable as transient because Tomcat
complains about saving sessions that contain a private instance
variable
(non-transient) of type Log. I was trying to get my sessions to persist
across restarts. Does that suggest anything?

Thank you again - Richard


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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: NPE in ActionForm where it is not be possible

2004-07-14 Thread Richard Mixon (qwest)
Yoav,

Wow, had not considered that. I'm going to sort of say this back to be
sure I understand though :)

So if we stop Tomcat then my session, with any stored attributes that
contain an ActionForm, will be serialized to persistent storage
(disk). Upon restart the sesson and its attributes are
deserialized(reconstituted so to speak). The CATCH is that for any
included ActionForms, standard object initialization does not occur -
either through static initializers or through the constructor. So I can
end up with a NPE when I reference the log instance variable.

OK, that definitely explains the problem. It is only after a restart
that this is occurring - consistently. So, how to fix this.

Ugh! I've got 127 classes that use this construct! The good news is that
the objects that are likely to be persisted to the session tend to be
either ActionForms or a limited number of domain objects - about 50 in
total. They mostly derive from common superclasses so I might get some
help by putting an inner class that wraps the Log type in the
superclass. But, I need access to the actual class name of the instance
so I can initialize the Log object with objectname.class.

Is there a more elegant way to do this? I know using AOP would offer
some much more elegant solutions, but do not think I'm ready to throw
this at a production system.

Any comments/ideas are welcome. And thanks again to Yoav for helping me
to see the light here.

 - Richard

Shapira, Yoav mailto:[EMAIL PROTECTED] wrote:
 Hi,
 Because Log is not Serializable, you can't put it in the session.  So
 making it transient is fine.  I also saw your reasoning for making it
 dynamic rather than static.

 Tomcat will save and restore your sessions across server restarts by
 default.  That includes session attributes that are Serializable.  If
 the Form was in the session, it will be deserialized: this is not the
 same process as reconstruction.  So if you choose to stick with this
 transient modifier, you will need to check for the log being null
 before
 every time you use it.

 Yoav Shapira
 Millennium Research Informatics


 -Original Message-
 From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, July 13, 2004 6:26 PM
 To: Tomcat Users List
 Subject: RE: NPE in ActionForm where it is not be possible

 QM mailto:[EMAIL PROTECTED] wrote:
 On Sat, Jul 10, 2004 at 12:31:21PM -0700, Richard Mixon (qwest)
 wrote:
 The log variable is initialized when the Action form is
   instantiated, like so: public class ChartWizardForm extends
   ActionForm implements java.io.Serializable { private
 transient Log log = LogFactory.getLog(ChartWizardForm.class);
   ...

 Obviously I'm missing something pretty basic. Is Tomcat re-using a
 form instance across restarts? I've got pretty much default
 settings in Tomcat:

 I notice, you define/initialize the instance variable log at its
 declaration point.

 Humor me: what happens if you initialize log in the ctor?

 -QM

 I've had to look at higher priorities for a couple of days :)

 Thanks for the idea. I changed as follows:
...
// private transient Log log =
 LogFactory.getLog(ChartWizardForm.class);
private transient Log log; // Logging instance for this class
 ...

public ChartWizardForm() {
showInactive = false;
altClassMeasOrder = false;
...
outputFmt=;
scaleFactor=;
log = LogFactory.getLog(ChartWizardForm.class); // -- ADDED
INITIALIZATION HERE }
...

 But, still get the NPE :(

 I'm defininig the instance variable as transient because Tomcat
 complains about saving sessions that contain a private instance
 variable (non-transient) of type Log. I was trying to get my
 sessions to persist across restarts. Does that suggest anything?

 Thank you again - Richard


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




 This e-mail, including any attachments, is a confidential business
 communication, and may contain information that is confidential,
 proprietary and/or privileged.  This e-mail is intended only for the
 individual(s) to whom it is addressed, and may not be saved, copied,
 printed, disclosed or used by anyone else.  If you are not the(an)
 intended recipient, please immediately delete this e-mail from your
 computer system and notify the sender.  Thank you.


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



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



RE: NPE in ActionForm where it is not be possible

2004-07-14 Thread Shapira, Yoav

Hi,
I just wanted to confirm your understanding is correct.  It's
unfortunate to discover this now, from your perspective, since you
already have many classes affected by this, but then again better late
than never ;)

I tend to agree about throwing AOP into a production system at this
point in time.

In production code I tend to use static loggers so this is not an issue
for me, and there are other workarounds of varying applicability, such
as checking for a null logger before using it (a tiny checkLogger method
in your superclass called by every method, or something like that: it's
slow and ugly, but it works and depending on other constraints you may
want this).

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 14, 2004 1:43 PM
To: Tomcat Users List
Subject: RE: NPE in ActionForm where it is not be possible

Yoav,

Wow, had not considered that. I'm going to sort of say this back to be
sure I understand though :)

So if we stop Tomcat then my session, with any stored attributes that
contain an ActionForm, will be serialized to persistent storage
(disk). Upon restart the sesson and its attributes are
deserialized(reconstituted so to speak). The CATCH is that for any
included ActionForms, standard object initialization does not occur -
either through static initializers or through the constructor. So I can
end up with a NPE when I reference the log instance variable.

OK, that definitely explains the problem. It is only after a restart
that this is occurring - consistently. So, how to fix this.

Ugh! I've got 127 classes that use this construct! The good news is
that
the objects that are likely to be persisted to the session tend to be
either ActionForms or a limited number of domain objects - about 50 in
total. They mostly derive from common superclasses so I might get some
help by putting an inner class that wraps the Log type in the
superclass. But, I need access to the actual class name of the instance
so I can initialize the Log object with objectname.class.

Is there a more elegant way to do this? I know using AOP would offer
some much more elegant solutions, but do not think I'm ready to throw
this at a production system.

Any comments/ideas are welcome. And thanks again to Yoav for helping me
to see the light here.

 - Richard

Shapira, Yoav mailto:[EMAIL PROTECTED] wrote:
 Hi,
 Because Log is not Serializable, you can't put it in the session.  So
 making it transient is fine.  I also saw your reasoning for making it
 dynamic rather than static.

 Tomcat will save and restore your sessions across server restarts by
 default.  That includes session attributes that are Serializable.  If
 the Form was in the session, it will be deserialized: this is not the
 same process as reconstruction.  So if you choose to stick with this
 transient modifier, you will need to check for the log being null
 before
 every time you use it.

 Yoav Shapira
 Millennium Research Informatics


 -Original Message-
 From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, July 13, 2004 6:26 PM
 To: Tomcat Users List
 Subject: RE: NPE in ActionForm where it is not be possible

 QM mailto:[EMAIL PROTECTED] wrote:
 On Sat, Jul 10, 2004 at 12:31:21PM -0700, Richard Mixon (qwest)
 wrote:
 The log variable is initialized when the Action form is
   instantiated, like so: public class ChartWizardForm extends
   ActionForm implements java.io.Serializable { private
 transient Log log = LogFactory.getLog(ChartWizardForm.class);
   ...

 Obviously I'm missing something pretty basic. Is Tomcat re-using a
 form instance across restarts? I've got pretty much default
 settings in Tomcat:

 I notice, you define/initialize the instance variable log at its
 declaration point.

 Humor me: what happens if you initialize log in the ctor?

 -QM

 I've had to look at higher priorities for a couple of days :)

 Thanks for the idea. I changed as follows:
...
// private transient Log log =
 LogFactory.getLog(ChartWizardForm.class);
private transient Log log; // Logging instance for this class
 ...

public ChartWizardForm() {
showInactive = false;
altClassMeasOrder = false;
...
outputFmt=;
scaleFactor=;
log = LogFactory.getLog(ChartWizardForm.class); // -- ADDED
INITIALIZATION HERE }
...

 But, still get the NPE :(

 I'm defininig the instance variable as transient because Tomcat
 complains about saving sessions that contain a private instance
 variable (non-transient) of type Log. I was trying to get my
 sessions to persist across restarts. Does that suggest anything?

 Thank you again - Richard



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




 This e-mail, including any attachments, is a confidential business
 communication

RE: NPE in ActionForm where it is not be possible

2004-07-14 Thread Richard Mixon (qwest)
Yoav - thanks for the confirmation. Its not that bad - 1) We do not
restart very often; 2) I've been wanting to clean up the logging in this
system for a while. This will provide that opportunity :) Peace -
Richard


Shapira, Yoav mailto:[EMAIL PROTECTED] wrote:
 Hi,
 I just wanted to confirm your understanding is correct.  It's
 unfortunate to discover this now, from your perspective, since you
 already have many classes affected by this, but then again better late
 than never ;)

 I tend to agree about throwing AOP into a production system at this
 point in time.

 In production code I tend to use static loggers so this is not an
 issue
 for me, and there are other workarounds of varying applicability, such
 as checking for a null logger before using it (a tiny checkLogger
 method
 in your superclass called by every method, or something like that:
 it's
 slow and ugly, but it works and depending on other constraints you may
 want this).

 Yoav Shapira
 Millennium Research Informatics


 -Original Message-
 From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, July 14, 2004 1:43 PM
 To: Tomcat Users List
 Subject: RE: NPE in ActionForm where it is not be possible

 Yoav,

 Wow, had not considered that. I'm going to sort of say this back to
 be sure I understand though :)

 So if we stop Tomcat then my session, with any stored attributes that
 contain an ActionForm, will be serialized to persistent storage
 (disk). Upon restart the sesson and its attributes are
 deserialized(reconstituted so to speak). The CATCH is that for any
 included ActionForms, standard object initialization does not
 occur - either through static initializers or through the
 constructor. So I can end up with a NPE when I reference the log
 instance variable.

 OK, that definitely explains the problem. It is only after a restart
 that this is occurring - consistently. So, how to fix this.

 Ugh! I've got 127 classes that use this construct! The good news is
 that the objects that are likely to be persisted to the session tend
 to be either ActionForms or a limited number of domain objects -
 about 50 in total. They mostly derive from common superclasses so I
 might get some help by putting an inner class that wraps the Log
 type in the superclass. But, I need access to the actual class name
 of the instance so I can initialize the Log object with
 objectname.class.

 Is there a more elegant way to do this? I know using AOP would offer
 some much more elegant solutions, but do not think I'm ready to
 throw this at a production system.

 Any comments/ideas are welcome. And thanks again to Yoav for helping
 me to see the light here.

 - Richard

 Shapira, Yoav mailto:[EMAIL PROTECTED] wrote:
 Hi,
 Because Log is not Serializable, you can't put it in the session.
 So making it transient is fine.  I also saw your reasoning for
 making it dynamic rather than static.

 Tomcat will save and restore your sessions across server restarts by
 default.  That includes session attributes that are Serializable.
 If the Form was in the session, it will be deserialized: this is
 not the same process as reconstruction.  So if you choose to stick
 with this transient modifier, you will need to check for the log
 being null before every time you use it.

 Yoav Shapira
 Millennium Research Informatics


 -Original Message-
 From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, July 13, 2004 6:26 PM
 To: Tomcat Users List
 Subject: RE: NPE in ActionForm where it is not be possible

 QM mailto:[EMAIL PROTECTED] wrote:
 On Sat, Jul 10, 2004 at 12:31:21PM -0700, Richard Mixon (qwest)
 wrote:
 The log variable is initialized when the Action form is
   instantiated, like so: public class ChartWizardForm extends
   ActionForm implements java.io.Serializable { private
 transient Log log = LogFactory.getLog(ChartWizardForm.class);
 ...

 Obviously I'm missing something pretty basic. Is Tomcat re-using
 a form instance across restarts? I've got pretty much default
 settings in Tomcat:

 I notice, you define/initialize the instance variable log at
 its declaration point.

 Humor me: what happens if you initialize log in the ctor?

 -QM

 I've had to look at higher priorities for a couple of days :)

 Thanks for the idea. I changed as follows:
...
// private transient Log log =
 LogFactory.getLog(ChartWizardForm.class);
private transient Log log; // Logging instance for this class
 ...

public ChartWizardForm() {
showInactive = false;
altClassMeasOrder = false;
...
outputFmt=;
scaleFactor=;
log = LogFactory.getLog(ChartWizardForm.class); // --
ADDEDINITIALIZATION HERE } ...

 But, still get the NPE :(

 I'm defininig the instance variable as transient because Tomcat
 complains about saving sessions that contain a private instance
 variable (non-transient) of type Log. I was trying to get my
 sessions to persist across restarts. Does

RE: NPE in ActionForm where it is not be possible

2004-07-13 Thread Richard Mixon (qwest)
QM mailto:[EMAIL PROTECTED] wrote:
 On Sat, Jul 10, 2004 at 12:31:21PM -0700, Richard Mixon (qwest) wrote:
 The log variable is initialized when the Action form is
   instantiated, like so: public class ChartWizardForm extends
   ActionForm implements java.io.Serializable { private transient
 Log log =
 LogFactory.getLog(ChartWizardForm.class);
   ...

 Obviously I'm missing something pretty basic. Is Tomcat re-using a
 form instance across restarts? I've got pretty much default settings
 in Tomcat:

 I notice, you define/initialize the instance variable log at its
 declaration point.

 Humor me: what happens if you initialize log in the ctor?

 -QM

I've had to look at higher priorities for a couple of days :)

Thanks for the idea. I changed as follows:
...
// private transient Log log =
LogFactory.getLog(ChartWizardForm.class);
private transient Log log; // Logging instance for this class
...

public ChartWizardForm() {
showInactive = false;
altClassMeasOrder = false;
...
outputFmt=;
scaleFactor=;
log = LogFactory.getLog(ChartWizardForm.class); // -- ADDED
INITIALIZATION HERE
}
...

But, still get the NPE :(

I'm defininig the instance variable as transient because Tomcat
complains about saving sessions that contain a private instance variable
(non-transient) of type Log. I was trying to get my sessions to persist
across restarts. Does that suggest anything?

Thank you again - Richard


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



RE: NPE in ActionForm where it is not be possible

2004-07-13 Thread Richard Mixon (qwest)
Craig Berry mailto:[EMAIL PROTECTED] wrote:
 From:QM [mailto:[EMAIL PROTECTED]

 I notice, you define/initialize the instance variable log at its
 declaration point.

 Humor me: what happens if you initialize log in the ctor?

 Or for that matter, why not make the log member static?  There's no
 harm in one log instance being shared by multiple objects.

Craig, I am not making the member static because that would cause me to
lose track of what thread the message is comming from. E.G. currently my
logging containst the thread id, like follows:
  06:59:39,869  INFO [TP-Processor8] ActionFilter:173 - Handling request
URI: '/stars/HomePage.do', user='jpsdorg', host='64.216.181.157'
  06:59:39,917  INFO [TP-Processor8] ActionFilter:413 - Handled  request
URI: '/stars/HomePage.do', user='jpsdorg', host='64.216.181.157'
  06:59:56,006  INFO [TP-Processor6] ActionFilter:173 - Handling request
URI: '/stars/config/PoStudentAction.do', user='jpsdorg',
host='64.216.181.157'

Yeah, it makes the message that much longer, but lets me figure out
which messages belong to which requests.

Thanks - Richard


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



Re: NPE in ActionForm where it is not be possible

2004-07-11 Thread QM
On Sat, Jul 10, 2004 at 12:31:21PM -0700, Richard Mixon (qwest) wrote:
: The log variable is initialized when the Action form is instantiated,
: like so:
:   public class ChartWizardForm extends ActionForm implements
: java.io.Serializable {
:   private transient Log log =
: LogFactory.getLog(ChartWizardForm.class);
:   ...
: 
: Obviously I'm missing something pretty basic. Is Tomcat re-using a form
: instance across restarts? I've got pretty much default settings in
: Tomcat:

I notice, you define/initialize the instance variable log at its
declaration point.

Humor me: what happens if you initialize log in the ctor?

-QM


-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



RE: NPE in ActionForm where it is not be possible

2004-07-11 Thread Craig Berry
 From: QM [mailto:[EMAIL PROTECTED]

 I notice, you define/initialize the instance variable log at its
 declaration point.

 Humor me: what happens if you initialize log in the ctor?

Or for that matter, why not make the log member static?  There's no harm in one log 
instance being shared by multiple objects.



NPE in ActionForm where it is not be possible

2004-07-10 Thread Richard Mixon (qwest)
I am getting a NullPointerException in an action form that should
theoretically not be possible :(
Any ideas/help/suggestions are appreciated. Obviously it is possible
:).

I happens when I'm testing. I find a problem, leave my browser up, then
stop/start Tomcat. I select a home page link from the page that is
still displayed - its simply an action wrapped simple JSP page with no
dynamic data that serves as  a central bulletin board for my users.
After that is displayed, I go back to the page that I am developing on.
Boom! I get the NPE in the middle of a getter method on the action form.

Here is the method - the NPE is flagged at the line if
(log.isDebugEnabled()) {.
...
public String getMeasParmsId() {
if (log.isDebugEnabled()) {
log.debug(getMeasParmsId()= + measParmsId);
}
return measParmsId;
}
...

The log variable is initialized when the Action form is instantiated,
like so:
  public class ChartWizardForm extends ActionForm implements
java.io.Serializable {
  private transient Log log =
LogFactory.getLog(ChartWizardForm.class);
  ...

Obviously I'm missing something pretty basic. Is Tomcat re-using a form
instance across restarts? I've got pretty much default settings in
Tomcat:


Here is the exception stack trace:
2004-07-10 12:21:00 StandardWrapperValve[action]: Servlet.service() for
servlet action threw exception
java.lang.NullPointerException
at
com.ltoj.webapp.form.ChartWizardForm.getMeasParmsId(ChartWizardForm.java
:137)
at
com.ltoj.webapp.action.AdminChartWizardAction.stepMeasParms(AdminChartWi
zardAction.java:88)
at
com.ltoj.webapp.action.AdminChartWizardAction.unspecified(AdminChartWiza
rdAction.java:66)
at
org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.j
ava:260)
at
com.ltoj.webapp.action.BaseAction.execute(BaseAction.java:162)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestPr
ocessor.java:484)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
274)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:284)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:204)
at
com.atlassian.util.profiling.filters.ProfilingFilter.doFilter(ProfilingF
ilter.java:132)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:233)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:204)
at
com.ltoj.webapp.filter.BreadCrumbFilter.doFilter(BreadCrumbFilter.java:9
4)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:233)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:204)
at
com.ltoj.webapp.filter.ActionFilter.doFilter(ActionFilter.java:372)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:233)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:204)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:257)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:151)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
67)
at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardCon
textValve.java:245)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:199)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:151)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator
Base.java:587)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:149)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
67)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:184)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:151)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:164)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:149)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:578
)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:149)
at

RE: tomcat 5, web.xml, where should it be located?

2004-07-06 Thread David . Pawson

you'll have to edit the existing web.xml file (or ceate a 
new one) in ROOT/WEB-INF directory.

Thanks for that. 

Finding documentation on the file contents
is not exactly easy. 
  Nice to know where it should be though :-)



regards DaveP

** snip here **

-- 
DISCLAIMER: 

NOTICE: The information contained in this email and any attachments is 
confidential and may be privileged. If you are not the intended 
recipient you should not use, disclose, distribute or copy any of the 
content of it or of any attachment; you are requested to notify the 
sender immediately of your receipt of the email and then to delete it 
and any attachments from your system. 

RNIB endeavours to ensure that emails and any attachments generated by 
its staff are free from viruses or other contaminants. However, it 
cannot accept any responsibility for any  such which are transmitted.
We therefore recommend you scan all attachments. 

Please note that the statements and views expressed in this email and 
any attachments are those of the author and do not necessarily represent 
those of RNIB. 

RNIB Registered Charity Number: 226227 

Website: http://www.rnib.org.uk 

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



Re: tomcat 5, web.xml, where should it be located?

2004-07-06 Thread QM
On Tue, Jul 06, 2004 at 08:10:55AM +0100, [EMAIL PROTECTED] wrote:
: Finding documentation on the file contents
: is not exactly easy. 

Try the servlet spec -- you can download it from http://java.sun.com

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



tomcat 5, web.xml, where should it be located?

2004-07-05 Thread David . Pawson
web.xml, valid to 
http://java.sun.com/dtd/web-app_2_3.dtd;

Should it be located in 
${catalina.home}\conf\Catalina\localhost
or 
${catalina.home}/webapps/ROOT 

for a servlet deployed at /ROOT/WEB-INF/classes
with a single class?


TIA
Regards DaveP.

 snip here *

-- 
DISCLAIMER: 

NOTICE: The information contained in this email and any attachments is 
confidential and may be privileged. If you are not the intended 
recipient you should not use, disclose, distribute or copy any of the 
content of it or of any attachment; you are requested to notify the 
sender immediately of your receipt of the email and then to delete it 
and any attachments from your system. 

RNIB endeavours to ensure that emails and any attachments generated by 
its staff are free from viruses or other contaminants. However, it 
cannot accept any responsibility for any  such which are transmitted.
We therefore recommend you scan all attachments. 

Please note that the statements and views expressed in this email and 
any attachments are those of the author and do not necessarily represent 
those of RNIB. 

RNIB Registered Charity Number: 226227 

Website: http://www.rnib.org.uk 

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



Re: tomcat 5, web.xml, where should it be located?

2004-07-05 Thread Niaz Habib
you'll have to edit the existing web.xml file (or ceate a new one) in
ROOT/WEB-INF directory.

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



Where do the Context's go in TC5...

2004-06-27 Thread Jan Behrens
Hi List,

I have been using TC4 for some time and decided to switch to 5.0.24 when I
started working on a new project. Anyhow, I was just going to set up my JDBC
pool in Tomcat when I remembered reading that all with TC5 you shouldn't put
any context related stuff in the server.xml (see:
tomcat-docs/config/context.html). This is were I got confused because the
how-to on setting up JDBC for TC5 talks about editing the relevant context
in server.xml. To increase my misery, I discovered that the logger (for my
context) - that I did set up via the admin-tool - was saved in
{catalina_home}\conf\Catalina\localhost\myapp.xml and works fine BUT is
(after a restart) not to be seen anywhere in the admin-tool

I guess my general question is, where do I specify my JDBC pool and
everything else for my context? server.xml or myapp.xml?

TIA Jan


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



<    1   2   3   4   5   6   7   8   9   10   >