X11 Windows System and Tomcat

2002-05-12 Thread Micael Padraig Og mac Grene

This is maybe not a pure Tomcat question, but I am running a servlet on 
Tomcat which uses javax.swing, to resize jpeg images, but which does not, 
of course, want to display those images.  This throws an exception, due to 
a bug in the JDK 1.4.

The exception is:


Exception in thread main java.lang.InternalError: Can't connect to X11 
window server using ':0,0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.clinit(11GraphicsEnvironment.java:126)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:130)
at java.awt.Toolkit#2.run(Toolket.java:712)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:703)
at javax.swing.ImageIcon.(init(ImageIcon.java:81)
at javax.swing.ImageIcon.init(ImageIcon.java:107)

ps aux reveals: /etc/X11/X -auth /var/lib/kdm/authfiles/A:0-0Dqymv

Anyone know the command I need to use to solve this, if any?  I would 
prefer not to use a virtual X11 system, or to build a substitute Toolkit 
for the JDK.

Thanks,

Micael



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




VIRUS: sent by issa@infotel.opt.mr = W32Klez.gen@mm

2002-04-24 Thread Micael Padraig Og mac Grene

Heads up on this virus.



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




More W32Klez.gen@mm Viruses: mnavarro@bdoc.com

2002-04-24 Thread Micael Padraig Og mac Grene

This will be my last post of these viruses, since they seem to be 
proliferating here.



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




Re: ResultSet

2002-03-11 Thread Micael Padraig Og mac Grene

If you want to compare String objects as literals, use the intern() method.

Micael

At 03:58 PM 3/11/02 +0700, you wrote:
Hi,
 For the brave, can anyone guess why with this rather unsociable code:


   if ((res.getString(3) == null) || (res.getString(3) == )) {
out.println(tda href=takeDetails.jsp?timeSlot= +
res.getString(2) + myDate= + myDate +  + res.getString(2) +
/a/td);
}
   if ((res.getString(3) != null) || (res.getString(3) != )) {
out.println(td + res.getString(3)+   + res.getString(2) +
/td);
}


the first condition is NEVER satisfied, even though out.println of
res.getString(3) does not display anything! Ie res.getString(3) IS null,
empty or whatever, but the condition is never satisifed. Quickly again, this
is executed:


   if ((res.getString(3) != null) || (res.getString(3) != )) {
out.println(td + res.getString(3)+   + res.getString(2) +
/td);
}


even though - out.println(td + res.getString(3)+   -  shows it is
empty (no output)!

Thanks

Paul.


--
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: [4.0.2] Binaries online

2002-02-11 Thread Micael Padraig Og mac Grene

The site is purring away with this new cat.

At 11:13 AM 2/11/02 -0800, you wrote:
on 2/10/02 12:46 PM, Remy Maucherat [EMAIL PROTECTED] wrote:

  Hi,
 
  The binaries for 4.0.2 are now online. This includes the new LE for JDK 
 1.4.
  http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.2/
 
  Please check them if you can.
 
  The release announcement and website updates will be made tomorrow.
 
  Thanks,
  Remy

Congrats!

Scarab's distribution of Tomcat has been updated as well. :-)

-jon


--
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: Development Documents

2002-02-05 Thread Micael Padraig Og mac Grene

Hi, Gunnar.  I think that this is what JSP itself does already, i.e. return 
HTML content.  So, I am not sure what you are asking.  If you don't want to 
use JSP pages, then don't.  I am sure that is not what you wanted to say, 
so, again, I misunderstood what you are saying.  Could you  be more 
specific about what you want?  You don' t have to use JSP pages with 
Tomcat, but then there would be no point in having Tomcat really.

At 08:50 PM 2/5/02 +0100, you wrote:

Hi!

I'm thinking of a web application that processes JSP itself and returns
only the HTML content of JSP pages back to the Client. I don't want to
point the Client to Java Server Pages. Where can I find usefull
documentation to evaluate such a functionality for Tomcat? Have you any
suggestions for me?

Thanks, Gunnar

--
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: Multiple URLs/Single IP

2002-02-04 Thread Micael Padraig Og mac Grene

Thank you, Bojan.  I am going to try that, and will try to figure out a 
favor for you if it works.  My father told me to always pay back ten times: 
ten times more for a good turn, and ten times more for a bad. Micael

At 08:06 AM 2/5/02 +1100, you wrote:
Now you have me totally confused :-( I'll tell you what I know, and if
that helps you, good. If not, please disregard.

The fact that www.aa.com and www.bb.com have the same IP address makes
them name based virtual hosts. So, you're telling your TC 3.3.x to be
ready to handle things for both www.aa.com and www.bb.com by creating
virtual hosts withing it. If you have Tomcat running on the same box, it
would usually be connected to Apache via mod_jk and listen to address
127.0.0.1 only. So, I'm not certain how the 'one IP' address plays here
at all...

Inside each virtual host, you define applications (contexts). So, you
can have webapps/aa for www.aa.com and webapps/bb for www.bb.com.

That's at least how I run my machines.

Bojan

On Mon, 2002-02-04 at 18:50, Micael Padraig Og mac Grene wrote:
  I am not trying to make www.aa.com into xx.aa.com and yy.aa.com but rather
  trying to get www.aa.com and ww.bb.com which have the same IP address 
 to be
  webapps/aa and webapps/bb.  Isn't the virtual hosts the first solution?  I
  think I am beginning to see how to do this, but I don't see how virtual
  hosts are the answer.  I must be missing something here.  I have figured
  out how to get the different URLs into different Host tags, but so far
  they all encompass the same webapps or none.  I have some further ideas on
  how to avoid that.  We'll see tomorrow.  But, I still do not see how this
  solves my problem, Apache notwithstanding.
 
  Miacel


--
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: Multiple URLs/Single IP

2002-02-04 Thread Micael Padraig Og mac Grene

Well, I assumed it was good, and even if not, that you were meaning good. 
So, no problem, my friend!  ;-)

At 09:14 AM 2/5/02 +1100, you wrote:
On Tue, 2002-02-05 at 08:38, Micael Padraig Og mac Grene wrote:
  Thank you, Bojan.  I am going to try that, and will try to figure out a
  favor for you if it works.  My father told me to always pay back ten 
 times:
  ten times more for a good turn, and ten times more for a bad. Micael

Hope I didn't give you bad advice. The 'ten times' thingy sounds really
scary ;-)

Bojan


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



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




Do different virtual hosts have to have different appBase values?

2002-02-04 Thread Micael Padraig Og mac Grene

[  ]  They do.
Reason:

[  ]   They don't.
Reason:



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




Multiple URLs/Single IP

2002-02-03 Thread Micael Padraig Og mac Grene

How can I map multiple URLs, e.g. www.aa.com and www.bb.com, which are 
pointed to a single IP address, e.g. 210.34.247.21, to multiple web 
applications, e.g. webapps/aa and webapps/bb?  Many thanks for any help.  I 
have had a solution offered with a Layer-7 Switch and a squid proxy, but I 
would prefer either Apache or Tomcat solutions by far.  I see nothing in 
the documentation or in the lists.  I know how to do this with a context 
manager for JBoss and Tomcat 3.2.4, but I am moving to SOAP as my solution 
of choice with the Struts package.  Any help would be greatly 
appreciated.  Thanks, gents and ladies.



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




Re: Multiple URLs/Single IP

2002-02-03 Thread Micael Padraig Og mac Grene

Thanks, Bill.  However, I looked at the documentation.  What makes you 
think that solves this problem?  I am not saying you are wrong, but I don't 
see how that does it.

Micael

At 03:44 PM 2/3/02 -0800, you wrote:
This is largely what NameVitualHost(s) are for in Apache.  See:
http://httpd.apache.org/docs/mod/core.html#namevirtualhost
- Original Message -
From: Micael Padraig Og mac Grene [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, February 03, 2002 8:25 AM
Subject: Multiple URLs/Single IP


  How can I map multiple URLs, e.g. www.aa.com and www.bb.com, which are
  pointed to a single IP address, e.g. 210.34.247.21, to multiple web
  applications, e.g. webapps/aa and webapps/bb?  Many thanks for any help.
I
  have had a solution offered with a Layer-7 Switch and a squid proxy, but I
  would prefer either Apache or Tomcat solutions by far.  I see nothing in
  the documentation or in the lists.  I know how to do this with a context
  manager for JBoss and Tomcat 3.2.4, but I am moving to SOAP as my solution
  of choice with the Struts package.  Any help would be greatly
  appreciated.  Thanks, gents and ladies.
 
 
 
  --
  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]




Apache 1.3.22 and 1.3.23 LoadModule Error with Tomcat 4.0.1

2002-02-03 Thread Micael Padraig Og mac Grene

I am getting an error I cannot find in the lists.  The error, on trying to 
run Apache, after adding LoadModule and AddModule to conf, I get the error:

Invalid Command 'LoadModule', perhaps this is mis-spelled or defined by a 
module not included in the server configuration.

I downloaded the appropriate mod_webapp.so and copied it to libexec.  Then 
I added LoadModule and AddModule to the httpd.conf file as 
directed.  Still, it get this error.  Any ideas?

Micael



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




Re: Tomcat 4.0 Beginner's Guide

2002-01-21 Thread Micael Padraig Og mac Grene

Marty Hall you are a good guy.  Thanks!

At 03:00 PM 1/21/02 -0500, you wrote:
Hi-
 Daniel Savarese suggested I contact [EMAIL PROTECTED] 
 with
this info. I've discovered that a surprising number of readers of my servlet
and JSP books (Core Servlets and JSP, More Servlets  JSP) need a lot of
handholding to get Tomcat running even in the simple standalone mode. So, I
grudgingly put together a very step-by-step guide, and to my surprise readers
really went for it.
 It is http://www.moreservlets.com/Using-Tomcat-4.html; please
feel free to link to it from the Tomcat docs page if you think it would
be useful.
 Cheers-
 - Marty


--
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: Minimalistic Docs

2002-01-17 Thread Micael Padraig Og mac Grene

At 09:56 AM 1/17/02 +0200, you wrote:
well, minimal meaning 1c and minimalist meaning 2 (below) look pretty similar
to me, but as Tom says, the latter suggests intent. Then again, the fact that
it is in the title also does a fair job suggesting intent. Let's just steer
away from anything pretentious. I vote for minimalist.

http://www.dictionary.com - great resource!

enough of this :)

ant

  -Original Message-
  From: Tomas Rokicki [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, January 16, 2002 10:17 PM
  To: Tomcat Developers List
  Subject: RE: Minimalistic Docs
 
 
  Well, if you believe dictionaries:
 
  minimal:  adj.
  1a Smallest in amount or degree.
  1b Small in amount or degree.
  1c Only barely adequate.
  2 often Minimal Of, relating to, or being minimalism
 
  minimalist: n.
  1 One who advocates a moderate or conservative approach, action, or policy,
  as in a political or governmental organization.
  2 A practitioner of minimalism.
 
  minimalist: adj.
  1 Of, relating to, characteristic of, or in the style of minimalism.
  2 Being or providing a bare minimum of what is necessary.
 
  So minimal is clearly not what we mean, but the second adjective definition
  is clearly what we mean.  So minimalist seems to work.  Minimalistic is
  clearly not a word.  Minimal means, and further, connotes, the wrong
  thing.
 
  Don't techies ever use dictionaries?
 
  -tom
 
  -Original Message-
  From: Arnold Shore [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, January 16, 2002 11:15 AM
  To: Tomcat Developers List
  Subject: RE: Minimalistic Docs
 
 
  And a minimalistic use of Minimalistic would be Minimal.
 
  as
 
  -Original Message-
  From: Christopher K. St. John [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, January 16, 2002 12:47 PM
  To: Tomcat Developers List
  Subject: Re: Minimalistic Docs
 
 
  Anthony Holland wrote:
  
   Tomcat - A Minimalistic User's Guide
  
   There is no such word as 'minimalistic'.
  
 
 
   In the style of a member of the art movement Minimalism.
   In the style of a minimalist.
   Minimalistic.
 
   Works for me.
 
   Minimalist User's Guide would imply that the user's
  guide has to do with the art movement (or communism),
  while Minimalistic implies that the guide is in the
  style of, but not actually about, Minimalism.
 
   A Minimalist's Guide might work.
 

What are you two talking about?  The connotation, as well as the 
denotation, of something, by the way, IS its meaning.  If you are using 
A  Minimalist's Guide as the name of a publication, your English is 
wrong.  In that case, Minimalist's is a nominative-adjective and it 
should be A Minimalists Guide.  This is a standard mistake, usually not 
made by good sign companies, however.  Also, the conclusions you draw about 
Minimalist User's Guide (should be Minimalist Users Guide) and A 
Minimalist's Guide (should be A Minimalists Guide) are backward.  The 
latter could be a use of the noun, although that would be unlikely, while 
the former could not be such a use.

You guys have too much time on your hands, like me.  ;-)

How about, if you want not to be pedantic, An Austere Guide?  Of course, 
I don't know what the hell you are talking about.

Micael



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




Re: shell connector

2002-01-10 Thread Micael Padraig Og mac Grene

At 06:55 PM 1/10/02 +0100, Armijn Hemel wrote:
hi,

I'm working on a webapp, for which I want to build (eventually) some shell
access for administration purposes. I want administrators to be able to
log into the application and perform maintenance through a UNIX like shell.
I was thinking about writing this in Jython, but I wonder how I can do this
best. Does this involve writing a new connector and if so, is it the best
thing to do (and do others need it as well)?

armijn

--

Writing a UNIX like shell is pretty straight-forward, armijn.  Use a 
command design pattern and have your class names and constructor parameters 
equal the commands, options and targets you want.  Do something like what 
is done with JNDI by Flanagan, Farley, Crawford and Magnusson in Java 
Enterprise in a Nutshell (O'Reilly), Ch. 6, The Naming Shell Application, 
and convert it for the web.

-- micael


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




CS143

2001-11-19 Thread Micael Padraig Og mac Grene



Hi, Greg,

I am working late tonight, cannot sleep. So, I thought I 
would put together a little grading tool for CS143. If you like it, feel 
free to change it, use it, sell it, whatever. ;-) The way it works 
is you put the unzipped files in c:\jdk1.3\jre\classes\ and go there on the 
command line or any IDE tool that runs the java command and run "java 
cs143.test.Test". A screen will come up and, if you were a student, you 
would enter "cs143 harry harry" (course, name, password). This will tell 
the student, if their class implements the tag interface Testable whether or not 
they pass the test set for their class. You can give the test the class 
must test prior to them building the classes. The student can keep 
changing their classes until they get a pass. Each attempt is recording it 
a log file. 

I sent a copy to Erika, in case Mark Vanbeek might find it 
helpful. Hope he can join us Tuesday.

Micael


cs143.zip
Description: Zip compressed data

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


Re: Tomcat4, taglibs, and pageContext.include

2001-10-28 Thread Micael Padraig Og mac Grene

This will ruin the project I have been building.  I cannot believe that is
possible.

-Original Message-
From: Rickard Öberg [EMAIL PROTECTED]
To: Tomcat Developers List [EMAIL PROTECTED]
Date: Sunday, October 28, 2001 12:15 AM
Subject: Re: Tomcat4, taglibs, and pageContext.include


Micael Padraig Og mac Grene wrote:

 Would you please expand on the ramifications?

 Surely this does not mean that we won't be able to use jsp: include
[etc]
 tags?  Does this mean that we won't be able to use code like:

  try {
  pageContext.include(content.toString());
  } catch(Exception e) {
 throw new JspException(e.getMessage());
  }

 In our tag classes?


That is precisely what it means. :-(

/Rickard



--
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: Tomcat4, taglibs, and pageContext.include

2001-10-28 Thread Micael Padraig Og mac Grene

I have to say that I personally think whomever made this decision made a
poor decision.  I do not, of course, have all the facts and the reasons why
such a decision was made, but it would seem to be too drastic to be
justfied.

The use of templating in tag libraries centers around this sort of code.  I
don't have a vote or anything, of course, but, if I did, I certainly would
vote against this.  Doesn't this break Struts templating?  I don't use
Struts, but do follow that sort of architectural premise.

-Original Message-
From: Rickard Öberg [EMAIL PROTECTED]
To: Tomcat Developers List [EMAIL PROTECTED]
Date: Sunday, October 28, 2001 12:15 AM
Subject: Re: Tomcat4, taglibs, and pageContext.include


Micael Padraig Og mac Grene wrote:

 Would you please expand on the ramifications?

 Surely this does not mean that we won't be able to use jsp: include
[etc]
 tags?  Does this mean that we won't be able to use code like:

  try {
  pageContext.include(content.toString());
  } catch(Exception e) {
 throw new JspException(e.getMessage());
  }

 In our tag classes?


That is precisely what it means. :-(

/Rickard



--
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: Tomcat4, taglibs, and pageContext.include

2001-10-27 Thread Micael Padraig Og mac Grene

Would you please expand on the ramifications?

Surely this does not mean that we won't be able to use jsp: include [etc]
tags?  Does this mean that we won't be able to use code like:

 try {
 pageContext.include(content.toString());
 } catch(Exception e) {
throw new JspException(e.getMessage());
 }

In our tag classes?


-Original Message-
From: Craig R. McClanahan [EMAIL PROTECTED]
To: Tomcat Developers Mailing List [EMAIL PROTECTED]
Date: Saturday, October 27, 2001 1:56 PM
Subject: Re: Tomcat4, taglibs, and pageContext.include




On Sat, 27 Oct 2001, Rickard Öberg wrote:

 Date: Sat, 27 Oct 2001 16:16:15 +0200
 From: Rickard Öberg [EMAIL PROTECTED]
 Reply-To: Tomcat Developers Mailing List [EMAIL PROTECTED]
 To: Tomcat Developers Mailing List [EMAIL PROTECTED]
 Subject: Re: Tomcat4, taglibs, and pageContext.include

 Rickard Öberg wrote:

  Due to some recent subtle changes in Tomcat (Jasper and servlet API to
  be precise) it is no longer possible to implement jsp:include tags.


 (clarification).. using pageContext.include.

 /Rickard


The reason for this change is a statement in the Javadocs for
PageContext.include() that Tomcat 4 was not previously enforcing:

The current JspWriter out for this JSP is flushed as a
side effect of this call, prior to processing the include.

Ideally, that statement would have been removed from the Javadocs for JSP
1.2, but it wasn't ... and now we are stuck enforcing it.  If you look at
the code that Jasper generates for jsp:include, you will see that it
indeed no longer uses the PageContext.include() method in its
implementation.

Craig



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