RE: RE2: Jsp compile option for Big5 encoding / encoding question

2001-12-04 Thread Ing. Gabriel Gajdos

Thanx Craig, but I affraid, this was not the problem.

| 
|  JSP (start file):
|  %
|String contentType = text/html;charset=windows-1250;
|response.setContentType(contentType);
|  %
| 
| 
| The setting windows-1250 is not a valid character encoding name in Java.
| Try Big5 instead for Traditional Chinese.  Valid character encoding
| names are listed in the Internationalization documentation of the JDK:
| 
|   http://java.sun.com/j2se/1.4/docs/guide/intl/encoding.doc.html
| 
| Craig

windows-1250 IS WORKING :
I mean, in servlets and in JSP too (when set as %@ %).

The above mentioned code does NOT change the Content Type correctly to ANY encoding.

Anyway, I tried to change my encoding to Cp1250 which is listed in sun's 
encoding.doc.html.
BTW, windows-1250 is Windows Eastern European, not Chinese, but this is not important 
at the moment...
;-)

Cp1250 causes the same wrong result.

Anyway, I also tried (just for fun) to change the Content Type to 
text/html;charset=Big5.
The result is the same, without any chinese signs...

So what will be the next try?
:-))

Thanx again.

Gabriel


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




AW: Tomcat 3.3, server.xml and a lot of fun

2001-12-04 Thread Ralph Einfeldt

What a nice guy you are.

You startet to insult people while wanting help.

If you can't stand the answers for insulting others
you should not start it.

If you wan't some more insults:

Insulting others while hoping to get help is cheeky.
Insulting others and hiding the real name is cowardly.
Insulting others because they don't write english as good as you is
mean.
Insulting others because they have strange names is racist.

 -Ursprüngliche Nachricht-
 Von: java programmer [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 4. Dezember 2001 08:33
 An: Tomcat Users List
 Betreff: Re: Tomcat 3.3, server.xml and a lot of fun
 
 
 Micael Padraig Og mac Grene wrote:
 [...]
 snip
 
 Padraig og mac ?
 
 What kind of a name is that ? It sounds similar to
 the sound I make when I fart. Smells about the
 same too. Since you are so apt in making suggestions,
 allow me to make two of my own: a) look up the 
 word 'rant' in an English dictionary. b) change 
 your moniker to the altogether more appropriate 
 name: cuntface.
 
 Best regards,
 
 [EMAIL PROTECTED]
 
 
 __
 Do You Yahoo!?
 Buy the perfect holiday gifts at Yahoo! Shopping.
 http://shopping.yahoo.com
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 

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




RE: Manager app in tomcat 4 doesn't show number of sessions

2001-12-04 Thread Anders Ohlen

Please can someone verify if the manager app i supposed to work on solaris,
I still do not get any sessioninfo.

/Anders

-Original Message-
From: Anders Ohlen [mailto:[EMAIL PROTECTED]]
Sent: den 30 november 2001 15:31
To: Tomcat Users List
Subject: Manager app in tomcat 4 doesn't show number of sessions


Using Tomcat 4 on solaris 8 we tried the /manager app. Connected OK but
newer show any active sessions, anyone now if it is supposed to work? We
need it to verify load problems probably connected to many active sessions.

When we checked we had several connected sessions (special test jsp that
show session data) but it never shows up in /manager/list or
/manager/sessions? why?

Anders Ohlen
Cyox AB


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



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




RE: Connecting TC40 with Apache 1.3 using mod_jk

2001-12-04 Thread GOMEZ Henri

using mod_jk for connecting TC40 and Apache1.3 works fine for 
Windows NT,
2000 and Solaris. I could easily build the connector from 
source using the
download and the documentation from
http://jakarta.apache.org/~hgomez/ajp13-tc4.0/. 

The only difference between Solaris and Win is that I have to 
comment the
ajp12 in the workers.properties for Solaris, otherwise I get 
the folloing
error message: 

[Tue Dec 04 08:08:25 2001]  [jk_worker.c (93)]: Into wc_open
[Tue Dec 04 08:08:25 2001]  [jk_worker.c (229)]: Into build_worker_map,
creating 2 workers
[Tue Dec 04 08:08:25 2001]  [jk_worker.c (235)]: 
build_worker_map, creating
worker ajp12
[Tue Dec 04 08:08:25 2001]  [jk_worker.c (153)]: Into wc_create_worker
[Tue Dec 04 08:08:25 2001]  [jk_worker.c (165)]: wc_create_worker NULL
factory for ajp12
[Tue Dec 04 08:08:25 2001]  [jk_worker.c (251)]: 
build_worker_map failed to
create workerajp12
[Tue Dec 04 08:08:25 2001]  [jk_worker.c (206)]: close_workers 
got 0 workers
to destroy

It's normal there is no ajp12 connector for Tomcat 4.0, only ajp13

On Win this is of no impact, it works without modification of the
workers.properties. 

Now one question to Henri:

I haven't tried it yet, but could I connect one Apache to more than one
Tomcat ? How should I do that ? Can I use one 
workers.properties defing two
ajp13s listening on different ports ? 

yes and no. Tomcat 4 still didn't support jvmroute which is 
mandatory for load-balancing support. But if you want to 
have multiples tomcat 4 for multi webapps without a need
of load-balancing, you could of course use mod_jk.


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




Re: Tomcat 3.3, server.xml and a lot of fun

2001-12-04 Thread hanzo

You know what ? Even though -java programmer- sounds rude, I must admit that all
his points are right
Apache's docs is just slightly better than Tomcat's, but since its structure is
not so complicated,
Apache is easier to learn.  Browsing through Tomcat's docs gets you nowhere.
*sigh*
Its configuration is somewhat confusing. I mean.. what is a webapps ?
It would help if there is a simple tutorial to create one.

And I havent solve this mod_webapp thing... :(


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




AW: Manager app in tomcat 4 doesn't show number of sessions

2001-12-04 Thread Lauer, Oliver

Hi, 

my manager app on Solaris 2.6 doesn't show any session info, too. 

Oliver 

 AXA eSolutions GmbH
 AXA Konzern AG Germany
 Oliver Lauer 
 Web Architect
 Wörthstraße 34
 D-50668 Köln
 Germany
 Tel.: +49 221 148 31277
 Fax: +49 221 148 43963
 Mobil: +49 179 59 064 59
 e-Mail: [EMAIL PROTECTED]
 _
 


-Ursprüngliche Nachricht-
Von: Anders Ohlen [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 4. Dezember 2001 09:08
An: Tomcat Users List
Betreff: RE: Manager app in tomcat 4 doesn't show number of sessions


Please can someone verify if the manager app i supposed to work on solaris,
I still do not get any sessioninfo.

/Anders

-Original Message-
From: Anders Ohlen [mailto:[EMAIL PROTECTED]]
Sent: den 30 november 2001 15:31
To: Tomcat Users List
Subject: Manager app in tomcat 4 doesn't show number of sessions


Using Tomcat 4 on solaris 8 we tried the /manager app. Connected OK but
newer show any active sessions, anyone now if it is supposed to work? We
need it to verify load problems probably connected to many active sessions.

When we checked we had several connected sessions (special test jsp that
show session data) but it never shows up in /manager/list or
/manager/sessions? why?

Anders Ohlen
Cyox AB


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



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



Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information 
nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne 
auf Anforderung in schriftlicher Form nach. Beachten Sie bitte, dass jede Form der 
unautorisierten Nutzung, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des 
Inhalts dieser E-Mail nicht gestattet ist.Diese Nachricht  ist ausschliesslich fuer 
den bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten Sie nicht der 
vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, sich 
mit dem Absender der E-Mail in Verbindung zu setzen.

For legal and security reasons the information provided in this e-mail is not legally 
binding. Upon request we would be pleased to provide you with a legally binding 
confirmation in written form. Any form of unauthorised use, publication, reproduction, 
copying or disclosure of the content of this e-mail is not permitted. This message is 
exclusively for the person addressed or their representative. If you are not the 
intended recipient of this message and its contents, please notify the sender 
immediately.
---



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




Re: Tomcat 3.3, server.xml and a lot of fun

2001-12-04 Thread Vladimir Grishchenko

A collection of java designer's newsgroup posts can be found here:

http://groups.google.com/groups?[EMAIL PROTECTED]hl=enlr=safe=off;
btnG=Google+Searchsite=groups

Looks like s/he can be nice to people when in good mood. Surprisingly, none
of his posts is Java related.

--V.


- Original Message -
From: java programmer [EMAIL PROTECTED]
To: Jan Labanowski [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, December 03, 2001 10:56 PM
Subject: Re: Tomcat 3.3, server.xml and a lot of fun


 --- Jan Labanowski [EMAIL PROTECTED] wrote:
  You must be working for Microsoft, I assume...
  BTW... servlet.xml cannot have DTD, since people can
  add their own stuff
  (classes), instantiate it in server.xml, and name it
  the way they want,
  and DTD would not allow it...
 
  Jan

 Please don't top post. Replies go under the
 original post. Only MS weenies with MS outlook
 top post.

 Ok. I am going to rant here.

 rant
 Tomcat 3.3.x's internals really suck. I have looked
 at probably all of the JDK source over the past
 5 years and tomcat is at the very bottom in terms
 of quality, readability, even trivialities like
 source code formatting/comments.

 JSP/Servlets are *important*. They are probably the
 most important java api, now that java has proven
 to be a total failure on the client side. (java, in
 general, is *great* though).

 Now, it wouldn't be so bad that tomcat is a internal
 mess, if the exposed API/interface was pleasant.
 By this I mean, installing, configuring, extending,
 and documentation. Tomcat falls down in all areas.

 I mean, I really am very frustrated. There should be
 no reason to be.

 Let's take a simple, yet real world example of 2
 virtual hosts, each served by Tomcat.

 Well, do I use:

 a) 1 tomcat instance with 1 server.xml file with
 different AutoWebApps ? (have you seen how
 terse the autowebapp doc is ? They don't even
 say if the host name param should be a FQDN) ?

 b) 2 separate instances of tomcat with 2 separate
 server.xml files ?

 c) Some other random, trial by fire combo ?

 I mean, in places, the docs say that version 3.3
 and earler require separate instances of Tomcat.
 Other places, they say things like: You can add
 apps to multiple virtual hosts. (implying 1
 tomcat server ?).

 I don't know. The JSPException that I described in
 the original post, is not really documented
 anywhere.  Tomcat should have printed a meaningful
 message when that happened. Just barfing up the
 Exception itself, doesn't help me, i.e., the end
 user at all.

 There isn't any real documentation, and whatever
 there is, is mutually incompatible in many places.

 Is this the best Sun/Apache can do ?

 And on a personal note: I think the whole webapp
 idea is silly. It sounds promising of course, but
 it complicates things for most people. If I am
 running a web site, run with jsp's, then I want:

 apache (httpd)
   |
   |_some doc root
 |
 |__ all .html, .jsp files, images here.

 And only one context (/).

 In addition, path or extension based mappings
 _are_ useful but should be the _sole_ domain of
 the web server. That would be Apache in my case.

 That's how ASP works, that's how LiveWire used
 to work. I don't want my images, files etc., all
 over the place. I want them all under the htdocs
 directory. (yeah, I know I can do it, but I want
 that to be the default out of box tomcat behavior).

 webapps should never have made it
 into the spec. Name three well known
 web sites running in a mass virtual hosted
 environment and deployed as webapps with
 a web.xml file to boot ! Hell, name *any*.

 And the kicker is the gratuitous, idiotic
 use of XML for _configuration_. For you to say:

  servlet.xml cannot have DTD, since people can
  add their own stuff
  (classes), instantiate it in server.xml, and name it
  the way they want,

 shows that you have no conceptual idea what xml is
 intended for.

 Java:
 class foo {
 //variables (structure)
 }

 C:
 struct {
  //variables (structure)
  }

 Database:
 create table [ .. columns/structure ..]

 BNF:
 syntax ::=  { rule }
 rule   ::=  identifier  ::=  expression
 expression ::=  term { | term }
 term   ::=  factor { factor }
 [..]

 XML is similar to the above 4. XML is a way to
 *define*/*create* new and arbitrary data
 formats (although somewhat limited  compared
 to BNF type grammars). This way, I know and
 you know what we are saying when we exhange data.

 If there is _no_ format (dtd), there _is_ no
 structure. That's a shoddy development time
 hack only. Tomcat has been deployed for years
 now. There is no excuse not to have a server.dtd.

 Here's a factoid for the sun team: If I
 had the money, I would buy ServletExec or maybe
 JRun. I have been hacking java since '94 and
 I am frustrated with how inelegant 3.3 feels.

 The Sun/Apache team can learn a great
 deal either of those 2 distros. (I am not talking
 about fancy installers or GUI's but about
 documentation and error handling 

Re: Tomcat 3.3, server.xml and a lot of fun

2001-12-04 Thread Vladimir Grishchenko

Unfortunately, you missed the point...


- Original Message - 
From: java programmer [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, December 03, 2001 10:35 PM
Subject: Re: Tomcat 3.3, server.xml and a lot of fun


 Vladimir Grishchenko [EMAIL PROTECTED], looked
 up from a pending proctological exam, butthole
 opening, and contracting and gushing rectal mucous and
 opined:
 
  I used almost every version of TC since 3.x to 4.0.
  [..a buncha crap flushed..]
 
 
 Jeez. It must be part of the human condition that
 there really is no escape from stupidity.
 
 Here I was, looking for a cogent response, and I
 get a blazing cretin, with _no_ suggestion to offer
 save for proclaming a wholesome and beautiful
 experience with Tomcat. My, my  all the way back
 to version 3.0 you say ?
 
 The irony of your _top_ _post_,(produced more
 than likely with gatesian trash I wouldn't rely
 on to so much as prop the outhouse door), with
 all_ of the original post intact, is as they
 say, quite delicious.
 
 Best regards,
 
 [EMAIL PROTECTED]
 
 
 
 __
 Do You Yahoo!?
 Buy the perfect holiday gifts at Yahoo! Shopping.
 http://shopping.yahoo.com
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 

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




Re: Tomcat 3.3, server.xml and a lot of fun

2001-12-04 Thread Nikola Milutinovic

 You know what ? Even though -java programmer- sounds rude, I must admit that all
 his points are right

Some of them...

 Apache's docs is just slightly better than Tomcat's, but since its structure is
 not so complicated,

True (Budwiser TM), and it is better documented.

 Apache is easier to learn.  Browsing through Tomcat's docs gets you nowhere.
 *sigh*

It looks more like an incomplete pile, than a documentation. I know, we can 
contribute if we want to make things better. The trouble is, I don't have the time. 
I'm spending so much time fighting ghosts + developing an application, that I simply 
cannot manage to write down what I've discovered so far.

 Its configuration is somewhat confusing. I mean.. what is a webapps?

You mean a context? Ha, we have a problem, right here.

 It would help if there is a simple tutorial to create one.

I second that. And, NO, I cannot write one, because I haven't got all the clues in, 
yet. At the moment, I have two points of trouble:

- connecting Apache+mod_webapp to a Tomcat with virtual hosts on another machine
- whether or not I should have virtual hosts inside Warp Connector in server.xml

Anyone care to make a donation?

 And I havent solve this mod_webapp thing... :(

I'm still bugging with it, myself. A really good tutorial or at least a set of 
guidelines of what to do and what to avoid would be appreciated.

Nix.



AW: Tomcat 3.3, server.xml and a lot of fun

2001-12-04 Thread Lauer, Oliver

Hi guys, 

I really appreciate those mails below. I takes my mind off all my
(technical) worries and the pressure I've meanwhile the day :-))
We still shouldn't forget that all the guys are doing that for nothing and
are helping us earning our money !

AND we shouldn't forget to laugh...at least once a day  !? 

Oliver   

 AXA eSolutions GmbH
 AXA Konzern AG Germany
 Oliver Lauer 
 Web Architect
 Wörthstraße 34
 D-50668 Köln
 Germany
 Tel.: +49 221 148 31277
 Fax: +49 221 148 43963
 Mobil: +49 179 59 064 59
 e-Mail: [EMAIL PROTECTED]
 _
 


-Ursprüngliche Nachricht-
Von: Vladimir Grishchenko [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 4. Dezember 2001 10:45
An: Tomcat Users List
Betreff: Re: Tomcat 3.3, server.xml and a lot of fun


A collection of java designer's newsgroup posts can be found here:

http://groups.google.com/groups?[EMAIL PROTECTED]hl=enlr=safe=off;
btnG=Google+Searchsite=groups

Looks like s/he can be nice to people when in good mood. Surprisingly, none
of his posts is Java related.

--V.


- Original Message -
From: java programmer [EMAIL PROTECTED]
To: Jan Labanowski [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, December 03, 2001 10:56 PM
Subject: Re: Tomcat 3.3, server.xml and a lot of fun


 --- Jan Labanowski [EMAIL PROTECTED] wrote:
  You must be working for Microsoft, I assume...
  BTW... servlet.xml cannot have DTD, since people can
  add their own stuff
  (classes), instantiate it in server.xml, and name it
  the way they want,
  and DTD would not allow it...
 
  Jan

 Please don't top post. Replies go under the
 original post. Only MS weenies with MS outlook
 top post.

 Ok. I am going to rant here.

 rant
 Tomcat 3.3.x's internals really suck. I have looked
 at probably all of the JDK source over the past
 5 years and tomcat is at the very bottom in terms
 of quality, readability, even trivialities like
 source code formatting/comments.

 JSP/Servlets are *important*. They are probably the
 most important java api, now that java has proven
 to be a total failure on the client side. (java, in
 general, is *great* though).

 Now, it wouldn't be so bad that tomcat is a internal
 mess, if the exposed API/interface was pleasant.
 By this I mean, installing, configuring, extending,
 and documentation. Tomcat falls down in all areas.

 I mean, I really am very frustrated. There should be
 no reason to be.

 Let's take a simple, yet real world example of 2
 virtual hosts, each served by Tomcat.

 Well, do I use:

 a) 1 tomcat instance with 1 server.xml file with
 different AutoWebApps ? (have you seen how
 terse the autowebapp doc is ? They don't even
 say if the host name param should be a FQDN) ?

 b) 2 separate instances of tomcat with 2 separate
 server.xml files ?

 c) Some other random, trial by fire combo ?

 I mean, in places, the docs say that version 3.3
 and earler require separate instances of Tomcat.
 Other places, they say things like: You can add
 apps to multiple virtual hosts. (implying 1
 tomcat server ?).

 I don't know. The JSPException that I described in
 the original post, is not really documented
 anywhere.  Tomcat should have printed a meaningful
 message when that happened. Just barfing up the
 Exception itself, doesn't help me, i.e., the end
 user at all.

 There isn't any real documentation, and whatever
 there is, is mutually incompatible in many places.

 Is this the best Sun/Apache can do ?

 And on a personal note: I think the whole webapp
 idea is silly. It sounds promising of course, but
 it complicates things for most people. If I am
 running a web site, run with jsp's, then I want:

 apache (httpd)
   |
   |_some doc root
 |
 |__ all .html, .jsp files, images here.

 And only one context (/).

 In addition, path or extension based mappings
 _are_ useful but should be the _sole_ domain of
 the web server. That would be Apache in my case.

 That's how ASP works, that's how LiveWire used
 to work. I don't want my images, files etc., all
 over the place. I want them all under the htdocs
 directory. (yeah, I know I can do it, but I want
 that to be the default out of box tomcat behavior).

 webapps should never have made it
 into the spec. Name three well known
 web sites running in a mass virtual hosted
 environment and deployed as webapps with
 a web.xml file to boot ! Hell, name *any*.

 And the kicker is the gratuitous, idiotic
 use of XML for _configuration_. For you to say:

  servlet.xml cannot have DTD, since people can
  add their own stuff
  (classes), instantiate it in server.xml, and name it
  the way they want,

 shows that you have no conceptual idea what xml is
 intended for.

 Java:
 class foo {
 //variables (structure)
 }

 C:
 struct {
  //variables (structure)
  }

 Database:
 create table [ .. columns/structure ..]

 BNF:
 syntax ::=  { rule }
 rule   ::=  identifier  ::=  expression
 expression ::=  term { | term }
 term   ::=  factor { factor }
 [..]

request.getParameter problem

2001-12-04 Thread Rama

Hi,

it seems that request.getParameter does not always successful in POST
method.
is there any way to make it 100% successful?

i'm using tomcat 4.01.

if (request.getParameter(modify).equals(yes)) {
out.write(modify listings);
}


Rama


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


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




RE: Tomcat 3.3, server.xml and a lot of fun

2001-12-04 Thread Cato, Christopher

 Hi guys, 
 
 I really appreciate those mails below. I takes my mind off all my
 (technical) worries and the pressure I've meanwhile the day :-))
 We still shouldn't forget that all the guys are doing that 
 for nothing and
 are helping us earning our money !
 
 AND we shouldn't forget to laugh...at least once a day  !? 
 
 Oliver   

Okay. Now, I have to meddle.

I'd say that being on the development team of TomCat might not actually make
you rich - but it sure rubs off on your carreer. My guess is that you'll
find actually getting paid for doing something is a lot easier if you can
state I'm on the Jakarta TomCat development team

Mr. [EMAIL PROTECTED] has a bunch of valid points. The configuration IS
messy. I've worked with TomCat for a good while now, and I still find my
self crossing my fingers everytime I add a new context to server.xml.

The documentation is absolute rubbish. The FAQ does not help very much
either.

If more people spoke freely like javadesigner, things would look different.
And, it's pretty fun to read rants like that.

Me, I'm still hoping to get TomCat running on my dual-cpu machines one day.
But, I'm not betting on it.

/christopher

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




RE: request.getParameter problem

2001-12-04 Thread Cato, Christopher

You should put it like this

if (request.getParameter(modify) != NULL)
{
if (request.getParameter(modify).equals(yes) {
 your action here 
} else {
 your action here 
}
} else {
 your action if the parameter is empty here 
}

Otherwise you can end up with a NullPointerException from reading a NULL
parameter.

/Christopher

 -Original Message-
 From: Rama [mailto:[EMAIL PROTECTED]]
 Sent: den 4 december 2001 11:17
 To: [EMAIL PROTECTED]
 Subject: request.getParameter problem
 
 
 Hi,
 
 it seems that request.getParameter does not always successful in POST
 method.
 is there any way to make it 100% successful?
 
 i'm using tomcat 4.01.
 
 if (request.getParameter(modify).equals(yes)) {
 out.write(modify listings);
 }
 
 
 Rama
 
 
 _
 Do You Yahoo!?
 Get your free @yahoo.com address at http://mail.yahoo.com
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

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




Re: request.getParameter problem

2001-12-04 Thread David Cassidy

Or you could try

if ( yes.equals(request.getParameter(modify) ) )
{
 out.write(modify listings);
 }

it gets around modify being null and lovely exceptions ...

:)

David


Cato, Christopher wrote:

 You should put it like this

 if (request.getParameter(modify) != NULL)
 {
 if (request.getParameter(modify).equals(yes) {
  your action here 
 } else {
  your action here 
 }
 } else {
  your action if the parameter is empty here 
 }

 Otherwise you can end up with a NullPointerException from reading a NULL
 parameter.

 /Christopher

  -Original Message-
  From: Rama [mailto:[EMAIL PROTECTED]]
  Sent: den 4 december 2001 11:17
  To: [EMAIL PROTECTED]
  Subject: request.getParameter problem
 
 
  Hi,
 
  it seems that request.getParameter does not always successful in POST
  method.
  is there any way to make it 100% successful?
 
  i'm using tomcat 4.01.
 
  if (request.getParameter(modify).equals(yes)) {
  out.write(modify listings);
  }
 
 
  Rama
 
 
  _
  Do You Yahoo!?
  Get your free @yahoo.com address at http://mail.yahoo.com
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 

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


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




AW: request.getParameter problem

2001-12-04 Thread Ralph Einfeldt

What do mean with 'not always succesfull'? (Exceptions, wrong value
printed)
What type of form do you use (standard or multipart (file upload)).

 -Ursprüngliche Nachricht-
 Von: Rama [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 4. Dezember 2001 11:17
 An: [EMAIL PROTECTED]
 Betreff: request.getParameter problem
 
 
 Hi,
 
 it seems that request.getParameter does not always successful in POST
 method.
 is there any way to make it 100% successful?
 
 i'm using tomcat 4.01.
 
 if (request.getParameter(modify).equals(yes)) {
 out.write(modify listings);
 }
 
 
 Rama
 
 
 
 _
 
 Do You Yahoo!?
 
 Get your free @yahoo.com address at http://mail.yahoo.com
 
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 

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




RE: Known Memory clean-up issues?

2001-12-04 Thread Justin Rowles

  NOW, does anyone know when the damn jspDestroy method should 
  be invoked?!
  PLEASE!
 
 From the JavaDoc for javax.servlet.jsp.JspPage (version 2.2):
 jsp_destroy() is invoked when the JspPage is about to be destroyed
 
 (I believe that the underscore is a typo.)
 
 A JSP is only destroyed when unloaded - when its about to be 
 recompiled or
 the server is shutting down.  The spec allows JSPs to be 
 unloaded whenever
 the server wants to, but Tomcat doesn't do that.

Thanks Randy.

My problem turned out to be lack of understanding on my part[1].  A jsp
class in not instanciated for each session, but only for the application as
a whole.  The jspService method is then entered in a separate thread for
each user.

Hence I only see it removed from memory when a new version is loaded.

Justin.
[1] There's a surprise ;-)
-- 
You're only jealous cos the little penguins are talking to me. 



***
For more information on Ordnance Survey products and services,
visit our web site at http://www.ordnancesurvey.co.uk
***




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




RE: How to prevent access to the content of a folder?

2001-12-04 Thread Justin Rowles

 If I direct the browser to http://localhost:8080/app1/images 
 I'll have access to the contents of this directory.
 Is there a way to prevent this from happenning?

Include an absolute path reference and file in the default page list:

default.htm index.htm /other_stuff/sod_off.htm

This means that in the absence of a specified file, the server will look for
default.htm, then index.htm, then will go to /other_stuff/ and show the file
sod_off.htm which should say something like We don't allow directory
listings here.

Justin.
-- 
You're only jealous cos the little penguins are talking to me. 



***
For more information on Ordnance Survey products and services,
visit our web site at http://www.ordnancesurvey.co.uk
***




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




Re: How to prevent access to the content of a folder?

2001-12-04 Thread David Cassidy


you might want to look at obj.conf

Service method=(GET|HEAD) type=magnus-internal/directory fn=index-common

I guess that that makes a directory listing.
What happens if it isn't there I don't know 

David

Justin Rowles wrote:

  If I direct the browser to http://localhost:8080/app1/images
  I'll have access to the contents of this directory.
  Is there a way to prevent this from happenning?

 Include an absolute path reference and file in the default page list:

 default.htm index.htm /other_stuff/sod_off.htm

 This means that in the absence of a specified file, the server will look for
 default.htm, then index.htm, then will go to /other_stuff/ and show the file
 sod_off.htm which should say something like We don't allow directory
 listings here.

 Justin.
 --
 You're only jealous cos the little penguins are talking to me.

 ***
 For more information on Ordnance Survey products and services,
 visit our web site at http://www.ordnancesurvey.co.uk
 ***

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


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




AW: Tomcat 3.3, server.xml and a lot of fun

2001-12-04 Thread Ralph Einfeldt

To be right in technical terms, doesn't give him the right
to insult others for their names or their lack of english.
I can't see anything funny in this kind of 'rants'. 

To be right in technical terms, doesn't justify to first
insult others and then ask those he just insulted for help.

P.S.:
  I'm not developer of tomcat (not even a user).
  I think that it's good and important that people
  say what they like and what not. If they do it in the right
  manner.

  In several point he is not right, as he treats JSP and
  tomcat as identical. They are not. Some things he blames
  on the developers are caused by the spec (That there
  are some people here, that deal with both, doesn't change
  that).

 -Ursprüngliche Nachricht-
 Von: Cato, Christopher [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 4. Dezember 2001 11:14
 An: 'Tomcat Users List'
 Betreff: RE: Tomcat 3.3, server.xml and a lot of fun
 
snip/
 Okay. Now, I have to meddle.
 
 I'd say that being on the development team of TomCat might 
 not actually make
 you rich - but it sure rubs off on your carreer. My guess is 
 that you'll
 find actually getting paid for doing something is a lot 
 easier if you can
 state I'm on the Jakarta TomCat development team
 
 Mr. [EMAIL PROTECTED] has a bunch of valid points. The 
 configuration IS
 messy. I've worked with TomCat for a good while now, and I 
 still find my
 self crossing my fingers everytime I add a new context to server.xml.
 
 The documentation is absolute rubbish. The FAQ does not help very much
 either.
 
 If more people spoke freely like javadesigner, things would 
 look different.
 And, it's pretty fun to read rants like that.
 
 Me, I'm still hoping to get TomCat running on my dual-cpu 
 machines one day.
 But, I'm not betting on it.
 
 /christopher
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 

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




RE: Please Help : Use MySQl

2001-12-04 Thread Justin Rowles

 I use Tomcat 4.0.1, Apache 2.0.28, Mysql 3.22 and solaris 8, 
 and need conect
 with database, please help with this configration.

We'll need more information!  What exactly are you having problems with?  In
the meantime, this should help:

The JDBC mySQL drivers are available on Sourceforge (search for them).

The code looks something like this:

try
{
Class.forName(org.gjt.mm.mysql.Driver);
}
catch(ClassNotFoundException ce) {
System.out.write(Unable to locate driver class for database:  +
ce);
throw(ce);
}

try
{
connection =
DriverManager.getConnection(jdbc:mysql://localhost:3306/gam?user=xxxpasswo
rd=yyy);
}
catch(SQLException se)
{
System.out.write(EsriukDataPool - Unable to initiate connection: 
+ se);
throw(se);
}

HTH.
J.
-- 
You're only jealous cos the little penguins are talking to me. 



***
For more information on Ordnance Survey products and services,
visit our web site at http://www.ordnancesurvey.co.uk
***




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




RE: Tomcat 3.3, server.xml and a lot of fun

2001-12-04 Thread Justin Rowles

 Please don't top post. Replies go under the
 original post. Only MS weenies with MS outlook
 top post.

Agreed.

 Ok. I am going to rant here. 

You want to complain?  About a free product?!

*Do* something *constructive* instead, like help with the project or the
documentation.

Enough said.  No flaming, no name-calling.

Justin.
-- 
You're only jealous cos the little penguins are talking to me. 



***
For more information on Ordnance Survey products and services,
visit our web site at http://www.ordnancesurvey.co.uk
***




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




Running 2 WebApps integrated with NS Ent.Serv. 3.6

2001-12-04 Thread rickarde

Hi!

I have the following problem:

I want to use one TC installation (3.2.2) running two WebApps.
It works fine during development using the integrated TC webserver configuring 
App1 to ports 8080/8007 and App2 to 8082/8009 (for example). 
But now to the issue.
I have to integrate TC with Netscape Enterprise Server 3.6 (both servers running 
on the same UNIX machine), and therefore use the AJP12/13 to redirect the 
servlet/jsp requests from NS to TC.

I was wondering how to congigure the workers.properties file to make this work 
out. 
App1 and App2 must be able to get started and closed separately and also be 
redirected from NS (and back). App1 and App2 will be listening on different 
ports in NS (if that makes any difference ?). 
Is there any files other than workers.properties that has to be configured ?

By the way, App1 is using the default TC installation files while App2 is using 
separate files (server.xml etc. The startscript for App2 is pointing at 
server_App2.xml)

/Rickard

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




Re: Client Certificate IIS+Tomcat

2001-12-04 Thread Antony Bowesman

Gianluca D'Introno wrote:
 
 I'm using Tomcat 4.0 and IIS 5.0 for an https site.
 I need to use into a JSP page  the Client Certificate sent by the Client to
 the Server IIS during SSL Hanshake.
 Someone know how I can do it?

Think it's exposed by the certificate valve as an attribute in session

javax.servlet.request.X509Certificate

Antony

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




Re: Tomcat 3.3, server.xml and a lot of fun

2001-12-04 Thread Nikola Milutinovic

  Ok. I am going to rant here. 
 
 You want to complain?  About a free product?!
 
 *Do* something *constructive* instead, like help with the project or the
 documentation.

OK. Let's be constructive. Let's say I'm a newcomer to Tomcat, just as I was a couple 
of months ago... How am I supposed to write docs?

OTOH, now I am more experienced, I am head-strong, I WANT TO SEE THIS WORK. Could 
someone attend to my problems and in exchange I'll write about my epic ventures into 
Tomcat virtual hosting, connecting to Apache, etc.? I'm prepared to make a deal.

 You're only jealous cos the little penguins are talking to me. 

Where is this from?

Nix.



RE: Tomcat 3.3, server.xml and a lot of fun

2001-12-04 Thread Justin Rowles

 OK. Let's be constructive. Let's say I'm a newcomer to 
 Tomcat, just as I was a couple of months ago... How am I 
 supposed to write docs?

You're not.  You're supposed to hang out on lists like this one till you
know what you are doing and then write docs.  Complaining that no-one has
done is useless.

 OTOH, now I am more experienced, I am head-strong, I WANT TO 
 SEE THIS WORK. Could someone attend to my problems and in 
 exchange I'll write about my epic ventures into Tomcat 
 virtual hosting, connecting to Apache, etc.? I'm prepared to 
 make a deal.

I think the voluntary principle of this sort of project is passing you by
;-)

I suspect that very little work could produce a decent FAQ based on this
list.  Who knows, I might even do it myself one day.

  You're only jealous cos the little penguins are talking to me. 
 
 Where is this from?

Inside my head.  Please don't nick it, it's personal to me.

J.
-- 
You're only jealous cos the little penguins are talking to me. 



***
For more information on Ordnance Survey products and services,
visit our web site at http://www.ordnancesurvey.co.uk
***




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




Re: Jakarta-Tomcat 4.01 startup problem

2001-12-04 Thread Alec Bickerton

Hi,

You need to use 

service tomcat4 start | stop

I had the same problem using the rpm.

30/11/2001 03:23:55, Kenneth Fung [EMAIL PROTECTED] wrote:

To who it may concern,

I have installed jakarta-tomcat 4.01 RPM on My Redhat Linux 7.0.
However, there is no *.sh files as described in Tomcat documentation,
so I download the ZIP version and extract *.sh files and additional
/webapps for startup. I found even I have setup environment variables
such as JAVA_HOME and CATALINA_HOME, they seems to have no effect on
startup.sh when it want to search the path as described in the file. At
the end I add the variables settings manually in the startup.sh file.
When everything is ok( JDK1.3.1 also been installed), I typed:
   $CATALINA_HOME/bin/startup.sh
and there is only a message of memory allocation error left, then
nothing else...
The only successful way is that:
   $CATALINA_HOME/bin/catalina.sh debug
   run
I can find the index page in URL: http://localhost:8180
Is there any problem with the startup.sh file?
How can I use it as a daemon?

Look forward to your message!
Best regards!

Kenneth


_
Do you Yahoo!?
¦æ¸U¨½¸ô http://travel.yahoo.com.hk
Comprehensive travel guide at http://travel.yahoo.com.hk

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








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




tomcat jboss

2001-12-04 Thread renyu teng


this is a little bit off the topic, anyway, could
anyone tell me where I could find a useful information
to run tomcat  jboss together? 

thank you.
teng

__
Do You Yahoo!?
Buy the perfect holiday gifts at Yahoo! Shopping.
http://shopping.yahoo.com

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




Tomcat , load balancing, stand alone

2001-12-04 Thread Jan Templin

Hi,

does load balancing as described in
http://jakarta.apache.org/tomcat/tomcat-3.2-doc/Tomcat-Workers-HowTo.html
work with a stand alone Tomcat (w/o Apache) ?
If yes, how?

I tried to set up the following:

2 tomcat servers with different ajp12 ports,
1 tomcat server with http port 8080
- all 3 running on a local machine
workers.properties was configured with one lb-type and 2 balanced workers.
How do I run this file? I suspect it only works with mod_jk /Apache.

Thanks a lot for your help!

Jan

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




Re: tomcat jboss

2001-12-04 Thread Javier Soques

www.jboss.org?

--- renyu teng [EMAIL PROTECTED] wrote:
 
 this is a little bit off the topic, anyway, could
 anyone tell me where I could find a useful
 information
 to run tomcat  jboss together? 
 
 thank you.
 teng
 
 __
 Do You Yahoo!?
 Buy the perfect holiday gifts at Yahoo! Shopping.
 http://shopping.yahoo.com
 
 --
 To unsubscribe:  
 mailto:[EMAIL PROTECTED]
 For additional commands:
 mailto:[EMAIL PROTECTED]
 Troubles with the list:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Buy the perfect holiday gifts at Yahoo! Shopping.
http://shopping.yahoo.com

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




RE: tomcat jboss

2001-12-04 Thread Reynir Hübner

you can download a package of the two and alot of info on it from
www.jboss.org
check it out.

-reynir


-Original Message-
From: renyu teng [mailto:[EMAIL PROTECTED]]
Sent: 4. desember 2001 12:59
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: tomcat  jboss



this is a little bit off the topic, anyway, could
anyone tell me where I could find a useful information
to run tomcat  jboss together? 

thank you.
teng

__
Do You Yahoo!?
Buy the perfect holiday gifts at Yahoo! Shopping.
http://shopping.yahoo.com

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


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




Re: tomcat jboss

2001-12-04 Thread renyu teng


--- Javier Soques [EMAIL PROTECTED] wrote:
 www.jboss.org?

Hi,

I have gone through the web site, and I could find any
doc. telling me to how set up the conf. to run both,
and I have down the jboss embedded with tomcat, but it
doesn't even have readme, it is a little bit hard
for me to figure out.

regards
teng

 
 --- renyu teng [EMAIL PROTECTED] wrote:
  
  this is a little bit off the topic, anyway, could
  anyone tell me where I could find a useful
  information
  to run tomcat  jboss together? 
  
  thank you.
  teng
  
  __
  Do You Yahoo!?
  Buy the perfect holiday gifts at Yahoo! Shopping.
  http://shopping.yahoo.com
  
  --
  To unsubscribe:  
 
 mailto:[EMAIL PROTECTED]
  For additional commands:
  mailto:[EMAIL PROTECTED]
  Troubles with the list:
  mailto:[EMAIL PROTECTED]
  
 
 
 __
 Do You Yahoo!?
 Buy the perfect holiday gifts at Yahoo! Shopping.
 http://shopping.yahoo.com
 
 --
 To unsubscribe:  
 mailto:[EMAIL PROTECTED]
 For additional commands:
 mailto:[EMAIL PROTECTED]
 Troubles with the list:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Buy the perfect holiday gifts at Yahoo! Shopping.
http://shopping.yahoo.com

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




Re: Tomcat 3.3, server.xml and a lot of fun

2001-12-04 Thread Nikola Milutinovic

 You're only jealous cos the little penguins are talking to me. 

So, any insight on the little penguins? I've given up on discussing Tomcat.

Nix.



Re: tomcat jboss

2001-12-04 Thread Jim Cheesman

At 02:06 PM 04/12/01, you wrote:

--- Javier Soques [EMAIL PROTECTED] wrote:
  www.jboss.org?

Hi,

I have gone through the web site, and I could find any
doc. telling me to how set up the conf. to run both,
and I have down the jboss embedded with tomcat, but it
doesn't even have readme, it is a little bit hard
for me to figure out.


What I did:
1. Get tomcat running separately - configured, understood (more or less...)
2. Get JBoss running separately - configured, understood etc.
3. The JNDI stuff is pretty easy. (See 
http://127.0.0.1:8080/tomcat-docs/jndi-resources-howto.html if you've got 
tomcat up and running.)
4. Ask questions, once the above is done...

I'll admit it took me ages - mainly because of the database configuration 
stuff... don't even dream about doing it using the jdbc:odbc bridge!



I never did try the embedded version - the tomcat they were using was quite 
a few versions behind the latest release at the time.



Jim





--

   *   Jim Cheesman   *
 Trabajo: 
[EMAIL PROTECTED] - (34)(91) 724 9200 x 2360
   If you try and don't succeed, 
cheat. Repeat until caught. Then lie.



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




AW: How to create global variables wich could be accessed by all jsp sites and servlet's?

2001-12-04 Thread Sebastian Hagenbrock

That's it...

Thank you very much.

SH

-Ursprüngliche Nachricht-
Von: Donie Kelly [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 3. Dezember 2001 16:46
An: 'Tomcat Users List'
Betreff: RE: How to create global variables wich could be accessed by
all jsp sites and servlet's?


Have a look at system.properties
eg:
// Set up new system propeties
sc = getServletContext();
RootPath = sc.getRealPath(/);

propFile = new FileInputStream(RootPath + myapp.properties);

Properties p = new Properties(System.getProperties());
p.load(propFile);
System.setProperties(p);

Run this in some servlet init() method which loads on startup (see
web.xml)

A file like this will then be in your $TOMCAT/webapps/app directory
myapp.properties

# My variable
myvar=myvalue



You can access these variables with

System.getProperty(myvar)

Hope this helps
Donie



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




Character Encoding problems

2001-12-04 Thread Nikola Milutinovic

Hi all.

I'm developing a web application that uses textual data for CentralEastern Europe. 
The text is in a database which is internally UNICODE. I also have another DB instance 
which is ISO-8859-2 encoded, so all options are in the play.

I thought I should set contentType=text/html; charset=ISO-8859-2, declare a page to 
the same (just in case) and sit back and enjoy myself. Unfortunately, I was wrong.

Not only is the Latin-2 support in both IE and Netscape buggy (they wouldn't display 
s-caron and z-caron, but would display Caps versions of those characters), but 
Java is bugging me, too. Instead of letters specific to our alphabet, I'm getting ?.

With the help of a dedicated PostgreSQL JDBC developer, I have tracked this problem 
down to JVM, which has a default encoding of ISO-8859-1. In a standalone Java 
application I can do explicit encoding, like this:

System.out.write( testString.getBytes( ISO-8859-2 ) );

and it will print the characters I expect, instead of ?.

What do I do in Tomcat?

I have set contentType to text/html; charset=ISO-8859-2 and in a generated Servlet 
code it really has:

response.setContentType(text/html; charset=ISO-8859-2);

So, no trouble there. How do I get a (Unicode) string to convert to a ISO-8859-2 
encoded byte stream? Because, eventually, that is what the browser should get. I 
cannot use the method from above, since JspWriter doesn't accept byte[] as an 
argument.

Nix.



RE: tomcat jboss

2001-12-04 Thread Cato, Christopher

 What I did:
 1. Get tomcat running separately - configured, understood 
 (more or less...)
 2. Get JBoss running separately - configured, understood etc.
 3. The JNDI stuff is pretty easy. (See 
 http://127.0.0.1:8080/tomcat-docs/jndi-resources-howto.html 
 if you've got 
 tomcat up and running.)
 4. Ask questions, once the above is done...
 
 I'll admit it took me ages - mainly because of the database 
 configuration 
 stuff... don't even dream about doing it using the jdbc:odbc bridge!
 
 I never did try the embedded version - the tomcat they were 
 using was quite 
 a few versions behind the latest release at the time.
 
 
 
 Jim

I've tried the embedded version and it works fine. Except from some XML
parser errors but what the heck... It works...

Chris

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




RE: Character Encoding problems

2001-12-04 Thread Marcin Jaskula

 I'm developing a web application that uses textual data for
 CentralEastern Europe. The text is in a database which is
 internally UNICODE. I also have another DB instance which is
 ISO-8859-2 encoded, so all options are in the play.

 I thought I should set contentType=text/html;
 charset=ISO-8859-2, declare a page to the same (just in case)
 and sit back and enjoy myself. Unfortunately, I was wrong.

 Not only is the Latin-2 support in both IE and Netscape buggy
 (they wouldn't display s-caron and z-caron, but would display
 Caps versions of those characters), but Java is bugging me, too.
 Instead of letters specific to our alphabet, I'm getting ?.

 With the help of a dedicated PostgreSQL JDBC developer, I have
 tracked this problem down to JVM, which has a default encoding of
 ISO-8859-1. In a standalone Java application I can do explicit
 encoding, like this:

 System.out.write( testString.getBytes( ISO-8859-2 ) );

 and it will print the characters I expect, instead of ?.

 What do I do in Tomcat?

 I have set contentType to text/html; charset=ISO-8859-2 and in
 a generated Servlet code it really has:

 response.setContentType(text/html; charset=ISO-8859-2);

 So, no trouble there. How do I get a (Unicode) string to convert
 to a ISO-8859-2 encoded byte stream? Because, eventually, that is
 what the browser should get. I cannot use the method from above,
 since JspWriter doesn't accept byte[] as an argument.

Hi

I used to have similar problem.
I'm using Tomcat 4.0 with PostgreSQL, DB encoding LATIN-2.
I couldn't get proper characters from the page source, an input form (post
method) and from the DB.
I managed it by:
1. The page with the input form MUST have encoding=iso-8859-2
meta http-equiv=content-type content=text/html; charset=iso-8859-2
2. The DB encoding LATIN-2
3. In the source of the jsp page:
%@ page
contentType=text/html; charset=iso-8859-2

%
request.setCharacterEncoding(iso-8859-2); // just after %@page !! before
you
 // read any
argument from request

and in the http headers:
meta http-equiv=content-type content=text/html; charset=iso-8859-2
// ^ it looks unnecessary but otherwise it doesn't work ???

All the best
Marcin


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




java.lang.ClassFormatError: Illegal Variable name

2001-12-04 Thread Douglas E. Hornig

There seems to be a problem with the Tomcat 4.0.1 class loader.  I have figured out 
how to get around it, but am posting it in case anyone else runs into it, or someone 
wants to fix it.

I have an application that works fine with Tomcat 3.2.x but when I ran it under 4.0.1 
I would get a ClassFormatError (see below).  I tried recompiling my jar file, putting 
it in all sorts of different directories, using class files instead of a jar, running 
with IBM Java 1.3 and Sun J2DSK 1.3.1 under Linux, and Sun J2SDK 1.3.1 on NT--no 
difference.  The solution turned out to be to edit one of my methods so it did not 
return from the middle of a synchronized block (also see below).

I apologize for using bandwidth if this has been covered before.
Doug

javax.servlet.ServletException: Error instantiating servlet class 
org.hitchcock.cismt.CisServlet
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:829)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
at java.lang.Thread.run(Thread.java:484)


root cause 

java.lang.ClassFormatError: org/hitchcock/cismt/CisMtStats (Illegal Variable name )
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at 
org.apache.catalina.loader.StandardClassLoader.findClass(StandardClassLoader.java:671)
at 
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:1090)
at 
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:989)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:820)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 

Newbie - class loading issue

2001-12-04 Thread Bill Halpin
Title: Newbie - class loading issue





Hello Folks! I was recently assigned a POC project that includes some web development which I am using Tomcat 4.0.1 to do. I've only been using Tomcat for about 1.5 weeks so I'm extremely wet behind the ears.

I've consulted the documentation and searched the list archives looking for an answer to my problem but cant seem to find one. Right now, I am simply trying to use a bean to gather data from a form and return the data to the screen. When I run the jsp to do this, I get one of two different class not found errors. I am not deploying the app using a WAR file, right now I just have the jsp file in the root directory and the class files in WEB-INF/classes. The bean class is in the package login. So the full path for the class is WEB-INF/classes/login/UserBean.class.

I've also tried the following:


1. Recompiled the class without the package and placed the class in WEB-INF/classes.


2. Created jar file with package. Placed the jar file in WEB-INF/lib. This also did not work, so I tried /lib and /common/lib which also didnt work. I tried all of these locations with and without the package designation.

3. I've added the individual class and the jar file to the classpath.


I am sure I am making a simple mistake but cant seem to figure out what that mistake is. According to (my understanding of) the documentation, placing the class files in WEB-INF/classes should be all I need to make them accessible to the jsp, am I mistaken? The text from the errors was rather lengthy, so I have not included it, if necessary I would gladly forward it on.

If anyone has a possible solution, or perhaps advice on other sources to peruse to solve the problem, I would greatly appreciate it.

Thanks


-b


Bill Halpin
Schwoo, Inc
412-481-3301
[EMAIL PROTECTED] 







Bill Halpin (E-mail).vcf
Description: Binary data

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


Re: Tomcat 4 as an NT Service

2001-12-04 Thread Frank Lawlor

Take a look at previous posts on this topic.
Take a look at what is in your log files.

Frank Lawlor
Athens Group, Inc.
(512) 345-0600 x151
Athens Group, an employee-owned consulting firm integrating technology
strategy and software solutions.




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




Integration of Apache and Tomcat 4.0.1

2001-12-04 Thread tc

Hello everyone,

Is there any documentation on the integration of Tomcat 4.0.1 
and Apache 1.3.xx yet?

Thank you,
-Steve



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




Anyone using JDO with Tomcat?

2001-12-04 Thread Mark

I'm attempting to use the 'Kodo' JDO beta 2.2.1 and Tomcat 4.0.  Going
through the Kodo command-line tutorial works just fine, but I need to
verify works in the context of a servlet container.  I'm able to get an
instance of a persistenceManager and able to persist objects via
makePersistent() in a servlet, however any attempts at querying objects
generate the exception:

   javax.jdo.JDODataStoreException: Type test.MyClass is referenced in
the database, but does not exist.

I'm confident the JDO-enhanced classes are visible at runtime since I can
persist objects, and if I move classes from under
../webapps/myapp/WEB-INF/classes/test I then get a ClassNotFoundException.  

Anyway, if anyone's messed with JDO and Tomcat I'd really like to hear from
you.

Thanks
Mark




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




tomcat 4 and enhydra 3.1 application

2001-12-04 Thread Xin Li

Hi,

This is Xin. A new user of tomcat4. I need to run my enhydra application
under Tomcat4. I read the discussion about this issue from last month, it is
very helpful. However, I still have some questions on the instruction that
Dave Li provided. Any help will be appreciated.

Question 1: In order to let it work, we need to

1. Patch the Enhydra 3.1 HttpPresentationServlet (see attached)
   Simple patch to linked up the classloader of the servlet

May I know where the patch should be placed?

Question 2: in server.xml, we should add Context path=/enhydra
docBase=enhydra debug=1/ in it.
Should path be /EnhydraWebApp if the folder's name under webapps is
EnhydraWebApp?

Question 3:

There is an example of web.xml  (I suppose this web.xml is the file under
webapps/EnhydraWebApp/WEB-INF/, is it right?)
web-app

servlet
servlet-name
enhydra
/servlet-name
servlet-class

com.lutris.appserver.server.httpPresentation.servlet.HttpPresentationServlet
/servlet-class
init-param
param-nameConfFile/param-name

param-value/home/david/work/SkunkWorks/EnhydraWebApp/WebApp/output/conf/We
bApp.conf/param-value
/init-param
/servlet

!-- The mapping for the default servlet --
servlet-mapping
  servlet-nameenhydra/servlet-name
  url-pattern/*/url-pattern
/servlet-mapping
/web-app

Is there any special requirement about the servlet-name? Can it be
something else?

Thanks,

Xin


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




Apache Tomcat 4.0.1

2001-12-04 Thread Markus Baertschi


Hello,

I've got an application, actually running on a standalone tomcat 3.2.4 server
which I want to put in production with tomcat 4.0.1 and apache 1.3.22. I am on
AIX 4.3 and use the IBM binary apache distribution ('IBM http server'). 

I've studied the tomcat-apache howto and concluded I need mod_jk. My apache binary
has DSO and I think it has EAPI as well (it supports ssl). But further-on it looks
like the HOWTO is (no longer ?) correct:

The howto states that mod_jk sources are found in the binary distribution of tomcat
in $TOMCAT_HOME/native/mod_jk/apache1.3. but in the tomcat 4.0.1 distributions
(bin  source) there is no mod_jk.

- Should I just take the mod_jk which came with tomcat 3.2.4 ?
- Is there a better solution for tomcat 4.0.1 and apache 1.3.x ?
- Who should I contact to update the HOWTO ?

Thanks  Markus



--
  Markus Baertschi Phone: ++41 (21) 807 1677
  Bas du Rossé 12  Fax  : ++41 (21) 807 1678
  CH-1163, EtoyEmail: [EMAIL PROTECTED]
  Switzerland  Homepage: www.markus.org



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




Split Thread with 2 browsers

2001-12-04 Thread John Regan


Desired functionality:
User opens browser, clicks through several pages as a certain user type
then opens a second browser because they want to be a different user type.
The user should be able to proceed in either browser without session
information being overwritten in the other browser's session.  

Has anyone implemented any similar functionality?

Note: using tomcat 4.x as http server and JSP container.




Re: Apache Tomcat 4.0.1

2001-12-04 Thread Denny Chambers

For Tomcat 4.0 you need mod_webapp.so

Markus Baertschi wrote:
 
 Hello,
 
 I've got an application, actually running on a standalone tomcat 3.2.4 server
 which I want to put in production with tomcat 4.0.1 and apache 1.3.22. I am on
 AIX 4.3 and use the IBM binary apache distribution ('IBM http server').
 
 I've studied the tomcat-apache howto and concluded I need mod_jk. My apache binary
 has DSO and I think it has EAPI as well (it supports ssl). But further-on it looks
 like the HOWTO is (no longer ?) correct:
 
 The howto states that mod_jk sources are found in the binary distribution of tomcat
 in $TOMCAT_HOME/native/mod_jk/apache1.3. but in the tomcat 4.0.1 distributions
 (bin  source) there is no mod_jk.
 
 - Should I just take the mod_jk which came with tomcat 3.2.4 ?
 - Is there a better solution for tomcat 4.0.1 and apache 1.3.x ?
 - Who should I contact to update the HOWTO ?
 
 Thanks  Markus
 
 --
   Markus Baertschi Phone: ++41 (21) 807 1677
   Bas du Rossé 12  Fax  : ++41 (21) 807 1678
   CH-1163, EtoyEmail: [EMAIL PROTECTED]
   Switzerland  Homepage: www.markus.org
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

-- 
Denny Chambers
Quantum Corporation, Inc.
Network Attached Storage Division
Java Linux Engineer
Phone: 334-478-5730
IM: [EMAIL PROTECTED]

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




Re: Help : Use Oracle 8i JDBC driver

2001-12-04 Thread Siomara Pantarotto


--- Mike [EMAIL PROTECTED] wrote:
  Hi everyone. I have some newbie questions.
 
  I use Tomcat 3.2.3 /Linux and Oracle 8i /Windows NT
  I would like to know how should I specify JDBC drivers (classpath,
  their
  location).

DOWNLOAD CLASSES111.ZIP OR CLASSES12.ZIP FROM ORACLE AND YOU CAN STORED IT 
ANYWHERE IN YOUR MACHINE AND SPECIFY IT IN YOUR CLASS PATH (EX: 
C:\FOLDER1\FOLDER2\CLASSES111.ZIP) OR YOU CAN STORE IT UNDER TOMCAT
AT JRE\LIB\EXT (THE RIGHT PLACE FOR EXTERNAL CLASSES). NOTE THAT THIS LAST 
APPROACH IS GOOD, AND IT IS A MUST WITH TOMCAT 4 THAT DOES NOT RECOGNIZES 
THE CLASSPATH.

 
  I read also that Oracle JDBC drivers  need to use versions of JDK  =
  1.1.1
  or our server is 1.3.1 Is this absolutely necessary?

NO THAT'S NOT TRUE
I USE JDK 1.3.1 AND BOTH (CLAZZES111.ZIP AND CLASSES12.ZIP) WORKS FINE.

 
  Thanks a lot.
 
U R WELCOME
 



--- Mike [EMAIL PROTECTED] wrote:
  Hi everyone. I have some newbie questions.
 
  I use Tomcat 3.2.3 /Linux and Oracle 8i /Windows NT
  I would like to know how should I specify JDBC drivers (classpath,
  their
  location).
 
  I read also that Oracle JDBC drivers  need to use versions of JDK  =
  1.1.1
  or our server is 1.3.1 Is this absolutely necessary?
 
  Thanks a lot.
 
 
 
 
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Buy the perfect holiday gifts at Yahoo! Shopping.
http://shopping.yahoo.com

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



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


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




RE: Apache Tomcat 4.0.1

2001-12-04 Thread Andy Zeneski


Can you not use mod_jk with Tomcat 4.0.1?

-Original Message-
From: Denny Chambers [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 12:16 PM
To: Tomcat Users List
Subject: Re: Apache  Tomcat 4.0.1


For Tomcat 4.0 you need mod_webapp.so

Markus Baertschi wrote:

 Hello,

 I've got an application, actually running on a standalone tomcat 3.2.4
server
 which I want to put in production with tomcat 4.0.1 and apache 1.3.22. I
am on
 AIX 4.3 and use the IBM binary apache distribution ('IBM http server').

 I've studied the tomcat-apache howto and concluded I need mod_jk. My
apache binary
 has DSO and I think it has EAPI as well (it supports ssl). But further-on
it looks
 like the HOWTO is (no longer ?) correct:

 The howto states that mod_jk sources are found in the binary distribution
of tomcat
 in $TOMCAT_HOME/native/mod_jk/apache1.3. but in the tomcat 4.0.1
distributions
 (bin  source) there is no mod_jk.

 - Should I just take the mod_jk which came with tomcat 3.2.4 ?
 - Is there a better solution for tomcat 4.0.1 and apache 1.3.x ?
 - Who should I contact to update the HOWTO ?

 Thanks  Markus

 --
   Markus Baertschi Phone: ++41 (21) 807 1677
   Bas du Rossé 12  Fax  : ++41 (21) 807 1678
   CH-1163, EtoyEmail: [EMAIL PROTECTED]
   Switzerland  Homepage: www.markus.org

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

--
Denny Chambers
Quantum Corporation, Inc.
Network Attached Storage Division
Java Linux Engineer
Phone: 334-478-5730
IM: [EMAIL PROTECTED]


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




Re: Apache Tomcat 4.0.1

2001-12-04 Thread Denny Chambers

I don't think so. When I made the switch from TC 3 to TC 4, everthing
that I read at the time, pointed me to the Web Apps module. I could be
wrong.

Andy Zeneski wrote:
 
 Can you not use mod_jk with Tomcat 4.0.1?
 
 -Original Message-
 From: Denny Chambers [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 04, 2001 12:16 PM
 To: Tomcat Users List
 Subject: Re: Apache  Tomcat 4.0.1
 
 For Tomcat 4.0 you need mod_webapp.so
 
 Markus Baertschi wrote:
 
  Hello,
 
  I've got an application, actually running on a standalone tomcat 3.2.4
 server
  which I want to put in production with tomcat 4.0.1 and apache 1.3.22. I
 am on
  AIX 4.3 and use the IBM binary apache distribution ('IBM http server').
 
  I've studied the tomcat-apache howto and concluded I need mod_jk. My
 apache binary
  has DSO and I think it has EAPI as well (it supports ssl). But further-on
 it looks
  like the HOWTO is (no longer ?) correct:
 
  The howto states that mod_jk sources are found in the binary distribution
 of tomcat
  in $TOMCAT_HOME/native/mod_jk/apache1.3. but in the tomcat 4.0.1
 distributions
  (bin  source) there is no mod_jk.
 
  - Should I just take the mod_jk which came with tomcat 3.2.4 ?
  - Is there a better solution for tomcat 4.0.1 and apache 1.3.x ?
  - Who should I contact to update the HOWTO ?
 
  Thanks  Markus
 
  --
Markus Baertschi Phone: ++41 (21) 807 1677
Bas du Rossé 12  Fax  : ++41 (21) 807 1678
CH-1163, EtoyEmail: [EMAIL PROTECTED]
Switzerland  Homepage: www.markus.org
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 
 --
 Denny Chambers
 Quantum Corporation, Inc.
 Network Attached Storage Division
 Java Linux Engineer
 Phone: 334-478-5730
 IM: [EMAIL PROTECTED]
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

-- 
Denny Chambers
Quantum Corporation, Inc.
Network Attached Storage Division
Java Linux Engineer
Phone: 334-478-5730
IM: [EMAIL PROTECTED]

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




Re: Apache Tomcat 4.0.1

2001-12-04 Thread David Smith

Yes, mod_jk does work with TC 4.0.1.  I would download the binary for TC 3.3 
and use the mod_jk in that dist.  The docs that come with TC 3.3 don't really 
apply to TC 4.0.1 though.  Instead, check the server.xml in TC 4.0.1 for 
instructions around the entry for the AJP 13 connector.  The Apache 
httpd.conf directives are the same though.

--David

On Tuesday 04 December 2001 12:45 pm, you wrote:
 Can you not use mod_jk with Tomcat 4.0.1?

 -Original Message-
 From: Denny Chambers [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 04, 2001 12:16 PM
 To: Tomcat Users List
 Subject: Re: Apache  Tomcat 4.0.1


 For Tomcat 4.0 you need mod_webapp.so

 Markus Baertschi wrote:
  Hello,
 
  I've got an application, actually running on a standalone tomcat 3.2.4

 server

  which I want to put in production with tomcat 4.0.1 and apache 1.3.22. I

 am on

  AIX 4.3 and use the IBM binary apache distribution ('IBM http server').
 
  I've studied the tomcat-apache howto and concluded I need mod_jk. My

 apache binary

  has DSO and I think it has EAPI as well (it supports ssl). But further-on

 it looks

  like the HOWTO is (no longer ?) correct:
 
  The howto states that mod_jk sources are found in the binary distribution

 of tomcat

  in $TOMCAT_HOME/native/mod_jk/apache1.3. but in the tomcat 4.0.1

 distributions

  (bin  source) there is no mod_jk.
 
  - Should I just take the mod_jk which came with tomcat 3.2.4 ?
  - Is there a better solution for tomcat 4.0.1 and apache 1.3.x ?
  - Who should I contact to update the HOWTO ?
 
  Thanks  Markus
 
  --
Markus Baertschi Phone: ++41 (21) 807 1677
Bas du Rossé 12  Fax  : ++41 (21) 807 1678
CH-1163, EtoyEmail: [EMAIL PROTECTED]
Switzerland  Homepage: www.markus.org
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]

 --
 Denny Chambers
 Quantum Corporation, Inc.
 Network Attached Storage Division
 Java Linux Engineer
 Phone: 334-478-5730
 IM: [EMAIL PROTECTED]


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


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




RE: Integration of Apache and Tomcat 4.0.1

2001-12-04 Thread Kemp Randy-W18971

Look at www.webmasterbase.com/article/305

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 12:10 PM
To: [EMAIL PROTECTED]
Subject: Integration of Apache and Tomcat 4.0.1


Hello everyone,

Is there any documentation on the integration of Tomcat 4.0.1 
and Apache 1.3.xx yet?

Thank you,
-Steve



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




Re: Apache Tomcat 4.0.1

2001-12-04 Thread Denny Chambers

Thanks! This is good to know. One thing to consider, is the the web_apps
module uses the the warp connector, which is suppose to have better
performance. I have not done any benchmarking, or read about any. I just
going off of the documentation that I have read.

David Smith wrote:
 
 Yes, mod_jk does work with TC 4.0.1.  I would download the binary for TC 3.3
 and use the mod_jk in that dist.  The docs that come with TC 3.3 don't really
 apply to TC 4.0.1 though.  Instead, check the server.xml in TC 4.0.1 for
 instructions around the entry for the AJP 13 connector.  The Apache
 httpd.conf directives are the same though.
 
 --David
 
 On Tuesday 04 December 2001 12:45 pm, you wrote:
  Can you not use mod_jk with Tomcat 4.0.1?
 
  -Original Message-
  From: Denny Chambers [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, December 04, 2001 12:16 PM
  To: Tomcat Users List
  Subject: Re: Apache  Tomcat 4.0.1
 
 
  For Tomcat 4.0 you need mod_webapp.so
 
  Markus Baertschi wrote:
   Hello,
  
   I've got an application, actually running on a standalone tomcat 3.2.4
 
  server
 
   which I want to put in production with tomcat 4.0.1 and apache 1.3.22. I
 
  am on
 
   AIX 4.3 and use the IBM binary apache distribution ('IBM http server').
  
   I've studied the tomcat-apache howto and concluded I need mod_jk. My
 
  apache binary
 
   has DSO and I think it has EAPI as well (it supports ssl). But further-on
 
  it looks
 
   like the HOWTO is (no longer ?) correct:
  
   The howto states that mod_jk sources are found in the binary distribution
 
  of tomcat
 
   in $TOMCAT_HOME/native/mod_jk/apache1.3. but in the tomcat 4.0.1
 
  distributions
 
   (bin  source) there is no mod_jk.
  
   - Should I just take the mod_jk which came with tomcat 3.2.4 ?
   - Is there a better solution for tomcat 4.0.1 and apache 1.3.x ?
   - Who should I contact to update the HOWTO ?
  
   Thanks  Markus
  
   --
 Markus Baertschi Phone: ++41 (21) 807 1677
 Bas du Rossé 12  Fax  : ++41 (21) 807 1678
 CH-1163, EtoyEmail: [EMAIL PROTECTED]
 Switzerland  Homepage: www.markus.org
  
   --
   To unsubscribe:   mailto:[EMAIL PROTECTED]
   For additional commands: mailto:[EMAIL PROTECTED]
   Troubles with the list: mailto:[EMAIL PROTECTED]
 
  --
  Denny Chambers
  Quantum Corporation, Inc.
  Network Attached Storage Division
  Java Linux Engineer
  Phone: 334-478-5730
  IM: [EMAIL PROTECTED]
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

-- 
Denny Chambers
Quantum Corporation, Inc.
Network Attached Storage Division
Java Linux Engineer
Phone: 334-478-5730
IM: [EMAIL PROTECTED]

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




Re: Tomcat 3.3, server.xml and a lot of fun

2001-12-04 Thread August Detlefsen

We KNOW the docs are tough to understand! That's why it is so important
to be on this list! (And to be nice so you get some answers back
besides flames)


--- Nikola Milutinovic [EMAIL PROTECTED] wrote:
  You know what ? Even though -java programmer- sounds rude, I must
 admit that all
  his points are right
 
 Some of them...
 
  Apache's docs is just slightly better than Tomcat's, but since its
 structure is
  not so complicated,
 
 True (Budwiser TM), and it is better documented.
 
  Apache is easier to learn.  Browsing through Tomcat's docs gets you
 nowhere.
  *sigh*
 
 It looks more like an incomplete pile, than a documentation. I know,
 we can contribute if we want to make things better. The trouble is,
 I don't have the time. I'm spending so much time fighting ghosts +
 developing an application, that I simply cannot manage to write down
 what I've discovered so far.
 
  Its configuration is somewhat confusing. I mean.. what is a
 webapps?
 
 You mean a context? Ha, we have a problem, right here.
 
  It would help if there is a simple tutorial to create one.
 
 I second that. And, NO, I cannot write one, because I haven't got all
 the clues in, yet. At the moment, I have two points of trouble:
 
 - connecting Apache+mod_webapp to a Tomcat with virtual hosts on
 another machine
 - whether or not I should have virtual hosts inside Warp Connector in
 server.xml
 
 Anyone care to make a donation?
 
  And I havent solve this mod_webapp thing... :(
 
 I'm still bugging with it, myself. A really good tutorial or at least
 a set of guidelines of what to do and what to avoid would be
 appreciated.
 
 Nix.
 


__
Do You Yahoo!?
Buy the perfect holiday gifts at Yahoo! Shopping.
http://shopping.yahoo.com

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




RE: Exception using Tomcat4.0 Manager

2001-12-04 Thread Cox, Charlie

I received this error when I didn't have the manager context defined in the
virtual host that I was trying to use to connect to it. I did have it
defined for another virtual host, but it needed to be defined for each vh
where I was using it.

One thing that I have noticed that is not in the documentation is that
manager commands  apply to the current virtual host, not to all instances of
the 'path'. So in cases where you share the same context for different
virtual hosts with the same path, each needs to be reloaded(start/stop/etc)
from its own virtual host. 

I think this is important and should be clarified in the documentation as it
just appeared to me that the manager was not working(context was not
reloading) when actually I was using manager from one virtual host(what I
consider my primary vh) and trying to load a page from the other. After
playing around with it, I finally figured out what was going on.

yes, I realize now that the manager/list does say 'listed app for virtual
host xxx',but to me at first glance I just thought it was listing the
contexts for any virtual host as I hadn't at that time turned off the
auto-loading of contexts in my webapps directory. 

And it does make sense once you think about it...but I guess for some reason
I think of 'manager' as a tomcat-level admin tool, not a virtual host-level
context providing admin features.

Charlie

 -Original Message-
 From: Mark Saltzman [mailto:[EMAIL PROTECTED]]
 Sent: Monday, December 03, 2001 10:01 AM
 To: 'Craig R. McClanahan '; 'Tomcat Users List '
 Subject: RE: Exception using Tomcat4.0 Manager
 
 
  Craig,
Thanks for the reply. The servlet.jar file was in the jre/lib/ext
 directory! I took it out and restarted tomcat, but came up 
 with the same
 problem. I also did a find on servlet.jar in TOMCAT_HOME and 
 found only the
 one instance in common/lib. I reset my CLASSPATH (which 
 should not make a
 difference, but I did it anyway) and restarted tomcat - same message.
 
   Any other suggestions would be appreciated.
 
 mss
 
 -Original Message-
 From: Craig R. McClanahan
 To: Tomcat Users List
 Sent: 12/2/01 7:55 PM
 Subject: Re: Exception using Tomcat4.0 Manager
 
 99% of the cases of this exception that I have seen are 
 caused by having
 a
 copy of servlet.jar in the Java system extensions directory
 ($JAVA_HOME/jre/lib/ext).  You should not have it there.
 
 Craig
 
 
 On Fri, 30 Nov 2001, Mark Saltzman wrote:
 
  Date: Fri, 30 Nov 2001 15:21:42 -0500
  From: Mark Saltzman [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED]
  To: '[EMAIL PROTECTED]'
 [EMAIL PROTECTED]
  Subject: Exception using Tomcat4.0 Manager
 
  I am using Tomcat4.0 on solaris and want to stop and start my
  application via the manager application. I put a new manager role
 entry in
  my tomcat-users.xml file and went to the following url to test the
 basic
  list command:
 
  http://zebra2:8081/manager/list
 
  I get back an Internal Server error:
  
  javax.servlet.ServletException: Error allocating a servlet instance
  .
  .
  .
 
  root cause
 
  java.lang.SecurityException: Servlet of class
  org.apache.catalina.servlets.ManagerServlet is privileged and cannot
 be
  loaded by this web application
  
 
  What do I need to do to get this working?
 
  Mark Saltzman
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

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




RE: Split Thread with 2 browsers

2001-12-04 Thread Conor . Power

You should be able to implement this functionality using URL rewriting where
the session identifier is stored on the query string rather than as a cookie
in the browser.

In this way once the user opens a new window and logs in again you can
create a new session in the second browser.

Conor.

-Original Message-
From: John Regan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 9:08 AM
To: Tomcat User Group (E-mail)
Subject: Split Thread with 2 browsers



Desired functionality:
User opens browser, clicks through several pages as a certain user type
then opens a second browser because they want to be a different user type.
The user should be able to proceed in either browser without session
information being overwritten in the other browser's session.  

Has anyone implemented any similar functionality?

Note: using tomcat 4.x as http server and JSP container.


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




Session management and multiple Tomcat Apache instances

2001-12-04 Thread Dom

Hi

I'd like to know how can I manage sessions (HttpSession) of multiple users
in an as possible simple way, if I use multiple Tomcat and Apache instances
on multiple servers, using Apache and Tomcat load balancers workers, in a
SSO like configuration ?

Dom



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




Re: jsp precompilation

2001-12-04 Thread Denis Balazuc

You might want to look at a mixture between JSPC (Tomcat) and Ant

I'm searching a script ( bash-unix and/or bat-windows )
You should then use Ant and create Ant tasks that you need (if you need to
write some...)


that would :

- generate java files from jsp
 - compile generated java files
use JSPC (why not within Ant ? I don't remember if JSPC has a task on its
own but you can write one if it does not, or use a simple shell-command
task)

 - compile servlet java files
Use Ant and the JDK you're working with

- create the .war

Definitely, you should use Ant ;-)

http://jakarta.apache.org/ant

Cheers
Denis



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




Re: Character Encoding problems

2001-12-04 Thread Ivo Panacek

 response.setContentType(text/html; charset=ISO-8859-2);
 
 So, no trouble there. How do I get a (Unicode) string to convert to a ISO-8859-2 
encoded byte stream? Because, eventually, that is what the browser should get. I 
cannot use the method from above, since JspWriter doesn't accept byte[] as an 
argument.

Java does it for you. If you retrieve output stream AFTER setting content type
with out = pageContext.getOut(); you write to out in UNICODE and output
is in ISO-8859-2.

ivo
-- 
E-mail: [EMAIL PROTECTED], [EMAIL PROTECTED]
WWW:http://ivop.regionet.cz
Mobile: +420 602 337776


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




About Tomcat error.

2001-12-04 Thread Chencf

Dear Sir,

I have installed Tomcat 3.3 and want to integrate into my IIS. My OS is Win2k SP2 
with IIS5.0. But after I follow the instruction of Tomcat IIS Howto article, I can 
not browse any page and find the Default Web Site stopped. The default web site is 
using port 80 and there is always warning Address already in use when I start the 
default web site.
The below error message is show in browser when I click 
http://localhost/examples/jsp/index.html. I hope your any idea and suggestions. Thanks 
in advance.

Browser Error

Your Browser sent a malformed request. You may need to configure your browser to use 
proxies, or you may need to change the port that your webserver is using. 

Yours, Jackie.




Problem with accessing https URLs from within Tomcat

2001-12-04 Thread Kirby Vandivort

I apologize for sending this from my yahoo account.
This is the third time I've tried to send this message
in the past 26 or so hours and this time I thought I
would try a different email account.


Hello,

I am using tomcat 4.0.1, jsse 1.0.2, java 1.3.. 
That's the important
version numbers I can think of..

I am trying to access https URLs from within a
tomcat servlet and am
not having any luck.

I am NOT trying to access tomcat via https.  I am
trying to make a URL
connection from a servlet to a https URL.

Now that I have that clear...

I have recently started using Tomcat and was
previously using JServ.
The exact same code worked beautifully under JServ. 
When I switched to
tomcat it quit working.

Some debugging help...
 
My code reads:

// set ourselves up to handle ssl
java.security.Security.addProvider(
 new
com.sun.net.ssl.internal.ssl.Provider());
System.setProperty(java.protocol.handler.pkgs,
com.sun.net.ssl.internal.www.protocol);
 
I am putting the 3 jsse jar files in the lib
directory under 
webapps/../web-inf.


It fails by telling me that I have a malformed URL
when I try to create
a URL object with a https prefix.

IF I remove the 3 jar files I start getting class
not found exceptions,
so it is finding the jar files.

IF I run with the java 1.4 beta it works.  So it is
something about having
to manually insert jsse.

IF I set the JSSE_HOME variable (which causes the
jar files to be put in
the classpath for tomcat itself) I get past the
malformed URL lines.  I
then start getting 
 
java.net.SocketException: SSL implementation not
available
at
javax.net.ssl.DefaultSSLSocketFactory.createSocket([DashoPro-V1.2-120
at
com.sun.net.ssl.internal.www.protocol.https.HttpsClient.doConnect([Da
at
com.sun.net.ssl.internal.www.protocol.https.NetworkClient.openServer(
at
com.sun.net.ssl.internal.www.protocol.https.HttpClient.l([DashoPro-V1
at
com.sun.net.ssl.internal.www.protocol.https.HttpClient.init([DashoP
at
com.sun.net.ssl.internal.www.protocol.https.HttpsClient.init([Dasho
at
com.sun.net.ssl.internal.www.protocol.https.HttpsClient.a([DashoPro-V
at
com.sun.net.ssl.internal.www.protocol.https.HttpsClient.a([DashoPro-V
at
com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnection.connec
at
com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnection.getOut
at
TB.collab.db.EventServerConnection.makeConnection(EventServerConnecti
 
this exception.  Which tells me again that I think
I'm getting some
sort of collision between the code that tomcat has
set up to allow
accesses via https and what I'm doing.

If I set JSSE_HOME and have the jsse debugging
turned on, I sometimes
get:

default context init failed: 
   java.security.PrivilegedActionException 
   java.security.NoSuchAlgorithmException: 
 Class
com.sun.net.ssl.internal.ssl.KeyManagerFactoryImpl 
 configured for KeyManagerFactory not a
KeyManagerFactory
 
Let's see.. what else have I tried..  This happens to
be on redhat 7.2,
though I don't think that makes a difference.

It doesn't seem to make a difference if I put the
jsse jar files in
$JAVA_HOME/lib/ext.


I'm at a loss.  The code worked well under jserv
(and still works if I
run it using JServ); it doesn't work under tomcat. 
Any help would be
appreciated.

Thanks,

-- 

Kirby Vandivort  Theoretical
Biophysics Group
Email: [EMAIL PROTECTED]  3051 Beckman
Institute
http://www.ks.uiuc.edu/~kvandivo/University of
Illinois
Phone: (217) 244-5711405 N. Mathews
Ave
Fax  : (217) 244-6078Urbana, IL 
61801, USA


__
Do You Yahoo!?
Buy the perfect holiday gifts at Yahoo! Shopping.
http://shopping.yahoo.com

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




Re: Apache Tomcat 4.0.1

2001-12-04 Thread Brian Baxter

Actually, you can use mod_jk with Tomcat4.0.1 -- it was Tomcat v4.0 which
did not support mod_jk. What you do need to watch is whether you are
attaching Apache to an ajp12 or an apj13 connector. The preferred method is
mod_webapp of course. In any event you can get the latest sources for
either connector from the CVS tree.


At 11:16 AM 12/4/2001 -0600, you wrote:
For Tomcat 4.0 you need mod_webapp.so

Markus Baertschi wrote:
 
 Hello,
 
 I've got an application, actually running on a standalone tomcat 3.2.4
server
 which I want to put in production with tomcat 4.0.1 and apache 1.3.22. I
am on
 AIX 4.3 and use the IBM binary apache distribution ('IBM http server').
 
 I've studied the tomcat-apache howto and concluded I need mod_jk. My
apache binary
 has DSO and I think it has EAPI as well (it supports ssl). But
further-on it looks
 like the HOWTO is (no longer ?) correct:
 
 The howto states that mod_jk sources are found in the binary
distribution of tomcat
 in $TOMCAT_HOME/native/mod_jk/apache1.3. but in the tomcat 4.0.1
distributions
 (bin  source) there is no mod_jk.
 
 - Should I just take the mod_jk which came with tomcat 3.2.4 ?
 - Is there a better solution for tomcat 4.0.1 and apache 1.3.x ?
 - Who should I contact to update the HOWTO ?
 
 Thanks  Markus
 
 --
   Markus Baertschi Phone: ++41 (21) 807 1677
   Bas du Rossé 12  Fax  : ++41 (21) 807 1678
   CH-1163, EtoyEmail: [EMAIL PROTECTED]
   Switzerland  Homepage: www.markus.org
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

-- 
Denny Chambers
Quantum Corporation, Inc.
Network Attached Storage Division
Java Linux Engineer
Phone: 334-478-5730
IM: [EMAIL PROTECTED]

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

___
tomcat-users mailing list
[EMAIL PROTECTED]
https://mailman.real-time.com/mailman/listinfo/tomcat-users




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




Re: Help : Use Oracle 8i JDBC driver

2001-12-04 Thread Denis Balazuc

Aside from the fact that my ears are ringing because you're shouting, I do
not agree with the recommendations you provide...
Moreover, the question was aimed to Tomcat 3.2.3

Crippling the CLASSPATH with custom entries, as well as filling the
JRE/lib/ext directory does not sounds like a good idea.
It does not help when it is time to write install scripts and gather all the
librairies you are using to bundle an application, or a web-application, and
to deploy it.

The JDBC drivers, as all Jar files you are using (remember that ZIP files
can be renamed to JAR ! and you need to do this), should definitely sit in
the WEB-INF/lib directory, unless you want to share it among all web-apps,
in which case, the best place is probably TOMCAT_HOME/lib.

Tomcat 4.x has a better model for handling Jars and stuff, but as we're
dealing with Tomca 3.2.x, that's probably how you should do it
You can customize Tomcat 3.2.x startup scripts and modify the internal
classpath, but you should avoid setting anything in your environment
variable

Anyway, check the archives, this topic has already been discussed a lot I
think

Cheers
Denis


- Original Message -
From: Siomara Pantarotto [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Tuesday, December 04, 2001 12:17 PM
Subject: Re: Help : Use Oracle 8i JDBC driver



 --- Mike [EMAIL PROTECTED] wrote:
   Hi everyone. I have some newbie questions.
  
   I use Tomcat 3.2.3 /Linux and Oracle 8i /Windows NT
   I would like to know how should I specify JDBC drivers (classpath,
   their
   location).

 DOWNLOAD CLASSES111.ZIP OR CLASSES12.ZIP FROM ORACLE AND YOU CAN STORED IT
 ANYWHERE IN YOUR MACHINE AND SPECIFY IT IN YOUR CLASS PATH (EX:
 C:\FOLDER1\FOLDER2\CLASSES111.ZIP) OR YOU CAN STORE IT UNDER TOMCAT
 AT JRE\LIB\EXT (THE RIGHT PLACE FOR EXTERNAL CLASSES). NOTE THAT THIS LAST
 APPROACH IS GOOD, AND IT IS A MUST WITH TOMCAT 4 THAT DOES NOT RECOGNIZES
 THE CLASSPATH.

  
   I read also that Oracle JDBC drivers  need to use versions of JDK  =
   1.1.1
   or our server is 1.3.1 Is this absolutely necessary?

 NO THAT'S NOT TRUE
 I USE JDK 1.3.1 AND BOTH (CLAZZES111.ZIP AND CLASSES12.ZIP) WORKS FINE.

  
   Thanks a lot.
  
 U R WELCOME
  

 
 
 --- Mike [EMAIL PROTECTED] wrote:
   Hi everyone. I have some newbie questions.
  
   I use Tomcat 3.2.3 /Linux and Oracle 8i /Windows NT
   I would like to know how should I specify JDBC drivers (classpath,
   their
   location).
  
   I read also that Oracle JDBC drivers  need to use versions of JDK  =
   1.1.1
   or our server is 1.3.1 Is this absolutely necessary?
  
   Thanks a lot.
  
  
  
  
  
  
   --
   To unsubscribe:   mailto:[EMAIL PROTECTED]
   For additional commands: mailto:[EMAIL PROTECTED]
   Troubles with the list: mailto:[EMAIL PROTECTED]
  
 
 
 __
 Do You Yahoo!?
 Buy the perfect holiday gifts at Yahoo! Shopping.
 http://shopping.yahoo.com
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


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


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



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




Need help on Session's null pointer exception

2001-12-04 Thread bill . zhao

I run a servlet on Tomcat3.3 and got the following error:

java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:380)
at org.apache.tomcat.core.ServerSession.setAttribute(Unknown =
Source)
at =
org.apache.tomcat.facade.HttpSessionFacade.setAttribute(Unknown Sourc
e)
at org.apache.tomcat.facade.HttpSessionFacade.putValue(Unknown =
Source)
at =
com.fub.its.servlet.SecuredServlet.setCurrentEmployee(SecuredServlet.
java:162)
at =
com.fub.its.controller.DepartmentController.checkForSwitchToDepartmen
t(DepartmentController.java:47)
at =
com.fub.its.controller.DepartmentController.doGet(DepartmentControlle
r.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at =
com.fub.its.servlet.ApplicationServlet.service(ApplicationServlet.jav
a:160)
at =
com.fub.its.servlet.SecuredServlet.service(SecuredServlet.java:129)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(Unknown =
Source)
at org.apache.tomcat.core.Handler.invoke(Unknown Source)
at org.apache.tomcat.core.Handler.service(Unknown Source)
at org.apache.tomcat.facade.ServletHandler.service(Unknown =
Source)
at org.apache.tomcat.core.ContextManager.internalService(Unknown =
Source)

at org.apache.tomcat.core.ContextManager.service(Unknown Source)
at =
org.apache.tomcat.modules.server.Http10Interceptor.processConnection(
Unknown Source)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown =
Source)
at =
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown
 Source)
at java.lang.Thread.run(Thread.java:484)
--End of System Error---



Can anyone kindly tell me what is wrong with my setting?  I changed the
expiration time for session in server.xml
and I am sure the SessionIdGenerator is set too.


Bill


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




Re: How to prevent access to the content of a folder?

2001-12-04 Thread Denis Balazuc

Set the suppress=true  ! false value in server.xml..
It should do the job for Tomcat 3.2.x

- Original Message - 
From: August Detlefsen [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, December 03, 2001 03:55 PM
Subject: Re: How to prevent access to the content of a folder?


 Simple solution: 
 Put an index.html file in your images directory -it will be displayed
 instead of the directory listing.
 
 More complex solution:
 In your httpd.conf file look for the Directory section (there may be
 more than 1). You will probably find a line like this: 
 
 Options Indexes FollowSymLinks MultiViews
 
 Remove 'Indexes' from the options list (save, restart Apache) and
 directory indexes should be disabled. 
 
 -August
 
 
 --- Pedro F Gaspar [EMAIL PROTECTED] wrote:
  Hi.
  
  Imagine I have a webapp, say app1, under %TOMCAT_HOME%\webapps, and
  under
  app1 I have a directory named 'images' where I put all the images my
  pages
  need.
  
  If I direct the browser to http://localhost:8080/app1/images I'll
  have access to the contents of this directory.
  Is there a way to prevent this from happenning?
  
  I've tried to put the images directory under 'web-inf' but then I
  couldn't reference the images files inside the servlets anymore.
  
  Thanks in advance.
  
  Pedro
  
  ***
  Pedro Gaspar
  PT Prime
  DMK / GSV
  Tel:  +351 21 500 41 43
  Fax: +351 21 500 45 85
  Email: [EMAIL PROTECTED]
  ***
  
  
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
  
 
 
 __
 Do You Yahoo!?
 Buy the perfect holiday gifts at Yahoo! Shopping.
 http://shopping.yahoo.com
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


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




RE: Need help on Session's null pointer exception

2001-12-04 Thread Sobeck, James (ISS Atlanta)

I think i got that error once when i tried to put a null Object into
session. do something like

if (Object != null){
session.putValue(key, Object);
}

-hope that helps, 

Jimmy
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 2:26 PM
To: [EMAIL PROTECTED]
Subject: Need help on Session's null pointer exception


I run a servlet on Tomcat3.3 and got the following error:

java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:380)
at org.apache.tomcat.core.ServerSession.setAttribute(Unknown =
Source)
at =
org.apache.tomcat.facade.HttpSessionFacade.setAttribute(Unknown Sourc
e)
at org.apache.tomcat.facade.HttpSessionFacade.putValue(Unknown =
Source)
at =
com.fub.its.servlet.SecuredServlet.setCurrentEmployee(SecuredServlet.
java:162)
at =
com.fub.its.controller.DepartmentController.checkForSwitchToDepartmen
t(DepartmentController.java:47)
at =
com.fub.its.controller.DepartmentController.doGet(DepartmentControlle
r.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at =
com.fub.its.servlet.ApplicationServlet.service(ApplicationServlet.jav
a:160)
at =
com.fub.its.servlet.SecuredServlet.service(SecuredServlet.java:129)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(Unknown =
Source)
at org.apache.tomcat.core.Handler.invoke(Unknown Source)
at org.apache.tomcat.core.Handler.service(Unknown Source)
at org.apache.tomcat.facade.ServletHandler.service(Unknown =
Source)
at org.apache.tomcat.core.ContextManager.internalService(Unknown =
Source)

at org.apache.tomcat.core.ContextManager.service(Unknown Source)
at =
org.apache.tomcat.modules.server.Http10Interceptor.processConnection(
Unknown Source)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown =
Source)
at =
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown
 Source)
at java.lang.Thread.run(Thread.java:484)
--End of System Error---



Can anyone kindly tell me what is wrong with my setting?  I changed the
expiration time for session in server.xml
and I am sure the SessionIdGenerator is set too.


Bill


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

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




How do I redirect to mod_webapp URL?

2001-12-04 Thread Scott Merritt

I set up my app with mod_webapp and things are finally stable and working...
The one thing I dislike is I'm using a meta refresh on HTML in the doc root
that sends them to:

http://mydomain.com/myapp/servlet/myapp

Is there a way so when they just hit http://mydomain.com it automatically
goes through to this other URL?  I've messed around with mod_rewrite but I
usually end up breaking things.  I'm guessing there's probably something
simple that I don't know about.

Thanks!

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




Changing the servler directory....

2001-12-04 Thread Scott Jeppesen

When you install Tomcat the default servlet directory is under the
examples directoryhow do I change which directory I'm storing my
servlets in?

-SJ


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




Re: Need help on Session's null pointer exception

2001-12-04 Thread Denis Balazuc

Hi

You are simply trying to set a null value in a session, which is
forbidden.something like session.setAttribute(HelloWorld, null);

I'm not sure this behaviour is specified in JSP specs though
it's more because a Hashtable is used as the Map to store key=value session
attributes within Tomcat.


 I run a servlet on Tomcat3.3 and got the following error:

 java.lang.NullPointerException
 at java.util.Hashtable.put(Hashtable.java:380)
 at org.apache.tomcat.core.ServerSession.setAttribute(Unknown =
 Source)
 Can anyone kindly tell me what is wrong with my setting?  I changed the
 expiration time for session in server.xml
 and I am sure the SessionIdGenerator is set too.


 Bill


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



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




Virus Warning

2001-12-04 Thread John M. Corro

I wanted to give everyone a heads up on a virus that made it's way on to one
of the other mail lists.  The virus has the following format:
--
How are you ?
When I saw this screen saver, I immediately thought about you
I am in a harry, I promise you will love it!
--

the attachmed virus is 'gone.scr'.  The virus is documented on the main page
at www.antivirus.com


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




HTTP method POST is not supported by this URL

2001-12-04 Thread Endle, Cory

Can anyone help me with this one? 

I am running a simple servlet that that has a form that does a post.  When
the form is submitted, I get the error
message HTTP method POST is not supported by this URL

Do I need something in my web.xml file?  My web.xml file just defines the
servlet and does some simple servlet mapping.

Thanks!

Cory Endle
Seagate/XIOtech
E-mail: [EMAIL PROTECTED]


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

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




RE: About Tomcat error.

2001-12-04 Thread Larry Isaacs

If starting the Default Web Site from the management
console says Address already in use for port 80, you
need find out what program is already using port 80 and
shut it down or switch it to a different port.

You can still test the Tomcat side of the IIS+Tomcat
combination by starting Tomcat 3.3 and testing it directly,
i.e.: http://localhost:8080/examples/jsp/index.html

If you aren't getting proper operation accessing
Tomcat directly, you won't get any better behavior
accessing it through IIS.

Cheers,
Larry

 -Original Message-
 From: Chencf [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 04, 2001 12:46 PM
 To: [EMAIL PROTECTED]
 Subject: About Tomcat error.
 
 
 Dear Sir,
 
 I have installed Tomcat 3.3 and want to integrate into my 
 IIS. My OS is Win2k SP2 with IIS5.0. But after I follow the 
 instruction of Tomcat IIS Howto article, I can not browse 
 any page and find the Default Web Site stopped. The default 
 web site is using port 80 and there is always warning 
 Address already in use when I start the default web site.
 The below error message is show in browser when I click 
 http://localhost/examples/jsp/index.html. I hope your any 
 idea and suggestions. Thanks in advance.
 
 Browser Error
 
 Your Browser sent a malformed request. You may need to 
 configure your browser to use proxies, or you may need to 
 change the port that your webserver is using. 
 
 Yours, Jackie.
 
 

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




RE: Split Thread with 2 browsers

2001-12-04 Thread John Regan

thank you Conor for the quick response.

this works if the second browser is launched from the desktop but if the
second browser is launched using Ctrl+N from the first browser both browsers
share the same session.  is there any way around this?  

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 10:50 AM
To: [EMAIL PROTECTED]
Subject: RE: Split Thread with 2 browsers


You should be able to implement this functionality using URL rewriting where
the session identifier is stored on the query string rather than as a cookie
in the browser.

In this way once the user opens a new window and logs in again you can
create a new session in the second browser.

Conor.

-Original Message-
From: John Regan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 9:08 AM
To: Tomcat User Group (E-mail)
Subject: Split Thread with 2 browsers



Desired functionality:
User opens browser, clicks through several pages as a certain user type
then opens a second browser because they want to be a different user type.
The user should be able to proceed in either browser without session
information being overwritten in the other browser's session.  

Has anyone implemented any similar functionality?

Note: using tomcat 4.x as http server and JSP container.


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



RE: HTTP method POST is not supported by this URL

2001-12-04 Thread Larry Isaacs

If you POST to a servlet which extends HttpServlet and that
servlet doesn't override the doPost() method, the default
doPost() method outputs this error message.

Cheers,
Larry

 -Original Message-
 From: Endle, Cory [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 04, 2001 2:29 PM
 To: 'Tomcat Users List'
 Subject: HTTP method POST is not supported by this URL
 
 
 Can anyone help me with this one? 
 
 I am running a simple servlet that that has a form that does 
 a post.  When
 the form is submitted, I get the error
 message HTTP method POST is not supported by this URL
 
 Do I need something in my web.xml file?  My web.xml file just 
 defines the
 servlet and does some simple servlet mapping.
 
 Thanks!
 
 Cory Endle
 Seagate/XIOtech
 E-mail: [EMAIL PROTECTED]
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

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




Re: Need help on Session's null pointer exception

2001-12-04 Thread bill . zhao


Thank you for your reply, Denis.
I am sure the value I try to put  in a session is not null.  We used
Websphere and Tomcat 4.0.1 as our testing environment and the codes are
running OK.  Only when we tried to use Tomcat3.3 giving us this error
message.  We suspect either our setting in wrong or there is a bug in
Tomcat3.3.


Bill




Denis Balazuc [EMAIL PROTECTED] on 12/04/2001 02:38:37 PM

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:   Tomcat Users List [EMAIL PROTECTED]
cc:

Subject:  Re: Need help on Session's null pointer exception


Hi

You are simply trying to set a null value in a session, which is
forbidden.something like session.setAttribute(HelloWorld, null);

I'm not sure this behaviour is specified in JSP specs though
it's more because a Hashtable is used as the Map to store key=value session
attributes within Tomcat.


 I run a servlet on Tomcat3.3 and got the following error:

 java.lang.NullPointerException
 at java.util.Hashtable.put(Hashtable.java:380)
 at org.apache.tomcat.core.ServerSession.setAttribute(Unknown =
 Source)
 Can anyone kindly tell me what is wrong with my setting?  I changed the
 expiration time for session in server.xml
 and I am sure the SessionIdGenerator is set too.


 Bill


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



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








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




Re: Character Encoding problems

2001-12-04 Thread Nikola Milutinovic

Ivo Panacek wrote:

 response.setContentType(text/html; charset=ISO-8859-2);

 So, no trouble there. How do I get a (Unicode) string to convert to a 
 ISO-8859-2 encoded byte stream? Because, eventually, that is what the 
 browser should get. I cannot use the method from above, since 
 JspWriter doesn't accept byte[] as an argument.
 
 
 Java does it for you. If you retrieve output stream AFTER setting 
 content type
 with out = pageContext.getOut(); you write to out in UNICODE and output
 is in ISO-8859-2.

Hmmm, since I'm in a JSP page and not Servlet, this should be done 
automagically. When I run Jasper on the test.jsp file, this is what I get:

TEST.JSP

%@ page
   info=A test page
   contentType=text/html; charset=ISO-8859-2
%
%!
String testText;
%
%
testText = \uC5A0 \uC5A1 \uC486 \uC487 \uC48C \uC48D \uC490 \uC491 \uC5BD \uC5BE;
%
html
head
titleTest page/title
meta http-equiv=Content-Type content=text/html; charset=iso-8859-2
/head

body bgcolor=#FF text=#00
h1Test page for encoding issues/h1
pAnd this is generated: %= testText %/p
pAnd this is from a scriptlet: % out.write( testText.getBytes(LATIN2) ); %
pNix./p
/body
/html

TEST.JAVA
-

[SNIP]
response.setContentType(text/html; charset=ISO-8859-2);
pageContext = _jspxFactory.getPageContext(this, request, response,
 , true, 8192, true);

application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
[SNIP]

---

So, the out object IS obtained AFTER the content type has been set. Still, 
both %= testText % and the scriptlet produce the same result - ? instead of 
Latin-2 characters.

It might be the JVM issue and I'll look into the possible options for setting 
the default output encoding, tomorrow.

BTW, I'd say you're using LATIN-2, so how do browser go about it? I have tried 
to create a static HTML page with what I believe is Latin-2 text (I have the 
right keyboard mapping). The result is frustrating, all characters are there, 
except small s-caron and small z-caron (capitals are OK). Any idea?

Nix.


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




RE: HTTP method POST is not supported by this URL

2001-12-04 Thread Chad Alan Prey

Holy Smoke...I know this one...you need to have doGet call doPost like this:

public void doGet (HttpServletRequest req, HttpServletResponse res)
throws ServletException
{
doPost(req, res);
}

public void doPost (HttpServletRequest req, HttpServletResponse res)
throws ServletException
{
doPost(req, res);
}

pretty slick eh?

-Original Message-
From: Endle, Cory [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 11:29 AM
To: 'Tomcat Users List'
Subject: HTTP method POST is not supported by this URL


Can anyone help me with this one?

I am running a simple servlet that that has a form that does a post.  When
the form is submitted, I get the error
message HTTP method POST is not supported by this URL

Do I need something in my web.xml file?  My web.xml file just defines the
servlet and does some simple servlet mapping.

Thanks!

Cory Endle
Seagate/XIOtech
E-mail: [EMAIL PROTECTED]


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

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


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




Re: Character Encoding problems

2001-12-04 Thread Nikola Milutinovic

Marcin Jaskula wrote:

 
 I used to have similar problem.
 I'm using Tomcat 4.0 with PostgreSQL, DB encoding LATIN-2.
 I couldn't get proper characters from the page source, an input form (post
 method) and from the DB.
 I managed it by:
 1. The page with the input form MUST have encoding=iso-8859-2
 meta http-equiv=content-type content=text/html; charset=iso-8859-2
 2. The DB encoding LATIN-2
 3. In the source of the jsp page:
 %@ page
 contentType=text/html; charset=iso-8859-2
 
 %
 request.setCharacterEncoding(iso-8859-2); // just after %@page !! before
 you
  // read any
 argument from request
 
 and in the http headers:
 meta http-equiv=content-type content=text/html; charset=iso-8859-2
 // ^ it looks unnecessary but otherwise it doesn't work ???

Thanks.

Tomcat developers... any comment?

Nix.


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




RE: Need help on Session's null pointer exception

2001-12-04 Thread Larry Isaacs

The Servlet 2.2 spec states that neither the name or
object may be null.  This is the spec that Tomcat 3.3 is the
reference implementation for.

The Servlet 2.3 spec allows the object to be null, which is
the equivalent of calling removeAttribute().  This is why
the code works in Tomcat 4.0.1.

Cheers,
Larry

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 04, 2001 2:51 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Need help on Session's null pointer exception
 
 
 
 Thank you for your reply, Denis.
 I am sure the value I try to put  in a session is not null.  We used
 Websphere and Tomcat 4.0.1 as our testing environment and the 
 codes are
 running OK.  Only when we tried to use Tomcat3.3 giving us this error
 message.  We suspect either our setting in wrong or there is a bug in
 Tomcat3.3.
 
 
 Bill
 
 
 
 
 Denis Balazuc [EMAIL PROTECTED] on 12/04/2001 02:38:37 PM
 
 Please respond to Tomcat Users List [EMAIL PROTECTED]
 
 To:   Tomcat Users List [EMAIL PROTECTED]
 cc:
 
 Subject:  Re: Need help on Session's null pointer exception
 
 
 Hi
 
 You are simply trying to set a null value in a session, which is
 forbidden.something like session.setAttribute(HelloWorld, null);
 
 I'm not sure this behaviour is specified in JSP specs though
 it's more because a Hashtable is used as the Map to store 
 key=value session
 attributes within Tomcat.
 
 
  I run a servlet on Tomcat3.3 and got the following error:
 
  java.lang.NullPointerException
  at java.util.Hashtable.put(Hashtable.java:380)
  at 
 org.apache.tomcat.core.ServerSession.setAttribute(Unknown =
  Source)
  Can anyone kindly tell me what is wrong with my setting?  I 
 changed the
  expiration time for session in server.xml
  and I am sure the SessionIdGenerator is set too.
 
 
  Bill
 
 
  --
  To unsubscribe:   
 mailto:[EMAIL PROTECTED]
  For additional commands: 
 mailto:[EMAIL PROTECTED]
  Troubles with the list: 
 mailto:[EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 
 
 
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

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




Re: jsp precompilation

2001-12-04 Thread Nikola Milutinovic

Laurent Michenaud wrote:

 Hi,
 
 I'm searching a script ( bash-unix and/or bat-windows )
 that would :
 - generate java files from jsp


In Tomcat's ./bin dir there is jasper.sh, this is how you invoke it:

${CATALINA_HOME}/bin/jasper.sh jspc MyPage.jsp

This will produce MyPage.java


 - compile generated java files


javac -classpath ${CATALINA_HOME}/common/lib/servlet.jar MyPage.java


 - compile servlet java files


javac MyServlet.java


 - create the .war


mv MyPage.class ${MY_WEB_APP_HOME}/WEB-INF/classes/path/to/my/package/
jar cf MyWebApp.war ${MY_WEB_APP_HOME}

Or be advanced - make a build.xml for Ant and do it that way.




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




RE: Need help on Session's null pointer exception

2001-12-04 Thread Craig R. McClanahan



On Tue, 4 Dec 2001, Sobeck, James (ISS Atlanta) wrote:

 Date: Tue, 4 Dec 2001 14:35:00 -0500
 From: Sobeck, James (ISS Atlanta) [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Subject: RE: Need help on Session's null pointer exception

 I think i got that error once when i tried to put a null Object into
 session. do something like

 if (Object != null){
   session.putValue(key, Object);
 }


You should also note that in a Servlet 2.3 environment, calling:

  session.setAttribute(key, null);

is semantically equivalent to calling:

  session.removeAttribute(key);

The bottom line is that it's not legal to store null attributes -- and
this applies to request, session, and ServletContext attributes equally.

 -hope that helps,

 Jimmy

Craig


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




Re: HTTP method POST is not supported by this URL

2001-12-04 Thread Nikola Milutinovic

Endle, Cory wrote:

 Can anyone help me with this one? 
 
 I am running a simple servlet that that has a form that does a post.  When
 the form is submitted, I get the error
 message HTTP method POST is not supported by this URL
 
 Do I need something in my web.xml file?  My web.xml file just defines the
 servlet and does some simple servlet mapping.

Nope. Just define a servlet and the URL mapping to it, like this:

servlet
   servlet-namePartManager/servlet-name
   servlet-classPartManagerServlet/servlet-class
/servlet
servlet-mapping
   servlet-namePartManager/servlet-name
   url-pattern/servlet/PartManager/url-pattern
/servlet-mapping

Nix.


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




Re: HTTP method POST is not supported by this URL

2001-12-04 Thread Nikola Milutinovic

Larry Isaacs wrote:

 If you POST to a servlet which extends HttpServlet and that
 servlet doesn't override the doPost() method, the default
 doPost() method outputs this error message.

Why? I thought that the default doPost() just calls service(). I didn't have 
to override anything in GenericServlet, so you could be right.

Nix.


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




Re: HTTP method POST is not supported by this URL

2001-12-04 Thread Nikola Milutinovic

Chad Alan Prey wrote:

 Holy Smoke...I know this one...you need to have doGet call doPost like this:
 
 public void doGet (HttpServletRequest req, HttpServletResponse res)
   throws ServletException
   {
   doPost(req, res);
   }
 
   public void doPost (HttpServletRequest req, HttpServletResponse res)
   throws ServletException
   {
   doPost(req, res);
   }
 
 pretty slick eh?

So, doPost calls itself in an endless loop, sending the servlet into oblivion...

And doPost, doGet and others are protected not public methods.

Nix.


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




RE: HTTP method POST is not supported by this URL

2001-12-04 Thread Chad Alan Prey

yeah I fat fingered that...take the doPost out of doPost and it works...This
is taken form Core Servlets by Hall.

-Original Message-
From: Nikola Milutinovic [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 12:21 PM
To: Tomcat Users List
Subject: Re: HTTP method POST is not supported by this URL


Chad Alan Prey wrote:

 Holy Smoke...I know this one...you need to have doGet call doPost like
this:

 public void doGet (HttpServletRequest req, HttpServletResponse res)
   throws ServletException
   {
   doPost(req, res);
   }

   public void doPost (HttpServletRequest req, HttpServletResponse res)
   throws ServletException
   {
   doPost(req, res);
   }

 pretty slick eh?

So, doPost calls itself in an endless loop, sending the servlet into
oblivion...

And doPost, doGet and others are protected not public methods.

Nix.


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


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




RE: Need help on Session's null pointer exception

2001-12-04 Thread bill . zhao


I am sure neither the name nor the value is null in the code.  I used
System.out.println() to print the name and value before I put it in a
session.  This must be something else.

Bill




Larry Isaacs [EMAIL PROTECTED] on 12/04/2001 03:02:24 PM

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:   'Tomcat Users List' [EMAIL PROTECTED]
cc:

Subject:  RE: Need help on Session's null pointer exception


The Servlet 2.2 spec states that neither the name or
object may be null.  This is the spec that Tomcat 3.3 is the
reference implementation for.

The Servlet 2.3 spec allows the object to be null, which is
the equivalent of calling removeAttribute().  This is why
the code works in Tomcat 4.0.1.

Cheers,
Larry

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 04, 2001 2:51 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Need help on Session's null pointer exception



 Thank you for your reply, Denis.
 I am sure the value I try to put  in a session is not null.  We used
 Websphere and Tomcat 4.0.1 as our testing environment and the
 codes are
 running OK.  Only when we tried to use Tomcat3.3 giving us this error
 message.  We suspect either our setting in wrong or there is a bug in
 Tomcat3.3.


 Bill




 Denis Balazuc [EMAIL PROTECTED] on 12/04/2001 02:38:37 PM

 Please respond to Tomcat Users List [EMAIL PROTECTED]

 To:   Tomcat Users List [EMAIL PROTECTED]
 cc:

 Subject:  Re: Need help on Session's null pointer exception


 Hi

 You are simply trying to set a null value in a session, which is
 forbidden.something like session.setAttribute(HelloWorld, null);

 I'm not sure this behaviour is specified in JSP specs though
 it's more because a Hashtable is used as the Map to store
 key=value session
 attributes within Tomcat.


  I run a servlet on Tomcat3.3 and got the following error:
 
  java.lang.NullPointerException
  at java.util.Hashtable.put(Hashtable.java:380)
  at
 org.apache.tomcat.core.ServerSession.setAttribute(Unknown =
  Source)
  Can anyone kindly tell me what is wrong with my setting?  I
 changed the
  expiration time for session in server.xml
  and I am sure the SessionIdGenerator is set too.
 
 
  Bill
 
 
  --
  To unsubscribe:
 mailto:[EMAIL PROTECTED]
  For additional commands:
 mailto:[EMAIL PROTECTED]
  Troubles with the list:
 mailto:[EMAIL PROTECTED]
 


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








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


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








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




Re: Virus Warning

2001-12-04 Thread Nikola Milutinovic

John M. Corro wrote:

 I wanted to give everyone a heads up on a virus that made it's way on to one
 of the other mail lists.  The virus has the following format:
 --
 How are you ?
 When I saw this screen saver, I immediately thought about you
 I am in a harry, I promise you will love it!
 --
 
 the attachmed virus is 'gone.scr'.  The virus is documented on the main page
 at www.antivirus.com

Well, guys kepp your shields up. Just to confirm the seriousness, we're 
catching 10-20 viruses in our incoming mail every day, mostly W32/Magistr-A/B 
and W32/Badtrans-B. Thank God we have the AV up and running on the incoming 
mail server.

Nix.


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




Re: HTTP method POST is not supported by this URL

2001-12-04 Thread Bo Xu

- Original Message -
From: Nikola Milutinovic [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, December 04, 2001 3:18 PM
Subject: Re: HTTP method POST is not supported by this URL


 Larry Isaacs wrote:

  If you POST to a servlet which extends HttpServlet and that
  servlet doesn't override the doPost() method, the default
  doPost() method outputs this error message.

 Why? I thought that the default doPost() just calls service(). I
didn't have
 to override anything in GenericServlet, so you could be right.

 Nix.
[...]

YourServlet extends javax.servlet.http.HttpServlet, and
javax.servlet.http.HttpServlet extends javax.servlet.GenericServlet,
the following is from HttpServlet in jakarta-servletapi-4-src.zip in
www.Apache.org:

...
 protected void doPost(HttpServletRequest req, HttpServletResponse resp)
 throws ServletException, IOException
 {
 String protocol = req.getProtocol();
 String msg = lStrings.getString(http.method_post_not_supported);
 if (protocol.endsWith(1.1)) {
 resp.sendError(HttpServletResponse.SC_METHOD_NOT_ALLOWED, msg);
 } else {
 resp.sendError(HttpServletResponse.SC_BAD_REQUEST, msg);
 }
 }
 ...

it doesn't response anything to the client, so you need to override it
in YourServlet.

Bo
Dec.04, 2001



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




RE: HTTP method POST is not supported by this URL

2001-12-04 Thread Larry Isaacs

Hi,

The service() method in HttpServlet checks the request HTTP
method and calls doGet(), doPost(), doHead(), etc.  The
default implementations in HttpServlet simply output a
message to let the world know you messed up.  For 
GenericServlet you override service() and provide your
own checking of the HTTP method, if desired.

Larry

 -Original Message-
 From: Nikola Milutinovic [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 04, 2001 3:19 PM
 To: Tomcat Users List
 Subject: Re: HTTP method POST is not supported by this URL
 
 
 Larry Isaacs wrote:
 
  If you POST to a servlet which extends HttpServlet and that
  servlet doesn't override the doPost() method, the default
  doPost() method outputs this error message.
 
 Why? I thought that the default doPost() just calls 
 service(). I didn't have 
 to override anything in GenericServlet, so you could be right.
 
 Nix.
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

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




RE: Need help on Session's null pointer exception

2001-12-04 Thread Larry Isaacs

In Jdk 1.3.1, line 380 is where java.util.Hashtable.put()
throws an NPE after testing the value for null.  In
ServerSession.setAttribute(), other than logging, there
is only attributes.put(name, value);.

At this point, I think it is more likely there is a bug
in your println()s and the value is actually null.

Hope this helps.

Cheers,
Larry

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 04, 2001 3:24 PM
 To: Tomcat Users List
 Subject: RE: Need help on Session's null pointer exception
 
 
 
 I am sure neither the name nor the value is null in the code.  I used
 System.out.println() to print the name and value before I put it in a
 session.  This must be something else.
 
 Bill
 
 
 
 
 Larry Isaacs [EMAIL PROTECTED] on 12/04/2001 03:02:24 PM
 
 Please respond to Tomcat Users List [EMAIL PROTECTED]
 
 To:   'Tomcat Users List' [EMAIL PROTECTED]
 cc:
 
 Subject:  RE: Need help on Session's null pointer exception
 
 
 The Servlet 2.2 spec states that neither the name or
 object may be null.  This is the spec that Tomcat 3.3 is the
 reference implementation for.
 
 The Servlet 2.3 spec allows the object to be null, which is
 the equivalent of calling removeAttribute().  This is why
 the code works in Tomcat 4.0.1.
 
 Cheers,
 Larry
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, December 04, 2001 2:51 PM
  To: [EMAIL PROTECTED]
  Subject: Re: Need help on Session's null pointer exception
 
 
 
  Thank you for your reply, Denis.
  I am sure the value I try to put  in a session is not null.  We used
  Websphere and Tomcat 4.0.1 as our testing environment and the
  codes are
  running OK.  Only when we tried to use Tomcat3.3 giving us 
 this error
  message.  We suspect either our setting in wrong or there 
 is a bug in
  Tomcat3.3.
 
 
  Bill
 
 
 
 
  Denis Balazuc [EMAIL PROTECTED] on 12/04/2001 02:38:37 PM
 
  Please respond to Tomcat Users List 
 [EMAIL PROTECTED]
 
  To:   Tomcat Users List [EMAIL PROTECTED]
  cc:
 
  Subject:  Re: Need help on Session's null pointer exception
 
 
  Hi
 
  You are simply trying to set a null value in a session, which is
  forbidden.something like 
 session.setAttribute(HelloWorld, null);
 
  I'm not sure this behaviour is specified in JSP specs though
  it's more because a Hashtable is used as the Map to store
  key=value session
  attributes within Tomcat.
 
 
   I run a servlet on Tomcat3.3 and got the following error:
  
   java.lang.NullPointerException
   at java.util.Hashtable.put(Hashtable.java:380)
   at
  org.apache.tomcat.core.ServerSession.setAttribute(Unknown =
   Source)
   Can anyone kindly tell me what is wrong with my setting?  I
  changed the
   expiration time for session in server.xml
   and I am sure the SessionIdGenerator is set too.
  
  
   Bill
  
  
   --
   To unsubscribe:
  mailto:[EMAIL PROTECTED]
   For additional commands:
  mailto:[EMAIL PROTECTED]
   Troubles with the list:
  mailto:[EMAIL PROTECTED]
  
 
 
  --
  To unsubscribe:   
 mailto:[EMAIL PROTECTED]
  For additional commands: 
 mailto:[EMAIL PROTECTED]
  Troubles with the list: 
 mailto:[EMAIL PROTECTED]
 
 
 
 
 
 
 
 
  --
  To unsubscribe:   
 mailto:[EMAIL PROTECTED]
  For additional commands: 
 mailto:[EMAIL PROTECTED]
  Troubles with the list: 
 mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 
 
 
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

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




SSL Standalone Tomcat 4.0 Windows NT - Thawte

2001-12-04 Thread Madhav Tadikonda

I was wondering if anyone has successfully installed a commercial cert into 
Tomcat 4.0 on Windows using the keytool function?

I am following the attached instructions and got to the final step (keytool 
-import -alias tomcat -trustcacerts..) of importing my test Thawte 
certificate and I get the following error:

keytool error: java.security.cert.CertificateException: Unsupported encoding

I was wondering if anyone has experienced this problem?  I am having issues 
with OpenSSL and was hoping to just use the keytool function.

Thank you,
Madhav


Some day's ago [EMAIL PROTECTED] sent the attached mail:

-Ursprüngliche Nachricht-
Von: Jon Shoberg [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 27. September 2001 00:41
An: [EMAIL PROTECTED]
Betreff: Thawte, SSL, and Tomcat
snip/
   Does anyone have, literally, blind instructions for setting up a
commercial SSL cert?  The current docs are pretty good but I am looking for
something related to tomcat 3.x.x which covers creation and install of a
commercial cert.
snip/

--- Begin Message ---
Hi,

after long time of trying to setup a (demo)certificate from thawte.com
or
trustcenter.de I finally made it. And because of the numerous questions
on
this list concerning this topic, I thought it would be a good idea to
share
my gained wisdom :-)
So what follows is a step-by-step instruction on how to install a
commercial
(*not* self signed or openssl) certificate:
1. generate a local certificate:
   keytool -genkey -alias tomcat -keyalg RSA -keystore myfile
   where myfile is the name of the desired keystore-file
2. generate the CSR (you need it to request your (demo)certificate)
   keytool -certreq -keyalg RSA -alias tomcat -file certreq.pem
-keystore
myfile
   now you have a file called certreq.pem. Send this to your
trustcenter.
3. most trustcenters do not deliver a so called chained certificate,
   so you have to install their root-certificate (their website says
where
to find it)
   keytool -import -alias root -keystore myfile -trustcacerts -file
root-cert-file
4. after your final (demo)certificate has been sent to you, install it
like
this
   keytool -import -alias tomcat -keystore myfile -trustcacerts -file
received-cert-file

For the tomcat-specific part of the installation go to the *real good*
tomcat-doc-page:
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/ssl-howto.html

I hope it helped somebody... If there are any
questions/suggestions/etc...
simply hit REPLY (-:

greets,
pero



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


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




RE: HTTP method POST is not supported by this URL

2001-12-04 Thread Jim Urban

 So, doPost calls itself in an endless loop, sending the servlet into
oblivion...
Or until a java.lang.StackOverflowError exception is thrown. :)

Seriously, if a servlet gets a StackOverflowError does that impact Tomcat?
That is, can Tomcat run out of stack space if a loop in a servlet gets out
of control.

Jim

-Original Message-
From: Nikola Milutinovic [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 2:21 PM
To: Tomcat Users List
Subject: Re: HTTP method POST is not supported by this URL


Chad Alan Prey wrote:

 Holy Smoke...I know this one...you need to have doGet call doPost like
this:

 public void doGet (HttpServletRequest req, HttpServletResponse res)
   throws ServletException
   {
   doPost(req, res);
   }

   public void doPost (HttpServletRequest req, HttpServletResponse res)
   throws ServletException
   {
   doPost(req, res);
   }

 pretty slick eh?

So, doPost calls itself in an endless loop, sending the servlet into
oblivion...

And doPost, doGet and others are protected not public methods.

Nix.


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



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




Re: mod_webapp config

2001-12-04 Thread vendo

yes, sorry, but for sure, mod_webapp at least doesn't work on win95, even
with all the suggestions I kindly got from this list.
I give up too.
Vendo

- Original Message -
From: Endre Stølsvik [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, December 04, 2001 8:53 AM
Subject: Re: mod_webapp config


 On Tue, 4 Dec 2001, hanzo wrote:

 |
 | - Original Message -
 | From: William Tansill [EMAIL PROTECTED]
 | To: Tomcat Users List [EMAIL PROTECTED]
 | Sent: Monday, December 03, 2001 1:15 AM
 | Subject: RE: mod_webapp config
 |
 |
 |  My guess is that if you want to create and run your own JSP's, you
will need
 |  to install them per the standard deployment mechanism, update
server.xml to
 |  reflect the new deployment context, and then restart Tomcat.  At least
those
 |  are the steps I'm planning on taking when I get an example up and
running.
 |  If you get your stuff working first, write back to the group and let
me know
 |  how you did it.  Thanks!
 |
 | I give up using mod_webapp.. mod_rewrite is -a lot easier-

 That is just such a cool idea! :) Just f*** that whole stupid

mod_shitty_connectors_stuff_won't_ever_work_stable_anyway_because_noone_take
s_-
 responsibility_even_though_both_projects_are_apache_and_it's_such_a_-
 blantantly_needed_piece_of_software.so and just go for something that'll
 rewrite the whole URL!

 Great idea! Really! ;)

 But I guess you loose a bit functionality, e.g. the
 Context|Request|Config.getSomeAttribute() returns the wrong values?


 --
 Mvh,
 Endre


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



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




RE: request.getParameter problem

2001-12-04 Thread Rama

thanks Dave,

it seems that the problem is not in this lines.

there is an include file for listing data from database that doesn't
always return the result.


thanks also for Christopher and Ralph.


Rama


 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED]] On Behalf Of David Cassidy
 Sent: Tuesday, December 04, 2001 03:22 AM
 To: Tomcat Users List
 Subject: Re: request.getParameter problem
 
 
 Or you could try
 
 if ( yes.equals(request.getParameter(modify) ) )
 {
  out.write(modify listings);
  }
 
 it gets around modify being null and lovely exceptions ...
 
 :)
 
 David
 
 


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


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




Tomcat on multi-user box / mod_webapp vs mod_proxy

2001-12-04 Thread Paul Warren

Hi,

I am currently looking at ways to allow users of multi-user Linux server
to use servlets in a secure manner, by which I mean that the servlets
must be owned by and run under each user's own user id.

Is there a recommended way to achieve this?  The only solution I can
think of is to have each user run their own installation of Tomcat, and
for our Apache server to pass on requests to a different port for each
user.

This brings me on to my next question - connectors.  What are the pros
and cons of using mod_proxy over mod_webapp?  I suspect that
mod_webapp gives better performance, but are there other advantages?

cheers,

Paul

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




RE: Need help on Session's null pointer exception

2001-12-04 Thread bill . zhao


Thank you Larry, your comments are very helpful.  I will check my prinln()
to see if there is anything missing.


Bill




Larry Isaacs [EMAIL PROTECTED] on 12/04/2001 03:41:49 PM

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:   'Tomcat Users List' [EMAIL PROTECTED]
cc:

Subject:  RE: Need help on Session's null pointer exception


In Jdk 1.3.1, line 380 is where java.util.Hashtable.put()
throws an NPE after testing the value for null.  In
ServerSession.setAttribute(), other than logging, there
is only attributes.put(name, value);.

At this point, I think it is more likely there is a bug
in your println()s and the value is actually null.

Hope this helps.

Cheers,
Larry

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 04, 2001 3:24 PM
 To: Tomcat Users List
 Subject: RE: Need help on Session's null pointer exception



 I am sure neither the name nor the value is null in the code.  I used
 System.out.println() to print the name and value before I put it in a
 session.  This must be something else.

 Bill




 Larry Isaacs [EMAIL PROTECTED] on 12/04/2001 03:02:24 PM

 Please respond to Tomcat Users List [EMAIL PROTECTED]

 To:   'Tomcat Users List' [EMAIL PROTECTED]
 cc:

 Subject:  RE: Need help on Session's null pointer exception


 The Servlet 2.2 spec states that neither the name or
 object may be null.  This is the spec that Tomcat 3.3 is the
 reference implementation for.

 The Servlet 2.3 spec allows the object to be null, which is
 the equivalent of calling removeAttribute().  This is why
 the code works in Tomcat 4.0.1.

 Cheers,
 Larry

  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, December 04, 2001 2:51 PM
  To: [EMAIL PROTECTED]
  Subject: Re: Need help on Session's null pointer exception
 
 
 
  Thank you for your reply, Denis.
  I am sure the value I try to put  in a session is not null.  We used
  Websphere and Tomcat 4.0.1 as our testing environment and the
  codes are
  running OK.  Only when we tried to use Tomcat3.3 giving us
 this error
  message.  We suspect either our setting in wrong or there
 is a bug in
  Tomcat3.3.
 
 
  Bill
 
 
 
 
  Denis Balazuc [EMAIL PROTECTED] on 12/04/2001 02:38:37 PM
 
  Please respond to Tomcat Users List
 [EMAIL PROTECTED]
 
  To:   Tomcat Users List [EMAIL PROTECTED]
  cc:
 
  Subject:  Re: Need help on Session's null pointer exception
 
 
  Hi
 
  You are simply trying to set a null value in a session, which is
  forbidden.something like
 session.setAttribute(HelloWorld, null);
 
  I'm not sure this behaviour is specified in JSP specs though
  it's more because a Hashtable is used as the Map to store
  key=value session
  attributes within Tomcat.
 
 
   I run a servlet on Tomcat3.3 and got the following error:
  
   java.lang.NullPointerException
   at java.util.Hashtable.put(Hashtable.java:380)
   at
  org.apache.tomcat.core.ServerSession.setAttribute(Unknown =
   Source)
   Can anyone kindly tell me what is wrong with my setting?  I
  changed the
   expiration time for session in server.xml
   and I am sure the SessionIdGenerator is set too.
  
  
   Bill
  
  
   --
   To unsubscribe:
  mailto:[EMAIL PROTECTED]
   For additional commands:
  mailto:[EMAIL PROTECTED]
   Troubles with the list:
  mailto:[EMAIL PROTECTED]
  
 
 
  --
  To unsubscribe:
 mailto:[EMAIL PROTECTED]
  For additional commands:
 mailto:[EMAIL PROTECTED]
  Troubles with the list:
 mailto:[EMAIL PROTECTED]
 
 
 
 
 
 
 
 
  --
  To unsubscribe:
 mailto:[EMAIL PROTECTED]
  For additional commands:
 mailto:[EMAIL PROTECTED]
  Troubles with the list:
 mailto:[EMAIL PROTECTED]
 

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








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


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








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




4.0.1 blowing up

2001-12-04 Thread Steve Howie

Hi,

We just installed 4.0.1 on a Sun running Solaris 7, we get the following
message when we start to run the server:


snip ---
cruncher [27]% more catalina.out
Starting service Tomcat-Standalone
Apache Tomcat/4.0.1
Bus Error
si_signo [10]: Bus Error
si_errno [0]: Error 0
si_code [1]: BUS_ADRALN [addr: 0x29]

stackpointer=FFBEBBE8

*** panic: JIT signal handler did not take the signal

Test for suspension on thread: 1 in process 24065 ...
-
/snip -

JAVA_HOME and CATALINA_HOME are defined properly.

Version 4.0 works fine and initializes ok. Any ideas anyone?

Thanks

Scotty


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




Error starting Tomcat

2001-12-04 Thread Swart, James (Jim) ** CTR **

windows 2000 professional.
tomcat 4
jdk 1.3.1

2001-12-04 11:56:54 HttpConnector[8080] Opening server socket on all host IP
addresses 
2001-12-04 11:56:56 HttpConnector[8080] accept:  
java.net.SocketException: Descriptor not a socket: JVM_SetSockOpt()
TCP_NODELAY 

at java.net.PlainSocketImpl.socketSetOption(Native Method) 

at java.net.PlainSocketImpl.setOption(PlainSocketImpl.java:183) 

at java.net.Socket.setTcpNoDelay(Socket.java:377) 

at
org.apache.catalina.connector.http.HttpConnector.run(HttpConnector.java:949)


at java.lang.Thread.run(Thread.java:484)

¢¢
¢ J a m e s   B   S w a r t
¢ Agere Systems - Colorado Design Center
¢ Site Systems Administrator  IT Focal Point
¢ VOICE: 720-494-2330 ¿ FAX: 720-494-2331
¢¢


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




RE: mod_webapp config

2001-12-04 Thread Mike Kelley

I gave up also  I followed the steps set by a few others to use Mod_jk
. Works wonderfully  If you would like me to forward the steps just
let me know 




-Original Message-
From: vendo [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, December 04, 2001 2:20 PM
To: Tomcat Users List
Subject: Re: mod_webapp config


yes, sorry, but for sure, mod_webapp at least doesn't work on win95, even
with all the suggestions I kindly got from this list. I give up too. Vendo

- Original Message -
From: Endre Stølsvik [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, December 04, 2001 8:53 AM
Subject: Re: mod_webapp config


 On Tue, 4 Dec 2001, hanzo wrote:

 |
 | - Original Message -
 | From: William Tansill [EMAIL PROTECTED]
 | To: Tomcat Users List [EMAIL PROTECTED]
 | Sent: Monday, December 03, 2001 1:15 AM
 | Subject: RE: mod_webapp config
 |
 |
 |  My guess is that if you want to create and run your own JSP's, you
will need
 |  to install them per the standard deployment mechanism, update
server.xml to
 |  reflect the new deployment context, and then restart Tomcat.  At 
 |  least
those
 |  are the steps I'm planning on taking when I get an example up and
running.
 |  If you get your stuff working first, write back to the group and 
 |  let
me know
 |  how you did it.  Thanks!
 |
 | I give up using mod_webapp.. mod_rewrite is -a lot easier-

 That is just such a cool idea! :) Just f*** that whole stupid

mod_shitty_connectors_stuff_won't_ever_work_stable_anyway_because_noone_take
s_-
 responsibility_even_though_both_projects_are_apache_and_it's_such_a_-
 blantantly_needed_piece_of_software.so and just go for something 
 that'll rewrite the whole URL!

 Great idea! Really! ;)

 But I guess you loose a bit functionality, e.g. the
 Context|Request|Config.getSomeAttribute() returns the wrong values?


 --
 Mvh,
 Endre


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



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

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




RE: urgent help pls...

2001-12-04 Thread Jovie Castaneda

Yes I do have it registered in the security properties file
what else am i missing here?

-Original Message-
From: Carlos Telleria [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 6:51 PM
To: Tomcat Users List
Subject: Re: urgent help pls...


Did you registered JSSE security provider?

Look at point 4 on INSTALL.txt, in the JSSE package.


Jovie Castaneda wrote:

 i made it work i have missed ';' in my classpath..
 but after that im having this exception
 javax.net.ssl.SSLException: untrusted server cert chain
 i already have my .keystore ...yet im having this error...

 -Original Message-
 From: Byung Jin Chun [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 04, 2001 4:53 PM
 To: Jovie
 Subject: RE: urgent help pls...

  did you set the env variable JSSE_HOME and
 r u still getting the same stack trace?

 -Original Message-
 From: Jovie Castaneda
 To: 'Byung Jin Chun'
 Sent: 12/4/01 12:40 AM
 Subject: RE: urgent help pls...

 thanks for the reply...
 I already download the following:
 jsse.jar, jnet.jar, jcert.jar
 then i stored them in $CATALINA_HOME\common\lib
 yet it doesnt work...
 it doesnt seem to find my jar files, but i can
 implement https in my browser i followed that
 SSL configuration HOW TO , yet why cant i make my
 code run?

 -Original Message-
 From: Byung Jin Chun [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 04, 2001 4:38 PM
 To: Jovie
 Subject: RE: urgent help pls...

  Jovie,
  you need the Java Secure Socket Extension (JSSE) which you can get at
 www.javasoft.com. If you have it, then you read the SSL Configuration
 How To
 off of the tomcat install.

 Jin

 -Original Message-
 From: Jovie Castaneda
 To: 'Tomcat Users List'
 Sent: 12/4/01 12:17 AM
 Subject: urgent help pls...

 hello there...

 i hope you can help me with this problem..i have no idea on what's
 happening
 here
 the following lines are shown in the console once i do https post

 java.lang.NoClassDefFoundError: javax/net/SocketFactory
 at java.lang.ClassLoader.defineClass0(Native Method)
 at java.lang.ClassLoader.defineClass(Unknown Source)
 at java.security.SecureClassLoader.defineClass(Unknown Source)
 at java.net.URLClassLoader.defineClass(Unknown Source)
 at java.net.URLClassLoader.access$100(Unknown Source)
 at java.net.URLClassLoader$1.run(Unknown Source)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(Unknown Source)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at java.lang.ClassLoader.loadClassInternal(Unknown Source)
 at
 com.sun.net.ssl.HttpsURLConnection.clinit([DashoPro-V1.2-120198])
 at
 com.sun.net.ssl.internal.www.protocol.https.Handler.openConnection([Dash
 oPro
 -V1.2-120198])
 at java.net.URL.openConnection(Unknown Source)
 at GCProtocol.communicateRequest(GCProtocol.java:42)
 at GCServer.run(GCServer.java:56)

 your help will be very much appreciated !!
 thanks

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

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

--
_

Carlos  Tellería
Area de Informática
Secretaría General de Sanidad, Consumo y Bienestar Social
Gobierno de Aragón

Tel.: 976 71 40 00 - ext. 2061
Fax: 976 71 42 11
email: [EMAIL PROTECTED]


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



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




Custom Realm ClassLoader issues?

2001-12-04 Thread Scott Ganyo

Hi all,

I've written a custom Realm that I'm attempting to use for
authentication under Tomcat 4.0.  Within that class I'm using JavaSpaces
to do the messaging to the authentication service that I wrote.  Each
piece works independantly, but together they are failing.  What happens
is this:

1. Realm: Posts authentication Message to Space.
2. Auth Service: Retrieves Message, performs authentication
3. Auth Service: Posts auth response Message to Space
4. Realm: Retrieves Message

The trouble is that at the point when the Realm retrieves the Entry from
the Space (4), I get a ClassCastException when I attempt to cast it to a
Message.  I know it is a Message, though, as I can print it out and
verify it.  Thus, it seems like it is a ClassLoader issue...?

BTW: I put all Jini jars in the server/lib and my classes in the
server/classes directory so that my Realm has access to the appropriate
classes.  Would this be related?  Is there a better way?

Thanks for any suggestions,

Scott



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




  1   2   >