Re: What does it mean - "Name on certificate does not match name of the site"

2001-12-21 Thread Richard S. Huntrods

Greetings!

Thanks for the replies so far. Unfortunately, I haven't got it to work
yet.  I'm putting various combinations of server name / domain name in
the "Company Org Unit" field, but to no effect.

Is there a way to view the two fields while running in a browser, i.e.
what the server is sending, and what the certificate says? Actually, I
know what the cert says, but it obviously does not agree with what the
server is sending. I'd like to be able to see what is coming to the
browser.  IE doesn't seem to display much info.

Thanks,

-Richard



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




webdav with apache-tomcat

2001-12-21 Thread Hitesh Sharma

Hi

trying to get webdav working with apache-Tomcat. Has anyone done tha tbefore
...



> Hi
> I have been able to run tomcat successfully, in standalone mode and could
> get the webdav enabled context working too.
> Now I want to run tomcat with apache with mod_webapp through warp
connector.
> I am able to run tomcat under warp connector so that it executes the
> servlets which are so configured but when I try to add DAV enabled context
> as a webfolder, I am unable to do that.
>
> Has anyone done that before ??
>
> hitesh




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


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Apache and TC on different machines

2001-12-21 Thread Brett Knights

Hi,

I am trying to install TC and Apache on different machines.

If I add 

LoadModule jk_module modules/mod_jk.dll
and
AddModule mod_jk.c 

to my http.conf file I get an error on starting apache 
that just says "error opening workers" and that's it.

It makes no difference whether I include references to my mod_jk.conf file
or not.

My apache machine has neither java nor tomcat installation.

TIA

^^^
Brett KnightsTanner Research, Inc.   
MIS Analyst 2650 E. Foothill Blvd. 
[EMAIL PROTECTED]   Pasadena, CA  91107  
voice  626-432-5767   fax 626-792-0300
^^^ 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




[FAQ] jGuru FAQ Update

2001-12-21 Thread Alex Chaffee

jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as
many other Java topics).  Here is an automated update on recent postings to
Tomcat-related FAQs.  Please direct flames and feedback to [EMAIL PROTECTED] .

 - Alex


++ JavaServer Pages (JSP) FAQ: http://www.jguru.com/faq/JSP

Can I make a jsp custom tag to return a value in to a jsp variable.
I want a jsp custom tag to evaluate some condition based on the parameters I pass and 
return a boolean to the jsp page in a java variable (type boolean). Can anybody 
give some sample of the code using similar functionality. Can we some how use the 
get methods in the tagHandler in our jsp to retrieve the values?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=593533

Is it possible to invoke customtags onEvents like onClick?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=592466

Here is what I have:

1. My application is under /opt/tomcat/webapps/myApp

2. My jsp file is : /opt/tomcat/webapps/myApp/web/test.jsp

   It contains;

  . . .

<%  

String configFile=getInitParameter("configFile");   

System.out.println("configFIle="+configFile);   

%>

3. My web.xml is: /opt/tomcat/webapps/myApp/WEB-INF/web.xml

It contains:

  
   
   
  test 

  /web/test.jsp
  
  

configFile
   
TOTO   

     

      
  
   
  
   test  
  
   /web/test.jsp   

    
  


What am I doing wrong?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=592461

I'm working on the JSP - Tomcat model, I'm using JSPC to pre-compile my JSPs, Is there 
a way to prevent any new (non pre-compiled) JSPs from being executed (compiled) in 
tomcat? ie. I do not want any new JSPs , which have not being pre-compiled to be 
executed via tomcat on the browser, Is there any property/configuration file which I 
need to change in Tomcat??
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=592460

Why use JSP? All that we can do with scriptlets we can do with JavaScript as well, I 
think.
Can somebody explain?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=590882

We are building a series of JSP pages, each of which is responsible for producing a 
different area of the screen.

Any given screen that the end user sees, therefore, is made up of a number of 
"blocks", each of which has been generated by a single JSP. The top level JSP calls in 
the "blocks" using a jsp:include.

We are trying to use the JSP errorPage directive on every JSP to display an error to 
the user if something goes wrong with any of the "blocks", but are finding that we end 
up with the error page only taking up part of the screen (for the block which had an 
error), whereas we would like the whole screen to be filled up by the errorPage. 
In other words - if something goes wrong with any of the blocks that comprise a screen 
- we would like to display nothing but the error page.

What is the best way to do this ?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=590880

++ Servlets FAQ: http://www.jguru.com/faq/Servlets

HttpUtils.parseQueryString is deprecated. What should we use instead ?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=587251

In some web.xml I find DOCTYPE reference of "web-app_2_2.dtd",(in Weblogic 5.1 
example) in others, of "web-app_2.2.dtd" (in java pet store).  What is the difference 
between the two DTDs?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=586710

What are the steps that I need to follow to deploy my servlet in WebLogic 6.1?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=586701

How can I suppress the parameters from displaying in the URL? For instance, if I pass 
in a password, I don't want it to show up in the address bar.
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=586493

++ Tomcat FAQ: http://www.jguru.com/faq/Tomcat

Why is Tomcat 4.0 so slow when connecting via a URLConnection?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=588390


You can shut email notification off at the FAQ home
page(s) or:

  http://www.jguru.com/guru/notifyprefs.jsp



--
To

JNDIRealm and Interbase - SOLVED !!!!

2001-12-21 Thread Diego Novati

Hi all,
thanks for your help but after 8 hours of hard work I solved the problem.
The problem is on an Exception in the JDBCRealm.authenticate method: the
method catch SQLException but "InterBase InterClient" (and also "Firebird
SQL InterClient") throws a NullPointerException exception.
Now, after rebuild of catalina.jar, everything works right.
I have already submit this bug to jakarta-tomcat.

Diego



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Single install/multiple developers?

2001-12-21 Thread Mark Woon

Hello.

I need advice on setting up Tomcat 4.0.1 to support multiple/independent
developers.

Are custom server.xml's all I need?  I see that I can start Tomcat with
-config /some/path/server.xml, but catalina.sh still creates
$CATALINA_BASE/logs/catalina.out.  What exactly needs to be in
$CATALINA_BASE and $CATALINA_HOME?

Thanks,
-Mark



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Alternate webapps dir not seen by apache

2001-12-21 Thread Charles N. Harvey III

answer inline:

>> -Original Message-
>> From: Brian Adams [mailto:[EMAIL PROTECTED]]
>> Sent: Friday, December 21, 2001 4:53 PM
>> To: Tomcat Users List
>> Subject: RE: Alternate webapps dir not seen by apache
>>
>>
>> have you erased the compiled apps in the work directory?
>>
>>

---

I thought for sure that would have been it.  But it definately put me
on the right path.  Here is how it went down...


I have just figured it out.  Very odd.  I had to keep my work directory
open whilst I was stopping and starting services.

When tomcat starts up it creats a "localhost" directory inside the work
directory.  This is because of the first engine which has:
name="localhost"

Bear with me, this took me quite a few tries to figure out.

A few seconds later a second directory was created, called "apache"
because the engine under the warp connector has:
name="apache"

But...  when I would access my computer, I was not using http://localhost.
I was using http://charlieh, the way other users in the office would do it.
And I noticed that once I accessed the site, a "charlieh" directory was
created in the work directory.

So I changed the second engine name to be "charlieh" and then everything
worked the way it was supposed to.  Now I just need to be mindful of that
once I start moving this environment into production (which will be linux
so a whole new set of challenges).  Especially if I create a few virtual
hosts in Apache.

Thanks so much for the help.  And people say they don't like open source
because there is no support.  :)


Charlie



>> -Original Message-
>>From: Charles N. Harvey III [mailto:[EMAIL PROTECTED]]
>> Sent: Friday, December 21, 2001 3:20 PM
>> To: Tomcat Users List
>> Subject: Alternate webapps dir not seen by apache
>>
>>
>> Hello.
>>
>> I have tomcat at C:\tomcat and apache at C:\apache.
>> I have the warp module in place and everything is working just peachy
>> for me in my little test environment (my desktop).  I realized that I
>> do not want all my webapps in the C:\tomcat\webapps directory because if
>> I install a new version of tomcat it will be easier to have all my apps
>> in one central place (not ususual thoughts).
>>
>> I moved my webapps to C:\website.  So I have the example and manager
>> and even the forumdemo app from Velocity.  I changed server.xml to see
>> the new directory as the base for both Standalone and Apache.  I go to
>> http://localhost:8080/examples/jsp/index.html and its all good.  The
little
>> text change that I made at the top of the page is present.  But when I
>> go to http://localhost/examples/jsp/index.html it is still seeing the
>> original one in the C:\tomcat\webapps directory.  Do I just need to
>> restart a few times?  Is there a different way to configure the
httpd.conf?
>>
>> WebAppConnection warpConnection  warplocalhost:8008
>> WebAppDeploy exampleswarpConnection  /examples/
>>
>> and server.xml has:
>>
>>  
>>  >  debug="0"
>>  appBase="C:\website"
>>  unpackWARs="true">
>>
>>
>> How come Tomcat can see it and not Apache?  I will keep hacking away at
it.
>> I was just wondering if anyone else had run into this problem.
>>
>> Thanks.
>>
>> Charlie Harvey
>>
>>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Alternate webapps dir not seen by apache

2001-12-21 Thread Brian Adams

have you erased the compiled apps in the work directory?

-Original Message-
From: Charles N. Harvey III [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 21, 2001 3:20 PM
To: Tomcat Users List
Subject: Alternate webapps dir not seen by apache


Hello.

I have tomcat at C:\tomcat and apache at C:\apache.
I have the warp module in place and everything is working just peachy
for me in my little test environment (my desktop).  I realized that I
do not want all my webapps in the C:\tomcat\webapps directory because if
I install a new version of tomcat it will be easier to have all my apps
in one central place (not ususual thoughts).

I moved my webapps to C:\website.  So I have the example and manager
and even the forumdemo app from Velocity.  I changed server.xml to see
the new directory as the base for both Standalone and Apache.  I go to
http://localhost:8080/examples/jsp/index.html and its all good.  The little
text change that I made at the top of the page is present.  But when I
go to http://localhost/examples/jsp/index.html it is still seeing the
original one in the C:\tomcat\webapps directory.  Do I just need to
restart a few times?  Is there a different way to configure the httpd.conf?

WebAppConnectionwarpConnection  warplocalhost:8008
WebAppDeployexampleswarpConnection  /examples/

and server.xml has:





How come Tomcat can see it and not Apache?  I will keep hacking away at it.
I was just wondering if anyone else had run into this problem.

Thanks.

Charlie Harvey


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: servlet-mapping problem - tomcat 4.0.1

2001-12-21 Thread Scott Eade

From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
> On Fri, 21 Dec 2001, Scott Eade wrote:
> > Subject: servlet-mapping problem - tomcat 4.0.1
> >
> > How do I default a user to my servlet without blocking access
> > to other directories?  Using a default mapping of "/" results in
> > failure to gain access to resources under my servlet directory.
>
> Understanding this requires a little explanation about what is really
> going on.
>
> * The servlet mapping pattern of "/" establishes the
>   default servlet -- in other words, the servlet that
>   Tomcat will hand the request to if it can find no other
>   servlet mapping that matches.
>
> * Tomcat, out of the box, defines a default servlet that
>   serves the static resources (including your stylesheet).
>
> * You can take over the default mapping yourself, but then
>   you give up Tomcat's standard file-serving service and
>   do it yourself if you still need that feature.
>
> To give you suggestions, it would be helpful to understand what you mean
> by "default a user to my servlet".  What application functionality are you
> trying to accomplish?

Thanks Craig.

What I would like to do is be able to serve up some static content
from the root of my web server, say http://mysite.com/ and from there
provide a link to an Apache Turbine application located at
webapps/myapp.  I am simply hoping to provide a relatively
clean url for the application - http://mysite.com/myapp rather than
http://mysite.com/myapp/foo.

I actually have this working at one host provider that uses Zeus
and Resin.  The root directory they provide contains the necessary
resources (styles, templates, etc.) along with the WEB-INF
directory that contains a web.xml with a url-mapping of "/myapp/*"
and everything works fine.

I am switching to a new hosting organization that uses Apache and
Tomcat and I am only now running into this problem.  I thought
the problem was that the new host provider is running tomcat 3.1
(upgrading to 4.01 next week) but then I realised that all of my
development was being done under tomcat with servlet mappings
that included at least some additional component such as
"/myapp/foo/*".

Ultimately I guess I am worried about the aesthetics of the url,
however it would be great if I could somehow mimic the behaviour
of the old site.  What about users that have bookmarked the old
address without the "foo" - I'll have to provide a redirect for them
on top of a redirect that turbine does as a matter of course.  This
will cause some messy behaviour at the beginning of my application.

Incidentally the new hosting organization provides me with my own
virtual tomcat server.  By default they configured a root context
(path="") pointing to a directory called "public_html" and I had
them provide another (path="/myapp"
docBase="/home/myaccount/tomcat/webapps/myapp") where I
am installing my turbine application.  I do have the ability to change
server.xml and restart tomcat if this will help.  I host provider does
need to alter something (mod_jserv or apache I guess) if I add any
new contexts.  It is unclear how this will change when they upgrade
to tomcat 4.01.

I hope this gives you a clearer idea of what I am trying to achieve.

Thanks in advance for any advice.

Scott





--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Alternate webapps dir not seen by apache

2001-12-21 Thread Charles N. Harvey III

Hello.

I have tomcat at C:\tomcat and apache at C:\apache.
I have the warp module in place and everything is working just peachy
for me in my little test environment (my desktop).  I realized that I
do not want all my webapps in the C:\tomcat\webapps directory because if
I install a new version of tomcat it will be easier to have all my apps
in one central place (not ususual thoughts).

I moved my webapps to C:\website.  So I have the example and manager
and even the forumdemo app from Velocity.  I changed server.xml to see
the new directory as the base for both Standalone and Apache.  I go to
http://localhost:8080/examples/jsp/index.html and its all good.  The little
text change that I made at the top of the page is present.  But when I
go to http://localhost/examples/jsp/index.html it is still seeing the
original one in the C:\tomcat\webapps directory.  Do I just need to
restart a few times?  Is there a different way to configure the httpd.conf?

WebAppConnectionwarpConnection  warplocalhost:8008
WebAppDeployexampleswarpConnection  /examples/

and server.xml has:





How come Tomcat can see it and not Apache?  I will keep hacking away at it.
I was just wondering if anyone else had run into this problem.

Thanks.

Charlie Harvey


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




java.lang.IllegalMonitorStateException

2001-12-21 Thread Frank Diakovasilis

Hi, I'm havind a problem running my app within Tomcat(with redirect.dll).
With like four users punding away ion the app, I get hung, and an
java.lang.IllegalMonitorStateException is thrown, without any more detail,
has any one else come accross this? It only seems to be a problem when going
through the redirect as opposed to port 8080.



RE: How come I can't remove from server.xml?

2001-12-21 Thread John Regan

thank you for the quick response.
it wasn't hung, it worked fine when i removed the whole service.  i thought
it was hung because i didn't see the Apache Tomcat/4.0 print out in the
command prompt.  thanks again.

-Original Message-
From: Dieter Kaltenbach [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 21, 2001 12:05 PM
To: Tomcat Users List
Subject: Re: How come I can't remove  from
server.xml?


when I delete the whole service tag from the server.xml only the Tomcat
standalone service is started. I am using Tomcat 4.0.1 by the way


  

  

John Regan wrote:

> i am using 4.0 and want to remove this service from server xml but when i
> take it out tomcat will start up(opens command window deploys some files
> then gets hung).
> Does tomcat need this service, because i don't believe i need it?
>
> thank you in advance for any help!!  happy holidays!


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



Newbie: TOMCAT-LINUX

2001-12-21 Thread Fred Lankovic

Anybody works with tomcat on a linux system, i would
like to know if there a module like the apache
mod_dir.c. I wanna run servlets like a user not like a
root, thanks for help!!

Fred

_
Do You Yahoo!?
¿Quieres armar tu própia página Web pero no sabes HTML?
Usa los asistentes de edición de Yahoo! Geocities
y tendrás un sitio en sólo unos minutos.
Visítanos en http://espanol.geocities.yahoo.com

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Returning a Resultset from an Oracle Stored Procedure

2001-12-21 Thread Timlin, Bob

Never Mind, my last post.  The Oracle Web-site you provided gave me the
answer I have been looking for for days!

Thank you very much!

Bob Timlin.

> -Original Message-
> From: Teemu Keiski [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, December 21, 2001 11:29 AM
> To:   Tomcat Users List
> Subject:  VS: Returning a Resultset from an Oracle Stored Procedure
> 
> You can do it using Oracle's REF cursor in packages(if you have Oracle 8i
> or
> newer). Idea is to create package, define ref cursor and define the
> procedure to use that ref cursor (in the package). Then you call
> package.procedurename(parameters) with JDBC and so on.
> 
> The best documentation you can found is at Oracle web site(or with your
> Oracle installation(Oracle8i JDBC Developer's Guide and Reference)). But
> you
> have to register yourself to the Oracle's Technology network to be able to
> view the docs online at Oracle.
> 
> Here is link to the Oracle8i JDBC Developer's Guide and Reference at
> Oracle's site:
> http://otn.oracle.com/doc/java.815/a64685/toc.htm
> 
> Teemu Keiski
> Application analyst, programmer
> Mansoft tietotekniikka Oy
> Finland
> 
> -Alkuperainen viesti-
> Lahettaja: Timlin, Bob [mailto:[EMAIL PROTECTED]]
> Lahetetty: 21. joulukuuta 2001 21:08
> Vastaanottaja: '[EMAIL PROTECTED]'
> Aihe: Returning a Resultset from an Oracle Stored Procedure
> 
> 
> Can anyone give me a reference to where I can get some detail information
> on
> returning a resultset from an Oracle Stored Procedure to a JSP program?  I
> have found many samples of how to do this on the JSP side, but no
> information on how to write a Oracle Stored Procedure that returns a
> Resultset.
> 
> Thanks!
> 
> Bob Timlin
> Senior Software Engineer
> C.P.M.C Information Technology
> 415-600-7005
> [EMAIL PROTECTED]
> 
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Returning a Resultset from an Oracle Stored Procedure

2001-12-21 Thread John Schroeder

The stored procedure (or function) needs to return a REF_CURSOR.

Here's an example (very contrived) of the Java code:

Connection conn = getConnection(); // get connection from somewhere ( a pool
maybe ).
Callable statement = conn.prepareCall("{? = call someProc }");
statement.registerOutParameter(1);
statement.execute();
ResultSet rs = statement.getObject(1,OracleTypes.CURSOR);



Hope this helps!

--John




-Original Message-
From: Timlin, Bob [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 21, 2001 11:08 AM
To: '[EMAIL PROTECTED]'
Subject: Returning a Resultset from an Oracle Stored Procedure


Can anyone give me a reference to where I can get some detail information on
returning a resultset from an Oracle Stored Procedure to a JSP program?  I
have found many samples of how to do this on the JSP side, but no
information on how to write a Oracle Stored Procedure that returns a
Resultset.

Thanks!

Bob Timlin
Senior Software Engineer
C.P.M.C Information Technology
415-600-7005
[EMAIL PROTECTED]



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Returning a Resultset from an Oracle Stored Procedure

2001-12-21 Thread Timlin, Bob

Does the REF Cursor get declared in the parameter list as an OUT parameter
or in the Declaration sections as a variable?
Thanks,
Bob Timlin.

> -Original Message-
> From: Teemu Keiski [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, December 21, 2001 11:29 AM
> To:   Tomcat Users List
> Subject:  VS: Returning a Resultset from an Oracle Stored Procedure
> 
> You can do it using Oracle's REF cursor in packages(if you have Oracle 8i
> or
> newer). Idea is to create package, define ref cursor and define the
> procedure to use that ref cursor (in the package). Then you call
> package.procedurename(parameters) with JDBC and so on.
> 
> The best documentation you can found is at Oracle web site(or with your
> Oracle installation(Oracle8i JDBC Developer's Guide and Reference)). But
> you
> have to register yourself to the Oracle's Technology network to be able to
> view the docs online at Oracle.
> 
> Here is link to the Oracle8i JDBC Developer's Guide and Reference at
> Oracle's site:
> http://otn.oracle.com/doc/java.815/a64685/toc.htm
> 
> Teemu Keiski
> Application analyst, programmer
> Mansoft tietotekniikka Oy
> Finland
> 
> -Alkuperainen viesti-
> Lahettaja: Timlin, Bob [mailto:[EMAIL PROTECTED]]
> Lahetetty: 21. joulukuuta 2001 21:08
> Vastaanottaja: '[EMAIL PROTECTED]'
> Aihe: Returning a Resultset from an Oracle Stored Procedure
> 
> 
> Can anyone give me a reference to where I can get some detail information
> on
> returning a resultset from an Oracle Stored Procedure to a JSP program?  I
> have found many samples of how to do this on the JSP side, but no
> information on how to write a Oracle Stored Procedure that returns a
> Resultset.
> 
> Thanks!
> 
> Bob Timlin
> Senior Software Engineer
> C.P.M.C Information Technology
> 415-600-7005
> [EMAIL PROTECTED]
> 
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Load Balance problem

2001-12-21 Thread Jerry Chen

Hi , Folks

I've some question about the mod_jk load balance . I'hv 3 linux box right
now , the 1st is running apache 1.3.12 , others are running tomcat 3.2.1, I
try to config the tomcat load balance with those 2 tomcat box . But I found
all the request from the apache box is redirect to the first tomcat box that
I define in the works.properties(tomcat1) , if I just shutdown that tomcat
box , I got error 500 Internal Server error from Apache .
That seems the load balance doesn't work , please help me
Thanks alot

This is part of my httpd.conf
=
LoadModule jk_module libexec/mod_jk.so
JkWorkersFile /etc/httpd/conf/workers.properties
JkLogFile /var/log/httpd/mod_jk.log
JkLogLevel error
JkMount /*.jsp loadbalancer
==
 This is my works.properties

# The workers that your plugins should create and work with
#
worker.list=loadbalancer

#
#-- DEFAULT ajp12 WORKER DEFINITION --
#-

#-- DEFAULT ajp13 WORKER DEFINITION --
#-
#

#
# Defining a worker named ajp13 and of type ajp13
# Note that the name and the type do not have to match.
#
worker.tomcat1.port=8009
worker.tomcat1.host=tomsrv1
worker.tomcat1.type=ajp13
worker.tomcat1.lbfactor=1
worker.tomcat1.cachesize=10

worker.tomcat2.prot=8009
worker.tomcat2.host=tomsrv2
worker.tomcat2.type=ajp13
worker.tomcat2.lbfactor=1
worker.tomcat2.cachesize=10

#
#-- DEFAULT LOAD BALANCER WORKER DEFINITION --
#-
#

#
# The loadbalancer (type lb) workers perform wighted round-robin
# load balancing with sticky sessions.
# Note:
#  > If a worker dies, the load balancer will check its state
#  once in a while. Until then all work is redirected to peer
#  workers.
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=tomcat1, tomcat2


#



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Returning a Resultset from an Oracle Stored Procedure

2001-12-21 Thread Robert Dunlop

I believe I found information on returning result sets from procedures in
Oracle on Oracle's site - check their FAQ.  The problem in earlier versions
was true regardless of language accessing the db.  I believe the posted
workaround was a VB program - basically it loaded the resultset into an
array - very ugly.  It's been a long time since I worked with Oracle or I'd
be more specific.  I do remember your frustration.


- Original Message -
From: "Timlin, Bob" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Friday, December 21, 2001 11:24 AM
Subject: RE: Returning a Resultset from an Oracle Stored Procedure


> I am using Oracle8i and am not sure where the Oracle documentation is.  I
> have several advanced Oracle books and none of them discuss it.  Very
> frustrating!  How about doing the same thing, but from an Oracle Stored
> Procedure to a Visual Basic program?
>
> > -Original Message-
> > From: Robert Dunlop [SMTP:[EMAIL PROTECTED]]
> > Sent: Friday, December 21, 2001 11:25 AM
> > To: Tomcat Users List
> > Subject: Re: Returning a Resultset from an Oracle Stored Procedure
> >
> > > Can anyone give me a reference to where I can get some detail
> > information
> > on
> > > returning a resultset from an Oracle Stored Procedure to a JSP
program?
> > I
> > > have found many samples of how to do this on the JSP side, but no
> > > information on how to write a Oracle Stored Procedure that returns a
> > > Resultset.
> >
> >
> >
> > Bob,
> >
> > You need to go to your Oracle documentation on this.  And, depending
> > on
> > the version of Oracle this may be a problem.  I don't think Oracle in
> > versions prior to 8x supported returning result sets from stored procs.
I
> > know I've found some ugly work arounds when trying to do the same from
C++
> > apps via ODBC.
> >
> > Bob
> >
> >
> >
> >
> > --
> > To unsubscribe:   
> > For additional commands: 
> > Troubles with the list: 
> >
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




VS: Returning a Resultset from an Oracle Stored Procedure

2001-12-21 Thread Teemu Keiski

You can do it using Oracle's REF cursor in packages(if you have Oracle 8i or
newer). Idea is to create package, define ref cursor and define the
procedure to use that ref cursor (in the package). Then you call
package.procedurename(parameters) with JDBC and so on.

The best documentation you can found is at Oracle web site(or with your
Oracle installation(Oracle8i JDBC Developer's Guide and Reference)). But you
have to register yourself to the Oracle's Technology network to be able to
view the docs online at Oracle.

Here is link to the Oracle8i JDBC Developer's Guide and Reference at
Oracle's site:
http://otn.oracle.com/doc/java.815/a64685/toc.htm

Teemu Keiski
Application analyst, programmer
Mansoft tietotekniikka Oy
Finland

-Alkuperainen viesti-
Lahettaja: Timlin, Bob [mailto:[EMAIL PROTECTED]]
Lahetetty: 21. joulukuuta 2001 21:08
Vastaanottaja: '[EMAIL PROTECTED]'
Aihe: Returning a Resultset from an Oracle Stored Procedure


Can anyone give me a reference to where I can get some detail information on
returning a resultset from an Oracle Stored Procedure to a JSP program?  I
have found many samples of how to do this on the JSP side, but no
information on how to write a Oracle Stored Procedure that returns a
Resultset.

Thanks!

Bob Timlin
Senior Software Engineer
C.P.M.C Information Technology
415-600-7005
[EMAIL PROTECTED]



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Returning a Resultset from an Oracle Stored Procedure

2001-12-21 Thread Timlin, Bob

I am using Oracle8i and am not sure where the Oracle documentation is.  I
have several advanced Oracle books and none of them discuss it.  Very
frustrating!  How about doing the same thing, but from an Oracle Stored
Procedure to a Visual Basic program?

> -Original Message-
> From: Robert Dunlop [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, December 21, 2001 11:25 AM
> To:   Tomcat Users List
> Subject:  Re: Returning a Resultset from an Oracle Stored Procedure
> 
> > Can anyone give me a reference to where I can get some detail
> information
> on
> > returning a resultset from an Oracle Stored Procedure to a JSP program?
> I
> > have found many samples of how to do this on the JSP side, but no
> > information on how to write a Oracle Stored Procedure that returns a
> > Resultset.
> 
> 
> 
> Bob,
> 
> You need to go to your Oracle documentation on this.  And, depending
> on
> the version of Oracle this may be a problem.  I don't think Oracle in
> versions prior to 8x supported returning result sets from stored procs.  I
> know I've found some ugly work arounds when trying to do the same from C++
> apps via ODBC.
> 
> Bob
> 
> 
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Code request; Code to reveal a DB schema

2001-12-21 Thread August Detlefsen

What DB are you using? 

For Oracle, anyway: 

SELECT table_name FROM all_tables;
SELECT trigger_name FROM all_triggers;
SELECT view_name FROM all_views;
...

-Will give you the lists of all tables, triggers, and views
respectively in your DB. 

For the structure of each table, use:

DESC 

or 

SELECT column_name, data_type 
FROM user_tab_columns
WHERE table_name = '';

You can also use DESC on the all_whatever views to see what other
columns are available for each one. 




--- Mike Kelley <[EMAIL PROTECTED]> wrote:
> I'm looking for some dynamic code that will reveal all libraries,
> files,
> fields in a DB Does anyone have an example or can you point me in the
> right
> direction?
> 
> 
> I know I stumbled across something when installing TC but I can't
> find it
> now 
> 
> TIA 
> 
> Mike
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 


__
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Returning a Resultset from an Oracle Stored Procedure

2001-12-21 Thread Robert Dunlop

> Can anyone give me a reference to where I can get some detail information
on
> returning a resultset from an Oracle Stored Procedure to a JSP program?  I
> have found many samples of how to do this on the JSP side, but no
> information on how to write a Oracle Stored Procedure that returns a
> Resultset.



Bob,

You need to go to your Oracle documentation on this.  And, depending on
the version of Oracle this may be a problem.  I don't think Oracle in
versions prior to 8x supported returning result sets from stored procs.  I
know I've found some ugly work arounds when trying to do the same from C++
apps via ODBC.

Bob




--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Returning a Resultset from an Oracle Stored Procedure

2001-12-21 Thread Timlin, Bob

Can anyone give me a reference to where I can get some detail information on
returning a resultset from an Oracle Stored Procedure to a JSP program?  I
have found many samples of how to do this on the JSP side, but no
information on how to write a Oracle Stored Procedure that returns a
Resultset.

Thanks!

Bob Timlin
Senior Software Engineer
C.P.M.C Information Technology
415-600-7005
[EMAIL PROTECTED]



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: How come I can't remove from server.xml?

2001-12-21 Thread Dieter Kaltenbach

when I delete the whole service tag from the server.xml only the Tomcat
standalone service is started. I am using Tomcat 4.0.1 by the way


  

  

John Regan wrote:

> i am using 4.0 and want to remove this service from server xml but when i
> take it out tomcat will start up(opens command window deploys some files
> then gets hung).
> Does tomcat need this service, because i don't believe i need it?
>
> thank you in advance for any help!!  happy holidays!


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: How to write a filter in Tomcat 4

2001-12-21 Thread Craig R. McClanahan



On Fri, 21 Dec 2001, Donie Kelly wrote:

> Date: Fri, 21 Dec 2001 15:16:34 -
> From: Donie Kelly <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: 'Tomcat Users List' <[EMAIL PROTECTED]>
> Subject: How to write a filter in Tomcat 4
>
> Hi all
>
> Can anybody give me a template for a filer which reads and writes to/from
> the servlet being filtered.
>
> I'm having a problem where reads are being blocked. Must be something to do
> with content length, I'm not sure.
>

There's a Filter example included with the Tomcat 4 distribution that
might give you some hints - it does on-the-fly GZIP compression if your
browser tells the server that it supports this, and passes the request on
unmodified otherwise.

Source code is in the "webapps/examples/WEB-INF/classes/compressionFilters"
directory in the Tomcat binary distribution.  It's not enabled by default,
but you can uncomment the appropriate stuff in web.xml to play with it.

> Basically, it's the last day before Christmas and it doesn't work so if
> somebody has some working filter example It'd make my Christmas and allow me
> to get outta here tonight
>
> Thanks very much
> Donie
>

Craig


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




How come I can't remove from server.xml?

2001-12-21 Thread John Regan

i am using 4.0 and want to remove this service from server xml but when i
take it out tomcat will start up(opens command window deploys some files
then gets hung).
Does tomcat need this service, because i don't believe i need it?

thank you in advance for any help!!  happy holidays!



Re: How to rebuild Catalina ?

2001-12-21 Thread Craig R. McClanahan



On Fri, 21 Dec 2001, Diego Novati wrote:

> Date: Fri, 21 Dec 2001 18:51:31 +0100
> From: Diego Novati <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: How to rebuild Catalina ?
>
> Hi,
> building Catalina I get the following error:
>
> "NamingService.java": Error #: 302 : cannot access class
> javax.management.NotificationBroadcasterSupport; neither class nor source
> found for javax.management.NotificationBroadcasterSupport at line 67, column
> 25
>
> What Jakarta component do I have to download ?
>

Looks like we need to tweak the conditional-compile stuff in the Tomcat
build script ...

The "javax.management.*" APIs are in the Java Management Extensions (JMX)
reference implementation from Sun.  There's a pointer in the
"BUILDING.txt" file (in the top-level directory) on where to get it.

In the mean time, I'm going to fix the build scripts to not compile
NamingService if you don't have JMX installed.

> Thanks
>
> Diego
>

Craig


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: [Tomcat 3.3] Strange behaviour w/ mixed POST/GET request (NOT solved)

2001-12-21 Thread Vincent Massol

I have spoken a bit too fast ... :-(

It worked 3 times in a row and then started failing again, same as
before. It failed even after removing all connection.disconnect() and
all close on streams related to the connection but the failure rate
seems to be lower ...

I've just run the tests 10 times and the result is :
Ok, ok, nok, ok, ok, ok, nok, nok, nok, nok

I've tried to write a sample test case to reproduce it but cannot (in
other words, it works all the time with the simple test case).

I'm a bit stuck and don't know what to do now ... Any idea ?
Thanks
-Vincent

> -Original Message-
> From: Vincent Massol [mailto:[EMAIL PROTECTED]]
> Sent: 21 December 2001 17:27
> To: 'Tomcat Users List'
> Subject: RE: [Tomcat 3.3] Strange behaviour w/ mixed POST/GET request
> (solved)
> 
> I have found the reason ... My code was the equivalent of :
> 
> URL url = new
URL("http://localhost:8080/examples/snoop?param1=value1";);
> HttpURLConnection connection =
(HttpURLConnection)url.openConnection();
> connection.setDoInput(true);
> connection.setDoOutput(true);
> connection.setUseCaches(false);
> connection.setRequestProperty("Content-type",
> "application/x-www-form-urlencoded");
> 
> PrintWriter out = new PrintWriter(connection.getOutputStream());
> out.print("param2=value2");
> out.close();
> connection.connect();
> connection.getInputStream().close();
> 
> And this throws an error. The problem is with the last line which
works
> fine with all other servlet engines but not Tomcat 3.3. If I change it
> to :
> 
> connection.disconnect();
> 
> it now works fine. This probably means that when the connection is
> closed it tries to close the underlying input stream and does not
verify
> if it is already closed (or something like this).
> 
> Thanks and sorry for the trouble.
> -Vincent
> 
> > -Original Message-
> > From: Vincent Massol [mailto:[EMAIL PROTECTED]]
> > Sent: 21 December 2001 16:15
> > To: 'Tomcat Users List'
> > Cc: 'Larry Isaacs'
> > Subject: RE: [Tomcat 3.3] Strange behaviour w/ mixed POST/GET
request
> >
> >
> >
> > > -Original Message-
> > > From: ian silvester [mailto:[EMAIL PROTECTED]]
> > > Sent: 21 December 2001 15:18
> > > To: Tomcat Users List
> > > Subject: Re: [Tomcat 3.3] Strange behaviour w/ mixed POST/GET
> request
> > >
> > > Hmm.
> > >
> > > The fact that you only get this behaviour in 3.3 suggests very
> > strongly a
> > > problem in that release. Is there any reason why you can't use a
> > different
> > > release and avoid the error?
> > >
> >
> > Because in the framework I am working on (Jakarta Cactus), I need to
> > support all servlet engines (including Tomcat 3.3) :-)
> >
> > > That aside, I have seen this error under different circumstances -
> > doing a
> > > response.sendredirect in a JSP _after_ having already output HTML
to
> > the
> > > browser. For this to error is fair enough - its supposedly outside
> the
> > > HTTP
> > > spec. to send redirects after having started outputting HTML (in
> ASP,
> > MS
> > > being the hand-holders that they are, attempting to do this throws
a
> > > runtime
> > > error so as to avoid unexpected behaviour).
> > >
> > > Could your code be construed as doing something similar? If yes,
> then
> > you
> > > cannot guarantee that it will work on all combintaions of browser
> and
> > > server.
> > >
> >
> > There is no sendredirect in my code but I may be doing something not
> in
> > the spec ... As suggested by Larry Isaacs, I'm going to open a bug
in
> > bugzilla with details on the test case. However, it is going to take
> > some time as I need to extract the relevant portion from the code. I
> > hoped someone was going to say something like : "yes, we know, we
have
> > an issue when you're sending parameter in the URL at the same time
as
> in
> > the request body" ... :-)
> >
> > In the meantime (before I finish extracting the code), some more
> > information on the code logic (client side) :
> >
> > 1/ open an http connection to Tomcat 3.3 using HttpURLConnection and
> > read all returned data (with attached AutoReadHttpURLConnection
class)
> :
> >
> >   HttpURLConnection connection = helper.connect(theRequest);
> >   connection = new AutoReadHttpURLConnection(connection);
> >   // Trigger the transfer of data
> >   connection.getInputStream();
> >
> > On the server side, some code is executed and a result is set in the
> > application context.
> >
> > 2/ open a second connection to the server using HttpURLConnection
and
> > get the test result (sent back as an ObjectOutputStream)
> >
> > Repeat 1/ and 2/ for all the requests I mentioned in my previous
mail
> > (the mixed POST/GET one and the other GET ones).
> >
> > Thanks
> > -Vincent
> >
> > > ian
> > >
> > > - Original Message -
> > > From: "Vincent Massol" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Friday, December 21, 2001 2:44 PM
> > > Subject: [Tomcat 3.3] Strange behaviour w/ mixed POST/GET request
> > >
> > >
> > > > I have a strange 

Re: How to rebuild Catalina ?

2001-12-21 Thread Tom Drake

You are missing jmx.

Read BUILDING.txt. It tells you what you need and where
to get it. You may have to grab some of the 'optional' libraries
as well.

Tom Drake

- Original Message -
From: "Diego Novati" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, December 21, 2001 9:51 AM
Subject: How to rebuild Catalina ?


| Hi,
| building Catalina I get the following error:
|
| "NamingService.java": Error #: 302 : cannot access class
| javax.management.NotificationBroadcasterSupport; neither class nor source
| found for javax.management.NotificationBroadcasterSupport at line 67,
column
| 25
|
| What Jakarta component do I have to download ?
|
| Thanks
|
| Diego
|
|
| --
| To unsubscribe:   
| For additional commands: 
| Troubles with the list: 
|
|
|


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: JSSE 1.0.2

2001-12-21 Thread Renato

You need to include the security provider in your java.security file:

security.provider.3=com.sun.net.ssl.internal.ssl.Provider

Also, are you running tomcat with a security manager ? if so, make sure you 
have jre\lib\ext with permissions.

Renato - Brazil

On Fri, 21 Dec 2001 17:16:49 +, Duncan Smith <[EMAIL PROTECTED]> 
escreveu :

> Hello.
> I've just downloaded JSSE 1.0.2 and put the three .jar files in
> jre\lib\ext directory.
> 
> I've uncommented the example SSl connector in server.xml, but when I
> restart, I get this error in the stdout.log:
> 
> Exception during startup processing
> java.lang.reflect.InvocationTargetException:
> java.lang.NoClassDefFoundError: javax/net/ServerSocketFactory
> 
> Can anybody help?
> 
> Many thanks in advance, Duncan.
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 
> 
> 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: What does it mean - "Name on certificate does not match nameof the site"

2001-12-21 Thread Hunter Hillegas

I would put the complete machine name here.

That is what Thawte asks you to do when you get a cert from them.

> From: "Richard S. Huntrods" <[EMAIL PROTECTED]>
> Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Date: Fri, 21 Dec 2001 10:55:15 -0700
> To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> Subject: What does it mean - "Name on certificate does not match name of the
> site"
> 
> Your name (I assume that's my personal name)


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: What does it mean - "Name on certificate does not match name of the site"

2001-12-21 Thread Pae Choi

It usually means that the name, e.g., Common Name, in your
certificate and the name of your server, e.g., http server,
where the certificate originated from don't match.

How did you created the certificate? Ex, openssl?

Hope this helps,


Pae



- Original Message -
From: "Richard S. Huntrods" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, December 21, 2001 9:55 AM
Subject: What does it mean - "Name on certificate does not match name of the
site"


> Greetings!
>
> Last post for a while - I promise! 
>
> What does it mean - "Name on certificate does not match name of the
> site"?
>
>  I did the "self-signed" certificate thing for SSL.  There are three
> messages that appear on the pop-up dialog when you access the secure
> site.  The first says "The certificate ... non-trusted company" (in
> essence). It is a warning.  The second message says "... date is valid".
> It is "OK".  The third warning is the one above.
>
> I know and expect the first warning - unless someone like Verisign
> "signs" the certificate, it is considered untrusted.  Self-signed
> certificates will always give this warning.  No problem.
>
> However, when you create a self-signed cert, I cannot find a place to
> put the site - so I cannot see how this third warning can be prevented.
> The questions are:
> Your name (I assume that's my personal name)
> Your company org unit (what the heck is this?  I put my domain name
> here)
> Your company (obvious)
> Your city (obvious)
> Your province/state (obvious)
> Your country code (two letters)
>
> Besides the passwords, I cannot see what would signify "site" to the
> certificate.
>
> Assistance?  Feel free to point me to something on Sun or Verisign's
> site.  I didn't find anything on a cursory look-over, but I'd be glad to
> know of an "M" to "RTF".
>
> Cheers, and thanks  in advance.
>
> -Richard
>
>
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: What does it mean - "Name on certificate does not match name of the site"

2001-12-21 Thread Guido Medina

put the qualified name of your machine: yourmachine.yourdomain.com, if you
are only trying with localhost put localhost

-Original Message-
From: Richard S. Huntrods [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 21, 2001 1:55 PM
To: [EMAIL PROTECTED]
Subject: What does it mean - "Name on certificate does not match name of
the site"


Greetings!

Last post for a while - I promise! 

What does it mean - "Name on certificate does not match name of the
site"?

 I did the "self-signed" certificate thing for SSL.  There are three
messages that appear on the pop-up dialog when you access the secure
site.  The first says "The certificate ... non-trusted company" (in
essence). It is a warning.  The second message says "... date is valid".
It is "OK".  The third warning is the one above.

I know and expect the first warning - unless someone like Verisign
"signs" the certificate, it is considered untrusted.  Self-signed
certificates will always give this warning.  No problem.

However, when you create a self-signed cert, I cannot find a place to
put the site - so I cannot see how this third warning can be prevented.
The questions are:
Your name (I assume that's my personal name)
Your company org unit (what the heck is this?  I put my domain name
here)
Your company (obvious)
Your city (obvious)
Your province/state (obvious)
Your country code (two letters)

Besides the passwords, I cannot see what would signify "site" to the
certificate.

Assistance?  Feel free to point me to something on Sun or Verisign's
site.  I didn't find anything on a cursory look-over, but I'd be glad to
know of an "M" to "RTF".

Cheers, and thanks  in advance.

-Richard




--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



What does it mean - "Name on certificate does not match name of the site"

2001-12-21 Thread Richard S. Huntrods

Greetings!

Last post for a while - I promise! 

What does it mean - "Name on certificate does not match name of the
site"?

 I did the "self-signed" certificate thing for SSL.  There are three
messages that appear on the pop-up dialog when you access the secure
site.  The first says "The certificate ... non-trusted company" (in
essence). It is a warning.  The second message says "... date is valid".
It is "OK".  The third warning is the one above.

I know and expect the first warning - unless someone like Verisign
"signs" the certificate, it is considered untrusted.  Self-signed
certificates will always give this warning.  No problem.

However, when you create a self-signed cert, I cannot find a place to
put the site - so I cannot see how this third warning can be prevented.
The questions are:
Your name (I assume that's my personal name)
Your company org unit (what the heck is this?  I put my domain name
here)
Your company (obvious)
Your city (obvious)
Your province/state (obvious)
Your country code (two letters)

Besides the passwords, I cannot see what would signify "site" to the
certificate.

Assistance?  Feel free to point me to something on Sun or Verisign's
site.  I didn't find anything on a cursory look-over, but I'd be glad to
know of an "M" to "RTF".

Cheers, and thanks  in advance.

-Richard




--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




How to rebuild Catalina ?

2001-12-21 Thread Diego Novati

Hi,
building Catalina I get the following error:

"NamingService.java": Error #: 302 : cannot access class
javax.management.NotificationBroadcasterSupport; neither class nor source
found for javax.management.NotificationBroadcasterSupport at line 67, column
25

What Jakarta component do I have to download ?

Thanks

Diego


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Question with request dispatchers?

2001-12-21 Thread Sarb Singh

I am trying Tomcat 4.

- Original Message -
From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, December 21, 2001 11:37 AM
Subject: Re: Question with request dispatchers?


>
>
> On Fri, 21 Dec 2001, Sarb Singh wrote:
>
> > Date: Fri, 21 Dec 2001 11:20:48 -0600
> > From: Sarb Singh <[EMAIL PROTECTED]>
> > Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> > To: Tomcat Users List <[EMAIL PROTECTED]>
> > Subject: Question with request dispatchers?
> >
> > Hello I have the following question about resquest dispatcher .include
> > /forward  methods.
> >
> > I have  a servlets (lets call it S)  that uses the dispatcher to forward
the
> > requequest to a JSP (lets call it (J)). This has Jsp uses a tag library
> > (lets calle it T) that uses the dispatcher to inlcude another JSP page
> > (lests call it J2).
> >
> > When you use the the dispatch include, when i set request attrribute in
the
> > included JSP2 file, these valued disappera when the control goes back to
the
> > JSP1 file.
> >
> > Can attributes be set to the request object from the included page that
will
> > be visible to the including page, or is the request of the included page
a
> > new indipendent request.
> >
> > Here is a summary of what I said.
> >
> > S--forwards--> J - has T  includes--> J2.
> >
> > If I set attributes in the request object from J2, will i be able to see
> > those attribute values from J or T?
> >
>
> Which version of Tomcat are you using?  You are correct in assuming that
> this should work, and it does in Tomcat 4.
>
> Craig
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Lessons Learned...

2001-12-21 Thread Richard S. Huntrods

Greetings!

Having just come through a steep learning curve, I thought I'd compress
the lessons learned for the benefit of all:

Problem:
Tomcat 4.0 ran on W2K, but 4.0.1 would not
Solution:
New classloader didn't like different versions of "servlet.jar" in
JAVA_HOMEjre/lib/ext and CATALINA_HOME/common/lib
Put the same servlet.jar (use the TC4.0.1 version) in both places, and
all works.

Problem:
TC 4.0.1 ran SSL easily on W2K, but same stuff would not run on Solaris
8
Solution:
Solaris 8 comes with Java SDK 1.2 as default.  Obtain and install SDK
1.3 and
everything works properly.
NOTE: be sure to put the JSSE jar files (3 of them) in the
JAVA_HOME/jre/lib/ext directory (this is one of the two suggested
installation choices).  I found that the variable JSSE_HOME did not
work.  The JSSE jars should NOT be placed anywhere in Tomcat.

Problem:
Two servers - one Apache only, one Tomcat only. (BTW, this is my
recommendation for anyone with significant "stuff" in both web and
servlets/jsp. Divides the load on a very smart boundary, and avoids all
those "why won't Apache forward stuff to Tomcat" type problems.) Could
not get https to properly find my Tomcat server.
Solution:
First, Apache is listening on port 80.  Good.  Make Tomcat listen to
port 443, as this is the standard SSL (https) port.  Avoids client
firewall problems as well (we did have a problem with one client's site
and port 8080 - their firewall blocked it).
Second, make SURE your hardware (routers) and O/S (servers) are all
working properly.  If they aren't, no amount of "Tomcat fiddling" will
solve the underlying problem.  In my case, the "defaultrouter" file in
Solaris was pointing to the wrong router for the current configuration.
Fixed defaultrouter, and HTTPS worked immediately.

Next email - my last (current) problem!

Cheers,

-Richard



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Path not found

2001-12-21 Thread Craig R. McClanahan



On Fri, 21 Dec 2001, Praveen Potineni wrote:

> Date: Fri, 21 Dec 2001 11:33:45 -0500
> From: Praveen Potineni <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: Re: Path not found
>
> I think i am missing some files in my new installation of tomcat 4.0.1 coz
> in the version 4.0 there was servlet.jar in common\lib.
>
> There is no common folder under jakarta-tomcat-4.0.1.
>
> I think similarly some more files like xeres.jar also is missing. What are
> all the files required to successfully run aa JSP application in tomcat.
>

If you loaded from the RPM distribution of Tomcat, you should be aware
that it is organized totally differently, so you'll have to consult the
documentation that came with it to understand where the files are (and
what prerequisites you are assumed to have loaded separately).

IMHO it is far more straightforward to download and install the .zip or
.tar.gz version, which has everything you need (except a JDK and the JSSE
encryption classes for using SSL) all in one download.

(Note also that a hopefully-final beta of Tomcat 4.0.2 with a bunch of bug
fixes was just posted on the Jakarta web site last night.)

> Thanks in advance
> Praveen
>

Craig


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Newbie: set java arguments

2001-12-21 Thread Craig R. McClanahan



On Fri, 21 Dec 2001, Brown Bay wrote:

> Date: Fri, 21 Dec 2001 10:30:21 -0600
> From: Brown Bay <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: Newbie: set java arguments
>
> I want to add to my java command line arguments
> ***-Dorg.omg.CORBA.ORBClass=javaORB.CORBA.ORBSingleton -Dorg.omg.CORBA.ORBSi
> ngletonClass=JavaORB.CORBA.ORBSingleton***
>
> In the shortcut to startup tomcat we see
> ***"C:\Program
> Files\JavaSoft\JRE\1.3.0_01\bin\java.exe" -jar -Duser.dir="C:\Program
> Files\Apache Tomcat 4.0" "C:\Program Files\Apache Tomcat
> 4.0\bin\bootstrap.jar" start***
>
> When i try to put the -Dorg.omg  to this startup the buffer in the
> shortcut does not take these many characters. Is there any other way that I
> can add the 1st set of arguments to the startup parameters for tomcat.
>
> Please let me know.
>

The standard way to pass arguments like this to the JVM is to set the
CATALINA_OPTS environment variable (this is for Tomcat 4.x -- in Tomcat
3.x it was called TOMCAT_OPTS) before starting Tomcat.

You should be aware, however, that Windows has limits on the overall
length of the command line (and the limit seems to vary depending on which
version of Windows you're talking about -- you'd think that they would
reuse the COMMAND.COM code :-).  About the only thing you can do, short of
switching operating systems, is install Tomcat in a directory with a
shorter path.

> Thanks.
>
> Brown Bay.
>

Craig


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Question with request dispatchers?

2001-12-21 Thread Craig R. McClanahan



On Fri, 21 Dec 2001, Sarb Singh wrote:

> Date: Fri, 21 Dec 2001 11:20:48 -0600
> From: Sarb Singh <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: Question with request dispatchers?
>
> Hello I have the following question about resquest dispatcher .include
> /forward  methods.
>
> I have  a servlets (lets call it S)  that uses the dispatcher to forward the
> requequest to a JSP (lets call it (J)). This has Jsp uses a tag library
> (lets calle it T) that uses the dispatcher to inlcude another JSP page
> (lests call it J2).
>
> When you use the the dispatch include, when i set request attrribute in the
> included JSP2 file, these valued disappera when the control goes back to the
> JSP1 file.
>
> Can attributes be set to the request object from the included page that will
> be visible to the including page, or is the request of the included page a
> new indipendent request.
>
> Here is a summary of what I said.
>
> S--forwards--> J - has T  includes--> J2.
>
> If I set attributes in the request object from J2, will i be able to see
> those attribute values from J or T?
>

Which version of Tomcat are you using?  You are correct in assuming that
this should work, and it does in Tomcat 4.

Craig


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: HTTP and HTTPS on two servers...

2001-12-21 Thread Richard S. Huntrods

By the way - thank you to all who offered excellent advice.  As was
pointed out, it was a routing error - but more of a "hard routing" error
- that is, not in Tomcat, but in the way I had configured my routers and
servers.  Made it consistant (to reflect changes in where the servers
were located), and everything works.

Thanks again everyone!

-Richard



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: HTTP error 503.

2001-12-21 Thread Craig R. McClanahan



On Fri, 21 Dec 2001, Caroline Clewlow wrote:

> Date: Fri, 21 Dec 2001 14:51:54 -
> From: Caroline Clewlow <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: Re: HTTP error 503.
>
> Thanks.  I have tried removing the install and done everything again to no avail.
> I'll check the documentation again tho to ensure I have covered everything.
>

One very common cause of problems is having a copy of servlet.jar or
j2ee.jar in your Java system extensions directory
($JAVA_HOME/jre/lib/ext).  This will cause all sorts of problems.

> Apologies for the pleading but having posted a request twice previously with no 
>reponse I was beginning to get deperate.
> I shall endeavour not to use the mailing list inappropriately again.
>

The problem with messages that give only the HTTP status code is that
there are literally thousands of *possible* causes, and nobody can tell
from just what you've presented.  In order to get a useful response, it
would be helpful if you would post the stack trace that was included in
the response, and/or the relevant portions of the log files (in the
$CATALINA_HOME/logs directory) -- these exception messages will describe
what is really happening, and so indicate what needs to be fixed.

> Caroline
>

Craig


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Newbie: initialize ORBSingleton

2001-12-21 Thread Pae Choi

I am not certain, but it seems to me a kinda of exception that
servlet can't get to the target reference object, e.g., not in the
CLASSPATH, or by simliar causes.

Otherwise, I have to pass this to other folks.

Cheers,


Pae


- Original Message -
From: "Brown Bay" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, December 21, 2001 9:00 AM
Subject: Re: Newbie: initialize ORBSingleton


> > Brown -
> >
> > Couldn't you use a batch file unless it's out of option.
> Pae.
>
> Yea, I used a batch file instead, but now I am getting a
> ***java.lang.Exception: Servlet get corba object:org.omg.CORBA.INITIALIZE:
> can't instantiate default ORB implementation javaORB.CORBA.ORBSingleton
> minor code: 0  completed: No***
>
> Any ideas what this is.
>
> Brown.
>
>
> >
> >
> > /Pae
> >
> >
> > > I want to add to my java command line arguments
> > >
> >
>
***-Dorg.omg.CORBA.ORBClass=javaORB.CORBA.ORBSingleton -Dorg.omg.CORBA.ORBSi
> > > ngletonClass=JavaORB.CORBA.ORBSingleton***
> > >
> > > In the shortcut to startup tomcat we see
> > > ***"C:\Program
> > > Files\JavaSoft\JRE\1.3.0_01\bin\java.exe" -jar -Duser.dir="C:\Program
> > > Files\Apache Tomcat 4.0" "C:\Program Files\Apache Tomcat
> > > 4.0\bin\bootstrap.jar" start***
> > >
> > > When i try to put the -Dorg.omg  to this startup the buffer in the
> > > shortcut does not take these many characters. Is there any other way
> that
> > I
> > > can add the 1st set of arguments to the startup parameters for tomcat.
> > >
> > > Please let me know.
> > >
> > > Thanks.
> > >
> > > Brown Bay.
> > >
> > >
> > >
> > > --
> > > To unsubscribe:   
> > > For additional commands: 
> > > Troubles with the list: 
> > >
> >
> >
> > --
> > To unsubscribe:   
> > For additional commands: 
> > Troubles with the list: 
> >
> >
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: servlet-mapping problem - tomcat 4.0.1

2001-12-21 Thread Craig R. McClanahan



On Fri, 21 Dec 2001, Scott Eade wrote:

> Date: Fri, 21 Dec 2001 23:53:42 +1100
> From: Scott Eade <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: servlet-mapping problem - tomcat 4.0.1
>
> How do I default a user to my servlet without blocking access
> to other directories?  Using a default mapping of "/" results in
> failure to gain access to resources under my servlet directory.
>

Understanding this requires a little explanation about what is really
going on.

* The servlet mapping pattern of "/" establishes the
  default servlet -- in other words, the servlet that
  Tomcat will hand the request to if it can find no other
  servlet mapping that matches.

* Tomcat, out of the box, defines a default servlet that
  serves the static resources (including your stylesheet).

* You can take over the default mapping yourself, but then
  you give up Tomcat's standard file-serving service and
  do it yourself if you still need that feature.

To give you suggestions, it would be helpful to understand what you mean
by "default a user to my servlet".  What application functionality are you
trying to accomplish?

Craig


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: [Tomcat 3.3] Strange behaviour w/ mixed POST/GET request (solved)

2001-12-21 Thread Vincent Massol

I have found the reason ... My code was the equivalent of :

URL url = new URL("http://localhost:8080/examples/snoop?param1=value1";);
HttpURLConnection connection = (HttpURLConnection)url.openConnection();
connection.setDoInput(true);
connection.setDoOutput(true);
connection.setUseCaches(false);
connection.setRequestProperty("Content-type",
"application/x-www-form-urlencoded");

PrintWriter out = new PrintWriter(connection.getOutputStream());
out.print("param2=value2");
out.close();
connection.connect();
connection.getInputStream().close();

And this throws an error. The problem is with the last line which works
fine with all other servlet engines but not Tomcat 3.3. If I change it
to :

connection.disconnect();

it now works fine. This probably means that when the connection is
closed it tries to close the underlying input stream and does not verify
if it is already closed (or something like this).

Thanks and sorry for the trouble.
-Vincent

> -Original Message-
> From: Vincent Massol [mailto:[EMAIL PROTECTED]]
> Sent: 21 December 2001 16:15
> To: 'Tomcat Users List'
> Cc: 'Larry Isaacs'
> Subject: RE: [Tomcat 3.3] Strange behaviour w/ mixed POST/GET request
> 
> 
> 
> > -Original Message-
> > From: ian silvester [mailto:[EMAIL PROTECTED]]
> > Sent: 21 December 2001 15:18
> > To: Tomcat Users List
> > Subject: Re: [Tomcat 3.3] Strange behaviour w/ mixed POST/GET
request
> >
> > Hmm.
> >
> > The fact that you only get this behaviour in 3.3 suggests very
> strongly a
> > problem in that release. Is there any reason why you can't use a
> different
> > release and avoid the error?
> >
> 
> Because in the framework I am working on (Jakarta Cactus), I need to
> support all servlet engines (including Tomcat 3.3) :-)
> 
> > That aside, I have seen this error under different circumstances -
> doing a
> > response.sendredirect in a JSP _after_ having already output HTML to
> the
> > browser. For this to error is fair enough - its supposedly outside
the
> > HTTP
> > spec. to send redirects after having started outputting HTML (in
ASP,
> MS
> > being the hand-holders that they are, attempting to do this throws a
> > runtime
> > error so as to avoid unexpected behaviour).
> >
> > Could your code be construed as doing something similar? If yes,
then
> you
> > cannot guarantee that it will work on all combintaions of browser
and
> > server.
> >
> 
> There is no sendredirect in my code but I may be doing something not
in
> the spec ... As suggested by Larry Isaacs, I'm going to open a bug in
> bugzilla with details on the test case. However, it is going to take
> some time as I need to extract the relevant portion from the code. I
> hoped someone was going to say something like : "yes, we know, we have
> an issue when you're sending parameter in the URL at the same time as
in
> the request body" ... :-)
> 
> In the meantime (before I finish extracting the code), some more
> information on the code logic (client side) :
> 
> 1/ open an http connection to Tomcat 3.3 using HttpURLConnection and
> read all returned data (with attached AutoReadHttpURLConnection class)
:
> 
>   HttpURLConnection connection = helper.connect(theRequest);
>   connection = new AutoReadHttpURLConnection(connection);
>   // Trigger the transfer of data
>   connection.getInputStream();
> 
> On the server side, some code is executed and a result is set in the
> application context.
> 
> 2/ open a second connection to the server using HttpURLConnection and
> get the test result (sent back as an ObjectOutputStream)
> 
> Repeat 1/ and 2/ for all the requests I mentioned in my previous mail
> (the mixed POST/GET one and the other GET ones).
> 
> Thanks
> -Vincent
> 
> > ian
> >
> > - Original Message -
> > From: "Vincent Massol" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Friday, December 21, 2001 2:44 PM
> > Subject: [Tomcat 3.3] Strange behaviour w/ mixed POST/GET request
> >
> >
> > > I have a strange behaviour in Tomcat 3.3 that does not happen
either
> in
> > > Tomcat 4.x or in Tomcat 3.2.x (or any other servlet engine for the
> > > matter : Orion, Resin, WebLogic). It looks like voodoo for me and
I
> have
> > > trouble understanding what's happening.
> > >
> > > I am sending several different HTTP requests (using
> HttpURLConnection)
> > > to the server and depending on the order I get or do not get an
> error.
> > > When I get the error, it is the typical :
> > >
> > > Connection aborted by peer: JVM_recv in socket input stream read
> > > java.net.SocketException: Connection aborted by peer: JVM_recv in
> socket
> > > inp
> > > ut stream read
> > >at java.net.SocketInputStream.socketRead(Native Method)
> > >
> > > I am doing one special request in which I send _both_ GET
parameters
> (in
> > > the URL) and parameters in the request body (POST method). The
other
> > > requests are only GET requests.
> > >
> > > If I call the mixed POST/GET request first, followed by the other
> GET
> > > requests then eve

Re: getting mod_webapps to work

2001-12-21 Thread Cavan Morris

I'm pretty sure that tomcat has to be up before apache for mod_webapp to work.

- Original Message - 
From: "Brian Adams" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Friday, December 21, 2001 7:58 AM
Subject: RE: getting mod_webapps to work


> actually you may want to start tomcat first then restart apache
> 
> -Original Message-
> From: Brian Adams [mailto:[EMAIL PROTECTED]]
> Sent: Friday, December 21, 2001 9:56 AM
> To: 'Tomcat Users List'
> Subject: RE: getting mod_webapps to work
> 
> 
> apachectl check
> 
> apachectl restart
> 
> $CATALINA_HOME/bin/catalina.sh run
> 
> 
> http://sol.lansa.co.uk/examples/jsp
> 
> should work if your tomcat examples are install and configured like so in
> httpd.conf 
>   WebAppDeploy   examples conn /example
> 
> 
> 
> 
> 
> -Original Message-
> From: Cressatti, Dominique [mailto:[EMAIL PROTECTED]]
> Sent: Friday, December 21, 2001 10:06 AM
> To: 'Tomcat Users List'
> Subject: RE: getting mod_webapps to work
> 
> 
> Cheers Brian,
> 
> How do test that it works?
> 
> Dom
> 
> -Original Message-
> From: Brian Adams [mailto:[EMAIL PROTECTED]]
> Sent: 21 December 2001 15:35
> To: 'Tomcat Users List'
> Subject: RE: getting mod_webapps to work
> 
> 
> why are you doing   ServerName sol.lansa.co.uk:8080/test?
> why not   ServerName sol.lansa.co.uk
> or   ServerName sol.lansa.co.uk/test
> the warp connector has nothing to do with 8080, that is an Apache config
> thing.
> Warp has had some problems in windows but I have it working in Linux RH6-7.1
> 
> try this:
> 
> NameVirtualHost 192.168.0.247
> 
> 
> ServerName sol.lansa.co.uk
> DocumentRoot /var/www/html
> DocumentRoot /usr/share/tomcat/webapps/examples
> WebAppConnectionconnWarp localhost:8008
> WebAppDeploytestconn   /test 
> #use examples for the Tomcat examples
>   WebAppDeploy   examples conn /example
> 
>  
> 
> 
> 
> 
> 
> 
> -Original Message-
> From: Cressatti, Dominique [mailto:[EMAIL PROTECTED]]
> Sent: Friday, December 21, 2001 8:17 AM
> To: [EMAIL PROTECTED]
> Subject: getting mod_webapps to work
> 
> 
> I've managed to so far to figure out how
> to add in the WebAppcConnection 
> in my httpd.conf (or I think so) so
> httpd doesn't complain anymore when
> am reloading it, yet it still doesn't seem
> to work.
>  
> Here is what I've got in my httpd.conf:
>  
> #Name based virtual hosts directives
>  
> NameVirtualHost 192.168.0.247
> 
> 
> ServerName sol.lansa.co.uk
> DocumentRoot /var/www/html
> 
>  
> #tomcat webapps directive
>  
> 
> ServerName sol.lansa.co.uk:8080/test
> DocumentRoot /usr/share/tomcat/webapps/examples
> WebAppConnectionconnWarplocalhost:8008
> WebAppDeploytestconn/examples
> 
> 
> What am I doing wrong? Can anyone show me a "typical example"
> config?
> 
> As well am not too happy about having to specify port 8080
> and I still want to serve static page on port 80. How would
> I redirect something like:
> http://sol.lansa.co.uk/test  
> to tomcat?
> 
> Thanks for any help.
> 
> Dom
> Dominique Cressatti
> Newlook/PC/Network support
> LANSA Ltd
> 
>  
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 
> 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




JSSE 1.0.2

2001-12-21 Thread Duncan Smith

Hello.
I've just downloaded JSSE 1.0.2 and put the three .jar files in
jre\lib\ext directory.

I've uncommented the example SSl connector in server.xml, but when I
restart, I get this error in the stdout.log:

Exception during startup processing
java.lang.reflect.InvocationTargetException:
java.lang.NoClassDefFoundError: javax/net/ServerSocketFactory

Can anybody help?

Many thanks in advance, Duncan.


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: servlet-mapping problem - tomcat 4.0.1

2001-12-21 Thread Cox, Charlie


MyServlet
index.html


I think you have to have an empty "index.html" file to convince the
 that its valid.

This will take all index.html files, so if you have other index.html files
in other directories, add a dummy.html to the  list and map it
to your servlet.

I recall doing this in 3.2, so I'm not sure if it still works in 4.0 -
although I don't see why it wouldn't.

Charlie

> -Original Message-

> From: Scott Eade [mailto:[EMAIL PROTECTED]]
> Sent: Friday, December 21, 2001 7:54 AM
> To: [EMAIL PROTECTED]
> Subject: servlet-mapping problem - tomcat 4.0.1
> 
> 
> How do I default a user to my servlet without blocking access
> to other directories?  Using a default mapping of "/" results in
> failure to gain access to resources under my servlet directory.
> 
> I think I have a fairly standard set-up of tomcat 4.0.1 on win2k.
> 
> Within C:\jakarta-tomcat-4.0.1\webapps I have a directory
> structure like this:
> 
> myapp
> styles
> global.css
> WEB_INF
> web.xml
> lib
> [jar files]
> 
> web.xml defines a servlet whose output includes a reference to 
> http://mysite.com/myapp/styles/global.css
> 
> If I set my servlet mapping up like this:
> 
> myapp
> /
> 
> then the stylesheet cannot be loaded when the user surfs to
> http://mysite.com/myapp/
> 
> Alternatively if I set up my mapping like this:
> 
> myapp
> /foo/*
> 
> then the stylesheet can be located, but the user must surf to
> http://mysite.com/myapp/foo/
> 
> How can I configure tomcat or structure my directories so that 
> a user can surf to http://mysite.com/myapp/ and also successfully
> access the stylesheet?
> 
> Note that the above is a contrived example.  The real servlet
> includes many other resources in the myapp directory to which
> the servlet refers.
> 
> Any advice would be most welcome.
> 
> Thanks,
> 
> Scott
> 
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Question with request dispatchers?

2001-12-21 Thread Sarb Singh

Hello I have the following question about resquest dispatcher .include
/forward  methods.

I have  a servlets (lets call it S)  that uses the dispatcher to forward the
requequest to a JSP (lets call it (J)). This has Jsp uses a tag library
(lets calle it T) that uses the dispatcher to inlcude another JSP page
(lests call it J2).

When you use the the dispatch include, when i set request attrribute in the
included JSP2 file, these valued disappera when the control goes back to the
JSP1 file.

Can attributes be set to the request object from the included page that will
be visible to the including page, or is the request of the included page a
new indipendent request.

Here is a summary of what I said.

S--forwards--> J - has T  includes--> J2.

If I set attributes in the request object from J2, will i be able to see
those attribute values from J or T?

Thanks




--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Tompcat - Manager Functions without the Manager?

2001-12-21 Thread Richard S. Huntrods

Thanks, Craig - this is exactly what I was looking for.

Cheers,

-Richard

On Thu, 20 Dec 2001, Richard S. Huntrods wrote:

> Date: Thu, 20 Dec 2001 09:23:11 -0700
> From: Richard S. Huntrods <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> Subject: Tompcat - Manager Functions without the Manager?
>
> Greetings!
>
> For security purposes, my tomcat server is behind a firewall, with the

> firewall forwarding port 8080 requests to the server (as port 8080).
> All works very well. FTP and Telnet are blocked by the firewall as
> well.  Only port 80 (another machine running Apache to serve a web
site)
> and port 8080 are open on this firewall.
>
> Also for security, I have removed the original "webapps" directory and

> replaced it with my own "webapps" directory with just my servlets and
> such in it.  Again, all works very, very well.
>
> NOW - I would like to track who is currently using the system.  Apache

> is not running - only Tomcat.  Rather than try to track users
internally
> with my servlets, I would like to be able to use the Tomcat manager
> functions to do this. Is there a way to use manager functions without
> the original webapps/manager directory - i.e. ONLY from behind the
> firewall, perhaps even only when logged on to the server as root?  My
> understanding is that if I put the manager directory back, then it is
> open to the world (password protection is rarely enough, I've found).
>

The manager app doesn't really track users -- it only tells you how many

active sessions there are.  However, it's possible to set up this app
(or
any other) in a manner that makes it available only inside the firewall.

It works like this:

* Add the "manager" webapp's subdirectory back in to your "webapps"
  directory.

* Add a  element in server.xml that includes a request filter
  preventing access to the manager webapp from anywhere *other* than
  inside the firewall:


  


  where "xxx.xxx.xxx.xxx" is the IP address (or a regular expression
  pattern) that must match in order for this request to succeed.

* This filter will accept *only* requests that match the "accept"
  pattern, so any outside-the-firewall attempt will fail (even if
  they know the right username and password).

More information is in the Server Configuration Reference documentation
that ships with Tomcat.


> Thanks in advance,
>
> -Richard
>

Craig





--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Path not found

2001-12-21 Thread Cox, Charlie

try %CATALINA_HOME%\bin\catalina run

This will show error messages in the current command window.

Charlie

> -Original Message-
> From: Praveen Potineni [mailto:[EMAIL PROTECTED]]
> Sent: Friday, December 21, 2001 11:01 AM
> To: Tomcat Users List
> Subject: Re: Path not found
> 
> 
> Hi Ian,
> I think the env variable is also fine. It is set to
> C:\jakarta-tomcat-4.0.1\catalina\src
> 
> and when i execute %CATALINA_HOME%\bin\startup the tomcat 
> window just popped
> up and closed.
> Any ideas...
> 
> Thanks
> Praveen
> 
> - Original Message -
> From: "ian silvester" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Friday, December 21, 2001 10:21 AM
> Subject: Re: Path not found
> 
> 
> > Perhaps your new install of 4.0.1 is using a path of
> > c:\jakarta-tomcat-4.0.1, in which case your env. var. needs 
> updating.
> >
> > ian
> >
> >
> > - Original Message -
> > From: "Praveen Potineni" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Friday, December 21, 2001 3:18 PM
> > Subject: Path not found
> >
> >
> > Hi all,
> > I had some problems with tomcat 4.0. So i installed tomcat 
> 4.0.1 and now
> > when i try to set it up and start tomcat, i get "The system 
> cannot find
> the
> > path specified" in the command window where i executed:
> > %CATALINA_HOME%\bin\startup
> > also tried:
> > %CATALINA_HOME%\catalina\src\bin\startup
> >
> > Both of these commands didn't work. I checked the CATALINA_HOME env
> variable
> > and it is set to C:\jakarta-tomcat-4.0
> >
> > Does anyone have an idea as to what the problem is.. and 
> where i'm doing a
> > mistake...
> > Looks like there are some significant changes made from 
> tomcat 4.0 to
> 4.0.1.
> >
> > Thanks in advance
> > Praveen
> >
> >
> >
> > --
> > To unsubscribe:   

> For additional commands: 
> Troubles with the list: 
>
>

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Re: HTTP error 503. Please please help !

2001-12-21 Thread Cox, Charlie

make sure there is not a copy of servlet.jar in JAVA_HOME\jre\lib\ext. Also
check in your webapp\web-inf\lib.

These would conflict with Tomcat's version.

Charlie

> -Original Message-
> From: Caroline Clewlow [mailto:[EMAIL PROTECTED]]
> Sent: Friday, December 21, 2001 10:18 AM
> To: Tomcat Users List
> Subject: Re: Re: HTTP error 503. Please please help !
> 
> 
> Directly from Tomcat .. no webserver involved.  It's 
> happening with the example jsp files aswell - not my own code.
> 
> I'm assuming its some problem with servlet.jar.
> Below is a sample from my logfile.txt.  If you have time to 
> look at it you'll be able to see the exact errors I'm getting.
> 
> Thanks for all your help btw.
> 
> Caroline
> 
> _-
> 
> 2001-12-21 12:50:01 StandardWrapper[:default]: Loading 
> container servlet default
> 2001-12-21 12:50:01 StandardWrapper[:invoker]: Loading 
> container servlet invoker
> 2001-12-21 12:50:01 StandardWrapper[:jsp]: Marking servlet 
> jsp as unavailable
> 2001-12-21 12:50:01 StandardContext[]: Servlet  threw load() exception
> javax.servlet.ServletException: Error instantiating servlet 
> class org.apache.jasper.servlet.JspServlet
>   at 
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardW
> rapper.java:893)
>   at 
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.
> java:808)
>   at 
> org.apache.catalina.core.StandardContext.loadOnStartup(Standar
> dContext.java:3266)
>   at 
> org.apache.catalina.core.StandardContext.start(StandardContext
> .java:3395)
>   at 
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.
> java:785)
>   at 
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)
>   at 
> org.apache.catalina.core.StandardHost.install(StandardHost.java:714)
>   at 
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:300)
>   at 
> org.apache.catalina.startup.HostConfig.start(HostConfig.java:389)
>   at 
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConf
> ig.java:232)
>   at 
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(L
> ifecycleSupport.java:155)
>   at 
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
>   at 
> org.apache.catalina.core.StandardHost.start(StandardHost.java:614)
>   at 
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
>   at 
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307)
>   at 
> org.apache.catalina.core.StandardService.start(StandardService
> .java:388)
>   at 
> org.apache.catalina.core.StandardServer.start(StandardServer.java:505)
>   at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
>   at 
> org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
>   at 
> org.apache.catalina.startup.Catalina.process(Catalina.java:179)
>   at java.lang.reflect.Method.invoke(Native Method)
>   at 
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
> - Root Cause -
> java.lang.IncompatibleClassChangeError: Implementing class
>   at java.lang.ClassLoader.defineClass0(Native Method)
>   at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
>   at 
> java.security.SecureClassLoader.defineClass(SecureClassLoader.
> java:111)
>   at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
>   at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
>   at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
>   at java.security.AccessController.doPrivileged(Native Method)
>   at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>   at 
> org.apache.catalina.loader.StandardClassLoader.findClass(Stand
> ardClassLoader.java:674)
>   at 
> org.apache.catalina.loader.StandardClassLoader.loadClass(Stand
> ardClassLoader.java:1093)
>   at 
> org.apache.catalina.loader.StandardClassLoader.loadClass(Stand
> ardClassLoader.java:992)
>   at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
>   at java.lang.Class.newInstance0(Native Method)
>   at java.lang.Class.newInstance(Class.java:237)
>   at 
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardW
> rapper.java:884)
>   at 
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.
> java:808)
>   at 
> org.apache.catalina.core.StandardContext.loadOnStartup(Standar
> dContext.java:3266)
>   at 
> org.apache.catalina.core.StandardContext.start(StandardContext
> .java:3395)
>   at 
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.
> java:785)
>   at 
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)
>   at 
> org.apache.catalina.core.StandardHost.install(StandardHost.java:714)
>   at 
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:300)
>   at 
> org.apache.catalina.startup.HostConfig.start(HostConfi

Re: Newbie: initialize ORBSingleton

2001-12-21 Thread Brown Bay

> Brown -
>
> Couldn't you use a batch file unless it's out of option.
Pae.

Yea, I used a batch file instead, but now I am getting a
***java.lang.Exception: Servlet get corba object:org.omg.CORBA.INITIALIZE:
can't instantiate default ORB implementation javaORB.CORBA.ORBSingleton
minor code: 0  completed: No***

Any ideas what this is.

Brown.


>
>
> /Pae
>
>
> > I want to add to my java command line arguments
> >
>
***-Dorg.omg.CORBA.ORBClass=javaORB.CORBA.ORBSingleton -Dorg.omg.CORBA.ORBSi
> > ngletonClass=JavaORB.CORBA.ORBSingleton***
> >
> > In the shortcut to startup tomcat we see
> > ***"C:\Program
> > Files\JavaSoft\JRE\1.3.0_01\bin\java.exe" -jar -Duser.dir="C:\Program
> > Files\Apache Tomcat 4.0" "C:\Program Files\Apache Tomcat
> > 4.0\bin\bootstrap.jar" start***
> >
> > When i try to put the -Dorg.omg  to this startup the buffer in the
> > shortcut does not take these many characters. Is there any other way
that
> I
> > can add the 1st set of arguments to the startup parameters for tomcat.
> >
> > Please let me know.
> >
> > Thanks.
> >
> > Brown Bay.
> >
> >
> >
> > --
> > To unsubscribe:   
> > For additional commands: 
> > Troubles with the list: 
> >
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: getting mod_webapps to work

2001-12-21 Thread Brian Adams

not sure. I bet it has something to do with DocRoot in apache.
not an apache expert at all but you did have two docroots
 DocumentRoot /var/www/html
DocumentRoot /usr/share/tomcat/webapps/examples

and I am not sure that is cool with apache...
try just
 DocumentRoot /var/www/html

I don't think you need the other..


-Original Message-
From: Cressatti, Dominique [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 21, 2001 10:49 AM
To: 'Tomcat Users List'
Subject: RE: getting mod_webapps to work


Brian,

everything checks OK
but I've lost static pages.
I mean http://sol.lansa.co.uk/
now returns "Forbiden... you have permission / on
this server"
Somehow am baffled that am trying to access /

As for http://sol.lansa.co.uk/examples/jsp
am getting "WebApp error  Web-application not yet
deployed"

if we talking about the examples JSP stuff, I do have
it and I know it use to run on http://sol.lansa.co.uk:8080/examples/jsp

Dom


-Original Message-
From: Brian Adams [mailto:[EMAIL PROTECTED]]
Sent: 21 December 2001 15:56
To: 'Tomcat Users List'
Subject: RE: getting mod_webapps to work


apachectl check

apachectl restart

$CATALINA_HOME/bin/catalina.sh run


http://sol.lansa.co.uk/examples/jsp

should work if your tomcat examples are install and configured like so in
httpd.conf 
  WebAppDeployexamples  conn/example





-Original Message-
From: Cressatti, Dominique [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 21, 2001 10:06 AM
To: 'Tomcat Users List'
Subject: RE: getting mod_webapps to work


Cheers Brian,

How do test that it works?

Dom

-Original Message-
From: Brian Adams [mailto:[EMAIL PROTECTED]]
Sent: 21 December 2001 15:35
To: 'Tomcat Users List'
Subject: RE: getting mod_webapps to work


why are you doing   ServerName sol.lansa.co.uk:8080/test?
why not   ServerName sol.lansa.co.uk
or   ServerName sol.lansa.co.uk/test
the warp connector has nothing to do with 8080, that is an Apache config
thing.
Warp has had some problems in windows but I have it working in Linux RH6-7.1

try this:

NameVirtualHost 192.168.0.247


ServerName sol.lansa.co.uk
DocumentRoot /var/www/html
DocumentRoot /usr/share/tomcat/webapps/examples
WebAppConnectionconnWarp localhost:8008
WebAppDeploytestconn   /test 
#use examples for the Tomcat examples
  WebAppDeployexamples  conn/example

 






-Original Message-
From: Cressatti, Dominique [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 21, 2001 8:17 AM
To: [EMAIL PROTECTED]
Subject: getting mod_webapps to work


I've managed to so far to figure out how
to add in the WebAppcConnection 
in my httpd.conf (or I think so) so
httpd doesn't complain anymore when
am reloading it, yet it still doesn't seem
to work.
 
Here is what I've got in my httpd.conf:
 
#Name based virtual hosts directives
 
NameVirtualHost 192.168.0.247


ServerName sol.lansa.co.uk
DocumentRoot /var/www/html

 
#tomcat webapps directive
 

ServerName sol.lansa.co.uk:8080/test
DocumentRoot /usr/share/tomcat/webapps/examples
WebAppConnectionconnWarplocalhost:8008
WebAppDeploytestconn/examples


What am I doing wrong? Can anyone show me a "typical example"
config?

As well am not too happy about having to specify port 8080
and I still want to serve static page on port 80. How would
I redirect something like:
http://sol.lansa.co.uk/test  
to tomcat?

Thanks for any help.

Dom
Dominique Cressatti
Newlook/PC/Network support
LANSA Ltd

 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Newbie: set java arguments

2001-12-21 Thread Pae Choi

Brown -

Couldn't you use a batch file unless it's out of option.


/Pae


- Original Message -
From: "Brown Bay" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, December 21, 2001 8:30 AM
Subject: Newbie: set java arguments


> I want to add to my java command line arguments
>
***-Dorg.omg.CORBA.ORBClass=javaORB.CORBA.ORBSingleton -Dorg.omg.CORBA.ORBSi
> ngletonClass=JavaORB.CORBA.ORBSingleton***
>
> In the shortcut to startup tomcat we see
> ***"C:\Program
> Files\JavaSoft\JRE\1.3.0_01\bin\java.exe" -jar -Duser.dir="C:\Program
> Files\Apache Tomcat 4.0" "C:\Program Files\Apache Tomcat
> 4.0\bin\bootstrap.jar" start***
>
> When i try to put the -Dorg.omg  to this startup the buffer in the
> shortcut does not take these many characters. Is there any other way that
I
> can add the 1st set of arguments to the startup parameters for tomcat.
>
> Please let me know.
>
> Thanks.
>
> Brown Bay.
>
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: getting mod_webapps to work

2001-12-21 Thread Cressatti, Dominique

Brian,

everything checks OK
but I've lost static pages.
I mean http://sol.lansa.co.uk/
now returns "Forbiden... you have permission / on
this server"
Somehow am baffled that am trying to access /

As for http://sol.lansa.co.uk/examples/jsp
am getting "WebApp error  Web-application not yet
deployed"

if we talking about the examples JSP stuff, I do have
it and I know it use to run on http://sol.lansa.co.uk:8080/examples/jsp

Dom


-Original Message-
From: Brian Adams [mailto:[EMAIL PROTECTED]]
Sent: 21 December 2001 15:56
To: 'Tomcat Users List'
Subject: RE: getting mod_webapps to work


apachectl check

apachectl restart

$CATALINA_HOME/bin/catalina.sh run


http://sol.lansa.co.uk/examples/jsp

should work if your tomcat examples are install and configured like so in
httpd.conf 
  WebAppDeployexamples  conn/example





-Original Message-
From: Cressatti, Dominique [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 21, 2001 10:06 AM
To: 'Tomcat Users List'
Subject: RE: getting mod_webapps to work


Cheers Brian,

How do test that it works?

Dom

-Original Message-
From: Brian Adams [mailto:[EMAIL PROTECTED]]
Sent: 21 December 2001 15:35
To: 'Tomcat Users List'
Subject: RE: getting mod_webapps to work


why are you doing   ServerName sol.lansa.co.uk:8080/test?
why not   ServerName sol.lansa.co.uk
or   ServerName sol.lansa.co.uk/test
the warp connector has nothing to do with 8080, that is an Apache config
thing.
Warp has had some problems in windows but I have it working in Linux RH6-7.1

try this:

NameVirtualHost 192.168.0.247


ServerName sol.lansa.co.uk
DocumentRoot /var/www/html
DocumentRoot /usr/share/tomcat/webapps/examples
WebAppConnectionconnWarp localhost:8008
WebAppDeploytestconn   /test 
#use examples for the Tomcat examples
  WebAppDeployexamples  conn/example

 






-Original Message-
From: Cressatti, Dominique [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 21, 2001 8:17 AM
To: [EMAIL PROTECTED]
Subject: getting mod_webapps to work


I've managed to so far to figure out how
to add in the WebAppcConnection 
in my httpd.conf (or I think so) so
httpd doesn't complain anymore when
am reloading it, yet it still doesn't seem
to work.
 
Here is what I've got in my httpd.conf:
 
#Name based virtual hosts directives
 
NameVirtualHost 192.168.0.247


ServerName sol.lansa.co.uk
DocumentRoot /var/www/html

 
#tomcat webapps directive
 

ServerName sol.lansa.co.uk:8080/test
DocumentRoot /usr/share/tomcat/webapps/examples
WebAppConnectionconnWarplocalhost:8008
WebAppDeploytestconn/examples


What am I doing wrong? Can anyone show me a "typical example"
config?

As well am not too happy about having to specify port 8080
and I still want to serve static page on port 80. How would
I redirect something like:
http://sol.lansa.co.uk/test  
to tomcat?

Thanks for any help.

Dom
Dominique Cressatti
Newlook/PC/Network support
LANSA Ltd

 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: [Tomcat 3.3] Strange behaviour w/ mixed POST/GET request

2001-12-21 Thread Vincent Massol



> -Original Message-
> From: ian silvester [mailto:[EMAIL PROTECTED]]
> Sent: 21 December 2001 15:18
> To: Tomcat Users List
> Subject: Re: [Tomcat 3.3] Strange behaviour w/ mixed POST/GET request
> 
> Hmm.
> 
> The fact that you only get this behaviour in 3.3 suggests very
strongly a
> problem in that release. Is there any reason why you can't use a
different
> release and avoid the error?
> 

Please also note that it seems to happen only on some platforms. For
example it works on RedHat Linux w/JDK 1.3.1_01 (this is the platform
which is hosting GUMP and the tests are run every night with Tomcat 3.3
- see
http://jakarta.apache.org/builds/gump/latest/jakarta-cactus-22.html),
but seems to fail on SunOS w/JDK 1.3.1_01 (not verified myself, I was
told). It also fails on my platforms, which are Windows 2000 / Windows
XP with JDK 1.3.1_01

Thanks
-Vincent

> That aside, I have seen this error under different circumstances -
doing a
> response.sendredirect in a JSP _after_ having already output HTML to
the
> browser. For this to error is fair enough - its supposedly outside the
> HTTP
> spec. to send redirects after having started outputting HTML (in ASP,
MS
> being the hand-holders that they are, attempting to do this throws a
> runtime
> error so as to avoid unexpected behaviour).
> 
> Could your code be construed as doing something similar? If yes, then
you
> cannot guarantee that it will work on all combintaions of browser and
> server.
> 
> ian
> 
> - Original Message -
> From: "Vincent Massol" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, December 21, 2001 2:44 PM
> Subject: [Tomcat 3.3] Strange behaviour w/ mixed POST/GET request
> 
> 
> > I have a strange behaviour in Tomcat 3.3 that does not happen either
in
> > Tomcat 4.x or in Tomcat 3.2.x (or any other servlet engine for the
> > matter : Orion, Resin, WebLogic). It looks like voodoo for me and I
have
> > trouble understanding what's happening.
> >
> > I am sending several different HTTP requests (using
HttpURLConnection)
> > to the server and depending on the order I get or do not get an
error.
> > When I get the error, it is the typical :
> >
> > Connection aborted by peer: JVM_recv in socket input stream read
> > java.net.SocketException: Connection aborted by peer: JVM_recv in
socket
> > inp
> > ut stream read
> >at java.net.SocketInputStream.socketRead(Native Method)
> >
> > I am doing one special request in which I send _both_ GET parameters
(in
> > the URL) and parameters in the request body (POST method). The other
> > requests are only GET requests.
> >
> > If I call the mixed POST/GET request first, followed by the other
GET
> > requests then everything is fine. However, if I start by doing on
GET
> > request and then followed by the mixed POST/GET one, I get the
> > connection aborted by peer error.
> >
> > Any idea ? Any known issues with mixed POST/GET requests ?
> >
> > Thanks a lot for any hint as I'm beginning to tear my hair ... :-)
> > -Vincent
> >
> >
> >
> > --
> > To unsubscribe:

> > For additional commands:

> > Troubles with the list:

> >
> >
> 
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 




--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




ajp13 causes problems for "Apache Tomcat" service

2001-12-21 Thread Sam Brow

Tomcat 4.0.1, when run as a service on NT, doesn't seem to integrate 
properly with IIS. The service fails to stop gracefully and does not call 
my Servlet's destroy() method().

NT4 sp6a.  I downloaded the .exe binary for TC 4.0.1 and installed it 
selecting the checkbox to have it run as a service (nice feature).  After 
having done that, the following works correctly...

1. net start "Apache Tomcat" (service starts)
2. Load/run my servlet via a browser (on port 8080, bypassing IIS).
3. net stop "Apache Tomcat" (service stops gracefully and my servlet's 
destroy() method is called)

However, if I now edit server.xml, comment *in* in the ajp13 connector, and 
repeat the steps above, step 3 fails.  The service fails to stop gracefully 
and my servlet's destroy() method is not called!

Since you need the ajp13 connector to integrate with IIS and you'd want 
Tomcat to run as a service when integrating with IIS, it seems IIS 
integration doesn't work correctly.  I guess it kinda does if your 
destroy() method does nothing important and/or you never stop the tomcat 
service. :)

After my steps 1-3 above (with ajp13 commented in), the 
catalina_log..txt contained the following tail...

...
2001-12-21 11:05:17 HttpProcessor[8080][0] Stopping background thread
2001-12-21 11:05:17 HttpConnector[8080] Stopping background thread
...
2001-12-21 11:05:37 Ajp13Processor[8009][0] Stopping background thread
2001-12-21 11:05:42 Ajp13Connector[8009] Stopping background thread
2001-12-21 11:05:47 Ajp13Connector[8009] Opening server socket on all host 
IP addresses

The last line looks fishy to me.

If anybody has TC 4.0.1 running as a service with the ajp13 connector 
active *and* they can gracefully stop the service with their Servlet's 
destroy() method being called, I'd like to know.

Thanks all

-Sam


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Path not found

2001-12-21 Thread Praveen Potineni

I think i am missing some files in my new installation of tomcat 4.0.1 coz
in the version 4.0 there was servlet.jar in common\lib.

There is no common folder under jakarta-tomcat-4.0.1.

I think similarly some more files like xeres.jar also is missing. What are
all the files required to successfully run aa JSP application in tomcat.

Thanks in advance
Praveen

- Original Message -
From: "ian silvester" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, December 21, 2001 11:16 AM
Subject: Re: Path not found


> Ah - as I understand it the env var CATALINA_HOME should be set to just
> c:\jakarta-tomcat-4.0.1
>
> For simplicity and greater visibility, its probably worth opening a DOS
box
> (assuming you're on Windows of course) and browse to
> c:\jakarta-tomcat-4.0.1\bin, then type 'startup' from there. That way
you'll
> get to see the error messages it throws.
>
> ian
>
> - Original Message -
> From: "Praveen Potineni" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Friday, December 21, 2001 4:01 PM
> Subject: Re: Path not found
>
>
> > Hi Ian,
> > I think the env variable is also fine. It is set to
> > C:\jakarta-tomcat-4.0.1\catalina\src
> >
> > and when i execute %CATALINA_HOME%\bin\startup the tomcat window just
> popped
> > up and closed.
> > Any ideas...
> >
> > Thanks
> > Praveen
> >
> > - Original Message -
> > From: "ian silvester" <[EMAIL PROTECTED]>
> > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > Sent: Friday, December 21, 2001 10:21 AM
> > Subject: Re: Path not found
> >
> >
> > > Perhaps your new install of 4.0.1 is using a path of
> > > c:\jakarta-tomcat-4.0.1, in which case your env. var. needs updating.
> > >
> > > ian
> > >
> > >
> > > - Original Message -
> > > From: "Praveen Potineni" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Friday, December 21, 2001 3:18 PM
> > > Subject: Path not found
> > >
> > >
> > > Hi all,
> > > I had some problems with tomcat 4.0. So i installed tomcat 4.0.1 and
now
> > > when i try to set it up and start tomcat, i get "The system cannot
find
> > the
> > > path specified" in the command window where i executed:
> > > %CATALINA_HOME%\bin\startup
> > > also tried:
> > > %CATALINA_HOME%\catalina\src\bin\startup
> > >
> > > Both of these commands didn't work. I checked the CATALINA_HOME env
> > variable
> > > and it is set to C:\jakarta-tomcat-4.0
> > >
> > > Does anyone have an idea as to what the problem is.. and where i'm
doing
> a
> > > mistake...
> > > Looks like there are some significant changes made from tomcat 4.0 to
> > 4.0.1.
> > >
> > > Thanks in advance
> > > Praveen
> > >
> > >
> > >
> > > --
> > > To unsubscribe:   
> > > For additional commands: 
> > > Troubles with the list: 
> > >
> > >
> >
> > --
> > To unsubscribe:   
> > For additional commands: 
> > Troubles with the list: 
> >
> >
>
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Newbie: set java arguments

2001-12-21 Thread Brown Bay

I want to add to my java command line arguments
***-Dorg.omg.CORBA.ORBClass=javaORB.CORBA.ORBSingleton -Dorg.omg.CORBA.ORBSi
ngletonClass=JavaORB.CORBA.ORBSingleton***

In the shortcut to startup tomcat we see
***"C:\Program
Files\JavaSoft\JRE\1.3.0_01\bin\java.exe" -jar -Duser.dir="C:\Program
Files\Apache Tomcat 4.0" "C:\Program Files\Apache Tomcat
4.0\bin\bootstrap.jar" start***

When i try to put the -Dorg.omg  to this startup the buffer in the
shortcut does not take these many characters. Is there any other way that I
can add the 1st set of arguments to the startup parameters for tomcat.

Please let me know.

Thanks.

Brown Bay.



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: getting mod_webapps to work

2001-12-21 Thread Brian Adams

actually you may want to start tomcat first then restart apache

-Original Message-
From: Brian Adams [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 21, 2001 9:56 AM
To: 'Tomcat Users List'
Subject: RE: getting mod_webapps to work


apachectl check

apachectl restart

$CATALINA_HOME/bin/catalina.sh run


http://sol.lansa.co.uk/examples/jsp

should work if your tomcat examples are install and configured like so in
httpd.conf 
  WebAppDeployexamples  conn/example





-Original Message-
From: Cressatti, Dominique [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 21, 2001 10:06 AM
To: 'Tomcat Users List'
Subject: RE: getting mod_webapps to work


Cheers Brian,

How do test that it works?

Dom

-Original Message-
From: Brian Adams [mailto:[EMAIL PROTECTED]]
Sent: 21 December 2001 15:35
To: 'Tomcat Users List'
Subject: RE: getting mod_webapps to work


why are you doing   ServerName sol.lansa.co.uk:8080/test?
why not   ServerName sol.lansa.co.uk
or   ServerName sol.lansa.co.uk/test
the warp connector has nothing to do with 8080, that is an Apache config
thing.
Warp has had some problems in windows but I have it working in Linux RH6-7.1

try this:

NameVirtualHost 192.168.0.247


ServerName sol.lansa.co.uk
DocumentRoot /var/www/html
DocumentRoot /usr/share/tomcat/webapps/examples
WebAppConnectionconnWarp localhost:8008
WebAppDeploytestconn   /test 
#use examples for the Tomcat examples
  WebAppDeployexamples  conn/example

 






-Original Message-
From: Cressatti, Dominique [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 21, 2001 8:17 AM
To: [EMAIL PROTECTED]
Subject: getting mod_webapps to work


I've managed to so far to figure out how
to add in the WebAppcConnection 
in my httpd.conf (or I think so) so
httpd doesn't complain anymore when
am reloading it, yet it still doesn't seem
to work.
 
Here is what I've got in my httpd.conf:
 
#Name based virtual hosts directives
 
NameVirtualHost 192.168.0.247


ServerName sol.lansa.co.uk
DocumentRoot /var/www/html

 
#tomcat webapps directive
 

ServerName sol.lansa.co.uk:8080/test
DocumentRoot /usr/share/tomcat/webapps/examples
WebAppConnectionconnWarplocalhost:8008
WebAppDeploytestconn/examples


What am I doing wrong? Can anyone show me a "typical example"
config?

As well am not too happy about having to specify port 8080
and I still want to serve static page on port 80. How would
I redirect something like:
http://sol.lansa.co.uk/test  
to tomcat?

Thanks for any help.

Dom
Dominique Cressatti
Newlook/PC/Network support
LANSA Ltd

 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: getting mod_webapps to work

2001-12-21 Thread Brian Adams

apachectl check

apachectl restart

$CATALINA_HOME/bin/catalina.sh run


http://sol.lansa.co.uk/examples/jsp

should work if your tomcat examples are install and configured like so in
httpd.conf 
  WebAppDeployexamples  conn/example





-Original Message-
From: Cressatti, Dominique [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 21, 2001 10:06 AM
To: 'Tomcat Users List'
Subject: RE: getting mod_webapps to work


Cheers Brian,

How do test that it works?

Dom

-Original Message-
From: Brian Adams [mailto:[EMAIL PROTECTED]]
Sent: 21 December 2001 15:35
To: 'Tomcat Users List'
Subject: RE: getting mod_webapps to work


why are you doing   ServerName sol.lansa.co.uk:8080/test?
why not   ServerName sol.lansa.co.uk
or   ServerName sol.lansa.co.uk/test
the warp connector has nothing to do with 8080, that is an Apache config
thing.
Warp has had some problems in windows but I have it working in Linux RH6-7.1

try this:

NameVirtualHost 192.168.0.247


ServerName sol.lansa.co.uk
DocumentRoot /var/www/html
DocumentRoot /usr/share/tomcat/webapps/examples
WebAppConnectionconnWarp localhost:8008
WebAppDeploytestconn   /test 
#use examples for the Tomcat examples
  WebAppDeployexamples  conn/example

 






-Original Message-
From: Cressatti, Dominique [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 21, 2001 8:17 AM
To: [EMAIL PROTECTED]
Subject: getting mod_webapps to work


I've managed to so far to figure out how
to add in the WebAppcConnection 
in my httpd.conf (or I think so) so
httpd doesn't complain anymore when
am reloading it, yet it still doesn't seem
to work.
 
Here is what I've got in my httpd.conf:
 
#Name based virtual hosts directives
 
NameVirtualHost 192.168.0.247


ServerName sol.lansa.co.uk
DocumentRoot /var/www/html

 
#tomcat webapps directive
 

ServerName sol.lansa.co.uk:8080/test
DocumentRoot /usr/share/tomcat/webapps/examples
WebAppConnectionconnWarplocalhost:8008
WebAppDeploytestconn/examples


What am I doing wrong? Can anyone show me a "typical example"
config?

As well am not too happy about having to specify port 8080
and I still want to serve static page on port 80. How would
I redirect something like:
http://sol.lansa.co.uk/test  
to tomcat?

Thanks for any help.

Dom
Dominique Cressatti
Newlook/PC/Network support
LANSA Ltd

 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Path not found

2001-12-21 Thread ian silvester

Ah - as I understand it the env var CATALINA_HOME should be set to just
c:\jakarta-tomcat-4.0.1

For simplicity and greater visibility, its probably worth opening a DOS box
(assuming you're on Windows of course) and browse to
c:\jakarta-tomcat-4.0.1\bin, then type 'startup' from there. That way you'll
get to see the error messages it throws.

ian

- Original Message -
From: "Praveen Potineni" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, December 21, 2001 4:01 PM
Subject: Re: Path not found


> Hi Ian,
> I think the env variable is also fine. It is set to
> C:\jakarta-tomcat-4.0.1\catalina\src
>
> and when i execute %CATALINA_HOME%\bin\startup the tomcat window just
popped
> up and closed.
> Any ideas...
>
> Thanks
> Praveen
>
> - Original Message -
> From: "ian silvester" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Friday, December 21, 2001 10:21 AM
> Subject: Re: Path not found
>
>
> > Perhaps your new install of 4.0.1 is using a path of
> > c:\jakarta-tomcat-4.0.1, in which case your env. var. needs updating.
> >
> > ian
> >
> >
> > - Original Message -
> > From: "Praveen Potineni" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Friday, December 21, 2001 3:18 PM
> > Subject: Path not found
> >
> >
> > Hi all,
> > I had some problems with tomcat 4.0. So i installed tomcat 4.0.1 and now
> > when i try to set it up and start tomcat, i get "The system cannot find
> the
> > path specified" in the command window where i executed:
> > %CATALINA_HOME%\bin\startup
> > also tried:
> > %CATALINA_HOME%\catalina\src\bin\startup
> >
> > Both of these commands didn't work. I checked the CATALINA_HOME env
> variable
> > and it is set to C:\jakarta-tomcat-4.0
> >
> > Does anyone have an idea as to what the problem is.. and where i'm doing
a
> > mistake...
> > Looks like there are some significant changes made from tomcat 4.0 to
> 4.0.1.
> >
> > Thanks in advance
> > Praveen
> >
> >
> >
> > --
> > To unsubscribe:   
> > For additional commands: 
> > Troubles with the list: 
> >
> >
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: [Tomcat 3.3] Strange behaviour w/ mixed POST/GET request

2001-12-21 Thread Vincent Massol



> -Original Message-
> From: ian silvester [mailto:[EMAIL PROTECTED]]
> Sent: 21 December 2001 15:18
> To: Tomcat Users List
> Subject: Re: [Tomcat 3.3] Strange behaviour w/ mixed POST/GET request
> 
> Hmm.
> 
> The fact that you only get this behaviour in 3.3 suggests very
strongly a
> problem in that release. Is there any reason why you can't use a
different
> release and avoid the error?
> 

Because in the framework I am working on (Jakarta Cactus), I need to
support all servlet engines (including Tomcat 3.3) :-)

> That aside, I have seen this error under different circumstances -
doing a
> response.sendredirect in a JSP _after_ having already output HTML to
the
> browser. For this to error is fair enough - its supposedly outside the
> HTTP
> spec. to send redirects after having started outputting HTML (in ASP,
MS
> being the hand-holders that they are, attempting to do this throws a
> runtime
> error so as to avoid unexpected behaviour).
> 
> Could your code be construed as doing something similar? If yes, then
you
> cannot guarantee that it will work on all combintaions of browser and
> server.
> 

There is no sendredirect in my code but I may be doing something not in
the spec ... As suggested by Larry Isaacs, I'm going to open a bug in
bugzilla with details on the test case. However, it is going to take
some time as I need to extract the relevant portion from the code. I
hoped someone was going to say something like : "yes, we know, we have
an issue when you're sending parameter in the URL at the same time as in
the request body" ... :-)

In the meantime (before I finish extracting the code), some more
information on the code logic (client side) :

1/ open an http connection to Tomcat 3.3 using HttpURLConnection and
read all returned data (with attached AutoReadHttpURLConnection class) :

  HttpURLConnection connection = helper.connect(theRequest);
  connection = new AutoReadHttpURLConnection(connection);
  // Trigger the transfer of data
  connection.getInputStream();

On the server side, some code is executed and a result is set in the
application context.

2/ open a second connection to the server using HttpURLConnection and
get the test result (sent back as an ObjectOutputStream)

Repeat 1/ and 2/ for all the requests I mentioned in my previous mail
(the mixed POST/GET one and the other GET ones).

Thanks
-Vincent

> ian
> 
> - Original Message -
> From: "Vincent Massol" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, December 21, 2001 2:44 PM
> Subject: [Tomcat 3.3] Strange behaviour w/ mixed POST/GET request
> 
> 
> > I have a strange behaviour in Tomcat 3.3 that does not happen either
in
> > Tomcat 4.x or in Tomcat 3.2.x (or any other servlet engine for the
> > matter : Orion, Resin, WebLogic). It looks like voodoo for me and I
have
> > trouble understanding what's happening.
> >
> > I am sending several different HTTP requests (using
HttpURLConnection)
> > to the server and depending on the order I get or do not get an
error.
> > When I get the error, it is the typical :
> >
> > Connection aborted by peer: JVM_recv in socket input stream read
> > java.net.SocketException: Connection aborted by peer: JVM_recv in
socket
> > inp
> > ut stream read
> >at java.net.SocketInputStream.socketRead(Native Method)
> >
> > I am doing one special request in which I send _both_ GET parameters
(in
> > the URL) and parameters in the request body (POST method). The other
> > requests are only GET requests.
> >
> > If I call the mixed POST/GET request first, followed by the other
GET
> > requests then everything is fine. However, if I start by doing on
GET
> > request and then followed by the mixed POST/GET one, I get the
> > connection aborted by peer error.
> >
> > Any idea ? Any known issues with mixed POST/GET requests ?
> >
> > Thanks a lot for any hint as I'm beginning to tear my hair ... :-)
> > -Vincent
> >
> >
> >
> > --
> > To unsubscribe:

> > For additional commands:

> > Troubles with the list:

> >
> >
> 
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 




AutoReadHttpURLConnection.java
Description: Binary data

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 


RE: getting mod_webapps to work

2001-12-21 Thread Cressatti, Dominique

Cheers Brian,

How do test that it works?

Dom

-Original Message-
From: Brian Adams [mailto:[EMAIL PROTECTED]]
Sent: 21 December 2001 15:35
To: 'Tomcat Users List'
Subject: RE: getting mod_webapps to work


why are you doing   ServerName sol.lansa.co.uk:8080/test?
why not   ServerName sol.lansa.co.uk
or   ServerName sol.lansa.co.uk/test
the warp connector has nothing to do with 8080, that is an Apache config
thing.
Warp has had some problems in windows but I have it working in Linux RH6-7.1

try this:

NameVirtualHost 192.168.0.247


ServerName sol.lansa.co.uk
DocumentRoot /var/www/html
DocumentRoot /usr/share/tomcat/webapps/examples
WebAppConnectionconnWarp localhost:8008
WebAppDeploytestconn   /test 
#use examples for the Tomcat examples
  WebAppDeployexamples  conn/example

 






-Original Message-
From: Cressatti, Dominique [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 21, 2001 8:17 AM
To: [EMAIL PROTECTED]
Subject: getting mod_webapps to work


I've managed to so far to figure out how
to add in the WebAppcConnection 
in my httpd.conf (or I think so) so
httpd doesn't complain anymore when
am reloading it, yet it still doesn't seem
to work.
 
Here is what I've got in my httpd.conf:
 
#Name based virtual hosts directives
 
NameVirtualHost 192.168.0.247


ServerName sol.lansa.co.uk
DocumentRoot /var/www/html

 
#tomcat webapps directive
 

ServerName sol.lansa.co.uk:8080/test
DocumentRoot /usr/share/tomcat/webapps/examples
WebAppConnectionconnWarplocalhost:8008
WebAppDeploytestconn/examples


What am I doing wrong? Can anyone show me a "typical example"
config?

As well am not too happy about having to specify port 8080
and I still want to serve static page on port 80. How would
I redirect something like:
http://sol.lansa.co.uk/test  
to tomcat?

Thanks for any help.

Dom
Dominique Cressatti
Newlook/PC/Network support
LANSA Ltd

 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Re: HTTP error 503. Please please help !

2001-12-21 Thread ian silvester

hmm, in this context, the root cause of the error suggests that, as you say,
servlet.jar is for some reason being found as incompatible.

Is this the first time you've used any servlet technology on the machine its
failing on? I ask because I'm thinking along the lines that there might be
other, different, copies of servlet.jar on the machine, perhaps listed in
your CLASSPATH environment var?

at the very least, its probably worth searching for that filename across
your entire hard drive to see if there are any possible conflicting
copies..?

ian



- Original Message -
From: "Caroline Clewlow" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, December 21, 2001 3:18 PM
Subject: Re: Re: HTTP error 503. Please please help !


> Directly from Tomcat .. no webserver involved.  It's happening with
the example jsp files aswell - not my own code.
>
> I'm assuming its some problem with servlet.jar.
> Below is a sample from my logfile.txt.  If you have time to look at it
you'll be able to see the exact errors I'm getting.
>
> Thanks for all your help btw.
>
> Caroline
>
> _-
>
> 2001-12-21 12:50:01 StandardWrapper[:default]: Loading container servlet
default
> 2001-12-21 12:50:01 StandardWrapper[:invoker]: Loading container servlet
invoker
> 2001-12-21 12:50:01 StandardWrapper[:jsp]: Marking servlet jsp as
unavailable
> 2001-12-21 12:50:01 StandardContext[]: Servlet  threw load() exception
> javax.servlet.ServletException: Error instantiating servlet class
org.apache.jasper.servlet.JspServlet
> at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:89
3)
> at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808)
> at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3266)
> at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3395)
> at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
> at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)
> at org.apache.catalina.core.StandardHost.install(StandardHost.java:714)
> at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:300)
> at org.apache.catalina.startup.HostConfig.start(HostConfig.java:389)
> at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:232)
> at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:155)
> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
> at org.apache.catalina.core.StandardHost.start(StandardHost.java:614)
> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
> at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307)
> at
org.apache.catalina.core.StandardService.start(StandardService.java:388)
> at org.apache.catalina.core.StandardServer.start(StandardServer.java:505)
> at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
> at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
> at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
> at java.lang.reflect.Method.invoke(Native Method)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
> - Root Cause -
> java.lang.IncompatibleClassChangeError: Implementing class
> at java.lang.ClassLoader.defineClass0(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
> at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
> at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
> at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
> at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> at
org.apache.catalina.loader.StandardClassLoader.findClass(StandardClassLoader
.java:674)
> at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader
.java:1093)
> at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader
.java:992)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
> at java.lang.Class.newInstance0(Native Method)
> at java.lang.Class.newInstance(Class.java:237)
> at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:88
4)
> at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808)
> at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3266)
> at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3395)
> at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
> at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)
> at org.apache.catalina.core.StandardHost.install(StandardHost.java:714)
> at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:300)
> at org.apache.catalina.startup.HostConfig.start(HostConfig.java:389)
> at
org.apache.catalina.sta

Re: Path not found

2001-12-21 Thread Praveen Potineni

Hi Ian,
I think the env variable is also fine. It is set to
C:\jakarta-tomcat-4.0.1\catalina\src

and when i execute %CATALINA_HOME%\bin\startup the tomcat window just popped
up and closed.
Any ideas...

Thanks
Praveen

- Original Message -
From: "ian silvester" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, December 21, 2001 10:21 AM
Subject: Re: Path not found


> Perhaps your new install of 4.0.1 is using a path of
> c:\jakarta-tomcat-4.0.1, in which case your env. var. needs updating.
>
> ian
>
>
> - Original Message -
> From: "Praveen Potineni" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, December 21, 2001 3:18 PM
> Subject: Path not found
>
>
> Hi all,
> I had some problems with tomcat 4.0. So i installed tomcat 4.0.1 and now
> when i try to set it up and start tomcat, i get "The system cannot find
the
> path specified" in the command window where i executed:
> %CATALINA_HOME%\bin\startup
> also tried:
> %CATALINA_HOME%\catalina\src\bin\startup
>
> Both of these commands didn't work. I checked the CATALINA_HOME env
variable
> and it is set to C:\jakarta-tomcat-4.0
>
> Does anyone have an idea as to what the problem is.. and where i'm doing a
> mistake...
> Looks like there are some significant changes made from tomcat 4.0 to
4.0.1.
>
> Thanks in advance
> Praveen
>
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: getting mod_webapps to work

2001-12-21 Thread Brian Adams

why are you doing   ServerName sol.lansa.co.uk:8080/test?
why not   ServerName sol.lansa.co.uk
or   ServerName sol.lansa.co.uk/test
the warp connector has nothing to do with 8080, that is an Apache config
thing.
Warp has had some problems in windows but I have it working in Linux RH6-7.1

try this:

NameVirtualHost 192.168.0.247


ServerName sol.lansa.co.uk
DocumentRoot /var/www/html
DocumentRoot /usr/share/tomcat/webapps/examples
WebAppConnectionconnWarp localhost:8008
WebAppDeploytestconn   /test 
#use examples for the Tomcat examples
  WebAppDeployexamples  conn/example

 






-Original Message-
From: Cressatti, Dominique [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 21, 2001 8:17 AM
To: [EMAIL PROTECTED]
Subject: getting mod_webapps to work


I've managed to so far to figure out how
to add in the WebAppcConnection 
in my httpd.conf (or I think so) so
httpd doesn't complain anymore when
am reloading it, yet it still doesn't seem
to work.
 
Here is what I've got in my httpd.conf:
 
#Name based virtual hosts directives
 
NameVirtualHost 192.168.0.247


ServerName sol.lansa.co.uk
DocumentRoot /var/www/html

 
#tomcat webapps directive
 

ServerName sol.lansa.co.uk:8080/test
DocumentRoot /usr/share/tomcat/webapps/examples
WebAppConnectionconnWarplocalhost:8008
WebAppDeploytestconn/examples


What am I doing wrong? Can anyone show me a "typical example"
config?

As well am not too happy about having to specify port 8080
and I still want to serve static page on port 80. How would
I redirect something like:
http://sol.lansa.co.uk/test  
to tomcat?

Thanks for any help.

Dom
Dominique Cressatti
Newlook/PC/Network support
LANSA Ltd

 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




getting mod_webapps to work

2001-12-21 Thread Cressatti, Dominique

I've managed to so far to figure out how
to add in the WebAppcConnection 
in my httpd.conf (or I think so) so
httpd doesn't complain anymore when
am reloading it, yet it still doesn't seem
to work.
 
Here is what I've got in my httpd.conf:
 
#Name based virtual hosts directives
 
NameVirtualHost 192.168.0.247


ServerName sol.lansa.co.uk
DocumentRoot /var/www/html

 
#tomcat webapps directive
 

ServerName sol.lansa.co.uk:8080/test
DocumentRoot /usr/share/tomcat/webapps/examples
WebAppConnectionconnWarplocalhost:8008
WebAppDeploytestconn/examples


What am I doing wrong? Can anyone show me a "typical example"
config?

As well am not too happy about having to specify port 8080
and I still want to serve static page on port 80. How would
I redirect something like:
http://sol.lansa.co.uk/test  
to tomcat?

Thanks for any help.

Dom
Dominique Cressatti
Newlook/PC/Network support
LANSA Ltd

 



RE: servlet-mapping problem - tomcat 4.0.1

2001-12-21 Thread SHeyns

set the welcome file list element to the URL address you want to default to
Something like -


pages/main.jsp


This will default a user going to your context to the file pages/main.jsp -
Tomcat (4.1) has a few default context attributes which are located in the
CATALINA_HOME/conf/web.xml which a context will default to if the welcome
file list element is not specified - they are as follows

  
index.html
index.htm
index.jsp
  

HTH

S.

-Original Message-
From: Scott Eade [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 21, 2001 6:54 AM
To: [EMAIL PROTECTED]
Subject: servlet-mapping problem - tomcat 4.0.1


How do I default a user to my servlet without blocking access
to other directories?  Using a default mapping of "/" results in
failure to gain access to resources under my servlet directory.

I think I have a fairly standard set-up of tomcat 4.0.1 on win2k.

Within C:\jakarta-tomcat-4.0.1\webapps I have a directory
structure like this:

myapp
styles
global.css
WEB_INF
web.xml
lib
[jar files]

web.xml defines a servlet whose output includes a reference to 
http://mysite.com/myapp/styles/global.css

If I set my servlet mapping up like this:

myapp
/

then the stylesheet cannot be loaded when the user surfs to
http://mysite.com/myapp/

Alternatively if I set up my mapping like this:

myapp
/foo/*

then the stylesheet can be located, but the user must surf to
http://mysite.com/myapp/foo/

How can I configure tomcat or structure my directories so that 
a user can surf to http://mysite.com/myapp/ and also successfully
access the stylesheet?

Note that the above is a contrived example.  The real servlet
includes many other resources in the myapp directory to which
the servlet refers.

Any advice would be most welcome.

Thanks,

Scott



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




tag

2001-12-21 Thread Laurent Michenaud

Hi,

Do u use tag for your web developpment ?
What's the advantages ?
In which situation do u use them ? examples maybe ?

thanks

Michenaud Laurent
- Adeuza -
[ Développeur Web - Administrateur Réseau ]


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: servlet-mapping problem - tomcat 4.0.1

2001-12-21 Thread ian silvester

Its a little clunky, but you could use your second 'foo' mapping, and then
have an index.htm that does a meta-refresh to redirect them to your servlet:




Not nice and invisible I know, but it'll work..

ian



- Original Message -
From: "Scott Eade" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, December 21, 2001 12:53 PM
Subject: servlet-mapping problem - tomcat 4.0.1


> How do I default a user to my servlet without blocking access
> to other directories?  Using a default mapping of "/" results in
> failure to gain access to resources under my servlet directory.
>
> I think I have a fairly standard set-up of tomcat 4.0.1 on win2k.
>
> Within C:\jakarta-tomcat-4.0.1\webapps I have a directory
> structure like this:
>
> myapp
> styles
> global.css
> WEB_INF
> web.xml
> lib
> [jar files]
>
> web.xml defines a servlet whose output includes a reference to
> http://mysite.com/myapp/styles/global.css
>
> If I set my servlet mapping up like this:
> 
> myapp
> /
> 
> then the stylesheet cannot be loaded when the user surfs to
> http://mysite.com/myapp/
>
> Alternatively if I set up my mapping like this:
> 
> myapp
> /foo/*
> 
> then the stylesheet can be located, but the user must surf to
> http://mysite.com/myapp/foo/
>
> How can I configure tomcat or structure my directories so that
> a user can surf to http://mysite.com/myapp/ and also successfully
> access the stylesheet?
>
> Note that the above is a contrived example.  The real servlet
> includes many other resources in the myapp directory to which
> the servlet refers.
>
> Any advice would be most welcome.
>
> Thanks,
>
> Scott
>
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Path not found

2001-12-21 Thread ian silvester

Perhaps your new install of 4.0.1 is using a path of
c:\jakarta-tomcat-4.0.1, in which case your env. var. needs updating.

ian


- Original Message -
From: "Praveen Potineni" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, December 21, 2001 3:18 PM
Subject: Path not found


Hi all,
I had some problems with tomcat 4.0. So i installed tomcat 4.0.1 and now
when i try to set it up and start tomcat, i get "The system cannot find the
path specified" in the command window where i executed:
%CATALINA_HOME%\bin\startup
also tried:
%CATALINA_HOME%\catalina\src\bin\startup

Both of these commands didn't work. I checked the CATALINA_HOME env variable
and it is set to C:\jakarta-tomcat-4.0

Does anyone have an idea as to what the problem is.. and where i'm doing a
mistake...
Looks like there are some significant changes made from tomcat 4.0 to 4.0.1.

Thanks in advance
Praveen



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: [Tomcat 3.3] Strange behaviour w/ mixed POST/GET request

2001-12-21 Thread ian silvester

Hmm.

The fact that you only get this behaviour in 3.3 suggests very strongly a
problem in that release. Is there any reason why you can't use a different
release and avoid the error?

That aside, I have seen this error under different circumstances - doing a
response.sendredirect in a JSP _after_ having already output HTML to the
browser. For this to error is fair enough - its supposedly outside the HTTP
spec. to send redirects after having started outputting HTML (in ASP, MS
being the hand-holders that they are, attempting to do this throws a runtime
error so as to avoid unexpected behaviour).

Could your code be construed as doing something similar? If yes, then you
cannot guarantee that it will work on all combintaions of browser and
server.

ian

- Original Message -
From: "Vincent Massol" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, December 21, 2001 2:44 PM
Subject: [Tomcat 3.3] Strange behaviour w/ mixed POST/GET request


> I have a strange behaviour in Tomcat 3.3 that does not happen either in
> Tomcat 4.x or in Tomcat 3.2.x (or any other servlet engine for the
> matter : Orion, Resin, WebLogic). It looks like voodoo for me and I have
> trouble understanding what's happening.
>
> I am sending several different HTTP requests (using HttpURLConnection)
> to the server and depending on the order I get or do not get an error.
> When I get the error, it is the typical :
>
> Connection aborted by peer: JVM_recv in socket input stream read
> java.net.SocketException: Connection aborted by peer: JVM_recv in socket
> inp
> ut stream read
>at java.net.SocketInputStream.socketRead(Native Method)
>
> I am doing one special request in which I send _both_ GET parameters (in
> the URL) and parameters in the request body (POST method). The other
> requests are only GET requests.
>
> If I call the mixed POST/GET request first, followed by the other GET
> requests then everything is fine. However, if I start by doing on GET
> request and then followed by the mixed POST/GET one, I get the
> connection aborted by peer error.
>
> Any idea ? Any known issues with mixed POST/GET requests ?
>
> Thanks a lot for any hint as I'm beginning to tear my hair ... :-)
> -Vincent
>
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Re: HTTP error 503. Please please help !

2001-12-21 Thread Caroline Clewlow

Directly from Tomcat .. no webserver involved.  It's happening with the example 
jsp files aswell - not my own code.

I'm assuming its some problem with servlet.jar.
Below is a sample from my logfile.txt.  If you have time to look at it you'll be able 
to see the exact errors I'm getting.

Thanks for all your help btw.

Caroline

_-

2001-12-21 12:50:01 StandardWrapper[:default]: Loading container servlet default
2001-12-21 12:50:01 StandardWrapper[:invoker]: Loading container servlet invoker
2001-12-21 12:50:01 StandardWrapper[:jsp]: Marking servlet jsp as unavailable
2001-12-21 12:50:01 StandardContext[]: Servlet  threw load() exception
javax.servlet.ServletException: Error instantiating servlet class 
org.apache.jasper.servlet.JspServlet
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:893)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808)
at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3266)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3395)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:714)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:300)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:389)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:232)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:155)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:614)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307)
at org.apache.catalina.core.StandardService.start(StandardService.java:388)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:505)
at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
- Root Cause -
java.lang.IncompatibleClassChangeError: Implementing class
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at 
org.apache.catalina.loader.StandardClassLoader.findClass(StandardClassLoader.java:674)
at 
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:1093)
at 
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:992)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:884)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808)
at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3266)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3395)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:714)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:300)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:389)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:232)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:155)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:614)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307)
at org.apache.catalina.core.StandardServ

Path not found

2001-12-21 Thread Praveen Potineni

Hi all,
I had some problems with tomcat 4.0. So i installed tomcat 4.0.1 and now when i try to 
set it up and start tomcat, i get "The system cannot find the path specified" in the 
command window where i executed:
%CATALINA_HOME%\bin\startup
also tried: 
%CATALINA_HOME%\catalina\src\bin\startup

Both of these commands didn't work. I checked the CATALINA_HOME env variable and it is 
set to C:\jakarta-tomcat-4.0

Does anyone have an idea as to what the problem is.. and where i'm doing a mistake...
Looks like there are some significant changes made from tomcat 4.0 to 4.0.1.

Thanks in advance
Praveen



How to write a filter in Tomcat 4

2001-12-21 Thread Donie Kelly

Hi all

Can anybody give me a template for a filer which reads and writes to/from
the servlet being filtered.

I'm having a problem where reads are being blocked. Must be something to do
with content length, I'm not sure.

Basically, it's the last day before Christmas and it doesn't work so if
somebody has some working filter example It'd make my Christmas and allow me
to get outta here tonight

Thanks very much
Donie

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Re: HTTP error 503. Please please help !

2001-12-21 Thread ian silvester

fair point - are you using a webserver in front of Tomcat Caroline? or does
the error get thrown if you browse to Tomcat directly at port 8080 (by
default)?

ian

- Original Message -
From: "Fred Schroomnig" <[EMAIL PROTECTED]>
To: ""Tomcat Users List"" <[EMAIL PROTECTED]>
Sent: Friday, December 21, 2001 3:07 PM
Subject: RE: Re: HTTP error 503. Please please help !


> Excuse my naiv question, but if I understand this correctly then the 503
error is returned to the browser (client) by the Webserver due to some kind
of problem between the Webserver and the Appserver, in this case TomCat. If
I had a servlet that sent of a request to some kind of other server and
receive in return the 503 Status Code then that would mean that the
webserver that I sent the request to is having problems talking to the
Appserver behind it. Did I understand this correctly? The reason I'm asking
is because I had a similar problem in one of my apps not to long ago.
>
> Thanks in Advance, Fred
>
>
>
> [EMAIL PROTECTED] wrote:
>
> >
> >5xx errors are generated by the server when it realises that it cannot
> >process a request or something prevented it from handling the request
> >correctly. Try deleting the work directory and restarting the tomcat.
Also
> >check your JSP pages.
> >Thanks.
> >RS
> >
> >
> >
> >
> >
> >Caroline Clewlow <[EMAIL PROTECTED]> on 12/21/2001 03:42:24 AM
> >
> >Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>
> >
> >To:   [EMAIL PROTECTED]
> >cc:
> >
> >Subject:  HTTP error 503.  Please please help !
> >
> >Hi
> >I have installed Tomcat 4.01 but cannot access any JSP pages.  When I try
I
> >receive HTTP error 503 saying the jsp service is  not available.
> >I've read one or two queries like this on the mailing list but haven't
seen
> >any replies that solve the problem.
> >Can anyone help me please ?
> >Thanks
> >Caroline
> >
> >
> >
> >--
> >To unsubscribe:   
> >For additional commands: 
> >Troubles with the list: 
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >--
> >To unsubscribe:   
> >For additional commands: 
> >Troubles with the list: 
> >
> >
> --
>
>
>
>
> __
> Your favorite stores, helpful shopping tools and great gift ideas.
Experience the convenience of buying online with Shop@Netscape!
http://shopnow.netscape.com/
>
> Get your own FREE, personal Netscape Mail account today at
http://webmail.netscape.com/
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Re: HTTP error 503. Please please help !

2001-12-21 Thread Fred Schroomnig

Excuse my naiv question, but if I understand this correctly then the 503 error is 
returned to the browser (client) by the Webserver due to some kind of problem between 
the Webserver and the Appserver, in this case TomCat. If I had a servlet that sent of 
a request to some kind of other server and receive in return the 503 Status Code then 
that would mean that the webserver that I sent the request to is having problems 
talking to the Appserver behind it. Did I understand this correctly? The reason I'm 
asking is because I had a similar problem in one of my apps not to long ago. 

Thanks in Advance, Fred



[EMAIL PROTECTED] wrote:

>
>5xx errors are generated by the server when it realises that it cannot
>process a request or something prevented it from handling the request
>correctly. Try deleting the work directory and restarting the tomcat. Also
>check your JSP pages.
>Thanks.
>RS
>
>
>
>
>
>Caroline Clewlow <[EMAIL PROTECTED]> on 12/21/2001 03:42:24 AM
>
>Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>
>
>To:   [EMAIL PROTECTED]
>cc:
>
>Subject:  HTTP error 503.  Please please help !
>
>Hi
>I have installed Tomcat 4.01 but cannot access any JSP pages.  When I try I
>receive HTTP error 503 saying the jsp service is  not available.
>I've read one or two queries like this on the mailing list but haven't seen
>any replies that solve the problem.
>Can anyone help me please ?
>Thanks
>Caroline
>
>
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 
>
>
>
>
>
>
>
>
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 
>
>
-- 




__
Your favorite stores, helpful shopping tools and great gift ideas. Experience the 
convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: HTTP error 503.

2001-12-21 Thread ian silvester

Fair comment - I know it get s frustrating when you've got a prob and get
ignored.

So do the supplied webapps serve at all or is it just your own code? The
java.lang.IncompatibleClassChangeError is often caused by Tomcat's failure
to pick up a changed (recompiled) class correctly (the new one not matching
the complied version in the 'work' dir. As someone else just mailed, this is
fixed by stopping tomcat, deleting the wok dir, then restarting. That said,
if you've got a fresh install this shouldn't have been a problem.

Perhaps worth un/reinstlling your JDK? There are a couple of known issues
with the 1.3 release - unless you need any of its features specifically I'd
go for 1.2 - it seems a more 'mature' release, as it were.

ian


- Original Message -
From: "Caroline Clewlow" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, December 21, 2001 2:51 PM
Subject: Re: HTTP error 503.


> Thanks.  I have tried removing the install and done everything again to no
avail.
> I'll check the documentation again tho to ensure I have covered
everything.
>
> Apologies for the pleading but having posted a request twice previously
with no reponse I was beginning to get deperate.
> I shall endeavour not to use the mailing list inappropriately again.
>
> Caroline
>
> 12/21/01 2:37:05 PM, "ian silvester" <[EMAIL PROTECTED]> wrote:
>
> >At first sight it looks like a bad install. I don't know the cause of the
> >error specifically, but if the 'JSP service is unavailable' then it
sounds
> >as though Tomcat not up and running properly.
> >
> >Can you access the built-in webapps and not your own code, or do none of
> >them serve?If its the former, then your code is at fault, if the latter,
> >then a bad install seems likely.
> >
> >I suggest you remove tomcat completely (maybe even download the installer
> >again) and reinstall but do so going through the installation readme with
a
> >fine-tooth comb and make sure you have done _everything_ it says - it is
> >very easy to skip stages because, say, a paragraph starts with something
> >that's irrelevant to your OS but then says something crucial later on.
> >
> >Also, please do not plead and use exclamation marks in your subject
lines,
> >it does not improve your chances of receiving a response - usually quite
the
> >reverse!
> >
> >good luck,
> >
> >Ian Silvester
> >
> >
> >- Original Message -
> >From: "Caroline Clewlow" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Friday, December 21, 2001 9:42 AM
> >Subject: HTTP error 503. Please please help !
> >
> >
> >> Hi
> >> I have installed Tomcat 4.01 but cannot access any JSP pages.  When I
try
> >I receive HTTP error 503 saying the jsp service is  not available.
> >> I've read one or two queries like this on the mailing list but haven't
> >seen any replies that solve the problem.
> >> Can anyone help me please ?
> >> Thanks
> >> Caroline
> >>
> >>
> >>
> >> --
> >> To unsubscribe:   
> >> For additional commands: 
> >> Troubles with the list: 
> >>
> >>
> >
> >
> >
> >--
> >To unsubscribe:   
> >For additional commands: 
> >Troubles with the list: 
> >
> >
> >
>
>
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: HTTP error 503.

2001-12-21 Thread Caroline Clewlow

Thanks.  I have tried removing the install and done everything again to no avail.  
I'll check the documentation again tho to ensure I have covered everything.

Apologies for the pleading but having posted a request twice previously with no 
reponse I was beginning to get deperate.  
I shall endeavour not to use the mailing list inappropriately again.

Caroline

12/21/01 2:37:05 PM, "ian silvester" <[EMAIL PROTECTED]> wrote:

>At first sight it looks like a bad install. I don't know the cause of the
>error specifically, but if the 'JSP service is unavailable' then it sounds
>as though Tomcat not up and running properly.
>
>Can you access the built-in webapps and not your own code, or do none of
>them serve?If its the former, then your code is at fault, if the latter,
>then a bad install seems likely.
>
>I suggest you remove tomcat completely (maybe even download the installer
>again) and reinstall but do so going through the installation readme with a
>fine-tooth comb and make sure you have done _everything_ it says - it is
>very easy to skip stages because, say, a paragraph starts with something
>that's irrelevant to your OS but then says something crucial later on.
>
>Also, please do not plead and use exclamation marks in your subject lines,
>it does not improve your chances of receiving a response - usually quite the
>reverse!
>
>good luck,
>
>Ian Silvester
>
>
>- Original Message -
>From: "Caroline Clewlow" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Friday, December 21, 2001 9:42 AM
>Subject: HTTP error 503. Please please help !
>
>
>> Hi
>> I have installed Tomcat 4.01 but cannot access any JSP pages.  When I try
>I receive HTTP error 503 saying the jsp service is  not available.
>> I've read one or two queries like this on the mailing list but haven't
>seen any replies that solve the problem.
>> Can anyone help me please ?
>> Thanks
>> Caroline
>>
>>
>>
>> --
>> To unsubscribe:   
>> For additional commands: 
>> Troubles with the list: 
>>
>>
>
>
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 
>
>
>




--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: HTTP error 503. Please please help !

2001-12-21 Thread RSEQUEIRA


5xx errors are generated by the server when it realises that it cannot
process a request or something prevented it from handling the request
correctly. Try deleting the work directory and restarting the tomcat. Also
check your JSP pages.
Thanks.
RS





Caroline Clewlow <[EMAIL PROTECTED]> on 12/21/2001 03:42:24 AM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:   [EMAIL PROTECTED]
cc:

Subject:  HTTP error 503.  Please please help !

Hi
I have installed Tomcat 4.01 but cannot access any JSP pages.  When I try I
receive HTTP error 503 saying the jsp service is  not available.
I've read one or two queries like this on the mailing list but haven't seen
any replies that solve the problem.
Can anyone help me please ?
Thanks
Caroline



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 









--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




[Tomcat 3.3] Strange behaviour w/ mixed POST/GET request

2001-12-21 Thread Vincent Massol

I have a strange behaviour in Tomcat 3.3 that does not happen either in
Tomcat 4.x or in Tomcat 3.2.x (or any other servlet engine for the
matter : Orion, Resin, WebLogic). It looks like voodoo for me and I have
trouble understanding what's happening.

I am sending several different HTTP requests (using HttpURLConnection)
to the server and depending on the order I get or do not get an error.
When I get the error, it is the typical :

Connection aborted by peer: JVM_recv in socket input stream read
java.net.SocketException: Connection aborted by peer: JVM_recv in socket
inp
ut stream read
   at java.net.SocketInputStream.socketRead(Native Method)

I am doing one special request in which I send _both_ GET parameters (in
the URL) and parameters in the request body (POST method). The other
requests are only GET requests.

If I call the mixed POST/GET request first, followed by the other GET
requests then everything is fine. However, if I start by doing on GET
request and then followed by the mixed POST/GET one, I get the
connection aborted by peer error.

Any idea ? Any known issues with mixed POST/GET requests ?

Thanks a lot for any hint as I'm beginning to tear my hair ... :-)
-Vincent



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: protecting a non-jsp file from accessing

2001-12-21 Thread SHeyns

I would include the file in the same place as the class file (in the
app-root/web-inf/classes/...)- then you can use something like
.class.getResourceAsStream("/db.cfg"); Then you can read the configuration properties from that
stream (Dont forget to close it after reading the contents).
By default tomcat blocks all access to the web-inf folder

S.

-Original Message-
From: Venkat Dosapati [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 21, 2001 12:47 AM
To: Tomcat Users List
Subject: protecting a non-jsp file from accessing 


Hi,
I have been using Tomcat 3.2.1 with Apache for my application deployment. 
In my application I have a database configuration file called db.cfg. 
The file is placed in document root directory. Now my problem is that the 
file can be accessed through the browser by using
http:///db.cfg. 
Is there anyway to block the file from users. Any ideas will be appreciated.


Thanx in advance. 


Venkat


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: protecting a non-jsp file from accessing

2001-12-21 Thread ian silvester

There is help on this in the Tomcat documentation. Can't remember where off
the top of my head but have a dig around in the 'docs' dir. If not, a quick
web search will certainly turn up the file.

ian


- Original Message -
From: "Venkat Dosapati" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, December 21, 2001 6:47 AM
Subject: protecting a non-jsp file from accessing


Hi,
I have been using Tomcat 3.2.1 with Apache for my application deployment.
In my application I have a database configuration file called db.cfg.
The file is placed in document root directory. Now my problem is that the
file can be accessed through the browser by using
http:///db.cfg.
Is there anyway to block the file from users. Any ideas will be appreciated.

Thanx in advance.


Venkat



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: HTTP error 503. Please please help !

2001-12-21 Thread ian silvester

At first sight it looks like a bad install. I don't know the cause of the
error specifically, but if the 'JSP service is unavailable' then it sounds
as though Tomcat not up and running properly.

Can you access the built-in webapps and not your own code, or do none of
them serve?If its the former, then your code is at fault, if the latter,
then a bad install seems likely.

I suggest you remove tomcat completely (maybe even download the installer
again) and reinstall but do so going through the installation readme with a
fine-tooth comb and make sure you have done _everything_ it says - it is
very easy to skip stages because, say, a paragraph starts with something
that's irrelevant to your OS but then says something crucial later on.

Also, please do not plead and use exclamation marks in your subject lines,
it does not improve your chances of receiving a response - usually quite the
reverse!

good luck,

Ian Silvester


- Original Message -
From: "Caroline Clewlow" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, December 21, 2001 9:42 AM
Subject: HTTP error 503. Please please help !


> Hi
> I have installed Tomcat 4.01 but cannot access any JSP pages.  When I try
I receive HTTP error 503 saying the jsp service is  not available.
> I've read one or two queries like this on the mailing list but haven't
seen any replies that solve the problem.
> Can anyone help me please ?
> Thanks
> Caroline
>
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




JSPServlet class

2001-12-21 Thread Caroline Clewlow

Does anyone know why I might get a 

java.lang.IncompatibleClassChangeError

when the server tries to load the jasper.servlet.JSPServlet class ?

I'm running tomcat 4.0.1 on Windows NT with JDK 1.3

Thanks



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




servlet-mapping problem - tomcat 4.0.1

2001-12-21 Thread Scott Eade

How do I default a user to my servlet without blocking access
to other directories?  Using a default mapping of "/" results in
failure to gain access to resources under my servlet directory.

I think I have a fairly standard set-up of tomcat 4.0.1 on win2k.

Within C:\jakarta-tomcat-4.0.1\webapps I have a directory
structure like this:

myapp
styles
global.css
WEB_INF
web.xml
lib
[jar files]

web.xml defines a servlet whose output includes a reference to 
http://mysite.com/myapp/styles/global.css

If I set my servlet mapping up like this:

myapp
/

then the stylesheet cannot be loaded when the user surfs to
http://mysite.com/myapp/

Alternatively if I set up my mapping like this:

myapp
/foo/*

then the stylesheet can be located, but the user must surf to
http://mysite.com/myapp/foo/

How can I configure tomcat or structure my directories so that 
a user can surf to http://mysite.com/myapp/ and also successfully
access the stylesheet?

Note that the above is a contrived example.  The real servlet
includes many other resources in the myapp directory to which
the servlet refers.

Any advice would be most welcome.

Thanks,

Scott



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




ERROR reading java.io.FileInputStream@7a29a1

2001-12-21 Thread Peter Georgiou

HI

I'm running Tomcat 4 on Win2k and get the following error when I try to
start Tomcat.  Tomcat has always worked fine for me, so I don't know why
this error has suddenly appeared.  Any help please.

Here is the error:

Starting service Tomcat-Standalone
Apache Tomcat/4.0
ERROR reading java.io.FileInputStream@7a29a1
At Line 57 /web-app/servlet/

Starting service Tomcat-Apache
Apache Tomcat/4.0


Thanks

Peter





--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




[ANNOUNCEMENT] Tomcat 4.0.2 beta 1 released

2001-12-21 Thread Remy Maucherat

The Tomcat Team is proud to announce the first beta release of Tomcat 4.0.2.

Highligts for this release include:
- specification compliance fixes
- better handling of SingleThreadModel servlets
- many other bugfixes in Catalina and Jasper

Downloads (source and binaries):
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.2-b1/
Note: RPMs are not available at the moment, but will be made available
shortly.

Release notes and full changelog:
http://cvs.apache.org/viewcvs.cgi/~checkout~/jakarta-tomcat-4.0/Attic/RELEAS
E-NOTES-4.0.2-B1.txt?rev=1.1.2.7

Remy


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




HTTP error 503. Please please help !

2001-12-21 Thread Caroline Clewlow

Hi
I have installed Tomcat 4.01 but cannot access any JSP pages.  When I try I receive 
HTTP error 503 saying the jsp service is  not available.
I've read one or two queries like this on the mailing list but haven't seen any 
replies that solve the problem.
Can anyone help me please ?
Thanks
Caroline



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: black magic mystery

2001-12-21 Thread Justin Rowles

> I have never used a debugger for java before,
> can gdb be used on java? strange.

AIUI gdb can be used on anything that is gdb compliant.  It uses an API to
talk to the debugger, rather than gdb taking over the program.

I may be subtly wrong, but you get the idea.

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



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




--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE:

2001-12-21 Thread Justin Rowles

> RTFM  

Read the (friendly) manual.

For this and any other acronym questions, go to google and type in (say)
RTFM and acronym.  You'll find it in no time.

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



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




--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: mod_webapp compile problems

2001-12-21 Thread Lars Nielsen Lind

I have fixed the problem. Just added --enable-debug to the compile command,
and then it was possible to use the make command.

Best regards,
Lars Nielsen Lind

- Original Message -
From: "Lars Nielsen Lind" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, December 21, 2001 10:06 AM
Subject: Re: mod_webapp compile problems


> Thanks. That is working fine now - but
>
> When I use the ./make command I receive the following message:
>
> make: *** No Targets. Stop
>
> Whats wrong?
>
> Best regards,
> Lars Nielsen Lind
>
>
> - Original Message -
> From: "Cavan Morris" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Friday, December 21, 2001 9:12 AM
> Subject: Re: mod_webapp compile problems
>
>
> you need to run
> > ./support/buildconf.sh
> first.  That will create the .configure file.
> - Original Message -
> From: "Lars Nielsen Lind" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Friday, December 21, 2001 12:04 AM
> Subject: mod_webapp compile problems
>
>
> Hi.
>
> I have downloadet the source version of mod_webapp and now I want to
compile
> it with -deapi.
>
> I have unpacked the mod_webapp tar file with the source but there is no
> configure file. The readme.txt file says that I could use the following
> command to compile mod_webapp:
>
> ./configure -deapi
>
> That is not possible without the configure file.
>
> Are the someone that have successfully compiled mod_webapp with -deapi for
> the Linux platform that can help (which version of mod_webapp, how to
> compile and where to get it)?
>
> I have used this version of mod_webapp:
>
>
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.1/src/webap
> p-module-1.0.1-tc401-src.tar.gz
>
> Best regards,
> Lars Nielsen Lind
>
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>
>
>
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>
>



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: mod_webapp compile problems

2001-12-21 Thread Lars Nielsen Lind

Thanks. That is working fine now - but

When I use the ./make command I receive the following message:

make: *** No Targets. Stop

Whats wrong?

Best regards,
Lars Nielsen Lind


- Original Message -
From: "Cavan Morris" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, December 21, 2001 9:12 AM
Subject: Re: mod_webapp compile problems


you need to run
> ./support/buildconf.sh
first.  That will create the .configure file.
- Original Message -
From: "Lars Nielsen Lind" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, December 21, 2001 12:04 AM
Subject: mod_webapp compile problems


Hi.

I have downloadet the source version of mod_webapp and now I want to compile
it with -deapi.

I have unpacked the mod_webapp tar file with the source but there is no
configure file. The readme.txt file says that I could use the following
command to compile mod_webapp:

./configure -deapi

That is not possible without the configure file.

Are the someone that have successfully compiled mod_webapp with -deapi for
the Linux platform that can help (which version of mod_webapp, how to
compile and where to get it)?

I have used this version of mod_webapp:

http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.1/src/webap
p-module-1.0.1-tc401-src.tar.gz

Best regards,
Lars Nielsen Lind



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 






--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: mod_webapp compile problems

2001-12-21 Thread Cavan Morris

you need to run
> ./support/buildconf.sh
first.  That will create the .configure file.
- Original Message - 
From: "Lars Nielsen Lind" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, December 21, 2001 12:04 AM
Subject: mod_webapp compile problems


Hi.

I have downloadet the source version of mod_webapp and now I want to compile it with 
-deapi.

I have unpacked the mod_webapp tar file with the source but there is no configure 
file. The readme.txt file says that I could use the following command to compile 
mod_webapp:

./configure -deapi

That is not possible without the configure file.

Are the someone that have successfully compiled mod_webapp with -deapi for the Linux 
platform that can help (which version of mod_webapp, how to compile and where to get 
it)?

I have used this version of mod_webapp:

http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.1/src/webapp-module-1.0.1-tc401-src.tar.gz

Best regards,
Lars Nielsen Lind 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




mod_webapp compile problems

2001-12-21 Thread Lars Nielsen Lind

Hi.

I have downloadet the source version of mod_webapp and now I want to compile it with 
-deapi.

I have unpacked the mod_webapp tar file with the source but there is no configure 
file. The readme.txt file says that I could use the following command to compile 
mod_webapp:

./configure -deapi

That is not possible without the configure file.

Are the someone that have successfully compiled mod_webapp with -deapi for the Linux 
platform that can help (which version of mod_webapp, how to compile and where to get 
it)?

I have used this version of mod_webapp:

http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.1/src/webapp-module-1.0.1-tc401-src.tar.gz

Best regards,
Lars Nielsen Lind