Re: Configuring multiple domains and web applications

2002-11-11 Thread Andoni
My question is similar to the one below:

I am configuring Tomcat 3.2.1 / Apache 1.3 to VHost for multiple web-apps.

Do I have to include the WebApp name in each request?  Can I hide the WebApp
name from the user?

I have been told to use the root web-app but this is only of use once.  I
can also use mod_rewrite but this does not present the clean interface I'm
looking for.

Is it just not possible to hide the webApp name?

Thanks.

andoni.

- Original Message -
From: Turner, John [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Monday, November 11, 2002 2:03 PM
Subject: RE: Configuring multiple domains and web applications



 This guide was originally posted by Glenn Nielsen on Aug 8, 2002.  It may
 help you.  See attached.

 John


  -Original Message-
  From: Lee Grey [mailto:leegrey;mindspring.com]
  Sent: Friday, November 08, 2002 9:33 PM
  To: Tomcat Users List
  Subject: Configuring multiple domains and web applications
 
 
  I have three different web applications I want to run on
  Tomcat.  Each needs
  to run under its own domain, let's call them http://www.a.com,
  http://www.b.com, and http://www.c.com.  I have a couple of
  Linux boxes to
  configure in any way that makes sense.  At the moment, I only have
  http://www.a.com running, and it runs on Apache and Tomcat in
  the same box.
 








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


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




Re: Configuring multiple domains and web applications

2002-11-11 Thread Andoni
I really must thank you for this mail.

It has freed me from weeks of trying to find out how to do this simple
thing.

Thanks,

Andoni.

- Original Message -
From: Kristján Bjarni Guðmundsson [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, November 11, 2002 2:41 PM
Subject: Re: Configuring multiple domains and web applications


 You have to add a new host and context into the server.xml for each new
 host
 for example like this:

   Host name=www.a.com debug=0 appBase=myfolder
 unpackWARs=true
 Context path=
  docBase=mywebapp
  debug=0
  reloadable=false
 /Context
   /Host




 Andoni [EMAIL PROTECTED]
 11.11.2002 14:33
 Please respond to
 Tomcat Users List [EMAIL PROTECTED]


 To
 Tomcat Users List [EMAIL PROTECTED]
 cc

 Subject
 Re: Configuring multiple domains and web applications






 My question is similar to the one below:

 I am configuring Tomcat 3.2.1 / Apache 1.3 to VHost for multiple web-apps.

 Do I have to include the WebApp name in each request?  Can I hide the
 WebApp
 name from the user?

 I have been told to use the root web-app but this is only of use once.  I
 can also use mod_rewrite but this does not present the clean interface I'm
 looking for.

 Is it just not possible to hide the webApp name?

 Thanks.

 andoni.

 - Original Message -
 From: Turner, John [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Monday, November 11, 2002 2:03 PM
 Subject: RE: Configuring multiple domains and web applications


 
  This guide was originally posted by Glenn Nielsen on Aug 8, 2002.  It
 may
  help you.  See attached.
 
  John
 
 
   -Original Message-
   From: Lee Grey [mailto:leegrey;mindspring.com]
   Sent: Friday, November 08, 2002 9:33 PM
   To: Tomcat Users List
   Subject: Configuring multiple domains and web applications
  
  
   I have three different web applications I want to run on
   Tomcat.  Each needs
   to run under its own domain, let's call them http://www.a.com,
   http://www.b.com, and http://www.c.com.  I have a couple of
   Linux boxes to
   configure in any way that makes sense.  At the moment, I only have
   http://www.a.com running, and it runs on Apache and Tomcat in
   the same box.
  
 
 


 --
--
 


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


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




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




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




T 3.2.1 - Single JVM?

2002-11-12 Thread Andoni
The following is in the Tomcat Users Guide for tomcat 3.2
http://jakarta.apache.org/tomcat/tomcat-3.2-doc/uguide/tomcat_ug.html


bThe need for improved virtual host support/b
Having each virtual host implemented by a different JVM is a huge scalability problem. 
The next versions of Tomcat will make it possible to support several virtual hosts 
within the same Tomcat JVM. 


I have not come across a problem because of this yet but as I go to put 3 applications 
(web-apps) live at the same time I begin to panic when I see things like this.  Does 
this mean that I have to install 3 JRE's on my live server?


Andoni.




Re: T 3.2.1 - Single JVM? - How, with workers?

2002-11-12 Thread Andoni
How do I do this?

Do I use separate Workers?

Thanks,

Andoni.

- Original Message -
From: Ralph Einfeldt [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, November 12, 2002 10:35 AM
Subject: RE: T 3.2.1 - Single JVM?


You don't have to install 3 JRE's.

You can use several instances of the same JRE.

 -Original Message-
 From: Andoni [mailto:andoni;indigo.ie]
 Sent: Tuesday, November 12, 2002 11:21 AM
 To: Tomcat Users List
 Subject: T 3.2.1 - Single JVM?

 I have not come across a problem because of this yet but as I
 go to put 3 applications (web-apps) live at the same time I
 begin to panic when I see things like this.  Does this mean
 that I have to install 3 JRE's on my live server?


 Andoni.



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



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




Tomcat - Access Connection.

2002-11-12 Thread Andoni
Hello,

Where can I get a driver to connect tomcat to MS Access?  Do I need a driver
like I do with SQLServer?

Thanks,

Andoni.


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




The scratchDir you specified ... is unusable.

2002-11-14 Thread Andoni
Hello,

I am running tomcat 3.2.1 for OpenVMS and I am getting this error when I try
to use Virtual Hosts in Tomcat.
I am also using Apache 1.3.19 for OpenVMS with the same VirtualHosts.


PROMPT-# type jasper.log
2002-11-13 04:43:39 - Scratch dir for the JSP engine is:
/sys$common/apache/jakarta/work/localhost_8080%2Fexamples
2002-11-13 04:43:39 - IMPORTANT: Do not modify the generated servlets
2002-11-13 04:43:44 - The scratchDir you specified:
/sys$common/apache/jakarta/work/animo.andoni.eurokom.ie_8080 is unusable.
2002-11-13 04:43:45 - The scratchDir you specified:
/sys$common/apache/jakarta/work/andoni.eurokom.ie_8080 is unusable.
2002-11-13 05:14:46 - JspServlet.destroy()
2002-11-13 05:14:47 - JspServlet.destroy()


Thanks,

Andoni.



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




Re: Apache Index page jsp and sessionid with JKMount *.jsp

2002-11-14 Thread Andoni
I spend a good week trying to solve this and other problems recently.

Just add a virtual server (in a host tag) to your server.xml file the same
as the VirtualHost in apache.

Ditch the /appname unless it is not the only thing on that domain name.

If you want it just use an alias /appname /bin/tomcat/webapps/appname

Andoni.

- Original Message -
From: Chad Cannell [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, November 14, 2002 2:08 PM
Subject: RE: Apache Index page jsp and sessionid with JKMount *.jsp


Yea, I'm more comfortable at this point just adding the meta redirect.
Thanks for all the suggestions though!

C

-Original Message-
From: Turner, John [mailto:JTurner;AAS.com]
Sent: Thursday, November 14, 2002 8:22 AM
To: 'Tomcat Users List'
Subject: RE: Apache Index page jsp and sessionid with JKMount *.jsp



All I know is the behavior I see on my servers.

I have DirectoryIndex set to index.jsp.  My Apache has mod_dir.

Calling a directory mapped to Tomcat (such as /myApp) with
http://localhost/myApp doesn't return anything, definitely not
index.jsp.
This is on 4.0.4 and 4.1.12.

If your DirectoryIndex does work with index.jsp, I'd be interested in
seeing
your configuration.  About the only way I can think of to approach this
problem is to play with the load order for the Apache modules...perhaps
loading mod_jk at a different time or loading mod_dir after mod_jk might
change the behavior.  For me, at this time, it's just easier to stick an
index.html file in there with a refresh of 0.

John


 -Original Message-
 From: Veniamin Fichin [mailto:3ca28f66;mail.ru]
 Sent: Thursday, November 14, 2002 3:31 AM
 To: Tomcat Users List
 Subject: Re: Apache Index page jsp and sessionid with JKMount *.jsp


 Turner, John wrote:

  That's pretty much the solution...this has come up before.
 
  By the time JK gets involved, Apache is just about done
 with the URL...it
  doesn't perform any rewriting, etc. it's just looking for a match.

 But in my understanding first of all when Apache is requested
 to process
 some directory (for example, http://www.somehost.com/test/),
 it tries to
 invoke any file listed in its DirectoryIndex directive, then he finds
 index.jsp and invokes it, causing to jk to wake up. So Apache
 is first
 in action, and jk is following it. Am I right?

  The elegant solution is probably using mod_rewrite to
 rewrite requests
  ending in / to /index.jsp.
 
  John
 
 -Original Message-
 From: Chad Cannell [mailto:ccannell;elogex.com]
 Sent: Wednesday, November 13, 2002 3:45 PM
 To: Tomcat Users List
 Subject: Apache Index page jsp and sessionid with JKMount *.jsp
 
 
 I am trying to set Apache's index file to index.jsp. It is
 not working.
 --= [ cut ] =--
 
 Using Apache 2.0, ajp13. Tomcat 3.2x
 
 Chad



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

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


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



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




Re: jspc NullPointerException

2002-11-18 Thread Andoni
Try to isolate the error further, error:null seems like it is coming from
a:
catch(Exception e){
System.out.println(error: + e.getMessage());
}

in your code.

Null pointer exception is very often a call to a method on an object which
has not been instantiated.

Andoni.


- Original Message -
From: Holger Veltrup [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, November 18, 2002 9:15 AM
Subject: jspc NullPointerException


Hey,
I try to compile a JSP with the jspc-Script.
I download the binary-distritbution fo tomcat-1.4.12.
My Java-Version is 1.4.0

If i execute the following command a NullPointerException is thrown.

./jspc.sh -uriroot ../webapps/examples
../webapps/examples/jsp/colors/colrs.jsp

2002-11-18 10:13:30 - ERROR-the file '/jsp/colors/colrs.jsp' generated the
following general exception: java.lang.NullPointerException
error:null

Several variations of options could't help

Thanks for help

Holger


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



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




Re: welcome-file-list

2002-11-18 Thread Andoni
Yes, it is, in as much as any .jsp file IS a servlet.

Why don't you describe more about what you want to achieve.

For example what URL do you want your users to type in and what do you want
served first?

Andoni.

- Original Message -
From: Anderson, M. Paul [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Monday, November 18, 2002 2:35 PM
Subject: welcome-file-list


 Is it possible to have a servlet be the welcome-file parameter in a
 welcome-file-list?  If so, how do I invoke the servlet?

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




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




Re: welcome-file-list

2002-11-18 Thread Andoni
Have you tried to create a host element in Tomcat around your context and
thereby remove the need for anything after the www.whatever.org?

Andoni.

PS: Are you using Apache Virtual Hosting?

- Original Message -
From: Anderson, M. Paul [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Monday, November 18, 2002 3:09 PM
Subject: RE: welcome-file-list


 ok...essentially I have a url of the form
 www.whatever.org/MyServlet/ServletMappedName where the servlet is titled
 MyServlet and is mapped to ServletMappedName in the web.xml file so that
I
 can avoid the servlet/package.MyServlet portion of the url.  I'd prefer to
 just call www.whatever.org/MyServlet and have it invoke the servlet that
 gets invoked when /ServletMappedName is added to it.

 A little background on the site...

 MyServlet is essentially a filter which handles all page requests for
 the site.  This configuration allows me to monitor and authenticate all
page
 requests.  When MyServlet starts up it sends the user a Login.jsp page
 which sends authentication parameters back to MyServlet and
 allows/disallows the user access.  Every page on the entire site runs
 through the MyServlet filter.  I don't know if this was the best setup
but
 it was my first servlet/jsp site and it seemed logical.

 -Original Message-
 From: Andoni [mailto:[EMAIL PROTECTED]]
 Sent: Monday, November 18, 2002 9:45 AM
 To: Tomcat Users List
 Subject: Re: welcome-file-list


 Yes, it is, in as much as any .jsp file IS a servlet.

 Why don't you describe more about what you want to achieve.

 For example what URL do you want your users to type in and what do you
want
 served first?

 Andoni.

 - Original Message -
 From: Anderson, M. Paul [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Monday, November 18, 2002 2:35 PM
 Subject: welcome-file-list


  Is it possible to have a servlet be the welcome-file parameter in a
  welcome-file-list?  If so, how do I invoke the servlet?
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 


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

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




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




mod_jk not passing parameters:

2002-11-18 Thread Andoni
Hello,

It would seem that my Apache web server is not passing on parameters to URLs
to Tomcat.  This is the kind of thing I'm getting in my mod_jk.log file:

[jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close, NULL
parameter
[jk_uri_worker_map.c (185)]: In jk_uri_worker_map_t::uri_worker_map_free,
NULL parameters
[jk_ajp12_worker.c (503)]: ajpv12_handle_response, error reading header line
[jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close, NULL
parameter
[jk_uri_worker_map.c (185)]: In jk_uri_worker_map_t::uri_worker_map_free,
NULL parameters
[jk_ajp12_worker.c (503)]: ajpv12_handle_response, error reading header line


Can anyone suggest what I should do?

My configuration is that I have several Host elements in my Server.xml
file each representing one context.  I then have multiple Virtual Hosts in
Apache /tomcat/conf/mod_jk.conf which should map to each of these hosts.

Please help!

Thanks,
Andoni.


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




Re: mod_jk not passing parameters: - IGNORE

2002-11-18 Thread Andoni
Please ignore this message - 

The Database URL was set for my live rather than development server!!

Andoni.

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




Getting 4.0.4

2002-11-19 Thread Andoni
Hello,

I work with OpenVMS and as such I want  to work with the exact version of
Tomcat for my Win2k workstation that I am using on the live server.  Is
there any way I can download Tomcat 4.0.4 (instead of 4.0.6) from the tomcat
site?

Thanks,

Andoni.


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




Re: Configuring server for servlet

2002-11-19 Thread Andoni
You will really have to do SOME looking up of manuals and learning about the
use of Tomcat generally before posting questions here.

Basically the answer to your question is:
C:\program files\apache group\tomcat
4.1\webapps\web-inf\classes\servlet.class

you would be much better off looking up how to make and deploy .WAR files
though.

I wouldn't recommend the use of Tomcat Manager, specially at your stage but
that is a personal thing and others may disagree.

Andoni.

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, November 19, 2002 9:12 AM
Subject: Configuring server for servlet


 1) May I know where should I place my servlet program so that the server
can find it. I have created another folder ceep at c:\program files\apache
group\tomcat 4.1\webapps.

 I have been getting message that the file could not be found by the
server.

 2) Could you also tell me how to use the Tomcat Manager.
  Thank you.

  chia aik lee



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




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




Re: hacer un filtro (creo)

2002-11-19 Thread Andoni
Mira a esta pagina web:
http://www.javaworld.com/javaworld/jw-06-2001/jw-0622-filters.html

ahi tienen una buena descripcion de como empezar con filtros.

Tambien hay unos mensajes hace 2 dias en esta lista con el titulo
welcome-file-list
que hablan de filtros.

Andoni.

- Original Message -
From: Dionisio Ruiz de Zarate [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, November 19, 2002 2:39 PM
Subject: hacer un filtro (creo)


 Os cuento.
 he hecho una aplicacion java que me cuenta las visitas a una pagina,
 seguro que para la mayoria de vostros una cosa muy sencilla.
 Pero mi problema es que en todas las paginas tengo que poner una llamada a
 esta clase para poder contar.
 Ultimamente he leido que hay filtros que filtran todas las llamadas, por
 ejemplo a las JSPs.
 Sepodría hacer un filtro al que le incorporara las funciones que tengo en
 esta clase para contar y me cuente todas las paginas JSP sin tener que
 insertar en las paginas, en todas una llamada?

 Se como se configura en el web.xml la llamada al filtro, lo he leido al
 menos, pero no se como puedo hacer un filtro.
 Me poodríais pasaar algun ejemplo minimo que podría usar o ayudar ha hacer
 un filtro que me filtre todas?
 os agradecería la ayuda.
 Un saludo




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




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




Re: How do I unsubscribe?

2002-11-19 Thread Andoni
I suggest you contact your own mail administrator.  Very often the cause of
this is that the address produced by your server is in some way different to
the one you are listed as on the tomcat site.  This may be completely
transparent to you.

This is specially possible if you are emailing from a corporate network and
they don't manage their own email.

It happened me once with Yahoo Groups and it took for ever to get off the
listing and when I did It was an address that I had not given them that
worked.

Andoni.

- Original Message -
From: craig franke [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, November 19, 2002 3:42 PM
Subject: RE: How do I unsubscribe?


if those still don't work you, depending on your email client you could just
create a mail rule to automatically trash messages from the list [or auto
file them in another folder]

 [EMAIL PROTECTED] 11/19/02 09:36AM 
You can do the following:
- Describe what happened. (Did receive a feedback mail or not)
- Have look at the headers of your mail.
  Is the value of Return-Path the address that you used?

 -Original Message-
 From: Ronald Aronica [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, November 19, 2002 4:29 PM
 To: Tomcat Users List
 Subject: How do I unsubscribe?


 I have tried most everything including sending blank messages to:
 [EMAIL PROTECTED], and
 [EMAIL PROTECTED]
 ache.org;
 and a request to be removed from the list to
 [EMAIL PROTECTED] Nothing seems to work.  What
 should I do? HELP!


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



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



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




Fw: How do I unsubscribe?

2002-11-20 Thread Andoni

- Original Message -
From: Thronicke Klaus-Peter [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, November 20, 2002 2:19 PM
Subject: AW: How do I unsubscribe?


ok,
i have the same problem
i know my email-address has changed. and i'm registered on the list with the
old one.
now i have a new email-adress. i know both. but i cant send a mail with my
old email-address. it's always automatically converted to the new one.
so i'm not allowed to send mails to the list.

first i had to register on the list with the new email-address.
ok, so far
but then i get the mails from the list twice.
(the company still delivers mails which are sent to the old email-address)
as interesting the mails are...  to get them once is enough...

the question is:
- how to unsubscribe my old subscription...
- how to tell the server that the subscription living with my old
email-address should be unsubscribed... if i can send mails with my new
mail-address only...

i would be very thankful for any hint.
perhaps could you forward my question to the list. thx.
/peter


-Ursprüngliche Nachricht-
Von: Andoni [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 19. November 2002 16:55
An: Tomcat Users List
Betreff: Re: How do I unsubscribe?


I suggest you contact your own mail administrator.  Very often the cause of
this is that the address produced by your server is in some way different to
the one you are listed as on the tomcat site.  This may be completely
transparent to you.

This is specially possible if you are emailing from a corporate network and
they don't manage their own email.

It happened me once with Yahoo Groups and it took for ever to get off the
listing and when I did It was an address that I had not given them that
worked.

Andoni.

- Original Message -
From: craig franke [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, November 19, 2002 3:42 PM
Subject: RE: How do I unsubscribe?


if those still don't work you, depending on your email client you could just
create a mail rule to automatically trash messages from the list [or auto
file them in another folder]

 [EMAIL PROTECTED] 11/19/02 09:36AM 
You can do the following:
- Describe what happened. (Did receive a feedback mail or not)
- Have look at the headers of your mail.
  Is the value of Return-Path the address that you used?

 -Original Message-
 From: Ronald Aronica [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, November 19, 2002 4:29 PM
 To: Tomcat Users List
 Subject: How do I unsubscribe?


 I have tried most everything including sending blank messages to:
 [EMAIL PROTECTED], and
 [EMAIL PROTECTED]
 ache.org;
 and a request to be removed from the list to
 [EMAIL PROTECTED] Nothing seems to work.  What
 should I do? HELP!


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



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



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


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




Tomcat with Access '97 IIS

2002-11-20 Thread Andoni
Hello,

I am going to try to get a web app working with Access '97  IIS for the
first time.

Does anyone know where I should start.  Presumably using an ODBC-JDBC bridge
driver??

Can I use regular SQL queries on this setup?  How about prepared statements?

I usually only use Oracle so I'm a bit daunted by the limitations this one
may pose.

Thanks for any help.

Andoni.

PS: Tomcat is 4.0.4 (version changeable if necessary)

A.


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




Re: Tomcat with Access '97 IIS

2002-11-20 Thread Andoni
If you think that's the biggest problem I can safely say this app will never
have 200K+ records.  It is an internal tool and will never be a public
web-site.

Andoni.

- Original Message -
From: peter lin [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, November 20, 2002 5:55 PM
Subject: Re: Tomcat with Access '97  IIS


 I'll have to third that sentiment.  avoid jdbc-odbc unless you
 absolutely have no other choice.

 Access is fine for light weight database, but once the database starts
 to grow, be aware that indexes start to fail miserably. I don't know if
 the latest version has the same problems of the past, but I do know
 everything from office 1997 and older starts to have index problems at
 around 200K+ records.  This is from first hand experience and
 tribulations of friends who develop database application in access and
 foxpro.

 it might be more work to change the database for the webapp, but it
 might save you more time down the line.

 peter



 Larry Meadors wrote:
 
  I will second this - do not use the jdbc-odbc bridge unless you
  absolutely have to.
 
  If there is ANY other path, take it instead.
 
  Larry
 

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




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




Re: storing passwords

2002-11-22 Thread Andoni
It's all  qualified.  As the first response to your question said, it
completely depends on what you want to do and how secure you want things to
be.  If you just use the input type=password  then your password will be
sent over the web in plain text.  That is only of any use for people looking
over the user's shoulder, but if that's all you think you need then go
ahead.  I would put it something like this:

Weak:

input type=password only.  = no encryption. This should always be done
anyway.

MD5 (or other 1-way encryption) at server = plain text while in transit to
server but useless to hacker of your system.

MD5 in JavaScript = encrypted while being sent but the same hash can be
sent by others so not perfect.

SSL = Fully Encrypted connection between browser and server.

Strong:

Hopefully others will suggest other methods and add to my scale.
Andoni.

- Original Message -
From: RXZ JLo [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, November 22, 2002 9:50 AM
Subject: Re: storing passwords


 Thanks to all of you for the responses.

 apart from this password I will be storing some other
 things too(they too are passwords but for some other
 things in the application). I cant use one way hash as
 I cant use them further. what mechanism should I
 follow in this case?

 Also, for the login case should I bother about
 encryption in the login form? Can I just use
 input type=password/ and rely on the brower?
 What are the pros and cons for this? If you see yahoo
 login, they generate md5 using javascript on the
 client side itself - is this really necessary?


 Thanks again.
 rf



 __
 Do you Yahoo!?
 Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
 http://mailplus.yahoo.com

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




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




Tomcat not processing JSP

2002-11-22 Thread Andoni
I have just got my tomcat server working at last.  I get an answer on the
port 8080 when I look that up.  I can also bring up /examples but I can only
see .html files in this.

I cannot get tomcat to unpack any .war files I give.
I cannot get tomcat to process any .jsp files it has.

I am running Tomcat 4.0.4 for OpenVMS!  I'm hoping it's not an
OpenVMS-specific problem.

Thanks in advance,
Andoni.


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




Re: Newbie Problems

2002-11-25 Thread Andoni
What do the error messages say?

I.e.: can you paste them into a message (and maybe your server.xml also)
then we could tell you what each one means.

Andoni.


- Original Message -
From: Bob Tilley [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Monday, November 25, 2002 6:03 PM
Subject: Newbie Problems


 Our shop is using Tomcat 4.0.5 and Apache 1.3.27 on FreeBSD with mixed
 results.  Apache can be brought up and down with the normal 'apachectl
 start|stop'.  Tomcat can be started normally via the startup.sh script but
 when the shutdown-sh script is run there is a burst of error messages from
 the parsing of server.xml.

 I am confused as to how no errors occur when I ./startup.sh the Tomcat
 server but the shutdown.sh script has problems with server.xml format.
 Don't both scripts actually deal with the same server.xml?

 Bob Tilley

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




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




WAR files not expanding.

2002-11-26 Thread Andoni
When I put a .war file over to my tomcat server it doesn't work.
- It only creates an empty directory in webapps.

If I put over the war and unzip the file, it works fine.

If I put over the .war file and set unpackWARs=false it does not work.
- The unpack command is understood though as it does not create the
directory in webapps

I am using Tomcat 4.0.4.  Has anyone come across anything similar?

Thanks in advance,

Andoni.


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




Host Context - Unpacking of WARs

2002-11-27 Thread Andoni
Hello,

I have two configurations: 1st one works 2nd doesn't. I want to get the 2nd
to work though as it stops .war files unpacking.  Can anyone tell me how to
make the 2nd one work?  The error I get is:

Forbidden
You don't have permission to access / on this server.

But I think that's coming from the Apache server so it isn't even getting to
tomcat?

Thanks,
Andoni.

 Host name=animo.andoni.[mydomain].ie debug=0
  appBase=webapps/animo
  unpackWARs=true
 Aliasandoni.[mydomain].ie/Alias
 Context path=
  docBase=
  debug=0
  workDir=[disk_name]/apache/jakarta/tomcat/work/animo
  reloadable=false
 /Context
 /Host

 Host name=animo.andoni.[mydomain].ie debug=0
  appBase=webapps/animo.war
  unpackWARs=false
 Aliasandoni.[mydomain].ie/Alias
 Context path=
  docBase=
  debug=0
  workDir=[disk_name]/apache/jakarta/tomcat/work/animo
  reloadable=false
 /Context
 /Host


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




Re: Host Context - Unpacking of WARs

2002-11-27 Thread Andoni
unpackwars=false should only mean that the app runs from the packed .war
file, or so the Tomcat documentation seems to say.

I do also have a web.xml but I don't see where this comes in to the
configuration of the Host elements?

Andoni.
- Original Message -
From: David Brown [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, November 27, 2002 11:47 AM
Subject: Re: Host  Context - Unpacking of WARs


 Andoni writes:

  Hello,
 
  I have two configurations: 1st one works 2nd doesn't. I want to get the
2nd
  to work though as it stops .war files unpacking.  Can anyone tell me how
to
  make the 2nd one work?  The error I get is:
 
  Forbidden
  You don't have permission to access / on this server.
 
  But I think that's coming from the Apache server so it isn't even
getting to
  tomcat?
 
  Thanks,
  Andoni.
 
   Host name=animo.andoni.[mydomain].ie debug=0
appBase=webapps/animo
unpackWARs=true
   Aliasandoni.[mydomain].ie/Alias
   Context path=
docBase=
debug=0
workDir=[disk_name]/apache/jakarta/tomcat/work/animo
reloadable=false
   /Context
   /Host
 
   Host name=animo.andoni.[mydomain].ie debug=0
appBase=webapps/animo.war
unpackWARs=false
   Aliasandoni.[mydomain].ie/Alias
   Context path=
docBase=
debug=0
workDir=[disk_name]/apache/jakarta/tomcat/work/animo
reloadable=false
   /Context
   /Host
 
 
  --
  To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
 



 Hello Andoni, so did u look at ur httpd.conf directives: directory...,
 alias... etc? but tc is a web server too when requests r handed off from
 apache. tc looks at / as docbase or appbase root so what u have in ur
war
 file becomes /application_context where application_context is the web
 app u have defined 4 tc to unpack. i don't see how the web app can execute
 if unpackWARS=false. r u defining a web.xml at all or r u only
interested
 in configuring server.xml? thanx, david.

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




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




Re: Host Context - Unpacking of WARs

2002-11-27 Thread Andoni
Unfortunately I have followed all the instructions to the letter and things
are not well.

I can get my whole config to work but I can't get the perks I was really
looking forward to having.
1. I have to manually unzip .war files into the webapps directory
2. I can't have webapps work directly from the unpacked war files.

Ah well, I'll plod along the inconvenient way.  It must at this stage be a
bug in the porting of Tomcat to OpenVMS as I cannot see any config that
works.

Later,
Andoni.

- Original Message -
From: David Brown [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, November 27, 2002 1:58 PM
Subject: Re: Host  Context - Unpacking of WARs


 Andoni writes:

  unpackwars=false should only mean that the app runs from the packed
.war
  file, or so the Tomcat documentation seems to say.
 
  I do also have a web.xml but I don't see where this comes in to the
  configuration of the Host elements?
 
  Andoni.
  - Original Message -
  From: David Brown [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Wednesday, November 27, 2002 11:47 AM
  Subject: Re: Host  Context - Unpacking of WARs
 
 
  Andoni writes:
 
   Hello,
  
   I have two configurations: 1st one works 2nd doesn't. I want to get
the
  2nd
   to work though as it stops .war files unpacking.  Can anyone tell me
how
  to
   make the 2nd one work?  The error I get is:
  
   Forbidden
   You don't have permission to access / on this server.
  
   But I think that's coming from the Apache server so it isn't even
  getting to
   tomcat?
  
   Thanks,
   Andoni.
  
Host name=animo.andoni.[mydomain].ie debug=0
 appBase=webapps/animo
 unpackWARs=true
Aliasandoni.[mydomain].ie/Alias
Context path=
 docBase=
 debug=0
 workDir=[disk_name]/apache/jakarta/tomcat/work/animo
 reloadable=false
/Context
/Host
  
Host name=animo.andoni.[mydomain].ie debug=0
 appBase=webapps/animo.war
 unpackWARs=false
Aliasandoni.[mydomain].ie/Alias
Context path=
 docBase=
 debug=0
 workDir=[disk_name]/apache/jakarta/tomcat/work/animo
 reloadable=false
/Context
/Host
  
  
   --
   To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
  
 
 
 
  Hello Andoni, so did u look at ur httpd.conf directives: directory...,
  alias... etc? but tc is a web server too when requests r handed off
from
  apache. tc looks at / as docbase or appbase root so what u have in ur
  war
  file becomes /application_context where application_context is the
web
  app u have defined 4 tc to unpack. i don't see how the web app can
execute
  if unpackWARS=false. r u defining a web.xml at all or r u only
  interested
  in configuring server.xml? thanx, david.
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
 
 
 
  --
  To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
 



 Hello Andoni, for sake of experimentation or argument try a minimally
 uncommented server.xml and go w/ ur web.xml (below WEB-INF not
 $CATALINE_HOME/conf/web.xml). in fact this begs the question: WEB-INF is
 created when the .war file is unpacked. this is the whole beauty of .ear,
 .war, .jar techonoly namely one word: deployment. i have 4 domains running
 and a lot of servlets and jsp running over the range of tc services
running
 both http and https. i can make any number of reasonable changes, update
and
 redeploy w/o a user so much as noticing a hiccup. all of dev is more or
less
 directly from tc docs reflected in books, online how-to's and ml's such as
 this one. follow the instructions of these resource and u should succeed.
 that's my $0.02, david.

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




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




Re: Make Tomcat serve a URL in the form of www.mywebapp.com

2002-11-28 Thread Andoni
Hi,

You need to go up another level in the tags of your server.xml.  The
container which holds your Context is the Host container whose name=
attribute is the domain name you want to call from your browser.

As for other names, if you want to have multiple Virtual Hosts you can have
multiple Host containers inside the Engine container each with one or
more Context containers.  If on the other had you just want  a single
VHost to be capable of being referred to by several names then you can use
one or more Aliasmyhost.com/Alias tags in your Host tag alongside your
contexts.

Basically though, the long and the short of it is that you should do much
more manual reading!!

HTH,

Andoni.

- Original Message -
From: Panos Konstantinidis [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, November 28, 2002 11:41 AM
Subject: Make Tomcat serve a URL in the form of www.mywebapp.com


   Hello more questions about Tomcat.

   After a few days and changes in the configuration
 files I managed to transfer all web application from
 Resin to Tomcat. What I would like to do now is to
 configure Tomcat to server a url in the form of
 www.mywebapp.com.

   mywebapp is configured under the /webapps folder. So
 far in order to run it I was doing
 http://localhost/mywebapp but I need to change it. I
 have defined the Context tag to be like:

 Context path=www.mywebapp.com
 docBase=C:\Tomcat4.1\webapps\mywebapp debug=0 /

   but with no luck. mywebapp is registered with a
 DNS server. What if I also want to have other
 webapplication in the form of: www.app1.mywebapp.com,
 www.app2.mywebapp.com etc?

   Any help is appreciated.

Thank you.

 Panos

 __
 Do you Yahoo!?
 Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
 http://mailplus.yahoo.com

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




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




Re: newbie question

2002-11-28 Thread Andoni
If you are only going to serve html, jpg, gif, css, etc. pages.  (i.e.
static text files) then you should not be using tomcat at all.  Instead you
should use Apache web server.

Only use Tomcat if you want to run Java based Web-applications.

If for some reason you MUST you Tomcat then put the files in a directory you
create under the webapps directory.  then put the name of your directory
on the end of your URL.  One other thing you must do though is create a
directory in your sub-directory called WEB-INF and in it put a text-file
called web.xml which has the following contents:


?xml version=1.0 encoding=UTF-8?
!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN
http://java.sun.com/j2ee/dtds/web-app_2_2.dtd;

web-app
/web-app


Hope that helps,

Andoni.



- Original Message -
From: Pascal Platteeuw [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, November 28, 2002 12:11 PM
Subject: newbie question


Hello,

I've installed tomcat but I still have some problems to make it run as I
want...
Tomcat is an Http server right ? Then how do I see the HTML page I write and
that are not in the tomcat root (my html pages, my images, and css are on a
separate disk...) ? Is there something I miss ?

Please help... I want to have tomcat installed in one place and all the web
site (html, css, image, jps, servlets,...) installed on another drive ? How
do i tell tomcat to go looking on the other drive...

Many thanks in advance...


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




Apache Mod_jk.conf file.

2002-11-28 Thread Andoni
I have my .conf files working fine, I just have a question that is bugging
me.

I am told everywhere to put my mod_jk.conf file under the /tomcat/conf/
directory and then include it in the bottom of my httpd.conf file.  Is there
any real reason for this separation?  Can I just take all that is in this
file and paste it into the bottom of my httpd.conf file where the include
statement is?

Thanks.

Andoni.


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




Re: http.conf

2002-11-28 Thread Andoni
Hi,

Have you checked that you have a folder called libexec in your apache
installation?
Does that folder contain a file called mod_jk-1.3.26.dll

I realise these things may seem obvious but I'm just asking if you've
checked them.

Then, are you sure that the mod_jk.c module has been compiled in to your
apache installation?  Have you tried working without this like altogether?

Andoni.

- Original Message -
From: mmichot [EMAIL PROTECTED]
To: Tomcat List [EMAIL PROTECTED]
Sent: Thursday, November 28, 2002 2:25 PM
Subject: http.conf


Hello,

I try to configure Apache2.0.43 to work with Tomcat4.1
I have add this lines at the end of the httpd.conf

LoadModule jk_module libexec/mod_jk-1.3.26.dll
AddModule mod_jk.c
JkWorkersFile C:/Tomcat4_1_12/conf/workers.properties
JkLogFile C:/Tomcat4_1_12/logs/mod_jk.log
JkLogLevel debug
Alias /examples C:/Tomcat4_1_12/webapps/examples
JkMount /examples/servlet/* testWorker
JkMount /examples/*.jsp testWorker
Location /examples/WEB-INF/
AllowOverride None
deny from all
/Location

And I receive thi error when I try to start Apache

Syntax error on line 1055 of /usr/local/Apache2/conf/httpd.conf:
Invalid command 'AddModule', perhaps mis-spelled or defined by a module not
included in the server configuration

Has someone an Idea ?

Thanks

Mike

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



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




Re: http.conf

2002-11-28 Thread Andoni
I do not understand your other small q.?

Do you want to know where I live?

A.
- Original Message -
From: mmichot [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, November 28, 2002 2:56 PM
Subject: Re: http.conf


Thanks for helping me!

the folder libexec exist
and the file mod_jk2-2.0.43.so exist (I m on linux)

But I have compiled Apache 2
just by the normal way
./configure
make
make install

PS : just an other small question, from which contry are leaving ?

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



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




Re: http.conf

2002-11-28 Thread Andoni
http://www.iana.org/cctld/cctld-whois.htm

.ie is Ireland.

Andoni.

- Original Message -
From: mmichot [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, November 28, 2002 3:16 PM
Subject: Re: http.conf


yes because it's the first time I see an adress ended by ie
indigo.ie

what about my first question
On Thursday 28 November 2002 04:11 pm, Andoni wrote:
 I do not understand your other small q.?

 Do you want to know where I live?

 A.
 - Original Message -
 From: mmichot [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Thursday, November 28, 2002 2:56 PM
 Subject: Re: http.conf


 Thanks for helping me!

 the folder libexec exist
 and the file mod_jk2-2.0.43.so exist (I m on linux)

 But I have compiled Apache 2
 just by the normal way
 ./configure
 make
 make install

 PS : just an other small question, from which contry are leaving ?


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



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




Re: Apache Mod_jk.conf file.

2002-11-28 Thread Andoni
I have version 4.0.4

Andoni.

- Original Message -
From: David Brown [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, November 28, 2002 5:23 PM
Subject: Re: Apache Mod_jk.conf file.


 Andoni writes:

  I have my .conf files working fine, I just have a question that is
bugging
  me.
 
  I am told everywhere to put my mod_jk.conf file under the /tomcat/conf/
  directory and then include it in the bottom of my httpd.conf file.  Is
there
  any real reason for this separation?  Can I just take all that is in
this
  file and paste it into the bottom of my httpd.conf file where the
include
  statement is?
 
  Thanks.
 
  Andoni.
 
 
  --
  To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
 



 Hello Andoni, what version of tc do u have installed? thanx, david.

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




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




Re: Different appBase for more virtual hosts

2002-12-04 Thread Andoni
You can have as many hosts as you like in an engine.

Andoni.


- Original Message -
From: cris.moreira [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, December 04, 2002 11:20 AM
Subject: Different appBase for more virtual hosts


 Hello. I'd like to know, or if you have some server.xml example to show
me,
 how can I configure more than one Virtual Host in Tomcat, and each host
 pointing to a different directory of webapps. I know that I must set up
the
 parameter appBase in the tag Host.../Host, but can I have more than
 one host... inside an Engine or must I create another Service of it?
 Thanks a lot.

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




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




Re: problems executing the examples.

2002-12-09 Thread Andoni
See this error from one of the files you posted:

[ERROR] Digester - -Parse Fatal Error at line 307 column 39: The string --
is
not permitted within comments. org.xml.sax.SAXParseException: The string
--
is not permitted within comments.

Try doing a text search using grep (if in solaris) for the string --

See what you get.

Andoni.


- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, December 07, 2002 4:57 PM
Subject: problems executing the examples.


 Hello, i install tomcat 4.1.12 . The first page (http://localhost:8080)
work's
 fine. But when i try to see te jsp examples or the servlet examples,
appear
 this error:


 HTTP Status 404 - /examples/jsp/

 --
--

 type Status report

 message /examples/jsp/

 description The requested resource (/examples/jsp/) is not available.


 --
--

 Apache Tomcat/4.1.12



 I see the logs, and this show this Errors:

 localhost_log.txt tells:

 2002-12-07 10:51:03 StandardHost[localhost]: Removing web application at
 context path /examples
 2002-12-07 10:51:03 StandardHost[localhost]: ContainerBase.removeChild:
stop:
 LifecycleException:  Container StandardContext[/examples] has not been
started
 at org.apache.catalina.core.StandardContext.stop
 (StandardContext.java:3569)
 at org.apache.catalina.core.ContainerBase.removeChild
 (ContainerBase.java:1036)
 at org.apache.catalina.core.StandardHostDeployer.remove
 (StandardHostDeployer.java:420)


 localhost_examples_logs.txt Tells:

 2002-12-07 11:47:30 ContextConfig[/examples]: Marking this application
 unavailable due to previous error(s)
 2002-12-07 11:47:30 StandardManager[/examples]: Seeding random number
generator
 class java.security.SecureRandom
 2002-12-07 11:47:30 StandardManager[/examples]: Seeding of random number
 generator has been completed
 2002-12-07 11:47:30 StandardContext[/examples]: Context startup failed due
to
 previous errors



 localhost_admin_log.txt Tells:2002-12-07 11:47:30 ContextConfig[/admin]:
 Marking this application unavailable due to previous error(s)
 2002-12-07 11:47:30 StandardManager[/admin]: Seeding random number
generator
 class java.security.SecureRandom
 2002-12-07 11:47:30 StandardManager[/admin]: Seeding of random number
generator
 has been completed
 2002-12-07 11:47:30 StandardContext[/admin]: Context startup failed due to
 previous errors


 and catalina.out Tells:

 Starting service Tomcat-Standalone
 Apache Tomcat/4.1.12
 org.xml.sax.SAXParseException: The string -- is not permitted within
comments.
 at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException
 (Unknown Source)
 at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
 at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
 at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
 at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)
 at org.apache.xerces.impl.XMLScanner.scanComment(Unknown Source)
 at org.apache.xerces.impl.XMLDTDScannerImpl.scanComment(Unknown Source)
 at org.apache.xerces.impl.XMLDTDScannerImpl.scanDecls(Unknown Source)
 at org.apache.xerces.impl.XMLDTDScannerImpl.scanDTDExternalSubset
 (Unknown Source)
 at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch
 (Unknown Source)
 at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument
 (Unknown Source)
 at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
 at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
 at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
 at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
 at org.apache.commons.digester.Digester.parse(Digester.java:1514)
 at org.apache.catalina.startup.ContextConfig.tldScanStream
 (ContextConfig.java:977)
 at org.apache.catalina.startup.ContextConfig.tldScanTld
 (ContextConfig.java:1006)
 at org.apache.catalina.startup.ContextConfig.tldScan
 (ContextConfig.java:870)
 at org.apache.catalina.startup.ContextConfig.start
 (ContextConfig.java:647)
 at org.apache.catalina.startup.ContextConfig.lifecycleEvent
 (ContextConfig.java:243)
 at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent
 (LifecycleSupport.java:166)
 at org.apache.catalina.core.StandardContext.start
 (StandardContext.java:3493)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
 at org.apache.catalina.core.StandardEngine.start
 (StandardEngine.java:347)
 at org.apache.catalina.core.StandardService.start
 (StandardService.java:497)
 at org.apache.catalina.core.StandardServer.start
 (StandardServer.java:2189)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:510

Re: URGENT : Multiple host in Tomcat

2002-12-10 Thread Andoni
Have you created a DNS entry pointing at your IP address for each name?

Does your Server.xml file have a Host/Host container for each virtual
host you want to create?

Look into these things and write again if need be.

Andoni.


- Original Message -
From: Laxmikanth M.S. [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, December 10, 2002 12:35 PM
Subject: URGENT : Multiple host in Tomcat


 Hi all,
 I am creating multiple host (virtual Host) in tomcat 4.1.12 Server . Every
 host contains context as/.
 for eg. host 1 is testhost1
 and host2 is testhost2
 how to access the site.
 please let me know soon
 thanks in advance
 laxmiaknth


 *
 Disclaimer: The information in this e-mail and any attachments is
 confidential / privileged. It is intended solely for the addressee or
 addressees. If you are not the addressee indicated in this message, you
may
 not copy or deliver this message to anyone. In such case, you should
destroy
 this message and kindly notify the sender by reply email. Please advise
 immediately if you or your employer does not consent to Internet email for
 messages of this kind.
 *

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




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




Re: URGENT : Multiple host in Tomcat

2002-12-10 Thread Andoni
You want to use the same DNS name and just change the  port number to bring
up different web-sites?

http://www.mysite.com:1234  ==  context 1

http://www.mysite.com:4321 == context 2

etc.??

I think you cannot do that using only tomcat.  You can do nearly anything
with Apache though so you may have to go that way and just rewrite the URL
into the tomcat one calling the context path.

Andoni.


- Original Message -
From: Laxmikanth M.S. [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, December 10, 2002 1:05 PM
Subject: RE: URGENT : Multiple host in Tomcat


 ya all that u have mentioned is there
 so it means we should have DNS entry for all the virtualhost or can it be
 done with different port numbers as done in Apache

 Regards
 Laxmikanth M S
 Off*  : 91-80-6610330 extn 1256
 Res* : 91-80-5267150
 http://www.sonata-software.com

  Coming together is the beginning, staying together is progress and
working
  together is Success
 What lies behind us and what lies before us are tiny matters compared to
 what lies within us  - Emerson


  -Original Message-
  From: Andoni [SMTP:[EMAIL PROTECTED]]
  Sent: Tuesday, December 10, 2002 6:34 PM
  To: Tomcat Users List
  Subject: Re: URGENT : Multiple host in Tomcat
 
  Have you created a DNS entry pointing at your IP address for each name?
 
  Does your Server.xml file have a Host/Host container for each
virtual
  host you want to create?
 
  Look into these things and write again if need be.
 
  Andoni.
 
 
  - Original Message -
  From: Laxmikanth M.S. [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Tuesday, December 10, 2002 12:35 PM
  Subject: URGENT : Multiple host in Tomcat
 
 
   Hi all,
   I am creating multiple host (virtual Host) in tomcat 4.1.12 Server .
  Every
   host contains context as/.
   for eg. host 1 is testhost1
   and host2 is testhost2
   how to access the site.
   please let me know soon
   thanks in advance
   laxmiaknth
  
  
   *
   Disclaimer: The information in this e-mail and any attachments is
   confidential / privileged. It is intended solely for the addressee or
   addressees. If you are not the addressee indicated in this message,
you
  may
   not copy or deliver this message to anyone. In such case, you should
  destroy
   this message and kindly notify the sender by reply email. Please
advise
   immediately if you or your employer does not consent to Internet email
  for
   messages of this kind.
   *
  
   --
   To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
  
  
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 *
 Disclaimer: The information in this e-mail and any attachments is
 confidential / privileged. It is intended solely for the addressee or
 addressees. If you are not the addressee indicated in this message, you
may
 not copy or deliver this message to anyone. In such case, you should
destroy
 this message and kindly notify the sender by reply email. Please advise
 immediately if you or your employer does not consent to Internet email for
 messages of this kind.
 *

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




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




Re: URGENT : Multiple host in Tomcat

2002-12-10 Thread Andoni
What do you want to achieve?

How many servlets to you have?

How many Hosts in Server.xml?

Andoni.


- Original Message -
From: Laxmikanth M.S. [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, December 10, 2002 1:22 PM
Subject: RE: URGENT : Multiple host in Tomcat


 I have mapped my host to http://ftisites.sonata-software.com and have one
 context /.
 i am getting the error which can be found in the attached file
 thanks in advacne

  Apache Tomcat-4_1_12 - Error report.mht

 Regards
 Laxmikanth M S
 Off*  : 91-80-6610330 extn 1256
 Res* : 91-80-5267150
 http://www.sonata-software.com

  Coming together is the beginning, staying together is progress and
working
  together is Success
 What lies behind us and what lies before us are tiny matters compared to
 what lies within us  - Emerson


  -Original Message-
  From: Andoni [SMTP:[EMAIL PROTECTED]]
  Sent: Tuesday, December 10, 2002 6:46 PM
  To: Tomcat Users List
  Subject: Re: URGENT : Multiple host in Tomcat
 
  You want to use the same DNS name and just change the  port number to
  bring
  up different web-sites?
 
  http://www.mysite.com:1234  ==  context 1
 
  http://www.mysite.com:4321 == context 2
 
  etc.??
 
  I think you cannot do that using only tomcat.  You can do nearly
anything
  with Apache though so you may have to go that way and just rewrite the
URL
  into the tomcat one calling the context path.
 
  Andoni.
 
 
  - Original Message -
  From: Laxmikanth M.S. [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Tuesday, December 10, 2002 1:05 PM
  Subject: RE: URGENT : Multiple host in Tomcat
 
 
   ya all that u have mentioned is there
   so it means we should have DNS entry for all the virtualhost or can it
  be
   done with different port numbers as done in Apache
  
   Regards
   Laxmikanth M S
   Off*  : 91-80-6610330 extn 1256
   Res* : 91-80-5267150
   http://www.sonata-software.com
  
Coming together is the beginning, staying together is progress and
  working
together is Success
   What lies behind us and what lies before us are tiny matters compared
to
   what lies within us  - Emerson
  
  
-Original Message-
From: Andoni [SMTP:[EMAIL PROTECTED]]
Sent: Tuesday, December 10, 2002 6:34 PM
To: Tomcat Users List
Subject: Re: URGENT : Multiple host in Tomcat
   
Have you created a DNS entry pointing at your IP address for each
  name?
   
Does your Server.xml file have a Host/Host container for each
  virtual
host you want to create?
   
Look into these things and write again if need be.
   
Andoni.
   
   
- Original Message -
From: Laxmikanth M.S. [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, December 10, 2002 12:35 PM
Subject: URGENT : Multiple host in Tomcat
   
   
 Hi all,
 I am creating multiple host (virtual Host) in tomcat 4.1.12 Server
.
Every
 host contains context as/.
 for eg. host 1 is testhost1
 and host2 is testhost2
 how to access the site.
 please let me know soon
 thanks in advance
 laxmiaknth



  *
 Disclaimer: The information in this e-mail and any attachments is
 confidential / privileged. It is intended solely for the addressee
  or
 addressees. If you are not the addressee indicated in this
message,
  you
may
 not copy or deliver this message to anyone. In such case, you
should
destroy
 this message and kindly notify the sender by reply email. Please
  advise
 immediately if you or your employer does not consent to Internet
  email
for
 messages of this kind.

  *

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


   
   
--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
   *
   Disclaimer: The information in this e-mail and any attachments is
   confidential / privileged. It is intended solely for the addressee or
   addressees. If you are not the addressee indicated in this message,
you
  may
   not copy or deliver this message to anyone. In such case, you should
  destroy
   this message and kindly notify the sender by reply email. Please
advise
   immediately if you or your employer does not consent to Internet email
  for
   messages of this kind.
   *
  
   --
   To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
  
  
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto

DataBase connection pooling.

2002-12-16 Thread Andoni
Hello,

Do you all write your own connection pooling code or is there some open
source software to do this?

Also has anybody gotten deployment of .war files to work with
unpackWARs=false?

Thanks,

Andoni.


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




unpackWARs=false?

2002-12-17 Thread Andoni
Has anybody been able to deploy .war files with this set?

unpackWARs=false

If so can you post a mocked up part of your server.xml and directory
structure please.

Andoni.


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




Configuration help: requested resource not available??

2002-12-19 Thread Andoni
Hello:

this is my server.xml

   Host name=animolocal.andoni.eurokom.ie appBase=webapps/animo
unpackWARs=true
Context path= docBase=c:/tomcat40/webapps/animo
crossContext=false debug=0 reloadable=false/
   /Host


Then I go to my URL andonilocal.andoni.eurokom.ie and I get a Tomcat screen
(so it sees tomcat) saying

type Status report

message /index.jsp

description The requested resource (/index.jsp) is not available.



but the .war file has been expanded and the index.jsp is in the
c:\tomcat40\webapps\animo folder.

Please help.



Andoni.


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




Re: UTF-8 vs ISO-8859-1 and really screwed up webpages.

2002-12-19 Thread Andoni
I am having this problem aswell.

the pages I produce are coming up with all sorts of Japanese characters etc.
in them.
I have already inserted the Meta tags and converted the files using the
saveAs / UTF8 feature on my editor.

Now I am going to add the %@ page contentType = text/html;charset=UTF-8
%
tag suggested by Bogdan below, is there anything else I must do?

Andoni.

- Original Message -
From: Bogdan Kiszka [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Thursday, December 19, 2002 9:25 AM
Subject: RE: UTF-8 vs ISO-8859-1 and really screwed up webpages.


In the JSP page, use a page directive to set the content type:
%@ page contentType = text/html;charset=UTF-8 %


-Original Message-
From: Kristj?n Bjarni Gu?mundsson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 19, 2002 9:50 AM
To: Tomcat Users List
Subject: Re: UTF-8 vs ISO-8859-1 and really screwed up webpages.


Yes, you are storing the page as ISO-8859-1 so you must serve the page
as
ISO-8859-1
changing the meta tag to UTF-8 doesn't magically convert the page to
UTF-8.

If you want to serve the page as UTF-8 you must also save the page as
UTF-8.
The meta tag is just a hint to the browser which charset the page is
using.

Check you html editor to see if you can change the encoding to UTF-8
when
saving.

Adam Greene [EMAIL PROTECTED] wrote on 18.12.2002 20:32:37:

 I have two webpages and both contain the letter  (litterally written
into
 the page), but one page displays it as  and the other page displays
it
as
 ?C and I cannot figure out why.  I have tried setting (via META Tags)
the
 language to UTF-8 and to ISO-8859-1 and I can only get one page to
work
at a
 time (under UTF-8, the  comes up as a block on the page that did work

under
 ISO-8859-1).  I can see no difference in the code.

 Does anyone have any ideas about what is going on??



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



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



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




Re: UTF-8 vs ISO-8859-1 and really screwed up webpages.

2002-12-19 Thread Andoni
It tells me I can't have two contentType entries when I put in the JSP
tag!!

Andoni.
- Original Message -
From: Andoni [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, December 19, 2002 12:58 PM
Subject: Re: UTF-8 vs ISO-8859-1 and really screwed up webpages.


 I am having this problem aswell.

 the pages I produce are coming up with all sorts of Japanese characters
etc.
 in them.
 I have already inserted the Meta tags and converted the files using the
 saveAs / UTF8 feature on my editor.

 Now I am going to add the %@ page contentType = text/html;charset=UTF-8
 %
 tag suggested by Bogdan below, is there anything else I must do?

 Andoni.

 - Original Message -
 From: Bogdan Kiszka [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Thursday, December 19, 2002 9:25 AM
 Subject: RE: UTF-8 vs ISO-8859-1 and really screwed up webpages.


 In the JSP page, use a page directive to set the content type:
 %@ page contentType = text/html;charset=UTF-8 %


 -Original Message-
 From: Kristj?n Bjarni Gu?mundsson [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 19, 2002 9:50 AM
 To: Tomcat Users List
 Subject: Re: UTF-8 vs ISO-8859-1 and really screwed up webpages.


 Yes, you are storing the page as ISO-8859-1 so you must serve the page
 as
 ISO-8859-1
 changing the meta tag to UTF-8 doesn't magically convert the page to
 UTF-8.

 If you want to serve the page as UTF-8 you must also save the page as
 UTF-8.
 The meta tag is just a hint to the browser which charset the page is
 using.

 Check you html editor to see if you can change the encoding to UTF-8
 when
 saving.

 Adam Greene [EMAIL PROTECTED] wrote on 18.12.2002 20:32:37:

  I have two webpages and both contain the letter  (litterally written
 into
  the page), but one page displays it as  and the other page displays
 it
 as
  ?C and I cannot figure out why.  I have tried setting (via META Tags)
 the
  language to UTF-8 and to ISO-8859-1 and I can only get one page to
 work
 at a
  time (under UTF-8, the  comes up as a block on the page that did work

 under
  ISO-8859-1).  I can see no difference in the code.
 
  Does anyone have any ideas about what is going on??
 
 
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


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



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




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




Re: UTF-8 vs ISO-8859-1 and really screwed up webpages.

2002-12-19 Thread Andoni
No,  I don't.  Will adding one in help do you think?

Andoni.


- Original Message -
From: m batsis [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, December 19, 2002 1:34 PM
Subject: Re: UTF-8 vs ISO-8859-1 and really screwed up webpages.


 Do you have an XML prolog? Even if you save your file using URF-8 you
 have to add the @page on the line *after* the XML prolog (if any), like:

 ?xml version=1.0 encoding=UTF-8?
 %@ page contentType = text/html;charset=UTF-8


 Manos


 Andoni wrote:
  It tells me I can't have two contentType entries when I put in the JSP
  tag!!
 
  Andoni.
  - Original Message -
  From: Andoni [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Thursday, December 19, 2002 12:58 PM
  Subject: Re: UTF-8 vs ISO-8859-1 and really screwed up webpages.
 
 
 
 I am having this problem aswell.
 
 the pages I produce are coming up with all sorts of Japanese characters
 
  etc.
 
 in them.
 I have already inserted the Meta tags and converted the files using the
 saveAs / UTF8 feature on my editor.
 
 Now I am going to add the %@ page contentType =
text/html;charset=UTF-8
 %
 tag suggested by Bogdan below, is there anything else I must do?
 
 Andoni.
 
 - Original Message -
 From: Bogdan Kiszka [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Thursday, December 19, 2002 9:25 AM
 Subject: RE: UTF-8 vs ISO-8859-1 and really screwed up webpages.
 
 
 In the JSP page, use a page directive to set the content type:
 %@ page contentType = text/html;charset=UTF-8 %
 
 
 -Original Message-
 From: Kristj?n Bjarni Gu?mundsson [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 19, 2002 9:50 AM
 To: Tomcat Users List
 Subject: Re: UTF-8 vs ISO-8859-1 and really screwed up webpages.
 
 
 Yes, you are storing the page as ISO-8859-1 so you must serve the page
 as
 ISO-8859-1
 changing the meta tag to UTF-8 doesn't magically convert the page to
 UTF-8.
 
 If you want to serve the page as UTF-8 you must also save the page as
 UTF-8.
 The meta tag is just a hint to the browser which charset the page is
 using.
 
 Check you html editor to see if you can change the encoding to UTF-8
 when
 saving.
 
 Adam Greene [EMAIL PROTECTED] wrote on 18.12.2002 20:32:37:
 
 
 I have two webpages and both contain the letter  (litterally written
 
 into
 
 the page), but one page displays it as  and the other page displays
 
 it
 as
 
 ?C and I cannot figure out why.  I have tried setting (via META Tags)
 
 the
 
 language to UTF-8 and to ISO-8859-1 and I can only get one page to
 
 work
 at a
 
 time (under UTF-8, the  comes up as a block on the page that did work
 
 under
 
 ISO-8859-1).  I can see no difference in the code.
 
 Does anyone have any ideas about what is going on??
 
 
 
 --
 To unsubscribe, e-mail:
 
 mailto:[EMAIL PROTECTED]
 
 For additional commands, e-mail:
 
 mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe, e-mail:
 
  mailto:[EMAIL PROTECTED]
 
 For additional commands, e-mail:
 
  mailto:[EMAIL PROTECTED]
 
 
 
 
  --
  To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
 
 


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




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




Re: UTF-8 vs ISO-8859-1 and really screwed up webpages.

2002-12-19 Thread Andoni
Are the HTML meta tags and the JSP tags interchangeable?  i.e. are they the
same thing?

Andoni.

- Original Message -
From: Bogdan Kiszka [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Thursday, December 19, 2002 1:45 PM
Subject: RE: UTF-8 vs ISO-8859-1 and really screwed up webpages.


It is perfectly right. You must take care not to have page directive
with contentType attribute in any included pages. If you have only one
such an entry per page then everything is alright.
I suggest to start with simple pages and then move to sophisticated
ones.
Bogdan

-Original Message-
From: Andoni [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 19, 2002 2:17 PM
To: Tomcat Users List
Subject: Re: UTF-8 vs ISO-8859-1 and really screwed up webpages.


It tells me I can't have two contentType entries when I put in the JSP
tag!!

Andoni.
- Original Message -
From: Andoni [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, December 19, 2002 12:58 PM
Subject: Re: UTF-8 vs ISO-8859-1 and really screwed up webpages.


 I am having this problem aswell.

 the pages I produce are coming up with all sorts of Japanese
characters
etc.
 in them.
 I have already inserted the Meta tags and converted the files using
the
 saveAs / UTF8 feature on my editor.

 Now I am going to add the %@ page contentType =
text/html;charset=UTF-8
 %
 tag suggested by Bogdan below, is there anything else I must do?

 Andoni.

 - Original Message -
 From: Bogdan Kiszka [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Thursday, December 19, 2002 9:25 AM
 Subject: RE: UTF-8 vs ISO-8859-1 and really screwed up webpages.


 In the JSP page, use a page directive to set the content type:
 %@ page contentType = text/html;charset=UTF-8 %


 -Original Message-
 From: Kristj?n Bjarni Gu?mundsson [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 19, 2002 9:50 AM
 To: Tomcat Users List
 Subject: Re: UTF-8 vs ISO-8859-1 and really screwed up webpages.


 Yes, you are storing the page as ISO-8859-1 so you must serve the page
 as
 ISO-8859-1
 changing the meta tag to UTF-8 doesn't magically convert the page to
 UTF-8.

 If you want to serve the page as UTF-8 you must also save the page as
 UTF-8.
 The meta tag is just a hint to the browser which charset the page is
 using.

 Check you html editor to see if you can change the encoding to UTF-8
 when
 saving.

 Adam Greene [EMAIL PROTECTED] wrote on 18.12.2002 20:32:37:

  I have two webpages and both contain the letter  (litterally
written
 into
  the page), but one page displays it as  and the other page displays
 it
 as
  ?C and I cannot figure out why.  I have tried setting (via META
Tags)
 the
  language to UTF-8 and to ISO-8859-1 and I can only get one page to
 work
 at a
  time (under UTF-8, the  comes up as a block on the page that did
work

 under
  ISO-8859-1).  I can see no difference in the code.
 
  Does anyone have any ideas about what is going on??
 
 
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


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



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




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



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



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




Re: UTF-8 vs ISO-8859-1 and really screwed up webpages.

2002-12-19 Thread Andoni
Still does not seem to be working just right.

The browser recognises that the pages is UTF8 but it puts some strange
characters in the top-left corner of the screen.

How can I stop this happening?

- Original Message -
From: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, December 19, 2002 2:38 PM
Subject: Re: UTF-8 vs ISO-8859-1 and really screwed up webpages.


I think they're supposed to be, but I have found that the META tags
sometimes don't seem to work, whereas the JSP directive seems to be more
reliable.





Andoni [EMAIL PROTECTED]
12/19/02 08:37 AM
Please respond to Tomcat Users List


To: Tomcat Users List [EMAIL PROTECTED]
cc:
Subject:Re: UTF-8 vs ISO-8859-1 and really screwed up
webpages.


Are the HTML meta tags and the JSP tags interchangeable?  i.e. are they
the
same thing?

Andoni.

- Original Message -
From: Bogdan Kiszka [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Thursday, December 19, 2002 1:45 PM
Subject: RE: UTF-8 vs ISO-8859-1 and really screwed up webpages.


It is perfectly right. You must take care not to have page directive
with contentType attribute in any included pages. If you have only one
such an entry per page then everything is alright.
I suggest to start with simple pages and then move to sophisticated
ones.
Bogdan

-Original Message-
From: Andoni [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 19, 2002 2:17 PM
To: Tomcat Users List
Subject: Re: UTF-8 vs ISO-8859-1 and really screwed up webpages.


It tells me I can't have two contentType entries when I put in the JSP
tag!!

Andoni.
- Original Message -
From: Andoni [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, December 19, 2002 12:58 PM
Subject: Re: UTF-8 vs ISO-8859-1 and really screwed up webpages.


 I am having this problem aswell.

 the pages I produce are coming up with all sorts of Japanese
characters
etc.
 in them.
 I have already inserted the Meta tags and converted the files using
the
 saveAs / UTF8 feature on my editor.

 Now I am going to add the %@ page contentType =
text/html;charset=UTF-8
 %
 tag suggested by Bogdan below, is there anything else I must do?

 Andoni.




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




Re: UTF-8 vs ISO-8859-1 and really screwed up webpages.

2002-12-19 Thread Andoni
?

That's i with an umlout, right double carret and upsidedown question mark.

That's a fairly common one but there are other strings that appear.

Andoni.

- Original Message -
From: Kirk, Christopher [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Thursday, December 19, 2002 3:21 PM
Subject: RE: UTF-8 vs ISO-8859-1 and really screwed up webpages.



 What are the strange characters?   You could be looking at the optional
 UTF-8 'magic header'.. a short character sequence that marks the file as
 being UTF-8.

 - Chris.

 -Original Message-
 From: Andoni [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 19, 2002 3:18 PM
 To: Tomcat Users List
 Subject: Re: UTF-8 vs ISO-8859-1 and really screwed up webpages.


 Still does not seem to be working just right.

 The browser recognises that the pages is UTF8 but it puts some strange
 characters in the top-left corner of the screen.

 How can I stop this happening?

 - Original Message -
 From: [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Thursday, December 19, 2002 2:38 PM
 Subject: Re: UTF-8 vs ISO-8859-1 and really screwed up webpages.


 I think they're supposed to be, but I have found that the META tags
 sometimes don't seem to work, whereas the JSP directive seems to be more
 reliable.





 Andoni [EMAIL PROTECTED]
 12/19/02 08:37 AM
 Please respond to Tomcat Users List


 To: Tomcat Users List [EMAIL PROTECTED]
 cc:
 Subject:Re: UTF-8 vs ISO-8859-1 and really screwed up
 webpages.


 Are the HTML meta tags and the JSP tags interchangeable?  i.e. are they
 the
 same thing?

 Andoni.

 - Original Message -
 From: Bogdan Kiszka [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Thursday, December 19, 2002 1:45 PM
 Subject: RE: UTF-8 vs ISO-8859-1 and really screwed up webpages.


 It is perfectly right. You must take care not to have page directive
 with contentType attribute in any included pages. If you have only one
 such an entry per page then everything is alright.
 I suggest to start with simple pages and then move to sophisticated
 ones.
 Bogdan

 -Original Message-
 From: Andoni [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 19, 2002 2:17 PM
 To: Tomcat Users List
 Subject: Re: UTF-8 vs ISO-8859-1 and really screwed up webpages.


 It tells me I can't have two contentType entries when I put in the JSP
 tag!!

 Andoni.
 - Original Message -
 From: Andoni [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Thursday, December 19, 2002 12:58 PM
 Subject: Re: UTF-8 vs ISO-8859-1 and really screwed up webpages.


  I am having this problem aswell.
 
  the pages I produce are coming up with all sorts of Japanese
 characters
 etc.
  in them.
  I have already inserted the Meta tags and converted the files using
 the
  saveAs / UTF8 feature on my editor.
 
  Now I am going to add the %@ page contentType =
 text/html;charset=UTF-8
  %
  tag suggested by Bogdan below, is there anything else I must do?
 
  Andoni.
 



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






 --
 NOTICE:  The information contained in this electronic mail transmission is
 intended by Convergys Corporation for the use of the named individual or
 entity to which it is directed and may contain information that is
 privileged or otherwise confidential.  If you have received this
electronic
 mail transmission in error, please delete it from your system without
 copying or forwarding it, and notify the sender of the error by reply
email
 or by telephone (collect), so that the sender's address records can be
 corrected.


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




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




Re: enterprises that use Tomcat as Web Server.

2003-01-07 Thread Andoni
In regard to your query I'm sure you would understand if I pointed out that
most commercially owned businesses are quite sensitive about telling anybody
outside of their organisation any details of their computer infrastructure
and especially a public interface of their computer infrastructure like a
web server.

I am sure you are not looking for this information to help you hack in to
companies but I assure you it would be useful to many internet hackers.

For this reason alone I don't see you getting many responses to your query.

On the other hand you can test the make of any web server by downloading a
program like visual route (http://www.visualware.com/visualroute/index.html)
and typing in the name of a domain whose web server you wan to know the type
of.

Regards,

Andoni.

- Original Message -
From: Sérgio Rocha [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, January 06, 2003 4:37 PM
Subject: enterprises that use Tomcat as Web Server.






 I need a list of enterprises that use Tomcat as Web Server.
 Can someboby help me?

 _
 MSN Hotmail, o maior webmail do Brasil. http://www.hotmail.com


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




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




Java - MTS - Oracle... Good friends??

2003-01-07 Thread Andoni
Has anyone had problems with connection pooling and MTS when connecting to
Oracle 9i?

What are the pitfalls?  I am using Tomcat 4.0.4, Java 1.3 and I have been
having a lot of problems which I have only just traced back to these.

Andoni.


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




Re: Virtual hosting and mod_jk

2003-01-09 Thread Andoni
It is definitely not necessary to rename the .war file to ROOT.  There is no
special significance in that name.

Andoni.
- Original Message -
From: Noel J. Bergman [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, January 09, 2003 5:32 PM
Subject: RE: Virtual hosting and mod_jk


  and I am able to access a single virtual host (e.g. myapplication)
located
  in the tomcat/webapps/myapplication directory using a url like that:
  http://www.mydomain.com/myapplication/index.jsp

  However I would like to be able to access the files in that directory
  without using the path /myapplication, i.e.
 
  http://www.mydomain.com/index.jsp

 Have you tried to rename myapplication/ to ROOT/, or adjust your Context
 path= ... / element?

 --- Noel


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




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




Re: file name

2003-01-14 Thread Andoni
response.setHeader(Content-Disposition, attachment;
filename=SuggestedFileName.pdf);


- Original Message -
From: Felipe Schnack [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, January 14, 2003 10:37 AM
Subject: file name


  I have a servlet that generates pdf files on the fly
  but when the browser opens the save as... dialog, the suggested
default filename is my servlet's URL... I would like it to suggest
another file name, how can i do that?

--

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

Centro Universitário Ritter dos Reis
http://www.ritterdosreis.br
[EMAIL PROTECTED]
Fone/Fax.: (51)32303341


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



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




Release notes for 4.0.4

2003-01-15 Thread Andoni
Hi,

I have deleted the docs from my tomcat installation and I am looking for the
release notes for version 4.0.4 on the internet now.

Can somebody please post the URL, as I can't seem to find them.

Thanks in advance,

Andoni.


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




JSP fine but no Java.

2003-01-16 Thread Andoni
Hello,

I am having a really annoying problem that I hope somebody can help me with.

My tomcat will run .jsp files fine and process them perfectly but will not
even consider using a .class file.

My app has jsps with javabeans linked in through tags in the .jsp files.  In
fact any java code in the .jsp files seems to work fine until a java class
needs to be called.

Please help as I haven't got much hair left from pulling it all out ;)

Regards

Andoni.


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




Re: JSP fine but no Java.

2003-01-16 Thread Andoni
I realise a .class file cannot be served to a browser etc. but why can it
not be used by my application.

It works most of the time, unfortunately I have just changed something in
the config and now it's not working


- Original Message -
From: Collins, Jim [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Thursday, January 16, 2003 1:16 PM
Subject: RE: JSP fine but no Java.


 Tomcat can't serve a .class file in the same way it could a .html or .jsp.

  -Original Message-
  From: Andoni [mailto:[EMAIL PROTECTED]]
  Sent: 16 January 2003 13:12
  To: Tomcat Users List
  Subject: JSP fine but no Java.
 
 
  Hello,
 
  I am having a really annoying problem that I hope somebody
  can help me with.
 
  My tomcat will run .jsp files fine and process them perfectly
  but will not
  even consider using a .class file.
 
  My app has jsps with javabeans linked in through tags in the
  .jsp files.  In
  fact any java code in the .jsp files seems to work fine until
  a java class
  needs to be called.
 
  Please help as I haven't got much hair left from pulling it all out ;)
 
  Regards
 
  Andoni.
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 


 PLEASE READ: The information contained in this email is confidential
 and intended for the named recipient(s) only. If you are not an intended
 recipient of this email you must not copy, distribute or take any
 further action in reliance on it and you should delete it and notify the
 sender immediately. Email is not a secure method of communication and
 Nomura International plc cannot accept responsibility for the accuracy
 or completeness of this message or any attachment(s). Please examine this
 email for virus infection, for which Nomura International plc accepts
 no responsibility. If verification of this email is sought then please
 request a hard copy. Unless otherwise stated any views or opinions
 presented are solely those of the author and do not represent those of
 Nomura International plc. This email is intended for informational
 purposes only and is not a solicitation or offer to buy or sell
 securities or related financial instruments. Nomura International plc is
 regulated by the Financial Services Authority and is a member of the
 London Stock Exchange.



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




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




Re: JSP fine but no Java.

2003-01-16 Thread Andoni
The classfiles are in the right place.  That tag is what's being used.

Andoni.
- Original Message -
From: Barney Hamish [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Thursday, January 16, 2003 1:20 PM
Subject: RE: JSP fine but no Java.


 Are the class files you're trying to use in your /WEB-INF/classes/
directory
 or in a jar in your /WEB-INF/lib/ directory?
 Have you tried using the jsp:useBean tag?

  -Original Message-
  From: Andoni [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, January 16, 2003 2:12 PM
  To: Tomcat Users List
  Subject: JSP fine but no Java.
 
 
  Hello,
 
  I am having a really annoying problem that I hope somebody
  can help me with.
 
  My tomcat will run .jsp files fine and process them perfectly
  but will not
  even consider using a .class file.
 
  My app has jsps with javabeans linked in through tags in the
  .jsp files.  In
  fact any java code in the .jsp files seems to work fine until
  a java class
  needs to be called.
 
  Please help as I haven't got much hair left from pulling it all out ;)
 
  Regards
 
  Andoni.
 
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]

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




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




Re: JSP fine but no Java.

2003-01-16 Thread Andoni
Apache Tomcat/4.0.4 - HTTP Status 500 - Internal Server Error




type Exception report

message Internal Server Error

description The server encountered an internal error (Internal Server Error)
that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: class
com.company_name.javaBeans.MerchandiseBean :
java.lang.NullPointerException
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java, Compiled Code)
at org.apache.jsp.validate$jsp._jspService(validate$jsp.java, Compiled
Code)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java, Compiled
Code)
jsp:useBean id=merchandise scope=application
class=com.company_name.javaBeans.MerchandiseBean/- Original
Message -
From: Barney Hamish [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Thursday, January 16, 2003 1:47 PM
Subject: RE: JSP fine but no Java.


 What is the actual error message being displayed?
 Can you send an example of the the jsp:useBean tag you're using and then
 the use of that bean?
 It's hard to diagnose the problem without more specific information.
 Hamish

  -Original Message-
  From: Andoni [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, January 16, 2003 2:37 PM
  To: Tomcat Users List
  Subject: Re: JSP fine but no Java.
 
 
  The classfiles are in the right place.  That tag is what's being used.
 
  Andoni.
  - Original Message -
  From: Barney Hamish [EMAIL PROTECTED]
  To: 'Tomcat Users List' [EMAIL PROTECTED]
  Sent: Thursday, January 16, 2003 1:20 PM
  Subject: RE: JSP fine but no Java.
 
 
   Are the class files you're trying to use in your /WEB-INF/classes/
  directory
   or in a jar in your /WEB-INF/lib/ directory?
   Have you tried using the jsp:useBean tag?
  
-Original Message-
From: Andoni [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 16, 2003 2:12 PM
To: Tomcat Users List
Subject: JSP fine but no Java.
   
   
Hello,
   
I am having a really annoying problem that I hope somebody
can help me with.
   
My tomcat will run .jsp files fine and process them perfectly
but will not
even consider using a .class file.
   
My app has jsps with javabeans linked in through tags in the
.jsp files.  In
fact any java code in the .jsp files seems to work fine until
a java class
needs to be called.
   
Please help as I haven't got much hair left from pulling
  it all out ;)
   
Regards
   
Andoni.
   
   
--
To unsubscribe, e-mail:
   mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
   mailto:[EMAIL PROTECTED]
  
   --
   To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
  
  
 
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]

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




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




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

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

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

Andoni.

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




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

2003-01-21 Thread Andoni
I realise this may be contentious so if you wish to email me directly that's
fine.

I would very much like your opinions on this though.

The Op Sys part particularly.

Andoni.


- Original Message -
From: Turner, John [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Tuesday, January 21, 2003 12:34 PM
Subject: RE: Pick a Platform - Linux, Windows, Unix, Solaris...



 You're begging for a flame war.  Use the platform that works for you.

 The current stable release of the 4.1 tree is 4.1.18.  Of the 4.0 tree it
is
 (I think) 4.0.6.

 John


  -Original Message-
  From: Andoni [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, January 21, 2003 7:23 AM
  To: Tomcat Users List
  Subject: Pick a Platform - Linux, Windows, Unix, Solaris...
 
 
  If you could pick any platform to run Tomcat on what would it be.
 
  Also what version of Tomcat is now the one to go with?
  I.e. stable, reliable, etc.
 
  Andoni.
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 

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




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




An easy one... Default Config in conf/web.xml

2003-02-14 Thread Andoni
Hi,

I am using sections like that below to store the database url / username /
password for my server.  I then access these from the code using

getInitParameter(database_password);

in my code.  What I would like is to move these out to the web.xml file in
conf/web.xml so that when I move my .war file from the development to the
live server it just picks up the new url's and passwords automatically.

Problem:
I can't figure out how to install these sections into the conf/web.xml file.
I have tried putting them in the default servlet and the invoker servlet
and also creating a servlet section of it's own but none of these work.  I
want to still be able to have a web.xml for most things (e.g.
session-timeout) but just have some things in the default one.

init-param
  param-namedatabase_password/param-name
  param-valuemypassword123/param-value
/init-param


Anybody know the answer?  I'd be very appreciative if you did.

Regards,
Andoni.


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




Re: An easy one... Default Config in conf/web.xml

2003-02-14 Thread Andoni
But that's the way I want it to be.  At the moment my apps are machine
dependant because they use the
web-inf/web.xml file but if I could use the server's web.xml file instead I
would not have to reconfigure every time I move an app across to my live
server.

Andoni.


- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, February 14, 2003 3:38 PM
Subject: RE: An easy one... Default Config in conf/web.xml



Howdy,
Your parameters should be in your web.xml, which is in your war file if
you're using a war file.  They should not be in the server web.xml (the
one in conf/web.xml in tomcat 4.x).  They are not part of the server and
don't belong there.  Putting them there makes your application less
portable and container-independent, which is a heavy cost.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Andoni [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 14, 2003 10:32 AM
To: Tomcat Users List
Subject: An easy one... Default Config in conf/web.xml

Hi,

I am using sections like that below to store the database url /
username /
password for my server.  I then access these from the code using

getInitParameter(database_password);

in my code.  What I would like is to move these out to the web.xml file
in
conf/web.xml so that when I move my .war file from the development to
the
live server it just picks up the new url's and passwords automatically.

Problem:
I can't figure out how to install these sections into the conf/web.xml
file.
I have tried putting them in the default servlet and the invoker
servlet
and also creating a servlet section of it's own but none of these work.
I
want to still be able to have a web.xml for most things (e.g.
session-timeout) but just have some things in the default one.

init-param
  param-namedatabase_password/param-name
  param-valuemypassword123/param-value
/init-param


Anybody know the answer?  I'd be very appreciative if you did.

Regards,
Andoni.


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




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


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



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




Re: An easy one... Default Config in conf/web.xml

2003-02-14 Thread Andoni
Thanks for that.  I think I'll look up your other recommendations first.  I
don't know ant at all so I'll start with the other one.

Andoni.

- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, February 14, 2003 3:48 PM
Subject: RE: An easy one... Default Config in conf/web.xml



Howdy,

But that's the way I want it to be.  At the moment my apps are machine
dependant because they use the
web-inf/web.xml file but if I could use the server's web.xml file
instead I
would not have to reconfigure every time I move an app across to my
live
server.

Nearly all non-trivial web applications have environment-specific
settings.  There are many standards-compliant, portable ways to deal
with this.  For example, you can have tokens in your web.xml and have
ant fill them in depending upon the environment you're deploying to.  Or
you can have Enviroment entries in server.xml with the env-entry
references in web.xml.  Either of these is far superior to putting
anything in a container-specific location not intended for use in the
way you want it to.

If you still think it's a good idea, you can maybe do this by converting
the parameters from servlet init params to context params, and putting
those in conf/web.xml, e.g.
context-param
  param-namemyParam/param-name
  param-valuemyValue/param-value
/context-param

They will then be accessible via
getServletContext().getInitParameter(myParam); in your servlets.

Yoav Shapira
Millennium ChemInformatics



This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


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



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




Re: Using Tomcat on OpenVMS

2003-02-14 Thread Andoni
Are you using a .war file?  if so have you set the format to Stream_LF?

Let me know.

Andoni.
- Original Message -
From: Appel, Jeremy D [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, February 14, 2003 4:15 PM
Subject: Using Tomcat on OpenVMS


 All,

 I have recently installed Apache Tomcat 4.0.4 on a Compaq OpenVMS
 cluster.  I have tried to create a simple Hello World Servlet but have
been
 unable to get it to run.  I built the project with Ant successfully and
 deployed it under the webapps directory.  I modified the server.xml
 accordingly.  I am thinking there most be some OpenVMS related thing that
it
 causing to not work.


 Thanks in advance,
 Jeremy Appel

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




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




UTF-8 Sending to Database.

2003-02-17 Thread Andoni
Hello,

I am trying to send a Euro symbol (  €  ) to my database but it keeps being
corrupted on the way to the servlet from the form on my page.

When I replace the SQL string in my servlet with one which has a Euro symbol
hard-coded it works fine and displays in my .jsp fine as the Euro symbol but
when I submit a form from my JSP with a Euro symbol it gets corrupted into
nonsense on the way to the servlet.

Can anyone please help??

Thanks,

Andoni.


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




Re: UTF-8 Sending to Database.

2003-02-17 Thread Andoni
The dbms stores UTF-8 fine and I can see them in the same JSP with has the
text box for inputting characters to my test app.

I don't use prepared statements but I could if you think that may have an
effect?  I'll try that.

The fact that the browser can receive Euro symbols should mean that the
driver is Ok?  Should it not?

Andoni.

- Original Message -
From: THG [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, February 17, 2003 7:42 PM
Subject: Re: UTF-8 Sending to Database.


 It could be, that the form data is double encoded or
 the jdbc driver automatically encoding the data on the
 fly. do u use prepared statements (setString())?

 what is the encoding of your dbms?

 On Mon, 17 Feb 2003 19:22:55
  Andoni wrote:
 Hello,
 
 I am trying to send a Euro symbol (  ?  ) to my database but it keeps
being
 corrupted on the way to the servlet from the form on my page.
 
 When I replace the SQL string in my servlet with one which has a Euro
symbol
 hard-coded it works fine and displays in my .jsp fine as the Euro symbol
but
 when I submit a form from my JSP with a Euro symbol it gets corrupted
into
 nonsense on the way to the servlet.
 
 Can anyone please help??
 
 Thanks,
 
 Andoni.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 _
 Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year.
 http://login.mail.lycos.com/brandPage.shtml?pageId=plusref=lmtplus

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




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




Re: UTF-8 Sending Euro symbol to Servlet in Form data.

2003-02-17 Thread Andoni
Actually the prepared statements couldn't help as I can get the Euro symbol
into the database fine by hard-coding it into my statement.  It is only
getting the information **from the form to the servlet** that is having a
problem.



Andoni.


- Original Message -
From: THG [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, February 17, 2003 7:42 PM
Subject: Re: UTF-8 Sending to Database.


 It could be, that the form data is double encoded or
 the jdbc driver automatically encoding the data on the
 fly. do u use prepared statements (setString())?

 what is the encoding of your dbms?

 On Mon, 17 Feb 2003 19:22:55
  Andoni wrote:
 Hello,
 
 I am trying to send a Euro symbol (  ?  ) to my database but it keeps
being
 corrupted on the way to the servlet from the form on my page.
 
 When I replace the SQL string in my servlet with one which has a Euro
symbol
 hard-coded it works fine and displays in my .jsp fine as the Euro symbol
but
 when I submit a form from my JSP with a Euro symbol it gets corrupted
into
 nonsense on the way to the servlet.
 
 Can anyone please help??
 
 Thanks,
 
 Andoni.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 _
 Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year.
 http://login.mail.lycos.com/brandPage.shtml?pageId=plusref=lmtplus

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




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




Re: UTF-8 Sending Euro symbol to Servlet in Form data. - SOLVED!! ;-)

2003-02-17 Thread Andoni
Thank you all VERY much with this.  It is 8:30pm here and I'm close to
another 12 hour day trying at this problem.

I don't understand why the browser still insists on sending the data as
ISO-8859-1 if the header of the page and the accept-encoding tag on the form
both explicitly specify UTF-8 ??  Bizarre ;-8

Anyway, thanks a million again to:

Jeff Guttadauro
and
THG.


Andoni.



- Original Message -
From: THG [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, February 17, 2003 8:14 PM
Subject: Re: UTF-8 Sending Euro symbol to Servlet in Form data.


 try the following code snippet:


 String value = String from your form;
 try
 {
 value = new String(value.getBytes(ISO-8859-1), UTF-8)
 }
 catch (Exception ex) {}

 Then write the value (i. e. with a PreparedStatement) to the db.

 On Mon, 17 Feb 2003 19:56:54
  Andoni wrote:
 Actually the prepared statements couldn't help as I can get the Euro
symbol
 into the database fine by hard-coding it into my statement.  It is only
 getting the information **from the form to the servlet** that is having a
 problem.
 
 
 
 Andoni.
 
 
 - Original Message -
 From: THG [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Monday, February 17, 2003 7:42 PM
 Subject: Re: UTF-8 Sending to Database.
 
 
  It could be, that the form data is double encoded or
  the jdbc driver automatically encoding the data on the
  fly. do u use prepared statements (setString())?
 
  what is the encoding of your dbms?
 
  On Mon, 17 Feb 2003 19:22:55
   Andoni wrote:
  Hello,
  
  I am trying to send a Euro symbol (  ?  ) to my database but it keeps
 being
  corrupted on the way to the servlet from the form on my page.
  
  When I replace the SQL string in my servlet with one which has a Euro
 symbol
  hard-coded it works fine and displays in my .jsp fine as the Euro
symbol
 but
  when I submit a form from my JSP with a Euro symbol it gets corrupted
 into
  nonsense on the way to the servlet.
  
  Can anyone please help??
  
  Thanks,
  
  Andoni.
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
  _
  Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year.
  http://login.mail.lycos.com/brandPage.shtml?pageId=plusref=lmtplus
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 _
 Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year.
 http://login.mail.lycos.com/brandPage.shtml?pageId=plusref=lmtplus

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




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




Re: UTF-8 Sending Euro symbol to Servlet in Form data.

2003-02-18 Thread Andoni
Thanks very much for this.  Unfortunately it is returning 'null' which means
that the request is not specifying a characterSet encoding.  So I am back to
my old problem of how to force the page to either encode things in UTF-8 or
if not then to say what it is encoding them in.

Is there something I can put in the HTML so that the client (browser) will
either encode in UTF-8 or send the encoding with the request?

Thanks,

Andoni.

- Original Message -
From: Jon Roberts [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, February 17, 2003 8:58 PM
Subject: Re: UTF-8 Sending Euro symbol to Servlet in Form data. - SOLVED!!
;-)


 Andoni wrote:
  I don't understand why the browser still insists on sending the data as
  ISO-8859-1 if the header of the page and the accept-encoding tag on the
form
  both explicitly specify UTF-8 ??  Bizarre ;-8

 If it helps... for Servlet API 2.0+, you can use the ServletRequest
 method getCharacterEncoding() to verify the charset used by the
 submitting page.

 Jon Roberts


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




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




Re: UTF-8 Sending Euro symbol to Servlet in Form data.

2003-02-18 Thread Andoni
Did you not have to cast from something?

Would you mind showing me the asp code?

Thanks,

Andoni.

- Original Message -
From: Arnold Shore [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Monday, February 17, 2003 9:29 PM
Subject: RE: UTF-8 Sending Euro symbol to Servlet in Form data.


 From a lurker:

 Maybe it's simply the form's default charset value that's the pblm.  I've
 been able to get all UTF8 stuff (into an ASP app'n) by casting the charset
 as utf8 wherever it applies, including page and form.

 Arnold Shore
 Annapolis, MD USA

 -Original Message-
 From: THG [mailto:[EMAIL PROTECTED]]
 Sent: Monday, February 17, 2003 3:15 PM
 To: Tomcat Users List
 Subject: Re: UTF-8 Sending Euro symbol to Servlet in Form data.
 Importance: High


 try the following code snippet:


 String value = String from your form;
 try
 {
 value = new String(value.getBytes(ISO-8859-1), UTF-8)
 }
 catch (Exception ex) {}

 Then write the value (i. e. with a PreparedStatement) to the db.

 On Mon, 17 Feb 2003 19:56:54
  Andoni wrote:
 Actually the prepared statements couldn't help as I can get the Euro
symbol
 into the database fine by hard-coding it into my statement.  It is only
 getting the information **from the form to the servlet** that is having a
 problem.
 
 
 
 Andoni.
 
 

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


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




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




Re: UTF-8 Sending Euro symbol to Servlet in Form data.

2003-02-18 Thread Andoni
Thanks for that.  This seems to be consistent with a lot of the articles I
have found on the web.
Unfortunately, when I use multipart/form-data the servlet does not read that
data, I must have to do the output in some different way.

Andoni.


- Original Message -
From: Arnold Shore [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, February 18, 2003 2:02 PM
Subject: RE: UTF-8 Sending Euro symbol to Servlet in Form data.


 Sure.  They're as follows:

 FORM ACCEPT-CHARSET=UTF-8, US-ASCII name='Msgform' METHOD=POST
 action='Newmsg1.asp' ENCTYPE=MULTIPART/FORM-DATA

 and

 HTML
 META HTTP-EQUIV=Content-Type CONTENT=text/html; charset=UTF-8
 head

 HTH,

 Arnold Shore
 Annapolis, MD USA

 -Original Message-
 From: Andoni [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 18, 2003 4:39 AM
 To: Tomcat Users List
 Subject: Re: UTF-8 Sending Euro symbol to Servlet in Form data.


 Did you not have to cast from something?

 Would you mind showing me the asp code?

 Thanks,

 Andoni.

 - Original Message -
 From: Arnold Shore [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED];
[EMAIL PROTECTED]
 Sent: Monday, February 17, 2003 9:29 PM
 Subject: RE: UTF-8 Sending Euro symbol to Servlet in Form data.


  From a lurker:
 
  Maybe it's simply the form's default charset value that's the pblm.
I've
  been able to get all UTF8 stuff (into an ASP app'n) by casting the
charset
  as utf8 wherever it applies, including page and form.
 
  Arnold Shore
  Annapolis, MD USA
 



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




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




Re: JDBC ORACLE implementation !

2003-02-19 Thread Andoni
The implementation is based on which driver you use, which mostly depends on
which version of Oracle you are running.

What version numbers are you using for Oracle  Tomcat

- Original Message -
From: Swapneel Dange [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, February 19, 2003 9:47 AM
Subject: JDBC  ORACLE implementation !


 hi there ~

 i am curious to know as to how can u implement ORACLE database in the
 TOMCAT. and can somebody tell me as to where i can read the DOCUMENTATION
 for the implementation of the JDBC connectivity under TOMCAT.

 Swapneel Dange
 505-642-4126
 http://www.cs.nmsu.edu/~sdange




 _
 MSN 8 with e-mail virus protection service: 2 months FREE*
 http://join.msn.com/?page=features/virus


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




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




Re: how to change the default index page

2003-02-20 Thread Andoni
Into your contexts web.xml file add:

 welcome-file-list

welcome-fileCSEgraduate/jsp/homepage/templates/gradhomepage.jsp/welcome-f
ile
 /welcome-file-list

It may depend a little on how you have the virtual hosting etc. done but
this is the tag for Tomcat anyway.

If you post your server.xml file and web.xml file (or at least the relevant
bits) I could be more specific.
Also if you have a virtual host set up in Apache (or even if you are using
apache) the config of that is necessary.

Hope that helps,

Andoni.

- Original Message -
From: runu rathi [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, February 20, 2003 10:09 AM
Subject: how to change the default index page


 Hi All,
  I want to change the default page that is loaded
 from http://csegrad.uta.edu/index.jsp

 to

 http://csegrad.uta.edu/CSEgraduate/jsp/homepage/templates/gradhomepage.jsp

 How can I do that?
 I shall appreciate any help.

 Thanks and regards,
 Runu

 __
 Do you Yahoo!?
 Yahoo! Tax Center - forms, calculators, tips, more
 http://taxes.yahoo.com/

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




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




Re: change alias

2003-02-20 Thread Andoni
Hello,

It's not quite so simple.  The /examples/servlet is not a simple alias for
the directory mentioned.  What you have to do is study the configuration of
contexts in server.xml.  This is short and well described.  With a bit if
practice you can have any webapp (e.g. examples) running from a directory
anywhere on your machine.

Start here:
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/index.html
at least this is the link relevant to 4.0.x versions of Tomcat.

If you are doing this so that classes won't be mixed up don't worry.  You
will be creating another directory alongside examples for each application
you create.

HTH.

Andoni.

- Original Message -
From: Ami Choksi [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, February 20, 2003 12:59 PM
Subject: change alias


 Hi all,
   Do u have any idea how to change the alias for /examples/servlet ?
 i.e. by default it's c:\tomcat\webapps\examples\WEB-INF\classes which i
 want to change as any other directory as e:\classes. so that standard
 classes won't mix up with the classes we create. please reply if you know.

 --
 Miss Ami Tusharkant Choksi
 Lecturer,
 Computer Engg. Dept.,
 C.K.Pithawala College of Engg.  Tech.,
 Surat.

 Home:
 C/O Navin Cricket Stores,
 6/1937, Jadakhadi,
 Mahidharpura,
 Surat - 395 003.

 Phone:  (O) 0261-2685381
 (R) 0261-7435526, 7422483.


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




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




Error 500 when trying to run /manager app.

2003-02-20 Thread Andoni
Hello,

I am getting an error 500
ServletException
Root Cause:
java.lang.SecurityException: Servlet of class
org.apache.catalina.servlets.ManagerServlet is privileged and cannot be
loaded by this web application

Is this because I am using the wrong username / password?

I have gone to tomcat-users.xml and it looks like:
tomcat-users
  user name=tomcat password=tomcat roles=tomcat /
  user name=administrator password=password roles=manager /
  user name=role1  password=tomcat roles=role1  /
  user name=both   password=tomcat roles=tomcat,role1 /
/tomcat-users


I am trying to log in as the administrator user that I added.

What else do I have to do?

Andoni.


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




Re: Error 500 when trying to run /manager app.

2003-02-20 Thread Andoni
Where is this role tag documented?

I don't see it anywhere in the docs.  I have the app. appearing on the
screen now and I am about to start testing it but I have not installed any
role tags and there are none in the file.  Are they necessary?  What do
they do?

Andoni.
- Original Message -
From: Roberts, Eric [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, February 20, 2003 3:39 PM
Subject: RE: Error 500 when trying to run /manager app.


Add the role as well

?xml version='1.0' encoding='utf-8'?
tomcat-users
  role rolename=tomcat/
  role rolename=role1/
  role rolename=manager/
  role rolename=admin/
  user username=tomcat password=tomcat roles=tomcat/
  user username=both password=tomcat roles=tomcat,role1/
  user username=role1 password=tomcat roles=role1/
  user username=admin password=admin
roles=admin,manager,role1,tomcat/
/tomcat-users


-Original Message-
From: Andoni [mailto:[EMAIL PROTECTED]]
Sent: Donnerstag, 20. Februar 2003 13:15
To: Tomcat Users List
Subject: Error 500 when trying to run /manager app.


Hello,

I am getting an error 500
ServletException
Root Cause:
java.lang.SecurityException: Servlet of class
org.apache.catalina.servlets.ManagerServlet is privileged and cannot be
loaded by this web application

Is this because I am using the wrong username / password?

I have gone to tomcat-users.xml and it looks like:
tomcat-users
  user name=tomcat password=tomcat roles=tomcat /
  user name=administrator password=password roles=manager /
  user name=role1  password=tomcat roles=role1  /
  user name=both   password=tomcat roles=tomcat,role1 /
/tomcat-users


I am trying to log in as the administrator user that I added.

What else do I have to do?

Andoni.


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


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



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




Re: Error 500 when trying to run /manager app.

2003-02-20 Thread Andoni
I don't see the role tag documented anywhere.  Sorry if I missed it.

It is included in the book I have but all the docs on the site seem to have
tomcat-users.xml files without it.

I have just included it in my tomcat 4.0.4 server and now it won't start
java apps so I'm going to try removing it again.

Please let me know if it applies to 4.0.x anyway.

Andoni.


- Original Message -
From: Turner, John [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Thursday, February 20, 2003 3:57 PM
Subject: RE: Error 500 when trying to run /manager app.



 See MemoryRealm:

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

 John


  -Original Message-
  From: Andoni [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, February 20, 2003 10:57 AM
  To: Tomcat Users List
  Subject: Re: Error 500 when trying to run /manager app.
 
 
  Where is this role tag documented?
 
  I don't see it anywhere in the docs.  I have the app. appearing on the
  screen now and I am about to start testing it but I have not
  installed any
  role tags and there are none in the file.  Are they
  necessary?  What do
  they do?
 
  Andoni.
  - Original Message -
  From: Roberts, Eric [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Thursday, February 20, 2003 3:39 PM
  Subject: RE: Error 500 when trying to run /manager app.
 
 
  Add the role as well
 
  ?xml version='1.0' encoding='utf-8'?
  tomcat-users
role rolename=tomcat/
role rolename=role1/
role rolename=manager/
role rolename=admin/
user username=tomcat password=tomcat roles=tomcat/
user username=both password=tomcat roles=tomcat,role1/
user username=role1 password=tomcat roles=role1/
user username=admin password=admin
  roles=admin,manager,role1,tomcat/
  /tomcat-users
 
 
  -Original Message-
  From: Andoni [mailto:[EMAIL PROTECTED]]
  Sent: Donnerstag, 20. Februar 2003 13:15
  To: Tomcat Users List
  Subject: Error 500 when trying to run /manager app.
 
 
  Hello,
 
  I am getting an error 500
  ServletException
  Root Cause:
  java.lang.SecurityException: Servlet of class
  org.apache.catalina.servlets.ManagerServlet is privileged and
  cannot be
  loaded by this web application
 
  Is this because I am using the wrong username / password?
 
  I have gone to tomcat-users.xml and it looks like:
  tomcat-users
user name=tomcat password=tomcat roles=tomcat /
user name=administrator password=password roles=manager /
user name=role1  password=tomcat roles=role1  /
user name=both   password=tomcat roles=tomcat,role1 /
  /tomcat-users
 
 
  I am trying to log in as the administrator user that I added.
 
  What else do I have to do?
 
  Andoni.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 

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




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




Re: Error 500 when trying to run /manager app.

2003-02-20 Thread Andoni
Sorry, let me clarify:

In the documents you have linked below I see reference to the
tomcat-users.xml file and in it the tags:

!--
  NOTE:  By default, no user is included in the manager role required
  to operate the /manager web application.  If you wish to use this app,
  you must define such a user - the username and password are arbitrary.
--
tomcat-users
  user name=tomcat password=tomcat roles=tomcat /
  user name=administrator password=password roles=manager /
  user name=role1  password=tomcat roles=role1  /
  user name=both   password=tomcat roles=tomcat,role1 /
/tomcat-users


But nowhere to I see mention of the role rolename=manager / tag.  In
fact when I go to add this tag to my tomcat 4.0.4 installation things start
to go wrong.

I think my other problem was to do with multiple hosts.  You have to have a
manager application set up for each host I think?  Do you not?

Andoni.

- Original Message -
From: Turner, John [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Thursday, February 20, 2003 4:24 PM
Subject: RE: Error 500 when trying to run /manager app.



 Yes, it applies to 4.0.x:
 http://jakarta.apache.org/tomcat/tomcat-4.0-doc/manager-howto.html
 http://jakarta.apache.org/tomcat/tomcat-4.0-doc/realm-howto.html

 Sorry, I'm really not clear what you are asking. The manager docs
 specifically state that you must manually add a role of manager to any
 username that wishes to access the manager app (and likewise, admin to
 access the admin app).  Shipping Tomcat with a default username with the
 role of manager already added for you is insecure.

 John

  -Original Message-
  From: Andoni [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, February 20, 2003 11:16 AM
  To: Tomcat Users List
  Subject: Re: Error 500 when trying to run /manager app.
 
 
  I don't see the role tag documented anywhere.  Sorry if I missed it.
 
  It is included in the book I have but all the docs on the
  site seem to have
  tomcat-users.xml files without it.
 
  I have just included it in my tomcat 4.0.4 server and now it
  won't start
  java apps so I'm going to try removing it again.
 
  Please let me know if it applies to 4.0.x anyway.
 
  Andoni.
 
 
  - Original Message -
  From: Turner, John [EMAIL PROTECTED]
  To: 'Tomcat Users List' [EMAIL PROTECTED]
  Sent: Thursday, February 20, 2003 3:57 PM
  Subject: RE: Error 500 when trying to run /manager app.
 
 
  
   See MemoryRealm:
  
   http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm-howto.html
  
   John
  
  
-Original Message-
From: Andoni [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 20, 2003 10:57 AM
To: Tomcat Users List
Subject: Re: Error 500 when trying to run /manager app.
   
   
Where is this role tag documented?
   
I don't see it anywhere in the docs.  I have the app.
  appearing on the
screen now and I am about to start testing it but I have not
installed any
role tags and there are none in the file.  Are they
necessary?  What do
they do?
   
Andoni.
- Original Message -
From: Roberts, Eric [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, February 20, 2003 3:39 PM
Subject: RE: Error 500 when trying to run /manager app.
   
   
Add the role as well
   
?xml version='1.0' encoding='utf-8'?
tomcat-users
  role rolename=tomcat/
  role rolename=role1/
  role rolename=manager/
  role rolename=admin/
  user username=tomcat password=tomcat roles=tomcat/
  user username=both password=tomcat roles=tomcat,role1/
  user username=role1 password=tomcat roles=role1/
  user username=admin password=admin
roles=admin,manager,role1,tomcat/
/tomcat-users
   
   
-Original Message-
From: Andoni [mailto:[EMAIL PROTECTED]]
Sent: Donnerstag, 20. Februar 2003 13:15
To: Tomcat Users List
Subject: Error 500 when trying to run /manager app.
   
   
Hello,
   
I am getting an error 500
ServletException
Root Cause:
java.lang.SecurityException: Servlet of class
org.apache.catalina.servlets.ManagerServlet is privileged and
cannot be
loaded by this web application
   
Is this because I am using the wrong username / password?
   
I have gone to tomcat-users.xml and it looks like:
tomcat-users
  user name=tomcat password=tomcat roles=tomcat /
  user name=administrator password=password
  roles=manager /
  user name=role1  password=tomcat roles=role1  /
  user name=both   password=tomcat roles=tomcat,role1 /
/tomcat-users
   
   
I am trying to log in as the administrator user that I added.
   
What else do I have to do?
   
Andoni.
   
   
   
  -
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
  [EMAIL PROTECTED

/manager /admin Tomcat 4.1.18

2003-02-21 Thread Andoni
Are these different things? /manager   and /admin

I have Tomcat 4.0.4 working and I know it only has /manager but now after
getting 4.1.18 working on my windows platform I can only get   /admin
working even though there is a manager subdirectory to the webapps
directory.


Andoni.


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




Re: /manager /admin Tomcat 4.1.18 - IGNORE THIS...

2003-02-21 Thread Andoni
A quick look at server.xml reveals that the Memory realm is not enabled by
default (it is commented out) in favour of the JNDI Realm.

Andoni.

- Original Message -
From: Andoni [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, February 21, 2003 11:53 AM
Subject: /manager  /admin Tomcat 4.1.18


 Are these different things? /manager   and /admin

 I have Tomcat 4.0.4 working and I know it only has /manager but now after
 getting 4.1.18 working on my windows platform I can only get   /admin
 working even though there is a manager subdirectory to the webapps
 directory.


 Andoni.


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




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




Re: Tomcat and Apache

2003-02-21 Thread Andoni
Apache is better at doing some things than Tomcat.  For instance one I know
of is serving static pages.  Apache does that much better.  Also if you use
apache you get the benefit of things such as URL Rewriting and you get
better Virtual host support than with Tomcat acting alone.

I am sure there is a document somewhere on the web explaining all the
benefits.

I would recommend you do put Apache as your live interface to the world.
Tomcat was designed as an application server not a web server and so if you
are being pure about using the correct tool for every job then go with
Apache  Tomcat instead of just tomcat.

Recently I will admit, later versions of Tomcat seem to be able to do a lot
of what only apache used to be able to do but when you have your system up
and running you'll find that it is then that you need something (at the most
awkward time) that only apache can provide.

Andoni.

- Original Message -
From: Etienne [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Friday, February 21, 2003 12:01 PM
Subject: Tomcat and Apache


 Hi, I have a simple question to ask. Why most of the people use Apache
 like the web server running in front of Tomcat? Would it be better to
 map tomcat on port 80? What is the plus value of having the apache web
 server in front?
 Is it only to have access to perl or php?

 Thanks

 Etienne.


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




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




Re: servlet/jsp/j2ee/pattern/ mailing list

2003-02-21 Thread Andoni
Have you tried the newsgroups? http://groups.google.com is a good place to
look for groups but if you want to post regularly you are better getting
Outlook Express (or some other client) and an address of a proper news
server.

Then you have news://comp.lang.java to post to.

Also, although you are not Irish but it does not matter, you can use:

http://www.ijug.org/

The Irish Java User's Group who have a very good web site discussion forum.


Andoni.

- Original Message -
From: Etienne [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Friday, February 21, 2003 12:17 PM
Subject: servlet/jsp/j2ee/pattern/ mailing list


 It there a newsgroup of a good mailing list for
 servlet/jsp/j2ee/pattern/? I have search for some of them, I didn't find
 anything.

 Thanks.

 Etienne.


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




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




Re: Slightly Off Topic: Web Site Content

2003-02-21 Thread Andoni
What I do is that I make all my links point back to my servlet with
something like serMyServlet?mode=about
then I have the servlet process the mode parameter and find the about
section.  This then runs a method which returns a JSP to the browser.

Architecture is always MVC, Classes doing processing and DB access fronted
by a single servlet which spits out JSPs.

Andoni.


- Original Message -
From: Kevin Andryc [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, February 21, 2003 2:31 PM
Subject: Slightly Off Topic: Web Site Content


 Hello,
 I have been doing web programming for quite some time but what I have
 yet to figure out is the best way to handle web site content. For example,
 if I want to create a web sire with a vast number of pages, I would like
to
 have it easily maintained such that if a link changes in my navigation
bar,
 the rest gets updated rather than picking through every page. What is the
 best way to do this? Do you guys use JSP pages and have the navigation or
 content stored in a database and then retrieved by the JSP? How about
 architecture? Are there any good books on this? Any help would be great.

 Sincerely,
 Kevin

 Kevin Andryc
 Web Systems Engineer
 MISER
 http://www.umass.edu/miser/
 Phone: (413)-545-3460
 [EMAIL PROTECTED]



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




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




manager app. login Tomcat4.0.4

2003-02-27 Thread Andoni
Hello,

I have just set up the manager app. in Tomcat 4.0.4

I have the username/password coming from the tomcat-users.xml file.

I have many hosts each of whom I want to give access to their own manager
app.

Can I have multiple new roles called arbitrary names and set them up in
host/manager/web-inf/web.xml
to give them each their own login?

I tried this but when I restarted tomcat it just seized up on me and would
load nothing  :-(


Thanks,
Andoni.


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



Re: about proper WEB.XML ????

2003-03-06 Thread Andoni
you don't actually NEED any of the entries on the web.xml file. but you do
need the file so use this for now and see how you get on.

Andoni.


?xml version=1.0 encoding=UTF-8?
!--
Sun Public License Notice

The contents of this file are subject to the Sun Public License
Version 1.0 (the License). You may not use this file except in
compliance with the License. A copy of the License is available at
http://www.sun.com/

The Original Code is NetBeans. The Initial Developer of the Original
Code is Sun Microsystems, Inc. Portions Copyright 1997-2000 Sun
Microsystems, Inc. All Rights Reserved.
--


!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN
http://java.sun.com/j2ee/dtds/web-app_2_2.dtd;

web-app
!-- Here's where the tags go. --
/web-app




- Original Message -
From: apratim sharma [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, March 06, 2003 8:12 AM
Subject: about proper WEB.XML 


 hi !

 i have properly installed tomcat but i'm not able to
 run my own servlets. that is probably because of
 web.xml file. i don't know how to create a proper
 web.xml file for a servlet. i'm using mac os x 10.2

 please help me  it's urgent

 __
 Do you Yahoo!?
 Yahoo! Tax Center - forms, calculators, tips, more
 http://taxes.yahoo.com/

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




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



Precompiling JSPs

2003-06-18 Thread Andoni
Hello,

I have a build.cmd file that I have had and modified for every project I've done for 
years.  I should probably go learn ANT or some other build technique but for now I 
want to do this the command line way.  I'm not even sure if ANT will do what I want.

I want to have my .jsp files made into .java files (easy) then compiled into .class 
files (hard) before starting my Tomcat.  That way I can see any syntax errors in my 
.jsp files.

If I do this at the moment I get a load of errors where one JSP which is included in 
another uses variables which are only declared in the major one.

Is there a way to compile the .java files the way Tomcat does (which takes account of 
included .jsp's)?

Does ANT create .class files?

Thanks in advance.

Andoni.

Re: Precompiling JSPs

2003-06-19 Thread Andoni
Here's my problem with JspC task:

does not factor in class or taglib dependencies, or jsp:include
references. 

Quote from the page mentioned below!!

I need these things factored in or else you cannot run javac on these *.java
files.

Thanks,

Andoni.


- Original Message -
From: Robert Priest [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Wednesday, June 18, 2003 3:51 PM
Subject: RE: Precompiling JSPs


 You should read up on the JspC task:
 http://ant.apache.org/manual/OptionalTasks/jspc.html

 The JspC task will compile your jsp file to a java servlet (.java) file.
 Then you can run javac/ to get your class files.
 You will need to download the jasper-compiler.jar and jasper-runtime.jar
 files.
 I currently do this in ant:

 Here is what my project for compiling my jsps looks like:

 project name=PW_JSPS default=build basedir=.
  target name=build
  property name=JSP_ROOT value=${WEB_MAIN}/src/java/jsp/
  property name=JSP2JAVA_DIR value=${WEB_OUT}/jsp2java/

  mkdir dir=${JSP2JAVA_DIR}/

  echo

message=***
 /
  echo message=Building\Compiling JSP files: /
  echo

message=***
 /


   jspc
   srcdir=${JSP_ROOT}
   destdir=${JSP2JAVA_DIR}
   uriroot=${JSP_ROOT}
   package=com.myproj.web.jsp
   verbose=9
   webinc=${JSP2JAVA_DIR}/generated_webxml_snippet.xml
   include name=**/*.jsp /
classpath id=jsp_classpath
   pathelement path=${env.CLASSPATH}/
   path refid=classpath/
   pathelement
 location=${TOMCAT_SOURCE}common/lib/jasper-compiler.jar/
   pathelement
 location=${TOMCAT_SOURCE}common/lib/jasper-runtime.jar/
 /classpath
 /jspc

   javac srcdir=${JSP2JAVA_DIR} destdir=${WEB_OUT}
  includes=**/*.java
  listfiles=yes
  debug=${turn_on_debug}
  classpathref=jsp_classpath
  /

  /target
 /project

 -Original Message-
 From: Andy Eastham [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, June 18, 2003 10:37 AM
 To: Tomcat Users List
 Subject: RE: Precompiling JSPs


 Andoni,

 I do this in Sun One Studio, where I do all my Java development.

 You can compile JSPs just as you can compile java source.

 Andy

  -Original Message-
  From: Andoni [mailto:[EMAIL PROTECTED]
  Sent: 18 June 2003 10:25
  To: Tomcat Users List
  Subject: Precompiling JSPs
 
 
  Hello,
 
  I have a build.cmd file that I have had and modified for every
  project I've done for years.  I should probably go learn ANT or
  some other build technique but for now I want to do this the
  command line way.  I'm not even sure if ANT will do what I want.
 
  I want to have my .jsp files made into .java files (easy) then
  compiled into .class files (hard) before starting my Tomcat.
  That way I can see any syntax errors in my .jsp files.
 
  If I do this at the moment I get a load of errors where one JSP
  which is included in another uses variables which are only
  declared in the major one.
 
  Is there a way to compile the .java files the way Tomcat does
  (which takes account of included .jsp's)?
 
  Does ANT create .class files?
 
  Thanks in advance.
 
  Andoni.


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

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




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



Running Tomcat 4.0.4 on Multiple CPUs. Problem?

2003-07-02 Thread Andoni
Hello,

I am going to move my Tomcat 4.0.4 installation over to a machine which has 4 CPUs.  I 
am just wondering if there are any known issues with this.  Has anybody had any 
problems which were directly attributable to a move to multiple CPUs?

Thanks,

Andoni.

Storing the SessionID in the Database.

2003-07-03 Thread Andoni
Hello,

I want to store the Session ID in the database.  Does anyone know what the smallest 
type I can use in Oracle is?

What I mean is...  Is the session Id always a 32 character string?

Thanks.

Andoni.

Re: Storing the SessionID in the Database.

2003-07-03 Thread Andoni
I am only looking to know when a particular user clicks on Exit is that
the same user that logged in, as in my app. many users use the same login ID
and password.  So I only want to store the session ID to compare with the
ones created at login.

Do I really need a varchar(100) to store the session ID?
Would a char(32) not do the trick?

Thanks,

Andoni.


- Original Message -
From: Angus Mezick [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, July 03, 2003 3:36 PM
Subject: RE: Storing the SessionID in the Database.


You want to use a VARCHAR.  This is because the jvmroute parameter will
be appended to the sessionId.  This is the suggested table structure for
JdbcStore:

create table tomcat_sessions (
  session_id varchar(100) not null primary key,
  valid_session  char(1) not null,
  max_inactive   int not null,
  last_accessbigint not null,
  app_name   varchar(255),
  session_data   mediumblob,
  KEY kapp_name(app_name)
);



 -Original Message-
 From: Andoni [mailto:[EMAIL PROTECTED]
 Sent: Thursday, July 03, 2003 10:32 AM
 To: Tomcat Users List
 Subject: Storing the SessionID in the Database.


 Hello,

 I want to store the Session ID in the database.  Does anyone
 know what the smallest type I can use in Oracle is?

 What I mean is...  Is the session Id always a 32 character string?

 Thanks.

 Andoni.


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



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



Re: Storing the SessionID in the Database.

2003-07-03 Thread Andoni
Yes, the can.  In fact I am using JSP so I can do session.getID() at
anytime.

But this does not help me as I want to know how long this session has been
active.  I want to be able to store the timestamp for when the session was
invalidated by clicking exit so as to be able to calculate how long (on
average) users spend on my site.

Andoni.

- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]

When the user clicks, does it not go to some page in your system?  Can't
that page just do request.getSession() to get the session and its ID?


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



Re: Storing the SessionID in the Database.

2003-07-03 Thread Andoni
That is fine for monitoring who or how many are online now but it is no use
for long-term statistics calculation.  I want to be able to graph the
changes in times spent on the site over the past week / month  / year.  For
that I think I will need a DB approach??

Andoni.


- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, July 03, 2003 4:15 PM
Subject: RE: Storing the SessionID in the Database.



Howdy,
Why not to this via a session listener?  It's trivial.  Keep a static
map with the session Id (String, key) and creation time (long, value).
Add a value in the sessionCreated event and remove the value, calculate
delta in the sessionDestroyed event.  That's so much cleaner than a
DB-oriented approach.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Andoni [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 03, 2003 11:11 AM
To: Tomcat Users List
Subject: Re: Storing the SessionID in the Database.

Yes, the can.  In fact I am using JSP so I can do session.getID() at
anytime.

But this does not help me as I want to know how long this session has
been
active.  I want to be able to store the timestamp for when the session
was
invalidated by clicking exit so as to be able to calculate how long
(on
average) users spend on my site.

Andoni.

- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]

When the user clicks, does it not go to some page in your system?
Can't
that page just do request.getSession() to get the session and its ID?


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




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


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



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



Re: reply urgently tomcat installation query !!!!!!!

2003-07-03 Thread Andoni
Definitely wrong!!

I'd worry about setting JAVA_HOME and not worry about JDK versions for now.

have you tried running the command at the dos prompt just before running
startup thus:

c:\set java_home=c:\jdk1.2
c:\startup

you can run startup from anywhere if the c:\tomcat\bin directory is in you
PATH variable as you say it is.

Good luck,  it may be annoying at first but stick with it, it's brilliant
when you get it all going.  And there will always be lots of help here if
you don't have personal contacts.

Andoni.

- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, July 03, 2003 5:09 PM
Subject: RE: reply urgently tomcat installation query !!!



Howdy,

From: Atreya Basu [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 03, 2003 12:01 PM
To: 'Tomcat Users List'
Subject: RE: reply urgently tomcat installation query !!!

I don't think that the current version of Tomcat works with any JDK
less
than 1.4.

That's wrong.

Yoav Shapira



This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


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



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



Re: config help

2003-07-23 Thread Andoni
I would recommend you write a tiny java program that keeps opening
connections to your database and counting the number of open connections.
Then when it starts getting errors you can shut the connections but record
the maximum number of open connections.

Then since your period is so intense you should put your initial pool of
open connections to very close to this number.  e.g. if your max number of
connections is, 170 (like mine) then set your initial pool size to 140-150
so that there is practically no connection opening/closing done by your
program while it's running.

Andoni.


- Original Message -
From: Geoff Peters [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 12:38 PM
Subject: config help


Hi - I am currently in the process of deploying a web app using Tomcat
4.1.18, MySQL 3.23 on a Win2K Server. The app will be used heavily for a
period of 3 - 4 hours, (probably a couple of thousand hits per minute), then
never used again.

I am wondering what exactly I should do to enhance performace - other than
some changes recommended to the server.xml file (i.e. setting debug to
zero), I am not 100% sure what some of the other changes will do,
specifically min and max processors, and other settings. Can someone please
give me some pointers as to what I can so to maximize performance over this
3-4 hour period??

Application is a series of MySQL based reports (all servlets), containing
several select statements and using the MySQL JDBC driver.

Thanks for any advice!

Geoff

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


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



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



Clashing JNDI names? Maybe?

2003-07-30 Thread Andoni
Hi,

I have two hosts on the same system one is the pilot of my website for testing and 
demo purposes and the other is the live site.

I want to be able to just copy the .war file across once it is tested.

The problem with this is my DB connection pooling is done by a DataSource in Tomcat 
and that is done using JNDI.  I think that the fact that there is the same JNDI name 
in the two host containers may be causing a clash?  The code from my server.xml is 
below.

There are two different settings I have found in my look at the Tomcat web-site to 
tell these not to clash but I don't know if they are what I think they are or which is 
the right one.

They are:
1. in the Resource tag auth=Container.
2. in the Resource tag scope=shareable (I do not have this in at all so it is 
shareable as that is the default)

For example:  When it says shareable makes connections shareable, does it mean even 
between hosts?

Thanks.

Andoni.


   Host name=live.server.com debug=3 appBase=webapps/live unpackWARs=false
Context path= docBase=live.war workDir=work/live debug=0 
reloadable=false
 Resource name=jdbc/live auth=Container type=javax.sql.DataSource/
 ResourceParams name=jdbc/live
  parameter
   namedriverClassName/name
   valueoracle.jdbc.driver.OracleDriver/value
  /parameter
  parameter
   nameuser/name
   valuelive/value
  /parameter
  parameter
   namepassword/name
   value***/value
  /parameter
  parameter
   namedriverName/name
   valuejdbc:oracle:thin:@troi.eurokom.ie:1521:ora9/value
  /parameter
 /ResourceParams
/Context
   /Host

   Host name=pilot.server.com debug=0 appBase=webapps/pilot unpackWARs=false
Context path= docBase=live.war workDir=work/pilot debug=0 
reloadable=false
 Resource name=jdbc/live auth=Container type=javax.sql.DataSource/
 ResourceParams name=jdbc/live
  parameter
   namedriverClassName/name
   valueoracle.jdbc.driver.OracleDriver/value
  /parameter
  parameter
   nameuser/name
   valuepilot/value
  /parameter
  parameter
   namepassword/name
   value***/value
  /parameter
  parameter
   namedriverName/name
   valuejdbc:oracle:thin:@localhost:1521:ora9/value
  /parameter
 /ResourceParams
/Context
   /Host


Re: 500 Custom Error

2003-07-30 Thread Andoni
Surely you mean:

String more = cowbell;
more = null;
more.toString();

or even:

String more = null;
more.toString();

Andoni.

- Original Message -
From: Tim Funk [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, July 30, 2003 4:48 PM
Subject: Re: 500 Custom Error


 500 errors can be webapp generated errors. You should get a 500 error if
you
 do the following in a servlet:
 String more = cowbell;
 more = null;
 more.toString();

 Tomcat (or any container) will trap the null pointer exception and wrap it
 into a ServletException. The nullpointer exception is exposed during error
 processing as defined in Table SRV.9-1 Request Attributes and their
types
 in section 9.9.1 of the spec.

 -Tim

 Shapira, Yoav wrote:
  Howdy,
 
 
 Are Custom Error pages available for 500 errors?
 
 
  500's are tough, as they are internal server (i.e. not your webapp's)
  errors.  I don't recall the spec on this point, but at some point I
  thought error page customization only had to be available for 300 and
  400 range HTTP status.
 
  As 500's can occur anywhere in the request processing pipeline, it's
  difficult to provide the custom error page hook for them.
 
 
 This is under tomcat 4.0.4. (Although production will be under
 4.1.24)
 
 
  Not a good idea: there are significant differences between the 4.0.x and
  4.1.x branch of tomcat, and you should at least test, if not develop, on
  4.1.24 before deploying to it.
 
  Yoav Shapira
 


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




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



Re: Tomcat with Virtual hosting

2003-07-30 Thread Andoni
I am using both:

 DirectoryIndex /jsp/index.jsp index.html

and

DirectoryIndex /jsp/index.jsp

and both work fine.  There is no longer an index.html file either so that
one only goes to index.jsp.

I am using Apache 1.3.24.

An alternative I would suggest is to remove the DirectoryIndex setting from
Apache and let Tomcat handle this by putting

 welcome-file-list
  welcome-filejsp/index.jsp/welcome-file
 /welcome-file-list

into the web.xml of the application in question.

In fact I now realise that I have both of the above implemented for the app.
I'm looking at at the moment.

Hope that helps,

Andoni.

- Original Message -
From: John Turner [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, July 30, 2003 2:16 PM
Subject: Re: Tomcat with Virtual hosting



 That's a known problem with the Apache connectors.  DirectoryIndex
 index.jsp has no effect.  I think some people have had success mucking
 around with mod_rewrite and/or the module load order, but I don't recall
 anyone ever posting a definitive solution to the list.

 The most basic workaround is to use a META refresh in index.html to
 redirect to index.jsp.  If anyone has a more elegant solution, I'd love
 to see it.

 John

 Andrew Geery wrote:

  Why do you need to forward the request from index.html to index.jsp?
  Can't you simply set index.jsp to be a directory index page (e.g.,
  DirectoryIndex index.html index.jsp)?
 
  Abhinav Gautam wrote:
 
  Hi,
 
  I am having serious problems with Tomcat. It just happened that without
  any reason the web server stopped responding to JSP requests. I have
  restarted Tomcat and Apache several times, but when the index.html
  forwards the request to index.jsp, I get an error saying page not
  found.
  I have checked the server.xml and the httpd.conf files and everything
  seems to be fine. Also when I do netstat -ta the server seems to be
  listening on port 8007.
 
  I have virtual hosting set up in tomcat. There's one primary domain
with
  an IP address and there are 2 other domains with a different IP
  (different
  from primary, but one IP for both of the other domains) set up on the
  same
  web server.
 
  Any help will be greatly appreciated.
 
  Thanks.
  Abhinav
 
 
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 



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




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



Re: tomcat5.0

2003-07-30 Thread Andoni
As you have already been told WEB-INF has a special meaning.

You should know that it is possible to move this and any application to
anywhere on your system but this involves configuring the server to know
where it has been moved to.

For now don't worry about that kind of thing and just go with as many of the
default settings as you can.  If you NEED to move it you can mail me and
I'll give you instructions.

Andoni.

- Original Message -
From: Raicea Lavinia [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, July 29, 2003 10:58 AM
Subject: tomcat5.0


 Hi,
My name is Lavinia Raicea and I am a student. I am trying to learn
about JSP2.0 and Servlets so I have installed Apache Tomcat 5.0 (Windows XP)
and I took some documentation to run some servlet examples.
I don't know what I am doing wrong but when I put the source code in
the folder $installdir/webapps/ROOT/WEB-INF/classes it works. But when I do
the same thing but in a subfolder of ROOT (.../ROOT/deploy/WEB-INF/classes)
it doesn't work anymore.I think is something with my configuration of tomcat
but I dont't seem to get it right.
   If you would be so kind and tell me where I am wrong I would be very
grateful.
 Thank you very much,
  Lavinia



 -
 Do you Yahoo!?
 Yahoo! SiteBuilder - Free, easy-to-use web site design software


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



Re: Where does index.jsp come from

2003-07-31 Thread Andoni
That page is not an index.jsp.

it is:

tomcat dir/webapps/ROOT/index.html

HTH.

Andoni.


- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 3:35 PM
Subject: Where does index.jsp come from


 Greetings,
 I set up Tomcat again but I'm seeing this page
 http://gdttest.mgnetwork.com:8080/index.jsp - which is good except I can't
 figure out what to uncomment b/c there is no index.jsp in my webapps
 folder??

 Thanks,
 Bobbie

 Bobbie Atristain
 Internet Systems Administrator
 Media General, INC.
 804.649.6156

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




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



JNDI Names Clashing

2003-07-31 Thread Andoni
Hello,

Can JNDI names clash if they are in different HOST containers in the server.xml file?

Thanks,

Andoni.

PS: they are for a database connection pool.

Re: Tomcat Conn Pooling in 4.0.4 - My thanks...!

2003-08-07 Thread Andoni
Kwok Peng Tuck

Yoav Shapira

Jose Euclides da Silva Junior


Thank you all so much.  My project was on the brink of being set back by a
month if the connection pooling feature had to be removed and you saved me.
With some of the straightest answers I have ever received on this list.

Thanks and regards,

Andoni.


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



Name JDBC is not bound in this context.

2003-08-14 Thread Andoni
Hi,

I am getting this error in my log files:

name jdbc is not bound in this context

and I cannot see any reason why.  I have found multiple examples on the web but nobody 
seems to answer queries about it!  My program is using Tomcat 4.0.4 connection pooling 
and seems to be working fine (if a little slow) so I cannot see what could be wrong.

Can anyone help me?

Please!

Andoni.

  1   2   3   >