Re: Tomcat Configuration

2005-07-14 Thread Bryan Scarbrough
Will it load the Login.html file, or do you simply see nothing at all?

On 7/14/05, Iin Nurhidayat [EMAIL PROTECTED] wrote:
 
 Hi All,
 
 I have a problem with my deployment.
 
 I have some servlets and one Login.html.
 I will put my servlets and Login.html on
 /myapplication
 
 Based on book i have read :
 
 a) I configure the server.xml
Context path= /myapplication docBase=
 /webapps/myapplication
 reloadable= true  crossContext= true  
 
 Logger className=
 org.apache.catalina.logger.FileLogger 
 prefix= localhost_myapplication_log.  suffix= .txt
 
 timestamp= true  / 
 /Context 
 
 b) I put Login.html under myapplication directory.
$CATALINA_HOME\webapps\myapplication
 
 c) I put servlets under classes directory
 
 $CATALINA_HOME\webapps\myapplication\WEB-INF\classes.
 
 But, Tomcat response is can not find /myapplication
 (404).
 
 Please advice ...
 
 
 Thanks
 
 - IN -
 
 
 
 
 Start your day with Yahoo! - make it your home page
 http://www.yahoo.com/r/hs
 
 
 -
 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: Linking Tomcat to Apache

2005-07-14 Thread Bryan Scarbrough
How is it all currently configured (the mod_jk portions)?

Bryan

On 7/13/05, Ben Stuart [EMAIL PROTECTED] wrote:
 I am trying to use ModJk to Link Apache 2 and Tomcat 5.5.9
 
 I followed the instructions and I thought I had it all right!
 
 But I edited my httpd.cong file to support virtual hosts and pointed the
 document root to the jsp and the servlet examples and apache serves those
 pages to the web but the examples come through as html so its not using
 tomcat
 
 Can anyone help?
 
 I will send you my files if that will help?
 
 -Ben
 
 -
 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: Which is the latest 'stable' JK connector?

2005-07-14 Thread Bryan Scarbrough
I believe it is v. 1.2.13.

Bryan

On 7/14/05, Alex Sansom [EMAIL PROTECTED] wrote:
 Hi,
 
 Can someone please confirm which is the latest stable JK connector
 please? I've been looking at the JK documentation located at
 http://jakarta.apache.org/tomcat/connectors-doc/index.html but it is not
 clear which is the most recent 'stable' release.
 
 I'm currently using 1.2.10 for testing but I need to use  1.2.11 as
 there is a bug fix in that release that I require. The downloadable
 binaries at
 http://www.apache.org/dist/jakarta/tomcat-connectors/jk/binaries/win32/
 are for 1.2.6 1.2.8 1.2.10 1.2.13 and 1.2.14. Are these all stable
 releases?
 
 Thanks,
 
 Alex
 
 
 
 -
 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: Which is the latest 'stable' JK connector?

2005-07-14 Thread Bryan Scarbrough
If you look at the following link it only says that the 1.2.14 version
is still awaiting approval to be specified as stable.


http://jakarta.apache.org/tomcat/connectors-doc/news/20050101.html#20050713.1

Bryan

On 7/14/05, Alex Sansom [EMAIL PROTECTED] wrote:
 Thanks for the response Bryan.
 
 Where did you get the information from? Do you have a link? No doubt
 it'll be handy for future reference...
 
 Regards,
 
 Alex
 
 -Original Message-
 From: Bryan Scarbrough [mailto:[EMAIL PROTECTED]
 Sent: 14 July 2005 14:09
 To: Tomcat Users List
 Subject: Re: Which is the latest 'stable' JK connector?
 
 
 I believe it is v. 1.2.13.
 
 Bryan
 
 On 7/14/05, Alex Sansom [EMAIL PROTECTED] wrote:
  Hi,
 
  Can someone please confirm which is the latest stable JK connector
  please? I've been looking at the JK documentation located at
  http://jakarta.apache.org/tomcat/connectors-doc/index.html but it is
  not clear which is the most recent 'stable' release.
 
  I'm currently using 1.2.10 for testing but I need to use  1.2.11 as
  there is a bug fix in that release that I require. The downloadable
  binaries at
  http://www.apache.org/dist/jakarta/tomcat-connectors/jk/binaries/win32
  /
  are for 1.2.6 1.2.8 1.2.10 1.2.13 and 1.2.14. Are these all stable
  releases?
 
  Thanks,
 
  Alex
 
 
 
  -
  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]



Re: how to link

2005-07-12 Thread Bryan Scarbrough
I am currently working on the same thing on a Windows box.  If I can
figure it out, then I will let you know what I did, the configuration
should not be too different.

On 7/12/05, ganesan malairaja [EMAIL PROTECTED] wrote:
 hi guys
 
 how to  link apache2 and tomcat
 
 i have apache 2.0.54 and tomcat 4.1.xx running on linux ..
 
 my both apache and tomcat runs indepently fine
 
 i need to link both how i do it ... i trying following one example on the
 http://wass.homelinux.net/howtos/Jakarta_How-To.shtml
 
 
 i cant find jk folder under jakarta folder ..
 
 anybody got any example to guide me ..
 
 thanks for help
 
 
 
 -
 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]



JasperException, JSP calling wrong overloaded method

2005-03-23 Thread Tom Bryan
I have a custom tag MessageTag that has an overloaded setValue method.  It is 
being used like this.
title
fmt:message value=exception.title /
/title

Instead of calling the setValue(String v) method, the generated code for the 
JSP is calling 
_jspx_th_fmt_message_0.setValue(
(com.cisco.tims.utils.MessageBundle.Descriptor)
org.apache.jasper.runtime.JspRuntimeLibrary.getValueFromPropertyEditorManager(
com.cisco.tims.utils.MessageBundle.Descriptor.class, 
value, 
exception.title)
);

The exception stacktrace starts like this
org.apache.jasper.JasperException: jsp.error.beans.property.conversion
at 
org.apache.jasper.runtime.JspRuntimeLibrary.getValueFromPropertyEditorManager(JspRuntimeLibrary.java:885)
at 
org.apache.jsp.jsp.exception_jsp._jspx_meth_fmt_message_0(exception_jsp.java:329)
at org.apache.jsp.jsp.exception_jsp._jspService(exception_jsp.java:132)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

I would have expected the generated code to be
_jspx_th_fmt_message_0.setValue(exception.title)

Oddly, this code works fine on a Mac OSX machine and a Solaris machine.  I'm  
only seeing this error on my Thinkpad, which is running a customized RedHat 
Enterprise Linux install.  I've tried running with Tomcat 5.0.28 and 5.0.30.  
I've also tried both IBM's and Sun's JDK 1.4.2.  Same error with every 
combination.

Are overloaded setters like this supported?  If so, any pointers on where to 
turn next to troubleshoot this problem?  I've killed a day on it, and I'm out 
of ideas.  I'm hoping that I've just misconfigured something that's easy to 
overlook in my Tomcat installation.

-- 
Tom Bryan 
Test Information Systems  Central Engineering Services
Cisco Systems  USA  NC  RTP

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



SSL for multiple domains and one application with Tomcat

2004-09-17 Thread David Bryan

I have an app currently running on stand alone Tomcat(with a Win2K OS).
Different 'user-experiences', (text and graphics) are served
depending on the different URL address which are used to reach the
site. What we want is to have SSL certificates to authenticate for
these different domain names.

What I've read in my research is that it is a limitation of SSL to
have multiple domain names authenticate with the same IP. So if that
is a limitation and we have to get a second IP to connect to the
server, how would we configure Tomcat for that?

Thanks,

Dave B
 

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



mod_jk2 2.0.4 ajp13 errors in apache logs

2004-04-05 Thread Bryan Field-Elliot
I'm running Apache 2.0.46 on RHEL (package name is httpd-2.0.46-32.ent).
I'm also running the latest mod_jk2 (2.0.4, compiled from source). I am
getting these errors very frequently in my apache log:

[Fri Apr 02 17:15:27 2004] [error] channelApr.receive(): Error receiving
message body -1 0
[Fri Apr 02 17:15:27 2004] [error] workerEnv.processCallbacks() Error
reading reply
[Fri Apr 02 17:15:27 2004] [error] ajp13.service() ajpGetReply
recoverable error 12

On the Tomcat side, I'm running JBoss 3.2.3 + Tomcat 4. Operating system
is RedHat Enterprise 3.0, JDK is Sun 1.4.2_03.

I've seen these error messages posted to this list in the past but
nobody seems to have posted a solution. Can anybody help out?

Thank you,
Bryan


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



mod_jk2 2.0.4 ajp13 errors

2004-04-02 Thread Bryan Field-Elliot
I'm running Apache 2.0.46 on RHEL (package name is httpd-2.0.46-32.ent).
I'm also running the latest mod_jk2 (2.0.4, compiled from source). I am
getting these errors very frequently in my apache log:

[Fri Apr 02 17:15:27 2004] [error] channelApr.receive(): Error receiving
message body -1 0
[Fri Apr 02 17:15:27 2004] [error] workerEnv.processCallbacks() Error
reading reply
[Fri Apr 02 17:15:27 2004] [error] ajp13.service() ajpGetReply
recoverable error 12

On the Tomcat side, I'm running JBoss 3.2.3 + Tomcat 4. Operating system
is RedHat Enterprise 3.0, JDK is Sun 1.4.2_03.

I've seen these error messages posted to this list in the past but
nobody seems to have posted a solution. Can anybody help out?

Thank you,
Bryan




Re: I know this is a stupid question

2004-03-28 Thread Bryan K. Cantwell
If you are still seeing a page that litterally does not exist, then you ARE
looking at a cached version of the page. Stop Tomcat, in Internet Exploder
click tools-internet options-settings-every visit to the page and set
amount os disk space to the min (1MB) and ok. then click delete files under
temp internet files... this will clear up the phantom page. then make sure u
go to tomcat_home/work and delete everything inside there. Then start
tomcat back up ...

bryancan

- Original Message - 
From: Donald Lee [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, March 28, 2004 2:52 PM
Subject: Re: I know this is a stupid question


 Yes, I did clear my work directory.  No diff.  The index.jsp just would
not
 change or even go away despite my deleting it.


 From: Antonio Fiol Bonnín [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Re: I know this is a stupid question
 Date: Sun, 28 Mar 2004 10:19:04 +0200
 
 Hi Don,
 
 As Bryan already told you, you should clear the work directory of already
 compiled versions.
 
 Antonio
 
 Donald Lee wrote:
 
 I have since downloaded version 4.1.30 and am not experiencing this
 problem.  I have noticed that there are fewer sub-directories under the
 WEB-INF.  This leads me to believe that the jsp's were pre-compiled in
 version 5 and running more like servlets than a standard jsp.  With no
way
 for me to really understand how I go about pre-compiling and deploying
 jsps in this manner, I guess for now until I learn enough about all the
 changes in version 5, I will continue using version4.
 Thanks
 Don
 
 
 
 From: Donald Lee [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: I know this is a stupid question
 Date: Sat, 27 Mar 2004 21:59:22 -0500
 
 Yes I turned off caching I even deleted the index.jsp and stopped and
 started tomcat.  I still get the Congratulations!
 I can do this without specifying the index.jsp and if I specify it.  I
 know I am looking in the right folder because like I said, I can run a
 test.jsp just fine and even update it without cycling tomcat.  This is
 version 5.0.19 windows installation.  It runs as a service.  I
installed
 the jk2 connector but right now IIS is turned off and I am not using
it.
 Thanks
 Don
 
 
 
 
 From: Bryan K. Cantwell Reply-To: Tomcat Users List To: Tomcat
 Users List Subject: Re: I know this is a stupid question Date: Sat,
27
 Mar 2004 19:34:55 -0600
 
 Is your browser chacheing? turn it off. clear the work directory of
 already compiled versions too...
 
 - Original Message - From: Donald Lee To: Sent: Saturday,
 March 27, 2004 7:31 PM Subject: I know this is a stupid question
 
 
   Ok, I know this has got to be a stupid newbie question but I have
 searched  the archives without success.  What is special about the
 default tomcat  webapps/ROOT/index.jsp?  I cannot make changes to it.
 I tried making minor  changes to it and expecting the changes to
happen
 on a refresh; no joy.  I  also shutdown and restarted tomcat to get
the
 changes to take effect; no  joy.  I eventually created a small
test.jsp
 and copied the contents to it  and sure enough my changes were there.
 made some minor changes to my  test.jsp and sure enough the changes
 were in effect without cycling tomcat.  I really would like to use
 index.jsp as my default page.
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

 _
 Is your PC infected? Get a FREE online computer virus scan from McAfee®
 Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


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



Fake 'alias' for sales rep pages

2004-03-27 Thread Bryan K. Cantwell
I have created a templated 'Personal' web page (jsp) that dynamically
becomes the personal page of each of our sales reps in the copmpany. What I
need to know is how I can make the URL unique for each rep's page without
actually creating a directory or alias for each and every one of them. For
instance I am John Doe, sales rep,  I want my personal URL to be
http://www.domain.com/johndoe/. Any help?


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



Re: I know this is a stupid question

2004-03-27 Thread Bryan K. Cantwell
Is your browser chacheing? turn it off. clear the work directory of already
compiled versions too...

- Original Message - 
From: Donald Lee [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, March 27, 2004 7:31 PM
Subject: I know this is a stupid question


 Ok, I know this has got to be a stupid newbie question but I have searched
 the archives without success.  What is special about the default tomcat
 webapps/ROOT/index.jsp?  I cannot make changes to it.  I tried making
minor
 changes to it and expecting the changes to happen on a refresh; no joy.  I
 also shutdown and restarted tomcat to get the changes to take effect; no
 joy.  I eventually created a small test.jsp and copied the contents to it
 and sure enough my changes were there.  made some minor changes to my
 test.jsp and sure enough the changes were in effect without cycling
tomcat.
 I really would like to use index.jsp as my default page.  What has this
 locked down?
 Thanks
 Don

 _
 Check out MSN PC Safety  Security to help ensure your PC is protected and
 safe. http://specials.msn.com/msn/security.asp


 -
 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: Fake 'alias' for sales rep pages

2004-03-27 Thread Bryan K. Cantwell
I can send to the real location , no problem, but, that I need to know is
how to go to  http://www.domain.com/johndoe which is the unique url for John
Doe, even though there really is no such directory or alias as /johndoe/ .
There could be hundreds or even thousands of these 'personal' sales rep
pages and I really would hate the thought of being forced into actually
creating a unique directory or alias for each and every one...


- Original Message - 
From: Tom K [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Saturday, March 27, 2004 7:30 PM
Subject: RE: Fake 'alias' for sales rep pages


 Well...you might try using something like a response.redirect() to
 another url. You might need to set some type of flag in a database
 corresponding with there login id which would redirect them to a unique
 URL. Just some ideas.

 Sincerely,

 Tom K.

 -Original Message-
 From: Bryan K. Cantwell [mailto:[EMAIL PROTECTED]
 Sent: Saturday, March 27, 2004 6:45 PM
 To: Tomcat Users List
 Subject: Fake 'alias' for sales rep pages

 I have created a templated 'Personal' web page (jsp) that dynamically
 becomes the personal page of each of our sales reps in the copmpany.
 What I
 need to know is how I can make the URL unique for each rep's page
 without
 actually creating a directory or alias for each and every one of them.
 For
 instance I am John Doe, sales rep,  I want my personal URL to be
 http://www.domain.com/johndoe/. Any help?


 -
 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.557 / Virus Database: 349 - Release Date: 12/30/2003


 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.557 / Virus Database: 349 - Release Date: 12/30/2003



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



mod_deflate with mod_jk2

2004-03-04 Thread Bryan Field-Elliot
On my site, I have Apache 2.0 fronting Tomcat 4.1 using the mod_jk2
connector.

I'm trying to enable mod_deflate to automatically compress output from
Tomcat, using this line in my apache config:

AddOutputFilterByType DEFLATE text/html

But the DEFLATE filter is ignoring output from Tomcat, while static html
content (served by apache) is correctly being deflated.

Am I missing something, or is it impossible for mod_jk2 and mod_deflate
to play nice together? Maybe I need to add a compression filter at the
Tomcat level instead? (This seems silly).

Thank you,

Bryan



SSL Chain Certificates with Tomcat

2004-02-04 Thread Dave Bryan

I am setting up a new production server and would like to test with
VeriSigns SSL test certificate. Their test certificates don't have a chain
certificate included like their full versions but keytool in Tomcat seems to
require one. Is there a solution for this?

Thanks,

Dave B.


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



Tomcat with VeriSign Trial Certificate

2004-02-03 Thread Dave Bryan
I'm having problems setting up a VeriSign Trial SSL certificate. The Trial
Certificates don't have a 'chain certificate' which is then imported into
your keystore, so I get errors that I don't have a one. Are these
certificates usable in Tomcat?

Thanks!

-David


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



Re: Realm Username Password from TagSupport

2003-11-21 Thread Bryan LaPlante
Are you saying that you want to build a custom tag to do this. In any case
here is the connection logic

http://www.kickjava.com/1541.htm

- Original Message -
From: Hart, Justin [EMAIL PROTECTED]
To: Tomcat Users List (E-mail) [EMAIL PROTECTED]
Sent: Friday, November 21, 2003 12:27 PM
Subject: Realm Username  Password from TagSupport


I would like to use a users username/password to login to a database as that
user, after they authenticate HOPEFULLY using BASIC authentication.  Is
there anyway to do this?

Justin

-
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: Realm Username Password from TagSupport

2003-11-21 Thread Bryan LaPlante
When your form is submitted, if you are looking up the user from the context
you can keep that info in a session var. Be careful not to use cookie
sessions for that since you don't want to send the passwd back to the client
unless using SSL.
TagSupport only offers a way to read in the body of your tag and encapsulate
code used by the page author. I am assuming your are talking about 2 access
points in the same application context.

- Original Message -
From: Hart, Justin [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, November 21, 2003 1:24 PM
Subject: RE: Realm Username  Password from TagSupport


I would like to authenticate my users with my database without prompting
them a second time for a username and password.  I have considered creating
a subclass of JNDIRealm in order to do this, but I am resisting the urge to
do this, figuring that there must be an easier way to implement mulit-tiered
security with Tomcat.  Unfortunately, somewhere, I need to be able to access
the user's password in order to do this.

So, what I'm wondering is if there is either a listener that I could
implement, from which I could listen to users authenticating and use their
username/password combos to login to my database, and then just associate
this with their session ID, or if perhaps the user's password is accessible
in some way, shape, or form from TagSupport.

Justin

-Original Message-
From: Bryan LaPlante [mailto:[EMAIL PROTECTED]
Sent: Friday, November 21, 2003 2:20 PM
To: Tomcat Users List
Subject: Re: Realm Username  Password from TagSupport


Are you saying that you want to build a custom tag to do this. In any case
here is the connection logic

http://www.kickjava.com/1541.htm

- Original Message -
From: Hart, Justin [EMAIL PROTECTED]
To: Tomcat Users List (E-mail) [EMAIL PROTECTED]
Sent: Friday, November 21, 2003 12:27 PM
Subject: Realm Username  Password from TagSupport


I would like to use a users username/password to login to a database as that
user, after they authenticate HOPEFULLY using BASIC authentication.  Is
there anyway to do this?

Justin

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



How to strip ;charset from Content-Type on 4.1.29?

2003-11-14 Thread Bryan Field-Elliot
When I call from a Servlet:

response.setContentType(text/xml);

Tomcat changes the header to read:

Content-Type: text/xml;charset=ISO-8859-1

The ;charset is killing us interoping with another vendor and they can't
change their code. I've tried:

response.setLocale(null);

but it bombs Tomcat.

This is Tomcat 4.1.29.

Any help would be appreciated.

Bryan




help w/ tag issue

2003-11-12 Thread Bryan LaPlante
I have looked everywhere for a solution. My custom tag displays it's content
once multiplied by the number of times the page has been refreshed. I when
looking for the reason and the closest mention concerns tag pooling. I don't
know if turning it off will solve this problem but I can not figure what I
should put into the web.xml to turn it off. Any help appreciated.

Bryan LaPlante


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



Re: help w/ tag issue

2003-11-12 Thread Bryan LaPlante
no database, the tag is just formatting some JavaScript on the page. I have
extended the BodyTagSupport and I am use SKIP_BODY in the doEndTag. The tag
works fine on Weblogic, it only acts this way in TC.

- Original Message -
From: Christopher Schultz [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, November 12, 2003 2:03 PM
Subject: Re: help w/ tag issue


 Bryan,
  I have looked everywhere for a solution. My custom tag displays it's
content
  once multiplied by the number of times the page has been refreshed. I
when
  looking for the reason and the closest mention concerns tag pooling. I
don't
  know if turning it off will solve this problem but I can not figure what
I
  should put into the web.xml to turn it off. Any help appreciated.

 Are you obtaining information from, say, a database and displaying it?
 If so, are you taking care to re-set the results each time you gather
 that data?

 If the code isn't that long, you might want to post it.

 -chris


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



Mod_JK 1.2.2 Build Problems Tru64 Unix -- Please help

2003-05-28 Thread Bryan Walaschek
I'm running into build problems with mod_jk:

On Tru64 Unix, here's what I'm doing step by step:

1. cd /usr/local
2. gunzip -c jakarta-tomcat-connectors-jk-1.2.2-src.tar.gz | tar xvf -
3. cd ./jakarta-tomcat-connectors-jk-1.2.2-src/jk/native
(so I'm trying to build within the 'native' directory, I think that's
right. . .

4. ./configure --with-apxs=/usr/local/apache2/bin/apxs

At this ponit ./configure prints out lots of info and seems to complete
sucessfully.

5. make

and I get the following output from make:
--
No suffix list.
Making all in common
./libtool --mode=compile cc -I /usr/local/apache2/include -g -g -g
-DOSF1
-I /usr/opt/java140/include -I /usr/opt/java140/include/ -c
./jk_ajp12_wroker.c
sh: ./libtool: not found
***Exit 1
Stop.
***Exit 1
--

Now, libtool itself is indeed located in the current directory
(/usr/local/jakarta-tomcat-connectors-jk-1.2.2-src/jk/native)
but the file it's looking for (jk_ajp12_worker.c) is in a subdirectory
called common.

I don't even understand why 'make' is trying to use libtool at all.  The
notes in the README.txt file under /jk make is sound like it should only
use libtool if I'm using ant to build, here's the quote:

* If your system have a current working version of libtool, run ant
native. 
  This will build the native connectors for the detected servers ( both
jk
  and jk2).  Alternatively, you can build using
configure/make/dsp/apxs.

Any ideas what's going on?  I've also tried to execute 'ant' from
/usr/local/jakarta-tomcat-connectors-jk-1.2.2-src/jk and got a different
error. . .

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



Re: WEB-INF/web.xml problem

2003-04-03 Thread Bryan Richardson
Thanks Mariusz!!  That was the ticket!  I appreciate the help...wish I could 
have figured that one out!

Thanks Again!!

Bryan

Original Message Follows
From: Mariusz Wiktorczyk [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: WEB-INF/web.xml problem
Date: Thu, 03 Apr 2003 09:05:23 +0200
In your url http://URL:8080/pnm/Submit should be some hint for apache 
telling that this is a Tomcat app i.e. http://URL/servlet/pnm/Submit.
See exactly how is build URL to Tomcat examples.

Bryan Richardson wrote:

Here's the deal...I have a .class file that is in the 
webapps/pnm/WEB-INF/classes folder that I am trying to run.  In web.xml I 
have the following:

!-- servlet definition --
   servlet
   servlet-name
Submit
/servlet-name
description
A simple servlet
/description
   servlet-class
ranade.SubmitServlet
/servlet-class
   /servlet
!-- servlet mapppings --
   servlet-mapping
   servlet-name
Submit
   /servlet-name
   url-pattern
/Submit
/url-pattern
   /servlet-mapping
I can go to http://URL:8080/pnm/Submit and the .class file will run.  
However, if I try to go through my Apache web server and run the .class 
file, I get the Error 404 message.  I'm assuming I have Apache-Tomcat 
configured correctly because I can run the java examples in the Tomcat 
examples folder through Apache.  I'm thinking it has something to do with 
Apache not referencing the web.xml file because when I set up a security 
realm in web.xml, it will ask me for a password when I go directly to 
Tomcat via port 8080, but if I go through Apache the page will come up 
without asking for a password.  Can anyone help me with this?

Thanks.

_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.  
http://join.msn.com/?page=features/virus

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


_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.  
http://join.msn.com/?page=features/virus

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


Newbie here...Need help with Tomcat

2003-04-02 Thread Bryan Richardson
Hello,

I am new to the Java and Tomcat world.  I'm fairly experienced with Apache 
and Perl, but I am having to do some stuff with Tomcat and Java files that 
someone else has written.

I have a couple of questions...

If I run a version of Tomcat as a standalone web server, can I access a 
database with it or will I need to set it up with Apache to access a 
database?

I have been trying to attach Tomcat with Apache.  I used mod_jk, and I could 
run the java example programs in the examples folder, but it would not run 
java programs under my own folder in webapps.  I believe I have the 
folder,web.xml,etc. set up right because it will run the java programs in my 
folder if I go directly to Tomcat via port 8080 rather than trying to run 
them through Apache.  Has anyone had this same problem or know something 
that I should be doing?

Someone please help if you can.  Thanks.  Bryan

_
Protect your PC - get McAfee.com VirusScan Online  
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

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


Re: Newbie here...Need help with Tomcat

2003-04-02 Thread Bryan Richardson
When I run the examples in the examples foler, it looks like they all call 
a .jsp file, then maybe a .class file.  The person that wrote the program I 
am trying to run is going straight to a .class file by defining a 
servlet-class in web.xml.  Would this have anything to do with it?

I have included the mod_jk.conf-auto file in my Apache httpd.conf file.  The 
mod_jk.conf-auto file is attached to this e-mail.  I set up a context 
definition in server.xml like the following:

   Context path=/pnm
docBase=webapps/pnm
crossContext=true
debug=0
reloadable=true
trusted=false 
   /Context
Would I happen to need a worker or something?  I'm still not sure what a 
worker is...

Bryan

Original Message Follows
From: John Turner [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: Newbie here...Need help with Tomcat
Date: Wed, 02 Apr 2003 08:29:08 -0500
On Wed, 02 Apr 2003 01:59:48 -0700, Bryan Richardson 
[EMAIL PROTECTED] wrote:
If I run a version of Tomcat as a standalone web server, can I access a 
database with it or will I need to set it up with Apache to access a 
database?
Tomcat facilitates database connections just fine.  Apache is not needed for 
this.

I have been trying to attach Tomcat with Apache.  I used mod_jk, and I 
could run the java example programs in the examples folder, but it would 
not run java programs under my own folder in webapps.  I believe I have 
the folder,web.xml,etc. set up right because it will run the java programs 
in my folder if I go directly to Tomcat via port 8080 rather than trying to 
run them through Apache.  Has anyone had this same problem or know 
something that I should be doing?
We'd have to know more to help.  Many people are doing this.  Relevant 
portions of httpd.conf (not the whole thing), the Context definitions in 
server.xml, etc.

Someone please help if you can.  Thanks.  Bryan

John

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


_
Add photos to your messages with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail
###
# Auto generated configuration. Dated: Wed Apr 02 12:41:37 MST 2003
###
#
# The following line instructs Apache to load the jk module
#
LoadModule jk_module modules/mod_jk.dll
JkWorkersFile D:/Tomcat/conf/workers.properties
JkLogFile D:/Tomcat/logs/mod_jk.log
#
# Log level to be used by mod_jk
#
JkLogLevel error
###
# SSL configuration   #
#
# By default mod_jk is configured to collect SSL information from
# the apache environment and send it to the Tomcat workers. The
# problem is that there are many SSL solutions for Apache and as
# a result the environment variable names may change.
#
# The following (commented out) JK related SSL configureation
# can be used to customize mod_jk's SSL behaviour.
#
# Should mod_jk send SSL information to Tomact (default is On)
# JkExtractSSL Off
#
# What is the indicator for SSL (default is HTTPS)
# JkHTTPSIndicator HTTPS
#
# What is the indicator for SSL session (default is SSL_SESSION_ID)
# JkSESSIONIndicator SSL_SESSION_ID
#
# What is the indicator for client SSL cipher suit (default is SSL_CIPHER)
# JkCIPHERIndicator SSL_CIPHER
#
# What is the indicator for the client SSL certificated (default is 
SSL_CLIENT_CERT)
# JkCERTSIndicator SSL_CLIENT_CERT
#
# #
###

#
# Root context mounts for Tomcat
#
JkMount /*.jsp ajp12
JkMount /servlet/* ajp12
#
# Auto configuration for the /examples context starts.
#
#
# The following line makes apache aware of the location of the /examples 
context
#
Alias /examples D:/Tomcat/webapps/examples
Directory D:/Tomcat/webapps/examples
   Options Indexes FollowSymLinks
/Directory

#
# The following line mounts all JSP files and the /servlet/ uri to tomcat
#
JkMount /examples/servlet/* ajp12
JkMount /examples/*.jsp ajp12
#
# The following line prohibits users from directly accessing WEB-INF
#
Location /examples/WEB-INF/
   AllowOverride None
   deny from all
/Location
#
# Use Directory too. On Windows, Location doesn't work unless case matches
#
Directory D:/Tomcat/webapps/examples/WEB-INF/
   AllowOverride None
   deny from all
/Directory
#
# The following line prohibits

WEB-INF/web.xml problem

2003-04-02 Thread Bryan Richardson
Here's the deal...I have a .class file that is in the 
webapps/pnm/WEB-INF/classes folder that I am trying to run.  In web.xml I 
have the following:

!-- servlet definition --
   servlet
   servlet-name
Submit
/servlet-name
description
A simple servlet
/description
   servlet-class
ranade.SubmitServlet
/servlet-class
   /servlet
!-- servlet mapppings --
   servlet-mapping
   servlet-name
Submit
/servlet-name
url-pattern
/Submit
/url-pattern
   /servlet-mapping
I can go to http://URL:8080/pnm/Submit and the .class file will run.  
However, if I try to go through my Apache web server and run the .class 
file, I get the Error 404 message.  I'm assuming I have Apache-Tomcat 
configured correctly because I can run the java examples in the Tomcat 
examples folder through Apache.  I'm thinking it has something to do with 
Apache not referencing the web.xml file because when I set up a security 
realm in web.xml, it will ask me for a password when I go directly to Tomcat 
via port 8080, but if I go through Apache the page will come up without 
asking for a password.  Can anyone help me with this?

Thanks.

_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.  
http://join.msn.com/?page=features/virus

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


RE: redirectPort results in HTTP Status 500

2003-02-21 Thread Bryan Field-Elliot
On Fri, 2003-02-21 at 11:10, John Trollinger wrote:

CONFIDENTIAL will only allow it to be transported via https.


That's right. That's the effect I'm trying to achieve... When tomcat
receives a request for /test.jsp on port 80, have it redirect to port
443 with https:. It's documented that this is supposed to work, but, I
am hitting a snag somewheres..

Bryan



RE: redirectPort results in HTTP Status 500

2003-02-21 Thread Bryan Field-Elliot
On Fri, 2003-02-21 at 11:13, Filip Hanik wrote:

make sure your redirect port is set to 443 and not 8443 in
server.xml

Filip


Thanks.. It is (set correctly to 443).

Bryan


Re: redirectPort results in HTTP Status 500

2003-02-21 Thread Bryan Field-Elliot
Well, I was using JDK 1.3.1, and just for fun I tried booting up Tomcat
on JDK 1.4, and the problem below just vanished. It works now. 

I'll report this as a bug (or at least, a request for documentation
addendum) in Bugzilla, if it isn't already...


On Fri, 2003-02-21 at 11:02, Bryan Field-Elliot wrote:

I am (for the first time) playing with security-constraint
transport-guarantee CONFIDENTIAL.

My site is already working fine on ports 80 and 443 (SSL), I've just
never used this declarative security mechanism before.

I have this constraint applied to page test.jsp for me to test the
redirection.

Every time I hit the page, I get a HTTP Status 500 from Tomcat
(4.1.18),
The server encountered an internal error (/test.jsp) that prevented
it
from fulfilling this request..

When I hit the page test.jsp from https://, it loads just fine.

Any help would be appreciated! Am I missing something?

BTW Tomcat is fronted by Apache and mod_webapp.

Bryan






Where are mod_webapp docs??

2003-02-21 Thread Bryan Field-Elliot
It seems that every few months I have to pull up the reference on
mod_webapp (Apache side), and every time, I lose all my hair trying find
where the docs are, on apache.org or on jakarta.apache.org! Can someone
please tell me where the docs are?

Today, all I'm trying to find out, is the formal syntax of the
WebAppDeploy command, and whether or not the URL parameter supports
regular expressions (or wildcards).

Thanks! 

Bryan





How to stop redirectPort from appending :443

2003-02-21 Thread Bryan Field-Elliot
When a Connector's redirectPort kicks in to redirect the user to an
SSL protected version of the same URI, it is appending :443 after the
DNS name of the server. This seems to be throwing off session tracking
later, since subsequent hyperlinks (to other JSP pages) don't have the
:443 in the URL. In any case, it's unnecessary and unsightly. 

How can I get redirectPort to not append :443?

I tried leaving out the redirectPort directive, falling back on the
default (which obviously must be 443), but it's still appending this
string.

Thanks,

Bryan



Re: How to stop redirectPort from appending :443

2003-02-21 Thread Bryan Field-Elliot
I've just confirmed that the below problem is hidden by Internet
Explorer (e.g. the :443 is stripped off), so IE users don't see this. I
test on Mozilla, and after a Tomcat Connector redirectPort occurs, my
URL window looks like this:

https://my.server.com:443/my-page.jsp

It should look like this (assuming redirectPort is set to 443, the
default):

https://my.server.com/my-page.jsp

Can anyone confirm that what I'm seeing is a Tomcat bad assumption (I
won't call it a bug just yet ;) )?

This is more than a cosmetic problem; if my-page.jsp links to other
JSP pages (e.g. using JSTL c:out), then the URL's generated will NOT
have the :443 appended, and my session context between the two pages
is getting lost...

Thanks,

Bryan


On Fri, 2003-02-21 at 13:50, Bryan Field-Elliot wrote:

When a Connector's redirectPort kicks in to redirect the user to
an
SSL protected version of the same URI, it is appending :443 after
the
DNS name of the server. This seems to be throwing off session
tracking
later, since subsequent hyperlinks (to other JSP pages) don't have
the
:443 in the URL. In any case, it's unnecessary and unsightly. 

How can I get redirectPort to not append :443?

I tried leaving out the redirectPort directive, falling back on the
default (which obviously must be 443), but it's still appending this
string.

Thanks,

Bryan




Re: Tomcat and JBoss

2003-02-15 Thread Bryan Field-Elliot
They are very different systems, but they work great together, and JBoss
even distributes a special version of JBoss bundled with (integrated
with) Tomcat.

In short - Tomcat is a container (basically, a server) for Java
Servlets and JSP pages. There are some extra bells and whistles thrown
in but that's it's main job.

JBoss is a full-blown J2EE container, which includes Servlets and JSP
pages (e.g. via Tomcat), but also JMS, EJB, etc.

I suggest buying the book Java Enterprise in a Nutshell published by
O'Reilly for an overview of the whole J2EE framework (e.g. JBoss), and
Servlets/JSP in particular (e.g. Tomcat).

Bryan

On Sat, 2003-02-15 at 11:52, Lior Shliechkorn wrote:

What is the difference between these two software applications? I
heard of JBoss recently, and as my exposure to these technologies is
still very new I'm just not sure. Does JBoss replace Tomcat, or are
they two different layers in the structure of application
presentation.

I know this is not the scope of this list, however, I know most of
you are very knowledgeable and have helped me greatly in getting
many things done.

Thank you very much,

Lior





-
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day




Re: JAASRealm/LoginManager questions

2003-02-14 Thread Bryan Field-Elliot
I was discussing these issues with Jason Hunter, whose opinion is
quoted:

BFE Craig was basically saying, don't assume any particular behavior
which
BFE isn't specified in the spec. So, it's not safe to assume that it
will
BFE be supported to POST to j_security_check a couple of requests
later,
BFE rather than on the very next request. Bum deal. 

JH That makes perfect sense.  The one argument you have back is that
Tomcat
JH is the RI so if Tomcat does it then that's how it should be done,
and
JH then ask him to make sure Tomcat does it.

What do you say, Craig? ;)

It really opens doors, flexibility-wise, to store the original URL
which triggered the authentication request as a session attribute, and
allow multiple requests to occur in the interim, before the authN
request should be considered satisfied by a POST to j_security_check.

It presupposes that none of these intervening requests can be protected
by a security constraint, otherwise you'd throw the container into an
endless loop. ;)

Thanks,

Bryan



Re: JAASRealm/LoginManager questions

2003-02-14 Thread Bryan Field-Elliot
On Fri, 2003-02-14 at 15:16, Will Hartung wrote:

Let me head over to the corner, grab my stool and white, pointy
Ignorant
hat here as I butt in, but could what you want to be done be done
portably
using Filters? IMHO Filters are the most powerful aspect of the 2.3
spec as
they provide a great layering and request trapping mechanism in a
portable
way with which you can do just all sorts of truly horrible things.

I'd be very interested to hear why a Filter would NOT work in this
case, but
as I said, I haven't been totally following the thread here. It's
probably
glaringly pointed out on line 12 of the initial post (RTFML Will!
STFU!).



Filters (and Servlets, and JSP pages) are prohibited from setting the
Subject/Principal (e.g. they are prohibited from actually performing
Authentication).

This whole thread started because, I want to implement a new and
exciting style of authentication, and I wanted to trick the form-based
authentication into working with me instead of against me. This would be
portable across containers if it were possible, but Craig is saying, no,
no, no, no, and no (in as many ways).

I think I'll concede that this is beaten to death, and I'll be diving
into proprietary extensions (such as Tomcat's Authenticator) next.
Thanks Craig for running back and forth with me on this. We'll let it
rest for a day and then perhaps you can field some questions about the
Authenticator class. ;)

Thanks,
Bryan



Configuring a custom Authenticator

2003-02-14 Thread Bryan Field-Elliot
I'm looking at the code for BaseAuthenticator and FormAuthenticator as a
basis for building my own.

It's not clear from the Javadocs where I configure Tomcat to use this
Valve...

1. Do I configure it by declaring a Valve element in server.xml, or is
there a special (undocumented) Authenticator element?

2. Do the other styles of Authenticator (such as FormAuthenticator)
still work, if I install my own custom Authenticator as well?

3. Am I mucking around with web.xml's auth-method element too, adding
my own custom type in addition to BASIC, DIGEST, FORM, and CLIENT-CERT?
If I'm not, then, which of the preceeding am I to configure in that
space?

Thanks,
Bryan









Re: JAASRealm/LoginManager questions

2003-02-13 Thread Bryan Field-Elliot
See my additional question at bottom:

On Sun, 2003-02-09 at 18:09, Craig R. McClanahan wrote:


 However, a Filter (Servlet 2.3)
 could parse this SAML
 response, and re-package the request parameters as a j_username
and a
 j_password (even though, really, the j_username isn't a true
username,
 YET).

Filters aren't going to help ... they run *after* the security
constraints are evaluated, and *after* authentication has taken
place.
That's why you need to use a Valve instead (Authenticator extends
Valve),
to ensure that you run *before*.


 THEN, (still with me?), a JAASRealm could forward this j_username
and
 j_password to my LoginManager, for final SAML processing and log
the
 bloke on.

 It seems a little convoluted, but, what it buys me is, any Servlet
 container which supports form-based authentication, and which
supports
 JAAS for realms (or equivalent), can harness this toolkit. I
assume (but
 have not verified) that this buys me into the major J2EE
containers --
 Weblogic, SunONE, Websphere, etc, in addition to my favorite
(Tomcat).

 Does this sound like it would work?


Ah, if only it would ... it would require a change to the servlet
spec to
allow filters to perform container managed security
authentications.
From a container writer's point of view, I get a little uneasy
thinking
about delegating this responsibility to an application -- but I can
see
some use cases for it.


Craig, there is one subtle point I was trying to make, and I'm not sure
if you got it. I was NOT proposing that my Filter perform
container-managed sercurity authentications (as you went on to explain
was impossible). Instead, I was proposing that my Filter re-write the
request parameters of an incoming FORM-POST into the Servlet-standard
j_username and j_password, and then Forward (or do I have to
Redirect?) to the j_security_check URI. 

My filter would be consuming the SAML response, munging it into other
parameters (j_username, j_password), and re-posting (or forwarding) to
j_security_check.

This would let me use: (a) the standard FORM auth-method in web.xml,
(b), a standard Filter, and (c) a standard JAAS LoginModule, without
having to write any container-specific code (such as a Tomcat
Authenticator).

The assumption I am making in order for this to work, is that the
Servlet spec will allow requests to appear in the middle of the
FORM-based authentication, AFTER the original form has been rendered to
the browser, but BEFORE a POST is made to j_security_check.

With my slightly more detailed explanation, do you still assert that
this can't work, and that I have no choice (today) but to go to
container-specific extensions like Tomcat.Authenticator?

Thanks for hashing this out with me,

Bryan





Re: JAASRealm/LoginManager questions

2003-02-13 Thread Bryan Field-Elliot
See below:

On Thu, 2003-02-13 at 16:14, Craig R. McClanahan wrote:


For Tomcat (at least), such a redirect will not work at all.  The
magic
j_security_check URL is only enabled when the container did its
save
the original request and display the form login page trick.  At all
other
times, you'll get a 404.
That assumption does not match what the spec allows.  Even if you
tried
this, and even if Tomcat listened to j_security_check  at other
times
(to make your idea work), there is no way to implement step 7 of the
required functionality of form based login (the client is
redirected to
the resource using the stored URL path) since there is no such
thing as a
stored URL path -- you bypassed Step 1 where the storing took place.


I assume you're talking about Servlet (2.3) spec section SRV12.5.3, Form
Based Authentication.

I'm not proposing to skip step 1.

Instead, I'm proposing that in step 3, instead of presenting a form
with action=j_security_check, we give a different action URL, such as
a JSP page or Struts action. (Actually let's just forget the whole
Filter angle for the time being).

This JSP page or Struts action takes the request parameters (which will
include things OTHER than j_username and j_password), and will construct
a new request (either as a Servlet forward, or as a browser
POST-by-way-of-Javascript) to j_security_check, containing the
appropriate parameters.

I hear you saying that this isn't possible, but I'm not seeing anything
in the Servlet spec which says, The next HTTP request from the client,
after step 1, MUST be the j_security_check POST. Nor does it say, for
example, if, after step 1, a request comes in for any URI other than
j_security_check, then invalidate the original authentication request
and the
original-requested-URL-wherever-it's-being-kept-for-later-redirecting.

Still no-go? ;)

Bryan




Re: JAASRealm/LoginManager questions

2003-02-13 Thread Bryan Field-Elliot

On Thu, 2003-02-13 at 16:51, Craig R. McClanahan wrote:


First problem ... step 1 is only invoked when
* This request is from an unauthenticated user
* This request is for a protected resource

Now, consider the URL to which you're sending the SOAP message in
the
first place.  Do you protect it with a security constraint or not? 
If you
do not, Step 1 will never happen (and, in Tomcat, the magic
j_security_check will not get enabled).  If you do, then container
managed security will have been completed before your filter ever
gets a
shot at the request.


Never mind SOAP for now. For SAML, there is a SOAP call (as a client)
made inside my intermediating JSP page or Action (the one which consumes
SAML request parameters and produces j_username and j_password), but
that doesn't change the sequence flow I'm trying to nail down here.


 Instead, I'm proposing that in step 3, instead of presenting a
form
 with action=j_security_check, we give a different action URL,
such as
 a JSP page or Struts action. (Actually let's just forget the whole
 Filter angle for the time being).


In other words, you want to replace the standard logic of form based
authentication (as implemented in
org.apache.catalina.authenticator.FormAuthenticator) with something
different than what it actually does.

That's fine ... that's what it means to create a new Authenticator.



 This JSP page or Struts action takes the request parameters (which
will
 include things OTHER than j_username and j_password), and will
construct
 a new request (either as a Servlet forward, or as a browser
 POST-by-way-of-Javascript) to j_security_check, containing the
 appropriate parameters.


As above, j_security_check is not turned on unless the *container*
did
step 1 itself.  And that puts you back to the conundrum described as
first problem above.


Container can do step 1, that's fine. Step 1 culminates in rendering MY
page, which I configured by way of form-login-page in web.xml. All I'm
asking is, in MY form-login-page, can I NOT do the standard form
action=j_security_check, but instead, do some other stuff which will
result in a hit to another one of my JSP pages FIRST, and then finally
get the user to access j_security_check a couple of HTTP requests later?


The spec doesn't say that.  But it doesn't say that j_security_check
is
enabled all the time, either.  All the spec says is what *must* be
supported (i.e. the standard approach).  Counting on anything beyond
that
(even if it might work in some containers) is, by definition, not
portable.


So I guess this is really the crux of the matter... Will containers, in
general, expire the URL path triggering the authentication, if the
next request happens to NOT be for j_security_check?

You're saying, who knows? it's not specified. That by definition isn't
a safe bet.







JAASRealm/LoginManager questions

2003-02-09 Thread Bryan Field-Elliot
We are building out a toolkit for distributed single sign-on, using (today) standards 
such as SAML and Liberty. While the guts of this toolkit are mostly finished, we 
aren't actually populating the Subject/Principals list, and we'd like to add features 
in that direction. I'm admittedly quite new to JAAS, but I know enough to think that 
JAAS might be the right approach.

When a site is ready to request authentication, the SAML model (and our toolkit) like 
to redirect the browser to another site, where first-level authentication occurs. Upon 
return from the remote site, we get a signed login credential, which we validate, and 
ultimately hope to use to populate the Subject/Principal.

We do all of our development on Tomcat, which we consider to be our reference platform.

The basic goal is, (in a standards-compliant way, likely to work on multiple vendors' 
Servlet containers), handle authentication and populate the Subject.

My questions are:

1. Is JAAS the right way to go? I think it is. By using Catalina's JAASRealm, and 
building our own LoginManager, I think we're on the right track. 

2. Can our LoginManager (fronted by Tomcat's JAASRealm) send redirects to the browser, 
and somehow set up listeners for when the user eventually returns (could be a couple 
minutes, and is certainly going to be on a different incoming HTTP request)? Again I'm 
new to JAAS, but something in the Tomcat Javadocs alarms me that this may not be 
possible. From JAASCallbackHander:
Implementation of the JAAS CallbackHandler interface, used to negotiate delivery of 
the username and credentials that were specified to our constructor. No interaction 
with the user is required (or possible).

The last phrase (No interaction with the user is...possible) seems to indicate that 
I might be heading down a dead-end here.

3. Am I wrong that JAASRealm is the way to go? Maybe I need to drop down a layer and 
implement a Catalina Realm directly, rather than use JAASRealm and implement a 
LoginManager?

Thanks very much,

Bryan






Re: JAASRealm/LoginManager questions

2003-02-09 Thread Bryan Field-Elliot
Thanks for all your comments Craig,

I did a little more thinking since my original post.

First, to clarify - you mentioned that in this scenario, there really
isn't a local realm at all, since there is no local user database.
Actually there is, in the SAML model, there's a remote user database and
a local one, which are synchronized (out of band). That's simplifying,
but basically, SAML tells me which of my local userID's the current user
is, without me actually having to ask the user. By all means, there
really is a local realm/local user database.

Now, with form-based authentication, the developer has total control
over the page (e.g. JSP page) displayed. My toolkit could provide a
sample (which SHOULDN'T be altered in any major way), which saves state
information, etc., and redirects to the remote server for
authentication.

When the remote server returns, it can post back to the local server (to
a local JSP page or Servlet), the SAML credentials. True, they will NOT
be in the j_username and j_password format (instead they'll be in
SAML format). However, a Filter (Servlet 2.3) could parse this SAML
response, and re-package the request parameters as a j_username and a
j_password (even though, really, the j_username isn't a true username,
YET).

THEN, (still with me?), a JAASRealm could forward this j_username and
j_password to my LoginManager, for final SAML processing and log the
bloke on.

It seems a little convoluted, but, what it buys me is, any Servlet
container which supports form-based authentication, and which supports
JAAS for realms (or equivalent), can harness this toolkit. I assume (but
have not verified) that this buys me into the major J2EE containers --
Weblogic, SunONE, Websphere, etc, in addition to my favorite (Tomcat).

Does this sound like it would work?

Thanks,
Bryan




Re: JAASRealm/LoginManager questions

2003-02-09 Thread Bryan Field-Elliot
On Sun, 2003-02-09 at 18:09, Craig R. McClanahan wrote:


Ah, if only it would ... it would require a change to the servlet
spec to
allow filters to perform container managed security
authentications.
From a container writer's point of view, I get a little uneasy
thinking
about delegating this responsibility to an application -- but I can
see
some use cases for it.


In my proposal, (contrary to what I read in your response), I wasn't
going to use the Filter to perform actual authentication. Instead, I was
going to use the filter, to re-write the SAML response
(request.getParameter(SAML...)) as standard form authentication
parameters (request.setParameter(j_username, xxx),
request.setParameter(j_password, yyy)). Then, these usernames and
passwords would be passed down to the JAAS layer where my LoginManager
can process them.

But as you say prior, the filters aren't even being run, apparently,
before the container evaluates j_username and j_password, so I guess I
have no Servlet-standard hook there. I guess it's off to the
Authenticator API I go. 

Heck, at least I can keep all the authentication logic in one place with
that strategy, as opposed to splitting it between a Filter and a
LoginModule.





Mod webapp.so

2003-02-01 Thread Bryan A. Zimmer
Hello,

I am trying to configure Tomcat to work with Apache on a Linux box running Redhat 8.0. 
Tomcat itself seemed fine, as does httpd (Apache) by itself, but when I add the 
mod_webapp.so lines to the httpd.conf file, I keep getting messages like:
undefined symbol: ap_table_get, when I restart Apache.

Can anyone shed light on this frustrating problem?

Thanks.



mod webapp

2003-01-26 Thread Bryan A. Zimmer
Hello,

I am trying to configure Tomcat to work with Apache on a Linux box running Redhat 8.0. 
Tomcat itself seemed fine, as does httpd (Apache) by itself, but when I add the 
mod_webapp.so lines to the httpd.conf file, I keep getting messages like:
undefined symbol: ap_table_get.

Can anyone shed light on this frustrating problem?

Thanks.




mod_webapp.so

2003-01-19 Thread Bryan A. Zimmer
Hello.

I have tried to set up apache with tomcat. tomcat4 alone (v 4.1.18) works
OK, but I can't load mod_webapp.so with the other modules in the httpd.conf
file, I get a message saying something like undefined symbol:
ap_table_get.

I am using this on a Linux (RedHat version 8.0). If anyone has any advice
please e-mail me at:

[EMAIL PROTECTED]

Remove NOSPAM to get the actual address.

Thank you.

Bryan Zimmer



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




Cross-Context Application

2002-11-06 Thread Bryan Dollery
Hi guys,

Is it possible from a servlet to forward to a servlet in a different
context? I know that the getRequestDispatcher() method can only refer to
servlets within the current context, so that's no good. I want to pass the
session across the context boundaries too.

Any ideas?

Cheers,

Bryan




b r y a n   d o l l e r y
c h a o s   e n g i n e e r s
 www.ChaosEngineers.co.nz
 +64 (0)21 330607


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Apache/Tomcat and Internationalization

2002-10-29 Thread Bryan Vannortwick
I am trying to use internationalization with an Apache  Tomcat configuration  am 
having a problem getting it to work properly.

The config is (all machines Win2000):

Browser (IE 5.5 - set to Japanese) --- Apache 1.3.26 -- Tomcat 4.0.4 (our 
application installed  running via Tomcat )

 I have used mod_jk to link Apache  Tomcat.

If I use the Browser  Tomcat alone, I can view our application in Japanese just fine.
If I hit the Apache home site (not our application), it comes up in Japanese, (I've 
can also view other html pages set up for it in Japanese)

The problem is when I view our application using BOTH Apache  Tomcat, it comes up in 
English only.  If I 1st access our application using Tomcat, then Apache it will come 
up in Japanese, but upon logoff it goes back to English only again.

Any ideas/help would be appreciated.

Thanks,

Bryan  



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: Manager?

2002-10-23 Thread Bryan Dollery
Hi Craig,

All of this is really informative and very useful, thanks for taking the
time.

Cheers,

Bryan



 -Original Message-
 From: Craig R. McClanahan [mailto:craigmcc;apache.org]
 Sent: Wednesday, October 23, 2002 7:01 PM
 To: Tomcat Users List
 Subject: Re: Manager?




 On Wed, 23 Oct 2002, Bryan Dollery wrote:

  Date: Wed, 23 Oct 2002 16:55:40 +1300
  From: Bryan Dollery [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Subject: Manager?
 
  Hi,
 
  Tomcat 4.1.12 question:
 
  1. Install and Deploy manager functions - what's the difference?
 
  The documents mention something about deploy copying and
 install not doing
  so, but I can't find any more information on this. I've looked
 back through
  this list's archives and can't find any other mention of the
 difference.
 

 Install mounts a WAR file or directory right where it currently sits,
 with no copying.  In effect, it dynamically creates a Context element
 that has an absolute path for the docBase attribute.  Because of this,
 the WAR or directory must exist on the server that is running Tomcat.
 Because no copying occurs, this can happen pretty quickly.

 Deploy uploads a WAR file to a private location within the Tomcat
 directory hierarchy, and runs the webapp directly from there.  Because of
 this, you can deploy to a Tomcat running on a different server than where
 you are.  NOTE - The deploy command uses an HTTP PUT transaction, so
 it's not usable directly from a browser.  The easiest way to use
 it, then,
 is to utilize the custom Ant task that is provided.

 The deploy mechanism is designed for easy integration into tools.  For
 example, the deploytool GUI in the Java Web Services Developer
 Pack uses
 the deploy function behind the scenes for you.

  2. How does tomcat handle manager deployed files?
 

 Note that, in a properly designed webapp, you should not have to care
 about this.  But let's answer the questions for curiousity's sake.

  If I deploy (manager deploy) a simple war file, with a single html page
  linking to a simple hello-world servlet it works fine. But, I
 don't know
  what tomcat is doing with the contents of the war.
 
  I can see that the war itself is copied to the manager work
 directory, and
  that the class files are unpacked. However, the html file, and
 the web.xml
  file don't get unpacked. Does tomcat access these directly
 from the war,
  and if so does it cache them?
 

 Tomcat is perfectly happy to run an application directly from a WAR file
 if you want to.  The classes and JARs have to be copied so that they are
 accessible to the Java compiler utilized to convert your JSP pages into
 servlets.  All the other resources are accessed directly from the WAR.

 Note that exactly the same thing happens to a WAR file that you
 put in the
 webapps directory, if you turn the unpackWARs option off.

 One ramification of running directly from a WAR file *is* visible to your
 webapps - the ServletContext.getRealPath() method will always
 return null,
 because there is no such thing as a real path to a resource embedded in
 a WAR.  To avoid any difficulty caused by this, you should always program
 using ServletContext.getResource() and
 ServletContext.getResourceAsStream()
 if you need access to resources in the WAR.  These calls are
 guaranteed to
 work portably on all servlet containers -- running from unpacked
 directories
 the way Tomcat does is a Tomcat specific feature, and is *not* defined in
 the servlet specification.

  Thanks for any answers you can provide.
 
  Cheers,
 
  Bryan

 Craig


 --
 To unsubscribe, e-mail:
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org




--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Manager?

2002-10-22 Thread Bryan Dollery
Hi,

Tomcat 4.1.12 question:

1. Install and Deploy manager functions - what's the difference?

The documents mention something about deploy copying and install not doing
so, but I can't find any more information on this. I've looked back through
this list's archives and can't find any other mention of the difference.

2. How does tomcat handle manager deployed files?

If I deploy (manager deploy) a simple war file, with a single html page
linking to a simple hello-world servlet it works fine. But, I don't know
what tomcat is doing with the contents of the war.

I can see that the war itself is copied to the manager work directory, and
that the class files are unpacked. However, the html file, and the web.xml
file don't get unpacked. Does tomcat access these directly from the war,
and if so does it cache them?

Thanks for any answers you can provide.

Cheers,

Bryan

b r y a n   d o l l e r y
c h a o s   e n g i n e e r s
 www.ChaosEngineers.co.nz
 +64 (0)21 330607


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




jakarta slide question.

2002-10-08 Thread bryan



I've got slide setup under Tomcat and I'm accessing it using a
webfolder. 
When I access the webfolder I find a sub-folder called files, I suppose
this is from settings either in my Domain.xml or my web.xml, can anyone
give me the location in my domain.xml or web.xml that refers to this
sub-folder, and also can anyone tell me where the actual location of
files under the files sub-folder would be found?


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




RE: jakarta slide question.

2002-10-08 Thread bryan


Found answer.


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




webdav support on Tomcat

2002-10-07 Thread bryan


Anyone know where I can find info about the level of WebDAV support on
Tomcat. The example, documentation that comes with the install so far as
I have found seems only to show how one can set a directory to be
readonly or write enabled, what I'm looking for is information on for
example: Does Tomcat support Locking? If so, how to enable it. Basically
a guideline on working with WebDAV in Tomcat and the level of support
the protocol enjoys.


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




Reference Site?

2002-10-03 Thread Bryan Dollery

Hi guys,

I'm preparing a tender for a local company who want to replace all of their
SAP and satellite systems with a lower cost approach.

I'd like to recommend Tomcat as the container for the  presentation /
controller layer of our proposed architecture.

The client requires reference sites for every tool/technology proposed, so
I'm looking for one (or preferably more) to add to our proposal. The client
is in the warehouse/supply/food market, so if there is anyone in a similar
space it would be great to hear from you.

So, are you using tomcat in a production environment, and if so would you
be willing to act as a reference site? We're based in New Zealand, so this
would only entail a very low volume email chat.

Cheers,

Bryan


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




RE: Deploy or install .war

2002-09-29 Thread Bryan Dollery

Hi Marty,

 I am very new at this.  I have tomcat running and I can view the
 index.jsp in my browser set to localhost: 8080

That's a good start.

 Now I want to deploy or install (not sure which one) a .war   I
 put the .war in webapps and tried to use the manager command of
 both deploy and install by giving it the path..

If you put the war in your webapps then you have manually deployed it - you
don't need to do anything else except restart tomcat, and hit the url.

 No go..it doesn't recognize my command deploy.

You have to do a few things to get the manager working, like add a manager
role, username, and password to the tomcat-users.xml file. Once you've done
that the easiest way to use it is through ANT.

First you need one of the Catalina ant tasks, like this:

taskdef name=deploy classname=org.apache.catalina.ant.DeployTask/

To make this work you need to add the Catalina ant tasks to your
classpath - they're in server/lib/catalina-ant.jar.

Then you need a target that uses this task, something like:

target name=deploy depends=init
  deploy url=${url} username=${un} password=${pw}
path=${context-path} war=file://${war} /
/target

In the init target you'll need to set the variables up:

target name=init
  property name=dist value=dist /
  property name=projectName value=book /
  property name=war value=${dist}/${projectName}.war /
  property name=url value=http://localhost/manager; /
  property name=context-path value=/${projectName} /
  property name=un value=admin /
  property name=pw value=admin /
/target

Then you can simply call ant's deploy task whenever you want to deploy your
war file.

Cheers,

Bryan



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




war not being fully unpacked

2002-09-27 Thread Bryan Dollery

Hi guys,

I'm deploying a war from ANT using the Catalina ant tasks. It seems that
the only things being unpacked are the classes. I've got a WEB-INF/lib
directory that's being ignored, and a bunch of XML files in WEB-INF/classes
that are also being ignored. The files are definitely in the war, and
they're in the right place in the war.

Has anyone got any idea about why this would be happening?

Cheers,

Bryan

b r y a n   d o l l e r y
c h a o s   e n g i n e e r s
 www.ChaosEngineers.co.nz
 +64 (0)21 330607


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




RE: war not being fully unpacked

2002-09-27 Thread Bryan Dollery

forgot to mention - JDK1.4.1, Tomcat 4.1.10

 Hi guys,

 I'm deploying a war from ANT using the Catalina ant tasks. It seems that
 the only things being unpacked are the classes. I've got a WEB-INF/lib
 directory that's being ignored, and a bunch of XML files in
 WEB-INF/classes
 that are also being ignored. The files are definitely in the war, and
 they're in the right place in the war.

 Has anyone got any idea about why this would be happening?

 Cheers,

 Bryan

 b r y a n   d o l l e r y
 c h a o s   e n g i n e e r s
  www.ChaosEngineers.co.nz
  +64 (0)21 330607


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




APRVARS error trying to build mod_webapp

2002-08-26 Thread Bryan Field-Elliot

Hi,

I'm using Tomcat 4.0.4, and now, from sources, I'm trying to build
mod_webapp.

Every time I try ./configure (with various option combinations), I get
this error:

configure: error: cannot find APRVARS file in
/root/src/jakarta-tomcat-connectors-4.0.4-src/webapp/apr

This is with jakarta-tomcat-connectors-4.0.4-src, and the latest APR
from CVS (I got the apr sources per the mod-webapp README).

The version of apache I'm using is Redhat's RPM (apache-1.3.23-14.rpm
and apache-devel-1.3.23-14.rpm)

Any help would be appreciated,

Thank you,

Bryan









Port 8080

2002-07-09 Thread Bryan Zimmer

Greetings,

I am running Tomcat version 4.0.4 with Apache 1.3.26.

Before I installed version 4.0.4, I had no trouble accessing my tomcat
applications, by saying, for example:

mozilla http://my.server.name/examples

This would bring up the $CATALINA_HOME/webapps/examples application
directory, from which I could choose JSP examples or servlets. I could also
do the same with my self-written JSP's, which resided in the directory
$CATALINA_HOME/webapps/baz-jsp.

In that case I could say:

netscape http://my.server.name/baz-jsp

and get to the index.html of that directory.

Now, and perhaps I've installed correctly because this was supposed to work
before, and didn't:

mozilla (or netscape or whatever) http://my.server.name:8080/baz-jsp
(or http://my.server.name:8080/examples)

My question is, how can I get regular port 80 access so the client doesn't
need to specify port 8080 and tomcat is integrated seamlessly with Apache?

Is it something simple, like jus adjusting the port number in server.xml? I
have had some many configuration trials I haven't even tried this. I don't
want to mess up Tomcat-Apache.

Can anyone tell me how to do this? Any advice much appreciated.

I am running with mod_webapp.so, by the way.

Thanks,

Bryan A. Zimmer
[EMAIL PROTECTED]



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




Re: FW: Problems stopping tomcat 4.0.4 on linux

2002-07-08 Thread Bryan Zimmer

I'm afraid I got this wrong again. I checked my process table again and
indeed Tomcat had not started at all, and upon trying to stop, I got the
exact message you described, Connection refused.

What worked for you in this circumstance?

I don't think I am doing anything different as far as configuration goes:
has Tomcat4 changed in version 4.0.4? Mainly what I have done, since tomcat
doesn't even start standalone, is change all the instances of localhost in
server.xml to my server's external dns name, the name it formerly worked
under when I was using 4.0.3. Since it is a test environment, there is no
www alias or anything.

Of course, I tweaked tomcat4.conf to show where my java was located, and
uncommented the parts of catalina.policy that had to do with granting
permissions to /webapps/examples.

I am still clueless now that the problem has changed: tomcat4 won't even
start standalone.

Please tell me what worked for you before, I am obviously missing something,
configuration-wise.

Thanks,
Bryan A. Zimmer
[EMAIL PROTECTED]

- Original Message -
From: Bryan Zimmer [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; 'Tomcat Users List'
[EMAIL PROTECTED]
Sent: Sunday, July 07, 2002 9:22 PM
Subject: Re: FW: Problems stopping tomcat 4.0.4 on linux


 According to my process table ps -ef f Tomcat4 and its numerous
 sub-threads had indeed started. I haven't tweaked the config files so
 I'm not yet sure if it's responding at all as a standalone server.

 Good guess, though.


 On Sunday 07 July 2002 09:01 pm, Daniel Farinha wrote:
  That reminds me of the error I get every time I try to shutdown
  Tomcat when it is not actually running, only I get a
  java.net.ConnectException: Connection refused. This happens often
  during my messing up with the configuration files, since the startup
  script never outputs any errors, including the fact that Tomcat might
  not have started at all (you really have to look at logs/catalina.out
  if you're not sure). When I realise something's gone wrong and try
  stopping Tomcat (without realising it wasn't running at all) then end
  up getting the Exception, along with the thread stack.
 
  Perhaps the NoRouteToHostException is also related to Tomcat not
  having initialised properly, since you do have that problem in
  /webapps/examples?
 
  Dan
 
   -Original Message-
   From: Bryan Zimmer [mailto:[EMAIL PROTECTED]]
   Sent: 08 July 2002 02:42
   To: Tomcat Users
   Subject: Problems stopping tomcat 4.0.4 on linux
  
  
   Greetings,
  
   I am running Tomcat and Apache together on a RedHat Linux
   box. Up until recently they seem to have done quite well. I
   recently encountered a problem that I can not trace to any
   configuration change that I made - I made few or none -
   although the problem seems related to configuration. Just
   today I installed the rpm version of Tomcat 4.0.4, upgrading
   from 4.0.3, first wiping out the old tomcat installation (but
   saving the important config files in a different directory).
   I still get the same results.
  
   On RedHat, the startup script is invoked by issuing the
   command service tomcat4 start, and correspondingly to shut
   down service tomcat4 stop. What happens is that Tomcat
   seems to start up without complaint, although its
   /webapps/examples directory was inaccessible. That may have
   been an Apache problem configuring mod_webapp.so and the
   WarpConnection, or the directory aliases (do they end with a
   slash or not? Is there a printed or online guide to
   configuring mod_webapp and WarpConnection?).
  
   However, when I issued the command service tomcat4 stop, I
   got the following output:
  
   Stopping tomcat4:
   Using CATALINA_BASE:   /var/tomcat4
   Using CATALINA_HOME:   /var/tomcat4
   Using CATALINA_TMPDIR: /var/tomcat4/temp
   Using JAVA_HOME:   /usr/java/jdk   --- symbolic link to
   my /usr/java/j2sdk1.4.0
   Catalina.stop: java.net.NoRouteToHostException: No route to host
   java.net.NoRouteToHostException: No route to host
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:295)
at
   java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:161)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:148)
at java.net.Socket.connect(Socket.java:425)
at java.net.Socket.connect(Socket.java:375)
at java.net.Socket.init(Socket.java:290)
at java.net.Socket.init(Socket.java:118)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:831)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:683)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
   Method)  at
   sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
   orImpl.java:39
   )
at
   sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
   odAccessorImpl
   .java:25

Re: Problems starting tomcat 4.0.4 on linux Was: Problems stopping tomcat 4.0.4 on linux

2002-07-08 Thread Bryan Zimmer

Still having problems, now with starting tomcat4.
Since I got your earlier message, as I said earlier, I am now getting what
seem to be OK startups from the /etc/init.d/tomcat4 script, but tomcat
never actually starts, so as a result I got the same  message you described.

I decided to try a couple of things after studying the script
/etc/init.d/tomcat4.

There is a startup script in /usr/bin called dtomcat4, with options start,
stop, run, etc. I decided to run the script directly. I su'd to be user
tomcat4, and issued the command dtomcat4 run, which gave the following
output:
Using CATALINA_BASE:   /var/tomcat4
Using CATALINA_HOME:   /var/tomcat4
Using CATALINA_TMPDIR: /var/tomcat4/temp
Using JAVA_HOME:   /usr/java/jdk
ERROR reading /var/tomcat4/conf/server.xml
At Line 324 /Server/Service/Connector/
className=org.apache.catalina.connector.warp.WarpConnector port=8008
minProcessors=5 maxProcessors=75 enableLookups=true appBase=webapps
acceptCount=10 debug=0

Catalina.start: java.lang.ClassNotFoundException:
org.apache.catalina.connector.warp.WarpConnector
java.lang.ClassNotFoundException:
org.apache.catalina.connector.warp.WarpConnector
 at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader
.java:1127)
 at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader
.java:992)
 at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:322)
 at java.lang.Class.forName0(Native Method)
 ...
[ class heirarchy snipped ]

 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)

On an earlier attempt it had given me the error:
Error at server.xml line 84
Class not found: org.apache.catalina.connector.Ajp13Connecter

So I commented out the Ajp13 Connector ... tag to see what else would
happen.

Obviously I either don't have the connector classes at all, or the
CLASSPATH wasn't being set to include them. Does anyone have any idea?

I tried re-installing the rpms for tomcat4-4.0.4-full-noarch.jpp.rpm (or
whatever it's called) and also the rpm for the webapps.

I got an error:

Preparing...
##
tomcat4 warning: /etc/rc.d/init.d/tomcat4 saved as
/etc/rc.d/init.d/tomcat4.rpmorig
error: unpacking of archive
failed on file /var/tomcat4/server/lib/servlets-cgi.renametojar;3d2a4ecd:
cpio: read failed - Bad file descriptor
tomcat4-webapps
##

Is this the culprit? Or am I looking at two different problems? Does anyone
have any ideas? I have no been without tomcat for a few days during an
intensive testing period.

Any help would be very much appreciated.



- Original Message -
From: Daniel Farinha [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]; 'Bryan Zimmer'
[EMAIL PROTECTED]
Sent: Sunday, July 07, 2002 9:01 PM
Subject: FW: Problems stopping tomcat 4.0.4 on linux


 That reminds me of the error I get every time I try to shutdown Tomcat
 when it is not actually running, only I get a
 java.net.ConnectException: Connection refused. This happens often
 during my messing up with the configuration files, since the startup
 script never outputs any errors, including the fact that Tomcat might
 not have started at all (you really have to look at logs/catalina.out if
 you're not sure). When I realise something's gone wrong and try stopping
 Tomcat (without realising it wasn't running at all) then end up getting
 the Exception, along with the thread stack.

 Perhaps the NoRouteToHostException is also related to Tomcat not having
 initialised properly, since you do have that problem in
 /webapps/examples?

 Dan

  -Original Message-
  From: Bryan Zimmer [mailto:[EMAIL PROTECTED]]
  Sent: 08 July 2002 02:42
  To: Tomcat Users
  Subject: Problems stopping tomcat 4.0.4 on linux
 
 
  Greetings,
 
  I am running Tomcat and Apache together on a RedHat Linux
  box. Up until recently they seem to have done quite well. I
  recently encountered a problem that I can not trace to any
  configuration change that I made - I made few or none -
  although the problem seems related to configuration. Just
  today I installed the rpm version of Tomcat 4.0.4, upgrading
  from 4.0.3, first wiping out the old tomcat installation (but
  saving the important config files in a different directory).
  I still get the same results.
 
  On RedHat, the startup script is invoked by issuing the
  command service tomcat4 start, and correspondingly to shut
  down service tomcat4 stop. What happens is that Tomcat
  seems to start up without complaint, although its
  /webapps/examples directory was inaccessible. That may have
  been an Apache problem configuring mod_webapp.so and the
  WarpConnection, or the directory aliases (do they end with a
  slash or not? Is there a printed or online guide to
  configuring mod_webapp

Problems stopping tomcat 4.0.4 on linux

2002-07-07 Thread Bryan Zimmer

Greetings,

I am running Tomcat and Apache together on a RedHat Linux box. Up until
recently they seem to have done quite well. I recently encountered a problem
that I can not trace to any configuration change that I made - I made few or
none - although the problem seems related to configuration. Just today I
installed the rpm version of Tomcat 4.0.4, upgrading from 4.0.3, first
wiping out the old tomcat installation (but saving the important config
files in a different directory). I still get the same results.

On RedHat, the startup script is invoked by issuing the command service
tomcat4 start, and correspondingly to shut down service tomcat4 stop.
What happens is that Tomcat seems to start up without complaint, although
its /webapps/examples directory was inaccessible. That may have been an
Apache problem configuring mod_webapp.so and the WarpConnection, or the
directory aliases (do they end with a slash or not? Is there a printed or
online guide to configuring mod_webapp and WarpConnection?).

However, when I issued the command service tomcat4 stop, I got the
following output:

Stopping tomcat4:
Using CATALINA_BASE:   /var/tomcat4
Using CATALINA_HOME:   /var/tomcat4
Using CATALINA_TMPDIR: /var/tomcat4/temp
Using JAVA_HOME:   /usr/java/jdk   --- symbolic link to my
/usr/java/j2sdk1.4.0
Catalina.stop: java.net.NoRouteToHostException: No route to host
java.net.NoRouteToHostException: No route to host
 at java.net.PlainSocketImpl.socketConnect(Native Method)
 at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:295)
 at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:161)
 at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:148)
 at java.net.Socket.connect(Socket.java:425)
 at java.net.Socket.connect(Socket.java:375)
 at java.net.Socket.init(Socket.java:290)
 at java.net.Socket.init(Socket.java:118)
 at org.apache.catalina.startup.Catalina.stop(Catalina.java:831)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:683)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
  FAILED

Tomcat actually did stop, but I can't understand the meaning of No route to
host. The localhost and the machines external IP addresses are both in my
routing table. I checked all the config files I could think of, but couldn't
come up with any ideas.

Can anyone help me solve this dilemma?

Also, I had to use the --nodeps switch on rpm when installing 4.0.4, because
rpm was unaware of the existence of log4j on my machine, but that's another
matter.

Thanks,

Bryan A. Zimmer
[EMAIL PROTECTED]



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




Re: FW: Problems stopping tomcat 4.0.4 on linux

2002-07-07 Thread Bryan Zimmer

According to my process table ps -ef f Tomcat4 and its numerous 
sub-threads had indeed started. I haven't tweaked the config files so 
I'm not yet sure if it's responding at all as a standalone server.

Good guess, though.


On Sunday 07 July 2002 09:01 pm, Daniel Farinha wrote:
 That reminds me of the error I get every time I try to shutdown
 Tomcat when it is not actually running, only I get a
 java.net.ConnectException: Connection refused. This happens often
 during my messing up with the configuration files, since the startup
 script never outputs any errors, including the fact that Tomcat might
 not have started at all (you really have to look at logs/catalina.out
 if you're not sure). When I realise something's gone wrong and try
 stopping Tomcat (without realising it wasn't running at all) then end
 up getting the Exception, along with the thread stack.

 Perhaps the NoRouteToHostException is also related to Tomcat not
 having initialised properly, since you do have that problem in
 /webapps/examples?

 Dan

  -Original Message-
  From: Bryan Zimmer [mailto:[EMAIL PROTECTED]]
  Sent: 08 July 2002 02:42
  To: Tomcat Users
  Subject: Problems stopping tomcat 4.0.4 on linux
 
 
  Greetings,
 
  I am running Tomcat and Apache together on a RedHat Linux
  box. Up until recently they seem to have done quite well. I
  recently encountered a problem that I can not trace to any
  configuration change that I made - I made few or none -
  although the problem seems related to configuration. Just
  today I installed the rpm version of Tomcat 4.0.4, upgrading
  from 4.0.3, first wiping out the old tomcat installation (but
  saving the important config files in a different directory).
  I still get the same results.
 
  On RedHat, the startup script is invoked by issuing the
  command service tomcat4 start, and correspondingly to shut
  down service tomcat4 stop. What happens is that Tomcat
  seems to start up without complaint, although its
  /webapps/examples directory was inaccessible. That may have
  been an Apache problem configuring mod_webapp.so and the
  WarpConnection, or the directory aliases (do they end with a
  slash or not? Is there a printed or online guide to
  configuring mod_webapp and WarpConnection?).
 
  However, when I issued the command service tomcat4 stop, I
  got the following output:
 
  Stopping tomcat4:
  Using CATALINA_BASE:   /var/tomcat4
  Using CATALINA_HOME:   /var/tomcat4
  Using CATALINA_TMPDIR: /var/tomcat4/temp
  Using JAVA_HOME:   /usr/java/jdk   --- symbolic link to
  my /usr/java/j2sdk1.4.0
  Catalina.stop: java.net.NoRouteToHostException: No route to host
  java.net.NoRouteToHostException: No route to host
   at java.net.PlainSocketImpl.socketConnect(Native Method)
   at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:295)
   at
  java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:161)
   at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:148)
   at java.net.Socket.connect(Socket.java:425)
   at java.net.Socket.connect(Socket.java:375)
   at java.net.Socket.init(Socket.java:290)
   at java.net.Socket.init(Socket.java:118)
   at org.apache.catalina.startup.Catalina.stop(Catalina.java:831)
   at org.apache.catalina.startup.Catalina.execute(Catalina.java:683)
   at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
  Method)  at
  sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
  orImpl.java:39
  )
   at
  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
  odAccessorImpl
  .java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
FAILED
 
  Tomcat actually did stop, but I can't understand the meaning
  of No route to host. The localhost and the machines
  external IP addresses are both in my routing table. I checked
  all the config files I could think of, but couldn't come up
  with any ideas.
 
  Can anyone help me solve this dilemma?
 
  Also, I had to use the --nodeps switch on rpm when installing
  4.0.4, because rpm was unaware of the existence of log4j on
  my machine, but that's another matter.
 
  Thanks,
 
  Bryan A. Zimmer
  [EMAIL PROTECTED]
 
 
 
  --
  To unsubscribe, e-mail:
  mailto:tomcat-user- [EMAIL PROTECTED]
  For
  additional commands,
  e-mail: mailto:[EMAIL PROTECTED]

-- 
Bryan A. Zimmer
[EMAIL PROTECTED]

 Populus vult decipi.
[The people like to be deceived.]


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




Newbie can't deploy web own JSP

2002-06-09 Thread Bryan Zimmer

Greetings,

I have Tomcat4-4.0.3 configured to run with Apache. I am trying to deploy my
own simple web application but have had no success.

My application (actually copied from a book) consists of a bean called
(JSPCal/Cal.class) and a jsp page to display a Calendar by calling the
bean's methods.

I am running RedHat Linux version 7.3 on my tomcat server.

What steps do I have to do to install my own web app?
I did the following:

1. Created an alias for the directory in httpd.conf
Alias /baz-jsp/ /var/tomcat4/webapps/baz-jsp/

2. I copied the same information for the Directory entry that I had down
for the examples application.

3. I created /var/tomcat4/webapps/baz-jsp with the subdirectories jsp and
WEB-INF. I copied the web.xml from the /var/tomcat4/webapps/examples
directory. I didn't change much. I don't understand web.xml, but most of it
looked like system-y stuff (like the filter entries). The there were the
names of some servlets but nothing about JSP's. So I did not add information
about my Cal.jsp or my bean JSPCal.class in the web.xml.

4. I created a classes subdirectory of WEB-INF and put Cal.class (the bean)
there. I put Cal.jsp in the jsp subdirectory of
/var/tomcat4/webapps/baz-jsp.

5. Back in /etc/httpd/conf/httpd.conf, I created an entry for baz-jsp
using the same WarpConnection as for examples.

6. Basically I tried to get baz-jsp looking like examples, as configured.

By the way, I have never been successful in getting the opening page for
tomcat to display...the famous one that shows the in the upper left corner.
I get to the examples by pointing my browser at
http://mail.baz-tech.com/examples/.
(This should be inaccessible from outside my firewall.)

This gives my an index of three directories. When I tried the same thing as
http://mail.baz-tech.com/baz-jsp/ I got an error message in the browser,
Resource not available.

Can anyone tell me the basics of setting up a web application, or point me
to any good resources on the subject?

Thanks for your time.

Bryan Zimmer



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




RE: about JavaBeans

2002-06-04 Thread McLane, Bryan

Simply, put the value in an attribute of the bean and access through the
getter. See mtemp in the example attached.

-Original Message-
From: Anibal Constante Brito [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 03, 2002 11:35 PM
To: Tomcat
Subject: about JavaBeans


I'm doing a simple JavaBenas, like the

jsp:useBean id=JSPWithCounterBeanId scope=session
class=jsptutorial.JSPWithCounterBean /
jsp:setProperty name=JSPWithCounterBeanId property=* /

It very simple, but my question is how can I send text o something to
browser from inside the JavaBeans, inside de JSPWithCounterBeanId for
example?

Best Regards.
Owen.



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




Result.jsp
Description: Binary data


ExceptionInfo.java
Description: Binary data


RuleInfo.java
Description: Binary data


PcraRestrictionsReturn.java
Description: Binary data


RestrictionsInfo.java
Description: Binary data

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


RE: Problems with Oracle/JNDI/ConnectionPoolDataSource

2002-04-16 Thread Bryan Austad

I tried the configuration that you are using and could not get it to work.
Is the databaseName in server.xml the service name (SID)?  I tried using the
SID and the tns name there and still got a null when calling to retrieve the
datasource or PooledConnectionDataSource.  Tyrex is working just fine, I
just can't get Oracle pooled connections.  Is there anything else needed
besides what you added in this email?

tks
Bryan

-Original Message-
From: Eichfelder, Frank [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 16, 2002 7:12 AM
To: [EMAIL PROTECTED]
Subject: Problems with Oracle/JNDI/ConnectionPoolDataSource


Hi,

I finally managed to get the JNDI-DataSource to work with Tomcat 4.0.3.
Here the setting of server.xml:

Resource name=jdbc/BuergerPortalDb auth=Container
  type=javax.sql.DataSource/
  ResourceParams name=jdbc/BuergerPortalDb

parameternamefactory/namevalueoracle.jdbc.pool.OracleDataSourceFacto
ry/value/parameter
parameternameuser/namevaluexxx/value/parameter
parameternamepassword/namevaluexxx/value/parameter

parameternamedriverType/namevaluethin/value/parameter

parameternameserverName/namevalueserver/value/parameter

parameternameportNumber/namevalueport/value/parameter

parameternamedatabaseName/namevaluedbName/value/parameter
  /ResourceParams

Now, I added the following in my web.xml:

resource-ref
descriptiondescription/description
res-ref-namejdbc/BuergerPortalDb/res-ref-name
res-typeoracle.jdbc.pool.OracleConnectionPoolDataSource/res-type
res-authContainer/res-auth
res-sharing-scopeShareable/res-sharing-scope
  /resource-ref

And finally, in the Java-File I added:

Context initCtx = new InitialContext();

  Context envCtx = (Context) initCtx.lookup(java:comp/env);
  ConnectionPoolDataSource cpds = (ConnectionPoolDataSource)
envCtx.lookup(jdbc/BuergerPortalDb);

  PooledConnection pconn = cpds.getPooledConnection(xxx, xxx);

  Connection conn = pconn.getConnection();

And, you won't believe it, it really works!!!

But there's one odd point I want to correct:
The User/Password-Setting in the server.xml file is always ignored - I have
always to pass these two parameters when calling
getPooledConnection(name, password);

If I call getPooledConnection() without these two parameters, I get some
nice exceptions.

Now it is quite tedious to store the user/password-combination in the
source-code, if you could store it in the server.xml...

Has anybody an idea how to make it work via server.xml only?

Frank

mailto:[EMAIL PROTECTED]

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


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




Re: Persistent Context names with auto-deploy

2002-04-10 Thread bryan collins

I am using manager for the intial deployment of an app.
I don't want to have to re-deploy the apps each time TC starts up.

Is there a way for TC to remember what path you deployed an app on via
the manager app?
Keep in mind that unpackwars=true must be set for filesystem access.


Thanks
Bry

Jeff Larsen said:
[ Charset ISO-8859-1 unsupported, converting... ]
 Since you are using the manager app to deploy your war files, there is no 
 need to keep the war files in the webapps directory. Make a separate
 directory outside of /www/webapps, perhaps /www/war. Then Tomcat
 won't find them when it starts up.
 
 Jeff
 
 
 - Original Message - 
 From: bryan collins [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, April 10, 2002 12:15 AM
 Subject: Persistent Context names with auto-deploy
 
 
  Hi,
  
  I have an environment that serves requests via apache, on Solaris.
  I have configured Tomcat 4.0.3 with mod_jk, most things appear to be working
  just fine.
  
  Apache is configured to pass /apps/* to tomcat via ajp13 protocol.
  Tomcat is configured with an appbase of /www/webapps
  
  I automatically deploy my .war files on paths of /apps/servletname
  so I can have completely independant contexts for each servlet.
  
  This works, and I can access the app via apache.
  However, when tomcat restarts, it finds the servlet in the appbase, since
  unpackWARS=true, and automatically deploys it under /
  
  My question is, How can I force persistance of Context paths across a Tomcat
  restart, when using automatic deploy (via the manager app)
  
  i.e
  auto-deploy foo.war on /apps/foo (via manager)
  TC extracts the war to /www/webapps/foo, everything works perfectly.
  After TC restart, TC deploys the servlet as /foo, not /apps/foo.
  
  Any ideas?
  
  Many Thanks
  Bry
  
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

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




NoClassDefFoundError With Tomcat 4.0.2 and Xalan 2.3.1

2002-04-09 Thread Bryan Joyner

I'm getting a NoClassDefFoundError in a servlet when loading
javax.xml.transform.Source. Im using Tomcat 4.0.2 and Xalan 2.3.1.
xalan.jar and xml-apis.jar are both in my war file in the WEB-INF/lib
directory. I have worked around the problem  by putting these jars in
the $CATALINA_HOME/lib. But I don't want to have to do this. Is this a
known issues? 

Bryan Joyner
Sr. Software Engineer
ZixIt Corporation

Office: (214) 370-2027
Fax: (214) 370-2073
[EMAIL PROTECTED]
To send email secure and certified, Just ZixIt!(tm) 
zixmail(tm) is the most convenient way to add security to your email. If
you would like to add privacy, security and certified receipts to your
email, download zixmail(tm) from http://www.zixmail.com. 



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




Persistent Context names with auto-deploy

2002-04-09 Thread bryan collins

Hi,

I have an environment that serves requests via apache, on Solaris.
I have configured Tomcat 4.0.3 with mod_jk, most things appear to be working
just fine.

Apache is configured to pass /apps/* to tomcat via ajp13 protocol.
Tomcat is configured with an appbase of /www/webapps

I automatically deploy my .war files on paths of /apps/servletname
so I can have completely independant contexts for each servlet.

This works, and I can access the app via apache.
However, when tomcat restarts, it finds the servlet in the appbase, since
unpackWARS=true, and automatically deploys it under /

My question is, How can I force persistance of Context paths across a Tomcat
restart, when using automatic deploy (via the manager app)

i.e
auto-deploy foo.war on /apps/foo (via manager)
TC extracts the war to /www/webapps/foo, everything works perfectly.
After TC restart, TC deploys the servlet as /foo, not /apps/foo.

Any ideas?

Many Thanks
Bry

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




War files and config info

2002-04-08 Thread Bryan P. Glennon

Hi -
We have a web app that gets distributed in a war file to a tomcat
4.0x server. One of the things in the war file is a configuration file
for the app. This is an XML file that we open as a resource (using
getResourceAsStream()) in our main servlet init() method. So far, so
good. But, we need a way to override this file so that we can make
config changes without redistributing the entire application. If we
don't use a war file, we can just put the override file (using the same
name) in a directory that is earlier in the class path. But we would
like to keep the war file, since it does make distribution a bit easier.

Any ideas on how to make this work?

FYI, the exact call we use to open the config file is  InputStream
in = this.getClass().getClassLoader().getResourceAsStream(configFile);

TIA,
Bryan

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




ZipException on web app deploy (in catalina.out)

2002-03-18 Thread Bryan Field-Elliot

I'm having a very puzzling problem... I have a .war file which deploys
fine on one machine. On another machine however, when I deploy it in
Tomcat (4.0.3), I get:

java.util.zip.ZipException: invalid END header (bad central directory
offset)

the last interesting call in the stack trace is:

org.apache.cataline.loader.WebappLoader.setRepositories(WebappLoader.java:1005)

I tested my .war file by extracting it (with jar), and it's fine.
Furthermore, inside of the .war file's WEB-INF/lib directory, I tested
every single .jar file the same way.. They all extract correctly, no
errors reported.

Lastly, my webapp as far as I can tell is functioning fine.

I'm very puzzled by this error message (in catalina.out) and was
wondering if anyone has any ideas?

Thanks,
Bryan




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




Manager reload of web.xml?

2002-03-11 Thread Bryan Field-Elliot

I'm having trouble getting Tomcat to reload my web application's
web.xml file, and wondering if there is an official word or FAQ on how
to do this? I've seen mention of Tomcat not reloading web.xml in the
archives, but I'm not sure if this is a bug, or improper use of the
Manager app, on my part.

Basically, my re-deploy process is:

1. Delete my application's subdirectory under tomcat/webapps
2. Re-create from scratch my app's subdirectory under tomcat/webapps
3. Call the Manager servlet, with the reload command (using Lynx which I
do within Ant).

Any classes I change are reloaded correctly, as are configuration
changes I make to other files (such as struts-config.xml). But web.xml
doesn't seem to get reloaded, without a total shutdown and startup of
Tomcat.

Thanks,

Bryan





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




RE: Problem with ISAPI redirector for Tomcat 4.0.2

2002-03-01 Thread Bryan Baker

I think you're absolutely correct. I was using a .reg file created from the
documentation for AJP, which has the old name for the .dll.

Thanks,
Bryan Baker

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 1:33 AM
To: Tomcat Users List
Subject: RE: Problem with ISAPI redirector for Tomcat 4.0.2


 [ISAPI redirector for Tomcat 4.0.2 does not work but Version 3.3 works]

I've got the same problem. I think the problem are 
the different names of the filter.
My solution is:

Rename the filter for 4.0.2 to isapi_redirect.dll
or change the name in the registry 

[HKEY_LOCAL_MACHINE\SOFTWARE\
Apache Software Foundation\Jakarta Isapi Redirector\1.0]
extension_uri=/jakarta/isapi_redirector.dll

(autoconf creates also the wrong name).


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

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




Problem with ISAPI redirector for Tomcat 4.0.2

2002-02-28 Thread Bryan Baker

Hello,

I added the ISAPI redirector for 4.0.2 (isapi_redirector.dll, dated 13 Feb
2002, sized 241766 bytes) to IIS 5.0 (W2K SP2). Tomcat 4.0.2 works fine, but
when requesting a resource via IIS I got the message:

The specified module could not be found.

I deleted this filter, and downloaded and installed the ISAPI filter for
3.3. That works--IIS redirects the requests to Tomcat and a correct response
is generated. I made no other changes to IIS or Tomcat to get this to work.

Is there a bug in the new isapi_redirector.dll? Or are there additional
configuration steps needed?

Bryan Baker
ESRI, Inc.
Redlands, CA, USA

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




javax.activation.DataSource AND javax.sql.DataSource

2002-02-25 Thread Bryan Austad

I have a big problem.  I am currently using Apache SOAP 2.2 with Tomcat
4.0.2.  I am using javax.activation package in SOAP to send file
attachments.  The problem I have is when ever a use it, it messes up my
javax.sql.DataSource.  Here is the code that retrieves a connection from a
javax.sql.DataSource:

   public static Connection getConnection (String dsName) throws
javax.naming.NamingException,Exception{
Context initCtx = new InitialContext();
  javax.sql.DataSource ds =
(javax.sql.DataSource)initCtx.lookup
(java:comp/env/jdbc/MySource);

   Connection conn = ds.getConnection();
   return conn;
   } //getConnection(String)

This works just great until after this call is made:(this method is in a
seperate class)

public DataHandler getFile(String fileName, String userName, int revision)
throws Exception {
File f = new File(this.clientPath + fileName);
if(!f.exists())
throw new Exception(File not found.);
try{
javax.activation.DataSource ds = new FileDataSource(f);
DataHandler dh = new DataHandler(ds);
return dh;
}catch(Exception e){
System.err.println(e.getMessage());
throw new Exception(e.getMessage());
}
}

This call works great to, but messes up my javax.sql.DataSource.  After this
method call is made, it freezes on retrieving the Context in the method
getConnection.
If anyone has the slightest idea of what is going on, I would appreciate
your help.

thanks,
Bryan


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




javax.naming.NoInitialContextException:

2002-02-20 Thread Bryan Austad

I am getting the error:
 javax.naming.NoInitialContextException: Need to specify class name in
environment or system property, or as an applet parameter, or in an
application resource file:  java.naming.

I am using Tomcat 4.0.2, and trying to use its database pooling.  The first
few calls work, but then I eventually get this error.  I have a separate
class that manages retrieving and releasing the connections to the pool.
Here is the method that is used to retrieve the connection.

 public static Connection getConnection (String dsName) throws
javax.naming.NamingException,Exception{
   Context initCtx = new InitialContext();
   Context envCtx = (Context) initCtx.lookup(java:comp/env);
   DataSource ds = (DataSource)
   envCtx.lookup(dsName);
   Connection conn = ds.getConnection();
   return conn;
   }

There error gets thrown on the line:
 Context envCtx = (Context) initCtx.lookup(java:comp/env);

Once again, it works when you first try to get a connection.  Here are the
settings I have in server.xml for the database.

   !-- Apache SOAP Context --
Context path=/soap docBase=soap
 reloadable=true
Resource name=jdbc/DaVinci auth=SERVLET
 type=javax.sql.DataSource/
ResourceParams name=jdbc/DaVinci
parameternameuser/namevaluedavinci/value/parameter

parameternamepassword/namevaluedavinci/value/parameter
parameternamedriverClassName/name
valueoracle.jdbc.driver.OracleDriver/value/parameter
parameternamedriverName/name
valuejdbc:oracle:thin:@[the_host]:xprod/value/parameter
  /ResourceParams
/Context

Here are the web.xml settings I have...
  resource-ref
description
Resource reference to a factory for java.sql.Connection
instances that may be used for talking to a particular
database that is configured in the server.xml file.
/description
res-ref-name
  jdbc/DaVinci
/res-ref-name
res-type
  javax.sql.DataSource
/res-type
res-auth
  Container
/res-auth
  /resource-ref

Can anyone help me?
Thanks
Bryan


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




RE: Loading property files using ClassLoader.getSystemResource()

2002-02-13 Thread Bryan Austad

Is the wrapper.properties file relevant when it comes to Tomcat 4.0.2?

-Original Message-
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 13, 2002 4:32 AM
To: 'Tomcat Users List'
Subject: RE: Loading property files using
ClassLoader.getSystemResource()



First, you could use getResource instead of getSystemResource.
System Resource doesn't use the class loader delegation and only uses the
root class loader.  Second, if you don't want to change your code, you need
to modify the wrapper.properties file.  In there it builds up a classpath
that is then passed on to Java.  You could add your directory to that
classpath.

Randy


 -Original Message-
 From: Bryan Austad [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 12, 2002 7:58 PM
 To: [EMAIL PROTECTED]
 Subject: Loading property files using ClassLoader.getSystemResource()
 
 
 I use ClassLoader.getSystemResource() to load property files 
 through out my
 application.  I then am able to set the directory of where 
 these property
 files are located in the CLASSPATH.  I then can load the 
 property files.
 With Tomcat 4.0.2 using the NT/2K service, and cannot specify 
 a directory of
 where these property files are, therefore they are not 
 loading.  I tried
 putting these resources(property files) in the 
 WEB-INF/classes directory,
 the %CATALINA_HOME%/classes directory, or the 
 %CATALINA_HOME%/common/classes
 directory.  Still I am unable to load the property files.  I 
 even tried the
 lib directories at all levels.  The only way I could get this 
 to work was
 modifying the catalina.bat file and appending to the 
 CLASSPATH.  I want it
 to work with the NT/2K service though.  Is it possible?  Or 
 am I going to
 need to redesign how I load the property files in my application?
 
 Thanks
 Bryan
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

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

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




RE: Loading property files using ClassLoader.getSystemResource()

2002-02-13 Thread Bryan Austad

I use a class with static methods to load properties.  getResource() does
not return a static URL, so I cannot use it within my static method.
getSystemResource() returns a static URL.

-Original Message-
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 13, 2002 4:32 AM
To: 'Tomcat Users List'
Subject: RE: Loading property files using
ClassLoader.getSystemResource()



First, you could use getResource instead of getSystemResource.
System Resource doesn't use the class loader delegation and only uses the
root class loader.  Second, if you don't want to change your code, you need
to modify the wrapper.properties file.  In there it builds up a classpath
that is then passed on to Java.  You could add your directory to that
classpath.

Randy


 -Original Message-
 From: Bryan Austad [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 12, 2002 7:58 PM
 To: [EMAIL PROTECTED]
 Subject: Loading property files using ClassLoader.getSystemResource()


 I use ClassLoader.getSystemResource() to load property files
 through out my
 application.  I then am able to set the directory of where
 these property
 files are located in the CLASSPATH.  I then can load the
 property files.
 With Tomcat 4.0.2 using the NT/2K service, and cannot specify
 a directory of
 where these property files are, therefore they are not
 loading.  I tried
 putting these resources(property files) in the
 WEB-INF/classes directory,
 the %CATALINA_HOME%/classes directory, or the
 %CATALINA_HOME%/common/classes
 directory.  Still I am unable to load the property files.  I
 even tried the
 lib directories at all levels.  The only way I could get this
 to work was
 modifying the catalina.bat file and appending to the
 CLASSPATH.  I want it
 to work with the NT/2K service though.  Is it possible?  Or
 am I going to
 need to redesign how I load the property files in my application?

 Thanks
 Bryan


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


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


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




RE: Loading property files using ClassLoader.getSystemResource()

2002-02-13 Thread Bryan Austad

Yes, I mean the getSystemResource is a static method.  I call this static
method from another static method

   static public String formFullPath( String fName )
   {
  URL url;

  if (fName.charAt(0) == '/'){
 System.out.println(fName is  + fName);
 return fName;
  }
  url = ClassLoader.getSystemResource(fName);
  System.out.println(url is  + url);
  return (url == null) ? fName : url.getFile();
   }

When I try using ClassLoader.getResource(fName), I get a compile error:

non-static method getResource(java.lang.String) cannot be referenced
from a
static context

How do I get around this?

-Original Message-
From: Christopher K. St. John [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 13, 2002 11:00 AM
To: Tomcat Users List
Subject: Re: Loading property files using
ClassLoader.getSystemResource()


Bryan Austad wrote:

 I use a class with static methods to load properties.  getResource() does
 not return a static URL, so I cannot use it within my static method.
 getSystemResource() returns a static URL.


 static URL?

 Do you mean that getSystemResource() is a static method in
ClassLoader? That's true, but you're allowed to call non-static
methods on other objects inside a static method. In fact,
getSystemResource() just gets the system classloader with
getSystemClassLoader() and calls getResource() on it.

 Where are you calling the static methods from? From the init()
of a servlet? If so, you can get the servlet's classloader and
pass it to the static method.


--
Christopher St. John [EMAIL PROTECTED]
DistribuTopia http://www.distributopia.com

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


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




RE: Loading property files using ClassLoader.getSystemResource()

2002-02-13 Thread Bryan Austad

Sorry...solved it.  Did this...

static public String formFullPath( String fName )
   {
  URL url;

  if (fName.charAt(0) == '/'){
 System.out.println(fName is  + fName);
 return fName;
  }   
  //url = ClassLoader.getSystemResource(fName);
  ClassLoader cl = ClassLoader.getSystemClassLoader();
  url = cl.getResource(fName);
  System.out.println(url is  + url);
  return (url == null) ? fName : url.getFile();
   }

-Original Message-
From: Christopher K. St. John [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 13, 2002 11:00 AM
To: Tomcat Users List
Subject: Re: Loading property files using
ClassLoader.getSystemResource()


Bryan Austad wrote:
 
 I use a class with static methods to load properties.  getResource() does
 not return a static URL, so I cannot use it within my static method.
 getSystemResource() returns a static URL.
 

 static URL?

 Do you mean that getSystemResource() is a static method in
ClassLoader? That's true, but you're allowed to call non-static
methods on other objects inside a static method. In fact,
getSystemResource() just gets the system classloader with
getSystemClassLoader() and calls getResource() on it.

 Where are you calling the static methods from? From the init()
of a servlet? If so, you can get the servlet's classloader and
pass it to the static method.


-- 
Christopher St. John [EMAIL PROTECTED]
DistribuTopia http://www.distributopia.com

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

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




RE: Loading property files using ClassLoader.getSystemResource()

2002-02-13 Thread Bryan Austad

Thank you Christopher and Craig,
  I used the 
  ClassLoader cl = Thread.currentThread().getContextClassLoader();
  This worked great! I appreciate the help.

Bryan

-Original Message-
From: Christopher K. St. John [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 13, 2002 11:25 AM
To: Tomcat Users List
Subject: Re: Loading property files using
ClassLoader.getSystemResource()


Bryan Austad wrote:
 
 I call this static method from another static method.. When
 I try using ClassLoader.getResource(fName), I get a compile
 error: non-static method getResource(java.lang.String) cannot
 be referenced from a static context
 
 How do I get around this?
 

 The simplest correct way is to just keep adding ClassLoader
params all the way up until you get to a non-static method. 

 If you're absolutely 100% sure that the classes with the
static methods will be loaded with the same classloader as
the servlet, then you can do something like:

  ClassLoader cl = MyClass.class.getClassLoader();
  cl.getResource(someResource);

 If the classes with the static methods might be loaded
from a different classloader (like if you put them in the
CATALINA_HOME/shared), then you'll run into a problem. In
that case, you need to something like:

   ClassLoader cl = Thread.currentThread().getContextClassLoader();

 But, personally, I'd avoid the whole context class loader
thing if at all possible. Even if you read all the docs and
understand it, chances are the next person who looks at your
code will be totally mystified.

-- 
Christopher St. John [EMAIL PROTECTED]
DistribuTopia http://www.distributopia.com

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

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




RE: Defining your own class

2002-02-12 Thread Bryan Austad

What does your classpath look like when compiling?  
   javac -classpath ? YourClass


-Original Message-
From: smashingwebs [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 12, 2002 5:44 PM
To: [EMAIL PROTECTED]
Subject: JSP: Defining your own class


Hi All,
I am using tomcat for my jsp container. I have a book that
says that if I want to define my own class and constructor
I need to make it extend a class in org.apache.jasper.runtime.*;
called HttpJspBase. The problem is when I try to compile
it with jdk1.3.1 I get the message that this file doesn't exist.
I know it exists in the Tomcat lib under jasper.jar
But if I try to put that jar file into my jdk lib file...it
still wont find it.
Anybody have any ideas or any other way I can define my
own class and get jsp servlets to recognize it. I've tried
many different things from defining the class on the jsp
page to compiling the class  (without HttpJspBase) and 
putting it all over the place in tomcat.


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




Loading property files using ClassLoader.getSystemResource()

2002-02-12 Thread Bryan Austad

I use ClassLoader.getSystemResource() to load property files through out my
application.  I then am able to set the directory of where these property
files are located in the CLASSPATH.  I then can load the property files.
With Tomcat 4.0.2 using the NT/2K service, and cannot specify a directory of
where these property files are, therefore they are not loading.  I tried
putting these resources(property files) in the WEB-INF/classes directory,
the %CATALINA_HOME%/classes directory, or the %CATALINA_HOME%/common/classes
directory.  Still I am unable to load the property files.  I even tried the
lib directories at all levels.  The only way I could get this to work was
modifying the catalina.bat file and appending to the CLASSPATH.  I want it
to work with the NT/2K service though.  Is it possible?  Or am I going to
need to redesign how I load the property files in my application?

Thanks
Bryan


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




RE: Defining your own class

2002-02-12 Thread Bryan Austad

Have you tried...
   javac -classpath [path]/jasper.jar YourClass.java

-Original Message-
From: Bryan Austad [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 12, 2002 5:55 PM
To: Tomcat Users List
Subject: RE: Defining your own class


What does your classpath look like when compiling?  
   javac -classpath ? YourClass


-Original Message-
From: smashingwebs [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 12, 2002 5:44 PM
To: [EMAIL PROTECTED]
Subject: JSP: Defining your own class


Hi All,
I am using tomcat for my jsp container. I have a book that
says that if I want to define my own class and constructor
I need to make it extend a class in org.apache.jasper.runtime.*;
called HttpJspBase. The problem is when I try to compile
it with jdk1.3.1 I get the message that this file doesn't exist.
I know it exists in the Tomcat lib under jasper.jar
But if I try to put that jar file into my jdk lib file...it
still wont find it.
Anybody have any ideas or any other way I can define my
own class and get jsp servlets to recognize it. I've tried
many different things from defining the class on the jsp
page to compiling the class  (without HttpJspBase) and 
putting it all over the place in tomcat.


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

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




RE: Defining your own class

2002-02-12 Thread Bryan Austad

Have you tried...
   javac -classpath [PATH]/jasper-runtime.jar myclass.java?

If you are using Tomcat 4.0.2 I know this class is in jasper-runtime.jar.  

-Original Message-
From: smashingwebs [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 12, 2002 5:55 PM
To: Tomcat Users List
Subject: Re: Defining your own class


to compile I just change directories to jdk1.3.1:/ and go javac
myclass.java

P.S. I should note that I have tried something that does work
which is to compile my class without HttpJspBase and then
jaring it with the tomcat servlet library, but this then makes
my application totally unportable


- Original Message -
From: Bryan Austad [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, February 12, 2002 4:55 PM
Subject: RE: Defining your own class


 What does your classpath look like when compiling?
javac -classpath ? YourClass


 -Original Message-
 From: smashingwebs [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 12, 2002 5:44 PM
 To: [EMAIL PROTECTED]
 Subject: JSP: Defining your own class


 Hi All,
 I am using tomcat for my jsp container. I have a book that
 says that if I want to define my own class and constructor
 I need to make it extend a class in org.apache.jasper.runtime.*;
 called HttpJspBase. The problem is when I try to compile
 it with jdk1.3.1 I get the message that this file doesn't exist.
 I know it exists in the Tomcat lib under jasper.jar
 But if I try to put that jar file into my jdk lib file...it
 still wont find it.
 Anybody have any ideas or any other way I can define my
 own class and get jsp servlets to recognize it. I've tried
 many different things from defining the class on the jsp
 page to compiling the class  (without HttpJspBase) and
 putting it all over the place in tomcat.


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



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

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




Running Tomcat 4.0 with SSL as a NT service

2002-01-08 Thread Bryan Ha

Hello,

From the archive, I have read that there were some
discussions a month ago related to running Tomcat with
SSL as a NT service.

I have followed the suggestions and copied the 3 jars
into the 3 directories as suggested. The result is I
can start it using the startup script and the program
shortcut and can access both http://localhost:8080 and
https://localhost:8443/ successfully.

However, if I start it as a NT service, it returns a
success message but I can only access
http://localhost:8080 but not https://localhost:8443/.

My setup is as follows:

Tomcat 4.0
JSSE 1.0.2
NT 4.0 with service pack 5

Have I missed anything ?

Any comments are appreciated.

Bryan

__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

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




Re: Tomcat Policy????

2002-01-08 Thread Bryan Ha

Hi Rui,

Have you tried to use the policytool to edit the
tomcat policy file in catalina/conf ?

grant codeBase file:${catalina.home}/webapps/your
application/WEB-INF/classes/- {

permission java.permission.FilePermission your target
to read, read;
// };

Regards,

Bryan

__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

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




DecodeInterceptor Tomcat3.3

2001-12-13 Thread Bryan Pieper


In my jvm.stderr log, I keep getting:
2001-12-13 11:19:00 - DecodeInterceptor: Charset from session ISO-8859-1
2001-12-13 11:19:02 - DecodeInterceptor: Charset from session ISO-8859-1
2001-12-13 11:19:05 - DecodeInterceptor: Charset from session ISO-8859-1

What is causing this and how do I fix it?

Thanks.



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




RE: DecodeInterceptor Tomcat3.3

2001-12-13 Thread Bryan Pieper

Thank you.

On Thu, 13 Dec 2001, Larry Isaacs wrote:

 This is fixed in Tomcat 3.3.1 nightly.  For Tomcat 3.3,
 I believe setting debug=-1 on the DecodeInterceptor
 in server.xml will avoid the log output.
 
 Cheers,
 Larry
 
  -Original Message-
  From: Bryan Pieper [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, December 13, 2001 12:20 PM
  To: [EMAIL PROTECTED]
  Subject: DecodeInterceptor Tomcat3.3
  
  
  
  In my jvm.stderr log, I keep getting:
  2001-12-13 11:19:00 - DecodeInterceptor: Charset from session 
  ISO-8859-1
  2001-12-13 11:19:02 - DecodeInterceptor: Charset from session 
  ISO-8859-1
  2001-12-13 11:19:05 - DecodeInterceptor: Charset from session 
  ISO-8859-1
  
  What is causing this and how do I fix it?
  
  Thanks.
  
  
  
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
  
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 


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




Tomcat 3.3 and PureTLS

2001-12-12 Thread Bryan Sampieri

I just tried installing Tomcat 3.3 as a standalone server on Linux 7.2, 
and was going to use PureTLS instead of JSSE, but it doesn't work.  I 
got the PureTLS compiled and followed the Tomcat and SSL instructions. 
 But it won't find the PureTLS files.  I tried instead to use JSSE, 
and that worked without a problem.  Is it that I need to build Tomcat 
myself to get it to support PureTLS?  

-- 
Bryan E. Sampieri
Sofware Developer, QCOM, Inc.
[EMAIL PROTECTED]

Any opinions are not necessarily the opinions of QCOM, Inc. 



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




Tomcat 3.3 Error Code

2001-12-12 Thread Bryan Pieper


I received the following message in my jvm.stderr log file:

2001-12-12 13:23:22 - ErrorHandler: Error loop for R(  + /contact.jsp +
null) error code 200

Is this error visible to the user?  Did the page display correctly or did
it loop somehow?  

Thanks,
Bryan Pieper



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




Re: charset problem in java beans

2001-12-12 Thread Bryan Pieper

Is that also why I get this:
2001-12-12 23:01:10 - DecodeInterceptor: Charset from session
ISO-8859-1

in my jvm.stderr log in Tomcat 3.3?  Is it because I am not calling the
setCharacterEncoding() method from the request object?


On Wed, 12 Dec 2001, Craig R. McClanahan wrote:

 
 
 On Thu, 13 Dec 2001, yilmaz wrote:
 
  Date: Thu, 13 Dec 2001 09:51:02 +0800
  From: yilmaz [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Subject: Re: charset problem in java beans
 
  Okey,Craig you were right that before adding the item into the hashtable it
  was garbled.
  when i trace back to the origin of that parameter, i see that it comes from
  an html form filled
  by a user from another jsp page. then the problem became  like this:
  how or what should i do to be able to receive meaningful big5 chars from an
  html form?
 
 In Tomcat4, you can use the new Servlet 2.3 call
 request.setCharacterEncoding().  If you do this before calling any of the
 request.getParameter() type calls, Tomcat will do the translation for you.
 
  As i previously faced the same problem, i knew how to solve it.
  (using jason hunter's ParameterParser class)
  As a  result my porgram works correctly, now.
 
  thanks a lot. I appreciate your help with this problem.
  best regards :)
 
 Craig
 
 
 
 
  - Original Message -
  From: Craig R. McClanahan [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Thursday, December 13, 2001 2:20 AM
  Subject: Re: charset problem in java beans
 
 
   It's most likely an issue of where you got the data to load into your
   hashtable in the first place.  For example, if it's loaded from a
   database, you must ensure that your database understands that it should
   use Big5 for those characters as well.
  
   Craig
  
  
   On Wed, 12 Dec 2001, yilmaz wrote:
  
Date: Wed, 12 Dec 2001 19:23:33 +0800
From: yilmaz [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: charset problem in java beans
   
thanks Craig,
   
Craig wrote :

 It sounds like you might be working too hard :-).
   
how did you understand? :)
   

 Internally, Java keeps all String values in Unicode.  When you
  actually
 write the response, it will be converted according to the character
 encoding you specify on the page.
   
theoretically you are right, but unfortunately in real applications , it
seems it is not like that.
   

 If you're using JSP you would put this at the top of your page:

   %@ page contentType=text/html;charset=Big5 %

   
it is already at the top of my every single jsp page.
   
 and then write out the values something like this:

   %= sb.getItemname(itemid) %
   
   
i already have this too  in my code,too.
   

 From a servlet, the important issue is to set the content type and
 character encoding *before* you get the PrintWriter:

   response.setContentType(text/html;charset=Big5);
   PrintWriter writer = response.getWriter();
   ...
   writer.print(sb.getItemname(itemid));

 In either case, Java will perform the Unicode-Big5 conversion for
  you.
   
then why am i keeping on getting garbled symbols instead of traditional
chinese chars?
by the way, other than the strings retreived from the bean, other big5
  chars
are displyed correctly.
it seems that the problem occurs when the data is stored in the hahtable
  or
when it is retreived.
thanks again for your help.
best regards :)

 Craig McClanahan



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


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


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




not enough memory to run Tomcat?

2001-11-01 Thread Bryan Murtha

Hello,

   I downloaded 3.2.1 on Linux, used the binary, and
it says not enough free memory to run Tomcat. When I
run startup.sh. Does anyone know the command line
switch to start with more heap space?

Thanks,
Bryan

__
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com

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




Attribute status has no value/Custom tag problem

2001-10-26 Thread Bryan Murtha

Please help,

Keep getting Attribute status has no value when I try to pass it in 
directly, have to pass it to a variable and then pass it in but the 
application architect wants no Java code in the JSP, I know this can be done 
I just can't get it to work, only Using Tomcat 3.3 on Windows '98 for a dev 
platform.(wish I could use
something else but it's a contract, have no choise)
   I set my tld. tag defininition to look like this:
tag
  namejordana_tech/name
  tagclassexamples.Jordana_Tech/tagclass
  attribute
nameeta/name
requiredfalse/required
rtexprvaluetrue/rtexprvalue
  /attribute
  attribute
namestatus/name
requiredfalse/required
rtexprvaluetrue/rtexprvalue
  /attribute
  attribute
namejobDelayCause/name
requiredfalse/required
rtexprvaluetrue/rtexprvalue
/attribute
/tag

Yet I can't pass in the parameter directly. What I want to do is this:

ul
ec:jordana_tech  status=%= request.getParameter(status).toString()% 
eta=%= request.getParameter(eta).toString() % jobDelayCause=%= 
request.getParameter(jobDelayCause).toString() %/
/ul

This produces this error:
org.apache.jasper.compiler.ParseException: 
C:\tomcat\jakarta-tomcat-3.3\webapps\examples\jsp\simpletag\jordana_tech.jsp(16,58) 
Attribute status has no value

But if I do this it works just fine:

%
   String status = request.getParameter(status);
   if(status ==null) status=;

   String eta = request.getParameter(eta);
   if(eta ==null) eta=;

  String eta = request.getParameter(jobDelayCause);
   if(jobDelayCause ==null) jobDelayCause=;

%
ul
ec:jordana_tech  status=%= status% eta=%=eta% 
jobDelayCause=%=jobDelayCause%/
/ul



Original Message Follows
From: Bang, Steinar
Reply-To: [EMAIL PROTECTED]
To: '[EMAIL PROTECTED]'
Subject: Can mod_jk be made to restart tomcat, if tomcat has died?
Date: Fri, 26 Oct 2001 11:59:40 +0200
Can mod_jk be made to restart tomcat, if it discovers
that the tomcat process is no longer running?
Thanx!
- Steinar
This email, its content and any attachments is PRIVATE AND CONFIDENTIAL to
TANDBERG Television. If received in error please notify the sender and
destroy the original message and attachments.

_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp




RE: Compiling mod_jk

2001-09-26 Thread Bryan Lipscy

I built Apache 1.3.20 according to the readme file and set LANG to C and
exported it.  Still get the same error.

Where is this readme file at in the build?



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of jean-frederic clere
Sent: Tuesday, September 25, 2001 1:42 AM
To: [EMAIL PROTECTED]
Subject: Re: Compiling mod_jk



Your C compiler does not work... That is the problem (try LANG=C; export
LANG
before before using build-solaris.sh).

mod_jk also allow to use configure - Check
jakarta-tomcat-connectors/jk/native/README.configure -


 Environment:
 Solaris 8 Kernel 108528-06
 Sun 420R (4 * 450Mhz) 4GB Memory
 gcc: gcc-2.95.2
 perl, version 5.005_03 built for sun4-solaris
 JDK 1.3.1.01
 Apache v1.3 (Installed with Solaris 8)

 Execute line:
 /usr/apache/bin/apxs -S
CFLAGS=-DSOLARIS -DUSE_EXPAT -I../lib/expat-lite -o

mod_jk.so -I../common -I/usr/java/include -I/usr/java/include/solaris -lposi
 x4 -c ../common/jk_ajp12_worker.c ../common/jk_ajp13.c
 ../common/jk_ajp13_worker.c ../common/jk_connect.c
../common/jk_jni_worker.c
 ../common/jk_lb_worker.c ../common/jk_map.c ../common/jk_msg_buff.c
 ../common/jk_nwmain.c ../common/jk_pool.c ../common/jk_sockbuf.c
 ../common/jk_uri_worker_map.c ../common/jk_util.c ../common/jk_worker.c
 mod_jk.c




RE: Tomcat consistently crashes Win2000 Server operating system

2001-09-26 Thread Bryan Lipscy

Greg,
Need more information about your environment.  What service pack? What hot
fixes have been applied (if any)?  etc etc etc.

I am running Win2k server with sp2, JDK 1.3.1.01, Apache 1.3.20 and Tomcat
3.3.b2 with no problems.  All servlets and JSPs from the examples work fine.

-Original Message-
From: Gregory Baytler [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 26, 2001 5:07 PM
To: [EMAIL PROTECTED]
Subject: Tomcat consistently crashes Win2000 Server operating system


I had jdk1.3.1 installed on my win2000 server.
I am able to run applets and servlets OK, but I would like to create a JSP
application.
At first, I installed Tomcat 3.0 and created system variables: JAVA_HOME and
TOMCAT_HOME.
I go to dos and cd into directory where startup.bat is, then startup Tomcat.
Tomcat 3.0 would startup OK, but as soon as I enter http://localhost:8080/
into the browser, I get NT blue screen memory dump. So, I installed
jdk1.2.2 - same thing
happened. Then I installed Tomcat 3.2.3 - now I was able to get to Tomcat's
default page, but as soon as I click on Examples link, it crashes windows
again. And also, since then I was not able to even get to default page
anymore. As soon as I enter http://localhost:8080/ into the browser, I get
NT blue screen with memory dump. Can somebody give me any clues on to what
in the world is going on?

Thanks in advance,

-Gregory Baytler
[EMAIL PROTECTED]




Compiling mod_jk

2001-09-24 Thread Bryan Lipscy

I am trying to compile mod_jk to integrate Apache with Tomcat on a Solaris 8
box.  I received the error detailed below.  Apache was installed with
Solaris and loads mod_so.

What does the language optional software package not installed mean?  Is
it significant? How do I fix it?

Why did apxs fail?
What does the rc=65536 mean?
How can it be solved?
Does someone have a compiled mod_jk compiled on Solaris 8?

Thanks,
Bryan

Error:
root build-solaris.sh
Building mod_jk
/usr/ucb/cc:  language optional software package not installed
apxs:Break: Command failed with rc=65536
Error with apxs


Environment:
Solaris 8 Kernel 108528-06
Sun 420R (4 * 450Mhz) 4GB Memory
gcc: gcc-2.95.2
perl, version 5.005_03 built for sun4-solaris
JDK 1.3.1.01
Apache v1.3 (Installed with Solaris 8)


Execute line:
/usr/apache/bin/apxs -S CFLAGS=-DSOLARIS -DUSE_EXPAT -I../lib/expat-lite -o
mod_jk.so -I../common -I/usr/java/include -I/usr/java/include/solaris -lposi
x4 -c ../common/jk_ajp12_worker.c ../common/jk_ajp13.c
../common/jk_ajp13_worker.c ../common/jk_connect.c ../common/jk_jni_worker.c
../common/jk_lb_worker.c ../common/jk_map.c ../common/jk_msg_buff.c
../common/jk_nwmain.c ../common/jk_pool.c ../common/jk_sockbuf.c
../common/jk_uri_worker_map.c ../common/jk_util.c ../common/jk_worker.c
mod_jk.c




Compiling mod_jk

2001-09-21 Thread Bryan Lipscy

I am trying to compile mod_jk to integrate Apache with Tomcat on a Solaris 8
box.  I received the error detailed below.  Apache was installed with
Solaris and loads mod_so.

What does the language optional software package not installed mean?  Is
it significant? How do I fix it?

Why did apxs fail?
What does the rc=65536 mean?
How can it be solved?
Does someone have a compiled mod_jk compiled on Solaris 8?

Thanks,
Bryan

Error:
root build-solaris.sh
Building mod_jk
/usr/ucb/cc:  language optional software package not installed
apxs:Break: Command failed with rc=65536
Error with apxs


Environment:
Solaris 8 Kernel 108528-06
Sun 420R (4 * 450Mhz) 4GB Memory
gcc: gcc-2.95.2
perl, version 5.005_03 built for sun4-solaris
JDK 1.3.1.01
Apache v1.3 (Installed with Solaris 8)


Execute line:
/usr/apache/bin/apxs -S CFLAGS=-DSOLARIS -DUSE_EXPAT -I../lib/expat-lite -o
mod_jk.so -I../common -I/usr/java/include -I/usr/java/include/solaris -lposi
x4 -c ../common/jk_ajp12_worker.c ../common/jk_ajp13.c
../common/jk_ajp13_worker.c ../common/jk_connect.c ../common/jk_jni_worker.c
../common/jk_lb_worker.c ../common/jk_map.c ../common/jk_msg_buff.c
../common/jk_nwmain.c ../common/jk_pool.c ../common/jk_sockbuf.c
../common/jk_uri_worker_map.c ../common/jk_util.c ../common/jk_worker.c
mod_jk.c




RE: how to test the website scalability

2001-09-17 Thread Bryan Lipscy

Mercury Interactive's LoadRunner is probably one of the best on the market.
Just a bit on the pricey side.

-Original Message-
From: Huaxin [mailto:[EMAIL PROTECTED]]
Sent: Sunday, September 17, 2000 7:09 PM
To: [EMAIL PROTECTED]
Subject: how to test the website scalability


This is quite general to all website development.

When the website is completed, how can I test its
scalability by faking a lot of URL request for it
from various IPs concurrently? is there kind of such
tools for that?

thanks a lot!





RE: Problems with Jakarta NT Service

2001-09-17 Thread Bryan Lipscy

Here is the url:
http://www.alexandriasc.com/software/JavaService/download.html

The Tomcat 3.3.b2 package seems to be missing ant.jar, parser.jar, 
webserver.jar.  The do not exist in the 1.3.1 JDK either.


-Original Message-
From: Madock Chiwenda [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 17, 2001 10:57 PM
To: [EMAIL PROTECTED]
Subject: Re: Problems with Jakarta NT Service


Hi,

I have successfully used Javaservice package (javaservice.exe) to install
and run tomcat as service just search for it in google.com, download and it
has some
sample tomcat istallation scripts for some version of tomcat.

All the best

Madock

9/17/01 11:27:58 AM, Tom Wild [EMAIL PROTECTED] wrote:

I'm running Tomcat 3.3 b2, IIS 4.0 on WinNT 4.0 with latest SP and JDK
1.3

Tomcat is properly configured and runs smootly in window mode.

Nevertheless, when using the Jakarta NT Service according to
Gal Shakor's Documentation found at:
http://jakarta.apache.org/tomcat/tomcat-3.3-doc/NT-Service-howto.html
I had
= error 1067: The process terminated unexpectedly
while attempting to start the service.

Has anybody installed the service successfully
or encountered equal problems?

Best Regards
Tom Wild
mailto:[EMAIL PROTECTED]





_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com




RE: Spaces in TOMCAT_HOME

2001-09-14 Thread Bryan Lipscy

Use the 8.3 format.
Progra~1\Apache~1\jakart~1

-Original Message-
From: Hoggatt Matt - mahogg [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 14, 2001 1:15 PM
To: '[EMAIL PROTECTED]'
Subject: Spaces in TOMCAT_HOME


Is it impossible to run tomcat as an NT service if there are spaces in
TOMCAT_HOME?  For example, I want my tomcat path to be c:\Program
Files\Apache Group\jakarta-tomcat-3.2.3, but it won't work because of the
spaces.  Any work arounds?

-Matt



  1   2   >