tomcat+oracle sample

2001-07-17 Thread Jerry Qu



Hi All

could someone provide a sample jspfor tomcat 
that access oracle 8i with detailed setting?

TIA

Jerry



Images are not coming !

2001-07-17 Thread Paul, Samit (CORP, GEITC)

I've installed tomcat3.2. My application is residing on webapps/forSahji/
I've also updated this path in the server.xml file within the context tag.
The images used in the application(JSP pages) are in
webapps/forShaji/images. But except two images in the top and one as
background I'm not getting any other images. 

Is this is a problem related to WAR file? right now I'm not having any WAR
file for this architecture. Also I'd like to know how to create WAR file.

Thanks in advance!
- Samit




Re: Can I connect to an Access database?

2001-07-17 Thread Jim Cheesman

At 12:26 AM 17/07/01, you wrote:
The standard JDBC-ODBC bridge works fine (as far as it goes).


Which is not very far - given that it's not a production-level driver. That 
said, access is not a production-level database, either ;)

Seriously though, if you try to have more than one (a couple?) of 
connections open at once you'll start getting SQLExceptions all over the place.

Jim


  - A

On Mon, Jul 16, 2001 at 03:31:28PM -0500, Brandon Cruz wrote:
  Does anyone know of a free driver that I can use to connect via jdbc from
  Tomcat to a Microsoft Access database?  I have looked in the database on
  java.sun.com, but there are 15 different choices.  Just looking for some
  help on which direction to go.  Is this simple, or should I stay away from
  connecting to access via jdbc entirely?
 
  Brandon Cruz
  Norvax Inc.
  www.norvax.com

--
Alex Chaffee   mailto:[EMAIL PROTECTED]
jGuru - Java News and FAQs http://www.jguru.com/alex/
Creator of Gamelan http://www.gamelan.com/
Founder of Purple Technology   http://www.purpletech.com/
Curator of Stinky Art Collective   http://www.stinky.com/


--

   *   Jim Cheesman   *
 Trabajo: 
[EMAIL PROTECTED] - (34)(91) 724 9200 x 2360
  In retrospect it becomes clear 
that hindsight is definitely overrated





ajp13 dies unexpectately

2001-07-17 Thread maarten hartsuijker




we have been running tomcat 3.2.2 with apache, mod_jk and ajp13 support for 
about 3 weeks now. In those weeks the ajp13 module has died 2 times 
unexpectately and the only thing the mod_jk.og is showing me is a 
jk_ajp13_worker.c (586)]: Error connecting to the Tomcat process. 

With a netstat I can see that 8009 is not up anymore, so both times I have 
issued a shutdown and a start. That works but (ofcourse) I'd rather not have 
this problem at all.

With a ps -ef | grep tomcat I notice that tomcat is still running, but 
without the ajp13 service there is, ofcourse, not that much running left when 
speaking about funtionality

Anyone had this before and, better yet, found a solution?

kind regards,

Maarten Hartsuijker



Re: Pair programming review meeting

2001-07-17 Thread Jim Cheesman

At 11:47 PM 16/07/01, you wrote:
Are you sure there'll be enough room for everyone on this
list?  Will there be free food???

And more to the point, free wine? I do hate those alcohol-free Friday 
afternoon meetings - they seem like such a waste of time ;)

Jim






On Mon, 16 Jul 2001, you wrote:
  Hi All,
 
  You are invited to a meeting at 3:00 PM on Friday 20th July to discuss
  how the pair programming facilities are being used, problems
  encountered, practices employed, etc. and to explore how the pair
  programming practices can be enhanced, tightened, etc, and to explore
  any need to change or improve login and other security procedures.
 
  Kevin
 
  --
 
  Project Leader
  Plugged-In Software
  www.PIsoftware.com
  [EMAIL PROTECTED]







--

   *   Jim Cheesman   *
 Trabajo: 
[EMAIL PROTECTED] - (34)(91) 724 9200 x 2360
  In retrospect it becomes clear 
that hindsight is definitely overrated





FW: tomcat+oracle sample

2001-07-17 Thread albert




Dear 
Jerry

I 
never do JSP file that access directly to Oracle 8i, but I did like 
this:
From 
JSP ( Tomcat ) i send data to another interface java file,Iuse Java 
Beans and then from that interface
i send 
to business logic, which is can access Oracel 8i
I give 
you two file
1) 
UtilityDB, this object you can use for access Oracle
2) 
CallingUtility, this java file that use UtilityDB to access and exceute Oracle 
database

For 
private company reason, some data I delete, so may be you need to fix a little 
debug whenencounter problem when you compile UtilityDB
for 
CallingUtility I didn't meant you can compile, you must create your own code to 
call UtilityDB

regards


Albert Oscarina System Specialist Solution Made 
Pocketable http://www.SMPdirect.com Phone : (65) 276 7624 Fax 
: (65) 274 4770 mail : 
[EMAIL PROTECTED] 
"If we have a strong reason, we will find the 
way" (Bits  Pieces, The Economics 
Press) 


  -Original Message-From: Jerry Qu 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, July 18, 2001 6:27 
  AMTo: [EMAIL PROTECTED]Subject: 
  tomcat+oracle sample 
  Hi All
  
  could someone provide a sample jspfor 
  tomcat that access oracle 8i with detailed setting?
  
  TIA
  
  Jerry
  
 OracleAccess.zip


add new application

2001-07-17 Thread prs05



Hi All!

I've a problem: I need to insert new application to 
Tomcat.
How can I set parameters of this 
application?
There're the specify documentations?




getinitParameter

2001-07-17 Thread Zsolt Horvath




Hi 
!I have a web.xml file with this 
lines: 
context-param 
param-namevalami/param-name 
param-valuesun.jdbc.odbc.JdbcOdbcDriver/param-value 
description The database 
driver's type.  
/description 
/context-param 
servlet-namegetInit/servlet-name 
descriptionNo desc. 
/description 
servlet-classgetinit.mainServlet/servlet-class 
init-param 
param-namevalami/paramName 
param-valuecom.mycompany.myactions.ListOrdersAction/param-value 
/init-param /servletHow can I acces 
the valami variable inside a servlet (in JSP works). I use 
getServletConfig.getInitParameter("valami") and I always get null !!! I don't 
understand !!!
Or I have to 
use getServletContext.getInitParameter instead 
?Thanx.


problems serving HTTP requests

2001-07-17 Thread David Treves



Hi, I searched the archives yet didn't find 
anything can help me... I installed the Tomcat 3.2.2 in an out-of-process mode 
with IIS 5,for some time it worked just fine. Today Tomcat decided it is 
on a strike... I cannot get any servlet/jsp file served by it. Instead I 
getthe option to download the file I request and the files are filled with 
gibberish.

The Tomcat's DOS window doesn't print any error and 
I see in the IIS log that the request went fine (08:15:19 192.114.206.189 GET 
/jakarta/isapi_redirect.dll 200) a few times (even though I saw no results) and 
some times I got 206 HTTP message or 304.

What could make the sudden change?


Thanks in advance!
David.


RE: tomcat-user Digest 17 Jul 2001 07:34:59 -0000 Issue 1287

2001-07-17 Thread Ben Kelley

Hi.

It turns out that this is a bug. See
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2646

- Ben Kelley.

 Date: Tue, 17 Jul 2001 07:29:07 +0200
 To: [EMAIL PROTECTED]
 From: Gregor =?iso-8859-1?Q?Kova=E8?= [EMAIL PROTECTED]
 Subject: Re: Internationalisation problems in Tomcat 3.3?
 Message-Id: [EMAIL PROTECTED]

 Hi!

 I had the same problems using a database. I don't know if this applies to
 your case, but nevertheless:
 I created a database in Cp1250 or Latin2 encoding. Then I have
 put %@page
 contentType = text/html; charset=windows-1250 % on top of my JSP page
 and things work now.

 Best regards,
  Kovi

 P.S.: I have done this with MySQL, DB2 and Interbase.


Visit our website at http://www.ubswarburg.com

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free 
as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.  The sender therefore 
does not accept liability for any errors or omissions in the contents 
of this message which arise as a result of e-mail transmission.  If 
verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities or 
related financial instruments.




user admin

2001-07-17 Thread prs05



Which is the password and the user default for 
Tomcat admin?

How can I Find it and 
replace?


Wanted to start using Tomcat.

2001-07-17 Thread Sougat Ghosh

Hi All,
I wanted to start using Tomcat. I am a very novice
person, wanted to know when to use Tomcat and how do I
use the same.
Regards,
Sougat Ghosh



--- Jerry Qu [EMAIL PROTECTED] wrote:
 Hi All
 
 could someone provide a sample jsp for tomcat that
 access oracle 8i with detailed setting?
 
 TIA
 
 Jerry
 
 


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



tomcat-iis

2001-07-17 Thread sergiole








I need your help.I get this errors in the isapi
redirector log file:



[jk_uri_worker_map.c
(335)]: jk_uri_worker_map_t::uri_worker_map_close,
NULL parameter

[jk_uri_worker_map.c
(185)]: In jk_uri_worker_map_t::uri_worker_map_free,
NULL parameters

[jk_uri_worker_map.c
(335)]: jk_uri_worker_map_t::uri_worker_map_close,
NULL parameter

[jk_uri_worker_map.c
(185)]: In jk_uri_worker_map_t::uri_worker_map_free,
NULL parameters

[jk_uri_worker_map.c
(431)]: In jk_uri_worker_map_t::map_uri_to_worker,
wrong parameters

[jk_uri_worker_map.c
(431)]: In jk_uri_worker_map_t::map_uri_to_worker,
wrong parameters

[jk_uri_worker_map.c
(431)]: In jk_uri_worker_map_t::map_uri_to_worker,
wrong parameters

[jk_uri_worker_map.c
(335)]: jk_uri_worker_map_t::uri_worker_map_close,
NULL parameter

[jk_uri_worker_map.c
(185)]: In jk_uri_worker_map_t::uri_worker_map_free,
NULL parameters

[jk_uri_worker_map.c
(431)]: In jk_uri_worker_map_t::map_uri_to_worker,
wrong parameters

[jk_uri_worker_map.c
(431)]: In jk_uri_worker_map_t::map_uri_to_worker,
wrong parameters

[jk_uri_worker_map.c
(335)]: jk_uri_worker_map_t::uri_worker_map_close,
NULL parameter

[jk_uri_worker_map.c
(185)]: In jk_uri_worker_map_t::uri_worker_map_free,
NULL parameters

[jk_uri_worker_map.c
(431)]: In jk_uri_worker_map_t::map_uri_to_worker,
wrong parameters

[jk_uri_worker_map.c
(335)]: jk_uri_worker_map_t::uri_worker_map_close,
NULL parameter

[jk_uri_worker_map.c
(185)]: In jk_uri_worker_map_t::uri_worker_map_free,
NULL parameters

[jk_uri_worker_map.c
(431)]: In jk_uri_worker_map_t::map_uri_to_worker,
wrong parameters

[jk_uri_worker_map.c
(431)]: In jk_uri_worker_map_t::map_uri_to_worker,
wrong parameters

[jk_uri_worker_map.c
(431)]: In jk_uri_worker_map_t::map_uri_to_worker,
wrong parameters

[jk_uri_worker_map.c
(335)]: jk_uri_worker_map_t::uri_worker_map_close,
NULL parameter

[jk_uri_worker_map.c
(185)]: In jk_uri_worker_map_t::uri_worker_map_free,
NULL parameters



and
in the worker property file I have:



/examples/*.jsp=ajp12

/examples/servlet/*=ajp12



I followed several time the steps in the TomCat IIS Howto document
but I get the error in the browser The
network request is not supported. accesing a jsp.



Thanks



Sergio Leiva
Ortega

TAMI Software
Development.










AW: web.xml upgrading 3.1 - 3.2.2

2001-07-17 Thread guido . bartels

Hi John,

the web.xml in the conf dir is not processed anymore since tomcat 3.2.

Move your changes from that web.xml in conf to the web.xml in the web-app
dir.
The it should work.
We needed very much time to figure this out and don't know if this change
was offically repoerted.

Kind regards
Guido

-Ursprüngliche Nachricht-
Von: John Gentilin [mailto:[EMAIL PROTECTED]]
Gesendet am: Dienstag, 17. Juli 2001 07:17
An: Apache TomCat Project
Betreff: web.xml upgrading 3.1 - 3.2.2


I am trying to upgrade my 3.1 install to 3.2 and I am using
the web.xml file in the conf directory for some special mappings
so Tomcat works in my development enviorment. After installing
the new version, it does not seem that Tomcat picks up my servlet
mappings. The classes are part of the system class path so I should
not have a visibility problem except for maybe a permissions problem
and is does not seem like Tomcat is even recognizing the URL. Can
anyone help with the problem, below is my web.xml changes.

Thanks
John G


servlet
servlet-name
cmd-mgr
/servlet-name
servlet-class
com.smart911.gca.CmdMgr
/servlet-class
/servlet

servlet-mapping
servlet-name
cmd-mgr
/servlet-name
url-pattern
/cmd/*
/url-pattern
/servlet-mapping





---
This message is intended for the adressee or its representative only. Any form of 
unauthorized use, publication, reproduction, copying or disclosure of the content of 
this e-mail is not permitted. If you are not the intended recipient of this e-mail 
message and its contents, please notify the sender immediately and delete this message 
and all its attachments subsequently.





Re: tomcat-user Digest 17 Jul 2001 07:34:59 -0000 Issue 1287

2001-07-17 Thread Carlos

how can i unsubscripbe (vacatrions) from tomcat list?
thanks
- Original Message -
From: Ben Kelley [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, July 17, 2001 9:47 AM
Subject: RE: tomcat-user Digest 17 Jul 2001 07:34:59 - Issue 1287


 Hi.

 It turns out that this is a bug. See
 http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2646

 - Ben Kelley.

  Date: Tue, 17 Jul 2001 07:29:07 +0200
  To: [EMAIL PROTECTED]
  From: Gregor =?iso-8859-1?Q?Kova=E8?= [EMAIL PROTECTED]
  Subject: Re: Internationalisation problems in Tomcat 3.3?
  Message-Id: [EMAIL PROTECTED]
 
  Hi!
 
  I had the same problems using a database. I don't know if this applies
to
  your case, but nevertheless:
  I created a database in Cp1250 or Latin2 encoding. Then I have
  put %@page
  contentType = text/html; charset=windows-1250 % on top of my JSP page
  and things work now.
 
  Best regards,
   Kovi
 
  P.S.: I have done this with MySQL, DB2 and Interbase.


 Visit our website at http://www.ubswarburg.com

 This message contains confidential information and is intended only
 for the individual named.  If you are not the named addressee you
 should not disseminate, distribute or copy this e-mail.  Please
 notify the sender immediately by e-mail if you have received this
 e-mail by mistake and delete this e-mail from your system.

 E-mail transmission cannot be guaranteed to be secure or error-free
 as information could be intercepted, corrupted, lost, destroyed,
 arrive late or incomplete, or contain viruses.  The sender therefore
 does not accept liability for any errors or omissions in the contents
 of this message which arise as a result of e-mail transmission.  If
 verification is required please request a hard-copy version.  This
 message is provided for informational purposes and should not be
 construed as a solicitation or offer to buy or sell any securities or
 related financial instruments.






AW: user admin

2001-07-17 Thread guido . bartels

Have a look at conf/tomcat-users.xml
 
Kind regrads
Guido

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Gesendet am: Dienstag, 17. Juli 2001 09:48
An: [EMAIL PROTECTED]
Betreff: user admin

Which is the password and the user default for Tomcat admin?
 
How can I Find it and replace?




---
This message is intended for the adressee or its representative only. Any form of 
unauthorized use, publication, reproduction, copying or disclosure of the content of 
this e-mail is not permitted. If you are not the intended recipient of this e-mail 
message and its contents, please notify the sender immediately and delete this message 
and all its attachments subsequently.





using digest autenticator in tomcat 4

2001-07-17 Thread Marco Magistrali


hi all,
I want to use the digest autenthicator with tomcat 4 but I can't

I put in server.xml digest=MD5
I put in my web.xml  auth-methodBASIC/auth-method

I try to crypt my password with this method:

 public static void main(String args[]) {
String pippo = pippo;
MessageDigest md ;
try {

md = MessageDigest.getInstance(MD5);
md.reset();
md.update(pippo.getBytes());
System.err.println( dig  
+(HexUtils.convert(md.digest(;

} catch (Exception e) {

System.err.println(credential + pippo);
}

}

and I put the result of system.err in db. It's doesn't work!


someone can help me???

tanks!!
Marco




AW: Images are not coming !

2001-07-17 Thread guido . bartels

Please note that filename are casesensitive with tomcat.
Kind regards
Guido

-Ursprüngliche Nachricht-
Von: Paul, Samit (CORP, GEITC) [mailto:[EMAIL PROTECTED]]
Gesendet am: Dienstag, 17. Juli 2001 08:44
An: [EMAIL PROTECTED]
Betreff: Images are not coming !

I've installed tomcat3.2. My application is residing on webapps/forSahji/
I've also updated this path in the server.xml file within the context tag.
The images used in the application(JSP pages) are in
webapps/forShaji/images. But except two images in the top and one as
background I'm not getting any other images. 

Is this is a problem related to WAR file? right now I'm not having any WAR
file for this architecture. Also I'd like to know how to create WAR file.

Thanks in advance!
- Samit



---
This message is intended for the adressee or its representative only. Any form of 
unauthorized use, publication, reproduction, copying or disclosure of the content of 
this e-mail is not permitted. If you are not the intended recipient of this e-mail 
message and its contents, please notify the sender immediately and delete this message 
and all its attachments subsequently.





Re: user admin

2001-07-17 Thread prs05

I've already do, but accounts don't get me the access at the page.
admin admin
role1  role1
admin role1/admin



- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, July 17, 2001 9:54 AM
Subject: AW: user admin


Have a look at conf/tomcat-users.xml

Kind regrads
Guido

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Gesendet am: Dienstag, 17. Juli 2001 09:48
An: [EMAIL PROTECTED]
Betreff: user admin

Which is the password and the user default for Tomcat admin?

How can I Find it and replace?





---
This message is intended for the adressee or its representative only. Any
form of unauthorized use, publication, reproduction, copying or disclosure
of the content of this e-mail is not permitted. If you are not the intended
recipient of this e-mail message and its contents, please notify the sender
immediately and delete this message and all its attachments subsequently.






Re: Wanted to start using Tomcat.

2001-07-17 Thread Sougat Ghosh


Hi All,
 I wanted to start using Tomcat. I am a very novice
 person, wanted to know when to use Tomcat and how do
 I  use the same. Wanted for a chat server to be run
on the same with IRCD.
 Regards,
 Sougat Ghosh


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



AW: user admin

2001-07-17 Thread Sladky, Jan

For tomcat 3.3-m4 change the file conf/admin-users.xml
 
hth
Jan

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Gesendet am: Dienstag, 17. Juli 2001 09:48
An: [EMAIL PROTECTED]
Betreff: user admin

Which is the password and the user default for Tomcat admin?
 
How can I Find it and replace?




Re: Question about copyright

2001-07-17 Thread Alex Fernández

Hi Zhang!

zhang heng chong wrote:
 I am sorry for interrupted you.
 I have a question about software copyright.
 I downloaded tomcat,apache from jakarta.apache.org,and I read licence. I am 
puzzled whether those softwares can be used by a profit-making company website .

Yes, it can. You can use the software for any purpose you like.

You accept to use Tomcat at your own risk: that means that you cannot
blame whatever problems you find on the Apache Group. Say, if your
entire hard disk is wiped out by Tomcat, you cannot sue them.

You cannot use the names 'Apache' or 'Tomcat' to endorse your product.
That means you cannot announce your company as 'wonderfulsite.com --
endorsed by Apache', or 'wonderfulsite.com -- the preferred Tomcat
site'.

If you want to distribute Tomcat, you must follow the conditions
expressed in the license: do not remove copyright notices nor authorship
notices.

Un saludo,

Alex.



RE: user admin

2001-07-17 Thread Cristian Bortolato

I'm using tomcat 3.2.2, there're tomcat-user.xml defined :

tomcat-users
  user name=tomcat password=tomcat roles=tomcat /
  user name=role1  password=tomcat roles=role1  /
  user name=both   password=tomcat roles=tomcat,role1 /
/tomcat-users

I've used user tomcat with pass tomcat and all combinations with role1 and
both, but it doesn't open the page.



-Original Message-
From: Sladky, Jan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 17, 2001 10:02 AM
To: '[EMAIL PROTECTED]'
Subject: AW: user admin


For tomcat 3.3-m4 change the file conf/admin-users.xml
 
hth
Jan

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Gesendet am: Dienstag, 17. Juli 2001 09:48
An: [EMAIL PROTECTED]
Betreff: user admin

Which is the password and the user default for Tomcat admin?
 
How can I Find it and replace?




JSP: Internal Servlet Error

2001-07-17 Thread Stefano Bonnin

Hi, I have just installed Tomcat 3.2.1 and the Servlets are OK. When I try
to execute the JSP examples Tomcat returns this message:

Internal Servlet Error

javax.servlet.ServletException: sun/tools/javac/Main
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java, Compiled
Code)
 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.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
 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:479)

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, Compiled
Code)
 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, Compiled
Code)
 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.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
 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:479)


WHY?

Thanks.





Re: Internal Servlet Error

2001-07-17 Thread John Michael Luy

maybe you need to edit you build.bat or build.sh  to include tools.jar.

- Original Message -
From: Stefano Bonnin [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, July 17, 2001 4:22 PM
Subject: JSP: Internal Servlet Error


 Hi, I have just installed Tomcat 3.2.1 and the Servlets are OK. When I try
 to execute the JSP examples Tomcat returns this message:

 Internal Servlet Error

 javax.servlet.ServletException: sun/tools/javac/Main
  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java, Compiled
 Code)
  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.http.HttpConnectionHandler.processConnection(HttpC
 onnectionHandler.java:210)
  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:479)

 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, Compiled
 Code)
  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, Compiled
 Code)
  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.http.HttpConnectionHandler.processConnection(HttpC
 onnectionHandler.java:210)
  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:479)


 WHY?

 Thanks.







Re: Internal Servlet Error

2001-07-17 Thread John Michael Luy

sorry i meant you startup scripts... tools.jar is found in %JAVA_HOME%/lib/.

- Original Message -
From: John Michael Luy [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, July 17, 2001 4:26 PM
Subject: Re: Internal Servlet Error


 maybe you need to edit you build.bat or build.sh  to include tools.jar.

 - Original Message -
 From: Stefano Bonnin [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, July 17, 2001 4:22 PM
 Subject: JSP: Internal Servlet Error


  Hi, I have just installed Tomcat 3.2.1 and the Servlets are OK. When I
try
  to execute the JSP examples Tomcat returns this message:
 
  Internal Servlet Error
 
  javax.servlet.ServletException: sun/tools/javac/Main
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java,
Compiled
  Code)
   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.http.HttpConnectionHandler.processConnection(HttpC
  onnectionHandler.java:210)
   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:479)
 
  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, Compiled
  Code)
   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,
Compiled
  Code)
   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.http.HttpConnectionHandler.processConnection(HttpC
  onnectionHandler.java:210)
   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:479)
 
 
  WHY?
 
  Thanks.
 
 
 





Re: JasperException / classpath(?) problem

2001-07-17 Thread howard fraser

In case anyone else has had a similar problem, here is my solution.

Although starting tomcat results in the message...

Using CLASSPATH:
\tomcat\classes;C:\tomcat\lib\ant.jar;C:\tomcat\lib\jasper.jar;
C:\tomcat\lib\jaxp.jar;C:\tomcat\lib\parser.jar;C:\tomcat\lib\servlet.jar;
C:\tomcat\lib\webserver.jar;C:\jdk1.3.1\lib\tools.jar

...because I had j2ee.jar in jdk home\jre\lib\ext it was picking up this
file first which was causing some kind of conflict.  Removing j2ee.jar from
jdk home\jre\lib\ext solves the problem.


Howard

- Original Message -
From: Jann VanOver [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 16, 2001 7:46 PM
Subject: RE: JasperException / classpath(?) problem


 Where did you put NumberGuessBean.class ??

 It must go into WEB-INF/classes/num/ (because it is in package named
num)

 -Original Message-
 From: howard fraser [mailto:[EMAIL PROTECTED]]
 Sent: Monday, July 16, 2001 7:29 AM
 To: [EMAIL PROTECTED]
 Subject: JasperException / classpath(?) problem


 I wonder if anyone can shed any light on the following - I have looked
 through the archived messages, but to no avail.

 I have tomcat 3.2.2 installed on Windows 2000 SP2 with jdk1.3.1.  I do not
 have a CLASSPATH environment variable set.  When I start tomcat it first
 says

 Using CLASSPATH:

C:\tomcat\classes;C:\tomcat\lib\ant.jar;C:\tomcat\lib\jasper.jar;C:\tomcat\l
 ib\jaxp.jar;

C:\tomcat\lib\parser.jar;C:\tomcat\lib\servlet.jar;C:\tomcat\lib\webserver.j
 ar;C:\jdk1.3.1\lib\tools.jar

 ...which seems fine to me (all the above mentioned jars exist).

 When I try to run the jsp examples that come with tomcat (e.g. number
guess)
 I get the following exception...

 org.apache.jasper.JasperException: Unable to compile class for

JSPC:\tomcat\work\localhost_8080%2Fexamples\jsp\num\_0002fjsp_0002fnum_0002f
 numguess_jsp.java:3: Class num.NumberGuessBean not found in import.
 import num.NumberGuessBean;

 Is there sthg else I need to add to my classpath in order that tomcat can
 locate num.NumberGuessBean?

 Many thanks in advance for any help


 howard




Re: user admin

2001-07-17 Thread Bernd Koecke

Hi,

Cristian Bortolato wrote:
 
 I'm using tomcat 3.2.2, there're tomcat-user.xml defined :
 
 tomcat-users
   user name=tomcat password=tomcat roles=tomcat /
   user name=role1  password=tomcat roles=role1  /
   user name=both   password=tomcat roles=tomcat,role1 /
 /tomcat-users
 
 I've used user tomcat with pass tomcat and all combinations with role1 and
 both, but it doesn't open the page.
 
[...]

try it with the additional role 'admin' for one of the users. I'm using
tomcat-3.2.2 too and it works.

Bye

Bernd
-- 
Dipl.-Inform. Bernd Koecke
UNIX-Entwicklung
Schlund+Partner AG
Fon: +49-721-91374-0
E-Mail: [EMAIL PROTECTED]



jsp and tomcat 4

2001-07-17 Thread Marco Magistrali


Hi,

I have a question:
if I modify a JSP under tomcat4 i don't see any change in browser because
tomcat4 get the .class of JSP in cache (directory work)

How can I say to recompile the jsp if there are changes in java??


tanks
Marco




RE: user admin

2001-07-17 Thread Artigas, Ricardo Y.

add this line:
user name=yourusername password=yourpassword roles=admin /


:^)
Ricky Y. Artigas
Analyst/Programmer /
Database Administrator
Information Technology Division
Easycall Communications Phils., Inc.
- Easycall Internet -
418 Arayat St., Mandaluyong City 1550, Philippines
Company Website: http://www.easycall.com.ph
Tel.no: (+632) 5338001 ext.6574
Mobile:(+63) 0917-8951783
Pager:  141-002955
Email: [EMAIL PROTECTED]


 ---
 IMPORTANT NOTICE: 
  
 This message (and any attachment hereto) may contain privileged and/or
 confidential information specific to EasyCall. If you are not the intended
 addressee indicated in this message, you may not copy or disseminate this
 message (or any attachment hereto) to anyone. Instead, please destroy this
 message (and any attachment hereto), and kindly notify the sender by reply
 email. Any information in this message (and any attachment thereto) that
 do not relate to the official business of EasyCall shall be understood as
 neither given nor endorsed by the company.
 
 
 -Original Message-
 From: Cristian Bortolato [SMTP:[EMAIL PROTECTED]]
 Sent: Tuesday, July 17, 2001 4:23 PM
 To:   '[EMAIL PROTECTED]'
 Subject:  RE: user admin
 
 I'm using tomcat 3.2.2, there're tomcat-user.xml defined :
 
 tomcat-users
   user name=tomcat password=tomcat roles=tomcat /
   user name=role1  password=tomcat roles=role1  /
   user name=both   password=tomcat roles=tomcat,role1 /
 /tomcat-users
 
 I've used user tomcat with pass tomcat and all combinations with role1 and
 both, but it doesn't open the page.
 
 
 
 -Original Message-
 From: Sladky, Jan [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, July 17, 2001 10:02 AM
 To: '[EMAIL PROTECTED]'
 Subject: AW: user admin
 
 
 For tomcat 3.3-m4 change the file conf/admin-users.xml
  
 hth
 Jan
 
 -Ursprüngliche Nachricht-
 Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Gesendet am: Dienstag, 17. Juli 2001 09:48
 An: [EMAIL PROTECTED]
 Betreff: user admin
 
 Which is the password and the user default for Tomcat admin?
  
 How can I Find it and replace?



How to pass init parameter to a JSP

2001-07-17 Thread Simon Chan

Hi,

How to pass initial parameters to a JSP?  I know how to pass initial
parameters to a servlet via web.xml file (init-param). However, I
don't know where to put for JSP.  This is my JSP file

...
%
String c = config.getInitParameter(cfg);
...


Thanks in advance


skc





Re: How to pass init parameter to a JSP

2001-07-17 Thread Zsolt Horvath

...
%! String variable = ;%

% variable = getServletContext().getInitParameter(variable);%
The value is: %=variable%

...
- Original Message - 
From: Simon Chan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, July 17, 2001 12:24 PM
Subject: How to pass init parameter to a JSP


 Hi,
 
 How to pass initial parameters to a JSP?  I know how to pass initial
 parameters to a servlet via web.xml file (init-param). However, I
 don't know where to put for JSP.  This is my JSP file
 
 ...
 %
 String c = config.getInitParameter(cfg);
 ...
 
 
 Thanks in advance
 
 
 skc
 
 
 




processes don't die

2001-07-17 Thread Jeff Hoare

Hi,
When I use the shutdown script for Tomcat (version 4) it does not stop all 
the java processes. There are 28 java processes normally, however, after 
executing shutdown 23 are still left. If I restart Tomcat they all seem to 
die and then eventually come back (u know the expected 28).
The processes left after the shutdown are all owned by the same parent so 
terminating them is easy, but does anyone have an idea what is going on. I'm 
using the IBM's jdk1.3 on linux (which uses native threads).

Jeff



regarding tomcat run in background on win nt

2001-07-17 Thread Dhaval Patel

respected sir,

my self is dhaval working in java from last 2 years now 
i want to know that what should i to run the tomcat server in background
processes even if I log off my NT session
is this possible and if yes then please give me some clue about it bcoz
right now I am in great hurry in my project

reply asap

thanking with anticipation

regards

- dhaval 



Re: Performance Comparison

2001-07-17 Thread Kaneda K

At 06:35 13/07/2001 -0700, you wrote:
Hello;

I am in the processing of choosing an appropriate
servlet engine for my web server (which will be
serving bunch of customers), and have been considering
TOMCAT, Resin, Orion, ServletExec and JRUN. I have
tried to find a reliable source for performance
comparisons, but couldn't find one (especially one
that compares with Tomcat 3.3 or 4, since I would like
to use Tomcat unless it is significantly slower). All
of the existing comparisons are made with Tomcat 3.1
and from those, it looks like tomcat is in serious
trouble! There are also some other messages that has
no conclusion!

Anyways, I would appreciate it if you can point me to
any resource regarding relatively recent (comparing
latest releases) performance comparison or share your
experiences which in turn would help me to pick the
appropriate engine!

Thanks,
Baho.
For pure production :
  go for resin, it seem to be the fastest.
  If you like the idea on getting in code and mastering you tools choose 
Tomcat.
In the end, a lot of work are know on documentation-communication. So it's 
up to you.

see ya




Tomcat4: Persistent http connection problem

2001-07-17 Thread Ralf Bechtel

Hi everybody!

I've encountered a problem with Tomcat4-b5:

We implemented a client/server system for a callcenter. The client is an
applet running in a browser. The server is a servlet running in
Tomcat4-b5. The client sends a request to the servlet and waits for the
answer from the servlet. The applet/servlet communication is done using
serialized Java objects. Since there are approximately 800 clients each
sending one request per second to the servlet it is 
extremely important that Tomcat uses persistent http connections.
Otherwise there will be no useable socket on the server sooner or later.
If there's no wait time in the client sending requests to the servlet
there's no problem. But in the production system we've got a sleep(1000)
in the client before sending the next request to the servlet. 

This results in a java.io.EOFException: Couln't read line in
org.apache.catalina.connector.http.HttpProcessor in the method
process(Socket), when calling parseRequest(input, output) originating in
org.apache.catalina.connector.http.SocketInputStream.readRequestLine(HttpRequestLine).
Tomcat closes that socket and uses a new one for the next request of the
same client. 
But the strange thing is: This exception doesn't occur always. It
relates to the wait time for the next request. If there's a sleep(800)
in the client no sockets will be closed (if client and servlet are
running on the same machine). If there's a sleep(200) sockets will be
closed. Note: Socket timeout is turned off.

The following code shows the applet and servlet code to post and handle
the request.

Applet code:

  public ServletResponse postRequest(ServletRequest req) {
ServletResponse result = null;

try {
  HttpURLConnection con = (HttpURLConnection) this.mUrl.openConnection();

  con.setDoOutput(true);
  con.setUseCaches(false);
  con.setDefaultUseCaches(false);
  con.setRequestMethod(POST);
  ByteArrayOutputStream bos = new ByteArrayOutputStream(3000);
  ObjectOutputStream out = new ObjectOutputStream(bos);
  out.writeObject(req);
  out.flush();

  con.setRequestProperty(Content-Length, String.valueOf(bos.size()));
  con.setRequestProperty(Content-Type, application/x-java-serialized-object);
  bos.writeTo(con.getOutputStream());
  bos.flush();

  ObjectInputStream ois = new ObjectInputStream(con.getInputStream());
  Object obj = ois.readObject();

  if ( obj instanceof ServletResponse ) {
result = (ServletResponse) obj;
  }

  ois.close();
  out.close();
}

catch ( ConnectException cex ) {
  this.mDebug.error(, cex);
}

catch ( IOException ioex ) {
  this.mDebug.error(, ioex);
}

catch ( ClassNotFoundException cnf ) {
  this.mDebug.error(, cnf);
}

return result;
  }

The servlet code to handle the request:

  public void doPost(HttpServletRequest request, HttpServletResponse response) throws 
ServletException, IOException
  {
try {
  ObjectInputStream in = new ObjectInputStream(request.getInputStream());
  ServletRequest req = (ServletRequest) in.readObject();
  ServletResponse responseObj = null;

  responseObj = this.handleRequest(request, req);

  ByteArrayOutputStream bos = new ByteArrayOutputStream(5000);
  ObjectOutputStream out = new ObjectOutputStream(bos);
  out.writeObject(responseObj);
  out.flush();
  int size = bos.size();

  response.setContentType(CONTENT_TYPE_OBJECT);
  response.setContentLength(size);
  bos.writeTo(response.getOutputStream());
}

catch ( ClassNotFoundException cnf ) {
  this.mDebug.debug(, cnf);
}

catch ( IOException ioex ) {
  this.mDebug.debug(, ioex);
}

  }


What's the problem? Is that a Tomcat bug or a problem in our code?
Thanks!

-- 

Regards

Ralf

--- 
Ralf Bechtel
OptiSoft GmbH 
Pforzheimer Str. 68a D-75242 Neuhausen 
email:  [EMAIL PROTECTED] http://www.optisoft.de 
phone:  ++49 7234 9518-51 fax: ++49 7234 9518-44 
---



RE: Can I connect to an Access database?

2001-07-17 Thread Randy Layman



 -Original Message-
 From: Jim Cheesman [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, July 17, 2001 3:07 AM
 To: [EMAIL PROTECTED]
 Subject: Re: Can I connect to an Access database?
 
 
 At 12:26 AM 17/07/01, you wrote:
 The standard JDBC-ODBC bridge works fine (as far as it goes).
 
 
 Which is not very far - given that it's not a 
 production-level driver. That 
 said, access is not a production-level database, either ;)
 
 Seriously though, if you try to have more than one (a couple?) of 
 connections open at once you'll start getting SQLExceptions 
 all over the place.
 

Only if you're lucky.  More likely is that you will become familiar
with Dr. Watson and his friends the General Protection Fault and Illegal
Access Error.

Really, the JDBC-ODBC bridge is not thread safe.  You can check out
Sun's BugParade where they acknowledge the bug and indicate that it will not
be fixed.

Randy



what's wrong here?

2001-07-17 Thread Aditya Anand

Hi what is wrong with this code?

ic = new InitialContext();
Object myObj = new MyObject();
ic.rebind(java:comp/env/my_object, myObj);
// I even tried java:/comp/env/my_obj
ic.close();

I get a NamingException saying the context is
readonly.
I am using Tomcat 4.0 beta5 on NT / JVM 1.3.0_02

any suggestion?

Adi


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



IIS - Tomcat 3.2.1

2001-07-17 Thread val

Hi,

I have 2 problems in using tomcat 3.2.1 with IIS(4 or 5), whereas it is
configured following the 'how  to IIS - Tomcat' doc :
1) It is impossible to get the remote user from java code (method
getRemoteUser always returns null) with IIS4
  With IIS 5, I can correctly get the remote user if I comment
the line /myContext/*=ajp12 in uriWorkerMap.properties file.

2) On both configuration the http request is emptied : there are no
parameters in request after submit 
  It happens randomly...

Thanks for any help

Val




RE: ServletException in 4.0b5

2001-07-17 Thread Wells Tiedeman



I 
experienced the same problem. It's due to a class loader issue. 
Multiple class loaders have been introduced in V4.0 to implement the 
requirements found in Section 9.6.2 of the Servlet 2.3 Spec. These class 
loaders are used to load all of the jars and classes rather than using the 
CLASSPATH.

I was 
able to resolve this problemas follows :

- Add all supporting jars for your web application (except J2EE 
jars) to the /WEB-INF/lib directory rather than includingthem in the 
CLASSPATH
- Add all of the required classes for your web application to the 
/WEB-INF/classes directory rather than including them in the 
CLASSPATH
- Add the j2ee.jar from the 
/j2sdkee1.3/lib directory to the TOMCAT_HOME/common/lib directory. 
All J2EE platform classes must be placed in the common/lib 
or common/classes directories rather than with the web 
application.

-Wells

Wells 
TiedemanYOUcentric, Inc.P: 704.401.1109F: 704.401.1240[EMAIL PROTECTED]

For 
more information on YOUcentric, please visit our web site atwww.youcentric.com



  -Original Message-From: Vernon Wu 
  [mailto:[EMAIL PROTECTED]]Sent: Monday, July 16, 2001 7:53 
  PMTo: [EMAIL PROTECTED]Subject: 
  ServletException in 4.0b5
  I move one our small JSP application from 3.x to 4.0b5 for the reason of 
  using servlet 2.3 specification: ServletContextListener, HttpSessionListener 
  be more specific. 
  
  I get the exception under the 4.0b5 with the following messages:
  
  
  Exception Report:javax.servlet.ServletException: Class abc.control.ControllerServlet is not a Servlet
Root Cause:java.lang.ClassCastException: abc.control.ControllerServlet
...There is not any indication that anywhere my code is not approprt. What I shall do at this situation?I believe that I encounter the similar situation in the 3.x, and it can be resolved by recycle the Tomcat server. That method doesn't work for 4.0b5.Thanks.Vernon  
  
  Get your FREE download of MSN Explorer at http://explorer.msn.com
  


RE: Can I connect to an Access database?

2001-07-17 Thread Jim Cheesman

At 01:22 PM 17/07/01, you wrote:


  -Original Message-
  From: Jim Cheesman [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, July 17, 2001 3:07 AM
  To: [EMAIL PROTECTED]
  Subject: Re: Can I connect to an Access database?
 
 
  At 12:26 AM 17/07/01, you wrote:
  The standard JDBC-ODBC bridge works fine (as far as it goes).
 
 
  Which is not very far - given that it's not a
  production-level driver. That
  said, access is not a production-level database, either ;)
 
  Seriously though, if you try to have more than one (a couple?) of
  connections open at once you'll start getting SQLExceptions
  all over the place.
 

 Only if you're lucky.  More likely is that you will become familiar
with Dr. Watson and his friends the General Protection Fault and Illegal
Access Error.

Alright, I confess I haven't used jdbc:odbc with access - though I have 
used it extensively with DB2 and SQL Server. In those cases I get 
SQLExceptionS rather than Dr.Watson





--

   *   Jim Cheesman   *
 Trabajo: 
[EMAIL PROTECTED] - (34)(91) 724 9200 x 2360
  In retrospect it becomes clear 
that hindsight is definitely overrated





Re: Tomcat as NT service.. problem.

2001-07-17 Thread Gary Dale

Well put. Moreover, the jk_nt_service does not require knowledge of the 
Apache directory.


Randy Layman wrote:

   I would suggest that you investigate why this is before you call it
a secret trap and stupid.  There are lots of little gottchas like this
in Tomcat (and Windows in general).  They are generally there because the
people at Microsoft couldn't be bothered to make all things work all the
time.

   Randy

PS This problem is related to the reason that on NT and 9x you system
directory has hundreds, if not thousands, of dlls.

-Original Message-
From: Bruce A. Carson [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 10, 2001 12:44 AM
To: [EMAIL PROTECTED]
Subject: RE: Tomcat as NT service.. problem.


Ah, you probably fell for the secret trap laid for you by the
programmers...  The stupid Tomcat jk_nt_service can't handle directories
with a space in them and the default install for Apache puts Apache in a
directory with not one, but two spaces !!
 
I will send you my install directions in a private e-mail.  If anyone else
is interested, drop me an e-mail.
 
Bruce
-Original Message-
From: Gregory Guthrie [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 10, 2001 12:37 AM
To: [EMAIL PROTECTED]
Subject: Tomcat as NT service.. problem.


I tried to setup Tomcat to start as an NT service (Win2k-Pro), as per:
  Working with the Jakarta NT Service
  http://jakarta.apache.org/tomcat/tomcat-3.2-doc/NT-Service-howto.html
  
And it seems OK:
   E:\Net\Apache\Toolsjk_nt_service -i Tomcat
e:\Net\Apache\Tomcat\conf\wrapper.properties
   Asked (and given) winsock 1.1
   The service named Tomcat was created. Now adding registry entries
   Registry values were added
   If you have already updated wrapper.properties you may start the Tomcat
service
   by executing net start Tomcat from the command prompt

But I get:
   E:\Net\Apache\Toolsnet start Tomcat
   The Tomcat service is starting.
   The Tomcat service could not be started.
   The service did not report an error.
   More help is available by typing NET HELPMSG 3534.

Apache runs fine as a service.  :-)
Tomcat runs fine by a DOS startup.
And they run fine together via mod_jk.dll.

I did edit the wrappers.properties file to point to JDK and Tomcat; seems
simple enough.
  
Any help appreciated; I don't know where to look for hints, there are no log
files or errors generated.



Gregory Guthrie
[EMAIL PROTECTED] (641)472-1125Fax: -1103
 







Re: jsp and tomcat 4

2001-07-17 Thread D. Jay Newman

 I have a question:
 if I modify a JSP under tomcat4 i don't see any change in browser because
 tomcat4 get the .class of JSP in cache (directory work)
 
 How can I say to recompile the jsp if there are changes in java??

This is strange. I'm using Tomcat 4.0b5 and had problems only once (I had to
manually fix my system's time, and that changed the timestamps so that the
older cached versions had newer timestamps than the JSP file I was editing).

Otherwise I always get automatic recompilation if I only change the
JSP file (if I change a package I call from there I have to go through
hoops, but that's another story).

This was on linux.
-- 
D. Jay Newman   ! For the pleasure and the profit it derives
[EMAIL PROTECTED]  ! I arrange things, like furniture, and
http://www.sprucegrove.com/~jay/   ! daffodils, and ...lives.  -- Hello Dolly



Re: jsp and tomcat 4

2001-07-17 Thread Marco Magistrali

there are way to force recompilation when I modify java in jsp??
I'm working on winnt with tomcat 4.0b5

D. Jay Newman wrote:

  I have a question:
  if I modify a JSP under tomcat4 i don't see any change in browser because
  tomcat4 get the .class of JSP in cache (directory work)
 
  How can I say to recompile the jsp if there are changes in java??

 This is strange. I'm using Tomcat 4.0b5 and had problems only once (I had to
 manually fix my system's time, and that changed the timestamps so that the
 older cached versions had newer timestamps than the JSP file I was editing).

 Otherwise I always get automatic recompilation if I only change the
 JSP file (if I change a package I call from there I have to go through
 hoops, but that's another story).

 This was on linux.
 --
 D. Jay Newman   ! For the pleasure and the profit it derives
 [EMAIL PROTECTED]  ! I arrange things, like furniture, and
 http://www.sprucegrove.com/~jay/   ! daffodils, and ...lives.  -- Hello Dolly




Re: jsp and tomcat 4

2001-07-17 Thread D. Jay Newman

Sort of. When I change a system package (one I put into
   /usr/local/java/jre/lib/ext/), then I have to stop and restart tomcat.

 there are way to force recompilation when I modify java in jsp??
 I'm working on winnt with tomcat 4.0b5
 
 D. Jay Newman wrote:
 
   I have a question:
   if I modify a JSP under tomcat4 i don't see any change in browser because
   tomcat4 get the .class of JSP in cache (directory work)
  
   How can I say to recompile the jsp if there are changes in java??
 
  This is strange. I'm using Tomcat 4.0b5 and had problems only once (I had to
  manually fix my system's time, and that changed the timestamps so that the
  older cached versions had newer timestamps than the JSP file I was editing).
 
  Otherwise I always get automatic recompilation if I only change the
  JSP file (if I change a package I call from there I have to go through
  hoops, but that's another story).
 
  This was on linux.
  --
  D. Jay Newman   ! For the pleasure and the profit it derives
  [EMAIL PROTECTED]  ! I arrange things, like furniture, and
  http://www.sprucegrove.com/~jay/   ! daffodils, and ...lives.  -- Hello Dolly
 


-- 
D. Jay Newman   ! For the pleasure and the profit it derives
[EMAIL PROTECTED]  ! I arrange things, like furniture, and
http://www.sprucegrove.com/~jay/   ! daffodils, and ...lives.  -- Hello Dolly



Re: jsp and tomcat 4

2001-07-17 Thread Marco Magistrali

ok, you restart tomcat. But with tomcat 3.1 the jsp was recompiled every time i
modified java without restart tomcat, it's right??
I wouldn't to restart tomcat. Is it impossible??
tnx

D. Jay Newman wrote:

 Sort of. When I change a system package (one I put into
/usr/local/java/jre/lib/ext/), then I have to stop and restart tomcat.

  there are way to force recompilation when I modify java in jsp??
  I'm working on winnt with tomcat 4.0b5
 
  D. Jay Newman wrote:
 
I have a question:
if I modify a JSP under tomcat4 i don't see any change in browser because
tomcat4 get the .class of JSP in cache (directory work)
   
How can I say to recompile the jsp if there are changes in java??
  
   This is strange. I'm using Tomcat 4.0b5 and had problems only once (I had to
   manually fix my system's time, and that changed the timestamps so that the
   older cached versions had newer timestamps than the JSP file I was editing).
  
   Otherwise I always get automatic recompilation if I only change the
   JSP file (if I change a package I call from there I have to go through
   hoops, but that's another story).
  
   This was on linux.
   --
   D. Jay Newman   ! For the pleasure and the profit it derives
   [EMAIL PROTECTED]  ! I arrange things, like furniture, and
   http://www.sprucegrove.com/~jay/   ! daffodils, and ...lives.  -- Hello Dolly
 

 --
 D. Jay Newman   ! For the pleasure and the profit it derives
 [EMAIL PROTECTED]  ! I arrange things, like furniture, and
 http://www.sprucegrove.com/~jay/   ! daffodils, and ...lives.  -- Hello Dolly




project tomcat 4

2001-07-17 Thread Reynir Hübner

Does anyone know when the new tomcat 4 will be finished and when a final
release is scheduled ?

thanx
-r






securityManager problem - Please Help

2001-07-17 Thread Brian McSweeney


Hi everyone,
I'm at my wit's end with trying to start Tomcat with a security Manager
on Solaris. I've uncommented out the appropriate line in
/conf/server.xml. When trying to run Tomcat with a security manager by
startup.sh - security I get the following exception. Any ideas how to
fix this?
thanks, Brian

Exception in thread main java.lang.ExceptionInInitializerError:
java.se
curity.AccessControlException: access denied
(java.util.PropertyPermission jaxp.
debug read)
at
java.security.AccessControlContext.checkPermission(AccessControlConte
xt.java:272)
at
java.security.AccessController.checkPermission(AccessController.java:
399)
at
java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
at
java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:12
78)
at java.lang.System.getProperty(System.java:560)
at
javax.xml.parsers.SAXParserFactory.clinit(SAXParserFactory.java:270
)
at
org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:210)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:187)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)




Re: securityManager problem - Please Help

2001-07-17 Thread Brian McSweeney

By the way, its Tomcat 3.2.2!

Brian McSweeney wrote:

 Hi everyone,
 I'm at my wit's end with trying to start Tomcat with a security Manager
 on Solaris. I've uncommented out the appropriate line in
 /conf/server.xml. When trying to run Tomcat with a security manager by
 startup.sh - security I get the following exception. Any ideas how to
 fix this?
 thanks, Brian

 Exception in thread main java.lang.ExceptionInInitializerError:
 java.se
 curity.AccessControlException: access denied
 (java.util.PropertyPermission jaxp.
 debug read)
 at
 java.security.AccessControlContext.checkPermission(AccessControlConte
 xt.java:272)
 at
 java.security.AccessController.checkPermission(AccessController.java:
 399)
 at
 java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
 at
 java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:12
 78)
 at java.lang.System.getProperty(System.java:560)
 at
 javax.xml.parsers.SAXParserFactory.clinit(SAXParserFactory.java:270
 )
 at
 org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:210)
 at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:187)
 at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)




Re: Can use ASP pages in Tomcat

2001-07-17 Thread Kaneda K



Hi Friends,



Be patient, I am from Microsoft platform and do not know anything about 
tomcat and I have few question please help me to get their answer. I will 
be great full to all of you.

The questions are as follows:

  ?xml:namespace prefix = o ns = 
 urn:schemas-microsoft-com:office:office /
* Is it possible to use ASP pages in the Tomcat.
* If the answer for the first question is yes then how I am able to 
 use component developed in C++ or V.B to run in the tomcat.
* In ISS we have MTS to run component and what we have in Tomcat.
To my knowledge, in JSP you can access ActiveX has beans, in fact there is 
a java way to communicate with ActiveX. I read article about that but I 
never did it or hear some done it.


Thanks



Gill


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




RE: JDK 1.3.0...

2001-07-17 Thread Everitt, Andrew

All olg JDKs are available on the Sun site, you just have to know where to
look, try going to:
http://java.sun.com/j2se/1.3.0/

Cheers,
Andi

Andrew Everitt
Xerox Mobile Solutions, Cambridge. UK 

 -Original Message-
 From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]]
 Sent: 17 July 2001 14:05
 To: [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Subject: Re: JDK 1.3.0...
 
 
 I have 1.3.0_02 for linux if you want - or anyone else for 
 that matter.
 
 [dim@dim dim]$ java -version
 java version 1.3.0_02
 Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0_02)
 Java HotSpot(TM) Client VM (build 1.3.0_02, mixed mode)
 [dim@dim dim]$ 
 
 cheesr
 dim
 
 On Tue, 17 Jul 2001, Adam Fowler wrote:
 
  Hey all,
  
  Sorry about sending this from a non-subscribed account - 
 I'm at work 8o)
  
  I know a few people were looking for Java 2 SDK version 1.3 
 as opposed to
  1.3.1. A friend of mine, Paul, has the Windows install at
  http://users.aber.ac.uk/pms/jdk/index.html if anyone wants 
 it. I'm still
  looking for the linux version to put up.
  
  Hope this helps,
  
  Adam.
  
  
  Adam Fowler
  Help Desk Live Project
  Information Services
  University of Wales, Aberystwyth
  E-mail: [EMAIL PROTECTED]
  
  
  
 



RE: JDK 1.3.0...

2001-07-17 Thread Cory Powers

Or go to the archive at http://java.sun.com/products/archive/index.html

-Original Message-
From: Everitt, Andrew [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 17, 2001 10:35 AM
To: '[EMAIL PROTECTED]'
Subject: RE: JDK 1.3.0...


All olg JDKs are available on the Sun site, you just have to know where to
look, try going to:
http://java.sun.com/j2se/1.3.0/

Cheers,
Andi

Andrew Everitt
Xerox Mobile Solutions, Cambridge. UK 

 -Original Message-
 From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]]
 Sent: 17 July 2001 14:05
 To: [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Subject: Re: JDK 1.3.0...
 
 
 I have 1.3.0_02 for linux if you want - or anyone else for 
 that matter.
 
 [dim@dim dim]$ java -version
 java version 1.3.0_02
 Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0_02)
 Java HotSpot(TM) Client VM (build 1.3.0_02, mixed mode)
 [dim@dim dim]$ 
 
 cheesr
 dim
 
 On Tue, 17 Jul 2001, Adam Fowler wrote:
 
  Hey all,
  
  Sorry about sending this from a non-subscribed account - 
 I'm at work 8o)
  
  I know a few people were looking for Java 2 SDK version 1.3 
 as opposed to
  1.3.1. A friend of mine, Paul, has the Windows install at
  http://users.aber.ac.uk/pms/jdk/index.html if anyone wants 
 it. I'm still
  looking for the linux version to put up.
  
  Hope this helps,
  
  Adam.
  
  
  Adam Fowler
  Help Desk Live Project
  Information Services
  University of Wales, Aberystwyth
  E-mail: [EMAIL PROTECTED]
  
  
  
 



RE: user admin

2001-07-17 Thread Cristian Bortolato

I've already insert a simile line, but I can't entry

-Original Message-
From: Artigas, Ricardo Y. [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 17, 2001 12:06 PM
To: [EMAIL PROTECTED]
Subject: RE: user admin


add this line:
user name=yourusername password=yourpassword roles=admin /


:^)
Ricky Y. Artigas
Analyst/Programmer /
Database Administrator
Information Technology Division
Easycall Communications Phils., Inc.
- Easycall Internet -
418 Arayat St., Mandaluyong City 1550, Philippines
Company Website: http://www.easycall.com.ph
Tel.no: (+632) 5338001 ext.6574
Mobile:(+63) 0917-8951783
Pager:  141-002955
Email: [EMAIL PROTECTED]


 ---
 IMPORTANT NOTICE: 
  
 This message (and any attachment hereto) may contain privileged and/or
 confidential information specific to EasyCall. If you are not the intended
 addressee indicated in this message, you may not copy or disseminate this
 message (or any attachment hereto) to anyone. Instead, please destroy this
 message (and any attachment hereto), and kindly notify the sender by reply
 email. Any information in this message (and any attachment thereto) that
 do not relate to the official business of EasyCall shall be understood as
 neither given nor endorsed by the company.
 
 
 -Original Message-
 From: Cristian Bortolato [SMTP:[EMAIL PROTECTED]]
 Sent: Tuesday, July 17, 2001 4:23 PM
 To:   '[EMAIL PROTECTED]'
 Subject:  RE: user admin
 
 I'm using tomcat 3.2.2, there're tomcat-user.xml defined :
 
 tomcat-users
   user name=tomcat password=tomcat roles=tomcat /
   user name=role1  password=tomcat roles=role1  /
   user name=both   password=tomcat roles=tomcat,role1 /
 /tomcat-users
 
 I've used user tomcat with pass tomcat and all combinations with role1 and
 both, but it doesn't open the page.
 
 
 
 -Original Message-
 From: Sladky, Jan [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, July 17, 2001 10:02 AM
 To: '[EMAIL PROTECTED]'
 Subject: AW: user admin
 
 
 For tomcat 3.3-m4 change the file conf/admin-users.xml
  
 hth
 Jan
 
 -Ursprüngliche Nachricht-
 Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Gesendet am: Dienstag, 17. Juli 2001 09:48
 An: [EMAIL PROTECTED]
 Betreff: user admin
 
 Which is the password and the user default for Tomcat admin?
  
 How can I Find it and replace?



RE: problems serving HTTP requests

2001-07-17 Thread William Kaufman

From the HTTP spec at http://www.cis.ohio-state.edu/cgi-bin/rfc/rfc2068.html
:

] 10.2.7 206 Partial Content
] The server has fulfilled the partial GET request for the resource.

That means you called HttpServletResponse.setContentLength() with a number
bigger than the actual amount of data you're returning.  If you stop calling
that, everything should be fine.  (Calling setContentLength() is a good
idea, but only if you actually know the length, which you rarely do without
bufferring all the data yourself.)

] 10.3.5 304 Not Modified
] If the client has performed a conditional GET request and
] access is allowed, but the document has not been modified,
] the server SHOULD respond with this status code.

That means that Tomcat's copy of your servlet's output is newer than the
date returned by getLastModified().  If your implementation of
getLastModified() is returning the right timestamp, then everything's OK.

-- Bill K. 

-Original Message-
From: David Treves [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 17, 2001 1:40 AM
To: tomcat-user
Subject: problems serving HTTP requests


Hi, I searched the archives yet didn't find anything can help me... I
installed the Tomcat 3.2.2 in an out-of-process mode with IIS 5, for some
time it worked just fine. Today Tomcat decided it is on a strike... I cannot
get any servlet/jsp file served by it. Instead I get the option to download
the file I request and the files are filled with gibberish.

The Tomcat's DOS window doesn't print any error and I see in the IIS log
that the request went fine (08:15:19 192.114.206.189 GET
/jakarta/isapi_redirect.dll 200) a few times (even though I saw no results)
and some times I got 206 HTTP message or 304.

What could make the sudden change?


Thanks in advance!
David.



RE: user admin

2001-07-17 Thread Cristian Bortolato



-Original Message-
From: Cristian Bortolato [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 17, 2001 4:37 PM
To: '[EMAIL PROTECTED]'
Subject: RE: user admin


I've already insert a simile line, but I can't entry

-Original Message-
From: Artigas, Ricardo Y. [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 17, 2001 12:06 PM
To: [EMAIL PROTECTED]
Subject: RE: user admin


add this line:
user name=yourusername password=yourpassword roles=admin /


:^)
Ricky Y. Artigas
Analyst/Programmer /
Database Administrator
Information Technology Division
Easycall Communications Phils., Inc.
- Easycall Internet -
418 Arayat St., Mandaluyong City 1550, Philippines
Company Website: http://www.easycall.com.ph
Tel.no: (+632) 5338001 ext.6574
Mobile:(+63) 0917-8951783
Pager:  141-002955
Email: [EMAIL PROTECTED]


 ---
 IMPORTANT NOTICE: 
  
 This message (and any attachment hereto) may contain privileged and/or
 confidential information specific to EasyCall. If you are not the intended
 addressee indicated in this message, you may not copy or disseminate this
 message (or any attachment hereto) to anyone. Instead, please destroy this
 message (and any attachment hereto), and kindly notify the sender by reply
 email. Any information in this message (and any attachment thereto) that
 do not relate to the official business of EasyCall shall be understood as
 neither given nor endorsed by the company.
 
 
 -Original Message-
 From: Cristian Bortolato [SMTP:[EMAIL PROTECTED]]
 Sent: Tuesday, July 17, 2001 4:23 PM
 To:   '[EMAIL PROTECTED]'
 Subject:  RE: user admin
 
 I'm using tomcat 3.2.2, there're tomcat-user.xml defined :
 
 tomcat-users
   user name=tomcat password=tomcat roles=tomcat /
   user name=role1  password=tomcat roles=role1  /
   user name=both   password=tomcat roles=tomcat,role1 /
 /tomcat-users
 
 I've used user tomcat with pass tomcat and all combinations with role1 and
 both, but it doesn't open the page.
 
 
 
 -Original Message-
 From: Sladky, Jan [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, July 17, 2001 10:02 AM
 To: '[EMAIL PROTECTED]'
 Subject: AW: user admin
 
 
 For tomcat 3.3-m4 change the file conf/admin-users.xml
  
 hth
 Jan
 
 -Ursprüngliche Nachricht-
 Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Gesendet am: Dienstag, 17. Juli 2001 09:48
 An: [EMAIL PROTECTED]
 Betreff: user admin
 
 Which is the password and the user default for Tomcat admin?
  
 How can I Find it and replace?



Re: problems serving HTTP requests

2001-07-17 Thread David Treves

Thanks for your reply.

The problem is that the ISAPI doesn't seem to pass the request to Tomcat. I
know that is the request is for a non existing page there is an error that
the Tomcat logs, right? Well, even if I request for a page within the
application that does not exist there is no log about it in the Tomcat logs.

IIS logs the action to be successful but Tomcat is not activated at all...

What could cause that kind of behavior?

David.

- Original Message -
From: William Kaufman [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, July 17, 2001 4:41 PM
Subject: RE: problems serving HTTP requests


 From the HTTP spec at
http://www.cis.ohio-state.edu/cgi-bin/rfc/rfc2068.html
 :

 ] 10.2.7 206 Partial Content
 ] The server has fulfilled the partial GET request for the resource.

 That means you called HttpServletResponse.setContentLength() with a number
 bigger than the actual amount of data you're returning.  If you stop
calling
 that, everything should be fine.  (Calling setContentLength() is a good
 idea, but only if you actually know the length, which you rarely do
without
 bufferring all the data yourself.)

 ] 10.3.5 304 Not Modified
 ] If the client has performed a conditional GET request and
 ] access is allowed, but the document has not been modified,
 ] the server SHOULD respond with this status code.

 That means that Tomcat's copy of your servlet's output is newer than the
 date returned by getLastModified().  If your implementation of
 getLastModified() is returning the right timestamp, then everything's OK.

 -- Bill K.

 -Original Message-
 From: David Treves [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, July 17, 2001 1:40 AM
 To: tomcat-user
 Subject: problems serving HTTP requests


 Hi, I searched the archives yet didn't find anything can help me... I
 installed the Tomcat 3.2.2 in an out-of-process mode with IIS 5, for some

 time it worked just fine. Today Tomcat decided it is on a strike... I
cannot
 get any servlet/jsp file served by it. Instead I get the option to
download
 the file I request and the files are filled with gibberish.

 The Tomcat's DOS window doesn't print any error and I see in the IIS log
 that the request went fine (08:15:19 192.114.206.189 GET
 /jakarta/isapi_redirect.dll 200) a few times (even though I saw no
results)
 and some times I got 206 HTTP message or 304.

 What could make the sudden change?


 Thanks in advance!
 David.




Re: JDK 1.3.0...

2001-07-17 Thread Adam Fowler

That'd be great 8o)

Adam.

On Tuesday 17 July 2001 13:05, you wrote:
 I have 1.3.0_02 for linux if you want - or anyone else for that matter.

 [dim@dim dim]$ java -version
 java version 1.3.0_02
 Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0_02)
 Java HotSpot(TM) Client VM (build 1.3.0_02, mixed mode)
 [dim@dim dim]$

 cheesr
 dim

 On Tue, 17 Jul 2001, Adam Fowler wrote:
  Hey all,
 
  Sorry about sending this from a non-subscribed account - I'm at work 8o)
 
  I know a few people were looking for Java 2 SDK version 1.3 as opposed to
  1.3.1. A friend of mine, Paul, has the Windows install at
  http://users.aber.ac.uk/pms/jdk/index.html if anyone wants it. I'm still
  looking for the linux version to put up.
 
  Hope this helps,
 
  Adam.
 
  
  Adam Fowler
  Help Desk Live Project
  Information Services
  University of Wales, Aberystwyth
  E-mail: [EMAIL PROTECTED]
  



Re: JDK 1.3.0...

2001-07-17 Thread Adam Fowler

Excellent, thanks guys I'll put that info on my site 8o)

Adam.

On Tuesday 17 July 2001 14:37, you wrote:
 Or go to the archive at http://java.sun.com/products/archive/index.html

 -Original Message-
 From: Everitt, Andrew [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, July 17, 2001 10:35 AM
 To: '[EMAIL PROTECTED]'
 Subject: RE: JDK 1.3.0...


 All olg JDKs are available on the Sun site, you just have to know where to
 look, try going to:
 http://java.sun.com/j2se/1.3.0/

 Cheers,
 Andi
 
 Andrew Everitt
 Xerox Mobile Solutions, Cambridge. UK

  -Original Message-
  From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]]
  Sent: 17 July 2001 14:05
  To: [EMAIL PROTECTED]
  Cc: [EMAIL PROTECTED]
  Subject: Re: JDK 1.3.0...
 
 
  I have 1.3.0_02 for linux if you want - or anyone else for
  that matter.
 
  [dim@dim dim]$ java -version
  java version 1.3.0_02
  Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0_02)
  Java HotSpot(TM) Client VM (build 1.3.0_02, mixed mode)
  [dim@dim dim]$
 
  cheesr
  dim
 
  On Tue, 17 Jul 2001, Adam Fowler wrote:
   Hey all,
  
   Sorry about sending this from a non-subscribed account -
 
  I'm at work 8o)
 
   I know a few people were looking for Java 2 SDK version 1.3
 
  as opposed to
 
   1.3.1. A friend of mine, Paul, has the Windows install at
   http://users.aber.ac.uk/pms/jdk/index.html if anyone wants
 
  it. I'm still
 
   looking for the linux version to put up.
  
   Hope this helps,
  
   Adam.
  
   
   Adam Fowler
   Help Desk Live Project
   Information Services
   University of Wales, Aberystwyth
   E-mail: [EMAIL PROTECTED]
   



Please tell me if this is possible

2001-07-17 Thread Brian McSweeney

Hi folks,
I tried to run a security Manager on Tomcat3.2.2 on unix - failed and
posted the mail below. I got no responses. I then turned to Windows 98. I
have got the same exception (see below). Please can anyone tell me if they
have successfully run a security Manager on Tomcat3.2.2. I followed all the
documentation to no avail. Thanks,
Brian

Brian McSweeney wrote:

 Hi everyone,
 I'm at my wit's end with trying to start Tomcat with a security Manager
 on Solaris. I've uncommented out the appropriate line in
 /conf/server.xml. When trying to run Tomcat with a security manager by
 startup.sh - security I get the following exception. Any ideas how to
 fix this?
 thanks, Brian

 Exception in thread main java.lang.ExceptionInInitializerError:
 java.security.AccessControlException: access denied

 (java.util.PropertyPermission jaxp.
 debug read)
 at
 java.security.AccessControlContext.checkPermission(AccessControlConte
 xt.java:272)
 at
 java.security.AccessController.checkPermission(AccessController.java:
 399)
 at
 java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
 at
 java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:12
 78)
 at java.lang.System.getProperty(System.java:560)
 at
 javax.xml.parsers.SAXParserFactory.clinit(SAXParserFactory.java:270
 )
 at
 org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:210)
 at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:187)
 at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)




unable to process 200 response from Tomcat using isapi_redirect.dll

2001-07-17 Thread Bruyn, Bill

Hello All,

I am trying to configure Tomcat to handle servlet/JSP requests from an
instance of IIS hosted on another machine.  In short, it appears to be
working until it's time to process the AJP12 response body, then the thing
goes to lunch.

First, the installation details.  I should tell you that the hardware and OS
information will change eventually, as this is a practice run for an IIS
installation.  For now, Personal Web Server sits on an old laptop (which
obtains its IP address via DHCP) running NT Workstation 4.0 SP5.  The real
configuration is going to be IIS on NT Server SP6.

The version of Tomcat that I have is actually the Embedded Tomcat 3.2.2,
distributed with JBoss 2.2.2.  I'm told that full Tomcat configuration is
supported, and so far that appears to be the case.  For now, JBoss/Tomcat
runs on a Redhat Linux 7 box with a static IP address and Sun's JDK 1.3.
HTTP requests made directly to this box on port 8080 yield the expected
results.  The app server will eventually run on Solaris 8.

The isapi_redirect.dll is loaded at c:\jakarta-tomcat\bin.  I also have a
conf directory (containing workers.properties and uriworkermap.properties)
and a logs directory (containing the isapi_redirect log file) there.

I made the following registry entries at HKEY_LOCAL_MACHINE\SOFTWARE\Apache
Software Foundation\Jakarta Isapi Redirector\1.0

extension_uri   =   /jakarta/isapi_redirect.dll

log_file=
c:\jakarta-tomcat\logs\isapi.log
log_level   =   debug
worker_file =
c:\jakarta-tomcat\conf\workers.properties
worker_mount_file   =
c:\jakarta-tomcat\conf\uriworkermap.properties  

per G Shacor's Tomcat IIS HowTo document.  I was then able to create the
virtual directory, assign it execute permission, and create my ISAPI filter.
I did have to modify the configuration files, of course, but they look okay
to me.  I'll attach them for your review if you think it's worthwhile.  All
I did was remove the default workers for clarity's sake, add a new worker
named csg1 of type AJP12, and map it to my Linux box at port 8007 (where it
listens for AJP12 requests).  

Anyway, when the PWS service starts, I have the green arrow of victory, the
log is created, the worker is verified, and all is well.  I guess I should
mention that stopping the service is a lot like pulling teeth - It stops,
but an error is returned stating that it could not be stopped, and
subsequent attempts to start it also yield errors.  In short, I'm forced to
reboot every time I want to stop the ridiculous web server.  I'm looking for
another place to run IIS to rule out web server issues, but for now, this is
what I'm forced to deal with.

Requests made to both /examples and /servlet contexts are proxied correctly.
i.e., the ISAPI filter hands the request off to Tomcat as it should.  I have
no problems with the 404 errors so prevalent on the lists.  In fact, the
only time the thing seems to work as expected is when I ask for a resource
that doesn't exist.  By that, I mean you can see the filter hand the request
to Tomcat, Tomcat return the response, and the 404 error gets returned to
the client as it should.  My problem comes when I request resources that
return a 200 code.

I'm including the entire contents of the log, but it looks to me like Tomcat
returns the response and the filter reads the header, then dies trying to
process the body.  Could it be as simple as a bad copy of the DLL?  Either
that, or Embedded Tomcat is different enough that the DLL can't deal with
the AJP12 response?  I spent most of the day yesterday troubleshooting, and
I don't know what else to think at this point...

I'm a little new to this, so please be kind.  :o]

Bill Bruyn
Programmer / Analyst
Application Services, Avnet ISD

Following are the entire contents of the log:

[jk_uri_worker_map.c (156)]: Into jk_uri_worker_map_t::uri_worker_map_alloc
[jk_uri_worker_map.c (196)]: Into jk_uri_worker_map_t::uri_worker_map_open
[jk_uri_worker_map.c (211)]: jk_uri_worker_map_t::uri_worker_map_open, rule
map size is 2
[jk_uri_worker_map.c (267)]: Into jk_uri_worker_map_t::uri_worker_map_open,
match rule /servlet/=csg1 was added
[jk_uri_worker_map.c (267)]: Into jk_uri_worker_map_t::uri_worker_map_open,
match rule /examples/=csg1 was added
[jk_uri_worker_map.c (296)]: Into jk_uri_worker_map_t::uri_worker_map_open,
there are 2 rules
[jk_uri_worker_map.c (317)]: jk_uri_worker_map_t::uri_worker_map_open, done
[jk_worker.c (82)]: Into wc_open
[jk_worker.c (207)]: Into build_worker_map, creating 1 workers
[jk_worker.c (213)]: build_worker_map, creating worker csg1
[jk_worker.c (138)]: Into wc_create_worker
[jk_worker.c (152)]: wc_create_worker, about to create instance csg1 of
ajp12
[jk_ajp12_worker.c (264)]: Into ajp12_worker_factory
[jk_worker.c (161)]: wc_create_worker, about to validate and init csg1
[jk_ajp12_worker.c (182)]: Into 

Xalan 2.1.0 Tomcat 3.2.2 conflict

2001-07-17 Thread Daniel Einspanjer

I just put the Xalan 2.1.0 package on our testing webserver running Tomcat 3.2.2, and 
ran into some problems.

Specifically, jaxp.jar and possibly parser.jar in the tomcat/lib conflict with Xalan.
When trying to use the javax.xml.parsers.DocumentBuilder.parse() method, the parse 
will throw a SAXException if you pass in a URI instead of a file and the file to be 
parsed has relative external entities.
When trying to use the org.apache.xpath.XPathAPI.selectNodeIterator() method, bad 
things happened in the org.apache.xpath.axes.AxesWalker. One problem was that the 
getNextNode() method was not found, and unfortunately, I've forgotton what the other 
error was. :/

Anyway, I resolved my problems by removing jaxp.jar and parser.jar from the tomcat/lib 
directory and depending on tomcat finding the xalan.jar and xerces.jar in my classpath.

HTH someone.
-- Daniel Einspanjer, [EMAIL PROTECTED] on 7/17/2001




Xalan 2.1.0 Tomcat 3.2.2 conflict

2001-07-17 Thread Daniel Einspanjer

I just put the Xalan 2.1.0 package on our testing webserver running Tomcat 3.2.2, and 
ran into some problems.

Specifically, jaxp.jar and possibly parser.jar in the tomcat/lib conflict with Xalan.
When trying to use the javax.xml.parsers.DocumentBuilder.parse() method, the parse 
will throw a SAXException if you pass in a URI instead of a file and the file to be 
parsed has relative external entities.
When trying to use the org.apache.xpath.XPathAPI.selectNodeIterator() method, bad 
things happened in the org.apache.xpath.axes.AxesWalker. One problem was that the 
getNextNode() method was not found, and unfortunately, I've forgotton what the other 
error was. :/

Anyway, I resolved my problems by removing jaxp.jar and parser.jar from the tomcat/lib 
directory and depending on tomcat finding the xalan.jar and xerces.jar in my classpath.

HTH someone.
-- Daniel Einspanjer, [EMAIL PROTECTED] on 7/17/2001




Re: regarding tomcat run in background on win nt

2001-07-17 Thread Alex Chaffee

Dhaval Patel wrote:

respected sir,

my self is dhaval working in java from last 2 years now 
i want to know that what should i to run the tomcat server in background
processes even if I log off my NT session
is this possible and if yes then please give me some clue about it bcoz
right now I am in great hurry in my project

reply asap

thanking with anticipation

regards

- dhaval 

Read the FAQ: http://www.jguru.com/faq/view.jsp?EID=13457

Also the Tomcat documentation is very helpful. Read the docs, they are 
your friend.





Re: jsp and tomcat 4

2001-07-17 Thread Oskar Zinger

You need to make changes to a jsp file, not java file.  Tomcat will detect
changes automatically and will translate jsps into java files and then compile
them.
---
Oskar

Marco Magistrali wrote:

 Hi,

 I have a question:
 if I modify a JSP under tomcat4 i don't see any change in browser because
 tomcat4 get the .class of JSP in cache (directory work)

 How can I say to recompile the jsp if there are changes in java??

 tanks
 Marco




RE: jsp and tomcat 4

2001-07-17 Thread David White

I've been having the same problem.  When I modify a JSP, it isn't recompiled
automatically.  However, if I delete the .class file associated with the
JSP, both the .java and the .class files associated with the JSP are
rebuilt.  So I've been deleting the .class files whenever I make JSP
changes.

I recall someone on this list mentioning that Tomcat 4b5 had a known bug
regarding detection of changes in source files, so I've assumed that was the
problem I've been seeing.

I'm using standalone Tomcat 4b5 in a Win2000 environment.

If anyone knows of a configuration change or a work-around that could get my
JSPs to compile properly when changed, please let me know!

Thanks
David

 -Original Message-
 From: Oskar Zinger [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, July 17, 2001 10:41 AM
 To: [EMAIL PROTECTED]
 Subject: Re: jsp and tomcat 4


 You need to make changes to a jsp file, not java file.  Tomcat will detect
 changes automatically and will translate jsps into java files and
 then compile
 them.
 ---
 Oskar

 Marco Magistrali wrote:

  Hi,
 
  I have a question:
  if I modify a JSP under tomcat4 i don't see any change in
 browser because
  tomcat4 get the .class of JSP in cache (directory work)
 
  How can I say to recompile the jsp if there are changes in java??
 
  tanks
  Marco





Tomcat

2001-07-17 Thread manhong wu



To people who can help,

 I recently download jakarta-tomcat-3.2.2 and install it to window NT and
 combine with JBuilder(IDE) successfully. But I have to use
 ...(mydir)/servlet/...(pagename) to load my project, is there anyway I can
 get rid of servlet and have my own URL instead ? Where is the file I need
to
 modify ?

 Thanks in advance,

 Manhong Wu





suppress=true not working -- tomcat 3.2.1, apache

2001-07-17 Thread Scott McCool


I'm trying to turn off directory listings, and searching archives found
that the solution is to set suppress=true in the StaticInterceptor
block.  I did this, and still see directory listings.  I've also tried on
a fresh install and have restarted servers/refreshed browser, etc.

The relevent block of my serer.xml is:

 RequestInterceptor
className=org.apache.tomcat.request.StaticInterceptor
debug=0 suppress=true/

which seems like it should work, but I definitely still see directory
listings.  I can manually edit mod_jk.conf-auto and remove the Indexes
line from Options and temporarily disable listings, but they reappear on
restart.

Any ideas?  I searched the archives and usenet archives and couldn't find
anything indicating that this solution didn't work




*--*
Scott McCool
*--*





Tomcat Newbie has problem with Apache connector and JSP: document contains no data

2001-07-17 Thread Mark Dzmura

Gentle Folks:

After spending a ridiculously long time in a frustrating and humiliating
attempt to get the following configuration working on a Redhat 7.1 Linux box:

- Apache 1.3.19 DSO
- mod_webapps
- Jakarta-Tomcat 4.0b5

I have finally gotten Tomcat to serve static content with the Default
servlet (Of course, I could do that with Apache by itself)
but JSP's are not working right!

My problem is with JSP pages served through the Apache
connector.  Everything works fine through port 8080 when
served by Catalina; I can't get it to work through Apache and
port 80.

Here's what happens:

An attempt to request a .jsp page causes the request to be
mapped to the JSP servlet, and the right .jsp file is compiled.
(I can find the class files in the work directory under the
virtual host I'm trying to access the pages from) - but no
content is returned by the web server!  Apache gives the
dialog:

Document contained no data

I have turned up debugging levels and can't find a single
problem or issue in a log file which would hint at the nature
of the problem.

A search of the tomcat-users archive and the JGuru stuff
has been no help.

Has anyone seen this problem or have any ideas on how to
lick it??

By the way, the JSP's in question are:

- the Tomcat examples, which work fine from port 8080, and
- an app we wrote which runs fine under JServ/GnuJSP

Regards,
Mark

--
Mark Dzmura
Digital Mission LLC






RE: suppress=true not working -- tomcat 3.2.1, apache

2001-07-17 Thread Isaac Arias

Scott,

You shouldn't use the mod_jk.conf-auto file directly since it gets
rewritten on every server restart. Whenever you get your config stable
enough, move it to another file (i.e. mod_jk.conf) and use that
instead.

Also, a quick fix is to just put an empty file named index.jsp in the
directory. It will be loaded instead of showing the listing.

Good luck,

Ike
__

 Isaac Arias
 Tokenzone w www.tokenzone.com /w
__
   Man will occasionally stumble over the truth, but most
 of the time he will pick himself up and continue.
  - Winston Churchill

 -Original Message-
 From: Scott McCool [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, July 17, 2001 3:18 PM
 To: [EMAIL PROTECTED]
 Subject: suppress=true not working -- tomcat 3.2.1, apache



 I'm trying to turn off directory listings, and searching
 archives found
 that the solution is to set suppress=true in the StaticInterceptor
 block.  I did this, and still see directory listings.  I've
 also tried on
 a fresh install and have restarted servers/refreshed browser, etc.

 The relevent block of my serer.xml is:

  RequestInterceptor
 className=org.apache.tomcat.request.StaticInterceptor
 debug=0 suppress=true/

 which seems like it should work, but I definitely still see
 directory
 listings.  I can manually edit mod_jk.conf-auto and remove
 the Indexes
 line from Options and temporarily disable listings, but
 they reappear on
 restart.

 Any ideas?  I searched the archives and usenet archives and
 couldn't find
 anything indicating that this solution didn't work




 *--*
 Scott McCool
 *--*






Servlet running on port 80

2001-07-17 Thread Felix Guerrero

Hi,

I have setup a web application. The Jsp files are properly found ( both in 
8080 and 80). However, the servlets can only be found when using the 8080 
port. What changes do I have to make to activate the servlets through the 80 
port?. I checked the configuration of the examples application that 
contains servlets, however, it seems that it does not follow the standard 
configuration for web applications. I can't find the eclaration of the 
servlets on the web.xml file, but they still work.

Please, help!

Felix.

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




Re: jsp and tomcat 4

2001-07-17 Thread Bill Pfeiffer

This is a known bug with Tomcat 4.0b5 release and WinNT/2000.  Get a recent
nightly build and the problem should go away.

HTH,

Bill Pfeiffer
- Original Message -
From: D. Jay Newman [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, July 17, 2001 9:21 AM
Subject: Re: jsp and tomcat 4


  I have a question:
  if I modify a JSP under tomcat4 i don't see any change in browser
because
  tomcat4 get the .class of JSP in cache (directory work)
 
  How can I say to recompile the jsp if there are changes in java??

 This is strange. I'm using Tomcat 4.0b5 and had problems only once (I had
to
 manually fix my system's time, and that changed the timestamps so that the
 older cached versions had newer timestamps than the JSP file I was
editing).

 Otherwise I always get automatic recompilation if I only change the
 JSP file (if I change a package I call from there I have to go through
 hoops, but that's another story).

 This was on linux.
 --
 D. Jay Newman   ! For the pleasure and the profit it
derives
 [EMAIL PROTECTED]  ! I arrange things, like furniture, and
 http://www.sprucegrove.com/~jay/   ! daffodils, and ...lives.  -- Hello
Dolly




Server.xml and mod_jk.conf-auto

2001-07-17 Thread Gary Dale

Can I ask something really, really basic here? When I add a virtual host 
to Server.xml, should it show up in the conf-auto file?

Of course, I wouldn't be asking if it was, but I am getting a new 
conf-auto generated each time I stop and restart Tomcat. The only 
contexts I see however are the ones automatically generated in the 
webapps folder. The one's I specify are nowhere to be seen.

I've added ajp13 to Server.xml as well (basically just took the ajp12 
connector, copied it and made it refer to ajp13  port 8009), but I 
don't see that in the .conf-auto file. All the references in .conf-auto 
are to ajp12.

Any ideas on what I'm doing wrong?





RE: jsp and tomcat 4

2001-07-17 Thread Craig R. McClanahan



On Tue, 17 Jul 2001, David White wrote:

 [snip]
 I recall someone on this list mentioning that Tomcat 4b5 had a known bug
 regarding detection of changes in source files, so I've assumed that was the
 problem I've been seeing.
 

That is indeed the case.  It's fixed in nightly build 20010717 (which also
incorporates the security vulnerability fix), and will be fixed in the
Tomcat 4.0-beta-6 release that will be forthcoming later this week.

Craig





The 4.0b5 doesn't recognize a servlet class

2001-07-17 Thread Vernon Wu



Hi, Wells,


Thanks for your response. 



It took me awhile trying to figure how the CLASSPATH relates with the problem. I build up the JSP application using Tomcat 3.x with the standard procedure. Nothing inside the project is set up in the CLASSPATH. I don't know what you means by "all j2ee platform classes". Are the classes used j2ee APIs?

Thx.

Vernon




Original Message Follows 

From: Wells Tiedeman <[EMAIL PROTECTED]>

Reply-To: [EMAIL PROTECTED] 

To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>

Subject: RE: ServletException in 4.0b5 

Date: Tue, 17 Jul 2001 08:46:44 -0400 

MIME-Version: 1.0 

Received: from [64.208.42.41] by hotmail.com (3.2) with ESMTP id MHotMailBD1D7FCF00164004376140D02A290F500; Tue, 17 Jul 2001 05:51:28 -0700 

Received: (qmail 73852 invoked by uid 500); 17 Jul 2001 12:51:21 - 

Received: (qmail 73845 invoked from network); 17 Jul 2001 12:51:21 - 

Received: from salesvision-gw.youcentric.com (HELO yc?exchange.yc?exchange.salesvision.com) (12.19.52.2) by h31.sny.collab.net with SMTP; 17 Jul 2001 12:51:21 - 

Received: by yc_exchange.yc_exchange.salesvision.com with Internet Mail Service (5.5.2653.19)id 3XZSJV86; Tue, 17 Jul 2001 08:46:45 -0400 

From tomcat-user-return-41367-vwu0 Tue, 17 Jul 2001 05:52:26 -0700 

Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm 

Precedence: bulk 

list-help: 

list-unsubscribe: 

list-post: 

Delivered-To: mailing list [EMAIL PROTECTED] 

Message-ID: [EMAIL PROTECTED] 

X-Mailer: Internet Mail Service (5.5.2653.19) 

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



I experienced the same problem. It's due to a class loader issue. Multiple 

class loaders have been introduced in V4.0 to implement the requirements 

found in Section 9.6.2 of the Servlet 2.3 Spec. These class loaders are 

used to load all of the jars and classes rather than using the CLASSPATH. 



I was able to resolve this problem as follows : 



- Add all supporting jars for your web application (except J2EE jars) to 

the /WEB-INF/lib directory rather than including them in the CLASSPATH 

- Add all of the required classes for your web application to the 

/WEB-INF/classes directory rather than including them in the CLASSPATH 

- Add the j2ee.jar from the /j2sdkee1.3/lib directory to the 

TOMCAT_HOME/common/lib directory. All J2EE platform classes must be placed 

in the common/lib or common/classes directories rather than with the web 

application. 



-Wells 



Wells Tiedeman 

YOUcentric, Inc. 

P: 704.401.1109 

F: 704.401.1240 

[EMAIL PROTECTED] 



For more information on YOUcentric, please visit our web site at 

www.youcentric.com 







-Original Message- 

From: Vernon Wu [mailto:[EMAIL PROTECTED]] 

Sent: Monday, July 16, 2001 7:53 PM 

To: [EMAIL PROTECTED] 

Subject: ServletException in 4.0b5 





I move one our small JSP application from 3.x to 4.0b5 for the reason of 

using servlet 2.3 specification: ServletContextListener, HttpSessionListener 

be more specific. 



I get the exception under the 4.0b5 with the following messages: 





Exception Report: 



javax.servlet.ServletException: Class abc.control.ControllerServlet is not a 

Servlet 



 









Root Cause: 



java.lang.ClassCastException: abc.control.ControllerServlet 



... 



There is not any indication that anywhere my code is not approprt. What I 

shall do at this situation? 



I believe that I encounter the similar situation in the 3.x, and it can be 

resolved by recycle the Tomcat server. That method doesn't work for 4.0b5. 



Thanks. 



Vernon 



_ 



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











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


ssi and java heap

2001-07-17 Thread Dwaipayan

i have a few queries:
can SSI be used when i am using tomcat as stand alone container?

i am doing my first project on tomcat starting with creating a project dir and copying 
the directory structure of the examples dir. now when running jsp which have beans 
accessing my local database, i get some memory related problems.this is supposedly due 
to the jsp container,servlet container,tomcat http server and oracle db running on the 
same machine(64mb ram,433mhz).how can i increase the JVM memory area(heap) for my 
webapp?

kindly suggest.
i must say so long ,u people hve been of great help!!

 

ddr


http://www.monsterindia.com - The Best Jobs. For the Best Minds.






RE: The 4.0b5 doesn't recognize a servlet class

2001-07-17 Thread Wells Tiedeman



Any of 
the jars/classes containing the packages java.*, com.sun.*, javax.*, etc. 
If any of these are included in your /WEB-INF/lib directory the class loaders 
get confused.

-Wells

  -Original Message-From: Vernon Wu 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, July 17, 2001 3:49 
  PMTo: [EMAIL PROTECTED]Subject: The 4.0b5 
  doesn't recognize a servlet class
  
  
  
  Hi, Wells,
  
  
  Thanks for your response. 
  
  
  
  It took me awhile trying to figure how the CLASSPATH relates with the 
  problem. I build up the JSP application using Tomcat 3.x with the standard 
  procedure. Nothing inside the project is set up in the CLASSPATH. I don't know 
  what you means by "all j2ee platform classes". Are the classes used j2ee 
  APIs?
  
  Thx.
  
  Vernon
  
  
  
  
  Original Message Follows 
  
  From: Wells Tiedeman <[EMAIL PROTECTED]>
  
  Reply-To: [EMAIL PROTECTED] 
  
  To: "'[EMAIL PROTECTED]'" 
  <[EMAIL PROTECTED]>
  
  Subject: RE: ServletException in 4.0b5 
  
  Date: Tue, 17 Jul 2001 08:46:44 -0400 
  
  MIME-Version: 1.0 
  
  Received: from [64.208.42.41] by hotmail.com (3.2) with ESMTP id 
  MHotMailBD1D7FCF00164004376140D02A290F500; Tue, 17 Jul 2001 05:51:28 -0700 
  
  Received: (qmail 73852 invoked by uid 500); 17 Jul 2001 12:51:21 
  - 
  
  Received: (qmail 73845 invoked from network); 17 Jul 2001 12:51:21 
  - 
  
  Received: from salesvision-gw.youcentric.com (HELO 
  yc?exchange.yc?exchange.salesvision.com) (12.19.52.2) by h31.sny.collab.net 
  with SMTP; 17 Jul 2001 12:51:21 - 
  
  Received: by yc_exchange.yc_exchange.salesvision.com with Internet 
  Mail Service (5.5.2653.19)id 3XZSJV86; Tue, 17 Jul 2001 08:46:45 -0400 

  
  From tomcat-user-return-41367-vwu0 Tue, 17 Jul 2001 05:52:26 -0700 
  
  Mailing-List: contact [EMAIL PROTECTED]; run by 
  ezmlm 
  
  Precedence: bulk 
  
  list-help: 
  
  list-unsubscribe: 
  
  
  list-post: 
  
  Delivered-To: mailing list [EMAIL PROTECTED] 
  
  Message-ID: 
  [EMAIL PROTECTED] 

  
  X-Mailer: Internet Mail Service (5.5.2653.19) 
  
  X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N 
  
  
  
  I experienced the same problem. It's due to a class loader issue. 
  Multiple 
  
  class loaders have been introduced in V4.0 to implement the 
  requirements 
  
  found in Section 9.6.2 of the Servlet 2.3 Spec. These class loaders 
  are 
  
  used to load all of the jars and classes rather than using the 
  CLASSPATH. 
  
  
  
  I was able to resolve this problem as follows : 
  
  
  
  - Add all supporting jars for your web application (except J2EE 
  jars) to 
  
  the /WEB-INF/lib directory rather than including them in the 
  CLASSPATH 
  
  - Add all of the required classes for your web application to the 
  
  /WEB-INF/classes directory rather than including them in the 
  CLASSPATH 
  
  - Add the j2ee.jar from the /j2sdkee1.3/lib directory to the 
  
  TOMCAT_HOME/common/lib directory. All J2EE platform classes must be 
  placed 
  
  in the common/lib or common/classes directories rather than with 
  the web 
  
  application. 
  
  
  
  -Wells 
  
  
  
  Wells Tiedeman 
  
  YOUcentric, Inc. 
  
  P: 704.401.1109 
  
  F: 704.401.1240 
  
  [EMAIL PROTECTED] 
  
  
  
  For more information on YOUcentric, please visit our web site at 
  
  www.youcentric.com 
  
  
  
  
  
  
  
  -Original Message- 
  
  From: Vernon Wu [mailto:[EMAIL PROTECTED]] 
  
  Sent: Monday, July 16, 2001 7:53 PM 
  
  To: [EMAIL PROTECTED] 
  
  Subject: ServletException in 4.0b5 
  
  
  
  
  
  I move one our small JSP application from 3.x to 4.0b5 for the 
  reason of 
  
  using servlet 2.3 specification: ServletContextListener, 
  HttpSessionListener 
  
  be more specific. 
  
  
  
  I get the exception under the 4.0b5 with the following messages: 
  
  
  
  
  
  Exception Report: 
  
  
  
  javax.servlet.ServletException: Class abc.control.ControllerServlet 
  is not a 
  
  Servlet 
  
  
  
   
  
  
  
  
  
  
  
  
  
  Root Cause: 
  
  
  
  java.lang.ClassCastException: abc.control.ControllerServlet 
  
  
  
  ... 
  
  
  
  There is not any indication that anywhere my code is not approprt. 
  What I 
  
  shall do at this situation? 
  
  
  
  I believe that I encounter the similar situation in the 3.x, and it 
  can be 
  
  resolved by recycle the Tomcat server. That method doesn't work for 
  4.0b5. 
  
  
  
  Thanks. 
  
  
  
  Vernon 
  
  
  
  _ 
  
  
  
  Get your FREE download of MSN Explorer at http://explorer.msn.com 
  
  
  
  
  
  
  
  
  
  
  
  
  
  Get your FREE download of MSN Explorer at http://explorer.msn.com
  


JDBC in TOMCAT - LINUX - ORACLE 8.0.5

2001-07-17 Thread autit043

I have a Tomcat at a Linux and 
a Oracle 8.05.

What the JDBC driver that i must 
install ?

And where i can learn about it ?



Re: JDBC in TOMCAT - LINUX - ORACLE 8.0.5

2001-07-17 Thread John Hebert

[EMAIL PROTECTED] wrote:

 I have a Tomcat at a Linux and 
 a Oracle 8.05.
 
 What the JDBC driver that i must 
 install ?
 
 And where i can learn about it ?

I don't know the specific driver information, but this might help:

http://technet.us.oracle.com/tech/java/sqlj_jdbc/htdocs/jdbc_faq.htm

Sorry, it is not in Portuguese. There may be a translation elsewhere on 
the Oracle web site.


-- 
John Alex Hebert
[EMAIL PROTECTED]
System Engineer



RE: JDBC in TOMCAT - LINUX - ORACLE 8.0.5

2001-07-17 Thread Reynir Hübner


I think you need to download classes11.zip (rather than classes12.zip)
from http://otn.oracle.com/software/content.html
get a thin client driver for oracle 8.0
put the oracle.jar into your tomcat/lib
Use the thin driver...

hope it helps, 




-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 17, 2001 8:44 PM
To: [EMAIL PROTECTED]
Subject: JDBC in TOMCAT - LINUX - ORACLE 8.0.5


I have a Tomcat at a Linux and 
a Oracle 8.05.

What the JDBC driver that i must 
install ?

And where i can learn about it ?



RE: JDBC in TOMCAT - LINUX - ORACLE 8.0.5

2001-07-17 Thread Eoin Woods

[EMAIL PROTECTED] wrote:

 I have a Tomcat at a Linux and a Oracle 8.05.

 What the JDBC driver that i must install ?
You need Oracle's JDBC driver.  

 And where i can learn about it ?
The manual about it is at:
http://technet.oracle.com/docs/products/oracle8i/doc_library/817_doc/java.81
7/a83724/toc.htm

The driver is shipped with Oracle 8i in the $ORACLE_HOME/jdbc directory.  I
don't think it came with 8.0 though - you may have to contact Oracle to get
a copy.

Eoin.





RE: JDBC in TOMCAT - LINUX - ORACLE 8.0.5

2001-07-17 Thread Filip Hanik

Using the Oracle thin driver is the easiest thing.
http://technet.oracle.com/doc/java.815/a64685/getsta1.htm

Filip

~
Namaste - I bow to the divine in you
~
Filip Hanik
Software Architect
[EMAIL PROTECTED]
www.filip.net 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 17, 2001 1:44 PM
To: [EMAIL PROTECTED]
Subject: JDBC in TOMCAT - LINUX - ORACLE 8.0.5


I have a Tomcat at a Linux and 
a Oracle 8.05.

What the JDBC driver that i must 
install ?

And where i can learn about it ?




error 404 R

2001-07-17 Thread Fredrik Liden

Hello, does anyone know why I keep getting the following messages?
I can't find any path in my files that looks like the ones below.
can it bring down the server?
 
I'm using tomcat standalone.
Any feedback would be appreciated
 
2001-07-03 09:48:31 - Ctx( /examples ): 404 R( /examples +
/html/html/Images/RWS
LOGO.gif + null) null
2001-07-03 09:48:38 - Ctx( /examples ): 404 R( /examples +
/html/Images/RWSLOGO.
gif + null) null
2001-07-03 09:48:55 - Ctx( /examples ): 404 R( /examples +
/html/Images/RWSLOGO.
gif + null) null  



RE: error 404 R

2001-07-17 Thread Saritha Pula

look into tomcat\conf\server.xml..
--Pula

-Original Message-
From: Fredrik Liden [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 17, 2001 1:49 PM
To: '[EMAIL PROTECTED]'
Subject: error 404 R


Hello, does anyone know why I keep getting the following messages?
I can't find any path in my files that looks like the ones below.
can it bring down the server?
 
I'm using tomcat standalone.
Any feedback would be appreciated
 
2001-07-03 09:48:31 - Ctx( /examples ): 404 R( /examples +
/html/html/Images/RWS
LOGO.gif + null) null
2001-07-03 09:48:38 - Ctx( /examples ): 404 R( /examples +
/html/Images/RWSLOGO.
gif + null) null
2001-07-03 09:48:55 - Ctx( /examples ): 404 R( /examples +
/html/Images/RWSLOGO.
gif + null) null  



jasper errors

2001-07-17 Thread Hochberg, Lincoln

Hi, I've been having problems getting jasper to run properly.  I downloaded
the 3.2.3 version of Tomcat to a box with Solaris 2.6.  I am trying to run
something like the following:

java -classpath .:$HOME/lib/jasper.jar:$HOME/lib/webserver.jar
org.apache.jasper.JspC -v4 -webapp docroot

I get the following output from that command:
2001-07-17 13:52:27 - Package name is: [default package]
2001-07-17 13:52:27 - Class file name is:
/iwmnt/default/main/mlb_1/source/WORKAREA/lhochberg/htdocs//_0002findex_0002
ejspindex.class
2001-07-17 13:52:27 - Java file name is:
/iwmnt/default/main/mlb_1/source/WORKAREA/lhochberg/htdocs//index.java
2001-07-17 13:52:27 - Class name is: index
Unknown object of type:java.util.Hashtable
Unknown object of type:java.lang.IllegalArgumentException
java.lang.IllegalArgumentException: Unknown argument
at java.text.MessageFormat.format(MessageFormat.java)
at java.text.MessageFormat.format(MessageFormat.java)
at java.text.Format.format(Format.java)
at org.apache.jasper.Constants.getString(Constants.java:211)
at org.apache.jasper.Constants.message(Constants.java:247)
at org.apache.jasper.JspC.parseFile(JspC.java:412)
at org.apache.jasper.JspC.parseFiles(JspC.java:641)
at org.apache.jasper.JspC.main(JspC.java:689)

I thought that maybe it was missing Hashtable and other classes in the
classpath but when I added rt.jar to the classpath I get a segmentation
fault:
SIGSEGV   11*  segmentation violation
si_signo [11]: SIGSEGV   11*  segmentation violation
si_errno [0]: Error 0
si_code [1]: SEGV_ACCERR [addr: 0x0]


Full thread dump:
Segmentation Fault

Does anybody know what's going on here?

Thanks,
Linc

Lincoln Hochberg
 http://www.mlb.com/ 
 212-485-3721
 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 




Problems running as an NT Service

2001-07-17 Thread Raber Chris

I have a servlet that works fine when running TomCat
from a command line.

When I attempt to run the servlet as a service, my
servlet can not open files for read access that it
could open when running under TomCat from the command
line...

I have read the archives for similar issues, and have
tried to set up my service Run As user to have access
to the files. I must be missing something or am
completely brain dead.

Any suggestions are welcome!

Thanks,

-Chris.

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



error 400 R

2001-07-17 Thread Fredrik Liden

Ctx(  ): 400 R( /) null

I keep getting a LOT of this message.

and sometimes that messages is followed by

- PoolTcpEndpoint: Endpoint ServerSocket[addr=0.0.0.0/0.0.0.
0,port=0,localport=8080] ignored exception: java.net.SocketException:
Connection
 reset by peer - java.net.SocketException: Connection reset by peer
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java, Compiled
Code)
at java.net.ServerSocket.implAccept(ServerSocket.java, Compiled
Code)
at java.net.ServerSocket.accept(ServerSocket.java, Compiled Code)
at
org.apache.tomcat.service.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoin
t.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)
 

Does anyone know what causes it? I'd like to see something else on the
output screen besides these error messages. I have the default Serve.xml
settings. Everything is relative to the example folder.

/Fredrik



tomcat server question

2001-07-17 Thread Nick Stoianov



Hey guys,

I have the following question. I set up a tomcat 
server. I have an Apache server on a different machine. What should I put in the 
configuration of Apache and Tomcat so that when apache receive a request for a 
jsp file it will redirect the request to the Tomcat server? And Apache will 
serve only the HTML andimage files - but not the jsp files.


Nick


RE: error 400 R

2001-07-17 Thread Brandon Cruz

Doesn't mean anything bad.  Has something to do with the browser caching
images and stuff.  You can just ignore it.

Brandon Cruz
Norvax Inc.
www.norvax.com

-Original Message-
From: Fredrik Liden [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 17, 2001 4:33 PM
To: '[EMAIL PROTECTED]'
Subject: error 400 R


Ctx(  ): 400 R( /) null

I keep getting a LOT of this message.

and sometimes that messages is followed by

- PoolTcpEndpoint: Endpoint ServerSocket[addr=0.0.0.0/0.0.0.
0,port=0,localport=8080] ignored exception: java.net.SocketException:
Connection
 reset by peer - java.net.SocketException: Connection reset by peer
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java, Compiled
Code)
at java.net.ServerSocket.implAccept(ServerSocket.java, Compiled
Code)
at java.net.ServerSocket.accept(ServerSocket.java, Compiled Code)
at
org.apache.tomcat.service.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoin
t.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)


Does anyone know what causes it? I'd like to see something else on the
output screen besides these error messages. I have the default Serve.xml
settings. Everything is relative to the example folder.

/Fredrik




Bug in Tomcat ? - forwarding HTTP request from a Servlet to a JSP

2001-07-17 Thread Sampige, Srinivas

Hi 
 Iam using tomcat 3.2.1 and i have a servlet PronServlet that extends from 
HttpServlet . Now i have a servlet LogonServlet that extends from servlet 
PronServlet (which has got common functionality like checking for a valid session 
;has common methods that perform functionality like forwarding HTTP request to another 
url). In LogonServlet i have some code that does some processing and finally 
forwards the HTTP request to a JSP .Iam getting an error which iam pasting below.I ran 
the same application on JRun and it works fine .I noticed that if i removed the 
subclassing and instead subclassed LogonServlet directly from HttpServlet then the 
application works fine by forwarding the request to the next JSP .Here is the console 
output .Iam attaching the source code of
 PronServlet and LogonServlet .Anybody from the Tomcat dev team any ideas. ?

--
Creating a session for the user...
Forwarding request to the MENU page...
2001-07-17 02:17:22 - Ctx( /pron ): Exception in: R( /pron + /webUi/pronMenu.jsp + 
null) - java.lang.
IllegalArgumentException: Short Read
at javax.servlet.http.HttpUtils.parsePostData(HttpUtils.java:238)
at org.apache.tomcat.util.RequestUtil.readFormData(RequestUtil.java:101)
at org.apache.tomcat.core.RequestImpl.handleParameters(RequestImpl.java:691)
at org.apache.tomcat.core.RequestImpl.getParameterValues(RequestImpl.java:259)
at org.apache.tomcat.core.RequestImpl.getParameter(RequestImpl.java:250)
at 
org.apache.tomcat.facade.HttpServletRequestFacade.getParameter(HttpServletRequestFacade.ja
va:222)
at org.apache.jasper.servlet.JspServlet.preCompile(JspServlet.java:326)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:370)
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.facade.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:194)
at 
com.boeing.pron.servlets.LogonServlet.handleApplicationEvent(LogonServlet.java:61)
at com.boeing.pron.servlets.PronServlet.service(PronServlet.java:56)
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:743)
at 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandl
er.java:210)
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)
--

 LogonServlet.java  PronServlet.java 

 LogonServlet.java
 PronServlet.java


RE: tomcat server question

2001-07-17 Thread Filip Hanik



http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-apache-howto.html

~Namaste - I bow to the divine in you~Filip 
HanikSoftware Architect[EMAIL PROTECTED]www.filip.net 

  -Original Message-From: Nick Stoianov 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, July 17, 2001 2:54 
  PMTo: [EMAIL PROTECTED]Subject: tomcat 
  server question
  Hey guys,
  
  I have the following question. I set up a tomcat 
  server. I have an Apache server on a different machine. What should I put in 
  the configuration of Apache and Tomcat so that when apache receive a request 
  for a jsp file it will redirect the request to the Tomcat server? And Apache 
  will serve only the HTML andimage files - but not the jsp 
  files.
  
  
  Nick


tomcat + other

2001-07-17 Thread David Bishop

Has anyone got tomcat working with any of the pike-based webservers (roxen, 
caudium, roxen2)?  For various reasons I've been trying them out lately, but 
need servet/jsp support as well.

Thanks,

D.A.Bishop



Re: tomcat server question

2001-07-17 Thread Nick Stoianov



The link that you sent is about Apache with 
mod_jserv - I'm using mod_jk. I saw mod_jk howto (in case you decide to send me 
that link too) but there is no information there how to redirect the jsp 
requests to a different machine

Nick


  - Original Message - 
  From: 
  Filip Hanik 
  To: [EMAIL PROTECTED] 
  
  Sent: Tuesday, July 17, 2001 3:06 
PM
  Subject: RE: tomcat server question
  
  http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-apache-howto.html
  
  ~Namaste - I bow to the divine in you~Filip 
  HanikSoftware Architect[EMAIL PROTECTED]www.filip.net 
  
-Original Message-From: Nick Stoianov 
[mailto:[EMAIL PROTECTED]]Sent: Tuesday, July 17, 2001 2:54 
PMTo: [EMAIL PROTECTED]Subject: 
tomcat server question
Hey guys,

I have the following question. I set up a 
tomcat server. I have an Apache server on a different machine. What should I 
put in the configuration of Apache and Tomcat so that when apache receive a 
request for a jsp file it will redirect the request to the Tomcat server? 
And Apache will serve only the HTML andimage files - but not the jsp 
files.


Nick


classpath?

2001-07-17 Thread Nancy Crisostomo Martinez

Hi all!

I hope somebody can help me..
In Windows, when you install jdk and jsdk (to compiling applets and
servlets) you have to add or modified the variables PATH and CLASSPATH
in autoexec.bat file. but in Solaris I don't know where (I think
.profile) and how configure it...
When I type   JAVAC SOMESERVLET.JAVAI want the javac command invoke
at jsdk_directory/bin/javac and use the libraries of jsdk_directory.

Thank you in advanced!!
Nancy




JDBC Authentication Broken in 3.2.3?

2001-07-17 Thread Michael P. McCutcheon



I've been fighting with the JDBC authentication in 
3.2.2 and 3.2.3 using Windows 2000, MySQL 3.23.39, the mm-mysql 2.0.6 drivers 
and JDK 1.3.1. I just can't get it to work. I get the messages in 
the console:

2001-07-17 15:21:20 - ContextManager: JDBCRealm: 
Starting JDBCRealm, trying to acquire JDBC Driver class and DB 
Connection2001-07-17 15:21:21 - ContextManager: JDBCRealm: JDBCRealm has 
been started succesfully2001-07-17 15:21:22 - PoolTcpConnector: Starting 
HttpConnectionHandler on 802001-07-17 15:21:22 - PoolTcpConnector: Starting 
Ajp12ConnectionHandler on 80072001-07-17 15:21:31 - ContextManager: 
JDBCRealm: The database connection is null or was found to be closed. Trying to 
re-open it.2001-07-17 15:21:31 - ContextManager: JDBCRealm: 
JDBCRealm.authenticate: SELECT user_pass FROM users WHERE user_name = 
?2001-07-17 15:21:31 - ContextManager: JDBCRealm: Authentication successful 
for user michaelm2001-07-17 15:21:31 - ContextManager: JDBCRealm: Auth ok, 
user=michaelm

but it won't take me to the page I want to go 
to...in other words, it says I'm successfully authenticated, but the login 
window just keeps popping up. After 3 tries, I get to the page, but it's 
blank. Same for form login...keep logging in and keep getting sent to the 
error page.

What's up?

When I put a garbage login/pass I see:

2001-07-17 15:24:29 - ContextManager: JDBCRealm: 
Authentication unsuccessful foruser asdf

so I know that it is talking to the database 
correctly.

Here the security part of my web.xml:

security-constraintweb-resource-collection 
web-resource-nameProtected 
Area/web-resource-name 
url-pattern/main/pgMain.html/url-pattern 
http-methodDELETE/http-method 
http-methodGET/http-method 
http-methodPOST/http-method 
http-methodPUT/http-method/web-resource-collectionauth-constraint 
role-nameviewer/role-name/auth-constraint/security-constraint

login-configauth-methodBASIC/auth-methodrealm-nameAdmin/realm-name/login-config
Here is the database stuff:

Welcome to the MySQL monitor. Commands end 
with ; or \g.Your MySQL connection id is 4 to server version: 
3.23.39-nt

Type 'help;' or '\h' for help. Type '\c' to clear 
the buffer.

mysql use testdbDatabase 
changedmysql select * from users;+---+---+| 
user_name | user_pass |+---+---+| michaelm | 
indonesia |+---+---+1 row in set (0.00 
sec)

mysql select * from 
roles;+---+| role_name |+---+| 
viewer |+---+1 row in set (0.04 
sec)

mysql select * from 
user_roles;+---+---+| user_name | role_name 
|+---+---+| michaelm | viewer 
|+---+---+1 row in set (0.04 sec)

mysql


Any clues?

Mike



Oracle JDBC in CLASSPATH for Tomcat 4.0

2001-07-17 Thread Scott Brinker

I am trying to load the Oracle 8.1.7 thin client JDBC driver in a simple
servlet under Tomcat 4.0-b5. However, the following line:

  Class.forName(oracle.jdbc.driver.OracleDriver);

...keeps generating a ClassNotFoundException. I am running on Windows 2000,
and I have verified that the CLASSPATH environment variable is:

  D:\oracle\ora81\jdbc\lib\classes12.zip

...which is where the JDBC driver is. (I can write a stand-alone Java
application that loads that driver just fine, so I know it is where I think
it is.)

For what it's worth, I'm also running under JDK 1.3.1.

Do I have to do something special to have my web app recognize the system
CLASSPATH? Is there some place else I need to explicitly define it?

Many thanks,

Scott




Re: classpath?

2001-07-17 Thread Tim O'Neil

At 03:15 PM 7/17/2001, you wrote:
Hi all!

I hope somebody can help me..
In Windows, when you install jdk and jsdk (to compiling applets and
servlets) you have to add or modified the variables PATH and CLASSPATH
in autoexec.bat file. but in Solaris I don't know where (I think
.profile) and how configure it...
When I type   JAVAC SOMESERVLET.JAVAI want the javac command invoke
at jsdk_directory/bin/javac and use the libraries of jsdk_directory.

You might need to know which shell you're running,
but you're right, you'll probably get away with adding
this line to your .profile:

PATH=jsdk_directory/bin:{PATH}
export PATH




RE: Oracle JDBC in CLASSPATH for Tomcat 4.0

2001-07-17 Thread Sampige, Srinivas

put the zip file under /lib folder that you find under your tomcat 
installation.Should work without having to set the classpath because tomcat puts 
everything under /lib in classpath autmoatically when it starts up .

-Original Message-
From: Scott Brinker [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 17, 2001 3:19 PM
To: [EMAIL PROTECTED]
Subject: Oracle JDBC in CLASSPATH for Tomcat 4.0


I am trying to load the Oracle 8.1.7 thin client JDBC driver in a simple
servlet under Tomcat 4.0-b5. However, the following line:

  Class.forName(oracle.jdbc.driver.OracleDriver);

...keeps generating a ClassNotFoundException. I am running on Windows 2000,
and I have verified that the CLASSPATH environment variable is:

  D:\oracle\ora81\jdbc\lib\classes12.zip

...which is where the JDBC driver is. (I can write a stand-alone Java
application that loads that driver just fine, so I know it is where I think
it is.)

For what it's worth, I'm also running under JDK 1.3.1.

Do I have to do something special to have my web app recognize the system
CLASSPATH? Is there some place else I need to explicitly define it?

Many thanks,

Scott



RE: classpath?

2001-07-17 Thread Filip Hanik

didn't you forget the $ sign?

PATH=jsdk_directory/bin:{$PATH}
  ^
export PATH


~
Namaste - I bow to the divine in you
~
Filip Hanik
Software Architect
[EMAIL PROTECTED]
www.filip.net 

-Original Message-
From: Tim O'Neil [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 17, 2001 3:23 PM
To: [EMAIL PROTECTED]
Subject: Re: classpath?


At 03:15 PM 7/17/2001, you wrote:
Hi all!

I hope somebody can help me..
In Windows, when you install jdk and jsdk (to compiling applets and
servlets) you have to add or modified the variables PATH and CLASSPATH
in autoexec.bat file. but in Solaris I don't know where (I think
.profile) and how configure it...
When I type   JAVAC SOMESERVLET.JAVAI want the javac command invoke
at jsdk_directory/bin/javac and use the libraries of jsdk_directory.

You might need to know which shell you're running,
but you're right, you'll probably get away with adding
this line to your .profile:

PATH=jsdk_directory/bin:{PATH}
export PATH





Re: Please Help

2001-07-17 Thread Ben Kimball

Not totally sure - I do all my Java development on Linux, much less hassle, 
but you might try the following:

Since it is complaining about setting it dynamically, maybe you can set it in 
the environmental properties (which will probably require a reboot) - right 
click on My Computer, select Properties, then select Environment (or 
something like that, I'm doing this from memory, as I'm running under Linux 
right now) and one of the things that shows under that should be the PATH 
variable - you should be able to set that with the long (Non-DOS 8.3) 
pathnames. Try plugging the info in there, rebooting, then seeing if the info 
stays in the CLASSPATH.

On Monday 16 July 2001 01:54, you wrote:
 Hie Ben,
 I have make the changes but I'm facing a new error message.

 Unable to ser CLASSPATH dynamically.
 Note: To set the CLASSPATH dynamically on win9x systems only DOS 8.3
  names may be used in TOMCAT_HOME!
 Setting your CLASSPATH statically.

 Using CLASSPATH:
 C:\jakarta-tomcat-3.2.1\classes;C:\jakarta-tomcat-3.2.1\lib\ant.jar;C:\jaka
r
 ta-tomcat-3.2.1\lib\jasper.jar;C:\jakarta-tomcat-3.2.1\lib\jaxp.jar;C:\jaka
r
 ta-tomcat-3.2.1\lib\parser;C:\jakarta-tomcat-3.2.1\lib\servlet.jar;C:\jakar
t a-tomcat-3.2.1\lib\webserver.jar

 Starting Tomcat in new window
 Cannot find file C:\jdk_1.3.1\bin\java (or one of its components).
 Check to ensure the path and filename are correct and that all required
 libraries are available.
 Any idea to solve this, Ben?



 - Original Message -
 From: Ben Kimball [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, July 16, 2001 2:20 AM
 Subject: Re: Please Help

  It looks like you have spaces between:
 
  C: \ jdk1.3.1 should be C:\jdk1.3.1
  C: \ jakarta-tomcat-3.2.1 should be C:\jakarta-tomcat-3.2.1
 
  You also need to make sure that c:\jdk1.3.1\bin is in your PATH,
  otherwise java.exe/javac.exe will not be found.
 
  On Sunday 15 July 2001 10:55, you wrote:
   Actually,I'm a new user to Tomcat and currently having a problem

 starting

   up the Tomcat. I have installed Tomcat 3.2.1 and jdk 1.3.1 on my PC
   running win98. I have set all the paths required  but I kept on

 receiving

   error message saying Bad command or file name. These are the things I
   have set:
  
   set JAVA_HOME=C: \ jdk1.3.1
   set TOMCAT_HOME=C: \ jakarta-tomcat-3.2.1
  
   Can anyone please help me to solve this problem?
   TQ
 
  
  Content-Type: text/html; charset=iso-8859-1; name=Attachment: 1
  Content-Transfer-Encoding: 7BIT
  Content-Description:
  



RE: classpath?

2001-07-17 Thread Tim O'Neil

At 03:26 PM 7/17/2001, you wrote:
didn't you forget the $ sign?

 PATH=jsdk_directory/bin:{$PATH}
   ^
 export PATH


Sure did. My excuse is my back is in massive pain
as I type this.





  1   2   >