Re: ldap authentication with tomcat

2001-08-24 Thread Boris Niyazov

Depending on your requirements you may want to create a auth servlet that 
authenticates users to ldap server using for ex netscape's ldapjdk package or 
JDNI classes, and then keep users login in the session object. All you protected 
servlets/jsps should assert the session checking if user's info is in the 
session.

Another option: to use JNDIRealm, but I can't advise on this b/c I never used 
it.

  - Boris




Hi,

I am new to the subject:
How can I enforce ldap authentication for certain resources
using tomcat - similar to the

Directory  toProtectResourcePath 
Options FollowSymLinks
AllowOverride None
AuthType Basic
AuthName Authentication
AuthLDAPURL ldap://ldapUrl
require valid-user
/Directory

for apache in order to be able to get user information via
e.g. getRemoteUser() etc. ?

And by the way: Where is a valuable description of the configuration
with server.xml and web.xml?

Thanks.

Astrid






Re: Log problem

2001-08-20 Thread Boris Niyazov




if i use log(testing) in Servlet using Tomcat
where will this log going to ?

to the $TOMCAT_HOME/servlet.log if you defined one in server.xml, for ex:

Logger name=servlet_log
path=logs/servlet.log
verbosityLevel = DEBUG
timestampFormat=-MM-dd HH:mm:ss
/



How can I log somthing to a file from Servlet ?
I use System.err.println(Testing) when I am using Jserv before


I recall Jserv also provides log method so you could specify a log file in its 
config to log messages.


  - Boris


But i cant now when using Tomcat 3.2.2

Can anyone help me ?
It's very troblem when debuging servlet program if i cant print log to file

Thanks


/* Kenny Ma
   [EMAIL PROTECTED] */





Re: Apache-Tomcat 3.2.3 problem (bstev)

2001-08-20 Thread Boris Niyazov


I'm setting up Tomcat, Apache and for developing/testing server pages 
locally

using: Mac OS X, Apache 1.3.19, Tomcat 3.2.3

I'm getting the following errors when I boot up and try to start Apache 
and Tomcat:

sudo /usr/sbin/apachectl restart
/usr/sbin/apachectl restart: httpd not running, trying to start

that means that the apache was not running. At boot you should have 
apachectl start, not restart ... 

Processing config directory: /private/etc/httpd/users
  Processing config file: /private/etc/httpd/users/FOO.conf
dyld: /usr/sbin/httpd Undefined symbols:
_jk_module

seems like the mod_jk module has not been build correctly.

/usr/sbin/apachectl restart: httpd could not be started


Looking at the apache error log can give you more info.

  - Boris


Can anyone tell me what I'm not configuring correctly - thanks alot!






Re: Tomcat on Windows vs. Unix

2001-08-20 Thread Boris Niyazov

If you have the same versions of jre/jdk on both platforms there shouldn't be 
any problems.

  - Boris



Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
list-help: mailto:[EMAIL PROTECTED]
list-unsubscribe: mailto:[EMAIL PROTECTED]
list-post: mailto:[EMAIL PROTECTED]
Delivered-To: mailing list [EMAIL PROTECTED]
From: Bala Nemani [EMAIL PROTECTED]
To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
Subject: Tomcat on Windows vs. Unix
Date: Mon, 20 Aug 2001 13:50:15 -0400
MIME-Version: 1.0
X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N

We are developing a web application using Tomcat 3.1, Oracle DB, JSP, Java
Servelets using MVC Architecture. All the development and testing is being
done in Windows platform (Tomcat running on Windows 2000). But customer
would like to deploy Tomcat on Unix

Are there any known issues that we need to be pay extra attention to? Have
any one done this kind of deployment? Any help/hints are appreciated

Regards,

Bala Nemani





RE: Why and How Tomcat before Apache?

2001-08-18 Thread Boris Niyazov



Hi, All:

Your help is highly appreciated for the following questions.

1. Does Tomcat have web-based administration functionality? 

We want to let the Tomcat administrator start/stop Tomcat through a
Web-based interface. I have searched the mail archives, and found somebody
starting working on it in April. Is it available now? If yes, where could I
get it?

That would make sense to do only if your run tomcat in a combination with a 
webserver (apache, etc) not in a standalone mode. You can create a CGI script 
that runs start/shutdown tomcat scripts. There is a security concern though: you 
should make sure only valid users can do this.
 

  - Boris
 





Re: Servlet Runs SLow

2001-08-15 Thread Boris Niyazov

I do not think it's a servelt problem. It's probably the browser issue.

  - Boris

Why WOuld a servlet which runs perfectly normal in
Explorer take a long time to load in Netscape?  On the
Tomcat Console Window I see the request coming in
immediately, but for some reason Netscape won't load
quickly.
-Amos

__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/





Re: install problem on Solaris7

2001-08-10 Thread Boris Niyazov

You probably need j2sdk (you can grab one for solaris on sun's website). It has 
development tools like tools.jar in its lib folder. Make sure you JAVA_HOME is 
set in order for tomcat to find required jars in the JAVA_HOME/lib

hth
  - Boris



MIME-Version: 1.0
X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N

Hi all

I'm trying to install Tomcat 3.2 with Apache 1.3.12 and JRE1.3 on Solaris 7.
I did install the last patches for Solaris to get JRE working.
I've followed the instructions of the
http://jakarta.apache.org/tomcat/tomcat-3.2-doc/mod_jk-howto.html web
page. (compiling Apache with mod_so, building mod_jk for Solaris, modifying
Apache's httpd.conf to refer to mod_jk.conf, modifying mod_jk.conf, and
workers.properties files)
I've started Tomcat before Apache with no error message.
Everything seemed fine so far, but I get an ERROR 500 with the JSP examples
files provided with tomcat. (in examples/jsp/).

Anyone can help me with this?

If it can help, i pasted below the error message i get with one of the JSP
example.

David Berger
SETRA - France


Error: 500
Location: /examples/jsp/num/numguess.jsp
Internal Servlet Error:
javax.servlet.ServletException: sun/tools/javac/Main
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:399)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
   at org.apache.tomcat.core.Handler.service(Handler.java:286)
   at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
   at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
   at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
   at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java:166)
   at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
   at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
   at java.lang.Thread.run(Thread.java:484)
Root cause: 
java.lang.NoClassDefFoundError: sun/tools/javac/Main
   at
org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:128)
   at org.apache.jasper.compiler.Compiler.compile(Compiler.java:245)
   at
org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462)
   at
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
   at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)
   at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:152)
   at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:164)
   at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
   at org.apache.tomcat.core.Handler.service(Handler.java:286)
   at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
   at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
   at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
   at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java:166)
   at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
   at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
   at java.lang.Thread.run(Thread.java:484)





Re: AW: Dynamically Generate PDF

2001-07-25 Thread Boris Niyazov

You may also want to look at http://www.thentech.com for PDFdriver for Java. 
Worked for us.

  - Boris

 


As usually there are many way to catch the rabbit:

XSL:
http://xml.apache.org/cocoon2/index.html
http://xml.apache.org/fop/index.html


Instead of XSL you might use one of these:
http://www.retep.org.uk/pdf/
http://www.etymon.com/pj/
http://www.pdflib.com/


 -Ursprüngliche Nachricht-
 Von: Kaneda K [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 25. Juli 2001 09:48
 An: [EMAIL PROTECTED]
 Betreff: Dynamically Generate PDF
 
 
Hello everyone,
 
I wonder if anyone there has once generate PDF File from a 
 servlet or JSP.
   And could give me some tips.
 
 
 




Re: request for suggestions on how to secure a web application....

2001-07-25 Thread Boris Niyazov

I'm not sure whether it'll work for you but you can assert current session on 
each jsp page that you want to protect  (assuming you store user login info in 
the session) and throw an exception in case the object is not found in the 
session, then the exception can be caught by an error jsp page. 

hth

  - Boris



This posting is a request for suggestions on how best to 
secure a web application.

First my setup:

NT 4.0
Apache 1.3.12
Tomcat 3.2.1 (running behind Apache)
servlets 
jsp pages
static html pages
jdk1.3


Web-app directory structure:

webapps/my_context/
/jsp/jsp_pages
/web-inf/classes/my_servlets
/web-inf/classes/beans/my_java_beans

My static html files reside under the apache 
document root.

For servlet access I am using session cookies, as specified in
the Java Servlet Spec, to authorize users. This works very 
well for my purposes.

My concern is protecting sensitive jsp and static
html pages.

How do I stop an unauthorized user from accessing a 
jsp or html resource directly?  ie: a back-door attack.  

For example, I am protecting my site with a login page, 
but if a user simply sidesteps the login and types

http://my_domain/my_context/jsp/any_jsp_page

into his browser, he will get access to any jsp page 
that resides in the specified context. 

I have experimented with some different approaches:

1.  hide the jsp directory directly under the /web-inf 
directory and let Tomcat restrict access.

So I would have:

/web-inf/classes/servlets
/web-inf/jsp/jsp_pages

Then provide access to jsp pages only through a 
verification servlet, which can verify the user and
then forward the request to the correct resource. 

However, this is causing problems when I utilize a 
RequestDispatcher(path).forward(req, res)  or 
RequestDispatcher(path).include(req, res) 
instruction.

The path needs to start with a / and be relative to 
the context root, per the Java Servlet API docs, which makes 
it impossible(?) to provide a correct path, since my 
verification servlet, and hence the execution thread, 
is in /web-inf/classes. When I issue the forward or inlude, 
I need to provide a path that looks something like:

/../jsp/jsp_page 

which is correctly making the JVM puke.


2. Utilize the apache rewrite module and have apache
rewrite all requests for http://my_domain/my_context/jsp/*.jsp
to my verification servlet. The verification servlet can then
do its thing and forward valid requests to the appropriate 
request. 

A hornet's nest of complexity here! and my nose tells
me this is the wrong path to take.


3. Thought a lot about utilizing the Tomcat API.

ie: RequestInterceptor, Virtual Host, Valves etc.

I found rudimentary information about what these
constructs are, but very little on how to use them.

So, I am kinda stumped :-(

I guess the next step would be to explore Basic or
Digest Authorization, but I was hoping there would be
a simpler way, that uses the power of servlets

I would greatly welcome any and all suggestions

Thank you, and keep up the great work.
The Tomcat effort rocks!

Peter


BTW, I anticipate that the Tomcat docs will improve greatly 
in the future, and I was greatly encouraged to see the 
effort being put into making a book, and the template forming
around v4.0

I would like to suggest a section on real world examples, 
using and programming the Tomcat API and the xml config 
files, like server.xml. 

For an example of what I mean, the documentation 
for the Apache mod_rewrite, written by Ralf S. Engelschall, 
has a section on practical solutions. 

http://httpd.apache.org/docs/mod/mod_rewrite.html

That's kinda what I mean.
















Re: How to increase debug reporting?

2001-07-25 Thread Boris Niyazov

in server.xml modify Logger elements. To specify log file use path attribute:


Logger name=tc_log
path=logs/tomcat.log
erbosityLevel = DEBUG
 /

this will redirect tomcat msgs to file $TOMCAT_HOME/logs/tomcat.log.

Also in Context element you can specify different debug levels for your 
paticular webapp using debug=number. Somebody already posted the levels on the 
mailing list:

Level 0
   Errors and states that cause a significant change in program flow.  
   = Anything that causes a Discon+Retry or a giveup message.

Level 1
   Important or inaccessible state information.
   = Connection start, Idle disconnection.

Level 2
   Rare things that cause a minor program flow adjustment.
   = No REST, No PASV, etc.

Level 3
   Errors and useful messages that are slightly too verbose or common
   for 0-2 or don't quite fit in the classifications.
   = Login banner

Level 4
   All remote responses or major results. (Trace results)
   = All 999 Xyzzy responses received.

Level 5
   All remote commands or major tasks. (Trace jobs)
   = All commands sent to server.

Level 6
   General information that will not be too verbose but is normally a
   little less important. (Trace state)

Level 7
   Similar to level 3 but verbose or not as useful.

Level 8
   Very verbose information that'll probably be useful sometime.

Level 9
   Anything and everything else, debugs that probably won't be useful
   ever again.(unclassified)
   
 
hth

  - Boris






I know there are 3 main logs that I can set verbositylevel=debug to
squeeze more info from tomcat...

What else can i do?  I see debug=0 all over the XML configuration files but
I don't know which ones i should change, or where the info would go, or even
what values to use.

On a related topic, I cannot redirect stdout and stderr to files... all the
directions seem to have disapeared... can someone point me in the right
direction?

(p.s. i'm running tc3.2.3 on solaris 2.6)






Re: Tomcat memory-leak problem

2001-07-12 Thread Boris Niyazov

Well, GC releases memory used by JVM, but statements and RS can be unrelesed on 
the db level (depending on db engine), so if your db resides on the same box 
then eventually you gonna have memory problems on the box.

  - Boris   


On Wed, 11 Jul 2001, Boris Niyazov wrote:

| You should probably look at your code for possible memoey leaks: not closed 
db
| objects (statements, result sets, connections) not closed file descriptors, 
etc.

More important, I think, is stuff you shove inside Collections.

The RS'es, Files and all that stuff will eventually be GC'ed when they go
out of scope, that is, no reference is left for them. (IF they do, of
course).

Only way to have leaks in Java is to make objects that are in your
working set (reachable set) of objects and that never goes out of scope.
-- Like some caching mechanism where the only thing you do is to _add_
objects to the cache, and never release them.

-- 
Mvh,
Endre





Re: Include files in Tomcat

2001-07-12 Thread Boris Niyazov

The error indicates that tomcat doesn't know where the packages are located. 
Make sure you have JAVA_HOME is set and all jars needed are in $TOMCAT_HOME/lib.

  - Boris




Hi 
i am working with XML and I have my JSPs in the tomcat (version 3.2.2) . I
am trying to import org.apache.xpath and import javax.sql and i get the
following errors. 
Can any one help me?


Internal Servlet Error:

org.apache.jasper.JasperException: Unable to compile class for
JSPC:\tomcat\jakarta-tomcat-3.2.2\work\localhost_8080%2Fpadma\_0002fssMenu_0
002ejspssMenu_jsp_0.java:16: Package javax.sql not found in import.
import javax.sql.*;
   ^
C:\tomcat\jakarta-tomcat-3.2.2\work\localhost_8080%2Fpadma\_0002fssMenu_0002
ejspssMenu_jsp_0.java:20: Package org.apache.xalan.serialize not found in
import.
import org.apache.xalan.serialize.*;
   ^
C:\tomcat\jakarta-tomcat-3.2.2\work\localhost_8080%2Fpadma\_0002fssMenu_0002
ejspssMenu_jsp_0.java:21: Package org.apache.xpath not found in import.
import org.apache.xpath.*;
   ^
3 errors

   at org.apache.jasper.compiler.Compiler.compile(Compiler.java:282)
   at
org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612)
   at
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
   at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542)
   at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:258)
   at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:268)
   at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
   at org.apache.tomcat.core.Handler.service(Handler.java:287)
   at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
   at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
   at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
   at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:213)
   at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
   at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
   at java.lang.Thread.run(Thread.java:484)

Thanks in advance
Padma




Re: can run tomcat on linux servlets but not jsp's

2001-07-11 Thread Boris Niyazov

You should not put your webapps classes in the system classpath. Tomcat startup 
script builds classpath dynamically based on content of $TOMCAT_HOME/lib, etc. 
Unset you CLASSPATH and try to start tomcat. Should help. 

  - Boris



Hi:

I am trying to run Tomcat on Linux 2.2.  I have been able to run Tomcat with
JRE1.2, but not been able to run any of the example jsp's (i have been able
to run the servlets).


I think i've set the CLASSPATH properly
(TOMCAT_HOME/webapps/example/WEB-INF/classes, TOMCAT_HOME/src).  Again, no
good.

Do I need to upgrade my java?  If so, which?  I believe that TOMCAT_HOME and
JAVA_HOME have been set properly.

Thanks
Dan
_
Get your FREE download of MSN Explorer at http://explorer.msn.com





Re: Tomcat memory-leak problem

2001-07-11 Thread Boris Niyazov

You should probably look at your code for possible memoey leaks: not closed db 
objects (statements, result sets, connections) not closed file descriptors, etc. 

  - Boris



Hi!

I'm using apache, tomcat jakarta 3.2.1, jdk1.2.2 on a linux 6.2 and a MS SQL 
server on a Nt4 with sp 6a.

Having some trouble with memory-leak. After the server has been running for a 
couple of days, it has eaten up all 512MB of RAM. It is a server with some 
customers on and it handles about 1000 visitors a day. We use JSP pages and 
servlets to show webpages. Servlets primary for showing images from database or 
generating menues...

So... what shall i do? It doesnt help to restart tomcat. I need to reboot the 
server and start tomcat all over before we can get in contact with the sites 
again.


Thanks in adv.
/)-._
   Y. ' _]  Greetings
,.._   |`--= Bjarne Jørgensen / Bigf00t
   /-/  `.\  
  /)  |   |_ `\|___   Email : [EMAIL PROTECTED]
  \:::\___/_\__\___\ 




Re: Simple startup question.

2001-07-11 Thread Boris Niyazov

It's up to you. You can modify your S85httpd to include starting tomcat or 
create another script like S95tomcat that starts tomcat. Depending on how you 
configured apache-tomcat you may want to start tomcat before starting apache. If 
you do not rely on dynamicaly tomcat generated configs then I think it does not 
matter what starts first.


  - Boris




All:

Linux 7.1 Redhat, tomcat 3.2.2.

Question:

With the ajp13 working correctly tomcat should start from within the
S85httpd start script and shutdown accordingly ?

D.





Re: Newbie needs help

2001-07-10 Thread Boris Niyazov

you can get it from 

http://java.sun.com/xml/xml_jaxp.html

  - Boris




again is under tomcat/lib.


- Original Message - 
From: Graham, Steve (GIC) [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, July 10, 2001 1:17 PM
Subject: RE: Newbie needs help


 ok, found it. thx  . Another jar file i am looking for is parser.jar .
 During the ./build.sh  i get error   Could not find file
 /jaxp-1.0.1/parser.jar
 
 ???
 
 
 
 





Re: can't find download page for jakarta-servletapi

2001-07-10 Thread Boris Niyazov

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

  - Boris



Hi,

I'm new to Tomcat. 

I can't find the any source for the
jakarta-servletapi.

I found one email to this subject in the 
archive, but there where no solutions
at all.

Thx.

andy
-- 
---
mailto:[EMAIL PROTECTED]
fon: +49 30 549932-37
fax: +49 30 549932-21





Re: Reloading

2001-07-10 Thread Boris Niyazov

Hi Hector,

This question has been asked several times and it seems nobody wants to answer 
it. I did ask similar question too a couple months ago with the same result :-(
I do not think I know the exact answer, but from my experience I see the 
following.
1. classes must be in WEB-INF/classes in order to be reloaded (Tomcat doc)
2. reloading is experimental feature and there is no guarantee that clases other 
than servlets will be reloaded.
3. one can see intermittent problems with class reloading in tomcat (I 
personally use 3.2.1) even if condition 1 is true.
 
I am not sure how tomcat reloading is implemented but it seems that reloading 
problems happens if the class to be reloaded keeps a reference to an existing 
object. In our case it happens during some exceptions that are not properly 
handled by developers (for ex, due to sql errors db connection is not returned 
to a pool or not closed). Then the object is not destroyed during reloading. 
Making code clean like proper releasing resorses avoids relaoding problems in 
our case.

Try to look at your code and make sure your servlets close all references 
properly especially when there are exceptions. 

hth
*
* Boris NiyazovPh:  212-854-4094  Fax: 212-854-1749 *
* Systems Manager  Email: [EMAIL PROTECTED] * 
* Columbia Law School  URL: http://www.law.columbia.edu *
*  
 
   
 


Hi servleters:
   I've making some tests trying to resolve when and how Tomcat does
a servlet reloading. The spec says that when a servlet container makes
a servlet reloading, it must discard all classes previouslly loaded for its
context. This really works for Tomcat, but it doesn't work very well, at
least for me. For example, if I change two servlets and some utility classes,
one of the servlets and the utility classes, are reload, but no both of the
servlets (not every time). I'm using Tomcat 3.2.2 with mod_jk / ajp13,
Windows NT 4.0 SP6, JDK 1.2.2_008, Apache 1.3.20. I've read the
release notes too.
   Does anybody know where I can find some useful information about
this topic.
   Thanks in advance.

Hector Adolfo Alonso
Consist Teleinformatica S. A.








Re: Help Please

2001-07-09 Thread Boris Niyazov

if you use apache web server look at

http://www.apache-ssl.org or
http://www.modssl.org

  - Boris




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.





Re: Problem running servlets on Apache/Tomcat

2001-07-06 Thread Boris Niyazov

If you use packages as jar files you should place them ether in 
WEB-INF/classes/lib (for a particular webapp) or $TOMCAT_HOME/lib. The latter 
will assure that all your webapps will have access to the classes in the jar.

hth
*
* Boris NiyazovPh:  212-854-4094  Fax: 212-854-1749 *
* Systems Manager  Email: [EMAIL PROTECTED]  * 
* Columbia Law School  URL: http://www.law.columbia.edu *
*  
 




Hi
  This query has been posted on this list quite a no.
of times and even after going through the archives I'm
still stuck up with this problem!
  To start with the configuration... I'm working
Windows 2000 professional with Tomcat 3.2.2 and Apache
1.3.20. The backend is Oracle 8.1.6.
  I have an application called 'portfolio' for which I
created a folder in C:\TOMCAT_HOME\webapps called
portfolio with a hierarchy of other directories
required, like
C:\TOMCAT_HOME\webapps\portfolio\WEB-INF where I
copied the web.xml and
C:\TOMCAT_HOME\webapps\portfolio\WEB-INF\classes where
I put all the servlet classes. I have put all the
other files like htmls, images etc. in the
C:\TOMCAT_HOME\webapps\portfolio directory! and not to
forget the C:\TOMCAT_HOME\webapps\portfolio\lib dir.
for all the jar files and Orcale driver...
   I have made changes to my servlet.xml file also to
let tomcat recognize my application! Putting in the
'context-path' stuff and have edited the web.xml file
to map the servlets
   Now I can execute my servlets but cannot run
them... coz when I try exceuting them I get an error
'ClassDefNotFound: ConnectionPool/ConnectionPool'
   Now CoonnectionPool is actually a package(as the
name impies) that i created to make a connection to
the database. Its also in the classes dir. When I
execute the servlets I dont get any errors as to
unable to find ConnectionPool, so I presume that
they are in the Path.
   Now I'm really stuck up and am unable to find the
real problem! May be someone out there whos done
something similar can help me solve this
Thanks a lot in advance
Priyanka

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




Re: JSP / JavaBean problem

2001-07-05 Thread Boris Niyazov

According to JSP specs if you're attemting to initialize a bean property from a 
request parameter that does not exist or is defined as an empty value then 
jsp:setProperty command has no effect: the tag is just ignored. More exactly 
(from the JSP 1.1 spec):
If the param is not set in the Request object, or if it has the value of , 
the jsp:setProperty element has no effect (a noop)

hth
*
* Boris NiyazovPh:  212-854-4094  Fax: 212-854-1749 *
* Systems Manager  Email: [EMAIL PROTECTED] * 
* Columbia Law School  URL: http://www.law.columbia.edu *
*  
 



Hi, I'm new to this list, and hope this is the appropriate forum.  Kick me
over to a developer forum if not...

I am developing JSPs with JavaBeans and have run into an issue with blank
input fields on the form.  An empty string, , is NOT passed to the setter
method on my beans.  I have researched the source code in
JspRuntimeLibrary.java and found the introspect (Tomcat 3.1) /
introspectHelper (Tomcat 3.2.1) method intentionally excludes parameters
that have a NULL or  value - of course NULL could never happen because of
the flow of the code, but never mind that.

I guess my question is this.  Is this correct functionality.  I have read
the JSP 1.1 specification on the topic of the setProperty tag, and it is NOT
specific regarding this matter.  It is a huge problem for me because I have
beans that have a session scope and a particular property of the bean may be
Fred but if I blank out the related input field it doesn't overwrite the
value in the bean when I submit the form.  Hope this makes sense.

Any and all help would be appreciated.

Thanks!

Michael W. Housman Jr.
Optimal Systems Design, Inc.
Consulting at Wells Fargo Services Company
Phone:  612.341.9784
Cell:   612.386.6785
Office: 763.537.2631




RE:TOMCAT LOG FILE BEHAVIOUR

2001-07-05 Thread Boris Niyazov

It's a feature. I'm not sure what you can do on NT but on unix we have written a 
script that moves all logs in an archive and then restarts tomcat. You may want 
to modify your tomcat startup.bat script to add this functionality.

*
* Boris NiyazovPh:  212-854-4094  Fax: 212-854-1749 *
* Systems Manager  Email: [EMAIL PROTECTED] * 
* Columbia Law School  URL: http://www.law.columbia.edu *
*  
 


Hi,

(Tomcat 3.2.1, Windows 2000, JDK 1.3.1)

Does anyone know what the behaviour of log files is in Tomcat?

I have noticed that each time that Tomcat is restarted, the log files get
wiped clean.

What happens if I have Tomcat running as a NT service? Do the files get
wiped after a certain time period or do they just grow and grow until the
files reach some maximum size. If so what happens then?

What advice would you give me on how to setup the logfiles for Tomcat
running as an NT service.

I have not seen any information about this in the documentation or any
relevant information in the archives.

Thanks.

Tim.


This message contains information that may be privileged or confidential and is 
the property of the Cap Gemini Ernst  Young Group. It is intended only for the 
person to whom it is addressed. If you are not the intended recipient, you are 
not authorized to read, print, retain, copy, disseminate, distribute, or use 
this message or any part thereof. If you receive this message in error, please 
notify the sender immediately and delete all copies of this message.




Re: Session problem with netscape-6.01

2001-06-28 Thread Boris Niyazov


Seems like your netscape-6.01 is not configured to enable cookies ...
hth

Boris Niyazov
Columbia Law School


On Wed, 27 Jun 2001, Zsolt Koppany wrote:

 Hi,
 
 I use tomcat-3.2.2 and every request seems to use (create) a new session
 from netscape-6.01. I don't have this problem with either netscape-4.76
 or IE-5. Do you know whether this is a netscape problem?
 
 -- 
 Zsolt Koppany
 Intland GmbH www.intland.com
 Schulze-Delitzsch-Str. 16
 70565 Stuttgart
 Tel: +49-711-7221873 Fax: +49-711-7221835
 




Re: Apache won't start with Tomcat

2001-06-26 Thread Boris Niyazov

As the error msg says you probably do not have the module (mod_jserv or mod_jk) 
build for apache (should reside in libexec of apache tree)

hth
*
* Boris NiyazovPh:  212-854-4094  Fax: 212-854-1749 *
* Systems Manager  Email: [EMAIL PROTECTED] * 
* Columbia Law School  URL: http://www.law.columbia.edu *
*  
 




Greetings:

I have recently upgraded to Apache 1.3.14 with Tomcat 3.2.2. When I attempt
to start Apache,
I get the following error message:

Syntax error on line 1 of
/usr/local/jakarta-tomcat-3.2.2/conf/tomcat-apache.conf:
Invalid command 'LoadModule', perhaps mis-spelled or defined by a module
not included in the server configuration
./apachectl start: httpd could not be started


Being a novice at this, I would appreciate any and all comments.


Thanks!


Greg Ferrara


  




Re: mysteriously dying connections (Oracle - tomcat)

2001-06-22 Thread Boris Niyazov

Make sure your developers properly close resultsets and statements. It could be 
that they remain open after exceptions. Make sure you have the closing 
statements in the finally section of try/catch/finally.

hth
*
* Boris NiyazovPh:  212-854-4094  Fax: 212-854-1749 *
* Systems Manager  Email: [EMAIL PROTECTED] * 
* Columbia Law School  URL: http://www.law.columbia.edu *
*  
 



hi all!

problem:


database access is managed via a java class that is
instantiated and loaded into each clients session. every
PL/SQL function and/or SQL statement a client needs is
called in a method of this class.
first, a connection is opened, the statement is called,
all resultsets and statements are closed and finally the
connection is closed. (or returned back to the
connection pool if one is used)

the driver we use is the Oracle jdbc ThinDriver (jdbc
driver type 4). after running the system for several
days, dead connections (and as we just discovered, tons
of open cursors) pile up.
eventually the webserver(tomcat) will crash or just
hang.
in the process, access gets slower and slower, there may
be delays of 3 minutes until the webserver (or, perhaps
the database, in which case the webserver would be just
waiting for the db..) gives a response.
after a restart of the webserver or the database or
both, the system runns very well again.

we tried several connection pools. with these, there
were no delays for getting a connection, but the pool
threw timeoutExceptions (i.e. made it visible that there
are hanging connections) and after a few hundred
timeouts the VM crashed with a stack overflow.

the connections seem to get killed/kill themselfes
randomly no matter which function was called. we log the
methods and statements that were called for the
connections that die, but there is just no pattern in
it. thats why we dont find the root of the problem.. is
it the driver ? the database ? the tomcat ?



environment:


Web Server:
Suse Linux 7.2
Apache Webserver /w Tomcat JSP Engine 3.2 /w SSL

DB Server:
Suse Linux 7.2
Oracle 8i 8.1.7 /w multi-threaded server (MTS)

Backup Server:
Oracle Shadow server



things done:


- linux update
- apache update
- tomcat update
- jdbc thin driver update
(everywhere the newest version)
- tried several connection pools



possible changes:
-

- use OCI drivers instead of thin driver
- use J-serv with GNU_jsp instead of tomcat




every help is welcome, we're frustrated to no ends.
thanks very much in advance!!

l.sägesser


  - Boris





Re: where is the JSP servlet

2001-06-21 Thread Boris Niyazov

Look at $TOMCAT_HOME/work/localhost_8080%2Fyour_webapp/

HTH
*
* Boris NiyazovPh:  212-854-4094  Fax: 212-854-1749 *
* Systems Manager  Email: [EMAIL PROTECTED] * 
* Columbia Law School  URL: http://www.law.columbia.edu *
*  
 



I was told that JSP scripts get translated into a servlet, however where do 
you find it.Where can I find the servlet




Re: Internal Servlet Error

2001-06-21 Thread Boris Niyazov

Does the user who runs tomcat have proper permissions on $TOMCAT_HOME/work?
*
* Boris NiyazovPh:  212-854-4094  Fax: 212-854-1749 *
* Systems Manager  Email: [EMAIL PROTECTED] * 
* Columbia Law School  URL: http://www.law.columbia.edu *
*  
 





Hello I created a .jsp file that worked fine on JSWDK

Recently I upgraded to Tomcat 3.2.2 and now when I click on the JSP file I
get the following message:

Internal Servlet Error:

org.apache.jasper.JasperException: Unable to compile class for JSPerror:
Can't write:
/usr/local/jakarta-tomcat-3.2.2/work/localhost_8080%2Fexamples/html/html/For
ms/_0002fhtml_0002fhtml_0002fForms_0002fForms_0002ejspForms_jsp_2.class
Note:
/usr/local/jakarta-tomcat-3.2.2/work/localhost_8080%2Fexamples/_0002fhtml_00
02fhtml_0002fForms_0002fForms_0002ejspForms_jsp_2.java uses or overrides a
deprecated API.  Recompile with -deprecation for details.
1 error, 1 warning


How can I recompile a jsp file and find out what I need to modify?

Thanks

Fredrik




Re: Compile ??

2001-06-20 Thread Boris Niyazov

.jsp files under \webapps\yourapp\WEB-INF\jsp ? 
I do not think you should put your jsps in there. WEB-INF shouldn't be 
accessable from web directly and should contain classes, packages and 
configuration files only.

you can put your jsps anywere in \webapps\yourapp\ outside WEB-INF folder. 

*
* Boris NiyazovPh:  212-854-4094  Fax: 212-854-1749 *
* Systems Manager  Email: [EMAIL PROTECTED]  * 
* Columbia Law School  URL: http://www.law.columbia.edu *
*  
 



servlet and JavaBean .java files are to be compiled and placed into:
\webapps\yourapp\WEB-INF\classes\
The engine will find necessary classes if you made correct
entry into \webapps\yourapp\WEB-INF\web.xml
(if not familiar with .xml - just follow their examples

.jsp files are not to be compiled but just placed under:
\webapps\yourapp\WEB-INF\jsp\
The engine will compile them.  No code specific entry is needed in web.xml
for .jsp files

By then it is assumed that you made an entry for your specific application 
into:
\conf\server.xml 

and policy file is updated with:
permission java.lang.RuntimePermission shutdownHooks;


r/luba




  - Original Message - 
  From: Venkatesh Sangam 
  To: [EMAIL PROTECTED] 
  Sent: Tuesday, June 19, 2001 6:42 PM
  Subject: Compile ??


  where do I have to put my java Files so that I can compile and Import 
org.apache.tomcat .
  Please help
  thanks
  venkatesh




Re: apache tomcat as services under Linux

2001-06-20 Thread Boris Niyazov

I'd make tomcat start first and then apache, especialy in case when apache 
relies on tomcat-apache.conf that is updated dynamically by tomcat.  

*
* Boris NiyazovPh:  212-854-4094  Fax: 212-854-1749 *
* Systems Manager  Email: [EMAIL PROTECTED]  * 
* Columbia Law School  URL: http://www.law.columbia.edu *
*  
 




Hi,

You should create a script with something like
and put it on  /etc/rc.d/init.d/

 cut here---
#!/bin/sh

# Set this as you have it in your sistem
APACHE_HOME=/usr/local/apache
TOMCAT_HOME=/usr/local/jakarta/tomcat

# Test apachectl
if [ ! -x $APACHE_HOME/bin/apachectl ]
then
echo apachectl not found
exit
fi

# Test tomcat.sh
if [ ! -x $TOMCAT_HOME/bin/tomcat.sh ]
then
   echo tomcat not found
   exit
fi

case $1 in
start)
## Start services
$APACHE_HOME/bin/apachectl start
$TOMCAT_HOME/bin/startup.sh
;;
stop)
$TOMCAT_HOME/bin/shutdown.sh
$APACHE_HOME/bin/apachectl stop
;;
esac
-cut here --

name it apache-tomcat and give it execution permissions
with
chmod u+x  apache-tomcat

Then with control-panel you can link it to the run-level 3
or you can make it directly with

# Start in run level 3
cd /etc/rc.d/rc3.d
ln -s ../init.d/apache-tomcat S99apache-tomcat

# Stop
cd ../rc0.d
ln -s ../init.d/apache-tomcat K11apache-tomcat


Saludos,

-- Antoni Reus

- Original Message -
From: Pier Paolo Bortone [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 20, 2001 2:15 PM
Subject: apache  tomcat as services under Linux


Hi,
I need to start to use apache   tomcat in a production environment, thus I
need to start them as services.

I'm using RedHat 7.1, someone knows which scripts I have to put in rc3.d.

Thanks for your time.

Pier Paolo.






Re: start up tomcat from a virtual terminal

2001-06-20 Thread Boris Niyazov

Are you closing the window w/o logging out first?  Logout appropriately, using 
exit command or Ctrl/D, and then close the window if you need to. The reason 
is that Tomcat writes to stdout/stderr. 

hth
*
* Boris NiyazovPh:  212-854-4094  Fax: 212-854-1749 *
* Systems Manager  Email: [EMAIL PROTECTED]  * 
* Columbia Law School  URL: http://www.law.columbia.edu *
*  
 



Hi

I have installed Tomcat 3.2 on SUN1 SERVER (O.S. Solaris 2.7),I start up
Tomcat from a remote machine using a virtual terminal, if I close the
terminal window, TOMCAT shut down too.

I have tried to use Telnet to start up TOMCAT, but this way the X SERVER
cannot started

Any idea will be appreciated.

Thank you





Re: distributable servlet in Tomcat3.2

2001-06-19 Thread Boris Niyazov

Your servlets belong to 2 different contexts, moreover - jvms ... sessions are 
defined per context ... 
hth

*
* Boris NiyazovPh:  212-854-4094  Fax: 212-854-1749 *
* Systems Manager  Email: [EMAIL PROTECTED]  * 
* Columbia Law School  URL: http://www.law.columbia.edu *
*  
 



Hello,

I've read on this list that Tomcat 3.2 supports
serializing sessions attributes. I wanted to try it,
but could not find more information on the subject
here. So I tried to do it according to the servlet 2.2
specification. As it is not working, I try to sum-up
here what I've done:

I have installed 2 Tomcat 3.2 on the same machine
(taking care that the 2nd Tomcat starts on port 8081),
and for each of them, I have built a very simple
session webapp :
- session/
  - WEB-APP/
web.xml
- classes/
  SessionServlet.class

The web.xml looks like:
?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web
Application 2.2//EN
http://java.sun.com/j2ee/dtds/web-app_2_2.dtd;

web-app
   distributable
   /distributable
servlet
servlet-namesession/servlet-name
   
servlet-classSessionServlet/servlet-class
/servlet
servlet-mapping
servlet-namesession/servlet-name
url-pattern/session/url-pattern
/servlet-mapping
/web-app


For the firt Tomcat, I compiled:
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class SessionServlet extends HttpServlet {
public void doGet (HttpServletRequest req,
HttpServletResponse res)
  throws ServletException, IOException
  {
 ServletOutputStream out = res.getOutputStream();
 res.setContentType(text/plain);
 out.println(SessionServlet 1 output);

 ServletContext servletContext =
this.getServletContext();
 servletContext.setAttribute(foo,abcdef..foo);
 out.println(attribute foo, with value
abcde...foo, added in ServletContext);

 HttpSession httpSession = req.getSession();
 httpSession.setAttribute(bar,abcde...bar);
 out.println(attribute bar, with value
abcde...bar, added in HttpSession);

 out.close();
  }
}

For the second Tomcat, I compiled:
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class SessionServlet extends HttpServlet {
public void doGet (HttpServletRequest req,
HttpServletResponse res)
  throws ServletException, IOException
  {
 ServletOutputStream out = res.getOutputStream();

 res.setContentType(text/plain);
 out.println(SessionServlet 2 Output);

 ServletContext servletContext =
this.getServletContext();
 String foo = (String)
servletContext.getAttribute(foo);
 out.println(foo=+ foo + (get from
ServletContext));

 HttpSession httpSession = req.getSession();
 String bar = (String)
httpSession.getAttribute(bar);
 out.println(bar=+ bar + (get from
HttpSession));

 out.close();
  }
}

Requesting respectively the first servlet, and the
second serlvet did not give the expected results:

http://127.0.0.1:8080/session/servlet/SessionServlet
SessionServlet 1 output 
attribute foo, with value abcde...foo, added in
ServletContext 
attribute bar, with value abcde...bar, added in
ServletContext

http://127.0.0.1:8081/session/servlet/SessionServlet
SessionServlet 2 Output 
foo=null (get from ServletContext) 
bar=null (get from HttpSession) 


So did I made a mistake, did I forget something, or is
it simply not possible to do it ? 
Thanks for any help !

Xavier Marjou

__
Do You Yahoo!?
Spot the hottest trends in music, movies, and more.
http://buzz.yahoo.com/





Re: distributable servlet in Tomcat3.2

2001-06-19 Thread Boris Niyazov

Xavier,

pls, disregard my posting. I didn't read your question correctly. I didn't work 
with distributedable servlets, so can't help with this.

*
* Boris NiyazovPh:  212-854-4094  Fax: 212-854-1749 *
* Systems Manager  Email: [EMAIL PROTECTED]  * 
* Columbia Law School  URL: http://www.law.columbia.edu *
*   


Your servlets belong to 2 different contexts, moreover - jvms ... sessions are 
defined per context ... 
hth

*
* Boris NiyazovPh:  212-854-4094  Fax: 212-854-1749 *
* Systems Manager  Email: [EMAIL PROTECTED]  * 
* Columbia Law School  URL: http://www.law.columbia.edu *
* 
  



Hello,

I've read on this list that Tomcat 3.2 supports
serializing sessions attributes. I wanted to try it,
but could not find more information on the subject
here. So I tried to do it according to the servlet 2.2
specification. As it is not working, I try to sum-up
here what I've done:

I have installed 2 Tomcat 3.2 on the same machine
(taking care that the 2nd Tomcat starts on port 8081),
and for each of them, I have built a very simple
session webapp :
- session/
  - WEB-APP/
web.xml
- classes/
  SessionServlet.class

The web.xml looks like:
?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web
Application 2.2//EN
http://java.sun.com/j2ee/dtds/web-app_2_2.dtd;

web-app
  distributable
  /distributable
servlet
servlet-namesession/servlet-name
   
servlet-classSessionServlet/servlet-class
/servlet
servlet-mapping
servlet-namesession/servlet-name
url-pattern/session/url-pattern
/servlet-mapping
/web-app


For the firt Tomcat, I compiled:
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class SessionServlet extends HttpServlet {
public void doGet (HttpServletRequest req,
HttpServletResponse res)
  throws ServletException, IOException
  {
ServletOutputStream out = res.getOutputStream();
res.setContentType(text/plain);
out.println(SessionServlet 1 output);

ServletContext servletContext =
this.getServletContext();
servletContext.setAttribute(foo,abcdef..foo);
out.println(attribute foo, with value
abcde...foo, added in ServletContext);

HttpSession httpSession = req.getSession();
httpSession.setAttribute(bar,abcde...bar);
out.println(attribute bar, with value
abcde...bar, added in HttpSession);

out.close();
  }
}

For the second Tomcat, I compiled:
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class SessionServlet extends HttpServlet {
public void doGet (HttpServletRequest req,
HttpServletResponse res)
  throws ServletException, IOException
  {
ServletOutputStream out = res.getOutputStream();

res.setContentType(text/plain);
out.println(SessionServlet 2 Output);

ServletContext servletContext =
this.getServletContext();
String foo = (String)
servletContext.getAttribute(foo);
out.println(foo=+ foo + (get from
ServletContext));

HttpSession httpSession = req.getSession();
String bar = (String)
httpSession.getAttribute(bar);
out.println(bar=+ bar + (get from
HttpSession));

out.close();
  }
}

Requesting respectively the first servlet, and the
second serlvet did not give the expected results:

http://127.0.0.1:8080/session/servlet/SessionServlet
SessionServlet 1 output 
attribute foo, with value abcde...foo, added in
ServletContext 
attribute bar, with value abcde...bar, added in
ServletContext

http://127.0.0.1:8081/session/servlet/SessionServlet
SessionServlet 2 Output 
foo=null (get from ServletContext) 
bar=null (get from HttpSession) 


So did I made a mistake, did I forget something, or is
it simply not possible to do it ? 
Thanks for any help !

Xavier Marjou

__
Do You Yahoo!?
Spot the hottest trends in music, movies, and more.
http://buzz.yahoo.com/



  - Boris





Re: Regarding loading a class on startup

2001-06-19 Thread Boris Niyazov

If your class is a servlet you may want to use 
load-on-startup
 1
/load-on-startup

in your web.xml
hth
*
* Boris NiyazovPh:  212-854-4094  Fax: 212-854-1749 *
* Systems Manager  Email: [EMAIL PROTECTED] * 
* Columbia Law School  URL: http://www.law.columbia.edu *
*  
 



Hi,
I want to load a class in the memory when the tomcat server starts. 
Basically this class has some static data which I want the application to 
use. I want to keep the data at application level.

Regards,
Pankaj


  - Boris





Re: How can I make tomcat to instantiate a class

2001-06-18 Thread Boris Niyazov

We use a database connection pool class which is a servlet that we start on 
tomcat boot using the following in the application's web.xml. You may want to do 
something like this:

servlet
servlet-name
   conn_pool
/servlet-name
servlet-class
   your_servlet
/servlet-class
init-param
param-namepoolConf/param-name
param-valuepath_to_config_file/param-value
/init-param
load-on-startup
 1
/load-on-startup
/servlet

 
hth
*
* Boris NiyazovPh:  212-854-4094  Fax: 212-854-1749 *
* Systems Manager  Email: [EMAIL PROTECTED] * 
* Columbia Law School  URL: http://www.law.columbia.edu *
*  
 



This is what I suggest you do:

Create Gateway class (login class) that metes out Session
objects to callers via getMySession() method.
Inside this method I would deserialize the bean object from the file and
added it as an attribute inside the session.

It is a common technique for passing Connection and Thread
Pool objects within the session.

Or simple change scope to session:
jsp:useBean id=counter scope=page class=javabean.Counter /

But I realize that programming with tags is very limited.

Hope this helps.
R/Luba

- Original Message -
From: Debashis Ghosh [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, June 14, 2001 2:29 PM
Subject: Re: How can I make tomcat to instantiate a class


 Hi Luba,
 Thanks for this . But actually my problem was to instantiate a class when
 tomcat boots up...so that i can use that object across sessions.Can u
suggest
 something towarsd this.
 Thanks
 debashis
 On Thursday 14 June 2001 08:18 am, you wrote:
  JSP will do it for you.  Example:
 
  html
  body
 
  %@ page language=java %
  %@ page import=javabean.Counter %
 
  !-- page, request, session, application  --
 
  jsp:useBean id=counter scope=page class=javabean.Counter /
 
  %
   out.println(Count from scriplet =  + counter.getCount());
  %
 
  br
 
  Count from jsp:getProperty=
   jsp:getProperty name=counter property=count /
 
  /body
  /html
 
 
  - Original Message -
  From: Debashis Ghosh [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Wednesday, June 13, 2001 9:57 PM
  Subject: How can I make tomcat to instantiate a class
 
   Hi,
   Can anyone suggest How can I make tomcat to instantiate a class so
that i
 
  can
 
   access it from my
   jsp or servlet as an application level variable.Basically i want to
   instatiate one connection pool class so
   that i can access it from my servlet to get an connection object out
of
 
  it.
 
   On Wednesday 13 June 2001 06:47 pm, you wrote:
Below is good advice. If the login page does not
come up (btw, what happens does it just take you
direct to the protected resource?) the first place I would
look is the tomcat config files. So basically I would
double-check server.xml and the web-xml for your app.
If you are sure they are correct and you still have a problem
you might want to try posting the relevant sections to the list.
   
If you do get JDBCRealm working with tomcat standalone then
to integrate with apache you need to add
   
JkMount /examples/jsp/security/login/j_security_check ajp13
(or ajp12 if using mod_jserv) to httpd.conf to tell apache
to delegate the handling of this bit of magic to tomcat.
   
andrew
   
On Wed, 13 Jun 2001, you wrote:
  Mark, I appreciate your help.   I have tried
  to adapt the examples and I believe I have everything
  in place.  However, apache just wont bring the login
  form when I try to access a protected resource.
  Would you have any idea where to look at for this problem?

 You might want to check and see if you can get a
 JDBCRealm to work with tomcat standalone(i.e. accessing
 you site as http://localhost:8080/... directly).
 If this doesn't work get this working first and
 that's a good place to start from.  Once you have
 JDBCRealm working correctly then you can deal with
 making sure it works when passed through apache.


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





Re: How to avoid messages spamming?

2001-06-18 Thread Boris Niyazov

Configure tomcat to log into a file. In your server.xml specify the log file, 
for ex:

Logger name=tc_log
path=logs/tomcat.log
verbosityLevel = DEBUG
/

Messages will be redirected to tomcat.log 

hth
*
* Boris NiyazovPh:  212-854-4094  Fax: 212-854-1749 *
* Systems Manager  Email: [EMAIL PROTECTED] * 
* Columbia Law School  URL: http://www.law.columbia.edu *
*  
 




Hi listmates,

when i use tomcat on linux/slackware, startup/shutdown and error
messages appear on all consoles, even if I used /dev/null everywhere in
tomcat.sh :( how can redirect them to null or to a log file?

Thanks in advance :)



-- 
~
Mario Libraro
Progettazione  Sviluppo
~
Fulltrading S.p.A.

amm.:  50121 Firenze - Viale Matteotti, 9
sede:  00153 Roma - Via Rosazza, 58
cell.: +39 338 9753 962
   +39 347 5205 752
tel.:  +39 066 573 170
fax:   +39 066 573 529
email: [EMAIL PROTECTED]
   [EMAIL PROTECTED]
web:   www.fulltrading.it
~

Grande disordine sotto il cielo...
...la situazione è ottima

Mao Tse-Tung

 




Re: Fw: binary file upload fail

2001-06-05 Thread Boris Niyazov

You may want to take a look at O'Reilly package com.oreilly.servlet for file 
uploading:
http://www.servlets.com/cos/index.html

works for me.

HTH
*
* Boris NiyazovPh:  212-854-4094  Fax: 212-854-1749 *
* Systems Manager  Email: [EMAIL PROTECTED] * 
* Columbia Law School  URL: http://www.law.columbia.edu *
*  
 







Re: Server Beans Classes WEB-INF

2001-06-05 Thread Boris Niyazov

When you compile your jsp look where the jsp is trying to look for the been. 
Place the been in the appropriate subdirectory of WEB-INF/classes. You may need 
to package the beans.

HTH
*
* Boris NiyazovPh:  212-854-4094  Fax: 212-854-1749 *
* Systems Manager  Email: [EMAIL PROTECTED] * 
* Columbia Law School  URL: http://www.law.columbia.edu *
*  
 






   Is there any special context mapping required for getting 
javabeans/classes
working from the WEB-INF/classes directory?  I am trying to use a javabean
and it comples fine when use the javacompiler (javac).  When I use the bean
in a JSP page it essentially can not find the class.  Sould this setup be
almost automatic ?  I tried using it in a package wit the appropriate
directory structure but no dice.

any thoughts 






Re: Tomcat and container question

2001-06-04 Thread Boris Niyazov

Do you think bombing of the mailing list with unsibscribe messages can help you 
to unsibscribe? How we as subscibers can help you with this? Would it be wiser 
to read subscribe/unsibscribe rules sent to you after you got subsribed?
 
Boris Niyazov 
Systems Manager
Columbia Law School
 
 
 
UNSUBSCRIBE
  - Original Message - 
  From: Martin Kock 
  To: [EMAIL PROTECTED] 
  Sent: Monday, June 04, 2001 4:32 PM
  Subject: Tomcat and container question


  I use Tomcat with JSP pages only. Does the Tomcat webserver run with both the 
servlet container and the JSP container, or only one of them?? I would also like 
to know something about in which situation which container is used.

  Thanks in advance,
  Martin Kock





Re: Internal Server Error

2001-05-30 Thread Boris Niyazov

Is your Login.class is in %TOMCAT_HOME\webapps\web\WEB-INF\classes\VC
folder?

*
* Boris NiyazovPh:  212-854-4094  Fax: 212-854-1749 *
* Systems Manager  Email: [EMAIL PROTECTED] * 
* Columbia Law School  URL: http://www.law.columbia.edu *
*  
 




Sir ,

 I'm working on a JSP project , i'm facing the following problem

 I was able to access all the jsp's ,jpegs, htm,html's etc

 There was an Internal Servlet Error: when i try to access session
variable(from the next pages) after creating the session variable 
in the home page.

whenever  i try to access the other pages the following error is reported 

(HERE: Login and TimeSpent are session variables , which are created 
 in the home page )


But these class files are created in the work directory automatically 
created by TomCat server.

 

===
Error: 500

Location: /web/VC/vc2.jsp

Internal Servlet Error:

org.apache.jasper.JasperException: Unable to compile class for JSPerror: File
C:\jakarta-tomcat\work\localhost_8080%2Fweb\VC\Login.class does not contain
type VC.Login as expected, but type Login. Please remove the file, or make
sure it appears in the correct subdirectory of the class path.
C:\jakarta-tomcat\work\localhost_8080%2Fweb\_0002fVC_0002fvc_00032_0002ejspvc2_
jsp_0.java:67:
Class VC.Login not found.
Login lo=(Login)session.getValue(login);
^
C:\jakarta-tomcat\work\localhost_8080%2Fweb\_0002fVC_0002fvc_00032_0002ejspvc2_
jsp_0.java:67:
Class VC.Login not found.
Login lo=(Login)session.getValue(login);
  ^
error: File C:\jakarta-tomcat\work\localhost_8080%2Fweb\VC\TimeSpent.class
does not contain type VC.TimeSpent as expected, but type TimeSpent. Please
remove the file, or make sure it appears in the correct subdirectory of the
class path.
C:\jakarta-tomcat\work\localhost_8080%2Fweb\_0002fVC_0002fvc_00032_0002ejspvc2_
jsp_0.java:90:
Class VC.TimeSpent not found.
TimeSpent ts=(TimeSpent)session.getValue(time);
^
C:\jakarta-tomcat\work\localhost_8080%2Fweb\_0002fVC_0002fvc_00032_0002ejspvc2_
jsp_0.java:90:
Class VC.TimeSpent not found.
TimeSpent ts=(TimeSpent)session.getValue(time);
  ^
Note:
C:\jakarta-tomcat\work\localhost_8080%2Fweb\_0002fVC_0002fvc_00032_0002ejspvc2_
jsp_0.java
uses or overrides a deprecated API.  Recompile with -deprecation for
details.
6 errors, 1 warning

at org.apache.jasper.compiler.Compiler.compile(Compiler.java:247)
at org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:413)
at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspServl
et.java:149)
at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:
161)
at
org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)
at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConn
ectionHandler.java:160)
at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
at java.lang.Thread.run(Unknown Source)




Get free email and a permanent address at http://www.netaddress.com/?N=1




Re: simple Query

2001-05-30 Thread Boris Niyazov

check your http.conf for ServerName directive;
make sure the name is dns valid name;

hth
*
* Boris NiyazovPh:  212-854-4094  Fax: 212-854-1749 *
* Systems Manager  Email: [EMAIL PROTECTED] * 
* Columbia Law School  URL: http://www.law.columbia.edu *
*  
 




Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
list-help: mailto:[EMAIL PROTECTED]
list-unsubscribe: mailto:[EMAIL PROTECTED]
list-post: mailto:[EMAIL PROTECTED]
Delivered-To: mailing list [EMAIL PROTECTED]
Date: Wed, 30 May 2001 15:12:28 +0530
From: Parag S [EMAIL PROTECTED]
X-Accept-Language: en
MIME-Version: 1.0
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Subject: simple Query
Content-Transfer-Encoding: 7bit
X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N

I am using Apache 1.3.14 with Tomcat 3.2.2b on Solaris 2.6 and 2.7.
I start tomcat and then I start apache.
When I start apache it is throwing the following error -

httpd:Could not determine the server's fully qualified domain name,
using 127.0.0.1 for ServerName.

apachectl starts well, all servlets/jsps are working fine but what can
be the reason for that message?





Re: What is the value of auto-assigning beans?

2001-05-30 Thread Boris Niyazov

1. setProperty in jsp does not have any effect if the value is empty string.  
2. you use scope session

So when set A it stores it in the session bean, next time when you set B with no 
A, B gets set in the bean and A remains the same (session scope).

hth
*
* Boris NiyazovPh:  212-854-4094  Fax: 212-854-1749 *
* Systems Manager  Email: [EMAIL PROTECTED] * 
* Columbia Law School  URL: http://www.law.columbia.edu *
*  
 


This question may be asked out of ignorance, but it seems to me that using
the tag:

jsp:useBean id=MyBean scope=session class=Test.MyBean /
jsp:setProperty name=MyBean property=* /

to assign values from form fields to the bean is of limited use.

Let's assume that there are 2 text fields, A and B on Jsp1.jsp, with B
being required.  I have some code that checks to make sure B is populated,
if it's not, the browser returns to Jsp1.jsp.

The problem I run into is that I can populate A with a value, submit the
form, get returned to Jsp1.jsp, delete A and populate B, submit the form,
and continue.  I how have values for both A and B, even though A was blank.

I suspect that I'm not the first person to ask this question, is there an
obvious solution that I missed, if not, what do other people do to get
around this problem; do all of the assignements by hand?

Thanks.


--

NOTICE:  The information contained in this electronic mail transmission is
intended by Convergys Corporation for the use of the named individual or
entity to which it is directed and may contain information that is
privileged or otherwise confidential.  If you have received this electronic
mail transmission in error, please delete it from your system without
copying or forwarding it, and notify the sender of the error by reply email
or by telephone (collect), so that the sender's address records can be
corrected.





Re: Can't add a context to Tomcat 3.3

2001-05-30 Thread Boris Niyazov



I put SnoopServlet.class in webapps/reports/classes


It should be in webapps/reports/WEB-INF/classes

hth
*
* Boris NiyazovPh:  212-854-4094  Fax: 212-854-1749 *
* Systems Manager  Email: [EMAIL PROTECTED] * 
* Columbia Law School  URL: http://www.law.columbia.edu *
*  
 



I can request http://localhost/reports/ and get a tomcat generated index page.

If I request http://localhost/reports/SnoopServlet I get a 404 file not found 
error.

If I request http://localhost/reports/servlet/SnoopServlet I get the same.


Any insight or suggestions would be appreciated.

I believe I once had this working with Tomcat 3.2 (on another machine)

***
Brett Knights 250-338-3509 work
[EMAIL PROTECTED] 250-334-8309 home 
***


  - Boris





Re: Changing default servlet url

2001-05-23 Thread Boris Niyazov

You may want to use redirect in your web server config:

Redirect /dir1 http://hostname/dir1/servlet/servletname

but be aware of the problem with redirecting POSTS: it could not work, 
especially if you use absolute pathes instead of relative in your servlets.
hth
*
* Boris NiyazovPh:  212-854-4094  Fax: 212-854-1749 *
* Systems Manager  Email: [EMAIL PROTECTED] * 
* Columbia Law School  URL: http://www.law.columbia.edu *
*  
 


  


I'm in the process of switching from JServ to Tomcat.  All the servlets
that were running previously are running now on tomcat but they have
different urls.  I need the url to be the same as it was before I switched
to tomcat and am having trouble.

My servlet is in:
 c:\tomcat\webapps\dir1\WEB-INF\classes
I used the same setup as the examples.  To reach that servlet you have to
use the following url:
http://localhost/dir1/servlet/ServletName

I need the url to not have the 'servlet' in it.  Anybody know how to do
this?  Also, how does tomcat determine the servlet is in the
WEB-INF\classes directory?  Does it alias that as 'servlet'?  If so, where
is this done?

Frustrated...

Jason E. Brawner
Consultant
Silenus Group, Inc.
248.735.8077 Ext. 184
810.252.9944 Cellular





Re: Changing Tomcat's User ID

2001-05-21 Thread Boris Niyazov

you may want to use in your script:

/usr/bin/su nobody -c $TOMCAT_HOME/bin/startup.sh

hth
*
* Boris NiyazovPh:  212-854-4094  Fax: 212-854-1749 *
* Systems Manager  Email: [EMAIL PROTECTED] * 
* Columbia Law School  URL: http://www.law.columbia.edu *
*  
 




I'm running tomcat 3.2.1 on Solaris. It is started in an rc2.d/ script by
root, and therefore runs as root. We'd like to be able to have it run as
nobody like apache does. Is there a way to do this? I read through the
documentation on it, and it mentioned using su inside of the start scripts,
but that method did not work.
Any help would be greatly appreciated.
Thanks,
Jason Majors





Re: 3.2.1 Dies

2001-05-21 Thread Boris Niyazov

Why use nohup if you can configure tomcat to log into a file?

Logger name=tc_log
path=logs/tomcat.log
verbosityLevel = DEBUG
/

*
* Boris NiyazovPh:  212-854-4094  Fax: 212-854-1749 *
* Systems Manager  Email: [EMAIL PROTECTED] * 
* Columbia Law School  URL: http://www.law.columbia.edu *
*  
 





STDOUT  STDERR messages go to nohup.log. In your case you might be loosing
those messages as you logged off (they will be sent to /dev/null - trash).

Sri

At 10:54 AM 05/21/2001 -0700, Hunter Hillegas wrote:
What does running with nohup do for you?

I usually start Tomcat using tomcat.sh start and then just log out...

Hunter

 From: Srinadh Karumuri [EMAIL PROTECTED]
 Date: Mon, 21 May 2001 13:43:53 -0400
 To: Hunter Hillegas [EMAIL PROTECTED], Tomcat User List
 [EMAIL PROTECTED]
 Subject: Re: 3.2.1 Dies
 
 - I am running the tomcat using 'nohup' (UNIX command) on Solaris. My
 OutOfMemory errors were logged in nohup.log


Srinadh Karumuri
Senior Programmer/Analyst
Business Apps.
BBN Technologies (Verizon)
Ph:(617)873-2841





Re: Antigen found =*.vbs file

2001-05-09 Thread Boris Niyazov

 may be that was the intention: to create a flood of junk mail on the mailing 
list ... 

*
* Boris NiyazovPh:  212-854-4094  Fax: 212-854-1749 *
* Systems Manager  Email: [EMAIL PROTECTED] * 
* Columbia Law School  URL: http://www.law.columbia.edu *
*  
 


Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
list-help: mailto:[EMAIL PROTECTED]
list-unsubscribe: mailto:[EMAIL PROTECTED]
list-post: mailto:[EMAIL PROTECTED]
Delivered-To: mailing list [EMAIL PROTECTED]
Date: Wed, 9 May 2001 17:07:20 -0500 (CDT)
From: Milt Epstein [EMAIL PROTECTED]
X-X-Sender: [EMAIL PROTECTED]
To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
Subject: Re: Antigen found =*.vbs file
MIME-Version: 1.0
X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N

On Wed, 9 May 2001, ANTIGEN_MATRIX wrote:

 Antigen for Exchange found homepage.HTML.vbs matching =*.vbs file filter.
 The file is currently Removed.  The message, Rejected Message, was
 sent from [EMAIL PROTECTED] and was discovered in IMC
 Queues\Inbound
 located at MobileLogic/Denver/MATRIX.

With all these virus found messages, I wonder if the cure is worse
than the disease!

Milt Epstein
Research Programmer
Software/Systems Development Group
Computing and Communications Services Office (CCSO)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]





Re: JSP Tomcat

2001-05-08 Thread Boris Niyazov

Could be other reasons:
 
1. your bean may not be autoreloaded after you change it.
2. if your bean does not close properly statements after using them, they still 
refer to old one.

*
* Boris NiyazovPh:  212-854-4094  Fax: 212-854-1749 *
* Systems Manager  Email: [EMAIL PROTECTED] * 
* Columbia Law School  URL: http://www.law.columbia.edu *
*  
 




Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
list-help: mailto:[EMAIL PROTECTED]
list-unsubscribe: mailto:[EMAIL PROTECTED]
list-post: mailto:[EMAIL PROTECTED]
Delivered-To: mailing list [EMAIL PROTECTED]
X-Envelope-Sender-Is: [EMAIL PROTECTED] (at relayer 
goliath.siemens.de)
From: Falk [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: JSP Tomcat
Date: Tue, 8 May 2001 14:15:43 +0200
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N

It's definitly not in the browser's cache.

- Original Message -
From: Hari Yellina [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, May 08, 2001 1:57 PM
Subject: Re: JSP Tomcat


 it is not the problem of the Tomcat. It is u r browser cache is doing
that.
 Please put 0 for cahe. it is going to help you man.
 Regards.
 Hari Yellina.
 - Original Message -
 From: Falk [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, May 08, 2001 9:34 PM
 Subject: JSP Tomcat


  hello,
  i use a javabean within a jsp page on a tomcat3.2.1 server.
 
  jsp:useBean   class=oracle.jbo.html.databeans.ChartRenderer  id=bon
  scope=request 
 
  the bean retrieves data from a database. all fine so far.
  but tomcat caches the files so when i update the database and reload the
 jsp
  page  in the browser I receive old data.
  I have to restart tomcat in order to get the correct data.
  Also when I open another browser the data is correct.
  And I get OutputStream already in use Exception.
  anybody knows how to configure tomcat to get the correct data without
 having
  to restart ??
 
  thanks a lot
  falk
 





Re: Question about Debug log

2001-05-08 Thread Boris Niyazov

tail -f logs/tomcat.log

hth
*
* Boris NiyazovPh:  212-854-4094  Fax: 212-854-1749 *
* Systems Manager  Email: [EMAIL PROTECTED] * 
* Columbia Law School  URL: http://www.law.columbia.edu *
*  
 



Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
list-help: mailto:[EMAIL PROTECTED]
list-unsubscribe: mailto:[EMAIL PROTECTED]
list-post: mailto:[EMAIL PROTECTED]
Delivered-To: mailing list [EMAIL PROTECTED]
From: André Martiniano [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Question about Debug log
Date: Tue, 8 May 2001 16:04:56 -0300
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
X-Sender-IP: 200.248.156.250
X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N

Hy all

I´m running TomCat 3.2.1 and Apache 1.3.19 on Red Rat Linux and it´s ok.

I´d like to know if there is a way to deviate the Debug output (that one shown 
when script startup.sh is executed). I know that it´s just add the line 
path=´logs/tomcat.log´ to server.xml file.
But what i want is that an user could see, using telnet, this debug in 
real-time, in other words, the user won´t need to open /logs/tomcat.log and 
after some time close it and open again to reflect the changes. Accurately as if 
this user it had executed script startup.sh and debug left in its screen.

Any one can help me?
Thanks!





Re: error message logging

2001-05-07 Thread Boris Niyazov

Look at server.xml: you can specify a log file for Loger name=tc_log, that where 
tomcat will redirect its logs insetad of console. Is it what you want?

hth
*
* Boris NiyazovPh:  212-854-4094  Fax: 212-854-1749 *
* Systems Manager  Email: [EMAIL PROTECTED] * 
* Columbia Law School  URL: http://www.law.columbia.edu *
*  
 


 

Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
list-help: mailto:[EMAIL PROTECTED]
list-unsubscribe: mailto:[EMAIL PROTECTED]
list-post: mailto:[EMAIL PROTECTED]
Delivered-To: mailing list [EMAIL PROTECTED]
Date: Tue, 8 May 2001 00:04:11 +1000 (EST)
From: teh j [EMAIL PROTECTED]
Subject: error message logging
To: [EMAIL PROTECTED]
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N

Hi there!

I was wondering if it were possible to somehow log the
error messages that appear at the tomcat console
should there be an error in a jsp application?

eg say that our javabeans have a nullpointer exception
and an error 500 message is displayed at our console
and at our browser. Is there a way to pipe this to a
log file?

thanks !
Jason

_
http://store.yahoo.com.au - Yahoo! Store
- It's time you had your business online!





Re: session timeout

2001-05-02 Thread Boris Niyazov


you're right, John: units, of course, are minutes ... it doesn't make sense that 
the default config for session timeout in tomcat is half a minute...
I don not know why my hands were typing seconds while I was thinking about 
minutes ...:-)

Thanks for the correction.
*
* Boris NiyazovPh:  212-854-4094  Fax: 212-854-1749 *
* Systems Manager  Email: [EMAIL PROTECTED] * 
* Columbia Law School  URL: http://www.law.columbia.edu *
*  
 



Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
list-help: mailto:[EMAIL PROTECTED]
list-unsubscribe: mailto:[EMAIL PROTECTED]
list-post: mailto:[EMAIL PROTECTED]
Delivered-To: mailing list [EMAIL PROTECTED]
Date: Wed, 02 May 2001 11:21:39 +0800
From: John Clark L. Naldoza [EMAIL PROTECTED]
X-Accept-Language: en
MIME-Version: 1.0
To: [EMAIL PROTECTED]
Subject: Re: session timeout
Content-Transfer-Encoding: 7bit
X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N

Boris Niyazov wrote:
 
 you probably can find in your web.xml:
 
 session-config
session-timeout
 30
/session-timeout
 /session-config
 
 units seconds
 hth
 *
 * Boris NiyazovPh:  212-854-4094  Fax: 212-854-1749 *
 * Systems Manager  Email: [EMAIL PROTECTED] *
 * Columbia Law School  URL: http://www.law.columbia.edu *
 *

Hi,


Kindly check the web.dtd before coming up with this conclusion...;-)

According to the web.dtd

!ELEMENT session-config (session-timeout?)

!-- The session-timeout element defines the default session timeout
interval for all sessions created in this web application. The
specified timeout must be expressed in a whole number of minutes. --


;-)

Cheers,


John Clark

-- 
 /) John Clark Naldoza y Lopez   (\
/ )Software Design Engineer II   ( \
  _( (__  Web-Application Development_) )_
 (((\ \  /_Cable Modem Network Management System _\  / /)))
 ( \_/ / NEC Telecom Software Phils., Inc.  \ \_/ )
  \   /  \   /
   \_/  phone: (+63 32) 233-9142 loc. 3112\_/
   /   /  cellphone: (+63 919) 399-4742 \   \
  /   / email: [EMAIL PROTECTED]\   \





Re: session timeout

2001-05-01 Thread Boris Niyazov

you probably can find in your web.xml:

session-config
   session-timeout
30
   /session-timeout
/session-config

units seconds
hth
*
* Boris NiyazovPh:  212-854-4094  Fax: 212-854-1749 *
* Systems Manager  Email: [EMAIL PROTECTED] * 
* Columbia Law School  URL: http://www.law.columbia.edu *
*  
 




Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
list-help: mailto:[EMAIL PROTECTED]
list-unsubscribe: mailto:[EMAIL PROTECTED]
list-post: mailto:[EMAIL PROTECTED]
Delivered-To: mailing list [EMAIL PROTECTED]
Date: Mon, 30 Apr 2001 16:17:23 +1000 (EST)
From: teh j [EMAIL PROTECTED]
Subject: session timeout
To: [EMAIL PROTECTED]
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N

hi guys!

just wondering if there some kind of session timeout
on in Tomcat itself? If i leave a page that I am using
sessions on for security for a while, and come back to
it and try and do something on it, it gives me a
message that suggests to me that there is some kind of
timeout for sessions on the server. If there is, is
there a way to alter its value?

Document moved
This document has moved here.

Error: 500
Location: /test/jason/add_event/add_event.jsp
Internal Servlet Error:

javax.servlet.ServletException
   at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.j
ava:459)
   at
jason.add_0005fevent._0002fjason_0002fadd_0005fevent_0002fadd_0005fevent_0002ej
spadd_0005fevent_jsp_83._jspService(_0002fjason_0002fadd_0005fevent_0002fadd_000
5fevent_0002ejspadd_0005fevent_jsp_83.java:218)
   at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
   at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:
177)
   at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
   at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
   at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
   at
org.apache.tomcat.core.Handler.service(Handler.java:286)
   at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
   at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
   at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:7


_
http://store.yahoo.com.au - Yahoo! Store
- It's time you had your business online!

  - Boris





Re: auto reload not working

2001-04-26 Thread Boris Niyazov

General question - general answer:

Servlet classes located in webapps/app/WEB_INF are supposed to be reloaded after 
recompilation. According to tomcat docs auto reloading is experimental feature, 
there is no guarantee that other classes will be reloaded even if you have 
auto-reloading turned on.

*
* Boris NiyazovPh:  212-854-4094  Fax: 212-854-1749 *
* Systems Manager  Email: [EMAIL PROTECTED] * 
* Columbia Law School  URL: http://www.law.columbia.edu *
*  
 





On Wed, 25 Apr 2001 08:41:57 -0500 Joel Regen [EMAIL PROTECTED] wrote:

 Why do I need to restart Tomcat to see changes in class files take effect?
 I am running an application with default configuration of which autoreload
 is supposed to be 'true'.
 anyone?
 

I posted this message about 1 week ago and got nothing but 1 message saying
that it does it for me as well. Not one answer or offer for help.

Jeremy






Re: ClassCastException when passing a list of Beans to JSP page

2001-04-25 Thread Boris Niyazov

Does this happen when you change you beans? If you have jsps that use the beans 
with session scope then modifying the bean can cause this, especally if session 
object remains in the memory... Restarting your browser should also help.

*
* Boris NiyazovPh:  212-854-4094  Fax: 212-854-1749 *
* Systems Manager  Email: [EMAIL PROTECTED] * 
* Columbia Law School  URL: http://www.law.columbia.edu *
*  
 


  

Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
list-help: mailto:[EMAIL PROTECTED]
list-unsubscribe: mailto:[EMAIL PROTECTED]
list-post: mailto:[EMAIL PROTECTED]
Delivered-To: mailing list [EMAIL PROTECTED]
Date: Wed, 25 Apr 2001 13:25:06 -0600
From: John Cartwright [EMAIL PROTECTED]
X-Accept-Language: en
MIME-Version: 1.0
To: [EMAIL PROTECTED]
Subject: ClassCastException when passing a list of Beans to JSP page
Content-Transfer-Encoding: 7bit
X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N

Hello All,

I am hoping someone can solve this mystery for me since I'm stumped.  

I have a servlet which populates a vector with beans.  It then puts the
vector into the request object and forwards to a JSP page.

The JSP page pulls the vector out of the request and proceeds to call
methods on each bean in the list.

Sometimes the whole thing quits working and complains with a 

Internal Servlet Error:
javax.servlet.ServletException: sde.LayerBean
...
Root cause: 
java.lang.ClassCastException: sde.LayerBean
...

Restarting tomcat solves the problem, but I'd like to understand what's
going on. I'm assuming that it's the JSP page throwing the exception
(the errorPage directive engages).

Can someone enlighten me?  I'm using Tomcat 3.2.1 (standalone) on Linux
JDK1.3.  The JSP page is listed below.

Thanks!

 
-- john


%@ page import=sde.LayerBean,java.util.* %
html
body
%
   Vector v = (Vector)request.getAttribute(list);
   LayerBean layer;
   Iterator i = v.iterator();
   while (i.hasNext()) {
  layer = (LayerBean)i.next();
%
%=layer.getTableName()%BR
% } %
/body
/html





===
John Cartwright
Professional Research Assistant / Associate Scientist
CIRES, SEG/NGDC/NOAA
(303) 497-6284
[EMAIL PROTECTED]
===




Re: The servlet prefix

2001-04-25 Thread Boris Niyazov

Why wouldn't you want to create a redirect? For ex for apache you can use:

Redirect /servlet_app http://www.foo.com/servlet_app/servlet

hth
*
* Boris NiyazovPh:  212-854-4094  Fax: 212-854-1749 *
* Systems Manager  Email: [EMAIL PROTECTED] * 
* Columbia Law School  URL: http://www.law.columbia.edu *
*  
 




Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
list-help: mailto:[EMAIL PROTECTED]
list-unsubscribe: mailto:[EMAIL PROTECTED]
list-post: mailto:[EMAIL PROTECTED]
Delivered-To: mailing list [EMAIL PROTECTED]
From: Joe Krause [EMAIL PROTECTED]
To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
Subject: The servlet prefix
Date: Wed, 25 Apr 2001 13:30:54 -0700
MIME-Version: 1.0
X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N

How do you get rid of the servlet prefix that Tomcat appends to every
servlet URL? I have a web site that is currently using jserv, but we are
upgrading the server and I want to move the site over to tomcat. However,
tomcat's default behaviour is to stick the work servlet in the URL between
the context name and the servlet being accessed. This breaks all my HREFs.
Instead of rewritting all the HREFs on 50 pages, I want tomcat to not use a
the servlet prefix. I have tracked this default behaviour down to a couple
of lines in the server.xml file.
 
!-- Non-standard invoker, for backward compat. ( /servlet/* )
 You can modify the prefix that is matched by adjusting the
 prefix parameter below.  Be sure your modified pattern
 starts and ends with a slash.
 
 NOTE:  This prefix applies to *all* web applications that
 are running in this instance of Tomcat.
  --
RequestInterceptor
className=org.apache.tomcat.request.InvokerInterceptor
debug=0 prefix=/servlet/ /
 
The problem is that when i remove this RequestInterceptor or make prefix=
or prefix=/ - i don't get access to the servlets and end up with a 404
error. Has anyone seen this problem before? Can anyone help me?
 
Thanks for taking the time to read this!
 
Joe Krause




Re: JDK1.3 ?

2001-04-25 Thread Boris Niyazov

make sure tomcat knows the path to the class: place the corresponding jar file 
(parser.jar) in $TOMCAT_HOME/lib.

hth
*
* Boris NiyazovPh:  212-854-4094  Fax: 212-854-1749 *
* Systems Manager  Email: [EMAIL PROTECTED] * 
* Columbia Law School  URL: http://www.law.columbia.edu *
*  
 



 
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
list-help: mailto:[EMAIL PROTECTED]
list-unsubscribe: mailto:[EMAIL PROTECTED]
list-post: mailto:[EMAIL PROTECTED]
Delivered-To: mailing list [EMAIL PROTECTED]
From: Richard Keene [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: JDK1.3 ?
Date: Wed, 25 Apr 2001 15:49:55 -0600
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700
X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by solni.law.columbia.edu 
id RAA13828

Does Tomcat work with JDK1.3 ?

I have Windows2000, JDK1.3

with 
tomcat run
I get ...

C:\jakarta-tomcat\bintomcat run
Using classpath: 
C:\jakarta-tomcat\classes;C:\jakarta-tomcat\lib\webserver.jar;C
:\jakarta-tomcat\lib\jasper.jar;C:\jakarta-tomcat\lib\xml.jar;C:\jakarta-tomcat
\
lib\servlet.jar;C:\jdk1.3\lib\tools.jar;C:\MySQL-JDBC\mm.mysql.jdbc-1.2c\mysql_
c
omp.jar;C:\MySQL-JDBC\mm.mysql.jdbc-1.2c\mysql_comp.jar;./WEB-INF/classes;C:\jd
k
1.3\lib\tools.jar;C:\MySQL-JDBC\mm.mysql.jdbc-1.2c\mysql_comp.jar;C:\jakarta-to
m
cat\webapps\iCentrisTime;C:/Odyssey3/dst/classes/pcl5.jar;C:/javamail-1.2/mail.
j
ar;C:/javamail-1.2/activation.jar;C:/javamail-1.2/pop3.jar;C:\jdk1.2.2\lib\icem
a
il-3-0-4.jar;C:\j2sdkee1.2.1\lib\j2ee.jar;E:\WEB-INF\classes;C:\trav\ta.jar
java  -Dtomcat.home=C:\jakarta-tomcat org.apache.tomcat.startup.Tomcat

java.lang.ClassNotFoundException: com.sun.xml.parser.Parser
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:191)
at java.lang.ClassLoader.loadClass(ClassLoader.java:298)
at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:314)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:124)
at org.xml.sax.helpers.ParserFactory.makeParser(ParserFactory.java:124)
at org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:191)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:143)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163)
FATAL: configuration error
java.lang.Exception: Error creating sax parser
at org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:207)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:143)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163)

But if I type the class name directly I get...

C:\jakarta-tomcat\binjava com.sun.xml.parser.Parser
Exception in thread main java.lang.NoSuchMethodError: main

so it is finding the class.  It appears that tomcat has a differnt or custom 
class loader?

Richard Keene
VP Development
iCentris.com
801-201-0969
[EMAIL PROTECTED]PGP Key 
http://www.icentris.com
  





Re: tomcat webapps/examples

2001-04-24 Thread Boris Niyazov

Create a new directory myweb under $TOMCAT_HOME/webapps, make similar 
structure that examples has. Restart tomcat. 
hth
*
* Boris NiyazovPh:  212-854-4094  Fax: 212-854-1749 *
* Systems Manager  Email: [EMAIL PROTECTED] * 
* Columbia Law School  URL: http://www.law.columbia.edu *
*  
 




 
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
list-help: mailto:[EMAIL PROTECTED]
list-unsubscribe: mailto:[EMAIL PROTECTED]
list-post: mailto:[EMAIL PROTECTED]
Delivered-To: mailing list [EMAIL PROTECTED]
From: Georges Boutros [EMAIL PROTECTED]
To: Tomcat (E-mail) [EMAIL PROTECTED]
Subject: tomcat webapps/examples
Date: Tue, 24 Apr 2001 13:03:00 -0400
MIME-Version: 1.0
X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N

hi all,

i'm a new user to tomcat, i'd would like to access ma pages with this
command :
http://myServer/myweb/jsp/myjsppages/example.jsp

instead of 
http://myServer/examples/jsp/myjsppages/example.jsp

i just want to change the examples to myweb

can anyone tell me how can i do it ???

i tried to add a context in my server.xml 
Context path=/my web docBase=webapps/myweb debug=0 reloadable=true

/Context
but it didn't work!!

thanks,

Georges




RE: Tomcat SSL

2001-04-24 Thread Boris Niyazov

I see a little misunderstanding here. Apache with mod_ssl or apache-ssl module 
uses ssl connection with http clients. The communication between apache and the 
servlet container is done via ajpXX protocol that can be secure or not. As I 
understand ajp12 (that mod_jserv uses) does not support SSL while ajp13 (that 
mod_jk uses) does. 
So, if apache and the servlet container are residing on the same box, one can 
use apache-ssl with mod_jserv or tomcat+ajp12 and be secure (that what we do 
here). When using communication between apache and the servlet container is done 
via net, one should probably use ajp13, meaning tomcat+mod_jk.

This is my 2 cents
*
* Boris NiyazovPh:  212-854-4094  Fax: 212-854-1749 *
* Systems Manager  Email: [EMAIL PROTECTED] * 
* Columbia Law School  URL: http://www.law.columbia.edu *
*  
 



Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
list-help: mailto:[EMAIL PROTECTED]
list-unsubscribe: mailto:[EMAIL PROTECTED]
list-post: mailto:[EMAIL PROTECTED]
Delivered-To: mailing list [EMAIL PROTECTED]
Date: Tue, 24 Apr 2001 16:32:03 -0500 (CDT)
From: Milt Epstein [EMAIL PROTECTED]
X-X-Sender: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: Tomcat  SSL
MIME-Version: 1.0
X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N

On Tue, 24 Apr 2001, GOMEZ Henri wrote:

 
  -- mod_jserv won't work if you want to use SSL
 
 Why not? SSL stuff in apache is done in apache, and jserv is
 only a connector.
 The SSL in apache works the same way in mod_ssl, and
 mod_jserv. The only
 difference is that in Servlet Spec 2.0 (JSDK2.0 which jserv is) has no
 notion of SSL (to my knowledge), and you cannot really do
 anything with SSL
 within servlets, unless you write everything yourself. You still get
 the CGI environment variables, so you probably can find out that
 request was handled as HTTPS, but apache takes care of it for you,
 and you cannot make much use of it within a servlet.

 mod_jserv didn't support SSL neither ajp12. You must use mod_jk
 with ajp13 to get SSL info forwarded from Apache to Tomcat.
[ ... ]

Can you clarify what you mean bu this?  Because I'm using Apache with
mod_ssl, and Tomcat with mod_jserv, and things are working just fine.
Perhaps there's some functionality I don't have, but I guess I haven't
needed it yet.

Milt Epstein
Research Programmer
Software/Systems Development Group
Computing and Communications Services Office (CCSO)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]


  - Boris





Re: [tc3.3] configuring logging

2001-04-22 Thread Boris Niyazov

Read JSP spec. You should use application.log(...) in your JSP pages.

HTH
*
* Boris NiyazovPh:  212-854-4094  Fax: 212-854-1749 *
* Systems Manager  Email: [EMAIL PROTECTED] * 
* Columbia Law School  URL: http://www.law.columbia.edu *
*  
 





Hi,

I have a few questions about Tomcat3.3 server.xml configuration, and
logging in particular. 

First, is there *any* documentation of the various server.xml tags? A
DTD perhaps? One of the nicest things about tc4.0 is how clean and
obvious server.xml has become. By contrast, 3.3 is a mess, littered with
references to Interceptors, and odd tags like: SessionExpirer
checkInterval=60 /.

Second, is there any magic tag that will let me log stderr and stdout to
a file?

Third (and this may be a bug), what happens to log() messages within
JSPs? If I have a JSP:

% log(This is logged with log()); %

and run it, the output doesn't appear in logs/*, or on stdout/stderr..
is it being lost?

thanks,

--Jeff

  - Boris





Re: Where does System.out.println go under Tomcat

2001-04-16 Thread Boris Niyazov

use application.log method in your jsp pages to log msgs into servlet.log.
HTH

*
* Boris NiyazovPh:  212-854-4094  Fax: 212-854-1749 *
* Systems Manager  Email: [EMAIL PROTECTED] * 
* Columbia Law School  URL: http://www.law.columbia.edu *
*  
 




Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
list-help: mailto:[EMAIL PROTECTED]
list-unsubscribe: mailto:[EMAIL PROTECTED]
list-post: mailto:[EMAIL PROTECTED]
Delivered-To: mailing list [EMAIL PROTECTED]
From: "Brian Burridge" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Where does System.out.println go under Tomcat
Date: Mon, 16 Apr 2001 10:02:56 -0400
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
X-Loop-Detect: 1
X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N

I've put some system out prints in my JSP pages, but I cannot find the error 
logs. I've found the logs for the web site (apache's standards logs) and I've 
found a servlet.log and a jasper.log under the jakarta logs directory, but I 
have no idea where servlet errors go.

Brian




Re: LDAP Server

2001-03-29 Thread Boris Niyazov

OpenLdap is realiable and FREE:

http://www.openldap.com

*
* Boris NiyazovPh:  212-854-4094  Fax: 212-854-1749 *
* Systems Manager  Email: [EMAIL PROTECTED] * 
* Columbia Law School  URL: http://www.law.columbia.edu *
*  
 



Netscape's one looks ok.

Dmitry R., [EMAIL PROTECTED]
Chief Architect, MetricStream.COM
Santa Clara, CA






-Original Message-
From:Batsheva Raviv [EMAIL PROTECTED]
Sent:Thu, 29 Mar 2001 16:46:56 -0800
To:  [EMAIL PROTECTED]
Subject: LDAP Server


Hello,
Can somebody recommend a LDAP server that he/she have used?
Batsheva



___
Visit http://www.visto.com/info, your free web-based communications center.
Visto.com. Life on the Dot.


  




Re: Reloading Servlets

2001-03-29 Thread Boris Niyazov

Do not reboot. Just shutdown and restart tomcat. In 3.2.1 release notes it's 
said that reloading classes is experimental feature and is not garanteed to work 
100%. I have similar problems with reloading my beans. Nobody answered my 
question so far, so I tend to beleive the doc is right: reloading does not work 
all the time.

*
* Boris NiyazovPh:  212-854-4094  Fax: 212-854-1749 *
* Systems Manager  Email: [EMAIL PROTECTED] * 
* Columbia Law School  URL: http://www.law.columbia.edu *
*  
 




Hi,

   I've been writing servlets, testing them as I go with my
Tomcat-Apache Server and Netscape... I've run into the problem
that sometimes, not all the time, when I refresh a servlet to see
changes, it's not changed? I closed Netscape, deleted my 
web cache, and closed Kawa. But still the next time I run it, it's
still there unchanged... Usually I have to re-boot... is Tomcat
or Apache Caching my servlets? Any Ideas on how to fix this?

   Thanks in Advance,

   Colin Morris.
   [EMAIL PROTECTED]

   




Beans do not get reloaded

2001-03-28 Thread Boris Niyazov

Hi there,

I have Tomcat 3.2.1, Java SDK 1.3.0 installed on Solaris 7 machine.

I am having intermittent problems with beans reloading. It seems that sometimes 
the beans are not reloaded after the compilation, and the jsp page is referecing 
the old version of the bean. I have to restart tomcat in order for it to reload 
the beans.

Again I can't find a pattern when this happens but it does happen. I'm not sure 
whether it's a memory leak or I am missing something. 

Any help/hint will be greatly appreciated.

Thanks in advance,

*
* Boris NiyazovPh:  212-854-4094  Fax: 212-854-1749 *
* Systems Manager  Email: [EMAIL PROTECTED] * 
* Columbia Law School  URL: http://www.law.columbia.edu *
*