RE: small help needed.

2001-02-19 Thread Cato, Christopher

 In the tomcat-apache-how-to there is a section  at the end 
 where the writer
 answers a question of How do you start tomcat as "nobody"
 
 Here's the code:
 
 #!/bin/sh
 CLASSPATH=/your/classpath/here
 export CLASSPATH
 su - nobody -c "/tomcat/bin/tomcat.sh $@"
 
 The only thing  I changed was the path /your/classpath/here
 My CLASSPATH contains JAVA_HOME so I figure I have to put 
 that env var and
 associated export
 
 On boot TomCat is not being started.
 
 I've got some debug/echo in tomcat.sh that writes out to a 
 file.  The debug
 msgs never show up, so I figure it tomcat.sh is never being called.
 
 Now I'm not super clear about why I would need or want to run 
 TomCat as
 nobody.  If I yank out the "su - nobody" it seems to work fine.

You would want TomCat to run as nobody so that it is not possible to break
TomCat (which is usually run as 'root') in some way and thereby gain root
access to your machine.

 ands what's the "nobody" got to do with boot up anyway.

See above. It's ok to run as root - it's just not very secure.

 Also, any clue on why I don't  see any msgs or why TomCat is not being
 started.

Does 'nobody' have the rights to execute startup.sh? Does 'nobody' have
access to the TomCat dir?

If not, correct it and try again.

/christopher

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




Apache for JSP

2001-02-19 Thread yogesh tripathi

Dear Sir,
I am Yogesh, project manager in hcc infotech(www.hccinfotech.com), India.
My team doesnt know how to configure Apache to run n test JSP files.
Please help us.
Regds
Yogesh
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


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




Detailed mod_jk documentation...

2001-02-19 Thread Adam Fowler

Hi all,

Me again. I've documented as fully as possibly how I got mod_jk working. I
will also be adding a tomcat/apache installation/configuration section soon
too (it's my research project)

URl is: http://willow.cc.edu/docs/adminguide
Click the tomcat/jakarta link on the left.

Hope this helps ppl. Any changes/additions (win2k/Mac OS X compilation etc.)
e-mail me at [EMAIL PROTECTED]

Regards, nos da,
Adam.

PS nos da = good night in Welsh(Cymraeg) - I'm tired, OK 8o)


Adam Fowler
Second year Computer Science undergraduate
University of Wales, Aberystwyth
Carroll College, WI, USA(2000-2001)
web: http://gucciboy.dyndns.org/aff9
e-mail: [EMAIL PROTECTED]
"Every new beginning comes from some other beginning's end"



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




Re: How to disable sessions timeout?

2001-02-19 Thread mike niemaz

Filip Hanik wrote:

 really, that doesn't sound right. You have to be able to disable the session
 timeout.
 This is taken from the servlet specification, you can set the timeout to -1
 in web.xml for your web application or do it programatically.

So is -1 doing the trick or the spec are not uptodate?



 EXTRACT
 The default timeout period for sessions is defined by the servlet container
 and can be obtained via
 the getMaxInactiveInterval method of the HttpSession interface. This timeout
 can be
 changed by the Developer using the setMaxInactiveInterval of the HttpSession
 interface. The timeout periods used by these methods is defined in seconds.
 If the timeout period
 for a session is set to -1, the session will never expire.
 /EXTRACT

 EXTRACT
!ELEMENT session-timeout (#PCDATA)
!--
  The mime-mapping element defines a mapping between an extension
  and a mime type.
--
 /EXTRACT
 Filip



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




Re: WebServer-Tomcat linking problem... was [cannot find file mod_jk.conf-auto]

2001-02-19 Thread Ratnakar Malla

Hi All,
Finally i was successful in installing
Apache-Tomcat-Soap Trio. This did suck a lot of time ,
the whole week. I will write an installation doc,
based on my experiences , and i will put on my
website.
Thank you all for your cooperation.
Bye,
Ratnakar
--- Dave Smith [EMAIL PROTECTED] wrote:  I have
successfully built mod_jk.so on both FreeBSD
 and Redhat 6.2, along
 with Apache with and without dynamic modules, SSL,
 PHP, etc. It is
 not a developer issue if you got a good compile --
 it is almost certainly
 a configuration issue and screw up on your part.
 Don't blame the code.
 
 I will say in your defense, though, that the
 documentation and general
 layout of things totally sucks on tomcat 3.2.1. The
 learning curve is
 way too high. That shit should just work, period. I
 recently spent some
 serious time trying to compile mod_jk on a box where
 there really ARE
 developer issues (Mac OS X Public Beta, aka Darwin
 1.2). It was
 not doable, because the tomcat code base is not
 really portable to all
 unix's. In contrast, I was able to build Caucho
 Resin's Apache
 connector (which uses the GNU ./configure system)
 out of the box,
 so Resin is what we'll be using. It's faster, too.
 
 So I think the tomcat dev team needs to adopt
 something like GNU's
 automake if they really want to get serious about
 portability. (Or get
 serious about their code).
 
 Regards,
 
 
 Dave
 
 - Original Message -
 From: "Adam Fowler" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Saturday, February 17, 2001 3:54 PM
 Subject: WebServer-Tomcat linking problem... was
 [cannot find file
 "mod_jk.conf-auto"]
 
 
  Ok,
 
  Any Developers out there?
 
  This makes 5 ppl this week having problems with
 varying versions of tomcat
  and varying platforms/web servers. This is all one
 problem.
 
  Everyone is using mod_jk.so on Apache/IIS but it
 just doesn't wanna let
  tomcat communicate with them. On all of the
 postings I've seent his
  week(ahem and am experiencing ahem) the general
 points are:-
 
  1) Tomcat runs on port 8080 with no problems and
 serves scripts.
  2) Everyone is using mod_jk.so
  3) When running through the web server it just
 doesn't want to serve
  scripts.
 
  I believe this could be one of three problems:-
 
  1) Tomcat is linked in wrong(I am using Mandrake
 7.2 whilst my Professor
  uses Redhat 6.2 and his works)
  2) Tomcat throws a Java run time error when
 communicating with mod_jk, but
  with no standard out available(terminal screen
 etc.) it doesn't display it
  and it isn't logged.
  3) mod_jk is retarded and is not handling the
 communication correctly.
 
  Any possibilities anyone?
 
  Oh, and try doing a complete search of the
 computer for the file - use the
  filename mod_jk.conf* - that should find it if it
 is being generated, it
  might just be getting put in the wrong direction.
 
  Regards,
  Adam.
 
  
  Adam Fowler
  Second year Computer Science undergraduate
  University of Wales, Aberystwyth
  Carroll College, WI, USA(2000-2001)
  web: http://gucciboy.dyndns.org/aff9
  e-mail: [EMAIL PROTECTED]
  "Every new beginning comes from some other
 beginning's end"
  
 
 
  -Original Message-
  From: Ratnakar Malla [mailto:[EMAIL PROTECTED]]
  Sent: Saturday, February 17, 2001 11:14 AM
  To: [EMAIL PROTECTED]
  Subject: RE: cannot find file "mod_jk.conf-auto"
 
 
  Hi Adam,
  Thank you for replying. well i did start the
 tomcat
  server. i am using the latest build. Catalina
 (Tomcat
  4.0) . Tomcat displays the following message
  
  Starting service Tomcat-Standalone
  Apache Tomcat/4.0-dev
  Starting service Tomcat-Apache
  Apache Tomcat/4.0-dev
  _
  And further, Tomcat is working perfectly in
 standalone
  mode . I can access port 8080. Similarly, tomcat ,
  standalone is working fine.
  Thank You,
  Ratnakar
  --- Adam Fowler [EMAIL PROTECTED] wrote:  I take
 it
  you have ran tomcat to generate the file,
   yes?
  
   Adam.
  
   
   Adam Fowler
   Second year Computer Science undergraduate
   University of Wales, Aberystwyth
   Carroll College, WI, USA(2000-2001)
   web: http://gucciboy.dyndns.org/aff9
   e-mail: [EMAIL PROTECTED]
   "Every new beginning comes from some other
   beginning's end"
   
  
  
   -Original Message-
   From: Ratnakar Malla
 [mailto:[EMAIL PROTECTED]]
   Sent: Friday, February 16, 2001 9:56 PM
   To: Tomcat
   Subject: cannot find file "mod_jk.conf-auto"
  
  
   Hi All,
   The documentation says that the file
   "mod_jk.conf-auto"
   the configuration file for mod_jk.dll, will be
   automaticlly generated. however in my directory,
 i
   cannot find any file by the specified name. can
   someone please guide me, as to how i need to
 make
   Apache talk with tomcat.
   Thanx in Advance,
   Bye,
   Ratnakar
  
  
 


   Do You Yahoo!?
   Get your free @yahoo.co.in address at
   

Soap 2.1 + Tomcat 3.2.1 + IIS

2001-02-19 Thread Stuart Thomson

I have a soap service which works fine when accessing tomcat directly.
However, when accessing via isapi_redirect.dll I receive the following
exception

Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Protocol;
msg=Unsu
pported response content type "ext/xml; charset=utf-8", must be:
"text/xml".]
at org.apache.soap.rpc.Call.getEnvelopeString(Call.java:173)
at org.apache.soap.rpc.Call.invoke(Call.java:210)
at com.swtsoft.bny.Client.processMessage(Client.java:34)
at com.swtsoft.bny.Client.main(Client.java, Compiled Code)

The response as captured from the tunnel gui is 
  HTTP/1.1 200 OK

  Server: Microsoft-IIS/5.0

  Date: Mon, 19 Feb 2001 09:11:02 GMT

  Content-Type:text/xml; charset=utf-8

  Content-Length:857

  Set-Cookie2:JSESSIONID=lzuu2fzf41;Version=1;Discard;Path="/soap"

  Set-Cookie:JSESSIONID=lzuu2fzf41;Path=/soap

  Servlet-Engine:Tomcat Web Server/3.2.1 (JSP 1.1; Servlet 2.2; Java
1.3.0; Windows 2000 5.0 x86;   java.vendor=Sun Microsystems Inc.)



  ?xml version='1.0' encoding='UTF-8'?

  SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"  
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"  
xmlns:xsd="http://www.w3.org/1999/XMLSchema"

  SOAP-ENV:Body


The response from tomcat which works is as follows
  HTTP/1.0 200 OK

  Content-Type: text/xml; charset=utf-8

  Content-Length: 857

  Set-Cookie2: JSESSIONID=ghf8l90dk1;Version=1;Discard;Path="/soap"

  Set-Cookie: JSESSIONID=ghf8l90dk1;Path=/soap

  Servlet-Engine: Tomcat Web Server/3.2.1 (JSP 1.1; Servlet 2.2; Java
1.3.0; Windows 2000 5.0 x86; java.vendor=Sun Microsystems Inc.)



  ?xml version='1.0' encoding='UTF-8'?

  SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/1999/XMLSchema"

  SOAP-ENV:Body


It looks like the absence of a space after Content-Type: is the problem.
Does anyone have a workaround for this ? Has anyone been able to use
soap with IIS ?

TIA
Stuart

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




RE: Anybody doing doPost successfully ?

2001-02-19 Thread Samson, Lyndon [IT]

Hi Madar
 
You are missing enctype="multipart/form-data" in your post tag on the form.
 
cheers
 
 

-Original Message-
From: Mandar Joshi [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 16, 2001 7:36 PM
To: [EMAIL PROTECTED]
Subject: Re: Anybody doing doPost successfully ?


Hi ,
 
This is for a Servlet-
 
Well I tried it in both ways - 
 
Posting data using a java client like this

URL url = new URL(  http://mandar:8080/commerceroute/servletname
http://mandar:8080/commerceroute/servletname);
URLConnection conn = url.openConnection();
if(conn instanceof HttpURLConnection)
{
 HttpURLConnection httpConn = (HttpURLConnection) conn;
 httpConn.setRequestMethod("POST");
 httpConn.setDoOutput(true);
 out.write(arr);
 System.out.println("bytes written : " + arr.length);
 out.flush();
 out.close();
 out = null;
 httpConn.getContent();
 InputStream ins = httpConn.getInputStream();
 InputStreamReader rd = new InputStreamReader(ins);
// read from rd
}

Using a html page like this
 
HTML
HEAD
TITLERosettaNet Request POST/TITLE
/HEAD
BODY
FORM METHOD=POST ACTION=" http://mandar:8080/commerceroute/
http://mandar:8080/commerceroute/servlet/CRRosettaNetServlet servletname"

INPUT TYPE=HIDDEN NAME=ERNO
VALUE="Test_Data"
INPUT TYPE=SUBMIT NAME="Submit"
/FORM
/BODY
/HTML
 
In both cases the servlet seems to be stuck while reading from the
request.InputStream
 
 
Mandar

- Original Message - 
From: CPC  mailto:[EMAIL PROTECTED] Livelink Admin 
To: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]  
Sent: Friday, February 16, 2001 11:23 AM
Subject: RE: Anybody doing doPost successfully ?


I have successfully received post data in a JSP both using the getParameter
and using the com.oreilly.servlet utility classes. 
 
How are you sending the post data?  Are you using a web browser and form, or
are you trying to post it yourself using an applet or something.  The
process does work, so it must be something unique to the way you are sending
the info.
 
Regards,
Paul
 

-Original Message-
From: Mandar Joshi [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 16, 2001 1:39 PM
To: [EMAIL PROTECTED]
Subject: Anybody doing doPost successfully ?


Hi,
I am still not successful in getting data in doPost. anybody is doing it
successfully ?
 
Regards,
Mandar

- Original Message - 
From: Mandar Joshi mailto:[EMAIL PROTECTED]  
To: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]  
Sent: Thursday, February 15, 2001 6:15 PM
Subject: No Data available in doPost ?


Hi,
 
I am doing the following thing in my doPost() method.
 

__
 
public void doPost(HttpServletRequest request,HttpServletResponse
response) throws ServletException, IOException
{
 try
 {
   InputStream ins = request.getInputStream();
   logMsg("Bytes available " + ins.available());
 }
}


 
I am posting some data to this servlet but I am getting the available bytes
to be 0 ??
 
Any guess why is this happening ?
 
TIA
Mandar


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




RE: Newbie Question, this should be easy

2001-02-19 Thread Samson, Lyndon [IT]

You should really run tomcat using the jdk from Sun ( or IBM ) rather than
that supplied by
an IDE.


-Original Message-
From: Ashant Chalasani [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 17, 2001 8:19 AM
To: [EMAIL PROTECTED]
Subject: RE: Newbie Question, this should be easy


Paul - James,

Thanks for your answer.  Still have problems...

I am also writing some servlets, which work just fine through the Tomcat 
server.  The problem exists only w/ JSP pages.  Does this still mean the 
class-path is wrong.

My Windows environment class-path is set to Java_Home=C:\JBuilder3, and this

starts up the tomcat server fine and also processes servlets right.

Where should tools.jar be included, if still needed.

Thanks, Ashant


From: "CPC Livelink Admin" [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: Newbie Question, this should be easy
Date: Fri, 16 Feb 2001 21:36:46 -0500


Well, there are two errors.  One, you don't have the java compiler in your
classpath. This is usually in a file called tools.jar.

Second, the XML tag extentions are case sensitive.  You will need to use
jsp:usebean and jsp:setproperty (thought I can't remember if it is useBean
and setProperty instead - rats)

Regards,
Paul

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


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

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




RE: Tomcat 3.1 can't handle load

2001-02-19 Thread Samson, Lyndon [IT]

Hello Sunil

The Jdk's have been proven to be quite stable for a long time now. Its
highly likely your
problem is in the binary code of your jdbc driver. Is a newer driver
available? Can you 'switch' databases for a round of testing ( ie try the
eval version of oracle ) to see if the
problem goes away?

cheers


-Original Message-
From: Sunil Kumar Roy [mailto:[EMAIL PROTECTED]]
Sent: Sunday, October 15, 2000 8:52 PM
To: [EMAIL PROTECTED]
Subject: Tomcat 3.1 can't handle load


Hello Sirs,
We are developing a B2B website using Tomcat 3.1 for our company.(We are yet
to buy a full-fledged webserver since ours is a startup firm).

The site displays many images.
We use SQL server7.0 for database.

When we are interacting with the database, very often the following prompt
appears "It has performed an illegal operation  will be shut down". There
is only one button for "close" in that prompt box.When we click on "close",
the tomcat shuts down.
The problem also sometimes comes when we are not accessing the database.

We are facing great difficulty in developing the site due to this frequent
problem.

Could you help please?

Thanks in anticipation.

Regards

Sunil K. Roy


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

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




HTTP_USER_AGENT

2001-02-19 Thread Carlos

How can i view the browser version in a jsp file?
thanks
Carlos



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




RE: HTTP_USER_AGENT

2001-02-19 Thread Erik Barke

Yo, Carlos!

Try this:

String aUserAgent = (String)request.getHeader("User-Agent");

Cheers :)

/erik

-Original Message-
From: Carlos [mailto:[EMAIL PROTECTED]]
Sent: den 19 februari 2001 12:12
To: [EMAIL PROTECTED]
Subject: HTTP_USER_AGENT


How can i view the browser version in a jsp file?
thanks
Carlos



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

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




Re: RequestIntercepter, Authentication Login Form

2001-02-19 Thread Drasko Kokic

Maybe my original post was not clear, hence no reply
received :-(

Questions:
1.) Is it possible to specify login page on the other
servlet context (or other web site)?!
2.) How can I detect in the authorise method if the
method is being invoked after submiting
username/password on the login page or after
requesting any other protected page?!

--- Drasko Kokic [EMAIL PROTECTED] wrote:
 Hi again,
 
 I have finished an implementation of the SingleLogin
 infrastructure protecting the whole heterogene multi
 site portal using RequestIntercepters and Servlet
 API 2.2 container based security.
 There are still two issues I would like to
understand
 better:
 1. The URI to the login page is specified relative
 to the container.  Why are we not able to configure
 this page with an absolute URL so that another host
 could be used as an authentication site?!
 
 2. The authorise methode of the RequestIntercepter
 is being invoked for both protected pages as well as
 after submiting the username and password on the
 login page.  I would need to do two different things
 depending from where the call comes (eg. check
 username/password if from login otherwise check
 cookie).  How can I detect in the authorise method
 if the method is being invoked after submiting
 username/password on the login page?!
 
 TIA
 Drasko
 

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

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




Re: HTTP_USER_AGENT

2001-02-19 Thread Nick Holloway

[EMAIL PROTECTED] (Erik Barke) writes:
   String aUserAgent = (String)request.getHeader("User-Agent");

As an aside, there is no need for the cast to "String", as the return
type is already "String".

I often see people doing the same with "request.getParameter()".  I can
only guess that people get into the habit of putting the cast to "String"
when using "session.getAttribute()" (where it is needed), and extend
that to other servlet methods.

-- 
 `O O'  | [EMAIL PROTECTED]
// ^ \\ | http://www.pyrites.org.uk/

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




RE: Virtual Hosts

2001-02-19 Thread Saurabh Shukla



Did u 
add the Virtual Host directtive in server.xml ? which version of tomcat are you 
using ? 

Shuklix

  -Original Message-From: Bertone Advertising 
  [mailto:[EMAIL PROTECTED]]Sent: Thursday, February 15, 2001 
  11:11 PMTo: [EMAIL PROTECTED]Subject: 
  Virtual Hosts
  I am using tomcat 3.0 with Apache and mod_jk to run jsp.I have got it 
  functioning for one domain by changing the server.xml:
  !-- example - how to override AutoSetup actions --Context 
  path="/examples" docBase="webapps/examples" debug="0" reloadable="true"  
  /Context!-- example - how to override AutoSetup actions 
  --Context path="" docBase="/path/to/domain/htdocs" debug="0" 
  reloadable="true"  /Context
  I works for the one domain. Problem is,I want to use jsp on other 
  domains as well. When I run them, they look for the page.jsp on the domain I 
  referenced in the server.xml.
  I am a total freshman at this stuff. Can anyone please offer specific 
  examples as to how I may accomplish this? 
  Thank you for your time.
  Andrea
  
  
  Do You Yahoo!?- Get personalized email addresses from Yahoo! Mail Personal Address - only 
  $35 a year!


Moving from TomCat v3.0 to TomCat v3.1 problem

2001-02-19 Thread Sergey Piletsky

Hi,

We've encounter a problem after moving from TomCat v3.0 to TomCat v3.1:

org.apache.jasper.JasperException: argument type mismatch
at
org.apache.jasper.runtime.JspRuntimeLibrary.introspecthelper(JspRuntimeL
ibrary.java:207)
at
org.apache.jasper.runtime.JspRuntimeLibrary.introspect(JspRuntimeLibrary
.java:154)
...

Here is a reductive jsp code that causes such exception (this code works
fine under TomCat v3.0):

jsp:useBean id = "someBean" class="someClass"/
% someBean.setSession(session); %
jsp:setProperty name="someBean" property="someProperty1"/
jsp:setProperty name="someBean" property="someProperty2"/
% someBean.registerEntity(); %
jsp:setProperty name="someBean" property="*"/
% someBean.execute(); %

Could someone please describe what is done incorrect and 
advice some workaround if there is any?

Thanks in advice,
Serge

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




R: mod_jk now working on Mandrake 7.2...

2001-02-19 Thread Eugenio Ascoli-Bartoli

And then it moves!
...wonder why there is a RPM version, a binary distribution...going to look
what is different...
Thank you, Adam!
- Original Message -
From: Adam Fowler [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, February 19, 2001 1:18 AM
Subject: mod_jk now working on Mandrake 7.2...


 Hi all!

 8o) he he *happy bunny mode*

 I managed to get mod_jk working on Mandrake 7.2.

 All I needed to do was recompile the source for mod_jk! Here's what you
need
 to do, I will also make this available at http://willow.cc.edu/adminguide
:-

 1) Download tomcat source code bundle from jakarta.apache.org(link on
left)
 2) unzip into a directory of your choice
 3) change directory to
 INSTALL_LOCATION/jakarta-tomcat-3.2.1-src/src/native/apache1.3/
 4) copy the Makefile.linux to makefile
 5) do "make"
 6) copy the generated mod_jk.so file into you httpd/libexec folder(of
 /etc/httpd/modules folder on Mandrake or the dll file to wherever in
 windoze)
 7) shutdown tomcat, then apache
 8) start tomcat THEN apache
 9) goto http://SERVER_NAME/examples or wherever you put it and check out
the
 date.jsp!

 That's it.

 NB the directory names will vary according to which versions of
 tomcat/apache(or IIS 8o) you are using.

 I'm not sure how to get it compiled in windows - there is a MS developer
 studio .dsp project file there, try opening it and doing a make or
whatever
 8o)

 So basically thats it! Do note, however, that it wasn't a confiuration
 problem *snigger* but a severe lack of good documentation problem. Just
 kidding, I know developers are busy ppl. 8o)

 I'm gonna put up a basic install/configuration guide on willow. If anyone
 wants to look at it in future do tell them. URL as above.

 Hope this helps!

 Regards,
 Adam.

 
 Adam Fowler
 Second year Computer Science undergraduate
 University of Wales, Aberystwyth
 Carroll College, WI, USA(2000-2001)
 web: http://gucciboy.dyndns.org/aff9
 e-mail: [EMAIL PROTECTED]
 "Every new beginning comes from some other beginning's end"
 


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




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




RE: mod_jk now working on Mandrake 7.2...

2001-02-19 Thread GOMEZ Henri

Hi,

I've built the RPM for mod_jk.
What about take the source RPM and rebuild it with
the mdk tag added in release ?

And then it moves!
...wonder why there is a RPM version, a binary 
distribution...going to look
what is different...
Thank you, Adam!
- Original Message -
From: Adam Fowler [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, February 19, 2001 1:18 AM
Subject: mod_jk now working on Mandrake 7.2...


 Hi all!

 8o) he he *happy bunny mode*

 I managed to get mod_jk working on Mandrake 7.2.

 All I needed to do was recompile the source for mod_jk! 
Here's what you
need
 to do, I will also make this available at 
http://willow.cc.edu/adminguide
:-

 1) Download tomcat source code bundle from jakarta.apache.org(link on
left)
 2) unzip into a directory of your choice
 3) change directory to
 INSTALL_LOCATION/jakarta-tomcat-3.2.1-src/src/native/apache1.3/
 4) copy the Makefile.linux to makefile
 5) do "make"
 6) copy the generated mod_jk.so file into you httpd/libexec folder(of
 /etc/httpd/modules folder on Mandrake or the dll file to wherever in
 windoze)
 7) shutdown tomcat, then apache
 8) start tomcat THEN apache
 9) goto http://SERVER_NAME/examples or wherever you put it 
and check out
the
 date.jsp!

 That's it.

 NB the directory names will vary according to which versions of
 tomcat/apache(or IIS 8o) you are using.

 I'm not sure how to get it compiled in windows - there is a 
MS developer
 studio .dsp project file there, try opening it and doing a make or
whatever
 8o)

 So basically thats it! Do note, however, that it wasn't a 
confiuration
 problem *snigger* but a severe lack of good documentation 
problem. Just
 kidding, I know developers are busy ppl. 8o)

 I'm gonna put up a basic install/configuration guide on 
willow. If anyone
 wants to look at it in future do tell them. URL as above.

 Hope this helps!

 Regards,
 Adam.

 
 Adam Fowler
 Second year Computer Science undergraduate
 University of Wales, Aberystwyth
 Carroll College, WI, USA(2000-2001)
 web: http://gucciboy.dyndns.org/aff9
 e-mail: [EMAIL PROTECTED]
 "Every new beginning comes from some other beginning's end"
 


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




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


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




help need

2001-02-19 Thread affan



Please tell me how i unscribe from this mailing 
list what is the email address for unscribe.help 
need


RE: help need

2001-02-19 Thread Samson, Lyndon [IT]

How ironic. An email from a guy asking how to unsubscribe is the ONLY post
which doesn't acutally contain the unsubscribe information... Maybe because
its HTML?

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




Tomcat 4.0 + Apache ?

2001-02-19 Thread D.Lion



Hi to 
all.I have used Tomcat 3.2 with Apache web server (not as a standalone 
server) during some time.But now I'm looking at Tomcat 4 and I can not 
understand how to "intergrate" it with Apache?In previous versions that 
was available with ajpv12 protocol, and what shell I do now if I wish Tomcat 
to get requests from Apache?Sorry for my english 
:)D.Lion


RE: help need

2001-02-19 Thread Rafel Puchades

send an email to
[EMAIL PROTECTED]

good luck!!

 -Mensaje original-
 De:   affan [SMTP:[EMAIL PROTECTED]]
 Enviado el:   lunes 19 de febrero de 2001 13:49
 Para: [EMAIL PROTECTED]
 Asunto:   help need
 
 Please tell me how i unscribe from this mailing list what is the email  address for 
unscribe.
 
 help need
 
 
  Archivo: ATT00016.htm 

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




Problems with Session tracking using mod_jk Load Balancer

2001-02-19 Thread Rafel Puchades



I have Tomcat3.2.1, Windows NT Server 4.0 sp6, Apache 1.2.12 mod_jk

I haver One machine, One Apache, FOUR Tomcats: A,B,C and D
I have a session based web aplication, but I want a load balanced 
distribution of session as described in workers.properties and mod_jk 
documentation.
My problem is that even opening a session, Apache uses a different Tomcat 
for each request in the same session.

Load balancing works well but session tracking by mod_jk isn't working.


I acces a JSP page witch opens a sessions and shows me:
  Tomcat: A
  Cookie JSESSIONID: null
  Session.id: srx89t49g1.ajp13A
Reloading the page...
  Tomcat:B
  Cookie JSESSIONID: srx89t49g1.ajp13A
  Session.id: 7c3lo54av1.ajp13B
Reloading the page
  Tomcat: C
  Cookie JSESSIONID: 7c3lo54av1.ajp13B
  Session.id:7cb7g04be1.ajp13C
Reloading the page
  Tomcat: D
  Cookie JSESSIONID: 7cb7g04be1.ajp13C
  Session.id:vebsdi4c01.ajp13D
Reloading the page
  Tomcat: A
  Cookie JSESSIONID: vebsdi4c01.ajp13D
  Session.id:6l1qe94db1.ajp13A

As seen in this trace tomcat acts as expected, it finds a JSESSIONID cookie 
that is not owned by  itself and then creates a new session with a new 
cookie.



this is part of my mod_jk.conf

JkMount /conline/servlet/* loadbalancer
JkMount /conline/*.jsp loadbalancer



this is part of my workers properties:

worker.list=loadbalancer

worker.loadbalancer.balanced_workers=ajp13A, ajp13B, ajp13C, ajp13D

worker.ajp12A.port=7001
worker.ajp12A.host=localhost
worker.ajp12A.type=ajp12
worker.ajp12A.lbfactor=1

worker.ajp13A.port=9001
worker.ajp13A.host=localhost
worker.ajp13A.type=ajp13
worker.ajp13A.lbfactor=1

worker.ajp12B.port=7002
worker.ajp12B.host=localhost
worker.ajp12B.type=ajp12
worker.ajp12B.lbfactor=1

worker.ajp13B.port=9002
worker.ajp13B.host=localhost
worker.ajp13B.type=ajp13
worker.ajp13B.lbfactor=1


worker.ajp12C.port=7003
worker.ajp12C.host=localhost
worker.ajp12C.type=ajp12
worker.ajp12C.lbfactor=1

worker.ajp13C.port=9003
worker.ajp13C.host=localhost
worker.ajp13C.type=ajp13
worker.ajp13C.lbfactor=1

worker.ajp12D.port=7004
worker.ajp12D.host=localhost
worker.ajp12D.type=ajp12
worker.ajp12D.lbfactor=1

worker.ajp13D.port=9004
worker.ajp13D.host=localhost
worker.ajp13D.type=ajp13
worker.ajp13D.lbfactor=1

Can anyone help me ? thaks...



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




RE: HTTP_USER_AGENT

2001-02-19 Thread Erik Barke

I guess I had it coming... I stand corrected... 
It was a spontanious 'better-safe-than-sorry' mishap :)

Cheers

/erik


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: den 19 februari 2001 12:51
To: [EMAIL PROTECTED]
Subject: Re: HTTP_USER_AGENT


[EMAIL PROTECTED] (Erik Barke) writes:
   String aUserAgent = (String)request.getHeader("User-Agent");

As an aside, there is no need for the cast to "String", as the return
type is already "String".

I often see people doing the same with "request.getParameter()".  I can
only guess that people get into the habit of putting the cast to "String"
when using "session.getAttribute()" (where it is needed), and extend
that to other servlet methods.

-- 
 `O O'  | [EMAIL PROTECTED]
// ^ \\ | http://www.pyrites.org.uk/

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

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




RE: Solaris 8, apache and mod_jk - problem with jsps and servlets

2001-02-19 Thread Eoin McCarthy


Hi, 

Got this working, more by accident than anything else. 

Load mod_alias BEFORE mod_jk. Servlets and jsps then work fine.

Reverse this and servlets can't be found and jsps are served as code. 


Eoin


-Original Message-
From: Eoin McCarthy 
Sent: Monday, February 05, 2001 11:50 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Solaris 8, apache and mod_jk - problem



Hi, 

Just tried this. Unfortunately, it didn't work - java/lib/tools.jar was
already on the classpath
on startup and copying it to $TOMCAT_HOME/lib didn't have any effect. 

Thanks,
EOin

-Original Message-
From: Thomas Bezdicek [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 05, 2001 11:13 AM
To: [EMAIL PROTECTED]
Subject: AW: Solaris 8, apache and mod_jk - problem


Hi,

We had the same problem and solved it by copying the tools.jar into
$TOMCAT_HOME/lib.

BTW: dont use the Hotspot-Engine with -server Parameter it would
crash at sometime with signal 11, it is a bug, use -client Parameter.

regards, tom


-Ursprngliche Nachricht-
Von: Eoin McCarthy [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 05. Februar 2001 11:56
An: '[EMAIL PROTECTED]'
Betreff: Solaris 8, apache and mod_jk - problem




Hi,

I'm trying to configure apache 1.3.9  and tomcat 3.2 with mod_jk under
Solaris 8.  I'm using the example contexts supplied with the
tomcat.

A standalone configuration of tomcat serves the contexts OK as does tomcat
with apache using mod_jserv. However, I
can't get jsps to run using mod_jk - when I try to run one I just get the
source code. Servlets are also problematic:
for the provided webapps/examples context, the servlets run OK if I do not
explicitly specify that context in the server.xml file.
If I specify it, tomcat complains that it can't find the file (and yes, I
have the location right).

I suspect that the workers.properties file is the problem seeing as I'm
following the off-the-shelf configurations for
tomcat. However, the provided workers.properties file refers to DLLs,
indicating a win32 setup. I've set the paths required as per
my system but I may be missing something - the output from the mod_jk logs
seems to indicate that mod_jk can't find a worker for
jsps. I've tried both ajp12 and ajp13.

The configuration files I'm using are attached.

Any help would be greatly appreciated.
Eoin McCarthy


 tomcat-jk-2.conf


 workers.properties


 httpd.conf


 server.xml






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

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

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




Tomcat + Apache + mod_jk and virtual hosts

2001-02-19 Thread bard

Can anyone help?

I've been trying to achieve very simple name based virtual hosting
with very little luck. I have read the mod_jk documentation but not
found what I'm looking for. I've also read a vast number of postings
in this mailing list, but found 99% more questions than answers. 

Surely, somebody out there has got the answers - please share them!

What I have is:

apache-1.3.14-3
Tomcat 3.2.1
mod_jk.so (built without any errors on a my Red Hat 7.0)

What I need is:

www.domain1.com
www.domain2.com

and the ability to place sevlet1.class and servlet2.class in the corresponding Apache
"DocumentRoot"s and accessing them as

http://www.domain1.com/servlet1
http://www.domain2.com/servlet2

I DO NOT want to place things anywhere under $TOMCAT_HOME.
 
Here are snippets of the various config files, set up as recommended in
the mod_jk documentation.


from server.xml
---

Host name="www.domain1.com"
Context path="" 
 docBase="/home/www.domain1.com" 
 crossContext="true"
 debug="0" 
 reloadable="true" 
 trusted="false"  
/Context
/Host
Host name="www.domain2.com"
Context path="" 
 docBase="/home/www.domain2.com" 
 crossContext="true"
 debug="0" 
 reloadable="true" 
 trusted="false"  
/Context
/Host

from httpd.conf
---

VirtualHost 10.0.0.1:80
DocumentRoot /home/www.domain1.com
ServerName www.domain1.com
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
ServerAdmin [EMAIL PROTECTED]
ErrorLog /home/domain1/admin/log/error_log
CustomLog /home/domain1/admin/log/access_log common

Directory "/home/www.domain1.com"
Options Indexes FollowSymLinks
AllowOverride AuthConfig
/Directory


Location "/domain1/A"
AllowOverride None
deny from all
/Location

Location "/domain1/B"
AllowOverride None
deny from all
/Location
/VirtualHost

VirtualHost 10.0.0.2:80
DocumentRoot /home/www.domain2.com
ServerName www.domain2.com
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
ServerAdmin [EMAIL PROTECTED]
ErrorLog /home/domain2/admin/log/error_log
CustomLog /home/domain2/admin/log/access_log common

Directory "/home/www.domain2.com"
Options Indexes FollowSymLinks
AllowOverride AuthConfig
/Directory


Location "/domain2/A"
AllowOverride None
deny from all
/Location

Location "/domain2/B"
AllowOverride None
deny from all
/Location
/VirtualHost



The loading of modules etc. works fine. Accessing the standard
examples that come with Tomcat 3.2.1 through Apache works fine.
Setting things up as I have tried above, with new contexts and virtual
hosts is a catastrophe - does not work at all! Am I making a very
obvious mistake that somebody can spot and correct for me or must I
include pages of log file extracts?

Any, any help would be greatly appreciated.


Bard

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




Re: Tomcat + Apache + mod_jk and virtual hosts

2001-02-19 Thread Bard

// On Mon, 19 Feb 2001 [EMAIL PROTECTED] wrote:
//
// Can anyone help?
//
// I've been trying to achieve very simple name based virtual hosting
// with very little luck. I have read the mod_jk documentation but not
// found what I'm looking for. I've also read a vast number of postings
// in this mailing list, but found 99% more questions than answers.
//
// Surely, somebody out there has got the answers - please share them!
//
// What I have is:
//
// apache-1.3.14-3
// Tomcat 3.2.1
// mod_jk.so (built without any errors on a my Red Hat 7.0)
//
// What I need is:
//
// www.domain1.com
// www.domain2.com
//
// and the ability to place sevlet1.class and servlet2.class in the corresponding 
Apache
// "DocumentRoot"s and accessing them as
//
// http://www.domain1.com/servlet1
// http://www.domain2.com/servlet2
//
// I DO NOT want to place things anywhere under $TOMCAT_HOME.
//
// Here are snippets of the various config files, set up as recommended in
// the mod_jk documentation.
//
//
// from server.xml
// ---
//
// Host name="www.domain1.com"
// Context path=""
//  docBase="/home/www.domain1.com"
//  crossContext="true"
//  debug="0"
//  reloadable="true"
//  trusted="false" 
// /Context
// /Host
// Host name="www.domain2.com"
// Context path=""
//  docBase="/home/www.domain2.com"
//  crossContext="true"
//  debug="0"
//  reloadable="true"
//  trusted="false" 
// /Context
// /Host
//
// from httpd.conf
// ---
//
// VirtualHost 10.0.0.1:80
// DocumentRoot /home/www.domain1.com
// ServerName www.domain1.com
// JkMount /*.jsp ajp13
// JkMount /servlet/* ajp13
// ServerAdmin [EMAIL PROTECTED]
// ErrorLog /home/domain1/admin/log/error_log
// CustomLog /home/domain1/admin/log/access_log common
//
// Directory "/home/www.domain1.com"
// Options Indexes FollowSymLinks
// AllowOverride AuthConfig
// /Directory
//
//
// Location "/domain1/A"
// AllowOverride None
// deny from all
// /Location
//
// Location "/domain1/B"
// AllowOverride None
// deny from all
// /Location
// /VirtualHost
//
// VirtualHost 10.0.0.2:80
// DocumentRoot /home/www.domain2.com
// ServerName www.domain2.com
// JkMount /*.jsp ajp13
// JkMount /servlet/* ajp13
// ServerAdmin [EMAIL PROTECTED]
// ErrorLog /home/domain2/admin/log/error_log
// CustomLog /home/domain2/admin/log/access_log common
//
// Directory "/home/www.domain2.com"
// Options Indexes FollowSymLinks
// AllowOverride AuthConfig
// /Directory
//
//
// Location "/domain2/A"
// AllowOverride None
// deny from all
// /Location
//
// Location "/domain2/B"
// AllowOverride None
// deny from all
// /Location
// /VirtualHost
//
//
//
// The loading of modules etc. works fine. Accessing the standard
// examples that come with Tomcat 3.2.1 through Apache works fine.
// Setting things up as I have tried above, with new contexts and virtual
// hosts is a catastrophe - does not work at all! Am I making a very
// obvious mistake that somebody can spot and correct for me or must I
// include pages of log file extracts?
//
// Any, any help would be greatly appreciated.
//
//
// Bard
//


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




strange archive filter!!

2001-02-19 Thread Bard

Does anyone know why half of my message about
Apache + Tomcat + mod_jk and virtual hosts refuses to appear?

It will be difficult to get a sensible answer if people can't read the
question!

Bard


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




Tomcat, IIS and error 404

2001-02-19 Thread Alberto Vezzoso

Hi, I'm trying to install Tomcat over IIS

I've read the tutorial and I followed all the instructions.

Tomcat works correctly on port 8080. The url:
http://localhost:8080/examples/jsp/index.html works correctly while the url: 
http://localhost/examples/jsp/index.html returns an error 404.

These are the messages that I get from the isapi.log file:
[jk_uri_worker_map.c (334)]: jk_uri_worker_map_t::uri_worker_map_close, NULL 
parameter
[jk_uri_worker_map.c (184)]: In jk_uri_worker_map_t::uri_worker_map_free, 
NULL parameters


I've checked all the trouble sections of the HowTo but I didn't find any 
solutions.

Do you have any suggestions? If it is possible for you, help me!!

Bye and thanks
Alberto
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


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




setting Tomcat docBase in JBuilder?!

2001-02-19 Thread michael . brohl




Hello,

it's only half related to Tomcat, but I like to get your suggestions to the
following problem:

I use JBuilder 4 Enterprise with Tomcat 3.2 and Struts. If I want to run the
application,
the Tomcat docBase is always set to D:\ instead of D:\TOMCAT.

I provided the correct path to the JVM via the -D.. parameter.
The project properties are set correctly

Here's the related output from JBuilder:



Setting home to D:\
Starting tomcat. Check logs/tomcat.log for error messages

Context log: path="" Adding context path=""  docBase="D:\"
Context log: path="/vip-gallery" Adding context path="/vip-gallery"
docBase="D:\"
Starting tomcat install="d:\tomcat\" home="D:\"
classPath="C:\Programme\JBuilder4\tomcat\lib\webserver.jar;C:\Programme\JBuilder4\tomcat\lib\jasper.jar;C:\Programme\JBuilder4\tomcat\lib\xml.jar;C:\Programme\JBuilder4\lib\servlet.jar;D:\tomcat\vipshop\classes;C:\Programme\Oracle\JDeveloper

3.2\myclasses\struts.jar;C:\Programme\JBuilder4\lib\webserverglue.jar;D:\tomcat\webapps\vip-gallery\WEB-INF\classes;C:\Programme\Oracle\JDeveloper

3.2\myclasses\struts.jar;C:\Programme\JBuilder4\lib\servlet.jar;D:\tomcat\vipshop\classes;C:\Programme\JBuilder4\lib\jbuilder.jar;C:\Programme\JBuilder4\lib\help.jar;C:\Programme\JBuilder4\lib\gnuregexp.jar;C:\Programme\JBuilder4\jdk1.3\demo\jfc\Java2D\Java2Demo.jar;C:\Programme\JBuilder4\jdk1.3\jre\lib\i18n.jar;C:\Programme\JBuilder4\jdk1.3\jre\lib\jaws.jar;C:\Programme\JBuilder4\jdk1.3\jre\lib\rt.jar;C:\Programme\JBuilder4\jdk1.3\jre\lib\sunrsasign.jar;C:\Programme\JBuilder4\jdk1.3\lib\dt.jar;C:\Programme\JBuilder4\jdk1.3\lib\tools.jar;C:\Programme\Oracle\JDeveloper

3.2\java1.2;
C:\Programme\Oracle\JDeveloper 3.2\java1.2\jre;C:\Programme\Oracle\JDeveloper
3.2\java1.2\lib"
JSP Servlet Started
...




Do you have a suggestion how to set the docBase correctly?

Regards

Michael



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




Re: Error: Could not find package named:

2001-02-19 Thread Brett M. Bergquist

Jack, your not using Jikes by any chance are you?  If so, I had the same
error but with Sun's JVM 1.3 and I needed to add "rt.jar" to my path.  Just
a shot...

- Original Message -
From: Jack Lauman [EMAIL PROTECTED]
To: Tomcat User List [EMAIL PROTECTED]
Sent: Sunday, February 18, 2001 10:47 PM
Subject: Error: Could not find package named:


 I got the following error when trying to run jsp examples in
 tomcat 4.0b1.  The servlet examples run without any problems.

 I would appreciate any guidance on how to resolve this.

 Regards,

 Jack

 org.apache.jasper.JasperException: Unable to compile class for JSP
 Found 2 system errors:

 *** Error: Could not find package named:
 /opt/tomcat/bin/bootstrap.jar(java/util),
 /opt/tomcat/bin/servlet.jar(java/util),
 /opt/tomcat/bin/naming.jar(java/util),
 /opt/IBMJava2-13/lib/tools.jar(java/util),
 /opt/tomcat/webapps/examples/WEB-INF/classes/java/util,
 /opt/tomcat/lib/jasper.jar(java/util),
 /opt/tomcat/lib/jaxp.jar(java/util),
 /opt/tomcat/lib/crimson.jar(java/util),
 /opt/tomcat/lib/namingfactory.jar(java/util),
 /opt/tomcat/bin/jndi.jar(java/util) or
 /opt/tomcat/work/localhost/examples/java/util

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



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




RE: Tomcat + Apache + mod_jk and virtual hosts

2001-02-19 Thread Saurabh Shukla


Can u be a bit more specific about the problem you are facing and tell
clearly what does not works or what errors u get (if any) ?

Your conf files appear ok, there might be some problem in web.xml.

Shuklix


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 19, 2001 6:45 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Tomcat + Apache + mod_jk and virtual hosts


Can anyone help?

I've been trying to achieve very simple name based virtual hosting
with very little luck. I have read the mod_jk documentation but not
found what I'm looking for. I've also read a vast number of postings
in this mailing list, but found 99% more questions than answers.

Surely, somebody out there has got the answers - please share them!

What I have is:

apache-1.3.14-3
Tomcat 3.2.1
mod_jk.so (built without any errors on a my Red Hat 7.0)

What I need is:

www.domain1.com
www.domain2.com

and the ability to place sevlet1.class and servlet2.class in the
corresponding Apache
"DocumentRoot"s and accessing them as

http://www.domain1.com/servlet1
http://www.domain2.com/servlet2

I DO NOT want to place things anywhere under $TOMCAT_HOME.

Here are snippets of the various config files, set up as recommended in
the mod_jk documentation.


from server.xml
---

Host name="www.domain1.com"
Context path=""
 docBase="/home/www.domain1.com"
 crossContext="true"
 debug="0"
 reloadable="true"
 trusted="false" 
/Context
/Host
Host name="www.domain2.com"
Context path=""
 docBase="/home/www.domain2.com"
 crossContext="true"
 debug="0"
 reloadable="true"
 trusted="false" 
/Context
/Host

from httpd.conf
---

VirtualHost 10.0.0.1:80
DocumentRoot /home/www.domain1.com
ServerName www.domain1.com
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
ServerAdmin [EMAIL PROTECTED]
ErrorLog /home/domain1/admin/log/error_log
CustomLog /home/domain1/admin/log/access_log common

Directory "/home/www.domain1.com"
Options Indexes FollowSymLinks
AllowOverride AuthConfig
/Directory


Location "/domain1/A"
AllowOverride None
deny from all
/Location

Location "/domain1/B"
AllowOverride None
deny from all
/Location
/VirtualHost

VirtualHost 10.0.0.2:80
DocumentRoot /home/www.domain2.com
ServerName www.domain2.com
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
ServerAdmin [EMAIL PROTECTED]
ErrorLog /home/domain2/admin/log/error_log
CustomLog /home/domain2/admin/log/access_log common

Directory "/home/www.domain2.com"
Options Indexes FollowSymLinks
AllowOverride AuthConfig
/Directory


Location "/domain2/A"
AllowOverride None
deny from all
/Location

Location "/domain2/B"
AllowOverride None
deny from all
/Location
/VirtualHost



The loading of modules etc. works fine. Accessing the standard
examples that come with Tomcat 3.2.1 through Apache works fine.
Setting things up as I have tried above, with new contexts and virtual
hosts is a catastrophe - does not work at all! Am I making a very
obvious mistake that somebody can spot and correct for me or must I
include pages of log file extracts?

Any, any help would be greatly appreciated.


Bard

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


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




Re: help need

2001-02-19 Thread Alfonso Cañellas

Hello to everybody ,
I need to know if something must be configured in TOMCAT to do an import to
an jsp with the PAGE directive.

I import an object Ive created com.myobject

and Ive placed It in WEB_Inf in the aplication directory inside tomcat

But when tomcat compile automatically the jsp It fails , doesnt find the
object although in examples It works.




- Original Message -
From: "Rafel Puchades" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, February 19, 2001 2:01 PM
Subject: RE: help need


 send an email to
 [EMAIL PROTECTED]

 good luck!!

  -Mensaje original-
  De: affan [SMTP:[EMAIL PROTECTED]]
  Enviado el: lunes 19 de febrero de 2001 13:49
  Para: [EMAIL PROTECTED]
  Asunto: help need
 
  Please tell me how i unscribe from this mailing list what is the email
address for unscribe.
 
  help need
 
 
   Archivo: ATT00016.htm

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






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




RE: SOLVED: runaway threads eating cpu cycles on Solaris 7

2001-02-19 Thread Marc Saegesser

FWIW, this has been fixed for Tomcat 3.2.2 higher.  You'll now get the 404
error instead of the tight loop.

-Original Message-
From: Kelly Kleinfelder [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 16, 2001 11:33 AM
To: [EMAIL PROTECTED]
Subject: SOLVED: runaway threads eating cpu cycles on Solaris 7


found this snippet as a comment in the tomcat cvs repository.

+6.11 Misconfiguration Can Cause CPU-Bound Loop
+
+If you misconfigure Tomcat 3.2 in a way that there is no valid context to
+handle a request (such as removing the root context and then attempting a
+request that should be handled by that context), Tomcat will enter a
CPU-bound
+loop instead of responding with a 404 error.

I had removed the default contexts since all of our applications are stored
in a different directory structure and aliased in our configuration files.

Kelly
- Original Message -
From: Kelly Kleinfelder
To: [EMAIL PROTECTED]
Sent: Thursday, February 15, 2001 3:43 PM
Subject: runaway threads eating cpu cycles on Solaris 7


We are running Tomcat 3.2.1 and Solaris 7 on a Sun e250 with 4 400Mhz
processors. The problem we're having is that one thread is chewing up the
majority of the cpu cycles and sometimes causes tomcat to hang.

I have included sample mpstat data and the output from ps -L -p PID:

ps -L -p 26361
   PID   LWP TTY LTIME CMD
 26361 1 ?0:03 java
 2636122 ?1:02 java
 2636123 ?   40:57 java
 2636124 ?1:43 java
 2636126 ?0:09 java
 2636167 ?0:03 java
 (24 entries deleted for brevity. All were at 0:00 LTIME)

mpstat 30
CPU minf mjf xcal  intr ithr  csw icsw migr smtx  srw syscl  usr sys  wt idl
  0   12   0   12 64   170100750   3   1  96
  16   06 41   14300052   59   1   1  39
  20   0064   62   12200020   41   1   1  57
  34   0   14   2033   270100260   0   0 100
CPU minf mjf xcal  intr ithr  csw icsw migr smtx  srw syscl  usr sys  wt idl
  00   01 32   160110511   3   1  95
  10   00 5164000 3   81   0   0  19
  20   0219   19   170100160   0   0 100
  34   0   13   2022   15110041   19   2   0  78
CPU minf mjf xcal  intr ithr  csw icsw migr smtx  srw syscl  usr sys  wt idl
  04   05 55   170110701   2   1  96
  14   00 51   11400036   84   0   0  15
  22   0426   26   280100812   0   0  98
  30   0   20   2044   19100024   14   0   0  86

Before today, this was happening about every 3 days. Today it happened 5
hours apart. By going through our logs, we have determined that this is not
caused by any specific user action. It is also not caused by server load, as
it mostly happens with less than 5 users accessing the application. It is
also not a gradual thing. Our sar statistics show that our processor idle
time is 98% and then 5 minutes later it's down to 83% and in another 5
minutes, it's at 49%.

Is there any way that I can tell exactly what is happening in the offending
thread?

Any other ideas on what's causing this problem?

Thanks,
Kelly


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




French users,developers and others...

2001-02-19 Thread Caroline Boonen

Hello,

I seek users(developers and others) speaking French.
If you form parts of those, can you write to me with the following
adress:
[EMAIL PROTECTED]
or
[EMAIL PROTECTED]

Thank you in advance.

--
Caroline BOONEN

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




help need

2001-02-19 Thread Alfonso Cañellas

Is very strange but Ive done just this

I have my jsp running rightly over tomcat
having the directory WEB-INF/classes/com/digital

But when I insert import = ..., com.digital.* in the jsp and try to run
again

It fails when tomcat compiles automatically the jsp

Its really strange, I dont understand

maybe because is being compilated automatically by tomcat and not so the
other classes wich We must compile ?



- Original Message -
From: "Randy Layman" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, February 19, 2001 2:20 PM
Subject: RE: help need



If you have just class files, then you need to put myobject.class
into WEB-INF/classes/com.  If its in a JAR file then it needs to go into
WEB-INF/lib.

Randy


-Original Message-
From: Alfonso Caellas [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 19, 2001 8:47 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: help need


Hello to everybody ,
I need to know if something must be configured in TOMCAT to do an import to
an jsp with the PAGE directive.

I import an object Ive created com.myobject

and Ive placed It in WEB_Inf in the aplication directory inside tomcat

But when tomcat compile automatically the jsp It fails , doesnt find the
object although in examples It works.




- Original Message -
From: "Rafel Puchades" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, February 19, 2001 2:01 PM
Subject: RE: help need


 send an email to
 [EMAIL PROTECTED]

 good luck!!

  -Mensaje original-
  De: affan [SMTP:[EMAIL PROTECTED]]
  Enviado el: lunes 19 de febrero de 2001 13:49
  Para: [EMAIL PROTECTED]
  Asunto: help need
 
  Please tell me how i unscribe from this mailing list what is the email
address for unscribe.
 
  help need
 
 
   Archivo: ATT00016.htm

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






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

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






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




session help?

2001-02-19 Thread venkatesan

Hi All,
I am working with servlets and tomcat. I am creating sessions,
that page is timed out after a particular time. If i refresh that page
is comming. Can anybody tell how can i create session for a particular
user, that is that particular user could  not able to continue after his
session has been timed-out. He has to re-enter by giving his user id and
password..

cheers
venkatesh


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




RE: jsp

2001-02-19 Thread guyr

If you mean like this

http://www.myserver.com/jsp/myjsp.jsp?parm1=val1parm2=val2

the answer is yes.

-Original Message-
From: teh j [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 19, 2001 1:31 AM
To: [EMAIL PROTECTED]
Subject: jsp 


hey guys

i am just wondeirng about something, is it possible to
append data to the end of the url of a jsp file like
ASP and PHP? Ive never seen it done...




_
http://invites.yahoo.com.au - Yahoo! Invites
- Organise your Mardi Gras party online!

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

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




Login

2001-02-19 Thread Kevin Jones

I have a web-app that I want people to logon to. If the web-app is call foo,
I put a constraint in web.xml stopping GET access to /foo/*. I then specify
/foo/login.jsp and /foo/error.jsp as the login/error pages. Under TC4 this
all works, I browse to http://localhost/foo, get re-directed to the login
page and off we go.

However, this configuration causes TC 3.2 to go into an infinite loop. The
browsers asks for login.jsp and keeps getting re-directed to login.jsp
because everything under /foo is protected.

Kevin Jones
DevelopMentor
www.develop.com


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




Bug in HttpServletResponse.sendRedirect()?

2001-02-19 Thread Alex Blewitt

I've just written a Servlet to send a redirect (not a
forward/include) using the HTTP REDIRECT protocol, which used to be
possible using HttpServletResponse.sendRedirect():

res.sendRedirect("http://www.home.page.com/help/");

instead, it comes out as a RequestDispatcher 'forward' request, and I get
a message like:

404 /AppContext/www.home.page.com/help/ FILE NOT FOUND

Presumably, the reason for putting this in place was to optimise the
sendRedirects to use RequestDispatcher instead; however, it does break the
existing spec if this is done with a full URL.

Has this been unfixed in Tomcat 4?

Alex.

/***\
|*   Alex Blewitt   * Hug, and the world hugs with you *|
|*  [EMAIL PROTECTED]  *  *|
|* Mobile: +44 7966 158 647 *Spread a little happiness *|
\***/



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




RE: Login

2001-02-19 Thread Randy Layman


And your question would be 

I am assuming that you are wanting a work-around.  Well, if you get
Tomcat 3.2.2 (I think you still have to get it from CVS, but it should be
release shortly) you will start getting 404 errors instead of infinte loops,
I believe.  

Two work arounds:
1.  What you probably want to do it to move everything in /foo to
/foo/protected, except for login and error.  Then disallow GET on
/foo/protected/*.
2.  What you probably don't want to do (but might) is to allow GET
on /foo/login.jsp and /foo/error.jsp and disallow everything else (a hassle
because you have to explictly disallow everything else and you must maintain
the list in order to keep your site secure).

Your problem stems from the fact that when users type in URLs the
request is made as a get, which you have disallowed. (This part you probably
knew)  This is then sent to the error page, as a get, which generates an
error, which sends it to the error page as a get, and so on.

Randy

-Original Message-
From: Kevin Jones [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 19, 2001 9:42 AM
To: Tomcat-User
Subject: Login


I have a web-app that I want people to logon to. If the web-app is call foo,
I put a constraint in web.xml stopping GET access to /foo/*. I then specify
/foo/login.jsp and /foo/error.jsp as the login/error pages. Under TC4 this
all works, I browse to http://localhost/foo, get re-directed to the login
page and off we go.

However, this configuration causes TC 3.2 to go into an infinite loop. The
browsers asks for login.jsp and keeps getting re-directed to login.jsp
because everything under /foo is protected.

Kevin Jones
DevelopMentor
www.develop.com


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

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




RE: Login

2001-02-19 Thread Kevin Jones

   And your question would be 

 - patronising already.

   I am assuming that you are wanting a work-around.  Well, if you get

No I don't want a workaround - I've already got it working. I was pointing
this out because

a) it is conflicting behaviour in the two current versions of Tomcat (3.2.1
and TC 4) and
b) the spec is silent on the behaviour and I was wondering if Craig or any
of the other Tomcat authors would comment

   Your problem stems from the fact that when users type in URLs the
 request is made as a get, which you have disallowed. (This part you
probably
 knew)  This is then sent to the error page, as a get, which generates an
 error, which sends it to the error page as a get, and so on.

Yes, and TC4 doesn't show this behaviour!

Kevin Jones
DevelopMentor
www.develop.com

-Original Message-
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: 19 February 2001 14:21
To: [EMAIL PROTECTED]
Subject: RE: Login



And your question would be 

I am assuming that you are wanting a work-around.  Well, if you get
Tomcat 3.2.2 (I think you still have to get it from CVS, but it should be
release shortly) you will start getting 404 errors instead of infinte loops,
I believe.

Two work arounds:
1.  What you probably want to do it to move everything in /foo to
/foo/protected, except for login and error.  Then disallow GET on
/foo/protected/*.
2.  What you probably don't want to do (but might) is to allow GET
on /foo/login.jsp and /foo/error.jsp and disallow everything else (a hassle
because you have to explictly disallow everything else and you must maintain
the list in order to keep your site secure).

Randy

-Original Message-
From: Kevin Jones [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 19, 2001 9:42 AM
To: Tomcat-User
Subject: Login


I have a web-app that I want people to logon to. If the web-app is call foo,
I put a constraint in web.xml stopping GET access to /foo/*. I then specify
/foo/login.jsp and /foo/error.jsp as the login/error pages. Under TC4 this
all works, I browse to http://localhost/foo, get re-directed to the login
page and off we go.

However, this configuration causes TC 3.2 to go into an infinite loop. The
browsers asks for login.jsp and keeps getting re-directed to login.jsp
because everything under /foo is protected.

Kevin Jones
DevelopMentor
www.develop.com


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

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


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




Re: errors displaying graphics

2001-02-19 Thread uthay

are you tring to write the image without embedding in html tags??

- Original Message -
From: "Chris Ward" [EMAIL PROTECTED]
To: "Tomcat-User" [EMAIL PROTECTED]
Sent: Monday, February 19, 2001 3:18 PM
Subject: errors displaying graphics


 I am getting a strange error from the tomcat window (Win2000). It looks
like
 this :

 2001-02-19 08:40:03 - Ctx(  ): IOException in: R(  + /images/rbanner.gif +
 null)
  Connection aborted by peer: socket write error
 2001-02-19 08:40:03 - Ctx(  ): IOException in: R(  + /images/464_pict2.gif
+
 nul
 l) Connection aborted by peer: socket write error
 2001-02-19 08:40:04 - Ctx(  ): IOException in: R(  + /IBSMenu1.class +
null)
 Con
 nection aborted by peer: socket write error
 2001-02-19 08:49:33 - Ctx(  ): IOException in: R(  + /images/lbanner.gif +
 null)
  Connection aborted by peer: socket write error
 2001-02-19 08:49:33 - Ctx(  ): IOException in: R(  + /images/rbanner.gif +
 null)
  Connection aborted by peer: socket write error
 2001-02-19 08:50:38 - Ctx(  ): IOException in: R(  + /images/lbanner.gif +
 null)
  Connection aborted by peer: socket write error
 2001-02-19 08:50:38 - Ctx(  ): IOException in: R(  + /images/rbanner.gif +
 null)
  Connection aborted by peer: socket write error

 The images are all there, and they display, and the class for the applet
 works, but I keep getting theses error messages. The page that displays
 these images is an HTML page at the base of my context. The class is
called
 from most JSP pages in /JSP. Does anyone know what causes these error
 messages?

 Chris

 --
 Chris Ward - Developer
 @ integral business solutions
 tel: 651.631.3144
 fax: 651.631.2544
 email: [EMAIL PROTECTED]
 web: www.go-integral.com


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




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




RE: errors displaying graphics

2001-02-19 Thread Ritwick Dhar

I get this error too, and only on Windows. I think (and I'm not sure) this
error happens when the browser finds the image in its cache and aborts the
request to the server. If this is true, then the fact that an exception is
being generated is troublesome, because that makes me worry about
performance (exception handling is time-consuming).

Rit

-Original Message-
From: Chris Ward [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 19, 2001 10:18 AM
To: Tomcat-User
Subject: errors displaying graphics


I am getting a strange error from the tomcat window (Win2000). It looks like
this :

2001-02-19 08:40:03 - Ctx(  ): IOException in: R(  + /images/rbanner.gif +
null)
 Connection aborted by peer: socket write error
2001-02-19 08:40:03 - Ctx(  ): IOException in: R(  + /images/464_pict2.gif +
nul
l) Connection aborted by peer: socket write error
2001-02-19 08:40:04 - Ctx(  ): IOException in: R(  + /IBSMenu1.class + null)
Con
nection aborted by peer: socket write error
2001-02-19 08:49:33 - Ctx(  ): IOException in: R(  + /images/lbanner.gif +
null)
 Connection aborted by peer: socket write error
2001-02-19 08:49:33 - Ctx(  ): IOException in: R(  + /images/rbanner.gif +
null)
 Connection aborted by peer: socket write error
2001-02-19 08:50:38 - Ctx(  ): IOException in: R(  + /images/lbanner.gif +
null)
 Connection aborted by peer: socket write error
2001-02-19 08:50:38 - Ctx(  ): IOException in: R(  + /images/rbanner.gif +
null)
 Connection aborted by peer: socket write error

The images are all there, and they display, and the class for the applet
works, but I keep getting theses error messages. The page that displays
these images is an HTML page at the base of my context. The class is called
from most JSP pages in /JSP. Does anyone know what causes these error
messages?

Chris

--
Chris Ward - Developer
@ integral business solutions
tel: 651.631.3144
fax: 651.631.2544
email: [EMAIL PROTECTED]
web: www.go-integral.com


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

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




path for SERVLETS

2001-02-19 Thread Luis Calderón

Hello list:

i want to change the path for servlets execution,this path is  for default
/servlet/name_servlet ... but i want run servlets in my custom path .. 

for example /mypath/name_servlet 

(without the path called "servlet" i like replacement this path)


Saludos
Luis Caldern Puertas
Analista de Sistemas y Soporte
Area de Soporte - TEKTRON SA.



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




RE: errors displaying graphics

2001-02-19 Thread Randy Layman


You are correct - whenever a web browser finds that its local copy
of the resource it closes the connection.  You are also right that exception
handling is costly, however there is no way around this - the HTTP protocol
does not allow for clients to tell the server "I've already got that.
Goodbye", instead the web browser just closes the connection so that both
sides don't have to waste time putting data onto and getting data off of the
wire (much faster than Exception handling).  If you set your logging higher
you won't see these error messages (and won't waste time waiting for the
synchronzied I/O).

Randy

-Original Message-
From: Ritwick Dhar [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 19, 2001 10:17 AM
To: '[EMAIL PROTECTED]'
Subject: RE: errors displaying graphics


I get this error too, and only on Windows. I think (and I'm not sure) this
error happens when the browser finds the image in its cache and aborts the
request to the server. If this is true, then the fact that an exception is
being generated is troublesome, because that makes me worry about
performance (exception handling is time-consuming).

Rit

-Original Message-
From: Chris Ward [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 19, 2001 10:18 AM
To: Tomcat-User
Subject: errors displaying graphics


I am getting a strange error from the tomcat window (Win2000). It looks like
this :

2001-02-19 08:40:03 - Ctx(  ): IOException in: R(  + /images/rbanner.gif +
null)
 Connection aborted by peer: socket write error
2001-02-19 08:40:03 - Ctx(  ): IOException in: R(  + /images/464_pict2.gif +
nul
l) Connection aborted by peer: socket write error
2001-02-19 08:40:04 - Ctx(  ): IOException in: R(  + /IBSMenu1.class + null)
Con
nection aborted by peer: socket write error
2001-02-19 08:49:33 - Ctx(  ): IOException in: R(  + /images/lbanner.gif +
null)
 Connection aborted by peer: socket write error
2001-02-19 08:49:33 - Ctx(  ): IOException in: R(  + /images/rbanner.gif +
null)
 Connection aborted by peer: socket write error
2001-02-19 08:50:38 - Ctx(  ): IOException in: R(  + /images/lbanner.gif +
null)
 Connection aborted by peer: socket write error
2001-02-19 08:50:38 - Ctx(  ): IOException in: R(  + /images/rbanner.gif +
null)
 Connection aborted by peer: socket write error

The images are all there, and they display, and the class for the applet
works, but I keep getting theses error messages. The page that displays
these images is an HTML page at the base of my context. The class is called
from most JSP pages in /JSP. Does anyone know what causes these error
messages?

Chris

--
Chris Ward - Developer
@ integral business solutions
tel: 651.631.3144
fax: 651.631.2544
email: [EMAIL PROTECTED]
web: www.go-integral.com


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

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

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




JDBC Connection Pooling

2001-02-19 Thread Nazzaro, Mark (Mark)

Does anyone know if Tomcat supports JDBC connection Pooling similar to
WebSphere?
Any information would be appreciated.

Thank you,

Mark Nazzaro
eAssociate
Lucent Technologies
(908) 559-6105
[EMAIL PROTECTED]


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




Re: JDBC Connection Pooling

2001-02-19 Thread Corey A. Johnson

sure does.  you need a pool manager i believe though.

check out:

http://www.codestudio.com/PoolMan/index.shtml

Cj

"Nazzaro, Mark (Mark)" wrote:

 Does anyone know if Tomcat supports JDBC connection Pooling similar to
 WebSphere?
 Any information would be appreciated.

 Thank you,

 Mark Nazzaro
 eAssociate
 Lucent Technologies
 (908) 559-6105
 [EMAIL PROTECTED]

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

--
Corey A. Johnson
Creative Network Innovations
http://www.cniweb.net/
1-800-CNi-5547 ** 1-321-259-1984



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




Re: JDBC Connection Pooling

2001-02-19 Thread Shahed Ali

Not that I know of, but if you need a good db connection pool,
look at the one from javaexchange.com

I think its called DBconnectionBroker.
Seems to be better than poolman.

Regards
Shahed.


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




docBase not under TOMCAT_HOME

2001-02-19 Thread John Burr

I'm running Tomcat 3.2.1 under Windows 2000.
I have a Server.xml entry of:
Context path="/JspIn24Hours"
 docBase="c:\JspIn24Hours"
 debug="4"
 reloadable="true" 
/Context
I can browse to http://localhost:8080/JspIn24Hours OK and HTML links off of
that page work.
But if I use a bean, I get an "Unable to load class " error from it even
though the class file is under c:\JspIn24Hours\WEB-INF\classes\x

I can get around this by putting the class file under $TOMCAT_HOME\classes\x
or by keeping my docBase under $TOMCAT_HOME\webapps\ in the first place.
Did I miss something?
John

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




Problem with JDBCRealm

2001-02-19 Thread Salvatore Borrelli



Hi everyone,
 I'm trying to setup a security 
access mechanism through JDBCRealm and a Postgresql database. 

I followed the instruction in the JDBCRealm.howto 
document, but I still cannot access to the protected area. Looking at the Tomcat 
log file, I read these error lines:

...

2001-02-19 04:31:53 - ContextManager: JDBCRealm: 
JDBCRealm.authenticate: SELECT user_pass FROM t_users WHERE user_name = 
?2001-02-19 04:31:53 - ContextManager: JDBCRealm: Authentication 
unsuccessful for user null2001-02-19 04:31:58 - ContextManager: JDBCRealm: 
Authentication unsuccessful for user null2001-02-19 04:31:58 - 
ContextManager: JDBCRealm: Controled access for WEB-IMRNA\admin R( /admin + 
/contextAdmin/contextAdmin.html + null) Ct ( )2001-02-19 04:31:58 - 
ContextManager: JDBCRealm: JDBCRealm.roles: SELECT role_name FROM t_user_roles 
WHERE user_name = ?2001-02-19 04:31:58 - ContextManager: JDBCRealm: Auth ok, 
user has no roles2001-02-19 04:31:58 - ContextManager: JDBCRealm: 
UnAuthorized administrator
...


And It looks like the user name has not been passed 
to the JDBCRealm authenticator by the client, but clearly I've inserted it into 
the BASIC authentication dialog...

Could someone help me understand whatI'm 
doing wrong? 

Thanks in advance for your help,
Sal.


RE: path for SERVLETS

2001-02-19 Thread Randy Layman


Create a mapping in the web.xml file that looks something like:
servlet
servlet-name
nameServlet
/servlet-name
servlet-class
com.my.name.servlet
/servlet-class
/servlet
servlet-mapping
servlet-name
nameServlet
/servlet-name
url-pattern
/mypath/name_servlet
/url-pattern
/servlet-mapping

Or edit and recompile the invoker
(org.apache.tomcat.servlets.InvokerServlet) so that watches for the URLs
that you want it to look for.

Randy

-Original Message-
From: Luis Caldern [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 19, 2001 5:28 AM
To: '[EMAIL PROTECTED]'
Subject: path for SERVLETS


Hello list:

i want to change the path for servlets execution,this path is  for default
/servlet/name_servlet ... but i want run servlets in my custom path .. 

for example /mypath/name_servlet 

(without the path called "servlet" i like replacement this path)


Saludos
Luis Caldern Puertas
Analista de Sistemas y Soporte
Area de Soporte - TEKTRON SA.



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

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




Re: strange archive filter!!

2001-02-19 Thread Jan Labanowski

Because you used a line starting from "from ". The From on the beginning
of line is a message separator in UNIX. The programs which operate on
mailboxes think that the From starts another message and stop.
Remember "From " on the beginning of line is bad, if you need it do:

 From

Smarter MUA (mail user agents) will do it for you {:-)} but some will not...

Jan


On Mon, 19 Feb 2001, Bard wrote:

 Does anyone know why half of my message about
 Apache + Tomcat + mod_jk and virtual hosts refuses to appear?
 
 It will be difficult to get a sensible answer if people can't read the
 question!
 
 Bard
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
 

Jan K. Labanowski|phone: 614-292-9279,  FAX: 614-292-7168
Ohio Supercomputer Center|Internet: [EMAIL PROTECTED] 
1224 Kinnear Rd, |http://www.ccl.net/chemistry.html
Columbus, OH 43212-1163  |http://www.osc.edu/


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




RE: errors displaying graphics

2001-02-19 Thread Chris Ward

These errors are coming from html pages, or a JSP page in the case of the
applet class, with the propper html tags. Some of these images are then
displaying correctly under JSP pages.

Chris


-Original Message-
From: Chris Ward [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 19, 2001 9:18 AM
To: Tomcat-User
Subject: errors displaying graphics


I am getting a strange error from the tomcat window (Win2000). It looks like
this :

2001-02-19 08:40:03 - Ctx(  ): IOException in: R(  + /images/rbanner.gif +
null)
 Connection aborted by peer: socket write error
2001-02-19 08:40:03 - Ctx(  ): IOException in: R(  + /images/464_pict2.gif +
nul
l) Connection aborted by peer: socket write error
2001-02-19 08:40:04 - Ctx(  ): IOException in: R(  + /IBSMenu1.class + null)
Con
nection aborted by peer: socket write error
2001-02-19 08:49:33 - Ctx(  ): IOException in: R(  + /images/lbanner.gif +
null)
 Connection aborted by peer: socket write error
2001-02-19 08:49:33 - Ctx(  ): IOException in: R(  + /images/rbanner.gif +
null)
 Connection aborted by peer: socket write error
2001-02-19 08:50:38 - Ctx(  ): IOException in: R(  + /images/lbanner.gif +
null)
 Connection aborted by peer: socket write error
2001-02-19 08:50:38 - Ctx(  ): IOException in: R(  + /images/rbanner.gif +
null)
 Connection aborted by peer: socket write error

The images are all there, and they display, and the class for the applet
works, but I keep getting theses error messages. The page that displays
these images is an HTML page at the base of my context. The class is called
from most JSP pages in /JSP. Does anyone know what causes these error
messages?

Chris

--
Chris Ward - Developer
@ integral business solutions
tel: 651.631.3144
fax: 651.631.2544
email: [EMAIL PROTECTED]
web: www.go-integral.com


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


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




RE: JDBC Connection Pooling

2001-02-19 Thread Michel Lehon

Two projects under Apache provide JDBC Connection pooling:
Turbine
Struts.

I think you can use the one from Turbine outside the framwork without any
problems.

Michel.

 -Original Message-
 From: Shahed Ali [mailto:[EMAIL PROTECTED]]
 Sent: Monday, 19 February, 2001 16:35
 To: [EMAIL PROTECTED]
 Subject: Re: JDBC Connection Pooling


 Not that I know of, but if you need a good db connection pool,
 look at the one from javaexchange.com

 I think its called DBconnectionBroker.
 Seems to be better than poolman.

 Regards
 Shahed.


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





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




RE: JDBC Connection Pooling

2001-02-19 Thread Etienne Baert

Please, have a look on Turbine at http://java.apache.org
there were a lot of discussions in the related groups
about JDBC connection pooling.

Etienne

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: lundi 19 fevrier 2001 16:49
To: [EMAIL PROTECTED]
Cc: '[EMAIL PROTECTED]'
Subject: Re: JDBC Connection Pooling



JDBC connection pooling !

Tomcat do not provide resource pooling ? I think ?

I know that some JDBC driver support pooling in native !!! Or you can use
your own pooling mechanism, use minerva, poolman, jpool 

Christophe




"Nazzaro,
Mark (Mark)" To:
"'[EMAIL PROTECTED]'"
mnazzaro@luc[EMAIL PROTECTED]
ent.com cc:
 Subject: JDBC Connection
Pooling
02/19/01
04:34 PM
Please
respond to
tomcat-user





Does anyone know if Tomcat supports JDBC connection Pooling similar to
WebSphere?
Any information would be appreciated.

Thank you,

Mark Nazzaro
eAssociate
Lucent Technologies
(908) 559-6105
[EMAIL PROTECTED]


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






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


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




Re: JDBC Connection Pooling

2001-02-19 Thread Alex Fernández

There are some other Jakarta products that provide Connection Pooling. You can use
Struts, you can use Turbine. Not part of Tomcat, but nice dressings (I haven't used
them though).

Right now the Jakarta folks are deciding if it's feasible to provide some sort of
general utility library, so each feature can be used on its own. If you want to watch
it live, tune it to [EMAIL PROTECTED]

Un saludo,

Alex.

[EMAIL PROTECTED] wrote:

 JDBC connection pooling !

 Tomcat do not provide resource pooling ? I think ?

 I know that some JDBC driver support pooling in native !!! Or you can use
 your own pooling mechanism, use minerva, poolman, jpool 

 Christophe


 "Nazzaro,
 Mark (Mark)" To: "'[EMAIL PROTECTED]'"
 mnazzaro@luc[EMAIL PROTECTED]
 ent.com cc:
  Subject: JDBC Connection Pooling
 02/19/01
 04:34 PM
 Please
 respond to
 tomcat-user



 Does anyone know if Tomcat supports JDBC connection Pooling similar to
 WebSphere?
 Any information would be appreciated.

 Thank you,

 Mark Nazzaro
 eAssociate
 Lucent Technologies
 (908) 559-6105
 [EMAIL PROTECTED]

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

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


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




Proposal of change (bug fix) to tomcat.bat

2001-02-19 Thread MTKR

hi, i'm not sure whether anybody has really noticed small little
"bug" before (since i didn't notice this in the user list archive;
but then again i don't have the time to do an exhaustive search myself
as i am rather busy nowadays with (what else?) work...)

I'm referring to the tomcat 3.2.1 win32 distribution.

it appears that there is some problem with running the batch
file if you just type "tomcat" (without any other parameters
like "start," etc.)

the offending line is the line which begins with
echo Usage: tomcat ( start ^| 

apparently "echo" treats this line as a recursive call
to tomcat.bat all over again because of the brackets. So an
unaware user will be caught out of the blue and not be able 
to see the echo help at atll.

Solution?

enclose the line in quotes instead...

echo "Usage: tomcat ( start ."


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




browser version

2001-02-19 Thread Carlos

with this:
 %
String UserAgent = request.getHeader("User-Agent");
%
i show in a jsp page this:
Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)
but from this string how can i put in a string thew browser type and in
other the version?
thanks
Carlos


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




RE: JDBC Connection Pooling

2001-02-19 Thread Cato, Christopher

In the book "Java Server Pages" by Hans Bergstedt, O'Reilly - ISBN
1-56592-746-X it says that it is possible through using the following
interfaces:

javax.sql.DataSource
javax.sql.ConnectionPoolDataSource
javax.sql.PooledConnection

This is all part of JDBC 2.0 or rather the JDBC 2.0 Optional Package.

So, you don't really need TomCat to manage this, just set it up in your
database tool class (if you have one) and let all other db-hungry classes
get it's connection from that one. This should be database-independent
AFAIK.

/christopher cato

 -Original Message-
 From: Nazzaro, Mark (Mark) [mailto:[EMAIL PROTECTED]]
 Sent: den 19 februari 2001 16:35
 To: '[EMAIL PROTECTED]'
 Subject: JDBC Connection Pooling
 
 
 Does anyone know if Tomcat supports JDBC connection Pooling similar to
 WebSphere?
 Any information would be appreciated.
 
 Thank you,
 
 Mark Nazzaro
 eAssociate
 Lucent Technologies
 (908) 559-6105
 [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
 

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




re: jsp failure

2001-02-19 Thread michel.knight

Do you servlet. servlet.jar in you're CLASSPATH .

Michel

==
Michel Knight
ITArchitecture(Oracle)group
[EMAIL PROTECTED]
(819)953-1791
==

-- Original Text --

From: "robert young" [EMAIL PROTECTED], on 2/18/01 8:19 PM:

Folks:

installed tomcat 3.2.1 per instructions.  starts OK,
serves html OK, and runs servlets OK; from the example
page.  dies on jsp.  JAVA_HOME and TOMCAT_HOME are set,
and accurate, near as i can tell.  follows is the
error:

javax.servlet.ServletException: sun/tools/javac/Main

and 

java.lang.NoClassDefFoundError: sun/tools/javac/Main

would seem to be a path/classpath error.  my development
environment, Visual SlickEdit compiles stuff OK.

thanx,
robert young





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



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




re: HELP! -- Apache/Tomcat starting error

2001-02-19 Thread michel.knight

I believe that you don't use jserv.properties no more with tomcat , you need 
to configure server.xml instead.


Michel

==
Michel Knight
ITArchitecture(Oracle)group
[EMAIL PROTECTED]
(819)953-1791
==

-- Original Text --

From: "Xu, Lifeng" [EMAIL PROTECTED], on 2/18/01 10:13 PM:

I am running Apache / JServ / Tomcat, with Apache starts Tomcat automaticly.
It worked fine before but now I am unable to start the services properly.
The following error message are loged in mod_jserv.log file and the
jserv.properties (looks like this is where the problem is) file are also
attached. Can somebody tell me what I am doing wrong here?

Thanks.

Lifeng

[18/02/2001 20:52:53:100] (ERROR) wrapper: printing debugging information
(command line, env)
[18/02/2001 20:52:53:100] (ERROR) wrapper: argument[ 0]
/usr/local/jbuilder4/jdk1.3/bin/java
[18/02/2001 20:52:53:100] (ERROR) wrapper: argument[ 1]
-Dtomcat.home=/home/penguin/MemberLink/QAProject/com/rims/memberlink
[18/02/2001 20:52:53:100] (ERROR) wrapper: argument[ 2]
-Dorg.omg.CORBA.ORBClass=com.inprise.vbroker.orb.ORB
[18/02/2001 20:52:53:100] (ERROR) wrapper: argument[ 3]
-Dorg.omg.CORBA.ORBSingletonClass=com.inprise.vbroker.orb.ORBSingleton
[18/02/2001 20:52:53:100] (ERROR) wrapper: argument[ 4]
-Djavax.rmi.CORBA.StubClass=com.inprise.vbroker.rmi.CORBA.StubImpl
[18/02/2001 20:52:53:100] (ERROR) wrapper: argument[ 5]
-Djavax.rmi.CORBA.UtilClass=com.inprise.vbroker.rmi.CORBA.UtilImpl
[18/02/2001 20:52:53:100] (ERROR) wrapper: argument[ 6]
-Djavax.rmi.CORBA.PortableRemoteObjectClass=com.inprise.vbroker.rmi.CORBA.Po
rtableRemoteObjectImpl
[18/02/2001 20:52:53:100] (ERROR) wrapper: argument[ 7]
-Dvbroker.agent.port=19354
[18/02/2001 20:52:53:100] (ERROR) wrapper: argument[ 8]
org.apache.tomcat.startup.Tomcat
[18/02/2001 20:52:53:100] (ERROR) wrapper: argument[ 9]
/home/penguin/MemberLink/QAProject/com/rims/memberlink/conf/jserv.properties
[18/02/2001 20:52:53:101] (ERROR) wrapper: environment[ 0]
PATH=/usr/bin:/bin:/usr/local/bin:/home/kal/downloads/jre1.2.2/bin:/usr/loca
l/apps/java/jdk1.2.2/bin:/usr/local/apache/bin:/home/penguin/MemberLink/QAPr
oject/com/rims/memberlink:/bin:/usr/bin:/usr/local/bin
[18/02/2001 20:52:53:101] (ERROR) wrapper: environment[ 1]
CLASSPATH=/usr/local/inprise/ias/lib/vbjorb.jar:/usr/local/inprise/ias/lib/v
bdev.jar:/usr/local/inprise/ias/lib/vbejb.jar:/usr/local/inprise/ias/lib/vbj
dev.jar:/usr/local/inprise/ias/lib/navigator.jar:/home/penguin/MemberLink/QA
Project/MLClasses.jar:/home/penguin/MemberLink/QAProject/MLBeanGroup.jar:/ho
me/penguin/MemberLink/QAProject/com/rims/memberlink/lib/activation.jar:/home
/penguin/MemberLink/QAProject/com/rims/memberlink/lib/ant.jar:/home/penguin/
MemberLink/QAProject/com/rims/memberlink/lib/archer2.jar:/home/penguin/Membe
rLink/QAProject/com/rims/memberlink/lib/ecs.jar:/home/penguin/MemberLink/QAP
roject/com/rims/memberlink/lib/jasper.jar:/home/penguin/MemberLink/QAProject
/com/rims/memberlink/lib/javax_ejb.zip:/home/penguin/MemberLink/QAProject/co
m/rims/memberlink/lib/javax_jts.zip:/home/penguin/MemberLink/QAProject/com/r
ims/memberlink/lib/mail.jar:/home/penguin/MemberLink/QAProject/com/rims/memb
erlink/lib/providerutil.jar:/home/penguin/MemberLink/QAProject/com/rims/memb
erlink/lib/rmiregistry.jar:/home/penguin/MemberLink/QAProject/com/rims/membe
rlink/lib/servlet.jar:/home/penguin/MemberLink/QAProject/com/rims/memberlink
/lib/sproutaux.jar:/home/penguin/MemberLink/QAProject/com/rims/memberlink/li
b/tools.jar:/home/penguin/MemberLink/QAProject/com/rims/memberlink/lib/webse
rver.jar:/home/penguin/MemberLink/QAProject/com/rims/memberlink/lib/xml.jar:
/usr/local/jbuilder4/jdk1.3/jre/lib/i18n.jar:/usr/local/jbuilder4/jdk1.3/jre
/lib/rt.jar:/usr/local/jbuilder4/jdk1.3/lib/dt.jar




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




migrating from 3.1 to 3.2.1 problems

2001-02-19 Thread Maureen Fisher

Hi --
I am in the process of moving from Apache 1.3.12  to 1.3.14 and also Tomcat 3.1 to 
3.2.1.

Here's how I have it set up, which may be part of the problem I am experiencing.
I am using an AIX box.
The 1.3.12 build of Apache has mod_jserv.c built in. The 1.3.14 has DSO-enabled and I 
have the mod_jk.so and mod_jserv.so available to me.

Because of the different architectures, I have the 1.3.14 build loading a different 
tomcat.conf file than the 1.3.12 version: the only difference is the line where the 
module is loaded.

The problem:
I have one context that will not load. I have tried to mount only the .jsp files to 
tomcat.
ApJServMount /ivy/*.jsp ajpv12://localhost:8011/ivy

This config works with Apache 1.3.12, mod_jserv.c and Tomcat 3.1. But not with 1.3.14, 
mod_jserv.so and Tomcat 3.1.

Any clues as to why?

Maureen Fisher, CIT/ASDT, Cornell University
Ithaca, NY 14850
[EMAIL PROTECTED]
http://mo.cit.cornell.edu/
Ad astra per aspera


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




RE: help need

2001-02-19 Thread McCay, Larry

 what exactly is the compile error?
it may be the import line or a classpath issue.

-Original Message-
From: Alfonso Caellas
To: [EMAIL PROTECTED]
Sent: 2/19/01 9:43 AM
Subject: help need

Is very strange but Ive done just this

I have my jsp running rightly over tomcat
having the directory WEB-INF/classes/com/digital

But when I insert import = ..., com.digital.* in the jsp and try to run
again

It fails when tomcat compiles automatically the jsp

Its really strange, I dont understand

maybe because is being compilated automatically by tomcat and not so the
other classes wich We must compile ?



- Original Message -
From: "Randy Layman" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, February 19, 2001 2:20 PM
Subject: RE: help need



If you have just class files, then you need to put myobject.class
into WEB-INF/classes/com.  If its in a JAR file then it needs to go into
WEB-INF/lib.

Randy


-Original Message-
From: Alfonso Caellas [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 19, 2001 8:47 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: help need


Hello to everybody ,
I need to know if something must be configured in TOMCAT to do an import
to
an jsp with the PAGE directive.

I import an object Ive created com.myobject

and Ive placed It in WEB_Inf in the aplication directory inside tomcat

But when tomcat compile automatically the jsp It fails , doesnt find
the
object although in examples It works.




- Original Message -
From: "Rafel Puchades" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, February 19, 2001 2:01 PM
Subject: RE: help need


 send an email to
 [EMAIL PROTECTED]

 good luck!!

  -Mensaje original-
  De: affan [SMTP:[EMAIL PROTECTED]]
  Enviado el: lunes 19 de febrero de 2001 13:49
  Para: [EMAIL PROTECTED]
  Asunto: help need
 
  Please tell me how i unscribe from this mailing list what is the
email
address for unscribe.
 
  help need
 
 
   Archivo: ATT00016.htm

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






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

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






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

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




RE: browser version

2001-02-19 Thread Michael Wentzel

 with this:
  %
 String UserAgent = request.getHeader("User-Agent");
 %
 i show in a jsp page this:
 Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)
 but from this string how can i put in a string thew browser 
 type and in
 other the version?

You can always use a java.util.StringTokenizer to tokenize the
userAgent String using " /" as the second param in your Tokenizer.

I would put all this in a utility bean/class abstract it out of course.


---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
mailto:[EMAIL PROTECTED]

- Punisher of those who cannot spell dumb!

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




RE: browser version

2001-02-19 Thread Nobody

Sorry,

The person you are trying to contact is no longer at this address.
If you feel you have reached this in error, please contact with
[EMAIL PROTECTED]

Thanks


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




re: setting the classpath for a webapp

2001-02-19 Thread michel.knight

I'm getting the same problem did you get an answer for this.

Michel

==
Michel Knight
ITArchitecture(Oracle)group
[EMAIL PROTECTED]
(819)953-1791
==

-- Original Text --

From: "Peoter Veliki" [EMAIL PROTECTED], on 2/16/01 1:26 PM:


I'm a little confused about how Tomcat sets the classpath of the different 
webapps.  I thought that if you placed jar files in the 
webapps/myapp/WEB-INF/lib directory that they were automatically added to the 
classpath and that the webapps/myapp/WEB-INF/classes directory was also added 
automatically.  

What I'm finding is that I have to set the classpath manually for each app in 
the shell that is used to start Tomcat.  Is this correct?  Do I need to 
package them into WAR files before the classpath is dealt with 
automatically?  Help?!

Thanks



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




re: setting the classpath for a webapp

2001-02-19 Thread Nobody

Sorry,

The person you are trying to contact is no longer at this address.
If you feel you have reached this in error, please contact with
[EMAIL PROTECTED]

Thanks


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




re: setting the classpath for a webapp

2001-02-19 Thread Nobody

Sorry,

The person you are trying to contact is no longer at this address.
If you feel you have reached this in error, please contact with
[EMAIL PROTECTED]

Thanks


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




re: setting the classpath for a webapp

2001-02-19 Thread Nobody

Sorry,

The person you are trying to contact is no longer at this address.
If you feel you have reached this in error, please contact with
[EMAIL PROTECTED]

Thanks


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




re: setting the classpath for a webapp

2001-02-19 Thread Nobody

Sorry,

The person you are trying to contact is no longer at this address.
If you feel you have reached this in error, please contact with
[EMAIL PROTECTED]

Thanks


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




re: setting the classpath for a webapp

2001-02-19 Thread Nobody

Sorry,

The person you are trying to contact is no longer at this address.
If you feel you have reached this in error, please contact with
[EMAIL PROTECTED]

Thanks


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




re: setting the classpath for a webapp

2001-02-19 Thread Nobody

Sorry,

The person you are trying to contact is no longer at this address.
If you feel you have reached this in error, please contact with
[EMAIL PROTECTED]

Thanks


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




re: setting the classpath for a webapp

2001-02-19 Thread Nobody

Sorry,

The person you are trying to contact is no longer at this address.
If you feel you have reached this in error, please contact with
[EMAIL PROTECTED]

Thanks


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




re: setting the classpath for a webapp

2001-02-19 Thread Nobody

Sorry,

The person you are trying to contact is no longer at this address.
If you feel you have reached this in error, please contact with
[EMAIL PROTECTED]

Thanks


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




re: setting the classpath for a webapp

2001-02-19 Thread Nobody

Sorry,

The person you are trying to contact is no longer at this address.
If you feel you have reached this in error, please contact with
[EMAIL PROTECTED]

Thanks


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




re: setting the classpath for a webapp

2001-02-19 Thread Nobody

Sorry,

The person you are trying to contact is no longer at this address.
If you feel you have reached this in error, please contact with
[EMAIL PROTECTED]

Thanks


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




re: help need

2001-02-19 Thread michel.knight

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


Michel

==
Michel Knight
ITArchitecture(Oracle)group
[EMAIL PROTECTED]
(819)953-1791
==

-- Original Text --

From: "affan" [EMAIL PROTECTED], on 2/19/01 7:49 AM:

Please tell me how i unscribe from this mailing list what is the email  
address for unscribe.

help need





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




re: setting the classpath for a webapp

2001-02-19 Thread Nobody

Sorry,

The person you are trying to contact is no longer at this address.
If you feel you have reached this in error, please contact with
[EMAIL PROTECTED]

Thanks


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




Re: building mod_jk.so for Solaris

2001-02-19 Thread Nobody

Sorry,

The person you are trying to contact is no longer at this address.
If you feel you have reached this in error, please contact with
[EMAIL PROTECTED]

Thanks


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




re: help need

2001-02-19 Thread Nobody

Sorry,

The person you are trying to contact is no longer at this address.
If you feel you have reached this in error, please contact with
[EMAIL PROTECTED]

Thanks


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




re: setting the classpath for a webapp

2001-02-19 Thread Nobody

Sorry,

The person you are trying to contact is no longer at this address.
If you feel you have reached this in error, please contact with
[EMAIL PROTECTED]

Thanks


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




Re: building mod_jk.so for Solaris

2001-02-19 Thread Nobody

Sorry,

The person you are trying to contact is no longer at this address.
If you feel you have reached this in error, please contact with
[EMAIL PROTECTED]

Thanks


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




re: help need

2001-02-19 Thread Nobody

Sorry,

The person you are trying to contact is no longer at this address.
If you feel you have reached this in error, please contact with
[EMAIL PROTECTED]

Thanks


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




re: setting the classpath for a webapp

2001-02-19 Thread Nobody

Sorry,

The person you are trying to contact is no longer at this address.
If you feel you have reached this in error, please contact with
[EMAIL PROTECTED]

Thanks


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




re: help need

2001-02-19 Thread Nobody

Sorry,

The person you are trying to contact is no longer at this address.
If you feel you have reached this in error, please contact with
[EMAIL PROTECTED]

Thanks


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




re: setting the classpath for a webapp

2001-02-19 Thread Nobody

Sorry,

The person you are trying to contact is no longer at this address.
If you feel you have reached this in error, please contact with
[EMAIL PROTECTED]

Thanks


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




Re: building mod_jk.so for Solaris

2001-02-19 Thread Nobody

Sorry,

The person you are trying to contact is no longer at this address.
If you feel you have reached this in error, please contact with
[EMAIL PROTECTED]

Thanks


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




re: help need

2001-02-19 Thread Nobody

Sorry,

The person you are trying to contact is no longer at this address.
If you feel you have reached this in error, please contact with
[EMAIL PROTECTED]

Thanks


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




re: setting the classpath for a webapp

2001-02-19 Thread Nobody

Sorry,

The person you are trying to contact is no longer at this address.
If you feel you have reached this in error, please contact with
[EMAIL PROTECTED]

Thanks


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




RE: building mod_jk.so for Solaris

2001-02-19 Thread Gary Lawson

Could someone at jakarta-list-admin PLEASE remove everyone
@friendlyworks.com so we don't receive several of these mails per minute.

TIA
Gary

-Original Message-
From: Nobody [mailto:[EMAIL PROTECTED]]
Sent: 19 February 2001 16:51
To: [EMAIL PROTECTED]
Subject: Re: building mod_jk.so for Solaris


Sorry,

The person you are trying to contact is no longer at this address.
If you feel you have reached this in error, please contact with
[EMAIL PROTECTED]

Thanks


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


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




Re: building mod_jk.so for Solaris

2001-02-19 Thread Nobody

Sorry,

The person you are trying to contact is no longer at this address.
If you feel you have reached this in error, please contact with
[EMAIL PROTECTED]

Thanks


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




re: help need

2001-02-19 Thread Nobody

Sorry,

The person you are trying to contact is no longer at this address.
If you feel you have reached this in error, please contact with
[EMAIL PROTECTED]

Thanks


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




RE: building mod_jk.so for Solaris

2001-02-19 Thread Nobody

Sorry,

The person you are trying to contact is no longer at this address.
If you feel you have reached this in error, please contact with
[EMAIL PROTECTED]

Thanks


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




Re: building mod_jk.so for Solaris

2001-02-19 Thread Nobody

Sorry,

The person you are trying to contact is no longer at this address.
If you feel you have reached this in error, please contact with
[EMAIL PROTECTED]

Thanks


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




I've unsubscribed cterrell@friendlyworks.com.

2001-02-19 Thread Sam Ruby

Hopefully this will stop the stream of messages from "Nobody".

- Sam Ruby


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




Re: setting the classpath for a webapp

2001-02-19 Thread Alfonso Cañellas

about this theme,

do you know if is necessary to set the classpath for simple beans or is
enough including them in WEB-INF ?

 Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, February 19, 2001 5:30 PM
Subject: re: setting the classpath for a webapp


 I'm getting the same problem did you get an answer for this.

 Michel

 ==
 Michel Knight
 ITArchitecture(Oracle)group
 [EMAIL PROTECTED]
 (819)953-1791
 ==

 -- Original Text --

 From: "Peoter Veliki" [EMAIL PROTECTED], on 2/16/01 1:26 PM:


 I'm a little confused about how Tomcat sets the classpath of the different
 webapps.  I thought that if you placed jar files in the
 webapps/myapp/WEB-INF/lib directory that they were automatically added to
the
 classpath and that the webapps/myapp/WEB-INF/classes directory was also
added
 automatically.

 What I'm finding is that I have to set the classpath manually for each app
in
 the shell that is used to start Tomcat.  Is this correct?  Do I need to
 package them into WAR files before the classpath is dealt with
 automatically?  Help?!

 Thanks



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






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




re: help need

2001-02-19 Thread Nobody

Sorry,

The person you are trying to contact is no longer at this address.
If you feel you have reached this in error, please contact with
[EMAIL PROTECTED]

Thanks


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




re: setting the classpath for a webapp

2001-02-19 Thread Nobody

Sorry,

The person you are trying to contact is no longer at this address.
If you feel you have reached this in error, please contact with
[EMAIL PROTECTED]

Thanks


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




RE: building mod_jk.so for Solaris

2001-02-19 Thread Bill_Fellows/MO/americancentury



Even better, I emailed [EMAIL PROTECTED] as instructed in their insipid
reply and got a reply that mailman does not exist.  Intelligent message.

/bill



[EMAIL PROTECTED] (Mail Delivery System) on 02/19/2001 10:53:16 AM



To:   Bill Fellows/MO/americancentury@americancentury
cc:
Subject:  Undelivered Mail Returned to Sender



This is the Postfix program at host maul.friendlyworks.com.

I'm sorry to have to inform you that the message returned
below could not be delivered to one or more destinations.

For further assistance, please contact [EMAIL PROTECTED]

If you do so, please include this problem report. You can
delete your own text from the message returned below.

   The Postfix program

[EMAIL PROTECTED]: user unknown. Command output: mailman:
Mailbox does not exist _



Received: from smtp1.friendlyworks.com (yoda.friendlyworks.com [10.1.2.98]) by
maul.friendlyworks.com (Postfix) with ESMTP id AA35769AE1for
[EMAIL PROTECTED]; Mon, 19 Feb 2001 10:53:16 -0600 (CST)
Received: by smtp1.friendlyworks.com (Postfix) id 415401F70; Mon, 19 Feb
2001 10:57:05 -0600 (CST)
Delivered-To: [EMAIL PROTECTED]
Received: from kcvirus01.americancentury.com (fw1.friendlyworks.com
[10.1.2.243])  by smtp1.friendlyworks.com (Postfix) with ESMTP id D961E1F6F for
[EMAIL PROTECTED]; Mon, 19 Feb 2001 10:57:04 -0600 (CST)
Received: from kcvirus01.americancentury.com (localhost [127.0.0.1])   by
kcvirus01.americancentury.com (8.11.1/8.11.1) with ESMTP id f1JGqin03418for
[EMAIL PROTECTED]; Mon, 19 Feb 2001 10:52:44 -0600 (CST)
Received: from notes-smtpmta-kc01p.americancentury.com
(inetkc.americancentury.com [10.115.60.5])by kcvirus01.americancentury.com
(8.11.1/8.11.1) with SMTP id f1JGqdT03411 for [EMAIL PROTECTED];
Mon, 19 Feb 2001 10:52:39 -0600 (CST)
Received: by notes-smtpmta-kc01p.americancentury.com(Lotus SMTP MTA v4.6.5
(863.2 5-20-1999))  id 862569F8.005CBFD1 ; Mon, 19 Feb 2001 10:53:04 -0600
X-Lotus-FromDomain: AMERICANCENTURY
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Message-ID: [EMAIL PROTECTED]
Date: Mon, 19 Feb 2001 10:50:12 -0600
Subject: re: help need
Mime-Version: 1.0
Content-type: text/plain; charset=us-ascii
Content-Disposition: inline




ENOUGH!  Please.
This unidentified user, who's account has expired, was a member of our mailing
list ([EMAIL PROTECTED])  I am not the list moderator otherwise I'd
drop the user.  There is nothing that sending 16+ emails to this list is going
to accomplish beyond annoying the living bejeebers out of all of us.

/bill





"Gary Lawson" [EMAIL PROTECTED] on 02/19/2001 10:53:21 AM



Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:(bcc: Bill Fellows/MO/americancentury)
Subject:  RE: building mod_jk.so for Solaris



Could someone at jakarta-list-admin PLEASE remove everyone
@friendlyworks.com so we don't receive several of these mails per minute.

TIA
Gary





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




RE: setting the classpath for a webapp

2001-02-19 Thread Randy Layman


Any class file can be put into WEB-INF/classes or in a JAR file in
WEB-INF/lib.  Bean, Enterprise Bean, or other class file, it doesn' matter.

All the classes that Tomcat finds in these two places are added to
that Web Application's Class path.

Randy


-Original Message-
From: Alfonso Caellas [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 19, 2001 12:02 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: setting the classpath for a webapp


about this theme,

do you know if is necessary to set the classpath for simple beans or is
enough including them in WEB-INF ?

 Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, February 19, 2001 5:30 PM
Subject: re: setting the classpath for a webapp


 I'm getting the same problem did you get an answer for this.

 Michel

 ==
 Michel Knight
 ITArchitecture(Oracle)group
 [EMAIL PROTECTED]
 (819)953-1791
 ==

 -- Original Text --

 From: "Peoter Veliki" [EMAIL PROTECTED], on 2/16/01 1:26 PM:


 I'm a little confused about how Tomcat sets the classpath of the different
 webapps.  I thought that if you placed jar files in the
 webapps/myapp/WEB-INF/lib directory that they were automatically added to
the
 classpath and that the webapps/myapp/WEB-INF/classes directory was also
added
 automatically.

 What I'm finding is that I have to set the classpath manually for each app
in
 the shell that is used to start Tomcat.  Is this correct?  Do I need to
 package them into WAR files before the classpath is dealt with
 automatically?  Help?!

 Thanks



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






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

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




  1   2   >