RE: apache + mod_SSL + tomcat

2002-02-06 Thread Anton Brazhnyk

Hi,

 -Original Message-
 From: Cressatti, Dominique [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 05, 2002 7:38 PM
 To: Tomcat Users List
 Subject: apache + mod_SSL + tomcat
 
 
 Hi,
  
 I've got apache + mod_SSL + tomcat working
 (I don't deserve that much credit as mod_ssl worked
 right out the box) but I wonder couldn't the security bypassed,
 like for example accessing the page on port 8080 instead of port
 443 ?
  

If you leave Tomcat listening on 8080 then yes it can be.
So, you just have to modify your server.xml and disable
HttpConnector.

 Dom
 

Anton

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




welcome-file behavior

2002-02-06 Thread Guy McArthur

My web-app is set with a welcome-file-list, index.xml is the first 
welcome-file entry.

Tomcat [4.0b2] does a HTTP 302 (temporary redirect) to the welcome-file 
for requests that do not specify a file. This is contrary to the behavior 
of almost every web server, ever. E.g. Apache et al will just send the 
welcome file. At the least, Tomcat's behavior is annoying because the 
client gets rewritten URL, at the most it's bad form since if the 
welcome-file changes in the future, links  bookmarks would break.

So, is it possible to change this behavior [without an additional
front-end server or proxy]?

Yes, I realize the 2.3 servlet spec says  will be returned as [rewritten 
url].


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




AW: welcome-file behavior

2002-02-06 Thread Ralph Einfeldt

Just 2 ideas:
- Inputfilter that rewrites the request to your index file.
- Output filter that returns the index file instead of the redirect.

Which option is better for you, depends on the architecture of your
application. (I guess that for most applications the second option
is easier.)

 -Ursprüngliche Nachricht-
 Von: Guy McArthur [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 6. Februar 2002 09:29
 An: Tomcat Users List
 Betreff: welcome-file behavior
snip/
 Tomcat [4.0b2] does a HTTP 302 (temporary redirect) to the 
 welcome-file 
snip/
 So, is it possible to change this behavior [without an additional
 front-end server or proxy]?
snip/

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




jdbc realm

2002-02-06 Thread Alex Johansson


Hi I use tomcat 3.2 and wounder how 
I can set up jdbc realm for each tomcat application.
Eeach application use different databases.

Today it seems that you only can have one jdbc realm instance for 
all the applications.

In server.xml the syntax is for tomcat 3.2
RequestInterceptor 
className=org.apache.tomcat.request.JDBCRealm 
debug=99 
driverName=org.gjt.mm.mysql.Driver 
connectionURL=jdbc:mysql://localhost/dbName 
userTable=person userNameCol=email 
userCredCol=password userRoleTable=groupmember 
roleNameCol=RoleName
/



Regards
Alex






__
 Alex Johansson System Developer @ TechLex
 web: www.techlex.se
 mail:  [EMAIL PROTECTED]
 phone: 0708-29 26 01 


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




Re: How can I customize the apache 404

2002-02-06 Thread Liam Holohan

Clay Mitchell wrote:

 http://builder.cnet.com/webbuilding/pages/Servers/Apache/ss02d.html
 
 -Original Message-
 From: Galbayar [mailto:[EMAIL PROTECTED]] 
 Sent: Tuesday, February 05, 2002 11:19 PM
 To: Tomcat Users List
 Subject: How can I customize the apache 404
 
 
  
 How can I customize the apache 404
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
Not a difficult problem ...

In apache httpd.conf you can use the ErrorDocument directive

I have a number of virtual hosts in a conf file linking off my main 
httpd.conf...

i.e

the last line in httpd.conf is ...
Include /home/wasp/modules/apache/1.3.22/conf/vhosts.conf
(this keeps httpd.conf clean and adding a new virtual host means 
ammending vhosts.conf not the main server configuration...

the entry for a virtual host (e.g www.test.com) in vhosts.conf is ...

VirtualHost 10.20.32.13
 ServerAdmin [EMAIL PROTECTED]
 DocumentRoot /home/wasp/vhosts/www.test.com/htdocs
 ServerName www.test.com
 TransferLog /home/wasp/vhosts/www.test.com/logs/www.test.com-xferlog
 ErrorLog /home/wasp/vhosts/www.test.com/logs/www.test.com-errorlog

# these lines are for linking tomcat to apache for serving jsp pages
 WebAppConnection www.test.com.warpConnection-8009 warp 10.20.32.13:8009
 WebAppDeploy app-example www.test.com.warpConnection-8009 /app-example

# this is what you have to do for custom error pages etc..
 ErrorDocument 500 /errors/500.html
 ErrorDocument 404 /errors/404.html
 ErrorDocument 401 /errors/401.html
 ErrorDocument 403 /errors/403.html
/VirtualHost


in /home/wasp/vhosts/www.test.com/htdocs create a directory called 
errors and put your custom html files in there and call them 404.html 
500.html etc...  bounce the server and type in a url for the site that 
you know will generate a 404

hope this helps ...
Liam :-)


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




Access Denied Error

2002-02-06 Thread Vinay Urs

Hello there,

We have an application where IIS 4.0 is connected to
Tomcat 4.0.1 with SQL Server 7.0 as the database.
Tomcat is started up with the security policy where in
the class directory is mentioned.

We encounter the following error when the application
tries to connect to the database:

java.security.AccessControlException: access denied
(java.net.SocketPermission 10.20.4.100:1433
connect,resolve)
at
java.security.AccessControlContext.checkPermission(AccessControlContext.java:272)
at
java.security.AccessController.checkPermission(AccessController.java:399)
at
java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
at
java.lang.SecurityManager.checkConnect(SecurityManager.java:1044)
at java.net.Socket.(Socket.java:262)
at java.net.Socket.(Socket.java:100)
at com.internetcds.jdbc.tds.Tds.(Tds.java:177)
at
com.internetcds.jdbc.tds.Connection.allocateTds(Connection.java:333)
at
com.internetcds.jdbc.tds.Connection.(Connection.java:169)
at
com.internetcds.jdbc.tds.Driver.connect(Driver.java:257)
at
java.sql.DriverManager.getConnection(DriverManager.java:517)
at
java.sql.DriverManager.getConnection(DriverManager.java:177)
at
com.genisys.codwap.utilities.DBConnection.open(DBConnection.java:69)
at
org.apache.jsp.Login$jsp._jspService(Login$jsp.java:178)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:1264)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:1264)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.access$0(ApplicationFilterChain.java:197)
at
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:176)
at java.security.AccessController.doPrivileged(Native
Method)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:172)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
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.StandardContextValve.invoke(StandardContextValve.java:215)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
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.StandardContext.invoke(StandardContext.java:2366)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
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:566)
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:1005)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1098)
at java.lang.Thread.run(Thread.java:484)

We have given the socket privileges for the IP address
and port no in the catalina.policy. But this does not
solve the above problem.

Thanks in advance,

Vinay

__
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

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




Re: How can I customize the apache 404

2002-02-06 Thread David Cassidy

of course you could make your 404 page a jsp page
then you could do a search of your site for the object that they were
really after ...

;0

D

Liam Holohan wrote:

 Clay Mitchell wrote:

  http://builder.cnet.com/webbuilding/pages/Servers/Apache/ss02d.html
 
  -Original Message-
  From: Galbayar [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, February 05, 2002 11:19 PM
  To: Tomcat Users List
  Subject: How can I customize the apache 404
 
 
 
  How can I customize the apache 404
 
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 
 Not a difficult problem ...

 In apache httpd.conf you can use the ErrorDocument directive

 I have a number of virtual hosts in a conf file linking off my main
 httpd.conf...

 i.e

 the last line in httpd.conf is ...
 Include /home/wasp/modules/apache/1.3.22/conf/vhosts.conf
 (this keeps httpd.conf clean and adding a new virtual host means
 ammending vhosts.conf not the main server configuration...

 the entry for a virtual host (e.g www.test.com) in vhosts.conf is ...

 VirtualHost 10.20.32.13
  ServerAdmin [EMAIL PROTECTED]
  DocumentRoot /home/wasp/vhosts/www.test.com/htdocs
  ServerName www.test.com
  TransferLog /home/wasp/vhosts/www.test.com/logs/www.test.com-xferlog
  ErrorLog /home/wasp/vhosts/www.test.com/logs/www.test.com-errorlog

 # these lines are for linking tomcat to apache for serving jsp pages
  WebAppConnection www.test.com.warpConnection-8009 warp 10.20.32.13:8009
  WebAppDeploy app-example www.test.com.warpConnection-8009 /app-example

 # this is what you have to do for custom error pages etc..
  ErrorDocument 500 /errors/500.html
  ErrorDocument 404 /errors/404.html
  ErrorDocument 401 /errors/401.html
  ErrorDocument 403 /errors/403.html
 /VirtualHost

 in /home/wasp/vhosts/www.test.com/htdocs create a directory called
 errors and put your custom html files in there and call them 404.html
 500.html etc...  bounce the server and type in a url for the site that
 you know will generate a 404

 hope this helps ...
 Liam :-)

 --
 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_webapp.so linking problem on AIX 4.3

2002-02-06 Thread Liam Holohan

Bhaskar Mulpuri wrote:

 I am building mod_webapp.so and I am running into the following linking
 problem.
 
 ld -H512 -T512 -bhalt:4 -bM:SRE -bnoentry
 -bI:/usr/local/apache/libexec/httpd.exp -lc -lm -liconv -lnsl -ldl -o
 mod_webapp.so mod_webapp.o
 /usr/local/jakarta-tomcat-4.0.1/webapp-module-1.0.1-tc401/lib/libwebapp.
 a usr/local/jakarta-tomcat-4.0.1/webapp-module-1.0.1-tc401/lib/libapr.a
 ld: 0711-244 ERROR: No csects or exported symbols have been saved.
 apxs:Break: Command failed with rc=8
 
 The compilation went thru without any errors. I am building on AIX 4.3.
 I am trying to integrate Tomcat 4.0.1 with Apache 1.3.23.
 
 Can anybody help me figure out what this error is and how I can fix
 this?
 
 Thanks in advance,
 Bhaskar
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


My two cents...
Don't know if it will help you but here it goes ...



About building mod_webapp

I had hell building mod_webapp as I was using apache 1.3.22 with ssl (I 
was building a httpsd exe )  Trying to build the .so file was hell as 
the make kept failing on me. (I think the patching of open ssl into 
apache wrecks the apxs script, if done like me in a hurry).  The 
back-flip manoeuvre I had to do was create a clean install of apache in 
a tmp directory and build mod_webapp from the generated apxs script ..

to build apache in a quick and dirty fashion (To ensure a clean apxs 
script ... I wrote the following script and ran it as root in the 
unpacked apache src directory..


#!/bin/bash
./configure --prefix=/home/wasp/modules/apache/1.3.22 
--logfiledir=/home/wasp/modules/apache/1.3.22/logs --enable-module=most 
--enable-shared=max --enable-suexec 
--suexec-docroot=/home/wasp/vhosts/adminsite
--suexec-logfile=/home/wasp/logs/suexec.log --suexec-umask=077
make
echo DONE
make install


That should make you a clean apache and apxs script in 
/home/wasp/modules/apache/1.3.22/bin

(note I already had tomcat 4 installed in /home/wasp/modules/tomcat/4.0/)

I then wrote a script to build the mod_webapp.so

#!/bin/bash
echo building mod_webapp
./support/buildconf.sh
./configure --with-apxs=/home/wasp/modules/apache/1.3.22/bin/apxs 
--with-apr=/home/wasp/SRC/webapp-module-1.0.1-tc401/apr/ 
--with-java=/usr/java/jdk1.3.1_01/bin/java 
--with-tomcat=/home/wasp/modules/tomcat/4.0/
make
echo done ..

once the mod_webapp.so was built  I copied it into the libexec directory 
of my production apache.  Worked first time after that.  The pain I 
found was actually building mod_webapp.so not integrating it 


Regards...
Liam


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




Is it possible to prevent Tomcat from creating a response?

2002-02-06 Thread vegard . myrland

I'm creating a single sign on plugin to different http servers using
Tomcat.

Functionality: If the user is not authenticated or authorized for the
requested resource the user is redirected to another site for log in.
If the user is authorized for the requested resource, the Tomcat module has
done his part. The request should be returned to the http server and let
the content delivery system(an application server, CGI scripts, etc) create
the response.

My problem is that I'm not able to tell the http server that Tomcat don't
want to create the response. For example: With Apache http server I think
the clue is to make mod_webapp return DECLINED instead of OK, but does
anyone know how this can be done from Tomcat?

Or another way this can be done?

thanks,

Vegard

--
Vegard Myrland

Accenture
Communication  High Tech
P.O. Box 550 Skøyen, NO-0214 Oslo, Norway
Phone (direct): +47 22 12 65 70
Phone (mobile): + 47 952 47 047
Fax: + 47 22 12 60 00
e-mail: [EMAIL PROTECTED]


This message is for the designated recipient only and may contain
privileged, proprietary, or otherwise private information.  If you have
received it in error, please notify the sender immediately and delete the
original.  Any other use of the email by you is prohibited.


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




Get Document.Url

2002-02-06 Thread Odo
How can I get in my servlet Javascript's "document.URL" variable?
How it be scripted in servlet?




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


Re: Get Document.Url

2002-02-06 Thread Galbayar
JavaScript is Server Side
Servlet is Server Side use getRequestURI()


- Original Message - 
From: "Odo" [EMAIL PROTECTED]
To: "Tomcat Users List" [EMAIL PROTECTED]
Sent: Wednesday, February 06, 2002 18:28
Subject: Get Document.Url


 How can I get in my servlet Javascript's "document.URL" variable?
 How it be scripted in servlet?
 
 
 
 
 --
 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: Is it possible to prevent Tomcat from creating a response?

2002-02-06 Thread Janek Bogucki

Would creating a redirection work after successful A  A work?

HTTP/1.0 302 Document follows
Location:  http://xxx.accenture.com/new-location/index.html

Will this code be executed within a webapp or within a modified version of mod_webapp?

-Janek

 --- [EMAIL PROTECTED] wrote:  I'm creating a single sign on plugin to 
different http
servers using
 Tomcat.
 
 Functionality: If the user is not authenticated or authorized for the
 requested resource the user is redirected to another site for log in.
 If the user is authorized for the requested resource, the Tomcat module has
 done his part. The request should be returned to the http server and let
 the content delivery system(an application server, CGI scripts, etc) create
 the response.
 
 My problem is that I'm not able to tell the http server that Tomcat don't
 want to create the response. For example: With Apache http server I think
 the clue is to make mod_webapp return DECLINED instead of OK, but does
 anyone know how this can be done from Tomcat?
 
 Or another way this can be done?
 
 thanks,
 
 Vegard
 
 --
 Vegard Myrland
 
 Accenture
 Communication  High Tech
 P.O. Box 550 Skøyen, NO-0214 Oslo, Norway
 Phone (direct): +47 22 12 65 70
 Phone (mobile): + 47 952 47 047
 Fax: + 47 22 12 60 00
 e-mail: [EMAIL PROTECTED]
 
 
 This message is for the designated recipient only and may contain
 privileged, proprietary, or otherwise private information.  If you have
 received it in error, please notify the sender immediately and delete the
 original.  Any other use of the email by you is prohibited.
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
  

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

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




Re: Get Document.Url

2002-02-06 Thread Odo
I know.
...Actually I wanted to process URLs with '@' in Servlet
ex: http:[EMAIL PROTECTED]




Galbayar wrote:

 JavaScript is Server Side
 Servlet is Server Side use getRequestURI()
 
 
 - Original Message - 
 From: "Odo" [EMAIL PROTECTED]
 To: "Tomcat Users List" [EMAIL PROTECTED]
 Sent: Wednesday, February 06, 2002 18:28
 Subject: Get Document.Url
 
 
 
How can I get in my servlet Javascript's "document.URL" variable?
How it be scripted in servlet?




--
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: Get Document.Url

2002-02-06 Thread David Cassidy

wouldn't that come across as the basic auth username ?

getRemoteUser()

;-}

D

Odo wrote:

 I know.
 ...Actually I wanted to process URLs with '@' in Servlet
 ex: http:[EMAIL PROTECTED]

 

 Galbayar wrote:

  JavaScript is Server Side
  Servlet is Server Side use getRequestURI()
 
 
  - Original Message -
  From: Odo [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Wednesday, February 06, 2002 18:28
  Subject: Get Document.Url
 
 
 
 How can I get in my servlet Javascript's document.URL variable?
 How it be scripted in servlet?
 
 
 
 
 --
 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: Get Document.Url

2002-02-06 Thread Odo

getRemoteUser() returns null value.


David Cassidy wrote:

 wouldn't that come across as the basic auth username ?
 
 getRemoteUser()
 
 ;-}
 
 D
 
 Odo wrote:
 
 
I know.
...Actually I wanted to process URLs with '@' in Servlet
ex: http:[EMAIL PROTECTED]



Galbayar wrote:


JavaScript is Server Side
Servlet is Server Side use getRequestURI()


- Original Message -
From: Odo [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, February 06, 2002 18:28
Subject: Get Document.Url




How can I get in my servlet Javascript's document.URL variable?
How it be scripted in servlet?




--
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: Servlet help...

2002-02-06 Thread Janek Bogucki

 --- Clay Mitchell [EMAIL PROTECTED] wrote:  How do I define where Tomcat looks for 
servlets? Where
does it look for
 it by default?
 
 Thanks
 -Clay
 

Have a look at this document

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html

It should answer your question.

-Janek  

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

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




Java Heap of tomcat continuously increases

2002-02-06 Thread Steve Wong


I am using Apache1.3.20 with mod_ssl + tomcat3.3 + mod_jk + Solaris 8 + 
Jdk1.2.2(green threads)
I have a simple web application in tomcat.  
Using apachebenchmarking tool (ab) to generate many requests to my application 
via apache, I find that the 
allocated java heap continuously increases.
On the other hand, generating many requests to my application directly to 
tomcat, I find that the allocated java 
heap remains unchanged.
I change my application to a simple jsp.  The above scenarios still exists.
Can anyone tell me why?? Have I set anything wrong in apache or tomcat??

Thx. and Regards.
Steve.

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




Classpath problems

2002-02-06 Thread Walter De Wit

Hello all,

I've problems in letting log4j automatically find the log4j.properties file.
I put log4j.jar in %CATALINA_HOME%\lib and my log4j.properties file in
%CATALINA_HOME%\classes.
I haven't put a log4j.jar version in my web-app/lib so normally all web
applications should
use the same log4j.
If I understand the class loader inheritance story well, the log4j.Category
class is loaded with the Shared classloader which also has the
%CATALINA_HOME%\classes directory in its classpath.
So why doesn't it find my log4j.properties file ?

Walter



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




Tomcat 3.3 and 4.0, different behaviour when reloading the web.xml

2002-02-06 Thread WIPPERT,MAX (HP-Germany,ex1)

Hello everyone.

I'm new to this mailing List, and hopefully I don't bother anyone asking
questions which have already been answered.

I'm using Tomcat 4.0 standalone on Win2K and Tomcat 3.3 on MPE. I use Tomcat
to run JavaServlets. 

On MPE (it includes an Posix-Shell, behaves similar to Unix), when change
the web.xml in the Folder WEB-INF Tomcat 3.3 notices this, destroys
every Servlet mentioned in the web.xml and if the Servlet gets accessed
again ist is reloaded. Same happens if I only touch the web.xml. This is
visible becaus of some logging I coded in the init() and the destroy() of
the Servlets.
When do the same on my Win3K machine Tomcat 4.0 does NOT reload the
web.xml. He does not destroy the classes neither.

Has anyone an Idea how I can tell Tomcat4.0 to reload the web.xml? I want
him to read out the up-to-date Information I wrote into the web.xml.
...snip...
context-param
param-nameMyParameter/param-name
param-valueUseThisParameterValue/param-value
/context-param
...snip...

Best regards,
thank you,
Max Wippert

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




two web.xml?

2002-02-06 Thread Madock Chiwenda

How can a person specify default web.xml to be used at startup. I would like to start 
tomcat accessing the jsp in two different 
modes: 
1. Accessing the source using WebDAV enabled editor.
2. Viewing the executed page content (HTML) using a browser. 

I think the source access can be achieved by disabling the JSP servlet but I still 
want to preview it in the browser. I cant see 
any documentation for specifying web.xml to be used at startup or by the 
server/engine/host or anywhere appropriate.

Has someone tried to solve such problem?

Madock





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


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




Re: Strange output stream behavior

2002-02-06 Thread Volker Turau

Hi,

that is correct behaviour, because Tomcat uses chunked transfer encoding.
The browser interpretes these extra characters and displays only the
content.


volker turau
FH Wiesbaden Fachbereich Informatik
Tel.: +49-611-9495-205 FAX +49-611-9495-210
http://www.informatik.fh-wiesbaden.de/~turau

On Tue, 5 Feb 2002 [EMAIL PROTECTED] wrote:

 Hi all,
 I'm seeing something strange in the output stream from Jakarta.  Here's the
 setup:
 Jakarta 4.0.1 (from zip file)
 Windows XP Professional
 JDK 1.3.1_02 and jsdk1.4rc (makes no difference in the output)

 Here's the code I'm using:

 res.setContentType(text/html);

 PrintWriter out = res.getWriter();

 out.println(HTML);
 out.println(HEADTITLEhello!/TITLE/HEAD);
 out.println(BODYBIGhello/BIG/BODY/HTML);


 and here's the output:
 
***
 HTTP/1.1 200 OK
 Content-Type: text/html
 Date: Tue, 05 Feb 2002 14:44:37 GMT
 Transfer-Encoding: chunked
 Server: Apache Tomcat/4.0.1 (HTTP/1.1 Connector)

 6
 HTML
 2


 22
 HEADTITLEhello!/TITLE/HEAD
 2


 24
 BODYBIGhello/BIG/BODY/HTML
 2


 0
 
**

 It looks like every call to println() is putting characters before and
 after.  This also happens with the write() and println() methods on the
 servletoutputstream.  Is this correct?  The strangest thing is that IE
 (6.0) displays the html correctly, and a view source has the extra numbers
 stripped out.

 I'm pulling my hair out trying to figure this one out, can anyone point me
 in the correct direction?

 Thanks!
 -Jake


 --
 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]




Apache + Tomcat

2002-02-06 Thread Gang Wu

Hi,

I wonder where i can find doc for installing Apache as web sever and plug in
Tomcat as servlet container only. Or Can anyone please give me a short
headline about this issue.

regards
Gang


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




Re: Apache + Tomcat

2002-02-06 Thread Liam Holohan

Gang Wu wrote:

 Hi,
 
 I wonder where i can find doc for installing Apache as web sever and plug in
 Tomcat as servlet container only. Or Can anyone please give me a short
 headline about this issue.
 
 regards
 Gang
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

loads of docs available for installing apache and integrating tomcat..
easiest thing to do is ...


(Linux/unix version)
download apache src

apache_1.3.22.tar.Z  (a gzipped' tar ball of source code)

put the src somewhere on your machine and do a
gzip - d apache_1.3.22.tar.Z
tar xvf  apache_1.3.22.tar

I wrote a script to build it called buildapache... put it into the 
same directory as your unpacked apache and run it as root
(I'm building it into my own location (/home/wasp/modules/apache/1.3.22)

#!/bin/bash
./configure --prefix=/home/wasp/modules/apache/1.3.22 
--logfiledir=/home/wasp/modules/apache/1.3.22/logs --enable-module=most 
--enable-shared=max --enable-suexec
--suexec-logfile=/home/wasp/logs/suexec.log --suexec-umask=077
make
echo DONE
make install

This should get your apache server up

Then download tomcat and install
I downloaded the binary and unpacked it in /home/wasp/modules/tomcat/4.0/


you can integrate apache and tomcat with either jserv mod_jk or 
mod_webapp  (loads of documentation on the web about this stuff)

Search google for mod_webapp for example.  there is an article in the 
best pratices of sun website called making tomcat work with apache


hope this gets you started..

Liam :-)


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




RE: TOMCAT 4.X - mod_jk

2002-02-06 Thread Kevin Passey

Hi again,

I have found my answer here
http://dcb.sun.com/practices/howtos/tomcat_apache.jsp

Thanks anyway.


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



-Original Message-
From: Kevin Passey [mailto:[EMAIL PROTECTED]]
Sent: 06 February 2002 11:39
To: '[EMAIL PROTECTED]'
Subject: TOMCAT 4.X - mod_jk 


Hi,

I am somewhat confused..

I have TOMCAT 4 running quite happily on my Linux (SuSE 7.3) server - no
problem.

I also have the apache 1.3 distribution with my 7.3 running - no problem.

What I want to do is run TOMCAT as an apache plugin so that Apache is
serving my static pages and TOMCAT is doing the cool stuff.

The question is - do I have to use TOMCAT 3.3 as I cannot see a mod_jk
version for 4.x - or have I missed something?

Thanks

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





PLEASE URGENT: log off problem!!!

2002-02-06 Thread Catalin



Hi, guys!



I have an jakarta-tomcat-3.3-m4 on a win2k professional OS that is
runnig as a service on that machine.
My problem is that every time an user does log-off from windows 2000
and after that does login, my jakarta service is stopped!!!
Another problem that I have is that I'm loosing the session variables
(by loosing the session itself) if I do nothing in my webapps for an half an hour or 
so.


Please, could anyone help me with these? I'm running uot of time...


Thanks for tip.

Catalin


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




RE: PLEASE URGENT: log off problem!!!

2002-02-06 Thread Brian Adams

two reasons:
1. bug in jdk add -Xrs to wrapper.cmd_line in wrappers.properties.
2. don't run the service as interact with desktop.
goodluck
B


-Original Message-
From: Catalin [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 06, 2002 4:03 PM
To: [EMAIL PROTECTED]
Subject: PLEASE URGENT: log off problem!!!




Hi, guys!



I have an jakarta-tomcat-3.3-m4 on a win2k professional OS that is
runnig as a service on that machine.
My problem is that every time an user does log-off from windows 2000
and after that does login, my jakarta service is stopped!!!
Another problem that I have is that I'm loosing the session variables
(by loosing the session itself) if I do nothing in my webapps for an half an
hour or so.


Please, could anyone help me with these? I'm running uot of time...


Thanks for tip.

Catalin


--
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]




Pb with the reloadable option with Apache/Tomcat.

2002-02-06 Thread Jean-Luc BEAUDET


Don't pay attention if this is the second Message, please.

Hi everybody,

I'm using SOLARIS 8, apache 1.3.22, tomcat 4.0.1

Tomcat is configured to communicate with Apache via the WARP Connector.

As it is set for devlopement stuff, i want all the changes made in the
WEB_INF/lib or classes
under CATALINA_BASE/webapps to be automatically reloaded.

Below is my server.xml. Where can i put my directive  relodable=true
so that it is effective for the
whole ./webapps projects ?!-- Define an Apache-Connector Service --
  Service name=Tomcat-Apache

Connector
className=org.apache.catalina.connector.warp.WarpConnector
   port=8012 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 debug=0 appBase=webapps
defaultHost=photosharing.ko.kodak.com

  !-- 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


Any clues welcome.

Regards.

Jean-Luc B :O)





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




Tomcat NT Service Bug??

2002-02-06 Thread Vinay Urs

Hello there,

We are encountering problems with Tomcat (versions 3.3
and 4.0.1).

Our application, running on Tomcat on one machine, is
creating directories on a remote file system. Tomcat
is being started with a policy file. The application
is able to pickup the remote file system if Tomcat is
started from the command prompt with the -security
feature.

But if we start it as a NT service and not as a mapped
drive, the mapped remote network drive is not being
picked up. And our application is unable to create
directories.

Our policy file has the following entry for the
drives:

grant codeBase
file:${catalina.home}/webapps/codwap/- {
permission java.security.AllPermission;
permission java.io.FilePermission ALL FILES,
read, write, delete, execute;
};

Any help is much appreciated.

Thanks,

Vinaty
 

__
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

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




AW: PLEASE URGENT: log off problem!!!

2002-02-06 Thread Ralph Einfeldt

That's normal.

You can set the SessionTimeOut to a different value. I wouldn't 
recommens to set it to much higher values than the default of 30 
minutes, as this will increase the resource usage of the system. 
You have to keep in mind that each aktive session needs some 
memory to store its state, especially if you store data in the
session. Making this value to high can easily lead to several 
thousend concurrent open sessions.

 -Ursprüngliche Nachricht-
 Von: Catalin [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 6. Februar 2002 23:03
 An: [EMAIL PROTECTED]
 Betreff: PLEASE URGENT: log off problem!!!
snip/
 Another problem that I have is that I'm loosing the session variables
 (by loosing the session itself) if I do nothing in my webapps 
 for an half an hour or so.
snip/

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




RE: TOMCAT 4.X - mod_jk

2002-02-06 Thread John Wadkin

I've quickly read the howto and I'm not sure that I agree with everything! I
haven't defined a virtual host in httpd.conf and everything works fine. The
author also makes this curious statement:

!-- Replace localhost with what your Apache 
ServerName is set to --
  !-- #  This line changed.  name=set to correct 
  host name. #--
   Engine className=
   org.apache.catalina.connector.warp.WarpEngine
   name=apache.nandgate.com debug=0 
   appBase=webapps

I didn't think that it mattered what the name was set to. As I understand
it, the default server.xml file lacks a host inside the engine for the
Tomcat-Apache service - it should have a host. The Replace localhost with
what your Apache ServerName is set to refers to this, doesn't it? I.e.

Replace localhost with what your Apache ServerName is set to 
  -- 
- Engine className=org.apache.catalina.connector.warp.WarpEngine
name=Apache defaultHost=whatever ServerName is set to in httpd.conf
debug=0 appBase=webapps

The howto has caused me to question my understanding rather than provide any
clarification! The author is right when he says that the documentation is
patchy and the TC-Apache integration process is more complex than it ought
to be.

Thanks,
 
John
 
Quote for the week:
 
Experience is not what happens to a man; it is what a man does with what
happens to him.
 
Aldous Huxley, Texts and Pretexts , (1932) p. 5


-Original Message-
From: Kevin Passey [mailto:[EMAIL PROTECTED]]
Sent: 06 February 2002 12:25
To: 'Tomcat Users List'
Subject: RE: TOMCAT 4.X - mod_jk


Hi again,

I have found my answer here
http://dcb.sun.com/practices/howtos/tomcat_apache.jsp

Thanks anyway.


Kevin Passey
--


-Original Message-
From: Kevin Passey [mailto:[EMAIL PROTECTED]]
Sent: 06 February 2002 11:39
To: '[EMAIL PROTECTED]'
Subject: TOMCAT 4.X - mod_jk 


Hi,

I am somewhat confused..

I have TOMCAT 4 running quite happily on my Linux (SuSE 7.3) server - no
problem.

I also have the apache 1.3 distribution with my 7.3 running - no problem.

What I want to do is run TOMCAT as an apache plugin so that Apache is
serving my static pages and TOMCAT is doing the cool stuff.

The question is - do I have to use TOMCAT 3.3 as I cannot see a mod_jk
version for 4.x - or have I missed something?

Thanks

Kevin Passey
--


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




index.jsp-index.html

2002-02-06 Thread Odo
How configure default page from index.jsp to index.html in Tomcat 4.0?


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


RE: Tomcat NT Service Bug??

2002-02-06 Thread Kimberley Scott

Hiya,

This may be off base, but mapped drives may only exist while you're logged
in. When the service starts, it runs as 'System' for whom the mapped drive
does not exist. I remember there was a way for NT to 'map' drives during
startup, so that they are available to all users including system even when
they're not logged in. Perhaps this is the problem?

I've encountered similar problems with Windows programs and usually use a UNC
path, rather than a mapped drive. e.g. \\yourserver\yourshare or what not.
Perhaps another idea is to map the drive when the service starts and unmap it
afterwards?

Kimbo.

DCG Media Ltd
147 London Road
Kingston-upon-Thames
Surrey
KT2 6NH
United Kingdom
Tel: +44 (0)20 8541 0800
Fax: +44 (0)20 8546 8686
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
www.dcg-is-here.com http://www.dcg-is-here.com

This communication as well as any files attached hereto (the Message) are
the confidential property of DCG Media Ltd (the Sender) who own all
copyrights therein. No part of this Message may be copied, forwarded,
distributed or in any manner whatsoever disclosed to any third party without
the written approval of the Sender. Whilst every effort has been made to
ensure the correctness of this Message, the Sender does not accept liability
for any errors or omissions in the content hereof, since neither the
security, nor accuracy of email can be guaranteed by us. If you have received
this message in error we offer a sincere apology for any inconvenience caused
and request that you not act on or disclose the contents hereof to anyone,
but that you inform the sender by return email, or contact:
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]



-Original Message-
From: Vinay Urs [mailto:[EMAIL PROTECTED]]
Sent: 06 February 2002 12:46
To: [EMAIL PROTECTED]
Subject: Tomcat NT Service Bug??


Hello there,

We are encountering problems with Tomcat (versions 3.3
and 4.0.1).

Our application, running on Tomcat on one machine, is
creating directories on a remote file system. Tomcat
is being started with a policy file. The application
is able to pickup the remote file system if Tomcat is
started from the command prompt with the -security
feature.

But if we start it as a NT service and not as a mapped
drive, the mapped remote network drive is not being
picked up. And our application is unable to create
directories.

Our policy file has the following entry for the
drives:

grant codeBase
file:${catalina.home}/webapps/codwap/- {
permission java.security.AllPermission;
permission java.io.FilePermission ALL FILES,
read, write, delete, execute;
};

Any help is much appreciated.

Thanks,

Vinaty
 

__
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

--
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: index.jsp-index.html

2002-02-06 Thread Walter De Wit
In %CATALINA_HOME%\conf\web.xml
This web.xml is loaded for every web application before the web.xml of the
web application itself is loaded.
In this 'global' web.xml you can specify defaults.


-Original Message-
From: Odo [mailto:[EMAIL PROTECTED]]
Sent: woensdag 6 februari 2002 13:51
To: Tomcat Users List
Subject: index.jsp-index.html


How configure default page from index.jsp to index.html in Tomcat 4.0?


--
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: Apache + Tomcat

2002-02-06 Thread Daniel Thomas

I wrote a doc on how to integrate them once. I am not sure how good it is, I
am not exactly a technical author, but it might be use full. It is based on
the a windows environment.

Hope it helps

Dan


Installing Tomcat and Apache on
The Application Server

Required files:

apache_1_3_14_win32_r2.exe  Apache Installation File
jakarta-tomcat-3.2.1.zipTomcat Installation File
mod_jk.dll  Allows Apache to work with Tomcat


Tomcat

Extract tomcat file to a directory on your Hard Disk. (TOMCAT_HOME)

Edit the tomcat.bat file (TOMCAT_HOME\bin\tomcat.bat)

Insert the line below into the ‘Save Environment Variables That May Change’
section:

Set JAVA_HOME = the location of your JDK directory


Edit the Server.xml file (TOMCAT_HOME\conf\server.xml)

Insert the lines below at the bottom of the file:
Connector className=org.apache.tomcat.service.PoolTcpConnector
Parameter name=handler
value=org.apache.tomcat.service.connector.Ajp13ConnectionHandler/
Parameter name=port value=8009/
/Connector


Apache

Run the Apache Installation File and install to a directory of your choice.
Copy the mod_jk.dll file to à  \Apache group\Apache\Modules

Edit the httpd.conf file ( \Apache group\Apache\Conf\httpd.conf)

Insert the line below at the bottom of the file

Include TOMCAT_HOME/conf/mod_jk.conf-auto


Installing the Web site

Place the website files on the Hard Disk

FilePath
downloadBottom.html /
downloadMain.html   /
downloadMiddle.html /
downloadTop.html/
index.html  /
xmldownloadBottom.html  /
xmldownloadmain.html/
xmldownloadMiddle.html  /
xmldownloadTop.html /
consoleSTUB_JRE.EXE /download/stub
consoleSTUB_NJRE.EXE/download/stub
ccfile.xml  /download/xmlfiles
appser.gif  /images
astub.gif   /images
bcraceclose.gif /images
braceopen.gif   /images
btmain.gif  /images
collect.gif /images
djre.gif/images
dloadtop.gif/images
dxml.gif/images
instruction.gif /images
jre.gif /images
jreimg.gif  /images
linuxlogo.gif   /images
mslogo.gif  /images
sollogo.gif /images
stubimg.gif /images
ttlogo.gif  /images
ttName.gif  /images
VivianceLogo.gif/images
vivilogo1.gif   /images
vivilogo2.gif   /images
vssver.scc  /images
xml.gif /images
xmltop.gif  /images

Edit the httpd.conf file ( \Apache group\Apache\Conf\httpd.conf)

Alter line:
DocumentRoot C:/Program Files/Apache Group/Apache/htdocs

To:
DocumentRoot location of the files above
-Original Message-
From: Gang Wu [mailto:[EMAIL PROTECTED]]
Sent: 06 February 2002 11:52
To: Tomcat Users List
Subject: Apache + Tomcat


Hi,

I wonder where i can find doc for installing Apache as web sever and plug in
Tomcat as servlet container only. Or Can anyone please give me a short
headline about this issue.

regards
Gang


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

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.306 / Virus Database: 166 - Release Date: 04/12/2001

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.306 / Virus Database: 166 - Release Date: 04/12/2001


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




SSL Connection between Apache and Tomcat

2002-02-06 Thread Sasvari, Zsolt

How can I set a secure connection between Apache and Tomcat?
As I see the Ajp connetor is not SSL enabled.
Then how secure will be a system if Tomcat runs in different machine from
Apache?
I looked through the mailing list archive and didn't find any answers.
Has anybody something idea?

Thanks,
Zsolt

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




Strange behavour?

2002-02-06 Thread Odo
Could anyone explain me this Tomcat4 behavour?

In index.html(or index.jsp) I wrote:

html
head
titleShow URL/title
/head
body
h4
script language="JavaScript"
document.write("URL is - ",document.URL);   
/script
/h4
/body
/html

and when I access like "[EMAIL PROTECTED]" to Tomcat
it shows only "test.myserver.com" but when replace Tomcat to Apeche
it show as I wanted { In url must be @ }: "[EMAIL PROTECTED]".




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


AW: TOMCAT 4.X - mod_jk

2002-02-06 Thread Ralph Einfeldt

What happened is the following:

The original documents contain the comment
!-- Replace localhost with what your Apache ServerName is set to
--
but the example didn't contain the string 'localhost'.

Now there are two suggested solutions what was ment with that
comment.
- the entry 'name=Apache' where the comment used localhost instead 
  of Apache
- the missing entry 'defaultHost=localhost'

Reading the documentation on the jacarta site 
(http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/engine.html)
I think your interpretation is right. (As I'm not using tomcat, I can't
verify that)

 -Ursprüngliche Nachricht-
 Von: John Wadkin [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 6. Februar 2002 13:50
 An: 'Tomcat Users List'
 Betreff: RE: TOMCAT 4.X - mod_jk
 
 Replace localhost with what your Apache ServerName is set to 
   -- 
 - Engine className=org.apache.catalina.connector.warp.WarpEngine
 name=Apache defaultHost=whatever ServerName is set to in 
 httpd.conf
 debug=0 appBase=webapps
 

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




Re: apache + mod_SSL + tomcat

2002-02-06 Thread Dean Hiller

I never saw an answer go by to the below question and was curious what it would be. 
Does no one now the answer
Dean

Cressatti, Dominique wrote:

 Hi,

 I've got apache + mod_SSL + tomcat working
 (I don't deserve that much credit as mod_ssl worked
 right out the box) but I wonder couldn't the security bypassed,
 like for example accessing the page on port 8080 instead of port
 443 ?

 Dom


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




RE: Tomcat NT Service Bug??

2002-02-06 Thread Vinay Urs

Thanks for the suggestion, Kim. We have changed the NT
Service to run for a particular user and we are using
UNC instead of mapped drives.

But this has still not solved the problem.

Vinay

--- Kimberley Scott [EMAIL PROTECTED] wrote:
 Hiya,
 
 This may be off base, but mapped drives may only
 exist while you're logged
 in. When the service starts, it runs as 'System' for
 whom the mapped drive
 does not exist. I remember there was a way for NT to
 'map' drives during
 startup, so that they are available to all users
 including system even when
 they're not logged in. Perhaps this is the problem?
 
 I've encountered similar problems with Windows
 programs and usually use a UNC
 path, rather than a mapped drive. e.g.
 \\yourserver\yourshare or what not.
 Perhaps another idea is to map the drive when the
 service starts and unmap it
 afterwards?
 
 Kimbo.
 
 DCG Media Ltd
 147 London Road
 Kingston-upon-Thames
 Surrey
 KT2 6NH
 United Kingdom
 Tel: +44 (0)20 8541 0800
 Fax: +44 (0)20 8546 8686
 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
 www.dcg-is-here.com http://www.dcg-is-here.com
 
 This communication as well as any files attached
 hereto (the Message) are
 the confidential property of DCG Media Ltd (the
 Sender) who own all
 copyrights therein. No part of this Message may be
 copied, forwarded,
 distributed or in any manner whatsoever disclosed to
 any third party without
 the written approval of the Sender. Whilst every
 effort has been made to
 ensure the correctness of this Message, the Sender
 does not accept liability
 for any errors or omissions in the content hereof,
 since neither the
 security, nor accuracy of email can be guaranteed by
 us. If you have received
 this message in error we offer a sincere apology for
 any inconvenience caused
 and request that you not act on or disclose the
 contents hereof to anyone,
 but that you inform the sender by return email, or
 contact:
 [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
 
 
 
 -Original Message-
 From: Vinay Urs [mailto:[EMAIL PROTECTED]]
 Sent: 06 February 2002 12:46
 To: [EMAIL PROTECTED]
 Subject: Tomcat NT Service Bug??
 
 
 Hello there,
 
 We are encountering problems with Tomcat (versions
 3.3
 and 4.0.1).
 
 Our application, running on Tomcat on one machine,
 is
 creating directories on a remote file system. Tomcat
 is being started with a policy file. The application
 is able to pickup the remote file system if Tomcat
 is
 started from the command prompt with the -security
 feature.
 
 But if we start it as a NT service and not as a
 mapped
 drive, the mapped remote network drive is not being
 picked up. And our application is unable to create
 directories.
 
 Our policy file has the following entry for the
 drives:
 
 grant codeBase
 file:${catalina.home}/webapps/codwap/- {
   permission java.security.AllPermission;
   permission java.io.FilePermission ALL FILES,
 read, write, delete, execute;
 };
 
 Any help is much appreciated.
 
 Thanks,
 
 Vinaty
  
 
 __
 Do You Yahoo!?
 Send FREE Valentine eCards with Yahoo! Greetings!
 http://greetings.yahoo.com
 
 --
 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]
 


__
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

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




RE: apache + mod_SSL + tomcat

2002-02-06 Thread Brian Adams

my guess is yes, if you do not check in jsp/servlets are on https
(request.isSecure())  and if you are allowing users to port 8080 (block it).
my guess...
:)



-Original Message-
From: Dean Hiller [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 06, 2002 7:33 AM
To: Tomcat Users List
Subject: Re: apache + mod_SSL + tomcat


I never saw an answer go by to the below question and was curious what it
would be. Does no one now the answer
Dean

Cressatti, Dominique wrote:

 Hi,

 I've got apache + mod_SSL + tomcat working
 (I don't deserve that much credit as mod_ssl worked
 right out the box) but I wonder couldn't the security bypassed,
 like for example accessing the page on port 8080 instead of port
 443 ?

 Dom


--
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]




SendMailServlet.class

2002-02-06 Thread chad kellerman

Hello again,

 I finally got Tomcat and Apache running smoothly. ( well almost).  I  was going 
thru the examples, everyone worked except one.  The mail.  Looking into the problem I 
noticed that the SendMailServlet.class file was not created in 
/usr/local/jakarta-tomcat-4.0/dist/webapps/examples/WEB-INF/classes/

So I decided to try and create it manually.

Here is what I did:

javac SendMailServlet.java

Here is the output:

SendMailServlet.java:1: error:Cannot find type javax/mail/Message

Has anyone seen this?  Has anyone else fixed this?  I am wondering if I missed 
something in my build.properties file when I compiled tomcat  Any suggestion would 
be appreciated.

Thanks again,
Chad

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




RE: TOMCAT 4.X - mod_jk

2002-02-06 Thread John Wadkin

It's interesting. Look at the server-noexamples.xml.config file that is
supplied with TomCat. It's implied that the only difference between this
file and the standard server.xml is the context def's for the examples web
app. Yet in the server-noexamples.xml.config file:

Engine className=org.apache.catalina.connector.warp.WarpEngine
 name=Apache defaultHost=localhost debug=0 appBase=webapps

and in server.xml

Engine className=org.apache.catalina.connector.warp.WarpEngine
 name=Apache debug=0 appBase=webapps

The !-- Replace localhost with what your Apache ServerName is set to
-- makes more sense in the server-noexamples.xml.config file! Did someone
slip up, perhaps?? Slap dash cut and paste?

My last email didn't explain things too well! As I understand it, server.xml
should have:

Engine className=org.apache.catalina.connector.warp.WarpEngine
 name=Apache defaultHost=myserver.domain.com debug=0
appBase=webapps

Host name=myserver.domain.com debug=0 appBase=webapps
unpackWARs=true

I.e. name matches defaulthost. I think this is how it's supposed to be -
that's there's at least one host and that it's name matches the engine's
defaulthost.

It's great fun - the books conflict with the documentation, user experience
conflicts with the books -and- the documentation... :)

Thanks,
 
John

 
Quote for the week:
 
Experience is not what happens to a man; it is what a man does with what
happens to him.
 
Aldous Huxley, Texts and Pretexts , (1932) p. 5


-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
Sent: 06 February 2002 13:31
To: Tomcat Users List
Subject: AW: TOMCAT 4.X - mod_jk


What happened is the following:

The original documents contain the comment
!-- Replace localhost with what your Apache ServerName is set to
--
but the example didn't contain the string 'localhost'.

Now there are two suggested solutions what was ment with that
comment.
- the entry 'name=Apache' where the comment used localhost instead 
  of Apache
- the missing entry 'defaultHost=localhost'

Reading the documentation on the jacarta site 
(http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/engine.html)
I think your interpretation is right. (As I'm not using tomcat, I can't
verify that)

 -Ursprüngliche Nachricht-
 Von: John Wadkin [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 6. Februar 2002 13:50
 An: 'Tomcat Users List'
 Betreff: RE: TOMCAT 4.X - mod_jk
 
 Replace localhost with what your Apache ServerName is set to 
   -- 
 - Engine className=org.apache.catalina.connector.warp.WarpEngine
 name=Apache defaultHost=whatever ServerName is set to in 
 httpd.conf
 debug=0 appBase=webapps


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




AW: SendMailServlet.class

2002-02-06 Thread Ralph Einfeldt

To compile the servlet you have to have the mail jars in the classpath.
(mail.jar and activation.jar)

 -Ursprüngliche Nachricht-
 Von: chad kellerman [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 6. Februar 2002 14:38
 An: [EMAIL PROTECTED]
 Betreff: SendMailServlet.class
snip/
 javac SendMailServlet.java
snip/
 SendMailServlet.java:1: error:Cannot find type javax/mail/Message
snip/

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




RE: SendMailServlet.class

2002-02-06 Thread Mark Meany

 SendMailServlet.java:1: error:Cannot find type javax/mail/Message

Try downloading the Sun JavaMail API and putting the jars somewhere visible
to your application. All should be Ok after this.

http://java.sun.com/products/javamail/index.html

M.




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




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




RE: Tomcat NT Service Bug??

2002-02-06 Thread Vinay Urs

Please ignore the previous mail.. the solution works
like a charm.

Thanks a lot,

Vinay

--- Kimberley Scott [EMAIL PROTECTED] wrote:
 Hiya,
 
 This may be off base, but mapped drives may only
 exist while you're logged
 in. When the service starts, it runs as 'System' for
 whom the mapped drive
 does not exist. I remember there was a way for NT to
 'map' drives during
 startup, so that they are available to all users
 including system even when
 they're not logged in. Perhaps this is the problem?
 
 I've encountered similar problems with Windows
 programs and usually use a UNC
 path, rather than a mapped drive. e.g.
 \\yourserver\yourshare or what not.
 Perhaps another idea is to map the drive when the
 service starts and unmap it
 afterwards?
 
 Kimbo.
 
 DCG Media Ltd
 147 London Road
 Kingston-upon-Thames
 Surrey
 KT2 6NH
 United Kingdom
 Tel: +44 (0)20 8541 0800
 Fax: +44 (0)20 8546 8686
 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
 www.dcg-is-here.com http://www.dcg-is-here.com
 
 This communication as well as any files attached
 hereto (the Message) are
 the confidential property of DCG Media Ltd (the
 Sender) who own all
 copyrights therein. No part of this Message may be
 copied, forwarded,
 distributed or in any manner whatsoever disclosed to
 any third party without
 the written approval of the Sender. Whilst every
 effort has been made to
 ensure the correctness of this Message, the Sender
 does not accept liability
 for any errors or omissions in the content hereof,
 since neither the
 security, nor accuracy of email can be guaranteed by
 us. If you have received
 this message in error we offer a sincere apology for
 any inconvenience caused
 and request that you not act on or disclose the
 contents hereof to anyone,
 but that you inform the sender by return email, or
 contact:
 [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
 
 
 
 -Original Message-
 From: Vinay Urs [mailto:[EMAIL PROTECTED]]
 Sent: 06 February 2002 12:46
 To: [EMAIL PROTECTED]
 Subject: Tomcat NT Service Bug??
 
 
 Hello there,
 
 We are encountering problems with Tomcat (versions
 3.3
 and 4.0.1).
 
 Our application, running on Tomcat on one machine,
 is
 creating directories on a remote file system. Tomcat
 is being started with a policy file. The application
 is able to pickup the remote file system if Tomcat
 is
 started from the command prompt with the -security
 feature.
 
 But if we start it as a NT service and not as a
 mapped
 drive, the mapped remote network drive is not being
 picked up. And our application is unable to create
 directories.
 
 Our policy file has the following entry for the
 drives:
 
 grant codeBase
 file:${catalina.home}/webapps/codwap/- {
   permission java.security.AllPermission;
   permission java.io.FilePermission ALL FILES,
 read, write, delete, execute;
 };
 
 Any help is much appreciated.
 
 Thanks,
 
 Vinaty
  
 
 __
 Do You Yahoo!?
 Send FREE Valentine eCards with Yahoo! Greetings!
 http://greetings.yahoo.com
 
 --
 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]
 


__
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

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




RE: apache + mod_SSL + tomcat

2002-02-06 Thread Cressatti, Dominique

Anton Brazhnyk answered it.
I followed his advice.
I basically commented out the HttpConnector running on port 8080
and that was it.
From that point I can't an http connection on port 8080
but I can still access my app on port 80 (normal http)
and port 443 (https).

One point that was made by somebody else what
about the connection between apache and tomcat?
Either mod_jk on port 8009 (or 8007) or mod_webapp
on port 8008. As far as I know those connectors are
not ssl enabled. 

Dom


-Original Message-
From: Dean Hiller [mailto:[EMAIL PROTECTED]]
Sent: 06 February 2002 13:33
To: Tomcat Users List
Subject: Re: apache + mod_SSL + tomcat


I never saw an answer go by to the below question and was curious what it would be. 
Does no one now the answer
Dean

Cressatti, Dominique wrote:

 Hi,

 I've got apache + mod_SSL + tomcat working
 (I don't deserve that much credit as mod_ssl worked
 right out the box) but I wonder couldn't the security bypassed,
 like for example accessing the page on port 8080 instead of port
 443 ?

 Dom


--
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 +JSSE problem

2002-02-06 Thread Alex Perez

Hello!

I'm having a nightmare trying to get Tomcat v:3.3 working properly with JSSE.
So far, this is what I've done:

--
[System]: Win2K Server + Apache + Tomcat 3.3 + jdk1.3.1 + JSSE1.0.2
Installed JSSE on $JAVA_HOME\jre\lib\ext

Created keystore (as indicated in the tomcat SSL howto) with keytool for 
testing purposes.

modified the java.security to include the sun provider in 
$JAVA_HOME\jre\lib\security and in 
D:\Program Files\JavaSoft\JRE\1.3.1\lib\security

modified Server.xml to work in port 443 (also tried 8443), set the path to the 
key, etc.

to be on the safe side, i used:

System.setProperty(java.protocol.handler.pkgs,com.sun.net.ssl.internal.www.protocol);
Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());

NOW:
Tomcat starts OK (Keystore found, ports 443, 8007  8009 up, etc).
Servlets are executed OK in http
When trying to access a https page (ex: 
https://localhost/sslexample/servlet/test)
The following happens:
- A box appears on the browser indicating a security alert with the 
certificate created before (i can view all the values) .
- an exception is thrown in the tomcat terminal window:

2002-02-06 12:25:34 - Ctx() : IOException in R( /) - java.net.SocketException: Socket 
closed
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a([DashoPro-V1.2-120198])
at com.sun.net.ssl.internal.ssl.AppOutputStream.write([DashoPro-V1.2-120198])
... (rest of trace omitted)

- If you click on [yes] on the previous message, The padlock appears 
in the browser 
window and I CAN VIEW THE PAGE (which in this case just shows 
me a version number)

This is true for both IE and Netscape. And for JSSE installed or built as part 
of tomcat.


-
[System]: Win2k + IIS + Tomcat 3.3 + jdk1.4.0-rc 
- Keystore regenerated and placed in the right place for the servlet to find it
- Server.xml modified, etc, etc.

NOW: 
Again tomcat works with http but there is a problem with https. In this case, 
and due to the 
different jdk, the exception is: 

2002-02-06 12:44:03 - Ctx() : IOException in R( /) - 
javax.net.ssl.SSLException: error while writing to socket
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.b(DashoA6275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
... Rest of trace ommited.

- Again I CAN VIEW THE PAGE



My guess is that there may be something wrong with the keystore, but then why the 
SocketException??
Any ideas???

Thanx in advance.
Alex


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




Re: Tomcat 3.3 and 4.0, different behaviour when reloading the web.xml

2002-02-06 Thread Remy Maucherat

 Hello everyone.

 I'm new to this mailing List, and hopefully I don't bother anyone asking
 questions which have already been answered.

 I'm using Tomcat 4.0 standalone on Win2K and Tomcat 3.3 on MPE. I use
Tomcat
 to run JavaServlets.

 On MPE (it includes an Posix-Shell, behaves similar to Unix), when change
 the web.xml in the Folder WEB-INF Tomcat 3.3 notices this, destroys
 every Servlet mentioned in the web.xml and if the Servlet gets accessed
 again ist is reloaded. Same happens if I only touch the web.xml. This is
 visible becaus of some logging I coded in the init() and the destroy() of
 the Servlets.
 When do the same on my Win3K machine Tomcat 4.0 does NOT reload the
 web.xml. He does not destroy the classes neither.

 Has anyone an Idea how I can tell Tomcat4.0 to reload the web.xml? I
want
 him to read out the up-to-date Information I wrote into the web.xml.
 ...snip...
 context-param
 param-nameMyParameter/param-name
 param-valueUseThisParameterValue/param-value
 /context-param
 ...snip...

Either:
- Use the manager webapp (do a stop followed by a start)
- Use a nightly build (4.0-HEAD includes automatic deployment and web.xml
tracking)

Remy


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




RE: jdbc realm

2002-02-06 Thread Ignacio J. Ortega

 Hi I use tomcat 3.2 and wounder how 
 I can set up jdbc realm for each tomcat application.
 Eeach application use different databases.

you cant do this in 3.2.X, but in 3.3 and 4.0 you can define a Different
realm in every context, just by folding the JDBCRealm config line inside
a context elemnt ( at least in3.3 not sure about 4.0 but i will be more
or less the same )

Saludos ,
Ignacio J. Ortega


 -Mensaje original-
 De: Alex Johansson [mailto:[EMAIL PROTECTED]]
 Enviado el: miércoles 6 de febrero de 2002 10:15
 Para: [EMAIL PROTECTED]
 Asunto: jdbc realm
 
 
 
 
 Today it seems that you only can have one jdbc realm instance for 
 all the applications.
 
 In server.xml the syntax is for tomcat 3.2
 RequestInterceptor 
   className=org.apache.tomcat.request.JDBCRealm 
   debug=99 
   driverName=org.gjt.mm.mysql.Driver 
   connectionURL=jdbc:mysql://localhost/dbName 
   userTable=person userNameCol=email 
   userCredCol=password 
 userRoleTable=groupmember 
   roleNameCol=RoleName
   /
 
 
 
 Regards
 Alex
 
 
 
 
 
 
 __
  Alex Johansson System Developer @ TechLex
  web: www.techlex.se
  mail:  [EMAIL PROTECTED]
  phone: 0708-29 26 01 
 
 
 --
 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: index.jsp-index.html

2002-02-06 Thread Janek Bogucki

 --- Odo [EMAIL PROTECTED] wrote:
 How configure default page from index.jsp to index.html in Tomcat 4.0?
 
 

Add the second servlet-mapping element shown here to $CATALINA_HOME/conf/web.xml

  !-- The mapping for the JSP servlet --
  servlet-mapping
servlet-namejsp/servlet-name
url-pattern*.jsp/url-pattern
  /servlet-mapping

  servlet-mapping
servlet-namejsp/servlet-name
url-pattern*.html/url-pattern
  /servlet-mapping

-Janek


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

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




[JBoss244-Tomcat401] compatibility issue

2002-02-06 Thread Jarecsni Jnos

Hi,

I've been upgrading to JBoss244 (with Catalina). Things are fine so far,
except for this:

we have a lot of "request.getRequestDispatcher("symbolicID").forward(reques,
response)" in our application. "SymbolicID" is a name of a screen or a
request processor (the very same as those in Sun's PetStore). It worked okay
on JB241-TC3.2 but now I get a nice Tomcat error page, saying that the
requested resource was not available.

I experienced something similar when playing around with Jetty, but
prepending a "/" before the resource name helped there. I tried that too
with TC401, in vain.

Thanks in advance,
Jnos



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




Re: Re: Problem with POST and FORM based authentication

2002-02-06 Thread Anil Paul

Thanks for replying. I've checked this and the login page is fine.
==
html
body
h4Please login:/h4
form method=POST action=j_security_check
  input type=text name=j_username
  input type=password name=j_password
  input type=submit value=OK
/form
/body
/html
==

As I wrote earlier, it correctly authenticates the user but after 
authenticating, it does not forward (or redirect, whatever) to the servlet's 
POST method. Also, if I apply the contraint for GET, it is working fine.

Every thing is working fine if I use the BASIC method instread of FORM.

I suspect that it is a bug in tomcat implementation. Can somebody please 
verify it?

thanks,
Paul.


This is possibly a shot in the dark. But in your login.html page
have you defined FORM METHOD=POST...?
Hope this helps.
Thanks
RS



Anil Paul [EMAIL PROTECTED] on 02/02/2002 10:58:32 AM


To:   [EMAIL PROTECTED]
cc:

Subject:  Problem with POST and FORM based authentication

Dear all,
I am trying to apply a security contraint on POST requests to my
servlet. I

specifed it in my web.xml as:

security-constraint

   web-resource-collection
  web-resource-nameposttest/web-resource-name
  url-pattern/servlet/TestServlet/url-pattern
  http-methodPOST/http-method
   /web-resource-collection

   auth-constraint.../auth-constraint

   user-data-constraint.../user-data-constraint

/security-constraint

I defined the login config as follows:

login-config
   auth-methodFORM/auth-method
   realm-nametestrealm/realm-name
   form-login-config
 form-login-page/login.html/form-login-page
 form-error-page/error.html/form-error-page
   /form-login-config
/login-config

Problem:

When I send a POST request to TestServlet from the brower (by
submitting a
form), I get the login.html page as expected. However, when I submit
the
username/password , doGet of TestServlet is getting called instead
of
doPost()!

To be sure that my settings are all right, I changed the login-
config from
FORM to BASIC, and everything worked fine. ie., after submitting the
login
page, doPost of the servlet is called. So, it's only with the FORM
based
authentication that there is a problem.

I also tested this configuration on JRun and it also has the same
issue.
Can
somebody please throw some light on it? May be I am not doing
something
right.

Please help,
Paul.



_
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]




Re: apache + mod_SSL + tomcat

2002-02-06 Thread Dean Hiller

I think there is a way to solve the problem without shutting down port 8080.  Someone 
please verify this is true.  If I use a servlet, my servlet can determine if the 
connection is from 8443 or 8080 and if it is from 8080 can deny the user access right 
away.  Is this correct?  I was kind of waiting on an answer like this.
thanks,
Dean


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




RE: apache + mod_SSL + tomcat

2002-02-06 Thread Cressatti, Dominique

...my servlet can determine if the connection is from 8443 or 8080..
While not much clued up about java (but having seen a few examples)
I would think its possible. Then again why would you like to do it at
the servlet level? Why would you want to keep port 8080 opened when
80, 443 or 8443 are?

Dom

-Original Message-
From: Dean Hiller [mailto:[EMAIL PROTECTED]]
Sent: 06 February 2002 14:50
To: Tomcat Users List
Subject: Re: apache + mod_SSL + tomcat


I think there is a way to solve the problem without shutting down port 8080.  Someone 
please verify this is true.  If I use a servlet, my servlet can determine if the 
connection is from 8443 or 8080 and if it is from 8080 can deny the user access right 
away.  Is this correct?  I was kind of waiting on an answer like this.
thanks,
Dean


--
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 3.3 and 4.0, different behaviour when reloading the web.xml

2002-02-06 Thread WIPPERT,MAX (HP-Germany,ex1)

Hi Remy, thanx for you answer.

Using the Manager App with startstop or with reload reloads my Servlet,
destroy() and init() are processed.
Unfortunatly this does NOT force TC4.0 to reload the web.xml.
I think I will have a look at the nighly build...

Regards, Max



-Original Message-
From: Remy Maucherat [mailto:[EMAIL PROTECTED]]
Sent: Mittwoch, 6. Februar 2002 15:41
To: Tomcat Users List
Subject: Re: Tomcat 3.3 and 4.0, different behaviour when reloading the
web.xml


 Hello everyone.

 I'm new to this mailing List, and hopefully I don't bother anyone asking
 questions which have already been answered.

 I'm using Tomcat 4.0 standalone on Win2K and Tomcat 3.3 on MPE. I use
Tomcat
 to run JavaServlets.

 On MPE (it includes an Posix-Shell, behaves similar to Unix), when change
 the web.xml in the Folder WEB-INF Tomcat 3.3 notices this, destroys
 every Servlet mentioned in the web.xml and if the Servlet gets accessed
 again ist is reloaded. Same happens if I only touch the web.xml. This is
 visible becaus of some logging I coded in the init() and the destroy() of
 the Servlets.
 When do the same on my Win3K machine Tomcat 4.0 does NOT reload the
 web.xml. He does not destroy the classes neither.

 Has anyone an Idea how I can tell Tomcat4.0 to reload the web.xml? I
want
 him to read out the up-to-date Information I wrote into the web.xml.
 ...snip...
 context-param
 param-nameMyParameter/param-name
 param-valueUseThisParameterValue/param-value
 /context-param
 ...snip...

Either:
- Use the manager webapp (do a stop followed by a start)
- Use a nightly build (4.0-HEAD includes automatic deployment and web.xml
tracking)

Remy


--
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: SendMailServlet.class

2002-02-06 Thread chad kellerman

Sorry to have to write again but I am lost.  I set the CLASS_PATH.  That did not work, 
I downloaded the javamail, and moved allthe jar file to 
/usr/local/jakarta-tomcat-4.0/dist/common/lib/  which should have done it.  But not.

Still same error.  I open up SendMailServlet.java and looked:


import java.io.IOException;
import java.io.PrintWriter;
import javax.mail.Message;
import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeMessage;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

I have everything but the javax.mail.*.  Is there another package that I might be 
missing.  

That again for all the help...

Chad



On Wed, 6 Feb 2002 13:44:27 - 
Mark Meany [EMAIL PROTECTED] wrote:

  SendMailServlet.java:1: error:Cannot find type javax/mail/Message
 
 Try downloading the Sun JavaMail API and putting the jars somewhere visible
 to your application. All should be Ok after this.
 
 http://java.sun.com/products/javamail/index.html
 
 M.
 
 
 
 
 ***
 For more information on Ordnance Survey products and services,
 visit our web site at http://www.ordnancesurvey.co.uk
 ***
 
 
 
 
 --
 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]




[JBoss244-Tomcat401] compatibility issue (2)

2002-02-06 Thread Jarecsni Jnos

Hi,

a bit of additional info to the previous e-mail:
getRequestDispatcher works with static resources (html pages, JSP pages). It
only doesn't work with those "dynamic" resources (like screens, request
processors).

Cheers,
Jnos
PS: btw, now I don't even see clearly how on earth should
getRequestDispatcher find such resources... :) but it worked on 3.2.x



--
Jarecsni, Jnos
MORGAN HILL CONSULTING, Internet Applications Unit
mailto:[EMAIL PROTECTED]
http://morganhillconsulting.hu/ :: Phone+Fax: + 36 1 484 0392


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




RE: SendMailServlet.class

2002-02-06 Thread Michel

I believe you also need the activation.jar from Sun? Did you get that?

gr. Michel

 -Original Message-
 From: chad kellerman [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, February 06, 2002 16:09
 To: Tomcat Users List
 Subject: Re: SendMailServlet.class
 
 
 Sorry to have to write again but I am lost.  I set the 
 CLASS_PATH.  That did not work, I downloaded the javamail, and 
 moved allthe jar file to 
 /usr/local/jakarta-tomcat-4.0/dist/common/lib/  which should have 
 done it.  But not.
 
 Still same error.  I open up SendMailServlet.java and looked:
 
 
 import java.io.IOException;
 import java.io.PrintWriter;
 import javax.mail.Message;
 import javax.mail.Session;
 import javax.mail.Transport;
 import javax.mail.internet.InternetAddress;
 import javax.mail.internet.MimeMessage;
 import javax.naming.Context;
 import javax.naming.InitialContext;
 import javax.servlet.RequestDispatcher;
 import javax.servlet.ServletException;
 import javax.servlet.http.HttpServlet;
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
 
 I have everything but the javax.mail.*.  Is there another 
 package that I might be missing.  
 
 That again for all the help...
 
 Chad
 
 
 
 On Wed, 6 Feb 2002 13:44:27 - 
 Mark Meany [EMAIL PROTECTED] wrote:
 
   SendMailServlet.java:1: error:Cannot find type javax/mail/Message
  
  Try downloading the Sun JavaMail API and putting the jars 
 somewhere visible
  to your application. All should be Ok after this.
  
  http://java.sun.com/products/javamail/index.html
  
  M.
  
  
  
  
  ***
  For more information on Ordnance Survey products and services,
  visit our web site at http://www.ordnancesurvey.co.uk
  ***
  
  
  
  
  --
  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: SendMailServlet.class

2002-02-06 Thread Mark Meany

Ok, on the index page for JavaMail is a link to the Javabeans Activation
Framework, you need that as well:

http://java.sun.com/beans/glasgow/jaf.html. 

mail.jar is available in the JavaMail /lib directory, copy this to your:

activation.jar is available in the Javabeans Activation Framework
(Jaf-1.0.1) directory.

Copy these into the relevant /lib directory and off you go. I use TC3 so am
not sure if the common lib is $CATALINA_HOME/lib or
$CATALINA_HOME/common/lib! Of course you could just put them in the
$CATALINA_HOME/webapps/app/WEB-INF/lib directory, but you would have to
repeat for every app that was mail enabled.

M.

-Original Message-
From: chad kellerman [mailto:[EMAIL PROTECTED]]
Sent: 6 February 2002 15:09
To: Tomcat Users List
Subject: Re: SendMailServlet.class


Sorry to have to write again but I am lost.  I set the CLASS_PATH.  That did
not work, I downloaded the javamail, and moved allthe jar file to
/usr/local/jakarta-tomcat-4.0/dist/common/lib/  which should have done it.
But not.

Still same error.  I open up SendMailServlet.java and looked:


import java.io.IOException;
import java.io.PrintWriter;
import javax.mail.Message;
import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeMessage;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

I have everything but the javax.mail.*.  Is there another package that I
might be missing.  

That again for all the help...

Chad



On Wed, 6 Feb 2002 13:44:27 - 
Mark Meany [EMAIL PROTECTED] wrote:

  SendMailServlet.java:1: error:Cannot find type javax/mail/Message
 
 Try downloading the Sun JavaMail API and putting the jars somewhere
visible
 to your application. All should be Ok after this.
 
 http://java.sun.com/products/javamail/index.html
 
 M.
 
 
 
 
 ***
 For more information on Ordnance Survey products and services,
 visit our web site at http://www.ordnancesurvey.co.uk
 ***
 
 
 
 
 --
 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]




***
 This email/attachment(s) has been virus checked upon   
receipt at the OS and is free of all known viruses.

***





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




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




RE: [JBoss244-Tomcat401] compatibility issue

2002-02-06 Thread Jarecsni Jnos

Well, it seems I've sent my question too early on the list, sorry for that!
The solution is to include request.getServletPath() in the resource name.
So now I issue:

request.getRequestDispatcher(request.getServletPath()+"/"+dynamicResourceID)

Cheers, Jnos

--
Jarecsni, Jnos
MORGAN HILL CONSULTING, Internet Applications Unit
mailto:[EMAIL PROTECTED]
http://morganhillconsulting.hu/ :: Phone+Fax: + 36 1 484 0392

|-Original Message-
|From: Jarecsni Jnos [mailto:[EMAIL PROTECTED]]
|Sent: Wednesday, February 06, 2002 3:53 PM
|To: Tomcat Users List
|Subject: [JBoss244-Tomcat401] compatibility issue
|
|
|Hi,
|
|I've been upgrading to JBoss244 (with Catalina). Things are fine so far,
|except for this:
|
|we have a lot of
|"request.getRequestDispatcher("symbolicID").forward(reques,
|response)" in our application. "SymbolicID" is a name of a screen or a
|request processor (the very same as those in Sun's PetStore). It
|worked okay
|on JB241-TC3.2 but now I get a nice Tomcat error page, saying that the
|requested resource was not available.
|
|I experienced something similar when playing around with Jetty, but
|prepending a "/" before the resource name helped there. I tried that too
|with TC401, in vain.
|
|Thanks in advance,
|Jnos
|
|
|
|--
|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: SendMailServlet.class

2002-02-06 Thread chad kellerman

Boy, ever had on of those days.


  I was using the wrong javac.  Not the one with the JDK.

I used the correct one and now I am getting 


SendMailServlet.java:7: cannot resolve symbol
symbol  : class Message  
location: package mail
import javax.mail.Message;

For just about every import.

  I think I am going to call it a day. Atleast, with this part, and work on the SSL 
bit.  There seems to be a lot of info coming thru the past week about SSL.

Thanks for all the help.

Chad


On Wed, 6 Feb 2002 16:17:58 +0100
Michel [EMAIL PROTECTED] wrote:

 I believe you also need the activation.jar from Sun? Did you get that?
 
 gr. Michel
 
  -Original Message-
  From: chad kellerman [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, February 06, 2002 16:09
  To: Tomcat Users List
  Subject: Re: SendMailServlet.class
  
  
  Sorry to have to write again but I am lost.  I set the 
  CLASS_PATH.  That did not work, I downloaded the javamail, and 
  moved allthe jar file to 
  /usr/local/jakarta-tomcat-4.0/dist/common/lib/  which should have 
  done it.  But not.
  
  Still same error.  I open up SendMailServlet.java and looked:
  
  
  import java.io.IOException;
  import java.io.PrintWriter;
  import javax.mail.Message;
  import javax.mail.Session;
  import javax.mail.Transport;
  import javax.mail.internet.InternetAddress;
  import javax.mail.internet.MimeMessage;
  import javax.naming.Context;
  import javax.naming.InitialContext;
  import javax.servlet.RequestDispatcher;
  import javax.servlet.ServletException;
  import javax.servlet.http.HttpServlet;
  import javax.servlet.http.HttpServletRequest;
  import javax.servlet.http.HttpServletResponse;
  
  I have everything but the javax.mail.*.  Is there another 
  package that I might be missing.  
  
  That again for all the help...
  
  Chad
  
  
  
  On Wed, 6 Feb 2002 13:44:27 - 
  Mark Meany [EMAIL PROTECTED] wrote:
  
SendMailServlet.java:1: error:Cannot find type javax/mail/Message
   
   Try downloading the Sun JavaMail API and putting the jars 
  somewhere visible
   to your application. All should be Ok after this.
   
   http://java.sun.com/products/javamail/index.html
   
   M.
   
   
   
   
   ***
   For more information on Ordnance Survey products and services,
   visit our web site at http://www.ordnancesurvey.co.uk
   ***
   
   
   
   
   --
   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]




Error 200?

2002-02-06 Thread Gary Lawrence Murphy


I have a client who wrote a bunch of JSP pages that all return a
tomcat Error 200 in the middle of the headers; because the error
message is wrapped in blank lines, the message terminates the HTTP
headers causing itself and any subsequent headers to be printed on
the html page.

I search the archives and Google for this error and while I found
no information about a potential cause, I did see many JSP pages
which inadvertently got themselves indexed with this message as
their very first line ;)

What is Error 200?

-- 
Gary Lawrence Murphy [EMAIL PROTECTED] TeleDynamics Communications Inc
Business Innovations Through Open Source Systems: http://www.teledyn.com
Computers are useless.  They can only give you answers.(Pablo Picasso)


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




RE: Squeezing performance out of Tomcat

2002-02-06 Thread Amit Kelkar

One thing that is totally off left field, but may help...

We had a similar lag problem, - on one of our clients 100mb network with a
HP switch, we were getting lags on images etc.

The problem was that it would go to the central server to resolve all IP's
and especially domain names. Thus we simply excluded (specifically - do not
bypass all local addresses) all the relevant addresses. In internet
explorer - connection| Lan Settings | Advanced

As I said... after investigating for hours, if not days for trying to get
tomcat performance ... this is what I came down to.




-Original Message-
From: Pascal Forget [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 6 February 2002 2:24 PM
To: [EMAIL PROTECTED]
Subject: Squeezing performance out of Tomcat

Hi,

I am getting long response times from a JSP served by
Apache1.3.23 -  mod_jk - Tomcat 4.02 B2.  The page
always takes less than 100 ms to generate, but still it
takes more than 3 seconds for a browser (running on
the local 10MBit network) to get the result.  The html
page that is generated is less than 1kb.

Can someone offer tips on how we can squeeze more speed
out of Apache-Tomcat?  The problem is not due to
excessive logging, as the various logs are minuscule and
don't grow much in size with each new request.

 Any help or suggestions would be greatly appreciated.

Thanks,

Pascal Forget



--
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: SendMailServlet.class

2002-02-06 Thread Ralph Einfeldt

I guess that's still the same error, you get just a 
different message with the other jdk.

mail.jar in probaly not in the classpath when you call javac.

 -Ursprüngliche Nachricht-
 Von: chad kellerman [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 6. Februar 2002 16:42
 An: Tomcat Users List
 Betreff: Re: SendMailServlet.class
snip/ 
 SendMailServlet.java:7: cannot resolve symbol
 symbol  : class Message  
 location: package mail
 import javax.mail.Message;
snip/

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




Re: SendMailServlet.class

2002-02-06 Thread Nancy Crisostomo Martinez

Chad,
Although I have added the activation, mail and pop3 JAR files to the CLASSPATH, 
TOMCAT_HOME/lib, $TOMCAT_HOME/common/lib, $TOMCAT_HOME/webapps/app/WEB-INF/lib I
could run my application, but when I press a button to send the mail,  I got an error 
message on the console and the mail is not sended... I think the wrong thing
is the Tomcat configuration, isn't it? and not the libraries you need.

The error is the follow:
javax.mail.NoSuchProviderException: No provider for Address type: 
rfc822

Has anyone seen this?
Could anyone else fixed this?

Nancy.




chad kellerman wrote:

 Boy, ever had on of those days.

   I was using the wrong javac.  Not the one with the JDK.

 I used the correct one and now I am getting

 SendMailServlet.java:7: cannot resolve symbol
 symbol  : class Message
 location: package mail
 import javax.mail.Message;

 For just about every import.

   I think I am going to call it a day. Atleast, with this part, and work on the SSL 
bit.  There seems to be a lot of info coming thru the past week about SSL.

 Thanks for all the help.

 Chad

 On Wed, 6 Feb 2002 16:17:58 +0100
 Michel [EMAIL PROTECTED] wrote:

  I believe you also need the activation.jar from Sun? Did you get that?
 
  gr. Michel
 
   -Original Message-
   From: chad kellerman [mailto:[EMAIL PROTECTED]]
   Sent: Wednesday, February 06, 2002 16:09
   To: Tomcat Users List
   Subject: Re: SendMailServlet.class
  
  
   Sorry to have to write again but I am lost.  I set the
   CLASS_PATH.  That did not work, I downloaded the javamail, and
   moved allthe jar file to
   /usr/local/jakarta-tomcat-4.0/dist/common/lib/  which should have
   done it.  But not.
  
   Still same error.  I open up SendMailServlet.java and looked:
  
  
   import java.io.IOException;
   import java.io.PrintWriter;
   import javax.mail.Message;
   import javax.mail.Session;
   import javax.mail.Transport;
   import javax.mail.internet.InternetAddress;
   import javax.mail.internet.MimeMessage;
   import javax.naming.Context;
   import javax.naming.InitialContext;
   import javax.servlet.RequestDispatcher;
   import javax.servlet.ServletException;
   import javax.servlet.http.HttpServlet;
   import javax.servlet.http.HttpServletRequest;
   import javax.servlet.http.HttpServletResponse;
  
   I have everything but the javax.mail.*.  Is there another
   package that I might be missing.
  
   That again for all the help...
  
   Chad
  
  
  
   On Wed, 6 Feb 2002 13:44:27 -
   Mark Meany [EMAIL PROTECTED] wrote:
  
 SendMailServlet.java:1: error:Cannot find type javax/mail/Message
   
Try downloading the Sun JavaMail API and putting the jars
   somewhere visible
to your application. All should be Ok after this.
   
http://java.sun.com/products/javamail/index.html
   
M.
   
   
   
   
***
For more information on Ordnance Survey products and services,
visit our web site at http://www.ordnancesurvey.co.uk
***
   
   
   
   
--
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: apache + mod_SSL + tomcat

2002-02-06 Thread Anton Brazhnyk

Hi,

 -Original Message-
 From: Cressatti, Dominique [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, February 06, 2002 4:00 PM
 To: Tomcat Users List
 Subject: RE: apache + mod_SSL + tomcat
 
 
 Anton Brazhnyk answered it.
 I followed his advice.
 I basically commented out the HttpConnector running on port 8080
 and that was it.
 From that point I can't an http connection on port 8080
 but I can still access my app on port 80 (normal http)
 and port 443 (https).
 

So, do you want SSL-only for entire web application?
append something like following to your web.xml

  security-constraint

web-resource-collection
  web-resource-nameEntire application/web-resource-name
  url-pattern/*/url-pattern
  http-methodGET/http-method
/web-resource-collection

user-data-constraint
  descriptionUser data constraint description/description
  transport-guaranteeCONFIDENTIAL/transport-guarantee
/user-data-constraint

  /security-constraint


 One point that was made by somebody else what
 about the connection between apache and tomcat?
 Either mod_jk on port 8009 (or 8007) or mod_webapp
 on port 8008. As far as I know those connectors are
 not ssl enabled. 
 

These tasks are for your firewall :)

 Dom
 

Anton

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




Can I use Form based Authentication to secure my html pages

2002-02-06 Thread Satish Reddy

Hi,
I am trying to secure some of my web pages using the Form based Authentication 
provided by tomcat. I am using tomcat3.3a with Apache 1.3.12. I am able to restrict 
the jsp pages but not the html pages. Is this the way it works? If there is anything i 
need to set for html pages.

I will appreciate your help.

thank you,
satish.



WarpConnector: how to enable static content below dynamic content?

2002-02-06 Thread Michel

Howdy!

I'm Using Tomcat 4 with Apache 1.3 using the WarpConnector on RH7.2

Because the index page of my website is a JSP, I mapped the root of my
website to a tomcat webapp using:
WebAppDeploy mywebsite warpConnection /

Now I can't use any of the static pages from Apache, like /usage, /doc, etc,
even AFTER I define new aliases to explicitly define /usage etc. to their
locations.

Apparently everything below / is passed to tomcat regardlessly.

Does anyone have a better solution to allow the root index.jsp but still
allows for  static content from / and below?

TIA

gr. Michel


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




RE: SendMailServlet.class

2002-02-06 Thread Loïc Lefèvre

Could you send the e-mail address for recipient(s) and sender that you are
using?

-Message d'origine-
De : Nancy Crisostomo Martinez [mailto:[EMAIL PROTECTED]]
Envoyé : mercredi 6 février 2002 17:02
À : Tomcat Users List
Objet : Re: SendMailServlet.class


Chad,
Although I have added the activation, mail and pop3 JAR files to the
CLASSPATH, TOMCAT_HOME/lib, $TOMCAT_HOME/common/lib,
$TOMCAT_HOME/webapps/app/WEB-INF/lib I
could run my application, but when I press a button to send the mail,  I got
an error message on the console and the mail is not sended... I think the
wrong thing
is the Tomcat configuration, isn't it? and not the libraries you need.

The error is the follow:
javax.mail.NoSuchProviderException: No provider for Address
type: rfc822

Has anyone seen this?
Could anyone else fixed this?

Nancy.




chad kellerman wrote:

 Boy, ever had on of those days.

   I was using the wrong javac.  Not the one with the JDK.

 I used the correct one and now I am getting

 SendMailServlet.java:7: cannot resolve symbol
 symbol  : class Message
 location: package mail
 import javax.mail.Message;

 For just about every import.

   I think I am going to call it a day. Atleast, with this part, and work
on the SSL bit.  There seems to be a lot of info coming thru the past week
about SSL.

 Thanks for all the help.

 Chad

 On Wed, 6 Feb 2002 16:17:58 +0100
 Michel [EMAIL PROTECTED] wrote:

  I believe you also need the activation.jar from Sun? Did you get that?
 
  gr. Michel
 
   -Original Message-
   From: chad kellerman [mailto:[EMAIL PROTECTED]]
   Sent: Wednesday, February 06, 2002 16:09
   To: Tomcat Users List
   Subject: Re: SendMailServlet.class
  
  
   Sorry to have to write again but I am lost.  I set the
   CLASS_PATH.  That did not work, I downloaded the javamail, and
   moved allthe jar file to
   /usr/local/jakarta-tomcat-4.0/dist/common/lib/  which should have
   done it.  But not.
  
   Still same error.  I open up SendMailServlet.java and looked:
  
  
   import java.io.IOException;
   import java.io.PrintWriter;
   import javax.mail.Message;
   import javax.mail.Session;
   import javax.mail.Transport;
   import javax.mail.internet.InternetAddress;
   import javax.mail.internet.MimeMessage;
   import javax.naming.Context;
   import javax.naming.InitialContext;
   import javax.servlet.RequestDispatcher;
   import javax.servlet.ServletException;
   import javax.servlet.http.HttpServlet;
   import javax.servlet.http.HttpServletRequest;
   import javax.servlet.http.HttpServletResponse;
  
   I have everything but the javax.mail.*.  Is there another
   package that I might be missing.
  
   That again for all the help...
  
   Chad
  
  
  
   On Wed, 6 Feb 2002 13:44:27 -
   Mark Meany [EMAIL PROTECTED] wrote:
  
 SendMailServlet.java:1: error:Cannot find type
javax/mail/Message
   
Try downloading the Sun JavaMail API and putting the jars
   somewhere visible
to your application. All should be Ok after this.
   
http://java.sun.com/products/javamail/index.html
   
M.
   
   
   
   
***
For more information on Ordnance Survey products and services,
visit our web site at http://www.ordnancesurvey.co.uk
***
   
   
   
   
--
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: SendMailServlet.class

2002-02-06 Thread Markus Colombo

Hi,

Seems like you did not specify a correct host.
I specify the host like this:

Properties props = new Properties();
props.put(mail.host, mail.domain.ch);
Session session = Session.getDefaultInstance(props, null);
Message msg = new MimeMessage(session);
msg.setFrom(new InternetAddress((String) fields.get(from)));
...

Regards 
Markus
-Original Message-
From: Nancy Crisostomo Martinez [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Date: Wed, 06 Feb 2002 10:01:36 -0600
Subject: Re: SendMailServlet.class

 Chad,
 Although I have added the activation, mail and pop3 JAR files to the
 CLASSPATH, TOMCAT_HOME/lib, $TOMCAT_HOME/common/lib,
 $TOMCAT_HOME/webapps/app/WEB-INF/lib I
 could run my application, but when I press a button to send the mail,
  I got an error message on the console and the mail is not sended...
 I think the wrong thing
 is the Tomcat configuration, isn't it? and not the libraries you
 need.
 
 The error is the follow:
 javax.mail.NoSuchProviderException: No provider for
 Address type: rfc822
 
 Has anyone seen this?
 Could anyone else fixed this?
 
 Nancy.
 
 
 
 
 chad kellerman wrote:
 
  Boy, ever had on of those days.
 
I was using the wrong javac.  Not the one with the JDK.
 
  I used the correct one and now I am getting
 
  SendMailServlet.java:7: cannot resolve symbol
  symbol  : class Message
  location: package mail
  import javax.mail.Message;
 
  For just about every import.
 
I think I am going to call it a day. Atleast, with this part, and
 work on the SSL bit.  There seems to be a lot of info coming thru the
 past week about SSL.
 
  Thanks for all the help.
 
  Chad
 
  On Wed, 6 Feb 2002 16:17:58 +0100
  Michel [EMAIL PROTECTED] wrote:
 
   I believe you also need the activation.jar from Sun? Did you get
 that?
  
   gr. Michel
  
-Original Message-
From: chad kellerman [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 06, 2002 16:09
To: Tomcat Users List
Subject: Re: SendMailServlet.class
   
   
Sorry to have to write again but I am lost.  I set the
CLASS_PATH.  That did not work, I downloaded the javamail, and
moved allthe jar file to
/usr/local/jakarta-tomcat-4.0/dist/common/lib/  which should
 have
done it.  But not.
   
Still same error.  I open up SendMailServlet.java and looked:
   
   
import java.io.IOException;
import java.io.PrintWriter;
import javax.mail.Message;
import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeMessage;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
   
I have everything but the javax.mail.*.  Is there another
package that I might be missing.
   
That again for all the help...
   
Chad
   
   
   
On Wed, 6 Feb 2002 13:44:27 -
Mark Meany [EMAIL PROTECTED] wrote:
   
  SendMailServlet.java:1: error:Cannot find type
 javax/mail/Message

 Try downloading the Sun JavaMail API and putting the jars
somewhere visible
 to your application. All should be Ok after this.

 http://java.sun.com/products/javamail/index.html

 M.





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

 ***




 --
 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: SendMailServlet.class

2002-02-06 Thread John Wadkin

A quick rummage on the net turned this up...

http://java.sun.com/products/javamail/FAQ.html#securityManager

Just type the exception javax.mail.NoSuchProviderException into Google and
it turns up loads of stuff!

John
 
Quote for the week:
 
Experience is not what happens to a man; it is what a man does with what
happens to him.
 
Aldous Huxley, Texts and Pretexts , (1932) p. 5


-Original Message-
From: Nancy Crisostomo Martinez [mailto:[EMAIL PROTECTED]]
Sent: 06 February 2002 16:02
To: Tomcat Users List
Subject: Re: SendMailServlet.class


Chad,
Although I have added the activation, mail and pop3 JAR files to the
CLASSPATH, TOMCAT_HOME/lib, $TOMCAT_HOME/common/lib,
$TOMCAT_HOME/webapps/app/WEB-INF/lib I
could run my application, but when I press a button to send the mail,  I got
an error message on the console and the mail is not sended... I think the
wrong thing
is the Tomcat configuration, isn't it? and not the libraries you need.

The error is the follow:
javax.mail.NoSuchProviderException: No provider for Address
type: rfc822

Has anyone seen this?
Could anyone else fixed this?

Nancy.




chad kellerman wrote:

 Boy, ever had on of those days.

   I was using the wrong javac.  Not the one with the JDK.

 I used the correct one and now I am getting

 SendMailServlet.java:7: cannot resolve symbol
 symbol  : class Message
 location: package mail
 import javax.mail.Message;

 For just about every import.

   I think I am going to call it a day. Atleast, with this part, and work
on the SSL bit.  There seems to be a lot of info coming thru the past week
about SSL.

 Thanks for all the help.

 Chad

 On Wed, 6 Feb 2002 16:17:58 +0100
 Michel [EMAIL PROTECTED] wrote:

  I believe you also need the activation.jar from Sun? Did you get that?
 
  gr. Michel
 
   -Original Message-
   From: chad kellerman [mailto:[EMAIL PROTECTED]]
   Sent: Wednesday, February 06, 2002 16:09
   To: Tomcat Users List
   Subject: Re: SendMailServlet.class
  
  
   Sorry to have to write again but I am lost.  I set the
   CLASS_PATH.  That did not work, I downloaded the javamail, and
   moved allthe jar file to
   /usr/local/jakarta-tomcat-4.0/dist/common/lib/  which should have
   done it.  But not.
  
   Still same error.  I open up SendMailServlet.java and looked:
  
  
   import java.io.IOException;
   import java.io.PrintWriter;
   import javax.mail.Message;
   import javax.mail.Session;
   import javax.mail.Transport;
   import javax.mail.internet.InternetAddress;
   import javax.mail.internet.MimeMessage;
   import javax.naming.Context;
   import javax.naming.InitialContext;
   import javax.servlet.RequestDispatcher;
   import javax.servlet.ServletException;
   import javax.servlet.http.HttpServlet;
   import javax.servlet.http.HttpServletRequest;
   import javax.servlet.http.HttpServletResponse;
  
   I have everything but the javax.mail.*.  Is there another
   package that I might be missing.
  
   That again for all the help...
  
   Chad
  
  
  
   On Wed, 6 Feb 2002 13:44:27 -
   Mark Meany [EMAIL PROTECTED] wrote:
  
 SendMailServlet.java:1: error:Cannot find type
javax/mail/Message
   
Try downloading the Sun JavaMail API and putting the jars
   somewhere visible
to your application. All should be Ok after this.
   
http://java.sun.com/products/javamail/index.html
   
M.
   
   
   
   
***
For more information on Ordnance Survey products and services,
visit our web site at http://www.ordnancesurvey.co.uk
***
   
   
   
   
--
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]




AW: SendMailServlet.class

2002-02-06 Thread Ralph Einfeldt

That not his problem, he can't even compile the classes.

Saw your previous posts, but I can't help you as we didn't 
have any problems with JavaMail.

 -Ursprüngliche Nachricht-
 Von: Nancy Crisostomo Martinez [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 6. Februar 2002 17:02
 An: Tomcat Users List
 Betreff: Re: SendMailServlet.class
snip/
 Although I have added the activation, mail and pop3 JAR files 
 to the CLASSPATH, TOMCAT_HOME/lib, $TOMCAT_HOME/common/lib, 
 $TOMCAT_HOME/webapps/app/WEB-INF/lib I
 could run my application, but when I press a button to send 
 the mail,  I got an error message on the console and the mail 
 is not sended... I think the wrong thing
 is the Tomcat configuration, isn't it? and not the libraries you need.
 
 The error is the follow:
 javax.mail.NoSuchProviderException: No 
 provider for Address type: rfc822
snip/

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




Re: apache + mod_SSL + tomcat

2002-02-06 Thread Dean Hiller

In my app, we don't need everything to run over SSL and we are not using apache so we 
only have ports 80 and 8443.  I changed the default 8080 to 80 and should have 
probably changed 8443 to 443.  When SSL is not necessary, we don't use it as it slows 
down the downloading of the pages.
Dean


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




Re: apache + mod_SSL + tomcat

2002-02-06 Thread Dean Hiller

thanks for the xml Anton
that is much better than putting the code in the servlet, and is
easy to expand to a per servlet/html page basis.
thanks,
Dean


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




RE: WarpConnector: how to enable static content below dynamic content?

2002-02-06 Thread Mike Millson


In my experience, this isn't possible. If someone knows how to do it, I sure
would like to know also.

Mike

-Original Message-
From: Michel [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 06, 2002 11:10 AM
To: Tomcat Users List
Subject: WarpConnector: how to enable static content below dynamic
content?


Howdy!

I'm Using Tomcat 4 with Apache 1.3 using the WarpConnector on RH7.2

Because the index page of my website is a JSP, I mapped the root of my
website to a tomcat webapp using:
WebAppDeploy mywebsite warpConnection /

Now I can't use any of the static pages from Apache, like /usage, /doc, etc,
even AFTER I define new aliases to explicitly define /usage etc. to their
locations.

Apparently everything below / is passed to tomcat regardlessly.

Does anyone have a better solution to allow the root index.jsp but still
allows for  static content from / and below?

TIA

gr. Michel


--
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]




Catalina: cannot generate configuration for Apache

2002-02-06 Thread Jarecsni Jnos

Hi,

The Tomcat 4.0.1 documentation at
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/ajp.html suggest one
wanting to integrate TC401 with Apache the following:

[...]
To generate the global Apache directives (e.g. LoadModule, JkLogFile), you
define a Server Listener:

Server port="8005" shutdown="SHUTDOWN" debug="0"
Listener className="org.apache.ajp.tomcat4.config.ApacheConfig" /
[...]

But when you actually include this tag and start tomcat, you'll get a
ClassNotFoundException. I tried to locate the class in question but in vain.
No Jar contained it, and what's more I've found nothing regarding it on the
Internet.

Thanks in advance,
Jnos

PS: isn't it something that's only available in a source-distribution?

--
Jarecsni, Jnos
MORGAN HILL CONSULTING, Internet Applications Unit
mailto:[EMAIL PROTECTED]
http://morganhillconsulting.hu/ :: Phone+Fax: + 36 1 484 0392


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




Re: SendMailServlet.class

2002-02-06 Thread chad kellerman

Nancy,

   Actually, for some reason when I ran, ant dist, all the class files were created 
except the class file for  SendMailServlet.java.  I tried the create the class file by 
hand and that's where I ran into trouble

  I have tried a few things.  I am thinking I am going to keep at it today.  When I 
get it I'll post it.

  As always, If anyone gets it let us know.


CHad


On Wed, 06 Feb 2002 10:01:36 -0600
Nancy Crisostomo Martinez [EMAIL PROTECTED] wrote:

 Chad,
 Although I have added the activation, mail and pop3 JAR files to the CLASSPATH, 
TOMCAT_HOME/lib, $TOMCAT_HOME/common/lib, $TOMCAT_HOME/webapps/app/WEB-INF/lib I
 could run my application, but when I press a button to send the mail,  I got an 
error message on the console and the mail is not sended... I think the wrong thing
 is the Tomcat configuration, isn't it? and not the libraries you need.
 
 The error is the follow:
 javax.mail.NoSuchProviderException: No provider for Address type: 
rfc822
 
 Has anyone seen this?
 Could anyone else fixed this?
 
 Nancy.
 
 
 
 
 chad kellerman wrote:
 
  Boy, ever had on of those days.
 
I was using the wrong javac.  Not the one with the JDK.
 
  I used the correct one and now I am getting
 
  SendMailServlet.java:7: cannot resolve symbol
  symbol  : class Message
  location: package mail
  import javax.mail.Message;
 
  For just about every import.
 
I think I am going to call it a day. Atleast, with this part, and work on the 
SSL bit.  There seems to be a lot of info coming thru the past week about SSL.
 
  Thanks for all the help.
 
  Chad
 
  On Wed, 6 Feb 2002 16:17:58 +0100
  Michel [EMAIL PROTECTED] wrote:
 
   I believe you also need the activation.jar from Sun? Did you get that?
  
   gr. Michel
  
-Original Message-
From: chad kellerman [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 06, 2002 16:09
To: Tomcat Users List
Subject: Re: SendMailServlet.class
   
   
Sorry to have to write again but I am lost.  I set the
CLASS_PATH.  That did not work, I downloaded the javamail, and
moved allthe jar file to
/usr/local/jakarta-tomcat-4.0/dist/common/lib/  which should have
done it.  But not.
   
Still same error.  I open up SendMailServlet.java and looked:
   
   
import java.io.IOException;
import java.io.PrintWriter;
import javax.mail.Message;
import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeMessage;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
   
I have everything but the javax.mail.*.  Is there another
package that I might be missing.
   
That again for all the help...
   
Chad
   
   
   
On Wed, 6 Feb 2002 13:44:27 -
Mark Meany [EMAIL PROTECTED] wrote:
   
  SendMailServlet.java:1: error:Cannot find type javax/mail/Message

 Try downloading the Sun JavaMail API and putting the jars
somewhere visible
 to your application. All should be Ok after this.

 http://java.sun.com/products/javamail/index.html

 M.




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




 --
 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]




enforce clientAuth

2002-02-06 Thread Sasvari, Zsolt

I'm using Tomcat 3.3 and I configured an SSL connection. It works.
Then I set clientAuth=true for the http connector but nothing changed.
Tomcat didn't require a client cert or anything when I access from browser.
How can I enforce the client authentication? Any idea?

Thanks,
Zsolt Sasvari

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




RE: WarpConnector: how to enable static content below dynamic content?

2002-02-06 Thread Cressatti, Dominique

What about something like:
WebAppDeploy mywebsite warpConnection /*.jsp

Dom

-Original Message-
From: Michel [mailto:[EMAIL PROTECTED]]
Sent: 06 February 2002 16:10
To: Tomcat Users List
Subject: WarpConnector: how to enable static content below dynamic
content?


Howdy!

I'm Using Tomcat 4 with Apache 1.3 using the WarpConnector on RH7.2

Because the index page of my website is a JSP, I mapped the root of my
website to a tomcat webapp using:
WebAppDeploy mywebsite warpConnection /

Now I can't use any of the static pages from Apache, like /usage, /doc, etc,
even AFTER I define new aliases to explicitly define /usage etc. to their
locations.

Apparently everything below / is passed to tomcat regardlessly.

Does anyone have a better solution to allow the root index.jsp but still
allows for  static content from / and below?

TIA

gr. Michel


--
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: AW: SendMailServlet.class

2002-02-06 Thread chad kellerman

Ok,

Got it.  Geesh, computers really get on my nerves.  ;^)

I saw that SendMailServlet.java needed two jar files to compile.  And since no matter 
what I did to set the CLASS_PATH it would not work. So I added the jar files in the 
line:

/usr/java/jdk1.3.1_01/bin/javac -classpath 
../../../../common/lib/mail.jar:../../../../common/lib/servlet.jar SendMailServlet.java

THis is on Linux, I think windows needs a ; instead of a :

I hope this helps everyone.  Now on the SSL.

Chad



My other computer is your linux box.



On Wed, 6 Feb 2002 17:14:31 +0100
Ralph Einfeldt [EMAIL PROTECTED] wrote:

 That not his problem, he can't even compile the classes.
 
 Saw your previous posts, but I can't help you as we didn't 
 have any problems with JavaMail.
 
  -Ursprüngliche Nachricht-
  Von: Nancy Crisostomo Martinez [mailto:[EMAIL PROTECTED]]
  Gesendet: Mittwoch, 6. Februar 2002 17:02
  An: Tomcat Users List
  Betreff: Re: SendMailServlet.class
 snip/
  Although I have added the activation, mail and pop3 JAR files 
  to the CLASSPATH, TOMCAT_HOME/lib, $TOMCAT_HOME/common/lib, 
  $TOMCAT_HOME/webapps/app/WEB-INF/lib I
  could run my application, but when I press a button to send 
  the mail,  I got an error message on the console and the mail 
  is not sended... I think the wrong thing
  is the Tomcat configuration, isn't it? and not the libraries you need.
  
  The error is the follow:
  javax.mail.NoSuchProviderException: No 
  provider for Address type: rfc822
 snip/
 
 --
 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]




standardContext.namingInitFailed

2002-02-06 Thread Jack Lauman

I'm getting the following error in my log files after each webapp is
loaded:

StandardContext[/soap]: Cannot find message associated with key
standardContext.namingInitFailed

I assume this has something to do with JNDI... how can I fix it?

Jack

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




getParameterMap() question

2002-02-06 Thread Steven Elliott

Sorry if this is somewhat offtopic but maybe some experts here can help
clear this up for me.

I would like to use the ServletRequest.getParameterMap() in a JSP page using
the request object.

I post a form in the previous page using the POST method and the request in
processed with the following code:

Map map = request.getParameterMap();
Iterator itr = map.entrySet().iterator();
while (itr.hasNext()) {
Map.Entry entry = (Map.Entry)itr.next();
System.out.println(entry.getKey()+ = +entry.getValue());
}

What gets printout is the following:

name = [Ljava.lang.String;@5349e2
surName = [Ljava.lang.String;@17d3f0
etc.

So the key is correctly output but the value is not?  If I try this with
something like System.getProperties() both the key and value are output
correctly.

So what is the secret for making this work with the request object?

TIA

Steven


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




Re: getParameterMap() question

2002-02-06 Thread Steven Elliott

Never mind.  I should know an array when I see one 8§.

Apologies for the extra traffic

Steven


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




Re: SendMailServlet.class

2002-02-06 Thread RSEQUEIRA


Shouldn't it be CLASSPATH instead of CLASS_PATH





chad kellerman [EMAIL PROTECTED] on 02/06/2002 09:09:15 AM

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:   Tomcat Users List [EMAIL PROTECTED]
cc:

Subject:  Re: SendMailServlet.class

Sorry to have to write again but I am lost.  I set the CLASS_PATH.  That
did not work, I downloaded the javamail, and moved allthe jar file to
/usr/local/jakarta-tomcat-4.0/dist/common/lib/  which should have done it.
But not.

Still same error.  I open up SendMailServlet.java and looked:


import java.io.IOException;
import java.io.PrintWriter;
import javax.mail.Message;
import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeMessage;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

I have everything but the javax.mail.*.  Is there another package that
I might be missing.

That again for all the help...

Chad



On Wed, 6 Feb 2002 13:44:27 -
Mark Meany [EMAIL PROTECTED] wrote:

  SendMailServlet.java:1: error:Cannot find type javax/mail/Message

 Try downloading the Sun JavaMail API and putting the jars somewhere
visible
 to your application. All should be Ok after this.

 http://java.sun.com/products/javamail/index.html

 M.




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




 --
 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 as an NT service

2002-02-06 Thread Ken Sanderson

Thanks for the help I recieved early, found out why I couldnt get it to work
with JDK and it would work with JRE. Turns out the software sent the
Enterprise Edition not the Standard Edition which has all the bin files I
needed, at any rate, all working. I can now run tomcat using the startup
command.

However, still having problems getting the NT service to work. Originally I
had the service working, just encountered the service shutting down when you
logged out problem. To fix this I upgraded to the new JDK, and now cant
start via the service at all. Its not exactly a complex install process to
get it to work with jk_nt_service.exe so I assume I am missing something
silly :/ I have edited the wrapper.properites to reflect the new jdk
directory, my path's are correct, java_home and tomcat_home both set
properly. Yet every time I try and start the service I get a 1067
termination error both from services window and using net start. Tomcat
works fine if I use the startup command from the tomcat bin, so running out
of options as to what it might be.

Suggestions? Working on NT 4, tomcat3.2.4, JDK 1.3.1.

Thanks,

Ken


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




Verisign CSR generation for Tomcat

2002-02-06 Thread Garske, Tom


I've been trying to locate any documentation on how generate an SSL 
certificate(CSR)that can be submitted to Verisign via tomcat, however I've been 
unsuccessful in doing so.  The link below, only shows how to create a keystore and 
this obviously cannot be submitted to a CA. If someone could forward any links or 
examples on how to do this, or if it's even possible, it would be much appreciated.
http://jakarta.apache.org/tomcat/tomcat-3.2-doc/tomcat-ssl-howto.html

Thank you


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




RE: Tomcat as an NT service

2002-02-06 Thread Alex Perez

Have you got anything in the log for the service?


Alex

-Original Message-
From: Ken Sanderson [mailto:[EMAIL PROTECTED]]
Sent: 06 February 2002 19:16
To: Tomcat Users List
Subject: Tomcat as an NT service


Thanks for the help I recieved early, found out why I couldnt get it to work
with JDK and it would work with JRE. Turns out the software sent the
Enterprise Edition not the Standard Edition which has all the bin files I
needed, at any rate, all working. I can now run tomcat using the startup
command.

However, still having problems getting the NT service to work. Originally I
had the service working, just encountered the service shutting down when you
logged out problem. To fix this I upgraded to the new JDK, and now cant
start via the service at all. Its not exactly a complex install process to
get it to work with jk_nt_service.exe so I assume I am missing something
silly :/ I have edited the wrapper.properites to reflect the new jdk
directory, my path's are correct, java_home and tomcat_home both set
properly. Yet every time I try and start the service I get a 1067
termination error both from services window and using net start. Tomcat
works fine if I use the startup command from the tomcat bin, so running out
of options as to what it might be.

Suggestions? Working on NT 4, tomcat3.2.4, JDK 1.3.1.

Thanks,

Ken


--
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.0 Servlet not recognized

2002-02-06 Thread Stefan Langer

Hello

I'm using Tomcat 4.0 standalone for developement under Eclipse. I have an
application that uses a single Servlet named Dispatcher as a request
dispatcher.
The Servlet extends HttpServlet. When I start tomcat as an Application in
Eclipse Tomcat starts up and trys to load the Servlet. The loading process
throws an exception saying that dispatcher is not a servlet.
Tomcat produces the following output at start up:

HttpConnector Opening server socket on all host IP addresses
HttpConnector Opening server socket on all host IP addresses
Starting service Tomcat-Standalone
Apache Tomcat/4.0
StandardHost[localhost]: Installing web application at context path
/AFW_Sample from URL file: C:\eclipse\workspace\AFW_Sample
WebappLoader[/AFW_Sample]: Deploying class repositories to work directory
C:\eclipse\workspace\work\localhost\AFW_Sample
StandardManager[/AFW_Sample]: Seeding random number generator class
java.security.SecureRandom
StandardManager[/AFW_Sample]: Seeding of random number generator has been
completed
ContextConfig[/AFW_Sample]: Missing default web.xml, using application
web.xml only
ContextConfig[/AFW_Sample]: Added certificates - request attribute Valve
StandardWrapper[/AFW_Sample:jsp]: Using Jasper classloader for servlet jsp
jsp: init
StandardWrapper[/AFW_Sample:default]: Loading container servlet default
default: init
StandardWrapper[/AFW_Sample:disp]: Marking servlet disp as unavailable
StandardContext[/AFW_Sample]: Servlet /AFW_Sample threw load() exception
javax.servlet.ServletException: Class de.innuendo.uifw.http.Dispatcher is
not a Servlet
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:836)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3292)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3402)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:415)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:643)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:300)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:389)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:232)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:155)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307)
at org.apache.catalina.core.StandardService.start(StandardService.java:388)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:505)
at org.apache.catalina.startup.Catalina.start(Catalina.java:776)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:218)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at de.innuendo.uifw.generator.test.Start.main(Start.java:51)
- Root Cause -
java.lang.ClassCastException: de.innuendo.uifw.http.Dispatcher
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:832)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3292)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3402)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:415)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:643)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:300)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:389)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:232)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:155)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at 

RE: Tomcat as an NT service

2002-02-06 Thread Ken Sanderson

Nothing in my system logs and the only change to the other log files in the
logs folder of tomcat is to jvm.stderr. The message added is:

javax.xml.parsers.FactoryConfigurationError:
java.lang.ClassNotFoundException:
org.apache.crimson.jaxp.SAXParserFactoryImpl
at
javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:120)
at org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:210)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:187)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:240)
Exception in thread main

Thanks,

Ken

-Original Message-
From: Alex Perez [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 06, 2002 12:22 PM
To: Tomcat Users List
Subject: RE: Tomcat as an NT service


Have you got anything in the log for the service?


Alex

-Original Message-
From: Ken Sanderson [mailto:[EMAIL PROTECTED]]
Sent: 06 February 2002 19:16
To: Tomcat Users List
Subject: Tomcat as an NT service


Thanks for the help I recieved early, found out why I couldnt get it to work
with JDK and it would work with JRE. Turns out the software sent the
Enterprise Edition not the Standard Edition which has all the bin files I
needed, at any rate, all working. I can now run tomcat using the startup
command.

However, still having problems getting the NT service to work. Originally I
had the service working, just encountered the service shutting down when you
logged out problem. To fix this I upgraded to the new JDK, and now cant
start via the service at all. Its not exactly a complex install process to
get it to work with jk_nt_service.exe so I assume I am missing something
silly :/ I have edited the wrapper.properites to reflect the new jdk
directory, my path's are correct, java_home and tomcat_home both set
properly. Yet every time I try and start the service I get a 1067
termination error both from services window and using net start. Tomcat
works fine if I use the startup command from the tomcat bin, so running out
of options as to what it might be.

Suggestions? Working on NT 4, tomcat3.2.4, JDK 1.3.1.

Thanks,

Ken


--
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.0 Apache 2.0

2002-02-06 Thread Lajos Moczar

Hi all -

Has anyone been successful in getting Tomcat 4.0 to work with Apache 
2.0? I downloaded the mod_webapp source code (the 1.0.1 tarball as well 
as the latest from cvs) and compiled it, but libtool would not build a 
dynamic library. I have no idea why - it complains about something not 
being dynamically built, but it doesn't say what. I'm using libtool 1.4 
and the apxs in the Apache 2.0 directory.

Any pointers/hints/ideas will be greatly appreciated.

Lajos


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




Init method of servlet called twice?

2002-02-06 Thread Donie Kelly

Hi all

Can anybody tell me why the init method can be called twice in a servlet. I
am loading the servlet on startup and init is first called there.

The first request to the servlet then calls the same init method again?
Please help. I cannot init twice.

Thanks
Donie

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




Re: Init method of servlet called twice?

2002-02-06 Thread Dean Hiller

I remember dealing with problems like that before but they are vague in my head.  Your 
problem is better posted on the java forum I think.  I am trying to recall what 
happened.  It was something like I would hit back in my browser and then forward so IE 
would call init again.  I remember having many problems with this and netscape and IE 
behaved differently.  Search through some of the archives on the java forum and post 
there if you can't find it in the archives.
Dean


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




web hosting

2002-02-06 Thread Mark Gordon


I have a friend that is hosting a apache/tomcat machine for a couple of 
people.

We are running apache and tomcat 4.0.1

Does anyone know a resource for information on how to set this 
environment up so that each user can manage his/her webapps within 
tomcat.  We cannot restart tomcat (no password) and it is a pain to 
email our friend and have him do it all the time.  Plus restarting 
tomcat shuts everyone else down :-(

We are using manager but we can't redeploy because of apache as the web 
server.  We can't add new web apps for this reason also.

Thanks
Mark


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




RE: Tomcat as an NT service

2002-02-06 Thread Randy Layman


This would indicate that Tomcat can't read the server.xml file
because its missing the XML parser.  Check your wrapper.properties file and
make sure that all the TOMCAT_HOME\lib jar files are mentioned where it
builds the classpath.

Randy


 -Original Message-
 From: Ken Sanderson [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, February 06, 2002 2:43 PM
 To: Tomcat Users List
 Subject: RE: Tomcat as an NT service
 
 
 Nothing in my system logs and the only change to the other 
 log files in the
 logs folder of tomcat is to jvm.stderr. The message added is:
 
 javax.xml.parsers.FactoryConfigurationError:
 java.lang.ClassNotFoundException:
 org.apache.crimson.jaxp.SAXParserFactoryImpl
   at
 javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactor
 y.java:120)
   at 
 org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:210)
   at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:187)
   at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:240)
 Exception in thread main
 
 Thanks,
 
 Ken
 
 -Original Message-
 From: Alex Perez [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, February 06, 2002 12:22 PM
 To: Tomcat Users List
 Subject: RE: Tomcat as an NT service
 
 
 Have you got anything in the log for the service?
 
 
 Alex
 
 -Original Message-
 From: Ken Sanderson [mailto:[EMAIL PROTECTED]]
 Sent: 06 February 2002 19:16
 To: Tomcat Users List
 Subject: Tomcat as an NT service
 
 
 Thanks for the help I recieved early, found out why I couldnt 
 get it to work
 with JDK and it would work with JRE. Turns out the software sent the
 Enterprise Edition not the Standard Edition which has all the 
 bin files I
 needed, at any rate, all working. I can now run tomcat using 
 the startup
 command.
 
 However, still having problems getting the NT service to 
 work. Originally I
 had the service working, just encountered the service 
 shutting down when you
 logged out problem. To fix this I upgraded to the new JDK, 
 and now cant
 start via the service at all. Its not exactly a complex 
 install process to
 get it to work with jk_nt_service.exe so I assume I am 
 missing something
 silly :/ I have edited the wrapper.properites to reflect the new jdk
 directory, my path's are correct, java_home and tomcat_home both set
 properly. Yet every time I try and start the service I get a 1067
 termination error both from services window and using net 
 start. Tomcat
 works fine if I use the startup command from the tomcat bin, 
 so running out
 of options as to what it might be.
 
 Suggestions? Working on NT 4, tomcat3.2.4, JDK 1.3.1.
 
 Thanks,
 
 Ken
 
 
 --
 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: Init method of servlet called twice?

2002-02-06 Thread Randy Layman


Craig posted a technical explanation of this about two weeks ago, so
search the archives for that, but the short version is that for every unique
address that your servlet responds to the init method will be called.
Having an alias for your servlet (so you can pass parameters) and using the
servlet invoker (i.e. /servlets/com.whatever) is the most common way of
having this happen.  To solve your problem you need to modify the web.xml
file so that your servlet is only referenced once.

Randy


 -Original Message-
 From: Donie Kelly [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, February 06, 2002 2:42 PM
 To: 'Tomcat Users List'
 Subject: Init method of servlet called twice?
 
 
 Hi all
 
 Can anybody tell me why the init method can be called twice 
 in a servlet. I
 am loading the servlet on startup and init is first called there.
 
 The first request to the servlet then calls the same init 
 method again?
 Please help. I cannot init twice.
 
 Thanks
 Donie
 
 --
 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: Init method of servlet called twice?

2002-02-06 Thread Donie Kelly

Thanks Dean but I'm not using IE or Netscape. I'm using a different client
which we wrote ourselves. The client hasn't changed but I've done something
to cause this behaviour as is didn't do it yesterday

Thanks
Donie


-Original Message-
From: Dean Hiller [mailto:[EMAIL PROTECTED]]
Sent: February 06, 2002 19:48
To: Tomcat Users List
Subject: Re: Init method of servlet called twice?


I remember dealing with problems like that before but they are vague in my
head.  Your problem is better posted on the java forum I think.  I am trying
to recall what happened.  It was something like I would hit back in my
browser and then forward so IE would call init again.  I remember having
many problems with this and netscape and IE behaved differently.  Search
through some of the archives on the java forum and post there if you can't
find it in the archives.
Dean


--
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: WarpConnector: how to enable static content below dynamic content?

2002-02-06 Thread Michel

This seems to work!

Thank you very much.

gr. Michel

 -Original Message-
 From: Cressatti, Dominique [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, February 06, 2002 19:05
 To: Tomcat Users List
 Subject: RE: WarpConnector: how to enable static content below dynamic
 content?
 
 
 What about something like:
   WebAppDeploy mywebsite warpConnection /*.jsp
 
 Dom
 
 -Original Message-
 From: Michel [mailto:[EMAIL PROTECTED]]
 Sent: 06 February 2002 16:10
 To: Tomcat Users List
 Subject: WarpConnector: how to enable static content below dynamic
 content?
 
 
 Howdy!
 
 I'm Using Tomcat 4 with Apache 1.3 using the WarpConnector on RH7.2
 
 Because the index page of my website is a JSP, I mapped the root of my
 website to a tomcat webapp using:
   WebAppDeploy mywebsite warpConnection /
 
 Now I can't use any of the static pages from Apache, like /usage, 
 /doc, etc,
 even AFTER I define new aliases to explicitly define /usage etc. to their
 locations.
 
 Apparently everything below / is passed to tomcat regardlessly.
 
 Does anyone have a better solution to allow the root index.jsp but still
 allows for  static content from / and below?
 
 TIA
 
 gr. Michel
 
 
 --
 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: Mapping multiple hosts to single Host

2002-02-06 Thread August Detlefsen

In httpd.conf, inside each VirtualHost, you can set the ServerAlias
directive - it will allow the same VirtualHost to recognize multiple
domain names: 

NameVirtualHost 12.34.56.78

VirtualHost 12.34.56.78
ServerName myCompany.com
ServerAlias myCompany.net myCompany.org myOtherCompany.com

#deploy webapps for this site
WebAppDeploy ROOT  conn  /
WebAppDeploy manager   conn  /manager

/VirtualHost

This way you can have multiple domains point to the same Host in
server.xml. I am not sure if Apache passes the original domain name or
the aliased one to Tomcat though. 

Otherwise you will have to create multiple Hosts in server.xml and
deploy your context in each one. Does anyone know how to configure TC
to recognize the same webapp across all Hosts?

-August


--- [EMAIL PROTECTED] wrote:
 I've read many posts about virtual hosts and Tomcat with and without 
 mod_jk/mod_webapp, but haven't found a real answer to my question. 
 We want to 
 map multiple hosts to a single Host config in server.xml.  I
 thought the 
 defaultHost setting would do this, but it doesn't work.  If I have
 DNS entries 
 for server1.xyz.com and server2.abc.com that point to the same IP
 address and 
 an Apache virtual host and on to mod_webapp, if I don't define and
 Host 
 settings, Tomcat will serve out any web apps in the webapps
 directory.  The 
 problem is that I'd like to run the manager app, but that requires 
 privileged=true which (as far as I know) must be done in a
 HostContext 
 config.  Basically we want to map multiple domains to a webapp and
 based on 
 the host value, send a response out.  Kind of along the lines of
 Apache's 
 wildcard host syntax.
 
 Hope the post isn't too confusing.  Any ideas?
 
 -Pat
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

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




Re: web hosting

2002-02-06 Thread Micael Padraig Og mac Grene

Why does the use of Apache preclude installing and so on web apps?

At 12:54 PM 2/6/02 -0700, you wrote:

I have a friend that is hosting a apache/tomcat machine for a couple of 
people.

We are running apache and tomcat 4.0.1

Does anyone know a resource for information on how to set this environment 
up so that each user can manage his/her webapps within tomcat.  We cannot 
restart tomcat (no password) and it is a pain to email our friend and have 
him do it all the time.  Plus restarting tomcat shuts everyone else down :-(

We are using manager but we can't redeploy because of apache as the web 
server.  We can't add new web apps for this reason also.

Thanks
Mark


--
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: Init method of servlet called twice?

2002-02-06 Thread Donie Kelly

Yes, Randy, you're right I have two mappings for the same servlet. Can you
tell me how to search the archives. Where are they? I only receive this list
by mail and have just deleted last weeks list.

Thanks for the help
Donie


-Original Message-
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: February 06, 2002 19:11
To: 'Tomcat Users List'
Subject: RE: Init method of servlet called twice?



Craig posted a technical explanation of this about two weeks ago, so
search the archives for that, but the short version is that for every unique
address that your servlet responds to the init method will be called.
Having an alias for your servlet (so you can pass parameters) and using the
servlet invoker (i.e. /servlets/com.whatever) is the most common way of
having this happen.  To solve your problem you need to modify the web.xml
file so that your servlet is only referenced once.

Randy


 -Original Message-
 From: Donie Kelly [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, February 06, 2002 2:42 PM
 To: 'Tomcat Users List'
 Subject: Init method of servlet called twice?
 
 
 Hi all
 
 Can anybody tell me why the init method can be called twice 
 in a servlet. I
 am loading the servlet on startup and init is first called there.
 
 The first request to the servlet then calls the same init 
 method again?
 Please help. I cannot init twice.
 
 Thanks
 Donie
 
 --
 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]




  1   2   >