Re: help with multilingual JSP sites pls. using a Filter to rewrite the URL ?

2002-11-25 Thread Stephen Riek

Sorry, I'm not making myself clear here.  My JSPs do exactly as you suggest 
so that I have one JSP serving up French and English pages, depending on 
the language that the user selected on my site.
Here is the problem explained very simply. I have a sitemap as follows:
/en
--> /Products
  --> Toys/index.jsp
  --> Decoration/index.jsp
/fr
--> /Products
  --> /Toys/index.jsp
  --> /Decoration/index.jsp

As you can see, this is braindead. If I wish the functionality of the English section 
of the site to be the same as that of the French part of the site, then any change
to a JSP in the 'en' part must be repeated within the 'fr' site. This is not 
scalable and is tedious. 

Instead, it would be much better if I had one site structure which served up the
whole site.

/Products
   --> /Toys/index.jsp
--> /Decoration/index.jsp

Any changes to functionality only have to be made in one place and both the
french viewers and english viewers will experience the same user experience, 
just in different languages. (I use the properties files as you suggest to 
serve up different languages).

The problem however is "how does /Products/Toys/index.jsp" know whether
the user is viewing in English or French ? The easy way would be to have the
user select a language on entering the site and then store the language 
preference in a cookie which I check before serving up pages. However, 
users may access the site from a search engine or from direct URLs due to
promotions.  I would like a request for /en/Products/Toys/index.jsp to be 
sent to /Products/Toys/index.jsp but with a 'lang' parameter set to 'en'. 
Likewise for the french part of the site. 

Surely somebody has had to encounter this sort of problem in dealing with
pan-European sites ?

Stephen.

 

 Triptpal Singh Lamba <[EMAIL PROTECTED]> wrote:One way you can do this is using 
property files.

Prop_ file name _ language code.properties

So for say abc.jsp , you have abc_en.properties and abc_fr.properties.

At comple time the JSP calls a class you write at server which gives say String 
languageCode  = ObjectName.getLaguageCode(param 1 ,param 2);  %>

Then all JSP elements are picked from there.
Thanks
Tript Singh





-
With Yahoo! Mail you can get a bigger mailbox -- choose a size that fits your needs



RE: Over-aged Newbie needs some help

2002-11-25 Thread Price, Erik


> -Original Message-
> From: Michele Emmi [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, November 23, 2002 9:27 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Over-aged Newbie needs some help
> 
> 
> But if he is an "over-aged" newbie he might prefer book over 
> reading off a 
> computer screengod knows this  over-aged newbie does!
> 
> I am reading:
> 
> Apache Jarkart-Tomcat by Goodwill
> Sun one programming by Mogha and Bhargava

I have been reading "Core Servlets" which is a free book online (I download and print 
the PDFs) at .  It's a pretty good book.

There is another book that I was considering taking a look at and I wonder if anyone 
could share their thoughts on it -- a New Riders book called "Java for the Web with 
Servlets, JSP, and EJB: A Developer's Guide to J2EE Solutions" by Budi Kurniawan 
.  It looks good, 
and more up to date than Core Servlets.  The reviews say there are code errors, but 
since I feel somewhat comfortable with JSP/servlets I hope that this won't be too much 
of an obstacle


Erik

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Tomcat Connector JK2 + Apache + SSL

2002-11-25 Thread David Brown
SAG - Jose Antonio Tarifa writes: 

Hello group.
 
I'm not able to configure Apache + SSL with Tomcat to make available to servlets the SSL data, such like are returned by request.getRemoteUser() function (always return NULL).
 
Apache runs correctly with HTTPS, but Tomcat no.
 
Any idea?
 
 
-
José Antonio Tarifa Lorenzo
Departamento de Desarrollo
Compañía Operadora del Mercado Español de Electricidad, S.A.
c/Alfonso XI, 6 4ª Planta. 28014 Madrid
email: [EMAIL PROTECTED]  
-
 




Hello, have u uncommented the ssl connector in server.xml? what version of 
tc? what version of apache? what platform? os? have u configured mod_ssl and 
JkMount in httpd.conf? many variables that can break ssl between apache and 
tc. hope this helps, david.

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



Tomcat 4.1.12 Logs??

2002-11-25 Thread Prashanth Pushpagiri
Hi:

I am running Tomcat 4.1.12 alongside IIS 5.0. I have
no installation problems, but what I'd like to know is
how to set up my logs. In all previous versions of
Tomcat I observed Tomcat logging access details
(complete HTTP requests made) in files like
localhost_accesslog_***.txt, but in 4.1.x I havent
seen these files being created in $CATALINA_HOME/logs.
Do we need to set it up? If so how? If not where are
these logs?

Thanks
Prashanth

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

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Tomcat Connector JK2 + Apache + SSL

2002-11-25 Thread SAG - Jose Antonio Tarifa
Hello group.
 
I'm not able to configure Apache + SSL with Tomcat to make available to servlets the 
SSL data, such like are returned by request.getRemoteUser() function (always return 
NULL).
 
Apache runs correctly with HTTPS, but Tomcat no.
 
Any idea?
 
 
-
José Antonio Tarifa Lorenzo
Departamento de Desarrollo
Compañía Operadora del Mercado Español de Electricidad, S.A.
c/Alfonso XI, 6 4ª Planta. 28014 Madrid
email: [EMAIL PROTECTED]  
-
 



RE: reloadable [bayes][adr]

2002-11-25 Thread Raja Nasrallah
Hello,

Thanks you, it works

raja

-Original Message-
From: Jon Eaves [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, November 26, 2002 10:28 PM
To: Tomcat Users List
Subject: Re: reloadable [bayes][adr]
Importance: Low

Hi Raja,

The default behaviour setting for the class reloading is a touch
on the slow side, so include a  in the  that
looks like this one:





And you'll find that it will now check every second, rather than
the default 15 seconds.

Cheers,
-- jon

Raja Nasrallah wrote:
> Hello,
>  
> I set the attribute reloadable to true in a sample context
tag(
> in the sever.xml) to monitor the the "WEB-INF/classes".
>  
> But it didn't affect. I make change in a sample class and the server
> don't load this class again.
>  
> I am using jakarta-tomcat-4.0.6 in winow2000 server.
>  
> Should I have to do other setting to make the reloadable work.
>  
> Thanks,
> raja
> 

-- 
Jon Eaves <[EMAIL PROTECTED]>
http://www.eaves.org/jon/


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Resource leak with a DBCP BasicDataSource?

2002-11-25 Thread Jerry Gaines
Hi,

We're using a connection pool based on a DBCP 1.0 BasicDataSource, set up through our 
Tomcat 4.0 server.xml file.  Every so often the retrieval of connections from the pool 
slows down to a snail's pace.  We added some trace to the code which gets and releases 
connections to time how long it takes to get a connection, and also to see how many 
connections are active/idle from moment to moment.

The retrieval of connections sometimes takes far longer than the maxWait parameter 
setting.  That's a question in itself, but the more interesting thing is that at those 
times the trace code indicates that there are plenty of connections idle (>150 out of 
a pool of 275).

I've read accounts of people managing very large MySQL connection pools with DBCP and 
BasicDataSource, even needing to use the autoReconnect parameter to restart the 
connections after eight hours.  We're lucky to get three hours out of the app before 
needing to restart.  

I would be the first to blame a simple resource leak, ie connections not being 
properly closed; but the fact that the number of idle connections is so high suggests 
that something else is afoot.  What are we doing wrong? 

Thanks in advance,

Jerry Gaines

PS Relevant excerpt from server.xml ResourceParams defining the data source.  The 
validation query "SELECT 1" is probably not ANSI SQL, but it works in the version of 
MySQL we're using.


factory
org.apache.commons.dbcp.BasicDataSourceFactory


maxActive
270


maxIdle
250


maxWait
1


validationQuery
SELECT 1


removeAbandoned
true


removeAbandonedTimeout
120


driverClassName
org.gjt.mm.mysql.Driver






RE: Page Statistics for Tomcat?

2002-11-25 Thread Reynir Hübner
I think tomcat is set to combined, you could also create your own pattern in tomcat, 
but the string being used in awstats is : 

LogFormat = "%host %other %logname %time1 %methodurl %code %bytesd"

Hope it helps
-reynir




> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
> Sent: 25. nóvember 2002 15:35
> To: Tomcat Users List
> Subject: RE: Page Statistics for Tomcat?
> 
> 
> 
> What log format do you use for awstats? #4?
> 
> 
> Thank You,
> 
> Justin A. Stanczak
> Web Manager
> Shake Learning Resource Center
> Vincennes University
> (812)888-5813
> 
> 
> |-+>
> | |   Reynir Hübner|
> | || |   n.is>|
> | ||
> | |   11/25/02 08:45 AM|
> | |   Please respond to|
> | |   "Tomcat Users|
> | |   List"|
> | ||
> |-+>
>   
> >-
> -|
>   |   
>|
>   |   To:   "Tomcat Users List" 
> <[EMAIL PROTECTED]>  
>|
>   |   cc: 
>|
>   |   Subject:  RE: Page Statistics for Tomcat?   
>|
>   
> >-
> -|
> 
> 
> 
> 
> Hi,
> I really like awstats, it's in sourceforge...
> 
> I recommend that one :
> http://sourceforge.net/projects/awstats/
> 
> Hope it helps
> 
> [EMAIL PROTECTED]
> 
> 
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > Sent: 25. nóvember 2002 13:41
> > To: [EMAIL PROTECTED]
> > Subject: Page Statistics for Tomcat?
> >
> >
> > Hi, I was wondering if someone could advise me on a good 
> tool to show 
> > statistics for Tomcat. Something like webalizer. I'm going to look 
> > into webalizer, but I wanted to see if anyone had something better.
> >
> >
> > Thank You,
> >
> > Justin A. Stanczak
> > Web Manager
> > Shake Learning Resource Center
> > Vincennes University
> > (812)888-5813
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> >  [EMAIL PROTECTED]>
> > For
> > additional commands,
> > e-mail: 
> >
> >
> 
> --
> To unsubscribe, e-mail:   <
> mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: < 
> mailto:[EMAIL PROTECTED]>
> 
> 
> 
> 
> 
> 
> 
> --
> To 
> unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Problems with Apache 2.0.43 and Tomcat4 on Linux7.3

2002-11-25 Thread Mauro Brändle
Hello everybody,
 i'm new to these topics and i'm in deep trouble trying to integrate
Apache 2.0.43 an Tomcat4. I have done as follows:
- downloaded from the Apache site the mod_jk-2_0_42.so;
- have added the following line in my server.xml file:

and after the  tags

- in ($TOMCAT_HOME)/conf/jk i put a workers.properties file with this
content:

workers.tomcat_home=/var/tomcat4
workers.java_home=$(JAVA_HOME)
ps=\

- restarting Tomcat it creates a new directory :
($TOMCAT_HOME)/conf/auto containing a new file: mod_jk.conf with the
following lines:

  LoadModule jk_module /usr/local/apache2/modules/mod_jk-2_0_42.so


JkWorkersFile "/var/tomcat4/conf/jk/workers.properties"
JkLogFile "/var/tomcat4/logs/mod_jk.log"

JkLogLevel info


ServerName localhost

JkMount /webdav ajp13
JkMount /webdav/* ajp13

JkMount /admin ajp13
JkMount /admin/* ajp13

JkMount /tomcat-docs ajp13
JkMount /tomcat-docs/* ajp13

JkMount /examples ajp13
JkMount /examples/* ajp13

JkMount /manager ajp13
JkMount /manager/* ajp13

JkMount /CDS ajp13
JkMount /CDS/* ajp13

JkMount /liste ajp13
JkMount /liste/* ajp13

JkMount /liste-1 ajp13
JkMount /liste-1/* ajp13


- i copied the lines of this file in the httpd.conf  file after the last
LoadModule line
- i restarted the apache web server and i get the following messages in
the Apache's error_log :
[Mon Nov 25 16:34:33 2002] [notice] caught SIGTERM, shutting down
[Mon Nov 25 16:37:33 2002] [notice] Apache/2.0.43 (Unix)
mod_jk/1.2.0 configured -- resuming normal operations
[Mon Nov 25 16:49:50 2002] [notice] caught SIGTERM, shutting down
[Mon Nov 25 16:50:29 2002] [notice] Apache/2.0.43 (Unix)
mod_jk/1.2.0 configured -- resuming normal operations
[Mon Nov 25 16:51:15 2002] [notice] caught SIGTERM, shutting down
[Mon Nov 25 16:52:40 2002] [notice] Apache/2.0.43 (Unix)
mod_jk/1.2.0 configured -- resuming normal operations
- i also have a file workers2.properties(in the same directory as
mod_jk-2_0_42.so) like this:
[shm]
file=${serverRoot}/logs/shm.file
size=1048576
# Example socket channel, override port and host.
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1
# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
# Uri mapping
[uri:/examples/*]
worker=ajp13:localhost:8009

Is the approach correct or not?
Is there anything right in what i did?  :-)
 I hope that someone will help me, i'm getting mad

Thanks in advance!
Greetings.

Mauro Brandle







--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Problems with Tomcat 4.1.12 and FORM based authentication

2002-11-25 Thread David Brown
Quenten Van Egeren writes: 

I'm having the following problem when using FORM based
authentication with Tomcat 4.1.12 : 

When I bring up a new browser window, and go to a
protected page (under /do/) I am redirected to the
login.jsp as I should be.  If I enter the correct
username / password, I am logged in correctly and
forwarded back to the page I was trying to access. 
This all works correctly. 

However, if I enter garbage for a username and
password, I am redirected to the error.jsp page, which
is also correct.  I then click the link on the
error.jsp page that takes me back to the login.jsp
page and try to login again with a valid
username/password combo, and it instantly redirects me
back to the error.jsp page.  This isn't correct (as
far as I can tell) since it should have successfully
authed me the second time into the page. 

I was wondering if anyone else had run into this
issue, or if there was something I was missing in one
of the config files or my web.xml file. 

I am also using struts, but I don't think that has
anything to do with this error, since it appears to be
a j_security_check setup issue somehow. 

Any help would be greatly appreciated. 

Thanks, 

Quenten 

Here is my code : 

+ my application web.xml +

Security Constraint

Protected Area
/do/*
GET
POST
PUT


eadmin
member

 


FORM
My JDBCRealm

/login.jsp   
/error.jsp

/login-config> 


admin role.
eadmin


member role.
member
 

+ tomcat server.xml + 


debug="50"   
driverName="org.postgresql.Driver" 
connectionURL="jdbc:postgresql://localhost:5432/mydb?user=postgres:password=postgres"
 userTable="members" userNameCol="login"
userCredCol="password"
userRoleTable="member_roles_view"
roleNameCol="user_role" /> 

+ my login.jsp +


Login Page for Examples


  

  Username:
  
name="j_username">


  Password:
  
name="j_password">


  
value="Log In">
  

  


 

+ my error.jsp +


Error Page For Examples


Invalid username and/or password, please try
again.

 

 


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

--
To unsubscribe, e-mail:   
For additional commands, e-mail:  




Hello Quenten, if ur web.xml is:
$TOMCAT_HOME
 |
 /webapps
|
/do
  |
  /WEB-INF 

then change ur web.xml tag:

/do/* 

to only: 


* 

hope this helps, david.

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



standard way to include XML resources

2002-11-25 Thread Thomas . Gaudin
Hi,
Can someone point me to an example showing how to use a custom XML file as
a ressource in Tomcat ?
Is it possible to use the package org.apache.tomcat.util.xml for this
purpose ?
Thanks,

Thomas



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Discrepancies between servlets and JSP on tomcat in handling UTF-8?

2002-11-25 Thread Bodycombe, Andrew
Interesting. I have encountered a similiar problem.

I have a servlet that connects to an XML application. The response from the
application is read using a SAX reader, and I encountered an error if the
response contained any non-ASCII characters (ü and ß in particular, as I am
currently working in Germany)

I did a little investigation, and found that the content type was text/xml;
charset=ISO-5591-1 and the xml tag was



Now the XML I received in my servlet was ISO-5591-1 and not UTF-8, so I have
contacted the application developers to say "Please fix your application
because the XML I receive is not encoded as UTF-8, it is ISO-5591-1." 

I have a work-round, where I read the input using an ISO-8859-1
InputStreamReader, and get the SAXReader to use this as the input. This is
working fine as a temporary measure.

The original message in this thread suggests to me that this could actually
be a tomcat problem and not necessarily a problem with the application I
connect to. There is clearly a discrepancy between the "encoding" type and
the "charset", and the SAX reader is using the value of the encoding
attribute to read the text.

Is tomcat doing something with the HTTP text, possibly converting it from
UTF-8 into ISO-5591-1?

I confess, I've not tried this servlet out in other servlet containers, just
tomcat version 4.1.12, running on Windows

Andy


-Original Message-
From: Stephen Riek
To: Tomcat Users List
Sent: 24/11/2002 23:37
Subject: Discrepancies between servlets and JSP on tomcat in handling UTF-8
?


I have a Form which is displayed in UTF-8. The form 
contains just one editable field, namely 
. 

   When I submit this to a JSP:
   
   I can extract the value of the string using,
   <%
   String s = request.getParameter("test");
   %>

   I then write the value of s to a UTF-8 file with this
   <% 
   PrintWriter o = new PrintWriter(new OutputStreamWriter(new
FileOutputStream("output.html"), "UTF-8"));
   o.write(msg);
   o.flush();
   o.close();
   %>

Opening the file "output.html" with a browser, I 
see that the original UTF-8 text is still perfectly 
intact and encoded as recognizable UTF-8.  
Hooray, it works.

   
But when I submit the form to a servlet
-=-
If I submit the form to a servlet, and try the same code,

   String s = request.getParameter("test");
   PrintWriter o = new PrintWriter(new OutputStreamWriter(new
FileOutputStream("output.html"), "UTF-8"));
   o.write(msg);
   o.flush();
   o.close();
   
Then the text is no longer recognizable. 
Same if I try to output 's' to the browser (after 
setting ContentTYpe to text/html;charset=uTF-8)
   
It WILL however work if I do the following:   

   String s = new
String(request.getParameter("test").getBytes("8859_1"), "UTF-8");

This is screwing with my head. 
First off, I thought that all JSP become servlets 
anyway so there should be no discrepancy between the first
and second sets of code. 

Secondly, Tomcat seems pretty inconsistent
in that "s=request.getParameter()" works in a JSP but 
not in a servlet.

Has anybody else noticed this ? 
Or can anybody account for this behaviour ? 

Thank you,

Stephen.





-
With Yahoo! Mail you can get a bigger mailbox -- choose a size that fits
your needs

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Page Statistics for Tomcat?

2002-11-25 Thread JStanczak

What log format do you use for awstats? #4?


Thank You,

Justin A. Stanczak
Web Manager
Shake Learning Resource Center
Vincennes University
(812)888-5813


|-+>
| |   Reynir Hübner|
| |   |
| ||
| |   11/25/02 08:45 AM|
| |   Please respond to|
| |   "Tomcat Users|
| |   List"|
| ||
|-+>
  
>--|
  |
  |
  |   To:   "Tomcat Users List" <[EMAIL PROTECTED]>   
  |
  |   cc:  
  |
  |   Subject:  RE: Page Statistics for Tomcat?
  |
  
>--|




Hi,
I really like awstats, it's in sourceforge...

I recommend that one :
http://sourceforge.net/projects/awstats/

Hope it helps

[EMAIL PROTECTED]


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: 25. nóvember 2002 13:41
> To: [EMAIL PROTECTED]
> Subject: Page Statistics for Tomcat?
>
>
> Hi, I was wondering if someone could advise me on a good tool
> to show statistics for Tomcat. Something like webalizer. I'm
> going to look into webalizer, but I wanted to see if anyone
> had something better.
>
>
> Thank You,
>
> Justin A. Stanczak
> Web Manager
> Shake Learning Resource Center
> Vincennes University
> (812)888-5813
>
>
>
> --
> To unsubscribe, e-mail:
>  [EMAIL PROTECTED]>
> For
> additional commands,
> e-mail: 
>
>

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







--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: help with multilingual JSP sites pls. using a Filter to rewrite the URL ?

2002-11-25 Thread Triptpal Singh Lamba
One way you can do this is using property files.

Prop_ file name _ language code.properties

So for say  abc.jsp , you have abc_en.properties and abc_fr.properties.

At comple time the JSP calls a class you write at server which gives say <%
String languageCode  = ObjectName.getLaguageCode(param 1 ,param 2);  %>

Then all JSP elements are picked from there.
Thanks
Tript Singh

- Original Message -
From: "Stephen Riek" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Sunday, November 24, 2002 6:42 PM
Subject: help with multilingual JSP sites pls. using a Filter to rewrite the
URL ?


>
> I'd like for a request to "/en/Folder/File" to be
> sent to "/Folder/File" but with a parameter 'lang'
>  set to 'en'.
>
> Likewise, a request to "/fr/Folder/File" to be
> sent to "/Folder/File" but with a parameter 'lang'
> set to 'fr'.
>
> Is this possible with Filters?
>
> If not, is there any way to accomplish this within Tomcat
> so that it works for any number of directories and
> subdirectories. The reason I want to do this is to avoid
> copying/pasting an entire sitemap to support a
> second language - I know that some people create a site
> in English then copy/paste the directory tree into another
> directory (eg. '/fr', '/de/', '/cn/') to support a
>  second language but this is not scalable and difficult to
> maintain. How do you circumvent doing such things ?
>
> Other mechanisms I've looked at are Apache rewrite rules
> but they're very complicated and I'd also like to make this
> work independent of Apache, and preferably for all servlet
> engines.
>
> Stephen.
>
>
>
>
>
> -
> With Yahoo! Mail you can get a bigger mailbox -- choose a size that fits
your needs
>



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Applet from servlet

2002-11-25 Thread David Brown
Andreas Probst writes: 

Hi David, 

don't put the class files and jars, which you need for an 
applet, below WEB-INF. Tomcat won't serve these files to the 
user's browser. Just put these files in your webapp's directory.
If you need the same classes also on the server, than you need 
to have two copies of them. 

Hope this solves your problem. 

Andreas 


On 24 Nov 2002 at 10:07, David Brown wrote: 

Hello tc-user, has anyone successfully invoked an applet from a
servlet using: response.sendRedirect(url) where
url=http://localhost/somehtml.html w/ the  tag
embedded? my efforts so far result in: Exception:
java.lang.ClassNotFoundException: com.x.y.MyApplet.class. i have
repackaged the applet in different ways to no avail. i am using
jakarta-tomcat installed "out-of-box" and using the same ant
build infrastructure as the examples and demos:  

$TOMCAT_HOME
  |
  |
  /bin
  /classes
  /common
  /conf
  /lib
  /logs
  /server
  /temp
  /webapps
  /work  

$TOMCAT_HOME
  |
  |
  /webapps
  |
  /myapplication
  |
  /manager
  |
  /ROOT
  |
  /examples
  |
  /webdav  

$TOMCAT_HOME
  |
  |
  /webapps
  |
  /index.html
  |
  /META-INF
  |
  /WEB-INF
$TOMCAT_HOME
  |
  |
  /webapps
  |
  /WEB-INF
 |
 /web.xml
 |
 /classes  

$TOMCAT_HOME
  |
  |
  /webapps
  |
  /classes
 |
 /com
|
/myapplication
|
/web
/beans  

i can place any number of servlets in /web and any number of java
"bean" or ordinary class files in /beans and reference their
constructors, variables and methods from servlets in /web.
however, no amount of packaging or lack of packaging of an applet
stored anywhere in this directory tree referenced w/
 in the index.html (see above) will work
(ClassNotFoundException). TOMCAT VERSION: 4.0.6 JDK: "1.3.1_02"
OS: RH7.2 NETWORK: linux box as router ENVIRONMENT: TOMCAT_HOME,
JDK_HOME BUILD: ant build.xml  

i welcome any and all ideas, suggestions, rants etc.. thanx,
david.  



--
To unsubscribe, e-mail:   
For additional commands, e-mail:  





Hello Andreas, thanx 4 the accurate and speedy reply. i (on a hunch) put my 
applet class under /webapps and can now load which ur message confirms 
(thanx). the history of this applet started out as a java standalone which 
works perfectly from any remote client. however to avoid downloads and 
client compiles i decided to convert the standalone to an applet. the applet 
depends on classes12.jar (or classes12.zip if on windoz). again, class not 
found exception because of classes found in classes12.jar. again, on a 
hunch, i unpacked the jar under /webapss along w/ the applet class (i know 
this is a poor solution but it helped throw light). when the applet loads i 
can see that i completes some of the init() but eventually hangs w/ the 
following:
Exception: java.util.MissingResourceException: Can't find bundle for 
basename Connection.locale en_US 

i know the best solution is for the applet to find the packed jar and then 
all should be ok but how? i have put the jar everywhere: classpath, 
build.xml property, $TOMCAT_HOME/lib, $TOMCAT_HOME/common/lib, etc.. any and 
all ideas, references, rants and raves welcomed. david.

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



Re: apache and tomcat and a webapp

2002-11-25 Thread paul miller

We switched from JServ to tomcat about 2 months ago.

for our production setup we use mod_webapp
and set the appBase to be the apache web_root.
 


This means that every thing goes through apache (a must)
and that tomcat serves all the content (Its all servlets and JSP)
Which may not be at all what you want.


--- Ron Smits <[EMAIL PROTECTED]> wrote:
> Let me try and be more specific :)
> 
> First of all, if I get all to work the current setup with JServ will
> disappear and I am testing this in a test environment (Vmware)
> 
> So let me see if I can chop my questions up in different parts
> The application is being developed using tomcat 4.1.12 running
> standalone. The development is going nice and contacting the application
> on localhost:8080/application is perfect.
> 
> Question 1:
> I want the application to be the root of the tomcat. Meaning that in my
> test environment when I contact localhost:8080 I get the application and
> not the standard Tomcat page.
> I edited the server.xml and changed the Root context to point to the
> application:
>   I even removed the
> ROOT directory. When starting this up going to localhost:8080 will give
> me a "No context configured to process this request" If I go to
> localhost:8080/application my application is there. So how do I change
> this?
> 
> Because the current server that needs to be replaced is running several
> domains in a virtual setup (and very nicely too thanks to apache). My
> idea is to remove the current 1.3 install with JServ and replace it with
> apache 2.0.43 that will run all the virtual hosts and will talk to
> tomcat for the web application (see question 1) that will be in a new
> virtual host. So after I have been able to get question 1 answered
> (replacing the root context with my application) the next question will
> be what the best way is of setting mod_jk up to serve up the application
> when apache gets a request for this application.
> 
> I hope this is more clearer 
> 
> Ron
> 
> PS to fullfill the list:
> OS linux version 2.4.19
> TOMCAT 4.1.12
> JDK: jsdk1.4.1_1
> Hardware never enough but it is a big enough intel box :)
> Network: running fine, thank you :)
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 


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

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: reloadable

2002-11-25 Thread james
Hi,

But I can't start Tomcat after I put the following to server.xml, and the
error msg can't be logged.








James


- Original Message -
From: "Jon Eaves" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, November 25, 2002 8:59 AM
Subject: Re: reloadable


> Hi Raja,
>
> The default behaviour setting for the class reloading is a touch
> on the slow side, so include a  in the  that
> looks like this one:
>
> 
>  className="org.apache.catalina.loader.WebappLoader"
> loaderClass="org.apache.catalina.loader.WebappClassLoader"
> checkInterval="1"  />
> 
>
> And you'll find that it will now check every second, rather than
> the default 15 seconds.
>
> Cheers,
> -- jon
>
> Raja Nasrallah wrote:
> > Hello,
> >
> > I set the attribute reloadable to true in a sample context tag(
> > in the sever.xml) to monitor the the "WEB-INF/classes".
> >
> > But it didn't affect. I make change in a sample class and the server
> > don't load this class again.
> >
> > I am using jakarta-tomcat-4.0.6 in winow2000 server.
> >
> > Should I have to do other setting to make the reloadable work.
> >
> > Thanks,
> > raja
> >
>
> --
> Jon Eaves <[EMAIL PROTECTED]>
> http://www.eaves.org/jon/
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Problem with Tomcat 4.1.12 and Oracle Lite JDBC Driver

2002-11-25 Thread Adam Hudspith
Hello,
I am trying to use the Oracle Lite JDBC driver from my webapp running in
Tomcat 4.1.12. Whenever the code attempts to make a connection, there is JVM
native code error detailed below. I have found this to occur every time for
Tomcat 4.0.6 and 4.1.12 on NT 4 and Windows 2000. The strange thing is that
the same Oracle Lite JDBC URL works fine from other Java apps. The whole
webapp also works okay in Oracle web server AND Tomcat 3.3.1.
I suspect this may have something to do with JNI. Is there some
configuration I may be missing?
Any ideas?
Regards,
Adam Hudspith.




Error:

Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x6D360274
Function=[Unknown.]
Library=C:\j2sdk1.4.0_01\jre\bin\client\jvm.dll

NOTE: We are unable to locate the function name symbol for the error
  just occurred. Please refer to release documentation for possible
  reason and solutions.


Current Java thread:
at oracle.lite.poljdbc.LiteEmbResultSet.jniGetDataTimestamp(Native Method)
at oracle.lite.poljdbc.LiteEmbResultSet.getVal(Unknown Source)
at oracle.lite.poljdbc.POLJDBCResultSet.getTimestamp(Unknown Source)
at oracle.lite.poljdbc.POLJDBCResultSet.getObject(Unknown Source)
at oracle.lite.poljdbc.POLJDBCResultSet.getObject(Unknown Source)
at
oracle.jbo.server.BaseSQLBuilderImpl.doLoadFromResultSet(BaseSQLBuilderImpl.
java:815)
at
oracle.jbo.server.AttributeDefImpl.loadFromResultSet(AttributeDefImpl.java:1
406)
at oracle.jbo.server.ViewRowImpl.populate(ViewRowImpl.java:1819)
at
oracle.jbo.server.ViewDefImpl.createInstanceFromResultSet(ViewDefImpl.java:8
57)
at
oracle.jbo.server.ViewObjectImpl.createRowFromResultSet(ViewObjectImpl.java:
2029)
at
oracle.jbo.server.ViewObjectImpl.createInstanceFromResultSet(ViewObjectImpl.
java:1963)
at oracle.jbo.server.QueryCollection.populateRow(QueryCollection.java:1279)
at oracle.jbo.server.QueryCollection.fetch(QueryCollection.java:1165)
- locked <0383D2B8> (a oracle.jbo.JboSyncLock)
at oracle.jbo.server.QueryCollection.get(QueryCollection.java:800)
at oracle.jbo.server.ViewRowSetImpl.getRow(ViewRowSetImpl.java:2538)
at
oracle.jbo.server.ViewRowSetIteratorImpl.doFetch(ViewRowSetIteratorImpl.java
:2154)
at
oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorI
mpl.java:2018)
- locked <0383D2B8> (a oracle.jbo.JboSyncLock)
at
oracle.jbo.server.ViewRowSetIteratorImpl.refresh(ViewRowSetIteratorImpl.java
:2218)
at oracle.jbo.server.ViewRowSetImpl.notifyRefresh(ViewRowSetImpl.java:1503)
at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:527)
- locked <0383D2B8> (a oracle.jbo.JboSyncLock)
at
oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorI
mpl.java:2004)
- locked <0383D2B8> (a oracle.jbo.JboSyncLock)
at
oracle.jbo.server.ViewRowSetIteratorImpl.hasNext(ViewRowSetIteratorImpl.java
:1406)
- locked <0383D2B8> (a oracle.jbo.JboSyncLock)
at oracle.jbo.server.ViewRowSetImpl.hasNext(ViewRowSetImpl.java:2137)
at oracle.jbo.server.ViewObjectImpl.hasNext(ViewObjectImpl.java:4324)
at com.candcuk.delphi.web.model.utils.RowList.(RowList.java:32)
at
com.candcuk.infrastructure.web.model.BC4JTableModel.(BC4JTableModel.ja
va:28)
at
com.candcuk.infrastructure.web.model.BC4JRowTableModel.(BC4JRowTableMo
del.java:22)
at
com.candcuk.delphi.web.portal.model.PlanSetsTableModel.(PlanSetsTableM
odel.java:26)
at
com.candcuk.delphi.web.portal.view.MyPlansPage.(MyPlansPage.java:41)
at
com.candcuk.delphi.web.portal.controller.MyPlansPageAction.perform(MyPlansPa
geAction.java:29)
at
com.candcuk.infrastructure.web.controller.ControllerServlet.doProcessRequest
(ControllerServlet.java:166)
at
com.candcuk.infrastructure.web.controller.ControllerServlet.doPost(Controlle
rServlet.java:81)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.cata

RE: Tomcat or JBoss?

2002-11-25 Thread JStanczak

Yes, I say that. It even has a graphic with Tomcat in it. I assumed they
used Tomcat, but I didn't know if there was more to it or if they just used
it straight out of the box. I have no need for EJB support. Well I guess
I'll just stick with Tomcat. Thanks for the info everyone!!!


Thank You,

Justin A. Stanczak
Web Manager
Shake Learning Resource Center
Vincennes University
(812)888-5813


|-+>
| |   "Shapira, Yoav"  |
| |   |
| ||
| |   11/25/02 09:25 AM|
| |   Please respond to|
| |   "Tomcat Users|
| |   List"|
| ||
|-+>
  
>--|
  |
  |
  |   To:   "Tomcat Users List" <[EMAIL PROTECTED]>   
  |
  |   cc:  
  |
  |   Subject:  RE: Tomcat or JBoss?   
  |
  
>--|




Howdy,
A couple of comments:

1. JBoss uses (or can use) Tomcat as its servlet/JSP container.  We've
used this setup in the past and like it.
2. If you need EJB support, or other J2EE features not offered by tomcat
stand-alone, JBoss would be a good way to go.
3. While the initial thought behind tomcat was a pure reference
implementation, at a time when none existed, I don't think this is the
case now.  It's still a reference implementation, used by Sun and JBoss
etc.  However, its performance is quite good, and it supports several
key features above and beyond the spec.

Just my $.02,

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
>Sent: Monday, November 25, 2002 8:52 AM
>To: [EMAIL PROTECTED]
>Subject: Tomcat or JBoss?
>
>I'm sure you get this question all the time, but this is not that type
of
>question. I've been using Tomcat for a while, like a year, in a
production
>environment. I think it's been doing fine so far. I've just got a new
>server to replace my current application server that's been running
Tomcat.
>I was thinking maybe I should set this up with JBoss instead of Tomcat,
>because this will be production. The reason I'm thinking about doing
this
>is one, because I'm at a stage where it would be easy to just install
>whatever I want and two, I've read a couple places that Tomcat is just
a
>reference implementation. That it was not really designed to be in
>production. It doesn't have to be just JBoss either. I just know a
little
>about it. Any suggestions would be great.
>
>
>Thank You,
>
>Justin A. Stanczak
>Web Manager
>Shake Learning Resource Center
>Vincennes University
>(812)888-5813
>
>
>
>--
>To unsubscribe, e-mail:   [EMAIL PROTECTED]>
>For additional commands, e-mail: [EMAIL PROTECTED]>


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







--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: How to configure Apache2.0.43 and Tomcat4.1.12 on Win2k

2002-11-25 Thread Malcolm Green
There are two sets of configuration that need to be done to get this
working.

Apache Configuration

The following needs to be added to the httpd.conf for Apache: (assuming the
dll has been put into the modules directory)

LoadModule jk2_module modules/mod_jk2.dll

Also, in the same directory you need a workers2.properties file.  Below is
an example.

--- below this line

# Example socket channel, override port and host.
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1

# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009

[uri:/examples/*]
worker=ajp13:localhost:8009

-- above this line

Tomcat Configuration


/conf/server.xml

In the server.xml file make sure that you have the following connector
uncommented. (Or add this is you need if there isn't one!)


  


/conf/jk2.properties

My jk2.properties doesn't contain anyting at all (everything is commented
out) so the defaults are used (e.g. port 8009).


Using the above you should be able to get to the examples bundled with
tomcat, assuming that you could get to the examples using http on port 8080.

Hope this helps

Malcolm

-Original Message-
From: Kaustuv Sharma [mailto:[EMAIL PROTECTED]]
Sent: 23 November 2002 05:49
To: Tomcat Users List
Subject: How to configure Apache2.0.43 and Tomcat4.1.12 on Win2k


 Hi,

I am new to Apache and I am trying to configure Apache2.0.43 and
Tomcat4.1.12 on win2k. I have downloaded mod_jk2.dll, but i am not being
able to run my jsp application. I am not being able to configure the
connector. I tried the docs in the jakarta site, but it has not been much
help. I also search trhough the archives but there too I didn't get much
help.

If anyone can please direct me to some good docs or if somebody can help me
out, it will be a great help.

Regards,
Kaustuv

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Tomcat NT Service & Runtime.exec()

2002-11-25 Thread Jason Cheng
Hey everybody,


   Thanks for all of the replies.  I was actually
testing this code on the actual production web server
(which I shouldn't have been doing in the first place)
and when I found out that I was unable to execute any
programs while logged on as myself I assumed it was a
shortcoming of running Tomcat as a service.  However
if I run the same JSP page using a browser on another
computer, it works fine.  Rodrigo and Jacob were right
in that checking the "Allow service to interact with
desktop" this JSP page will properly execute any
programs or shell commands while I am logged onto the
web server computer as a user thereby allowing me to
test that my code is functioning correctly.  Newbie
mistake.  Anyways, thanks to everyone who replied.


--- Rodrigo Ruiz <[EMAIL PROTECTED]> wrote:
> At least, doing so you should be able to test you
> are doing things well. We
> have developed a service (an internal project, not
> Tomcat related), and it's
> able to execute any program, including shells.
> 
> Check the security policy used by your Tomcat
> service. Perhaps you are not
> allowed to call the Runtime.exec() method.
> 
> 
> - Original Message -
> From: "Jacob Kjome" <[EMAIL PROTECTED]>
> To: "Tomcat Users List"
> <[EMAIL PROTECTED]>
> Sent: Monday, November 25, 2002 5:29 PM
> Subject: Re: Tomcat NT Service & Runtime.exec()
> 
> 
> 
> For each NT service, there is an option called
> "Allow service to interact
> with desktop" under Properties / Log On.  Check that
> option and what you
> ask for should work just fine.
> 
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


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

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Protectind directory

2002-11-25 Thread Osvâneo A . Ferreira
Hi David,

Thank for help. I found a solution. Added in WEB-INF/web.xml a directive:

and tomcat-users.xml a user, password and role. Make a test and ok.

See you.

Osvâneo A. Ferreira

- Original Message -
From: "David Brown" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, November 25, 2002 10:13 AM
Subject: Re: Protectind directory


> Osvâneo A. Ferreira writes:
>
> > Hi,
> >
> > I want protect a directory in my structure (
http://localhost/directory )
> > I use Apache+Tomcat and all test, it´s failed.
> > Try .htaccess of apache, but nothing.
> > Try permission  org.apache.naming.JndiPermission
"jndi://localhost/examples/*" , but nothing.
> >
> > How I do ?
> >
> >
> > Osvâneo A. Ferreira
>
>
>
> Hello, u need to supply more info (how u build is important):
> OS:
> TOMCAT VERSION:
> PLATFORM:
> ENVIRONMENT:
> NETWORK:
> BUILD: ant (build.xml), scripts (.sh , .bat, manual, etc.)
>
> if u want tomcat directory protection don't fiddle around with apache (i
> assume u mean httpd.conf). the tomcat instructions r very clear if u
> downloaded: jakarta-tomcat-x.y.z-src. u have to build a  w/
> WEB-INF and its own web.xml file (preferably using a war/jar file) where u
> define the protected directory something like this:
>
> $TOMCAT_HOME
>   |
>   /webapps
>  |
> |
> /WEB-INF
>|
>/web.xml
>
> u must be able to generate a war file and put it in your ""
> directory and then bounce ur tomcat server (i prefer to use:
> http://localhost/manager/install?path=). get the src as
> described above and read thoroughly and carefully. hope this helps, david.
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Tomcat or JBoss?

2002-11-25 Thread Shapira, Yoav
Howdy,
A couple of comments:

1. JBoss uses (or can use) Tomcat as its servlet/JSP container.  We've
used this setup in the past and like it.
2. If you need EJB support, or other J2EE features not offered by tomcat
stand-alone, JBoss would be a good way to go.
3. While the initial thought behind tomcat was a pure reference
implementation, at a time when none existed, I don't think this is the
case now.  It's still a reference implementation, used by Sun and JBoss
etc.  However, its performance is quite good, and it supports several
key features above and beyond the spec.

Just my $.02,

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
>Sent: Monday, November 25, 2002 8:52 AM
>To: [EMAIL PROTECTED]
>Subject: Tomcat or JBoss?
>
>I'm sure you get this question all the time, but this is not that type
of
>question. I've been using Tomcat for a while, like a year, in a
production
>environment. I think it's been doing fine so far. I've just got a new
>server to replace my current application server that's been running
Tomcat.
>I was thinking maybe I should set this up with JBoss instead of Tomcat,
>because this will be production. The reason I'm thinking about doing
this
>is one, because I'm at a stage where it would be easy to just install
>whatever I want and two, I've read a couple places that Tomcat is just
a
>reference implementation. That it was not really designed to be in
>production. It doesn't have to be just JBoss either. I just know a
little
>about it. Any suggestions would be great.
>
>
>Thank You,
>
>Justin A. Stanczak
>Web Manager
>Shake Learning Resource Center
>Vincennes University
>(812)888-5813
>
>
>
>--
>To unsubscribe, e-mail:   [EMAIL PROTECTED]>
>For additional commands, e-mail: [EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Help needed with Tomcat support for Double Byte Chars

2002-11-25 Thread John Z Yang
Hi,
We are using Tomcat3.3.1 and Oracle on Linux.
When we enter DoubleByte Chars (CJK, GB2312) in jsp form input, Tomcat 
turns the characters into 's.

The only way we can get around this problem now is to set the IE browser to 
check the temporary files everytime.

Does anyone knows how to fix this problem?

Many thanks.

John


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



RE: Sun JDK 1.4 production quality?

2002-11-25 Thread Shapira, Yoav
Hi,
We actually have several webapps (on separate tomcat instances) with
very different data models and corresponding GC behaviors.

For example, we have one webapp which actually doesn't get that much
user traffic, but needs to have a lot of information cached in memory
for very quick retrieval once those few users ask for it.  So its old
generation is about 80% of the heap.  We found ConcMarkSweepGC on the
old generation and parallel GC on the new generation to be very good
here:
JAVA_OPTS='-server -Xmx1024m -Xms768m -XX:NewSize=100m
-XX:MaxNewSize=200m 
-XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75
-XX:+UseParNewGC'

But as I've mentioned many times before: these settings are very
application-specific.  I don't know of any way, other than
experimentation and tuning with your own app, of finding the right
settings for you ;)

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Nick Wesselman [mailto:[EMAIL PROTECTED]]
>Sent: Friday, November 22, 2002 4:28 PM
>To: Tomcat Users List
>Subject: Re: Sun JDK 1.4 production quality?
>
>On Friday, November 22, 2002, at 11:33 AM, Shapira, Yoav wrote:
>
>> GC has markedly improved, although we did have to experiment
>> a bit with the new GC options.
>
>What conclusions did you come to? My understanding is that
>ConcMarkSweepGC might be helpful for Tomcat, since you could avoid the
>problem of the OS gathering too many network connections for Tomcat
>while it's garbage collecting.
>
>Nick
>
>
>--
>To unsubscribe, e-mail:   [EMAIL PROTECTED]>
>For additional commands, e-mail: [EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: session /application in servlets

2002-11-25 Thread Shapira, Yoav
Hi,

>Pertaining to recent posts, can someone please describe how
>session or application are defined in a servlet please? In JSP syntax
>there is no problem but in the method in the .java servlet below:

A JSP is a servlet, you know ;)  

The "Application" object in the JSP world typically gets tied back to
the ServletContext object in servlets.  There's only one of these
objects per web-app, and its maintained by the container.  So all your
servlets will share one ServletContext.

>public class LoadMyServletAtStartup implements ServletContextListener {
>
>  public void contextInitialized(ServletContextEvent sce) {
>
>Hashtable style_index = new Hashtable();
>
>style_index.put("element1", "ONE");
>style_index.put("element2", "TWO");
>
>application.setAttribute("style_index", style_index);
>}

Instead, in the method do:
  ServletContext sc = sce.getServletContext();
  sc.setAttribute("element1", "ONE");
  sc.setAttribute("element2", "TWO");
or if you'd like the whole thing:
  sc.setAttribute("style_index", style_index);

You would then get it from any servlet as:
Hashtable style_index =
(Hashtable)getServletContext.getAttribute("style_index");

A session is defined the same as for JSPs.  You can do
request.getSession(boolean) to get the HttpSession object.  Usually
you'd specify "true" as the argument in case you're the first servlet ni
the sequence and a session hasn't been created yet.

If you want more detailed, seek out the servlet specification (off
java.sun.com or wherever) v2.3, Section SRV 7 (sessions) and SRV 3
(servlet context).

Yoav Shapira
Millennium ChemInformatics

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Tomcat or JBoss?

2002-11-25 Thread Reynir Hübner
If you need EJB container I recommend that you set up Jboss, if you don't need it, 
don't do it. 

You must realize the fact that Tomcat is a servlet/JSP container when Jboss is a J2EE 
container, usually bundled with either Jetty or tomcat for servlets/jsp support.
I've been using tomcat for development for about 2 years and it is in my mind one of 
the best servlet containers around these days, as it's very simple to configure, 
performes well and is quite stable, I've also been using tomcat and other application 
servers for production and tomcat is just doing fine there as well.

What kind of improvement are you looking for in your production env over the dev-env, 
that you've been using ?

-reynir



> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
> Sent: 25. nóvember 2002 13:52
> To: [EMAIL PROTECTED]
> Subject: Tomcat or JBoss?
> 
> 
> I'm sure you get this question all the time, but this is not 
> that type of question. I've been using Tomcat for a while, 
> like a year, in a production environment. I think it's been 
> doing fine so far. I've just got a new server to replace my 
> current application server that's been running Tomcat. I was 
> thinking maybe I should set this up with JBoss instead of 
> Tomcat, because this will be production. The reason I'm 
> thinking about doing this is one, because I'm at a stage 
> where it would be easy to just install whatever I want and 
> two, I've read a couple places that Tomcat is just a 
> reference implementation. That it was not really designed to 
> be in production. It doesn't have to be just JBoss either. I 
> just know a little about it. Any suggestions would be great.
> 
> 
> Thank You,
> 
> Justin A. Stanczak
> Web Manager
> Shake Learning Resource Center
> Vincennes University
> (812)888-5813
> 
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: JavaMail problems on Tomcat4.0.6

2002-11-25 Thread Shapira, Yoav
Hi,
So you didn't get any errors with 4.0.3 and now are getting them with
4.0.6?

Would you be willing to try 4.0.6-LE and JDK 1.4.1?

>Minute 1:
>Default user is logged into mail server.
>See that messages are waiting.
>Attempt to invoke second sevlet.
>Exception is thrown: javax.servlet.UnavailableException: Cannot invoke
>default servlet through invoker

This doesn't seem to be a JavaMail exception.  It's generally through
that you can't programmatically invoke the default servlet.  What is the
argument (you called it strDispatch or something like that) to the
RequestDispatcher?

>Minute 2:
>Default user is logged into mail server.
>See that messages are waiting.
>Attempt to nvoke second sevlet.
>Exception is thrown: javax.mail.AuthenticationFailedException: Can't
get
>lock.  Mailbox in use

What happens if you catch this one and retry (once)?  Can you pre-clear
(or unlock) the mailbox before making this call?

Alternatively, can you have a mail retriever of some sort that's NOT a
servlet get the mail, and have the first servlet use this mail
retriever, skipping the whole RequestDispatcher.include mechanism?

I know this is not an answer ;)  Just suggesting an alternative design
that should be easy to implement...

Yoav Shapira
Millennium ChemInformatics

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Tomcat or JBoss?

2002-11-25 Thread Kristján Bjarni Guðmundsson
I don't know much about JBoss but it was my understanding that it was
an Enterprise JavaBeans Application Server and used Tomcat or something 
other as Servlet container.

This is from the JBoss faq:

What support exists in JBoss for JSP/Servlets ?
The default download contains Jetty as an integrated web container. There 
is also a download in which Tomcat is integrated.
Other web containers can be integrated, and it is also possible to create 
a configuration where no web support is included.


[EMAIL PROTECTED] wrote on 25.11.2002 13:52:28:

> I'm sure you get this question all the time, but this is not that type 
of
> question. I've been using Tomcat for a while, like a year, in a 
production
> environment. I think it's been doing fine so far. I've just got a new
> server to replace my current application server that's been running 
Tomcat.
> I was thinking maybe I should set this up with JBoss instead of Tomcat,
> because this will be production. The reason I'm thinking about doing 
this
> is one, because I'm at a stage where it would be easy to just install
> whatever I want and two, I've read a couple places that Tomcat is just a
> reference implementation. That it was not really designed to be in
> production. It doesn't have to be just JBoss either. I just know a 
little
> about it. Any suggestions would be great.
> 
> 
> Thank You,
> 
> Justin A. Stanczak
> Web Manager
> Shake Learning Resource Center
> Vincennes University
> (812)888-5813
> 
> 
> 
> --
> To unsubscribe, e-mail: 

> For additional commands, e-mail: 

> 



Re: jasper.error.emptybodycontent.nonempty, MySQL

2002-11-25 Thread David Brown
Eric Earnst writes: 

Hi all,
I've read a lot of docs but over a long enough period of time that I
forget most of what I read, the recent over-age newbie really applies
here... 

I am putting together my first site and am getting the following error
message from Tomcat (4.1.12-LE-jdk14):
org.apache.jasper.JasperException: /pnDatabaseConnect.jsp(3,0)
jasper.error.emptybodycontent.nonempty 

Here is the top of the file in question: 

<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %>
<%@ taglib prefix="sql" uri="http://java.sun.com/jstl/sql"; %> 


	var="PartNumDB" scope="application"
	driver="org.gjt.mm.mysql.driver"
	url="jdbc:mysql://localhost:3306/PartNumberMaster"
	user="Root"
	password=""
 


	SELECT * FROM PartNumberMaster
 

I don't have a web.xml file, every one I've come up with causes Tomcat
to not find my pages...  I've loaded the JSTL into:
C:\Jakarta\jakarta-tomcat-4.1.12-LE-jdk14\webapps\myapp\WEB-INF\lib
and the TLD files into the WEB-INF directory. 

Thanks,
Eric 

--
To unsubscribe, e-mail:   
For additional commands, e-mail:  




Hello Eric, i will have to admit that i'm using a tc version < 4.1.12 but i 
cannot fathom tc w/o a web.xml file. if u r a newbie then u r taking leaps 
that r too big. u have crammed a lot of functinality into a jsp using the 
tags. this is ok 4 someone w/ a lot of background but i personally don't 
recommend this approach. 4 the time being if u r interested in the 
functionality and not the implementation then allow me to suggest that u 
take a more "tiered" approach to make ur jdbc connection and sql query:
1) lay off the tags untill u r more experienced.
2) what i mean by "tier" is put ur jdbc connection and sql query in a 
separate class or "bean" away from ur web content directory. i use oracle 
and mysql all the time this way. get the class bean to execute standalone 
first b4 u put it into ur directory structure. an ascii directory tree 
follows.
3) inspect ur build process. using ant and bulid.xml is highly recommended.
4) if u get step two above to work (separating ur web content from ur 
process) then allow me to suggest introducing a third leg (in technogeek 
this is MVC: model-view-controller). this third piece is a servlet or better 
yet a "director" servlet that handles all requests from all of ur jsp's (1 
to serveral jsp's). case in point: ur jsp requests ur servlet for db info. 
the servlet requests info from ur class "bean". the servlet sends the db 
info and sql query results back to the jsp. in the long run much simpler and 
cleaner not to mention the ability to scale this "design pattern" (more 
technogeek). an example of my directory structure follows: 

$TOMCAT_HOME
 |
 /webapps
|
/
 /WEB-INF
|
/web.xml 

$TOMCAT_HOME
 |
 /webapps
|
/
 /WEB-INF
|
/classes
   |
   /
/\
   /  \
  /\
/web  /beans 

this is just one director. i have the directory separated to show the 
different file contents: web.xml is always under /WEB-INF. under /web 
contains: jsp's, html's, css's, etc. and under /beans contains: ordinary 
class files w/ constructors and getter/setter methods 4 ur web objects. 
also, the /beans directory or yet another aply named directory could 
contained serialized classes 4 even more advance data movement. 

this is the classic design pattern most developers have at least some 
familiarity: http://java.sun.com/blueprints/patterns/ or better yet just 
type: model-view-controler at the google prompt and start reading. 

hope this helps, david.

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



RE: JDK is not enough. SDK is needed

2002-11-25 Thread Shapira, Yoav
Howdy,
Whoa there skippy ;)  Venting is good sometimes...

>According to this page, it references j2se which is the JRE, the
runtime.
>If
>you're using Tomcat binaries and not compiling any Java, you would
think
>you
>only need the runtime libraries and not the whole SDK.
>http://members.ozemail.com.au/~lampante/howto/tomcat/iisnt/#1

"This page" above is some user's howto guide.  I wouldn't count on it as
the definitive reference for anything.

The Jakarta site says you need the JDK, not the JRE.  These definitions
are uniform in their use across java.sun.com, the various apache.org
sites, theserverside, jguru, many vendor sites, etc. so there is very
little confusion as to which one is which.  The JDK is the bigger one,
containing various development tools including Javac and its tools.jar
packaging required for runtime compilation of JSPs.  The JRE is the
smaller one.

>Also Jakarta's site is one of the worst sites I visited. The home page
says
>nothing about Jakarta upfront. No intro about jakarta and what it's
about.

I find the Jakarta home page EXCELLENT.  I've used it as a model in
telling my developers, contractors, etc, how to structure their product
web sites.  If you scroll a bit down past the news, on the front page
there is a section that explains what Jakarta is quite well:

>Welcome  
>The Jakarta Project creates and maintains open source solutions on the
Java >platform for distribution to the public at no charge. Jakarta
products are >developed by and distributed through various subprojects,
which are listed >the SubProjects menu the left, or in the section
below. Each subproject has >its own team of developers and committers,
and its own mailing list. 
>
>All product support is provided through the subproject mailing lists.
All >work at Jakarta is provided a volunteer basis. There is no paid
staff. >Please considerate and do your homework before asking our
volunteers to >donate additional time and energy to your project. 
>
>All active products from the Java Apache Project have been merged into
the >Jakarta website. A few retired projects (like JServ) are still
available >through the Java Apache website. 

>nothing about Tomcat. There's no 'requirements' section. Therefore I
can't
>find out what I need to run Tomcat. For someone who just wants to use
it,

The documentation for tomcat is easily accessible.  The READ-ME tells
you that the install and run document has requirements.  The install and
run document has clear, complete, and concise requirements.  Every
tomcat distribution also includes this documentation in the top level
directory when you unpack it.

>the resources are hidden in the site. There's no search function and
the
>site is not easy to navigate. I hope it wasn't developed by a
developer.
>Web developers do not necessarily design good web pages.

Not necessarily is correct.  There guys, IMHO, do design excellent web
pages.  I've found them easy to navigate and to find what I need.
There's a "Search Jakarta" link at the top left of the home page.  

I hope you've installed it all, and chilled out a bit, over the weekend.
As a future reference, I would point out that historically, calm and
well thought-out questions to this list tend to get more and better
responses.  There's a good reason most people (and believe me, a lot of
people read it) chose to ignore your message.

Yoav Shapira
Millennium ChemInformatics



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: reloadable

2002-11-25 Thread Jon Eaves
Hi Raja,

The default behaviour setting for the class reloading is a touch
on the slow side, so include a  in the  that
looks like this one:


	


And you'll find that it will now check every second, rather than
the default 15 seconds.

Cheers,
	-- jon

Raja Nasrallah wrote:

Hello,
 
I set the attribute reloadable to true in a sample context tag(
in the sever.xml) to monitor the the "WEB-INF/classes".
 
But it didn't affect. I make change in a sample class and the server
don't load this class again.
 
I am using jakarta-tomcat-4.0.6 in winow2000 server.
 
Should I have to do other setting to make the reloadable work.
 
Thanks,
raja


--
Jon Eaves <[EMAIL PROTECTED]>
http://www.eaves.org/jon/


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: IIS on W2k + tomcat 4.1.12

2002-11-25 Thread David Boyer
I didn't have too much trouble getting the 2.01 filter to work with
Tomcat 4.1.12 and IIS 5.
 
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/configwebcom.html
 
I don't think you need urimapworkers.properties. In addition to the
ISAPI dll, all I'm using is workers2.properties and jk2.properties.

I think the source for the jk2 connector contains all of the sample
properties and reg files and some additional info:
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0.1/src/
 

>>> [EMAIL PROTECTED] 11/24/02 10:58PM >>>

Was anybody successful in integrating IIS with tomcat 4.1.12.
I downloaded the isapi_redirector2.dll.
I was able to find the workers2.properties but I am not able to find
the
urimapworkers.properties. It is not available along with the
workers2.properties file.

After trying to add the ISAPI filter I get a error in event viewer
saying
unable to open the key
Software\Apache Software Foundation\Jakarta Isapi Redirector\2.0.
The How To document (
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0.
1/doc/jk/iishowto.html ) says the key as
Software\Apache Software Foundation\Jakarta Isapi Redirector\1.0

Looks like the How to document is not up to date with software changes.


Any Ideas.

Thanks.





RE: Displaying servlets and its memory usage

2002-11-25 Thread Shapira, Yoav
Hi,
OptimizeIt 5.0, the newest, claims to be able to display this sort of
thing, if your servlets are each a different class, which is normally
the case.  But keep in mind all you'll see, with any of today's tools
that I know of, is the memory usage of the servlet instance itself, not
including any member variables it holds.

For example, if com.mycompany.MyServlet has five instances in memory,
each holding a String[1000] array, you would see the five instances as
one memory total, and the String[] as 5000 separate things.

Older tools don't even support that much information.  In general, using
JPDA/JVMPI to get hierarchical (as opposed to flat, which all tools do)
memory information is currently next to impossible.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Sriraman.R [mailto:[EMAIL PROTECTED]]
>Sent: Sunday, November 24, 2002 6:38 AM
>To: tomcat
>Subject: FW: Displaying servlets and its memory usage
>
>Any clues/pointers to get this info!
>
>-Sriram
>
>-Original Message-
>From: Sriraman.R [mailto:[EMAIL PROTECTED]]
>Sent: Friday, November 22, 2002 7:18 PM
>To: Tomcat Users List
>Subject: Displaying servlets and its memory usage
>
>
>hi all,
>   I have tomcat 3.2.4 and few servlets running. I want to see the
>memory
>usage of each serlvet
> running. However I get memory hogging often. I would like to find
which
>servlet is causing this problem.
>   Is there a tool/java program to dump each servlet and its memory
>usage
>periodically,say every 10 secs
> like NT's Task Manager.
>
>  Appreciate any help asap!
>
>  thanks,
>  -Sriram
>
>
>
>
>--
>To unsubscribe, e-mail:
>
>For additional commands, e-mail:
>
>
>
>
>--
>To unsubscribe, e-mail:   [EMAIL PROTECTED]>
>For additional commands, e-mail: [EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Tomcat or JBoss?

2002-11-25 Thread JStanczak
I'm sure you get this question all the time, but this is not that type of
question. I've been using Tomcat for a while, like a year, in a production
environment. I think it's been doing fine so far. I've just got a new
server to replace my current application server that's been running Tomcat.
I was thinking maybe I should set this up with JBoss instead of Tomcat,
because this will be production. The reason I'm thinking about doing this
is one, because I'm at a stage where it would be easy to just install
whatever I want and two, I've read a couple places that Tomcat is just a
reference implementation. That it was not really designed to be in
production. It doesn't have to be just JBoss either. I just know a little
about it. Any suggestions would be great.


Thank You,

Justin A. Stanczak
Web Manager
Shake Learning Resource Center
Vincennes University
(812)888-5813



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Page Statistics for Tomcat?

2002-11-25 Thread Reynir Hübner
Hi, 
I really like awstats, it's in sourceforge...

I recommend that one :
http://sourceforge.net/projects/awstats/

Hope it helps

[EMAIL PROTECTED]


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
> Sent: 25. nóvember 2002 13:41
> To: [EMAIL PROTECTED]
> Subject: Page Statistics for Tomcat?
> 
> 
> Hi, I was wondering if someone could advise me on a good tool 
> to show statistics for Tomcat. Something like webalizer. I'm 
> going to look into webalizer, but I wanted to see if anyone 
> had something better.
> 
> 
> Thank You,
> 
> Justin A. Stanczak
> Web Manager
> Shake Learning Resource Center
> Vincennes University
> (812)888-5813
> 
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Page Statistics for Tomcat?

2002-11-25 Thread JStanczak
Hi, I was wondering if someone could advise me on a good tool to show
statistics for Tomcat. Something like webalizer. I'm going to look into
webalizer, but I wanted to see if anyone had something better.


Thank You,

Justin A. Stanczak
Web Manager
Shake Learning Resource Center
Vincennes University
(812)888-5813



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Protectind directory

2002-11-25 Thread David Brown
Osvâneo A. Ferreira writes: 

Hi, 

I want protect a directory in my structure ( http://localhost/directory )
I use Apache+Tomcat and all test, it´s failed.
Try .htaccess of apache, but nothing.
Try permission  org.apache.naming.JndiPermission  "jndi://localhost/examples/*" , but nothing. 

How I do ? 


Osvâneo A. Ferreira



Hello, u need to supply more info (how u build is important):
OS:
TOMCAT VERSION:
PLATFORM:
ENVIRONMENT:
NETWORK:
BUILD: ant (build.xml), scripts (.sh , .bat, manual, etc.) 

if u want tomcat directory protection don't fiddle around with apache (i 
assume u mean httpd.conf). the tomcat instructions r very clear if u 
downloaded: jakarta-tomcat-x.y.z-src. u have to build a  w/ 
WEB-INF and its own web.xml file (preferably using a war/jar file) where u 
define the protected directory something like this: 

$TOMCAT_HOME
 |
 /webapps
|
   |
   /WEB-INF
  |
  /web.xml 

u must be able to generate a war file and put it in your "" 
directory and then bounce ur tomcat server (i prefer to use: 
http://localhost/manager/install?path=). get the src as 
described above and read thoroughly and carefully. hope this helps, david. 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



Re: tomcat as bundle

2002-11-25 Thread David Brown
[EMAIL PROTECTED] writes: 

Hi, 

Can any one tell me whether tomcat is avalable for download as a
single tar.gz file?! and where is it available... 

I would like to install tomcat on Irix 6.5.16, anyone suggest if 
experimented already on this. 

thanks,
Ranjit. 

- 


--
To unsubscribe, e-mail:   
For additional commands, e-mail:  


Hello, apache.org. 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



reloadable

2002-11-25 Thread Raja Nasrallah
Hello,
 
I set the attribute reloadable to true in a sample context tag(
in the sever.xml) to monitor the the "WEB-INF/classes".
 
But it didn't affect. I make change in a sample class and the server
don't load this class again.
 
I am using jakarta-tomcat-4.0.6 in winow2000 server.
 
Should I have to do other setting to make the reloadable work.
 
Thanks,
raja



cannot use SSL with tomcat running as a service

2002-11-25 Thread Aurelio D'Amico
If run tomcat using the provided batch I can use SSL without any problem, if
I run tomcat as a service instead, I receive the 404 errore page.
Any Idea how to solve this problem?

I'm using:
windows NT SP6
java 4.1.1_01
tomcat 4.1.12-LE-jdk14


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Protectind directory

2002-11-25 Thread Osvâneo A . Ferreira
Hi,

I want protect a directory in my structure ( http://localhost/directory )
I use Apache+Tomcat and all test, it´s failed.
Try .htaccess of apache, but nothing.
Try permission  org.apache.naming.JndiPermission  "jndi://localhost/examples/*" , but 
nothing.

How I do ?


Osvâneo A. Ferreira



Problems running VeriSign trial sertificate in Tomcat.

2002-11-25 Thread Morten Tollefsen
Problem with running Tomcat using VeriSign trial certificate.
 
Can anyone please help me with this problem? Have searched for hours,
but can't find any sollutions...
 
I'm running:
 
Windows 2000
JDK 1.3
JSSE 1.0.3
Tomcat 3.2.3
 
Have done:
 
- Created self-signed certificate using keytool, OK.
- Tomcat SSL setup, running with self-signed certificate, OK.
- Created the CSR and sent it to VeriSign, OK.
- Imported the trial certificate from VeriSign using 'keytool -import
-alias tomcat -keystore verisign -file tomcat.cer'
  Have also tried to change keystore name and password.
 
Tomcat error message:
javax.net.ssl.SSLException: Unrecognized SSL handshake.
 
My connector parameters in server.xml:
 

  
  
  
  
  
  
  

 
Have tried to change secure and clientauth parameters without success.
 
Any ideas???
 
Greetings
Morten Tollefsen 
Integrasjonssystemer AS 
[EMAIL PROTECTED] 
33036066 / 97178250 
 



ldap authenitcation

2002-11-25 Thread Charlene Mitchell
Hi,

How do I authenticate against an LDAP directory using
TomCat 4.1.2?

In my web.xml I have a resource that requires form
authentication as follows:
   
FORM
java:/jaas/LDAPLogin


/login
   
/login-fail
  


I have read the JNDI Realm how-to and added the
following few lines to my server.xml file.
  ldap://ldapmachine:389";
userPattern="uid={0},ou=Users,o=myOrg.com"
roleBase="ou=Groups,0=myOrg.com"
roleName="cn"
roleSearch="(uniqueMember={0})"/>

When I access a restricted URL the login page appears
and I type in my credentials, but when I submit (to:
j_security_check) 
I automatically get redirected to my login-fail page
in a matter of nano-seconds (this in itself suggests
that it is not working!).

When I look in the TomCat log files I cannot see any
references to any attempts to contact my LDAP
directory.
And when I look in the LDAP access log I cannot see
any attempt to be contacted either.

What step have I missed out or got wrong?

Many thanks in advance

Charlene

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

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




jk2 + SSL

2002-11-25 Thread Alex Fritze
Hi,

I'm running Apache 1.3 with mod_ssl/Tomcat 4.1/JK2 and I'd like to get SSL
access to some of my webapps. This is my workers2.properties:
-
[shm]
file=/usr/local/httpd/logs/shm.file
size=1048576
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009

[uri:/foo/*]
worker=ajp13:localhost:8009

[uri:/bar/*]
worker=ajp13:localhost:8009
--

and this is my server.xml connector config:
--

  

--

I'd like 'bar' to be accesible by https & 'foo' by http.
However, with the above config, when I browse to 'https://localhost/bar/' I
get the error message:

"
Your browser sent a request that this server could not understand.
Reason: You're speaking plain HTTP to an SSL-enabled server port.
Instead use the HTTPS scheme to access this URL, please.
Hint: https://localhost:443/
"

When I change my connector in server.xml to "scheme='https'" then SSL access
works ok, but if I try to connect at http://localhost/foo/, I'm getting
automatically redirected to 'https'...

I've tried to set up two connectors (one with scheme="http" on port 8009 and
one with scheme="https" on port 8019), but I don't know how to configure jk2
to map /foo/ to 8009 and /bar/ to 8019. Can anybody help?

Thanks
Alex



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Set Jikes Path

2002-11-25 Thread Lee Peik Feng
Hi all,
  I am using jikes1.18 with tomcat 4.1.12 on Linux.

  My question is: is it possible for me to set Jikes path  if I dun't put
the jikes in my system path?
  As for tomcat 4.0, I can set jspCompilerPath in /conf/web.xml, as
below:

  jspCompilerPath
  /some/where/to/jikes


How can I do this in tomcat 4.1.12?

Thank you



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: [OT] Re: is there a free ide that gets along well with tomcat?

2002-11-25 Thread Steve Beech
I'm using JEdit4 (http://www.jedit.org/) which I like a lot. It doesn't use
much memory at all and has some extremely useful plugins. Open source too.

Steve

-Original Message-
From: Chris Gokey [mailto:[EMAIL PROTECTED]]
Sent: 22 November 2002 02:29
To: Tomcat Users List
Subject: Re: [OT] Re: is there a free ide that gets along well with
tomcat?


Something also to remember if you are running Linux, you should download
the x86/GTK 2 version of it.  The MOTIF version is slow and buggy. 
Unfortunately this isn't obvious and they put the MOTIF version higher
in the list of download choices.  But we have also experimented with
both Eclipse, Netbeans, and Forte and most of our development group is
leaning towards eclipse as a IDE choice.

Chris

On Thu, 2002-11-21 at 21:08, Peter Lin wrote:
>  
> eclipse does have a different model for the UI, but once I got over the
difference, I found it better. Those who are used to Borland's style of UI
will find eclipse a bit un-intuitive at first, but having used it quite a
bit the last month I find it is actually much more productive.
> until I really sat down and tried it out, it was a bit weird at first.
Once you get over the visual differences, the under lying framework is much
more powerful and flexible than other java IDE's.  the plugin architecture
allows one to write plugins for tomcat fairly easily.
>  
> there seems to be a lot of momentum with eclipse and I personally prefer
it to swing. The widget API seems better to me and is much more appealing
than swing. there are several server plugins in the work for eclipse
including websphere and couple other popular containers.
>  
> peter
>  Kwok Peng Tuck <[EMAIL PROTECTED]> wrote:eclipse needs a lot of work,
but it looks like they are making progress. 
> Some of their stuff seems counter intuitive at the moment. So I'll take 
> a rain check on that ide.
> 
> I'm suprised that Sun One Studio would need 512 mb of memory. Have you 
> done some module tuning yet? That might help you reduce memory usage.
> 
> Tref Gare wrote:
> 
> >I'd be voting more like 512meg memory for Sun One Studio... but
> >similarly.. it's pretty effective once you're up at that level of
> >hardware.
> >
> >I've heard really good things about eclipse though.. when I get a chance
> >I'm going to give it a try.
> >
> >T
> >
> >--
> >Tref Gare
> >Development Consultant
> >Areeba
> >Level 19/114 William St, Melbourne VIC 3000
> >email: [EMAIL PROTECTED]
> >phone: +61 3 9642 5553
> >fax: +61 3 9642 1335
> >website: http://www.areeba.com.au
> >--
> >"This email is intended only for the use of the individual or entity
> >named above and contains information that is confidential. No
> >confidentiality is waived or lost by any mis-transmission. If you
> >received this correspondence in error, please notify the sender and
> >immediately delete it from your system. You must not disclose, copy or
> >rely on any part of this correspondence if you are not the intended
> >recipient. Any communication directed to clients via this message is
> >subject to our Agreement and relevant Project Schedule. Any information
> >that is transmitted via email which may offend may have been sent
> >without knowledge or the consent of Areeba."
> >--
> >
> >-Original Message-
> >From: Andy Eastham [mailto:[EMAIL PROTECTED]] 
> >Sent: Friday, 22 November 2002 9:23 AM
> >To: Tomcat Users List
> >Subject: RE: is there a free ide that gets along well with tomcat?
> >
> >Sun One Studio needs 256Mb of memory. If you haven't got that much,
> >forget
> >it. If you have, it rocks.
> >
> >Andy
> >
> > 
> >
> >>-Original Message-
> >>From: Steve R Burrus [mailto:[EMAIL PROTECTED]]
> >>Sent: 21 November 2002 21:29
> >>To: Tomcat Users List
> >>Subject: Re: is there a free ide that gets along well with tomcat?
> >>
> >>
> >> Hi Jennifer, this is steve burrus, and I am most curious about u
> >>apparently
> >>stating that the Sun One Studio (aka Forte) is "irritating" so
> >>you chose/decided
> >>to uninstall it "unceremoniously" :)!! How do you find it to be
> >>"irritating"
> >>because I also have certain "issues" with it, namely that I have
> >>to WAIT FOREVER
> >>for my PC's processor to be able to do the next operation in the
> >>application!!! I
> >>await "breathlessly" for your response.
> >>
> >>
> >> 
> >>
> >S.R.B.
> > 
> >
> >>__
> >>Do you Yahoo!?
> >>Yahoo! News - Today's headlines
> >>http://news.yahoo.com
> >>
> >>--
> >>To unsubscribe, e-mail:
> >> 
> >>
> >
> >For additional commands, e-mail:
> >
> >
> >
> >
> >
> >--
> >To unsubscribe, e-mail:
> >
> >For additional commands, e-mail:
> >
> >
> >
> >--
> >To unsubscribe, e-mail: 
> >For additional commands, e-mail: 
> >
> >
> > 
> >
> 
> 
> 
> --
> To unsubscribe, e-mail: 
> For additional commands, 

Re: Tomcat NT Service & Runtime.exec()

2002-11-25 Thread Rodrigo Ruiz
At least, doing so you should be able to test you are doing things well. We
have developed a service (an internal project, not Tomcat related), and it's
able to execute any program, including shells.

Check the security policy used by your Tomcat service. Perhaps you are not
allowed to call the Runtime.exec() method.


- Original Message -
From: "Jacob Kjome" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, November 25, 2002 5:29 PM
Subject: Re: Tomcat NT Service & Runtime.exec()



For each NT service, there is an option called "Allow service to interact
with desktop" under Properties / Log On.  Check that option and what you
ask for should work just fine.



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: servlet startup compile error

2002-11-25 Thread Bill Barker
The 'application' variable is only defined within the definition of the
'_jspservice' method.  And, this is how it should be.  To get what you want
you need:
<%!
  public  void contextInitialized(ServletContextEvent sce)  {
 // Relying on the fact that Jasper's base class extends GenericServlet
 ServletContext application = getServletContext();
 .


<[EMAIL PROTECTED]> wrote in message
news:OFB198B5CB.AE8A1E11-ON48256C7C.000EB33E-48256C7C.000EF3D4@allsolutions.
com.au...
> Hello,
> In my servlet to be started on server load, why may I not define
> the application thus:
>
>
> public void contextInitialized(ServletContextEvent sce)  {
>
> Hashtable style_index = new Hashtable();
>
> style_index.put("element1", "ONE");
> style_index.put("element2", "TWO");
>
> application.setAttribute("style_index", style_index);   //
> cannot resolve symbol!
>
> }
>
> your thoughts / input appreciated
>
> paul.





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




<    1   2