suggestions for avoiding javascript problems

2001-11-15 Thread G.Nagarajan

some problems that I faced using javascript libraries

- sometimes the libraries will not be loaded, especially in
very slow connections. Because of this, the other scripts in
the page might not execute. This is a big problem especially
if you have some dynamic menus etc. The only solution is to
add all the script into the page itself using include commands.

- if you do something in the onLoad() javascript function, it 
might not get executed. This is because the onload function
fires only when all the elements of the page including images,
applets etc are loaded.

- put the javascript for image rollover effects in the top of
the page. If you put in the bottom of the page, the page elements
would have been rendered on the screen but the javascript will not
be available. This would show some javascript errors and would
stop all other scripts in the page!



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




RE: Logging from a servlet in Tomcat

2001-10-19 Thread G.Nagarajan

Best is to use Log4j for logging. It gives more control and
flexibility than using the servlet logging facility. 

-Original Message-
From: Barney Hamish [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 19, 2001 10:42 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Logging from a servlet in Tomcat


I haven't tried this in 4 but in 3 you can always just print to stdout or
stderr
eg. System.out.println(In the Foo function);
Which will get printed to the console or your logs depending on how you're
running tomcat

-Original Message-
From: Dr. Evil [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 19, 2001 10:30 AM
To: [EMAIL PROTECTED]
Subject: Logging from a servlet in Tomcat



I have a question: It would be extremely useful for a servlet to be
able to record debugging messages in some way.  I don't have a Java
debugger, but I could do a lot of debugging if I had a command that
looked like this:

log(We are in this part of the code now);

I have seen documentation for a command like that, and I have tried it
in my installation of Tomcat 4.0, but it doesn't send any output
anywhere, so it seems useless.  Is there a way to get it to work?

Thanks



RE: JPeg Image Encoder problem under Tomcat 3.2

2001-10-19 Thread G.Nagarajan

This could be a problem with IE, did you try it in netscape?

-Original Message-
From: LeRoux van Wyk [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 19, 2001 10:34 AM
To: [EMAIL PROTECTED]
Subject: JPeg Image Encoder problem under Tomcat 3.2


Hi

I'm running Tomcat 3.2 as a standalone on a win2000 system.The servlet I
have created draws data from an Access DB using the JDBC-ODBC bridge and
then displays the data in a chart using the JPEG image encoder
class.Everything works great, but every once and again Tomcat crashes with
the error shown below.

Can anybody point me in the right direction or tell me what I'm doing wrong?

Thanx
LeRoux

Exception in thread Thread-9 java.net.SocketException: Connection reset by
peer: socket write error

at java.net.SocketOutputStream.socketWrite(Native Method)

at java.net.SocketOutputStream.write(Unknown Source)

at
org.apache.tomcat.service.http.HttpResponseAdapter.endHeaders(HttpResponseAd
apter.java:124)

at
org.apache.tomcat.core.BufferedServletOutputStream.sendHeaders(BufferedServl
etOutputStream.java:126)

at
org.apache.tomcat.core.BufferedServletOutputStream.reallyFlush(BufferedServl
etOutputStream.java:236)

at
org.apache.tomcat.core.BufferedServletOutputStream.write(BufferedServletOutp
utStream.java:185)

at sun.awt.image.codec.JPEGImageEncoderImpl.writeJPEGStream(Native Method)

at sun.awt.image.codec.JPEGImageEncoderImpl.encode(Unknown Source)

at sun.awt.image.codec.JPEGImageEncoderImpl.encode(Unknown Source)

at FWD.doPost(FWD.java:1742)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)

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:81
2)

at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)

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(Unknown Source)

2001-10-19 10:33:05 - Ctx( ): IOException in: R( + /servlet/FWD + null)
reading encoded JPEG Stream

2001-10-19 10:33:05 - Ctx( ): IOException in: R( + /servlet/FWD + null)
Connection reset by peer: socket write error






RE: Logging from a servlet in Tomcat

2001-10-19 Thread G.Nagarajan

dont know. But logging has saved my skin many times. It is worth
the effort to use log4j than putting lots of system.out.println statements.
They become clumsy when you have some 10 servlets printing to the console...

-Original Message-
From: Arnaud Héritier [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 19, 2001 10:56 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Logging from a servlet in Tomcat


One question about this subject.
Why the Tomcat (4) team (Craig and others) didn't use log4J to trace the
server ?

 -Message d'origine-
 De:   G.Nagarajan [SMTP:[EMAIL PROTECTED]]
 Date: vendredi 19 octobre 2001 10:48
 À:[EMAIL PROTECTED]
 Objet:RE: Logging from a servlet in Tomcat

 Best is to use Log4j for logging. It gives more control and
 flexibility than using the servlet logging facility.

 -Original Message-
 From: Barney Hamish [mailto:[EMAIL PROTECTED]]
 Sent: Friday, October 19, 2001 10:42 AM
 To: '[EMAIL PROTECTED]'
 Subject: RE: Logging from a servlet in Tomcat


 I haven't tried this in 4 but in 3 you can always just print to stdout or
 stderr
 eg. System.out.println(In the Foo function);
 Which will get printed to the console or your logs depending on how you're
 running tomcat

 -Original Message-
 From: Dr. Evil [mailto:[EMAIL PROTECTED]]
 Sent: Friday, October 19, 2001 10:30 AM
 To: [EMAIL PROTECTED]
 Subject: Logging from a servlet in Tomcat



 I have a question: It would be extremely useful for a servlet to be
 able to record debugging messages in some way.  I don't have a Java
 debugger, but I could do a lot of debugging if I had a command that
 looked like this:

 log(We are in this part of the code now);

 I have seen documentation for a command like that, and I have tried it
 in my installation of Tomcat 4.0, but it doesn't send any output
 anywhere, so it seems useless.  Is there a way to get it to work?

 Thanks




RE: JPeg Image Encoder problem under Tomcat 3.2

2001-10-19 Thread G.Nagarajan

I guess you are pressing the stop button in the browser. The exception is
thrown
because you are interrupting the communication between the browser and the
servlet.
This should be thrown even if you are not resubmitting the form. Try to
change the
code of the servlet so that when this exception occurs it does not affect
future
requests to the servlet. Check if you can do some caching mechanism, ie
storing the
entire image in memory if it does not change often and the size is not too
big. This
will make the servlet faster.

-Original Message-
From: LeRoux van Wyk [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 19, 2001 11:02 AM
To: [EMAIL PROTECTED]
Subject: Re: JPeg Image Encoder problem under Tomcat 3.2


The same problem occurs in Netscape under Windows,Linux and Mac.
What I discovered just now is that the problem seem to occur every time I
stop a servlet executing before it gives an output and then when I resubmit
the form to invoke the servlet it throws the exception.


- Original Message -
From: G.Nagarajan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 19, 2001 10:47 AM
Subject: RE: JPeg Image Encoder problem under Tomcat 3.2


 This could be a problem with IE, did you try it in netscape?

 -Original Message-
 From: LeRoux van Wyk [mailto:[EMAIL PROTECTED]]
 Sent: Friday, October 19, 2001 10:34 AM
 To: [EMAIL PROTECTED]
 Subject: JPeg Image Encoder problem under Tomcat 3.2


 Hi

 I'm running Tomcat 3.2 as a standalone on a win2000 system.The servlet I
 have created draws data from an Access DB using the JDBC-ODBC bridge and
 then displays the data in a chart using the JPEG image encoder
 class.Everything works great, but every once and again Tomcat crashes with
 the error shown below.

 Can anybody point me in the right direction or tell me what I'm doing
wrong?

 Thanx
 LeRoux

 Exception in thread Thread-9 java.net.SocketException: Connection reset
by
 peer: socket write error

 at java.net.SocketOutputStream.socketWrite(Native Method)

 at java.net.SocketOutputStream.write(Unknown Source)

 at

org.apache.tomcat.service.http.HttpResponseAdapter.endHeaders(HttpResponseAd
 apter.java:124)

 at

org.apache.tomcat.core.BufferedServletOutputStream.sendHeaders(BufferedServl
 etOutputStream.java:126)

 at

org.apache.tomcat.core.BufferedServletOutputStream.reallyFlush(BufferedServl
 etOutputStream.java:236)

 at

org.apache.tomcat.core.BufferedServletOutputStream.write(BufferedServletOutp
 utStream.java:185)

 at sun.awt.image.codec.JPEGImageEncoderImpl.writeJPEGStream(Native Method)

 at sun.awt.image.codec.JPEGImageEncoderImpl.encode(Unknown Source)

 at sun.awt.image.codec.JPEGImageEncoderImpl.encode(Unknown Source)

 at FWD.doPost(FWD.java:1742)

 at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)

 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:81
 2)

 at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)

 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(Unknown Source)

 2001-10-19 10:33:05 - Ctx( ): IOException in: R( + /servlet/FWD + null)
 reading encoded JPEG Stream

 2001-10-19 10:33:05 - Ctx( ): IOException in: R( + /servlet/FWD + null)
 Connection reset by peer: socket write error







RE: BindException...

2001-09-21 Thread G.Nagarajan

Hi,
If you are running NT, check if IIS is running. If windows 95x is running,
check if Personal web server is running. Or change the http port to
something like  in server.xml and restart tomcat. If tomcat runs, then
it means that some other server is running.

Regards,
Nagarajan.

-Original Message-
From: Svante Berglund [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 21, 2001 10:13 AM
To: [EMAIL PROTECTED]
Subject: BindException...


Hi all.

I recive an error message at startup from tomcat 3.2.3(see below). After
that tomcat is only able to process .html-pages but fails to compile
.jsp-pages. Do you have any clues why? No other server is running on the
machine.

/cheers
Svante

FATAL:java.net.BindException: Address in use: JVM_Bind
java.net.BindException: Address in use: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:405)
at java.net.ServerSocket.init(ServerSocket.java:170)
at java.net.ServerSocket.init(ServerSocket.java:121)
at
org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(Default
ServerSocketFactory.java:97)
at
org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoi
nt.java:239)
at
org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnector.jav
a:188)
at
org.apache.tomcat.core.ContextManager.start(ContextManager.java:527)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
D:\tomcat\bin




RE: ServletException that I don't understand...

2001-09-18 Thread G.Nagarajan

Hi,
The error is in this line
 int lineNr = Integer.parseInt(nr);

It means that nr is not containing a valid integer.

to find out the value in nr, you can give something like

System.out.println(value of nr is : +nr);
 int lineNr = Integer.parseInt(nr);

likewise you can give System.out statements wherever necessary and
find out where the value is not getting assigned properly.

Regards,
Nagarajan.


-Original Message-
From: Jim Cheesman [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 27, 2001 5:32 PM
To: [EMAIL PROTECTED]
Subject: ServletException that I don't understand...


I'm getting the following exception when trying to load a jsp:

ServletException yadda yadda wrapping:

java.lang.NumberFormatException: E at
java.lang.Integer.parseInt(Integer.java:414) at
java.lang.Integer.parseInt(Integer.java:463) at
org.apache.jasper.compiler.Compiler.getJspLineErrors(Compiler.java:321) at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:280) at
org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:526) at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:175)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:187)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:379)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:456)


This seems to be an error in my jsp, and where the jasper Compiler is
parsing the line number from the javac output it's failing somehow...

code
   int beginColon = line.indexOf(':', 2);// Drive letter on Windows !!
   int endColon = line.indexOf(':', beginColon + 1);

   if (beginColon  0 || endColon  0) {
 errorMsg.append(line);
 errorMsg.append('\n');
 continue;
   }

   String nr = line.substring(beginColon + 1, endColon);
   int lineNr = Integer.parseInt(nr);
/code

I'm not sure that the indexOf, beginColon construction is the stablest I've
seen...


Has anyone else run up against this? Any solution?


Jim



--

   *   Jim Cheesman   *
 Trabajo:
[EMAIL PROTECTED] - (34)(91) 724 9200 x 2360
   The shortest distance between
two points is how far apart they are.




RE: Image file not found - why not ?

2001-09-07 Thread G.Nagarajan

hi,
try the following
- check the case of the file name, example myimage.jpg instead of
MyImage.jpg
- try giving /webapp/images/MyImage.jpg
- check if you can directly access the image by giving /webapp/images in the
browser and then see if the file is in the file list

Regards,
Nagarajan.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of James
Adams
Sent: Friday, September 07, 2001 12:49 AM
To: [EMAIL PROTECTED]
Subject: Image file not found - why not ?


I have a JSP which tries to load an image which is
referenced by a URI which is set in the request by a servlet.

img src=%= request.getAttribute(imageURL) %
 alt=IMAGE NOT FOUND

Unfortunately this has never worked because Tomcat can never
find the image.  Perhaps I am using a bad URI ?  I have the
image located under my application's base directory in a
subdirectory
named images.  The URIs I've tried are images/MyImage.jpg,
./images/MyImage.jpg and
/images/MyImage.jpg, all of which are not found when I
view the page.

Can anyone please tell me what I'm doing wrong ?  Thanks in
advance for all suggestions, and email of the responses would be
appreciated if possible ([EMAIL PROTECTED]).


-James




RE: [NEWBIE] Static html pages do not show image files

2001-07-11 Thread G.Nagarajan

Try,
http://127.0.0.1:8080/Request/

This will show the list of files in the directory, check if you can see
Tuev.gif.
Click on it, if the file is ok, it should be displayed

-Original Message-
From: Algarve, Leila [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 11, 2001 8:41 AM
To: '[EMAIL PROTECTED]'
Subject: AW: [NEWBIE] Static html pages do not show image files



This is the scr of the img tag:

td WIDTH=198img SRC=Tuev.gif BORDER=0 height=203 width=198/td

This url works:

http://127.0.0.1:8080/Request/index.htm

This url does not work (Error 404 - File not found):

http://127.0.0.1:8080/Request/Tuev.gif


Both files exists and they are in the same directory.

Leila




   What is the src of the img tag in your html file?  Some
 tools will
 put fully qualified file names in there instead of relative paths.

   Randy
 
  I am running Tomcat 4.0b5 standalone in Windows NT 4.0.
  I've created a new web-application in $tomcathome$\webapps
  without creating
  a war file (I am at the early stage of development), with one
  html static
  page and one servlet. I can access the html page and the
  servlet without
  problem but I cannot see any image (gif). The html and the
  images are in the
  same directory ($tomcathome$\webapps\MyWebApp), if I open the
  html file
  (without using Tomcat) the images just show fine.
 




RE: Antigen found =*.vbs file (off topic)

2001-05-10 Thread G.Nagarajan

maybe use xml messaging? looks like a great idea.

-Original Message-
From: Tim O'Neil [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 10, 2001 12:18 AM
To: [EMAIL PROTECTED]
Subject: Re: Antigen found =*.vbs file


At 05:07 PM 5/9/2001 -0500, you wrote:
With all these virus found messages, I wonder if the cure is worse
than the disease!

No kidding. All the email sentries are email each
other with attachment alerts. It would be cool if
they instead could talk to each other like I just
found a virus, did you find a virus? What's its file
name? and etc. Like a dns database, just update
each other on the status of this attachment.




RE: Poolman and Tomcat - where does the poolman.props file go

2001-03-02 Thread G.Nagarajan

Hi,
Try using Poolman from an application instead of a servlet. In that way you
will know whether
the classpath is ok.

Regards,
Nagarajan

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 01, 2001 8:47 PM
To: [EMAIL PROTECTED]
Subject: RE: Poolman and Tomcat - where does the poolman.props file go


Ariel,

Thanks for the reply, but I have already tried this with no success.  I sent
the classpath set by tomcat out to a file and the directory containing the
property file is in there, but I still get the error.  Any other ideas?

Regards,

Todd

-Original Message-
From: Ariel [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 01, 2001 11:56 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Poolman and Tomcat - where does the poolman.props file go



Add some directory (like c:\tomcat\lib) to your CLASSPATH and copy
poolman.props to this directory.

Ariel

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 01, 2001 6:08 PM
To: [EMAIL PROTECTED]
Subject: Poolman and Tomcat - where does the poolman.props file go


Hello all,

My configuration is as follows:

WIN2K
Apache 1.3.14
Tomcat 3.2.1
Poolman 1.4.1

I have include the poolman.jar file in my CLASSPATH as per the
documentation.  I have tested the connection with the PoolManSample.java
program provided and all works fine from outside of tomcat.  I have a
servlet which now attempts to connect to the database via PoolMan, but I
keep getting the following error:

 Could not find 'poolman.props' -- now attempting to read deprecated
file name 'pool.props'... failed.

I have tried placing the poolman.props file in my webapps directory,
TOMCAT_HOME\webapps\myapp and in the classes directory under myapp and in
about every other directory I can think of but to no avail.  Is there
something else I need to configure in the web.xml or in tomcat.conf to have
this work correctly?

Any help with this is appreciated.

Regards,

Todd G. Nist
Email:   [EMAIL PROTECTED]



The information in this electronic mail ("e-mail") message may
be confidential and for use of only the named recipient.  The
information may be protected by privilege, work product immunity
or other applicable law.  If you are not the intended recipient
the retention, dissemination, distribution or copying of this
e-mail message is strictly prohibited.  If you receive this e-mail
message in error please notify us immediately by telephone
at 770-723-1011 or [EMAIL PROTECTED]  Thank you.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


The information in this electronic mail ("e-mail") message may
be confidential and for use of only the named recipient.  The
information may be protected by privilege, work product immunity
or other applicable law.  If you are not the intended recipient
the retention, dissemination, distribution or copying of this
e-mail message is strictly prohibited.  If you receive this e-mail
message in error please notify us immediately by telephone
at 770-723-1011 or [EMAIL PROTECTED]  Thank you.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Tomcat trouble, can any good soul help ...

2001-01-18 Thread G.Nagarajan

it appears to be a problem with the path of the log files.
just check the paths to the log file, and whether the path is in
the same machine as tomcat and writeable.

I have attached a copy of my server.xml file


-Original Message-
From: Dejan Corovic [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 18, 2001 12:07 PM
To: [EMAIL PROTECTED]
Subject: Tomcat trouble, can any good soul help ...


 Hi,

 As I start Tomcat 3.x, I get repetitive exception, like this:

 JASPER_LOG Fri Jan 12 22:31:09 GMT+00:00 2001 IMPORTANT: Do not modify
the generated servlets/JASPER_LOG
 Context log path="" :default: init
 Context log: path="" File not found
 C:\Work\Temp\Software\Phonebid.net\Application\conf\tomcat-users.xml
 Starting endpoint port="8080"
 handler="org.apache.tomcat.service.http.HttpConnectionHandler"
 Starting endpoint port="8081"
 handler="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"
 Context log: path="" Socket Exception/
 Context log: path="" Socket Exception/
 Context log: path="" Socket Exception/
 Context log: path="" Socket Exception/
 Context log: path="" Socket Exception/
 Context log: path="" Socket Exception/
 Context log: path="" Socket Exception/
 Context log: path="" Socket Exception/
 

 ... and so till end of the world. Does anybody knows what is causing
Tomcat to endlessly print this Socket Exception?

 Regards,
 Dejan


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

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

Server
!-- Debug low-level events in XmlMapper startup --
xmlmapper:debug level="0" /

!-- 

Logging:

 Logging in Tomcat is quite flexible; we can either have a log
 file per module (example: ContextManager) or we can have one
 for Servlets and one for Jasper, or we can just have one
 tomcat.log for both Servlet and Jasper.  Right now there are
 three standard log streams, "tc_log", "servlet_log", and
 "JASPER_LOG".  

	 Path: 

	 The file to which to output this log, relative to
	 TOMCAT_HOME.  If you omit a "path" value, then stderr or
	 stdout will be used.

	 Verbosity: 

	 Threshold for which types of messages are displayed in the
	 log.  Levels are inclusive; that is, "WARNING" level displays
	 any log message marked as warning, error, or fatal.  Default
	 level is WARNING.

	 verbosityLevel values can be: 
	FATAL
	ERROR
	WARNING 
INFORMATION
DEBUG

	 Timestamps:

	 By default, logs print a timestamp in the form "-MM-dd
	 hh:mm:ss" in front of each message.  To disable timestamps
	 completely, set 'timestamp="no"'. To use the raw
	 msec-since-epoch, which is more efficient, set
	 'timestampFormat="msec"'.  If you want a custom format, you
	 can use 'timestampFormat="hh:mm:ss"' following the syntax of
	 java.text.SimpleDateFormat (see Javadoc API).  For a
	 production environment, we recommend turning timestamps off,
	 or setting the format to "msec".

	 Custom Output:

	 "Custom" means "normal looking".  "Non-custom" means
	 "surrounded with funny xml tags".  In preparation for
	 possibly disposing of "custom" altogether, now the default is
	 'custom="yes"' (i.e. no tags)

	 Per-component Debugging:

	 Some components accept a "debug" attribute.  This further
	 enhances log output.  If you set the "debug" level for a
	 component, it may output extra debugging information.
--

!-- if you don't want messages on screen, add the attribute
path="logs/tomcat.log" 
	 to the Logger element below
--
Logger name="tc_log" 
verbosityLevel = "INFORMATION" 
/

Logger name="servlet_log" 
path="logs/servlet.log"
/

Logger name="JASPER_LOG" 
	path="logs/jasper.log"
verbosityLevel = "INFORMATION" /

!-- You can add a "home" attribute to represent the "base" for 
 all relative paths. If none is set, the TOMCAT_HOME property
 will be used, and if not set "." will be used.
 webapps/, work/ and logs/ will be relative to this ( unless 
 set explicitely to absolute paths ).

 You can also specify a "randomClass" attribute, which determines 
 a subclass of java.util.Random will be used for generating session IDs.
 By default this is "java.security.SecureRandom". 
 Specifying "java.util.Random" will speed up Tomcat startup, 
 but it will cause sessions to be less secure.

 You can specify the "showDebugInfo" attribute to control whether
 debugging information is displayed in Tomcat's default responses.
 This debugging information includes:
 1. Stack traces for exceptions
 2. Request URI's that cause status codes = 400
 The default is "true", so you must specify "false" to prevent
 the debug information from appearing.  Since the debugging
 

RE: Question

2001-01-17 Thread G.Nagarajan

There are many free JDBC drivers. If you are looking for sql*server,
there is www.freetds.org. 

-Original Message-
From: Daniel Merchante [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 17, 2001 5:44 PM
To: '[EMAIL PROTECTED]'
Subject: Question


Hi there:

At this moment we are trying to implement the project in IIS 5, we use a
jakarta-tomcat container and we still try to use the jdbc-odbc
bridge(instead of spending money in a database driver). The jsp and
servlets are being executed, but after they have been accessed, if there
is a database connection inside them, Dr. Watson for windows NT appears
and displays this message:
'An application error has occurred and an application
error log is being  generated.
java.exe
Exception: access violation(0x005),
Address: 0x77f6ce4c

Do you know what could be wrong?, if not, do you know anyone I could
contact for suggestions,
I would really appreciate it. 

Thanks.
Dan.


The information contained in this email is confidential and is intended
for the recipient 
only. If you have received it in error, please notify us immediately by
reply email and 
then delete it from your system. Please do not copy it or use it for any
purposes, or 
disclose its contents to any other person or store or copy this
information in any medium.
The views contained in this email are those of the author and not
necessarily those of
Brite Software Ltd.






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Very Important and Urgent, please help

2001-01-16 Thread G.Nagarajan



try it 
with jdk1.3, tools.jar in the classpath. ensure that you have set the JAVA_HOME 
environment variable.

  -Original Message-From: Yogesh Bhandarkar 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, January 16, 2001 
  2:46 PMTo: [EMAIL PROTECTED]Subject: Very 
  Important and Urgent, please help
  Hello, All
  
  I'm Using tomcat 3.2.1 on Redhat Linux 6.2, with 
  apache 1.3.9. Problem here I'm facing is that, I'm not able to execute JSP 
  files, when I try execute any JSP, it returns following error. 
  
  
  Error: 500
  Location: /examples/jsp/include/include.jspInternal Servlet 
  Error:java.lang.NoSuchMethodError: javax.servlet.ServletException: method getRootCause()Ljava/lang/Throwable; not found
	at org.apache.tomcat.context.ExceptionHandler.doService(DefaultCMSetter.java, Compiled Code)
	at org.apache.tomcat.core.Handler.service(Handler.java, Compiled Code)
	at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java, Compiled Code)
	at org.apache.tomcat.core.ContextManager.handleError(ContextManager.java, Compiled Code)
	at org.apache.tomcat.core.Handler.service(Handler.java, Compiled Code)
	at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java, Compiled Code)
	at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java, Compiled Code)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java, Compiled Code)
	at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java, Compiled Code)
	at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java, Compiled Code)
	at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java, Compiled Code)
	at java.lang.Thread.run(Thread.java, Compiled Code)In any example it returns the same error. Please let me know the solution.RegardsYogesh Bhandarkar



RE: Tomcat Crashing

2001-01-15 Thread G.Nagarajan

Hi,
Change the following
 MS Access
Use another database like sql*server, oracle, hypersonic etc.
 JDBC-ODBC Bridge Driver
The JDBC-ODBC bridge has many bugs. It is good only for simple inserts,
updates and
selects. When you give joins, stored procedures etc, it throws many errors.
There are many
free pure java drivers like opensta etc or you can purchase one from the
vendors listed
in the sun java site.

regards,
Nagaraj
-Original Message-
From: Suleyman Serkan GURDAL [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 12, 2001 11:47 PM
To: [EMAIL PROTECTED]
Subject: Tomcat Crashing



 Hello;

 We are 4th year students who are studying at Middle East Technical
 University, in the department of Computer Engineering. We are
 developing a senior design project named web-based seat reservation
 system for large and distributed computer laboratory
 environments. We are using the following software;

 Java Servlets Technology
 Jdk 1.2.2
 JDBC Api
 Tomcat (as servlet engine)
 Apache (as web-server)

 We have a problem. When we run our servlets by using Tomcat.
 It crashes down after 4-5 process, like querying the database, updating
 some records or inserting some records, that is it crashes down after 2-3
 minutes.

 When we look at the log messages, because we have caught SQLExceptions
 we get "Function Sequence Error" or no error messages. We could not
 understand the problem source.

 We ask u for help. If you can help us or tell somethings what can be the
 problem about, we will be very grateful.

 Thanks in advance...

 S. Serkan GURDAL
 mail : [EMAIL PROTECTED]
 url  : www.ceng.metu.edu.tr/~e109746

 Department of Computer Enginnering
 Middle East Technical University
  Ankara/TURKEY







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Defining an init parameter for all servlets

2001-01-15 Thread G.Nagarajan

hi,

I had the same problem. I overcame it by giving something like

getServletContext("context_name").getInitParameter().Please check the exact
syntax from the servlet api

Now I am using a static class to hold all the initial values in a hashtable.
In the static initializer, I am populating
the hashtable with values from a database.

regards

-Original Message-
From: Ariel [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 15, 2001 8:10 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Defining an init parameter for all servlets



I tried to use the context-param tag in web.xml:

web-app
  context-param
param-namefoo/param-name
param-valuebar/param-value
  /context-param
web-app

getInitParameter("foo") returns null

Tomcat version: 3.2.1 for Win32

Ariel

-Original Message-
From: Kitching Simon [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 15, 2001 7:52 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Defining an init parameter for all servlets


 -Original Message-
 From: Ariel [SMTP:[EMAIL PROTECTED]]
 Sent: Monday, January 15, 2001 6:52 PM
 To:   '[EMAIL PROTECTED]'
 Subject:  Defining an init parameter for all servlets


 I would like to define some initialization parameters to be used by
 all servlets running on Tomcat.
 Is there a way to define this in web.xml, besides copying the init-param
 section of the global parameter to every servlet's section in web.xml?
[Kitching Simon]  Yep!

To set a parameter accessable by all servlets
*in a web application*, see "context-param" tag
(or is it config-param?) in the sun servlet specification...


 Ariel

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Tomcat Performance Questions how was it tested?

2001-01-15 Thread G.Nagarajan

Hi,
can you tell how you tested the performance. I would like to apply the
benchmark for my machine.

Thanks
Nagaraj.

-Original Message-
From: Stefan Langer [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 15, 2001 7:54 PM
To: [EMAIL PROTECTED]
Subject: RE: Tomcat Performance Questions


One thing the documentation states is that you should use the AJP13 Protocol
which is suppose to be faster. That connector is not configured in the
default server.xml file. They use AJP12
I have not tested this but you might want to give it a try.

Stefan


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Pre-compiling JSPs

2001-01-11 Thread G.Nagarajan

There is an utility called jspc. To use the generated servlets, the web.xml
file has to be modified to specify the servlet mapping for the jsp file. If
this is not done, tomcat will ignore the class and create the temporary
servlet in the work directory.

Resin has an option for pre-compiling jsps. I don't know about JRun.

And has anyone noticed that in Tomcat 3.2.1, it takes a very long time to
compile a jsp file. It seems to be slower that the earlier version. Is there
any solution for it?

Thanks
Nagaraj


-Original Message-
From: carnell [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 11, 2001 4:10 PM
To: Tomcat-user
Subject: Pre-compiling JSPs


There does not seem to be much documentation on precompiling JSPs. How would
I precompile a bunch of JSPs (used in the ROOT webapp on a remote linux
machine), for instance index.jsp(or all files in the directory).

Is build.sh appropiate? I do not need to deploy, I simply upload my changed
JSP to the webserver
-- or jspc?

Thanks,

Craig.
[EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Pre-compiling JSPs

2001-01-11 Thread G.Nagarajan

yes, the files have to be compiled and the class files have to be
put in the classpath.

-Original Message-
From: carnell [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 11, 2001 4:59 PM
To: [EMAIL PROTECTED]
Subject: Re: Pre-compiling JSPs


Thanks, I got jspc.sh working.. forgot about the JAVA_HOME, TOMCAT_HOME etc.

/opt/tomcat/jakarta-tomcat/bin  ./jspc.sh -webapp
/opt/tomcat/jakarta-tomcat/webapps/ROOT

It just seems to produce a whole lot of files with the Java extension rather
than a class?
Do I need to further compile them?

Craig
[EMAIL PROTECTED]


---
Craig Carnell, Praktikant
WA46 Operationelle  Analysen  Luftwaffe
IABG MbH   Einsteinstr. 20  85521 Ottobrunn
Phone : 0049-89-6088-2556Fax : 0049-89-6088-3608
Mobile: 0049-179-3143062
Email : [EMAIL PROTECTED]WWW site : www.iabg.de

- Original Message -
From: "G.Nagarajan" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; "C S Carnell" [EMAIL PROTECTED]
Sent: Thursday, January 11, 2001 4:40 PM
Subject: RE: Pre-compiling JSPs


 There is an utility called jspc. To use the generated servlets, the
web.xml
 file has to be modified to specify the servlet mapping for the jsp file.
If
 this is not done, tomcat will ignore the class and create the temporary
 servlet in the work directory.

 Resin has an option for pre-compiling jsps. I don't know about JRun.

 And has anyone noticed that in Tomcat 3.2.1, it takes a very long time to
 compile a jsp file. It seems to be slower that the earlier version. Is
there
 any solution for it?

 Thanks
 Nagaraj


 -Original Message-
 From: carnell [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 11, 2001 4:10 PM
 To: Tomcat-user
 Subject: Pre-compiling JSPs


 There does not seem to be much documentation on precompiling JSPs. How
would
 I precompile a bunch of JSPs (used in the ROOT webapp on a remote linux
 machine), for instance index.jsp(or all files in the directory).

 Is build.sh appropiate? I do not need to deploy, I simply upload my
changed
 JSP to the webserver
 -- or jspc?

 Thanks,

 Craig.
 [EMAIL PROTECTED]



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Tomcat 3.2.1 Connection aborted by peer: socket write error

2001-01-11 Thread G.Nagarajan
Title: RE:



Hi everybody,

I get thiserror often thought the 
imagesaredisplayed properly.

"2001-01-11 08:31:17 - Ctx( /ib ): 
IOException in: R( /ib + /images/ib_frame.gif + null) Connection aborted by peer: 
socket write error"

any idea, what is the reason? I am using tomcat 3.2.1, 
jdk 1.3 onNt 4.0

Thanks,
Nagaraj


ISAPI.DLL source code

2001-01-09 Thread G.Nagarajan

Hi,

Does anyone know the URL for the ISAPI_Redirect.dll file. I could get only
the
binary version.

Thanks,
Nagarajan.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Configuring tomcat and IIS - Nagarajan

2001-01-09 Thread G.Nagarajan

Hi Nitin,
I wanted the source code for the DLL, not the dll itself.
So that I could trace what was going on. 

Thanks
Nagarajan.

-Original Message-
From: nitin dubey [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 09, 2001 12:12 PM
To: [EMAIL PROTECTED]
Subject: RE: Configuring tomcat and IIS - Nagarajan


Hi,

I am using Win 2000, IIS 5.0 and Tomcat 3.2.1.  I m
attaching the .properties file and isapi_redirect.dll
that I downloaded from jakarta site(I saw your mail
asking for url for isapi_redirect.dll file).

check attachments

nitin


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Configuring tomcat and IIS - Nagarajan

2001-01-09 Thread G.Nagarajan

Hi Nitin,

The uriworkermap.properties file is slightly different from mine.

In the last line you have typed 

/context/*=worker_name

Just try commenting it or deleting it.

and check if you can open the examples context
by http://localhost/examples

Nagaraj.

-Original Message-
From: G.Nagarajan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 09, 2001 12:27 PM
To: [EMAIL PROTECTED]
Subject: RE: Configuring tomcat and IIS - Nagarajan


Hi Nitin,
I wanted the source code for the DLL, not the dll itself.
So that I could trace what was going on. 

Thanks
Nagarajan.

-Original Message-
From: nitin dubey [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 09, 2001 12:12 PM
To: [EMAIL PROTECTED]
Subject: RE: Configuring tomcat and IIS - Nagarajan


Hi,

I am using Win 2000, IIS 5.0 and Tomcat 3.2.1.  I m
attaching the .properties file and isapi_redirect.dll
that I downloaded from jakarta site(I saw your mail
asking for url for isapi_redirect.dll file).

check attachments

nitin


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Configuring tomcat and IIS

2001-01-08 Thread G.Nagarajan

Hi,
are you getting the green up arrow in the ISAPI window?

-Original Message-
From: nitin dubey [mailto:[EMAIL PROTECTED]]
Sent: Saturday, January 06, 2001 12:50 PM
To: [EMAIL PROTECTED]
Subject: Configuring tomcat and iis


Hi guys,

I have read the document by apache for configuring
tomcat with IIS.  Everything as mentioned in document
is working.  I have no problem there.  I have also
downloaded the isapi_redirect.dll from apache site.

I have also tested tomcat3.2.1 and IIS 5.0
individually.  Both r working and the necessary
environment has been set.

Now the problem is, what url should I give to activate
my servlet thru IIS.  I have tried with lots of
combinations in one of them I got an error(null
parameter) at tomcat side.  In IIS log file error code
is 200 which means OK.

I don't know where I have gone wrong.  Please let me
know at the earliest.

I m using tomcat 3.2.1 with IIS 5.0 and Win 2000
Professional as OS.

nitin

__
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Configuring tomcat and IIS

2001-01-08 Thread G.Nagarajan

Hi,
This means that the filter is working fine.

just try 
http://localhost/examples/

This should take you to the examples context.

Just check if your uriworkermap.properties contains the following

# Mount the servlet context to the ajp12 worker
/servlet/*=ajp12

# Mount the examples context to the ajp12 worker
/examples/*=ajp12

and the workers.properties file contains

#
# Simple worker configuration file
#

worker.list=ajp12

worker.ajp12.port=8007
worker.ajp12.host=localhost

Regards,
Nagaraj.

-Original Message-
From: nitin dubey [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 08, 2001 11:11 AM
To: [EMAIL PROTECTED]
Subject: RE: Configuring tomcat and IIS


Hi Nagarajan,

Yes I am getting green up arrow.

nitin
--- "G.Nagarajan" [EMAIL PROTECTED] wrote:
 Hi,
 are you getting the green up arrow in the ISAPI
 window?
 
 -Original Message-
 From: nitin dubey [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, January 06, 2001 12:50 PM
 To: [EMAIL PROTECTED]
 Subject: Configuring tomcat and iis
 
 
 Hi guys,
 
 I have read the document by apache for configuring
 tomcat with IIS.  Everything as mentioned in
 document
 is working.  I have no problem there.  I have also
 downloaded the isapi_redirect.dll from apache site.
 
 I have also tested tomcat3.2.1 and IIS 5.0
 individually.  Both r working and the necessary
 environment has been set.
 
 Now the problem is, what url should I give to
 activate
 my servlet thru IIS.  I have tried with lots of
 combinations in one of them I got an error(null
 parameter) at tomcat side.  In IIS log file error
 code
 is 200 which means OK.
 
 I don't know where I have gone wrong.  Please let me
 know at the earliest.
 
 I m using tomcat 3.2.1 with IIS 5.0 and Win 2000
 Professional as OS.
 
 nitin
 
 __
 Do You Yahoo!?
 Yahoo! Photos - Share your holiday photos online!
 http://photos.yahoo.com/
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, email:
 [EMAIL PROTECTED]
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, email:
 [EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: IIS5 / win2000

2001-01-08 Thread G.Nagarajan



Scan 
each registry entry carefully. Check the upper case, lower case, slashes etc. If 
the green arrow does not come, it
means 
something is wrong in the registry entries.


  -Original Message-From: Edmund Davis 
  [mailto:[EMAIL PROTECTED]]Sent: Monday, January 08, 2001 5:50 
  PMTo: [EMAIL PROTECTED]Subject: IIS5 / 
  win2000
  I've just downloaded Tomcat 3.2.1 to run under 
  IIS5 and Win2000. The user perms are ok, the configuration seems ok and 
  I've been through the troubleshooting steps but the ISAPI_Redirector still 
  doesn't load with a green arrow in IIS config. Are there any known 
  issues with Win2000? Or solutions or ideas as to what I should 
  try. The log file isn't even created but the registry settings are fine 
  I think and the directories are in the correct places.
  
  Regards and thanks in 
  advance,Edmund


RE: a simple test to charset

2001-01-05 Thread G.Nagarajan

Hi,

if you create a html file and submit the form to the servlet, the char will
be displayed

like

form action="servlet/HelloWorld" method="get"
input type="text" name="name"/
br
input type="submit" value="ok"/
/form

or you have to encode the special character.

I tried it in IE + tomcat 3.2 + jdk 1.3 on nt.

Regards,
Nagaraj

-Original Message-
From: André Alves [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 04, 2001 9:06 PM
To: [EMAIL PROTECTED]
Subject: a simple test to charset


I, made the following test:
import java.io.*;
import java.text.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;

public class HelloWorldExample extends HttpServlet
{
  public void doGet(HttpServletRequest request, HttpServletResponse
response) throws IOException, ServletException
  {
String strName = request.getParameter("name");
response.setContentType("text/html");
PrintWriter out = response.getWriter();

out.println("html");
out.println("head");
out.println("/head");
out.println("body bgcolor=\"white\"");
out.println("body");
out.println("start");
out.println("br");
out.println("Name = "+strName);
out.println("br");
out.println("end");
out.println("/body");
out.println("/html");
  }
}

And I invoke this servlet with the url:
http://my_ip/servlet/HelloWorldExample?name=André

The html responde is:

start
Name: Andr
end

Tomcat did not catch special caracter "é".

__
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Can't find bundle - Tomcat does not start

2001-01-04 Thread G.Nagarajan

I tried this for setting the locale to de_DE in tomcat 3.2/JDK 1.3 with NT
4.0.
It works fine. Try including the jars in jdk/lib. I have included tools.jar.

-Original Message-
From: Jaap van der Molen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 03, 2001 9:38 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Cc: Delpino Federico
Subject: "Can't find bundle" - Tomcat does not start


I've had the exact same problem with the en_US locale, but no reply from
anybody. This seems to be
a rare but unfortunately quite persistent problem. I have only had it with
Tomcat 3.2 
3.2.1 on a win2000/win98 box. Surprisingly, Tomcat 3.1 and 4.0 work fine.

Please, does anyone have a clue?

re Jaap

- Original Message -
From: "Federico Delpino" [EMAIL PROTECTED]


 Hi people,
 I face with the following error when I try to start Tomcat
 with the line command

 tomcat run


 Exception in thread "main"
 java.lang.ExceptionInInitializerError: java.util.Miss
 ingResourceException: Can't find bundle for base name
 org.apache.tomcat.resource
 s.LocalStrings, locale it_IT
 at
 java.util.ResourceBundle.throwMissingResourceException(Resou
 rceBundle.java:707)
 at
 java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:6
 79)
 at
 java.util.ResourceBundle.getBundle(ResourceBundle.java:546)
 at
 org.apache.tomcat.util.StringManager.init(StringManager.ja
 va:115)
 at
 org.apache.tomcat.util.StringManager.getManager(StringManage
 r.java:260)
 at
 org.apache.tomcat.startup.Tomcat.clinit(Tomcat.java:24)

 I have followed the installation instructions
 My system runs win 2000 pro
 JDK 1.3
 and, as required, I have set
 JAVA_HOME=d:\Programmi\jdk1.3
 TOMCAT_HOME=d:\Programmi\tomcat-3.2.1

 Where I am wrong or what did I miss?
 Thanks in advance
 Federico

 
 --
 Federico Delpino   Tel. 39-51-20-95722
 Osservatorio Astronomico di BolognaFax. 39-51-20-95700
 via Ranzani,1 - 40126 Bologna, Italy   e-mail:
 [EMAIL PROTECTED]



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: please help me

2001-01-04 Thread G.Nagarajan

come on, almost all java programs use databases! Unless
you give more information, the chances of someone helping
you are very less.

if the program/data is sensitive, you can post a modified
version.

java.lang.NoClassDefFoundError: ap/servlets/html
  at qry_training.doGet(qry_training.java:106)


-Original Message-
From: yaya [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 04, 2001 12:05 PM
To: [EMAIL PROTECTED]
Subject: Re: please help me


i want to get information from database



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Thanks

2001-01-04 Thread G.Nagarajan


you have type "example" instead of "examples" in the first URL 

http://localhost/example/servlet/HelloWorldExample returned 'page not
found'
while using virtual directory /examples and URL
http://localhost/examples/servlet/HelloWorldExample worked.  Do you
think I did something wrong?  Is the latter URL using the IIS virtual
directory?



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: why must I add the port number

2001-01-04 Thread G.Nagarajan

The port number can be changed in the tomcat_home/conf/server.xml file.
The element to be modified is
Connector className="org.apache.tomcat.service.PoolTcpConnector"

This could be because if tomcat is used as a container for servlets with
another
web server like apache or IIS, there would a contention for the  80 port
number.

Regards,
Nagaraj.


-Original Message-
From: Birte Glimm [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 04, 2001 3:49 PM
To: [EMAIL PROTECTED]
Subject: why must I add the port number


Hi, I have installed tomcat as a standalone webserver on Win 2000.
To get a page or a servlet I have to type e.g.
http://localhost:8080/examples/servlet/helloWorldExample
but why must I include the port? Isn`t it the standard http port as in all
other webservers? If the port number is missing I get "Cannot find server"
and "The page cannot be displayed"

Thanks

Birte Glimm


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: charset problem

2001-01-04 Thread G.Nagarajan

Hi,
Just check if the following solve your problem
http://archives.java.sun.com/cgi-bin/wa?A2=ind0012L=servlet-interestP=R333
99

http://archives.java.sun.com/cgi-bin/wa?A2=ind0012L=servlet-interestP=R336
95

Regards,
Nagaraj



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Problem with Tomcat as NT service

2001-01-03 Thread G.Nagarajan



Hi,
Just 
try this.

The 
message is because of the classpath. In windows NT, the environment variables 
are set separately for each user. 
Just go to control-panel, system and 
environment. There are two lists, just add the classpath to the top 
one.

I had 
a big problem with this and discovered it by chance!

regards
Nagaraj.

  -Original Message-From: Vinod 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, January 03, 2001 12:54 
  PMTo: '[EMAIL PROTECTED]'Subject: Problem 
  with Tomcat as NT service
  
  Hi,
   I have jakarta-tomcat-3.2 running on Win NT4 and IIS. I 
  have used jk_nt_service.exe to make tomcat as NT service and followed the 
  steps as it is in the documentation. After that I have started the service, 
  when I run a small jdbc example I got the sql exception 'No suitable jdbc driver found'. The same program runs fine when I start tomcat 
  manually. Please provide solution.
  
  Thanx n Regards,
  Vinod


RE: How to enable ISAPI filters in IIS management console

2001-01-02 Thread G.Nagarajan

The problems are not with tomcat. If the problems are isolated and
understood,
will they be problems any more? Netscape 4 shows a 404 error at odd times,
IE times out,
some error messages in isapi.log, the pages are very slow...

able to document them, if not provide work arounds.

The work around I used was (it works for the time being).
1. Increase the RAM, CPU.. all h/w
2. Stop unnecessary processes like ftp service, SMTP service, messenger etc.
In other
words run only IIS and tomcat in the machine.
3. Disable last-accessed-time recording in NTFS.

regards,
Nagaraj.
-Original Message-
From: Marc Saegesser [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 02, 2001 4:29 AM
To: [EMAIL PROTECTED]
Subject: RE: How to enable ISAPI filters in IIS management console


Nagaraj,

Could you elaborate on the tomcat+IIS issues?  If there are Tomcat problems,
then lets fix them.  If the problems are with IIS then we should at least be
able to document them, if not provide work arounds.


-Original Message-
From: G.Nagarajan [mailto:[EMAIL PROTECTED]]
Sent: Saturday, December 30, 2000 7:24 AM
To: [EMAIL PROTECTED]
Subject: RE: How to enable ISAPI filters in IIS management console


The green arrow appears only when all the entries are correct. you don't
have to do anything to enable it.

The mistake could be anywhere, for example

1. Wrong directory specified in the registry entries
2. Some typos in the registry entries
..

In my case, I had mistyped the directory name for the logs.

The best thing is to go through each step carefully.


p.s. tomcat+IIS is not quite ok. It throws new issues every day.
better go in for Linux or sun-Solaris. Open-source s/w are allergic to
windows!
Regards
Nagaraj.

-Original Message-
From: Hawkins, Keith (Keith) [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 29, 2000 9:41 PM
To: [EMAIL PROTECTED]
Subject: How to enable ISAPI filters in IIS management console



I have installed the isapi_redirect.dll and have added the filter to the
ISAPI filters tab
of the Default Web Site properties page.  The filter status has a red down
arrow
and the enable button is always greyed out.  I tried restarting IIS, but the
filter
status never changed to active (Green up arrow.)

What steps do I need to take to get IIS to activate this filter?

This is pretty basic stuff I am asking.  I hope someone can point me in the
right direction.

Thanks,
Keith


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Generated JSP classnames are too long

2001-01-02 Thread G.Nagarajan

If the number of JSPs is little, probably jspc can be used to precompile the
pages.
And then the web.xml file has to modified to put servlet-mappings for the
pages.


-Original Message-
From: Thomas Buckel [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 02, 2001 3:38 PM
To: [EMAIL PROTECTED]
Subject: Generated JSP classnames are too long


Hi,
I'm trying to use JSPs in a directory structure like
..\01_abcdef\0101_abcdefswf\010101_sample.jsp, but Tomcat generates a
package/classname in the work directory that's about 275 characters
long. And that won't work with NT...
Does anybody know how I can fix (shorten) the generated classname ?

Thanks in forward,
Thomas
[EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: How to enable ISAPI filters in IIS management console

2000-12-30 Thread G.Nagarajan

The green arrow appears only when all the entries are correct. you don't
have to do anything to enable it.

The mistake could be anywhere, for example

1. Wrong directory specified in the registry entries
2. Some typos in the registry entries
..

In my case, I had mistyped the directory name for the logs.

The best thing is to go through each step carefully.


p.s. tomcat+IIS is not quite ok. It throws new issues every day.
better go in for Linux or sun-Solaris. Open-source s/w are allergic to
windows!
Regards
Nagaraj.

-Original Message-
From: Hawkins, Keith (Keith) [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 29, 2000 9:41 PM
To: [EMAIL PROTECTED]
Subject: How to enable ISAPI filters in IIS management console



I have installed the isapi_redirect.dll and have added the filter to the
ISAPI filters tab
of the Default Web Site properties page.  The filter status has a red down
arrow
and the enable button is always greyed out.  I tried restarting IIS, but the
filter
status never changed to active (Green up arrow.)

What steps do I need to take to get IIS to activate this filter?

This is pretty basic stuff I am asking.  I hope someone can point me in the
right direction.

Thanks,
Keith


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Windows Tomcat DOS Console Error View

2000-12-20 Thread G.Nagarajan

hi,
If you are using windows nt, there is no problem.
create a shortcut to startserver.bat in your desktop.

For example I have a shortcut with the following properties
Target: C:\tomcat\bin\tomcat.bat run
Start in c:\tomcat\bin
Shortcut key: ctrl+alt+B (to start it from anywhere)

Remove the "start" commands in the tomcat.bat file. This is to avoid opening
a new window.

double click and open the shortcut.It opens a dos window and you should get
the
startup messages from tomcat.

Next click on the MS-DOS icon in the top left corner of the window and
select
"properties..." from the menu. Select Layout and set the following
properties

1. Screen Buffer size
Width: 111
Height:  ..could not type more that this :-)

2. Window Size
Width: 111
Height: 50
that's it. you can experiment with the font and colors option to find
the best combination.

If you are using windows 95, then you have to call the batch file from some
editor. I
use Textpad(Tools-Run-Startserver, doscommand , capture output)

Hope this helps,
Regards,
Nagaraj.

-Original Message-
From: z z [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 20, 2000 6:20 PM
To: [EMAIL PROTECTED]
Subject: Windows Tomcat DOS Console Error View


I get errors and messages on TOMCAT DOS CONSOLE.
It's only 25 line max console and can't scroll up.
I know I can extend to 50 lines in property but it doesn't work on spot.
How can I extend it to 50 lines? Or is there anyway better to see entire
scrolled up lines? Please include this email [EMAIL PROTECTED] in Cc: or Bcc:
in your reply. Thanks in advance.
_
Get your FREE download of MSN Explorer at http://explorer.msn.com




RE: Tomcat Configuration

2000-12-20 Thread G.Nagarajan

It means that tomcat has started :-).

Just type http://localhost:8080/ and you should see the tomcat page.

Could you tell me what's going on? where should I change to make it startup
successful?

Maybe a message can be added like
"Tomcat web server started successfully.."

regards
Nagaraj.

-Original Message-
From: Hong Tian [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 20, 2000 4:27 AM
To: [EMAIL PROTECTED]
Subject: Tomcat Configuration


Hi, Everyone,

I'm new for Tomcat, I'm having problem startup Tomcat 3.2 on Windows 98. The
problem is: after I types "startup" under the Tomcat home directory in
MS-DOS, it
start tomcat in a new window, but idle there, not going forword, only some
prompt
says:
"2000-12-19   pooltcpConnector- starting httpConnectionHandler on port 8080,
2000-12-19 PoolTcpConnector: Starting Ajp12ConnectionHandler on port 8007"

Could you tell me what's going on? where should I change to make it startup
successful?

Thanks
hong
[EMAIL PROTECTED]



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




RE: precompile jsp

2000-12-14 Thread G.Nagarajan

Hi Joan,
From what I experimented with jspc I found the following..

you can put the generated class files any where in tomcat's classpath. I put
them
in webapp\web-inf\classes. The web.xml file of the web app has to be changed
to
add the servlet and servlet-mapping tags. The server uses these to find
the servlet for the .jsp file. If the mapping is wrong or missing, it
generates the
.java file in the work directory. The web.xml file can be created using
the -webxml option.

 One problem which I had was that the generated web.xml had the wrong
slashes, I found
that out by comparing the generated xml file with the web.xml in the
examples context.
when I edited it manually, tomcat did not create the .java files but used
the pre-compiled
classes.

I feel that jspc should do exactly what the server does at run time, i.e.,
generate the java
classes in the same way.

Regards,
Nagaraj.


-Original Message-
From: Joan Xiao [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 14, 2000 1:57 AM
To: [EMAIL PROTECTED]
Subject: precompile jsp


Hi all,

I've been trying to use jspc to precompile the jsp pages into java classes.
Below is the steps
I've taken:

1. run jspc and generate the java code and web.xml
2. insert the web.xml generated in step1 into my web.xml.
3. compile the java files into class files.
   Now I have problem with where to put the class files. Should they be
under the web-inf\classes
   or the work\ directory? I put them under web-inf\classes. And I have the
classes preserve
   the package/directory structure.
4. restart Tomcat.

Result: the jsp pages under the first level directory are not re-compiled by
Tomcat, but those
under the 2nd level directory are re-compiled. For example, suppose I have
the following directory structure:
webapps
+ registration
+ enroll
+ web-inf
+ classes

The jsps under registration/ are not recompiled, but those under
registration/enroll are re-compiled by Tomcat, as I can see the java/class
files in the work/ directory.

How can I make it work? Do I have to put the classes files under work/ and
name them the same
way Tomcat names them?

Thanks for any help.

Joan




RE: localhost problem

2000-12-14 Thread G.Nagarajan

hello,
Just check if the tomcat window shows this message

2000-12-14 01:01:00 - PoolTcpConnector: Starting HttpConnectionHandler on 80
2000-12-14 01:01:00 - PoolTcpConnector: Starting Ajp12ConnectionHandler on
8007

Regards,
Nagaraj.

-Original Message-
From: Web Master [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 14, 2000 12:30 PM
To: [EMAIL PROTECTED]
Subject: localhost problem


Hello,

I am very new to tomcat. I downloaded tomcat3.2 yesterday and I installed it
successfully. When I tried with
http://localhost:8080/ccs (where ccs is my project. Yes I added the
information in the server.xml) it worked perfectly fine.
I did ipconfig and found my ip address and when I tried
http://xx.xx.xx.xx/ccs
it failed.
Can any one tell me what I might be doing wrong?
I did ping to my ip from different machine and it did work.
Any help would be really appreciated.
Thanks in advance.




RE: context-param: illegal char

2000-12-11 Thread G.Nagarajan



 
param-valuejdbc:mysql://localhost/test?user=testpassword=test/param-value
I 
think the  character is causing the problem, try replacing 
it
with 
amp;

Regards
Nagaraj.

  -Original Message-From: Sam Terburg 
  [mailto:[EMAIL PROTECTED]]Sent: Monday, December 11, 2000 
  11:50 AMTo: [EMAIL PROTECTED]Subject: 
  context-param: illegal char
  with this code in 
  web.xml:
  
   
  context-param 
  param-namedatabase_dsn/param-name 
  param-valuejdbc:mysql://localhost/test?user=testpassword=test/param-value 
  /context-param
  
  
  i get this error:
  
  Starting tomcat. Check logs/tomcat.log for error 
  messages ERROR reading /home/jsp/forum/WEB-INF/web.xmlAt Next 
  character must be ";" terminating reference to entity "password".
  
  ERROR reading 
  /home/jsp/forum/WEB-INF/web.xmljava.lang.NullPointerException 
  at org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java, Compiled 
  Code) at 
  org.apache.tomcat.context.WebXmlReader.processFile(WebXmlReader.java, Compiled 
  Code) at 
  org.apache.tomcat.context.WebXmlReader.contextInit(WebXmlReader.java, Compiled 
  Code) at 
  org.apache.tomcat.core.ContextManager.initContext(ContextManager.java, 
  Compiled Code) at 
  org.apache.tomcat.core.ContextManager.init(ContextManager.java:201) 
  at 
  org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:156) 
  at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163)
  
  and
  
  ERROR reading /home/jsp/forum/WEB-INF/web.xmlAt Illegal character or 
  entity reference syntax.
  
  and
  
  bash: syntax error near unexpected token 
  `password=test/param-value'
  
  
  
  apparently  is an illegal character.
  but how do i solve this problem?
  i've thought of url_encoding this, but that's an ugly sollution.
  anybody got a better idea?
  
  Greets,
  
  Sam.
  
  


RE: Ant compile error

2000-12-09 Thread G.Nagarajan



hi,

you 
have to download the ant and xerces packages and put them in the classpath. 
Using the approach mentioned in the
doc is 
good if you have to manage a project. If just want to try out some examples, you 
can ignore it.

Regards,
Nagaraj.

  -Original Message-From: Matt Becker 
  [mailto:[EMAIL PROTECTED]]Sent: Friday, December 08, 2000 10:58 
  PMTo: [EMAIL PROTECTED]Subject: Ant comile 
  error
  Hi. I was trying to set up a simple web 
  application and copied the sample application for a starting point. The Tomcat 
  doc on web applications said to set everything up like so and run a build 
  script which runs ant. I get this error:
  
  Exception Thread: java.lang.NoClassDefFoundError: 
  org/apache/tools/ant/main
  
  I checked it out in tomcat and it doesn't have a 
  tools/ant/main in it's org/apache directory.
  
  Anyone know what gives? And...to start out doing 
  jsp web applications on Tom Cat...is this ant stuff necessary?
  
  
  Thanks
  
  
  Matt


RE: $20 bucks to the 1st person who actually solves my problem!!! - WE HAVE A WINNER!!!

2000-12-08 Thread G.Nagarajan

This is off topic but this reminds me that most of the time we
try to solve problems thinking that we have understood the problem
completely and have
an intuition where the solution is.
And we spend lots of effort and time trying to fix the imaginary problem.
Like in
this case, we thought it was due to caching and tried to fix it and it has
turned
out to be with the database part !

I wonder what Adress would have done without this mailing list!

-Original Message-
From: Adress, David S. [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 5:16 PM
To: '[EMAIL PROTECTED]'
Subject: RE: $20 bucks to the 1st person who actually solves my
problem!!! - WE HAVE A WINNER!!!


I guess it appeared to be caching





valueUnbound() event in HttpSessionBindingListener

2000-12-08 Thread G.Nagarajan

Hi everyone,

This is regarding tracking of login and logout actions of users.

I am recording the session creation time and end time using the
HttpSessionBindingListener class. The two methods valueBound() and
valueUnbound() are
invoked. But the getAtrribute() method in the session object returned by
event.getSession()
always give null.

I am storing the userid and a string in the session to indicate if the user
has logged out.
By checking this string's value I can find out if the user has logged out or
the session has timed out.

What I did to solve this problem was to store the sessionid and the userid
in
an external database. When the user logs out, before invalidating the
session, I
put "LoggedOut" in the loginStatus column. In the valueUnbound() event, I
check
the value of the loginStatus column to check if the event has been called
because
of the user logging out or if the session has timed out.

How is it actually done internally? i.e., is there a thread similar to the
garbage
collector which checks the current sessions or is the session invalidated
only
when a request comes from the client. The second option will mean that the
objects
in the session will be occupying memory till the server is shutdown.

Has anyone implemented anything similar to this.

Thanks,
Nagaraj.




RE: Unable to run JSP on Windows 98 using Tomcat

2000-12-06 Thread G.Nagarajan

try including tools.jar to the classpath. Check which java interpreter is
called.
You can adjust the Path env.

Regards,
Nagaraj.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 05, 2000 11:48 PM
To: [EMAIL PROTECTED]
Subject: Unable to run JSPs on Windows 98 using Tomcat


Hi,

  I have installed Tomcat 3.1 on my Windows 98 machine. My servlets are
running fine but I am unable to run JSPs. It is giving me the following
error:

java.lang.NoClassDefFoundError: sun/tools/javac/Main
at
org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.ja
va:128)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java,
Compiled C
ode)
at org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:413)
at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessar
y(JspServlet.java:149)
at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspSer
vlet.java:161)
at
org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:2
61)
at org.apache.jasper.runtime.JspServlet.service(JspServlet.java,
Compile
d Code)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.ja
va, Compiled Code)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:559
)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnectio
n(HttpConnectionHandler.java:160)
at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.j
ava:338)
at java.lang.Thread.run(Thread.java:479)

Could someone suggest me a solution to this?
Thanks




RE: tools for Stress Testing

2000-12-05 Thread G.Nagarajan
Title: tools for Stress Testing



Hi,
Try 
OpenSta.org, MS web stress tool, www.rswsoftware.com.

These 
should help. I am using OpenSta for testing my jsps and servlets and it takes 
care of handling
cookies.

Cheers,
Nagaraj.

  -Original Message-From: Chris Chen 
  [mailto:[EMAIL PROTECTED]]Sent: Monday, December 04, 2000 9:06 
  PMTo: '[EMAIL PROTECTED]'Subject: tools for 
  Stress Testing
  Hi all, 
  I am just wondering if there is a way to do a stress 
  testing on my jsp/servlet pages even I am using the 
  session tracking in my application. 
  for example, I have: 1.jsp for user 
  logon checking 2.jsp for loading data from 
  database 3.jsp for business data calculation 
  4.jsp for modifying data to database 
  The application works like: when 
  user passed 1.jsp, there will be a set of data in their session, hold 
  by Java data Beans, from database. Base on those data, 
  3.jsp will performance a certain business logic, then 
  4.jsp will write data to database. 
  I want to build a set of benchmark/stress testing for 
  all those *.jsp pages. How long it will take? How's 
  the response performance? ... 
  How could I do this? Is there any this kind of tools? 
  By using Tomcat, how can I let tomcat know that I am in the 
  session, and performance certain data set for me? 
  Regards, Chris 



RE: IE Netscape

2000-12-05 Thread G.Nagarajan

Hi,
Try setting the content type to "text/html". 

Regards
Nagaraj.
-Original Message-
From: Adress, David S. [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 05, 2000 4:59 PM
To: [EMAIL PROTECTED]
Subject: IE  Netscape


I have tomcat running and I have a jsp page. The page works fine in IE but
in Netscape I see the actual html code ex: htmltitle etc...

Any ideas ?



Class Not Found in Init exception

2000-12-04 Thread G.Nagarajan

Hi,
Can anyone tell me why I get this error message. I am running tomcat with
IIS.

Thanks,
Nagaraj.

Context log: path="/test" Class Not Found in init
 java.lang.ClassNotFoundException: blank.html
at
org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(AdaptiveClassLoader.j
ava:450)
at
org.apache.tomcat.loader.AdaptiveServletLoader.loadClass(AdaptiveServletLoad
er.java:141)
at
org.apache.tomcat.core.ServletWrapper.initServlet(ServletWrapper.java:294)
at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:445)
at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:597)
at
org.apache.tomcat.servlets.InvokerServlet.service(InvokerServlet.java:257)
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.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java:156)
at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338
)
at java.lang.Thread.run(Unknown Source)




RE: tomcat.log file not found

2000-12-04 Thread G.Nagarajan
Title: tomcat.log file not found



Hi,
The 
message "check for error messages" does not mean that there are errors. It is 
just an informative
message. 

  -Original Message-From: Panagiotis Konstantinidis 
  [mailto:[EMAIL PROTECTED]]Sent: Monday, December 04, 2000 2:42 
  PMTo: '[EMAIL PROTECTED]'Subject: RE: 
  tomcat.log file not found
  No it is not, I have already looked there 
  (several times) but it isnot in there. It is not in the tomcat/logs, 
  actually it is not on my hard disk!! I can't seem to find 
  it anywhere.
  
  
-Original Message-From: G.Nagarajan 
[mailto:[EMAIL PROTECTED]]Sent: 04 December 2000 
13:06To: [EMAIL PROTECTED]Subject: RE: 
tomcat.log file not found
tomcat.log is usually in
c:\tomcat\logs\, if you have installed tomcat in 
c:\.


  -Original Message-From: Panagiotis 
  Konstantinidis [mailto:[EMAIL PROTECTED]]Sent: Monday, December 
  04, 2000 1:49 PMTo: 
  '[EMAIL PROTECTED]'Subject: tomcat.log file not 
  found
   And something else Sometimes when I am starting 
  Tomcat I get an error message: "Starting tomcat. Check logs/tomcat.log for 
  error messages" but I cannot find such file. I have looked everywhere 
  (even in other drives) but I cannot find the file tomcat.log. I have to 
  say here that Tomcat does not crash after this error message but keeps on 
  working normally.
   Any ides about what is going on? 
   Thank you. 
   Panos 



help on restricting access to admin context

2000-12-01 Thread G.Nagarajan

hi,
Can anyone tell the steps to protect the admin context with an user name and
password?

Thanks in advance,
Nagaraj.