Re: Cannot use bean from jsp, but servlet ok. I'm dying!

2002-07-11 Thread TMotte


seems like a name conflict - both the class and the variable are named
FormBean.  i would suggest using
  id=myFormBean
and
  %=myFormBean.getUserName()%


   
 
  eric   
 
  edahnke@earthli To:  
[EMAIL PROTECTED]
  nk.net  cc: 
 
   Subject: Cannot use bean from jsp, but 
servlet ok. I'm dying!
  07/11/2002 11:43 
 
  AM   
 
  Please respond   
 
  to Tomcat Users 
 
  List
 
   
 
   
 




Help. Absolutely stuck. Tomcat cannot find my bean classes no matter what
when called from jsp pages. From within servlets no problem.

Here is the jsp
---
%@ include file=pub_hdr.html %
jsp:usebean id=FormBean class=beans.FormBean scope=request /
form
input type=text name=userName value=% =FormBean.getUserName() %
%= FormBean.getErrorMsg(userName) %
/form
%@ include file=pub_ftr.html %

Here is the bean

package beans;
import java.util.*;
import java.io.Serializable;
public class FormBean implements Serializable {
  public String userName;
  public FormBean() {}

  public String getUserName() {
return this.userName;
  }
  public void setUserName(String uname) {
this.userName = uname;
  }
}

NO MATTER WHAT, as soon as I access the jsp page. This error comes up.
Generated servlet error: C:\jwsdp-1_0\work\Standard
Engine\localhost\messagesmith\en\users$jsp.java:126: Undefined variable or
class name: FormBean out.print( FormBean.getUserName() );

It certainly seems that TC cannot find the FormBean class which lives here:
C:\jwsdp-1_0\webapps\project\WEB-INF\classes\beans.
I've changed that scope attribute to application or page, but it doesn't
change.
With TC3.x I had to do some configuration in the conf/server.xml file, but
this doesn't seem necessary w/ TC4. All the same I've adding the following
context to the server.xml, but it doesn't help.
Context path=/project
  docBase=webapps/project
  debug=0
  reloadable=true /

Anyone have any ideas? It is killing me. Again, I can instantiate the
FormBean class from within servlets, but not from JSP.

Env:

Win2k Server, jdk1.4.0_01, TC4.0
Classpath=.;C:\jwsdp-1_0\common\lib\servlet.jar;C:
\jwsdp-1_0\webapps\project
\WEB-INF\classes;C:\jfreechart-0.9.1\jars\jcommon-0.6.3.jar;C:
\jfreechart-0.
9.1\jars\jfreechart-0.9.1.jar;
TOMCAT_HOME=C:\jwsdp-1_0
CATALINA_HOME=C:\jwsdp-1_0
JAVA_HOME=C:\j2sdk1.4.0_01






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




Re: Cannot use bean from jsp, but servlet ok. I'm dying!

2002-07-11 Thread TMotte


You could try replacing the usebean tag with a scriptlet and see what that
does...
%
  FormBean Bean=new FormBean();
%
You would also need an import tag before this to import your package. I
forget that syntax but you can look it up.


Another suggestion... use the jspc compiler to generate an actual java
source file from the jsp, then read that source.

hth



   
 
  eric   
 
  edahnke@earthli To:  Tomcat Users List 
[EMAIL PROTECTED]
  nk.net  cc: 
 
   Subject: Re: Cannot use bean from jsp, 
but servlet ok. I'm dying!
  07/11/2002 12:55 
 
  PM   
 
  Please respond   
 
  to Tomcat Users 
 
  List
 
   
 
   
 




Thank you much. I've tried all your suggestions. The problem still
persists.

How does the TC4 jsp know to find my classes/packages at
webapps\project\WEB-INF\classes? It just knows I suppose, but it seems that
this is the problem judging from the error message. The class is there. It
compiles. And I can use this class from a servlet. Just not from JSP pages.

Generated servlet error:
C:\jwsdp-1_0\work\Standard
Engine\localhost\messagesmith\en\users$jsp.java:110: Undefined variable or
class name: Bean
out.print( Bean.getUserName() );


Regards - Eric

- Original Message -
From: Eddie Bush [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, July 11, 2002 1:07 PM
Subject: Re: Cannot use bean from jsp, but servlet ok. I'm dying!


 Ah - good eyes.  That's probably the problem.

 [EMAIL PROTECTED] wrote:

 seems like a name conflict - both the class and the variable are named
 FormBean.  i would suggest using
   id=myFormBean
 and
   %=myFormBean.getUserName()%
 



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



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






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




RE: Tomcat, Linux and new JDK

2002-07-10 Thread TMotte


Not to provoke you further : ) but I thought Linux didn't have threads, and
that's why they show up as processes - they are processes.

However I think it was also the case that the memory used is shared, so if
you show twelve java processes using 64MB apiece, it's really only 64MB
being used.

Would be thrilled to hear a more authoritative answer however.



   
 
  Sexton, George 
 
  gsexton@mhsoftw To:  Tomcat Users List 
[EMAIL PROTECTED]
  are.com cc: 
 
   Subject: RE: Tomcat, Linux and new JDK  
 
  07/10/2002 06:32 
 
  PM   
 
  Please respond   
 
  to Tomcat Users 
 
  List
 
   
 
   
 




You really need to understand that it's not showing processes, but THREADS

Let me repeat this for all those using Linux:

THREADS IN LINUX SHOW UP AS PROCESSES WHEN YOU RUN PS.

run

px -xfa

and you will see a very nice line chart that shows all of the THREADS being
a child of the main process.

If this totally freaks you out, switch to green threads.

George Sexton
MH Software, Inc.
Voice: 303 438 9585
http://www.mhsoftware.com


-Original Message-
From: Wick Swain [mailto:[EMAIL PROTECTED]]
Sent: 10 July, 2002 2:08 PM
To: Tomcat Users List
Subject: Tomcat, Linux and new JDK


Is anyone out there successfully using Tomcat with JDK1.3 or JDK1.4 on a
linux box?

I have JDK1.2.2 working fine, but when I upgrade to JDK1.3 or JDK1.4 Tomcat
starts spewing out processes and chews up all my memory (as seen by running
ps -ef | grep java command), so I'm wondering if anyone is using this
combination successfully.  Thanks for any input.

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


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






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




Re: R: HELP! iSaSiLk 3.04 and Tomcat4

2002-07-01 Thread TMotte


Sorry, I'm the one who sent you down this trail, but am at a loss for
ideas. don't recall having any such problems.

You might scan the reference guide, it's extremely detailed:
http://java.sun.com/j2se/1.4/docs/guide/security/jsse/JSSERefGuide.html

This mentions some of the stuff about setting system properties to make
HttpsURLConnection happy and so on...

There's also a section in there where you can turn on debugging and get
more info from JSSE about what it's doing:
http://java.sun.com/j2se/1.4/docs/guide/security/jsse/JSSERefGuide.html#




   
 
  Luca Ventura   
 
  luca_vent@virgi To:  Tomcat Users List 
[EMAIL PROTECTED],   
  lio.it  [EMAIL PROTECTED]  
 
   cc: 
 
  07/01/2002 03:17 Subject: R: HELP! iSaSiLk 3.04 and 
Tomcat4   
  AM   
 
   
 
   
 




Thanks a lot for your reply

I followed your suggestions and I used JSSE integrated in JDK1.4anyway
now I have a problem with it

After installing JDK 1.4 I wrote the following Java code to open HTTPS
connections:


  URL myurl = new URL(https://jcewww.iaik.at/;);
  HttpsURLConnection con = (HttpsURLConnection)myurl.openConnection();
  InputStream ins = con.getInputStream();
  InputStreamReader isr=new InputStreamReader(ins);
  BufferedReader in =new BufferedReader(isr);


 String inputLine;

 while ((inputLine = in.readLine()) != null)
 System.out.println(inputLine);

 in.close();


At statement  InputStream ins = con.getInputStream(); I receive this
exception:

javax.net.ssl.SSLHandshakeException: Could not find trusted certificate

If as URL I insert www.verisign.com all works correctly. I tried to set a
my
HostNameVerifier class for the HttpsURLConnection object. It is something
like this:

class MyVerif implements HostnameVerifier
{
public boolean verify(String hostname, SSLSession session)
{
   return true;
}
 }


The verify process returns always true in any caseI thought that this
trick let me
to avoid this type of error but I was wrong, in fact inserting the URL
https://jcewww.iaik.at/;
I receive the same error :-(


I tried to install IAIK provider and iSaSiLK APIs and all works fine with
url https://jcewww.iaik.at/;
too!! How come? It seems that IAIK provider doesn't check if there is a
trusted certificate available


How can I avoid the javax.net.ssl.SSLHandshakeException using only JDK
1.4??

I hope you or someone else can help me


Thanks,

Luca

-Messaggio originale-
Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Inviato: venerdi 28 giugno 2002 18.19
A: Tomcat Users List
Oggetto: Re: HELP! iSaSiLk 3.04 and Tomcat4



I remember using issasilk a couple years ago... I barely recall there being
some system property that you're supposed to set so that it uses your
particular SSL implementation. I think somehow that's not getting set or
somebody's resetting it after you... hth.

However the thing is, you can get a great SSL implementation straight from
sun nowadays:http://java.sun.com/products/jsse/. The only reason I ever
used issasilk was because my coworkers were adamantly opposed to upgrading
to jdk 1.2 (fud), which was required for Sun's SSL. JSSE was better behaved
(issasilk would always throw an exception at the end of the stream or
something) and of course free. JSSE is now included in JDK 1.4, and is I
think included in some of the tomcat distributions.

But hats off to those Austrian folks for making java SSL inexpensive while
the competition was gouging people for upwards of $20K

(note - It's probably not necessary to post to both tomcat-dev and users
for this sort of thing)





  Luca Ventura
  ventural@libero To:  tomcat-user
[EMAIL PROTECTED]
  .it cc:
   Subject: HELP! iSaSiLk 3.04
and Tomcat4
  06/28/2002 03:35
  AM
  Please respond
  to Tomcat Users
  List







Hello 

Re: dynamic VM parameters

2002-07-01 Thread TMotte


check out the CATALINA_OPTS environment variable dude.



   
 
  Peake, Chris   
 
  CHRIS.PEAKE@ca. To:  [EMAIL PROTECTED] 
 
  com cc: 
 
   Subject: dynamic VM parameters  
 
  07/01/2002 04:05 
 
  PM   
 
  Please respond   
 
  to Tomcat Users 
 
  List
 
   
 
   
 




I have a specific need to supply my servlet application with a dynamic
'windows' platform environment variable.
I want to use the -Dmy.variable=%somevariable% and have my servlet be able
to query the System.getProperty(my.variable');

I have tried to do this in catalina.bat  and put this -d option on 'all' of
the possible startup statements.
I don't seem to capture it in my servlet though.

Other info:
why- because I am dependent on a 3rd party product that relies on this env
variable.  (and it could change)
I am not Tomcat literate at all.
Currenly running under JBuilder and if I use the VM parameters on the run
option, it works.
Eventually, it will be started with Tomcat.exe though.
I'm guessing that catalina.bat gets called by the exe.  Is that true?

thanks,
 chris




Chris Peake








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




Repost: Java 1.4 io classes

2002-06-25 Thread TMotte

Okay, I'll give this question one more shot..., then I'll assume the answer
is No.

I am wondering if Tomcat soon will make (or already has made) use of new io
classes in Java 1.4 such as java.nio.channels.SelectableChannel? Supposedly
all this gives you non-blocking i/o that will be much more scalable than
old thread-oriented blocking i/o, but I dunno if it's truly applicable to
servlets. Can anybody shed some light on this?



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




Java 1.4 io classes

2002-06-20 Thread TMotte


I am wondering if Tomcat soon will make (or already has made) use of new io
classes in Java 1.4 such as java.nio.channels.SelectableChannel? Supposedly
all this gives you non-blocking i/o that will be much more scalable than
old thread-oriented blocking i/o, but I dunno if it's truly applicable to
servlets. Can anybody shed some light on this?


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




RE: A performance issue about Apache/Tomcat on NT.

2002-06-14 Thread TMotte


Is it possible that the problem could be in your servlet/jsp application
code, not in tomcat/apache/nt? What does the app do?



   
 
  Bing Zhang   
 
  BZhang@7thonlin To:  'Tomcat Users List' 
[EMAIL PROTECTED]
  e.com   cc: 
 
   Subject: RE: A performance issue about 
Apache/Tomcat on NT.  
  06/14/2002 12:15 
 
  PM   
 
  Please respond   
 
  to Tomcat Users 
 
  List
 
   
 
   
 





Oh, I wanted to add one thing:  when I started the Tomcat, I added
-Xmx256m into TOMCAT_OPTS, so that the JVM running Tomcat can take upto
256M of memory if needed.

Does this have something to do with my performance issue that Apache\Tomcat
is getting slower after running for 10-20 days ??

Bing

-Original Message-
From: Bing Zhang [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 14, 2002 11:46 AM
To: 'Tomcat Users List'
Subject: A performance issue about Apache/Tomcat on NT.


Hi all:

 I'm new to this email list, and my question may appear old or
innocent to you.  Anyway, here is my question.

 I have an envoronment with Apache 1.2/Tomcat 3.1 running on
NT4.0
servers.  Yes, it's kinda old.  The behavior is after the web/app servers
were on for a period of time, let's say, 20 days,  it's getting slower.
And now,  the time for it's getting slower becomes shorter, it's like 3
days.

 I don't know if it's something special for Apache/Tomcat on NT
server box or it even happens on Unix flavors.   Is it due to memory leak,
or some other problems/bugs of Apache/Tomcat, JVM , NT ??   I need help.

 I hope someone can point out to me where the problem(s) is,
and
what's the best solution.   Maybe all the related bugs have been fixed in
more recent releases of Tomcat/Apache/NT SPs ??

 Any info would be helpful.  Thanks.

 Bing



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

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






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




Re: Tomcat 4.1/4.0 manager application

2002-06-14 Thread TMotte


My understanding is that everything you see from Install is a feature, not
a bug. It's a bit strange, but that's what it's spec'd out to do.

The difference with Deploy is that it installs the app permanently.

Not sure about how to upload the file through the manager web application.
I know you can do it (as well as Install, Reload etc) in 4.1 via one of the
new Ant taskdefs.. you might check those out.



   
  
  Sam Ewing
  
  java_developer99 To:  
[EMAIL PROTECTED]  
  @yahoo.com   cc:
  
Subject: Tomcat 4.1/4.0 manager 
application  
  06/14/2002 03:00 
  
  PM   
  
  Please respond to
  
  Tomcat Users
  
  List
  
   
  
   
  




I'm facing a few problems with the Tomcat manager
application..

1. In 4.0.4, the install command copies the web app
into the appBase directory.. in 4.1.3, the install
does not do this; however the installed application is
availble for use. After restarting Tomcat 4.1, the
newly installed application is not visible. Am I doing
something wrong here? or is it a bug in 4.1?

2. How do you pass the war file to the 4.1 deploy
command? The documentation says - Upload the web
application archive (WAR) file that is specified as
the request data in this HTTP PUT . Umm.. how do I do
this via a browser?

On another train..what is the difference between what
the install and deploy commands do? AFAIK, both seem
to be installing and starting the app..

Thanks!!!

__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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






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




Re: Storing Java Objects in SQL

2002-06-12 Thread TMotte


Given the volume of stuff on this list, there might be a more appropriate
forum for sql  ms stuff elsewhere.

Anyhow, you might have better luck with Statement.setBinaryStream() and an
ObjectInputStream.



   
 
  Paul Kofon 
 
  pkofon@hotmail. To:  [EMAIL PROTECTED] 
 
  com cc: 
 
   Subject: Storing Java Objects in SQL
 
  06/12/2002 12:38 
 
  PM   
 
  Please respond   
 
  to Tomcat Users 
 
  List
 
   
 
   
 




Hi all,
I'm trying to store objects (instances) of a class in Microsoft SQL Server
2K using the Microsoft-provided JDBC driver, but I've been without any luck

thus far.
I've used the setObject() method in the PreparedStatement class and set my
target sql type to BINARY, yet it doesn't work, I keep getting an
SQLException. A look at the driver documentation shows that this method is
supported while set/getBlob() aren't.
Is what I'm trying to achieve impossible or am I doing something wrong?
I could serialize the objects to disk but I'll have files lying all over
the
place - storing them in the database per user would be much neater.
I need help fast! I'm Thanks.

Regards,

Paul


_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


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






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




Re: How can I map all requests to a single servlet?

2002-06-12 Thread TMotte


Ummm I *think* you can do this to the app's web.xml:

servlet-mapping
servlet-nameMainServlet/servlet-name
url-pattern/url-pattern
/servlet-mapping

HTH




   
 
  Chris Bailey   
 
  chris@codeinten To:  Tomcat Mailing List 
[EMAIL PROTECTED]  
  sity.comcc: 
 
   Subject: How can I map all requests to 
a single servlet? 
  06/12/2002 05:52 
 
  PM   
 
  Please respond   
 
  to Tomcat Users 
 
  List
 
   
 
   
 




I have a web application that uses a single servlet to respond to all
requests.  This is the only web app that will be running under Tomcat.  How
can I set up the servlet-mapping so that it gets all requests, without
doing
something like setting the url-pattern to be index.*?  Or, more
specifically, I don't want the index.page (or whatever) being added into
the URL.  So, the URL's should just be something like
http://www.foo.com/?param=blah;.


Chris Bailey   mailto:[EMAIL PROTECTED]
Code Intensity   http://www.codeintensity.com


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






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




Re: guys plz..help..servlet not responding

2002-06-07 Thread TMotte


If you haven't done so, you need to config your WEB-INF/web.xml. Read the
docs for such.  Sample below (may be buggy)

  servlet
servlet-nameMyExample/servlet-name
servlet-classcom.me.HelloWorldExample/servlet-class
run-as
descriptionSecurity role for anonymous access/description
role-nametomcat/role-name
/run-as
  /servlet
  servlet-mapping
servlet-nameMyExample/servlet-name
url-pattern/sachar/servlet/snoop/url-pattern
  /servlet-mapping




   
 
  puneet sachar
 
  puneetsachar@ya To:  Tomcat Users List 
[EMAIL PROTECTED]  
  hoo.com cc: 
 
   Subject: guys plz..help..servlet not 
responding  
  06/07/2002 01:00 
 
  PM   
 
  Please respond   
 
  to Tomcat Users 
 
  List
 
   
 
   
 




hi friends

well today i stuck..so badly..
Argentina lost..and ...i'm not solving a simple
..error

i might be ...doing some silly mistake

well ...

I made new app directory by name sachar
and new virtual host by name puneet

i'm not able to access the servlets from this , giving
me error 404 ..not avaliable , the resourse is not
avaliable.

**
127.0.0.1 - - [07/Jun/2002:23:21:08 5050] GET
/sachar/servlet/snoop HTTP/1.1 404 636
**

but when i do with local host i'm getting the servlet

my directory structure is like

webapps  sachar(all html and .jsp files)
   |
   |
   WEB-INF  classes---(has all .class files)

and i'm calling this by

http://puneet:80/sachar/servlet/snoop

(the connector has been changed in server.xml file and
servlet mapping is also done in web.xml file)

and plz look at my server.xml file

==
Context path=/sachar docBase=sachar debug=0
 reloadable=true
crossContext=true


why i'm not getting the servlet and error i'm geting
in the log file is this

Exception noClassfoundException
and
Cannot allocate servlet instance for path
/servlet/HelloWorldExample
javax.servlet.ServletException: Wrapper cannot find
servlet class HelloWorldExample or a class it depends
on
 at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:871)


java.lang.ClassNotFoundException: HelloWorldExample


i know i'm lacking ...something ...
but i'm very tense today plz...help me

i have to make small project by monday and ...i'm
helpless

Plz..i need everyones help

Regards
Puneet

__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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






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




RE: Help! I am so stuck. Tomcat NT credential

2002-06-06 Thread TMotte


I think you most likely will need a COM-Java bridge. For example:
http://www.linar.com/jintegra/doc/jsp2com/





   

  [EMAIL PROTECTED] 

   To:  [EMAIL PROTECTED] 

  06/06/2002 11:56 cc: 

  AM   Subject: RE: Help!  I am so stuck.  
Tomcat NT credential
  Please respond   

  to Tomcat Users 

  List

   

   





Hi,

Thanks for responding so quickly.

How about using NT User Group to authenticate access to JSP files inside a
secured directory?  (I will read the paper now but I thought I should ask.)

Thanks again.

Bao-Ha Dam Bui
[EMAIL PROTECTED]
S. Jude Medical, Inc
651.765.1018


-Original Message-
From: Geoff Peters [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 06, 2002 11:46 AM
To: Tomcat Users List
Subject: RE: Help! I am so stuck. Tomcat NT credential

You can either use the tomcat-users.xml file to define users, passwords and
roles (located in the conf folder in the root of Tomcat), or use a realm to
authenticate to a database, either way there is really good documentation
on
it at the jakarta tomcat site, it took me about 15 min to have an
authentication set up against an Access database, really
straightforward...

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/realm-howto.html

Geoff

Geoff Peters, BScFE, AIT  Phone  : (441) 296-9640
Applications DeveloperFax: (441) 292-1509
Logic Communications  E-mail : [EMAIL PROTECTED]
12 Par-La-Ville Road  WWW: http://www.logic.bm
Hamilton, Bermuda  HM JX



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: June 6, 2002 1:49 PM
To: [EMAIL PROTECTED]
Subject: Help! I am so stuck. Tomcat NT credential


Hi all,

When Tomcat is installed on W2K, what NT Security Role does it use to
access
files?  How can I tell Tomcat4 to use NT Security?

Thanks very much.

Bao-Ha Dam Bui
[EMAIL PROTECTED]
S. Jude Medical, Inc
651.765.1018


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





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




RE: Answer: Reloading classes WITHOUT using shutdown.sh startup.sh (newbiesshould read)

2002-06-05 Thread TMotte


This reloadable parameter has been the real crux of all the discussion. It
seems like there's at least five postings a week asking I set reloadable
=true but it still doesn't reload my classes. I'm not sure I've ever
heard a reliable answer concerning this... most people seem to think it
just plain doesn't work. (Possibly it only works for classes that extend
HttpServlet, as JRun used to do). That in turn seems to cascade into a lot
of confusion about whether the manager/reload?path=web app functionality
you discovered works either (it does of course).  I think it's all
definitely something for the FAQ... if there is a FAQ...



   

  Adam Pfeiffer

  adamcpfeiffer@y To:  Tomcat Users List 
[EMAIL PROTECTED], [EMAIL PROTECTED]  
  ahoo.comcc: 

   Subject: RE: Answer: Reloading classes 
WITHOUT using shutdown.sh  startup.sh (newbies  
  06/05/2002 11:01 should read)

  AM   

  Please respond   

  to Tomcat Users 

  List

   

   





Mike,
From my experience, javabean will not be reloaded even with reloadable
=true.  I have
reloadable=true on my web app, and it would not reread the classes until
I used shutdown.sh and
startup.sh.  Maybe I didn't have something set up right.  Here is a snipet
from my server.xml:

Context path=/trips docBase=trips debug=0
 reloadable=true crossContext=true
  Logger className=org.apache.catalina.logger.FileLogger
 prefix=localhost_trips. suffix=.txt
  timestamp=true/
/Context

Let me know if you see anything wrong.  Thanks.

--- Mike Millson [EMAIL PROTECTED] wrote:
 You could also set reloadable=true in the Context element, but that
 requires significant overhead and is not recommended for production
 environments.

 Mike

 -Original Message-
 From: Adam Pfeiffer [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, June 05, 2002 11:37 AM
 To: [EMAIL PROTECTED]
 Subject: Answer: Reloading classes WITHOUT using shutdown.sh 
 startup.sh (newbies should read)


 I have been on this list for about a month and have see this question
many
 time (myself included).
  I have finally figured out how you can get a class to reload (e.g.
Included
 JavaBean) without
 having to stop/start tomcat using shutdown.sh and startup.sh.  First,
follow
 the directions in
 Manager App HOW-TO included with the tomcat documentation.  Once this
is
 done, you can use the
 manager app reload function to reload the web app.  This also refreshes
any
 newly compiled classes
 (e.g. javabeans) that you may have included in the JSPs.  To use the
reload,
 do the following:

 http://IP Address/manager/reload?path=web app

 You can also use the manager to deploy new web apps, un-deploy web apps,
 start/stop web apps.
 This may be common sense to those tomcat veterans, but this was very
helpful
 to me once I learned
 how to use it.

 Adam

 P.S.  If I have made any errors, please correct me.  Thanks.

 __
 Do You Yahoo!?
 Yahoo! - Official partner of 2002 FIFA World Cup
 http://fifaworldcup.yahoo.com

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



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



__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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






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

Re: reloadable=true not working--- problems with reloading servl ets

2002-05-17 Thread TMotte


Just my two cents, but I never have developers work on the same server
instance. You can run multiple tomcat instances on the same server, or you
can run one on each developer workstation (what I usually do). The whole
reason I'm using tomcat is because it's free and lightweight enough to
deploy on most workstations.




   
 
  Ray Letts
 
  [EMAIL PROTECTED] To:  Tomcat Users List 
[EMAIL PROTECTED]  
  a   cc: 
 
   Subject: Re: reloadable=true not 
working--- problems with reloading 
  05/17/2002 10:59 servlets
 
  AM   
 
  Please respond   
 
  to Tomcat Users 
 
  List
 
   
 
   
 





  Yes the manager app will restart and the Tomcat will reload but I want
Tomcat to detect newly compiled class files and reload without
restarting, whether via the command line or via the manager web app.

This will avoid developers asking each other if they can 'restart'
Tomcat while working on code.

Ray


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






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




RE: Heap size (or something) [correction!]

2002-05-17 Thread TMotte


i deleted the message, but somebody was asking about how to specify heap
size in the params to tomcat, and i said you could probably pass such as a
param to startup.bat/startup.sh - not true. command line arguments are
passed through to the actual tomcat invocation, but *after* the classname,
not before it, so the vm will ignore them. Not a bug, it's so you can tell
Catalina where to get its config file and so on.

So the only way to specify options to the VM is via the CATALINA_OPTS env
variable. My mistake.

Troy






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




Re: Heap Size for Tomcat

2002-05-16 Thread TMotte


my understanding is that any parameters you pass to bin/startup.bat or
bin/startup.sh on the command line will be passed through to the java vm,
such as mx128m or -D property=something .





   
 
  Jacob Hookom   
 
  [EMAIL PROTECTED] To:  'Tomcat Users List' 
[EMAIL PROTECTED]  
  du  cc: 
 
   Subject: Heap Size for Tomcat   
 
  05/16/2002 01:57 
 
  PM   
 
  Please respond   
 
  to Tomcat Users 
 
  List
 
   
 
   
 




Hello All,

I was wondering where I can modify the initial heap size settings for
tomcat to use.  Or more primarily, where the command line is that tomcat
uses to initialize its VM.

Thanks,
Jake Hookom

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002



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






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




Re: Heap Size for Tomcat

2002-05-16 Thread TMotte


Well, yeah except  he wants to get more memory... and wouldn't setting the
XXXOPTS variable set the heap size not just for startup but also shutdown?
In other words, this way you could get tomcat to start with 512mb of heap,
but if you call shutdown.bat/shutdown.sh,  the shutdown vm grabs its own
512mb heap... I dunno...

troy




   
 
  Phillip Morelock 
 
  subscriptions@phillipmo To:  Tomcat Users List 
[EMAIL PROTECTED]  
  relock.com  cc: 
 
   Subject: Re: Heap Size for 
Tomcat
  05/16/2002 06:19 PM  
 
  Please respond to
 
  Tomcat Users List  
 
   
 
   
 




The official way to do it is to set a
TOMCAT_OPTS
or
CATALINA_OPTS

variable with the string that you would normally feed the VM.  (like -Xms
or
whatever).  TOMCAT is for 3.x, CATALINA is for 4.x

cheers
fillup



On 5/16/02 3:57 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:


 my understanding is that any parameters you pass to bin/startup.bat or
 bin/startup.sh on the command line will be passed through to the java vm,
 such as mx128m or -D property=something .






 Jacob Hookom
 [EMAIL PROTECTED] To:  'Tomcat Users
List'
 [EMAIL PROTECTED]
 du  cc:
  Subject: Heap Size for
Tomcat
 05/16/2002 01:57
 PM
 Please respond
 to Tomcat Users
 List






 Hello All,

 I was wondering where I can modify the initial heap size settings for
 tomcat to use.  Or more primarily, where the command line is that tomcat
 uses to initialize its VM.

 Thanks,
 Jake Hookom

 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002



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






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



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






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




Re: How to end a JSP

2002-05-15 Thread TMotte


Since nobody else answered, not sure but I would think a simple return;
as placed would do what you want.
troy



   
 
  Adam Pfeiffer
 
  adamcpfeiffer@y To:  [EMAIL PROTECTED] 
 
  ahoo.comcc: 
 
   Subject: How to end a JSP   
 
  05/15/2002 01:11 
 
  PM   
 
  Please respond   
 
  to Tomcat Users 
 
  List
 
   
 
   
 




%@page contentType=text/html%
html
headtitleJSP Page/title/head
body

%@ page import=java.io.* %
%@ page import=java.util.* %

jsp:useBean id=pictureBrowserBean scope=session class
=mada.trips.PictureBrowserBean /

%
//pictureBrowserBean.setBaseDir(getServletConfig().getServletContext
().getRealPath(/));
pictureBrowserBean.setBaseDir();
pictureBrowserBean.setAlbumDir(images/);
try {
   pictureBrowserBean.parseAlbums();
}
catch (NullPointerException e) {
   out.println(e.toString());
   return; // HERE
}







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




jsp's do not compile

2002-05-10 Thread TMotte

I cannot get tomcat to recompile jsp's after I change them. I have tried
the 4.1 alpha nightly build as well as 4.0.3. I know this is supposed to
work...

Is there some special parameter I should be configuring or something? I've
searched the docs.

Troy


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




Re: jsp's do not compile

2002-05-10 Thread TMotte


Thanks for the suggestion, but even killing the explorer process doesn't
help.

On 4.1 I was able to get the jsp to recompile by telling the manager to
reload (actually used the new ant reload taskdef in 4.1). I would try to
do this on 4.0.3, but for some reason the admin/manager whatever it is
thing isn't available... isn't it supposed to be a link on the default
tomcat home page for the server (i.e. http://localhost:8080/index.jsp)? One
problem after another : (





   
 
  Xinji Gu   
 
  [EMAIL PROTECTED] To:  Tomcat Users List 
[EMAIL PROTECTED]
  cc: 
 
   Subject: Re: jsp's do not compile   
 
  05/10/2002 04:38 
 
  PM   
 
  Please respond   
 
  to Tomcat Users 
 
  List
 
   
 
   
 




maybe you should close your browser and start it again?

Jim

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, May 10, 2002 5:23 PM
Subject: jsp's do not compile


 I cannot get tomcat to recompile jsp's after I change them. I have tried
 the 4.1 alpha nightly build as well as 4.0.3. I know this is supposed to
 work...

 Is there some special parameter I should be configuring or something?
I've
 searched the docs.

 Troy


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



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






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




Re: jsp's do not compile

2002-05-10 Thread TMotte


My own understanding is that for servlets  other java classes, yes, you
need to use the manager application to reload them, and I can get that to
work on 4.1; but I thought that JSP's are supposed to automatically
recompile. Am I wrong? Can somebody confirm? I've noticed a lot of
back-and-forth-ambiguity about reload/recompile on this list...

Troy




   
 
  Michael Teter
 
  michael_teter@y To:  Tomcat Users List 
[EMAIL PROTECTED]  
  ahoo.comcc: 
 
   Subject: Re: jsp's do not compile   
 
  05/10/2002 04:50 
 
  PM   
 
  Please respond   
 
  to Tomcat Users 
 
  List
 
   
 
   
 




My understanding is that Tomcat does usually does not,
and never really has :) reloaded things when they
change, regardless of you specifying that a webapp is
reloadable.

I use the manager app, and it works great.  With my
ant build.xml set up right, I can build/distribute my
webapp in an instant, then click on two bookmarks on
my browser (to tell the manager to remove my webapp,
and then install my webapp.)

Good luck.
Michael

--- Xinji Gu [EMAIL PROTECTED] wrote:
 maybe you should close your browser and start it
 again?

 Jim

 - Original Message -
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, May 10, 2002 5:23 PM
 Subject: jsp's do not compile


  I cannot get tomcat to recompile jsp's after I
 change them. I have tried
  the 4.1 alpha nightly build as well as 4.0.3. I
 know this is supposed to
  work...
 
  Is there some special parameter I should be
 configuring or something? I've
  searched the docs.
 
  Troy
 
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


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



__
Do You Yahoo!?
Yahoo! Shopping - Mother's Day is May 12th!
http://shopping.yahoo.com

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






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




Re: jsp's do not compile

2002-05-10 Thread TMotte


Wait, wait, wait, wait, I am stupid. Sorry.

I got confused between my multiple installations. JSP's reload quite nicely
now on 4.0.3. 4.1 has a problem though... will feed that to bugzilla.

But I can't get 4.0.3's manager to come up, don't know what I'm doing
wrong.




   
 
  [EMAIL PROTECTED] 
 
   To:  Tomcat Users List 
[EMAIL PROTECTED]
  05/10/2002 05:00 cc: 
 
  PM   Subject: Re: jsp's do not compile   
 
  Please respond   
 
  to Tomcat Users 
 
  List
 
   
 
   
 





My own understanding is that for servlets  other java classes, yes, you
need to use the manager application to reload them, and I can get that to
work on 4.1; but I thought that JSP's are supposed to automatically
recompile. Am I wrong? Can somebody confirm? I've noticed a lot of
back-and-forth-ambiguity about reload/recompile on this list...

Troy





  Michael Teter

  michael_teter@y To:  Tomcat Users List
[EMAIL PROTECTED]
  ahoo.comcc:

   Subject: Re: jsp's do not
compile
  05/10/2002 04:50

  PM

  Please respond

  to Tomcat Users

  List







My understanding is that Tomcat does usually does not,
and never really has :) reloaded things when they
change, regardless of you specifying that a webapp is
reloadable.

I use the manager app, and it works great.  With my
ant build.xml set up right, I can build/distribute my
webapp in an instant, then click on two bookmarks on
my browser (to tell the manager to remove my webapp,
and then install my webapp.)

Good luck.
Michael

--- Xinji Gu [EMAIL PROTECTED] wrote:
 maybe you should close your browser and start it
 again?

 Jim

 - Original Message -
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, May 10, 2002 5:23 PM
 Subject: jsp's do not compile


  I cannot get tomcat to recompile jsp's after I
 change them. I have tried
  the 4.1 alpha nightly build as well as 4.0.3. I
 know this is supposed to
  work...
 
  Is there some special parameter I should be
 configuring or something? I've
  searched the docs.
 
  Troy
 
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


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



__
Do You Yahoo!?
Yahoo! Shopping - Mother's Day is May 12th!
http://shopping.yahoo.com

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






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






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




Re: Tomcat, mod_jk and Apache...again!

2002-05-10 Thread TMotte


Personally, I would like to have the choice to put my jsp/html/images etc.
somewhere besides the tomcat installation directory. It's just one less
hassle to deal with when you're upgrading tomcat.


   
 
  Tore Skogly
 
  tore.skogly@c2i To:  Tomcat Users List 
[EMAIL PROTECTED]
  .netcc: 
 
   Subject: Re: Tomcat, mod_jk and 
Apache...again!  
  05/10/2002 05:48 
 
  PM   
 
  Please respond   
 
  to Tomcat Users 
 
  List
 
   
 
   
 




Thanks for your help. It made things clearer to me.

I am using ldap to allow only some users to access webpages in different
directories.
Therefore it would be easier for me to keep the jsp pages with my html
stuff.
I guess I could try to edit the server.xml file and set /var/www/html as my
webapp directory,
but I might have to settle with what you suggests - put them in the
$TOMCAT_HOME/webapps directory.

Thanks again for your assistance!

ToreS

- Original Message -
From: Zachary Kuhn [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, May 10, 2002 8:36 PM
Subject: RE: Tomcat, mod_jk and Apache...again!


 Tore,
 In order to help, please be more descriptive about your access
 restrictions, and the way you have set up your directories. Based on the
 things you have said so far, this may be your problem:
 Tomcat looks in its webapp directory for webapps to deploy. Even a single
 jsp page constitutes a webapp(albeit a simple one).
 I think you are missing this fundamental point of tomcat. Tomcat needs to
 look for your jsp pages, then compile them, and
 put them in a working directory where they can be served. It has no idea
 that there is such a place as /var/www/html, only a
 $TOMCAT_HOME/webapps directory. The only way you could let it know about
 /var/www/html would be to modify the xml config file. But it is much
easier
 to just put your jsp pages in $TOMCAT_HOME/webapps, the way the system
was
 designed. Sorry for any errors, but that is my understanding of it.
 Zak






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






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




catalina.sh cygwin

2002-05-01 Thread TMotte


Greetings:

Am using a the latest build of tomcat 4.0 on Win2K. Just started working
with tomcat today, pardon my lack of familiarity.

I changed the catalina.sh file as follows to get it to work under cygwin
(very recent version as well) because of minor bugs in the shell code. I
would like these changes to go in permanently so I don't have to redo them
later... ?


$ diff c:\Programs\Tomcat40\bin\catalina.sh.old c:
\Programs\Tomcat40\bin\catalina.sh
81a82

99,102c100,105
   JAVA_HOME=`cygpath --path --windows $JAVA_HOME`
   CATALINA_HOME=`cygpath --path --windows $CATALINA_HOME`
   CLASSPATH=`cygpath --path --windows $CLASSPATH`
   JSSE_HOME=`cygpath --path --windows $JSSE_HOME`
---
   JAVA_HOME=`  cygpath --path --windows $JAVA_HOME`
   CATALINA_HOME=`  cygpath --path --windows $CATALINA_HOME`
   CLASSPATH=`  cygpath --path --windows $CLASSPATH`
   JSSE_HOME=`  cygpath --path --windows $JSSE_HOME`
   CATALINA_BASE=`  cygpath --path --windows $CATALINA_BASE`
   CATALINA_TMPDIR=`cygpath --path --windows $CATALINA_TMPDIR`
187a191
   mkdir -p $CATALINA_BASE/logs


thanx
troy


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]