Tomcat with Java 1.3 under NT

2000-11-16 Thread Sam Joseph

Hi there,

I just upgraded to Java 1.3 but now my tomcat won't run, complaining
that it wants to see jre 1.2 instead of jre 1.3 (which it finds in the
registry).  I tried to re-install tomcat, both the latest stable and
milestone builds, but to no avail.  I giess I am about to start
uninstalling java 1.3, but I know from a friend that tomcat runs with
java 1.3 under linux, so perhaps there is a way around this.

Any suggestions?

CHEERS> SAM







RE: using SSL on standalone Tomcat - Urgent !

2000-11-16 Thread Lacerda, Wellington (AFIS)

High Craigh,

Didn't work. I still can do http://localhost:8080/wlss/another_page.jsp
  , which is not SSL, and get
answered. I was expecting a NOT FOUND error on port 8080. Is this the
expected behaviour ? 
The logs don't show anything either.

Version 3.2b7 on NT4.0sp6 JDK 1.3 JSSE1.0.2.
Do I need a test certificate from a cert auth to get this running (don't
think so)?

Thanks,

Wellington



-Original Message-
From:   Craig R. McClanahan
[mailto:[EMAIL PROTECTED]]
Sent:   16 November 2000 04:19
To: [EMAIL PROTECTED]
Subject:Re: using SSL on standalone Tomcat - Urgent
!

"Lacerda, Wellington (AFIS)" wrote:

> Hi All,
>
> I've set up SSL on a 3.2b7 instance. Also I defined a
context, say /wlss,
> with a directory and a resource, say /wlss1/index.htm
inside that context.
>
> I want to configure that context in such a way that the
access to
> /wlss1/index.htm is only allowed if the transport is
guaranteed at
> confidential level(SSL). I read the spec and created this
web.xml to do the
> job:
>
> 
>  
>   
>a
>/wlss1/*

Change this to "/*".  The  setting is relative
to your context,
not to the server root.

>
>GET
>POST
>
>
CONFIDENTIAL
>
>   
>  
> 
>
> By my understanding, I'm allowing access to the resource
collection "a" -
> mapped to /wlss1/anything with GET or POST only through a
confidential
> transport - SSL.
>
> It's not working at all. I can still access it through
normal http. Am I
> missing something here ?
>
> Another question - how to impose confidential transport to
the entire
> context ?
>
> Thanks in advance for any help,
>
> Wellington Silva
> UN/FAO

Craig McClanahan




Re: aaargh..

2000-11-16 Thread Alexander ten Bruggencate

William Brogden wrote:

> Alexander ten Bruggencate wrote:
> >
> > for the past 3 days i've been trying to get a jsp to work with an ejb of
> > mine.
> > the only problem is that  and  > /> won't work.
> >
> > tomcat reports: org.apache.jasper.JasperException: Attempted a bean
> > operation on a null object.
> > at
> > 
>org.apache.jasper.runtime.JspRuntimeLibrary.handleGetProperty(JspRuntimeLibrary.java:427)
> >
> > part of the jsp file:
> > <%
> > nl.step.stepdb.person.interfaces.Person p;
> > p = pbrowse.createUser();
> > %>
> >
> > now I KNOW that the creation of the person is succesfull because it
> > turns up in the datatbase.
> > so what's wrong here?
> >
> > i use jboss-2.0-final with tomcat 3.2b7.
> > i could really use some help here...
> >
> > -Alexander.
>
> In your useBean tag, did you give the complete package when naming the
> class?
> If you just give the class, the bean will not be created.
>
> --
> WBB - [EMAIL PROTECTED]
> Author of Java Developer's Guide to Servlets and JSP
> ISBN 0-7821-2809-2

Hi!,

i didn't use the  tag at all, because i made an idGeneratorBean that 
creates a
unique id for a person. Right now this means that  cannot create a 
person
because it doesn't know how to give that person a unique id...

So you are saying that the usebean tag should create the instance of my person bean? 
and only
after that can i try getProperty and setProperty?

This would mean some re-writing of my beans, so something like below WOULD work?
:::
add.jsp
:::




just for arguments sake, why does then usebean tag need to create a bean before i can 
use set-
and getProperty on it?

thnx,
-Alexander.




Re: How to set the ROOT w Apache

2000-11-16 Thread Fritz Thielemann

Hi Maik,

you have to correct your httpd.conf section DocumentRoot to point to
webapps/ROOT.

Fritz

Maik Wiege schrieb:

> Hello,
> I do not get it with this servlet.xml...
> This is what I want:
> I put all my static-files and jsp's into the TOMCAT_HOME\webapps\ROOT -
> directory and some subdirectorys; and my classes and libs into the web-inf.
> This project should be the default, so that http://localhost/ points to
> TOMCAT_HOME\webapps\ROOT \index.html and http://localhost/servlets/Hello
> should invoke the Servlet Hello.class in
> TOMCAT_HOME\webapps\ROOT\web-inf\classes\
> Of course I want my Apache-Server to serve the static HTML and Image files!
>
> Can someone show me now what exactly I have to put into the server.xml,
> web.xml and myTomcat-apache.conf (my file included into the httpd.conf)
>
> Thank you for your help
>   Maik




Re: AW: Accessing Beans; was: aaargh..

2000-11-16 Thread Alexander ten Bruggencate

Ralph Einfeldt wrote:

> You are mixing to different things.
>
>  works on beans.
> In JSP beans have to be declared and created
> with the  tag.
>
> So your p is not a bean to JSP. To change
> this you have to use the  tag.
> Otherwise the only way to access it, is to
> use it in expressions <%= p.someMethod() %> or
> scriptlets <% p.anotherMethod(); %>
>
> > -Ursprüngliche Nachricht-
> > Von: Alexander ten Bruggencate [mailto:[EMAIL PROTECTED]]
> > Gesendet: Mittwoch, 15. November 2000 16:58
> > An: tomcat-user
> > Betreff: aaargh..
> 
> > the only problem is that  and  > /> won't work.
> 
> > part of the jsp file:
> > <%
> > nl.step.stepdb.person.interfaces.Person p;
> > p = pbrowse.createUser();
> > %>
> 

Hi,

thank you for that explanation,  i'm beginning to see the light...also
because william brogden replied to my orginal mail. ^_^

Although i still think it's strange that i have to use the useBean tag.

for example can i call different constructors of  the same bean with the
useBean tag?

-Alexander.





500: Response has already been committed (huh?)

2000-11-16 Thread freakazoid

since i tried to setup and run tomcat on another machine,
i'm getting this error in several jsp files:

500 Internal Servlet Error:

java.lang.IllegalStateException: Response has already been committed
 at
org.apache.tomcat.core.HttpServletResponseFacade.sendError(HttpServletResponseFacade.java:157)

 at
org.apache.jasper.runtime.JspServlet.unknownException(JspServlet.java:299)

 at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:377)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)

 at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
 at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160)

 at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)

 at java.lang.Thread.run(Unknown Source)

i'm using jdk 1.3, jsdk 2.1 and tomcat 1.3 under  winnt 4

anybody got an idea???

tnx,

freakazoid





Re: Configuring Tomcat question

2000-11-16 Thread Marco van Meegen

actually I tried that for my application under NT and added an absolute path for
the context.
The problem with Tomcat 3.1 is, that it searches the web.xml file for the
context under TOMCAT_HOME/webapps/MY_ABSOLUTE_WEB_APP_PATH
but serves the files correctly from the given /MY_ABSOLUTE_WEB_APP_PATH.

Anyone got an idea if that is fixed in 3.2b7 ?

Marco

Mike La Budde wrote:

> Simply create a new subdirectory, e.g. .../tomcat/webapps/mywebapp, and
> copy over the stuff you've created/modified from the examples directory.
> Don't forget to add your new context to .../tomcat/conf/server.xml.
>
> HTH,
>
> Mike
>
> At 11/15/2000 06:36 PM +0100, you wrote:
> >How can I configure Tomcat (on NT) such that I can move my jsp files (that
> >I'm developing) to a directory other than
> >.../tomcat/webapps/examples/jsp/servlet/? This all works well and good, but
> >I'd like to move the files to a more appropriate location (like my webapp).
> >
> >
> >?Tristan THEVENIN
> >




Re: WWW-Authentication using Tomcat-form-based-login and Apache

2000-11-16 Thread Marco van Meegen

sounds like I've got exactly the same problem. I didn't follow the thread in
the dev-mailinglist,
so I'm sorry if I repeat problems already solved there...

I'd like to set up exactly the same thing and found the same source in the
Professional JSP-book.
The questions for me are:

1) Tomcat 3.1 declares security-related features as alpha; anyone got an idea,
if security in 3.2b7
might be suitable for production use already ?
2) If I define a security-constraint in Tomcat, using Apache and Tomcat; will
Apache know about this constraint ?
   Or do I have to serve all files under security constraints using tomcat,
even the static ones ?
   If so, would there be any reason for using Apache at all ?

Thanks for any clue in the darkness of authentication...

Marco



Danno Ferrin wrote:

> What you would want to do then is to use form based authentication and
> enable the JDBC realm.
>
> --Danno
> p.s. please continue discussion in the tomcat-user list.  The dev list
> is for patches, comments about the code, etc., and not use of tomcat
> itself.  [EMAIL PROTECTED] is meant for the use of tomcat
> itself and for configuration questions such as this.
>
> shahed wrote:
>
> > I am using Tomcat 3.1 with Apache/Stronghold.
> > I assumed that all the web.xml stuff would not work.
> > Am I right ? or will it still work ?
> >
> > Also, I want to auth against a database. In the book Professional JSP,
> > there is an example of using a security interceptor. But again,
> > will that work if I am using Apache + Tomcat ?
> >
> >> You need to set up the web-app to require authentication.  In the
> >> web.xml in the WEB-APP directory you need to add a security-constraint
> >> element and a login-config element.  There are examples in the examples
> >> web-app.
> >
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >




Tomcat 3.2-b7 not compliant to Servlet Specification 2.2 ?!

2000-11-16 Thread Jochen Schneider



Hi,I posted the attached error description 
a few weeks ago but didn't get any response. Yesterday I tried tomcat 3.2-b7 and 
the error seems to be still in there. It seems that tomcat does not 
remove all previously added contexts if it is shutdown. This is a major problem 
because if the context is not properly removed the destroy method of the 
servlets is not called, which is guaranteed by the serlvet specification. 
Therefor 3.2 does not comply with JSDK 2.2. 
 
I have put some log messages in the destroy method 
of my servlets, but this method is never called if I shutdown tomcat using the 
shutdown.bat command script. 
 
This behaviour can be reproduced with the three web 
apps coming with tomcat: (example, admin, test). If tomcat (3.2-b7)  
is started from a command prompt ( tomcat.bat run)  the following 
output is produced (Test environment : JDK 1.2.2, 
Win NT 4.0 SP5, Tomcat 3.2-b7):
[e:\temp\tomcat-3.2-b7\bin]tomcat.bat 
runIncluding all jars in e:\temp\tomcat-3.2-b7\lib in your 
CLASSPATH.Using CLASSPATH: 
e:\temp\tomcat-3.2-b7\classes;e:\temp\tomcat-3.2-b7\lib\ant.jar;e:\temp\tomcat-3.2-b7\lib\jasper.jar;e:\temp\tomcat-3.2-b7\lib\jaxp.jar;e:\temp\tomcat-3.2-b7\lib\parser.jar;e:\temp\tomcat-3.2-b7\lib\servlet.jar;e:\temp\tomcat-3.2-b7\lib\webserver.jar2000-11-15 
05:09:23 - ContextManager: Adding context Ctx( /examples )2000-11-15 
05:09:23 - ContextManager: Adding context Ctx( /admin )Starting tomcat. 
Check logs/tomcat.log for error messages2000-11-15 05:09:23 - 
ContextManager: Adding context Ctx(  )2000-11-15 05:09:23 - 
ContextManager: Adding context Ctx( /test )2000-11-15 05:09:23 - 
PoolTcpConnector: Starting HttpConnectionHandler on 80802000-11-15 05:09:23 
- PoolTcpConnector: Starting Ajp12ConnectionHandler on 8007
 
All contexts were added properly!
 
If I shutdown tomcat using the stop script 
(shutdown.bat) from another command prompt the following output is produced 
: 2000-11-15 05:09:27 - ContextManager: Removing context 
Ctx( /examples )2000-11-15 05:09:27 - ContextManager: Removing context 
Ctx(  )
 
As you can see only the /example and the root 
context was removed. The real strange thing is that the output varies! Here is 
the output of a second try with exact the same environment!
[e:\temp\tomcat-3.2-b7\bin]tomcat.bat runIncluding all jars in 
e:\temp\tomcat-3.2-b7\lib in your CLASSPATH.Using CLASSPATH: 
e:\temp\tomcat-3.2-b7\classes;e:\temp\tomcat-3.2-b7\lib\ant.jar;e:\temp\tomcat-3.2-b7\lib\jasper.jar;e:\temp\tomcat-3.2-b7\lib\jaxp.jar;e:\temp\tomcat-3.2-b7\lib\parser.jar;e:\temp\tomcat-3.2-b7\lib\servlet.jar;e:\temp\tomcat-3.2-b7\lib\webserver.jar2000-11-15 
05:09:34 - ContextManager: Adding context Ctx( /examples )2000-11-15 
05:09:34 - ContextManager: Adding context Ctx( /admin )Starting tomcat. 
Check logs/tomcat.log for error messages2000-11-15 05:09:34 - 
ContextManager: Adding context Ctx(  )2000-11-15 05:09:34 - 
ContextManager: Adding context Ctx( /test )2000-11-15 05:09:35 - 
PoolTcpConnector: Starting HttpConnectionHandler on 80802000-11-15 05:09:35 
- PoolTcpConnector: Starting Ajp12ConnectionHandler on 8007
2000-11-15 
05:09:37 - ContextManager: Removing context Ctx( /examples 
)
 
Now only the example context was removed by the 
ContextManager.
 
 
This behavior is a major problem for us since we 
rely on the destroy method of the servlet to release some handles in a remote 
object. I tried a lot of things but didn't succeed. 
 
 
I really would appreciate any help or 
comment.
 
--Jochen 
 
 


getRemoteHost() returns ""

2000-11-16 Thread Christoph Kukulies

I thought I could get the remote hostname in a Servlet
or jsp file. The following returns nothing for getRemoteHost():


HostIP="<%= request.getRemoteAddr() %>"




I was suspecting it is a name resolution (DNS) problem but my
nameresolution sequence is hosts, then bind. And the host 192.168.1.119 
for example (it's an intranet) can be found.

Any clues?
-- 
Chris Christoph P. U. Kukulies [EMAIL PROTECTED]




Netscape can't find css

2000-11-16 Thread Philipp Zuderell

Hi all!

I have written a servlet that uses a StyleSheet to produce an HTML Page.

While the app works fine in IE5, NS4.75 returns the following error
Message:


Error: 404

Location:
/examples/servlet/D:/jakarta-tomcat/webapps/examples/Web-inf/classes/spc.css



I use absolute paths  everywhere in the program, and they all work (with
NS, too) except  this one.

Any help will be appreciated.
Thanks

Philipp





RE: Netscape can't find css

2000-11-16 Thread David Molloy



-Original Message-
From: Philipp Zuderell [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 16, 2000 9:37 AM
To: [EMAIL PROTECTED]
Subject: Netscape can't find css


Hi all!

I have written a servlet that uses a StyleSheet to produce an HTML Page.

While the app works fine in IE5, NS4.75 returns the following error
Message:


Error: 404

Location:
/examples/servlet/D:/jakarta-tomcat/webapps/examples/Web-inf/classes/spc.css



I use absolute paths  everywhere in the program, and they all work (with
NS, too) except  this one.

Any help will be appreciated.
Thanks

Philipp





RE: Netscape can't find css

2000-11-16 Thread David Molloy

Apologies if a blank reply went before this one - bloody machine
is acting bitchy.

Two things I can think of, either of which might be useful or not.
1. I seem to recall there being a problem with Netscape and CSS
   file locations.  IE and Netscape handle relative pathing to 
   CSS files differently so this can cause a problem similar to this.
   However you use absolute paths so it's not likely this.

2. Try putting the css file into /examples, as opposed to the classes
   directly.  It should be directly readable from the pages and it's
   not a class so it shouldn't be in there, as far as I can tell.

Dave


-Original Message-
From: Philipp Zuderell [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 16, 2000 9:37 AM
To: [EMAIL PROTECTED]
Subject: Netscape can't find css


Hi all!

I have written a servlet that uses a StyleSheet to produce an HTML Page.

While the app works fine in IE5, NS4.75 returns the following error
Message:


Error: 404

Location:
/examples/servlet/D:/jakarta-tomcat/webapps/examples/Web-inf/classes/spc.css



I use absolute paths  everywhere in the program, and they all work (with
NS, too) except  this one.

Any help will be appreciated.
Thanks

Philipp





Re: Tomcat with Java 1.3 under NT

2000-11-16 Thread Jens Rehpöhler

Hi Sam,

I had the same problem and could fix it by making some changes in the
registry:

[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment]
"CurrentVersion"="1.3"

> I just upgraded to Java 1.3 but now my tomcat won't run, complaining
> that it wants to see jre 1.2 instead of jre 1.3 (which it finds in the
> registry).  I tried to re-install tomcat, both the latest stable and
> milestone builds, but to no avail.  I giess I am about to start
> uninstalling java 1.3, but I know from a friend that tomcat runs with
> java 1.3 under linux, so perhaps there is a way around this.
>
> Any suggestions?
>
> CHEERS> SAM

--
Jens Rehpöhler



begin:vcard 
n:Rehpöhler;Jens
tel;home:++49 172 52 77 6 55
tel;work:++49 172 52 77 6 55
x-mozilla-html:FALSE
url:http://www.rehpoehler.de
org:rehpoehler.de
adr:;;Meisenweg 4;Gütersloh;;5;
version:2.1
email;internet:[EMAIL PROTECTED]
fn:Jens Rehpöhler
end:vcard



Re: Netscape can't find css

2000-11-16 Thread Jon Skeet

> I have written a servlet that uses a StyleSheet to produce an HTML Page.
> 
> While the app works fine in IE5, NS4.75 returns the following error
> Message:

> Error: 404
> 
> Location:
> /examples/servlet/D:/jakarta-tomcat/webapps/examples/Web-inf/classes/spc.css

That D:/ looks extremely odd. Why is the HTML requesting it?

Jon



Re: Tomcat with Java 1.3 under NT

2000-11-16 Thread Sam Joseph


Jens Rehpöhler wrote:

> Hi Sam,
>
> I had the same problem and could fix it by making some changes in the
> registry:
>
> [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment]
> "CurrentVersion"="1.3"

You changed the registry key back to 1.2?  Changed something else?

I just uninstalled the jre and now tomcat runs again, but I may need jre 1.3
for other applications, I'm not quite sure at the moment.

Thanks for taking the time to mail me, and apologies for the further
questions.

CHEERS> SAM


form data to ejb

2000-11-16 Thread Alexander ten Bruggencate

Can someone tell me what the preferred way is to get form data to an
ENTERPRISE javabean?
as  only work on a regular javabeans

regards,
-Alexander.




ApacheModuleJServ.dll

2000-11-16 Thread Sebastian Schulz

hi,

i uses Apache + mosssl under Win32.

Therefor i need a -DEAPI-compiled version
of ApacheModuleJServ.dll.

Unfortunately i have no MS Visual C++ Compiler
available, so i'am not able to do this by myself.

many thanks in advance!

basti





Help On Running Tomcat????

2000-11-16 Thread Mick Sullivan

Hi
Im doing a project using JSP.
I have installed Jbuilder and I am doing the HTML pages using JBuilder.
I am going to convert the HTML pages to JSP pages once I have connected 
TOMCAT to the HTML pages. I have installed Tomcat and all that happens when 
I run (bin\startup) it is that a new window opens up with 3 folders, 
classes, packages and trustlib. Anyone PLEASE tell me where I go from here 
as I am totally lost.
Thanks in advance, Mick
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.com.




getting mod_jk to compile on solaris

2000-11-16 Thread Student7 SNT
Title: getting mod_jk to compile on solaris






I'm not subscribed to this group, but I recently had a problem with getting mod_jk to compile on solaris


I noticed a lot of people having the same problem but getting a reply back that this was because the code for mod_jk was buggy. This is innacurate. The problem is with the apxs file. If you have not set your config right before you did an install of apache, you might have a problem.

The problem comes when it attempts to group *.o into one big mod_jk.so... This should be done with "gcc -G -o mod_jk.so *.o" but instead, the apxs file will probably try " mod_jk.so *.o" obviously soliciting an error. After a bit of rooting around in the bowels of the apxs script I found that you need to set up the following lines:

my $CFG_LD_SHLIB  = q();  # substituted via Makefile.tmpl
my $CFG_LDFLAGS_SHLIB = q( ); # substituted via Makefile.tmpl 


to read:


my $CFG_LD_SHLIB  = q(gcc);  # substituted via Makefile.tmpl
my $CFG_LDFLAGS_SHLIB = q( -G); # substituted via Makefile.tmpl 


I assume that if you set your config right in the first place this wouldn't happed, but if you have any problems with compiling mod_jk on solaris then try this..

C.Davies





Re: Help On Running Tomcat????

2000-11-16 Thread Dominique BATARD

Just look at http://community.borland.com/article/0,1410,22057,00.html

Dom

- Original Message -
From: "Mick Sullivan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 16, 2000 1:38 PM
Subject: Help On Running Tomcat


> Hi
> Im doing a project using JSP.
> I have installed Jbuilder and I am doing the HTML pages using JBuilder.
> I am going to convert the HTML pages to JSP pages once I have connected
> TOMCAT to the HTML pages. I have installed Tomcat and all that happens
when
> I run (bin\startup) it is that a new window opens up with 3 folders,
> classes, packages and trustlib. Anyone PLEASE tell me where I go from here
> as I am totally lost.
> Thanks in advance, Mick
> _
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
> Share information about yourself, create your own public profile at
> http://profiles.msn.com.
>
>




Re: Help On Running Tomcat????

2000-11-16 Thread Mick Sullivan

cheers mate
looks very helpful, this tomcat stuff is wrecking my head
good luck, mick


Original Message Follows
From: "Dominique BATARD" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: <[EMAIL PROTECTED]>
Subject: Re: Help On Running Tomcat
Date: Thu, 16 Nov 2000 14:53:20 +0100

Just look at http://community.borland.com/article/0,1410,22057,00.html

Dom

- Original Message -
From: "Mick Sullivan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 16, 2000 1:38 PM
Subject: Help On Running Tomcat


 > Hi
 > Im doing a project using JSP.
 > I have installed Jbuilder and I am doing the HTML pages using JBuilder.
 > I am going to convert the HTML pages to JSP pages once I have connected
 > TOMCAT to the HTML pages. I have installed Tomcat and all that happens
when
 > I run (bin\startup) it is that a new window opens up with 3 folders,
 > classes, packages and trustlib. Anyone PLEASE tell me where I go from 
here
 > as I am totally lost.
 > Thanks in advance, Mick
 > _
 > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
 >
 > Share information about yourself, create your own public profile at
 > http://profiles.msn.com.
 >
 >


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

Share information about yourself, create your own public profile at 
http://profiles.msn.com.




HOTOW unsubscribe

2000-11-16 Thread Wolfgang Egger

Servus,

the most mailinglists have footers that describe how to unsubscribe from
them. This list hasn't. So please can anybody write me what to do?

Wolfgang




Re: Tomcat with Java 1.3 under NT

2000-11-16 Thread Jens Rehpöhler

Hello Sam,

> > [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment]
> > "CurrentVersion"="1.3"
>
> You changed the registry key back to 1.2?  Changed something else?

No, I changed it not back, I changed it to "1.3". Perhaps you should check the
"CurrentVersion" Key in "Java Developement Kit" too.

Did you set the JAVA_HOME and PATH Variables correctly?

Regards,

Jens


begin:vcard 
n:Rehpöhler;Jens
tel;home:++49 172 52 77 6 55
tel;work:++49 172 52 77 6 55
x-mozilla-html:FALSE
url:http://www.rehpoehler.de
org:rehpoehler.de
adr:;;Meisenweg 4;Gütersloh;;5;
version:2.1
email;internet:[EMAIL PROTECTED]
fn:Jens Rehpöhler
end:vcard



AW: HOTOW unsubscribe

2000-11-16 Thread Ralph Einfeldt

>From the frequently running READ ME FIRST mail:

  To unsubscribe from this list


  To stop subscription for an alternate account
  (e.g. [EMAIL PROTECTED]) send an eMail to
[EMAIL PROTECTED]

> -Ursprüngliche Nachricht-
> Von: Wolfgang Egger [mailto:[EMAIL PROTECTED]]
> Gesendet: Donnerstag, 16. November 2000 15:22
> An: [EMAIL PROTECTED]
> Betreff: HOTOW unsubscribe
> 
> 
> Servus,
> 
> the most mailinglists have footers that describe how to 
> unsubscribe from
> them. This list hasn't. So please can anybody write me what to do?
> 
> Wolfgang
> 
> 



Re: Tomcat with Java 1.3 under NT

2000-11-16 Thread Sam Joseph


Jens Rehpöhler wrote:

> Hello Sam,
>
> > > [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment]
> > > "CurrentVersion"="1.3"
> >
> > You changed the registry key back to 1.2?  Changed something else?
>
> No, I changed it not back, I changed it to "1.3". Perhaps you should check the
> "CurrentVersion" Key in "Java Developement Kit" too.

weird.  I got an error which said that the registry key was 1.3 and that it should
be 1.2
I unistalled the JRE and now tomcat works fine

> Did you set the JAVA_HOME and PATH Variables correctly?

with JRE uninstalled there is no problem.   However checking JAVA_HOME I can see I
was trying to run tomcat with the JAVA_HOME and PATH still set to jdk1.2.2, duh.

Thanks for the help, I think this should work now.

CHEERS> SAM


AW: Tomcat with Java 1.3 under NT

2000-11-16 Thread Kurt, Oliver
BTW:

I'm using Tomcat 3.1 on NT4.0 with Java 1.2 __or__ 1.3. It works with both
version very well. I had the same problem and I changed the registry, so it
shows: "CurrentVersion"="1.3". Afterwards tomcat ran without any problems.

Regards
Oliver Kurt

-Urspr$B!&(Jgliche Nachricht-
Von: Sam Joseph [mailto:[EMAIL PROTECTED]]
Gesendet am: Donnerstag, 16. November 2000 12:32
An: [EMAIL PROTECTED]
Betreff: Re: Tomcat with Java 1.3 under NT



Jens Rehp$B!)(Jler wrote:

> Hi Sam,
>
> I had the same problem and could fix it by making some changes in the
> registry:
>
> [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment]
> "CurrentVersion"="1.3"

You changed the registry key back to 1.2?  Changed something else?

I just uninstalled the jre and now tomcat runs again, but I may need jre 1.3
for other applications, I'm not quite sure at the moment.

Thanks for taking the time to mail me, and apologies for the further
questions.

CHEERS> SAM


Testing woes - please help!!

2000-11-16 Thread Mike La Budde

I'm trying to slice up the GTest.java ant task that comes with the tomcat 
distribution. Since we are using struts and placing some things in the 
session (tho' we try to minimize that) any of my actions/pages I request 
that rely on stuff being in the session error out.

What I was hoping to do was create a new ant task(def), let's call this 
testcase, and the gtest task becomes a nested subtask. This way I could 
open the socket/connection in the testcase and just reuse it in the gtest 
subtask. Good thought, but it doesn't work. The first gtest task works, but 
all subsequent ones fail (the response is always null). Naturally, socket 
programming is not something I've done before and I was hoping there would 
be an easier way.

So, where to from here?

1) Can somebody offer pointers on socket programming?

2) Is there a better way? (What are others doing to test their webapps?)

3) Is there documentation on using the JUnit ant task? And documentation on 
JUnit itself?

Thanks in advance,

Mike




Re: Integrating servlet output into JSP

2000-11-16 Thread carnell

I have added println to both init, and service, and there is no output, so I
guess
the servlet is not being called. :(

- Original Message -
From: "Wyn Easton" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "C S Carnell" <[EMAIL PROTECTED]>
Sent: Wednesday, November 15, 2000 3:15 PM
Subject: Re: Integrating servlet output into JSP


> Well, nobody else has jumped in to tell us which method will be called,
> so, try putting the print statements in the servlets init() and
> service() methods.  Maybe that will give us something to go on.
>
> --- carnell <[EMAIL PROTECTED]> wrote:
> > I have been using doGet()!. So I make myself a doPost, and add in
> > some
> > System.err.println,
> > and neither doGet or doPost is being called. :(
> >
> > Craig.
> >
> > - Original Message -
> > From: "Wyn Easton" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>; "C S Carnell" <[EMAIL PROTECTED]>
> > Sent: Tuesday, November 14, 2000 5:15 PM
> > Subject: Re: Integrating servlet output into JSP
> >
> >
> > > Hmm...
> > > I know that if I'm in the doPost() of a servlet and I include()
> > another
> > > servlet the included servlet's doPost() method will be called.
> > > I'm not sure which method in the servlet is called when you do the
> > > include from a JSP to a servlet.
> > > Maybe you could put a System.out.println() in the doGet() and
> > > doPost() of the included servlet to see which method is being
> > called.
> > > (Or maybe someone else already knows...)
> > >
> > > --- carnell <[EMAIL PROTECTED]> wrote:
> > > > Thanks, I've tried the code,  the JSP produces my layout/menus
> > and
> > > > stuff,
> > > > but theres no output from the servlet.
> > > >
> > > > getRequestDispatcher appears to work correctly as rd is not null,
> > but
> > > > nothing seems to be included. I have tried
> > > > both the bookholidayshow, and /servlet/bookholidayshow. The
> > servlet
> > > > works
> > > > fine when entered
> > > > into the browser.(although missing html/end html tags etc, IE
> > doesn't
> > > > care
> > > > :)
> > > >
> > > > - Original Message -
> > > > From: "Wyn Easton" <[EMAIL PROTECTED]>
> > > > To: <[EMAIL PROTECTED]>
> > > > Sent: Tuesday, November 14, 2000 2:55 PM
> > > > Subject: Re: Integrating servlet output into JSP
> > > >
> > > >
> > > > > See code added below.
> > > > >
> > > > > --- carnell <[EMAIL PROTECTED]> wrote:
> > > > > > If in my JSP page, say bookholiday.jsp, I would like to
> > include
> > > > > > output from
> > > > > > bookholidayshow servlet...
> > > > > >
> > > > > > bookholiday.jsp:
> > > > > > 
> > > > > > 
> > > > > > <%
> > > > >  RequestDispather rd =
> > > > request.getRequestDispatcher("bookholidayshow");
> > > > >  if (rd != null)
> > > > >  rd.include(request, resource);
> > > > > > %>
> > > > > > 
> > > > > > 
> > > > > >
> > > > > > bookholidayshow.java(class/servlet)
> > > > > > doGet(...)
> > > > > > {
> > > > > > out.println... etc..
> > > > > > }
> > > > > >
> > > > > > But how do I use RequestDispatcher in the JSP? Can't make
> > much
> > > > sense
> > > > > > of the
> > > > > > docs.
> > > > > >
> > > > > > - Original Message -
> > > > > > From: "Wyn Easton" <[EMAIL PROTECTED]>
> > > > > > To: <[EMAIL PROTECTED]>
> > > > > > Sent: Tuesday, November 14, 2000 12:38 PM
> > > > > > Subject: Re: Integrating servlet output into JSP
> > > > > >
> > > > > >
> > > > > > > This may be over simplifying your problem, but have you
> > looked
> > > > > > > at the RequestDispather include() method?
> > > > > > > It allows you to use the output of another servlet/JSP in
> > the
> > > > > > current
> > > > > > > servlet/JSP.
> > > > > > >
> > > > > > > --- carnell <[EMAIL PROTECTED]> wrote:
> > > > > > > > I am currently migrating two projects that we have, both
> > in
> > > > > > Servlets
> > > > > > > > into
> > > > > > > > JSP.
> > > > > > > >
> > > > > > > > Rather than rewriting everything into Model 2/with JSP
> > > > > > architecture,
> > > > > > > > is it
> > > > > > > > possible for me to write a JSP page that includes the
> > output
> > > > of
> > > > > > the
> > > > > > > > Servlet(which make use of out.println a lot etc). I could
> > > > simply
> > > > > > > > remove the
> > > > > > > > outs in the Servlet which generate the html/body/end
> > body/end
> > > > > > html
> > > > > > > > HTML
> > > > > > > > tags.?
> > > > > > > >
> > > > > > > > Thanks,
> > > > > > > >
> > > > > > > > Craig.
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > =
> > > > > > > Wyn Easton
> > > > > > > [EMAIL PROTECTED]
> > > > > > >
> > > > > > > __
> > > > > > > Do You Yahoo!?
> > > > > > > Yahoo! Calendar - Get organized for the holidays!
> > > > > > > http://calendar.yahoo.com/
> > > > > > >
> > > > > >
> > > > >
> > > > >
> > > > > =
> > > > > Wyn Easton
> > > > > [EMAIL PROTECTED]
> > > > >
> > > > > __
> > > > > Do You Yahoo!?
> > > > > Yahoo! Calendar - 

overriding default webapp configuration

2000-11-16 Thread Ingo Luetkebohle

Hiya,

is there a way to override the configuration inherited from
$TOMCAT_HOME/conf/web.xml? In there, a default JSP handler is
initialized. I don't want that, but I don't want to modify the global
configuration either (other webapps might depend on it).

Please note that simply not using the JSP handler and installing a new
servlet-mapping for *.jsp is not an option unfortunately. I need to
prevent the loading altogether.

Regards

-- 
Ingo Luetkebohle / [EMAIL PROTECTED] / 95428014
/
|PraxisXML Open Source contact; Computational Linguistics
|student; Fargonauten.DE sysadmin; Gimp Registry (not-)maintainer;



Re: overriding default webapp configuration

2000-11-16 Thread Paul Gallagher


ingo
try installing a web.xml under the webapps/APP_NAME/WEB-INF directory and plugging in 
your startups - i've not done this for JSP, only servlets, but it works OK for me - 
regards, Paul

>>> [EMAIL PROTECTED] 11/16/00 03:45PM >>>
Hiya,

is there a way to override the configuration inherited from
$TOMCAT_HOME/conf/web.xml? In there, a default JSP handler is
initialized. I don't want that, but I don't want to modify the global
configuration either (other webapps might depend on it).

Please note that simply not using the JSP handler and installing a new
servlet-mapping for *.jsp is not an option unfortunately. I need to
prevent the loading altogether.

Regards

-- 
Ingo Luetkebohle / [EMAIL PROTECTED] / 95428014
/
|PraxisXML Open Source contact; Computational Linguistics
|student; Fargonauten.DE sysadmin; Gimp Registry (not-)maintainer;




RE: downloading Word doc

2000-11-16 Thread Russell Freeman

We've recently had a similar problem with Word. It seems that when a .doc
link is clicked, Word is handed the request to download. It establishes its
own server connection and then proceeds to fire the server with numerous
HTTP requests. On examination, it seems these are Word probing for Frontpage
web extensions. If you have implemented your own HTTP server it is possible
that you are not sending back the right responses? In most cases you need to
return 404 responses to Word to indicate that you don't have the requested
resources. Our problem was that our HTTP server only expected GET requests,
whereas Word was POSTing us info!

Hope that helps,
Russ

-Original Message-
From: Laurens Pit [mailto:[EMAIL PROTECTED]]
Sent: 13 November 2000 19:41
To: [EMAIL PROTECTED]
Subject: downloading Word doc


Hi,

Whenever I download a file using Tomcat (i.e. it uses
org.apache.tomcat.servlets.DefaultServlet) it works, except when I try to
download a Word document. Then the client side seems to get stuck. This is
reproducable on different client machines using different servers (Linux and
Sun). Is anyone else experiencing this problem?

I have also created a very simple Servlet to download a file. Works fine,
except again for Word documents. Downloading Word documents from e.g.
www.idrive.com work fine though, so it must be some servers-side thing. Can
anyone please help??


package com.nervewireless;

import java.io.*;
import java.util.*;
import java.sql.*;
import javax.servlet.*;
import javax.servlet.http.*;

public final class FileDownload extends HttpServlet
{
public void doGet(HttpServletRequest req, HttpServletResponse res)
throws IOException, ServletException
{
String path = "C:\\TEMP\\" + req.getPathInfo().substring(1);
System.out.println("PATH: " + path);

File f = new File(path);
InputStream  in  = new BufferedInputStream(new FileInputStream(f));

res.setContentType("application/x-www-form-urlencoded");
res.setContentLength((int) f.length());
res.setHeader("Content-disposition","attachement; filename=" +
f.getName());
OutputStream out = res.getOutputStream();

int  sentsize = 0;
int  readlen;
byte buffer[] = new byte[256];

while ((readlen = in.read(buffer)) != -1 ) {
  out.write(buffer, 0, readlen);
  sentsize += readlen;
}

// Success ! Close streams.
out.flush();
out.close();
in.close();

  System.out.println("DONE!");
 }
}




Greets,
Laurens



Re: form data to ejb

2000-11-16 Thread John Ellis

We typically use custom tags or servlets.  It is generally considered a
bad practice to use "Entity" beans from a client.  It is suggested to
use a session bean to fron the entity beans, then use regular javabeans
to transport data back and forth.  So, I would suggest you use a regular
bean to set and get properties, then a custom tag or servlet to send or
retrieve that to/from the server.

A complete and well-formed example is available at
http://www.javasoft.com/j2ee/download.html
This is the java pet store example and has several design patterns and
lots of code for J2EE applications.

Alexander ten Bruggencate wrote:

> Can someone tell me what the preferred way is to get form data to an
> ENTERPRISE javabean?
> as  only work on a regular javabeans
>
> regards,
> -Alexander.




RE: Tomcat 3.2-b7 not compliant to Servlet Specification 2.2 ?!

2000-11-16 Thread Marc Saegesser

I posted a patch a few days ago to fix this problem.  In most cases Tomcat
shutsdown every other context starting with the first one added so you might
be able to adjust the order of the contexts in your server.xml file to make
sure that it hits the ones you really need shutdown.

If you can build from source, please try the attached patch and see if it
fixes the problem for you.

Marc Saegesser


-Original Message-
From: Jochen Schneider [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 16, 2000 3:20 AM
To: [EMAIL PROTECTED]
Subject: Tomcat 3.2-b7 not compliant to Servlet Specification 2.2 ?!


Hi,

I posted the attached error description a few weeks ago but didn't get any
response. Yesterday I tried tomcat 3.2-b7 and the error seems to be still in
there.

It seems that tomcat does not remove all previously added contexts if it is
shutdown. This is a major problem because if the context is not properly
removed the destroy method of the servlets is not called, which is
guaranteed by the serlvet specification. Therefor 3.2 does not comply with
JSDK 2.2.

I have put some log messages in the destroy method of my servlets, but this
method is never called if I shutdown tomcat using the shutdown.bat command
script.

This behaviour can be reproduced with the three web apps coming with tomcat:
(example, admin, test). If tomcat (3.2-b7)  is started from a command prompt
( tomcat.bat run)  the following output is produced (Test environment : JDK
1.2.2, Win NT 4.0 SP5, Tomcat 3.2-b7):

[e:\temp\tomcat-3.2-b7\bin]tomcat.bat run
Including all jars in e:\temp\tomcat-3.2-b7\lib in your CLASSPATH.

Using CLASSPATH:
e:\temp\tomcat-3.2-b7\classes;e:\temp\tomcat-3.2-b7\lib\ant.jar
;e:\temp\tomcat-3.2-b7\lib\jasper.jar;e:\temp\tomcat-3.2-b7\lib\jaxp.jar;e:\
temp
\tomcat-3.2-b7\lib\parser.jar;e:\temp\tomcat-3.2-b7\lib\servlet.jar;e:\temp\
tomc
at-3.2-b7\lib\webserver.jar

2000-11-15 05:09:23 - ContextManager: Adding context Ctx( /examples )
2000-11-15 05:09:23 - ContextManager: Adding context Ctx( /admin )
Starting tomcat. Check logs/tomcat.log for error messages
2000-11-15 05:09:23 - ContextManager: Adding context Ctx(  )
2000-11-15 05:09:23 - ContextManager: Adding context Ctx( /test )
2000-11-15 05:09:23 - PoolTcpConnector: Starting HttpConnectionHandler on
8080
2000-11-15 05:09:23 - PoolTcpConnector: Starting Ajp12ConnectionHandler on
8007


All contexts were added properly!

If I shutdown tomcat using the stop script (shutdown.bat) from another
command prompt the following output is produced :


2000-11-15 05:09:27 - ContextManager: Removing context Ctx( /examples )
2000-11-15 05:09:27 - ContextManager: Removing context Ctx(  )


As you can see only the /example and the root context was removed. The real
strange thing is that the output varies! Here is the output of a second try
with exact the same environment!

[e:\temp\tomcat-3.2-b7\bin]tomcat.bat run
Including all jars in e:\temp\tomcat-3.2-b7\lib in your CLASSPATH.

Using CLASSPATH:
e:\temp\tomcat-3.2-b7\classes;e:\temp\tomcat-3.2-b7\lib\ant.jar
;e:\temp\tomcat-3.2-b7\lib\jasper.jar;e:\temp\tomcat-3.2-b7\lib\jaxp.jar;e:\
temp
\tomcat-3.2-b7\lib\parser.jar;e:\temp\tomcat-3.2-b7\lib\servlet.jar;e:\temp\
tomc
at-3.2-b7\lib\webserver.jar

2000-11-15 05:09:34 - ContextManager: Adding context Ctx( /examples )
2000-11-15 05:09:34 - ContextManager: Adding context Ctx( /admin )
Starting tomcat. Check logs/tomcat.log for error messages
2000-11-15 05:09:34 - ContextManager: Adding context Ctx(  )
2000-11-15 05:09:34 - ContextManager: Adding context Ctx( /test )
2000-11-15 05:09:35 - PoolTcpConnector: Starting HttpConnectionHandler on
8080
2000-11-15 05:09:35 - PoolTcpConnector: Starting Ajp12ConnectionHandler on
8007

2000-11-15 05:09:37 - ContextManager: Removing context Ctx( /examples )



Now only the example context was removed by the ContextManager.


This behavior is a major problem for us since we rely on the destroy method
of the servlet to release some handles in a remote object. I tried a lot of
things but didn't succeed.


I really would appreciate any help or comment.

--Jochen

 ContextManager.patch


Authentication with Tomcat (help!!)

2000-11-16 Thread Sean Batten

I have 2 servlets, SetValue (which stores a value in the session object) and
GetValue (which returns the value). I want the user to log in to access
them. My web.xml file looks like this:





Protected
Area

/servlet/GetValue
/servlet/SetValue
 
GET
POST

  

tomcat
role1




  BASIC
  Example Basic Authentication Area





When my SetValue servlet is called the parameter that I send (value) does
not appear. If I remove the security constraint everything works fine. Does
anybody know why this might be happening?

Sean Batten



TSI Software is now Mercator  -  find out more at http://www.mercator.com

The information in this email is confidential and is intended solely for the 
addressee(s). Access to this email by anyone else is unauthorised.  If you are not an  
intended recipient, you must not read, use or disseminate the information contained in 
the email.  
Any views expressed in this message are those of the individual sender, except where 
the sender specifically states them to be the views of Mercator Software Ltd.





Really Offtopic - Resultsets from Oracle stored proc

2000-11-16 Thread DIEGO RODRIGO


Hi,
I apologise for this offtopic message...

Does anyone know how to retrieve a RecordSet (using CallableStatement) from
an ORACLE stored procedure ?

Can you point me to documentation/HOWTOs ?

Thanks,

diego.




Re: using SSL on standalone Tomcat - Urgent !

2000-11-16 Thread Kurt Bernhard Pruenner

"Lacerda, Wellington (AFIS)" wrote:
> > 
> >  
> >   
> >a
> >/wlss1/*
> 
> Change this to "/*".  The  setting is relative
> to your context, not to the server root.

AFAIK, the spec says to use "/" instead of "/*" - give that a try, I'd say.

-- 
Kurt Pruenner - Haendelstrasse 17, 4020 Linz, Austria | Briareos at Olymp BBS:
http://www.mp3.com/Leak http://www.ssw.uni-linz.ac.at | ssh [EMAIL PROTECTED]
...It might be written "Mindfuck", but it's spelt "L-A-I-N"...
np: Kendall Jackman - Weightless (ambient.01@hyperreal comp.)



tomcat via mod_jk & cocoon2

2000-11-16 Thread Benedikt Eric Heinen


Probably a beginners question - but I couldn't find much help in the FAQ
on this problem.

Well, this is my setup:

  [within httpd.conf]

LoadModule jk_module /usr/lib/apache/1.3/mod_jk.so 

 
  JkWorkersFile /icemark/opt/tools/conf/workers.properties 
  JkLogFile  /var/log/tomcat/jk.log 
  JkLogLevel warn 
  JkMount /*.jsp ajp12 
  JkMount /*.xml ajp12  # for cocoon files 
  JkMount /servlet/* ajp12 
  JkMount /examples/* ajp12 
 



  [web.xml]
 
   
cocoon 
org.apache.cocoon.servlet.CocoonServlet 
 
  configurations 
  
/icemark/opt/tools/webapps/cocoon/cocoon.xconf 
 
   
   
cocoon 
*.xml 
   
 




If I want to look at a page, I get:


Status: 200 OK
Content-Type: text/html
Servlet-Engine: Tomcat Web Server/3.3 dev ( JSP 1.1; Servlet 2.2 )

Status: 200 OK
Content-Type: text/html
Servlet-Engine: Tomcat Web Server/3.3 dev ( JSP 1.1; Servlet 2.2 )

Status: 200 OK
Content-Type: text/html
Servlet-Engine: Tomcat Web Server/3.3 dev ( JSP 1.1; Servlet 2.2 )

Status: 200 OK
Content-Type: text/html
Servlet-Engine: Tomcat Web Server/3.3 dev ( JSP 1.1; Servlet 2.2 )

Status: 404 Not Found
Content-Type: text/html
Content-Length: 125
Servlet-Engine: Tomcat Web Server/3.3 dev ( JSP 1.1; Servlet 2.2 )

Status: 404 Not Found
Content-Type: text/html
Content-Length: 125
Servlet-Engine: Tomcat Web Server/3.3 dev ( JSP 1.1; Servlet 2.2 )

Status: 404 Not Found
Content-Type: text/html
Content-Length: 125
Servlet-Engine: Tomcat Web Server/3.3 dev ( JSP 1.1; Servlet 2.2 )

Not Found (404)
Not Found (404)
Original request/tomcat.notFoundHandler


accessing http://localhost:8080/cocoon/ works, just accessing 
http://localhost/ng/index.xml doesn't work... :(


Note - this is on accessing ONE page, not several pages.


Why do I get multiple html page headers but not the desired page?

What's wrong in the setup?



If you need further information, don't hesitate to contact me.




  Benedikt

  "Study as if you were going to live forever;
   live as if you were going to die tomorrow."
 -- Maria Mitchell




Mod_jserv for Solaris 7.0 sparc

2000-11-16 Thread Lester Balmaceda Santamaria



I have been trying to compile mod_jserv for days 
and I'm only receiving this message:
 
 
apxs -c mod_jserv.c jserv*.c
cc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite 
-KPIC -DSHARED_MODULE -I/usr/local/apache/include  -c 
mod_jserv.capxs:Break: Command failed with rc=16711680
 
Suggestions, ideas ?
 
Thanks
 
Lester Balmaceda.
 
 


Re: overriding default webapp configuration

2000-11-16 Thread Ingo Luetkebohle

On Thu, Nov 16, 2000 at 03:46:21PM +, Paul Gallagher wrote:
> try installing a web.xml under the webapps/APP_NAME/WEB-INF
> directory and plugging in your startups - i've not done this for JSP,
> only servlets, but it works OK for me - regards, Paul

Hmm. When I try to use the servlet name "jsp", it complains about a
name collisions. If I use another name, both my replacement and the
normal jsp servlet from global configuration are initialized :(

Regards

-- 
Ingo Luetkebohle / [EMAIL PROTECTED] / 95428014
/
|PraxisXML Open Source contact; Computational Linguistics
|student; Fargonauten.DE sysadmin; Gimp Registry (not-)maintainer;



Problem porting servlets from JServ to Tomcat

2000-11-16 Thread Dave DeHaan

I'm trying to port my servlets from JServ 1.1.2 to Tomcat 3.1.  Most of them have 
worked fine; however, I cannot get the Novell GroupWise WebAccess servlet to function 
properly.  It worked fine under JServ 1.1.2.  This was on the same machine with the 
same JDK 1.2.2 installation.  I have verified that all of the .jar files are in the 
classpath, and that the init arguments are properly entered into web.xml.  

Here is the error message from tomcat.log:

Context log: path="" Error in webacc init(): null java.lang.NullPointerException   
 at java.util.Hashtable.put(Hashtable.java:377)  at 
com.novell.webaccess.common.I18NPropertyBundle.getI18NPropertyBundle(I18NPropertyBundle.java:221)
at 
com.novell.webaccess.common.I18NPropertyBundle.getI18NPropertyBundle(I18NPropertyBundle.java:39)
 at 
com.novell.webaccess.common.I18NPropertyBundle.getI18NPropertyBundle(I18NPropertyBundle.java:30)
 at com.novell.webaccess.WebAccessServlet.init(WebAccessServlet.java:110)
at org.apache.tomcat.core.ServletWrapper.initServlet(ServletWrapper.java:315)   at 
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:445) at 
org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)   at 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160)
   at 
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
at java.lang.Thread.run(Thread.java:475)

Unfortunately, Novell will not support this platform.  However, they assert that their 
servlets should run on any servlet container meeting the following:
- Compatible with Java Servlet Development Kit (JSDK) 2.0
 - Compatible with Java Development Kit (JDK) 1.1.6 or above

Does anyone have a clue as to why this servlet won't load?

Thanks.

David E. DeHaan
[EMAIL PROTECTED]






RE: Really Offtopic - Resultsets from Oracle stored proc

2000-11-16 Thread Vishnu Akkaraju

hi,
check technet.oracle.com|documentation|
Data Servers-oracle8i|general documentation Release3(8.1.7)|
java documentation|jdbc developer's guide and reference|
chapter 3.
bye,
vishnu.

-Original Message-
From: DIEGO RODRIGO [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 16, 2000 11:05 AM
To: [EMAIL PROTECTED]
Subject: Really Offtopic - Resultsets from Oracle stored proc
Importance: High



Hi,
I apologise for this offtopic message...

Does anyone know how to retrieve a RecordSet (using CallableStatement)
from
an ORACLE stored procedure ?

Can you point me to documentation/HOWTOs ?

Thanks,

diego.



Apache-Tomcat-Cocoon Integration Problem

2000-11-16 Thread Luke Flesch

To whom it may concern,
I've spent more than 20 hours now installing, configuring, and
integrating Apache, Tomcat, and Cocoon for a college project that I am
working on.  I have carefully read over the Tomcat-Apache HOWTO.  I am
almost there - I know it.  Here is the current problem:

These requests work:

http://localhost:8080/servlet/HelloWWW
http://localhost:8080/examples/servlet/HelloWWW
http://localhost:8080/foo/servlet/HelloWWW
http://localhost:8080/cocoon/Cocoon.xml
http://localhost/examples/servlet/HelloWWW

These requests don't work:

http://localhost/servlet/HelloWWW
http://localhost/foo/servlet/HelloWWW
http://localhost/cocoon/Cocoon.xml

I can't understand why /examples is integrated with Apache and the other
three aren't.  As far as I can tell, my tomcat-apache.conf, server.xml,
web.xml, etc. should support all four.  Obviously, though, if I knew what
was wrong I wouldn't be asking for help.
Can anyone suggest what the problem might be?  Thanks.

-Luke Flesch




Connection reset by peer on image rollover

2000-11-16 Thread Pierre Métras

Hi

A new problem appeared recently on my Tomcat 3.2B6 + Struts 0.5 application.
I am experiencing more and more "Connection reset by peer" exceptions.

Could it be:
- A bug in my code, though I don't remind big changes and it seems to appear
in all the pages, even those untouched...
- A new feature in the new SP1 for Internet Explorer 5.5 and incompatibility
with tomcat.
- A normal behaviour...

I've traced the problem where I can sometimes reproduce it to some image
rollover buttons. From my understanding, if the the mouse fires a image
change in the rollover, the browser should change the image without the need
for a new connection to the server as all the images have been loaded in its
cache.

I've tried to reproduce the problem with Nestcape 6 Beta 2 but it doesn't
fire on the rollover buttons. And the final version of Netscape 6 doesn't
want to setup on my PC!


Here is the exception stack:
2000-11-16 11:59:28 - PoolTcpEndpoint: Endpoint
ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8080] ignored exception:
java.net.SocketException: Connection reset by peer -
java.net.SocketException: Connection reset by peer
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:413)
at java.net.ServerSocket.implAccept(ServerSocket.java:243)
at java.net.ServerSocket.accept(ServerSocket.java:222)
at
org.apache.tomcat.service.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java:
286)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:393)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)

I can't explain the addresses and port parameter for ServerSocket.

Could someone share some light with me?

Pierre Métras




Re: Connection reset by peer on image rollover

2000-11-16 Thread Mike Spreitzer/Watson/IBM

I've also been having problems in Tomcat 3.1 with mouse rollovers.  Is 
that a known issue in 3.1?  If so, I'm sorry I missed it.  If not, read 
on...

I noticed the problem when I was using IE 5, with its caching policy set 
to check on every usage.  With a less frequent setting, the images get 
cached once and there's no problem.  But with the high-frequency setting, 
IE fetches the image anew on every rollover (I'm using Tomcat standalone, 
and 3.1 never emits anything to indicate that anything is cacheable, as 
far as I can tell).

I could do a lot of rolling over.  But eventually I'd get the following 
printed to stdout/stderr from Tomcat:

java.net.SocketException: A connection is ended by software.
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:423)
at java.net.ServerSocket.implAccept(ServerSocket.java:191)
at java.net.ServerSocket.accept(ServerSocket.java:174)
at 
org.apache.tomcat.service.SimpleTcpEndpoint.acceptSocket(SimpleTcpEndpoint.java:267)
at 
org.apache.tomcat.service.SimpleTcpEndpoint.acceptConnections(SimpleTcpEndpoint.java:248)
at 
org.apache.tomcat.service.TcpListenerThread.run(SimpleTcpEndpoint.java:319)
at java.lang.Thread.run(Thread.java)
Endpoint ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8085] shutdown 
due to exception: java.net.SocketException: A connection is ended by 
software.

and then Tomcat would be wedged --- no clients would ever make any more 
progress.



How to configure Mysql with Tomcat.

2000-11-16 Thread Tony Keith

Hello,

I wrote a simple servlet to insert a row into a mysql database table.
I'm running Tomcat 3.2b7.

What are the steps to configure Tomcat to work with this servlet?
The problem I'm having now is the driver isn't found.

Where do I place the driver? In the lib directory?

How do I reference a new instance of the driver?
This is how I reference it now:
Class.forName("org.mm.mysql.Driver").newInstance();

Will the connection information remain the same?
Here is the connection information I currently use:
con = DriverManager.getConnection("jdbc:mysql://localhost/webdata",
"user", "password");

TIA
--
Tony Keith






Tomcat & frames

2000-11-16 Thread Olivier Baillard

Hi Sam,


If you are here today, I would like to explain you a problem that I have 
with frame.

I'm using my PHP with Tomcat and the thing are doing well. The only thing 
what not really work are frame.

I have an "index.html", something like this, for example:








   
   
 
 
   






The frame "topnavig" work fine (it's HTML).  "nav_top_de.html" appears on 
the screen

The frame "navig" and the frame "int" are "mixed".
Sometimes only the file "shop_nav.php" appears on the screen and not the 
file "welcome.php".
Sometimes only a part of the file "shop_nav.php" and a part of the file 
"welcome.php" appears in the SAME frame.
Sometimes the file "shop_nav.php" doesn't appears at all.
And sometimes Tomcat crashes with the error:
HotSpot Virtual Machine Error, Unexpected Signal 11
Please report this error at
http://java.sun.com/cgi-bin/bugreport.cgi

Error ID: 4F533F4C494E55580E43505005BC

Problematic Thread: prio=1 tid=0x852ea78 nid=0xd6d runnable


Do you have any clues?

Bye!
Olivier Baillard




At 12:57 15.11.00 -0500, you wrote:
>Olivier Baillard wrote:
> >
> > I would kike to know if somebody already have some experience
> > with tomcat and PHP working as serlet (with Tomcat).  If
> > somebody has some interest, I would be happy to exchange my
> > own experience. I get PHP to work with Tomcat 3.2 beta 7 on
> > Linux with Java extension. You can exchange data between PHP
> > and Tomcat, use Java classes/beans. I know, some people will
> > say me : use JSP, you stupid idiot!! But the purpose of
> > it is to use the flexibility of PHP (whith html) and the
> > power of Java together. Later we will connect our
> > Web-Application with some Software of us.
>
>It would be fair to say that I have some experience and interest.  I've
>contributed to both projects, and in particular am the author of the
>integration between the two.
>
>- Sam Ruby




RE: using SSL on standalone Tomcat - Urgent !

2000-11-16 Thread Lacerda, Wellington (AFIS)

No, I'm sorry, it failed again. (thanks anyway)
Maybe I found a bug ?

Wellington

-Original Message-
From:   Kurt Bernhard Pruenner [mailto:[EMAIL PROTECTED]]
Sent:   16 November 2000 17:13
To: [EMAIL PROTECTED]
Subject:Re: using SSL on standalone Tomcat - Urgent
!

"Lacerda, Wellington (AFIS)" wrote:
> > 
> >  
> >   
> >a
> >/wlss1/*
> 
> Change this to "/*".  The  setting is
relative
> to your context, not to the server root.

AFAIK, the spec says to use "/" instead of "/*" - give that
a try, I'd say.

-- 
Kurt Pruenner - Haendelstrasse 17, 4020 Linz, Austria |
Briareos at Olymp BBS:
http://www.mp3.com/Leak http://www.ssw.uni-linz.ac.at | ssh
[EMAIL PROTECTED]
...It might be written "Mindfuck", but it's spelt
"L-A-I-N"...
np: Kendall Jackman - Weightless (ambient.01@hyperreal
comp.)



Re: using SSL on standalone Tomcat - Urgent !

2000-11-16 Thread Craig R. McClanahan

Kurt Bernhard Pruenner wrote:

> "Lacerda, Wellington (AFIS)" wrote:
> > > 
> > >  
> > >   
> > >a
> > >/wlss1/*
> >
> > Change this to "/*".  The  setting is relative
> > to your context, not to the server root.
>
> AFAIK, the spec says to use "/" instead of "/*" - give that a try, I'd say.
>

In a security constraint, a "/" pattern would only match the "welcome" page for an
application, not any of its contents.  If you want to protect the entire
application, you need to use "/*".

If configured properly, I know this works because I've tested it (3.2b7) -- you
get an error message back that says "SSL is required for this context".

>
> --
> Kurt Pruenner - Haendelstrasse 17, 4020 Linz, Austria | Briareos at Olymp BBS:
> http://www.mp3.com/Leak http://www.ssw.uni-linz.ac.at | ssh [EMAIL PROTECTED]
> ...It might be written "Mindfuck", but it's spelt "L-A-I-N"...
> np: Kendall Jackman - Weightless (ambient.01@hyperreal comp.)

Craig McClanahan





RE: tomcat 3.2b5 - worker not found?

2000-11-16 Thread Day, Evan

I got everything working after doing the following (Apache-SSL, mod_jk,
tomcat 3.2b7):

Upgrading the tomcat 3.2b7
Using the prebuilt mod_jk.so from the archive

My guess is that the build of mod_jk that I had wasn't working right, or
there was a bug at 3.2b5.  As much as I would like to futher investigate
this, I'm already a week behind and don't have time at the moment...

-Original Message-
From: Alistair Hopkins [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 15, 2000 1:02 AM
To: [EMAIL PROTECTED]
Subject: RE: tomcat 3.2b5 - worker not found?


I posted earlier today [ApJservMount and VirtualHost] with exactly the same
problem.

And yes, I have https enabled in apache (mod_ssl).  Didn't think it was
relevant...

I'll try tomorrow and see if I can cure it by removing HTTPS.

Alistair.

-Original Message-
From: Day, Evan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 14, 2000 6:16 PM
To: '[EMAIL PROTECTED]'
Subject: tomcat 3.2b5 - worker not found?


Platform: Redhat 7.0, OpenSSL 0.9.6, Apache 1.3.14 w/ mm 1.1.3 and mod_ssl
2.7.1, tomcat 3.2b5
Vanilla configurations from fresh builds.

Apache works fine on its own in both HTTP and HTTPS.  Tomcat works find
standalone.

When I turn on mod_jk in apache to run servlets from the apache server, it
works fine if I run apache without SSL.  However, when I do an apachectl
startssl, I start seeing the following in the mod_jk.log:

[jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker
[jk_uri_worker_map.c (406)]: jk_uri_worker_map_t::map_uri_to_worker, Found a
match ajp12
[jk_worker.c (123)]: Into wc_get_worker_for_name ajp12
[jk_worker.c (127)]: wc_get_worker_for_name, done did not found a worker
[jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker
[jk_uri_worker_map.c (406)]: jk_uri_worker_map_t::map_uri_to_worker, Found a
match ajp12
[jk_worker.c (123)]: Into wc_get_worker_for_name ajp12
[jk_worker.c (127)]: wc_get_worker_for_name, done did not found a worker

I've looked through my httpd.conf (straight out of the apache distribution
with no changes except to include mod_jk.conf), the mod_jk.conf, and the
worker.properties files (only changes were to point the tomcat home and java
directories to the right places).  Haven't been able to find anything in the
archives or various FAQs to shed any light on this.

Any ideas what might be wrong?

Thanks

o  _  _ _
   _o  /\_   _ |\o   (_)\__/o  (_)
 _< \__>(_) (_)/<_ \_| \   _|/' \/
(_)>(_)o (_) o   o  (_) o  (_)(_)'  _\o_
-
Evan Day
SUMMIT Information Systems
[EMAIL PROTECTED]
(800) 937-7500 x6301




Tomcat 4.0 and Apache

2000-11-16 Thread YueMa

Hi there,
How can I config the Tomcat 4.0 with Apache together?

I did that for Tomcat 3.0 but not so clear for 4.0

Thanks for any help






Re: WWW-Authentication using Tomcat-form-based-login and Apache

2000-11-16 Thread Craig R. McClanahan

Marco van Meegen wrote:

> sounds like I've got exactly the same problem. I didn't follow the thread in
> the dev-mailinglist,
> so I'm sorry if I repeat problems already solved there...
>
> I'd like to set up exactly the same thing and found the same source in the
> Professional JSP-book.
> The questions for me are:
>
> 1) Tomcat 3.1 declares security-related features as alpha; anyone got an idea,
> if security in 3.2b7
> might be suitable for production use already ?

Yes -- BASIC and FORM-BASED authentication should work well in 3.2b7.  For DIGEST
or CLIENT-CERT you will need Tomcat 4.0.

>
> 2) If I define a security-constraint in Tomcat, using Apache and Tomcat; will
> Apache know about this constraint ?

No.  The easiest way to understand what Apache knows about and what it doesn't is
that the part of Tomcat that creates "tomcat-apache.conf" does *not* read web.xml
-- it only reads server.xml.  Therefore, it does not know anything about security
constraints you've defined there.  You will need to configure them separately in
Apache.

This is something that is going to change in the Tomcat 4.0 web connectors -- they
are webapp-aware, so you won't need to worry about double configuring anything.

>
>Or do I have to serve all files under security constraints using tomcat,
> even the static ones ?
>If so, would there be any reason for using Apache at all ?
>

For Tomcat 3.x, if you are running behind Apache, the web server gets first crack
at security and imposes it's own rules.  Because Apache is handling the static
resources, Tomcat never even finds out about those requests -- so you *must* use
Apache security if you want to protect the static resources.  Servlet security
only applies to the requests that are actually forwarded to Tomcat (i.e. JSP pages
and /servlet/* patterns).

For Tomcat 4.0, the servlet 2.3 spec requires that the "server" (in our case, that
means the Apache+Tomcat combination) must impose the security constraints in
web.xml for both dynamic and static resources.  This is one of the major reasons a
new connector is being written.

>
> Thanks for any clue in the darkness of authentication...
>
> Marco
>

Craig McClanhaan





Re: form data to ejb

2000-11-16 Thread a.ten.bruggencate

thank you, i'll look into it.

-Alexander

- Original Message - 
From: "John Ellis" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 16, 2000 4:58 PM
Subject: Re: form data to ejb


> We typically use custom tags or servlets.  It is generally considered a
> bad practice to use "Entity" beans from a client.  It is suggested to
> use a session bean to fron the entity beans, then use regular javabeans
> to transport data back and forth.  So, I would suggest you use a regular
> bean to set and get properties, then a custom tag or servlet to send or
> retrieve that to/from the server.
> 
> A complete and well-formed example is available at
> http://www.javasoft.com/j2ee/download.html
> This is the java pet store example and has several design patterns and
> lots of code for J2EE applications.
> 
> Alexander ten Bruggencate wrote:
> 
> > Can someone tell me what the preferred way is to get form data to an
> > ENTERPRISE javabean?
> > as  only work on a regular javabeans
> >
> > regards,
> > -Alexander.
> 




Re: Tomcat 3.2-b7 not compliant to Servlet Specification 2.2 ?!

2000-11-16 Thread Craig R. McClanahan

Thanks for the patch Marc!  I'm sorry I missed this when fixing things for b7.
It will be fixed in the final release.

Craig McClanahan


Marc Saegesser wrote:

> I posted a patch a few days ago to fix this problem.  In most cases Tomcat
> shutsdown every other context starting with the first one added so you might
> be able to adjust the order of the contexts in your server.xml file to make
> sure that it hits the ones you really need shutdown.
>
> If you can build from source, please try the attached patch and see if it
> fixes the problem for you.
>
> Marc Saegesser
>
> -Original Message-
> From: Jochen Schneider [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, November 16, 2000 3:20 AM
> To: [EMAIL PROTECTED]
> Subject: Tomcat 3.2-b7 not compliant to Servlet Specification 2.2 ?!
>
> Hi,
>
> I posted the attached error description a few weeks ago but didn't get any
> response. Yesterday I tried tomcat 3.2-b7 and the error seems to be still in
> there.
>
> It seems that tomcat does not remove all previously added contexts if it is
> shutdown. This is a major problem because if the context is not properly
> removed the destroy method of the servlets is not called, which is
> guaranteed by the serlvet specification. Therefor 3.2 does not comply with
> JSDK 2.2.
>
> I have put some log messages in the destroy method of my servlets, but this
> method is never called if I shutdown tomcat using the shutdown.bat command
> script.
>
> This behaviour can be reproduced with the three web apps coming with tomcat:
> (example, admin, test). If tomcat (3.2-b7)  is started from a command prompt
> ( tomcat.bat run)  the following output is produced (Test environment : JDK
> 1.2.2, Win NT 4.0 SP5, Tomcat 3.2-b7):
>
> [e:\temp\tomcat-3.2-b7\bin]tomcat.bat run
> Including all jars in e:\temp\tomcat-3.2-b7\lib in your CLASSPATH.
>
> Using CLASSPATH:
> e:\temp\tomcat-3.2-b7\classes;e:\temp\tomcat-3.2-b7\lib\ant.jar
> ;e:\temp\tomcat-3.2-b7\lib\jasper.jar;e:\temp\tomcat-3.2-b7\lib\jaxp.jar;e:\
> temp
> \tomcat-3.2-b7\lib\parser.jar;e:\temp\tomcat-3.2-b7\lib\servlet.jar;e:\temp\
> tomc
> at-3.2-b7\lib\webserver.jar
>
> 2000-11-15 05:09:23 - ContextManager: Adding context Ctx( /examples )
> 2000-11-15 05:09:23 - ContextManager: Adding context Ctx( /admin )
> Starting tomcat. Check logs/tomcat.log for error messages
> 2000-11-15 05:09:23 - ContextManager: Adding context Ctx(  )
> 2000-11-15 05:09:23 - ContextManager: Adding context Ctx( /test )
> 2000-11-15 05:09:23 - PoolTcpConnector: Starting HttpConnectionHandler on
> 8080
> 2000-11-15 05:09:23 - PoolTcpConnector: Starting Ajp12ConnectionHandler on
> 8007
>
> All contexts were added properly!
>
> If I shutdown tomcat using the stop script (shutdown.bat) from another
> command prompt the following output is produced :
>
> 2000-11-15 05:09:27 - ContextManager: Removing context Ctx( /examples )
> 2000-11-15 05:09:27 - ContextManager: Removing context Ctx(  )
>
> As you can see only the /example and the root context was removed. The real
> strange thing is that the output varies! Here is the output of a second try
> with exact the same environment!
>
> [e:\temp\tomcat-3.2-b7\bin]tomcat.bat run
> Including all jars in e:\temp\tomcat-3.2-b7\lib in your CLASSPATH.
>
> Using CLASSPATH:
> e:\temp\tomcat-3.2-b7\classes;e:\temp\tomcat-3.2-b7\lib\ant.jar
> ;e:\temp\tomcat-3.2-b7\lib\jasper.jar;e:\temp\tomcat-3.2-b7\lib\jaxp.jar;e:\
> temp
> \tomcat-3.2-b7\lib\parser.jar;e:\temp\tomcat-3.2-b7\lib\servlet.jar;e:\temp\
> tomc
> at-3.2-b7\lib\webserver.jar
>
> 2000-11-15 05:09:34 - ContextManager: Adding context Ctx( /examples )
> 2000-11-15 05:09:34 - ContextManager: Adding context Ctx( /admin )
> Starting tomcat. Check logs/tomcat.log for error messages
> 2000-11-15 05:09:34 - ContextManager: Adding context Ctx(  )
> 2000-11-15 05:09:34 - ContextManager: Adding context Ctx( /test )
> 2000-11-15 05:09:35 - PoolTcpConnector: Starting HttpConnectionHandler on
> 8080
> 2000-11-15 05:09:35 - PoolTcpConnector: Starting Ajp12ConnectionHandler on
> 8007
>
> 2000-11-15 05:09:37 - ContextManager: Removing context Ctx( /examples )
>
> Now only the example context was removed by the ContextManager.
>
> This behavior is a major problem for us since we rely on the destroy method
> of the servlet to release some handles in a remote object. I tried a lot of
> things but didn't succeed.
>
> I really would appreciate any help or comment.
>
> --Jochen
>
>   
>Name: ContextManager.patch
>ContextManager.patchType: unspecified type (application/octet-stream)
>Encoding: quoted-printable




Re: getRemoteHost() returns ""

2000-11-16 Thread Craig R. McClanahan

Christoph Kukulies wrote:

> I thought I could get the remote hostname in a Servlet
> or jsp file. The following returns nothing for getRemoteHost():
>
> 
> HostIP="<%= request.getRemoteAddr() %>"
> NAME='hn'
>VALUE="<%= request.getRemoteHost() %>"
>SIZE='15'>
> 
> 
>
> I was suspecting it is a name resolution (DNS) problem but my
> nameresolution sequence is hosts, then bind. And the host 192.168.1.119
> for example (it's an intranet) can be found.
>
> Any clues?

What version of Tomcat are you trying this with?  It appears to work fine
for me with 3.2b7 and 4.0m4, as long as DNS is correctly configured on the
machine that Tomcat is running on.

>
> --
> Chris Christoph P. U. Kukulies [EMAIL PROTECTED]

Craig McClanahan





mod_jserv.so problem

2000-11-16 Thread tsimtung

I have problem in building mod_jserv.
I am using linux, and get tomcat 3.1 binary source to build tomcat.
tomcat runs smoonthly in standalone mode, and then i would like to
integrate it with apache.

I can't find the directory "jakarta-tomcat/src/native/apache/jserv/" in
my jakarta-tomcat directory, "src" directory only has
"javax" and "org" two directories

Please help!!!
Thx


###from tomcat_ug.html##
Building mod_jserv on UNIX involves the following:

Download the source distribution of Tomcat from here.
Uncompress it into some directory.
Building the module:
Change directory into jakarta-tomcat/src/native/apache/jserv/
Execute the build command
apxs -c *.c -o mod_jserv.so
apxs is part of the Apache distribution and should be located in your
APACHE_HOME/bin.





Re: Testing woes - please help!!

2000-11-16 Thread Craig R. McClanahan

Mike La Budde wrote:

> I'm trying to slice up the GTest.java ant task that comes with the tomcat
> distribution. Since we are using struts and placing some things in the
> session (tho' we try to minimize that) any of my actions/pages I request
> that rely on stuff being in the session error out.
>
> What I was hoping to do was create a new ant task(def), let's call this
> testcase, and the gtest task becomes a nested subtask. This way I could
> open the socket/connection in the testcase and just reuse it in the gtest
> subtask. Good thought, but it doesn't work. The first gtest task works, but
> all subsequent ones fail (the response is always null). Naturally, socket
> programming is not something I've done before and I was hoping there would
> be an easier way.
>

You are probably running into the fact that HTTP/1.0 is a request-response
protocol.  If you want to reuse an existing socket, you need to set the
appropriate HTTP headers for persistent connections, and the server needs to
support them.

>
> So, where to from here?
>
> 1) Can somebody offer pointers on socket programming?
>
> 2) Is there a better way? (What are others doing to test their webapps?)
>

You might want to look at using a URLConnection instead.  In particular, since
you will be talking to an "http:" type URL, you can cast the URLConnection
object you get back to HttpURLConnection so that you can do things like set the
request type to POST (for example).  There's some simple examples of using
URLConnection in the Networking Trail of the Java Language Tutorial
, or you can do searches for
URLConnection in the archives (or various search engines) to find out more.

>
> 3) Is there documentation on using the JUnit ant task? And documentation on
> JUnit itself?
>
> Thanks in advance,
>
> Mike

Craig McClanahan





Re: How to configure Mysql with Tomcat.

2000-11-16 Thread Zebadiah Kimmel

The following code should work if your database's root password is empty:

Class.forName(dbDriver).newInstance();
connPool[i]=DriverManager.getConnection("jdbc:mysql://"+dbServer+"?user="+db 
Login);

As for connecting with a non-empty password, I don't know how to do that. 
If you figure it out, please let me know.

--Zeba

At 09:58 AM 11/16/00 -0800, Tony Keith wrote:
>Hello,
>
>I wrote a simple servlet to insert a row into a mysql database table.
>I'm running Tomcat 3.2b7.
>
>What are the steps to configure Tomcat to work with this servlet?
>The problem I'm having now is the driver isn't found.
>
>Where do I place the driver? In the lib directory?
>
>How do I reference a new instance of the driver?
>This is how I reference it now:
>Class.forName("org.mm.mysql.Driver").newInstance();
>
>Will the connection information remain the same?
>Here is the connection information I currently use:
>con = DriverManager.getConnection("jdbc:mysql://localhost/webdata",
>"user", "password");
>
>TIA
>--
>Tony Keith




Re: Problem porting servlets from JServ to Tomcat

2000-11-16 Thread Craig R. McClanahan

Dave DeHaan wrote:

> - Compatible with Java Servlet Development Kit (JSDK) 2.0
>

This is likely to be the key to your problem.  Several major things from the Servlet 
2.0 API were deprecated -- for example, the ServletContext.getServlet() method now 
returns null, and you can no longer use an HttpSessionContext at all -- so if this 
application requires those features of 2.0, it will not run under Tomcat.

>
> Does anyone have a clue as to why this servlet won't load?
>

Without source code, (in particular for the init() method of the 
com.novell.webaccess.WebAccessServlet class), there isn't much anyone can do to help 
you further.

>
> Thanks.
>
> David E. DeHaan
> [EMAIL PROTECTED]

Craig McClanahan





Re: Tomcat 4.0 and Apache

2000-11-16 Thread Craig R. McClanahan

YueMa wrote:

> Hi there,
> How can I config the Tomcat 4.0 with Apache together?
>
> I did that for Tomcat 3.0 but not so clear for 4.0
>

It's not clear because web connectors for Tomcat 4.0 do not exist yet.
They are planned for the next milestone, but no guarantees yet.

>
> Thanks for any help

Craig McClanahan





Re: using SSL on standalone Tomcat - Urgent !

2000-11-16 Thread Craig R. McClanahan

"Lacerda, Wellington (AFIS)" wrote:

> No, I'm sorry, it failed again. (thanks anyway)
> Maybe I found a bug ?
>

Can you send me (or re-send if you've already done so and I missed it) a simple
test webapp that illustrates this?  It worked for me in every test scenario I
can come up with, so there's obviously something you are doing differently that
we need to identify.

>
> Wellington
>

Craig McClanahan





Accessing Servlets In Packages

2000-11-16 Thread JTBldrCO

I seem to have my problem solved, but let me get this back on the mailing 
list for the benefit of the archives --

I was having trouble accessing servlets that reside in my own packages.  My 
test cases could access .class files in:
 
/usr/local/jakarta-tomcat/webapps/myWebApp/WEB-INF/classes
 
For example "SnoopServlet.class" in that subdir is accessed with:
 
http://www.mySiteName.com/myWebApp/servlet/SnoopServlet
 
Now, take a class, SomePackageClass, declared to be in package testapackage 
within its .java code file.  Its compiled form is in the following file:
 
/usr/local/jakarta-tomcat/webapps/myWebApp/WEB-INF/classes/testapackage/SomePa

ckageClass.class
 
I would like to (but CANNOT) access it with:
 
http://www.mySiteName.com/myWebApp/servlet/testapackage/SomePackageClass
 
INSTEAD, I FIND I MUST USE:

http://www.mySiteName.com/myWebApp/servlet/testapackage.SomePackageClass
 
(Note the "." notation separating the package name and class name, rather 
than a "/".)

Unfortunately, the slash notation worked with JServ, for which I have tons of 
working code, but not with Tomcat.

Thanks for others' comments related to possible addition of  tags in 
file /webapps/myWebApp/WEB-INF/web.xml but it looks like I'd still have 
to change all my JServ code (the calling HTML) that used the slash notation. 

Incidentally, I found a sprinkling of material pertaining to my problem in 
the new book "Core Servlets and JavaServer Pages" by Marty Hall.  This was 
published this year (year 2000) for Sun Microsystems by Prentice Hall (see 
pages 30-42).  I wish to give them a plug for this very current effort 
complete with some updates based on Tomcat 3.1.  Price is US$42.99.

John Thompson
Boulder, Colorado, USA
[EMAIL PROTECTED]




RE: aaargh..

2000-11-16 Thread Ranko Bijelonic

Its all of because where your code gets placed.
That is, the useBean tag is translated into code which comes before any of
the <% %> code in the body of JSP.
So when you use setProperty it is transalted into code that comes before
your <% %> code but there is no bean at that point.

Instead of changing the bean, you could put initialization code inside the
useBean tag.


<%
...any java code
%>


This way, the code you include will be placed at the right point when your
JSP is turned into a servlet.
The setProperty tags will get transalted into code that comes after this.

I hope this helps.

>just for arguments sake, why does then usebean tag need to create a bean
before i can use set-
>and getProperty on it?

thnx,
-Alexander.





Re: How to configure Mysql with Tomcat.

2000-11-16 Thread Tony Keith


Zebadiah Kimmel wrote:
The following code should work if your database's
root password is empty:
Class.forName(dbDriver).newInstance();
My problem is the driver isn't being loaded.
Configuration problems, I believe...
 
connPool[i]=DriverManager.getConnection("jdbc:mysql://"+dbServer+"?user="+db
Login);
As for connecting with a non-empty password, I don't know how to do
that.
If you figure it out, please let me know.
--Zeba
At 09:58 AM 11/16/00 -0800, Tony Keith wrote:
>Hello,
>
>I wrote a simple servlet to insert a row into a mysql database table.
>I'm running Tomcat 3.2b7.
>
>What are the steps to configure Tomcat to work with this servlet?
>The problem I'm having now is the driver isn't found.
>
>Where do I place the driver? In the lib directory?
>
>How do I reference a new instance of the driver?
>This is how I reference it now:
>Class.forName("org.mm.mysql.Driver").newInstance();
>
>Will the connection information remain the same?
>Here is the connection information I currently use:
>con = DriverManager.getConnection("jdbc:mysql://localhost/webdata",
>"user", "password");
>
>TIA
>--
>Tony Keith

-- 
Tony Keith
Director of Information Technology
Paycom.net
4215 Glencoe Avenue, First Floor
Marina Del Rey, CA  90292
TEL: (310) 827-5880 ext. 304
FAX: (310) 827-5519
 


http 1.1 request line with full url

2000-11-16 Thread Stefan Haustein

Hi,

does anybody know how to convince 
Tomcat to process "true" HTTP 1.1 requests 
having the full URL in the request line, e.g.:

  POST http://www.foo.org/bar HTTP/1.1

If I try this, I get a 409 error.


  POST /bar HTTP/1.1

works fine, but I have a client that
sends the full URL, and HTTP 1.1 says
the server MUST be able to process
this... :-(

Best,
Stefan


-- 
Stefan Haustein 
Univ. Dortmund, FB 4, LS 8   tel: +49 231 755 2499
Baroper Str. 301 fax: +49 231 755 5105
D-44221 Dortmund (Germany)   www-ai.cs.uni-dortmund.de



RE: mod_jserv.so problem

2000-11-16 Thread Micky Mimo
Title: RE: mod_jserv.so problem






You have to use the source tomcat version for 3.1. The binary version does not have the build directories. 


http://jakarta.apache.org/builds/tomcat/release/v3.1/src/


/===\

| Micky Mimo    |

| Systems Specialist    |

| (781) 457 - 1317  |

| [EMAIL PROTECTED] |

\===/



-Original Message-

From: tsimtung [mailto:[EMAIL PROTECTED]]

Sent: Thursday, November 16, 2000 1:37 PM

To: [EMAIL PROTECTED]; [EMAIL PROTECTED]

Subject: mod_jserv.so problem



I have problem in building mod_jserv.

I am using linux, and get tomcat 3.1 binary source to build tomcat.

tomcat runs smoonthly in standalone mode, and then i would like to

integrate it with apache.


I can't find the directory "jakarta-tomcat/src/native/apache/jserv/" in

my jakarta-tomcat directory, "src" directory only has

"javax" and "org" two directories


Please help!!!

Thx



###from tomcat_ug.html##

Building mod_jserv on UNIX involves the following:


Download the source distribution of Tomcat from here.

Uncompress it into some directory.

Building the module:

Change directory into jakarta-tomcat/src/native/apache/jserv/

Execute the build command

apxs -c *.c -o mod_jserv.so

apxs is part of the Apache distribution and should be located in your

APACHE_HOME/bin.






Re: How to configure Mysql with Tomcat.

2000-11-16 Thread Noel Morgan

For Tomcat 3.2b6 I used:

my setup:
Apache 1.3.12
RH 6.2 Linux 2.2.14-5.0

Class.forName("org.gjt.mm.mysql.Driver").newInstance();
con =
DriverManager.getConnection("jdbc:mysql://localhost:3306/DatabaseName?user=dbuser&password=dbpassword");

put the jdbc drivers in the classes folder of your
app like:

cp -Rf $JDBC_HOME/org $MYAPP_HOME/WEB-INF/classes

That should do it, but I have noticed serious
performance degradation in switching from JServ
1.1.2 to Tomcat 3.2b6. I am not sure if I am missing
something in the docs, but JServ 1.1.2/GNUJsp 1.0 is
IMHO much faster (at least with the mm.mysql JDBC
driver apps I have written) If someone could point
me to some tuning tips/parameters I may have missed
in the standard docs I would really appreciate it.

Noel


- Original Message -
>From: Zebadiah Kimmel <[EMAIL PROTECTED]>
Sent: Thu, 16 Nov 2000 13:49:07 -0500
To  :
[EMAIL PROTECTED],[EMAIL PROTECTED]
Subject : Re: How to configure Mysql with Tomcat.


The following code should work if your database's
rootpassword is empty:
Class.forName(dbDriver).newInstance();
connPool[i]=DriverManager.getConnection("jdbc:mysql://"+dbServer+"?user="+db
Login);

As for connecting with a non-empty password, I
don'tknow how to do that. 
If you figure it out, please let me know.

--Zeba

At 09:58 AM 11/16/00 -0800, Tony Keith wrote:
>Hello,
>
>I wrote a simple servlet to insert a row into a
mysqldatabase table.
>I'm running Tomcat 
>
>What are the steps to configure Tomcat to work
withthis servlet?
>The problem I'm having now is the driver isn't
found.
>
>Where do I place the driver? In the lib directory?
>
>How do I reference a new instance of the driver?
>This is how I reference it now:
>Class.forName("org.mm.mysql.Driver").newInstance();
>
>Will the connection information remain the same?
>Here is the connection information I currently use:
>con
=DriverManager.getConnection("jdbc:mysql://localhost/webdata",
>"user", "password");
>
>TIA
>--
>Tony Keith








__
Move your email to a better address.
Over 1,000 domains to choose from! FREE! PRIVATE!
http://www.MailSpace.com

 



Re: Accessing Servlets In Packages

2000-11-16 Thread Craig R. McClanahan

[EMAIL PROTECTED] wrote:

> [snip]
> Now, take a class, SomePackageClass, declared to be in package testapackage
> within its .java code file.  Its compiled form is in the following file:
>
> /usr/local/jakarta-tomcat/webapps/myWebApp/WEB-INF/classes/testapackage/SomePa
>
> ckageClass.class
>
> I would like to (but CANNOT) access it with:
>
> http://www.mySiteName.com/myWebApp/servlet/testapackage/SomePackageClass
>

Why can't you use a servlet definition and mapping like this:


My Servlet
testpackage.SomePackageClass



My Servlet
/servlet/testpackage/SomePackageClass


which would support your desired URL?

>
> John Thompson
> Boulder, Colorado, USA
> [EMAIL PROTECTED]

Craig McClanahan





Tomcat - cookies

2000-11-16 Thread Annette Strupp-Adams

Can anyone tell me if and how (prefereably in a Tomcat configuration file)
I configure Tomcat not to use cookies ?

In JServ it is done as follows: 

zone.properties:#session.useCookies=false

I have not found a way to configure this in Tomcat 3.1.

Thank you,

Annette

Annette Strupp-Adams
Senior Systems Analyst
[EMAIL PROTECTED]
phone: (301) 435-3150
National Library of Medicine





Re: http 1.1 request line with full url

2000-11-16 Thread Craig R. McClanahan

Stefan Haustein wrote:

> Hi,
>
> does anybody know how to convince
> Tomcat to process "true" HTTP 1.1 requests
> having the full URL in the request line, e.g.:
>
>   POST http://www.foo.org/bar HTTP/1.1
>
> If I try this, I get a 409 error.
>
>   POST /bar HTTP/1.1
>
> works fine, but I have a client that
> sends the full URL, and HTTP 1.1 says
> the server MUST be able to process
> this... :-(
>
> Best,
> Stefan
>

Stefan,

Which version of Tomcat are you working with?  Tomcat 3.x does not
support HTTP/1.1 in stand-alone mode, and therefore is not required to
handle absolute URIs.  (I haven't tried it, but this should work for
Tomcat 3.x behind Apache).

For Tomcat 4.0-m4, I get a "404" error when I try this, which is
definitely a bug (because the absolute URI form is not being parsed).
Could you do me a favor and log a bug in our Bug Tracking System so that
we'll add this to the list of things to get fixed?  Sometimes bug
reports in the mailing lists get lost in the confusion.  You can report
this bug at:

http://znutar.cortexity.com/index.jsp

>
> --
> Stefan Haustein
> Univ. Dortmund, FB 4, LS 8   tel: +49 231 755 2499
> Baroper Str. 301 fax: +49 231 755 5105
> D-44221 Dortmund (Germany)   www-ai.cs.uni-dortmund.de

Craig McClanahan





Re: Number of Instances

2000-11-16 Thread dynacomconsulting

Hi,
I see the only possibility  with servlet programming
i.e implementing the single thread model.Can U please
elobarate on the ptoblem with single thread model.
Ravi
--- Lauber Christof <[EMAIL PROTECTED]> wrote:
> How must I configure the jakarta-tomcat 3.1 that
> just one Instance per 
> servlet is allowed? Which config file do I have to
> edit(server.xml, 
> web.xml, ? ) ?
>   The servlet does not implement the Single Thread
> Model,regardless it 
> happens that the Servlet's init Methode is called
> twice!
> 


__
Do You Yahoo!?
Yahoo! Calendar - Get organized for the holidays!
http://calendar.yahoo.com/



Re: mod_jserv.so problem

2000-11-16 Thread Michael J. Suzio

You need to actually download the source package for Tomcat.  The
binary package does have a src/ directory, but it doesn't have the
native drivers code in it.  I just downloaded the binary version,
installed that, then downloaded the source, compiled mod_jk (this was
for Tomcat 3.2b7, but applies to you also), and loaded that into Apache.

I know it's confusing, but it works.

-- 
Michael J. Suzio
Lead Software Engineer -- ISS Southfield
[EMAIL PROTECTED]



Re: How to configure Mysql with Tomcat.

2000-11-16 Thread Tony Keith


Noel Morgan wrote:
For Tomcat 3.2b6 I used:
my setup:
Apache 1.3.12
RH 6.2 Linux 2.2.14-5.0
Class.forName("org.gjt.mm.mysql.Driver").newInstance();
con =
DriverManager.getConnection("jdbc:mysql://localhost:3306/DatabaseName?user=dbuser&password=dbpassword");
put the jdbc drivers in the classes folder of your
app like:
cp -Rf $JDBC_HOME/org $MYAPP_HOME/WEB-INF/classes
 
I tried this but I still get the same error...
Is there any other configuration to the web.xml?
 
That should do it, but I have noticed serious
performance degradation in switching from JServ
1.1.2 to Tomcat 3.2b6. I am not sure if I am missing
something in the docs, but JServ 1.1.2/GNUJsp 1.0 is
IMHO much faster (at least with the mm.mysql JDBC
driver apps I have written) If someone could point
me to some tuning tips/parameters I may have missed
in the standard docs I would really appreciate it.
Noel
- Original Message -
>From    : Zebadiah Kimmel <[EMAIL PROTECTED]>
Sent    : Thu, 16 Nov 2000 13:49:07 -0500
To  :
[EMAIL PROTECTED],[EMAIL PROTECTED]
Subject : Re: How to configure Mysql with Tomcat.
The following code should work if your database's
rootpassword is empty:
Class.forName(dbDriver).newInstance();
connPool[i]=DriverManager.getConnection("jdbc:mysql://"+dbServer+"?user="+db
Login);
As for connecting with a non-empty password, I
don'tknow how to do that.
If you figure it out, please let me know.
--Zeba
At 09:58 AM 11/16/00 -0800, Tony Keith wrote:
>Hello,
>
>I wrote a simple servlet to insert a row into a
mysqldatabase table.
>I'm running Tomcat
>
>What are the steps to configure Tomcat to work
withthis servlet?
>The problem I'm having now is the driver isn't
found.
>
>Where do I place the driver? In the lib directory?
>
>How do I reference a new instance of the driver?
>This is how I reference it now:
>Class.forName("org.mm.mysql.Driver").newInstance();
>
>Will the connection information remain the same?
>Here is the connection information I currently use:
>con
=DriverManager.getConnection("jdbc:mysql://localhost/webdata",
>"user", "password");
>
>TIA
>--
>Tony Keith
__
Move your email to a better address.
Over 1,000 domains to choose from! FREE! PRIVATE!
http://www.MailSpace.com
 
 

-- 
Tony Keith
Director of Information Technology
Paycom.net
4215 Glencoe Avenue, First Floor
Marina Del Rey, CA  90292
TEL: (310) 827-5880 ext. 304
FAX: (310) 827-5519
 


Problem with Ant and Build

2000-11-16 Thread Mike Aaron

Greetings!

I have installed the latest production version of Tomcat,
and included is the Ant utility.  I've followed the
installation instructions to the "T", and am now at the
point where I need to use the build script (I'm on linux)
to product the final output before testing my servlet.

When I run build, I get the following output:

Buildfile: build.xml
Project base dir set to: /usr/jakarta-tomcat/webapps/pmr
BUILD CONFIG ERROR: Could not create task of type: copy because I can't
find it
in the list of task class definitions
org.apache.tools.ant.BuildException: Could not create task of type: copy
because
 I can't find it in the list of task class definitions
at org.apache.tools.ant.Project.createTask(Project.java:374)
at
org.apache.tools.ant.ProjectHelper.configureTasks(ProjectHelper.java:
216)
at
org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.jav
a:193)
at
org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.jav
a:134)
at org.apache.tools.ant.Main.runBuild(Main.java:223)
at org.apache.tools.ant.Main.main(Main.java:191)


Can someone shed some light on what's happening here?  I'm
at a complete loss, as all of the libraries exist and are
in the classpath I'm using

BTW, my build script looks like

#!/bin/sh
# build -- Build Script for the "Hello, World" Application
# $Id: build,v 1.2 2000/04/04 22:01:13 craigmcc Exp $

# Identify the custom class path components we need
CP=$TOMCAT_HOME/lib/ant.jar:$TOMCAT_HOME/lib/xml.jar
CP=$CP:$TOMCAT_HOME/lib/jasper.jar:$TOMCAT_HOME/lib/servlet.jar
CP=$CP:$TOMCAT_HOME/lib/webserver.jar:$TOMCAT_HOME/lib/tools.jar

# Execute ANT to perform the requested build target
java -classpath $CP:$CLASSPATH org.apache.tools.ant.Main \
  -Dtomcat.home=$TOMCAT_HOME "$@"

Any help is greatly appreciated!!!

~~~
Mike




RE: mod_jserv.so problem

2000-11-16 Thread Micky Mimo
Title: RE: mod_jserv.so problem






I am trying to install the adapter (mod_jserv.so) for apache + Tomcat. I keep getting the error below. I built the file   mod_jserv.so from the source of tomcat 3.1. I installed the file mod_jserv.so in the libexec directory and added the include directive to the end of the httpd.conf file. I am at a loss right now on how to resolve this error.

What are the steps for loading mod_jk into apache. I tried the following but it did not work. 


I put mod_jserv.so into the /etc/httpd/libexec directory. But when I start httpd I get this error. 


[root@qatest2 init.d]# ./httpd start

Starting httpd: Syntax error on line 13 of /usr/local/tomcat/conf/tomcat.conf

Cannot load /etc/httpd/modules/mod_jserv.so into server: /etc/httpd/modules/mod_jserv.so: cannot open shared object

 file: No such file or directory

FAILED]

micky 


 



/===\

| Micky Mimo    |

| Systems Specialist    |

| (781) 457 - 1317  |

| [EMAIL PROTECTED] |

\===/



-Original Message-

From: Michael J. Suzio [mailto:[EMAIL PROTECTED]]

Sent: Thursday, November 16, 2000 2:58 PM

To: [EMAIL PROTECTED]

Subject: Re: mod_jserv.so problem



You need to actually download the source package for Tomcat.  The

binary package does have a src/ directory, but it doesn't have the

native drivers code in it.  I just downloaded the binary version,

installed that, then downloaded the source, compiled mod_jk (this was

for Tomcat 3.2b7, but applies to you also), and loaded that into Apache.


I know it's confusing, but it works.


-- 

Michael J. Suzio

Lead Software Engineer -- ISS Southfield

[EMAIL PROTECTED]





Re: How to configure Mysql with Tomcat.

2000-11-16 Thread Dave Harms

Tony,

> connPool[i]=DriverManager.getConnection("jdbc:mysql://"+dbServer+"?user="+db
> 
> Login); 
> As for connecting with a non-empty password, I don't know
> how to do that. 
> If you figure it out, please let me know.
>

Passing the userid and password separately works fine for me:

   connection = DriverManager.getConnection(connectionURL,
"userid", "password");


Dave

Dave Harms
[EMAIL PROTECTED]




Re: How to configure Mysql with Tomcat.

2000-11-16 Thread Dave Harms

Tony,

> I tried this but I still get the same error... 
> Is there any other
> configuration to the web.xml?
>
Have you tried unpacking the jar under your /WEB-INF/classes directory? 
You'll end up with something like classes/org/gjt/mm/mysql/

Either that or putting the jar (not just the jar's path) in the 
classpath should do the job. 

Dave

Dave Harms
[EMAIL PROTECTED]




RE: Number of Instances

2000-11-16 Thread CPC Livelink Admin


Here's my humble attempt to explain.  The single thread model says to the
servlet container that your servlet should only be run on one thread only.
Multithreading in the server is then implemented by creating multiple of
your single thread model servlets, one for each thread that is required to
respond to requests.

When are your inits being called?  Is it possible that your servlet is being
garbage collected and then respawned?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 16, 2000 02:52 PM
To: [EMAIL PROTECTED]
Subject: Re: Number of Instances


Hi,
I see the only possibility  with servlet programming
i.e implementing the single thread model.Can U please
elobarate on the ptoblem with single thread model.
Ravi
--- Lauber Christof <[EMAIL PROTECTED]> wrote:
> How must I configure the jakarta-tomcat 3.1 that
> just one Instance per
> servlet is allowed? Which config file do I have to
> edit(server.xml,
> web.xml, ? ) ?
>   The servlet does not implement the Single Thread
> Model,regardless it
> happens that the Servlet's init Methode is called
> twice!
>


__
Do You Yahoo!?
Yahoo! Calendar - Get organized for the holidays!
http://calendar.yahoo.com/




[Fwd: Client side SSL Information for - Tomcat 3.2b6 + mod_ssl + Apache 1.3.14 + mod_jk]

2000-11-16 Thread Bobby Sardana





Greetings:

After searching the bug database, I have been unable to determine and
operate the following: (Apache 1.3.14 + mod_ssl + Tomcat 3.2b6 + mod_jk)

a. How is client side SSL information (SSL_CLIENT_CERT) available in a
servlet which is invoked by Tomcat.?
b. The information is available if I run a shell program under cgi-bin,
so the SSLOptions settings are right.

Are the environment variables exported at all by mod_jk? Or is it not
supported in 3.2b6?

Any information on the above is appreciated.

Regards,

[EMAIL PROTECTED]




begin:vcard 
n:Sardana;Bobby
x-mozilla-html:FALSE
org:MobileRain Technologies, Inc.;Telecommunications
adr:;;
version:2.1
email;internet:[EMAIL PROTECTED]
title:Engineer
x-mozilla-cpt:;0
fn:Bobby Sardana
end:vcard



begin:vcard 
n:Sardana;Bobby
x-mozilla-html:FALSE
org:MobileRain Technologies, Inc.;Telecommunications
adr:;;
version:2.1
email;internet:[EMAIL PROTECTED]
title:Engineer
x-mozilla-cpt:;0
fn:Bobby Sardana
end:vcard



RE: mod_jserv.so problem

2000-11-16 Thread Micky Mimo
Title: RE: mod_jserv.so problem



Correction the error is:
 
 Starting 
httpd
: Syntax error on line 13 of /usr/local/tomcat/conf/tomcat.conf 
Cannot load /etc/httpd/libexec/mod_jserv.so into server: 
/etc/httpd/libexec/mod_jserv.so: cannot open shared object  file: No such file or directory FAILED
 
/===\| Micky 
Mimo    
|| Systems 
Specialist    
|| (781) 457 - 
1317  
|| [EMAIL PROTECTED] 
|\===/

  -Original Message-From: Micky Mimo 
  [mailto:[EMAIL PROTECTED]]Sent: Thursday, November 16, 2000 
  3:34 PMTo: [EMAIL PROTECTED]Subject: RE: 
  mod_jserv.so problem
  I am trying to install the adapter (mod_jserv.so) for apache + 
  Tomcat. I keep getting the error below. I built the file   
  mod_jserv.so from the source of tomcat 3.1. I installed the file mod_jserv.so 
  in the libexec directory and added the include directive to the end of the 
  httpd.conf file. I am at a loss right now on how to resolve this 
  error.
  What are the steps for loading mod_jk into apache. I tried the 
  following but it did not work. 
  I put mod_jserv.so into the /etc/httpd/libexec directory. But 
  when I start httpd I get this error. 
  [root@qatest2 init.d]# ./httpd start Starting httpd: Syntax error on line 13 of 
  /usr/local/tomcat/conf/tomcat.conf Cannot load 
  /etc/httpd/modules/mod_jserv.so into server: /etc/httpd/modules/mod_jserv.so: 
  cannot open shared object  file: No such file or 
  directory FAILED] micky 
  
    
  /===\ | 
  Micky 
  Mimo    
  | | Systems 
  Specialist    
  | | (781) 457 - 
  1317  
  | | 
  [EMAIL PROTECTED] | 
  \===/ 
  -Original Message- From: 
  Michael J. Suzio [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 16, 2000 2:58 PM To: 
  [EMAIL PROTECTED] Subject: Re: 
  mod_jserv.so problem 
  You need to actually download the source package for 
  Tomcat.  The binary package does have a src/ 
  directory, but it doesn't have the native drivers code 
  in it.  I just downloaded the binary version, installed that, then downloaded the source, compiled mod_jk (this 
  was for Tomcat 3.2b7, but applies to you also), and 
  loaded that into Apache. 
  I know it's confusing, but it works. 
  -- Michael J. Suzio Lead Software Engineer -- ISS Southfield [EMAIL PROTECTED] 


Ajp13 Problems w Mod_JK

2000-11-16 Thread brent . johnson

These are a few problems/questions I'm having upgrading and using Tomcat
3.1 to 3.2 with Ajp13 instead of 12 (for SSL).

1) As for SSL security can apache handle the security and THEN pass off the
request to Tomcat? (the pass to tomcat would be internal behind a firewall)

2) I've noticed when starting up and shutting down Tomcat, the context
manager keeps mentioning /examples, /test and /admin although I've
commented these sections out in the server.xml file.  Is there some other
configuration location to remove these?

3) If I change my JkMount to point to /somethingElse/*  instead of
/servlet/* in mod_jk.conf (included in this message) the server no longer
processes the servlets.. not really sure why.  I'm guessing there's some
other file I havent changed..

4) If I bypass apache and use the Tomcat internal HTTP server it seems to
be processing requests fine.  But if I try to use apache to grab the
request and pass it to a load balancing worker it doesnt seem to work.
Here's a copy of my conf file:

LoadModule jk_module libexec/mod_jk.so
AddModule mod_jk.c

JkWorkersFile /usr/local/jakarta/tomcat/conf/workers.properties
JkLogFile /usr/local/jakarta/tomcat/logs/mod_jk.log
JkLogLevel warn

JkMount /*.jsp lb1
JkMount /servlet/* lb1


AllowOverride None
deny from all



AllowOverride None
deny from all


I then have workers set up in the workers.properties like the following:

worker.list=lb1, ajp12, ajp13-10, ajp13-11

worker.lb1.port=4000
worker.lb1.host=localhost
worker.lb1.type=lb
worker.lb1.balanced_workers=ajp13-10, ajp13-11

worker.ajp12.port=4200
worker.ajp12.host=localhost
worker.ajp12.type=ajp12
worker.ajp12.lbfactor=1

worker.ajp13-10.port=4201
worker.ajp13-10.host=localhost
worker.ajp13-10.type=ajp13
worker.ajp13-10.lbfactor=5

worker.ajp13-11.port=4202
worker.ajp13-11.host=localhost
worker.ajp13-11.type=ajp13
worker.ajp13-11.lbfactor=5

I've also changed the server.xml file to point the Ajp13ConnectionHandler
to port 4000 (the load balanced worker).  Any ideas as to why this isnt
working?  All that happens, is Apache issues me an internal server error
(real helpful).

Thanks for the help!

- Brent




unable to compile class for JSPerror - please help

2000-11-16 Thread Maryellen Rothberg

dear tomcat-user(s),

got the same error as a fellow who's problem is in the archive (#36), but
someone closed it without stating resolution.

the problem is "unable to compile class for JSPerror".  i'm using java 1.1.

i'd appreciate any help.

thanks in advance,

maryellen rothberg




Re: Accessing Servlets In Packages

2000-11-16 Thread JTBldrCO

Don't know why but that does not seem to work, either.  I am happy to have a 
way (changing slashes to dots - see previous) and will move on to other 
porting issues like load on startup.
Thanks, JT

In a message dated 11/16/2000 1:03:07 PM Mountain Standard Time, 
[EMAIL PROTECTED] writes:

> > I would like to (but CANNOT) access it with:
> >
> >  http://www.mySiteName.com/myWebApp/servlet/testapackage/SomePackageClass
> >

> Why can't you use a servlet definition and mapping like this:
> 
> My Servlet
> testpackage.SomePackageClass
> 
> 
> My Servlet
> /servlet/testpackage/SomePackageClass
> 
> which would support your desired URL?
> 
> Craig McClanahan



Re: How to configure Mysql with Tomcat. (problem Fixed!)

2000-11-16 Thread Tony Keith


Tony Keith wrote:
Once I copied the Mysql classes to the /WEB-INF/classes directory it
worked.
I also was specifying the wrong path for the driver.
I had org.mm.mysql.Driver instead of org.gjt.mm.mysql.Driver.
Thanks for everyone's help.
Noel Morgan wrote:
For Tomcat 3.2b6 I used:
my setup:
Apache 1.3.12
RH 6.2 Linux 2.2.14-5.0
Class.forName("org.gjt.mm.mysql.Driver").newInstance();
con =
DriverManager.getConnection("jdbc:mysql://localhost:3306/DatabaseName?user=dbuser&password=dbpassword");
put the jdbc drivers in the classes folder of your
app like:
cp -Rf $JDBC_HOME/org $MYAPP_HOME/WEB-INF/classes
 
I tried this but I still get the same error...
Is there any other configuration to the web.xml?
 
That should do it, but I have noticed serious
performance degradation in switching from JServ
1.1.2 to Tomcat 3.2b6. I am not sure if I am missing
something in the docs, but JServ 1.1.2/GNUJsp 1.0 is
IMHO much faster (at least with the mm.mysql JDBC
driver apps I have written) If someone could point
me to some tuning tips/parameters I may have missed
in the standard docs I would really appreciate it.
Noel
- Original Message -
>From    : Zebadiah Kimmel <[EMAIL PROTECTED]>
Sent    : Thu, 16 Nov 2000 13:49:07 -0500
To  :
[EMAIL PROTECTED],[EMAIL PROTECTED]
Subject : Re: How to configure Mysql with Tomcat.
The following code should work if your database's
rootpassword is empty:
Class.forName(dbDriver).newInstance();
connPool[i]=DriverManager.getConnection("jdbc:mysql://"+dbServer+"?user="+db
Login);
As for connecting with a non-empty password, I
don'tknow how to do that.
If you figure it out, please let me know.
--Zeba
At 09:58 AM 11/16/00 -0800, Tony Keith wrote:
>Hello,
>
>I wrote a simple servlet to insert a row into a
mysqldatabase table.
>I'm running Tomcat
>
>What are the steps to configure Tomcat to work
withthis servlet?
>The problem I'm having now is the driver isn't
found.
>
>Where do I place the driver? In the lib directory?
>
>How do I reference a new instance of the driver?
>This is how I reference it now:
>Class.forName("org.mm.mysql.Driver").newInstance();
>
>Will the connection information remain the same?
>Here is the connection information I currently use:
>con
=DriverManager.getConnection("jdbc:mysql://localhost/webdata",
>"user", "password");
>
>TIA
>--
>Tony Keith
__
Move your email to a better address.
Over 1,000 domains to choose from! FREE! PRIVATE!
http://www.MailSpace.com
 
 

-- 
Tony Keith
Director of Information Technology
Paycom.net
4215 Glencoe Avenue, First Floor
Marina Del Rey, CA  90292
TEL: (310) 827-5880 ext. 304
FAX: (310) 827-5519
 

-- 
Tony Keith
Director of Information Technology
Paycom.net
4215 Glencoe Avenue, First Floor
Marina Del Rey, CA  90292
TEL: (310) 827-5880 ext. 304
FAX: (310) 827-5519
 


Bug or Feature? Additional parameters not passed for FORM login page in Tomcat 3.2 b7

2000-11-16 Thread Xia, Alex

I have been trying to retrieve additional field information from the FORM
login page without success. Basically I am using the following login.jsp but
could not get "my_field".



Login page for examples


  
  
 
 


<%
System.out.println("my_field="+request.getParameter("my_field");
%>



The println statement always prints null.

The same thing holds true if I try to use request.getParameter("my_field")
inside the SimpleRealm.java.

Nothing is said in the Servlet Spec for FORM based login NOT to pass
additional fields. Is this a Tomcat bug?

Thanks,

Alex X. Xia
Sonus Networks, Inc.
(978) 392-8114




Re: Bug or Feature? Additional parameters not passed for FORM login page in Tomcat 3.2 b7

2000-11-16 Thread Craig R. McClanahan

"Xia, Alex" wrote:

> I have been trying to retrieve additional field information from the FORM
> login page without success. Basically I am using the following login.jsp but
> could not get "my_field".
>
> 
> 
> Login page for examples
>
> 
>  
>  
>  
>  
> 
>
> <%
> System.out.println("my_field="+request.getParameter("my_field");
> %>
> 
> 
>
> The println statement always prints null.
>
> The same thing holds true if I try to use request.getParameter("my_field")
> inside the SimpleRealm.java.
>
> Nothing is said in the Servlet Spec for FORM based login NOT to pass
> additional fields. Is this a Tomcat bug?
>

No, you were right the first time ... it's a feature :-).

Why is this so?  Because the form is submitted to a URL that ends in
"/j_security_check".  Your page is called to create the original input form, but
the submit goes to an internal Tomcat component.

The whole idea of form based login is to make the user experience similar to
what happens when you use BASIC authentication:

* User submits a URL to a protected resource

* The login dialog "pops up"

* The server authenticates the user, and proceeds
  to display the *originally* requested page

The only difference is that form based login lets you impose your own look and
feel on the input form.  After the username and password are processed, control
proceeds to the originally requested page, not back to your login page.

>
> Thanks,
>
> Alex X. Xia

Craig McClanahan





Virtual Hosts under Tomcat

2000-11-16 Thread Todd Davis

As I was perusing the Tomcat-Apache HOWTO, I have run across what I
believe to be a slight discrpency.  In the discussion about configuring
Virtual Hosts using the same Tomcat VM for all Virtual Hosts,the example
provided for httpd.conf and the example for server.xml are exactly the
same.  I'm assuming that the server.xml example is the wrong one and the
example should have  tags rather than .  Does anyone
have the correct example for server.xml?
-- 
-
Todd J. Davis
Internet Consultant

MSF&W Consulting
3445 Liberty Drive
Springfield, IL  62704
217-698-3535
=



RE: How to configure Mysql with Tomcat.

2000-11-16 Thread Allen

Hi,

I place the MySQL drivers in my WEB-INF/lib directory (in their JAR
file) and I make sure that it is in my classpath. You can check your
class path if you place this code into a servlet (it is writing to the
response's writer):
  Properties sysProp = System.getProperties();
  Enumeration propNames = sysProp.propertyNames();
  while (propNames.hasMoreElements())
  {
String name = (String)propNames.nextElement();
   out.print(name);
   out.print("=");
   out.println(sysProp.getProperty(name));
  }

I use the driver this way:

Class.forName("org.gjt.mm.mysql.Driver");
Connection dbConn =
DriverManager.getConnection("jdbc:mysql://localhost/mydb", "username",
"password");

So, the problem might be the name of the driver that you are using (I
noticed that you do not have a gjt in your driver name).

I got my drivers from the MySQL website: http://www.mysql.com/

Allen

You wrote:
-
Hello,

I wrote a simple servlet to insert a row into a mysql database table.
I'm running Tomcat 3.2b7.

What are the steps to configure Tomcat to work with this servlet?
The problem I'm having now is the driver isn't found.

Where do I place the driver? In the lib directory?

How do I reference a new instance of the driver?
This is how I reference it now:
Class.forName("org.mm.mysql.Driver").newInstance();

Will the connection information remain the same?
Here is the connection information I currently use:
con = DriverManager.getConnection("jdbc:mysql://localhost/webdata",
"user", "password");

TIA
--
Tony Keith




Is it gone?

2000-11-16 Thread Martens David

Gang,
I have just started a project using Tomcat, and ran across the
How-To page concerning the Jakarta NT service, jk_nt_service.exe. Is this
available now? I could not find it in the win32/i386 folder of the Tomcat
download area. I would really like to use this if possible, thanks.

David Martens
[EMAIL PROTECTED]




Container Managed Security - Basic authentication will not work.

2000-11-16 Thread Miles Daffin



Hi,
 
TC version: 3.1
Java version: "1.3.0-C"
OS: Win 2000 (SP 1)
 
Has anyone else tested the Example Basic 
Authentication Area (see TOMCAT_HOME\readme.txt) 
in the example web app?
 
I placed an index.html in 
'/examples/jsp/security/protected' directory and tried the following 
URLs:
 
1: http://localhost:8080/examples/jsp/security/protected/
2: http://localhost:8080/examples/jsp/security/protected/index.html
3: http://localhost:8080/examples/jsp/security/protected/index.jsp
 
In each case a Basic Authentication dialog opens OK 
& I enter a user ID and password combination as 
defined in TOMCAT_HOME/conf/tomcat-users.xml.
 
This is what 
happens:-
 
1: A listing of directories that DO NOT 
EXIST within 'examples/jsp/security/protected' - they are in the 'examples' 
directory. 


  
  
Directory Listing for: 
  /examples/jsp/security/protected/
  
Up to: 
  /examples/jsp/security
  
Subdirectories: 
  
  images/   

  
Sun, 05 Nov 2000 14:26 GMT+01:00
  
  jsp/   

  
Sun, 05 Nov 2000 14:26 GMT+01:00
  
  servlets/   

  
Sun, 05 Nov 2000 14:26 GMT+01:00
  
 
  
 
  
Tomcat Web Server 
v3.1
 
 
2: Error 404
Error: 404
Location: /examples/jsp/security/protected/index.html
File Not Found/examples/jsp/security/protected/index.html 

 
There is DEFINITELY an index.html in this 
location
 
3: Error 404 - same as above but for 
'index.jsp'
 
 
If I press make 3 bad attempts to 
log-in OR press cancel I get a blank page - wonderful!
 
Any ideas? - please. 
 
Finally: The project I am involved in intends to 
run TomCat as a standalone - no Apache. 
* Can anyone direct me to a 
decent source of info on how to configure Basic and other forms of access control to protected resources 
using JUST TomCat?
* Is it possible to hook TomCat up to an LDAP 
server (users, groups & roles)?
* Can I define users (as in 
TOMCAT_HOME/conf/tomcat-users.xml) separately for each web app?
 
Thanks in advance .
 
 
¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤øø
 
Miles Daffin Java Developer, 
Netherlands.  
 
Land: +31 (0)10 476 2412Mobile: +31 (0)6 2959 
1423Permanent email: [EMAIL PROTECTED]
 
¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤øø


RE: Is it gone?

2000-11-16 Thread Mark Franz

No, you have to create the folders...

Mark G. Franz


-Original Message-
From: Martens David [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 16, 2000 2:31 PM
To: '[EMAIL PROTECTED]'
Subject: Is it gone?


Gang,
I have just started a project using Tomcat, and ran across the
How-To page concerning the Jakarta NT service, jk_nt_service.exe. Is this
available now? I could not find it in the win32/i386 folder of the Tomcat
download area. I would really like to use this if possible, thanks.

David Martens
[EMAIL PROTECTED]



Re: Container Managed Security - Basic authentication will not work.

2000-11-16 Thread Craig R. McClanahan



Miles Daffin wrote:

Hi, TC
version: 3.1Java version:
"1.3.0-C"OS: Win 2000 (SP
1) Has anyone else
tested the Example Basic Authentication Area (see TOMCAT_HOME\readme.txt)
in the example web app? I
placed an index.html in '/examples/jsp/security/protected' directory and
tried the following URLs: 1:
http://localhost:8080/examples/jsp/security/protected/2:
http://localhost:8080/examples/jsp/security/protected/index.html3:
http://localhost:8080/examples/jsp/security/protected/index.jsp In
each case a Basic Authentication dialog opens OK & I enter a user ID
and password combination as defined in TOMCAT_HOME/conf/tomcat-users.xml. 

Container managed security in Tomcat 3.1 is broken.  Use 3.2
or 4.0.
Craig McClanahan
 




in-process document

2000-11-16 Thread Bruce Knipe


I've been attempting to configure IIS to use Tomcat 3.2. This is fairly
easy to do when it isn't in-process, but when I tried to configure it
using the in-process-howto.html document I ran into a problem that maybe
someone on this list might be able to help me with.

The in-process doc states:

 On IIS you will have to modify your worker mount file to mount
contexts to the JNI
 worker. For example: /examples/*=jni

My question is what the heck is an IIS working mount file? I've tried to
find it, but no luck. Can someone please clarify the above statement for
me?

Thanks.

-Bruce




Re: Ajp13 Problems w Mod_JK

2000-11-16 Thread Julio Serje (@canada.com)

Regarding item 2):

When you unpack the distribution of Tomcat it comes with several WAR files
(inlcuding test.war admin.war and examples.war).  You have to:

- get rid of the WAR files
- remove the corresponding directories
- and of course, remove the contexts from xerver.xml


Julio

- Original Message -
From: To: <[EMAIL PROTECTED]>
Sent: Thursday, November 16, 2000 4:49 PM
Subject: Ajp13 Problems w Mod_JK


> These are a few problems/questions I'm having upgrading and using Tomcat
> 3.1 to 3.2 with Ajp13 instead of 12 (for SSL).
>
> 1) As for SSL security can apache handle the security and THEN pass off
the
> request to Tomcat? (the pass to tomcat would be internal behind a
firewall)
>
> 2) I've noticed when starting up and shutting down Tomcat, the context
> manager keeps mentioning /examples, /test and /admin although I've
> commented these sections out in the server.xml file.  Is there some other
> configuration location to remove these?
>
> 3) If I change my JkMount to point to /somethingElse/*  instead of
> /servlet/* in mod_jk.conf (included in this message) the server no longer
> processes the servlets.. not really sure why.  I'm guessing there's some
> other file I havent changed..
>
> 4) If I bypass apache and use the Tomcat internal HTTP server it seems to
> be processing requests fine.  But if I try to use apache to grab the
> request and pass it to a load balancing worker it doesnt seem to work.
> Here's a copy of my conf file:
>
> LoadModule jk_module libexec/mod_jk.so
> AddModule mod_jk.c
>
> JkWorkersFile /usr/local/jakarta/tomcat/conf/workers.properties
> JkLogFile /usr/local/jakarta/tomcat/logs/mod_jk.log
> JkLogLevel warn
>
> JkMount /*.jsp lb1
> JkMount /servlet/* lb1
>
> 
> AllowOverride None
> deny from all
> 
>
> 
> AllowOverride None
> deny from all
> 
>
> I then have workers set up in the workers.properties like the following:
>
> worker.list=lb1, ajp12, ajp13-10, ajp13-11
>
> worker.lb1.port=4000
> worker.lb1.host=localhost
> worker.lb1.type=lb
> worker.lb1.balanced_workers=ajp13-10, ajp13-11
>
> worker.ajp12.port=4200
> worker.ajp12.host=localhost
> worker.ajp12.type=ajp12
> worker.ajp12.lbfactor=1
>
> worker.ajp13-10.port=4201
> worker.ajp13-10.host=localhost
> worker.ajp13-10.type=ajp13
> worker.ajp13-10.lbfactor=5
>
> worker.ajp13-11.port=4202
> worker.ajp13-11.host=localhost
> worker.ajp13-11.type=ajp13
> worker.ajp13-11.lbfactor=5
>
> I've also changed the server.xml file to point the Ajp13ConnectionHandler
> to port 4000 (the load balanced worker).  Any ideas as to why this isnt
> working?  All that happens, is Apache issues me an internal server error
> (real helpful).
>
> Thanks for the help!
>
> - Brent
>




RE: mod_jserv.so problem

2000-11-16 Thread Wong, Connie

Hi Michael,

I am also working on the mod_jk. My question is, do you uncompress both dowonload 
files (binary and source code)
 into some directory "jakarta-tomcat"?
Or they have to be uncompressed into different directory?

Thanks,
Connie


> -Original Message-
> From: Michael J. Suzio [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, November 16, 2000 2:58 PM
> To:   [EMAIL PROTECTED]
> Subject:  Re: mod_jserv.so problem
> 
> You need to actually download the source package for Tomcat.  The
> binary package does have a src/ directory, but it doesn't have the
> native drivers code in it.  I just downloaded the binary version,
> installed that, then downloaded the source, compiled mod_jk (this was
> for Tomcat 3.2b7, but applies to you also), and loaded that into Apache.
> 
> I know it's confusing, but it works.
> 
> -- 
> Michael J. Suzio
> Lead Software Engineer -- ISS Southfield
> [EMAIL PROTECTED]



trouble with startup

2000-11-16 Thread Chris Huisman

Hello, 

I am having a hard time getting tomcat to perform properly.  When I attempt
to start tomcat in the background using bin\startup I get the following
message:
The system cannot find the path specified.
I am using Windows NT.  Any ideas?  When I run bin\tomcat start from the
command line, a new command prompt window pops up extremely briefly.  How do
I check to see if tomcat is running or not?

Another question, where is the standard location for servlet classes???  I
have the core servlets and JSP book and it says in Tomcat 3.1 the standard
location for classes is either:
install_dir\webapps\ROOT\WEB-INF\classes
OR
install_dir\classes
Neither of these exist.  Where do I put my class files?

Also I am trying to configure tomcat into apache, and it says after adding
the include file, you should also copy the jserv module to the apache
libexec directory.  Where can I find jserv, and where is the libexec
directory?

Here are my classpath, and tomcat home files.  Please let me know if they
are incorrect.

CLASSPATH =
.;C:\'install_dir'\lib\servlet.jar;C:\Symphony\jakarta-tomcat\lib\jspengine.
jar

TOMCAT_HOME = 'install_dir'\

Thanks in advance for any help.

Chris HUisman.



Re: Is it gone?

2000-11-16 Thread Jivan Amara

I was poking around the archives & it is only in some of the 3.2 folders.  I
know for sure it's in 3.2 Beta 7

Martens David wrote:

> Gang,
> I have just started a project using Tomcat, and ran across the
> How-To page concerning the Jakarta NT service, jk_nt_service.exe. Is this
> available now? I could not find it in the win32/i386 folder of the Tomcat
> download area. I would really like to use this if possible, thanks.
>
> David Martens
> [EMAIL PROTECTED]




RE: mod_jserv.so problem

2000-11-16 Thread Micky Mimo
Title: RE: mod_jserv.so problem






I believe you need the following directory scructure. This is what the README file says for the source in jakarta-tomcat 

How to Build




First, you must have the jakarta-ant workspace checked out parallel

to this workspace (jakarta-tomcat). Without jakarta-ant, you won't

be able to build.  When you have completed your downloads and checkouts,

you should have the following directory structure:


    $JAKARTA_HOME/

    jakarta-ant/    <-- Contains jakarta-ant files

    jakarta-tomcat/ <-- Contains jakarta-tomcat files



If you get the adapter working, please send me a hint, since I am stuck. 



/===\

| Micky Mimo    |

| Systems Specialist    |

| (781) 457 - 1317  |

| [EMAIL PROTECTED] |

\===/



-Original Message-

From: Wong, Connie [mailto:[EMAIL PROTECTED]]

Sent: Thursday, November 16, 2000 6:29 PM

To: [EMAIL PROTECTED]

Subject: RE: mod_jserv.so problem



Hi Michael,


I am also working on the mod_jk. My question is, do you uncompress both dowonload files (binary and source code)

 into some directory "jakarta-tomcat"?

Or they have to be uncompressed into different directory?


Thanks,

Connie



> -Original Message-

> From: Michael J. Suzio [SMTP:[EMAIL PROTECTED]]

> Sent: Thursday, November 16, 2000 2:58 PM

> To:   [EMAIL PROTECTED]

> Subject:  Re: mod_jserv.so problem

> 

> You need to actually download the source package for Tomcat.  The

> binary package does have a src/ directory, but it doesn't have the

> native drivers code in it.  I just downloaded the binary version,

> installed that, then downloaded the source, compiled mod_jk (this was

> for Tomcat 3.2b7, but applies to you also), and loaded that into Apache.

> 

> I know it's confusing, but it works.

> 

> -- 

> Michael J. Suzio

> Lead Software Engineer -- ISS Southfield

> [EMAIL PROTECTED]





Tomcat server access logs?

2000-11-16 Thread Rick Castello

I've searched the site, the FAQ, and what of the mailing lists
I could find, to no avail.

I am having great difficulty finding info on access logging for
Tomcat.  

I am running Tomcat solo, with Cocoon.  I am *not* running
it along with Apache server, as I am only serving XML/WML
pages- nothing static.

Does anyone have any help on access logging?
I need to track site stats, but don't get useful access info in my
tomcat.log file.  Is there a special verbosity that gives "normal"
access info, like Apache?

Many thanks!

-Rick Castello
[EMAIL PROTECTED]




Re: Tomcat server access logs?

2000-11-16 Thread Craig R. McClanahan

Rick Castello wrote:

> I've searched the site, the FAQ, and what of the mailing lists
> I could find, to no avail.
>
> I am having great difficulty finding info on access logging for
> Tomcat.
>
> I am running Tomcat solo, with Cocoon.  I am *not* running
> it along with Apache server, as I am only serving XML/WML
> pages- nothing static.
>
> Does anyone have any help on access logging?
> I need to track site stats, but don't get useful access info in my
> tomcat.log file.  Is there a special verbosity that gives "normal"
> access info, like Apache?
>

Tomcat 3.x does not have any access log style logging (although such a
module could be written fairly easily).  If you run Tomcat behind a web
server, all of the accesses to Tomcat will be included in the web
server's access log.

Tomcat 4.0 includes access log support for standalone mode "out of the
box.".

>
> Many thanks!
>
> -Rick Castello
> [EMAIL PROTECTED]

Craig McClanahan





  1   2   >