BAD packet - Apache 2.0.39 + mod_jk (or mod_webapp) on linux

2002-08-20 Thread Mathew Pole



Hi ,
 
At first glance the following combination sounded like 
a great idea (especially as I had success with this on windows 
2000):

  tomcat 4.0.4
  tomcat connectors 4.0.4
  apache 2.0.39
  linux (gentoo 1.2 distribution)
In reality it has proved very challenging. I've tried 
the following:
 
Following instructions provided by John Turner in http://www.johnturner.com/howto/apache-tomcat-howto.html, I 
came across a couple of issues which I resolved by 

  failed trying to build the mod_jk.so, but after 
  setting apache13.home to a bogus location and running ant native it appears to 
  have worked
  copied jk/build/lib/mod_jk.so 
  apache2/modules
  copied jk/build/lib/*.jar to 
  tomcat/common
  updated apache.conf file as 
  suggested
  updated server.xml as suggested, with addition of 
  modJk="/usr/local/apache2/modules/mod_jk.so" in the listener 
  definition
Currently, in the tomcat/logs/catalina.out file the 
following text is appearing (note the string after In : : [ changes, but 4/843 
remains constant):
 
   BAD packet 256
   In: : [B@3e58d4 4/843
 
followed by what appears to be some hex output of 
mainly 00s.
 
My suspicion is that this error is caused by one 
of:

  mod_jk.so being compiled 
  incorrectly
  connector jar files being compiled incorrectly or 
  being in the wrong place
  incorrect configuration
I've also attached logs & configuration files to 
this email. Hopefully this is enough information for someone to help 
me.
 
In addition to this I looked at the instructions in http://wass.homelinux.net/howtos/Jakarta_How-To.shtml, 
but the mod-jk-303-ap20.so doesn't work with apache 2.0.39.
 
 
 
Regards,
   Mathew
--Mathew Pole Web Architect, Gerard Industriesemail: 
[EMAIL PROTECTED]phone: 08 8269 0511 ext 313, fax: 08 8340 1212, 
mobile: 0403 164 617
 


workers.properties
Description: Binary data

2002-08-20 16:47:39 HttpConnector Opening server socket on all host IP addresses
2002-08-20 16:47:46 HttpConnector[8080] Starting background thread
2002-08-20 16:47:46 HttpProcessor[8080][0] Starting background thread
2002-08-20 16:47:46 HttpProcessor[8080][1] Starting background thread
2002-08-20 16:47:46 HttpProcessor[8080][2] Starting background thread
2002-08-20 16:47:46 HttpProcessor[8080][3] Starting background thread
2002-08-20 16:47:46 HttpProcessor[8080][4] Starting background thread
2002-08-20 16:47:46 Ajp13Connector[8009] Opening server socket on all host IP addresses
2002-08-20 16:47:46 Ajp13Connector[8009] Starting background thread
2002-08-20 16:47:47 Ajp13Processor[8009][0] Starting background thread
2002-08-20 16:47:47 Ajp13Processor[8009][1] Starting background thread
2002-08-20 16:47:47 Ajp13Processor[8009][2] Starting background thread
2002-08-20 16:47:47 Ajp13Processor[8009][3] Starting background thread
2002-08-20 16:47:47 Ajp13Processor[8009][4] Starting background thread
2002-08-20 16:48:54 Ajp13Processor[8009][4] [Ajp13] incomplete read, waited #-1 got 
only 0


2002-08-20 16:47:43 WebappLoader[/examples]: Deploying class repositories to work 
directory /opt/jakarta/tomcat/work/Standalone/mpole2/examples
2002-08-20 16:47:43 WebappLoader[/examples]: Reloading checks are enabled for this 
Context
2002-08-20 16:47:43 StandardManager[/examples]: Seeding random number generator class 
java.security.SecureRandom
2002-08-20 16:47:43 StandardManager[/examples]: Seeding of random number generator has 
been completed
2002-08-20 16:47:44 ContextConfig[/examples]: Added certificates -> request attribute 
Valve
2002-08-20 16:47:44 ContextConfig[/examples]: Configured an authenticator for method 
FORM
2002-08-20 16:47:44 ContextListener: contextInitialized()
2002-08-20 16:47:44 SessionListener: contextInitialized()
2002-08-20 16:47:44 ContextListener: 
attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@ca470')
2002-08-20 16:47:44 StandardWrapper[/examples:default]: Loading container servlet 
default
2002-08-20 16:47:44 default: init
2002-08-20 16:47:44 StandardWrapper[/examples:invoker]: Loading container servlet 
invoker
2002-08-20 16:47:44 invoker: init
2002-08-20 16:47:44 jsp: init


2002-08-20 16:47:40 WebappLoader[/manager]: Deploying class repositories to work 
directory /opt/jakarta/tomcat/work/Standalone/mpole2/manager
2002-08-20 16:47:40 StandardManager[/manager]: Seeding random number generator class 
java.security.SecureRandom
2002-08-20 16:47:40 StandardManager[/manager]: Seeding of random number generator has 
been completed
2002-08-20 16:47:41 ContextConfig[/manager]: Added certificates -> request attribute 
Valve
2002-08-20 16:47:42 ContextConfig[/manager]: Configured an authenticator for method 
BASIC
2002-08-20 16:47:42 StandardWrapper[/manager:default]: Loading container servlet 
default
2002-08-20 16:47:42 default: init
2002-08-20 16:47:42 StandardWrapper[/manager:invoker]: Loading container servlet 
invoker
2002-08-20 16:47:42 invoker: init
2002-08-20 16:47:42 jsp: init
2002-08-20 16:47:44 StandardHost[mpole2]: Installing web ap

RE: Can't get tomcat4 + mod_jk + apache to work

2002-08-20 Thread Mathew Pole

The /usr/local/jakarta-tomcat-4.0.4/conf/auto/mod_jk.conf is automatically
generated by tomcat (see http://www.johnturner.com/howto/mod_jk_conf.html
for an example)

--
Mathew Pole 
Web Architect, Gerard Industries
email: [EMAIL PROTECTED]  
phone: 08 8269 0511 ext 313, fax: 08 8340 1212, mobile: 0403 164 617



-Original Message-
From: Milt Epstein [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 20 August 2002 3:59 PM
To: Tomcat Users List
Subject: Re: Can't get tomcat4 + mod_jk + apache to work


On Tue, 20 Aug 2002, Scott Adamson wrote:

> I have been trying for the last week to get Apache + mod_jk + Tomcat 4 to
> work.
> I have confirmed that Tomcat works on 8080, confirmed that Apache is
> running.
>
[ ... ]
> Added the following to httpd.conf (see attached)
> Include /usr/local/jakarta-tomcat-4.0.4/conf/auto/mod_jk.conf
[ ... ]

What's in this file?

Milt Epstein
Research Programmer
Systems and Technology Services (STS)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Managing a large web.xml

2002-08-20 Thread Horn, Rob
Title: RE: Managing a large web.xml





Will,


What we have implemented (thanks to whoever suggested it from here!) to include a  section into our server.xml file is:

we have and M4 macro file server.xml.m4 in conf directory that contains ...



...
...
include(../conf/context.xml)
...
...




We have the context entry in a file context.xml also in the conf dir.



We have then placed the following onto the startup.sh script in the bin dir:


m4 ../conf/server.xml.m4 > ../conf/server.xml


Our web.xml file is generated by a script from entries in a database for servlets and servlet mappings and other file-snippets that are included.  We have also put in place an application assembly script that compiles files, builds the appropriate file structure, calls the script to produce web.xml and creates a .war file.  Non of it is particularly rocket science but the time spent creating it makes rebuilds and deployment a doddle.

Hope this helps or gives you ideas.


Rob



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 19 August 2002 23:24
To: Tomcat Users List
Subject: Re: Managing a large web.xml



From: "Milo Hyson" <[EMAIL PROTECTED]>
Sent: Monday, August 19, 2002 2:36 PM



> Is there any way to break up a large web.xml file into smaller ones to
make it
> more manageable? I've found that it doesn't take that big of a project
before
> I have so many servlets and mappings as to make the deployment descriptor
> file quite long. I've read through the Servlet spec (2.3) and poked around
in
> the mailing list archives, but can't find anything like an include
directive
> or anything else that might let me divide my descriptor into mutiple
smaller
> files. Ideally, I'd like to be able to create a different file for each
> section of the application, so that I can focus on one at a time.
>
> I'd appreciate any insights into this situation. Thanks in advance.


The Servlet spec isn't much help in this case.


The most practical approach is to break it up using some regular method, and
then just create the actual web.xml as part of the build/deploy process in
your build script. (For example, just before you pack everything up in a
WAR, or whatever).


I don't have any code to share with you at the moment, and I don't think
it's quite straightforward with ANT, but that's still the path I'd take.


Regards,


Will Hartung
([EMAIL PROTECTED])






--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


Re: web-inf/classes and eclipse

2002-08-20 Thread Andreas Probst

Hi Michenaud,

using Ant together with Eclipse might be an option. You can
run Ant from inside Eclipse by right-clicking the build.xml
file and choosing the right operation (I now don't know how it
is called).

Andreas


> Hi,
>
> I use the editor Eclipse but when i launch
> "Rebuild all", it deletes all the content of
> the WEB-INF/classes directory.
>
> Inside, there is all my *.properties file.
>
> The idea is to create a WEB-INF/config where i
> could put the properties files but i don't know how
> to add this directory into the classpath. It would be better
> too if the path was a relative path.
>
> Or maybe u have others ideas ?
>
> Michenaud Laurent
> - Adeuza -
> [ Développeur Web - Administrateur Réseau ]
>
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: BAD packet - Apache 2.0.39 + mod_jk (or mod_webapp) on linux

2002-08-20 Thread Niket Anand

Hi Mathew,
Can I get same type of instructions for 
Apache2.0.4,JBoss-2.4.6_Tomcat-4.0.3,jakarta-tomcat-connectors-4.0.4-src, JDK1.3.1 on 
Win2000?

Thanks,
Niket
  - Original Message - 
  From: Mathew Pole 
  To: '[EMAIL PROTECTED]' 
  Sent: Tuesday, August 20, 2002 12:57 PM
  Subject: BAD packet - Apache 2.0.39 + mod_jk (or mod_webapp) on linux


  Hi ,

  At first glance the following combination sounded like a great idea (especially as I 
had success with this on windows 2000):
a.. tomcat 4.0.4 
b.. tomcat connectors 4.0.4 
c.. apache 2.0.39 
d.. linux (gentoo 1.2 distribution)
  In reality it has proved very challenging. I've tried the following:

  Following instructions provided by John Turner in 
http://www.johnturner.com/howto/apache-tomcat-howto.html, I came across a couple of 
issues which I resolved by 
a.. failed trying to build the mod_jk.so, but after setting apache13.home to a 
bogus location and running ant native it appears to have worked 
b.. copied jk/build/lib/mod_jk.so apache2/modules 
c.. copied jk/build/lib/*.jar to tomcat/common 
d.. updated apache.conf file as suggested 
e.. updated server.xml as suggested, with addition of 
modJk="/usr/local/apache2/modules/mod_jk.so" in the listener definition
  Currently, in the tomcat/logs/catalina.out file the following text is appearing 
(note the string after In : : [ changes, but 4/843 remains constant):

 BAD packet 256
 In: : [B@3e58d4 4/843

  followed by what appears to be some hex output of mainly 00s.

  My suspicion is that this error is caused by one of:
a.. mod_jk.so being compiled incorrectly 
b.. connector jar files being compiled incorrectly or being in the wrong place 
c.. incorrect configuration
  I've also attached logs & configuration files to this email. Hopefully this is 
enough information for someone to help me.

  In addition to this I looked at the instructions in 
http://wass.homelinux.net/howtos/Jakarta_How-To.shtml, but the mod-jk-303-ap20.so 
doesn't work with apache 2.0.39.



  Regards,
 Mathew
  --
  Mathew Pole 
  Web Architect, Gerard Industries
  email: [EMAIL PROTECTED]
  phone: 08 8269 0511 ext 313, fax: 08 8340 1212, mobile: 0403 164 617



--


  --
  To unsubscribe, e-mail:   
  For additional commands, e-mail: 



RE: web-inf/classes and eclipse

2002-08-20 Thread Laurent Michenaud

thanks for this idea. I think i will use ant..

But what about adding WEB-INF/config to the CLASSPATH ?
How can i do that automatically for all tomcat projects ?

> -Message d'origine-
> De : Andreas Probst [mailto:[EMAIL PROTECTED]]
> Envoyé : mardi 20 août 2002 09:37
> À : Tomcat Users List
> Objet : Re: web-inf/classes and eclipse
> 
> 
> Hi Michenaud,
> 
> using Ant together with Eclipse might be an option. You can 
> run Ant from inside Eclipse by right-clicking the build.xml 
> file and choosing the right operation (I now don't know how it 
> is called).
> 
> Andreas
> 
> 
> > Hi,
> > 
> > I use the editor Eclipse but when i launch
> > "Rebuild all", it deletes all the content of 
> > the WEB-INF/classes directory.
> > 
> > Inside, there is all my *.properties file.
> > 
> > The idea is to create a WEB-INF/config where i
> > could put the properties files but i don't know how
> > to add this directory into the classpath. It would be better
> > too if the path was a relative path.
> > 
> > Or maybe u have others ideas ?
> > 
> > Michenaud Laurent
> > - Adeuza -
> > [ Développeur Web - Administrateur Réseau ]
> > 
> > 
> > --
> > To unsubscribe, e-mail:   
> 
> > For additional commands, e-mail: 
> 
> > 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: 404 Not found - howto

2002-08-20 Thread Rum Pel




>From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
>
>On Fri, 16 Aug 2002, Rum Pel wrote:
>
> > Date: Fri, 16 Aug 2002 05:05:47 -0400
> > From: Rum Pel <[EMAIL PROTECTED]>
> > Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> > To: [EMAIL PROTECTED]
> > Subject: 404 Not found - howto
> >
> >
> > Can a servlet produce a "404 Page Not found" error? It seems to me
> > that it is the webserver/appserver that should do this, but I want
> > it in the context of outputting static content via a servlet:
> > http://localhost:8080/webapp/wsdl?ws=name
> > should give a 404 error in case ws=name is not found.
> >
>
>   response.sendError(HttpServletResponse.SC_NOT_FOUND,
> "your error message goes here");


I tried this. What I got in the browser was a neatly laid out page
showing the error in Tomcat's description format. What I am not sure
is if Tomcat also returns 404 in the http response, and the error
description is part of the HTTP's 404 code. For example, when I give
the url: http://www.stanford.edu/se.html, the page I get is, I think,
IE's local page, and not the one sent by stanford's webserver.

So what I want to know, in addition to sending out "I ate your page"
html, does the webserver also send out 404 in the HTTP response?
The reason I am asking is becoz I working in the context of automated
clients, which only understands HTTP's response but not interpret text.

Thanks in advance,
--rp

_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Segmentation Error SIGSEGV 11 * Segmentation Violation

2002-08-20 Thread Jhair Tocancipa Triana


 > HI, I am using Red Hat 7.2, Tomcat 3.2.3, MySQL and JDK 1.2.2.
 > I am getting the error: "Segmentation Error SIGSEGV 11 *
 > Segmentation Violation"

 > Can u pls provide some solution for this?

No,  please  take  a  few  minutes  to  formulate  your  problem  more
precisely.

--
--Jhair


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




basic identification + confidential

2002-08-20 Thread van Geenen, Jurjen (NL - Rotterdam)

Hi,

I have declared a webcontext to require basic identification and
confidentiality (in tomcat 4). It works fine. I have the following question:
upon opening a webpage over normal HTTP, IE warns that a switch is made to
SSL (the certificate is not trusted: selfsigned for testing), the redirect,
immediately after, the HTTP login form pops up. only AFTER succesful login,
the browser shows that the connection secure. With Mozilla the behaviour is
identical. Does anyone know if the logon is already performed through SSL or
does SSL kick in the moment the form is sent ? I cannot find this in the
docs. 

Thanks,

Jurjen van Geenen 
This e-mail message and its attachments are subject to the disclaimer
published at the following website of Deloitte & Touche :
http://www.deloitte.nl/disclaimer




Client Certificates on Tomcat 3.3.1

2002-08-20 Thread Rodrigo Ruiz

Hi all,

I'm trying to setup a secure connection between Tomcat 3.3.1 and a java soap
client.

My soap service simply prints out some request data, and also the content of

request.getAttribute("javax.servlet.request.X509Certificate")

Following some example code I found on Internet (I'm not sure this code
should function)

I have followed the instructions in the xml.apache.org FAQ, and generated
all certificates with keytool.

Firstly, I configured tomcat with clientAuth set to false, and used a basic
authentication scheme in my web-app. It worked fine. When connecting through
my client, the service prints the next info:

Authorization: BASIC
Remote User: tomcat
Secured: true
Principal: tomcat
No client certificate is available

If I set clientAuth to true, it still works, but it keeps showing the "No
client certificate available" message.

The big problem comes when I configure my web-app to use CLIENT-CERT
authorization scheme.
It simply returns a 401 error code.

Any one can help me, please??

Thanks in advance,
Rodrigo Ruiz Aguayo

PS: Following is the bat file I'm using to generate the keystores:

del server.keystore
del client.keystore

copy %JAVA_HOME%\jre\lib\security\cacerts .\server.keystore
copy %JAVA_HOME%\jre\lib\security\cacerts .\client.keystore

REM Change default passwords
keytool -storepasswd -keystore server.keystore -storepass changeit -new
123456
keytool -storepasswd -keystore client.keystore -storepass changeit -new
123456

REM Create server.keystore
keytool -genkey -alias tomcat-sv -dname
"CN=neyade,OU=InnerGrid,O=GridSystems,L=Palma,S=Baleares,C=ES" -keyalg
RSA -keypass 123456 -storepass 123456 -keystore server.keystore
keytool -export -alias tomcat-sv -storepass 123456 -file
server.cer -keystore server.keystore

REM Import server certificate as a trusted CA in the client keystore
keytool -import -v -trustcacerts -alias tomcat -file server.cer -keystore
client.keystore -keypass 123456 -storepass 123456

REM Create client keystore
keytool -genkey -alias rruiz -dname
"CN=rruiz,OU=InnerGrid,O=GridSystems,L=Palma,S=Baleares,C=ES" -keyalg
RSA -keypass 123456 -storepass 123456 -keystore client.keystore
keytool -export -alias rruiz -storepass 123456 -file rruiz.cer -keystore
client.keystore

keytool -import -v -trustcacerts -alias tomcat -file rruiz.cer -keystore
server.keystore -keypass 123456 -storepass 123456


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: mod_jk and tomcat 3.3

2002-08-20 Thread Alvaro Mota

Mr. Benjamin

This how-to explain well this module.

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

bye

Alvaro

Wong, Benjamin wrote:

>Hi,
>
>I am configuring Apache 2.0.4 and Tomcat 3.3 using mod_jk. I followed the
>"Working with mod_jk" instructions, copied the mod_jk.dll to the Apache
>modules directory, generated the mod_jk.conf file using tomcat, and included
>the directive
>
>Include c:/tomcat/conf/auto/mod_jk.conf
>
>in the apache httpd.conf file.
>
>When I launch "Apache -t", I kept getting the error:
>
>C:\Program Files\Apache Group\Apache2\bin>apache -t
>Syntax error on line 4 of C:/tomcat/conf/auto/mod_jk.conf:
>Cannot load C:/Program Files/Apache Group/Apache2/modules/mod_jk.dll into
>server
>: The specified module could not be found.
>
>I'm puzzled as to why it can't find or load the mod_jk.dll file. Any
>suggestion would be greatly appreciated. Thanks.
>
>Ben
>
>--- mod_jk.conf file below -
>
>
>  LoadModule jk_module modules/mod_jk.dll
>
>
>JkWorkersFile "C:/tomcat/conf/jk/workers.properties"
>JkLogFile "C:/tomcat/logs/mod_jk.log"
>
>JkLogLevel emerg
>
>
>JkMount /admin ajp13
>JkMount /admin/* ajp13
>
>JkMount /examples ajp13
>JkMount /examples/* ajp13
>
>JkMount /test ajp13
>JkMount /test/* ajp13
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>  
>




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Tomcat 3.3 does not find jndi.properties

2002-08-20 Thread Olaf Jahn

"Larry Isaacs" <[EMAIL PROTECTED]> wrote:

> If possible, give Tomcat 3.3.2-dev from:
> 
> 
> 
> a try to see if the fix for Bugzilla #7654 corrects this problem.

Thanks a lot, the problem does not exist any more with the lastest
3.3.2-dev. The jndi.properties file placed in WEB-INF/classes is now
found and read.

When is a release of 3.3.2 to be expected?

Regards
  Olaf


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Tomcat 3.3 does not find jndi.properties

2002-08-20 Thread Olaf Jahn

I wrote:

> Thanks a lot, the problem does not exist any more with the lastest
> 3.3.2-dev. The jndi.properties file placed in WEB-INF/classes is now
> found and read.

I little experimenting showed that this is already fixed in 3.3.1. So I
just switch vom Tomcat 3.3a to 3.3.1  and everything should be fine.

Thanks again.
  Olaf


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Module mod_jk

2002-08-20 Thread Peter T. Abplanalp

On Mon, Aug 19, 2002 at 08:50:18PM -0300, Alvaro Mota wrote:
> Hi
> 
> i get errors when add module mod_jk in apache 1.3.6.
> 
> when i execute ./apachectl configtest
> Syntax error on line 318 of /usr/local/apache/conf/httpd.conf:
> Invalid command 'JkMount', perhaps mis-spelled or defined by a module 
> not included in the server configuration

this looks like something i've seen when playing around mod_jk2.
are you sure you are using mod_jk and not mod_jk2?

-- 
Peter Abplanalp

Email:   [EMAIL PROTECTED]
PGP: pgp.mit.edu



msg63190/pgp0.pgp
Description: PGP signature


RE: OFF-TOPIC: Pointers to CallableStatement docs?

2002-08-20 Thread Turner, John


Thanks, but I'm not getting any Java-related error messages.  The Java code
just blows right on through, as everything keys off of the return status,
which is always "false" or "negative".  This is because the stored procedure
never executes, and according to the debug log printed by the driver, it's
parameter related...that is, whatever I am doing with set*() and
registerOutParameter() doesn't match up with what the procedure is
expecting.

That's my question...can anyone point me to a resource that shows how to
call real-world stored procedures correctly with CallableStatement?  By
"real-world" I don't mean rudimentary "take two numbers and add them
together" or "get a row from a table" procedures, I can already do that.
I'm looking for a more advanced tutorial, something that shows how to have
inputs, outputs, in/outputs, and a return status, all at once.  It must be
possible, I just can't figure it out, and can't find any resources that
explain how to do it.  We have VB DLLs calling these procedures in
production, so I know the procedures work, at least in conjunction with VB.

John Turner

-Original Message-
From: Jim Urban [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 19, 2002 5:05 PM
To: 'Tomcat Users List'
Subject: RE: OFF-TOPIC: Pointers to CallableStatement docs?


What error are you receiving?  Can you post a stack trace and a code clip
with line numbers so we can see what is failing?


Jim Urban - [EMAIL PROTECTED]
Park City Solutions Inc.
Clinical Connectivity Suite Product Manager
Suite 295
500 Park Blvd.
Itasca, IL  60143
Voice:  (630) 250-3045 x106
Fax:  (630) 250-3046

CONFIDENTIALITY NOTICE
This message and any included attachments are from Park City Solutions Inc.
and are intended only for the entity to which it is addressed. The contained
information is confidential and privileged material. If you are not the
intended recipient, you are hereby notified that any use, dissemination, or
copying of this communication is strictly prohibited and may be unlawful. If
you have received this communication in error please notify the sender of
the delivery error by e-mail or call Park City Solutions Inc. corporate
offices at (435) 654-0621

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 19, 2002 1:27 PM
To: 'Tomcat Users List'
Subject: RE: OFF-TOPIC: Pointers to CallableStatement docs?


Thanks!  I've set up my code as you've described, but no luck.  For example,
here is the relevant portion of the stored procedure declaring the
parameters (forgive me, I don't work with stored procedures that often, so
this may not be the right portion of the procedure to focus on):

@userid_in varchar(8),
@password_in varchar(8),
@ip_addr varchar(15),
@http_referer varchar(80),
@http_user_agent varchar(80),
@pwdvalid bit OUTPUT,
@userenabled bit OUTPUT,
@graceexceeded bit OUTPUT,
@adminuser char(1) OUTPUT,
@title varchar(4) OUTPUT

My code looks like this:

// prepare the stored procedure statement
try {
cstmt = sConn.prepareCall("{? = call
sp_validate_pwd(?,?,?,?,?,?,?,?,?,?)}");
} catch (SQLException sqle) {
sqle.printStackTrace();
}

// set the input parameters
try {
cstmt.setString(2, strUserID);
cstmt.setString(3, strPassword);
cstmt.setString(4, strRemoteAddress);
cstmt.setString(5, strReferURL);
cstmt.setString(6, strHTTPUserAgent);
} catch (Exception e) {
e.printStackTrace();
}

// register the output parameters for the stored procedure
try {
cstmt.registerOutParameter(1, Types.INTEGER);
cstmt.registerOutParameter(7, Types.BIT);
cstmt.registerOutParameter(8, Types.BIT);
cstmt.registerOutParameter(9, Types.BIT);
cstmt.registerOutParameter(10, Types.CHAR);
cstmt.registerOutParameter(11, Types.VARCHAR);
} catch (Exception e) {
e.printStackTrace();
}

// execute the stored procedure
try {
cstmt.execute();
} catch (SQLException sqle) {
sqle.printStackTrace();
}

// grab the results from the stored procedure call
try {
spReturnStatus = cstmt.getInt(1);
isValid = cstmt.getBoolean(7);
isEnabled = cstmt.getBoolean(8);
isExceeded = cstmt.getBoolean(9);
strAdmin = cstmt.getString(10);
strTitle = cstmt.getString(11);
} catch (SQLException sqle) {
sqle.printStackTrace();
}

cstmt = null;

I've tried different calls, putting the output parameters first (2-6) and
the inputs last (7-11), I've tried no return value, putting that return
value at the end (#11), etc. with no luck.  All of the variables in the
setString() methods are set befor

RE: Apache 1.3.20 + Tomcat + (mod_jk or mod_webapp) for SuSE 7.3 Linux?

2002-08-20 Thread Turner, John


Can you post that mod_jk.conf file?

Are you starting tomcat before starting apache?

John Turner


-Original Message-
From: Chetan Sarva [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 19, 2002 5:06 PM
To: Tomcat Users List
Subject: Re: Apache 1.3.20 + Tomcat + (mod_jk or mod_webapp) for SuSE
7.3 Linux?


> Hi John,
>
> Thanks for the quick reply. That indeed was the problem. The apxs being
used
> was an older version (left from an earlier install). I have successfully
> rebuilt mod_jk and Apache now loads properly however it is still not
working
> properly. I am able to view webapps/examples/ directly from Tomcat
> (http://localhost:8080/examples) but Apache is not correctly picking up
the
> Aliases from tomcat/conf/auto/mod_jk.conf.

Accidentally sent that a bit too soon. Anyhow, here is the error from
Apache's error_log.

File does not exist: /usr/local/apache/htdocs/examples/

I have verified that Apache is indeed reading the mod_jk.conf by the fact
that it is creating the mod_jk.log in tomcat's log folder. It seems to be
ignoring all else however. Any ideas?

Regards,
Chetan Sarva


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: mySql - Connector/J - connection pooling?

2002-08-20 Thread Turner, John


Most people seem to be using a third-party pooling solution, such as DBCP
(Jakarta Commons project) or poolman, or others.  Some are rolling their
own.

Some driver vendors include pooling classes, as well.

John Turner


-Original Message-
From: neal [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 19, 2002 6:09 PM
To: Tomcat Users List
Subject: mySql - Connector/J - connection pooling?


I recently read that Java presumes the JDBC drivers will provide connection
pooling, and thus java and most app servers do not provide this
functionality.

Does anyone know off hand if the mySQL drivers (Connector/J in particular)
provide connection pooling?If not, what do most people do?  Roll their own?
use a framework like
Struts?

THanks.
Neal


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: OFF-TOPIC: Pointers to CallableStatement docs?

2002-08-20 Thread jon wingfield

John,

I've dug out some old code and i think you may have to set initial values
for the OUT parameters as well.
We used functions with oracle 8i with no problems in this way:
One of the CallableStatements we prepared with "{?=call
pk_housekeeping.f_purge_inactive_consumers(?)}" and used as below:


private void initializeParameters(CallableStatement cs) throws SQLException
{
int total = 0;
if (cs!=null) {
cs.setInt(1, total);
cs.registerOutParameter(1, Types.INTEGER);
if (purgeDate!=null) {
cs.setDate(2, purgeDate);
} else {
cs.setNull(2, Types.DATE);
}
} else {
throw new IllegalStateException ("CallableStatement has not been
initialized.");
}
}


The statement was executed and the out parameters accessed via the getXXX
methods.

I do seem to recall (two years ago on a different project, i'm afraid) that
without the cs.setInt(1, total); line it did throw a SQLException. This may
be a driver dependent 'feature' coz the java.sql.CallableStatement javadocs
don't mention this as a requirement.
Hope this helps/works,

Jon

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: 19 August 2002 19:27
To: 'Tomcat Users List'
Subject: RE: OFF-TOPIC: Pointers to CallableStatement docs?



Thanks!  I've set up my code as you've described, but no luck.  For example,
here is the relevant portion of the stored procedure declaring the
parameters (forgive me, I don't work with stored procedures that often, so
this may not be the right portion of the procedure to focus on):

@userid_in varchar(8),
@password_in varchar(8),
@ip_addr varchar(15),
@http_referer varchar(80),
@http_user_agent varchar(80),
@pwdvalid bit OUTPUT,
@userenabled bit OUTPUT,
@graceexceeded bit OUTPUT,
@adminuser char(1) OUTPUT,
@title varchar(4) OUTPUT

My code looks like this:

// prepare the stored procedure statement
try {
cstmt = sConn.prepareCall("{? = call
sp_validate_pwd(?,?,?,?,?,?,?,?,?,?)}");
} catch (SQLException sqle) {
sqle.printStackTrace();
}

// set the input parameters
try {
cstmt.setString(2, strUserID);
cstmt.setString(3, strPassword);
cstmt.setString(4, strRemoteAddress);
cstmt.setString(5, strReferURL);
cstmt.setString(6, strHTTPUserAgent);
} catch (Exception e) {
e.printStackTrace();
}

// register the output parameters for the stored procedure
try {
cstmt.registerOutParameter(1, Types.INTEGER);
cstmt.registerOutParameter(7, Types.BIT);
cstmt.registerOutParameter(8, Types.BIT);
cstmt.registerOutParameter(9, Types.BIT);
cstmt.registerOutParameter(10, Types.CHAR);
cstmt.registerOutParameter(11, Types.VARCHAR);
} catch (Exception e) {
e.printStackTrace();
}

// execute the stored procedure
try {
cstmt.execute();
} catch (SQLException sqle) {
sqle.printStackTrace();
}

// grab the results from the stored procedure call
try {
spReturnStatus = cstmt.getInt(1);
isValid = cstmt.getBoolean(7);
isEnabled = cstmt.getBoolean(8);
isExceeded = cstmt.getBoolean(9);
strAdmin = cstmt.getString(10);
strTitle = cstmt.getString(11);
} catch (SQLException sqle) {
sqle.printStackTrace();
}

cstmt = null;

I've tried different calls, putting the output parameters first (2-6) and
the inputs last (7-11), I've tried no return value, putting that return
value at the end (#11), etc. with no luck.  All of the variables in the
setString() methods are set before calling setString().  Am I at least on
the right track with the code shown above?  Or have I completely missed it?

Thanks again for replying!

John Turner


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 19, 2002 2:14 PM
To: Tomcat Users List
Subject: RE: OFF-TOPIC: Pointers to CallableStatement docs?



It's been sometime since I used JDBC and SQL Server. But here are a few
points to note:
1) Your first "?" is the return status. It should be registered as an OUT
parameter.
2) Remember to use the right JDBC type when registering the OUT parameters.
This is of utmost importance.
3) All ouput parameters should be registered before the call to the stored
proc is made.
4) cstmt.setXXX(, )
5) cstmt.getXXX()
6) If your stored procedure is returning any result set, retrieve all the
results before retrieving the OUT parameters. To make sure all the results
have been retrieved, use the getMoreResults method.

An example:
--
TestAdd proc adds two numbers.
It returns a status of 1 is the any one of the input p

RE: Module mod_jk

2002-08-20 Thread Turner, John


Do you have a LoadModule directive for mod_jk.so in httpd.conf?

John Turner


-Original Message-
From: Alvaro Mota [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 19, 2002 7:50 PM
To: Tomcat Users List
Subject: Module mod_jk


Hi

i get errors when add module mod_jk in apache 1.3.6.

when i execute ./apachectl configtest
Syntax error on line 318 of /usr/local/apache/conf/httpd.conf:
Invalid command 'JkMount', perhaps mis-spelled or defined by a module 
not included in the server configuration

I realized how this article:

http://www.ubeans.com/tomcat/index.html

Please, suggests.

Alvaro


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Can't get tomcat4 + mod_jk + apache to work

2002-08-20 Thread Turner, John


Well, the only thing I see different from my How-To is that you are using
the binary connector instead of building it from source.  I'm not clear on
what exact difference "noeapi" makes in building the connector.  If you'd
like to contact me offline, I can send you the *.so file from my build...I'm
not sure what the etiquette is for posting binaries here.

Also, what's in /usr/local/jakarta-tomcat-4.0.4/logs/mod_jk.log???

John Turner
[EMAIL PROTECTED]

-Original Message-
From: Scott Adamson [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 19, 2002 11:45 AM
To: Tomcat Users List
Subject: Can't get tomcat4 + mod_jk + apache to work


I have been trying for the last week to get Apache + mod_jk + Tomcat 4 to
work.
I have confirmed that Tomcat works on 8080, confirmed that Apache is
running.

My configuration is as follows :

OS -
Redhat Linux 6.2

Java -
JAVA_HOME="/usr/java/jdk1.3"
Installed via RPM

Tomcat -
Installed binary distribution of jakarta 4.0.4 at
/usr/local/jakarta-tomcat-4.0.4
Created jakarta-tomcat-4.0.4/conf/jk/workers.properties as follows :

workers.tomcat_home=/usr/local/jakarta-tomcat-4.0.4
workers.java_home=/usr/java/jdk1.3
ps=/
worker.list=ajp12, ajp13
worker.ajp13.port=8009
worker.ajp13.host=toecutter
worker.ajp13.type=ajp13

Modified jakarta-tomcat-4.0.4/conf/server.xml as follows : (see
attached)


   #added line  

and

  
#added line   

Apache -
Compiled Apache1.3.19 with the following config -
./configure --prefix=/usr/local/apache2 --enable-module=so
Added the following to httpd.conf (see attached)
Include /usr/local/jakarta-tomcat-4.0.4/conf/auto/mod_jk.conf

mod_jk -
Added the binary mod_jk-3.3-ap13-noeapi.so to /usr/local/apache2/libexec


/apache2/logs/error_log contains the following :

[Tue Aug 20 02:08:20 2002] [error] [client 192.168.0.7] File does not exist:
/usr/local/apache2/htdocs/examples/

indicating that it isn't even trying to redirect and looks for /examples
under /apache2/htdocs
Can someone please help me (thanks to those who have already tried), can
someone see a problem with my configuration ?



Scott Adamson
Systems Administrator
Syware Technology

[EMAIL PROTECTED]
http://upe.com.au


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: OFF-TOPIC: Pointers to CallableStatement docs?

2002-08-20 Thread Peter Lin


correct me if I'm wrong, but I count only 10
parameters. in one line you have
cstmt.registerOutParameter(11, Types.VARCHAR);

where is the 11th parameter?

peter lin



--- "Turner, John" <[EMAIL PROTECTED]> wrote:
> 
> Thanks, but I'm not getting any Java-related error
> messages.  The Java code
> just blows right on through, as everything keys off
> of the return status,
> which is always "false" or "negative".  This is
> because the stored procedure
> never executes, and according to the debug log
> printed by the driver, it's
> parameter related...that is, whatever I am doing
> with set*() and
> registerOutParameter() doesn't match up with what
> the procedure is
> expecting.
> 
> That's my question...can anyone point me to a
> resource that shows how to
> call real-world stored procedures correctly with
> CallableStatement?  By
> "real-world" I don't mean rudimentary "take two
> numbers and add them
> together" or "get a row from a table" procedures, I
> can already do that.
> I'm looking for a more advanced tutorial, something
> that shows how to have
> inputs, outputs, in/outputs, and a return status,
> all at once.  It must be
> possible, I just can't figure it out, and can't find
> any resources that
> explain how to do it.  We have VB DLLs calling these
> procedures in
> production, so I know the procedures work, at least
> in conjunction with VB.
> 
> John Turner
> 
> -Original Message-
> From: Jim Urban
> [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 19, 2002 5:05 PM
> To: 'Tomcat Users List'
> Subject: RE: OFF-TOPIC: Pointers to
> CallableStatement docs?
> 
> 
> What error are you receiving?  Can you post a stack
> trace and a code clip
> with line numbers so we can see what is failing?
> 
> 
> Jim Urban - [EMAIL PROTECTED]
> Park City Solutions Inc.
> Clinical Connectivity Suite Product Manager
> Suite 295
> 500 Park Blvd.
> Itasca, IL  60143
> Voice:  (630) 250-3045 x106
> Fax:  (630) 250-3046
> 
> CONFIDENTIALITY NOTICE
> This message and any included attachments are from
> Park City Solutions Inc.
> and are intended only for the entity to which it is
> addressed. The contained
> information is confidential and privileged material.
> If you are not the
> intended recipient, you are hereby notified that any
> use, dissemination, or
> copying of this communication is strictly prohibited
> and may be unlawful. If
> you have received this communication in error please
> notify the sender of
> the delivery error by e-mail or call Park City
> Solutions Inc. corporate
> offices at (435) 654-0621
> 
> -Original Message-
> From: Turner, John [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 19, 2002 1:27 PM
> To: 'Tomcat Users List'
> Subject: RE: OFF-TOPIC: Pointers to
> CallableStatement docs?
> 
> 
> Thanks!  I've set up my code as you've described,
> but no luck.  For example,
> here is the relevant portion of the stored procedure
> declaring the
> parameters (forgive me, I don't work with stored
> procedures that often, so
> this may not be the right portion of the procedure
> to focus on):
> 
> @userid_in varchar(8),
> @password_in varchar(8),
> @ip_addr varchar(15),
> @http_referer varchar(80),
> @http_user_agent varchar(80),
> @pwdvalid bit OUTPUT,
> @userenabled bit OUTPUT,
> @graceexceeded bit OUTPUT,
> @adminuser char(1) OUTPUT,
> @title varchar(4) OUTPUT
> 
> My code looks like this:
> 
> // prepare the stored procedure statement
> try {
> cstmt = sConn.prepareCall("{? = call
> sp_validate_pwd(?,?,?,?,?,?,?,?,?,?)}");
> } catch (SQLException sqle) {
> sqle.printStackTrace();
> }
> 
> // set the input parameters
> try {
> cstmt.setString(2, strUserID);
> cstmt.setString(3, strPassword);
> cstmt.setString(4, strRemoteAddress);
> cstmt.setString(5, strReferURL);
> cstmt.setString(6, strHTTPUserAgent);
> } catch (Exception e) {
> e.printStackTrace();
> }
> 
> // register the output parameters for the
> stored procedure
> try {
> cstmt.registerOutParameter(1,
> Types.INTEGER);
> cstmt.registerOutParameter(7,
> Types.BIT);
> cstmt.registerOutParameter(8,
> Types.BIT);
> cstmt.registerOutParameter(9,
> Types.BIT);
> cstmt.registerOutParameter(10,
> Types.CHAR);
> cstmt.registerOutParameter(11,
> Types.VARCHAR);
> } catch (Exception e) {
> e.printStackTrace();
> }
> 
> // execute the stored procedure
> try {
> cstmt.execute();
> } catch (SQLException sqle) {
> sqle.printStackTrace();
> }
> 
> // grab the results from the stored
> procedure call
> try {
> spReturnStatus = cstmt.getInt(1);
> isValid = cstmt.getBoolean(7);
> 

RE: OFF-TOPIC: Pointers to CallableStatement docs?

2002-08-20 Thread Turner, John


The 11th is the return_status.  Actually, #1 is the return status.
According to the CallableStatement docs, you have to account for every "?"
in your statement.  There is 1 return status, 5 input parameters, and 5
output parameters: 1 + 5 + 5 = 11.

cstmt = sConn.prepareCall("{? = call
sp_validate_pwd(?,?,?,?,?,?,?,?,?,?)}");

John Turner

-Original Message-
From: Peter Lin [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 20, 2002 8:07 AM
To: Tomcat Users List
Subject: RE: OFF-TOPIC: Pointers to CallableStatement docs?



correct me if I'm wrong, but I count only 10
parameters. in one line you have
cstmt.registerOutParameter(11, Types.VARCHAR);

where is the 11th parameter?

peter lin



--- "Turner, John" <[EMAIL PROTECTED]> wrote:
> 
> Thanks, but I'm not getting any Java-related error
> messages.  The Java code
> just blows right on through, as everything keys off
> of the return status,
> which is always "false" or "negative".  This is
> because the stored procedure
> never executes, and according to the debug log
> printed by the driver, it's
> parameter related...that is, whatever I am doing
> with set*() and
> registerOutParameter() doesn't match up with what
> the procedure is
> expecting.
> 
> That's my question...can anyone point me to a
> resource that shows how to
> call real-world stored procedures correctly with
> CallableStatement?  By
> "real-world" I don't mean rudimentary "take two
> numbers and add them
> together" or "get a row from a table" procedures, I
> can already do that.
> I'm looking for a more advanced tutorial, something
> that shows how to have
> inputs, outputs, in/outputs, and a return status,
> all at once.  It must be
> possible, I just can't figure it out, and can't find
> any resources that
> explain how to do it.  We have VB DLLs calling these
> procedures in
> production, so I know the procedures work, at least
> in conjunction with VB.
> 
> John Turner
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: BAD packet - Apache 2.0.39 + mod_jk (or mod_webapp) on linux

2002-08-20 Thread Turner, John


I notice you mentioned that you had copied the JAR files to
CATALINA_HOME/common after building the connector.  This is one area that
confuses me about connecting apache to tomcat with mod_jk.  The docs I read
told me to build those JARs, but I don't have them anywhere in my
CATALINA_HOME tree, I left them in the source-build directory.  As far as I
can tell, they aren't needed.

This might be the problem, or, if it isn't, did you find a resource
someplace that explained what the JAR files are for, where they should go,
and why?  I didn't find one, and would be interested in reading it.

My memory is hazy, too, but it seems to me that apache 2.x requires mod_jk2,
not mod_jk.  If I have a chance today I will build 2.0.39 from source and
see if it works instead of 1.3.26 in my currently-working
apache+tomcat+mod_jk environment.

John Turner
[EMAIL PROTECTED]


-Original Message-
From: Mathew Pole [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 20, 2002 3:28 AM
To: '[EMAIL PROTECTED]'
Subject: BAD packet - Apache 2.0.39 + mod_jk (or mod_webapp) on linux


Hi ,

At first glance the following combination sounded like a great idea
(especially as I had success with this on windows 2000):
tomcat 4.0.4 
tomcat connectors 4.0.4 
apache 2.0.39 
linux (gentoo 1.2 distribution)
In reality it has proved very challenging. I've tried the following:

Following instructions provided by John Turner in
http://www.johnturner.com/howto/apache-tomcat-howto.html, I came across a
couple of issues which I resolved by 
failed trying to build the mod_jk.so, but after setting apache13.home to a
bogus location and running ant native it appears to have worked 
copied jk/build/lib/mod_jk.so apache2/modules 
copied jk/build/lib/*.jar to tomcat/common 
updated apache.conf file as suggested 
updated server.xml as suggested, with addition of
modJk="/usr/local/apache2/modules/mod_jk.so" in the listener definition
Currently, in the tomcat/logs/catalina.out file the following text is
appearing (note the string after In : : [ changes, but 4/843 remains
constant):

   BAD packet 256
   In: : [B@3e58d4 4/843

followed by what appears to be some hex output of mainly 00s.

My suspicion is that this error is caused by one of:
mod_jk.so being compiled incorrectly 
connector jar files being compiled incorrectly or being in the wrong place 
incorrect configuration
I've also attached logs & configuration files to this email. Hopefully this
is enough information for someone to help me.

In addition to this I looked at the instructions in
http://wass.homelinux.net/howtos/Jakarta_How-To.shtml, but the
mod-jk-303-ap20.so doesn't work with apache 2.0.39.



Regards,
   Mathew
--
Mathew Pole 
Web Architect, Gerard Industries
email: [EMAIL PROTECTED]
phone: 08 8269 0511 ext 313, fax: 08 8340 1212, mobile: 0403 164 617

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Tomcat crashes

2002-08-20 Thread Kingston Sew

Hi
 
I am currently running Tomcat 4.0.4 Server on a 
Windows 2000 Server (v5.0.2195) with MS SQL
Server 2000 (v8.00.194) and J2SDK 1.4.0. I am also
using JDBC-ODBC bridge to access the database. After
conducting a few tests on my application, I notice
that sometimes Tomcat crashes. When I check the
server, the Tomcat console is missing. I receive the
following log file as shown belo

Can anyone help me with this problem

Thanks
Kingston Sew



An unexpected exception has been detected in native
code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION
occurred at PC=0x41166ABA
Function=SQLGetData+0x15
Library=C:\WINNT\System32\SQLSRV32.dll

Current Java thread:
at sun.jdbc.odbc.JdbcOdbc.getDataString(Native
Method)
at
sun.jdbc.odbc.JdbcOdbc.SQLGetDataString(JdbcOdbc.java:3285)
at
sun.jdbc.odbc.JdbcOdbcResultSet.getDataString(JdbcOdbcResultSet.java:5494)
at
sun.jdbc.odbc.JdbcOdbcResultSet.getString(JdbcOdbcResultSet.java:342)
at
com.applied.hr.ProcessJobClassification.ListAll(ProcessJobClassification.java:221)
at
org.apache.jsp.lu_0005fjob$jsp._jspService(lu_0005fjob$jsp.java:216)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
at java.lang.Thread.run(Thread.java:536)

Dynamic libraries:
0x0040 - 0x00406000 C:\j2sdk1.4.0\bin\java.exe
0x77F8 - 0x77FF9000 C:\WINNT\System32\ntdll.dll
0x77DB - 0x77E0A000 
C:\WINNT\system32\ADVAPI32.dll
0x77E8 - 0x77F36000 
C:\WINNT\system32\KERNEL32.DLL
0x77D4 - 0x77DAF000 C:\WINNT\system32\RPCRT4.DLL
0x7800 - 0x78046000 C:\WINNT\system32\MSVCRT.dll
0x6D33 - 0x6D442000 
C:\j2sdk1.4.0\jre\bin\client\jvm.dll
0x77E1 - 0x77E75000 C:\WINNT\system32\USER32.dll
0x77F4 - 0x77F7C000 C:\WINNT\system32\GDI32.DLL
0x7757 - 0x775A C:\WINNT\System32\WINMM.dll
0x6D1D - 0x6D1D7000 C:\j2sdk1.4.0\jre\bin\hpi.dll
0x6D30 - 0x6D30D000 

Tomcat crashes

2002-08-20 Thread Kingston Sew

Hi
 
I am currently running Tomcat 4.0.4 Server on a 
Windows 2000 Server (v5.0.2195) with MS SQL
Server 2000 (v8.00.194) and J2SDK 1.4.0. I am also
using JDBC-ODBC bridge to access the database. After
conducting a few tests on my application, I notice
that sometimes Tomcat crashes. When I check the
server, the Tomcat console is missing. I receive the
following log file as shown belo

Can anyone help me with this problem

Thanks
Kingston Sew



An unexpected exception has been detected in native
code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION
occurred at PC=0x41166ABA
Function=SQLGetData+0x15
Library=C:\WINNT\System32\SQLSRV32.dll

Current Java thread:
at sun.jdbc.odbc.JdbcOdbc.getDataString(Native
Method)
at
sun.jdbc.odbc.JdbcOdbc.SQLGetDataString(JdbcOdbc.java:3285)
at
sun.jdbc.odbc.JdbcOdbcResultSet.getDataString(JdbcOdbcResultSet.java:5494)
at
sun.jdbc.odbc.JdbcOdbcResultSet.getString(JdbcOdbcResultSet.java:342)
at
com.applied.hr.ProcessJobClassification.ListAll(ProcessJobClassification.java:221)
at
org.apache.jsp.lu_0005fjob$jsp._jspService(lu_0005fjob$jsp.java:216)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
at java.lang.Thread.run(Thread.java:536)

Dynamic libraries:
0x0040 - 0x00406000 C:\j2sdk1.4.0\bin\java.exe
0x77F8 - 0x77FF9000 C:\WINNT\System32\ntdll.dll
0x77DB - 0x77E0A000 
C:\WINNT\system32\ADVAPI32.dll
0x77E8 - 0x77F36000 
C:\WINNT\system32\KERNEL32.DLL
0x77D4 - 0x77DAF000 C:\WINNT\system32\RPCRT4.DLL
0x7800 - 0x78046000 C:\WINNT\system32\MSVCRT.dll
0x6D33 - 0x6D442000 
C:\j2sdk1.4.0\jre\bin\client\jvm.dll
0x77E1 - 0x77E75000 C:\WINNT\system32\USER32.dll
0x77F4 - 0x77F7C000 C:\WINNT\system32\GDI32.DLL
0x7757 - 0x775A C:\WINNT\System32\WINMM.dll
0x6D1D - 0x6D1D7000 C:\j2sdk1.4.0\jre\bin\hpi.dll
0x6D30 - 0x6D30D000 

Tomcat Crashes

2002-08-20 Thread Kingston Sew

Hi
 
I am currently running Tomcat 4.0.4 Server on a 
Windows 2000 Server (v5.0.2195) with MS SQL
Server 2000 (v8.00.194) and J2SDK 1.4.0. I am also
using JDBC-ODBC bridge to access the database. After
conducting a few tests on my application, I notice
that sometimes Tomcat crashes. When I check the
server, the Tomcat console is missing. I receive the
following log file as shown belo

Can anyone help me with this problem

Thanks
Kingston Sew



An unexpected exception has been detected in native
code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION
occurred at PC=0x41166ABA
Function=SQLGetData+0x15
Library=C:\WINNT\System32\SQLSRV32.dll

Current Java thread:
at sun.jdbc.odbc.JdbcOdbc.getDataString(Native
Method)
at
sun.jdbc.odbc.JdbcOdbc.SQLGetDataString(JdbcOdbc.java:3285)
at
sun.jdbc.odbc.JdbcOdbcResultSet.getDataString(JdbcOdbcResultSet.java:5494)
at
sun.jdbc.odbc.JdbcOdbcResultSet.getString(JdbcOdbcResultSet.java:342)
at
com.applied.hr.ProcessJobClassification.ListAll(ProcessJobClassification.java:221)
at
org.apache.jsp.lu_0005fjob$jsp._jspService(lu_0005fjob$jsp.java:216)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
at java.lang.Thread.run(Thread.java:536)

Dynamic libraries:
0x0040 - 0x00406000 C:\j2sdk1.4.0\bin\java.exe
0x77F8 - 0x77FF9000 C:\WINNT\System32\ntdll.dll
0x77DB - 0x77E0A000 
C:\WINNT\system32\ADVAPI32.dll
0x77E8 - 0x77F36000 
C:\WINNT\system32\KERNEL32.DLL
0x77D4 - 0x77DAF000 C:\WINNT\system32\RPCRT4.DLL
0x7800 - 0x78046000 C:\WINNT\system32\MSVCRT.dll
0x6D33 - 0x6D442000 
C:\j2sdk1.4.0\jre\bin\client\jvm.dll
0x77E1 - 0x77E75000 C:\WINNT\system32\USER32.dll
0x77F4 - 0x77F7C000 C:\WINNT\system32\GDI32.DLL
0x7757 - 0x775A C:\WINNT\System32\WINMM.dll
0x6D1D - 0x6D1D7000 C:\j2sdk1.4.0\jre\bin\hpi.dll
0x6D30 - 0x6D30D000 

Tomcat Crashes

2002-08-20 Thread Kingston Sew

Hi
 
I am currently running Tomcat 4.0.4 Server on a 
Windows 2000 Server (v5.0.2195) with MS SQL
Server 2000 (v8.00.194) and J2SDK 1.4.0. I am also
using JDBC-ODBC bridge to access the database. After
conducting a few tests on my application, I notice
that sometimes Tomcat crashes. When I check the
server, the Tomcat console is missing. I receive the
following log file as shown belo

Can anyone help me with this problem

Thanks
Kingston Sew



An unexpected exception has been detected in native
code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION
occurred at PC=0x41166ABA
Function=SQLGetData+0x15
Library=C:\WINNT\System32\SQLSRV32.dll

Current Java thread:
at sun.jdbc.odbc.JdbcOdbc.getDataString(Native
Method)
at
sun.jdbc.odbc.JdbcOdbc.SQLGetDataString(JdbcOdbc.java:3285)
at
sun.jdbc.odbc.JdbcOdbcResultSet.getDataString(JdbcOdbcResultSet.java:5494)
at
sun.jdbc.odbc.JdbcOdbcResultSet.getString(JdbcOdbcResultSet.java:342)
at
com.applied.hr.ProcessJobClassification.ListAll(ProcessJobClassification.java:221)
at
org.apache.jsp.lu_0005fjob$jsp._jspService(lu_0005fjob$jsp.java:216)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
at java.lang.Thread.run(Thread.java:536)

Dynamic libraries:
0x0040 - 0x00406000 C:\j2sdk1.4.0\bin\java.exe
0x77F8 - 0x77FF9000 C:\WINNT\System32\ntdll.dll
0x77DB - 0x77E0A000 
C:\WINNT\system32\ADVAPI32.dll
0x77E8 - 0x77F36000 
C:\WINNT\system32\KERNEL32.DLL
0x77D4 - 0x77DAF000 C:\WINNT\system32\RPCRT4.DLL
0x7800 - 0x78046000 C:\WINNT\system32\MSVCRT.dll
0x6D33 - 0x6D442000 
C:\j2sdk1.4.0\jre\bin\client\jvm.dll
0x77E1 - 0x77E75000 C:\WINNT\system32\USER32.dll
0x77F4 - 0x77F7C000 C:\WINNT\system32\GDI32.DLL
0x7757 - 0x775A C:\WINNT\System32\WINMM.dll
0x6D1D - 0x6D1D7000 C:\j2sdk1.4.0\jre\bin\hpi.dll
0x6D30 - 0x6D30D000 

Tomcat Crash

2002-08-20 Thread Kingston Sew

Hi
 
I am currently running Tomcat 4.0.4 Server on a 
Windows 2000 Server (v5.0.2195) with MS SQL
Server 2000 (v8.00.194) and J2SDK 1.4.0. I am also
using JDBC-ODBC bridge to access the database. After
conducting a few tests on my application, I notice
that sometimes Tomcat crashes. When I check the
server, the Tomcat console is missing. I receive the
following log file as shown belo

Can anyone help me with this problem

Thanks
Kingston Sew



An unexpected exception has been detected in native
code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION
occurred at PC=0x41166ABA
Function=SQLGetData+0x15
Library=C:\WINNT\System32\SQLSRV32.dll

Current Java thread:
at sun.jdbc.odbc.JdbcOdbc.getDataString(Native
Method)
at
sun.jdbc.odbc.JdbcOdbc.SQLGetDataString(JdbcOdbc.java:3285)
at
sun.jdbc.odbc.JdbcOdbcResultSet.getDataString(JdbcOdbcResultSet.java:5494)
at
sun.jdbc.odbc.JdbcOdbcResultSet.getString(JdbcOdbcResultSet.java:342)
at
com.applied.hr.ProcessJobClassification.ListAll(ProcessJobClassification.java:221)
at
org.apache.jsp.lu_0005fjob$jsp._jspService(lu_0005fjob$jsp.java:216)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
at java.lang.Thread.run(Thread.java:536)

Dynamic libraries:
0x0040 - 0x00406000 C:\j2sdk1.4.0\bin\java.exe
0x77F8 - 0x77FF9000 C:\WINNT\System32\ntdll.dll
0x77DB - 0x77E0A000 
C:\WINNT\system32\ADVAPI32.dll
0x77E8 - 0x77F36000 
C:\WINNT\system32\KERNEL32.DLL
0x77D4 - 0x77DAF000 C:\WINNT\system32\RPCRT4.DLL
0x7800 - 0x78046000 C:\WINNT\system32\MSVCRT.dll
0x6D33 - 0x6D442000 
C:\j2sdk1.4.0\jre\bin\client\jvm.dll
0x77E1 - 0x77E75000 C:\WINNT\system32\USER32.dll
0x77F4 - 0x77F7C000 C:\WINNT\system32\GDI32.DLL
0x7757 - 0x775A C:\WINNT\System32\WINMM.dll
0x6D1D - 0x6D1D7000 C:\j2sdk1.4.0\jre\bin\hpi.dll
0x6D30 - 0x6D30D000 

Tomcat Crash

2002-08-20 Thread Kingston Sew

Hi
 
I am currently running Tomcat 4.0.4 Server on a 
Windows 2000 Server (v5.0.2195) with MS SQL
Server 2000 (v8.00.194) and J2SDK 1.4.0. I am also
using JDBC-ODBC bridge to access the database. After
conducting a few tests on my application, I notice
that sometimes Tomcat crashes. When I check the
server, the Tomcat console is missing. I receive the
following log file as shown belo

Can anyone help me with this problem

Thanks
Kingston Sew



An unexpected exception has been detected in native
code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION
occurred at PC=0x41166ABA
Function=SQLGetData+0x15
Library=C:\WINNT\System32\SQLSRV32.dll

Current Java thread:
at sun.jdbc.odbc.JdbcOdbc.getDataString(Native
Method)
at
sun.jdbc.odbc.JdbcOdbc.SQLGetDataString(JdbcOdbc.java:3285)
at
sun.jdbc.odbc.JdbcOdbcResultSet.getDataString(JdbcOdbcResultSet.java:5494)
at
sun.jdbc.odbc.JdbcOdbcResultSet.getString(JdbcOdbcResultSet.java:342)
at
com.applied.hr.ProcessJobClassification.ListAll(ProcessJobClassification.java:221)
at
org.apache.jsp.lu_0005fjob$jsp._jspService(lu_0005fjob$jsp.java:216)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
at java.lang.Thread.run(Thread.java:536)


Local Time = Tue Aug 20 15:04:56 2002
Elapsed Time = 78257
#
# The exception above was detected in native code
outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.4.0-b92 mixed
mode)
#


__
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Tomcat Crashes

2002-08-20 Thread Turner, John


Have you tried the Microsoft Type 4 JDBC driver?

It's free:
http://msdn.microsoft.com/downloads/default.asp?URL=/downloads/sample.asp?ur
l=/msdn-files/027/001/779/msdncompositedoc.xml

John Turner
[EMAIL PROTECTED]


-Original Message-
From: Kingston Sew [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 20, 2002 8:26 AM
To: [EMAIL PROTECTED]
Subject: Tomcat Crashes


Hi
 
I am currently running Tomcat 4.0.4 Server on a 
Windows 2000 Server (v5.0.2195) with MS SQL
Server 2000 (v8.00.194) and J2SDK 1.4.0. I am also
using JDBC-ODBC bridge to access the database. After
conducting a few tests on my application, I notice
that sometimes Tomcat crashes. When I check the
server, the Tomcat console is missing. I receive the
following log file as shown belo

Can anyone help me with this problem

Thanks
Kingston Sew



An unexpected exception has been detected in native
code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION
occurred at PC=0x41166ABA
Function=SQLGetData+0x15
Library=C:\WINNT\System32\SQLSRV32.dll

Current Java thread:
at sun.jdbc.odbc.JdbcOdbc.getDataString(Native
Method)
at
sun.jdbc.odbc.JdbcOdbc.SQLGetDataString(JdbcOdbc.java:3285)
at
sun.jdbc.odbc.JdbcOdbcResultSet.getDataString(JdbcOdbcResultSet.java:5494)
at
sun.jdbc.odbc.JdbcOdbcResultSet.getString(JdbcOdbcResultSet.java:342)
at
com.applied.hr.ProcessJobClassification.ListAll(ProcessJobClassification.jav
a:221)
at
org.apache.jsp.lu_0005fjob$jsp._jspService(lu_0005fjob$jsp.java:216)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:201)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1027)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125
)
at java.lang.Thread.run(Thread.java:536)

Dynamic libraries:
0x0040 - 0x00406000 C:\j2sdk1.4.0\bin\java.exe
0x77F8 - 0x77FF9000 C:\WINNT\System32\ntdll.dll
0x77DB - 0x77E0A000 
C:\WINNT\system32\ADVAPI32.dll
0x77E8 - 0x77F36000 
C:\WINNT\system32\KERNEL32.DLL
0x77D4 - 0x77DAF000 C:\WINNT\system32\R

RE: Tomcat Crash

2002-08-20 Thread Sullivan, Mark E

how many times do you plan on posting this? That's 6 so far. That's a
problem with the JDBC-ODBC bridge. Try upgrading the bridge or moving to the
jdbc driver, which is freely available on the microsoft site.

> -Original Message-
> From: Kingston Sew [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 20, 2002 7:29 AM
> To: [EMAIL PROTECTED]
> Subject: Tomcat Crash
> 
> 
> Hi
>  
> I am currently running Tomcat 4.0.4 Server on a 
> Windows 2000 Server (v5.0.2195) with MS SQL
> Server 2000 (v8.00.194) and J2SDK 1.4.0. I am also
> using JDBC-ODBC bridge to access the database. After
> conducting a few tests on my application, I notice
> that sometimes Tomcat crashes. When I check the
> server, the Tomcat console is missing. I receive the
> following log file as shown belo
> 
> Can anyone help me with this problem
> 
> Thanks
> Kingston Sew
> 
> 
> 
> An unexpected exception has been detected in native
> code outside the VM.
> Unexpected Signal : EXCEPTION_ACCESS_VIOLATION
> occurred at PC=0x41166ABA
> Function=SQLGetData+0x15
> Library=C:\WINNT\System32\SQLSRV32.dll
> 
> Current Java thread:
>   at sun.jdbc.odbc.JdbcOdbc.getDataString(Native
> Method)
>   at
> sun.jdbc.odbc.JdbcOdbc.SQLGetDataString(JdbcOdbc.java:3285)
>   at
> sun.jdbc.odbc.JdbcOdbcResultSet.getDataString(JdbcOdbcResultSe
> t.java:5494)
>   at
> sun.jdbc.odbc.JdbcOdbcResultSet.getString(JdbcOdbcResultSet.java:342)
>   at
> com.applied.hr.ProcessJobClassification.ListAll(ProcessJobClas
> sification.java:221)
>   at
> org.apache.jsp.lu_0005fjob$jsp._jspService(lu_0005fjob$jsp.java:216)
>   at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
>   at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>   at
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service
> (JspServlet.java:201)
>   at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
> .java:381)
>   at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
>   at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>   at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
> er(ApplicationFilterChain.java:247)
>   at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
> cationFilterChain.java:193)
>   at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
> rapperValve.java:243)
>   at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:566)
>   at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:472)
>   at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>   at
> org.apache.catalina.core.StandardContextValve.invoke(StandardC
> ontextValve.java:190)
>   at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:566)
>   at
> org.apache.catalina.valves.CertificatesValve.invoke(Certificat
> esValve.java:246)
>   at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:564)
>   at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:472)
>   at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>   at
> org.apache.catalina.core.StandardContext.invoke(StandardContex
> t.java:2347)
>   at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHost
> Valve.java:180)
>   at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:566)
>   at
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi
> spatcherValve.java:170)
>   at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:564)
>   at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport
> Valve.java:170)
>   at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:564)
>   at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValv
> e.java:468)
>   at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:564)
>   at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:472)
>   at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>   at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEn
> gineValve.java:174)
>   at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:566)
>   at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:472)
>   at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>   at
> org.apache.catalina.connector.http.HttpProcessor.process(HttpP
> rocessor.java:1027)
>   at
> org.apache.catalina.connector.http.HttpProcessor.run(HttpProce
> ssor.java:1125)
>   at java.lang.Thread.run(Thread.java:536)
> 
> 
> Local Time = Tue Aug 20 15:04:56 2002
> Elapsed Time = 78257
> #
> # The exception above wa

RES: Too many threads

2002-08-20 Thread Ronaldo

Thanks for your atention Shapira, but I did search a lot in google for this
topics, but nobody seemed to have this kind of problem. I did read all
tomcat config docs, but the container seems to ignore my maxProcessors
parameter and starts lots of threads. I realy don't know what else to do.
I'm trying diferent connector at this time. I was using ajp 1.2, migrated to
1.3, and nothing, so I went to coyote and another deception, it stills
starts more threads than the parameter I set, it also happens to tomcats
examples, so the problem is not with my application otherwise it would not
happen to tomcats examples, I supose.
 Then again, thanks for your atention, hope you, or anobody else, can help
me with this, I'm running out of time,

 Ronaldo Florence

-Mensagem original-
De: Shapira, Yoav [mailto:[EMAIL PROTECTED]]
Enviada em: segunda-feira, 19 de agosto de 2002 09:58
Para: Tomcat Users List
Assunto: RE: Too many threads


Hi,
The threading implementation of the JVM depends on the OS to some
extent.  Linux uses native threads as opposed to green or p threads, so
you see more processes at the OS-level.  You can google search for any
of the above terms and you'll find a ton of references.

For the tomcat configuration reference regarding acceptCount,
minProcessors, and maxProcessors, all of which affect the number of
threads used by tomcat, see:
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/http11.html

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Ronaldo [mailto:[EMAIL PROTECTED]]
>Sent: Saturday, August 17, 2002 10:17 AM
>To: Tomcat Users List
>Subject: Too many threads
>
>Hi,
>  I'm developing a web aplication with jsp and servlets, and I'm beging
to
>use tomcat.
>  The only problem I'm having is, when I make a stress test on my
tomcat
>(4.0.4 on RH Linux) the server create as many threads as the number of
>requests. Is this normal? shuldn't be some kind of inteligent thread
pool?
>Because, I get over 800 threads and my test machine isn't that much so
it
>crashs all the time, because tomcat is eating more than 200 M of
memory.
>Can anyone help me on this?
>
>Even not, thanks a lot,
>
>Ronaldo Florence
>
>
>--
>To unsubscribe, e-mail:   [EMAIL PROTECTED]>
>For additional commands, e-mail: [EMAIL PROTECTED]>



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Tomcat Crashes

2002-08-20 Thread Larry Meadors

It is the JDBC-ODBC stuff. Unless there is NO OTHER POSSIBLE WAY to
connect to your database, do not ever use the JDBC-ODBC bridge except to
convert your data to another format.

It looks from the error that you are using M$ SQL Server. M$ has jdbc
drivers for SQL2000, but not for earlier versions - there are open
source ones though.

If you are not constrained to use SQL Server, get MySQL (it is free) and
convert your data. M$ products (in general) are not very
"java-friendly".

Larry

>>> [EMAIL PROTECTED] 08/20/02 06:26 AM >>>
Hi
 
I am currently running Tomcat 4.0.4 Server on a 
Windows 2000 Server (v5.0.2195) with MS SQL
Server 2000 (v8.00.194) and J2SDK 1.4.0. I am also
using JDBC-ODBC bridge to access the database. After
conducting a few tests on my application, I notice
that sometimes Tomcat crashes. When I check the
server, the Tomcat console is missing. I receive the
following log file as shown belo

Can anyone help me with this problem

Thanks
Kingston Sew

An unexpected exception has been detected in native
code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION
occurred at PC=0x41166ABA
Function=SQLGetData+0x15
Library=C:\WINNT\System32\SQLSRV32.dll



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: OFF-TOPIC: Pointers to CallableStatement docs?

2002-08-20 Thread Jim Urban

BTW: What JDBC driver are you using?  We had tried the MS driver and had
problems using it with stored procs.  We ended up using a 3rd party driver
which we had to pay for.


Jim Urban - [EMAIL PROTECTED]
Park City Solutions Inc.
Clinical Connectivity Suite Product Manager
Suite 295
500 Park Blvd.
Itasca, IL  60143
Voice:  (630) 250-3045 x106
Fax:  (630) 250-3046

CONFIDENTIALITY NOTICE
This message and any included attachments are from Park City Solutions Inc.
and are intended only for the entity to which it is addressed. The contained
information is confidential and privileged material. If you are not the
intended recipient, you are hereby notified that any use, dissemination, or
copying of this communication is strictly prohibited and may be unlawful. If
you have received this communication in error please notify the sender of
the delivery error by e-mail or call Park City Solutions Inc. corporate
offices at (435) 654-0621

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 20, 2002 6:49 AM
To: 'Tomcat Users List'
Subject: RE: OFF-TOPIC: Pointers to CallableStatement docs?


Thanks, but I'm not getting any Java-related error messages.  The Java code
just blows right on through, as everything keys off of the return status,
which is always "false" or "negative".  This is because the stored procedure
never executes, and according to the debug log printed by the driver, it's
parameter related...that is, whatever I am doing with set*() and
registerOutParameter() doesn't match up with what the procedure is
expecting.

That's my question...can anyone point me to a resource that shows how to
call real-world stored procedures correctly with CallableStatement?  By
"real-world" I don't mean rudimentary "take two numbers and add them
together" or "get a row from a table" procedures, I can already do that.
I'm looking for a more advanced tutorial, something that shows how to have
inputs, outputs, in/outputs, and a return status, all at once.  It must be
possible, I just can't figure it out, and can't find any resources that
explain how to do it.  We have VB DLLs calling these procedures in
production, so I know the procedures work, at least in conjunction with VB.

John Turner

-Original Message-
From: Jim Urban [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 19, 2002 5:05 PM
To: 'Tomcat Users List'
Subject: RE: OFF-TOPIC: Pointers to CallableStatement docs?


What error are you receiving?  Can you post a stack trace and a code clip
with line numbers so we can see what is failing?


Jim Urban - [EMAIL PROTECTED]
Park City Solutions Inc.
Clinical Connectivity Suite Product Manager
Suite 295
500 Park Blvd.
Itasca, IL  60143
Voice:  (630) 250-3045 x106
Fax:  (630) 250-3046

CONFIDENTIALITY NOTICE
This message and any included attachments are from Park City Solutions Inc.
and are intended only for the entity to which it is addressed. The contained
information is confidential and privileged material. If you are not the
intended recipient, you are hereby notified that any use, dissemination, or
copying of this communication is strictly prohibited and may be unlawful. If
you have received this communication in error please notify the sender of
the delivery error by e-mail or call Park City Solutions Inc. corporate
offices at (435) 654-0621

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 19, 2002 1:27 PM
To: 'Tomcat Users List'
Subject: RE: OFF-TOPIC: Pointers to CallableStatement docs?


Thanks!  I've set up my code as you've described, but no luck.  For example,
here is the relevant portion of the stored procedure declaring the
parameters (forgive me, I don't work with stored procedures that often, so
this may not be the right portion of the procedure to focus on):

@userid_in varchar(8),
@password_in varchar(8),
@ip_addr varchar(15),
@http_referer varchar(80),
@http_user_agent varchar(80),
@pwdvalid bit OUTPUT,
@userenabled bit OUTPUT,
@graceexceeded bit OUTPUT,
@adminuser char(1) OUTPUT,
@title varchar(4) OUTPUT

My code looks like this:

// prepare the stored procedure statement
try {
cstmt = sConn.prepareCall("{? = call
sp_validate_pwd(?,?,?,?,?,?,?,?,?,?)}");
} catch (SQLException sqle) {
sqle.printStackTrace();
}

// set the input parameters
try {
cstmt.setString(2, strUserID);
cstmt.setString(3, strPassword);
cstmt.setString(4, strRemoteAddress);
cstmt.setString(5, strReferURL);
cstmt.setString(6, strHTTPUserAgent);
} catch (Exception e) {
e.printStackTrace();
}

// register the output parameters for the stored procedure
try {
cstmt.registerOutParameter(1, Types.INTEGER);
cstmt.registerOutParameter(7, Types.BIT);
cstmt.registerOut

Re: How to change the package definition from org.apache.jsp to something else ?

2002-08-20 Thread Navdeep Singh

Thanks Craing !

As I said, problem is that these .java and .class files land in
/work/localhost/_/ directory with package definition of org.apache.jsp. This
is logically not correct and I cannot use jbuilder to debug the JSP as it
requires the files to be at a correct place. Do we have a workaround to make
this work ?

thanks again,
navdeep
- Original Message -
From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, August 20, 2002 1:26 AM
Subject: Re: How to change the package definition from org.apache.jsp to
something else ?


>
>
> On Tue, 20 Aug 2002, Navdeep Singh wrote:
>
> > Date: Tue, 20 Aug 2002 00:50:49 -0400
> > From: Navdeep Singh <[EMAIL PROTECTED]>
> > Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> > To: [EMAIL PROTECTED]
> > Subject: How to change the package definition from org.apache.jsp to
> > something else ?
> >
> > Hi,
> > I have noticed that the default package structure in my servlet source
files (compiled from JSPs) is org.apache.jsp.
> > But the .java and .class files are generated in /work/localhost/_/
directory.  How can i
> >
> > 1. Force my compiled .java and .class file to go in /work/org/apache/jsp
?
> > or
>
> You cannot do this.  The JSP specification specifically says that the page
> compiler can do whatever it wants in terms of package names, and there is
> no guarantee that the generated source file will be placed *anywhere*, let
> alone where you think it should be placed.
>
> > 2. Make .java files to include the right package in .java files (which
is /work/locahost/_/)?
>
> As long as the JSP page compiler can compile these sources (and Tomcat
> can), it should not matter to you where they are placed.
>
> >
> > thanks
> > Rob
> >
> >
> >
>
> Craig
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




no welcome file with Apache 2.0.35 + mod_webapp + tomcat 4.0.4

2002-08-20 Thread Alejandro Pastor Seva

Hi, I have a problem with apache --> mod_webapp -->tomcat:

http://myhost/jsp --> (apache) don´t work. don´t display welcome file .
tomcat display error status code 302 Moved Temporarily

http://myhost:8008/jsp --> (tomcat standalone) ok display the welcome file.

http:/myhost/jsp/index.html --> (apache) OK.

please help me

Sorry with my poor english


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: OFF-TOPIC: Pointers to CallableStatement docs?

2002-08-20 Thread Turner, John


We're using a thrid-party driver, trial version.  It's our third one (the
first two, from two other vendors, had even more problems).  The cost is
over $1000, and there's no support during the trial version.  I can't get
approval for the money unless I demonstrate that the driver will work.

John Turner


-Original Message-
From: Jim Urban [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 20, 2002 8:47 AM
To: 'Tomcat Users List'
Subject: RE: OFF-TOPIC: Pointers to CallableStatement docs?


BTW: What JDBC driver are you using?  We had tried the MS driver and had
problems using it with stored procs.  We ended up using a 3rd party driver
which we had to pay for.


Jim Urban - [EMAIL PROTECTED]
Park City Solutions Inc.
Clinical Connectivity Suite Product Manager
Suite 295
500 Park Blvd.
Itasca, IL  60143
Voice:  (630) 250-3045 x106
Fax:  (630) 250-3046

CONFIDENTIALITY NOTICE
This message and any included attachments are from Park City Solutions Inc.
and are intended only for the entity to which it is addressed. The contained
information is confidential and privileged material. If you are not the
intended recipient, you are hereby notified that any use, dissemination, or
copying of this communication is strictly prohibited and may be unlawful. If
you have received this communication in error please notify the sender of
the delivery error by e-mail or call Park City Solutions Inc. corporate
offices at (435) 654-0621

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 20, 2002 6:49 AM
To: 'Tomcat Users List'
Subject: RE: OFF-TOPIC: Pointers to CallableStatement docs?


Thanks, but I'm not getting any Java-related error messages.  The Java code
just blows right on through, as everything keys off of the return status,
which is always "false" or "negative".  This is because the stored procedure
never executes, and according to the debug log printed by the driver, it's
parameter related...that is, whatever I am doing with set*() and
registerOutParameter() doesn't match up with what the procedure is
expecting.

That's my question...can anyone point me to a resource that shows how to
call real-world stored procedures correctly with CallableStatement?  By
"real-world" I don't mean rudimentary "take two numbers and add them
together" or "get a row from a table" procedures, I can already do that.
I'm looking for a more advanced tutorial, something that shows how to have
inputs, outputs, in/outputs, and a return status, all at once.  It must be
possible, I just can't figure it out, and can't find any resources that
explain how to do it.  We have VB DLLs calling these procedures in
production, so I know the procedures work, at least in conjunction with VB.

John Turner

-Original Message-
From: Jim Urban [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 19, 2002 5:05 PM
To: 'Tomcat Users List'
Subject: RE: OFF-TOPIC: Pointers to CallableStatement docs?


What error are you receiving?  Can you post a stack trace and a code clip
with line numbers so we can see what is failing?


Jim Urban - [EMAIL PROTECTED]
Park City Solutions Inc.
Clinical Connectivity Suite Product Manager
Suite 295
500 Park Blvd.
Itasca, IL  60143
Voice:  (630) 250-3045 x106
Fax:  (630) 250-3046

CONFIDENTIALITY NOTICE
This message and any included attachments are from Park City Solutions Inc.
and are intended only for the entity to which it is addressed. The contained
information is confidential and privileged material. If you are not the
intended recipient, you are hereby notified that any use, dissemination, or
copying of this communication is strictly prohibited and may be unlawful. If
you have received this communication in error please notify the sender of
the delivery error by e-mail or call Park City Solutions Inc. corporate
offices at (435) 654-0621

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 19, 2002 1:27 PM
To: 'Tomcat Users List'
Subject: RE: OFF-TOPIC: Pointers to CallableStatement docs?


Thanks!  I've set up my code as you've described, but no luck.  For example,
here is the relevant portion of the stored procedure declaring the
parameters (forgive me, I don't work with stored procedures that often, so
this may not be the right portion of the procedure to focus on):

@userid_in varchar(8),
@password_in varchar(8),
@ip_addr varchar(15),
@http_referer varchar(80),
@http_user_agent varchar(80),
@pwdvalid bit OUTPUT,
@userenabled bit OUTPUT,
@graceexceeded bit OUTPUT,
@adminuser char(1) OUTPUT,
@title varchar(4) OUTPUT

My code looks like this:

// prepare the stored procedure statement
try {
cstmt = sConn.prepareCall("{? = call
sp_validate_pwd(?,?,?,?,?,?,?,?,?,?)}");
} catch (SQLException sqle) {
sqle.printStackTrace();
}

// set the input parameters
try {
cstmt.setString(

RE: BAD packet - Apache 2.0.39 + mod_jk (or mod_webapp) on linux

2002-08-20 Thread Turner, John


I just built apache 2.0.40 and tried to get it working with mod_jk.so on RH
7.2.  No luck...the mod_jk.so file that works with 1.3.26 is not compatible
with 2.0.40.  The error message I get is:

Cannot load /usr/local/apache2/lib/mod_jk.so into server:
/usr/local/apache2/lib/mod_jk.so: undefined symbol: ap_table_get

So, right off the bat, I can tell you that the instructions in my How-To
will only work with apache 1.3.26, not 2.0.39/40.  I will have to research
if it is a do-or-die problem with mod_jk (which means switching to mod_jk2),
or just a rebuild of mod_jk with options that allow use with apache
2.0.39/40.

John Turner

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 20, 2002 8:15 AM
To: 'Tomcat Users List'
Subject: RE: BAD packet - Apache 2.0.39 + mod_jk (or mod_webapp) on
linux



I notice you mentioned that you had copied the JAR files to
CATALINA_HOME/common after building the connector.  This is one area that
confuses me about connecting apache to tomcat with mod_jk.  The docs I read
told me to build those JARs, but I don't have them anywhere in my
CATALINA_HOME tree, I left them in the source-build directory.  As far as I
can tell, they aren't needed.

This might be the problem, or, if it isn't, did you find a resource
someplace that explained what the JAR files are for, where they should go,
and why?  I didn't find one, and would be interested in reading it.

My memory is hazy, too, but it seems to me that apache 2.x requires mod_jk2,
not mod_jk.  If I have a chance today I will build 2.0.39 from source and
see if it works instead of 1.3.26 in my currently-working
apache+tomcat+mod_jk environment.

John Turner
[EMAIL PROTECTED]


-Original Message-
From: Mathew Pole [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 20, 2002 3:28 AM
To: '[EMAIL PROTECTED]'
Subject: BAD packet - Apache 2.0.39 + mod_jk (or mod_webapp) on linux


Hi ,

At first glance the following combination sounded like a great idea
(especially as I had success with this on windows 2000):
tomcat 4.0.4 
tomcat connectors 4.0.4 
apache 2.0.39 
linux (gentoo 1.2 distribution)
In reality it has proved very challenging. I've tried the following:

Following instructions provided by John Turner in
http://www.johnturner.com/howto/apache-tomcat-howto.html, I came across a
couple of issues which I resolved by 
failed trying to build the mod_jk.so, but after setting apache13.home to a
bogus location and running ant native it appears to have worked 
copied jk/build/lib/mod_jk.so apache2/modules 
copied jk/build/lib/*.jar to tomcat/common 
updated apache.conf file as suggested 
updated server.xml as suggested, with addition of
modJk="/usr/local/apache2/modules/mod_jk.so" in the listener definition
Currently, in the tomcat/logs/catalina.out file the following text is
appearing (note the string after In : : [ changes, but 4/843 remains
constant):

   BAD packet 256
   In: : [B@3e58d4 4/843

followed by what appears to be some hex output of mainly 00s.

My suspicion is that this error is caused by one of:
mod_jk.so being compiled incorrectly 
connector jar files being compiled incorrectly or being in the wrong place 
incorrect configuration
I've also attached logs & configuration files to this email. Hopefully this
is enough information for someone to help me.

In addition to this I looked at the instructions in
http://wass.homelinux.net/howtos/Jakarta_How-To.shtml, but the
mod-jk-303-ap20.so doesn't work with apache 2.0.39.



Regards,
   Mathew
--
Mathew Pole 
Web Architect, Gerard Industries
email: [EMAIL PROTECTED]
phone: 08 8269 0511 ext 313, fax: 08 8340 1212, mobile: 0403 164 617

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Tomcat Manager App with Struts 1.1b2 - ClassCastException?

2002-08-20 Thread @Basebeans.com

Subject: Tomcat Manager App with Struts 1.1b2 - ClassCastException?
From: "Andrej Sobkowski" <[EMAIL PROTECTED]>
 ===
All,

I'm using Struts 1.1b1 with Tomcat 4.0.4, using the "manager" app to
dynamically stop/start my webapp. Everything works very well but I now need
a few fixes from Struts 1.1b2 (note the '2'). I've therefore downloaded the
b2 JAR files and copied them in my WEB-INF/lib directory (where they are
supposed to be picked up by a separate class loader, if I'm not mistaken).

When I re-deploy the webapp using the "manager", I get a ClassCastException
(reported below) from Tomcat. This doesn't happen if I restart the server
(but I lose the dynamic deployment). I believe that it's a problem with the
two versions of the struts.jar: one for the "manager" app and the new Struts
1.1b2 used by my webapp.

Is this a known bug? Am I doing something wrong? Would migrating to 4.1.x
solve the issue (I'll have to do it sometimes anyways)?

Any help is appreciated.

Thanks.

Andrej


PS. I haven't found an answer to this problem anywhere. Please send me a
link to the "solution message" if I've missed it.

java.lang.ClassCastException: org.apache.struts.action.RequestProcessor
at
org.apache.struts.action.ActionServlet.getRequestProcessor(ActionServlet.jav
a:803)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1027)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125
)
at java.lang.Thread.run(Thread.java:484)





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Dumb question

2002-08-20 Thread Kemp Randy-W18971

Thank you Jake - for replying to my question.

-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 19, 2002 2:15 PM
To: Tomcat Users List
Subject: Re: Dumb question


Hello Kemp,

Note that if a .war file exists *and* a directory with the name of the
.war file minus the .war exists, the .war will not be re-expanded upon
future restarts.  This means that Tomcat will serve stuff out of the
directory, if it exists.

So, you don't need to re-create the .war file unless you plan on
deleting the directory and letting tomcat re-deploy the .war file.
You can just drop your modified .html and .jsp files into the
directory.  There are no issues with the .html file, but there would
be with dynamic files like .jsp's.  Fortunately, .jsp's are
re-compiled and re-loaded when updated so you should see your changes
upon the first request after adding the modified file *without*
restarting Tomcat.  Note that is isn't the case for servlets.

Jake

Monday, August 19, 2002, 1:46:53 PM, you wrote:

KRW> Please forgive this dumb question - but I just don't get it.  I prepare a war 
file in Tomcat and execute it OK.  The war file consists of a few JSP and HTML pages.  
If I wish to just change one
KRW> JSP or HTML page, do I:
KRW> 1. Recreate the war file
KRW> 2. Just move the files into the expanded directory that Tomcat created for the 
war file.
KRW> 3.  Move the files into the expanded directory that Tomcat created for the war 
file - and also bring Tomcat up and down.
KRW> 4. Some other option 

KRW> --
KRW> To unsubscribe, e-mail:   
KRW> For additional commands, e-mail: 



-- 
Best regards,
 Jacobmailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Too many threads

2002-08-20 Thread Shapira, Yoav

Hi,
There are many threads in your system in addition to tomcat's http
processing threads.  You can search the list archives, a few months ago
I posted a simple "list all threads in the system" class that you can
use to see exactly what's going on.  

Please be careful to distinguish between threads in the JVM and OS-level
threads.  The mapping is not always one to one.  A good document can be
found here explaining the different JVM threading models:

http://java.sun.com/docs/hotspot/threads/threads.html

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Ronaldo [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, August 20, 2002 8:31 AM
>To: Tomcat Users List
>Subject: RES: Too many threads
>
>Thanks for your atention Shapira, but I did search a lot in google for
this
>topics, but nobody seemed to have this kind of problem. I did read all
>tomcat config docs, but the container seems to ignore my maxProcessors
>parameter and starts lots of threads. I realy don't know what else to
do.
>I'm trying diferent connector at this time. I was using ajp 1.2,
migrated
>to
>1.3, and nothing, so I went to coyote and another deception, it stills
>starts more threads than the parameter I set, it also happens to
tomcats
>examples, so the problem is not with my application otherwise it would
not
>happen to tomcats examples, I supose.
> Then again, thanks for your atention, hope you, or anobody else, can
help
>me with this, I'm running out of time,
>
> Ronaldo Florence
>
>-Mensagem original-
>De: Shapira, Yoav [mailto:[EMAIL PROTECTED]]
>Enviada em: segunda-feira, 19 de agosto de 2002 09:58
>Para: Tomcat Users List
>Assunto: RE: Too many threads
>
>
>Hi,
>The threading implementation of the JVM depends on the OS to some
>extent.  Linux uses native threads as opposed to green or p threads, so
>you see more processes at the OS-level.  You can google search for any
>of the above terms and you'll find a ton of references.
>
>For the tomcat configuration reference regarding acceptCount,
>minProcessors, and maxProcessors, all of which affect the number of
>threads used by tomcat, see:
>http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/http11.html
>
>Yoav Shapira
>Millennium ChemInformatics
>
>
>>-Original Message-
>>From: Ronaldo [mailto:[EMAIL PROTECTED]]
>>Sent: Saturday, August 17, 2002 10:17 AM
>>To: Tomcat Users List
>>Subject: Too many threads
>>
>>Hi,
>>  I'm developing a web aplication with jsp and servlets, and I'm
beging
>to
>>use tomcat.
>>  The only problem I'm having is, when I make a stress test on my
>tomcat
>>(4.0.4 on RH Linux) the server create as many threads as the number of
>>requests. Is this normal? shuldn't be some kind of inteligent thread
>pool?
>>Because, I get over 800 threads and my test machine isn't that much so
>it
>>crashs all the time, because tomcat is eating more than 200 M of
>memory.
>>Can anyone help me on this?
>>
>>Even not, thanks a lot,
>>
>>Ronaldo Florence
>>
>>
>>--
>>To unsubscribe, e-mail:   >[EMAIL PROTECTED]>
>>For additional commands, e-mail: >[EMAIL PROTECTED]>
>
>
>
>--
>To unsubscribe, e-mail:   [EMAIL PROTECTED]>
>For additional commands, e-mail: [EMAIL PROTECTED]>



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


RE: Tomcat Crashes

2002-08-20 Thread Shapira, Yoav

Hi,
It's your driver.  The JDBC-ODBC approach tends to suck ;)  Did you try
to the type 4 driver from MS?  Or better yet, forget MS SQL and go to
MySQL or another more java-friendly database?  If nothing else, try
doing MySQL approach just to validate that it's neither tomcat nor your
app that are the problem.  The MySQL test will enable you to pinpoint
the ODBC bridge as the guilty party.

As an aside, maybe it's my mail reader but I got four copies of your
question.  Please only post once ;)

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Kingston Sew [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, August 20, 2002 8:26 AM
>To: [EMAIL PROTECTED]
>Subject: Tomcat Crashes
>
>Hi
>
>I am currently running Tomcat 4.0.4 Server on a
>Windows 2000 Server (v5.0.2195) with MS SQL
>Server 2000 (v8.00.194) and J2SDK 1.4.0. I am also
>using JDBC-ODBC bridge to access the database. After
>conducting a few tests on my application, I notice
>that sometimes Tomcat crashes. When I check the
>server, the Tomcat console is missing. I receive the
>following log file as shown belo
>
>Can anyone help me with this problem
>
>Thanks
>Kingston Sew
>
>
>
>An unexpected exception has been detected in native
>code outside the VM.
>Unexpected Signal : EXCEPTION_ACCESS_VIOLATION
>occurred at PC=0x41166ABA
>Function=SQLGetData+0x15
>Library=C:\WINNT\System32\SQLSRV32.dll
>
>Current Java thread:
>   at sun.jdbc.odbc.JdbcOdbc.getDataString(Native
>Method)
>   at
>sun.jdbc.odbc.JdbcOdbc.SQLGetDataString(JdbcOdbc.java:3285)
>   at
>sun.jdbc.odbc.JdbcOdbcResultSet.getDataString(JdbcOdbcResultSet.java:54
94)
>   at
>sun.jdbc.odbc.JdbcOdbcResultSet.getString(JdbcOdbcResultSet.java:342)
>   at
>com.applied.hr.ProcessJobClassification.ListAll(ProcessJobClassificatio
n.ja
>va:221)
>   at
>org.apache.jsp.lu_0005fjob$jsp._jspService(lu_0005fjob$jsp.java:216)
>   at
>org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
>   at
>javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>   at
>org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServl
et.j
>ava:201)
>   at
>org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381
)
>   at
>org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
>   at
>javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>   at
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic
atio
>nFilterChain.java:247)
>   at
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil
terC
>hain.java:193)
>   at
>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal
ve.j
>ava:243)
>   at
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j
ava:
>566)
>   at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
472)
>   at
>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>   at
>org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal
ve.j
>ava:190)
>   at
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j
ava:
>566)
>   at
>org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.j
ava:
>246)
>   at
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j
ava:
>564)
>   at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
472)
>   at
>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>   at
>org.apache.catalina.core.StandardContext.invoke(StandardContext.java:23
47)
>   at
>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav
a:18
>0)
>   at
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j
ava:
>566)
>   at
>org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherV
alve
>.java:170)
>   at
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j
ava:
>564)
>   at
>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav
a:17
>0)
>   at
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j
ava:
>564)
>   at
>org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:46
8)
>   at
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j
ava:
>564)
>   at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
472)
>   at
>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>   at
>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve
.jav
>a:174)
>   at
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j
ava:
>566)
>   at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
472)
>   at
>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>   at
>org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.
java
>:1027)
>

Re: Tomcat Crashes

2002-08-20 Thread Adrian

Do you really need to send so many messages? This kind of behavior tends
to cause others not to want to help.
Although not related to you , can we please also call an end to URGENT, and
PLEASE HELP! messages?

Adrian

- Original Message -
From: "Kingston Sew" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 20, 2002 8:25 AM
Subject: Tomcat Crashes


> Hi
>
> I am currently running Tomcat 4.0.4 Server on a
> Windows 2000 Server (v5.0.2195) with MS SQL
> Server 2000 (v8.00.194) and J2SDK 1.4.0. I am also
> using JDBC-ODBC bridge to access the database. After
> conducting a few tests on my application, I notice
> that sometimes Tomcat crashes. When I check the
> server, the Tomcat console is missing. I receive the
> following log file as shown belo
>
> Can anyone help me with this problem
>
> Thanks
> Kingston Sew
>
>
>
> An unexpected exception has been detected in native
> code outside the VM.
> Unexpected Signal : EXCEPTION_ACCESS_VIOLATION
> occurred at PC=0x41166ABA
> Function=SQLGetData+0x15
> Library=C:\WINNT\System32\SQLSRV32.dll
>
> Current Java thread:
> at sun.jdbc.odbc.JdbcOdbc.getDataString(Native
> Method)
> at
> sun.jdbc.odbc.JdbcOdbc.SQLGetDataString(JdbcOdbc.java:3285)
> at
> sun.jdbc.odbc.JdbcOdbcResultSet.getDataString(JdbcOdbcResultSet.java:5494)
> at
> sun.jdbc.odbc.JdbcOdbcResultSet.getString(JdbcOdbcResultSet.java:342)
> at
>
com.applied.hr.ProcessJobClassification.ListAll(ProcessJobClassification.jav
a:221)
> at
> org.apache.jsp.lu_0005fjob$jsp._jspService(lu_0005fjob$jsp.java:216)
> at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:201)
> at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
> at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
> at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
> at
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
> at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
> at
>
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
> at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
> at
>
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
> at
>
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
> at
>
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
> at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
> at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
>
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
> at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
>
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1027)
> at
>
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125
)
> at java.lang.Thread.run(Thread.java:536)
>
> Dynamic libraries:
> 0x0040 - 0x00406000 C:\j2sdk1.4.0\bin\java.exe
> 0x77F8 - 0x77FF9000 C:\WINNT\System32\ntdll.dll
> 0x77DB - 0x77E0A000
> C:\WINNT\system32\ADVAPI32.dll
> 0x77E8 - 0x77F36000
> C:\WINNT\system32\KERNEL32.DLL
> 0x77D4 - 0x77DAF000 C:\WINNT\system32\RPCRT4.DLL
> 0x7800 - 0x78046000 C:\WINNT\system32\MSVCRT.dll
> 0x6D33 - 0x6D442000
> C:\j2sdk1.4.0\jre\bin\client\jvm.dll
> 0x

RE: Client Certificates on Tomcat 3.3.1

2002-08-20 Thread Tathagat (London)

okay, I have faced so many problems on this.. and finally could do it!
Please answer the following questions.

First question: The certificates that you are using on your machine (as
client), where do you get them from?

Second: When you connect the server (https://localhost:8443) or whatever),
does your certificate pops up?

cheers
Tathagat

-Original Message-
From: Rodrigo Ruiz [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 20, 2002 11:42
To: [EMAIL PROTECTED]
Subject: Client Certificates on Tomcat 3.3.1


Hi all,

I'm trying to setup a secure connection between Tomcat 3.3.1 and a java soap
client.

My soap service simply prints out some request data, and also the content of

request.getAttribute("javax.servlet.request.X509Certificate")

Following some example code I found on Internet (I'm not sure this code
should function)

I have followed the instructions in the xml.apache.org FAQ, and generated
all certificates with keytool.

Firstly, I configured tomcat with clientAuth set to false, and used a basic
authentication scheme in my web-app. It worked fine. When connecting through
my client, the service prints the next info:

Authorization: BASIC
Remote User: tomcat
Secured: true
Principal: tomcat
No client certificate is available

If I set clientAuth to true, it still works, but it keeps showing the "No
client certificate available" message.

The big problem comes when I configure my web-app to use CLIENT-CERT
authorization scheme.
It simply returns a 401 error code.

Any one can help me, please??

Thanks in advance,
Rodrigo Ruiz Aguayo

PS: Following is the bat file I'm using to generate the keystores:

del server.keystore
del client.keystore

copy %JAVA_HOME%\jre\lib\security\cacerts .\server.keystore
copy %JAVA_HOME%\jre\lib\security\cacerts .\client.keystore

REM Change default passwords
keytool -storepasswd -keystore server.keystore -storepass changeit -new
123456
keytool -storepasswd -keystore client.keystore -storepass changeit -new
123456

REM Create server.keystore
keytool -genkey -alias tomcat-sv -dname
"CN=neyade,OU=InnerGrid,O=GridSystems,L=Palma,S=Baleares,C=ES" -keyalg
RSA -keypass 123456 -storepass 123456 -keystore server.keystore
keytool -export -alias tomcat-sv -storepass 123456 -file
server.cer -keystore server.keystore

REM Import server certificate as a trusted CA in the client keystore
keytool -import -v -trustcacerts -alias tomcat -file server.cer -keystore
client.keystore -keypass 123456 -storepass 123456

REM Create client keystore
keytool -genkey -alias rruiz -dname
"CN=rruiz,OU=InnerGrid,O=GridSystems,L=Palma,S=Baleares,C=ES" -keyalg
RSA -keypass 123456 -storepass 123456 -keystore client.keystore
keytool -export -alias rruiz -storepass 123456 -file rruiz.cer -keystore
client.keystore

keytool -import -v -trustcacerts -alias tomcat -file rruiz.cer -keystore
server.keystore -keypass 123456 -storepass 123456


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
If you have received this e-mail in error or wish to read our e-mail 
disclaimer statement and monitoring policy, please refer to 
http://www.drkw.com/disc/email/ or contact the sender.
--


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RES: CGIs

2002-08-20 Thread Jose Euclides da Silva Junior - DIGR.O

Could you call your CGIs from JSP?

-Mensagem original-
De: Rocío Ninahuanca Flores [mailto:[EMAIL PROTECTED]]
Enviada em: segunda-feira, 19 de agosto de 2002 14:13
Para: Tomcat Users List
Assunto: CGIs


Hello,
I have an aplication in CERN server, and I want to run CGIs in Tomcat, can i
do this?, my cgis were generated by C.
Can I do it?, I don't want to install Apache, I just want Tomcat.
It's because i have a part of an aplication in CGIs and I want to have
another part  in JSPs, can I do it?.

Thanks.


-Mensaje original-
De: Raju Lokhande [mailto:[EMAIL PROTECTED]]
Enviado el: Lunes, 19 de Agosto de 2002 12:01 p.m.
Para: mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Arabic content

2002-08-20 Thread Laurent Féral-Pierssens


Thank you for all your comments. I will report them and try to better
evaluate the work at hand.

Regards,
Laurent



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: BAD packet - Apache 2.0.39 + mod_jk (or mod_webapp) on linux

2002-08-20 Thread Sullivan, Mark E

That's not necessarily true. I'm running mod_jk on rh 7.3 with apache 2.0.39
and tomcat 4+. I had no problems building or using the module. I don't
remember having to do anything special when building the module either.

> -Original Message-
> From: Turner, John [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 20, 2002 8:08 AM
> To: 'Tomcat Users List'
> Subject: RE: BAD packet - Apache 2.0.39 + mod_jk (or mod_webapp) on
> linux
> 
> 
> 
> I just built apache 2.0.40 and tried to get it working with 
> mod_jk.so on RH
> 7.2.  No luck...the mod_jk.so file that works with 1.3.26 is 
> not compatible
> with 2.0.40.  The error message I get is:
> 
> Cannot load /usr/local/apache2/lib/mod_jk.so into server:
> /usr/local/apache2/lib/mod_jk.so: undefined symbol: ap_table_get
> 
> So, right off the bat, I can tell you that the instructions 
> in my How-To
> will only work with apache 1.3.26, not 2.0.39/40.  I will 
> have to research
> if it is a do-or-die problem with mod_jk (which means 
> switching to mod_jk2),
> or just a rebuild of mod_jk with options that allow use with apache
> 2.0.39/40.
> 
> John Turner
> 
> -Original Message-
> From: Turner, John [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 20, 2002 8:15 AM
> To: 'Tomcat Users List'
> Subject: RE: BAD packet - Apache 2.0.39 + mod_jk (or mod_webapp) on
> linux
> 
> 
> 
> I notice you mentioned that you had copied the JAR files to
> CATALINA_HOME/common after building the connector.  This is 
> one area that
> confuses me about connecting apache to tomcat with mod_jk.  
> The docs I read
> told me to build those JARs, but I don't have them anywhere in my
> CATALINA_HOME tree, I left them in the source-build 
> directory.  As far as I
> can tell, they aren't needed.
> 
> This might be the problem, or, if it isn't, did you find a resource
> someplace that explained what the JAR files are for, where 
> they should go,
> and why?  I didn't find one, and would be interested in reading it.
> 
> My memory is hazy, too, but it seems to me that apache 2.x 
> requires mod_jk2,
> not mod_jk.  If I have a chance today I will build 2.0.39 
> from source and
> see if it works instead of 1.3.26 in my currently-working
> apache+tomcat+mod_jk environment.
> 
> John Turner
> [EMAIL PROTECTED]
> 
> 
> -Original Message-
> From: Mathew Pole [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 20, 2002 3:28 AM
> To: '[EMAIL PROTECTED]'
> Subject: BAD packet - Apache 2.0.39 + mod_jk (or mod_webapp) on linux
> 
> 
> Hi ,
> 
> At first glance the following combination sounded like a great idea
> (especially as I had success with this on windows 2000):
> tomcat 4.0.4 
> tomcat connectors 4.0.4 
> apache 2.0.39 
> linux (gentoo 1.2 distribution)
> In reality it has proved very challenging. I've tried the following:
> 
> Following instructions provided by John Turner in
> http://www.johnturner.com/howto/apache-tomcat-howto.html, I 
> came across a
> couple of issues which I resolved by 
> failed trying to build the mod_jk.so, but after setting 
> apache13.home to a
> bogus location and running ant native it appears to have worked 
> copied jk/build/lib/mod_jk.so apache2/modules 
> copied jk/build/lib/*.jar to tomcat/common 
> updated apache.conf file as suggested 
> updated server.xml as suggested, with addition of
> modJk="/usr/local/apache2/modules/mod_jk.so" in the listener 
> definition
> Currently, in the tomcat/logs/catalina.out file the following text is
> appearing (note the string after In : : [ changes, but 4/843 remains
> constant):
> 
>BAD packet 256
>In: : [B@3e58d4 4/843
> 
> followed by what appears to be some hex output of mainly 00s.
> 
> My suspicion is that this error is caused by one of:
> mod_jk.so being compiled incorrectly 
> connector jar files being compiled incorrectly or being in 
> the wrong place 
> incorrect configuration
> I've also attached logs & configuration files to this email. 
> Hopefully this
> is enough information for someone to help me.
> 
> In addition to this I looked at the instructions in
> http://wass.homelinux.net/howtos/Jakarta_How-To.shtml, but the
> mod-jk-303-ap20.so doesn't work with apache 2.0.39.
> 
> 
> 
> Regards,
>Mathew
> --
> Mathew Pole 
> Web Architect, Gerard Industries
> email: [EMAIL PROTECTED]
> phone: 08 8269 0511 ext 313, fax: 08 8340 1212, mobile: 0403 164 617
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> --
> To unsubscribe, e-mail:   

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: BAD packet - Apache 2.0.39 + mod_jk (or mod_webapp) on linux

2002-08-20 Thread Turner, John


It's true.

There are two different apache directories in the connectors tree:
apache-1.3 and apache-2.0.  My How-To only details building in apache-1.3.
"ap_table_get" is an Apache 1.3 API function, so to get mod_jk to work with
Apache 2.0.39/40 requires something different that what is currently in my
How-To.

I'm not saying definitively that mod_jk doesn't work with apache 2 (I don't
see why it wouldn't), just that I haven't figured it out yet myself, and
haven't updated my document, which folks seem to be using.  I'm trying to
avoid people wasting their time by relying on my document in a scenario it
doesn't support yet.

John Turner
[EMAIL PROTECTED]

-Original Message-
From: Sullivan, Mark E [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 20, 2002 9:18 AM
To: 'Tomcat Users List'
Subject: RE: BAD packet - Apache 2.0.39 + mod_jk (or mod_webapp) on
linux


That's not necessarily true. I'm running mod_jk on rh 7.3 with apache 2.0.39
and tomcat 4+. I had no problems building or using the module. I don't
remember having to do anything special when building the module either.

> -Original Message-
> From: Turner, John [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 20, 2002 8:08 AM
> To: 'Tomcat Users List'
> Subject: RE: BAD packet - Apache 2.0.39 + mod_jk (or mod_webapp) on
> linux
> 
> 
> 
> I just built apache 2.0.40 and tried to get it working with 
> mod_jk.so on RH
> 7.2.  No luck...the mod_jk.so file that works with 1.3.26 is 
> not compatible
> with 2.0.40.  The error message I get is:
> 
> Cannot load /usr/local/apache2/lib/mod_jk.so into server:
> /usr/local/apache2/lib/mod_jk.so: undefined symbol: ap_table_get
> 
> So, right off the bat, I can tell you that the instructions 
> in my How-To
> will only work with apache 1.3.26, not 2.0.39/40.  I will 
> have to research
> if it is a do-or-die problem with mod_jk (which means 
> switching to mod_jk2),
> or just a rebuild of mod_jk with options that allow use with apache
> 2.0.39/40.
> 
> John Turner
> 
> -Original Message-
> From: Turner, John [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 20, 2002 8:15 AM
> To: 'Tomcat Users List'
> Subject: RE: BAD packet - Apache 2.0.39 + mod_jk (or mod_webapp) on
> linux
> 
> 
> 
> I notice you mentioned that you had copied the JAR files to
> CATALINA_HOME/common after building the connector.  This is 
> one area that
> confuses me about connecting apache to tomcat with mod_jk.  
> The docs I read
> told me to build those JARs, but I don't have them anywhere in my
> CATALINA_HOME tree, I left them in the source-build 
> directory.  As far as I
> can tell, they aren't needed.
> 
> This might be the problem, or, if it isn't, did you find a resource
> someplace that explained what the JAR files are for, where 
> they should go,
> and why?  I didn't find one, and would be interested in reading it.
> 
> My memory is hazy, too, but it seems to me that apache 2.x 
> requires mod_jk2,
> not mod_jk.  If I have a chance today I will build 2.0.39 
> from source and
> see if it works instead of 1.3.26 in my currently-working
> apache+tomcat+mod_jk environment.
> 
> John Turner
> [EMAIL PROTECTED]
> 
> 
> -Original Message-
> From: Mathew Pole [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 20, 2002 3:28 AM
> To: '[EMAIL PROTECTED]'
> Subject: BAD packet - Apache 2.0.39 + mod_jk (or mod_webapp) on linux
> 
> 
> Hi ,
> 
> At first glance the following combination sounded like a great idea
> (especially as I had success with this on windows 2000):
> tomcat 4.0.4 
> tomcat connectors 4.0.4 
> apache 2.0.39 
> linux (gentoo 1.2 distribution)
> In reality it has proved very challenging. I've tried the following:
> 
> Following instructions provided by John Turner in
> http://www.johnturner.com/howto/apache-tomcat-howto.html, I 
> came across a
> couple of issues which I resolved by 
> failed trying to build the mod_jk.so, but after setting 
> apache13.home to a
> bogus location and running ant native it appears to have worked 
> copied jk/build/lib/mod_jk.so apache2/modules 
> copied jk/build/lib/*.jar to tomcat/common 
> updated apache.conf file as suggested 
> updated server.xml as suggested, with addition of
> modJk="/usr/local/apache2/modules/mod_jk.so" in the listener 
> definition
> Currently, in the tomcat/logs/catalina.out file the following text is
> appearing (note the string after In : : [ changes, but 4/843 remains
> constant):
> 
>BAD packet 256
>In: : [B@3e58d4 4/843
> 
> followed by what appears to be some hex output of mainly 00s.
> 
> My suspicion is that this error is caused by one of:
> mod_jk.so being compiled incorrectly 
> connector jar files being compiled incorrectly or being in 
> the wrong place 
> incorrect configuration
> I've also attached logs & configuration files to this email. 
> Hopefully this
> is enough information for someone to help me.
> 
> In addition to this I looked at the instructions in
> http://wass.homelinux.net/howtos/Jakarta_How-

RE: CGIs

2002-08-20 Thread Keith Wannamaker

Sure, instal Tomcat 4.0.x.  It has a CGIServlet.

Keith

| -Mensagem original-
| De: Rocío Ninahuanca Flores [mailto:[EMAIL PROTECTED]]
| Enviada em: segunda-feira, 19 de agosto de 2002 14:13
| Para: Tomcat Users List
| Assunto: CGIs
|
|
| Hello,
| I have an aplication in CERN server, and I want to run CGIs in Tomcat, can i
| do this?, my cgis were generated by C.
| Can I do it?, I don't want to install Apache, I just want Tomcat.


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: CGIs

2002-08-20 Thread Rocío Ninahuanca Flores

i mean, i want call jsps from CGIs, because my initial system is in CGIs.,
and i want to implement my new pages in jsp

-Mensaje original-
De: Jose Euclides da Silva Junior - DIGR.O
[mailto:[EMAIL PROTECTED]]
Enviado el: Martes, 20 de Agosto de 2002 08:24 a.m.
Para: 'Tomcat Users List'
Asunto: RES: CGIs


Could you call your CGIs from JSP?

-Mensagem original-
De: Rocío Ninahuanca Flores [mailto:[EMAIL PROTECTED]]
Enviada em: segunda-feira, 19 de agosto de 2002 14:13
Para: Tomcat Users List
Assunto: CGIs


Hello,
I have an aplication in CERN server, and I want to run CGIs in Tomcat, can i
do this?, my cgis were generated by C.
Can I do it?, I don't want to install Apache, I just want Tomcat.
It's because i have a part of an aplication in CGIs and I want to have
another part  in JSPs, can I do it?.

Thanks.


-Mensaje original-
De: Raju Lokhande [mailto:[EMAIL PROTECTED]]
Enviado el: Lunes, 19 de Agosto de 2002 12:01 p.m.
Para: mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: BAD packet - Apache 2.0.39 + mod_jk (or mod_webapp) on linux

2002-08-20 Thread Sullivan, Mark E

Sorry, my mistake. I misread your email. Now that i think about it some
more, i didn't use ant to build the connector. These are the steps i
followed

cd /home/mark/jakarta-tomcat-connectors-4.1.9-src/jk/native

./buildconf.sh
./configure --with-apxs=/usr/local/apache2/bin/apxs
make 
make install

The --with-apxs command ensures that the module is built for the correct
version of apache, using that version's own apxs script. Assuming no errors
occur, the jk module should have been put into your apache/modules
directory.



> -Original Message-
> From: Turner, John [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 20, 2002 8:29 AM
> To: 'Tomcat Users List'
> Subject: RE: BAD packet - Apache 2.0.39 + mod_jk (or mod_webapp) on
> linux
> 
> 
> 
> It's true.
> 
> There are two different apache directories in the connectors tree:
> apache-1.3 and apache-2.0.  My How-To only details building 
> in apache-1.3.
> "ap_table_get" is an Apache 1.3 API function, so to get 
> mod_jk to work with
> Apache 2.0.39/40 requires something different that what is 
> currently in my
> How-To.
> 
> I'm not saying definitively that mod_jk doesn't work with 
> apache 2 (I don't
> see why it wouldn't), just that I haven't figured it out yet 
> myself, and
> haven't updated my document, which folks seem to be using.  
> I'm trying to
> avoid people wasting their time by relying on my document in 
> a scenario it
> doesn't support yet.
> 
> John Turner
> [EMAIL PROTECTED]
> 
> -Original Message-
> From: Sullivan, Mark E [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 20, 2002 9:18 AM
> To: 'Tomcat Users List'
> Subject: RE: BAD packet - Apache 2.0.39 + mod_jk (or mod_webapp) on
> linux
> 
> 
> That's not necessarily true. I'm running mod_jk on rh 7.3 
> with apache 2.0.39
> and tomcat 4+. I had no problems building or using the module. I don't
> remember having to do anything special when building the 
> module either.
> 
> > -Original Message-
> > From: Turner, John [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, August 20, 2002 8:08 AM
> > To: 'Tomcat Users List'
> > Subject: RE: BAD packet - Apache 2.0.39 + mod_jk (or mod_webapp) on
> > linux
> > 
> > 
> > 
> > I just built apache 2.0.40 and tried to get it working with 
> > mod_jk.so on RH
> > 7.2.  No luck...the mod_jk.so file that works with 1.3.26 is 
> > not compatible
> > with 2.0.40.  The error message I get is:
> > 
> > Cannot load /usr/local/apache2/lib/mod_jk.so into server:
> > /usr/local/apache2/lib/mod_jk.so: undefined symbol: ap_table_get
> > 
> > So, right off the bat, I can tell you that the instructions 
> > in my How-To
> > will only work with apache 1.3.26, not 2.0.39/40.  I will 
> > have to research
> > if it is a do-or-die problem with mod_jk (which means 
> > switching to mod_jk2),
> > or just a rebuild of mod_jk with options that allow use with apache
> > 2.0.39/40.
> > 
> > John Turner
> > 
> > -Original Message-
> > From: Turner, John [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, August 20, 2002 8:15 AM
> > To: 'Tomcat Users List'
> > Subject: RE: BAD packet - Apache 2.0.39 + mod_jk (or mod_webapp) on
> > linux
> > 
> > 
> > 
> > I notice you mentioned that you had copied the JAR files to
> > CATALINA_HOME/common after building the connector.  This is 
> > one area that
> > confuses me about connecting apache to tomcat with mod_jk.  
> > The docs I read
> > told me to build those JARs, but I don't have them anywhere in my
> > CATALINA_HOME tree, I left them in the source-build 
> > directory.  As far as I
> > can tell, they aren't needed.
> > 
> > This might be the problem, or, if it isn't, did you find a resource
> > someplace that explained what the JAR files are for, where 
> > they should go,
> > and why?  I didn't find one, and would be interested in reading it.
> > 
> > My memory is hazy, too, but it seems to me that apache 2.x 
> > requires mod_jk2,
> > not mod_jk.  If I have a chance today I will build 2.0.39 
> > from source and
> > see if it works instead of 1.3.26 in my currently-working
> > apache+tomcat+mod_jk environment.
> > 
> > John Turner
> > [EMAIL PROTECTED]
> > 
> > 
> > -Original Message-
> > From: Mathew Pole [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, August 20, 2002 3:28 AM
> > To: '[EMAIL PROTECTED]'
> > Subject: BAD packet - Apache 2.0.39 + mod_jk (or 
> mod_webapp) on linux
> > 
> > 
> > Hi ,
> > 
> > At first glance the following combination sounded like a great idea
> > (especially as I had success with this on windows 2000):
> > tomcat 4.0.4 
> > tomcat connectors 4.0.4 
> > apache 2.0.39 
> > linux (gentoo 1.2 distribution)
> > In reality it has proved very challenging. I've tried the following:
> > 
> > Following instructions provided by John Turner in
> > http://www.johnturner.com/howto/apache-tomcat-howto.html, I 
> > came across a
> > couple of issues which I resolved by 
> > failed trying to build the mod_jk.so, but after setting 
> > apache13.home to a
> > bogus location and

RES: CGIs

2002-08-20 Thread Jose Euclides da Silva Junior - DIGR.O

So, I guess you could try CGIServlet from Tomcat' package.

-Mensagem original-
De: Rocío Ninahuanca Flores [mailto:[EMAIL PROTECTED]]
Enviada em: terça-feira, 20 de agosto de 2002 10:40
Para: Tomcat Users List
Assunto: RE: CGIs


i mean, i want call jsps from CGIs, because my initial system is in CGIs.,
and i want to implement my new pages in jsp

-Mensaje original-
De: Jose Euclides da Silva Junior - DIGR.O
[mailto:[EMAIL PROTECTED]]
Enviado el: Martes, 20 de Agosto de 2002 08:24 a.m.
Para: 'Tomcat Users List'
Asunto: RES: CGIs


Could you call your CGIs from JSP?

-Mensagem original-
De: Rocío Ninahuanca Flores [mailto:[EMAIL PROTECTED]]
Enviada em: segunda-feira, 19 de agosto de 2002 14:13
Para: Tomcat Users List
Assunto: CGIs


Hello,
I have an aplication in CERN server, and I want to run CGIs in Tomcat, can i
do this?, my cgis were generated by C.
Can I do it?, I don't want to install Apache, I just want Tomcat.
It's because i have a part of an aplication in CGIs and I want to have
another part  in JSPs, can I do it?.

Thanks.


-Mensaje original-
De: Raju Lokhande [mailto:[EMAIL PROTECTED]]
Enviado el: Lunes, 19 de Agosto de 2002 12:01 p.m.
Para: mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Can't get tomcat 4 + mod_jk + apache to work

2002-08-20 Thread Brian Orledge

Did you get anywhere with this.  I'm using the same configuration (minus
the JBoss) and having the same error.


Brian Orledge
Revenue Solutions, Inc.
301.240.2182

-Original Message-
From: Scott Adamson [mailto:[EMAIL PROTECTED]] 
Sent: Monday, August 19, 2002 11:57 AM
To: Tomcat Users List
Subject: Can't get tomcat 4 + mod_jk + apache to work


I have been trying for the last week to get Apache + mod_jk + Tomcat 4
to
work.
I have confirmed that Tomcat works on 8080, confirmed that Apache is
running.

My configuration is as follows :

OS -
Redhat Linux 6.2

Java -
JAVA_HOME="/usr/java/jdk1.3"
Installed via RPM

Tomcat -
Installed binary distribution of jakarta 4.0.4 at
/usr/local/jakarta-tomcat-4.0.4
Created jakarta-tomcat-4.0.4/conf/jk/workers.properties as follows :

workers.tomcat_home=/usr/local/jakarta-tomcat-4.0.4
workers.java_home=/usr/java/jdk1.3
ps=/
worker.list=ajp12, ajp13
worker.ajp13.port=8009
worker.ajp13.host=toecutter
worker.ajp13.type=ajp13

Modified jakarta-tomcat-4.0.4/conf/server.xml as follows : (see
attached)


   #added line  

and

  
#added line   

Apache -
Compiled Apache1.3.19 with the following config -
./configure --prefix=/usr/local/apache2 --enable-module=so
Added the following to httpd.conf (see attached)
Include /usr/local/jakarta-tomcat-4.0.4/conf/auto/mod_jk.conf

mod_jk -
Added the binary mod_jk-3.3-ap13-noeapi.so to
/usr/local/apache2/libexec


/apache2/logs/error_log contains the following :

[Tue Aug 20 02:08:20 2002] [error] [client 192.168.0.7] File does not
exist:
/usr/local/apache2/htdocs/examples/

indicating that it isn't even trying to redirect and looks for /examples
under /apache2/htdocs
Can someone please help me (thanks to those who have already tried), can
someone see a problem with my configuration ?



Scott Adamson
Systems Administrator
Syware Technology

[EMAIL PROTECTED]
http://upe.com.au




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Can't get tomcat 4 + mod_jk + apache to work

2002-08-20 Thread Sullivan, Mark E

it would be very helpful if you could post the contents of this file:

/usr/local/jakarta-tomcat-4.0.4/conf/auto/mod_jk.conf

Otherwise, solving this problem will be very difficult

> -Original Message-
> From: Brian Orledge [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 20, 2002 8:35 AM
> To: 'Tomcat Users List'
> Subject: RE: Can't get tomcat 4 + mod_jk + apache to work
> 
> 
> Did you get anywhere with this.  I'm using the same 
> configuration (minus
> the JBoss) and having the same error.
> 
> 
> Brian Orledge
> Revenue Solutions, Inc.
> 301.240.2182
> 
> -Original Message-
> From: Scott Adamson [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, August 19, 2002 11:57 AM
> To: Tomcat Users List
> Subject: Can't get tomcat 4 + mod_jk + apache to work
> 
> 
> I have been trying for the last week to get Apache + mod_jk + Tomcat 4
> to
> work.
> I have confirmed that Tomcat works on 8080, confirmed that Apache is
> running.
> 
> My configuration is as follows :
> 
> OS -
> Redhat Linux 6.2
> 
> Java -
> JAVA_HOME="/usr/java/jdk1.3"
> Installed via RPM
> 
> Tomcat -
> Installed binary distribution of jakarta 4.0.4 at
> /usr/local/jakarta-tomcat-4.0.4
> Created jakarta-tomcat-4.0.4/conf/jk/workers.properties 
> as follows :
> 
> workers.tomcat_home=/usr/local/jakarta-tomcat-4.0.4
> workers.java_home=/usr/java/jdk1.3
> ps=/
> worker.list=ajp12, ajp13
> worker.ajp13.port=8009
> worker.ajp13.host=toecutter
> worker.ajp13.type=ajp13
> 
> Modified jakarta-tomcat-4.0.4/conf/server.xml as follows : (see
> attached)
> 
> 
>#added line   className="org.apache.ajp.tomcat4.config.ApacheConfig"
> modJk="/usr/local/apache2/libexec/mod_jk-3.3-ap13-noeapi.so" />
> 
> and
> 
>unpackWARs="true">
> #added lineclassName="org.apache.ajp.tomcat4.config.ApacheConfig" append="true"
> forwardAll="false" />
> 
> Apache -
> Compiled Apache1.3.19 with the following config -
> ./configure --prefix=/usr/local/apache2 --enable-module=so
> Added the following to httpd.conf (see attached)
> Include /usr/local/jakarta-tomcat-4.0.4/conf/auto/mod_jk.conf
> 
> mod_jk -
> Added the binary mod_jk-3.3-ap13-noeapi.so to
> /usr/local/apache2/libexec
> 
> 
> /apache2/logs/error_log contains the following :
> 
> [Tue Aug 20 02:08:20 2002] [error] [client 192.168.0.7] File does not
> exist:
> /usr/local/apache2/htdocs/examples/
> 
> indicating that it isn't even trying to redirect and looks 
> for /examples
> under /apache2/htdocs
> Can someone please help me (thanks to those who have already 
> tried), can
> someone see a problem with my configuration ?
> 
> 
> 
> Scott Adamson
> Systems Administrator
> Syware Technology
> 
> [EMAIL PROTECTED]
> http://upe.com.au
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Tomcat 3.3 does not find jndi.properties

2002-08-20 Thread Larry Isaacs

I'm glad Tomcat 3.3.1 worked, per the other e-mail.

In my day job, I have some deadlines coming up and a bunch
of code to write.  Unless someone else volunteers to be
release manager, a 3.3.2 release is probably a month or
two away.  There just isn't enough spare time to do much
at the moment.

Cheers,
Larry

> -Original Message-
> From: Olaf Jahn [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, August 20, 2002 6:40 AM
> To: Tomcat Users List
> Subject: Re: Tomcat 3.3 does not find jndi.properties
> 
> 
> "Larry Isaacs" <[EMAIL PROTECTED]> wrote:
> 
> > If possible, give Tomcat 3.3.2-dev from:
> > 
> > 
> > 
> > a try to see if the fix for Bugzilla #7654 corrects this problem.
> 
> Thanks a lot, the problem does not exist any more with the lastest
> 3.3.2-dev. The jndi.properties file placed in WEB-INF/classes is now
> found and read.
> 
> When is a release of 3.3.2 to be expected?
> 
> Regards
>   Olaf
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: BAD packet - Apache 2.0.39 + mod_jk (or mod_webapp) on linux

2002-08-20 Thread Turner, John


Interesting...I used ant.  I will try it your way and see what changes.
Thanks.

John Turner
[EMAIL PROTECTED]


-Original Message-
From: Sullivan, Mark E [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 20, 2002 9:32 AM
To: 'Tomcat Users List'
Subject: RE: BAD packet - Apache 2.0.39 + mod_jk (or mod_webapp) on
linux


Sorry, my mistake. I misread your email. Now that i think about it some
more, i didn't use ant to build the connector. These are the steps i
followed

cd /home/mark/jakarta-tomcat-connectors-4.1.9-src/jk/native

./buildconf.sh
./configure --with-apxs=/usr/local/apache2/bin/apxs
make 
make install

The --with-apxs command ensures that the module is built for the correct
version of apache, using that version's own apxs script. Assuming no errors
occur, the jk module should have been put into your apache/modules
directory.



> -Original Message-
> From: Turner, John [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 20, 2002 8:29 AM
> To: 'Tomcat Users List'
> Subject: RE: BAD packet - Apache 2.0.39 + mod_jk (or mod_webapp) on
> linux
> 
> 
> 
> It's true.
> 
> There are two different apache directories in the connectors tree:
> apache-1.3 and apache-2.0.  My How-To only details building 
> in apache-1.3.
> "ap_table_get" is an Apache 1.3 API function, so to get 
> mod_jk to work with
> Apache 2.0.39/40 requires something different that what is 
> currently in my
> How-To.
> 
> I'm not saying definitively that mod_jk doesn't work with 
> apache 2 (I don't
> see why it wouldn't), just that I haven't figured it out yet 
> myself, and
> haven't updated my document, which folks seem to be using.  
> I'm trying to
> avoid people wasting their time by relying on my document in 
> a scenario it
> doesn't support yet.
> 
> John Turner
> [EMAIL PROTECTED]
> 
> -Original Message-
> From: Sullivan, Mark E [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 20, 2002 9:18 AM
> To: 'Tomcat Users List'
> Subject: RE: BAD packet - Apache 2.0.39 + mod_jk (or mod_webapp) on
> linux
> 
> 
> That's not necessarily true. I'm running mod_jk on rh 7.3 
> with apache 2.0.39
> and tomcat 4+. I had no problems building or using the module. I don't
> remember having to do anything special when building the 
> module either.
> 
> > -Original Message-
> > From: Turner, John [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, August 20, 2002 8:08 AM
> > To: 'Tomcat Users List'
> > Subject: RE: BAD packet - Apache 2.0.39 + mod_jk (or mod_webapp) on
> > linux
> > 
> > 
> > 
> > I just built apache 2.0.40 and tried to get it working with 
> > mod_jk.so on RH
> > 7.2.  No luck...the mod_jk.so file that works with 1.3.26 is 
> > not compatible
> > with 2.0.40.  The error message I get is:
> > 
> > Cannot load /usr/local/apache2/lib/mod_jk.so into server:
> > /usr/local/apache2/lib/mod_jk.so: undefined symbol: ap_table_get
> > 
> > So, right off the bat, I can tell you that the instructions 
> > in my How-To
> > will only work with apache 1.3.26, not 2.0.39/40.  I will 
> > have to research
> > if it is a do-or-die problem with mod_jk (which means 
> > switching to mod_jk2),
> > or just a rebuild of mod_jk with options that allow use with apache
> > 2.0.39/40.
> > 
> > John Turner
> > 
> > -Original Message-
> > From: Turner, John [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, August 20, 2002 8:15 AM
> > To: 'Tomcat Users List'
> > Subject: RE: BAD packet - Apache 2.0.39 + mod_jk (or mod_webapp) on
> > linux
> > 
> > 
> > 
> > I notice you mentioned that you had copied the JAR files to
> > CATALINA_HOME/common after building the connector.  This is 
> > one area that
> > confuses me about connecting apache to tomcat with mod_jk.  
> > The docs I read
> > told me to build those JARs, but I don't have them anywhere in my
> > CATALINA_HOME tree, I left them in the source-build 
> > directory.  As far as I
> > can tell, they aren't needed.
> > 
> > This might be the problem, or, if it isn't, did you find a resource
> > someplace that explained what the JAR files are for, where 
> > they should go,
> > and why?  I didn't find one, and would be interested in reading it.
> > 
> > My memory is hazy, too, but it seems to me that apache 2.x 
> > requires mod_jk2,
> > not mod_jk.  If I have a chance today I will build 2.0.39 
> > from source and
> > see if it works instead of 1.3.26 in my currently-working
> > apache+tomcat+mod_jk environment.
> > 
> > John Turner
> > [EMAIL PROTECTED]
> > 
> > 
> > -Original Message-
> > From: Mathew Pole [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, August 20, 2002 3:28 AM
> > To: '[EMAIL PROTECTED]'
> > Subject: BAD packet - Apache 2.0.39 + mod_jk (or 
> mod_webapp) on linux
> > 
> > 
> > Hi ,
> > 
> > At first glance the following combination sounded like a great idea
> > (especially as I had success with this on windows 2000):
> > tomcat 4.0.4 
> > tomcat connectors 4.0.4 
> > apache 2.0.39 
> > linux (gentoo 1.2 distribution)
> > In reality it has proved very

RE: Help plzz

2002-08-20 Thread Sexton, George

JAVA_HOME is not set correctly.

-Original Message-
From: raghav [mailto:[EMAIL PROTECTED]]
Sent: 19 August, 2002 11:06 PM
To: Tomcat Users List
Subject: Help plzz


Hi All,
I have downloaded Jakarta-tomcat 4.0.2 and am using Win XP OS.
I have st up JAVA_HOME variable and Catalina-Home variable and tried to run
the server. But the error displayed is,
"Windows cannot find '-Djava.endorsed.dirs='. Make sure you typed the name
correctly and then try again. "


Kindly help me to solve it.

Raghava



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: web-inf/classes and eclipse

2002-08-20 Thread Andreas Probst

As far as I know, there is no classpath in Tomcat, but a
classloader hierarchy.

In a few threads about how to write files into the file system
I read about passing a parameter to the webapp. This parameter
could be the path to the config file somewhere on your system.

> thanks for this idea. I think i will use ant..
>
> But what about adding WEB-INF/config to the CLASSPATH ?
> How can i do that automatically for all tomcat projects ?
>
> > -Message d'origine-
> > De : Andreas Probst [mailto:[EMAIL PROTECTED]]
> > Envoyé : mardi 20 août 2002 09:37
> > À : Tomcat Users List
> > Objet : Re: web-inf/classes and eclipse
> >
> >
> > Hi Michenaud,
> >
> > using Ant together with Eclipse might be an option. You can
> > run Ant from inside Eclipse by right-clicking the build.xml
> > file and choosing the right operation (I now don't know how it
> > is called).
> >
> > Andreas
> >
> >
> > > Hi,
> > >
> > > I use the editor Eclipse but when i launch
> > > "Rebuild all", it deletes all the content of
> > > the WEB-INF/classes directory.
> > >
> > > Inside, there is all my *.properties file.
> > >
> > > The idea is to create a WEB-INF/config where i
> > > could put the properties files but i don't know how
> > > to add this directory into the classpath. It would be better
> > > too if the path was a relative path.
> > >
> > > Or maybe u have others ideas ?
> > >
> > > Michenaud Laurent
> > > - Adeuza -
> > > [ Développeur Web - Administrateur Réseau ]
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > 
> > > For additional commands, e-mail:
> > 
> > >
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
> >
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Tomcat 3.2.1 to 3.2.4 difficult?

2002-08-20 Thread Michael finney


Is upgrading from Tomcat 3.2.1 to 3.2.4 difficult?

Michael



=
Michael Finney
719-572-1577 (H)
Sun Certified Programmer for the Java 2 Platform
Sun Certified Developer for the Java 2 Platform
Sun Certified Web Component Developer for J2EE Platform 
Co-founder of PPJDG - http://www.ppjdg.org
Co-founder of cosAgile - Colorado Springs XP Users Group - 
http://www.yahoogroups.com/group/cosAgile

__
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




NotSerializableException

2002-08-20 Thread Luminous Heart

I am not asking tomcat to serialize my app, nor do I
have any serialization in this application.  Why am I
getting this new exception?

2002-08-19 21:06:27 StandardManager[/NoPassApp]
Exception loading sessions from persistent storage
java.io.WriteAbortedException: writing aborted;
java.io.NotSerializableException:
com.sun.mail.imap.IMAPFolder
at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1278)
at
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
at
java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
at
org.apache.catalina.session.StandardSession.readObject(StandardSession.java:1268)
at
org.apache.catalina.session.StandardSession.readObjectData(StandardSession.java:810)
at
org.apache.catalina.session.StandardManager.load(StandardManager.java:411)
at
org.apache.catalina.session.StandardManager.start(StandardManager.java:617)
at
org.apache.catalina.core.StandardContext.reload(StandardContext.java:2497)
at
org.apache.catalina.loader.WebappContextNotifier.run(WebappLoader.java:1332)
at java.lang.Thread.run(Thread.java:536)
Caused by: java.io.NotSerializableException:
com.sun.mail.imap.IMAPFolder
at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054)
at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1330)
at
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1302)
at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1245)
at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
at
org.apache.catalina.session.StandardSession.writeObject(StandardSession.java:1338)
at
org.apache.catalina.session.StandardSession.writeObjectData(StandardSession.java:827)
at
org.apache.catalina.session.StandardManager.unload(StandardManager.java:507)
at
org.apache.catalina.session.StandardManager.stop(StandardManager.java:654)
at
org.apache.catalina.core.StandardContext.reload(StandardContext.java:2409)
... 2 more


__
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: NotSerializableException

2002-08-20 Thread Peter Davison

It looks like Tomcat is trying to serialize a session.  Are you storing an
IMAPFolder object in the session?

It kacks because com.sun.mail.imap.IMAPFolder is not serializable.

P.


On Tue, 20 Aug 2002 07:41:48 -0700 (PDT)
Luminous Heart <[EMAIL PROTECTED]> wrote:

> I am not asking tomcat to serialize my app, nor do I
> have any serialization in this application.  Why am I
> getting this new exception?
> 
> 2002-08-19 21:06:27 StandardManager[/NoPassApp]
> Exception loading sessions from persistent storage
> java.io.WriteAbortedException: writing aborted;
> java.io.NotSerializableException:
> com.sun.mail.imap.IMAPFolder
> at
> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1278)
> at
> java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
> at
> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
> at
> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
> at
> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
> at
> java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
> at
> org.apache.catalina.session.StandardSession.readObject(StandardSession.java:1
> 268)
> at
> org.apache.catalina.session.StandardSession.readObjectData(StandardSession.ja
> va:810)
> at
> org.apache.catalina.session.StandardManager.load(StandardManager.java:411)
> at
> org.apache.catalina.session.StandardManager.start(StandardManager.java:617)
> at
> org.apache.catalina.core.StandardContext.reload(StandardContext.java:2497)
> at
> org.apache.catalina.loader.WebappContextNotifier.run(WebappLoader.java:1332)
> at java.lang.Thread.run(Thread.java:536)
> Caused by: java.io.NotSerializableException:
> com.sun.mail.imap.IMAPFolder
> at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054)
> at
> java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1330)
> at
> java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1302)
> at
> java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1245)
> at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
> at
> java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
> at
> org.apache.catalina.session.StandardSession.writeObject(StandardSession.java:
> 1338)
> at
> org.apache.catalina.session.StandardSession.writeObjectData(StandardSession.j
> ava:827)
> at
> org.apache.catalina.session.StandardManager.unload(StandardManager.java:507)
> at
> org.apache.catalina.session.StandardManager.stop(StandardManager.java:654)
> at
> org.apache.catalina.core.StandardContext.reload(StandardContext.java:2409)
> ... 2 more
> 
> 
> __
> Do You Yahoo!?
> HotJobs - Search Thousands of New Jobs
> http://www.hotjobs.com
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 


--
Peter Davison
[EMAIL PROTECTED]

When I hear a man applauded by the mob I always feel a pang of pity
for him.  All he has to do to be hissed is to live long enough.
-- H.L. Mencken, "Minority Report"

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: NotSerializableException

2002-08-20 Thread Andreas Probst

Obviously it does serialization. It loads a session from 
persistent storage. Serialization is a means to make objects 
persistent. Having written that I must confess I don't know 
about sessions in Tomcat...

> I am not asking tomcat to serialize my app, nor do I
> have any serialization in this application.  Why am I
> getting this new exception?
> 
> 2002-08-19 21:06:27 StandardManager[/NoPassApp]
> Exception loading sessions from persistent storage
> java.io.WriteAbortedException: writing aborted;
> java.io.NotSerializableException:
> com.sun.mail.imap.IMAPFolder
> at
> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1278)
> at
> java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
> at
> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
> at
> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
> at
> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
> at
> java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
> at
> org.apache.catalina.session.StandardSession.readObject(StandardSession.java:1268)
> at
> org.apache.catalina.session.StandardSession.readObjectData(StandardSession.java:810)
> at
> org.apache.catalina.session.StandardManager.load(StandardManager.java:411)
> at
> org.apache.catalina.session.StandardManager.start(StandardManager.java:617)
> at
> org.apache.catalina.core.StandardContext.reload(StandardContext.java:2497)
> at
> org.apache.catalina.loader.WebappContextNotifier.run(WebappLoader.java:1332)
> at java.lang.Thread.run(Thread.java:536)
> Caused by: java.io.NotSerializableException:
> com.sun.mail.imap.IMAPFolder
> at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054)
> at
> java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1330)
> at
> java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1302)
> at
> java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1245)
> at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
> at
> java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
> at
> org.apache.catalina.session.StandardSession.writeObject(StandardSession.java:1338)
> at
> org.apache.catalina.session.StandardSession.writeObjectData(StandardSession.java:827)
> at
> org.apache.catalina.session.StandardManager.unload(StandardManager.java:507)
> at
> org.apache.catalina.session.StandardManager.stop(StandardManager.java:654)
> at
> org.apache.catalina.core.StandardContext.reload(StandardContext.java:2409)
> ... 2 more
> 
> 
> __
> Do You Yahoo!?
> HotJobs - Search Thousands of New Jobs
> http://www.hotjobs.com
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: NotSerializableException

2002-08-20 Thread Luminous Heart

I only add the imap session to the HttpSession. But I
do not write it to disk. What is the best way to stop
this behavior?

--- Peter Davison <[EMAIL PROTECTED]> wrote:
> It looks like Tomcat is trying to serialize a
> session.  Are you storing an
> IMAPFolder object in the session?
> 
> It kacks because com.sun.mail.imap.IMAPFolder is not
> serializable.
> 
> P.
> 
> 
> On Tue, 20 Aug 2002 07:41:48 -0700 (PDT)
> Luminous Heart <[EMAIL PROTECTED]> wrote:
> 
> > I am not asking tomcat to serialize my app, nor do
> I
> > have any serialization in this application.  Why
> am I
> > getting this new exception?
> > 
> > 2002-08-19 21:06:27 StandardManager[/NoPassApp]
> > Exception loading sessions from persistent storage
> > java.io.WriteAbortedException: writing aborted;
> > java.io.NotSerializableException:
> > com.sun.mail.imap.IMAPFolder
> > at
> >
>
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1278)
> > at
> >
>
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
> > at
> >
>
java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
> > at
> >
>
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
> > at
> >
>
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
> > at
> >
>
java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
> > at
> >
>
org.apache.catalina.session.StandardSession.readObject(StandardSession.java:1
> > 268)
> > at
> >
>
org.apache.catalina.session.StandardSession.readObjectData(StandardSession.ja
> > va:810)
> > at
> >
>
org.apache.catalina.session.StandardManager.load(StandardManager.java:411)
> > at
> >
>
org.apache.catalina.session.StandardManager.start(StandardManager.java:617)
> > at
> >
>
org.apache.catalina.core.StandardContext.reload(StandardContext.java:2497)
> > at
> >
>
org.apache.catalina.loader.WebappContextNotifier.run(WebappLoader.java:1332)
> > at java.lang.Thread.run(Thread.java:536)
> > Caused by: java.io.NotSerializableException:
> > com.sun.mail.imap.IMAPFolder
> > at
> >
>
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054)
> > at
> >
>
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1330)
> > at
> >
>
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1302)
> > at
> >
>
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1245)
> > at
> >
>
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
> > at
> >
>
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
> > at
> >
>
org.apache.catalina.session.StandardSession.writeObject(StandardSession.java:
> > 1338)
> > at
> >
>
org.apache.catalina.session.StandardSession.writeObjectData(StandardSession.j
> > ava:827)
> > at
> >
>
org.apache.catalina.session.StandardManager.unload(StandardManager.java:507)
> > at
> >
>
org.apache.catalina.session.StandardManager.stop(StandardManager.java:654)
> > at
> >
>
org.apache.catalina.core.StandardContext.reload(StandardContext.java:2409)
> > ... 2 more
> > 
> > 
> > __
> > Do You Yahoo!?
> > HotJobs - Search Thousands of New Jobs
> > http://www.hotjobs.com
> > 
> > --
> > To unsubscribe, e-mail:  
> 
> > For additional commands, e-mail:
> 
> > 
> 
> 
> --
> Peter Davison
> [EMAIL PROTECTED]
> 
> When I hear a man applauded by the mob I always feel
> a pang of pity
> for him.  All he has to do to be hissed is to live
> long enough.
>   -- H.L. Mencken, "Minority Report"
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


__
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: NotSerializableException

2002-08-20 Thread Shapira, Yoav

Hi,
What code are you using to read to/from an IMAP server?

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Luminous Heart [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, August 20, 2002 10:42 AM
>To: Tomcat Users List
>Subject: NotSerializableException
>
>I am not asking tomcat to serialize my app, nor do I
>have any serialization in this application.  Why am I
>getting this new exception?
>
>2002-08-19 21:06:27 StandardManager[/NoPassApp]
>Exception loading sessions from persistent storage
>java.io.WriteAbortedException: writing aborted;
>java.io.NotSerializableException:
>com.sun.mail.imap.IMAPFolder
>at
>java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1278)
>at
>java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845
)
>at
>java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
>at
>java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:164
6)
>at
>java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
>at
>java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
>at
>org.apache.catalina.session.StandardSession.readObject(StandardSession.
java
>:1268)
>at
>org.apache.catalina.session.StandardSession.readObjectData(StandardSess
ion.
>java:810)
>at
>org.apache.catalina.session.StandardManager.load(StandardManager.java:4
11)
>at
>org.apache.catalina.session.StandardManager.start(StandardManager.java:
617)
>at
>org.apache.catalina.core.StandardContext.reload(StandardContext.java:24
97)
>at
>org.apache.catalina.loader.WebappContextNotifier.run(WebappLoader.java:
1332
>)
>at java.lang.Thread.run(Thread.java:536)
>Caused by: java.io.NotSerializableException:
>com.sun.mail.imap.IMAPFolder
>at
>java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054)
>at
>java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1
330)
>at
>java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1302
)
>at
>java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:
1245
>)
>at
>java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
>at
>java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
>at
>org.apache.catalina.session.StandardSession.writeObject(StandardSession
.jav
>a:1338)
>at
>org.apache.catalina.session.StandardSession.writeObjectData(StandardSes
sion
>.java:827)
>at
>org.apache.catalina.session.StandardManager.unload(StandardManager.java
:507
>)
>at
>org.apache.catalina.session.StandardManager.stop(StandardManager.java:6
54)
>at
>org.apache.catalina.core.StandardContext.reload(StandardContext.java:24
09)
>... 2 more
>
>
>__
>Do You Yahoo!?
>HotJobs - Search Thousands of New Jobs
>http://www.hotjobs.com
>
>--
>To unsubscribe, e-mail:   [EMAIL PROTECTED]>
>For additional commands, e-mail: [EMAIL PROTECTED]>



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


Re: NotSerializableException

2002-08-20 Thread Tom Oinn

Create a container object, which is serializable and put a member 
reference within it to your IMAPSession, marking this as transient.

public class MyContainer implements Serializable {
  public transient IMAPSession mySession;
}

Tom

Luminous Heart wrote:
> I only add the imap session to the HttpSession. But I
> do not write it to disk. What is the best way to stop
> this behavior?
> 
> --- Peter Davison <[EMAIL PROTECTED]> wrote:
> 
>>It looks like Tomcat is trying to serialize a
>>session.  Are you storing an
>>IMAPFolder object in the session?
>>
>>It kacks because com.sun.mail.imap.IMAPFolder is not
>>serializable.
>>
>>P.
>>
>>
>>On Tue, 20 Aug 2002 07:41:48 -0700 (PDT)
>>Luminous Heart <[EMAIL PROTECTED]> wrote:
>>
>>
>>>I am not asking tomcat to serialize my app, nor do
>>
>>I
>>
>>>have any serialization in this application.  Why
>>
>>am I
>>
>>>getting this new exception?
>>>
>>>2002-08-19 21:06:27 StandardManager[/NoPassApp]
>>>Exception loading sessions from persistent storage
>>>java.io.WriteAbortedException: writing aborted;
>>>java.io.NotSerializableException:
>>>com.sun.mail.imap.IMAPFolder
>>>at
>>>
>>
> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1278)
> 
>>>at
>>>
>>
> java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
> 
>>>at
>>>
>>
> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
> 
>>>at
>>>
>>
> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
> 
>>>at
>>>
>>
> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
> 
>>>at
>>>
>>
> java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
> 
>>>at
>>>
>>
> org.apache.catalina.session.StandardSession.readObject(StandardSession.java:1
> 
>>>268)
>>>at
>>>
>>
> org.apache.catalina.session.StandardSession.readObjectData(StandardSession.ja
> 
>>>va:810)
>>>at
>>>
>>
> org.apache.catalina.session.StandardManager.load(StandardManager.java:411)
> 
>>>at
>>>
>>
> org.apache.catalina.session.StandardManager.start(StandardManager.java:617)
> 
>>>at
>>>
>>
> org.apache.catalina.core.StandardContext.reload(StandardContext.java:2497)
> 
>>>at
>>>
>>
> org.apache.catalina.loader.WebappContextNotifier.run(WebappLoader.java:1332)
> 
>>>at java.lang.Thread.run(Thread.java:536)
>>>Caused by: java.io.NotSerializableException:
>>>com.sun.mail.imap.IMAPFolder
>>>at
>>>
>>
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054)
> 
>>>at
>>>
>>
> java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1330)
> 
>>>at
>>>
>>
> java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1302)
> 
>>>at
>>>
>>
> java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1245)
> 
>>>at
>>>
>>
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
> 
>>>at
>>>
>>
> java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
> 
>>>at
>>>
>>
> org.apache.catalina.session.StandardSession.writeObject(StandardSession.java:
> 
>>>1338)
>>>at
>>>
>>
> org.apache.catalina.session.StandardSession.writeObjectData(StandardSession.j
> 
>>>ava:827)
>>>at
>>>
>>
> org.apache.catalina.session.StandardManager.unload(StandardManager.java:507)
> 
>>>at
>>>
>>
> org.apache.catalina.session.StandardManager.stop(StandardManager.java:654)
> 
>>>at
>>>
>>
> org.apache.catalina.core.StandardContext.reload(StandardContext.java:2409)
> 
>>>... 2 more
>>>
>>>
>>>__
>>>Do You Yahoo!?
>>>HotJobs - Search Thousands of New Jobs
>>>http://www.hotjobs.com
>>>
>>>--
>>>To unsubscribe, e-mail:  
>>
>>
>>
>>>For additional commands, e-mail:
>>
>>
>>
>>
>>--
>>Peter Davison
>>[EMAIL PROTECTED]
>>
>>When I hear a man applauded by the mob I always feel
>>a pang of pity
>>for him.  All he has to do to be hissed is to live
>>long enough.
>>  -- H.L. Mencken, "Minority Report"
>>
>>--
>>To unsubscribe, e-mail:  
>>
>>For additional commands, e-mail:
>>
>>
> 
> 
> __
> Do You Yahoo!?
> HotJobs - Search Thousands of New Jobs
> http://www.hotjobs.com
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: NotSerializableException

2002-08-20 Thread Luminous Heart

Hi Andreas, I know quite enough about persistence, I
am a senior java developer myself. But the issue is
with tomcat handling persistence. Should I isolate my
imap variables and declare them transient so tomcat
will not write them to its storage?

--- Andreas Probst <[EMAIL PROTECTED]> wrote:
> Obviously it does serialization. It loads a session
> from 
> persistent storage. Serialization is a means to make
> objects 
> persistent. Having written that I must confess I
> don't know 
> about sessions in Tomcat...
> 
> > I am not asking tomcat to serialize my app, nor do
> I
> > have any serialization in this application.  Why
> am I
> > getting this new exception?
> > 
> > 2002-08-19 21:06:27 StandardManager[/NoPassApp]
> > Exception loading sessions from persistent storage
> > java.io.WriteAbortedException: writing aborted;
> > java.io.NotSerializableException:
> > com.sun.mail.imap.IMAPFolder
> > at
> >
>
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1278)
> > at
> >
>
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
> > at
> >
>
java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
> > at
> >
>
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
> > at
> >
>
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
> > at
> >
>
java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
> > at
> >
>
org.apache.catalina.session.StandardSession.readObject(StandardSession.java:1268)
> > at
> >
>
org.apache.catalina.session.StandardSession.readObjectData(StandardSession.java:810)
> > at
> >
>
org.apache.catalina.session.StandardManager.load(StandardManager.java:411)
> > at
> >
>
org.apache.catalina.session.StandardManager.start(StandardManager.java:617)
> > at
> >
>
org.apache.catalina.core.StandardContext.reload(StandardContext.java:2497)
> > at
> >
>
org.apache.catalina.loader.WebappContextNotifier.run(WebappLoader.java:1332)
> > at java.lang.Thread.run(Thread.java:536)
> > Caused by: java.io.NotSerializableException:
> > com.sun.mail.imap.IMAPFolder
> > at
> >
>
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054)
> > at
> >
>
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1330)
> > at
> >
>
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1302)
> > at
> >
>
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1245)
> > at
> >
>
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
> > at
> >
>
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
> > at
> >
>
org.apache.catalina.session.StandardSession.writeObject(StandardSession.java:1338)
> > at
> >
>
org.apache.catalina.session.StandardSession.writeObjectData(StandardSession.java:827)
> > at
> >
>
org.apache.catalina.session.StandardManager.unload(StandardManager.java:507)
> > at
> >
>
org.apache.catalina.session.StandardManager.stop(StandardManager.java:654)
> > at
> >
>
org.apache.catalina.core.StandardContext.reload(StandardContext.java:2409)
> > ... 2 more
> > 
> > 
> > __
> > Do You Yahoo!?
> > HotJobs - Search Thousands of New Jobs
> > http://www.hotjobs.com
> > 
> > --
> > To unsubscribe, e-mail:  
> 
> > For additional commands, e-mail:
> 
> > 
> 
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


__
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Client Certificates on Tomcat 3.3.1

2002-08-20 Thread Rodrigo Ruiz


- Original Message -
From: "Tathagat (London)" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Tuesday, August 20, 2002 3:22 PM
Subject: RE: Client Certificates on Tomcat 3.3.1


> okay, I have faced so many problems on this.. and finally could do it!
> Please answer the following questions.
>
> First question: The certificates that you are using on your machine (as
> client), where do you get them from?

I create them with KeyMan from IBM. I have tried to create a X509 Chain,
signed with my server key,
and also a .PFX file with the same characteristics. None seemed to work.
In fact, when I import the certificates into Explorer, it places them into
the Medium CA Providers Tab, and not in the "Personal" repository. Is it ok?

>
> Second: When you connect the server (https://localhost:8443) or whatever),
> does your certificate pops up?

The browser only pops up the server certificate, not the client one.
It looks like it does not send my client certificate at all.

>
> cheers
> Tathagat
>
> -Original Message-
> From: Rodrigo Ruiz [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 20, 2002 11:42
> To: [EMAIL PROTECTED]
> Subject: Client Certificates on Tomcat 3.3.1
>
>
> Hi all,
>
> I'm trying to setup a secure connection between Tomcat 3.3.1 and a java
soap
> client.
>
> My soap service simply prints out some request data, and also the content
of
>
> request.getAttribute("javax.servlet.request.X509Certificate")
>
> Following some example code I found on Internet (I'm not sure this code
> should function)
>
> I have followed the instructions in the xml.apache.org FAQ, and generated
> all certificates with keytool.
>
> Firstly, I configured tomcat with clientAuth set to false, and used a
basic
> authentication scheme in my web-app. It worked fine. When connecting
through
> my client, the service prints the next info:
>
> Authorization: BASIC
> Remote User: tomcat
> Secured: true
> Principal: tomcat
> No client certificate is available
>
> If I set clientAuth to true, it still works, but it keeps showing the "No
> client certificate available" message.
>
> The big problem comes when I configure my web-app to use CLIENT-CERT
> authorization scheme.
> It simply returns a 401 error code.
>
> Any one can help me, please??
>
> Thanks in advance,
> Rodrigo Ruiz Aguayo
>
> PS: Following is the bat file I'm using to generate the keystores:
>
> del server.keystore
> del client.keystore
>
> copy %JAVA_HOME%\jre\lib\security\cacerts .\server.keystore
> copy %JAVA_HOME%\jre\lib\security\cacerts .\client.keystore
>
> REM Change default passwords
> keytool -storepasswd -keystore server.keystore -storepass changeit -new
> 123456
> keytool -storepasswd -keystore client.keystore -storepass changeit -new
> 123456
>
> REM Create server.keystore
> keytool -genkey -alias tomcat-sv -dname
> "CN=neyade,OU=InnerGrid,O=GridSystems,L=Palma,S=Baleares,C=ES" -keyalg
> RSA -keypass 123456 -storepass 123456 -keystore server.keystore
> keytool -export -alias tomcat-sv -storepass 123456 -file
> server.cer -keystore server.keystore
>
> REM Import server certificate as a trusted CA in the client keystore
> keytool -import -v -trustcacerts -alias tomcat -file server.cer -keystore
> client.keystore -keypass 123456 -storepass 123456
>
> REM Create client keystore
> keytool -genkey -alias rruiz -dname
> "CN=rruiz,OU=InnerGrid,O=GridSystems,L=Palma,S=Baleares,C=ES" -keyalg
> RSA -keypass 123456 -storepass 123456 -keystore client.keystore
> keytool -export -alias rruiz -storepass 123456 -file rruiz.cer -keystore
> client.keystore
>
> keytool -import -v -trustcacerts -alias tomcat -file rruiz.cer -keystore
> server.keystore -keypass 123456 -storepass 123456
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
> --
> If you have received this e-mail in error or wish to read our e-mail
> disclaimer statement and monitoring policy, please refer to
> http://www.drkw.com/disc/email/ or contact the sender.
> --
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: BAD packet - Apache 2.0.39 + mod_jk (or mod_webapp) on linux

2002-08-20 Thread Turner, John


Kudos!

That worked pretty well.  I had to modify my Listener directives to pickup
the different location of mod_jk.so (modules/mod_jk.so instead of
libexec/mod_jk.so) but other than that, it worked like a charm.

I'll update my How-To as soon as I can, with props to you for the tip (I
won't post your email address, though).  Thanks Mark.

John Turner
[EMAIL PROTECTED]

-Original Message-
From: Sullivan, Mark E [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 20, 2002 9:32 AM
To: 'Tomcat Users List'
Subject: RE: BAD packet - Apache 2.0.39 + mod_jk (or mod_webapp) on
linux


Sorry, my mistake. I misread your email. Now that i think about it some
more, i didn't use ant to build the connector. These are the steps i
followed

cd /home/mark/jakarta-tomcat-connectors-4.1.9-src/jk/native

./buildconf.sh
./configure --with-apxs=/usr/local/apache2/bin/apxs
make 
make install

The --with-apxs command ensures that the module is built for the correct
version of apache, using that version's own apxs script. Assuming no errors
occur, the jk module should have been put into your apache/modules
directory.



> -Original Message-
> From: Turner, John [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 20, 2002 8:29 AM
> To: 'Tomcat Users List'
> Subject: RE: BAD packet - Apache 2.0.39 + mod_jk (or mod_webapp) on
> linux
> 
> 
> 
> It's true.
> 
> There are two different apache directories in the connectors tree:
> apache-1.3 and apache-2.0.  My How-To only details building 
> in apache-1.3.
> "ap_table_get" is an Apache 1.3 API function, so to get 
> mod_jk to work with
> Apache 2.0.39/40 requires something different that what is 
> currently in my
> How-To.
> 
> I'm not saying definitively that mod_jk doesn't work with 
> apache 2 (I don't
> see why it wouldn't), just that I haven't figured it out yet 
> myself, and
> haven't updated my document, which folks seem to be using.  
> I'm trying to
> avoid people wasting their time by relying on my document in 
> a scenario it
> doesn't support yet.
> 
> John Turner
> [EMAIL PROTECTED]
> 
> -Original Message-
> From: Sullivan, Mark E [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 20, 2002 9:18 AM
> To: 'Tomcat Users List'
> Subject: RE: BAD packet - Apache 2.0.39 + mod_jk (or mod_webapp) on
> linux
> 
> 
> That's not necessarily true. I'm running mod_jk on rh 7.3 
> with apache 2.0.39
> and tomcat 4+. I had no problems building or using the module. I don't
> remember having to do anything special when building the 
> module either.
> 
> > -Original Message-
> > From: Turner, John [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, August 20, 2002 8:08 AM
> > To: 'Tomcat Users List'
> > Subject: RE: BAD packet - Apache 2.0.39 + mod_jk (or mod_webapp) on
> > linux
> > 
> > 
> > 
> > I just built apache 2.0.40 and tried to get it working with 
> > mod_jk.so on RH
> > 7.2.  No luck...the mod_jk.so file that works with 1.3.26 is 
> > not compatible
> > with 2.0.40.  The error message I get is:
> > 
> > Cannot load /usr/local/apache2/lib/mod_jk.so into server:
> > /usr/local/apache2/lib/mod_jk.so: undefined symbol: ap_table_get
> > 
> > So, right off the bat, I can tell you that the instructions 
> > in my How-To
> > will only work with apache 1.3.26, not 2.0.39/40.  I will 
> > have to research
> > if it is a do-or-die problem with mod_jk (which means 
> > switching to mod_jk2),
> > or just a rebuild of mod_jk with options that allow use with apache
> > 2.0.39/40.
> > 
> > John Turner
> > 
> > -Original Message-
> > From: Turner, John [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, August 20, 2002 8:15 AM
> > To: 'Tomcat Users List'
> > Subject: RE: BAD packet - Apache 2.0.39 + mod_jk (or mod_webapp) on
> > linux
> > 
> > 
> > 
> > I notice you mentioned that you had copied the JAR files to
> > CATALINA_HOME/common after building the connector.  This is 
> > one area that
> > confuses me about connecting apache to tomcat with mod_jk.  
> > The docs I read
> > told me to build those JARs, but I don't have them anywhere in my
> > CATALINA_HOME tree, I left them in the source-build 
> > directory.  As far as I
> > can tell, they aren't needed.
> > 
> > This might be the problem, or, if it isn't, did you find a resource
> > someplace that explained what the JAR files are for, where 
> > they should go,
> > and why?  I didn't find one, and would be interested in reading it.
> > 
> > My memory is hazy, too, but it seems to me that apache 2.x 
> > requires mod_jk2,
> > not mod_jk.  If I have a chance today I will build 2.0.39 
> > from source and
> > see if it works instead of 1.3.26 in my currently-working
> > apache+tomcat+mod_jk environment.
> > 
> > John Turner
> > [EMAIL PROTECTED]
> > 
> > 
> > -Original Message-
> > From: Mathew Pole [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, August 20, 2002 3:28 AM
> > To: '[EMAIL PROTECTED]'
> > Subject: BAD packet - Apache 2.0.39 + mod_jk (or 
> mod_webapp) on linux
> > 
> > 
> > Hi ,
> > 
> > At f

RE: NotSerializableException

2002-08-20 Thread Luminous Heart

I am using the javasoft (sun) standard API for mail. I
believe am currently using javamail 1.2, from jsp and
javabeans.

--- "Shapira, Yoav" <[EMAIL PROTECTED]> wrote:
> Hi,
> What code are you using to read to/from an IMAP
> server?
> 
> Yoav Shapira
> Millennium ChemInformatics
> 
> 
> >-Original Message-
> >From: Luminous Heart
> [mailto:[EMAIL PROTECTED]]
> >Sent: Tuesday, August 20, 2002 10:42 AM
> >To: Tomcat Users List
> >Subject: NotSerializableException
> >
> >I am not asking tomcat to serialize my app, nor do
> I
> >have any serialization in this application.  Why am
> I
> >getting this new exception?
> >
> >2002-08-19 21:06:27 StandardManager[/NoPassApp]
> >Exception loading sessions from persistent storage
> >java.io.WriteAbortedException: writing aborted;
> >java.io.NotSerializableException:
> >com.sun.mail.imap.IMAPFolder
> >at
>
>java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1278)
> >at
>
>java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845
> )
> >at
>
>java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
> >at
>
>java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:164
> 6)
> >at
>
>java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
> >at
>
>java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
> >at
>
>org.apache.catalina.session.StandardSession.readObject(StandardSession.
> java
> >:1268)
> >at
>
>org.apache.catalina.session.StandardSession.readObjectData(StandardSess
> ion.
> >java:810)
> >at
>
>org.apache.catalina.session.StandardManager.load(StandardManager.java:4
> 11)
> >at
>
>org.apache.catalina.session.StandardManager.start(StandardManager.java:
> 617)
> >at
>
>org.apache.catalina.core.StandardContext.reload(StandardContext.java:24
> 97)
> >at
>
>org.apache.catalina.loader.WebappContextNotifier.run(WebappLoader.java:
> 1332
> >)
> >at java.lang.Thread.run(Thread.java:536)
> >Caused by: java.io.NotSerializableException:
> >com.sun.mail.imap.IMAPFolder
> >at
>
>java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054)
> >at
>
>java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1
> 330)
> >at
>
>java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1302
> )
> >at
>
>java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:
> 1245
> >)
> >at
>
>java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
> >at
>
>java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
> >at
>
>org.apache.catalina.session.StandardSession.writeObject(StandardSession
> .jav
> >a:1338)
> >at
>
>org.apache.catalina.session.StandardSession.writeObjectData(StandardSes
> sion
> >.java:827)
> >at
>
>org.apache.catalina.session.StandardManager.unload(StandardManager.java
> :507
> >)
> >at
>
>org.apache.catalina.session.StandardManager.stop(StandardManager.java:6
> 54)
> >at
>
>org.apache.catalina.core.StandardContext.reload(StandardContext.java:24
> 09)
> >... 2 more
> >
> >
> >__
> >Do You Yahoo!?
> >HotJobs - Search Thousands of New Jobs
> >http://www.hotjobs.com
> >
> >--
> >To unsubscribe, e-mail:    >[EMAIL PROTECTED]>
> >For additional commands, e-mail:
>  >[EMAIL PROTECTED]>
> 
> > This e-mail, including any attachments, is a
> confidential business communication, and may contain
> information that is confidential, proprietary and/or
> privileged.  This e-mail is intended only for the
> individual(s) to whom it is addressed, and may not
> be saved, copied, printed, disclosed or used by
> anyone else.  If you are not the(an) intended
> recipient, please immediately delete this e-mail
> from your computer system and notify the sender. 
> Thank you.
> 
> > --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:



__
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Apache 1.3.20 + Tomcat + (mod_jk or mod_webapp) for SuSE 7.3 Linux?

2002-08-20 Thread Chetan Sarva

The file is attached.

Tomcat is started before Apache and I waited a good 30 seconds or so. Also
verified that the examples were loading properly.

Chetan

- Original Message -
From: "Turner, John" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Tuesday, August 20, 2002 7:58 AM
Subject: RE: Apache 1.3.20 + Tomcat + (mod_jk or mod_webapp) for SuSE 7.3
Linux?


>
> Can you post that mod_jk.conf file?
>
> Are you starting tomcat before starting apache?
>
> John Turner



mod_jk.conf
Description: Binary data

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


RE: Client Certificates on Tomcat 3.3.1

2002-08-20 Thread Tathagat (London)

ok,
what you have to do is put the certificate provider into your java's
security file.

keytool -import blah blah (options)

what you have to import are ".PEM" files which you get from the certificate
providers. Then IE will popup your certificates. Please read keytool
documentation on sun site and most things will be clear of my mail.

cheers
Tathagat

-Original Message-
From: Rodrigo Ruiz [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 20, 2002 16:59
To: Tomcat Users List
Subject: Re: Client Certificates on Tomcat 3.3.1



- Original Message -
From: "Tathagat (London)" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Tuesday, August 20, 2002 3:22 PM
Subject: RE: Client Certificates on Tomcat 3.3.1


> okay, I have faced so many problems on this.. and finally could do it!
> Please answer the following questions.
>
> First question: The certificates that you are using on your machine (as
> client), where do you get them from?

I create them with KeyMan from IBM. I have tried to create a X509 Chain,
signed with my server key,
and also a .PFX file with the same characteristics. None seemed to work.
In fact, when I import the certificates into Explorer, it places them into
the Medium CA Providers Tab, and not in the "Personal" repository. Is it ok?

>
> Second: When you connect the server (https://localhost:8443) or whatever),
> does your certificate pops up?

The browser only pops up the server certificate, not the client one.
It looks like it does not send my client certificate at all.

>
> cheers
> Tathagat
>
> -Original Message-
> From: Rodrigo Ruiz [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 20, 2002 11:42
> To: [EMAIL PROTECTED]
> Subject: Client Certificates on Tomcat 3.3.1
>
>
> Hi all,
>
> I'm trying to setup a secure connection between Tomcat 3.3.1 and a java
soap
> client.
>
> My soap service simply prints out some request data, and also the content
of
>
> request.getAttribute("javax.servlet.request.X509Certificate")
>
> Following some example code I found on Internet (I'm not sure this code
> should function)
>
> I have followed the instructions in the xml.apache.org FAQ, and generated
> all certificates with keytool.
>
> Firstly, I configured tomcat with clientAuth set to false, and used a
basic
> authentication scheme in my web-app. It worked fine. When connecting
through
> my client, the service prints the next info:
>
> Authorization: BASIC
> Remote User: tomcat
> Secured: true
> Principal: tomcat
> No client certificate is available
>
> If I set clientAuth to true, it still works, but it keeps showing the "No
> client certificate available" message.
>
> The big problem comes when I configure my web-app to use CLIENT-CERT
> authorization scheme.
> It simply returns a 401 error code.
>
> Any one can help me, please??
>
> Thanks in advance,
> Rodrigo Ruiz Aguayo
>
> PS: Following is the bat file I'm using to generate the keystores:
>
> del server.keystore
> del client.keystore
>
> copy %JAVA_HOME%\jre\lib\security\cacerts .\server.keystore
> copy %JAVA_HOME%\jre\lib\security\cacerts .\client.keystore
>
> REM Change default passwords
> keytool -storepasswd -keystore server.keystore -storepass changeit -new
> 123456
> keytool -storepasswd -keystore client.keystore -storepass changeit -new
> 123456
>
> REM Create server.keystore
> keytool -genkey -alias tomcat-sv -dname
> "CN=neyade,OU=InnerGrid,O=GridSystems,L=Palma,S=Baleares,C=ES" -keyalg
> RSA -keypass 123456 -storepass 123456 -keystore server.keystore
> keytool -export -alias tomcat-sv -storepass 123456 -file
> server.cer -keystore server.keystore
>
> REM Import server certificate as a trusted CA in the client keystore
> keytool -import -v -trustcacerts -alias tomcat -file server.cer -keystore
> client.keystore -keypass 123456 -storepass 123456
>
> REM Create client keystore
> keytool -genkey -alias rruiz -dname
> "CN=rruiz,OU=InnerGrid,O=GridSystems,L=Palma,S=Baleares,C=ES" -keyalg
> RSA -keypass 123456 -storepass 123456 -keystore client.keystore
> keytool -export -alias rruiz -storepass 123456 -file rruiz.cer -keystore
> client.keystore
>
> keytool -import -v -trustcacerts -alias tomcat -file rruiz.cer -keystore
> server.keystore -keypass 123456 -storepass 123456
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
> --
> If you have received this e-mail in error or wish to read our e-mail
> disclaimer statement and monitoring policy, please refer to
> http://www.drkw.com/disc/email/ or contact the sender.
> --
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--

RE: Apache 1.3.20 + Tomcat + (mod_jk or mod_webapp) for SuSE 7.3 Linux?

2002-08-20 Thread Turner, John


Looks fine to me.

The only other things I can suggest are:

1. it's something going on with apache 1.3.20 (unlikely) or is the ".20" a
typo and you are using ".26"?
2. what are the contents of mod_jk.log when you ask for
http://localhost/examples/servlet/HelloWorldExample ?
3. is Apache's ServerName set to "localhost" or is it defaulting to an IP
address?

John Turner
[EMAIL PROTECTED]

-Original Message-
From: Chetan Sarva [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 20, 2002 11:13 AM
To: Tomcat Users List
Subject: Re: Apache 1.3.20 + Tomcat + (mod_jk or mod_webapp) for SuSE
7.3 Linux?


The file is attached.

Tomcat is started before Apache and I waited a good 30 seconds or so. Also
verified that the examples were loading properly.

Chetan

- Original Message -
From: "Turner, John" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Tuesday, August 20, 2002 7:58 AM
Subject: RE: Apache 1.3.20 + Tomcat + (mod_jk or mod_webapp) for SuSE 7.3
Linux?


>
> Can you post that mod_jk.conf file?
>
> Are you starting tomcat before starting apache?
>
> John Turner

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Can't get tomcat4 + mod_jk + apache to work

2002-08-20 Thread Milt Epstein

On Tue, 20 Aug 2002, Mathew Pole wrote:

> The /usr/local/jakarta-tomcat-4.0.4/conf/auto/mod_jk.conf is
> automatically generated by tomcat (see
> http://www.johnturner.com/howto/mod_jk_conf.html for an example)

Umm, thanks, I know that.  The point wasn't how that file was created,
it's what's in it.  That was the only part (and perhaps the most
important part) of the configuration that Scott didn't show.  It will
show what URL's Apache is going to forward to Tomcat, and the problem
Scott was having was that one of the desired URL's wasn't being
forwarded to Tomcat.  I know Tomcat used to have problems with that
auto-generated conf file (and the recommendation was not to use it,
but rather to come up with your own, perhaps based on what was in the
auto-generated one), I don't know whether that's still the case.


> -Original Message-
> From: Milt Epstein [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, 20 August 2002 3:59 PM
> To: Tomcat Users List
> Subject: Re: Can't get tomcat4 + mod_jk + apache to work
>
>
> On Tue, 20 Aug 2002, Scott Adamson wrote:
>
> > I have been trying for the last week to get Apache + mod_jk + Tomcat 4 to
> > work.
> > I have confirmed that Tomcat works on 8080, confirmed that Apache is
> > running.
> >
> [ ... ]
> > Added the following to httpd.conf (see attached)
> > Include /usr/local/jakarta-tomcat-4.0.4/conf/auto/mod_jk.conf
> [ ... ]
>
> What's in this file?
>

Milt Epstein
Research Programmer
Systems and Technology Services (STS)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: OFF-TOPIC: Pointers to CallableStatement docs?

2002-08-20 Thread David Mossakowski

Try this:

private static final String
SQL_CALL_GETTERMIDS = "exec P.dbo.TO_GetTermIDs 
@term=?,@symbol=?,@side=?,@where=?,@rowcount=?,@num_term_ids=?,@time_in_ms=?";

private static final int INIT_IDS_LIST_SIZE = 50;


1,2,3,4 and 5 are input parameters 6 and 7 are output.  This is using 
microsoft sql driver.

conn = connPoolMgr.getConnection();
  CallableStatement cs = 
(CallableStatement)connPoolMgr.getUserData(conn);

  cs.setString(1, request.termId);
  cs.setString(2, request.symbol);
  cs.setString(3, request.side);
  cs.setString(4, request.whereClause);
  cs.setString(5, request.maxTermIdsReturned);

 cs.registerOutParameter(6, Types.NUMERIC);
 cs.registerOutParameter(7, Types.NUMERIC);

  ResultSet rs = cs.executeQuery();

  ArrayList ids = new ArrayList(INIT_IDS_LIST_SIZE);

  while (rs.next())
  {
 String id = rs.getString(1);
 ids.add(id);
  }

HTH
d.


Turner, John wrote:
> The 11th is the return_status.  Actually, #1 is the return status.
> According to the CallableStatement docs, you have to account for every "?"
> in your statement.  There is 1 return status, 5 input parameters, and 5
> output parameters: 1 + 5 + 5 = 11.
> 
> cstmt = sConn.prepareCall("{? = call
> sp_validate_pwd(?,?,?,?,?,?,?,?,?,?)}");
> 
> John Turner
> 
> -Original Message-
> From: Peter Lin [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 20, 2002 8:07 AM
> To: Tomcat Users List
> Subject: RE: OFF-TOPIC: Pointers to CallableStatement docs?
> 
> 
> 
> correct me if I'm wrong, but I count only 10
> parameters. in one line you have
> cstmt.registerOutParameter(11, Types.VARCHAR);
> 
> where is the 11th parameter?
> 
> peter lin
> 
> 
> 
> --- "Turner, John" <[EMAIL PROTECTED]> wrote:
> 
>>Thanks, but I'm not getting any Java-related error
>>messages.  The Java code
>>just blows right on through, as everything keys off
>>of the return status,
>>which is always "false" or "negative".  This is
>>because the stored procedure
>>never executes, and according to the debug log
>>printed by the driver, it's
>>parameter related...that is, whatever I am doing
>>with set*() and
>>registerOutParameter() doesn't match up with what
>>the procedure is
>>expecting.
>>
>>That's my question...can anyone point me to a
>>resource that shows how to
>>call real-world stored procedures correctly with
>>CallableStatement?  By
>>"real-world" I don't mean rudimentary "take two
>>numbers and add them
>>together" or "get a row from a table" procedures, I
>>can already do that.
>>I'm looking for a more advanced tutorial, something
>>that shows how to have
>>inputs, outputs, in/outputs, and a return status,
>>all at once.  It must be
>>possible, I just can't figure it out, and can't find
>>any resources that
>>explain how to do it.  We have VB DLLs calling these
>>procedures in
>>production, so I know the procedures work, at least
>>in conjunction with VB.
>>
>>John Turner
>>
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 
> 
> 


-- 
David Mossakowski  [EMAIL PROTECTED]
Instinet Corporation 212.310.7275



**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Apache 1.3.20 + Tomcat + (mod_jk or mod_webapp) for SuSE 7.3 Linux?

2002-08-20 Thread Sullivan, Mark E

What url did you try when you got this error? if you tried just
http://localhost/examples/, apache should not try to redirect this to
tomcat, since none of the JkMount statements are
JkMount /examples/*. In this case, apache will be looking for one of the
DirectoryIndex pages inside the /examples/ folder. Do any of those exist
(index.html index.htm index.jsp)? Also what part of httpd.conf do you have
this line at: Include /usr/local/jakarta-tomcat-4.0.4/conf/auto/mod_jk.conf?
I don't have your old email anymore so i cannot check. It's possible that if
it's not at the beginning, that apache is following some other previous
directive, which is why it may be looking under htdocs for examples

> -Original Message-
> From: Chetan Sarva [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 20, 2002 10:13 AM
> To: Tomcat Users List
> Subject: Re: Apache 1.3.20 + Tomcat + (mod_jk or mod_webapp) for SuSE
> 7.3 Linux?
> 
> 
> The file is attached.
> 
> Tomcat is started before Apache and I waited a good 30 
> seconds or so. Also
> verified that the examples were loading properly.
> 
> Chetan
> 
> - Original Message -
> From: "Turner, John" <[EMAIL PROTECTED]>
> To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> Sent: Tuesday, August 20, 2002 7:58 AM
> Subject: RE: Apache 1.3.20 + Tomcat + (mod_jk or mod_webapp) 
> for SuSE 7.3
> Linux?
> 
> 
> >
> > Can you post that mod_jk.conf file?
> >
> > Are you starting tomcat before starting apache?
> >
> > John Turner
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: NotSerializableException

2002-08-20 Thread Shapira, Yoav

Howdy,
Then I think the issue is having the IMAP carried in the Session object.
It should be marked as transient so that it's not persisted with the
tomcat session persistence mechanism.  Alternatively, you can
re-consider whether you need the whole IMAP session in your tomcat
session, or only certain (serializable) parts from it, e.g. the folder
name or whatever.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Luminous Heart [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, August 20, 2002 11:11 AM
>To: Tomcat Users List
>Subject: RE: NotSerializableException
>
>I am using the javasoft (sun) standard API for mail. I
>believe am currently using javamail 1.2, from jsp and
>javabeans.
>
>--- "Shapira, Yoav" <[EMAIL PROTECTED]> wrote:
>> Hi,
>> What code are you using to read to/from an IMAP
>> server?
>>
>> Yoav Shapira
>> Millennium ChemInformatics
>>
>>
>> >-Original Message-
>> >From: Luminous Heart
>> [mailto:[EMAIL PROTECTED]]
>> >Sent: Tuesday, August 20, 2002 10:42 AM
>> >To: Tomcat Users List
>> >Subject: NotSerializableException
>> >
>> >I am not asking tomcat to serialize my app, nor do
>> I
>> >have any serialization in this application.  Why am
>> I
>> >getting this new exception?
>> >
>> >2002-08-19 21:06:27 StandardManager[/NoPassApp]
>> >Exception loading sessions from persistent storage
>> >java.io.WriteAbortedException: writing aborted;
>> >java.io.NotSerializableException:
>> >com.sun.mail.imap.IMAPFolder
>> >at
>>
>>java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1278)
>> >at
>>
>>java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:184
5
>> )
>> >at
>>
>>java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
>> >at
>>
>>java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:16
4
>> 6)
>> >at
>>
>>java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
>> >at
>>
>>java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
>> >at
>>
>>org.apache.catalina.session.StandardSession.readObject(StandardSession
.
>> java
>> >:1268)
>> >at
>>
>>org.apache.catalina.session.StandardSession.readObjectData(StandardSes
s
>> ion.
>> >java:810)
>> >at
>>
>>org.apache.catalina.session.StandardManager.load(StandardManager.java:
4
>> 11)
>> >at
>>
>>org.apache.catalina.session.StandardManager.start(StandardManager.java
:
>> 617)
>> >at
>>
>>org.apache.catalina.core.StandardContext.reload(StandardContext.java:2
4
>> 97)
>> >at
>>
>>org.apache.catalina.loader.WebappContextNotifier.run(WebappLoader.java
:
>> 1332
>> >)
>> >at java.lang.Thread.run(Thread.java:536)
>> >Caused by: java.io.NotSerializableException:
>> >com.sun.mail.imap.IMAPFolder
>> >at
>>
>>java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054)
>> >at
>>
>>java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:
1
>> 330)
>> >at
>>
>>java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:130
2
>> )
>> >at
>>
>>java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java
:
>> 1245
>> >)
>> >at
>>
>>java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
>> >at
>>
>>java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
>> >at
>>
>>org.apache.catalina.session.StandardSession.writeObject(StandardSessio
n
>> .jav
>> >a:1338)
>> >at
>>
>>org.apache.catalina.session.StandardSession.writeObjectData(StandardSe
s
>> sion
>> >.java:827)
>> >at
>>
>>org.apache.catalina.session.StandardManager.unload(StandardManager.jav
a
>> :507
>> >)
>> >at
>>
>>org.apache.catalina.session.StandardManager.stop(StandardManager.java:
6
>> 54)
>> >at
>>
>>org.apache.catalina.core.StandardContext.reload(StandardContext.java:2
4
>> 09)
>> >... 2 more
>> >
>> >
>> >__
>> >Do You Yahoo!?
>> >HotJobs - Search Thousands of New Jobs
>> >http://www.hotjobs.com
>> >
>> >--
>> >To unsubscribe, e-mail:   > >[EMAIL PROTECTED]>
>> >For additional commands, e-mail:
>> > >[EMAIL PROTECTED]>
>>
>> > This e-mail, including any attachments, is a
>> confidential business communication, and may contain
>> information that is confidential, proprietary and/or
>> privileged.  This e-mail is intended only for the
>> individual(s) to whom it is addressed, and may not
>> be saved, copied, printed, disclosed or used by
>> anyone else.  If you are not the(an) intended
>> recipient, please immediately delete this e-mail
>> from your computer system and notify the sender.
>> Thank you.
>>
>> > --
>> To unsubscribe, e-mail:
>> 
>> For additional commands, e-mail:
>
>
>
>__
>Do You Yahoo!?
>HotJobs - Search Thousands of New Jobs
>http://www.hot

Re: mod_webapp error: java.io.IOException: Premature packet header end

2002-08-20 Thread Raúl Mateos

Hello!

Any idea??

Thanks.

Raúl Mateos wrote:

> Hello!
>
> We configured Tomcat 4.0.4 with Apache 1.3.26 and compiled mod_webapp on
> Solaris 7. I worked, but when we
> use the module, on the error log of tomcat the next lines appears:
>
> 2002-08-19 17:44:32 [org.apache.catalina.connector.warp.WarpConnector]
> Connection from localhost/127.0.0.1:34987 to localhost/127.0.
> 0.1:8008
> 2002-08-19 17:44:33 WarpHost[greco.intranet]: Installing web application
> at context path /examples from URL file:/export/ho
> me/portal/catalina/webapps/examples
> 2002-08-19 17:44:33 WebappLoader[/examples]: Deploying class
> repositories to work directory /export/home/portal/catalina/work/Apache
> /greco.intranet/examples
> 2002-08-19 17:44:33 [org.apache.catalina.connector.warp.WarpConnector]
> Connection from localhost/127.0.0.1:34988 to localhost/127.0.
> 0.1:8008
> 2002-08-19 17:44:33 StandardManager[/examples]: Seeding random number
> generator class java.security.SecureRandom
> 2002-08-19 17:44:33 StandardManager[/examples]: Seeding of random number
> generator has been completed
> 2002-08-19 17:44:35 ContextConfig[/examples]: Configured an
> authenticator for method FORM
> 2002-08-19 17:44:35 ContextListener: contextInitialized()
> 2002-08-19 17:44:35 SessionListener: contextInitialized()
> 2002-08-19 17:44:36 ContextListener:
> attributeReplaced('org.apache.catalina.WELCOME_FILES',
> '[Ljava.lang.String;@2b3d53')
> 2002-08-19 17:44:36 StandardWrapper[/examples:default]: Loading
> container servlet default
> 2002-08-19 17:44:36 default: init
> 2002-08-19 17:44:36 StandardWrapper[/examples:invoker]: Loading
> container servlet invoker
> 2002-08-19 17:44:36 invoker: init
> 2002-08-19 17:44:36 jsp: init
> 2002-08-19 17:44:37
> [org.apache.catalina.connector.warp.WarpConfigurationHandler] Filter
> mappings (2)
> 2002-08-19 17:44:37
> [org.apache.catalina.connector.warp.WarpConfigurationHandler] Filter
> mappings (2)
> 2002-08-19 17:44:37 WarpEngine[Apache]: Mapping request
> 2002-08-19 17:44:37 WarpHost[greco.intranet]: Mapping request for Host
> 2002-08-19 17:44:37 [org.apache.catalina.connector.warp.WarpConnection]
> Exception on socket
> java.io.IOException: Premature packet header end
> at
> org.apache.catalina.connector.warp.WarpConnection.recv(WarpConnection.java:237)
>
> at
> 
>org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHandler.java:112)
>
> at
> org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:194)
>
> at java.lang.Thread.run(Thread.java:484)
>
> Anyone knows how to solve it?
>
> Thanks in advance
>
> -BEGIN PGP PUBLIC KEY BLOCK-
> Version: PGPfreeware 5.5.3i for non-commercial use 
>
> mQGiBD0/zAIRBADMHF1qK6ssLjCMEDK3WUF/OUfM0eBnRTdx76NufNwGC1ghrQvW
> 6eQgsbc6bS0SVv7fvwu59ufhpJCKoAB15+EAlqgev8s20zRmMZIqsYAcPqL1k/u/
> dEuuiPsWKjCyS6R1A/MAlHhxwcNhbKdmiiKMH4uPEQ5Cd0WQERLCdzw38QCg//zl
> 3HbywqOGx0eyJTTFBBKXs20EAIbsXXO8tXuH4R/gWZDbzC/vVIWI3xYhdmFOmuov
> wF9fJBEXwMPVKSbaCzzfY8Cq5ipCrmoyZc9QpeDlGOqp96ZH0rF2b43qyK+4aXFE
> bwFdOF0YcwpiJBDjWQ7SfYm+bNPlLe1Xm7yGLuHqtMJkP4hhKw3v02NBUb1lleCi
> 76PgA/4rWfNBEqyGQvDrnRgze6hIWXkfgsf8fIsGm/uDNXsZrPCWUMtlKdB4ubh7
> 9bwTHOAhjeUd1+eFRYXNk40bVrouwbEYyhtsbnaNpY/N++Y0V2KcPNWucZpONYPF
> 7x5Axm2VZYHjVZQH8uO09ihH3fcmNm7DYHQXJHBkVbQpFiNKnrQcUmH6bCBNYXRl
> b3MgPHJtYXRlb3NAYW9sLmVzPokASwQQEQIACwUCPT/MAgQLAwIBAAoJEJT+xZZs
> 3K5L5Q4An3JBGtbkntDzdZnxwi4mPnmo7ULjAKDt0K3aaawnFvcnRSykOE5CvI4h
> ULkCDQQ9P8wCEAgA9kJXtwh/CBdyorrWqULzBej5UxE5T7bxbrlLOCDaAadWoxTp
> j0BV89AHxstDqZSt90xkhkn4DIO9ZekX1KHTUPj1WV/cdlJPPT2N286Z4VeSWc39
> uK50T8X8dryDxUcwYc58yWb/Ffm7/ZFexwGq01uejaClcjrUGvC/RgBYK+X0iP1Y
> TknbzSC0neSRBzZrM2w4DUUdD3yIsxx8Wy2O9vPJI8BD8KVbGI2Ou1WMuF040zT9
> fBdXQ6MdGGzeMyEstSr/POGxKUAYEY18hKcKctaGxAMZyAcpesqVDNmWn6vQClCb
> AkbTCD1mpF1Bn5x8vYlLIhkmuquiXsNV6TILOwACAggA2xWg1FTA5oXssTPdX7YU
> t6u3LRL+Y7HCDOPTwU6kSQbjb+xj6GPlh/T3E30Yb/4jVj8srQB0IADLAuMlCZYk
> Z7uJyUZ9y31p4i8Yv76cwQ43U6DtCVV4h3RlyYcRaIDK7SN4E6UG/p5RLKhSHGFy
> oUbIB9v3jE134QJ+u1xDw8M6XzUvfD5nTX7WwXIdE7CdpgTWpCSvyE6/whMOx84s
> uk7deBmZnNIS8Po9UJLACDStJczgkiz9cItPJAsK9L7zdfFFTFNLI0li25gxeRbA
> a+kCzeqo0ymLdUE/KS/Mv911geb1afzmcN0BE1SmJ3dfSgAi42QnU5VvYbHW09Ap
> AIkARgQYEQIABgUCPT/MAgAKCRCU/sWWbNyuS2wsAKCNip/rPy7YeWSHaTqbZn3k
> cNYZxwCcCimZonqcFkAAmVHBYxILqBZkTmM=
> =AUNJ
> -END PGP PUBLIC KEY BLOCK-
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 

-BEGIN PGP PUBLIC KEY BLOCK-
Version: PGPfreeware 5.5.3i for non-commercial use 

mQGiBD0/zAIRBADMHF1qK6ssLjCMEDK3WUF/OUfM0eBnRTdx76NufNwGC1ghrQvW
6eQgsbc6bS0SVv7fvwu59ufhpJCKoAB15+EAlqgev8s20zRmMZIqsYAcPqL1k/u/
dEuuiPsWKjCyS6R1A/MAlHhxwcNhbKdmiiKMH4uPEQ5Cd0WQERLCdzw38QCg//zl
3HbywqOGx0eyJTTFBBKXs20EAIbsXXO8tXuH4R/gWZDbzC/vVIWI3xYhdmFOmuov
wF9fJBEXwMPVKSbaCzzfY8Cq5ipCrmoyZc9QpeDlGOqp96ZH0rF2b43qyK+4aXFE
bwFdOF0YcwpiJBDjWQ7SfYm+bNPlLe1Xm7yGLuHqtMJkP4hhKw3v02NBUb1lleCi
76

Specifying location of tomcat-users.xml

2002-08-20 Thread Michael

I'm running tomcat from within IDEA, and I'm using the -config command
line parameter to tell tomcat where my server.xml file is located (in my
project directory).  But tomcat is looking for tomcat-users.xml in the
CATALINA_HOME directory.  Is there a command to specify a conf directory
other than CATALINA_HOME?

My motivation is I'd like to keep all the configuration files in my
project directory structure, that way I'm not dependent on the tomcat
installation and config files.

Thanks
Michael


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: get blank pages when using precompiled JSPs (jspc problem?)

2002-08-20 Thread Eric Gilbertson

it turns out that the problem was simply that the JSP servlet was
not registered in the web.xml file being generated by jspc. simply
putting the servlet-mapping entry for jsps back in resolved the problem.

seems like a bug to me that jspc doesn't include this entry given that it
is required to run jsp derived servlets. also would have helped if tomcat
threw an exception under this case rather than returning a null JspFactory.

regards,

eric gilbertson


At 05:07 PM 8/16/2002 -0700, [EMAIL PROTECTED] wrote:
>Hello Tomcaters:
>
>can anyone tell me why a JSP that works when dynamically compiled
>would generate a blank page when statically compiled using jspc?
>the jsp class file is generated via the ant task listed below and packaged
>into a .war file. everything appears to build okay and yet when i hit the
>page  nothing is returned. i know that the class file is  hit because the
>return status is "200" and i see my debug statements
>  on stderr.
>
>the only differences between the statically and dynamically generated files
>are the packages, e.g. org.apache.jsp vs. com.secretseal and the class
>name, e.g. foobar vs foobar$jsp.  i suspect that the problem has to do with
>different runtime support for the two versions, e.g. for some reason the text
>generated by the statically compiled version is being directed to the bit 
>bucket.
>
>suggestions as to how to resolve this problem are greatly appreciated.
>
>sincerely,
>
>eric gilbertson
>[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Specifying location of tomcat-users.xml

2002-08-20 Thread Jhair Tocancipa Triana

> " " == Michael  <[EMAIL PROTECTED]> writes:

 > I'm running tomcat from within IDEA, and I'm using the -config
 > command line parameter to tell tomcat where my server.xml file
 > is located (in my project directory).  But tomcat is looking
 > for tomcat-users.xml in the CATALINA_HOME directory.  Is there
 > a command to specify a conf directory other than CATALINA_HOME?

Set the CATALINA_BASE variable as needed.

--
--Jhair


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




taglib jar exception

2002-08-20 Thread Georges Roux

Hi,

I'am running jakarta-tomcat-4.1.9-LE-jdk14,
I have this Exception
org.apache.jasper.JasperException: null(-1,-1) This absolute uri 
(http://java.sun.com/products/javamail/demo/webapp) cannot be resolved 
in either web.xml or the jar files deployed with this application

here is my web.xml
http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>


  JspDemo
  no description
  
FilterServlet
FilterServlet
no description
FilterServlet
  
  
FilterServlet
/compose
  
  
FilterServlet
/errordetails
  
  
FilterServlet
/login
  
  
FilterServlet
/logout
  
  
FilterServlet
/send
  
  
FilterServlet
/messageheaders
  
  
FilterServlet
/messagecontent
  
  
AttachmentServlet
AttachmentServlet
no description
AttachmentServlet
  
  
AttachmentServlet
/attachment
  
  

http://java.sun.com/products/javamail/demo/webapp
/WEB-INF/lib/jtl.jar
  


does anyone have any sugestions?

thanks in advance
Georges



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: How to change the package definition from org.apache.jsp to something else ?

2002-08-20 Thread Eric Gilbertson

Rob,

As noted in a previous response, the package name and location of the 
servlet class
files is server specific and not directly controllable by the user. You can 
work around
this by statically compiling your servlets using jspc (use the -p switch to 
control
the package name that is used) and packing the resulting class files into a 
.war file.
This scheme is also server specific, so you want might to consider 
portability impacts
before using it.

HTH,

Eric Gilbertson

At 12:50 AM 8/20/2002 -0400, you wrote:
>Hi,
>I have noticed that the default package structure in my servlet source 
>files (compiled from JSPs) is org.apache.jsp.
>But the .java and .class files are generated in /work/localhost/_/ 
>directory.  How can i
>
>1. Force my compiled .java and .class file to go in /work/org/apache/jsp ?
>or
>2. Make .java files to include the right package in .java files (which is 
>/work/locahost/_/)?
>
>thanks
>Rob



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Client Certificates on Tomcat 3.3.1

2002-08-20 Thread Rodrigo Ruiz

Tathagat, at this moment I am generating my own self-signed server and
client certificates :-P

I have no .pem files, as I don't rely on any third provider. The keystore I
am using in my server has the following entries:

thawtepersonalfreemailca, Fri Feb 12 21:12:16 CET 1999, trustedCertEntry,
thawtepersonalbasicca, Fri Feb 12 21:11:01 CET 1999, trustedCertEntry,
verisignclass3ca, Mon Jun 29 19:05:51 CEST 1998, trustedCertEntry,
thawtepersonalpremiumca, Fri Feb 12 21:13:21 CET 1999, trustedCertEntry,
thawteserverca, Fri Feb 12 21:14:33 CET 1999, trustedCertEntry,
verisignclass4ca, Mon Jun 29 19:06:57 CEST 1998, trustedCertEntry,
verisignserverca, Mon Jun 29 19:07:34 CEST 1998, trustedCertEntry,
verisignclass1ca, Mon Jun 29 19:06:17 CEST 1998, trustedCertEntry,
thawtepremiumserverca, Fri Feb 12 21:15:26 CET 1999, trustedCertEntry,
verisignclass2ca, Mon Jun 29 19:06:39 CEST 1998, trustedCertEntry,
tomcat-sv, Tue Aug 20 16:39:06 CEST 2002, keyEntry,

The last entry is my own server certificate.

>From this point, using the KeyMan tool, I do this:

1. Create an empty keystore
2. Import the server certificate as a CA certificate into this new keystore
3. Create a new key pair
4. Create a .csr file
5. From the server keystore, create a certificate for this .csr (it creates
a .cer file with a X509 certificate chain)
6. Create a PKCS #12 token
7. Import the .cer created at point 5
8. Save the token (as a .pfx file)

Once I have this file, I import the server certificate in the trusted CA
provider store (I can do this directly from the pop-up window that shows the
browser on server connection).

Finally, I import the .pfx file into Explorer.

Is it enough importing the server certificate, or do I have to generate a
.pem file for my server certificate? If so, which tool should I have to use?

Now it seems to connect to the server, but it still receives an HTTP 401
error message.

My web-app has activated the CLIENT-CERT authentication scheme. If I relax
this to BASIC, all seems to work fine. The browser shows the user/password
dialog box, and I am in :-)

Could it be a problem related to the realm? How do you specified the list of
valid users? In CLIENT-CERT mode, you don't have user/password info.

Thanks a lot!

- Original Message -
From: "Tathagat (London)" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Tuesday, August 20, 2002 5:14 PM
Subject: RE: Client Certificates on Tomcat 3.3.1


> ok,
> what you have to do is put the certificate provider into your java's
> security file.
>
> keytool -import blah blah (options)
>
> what you have to import are ".PEM" files which you get from the
certificate
> providers. Then IE will popup your certificates. Please read keytool
> documentation on sun site and most things will be clear of my mail.
>
> cheers
> Tathagat
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




-help

2002-08-20 Thread godbout . francois



--
François Godbout, chargé de projet
Département des TI
Raymond Chabot Grant Thornton
Téléphone : (514) 878-2691  ext:2176

Messages de confidentialité 

Ce courriel (de même que les fichiers joints) est strictement réservé à
l'usage de la personne ou de l'entité à qui il est adressé et peut contenir
de l'information privilégiée et confidentielle. Toute divulgation,
distribution ou copie de ce courriel est strictement prohibée. Si vous avez
reçu ce courriel par erreur, veuillez nous en aviser sur-le-champ, détruire
toutes les copies et le supprimer de votre système informatique. 

Merci. 

Confidentiality Notice 

This communication (including any files transmitted with it) is intended
solely for the person or entity to whom it is addressed, and may contain
confidential or privileged information. The disclosure, distribution or
copying of this message is strictly forbidden. Should you have received this
communication in error, kindly contact the sender promptly, destroy any
copies and delete this message from your computer system. 

Thank you.

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: OFF-TOPIC: Pointers to CallableStatement docs?

2002-08-20 Thread Mike Jackson

I don't know if it'll help, but here's one that I use:

if ( db.connect() ) {
CallableStatement cstmt =
db.getConnection().prepareCall( "begin delete_record( ?, ?, ?,
? ); end;" );
cstmt.setInt( 1, ( ( Integer ) ht.get(
teq.ARCHIVE_NBR ) ).intValue() );
cstmt.setString( 2, session.getValue( "USERNAME" ).toString() );
cstmt.setString( 3, "" + request.getRemoteAddr() );
cstmt.registerOutParameter( 4, java.sql.Types.VARCHAR );
cstmt.executeUpdate();
result = cstmt.getString( 4 );
deleted = true;
cstmt.close();
db.commit();
}

The "db" object is a wrapper that I have around the database connection.
Otherwise it
should be self-explainitory.  Hope this helps some...

--mikej
-=-
mike jackson
[EMAIL PROTECTED]

> -Original Message-
> From: Turner, John [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 20, 2002 4:49 AM
> To: 'Tomcat Users List'
> Subject: RE: OFF-TOPIC: Pointers to CallableStatement docs?
>
>
>
> Thanks, but I'm not getting any Java-related error messages.  The
> Java code
> just blows right on through, as everything keys off of the return status,
> which is always "false" or "negative".  This is because the
> stored procedure
> never executes, and according to the debug log printed by the driver, it's
> parameter related...that is, whatever I am doing with set*() and
> registerOutParameter() doesn't match up with what the procedure is
> expecting.
>
> That's my question...can anyone point me to a resource that shows how to
> call real-world stored procedures correctly with CallableStatement?  By
> "real-world" I don't mean rudimentary "take two numbers and add them
> together" or "get a row from a table" procedures, I can already do that.
> I'm looking for a more advanced tutorial, something that shows how to have
> inputs, outputs, in/outputs, and a return status, all at once.  It must be
> possible, I just can't figure it out, and can't find any resources that
> explain how to do it.  We have VB DLLs calling these procedures in
> production, so I know the procedures work, at least in
> conjunction with VB.
>
> John Turner
>
> -Original Message-
> From: Jim Urban [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 19, 2002 5:05 PM
> To: 'Tomcat Users List'
> Subject: RE: OFF-TOPIC: Pointers to CallableStatement docs?
>
>
> What error are you receiving?  Can you post a stack trace and a code clip
> with line numbers so we can see what is failing?
>
>
> Jim Urban - [EMAIL PROTECTED]
> Park City Solutions Inc.
> Clinical Connectivity Suite Product Manager
> Suite 295
> 500 Park Blvd.
> Itasca, IL  60143
> Voice:  (630) 250-3045 x106
> Fax:  (630) 250-3046
>
> CONFIDENTIALITY NOTICE
> This message and any included attachments are from Park City
> Solutions Inc.
> and are intended only for the entity to which it is addressed.
> The contained
> information is confidential and privileged material. If you are not the
> intended recipient, you are hereby notified that any use,
> dissemination, or
> copying of this communication is strictly prohibited and may be
> unlawful. If
> you have received this communication in error please notify the sender of
> the delivery error by e-mail or call Park City Solutions Inc. corporate
> offices at (435) 654-0621
>
> -Original Message-
> From: Turner, John [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 19, 2002 1:27 PM
> To: 'Tomcat Users List'
> Subject: RE: OFF-TOPIC: Pointers to CallableStatement docs?
>
>
> Thanks!  I've set up my code as you've described, but no luck.
> For example,
> here is the relevant portion of the stored procedure declaring the
> parameters (forgive me, I don't work with stored procedures that often, so
> this may not be the right portion of the procedure to focus on):
>
> @userid_in varchar(8),
> @password_in varchar(8),
> @ip_addr varchar(15),
> @http_referer varchar(80),
> @http_user_agent varchar(80),
> @pwdvalid bit OUTPUT,
> @userenabled bit OUTPUT,
> @graceexceeded bit OUTPUT,
> @adminuser char(1) OUTPUT,
> @title varchar(4) OUTPUT
>
> My code looks like this:
>
> // prepare the stored procedure statement
> try {
> cstmt = sConn.prepareCall("{? = call
> sp_validate_pwd(?,?,?,?,?,?,?,?,?,?)}");
> } catch (SQLException sqle) {
> sqle.printStackTrace();
> }
>
> // set the input parameters
> try {
> cstmt.setString(2, strUserID);
> cstmt.setString(3, strPassword);
> cstmt.setString(4, strRemoteAddress);
> cstmt.setString(5, strReferURL);
> cstmt.setString(6, strHTTPUserAgent);
> } catch (Exception e) {
> e.printStackTrace();
> }
>
> // register the output parameters for the stored procedure
> try {
> cstmt.registerOutParameter(1, Types.INTEGER);

RE: taglib jar exception

2002-08-20 Thread Turner, John


As far as I know, the current web.xml DTD is 2.3, not 2.2.  Not sure if it
matters, but it might...tomcat 4.x is very specific about supporting the
DTD.

The current DTD is http://java.sun.com/dtd/web-app_2_3.dtd

John Turner
[EMAIL PROTECTED]

-Original Message-
From: Georges Roux [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 20, 2002 1:56 PM
To: Tomcat Users List
Subject: taglib jar exception


Hi,

I'am running jakarta-tomcat-4.1.9-LE-jdk14,
I have this Exception
org.apache.jasper.JasperException: null(-1,-1) This absolute uri 
(http://java.sun.com/products/javamail/demo/webapp) cannot be resolved 
in either web.xml or the jar files deployed with this application

here is my web.xml
http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>


  JspDemo
  no description
  
FilterServlet
FilterServlet
no description
FilterServlet
  
  
FilterServlet
/compose
  
  
FilterServlet
/errordetails
  
  
FilterServlet
/login
  
  
FilterServlet
/logout
  
  
FilterServlet
/send
  
  
FilterServlet
/messageheaders
  
  
FilterServlet
/messagecontent
  
  
AttachmentServlet
AttachmentServlet
no description
AttachmentServlet
  
  
AttachmentServlet
/attachment
  
  

http://java.sun.com/products/javamail/demo/webapp
/WEB-INF/lib/jtl.jar
  


does anyone have any sugestions?

thanks in advance
Georges



--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE : Specifying location of tomcat-users.xml

2002-08-20 Thread Michael

>  > I'm running tomcat from within IDEA, and I'm using the -config
>  > command line parameter to tell tomcat where my server.xml file
>  > is located (in my project directory).  But tomcat is looking
>  > for tomcat-users.xml in the CATALINA_HOME directory.  Is there
>  > a command to specify a conf directory other than CATALINA_HOME?
> 
> Set the CATALINA_BASE variable as needed.

I've tried setting it to my project's root directory (my project has a
conf directory with the server.xml and tomcat-users.xml files in it) but
when I do this, my server.xml is no longer used (my web app doesn't
exist).  When I put the CATALINA_BASE back to CATALINA_HOME, it works
fine.

I'm using Tomcat 4.0.4.



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Client Certificates on Tomcat 3.3.1

2002-08-20 Thread Tathagat (London)

1 thing is still unclear to me. DO YOU SEE THE CERTIFICATE POP UP WHEN YOU
CONNECT TO THE SERVER?

If not you have to include your client side certificate store into your
$JAVA_HOME\jre\lib\security\cacerts keystore. using keytool -import with
-trustcacerts option

I use.

keytool -import -alias drkw_root -file InvestmentBankCA_root.pem
-trustcacerts -keystore cacerts -v

Tell me if you see the certificates already pop up when you connect to the
website, then I will try to find if anything else is going wrong.

cheers
Tathagat

-Original Message-
From: Rodrigo Ruiz [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 20, 2002 17:54
To: Tomcat Users List
Subject: Re: Client Certificates on Tomcat 3.3.1


Tathagat, at this moment I am generating my own self-signed server and
client certificates :-P

I have no .pem files, as I don't rely on any third provider. The keystore I
am using in my server has the following entries:

thawtepersonalfreemailca, Fri Feb 12 21:12:16 CET 1999, trustedCertEntry,
thawtepersonalbasicca, Fri Feb 12 21:11:01 CET 1999, trustedCertEntry,
verisignclass3ca, Mon Jun 29 19:05:51 CEST 1998, trustedCertEntry,
thawtepersonalpremiumca, Fri Feb 12 21:13:21 CET 1999, trustedCertEntry,
thawteserverca, Fri Feb 12 21:14:33 CET 1999, trustedCertEntry,
verisignclass4ca, Mon Jun 29 19:06:57 CEST 1998, trustedCertEntry,
verisignserverca, Mon Jun 29 19:07:34 CEST 1998, trustedCertEntry,
verisignclass1ca, Mon Jun 29 19:06:17 CEST 1998, trustedCertEntry,
thawtepremiumserverca, Fri Feb 12 21:15:26 CET 1999, trustedCertEntry,
verisignclass2ca, Mon Jun 29 19:06:39 CEST 1998, trustedCertEntry,
tomcat-sv, Tue Aug 20 16:39:06 CEST 2002, keyEntry,

The last entry is my own server certificate.

>From this point, using the KeyMan tool, I do this:

1. Create an empty keystore
2. Import the server certificate as a CA certificate into this new keystore
3. Create a new key pair
4. Create a .csr file
5. From the server keystore, create a certificate for this .csr (it creates
a .cer file with a X509 certificate chain)
6. Create a PKCS #12 token
7. Import the .cer created at point 5
8. Save the token (as a .pfx file)

Once I have this file, I import the server certificate in the trusted CA
provider store (I can do this directly from the pop-up window that shows the
browser on server connection).

Finally, I import the .pfx file into Explorer.

Is it enough importing the server certificate, or do I have to generate a
.pem file for my server certificate? If so, which tool should I have to use?

Now it seems to connect to the server, but it still receives an HTTP 401
error message.

My web-app has activated the CLIENT-CERT authentication scheme. If I relax
this to BASIC, all seems to work fine. The browser shows the user/password
dialog box, and I am in :-)

Could it be a problem related to the realm? How do you specified the list of
valid users? In CLIENT-CERT mode, you don't have user/password info.

Thanks a lot!

- Original Message -
From: "Tathagat (London)" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Tuesday, August 20, 2002 5:14 PM
Subject: RE: Client Certificates on Tomcat 3.3.1


> ok,
> what you have to do is put the certificate provider into your java's
> security file.
>
> keytool -import blah blah (options)
>
> what you have to import are ".PEM" files which you get from the
certificate
> providers. Then IE will popup your certificates. Please read keytool
> documentation on sun site and most things will be clear of my mail.
>
> cheers
> Tathagat
>


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
If you have received this e-mail in error or wish to read our e-mail 
disclaimer statement and monitoring policy, please refer to 
http://www.drkw.com/disc/email/ or contact the sender.
--


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Apache 1.3.20 + Tomcat + (mod_jk or mod_webapp) for SuSE 7.3 Linux?

2002-08-20 Thread Chetan Sarva

>
> Looks fine to me.
>
> The only other things I can suggest are:
>
> 1. it's something going on with apache 1.3.20 (unlikely) or is the ".20" a
> typo and you are using ".26"?

I am indeed using 1.3.26 (the subject line is left from the original post).

> 2. what are the contents of mod_jk.log when you ask for
> http://localhost/examples/servlet/HelloWorldExample ?

mod_jk.log is 0 bytes. Apache's error_log comes up with more 404s:
[Tue Aug 20 11:55:35 2002] [error] [client 192.168.1.53] File does not
exist: /usr/local/apache/htdocs/examples/jsp/snp/snoop.jsp
[Tue Aug 20 11:55:50 2002] [error] [client 192.168.1.53] File does not
exist: /usr/local/apache/htdocs/examples/servlet/HelloWorldExample

> 3. is Apache's ServerName set to "localhost" or is it defaulting to an IP
> address?

Yup.

Chetan


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Apache 1.3.20 + Tomcat + (mod_jk or mod_webapp) for SuSE 7.3 Linux?

2002-08-20 Thread Chetan Sarva

> What url did you try when you got this error? if you tried just
> http://localhost/examples/, apache should not try to redirect this to
> tomcat, since none of the JkMount statements are
> JkMount /examples/*. In this case, apache will be looking for one of the
> DirectoryIndex pages inside the /examples/ folder. Do any of those exist
> (index.html index.htm index.jsp)?

See my reply to John Turner. I at first tried only /examples/; the
JSPs/servlets don't work either.

> Also what part of httpd.conf do you have
> this line at: Include
/usr/local/jakarta-tomcat-4.0.4/conf/auto/mod_jk.conf?
> I don't have your old email anymore so i cannot check. It's possible that
if
> it's not at the beginning, that apache is following some other previous
> directive, which is why it may be looking under htdocs for examples

I tried moving it to the top but it has no effect. The Alias should prevent
Apache from serving anything from htdocs:

Alias /examples "/usr/local/tomcat/webapps/examples"

So http://localhost/examples/ should give me a directory listing (served by
Apache) as it does with Tomcat since there is no index file. From there I
can select either the jsp or servlet folder and hit Tomcat by running
HelloWolrd, etc.

Regards,
Chetan Sarva


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Client Certificates on Tomcat 3.3.1

2002-08-20 Thread Tathagat (London)

Also regarding PEM file, I get it from the authority who generates the my
certificates (for the whole of my organization).  So I don't generate PEM
files. Please look in google how to get them yourself.

cheers
Tathagat

-Original Message-
From: Rodrigo Ruiz [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 20, 2002 17:54
To: Tomcat Users List
Subject: Re: Client Certificates on Tomcat 3.3.1


Tathagat, at this moment I am generating my own self-signed server and
client certificates :-P

I have no .pem files, as I don't rely on any third provider. The keystore I
am using in my server has the following entries:

thawtepersonalfreemailca, Fri Feb 12 21:12:16 CET 1999, trustedCertEntry,
thawtepersonalbasicca, Fri Feb 12 21:11:01 CET 1999, trustedCertEntry,
verisignclass3ca, Mon Jun 29 19:05:51 CEST 1998, trustedCertEntry,
thawtepersonalpremiumca, Fri Feb 12 21:13:21 CET 1999, trustedCertEntry,
thawteserverca, Fri Feb 12 21:14:33 CET 1999, trustedCertEntry,
verisignclass4ca, Mon Jun 29 19:06:57 CEST 1998, trustedCertEntry,
verisignserverca, Mon Jun 29 19:07:34 CEST 1998, trustedCertEntry,
verisignclass1ca, Mon Jun 29 19:06:17 CEST 1998, trustedCertEntry,
thawtepremiumserverca, Fri Feb 12 21:15:26 CET 1999, trustedCertEntry,
verisignclass2ca, Mon Jun 29 19:06:39 CEST 1998, trustedCertEntry,
tomcat-sv, Tue Aug 20 16:39:06 CEST 2002, keyEntry,

The last entry is my own server certificate.

>From this point, using the KeyMan tool, I do this:

1. Create an empty keystore
2. Import the server certificate as a CA certificate into this new keystore
3. Create a new key pair
4. Create a .csr file
5. From the server keystore, create a certificate for this .csr (it creates
a .cer file with a X509 certificate chain)
6. Create a PKCS #12 token
7. Import the .cer created at point 5
8. Save the token (as a .pfx file)

Once I have this file, I import the server certificate in the trusted CA
provider store (I can do this directly from the pop-up window that shows the
browser on server connection).

Finally, I import the .pfx file into Explorer.

Is it enough importing the server certificate, or do I have to generate a
.pem file for my server certificate? If so, which tool should I have to use?

Now it seems to connect to the server, but it still receives an HTTP 401
error message.

My web-app has activated the CLIENT-CERT authentication scheme. If I relax
this to BASIC, all seems to work fine. The browser shows the user/password
dialog box, and I am in :-)

Could it be a problem related to the realm? How do you specified the list of
valid users? In CLIENT-CERT mode, you don't have user/password info.

Thanks a lot!

- Original Message -
From: "Tathagat (London)" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Tuesday, August 20, 2002 5:14 PM
Subject: RE: Client Certificates on Tomcat 3.3.1


> ok,
> what you have to do is put the certificate provider into your java's
> security file.
>
> keytool -import blah blah (options)
>
> what you have to import are ".PEM" files which you get from the
certificate
> providers. Then IE will popup your certificates. Please read keytool
> documentation on sun site and most things will be clear of my mail.
>
> cheers
> Tathagat
>


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
If you have received this e-mail in error or wish to read our e-mail 
disclaimer statement and monitoring policy, please refer to 
http://www.drkw.com/disc/email/ or contact the sender.
--


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: How to change the package definition from org.apache.jsp to something else ?

2002-08-20 Thread Rodrigo Ruiz

What about using

 <%@ page extends="your.package" %>

at the beginning of your JSP?

Related to JBuilder:
1. which version of JBuilder are you using?
2. Are you doing remote debugging, or executing Tomcat from within JBuilder?


- Original Message -
From: "Eric Gilbertson" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, August 20, 2002 5:53 PM
Subject: Re: How to change the package definition from org.apache.jsp to
something else ?


> Rob,
>
> As noted in a previous response, the package name and location of the
> servlet class
> files is server specific and not directly controllable by the user. You
can
> work around
> this by statically compiling your servlets using jspc (use the -p switch
to
> control
> the package name that is used) and packing the resulting class files into
a
> .war file.
> This scheme is also server specific, so you want might to consider
> portability impacts
> before using it.
>
> HTH,
>
> Eric Gilbertson
>
> At 12:50 AM 8/20/2002 -0400, you wrote:
> >Hi,
> >I have noticed that the default package structure in my servlet source
> >files (compiled from JSPs) is org.apache.jsp.
> >But the .java and .class files are generated in /work/localhost/_/
> >directory.  How can i
> >
> >1. Force my compiled .java and .class file to go in /work/org/apache/jsp
?
> >or
> >2. Make .java files to include the right package in .java files (which is
> >/work/locahost/_/)?
> >
> >thanks
> >Rob
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Apache 1.3.20 + Tomcat + (mod_jk or mod_webapp) for SuSE 7.3 Linux?

2002-08-20 Thread Turner, John


Sorry, I'm stumped.

John

-Original Message-
From: Chetan Sarva [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 20, 2002 11:59 AM
To: Tomcat Users List
Subject: Re: Apache 1.3.20 + Tomcat + (mod_jk or mod_webapp) for SuSE
7.3 Linux?


>
> Looks fine to me.
>
> The only other things I can suggest are:
>
> 1. it's something going on with apache 1.3.20 (unlikely) or is the ".20" a
> typo and you are using ".26"?

I am indeed using 1.3.26 (the subject line is left from the original post).

> 2. what are the contents of mod_jk.log when you ask for
> http://localhost/examples/servlet/HelloWorldExample ?

mod_jk.log is 0 bytes. Apache's error_log comes up with more 404s:
[Tue Aug 20 11:55:35 2002] [error] [client 192.168.1.53] File does not
exist: /usr/local/apache/htdocs/examples/jsp/snp/snoop.jsp
[Tue Aug 20 11:55:50 2002] [error] [client 192.168.1.53] File does not
exist: /usr/local/apache/htdocs/examples/servlet/HelloWorldExample

> 3. is Apache's ServerName set to "localhost" or is it defaulting to an IP
> address?

Yup.

Chetan


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Servlet jsp is currently unavailable

2002-08-20 Thread James_Webb

Hello,
I am having some difficulty in debugging this problem.  I am using the
Forte for Java 4 (Community Edition) IDE, and I have finally begun figuring
out that the error that I have been receiving appears to be a configuration
problem and not necessarily a coding problem.

When I access my JSP I am receiving the following error in the browser:



type Status report


message Servlet jsp is currently unavailable


description The requested service (Servlet jsp is currently unavailable) is
not currently available.





Using some of the debugging tools within Forte I have now discovered that
Tomcat is throwing an error on startup.  The following  (sorry about the
length) is what I clipped out of the localhost_log file:



2002-08-20 10:58:56 StandardHost[localhost]: Installing web application at
context path /webdav from URL file:C:\Program Files\Apache Tomcat
4.0\webapps\webdav
2002-08-20 10:58:56 WebappLoader[/webdav]: Deploying class repositories to
work directory C:\Program Files\Apache Tomcat
4.0\work\Standalone\localhost\webdav
2002-08-20 10:58:56 StandardManager[/webdav]: Seeding random number
generator class java.security.SecureRandom
2002-08-20 10:58:56 StandardManager[/webdav]: Seeding of random number
generator has been completed
2002-08-20 10:58:56 ContextConfig[/webdav]: Added certificates -> request
attribute Valve
2002-08-20 10:58:56 StandardWrapper[/webdav:default]: Loading container
servlet default
2002-08-20 10:58:56 default: init
2002-08-20 10:58:56 StandardWrapper[/webdav:invoker]: Loading container
servlet invoker
2002-08-20 10:58:56 invoker: init
2002-08-20 10:58:56 StandardWrapper[/webdav:jsp]: Marking servlet jsp as
unavailable
2002-08-20 10:58:56 StandardContext[/webdav]: Servlet /webdav threw load()
exception
javax.servlet.ServletException: Error instantiating servlet class
org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet
 at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:895)
 at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:810)
 at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3279)
 at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3421)
 at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
 at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:478)
 at
org.apache.catalina.core.StandardHost.install(StandardHost.java:738)
 at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:300)
 at org.apache.catalina.startup.HostConfig.start(HostConfig.java:389)
 at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:232)
 at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:155)
 at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:638)
 at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
 at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
 at
org.apache.catalina.core.StandardService.start(StandardService.java:388)
 at
org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
- Root Cause -
java.lang.NoClassDefFoundError: org/apache/jasper/JasperError
 at java.lang.Class.getDeclaredConstructors0(Native Method)
 at java.lang.Class.privateGetDeclaredConstructors(Class.java:1576)
 at java.lang.Class.getConstructor0(Class.java:1748)
 at java.lang.Class.newInstance0(Class.java:266)
 at java.lang.Class.newInstance(Class.java:249)
 at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:886)
 at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:810)
 at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3279)
 at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3421)
 at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
 at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:478)
 at
org.apache.catalina.core.StandardHost.install(StandardHost.java:738)
 at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:300)
 at org.apache.catalina.startup.HostConfig.start(HostConfig.java:389)
 at
org.apache.catalina.sta

RE: Servlet jsp is currently unavailable

2002-08-20 Thread Turner, John


Which tomcat are you using...the tomcat that came with Forte, or another
one?  If you are using the one that came with Forte, it's kind of old
(4.0.1).  4.0.4 isn't quite supported yet, as far as I know, but 4.0.3 seems
to be working just fine for me with Forte 4.

Adding a tomcat install to Forte is very easy.

Just a suggestion.

John Turner

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 20, 2002 12:17 PM
To: [EMAIL PROTECTED]
Subject: Servlet jsp is currently unavailable


Hello,
I am having some difficulty in debugging this problem.  I am using the
Forte for Java 4 (Community Edition) IDE, and I have finally begun figuring
out that the error that I have been receiving appears to be a configuration
problem and not necessarily a coding problem.

When I access my JSP I am receiving the following error in the browser:



type Status report


message Servlet jsp is currently unavailable


description The requested service (Servlet jsp is currently unavailable) is
not currently available.





Using some of the debugging tools within Forte I have now discovered that
Tomcat is throwing an error on startup.  The following  (sorry about the
length) is what I clipped out of the localhost_log file:



2002-08-20 10:58:56 StandardHost[localhost]: Installing web application at
context path /webdav from URL file:C:\Program Files\Apache Tomcat
4.0\webapps\webdav
2002-08-20 10:58:56 WebappLoader[/webdav]: Deploying class repositories to
work directory C:\Program Files\Apache Tomcat
4.0\work\Standalone\localhost\webdav
2002-08-20 10:58:56 StandardManager[/webdav]: Seeding random number
generator class java.security.SecureRandom
2002-08-20 10:58:56 StandardManager[/webdav]: Seeding of random number
generator has been completed
2002-08-20 10:58:56 ContextConfig[/webdav]: Added certificates -> request
attribute Valve
2002-08-20 10:58:56 StandardWrapper[/webdav:default]: Loading container
servlet default
2002-08-20 10:58:56 default: init
2002-08-20 10:58:56 StandardWrapper[/webdav:invoker]: Loading container
servlet invoker
2002-08-20 10:58:56 invoker: init
2002-08-20 10:58:56 StandardWrapper[/webdav:jsp]: Marking servlet jsp as
unavailable
2002-08-20 10:58:56 StandardContext[/webdav]: Servlet /webdav threw load()
exception
javax.servlet.ServletException: Error instantiating servlet class
org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet
 at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:89
5)
 at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:810)
 at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3279)
 at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3421)
 at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
 at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:478)
 at
org.apache.catalina.core.StandardHost.install(StandardHost.java:738)
 at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:300)
 at org.apache.catalina.startup.HostConfig.start(HostConfig.java:389)
 at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:232)
 at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:155)
 at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:638)
 at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
 at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
 at
org.apache.catalina.core.StandardService.start(StandardService.java:388)
 at
org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
- Root Cause -
java.lang.NoClassDefFoundError: org/apache/jasper/JasperError
 at java.lang.Class.getDeclaredConstructors0(Native Method)
 at java.lang.Class.privateGetDeclaredConstructors(Class.java:1576)
 at java.lang.Class.getConstructor0(Class.java:1748)
 at java.lang.Class.newInstance0(Class.java:266)
 at java.lang.Class.newInstance(Class.java:249)
 at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:88
6)
 at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:810)
 at
org.apache.catalina.core.StandardContext.

RE: Tomcat Crashes

2002-08-20 Thread Mike Jackson

The jdbc-odbc bridge has some memory and other leaks.  Don't use it.  Get
the jdbc driver from MS for MSSql server, it should be better.  Or get a
third party driver (but they cost money).  I haven't used tomcat and ms sql,
but using jrun and ms sql (and the jdbc-odbc bridge) I had some similar
problems.

--mikej
-=-
mike jackson
[EMAIL PROTECTED]

> -Original Message-
> From: Kingston Sew [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 20, 2002 5:26 AM
> To: [EMAIL PROTECTED]
> Subject: Tomcat Crashes
>
>
> Hi
>
> I am currently running Tomcat 4.0.4 Server on a
> Windows 2000 Server (v5.0.2195) with MS SQL
> Server 2000 (v8.00.194) and J2SDK 1.4.0. I am also
> using JDBC-ODBC bridge to access the database. After
> conducting a few tests on my application, I notice
> that sometimes Tomcat crashes. When I check the
> server, the Tomcat console is missing. I receive the
> following log file as shown belo
>
> Can anyone help me with this problem
>
> Thanks
> Kingston Sew
>
>
>
> An unexpected exception has been detected in native
> code outside the VM.
> Unexpected Signal : EXCEPTION_ACCESS_VIOLATION
> occurred at PC=0x41166ABA
> Function=SQLGetData+0x15
> Library=C:\WINNT\System32\SQLSRV32.dll
>
> Current Java thread:
>   at sun.jdbc.odbc.JdbcOdbc.getDataString(Native
> Method)
>   at
> sun.jdbc.odbc.JdbcOdbc.SQLGetDataString(JdbcOdbc.java:3285)
>   at
> sun.jdbc.odbc.JdbcOdbcResultSet.getDataString(JdbcOdbcResultSet.java:5494)
>   at
> sun.jdbc.odbc.JdbcOdbcResultSet.getString(JdbcOdbcResultSet.java:342)
>   at
> com.applied.hr.ProcessJobClassification.ListAll(ProcessJobClassifi
> cation.java:221)
>   at
> org.apache.jsp.lu_0005fjob$jsp._jspService(lu_0005fjob$jsp.java:216)
>   at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
>   at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>   at
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Jsp
> Servlet.java:201)
>   at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
>   at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
>   at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>   at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(A
> pplicationFilterChain.java:247)
>   at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(Applicati
> onFilterChain.java:193)
>   at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapp
> erValve.java:243)
>   at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
> ine.java:566)
>   at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.
> java:472)
>   at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>   at
> org.apache.catalina.core.StandardContextValve.invoke(StandardConte
> xtValve.java:190)
>   at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
> ine.java:566)
>   at
> org.apache.catalina.valves.CertificatesValve.invoke(CertificatesVa
> lve.java:246)
>   at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
> ine.java:564)
>   at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.
> java:472)
>   at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>   at
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
>   at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValv
> e.java:180)
>   at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
> ine.java:566)
>   at
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispat
> cherValve.java:170)
>   at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
> ine.java:564)
>   at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValv
> e.java:170)
>   at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
> ine.java:564)
>   at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
>   at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
> ine.java:564)
>   at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.
> java:472)
>   at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>   at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngine
> Valve.java:174)
>   at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
> ine.java:566)
>   at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.
> java:472)
>   at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>   at
> org.apache.catalina.connector.http.HttpProcessor.process(HttpProce
> ssor.java:1027)
>   at
> org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor
> .java:1125)
>   at java.lang.Thr

RE: Tomcat Crashes

2002-08-20 Thread Reynir Hübner

The jdbc driver from microsoft is ok supporting jdbc 2.0. Microsoft licensed the 
driver from merant / datadirect, and is now continuing developement / distributing it 
for free.

the jdbc-odbc bridge is not intended for production use (only testing).

hope it helps
-reynir



> -Original Message-
> From: Mike Jackson [mailto:[EMAIL PROTECTED]]
> Sent: 20. ágúst 2002 16:29
> To: Tomcat Users List
> Subject: RE: Tomcat Crashes
> 
> 
> The jdbc-odbc bridge has some memory and other leaks.  Don't 
> use it.  Get
> the jdbc driver from MS for MSSql server, it should be 
> better.  Or get a
> third party driver (but they cost money).  I haven't used 
> tomcat and ms sql,
> but using jrun and ms sql (and the jdbc-odbc bridge) I had 
> some similar
> problems.
> 
> --mikej
> -=-
> mike jackson
> [EMAIL PROTECTED]
> 
> > -Original Message-
> > From: Kingston Sew [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, August 20, 2002 5:26 AM
> > To: [EMAIL PROTECTED]
> > Subject: Tomcat Crashes
> >
> >
> > Hi
> >
> > I am currently running Tomcat 4.0.4 Server on a
> > Windows 2000 Server (v5.0.2195) with MS SQL
> > Server 2000 (v8.00.194) and J2SDK 1.4.0. I am also
> > using JDBC-ODBC bridge to access the database. After
> > conducting a few tests on my application, I notice
> > that sometimes Tomcat crashes. When I check the
> > server, the Tomcat console is missing. I receive the
> > following log file as shown belo
> >
> > Can anyone help me with this problem
> >
> > Thanks
> > Kingston Sew
> >
> >
> >
> > An unexpected exception has been detected in native
> > code outside the VM.
> > Unexpected Signal : EXCEPTION_ACCESS_VIOLATION
> > occurred at PC=0x41166ABA
> > Function=SQLGetData+0x15
> > Library=C:\WINNT\System32\SQLSRV32.dll
> >
> > Current Java thread:
> > at sun.jdbc.odbc.JdbcOdbc.getDataString(Native
> > Method)
> > at
> > sun.jdbc.odbc.JdbcOdbc.SQLGetDataString(JdbcOdbc.java:3285)
> > at
> > 
> sun.jdbc.odbc.JdbcOdbcResultSet.getDataString(JdbcOdbcResultSe
> t.java:5494)
> > at
> > 
> sun.jdbc.odbc.JdbcOdbcResultSet.getString(JdbcOdbcResultSet.java:342)
> > at
> > com.applied.hr.ProcessJobClassification.ListAll(ProcessJobClassifi
> > cation.java:221)
> > at
> > org.apache.jsp.lu_0005fjob$jsp._jspService(lu_0005fjob$jsp.java:216)
> > at
> > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
> > at
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > at
> > org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Jsp
> > Servlet.java:201)
> > at
> > 
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
> .java:381)
> > at
> > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
> > at
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > at
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(A
> > pplicationFilterChain.java:247)
> > at
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(Applicati
> > onFilterChain.java:193)
> > at
> > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapp
> > erValve.java:243)
> > at
> > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
> > ine.java:566)
> > at
> > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.
> > java:472)
> > at
> > 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> > at
> > org.apache.catalina.core.StandardContextValve.invoke(StandardConte
> > xtValve.java:190)
> > at
> > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
> > ine.java:566)
> > at
> > org.apache.catalina.valves.CertificatesValve.invoke(CertificatesVa
> > lve.java:246)
> > at
> > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
> > ine.java:564)
> > at
> > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.
> > java:472)
> > at
> > 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> > at
> > 
> org.apache.catalina.core.StandardContext.invoke(StandardContex
> t.java:2347)
> > at
> > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValv
> > e.java:180)
> > at
> > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
> > ine.java:566)
> > at
> > org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispat
> > cherValve.java:170)
> > at
> > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
> > ine.java:564)
> > at
> > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValv
> > e.java:170)
> > at
> > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
> > ine.java:564)
> > at
> > 
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValv
> e.java:468)
> > at
> > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
> > ine.java:564)
> > at
> > org.apache.catalina.core.StandardPipeline.invoke(StandardPipelin

RE: Servlet jsp is currently unavailable

2002-08-20 Thread Andrew Conrad

It seems that you are erroring on your webdav directory included with
Tomcat.  Try removing that directory and see if your program loads a
little further.


- Andrew

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, August 20, 2002 12:17 PM
> To: [EMAIL PROTECTED]
> Subject: Servlet jsp is currently unavailable
> 
> 
> Hello,
> I am having some difficulty in debugging this problem.  I am 
> using the Forte for Java 4 (Community Edition) IDE, and I 
> have finally begun figuring out that the error that I have 
> been receiving appears to be a configuration problem and not 
> necessarily a coding problem.
> 
> When I access my JSP I am receiving the following error in 
> the browser:
> 
> 
> 
> type Status report
> 
> 
> message Servlet jsp is currently unavailable
> 
> 
> description The requested service (Servlet jsp is currently 
> unavailable) is not currently available.
> 
> 
> 
> 
> 
> Using some of the debugging tools within Forte I have now 
> discovered that Tomcat is throwing an error on startup.  The 
> following  (sorry about the
> length) is what I clipped out of the localhost_log file:
> 
> 
> 
> 2002-08-20 10:58:56 StandardHost[localhost]: Installing web 
> application at context path /webdav from URL file:C:\Program 
> Files\Apache Tomcat 4.0\webapps\webdav 2002-08-20 10:58:56 
> WebappLoader[/webdav]: Deploying class repositories to work 
> directory C:\Program Files\Apache Tomcat 
> 4.0\work\Standalone\localhost\webdav
> 2002-08-20 10:58:56 StandardManager[/webdav]: Seeding random 
> number generator class java.security.SecureRandom 2002-08-20 
> 10:58:56 StandardManager[/webdav]: Seeding of random number 
> generator has been completed 2002-08-20 10:58:56 
> ContextConfig[/webdav]: Added certificates -> request 
> attribute Valve 2002-08-20 10:58:56 
> StandardWrapper[/webdav:default]: Loading container servlet 
> default 2002-08-20 10:58:56 default: init 2002-08-20 10:58:56 
> StandardWrapper[/webdav:invoker]: Loading container servlet 
> invoker 2002-08-20 10:58:56 invoker: init 2002-08-20 10:58:56 
> StandardWrapper[/webdav:jsp]: Marking servlet jsp as 
> unavailable 2002-08-20 10:58:56 StandardContext[/webdav]: 
> Servlet /webdav threw load() exception
> javax.servlet.ServletException: Error instantiating servlet 
> class org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet
>  at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardW
> rapper.java:895)
>  at
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.
> java:810)
>  at
> org.apache.catalina.core.StandardContext.loadOnStartup(Standar
> dContext.java:3279)
>  at
> org.apache.catalina.core.StandardContext.start(StandardContext
> .java:3421)
>  at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.
> java:785)
>  at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:478)
>  at
> org.apache.catalina.core.StandardHost.install(StandardHost.java:738)
>  at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:300)
>  at 
> org.apache.catalina.startup.HostConfig.start(HostConfig.java:389)
>  at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConf
> ig.java:232)
>  at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(L
> ifecycleSupport.java:155)
>  at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
>  at 
> org.apache.catalina.core.StandardHost.start(StandardHost.java:638)
>  at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
>  at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
>  at
> org.apache.catalina.core.StandardService.start(StandardService
> .java:388)
>  at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
>  at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
>  at 
> org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
>  at 
> org.apache.catalina.startup.Catalina.process(Catalina.java:179)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>  at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
> orImpl.java:39)
>  at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
> odAccessorImpl.java:25)
>  at java.lang.reflect.Method.invoke(Method.java:324)
>  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
> - Root Cause -
> java.lang.NoClassDefFoundError: org/apache/jasper/JasperError
>  at java.lang.Class.getDeclaredConstructors0(Native Method)
>  at 
> java.lang.Class.privateGetDeclaredConstructors(Class.java:1576)
>  at java.lang.Class.getConstructor0(Class.java:1748)
>  at java.lang.Class.newInstance0(Class.java:266)
>  at java.lang.Class.newInstance(Class.java:249)
>  at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardW
> rapper.java:886)
>  at
> org.

RE: Servlet jsp is currently unavailable

2002-08-20 Thread James_Webb


I am using Tomcat 4.0.4.  I had it downloaded prior to installing Forte,
and it did add to Forte very easy.  I was having this problem prior to
installing Forte...thought I had a bug in my code...so I thought maybe I
should get some help debugging.  I have not tried to uninstall / reinstall
Tomcat yet.  Maybe that should be my next step.  It sounds like version
4.0.3 would be the suggested version at this point?

Thanks for the help...I welcome all other suggestions,
Jim Webb


Which tomcat are you using...the tomcat that came with Forte, or another
one?  If you are using the one that came with Forte, it's kind of old
(4.0.1).  4.0.4 isn't quite supported yet, as far as I know, but 4.0.3
seems
to be working just fine for me with Forte 4.

Adding a tomcat install to Forte is very easy.

Just a suggestion.

John Turner

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Subject: Servlet jsp is currently unavailable

Hello,
I am having some difficulty in debugging this problem.  I am using the
Forte for Java 4 (Community Edition) IDE, and I have finally begun figuring
out that the error that I have been receiving appears to be a configuration
problem and not necessarily a coding problem.

When I access my JSP I am receiving the following error in the browser:



type Status report


message Servlet jsp is currently unavailable


description The requested service (Servlet jsp is currently unavailable) is
not currently available.





Using some of the debugging tools within Forte I have now discovered that
Tomcat is throwing an error on startup.  The following  (sorry about the
length) is what I clipped out of the localhost_log file:



2002-08-20 10:58:56 StandardHost[localhost]: Installing web application at
context path /webdav from URL file:C:\Program Files\Apache Tomcat
4.0\webapps\webdav
2002-08-20 10:58:56 WebappLoader[/webdav]: Deploying class repositories to
work directory C:\Program Files\Apache Tomcat
4.0\work\Standalone\localhost\webdav
2002-08-20 10:58:56 StandardManager[/webdav]: Seeding random number
generator class java.security.SecureRandom
2002-08-20 10:58:56 StandardManager[/webdav]: Seeding of random number
generator has been completed
2002-08-20 10:58:56 ContextConfig[/webdav]: Added certificates -> request
attribute Valve
2002-08-20 10:58:56 StandardWrapper[/webdav:default]: Loading container
servlet default
2002-08-20 10:58:56 default: init
2002-08-20 10:58:56 StandardWrapper[/webdav:invoker]: Loading container
servlet invoker
2002-08-20 10:58:56 invoker: init
2002-08-20 10:58:56 StandardWrapper[/webdav:jsp]: Marking servlet jsp as
unavailable
2002-08-20 10:58:56 StandardContext[/webdav]: Servlet /webdav threw load()
exception
javax.servlet.ServletException: Error instantiating servlet class
org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet
 at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:89

5)
 at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:810)
 at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:

3279)
 at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3421)
 at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
 at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:478)
 at
org.apache.catalina.core.StandardHost.install(StandardHost.java:738)
 at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:300)
 at org.apache.catalina.startup.HostConfig.start(HostConfig.java:389)
 at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:232)
 at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor

t.java:155)
 at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:638)
 at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
 at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
 at
org.apache.catalina.core.StandardService.start(StandardService.java:388)
 at
org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39

)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl

.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
- Root Cause -
java.lang.NoClassDefFoundError: org/apache/jasper/JasperError
 at java.lang.Class.getDeclaredConstructors0(Native Method)
 at java.lang.Class.pr

RE: NotSerializableException

2002-08-20 Thread Luminous Heart

That is a good question. Now I am totally confused. I
am not sure if tomcat is throwing this exception
because of the "predefined" imap object that
server.xml has. Or because of my webmail application
that uses imap. Is there a simple way to figure that
out? I guess I can try to clean all the mail refrences
in the server.xml and see what is going to happen.

regards.
--- "Shapira, Yoav" <[EMAIL PROTECTED]> wrote:
> Howdy,
> Then I think the issue is having the IMAP carried in
> the Session object.
> It should be marked as transient so that it's not
> persisted with the
> tomcat session persistence mechanism. 
> Alternatively, you can
> re-consider whether you need the whole IMAP session
> in your tomcat
> session, or only certain (serializable) parts from
> it, e.g. the folder
> name or whatever.
> 
> Yoav Shapira
> Millennium ChemInformatics
> 
> 
> >-Original Message-
> >From: Luminous Heart
> [mailto:[EMAIL PROTECTED]]
> >Sent: Tuesday, August 20, 2002 11:11 AM
> >To: Tomcat Users List
> >Subject: RE: NotSerializableException
> >
> >I am using the javasoft (sun) standard API for
> mail. I
> >believe am currently using javamail 1.2, from jsp
> and
> >javabeans.
> >
> >--- "Shapira, Yoav" <[EMAIL PROTECTED]> wrote:
> >> Hi,
> >> What code are you using to read to/from an IMAP
> >> server?
> >>
> >> Yoav Shapira
> >> Millennium ChemInformatics
> >>
> >>
> >> >-Original Message-
> >> >From: Luminous Heart
> >> [mailto:[EMAIL PROTECTED]]
> >> >Sent: Tuesday, August 20, 2002 10:42 AM
> >> >To: Tomcat Users List
> >> >Subject: NotSerializableException
> >> >
> >> >I am not asking tomcat to serialize my app, nor
> do
> >> I
> >> >have any serialization in this application.  Why
> am
> >> I
> >> >getting this new exception?
> >> >
> >> >2002-08-19 21:06:27 StandardManager[/NoPassApp]
> >> >Exception loading sessions from persistent
> storage
> >> >java.io.WriteAbortedException: writing aborted;
> >> >java.io.NotSerializableException:
> >> >com.sun.mail.imap.IMAPFolder
> >> >at
> >>
>
>>java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1278)
> >> >at
> >>
>
>>java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:184
> 5
> >> )
> >> >at
> >>
>
>>java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
> >> >at
> >>
>
>>java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:16
> 4
> >> 6)
> >> >at
> >>
>
>>java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
> >> >at
> >>
>
>>java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
> >> >at
> >>
>
>>org.apache.catalina.session.StandardSession.readObject(StandardSession
> .
> >> java
> >> >:1268)
> >> >at
> >>
>
>>org.apache.catalina.session.StandardSession.readObjectData(StandardSes
> s
> >> ion.
> >> >java:810)
> >> >at
> >>
>
>>org.apache.catalina.session.StandardManager.load(StandardManager.java:
> 4
> >> 11)
> >> >at
> >>
>
>>org.apache.catalina.session.StandardManager.start(StandardManager.java
> :
> >> 617)
> >> >at
> >>
>
>>org.apache.catalina.core.StandardContext.reload(StandardContext.java:2
> 4
> >> 97)
> >> >at
> >>
>
>>org.apache.catalina.loader.WebappContextNotifier.run(WebappLoader.java
> :
> >> 1332
> >> >)
> >> >at java.lang.Thread.run(Thread.java:536)
> >> >Caused by: java.io.NotSerializableException:
> >> >com.sun.mail.imap.IMAPFolder
> >> >at
> >>
>
>>java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054)
> >> >at
> >>
>
>>java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:
> 1
> >> 330)
> >> >at
> >>
>
>>java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:130
> 2
> >> )
> >> >at
> >>
>
>>java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java
> :
> >> 1245
> >> >)
> >> >at
> >>
>
>>java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
> >> >at
> >>
>
>>java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
> >> >at
> >>
>
>>org.apache.catalina.session.StandardSession.writeObject(StandardSessio
> n
> >> .jav
> >> >a:1338)
> >> >at
> >>
>
>>org.apache.catalina.session.StandardSession.writeObjectData(StandardSe
> s
> >> sion
> >> >.java:827)
> >> >at
> >>
>
>>org.apache.catalina.session.StandardManager.unload(StandardManager.jav
> a
> >> :507
> >> >)
> >> >at
> >>
>
>>org.apache.catalina.session.StandardManager.stop(StandardManager.java:
> 6
> >> 54)
> >> >at
> >>
>
>>org.apache.catalina.core.StandardContext.reload(StandardContext.java:2
> 4
> >> 09)
> >> >... 2 more
> >> >
> >> >
> >>
> >__
> >> >Do You Yahoo!?
> >> >HotJobs - Search Thousands of New Jobs
> >> >http://www.hotjobs.com
> >> >
> >> >--
> >> >To unsubscribe, e-mail:    >> >[EMAIL PROTECTED]>
> >> >For additional commands, e-mail:
> >> 

  1   2   >