[slightly OT]Re: How to access web site from other computers

2005-03-11 Thread Joel
 I went to www.dyndns.org and selected 'Dynamic DNS'
(B and did whatever it asked me to. I'm able to access it
(B locally. ie. 
(B
(BLocally means on the same machine as the server?
(B
(BAnd could you mention which "whatever it asked me" you did?
(B
(B http://dummy.dnsalias.net/web/JSP/login.html
(B 
(B But not from other computers (one at office).
(B
(BHave you edited the hosts files on any of the computers, including the
(Bserver?
(B
(B I'm able
(B to ping to this machine.
(B
(BPing by IP address or by the dummy.dnsalias.net domain name?
(B
(BAnd if IP, is it by the internal IP or the external IP?
(B
(BWait. dummy is probably not a 3LD that you'd be able to get. Are you
(Bsure about that?
(B
(B But not able to see the web
(B application. Is this is a firewall issue? How can i
(B identify what are the firewalls/spywares running in my
(B system and how to allow the IP Address to be visible.
(B
(BI was going to mention cheap broadband "modems" that don't expose the
(Bexternal interface address back to the internal LAN and about
(Bdemilitarized zones, and recapitulate the hosts file business, but I
(Bthink we haven't got that far yet.
(B
(B(None of this is the main topic on this list.)
(B
(B--
(BJoel Rees   [EMAIL PROTECTED]
(Bdigitcom, inc.   $B3t<02q

Re: [slightly OT]Re: How to access web site from other computers

2005-03-11 Thread Joel
   I went to www.dyndns.org and selected 'Dynamic
(B  DNS'
(B   and did whatever it asked me to. I'm able to
(B  access it
(B   locally. ie. 
(B  
(B  Locally means on the same machine as the server?
(B 
(B On the same machine where tomcat  apache are running.
(B  
(B  And could you mention which "whatever it asked me"
(B  you did?
(B 
(B When i clicked on 'Dynamic DNS', a form appeared and i
(B keyed-in the host name. That's it. It gave following
(B URL: raghu.dnsalias.net
(B
(BYou must have done more than that. You registered, gave them an e-mail
(Baddress to contact you at, then when you got your registration confirmed,
(Byou went to the dynamic dns services and got your form. 
(B
(BI'm kind of wondering which form it was. The reason is that I'm
(Bwondering if it properly associated your requested 3LD (raghu under
(Bdnsalias.net) with your NAT/firewall/router/modem's external interface
(Baddress.
(B
(BMy web browser can't reach you.
(B
(BPing is picking it up at maxonline.com.sg. 
(B
(BThat's likely to indicate some tomcat setup issues.
(B
(B   http://dummy.dnsalias.net/web/JSP/login.html
(B
(Bhttp://raghu.dnsalias.net/
(Bhttp://raghu.dnsalias.net/web/JSP/login.html
(B
(Bjust leave the web browser trying to connect.
(B
(Bhttp://raghu.dnsalias.net:8080/
(Bhttp://raghu.dnsalias.net:8080/web/JSP/login.html
(B
(Bboth get refused.
(B
(BYou probably also have firewall setup problems.
(B
(B   But not from other computers (one at office).
(B
(BCan you ping raghu.dnsalias.net from the one at the office?
(B
(BHave you edited the hosts file of the machine at the office? Did you set
(Bit to the internal address of the server instead of the external address?
(B
(B(If your NAT/firewall/router/modem doesn't show the external interface
(Bto the internal net, you'll have to use the hosts file on all computers
(Bon your LAN, or set up an internal-only name server. And the IP address
(Bof the server for your office computers will not be the same as the one
(Bfor the external net, of course.)
(B
(BSpeaking of the firewall, is it forwarding port 80 and port 8080 to the
(Bserver?
(B
(B  Have you edited the hosts files on any of the
(B  computers, including the
(B  server?
(B 
(B Yes. I edited the host file of the server.
(B
(BThis may be the reason you can see it locally.
(B
(B   I'm able
(B   to ping to this machine.
(B  
(B  Ping by IP address or by the dummy.dnsalias.net
(B  domain name?
(B 
(B Both.
(B  
(B  And if IP, is it by the internal IP or the external
(B  IP?
(B
(BSo, does the other office computer ping it by raghu.dnsalias.net, by
(B202.156.229.137, or by an internal address (192.168.x.x or 10.x.x.x or
(B172.16.x.x through 172.31.x.x)?
(B
(B  Wait. dummy is probably not a 3LD that you'd be able
(B  to get. Are you
(B  sure about that?
(B 
(B It's not dummy. Actual URL is: raghu.dnsalias.net
(B  
(B   But not able to see the web
(B   application. Is this is a firewall issue? How can
(B  i
(B   identify what are the firewalls/spywares running
(B  in my
(B   system and how to allow the IP Address to be
(B  visible.
(B  
(B  I was going to mention cheap broadband "modems" that
(B  don't expose the
(B  external interface address back to the internal LAN
(B  and about
(B  demilitarized zones, and recapitulate the hosts file
(B  business, but I
(B  think we haven't got that far yet.
(B  
(B  (None of this is the main topic on this list.)
(B 
(B Sorry for posting this issue in this mailing list. I
(B was monitoring this list. Also, i thought, there may
(B be some tomcat  apache server configuration problem.
(B
(BIt does look like you may have both types of configuration problems.
(B
(B--
(BJoel Rees   [EMAIL PROTECTED]
(Bdigitcom, inc.   $B3t<02q

Re: Keep Alive

2005-03-06 Thread Joel
On Wed, 02 Mar 2005 16:55:48 -0800
(BAlex Chen [EMAIL PROTECTED] wrote
(B
(B I am using Tomcat as my web server.  I am using AXIS for SOAP.  I notice 
(B via ethereal that the are a lot of
(B port opening from the client side for the HTTP (SOAP) requests.  I would 
(B like to keep the socket open
(B for the client.  How do I make the tomcat server keep the socket open?
(B Is there a setting in the server configuration that can do this?
(B
(BIf this is a question, and not an elliptical response, please start a
(Bnew thread and include more information, maybe some of your code?
(B
(B--
(BJoel Rees   [EMAIL PROTECTED]
(Bdigitcom, inc.   $B3t<02q

[OT] Re: tomcat hackers ...

2005-02-14 Thread Joel
 Hello, I've been getting some things in my logs like ...
(B
(BAlways good to see people reading their logs.
(B
(B 217.20.113.110 - - [13/Feb/2005:09:41:39 -0500] "GET 
(B
(BYou could look that IP address up, try either dig or nslookup (or on Mac
(BOS X there iseven a GUI network utility with an easy interface to
(Blooking up domain names).
(B
(B /Myapp/../Myapp/../Myapp/../Myapp/../Myapp/../Myapp/../Myapp/../hosting.html 
(B
(BIf every /.. is balanced by a preceding /Myapp, that's going nowhere in
(Bparticular fast. I'd explain it, but calculate the path out yourself.
(BThen check it from outside, say, from your home box, just so you get
(Bcomfortable with it. Try putting an extra ../ various places.
(B
(BIf the path substring were 32Kbytes long or longer, you could guess it
(Bwas an attempt at hiding a buffer overflow. Also, attempts at getting a
(Bshell on a MSWxxx box tend to end in command.com or something.lib, so it
(Bdoesn't look like that. 
(B
(BThe one remaining danger, if /hosting.html is supposed to be restricted
(Baccess, it might be an attempt to hide an access to it.
(B
(B HTTP/1.1" 200 5564 "-" "Mozilla/4.0 (compatible; MSIE 5.16; Mac_PowerPC)"
(B
(BBleagh. Talk about a browser no one should be using any more, ...
(B
(B What is this guy getting from this ? Am I just paranoid or what ???
(B
(BLike I say, you can always put the url together from your logs and try
(Bit from an external box to see.
(B
(BParanoia is good. But you should follow up on it yourself.
(B
(B--
(BJoel Rees   [EMAIL PROTECTED]
(Bdigitcom, inc.   $B3t<02q

Re: Tale of two servers

2005-02-14 Thread Joel
 Proud to say I'm not going to cover my ass (if I don't
(B have to :).
(B
(BCovering your backside is fine, just make sure you cover it with
(Bsomething appropriate and effective.
(B
(B But I remember there were some worms that
(B hit your computer even if you didn't do anything on
(B it. One day my non-av'ed computer just went down with
(B SoBig, I think, while Norton caught it on all other
(B computers.
(B
(BThat's kind of like saying it's good to make everyone wear those 80+
(Bpound suits of armor so you can leave the fort gate open.
(B
(B So perhaps it is a good idea even on
(B servers with restricted access.
(B
(BArmor rusts, too: 
(B
(Bhttp://securityresponse.symantec.com
(B
(Band check the updates for Symantec. I understand anyone using Symantec
(Bproducts is being encouraged to be sure those updates are in place ASAP.
(B
(BWhether management wants to bog servers down with anti-v or not is their
(Bdecision, but if they want to be good neighbors and good citizens, they
(Bneed to hire or train someone who can set up correct firewalls and
(Bdemilitarized zones, etc.
(B
(B--
(BJoel Rees   [EMAIL PROTECTED]
(Bdigitcom, inc.   $B3t<02q

Re: timestamp protocol (RFC 3161)

2005-02-09 Thread Joel
Anyone?
(B
(B This is kind of a long shot, but I was wondering if anyone here has any
(B experience with bouncy castle's timestamp protocol stuff that they'd
(B care to share. 
(B 
(B I need to implement a tsa server and client, and I'd just feel more
(B comfortable if I weren't depending solely on my own poor interpretations.
(B
(B
(B--
(BJoel Rees   [EMAIL PROTECTED]
(Bdigitcom, inc.   $B3t<02q

Re: Anyone with Tomcat on FreeBSD 5.3

2005-02-02 Thread Joel
On Wed, 2 Feb 2005 22:20:44 -0600
(B"Todd Reed" [EMAIL PROTECTED] wrote
(B
(B [...]  Linux-jdk1.3
(B doesn't exist anymore, but linux-sun-jdk13 does.  I'm assuming this is
(B the same ports package?
(B
(BI think that may be due to the recent license changes (and Sun's not
(Bbeing able to just simply open the whole thing all at once, whatever
(Btheir reasons are). 
(B
(BYou might want to check the freeBSD archives. If you can't get at the
(Bofficial archives, marc.theaimsgroup.com has them. 
(B
(BI think the freeBSD organization for a while had permission to
(Bdistribute one thing, but they now have permission to distribute another
(Binstead.
(B
(B--
(BJoel Rees   [EMAIL PROTECTED]
(Bdigitcom, inc.   $B3t<02q

timestamp protocol (RFC 3161)

2005-02-01 Thread Joel
This is kind of a long shot, but I was wondering if anyone here has any
(Bexperience with bouncy castle's timestamp protocol stuff that they'd
(Bcare to share. 
(B
(BI need to implement a tsa server and client, and I'd just feel more
(Bcomfortable if I weren't depending solely on my own poor interpretations.
(B
(B--
(BJoel Rees   [EMAIL PROTECTED]
(Bdigitcom, inc.   $B3t<02q

performance/scalability impact of many webapps in one container

2005-01-17 Thread Joel McGraw
For reasons beyond my control, a web application
(apache/Tomcat/PostgreSQL) that I support will need to be partitioned
into one context per customer (to support one database per customer).
I'm wondering:

1. What the performance implications are (if any) of having up to 300
contexts in one container?

2. Are there any scalability issues of which I should be aware?

TIA,

-Joel

-- CONFIDENTIALITY NOTICE --

This message is intended for the sole use of the individual and entity to whom 
it is addressed, and may contain information that is privileged, confidential 
and exempt from disclosure under applicable law. If you are not the intended 
addressee, nor authorized to receive for the intended addressee, you are hereby 
notified that you may not use, copy, disclose or distribute to anyone the 
message or any information contained in the message. If you have received this 
message in error, please immediately advise the sender by reply email, and 
delete the message. Thank you.

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



Re: Norton AntiVirus and False Positives In Tomcat

2004-09-30 Thread Joel
  Sounds like NAV may have returned some false
  positives.  The only
  virus-like content I would expect inside a plain
  HTML doc would be
  rogue JavaScript.
 
 Indeed.  I looked at the HTML page myself - it's
 unaltered, and there's nothing rogue in there that I
 can see.

Links with strange urls?

  Perhaps you could point your admin to the web
  resources you found, those
  concerning false positives from NAV?
 
 I agree - I already sent the link yesterday afternoon.
 
  This could become a sticky issue of corporate
  politics, depending on
  your organization's structure.  You may have to get
  your management to
  talk to the admin's management.
  
  -QM
 
 You're right on there.  This could be very sticky and
 uncomfortable.  I'm not sure how receptive corp will
 be.
 
 Thanks - MOD

For a little smoke screen, you might even mention the recent jpeg
vulnerabilities and the issues Norton seems to be having seeing those.
Might even create enough reverse heat to motivate a move to *nix.

-- 
Joel [EMAIL PROTECTED]


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



Re: A little offbeat question

2004-09-16 Thread Joel
On Thu, 16 Sep 2004 07:41:11 -0500
Caldarale, Charles R [EMAIL PROTECTED] wrote

  From: John Najarian [mailto:[EMAIL PROTECTED]
  Subject: RE: RE: A little offbeat question
  
  I'm still going to look at the CLASSPATH env var.  Maybe I should
  add '.' to the CLASSPATH variable.
 
 These days, Sun seems to be recommending not using the CLASSPATH 
 environment variable - ever. 

I wish they would clarify that, to, Don't set CLASSPATH yourself. Let
the applications or frameworks do that. I think that would be less
confusing.

 Use either the -cp argument on each
 program invocation, or make the proper directory current when you
 execute the desired program. 

In light of security issues deriving from the default assumption of
having executables in the working directory, -cp would be the correct
way to do this. 

But I don't remember. Is Sun planning to do away with defaulting to the
current working directory when CLASSPATH is empty?

 Your experience is a good example of why
 global environment variables must be used very judiciously.
 
  - Chuck
 
 
 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE 
 PROPRIETARY MATERIAL and is thus for use only by the intended recipient.
 If you received this in error, please contact the sender and delete the
 e-mail and its attachments from all computers.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-- 
Joel [EMAIL PROTECTED]


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



Re: Installing Tomcat on MacOSX Server 10.3.5

2004-09-15 Thread Joel
On Wed, 15 Sep 2004 11:17:09 +0200
Lorenzo Medici [EMAIL PROTECTED] wrote

 Hi List
 
 I try to install tomcat (V. 4.1.24) on a macosx Server 10.3.5.
 The installation seems to finish without any errors, but i'm not able to
 start tomcat. I searched in the net about this topic and it seems i'm not
 alone, but i did not find any solution. Can somebody help me?
 Any suggestions?

Get any error messages when you tried to start? Checked the logs? Have
you done this on an earlier version of Mac OS X or with an earlier
version of Tomcat so you could tell us what's different?

-- 
Joel [EMAIL PROTECTED]


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



Re: tomcat5 using jsvc in a chroot jail

2004-09-02 Thread Joel
On Thu, 2 Sep 2004 16:41:34 Skyler.Bingham wrote

 ...
 I did a recursive cp of all files.

What flags did you use besides -r ?

-- 
Joel [EMAIL PROTECTED]


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



Re: Tomcat Holding Database Open??????

2004-08-31 Thread Joel
On Tue, 31 Aug 2004 09:23:56 -0400
Michael McQuade [EMAIL PROTECTED] wrote

 Please forgive me,  I dont even understand a lot of these responses,   Im a
 mainframe Cobol coder here,   not a Java person,

Welcome to Tomcat and Java.

 but Im using a Converter
 that converts Cobol to Java

Fun days!

 Anyways,  I am pretty sure it has to be
 Tomcat doing this, 

(or the converter, or some mismatch between the real and expected CoBOL,
Java, and Tomcat environments)

 because my Application ran just fine,   using MySQL,
 and JDBC driver in a Web Server called OmniCron  in CGI format.

OmniHTTPd by Omnicron (www.omnicron.ca)? (I don't know anything about
them, just did a search on Google and they came up.)

So you are running in a MSWindows environment?

 The only thing different now is,  Im trying to run SERVLETS 

There's one difference.

 using
 Apache/Tomcat. 

There's two more differences.

 At the Start of  each Servlet I do  a connect to
 database
 CONNECT TO 'jdbc:mysql://127.0.0.1:3306/Imagescan'
 
 DRIVER 'com.mysql.jdbc.Driver'
 
 Then do my processing and then do a DISCONNECT ALL..
 
 It just does not make sense I can connect ONE TIME only when running a
 Servlet and have to back out of app,  STOP,  START,

Do you mean stopping and starting Tomcat here? Or the browswer instance?
Or the database?

 and go back in,   to
 get another one time connection.the 08002, connection name in use,
 to me,   points to Tomcat ..

08002?

 But as I said,  Im just a baby in diapers to this world.. 

Me too.

 I believe its
 something in one of the .xml files,   but I have no idea.
 
 As for Connection Pooling,is that for a system taking large numbers of
 hits on it? 

Well, that's what the target would be. The idea is to re-use connections
so you don't spend as much time tearing down the Java interpreter and
rebuilding it. CGI will start a new Java process for every connection,
and when the connection is done tear it down.

 Right now, Im just one guy trying to make one connection
 work.

So you might want to check that you haven't enabled pooling accidentally.

 Thank you for being patient.
 
 Mike
 
 
 
 
 
  [EMAIL PROTECTED]
 
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Tuesday, August 31, 2004 8:55 AM
 Subject: Re: Tomcat Holding Database Open??
 
 
  On Tue, Aug 31, 2004 at 08:43:00AM -0400, Michael McQuade wrote:
  : It appears to me, and god knows Im REAL knew to this world,  that Tomcat
 is somehow holding my database open..  not releasing it on
 DISCONNECT.
  :
  : DOES anyone have any idea, I have been at this for a week, day and
 night, to no avail..  Im desperate for some sound guidance.
 
  A couple of questions:
  are you explicitly closing those DB connections?
  are you pooling your connections?
 
  -QM
 
  -- 
 
  software  -- http://www.brandxdev.net
  tech news -- http://www.RoarNetworX.com
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-- 
Joel [EMAIL PROTECTED]


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



Re: Odd characters inserted in response after JSPC

2004-08-18 Thread Joel
On Wed, 18 Aug 2004 11:32:02 +0100
(B"Allistair Crossley" [EMAIL PROTECTED] wrote
(B
(B I have compiled all my JSPs with JSPC. I have found that 3 odd 
(B characters occur at the very start of most of my my responses which 
(B use a certain template JSP ...
(B 
(B $B~=%=(B 
(B
(BEvery time I open my mouth I embarass myself, but IIRC, those look like
(Bwhat happens to the Byte Order Mark when you spit it out a UTF-8 stream
(Band read the stream as if it were Microsoft's 8-bit something-or-other
(Bcode-page (encoding).
(B
(BIf my memory is right, you need to read it as if it were Unicode UTF-8,
(Band then the BOM is seen and handled appropriately.
(B
(B-- 
(BJoel [EMAIL PROTECTED]
(B
(B
(B-
(BTo unsubscribe, e-mail: [EMAIL PROTECTED]
(BFor additional commands, e-mail: [EMAIL PROTECTED]

Re: security-constraint in web.xml

2004-08-16 Thread Joel
On Mon, 16 Aug 2004 09:58:04 -0300
[EMAIL PROTECTED] wrote

 I need help to configure a secure application.
 I'm trying to request a client certificate in one page only (the rest should
 be accesible without presenting a certificate) and force to use SSL in the
 entire application.
 
 I put the following in the web.xml
 
 security-constraint
 web-resource-collection
 web-resource-namecertificates/web-resource-name
 url-pattern/certificates/add.action/url-pattern
 http-methodGET/http-method
 http-methodPOST/http-method
 /web-resource-collection
  auth-constraint
 role-name*/role-name
 /auth-constraint
 user-data-constraint
 transport-guaranteeCONFIDENTIAL/transport-guarantee
 /user-data-constraint
 /security-constraint
 login-config
 auth-methodCLIENT-CERT/auth-method
 /login-config
 
 
 If I add a new url pattern, this page will request client certificate too.
 How can I force to use SSL without requiring a client certificate but still
 require it in a specific page?

I haven't taken the time to analyze your security-constraint/, but my
impression is that ssl can't really function without certificates.

It might be possible to pre-supply a (fake) client certificate, but I'm
not sure that would buy you anything. If the client needs a certificate,
it would be best to supply the client with (a real) one (even if only
self-certified). If the client doesn't know what to do with a
certificate, how would it know what to do with the encrypted streams?

-- 
Joel [EMAIL PROTECTED]


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



Re:

2004-07-20 Thread Joel
 What are these BMP files coming from this guy?

Well, Craig is not the kind of guy to let a virus run on his machine
very long in the first place, and most viruses these days spoof the
sender, so it's hard to tell where the compromised machine is.

But, since you ask, I just checked, and the file is only about 3Kb long,
so I scanned it with the anti-virus (nothing) and then took a look at it.

(No double-clicking, of course.)

It looks like a number underlined, maybe intended for use as a graphic
link.

Craig sure seems to be quiet on the users list these days.



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



[SPOOFS] Re:

2004-07-20 Thread Joel
 There was one a couple of days ago that was key:# but I don't remember
 what the number was.  Still the emails are strange, but don't appear to be a
 virus that I know about.

Well, I've heard of some viruses that grab random files from the
compromised machine and spread them far and wide. Usually it's with the
infectious agent buried in the doc, but it would be hard to hide an
infectious bit of code in a bitmap or piece of text that size.

Maybe someone from Brazil is borrowing Craig's e-mail address to explore
some new, bizarre form of encryption where the message is striped across
several completely irrelevant messages. Or jokemaybe Craig has been
kidnapped, and is trying to tell us he is being held hostage in
Brazil./joke

I sent Craig a query, CCed to Brasil Telecom (who owns the IP block).
That's about all that can be done, so let's not bother the list further.

   What are these BMP files coming from this guy?
  
  Well, Craig is not the kind of guy to let a virus run on his 
  machine very long in the first place, and most viruses these 
  days spoof the sender, so it's hard to tell where the 
  compromised machine is.
  
  But, since you ask, I just checked, and the file is only 
  about 3Kb long, so I scanned it with the anti-virus (nothing) 
  and then took a look at it.
  
  (No double-clicking, of course.)
  
  It looks like a number underlined, maybe intended for use as 
  a graphic link.
  
  Craig sure seems to be quiet on the users list these days.



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



Re: [URGENT] When I type Russian in my .jsps, it displays it as a bunch of squares!

2004-07-19 Thread Joel
On Mon, 19 Jul 2004 12:32:34 -0700
Ivan Jouikov [EMAIL PROTECTED] wrote

 YAY YAY YAY!
 
 REJOICE!
 
 Thanks man!  You saved the day!  Looks like I was on the right track when thinking 
 that I should save file differently, I just didn't follow my intuition :(
 
 And sorry about blaming tomcat - I can't blame myself, now can I?

sigh.

 BTW, do you happen to know how to make it so that ALL my files are saved as Unicode?

If you know the encoding you were saving under, you could write a quick
filter in Java (or perl 5.8+, if you find perl easier) that reads the
files in the original encoding and writes them back out in your prefered
Unicode UTF form. 

-- 
Joel [EMAIL PROTECTED]


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



port for a webapp

2004-07-15 Thread Joel
Reading around in the pages on context and host and Connector, etc., I
am feeling a little dense. My search skills at marc don't seem to be up
to this, either.

Where should I look to figure out how to set Tomcat to have Xindice
listen and serve as a webapp on port ?

-- 
Joel [EMAIL PROTECTED]


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



Re: port for a webapp

2004-07-15 Thread Joel
 Reading around in the pages on context and host and Connector, etc., I
 am feeling a little dense. My search skills at marc don't seem to be up
 to this, either.
 
 Where should I look to figure out how to set Tomcat to have Xindice
 listen and serve as a webapp on port ?

It looks like I need to open port  using a Connector in the global
server.xml and then tell the webapp to listen on port  in

webapps\xindice\WEB-INF\web.xml

but I'm pretty sure I shouldn't be setting up a valve to do that ...

(and someone seems to have been worried that web.xml would be
overwritten when the webapp auto-deploys, ...)

-- 
Joel [EMAIL PROTECTED]


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



Re: port for a webapp

2004-07-15 Thread Joel
On Thu, 15 Jul 2004 15:23:51 +0900
Joel [EMAIL PROTECTED] wrote

  Reading around in the pages on context and host and Connector, etc., I
  am feeling a little dense. My search skills at marc don't seem to be up
  to this, either.
  
  Where should I look to figure out how to set Tomcat to have Xindice
  listen and serve as a webapp on port ?
 
 It looks like I need to open port  using a Connector in the global
 server.xml

Borrowing from what appears to be the main connector declaration in
server.xml, and just leaving out the redirectPort attribute,

Connector port=
   maxThreads=150 minSpareThreads=25 maxSpareThreads=75
   enableLookups=false acceptCount=100
   debug=0 connectionTimeout=2 
   disableUploadTimeout=true /

and re-start tomcat, and now I can get at xindice from the command line
and from the browser. Xindice's sample addressbook webapp works, too.

That worries me a _little_ because of all the stuff that is said about
how web-app declarations should not be in the global configuaration
files, but I guess openin a port is a sort of a global kind of activity.

Now, let's see if I can figure out how to make the xindice stuff _only_
listen on :

 and then tell the webapp to listen on port  in
 
 webapps\xindice\WEB-INF\web.xml
 
 but I'm pretty sure I shouldn't be setting up a valve to do that ...
 
 (and someone seems to have been worried that web.xml would be
 overwritten when the webapp auto-deploys, ...)
 
 -- 
 Joel [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-- 
Joel [EMAIL PROTECTED]


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



is the context automatically generated on auto-deploy?

2004-07-12 Thread Joel
In the deployer how-to at

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/deployer-howto.html

the docs state that, for eploying on startup, at least, ... a matching
Context XML descriptor will be created unless one exists already.

Under the description of context descriptors, it seems to say the files
will be in the $CATALINA_HOME/conf/[enginename]/[hostname]/ directory.

I dropped the xindice.war from the xml projects into the webapps
directory, and I can access it. (I did this twice, actually. First time
I was running Java 1.5 beta, and I dropped it live. This time it's Java
1.4 and I dropped it in while TC was down.)  Xindice is expanded
automagically in the webapps directory, and I can access it, do queries,
etc.

I look in my $CATALINA_HOME/conf directory, and all I see is 

Catalina\localhost\{ admin.xml, balancer.xml, manager.xml }

No other files or directories.

Nor can I see any sign of a xindice.xml or context.xml in the xindice
directory structure under webapps. 

There is a web.xml under WEB-INF and contains the servlet and
servlet-mapping declarations, and security-constraints commented out.
Conceptually, that's context kinds of specification, but it doesn't look
like what 

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/context.html

leads me to expect. 

There is a system.xml under WEB-INF and it seems to contain application
specific declarations of the database and of XML-RPC. There is also a
configs/commands.xml which is very definitely application specific.
Clearly, neither of these is the context file.

So, does the automatically configured context actually get written out
anywhere? If so, I'm either looking for context in all the wrong places
or I've got this thing set up so strange it doesn't wanna do the right
thing.

-- 
Joel [EMAIL PROTECTED]


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



Re: is the context automatically generated on auto-deploy?

2004-07-12 Thread Joel
On Mon, 12 Jul 2004 18:05:21 +0900 I wrote

 In the deployer how-to at
 
 http://jakarta.apache.org/tomcat/tomcat-5.0-doc/deployer-howto.html
 
 the docs state that, for eploying on startup, at least, ... a matching
 Context XML descriptor will be created unless one exists already.
 
 Under the description of context descriptors, it seems to say the files
 will be in the $CATALINA_HOME/conf/[enginename]/[hostname]/ directory.

Okay, I think I can see that this is basically an undesired result under
TC 5. (Although I kinda wish I knew why my setup is doing what is
apparently the right thing after all.)

 I dropped the xindice.war from the xml projects into the webapps
 directory, and I can access it. (I did this twice, actually. First time
 I was running Java 1.5 beta, and I dropped it live. This time it's Java
 1.4 and I dropped it in while TC was down.)  Xindice is expanded
 automagically in the webapps directory, and I can access it, do queries,
 etc.
 
 I look in my $CATALINA_HOME/conf directory, and all I see is 
 
 Catalina\localhost\{ admin.xml, balancer.xml, manager.xml }
 
 ...

I finally found a place where it says the app\WEB-INF\context.xml file
is the one _I_ am supposed to write for the app if it needs one.

But it looks like the context elements can also go in
app\WEB-INF/web.xml, and the documentation seems to mention web.xml more
than context.xml, which is a little confusing. (If I were confident of
my interpretation, I'd offer some diffs.)

I thought I saw mention of the default context specification buried
somewhere in a source directory. Wish I could find it, although it may
not turn out to be useful as an example of what should go in it.

-- 
Joel [EMAIL PROTECTED]


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



jakarta-commons/daemon necessary for build?

2004-07-09 Thread Joel
Just built TC 5. I had to clear out \usr\share\java from an earlier
attempt when I had java 1.5 beta installed, but then it flew.

One thing worries me: 

---
D:\Program_Files\apache\jakarta-tomcat-5.0.25-srcant
Buildfile: build.xml

check.source:

check.source.depends:

get.source:

get.source.depends:

checkout.depends:
  [cvs] Caught exception: CreateProcess: cvs -d:pserver:[EMAIL 
PROTECTED]:/home/cvspublic -q -z3 checkout -P jakarta-commons/LICENSE error=2
  [cvs] Caught exception: CreateProcess: cvs -d:pserver:[EMAIL 
PROTECTED]:/home/cvspublic -q -z3 checkout -P jakarta-commons/daemon error=2

build:

...
---

I imagine it really doesn't need jakarta-commons/LICENSE. 

But what about jakarta-commons/daemon ? 

Is that exception on the cvs task going to come back to haunt me?

-- 
Joel [EMAIL PROTECTED]


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



Re: jakarta-commons/daemon necessary for build?

2004-07-09 Thread Joel
Don't you just like it when people talk to themselves.

On Fri, 09 Jul 2004 15:05:04 +0900, I wrote

 Just built TC 5. I had to clear out \usr\share\java from an earlier
 attempt when I had java 1.5 beta installed, but then it flew.
 
 One thing worries me: 
 
 ---
 D:\Program_Files\apache\jakarta-tomcat-5.0.25-srcant
 Buildfile: build.xml
 
 check.source:
 
 check.source.depends:
 
 get.source:
 
 get.source.depends:
 
 checkout.depends:
   [cvs] Caught exception: CreateProcess: cvs -d:pserver:[EMAIL 
 PROTECTED]:/home/cvspublic -q -z3 checkout -P jakarta-commons/LICENSE error=2
   [cvs] Caught exception: CreateProcess: cvs -d:pserver:[EMAIL 
 PROTECTED]:/home/cvspublic -q -z3 checkout -P jakarta-commons/daemon error=2

Okay, I found the jakarta-commons/daemon project and now I understand.

To actually use this TC5 I just built, I'm gonna need either MSVC or
cygwin to make procrun.

Okay, fine. That's why the instructions for building are under the
section for developers. I'm not offended. sniff/

;-P

-- 
Joel [EMAIL PROTECTED]


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



Re: I've officially decided that JSTL is one of the worstthingsto ever happenWOT

2004-07-06 Thread Joel
 I find your assertion that Jesus was a Software Developer a little 
 challenging.

Jesus is the greatest Software Developer that has ever Graced this
earth. (So to speak.) Of course He doesn't usually use either Java or C,
and, some of the languages He uses, I'm not sure we'd recognize as such.

 Not to draw conclusions on those sources. I only suggest there 
 is a lack of proof at my disposal.

Only you can change that. 

;-)

-- 
Joel [EMAIL PROTECTED]


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



Re: I've officially decided that JSTL is one of the worstthingsto ever happen

2004-07-06 Thread Joel
Oh, man, ...

 Ok let's settle this argument simple.
 
 Tonight, I'll ask my Christian Science friend to talk to Jesus,

Why not ask Jesus yourself? Prayer is open to anyone, and is not limited
to the night.

  and ask him the following:
 
 Jesus, if EL really DOES decrease performance significantly,
 and should not be used at all, please give me absolutely NO sign.
 However, if EL is a great thing and should be used by everyone, please
 give me a sign.

Are you sure you haven't been setting us up just so you could say that?
I'll admit, the 2LA for Expression Language causes me pause, but, ...

Well, just in case you're serious, I'll mention Matthew 12, ca. 39.
Might also mention Gideon and his fleece.

 I'll report to you in the morning and let you know what was God's opinion on that.

I have an idea what He would say: 

   Use the tools you understand. Work hard. Be happy.
   But don't insult other people by insulting their tools.

   And don't tweak people just because they use strange 2LAs 
   for their runtime expression languages.

I might be wrong, of course.

-- 
Joel [EMAIL PROTECTED]


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



Re: I've officially decided that JSTL is one of the worst things to ever happen to mankind

2004-07-05 Thread Joel
On Mon, 5 Jul 2004 00:55:17 -0700
(B"Ivan Jouikov" [EMAIL PROTECTED] wrote
(B
(B My replies below
(B 
(B  -Original Message-
(B  From: Joel [mailto:[EMAIL PROTECTED]
(B  Sent: Sunday, July 04, 2004 6:19 PM
(B  To: Tomcat Users List
(B  Subject: Re: I've officially decided that JSTL is one of the worst things
(B  to ever happen to mankind
(B  
(B  On Sat, 3 Jul 2004 23:03:45 -0700
(B  "Ivan Jouikov" [EMAIL PROTECTED] wrote
(B  
(B   ...
(B   Point of this message:  DO NOT USE JSTL OR EL.  You$Bn,%+if!"(Bl regret it.  I
(B  did.
(B  
(B  If a tool doesn't work for you, don't use it.
(B  
(B  There are plenty of tools. We all make mistakes. No reason to hate a
(B  tool just because it let you down.
(B  
(B  If there are serious faults in a certain tool in the context of your use,
(B  set it aside, regroup, learn from the experience, re-negotiate with your
(B  boss, coworkers, and/or your customers, move on.
(B  
(B  (Any boss or any customer who isn't willing to put up with the overhead
(B  of getting the right tool for the job just isn't worth the trouble.)
(B 
(B   Customer isn't worth the trouble?  Maybe that theory of thought is the reason 
(B why you're using Japanese mail server?
(B
(BI live and work in Japan. :-o
(B
(BBut if a customer is going to ask you to use a tool proficiently before
(Byou've had time to even learn whether it's appropriate for the job, and
(Bis not willing to negotiate, you should definitely think hard about
(Bwhether they're paying you enough to cover rent.
(B
(BA tool is a tool. Rather than declare that a tool is worse than useless,
(Bit probably would be more effective to explain why you couldn't use it
(Bthis time. It's a little easier that way to talk about what can be done,
(Bwhat tools could be used instead, where you might still profitably use
(Bthe recalcitrant tool.
(B
(BIf the customer or boss is willing to negotiate, positive information
(Bwill be more useful.
(B
(BAnd that is enough platitudes for a day or so. I'll shut up.
(B
(B-- 
(BJoel [EMAIL PROTECTED]
(B
(B
(B-
(BTo unsubscribe, e-mail: [EMAIL PROTECTED]
(BFor additional commands, e-mail: [EMAIL PROTECTED]

Re: I've officially decided that JSTL is one of the worst things to ever happen to mankind

2004-07-05 Thread Joel
On Mon, 5 Jul 2004 13:40:54 -0700
Ivan Jouikov [EMAIL PROTECTED] wrote

 ...
  A tool is a tool. Rather than declare that a tool is worse than useless,
  it probably would be more effective to explain why you couldn't use it
  this time. It's a little easier that way to talk about what can be done,
  what tools could be used instead, where you might still profitably use
  the recalcitrant tool.
 
   Ok, so you're saying that if my task is to dig a hole,

Is your task to dig a hole? 

There are many kinds of holes -- wide holes, narrow holes, holes that go
sidewise, holes that go straight down, holes that you fill with cement
and build houses on, holes that you run subway trains through, ...

 and there's a tool whose documentation says used for digging holes
 efficiently and easy, it automatically means that it's good for that
 task? 

When I was a kid, I liked to dig holes with a hammer, just because I had
my Dad's hammer but no wood and no nails. I dug some pretty good holes,
but my Dad made me clean the hammer up and oil it so it wouldn't rust.

I'd hate to dig a foundation with a post-hole shovel. I'd hate to dig a
foundation in caliche with anything. But if I had to dig a foundation in
caliche, I'd want either a pick or a jackhammer. (Dynamite's too hard to
control.) I would not want to dig in the flower bed with a jackhammer.

 You ever thought that good ideas don't necessarily mean good
 results? 

Naw, you're putting me on! Good ideas ALWAYS get good results. At least,
if you shovel enough manure into the fields.

 What if that tool is a vacuum cleaner?  How would you dig a
 hole with a vacuum cleaner? 

I think I may have started out the door to do just that one day when I
was a kid. I think my mother was glad she stopped me.

You ever dig a hole with a water hose?

Now, professional hole-diggers actually do use (very large) water hoses
and vacuum cleaners. That is, some sludge belts use a wet vacuum system
to keep the sludge belts clear. (Maybe I should've been a civil engineer.)

 I mean that's what its documentation says...  

Then, if the documentation is not lying, it must not be the same kind of
vacuum cleaner you'd use in the house.

 The point is, some tools are just no good.

Don't you just hate tools like that?

 ...

-- 
Joel [EMAIL PROTECTED]


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



Re: I've officially decided that JSTL is one of the worst things to ever happen to mankind

2004-07-04 Thread Joel
On Sat, 3 Jul 2004 23:03:45 -0700
(B"Ivan Jouikov" [EMAIL PROTECTED] wrote
(B
(B ...
(B Point of this message:  DO NOT USE JSTL OR EL.  You$Bc`QM(Bl regret it.  I did.
(B
(BIf a tool doesn't work for you, don't use it.
(B
(BThere are plenty of tools. We all make mistakes. No reason to hate a
(Btool just because it let you down. 
(B
(BIf there are serious faults in a certain tool in the context of your use,
(Bset it aside, regroup, learn from the experience, re-negotiate with your
(Bboss, coworkers, and/or your customers, move on. 
(B
(B(Any boss or any customer who isn't willing to put up with the overhead
(Bof getting the right tool for the job just isn't worth the trouble.)
(B
(B
(B
(B-
(BTo unsubscribe, e-mail: [EMAIL PROTECTED]
(BFor additional commands, e-mail: [EMAIL PROTECTED]

Re: I've officially decided that JSTL is one of the worst things to ever happen to mankind

2004-07-04 Thread Joel
 ... Believe me, it dies whatever C does just

Heh.

 as good, and better.)
 ...



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



Re: target release conflicts with default source?

2004-06-30 Thread Joel
On Tue, 29 Jun 2004 22:59:43 -0700
Bill Barker [EMAIL PROTECTED] wrote

 
 Joel [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
  I tried google against jakarta.apache.org and marc.theaimsgroup.com and
  got no clues. Maybe I'm blind, maybe trying to build on MSWxp is lame?
 
  Here's the part I assume is most relevant.
 
  ---
  build-main:
   [echo] - Java-utils -
   [echo] -- puretls.present = ${puretls.present}
   [echo] -- jsse.present = true /usr/share/java/jsse-1.0.3/lib/jsse.jar
   [echo] -- commons-logging = true
   [echo] -- jmx = true /usr/share/java/mx4j-1.1.1/lib/mx4j-jmx.jar
   [echo] -- modeler = true
 /usr/share/java/commons-modeler-1.1/commons-modele
  r.jar
   [echo] -- JDK14 = true
  [javac] Compiling 63 source files to
 D:\Program_Files\jakarta\jakarta-tomcat
  -5.0.25-src\jakarta-tomcat-5\build\classes
  [javac] javac: target release 1.1 conflicts with default source
 release 1.5
 
  BUILD FAILED
  
 
  I'm using Java 1.5 beta. Is that a no-no?
 
 
 Tomcat (currently) doesn't build with 1.5.  You have to use 1.4 to build it.
 However, it runs fine on 1.5 once built.

That's what I needed to know -- I either set up a 1.4 environment to
build in or I just download the binary.

Tomcat has progressed so far since I used it last I can't figure out
which way is up when I'm looking at the distribution. Well, not really,
but there sure is a lot of stuff in there.

Hmm. From a quick glance through the library, it looks like trying to
share Xalan, Xerces, Log4J and all those guys with my main copies is
going to be an uphill struggle. 

Maybe I'll just get the binary, at least for now.

Thanks.

-- 
Joel [EMAIL PROTECTED]


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



Re: What about Tomcat under java 1.5?

2004-06-30 Thread Joel
On Wed, 30 Jun 2004 20:05:08 -0700
Ivan Jouikov [EMAIL PROTECTED] wrote

I'm just getting into and I discovered that you can't at the present
time compile Tomcat itself with jdk1.5.

Bill Barker confirmed that for me, but he says it runs great under
java1.5 

If you need to compile it for some reason, you just compile it under
jdk1.4 for now.

-- 
Joel [EMAIL PROTECTED]


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



signatures on the downloads and build fails

2004-06-29 Thread Joel
Okay, I checked the signatures on the downloads. No ultimate authority.
Well, I don't particularly trust the ultimate authority concept anyway,
so that's just fine.

When ant builds tomcat, does the build.xml cause that the signatures of all
the dependency downloads are also checked?

-- 
Joel [EMAIL PROTECTED]


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



target release conflicts with default source?

2004-06-29 Thread Joel
I tried google against jakarta.apache.org and marc.theaimsgroup.com and
got no clues. Maybe I'm blind, maybe trying to build on MSWxp is lame?

Here's the part I assume is most relevant.

---
build-main:
 [echo] - Java-utils -
 [echo] -- puretls.present = ${puretls.present}
 [echo] -- jsse.present = true /usr/share/java/jsse-1.0.3/lib/jsse.jar
 [echo] -- commons-logging = true
 [echo] -- jmx = true /usr/share/java/mx4j-1.1.1/lib/mx4j-jmx.jar
 [echo] -- modeler = true /usr/share/java/commons-modeler-1.1/commons-modele
r.jar
 [echo] -- JDK14 = true
[javac] Compiling 63 source files to D:\Program_Files\jakarta\jakarta-tomcat
-5.0.25-src\jakarta-tomcat-5\build\classes
[javac] javac: target release 1.1 conflicts with default source release 1.5

BUILD FAILED


I'm using Java 1.5 beta. Is that a no-no?

-- 
Joel [EMAIL PROTECTED]


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



Re: target release conflicts with default source?

2004-06-29 Thread Joel
  ==
  [javac] Compiling 63 source files to 
  D:\Program_Files\jakarta\jakarta-tomcat
  -5.0.25-src\jakarta-tomcat-5\build\classes
  [javac] javac: target release 1.1 conflicts with default 
  source release 1.5
  
  BUILD FAILED
  
  
  I'm using Java 1.5 beta. Is that a no-no?
 
 Quite strange... the option target 1.1 in javac is for compiling
 applet source in java1 for backward compatibility (due to the
 changing of byte code since java 1.3, if I remember correctly).

Okay, does this have something to do with, for instance, in 

jakarta-tomcat-catalina/catalina/build.xml

the following:

!-- JDK flags --
available property=jdk.1.2.present classname=java.util.HashMap /
available property=jdk.1.3.present 
 classname=java.lang.reflect.Proxy /
available property=jdk.1.4.present classname=java.nio.Buffer /

!-- Ant flags --

that is, a lack of available property=jdk.1.5.present/s?

-- 
Joel [EMAIL PROTECTED]


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



Re: Tomcat starts poorly on Windows XP

2004-06-01 Thread Joel Shprentz
The problem continues with both jakarta-tomcat-5.0.24.exe and 
jakarta-tomcat-5.0.24.zip.

At 12:41 AM 5/27/2004, Joel Shprentz wrote:
A search of the tomcat-user archives suggests that this is a new way
for Tomcat to start poorly on Windows XP.
Below is stdout.log after a clean install of j2sdk-1_4_2_04-windows-i586-p.exe
and jakarta-tomcat-5.0.24.exe on a Windows XP Pro desktop system.  I started
Tomcat from the Configure Tomcat application.
...
May 26, 2004 1:12:51 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
May 26, 2004 1:12:51 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2937 ms
May 26, 2004 1:12:51 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
May 26, 2004 1:12:51 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.24
May 26, 2004 1:12:51 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
May 26, 2004 1:12:51 AM org.apache.catalina.core.StandardHost getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx )
May 26, 2004 1:12:51 AM org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:D:\Projects\Tomcat 
5.0\conf\Catalina\localhost\admin.xml
May 26, 2004 1:12:55 AM org.apache.struts.util.MessageResourcesFactory 
createFactory
SEVERE: MessageResourcesFactory.createFactory
java.lang.NoClassDefFoundError: javax/servlet/jsp/JspException
at 
org.apache.struts.util.MessageResourcesFactory.createFactory(MessageResourcesFactory.java:192)
at 
org.apache.struts.util.MessageResources.getMessageResources(MessageResources.java:576)
at 
org.apache.struts.action.ActionServlet.initInternal(ActionServlet.java:1329)
at 
org.apache.struts.action.ActionServlet.init(ActionServlet.java:464)
at 
org.apache.webapp.admin.ApplicationServlet.init(ApplicationServlet.java:105)
...
--
Joel Shprentz  (703) 478-9668
1516 Park Glen Court   [EMAIL PROTECTED]
Reston, VA 20190 


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


Re: Tomcat starts poorly on Windows XP

2004-06-01 Thread Joel Shprentz
Thanks for the suggestion; I hadn't thought of it.
I doubt that my problem is caused by spaces in a directory path.  It occurs 
even when I extract Tomcat to D:\tomcat.

At 09:14 AM 6/1/2004, Jacob Kjome wrote:
I suggest extracting Tomcat to a directory path with no spaces.  Tomcat 
*should* work with spaces in the path, but experience tells me to avoid this.

Jake
At 08:27 AM 6/1/2004 -0400, you wrote:
The problem continues with both jakarta-tomcat-5.0.24.exe and 
jakarta-tomcat-5.0.24.zip.

At 12:41 AM 5/27/2004, Joel Shprentz wrote:
A search of the tomcat-user archives suggests that this is a new way
for Tomcat to start poorly on Windows XP.
Below is stdout.log after a clean install of 
j2sdk-1_4_2_04-windows-i586-p.exe
and jakarta-tomcat-5.0.24.exe on a Windows XP Pro desktop system.  I started
Tomcat from the Configure Tomcat application.

...
May 26, 2004 1:12:51 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
May 26, 2004 1:12:51 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2937 ms
May 26, 2004 1:12:51 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
May 26, 2004 1:12:51 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.24
May 26, 2004 1:12:51 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
May 26, 2004 1:12:51 AM org.apache.catalina.core.StandardHost getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx )
May 26, 2004 1:12:51 AM org.apache.catalina.core.StandardHostDeployer 
install
INFO: Processing Context configuration file URL file:D:\Projects\Tomcat 
5.0\conf\Catalina\localhost\admin.xml
May 26, 2004 1:12:55 AM org.apache.struts.util.MessageResourcesFactory 
createFactory
SEVERE: MessageResourcesFactory.createFactory
java.lang.NoClassDefFoundError: javax/servlet/jsp/JspException
at 
org.apache.struts.util.MessageResourcesFactory.createFactory(MessageResourcesFactory.java:192)
at 
org.apache.struts.util.MessageResources.getMessageResources(MessageResources.java:576)
at 
org.apache.struts.action.ActionServlet.initInternal(ActionServlet.java:1329)
at 
org.apache.struts.action.ActionServlet.init(ActionServlet.java:464)
at 
org.apache.webapp.admin.ApplicationServlet.init(ApplicationServlet.java:105)
...
--
Joel Shprentz  (703) 478-9668
1516 Park Glen Court   [EMAIL PROTECTED]
Reston, VA 20190
-
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]
--
Joel Shprentz  (703) 478-9668
1516 Park Glen Court   [EMAIL PROTECTED]
Reston, VA 20190 


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


Tomcat starts poorly on Windows XP

2004-05-26 Thread Joel Shprentz
)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
at org.apache.catalina.core.StandardService.start(StandardService.java:476)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2298)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
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.start(Bootstrap.java:284)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:422)
May 26, 2004 1:12:56 AM org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:D:\Projects\Tomcat 
5.0\conf\Catalina\localhost\balancer.xml
May 26, 2004 1:12:56 AM org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:D:\Projects\Tomcat 
5.0\conf\Catalina\localhost\manager.xml
May 26, 2004 1:12:56 AM org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /jsp-examples from URL 
file:D:\Projects\Tomcat 5.0\webapps\jsp-examples
May 26, 2004 1:12:57 AM org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path  from URL file:D:\Projects\Tomcat 
5.0\webapps\ROOT
May 26, 2004 1:12:57 AM org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /servlets-examples from URL 
file:D:\Projects\Tomcat 5.0\webapps\servlets-examples
May 26, 2004 1:12:58 AM org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /tomcat-docs from URL 
file:D:\Projects\Tomcat 5.0\webapps\tomcat-docs
May 26, 2004 1:12:58 AM org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /webdav from URL 
file:D:\Projects\Tomcat 5.0\webapps\webdav
May 26, 2004 1:12:58 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
May 26, 2004 1:12:59 AM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
May 26, 2004 1:12:59 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/156  config=D:\Projects\Tomcat 5.0\conf\jk2.properties
May 26, 2004 1:12:59 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 7813 ms


--
Joel Shprentz  (703) 478-9668
1516 Park Glen Court   [EMAIL PROTECTED]
Reston, VA 20190 



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



Re: Exception processing JAR

2003-08-20 Thread joel . alvim
Try to set paths and context paths in your server.xml with / instead of 
\'s.





Tim Davidson [EMAIL PROTECTED]
20-08-2003 14:49
Please respond to Tomcat Users List

 
To: [EMAIL PROTECTED]
cc: 
Subject:Exception processing JAR


We are using the jregex package in our application, and when tomcat starts 
it causes this error in the tomcat logs, can anyone suggest a reason for 
it? The same error has been seen on other machines with different JAR, but 
the same exception.

we are using tomcat 4.1.24 java 1.4 winNT

2003-08-20 14:28:09 ContextConfig[crisp] Exception processing JAR at 
resource path /WEB-INF/lib/jregex.jar
javax.servlet.ServletException: Exception processing JAR at resource path 
/WEB-INF/lib/jregex.jar
 at 
org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:930)
 at 
org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:868)
 at 
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647)
 at 
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:243)
 at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
 at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:3567)
 at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
 at 
org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
 at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
 at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
 at 
org.apache.catalina.core.StandardService.start(StandardService.java:497)
 at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
 at 
org.apache.catalina.startup.Catalina.start(Catalina.java:512)
 at 
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
 at 
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
 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:203)
- Root Cause -
java.io.FileNotFoundException
 at 
org.apache.naming.resources.DirContextURLConnection.getInputStream(DirContextURLConnection.java:344)
 at 
sun.net.www.protocol.jar.URLJarFile.retrieve(URLJarFile.java:161)
 at 
sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:42)
 at 
sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:78)
 at 
sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:85)
 at 
sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.java:69)
 at 
org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:906)
 at 
org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:868)
 at 
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647)
 at 
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:243)
 at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
 at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:3567)
 at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
 at 
org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
 at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
 at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
 at 
org.apache.catalina.core.StandardService.start(StandardService.java:497)
 at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
 at 
org.apache.catalina.startup.Catalina.start(Catalina.java:512)
 at 
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
 at 
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
 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)
  

Tomcat context problem

2003-08-14 Thread joel . alvim
Hi,

I'm a new user on the mailing list, so forgive me if I ask just stupid 
questions! I'll try not to ;)
I'm trying to load my app into tomcat, but I've got a problem as soon as I 
boot (see exception attached in the end). Looks like tomcat can't find a 
jar file that actually exists and is indeed in the place it looks for!

I'm loosing it as I don't know where else to do in order to get it going!

The jar files tomcat is trying to load are in the usual 
/WEB-INF/lib/something.jar places.

On a small note that can be helpfull, the application root has 2 dirs 
named Java Content and Web Content. The real app struct is inside the 
Web Content dir, and it has been set in the config xml as the docbase.

javax.servlet.ServletException: Exception processing JAR at resource path 
/WEB-INF/lib/IBSComp.jar
at 
org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:930)
at 
org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:868)
at 
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647)
at 
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:243)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:3568)
at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at 
org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at 
org.apache.catalina.core.StandardService.start(StandardService.java:497)
at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
- Root Cause -
java.io.FileNotFoundException
at 
org.apache.naming.resources.DirContextURLConnection.getInputStream(DirContextURLConnection.java:344)
at sun.net.www.protocol.jar.URLJarFile.retrieve(Unknown Source)
at sun.net.www.protocol.jar.URLJarFile.getJarFile(Unknown Source)
at sun.net.www.protocol.jar.JarFileFactory.get(Unknown Source)
at sun.net.www.protocol.jar.JarURLConnection.connect(Unknown 
Source)
at sun.net.www.protocol.jar.JarURLConnection.getJarFile(Unknown 
Source)
at 
org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:906)
at 
org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:868)
at 
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647)
at 
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:243)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:3568)
at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at 
org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at 
org.apache.catalina.core.StandardService.start(StandardService.java:497)
at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)




Error-Page configuration problem

2003-05-30 Thread Joel Lawhead
I am using Tomcat 4.1.18 behind Apache 2.0.44 with mod_jk on a Win XP Pro machine.
 
I have been developing a JSP application for several months. The application is close 
to initial release and I decided to add an error-page directive to web.xml to 
temporarily mask and notify us of any unexpected lingering exceptions.
 
Whenever I add the following to web.xml I get a Parse Error from Tomcat with a list 
of valid tags for web.xml:
 
 error-page
  exception-typeorg.apache.jasper.JasperException/exception-type
  location/error.jsp/location
 /error-page  
The location reference error.jsp is a very simple valid jsp error page.
 
Strangely enough if I remove the exception-type tag and the location tag Tomcat 
notifies me that the error-page tag is incomplete and tells me the valid contents of 
an error-page tag. But when I try to use it properly Tomcat acts as if its never heard 
of the error-page tag.
 
I have also tried using error-code500/error-code instead of exception-type but 
that causes the same problem.
 
I've searched the bug database and mailing list and haven't found any mention of this 
problem.
 
I also tried using a page directive defining an error page but I still received the 
default exceptions I had planted in a test page. I'd rather use the web.xml way if 
possible anyway.
 
Any ideas?
 
Thanks,
Joel



-
Do you Yahoo!?
Yahoo! News - Today's headlines

CharConversionException: isHexDigit

2003-05-28 Thread Joel Carklin
hi everyone,

i was wondering if anyone else has come across the following exception
being thrown. i don't know what causes it and it doesn't seem to affect
the web applications I'm running but I'm a bit concerned about it. It
appears now and then, not very frequently, but often enough, in my
catalina.out log file. Usually when I'm not around (like in the middle
of the night!) 

Thanks for any help

I'm using Tomcat 4.1.24 and the exception is:

java.io.CharConversionException: isHexDigit
at org.apache.tomcat.util.buf.UDecoder.convert(UDecoder.java:124)
at org.apache.tomcat.util.buf.UDecoder.convert(UDecoder.java:87)
org.apache.tomcat.util.http.Parameters.processParameters(Parameters.java:407) 
org.apache.tomcat.util.http.Parameters.processParameters(Parameters.java:495) 
org.apache.tomcat.util.http.Parameters.handleQueryParameters(Parameters.java:278) 
org.apache.coyote.tomcat4.CoyoteRequest.parseRequestParameters(CoyoteRequest.java:1933)
 org.apache.coyote.tomcat4.CoyoteRequest.getParameterNames(CoyoteRequest.java:953) 
org.apache.coyote.tomcat4.CoyoteRequest.getParameterMap(CoyoteRequest.java:933) 
org.apache.coyote.tomcat4.CoyoteRequestFacade.getParameterMap(CoyoteRequestFacade.java:193)
 
org.apache.catalina.core.ApplicationHttpRequest.setRequest(ApplicationHttpRequest.java:525)
 
org.apache.catalina.core.ApplicationHttpRequest.init(ApplicationHttpRequest.java:125)
 
org.apache.catalina.core.ApplicationDispatcher.wrapRequest(ApplicationDispatcher.java:921)
 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:414)
 org.apache.catalina.core.ApplicationDispatcher.fo!
rward(ApplicationDispatcher.java:356) 
org.apache.catalina.valves.ErrorDispatcherValve.custom(ErrorDispatcherValve.java:420) 
org.apache.catalina.valves.ErrorDispatcherValve.status(ErrorDispatcherValve.java:327) 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:181) 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)   
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
at java.lang.Thread.run(Thread.java:536)



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



setting home directory of users in win32

2003-03-31 Thread Pira, Joel G.
Hi to all!

I have been using tomcat for linux and setting up users home directories to
have a URL of the form http://localhost/~user works fine. 

Here is the problem. I did the same thing with W2K. I changed server.xml by
cut and pasting the tag needed so that the home directories of the user will
have the form http://localhost/~user to work. But when I tested it using a
HelloWorld servlet, it gave me a no servlet error. The html files worked
fine in the public_html directory. I have a plain web.xml file in the
WEB-INF directory. I copied the contents of the examples and placed it in
one of the accounts I am configuring and it worked fine. 


What am I missing?


This is what I did.

1. I created c:\home folder for user directories.
2. I created the following c:\home\me, c:\home\me\public_html,
c:\home\me\WEB-INF\, c:\home\me\WEB-INF\classes, c:\home\me\WEB-INF\lib and
c:\home\me\WEB-INF\web.xml.
3. My web.xml is contains web-app/web-app.
4. I run tomcat and did http://localhost:8080/~me/index.html and it works.
5. I made HelloWorld.java and did
http://localhost:8080/~me/servlet/HelloWorld. Restart tomcat.
6. Tomcat gave me a no servlet error.
7. I copied HelloWorld.* to jakarta.../webapps/examples/WEB-INF/classes and
did http://localhost:8080/examples/servlet/HelloWorld and it works.


Joel Gatdula Pira
Faculty
IIT, UAP
Philippines 





---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.465 / Virus Database: 263 - Release Date: 3/25/2003
 

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



NNOT Red Herrings (Re: [OT] free Database with Transaction (Sorry for the noise))

2003-02-19 Thread Joel Rees
This thread brought to mind something in Perl's Artistic License. It
also reminded me that the arguments against the GPL are all red herrings.

Anyway --

 Seems pretty straightforward to me:
 
 If your application is not licensed under GPL or compatible OSI license
 approved by MySQL AB and you intend to distribute MySQL software (be that
 internally or externally), you must first obtain a commercial license to the
 MySQL software in question.

http://www.mysql.com/products/licensing.html

Yeah, that does sound confusing.

However, applying internal/external to the verb distribute would almost
seem to be an attempt to extend the GPL. The GPL does not talk about
internal distributions, nor does it distinguish between commercial and
non-commercial uses. While MySQL does emphasize the benefit to the
customer in buying licenses and support, they aren't trying to weasel
around the GPL.

Deployment is specifically described by the FSF as being a seperate
issue from distribution, and is not restricted under the GPL unless a
particular deployment requires distribution.

(Do you have to install GPLed software X on all the workstations for
your app to run? That sort of deployment would be a distribution, even
if it were internal only. However, if the deployment does not involve
modifying or incorporating said GPLed software X, the GPL would place no
restrictions on it. And if deployment only requires said GPLed software
X to run on the server, and all access is via some other means, then
there has been no distribution in the deployment.)

IIRC, the Artistic License talks about linking as a determinant of
whether one program incorporates another or not. I seem to recall the
FSF trying to talk about linking in some of their previous licenses or
FAQs, but the present license and FAQ do not seem to do so explicitly.

http://www.fsf.org/licenses/gpl-faq.html#MereAggregation

MySQL AB seems to be waving their corporate hands at the issue in item
3B on the page you referenced. (If you talk to un-altered MySQL only
through a third-party, non-GPLed, driver, your software should be clear
of GPL requirements.)

And then we get into the fuzziness of interpreters. Perl, being under
the Artistic License, can link to the driver without License conflicts,
even when distributed. Source code is considered through the Artistic
License to be input to Perl, rather than some sort of means of
incorporating Perl's library. So, if your program is entirely in Perl
and only talks to MySQL through any driver, that also clears you of the
GPL requirements.

The Apache license does not appear, at first glance, to provide the same
sort of buffer, if that's relevant. I think it isn't. Avoiding the
payment of money is not the point.

Even if you're using the stripped-down free-means-free-or-else!
license that openBSD advocates, you really should know what you're using
where and under what terms. If you don't, you don't really know where to
turn when things fail. Free software should not be used as an excuse to
abdicate responsibility. It's exactly the opposite, and if you understand
that, you understand the GPL.

-- 
Joel Rees [EMAIL PROTECTED]


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




Re: [OT] free Database with Transaction (Sorry for the noise)

2003-02-18 Thread Joel Rees
Just thinking out loud --

 ...
 - yes, i did check the mysql website, but rely on (maybe outdated) information
   of computer magazines, that labeled the transaction support very limited.
 ...
 almost free (for non-commercial use):
 - Mysql (http://www.mysql.com/)
   connectors:
   - MySQL Connector/J (http://www.sapdb.org/7.4/sap_db_jdbc.htm)
  - supports jdk  1.4
  - supports jdbc 3.0 
  - JDBC Type 4 Driver 

That almost free (for non-commercial use) makes me wonder if your
information might be old, or perhaps inaccurate. 

It's GPL, so it's free in the GPL sense, and has been several years. If
you have concerns about restrictions on your license to your customer,
contact them and describe what you're doing. Last I recall, querying the
database through a driver was not considered linking directly to the
API, so the so-called viral aspects of the GPL would not be invoked.
You might want to ask.

As an opinion without experience, giving the customer their source code
under a GPL compatible license does not seem all that unreasonable to me.
And, if I'm making much money on a project, it would not seem
unreasonable to buy a license for MySQL that would allow the use of a
license on my code not compatible with the GPL.

MySQL version 4, which is the version said to have full transaction
support, has now passed the beta stage. Some people say MySQL beta is
better than Microsoft final, but I don't have enough experience to say.

Like I say, just thinking out loud.

-- 
Joel Rees [EMAIL PROTECTED]


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




Re: Steve's attitude

2003-02-11 Thread Joel Rees
Uhm, everybody, as has been pointed out before, if you really can't
stand his posts in your mailbox, just set up a filter on his address.
(This list really isn't for teaching people how to win friends and
influence people.)

Steve, there's a newsgroup for basic stuff on _java_ and _jsps_ --

comp.lang.java.programmer

If your mail reader and internet service provider can't get you direct
access to the newsgroup, you can access it through the web --

http://groups.google.com/groups?group=comp.lang.java.programmer

Posting through Google will require registering with Google. They
explain it all on their site.

Be aware, however, that your language will probably cause some
irritation there, as well. Hey, I notice swbell in your e-mail address.
Are you from West Texas, by any chance?

-- 
Joel Rees [EMAIL PROTECTED]


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




Re: [OT]JSP defense - can you point me in the right direction

2003-02-07 Thread Joel Rees
Denise --

 ...  This team includes members that I know for a fact are capable
 of maintaining other technologies.

How do the other team members feel about this? Are you trying to sell
both them and management at the same time?

  If you know C and/or Perl (I assume you would choose one of these to write
 your CGI app) PHP is not hard to pick up. ...
 
 Honestly,  I don't.  I toyed with CGI scripts (Perl) for a fake website I
 made for a course a year ago, and that is the extent of my experience with
 it.  While I don't doubt that I can learn it enough, if not more, to
 complete the project, it is definitely not my preference.  And judging by
 the responses I've received so far it is not the way to go.  

Well, anyone who can write Perl can write PHP. (And anyone who writes
bad Perl will likely write bad PHP.) There would be no learning curve to
go to PHP. 

Well, almost none. Hashes and arrays are not as visible, and some people
will get their backs up about that. Mod_php does induce some style
changes. The object syntax is different, but who of your development
team has ever touched a Perl object? (And they should, before the make
too many decisions.) 

And speaking of modern perl, have they spent much time nosing around
perl.org? Are they aware of Perl6 and Parrot and the changes coming down
the pike? Good stuff, but they do need to be aware of it if they plan to
go with Perl.

Perhaps your managers should read a book called _Perl_for_the_Web_, by a
guy named Radcliffe. He does promote Perl as a basis for solutions, but
his explanation of why CGI does not work in production should be
understandable by your managers. He also provides some direction about
where to head when they discover that their collection of scripts has
become unmanageable.

A few more facts should help them make better decisions, at any rate.

-- 
Joel Rees [EMAIL PROTECTED]


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




Re: [OT]JSP defense - can you point me in the right direction

2003-02-07 Thread Joel Rees
I misspelled --

  _Perl_for_the_Web_, by a
 guy named Radcliffe.

Chris Radcliff. Searching at Amazon seems to require spelling the name right.

Sorry about the OT noise.

-- 
Joel Rees [EMAIL PROTECTED]


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




help tomcat-user

2003-01-21 Thread joel . dewitt

help tomcat-user



This communication is for informational purposes only.  It is not intended as
an offer or solicitation for the purchase or sale of any financial instrument
or as an official confirmation of any transaction. All market prices, data
and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein
do not necessarily reflect those of J.P. Morgan Chase  Co., its
subsidiaries and affiliates.


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




unsubscribe tomcat-user

2003-01-21 Thread joel . dewitt

unsubscribe tomcat-user



This communication is for informational purposes only.  It is not intended as
an offer or solicitation for the purchase or sale of any financial instrument
or as an official confirmation of any transaction. All market prices, data
and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein
do not necessarily reflect those of J.P. Morgan Chase  Co., its
subsidiaries and affiliates.


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




Re: Pick a Platform - Linux, Windows, Unix, Solaris...

2003-01-21 Thread Joel Rees
 If you could pick any platform to run Tomcat on what would it be.

I enjoy playing around with Tomcat on my iBook (updated to 10.2.3,
finally).

(In other words, Linux, Solaris, Mac OS X, *BSD, HP-UX, AIX, etc., are
all UNIX of one sort or another. There are open source JVMs for the
*BSDs, but I don't remember what versions they are up to at this point.
I think there are a few people running Tomcat on the *BSDs.)

 Also what version of Tomcat is now the one to go with?
 I.e. stable, reliable, etc.

Browse the recent archives. There are several listed in the Tomcat pages
on the Jakarta site. I like marc:

http://marc.theaimsgroup.com/

-- 
Joel Rees [EMAIL PROTECTED]


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




Tomcat4 on port 80, standalone, unprivileged user

2003-01-19 Thread Joel Palmius
I've been searching for some time for info on how to run Tomcat4 
standalone on port 80. It seemed overkill to involve apache just for this, 
and running tomcat as root was just plain scary. 

Changing connector port without any other measures just renders a
java.net.BindException: Permission denied:80

I've not seen anyone mentioning the below solution before, sorry if I
missed it, but this is how you run Tomcat4 on port 80 standalone without
involving apache and without running it as root, with as little tinkering 
as possible:

(this solution is probably only valid for linux, and possibly only after 
an rpm install of tomcat)

  * Change connector port to 80 in server.xml.

  * Download, make and make install authbind. The source tarball can be 
found at http://packages.debian.org/unstable/utils/authbind.html

  * Run 

  touch /etc/authbind/byport/80
  chmod 500 /etc/authbind/byport/80
  chown tomcat4 /etc/authbind/byport/80

  * Open /usr/bin/dtomcat4 in a text editor. Around line 205, on the line 
that calls $_RUNJAVA to start the tomcat process, insert
 
  /usr/local/bin/authbind --deep 

so the line reads

  /usr/local/bin/authbind --deep $_RUNJAVA

  * Start tomcat as usual

.. and voila.. The processes still run as tomcat4, and you can access your 
tomcat server without having to add :8080 in the url. 

The above is *a* solution, I'm not saying anything about whether it is a 
*good* solution. It seems to work though. The solution was tested with 
Mandrake 9.0 and Tomcat 4.1.

Cheers. 

  // Joel


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




Newbie cookie question

2003-01-17 Thread joel . dewitt

All,

Is there any way to code a cookie so that all the webapps
on the same Tomcat server can receive it?

I also need it to disappear when the browser is shut.

Thanks,
Joel


This communication is for informational purposes only.  It is not intended as
an offer or solicitation for the purchase or sale of any financial instrument
or as an official confirmation of any transaction. All market prices, data
and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein
do not necessarily reflect those of J.P. Morgan Chase  Co., its
subsidiaries and affiliates.


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




Re: Newbie cookie question

2003-01-17 Thread joel . dewitt


The problem is that it works perfectly on WebSphere 4.x,
but not Tomcat ** for the other webapps**.
The worst case would be a bug in WebSphere, the
production server, that gets fixed someday.

This looks right, but am I missing something?---

  Cookie aCookie = new Cookie( MY_COOKIE_KEY, cookieText.toString()  );
  aCookie.setPath( / );  // deliver to
all directories not just issuer.
  aCookie.setSecure( false );
  aCookie.setMaxAge( -1 ); // per-session
cookie, not stored on disk
  theResponse.addCookie( aCookie );

Thanks,
Joel



Hello joel,

Look into how the cookie path is set.  I think, by default, it is set
to the current context of your app, not the whole server.  You will
need to override this behavior.  See the servlet api for details.  As
far as the cookie disappearing upon browser close, this should happen
unless you specifically set an expiration date for the cookie of
sometime in the future.  Note that *all* open browsers need to be
shutdown in order for the cookie to go away.  If you have 2 browser
windows open and only shut one down, the cookie will still exist.

Jake

Friday, January 17, 2003, 8:52:22 AM, you wrote:


jdjc All,

jdjc Is there any way to code a cookie so that all the webapps
jdjc on the same Tomcat server can receive it?

jdjc I also need it to disappear when the browser is shut.

jdjc Thanks,
jdjc Joel


This communication is for informational purposes only.  It is not intended as
an offer or solicitation for the purchase or sale of any financial instrument
or as an official confirmation of any transaction. All market prices, data
and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein
do not necessarily reflect those of J.P. Morgan Chase  Co., its
subsidiaries and affiliates.


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




Cannot send cookies between webapps on Tomcat 4.1.12

2003-01-16 Thread joel . dewitt

I am running two webapps on Apache Tomcat/4.1.12, on Win2000, port 8080.
One is called partners the other buildings.
I can reach partners through URL:
http://mymachine.ny.mycompany.com:8080/partners;,
buildings through URL: http://mymachine.ny.mycompany.com:8080/buildings;.

Partners creates a cookie:
...
Cookie aCookie = new Cookie( MY_COOKIE_KEY, aToken.toString() );
aCookie.setPath( / );  // deliver to all
directories not just issuer.
aCookie.setSecure( false );
aCookie.setMaxAge( -1 );// per-session cookie,
not stored on disk
theResponse.addCookie( aCookie );
...

Buildings looks for cookie, and cannot get it in Tomcat.  However,
it can in WebSphere 4.0.

Is the cookie set wrong, or is WebSphere not supposed to be delivering it
to the other app?

Thanks,
Joel




This communication is for informational purposes only.  It is not intended as
an offer or solicitation for the purchase or sale of any financial instrument
or as an official confirmation of any transaction. All market prices, data
and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein
do not necessarily reflect those of J.P. Morgan Chase  Co., its
subsidiaries and affiliates.


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




Cannot send cookies between webapps on Tomcat 4.1.12

2003-01-16 Thread joel . dewitt
I am running two webapps on Apache Tomcat/4.1.12, on Win2000, port 8080.
One is called partners the other buildings.
I can reach partners through URL: 
http://mymachine.ny.mycompany.com:8080/partners;,
buildings through URL: http://mymachine.ny.mycompany.com:8080/buildings;.

Partners creates a cookie:
...
Cookie aCookie = new Cookie( MY_COOKIE_KEY, aToken.toString() );
aCookie.setPath( / );  // deliver to all
directories not just issuer.
aCookie.setSecure( false );
aCookie.setMaxAge( -1 );// per-session cookie,
not stored on disk
theResponse.addCookie( aCookie );
...

Buildings looks for cookie, and cannot get it in Tomcat.  However,
it can in WebSphere 4.0.

Is the cookie set wrong, or is WebSphere not supposed to be delivering it
to the other app?

Thanks,
Joel



This communication is for informational purposes only.  It is not intended as
an offer or solicitation for the purchase or sale of any financial instrument
or as an official confirmation of any transaction. All market prices, data
and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein
do not necessarily reflect those of J.P. Morgan Chase  Co., its
subsidiaries and affiliates.


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




Shutdown.bat problem on Windows 2000

2003-01-15 Thread Joel Hughes
Hi all,
This is my first post to this group so apologies if I'm breaking any
conventions.

I have installed TC 4.1.18 on Windows 2000 server. JDK 1.4 is present as
well.

TC seems to run fine and I can hit it on the 8080 etc.

However, when I try to run SHUTDOWN.BAT I get the following error:

ERROR
C:\Program Files\Apache Group\Tomcat 4.1\binshutdown.bat
Using CATALINA_BASE:   C:\Program Files\Apache Group\Tomcat 4.1
Using CATALINA_HOME:   C:\Program Files\Apache Group\Tomcat 4.1
Using CATALINA_TMPDIR: C:\Program Files\Apache Group\Tomcat 4.1\temp
Using JAVA_HOME:   C:\j2sdk1.4.1_01
Catalina.stop: java.net.ConnectException: Connection refused: connect
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:426)
at java.net.Socket.connect(Socket.java:376)
at java.net.Socket.init(Socket.java:291)
at java.net.Socket.init(Socket.java:119)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:581)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:402)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
C:\Program Files\Apache Group\Tomcat 4.1\bin

/ERROR

Any ideas?

I can shutdown and restart TC from the Services menu but I am more
interested in fixing this error. I have had a similar problem with TC on
other Windows boxes.

Any ideas appreciated.

Regards

Joel Hughes

Jojet
35 Farm Road
Hove East Sussex 
+44 (0)1273 324771
http://www.jojet.com/

  


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.408 / Virus Database: 230 - Release Date: 24/10/2002
 


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




TC3 to TC4 upgrade question

2003-01-15 Thread Joel Hughes
Hi all,
I am upgrading a webapp from TC3 to TC 4.1

I had a servlet mapping error with a servlet mapping of (worked fine in
TC3)

servlet-mapping
servlet-name
dologin
/servlet-name
url-pattern
/dologin
/url-pattern
/servlet-mapping

But this was fixed by changing to

servlet-mapping
servlet-name
dologin
/servlet-name
url-pattern
/servlet/dologin
/url-pattern
/servlet-mapping

Now I'm no expert with TC but I thought /dologin would have matched the
url? (this seems to work fine in TC3).

Any ideas? I can get it to work but would just like to know the rules at
work here.

Regards

Joel

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.408 / Virus Database: 230 - Release Date: 24/10/2002
 


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




Is there any way to set request headers?

2003-01-14 Thread joel . dewitt

Is there any way to set request headers, i.e., an existing mod between
Apache and Tomcat,
which can set request headers to be decoded by a servlet?


Thanks,
Joel



This communication is for informational purposes only.  It is not intended as
an offer or solicitation for the purchase or sale of any financial instrument
or as an official confirmation of any transaction. All market prices, data
and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein
do not necessarily reflect those of J.P. Morgan Chase  Co., its
subsidiaries and affiliates.


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




Emulate Entrust headers

2003-01-13 Thread joel . dewitt

Is there a simple way to add HttpRequest headers from Tomcat to emulate
Entrust security?
When I add a header within a servlet, then forward the request to to a JSP,
the header appears to be stripped.

Thanks,
Joel



This communication is for informational purposes only.  It is not intended as
an offer or solicitation for the purchase or sale of any financial instrument
or as an official confirmation of any transaction. All market prices, data
and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein
do not necessarily reflect those of J.P. Morgan Chase  Co., its
subsidiaries and affiliates.


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




Re: HTTPS to HTTP

2003-01-09 Thread Joel Rees
 Thats is my exact situation. The sysadmin section of teh site is 100% https.
 but the on the user side there is nothing that sensitive and little harm
 they could be cause stealing someones session. It would not be worth going
 to the trouble of stealing the session for the benefit you would get.

But how does the intruder know in advance that there is nothing
valuable on the site? And what about the damage that could be done by a
l33t h4x0r d00d just out for a joy-ride? 

Mixing secure with insecure might be something of an attractive nuisance,
I'd think.

-- 
Joel Rees [EMAIL PROTECTED]


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




Re: HTTPS to HTTP

2003-01-09 Thread Joel Rees
 I don't think that performance is a reason to keep 
 the session after a switch because in the most
 applications the amount of protocol switches is 
 quite small when compared to the total number of 
 requests within one protocol.

A possibly stupid question -- is it possible to send graphics raw and
text encrypted?

(This could leave a trap for obscurationists who send confirmation codes
as images, of course.)

-- 
Joel Rees [EMAIL PROTECTED]


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




Re: HTTPS to HTTP

2003-01-09 Thread Joel Rees
   I agree with you 100% but there can be a simple solution to the problem
 that you just raised..and that is that a new session id is created and
 mapped in some table when moving from https--http this way user B can not
 get access to the admin page. 

Two things you'd have to be really careful about --

Never let the https session id be exposed in an http session. (How do
you do that? Tested it under all operating contexts, every browser?)

Never let a switch back to https occur without re-verifying the user. 
(Can this be done seamlessly?)

If you used two distinct (sub)domains (for instance,
http://user.myapp.com and https://secureuser.myapp.com) and were really
careful about the cookie settings for the session ids, might it be
workable? Would it require customizing Tomcat? Is it worth the time to
test (and the risk that the testers didn't think of everything)?

-- 
Joel Rees [EMAIL PROTECTED]


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




Re: HTTPS to HTTP

2003-01-09 Thread Joel Rees
   I don't think that performance is a reason to keep
   the session after a switch because in the most
   applications the amount of protocol switches is
   quite small when compared to the total number of
   requests within one protocol.
 
  A possibly stupid question -- is it possible to send graphics raw and
  text encrypted?
 
 
 Sure ... make your img src=... URLs in the encrypted pages point at
 absolute http: (not https:) URLs of where the images are.

I'm thinking that shipping images raw and text under https might help
those who are concerned about performance. Would this open other holes
besides the booby-trap I mentioned below? Would shipping the images http
open the entire transaction to snooping?

  (This could leave a trap for obscurationists who send confirmation codes
  as images, of course.)
 
 If you're going to switch from https-http, you are totally wasting your
 time messing with https in the first place.  It buys you nothing except a
 *perception* that you are more secure -- that is not the reality.

Am I way out in left field with this idea?

-- 
Joel Rees [EMAIL PROTECTED]


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




Archives! (was Re: SV: tomcat 4.1.12 just stopped working, help !)

2003-01-08 Thread Joel Rees
 Hmm, I just got enlisted on this mailinglist so I don$B%((Bt have yesterdays mail 
(Bfrom it. Is there an archive from yesterday, or maybe you could mail me the thread ?
(B
(B(Ouch. That's a long line.)
(B
(BArchives:
(B
(Bhttp://jakarta.apache.org/site/mail.html
(B
(BAnd after you read the policies on this page, there's a link at the
(Bbottom of the page that takes you to a page with, among other things,
(Bseveral archive services listed on it. You really should have seen this
(Bpage when you signed up, by the way.
(B
(BI like marc, for no particular reason:
(B
(Bhttp://marc.theaimsgroup.com/(general list)
(Bhttp://marc.theaimsgroup.com/?l=tomcat-userr=1w=2   (tomcat-user)
(B
(B-- 
(BJoel Rees [EMAIL PROTECTED]
(B
(B
(B--
(BTo unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
(BFor additional commands, e-mail: mailto:[EMAIL PROTECTED]



Re: limiting access by IP address

2003-01-08 Thread Joel Rees
 You can do the
 same things with Valves and Filters for free.

Stupid question, but what exactly is the point of limiting access by IP
address? (IP addresses being spoofable, and all, ...)

-- 
Joel Rees [EMAIL PROTECTED]


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




Re: jdbc, mysql and character encoding

2003-01-06 Thread Joel Rees

 It doesnt really matter, as long as you get the desired result in your 
 application...

Well, actually, MSW2k supposedly can have optional languages/encodings loaded,
chosen on a per-user basis, and the console supposedly does display the
language and encoding the user is set up for. I'd assume MSWxp does as
well, but maybe not all versions. Mac OS X handles setting the language
per-user, but the shell does not seem to handle multi-byte encodings yet.



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




Re: localhost [OT]

2002-12-25 Thread Joel Rees
 Hi Jason,
 
 I am running windows 98, where is this file?

If you're running MSW98, my memory is you don't have this in a file.
It's the kind of thing you'd find in the registry, however. What key,
I don't remember. Nor do I remember if you can get at it by
right-clicking on youy My Network icon or digging around in the
ethernet/TCP-IP dialogs in your system control panel (where you would
have set the IP address). Maybe it's hard-wired. But if it were
hard-wired in, your box should respond to localhost and 127.0.0.1.

Can your box access itself at http://127.0.0.1?

 Thanks
 Tomislav
 
 - Original Message -
 From: Jason Pyeron [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Wednesday, December 25, 2002 5:13 PM
 Subject: Re: localhost [OT]
 
 
  Typically localhost is defined in your hosts file as
 
  127.0.0.1   localhost
 
  a hosts file is queried before DNS on most systems.
 
  what system type are you running?
 
  -jason pyeron
 
  --
  -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  -   -
  - Jason Pyeron   http://www.pyerotechnics.com   -
  - Owner  Lead  Pyerotechnics Development, Inc. -
  - +1 410 808 6646 (c)   500 West University Parkway #1S -
  - +1 410 467 2266 (f)   Baltimore, Maryland  21210-3253 -
  -   -
  -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 
  This message is for the designated recipient only and may contain
  privileged, proprietary, or otherwise private information. If you
  have received it in error, purge the message from your system and
  notify the sender immediately.  Any other use of the email by you
  is prohibited.
 
 
  On Wed, 25 Dec 2002, Tomislav Miladinovic wrote:
 
  Hi All,
 
  After I installed Tomcat 4.1.18 my browser doesn't recognize localhost
 variable. If I browse http://localhost:8080 it gives me error HTTP 500 but
 if I browse localhost with ip address in dot notation it works fine (ex.
 http://xx.xx.xx.xx:8080). Where and when is this variable assigned?
 

-- 
Joel Rees [EMAIL PROTECTED]


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




Re: localhost [OT]

2002-12-25 Thread Joel Rees
Oh. One more thing. 127.0.0.1 is called the loob-back address in the
real world. Redmond may have copied the real world on this one, too. 

Hmm. Get out the google, search loopback ms windows 98:


http://www.microsoft.com/technet/treeview/default.asp?url=/TechNet/prodtechnol/win98/support/troubles.asp

and clicking on the link to connectivity problems (or about half-way
down this page) mentions the loopback address, but doesn't mention how
to make sure it is 127.0.0.1, and properly associated with localhost.

Try again. At google again, search localhost ms windows 98:

http://www.experts-exchange.com/Operating_Systems/Win98/Q_10462121.html

This one says there is a file called hosts in your windows folder in
your system drive where the association should be. 

  Hi Jason,
  
  I am running windows 98, where is this file?
 
 If you're running MSW98, my memory is you don't have this in a file.
 It's the kind of thing you'd find in the registry, however. What key,
 I don't remember. Nor do I remember if you can get at it by
 right-clicking on youy My Network icon or digging around in the
 ethernet/TCP-IP dialogs in your system control panel (where you would
 have set the IP address). Maybe it's hard-wired. But if it were
 hard-wired in, your box should respond to localhost and 127.0.0.1.
 
 Can your box access itself at http://127.0.0.1?
 
  Thanks
  Tomislav
  
  - Original Message -
  From: Jason Pyeron [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Wednesday, December 25, 2002 5:13 PM
  Subject: Re: localhost [OT]
  
  
   Typically localhost is defined in your hosts file as
  
   127.0.0.1   localhost
  
   a hosts file is queried before DNS on most systems.
  
   what system type are you running?
  
   -jason pyeron
  
   --
   -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
   -   -
   - Jason Pyeron   http://www.pyerotechnics.com   -
   - Owner  Lead  Pyerotechnics Development, Inc. -
   - +1 410 808 6646 (c)   500 West University Parkway #1S -
   - +1 410 467 2266 (f)   Baltimore, Maryland  21210-3253 -
   -   -
   -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  
   This message is for the designated recipient only and may contain
   privileged, proprietary, or otherwise private information. If you
   have received it in error, purge the message from your system and
   notify the sender immediately.  Any other use of the email by you
   is prohibited.
  
  
   On Wed, 25 Dec 2002, Tomislav Miladinovic wrote:
  
   Hi All,
  
   After I installed Tomcat 4.1.18 my browser doesn't recognize localhost
  variable. If I browse http://localhost:8080 it gives me error HTTP 500 but
  if I browse localhost with ip address in dot notation it works fine (ex.
  http://xx.xx.xx.xx:8080). Where and when is this variable assigned?
  

HTH

-- 
Joel Rees [EMAIL PROTECTED]


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




RE: HTTP to HTTPS redirect

2002-11-27 Thread Joel Werginz
It works fine when I put in BASIC Authentication (which I really don't want
to do) where I have to use a username and password to get to the Login Page;
however, as soon as I remove this, I get the error mentioned about access
control.

Joel Werginz

-Original Message-
From: mech [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 6:19 PM
To: 'Tomcat Users List'
Subject: RE: HTTP to HTTPS redirect


Does the form login work at all? Did you try without
user-auth-constraintconfidential/...?

The error message doesn't sound like a redirect problem. Rather sounds
to me like if there are no security roles set or something wrong with
the configuration. Double check with the examples webapp and it's
web.xml, the tomcat-user.xml and the jsp/security/protected/ directory
to see if everything is okay.
Guess something in the chain
security-constraintauth-constraintrole-name and/or
security-rolerole-name in web.xml config is missing.

Try if you get /examples/jsp/security/protected working without SSL
first. Then add confidential.

 -Original Message-
 From: Joel Werginz [mailto:[EMAIL PROTECTED]]
 Sent: Dienstag, 26. November 2002 23:20
 To: [EMAIL PROTECTED]
 Subject: HTTP to HTTPS redirect


 All,

   Been reading posts about this.  Changed to HTTP port 80
 and HTTPS to port 443. I am using Win2K, IE6.  When I type in
 an http page that is supposed to redirect, I get the
 following: HTTP Status 500 - Configuration error:  Cannot
 perform access control without an authenticated principle.
 Note:  The page does get re-directed; however shows me an
 error page instead of my login page. This also happened when
 I was using 8080 and 8443.  Using simple keytool verification
 based on the user's guide.

 Joel Werginz sends.



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



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


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




HTTP to HTTPS redirect

2002-11-26 Thread Joel Werginz
All,

Been reading posts about this.  Changed to HTTP port 80 and HTTPS to port
443.
I am using Win2K, IE6.  When I type in an http page that is supposed to
redirect, I get the following:
HTTP Status 500 - Configuration error:  Cannot perform access control
without an authenticated principle.
Note:  The page does get re-directed; however shows me an error page instead
of my login page.
This also happened when I was using 8080 and 8443.  Using simple keytool
verification based on the user's guide.

Joel Werginz sends.



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




Re: Help needed with Tomcat support for Double Byte Chars

2002-11-25 Thread Joel Rees
 Hi,
 We are using Tomcat3.3.1 and Oracle on Linux.
 When we enter DoubleByte Chars (CJK, GB2312) in jsp form input, Tomcat 
 turns the characters into 's.
 
 The only way we can get around this problem now is to set the IE browser to 
 check the temporary files everytime.

I think I've seen this on the list, quite recently, in fact. Check the
archives. Look for internationalization and multilingual and words
like properties. (In fact, I think there is a relevant current thread.)

You can find archives through the apache/jakarta site. I bookmarked marc
(http://marc.theaimsgroup.com, don't remember if tomcat-user is in the
jakarta group or the java group) but there are others, too.

(Sorry to not be much help today.)

-- 
Joel Rees [EMAIL PROTECTED]


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




Re: OFF Topic : Any java based API converters from DOC or PDFto HTML

2002-11-20 Thread Joel Sather

Well, you could always try http://www.jpedal.org/, but it seems to only
be an API to extract info from a PDF--you'd still have to build the HTML
pages.  If you don't mind paying, you could always ask Google--they seem
to convert PDF and DOC to HTML on the fly.  I'd also recommend running
the conversion as a backend process rather than as an on the fly type
thing.  There are probably libraries for other languages out there.  I'm
also pretty sure that Adobe provides backend tools which can be batched
to do this sort of stuff (possibly their Web Output Pak).

By the way, save yourself some time next question and ask google first:

http://www.google.com/search?hl=enie=UTF-8oe=UTF-8q=java+pdf+conversion.

-Joel


Joel Sather
email: [EMAIL PROTECTED]
phone: 651-649-5789

 [EMAIL PROTECTED] 11/20/02 12:01PM 
Hi,
We have a situation where the documents (DOC/PDF) will get uploaded to
server and we need to convert and publish them to HTML format (which
is
accessible for all the users).  We are looking for any kind of
convertion
utility (java based API) for converting to HTML.  Our enviroment is
Apache -
Tomcat under Sun-Solaris machine.
There is a POI (HDF) sub-project under jakarta.apache.com which does
convertion from Word 97 DOC to HTML.  But this module is still in the
early
stages does not have full capabilities.
Thanks in advance for your information.
Thanks and regards,
Nagarjuna Rao Chakka


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


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




Re: whereis that cat?

2002-11-17 Thread Joel Rees
 i installed tomcat rpm on my server, but i am running a hosting company with
 many sites configured on the apache,

That makes things pretty hard for me to guess.

 when i try to run a jsp file i get an
 error saying 404 not found,
 eg http://66.150.223.35/index2.jsp
 
 does anyone know where i should check and what i should look for? i cant
 seem to be able to figure out where tomcat got installed and how to
 configure it properly, all i get is a tomcat error page,
 also when i go to http://66.150.223.35/index.jsp i get a page saying tomcat
 is installed ok

Can you tell if it's apache or tomcat serving that page?

 but none of the links on this page works

Sounds like maybe apache is running, but tomcat is not? or Tomcat is not
hooked up correctly?

 and i cant find
 this page on the server anywhere either :-(

And this sounds like maybe you've got Apache pointing to a tomcat on
another server.

Sorry I don't have any more suggestions, but I would need more specifics
before I could even guess. For instance, you might post the relevant
lines of your apache and tomcat configuration files, and of your webapp
configuration files for tomcat.

-- 
Joel Rees [EMAIL PROTECTED]


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




Servlet init() in 4.1.12 problem

2002-11-14 Thread Joel Sather

I seem to be having an odd problem getting access to a JNDI resource in
a servlet init() function under Tomcat 4.1.12.  There is a similar bug
listed for 4.1.7 (#10948) as well as other bugs like 14461 and 14367. 
My problem is that init() is getting called, and it can get the
InitialContext().  It can't, however, access a JNDI database definition.
 I use the init() method to populate some static data with a call to the
servlet allowing it to be updated if we make a database change (that is
fairly rare, but could happen).  The strange thing is that the servlet
works just fine if I call it (accessed via doGet()).  The data access
code is exactly the same in the two methods (init(), doGet()).  The
init() function worked fine under 4.0.3.

Does anyone do anything like this?  My guess is that the environment
context isn't yet populated when the init() function is called--which
seems like a bug.  Anyone have any ideas?

Other specs:  Solaris, JDK1.3.1_01

Thanks,
Joel


Joel Sather
email: [EMAIL PROTECTED]
phone: 651-649-5789

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




Java Process hanging

2002-09-23 Thread Joel Maisenhelder



Dear Gang,
I am running Tomcat 4.1.10 with java 1.4 on Solaris 8 . I am having
trouble shutting down the tomcat server. I do a shutdown.sh and it
says that it is stopping the server all the logs say it is down and
you can nolonger reach the port 8080 webserver but if I do a 
ps -aef | grep java I still see the java process running and if I do
a start I get another java process wich does not go away with a
shutdown so after a little while I have lots of java process runnning
and I must do a pkill java on them to get rid of them . Is there any
ideas out there as to why this is happening or how to debug it better
. Thanks in advance.
-- 
--Joel Maisenhelder
[EMAIL PROTECTED]
=
One by one, the penguins steal my sanity

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




Re: Where should i put dynamically generated graphics

2002-08-30 Thread Joel Sather


If you want a servlet to write out a GIF stream take a look at this: 
http://www.javaworld.com/javaworld/jw-05-2000/jw-0505-servlets.html

Basically, you have a seperate servlet that generates the GIF.  Then
your real page has a IMG tag that references the image display servlet
which sends back a GIF encoded stream.

And of course Google is your friend: 
http://www.google.com/search?hl=enie=UTF-8oe=UTF-8q=java+servlet+write+gif

-Joel


Joel Sather
email: [EMAIL PROTECTED]
phone: 651-649-5789

 [EMAIL PROTECTED] 08/30/02 09:53AM 
  Yes, I would like the solution where we can write to the servlet
outputstream, but I have no idea how to do it.

On Fri, 2002-08-30 at 10:21, Michael E. Locasto wrote:
 I can think of a couple of ways offhand:
 
 -process the request
 -generate your image
 -store your image somewhere (optional)
 - either
 - write the image directly out to the servlet's underlying
 outputstream
 as a buffered byte output stream (I don't think PrintWriter
would be
 appropriate. This would probably also in involve a
 response.setContentType(image/gif); ... but i've never done this,
so I'm
 probably wrong.)
 
 -or-
 
 -store your image somewhere
 -return html that has a bunch of img src= tags or
hyperlinks to
 the images
 eg:
 /* get my images! */
   public void doGet(HttpServletRequest request,
   HttpServletResponse response)
   throws IOException, ServletException {
 /* optionally clean out the temp image directory */
 /* genrt imgs, store in gen_images/username/ under the current
context
 */
 
  response.setContentType(text/html);
  PrintWriter out = response.getWriter();
   out.println( htmlbody );
   out.println( img src=\gen_images/username/foo.gif\  );
   out.println( img src=\gen_images/username/foo1.gif\  );
   out.println( img src=\gen_images/username/foo2.gif\  );
   out.println( /body/html );
 }
 
 of course, feel free to spruce that html up ;)
 
 hope that helps,
 Michael
 
 - Original Message -
 From: Felipe Schnack [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Friday, August 30, 2002 8:06 AM
 Subject: RE: Where should i put dynamically generated graphics
 
 
How can I return an image from a servlet??
 
  On Thu, 2002-08-29 at 20:05, Sexton, George wrote:
   It depends. One way I have done it is to have the generator
servlet save
 it
   on the session, and have the page the generator servlet writes
make a
   request to a simple servlet that returns the graphic, and then
deletes
 it
   from the session.
  
   Another way would be to write it to the temp dir. From the
Servlet API
 Spec:
  
   SRV.3.7.1 Temporary Working Directories
   A temporary storage directory is required for each servlet
context.
 Servlet
   containers must provide a private temporary directory per
servlet
 context,
   and make
   it available via the javax.servlet.context.tempdir context
attribute.
 The
   objects
   associated with the attribute must be of type java.io.File.
  
   Then, using a servlet mapping request the generated image and
have the
   servlet retrieve the temporary image.
  
   I guess that you could make another dir writable to the server,
and
 store
   the image in their natively.
  
   George Sexton
   MH Software, Inc.
   Home of Connect Daily Web Calendar Software
   http://www.mhsoftware.com/connectdaily.htm 
   Voice: 303 438 9585
  
  
   -Original Message-
   From: Andy Wagg [mailto:[EMAIL PROTECTED]] 
   Sent: 29 August, 2002 4:01 PM
   To: [EMAIL PROTECTED] 
   Subject: Where should i put dynamically generated graphics
  
  
   Hello
  
   I have a web application that generates a gif file that is then
   subsequently displayed. It expects to find the gif file in the
context
   of the web application. The web app is deployed as a war so
obviously
   the generated files cant be put there. Any suggestions as to
where these
   files could be copied that would be accesible by the browser.
  
   Thanks in advance.
  
  
   --
   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]
  
  --
 
  Felipe Schnack
  Analista de Sistemas
  [EMAIL PROTECTED] 
  Cel.: (51)91287530
  Linux Counter #281893
 
  Faculdade Ritter dos Reis
  www.ritterdosreis.br 
  [EMAIL PROTECTED] 
  Fone/Fax.: (51)32303328
 
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:  
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
 
-- 

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

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


--
To unsubscribe, e-mail:  
mailto

Re: Tomcat and Crystal Reports (Urgent)

2002-08-29 Thread Joel Sather


This is true, but I think it requires 9 (the Java SDK that is).  There
was also an ad in the recent Java Dev Journal about it.

From the the crystal website:

Java, .NET and COM SDKs - A rich set of Java, .NET, and COM APIs let
you control how end users interact with reports and modify them at
runtime. Automatically turn on advanced options including highlighting,
zooming, and text searching. Tight integration with Microsoft Office
lets end users search on report data and export the results to Microsoft
Word, Excel and HTML.

Not sure how it integrates with servlets, but if you can make an applet
you should be able to pull the image it generates to display on the web
(we do this for some dynamic graphs with raw Java 2D stuff).

-J


Joel Sather
email: [EMAIL PROTECTED]
phone: 651-649-5789

 [EMAIL PROTECTED] 08/29/02 04:49PM 
They say that new version 9.0 is fully supporting java.

Didn't MicroSoft pay their last bill ?

Dom
- Original Message -
From: Randy Secrist [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, August 29, 2002 6:41 AM
Subject: Re: Tomcat and Crystal Reports (Urgent)


 The last version of Crystal reports I used was version 7.0.  I
didn't
think
 they had any java support at that time.  Has this changed?

 Randy
 - Original Message -
 From: Amit Lonkar [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, August 28, 2002 9:32 PM
 Subject: Tomcat and Crystal Reports (Urgent)


  Hi All!!
 
  Has any one been able to deploy crystal reports on
  Tomcat server. If yes, please let me know how you have
  done it.
 
  Thanks A Lot
  Amit Lonkar
 
 

  Want to sell your car? advertise on Yahoo Autos Classifieds. It's
Free!!
 visit http://in.autos.yahoo.com 
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


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





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


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




RE: Directory Checksum Error?

2002-08-01 Thread Joel Hainley


thanks for the help..that worked!
 -Original Message-
 From: sharath [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, July 31, 2002 10:51 PM
 To: Tomcat Users List
 Subject: Re: Directory Checksum Error?
 
 
 The Solaris tar has problems when extracting long 
 filenames...moreover the
 tomcat.tar would be created from GNU tar...so use that...
 - Original Message -
 From: Joel Hainley [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, August 01, 2002 3:23 AM
 Subject: Directory Checksum Error?
 
 
  I keep getting checksum errors when i try to extract the
  jakarta-tomcat-4.0.4.tar.gz package in solaris. I am 
 running an ultra 10
  with solaris 8. I tried opening the same archive on my 
 windows workstation
  and I don't get this error. Anyone else have this problem? 
 HOw did you get
  around it?
 
  Thanks.
 
  Joel
 
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 

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




Solaris and Tomcat 4.0.4

2002-07-31 Thread Joel Hainley

I've been battling with this for a few days..and I keep finding people
asking this question on deja ( now known as google groups ), but I haven't
found an answer.

I'm using
solaris 8 on an ultra 10
the 1.4.0_01 jdk
tomcat 4.0.4

i've set the environment variables
CATALINA_HOME
JAVA_HOME

I run tomcat with startup.sh..and I get

Using CATALINA_BASE: /usr/jakarta-tomcat-4.0.4
Using CATALINA_HOME: /usr/jakarta-tomcat-4.0.4
Using CATALINA_TMPDIR: /usr/jakarta-tomcat-4.0.4/temp
Using JAVA_HOME : /usr/j2se

then i get my command prompt again..no other windows pop up or anything.

The server does not appear to be running because if i browse to local host I
get a connection has been refuse thing. So i'm pretty sure it's not running.
So I looked in CATALINA_HOME/logs and withing the catalina.out file there
was the following information...

Exception in thread main java.lang.NoClassDefFoundError:
org/apache/catalina/startup/Bootstrap

So i'm guessing that i'm doing something horribly wrong...but I'm not sure
what it is...

help?

thanks

Joel



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




Directory Checksum Error?

2002-07-31 Thread Joel Hainley

I keep getting checksum errors when i try to extract the
jakarta-tomcat-4.0.4.tar.gz package in solaris. I am running an ultra 10
with solaris 8. I tried opening the same archive on my windows workstation
and I don't get this error. Anyone else have this problem? HOw did you get
around it?

Thanks.

Joel


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




RE: Routing With tomcat

2002-07-25 Thread Joel Sather


Well, there are other options.  There are a ton of port mapping
facilities out there (check the Linux firewall toolkits) that could map
this.  Also, if you are just looking to take all requests to
mail.server.com and have tomcat do the calls to another, even farther
back-end system then I'm sure you could build a servlet to handle that
pass through.  I've done this before to pull an HTML page from another
internal server via the external servlet (I didn't agree with the
design, but they wanted it done), and it worked just fine.  You set the
server to recognize mail.server.com and then setup a virtual host in
tomcat to map to the specific relay webapp.  In fact if you can get
Apache working on the main server there is no real reason you couldn't
use that to provide a link to the other server--provided it had a tomcat
instance.  It is similar to loadbalancing across multiple servers.  So,
there are about 10 different ways to do this, pick the one that works
best for your network architecture.

I agree with the others, though--it would be better to have the router
doing the mapping.  Some routers/firewalls are even smart enough to do
exactly this--even if host1 and host2 have the same IP the
firewall/router can map them to different servers/ports on the fly.

-Joel


Joel Sather
email: [EMAIL PROTECTED]
phone: 651-917-4719

 [EMAIL PROTECTED] 07/25/02 12:35PM 
Tomcat isn't a router.  What you're trying to do isn't really a tomcat
question, it's more a general web server question, or router question.
If you don't have another ip address then I really recommend that you
just map another port on the router to the other webserver.  That's
the
simpliest and easiest solution and it's what routers are made to do.

--mikej
-=-
mike jackson
[EMAIL PROTECTED] 

-Original Message-
From: Nicolas Brasseur [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, July 25, 2002 10:24 AM
To: Tomcat Users List
Subject: RE: Routing With tomcat


So, you confirm Tomcat is unable to re-route HTTP
request based on the virtual hostname ?
Don't you know a kind of software-router able to do
that ?

Thanks a lot ...


--- Turner, John [EMAIL PROTECTED] wrote:

 My advice is get a second IP from your ISP for
 mail.brol.be.

 If these are different machines, and you are
 hiding behind one routable IP
 address, you're going to have problems.  You don't
 tomcat invoked/involved
 in every single request to the webmail server, and
 yet if the webmail server
 isn't available on port 80, you will have problems
 with end-users, as most
 corporate firewalls restrict traffic to port 80.

 John Turner
 [EMAIL PROTECTED] 

 -Original Message-
 From: Nicolas Brasseur
 [mailto:[EMAIL PROTECTED]] 
 Sent: Thursday, July 25, 2002 12:36 PM
 To: Tomcat Users List
 Subject: RE: Routing With tomcat


 www.brol.be is pointing to the router that re-route
 request for port 80 to the Tomcat server, the IP
 address of the router is static and fixed by our
 ISP.
 So every HTTP request will be automaticaly routed to
 the Tomcat server.


 --- Turner, John [EMAIL PROTECTED] wrote:
 
  Ok, but if this is a different machine, I'm still
  not understanding why
  there is even an issue.  If www.brol.be = 1.2.3.4
  and mail.brol.be =
  6.7.8.9, there's no possible way a request on port
  80 for mail.brol.be would
  ever be seen by tomcat.
 
  Sounds like your DNS is messed up.  All you need
 to
  do is set the correct IP
  addresses for the two hostnames and you should be
  good to go.  Your tomcat
  server should never see requests for mail.brol.be
 if
  they are separate
  machines.
 
  If they aren't separate machines, you can't run
 more
  than one thing on port
  80, unless you want to setup virtual hosting with
  two separate URLs.  If you
  wanted to do that, you could just write a filter
 on
  www.brol.be that looks
  at the request header and issues a redirect to
  mail.brol.be if the request
  header is equal to mail.brol.be.
 
  John Turner
  [EMAIL PROTECTED] 
 
 
  -Original Message-
  From: Nicolas Brasseur
  [mailto:[EMAIL PROTECTED]] 
  Sent: Thursday, July 25, 2002 12:14 PM
  To: Tomcat Users List
  Subject: RE: Routing With tomcat
 
 
  Thanks for paying attention to my message John,
 
  Your second proposition is right, I have a web
 mail
  client, actually a lotus domino server that listen
  on
  the port 80 (for other reasons it MUST be the port
  80).
 
  Nicolas
 
  --- Turner, John [EMAIL PROTECTED] wrote:
  
   You could use a filter in Tomcat, but that would
  be
   overkill.
  
   On your router, add a static route for ports 25
  and
   110 (SMTP and POP3) to
   go to the IP address of the other machine.  Add
  the
   IMAP port if you're
   using that port.
  
   Or are you really asking how to run a webmail
  server
   that allows people to
   check and send mail via webpages served on port
 80
   on a machine other than
   the tomcat server?
  
   John Turner
   [EMAIL PROTECTED] 
  
   -Original Message-
   From

Re: Please Unsubscribe me!!

2002-07-18 Thread Joel Rees

 I have tried repeatedly to unsubscribe from this list and an error occurs.

Okay, I have removed the mailto:; protocol declarations in the usual
unsubscribe/commands links and pasted them in here:

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

If these links don't work, try direct copy/paste into the To: field of a
blank new message.

If this unsubscribe link doesn't work, try checking that you are posting
the unsubscribe from the same address you subscribed from. Look at your
headers. (I think it's in the View menu or someplace like that, or you
should be able look at the mail source through something like the
Properties item in the File menu.) Check the Return-Path field, and you
should see the mail address that you subscribed from embedded in the
return path. If it is jaa=cardone.com, this isn't the problem. If it is
something else, use the address indicated to unsubscribe.

 Can a moderator of this list please help, I'm using outlook 2000.

There is a way to contact somebody if none of the above work.

My sympathies about Outlook.

-- 
Joel Rees [EMAIL PROTECTED]


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




Re: What can cause a clean Tomcat shutdown?

2002-07-15 Thread Joel Rees

 
 Well hope you don't have some kind of cron job that periodically shuts
 Tomcat down.
 
 RS

You mean, like a root kit?


-- 
Joel Rees [EMAIL PROTECTED]


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




Re: New to Tomcat/Mac OS 9

2002-07-08 Thread Joel Rees
 in the
  same round...
 
  And why use Tomcat 3, when Tomcat 4 is so good?
 
  BTW: it's so difficult to find ANY hint or tutorial on how Tomcat 3 needs
  to be configured. At times I hate living in a fast moving profession...
 
 The user's guide at
 http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-ug.html is a good
 place to start.

And don't forget the on-line docs in the distribution. You have to get
the server running to run the examples, but you can browse the docs
before you get the server running. Those docs have the information you
need.

If getting to the docs on the jakarta site is too much trouble and you
need to browse the docs before you get Tomcat running, you might try one
of two things. 

One, use gnutar (I think -x is the extract flag?) to extract the tarball
in a directory you can see from the Finder. Even if you want to run it
from a part of the tree that you have to use the terminal app and a
shell to see, unless you're really tight for disk space, having it
unarchived in two places won't hurt. Since it doesn't run like a regular
Mac application, there will be no question about which copy is running.

The other thing you might try is to reboot in Mac OS 9, but you'll need
something to set the file types to TEXT, or your browser may refuse to
open them. Probably the first idea will be easier.

  I love OS X!
  Martin
 
  As as long, LONG time Mac user, it's a mixed feeling. I know that there
  are a ton of improvements and advantages, but somehow I managed to wait
  until now. Go figure...

As of 10.1, I no longer really noticed much. But I have been a UNIX user
about as long as I've been a Mac user. I do miss a few things that
didn't show up until fairly late, like turning folders into tabs at the
bottom of the screen. Sure, you can put folders in the dock, but it does
feel a little different. Sort of like stepping back to System 7, but in
a parallel universe.

You'll probably want to put the terminal app in the dock. Then, one of
the first commands you need to get used to is man. (Unfortunately,
apropos is not yet supported.)

   man cd
   man ls
   man man
   man gnutar
   man vi

Start reading the manual pages now, and don't start setting any
deadlines until you've got Tomcat running. You're looking at about five
to forty hours to get started with Mac OS X, where you'd be looking at
complete unknowns with Mac OS 9. (Whole man-years maybe.)

Oh. If you've got web sharing (apache!) running, you'll probably want to
shut it down while you're getting Tomcat running. Apache is a little bit
of a pain, because you'll be using the finder to start and stop it, but
you'll be using the shell (terminal app) and vi to edit the
configuration files.

-- 
Joel Rees [EMAIL PROTECTED]


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




Re: Mac OS X, Tomcat 4.0.4, MySql configuration denies access

2002-07-08 Thread Joel Rees

Been wondering some things about this thread --

Jack, what UNIX user owns MySQL? Likewise, Tomcat? And what UNIX user
are they each being run by?

 I continue to get the sql exception using the above software and
 mm.mysql 2.0.8 drivers.
 MySql is 3.23.51 downloaded from entropy.ch
 
 I have granted permission to the program for both localhost (a guess) and 
 localhost.localdomain (which I needed on wintel and linux).
 
 While roaming with google, someone 
 (http://www.macosx.com/forums/showthread.php?s=threadid=7737highlight=mysq 
 l+java) solved (I think) the same problem by making a new root user with 
 host = % (I confess: I have no idea how to do that!).  I tried making my 
 program (the name I use to open a connection to mysql) a Mac User.  Nothing 
 changed.

Do you mean to say that you tried adding a UNIX user called mysql? Did
use chown on the mysql distribution to change the user/group
appropriately? Did you set up your sudoers and use sudo to run mysql?

 I see several candidate avenues of inquiry:
   tomcat 4.0.4 has problems with this configuration (I think very unlikely)
   mm.mysql 2.0.8 is the wrong driver for 3.23.51
   3.23.51 (being a very recent release) has some problem
   my configuration of the database with permissions is not consistent with 
 OS X needs (works fine on wintel and linux, however).
 
 Any thoughts would be greatly appreciated.
 Cheers,
 Jack

-- 
Joel Rees [EMAIL PROTECTED]


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




Re: Mac OS X, Tomcat 4.0.4, MySql configuration denies access

2002-07-08 Thread Joel Rees

 Thanks, Joel.
 You're wondering about things I started wondering about myself, today.
 
 I suppose it's worse than that, however.  I just found out that, while 
 tomcat does seem to want to load my servlet, it will not load any of the 
 examples.

If it doesn't load the examples, I'd be surprised if it really wanted to
load your servlet. (I have been surprised before.) Usually, if it
doesn't run the examples, it isn't running, and what you're really doing
is serving the Tomcat example pages from apache.

Is apache running? That could be getting in your way. Check the web
sharing (ohwhatisthatcalledinEnglishMacOSX?) control panel (???). It's
there with file sharing. Interpret web sharing as meaning apache.

Even if you had no problems getting apache and Tomcat running together
on the Linux and Windows set-ups, you probably want to shut it down
while setting Tomcat up on the Mac.

If apache is not running, and your servlet seems to be trying to run,
have you perhaps edited the examples context instead of copying it and
making a new context for your servlet to run in?

 The404 message says the requested resource is not available, but 
 the log says it's doing a class not found problem on a filter.  I just 
 downloaded tomcat 4.0.1 (because that's what I'm running on linux) and it's 
 doing the same error on the mac.  I found some stuff with google that 
 suggests I not put anything specific to tomcat (except, perhaps, the 
 specific servlet classes) in my CLASSPATH. There is, in fact only the path 
 to the servlet classes themselves as a hedge.  Perhaps that should be 
 removed.  Right now, I don't see the link.

I'm thinking I didn't mess with the CLASSPATH for Tomcat 3.3, but my
memory may be wrong. I'll check when I get home tonight. (I've got it
set up on my own iBook.)

What's your server.xml look like? Have you set that (and the stuff it
refers to) up properly? Read the comments and the XML declarations in
there and check them against the docs again.

 So back to owners.
 I followed the instructions from an OnJava article on installing tomcat. 
 Tomcat is owned by Unix user 'jackpark', while mysql, also installed 
 according to an OnJava article, is owned by (originally) Unix user 'mysql' 
 and now Unix user 'wiki'.  I'd like everything to be owned by 'wiki'

I think there should be no problem with that, although it isn't really
necessary. You can control who can run as whom with your sudoers file.

Are you setting the users up from the users control panel (???) or from
the network administration app? The latter is the one you want to be
using for users that are there just to run apps under.

Remember to keep root login disabled as much as possible.

(which 
 has a password) because that's the user that a webmaster will have access 
 to.  chown -R is used on the mysql installation. the user 'jackpark' is 
 running both.
 
 I'm not sure what subdoers means,

sudoers is the file in /etc somewhere (my memory is bad today) that
tells sudo which users are allowed to pretend to be whom.

but I almost always have to use sudo to 
 do everything. 

I hope that doesn't mean that you're doing sudo root to run this all.
If you are, get your sudoers file set up so you can get away from that.

I think there's a man entry on sudoers, but if not, read the entries on
sudo and su very thoroughly. It may take an hour to understand, but
it's definitely worth the effort.

BTW, the openBSD site (and they'll say mean things at me for increasing
their traffic) has some excellent manual pages on line: 

http://www.openbsd.org/cgi-bin/man.cgi

Plug sudoers into the search form. You'll need to remember that there
will be some differences, since Darwin is derived from the freeBSD, but
I find the discussions very helpful.

 Right now, mac autoboots to jackpark. I'll drop that when 
 it's ready to get plugged into the web.

Whatever user(s) you run mysql, tomcat, and whatever else as, make sure
they are users that can't log on.

 Is there some hint that everything should be owned and run by one user?

I don't think so. It may help you to keep track of things. It may not. 
I'm pretty sure I had a separate tomcat and mysql user in my set-up at
home.

 I'm beginning to suspect that there are problems with this 'picture.' 
 (mostly made by my ignorance), particularly since two different tomcat 
 builds refuse to run their examples.
 
 Perhaps you'll see what's wrong with this picture.

At first, it seemed you had some confusion between the mysql permissions
system and the UNIX permissions system. But it looks like that isn't the
problem, after all.

Let's see. You said you had the driver in place. You said you were able
to log into mysql, so your sockets must be okay. I guess I'm out of
ideas, unless your contexts have got something in them that doesn't work
on Mac OS X. How's the case sensitivity? No, if it's working on
MSWindows, then you shouldn't be getting bit by case conflicts.

 Many thanks, again.
 Jack
 
 At 01:26 PM 7/9

Re: Tomcat Apache no success,

2002-06-30 Thread Joel Rees

 Im having problems getting Apache to work with Tomcat.  AS in,,
 are they supposed to both go on Port 80

I don't think so. It seems to me like I remember something about putting
tomcat up at 8080 or so when having apache front-end the non-java stuff.

If you want to run tomcat standalone at port 80, I recall that it
should be possible, but probably not on the same machine as one already
running apache at port 80. (I think the point of conflict is the domain,
so if you set your machine to run virtual domains, that might work, but
I doubt it is what you want.)

-- 
Joel Rees [EMAIL PROTECTED]


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




Re: Tomcat v. Apache

2002-06-30 Thread Joel Rees

  but I was wondering if
 you would kindly send me some guidance on using the various directives for the
 Apache Server?!

Just a thought, but have you read through the comments in httpd.conf? I
find they are easier to understand after having read through them once
or twice. (Kept falling asleep the first time I read through them, yes.)

Have you got a basic apache server running (without Tomcat)? I basically
did not have to touch my httpd.conf file the first time I brought apache
up. I found that playing (experimenting) with apache is the best way to
figure out the directives and the documentation.

Experimenting on a private network is a good idea. I. e., since you
won't want to mess with DNS the first time around, physically
disconnecting your lan or modem, start up your server(s) then access
them at http:localhost for apache and standalone tomcat, and
http://localhost:8080 for tomcat specific stuff when you have apache
front-ending it. If localhost doesn't work, try the loopback, at
http://127.0.0.1.

I usually just plan on giving myself private one-day seminars on these
things. Understanding those configuration files helps me not make
mistakes when I use point-and-click interfaces, too.

-- 
Joel Rees [EMAIL PROTECTED]


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




Re: SEEKING URGENT ASSISTANCE

2002-06-23 Thread Joel Rees

 Has anyone EVER responded to any such mail? I'm just currious, have they changed 
their M.O.?
 
 Last time I joked around, they wanted me to come to Nigeria and use forged ID to 
retrieve some funds. Needless to say, I've laughed them off, at that point.

Good thing you stayed at home.

Try:

 http://www.google.co.jp/search?q=nigeria+money+laundering+scam

Particularly:

http://home.rica.net/alphae/419coal/



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




Re: FLAWS FOUND IN APACHE

2002-06-19 Thread Joel Rees

Nikola Milutinovic iwaku,

 Anyway, a buffer overflow always adds a question mark, so until there is a new 
Apache release, be on the lookout.

I think the httpd.apache pages show an update already available
(1.3.26/2.0.39). Am I mis-reading that?

(ISS's patch is said to be insufficient.)

-- 
Joel Rees [EMAIL PROTECTED]


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




Re: Other question

2002-06-14 Thread Joel Sather


I tried to run Tim's  original sh script under Solaris and it wouldn't
give me anything, so I wrote a version in Perl.  My script looks like
this:

---
#!/usr/local/bin/perl

open (PIDFILE,  logs/tomcat.pid);
print PIDFILE getppid();
close (PIDFILE);


I also had to give fully qualified paths in both the Perl script and in
Runtime.getRuntime().exec() to get it to find the correct files.  Use
the original Java class that Tim wrote and just point it to the Perl
script.  Also, just call the Perl script--you don't need to call /bin/sh
first.  Make sure to chmod the script to executable, too.

Thanks for the Java code, Tim.  It works great now.

-Joel


Joel Sather
email: [EMAIL PROTECTED]
phone: 651-917-4719

 [EMAIL PROTECTED] 06/14/02 07:26AM 
Welcome to PID hell! I have this working on HPUX, if you are trying
this 
on another UNIX - I'm not sure what may happen but here are some hints

to track things down.

1) Make sure the directory you are starting tomcat you are typing 
bin/startup.sh. This ensures you will write the the correct log
directory.

2) My original version of the script was:
#!/bin/sh
echo $PPID  logs/tomcat.pid

This printed out the wrong PID since the first line created an extra 
shell process for the script to execute in. I wonder if 
Runtime.getRuntime().exec is creating an extra process which would 
cause you to get the wrong pid. If that is the case - I can't be of 
help. A Google search will probably provide a better solution than mine

for determining process id of a java program.


-Tim

Laura wrote:
 Hi,
 
 I have installed your code in my Tomcat (4.0.2 + apache). 
 
 But it doesn't seem to be correct. It writes in tomcat.pid a PID that
doesn't 
 seem to be correct: I have tried to do:
 
 kill -9 PID (which is in the tomcat.pid) 
 
 and the system tells me:
 
 
 bash: kill: (3977) - No such pid
 
 
 Where is the problem? 
 
 
 Thanks
 
 
 Laura
 


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


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




RE: Fw: Other question

2002-06-14 Thread Joel Sather


Yeah, the function getppid() is a function built into Perl.

-Joel


Joel Sather
email: [EMAIL PROTECTED]
phone: 651-917-4719

 [EMAIL PROTECTED] 06/14/02 09:39AM 

getppid() is a library function, it should already be on your system.  It's
like printf(), gethostbyname(), etc.

John Turner
[EMAIL PROTECTED] 
http://www.aas.com 


-Original Message-
From: Laura [mailto:[EMAIL PROTECTED]] 
Sent: Friday, June 14, 2002 10:37 AM
To: Tomcat Users List
Subject: Re: Fw: Other question


Hi,

can you send me the function too?

The perl script can be the solution. 

Thanks


Laura

Alle 16:31, venerdì 14 giugno 2002, hai scritto:
 Hi ,

 excuse me, but the function getppid() ?

 What is this?

 Can you send me?

 Thanks a lot

 Laura

 Alle 16:20, venerdì 14 giugno 2002, hai scritto:
  - Original Message -
  From: Joel Sather [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Friday, June 14, 2002 4:05 PM
  Subject: Re: Other question
 
   I tried to run Tim's  original sh script under Solaris and it wouldn't
   give me anything, so I wrote a version in Perl.  My script looks like
   this:
  
  
---
  -- -
 
  -
 
   #!/usr/local/bin/perl
  
   open (PIDFILE,  logs/tomcat.pid);
   print PIDFILE getppid();
   close (PIDFILE);
  
---
  -- -
 
  --
 
   I also had to give fully qualified paths in both the Perl script and
in
   Runtime.getRuntime().exec() to get it to find the correct files.  Use
   the original Java class that Tim wrote and just point it to the Perl
   script.  Also, just call the Perl script--you don't need to call
   /bin/sh first.  Make sure to chmod the script to executable, too.
  
   Thanks for the Java code, Tim.  It works great now.
  
   -Joel
  
  
   Joel Sather
   email: [EMAIL PROTECTED] 
   phone: 651-917-4719
  
[EMAIL PROTECTED] 06/14/02 07:26AM 
  
   Welcome to PID hell! I have this working on HPUX, if you are trying
   this
   on another UNIX - I'm not sure what may happen but here are some hints
  
   to track things down.
  
   1) Make sure the directory you are starting tomcat you are typing
   bin/startup.sh. This ensures you will write the the correct log
   directory.
  
   2) My original version of the script was:
   #!/bin/sh
   echo $PPID  logs/tomcat.pid
  
   This printed out the wrong PID since the first line created an extra
   shell process for the script to execute in. I wonder if
   Runtime.getRuntime().exec is creating an extra process which would
   cause you to get the wrong pid. If that is the case - I can't be of
   help. A Google search will probably provide a better solution than
mine
  
   for determining process id of a java program.
  
  
   -Tim
  
   Laura wrote:
Hi,
   
I have installed your code in my Tomcat (4.0.2 + apache).
   
But it doesn't seem to be correct. It writes in tomcat.pid a PID
that
  
   doesn't
  
seem to be correct: I have tried to do:
   
kill -9 PID (which is in the tomcat.pid)
   
and the system tells me:
   
   
bash: kill: (3977) - No such pid
   
   
Where is the problem?
   
   
Thanks
   
   
Laura
  
   --
   To unsubscribe, e-mail:
   mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
   mailto:[EMAIL PROTECTED]
  
  
   --
   To unsubscribe, e-mail:
 
  mailto:[EMAIL PROTECTED]
 
   For additional commands, e-mail:
 
  mailto:[EMAIL PROTECTED]

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

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




RE: [offtopic] IDE for Tomcat?

2002-06-13 Thread Joel Sather


I was using JDeveloper for a while and it isn't too bad.  I had an old
copy (3.2 something), so I haven't played with the latest version.  It
is pretty big (250+ M), but at least the version I had was native under
Windows.  

I tried NetBeans and it was just too slow.  It has a ton of great
features (ANT support, CVS, Tomcat integration), but unless you have a
good machine it might not be worth it.  It was very slow on my 1Ghz
laptop w/ 128M of memory.  You might also try Forte from Sun which is
their version of NetBeans.

Personally, I don't need code completion and stuff so I just use a
simple editor and then ANT to do the builds.  I need to deploy on a
different machine so I just check the file into CVS and run ANT on the
server (does the pull from CVS and then compiles into my JAR).  Once the
build and deployment are done, if you have Tomcat setup right it
recognizes the new JAR has been uploaded.  Very slick.

Software Development Magazine (free subscriptions, but I can't remember
the URL at the moment) just did their Jolt awards and I think IDEA took
the top spot.  They also liked JBuilder (or Borland), though.  Isn't
JBuilder what JDeveloper is based off of?  I can't remember, but I
thought Oracle just licensed someone's IDE.

Anyway, it really depends on which features you need from your IDE.  I
can do everything I need with ANT and vi if I have to now.  :)

-J


Joel Sather
email: [EMAIL PROTECTED]
phone: 651-917-4719

 [EMAIL PROTECTED] 06/13/02 01:28PM 
what about jdeveloper from oracle, is it any good?

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, June 13, 2002 1:14 PM
To: 'Tomcat Users List'
Subject: RE: [offtopic] IDE for Tomcat?



Hi -

This was just posted earlier today: http://www.netbeans.org/  It looks
very
promising, but I haven't worked with it.

We're using Borland's JBuilder...it seems to be the most neutral of
the
available options.  MSFT's Java IDE isn't current anymore, as far as I
know.
http://www.borland.com/jbuilder/  I believe the personal edition is
free,
but it might not have all the features you are looking for.

There's also things like MetroWerks CodeWarrior:
http://www.metrowerks.com/desktop/java/ 

HTH

John Turner
[EMAIL PROTECTED] 
http://www.aas.com 


-Original Message-
From: Cindy Ballreich [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, June 13, 2002 2:05 PM
To: Tomcat Users List
Subject: [offtopic] IDE for Tomcat?



I was wondering what kind of IDEs people were using for Tomcat
development?

Any recomendations for someone who's been developing on linux from a
NT
desktop via ssh? (vi has it's charms, but there's got to be a better
way!)
Anything to avoid?

Thanks

Cindy

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

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


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




Re: IIS mailing list (off-topic)

2002-06-11 Thread Joel Rees

 Sorry with everybody about this off-topic question but I need absolutely
 to find a mailing-list about Internet Information Server. I tried to search
 on the Web but unsuccessfully.

In case you're still looking, google newsgroup archives at

http://groups.google.com/groups?hl=jalr=group=microsoft.public.inetserver.iis

Can't say much about the newsgroups or about IIS, because I don't use
IIS. But I thought I'd let you know it's there.

-- 
Joel Rees [EMAIL PROTECTED]


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




Re: Please Help: HTTP Status 500 - Internal Server Error

2002-05-25 Thread Joel Baker

For what it's worth, I've come across this problem far too many times when
installing things under Windows.
I have now adopted the practice of installing native Windows applications
(Photoshop, Office etc) in c:\program files and server applications like
Apache, Tomcat as well as command line programs like Perl, Java, Ant etc in
c:\servers or c:\apps, and then c:\servers\apache, c:\servers\tomcat etc
rather than c:\servers\apache group\apache or whatever the default is.

These steps have meant I have been able to weed out most of the problems of
developing under Windows, apart from some CVS issues for which I need to use
Cygwin - though these are easily compensated for given how gorgeous Ant
makes things - like updating modules automatically before building. Ant is
the way forward!

HTH, apologies for rambling - trying to avoid revising for finals. ;)

Joel Baker.



Whitcomb, Roger [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]...
| It's because of the spaces in the path under Win98.  Use the 8.3 version
of the Apache Group and Apache Tomcat 4.0 folders and try again.
|
| Roger Whitcomb
| Computer Associates
| Senior Software Engineer
| Development
| Phone: +1 408 965 8653
| FAX: +1 408 965 8805
| [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
|
|
| -Original Message-
| From: VIDYASAGAR R NALLU [mailto:[EMAIL PROTECTED]]
| Sent: Friday, May 24, 2002 4:05 PM
| To: [EMAIL PROTECTED]
| Subject: Please Help: HTTP Status 500 - Internal Server Error
|
|
| Hi all,
|
| Basically i have developed a small application using JSP, Tomcat 4.0.3,
| j2sdk1.4.0 under win2k. It was working absolutely fine. The same
| application when i'm trying to run on windows 98, it is giving the
| following error:
|
| Note: I'm not copying whole output. These are the few lines of code to
| give basic idea.
| exception
| javax.servlet.ServletException: sun/tools/javac/Main
| at
| org.apache.jasper.servlet.JspServlet.service(JspServlet.java:485)
|
| root cause
| java.lang.NoClassDefFoundError: sun/tools/javac/Main
| at
| org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:1
| 36)
|
| I set the PATH and CLASSPATH variables as follows in autoexec.bat:
|
| PATH=%PATH%;c:\j2sdk1.4.0\bin;
| JAVA_HOME=c:\j2sdk1.4.0
| CATALINA_HOME=c:\Program Files\Apache Group\Apache Tomcat 4.0
| TOMCAT_HOME=%CATALINA_HOME
|
| %CLASSPATH=%CLASSPATH%;c:\j2sdk1.4.0\jre\lib\tools.jar;c:\Program
| Files\Apache Group\Apache
| Tomcat 4.0\common\lib\servlet.jar
|
| I'm just wondering that whether i should include servlet.jar in the
| CLASSPATH or any other place.
|
| What i feel is for some reason tomcat is not loading servlet.jar.
| Please someone assist me in this regard.
|
| Thanks in advance
| Rajasree
|
| --
| To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
| For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
|
| --
| To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
| For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
|


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




Tomcat 4.1 /admin

2002-05-10 Thread Joel Baker

Hi there,

I'd love to have a go at using the admin webapp in Tomcat 4.1, and so I've
downloaded the nightly release (and have done so for various nightlies this
week).
When starting up tomcat, I get:

2002-05-11 01:58:47 WebappLoader[/admin]: Deploy JAR /WEB-INF/lib/struts.jar
to c:\servers\tomcat\webapps\..\server\webapps\admin\WEB-INF\lib\struts.jar
2002-05-11 01:58:49 ContextConfig[/admin] Exception processing JAR at
resource path /WEB-INF/lib/struts.jar
javax.servlet.ServletException: Exception processing JAR at resource path
/WEB-INF/lib/struts.jar
 at org.apache.catalina.startup.ContextConfig.tldScanJar(Unknown Source)
[snip]

in my localhost_admin_log.

This is with the virgin nightly build (as virgin as a nightly build can be
;) ) and, the struts.jar does exist in that path.

What alterations/setup are required to get a nightly working? I haven't yet
tried this on one of my Linux Tomcat installations, though of course, that
shouldn't make a difference.

Thanks for any help,

Joel.


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




Utilising JDBC Realm config and pooling from a webapp

2002-05-05 Thread Joel Baker

Hi there,

I've set up a webapp to use a JDBC Realm in my server.xml config file in
Tomcat 4.0.3. I use this for FORMS based authentication.
I have added fields to the SQL table used to authenticate to include more
interesting things like Full Name and email address. I have currently hard
coded the database details (server, db, table, username, password) using
some raw JDBC code in servlets and JSP pages just to see whether the webapp
would function correctly.

I now want to move to a more refined solution with the details specified in
a central location - ie: server.xml, and also to use some sort of JDBC
connection pool. However, these details are of course already specified in
the JDBC Realm and, presumably, Tomcat does some sort of connection pooling
for its Realms. Thus I was wondering whether it would be possible to utilise
both of these for my own use.

I've tried to research this but not found much, other than a possibility
that Realms are read-only - which wouldn't be too useful from my perspective
as I'd like to use the setup to maintain the userlist as well.

Any ideas on this would be greatly appreciated.

If this isn't possible, I will have to maintain two identical sets of db
information in my server.xml, which isn't tragic, but will also have to
investigate connection pooling further. I have written my own connection
pool in the past but would be interested in a more maintained, pluggable,
solution. Any ideas on this would also be welcomed.

Many thanks for any help,

Joel Baker.


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




  1   2   3   >