Re: calling a config file from bean

2001-07-08 Thread Wyn Easton

Look at ResourceBundle in the java docs.
You can use the getBundle()method to load property
files.  The classpath is searched for the property
file.  So you can put the property file in you web
apps. classes directory or in a jar file under
lib.

--- Batsheva Raviv [EMAIL PROTECTED] wrote:
 has anyone wrote a method to read a config file from
 a bean?
 how can I call a config file from the bean.
 if I use Servlet I can use the web.xml file, but I
 call a bean file from the
 jsp page.
 where should I put the config file? do I have to
 hard code the path to the
 config file.
 
 
 
 Thank you,
 Batsheva
 


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/



Hi vinay........

2001-07-08 Thread praveen



Hi vinay 
Thanks a lot for u r helpful response 
...I installed Tomcat 3.2 and jdk1.2.2 ...
U told me copy classes12.zip in 
TOMCAT_HOME/lib/apps but apps directory is not in lib .So can 
i copy that zip file directly in TOMCAT_HOME/lib directory? and one more 
thingfor classpath writing there are two files workers.properties and 
wrappers.properties are there with classpath parameterin 
TOMCAT_HOME/conf dir..So which file i have to edit.can u send me the 
classspath string for oracle connectivity ...and where to write that 
one...
I will wait for u r response

Thanks  Regards
Praveen


- Original Message - 

  From: 
  Vinay Menon 
  
  To: [EMAIL PROTECTED] 
  
  Sent: Saturday, July 07, 2001 5:21 
  PM
  Subject: Re: need some help on 
  tomcat
  
  dump your oracle drivers [classes12.zip or 
  classes111.zip] inTOMCAT_HOME/lib/apps 
  or under TOMCAT_HOME/webapps/yourwebappname/WEB-INF/lib.
  
  Vinay
  
  
  
  1. If you have a jar file you want to share across all your webapps, just 
  put it under TOMCAT_HOME/lib/apps
  2. If you have a jar file you want to share across all your webapps and the 
  servlet engine, just put it under TOMCAT_HOME/lib/common
  3. If you have class files that you want to share across all your webapps, 
  just put it under any folder you wish to but make sure that the System 
  property 'org.apache.tomcat.apps.classpath' points to this directory.
  4. If you have class files that you want to share across all your webapps 
  and the servlet engine, just put it under any folder you wish to but make sure 
  that the System property 'org.apache.tomcat.common.classpath' points to this 
  directory.
  
- Original Message - 
From: 
praveen 
To: [EMAIL PROTECTED] 

Sent: Saturday, July 07, 2001 7:22 
AM
Subject: need some help on tomcat


Hi
I am very new to linux 
environment..Recently i downloaded tomcat and installed on my linuxbox...Now 
i want to configure connectivity between tomcat and oracle 
database...Anybody pls help me out how to do this and the classpath 
variables and any other settings to configure...
Pls do needful...

Thanks  Regards
Praveen


RE: Hi vinay........ (Subj: jar files)

2001-07-08 Thread Michael Wentzel

 Thanks a lot for u r helpful response ...I installed Tomcat 3.2 and
jdk1.2.2 ...
 U told me copy classes12.zip in TOMCAT_HOME/lib/apps but  apps directory
is not in  lib  .So can i copy that zip file directly in TOMCAT_HOME/lib
directory? and one 
 more thing for classpath writing there are two files workers.properties
and 
 wrappers.properties are there with classpath parameter  in
TOMCAT_HOME/conf dir..So  which file i have to edit.can u send me the
classspath string for oracle 
 connectivity ...and where to write that one...
 I will wait for u r response

It doesn't matter where you put the zip file it won't be picked up
automatically.  What you are going to have to do is rename the .zip file to
a .jar file(all a jar file is a zip file of classes/manifest(s)), and put it
in TOMCAT_HOME/lib.

BTW, a couple pointers:
1. This topic has been covered in the list before.  If you search one of the
archivesfor this list you can find your solution immediately as
apposed to waiting for  someone to respond and you also reduce the lists
traffic.
Documentation - List Archive - List.
2. It is a list guideline(which you should have read before subscribing)
thatpostings to the list should be plain text(no html).


--- 
Michael Wentzel 
Software Developer 
Software As We Think - http://www.aswethink.com 



precompiled JSP pages

2001-07-08 Thread Eitan Ben-Noach


We want to deploy our product with precompiled JSP pages, in order to
avoid the need of JDK 1.2.2 ( which is not redistributable ), or more
precise the need for tools.jar that let us compile JSPs.

Do you see any problem with this? Does everybody are doing so? and if
not why, since it seems to be the best due the fast execution and the
inability of the user to change our product appearence.

Regards,

Eitan Ben-Noach
 




BUG - valueUnbound e session timeout

2001-07-08 Thread tomcat_sergio tomcat

There is a bug in Tomcat 3.2.2.

The session is not timing out and valueUnbound is not being called, even 
with setMaxInactiveInterval(10).

This bug only happens in windows 2000.

Pretty annoying stuff...

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




need help about tomcat4

2001-07-08 Thread khurram mirza

hello,
i 've unzipped tomcat4 on my system and created classes forlder in its root dircetory 
for having servlet classes.i put all servlet classes in that folder.when i access 
servlet it give status code 404(i.e resource /servlet/classname) not found.what is the 
problem with it.

khurram mirza

_
Free Java training and tutorials ---  http://www.javacoffeebreak.com/



RE: need help about tomcat4

2001-07-08 Thread Michael Wentzel

 i 've unzipped tomcat4 on my system and created classes 
 forlder in its root dircetory for having servlet classes.i 
 put all servlet classes in that folder.when i access servlet 
 it give status code 404(i.e resource /servlet/classname) not 
 found.what is the problem with it.

Classes go into either TOMCAT_HOME/classes (for tomcat system
classes) and TOMCAT_HOME/webapps/{myapp}/WEB-INF/classes/ (for
application classes).  Therefore you servlet classes should
be in webapps/{myapp}/WEB-INF/classes/ where {myapp} is replaced
with the correct webapp for the particular context you are
working with.

I think, maybe, it's time to go back and read the docs... ;)


---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com



RE: BUG - valueUnbound e session timeout

2001-07-08 Thread Michael Wentzel

 There is a bug in Tomcat 3.2.2.
 
 The session is not timing out and valueUnbound is not being 
 called, even 
 with setMaxInactiveInterval(10).
 
 This bug only happens in windows 2000.
 
 Pretty annoying stuff...

I run windoze2000 and tomcat 3.2.2 and do not have this problem.
I've never checked, explicitly, if valueUnbound is getting called
but the session timeout event does occur so I just take the specs
word for it that valueUnbound get called(since I don't do anything
special with SessionEvents).

Are you sure this is what is happening?  What, exactly, is the
action you take and the behavior that leads you to believe this is
what is happening?  What JDK( Sun/IBM/1.? ) are you using?


---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com



Tomcat 3.2.2 on IIS 5

2001-07-08 Thread David Treves



Hi, I am sorry to raise such an issue as I am sure 
that it was well handled so far, only that I couldn't find any solution to my 
problem in any archive...

I want to have the Tomcat 3.2.2 to serve IIS 5 (out 
of process). I followed the instructions too well... But (there is always a 
'but', ha?!) even when I do see the examples context I get an error at the isapi 
log and at the IIS log:

ISAPI LOG

[jk_uri_worker_map.c (335)]: 
jk_uri_worker_map_t::uri_worker_map_close, NULL 
parameter[jk_uri_worker_map.c (185)]: In 
jk_uri_worker_map_t::uri_worker_map_free, NULL parameters[jk_connect.c 
(143)]: jk_open_socket, connect() failed errno = 61[jk_ajp12_worker.c 
(152)]: In jk_endpoint_t::service, Error sd = -1[jk_isapi_plugin.c (554)]: 
HttpExtensionProc error, service() failed
IIS LOG
---
17:27:28 192.114.206.189 GET 
/jakarta/isapi_redirect.dll 200

I verified also the uriworkermap file to make sure 
the uri will be redirected to the container, yet, nada... Nothing seem to make 
it work 100%.

Furthermore,the contexts I am trying to add don't seem to be available at all (via 
http requests) even though I added them to the server.xml file and to the 
uriworkermap.

I tried to add the following to server.xml file, 
according to another post:

Context 
path="/" 
docBase="/Inetpub/wwwroot" 
crossContext="false" 
debug="0" 
reloadable="true"  /Context

But that didn't help either...

Any ideas? I am lost here... :o(

Thanks in advance!
David.


Help with Tomcat 4.0 !!!

2001-07-08 Thread TIMBMS
Hi there
i downloaded Tomcat 4.0 b5 and installed it on my PC running win98. it works 
fine but for some reason it does not run the jsp examples in the local host 
or any other jsp pages i created, even though it runs the servlets ok. i get 
the error shown at the end of this mail. But the strange thing is though, 
even though i get this error, when i view the page source code using netscape 
it shows the result of the jsp processing, for example when i tried the Date 
jsp example i got the error message but the page source contained the date 
resulted from the jsp. i installed the JDK 1.3 and set all the paths 
required... i had tomcat 3.2.2 which was running perfectly, but i need tomcat 
4.0 as it has support for WAP technology which i need for my WAP research 
project. Can u please help me... i do need it urgently...
thanx alot
Tim

here is the error message:
---

A Servlet Exception Has Occurred

org.apache.jasper.JasperException: Unable to compile class for 
JSPC:\Tomcat\bin\..\work\localhost\examples\jsp\dates\date_jsp.java:168: 
Incompatible type for method. Explicit cast needed to convert 
java.lang.Throwable to java.lang.Exception.
 if (pageContext != null) pageContext.handlePageException(t);
 ^
1 error

at org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:523)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServ

let.java:175)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java

:187)
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:379)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:453)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFi

lterChain.java:254)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChai

n.java:194)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java

:255)
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

:225)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566
)
at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.j

ava:472)
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.StandardContext.invoke(StandardContext.java:2252)
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:446)
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:1

63)
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:87

5)
at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:952)
at java.lang.Thread.run(Thread.java:484)


RE: calling a config file from bean

2001-07-08 Thread Batsheva Raviv

it is very helpful,

Thank you,
Batsheva


-Original Message-
From: Wyn Easton [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 08, 2001 3:50 AM
To: [EMAIL PROTECTED]
Subject: Re: calling a config file from bean


Look at ResourceBundle in the java docs.
You can use the getBundle()method to load property
files.  The classpath is searched for the property
file.  So you can put the property file in you web
apps. classes directory or in a jar file under
lib.

--- Batsheva Raviv [EMAIL PROTECTED] wrote:
 has anyone wrote a method to read a config file from
 a bean?
 how can I call a config file from the bean.
 if I use Servlet I can use the web.xml file, but I
 call a bean file from the
 jsp page.
 where should I put the config file? do I have to
 hard code the path to the
 config file.
 
 
 
 Thank you,
 Batsheva
 


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/




Help with Tomcat 4.0 b5

2001-07-08 Thread TIMBMS
Hi there
i downloaded Tomcat 4.0 b5 and installed it on my PC running win98. it works 
fine but for some reason it does not run the jsp examples in the local host 
or any other jsp pages i created, even though it runs the servlets ok. i get 
the error shown at the end of this mail. But the strange thing is though, 
even though i get this error, when i view the page source code using netscape 
it shows the result of the jsp processing, for example when i tried the Date 
jsp example i got the error message but the page source contained the date 
resulted from the jsp. i installed the JDK 1.3 and set all the paths 
required... i had tomcat 3.2.2 which was running perfectly, but i need tomcat 
4.0 as it has support for WAP technology which i need for my WAP research 
project. Can u please help me... i do need it urgently...
thanx alot
Tim

here is the error message:
---

A Servlet Exception Has Occurred

org.apache.jasper.JasperException: Unable to compile class for 
JSPC:\Tomcat\bin\..\work\localhost\examples\jsp\dates\date_jsp.java:168: 
Incompatible type for method. Explicit cast needed to convert 
java.lang.Throwable to java.lang.Exception.
 if (pageContext != null) pageContext.handlePageException(t);
 ^
1 error

 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
 at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:523)
 at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServ

let.java:175)
 at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java

:187)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:379)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:453)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFi

lterChain.java:254)
 at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChai

n.java:194)
 at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java

:255)
 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

:225)
 at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566
)
 at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.j

ava:472)
 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.StandardContext.invoke(StandardContext.java:2252)
 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:446)
 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:1

63)
 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:87

5)
 at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:952)
 at java.lang.Thread.run(Thread.java:484)


Tomcat + Apache on NT

2001-07-08 Thread Gregory Guthrie

It is not clear (to me) that I have to manually start both Tomcat
and
Apache servers on NT (Win2K Pro). I expected Apache to start Tomcat
as/if needed, but that fails, but everything works fine for Tomcat
standalone, or if it is manually started, and then Apache just
connects
to it.
Is this correct? Is this documented somewhere? The closest thing I
found
was in the Tomcat-Apache HowTo setup where it says: 
 This step sets various JServ internal parameters, in
order:
 Instruct JServ not to start the Tomcat process.
Automatically
starting
 Tomcat is not implemented yet.
And then does: 

ApJServManual
on
But, the parameters in the example were different that the current
configuration files.
Is this correct understanding?
Thanks.
[EMAIL PROTECTED]


Dr. Gregory Guthrie
[EMAIL PROTECTED]
(641)472-1125 Fax: -1103
 Computer Science Department
 School of Computing and Information
Science
 Maharishi University of
Management
 (Maharishi International University
1971-1995)

http://www.mum.edu/cs_dept



Urgent Help with Tomcat 4.0

2001-07-08 Thread TIMBMS
Hi there
i downloaded Tomcat 4.0 b5 and installed it on my PC running win98. it works 
fine but for some reason it does not run the jsp examples in the local host 
or any other jsp pages i created, even though it runs the servlets ok. i get 
the error attached to this mail (error.txt). But the strange thing is though, 
even though i get this error, when i view the page source code using netscape 
it shows the result of the jsp processing, for example when i tried the Date 
jsp example i got the error message but the page source contained the date 
resulted from the jsp. i installed the JDK 1.3 and set all the paths 
required... i had tomcat 3.2.2 which was running perfectly, but i need tomcat 
4.0 as it has support for WAP technology which i need for my WAP research 
project. Can u please help me... i do need it urgently...
thanx alot
Tim


ÐÏࡱáþÿ  
þÿÿÿýÿÿÿþÿÿÿþÿÿÿþÿÿÿþÿÿÿ

Root
 Entry
ÀF`J–ÇÁ  
€WordDocumentCompObjnþÿÿÿñMN”•œžŸàáâ'(†‡ˆÞßà+,-qrs²³´vû÷óïëçãßÛ×ÓÏËÇÿ»·³¯«§£Ÿ›—“‹‡ƒ{wsokg]a
  ]a ]a ]a ]a ]a ]a ]a ]a ]a ]a 
]a ]a ]a ]a ]a ]a ]a ]a ]a ]a 
]a ]a ]a ]a ]a ]a ]a ]a ]a ]a 
]a ]a ]a ]a ]a ]a ]a 
vwxÎÏÐ#$rst¼½¾    
 h i j Ã Ä Å 


g
h
i
±
²
³
RSTû÷óïëçãßÛ×ÓÏËÇÿ»·³¯«§£Ÿ›—“‹‡ƒ{wsokg]a  
 ]a ]a ]a ]a ]a ]a ]a ]a ]a ]a 
]a ]a ]a ]a ]a ]a ]a ]a ]a ]a 
]a ]a ]a ]a ]a ]a ]a ]a ]a ]a 
]a ]a ]a ]a ]a ]a ]a 
T¦§¨ôõöHIJ˜™šâãä8
9
:
Œ

Ž
Ü
Ý
Þ
'({|}ÌÍÎö÷û÷óïëçãßÛ×ÓÏËÇÿ»·³¯«§£Ÿ›—“‹‡ƒ{ws]a
   ]a ]a ]a ]a ]a ]a ]a ]a ]a ]a 
]a ]a ]a ]a ]a ]a ]a ]a ]a ]a 
]a ]a ]a ]a ]a ]a ]a ]a ]a ]a 
]a ]a ]a ]a 
#ñN•žá'‡ß,r³wÏ#s½
   i Ä 
h
²
S§õI™ã

Re: DELIVERY FAILURE: Error delivering to Jaros³aw Ogrodn Wiadomosc nie mo...

2001-07-08 Thread TIMBMS

 



RE: BUG - valueUnbound e session timeout

2001-07-08 Thread tomcat_sergio tomcat

I am using jdk1.3.1

I did some dubugging with the tomcat sources, and it seens that the problem 
has to do with the Thread.sleep of StandardManager.java. This thread just 
checks for expired sessions.

The thread is not waking up. Sometimes it does wake up, but most of the time 
it doesn´t. Perharps the behavior of Thread.sleep in Win2000 is buggy.

I will implement the session checker myself and increase its priority. Let´s 
see whether that is going to solve this annoying problem.

With WinNT this do not happen.

[]´s

Sergio




From: Michael Wentzel [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
Subject: RE: BUG - valueUnbound e session timeout
Date: Sun, 8 Jul 2001 12:02:49 -0400

  There is a bug in Tomcat 3.2.2.
 
  The session is not timing out and valueUnbound is not being
  called, even
  with setMaxInactiveInterval(10).
 
  This bug only happens in windows 2000.
 
  Pretty annoying stuff...

I run windoze2000 and tomcat 3.2.2 and do not have this problem.
I've never checked, explicitly, if valueUnbound is getting called
but the session timeout event does occur so I just take the specs
word for it that valueUnbound get called(since I don't do anything
special with SessionEvents).

Are you sure this is what is happening?  What, exactly, is the
action you take and the behavior that leads you to believe this is
what is happening?  What JDK( Sun/IBM/1.? ) are you using?


---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com

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




RE: problem with getPort()

2001-07-08 Thread Joseph D Toussaint


I'm trying to create a new URL to go to.  If I wanted to use the
request.getPort() method I'd have to also call getHostName() and
manually construct the URL.  It was my understanding that the
getRequestURL method did that for you.

This code ran under JRun 3.x but for some reason wont  run under tomcat.


Thanks


joe


On 03 Jul 2001 16:27:54 -0400, Randy Layman wrote:
 
   Is there a reason that you aren't using request.getPort()?
 
  -Original Message-
  From: Joseph D Toussaint [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, July 03, 2001 4:38 PM
  To: [EMAIL PROTECTED]
  Subject: problem with getPort()
  
  
  I'm trying to get the port off of a request object and it is returning
  port 0.
  
  
  Here is how I'm getting the URL I came from.
  
  
  StringBuffer came_from = HttpUtils.getRequestURL(request);
  
  While reconstructing a new URL 
  
  java.net.URL tmp_url   = new java.net.URL(came_from.toString());
  
  
  My servlet faild because I was using port 0.
  
  To test I printed out 'came_from' and it said port 0.
  
  I'm using Tomcat 3.2.2 with ajp12 configured to use Apache 1.3.20
  
  
  Thanks
  
  
  joe
  
  
  -- 
  ##
  # Joseph Toussaint   #
  # Caribou Lake Software  #
  # http://www.cariboulake.com #
  # [EMAIL PROTECTED]   #
  # 952-837-98029  #
  ##
  



-- 
##
# Joseph Toussaint   #
# Caribou Lake Software  #
# http://www.cariboulake.com #
# [EMAIL PROTECTED]   #
# 952-837-98029  #
##




Urgent Help with Tomcat 4.0

2001-07-08 Thread TIMBMS
Subj:   Help with Tomcat 4.0 b5 
Date:   08/07/01 19:09:10 GMT Daylight Time 
From:   TIMBMS  
To: [EMAIL PROTECTED]  



Hi there
i downloaded Tomcat 4.0 b5 and installed it on my PC running win98. it works 
fine but for some reason it does not run the jsp examples in the local host 
or any other jsp pages i created, even though it runs the servlets ok. i get 
the error shown at the end of this mail. But the strange thing is though, 
even though i get this error, when i view the page source code using netscape 
it shows the result of the jsp processing, for example when i tried the Date 
jsp example i got the error message but the page source contained the date 
resulted from the jsp. i installed the JDK 1.3 and set all the paths 
required... i had tomcat 3.2.2 which was running perfectly, but i need tomcat 
4.0 as it has support for WAP technology which i need for my WAP research 
project. Can u please help me... i do need it urgently...
thanx alot
Tim

here is the error message:
---

A Servlet Exception Has Occurred

org.apache.jasper.JasperException: Unable to compile class for 
JSPC:\Tomcat\bin\..\work\localhost\examples\jsp\dates\date_jsp.java:168: 
Incompatible type for method. Explicit cast needed to convert 
java.lang.Throwable to java.lang.Exception.
 if (pageContext != null) pageContext.handlePageException(t);
 ^
1 error

 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
 at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:523)
 at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServ

let.java:175) ...etc
 


Urgent HELP with Tomcat 4.0

2001-07-08 Thread TIMBMS
Hi there
i downloaded Tomcat 4.0 b5 and installed it on my PC running win98. it works 
fine but for some reason it does not run the jsp examples in the local host 
or any other jsp pages i created, even though it runs the servlets ok. i get 
the error shown at the end of this mail. But the strange thing is though, 
even though i get this error, when i view the page source code using netscape 
it shows the result of the jsp processing, for example when i tried the Date 
jsp example i got the error message but the page source contained the date 
resulted from the jsp. i installed the JDK 1.3 and set all the paths 
required... i had tomcat 3.2.2 which was running perfectly, but i need tomcat 
4.0 as it has support for WAP technology which i need for my WAP research 
project. Can u please help me... i do need it urgently...
thanx alot
Tim

here is the error message:
---

A Servlet Exception Has Occurred

org.apache.jasper.JasperException: Unable to compile class for 
JSPC:\Tomcat\bin\..\work\localhost\examples\jsp\dates\date_jsp.java:168: 
Incompatible type for method. Explicit cast needed to convert 
java.lang.Throwable to java.lang.Exception.
 if (pageContext != null) pageContext.handlePageException(t);
 ^
1 error

 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
 ...etc



Re: Tomcat + Apache on NT

2001-07-08 Thread Vinay Menon



why are u using mod_jserv?

  - Original Message - 
  From: 
  Gregory Guthrie 
  
  To: [EMAIL PROTECTED] 
  
  Sent: Sunday, July 08, 2001 7:17 PM
  Subject: Tomcat + Apache on NT
  It is not clear (to me) that I have to manually start both 
  Tomcat andApache servers on NT (Win2K Pro). I expected Apache to start 
  Tomcatas/if needed, but that fails, but everything works fine for 
  Tomcatstandalone, or if it is manually started, and then Apache just 
  connectsto it.Is this correct? Is this documented somewhere? The 
  closest thing I foundwas in the Tomcat-Apache HowTo setup where it says: 
   "This step sets various JServ internal parameters, in 
  order: Instruct JServ not to start the Tomcat process. 
  Automaticallystarting Tomcat is not implemented 
  yet."And then does:  
  ApJServManual 
  onBut, the parameters in the example were different that the current 
  configuration files.Is this correct 
  understanding?Thanks.[EMAIL PROTECTED]
  Dr. 
  Gregory 
  Guthrie[EMAIL PROTECTED] 
  (641)472-1125 Fax: 
  -1103 Computer Science 
  Department School of Computing and 
  Information Science Maharishi 
  University of Management (Maharishi 
  International University 
  1971-1995) http://www.mum.edu/cs_dept 
  


Re: Tomcat + Apache on NT

2001-07-08 Thread Gregory Guthrie


At 10:58 PM 07/08/2001 +0100, Vinay Menon wrote:
why are u using mod_jserv?
I am not; but the Tomcat/Apache documentation used this
terminology. I use mod_jk.dl.
As far as I see much of the Tomcat documentation is out of data/sync, it
talks about Jserv, and other places references Jserv actions,
etc...
I am also surprised to see:
In apache-tomcat.conf:

LoadModule jserv_module
modules/ApacheModuleJServ.dll
Which I do not find anywhere in the distribution But I don't
get any error messages.
Greg



- Original Message - 
From: Gregory Guthrie 
To:
[EMAIL PROTECTED] 
Sent: Sunday, July 08, 2001 7:17 PM
Subject: Tomcat + Apache on NT

It is not clear (to me) that I have to manually start both Tomcat and
Apache servers on NT (Win2K Pro). I expected Apache to start Tomcat
as/if needed, but that fails, but everything works fine for Tomcat
standalone, or if it is manually started, and then Apache just connects
to it.

Is this correct? Is this documented somewhere? The closest thing I found
was in the Tomcat-Apache HowTo setup where it says: 
 This step sets various JServ internal parameters, in order:
 Instruct JServ not to start the Tomcat process. Automatically
starting
 Tomcat is not implemented yet.

And then does: 
 ApJServManual on

But, the parameters in the example were different that the current configuration files.

Is this correct understanding?



Dr. Gregory Guthrie
[EMAIL PROTECTED] (641)472-1125 Fax: -1103
 Computer Science Department
 School of Computing and Information Science
 Maharishi University of Management
 (Maharishi International University 1971-1995)
 http://www.mum.edu/cs_dept



Re: imp - Tomcat with SSL

2001-07-08 Thread pete

Tomcat does support SSL, but you will have to recompile it from source, 
after downloading the JSSE jars from Sun.

If the JSSE jars are in your classpath, (i put mine in 
$JAVA_HOME/jre/lib/ext/) then tomcat will automatically build with SSL 
support.

Once you have an SSL-enabled build, you will have to modify server.xml 
so that it will accept SSL connections on port 443.

You may have to jump through some hoops to use Verisign certificates 
with the java SSL key management tools.

All this is covered in docs available on the web, but if you have 
specific troubles, i can help you out with them, since i have 
successfully built and deployed SSL-enabled tomcat.

-Pete

 Does Tomcat supports SSL
 
 If yes then which version supports it.
 
  
 
 Please let me know immediatly
 
  
 
 Thanking you in advance.
 
 parag
 





Urgent Help with Tomcat 4.0

2001-07-08 Thread TIMBMS
Hi there
i downloaded Tomcat 4.0 b5 and installed it on my PC running win98. it works 
fine but for some reason it does not run the jsp examples in the local host 
or any other jsp pages i created, even though it runs the servlets ok. i get 
the error shown below

A Servlet Exception Has Occurred

org.apache.jasper.JasperException: Unable to compile class for 
JSPC:\Tomcat\bin\..\work\localhost\examples\jsp\dates\date_jsp.java:168: 
Incompatible type for method. Explicit cast needed to convert 
java.lang.Throwable to java.lang.Exception.
 if (pageContext != null) pageContext.handlePageException(t);
 ^
1 error

 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
 ...etc

any suggestions ? thanx Tim


RE: BUG - valueUnbound e session timeout

2001-07-08 Thread tomcat_sergio tomcat

Problem confirmed...

Thread.sleep is buggy in Win2000 Advanced server. That´s what is causing the 
sessions not to time out, because the monitor thread never comes back from 
its Thread.sleep.

The workaround is to check all the sessions when someones logs in. Not very 
good, but thats the only choice left.

I will submit this bug in the java site.

[]s

Sergio


From: tomcat_sergio tomcat [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: BUG - valueUnbound e session timeout
Date: Sun, 08 Jul 2001 20:07:52 -

I am using jdk1.3.1

I did some dubugging with the tomcat sources, and it seens that the problem
has to do with the Thread.sleep of StandardManager.java. This thread just
checks for expired sessions.

The thread is not waking up. Sometimes it does wake up, but most of the 
time
it doesn´t. Perharps the behavior of Thread.sleep in Win2000 is buggy.

I will implement the session checker myself and increase its priority. 
Let´s
see whether that is going to solve this annoying problem.

With WinNT this do not happen.

[]´s

Sergio




From: Michael Wentzel [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
Subject: RE: BUG - valueUnbound e session timeout
Date: Sun, 8 Jul 2001 12:02:49 -0400

  There is a bug in Tomcat 3.2.2.
 
  The session is not timing out and valueUnbound is not being
  called, even
  with setMaxInactiveInterval(10).
 
  This bug only happens in windows 2000.
 
  Pretty annoying stuff...

I run windoze2000 and tomcat 3.2.2 and do not have this problem.
I've never checked, explicitly, if valueUnbound is getting called
but the session timeout event does occur so I just take the specs
word for it that valueUnbound get called(since I don't do anything
special with SessionEvents).

Are you sure this is what is happening?  What, exactly, is the
action you take and the behavior that leads you to believe this is
what is happening?  What JDK( Sun/IBM/1.? ) are you using?


---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com

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


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




RE: calling a config file from bean

2001-07-08 Thread Fernando Padilla


I'm not sure if ResourceBundle is what you'll want.  So here are a few
more things to look at, just in case.


java.util.Properties has a load method that can take in an InputStream

javax.servlet.ServletContext has a getResouceAsStream method
which will get you the properties file ( from web app context )

also, there is a way to setup a JSP inside of the web.xml file so that you
can give it init parameters.  you should look it up in the web.xml spec...


fernando


On Sun, 8 Jul 2001, Batsheva Raviv wrote:

 it is very helpful,

 Thank you,
 Batsheva


 -Original Message-
 From: Wyn Easton [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, July 08, 2001 3:50 AM
 To: [EMAIL PROTECTED]
 Subject: Re: calling a config file from bean


 Look at ResourceBundle in the java docs.
 You can use the getBundle()method to load property
 files.  The classpath is searched for the property
 file.  So you can put the property file in you web
 apps. classes directory or in a jar file under
 lib.

 --- Batsheva Raviv [EMAIL PROTECTED] wrote:
  has anyone wrote a method to read a config file from
  a bean?
  how can I call a config file from the bean.
  if I use Servlet I can use the web.xml file, but I
  call a bean file from the
  jsp page.
  where should I put the config file? do I have to
  hard code the path to the
  config file.
 
 
 
  Thank you,
  Batsheva
 


 __
 Do You Yahoo!?
 Get personalized email addresses from Yahoo! Mail
 http://personal.mail.yahoo.com/





RE: BUG - Now I am confused

2001-07-08 Thread tomcat_sergio tomcat


I tested Thread.sleep in a simple Java standalone program and it worked on 
Win2000 Advanced Server.

Something in tomcat makes Thread.sleep not work properly. I have no clue 
what could cause that. What I can say is: Thread.sleep from 
StandardManager.java is not being wake by the JVM. Sleeps forever...

[]s

Sergio


From: tomcat_sergio tomcat [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: BUG - valueUnbound e session timeout
Date: Sun, 08 Jul 2001 22:59:38 -

Problem confirmed...

Thread.sleep is buggy in Win2000 Advanced server. That´s what is causing 
the
sessions not to time out, because the monitor thread never comes back from
its Thread.sleep.

The workaround is to check all the sessions when someones logs in. Not very
good, but thats the only choice left.

I will submit this bug in the java site.

[]s

Sergio


From: tomcat_sergio tomcat [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: BUG - valueUnbound e session timeout
Date: Sun, 08 Jul 2001 20:07:52 -

I am using jdk1.3.1

I did some dubugging with the tomcat sources, and it seens that the 
problem
has to do with the Thread.sleep of StandardManager.java. This thread just
checks for expired sessions.

The thread is not waking up. Sometimes it does wake up, but most of the
time
it doesn´t. Perharps the behavior of Thread.sleep in Win2000 is buggy.

I will implement the session checker myself and increase its priority.
Let´s
see whether that is going to solve this annoying problem.

With WinNT this do not happen.

[]´s

Sergio




From: Michael Wentzel [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
Subject: RE: BUG - valueUnbound e session timeout
Date: Sun, 8 Jul 2001 12:02:49 -0400

  There is a bug in Tomcat 3.2.2.
 
  The session is not timing out and valueUnbound is not being
  called, even
  with setMaxInactiveInterval(10).
 
  This bug only happens in windows 2000.
 
  Pretty annoying stuff...

I run windoze2000 and tomcat 3.2.2 and do not have this problem.
I've never checked, explicitly, if valueUnbound is getting called
but the session timeout event does occur so I just take the specs
word for it that valueUnbound get called(since I don't do anything
special with SessionEvents).

Are you sure this is what is happening?  What, exactly, is the
action you take and the behavior that leads you to believe this is
what is happening?  What JDK( Sun/IBM/1.? ) are you using?


---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com

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


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


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




4.0b5 shutting down

2001-07-08 Thread Jakarta Jakarta

I am running Tomcat 4.0b5 in standalone mode on a Sun
Solaris 8 system, running the latest patches and the
currest Sun Java 1.3.1.  Tomcat starts up ok, and will
run for the better part of a day of testing, however
the next morning, when I get up, the system is down
again.  I have the following error I believe assuming
the catalina.out file is written to the top instead of
the end of the file:

Starting service Tomcat-Standalone
Apache Tomcat/4.0-b5
SIGSEGV   11*  segmentation violation
si_signo [11]: SIGSEGV   11*  segmentation
violation
si_errno [0]: Error 0
si_code [1]: SEGV_MAPERR [addr: 0x28]

stackpointer=FFBED230

Exiting Thread (sys_thread_t:0xff363df0) : no stack

Exiting Thread (sys_thread_t:0x4191a0) : no stack
Finalizer (TID:0x13b604, sys_thread_t:0x13b548,
state:CW, thread_t: t@6, threadID:0xfecb1d78,
stack_bottom:0xfecb2000, stack_size:0x2) prio=8

[1]
java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:106)
[2]
java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:128)
[3]
java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:175)
---
Reference Handler (TID:0x149a94,
sys_thread_t:0x1499d8, state:CW, thread_t: t@5,
threadID:0xfece1d78, stack_bottom:0xfece2000,
stack_size:0x2) prio=10

[1] java.lang.Object.wait(Object.java:424)
[2]
java.lang.ref.Reference$ReferenceHandler.run(Reference.java:107)
---
Signal dispatcher (TID:0x139284,
sys_thread_t:0x1391c8, state:MW, thread_t: t@4,
threadID:0xfed41d78, stack_bottom:0xfed42000,
stack_size:0x2) prio=10

---
main (TID:0x385c4, sys_thread_t:0x38508, state:R,
thread_t: t@1, threadID:0x25118,
stack_bottom:0xffbf, stack_size:0x2) prio=5
*current thread*

[1]
org.apache.catalina.loader.StandardLoader.start(StandardLoader.java:586)
[2]
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1092)
[3]
org.apache.catalina.core.StandardContext.start(StandardContext.java:3155)
[4]
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1092)
[5]
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1092)
[6]
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:278)
[7]
org.apache.catalina.core.StandardService.start(StandardService.java:341)
[8]
org.apache.catalina.core.StandardServer.start(StandardServer.java:447)
[9]
org.apache.catalina.startup.Catalina.start(Catalina.java:725)
[10]
org.apache.catalina.startup.Catalina.execute(Catalina.java:647)
[11]
org.apache.catalina.startup.Catalina.process(Catalina.java:177)
[12] java.lang.reflect.Method.invoke(Native Method)
[13]
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:114)
---


Any help would be appreciated as I need this working
full time.  Thanks.

JR

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/



Problems with a tomcat build.

2001-07-08 Thread Patterson, David

I'm installing a tomcat container from source on redhat 7.

I installed Sun JDK 1.3.1.
I installed the XML Parser and ANT. (Ant built with no errors.)
I installed the SSL extension classes.
I built and installed the servlet API. (Again, no errors.)

The jdk/bin is in $PATH

When I come to run the build.sh for tomcat I get the following
result:Searching for build.xml ...
Buildfile: /usr/local/etc/jakarta/jakarta-tomcat/build.xml

prepare:
tomcat:
[javac] Compiling 5 source files to
/usr/local/etc/jakarta/build/tomcat/classes
[javac]
/usr/local/etc/jakarta/jakarta-tomcat/src/share/org/apache/jasper/compiler/J
spCompiler.java:136:
Method getClassName(java.lang.String) not found in class
org.apache.jasper.compiler.ClassName.
[javac] realClassName = ClassName.getClassName(
getClassFileName() );
[javac]   ^
[javac]
/usr/local/etc/jakarta/jakarta-tomcat/src/share/org/apache/jasper/compiler/J
spCompiler.java:137:
Exception org.apache.jasper.JasperException is never thrown in the
body of the corresponding try statement.
[javac] } catch( JasperException ex) {
[javac]   ^
[javac]
/usr/local/etc/jakarta/jakarta-tomcat/src/share/org/apache/jasper/compiler/J
spParseEventListener.java:867:
Wrong number of arguments in constructor.
[javac] = new GeneratorWrapper(new
ForwardGenerator(start, attrs, param),
[javac]^
[javac]
/usr/local/etc/jakarta/jakarta-tomcat/src/share/org/apache/jasper/compiler/J
spParseEventListener.java:877:
Wrong number of arguments in constructor.
[javac] = new GeneratorWrapper(new
IncludeGenerator(start, attrs, param),
[javac]^
[javac]
/usr/local/etc/jakarta/jakarta-tomcat/src/share/org/apache/jasper/JspC.java:
367:
Method compile() not found in class
org.apache.jasper.compiler.CommandLineCompiler.
[javac] clc.compile();
[javac]^
[javac]
/usr/local/etc/jakarta/jakarta-tomcat/src/share/org/apache/jasper/servlet/Js
pServlet.java:462:
Method compile() not found in class
org.apache.jasper.compiler.Compiler.
[javac] outDated = compiler.compile();
[javac]^
[javac]
/usr/local/etc/jakarta/jakarta-tomcat/src/share/org/apache/jasper/servlet/Js
pServlet.java:467:
Method compile() not found in class
org.apache.jasper.compiler.Compiler.[javac]   
 outDated = compiler.compile();
[javac]^
[javac]
/usr/local/etc/jakarta/jakarta-tomcat/src/share/org/apache/jasper/servlet/Js
pServlet.java:471:
Exception java.io.FileNotFoundException is never thrown in the body of
the corresponding try statement.
[javac] } catch (FileNotFoundException ex) {
[javac]   ^
[javac]
/usr/local/etc/jakarta/jakarta-tomcat/src/share/org/apache/jasper/servlet/Js
pServlet.java:473:
Exception org.apache.jasper.JasperException is never thrown in the
body of the corresponding try statement.
[javac] } catch (JasperException ex) {
[javac]   ^
[javac]
/usr/local/etc/jakarta/jakarta-tomcat/src/share/org/apache/tomcat/request/Js
pInterceptor.java:205:
Method compile() not found in class
org.apache.jasper.compiler.Compiler.
[javac] compiler.compile();
[javac] ^
[javac] Note:
/usr/local/etc/jakarta/jakarta-tomcat/src/share/org/apache/tomcat/request/Js
pInterceptor.java
uses or overrides a deprecated API.  Recompile with -deprecation for
details.
[javac] 10 errors, 1 warning

Total time: 4 seconds

Any guess what I screwed up this time? 

A google search threw up 3 other people who had the same problem but
no answer

:(

TIA

Dave P.



Rejected Message

2001-07-08 Thread Administrator

The attached mail message has been rejected for the following reason:

Norman Virus Control found one or more infected files.

Additional Information:

Norman Virus Control could not scan a particular file. File type was recognized, but 
it contains damaged or illegal data structures.

Please correct the problem before re-sending the mail.:




Hi there
i downloaded Tomcat 4.0 b5 and installed it on my PC running win98. it works 
fine but for some reason it does not run the jsp examples in the local host 
or any other jsp pages i created, even though it runs the servlets ok. i get 
the error attached to this mail (error.txt). But the strange thing is though, 
even though i get this error, when i view the page source code using netscape 
it shows the result of the jsp processing, for example when i tried the Date 
jsp example i got the error message but the page source contained the date 
resulted from the jsp. i installed the JDK 1.3 and set all the paths 
required... i had tomcat 3.2.2 which was running perfectly, but i need tomcat 
4.0 as it has support for WAP technology which i need for my WAP research 
project. Can u please help me... i do need it urgently...
thanx alot
Tim


ÐÏࡱáþÿ  
þÿÿÿýÿÿÿþÿÿÿþÿÿÿþÿÿÿþÿÿÿ

Root
 Entry
ÀF`J–ÇÁ  
€WordDocumentCompObjnþÿÿÿñMN”•œžŸàáâ'(†‡ˆÞßà+,-qrs²³´vû÷óïëçãßÛ×ÓÏËÇÿ»·³¯«§£Ÿ›—“‹‡ƒ{wsokg]a
  ]a ]a ]a ]a ]a ]a ]a ]a ]a ]a 
]a ]a ]a ]a ]a ]a ]a ]a ]a ]a 
]a ]a ]a ]a ]a ]a ]a ]a ]a ]a 
]a ]a ]a ]a ]a ]a ]a 
vwxÎÏÐ#$rst¼½¾    
 h i j Ã Ä Å 


g
h
i
±
²
³
RSTû÷óïëçãßÛ×ÓÏËÇÿ»·³¯«§£Ÿ›—“‹‡ƒ{wsokg]a  
 ]a ]a ]a ]a ]a ]a ]a ]a ]a ]a 
]a ]a ]a ]a ]a ]a ]a ]a ]a ]a 
]a ]a ]a ]a ]a ]a ]a ]a ]a ]a 
]a ]a ]a ]a ]a ]a ]a 
T¦§¨ôõöHIJ˜™šâãä8
9
:
Œ

Ž
Ü
Ý
Þ
'({|}ÌÍÎö÷û÷óïëçãßÛ×ÓÏËÇÿ»·³¯«§£Ÿ›—“‹‡ƒ{ws]a
   ]a ]a ]a ]a ]a ]a ]a ]a ]a ]a 
]a ]a ]a ]a ]a ]a ]a ]a ]a ]a 
]a ]a ]a ]a ]a ]a ]a ]a ]a ]a 
]a ]a ]a ]a 
#ñN•žá'‡ß,r³wÏ#s½
   i Ä 
h
²
S§

Re: Problems with a tomcat build.

2001-07-08 Thread xxx

On Mon, 9 Jul 2001 11:49:31 +1000 , you wrote:
Have you include ant.jar, tools.jar, jaxp.jar, parser.jar, jsse.jar
and servlet.jar in your classpath?

Dave


I'm installing a tomcat container from source on redhat 7.

I installed Sun JDK 1.3.1.
I installed the XML Parser and ANT. (Ant built with no errors.)
I installed the SSL extension classes.
I built and installed the servlet API. (Again, no errors.)

The jdk/bin is in $PATH

When I come to run the build.sh for tomcat I get the following
result:Searching for build.xml ...
Buildfile: /usr/local/etc/jakarta/jakarta-tomcat/build.xml

prepare:
tomcat:
[javac] Compiling 5 source files to
/usr/local/etc/jakarta/build/tomcat/classes
[javac]
/usr/local/etc/jakarta/jakarta-tomcat/src/share/org/apache/jasper/compiler/J
spCompiler.java:136:
Method getClassName(java.lang.String) not found in class
org.apache.jasper.compiler.ClassName.
[javac] realClassName = ClassName.getClassName(
getClassFileName() );
[javac]   ^
[javac]
/usr/local/etc/jakarta/jakarta-tomcat/src/share/org/apache/jasper/compiler/J
spCompiler.java:137:
Exception org.apache.jasper.JasperException is never thrown in the
body of the corresponding try statement.
[javac] } catch( JasperException ex) {
[javac]   ^
[javac]
/usr/local/etc/jakarta/jakarta-tomcat/src/share/org/apache/jasper/compiler/J
spParseEventListener.java:867:
Wrong number of arguments in constructor.
[javac] = new GeneratorWrapper(new
ForwardGenerator(start, attrs, param),
[javac]^
[javac]
/usr/local/etc/jakarta/jakarta-tomcat/src/share/org/apache/jasper/compiler/J
spParseEventListener.java:877:
Wrong number of arguments in constructor.
[javac] = new GeneratorWrapper(new
IncludeGenerator(start, attrs, param),
[javac]^
[javac]
/usr/local/etc/jakarta/jakarta-tomcat/src/share/org/apache/jasper/JspC.java:
367:
Method compile() not found in class
org.apache.jasper.compiler.CommandLineCompiler.
[javac] clc.compile();
[javac]^
[javac]
/usr/local/etc/jakarta/jakarta-tomcat/src/share/org/apache/jasper/servlet/Js
pServlet.java:462:
Method compile() not found in class
org.apache.jasper.compiler.Compiler.
[javac] outDated = compiler.compile();
[javac]^
[javac]
/usr/local/etc/jakarta/jakarta-tomcat/src/share/org/apache/jasper/servlet/Js
pServlet.java:467:
Method compile() not found in class
org.apache.jasper.compiler.Compiler.[javac]   
 outDated = compiler.compile();
[javac]^
[javac]
/usr/local/etc/jakarta/jakarta-tomcat/src/share/org/apache/jasper/servlet/Js
pServlet.java:471:
Exception java.io.FileNotFoundException is never thrown in the body of
the corresponding try statement.
[javac] } catch (FileNotFoundException ex) {
[javac]   ^
[javac]
/usr/local/etc/jakarta/jakarta-tomcat/src/share/org/apache/jasper/servlet/Js
pServlet.java:473:
Exception org.apache.jasper.JasperException is never thrown in the
body of the corresponding try statement.
[javac] } catch (JasperException ex) {
[javac]   ^
[javac]
/usr/local/etc/jakarta/jakarta-tomcat/src/share/org/apache/tomcat/request/Js
pInterceptor.java:205:
Method compile() not found in class
org.apache.jasper.compiler.Compiler.
[javac]compiler.compile();
[javac]^
[javac] Note:
/usr/local/etc/jakarta/jakarta-tomcat/src/share/org/apache/tomcat/request/Js
pInterceptor.java
uses or overrides a deprecated API.  Recompile with -deprecation for
details.
[javac] 10 errors, 1 warning

Total time: 4 seconds

Any guess what I screwed up this time? 

A google search threw up 3 other people who had the same problem but
no answer

:(

TIA

Dave P.


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




Tomcat works as NT service when logging off in JDK1.3.1

2001-07-08 Thread Holden, Mark

Tomcat can work as an NT service and doesn't die when logging off when using
JDK1.3.1 and using the -Xrs switch.

I checked my tomcat running as a service and it definately had the problem
of dying when logging off.
Then I change the line in my wrapper.properties to have the -Xrs switch like
this.

wrapper.cmd_line=$(wrapper.javabin) -Xrs -classpath $(wrapper.class_path)
$(wrapper.startup_class) -config $(wrapper.server_xml) -home
$(wrapper.tomcat_home)

The problem then went away.
I am running windows 2000 sp2 on a dual P3 550.

I noticed that the documention for tomcat reads as this.
Notice for JDK 1.3 users: There is a known problem
http://developer.java.sun.com/developer/bugParade/bugs/4323062.html in JDK
1.3 that affects Java applications being run as Windows NT services. The bug
causes the service to terminate when the currently logged in user logs out.
The simplest way to work around this problem is to use JDK 1.2. If your
application requires JDK 1.3 features then you may want to look into
javaserv http://www.kcmultimedia.com/javaserv/ or JavaService
http://www.alexandriasc.com/software/JavaService/. Users have reported
success with both of these packages but there may be others that work as
well. 

The bug was fixed in JDK1.3.1.  
You may want to update the documentation so that others can use this switch.



Here is some documentation that came with JDK1.3.1...
Bug 4323062: Any Windows NT Service embedding Java VM aborts when user logs
out 
This bug has been fixed in J2SDK 1.3.1. In order to enable the fix, the -Xrs
command-line option must be passed to the JVM. The additional command line
argument is necessary because the fix necessarily disables the J2SDK 1.3
shutdown hooks mechanism and forbids the use of the sun.misc.Signal class.
For more background, please see at least the last section of the evaluation
on the Bug Parade: 
http://developer.java.sun.com/developer/bugParade/bugs/4323062.html 

Mark Holden
[EMAIL PROTECTED]
952-324-0410



RE: Problems with a tomcat build.

2001-07-08 Thread Patterson, David

I put the XML and SSL jars in a directory of the JDK. I think it was /ext.
If I read the doco correctly the compiler will look there before it checks
the CLASSPATH. 

I was pretty boggled at that stage so I could have easily missed one. I'll
check it out tonight.

Thanks.

Dave Patterson.

-Original Message-
From:   xxx [SMTP:[EMAIL PROTECTED]]
Sent:   Monday, July 09, 2001 1:44 PM
To: [EMAIL PROTECTED]
Subject:Re: Problems with a tomcat build.

On Mon, 9 Jul 2001 11:49:31 +1000 , you wrote:
Have you include ant.jar, tools.jar, jaxp.jar, parser.jar, jsse.jar
and servlet.jar in your classpath?

Dave


I'm installing a tomcat container from source on redhat 7.

I installed Sun JDK 1.3.1.
I installed the XML Parser and ANT. (Ant built with no errors.)
I installed the SSL extension classes.
I built and installed the servlet API. (Again, no errors.)

The jdk/bin is in $PATH

When I come to run the build.sh for tomcat I get the following
result:Searching for build.xml ...
Buildfile: /usr/local/etc/jakarta/jakarta-tomcat/build.xml

prepare:
tomcat:
[javac] Compiling 5 source files to
/usr/local/etc/jakarta/build/tomcat/classes
[javac]

/usr/local/etc/jakarta/jakarta-tomcat/src/share/org/apache/jasper/compiler/
J
spCompiler.java:136:
Method getClassName(java.lang.String) not found in class
org.apache.jasper.compiler.ClassName.
[javac] realClassName = ClassName.getClassName(
getClassFileName() );
[javac]   ^

snip

[javac] 10 errors, 1 warning

Total time: 4 seconds

Any guess what I screwed up this time? 

A google search threw up 3 other people who had the same problem
but
no answer

:(

TIA

Dave P.



RE: Help Please

2001-07-08 Thread Senthil Kumar.R


Hi suresh

To make your pages with HTTPS protocol you should first have a server
certificate from some digital certificate vendors like verisign, I hope you
must have set up this one?

To do the redirection in Apache, you have to first set up the certificate
into the apache server, please browse through details on setting up secure
servers in apache, you can also try mod_SSL
which is also from apache group and can be used in setting up secure
servers.

To redirect the pages, you have got nothing much to do with Tomcat, create
directories with all the secure pages in one and rest to another directory,
after setting up your apache web servers SSL, mount the directory (with
pages to be secured, in your case the login page) and mount the other pages
in two separate directories in the root.

At the time of mounting your secure dirt's you will set the protocol to be
HTTPS, hence apache will handle all the pages in that directory with HTTPS
protocol in the default port (443)(note, you should also set the ports when
you setup your SSL)
Regards
Senthil Kumar.R




-Original Message-
From: Suresh Krishna M (RBIN/DBA-JOT) [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 09, 2001 9:23 AM
To: [EMAIL PROTECTED]
Subject: Help Please


Hello all,
I am planning to use https: protocol for the secure
communication(i.e. when ever i use users name and password i need to switch
on to https and then to the http).
i am not able to find out how to use this.Do i have to do some Server
settings in the tomcat/apache.What i see is in the (AMAZON.com or that way
even HOTMAIL.com ...) when ever they ask us to give user name and password
they send the form via HTTPS:// and then they revert back to HTTP:// .Please
give some help.
THANX in advance.

For all flesh is as grass, and all the glory of man as the flower of grass.
The grass withereth, and the flower thereof falleth away.  ---Bible


With best regards,
M.S.Krishna (RBIN/DBA-JOT)
 Phone*: +91-80-508-1416
Fax : +91-80 571-1865
E-mail : [EMAIL PROTECTED]
Robert Bosch India Limited,
123,Industrial Layout,
Koramangala,
Bangalore-95.





New Discovery for Women

2001-07-08 Thread Terry















  
  



12WOMEN'S HEALTH NEWSLETTER
Living Your Life To The Fullest


  


  

  
  
  
Do You Take Your Sexual Health Seriously?12

When sexual health no longer responds at peak level, the negative dysfunction 
impacts other areas of life. You lose confidence.  You become easily angered.  Your
temper easily flares. Your kids run from you. Your sexual partner may even be avoiding you.
You need a change--if there were only something to help you take control once again and glide along
as that vibrant, confident, wonderful person you know you really are. 

Birth control pills and other impurities and stresses have not helped. Millions of women,
studies show, are being robbed. Their satisfying, orgasmic sexual life with their partner
has fled. The stress is reaching epidemic proportions. Some women get more violent;
others withdraw and become more quiet. They think the problem is them when it is not
them at all. The problem lies elsewhere. An incredible new product is revolutionizing the
way thousands of women feel and look by restoring their natural, wonderful sexual
fulfillment ability. It is restoring strained relationships to close, intimate, loving
and satisfying experiences.


Viagra® has marched on the scene for men. Now women can have the same opportunity to receive a great gift.

You will only know what can be yours by checking it out now. What is it like to enjoy maximum
closenss and intimacy with your partner? Do aging and other issues have to take that away
from you? Is that all you deserve?

To find out how you can fully enjoy sexual health and satisfaction without "faking it," click on the following link.

CLICK HERE FOR MORE INFORMATIONwith the following
  subject:Tell Me More
 
 
 Click the following link if you would like to be taken out of our database.
  Click Here To Be Removed
  Enter the following subject: Remove

  
  
  
  

  
  
  









Mail Delivery Status Notification

2001-07-08 Thread Postmaster

MAIL ESSENTIALS SENDER NOTIFICATION

The following message:

TO:  [EMAIL PROTECTED]
FROM:[EMAIL PROTECTED]
DATE: Sat, 7 Jul 2001 19:25:51
Subject: New Discovery for Women 


has been quarantined by Mail Essentials for the following reason(s):

Body contains word(s)/phrase(s) 'viagra'


Mail essentials

















  
  



12WOMEN'S HEALTH NEWSLETTER
Living Your Life To The Fullest


  


  

  
  
  
Do You Take Your Sexual Health Seriously?12

When sexual health no longer responds at peak level, the negative dysfunction 
impacts other areas of life. You lose confidence.  You become easily angered.  Your
temper easily flares. Your kids run from you. Your sexual partner may even be avoiding you.
You need a change--if there were only something to help you take control once again and glide along
as that vibrant, confident, wonderful person you know you really are. 

Birth control pills and other impurities and stresses have not helped. Millions of women,
studies show, are being robbed. Their satisfying, orgasmic sexual life with their partner
has fled. The stress is reaching epidemic proportions. Some women get more violent;
others withdraw and become more quiet. They think the problem is them when it is not
them at all. The problem lies elsewhere. An incredible new product is revolutionizing the
way thousands of women feel and look by restoring their natural, wonderful sexual
fulfillment ability. It is restoring strained relationships to close, intimate, loving
and satisfying experiences.


Viagra® has marched on the scene for men. Now women can have the same opportunity to receive a great gift.

You will only know what can be yours by checking it out now. What is it like to enjoy maximum
closenss and intimacy with your partner? Do aging and other issues have to take that away
from you? Is that all you deserve?

To find out how you can fully enjoy sexual health and satisfaction without "faking it," click on the following link.

CLICK HERE FOR MORE INFORMATIONwith the following
  subject:Tell Me More
 
 
 Click the following link if you would like to be taken out of our database.
  Click Here To Be Removed
  Enter the following subject: Remove