Re: Tomcat 4.0.1/Apache 1.3/Warp Connection

2001-11-26 Thread BoD

 You want to set CATALINA_BASE, not CATALINA_HOME -- CATALINA_HOME
 points to the location of your Tomcat 4 installation, while
 CATALINA_BASE points to the location your web apps are found in.

I tried that, too but it changes nothing.
Anyway, like I said in my previous mail, there is no such place where my web
apps are found in, because they are in several different places. It should
be possible (maybe I'm wrong, and if so please correct me) to put web apps
in different places as long as you tell so in the docBase attribute of the
context in server.xml.

Thank you for your help, I still don't have a solution !

BoD

- Original Message -
From: Daniel Rall [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Cc: BoD [EMAIL PROTECTED]
Sent: Monday, November 26, 2001 7:35 AM
Subject: Re: Tomcat 4.0.1/Apache 1.3/Warp Connection


 BoD [EMAIL PROTECTED] writes:

  I tried to set CATALINA_HOME to c:\tmp, but it changes nothing.
  Anyway, I don't think it's a good solution since some of my webapps will
be
  in there and other will be in the webapps folder, and others will be in
  another place.
  I think the Warp module just doesn't see the docBase value of my context
!!

 You want to set CATALINA_BASE, not CATALINA_HOME -- CATALINA_HOME
 points to the location of your Tomcat 4 installation, while
 CATALINA_BASE points to the location your web apps are found in.



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




servlets with Apache and mod_webapp

2001-11-26 Thread Krasi Zlatev

Hi, I am using Apache,mod_webapp and Tomcat 4.
I am having trouble running servlets. I can run jsp's,
but with servlets I get 404 error - file not found.
If I type file.class the files wants to be downloaded.

My configuration is as simple as WebAppDeploy
something conn /servlets.

Thank You!

=
Krasi Zlatev
Enjoy!

__
Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Tomcat 4.0.1/Apache 1.3/Warp Connection

2001-11-26 Thread Gerard van Enk

BoD wrote:

 I have a similar problem I think :
 
 My webapp is not in the webapp directory, but elsewhere on my hard drive.
 I configured the server.xml to indicate this information (Context
 path=/bod docBase=c:\tmp\bod ...).
 The /bod context works fine in tomcat standalone (http://localhost:8080/bod)
 but the warp connection looks for another path, in the webapp directory !!


I think you have to download a nightly build of the mod_webapp from 
http://nagoya.apache.org/~pier/, or build one yourself from cvs. The 
released version didn't allow a different location for webapps.

Gerard


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




How to share (or refresh) the session

2001-11-26 Thread Oto Buchta

Hi,
I'm using the Tomcat 4.0 and I would like to know how can I share session 
between SSL part of web site and nonencrypted part of thesame one. If it 
isnot possible, my second question is how to refresh user's session without 
any user's hit.
Why? I would like to use the SSL connection only in a part of the application 
(beacouse of the most of application is only generation of public documents)
and I would like to ensure, that user will have the same login, password and 
setting informatio on th both parts of the application.
If the transparent sharing is not possible, may be the manual sharing by 
shared static HashMap is possible. But it is necessary to ensure,
that his session after his return to the nonenrypted site from the SSL 
connection will be alive.

Is it possible without static HashMap, manual parsing the request, building 
the HttpConnection and asking the site from the encrypted part to the public 
part?
Thanks very much,
-- 
Oto 'tapik' Buchta, [EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: the classloader doesn't like XML in TC 3.2.3 and TC 4.0

2001-11-26 Thread Arnaud Héritier



 -Message d'origine-
 De:   Domingo Aguilera [SMTP:[EMAIL PROTECTED]]
 Date: vendredi 23 novembre 2001 20:27
 À:[EMAIL PROTECTED]
 Objet:RE: the classloader doesn't like XML in TC 3.2.3 and TC 4.0
 
 More on...
 
 http://www.mail-archive.com/tomcat-user%40jakarta.apache.org/msg37534.html
 
 I am having the same problem when trying to use xalan within tomcat 4.0.1
 
 Xalan includes a xerces.jar file which I copied to
 $CATALINA_HOME/webapps/mywebapp/WEB-INF/lib
 
 ...
 
 1 - If placing crimson.jar and jaxp.jar files in the above directory is the
 solution, where can I get those versions?

In fact it's only a solution with Tomcat 4.0 and not with Tomcat 4.01.
I just upgraded my release to 4.01 and now Tomcat uses Xerces with Jasper so my 
problem with the conflict is resolved.

Just for information :

crimson : http://xml.apache.org/crimson/index.html
jasper is build on tomcat

 
 2 - It seems that jasper in tomcat 4.0.1 is using xerces.jar instead of
 crimson.jar , am I right ?

yes. I didn't know

 
 3 - I hope somebody in this beautiful world will sometime write an article
 or book on conflicting issues between xml parsers when using tomcat.  Just
 kidding.

oh my god, help us ;-)

 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Form/Basic Authentication

2001-11-26 Thread Erwin Ambrosch

Hi,

I have the following behaviour using Tomcat 3.2.3 on RH Linux 7.1.

If I use either FORM based or BASIC authentication, for the very first 
login I get the login form/dialog two times.
1. First time after accessing the protected area as defined in web.xml 
for the very first time.
2. Second time after sending a request within the already logged on 
protected.

 From know on everything works fine. Logging out forces me to login 
again, but just one time as excpected.

Thanks for any comment

Erwin



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: tomcat authentication with IIS

2001-11-26 Thread Samuel Rochas

Hi Joe, 

My experience on that topic says no. You have to use the one of the 3
ways for realm authentication (JDBC, LDAP, or simple, see
documentation). The JSP request is passed to tomcat without going thru
IIS.

Samuel 
-- 
SWIPe Software Engineering  Project Management GmbH

Solutions with Individual Profile

Web: http://www.swipe.de

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




HELP NEEDED :Installing JBuilder 5 generated WAR files

2001-11-26 Thread Alec Bickerton

Hi all,

I'm having a problem when I try to install a web app on Tomcat 4.0.1, the file was 
produced by Jbuilder 5. 
I can install apps ok when not in a .WAR file.

It's a simple servlet that returns the current time, The war file appears to be OK. 

It contains the following:

WEB-INF/web.xml

web.xml:
?xml version=1.0 encoding=UTF-8?
!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN 
http://java.sun.com/j2ee/dtds/web-app_2_2.dtd;
web-app
  display-nameTimeServlet/display-name
  descriptionUsed to test tomcat installation /description
  distributable /
  servlet
servlet-namegettime/servlet-name
servlet-classtimservlet.GetTime/servlet-class
  /servlet
  servlet-mapping
servlet-namegettime/servlet-name
url-pattern/gettime/url-pattern
  /servlet-mapping
  session-config
session-timeout5/session-timeout
  /session-config
/web-app

WEB-INF/classes/timservlet/GetTime.class
META-INF/MANIFEST.MF

When I try 

http://{server}:8180/manager/install?path=/timewar=jar:file:/var/tomcat4/webapps/timservlet.war!/

I get the following exception

FAIL - Encountered exception java.io.FileNotFoundException: 
/var/tomcat4/webapps/timservlet/WEB-INF/classes/timservlet/GetTime.class (No such file 
or 
directory)

Tomcat 4.0.1 is running as user Tomcat4 in group Tomcat4, the War file is also owned 
by tomcat4 and in group tomcat4.

Any suggestions as to how I can get my servlet installed. 




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Réf. : HELP NEEDED :Installing JBuilder 5generated WAR files

2001-11-26 Thread Raul DAVIDOVICH


hello..

 I'm using Jbuilder5 and Tomcat 4, and I found that Jbuilder writes a
couple of lines in web.xml mapping JSP and SHTML (I'm not that sure of this
one) and that crashed the app in tomcat 4. I erased those two lines, and I
didn't have any problems afterwerds...

hope this will help
---
Raul Davidovich
Responsable Informatique
Cvitkovic  Associés Consultants

(33) 1 45 15 40 68
(33) 1 45 15 40 41 Fax
---
http://www.caconcology.com


|+--
||  Alec Bickerton  |
||  abickerton@opaltele|
||  com.co.uk  |
||  |
||  26/11/2001 12:09|
||  Veuillez répondre à |
||  Tomcat Users List |
||  |
|+--
  
-|
  |
 |
  |   Pour :  [EMAIL PROTECTED]   
 |
  |   cc : 
 |
  |   Objet :  HELP NEEDED :Installing JBuilder 5 generated WAR files  
 |
  
-|




Hi all,

I'm having a problem when I try to install a web app on Tomcat 4.0.1, the
file was produced by Jbuilder 5.
I can install apps ok when not in a .WAR file.

It's a simple servlet that returns the current time, The war file appears
to be OK.

It contains the following:

WEB-INF/web.xml

web.xml:
?xml version=1.0 encoding=UTF-8?
!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application
2.2//EN http://java.sun.com/j2ee/dtds/web-app_2_2.dtd;
web-app
  display-nameTimeServlet/display-name
  descriptionUsed to test tomcat installation /description
  distributable /
  servlet
servlet-namegettime/servlet-name
servlet-classtimservlet.GetTime/servlet-class
  /servlet
  servlet-mapping
servlet-namegettime/servlet-name
url-pattern/gettime/url-pattern
  /servlet-mapping
  session-config
session-timeout5/session-timeout
  /session-config
/web-app

WEB-INF/classes/timservlet/GetTime.class
META-INF/MANIFEST.MF

When I try

http://{server}:8180/manager/install?path=/timewar=jar:file:/var/tomcat4/webapps/timservlet.war!/


I get the following exception

FAIL - Encountered exception java.io.FileNotFoundException:
/var/tomcat4/webapps/timservlet/WEB-INF/classes/timservlet/GetTime.class
(No such file or
directory)

Tomcat 4.0.1 is running as user Tomcat4 in group Tomcat4, the War file is
also owned by tomcat4 and in group tomcat4.

Any suggestions as to how I can get my servlet installed.




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]






--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




integrate Tomcat/IIS

2001-11-26 Thread Ponian Chu

Hi there, I am new in this list~ 

I need some help with Tomcat/IIS integration

I tried to integrate Tomcat 3.3 with IIS on my Windows 2000 system with difficulty...

My environment is:
-- all servlet classes are put in %tomcat_home%\webapps\ROOT\WEB-INF\classes folder
-- web site is put in c:\home\httpd\html folder which is set in IIS. A PHP redirector 
handles url redirection..
-- the isapi redirector filter is setup and test ok
-- http://localhost/examples/jsp/num/numguess.jsp is ok
-- http://localhost/servlet/SnoopServlet get 404 error
-- http://localhost:8080/servlet/SnoopServlet ok, but I don't like to put the port 
number in url


I tried to modify the %tomcat_home%\conf\auto\uriworkermap.properties, and add 2 lines:
  /=$(default.worker)
  /*=$(default.worker)
at line 9, the 404 error is fixed, but the real index.html is not reachable anymore..

any hints are appreciated.

Thank you in advance..



Re: integrate Tomcat/IIS

2001-11-26 Thread Samuel Rochas

Hi Chu, 

You'll need to configure your servlet in the server.xml file like this:
Context path=/servlet 
 docBase=[your path here like webapps/servlet or absolute]\ 
 crossContext=false
 debug=0 
 reloadable=true 
/Context

Put all the stuff you need for your servlet at the same place:
everything under %tomcat_jome%/... or under your local path.

The changes in uriworkermap.properties seen ok

Samuel
-- 
SWIPe Software Engineering  Project Management GmbH

Solutions with Individual Profile

Web: http://www.swipe.de

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Redirecing all URLs to a site

2001-11-26 Thread Steven McArdle

Hi,

Can anybody tell me how to configure Tomcat 3.2.3 to redirect URLs request
to another URL.

example

I want any request made to http://localahost:8080/site1 or any URL below
this to be redirected to site1.jsp. and any request made to
http://localhost:8080/site2 or any URL below this to be redirected to
site2.jsp.

The result I am looking for is to be able to type something like
http://localhost:8080/site1/dir1/another.html or
http://localhost:8080/site1/ajspfile.jsp and have Tomcat redirect these
requests to http://localhost:8080/site1/site1.jsp

the site[1|2].jsp's are in the root of their respective context.

I would like to be able to do this in the web.xml files of the site1 and
site2 contexts. All I seem to be able to set up is the welcome-file-list
which is not what I would like


 Steven McArdle
 Technical Information Systems  
 mailto: [EMAIL PROTECTED]
 
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: TC4, does it reuse / pool custom tags?

2001-11-26 Thread Ulf Dittmer

TC can reuse tag instances (since TC 3.3 I think), but doesn't
by default. Look for TagPoolManagerInterceptor / in server.xml
to turn that feature on.

Ulf

-Original Message-
From: Peter Mutsaers [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 22, 2001 9:01 AM
To: [EMAIL PROTECTED]
Subject: TC4, does it reuse / pool custom tags?


Hello,

I was wondering if TC4 ever reuses instances of custom tags.
It looks like I get a new instance each time.

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Loading a file in servlet

2001-11-26 Thread Ulf Dittmer

You could specify the file name as an init parameter for
your servlet in the web.xml file. That way you only need
to restart your web application to pick up the new value.
If a restart is too much of a disruption, create a little
form where the file name can be submitted, and is then
stored in a global/static variable, from where it can be
picked up whenever the servlet is invoked.
Ulf

-Original Message-
From: Rajesh Kannan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 21, 2001 3:50 PM
To: [EMAIL PROTECTED]
Subject: Loading a file in servlet


Dear all,

We are developing a web application consisting of some servlets and JSPs.
To execute our servlets we need to get some values from a property file.
Presently we are hardcoding the path of the property file and loading it.
As in realtime we may be knowing the path we want to load that file without
hardcoding.
How normally property files are loaded into Java servlets???
Can any one throw light on this?
We will be grateful if you give some hints.
Thanks in advance

With regards
K.RajeshKannan 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Mac OS 10.1.1 and Tomcat 4.01

2001-11-26 Thread Gary W Propp

Use gunzip to expand the tomcat materials. Suffit can truncate some of 
the file names.

Michael S. McKellip wrote:

 I have been trying to install Tomcat 4.01 on Mac OS 10.1.1 with 
 partial success. I set the environment variables CATALINA_HOME and 
 JAVA_HOME as below within the file .tcshrc:

 setenv CATALINA_HOME /Applications/Internet/jakarta-tomcat-4.0.1
 setenv JAVA_HOME 
 /System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Home

 Tomcat starts up and if you browse http://localhost:8080 the tomcat 
 page loads fine. The error comes when trying to view any of the 
 servlet and JSP examples within the /examples/ folder. The error 
 displayed in the web browser is a 404 error: Resource not available. 
 I examined the examples_localhost_log.2001-11-21.txt and the 
 following errors are present:

 2001-11-21 00:09:17 StandardContext[/examples]: Exception starting 
 filter Set Character Encoding
 java.lang.ClassNotFoundException: filters.SetCharacterEncodingFilter
 2001-11-21 00:09:17 StandardContext[/examples]: Context startup failed 
 due to previous errors

 I am fairly new still to UNIX and have went as far as I can go with my 
 knowledge. Can anyone shed some more light on where my problem may be?

 Thanks,

 Michael S. McKellip




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: TC 4.0 newbie - servlet app won't run

2001-11-26 Thread Mark

Thanks for your reply Scott, and thanks to your and Micael's responses I
_believe_ I understand the relationship between the servlet naming/mapping
and the associated html.  As Micael noted, one could put pudding in the
url-pattern as long as the html was setup as ACTION=pudding.  But... how
do the example servlets work when they don't seem to have any servlet
mapping in the ..\examples\WEB-INF\web.xml?

Even after all the advice, I *STILL* can't get my app to run - I still get
a 404 error on the servlet. This seems like such a simple issue but I can
NOT get past it.  I've even gone as far as downloading Tomcat 3.3, with the
same result. Again, I know Tomcat is parsing my web.xml, because if I
intentionally make a typo, the parser complains when Tomcat is started. 

To recap where I am:

(a)  I have myservlet.class in the
$CATALINA_HOME\webapps\myapp\WEB-INF\classes 
 directory.  The servlet has no associated package.
(b)  The html is FORM ACTION=/servlet/myservlet method=POST
(c)  My $CATALINA_HOME\webapps\myapp\WEB-INF\web.xml is as follows:

 ?xml version=1.0 encoding=ISO-8859-1?

 !DOCTYPE web-app
 PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
 http://java.sun.com/dtd/web-app_2_3.dtd;

 web-app
 servlet
 servlet-namemyservlet/servlet-name
 servlet-classmyservlet/servlet-class
 /servlet
 servlet-mapping
 servlet-namemyservlet/servlet-name
 url-pattern/servlet/myservlet/url-pattern
 /servlet-mapping
 /web-app


Am I still missing something?  This is driving me berserk...

TIA. Mark.



At 12:22 AM 11/22/2001 -0500, you wrote:
Mark,

The servlet tag is used to assign a name to a particular servlet class 
file.

   servlet
   servlet-namemyservlet/servlet-name
   servlet-classmyservlet/servlet-class
   /servlet

This would attempt to assign the name 'myservlet' to the class 
'myservlet.class.'

The servlet-mapping tag defines the pattern or 'location' of a named 
servlet from the root of your context. This means that 

servlet-mapping
   servlet-namemyservlet/servlet-name
   url-pattern/classes/url-pattern
   /servlet-mapping

if this were the ROOT context, this would map your servlet at /classes 
and your form action would need to be defined as

FORM ACTION=/classes method=POST

A more common mapping for servlets is

servlet-mapping
   servlet-namemyservlet/servlet-name
   url-pattern/servlet/myservlet/url-pattern
   /servlet-mapping

which would have a coresponding form tag of

FORM ACTION=/servlet/myservlet method=POST


~Scott

Mark wrote:

I installed Tomcat 4.0.1 under Win 2k using JDK 1.3 and able to run the
example servlets, but not my own.  My html displays and I can execute my
JSPs, but a POST to a servlet does not work (this app has run under Forte
and VA Java in the past).   I get a 404 error with the requested resource
(/myservlet) is not available. Since the examples work, I have to assume
it's something in my configuration. Any help figuring out why the servlet
won't run would be *greatly* appreciated.  I suspect it's something
simple/braindead on my part.


o  My directory structure for the app:
   TomcatHome
|
+--webapps
  |
  +--myapp\.jsp, .html .gif
 |
 +--WEB-INF\web.xml
   |
   +--classes\.class files


o  My html POST stmt. I've tried various path prefixes to myservlet, eg
   
   classes/myservlet.  As with the Tomcat examples, this servlet has no
   package:

FORM ACTION=/myservlet method=POST


o  My web.xml - I know Tomcat's seeing/parsing this because if I
deliberately
   make a typo I get an error upon startup:

 ?xml version=1.0 encoding=ISO-8859-1?
 !DOCTYPE web-app
   PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
   http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
   !-- Define servlets that are included in the application --
   servlet
   servlet-namemyservlet/servlet-name
   servlet-classmyservlet/servlet-class
   /servlet   
   servlet-mapping
   servlet-namemyservlet/servlet-name
   url-pattern/classes/url-pattern
   /servlet-mapping
/web-app


o  Update to server.xml 

   Context path=/myapp docBase=myapp debug=0
   Logger className=org.apache.catalina.logger.FileLogger
   prefix=myapp_log. suffix=.txt
   timestamp=true/
   /Context








--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]









--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




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

URGENT! ErrorDispatcherValve throws NullPointerException on 403 forbidden!

2001-11-26 Thread Bragg, Casey

Sorry to repeat this post, but I haven't heard anything back, and this
appears to be a critical bug (it sure is for me :) )

This is operating very differently than tomcat 4 rc1 and other prior
versions.

==
Casey Bragg - Software Engineer
Allegiance Telecom, Inc.  Dallas, TX
469-259-2702 - [EMAIL PROTECTED]
==


-Original Message-
From: Bragg, Casey [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 20, 2001 4:19 PM
To: [EMAIL PROTECTED]
Subject: Help! ErrorDispatcherValve throws NullPointerException on 403
for bidden!

Please help!

On Tomcat 4.0.1, I'm getting an Error 500 caused by the following exception
when I should get a 403 forbidden error-page.

The exception : 
2001-11-20 16:03:49 HttpProcessor[8080][4] process.invoke
java.lang.NullPointerException
at
org.apache.catalina.valves.ErrorDispatcherValve.status(ErrorDispatcherValve.
java:291)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:180)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:163)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1011)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106
)
at java.lang.Thread.run(Thread.java:484)


1) I added user name=junk   password=junk1 roles=junkrole / to
tomcat-users.xml.

2)I added the following to /examples/WEB-INF/web.xml (between servlet
mapping and taglib sections)

   error-page
  error-code403/error-code
  location/examples/jsp/forbidden.jsp/location
   /error-page

3) I added the following /examples/jsp/forbidden.jsp file
html
bodyforbidden!/body
/html

4)I started Tomcat 4.0.1

5)I went to http://localhost:8080/examples/jsp/security/protected/index.jsp

6) I logged in as used junk with password junk1

7) I was sent to
http://localhost:8080/examples/jsp/security/protected/j_security_check
The file catalina_log.2001-11-20.txt contained the exception listed above
(NullPointerException).

8) I restarted tomcat, and logged in again as role1 (pwd tomcat) without
difficulty.

This was done on a default installation of Tomcat 4.0.1 on a Win2k box.

==
Casey Bragg - Software Engineer
Allegiance Telecom, Inc.  Dallas, TX
469-259-2702 - [EMAIL PROTECTED]
==


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




PLEASE HELP, binary upload problem

2001-11-26 Thread Marc Boorshtein




---BeginMessage---

Hello,

I need some help.  I am running Apache 1.3.14,
mod_webapp and tomcat 4.01.  My servlets perform file
uploads, and while text files work fine, binary do
not.  I think the issue is mod_webapp, but I'm not
entirly sure.  I know that it isn't tomcat because I
tried using tomcat's httpd server and everything
worked fine.  I'm sure it's not apache because I used
the servlets with apache in conjunction with JRun and
everything worked.  PLEASE HELP.

Thanks
Marc Boorshtein

__
Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


---End Message---

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


(RESENT - Craig ???) Authentication filters, web.xml, andportability

2001-11-26 Thread DONNIE HALE

Resending this since I haven't seen any responses.

 [EMAIL PROTECTED] 11/20/01 02:08PM 
Folks,

We've got a Tomcat 3.2.1-based interceptor in which we implement access to a custom 
realm for authentication, authorization, etc. We've implemented our own 
java.security.Principal; and we do what's needed to support getRemoteUser, 
getPrincipal, isUserInRole, etc.

We'd like to get away from the proprietary-based API (we can move to TC 4.x). What I 
can't quite figure out, however, is if it's possible to do a truly portable 
authentication/authorization using just the filtering (and possibly listener) APIs. 
Most especially, we still want to be able to rely upon the declaritive aspects of 
web.xml where we can specify required roles for URL patterns.

It seems like it would be reasonably straightforward to write a Filter which wraps 
HttpServletRequest and overrides getRemoteUser, getPrincipal, and isUserInRole. So any 
application-based security access (i.e. Java code in a servlet or JSP) would go 
through our implementation. What's not clear, at least from my reading of the spec, is 
whether the container is required to use those same methods when it's determining if 
access should be granted to a resource which has role restrictions placed on it in 
web.xml. If the container must use those methods, then I think my question is answered 
(though I'm sure there are some I've forgotten to ask :). If not, then I either go to 
a non-portable API (e.g. a Tomcat Valve); or I have to implement my own mechanism for 
handling the role restrictions in web.xml.

Does anyone have definitive information on how web containers must, or at least in 
very widely-followed practice do, handle this?

Thanks,

Donnie



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Tomcat 4.01 and IIS

2001-11-26 Thread Alan Scott

I have seen many posts on this regarding a DLL redirect and that is should 
be used. However, I cannot find the file in the 4.01 extract or on the 
jakarta sie. How would I find this file and then also get the instructions 
on how to implement it?

Thanks...


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: integrate Tomcat/IIS

2001-11-26 Thread Larry Isaacs

The default in Tomcat 3.3 is to *not* try to take over the
root context from an external web server, such as IIS.
Thus, http://localhost/servlet/SnoopServlet getting a 404
is the expected default behavior.  If you want to have
this URL work, you can set the noRoot attribute of the
IISConfig element in server.xml to false.  Following this
change, re-run jkconf and restart IIS.

However, here is a little more info about what you are
getting into, which should give you a clue as why its
disable by default.

1) With IISConfig's default forwardAll=true, setting
   noRoot=false means all root requests go to
   Tomcat.  This includes requests for *all* resources
   in virtual directories defined in IIS, not just
   InetPub\wwwroot.

2) To avoid #1 above, you can define forwardAll=false
   in addition to noRoot=false.  Now servlets and
   JSPs will be handled by Tomcat and static content
   handled by IIS.  (Note: This setting gives you
   behavior closest to what Tomcat 3.2.x implements.)
   The problem is that IIS thinks static content
   should come from InetPub\wwwroot, Tomcat thinks
   it should come from webapps\ROOT.  You will need
   to merge InetPub\wwwroot and webapps\ROOT in an
   appropriate way to get it to work correctly.  It is
   necessary to configure IIS to duplicate any web.xml
   settings not handled by the generated
   uriworkermap.properties file.

Hope this helps.

Cheers,

Larry

 -Original Message-
 From: Ponian Chu [mailto:[EMAIL PROTECTED]]
 Sent: Monday, November 26, 2001 7:01 AM
 To: [EMAIL PROTECTED]
 Subject: integrate Tomcat/IIS
 
 
 Hi there, I am new in this list~ 
 
 I need some help with Tomcat/IIS integration
 
 I tried to integrate Tomcat 3.3 with IIS on my Windows 2000 
 system with difficulty...
 
 My environment is:
 -- all servlet classes are put in 
 %tomcat_home%\webapps\ROOT\WEB-INF\classes folder
 -- web site is put in c:\home\httpd\html folder which is set 
 in IIS. A PHP redirector handles url redirection..
 -- the isapi redirector filter is setup and test ok
 -- http://localhost/examples/jsp/num/numguess.jsp is ok
 -- http://localhost/servlet/SnoopServlet get 404 error
 -- http://localhost:8080/servlet/SnoopServlet ok, but I don't 
 like to put the port number in url
 
 
 I tried to modify the 
 %tomcat_home%\conf\auto\uriworkermap.properties, and add 2 lines:
   /=$(default.worker)
   /*=$(default.worker)
 at line 9, the 404 error is fixed, but the real index.html is 
 not reachable anymore..
 
 any hints are appreciated.
 
 Thank you in advance..
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




custom tag architecture question

2001-11-26 Thread Scott Walter

Just curious, if I place the same tag on a JSP page
twice,  will there be two instances of the tag class
or just one?

thanks.

=
~~~
Scott

__
Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Newbie - Tomcat 3.3 + Apache + NT

2001-11-26 Thread Xiaofeng Chen

I have the same environment as yours. Mine is a little better than yours,
but I still cann't get them work together. For your problem, you need to run
'startup jkconf' to generate the mod=5Fjk.conf. And I think you do need to
copy the mod=5Fjk.dll into the Apache's modules directory. That's where my
luck ends. I can start Tomcat 3.3 and Apache 1.3.22 separately, but I can't
load a page, such as examples/jsp/index.html, through Apache. It just hang
and eventully returned with 'file not found'. If you got some progress,
please let me know
- Original Message -
From: Leonardo M. Cunha [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, November 22, 2001 10:15 AM
Subject: Newbie - Tomcat 3.3 + Apache + NT




 Hi Folks,

 I am using  Apache, Tomcat 3.3, Jre 1.3.1, NT

 Apache is installed as a NT service and is running. I installed Tomcat as
a
 NT service also and it works well.

 When I try to integrate them using the Include
 C:\jakarta-tomcat-3.3\conf\jk\mod_jk.conf-auto on the httpd.conf, and try
 to restart them (first tomcat and then apache) I cannot start apache,
 because of an error.

 I took a look on the folder conf/... and there is no mod_jk.conf-auto
 generated after running the tomcat service.

 In the server.xml  there is ApacheConfig noRoot=true/

 Do I need to do any other configurations to make it work? Is it necessary
 to
 copy mod_jk.dll to apache/modules?

 Would appreciate any help :-)
 
  Leonardo




 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: form authentication with IIS - j_security_check - error 405 - tomcat 3.2.3

2001-11-26 Thread Larry Isaacs

Sorry for the slow reply.

I believe there is a fundamental problem in Tomcat 3.2.x
with respect to authentication when used with an external
web server.  This is why I don't think you can get the
security example to work with IIS + Tomcat 3.2.x.  Though
the form login is triggered, Tomcat will never use the
user that logs in because it is an internally defined
user.  Requests forwarded from IIS always carry the remote
user known to IIS, not Tomcat.

Tomcat 3.3 addressed this by adding a tomcatAuthentication
attribute to the Ajp12Connector and Ajp13Connector.  It
defaults to true, which causes the remote user supplied
by IIS to be ignored an the internally authenticated
user used.

By setting tomcatAuthentication to false, you can use IIS's
authenticated user as the remote user for the requests.
Unfortunately, since the user roles for the request remain
unset, security constraints in the web.xml won't work.  This
is also the state of affairs when using Tomcat 3.2.x.

Cheers,
Larry


 -Original Message-
 From: Samuel Rochas [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, November 22, 2001 5:00 AM
 To: Tomcat Users List
 Subject: Re: form authentication with IIS - j_security_check 
 - error 405
 - tomcat 3.2.3
 
 
 Hi Ingo, 
 
  role-namesynthmagguest/role-name
 So the user defined in tomcat-users.xml was member of this group:
 user name=tomcat  password=tomcat roles=synthmagguest  /
 
 Did you define a group synthmagguest within Win2k?
 
  realm-namesynthMAG/realm-name
 And synthMAG is the Win2k user name?
 
  You mean through port 8080 it did not work either? Sounds strange.
 Right. It sounds strange to me too ;)
 That's why I concentrate on FORM authentication which is working at
 least with tomcat.
 
 Do you have any hint to further web resources?
 
 Sincerly
 Samuel
 -- 
 SWIPe Software Engineering  Project Management GmbH
 
 Solutions with Individual Profile
 
 Web: http://www.swipe.de
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Warp Connection

2001-11-26 Thread Carl Boudreau

Good morning I am looking for documentation on Warp.  I hear allot about it
but fail to find anything about it.

What is it ?  is Mod_Jk and warp the same thing?

Carl


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




WAR files (URGENT)

2001-11-26 Thread Alec Bickerton

Hi all,

Can someone plz tell me how to install a web app packaged as a WAR file on tomcat 
4.0.1 ?

I've tried following the instructions in tomcat-docs but when I try them I get a file 
not foud exception even though all the file in question is in the 
war file. (With the correct path).

I would appreciate any help as This is starting to drive me nuts.

thanks in advance 

Alec.



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Newbie - Tomcat 3.3 + Apache + NT

2001-11-26 Thread Larry Isaacs

In case it hasn't been discovered by now, the location
conf\jk\mod_jk.conf-auto applies only to Tomcat 3.2.x.
In Tomcat 3.3, the generated file is conf\auto\mod_jk.conf.

Cheers,
Larry

 -Original Message-
 From: Leonardo M. Cunha [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, November 22, 2001 10:46 AM
 To: [EMAIL PROTECTED]
 Subject: Newbie - Tomcat 3.3 + Apache + NT
 
 
 Hi Folks,
 
 I am using  Apache, Tomcat 3.3, Jre 1.3.1, NT
 
 Apache is installed as a NT service and is running. I 
 installed Tomcat as a
 NT service also and it works well.
 
 When I try to integrate them using the Include
 C:\jakarta-tomcat-3.3\conf\jk\mod_jk.conf-auto on the 
 httpd.conf, and try
 to restart them (first tomcat and then apache) I cannot start apache,
 because of an error.
 
 I took a look on the folder conf/... and there is no mod_jk.conf-auto
 generated after running the tomcat service.
 
 In the server.xml  there is ApacheConfig noRoot=true/
 
 Do I need to do any other configurations to make it work? Is 
 it necessary to
 copy mod_jk.dll to apache/modules?
 
 Would appreciate any help :-)
 
  Leonardo
 
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Réf. : WAR files (URGENT)

2001-11-26 Thread Raul DAVIDOVICH


maybe the application is not running..
did you try http://yourserver:8080/manager/list;?
there you'll see wether or not the app is running...

---
Raul Davidovich
Responsable Informatique
Cvitkovic  Associés Consultants

(33) 1 45 15 40 68
(33) 1 45 15 40 41 Fax
---
http://www.caconcology.com


|+--
||  Alec Bickerton  |
||  abickerton@opaltele|
||  com.co.uk  |
||  |
||  26/11/2001 16:57|
||  Veuillez répondre à |
||  Tomcat Users List |
||  |
|+--
  
-|
  |
 |
  |   Pour :  [EMAIL PROTECTED]   
 |
  |   cc : 
 |
  |   Objet :  WAR files (URGENT)  
 |
  
-|




Hi all,

Can someone plz tell me how to install a web app packaged as a WAR file on
tomcat 4.0.1 ?

I've tried following the instructions in tomcat-docs but when I try them I
get a file not foud exception even though all the file in question is in
the
war file. (With the correct path).

I would appreciate any help as This is starting to drive me nuts.

thanks in advance

Alec.



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]






--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




AW: Kill Tomcat4 on Windows NT

2001-11-26 Thread Adnan Zelkanovic

Sorry for this mail. I've found the way to stop,start,restart Services under
NT.
I'm a NT-Newbie, sorry.

-Ursprüngliche Nachricht-
Von: Adnan Zelkanovic [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 22. November 2001 13:28
An: Tomcat User List
Betreff: Kill Tomcat4 on Windows NT


Hello,

I'm running Cocoon2 with Tomcat4 as a NT-Service. My problem is that I'm not
able to kill Tomcat4, if something goes wrong with Cocoon2. For example: If
I want to delete the file cocoondb.backup I can't because I'm getting an
Access denied-Error. So I have to uninstall Tomcat4 and than install it
again. Does anybody knows how to solve this problem. It should be possible
to kill Tomcat4 everytime, even if it runs an an NT-Service.


Mit freundlichen Grüßen

Adnan Zelkanovic
allgäuNet.Onlinedienste GmbH

Nebelhornstraße 8
86807 Buchloe
Tel. (08241) 96869-33
Fax  (08241) 96869-26
http://www.allgaeu.net
e-mail: [EMAIL PROTECTED]

ein Unternehmen der abc.Mediengruppe



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: debuging servlets

2001-11-26 Thread John Freeborg

A couple of methods:

1.  Most people I've seen end up stabbing in the dark with tons of
logging statements all over.

2.  Some people change the JVM invocation parameters such that they can
use JPDA debuggers like BugSeeker from Karmira (http://www.karmira.com).
I start up Tomcat and then usually attach to its JVM with the debugger.

Both methods are useful, but which one you use first tends to be a
personal choice.

 - John

-Original Message-
From: renyu teng [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 23, 2001 4:11 PM
To: Tomcat Users List
Subject: debuging servlets

I am a new guy to servlet  jsp stuffs. could anyone
tell me how to debug a servlet if this servlet is used
by tomcat? any tools to do this?

thanks.
teng


__
Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Configuring tomcat to serve static content

2001-11-26 Thread Aditya Sharma

Hi, 

We have an installation of Tomcat 3.3 on Windows 2000, and are using Tomcat to serve 
our static content (as a web-server). 

I have issues with serving binary documents (word and excel files).  The files are 
viewed correctly (by the respective plug-ins) in Internet Explorer, but Netscape 
displays garbled information in the browser.  I use the standard a 
href=../docs/name_of_file.doc File /a html comand to provide a link to the file. 

I am curious to find out what do I need to do to resolve this issue. 

Should I use Apache as the web-server, instead of Tomcat? 

Thanks in advance, 

Cheers,
Aditya Sharma

[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




JSP compilation error.

2001-11-26 Thread Yoav Shapira

Hi there, 
Tomcat 4.0.1 on Solaris (SunOS 5.6), JDK 1.3.1, trying to run a 
a jsp page gives the following error:

org.apache.jasper.JasperException: Unable to compile class for JSP
/home/shapira/jakarta-tomcat-4.0.1/work/localhost/MyDrugDiscovery/jsp/utils/sql$jsp.java:309:
Incompatible type for method. Explicit cast needed to convert
java.lang.Throwable to java.lang.Exception.
if (pageContext != null) pageContext.handlePageException(t);
 ^
1 error

at org.apache.jasper.compiler.Compiler.compile(Compiler.java:284)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:546)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:177)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:189)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
(snip)

There's no line ilke the above anywhere in my code, so it must be
internal
somewhere.

Any clues?

When I try to run jsp to pre-compile the file, I get a 
java.util.EmptyStackException -- what's that all about??

Thanks,

Yoav Shapira
Millennium Pharmaceuticals
[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Tomcat up-time

2001-11-26 Thread John Freeborg


Windows 2000 Server w/ SP2
Tomcat 4.0.1
Sun JDK 1.3.1
NetDirect JSQLConnect JDBC drivers
SQL Server 2000 w/ SP1

Runs pretty stable now ( 5 days so far with no crash), but I had to
switch to Sun's client hotspot JVM as the server hotspot JVM would crash
within 24 hours consistently.  I may try IBM's JVM also, but haven't
been motivated to switch yet.

 - John

-Original Message-
From: Cheong Takhoe [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 22, 2001 12:34 PM
To: tomcat-user
Subject: Tomcat up-time


Hi folks,

Would like to know how long is the uptime for your Tomcat servers and 
what is the configuration and operating system of your machine (memory 
and speedwise) coz I'm getting pretty frequent insuffient memory errors 
in a couple of days time.

Please help.

regards,
Cheong Takhoe


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: mod_jk differences

2001-11-26 Thread Larry Isaacs

When source gets branched or moved around (i.e. checked in
at a new location) version numbers can disconnect.  I'm not
aware of anything missing from Tomcat 3.3 that is present
in Tomcat 3.2.x.

Larry

 -Original Message-
 From: David Morsberger [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, November 22, 2001 10:33 AM
 To: Tomcat Users List
 Subject: mod_jk differences
 
 
 I am attempting to upgrade to Tomcat 3.3 from 3.2 and have run into an
 interesting issue. In attempting to build mod_jk for Tru64, I 
 noticed a
 versioning mess with the mod_jk code. In some cases the 
 Revision number is
 higher in the 3.2 source and in others it is higher in the 
 3.3 source. I
 included the diff output below.
 
 Is this correct? What are the correct versions?
 
 for i in `ls *[ch]`^Jdo^Jecho $i^Jdiff $i
 /home/dwmorsb/apache/jakarta-tomcat-3.2.3-src/src/native/jk | 
 grep Revision
 jk_ajp12_worker.c
   * Version: $Revision: 1.4 $
 *
   * Version: $Revision: 1.2.2.1 $
 *
 jk_ajp12_worker.h
 jk_ajp13.c
   * Version: $Revision: 1.9 $
 *
   * Version: $Revision: 1.5.2.3 $
 *
 jk_ajp13.h
   * Version: $Revision: 1.2 $
 *
   * Version: $Revision: 1.3 $
*
 jk_ajp13_worker.c
   * Version: $Revision: 1.13 $
 *
   * Version: $Revision: 1.3.2.3 $
 *
 jk_ajp13_worker.h
 jk_connect.c
   * Version: $Revision: 1.3 $
 *
   * Version: $Revision: 1.2.2.1 $
 *
 jk_connect.h
 jk_global.h
   * Version: $Revision: 1.8 $
 *
   * Version: $Revision: 1.2.2.2 $
 *
 jk_jni_worker.c
   * Version: $Revision: 1.4 $
 *
   * Version: $Revision: 1.7.2.3 $
 *
 jk_jni_worker.h
 jk_lb_worker.c
   * Version: $Revision: 1.4 $
 *
   * Version: $Revision: 1.2.2.1 $
 *
 jk_lb_worker.h
 jk_logger.h
 jk_map.c
 jk_map.h
 jk_msg_buff.c
   * Version: $Revision: 1.3 $
 *
   * Version: $Revision: 1.2.2.1 $
 *
 jk_msg_buff.h
 jk_mt.h
 jk_nwmain.c
 jk_pool.c
 jk_pool.h
   * Version: $Revision: 1.3 $
 *
   * Version: $Revision: 1.2.2.3 $
 *
 jk_service.h
   * Version: $Revision: 1.8 $
 *
   * Version: $Revision: 1.2 $
 *
 jk_sockbuf.c
   * Version: $Revision: 1.3 $
 *
   * Version: $Revision: 1.1.2.3 $
 *
 jk_sockbuf.h
 jk_uri_worker_map.c
   * Version: $Revision: 1.8 $
 *
   * Version: $Revision: 1.3.2.1 $
 *
 jk_uri_worker_map.h
 jk_util.c
   * Version: $Revision: 1.8 $
 *
   * Version: $Revision: 1.6.2.4 $
 *
 jk_util.h
   * Version: $Revision: 1.3 $
 *
   * Version: $Revision: 1.5 $
 *
 jk_version.h
 diff: 
 /home/dwmorsb/apache/jakarta-tomcat-3.2.3-src/src/native/jk/jk
 _version.h: No
 such file or directory
 jk_worker.c
   * Version: $Revision: 1.2 $
 *
   * Version: $Revision: 1.5 $
*
 jk_worker.h
 jk_worker_list.h
   * Version: $Revision: 1.3 $
 *
   * Version: $Revision: 1.1 $
*
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: mode_jk auto generation

2001-11-26 Thread Larry Isaacs

ApacheConfig is already present in server.xml.  Also, the default
is to generate these files on demand only.  From TOMCAT_HOME
execute:

bin\startup jkconf

(Note sure if netware uses \ or /.)
This should generate conf/auto/mod_jk.conf.  This may be done
while Tomcat is running.

Larry

 -Original Message-
 From: Evgeny study [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, November 22, 2001 2:54 PM
 To: [EMAIL PROTECTED]
 Subject: mode_jk auto generation
 
 
 Hello all,
 
 I am using tomcat 3.3 on netware 5.1 with jvm 1.2.2
 
 I can do nothing to generate mode_jk.conf automaticaly.
 
 jkconf parameter doesn't recognized by tomcat
 
 changig server.xml (adding ApacheConfig / ) doesn't work too.
 Can somebody help me???
 
 Thank's 
   Evgeny
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Configuring tomcat to serve static content

2001-11-26 Thread David Cassidy

Check that tomcat has the correct mime type for your .doc files

have a look in web.xml.

then add one for excel / word :)



Aditya Sharma wrote:

 Hi,

 We have an installation of Tomcat 3.3 on Windows 2000, and are using Tomcat to serve 
our static content (as a web-server).

 I have issues with serving binary documents (word and excel files).  The files are 
viewed correctly (by the respective plug-ins) in Internet Explorer, but Netscape 
displays garbled information in the browser.  I use the standard a 
href=../docs/name_of_file.doc File /a html comand to provide a link to the file.

 I am curious to find out what do I need to do to resolve this issue.

 Should I use Apache as the web-server, instead of Tomcat?

 Thanks in advance,

 Cheers,
 Aditya Sharma

 [EMAIL PROTECTED]

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




TC 3.3 JDBCRealm: Authentication unsuccessful

2001-11-26 Thread Lichtmannegger Manfred

I am trying to use JDBCRealm on Tomcat 3.3, but after fixing my first
problems CLASSPATH, driver etc. I always get 

2001-11-26 17:04:24 - DecodeInterceptor: Charset from session ISO-8859-1
2001-11-26 17:04:41 - DecodeInterceptor: Charset from session ISO-8859-1
2001-11-26 17:04:42 - JDBCRealm: 
 JDBCRealm.authenticate: SELECT user_pass FROM admin_users WHERE user_name = ?
2001-11-26 17:04:42 - JDBCRealm: Authentication unsuccessful for user try12
2001-11-26 17:06:11 - DecodeInterceptor: Charset from session ISO-8859-1
2001-11-26 17:06:22 - DecodeInterceptor: Charset from session ISO-8859-1
2001-11-26 17:06:22 - JDBCRealm: Authentication unsuccessful for user try12

I have first tried with MD5, but also without a digest attribute I got the
same Authentication unsuccessful.

My entry in server.xml:

JDBCRealm
 debug=99 
 driverName=oracle.jdbc.driver.OracleDriver 
 connectionURL=jdbc:oracle:thin:@...
 connectionName=scott
 connectionPassword=tiger 
 userTable=admin_users 
 userNameCol=user_name 
 userCredCol=user_pass 
 userRoleTable=admin_user_roles 
 roleNameCol=role_name 
/

I have not removed

   SimpleRealm  filename=conf/users/global-users.xml /

My test examples was derived from examples/security and runs with SimpleRealm.

Any ideas/proposals how I can to proceed to find the problem?

 manfred

btw: I have used Netscape Communicator 4.5. and IE 5.50, but I guess 
 the digest is computed in the servlet container and compared with the 
 digest in the database, and on the browser no digest are computed - 
 JDBCRealm-howto.html is not very explicit about this point.

mailto:[EMAIL PROTECTED]   Tel +49 89 722 59708
Siemens AG Information and Communication Mobile  mobile 0172 8591307
Solutions Customer Projects Project Engineering  Fax +49 89 722 54725
Hofmannstr. 51, D-81359 München (Mch H/Ge15 18600/339)
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Newbie - Tomcat 3.3 + Apache + NT

2001-11-26 Thread Eric Dutilleul

I have actually a Apache / Tomcat Environnement in production for our Intranet
and it works well.
For your problem you need to include the file mod_jk.conf-auto at the end of
your Apache configuration (this file is updated by your tomcat server at the
start of the tomcat service). It is this file wich will give filters for Apache
(When and how he must let Tomcat taking the request). My tomcat Apache work
perfectly except for not debugged Servlets :-).

Xiaofeng Chen a écrit :

 I have the same environment as yours. Mine is a little better than yours,
 but I still cann't get them work together. For your problem, you need to run
 'startup jkconf' to generate the mod=5Fjk.conf. And I think you do need to
 copy the mod=5Fjk.dll into the Apache's modules directory. That's where my
 luck ends. I can start Tomcat 3.3 and Apache 1.3.22 separately, but I can't
 load a page, such as examples/jsp/index.html, through Apache. It just hang
 and eventully returned with 'file not found'. If you got some progress,
 please let me know
 - Original Message -
 From: Leonardo M. Cunha [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, November 22, 2001 10:15 AM
 Subject: Newbie - Tomcat 3.3 + Apache + NT

 
 
  Hi Folks,
 
  I am using  Apache, Tomcat 3.3, Jre 1.3.1, NT
 
  Apache is installed as a NT service and is running. I installed Tomcat as
 a
  NT service also and it works well.
 
  When I try to integrate them using the Include
  C:\jakarta-tomcat-3.3\conf\jk\mod_jk.conf-auto on the httpd.conf, and try
  to restart them (first tomcat and then apache) I cannot start apache,
  because of an error.
 
  I took a look on the folder conf/... and there is no mod_jk.conf-auto
  generated after running the tomcat service.
 
  In the server.xml  there is ApacheConfig noRoot=true/
 
  Do I need to do any other configurations to make it work? Is it necessary
  to
  copy mod_jk.dll to apache/modules?
 
  Would appreciate any help :-)
  
   Leonardo
 
 
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


RE: Tomcat 4.01 SSL - how to reduce the encription strength

2001-11-26 Thread Tal Dayan

Hi Franco,

When you create the certificate, instead of entering your first/last name,
enter the domain of your
server (e.g. localhost or www.mysite.com). This is the CN (Common Name) of
the certificate.

Note that you will still get a warning about the issuer of the certificate.
If you accept the certificate permanently, you will not see the warning in
the future.

You may also try using wild card certificates such as '*.mycompany.com'
though I think that IE does not support it any more (which requires you to
purchase more certificates from Verisign and their other buddies).

Tal


 -Original Message-
 From: Miao, Franco CAWS:EX [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, November 25, 2001 9:35 PM
 To: '[EMAIL PROTECTED]'
 Cc: Tomcat Users List
 Subject: Tomcat 4.01 SSL - how to reduce the encription strength


 Hi there, did you get  any message like The name of the security
 certificate is invalid or does not match the name of the site with your
 self-signed certificate? I have made one for testing, but got
 that message.
 Let me know if you didn't get that.

 Franco


 -Original Message-
 From: Tal Dayan [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, November 25, 2001 9:25 PM
 To: Tomcat Users List
 Subject: Tomcat 4.01 SSL - how to reduce the encription strength


 Hello,

 We are using Tomcat 4.01 standalone with self signed certificate and all
 works just great. When we connect from IE, the browser indicates that the
 encryption is 128 bit long.

 Is there a way to instruct Tomcat to use a weaker encryption? Our
 motivation
 is to reduce the CPU overhead since the data in that specific
 system is not
 THAT important.

 Thanks,

 Tal


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




character encoding in HTTP GET / POST requests

2001-11-26 Thread Hoogervorst, Nico

Hi there,

About: HTTP GET/POST request in UTF-8 
   with Tomcat 3.2, Apache webserver, struts-framework

To be able to display foreign characters, we want to use 
unicode. We therefor specify the following contentType in 
the page directive of the jsp pages:
   contentType=text/html; charset=utf-8
This means that the response of the jsp page will use the 
utf-8 charset. The browser recognizes this and displays all
characters correctly.

However, when the page uses the utf-8 charset, the browser 
will also use utf-8 in HTTP GET/POST requests to the server. 
This would be fine, if the browser would specify that the 
content-type of the request is: 
   application/x-www-form-urlencoded; charset=utf-8
MSIE6.0 and Netscape 6.2 do not provide the character 
encoding information. Even when in the form-tag, the enctype 
attribute explicitly specifies this content-type. I have 
tested this with a CGI-script on an Apache webserver.
According the HTTP1.1 specifications, when no character 
encoding is provided, the server must assume that it is 
encoded with ISO-8859-1 (ISO Latin 1). Tomcat (I use Tomcat 
3.2) does that, but that leaves us with a problem.
How can we handle requests in utf-8 ?

In the following message:

http://mikal.org/interests/java/tomcat/archive/view?mesg=35060

the suggested solution is the convert parameters like this:

 String s = new String(
request.getParameter(my_param).getBytes(ISO-8859-1), 
UTF-8);

However, we use the struts framework (see 
http://jakarta.apache.org/struts/index.html), and this 
framework handles the parameters and puts the values directly 
into the bean. It would be inappropriate to do extra 
conversions in the set-methods of the bean.

Has anyone a solution for the described problem?

Is it possible to change the default encoding from ISO-8859-1 
into UTF-8 ? Did somebody made a patch to solve this?


TIA

Nico Hoogervorst
Compuware


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Jdk12Interceptor with tomcat 3.2.3

2001-11-26 Thread Benoit Lalumiere (LMC)


Hi all

Are we supposed to use the Jdk12Interceptor with jdk1.2.2 and above or just
with jdk 1.2.2?

Cause by classloader in tomcat 3.2.3 did not work with jdk 1.3 either, I had
to put the patch back in!


Benoit Lalumiere
Ericsson Research Canada
LMC/KJ lmcblal



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: WAR files (URGENT)

2001-11-26 Thread Alec Bickerton

26/11/2001 16:07:53, keiths [EMAIL PROTECTED] wrote:

Can you clarify this.

I have just tried the following...

1- remove the war file from the webapp dir 
2- recreate the war file @jar cvf timeservlet.war *
3atry to intall using manager app from current location /var/tomcat4/, 
same error : FAIL - Encountered exception java.io.FileNotFoundException: 
/var/tomcat4/webapps/time/META-INF/MANIFEST.MF 
(No such file or directory)

THE FILE IS IN THE WAR FILE ON THE PATH SHOWN

3b try to install on /var/tomcat/webapps/ 

Same result.

What am I doing wrong...

common error is the war file is placed in webapps directory but is not
created there.  jar cf myapp.war myapp from webapp dir is wrong,
jar cf myapp.war * from your application directory, then move the war
file up to webapp directory.

Alec Bickerton wrote:
 
 Hi all,
 
 Can someone plz tell me how to install a web app packaged as a WAR file on tomcat 
4.0.1 ?
 
 I've tried following the instructions in tomcat-docs but when I try them I get a 
file not foud exception even though all the file in question is 
in the
 war file. (With the correct path).
 
 I would appreciate any help as This is starting to drive me nuts.
 
 thanks in advance
 
 Alec.
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

-- 
Keith Simpson
Skillview Technologies
[EMAIL PROTECTED]
(603)-382-9882

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]








--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Tomcat 4.01 SSL - how to reduce the encription strength

2001-11-26 Thread Tal Dayan

Typically, the browser and the server negotiate for the highest level of
encryption available for both. If you reduce it on one side, it will affect
both.

The question is how to reduce the cipher list of Tomcat. The source code
seems to enable any cipher that is available to it.

Tal

 -Original Message-
 From: William Tansill [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, November 25, 2001 9:46 PM
 To: Tomcat Users List
 Subject: RE: Tomcat 4.01 SSL - how to reduce the encription strength


 I believe that the cipher strength is built into the browser.  If I click
 Help/About on my copy of IE, it tells me it's using 128 bit
 encryption, even
 though I'm not connected to anything.

 -Original Message-
 From: Tal Dayan [mailto:[EMAIL PROTECTED]]
 Sent: Monday, November 26, 2001 0:25 AM
 To: Tomcat Users List
 Subject: Tomcat 4.01 SSL - how to reduce the encription strength


 Hello,

 We are using Tomcat 4.01 standalone with self signed certificate and all
 works just great. When we connect from IE, the browser indicates that the
 encryption is 128 bit long.

 Is there a way to instruct Tomcat to use a weaker encryption? Our
 motivation
 is to reduce the CPU overhead since the data in that specific
 system is not
 THAT important.

 Thanks,

 Tal


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: TC 4.0 newbie - servlet app won't run

2001-11-26 Thread Micael Padraig Og mac Grene

Just a preemptive question, Mark.  Is your servlet's class object really
called myservlet.class rather than, say, MyServlet.class?


-Original Message-
From: Mark [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Date: Monday, November 26, 2001 7:00 AM
Subject: Re: TC 4.0 newbie - servlet app won't run


Thanks for your reply Scott, and thanks to your and Micael's responses I
_believe_ I understand the relationship between the servlet naming/mapping
and the associated html.  As Micael noted, one could put pudding in the
url-pattern as long as the html was setup as ACTION=pudding.  But... how
do the example servlets work when they don't seem to have any servlet
mapping in the ..\examples\WEB-INF\web.xml?

Even after all the advice, I *STILL* can't get my app to run - I still get
a 404 error on the servlet. This seems like such a simple issue but I can
NOT get past it.  I've even gone as far as downloading Tomcat 3.3, with the
same result. Again, I know Tomcat is parsing my web.xml, because if I
intentionally make a typo, the parser complains when Tomcat is started.

To recap where I am:

(a)  I have myservlet.class in the
$CATALINA_HOME\webapps\myapp\WEB-INF\classes
 directory.  The servlet has no associated package.
(b)  The html is FORM ACTION=/servlet/myservlet method=POST
(c)  My $CATALINA_HOME\webapps\myapp\WEB-INF\web.xml is as follows:

 ?xml version=1.0 encoding=ISO-8859-1?

 !DOCTYPE web-app
 PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
 http://java.sun.com/dtd/web-app_2_3.dtd;

 web-app
 servlet
 servlet-namemyservlet/servlet-name
 servlet-classmyservlet/servlet-class
 /servlet
 servlet-mapping
 servlet-namemyservlet/servlet-name
 url-pattern/servlet/myservlet/url-pattern
 /servlet-mapping
 /web-app


Am I still missing something?  This is driving me berserk...

TIA. Mark.



At 12:22 AM 11/22/2001 -0500, you wrote:
Mark,

The servlet tag is used to assign a name to a particular servlet class
file.

 servlet
   servlet-namemyservlet/servlet-name
   servlet-classmyservlet/servlet-class
   /servlet

This would attempt to assign the name 'myservlet' to the class
'myservlet.class.'

The servlet-mapping tag defines the pattern or 'location' of a named
servlet from the root of your context. This means that 

servlet-mapping
   servlet-namemyservlet/servlet-name
   url-pattern/classes/url-pattern
   /servlet-mapping

if this were the ROOT context, this would map your servlet at /classes
and your form action would need to be defined as

FORM ACTION=/classes method=POST

A more common mapping for servlets is

servlet-mapping
   servlet-namemyservlet/servlet-name
   url-pattern/servlet/myservlet/url-pattern
   /servlet-mapping

which would have a coresponding form tag of

FORM ACTION=/servlet/myservlet method=POST


~Scott

Mark wrote:

I installed Tomcat 4.0.1 under Win 2k using JDK 1.3 and able to run the
example servlets, but not my own.  My html displays and I can execute my
JSPs, but a POST to a servlet does not work (this app has run under Forte
and VA Java in the past).   I get a 404 error with the requested
resource
(/myservlet) is not available. Since the examples work, I have to assume
it's something in my configuration. Any help figuring out why the servlet
won't run would be *greatly* appreciated.  I suspect it's something
simple/braindead on my part.


o  My directory structure for the app:
   TomcatHome
|
+--webapps
  |
  +--myapp\.jsp, .html .gif
 |
 +--WEB-INF\web.xml
   |
   +--classes\.class files


o  My html POST stmt. I've tried various path prefixes to myservlet, eg

   classes/myservlet.  As with the Tomcat examples, this servlet has no
   package:

FORM ACTION=/myservlet method=POST


o  My web.xml - I know Tomcat's seeing/parsing this because if I
deliberately
   make a typo I get an error upon startup:

 ?xml version=1.0 encoding=ISO-8859-1?
 !DOCTYPE web-app
   PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
   http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
   !-- Define servlets that are included in the application --
   servlet
   servlet-namemyservlet/servlet-name
   servlet-classmyservlet/servlet-class
   /servlet
   servlet-mapping
   servlet-namemyservlet/servlet-name
   url-pattern/classes/url-pattern
   /servlet-mapping
/web-app


o  Update to server.xml

   Context path=/myapp docBase=myapp debug=0
   Logger className=org.apache.catalina.logger.FileLogger
   prefix=myapp_log. suffix=.txt
   timestamp=true/
   /Context








--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles 

Re: TC 4.0 newbie - servlet app won't run

2001-11-26 Thread Micael Padraig Og mac Grene

Okay, Mark, Part II, I want to make sure we are communicating properly
before going further.  No sense wasting time.  Your note is not correct
about at least somethings -- for example (no pun intended):

The web.xml for examples/WEB-INF/web.xml DOES have servlet mappings.  So, I
am not sure what you are looking at.  The servlet SnoopServlet has the
mappings to the patterns /snoop and *.snp under the name snoop.  The
servlet servletToJsp which has the same name, i.e. servletToJsp, has a
mapping to the pattern /servletToJsp.

Micael


-Original Message-
From: Mark [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Date: Monday, November 26, 2001 7:00 AM
Subject: Re: TC 4.0 newbie - servlet app won't run


Thanks for your reply Scott, and thanks to your and Micael's responses I
_believe_ I understand the relationship between the servlet naming/mapping
and the associated html.  As Micael noted, one could put pudding in the
url-pattern as long as the html was setup as ACTION=pudding.  But... how
do the example servlets work when they don't seem to have any servlet
mapping in the ..\examples\WEB-INF\web.xml?

Even after all the advice, I *STILL* can't get my app to run - I still get
a 404 error on the servlet. This seems like such a simple issue but I can
NOT get past it.  I've even gone as far as downloading Tomcat 3.3, with the
same result. Again, I know Tomcat is parsing my web.xml, because if I
intentionally make a typo, the parser complains when Tomcat is started.

To recap where I am:

(a)  I have myservlet.class in the
$CATALINA_HOME\webapps\myapp\WEB-INF\classes
 directory.  The servlet has no associated package.
(b)  The html is FORM ACTION=/servlet/myservlet method=POST
(c)  My $CATALINA_HOME\webapps\myapp\WEB-INF\web.xml is as follows:

 ?xml version=1.0 encoding=ISO-8859-1?

 !DOCTYPE web-app
 PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
 http://java.sun.com/dtd/web-app_2_3.dtd;

 web-app
 servlet
 servlet-namemyservlet/servlet-name
 servlet-classmyservlet/servlet-class
 /servlet
 servlet-mapping
 servlet-namemyservlet/servlet-name
 url-pattern/servlet/myservlet/url-pattern
 /servlet-mapping
 /web-app


Am I still missing something?  This is driving me berserk...

TIA. Mark.



At 12:22 AM 11/22/2001 -0500, you wrote:
Mark,

The servlet tag is used to assign a name to a particular servlet class
file.

 servlet
   servlet-namemyservlet/servlet-name
   servlet-classmyservlet/servlet-class
   /servlet

This would attempt to assign the name 'myservlet' to the class
'myservlet.class.'

The servlet-mapping tag defines the pattern or 'location' of a named
servlet from the root of your context. This means that 

servlet-mapping
   servlet-namemyservlet/servlet-name
   url-pattern/classes/url-pattern
   /servlet-mapping

if this were the ROOT context, this would map your servlet at /classes
and your form action would need to be defined as

FORM ACTION=/classes method=POST

A more common mapping for servlets is

servlet-mapping
   servlet-namemyservlet/servlet-name
   url-pattern/servlet/myservlet/url-pattern
   /servlet-mapping

which would have a coresponding form tag of

FORM ACTION=/servlet/myservlet method=POST


~Scott

Mark wrote:

I installed Tomcat 4.0.1 under Win 2k using JDK 1.3 and able to run the
example servlets, but not my own.  My html displays and I can execute my
JSPs, but a POST to a servlet does not work (this app has run under Forte
and VA Java in the past).   I get a 404 error with the requested
resource
(/myservlet) is not available. Since the examples work, I have to assume
it's something in my configuration. Any help figuring out why the servlet
won't run would be *greatly* appreciated.  I suspect it's something
simple/braindead on my part.


o  My directory structure for the app:
   TomcatHome
|
+--webapps
  |
  +--myapp\.jsp, .html .gif
 |
 +--WEB-INF\web.xml
   |
   +--classes\.class files


o  My html POST stmt. I've tried various path prefixes to myservlet, eg

   classes/myservlet.  As with the Tomcat examples, this servlet has no
   package:

FORM ACTION=/myservlet method=POST


o  My web.xml - I know Tomcat's seeing/parsing this because if I
deliberately
   make a typo I get an error upon startup:

 ?xml version=1.0 encoding=ISO-8859-1?
 !DOCTYPE web-app
   PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
   http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
   !-- Define servlets that are included in the application --
   servlet
   servlet-namemyservlet/servlet-name
   servlet-classmyservlet/servlet-class
   /servlet
   servlet-mapping
   servlet-namemyservlet/servlet-name
  

Re: Newbie - Tomcat 3.3 + Apache + NT

2001-11-26 Thread Xiaofeng Chen

I did include the mod_jk.conf-auto at the end of my Apache configuration. I
use Tomcat 3.3 and generated the mod_jk.conf-auto using 'startup jkconf'
command. Is your Apache/Tomcat running on a NT?

Jeffrey

- Original Message -
From: Eric Dutilleul [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, November 26, 2001 10:35 AM
Subject: Re: Newbie - Tomcat 3.3 + Apache + NT




I have actually a Apache / Tomcat Environnement in production for our
Intranet
and it works well.
For your problem you need to include the file mod_jk.conf-auto at the end
of
your Apache configuration (this file is updated by your tomcat server at
the
start of the tomcat service). It is this file wich will give filters for
Apache
(When and how he must let Tomcat taking the request). My tomcat Apache work
perfectly except for not debugged Servlets :-).

Xiaofeng Chen a écrit :

 I have the same environment as yours. Mine is a little better than yours,
 but I still cann't get them work together. For your problem, you need to
run
 'startup jkconf' to generate the mod=5Fjk.conf. And I think you do need
to
 copy the mod=5Fjk.dll into the Apache's modules directory. That's where
my
 luck ends. I can start Tomcat 3.3 and Apache 1.3.22 separately, but I
can't
 load a page, such as examples/jsp/index.html, through Apache. It just
hang
 and eventully returned with 'file not found'. If you got some progress,
 please let me know
 - Original Message -
 From: Leonardo M. Cunha [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, November 22, 2001 10:15 AM
 Subject: Newbie - Tomcat 3.3 + Apache + NT

 
 
  Hi Folks,
 
  I am using  Apache, Tomcat 3.3, Jre 1.3.1, NT
 
  Apache is installed as a NT service and is running. I installed Tomcat
as
 a
  NT service also and it works well.
 
  When I try to integrate them using the Include
  C:\jakarta-tomcat-3.3\conf\jk\mod_jk.conf-auto on the httpd.conf, and
try
  to restart them (first tomcat and then apache) I cannot start apache,
  because of an error.
 
  I took a look on the folder conf/... and there is no mod_jk.conf-auto
  generated after running the tomcat service.
 
  In the server.xml  there is ApacheConfig noRoot=true/
 
  Do I need to do any other configurations to make it work? Is it
necessary
  to
  copy mod_jk.dll to apache/modules?
 
  Would appreciate any help :-)
  
   Leonardo
 
 
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Tomcat 4.01 classloader problem? (Craig)

2001-11-26 Thread Chris Malley

Santosh on [EMAIL PROTECTED] suggested I post here, 
and ask for Craig.  So if Craig (or anyone else) is listening...
Help!!

I'm experiencing a problem with SOAP message-style services 
when using Tomcat 4.01.  Santosh suggested that this may be a 
classloader problem in Tomcat 4.01.

I have a very simple SOAP message-style service that demonstrates the
general problem.  This service echoes whatever is sent to it.  It works
fine with Tomcat 3.2.3, but is returning a no signature match fault 
with Tomcat 4.01.  

If I resort to removing
$CATALINA_HOME/webapps/soap/WEB-INF/classes/org/,
I can get this service to work.  But I don't understand why,
and it's clearly an unacceptable hack.

I've attached the following:
  details.txt-- detailed problem description
  echomsg.tar.gz -- Java source, deployment descriptor, Makefile, fault
details

Any help in correcting/understanding this will be appreciated.
Sorry for the size of this post, but I'm trying to provide all
of the details necessary to resolve this.  Thanks,

-Chris

-- 
Chris Malley
PixelZoom, Inc. Voice: +1.303.494.8849
835 Orman Drive EMail: [EMAIL PROTECTED]
Boulder CO 80303-2616


ABOUT MY SOAP SERVICE ...

'echomsg' is a SOAP message-style service that simply echoes a string 
that it receives from the SOAP client. For example...

Here's what the client sends:

  ?xml version='1.0' encoding='UTF-8'?
  s:Envelope xmlns:s=http://schemas.xmlsoap.org/soap/envelope/;
s:Body
  echo xmlns=urn:echomsghello/echo
/s:Body
  /s:Envelope

Here's how the server responds:

  ?xml version='1.0' encoding='UTF-8'?
  s:Envelope xmlns:s=http://schemas.xmlsoap.org/soap/envelope/;
s:Body
  responsehello/response
/s:Body
  /s:Envelope

Here's the signature of the method that implements the service:

  public void echo( Envelope env, SOAPContext req, SOAPContext res )
throws IOException, MessagingException;


ABOUT MY PLATFORM ...

  Tomcat 4.0.1
  Apache SOAP 2.2
  JDK 1.3.1_01
  Linux 2.2.12-20 kernel


SET UP ...

Install Tomcat 4.01 and Apache SOAP 2.2:

 (1) Install Tomcat 4.01 in $CATALINA_HOME
 (2) Install Apache SOAP 2.2 in $SOAP_HOME
 (3) cp $SOAP_HOME/lib/soap.jar to $CATALINA_HOME/lib/
 (4) cp $SOAP_HOME/webapps/soap.war to $CATALINA_HOME/webapps/

CLASSPATH is set in the provided Makefile.  I do not have CLASSPATH
set in my shell environment, and I have not changed any of the Tomcat
config files.

Build the SOAP service.  

 (5) tar xzvf echomsg.tar.gz
 (6) cd echomsg
 (7) make
 
Deploy the SOAP service:

 (8) make install
 (9) $CATALINA_HOME/bin/startup.sh
 (10) make deploy


DEMONSTRATING THE PROBLEM ...

Run the SOAP client:

 make test 
 
The SOAP response contains this faultstring:

 faultstringException while handling service request: 
echomsg.Server.echo(org.apache.soap.Envelope,org.apache.soap.rpc.SOAPContext,org.apache.soap.rpc.SOAPContext)
-- no signature match/faultstring

Again, this is a message-style service that works just fine with
Tomcat 3.2.3.  And (see below) I can make it work with Tomcat 4.01
if I resort to hacks.

On [EMAIL PROTECTED], it was suggested that this problem 
was due to the presence of multiple copies of soap.  The solutions
suggested were to either:
 (a) remove $CATALINA_HOME/lib/soap.jar, or
 (b) remove $CATALINA_HOME/webapps/soap/WEB-INF/classes/org/
 
Method (a) doesn't work; it results in Tomcat not being able to 
handle SOAP service requests since it doesn't know about the 
soap servlet.  

To try method (b), here's what I did: 

 (1) $CATALINA_HOME/bin/shutdown.sh
 (2) rm -rf $CATALINA_HOME/webapps/soap/WEB-INF/classes/org/
 (3) $CATALINA_HOME/bin/startup.sh
 (4) make test

Method (b) does work, but it's an unacceptable hack.  And I still
don't understand what the original problem is.
 
**




echomsg.tar.gz
Description: GNU Zip compressed data

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


Re: TC 4.0 newbie - servlet app won't run

2001-11-26 Thread Micael Padraig Og mac Grene

Okay, Mark, Part III, another question:

If you don't put your servlet called myservlet in a package called
myservlet as well, why do you use that odd pattern?  The pattern looks
like you want to use servlet as a package name?  I am starting to think
that you have some left-over confusion from the old days about referencing
servlets in a package called servletor something?

Micael
-Original Message-
From: Mark [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Date: Monday, November 26, 2001 7:00 AM
Subject: Re: TC 4.0 newbie - servlet app won't run


Thanks for your reply Scott, and thanks to your and Micael's responses I
_believe_ I understand the relationship between the servlet naming/mapping
and the associated html.  As Micael noted, one could put pudding in the
url-pattern as long as the html was setup as ACTION=pudding.  But... how
do the example servlets work when they don't seem to have any servlet
mapping in the ..\examples\WEB-INF\web.xml?

Even after all the advice, I *STILL* can't get my app to run - I still get
a 404 error on the servlet. This seems like such a simple issue but I can
NOT get past it.  I've even gone as far as downloading Tomcat 3.3, with the
same result. Again, I know Tomcat is parsing my web.xml, because if I
intentionally make a typo, the parser complains when Tomcat is started.

To recap where I am:

(a)  I have myservlet.class in the
$CATALINA_HOME\webapps\myapp\WEB-INF\classes
 directory.  The servlet has no associated package.
(b)  The html is FORM ACTION=/servlet/myservlet method=POST
(c)  My $CATALINA_HOME\webapps\myapp\WEB-INF\web.xml is as follows:

 ?xml version=1.0 encoding=ISO-8859-1?

 !DOCTYPE web-app
 PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
 http://java.sun.com/dtd/web-app_2_3.dtd;

 web-app
 servlet
 servlet-namemyservlet/servlet-name
 servlet-classmyservlet/servlet-class
 /servlet
 servlet-mapping
 servlet-namemyservlet/servlet-name
 url-pattern/servlet/myservlet/url-pattern
 /servlet-mapping
 /web-app


Am I still missing something?  This is driving me berserk...

TIA. Mark.



At 12:22 AM 11/22/2001 -0500, you wrote:
Mark,

The servlet tag is used to assign a name to a particular servlet class
file.

 servlet
   servlet-namemyservlet/servlet-name
   servlet-classmyservlet/servlet-class
   /servlet

This would attempt to assign the name 'myservlet' to the class
'myservlet.class.'

The servlet-mapping tag defines the pattern or 'location' of a named
servlet from the root of your context. This means that 

servlet-mapping
   servlet-namemyservlet/servlet-name
   url-pattern/classes/url-pattern
   /servlet-mapping

if this were the ROOT context, this would map your servlet at /classes
and your form action would need to be defined as

FORM ACTION=/classes method=POST

A more common mapping for servlets is

servlet-mapping
   servlet-namemyservlet/servlet-name
   url-pattern/servlet/myservlet/url-pattern
   /servlet-mapping

which would have a coresponding form tag of

FORM ACTION=/servlet/myservlet method=POST


~Scott

Mark wrote:

I installed Tomcat 4.0.1 under Win 2k using JDK 1.3 and able to run the
example servlets, but not my own.  My html displays and I can execute my
JSPs, but a POST to a servlet does not work (this app has run under Forte
and VA Java in the past).   I get a 404 error with the requested
resource
(/myservlet) is not available. Since the examples work, I have to assume
it's something in my configuration. Any help figuring out why the servlet
won't run would be *greatly* appreciated.  I suspect it's something
simple/braindead on my part.


o  My directory structure for the app:
   TomcatHome
|
+--webapps
  |
  +--myapp\.jsp, .html .gif
 |
 +--WEB-INF\web.xml
   |
   +--classes\.class files


o  My html POST stmt. I've tried various path prefixes to myservlet, eg

   classes/myservlet.  As with the Tomcat examples, this servlet has no
   package:

FORM ACTION=/myservlet method=POST


o  My web.xml - I know Tomcat's seeing/parsing this because if I
deliberately
   make a typo I get an error upon startup:

 ?xml version=1.0 encoding=ISO-8859-1?
 !DOCTYPE web-app
   PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
   http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
   !-- Define servlets that are included in the application --
   servlet
   servlet-namemyservlet/servlet-name
   servlet-classmyservlet/servlet-class
   /servlet
   servlet-mapping
   servlet-namemyservlet/servlet-name
   url-pattern/classes/url-pattern
   /servlet-mapping
/web-app


o  Update to server.xml

   Context path=/myapp docBase=myapp debug=0
   

tomcat4.0.1 + apache (mod_webapp)?

2001-11-26 Thread Walter Krivanek

hi!

I,ve got one question:

I've installed mod_webapp.so (apache 1.3.14, tomcat 4.0.1, windows 2000/mac
os X) and added the following lines to httpd.conf (as described in
install.txt):

WebAppConnection warpConnection warp localhost:8008
WebAppDeploy examples warpConnection /examples

I'm always getting the error message Invalid virtual host name when I want
to start apache.
But there are no virtual hosts configured.

I went trough all release notes and documentations but didn't find anything
about it.
Can someone help me?

Thank you very much!

Walter


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: tomcat4.0.1 + apache (mod_webapp)?

2001-11-26 Thread Falko Braun

Hi Walter,

That seem's to be a quiet common problem. I've solved the problem as
described below under 3) and heard from several others, that it worked for
them as well.

Regards
Falko

1) Simply follow the instructions of the webapp install.txt, which says:

Copy mod_webapp.so and libapr.dll file into \modules

2) Once you have done that, edit your httpd.conf configuration file and
add

LoadModule webapp_module libexec/mod_webapp.so
AddModule mod_webapp.c

preferably under the other LoadModule lines (which are commented out).

3)Then I faced a problem, that Apache could not recognize the host, so I had
to wrap the WebApp Connection and Deployment into a virtual host. I enabled
the ServerName directive (somewhere in the middle) and added at the very end
of the httpd.conf:

VirtualHost localhost
ServerName falkomobil.local
ErrorLog logs/servl-error_log
CustomLog logs/servl-access_log common

Deployment und Mapping von WebApps
WebAppConnection conn  warp  localhost:8008
WebAppDeploy examples  conn  /examples
##
/VirtualHost

It works as well, if you set the ServerName to localhost.

4) My server.xml entry for Tomcat looks like (the last entry in that file)

  !-- Define an Apache-Connector Service --
  Service name=Tomcat-Apache

Connector className=org.apache.catalina.connector.warp.WarpConnector
 port=8008 minProcessors=5 maxProcessors=75
 enableLookups=true
 acceptCount=10 debug=0/

!-- Replace localhost with what your Apache ServerName is set
to --
Engine className=org.apache.catalina.connector.warp.WarpEngine
 name=Apache defaulthost=localhost debug=0 appBase=webapps

  !-- Global logger unless overridden at lower levels --
  Logger className=org.apache.catalina.logger.FileLogger
  prefix=apache_log. suffix=.txt
  timestamp=true/

  !-- Because this Realm is here, an instance will be shared
globally --
  Realm className=org.apache.catalina.realm.MemoryRealm /

/Engine

  /Service

5) Then starting the Tomcat and after that(!) the Apache, I could call
localhost\examples\jsp and run the examples.

-Original Message-
From: Walter Krivanek [mailto:[EMAIL PROTECTED]]
Sent: Montag, 26. November 2001 18:38
To: Tomcat Users List
Subject: tomcat4.0.1 + apache (mod_webapp)?


hi!

I,ve got one question:

I've installed mod_webapp.so (apache 1.3.14, tomcat 4.0.1, windows 2000/mac
os X) and added the following lines to httpd.conf (as described in
install.txt):

WebAppConnection warpConnection warp localhost:8008
WebAppDeploy examples warpConnection /examples

I'm always getting the error message Invalid virtual host name when I want
to start apache.
But there are no virtual hosts configured.

I went trough all release notes and documentations but didn't find anything
about it.
Can someone help me?

Thank you very much!

Walter


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: TC 4.0 newbie - servlet app won't run

2001-11-26 Thread Mark

The examples you mentioned are the JSPs examples. I realize JSPs compile to
servlets, but what about the straight up HelloWorldExample servlet?  I
didn't see mapping for that or the other servlet (vs. JSP) examples in the
web.xml.  Being a newbie, I could very well be missing something so please
bear with me (again).

BTW - I've fiddled with the example servlet index.html to use FORM vs.
href=../servlet/abc method of running servlets.  POST always results in a
404.  GET does however work.  

Example:

   FORM ACTION=../servlet/HelloWorldExample method=POST  - doen't work
   FORM ACTION=../servlet/HelloWorldExample method=GET   - works.

Mark



At 09:30 AM 11/26/2001 -0800, you wrote:
Okay, Mark, Part II, I want to make sure we are communicating properly
before going further.  No sense wasting time.  Your note is not correct
about at least somethings -- for example (no pun intended):

The web.xml for examples/WEB-INF/web.xml DOES have servlet mappings.  So, I
am not sure what you are looking at.  The servlet SnoopServlet has the
mappings to the patterns /snoop and *.snp under the name snoop.  The
servlet servletToJsp which has the same name, i.e. servletToJsp, has a
mapping to the pattern /servletToJsp.

Micael


-Original Message-
From: Mark [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Date: Monday, November 26, 2001 7:00 AM
Subject: Re: TC 4.0 newbie - servlet app won't run


Thanks for your reply Scott, and thanks to your and Micael's responses I
_believe_ I understand the relationship between the servlet naming/mapping
and the associated html.  As Micael noted, one could put pudding in the
url-pattern as long as the html was setup as ACTION=pudding.  But... how
do the example servlets work when they don't seem to have any servlet
mapping in the ..\examples\WEB-INF\web.xml?

Even after all the advice, I *STILL* can't get my app to run - I still get
a 404 error on the servlet. This seems like such a simple issue but I can
NOT get past it.  I've even gone as far as downloading Tomcat 3.3, with the
same result. Again, I know Tomcat is parsing my web.xml, because if I
intentionally make a typo, the parser complains when Tomcat is started.

To recap where I am:

(a)  I have myservlet.class in the
$CATALINA_HOME\webapps\myapp\WEB-INF\classes
 directory.  The servlet has no associated package.
(b)  The html is FORM ACTION=/servlet/myservlet method=POST
(c)  My $CATALINA_HOME\webapps\myapp\WEB-INF\web.xml is as follows:

 ?xml version=1.0 encoding=ISO-8859-1?

 !DOCTYPE web-app
 PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
 http://java.sun.com/dtd/web-app_2_3.dtd;

 web-app
 servlet
 servlet-namemyservlet/servlet-name
 servlet-classmyservlet/servlet-class
 /servlet
 servlet-mapping
 servlet-namemyservlet/servlet-name
 url-pattern/servlet/myservlet/url-pattern
 /servlet-mapping
 /web-app


Am I still missing something?  This is driving me berserk...

TIA. Mark.



At 12:22 AM 11/22/2001 -0500, you wrote:
Mark,

The servlet tag is used to assign a name to a particular servlet class
file.

 servlet
   servlet-namemyservlet/servlet-name
   servlet-classmyservlet/servlet-class
   /servlet

This would attempt to assign the name 'myservlet' to the class
'myservlet.class.'

The servlet-mapping tag defines the pattern or 'location' of a named
servlet from the root of your context. This means that 

servlet-mapping
   servlet-namemyservlet/servlet-name
   url-pattern/classes/url-pattern
   /servlet-mapping

if this were the ROOT context, this would map your servlet at /classes
and your form action would need to be defined as

FORM ACTION=/classes method=POST

A more common mapping for servlets is

servlet-mapping
   servlet-namemyservlet/servlet-name
   url-pattern/servlet/myservlet/url-pattern
   /servlet-mapping

which would have a coresponding form tag of

FORM ACTION=/servlet/myservlet method=POST


~Scott

Mark wrote:

I installed Tomcat 4.0.1 under Win 2k using JDK 1.3 and able to run the
example servlets, but not my own.  My html displays and I can execute my
JSPs, but a POST to a servlet does not work (this app has run under Forte
and VA Java in the past).   I get a 404 error with the requested
resource
(/myservlet) is not available. Since the examples work, I have to assume
it's something in my configuration. Any help figuring out why the servlet
won't run would be *greatly* appreciated.  I suspect it's something
simple/braindead on my part.


o  My directory structure for the app:
   TomcatHome
|
+--webapps
  |
  +--myapp\.jsp, .html .gif
 |
 +--WEB-INF\web.xml
   |
   +--classes\.class files


o  My html POST stmt. I've tried various path prefixes to myservlet, eg

   

Integrating Tomcat with Apache on NT

2001-11-26 Thread Alan Scott

Not to ask a dumb question.

How do I integrate both these products on NT? I assume there are some 
settings I need to apply to one or the other. Is there a reference on 
anyone have some helpful hints so I can test this out.

Also, any special settings so I can just call up jsp pages directly.

Thanks..


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




No errors but mod_jk + remote Tomcat doesn't work

2001-11-26 Thread Peter Matulis

I'm trying to get basic functionality between Apache and a remote Tomcat
server.  I am running apache-1.3.22 and JBoss-2.4.1_Tomcat-3.2.3.  Both on
Red Hat 7.1.

Here is my data (all residing on the Apache system):

httpd.conf:
==
DocumentRoot /usr/local/apache/htdocs

Directory /usr/local/apache/htdocs
Options FollowSymLinks
Order allow,deny
Allow from all
/Directory

LoadModule  jk_module   libexec/mod_jk.so
AddModule mod_jk.c
Include /usr/local/apache/conf/mod_jk.conf-local
==


mod_jk.conf-local:
==
JkWorkersFile /usr/local/apache/conf/workers.properties
JkLogFile /usr/local/apache/logs/mod_jk.log
JkLogLevel debug

JkMount /*.jsp ajp12://10.0.3.128
JkMount /servlet/* ajp12://10.0.3.128

Alias /test /usr/local/jboss-tomcat/tomcat/webapps/test
Directory /usr/local/jboss-tomcat/tomcat/webapps/test
Options Indexes FollowSymLinks
/Directory

JkMount /test/jsp/* ajp12://10.0.3.128
JkMount /test/*.jsp ajp12://10.0.3.128
==


workers.properties:
==
workers.tomcat_home=/usr/local/tomcat

workers.java_home=/usr/java/jdk1.3.1_01

ps=/

worker.list=ajp12, ajp13

worker.ajp12.port=8007
worker.ajp12.host=10.0.3.128
worker.ajp12.type=ajp12

worker.ajp12.lbfactor=1

worker.ajp13.port=8009
worker.ajp13.host=10.0.3.128
worker.ajp13.type=ajp13

worker.ajp13.lbfactor=1
==

Question: Is workers.tomcat_home required?  There are many other lines (not
shown) in the above file that use this variable.


messages generated in mod_jk.log when Apache is restarted:
==
[jk_uri_worker_map.c (156)]: Into jk_uri_worker_map_t::uri_worker_map_alloc
[jk_uri_worker_map.c (196)]: Into jk_uri_worker_map_t::uri_worker_map_open
[jk_uri_worker_map.c (211)]: jk_uri_worker_map_t::uri_worker_map_open, rule
map size is 8
[jk_uri_worker_map.c (256)]: Into jk_uri_worker_map_t::uri_worker_map_open,
suffix rule /.jsp=ajp12://10.0.3.128 was added
[jk_uri_worker_map.c (267)]: Into jk_uri_worker_map_t::uri_worker_map_open,
match rule /servlet/=ajp12://10.0.3.128 was added
[jk_uri_worker_map.c (267)]: Into jk_uri_worker_map_t::uri_worker_map_open,
match rule /examples/servlets/=ajp12://10.0.3.128 was ad
ded
[jk_uri_worker_map.c (256)]: Into jk_uri_worker_map_t::uri_worker_map_open,
suffix rule /examples/.jsp=ajp12://10.0.3.128 was added
[jk_uri_worker_map.c (267)]: Into jk_uri_worker_map_t::uri_worker_map_open,
match rule /admin/servlet/=ajp12://10.0.3.128 was added
[jk_uri_worker_map.c (256)]: Into jk_uri_worker_map_t::uri_worker_map_open,
suffix rule /admin/.jsp=ajp12://10.0.3.128 was added
[jk_uri_worker_map.c (267)]: Into jk_uri_worker_map_t::uri_worker_map_open,
match rule /test/jsp/=ajp12://10.0.3.128 was added
[jk_uri_worker_map.c (256)]: Into jk_uri_worker_map_t::uri_worker_map_open,
suffix rule /test/.jsp=ajp12://10.0.3.128 was added
[jk_uri_worker_map.c (296)]: Into jk_uri_worker_map_t::uri_worker_map_open,
there are 8 rules
[jk_uri_worker_map.c (317)]: jk_uri_worker_map_t::uri_worker_map_open, done
[jk_worker.c (82)]: Into wc_open
[jk_worker.c (207)]: Into build_worker_map, creating 2 workers
[jk_worker.c (213)]: build_worker_map, creating worker ajp12
[jk_worker.c (138)]: Into wc_create_worker
[jk_worker.c (152)]: wc_create_worker, about to create instance ajp12 of
ajp12
[jk_ajp12_worker.c (264)]: Into ajp12_worker_factory
[jk_worker.c (161)]: wc_create_worker, about to validate and init ajp12
[jk_ajp12_worker.c (182)]: Into jk_worker_t::validate
[jk_ajp12_worker.c (194)]: In jk_worker_t::validate for worker ajp12 contact
is 10.0.3.128:8007
[jk_worker.c (177)]: wc_create_worker, done
[jk_worker.c (223)]: build_worker_map, removing old ajp12 worker 
[jk_worker.c (213)]: build_worker_map, creating worker ajp13
[jk_worker.c (138)]: Into wc_create_worker
[jk_worker.c (152)]: wc_create_worker, about to create instance ajp13 of
ajp13
[jk_ajp13_worker.c (710)]: Into ajp23_worker_factory
[jk_worker.c (161)]: wc_create_worker, about to validate and init ajp13
[jk_ajp13_worker.c (385)]: Into jk_worker_t::validate
[jk_ajp13_worker.c (398)]: In jk_worker_t::validate for worker ajp13 contact
is 10.0.3.128:8009
[jk_ajp13_worker.c (424)]: Into jk_worker_t::init
[jk_worker.c (177)]: wc_create_worker, done
[jk_worker.c (223)]: build_worker_map, removing old ajp13 worker 
[jk_worker.c (235)]: build_worker_map, done
[jk_worker.c (102)]: wc_open, done
==

Now when I got to: http://apachehost/test/jsp/HelloWorld.jsp I get:

access.log:
==
my-win2k-box-ip - - [26/Nov/2001:12:46:29 -0500] GET
/test/jsp/HelloWorld.jsp HTTP/1.1 403 311
==

Seems that Apache is still trying to serve the resource.  Tomcat is using
its default installation files (server.xml, web.xml) and I don't see any
errors anywhere.  Can someone help?

Peter 

RE: Tomcat 3.3 Upgrade

2001-11-26 Thread Larry Isaacs

Tomcat 3.3 tries to add tools.jar internally using the
java.home system property.  It is not clear why this
was not working in your set up.

In addition to stability and improved performance, Tomcat
3.3 has the advantage of being much more configurable.
By default, the mod_jk.conf forwards all requests to
Tomcat.  This gives the best functionality with respect
to configuration you can specify in the web.xml file.
If you want a Tomcat 3.2.x type mod_jk config file, add:

forwardAll=false 

to the ApacheConfig entry in the server.xml.  It will
include the directives that Tomcat 3.2.x does, plus
servlet mappings and welcome files.  However, it will
be necessary to manually configure any additional web.xml
settings in Apache.

See:

http://jakarta.apache.org/tomcat/tomcat-3.3-doc/serverxml.html#ApacheConfig

for details about the ApacheConfig settings.

Cheers,
Larry

 -Original Message-
 From: David Morsberger [mailto:[EMAIL PROTECTED]]
 Sent: Friday, November 23, 2001 9:21 AM
 To: Tomcat Users List
 Subject: Tomcat 3.3 Upgrade
 
 
 I have run into a few issues upgrading from 3.2.3 to 3.3:
 
 1) JSP pages would not compile (no class: com.sun.javac.Main). I added
 ${JAVA_HOME)/lib/tools.jar to the CLASSPATH in tomcat.sh and 
 it worked. Why
 did I have to do this?
 
 2) The generated mod_jk did not contain any of the apache 
 directives. I
 hacked the 3.2.3 generated file to point to the required 3.3 
 files and it
 appeared to work. Why doesn't 3.3 generate the apache directives?
 
 What are the benefits of upgrading to 3.3? The effort is more 
 difficult then
 I expected.
 
 Dave
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: WAR files (URGENT)

2001-11-26 Thread Cor Hofman

Hi,

I did not follow this thread actively, but the error message you get
suggests that the file
/var/tomcat4/webapps/time/META-INF/MANIFEST.MF

is not there or not accessible. Have you checked:
- File names (upper/lower case, etc)
- file protection? (rwdx, etc)

The best way to check is to login as the user under which tomcat is runnig
and then perform a jar tf /var/tomcat4/webapps/time/timeservlet.war

I also noticed that you talk about webapp dir, where the error message
indicates it is looking for a webapps directory (the s is missing)

Regards,

  Cor

-Original Message-
From: Alec Bickerton [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 26, 2001 18:02
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: WAR files (URGENT)


26/11/2001 16:07:53, keiths [EMAIL PROTECTED] wrote:

Can you clarify this.

I have just tried the following...

1- remove the war file from the webapp dir
2- recreate the war file @jar cvf timeservlet.war *
3atry to intall using manager app from current location /var/tomcat4/,
same error : FAIL - Encountered exception java.io.FileNotFoundException:
/var/tomcat4/webapps/time/META-INF/MANIFEST.MF
(No such file or directory)

THE FILE IS IN THE WAR FILE ON THE PATH SHOWN

3b try to install on /var/tomcat/webapps/

Same result.

What am I doing wrong...

common error is the war file is placed in webapps directory but is not
created there.  jar cf myapp.war myapp from webapp dir is wrong,
jar cf myapp.war * from your application directory, then move the war
file up to webapp directory.

Alec Bickerton wrote:

 Hi all,

 Can someone plz tell me how to install a web app packaged as a WAR file
on tomcat 4.0.1 ?

 I've tried following the instructions in tomcat-docs but when I try them
I get a file not foud exception even though all the file in question is
in the
 war file. (With the correct path).

 I would appreciate any help as This is starting to drive me nuts.

 thanks in advance

 Alec.

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

--
Keith Simpson
Skillview Technologies
[EMAIL PROTECTED]
(603)-382-9882

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]








--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: TC 4.0 newbie - servlet app won't run (correction)

2001-11-26 Thread Mark

Correction, using POST results in a 405-Resource not allowed due to the
HelloWorldExample servlet not implementing doPost().  Others do and work
fine with POST. My apologies.


At 01:02 PM 11/26/2001 -0500, you wrote:
The examples you mentioned are the JSPs examples. I realize JSPs compile to
servlets, but what about the straight up HelloWorldExample servlet?  I
didn't see mapping for that or the other servlet (vs. JSP) examples in the
web.xml.  Being a newbie, I could very well be missing something so please
bear with me (again).

BTW - I've fiddled with the example servlet index.html to use FORM vs.
href=../servlet/abc method of running servlets.  POST always results in a
404.  GET does however work.  

Example:

   FORM ACTION=../servlet/HelloWorldExample method=POST  - doen't work
   FORM ACTION=../servlet/HelloWorldExample method=GET   - works.

Mark



At 09:30 AM 11/26/2001 -0800, you wrote:
Okay, Mark, Part II, I want to make sure we are communicating properly
before going further.  No sense wasting time.  Your note is not correct
about at least somethings -- for example (no pun intended):

The web.xml for examples/WEB-INF/web.xml DOES have servlet mappings.  So, I
am not sure what you are looking at.  The servlet SnoopServlet has the
mappings to the patterns /snoop and *.snp under the name snoop.  The
servlet servletToJsp which has the same name, i.e. servletToJsp, has a
mapping to the pattern /servletToJsp.

Micael


-Original Message-
From: Mark [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Date: Monday, November 26, 2001 7:00 AM
Subject: Re: TC 4.0 newbie - servlet app won't run


Thanks for your reply Scott, and thanks to your and Micael's responses I
_believe_ I understand the relationship between the servlet naming/mapping
and the associated html.  As Micael noted, one could put pudding in the
url-pattern as long as the html was setup as ACTION=pudding.  But... how
do the example servlets work when they don't seem to have any servlet
mapping in the ..\examples\WEB-INF\web.xml?

Even after all the advice, I *STILL* can't get my app to run - I still get
a 404 error on the servlet. This seems like such a simple issue but I can
NOT get past it.  I've even gone as far as downloading Tomcat 3.3, with the
same result. Again, I know Tomcat is parsing my web.xml, because if I
intentionally make a typo, the parser complains when Tomcat is started.

To recap where I am:

(a)  I have myservlet.class in the
$CATALINA_HOME\webapps\myapp\WEB-INF\classes
 directory.  The servlet has no associated package.
(b)  The html is FORM ACTION=/servlet/myservlet method=POST
(c)  My $CATALINA_HOME\webapps\myapp\WEB-INF\web.xml is as follows:

 ?xml version=1.0 encoding=ISO-8859-1?

 !DOCTYPE web-app
 PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
 http://java.sun.com/dtd/web-app_2_3.dtd;

 web-app
 servlet
 servlet-namemyservlet/servlet-name
 servlet-classmyservlet/servlet-class
 /servlet
 servlet-mapping
 servlet-namemyservlet/servlet-name
 url-pattern/servlet/myservlet/url-pattern
 /servlet-mapping
 /web-app


Am I still missing something?  This is driving me berserk...

TIA. Mark.



At 12:22 AM 11/22/2001 -0500, you wrote:
Mark,

The servlet tag is used to assign a name to a particular servlet class
file.

 servlet
   servlet-namemyservlet/servlet-name
   servlet-classmyservlet/servlet-class
   /servlet

This would attempt to assign the name 'myservlet' to the class
'myservlet.class.'

The servlet-mapping tag defines the pattern or 'location' of a named
servlet from the root of your context. This means that 

servlet-mapping
   servlet-namemyservlet/servlet-name
   url-pattern/classes/url-pattern
   /servlet-mapping

if this were the ROOT context, this would map your servlet at /classes
and your form action would need to be defined as

FORM ACTION=/classes method=POST

A more common mapping for servlets is

servlet-mapping
   servlet-namemyservlet/servlet-name
   url-pattern/servlet/myservlet/url-pattern
   /servlet-mapping

which would have a coresponding form tag of

FORM ACTION=/servlet/myservlet method=POST


~Scott

Mark wrote:

I installed Tomcat 4.0.1 under Win 2k using JDK 1.3 and able to run the
example servlets, but not my own.  My html displays and I can execute my
JSPs, but a POST to a servlet does not work (this app has run under Forte
and VA Java in the past).   I get a 404 error with the requested
resource
(/myservlet) is not available. Since the examples work, I have to assume
it's something in my configuration. Any help figuring out why the servlet
won't run would be *greatly* appreciated.  I suspect it's something
simple/braindead on my part.


o  My directory structure for the app:
   TomcatHome
|
+--webapps
  |
  +--myapp\.jsp, .html .gif

Re: Integrating Tomcat with Apache on NT

2001-11-26 Thread Denis Haskin

Alan Scott wrote:

 Not to ask a dumb question.

It's only a dumb in that, as far as I can tell, you haven't bothered to
try and find any of this information first.

 How do I integrate both these products on NT? I assume there are some
 settings I need to apply to one or the other. Is there a reference on
 anyone have some helpful hints so I can test this out.

Even if I didn't already know about Tomcat, entering tomcat apache nt
at Google gives you http://jakarta.apache.org/tomcat/tomcat-3.2-doc/ as
the second hit, and from there you get to lots of documents about Tomcat
on NT, and some specifically about hooking it up to Apache.

Read the doc, give it a try... and *then* if you get stuck, we'll see you
back here grin.

dwh


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




subfolders in WEB-INF/classes

2001-11-26 Thread Ralf Praschak

hello!

i´ve a simple question but couldn´t find an answer yet.
how do i enable subfolders in the classes directory

running servlets from the classes folder works fine.
but i want to structure this diretory (automatically).

i´ve created a subfolder test and a symbolic link mobinet and put the same
Hello.class in both of them...but i get a 404 error
2001-11-26 18:41:03 - Ctx( /projekt ): 404 R( /projekt + /servlet/mobinet +
/Hello) null
2001-11-26 19:09:44 - Ctx( /projekt ): 404 R( /projekt + /servlet/test +
/Hello) null

do i have to change the context?
Context path=/projekt
 docBase=webapps/projekt
 crossContext=false
 debug=0
 reloadable=true 
/Context

or the web.xml ?
which is actually a standrad cocoon web.xml

in the examples folder from tomcat the are subfolders, too. but the servlets
in it don´t work either ;(

thanx for answers

regards
ralf praschak



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Newbie - Tomcat 3.3 + Apache + NT

2001-11-26 Thread Larry Isaacs

I assume you mean conf/auto/mod_jk.conf was added to the
end of httpd.conf.  mod_jk.conf-auto is Tomcat 3.2.x only.

I would recommend modifying the conf/auto/mod_jk.conf to
set:

JkLogLevel debug

and check the log after accessing your page through Apache
to see what is happening.

Cheers,
Larry

 -Original Message-
 From: Xiaofeng Chen [mailto:[EMAIL PROTECTED]]
 Sent: Monday, November 26, 2001 12:07 PM
 To: Tomcat Users List; [EMAIL PROTECTED]
 Subject: Re: Newbie - Tomcat 3.3 + Apache + NT
 
 
 I did include the mod_jk.conf-auto at the end of my Apache 
 configuration. I
 use Tomcat 3.3 and generated the mod_jk.conf-auto using 
 'startup jkconf'
 command. Is your Apache/Tomcat running on a NT?
 
 Jeffrey
 
 - Original Message -
 From: Eric Dutilleul [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Monday, November 26, 2001 10:35 AM
 Subject: Re: Newbie - Tomcat 3.3 + Apache + NT
 
 
 
 
 I have actually a Apache / Tomcat Environnement in production for our
 Intranet
 and it works well.
 For your problem you need to include the file 
 mod_jk.conf-auto at the end
 of
 your Apache configuration (this file is updated by your 
 tomcat server at
 the
 start of the tomcat service). It is this file wich will give 
 filters for
 Apache
 (When and how he must let Tomcat taking the request). My 
 tomcat Apache work
 perfectly except for not debugged Servlets :-).
 
 Xiaofeng Chen a écrit :
 
  I have the same environment as yours. Mine is a little 
 better than yours,
  but I still cann't get them work together. For your 
 problem, you need to
 run
  'startup jkconf' to generate the mod=5Fjk.conf. And I think 
 you do need
 to
  copy the mod=5Fjk.dll into the Apache's modules directory. 
 That's where
 my
  luck ends. I can start Tomcat 3.3 and Apache 1.3.22 
 separately, but I
 can't
  load a page, such as examples/jsp/index.html, through 
 Apache. It just
 hang
  and eventully returned with 'file not found'. If you got 
 some progress,
  please let me know
  - Original Message -
  From: Leonardo M. Cunha [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Thursday, November 22, 2001 10:15 AM
  Subject: Newbie - Tomcat 3.3 + Apache + NT
 
  
  
   Hi Folks,
  
   I am using  Apache, Tomcat 3.3, Jre 1.3.1, NT
  
   Apache is installed as a NT service and is running. I 
 installed Tomcat
 as
  a
   NT service also and it works well.
  
   When I try to integrate them using the Include
   C:\jakarta-tomcat-3.3\conf\jk\mod_jk.conf-auto on the 
 httpd.conf, and
 try
   to restart them (first tomcat and then apache) I cannot 
 start apache,
   because of an error.
  
   I took a look on the folder conf/... and there is no 
 mod_jk.conf-auto
   generated after running the tomcat service.
  
   In the server.xml  there is ApacheConfig noRoot=true/
  
   Do I need to do any other configurations to make it work? Is it
 necessary
   to
   copy mod_jk.dll to apache/modules?
  
   Would appreciate any help :-)
   
Leonardo
  
  
  
  
   --
   To unsubscribe:   
 mailto:[EMAIL PROTECTED]
   For additional commands: 
 mailto:[EMAIL PROTECTED]
   Troubles with the list: 
 mailto:[EMAIL PROTECTED]
  
 
  --
  To unsubscribe:   
 mailto:[EMAIL PROTECTED]
  For additional commands: 
 mailto:[EMAIL PROTECTED]
  Troubles with the list: 
 mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Newbie - Tomcat 3.3 + Apache + NT

2001-11-26 Thread Eric Dutilleul

Yeah My Apache 1.3.2 is on NT but I have Tomcat 3.2 not 3.3 (sorry for the
mistake) perhaps they dont work in same way. But I have install my server
really without problems (not like when i have tested couple IIS / Tomcat).

The only problem i have to solved now is on memory errors that occurs (i think
there is problem with Memory cnfiguration for java).

I can send to you the versions i have installed on my server.

Xiaofeng Chen a écrit :

 I did include the mod_jk.conf-auto at the end of my Apache configuration. I
 use Tomcat 3.3 and generated the mod_jk.conf-auto using 'startup jkconf'
 command. Is your Apache/Tomcat running on a NT?

 Jeffrey

 - Original Message -
 From: Eric Dutilleul [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Monday, November 26, 2001 10:35 AM
 Subject: Re: Newbie - Tomcat 3.3 + Apache + NT

 I have actually a Apache / Tomcat Environnement in production for our
 Intranet
 and it works well.
 For your problem you need to include the file mod_jk.conf-auto at the end
 of
 your Apache configuration (this file is updated by your tomcat server at
 the
 start of the tomcat service). It is this file wich will give filters for
 Apache
 (When and how he must let Tomcat taking the request). My tomcat Apache work
 perfectly except for not debugged Servlets :-).

 Xiaofeng Chen a écrit :

  I have the same environment as yours. Mine is a little better than yours,
  but I still cann't get them work together. For your problem, you need to
 run
  'startup jkconf' to generate the mod=5Fjk.conf. And I think you do need
 to
  copy the mod=5Fjk.dll into the Apache's modules directory. That's where
 my
  luck ends. I can start Tomcat 3.3 and Apache 1.3.22 separately, but I
 can't
  load a page, such as examples/jsp/index.html, through Apache. It just
 hang
  and eventully returned with 'file not found'. If you got some progress,
  please let me know
  - Original Message -
  From: Leonardo M. Cunha [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Thursday, November 22, 2001 10:15 AM
  Subject: Newbie - Tomcat 3.3 + Apache + NT
 
  
  
   Hi Folks,
  
   I am using  Apache, Tomcat 3.3, Jre 1.3.1, NT
  
   Apache is installed as a NT service and is running. I installed Tomcat
 as
  a
   NT service also and it works well.
  
   When I try to integrate them using the Include
   C:\jakarta-tomcat-3.3\conf\jk\mod_jk.conf-auto on the httpd.conf, and
 try
   to restart them (first tomcat and then apache) I cannot start apache,
   because of an error.
  
   I took a look on the folder conf/... and there is no mod_jk.conf-auto
   generated after running the tomcat service.
  
   In the server.xml  there is ApacheConfig noRoot=true/
  
   Do I need to do any other configurations to make it work? Is it
 necessary
   to
   copy mod_jk.dll to apache/modules?
  
   Would appreciate any help :-)
   
Leonardo
  
  
  
  
   --
   To unsubscribe:   mailto:[EMAIL PROTECTED]
   For additional commands: mailto:[EMAIL PROTECTED]
   Troubles with the list: mailto:[EMAIL PROTECTED]
  
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


Re: [repost] loading class files

2001-11-26 Thread Frank Lawlor

 Note on the other stuff: Classes used on the server 
 side should be in a package structure under 
 WEB-INF/classes to work correctly. JSPs, 
 static content, and client-side applets should 
 all be outside the WEB-INF folder for proper 
 operation. This is defined in the spec and is 
 required for all applications conforming to it. 
 Hope this clears some mystery. 
 --David Smith 
I cannot find any place in the spec that says that
JSPs, etc. cannot be under WEB-INF.  I have seen
many suggestions that this is a good place to put
them to prevent direct access.  In what way doesn't
this provide proper operation.

Frank Lawlor
Athens Group, Inc.
(512) 345-0600 x151
Athens Group, an employee-owned consulting firm integrating technology
strategy and software solutions.




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Integrating Tomcat with Apache on NT

2001-11-26 Thread Eric Dutilleul

My experience on installing couple Apache (1.3.2) / Tomcat (3.2) :

Install on jdk 1.3.1 in d:\jdk1.3.1
Install of Apache with install process on d:\program files\ apache
group\apache
install of tomcat files in d:\tomcat

configuring wrappers.properties, workers.properties correctly
installing jk_nt_servie with the command line given in the documentation.

brief configuration of apache for my server.domain.
including d:\tomcat\conf\mod_jk.auto-conf in my httpd.conf
runing all that
the mod_jk.auto-conf will be generated and i need to restart both just
after
running Apache, Tomcat
All running perfectly
Installing new context in d:\tomcat\webapps by creating new directory and
installing class files in sub-directory web-inf\classes

My intranet working perfectly, i just need optimized period and i think
all will run for a long time.
(for the moment i must restart NT some times because my server has
sessions that stay blocked or somthing like that but not really big
problem just loosing performance during some mins and session is killed
after time out)

that's my experience on Apache / Tomcat.

Actually i am testing EAS Sybase for PowerBuilder Developpement and i
really prefer Apache / Tomcat :-)

Alan Scott a écrit :

 Not to ask a dumb question.

 How do I integrate both these products on NT? I assume there are some
 settings I need to apply to one or the other. Is there a reference on
 anyone have some helpful hints so I can test this out.

 Also, any special settings so I can just call up jsp pages directly.

 Thanks..

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


Re: Location of JSSE .jar files in Tomcat 3.3?

2001-11-26 Thread Greg Bailey

I tried placing the JSSE jar files (all 3 of them) into
$TOMCAT_HOME/lib/common, and that didn't work either.  Basically, I have a
SOAP application (bean) that attempts to open an SSL connection using https
in the URL.

The following error occurs in our logs:

===
Mon Nov 26 12:04:22 MST 2001
Exception establishing SSL connection
java.net.MalformedURLException: unknown protocol: https
===

The following is the stdout.log file that Tomcat produced.  Again, I'm find
with installing the JSSE jars into $JAVA_HOME/jre/lib/ext, but I'd like to
understand why this would be required...

Thanks much for the help,
Greg Bailey
[EMAIL PROTECTED]

--- stdout.log ---

2001-11-26 12:04:22 - DecodeInterceptor: Charset from session ISO-8859-1
2001-11-26 12:04:23 - DecodeInterceptor: Charset from session ISO-8859-1
[SOAPException: faultCode=SOAP-ENV:Client; msg=Error opening socket: null;
targetException=java.lang.IllegalArgumentException: Error opening socket:
null]
at
org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnection.java:324)

at org.apache.soap.rpc.Call.invoke(Call.java:205)
at com.ilink.websoap.SOAPBean.doSimpleSOAPCall(SOAPBean.java:1835)
at com.ilink.websoap.SOAPBean.doSimpleSOAPCall(SOAPBean.java:1803)
at com.ilink.websoap.SOAPBean.doSimpleSOAPCall(SOAPBean.java:1786)
at com.ilink.websoap.SOAPBean.setHostName(SOAPBean.java:363)
at com.ilink.websoap.VVLInterface.setHostName(VVLInterface.java:1402)

at auth_1._jspService(auth_1.java:123)
at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
at org.apache.tomcat.core.Handler.invoke(Unknown Source)
at org.apache.tomcat.core.Handler.service(Unknown Source)
at org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
at org.apache.tomcat.facade.RequestDispatcherImpl.doForward(Unknown
Source)
at org.apache.tomcat.facade.RequestDispatcherImpl.forward(Unknown
Source)
at org.apache.jasper.runtime.PageContextImpl.forward(Unknown Source)
at logout_1._jspService(logout_1.java:63)
at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
at org.apache.tomcat.core.Handler.invoke(Unknown Source)
at org.apache.tomcat.core.Handler.service(Unknown Source)
at org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
at org.apache.tomcat.core.ContextManager.internalService(Unknown
Source)
at org.apache.tomcat.core.ContextManager.service(Unknown Source)
at
org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(Unknown
Source)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source)

at java.lang.Thread.run(Thread.java:498)



Larry Isaacs [EMAIL PROTECTED] wrote:

 Subject: RE: Location of JSSE .jar files in Tomcat 3.3?
 Date: Tue, 20 Nov 2001 14:29:39 -0700
 From: Larry Isaacs [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]

 Tomcat 3.3 has more levels of classloaders that Tomcat 3.2.3,
 which is likely why this issue appears.  Class visibility
 between classloaders may not allow the JSSE jars to function
 in lib/apps.  They may need to be in the same classloader as
 some other jar.  I haven't yet played using JSSE except
 for enabling SSL support.  This worked with the jars in
 jre/lib/ext or lib/common.  I assume you get some form of
 class not found error.  If you have a stacktrace, I could
 tell more.

 Cheers,
 Larry

  -Original Message-
  From: Greg Bailey [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, November 20, 2001 4:14 PM
  To: [EMAIL PROTECTED]
  Cc: Greg Bailey
  Subject: Location of JSSE .jar files in Tomcat 3.3?
 
 
  Hi,
 
  I'm in the process of attempting to update our web environment from
  Tomcat 3.2.3 to Tomcat 3.3, and one of our applications (a SOAP one)
  failed to find JSSE classes.  The 3 files jcert.jar, jnet.jar, and
  jsse.jar are all located in /var/tomcat/lib/apps, since they would
  potentially be shared by more than one web application.
 
  This worked in 3.2.3, and the only way I'm able to get this
  to work (so
  far) in 3.3 is to put these 3 jar files into
  /opt/IBMJava2-13/jre/lib/ext.  My question is: why is this necessary?
  Shouldn't classes found in $TOMCAT_HOME/lib/apps be available to web
  applications?
 
  Thanks much for any insight into this--
 
  Greg Bailey
  [EMAIL PROTECTED]
 


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

Which Tomcat to use?

2001-11-26 Thread Brandon Cruz

We are currently using linux redhat 6.2, apache 1.3.x, and tomcat 3.2.1.  We
are upgrading our entire system from the ground up.  This will be a
production environment serving around 50GB of traffic per week.  60-75% of
the pages will be *.jsp.

Which version of tomcat should we use?  Familiarity with 3.2.1 makes it easy
to use the latest 3.2.4 release.  Maybe we want to stick with the 2.2/1.1
servlet and jsp specs, so we would switch to the latest production release
of 3.3.x.  Will this require a significant amount of change to existing
configurations?  Would I gain any big advantages from using the newer
servlet and jsp specs with tomcat 4.1.x?

Thanks in advance for any suggestions!


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: TC 4.0 newbie - servlet app won't run (correction)

2001-11-26 Thread Micael Padraig Og mac Grene

I will reply, Mark, in bits and drabs, as I try to figure out what you are
missing and what you may have wrong.  First, the servlets I referred to are
not any different as servlets.  They are not compiled JSP pages.  The are
regular old servlets.  Compiled JSP page servlets are kept in tomcat/work/.
Micael
-Original Message-
From: Mark [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Date: Monday, November 26, 2001 10:15 AM
Subject: Re: TC 4.0 newbie - servlet app won't run (correction)


Correction, using POST results in a 405-Resource not allowed due to the
HelloWorldExample servlet not implementing doPost().  Others do and work
fine with POST. My apologies.


At 01:02 PM 11/26/2001 -0500, you wrote:
The examples you mentioned are the JSPs examples. I realize JSPs compile
to
servlets, but what about the straight up HelloWorldExample servlet?  I
didn't see mapping for that or the other servlet (vs. JSP) examples in the
web.xml.  Being a newbie, I could very well be missing something so please
bear with me (again).

BTW - I've fiddled with the example servlet index.html to use FORM vs.
href=../servlet/abc method of running servlets.  POST always results in
a
404.  GET does however work.

Example:

   FORM ACTION=../servlet/HelloWorldExample method=POST  - doen't
work
   FORM ACTION=../servlet/HelloWorldExample method=GET   - works.

Mark



At 09:30 AM 11/26/2001 -0800, you wrote:
Okay, Mark, Part II, I want to make sure we are communicating properly
before going further.  No sense wasting time.  Your note is not correct
about at least somethings -- for example (no pun intended):

The web.xml for examples/WEB-INF/web.xml DOES have servlet mappings.  So,
I
am not sure what you are looking at.  The servlet SnoopServlet has the
mappings to the patterns /snoop and *.snp under the name snoop.  The
servlet servletToJsp which has the same name, i.e. servletToJsp, has a
mapping to the pattern /servletToJsp.

Micael


-Original Message-
From: Mark [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Date: Monday, November 26, 2001 7:00 AM
Subject: Re: TC 4.0 newbie - servlet app won't run


Thanks for your reply Scott, and thanks to your and Micael's responses I
_believe_ I understand the relationship between the servlet
naming/mapping
and the associated html.  As Micael noted, one could put pudding in
the
url-pattern as long as the html was setup as ACTION=pudding.  But...
how
do the example servlets work when they don't seem to have any servlet
mapping in the ..\examples\WEB-INF\web.xml?

Even after all the advice, I *STILL* can't get my app to run - I still
get
a 404 error on the servlet. This seems like such a simple issue but I
can
NOT get past it.  I've even gone as far as downloading Tomcat 3.3, with
the
same result. Again, I know Tomcat is parsing my web.xml, because if I
intentionally make a typo, the parser complains when Tomcat is started.

To recap where I am:

(a)  I have myservlet.class in the
$CATALINA_HOME\webapps\myapp\WEB-INF\classes
 directory.  The servlet has no associated package.
(b)  The html is FORM ACTION=/servlet/myservlet method=POST
(c)  My $CATALINA_HOME\webapps\myapp\WEB-INF\web.xml is as follows:

 ?xml version=1.0 encoding=ISO-8859-1?

 !DOCTYPE web-app
 PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
 http://java.sun.com/dtd/web-app_2_3.dtd;

 web-app
 servlet
 servlet-namemyservlet/servlet-name
 servlet-classmyservlet/servlet-class
 /servlet
 servlet-mapping
 servlet-namemyservlet/servlet-name
 url-pattern/servlet/myservlet/url-pattern
 /servlet-mapping
 /web-app


Am I still missing something?  This is driving me berserk...

TIA. Mark.



At 12:22 AM 11/22/2001 -0500, you wrote:
Mark,

The servlet tag is used to assign a name to a particular servlet class
file.

 servlet
   servlet-namemyservlet/servlet-name
   servlet-classmyservlet/servlet-class
   /servlet

This would attempt to assign the name 'myservlet' to the class
'myservlet.class.'

The servlet-mapping tag defines the pattern or 'location' of a named
servlet from the root of your context. This means that 

servlet-mapping
   servlet-namemyservlet/servlet-name
   url-pattern/classes/url-pattern
   /servlet-mapping

if this were the ROOT context, this would map your servlet at /classes
and your form action would need to be defined as

FORM ACTION=/classes method=POST

A more common mapping for servlets is

servlet-mapping
   servlet-namemyservlet/servlet-name
   url-pattern/servlet/myservlet/url-pattern
   /servlet-mapping

which would have a coresponding form tag of

FORM ACTION=/servlet/myservlet method=POST


~Scott

Mark wrote:

I installed Tomcat 4.0.1 under Win 2k using JDK 1.3 and able to run
the
example servlets, but not my own.  My html displays and I can execute
my
JSPs, but a POST to a 

Re: TC 4.0 newbie - servlet app won't run (correction)

2001-11-26 Thread Micael Padraig Og mac Grene

I have not looked at the webapps/examples except incidentally, Mark, so I am
not sure how the HelloWorldExample servlet is accessed.  How you access a
servlet and where the servlet is are very important in these contexts.
Inside and outside WEB-INF are very different, for example.  Inside WEB-INF
is dark to the outside world and must be accessed differently than outside
WEB-INF.  There must, as it were, be a portal.  I still have not received
answers from my last questions, which I need to go forward in my attempt to
see what you may be doing.  Certain answers to those questions could resolve
everything.  Micael
-Original Message-
From: Mark [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Date: Monday, November 26, 2001 10:15 AM
Subject: Re: TC 4.0 newbie - servlet app won't run (correction)


Correction, using POST results in a 405-Resource not allowed due to the
HelloWorldExample servlet not implementing doPost().  Others do and work
fine with POST. My apologies.


At 01:02 PM 11/26/2001 -0500, you wrote:
The examples you mentioned are the JSPs examples. I realize JSPs compile
to
servlets, but what about the straight up HelloWorldExample servlet?  I
didn't see mapping for that or the other servlet (vs. JSP) examples in the
web.xml.  Being a newbie, I could very well be missing something so please
bear with me (again).

BTW - I've fiddled with the example servlet index.html to use FORM vs.
href=../servlet/abc method of running servlets.  POST always results in
a
404.  GET does however work.

Example:

   FORM ACTION=../servlet/HelloWorldExample method=POST  - doen't
work
   FORM ACTION=../servlet/HelloWorldExample method=GET   - works.

Mark



At 09:30 AM 11/26/2001 -0800, you wrote:
Okay, Mark, Part II, I want to make sure we are communicating properly
before going further.  No sense wasting time.  Your note is not correct
about at least somethings -- for example (no pun intended):

The web.xml for examples/WEB-INF/web.xml DOES have servlet mappings.  So,
I
am not sure what you are looking at.  The servlet SnoopServlet has the
mappings to the patterns /snoop and *.snp under the name snoop.  The
servlet servletToJsp which has the same name, i.e. servletToJsp, has a
mapping to the pattern /servletToJsp.

Micael


-Original Message-
From: Mark [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Date: Monday, November 26, 2001 7:00 AM
Subject: Re: TC 4.0 newbie - servlet app won't run


Thanks for your reply Scott, and thanks to your and Micael's responses I
_believe_ I understand the relationship between the servlet
naming/mapping
and the associated html.  As Micael noted, one could put pudding in
the
url-pattern as long as the html was setup as ACTION=pudding.  But...
how
do the example servlets work when they don't seem to have any servlet
mapping in the ..\examples\WEB-INF\web.xml?

Even after all the advice, I *STILL* can't get my app to run - I still
get
a 404 error on the servlet. This seems like such a simple issue but I
can
NOT get past it.  I've even gone as far as downloading Tomcat 3.3, with
the
same result. Again, I know Tomcat is parsing my web.xml, because if I
intentionally make a typo, the parser complains when Tomcat is started.

To recap where I am:

(a)  I have myservlet.class in the
$CATALINA_HOME\webapps\myapp\WEB-INF\classes
 directory.  The servlet has no associated package.
(b)  The html is FORM ACTION=/servlet/myservlet method=POST
(c)  My $CATALINA_HOME\webapps\myapp\WEB-INF\web.xml is as follows:

 ?xml version=1.0 encoding=ISO-8859-1?

 !DOCTYPE web-app
 PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
 http://java.sun.com/dtd/web-app_2_3.dtd;

 web-app
 servlet
 servlet-namemyservlet/servlet-name
 servlet-classmyservlet/servlet-class
 /servlet
 servlet-mapping
 servlet-namemyservlet/servlet-name
 url-pattern/servlet/myservlet/url-pattern
 /servlet-mapping
 /web-app


Am I still missing something?  This is driving me berserk...

TIA. Mark.



At 12:22 AM 11/22/2001 -0500, you wrote:
Mark,

The servlet tag is used to assign a name to a particular servlet class
file.

 servlet
   servlet-namemyservlet/servlet-name
   servlet-classmyservlet/servlet-class
   /servlet

This would attempt to assign the name 'myservlet' to the class
'myservlet.class.'

The servlet-mapping tag defines the pattern or 'location' of a named
servlet from the root of your context. This means that 

servlet-mapping
   servlet-namemyservlet/servlet-name
   url-pattern/classes/url-pattern
   /servlet-mapping

if this were the ROOT context, this would map your servlet at /classes
and your form action would need to be defined as

FORM ACTION=/classes method=POST

A more common mapping for servlets is

servlet-mapping
   servlet-namemyservlet/servlet-name
   

Re: TC 4.0 newbie - servlet app won't run (correction)

2001-11-26 Thread Micael Padraig Og mac Grene

Mark.  I personally work on my sites at a distance, so I am presently ftping
the webapps/examples to have a look at them.  Micael
-Original Message-
From: Mark [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Date: Monday, November 26, 2001 10:15 AM
Subject: Re: TC 4.0 newbie - servlet app won't run (correction)


Correction, using POST results in a 405-Resource not allowed due to the
HelloWorldExample servlet not implementing doPost().  Others do and work
fine with POST. My apologies.


At 01:02 PM 11/26/2001 -0500, you wrote:
The examples you mentioned are the JSPs examples. I realize JSPs compile
to
servlets, but what about the straight up HelloWorldExample servlet?  I
didn't see mapping for that or the other servlet (vs. JSP) examples in the
web.xml.  Being a newbie, I could very well be missing something so please
bear with me (again).

BTW - I've fiddled with the example servlet index.html to use FORM vs.
href=../servlet/abc method of running servlets.  POST always results in
a
404.  GET does however work.

Example:

   FORM ACTION=../servlet/HelloWorldExample method=POST  - doen't
work
   FORM ACTION=../servlet/HelloWorldExample method=GET   - works.

Mark



At 09:30 AM 11/26/2001 -0800, you wrote:
Okay, Mark, Part II, I want to make sure we are communicating properly
before going further.  No sense wasting time.  Your note is not correct
about at least somethings -- for example (no pun intended):

The web.xml for examples/WEB-INF/web.xml DOES have servlet mappings.  So,
I
am not sure what you are looking at.  The servlet SnoopServlet has the
mappings to the patterns /snoop and *.snp under the name snoop.  The
servlet servletToJsp which has the same name, i.e. servletToJsp, has a
mapping to the pattern /servletToJsp.

Micael


-Original Message-
From: Mark [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Date: Monday, November 26, 2001 7:00 AM
Subject: Re: TC 4.0 newbie - servlet app won't run


Thanks for your reply Scott, and thanks to your and Micael's responses I
_believe_ I understand the relationship between the servlet
naming/mapping
and the associated html.  As Micael noted, one could put pudding in
the
url-pattern as long as the html was setup as ACTION=pudding.  But...
how
do the example servlets work when they don't seem to have any servlet
mapping in the ..\examples\WEB-INF\web.xml?

Even after all the advice, I *STILL* can't get my app to run - I still
get
a 404 error on the servlet. This seems like such a simple issue but I
can
NOT get past it.  I've even gone as far as downloading Tomcat 3.3, with
the
same result. Again, I know Tomcat is parsing my web.xml, because if I
intentionally make a typo, the parser complains when Tomcat is started.

To recap where I am:

(a)  I have myservlet.class in the
$CATALINA_HOME\webapps\myapp\WEB-INF\classes
 directory.  The servlet has no associated package.
(b)  The html is FORM ACTION=/servlet/myservlet method=POST
(c)  My $CATALINA_HOME\webapps\myapp\WEB-INF\web.xml is as follows:

 ?xml version=1.0 encoding=ISO-8859-1?

 !DOCTYPE web-app
 PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
 http://java.sun.com/dtd/web-app_2_3.dtd;

 web-app
 servlet
 servlet-namemyservlet/servlet-name
 servlet-classmyservlet/servlet-class
 /servlet
 servlet-mapping
 servlet-namemyservlet/servlet-name
 url-pattern/servlet/myservlet/url-pattern
 /servlet-mapping
 /web-app


Am I still missing something?  This is driving me berserk...

TIA. Mark.



At 12:22 AM 11/22/2001 -0500, you wrote:
Mark,

The servlet tag is used to assign a name to a particular servlet class
file.

 servlet
   servlet-namemyservlet/servlet-name
   servlet-classmyservlet/servlet-class
   /servlet

This would attempt to assign the name 'myservlet' to the class
'myservlet.class.'

The servlet-mapping tag defines the pattern or 'location' of a named
servlet from the root of your context. This means that 

servlet-mapping
   servlet-namemyservlet/servlet-name
   url-pattern/classes/url-pattern
   /servlet-mapping

if this were the ROOT context, this would map your servlet at /classes
and your form action would need to be defined as

FORM ACTION=/classes method=POST

A more common mapping for servlets is

servlet-mapping
   servlet-namemyservlet/servlet-name
   url-pattern/servlet/myservlet/url-pattern
   /servlet-mapping

which would have a coresponding form tag of

FORM ACTION=/servlet/myservlet method=POST


~Scott

Mark wrote:

I installed Tomcat 4.0.1 under Win 2k using JDK 1.3 and able to run
the
example servlets, but not my own.  My html displays and I can execute
my
JSPs, but a POST to a servlet does not work (this app has run under
Forte
and VA Java in the past).   I get a 404 error with the requested
resource
(/myservlet) is not available. Since the examples work, 

Re: Form/Basic Authentication

2001-11-26 Thread Scott Edwards

Erwin,

I've seen similar behavior with the container when the domain reference 
to the pages change. For example:

http://myServer/secure/index.jsp

would cause the login page to occur. But if something within the site 
refers to

http://myServer.myCompany.com/secure/someOther.jsp

then the difference in domain causes a new authenication, despite the 
fact that it is the same site being accessed. I might be wrong about 
this, but where I have seen this behavior using Container Managed 
Security, this has been my problem.

-Scott Edwards

Erwin Ambrosch wrote:

 Hi,

 I have the following behaviour using Tomcat 3.2.3 on RH Linux 7.1.

 If I use either FORM based or BASIC authentication, for the very first 
 login I get the login form/dialog two times.
 1. First time after accessing the protected area as defined in web.xml 
 for the very first time.
 2. Second time after sending a request within the already logged on 
 protected.

 From know on everything works fine. Logging out forces me to login 
 again, but just one time as excpected.

 Thanks for any comment

 Erwin



 -- 
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]






--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Location of JSSE .jar files in Tomcat 3.3?

2001-11-26 Thread Larry Isaacs

With the JSSE jars in lib/common, what is left in
$JAVA_HOME/jre/lib/ext?

One impact of moving just the JSSE jars to lib/common
is that the jars that remain in jre/lib/ext can no
longer see the classes in the JSSE jars.  I'm not sure
if some other jar(s) need to move with them to
lib/common to retain visibility between them.
If these other jar(s) can't leave jre/lib/ext, then the
JSSE jars would have to be in jre/lib/ext.

Cheers,
Larry

 -Original Message-
 From: Greg Bailey [mailto:[EMAIL PROTECTED]]
 Sent: Monday, November 26, 2001 2:17 PM
 To: [EMAIL PROTECTED]
 Cc: Larry Isaacs; Greg Bailey
 Subject: Re: Location of JSSE .jar files in Tomcat 3.3?
 
 
 I tried placing the JSSE jar files (all 3 of them) into
 $TOMCAT_HOME/lib/common, and that didn't work either.  
 Basically, I have a
 SOAP application (bean) that attempts to open an SSL 
 connection using https
 in the URL.
 
 The following error occurs in our logs:
 
 ===
 Mon Nov 26 12:04:22 MST 2001
 Exception establishing SSL connection
 java.net.MalformedURLException: unknown protocol: https
 ===
 
 The following is the stdout.log file that Tomcat produced.  
 Again, I'm find
 with installing the JSSE jars into $JAVA_HOME/jre/lib/ext, 
 but I'd like to
 understand why this would be required...
 
 Thanks much for the help,
 Greg Bailey
 [EMAIL PROTECTED]
 
 --- stdout.log ---
 
 2001-11-26 12:04:22 - DecodeInterceptor: Charset from session 
 ISO-8859-1
 2001-11-26 12:04:23 - DecodeInterceptor: Charset from session 
 ISO-8859-1
 [SOAPException: faultCode=SOAP-ENV:Client; msg=Error opening 
 socket: null;
 targetException=java.lang.IllegalArgumentException: Error 
 opening socket:
 null]
 at
 org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTT
 PConnection.java:324)
 
 at org.apache.soap.rpc.Call.invoke(Call.java:205)
 at 
 com.ilink.websoap.SOAPBean.doSimpleSOAPCall(SOAPBean.java:1835)
 at 
 com.ilink.websoap.SOAPBean.doSimpleSOAPCall(SOAPBean.java:1803)
 at 
 com.ilink.websoap.SOAPBean.doSimpleSOAPCall(SOAPBean.java:1786)
 at com.ilink.websoap.SOAPBean.setHostName(SOAPBean.java:363)
 at 
 com.ilink.websoap.VVLInterface.setHostName(VVLInterface.java:1402)
 
 at auth_1._jspService(auth_1.java:123)
 at 
 org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java)
 at 
 org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
 at org.apache.tomcat.core.Handler.invoke(Unknown Source)
 at org.apache.tomcat.core.Handler.service(Unknown Source)
 at 
 org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
 at 
 org.apache.tomcat.facade.RequestDispatcherImpl.doForward(Unknown
 Source)
 at 
 org.apache.tomcat.facade.RequestDispatcherImpl.forward(Unknown
 Source)
 at 
 org.apache.jasper.runtime.PageContextImpl.forward(Unknown Source)
 at logout_1._jspService(logout_1.java:63)
 at 
 org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java)
 at 
 org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
 at org.apache.tomcat.core.Handler.invoke(Unknown Source)
 at org.apache.tomcat.core.Handler.service(Unknown Source)
 at 
 org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
 at 
 org.apache.tomcat.core.ContextManager.internalService(Unknown
 Source)
 at 
 org.apache.tomcat.core.ContextManager.service(Unknown Source)
 at
 org.apache.tomcat.modules.server.Ajp13Interceptor.processConne
 ction(Unknown
 Source)
 at 
 org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
 at
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
 Unknown Source)
 
 at java.lang.Thread.run(Thread.java:498)
 
 
 
 Larry Isaacs [EMAIL PROTECTED] wrote:
 
  Subject: RE: Location of JSSE .jar files in Tomcat 3.3?
  Date: Tue, 20 Nov 2001 14:29:39 -0700
  From: Larry Isaacs [EMAIL PROTECTED]
  To: 'Tomcat Users List' [EMAIL PROTECTED]
 
  Tomcat 3.3 has more levels of classloaders that Tomcat 3.2.3,
  which is likely why this issue appears.  Class visibility
  between classloaders may not allow the JSSE jars to function
  in lib/apps.  They may need to be in the same classloader as
  some other jar.  I haven't yet played using JSSE except
  for enabling SSL support.  This worked with the jars in
  jre/lib/ext or lib/common.  I assume you get some form of
  class not found error.  If you have a stacktrace, I could
  tell more.
 
  Cheers,
  Larry
 
   -Original Message-
   From: Greg Bailey [mailto:[EMAIL PROTECTED]]
   Sent: Tuesday, November 20, 2001 4:14 PM
   To: [EMAIL PROTECTED]
   Cc: Greg Bailey
   Subject: Location of JSSE 

mod_jk and remote Tomcat

2001-11-26 Thread Peter Matulis

I feel I'm missing something small here.  If someone can give me a clue...

I'm trying to get basic functionality between Apache and a remote Tomcat
server.  I am running apache-1.3.22 and JBoss-2.4.1_Tomcat-3.2.3.  Both on
Red Hat 7.1.

Here is my data (all residing on the Apache system):

httpd.conf:
==
DocumentRoot /usr/local/apache/htdocs

Directory /usr/local/apache/htdocs
Options FollowSymLinks
Order allow,deny
Allow from all
/Directory

LoadModule  jk_module   libexec/mod_jk.so
AddModule mod_jk.c
Include /usr/local/apache/conf/mod_jk.conf-local
==


mod_jk.conf-local:
==
JkWorkersFile /usr/local/apache/conf/workers.properties
JkLogFile /usr/local/apache/logs/mod_jk.log
JkLogLevel debug

JkMount /*.jsp ajp12://10.0.3.128
JkMount /servlet/* ajp12://10.0.3.128

Alias /test /usr/local/jboss-tomcat/tomcat/webapps/test
Directory /usr/local/jboss-tomcat/tomcat/webapps/test
Options Indexes FollowSymLinks
/Directory

JkMount /test/jsp/* ajp12://10.0.3.128
JkMount /test/*.jsp ajp12://10.0.3.128
==


workers.properties:
==
workers.tomcat_home=/usr/local/tomcat

workers.java_home=/usr/java/jdk1.3.1_01

ps=/

worker.list=ajp12, ajp13

worker.ajp12.port=8007
worker.ajp12.host=10.0.3.128
worker.ajp12.type=ajp12

worker.ajp12.lbfactor=1

worker.ajp13.port=8009
worker.ajp13.host=10.0.3.128
worker.ajp13.type=ajp13

worker.ajp13.lbfactor=1
==

Question: Is workers.tomcat_home required?  There are many other lines (not
shown) in the above file that use this variable.


messages generated in mod_jk.log when Apache is restarted:
==
[jk_uri_worker_map.c (156)]: Into jk_uri_worker_map_t::uri_worker_map_alloc
[jk_uri_worker_map.c (196)]: Into jk_uri_worker_map_t::uri_worker_map_open
[jk_uri_worker_map.c (211)]: jk_uri_worker_map_t::uri_worker_map_open, rule
map size is 8
[jk_uri_worker_map.c (256)]: Into jk_uri_worker_map_t::uri_worker_map_open,
suffix rule /.jsp=ajp12://10.0.3.128 was added
[jk_uri_worker_map.c (267)]: Into jk_uri_worker_map_t::uri_worker_map_open,
match rule /servlet/=ajp12://10.0.3.128 was added
[jk_uri_worker_map.c (267)]: Into jk_uri_worker_map_t::uri_worker_map_open,
match rule /examples/servlets/=ajp12://10.0.3.128 was ad
ded
[jk_uri_worker_map.c (256)]: Into jk_uri_worker_map_t::uri_worker_map_open,
suffix rule /examples/.jsp=ajp12://10.0.3.128 was added
[jk_uri_worker_map.c (267)]: Into jk_uri_worker_map_t::uri_worker_map_open,
match rule /admin/servlet/=ajp12://10.0.3.128 was added
[jk_uri_worker_map.c (256)]: Into jk_uri_worker_map_t::uri_worker_map_open,
suffix rule /admin/.jsp=ajp12://10.0.3.128 was added
[jk_uri_worker_map.c (267)]: Into jk_uri_worker_map_t::uri_worker_map_open,
match rule /test/jsp/=ajp12://10.0.3.128 was added
[jk_uri_worker_map.c (256)]: Into jk_uri_worker_map_t::uri_worker_map_open,
suffix rule /test/.jsp=ajp12://10.0.3.128 was added
[jk_uri_worker_map.c (296)]: Into jk_uri_worker_map_t::uri_worker_map_open,
there are 8 rules
[jk_uri_worker_map.c (317)]: jk_uri_worker_map_t::uri_worker_map_open, done
[jk_worker.c (82)]: Into wc_open
[jk_worker.c (207)]: Into build_worker_map, creating 2 workers
[jk_worker.c (213)]: build_worker_map, creating worker ajp12
[jk_worker.c (138)]: Into wc_create_worker
[jk_worker.c (152)]: wc_create_worker, about to create instance ajp12 of
ajp12
[jk_ajp12_worker.c (264)]: Into ajp12_worker_factory
[jk_worker.c (161)]: wc_create_worker, about to validate and init ajp12
[jk_ajp12_worker.c (182)]: Into jk_worker_t::validate
[jk_ajp12_worker.c (194)]: In jk_worker_t::validate for worker ajp12 contact
is 10.0.3.128:8007
[jk_worker.c (177)]: wc_create_worker, done
[jk_worker.c (223)]: build_worker_map, removing old ajp12 worker 
[jk_worker.c (213)]: build_worker_map, creating worker ajp13
[jk_worker.c (138)]: Into wc_create_worker
[jk_worker.c (152)]: wc_create_worker, about to create instance ajp13 of
ajp13
[jk_ajp13_worker.c (710)]: Into ajp23_worker_factory
[jk_worker.c (161)]: wc_create_worker, about to validate and init ajp13
[jk_ajp13_worker.c (385)]: Into jk_worker_t::validate
[jk_ajp13_worker.c (398)]: In jk_worker_t::validate for worker ajp13 contact
is 10.0.3.128:8009
[jk_ajp13_worker.c (424)]: Into jk_worker_t::init
[jk_worker.c (177)]: wc_create_worker, done
[jk_worker.c (223)]: build_worker_map, removing old ajp13 worker 
[jk_worker.c (235)]: build_worker_map, done
[jk_worker.c (102)]: wc_open, done
==

Now when I got to: http://apachehost/test/jsp/HelloWorld.jsp I get:

access.log:
==
my-win2k-box-ip - - [26/Nov/2001:12:46:29 -0500] GET
/test/jsp/HelloWorld.jsp HTTP/1.1 403 311
==

Seems that Apache is still trying to serve the resource.  Tomcat is using
its default installation files (server.xml, 

RE: Which Tomcat to use?

2001-11-26 Thread Larry Isaacs

With Tomcat 3.3.x, I think you will find a noticeable improvement
in performance.  It also offers better stability and is more
configurable.  The improvements in configuration does mean that
there are differences, though I don't think the changes would
be significant.  I can't say exactly without knowing what
configuration changes have been made in your 3.2.1 installation.

As to whether Tomcat 4.x would be useful, you could give it
a try and see if there are features that could be taken
advantage of when upgrading your site.  For example, the
JSP 1.2 spec allows jsp:include ... flush=false/.

Cheers,
Larry

 -Original Message-
 From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
 Sent: Monday, November 26, 2001 2:14 PM
 To: Tomcat Users List
 Subject: Which Tomcat to use?
 
 
 We are currently using linux redhat 6.2, apache 1.3.x, and 
 tomcat 3.2.1.  We
 are upgrading our entire system from the ground up.  This will be a
 production environment serving around 50GB of traffic per 
 week.  60-75% of
 the pages will be *.jsp.
 
 Which version of tomcat should we use?  Familiarity with 
 3.2.1 makes it easy
 to use the latest 3.2.4 release.  Maybe we want to stick with 
 the 2.2/1.1
 servlet and jsp specs, so we would switch to the latest 
 production release
 of 3.3.x.  Will this require a significant amount of change 
 to existing
 configurations?  Would I gain any big advantages from using the newer
 servlet and jsp specs with tomcat 4.1.x?
 
 Thanks in advance for any suggestions!
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: TC4, does it reuse / pool custom tags?

2001-11-26 Thread Peter Mutsaers

 Ulf == Ulf Dittmer [EMAIL PROTECTED] writes:

Ulf TC can reuse tag instances (since TC 3.3 I think), but doesn't
Ulf by default. Look for TagPoolManagerInterceptor / in server.xml
Ulf to turn that feature on.

Craig R. McClanahan just wrote TC4 does not. Does this mean TC3.3
does/can, but 4.x not? Or only that TC4 does not by default, but can
be configured to do so?


-- 
Peter Mutsaers  |  Dübendorf| UNIX - Live free or die
[EMAIL PROTECTED]  |  Switzerland  | Sent via FreeBSD 4.4-stable

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




url relative to directory path?

2001-11-26 Thread Antoni Unkovich

Hello from downunder (New Zealand),

I'm new to tomcat and java but have successfully installed Tomcat 3.3 on
Windows 2000 server in conjunction with IIS and the redirector plug-in -
which I have working fine.

My servlet is in this directory: 
E:\tomcat\webapps\qbus\WEB-INF\Classes\qbus\servletname.class

to access it I use this url:

www.qbus.co.nz/qbus/servlet/servletname

What do I need to change to access it from:

www.qbus.co.nz/servletname

Thanks in advance
Antoni Unkovich



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




mod_jk and Apache ....

2001-11-26 Thread Alan Scott

I downloaded apache for nt and installed in and ran it. However, in order 
to integrate it and tomcat (which is also running great) the docs say I 
need mod_jk. However, I searched my machine and did not find this file? 


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Directory question

2001-11-26 Thread Alan Scott

I created a directory under webapps called samples and placed some jsp's I 
had written there. I get a 404. Is there some setting I need to update in 
server.xml?


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: TC4, does it reuse / pool custom tags?

2001-11-26 Thread DONNIE HALE

Just to clarify, it's really Jasper that does the JSP compiling and determines whether 
or not custom tags get reused. There's not much difference, as I understand it, b/w 
the TC4 and TC3.x versions of Jasper.

Here's a message Craig sent a while back (on the Struts list):

=
Yes.  For example, Tomcat (more precisely, the Jasper component) does not
currently recycle custom tag instances -- this is in the process of being
addressed.  Also, the code generator is very simplistic, does essentially
no optimizations, and generates more code than it really needs to.

This is not surprising, given Tomcat's heritage as being a reference
implementation for the specs, rather than a high performance production
environment.  To the extent that people want to turn Tomcat into the
latter, it will improve.
=

Donnie


 [EMAIL PROTECTED] 11/26/01 03:17PM 
 Ulf == Ulf Dittmer [EMAIL PROTECTED] writes:

Ulf TC can reuse tag instances (since TC 3.3 I think), but doesn't
Ulf by default. Look for TagPoolManagerInterceptor / in server.xml
Ulf to turn that feature on.

Craig R. McClanahan just wrote TC4 does not. Does this mean TC3.3
does/can, but 4.x not? Or only that TC4 does not by default, but can
be configured to do so?


-- 
Peter Mutsaers  |  Dübendorf| UNIX - Live free or die
[EMAIL PROTECTED]  |  Switzerland  | Sent via FreeBSD 4.4-stable

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Fwd: problem with servlet reloading

2001-11-26 Thread Harry Hinch

I've figured this out.  if you get rid of the default virtual host in 
server.xml then the context does not load twice




At 06:04 PM 11/21/2001, you wrote:
Harry Hinch wrote:


I am running Tomcat 4 Apache 1.3.20 and Redhat linux 7.1

I am having a problem with servlets reloading when ever I start 
Apache.  I have 2 servlets that I have automatically load when tomcat 
starts by specifying load-on-startup1/load-on-startup within the 
servlet /servlet pair in my applications web.xml.  I have removed 
the stand-alone tomcat service and I only have the tomcat-Apache 
service.  I have some logging messages in my servlets.  I notice that 
they appear once when tomcat starts and then the start again when Apache 
starts.   I only want the servlets to load once.  can someone please 
clue me in on how to accomplish this.


I've got the same problem (I already started to write an email about it :) 
). It looks like the whole web application is deployed again after Apache 
starts, and it has got something to do with the mod_webapp I think.
I didn't remove the stand-alone tomcat service.

Gerard



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




work dir corruption

2001-11-26 Thread Durham David Cntr 805CSS/SCBE

Having a problem with pages not loading or throwing a null pointer
exception for seamingly no reason at all.

However, if I delete the files from jakarta's work directory.  The pages
will then run properly.

I'm using Tomcat-3.2.3 on Windows NT with an ISAPI redirector for IIS.
The JSP application I'm working on is a slightly modified version of
Jive Forums 1.2.4.

I haven't had any problems like this with any other applications we are
running.  

Anyone got any ideas or info on this one?


Thanks in advance,

Dave

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: TC 4.0 newbie - servlet app won't run

2001-11-26 Thread Micael Padraig Og mac Grene

Mark, I don't have webapps/examples running, so I need to ask you another
question.  Is there a class file called HelloWorldExample.class in
examples/servlets/?, i.e. examples/servlets/HelloWorldExample.class.  From
what I can tell about your remarks, there should be.

I notice that the only reference to any HelloWorldExample.class in the whole
example app is in that file.  If there is a way to get to the file without a
file where the reference is, I don't know how that would happen.

Micael
-Original Message-
From: Mark [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Date: Monday, November 26, 2001 9:58 AM
Subject: Re: TC 4.0 newbie - servlet app won't run


The examples you mentioned are the JSPs examples. I realize JSPs compile to
servlets, but what about the straight up HelloWorldExample servlet?  I
didn't see mapping for that or the other servlet (vs. JSP) examples in the
web.xml.  Being a newbie, I could very well be missing something so please
bear with me (again).

BTW - I've fiddled with the example servlet index.html to use FORM vs.
href=../servlet/abc method of running servlets.  POST always results in a
404.  GET does however work.

Example:

   FORM ACTION=../servlet/HelloWorldExample method=POST  - doen't
work
   FORM ACTION=../servlet/HelloWorldExample method=GET   - works.

Mark



At 09:30 AM 11/26/2001 -0800, you wrote:
Okay, Mark, Part II, I want to make sure we are communicating properly
before going further.  No sense wasting time.  Your note is not correct
about at least somethings -- for example (no pun intended):

The web.xml for examples/WEB-INF/web.xml DOES have servlet mappings.  So,
I
am not sure what you are looking at.  The servlet SnoopServlet has the
mappings to the patterns /snoop and *.snp under the name snoop.  The
servlet servletToJsp which has the same name, i.e. servletToJsp, has a
mapping to the pattern /servletToJsp.

Micael


-Original Message-
From: Mark [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Date: Monday, November 26, 2001 7:00 AM
Subject: Re: TC 4.0 newbie - servlet app won't run


Thanks for your reply Scott, and thanks to your and Micael's responses I
_believe_ I understand the relationship between the servlet
naming/mapping
and the associated html.  As Micael noted, one could put pudding in the
url-pattern as long as the html was setup as ACTION=pudding.  But...
how
do the example servlets work when they don't seem to have any servlet
mapping in the ..\examples\WEB-INF\web.xml?

Even after all the advice, I *STILL* can't get my app to run - I still
get
a 404 error on the servlet. This seems like such a simple issue but I can
NOT get past it.  I've even gone as far as downloading Tomcat 3.3, with
the
same result. Again, I know Tomcat is parsing my web.xml, because if I
intentionally make a typo, the parser complains when Tomcat is started.

To recap where I am:

(a)  I have myservlet.class in the
$CATALINA_HOME\webapps\myapp\WEB-INF\classes
 directory.  The servlet has no associated package.
(b)  The html is FORM ACTION=/servlet/myservlet method=POST
(c)  My $CATALINA_HOME\webapps\myapp\WEB-INF\web.xml is as follows:

 ?xml version=1.0 encoding=ISO-8859-1?

 !DOCTYPE web-app
 PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
 http://java.sun.com/dtd/web-app_2_3.dtd

 web-app
 servlet
 servlet-namemyservlet/servlet-name
 servlet-classmyservlet/servlet-class
 /servlet
 servlet-mapping
 servlet-namemyservlet/servlet-name
 url-pattern/servlet/myservlet/url-pattern
 /servlet-mapping
 /web-app


Am I still missing something?  This is driving me berserk...

TIA. Mark.



At 12:22 AM 11/22/2001 -0500, you wrote:
Mark,

The servlet tag is used to assign a name to a particular servlet class
file.

 servlet
   servlet-namemyservlet/servlet-name
   servlet-classmyservlet/servlet-class
   /servlet

This would attempt to assign the name 'myservlet' to the class
'myservlet.class.'

The servlet-mapping tag defines the pattern or 'location' of a named
servlet from the root of your context. This means that 

servlet-mapping
   servlet-namemyservlet/servlet-name
   url-pattern/classes/url-pattern
   /servlet-mapping

if this were the ROOT context, this would map your servlet at /classes
and your form action would need to be defined as

FORM ACTION=/classes method=POST

A more common mapping for servlets is

servlet-mapping
   servlet-namemyservlet/servlet-name
   url-pattern/servlet/myservlet/url-pattern
   /servlet-mapping

which would have a coresponding form tag of

FORM ACTION=/servlet/myservlet method=POST


~Scott

Mark wrote:

I installed Tomcat 4.0.1 under Win 2k using JDK 1.3 and able to run the
example servlets, but not my own.  My html displays and I can execute
my
JSPs, but a POST to a servlet does not work (this app has run under

Re: Newbie - Tomcat 3.3 + Apache + NT

2001-11-26 Thread Xiaofeng Chen

Sorry Larry, I did mean conf/auto/mod_jk.conf. Following your
recommendation, I modified the conf/auto/mod_jk.conf to
set
JkLogLevel debug

and restarted Tomcat and Apache, respectively. After I made a request to the
file /examples/jsp/index.html, it took Internet Explorer
15 minutes to respond with 'Internal Server Error'. I checked the Apache log
file, nothing is in the error.log, but access.log has
GET /examples/jsp/index.html HTTP/1.1 500 607.

- Original Message -
From: Larry Isaacs [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Monday, November 26, 2001 12:31 PM
Subject: RE: Newbie - Tomcat 3.3 + Apache + NT




I assume you mean conf/auto/mod_jk.conf was added to the
end of httpd.conf.  mod_jk.conf-auto is Tomcat 3.2.x only.

I would recommend modifying the conf/auto/mod_jk.conf to
set:

JkLogLevel debug

and check the log after accessing your page through Apache
to see what is happening.

Cheers,
Larry

 -Original Message-
 From: Xiaofeng Chen [mailto:[EMAIL PROTECTED]]
 Sent: Monday, November 26, 2001 12:07 PM
 To: Tomcat Users List; [EMAIL PROTECTED]
 Subject: Re: Newbie - Tomcat 3.3 + Apache + NT


 I did include the mod_jk.conf-auto at the end of my Apache
 configuration. I
 use Tomcat 3.3 and generated the mod_jk.conf-auto using
 'startup jkconf'
 command. Is your Apache/Tomcat running on a NT?

 Jeffrey

 - Original Message -
 From: Eric Dutilleul [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Monday, November 26, 2001 10:35 AM
 Subject: Re: Newbie - Tomcat 3.3 + Apache + NT




 I have actually a Apache / Tomcat Environnement in production for our
 Intranet
 and it works well.
 For your problem you need to include the file
 mod_jk.conf-auto at the end
 of
 your Apache configuration (this file is updated by your
 tomcat server at
 the
 start of the tomcat service). It is this file wich will give
 filters for
 Apache
 (When and how he must let Tomcat taking the request). My
 tomcat Apache work
 perfectly except for not debugged Servlets :-).

 Xiaofeng Chen a écrit :

  I have the same environment as yours. Mine is a little
 better than yours,
  but I still cann't get them work together. For your
 problem, you need to
 run
  'startup jkconf' to generate the mod=5Fjk.conf. And I think
 you do need
 to
  copy the mod=5Fjk.dll into the Apache's modules directory.
 That's where
 my
  luck ends. I can start Tomcat 3.3 and Apache 1.3.22
 separately, but I
 can't
  load a page, such as examples/jsp/index.html, through
 Apache. It just
 hang
  and eventully returned with 'file not found'. If you got
 some progress,
  please let me know
  - Original Message -
  From: Leonardo M. Cunha [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Thursday, November 22, 2001 10:15 AM
  Subject: Newbie - Tomcat 3.3 + Apache + NT
 
  
  
   Hi Folks,
  
   I am using  Apache, Tomcat 3.3, Jre 1.3.1, NT
  
   Apache is installed as a NT service and is running. I
 installed Tomcat
 as
  a
   NT service also and it works well.
  
   When I try to integrate them using the Include
   C:\jakarta-tomcat-3.3\conf\jk\mod_jk.conf-auto on the
 httpd.conf, and
 try
   to restart them (first tomcat and then apache) I cannot
 start apache,
   because of an error.
  
   I took a look on the folder conf/... and there is no
 mod_jk.conf-auto
   generated after running the tomcat service.
  
   In the server.xml  there is ApacheConfig noRoot=true/
  
   Do I need to do any other configurations to make it work? Is it
 necessary
   to
   copy mod_jk.dll to apache/modules?
  
   Would appreciate any help :-)
   
Leonardo
  
  
  
  
   --
   To unsubscribe:
 mailto:[EMAIL PROTECTED]
   For additional commands:
 mailto:[EMAIL PROTECTED]
   Troubles with the list:
 mailto:[EMAIL PROTECTED]
  
 
  --
  To unsubscribe:
 mailto:[EMAIL PROTECTED]
  For additional commands:
 mailto:[EMAIL PROTECTED]
  Troubles with the list:
 mailto:[EMAIL PROTECTED]

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: TC4, does it reuse / pool custom tags?

2001-11-26 Thread Larry Isaacs

This feature was added to Tomcat 3.3 after Tomcat 4.0
had branched off into its own develoment.  I am not
aware that these changes were ever ported to the Tomcat 4.x
branch.  This feature hasn't received a lot of testing,
so you will need to do your own to insure it is working
properly for your application.

Larry

 -Original Message-
 From: DONNIE HALE [mailto:[EMAIL PROTECTED]]
 Sent: Monday, November 26, 2001 3:42 PM
 To: [EMAIL PROTECTED]
 Subject: Re: TC4, does it reuse / pool custom tags?
 
 
 Just to clarify, it's really Jasper that does the JSP 
 compiling and determines whether or not custom tags get 
 reused. There's not much difference, as I understand it, b/w 
 the TC4 and TC3.x versions of Jasper.
 
 Here's a message Craig sent a while back (on the Struts list):
 
 =
 Yes.  For example, Tomcat (more precisely, the Jasper 
 component) does not
 currently recycle custom tag instances -- this is in the 
 process of being
 addressed.  Also, the code generator is very simplistic, does 
 essentially
 no optimizations, and generates more code than it really needs to.
 
 This is not surprising, given Tomcat's heritage as being a reference
 implementation for the specs, rather than a high performance 
 production
 environment.  To the extent that people want to turn Tomcat into the
 latter, it will improve.
 =
 
 Donnie
 
 
  [EMAIL PROTECTED] 11/26/01 03:17PM 
  Ulf == Ulf Dittmer [EMAIL PROTECTED] writes:
 
 Ulf TC can reuse tag instances (since TC 3.3 I think), 
 but doesn't
 Ulf by default. Look for TagPoolManagerInterceptor / 
 in server.xml
 Ulf to turn that feature on.
 
 Craig R. McClanahan just wrote TC4 does not. Does this mean TC3.3
 does/can, but 4.x not? Or only that TC4 does not by default, but can
 be configured to do so?
 
 
 -- 
 Peter Mutsaers  |  Dübendorf| UNIX - Live free or die
 [EMAIL PROTECTED]  |  Switzerland  | Sent via FreeBSD 4.4-stable
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Newbie - Tomcat 3.3 + Apache + NT

2001-11-26 Thread Larry Isaacs

The 15 minutes sounds like it could be a timeout.  AFAIK,
all the mod_jk hangs with Tomcat 3.3 have been caused by
using the mod_jk.dll from Tomcat 3.2.x.  This is a known issue
that is mentioned in the documentation.  Make sure your
mod_jk.dll is the one obtained from:

http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.3/bin/win32/i386/

or is build from the Tomcat 3.3 native source.

Cheers,
Larry

 -Original Message-
 From: Xiaofeng Chen [mailto:[EMAIL PROTECTED]]
 Sent: Monday, November 26, 2001 3:50 PM
 To: Tomcat Users List
 Subject: Re: Newbie - Tomcat 3.3 + Apache + NT
 
 
 Sorry Larry, I did mean conf/auto/mod_jk.conf. Following your
 recommendation, I modified the conf/auto/mod_jk.conf to
 set
 JkLogLevel debug
 
 and restarted Tomcat and Apache, respectively. After I made a 
 request to the
 file /examples/jsp/index.html, it took Internet Explorer
 15 minutes to respond with 'Internal Server Error'. I checked 
 the Apache log
 file, nothing is in the error.log, but access.log has
 GET /examples/jsp/index.html HTTP/1.1 500 607.
 
 - Original Message -
 From: Larry Isaacs [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Monday, November 26, 2001 12:31 PM
 Subject: RE: Newbie - Tomcat 3.3 + Apache + NT
 
 
 
 
 I assume you mean conf/auto/mod_jk.conf was added to the
 end of httpd.conf.  mod_jk.conf-auto is Tomcat 3.2.x only.
 
 I would recommend modifying the conf/auto/mod_jk.conf to
 set:
 
 JkLogLevel debug
 
 and check the log after accessing your page through Apache
 to see what is happening.
 
 Cheers,
 Larry
 
  -Original Message-
  From: Xiaofeng Chen [mailto:[EMAIL PROTECTED]]
  Sent: Monday, November 26, 2001 12:07 PM
  To: Tomcat Users List; [EMAIL PROTECTED]
  Subject: Re: Newbie - Tomcat 3.3 + Apache + NT
 
 
  I did include the mod_jk.conf-auto at the end of my Apache
  configuration. I
  use Tomcat 3.3 and generated the mod_jk.conf-auto using
  'startup jkconf'
  command. Is your Apache/Tomcat running on a NT?
 
  Jeffrey
 
  - Original Message -
  From: Eric Dutilleul [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Monday, November 26, 2001 10:35 AM
  Subject: Re: Newbie - Tomcat 3.3 + Apache + NT
 
 
 
 
  I have actually a Apache / Tomcat Environnement in 
 production for our
  Intranet
  and it works well.
  For your problem you need to include the file
  mod_jk.conf-auto at the end
  of
  your Apache configuration (this file is updated by your
  tomcat server at
  the
  start of the tomcat service). It is this file wich will give
  filters for
  Apache
  (When and how he must let Tomcat taking the request). My
  tomcat Apache work
  perfectly except for not debugged Servlets :-).
 
  Xiaofeng Chen a écrit :
 
   I have the same environment as yours. Mine is a little
  better than yours,
   but I still cann't get them work together. For your
  problem, you need to
  run
   'startup jkconf' to generate the mod=5Fjk.conf. And I think
  you do need
  to
   copy the mod=5Fjk.dll into the Apache's modules directory.
  That's where
  my
   luck ends. I can start Tomcat 3.3 and Apache 1.3.22
  separately, but I
  can't
   load a page, such as examples/jsp/index.html, through
  Apache. It just
  hang
   and eventully returned with 'file not found'. If you got
  some progress,
   please let me know
   - Original Message -
   From: Leonardo M. Cunha [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Sent: Thursday, November 22, 2001 10:15 AM
   Subject: Newbie - Tomcat 3.3 + Apache + NT
  
   
   
Hi Folks,
   
I am using  Apache, Tomcat 3.3, Jre 1.3.1, NT
   
Apache is installed as a NT service and is running. I
  installed Tomcat
  as
   a
NT service also and it works well.
   
When I try to integrate them using the Include
C:\jakarta-tomcat-3.3\conf\jk\mod_jk.conf-auto on the
  httpd.conf, and
  try
to restart them (first tomcat and then apache) I cannot
  start apache,
because of an error.
   
I took a look on the folder conf/... and there is no
  mod_jk.conf-auto
generated after running the tomcat service.
   
In the server.xml  there is ApacheConfig noRoot=true/
   
Do I need to do any other configurations to make it work? Is it
  necessary
to
copy mod_jk.dll to apache/modules?
   
Would appreciate any help :-)

 Leonardo
   
   
   
   
--
To unsubscribe:
  mailto:[EMAIL PROTECTED]
For additional commands:
  mailto:[EMAIL PROTECTED]
Troubles with the list:
  mailto:[EMAIL PROTECTED]
   
  
   --
   To unsubscribe:
  mailto:[EMAIL PROTECTED]
   For additional commands:
  mailto:[EMAIL PROTECTED]
   Troubles with the list:
  mailto:[EMAIL PROTECTED]
 
  --
  To unsubscribe:   
 mailto:[EMAIL PROTECTED]
  For additional commands: 
 mailto:[EMAIL PROTECTED]
  Troubles with the list: 
 mailto:[EMAIL PROTECTED]
 
 
 
  --
  To unsubscribe:   
 mailto:[EMAIL PROTECTED]
  For additional commands: 

Re: installing Tomcat on MAC

2001-11-26 Thread Jeffrey Kunzelman

I'm not sure how it will work in 8.6. Is upgrading to OSX a possibility?

if so then just download the binary and create a .tcsh file in your 
home directory
mine looks like:

setenv CATALINA_HOME /Applications/Tomcat
setenv JAVA_HOME /System/Library/Frameworks/JavaVM.framework/Home
setenv CLASS_PATH /Applications/Tomcat/common/lib/servlet.jar

then it should work just fine.

servlet.jar is what you'll need for JSP's and it comes in the tomcat binary.

there are some pretty good articles on tomcat in

http://www.onjava.com/

search for tomcat.

hope this helps!

Hi - I need instructions on how to install Tomcat on the Mac.  I am running
OS 8.6 on a power Mac.  I saw in your archives that Basil Bourque already
answered this question, but the link he provided,
www.rainwatersoft.com/java4u/tomcat_on_macintosh/index.html
is no longer valid.  Do you have an updated link, or some other place where
I can get instructions?By the way, I have Java developement tools for
writing and running applets already.  Is Tomcat all I need to write and run
JSP's?  Thank you.
Sara Frucht



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


-- 
Jeff

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: installing Tomcat on MAC

2001-11-26 Thread Ulf Dittmer

Sara,
a quick search for tomcat macintosh on www.alltheweb.com reveals that the
new location is
http://www.basilbourque.com/java4u/tomcat_on_macintosh/index.html

You'll need to have Apple's MRJ SDK installed (i.e., the jar file with the
Java compiler needs to be in the folder where all MRJ libraries go,
something like System folder/Extensions/MRJ Libraries/MRJ Classes).
That should be sufficient.

Ulf

-Original Message-
From: sara frucht [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 26, 2001 4:12 PM
Subject: installing Tomcat on MAC


Hi - I need instructions on how to install Tomcat on the Mac.  I am running
OS 8.6 on a power Mac.  I saw in your archives that Basil Bourque already
answered this question, but the link he provided,
www.rainwatersoft.com/java4u/tomcat_on_macintosh/index.html
is no longer valid.  Do you have an updated link, or some other place where
I can get instructions?By the way, I have Java developement tools for
writing and running applets already.  Is Tomcat all I need to write and run
JSP's?  Thank you.
Sara Frucht

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




JDK vs. JRE

2001-11-26 Thread Mihai Gheorghiu

It is my understanding that Tomcat needs JDK in order to compile on-the-fly.
Servlets are classes, already compiled - correct?
Then, if I build a site only with servlets (plus html and applets), would
JRE be enough?
Thank you all.


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: TC 4.0 newbie - servlet app won't run

2001-11-26 Thread Micael Padraig Og mac Grene

Mark, regarding accessing servlets, I will give a few general remarks that
may or may not be helpful.  I would appreciate knowing either way.
-Original Message-
From: Mark [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Date: Monday, November 26, 2001 9:58 AM
Subject: Re: TC 4.0 newbie - servlet app won't run



First, there is more than one way to not only skin a cat but also to access
a servlet.  Let's look at a non-web.xml way.

A.We can do it via URL by prepending the servlet's class name with
/servlet/.  Thus, we can access it as typically noted by
http://localhost:8080/servlet/HelloWorld
B.If the servlet if part of a package, then
http://[serverroot]:8080/servlet/package.name.HelloWorld, where the servlet
is put into server_root/webapps/yourapp/WEB-INF/classes/package/name


Note that we have NOT MENTIONED THE web.xml.  Okay?

I think you are probably actually putting in the servlet reference as a
directory or something.  Are you?  Are you including classes as part of a
package name?  Something like that must be going on.  The directory classes
is not part of the classpath.  I assume you know that.

I keep wondering why you are continuing to use /servlet/ in your web.xml
with /servlet/myservlet.  It makes me think you might be doing something
like actually constructing a servlet directory or something.




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: TC 4.0 newbie - servlet app runs now!!

2001-11-26 Thread Mark

HelloWorldExample.class is under ..examples/WEB-INF/classes.  It almost
seems Tomcat will look for servlets by default in the ..WEB-INF/classes
directory if there's no explicit mapping and when the html reference has a
prefix of servlet/.

For example, now that I *finally* got my app to work using servlet mapping,
I also found if I leave all mapping out of web.xml and have FORM
ACTION=servlet/myservlet METHOD=POST, Tomcat will still find/run the
servlet under ..WEB-INF/classes.  Is that by design?

 

At 12:51 PM 11/26/2001 -0800, you wrote:
Mark, I don't have webapps/examples running, so I need to ask you another
question.  Is there a class file called HelloWorldExample.class in
examples/servlets/?, i.e. examples/servlets/HelloWorldExample.class.  From
what I can tell about your remarks, there should be.

I notice that the only reference to any HelloWorldExample.class in the whole
example app is in that file.  If there is a way to get to the file without a
file where the reference is, I don't know how that would happen.

Micael
-Original Message-
From: Mark [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Date: Monday, November 26, 2001 9:58 AM
Subject: Re: TC 4.0 newbie - servlet app won't run


The examples you mentioned are the JSPs examples. I realize JSPs compile to
servlets, but what about the straight up HelloWorldExample servlet?  I
didn't see mapping for that or the other servlet (vs. JSP) examples in the
web.xml.  Being a newbie, I could very well be missing something so please
bear with me (again).

BTW - I've fiddled with the example servlet index.html to use FORM vs.
href=../servlet/abc method of running servlets.  POST always results in a
404.  GET does however work.

Example:

   FORM ACTION=../servlet/HelloWorldExample method=POST  - doen't
work
   FORM ACTION=../servlet/HelloWorldExample method=GET   - works.

Mark



At 09:30 AM 11/26/2001 -0800, you wrote:
Okay, Mark, Part II, I want to make sure we are communicating properly
before going further.  No sense wasting time.  Your note is not correct
about at least somethings -- for example (no pun intended):

The web.xml for examples/WEB-INF/web.xml DOES have servlet mappings.  So,
I
am not sure what you are looking at.  The servlet SnoopServlet has the
mappings to the patterns /snoop and *.snp under the name snoop.  The
servlet servletToJsp which has the same name, i.e. servletToJsp, has a
mapping to the pattern /servletToJsp.

Micael


-Original Message-
From: Mark [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Date: Monday, November 26, 2001 7:00 AM
Subject: Re: TC 4.0 newbie - servlet app won't run


Thanks for your reply Scott, and thanks to your and Micael's responses I
_believe_ I understand the relationship between the servlet
naming/mapping
and the associated html.  As Micael noted, one could put pudding in the
url-pattern as long as the html was setup as ACTION=pudding.  But...
how
do the example servlets work when they don't seem to have any servlet
mapping in the ..\examples\WEB-INF\web.xml?

Even after all the advice, I *STILL* can't get my app to run - I still
get
a 404 error on the servlet. This seems like such a simple issue but I can
NOT get past it.  I've even gone as far as downloading Tomcat 3.3, with
the
same result. Again, I know Tomcat is parsing my web.xml, because if I
intentionally make a typo, the parser complains when Tomcat is started.

To recap where I am:

(a)  I have myservlet.class in the
$CATALINA_HOME\webapps\myapp\WEB-INF\classes
 directory.  The servlet has no associated package.
(b)  The html is FORM ACTION=/servlet/myservlet method=POST
(c)  My $CATALINA_HOME\webapps\myapp\WEB-INF\web.xml is as follows:

 ?xml version=1.0 encoding=ISO-8859-1?

 !DOCTYPE web-app
 PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
 http://java.sun.com/dtd/web-app_2_3.dtd

 web-app
 servlet
 servlet-namemyservlet/servlet-name
 servlet-classmyservlet/servlet-class
 /servlet
 servlet-mapping
 servlet-namemyservlet/servlet-name
 url-pattern/servlet/myservlet/url-pattern
 /servlet-mapping
 /web-app


Am I still missing something?  This is driving me berserk...

TIA. Mark.



At 12:22 AM 11/22/2001 -0500, you wrote:
Mark,

The servlet tag is used to assign a name to a particular servlet class
file.

 servlet
   servlet-namemyservlet/servlet-name
   servlet-classmyservlet/servlet-class
   /servlet

This would attempt to assign the name 'myservlet' to the class
'myservlet.class.'

The servlet-mapping tag defines the pattern or 'location' of a named
servlet from the root of your context. This means that 

servlet-mapping
   servlet-namemyservlet/servlet-name
   url-pattern/classes/url-pattern
   /servlet-mapping

if this were the ROOT context, this would map your servlet at /classes
and your form action would need to be 

Re: Newbie - Tomcat 3.3 + Apache + NT

2001-11-26 Thread Xiaofeng Chen

Larry, you are right. The mod_jk.dll I downloaded before must be for Tomcat
3.2.x. I redownloaded the mod_jk.dll from the link you listed, everything
works now. Thank you so much about this.

Jeffrey

- Original Message -
From: Larry Isaacs [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Monday, November 26, 2001 3:00 PM
Subject: RE: Newbie - Tomcat 3.3 + Apache + NT




The 15 minutes sounds like it could be a timeout.  AFAIK,
all the mod_jk hangs with Tomcat 3.3 have been caused by
using the mod_jk.dll from Tomcat 3.2.x.  This is a known issue
that is mentioned in the documentation.  Make sure your
mod_jk.dll is the one obtained from:

http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.3/bin/win32/i386
/


or is build from the Tomcat 3.3 native source.

Cheers,
Larry

 -Original Message-
 From: Xiaofeng Chen [mailto:[EMAIL PROTECTED]]
 Sent: Monday, November 26, 2001 3:50 PM
 To: Tomcat Users List
 Subject: Re: Newbie - Tomcat 3.3 + Apache + NT


 Sorry Larry, I did mean conf/auto/mod_jk.conf. Following your
 recommendation, I modified the conf/auto/mod_jk.conf to
 set
 JkLogLevel debug

 and restarted Tomcat and Apache, respectively. After I made a
 request to the
 file /examples/jsp/index.html, it took Internet Explorer
 15 minutes to respond with 'Internal Server Error'. I checked
 the Apache log
 file, nothing is in the error.log, but access.log has
 GET /examples/jsp/index.html HTTP/1.1 500 607.

 - Original Message -
 From: Larry Isaacs [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Monday, November 26, 2001 12:31 PM
 Subject: RE: Newbie - Tomcat 3.3 + Apache + NT




 I assume you mean conf/auto/mod_jk.conf was added to the
 end of httpd.conf.  mod_jk.conf-auto is Tomcat 3.2.x only.

 I would recommend modifying the conf/auto/mod_jk.conf to
 set:

 JkLogLevel debug

 and check the log after accessing your page through Apache
 to see what is happening.

 Cheers,
 Larry

  -Original Message-
  From: Xiaofeng Chen [mailto:[EMAIL PROTECTED]]
  Sent: Monday, November 26, 2001 12:07 PM
  To: Tomcat Users List; [EMAIL PROTECTED]
  Subject: Re: Newbie - Tomcat 3.3 + Apache + NT
 
 
  I did include the mod_jk.conf-auto at the end of my Apache
  configuration. I
  use Tomcat 3.3 and generated the mod_jk.conf-auto using
  'startup jkconf'
  command. Is your Apache/Tomcat running on a NT?
 
  Jeffrey
 
  - Original Message -
  From: Eric Dutilleul [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Monday, November 26, 2001 10:35 AM
  Subject: Re: Newbie - Tomcat 3.3 + Apache + NT
 
 
 
 
  I have actually a Apache / Tomcat Environnement in
 production for our
  Intranet
  and it works well.
  For your problem you need to include the file
  mod_jk.conf-auto at the end
  of
  your Apache configuration (this file is updated by your
  tomcat server at
  the
  start of the tomcat service). It is this file wich will give
  filters for
  Apache
  (When and how he must let Tomcat taking the request). My
  tomcat Apache work
  perfectly except for not debugged Servlets :-).
 
  Xiaofeng Chen a écrit :
 
   I have the same environment as yours. Mine is a little
  better than yours,
   but I still cann't get them work together. For your
  problem, you need to
  run
   'startup jkconf' to generate the mod=5Fjk.conf. And I think
  you do need
  to
   copy the mod=5Fjk.dll into the Apache's modules directory.
  That's where
  my
   luck ends. I can start Tomcat 3.3 and Apache 1.3.22
  separately, but I
  can't
   load a page, such as examples/jsp/index.html, through
  Apache. It just
  hang
   and eventully returned with 'file not found'. If you got
  some progress,
   please let me know
   - Original Message -
   From: Leonardo M. Cunha [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Sent: Thursday, November 22, 2001 10:15 AM
   Subject: Newbie - Tomcat 3.3 + Apache + NT
  
   
   
Hi Folks,
   
I am using  Apache, Tomcat 3.3, Jre 1.3.1, NT
   
Apache is installed as a NT service and is running. I
  installed Tomcat
  as
   a
NT service also and it works well.
   
When I try to integrate them using the Include
C:\jakarta-tomcat-3.3\conf\jk\mod_jk.conf-auto on the
  httpd.conf, and
  try
to restart them (first tomcat and then apache) I cannot
  start apache,
because of an error.
   
I took a look on the folder conf/... and there is no
  mod_jk.conf-auto
generated after running the tomcat service.
   
In the server.xml  there is ApacheConfig noRoot=true/
   
Do I need to do any other configurations to make it work? Is it
  necessary
to
copy mod_jk.dll to apache/modules?
   
Would appreciate any help :-)

 Leonardo
   
   
   
   
--
To unsubscribe:
  mailto:[EMAIL PROTECTED]
For additional commands:
  mailto:[EMAIL PROTECTED]
Troubles with the list:
  mailto:[EMAIL PROTECTED]
   
  
   --
   To 

Re: Location of jdbc driver

2001-11-26 Thread David Smith

I agree ... better docs would be great, but I for one won't be making too 
much noise unless I have the time to contribute them.  I've followed this 
list for about 4 months now and have learned a lot.

For apps deployed with TC 3.3 and 4, the directory tree you laid out doesn't 
follow spec.  It should look more like this:

myApp -- myjsppage.jsp
   -- other jsps and static content (ie .gif, .jpg, etc)
   -- WEB-INF
--classes
--lib
   --mm.mysql-2.0.6.jar

Also, let's not confuse applets and servlets.  I believe that's happening a 
little in this thread.  Applets (to my understanding) are executed on the 
client and as such are available to the client like any .html file.  Tomcat 
isn't involved in that arena.  Servlets on the other hand, are only executed 
on the server and should be under WEB-INF (except .jsp files) either in a 
.jar file under lib or in a package structure under classes.

For servlets, the JDBC driver for mysql as downloaded needs to be unjarred 
and the .jar file within placed in either 
  (a) WEB-INF/lib if it's used only by the one app 
  (b) in TOMCAT_HOME/lib for use by all apps or 
  (c) TOMCAT/common/lib for all apps and TC (might be TC 4 only).  

I wouldn't recommend unjarring the JDBC driver itself into a set of .class 
files.  That's just too messy to even contemplate unless all other options 
are exhausted.  After placing the .jar file, restart Tomcat so it can find 
the jar file.

Should work after that.  Hope this helps.

--David Smith

On Wednesday 21 November 2001 09:23 pm, you wrote:
 Hi ya,

 Let's share this with the others ;-), and I think this should be mentioned
 in the docs.

 Anyway, here how I do it, I place the *driver directory tree* in the
 directory as the other class files.  For example, my servlet application is
 called, myApplet, and I put all the class files for this app in myClasses,
 so the directory tree will look like this,

 myApplet--myApplet.jsp

   myClasses

--(class files for the applet)

--org(this is for the MySQL driver)

  gjt

mm
 [...]

 See the deep directory tree for the driver, but all you need to do is unjar
 it.  If you use WinZip, right click on the driver file and unzip (unjar)
 it. I hope you will find this useful.

 - Original Message -
 From: Satish Talim [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, November 20, 2001 3:30 PM
 Subject: Location of jdbc driver

  Hi,
 
  I am facing the same problem. I am not sure where I should place the
  mySQL jdbc driver files. What has been the solution?
 
  My servlet uses JDBC and throws a page with an applet. Then via
  HttpURLConnection I have to do applet/servlet communication...
 
  Regards,
 
  Amit Lonkar
  - Original Message -
  From: Yiu Wing [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Monday, November 19, 2001 12:41 AM
  Subject: [repost] loading class files
 
Sorry guys this is a repost. But after doing numerous google search
and wading through the docs, I still can't solve my problem with
regard to loading applet classes. I sincerely hope some of you can
help me this
 
  time,
 
I desperately need to get this working. The same message is as follow.
   
Hello All,
   
I'm writing an applet that uses JDBC to connect to MySQL server , and

 the

applet is embedded in a jsp. I'm new to this, so I went on and read
the docs that come with Tomcat. I'm also using CVS and ant for the
 
  development.
 
The source code layout of my project is as suggested in the docs,
which

 is

project name
   
|- docs
|- src
|- web
|--WEB-INF
   
In the project/web/WEB-INF directory, do I have to create a classes
and
 
  lib
 
subdirectories? The reason I ask this is because the class loader,
from
 
  the
 
Tomcat or web browser, can't find the class files. But they're clearly

 in

the web directory, whose structure is as,
   
project
   
| login.jsp (that's the jsp file that embeds the applet)
| WEB-INF
|--- classes (this directory has all
 
  the
 
needed class files)
   
|--- lib (where the MySQL driver is
   
stored)
   
The Tomcat docs says the classes and lib dir are made visible to
other classes within your particular web application, but why my
class files can't be loaded there? If I move all the class files to
the top of the
 
  web
 
directory, and change code=MyClass.class to code=MyClass in
the
 
  jsp
 
file, then everything seems to working OK. Oh, yeah, almost forgot, I

 also

need to copy the whole directory tree for the driver to the web

 directory

  as
 
well. Setting the classpath for the 

tomcat.pid: cannot create

2001-11-26 Thread Harley Milne

Hi,

I am experiening the above problem when starting tomcat.
Does any one have an idea what is going on.  I though it might have
something to do with permissions, but the dircoties are 775


hmilne@thebollocks./startup.sh 
[1] 755
hmilne@thebollocksUsing classpath: ./../lib/tomcat.jar
Using JAVA_HOME: /u/hmilne/j2sdk1_3_1
Using TOMCAT_HOME: /usr/local/jakarta-tomcat-3.3
./tomcat.sh: /usr/local/jakarta-tomcat-3.3/logs/tomcat.pid: cannot
create

[1]Exit 1 ./startup.sh
hmilne@thebollocksEmbededTomcat: Init time 399
EmbededTomcat: Startup time 0

hmilne@thebollocks./shutdown.sh
Using classpath: ./../lib/tomcat.jar
Using JAVA_HOME: /u/hmilne/j2sdk1_3_1
Using TOMCAT_HOME: /usr/local/jakarta-tomcat-3.3
Stopping Tomcat.
Can't read /usr/local/jakarta-tomcat-3.3/conf/ajp12.id
hmilne@thebollocksll

-rw-rw-r--   1 hmilne   staff   5938 Oct 21 12:37 KEYS
-rw-rw-r--   1 hmilne   staff   2817 Oct 21 12:37 LICENSE
drwxrwxr-x   2 hmilne   staff   8192 Oct 21 12:38 bin/
drwxrwxr-x   6 hmilne   staff   8192 Oct 21 12:38 conf/
drwxrwxr-x   4 hmilne   staff   8192 Oct 21 12:38 doc/
drwxrwxr-x   5 hmilne   staff   8192 Oct 21 12:38 lib/
drwxrwxr-x   2 hmilne   staff 96 Oct 21 12:38 logs/
drwxrwxr-x   2 hmilne   staff 96 Oct 21 12:38 modules/
drwxrwxr-x   4 hmilne   staff 96 Oct 21 12:37 native/
drwxrwxr-x   2 hmilne   staff 96 Oct 21 12:37 webapps/


Help would very much be appreciated
Thx
H

--
Sun ONE User Experience Architect
Sun Microsystems
Phone:  408-276-6253
Fax:240-220 7359
E-Mail: [EMAIL PROTECTED]





(URGENT) Can't upload files to servlets in Tomcat 4.01 w/mod_webapp apache

2001-11-26 Thread Marc Boorshtein

I need some help.  I am running Apache 1.3.14,
mod_webapp and tomcat 4.01.  My servlets perform file
uploads, and while text files work fine, binary do
not.  I think the issue is mod_webapp, but I'm not
entirly sure.  I know that it isn't tomcat because I
tried using tomcat's httpd server and everything
worked fine.  I'm sure it's not apache because I used
the servlets with apache in conjunction with JRun and
everything worked.  PLEASE HELP.

Thanks
Marc Boorshtein

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: TC 4.0 newbie - servlet app runs now!!

2001-11-26 Thread Micael Padraig Og mac Grene

Mark wrote:

For example, now that I *finally* got my app to work using servlet mapping,
I also found if I leave all mapping out of web.xml and have FORM
ACTION=servlet/myservlet METHOD=POST, Tomcat will still find/run the
servlet under ..WEB-INF/classes.  Is that by design?

Mark,

Congradulations, nice when things work well,

I will say a few things that you can get from an excellent book Java Servlet
Programming by Jason Hunter and William Crawford (O'Reilly).

First, do not assume, because you will be wrong, that / is required in the
mapping pattern.  You are using a particular kind of mapping.

Second, in answer to your question, indeed it is.  I hope my last little
note made that clearer.  I like to keep my applications essentially dark to
the outside world except in very controlled ways, so I put everything inside
WEB-INF except my index.jsp and make all servlets accessible through clever,
;-) , patterns used in servlet mappings.   I use a Model 2 multi-tier
architecture and run EVERYTHING first through a controller servlet that
monitors all outside access.

A general point about web.xml and servlet tags.  Servlets that you want to
be registered with the server and receive special treatment get that through
the web.xml.  That is what the servlet tags are for.  Only one example of
such treatments is that we can set up URL patterns that will invoke the
registered servlet.  There are lots of good reasons for doing this.  For
example, you could use this to have a servlet preplace an existing JSP page
at any given URL, so all bookmarks and links to the page continue to work.
Kewl, eh?  I like to use it to hide things and to thereby enhance security.
You can have your servlets invoked by dinky.html, if you like.

Mappings have varieties:

1.Explicit Mappings

 /whatever

These contain no wildcards.  This is useful when replacing an
existing page.

2.Path Prefix Mappings

/something/database/*

These maps always begint with a / and end with a /*.  This
allows a servlet to control an entire virtual hierarchy like a database app.

3.Extension Mappings

*.wm or *.jsp

These begin with * and handle all requests ending with the
subsequent prefix.  David Geary uses this in his app provided in the 12th
chapter of his new book on taglibs in order to make sure all urls ending in
.do go to his controller ActionServlet of a Model 2 architecture.

4.Default Mapping

/

This provides the servlet to be used if no other servlet
matches.  You could get the same sort of behavior by /* but this has the
advantage of coming after extension mappings are done.

If there are collisions, the precedence is the order indicated above.

Okay, last thing.  With Tomcat server, server_root/webapps/ROOT is the
default context mapped to the root path /.  THIS IS IMPORTANT.  ;-)  This
means that servlets placed under the servlets placed under the
server_root/webapps/ROOT/WEB-INF/classes can be accessed using the path
/servlet/HelloWorldExample.  HOWEVER, this default context mapping can be
changed and new mappings can be added by editing the
server_root/conf/server.xml serverwide configuration file.  Other servers
handle this differently.  Okay dokay?





--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: url relative to directory path?

2001-11-26 Thread Erwin Ambrosch

Take a look at the servlet-mapping tag of the web.xml file.
With this tag you can specify how to access yopur servlet.

 servlet-mapping
   servlet-nameservletname/servlet-name
   url-pattern/servletname/url-pattern
 /servlet-mapping

Erwin

Antoni Unkovich wrote:

Hello from downunder (New Zealand),

I'm new to tomcat and java but have successfully installed Tomcat 3.3 on
Windows 2000 server in conjunction with IIS and the redirector plug-in -
which I have working fine.

My servlet is in this directory: 
E:\tomcat\webapps\qbus\WEB-INF\Classes\qbus\servletname.class

to access it I use this url:

www.qbus.co.nz/qbus/servlet/servletname

What do I need to change to access it from:

www.qbus.co.nz/servletname

Thanks in advance
Antoni Unkovich



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]






--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: url relative to directory path?

2001-11-26 Thread Durham David Cntr 805CSS/SCBE



One idea is to make the application your root context.  You will still
need to use http://www.qbus.co.nz/servlet/servletName or else do the
mappings.  If you don't like maintaining the list, write a script to
maintain it for you.  Should be no problem removing and adding mappings
considering this is an xml doc.


David Durham

-Original Message-
From: Erwin Ambrosch [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 26, 2001 4:34 PM
To: [EMAIL PROTECTED]
Subject: Re: url relative to directory path?


Take a look at the servlet-mapping tag of the web.xml file.
With this tag you can specify how to access yopur servlet.

 servlet-mapping
   servlet-nameservletname/servlet-name
   url-pattern/servletname/url-pattern
 /servlet-mapping

Erwin

Antoni Unkovich wrote:

Hello from downunder (New Zealand),

I'm new to tomcat and java but have successfully installed Tomcat 3.3
on
Windows 2000 server in conjunction with IIS and the redirector plug-in
-
which I have working fine.

My servlet is in this directory: 
E:\tomcat\webapps\qbus\WEB-INF\Classes\qbus\servletname.class

to access it I use this url:

www.qbus.co.nz/qbus/servlet/servletname

What do I need to change to access it from:

www.qbus.co.nz/servletname

Thanks in advance
Antoni Unkovich



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]






--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Connection aborted by peer: socket write error

2001-11-26 Thread Micky I. Mimo

Tomcat: 3.2

OS: windows 2000

JDK: 1.3.1

IE:5.5

We are getting a Connection aborted by peer: socket write error. Does
anyone know how to resolve this issue? The error log output is below. I
did a scan of the tomcat archives and found that a lot of posts show
that this is a known problem. I would like to resolve this problem
without upgrading to tomcat 3.3  or changing our browser from IE. The
funny thing is that we do not see this error occurring on our Solaris or
Linux servers. But on our windows 2000 systems the error eventually
kills the tomcat session. Anyone's help is appreciated. My understanding
is that the problem is caused by lack of support of HTTP Status 304 in
Tomcat 3.2 stand alone
server Is this so? Any ideas on how to work around this issue with out
moving to Tomcat 4.0?


[java] Forwarding to : /error.jsp

[java] 2001-11-21 10:57:05 - Ctx( /BlueXchange ): IllegalStateException
in: R( /BlueXchange + /error.jsp + null) OutputS

tream is already being used for this request

[java] 2001-11-21 10:57:05 - Ctx( /BlueXchange ): IOException in: R(
/BlueXchange + /error.jsp + null) Connection reset

by peer: socket write error

[java] 2001-11-21 10:57:05 - Ctx( /BlueXchange ): IOException in: R(
/BlueXchange + /error.jsp + null) Connection reset

by peer: socket write error

[java] 2001-11-21 10:57:05 - Ctx( /BlueXchange ): IOException in: R(
/BlueXchange + /error.jsp + null) Connection reset

by peer: socket write error

[java] 2001-11-21 10:57:05 - Ctx( /BlueXchange ): IOException in: R(
/BlueXchange + /error.jsp + null) Connection reset

by peer: socket write error


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: installing Tomcat on MAC

2001-11-26 Thread sw

Sara,

Personally I would suggest using MacOS X for Java Development, but 
since you either can't or don't want to I would suggest looking at 
this thread from the Apple Java Development Archives:
http://lists.apple.com/archives/java-dev/2000/Sep/v01.n1900.html

The username/password both are: archives

To search the lists served by Apple if this dosen't answer your 
question ( I know it has been discussed a few times in the past) then 
go to:
http://lists.apple.com/search

Make sure you select java-dev from the list to search box.

Hope that this helps.

-Stephen




Hi - I need instructions on how to install Tomcat on the Mac.  I am running
OS 8.6 on a power Mac.  I saw in your archives that Basil Bourque already
answered this question, but the link he provided,
www.rainwatersoft.com/java4u/tomcat_on_macintosh/index.html
is no longer valid.  Do you have an updated link, or some other place where
I can get instructions?By the way, I have Java developement tools for
writing and running applets already.  Is Tomcat all I need to write and run
JSP's?  Thank you.
Sara Frucht



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

-- 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: TC 4.0 newbie - servlet app won't run

2001-11-26 Thread William Tansill

Look in server.xml.  You'll see that it has the following lines:

!-- Tomcat Examples Context --
Context path=/examples docBase=examples debug=0
 reloadable=true
  Logger className=org.apache.catalina.logger.FileLogger

.

It goes on for quite a while longer, but I believe that that's the answer to
your question.  I'm struggling to understand as a newbie myself...

-Original Message-
From: Mark [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 26, 2001 10:03 AM
To: Tomcat Users List
Subject: Re: TC 4.0 newbie - servlet app won't run


Thanks for your reply Scott, and thanks to your and Micael's responses I
_believe_ I understand the relationship between the servlet naming/mapping
and the associated html.  As Micael noted, one could put pudding in the
url-pattern as long as the html was setup as ACTION=pudding.  But... how
do the example servlets work when they don't seem to have any servlet
mapping in the ..\examples\WEB-INF\web.xml?

Even after all the advice, I *STILL* can't get my app to run - I still get
a 404 error on the servlet. This seems like such a simple issue but I can
NOT get past it.  I've even gone as far as downloading Tomcat 3.3, with the
same result. Again, I know Tomcat is parsing my web.xml, because if I
intentionally make a typo, the parser complains when Tomcat is started.

To recap where I am:

(a)  I have myservlet.class in the
$CATALINA_HOME\webapps\myapp\WEB-INF\classes
 directory.  The servlet has no associated package.
(b)  The html is FORM ACTION=/servlet/myservlet method=POST
(c)  My $CATALINA_HOME\webapps\myapp\WEB-INF\web.xml is as follows:

 ?xml version=1.0 encoding=ISO-8859-1?

 !DOCTYPE web-app
 PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
 http://java.sun.com/dtd/web-app_2_3.dtd;

 web-app
 servlet
 servlet-namemyservlet/servlet-name
 servlet-classmyservlet/servlet-class
 /servlet
 servlet-mapping
 servlet-namemyservlet/servlet-name
 url-pattern/servlet/myservlet/url-pattern
 /servlet-mapping
 /web-app


Am I still missing something?  This is driving me berserk...

TIA. Mark.



At 12:22 AM 11/22/2001 -0500, you wrote:
Mark,

The servlet tag is used to assign a name to a particular servlet class
file.

   servlet
   servlet-namemyservlet/servlet-name
   servlet-classmyservlet/servlet-class
   /servlet

This would attempt to assign the name 'myservlet' to the class
'myservlet.class.'

The servlet-mapping tag defines the pattern or 'location' of a named
servlet from the root of your context. This means that 

servlet-mapping
   servlet-namemyservlet/servlet-name
   url-pattern/classes/url-pattern
   /servlet-mapping

if this were the ROOT context, this would map your servlet at /classes
and your form action would need to be defined as

FORM ACTION=/classes method=POST

A more common mapping for servlets is

servlet-mapping
   servlet-namemyservlet/servlet-name
   url-pattern/servlet/myservlet/url-pattern
   /servlet-mapping

which would have a coresponding form tag of

FORM ACTION=/servlet/myservlet method=POST


~Scott

Mark wrote:

I installed Tomcat 4.0.1 under Win 2k using JDK 1.3 and able to run the
example servlets, but not my own.  My html displays and I can execute my
JSPs, but a POST to a servlet does not work (this app has run under Forte
and VA Java in the past).   I get a 404 error with the requested resource
(/myservlet) is not available. Since the examples work, I have to assume
it's something in my configuration. Any help figuring out why the servlet
won't run would be *greatly* appreciated.  I suspect it's something
simple/braindead on my part.


o  My directory structure for the app:
   TomcatHome
|
+--webapps
  |
  +--myapp\.jsp, .html .gif
 |
 +--WEB-INF\web.xml
   |
   +--classes\.class files


o  My html POST stmt. I've tried various path prefixes to myservlet, eg

   classes/myservlet.  As with the Tomcat examples, this servlet has no
   package:

FORM ACTION=/myservlet method=POST


o  My web.xml - I know Tomcat's seeing/parsing this because if I
deliberately
   make a typo I get an error upon startup:

 ?xml version=1.0 encoding=ISO-8859-1?
 !DOCTYPE web-app
   PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
   http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
   !-- Define servlets that are included in the application --
   servlet
   servlet-namemyservlet/servlet-name
   servlet-classmyservlet/servlet-class
   /servlet
   servlet-mapping
   servlet-namemyservlet/servlet-name
   url-pattern/classes/url-pattern
   /servlet-mapping
/web-app


o  Update to server.xml

   Context path=/myapp 

OT: PostScript file

2001-11-26 Thread Sheila Ratnam

Hi all,

Sorry for this off-the-topic question. But I desperately need help on this.
How can one read a PostScript file on Windows platform?

TIA,
Sheila



_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




java.util.SortedMap ClassNotFound in Applet

2001-11-26 Thread Vijayanand Sukumar

Hi,
  I wrote a Applet which uses java.util.SortedMap and java.util.ArrayList
and placed it in Root Context. When I try to view I see an Exception in the
Java Console as 

java.lang.ClassNotFoundException: java.util.SortedMap
at com/ms/vm/loader/URLClassLoader.loadClass
at java/lang/ClassLoader.loadClassInternal
at Apriori.paint
at com/ms/awt/WComponentPeer.doClearAndPaint
at com/ms/awt/WComponentPeer.paintNode
at com/ms/ui/windowmanager/PaintRequest.run
at com/ms/ui/windowmanager/RunnableMessage.run
at com/ms/awt/WSystemQueue.getMessage
at com/ms/awt/WEventQueue.getNextEvent
at java/awt/EventDispatchThread.run

Do I Need to place some jar files in the directory of Applet ?

Thanks For Helping 


Vijay

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: PostScript file

2001-11-26 Thread Evan Swanson

You need a postscript view application.

Try ZDNET.com

-Original Message-
From: Sheila Ratnam [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 26, 2001 4:15 PM
To: [EMAIL PROTECTED]
Subject: OT: PostScript file


Hi all,

Sorry for this off-the-topic question. But I desperately need help on this.
How can one read a PostScript file on Windows platform?

TIA,
Sheila



_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




  1   2   >