Re: tomcat 5.0.19 Win2000 service

2004-04-21 Thread Bill Barker
Some installers for Sun's 1.4.2 don't set the registry entries that
tomcat.exe is expecting for the version shipping with 5.0.19.  You could try
the tomcat.exe from 5.0.21 or 5.0.22 (although I believe that you have to
reinstall the service for the 5.0.22 version).

Yoo, Joon [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Win2k Server SP4, IE 5.0
 java 1.4.2._04-b04 (installed under d:\sun\appserver)
 tomcat 5.0.19 (installed under d:\tomcat_5_0_19)
 JAVA_HOME:  D:\Sun\AppServer\jdk
 CATALINA_HOME:  D:\tomcat_5_0_19
 path:

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;D:\Sun\AppServ
 er\jdk\bin;D:\tomcat_5_0_19\bin;

 This configuration does not have our .war file uploaded or deployed.

 For some reason, the Apache Tomcat service will not start.  It returns
the
 error: Error 1053: The service did not respond to the start or control
 request in a timely fashion.

 path to executable:  d:\tomcat_5_0_19\bin\tomcat.exe //RS//Tomcat5

 The only way tomcat will run is by manually running catalina.bat.  Are
 people handling this by manually creating a service w/ catalina.bat?  If
so,
 how can I run that service in the background w/ output re-directed into a
 log?

 Thanks for any help,

 Joon Yoo




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



Re: org.apache.jk.common.ChannelSocket processConnection INFO: connection timeout reached

2004-04-21 Thread Bill Barker
The 'RESET' message is most likely somebody hitting the 'stop' button in the
browser.  The 'connection timeout' is Tomcat hanging up the line when it
didn't get another request from Apache within 20sec of the last one (which
is what you told it to do :).

Kommineni, Sateesh (GE Consumer  Industrial) [EMAIL PROTECTED]
wrote in message
news:[EMAIL PROTECTED]
Hi All,

I am trying to deploy a Web Application in my Tomcat and got the
following Error in the Log Files..

Apr 20, 2004 11:05:04 AM org.apache.jk.server.JkCoyoteHandler action
INFO: RESET
Apr 20, 2004 11:05:04 AM org.apache.jk.server.JkCoyoteHandler action
INFO: RESET
Apr 20, 2004 11:05:14 AM org.apache.jk.common.ChannelSocket
processConnection
INFO: connection timeout reached

What does this mean ??

I have the following entries in my server.xml.

  Connector className=org.apache.coyote.tomcat4.CoyoteConnector
acceptCount=10 bufferSize=2048 connectionTimeout=2 debug=0
enableLookups=true maxProcessors=75 minProcessors=5
address=3.130.164.201 port=12312
protocolHandlerClassName=org.apache.coyote.http11.Http11Protocol
proxyPort=0 redirectPort=8443 scheme=http secure=false
tcpNoDelay=true useURIValidationHack=false
Factory className=org.apache.catalina.net.DefaultServerSocketFactory/
/Connector

Connector className=org.apache.coyote.tomcat4.CoyoteConnector
acceptCount=50 bufferSize=2048 connectionTimeout=1 debug=0
enableLookups=false maxProcessors=75 minProcessors=20
address=3.130.164.201 port=12313
protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler
proxyPort=0 redirectPort=8443 scheme=ajp13 secure=false
tcpNoDelay=true useURIValidationHack=false
Factory className=org.apache.catalina.net.DefaultServerSocketFactory/
/Connector

   what is the significance of ajp13 scheme ??

  Pls let me know.. Thanks a lot..

-Sateesh




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



RE: SESSION PROBLEM in UNIX

2004-04-21 Thread MUKUND Premchander
Hi,

Thank you for your inputs.

I couldn't implement HttpSessionListener on tomcat3.2,hence I tried with
HttpSessionBindingListener before. 
where I added an a listener object to the session and so that when
session becomes invalid then the unbound method will get called .

Now as suggested I moved my application to tomcat4.1.29 and tested the
same ,by implementing HttpSessionListener and also 
Enabled the request dumper in the server.xml.

I still get the same problem i.e. after a few refresh null pointer
exception is thrown when session is accessed.
sessionCreated(HttpSessionEvent se) is called  and I get the SOP when I
load application in Browser ,but after the error occurs the
sessionDestroyed(HttpSessionEvent se) is not called ( confirmed it as
SOP was not displayed on the console)

Also I see no difference in the dump by the request dumper for the
refresh period when the problem occurred and the previous interval .

Message in the  log file 

2004-04-21 12:02:19 ApplicationDispatcher[/MCOne] Servlet.service() for
servlet jsp threw exception
org.apache.jasper.JasperException


Part of the  request response dump:
As I see it the session ID is the same and maintained .
So I am unable to find out if its my application or the  session
management that is causing the problem.

As shown above problem occurs at 12:02:19
Find below dump of 12:02:19 and previous interval 12:02:09 when the
screen display is good 


2004-04-21 12:02:08 RequestDumperValve[Standalone]: REQUEST URI
=/MCOne/BP/BPRealtimeServlet
2004-04-21 12:02:08 RequestDumperValve[Standalone]:
authType=null
2004-04-21 12:02:08 RequestDumperValve[Standalone]:
characterEncoding=null
2004-04-21 12:02:08 RequestDumperValve[Standalone]:
contentLength=116
2004-04-21 12:02:08 RequestDumperValve[Standalone]:
contentType=application/x-www-form-urlencoded
2004-04-21 12:02:08 RequestDumperValve[Standalone]:contextPath=
2004-04-21 12:02:08 RequestDumperValve[Standalone]:
cookie=JSESSIONID=314C72D3A1279E24B5095C9DA4D02DF2
2004-04-21 12:02:08 RequestDumperValve[Standalone]:
header=accept=image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-excel, application/vnd.ms-powerpoint,
application/msword, application/x-shockwave-flash, */*
2004-04-21 12:02:08 RequestDumperValve[Standalone]:
header=referer=http://10.3.106.177:8080/MCOne/BP/BPRealtimeServlet
2004-04-21 12:02:08 RequestDumperValve[Standalone]:
header=accept-language=en-us
2004-04-21 12:02:08 RequestDumperValve[Standalone]:
header=content-type=application/x-www-form-urlencoded
2004-04-21 12:02:08 RequestDumperValve[Standalone]:
header=accept-encoding=gzip, deflate
2004-04-21 12:02:08 RequestDumperValve[Standalone]:
header=user-agent=Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
2004-04-21 12:02:08 RequestDumperValve[Standalone]:
header=host=10.3.106.177:8080
2004-04-21 12:02:08 RequestDumperValve[Standalone]:
header=content-length=116
2004-04-21 12:02:08 RequestDumperValve[Standalone]:
header=connection=Keep-Alive
2004-04-21 12:02:08 RequestDumperValve[Standalone]:
header=cache-control=no-cache
2004-04-21 12:02:08 RequestDumperValve[Standalone]:
header=cookie=JSESSIONID=314C72D3A1279E24B5095C9DA4D02DF2
2004-04-21 12:02:08 RequestDumperValve[Standalone]:
locale=en_US
2004-04-21 12:02:08 RequestDumperValve[Standalone]:
method=POST
2004-04-21 12:02:08 RequestDumperValve[Standalone]:
parameter=hiddenUrlInitialize=
2004-04-21 12:02:08 RequestDumperValve[Standalone]:
parameter=interval=null, check_interval
2004-04-21 12:02:08 RequestDumperValve[Standalone]:
parameter=hiddenInterval=10
2004-04-21 12:02:08 RequestDumperValve[Standalone]:
parameter=hiddenRealtimeMain=Summary
2004-04-21 12:02:08 RequestDumperValve[Standalone]:
parameter=selectopt=10
2004-04-21 12:02:08 RequestDumperValve[Standalone]:
pathInfo=null
2004-04-21 12:02:08 RequestDumperValve[Standalone]:
protocol=HTTP/1.1
2004-04-21 12:02:08 RequestDumperValve[Standalone]:
queryString=null
2004-04-21 12:02:08 RequestDumperValve[Standalone]:
remoteAddr=10.3.106.64
2004-04-21 12:02:08 RequestDumperValve[Standalone]:
remoteHost=10.3.106.64
2004-04-21 12:02:08 RequestDumperValve[Standalone]:
remoteUser=null
2004-04-21 12:02:08 RequestDumperValve[Standalone]:
requestedSessionId=314C72D3A1279E24B5095C9DA4D02DF2
2004-04-21 12:02:08 RequestDumperValve[Standalone]:
scheme=http
2004-04-21 12:02:08 RequestDumperValve[Standalone]:
serverName=10.3.106.177
2004-04-21 12:02:08 RequestDumperValve[Standalone]:
serverPort=8080
2004-04-21 12:02:08 RequestDumperValve[Standalone]:
servletPath=null
2004-04-21 12:02:08 RequestDumperValve[Standalone]:
isSecure=false
2004-04-21 12:02:08 RequestDumperValve[Standalone]:
---
2004-04-21 12:02:09 RequestDumperValve[Standalone]:
---
2004-04-21 12:02:09 RequestDumperValve[Standalone]:
authType=null
2004-04-21 12:02:09 RequestDumperValve[Standalone]:
contentLength=-1
2004-04-21 12:02:09 

How to limit concurrent requests by same user

2004-04-21 Thread Thomas Lange

Hi,

some of my JSP pages take a few seconds to process.
When users get impatient and request them again, 
without having waited for the initial request to complete,
load builds up rapidly, making everything even slower 
and taking down tomcat completely quite soon.

Any ideas on how to prevent this?

I already thought of setting an attribut in the session at
the beginning of processing a page and removing it
again at the end. Following concurrent requests by
the same user (session) will first check if the attribute
is present and just return a blank page, if it is.
But what to do, if an user cancels the request, and the
page isn't processed until the end, as it fails with an
IOError? Isn't there any better way?

I'm using Apache 1.3.29 + Tomat 5.0.19 + mod_jk2 2.04

Thank you!
Thomas


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



mod_jk2 + tomcat 5. All processors in error state after some time under heavy load

2004-04-21 Thread Thomas Lange

Hi,

I'm implementing a chat application, which sends all the chatting
output for each user in just one long query (servlet), which last
for the entire chatting session.

On leaving the chatroom, the client simply closes the connection,
thus makeing the query fail, leaving the processor in an error state.

tomcat displays this message:

Apr 21, 2004 7:08:21 AM org.apache.jk.server.JkCoyoteHandler action
SEVERE: Error in action code
java.net.SocketException: Broken pipe
at java.net.SocketOutputStream.socketWrite0(Native Method)
at
java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at java.net.SocketOutputStream.write(SocketOutputStream.java:136)


and also loads of these:

Apr 21, 2004 7:08:22 AM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0


the first seems OK to me, the second I'm not sure about.
Under heavy load, eventually all processors remain in error state,
which results in load of messages like this in mod_jk.log:

[Mon Apr 19 08:38:39 2004] (error ) [mod_jk2.c (576)]  mod_jk.handler()
Error connecting to tomcat 12
[Mon Apr 19 08:38:39 2004] (error ) [jk_channel_apr_socket.c (488)]
channelApr.receive(): Error receiving message body -1 54
[Mon Apr 19 08:38:39 2004] (error ) [jk_workerEnv.c (492)]
workerEnv.processCallbacks() Error reading reply
[Mon Apr 19 08:38:39 2004] (error ) [jk_worker_ajp13.c (546)]
ajp13.service() ajpGetReply recoverable error 12
[Mon Apr 19 08:38:39 2004] (error ) [jk_channel_apr_socket.c (296)]
channelApr.open() attempt to connect to 127.0.0.1:8010 (localhost) failed 61
[Mon Apr 19 08:38:39 2004] (error ) [jk_worker_ajp13.c (331)]
ajp13.connect() failed ajp13:localhost:8010
[Mon Apr 19 08:38:39 2004] (error ) [jk_worker_ajp13.c (412)]
ajp13.service() failed to connect endpoint errno=9 Bad file descriptor
[Mon Apr 19 08:38:39 2004] (error ) [jk_worker_ajp13.c (648)]
ajp13.service() Error  forwarding ajp13:localhost:8010 1 1
[Mon Apr 19 08:38:39 2004] (error ) [jk_worker_lb.c (427)]  lb.service()
worker failed 12 for ajp13:localhost:8010
[Mon Apr 19 08:38:39 2004] (error ) [jk_worker_lb.c (367)]
lb_worker.service() all workers in error or disabled state


CPU usage of tomcat drops to 0% a thread dump shows

TP-Processor25 daemon prio=5 tid=0x0888bc00 nid=0x8864c00 in Object.wait()
[9302000..9302cdc]
at java.lang.Object.wait(Native Method)
- waiting on 0x325e8c58 (a
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
at java.lang.Object.wait(Object.java:429)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:660)
- locked 0x325e8c58 (a
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
at java.lang.Thread.run(Thread.java:534)

for all processors. Is that the normal state of waiting for requests?
I believe (not sure if I checked), that tomcat still receives request
through
HTTP processors.

Any ideas?

I'm using freebsd, Apache 1.3.29 mod_ssl, Tomcat 5.0.19, mod_jk2 2.0.4,
and Sun Java SDK 1.4.2

Thank you!
Thomas


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



Re: How to limit concurrent requests by same user

2004-04-21 Thread Graham Lea
We just did this for our application.

We do pretty much what you said, except with a little tweak.
If multiple requests come in for the same session, all but the first 
request wait (literally: Object.wait()) until the first one has finished.
We also keep a track of which was the last thread to come in the door.
When the request being processed finishes, only the thread that was the 
last in the door gets processed.
All other requests just get ended with no content (and hence minimal 
processor usage), because there's no browser waiting for the response 
anyway.

Of course, this won't work if you want to support multiple browser 
windows attaching to one session.

Graham.

Thomas Lange wrote:

Hi,

some of my JSP pages take a few seconds to process.
When users get impatient and request them again, 
without having waited for the initial request to complete,
load builds up rapidly, making everything even slower 
and taking down tomcat completely quite soon.

Any ideas on how to prevent this?

I already thought of setting an attribut in the session at
the beginning of processing a page and removing it
again at the end. Following concurrent requests by
the same user (session) will first check if the attribute
is present and just return a blank page, if it is.
But what to do, if an user cancels the request, and the
page isn't processed until the end, as it fails with an
IOError? Isn't there any better way?
I'm using Apache 1.3.29 + Tomat 5.0.19 + mod_jk2 2.04

Thank you!
Thomas
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

--
Graham Lea
Software Engineer
Forge Research Pty Ltd
Suite G11, Bay 9, Locomotive Workshop
Australian Technology Park, Cornwallis Street
Eveleigh NSW 1430 Australia
Phone: +61 2 9209 4152   Fax: +61 2 9209 4172
www.forge.com.au
--
This message contains privileged and confidential information intended
only for the use of the addressee named above.  If you are not the
intended recipient of this message you must not disseminate, copy or
take any action in reliance on it.  If you have received this message
in error please notify the sender immediately.  Any views expressed in
this message are those of the individual sender, except where the
sender specifically states them to be the views of another (including
a Body Corporate).
--


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


Re: the pain of choice

2004-04-21 Thread Christoph P. Kukulies
On Mon, Apr 19, 2004 at 11:32:38PM +0200, C. Kukulies wrote:
 Can someone give me an advice which way to go WRT to using a 
 tomcat/apache combo on a Unix (not Linux) system?
 
 There are so many options, jk, jk2, tomcat 3-4-5, apache 1.3, apache2.
 worker.properties worker2.properties, jk2.properties in tomcat/conf,
 mod_jk.conf in etc/apache, mod_jk, mod_jk2.
 
 Then I see constructs in brackets [] in worker.properties and without these.
 What is workers.host=jsp-hostname? Is it an IP host? Or is it some placeholder
 which must be in workers.list?

Thanks to all. After a short excursion into trying to build the
connector-current from CVS (someone noted that the standard src tar ball
doesn't include all sources necessary to do the ant build) build also
fell over on this even with a checked out tree of jakarta-tomcat-connectors.

But, ok, this is in flux but it would be nice if that would be buildable
also sooner or later. (I'm using jdk1.4.2, FWIW).

I managed now to get a working combo of apache-1.3_29 and tomcat-5.0.19
with the mod_jk connector working.

Crucial for my servlet mapping was to create an appropriate web.xml file
in the deply directory under webapps/servelts/WEB-INF.

--
Chris Christoph P. U. Kukulies kuku_at_physik.rwth-aachen.de

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



Re: How to limit concurrent requests by same user

2004-04-21 Thread Andreas Schildbach
Graham Lea wrote:

We do pretty much what you said, except with a little tweak.
If multiple requests come in for the same session, all but the first 
request wait (literally: Object.wait()) until the first one has finished.
We also keep a track of which was the last thread to come in the door.
When the request being processed finishes, only the thread that was the 
last in the door gets processed.
All other requests just get ended with no content (and hence minimal 
processor usage), because there's no browser waiting for the response 
anyway.

Of course, this won't work if you want to support multiple browser 
windows attaching to one session.
One could keep apart requests not only by user, but also by URL. This 
should allow different windows, if they contain different pages.

I wonder if it would be possible to write a filter that would implement 
this functionality transparently to the JSP pages/servlets.

It's not only the users getting impatient, there is also a lot of 
(Windows) users that do double clicks on every web link (effectively 
doubling server load).

Regards,

Andreas

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


Re: How to limit concurrent requests by same user

2004-04-21 Thread Thomas Lange

 I wonder if it would be possible to write a filter that would implement 
 this functionality transparently to the JSP pages/servlets.

It could be done semi-transparently with a conditional 
custom tag embracing all of an individual page's content.
That tag could check for concurrent request and then
conditionally display or omit the (costly) body of the page.

Regards
Thomas


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



{Virus?} hello

2004-04-21 Thread craigmcc
Warning: Questo messaggio presenta un o piu' allegati rimossi in automatico
Warning: (textfile.pif).
Warning: Per ulteriori informazioni, consultate l'allegato  
Firewall-Attachment-Warning.txt.

do not use this creditcard!
Comunicazione dal servizio di Protezione della posta dai Virus MailScanner

L'allegato originale textfile.pif
probabilmente contiene un virus ed e' stato sostituito da questo messaggio di avviso.

Se volete ricevere una copia dell'allegato *infetto*, contattate il vostro
helpdesk, includendo una copia integrale di questo messaggio.

Il giorno Wed Apr 21 10:17:56 2004 il sistema antivirus riporta:
   textfile.pif contains Worm.SomeFool.Gen-1 
   Shortcuts to MS-Dos programs are very dangerous in email (textfile.pif)

Note per l' Help Desk: controllate su the Firewall MailScanner in 
/var/spool/MailScanner/quarantine/20040421 (message i3L89Pbw002834).
-- 
Postmaster

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

RE: Problems building tomcat 5 from source

2004-04-21 Thread Andi Reinbrech
Do you have cvs.exe installed on your XP Box?  The CreateProcess fails with
error code 2, which is a File not found error in windows.

The build is trying to fetch the latest CVS sources but can't execute
cvs.exe

**
Everything in this e-mail and attachments relating to the official business of 
MultiChoice Africa is proprietary to 
the company. Any view or opinion expressed in this message may be the view of the 
individual and should not automatically 
be ascribed to the company.  If you are not the intended recipient, you may not 
peruse, use, disseminate, distribute or 
copy this message. If you have received this message in error, please notify the 
sender immediately by email, facsimile 
or telephone and destroy the original message.
**

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



Re: Re: Re: Your document

2004-04-21 Thread tomcat-user
Please have a look at the attached file.

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

Using init parameters

2004-04-21 Thread Keith Hankin
 I have the following in my web.xml:
 context-param
 param-nameapplicationName/param-name
 param-valuetestApp/param-value
 /context-param
 
 My servlet class extends HttpServlet and has the following method:
 public void init(ServletConfig config) throws ServletException
 {
 super.init(config);
 configDir = getInitParameter(configDir);
 applicationName = getInitParameter(applicationName);
 System.out.println(configDir =  + configDir);
 System.out.println(applicationName =  + applicationName);
 jdbcAccess = new AddrJdbcAccess(configDir, applicationName);
 }

 Both calls to getInitParameter() return null. What's wrong here?



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



Re: Using init parameters

2004-04-21 Thread Jens-Uwe Mager
On Wed, Apr 21, 2004 at 15:28 +0530, Keith Hankin wrote:

  I have the following in my web.xml:
  context-param
  param-nameapplicationName/param-name
  param-valuetestApp/param-value
  /context-param
  
  My servlet class extends HttpServlet and has the following method:
  public void init(ServletConfig config) throws ServletException
  {
  super.init(config);
  configDir = getInitParameter(configDir);
  applicationName = getInitParameter(applicationName);
  System.out.println(configDir =  + configDir);
  System.out.println(applicationName =  + applicationName);
  jdbcAccess = new AddrJdbcAccess(configDir, applicationName);
  }
 
  Both calls to getInitParameter() return null. What's wrong here?

You are asking for the servlet init parameter, use
getServletContext().getInitParameter() to retrieve the init paramaters for a
context. I found that confusing as well.

-- 
Jens-Uwe Mager  pgp-mailto:F476EBC2

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



RE: Using init parameters

2004-04-21 Thread MUKUND Premchander

Guess you are looking to access the  context param init paramaters  (as
specified in 
context-param blocks).
The  servelt config's getInitParameter corresponds to the *servlet's*
init parameters
So guess you need to use
getServletContext().getInitParameter(applicationName) rather than
getInitParameter(applicationName)



-Original Message-
From: Keith Hankin [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 21, 2004 3:29 PM
To: [EMAIL PROTECTED]
Subject: Using init parameters


 I have the following in my web.xml:
 context-param
 param-nameapplicationName/param-name
 param-valuetestApp/param-value
 /context-param
 
 My servlet class extends HttpServlet and has the following method:
 public void init(ServletConfig config) throws ServletException
 {
 super.init(config);
 configDir = getInitParameter(configDir);
 applicationName = getInitParameter(applicationName);
 System.out.println(configDir =  + configDir);
 System.out.println(applicationName =  + applicationName);
 jdbcAccess = new AddrJdbcAccess(configDir, applicationName);
 }

 Both calls to getInitParameter() return null. What's wrong here?



-
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]



Mail Authentication

2004-04-21 Thread tomcat-user
Encrypted message is available.

 Attachment: No Virus found
 Norton AntiVirus - www.symantec.de



Norton AntiVirus Deleted1.txt
Description: plain/text
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Problem invoking webservice from within servlets service method.

2004-04-21 Thread KRUEGER MICHAEL
I have to create iViews which are basically servlets running on the SAP webportal.
The development environment is using Tomcat 3.3 and the SAP server  Planet to execute 
servlets.
My problem is now that my iView get's his information from a webservice based SDK, but 
tomcat seems to be blocking the soap http request to the webservice. On the iPlanet it 
works perfect with no code change, so I assume that there must be some configuration 
in Tomcat that I have to tweak, so that tomcat will allow a call to an ip address from 
within the service method of the servlet. Is that right? Does somebody know what I 
have to do?

I feel this is the right spot because I strongly feel that it's not an axis problem - 
again because it works on the iPlanet server without any changes.

Michael

The following error is generated by the axis library which I use to call the 
webservice from within my servlet. Can Tomcat 3.3 disallow socket connections?

Caused by: (404)Not Found
at 
org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:630)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:128)
at 
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:180)
at org.apache.axis.client.Call.invokeEngine(Call.java:2564)
at org.apache.axis.client.Call.invoke(Call.java:2553)
at org.apache.axis.client.Call.invoke(Call.java:2248)
at org.apache.axis.client.Call.invoke(Call.java:2171)
at org.apache.axis.client.Call.invoke(Call.java:1691)
...



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



JSP work dir problem running Tomcat 5 through jsvc

2004-04-21 Thread Ingo Kampe
Hello,

i'm facing a problem with jsp pages. Seems to have a broken work dir 
path and jasper doesn't prepare the jsp files to .java files for 
compilation.

symptom:
java.io.FileNotFoundException: 
/opt/tbone/server/tomcat/work/Catalina/localhost/tbone/org/apache/jsp/
topmenu_jsp.java
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.init(FileOutputStream.java:179)
at java.io.FileOutputStream.init(FileOutputStream.java:70)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:223)

This is the first jsp page of my webapp. servlets and html pages are 
working well.

What works:
same webapp in Tomcat 3.3 and in Tomcat 5.19 started with startup.sh
instead of jsvc. But I need the fork mechanism of jsvc for using port 
80,443 as user. jsp-examples work fine but there are already precompiled 
jsp pages inside WEB-INF/classes/org/apache/jsp.

Any help would be appreciated.

Thanx,
)ngo
Setup information stuff:

- attached my init.d startup script
- server.xml snippet:
Connector port=80
maxThreads=50 minSpareThreads=2 maxSpareThreads=25
enableLookups=false redirectPort=8443 acceptCount=100
debug=0 connectionTimeout=2
disableUploadTimeout=true /
Connector port=443
maxThreads=50 minSpareThreads=2 maxSpareThreads=25
enableLookups=false disableUploadTimeout=true
acceptCount=100 debug=0 scheme=https secure=true
clientAuth=false sslProtocol=TLS keystoreFile=conf/ssl.key 
keystorePass=any/

- global web.xml snippet for jsp part:

servlet
 servlet-namejsp/servlet-name 
servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class
 init-param
  param-namedevelopment/param-name
  param-valuefalse/param-value
 /init-param
 init-param
  param-namefork/param-name
  param-valuetrue/param-value
 /init-param
 init-param
  param-namexpoweredBy/param-name
  param-valuefalse/param-value
 /init-param
 load-on-startup3/load-on-startup
/servlet

- deploy snippet from conf/Catalina/localhost/tbone.xml:

Context path=/tbone docBase=/opt/tbone/server/configserver
debug=0 privileged=true reloadable=true
  Logger className=org.apache.catalina.logger.FileLogger
  prefix=configserver_log. suffix=.txt
  timestamp=true/
/Context
- the empty work dir:

sisyphos:/opt/tbone/server/tomcat # ll work/Catalina/localhost/tbone/
drwx--2 www  tbone4096 Apr 21 11:47 .
drwx--6 www  tbone4096 Apr 21 11:44 ..
-rw---1 www  tbone  44 Apr 21 11:44 tldCache.ser
- system informations:

tried with SUN j2sdk1.4.2_04 and
SUN j2re1.4.2_04 + tools.jar from j2sdk1.4.2_04
cat /etc/SuSE-release
SuSE Linux 8.0 (i386)
VERSION = 8.0
uname -a
Linux genesis-ika 2.4.18-4GB-SMP #1 SMP Wed Mar 27 13:56:04 UTC 2002 
i686 unknown

#!/bin/bash
# $Id: run-tomcat,v 1.2.4.2 2004/04/16 17:32:15 ika Exp $
# Copyright Ingo Kampe, bone labs GmbH, Berlin, 2004

## SETUP ##
source /opt/tbone/shared/bin/makeenv
TOMCAT_OPTS=-Xmx128m
#JAVA_OPTS=-Xmx128m -server
CATALINA_HOME=${TOMCAT_HOME}
CATALINA_TMPDIR=${TOMCAT_HOME}/temp
CATALINA_PID=/var/run/tomcat.pid
TOMCAT_LOG=${TBONE_LOG_DIR}/tomcat
CONFIGSERVER_LOG=${TBONE_LOG_DIR}/configserver

CLASSPATH=\
${SHARED_LIB_DIR}/tools.jar:\
${CATALINA_HOME}/bin/commons-daemon.jar:\
${CATALINA_HOME}/bin/bootstrap.jar
## SETUP finished ##

case $1 in
  start)
# create log dir structure
[ -d ${TOMCAT_LOG} ] || setuidgid ${TBONE_USER} mkdir -p ${TOMCAT_LOG}
[ -d ${CONFIGSERVER_LOG} ] || setuidgid ${TBONE_USER} mkdir -p 
${CONFIGSERVER_LOG}

cd ${CATALINA_HOME}

# jsvc call for tomcat 5 (does not work correct!)
#-jvm server \
#${JSVC_BIN} \
./bin/jsvc \
-home ${JAVA_HOME} \
-cp ${CLASSPATH} \
-user ${WWW_USER} \
-Djava.endorsed.dirs=${TOMCAT_HOME}/common/endorsed \
-Dcatalina.home=$CATALINA_HOME \
-Djava.io.tmpdir=$CATALINA_TMPDIR \
-outfile ${TBONE_LOG_DIR}/tomcat/catalina.out \
-errfile '1' \
-pidfile ${CATALINA_PID} \
${TOMCAT_OPTS} \
-verbose \
org.apache.catalina.startup.Bootstrap

# extension for jsvc BUG workaround
#${CATALINA_HOME}/bin/catalina.sh start  sleep 1
# extension end
;;
  stop)
# extension for jsvc BUG workaround
#${CATALINA_HOME}/bin/catalina.sh stop  sleep 1
# extension end
PID=`cat ${CATALINA_PID} 2/dev/null`
[ -n $PID ]  kill $PID  sleep 1
[ -f ${CATALINA_PID} ]  rm ${CATALINA_PID}
pkill -9 -u ${WWW_USER} jsvc
rm -rf ${CATALINA_HOME}/work/*
;;
  restart)
$0 stop
$0 start
;;
  *)
echo Usage tomcat start/stop/restart
exit 1;;
esac


signature.asc
Description: OpenPGP digital signature


Filtered: Do you?

2004-04-21 Thread tomcat-user
RM ScanMail v2.1.9
Copyright RM plc 2000

Your message to [EMAIL PROTECTED] has not been delivered.
This is because an attached file contains a virus.

Infected file: text01.zip
Found the W32/[EMAIL PROTECTED] virus !!!
Infected file: document.txt
   .exe
Found the W32/[EMAIL PROTECTED] virus !!!



You have written a very good text, excellent, good work!

This is a message from the IFL E-Mail Virus Protection Service
--

The original e-mail attachment

text01.zip

appears to be infected by a virus and has been replaced by this 
warning message.

If this e-mail is from a known reliable source and you are expecting
the attachment you may wish to contact the sender by replying to this
e-mail. You might inform them that they have possibly sent a virus and
should use an up-to-date virus checker to scan their system. 

As always, if you are unsure of the content or nature of any e-mail
attachment, please delete the attachment without opening it.

This is an automated response to a possible virus infected e-mail.
The sender of this e-mail has not been notified in case it was
forwarded from a mailing list.

If you require further information please contact [EMAIL PROTECTED]

At Wed Apr 21 12:35:57 2004 the virus scanner said:
   /1BGG0k-0004eG-00/text01.zipFound the W32/[EMAIL PROTECTED] virus !!!



Note to support:
Look on scanmail-02.easymail.va.ifl.net in /usr/local/mailscanner/var/quarantine
(message 1BGG0k-0004eG-00).


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

Re: JSP work dir problem running Tomcat 5 through jsvc

2004-04-21 Thread Parsons Technical Services
When using jsvc it will not picking up the shell variables. Set the data
manually in the script header. Mine looks like this:

JAVA_HOME=/tomcat/java
CATALINA_HOME=/tomcat/tc
DAEMON_HOME=/tomcat/tc/bin
TOMCAT_USER=tomcat
TMP_DIR=/var/tmp
CATALINA_OPTS=
CLASSPATH=\
$JAVA_HOME/lib/tools.jar:\
$CATALINA_HOME/bin/commons-daemon.jar:\
$CATALINA_HOME/bin/bootstrap.jar

Also where did you get the script file from? It is considerable different
from the one I downloaded a few weeks ago. In mine the first line tells you
to edit these line to match your machine.

Doug
www.parsonstechnical.com


- Original Message - 
From: Ingo Kampe [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, April 21, 2004 7:10 AM
Subject: JSP work dir problem running Tomcat 5 through jsvc


 Hello,

 i'm facing a problem with jsp pages. Seems to have a broken work dir
 path and jasper doesn't prepare the jsp files to .java files for
 compilation.

 symptom:
 java.io.FileNotFoundException:
 /opt/tbone/server/tomcat/work/Catalina/localhost/tbone/org/apache/jsp/
 topmenu_jsp.java
 at java.io.FileOutputStream.open(Native Method)
 at java.io.FileOutputStream.init(FileOutputStream.java:179)
 at java.io.FileOutputStream.init(FileOutputStream.java:70)
 at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:223)

 This is the first jsp page of my webapp. servlets and html pages are
 working well.

 What works:
 same webapp in Tomcat 3.3 and in Tomcat 5.19 started with startup.sh
 instead of jsvc. But I need the fork mechanism of jsvc for using port
 80,443 as user. jsp-examples work fine but there are already precompiled
 jsp pages inside WEB-INF/classes/org/apache/jsp.

 Any help would be appreciated.

 Thanx,
 )ngo


 Setup information stuff:

 - attached my init.d startup script
 - server.xml snippet:

 Connector port=80
 maxThreads=50 minSpareThreads=2 maxSpareThreads=25
 enableLookups=false redirectPort=8443 acceptCount=100
 debug=0 connectionTimeout=2
 disableUploadTimeout=true /
 Connector port=443
 maxThreads=50 minSpareThreads=2 maxSpareThreads=25
 enableLookups=false disableUploadTimeout=true
 acceptCount=100 debug=0 scheme=https secure=true
 clientAuth=false sslProtocol=TLS keystoreFile=conf/ssl.key
 keystorePass=any/

 - global web.xml snippet for jsp part:

 servlet
   servlet-namejsp/servlet-name
 servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class
   init-param
param-namedevelopment/param-name
param-valuefalse/param-value
   /init-param
   init-param
param-namefork/param-name
param-valuetrue/param-value
   /init-param
   init-param
param-namexpoweredBy/param-name
param-valuefalse/param-value
   /init-param
   load-on-startup3/load-on-startup
 /servlet

 - deploy snippet from conf/Catalina/localhost/tbone.xml:

 Context path=/tbone docBase=/opt/tbone/server/configserver
  debug=0 privileged=true reloadable=true

Logger className=org.apache.catalina.logger.FileLogger
prefix=configserver_log. suffix=.txt
timestamp=true/
 /Context

 - the empty work dir:

 sisyphos:/opt/tbone/server/tomcat # ll work/Catalina/localhost/tbone/
 drwx--2 www  tbone4096 Apr 21 11:47 .
 drwx--6 www  tbone4096 Apr 21 11:44 ..
 -rw---1 www  tbone  44 Apr 21 11:44 tldCache.ser

 - system informations:

 tried with SUN j2sdk1.4.2_04 and
 SUN j2re1.4.2_04 + tools.jar from j2sdk1.4.2_04

 cat /etc/SuSE-release
 SuSE Linux 8.0 (i386)
 VERSION = 8.0
 uname -a
 Linux genesis-ika 2.4.18-4GB-SMP #1 SMP Wed Mar 27 13:56:04 UTC 2002
 i686 unknown








 #!/bin/bash
 # $Id: run-tomcat,v 1.2.4.2 2004/04/16 17:32:15 ika Exp $
 # Copyright Ingo Kampe, bone labs GmbH, Berlin, 2004

 ## SETUP ##
 source /opt/tbone/shared/bin/makeenv
 TOMCAT_OPTS=-Xmx128m
 #JAVA_OPTS=-Xmx128m -server
 CATALINA_HOME=${TOMCAT_HOME}
 CATALINA_TMPDIR=${TOMCAT_HOME}/temp
 CATALINA_PID=/var/run/tomcat.pid
 TOMCAT_LOG=${TBONE_LOG_DIR}/tomcat
 CONFIGSERVER_LOG=${TBONE_LOG_DIR}/configserver

 CLASSPATH=\
 ${SHARED_LIB_DIR}/tools.jar:\
 ${CATALINA_HOME}/bin/commons-daemon.jar:\
 ${CATALINA_HOME}/bin/bootstrap.jar
 ## SETUP finished ##

 case $1 in
   start)
   # create log dir structure
   [ -d ${TOMCAT_LOG} ] || setuidgid ${TBONE_USER} mkdir -p ${TOMCAT_LOG}
   [ -d ${CONFIGSERVER_LOG} ] || setuidgid ${TBONE_USER} mkdir -p
${CONFIGSERVER_LOG}

 cd ${CATALINA_HOME}

 # jsvc call for tomcat 5 (does not work correct!)
 #-jvm server \
 #${JSVC_BIN} \
 ./bin/jsvc \
   -home ${JAVA_HOME} \
   -cp ${CLASSPATH} \
   -user ${WWW_USER} \
   -Djava.endorsed.dirs=${TOMCAT_HOME}/common/endorsed \
   -Dcatalina.home=$CATALINA_HOME \
   -Djava.io.tmpdir=$CATALINA_TMPDIR \
   -outfile ${TBONE_LOG_DIR}/tomcat/catalina.out \
   -errfile '1' \
   -pidfile ${CATALINA_PID} \
   ${TOMCAT_OPTS} \
 -verbose \
   org.apache.catalina.startup.Bootstrap

 # extension for jsvc BUG 

RE: Problem invoking webservice from within servlets service method.

2004-04-21 Thread Ralph Einfeldt

I don't know anything about axis.

The message indicates for me that axis is reading from a http server.
The server answers (with 404).

The question is, which http server is it talking to ? May be
it's just talking with the wrong http server.

Are you using tomcat standalone or behind apache/iis/... ?

I don't think that anything in tomcat will activly deny such 
kind of access. It's more likely a misconfiguration.

 -Original Message-
 From: KRUEGER MICHAEL [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, April 21, 2004 1:06 PM
 To: _Tomcat Users List (E-Mail)
 Subject: Problem invoking webservice from within servlets service
 method.
 
 
 Caused by: (404)Not Found
 at 
 org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPS
 ender.java:630)

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



jsvc searches jvm.cfg for java 1.4.2 in wrong directory

2004-04-21 Thread Ingo Kampe
I'm not sure if this is a bug of jsvc or newest jdk lack of backward 
compatibility.

you running into problems if you try to use:

jsvc -jvm server

because jsvc doesn't find the server jvm without jvm.cfg.

This fix works for me:
cd /usr/java/j2re1.4.2_04/lib
ln -s i386/jvm.cfg
or

cd /usr/java/j2sdk1.4.2_04/jre/lib
ln -s i386/jvm.cfg
Greetz,
)ngo


signature.asc
Description: OpenPGP digital signature


AW: Problem invoking webservice from within servlets service meth od.

2004-04-21 Thread KRUEGER MICHAEL
The setup is this way:

Development setup:

1) browser requests content from servlet running on tomcat 3.3 on server (A)
2) servlet calls webservice running on IIS on server (B)

Production setup:

1) browser requests iView content from SAP portal server on IIS on server (A)
2) request is routed through iPlanet proxy (A) to execute the iView's servlet
3) servlet running on iPlanet proxy (A) calls webservice running on IIS on server (B)

As you can see the request from the servlet to the webservice running on server (B) is 
the same in the development and in the production environment. The thing is that I 
don't see the request coming in on server (B) when running through tomcat.

Michael

-Ursprüngliche Nachricht-
Von: Ralph Einfeldt [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 21. April 2004 13:37
An: Tomcat Users List
Betreff: RE: Problem invoking webservice from within servlets service
method.



I don't know anything about axis.

The message indicates for me that axis is reading from a http server.
The server answers (with 404).

The question is, which http server is it talking to ? May be
it's just talking with the wrong http server.

Are you using tomcat standalone or behind apache/iis/... ?

I don't think that anything in tomcat will activly deny such 
kind of access. It's more likely a misconfiguration.

 -Original Message-
 From: KRUEGER MICHAEL [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, April 21, 2004 1:06 PM
 To: _Tomcat Users List (E-Mail)
 Subject: Problem invoking webservice from within servlets service
 method.
 
 
 Caused by: (404)Not Found
 at 
 org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPS
 ender.java:630)

-
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]



JSP work dir problem running Tomcat 5 through jsvc

2004-04-21 Thread Ben Janes

Return Receipt
   
 
Your  JSP work dir problem running Tomcat 5 through jsvc   
 
document:  
 
   
 
was received  Ben Janes/MaerskDataSverige/MDG  
 
by:
 
   
 
at:   21-04-2004 14:04:05  
 
   
 





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



Re: Tomcat with SSL

2004-04-21 Thread Hiemer, Bernhard

Hi Tomcat-Users,

I found out, that my problem depends on the configuration of the security
providers in the java.security file.
(On my machine is installed jsse from IBM and Sun).

If the configuration is
security.provider.1=sun.security.provider.Sun
security.provider.2=com.ibm.jsse.JSSEProvider
security.provider.3=com.sun.net.ssl.internal.ssl.Provider

I get the following Exception
Catalina.start: LifecycleException:  null.open:
java.security.NoSuchAlgorithmException: Class com.ibm.jsse.ba configured for
SSLContext not a SSLContext
at com.sun.net.ssl.SunJSSE_b.a(DashoA6275)
at com.sun.net.ssl.SSLContext.getInstance(DashoA6275)
at
org.apache.catalina.net.SSLServerSocketFactory.initProxy(SSLServerSocContext
not a SSLContext
at com.sun.net.ssl.SunJSSE_b.a(DashoA6275)
at com.sun.net.ssl.SSLContext.getInstance(DashoA6275)
...


In the other case, when the configuration-file looks like
security.provider.1=sun.security.provider.Sun
security.provider.2=com.sun.net.ssl.internal.ssl.Provider
security.provider.3=com.ibm.jsse.JSSEProvider

this error message occurs:
java.lang.reflect.InvocationTargetException: java.lang.OutOfMemoryError




The relevant part of the server.xml file is:
Connector
className=org.apache.catalina.connector.http.HttpConnector
   port=8443 minProcessors=5 maxProcessors=75
   enableLookups=true
   acceptCount=10 debug=0 scheme=https secure=true
   useURIValidationHack=false
  Factory className=org.apache.catalina.net.SSLServerSocketFactory
   clientAuth=false protocol=TLS 
   keystoreFile=C:\Programme\IBM\WebSphere Studio\Application
Developer\v5.1\runtimes\base_v5\java\jre\lib\security\test 
   keystorePass=changeit /
/Connector



In the first case it looks like the two different jsse implementations cause
the problem. But how to configure it right?

Can anyone give me any suggestions?

Thanks 
Bernhard






-Ursprüngliche Nachricht-
Von: Hiemer, Bernhard 
Gesendet: Freitag, 16. April 2004 08:00
An: '[EMAIL PROTECTED]'
Betreff: Tomcat with SSL


Hi at all!

I´m trying to configure my Tomcat-Standalone for SSL-Support. I use Win XP,
JRE 1.3.1 and JSSE 1.0.3_02.
The Tomcat-Versions I tried are 4.1.30 and 5.0.19.

I worked along the HOW-TO on the Jakarta-Website:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/ssl-howto.html

BUT I receive the following error on startup of Tomcat:
java.lang.reflect.InvocationTargetException: java.lang.OutOfMemoryError

I have already tried the Options -Xmx512m -Xms128m to give the VM more
memory.

What´s to do now?
Thanks in advance for each little help!
Bernhard



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



SSL and sessions

2004-04-21 Thread Drinkwater, GJ (Glen)
Hi

I am using tomcat with ssl for the initial log into my application over ssl,
the problem is that if i send the application back to http (normal) the
session that i first created under ssl is different from the session that is
created going back to http.  Is there any configuration that allows the same
session to go to and from https and http with the same session id.

Cheers Glen


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



RE: Problem invoking webservice from within servlets service method.

2004-04-21 Thread Ralph Einfeldt

Just to make shure that I understood everthing:

- The problem exists in the development setup
- Tomcat is running standalone in the development setup.


I just can think of the following causes:

- The servlet in tomcat is talking to the same tomcat 
  instance.
- The servlet in tomcat is talking to another webserver
  on the same server.
- The servlet in tomcat is talking to another webserver
  on server B
- The servlet in tomcat is talking to another webserver
  on server C
- The servlet in tomcat is talking to proxy between development
  and production.
- The servlet in tomcat is talking to iis and return 404

The message to me indicates that the connection was 
successfull and the result was a response code with 
'file not found'.

 -Original Message-
 From: KRUEGER MICHAEL [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, April 21, 2004 1:52 PM
 To: Tomcat Users List
 Subject: AW: Problem invoking webservice from within servlets service
 method.
 
 Development setup:
 
 1) browser requests content from servlet running on tomcat 
 3.3 on server (A)
 2) servlet calls webservice running on IIS on server (B)
 
 
 As you can see the request from the servlet to the webservice 
 running on server (B) is the same in the development and in 
 the production environment. The thing is that I don't see the 
 request coming in on server (B) when running through tomcat.
 

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



RE: problem with apache authentication - jk2 - tomcat? - UNDOCUMENTED FEATURE

2004-04-21 Thread Angus Mezick
Ok, what project do we need to checkout to fix this in the
documentation?  I'll fix the 4.1 docs if someone will point me at them.
--Angus

 -Original Message-
 From: Duane Winner [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, April 20, 2004 6:15 PM
 To: Tomcat Users List
 Cc: Arend P. van der Veen
 Subject: Re: problem with apache authentication - jk2 - tomcat?
 
 
 Update:
 
 I found the solution by googling around:
 
 Edit conf/server.xml, and add the 
 'tomcatAuthentication=false' snipet to 
 the 8009 connector section:
 
 Connector port=8009
  enableLookups=false redirectPort=8443 debug=0
  protocol=AJP/1.3 tomcatAuthentication=false/
 
 This fixed my problem.
 The related posts that I found related to older versions of 
 Tomcat and 
 the connector, but it seems to apply with 5.0 as well.
 
 
 
 Duane Winner wrote:
  Hello all,
  
  I'm having a problem getting Apache authentication 
 credentials passed on 
  to Tomcat servlets.
  
  I am running:
  FreeBSD 4.9
  Apache2 (FreeBSD port)
  Tomcat 5.0 (FreeBSD port)
  mod_jk2 (built from jk2-2.0.2 source)
  
  I can connect to sample Tomcat servlets through Apache 
 fine, but once I 
  turn on  Apache authentication, my servlets don't work, 
 because they 
  need to match the Apache credentials with a MySQL table.
  
  We use FakeBasicAuth, matching the user DN with the DN in 
 the database, 
  but I'm just trying with regular BasicAuth for now, and 
 that doesn't 
  seem to work either.
  
  We are porting from JRun (which works fine, but is on a 
 RedHat box) and 
  we're using mod_jrun on that, not jk2.
  
  I installed the SnoopServlet to see what was going on, 
 and as you can 
  see from my output below, the Remote user parameter is 
 being returned 
  as null. But other client-side info is getting passed 
 along, such as 
  IP address, browser, etc. I know that Apache authentication 
 is working 
  with both Basic Auth and FakeBasicAuth because I can see my 
 user name 
  (or DN) in the logs after I type my username and password 
 when prompted 
  by the browser (or send my client cert when using FakeBasicAuth).
  
  Is there something I can do to fix this or is there 
 something wrong with 
  mod_jk2? Anybody else have this problem?
  
  Thanks so much for any info,
  [EMAIL PROTECTED]
  
  
  Results of SnoopServlet:
  
  Requested URL:
  https://my.site.here/library/servlet/SnoopServlet
  
  Request information:
   Request method: GET
   Request URI: /library/servlet/SnoopServlet
   Request protocol: HTTP/1.1
   Servlet path: /servlet/SnoopServlet
   Path info: none
   Path translated: none
   Query string: none
   Content length: 0
   Content type: none
   Server name: my.site.here
   Server port: 443
   Remote user: none
   Remote address: 10.10.100.87
   Remote host: 10.10.100.87
   Authorization scheme: none
  
  Request headers:
   host: my.site.here
   user-agent: Mozilla/5.0 (X11; U; FreeBSD i386, en-US; rv:1.6) 
  Gecko/20040410
   accept: 
  
 text/xml,application/xml,application/xhtml+xml,text/html;q=0.9
 ,text/plain;q=0.8,image/png,image/jpeg,image/gif;q=0.2,*/*;q=0.1 
  
   accept-language: en-us,en;q=0.5
   accept-encoding: gzip,deflate
   accept-charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
   Keep-Alive: 300
   connection: keep-alive
   authorization: Basic ZHdpbm5lcjo5cGhpbHM5Mw==
   content-length: 0
  
  
 -
  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]
 
 

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



AW: Problem invoking webservice from within servlets service meth od.

2004-04-21 Thread KRUEGER MICHAEL
Just to make shure that I understood everthing:

- The problem exists in the development setup [correct]
- Tomcat is running standalone in the development setup. [correct]


I just can think of the following causes:

- The servlet in tomcat is talking to the same tomcat 
  instance. [-?- The servlet running in tomcat will get it's data from a physically 
different server -?-]
- The servlet in tomcat is talking to another webserver
  on the same server. [no, tomcat and my dev env. are on server a, the webservice that 
is contacted is on server b]
- The servlet in tomcat is talking to another webserver
  on server B [correct]
- The servlet in tomcat is talking to another webserver
  on server C [no, unless you count the production server as c, but that one is not 
involved in the problem]
- The servlet in tomcat is talking to proxy between development
  and production. [no]
- The servlet in tomcat is talking to iis and return 404 [hmm, yes the servlet is 
talking to the webservice on server b which runs IIS ...]

But 404 just makes no sense, for these reasons:
a) I can use IE directly on my development server (A) and browse the WSDL for the web 
service.
b) I also can use wsdl compiler to create the proxy classes so that I can invoke the 
web servivce from java.
c) My small java test app (using main method not service method of the servlet) is 
able to invoke the webservices from the same machine, where tomcat fails.
d) Webservice invocation works on the production server which is iPlanet (C)



 -Original Message-
 From: KRUEGER MICHAEL [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, April 21, 2004 1:52 PM
 To: Tomcat Users List
 Subject: AW: Problem invoking webservice from within servlets service
 method.
 
 Development setup:
 
 1) browser requests content from servlet running on tomcat 
 3.3 on server (A)
 2) servlet calls webservice running on IIS on server (B)
 
 
 As you can see the request from the servlet to the webservice 
 running on server (B) is the same in the development and in 
 the production environment. The thing is that I don't see the 
 request coming in on server (B) when running through tomcat.
 

-
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]



RE: SSL and sessions

2004-04-21 Thread Andy Eastham
Glen,

I found this a right pain, and currently I'm using SSL for the whole app.
But this is storing up performance problems as I'm sending fairly high rez
astronomical images over SSL and I know I'll have to fix it sometime.

The way I'm thinking of getting round it is to send back a one time key in a
cookie in the redirect page, that is the key to an application visible
hashtable where I'll put the original session as the value against this key.
When the redirect occurs, I'll read my key cookie to get the one time key to
retrieve the original session, then create a new session for the insecure
request, and copy everything I need from the secure session to the new
session.

I haven't tried this yet though and if anyone's got any better ideas, I'd be
pleased to hear them...

Andy

-Original Message-
From: Drinkwater, GJ (Glen) [mailto:[EMAIL PROTECTED] 
Sent: 21 April 2004 13:15
To: 'Tomcat Users List'
Subject: SSL and sessions

Hi

I am using tomcat with ssl for the initial log into my application over ssl,
the problem is that if i send the application back to http (normal) the
session that i first created under ssl is different from the session that is
created going back to http.  Is there any configuration that allows the same
session to go to and from https and http with the same session id.

Cheers Glen


-
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]



Re: SSL and sessions

2004-04-21 Thread Parsons Technical Services
Glen,

This was on the list a while ago. It is by design that this happens. It is
for security reasons as I understand it. It is considered safe to move from
http to https but not the other direction.

Doug
www.parsonstechnical.com


- Original Message - 
From: Drinkwater, GJ (Glen) [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Wednesday, April 21, 2004 8:15 AM
Subject: SSL and sessions


 Hi

 I am using tomcat with ssl for the initial log into my application over
ssl,
 the problem is that if i send the application back to http (normal) the
 session that i first created under ssl is different from the session that
is
 created going back to http.  Is there any configuration that allows the
same
 session to go to and from https and http with the same session id.

 Cheers Glen


 -
 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]



RE: ajp13.service() ajpGetReply recoverable error 3

2004-04-21 Thread Cox, Charlie
I am also receiving these messages. However they do not seem to be causing a
problem and I have been too busy to research it.

 -Original Message-
 From: Matt Woodings [mailto:[EMAIL PROTECTED]
 Sent: Monday, April 19, 2004 11:21 AM
 To: Tomcat Users List
 Subject: Re: ajp13.service() ajpGetReply recoverable error 3
 
 hi I get the exact same thing with the same configuration and I have been
 trawling the news groups and web for answers but to no avail, so I am with
 you on getting a definitive answer on this log file output.
 
 Matt
 - Original Message -
 From: Michael Sanders [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, April 19, 2004 10:09 AM
 Subject: ajp13.service() ajpGetReply recoverable error 3
 
 
  I'm using Apache 2.0.49, Tomcat 4.1.29, and mod_jk2 2.04 on Windows
  2000 Server. I'm getting errors in my Apache  Tomcat logs (shown
  below), BUT I do not get any errors shown in the browser and my servlet
  appears to be functioning correctly. I guess the fact that it says
  recoverable error means that it recovers which is why users do not
  see any errors. However I suspect it does mean that the system is
  working sub-optimally. I'd be grateful if someone could give me a clue
  as to the meaning of the errors  any pointers on fixing the problem.
 
  Many thanks,
  Michael Sanders
 
  Apache 2.0.49 error log
  ===
  [Mon Apr 19 15:48:53 2004] [error] ajp13.service() ajpGetReply
  recoverable error 3
  [Mon Apr 19 15:48:53 2004] [error] ajp13.service() ajpGetReply
  recoverable error 3
  [Mon Apr 19 15:48:53 2004] [error] ajp13.service() Error  forwarding
  ajp13:localhost:8009 1 0
  [Mon Apr 19 15:48:53 2004] [error] mod_jk2.handler() Error connecting
  to tomcat 3, status 200
 
 
  Tomcat 4.1.29 stderr
  
  [ERROR] JkCoyoteHandler - -Error in action code
  java.net.SocketException: Connection aborted by peer: socket write
  errorjava.net.SocketException: Connection aborted by peer: socket
  write error
  at java.net.SocketOutputStream.socketWrite(Native Method)
  at java.net.SocketOutputStream.write(SocketOutputStream.java:91)
  at org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:457)
  at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:654)
  at
  org.apache.jk.server.JkCoyoteHandler.action(JkCoyoteHandler.java:435)
  at org.apache.coyote.Response.action(Response.java:222)
  at org.apache.coyote.Response.finish(Response.java:343)
  at
  org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:314)
  at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:387)
  at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:673)
  at
 

org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:615)
  at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:786)
  at
 

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
 a:666)
  at java.lang.Thread.run(Thread.java:479)
 
  workers2.properties
  ===
  #define the shared memory file
  [shm]
  file=C:/Program Files/Apache Group/Apache2/jk2.shm
 
  # Define the communication channel
  [channel.socket:localhost:8009]
  tomcatId=localhost:8009
 
  [ajp13:localhost:8009]
  channel=channel.socket:localhost:8009
 
  [uri:/servlet/*]
  worker=ajp13:localhost:8009
 
  server.xml
  ==
  Server port=8005 shutdown=SHUTDOWN debug=0
 
 
!-- Uncomment these entries to enable JMX MBeans support --
Listener
  className=org.apache.catalina.mbeans.ServerLifecycleListener
  debug=0/
Listener
  className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
  debug=0/
 
!-- Global JNDI resources --
GlobalNamingResources
 
  !-- Test entry for demonstration purposes --
  Environment name=simpleValue type=java.lang.Integer
  value=30/
 
  !-- Editable user database that can also be used by
   UserDatabaseRealm to authenticate users --
  Resource name=UserDatabase auth=Container
type=org.apache.catalina.UserDatabase
 description=User database that can be updated and saved
  /Resource
  ResourceParams name=UserDatabase
parameter
  namefactory/name
 
  valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
/parameter
parameter
  namepathname/name
  valueconf/tomcat-users.xml/value
/parameter
  /ResourceParams
 
/GlobalNamingResources
 
 
!-- Define the Tomcat Stand-Alone Service --
Service name=Tomcat-Standalone
 
  !-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 --
  Connector className=org.apache.coyote.tomcat4.CoyoteConnector
 port=8080 minProcessors=5 maxProcessors=75
 enableLookups=true redirectPort=8443
 acceptCount=100 debug=0 connectionTimeout=2
 useURIValidationHack=false disableUploadTimeout=true
  /
 
  !-- 

Re: Using init parameters

2004-04-21 Thread Keith Hankin
That sort of works. The applicationName parameter is found now.
However the configDir parameter is not found. This parameter is specified
in
server.xml as follows:

  Context path= docBase=ROOT debug=0
  Parameter name=configDir value=C:\config
override=false/
  /Context

I am sure that this context (the default context) should be used.

- Original Message -
From: Keith Hankin [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, April 21, 2004 3:28 PM
Subject: Using init parameters


 I have the following in my web.xml:
  context-param
  param-nameapplicationName/param-name
  param-valuetestApp/param-value
  /context-param

  My servlet class extends HttpServlet and has the following method:
  public void init(ServletConfig config) throws ServletException
  {
  super.init(config);
  configDir = getInitParameter(configDir);
  applicationName = getInitParameter(applicationName);
  System.out.println(configDir =  + configDir);
  System.out.println(applicationName =  + applicationName);
  jdbcAccess = new AddrJdbcAccess(configDir, applicationName);
  }

  Both calls to getInitParameter() return null. What's wrong here?



 -
 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]



RE: Problem invoking webservice from within servlets service method.

2004-04-21 Thread Ralph Einfeldt


 - The servlet in tomcat is talking to the same tomcat 
   instance. [-?- The servlet running in tomcat will get it's 
 data from a physically different server -?-]

Unless the error message is heavily missleading the servlet/axis 
is talking to a webserver. If it isn't the iis on server B it 
must be a different one. One possible candidate is the local tomcat.
To verify/falsify that, check the access log of tomcat for a 404
error. 

 But 404 just makes no sense, for these reasons:

Again if the message no garbage, there is a webserver that 
generates it. If it is generated by iis you have to find out 
what causes this error.

Possible actions:
- check the tomcat access log on server B for a 404 error
- check the iis access log on server B for a 404 error

- patch axis to provide more information about the environment in 
  the stacktrace. (e.g. the response headers)
- or debug the servlet
- or watch the network traffic with a sniffer to verify if there really
  was a 404 response.

 -Original Message-
 From: KRUEGER MICHAEL [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, April 21, 2004 2:37 PM
 To: Tomcat Users List
 Subject: AW: Problem invoking webservice from within servlets service
 method.
 
 

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



Jaas and Jndi problem

2004-04-21 Thread Beloglazov Maksim
Hello,

I'm stuck with the problem trying to get a way out for several hours:
I have a database resource declared in server.xml in 
GlobalNamingResources part
Also I have a JAAS login module which is intended to use this JNDI 
database resource.
And I can't get access to this resource my JAAS login module. The error is

...
javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
   at org.apache.naming.NamingContext.lookup(NamingContext.java:815)
   at org.apache.naming.NamingContext.lookup(NamingContext.java:198)
   at 
ru.mb.security.jaas.RDBMSJAASLoginModule.rdbmsValidate(Unknown Source)
   at ru.mb.security.jaas.RDBMSJAASLoginModule.login(Unknown Source)
...

server.xml:
GlobalNamingResources
   Resource name=jdbc/MerxDB auth=Container
 type=javax.sql.DataSource scope=Sharable/
   ResourceParams name=jdbc/MerxDB
   parameter
 namefactory/name
 valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
   /parameter
   parameter
 namemaxActive/name
 value100/value
   /parameter
   parameter
 namemaxIdle/name
 value30/value
   /parameter
   parameter
 namemaxWait/name
 value1/value
   /parameter
   parameter
nameusername/name
valueSYSDBA/value
   /parameter
   parameter
namepassword/name
valuemasterkey/value
   /parameter
   parameter
  namedriverClassName/name
  valueorg.firebirdsql.jdbc.FBDriver/value
   /parameter
   parameter
 nameurl/name
 
valuejdbc:firebirdsql:localhost/3050:/var/db/firebird/merx.gdb/value
   /parameter
 /ResourceParams
...
/GlobalNamingResources

code from login module:
...
Context ctx = new InitialContext();
if (null==ctx) throw new Exception(No context);
Context envCtx = (Context)ctx.lookup(java:comp/env);
if (null==envCtx) throw new Exception(No context);
DataSource ds = (DataSource)envCtx.lookup(jdbc/MerxDB);
...
Is there any way out? Any help is greatly appreciated.

Maksim Beloglazov



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


mod_jk2 2.0.4 and getRemoteUser() problem

2004-04-21 Thread Lloyd H. Meinholz
I am trying to get apache 2.0.49, tomcat 4.1.30 (or 5.0.19), mod_jk2
2.0.4 and getRemoteUser() to work.

After going through the mail archives and bugzilla, I have tried the
following:

adding request.tomcatAuthentication=false to jk2.properties
adding tomcatAuthentication=false to my connector in server.xml

neither of these gave me a non-null remoteUser from HttpServletRequest.

This is pretty easy to test because the Remote User from the snoop.jsp
examples returns null.

I do not have this problem with apache 1.3.x and mod_jk, but I would
really like to use apache 2 and mod_jk2...

Is there something I have missed in my configuration or is this a bug?
Entries in bugzilla seem to think this was solved (entries from 2002 and
2003). Should I open a new bug?

Thanks for any help, I've spent several days on this and am getting
frustrated.

Lloyd



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



session-config session-timout value from web.xml

2004-04-21 Thread Bernhard Slominski
Hi,

Is it possible, to extract the value that is is the web.xml file for session
timeout into my JSP page
session-config
session-timeout
5
/session-timeout
/session-config
I want to get the 5 minutes into the JSP page so I can use it for some
information.

Thanks for your help!

Bernhard 



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



Re: session-config session-timout value from web.xml

2004-04-21 Thread Daniel Gibby
Just follow your nose! ... I mean, the spec... It always knows!

session.getMaxInactiveInterval() is I believe the right thing to call... 
look at the docs to be sure which method you should be calling.

Bernhard Slominski wrote:

Hi,

Is it possible, to extract the value that is is the web.xml file for session
timeout into my JSP page
session-config
session-timeout
5
/session-timeout
/session-config
I want to get the 5 minutes into the JSP page so I can use it for some
information.
Thanks for your help!

Bernhard 



-
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]


Re: Jaas and Jndi problem

2004-04-21 Thread Parsons Technical Services
Ok, first I have no clue on JAAS as I have not used it. From the trace you
are missing the resource link in the context declaration. With a global you
have to provide a link in the context segment.

Doug
www.parsonstechnical.com


- Original Message - 
From: Beloglazov Maksim [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, April 21, 2004 3:25 PM
Subject: Jaas and Jndi problem


 Hello,

 I'm stuck with the problem trying to get a way out for several hours:
 I have a database resource declared in server.xml in
 GlobalNamingResources part
 Also I have a JAAS login module which is intended to use this JNDI
 database resource.
 And I can't get access to this resource my JAAS login module. The error is

 ...
 javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
 at org.apache.naming.NamingContext.lookup(NamingContext.java:815)
 at org.apache.naming.NamingContext.lookup(NamingContext.java:198)
 at
 ru.mb.security.jaas.RDBMSJAASLoginModule.rdbmsValidate(Unknown Source)
 at ru.mb.security.jaas.RDBMSJAASLoginModule.login(Unknown Source)
 ...

 server.xml:
  GlobalNamingResources
 Resource name=jdbc/MerxDB auth=Container
   type=javax.sql.DataSource scope=Sharable/

 ResourceParams name=jdbc/MerxDB
 parameter
   namefactory/name
   valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
 /parameter
 parameter
   namemaxActive/name
   value100/value
 /parameter
 parameter
   namemaxIdle/name
   value30/value
 /parameter
 parameter
   namemaxWait/name
   value1/value
 /parameter
 parameter
  nameusername/name
  valueSYSDBA/value
 /parameter
 parameter
  namepassword/name
  valuemasterkey/value
 /parameter
 parameter
namedriverClassName/name
valueorg.firebirdsql.jdbc.FBDriver/value
 /parameter
 parameter
   nameurl/name

 valuejdbc:firebirdsql:localhost/3050:/var/db/firebird/merx.gdb/value
 /parameter
   /ResourceParams
 ...
  /GlobalNamingResources

 code from login module:
 ...
 Context ctx = new InitialContext();
 if (null==ctx) throw new Exception(No context);
 Context envCtx = (Context)ctx.lookup(java:comp/env);
 if (null==envCtx) throw new Exception(No context);
 DataSource ds = (DataSource)envCtx.lookup(jdbc/MerxDB);
 ...

 Is there any way out? Any help is greatly appreciated.

 Maksim Beloglazov



 -
 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]



AW: session-config session-timout value from web.xml

2004-04-21 Thread Bernhard Slominski
Thanks a lot, works!

-Ursprüngliche Nachricht-
Von: Daniel Gibby [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 21. April 2004 16:37
An: Tomcat Users List
Betreff: Re: session-config session-timout value from web.xml


Just follow your nose! ... I mean, the spec... It always knows!

session.getMaxInactiveInterval() is I believe the right thing to call... 
look at the docs to be sure which method you should be calling.

Bernhard Slominski wrote:

Hi,

Is it possible, to extract the value that is is the web.xml file for
session
timeout into my JSP page
session-config
session-timeout
5
/session-timeout
/session-config
I want to get the 5 minutes into the JSP page so I can use it for some
information.

Thanks for your help!

Bernhard 



-
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]

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



Re: mod_jk2 + tomcat 5. All processors in error state after some time under heavy load

2004-04-21 Thread QM
On Wed, Apr 21, 2004 at 09:21:28AM +0200, Thomas Lange wrote:
: I'm implementing a chat application, which sends all the chatting
: output for each user in just one long query (servlet), which last
: for the entire chatting session.
: 
: On leaving the chatroom, the client simply closes the connection,
: thus makeing the query fail, leaving the processor in an error state.

If the chat data is being stored in a session object, you could wrap
this up in a SessionListener:

. one member var (StringBuffer) holds the chat info

. when the session expires, call a PreparedStatement that inserts
  the StringBuffer's contents

This way, the data is comitted to the DB even if the user just closes
the window: sooner or later, the session will expire, the listener will
be triggered, and the data is stored.

-or did I misunderstand your question?

-QM


-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



CLOSE_WAIT sockets and web-application hangs

2004-04-21 Thread Gulen Chongtham

The web-application is based on a SingleThreadModel
servlet. It is accessed through Apache which uses
mod_jk to load-balance two Tomcats running the
web-application; versions are 
Apache-1.3.27 
Tomcat-4.1.24 

Occasionally, numerous sockets in CLOSE_WAIT state get
built up between Apache and the Tomcats, and the
web-pages just stop opening up; the browser keeps on
waiting for the page to load. Analysing the Tomcat's
JVM thread-dumps reveals the following: 

Tomcat-1 
--- 
9 threads [ at
java.net.SocketInputStream.socketRead(Native Method)] 
55 threads [at java.lang.Object.wait(Native Method)] 

Tomcat-2 
--- 
10 threads [ at
java.net.SocketInputStream.socketRead(Native Method)] 
52 threads [at java.lang.Object.wait(Native Method)] 

The detailed stack-traces for the above two types of
threads are given below: 

3XMTHREADINFO  Thread-87 (TID:0x333777A0,
sys_thread_t:0x608A8AC0, state:R, native ID:0x537E)
prio=5 
4XESTACKTRACE  at
java.net.SocketInputStream.socketRead(Native Method) 
4XESTACKTRACE  at
java.net.SocketInputStream.read(SocketInputStream.java(Compiled
Code)) 
4XESTACKTRACE  at
java.io.BufferedInputStream.fill(BufferedInputStream.java(Compiled
Code)) 
4XESTACKTRACE  at
java.io.BufferedInputStream.read1(BufferedInputStream.java(Compiled
Code)) 
4XESTACKTRACE  at
java.io.BufferedInputStream.read(BufferedInputStream.java(Compiled
Code)) 
4XESTACKTRACE  at
org.apache.jk.common.ChannelSocket.read(ChannelSocket.java(Compiled
Code)) 
4XESTACKTRACE  at
org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java(Compiled
Code)) 
4XESTACKTRACE  at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java(Compiled
Code)) 
4XESTACKTRACE  at
org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java(Compiled
Code)) 
4XESTACKTRACE  at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)

4XESTACKTRACE  at
java.lang.Thread.run(Thread.java(Compiled Code)) 
3XHNATIVESTACK   Native Stack 
NULL  
3XHSTACKLINE at 0xD0DB6918 in sysTimeout 
3XHSTACKLINE at 0xD0BD94E8 in JVM_Timeout 
3XHSTACKLINE at 0xD100BBBC in
Java_java_net_SocketInputStream_socketRead 

...  ... 

3XMTHREADINFO  Thread-86 (TID:0x33377800,
sys_thread_t:0x608A56C0, state:CW, native ID:0x417D)
prio=5 
4XESTACKTRACE  at java.lang.Object.wait(Native
Method) 
4XESTACKTRACE  at
java.lang.Object.wait(Object.java(Compiled Code)) 
4XESTACKTRACE  at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:595)

4XESTACKTRACE  at
java.lang.Thread.run(Thread.java(Compiled Code)) 
3XHNATIVESTACK   Native Stack 
NULL  
3XHSTACKLINE at 0xD0011FCC in
_pthread_event_wait 
3XHSTACKLINE at 0xD000DFD0 in _cond_wait_local

3XHSTACKLINE at 0xD000E43C in _cond_wait 
3XHSTACKLINE at 0xD000F090 in
pthread_cond_wait 
3XHSTACKLINE at 0xD0DB1934 in condvarWait 
3XHSTACKLINE at 0xD0DB05F4 in sysMonitorWait 
3XHSTACKLINE at 0xD0C74050 in lkMonitorWait 
3XHSTACKLINE at 0xD0BE7C30 in JVM_MonitorWait 

_ 

Has anyone experienced such problems. Suggestions and
solutions are most welcome. 

Thanks, 
Gulen 





__
Do you Yahoo!?
Yahoo! Photos: High-quality 4x6 digital prints for 25¢
http://photos.yahoo.com/ph/print_splash

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



Catalina.sh startup options

2004-04-21 Thread Yang Xiao
Hi list,

Can someone point me to a link with the complete catalina.sh startup options
and their descriptions? I'm trying to figure out some of the parameters I
have seen people using, but can't find any documentation for it.

Thanks,

Yang

 



RE: Catalina.sh startup options

2004-04-21 Thread Yang Xiao
Sorry, I found those are the java options, not Catalina.sh specific.


-Original Message-
From: Yang Xiao [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 21, 2004 11:14 AM
To: Tomcat Users List
Subject: Catalina.sh startup options

Hi list,

Can someone point me to a link with the complete catalina.sh startup options
and their descriptions? I'm trying to figure out some of the parameters I
have seen people using, but can't find any documentation for it.

Thanks,

Yang

 


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



Hypersonic/Tomcat-5/ WinXP config

2004-04-21 Thread Tom K
Does anyone have a simple examples of configuring the Hypersonic SQL
Database working with Tomcat-5.19 ?
 
I have looked at all the Documentation and set up the classpath
variables but still seem to get the error message:
java.lang.ClassNotFoundException: org.hsqldb.jdbcDriver
 
 
Thanks in advance,
 
Tom K.
 
 
 
I have the hsqldb.jar file in my applications \lib directory and have
the server.xml 
Context set up as follows:
  Context docBase=C:\\jakarta-tomcat-5.0.19\\webapps\\cheers
path=/cheers
  Resource name=jdbc/cheerdb
type=javax.sql.DataSource/
  ResourceParams name=jdbc/cheerdb
parameter
  namemaxWait/name
  value5000/value
/parameter
parameter
  namemaxActive/name
  value4/value
/parameter
parameter
  namepassword/name
  value/value
/parameter
parameter
  nameurl/name
 
valuejdbc:hsqldb:hsql://localhost/value
/parameter
parameter
  namedriverClassName/name
  valueorg.hsqldb.jdbcDriver/value
/parameter
parameter
  namemaxIdle/name
  value2/value
/parameter
parameter
  nameusername/name
  valuesa/value
/parameter
  /ResourceParams
/Context
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.557 / Virus Database: 349 - Release Date: 12/30/2003
 


differences between java -s Vs java -X when the JVM is running

2004-04-21 Thread Software
Hi i'm using tomcat 4103, when i'm typing this command ps -ef | grep 
javai got many theses lines

/usr/java/j2sdk1.4.0/bin/java -s

What does this line mean and what is the difference between this line 
and  this /usr/java/j2sdk1.4.0/bin/java -X

This line affect the performance on the server

Thnaks for you help

fabian



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


Re: Catalina.sh startup options

2004-04-21 Thread Software
This a little explication about your question 
http://www.jguru.com/faq/view.jsp?EID=416239

However i'm actually using theses options

JAVA_HOME=/usr/java/j2sdk1.4.0 ; export JAVA_HOME
CATALINA_HOME=/usr/local/tomcat1 ; export CATALINA_HOME
#JAVA_OPTS= -server -Xms256m -Xmx256m ; export JAVA_OPTS
JAVA_OPST=-server -Xms128m -Xmx256m -Dfile.encoding=ISO-8859-1
CATALINA_OPTS=-Xms128m -Xmx256m


Yang Xiao wrote:

Hi list,

Can someone point me to a link with the complete catalina.sh startup options
and their descriptions? I'm trying to figure out some of the parameters I
have seen people using, but can't find any documentation for it.
Thanks,

Yang



 



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


RE: differences between java -s Vs java -X when the JVM is r unning

2004-04-21 Thread Yang Xiao
I think it might be java -server got cut off to java -s
Try ps -elf see if that's the case, I don't see a -s option for java.

Yang

-Original Message-
From: Software [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 21, 2004 11:40 AM
To: Tomcat Users List
Subject: differences between java -s Vs java -X when the JVM is running
Importance: High

Hi i'm using tomcat 4103, when i'm typing this command ps -ef | grep 
javai got many theses lines

/usr/java/j2sdk1.4.0/bin/java -s


What does this line mean and what is the difference between this line 
and  this /usr/java/j2sdk1.4.0/bin/java -X

This line affect the performance on the server


Thnaks for you help

fabian




-
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]



Re: differences between java -s Vs java -X when the JVM is running

2004-04-21 Thread Reynir Þór Hübner
I think the later part of the line is missing :

normal line would be something like
/usr/java/j2sdk1.4.0/bin/java -Xmx256m com.something.dot.javaclass
That means you have 256m maximum allowed heap memory usage for this JVM 
(the whole runtime env. can take more though).

I'm not sure what the -S... is for, but you are probably not seeing the 
whole line there.

hope it helps
-reynir
Software wrote:

Hi i'm using tomcat 4103, when i'm typing this command ps -ef | grep 
javai got many theses lines

/usr/java/j2sdk1.4.0/bin/java -s

What does this line mean and what is the difference between this line 
and  this /usr/java/j2sdk1.4.0/bin/java -X

This line affect the performance on the server

Thnaks for you help

fabian



-
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]


Re: Hypersonic/Tomcat-5/ WinXP config

2004-04-21 Thread Peter Rossbach
Hello Tom,

a resource generate with the server Classloader. Please put  your 
hsqldb.jar also at
common/lib and all working well.

regards
Peter
http://tomcat.objektpark.org

Tom K schrieb:

Does anyone have a simple examples of configuring the Hypersonic SQL
Database working with Tomcat-5.19 ?
I have looked at all the Documentation and set up the classpath
variables but still seem to get the error message:
java.lang.ClassNotFoundException: org.hsqldb.jdbcDriver
Thanks in advance,

Tom K.



I have the hsqldb.jar file in my applications \lib directory and have
the server.xml 
Context set up as follows:
 Context docBase=C:\\jakarta-tomcat-5.0.19\\webapps\\cheers
path=/cheers
 Resource name=jdbc/cheerdb
type=javax.sql.DataSource/
 ResourceParams name=jdbc/cheerdb
   parameter
 namemaxWait/name
 value5000/value
   /parameter
   parameter
 namemaxActive/name
 value4/value
   /parameter
   parameter
 namepassword/name
 value/value
   /parameter
   parameter
 nameurl/name

valuejdbc:hsqldb:hsql://localhost/value
   /parameter
   parameter
 namedriverClassName/name
 valueorg.hsqldb.jdbcDriver/value
   /parameter
   parameter
 namemaxIdle/name
 value2/value
   /parameter
   parameter
 nameusername/name
 valuesa/value
   /parameter
 /ResourceParams
   /Context
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.557 / Virus Database: 349 - Release Date: 12/30/2003
 



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


Re: Catalina.sh startup options

2004-04-21 Thread Daniel Gibby
I hope you don't have the spelling mistake JAVA_OPST instead of 
JAVA_OPTS in your file... that would mean the -Dfile.encoding param is 
doing nothing.

Software wrote:

This a little explication about your question 
http://www.jguru.com/faq/view.jsp?EID=416239

However i'm actually using theses options

JAVA_HOME=/usr/java/j2sdk1.4.0 ; export JAVA_HOME
CATALINA_HOME=/usr/local/tomcat1 ; export CATALINA_HOME
#JAVA_OPTS= -server -Xms256m -Xmx256m ; export JAVA_OPTS
JAVA_OPST=-server -Xms128m -Xmx256m -Dfile.encoding=ISO-8859-1
CATALINA_OPTS=-Xms128m -Xmx256m


Yang Xiao wrote:

Hi list,

Can someone point me to a link with the complete catalina.sh startup 
options
and their descriptions? I'm trying to figure out some of the 
parameters I
have seen people using, but can't find any documentation for it.

Thanks,

Yang



 



-
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]


policy issue

2004-04-21 Thread Christoph Kukulies

I vaguely recall that I did something on the policy settings of 
either java, tomcat or apache when I was running my webapps under
an early tomcat 3. Now after a major disk crash desaster and gradually
recovering and resurrecting everything, some things do not yet work as
before.

One thing is that a servlet does an execute 

Process p=runner.exec(cmd);

with a command line

rsh somehost somecommand

This command gets an Access denied.

I'm wondering now whether it is a problem at the remote side or on
the servlet side.

(below Executor is my servlet name and what follows is an argument

[Wed Apr 21 18:30:13 2004]  [jk_uri_worker_map.c (500)]: Attempting to map URI 
'/servlets/servlet/Executor/compile.PCTST2.referenzen.AC_3136141_4_1.2.09.4.2.09.3'
[Wed Apr 21 18:30:13 2004]  [jk_uri_worker_map.c (524)]: 
jk_uri_worker_map_t::map_uri_to_worker, Found a context match worker2 - /servlets/
[Wed Apr 21 18:30:13 2004]  [jk_worker.c (132)]: Into wc_get_worker_for_name worker2
[Wed Apr 21 18:30:13 2004]  [jk_worker.c (136)]: wc_get_worker_for_name, done  found a 
worker
[Wed Apr 21 18:30:13 2004]  [jk_ajp_common.c (1546)]: Into jk_worker_t::get_endpoint
[Wed Apr 21 18:30:13 2004]  [jk_ajp_common.c (1208)]: Into jk_endpoint_t::service
[Wed Apr 21 18:30:13 2004]  [jk_ajp_common.c (295)]: Into ajp_marshal_into_msgb
[Wed Apr 21 18:30:13 2004]  [jk_ajp_common.c (463)]: ajp_marshal_into_msgb - Done
[Wed Apr 21 18:30:13 2004]  [jk_connect.c (188)]: Into jk_open_socket
[Wed Apr 21 18:30:13 2004]  [jk_connect.c (195)]: jk_open_socket, try to connect 
socket = 6
[Wed Apr 21 18:30:13 2004]  [jk_connect.c (204)]: jk_open_socket, after connect ret = 0
[Wed Apr 21 18:30:13 2004]  [jk_connect.c (213)]: jk_open_socket, set TCP_NODELAY to on
[Wed Apr 21 18:30:13 2004]  [jk_connect.c (230)]: jk_open_socket, return, sd = 6
[Wed Apr 21 18:30:13 2004]  [jk_ajp_common.c (661)]: In 
jk_endpoint_t::ajp_connect_to_endpoint, connected sd
 = 6
[Wed Apr 21 18:30:13 2004]  [jk_ajp_common.c (693)]: sending to ajp13 #587
[Wed Apr 21 18:30:13 2004]  [jk_ajp_common.c (966)]: ajp_send_request 2: request body 
to send 0 - request bo
dy to resend 0
[Wed Apr 21 18:30:13 2004]  [jk_ajp_common.c (804)]: received from ajp13 #56
[Wed Apr 21 18:30:13 2004]  [jk_ajp_common.c (515)]: ajp_unmarshal_response: status = 
200
[Wed Apr 21 18:30:13 2004]  [jk_ajp_common.c (521)]: ajp_unmarshal_response: Number of 
headers is = 1


Can anyone tell from this log whether an error condition is risen?
The 200?

--
Chris Christoph P. U. Kukulies kuku_at_physik.rwth-aachen.de

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



Re: Jaas and Jndi problem

2004-04-21 Thread Peter Rossbach
Hello,

your Login Module in the server env  and you must access the 
GlobalNamingContext
from server direct.

import java.sql.Connection;
import java.sql.SQLException;
import javax.naming.Context;
import javax.sql.DataSource;
import org.apache.naming.ContextBindings;
import org.apache.catalina.ServerFactory;
import org.apache.catalina.core.StandardServer;
public class xxx {
  
  public Connection open(String dataSouceName) {
   try {
   Context context = null;
   StandardServer server =
   (StandardServer) ServerFactory.getServer();
   context = server.getGlobalNamingContext();
   DataSource dataSource = 
(DataSource)context.lookup(dataSourceName);
   return dataSource.getConnection();
   } catch (Exception e) {
   // ???
   } 
   return null;
   }
}

Only at your web application you have a comp/env JNDI Tree ( Look at 
resource-link server.xml configuration)

regards
peter
http://tomcat.objektpark.org
Beloglazov Maksim schrieb:

Hello,

I'm stuck with the problem trying to get a way out for several hours:
I have a database resource declared in server.xml in 
GlobalNamingResources part
Also I have a JAAS login module which is intended to use this JNDI 
database resource.
And I can't get access to this resource my JAAS login module. The 
error is

...
javax.naming.NameNotFoundException: Name jdbc is not bound in this 
Context
   at org.apache.naming.NamingContext.lookup(NamingContext.java:815)
   at org.apache.naming.NamingContext.lookup(NamingContext.java:198)
   at 
ru.mb.security.jaas.RDBMSJAASLoginModule.rdbmsValidate(Unknown Source)
   at ru.mb.security.jaas.RDBMSJAASLoginModule.login(Unknown Source)
...

server.xml:
GlobalNamingResources
   Resource name=jdbc/MerxDB auth=Container
 type=javax.sql.DataSource scope=Sharable/
   ResourceParams name=jdbc/MerxDB
   parameter
 namefactory/name
 valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
   /parameter
   parameter
 namemaxActive/name
 value100/value
   /parameter
   parameter
 namemaxIdle/name
 value30/value
   /parameter
   parameter
 namemaxWait/name
 value1/value
   /parameter
   parameter
nameusername/name
valueSYSDBA/value
   /parameter
   parameter
namepassword/name
valuemasterkey/value
   /parameter
   parameter
  namedriverClassName/name
  valueorg.firebirdsql.jdbc.FBDriver/value
   /parameter
   parameter
 nameurl/name
 
valuejdbc:firebirdsql:localhost/3050:/var/db/firebird/merx.gdb/value
   /parameter
 /ResourceParams
...
/GlobalNamingResources

code from login module:
...
Context ctx = new InitialContext();
if (null==ctx) throw new Exception(No context);
Context envCtx = (Context)ctx.lookup(java:comp/env);
if (null==envCtx) throw new Exception(No context);
DataSource ds = (DataSource)envCtx.lookup(jdbc/MerxDB);
...
Is there any way out? Any help is greatly appreciated.

Maksim Beloglazov



-
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]


Tomcat 4.1.30

2004-04-21 Thread Reis, Tom
I am having a problem with Tomcat 4.1.30. I cannot seem to run any
class files. I can see them and execute them but they don't seem run. The
application ran fine with 4.0.4. Is there something I need to get clas files
to run? Thanks.

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



Re: [Solved]Tomcat As A Windows Service

2004-04-21 Thread Mark Schmeets
The SDK was installed under the C:\Program Files directory.
The space was not quoted and broke the command line install.
Mark Schmeets wrote:

I have set up a number of Tomcat installs to run as Windows Services, 
but have come across one that I cannot get to work. The Windows Event 
log shows entries like the following:
4/14/20043:09:24 PMService Control ManagerInformation
NoneThe Apache-Catalina service entered the stopped state.
4/14/20043:09:24 PMService Control ManagerInformation
NoneThe Apache-Catalina service entered the running state.
4/14/20043:09:24 PMService Control ManagerInformation
NoneThe Apache-Catalina service was successfully sent a start 
control.

What really puzzles me about this is that I can start the same 
instance through startup.bat and it runs fine in a command window. I 
have verified the paths in the service configuration and everything 
looks fine. One more funny thing is that it does not produce any log 
files. I have never come across a service problem that does not at 
least dump to a log, like stderr.

Can anyone give me any suggestions?

Thanks,
Mark
-
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]


RE: Tomcat 4.1.30

2004-04-21 Thread Mike Curwen
you can see them (on the file system?)  and you can execute them (from
a system prompt?), but they don't seem to run 
 
Can you confirm that you have the invoker servlet turned on.
 
After that, please provide the exact error message in the browser (if
any), any messages in the catalina.out (or stdin/stderr on windows), the
appropriate portions of server.xml and web.xml, and finally, the address
you are trying to invoke.
 


 -Original Message-
 From: Reis, Tom [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, April 21, 2004 12:31 PM
 To: Tomcat Users List (E-mail)
 Subject: Tomcat 4.1.30
 
 
   I am having a problem with Tomcat 4.1.30. I cannot seem 
 to run any class files. I can see them and execute them but 
 they don't seem run. The application ran fine with 4.0.4. Is 
 there something I need to get clas files to run? Thanks.
 
 -
 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]



ClassCastException with own Principal interface and implementation

2004-04-21 Thread ralf lorenz
hi there,

i've written my own realm 'CrmJDBCRealm' which extends the 'JDBCRealm' one  
of catalina.

this realm creates and returns a principal of type 'CrmPrincipalImpl' which
extends 'GenericPrincipal' and implements 'CrmPrincipal'.
'CrmPrincipal' has getter for an 'id' and getter and setter for a  
'currentRole' field and extends
'Principal' as well as 'GenericPrincipal' does.

'CrmJDBCRealm', 'CrmPrincipalImpl' and 'CrmPrincipal' are packed together
into a .jar and placed under %CATALINA_HOME%/server/lib
on the other side the application only has the 'CrmPrincipal' included, so  
it doesn't know
about 'CrmPrincipalImpl'. (even if it does nothing changed!)

in my application i have a 'ChangeRoleAction' that is supposed to update
the 'currentRole' if the user decides to have, only application-wide,
another role. again that's nothing to do with the roles of the user that  
are known
by the server via the 'GenericPrincipal'.

when i try the following i get an ClassCastException

CrmPrincipal principal = (CrmPrincipal) request.getUserPrincipal();

printing out the name of the class the request gives the  
'CrmPrincipalImpl' will be stated.
so the realm works fine but the cast can't be done.

any help?

ralf

--
//~ created with opera
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Hypersonic/Tomcat-5/ WinXP config

2004-04-21 Thread Tom K
Thanks Peter, I not longer get the java.lang.ClassNotFoundException:
org.hsqldb.jdbcDriver I don't get 'any' exception :-( 

I suspect it is something in my server.xml file? Any idea/example.


TIA

Tom K.

Server.xml

!-- Example Server Configuration File --
!-- Note that component elements are nested corresponding to their
 parent-child relationships with each other --

!-- A Server is a singleton element that represents the entire JVM,
 which may contain one or more Service instances.  The Server
 listens for a shutdown command on the indicated port.

 Note:  A Server is not itself a Container, so you may not
 define subcomponents such as Valves or Loggers at this level.
 --

Server port=8005 shutdown=SHUTDOWN debug=0


  !-- Comment these entries out to disable JMX MBeans support --
  !-- You may also configure custom components (e.g. Valves/Realms) by 
   including your own mbean-descriptor file(s), and setting the 
   descriptors attribute to point to a ';' seperated list of paths
   (in the ClassLoader sense) of files to add to the default list.
   e.g. descriptors=/com/myfirm/mypackage/mbean-descriptor.xml
  --
  Listener
className=org.apache.catalina.mbeans.ServerLifecycleListener
debug=0/
  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
debug=0/

  !-- Global JNDI resources --
  GlobalNamingResources

!-- Test entry for demonstration purposes --
Environment name=simpleValue type=java.lang.Integer
value=30/

!-- Editable user database that can also be used by
 UserDatabaseRealm to authenticate users --
Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
   description=User database that can be updated and saved
/Resource
ResourceParams name=UserDatabase
  parameter
namefactory/name
 
valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
  /parameter
  parameter
namepathname/name
valueconf/tomcat-users.xml/value
  /parameter
/ResourceParams

  /GlobalNamingResources

  !-- A Service is a collection of one or more Connectors that
share
   a single Container (and therefore the web applications visible
   within that Container).  Normally, that Container is an Engine,
   but this is not required.

   Note:  A Service is not itself a Container, so you may not
   define subcomponents such as Valves or Loggers at this level.
   --

  !-- Define the Tomcat Stand-Alone Service --
  Service name=Catalina

!-- A Connector represents an endpoint by which requests are
received
 and responses are returned.  Each Connector passes requests on
to the
 associated Container (normally an Engine) for processing.

 By default, a non-SSL HTTP/1.1 Connector is established on port
8080.
 You can also enable an SSL HTTP/1.1 Connector on port 8443 by
 following the instructions below and uncommenting the second
Connector
 entry.  SSL support requires the following steps (see the SSL
Config
 HOWTO in the Tomcat 5 documentation bundle for more detailed
 instructions):
 * If your JDK version 1.3 or prior, download and install JSSE
1.0.2 or
   later, and put the JAR files into $JAVA_HOME/jre/lib/ext.
 * Execute:
 %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA
(Windows)
 $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA
(Unix)
   with a password value of changeit for both the certificate
and
   the keystore itself.

 By default, DNS lookups are enabled when a web application
calls
 request.getRemoteHost().  This can have an adverse impact on
 performance, so you can disable it by setting the
 enableLookups attribute to false.  When DNS lookups are
disabled,
 request.getRemoteHost() will return the String version of the
 IP address of the remote client.
--

!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 --
Connector port=80
   maxThreads=150 minSpareThreads=25
maxSpareThreads=75
   enableLookups=false redirectPort=8443
acceptCount=100
   debug=0 connectionTimeout=2 
   disableUploadTimeout=true /
!-- Note : To disable connection timeouts, set connectionTimeout
value
 to 0 --

!-- Note : To use gzip compression you could set the following
properties :

   compression=on 
   compressionMinSize=2048 
   noCompressionUserAgents=gozilla, traviata 
   compressableMimeType=text/html,text/xml
--

!-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 --
!--
Connector port=8443 
   maxThreads=150 minSpareThreads=25
maxSpareThreads=75
   enableLookups=false 

Re: mod_jk2 2.0.4 and getRemoteUser() problem

2004-04-21 Thread Lloyd H. Meinholz
I found a workaround to this problem thanks to a user on another forum.

I was doing auth in the Directory / directive, which is reasonable
since I want my entire site password protected. Doing auth this way,
getRemoteUser() returns a null. If I add auth to a Location /webapp
directive (which should be redundant), getRemoteUser() returns the
apache authenticated user id. Maybe I am misundertanding the apache
httpd directives, but it seems Directory / only should work ok...

It seems redundant and wrong to have to have auth information in
Location /webapp as well as Directory / to get the apache
authenticated user id, but it works. Apache 1.3.x and mod_jk did not
have this problem, i.e. auth in Directory / alone gave me the correct
return from getRemoteUser().

Lloyd


On Wed, 2004-04-21 at 09:36, Lloyd H. Meinholz wrote:
 I am trying to get apache 2.0.49, tomcat 4.1.30 (or 5.0.19), mod_jk2
 2.0.4 and getRemoteUser() to work.
 
 After going through the mail archives and bugzilla, I have tried the
 following:
 
 adding request.tomcatAuthentication=false to jk2.properties
 adding tomcatAuthentication=false to my connector in server.xml
 
 neither of these gave me a non-null remoteUser from HttpServletRequest.
 
 This is pretty easy to test because the Remote User from the snoop.jsp
 examples returns null.
 
 I do not have this problem with apache 1.3.x and mod_jk, but I would
 really like to use apache 2 and mod_jk2...
 
 Is there something I have missed in my configuration or is this a bug?
 Entries in bugzilla seem to think this was solved (entries from 2002 and
 2003). Should I open a new bug?
 
 Thanks for any help, I've spent several days on this and am getting
 frustrated.
 
 Lloyd
 
 
 
 -
 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]



sun.jdbc.rowset.*

2004-04-21 Thread Daxin Zuo
Where can I get the sun.jdbc lib without install J2EE? Can I use
sun.jdbc.rowset.* program on j2se without install J2EE?

Thanks


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



Re: How to limit concurrent requests by same user

2004-04-21 Thread Justin Ruthenbeck
You'll find quite a bit of info about this in the archives.  When this 
has come up in the past, consensus seems to have been the setting of a 
unique token within the page when generated such that each time a user 
requests a submittable page, that page will contain a hidden attribute 
with that token.  Implement a filter that only allows processing of that 
token once.

The problem with the solutions mentioned in this thread is that if a user 
double clicks on a form, the browser will display the output of the 
second click (which would be nothing).  If you implement the tokens, 
the second request can wait for the first to complete, observing a result 
object that it can return once the first request finishes.  This is 
*definitely* an advanced technique, but it's the most robust, 
user-tolerant, and resource-conservative one I've used and/or seen other 
places.

Depending on your situation, the simplest way I've seen to (mostly) 
handle this is to disable the submission button with Javascript once it's 
been tapped once.  It's a point solution that's not perfect, but it'll 
catch 98% of egregious offenders.

justin

At 12:58 AM 4/21/2004, you wrote:

 I wonder if it would be possible to write a filter that would 
implement
 this functionality transparently to the JSP pages/servlets.

It could be done semi-transparently with a conditional
custom tag embracing all of an individual page's content.
That tag could check for concurrent request and then
conditionally display or omit the (costly) body of the page.
Regards
Thomas


__
Justin Ruthenbeck
Software Engineer, NextEngine Inc.
justinr - AT - nextengine DOT com
Confidential. See:
http://www.nextengine.com/confidentiality.php
__
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


question on using multiple certificates in tomcat

2004-04-21 Thread Yanamula, Bharath
We have a Tomcat which is running with one servlet on https. This
application uses one certificate, for authentication purposes. 
 
Now we are planning to develop another servlet to be placed on the same
engine. We envisage this also to use a certificate. But the one it would use
is a different one. 
 
I am new to this security and am trying to see what certificate would be
sent when. That is, say I sending a https request from the first client
application, would it send all the ertificates? Or would it just resolve it
based on the name to which it is being sent to?
 
Thanks in advance.

CONFIDENTIALITY NOTICE:  The information in this e-mail is privileged and
confidential.  Any use, copying or dissemination of any portion of this
e-mail by or to anyone other than the intended recipient(s) is unauthorized.
If you have received this e-mail in error, please reply to sender and delete
it from your system immediately.


RE: Tomcat 4.1.30

2004-04-21 Thread Reis, Tom
Thanks, you pointed me in the right direction.

-Original Message-
From: Mike Curwen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 21, 2004 12:48 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat 4.1.30


you can see them (on the file system?)  and you can execute them (from
a system prompt?), but they don't seem to run 
 
Can you confirm that you have the invoker servlet turned on.
 
After that, please provide the exact error message in the browser (if
any), any messages in the catalina.out (or stdin/stderr on windows), the
appropriate portions of server.xml and web.xml, and finally, the address
you are trying to invoke.
 


 -Original Message-
 From: Reis, Tom [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, April 21, 2004 12:31 PM
 To: Tomcat Users List (E-mail)
 Subject: Tomcat 4.1.30
 
 
   I am having a problem with Tomcat 4.1.30. I cannot seem 
 to run any class files. I can see them and execute them but 
 they don't seem run. The application ran fine with 4.0.4. Is 
 there something I need to get clas files to run? Thanks.
 
 -
 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]

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



RE: question on using multiple certificates in tomcat

2004-04-21 Thread Martin Alley
Before TLS extension server name indication is implemented in server and
browser (next year?), certificate is determined by which keystore is
used.

Keystore is determined by which connection is used, which means the
certificate selection is driven by the IP address  port number.

A keystore is expected to only have one certificate in it.  This is the
one that is sent.

HTH
Martin

-Original Message-
From: Yanamula, Bharath [mailto:[EMAIL PROTECTED] 
Sent: 21 April 2004 19:46
To: '[EMAIL PROTECTED]'
Subject: question on using multiple certificates in tomcat 

We have a Tomcat which is running with one servlet on https. This
application uses one certificate, for authentication purposes. 
 
Now we are planning to develop another servlet to be placed on the same
engine. We envisage this also to use a certificate. But the one it would
use
is a different one. 
 
I am new to this security and am trying to see what certificate would be
sent when. That is, say I sending a https request from the first client
application, would it send all the ertificates? Or would it just resolve
it
based on the name to which it is being sent to?
 
Thanks in advance.

CONFIDENTIALITY NOTICE:  The information in this e-mail is privileged
and
confidential.  Any use, copying or dissemination of any portion of this
e-mail by or to anyone other than the intended recipient(s) is
unauthorized.
If you have received this e-mail in error, please reply to sender and
delete
it from your system immediately.



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



Re: Your document

2004-04-21 Thread Joao Medeiros
Anybody else getting these messages or just me?
It looks like an infected attachment but I ain't gonna open it...
[EMAIL PROTECTED] wrote:

Please have a look at the attached file.

 



-
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]


Context override=true: All or none?

2004-04-21 Thread John H
Using Tomcat 4.1.24. I know I can set override=true on a context to override 
settings in my Default Context. This appears, however, to be an all-or-none 
proposition.

Setup 1 (override = false):

default context
  environment name=test value=ON .../
  environment name=anothertest value=ON.../
/default context

context ...
  ...
  environment name=test value=OFF .../
  environment name=anothertest value=OFF.../
/context

In this case the app sees test=ON and anothertest=ON, since override is by default 
false.

Setup 2 (override = true)

default context
  environment name=test value=ON .../
  environment name=anothertest value=ON.../
/default context

context override=true...
  ...
  environment name=test value=OFF .../
  environment name=anothertest value=OFF.../
/context

Here test=OFF and anothertest=OFF, since we overrode.

Setup 3 (only want to override anothertest)

default context
  environment name=test value=ON .../
  environment name=anothertest value=ON.../
/default context

context override=true...
  ...
  environment name=anothertest value=OFF.../
/context

This errors because 'test' is not defined. Apparently if you override, all values used 
by the app must be overridden.

Does anyone have a workaround for this scenario? I'd like to override some default 
context environment values, but not all.

Thanks,

John

EL Configuration problem

2004-04-21 Thread Chanan Braunstein
Hello,
Using Tomcat 5.0.19 I cannot get EL to work in my webapp (It works
fine in jsp-examples). I checked the version of web.xml to make sure it is
2.4 and I added to be safe:
jsp-property-group
url-pattern*.jsp/url-pattern
el-ignoredfalse/el-ignored
/jsp-property-group

But, all I get is the EL text back at me.



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



error-page troubles (sigh) BUT... !!! The solution as well!

2004-04-21 Thread Mike Curwen
Here's my very simple test jsp:

html
body
%
 java.util.ResourceBundle locale_text =
java.util.ResourceBundle.getBundle(lang, new
java.util.Locale(user_locale));
%
%= locale_text.getString(hello) %
/body
/html

As it happens, I have no resource bundles yet... so this should throw a
MissingResourceException!
 
Which it does.  I get a org.apache.jasper.JasperException, with a root
cause of MissingResourceException.
 
Now I introduce the error page:

in web.xml, at the bottom, just before web-app, I have:

error-page

exception-typejava.util.MissingResourceException/exception-type
location/error/locale.jsp/location
/error-page
 
my error/locale.jsp is:

html
body
h3Language File Error/h3
bPlease report the following error to (email) /b

%
  Throwable t = request.getAttribute(javax.servlet.error.exception);
%
%= t %
/body
/html



Anyone catch the problem yet?   ;)

Anyhoo what this will give you is *still* a Tomcat error page.  But
this time it's a naked MissingResourceException (ie: no jasper exception
is wrapping it, the exception is not wrapped (unwrapped) ) (that was an
attempt to use lots of 'keywords').
 
The problem was that my locale.jsp was not compiling correctly (because
I failed to cast the Throwable).   The error page contained an error !
 
I thought I'd post, just so this behaviour is documented.   

duh is me.  I figured it out by calling the error page directly from the
address bar.


mike curwen
intermediate programmer
globally boundless


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



LoginModules

2004-04-21 Thread Alan Weissman
Hey Everyone -

 

I've written a simple login module that I've configured to run from a
Struts Action class and it appears to be working wonderfully -
authentication takes place and principal/credentials are returned.
However, I can't get any of this information back when I call
isUserInRole and getUserPrinical.  How can I store the
principals/credentials with the server such that these methods will
start returning the appropriate information?  

 

Or does authentication need to take place via a Realm for these methods
to work?

 

TIA,

Alan

 



context remove problem with symbolic links

2004-04-21 Thread Held, Peter
Howdy,
 
I'm using Tomcat 5.0.19 on Linux.  In an undoubtedly familiar scenario,
I've got some static content sitting in folders outside the web
application context.  I'm using a symbolic link to access the files,
which is working fine.  However, when I remove the context in order to
load a newer version, Tomcat recursively deletes everything contained in
the folder that the symbolic link points to.  I'm thinking of doing
something lame like writing Ant ftp tasks that copy the symbolic link
somewhere else before undeploying, then copy it back after re-deploying.
But it seems like there must be a better way to do this with some
built-in Tomcat functionality.  Is there any way to tell Tomcat Follow
symbolic links when serving content, but not when removing a context?
 
Thanks in advance for any help,
-Peter


Re: Your document

2004-04-21 Thread Parsons Technical Services
Just a virus/worm spreading it's joy. If you look it say's it is from
Tomcat Users List (Or what ever you called the email address for the list)
rather than from a real user.

In the 14000 messages over the last five months, no one has
[EMAIL PROTECTED] in the from except for the virus junk.

Set a message rule to sort out these and you could go as far as to delete
them. Or at least you would know that they are suspect.

Yoav, would it be possible to have the list not send mails from a user, say
[EMAIL PROTECTED] ? Just a thought.

Doug


- Original Message - 
From: Joao Medeiros [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, April 21, 2004 3:27 PM
Subject: Re: Your document


 Anybody else getting these messages or just me?
 It looks like an infected attachment but I ain't gonna open it...
 
 
 [EMAIL PROTECTED] wrote:
 
 Please have a look at the attached file.
 
   
 
 
 
 -
 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]
 
 


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



Hey

2004-04-21 Thread craigmcc


Norton AntiVirus gelöscht1.txt
Description: plain/text
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

java.net.Connection Timed Out error

2004-04-21 Thread Mark Schmeets
Using a Swing application to communicate with Tomcat 4.0.6 on JRE 
1.4.2(client and server), this install uses the isapi redirecter to 
provide HTTPS through IIS.
The problem is that I receive seeminly random  Exception: 
java.net.ConnectException: Connection timed out: connect errors.
This seems to be get worse as the network load increases. I am using the 
java.net.* pacakage on the client (not the Commons client).

Has anyone else experienced this, or does anyone have any suggestions as 
to what I should look at?

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


Graham Hone/NY/DEWEY

2004-04-21 Thread GHone


As of April 19, 2004, our new contact information is as follows:

  Schiff Hardin LLP
  623 Fifth Avenue, 28th Floor
  New York, New York 10022

Graham R. Hone, Esq.
  Telephone:212-745-0811
 Fax: 212-753-5044
  Email:[EMAIL PROTECTED]



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



Tomcat is stoping Urgent

2004-04-21 Thread Kiran Patel
Urgent!

I am using Tomcat 4.1 for my application which is accessing data from =
the Access database through the ODBC connection.  Everything was working =
fine until today.  Suddenly when I tried to enter some records in the =
data base through the application, Tomcat is stopped.  I got following =
error in the error log.  Please help me.

Kiran



An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at =
PC=3D0xC08FA3C
Function=3DSQLFetch+0x16EF
Library=3DC:\WINNT\system32\odbcjt32.dll

Current Java thread:
 at sun.jdbc.odbc.JdbcOdbc.bindInParameterString(Native Method)
 at sun.jdbc.odbc.JdbcOdbc.SQLBindInParameterString(JdbcOdbc.java:972)
 at =
sun.jdbc.odbc.JdbcOdbcPreparedStatement.setChar(JdbcOdbcPreparedStatement=
.java:3106)
 at =
sun.jdbc.odbc.JdbcOdbcPreparedStatement.setString(JdbcOdbcPreparedStateme=
nt.java:764)
 at =
org.apache.commons.dbcp.DelegatingPreparedStatement.setString(DelegatingP=
reparedStatement.java:217)
 at beans.FeeFineBean.processGroupFees(FeeFineBean.java:4053)
 at beans.FeeFineBean.storeFeeFineData(FeeFineBean.java:1924)
 at =
org.apache.jsp.fee_fine_new_jsp._jspService(fee_fine_new_jsp.java:409)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at =
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.jav=
a:204)
 at =
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at =
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicat=
ionFilterChain.java:247)
 at =
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilte=
rChain.java:193)
 at =
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve=
.java:260)
 at =
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.in=
vokeNext(StandardPipeline.java:643)
 at =
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:48=
0)
 at =
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at =
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve=
.java:191)
 at =
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.in=
vokeNext(StandardPipeline.java:643)
 at =
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:48=
0)
 at =
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at =
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415=
)
 at =
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:=
180)
 at =
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.in=
vokeNext(StandardPipeline.java:643)
 at =
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVal=
ve.java:170)
 at =
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.in=
vokeNext(StandardPipeline.java:641)
 at =
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:=
172)
 at =
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.in=
vokeNext(StandardPipeline.java:641)
 at =
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:509)=

 at =
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.in=
vokeNext(StandardPipeline.java:641)
 at =
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:48=
0)
 at =
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at =
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.j=
ava:174)
 at =
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.in=
vokeNext(StandardPipeline.java:643)
 at =
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:48=
0)
 at =
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at =
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.ja=
va:1040)
 at =
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1=
151)
 at java.lang.Thread.run(Thread.java:536)

Dynamic libraries:
0x0040 - 0x00406000  C:\j2sdk1.4.1_02\bin\java.exe
0x77F4 - 0x77FFA000  C:\WINNT\system32\ntdll.dll
0x77E4 - 0x77F34000  C:\WINNT\system32\kernel32.dll
0x77DA - 0x77E3  C:\WINNT\system32\ADVAPI32.dll
0x77C5 - 0x77CF4000  C:\WINNT\system32\RPCRT4.dll
0x77BA - 0x77BF4000  C:\WINNT\system32\MSVCRT.dll
0x6D34 - 0x6D46A000  C:\j2sdk1.4.1_02\jre\bin\client\jvm.dll
0x77D0 - 0x77D8F000  C:\WINNT\system32\USER32.dll
0x77C0 - 0x77C44000  C:\WINNT\system32\GDI32.dll
0x76AA - 0x76ACC000  C:\WINNT\system32\WINMM.dll
0x6D1E - 0x6D1E7000  C:\j2sdk1.4.1_02\jre\bin\hpi.dll
0x6D31 - 0x6D31E000  C:\j2sdk1.4.1_02\jre\bin\verify.dll
0x6D22 - 0x6D239000  C:\j2sdk1.4.1_02\jre\bin\java.dll

Re: LoginModules

2004-04-21 Thread Adam Hardy
On 04/21/2004 10:27 PM Alan Weissman wrote:
I've written a simple login module that I've configured to run from a
Struts Action class and it appears to be working wonderfully -
authentication takes place and principal/credentials are returned.
However, I can't get any of this information back when I call
isUserInRole and getUserPrinical.  How can I store the
principals/credentials with the server such that these methods will
start returning the appropriate information?  

Or does authentication need to take place via a Realm for these methods
to work?
Hi Alan,
You need to get tomcat to run the login automatically when your users 
try to access URLs protected by security-constraints declared in the 
deployment descriptor web.xml.

Adam
--
struts 1.2 + tomcat 5.0.19 + java 1.4.2
Linux 2.4.20 Debian
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat is stoping Urgent

2004-04-21 Thread Daniel Gibby
You've tried a reboot of the windows machine? Has there been patches to 
the machine lately? Are there any viruses on it?

It says it is native code outside the VM, so this appears to be more a 
problem with the windows server, not tomcat.

Like I know though... Don't take my word for it. I'm just taking a guess.

Kiran Patel wrote:

Urgent!

I am using Tomcat 4.1 for my application which is accessing data from =
the Access database through the ODBC connection.  Everything was working =
fine until today.  Suddenly when I tried to enter some records in the =
data base through the application, Tomcat is stopped.  I got following =
error in the error log.  Please help me.
Kiran



An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at =
PC=3D0xC08FA3C
Function=3DSQLFetch+0x16EF
Library=3DC:\WINNT\system32\odbcjt32.dll
Current Java thread:
at sun.jdbc.odbc.JdbcOdbc.bindInParameterString(Native Method)
at sun.jdbc.odbc.JdbcOdbc.SQLBindInParameterString(JdbcOdbc.java:972)
at =
sun.jdbc.odbc.JdbcOdbcPreparedStatement.setChar(JdbcOdbcPreparedStatement=
.java:3106)
at =
sun.jdbc.odbc.JdbcOdbcPreparedStatement.setString(JdbcOdbcPreparedStateme=
nt.java:764)
at =
org.apache.commons.dbcp.DelegatingPreparedStatement.setString(DelegatingP=
reparedStatement.java:217)
at beans.FeeFineBean.processGroupFees(FeeFineBean.java:4053)
at beans.FeeFineBean.storeFeeFineData(FeeFineBean.java:1924)
at =
org.apache.jsp.fee_fine_new_jsp._jspService(fee_fine_new_jsp.java:409)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at =
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.jav=
a:204)
at =
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at =
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicat=
ionFilterChain.java:247)
at =
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilte=
rChain.java:193)
at =
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve=
.java:260)
at =
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.in=
vokeNext(StandardPipeline.java:643)
at =
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:48=
0)
at =
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at =
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve=
.java:191)
at =
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.in=
vokeNext(StandardPipeline.java:643)
at =
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:48=
0)
at =
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at =
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415=
)
at =
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:=
180)
at =
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.in=
vokeNext(StandardPipeline.java:643)
at =
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVal=
ve.java:170)
at =
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.in=
vokeNext(StandardPipeline.java:641)
at =
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:=
172)
at =
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.in=
vokeNext(StandardPipeline.java:641)
at =
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:509)=
at =
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.in=
vokeNext(StandardPipeline.java:641)
at =
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:48=
0)
at =
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at =
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.j=
ava:174)
at =
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.in=
vokeNext(StandardPipeline.java:643)
at =
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:48=
0)
at =
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at =
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.ja=
va:1040)
at =
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1=
151)
at java.lang.Thread.run(Thread.java:536)
Dynamic libraries:
0x0040 - 0x00406000  C:\j2sdk1.4.1_02\bin\java.exe
0x77F4 - 0x77FFA000  C:\WINNT\system32\ntdll.dll
0x77E4 - 0x77F34000  C:\WINNT\system32\kernel32.dll
0x77DA - 0x77E3  C:\WINNT\system32\ADVAPI32.dll
0x77C5 - 0x77CF4000  C:\WINNT\system32\RPCRT4.dll
0x77BA - 0x77BF4000  C:\WINNT\system32\MSVCRT.dll
0x6D34 - 0x6D46A000  C:\j2sdk1.4.1_02\jre\bin\client\jvm.dll
0x77D0 - 0x77D8F000  

Apache 1.3 and Tomcat 4.1: Newbie

2004-04-21 Thread Malathi Jivan
Hi All,
Being a newbie, I wanted to clarify that I am doing the right thing.

0. mod jk 1.2 is what I need, right? ( To connect Apache 1.3 and Tomcat 4.1)
1. I still need to use worker.properties not jk2.properties correct?
2. The module name is still jk_module right?

Are these instructions still the latest and greatest?
http://www.galatea.com/flashguides/apache-tomcat-4-unix.xml

They work but I'm afraid I may not be exploting the full power of the new
connector. Can someone guide me?

Thanks,
Malathi

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



Re: EL Configuration problem

2004-04-21 Thread Eric Noel
On 4/22/2004 4:10 AM, Chanan Braunstein wrote:

Hello,
Using Tomcat 5.0.19 I cannot get EL to work in my webapp (It works
fine in jsp-examples). I checked the version of web.xml to make sure it is
2.4 and I added to be safe:
jsp-property-group
url-pattern*.jsp/url-pattern
el-ignoredfalse/el-ignored
/jsp-property-group
But, all I get is the EL text back at me.



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

ive been developing pure jsp 2.0 without a hitch on tomcat 5.0.19, why 
dont you share with us your problem code/conf. which my provide some 
clues to those who wanna help.

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


Re: Apache 1.3 and Tomcat 4.1: Newbie

2004-04-21 Thread Eric Noel
On 4/22/2004 7:38 AM, Malathi Jivan wrote:
Hi All,
Being a newbie, I wanted to clarify that I am doing the right thing.
0. mod jk 1.2 is what I need, right? ( To connect Apache 1.3 and Tomcat 4.1)
1. I still need to use worker.properties not jk2.properties correct?
2. The module name is still jk_module right?
Are these instructions still the latest and greatest?
http://www.galatea.com/flashguides/apache-tomcat-4-unix.xml
They work but I'm afraid I may not be exploting the full power of the new
connector. Can someone guide me?
Thanks,
Malathi
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

1. ive been able to use mod_jk2 on apache13

2. when using jk2, you will use worker2.properties/jk2.properties

3. when using jk2, its jk2_module.

If you want the latest, you should use tomcat 5.0.19 then. :)
i have my own ref, but its for debian using packages that comes with it 
(e.g apache13, autoconf, etc). the only third party would be 
j2sdk/tomcat5/jk2

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


RE: EL Configuration problem

2004-04-21 Thread Chanan Braunstein
Well as for the code that is easy, nothing works, for example, I took this
from the examples page:
html
body
${header[user-agent]}
/body
/html

I attached my web.xml, I don't know what else can effect EL. 


Chanan Braunstein
Knovel Corp.
Web Development Manager
607-773-1840 x672
http://www.knovel.com
 

-Original Message-
From: Eric Noel [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 21, 2004 7:48 PM
To: Tomcat Users List
Subject: Re: EL Configuration problem

On 4/22/2004 4:10 AM, Chanan Braunstein wrote:

 Hello,
   Using Tomcat 5.0.19 I cannot get EL to work in my webapp (It works 
 fine in jsp-examples). I checked the version of web.xml to make sure 
 it is
 2.4 and I added to be safe:
   jsp-property-group
   url-pattern*.jsp/url-pattern
   el-ignoredfalse/el-ignored
   /jsp-property-group
 
 But, all I get is the EL text back at me.
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
ive been developing pure jsp 2.0 without a hitch on tomcat 5.0.19, why dont
you share with us your problem code/conf. which my provide some clues to
those who wanna help.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
?xml version=1.0 encoding=ISO-8859-1?
web-app xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
version=2.4
	descriptionThe main knovel site/description
	filter
		filter-namedebugservlet/filter-name
		filter-classcom.knovel.website.tags.debug.DebugServlet/filter-class
	/filter
	filter
		filter-namelogfilter/filter-name
		filter-classcom.knovel.website.tags.users.LogFilter/filter-class
	/filter
	filter
		filter-nameCompress/filter-name
		filter-classcom.knovel.website.servlets.compress.GZIPFilter/filter-class
  	/filter
	filter
		filter-nameSecurity/filter-name
		filter-classcom.knovel.website.tags.users.SecurityFilter/filter-class
  	/filter
	filter
		filter-nameControlFilter/filter-name
		filter-classcom.knovel.website.controller.ControlFilter/filter-class
			init-param
param-nameBook_Details.jsp/param-name
param-valuecom.knovel.website.controller.controllers.BookDetailsControlPage/param-value
			/init-param
  	/filter
	filter-mapping
		filter-nameControlFilter/filter-name
		url-pattern*.jsp/url-pattern
	/filter-mapping

	filter-mapping
		filter-namedebugservlet/filter-name
		url-pattern/*/url-pattern
	/filter-mapping
	filter-mapping
		filter-namelogfilter/filter-name
		url-pattern*.jsp/url-pattern
	/filter-mapping

	filter-mapping
		filter-nameCompress/filter-name
		url-pattern*.jsp/url-pattern
  	/filter-mapping
  	filter-mapping
		filter-nameCompress/filter-name
		url-pattern*.html/url-pattern
  	/filter-mapping
	filter-mapping
		filter-namelogfilter/filter-name
		url-pattern*.jsp/url-pattern
	/filter-mapping
	filter-mapping
		filter-nameSecurity/filter-name
		url-pattern/Show_Table.jsp/url-pattern
  	/filter-mapping
	filter-mapping
		filter-nameSecurity/filter-name
		url-pattern/Show_Row.jsp/url-pattern
  	/filter-mapping
	filter-mapping
		filter-nameSecurity/filter-name
		url-pattern/Show_Rows.jsp/url-pattern
  	/filter-mapping
	filter-mapping
		filter-nameSecurity/filter-name
		url-pattern/Netscape_Show_Table.jsp/url-pattern
  	/filter-mapping
	filter-mapping
		filter-nameSecurity/filter-name
		url-pattern/Netscape_Show_Row.jsp/url-pattern
  	/filter-mapping
	filter-mapping
		filter-nameSecurity/filter-name
		url-pattern/Netscape_Show_Rows.jsp/url-pattern
  	/filter-mapping
	filter-mapping
		filter-nameSecurity/filter-name
		url-pattern/Show_Hotlink.jsp/url-pattern
  	/filter-mapping
	filter-mapping
		filter-nameSecurity/filter-name
		url-pattern/Show_XYGraph_Flash.jsp/url-pattern
  	/filter-mapping
	filter-mapping
		filter-nameSecurity/filter-name
		url-pattern/Show_Equation_Flash.jsp/url-pattern
  	/filter-mapping
	filter-mapping
		filter-nameSecurity/filter-name
		url-pattern/Show_Graph.jsp/url-pattern
  	/filter-mapping
	filter-mapping
		filter-nameSecurity/filter-name
		url-pattern/Show_Graph_Flash.jsp/url-pattern
  	/filter-mapping
	filter-mapping
		filter-nameSecurity/filter-name
		url-pattern/Show_Text.jsp/url-pattern
  	/filter-mapping	
			
	listener
		listener-classcom.knovel.website.tags.users.SessionLogger/listener-class
	/listener
	servlet
		servlet-nameTableExport/servlet-name
		servlet-classcom.knovel.website.servlets.pdf.TableExport/servlet-class
	/servlet
	servlet-mapping
		servlet-nameTableExport/servlet-name
		url-pattern/tableexport/url-pattern
	/servlet-mapping
	servlet-mapping
	servlet-nameinvoker/servlet-name
	

Re: How to limit concurrent requests by same user

2004-04-21 Thread Graham Lea
Andreas Schildbach wrote:
I wonder if it would be possible to write a filter that would 
implement this functionality transparently to the JSP pages/servlets.

The solution I explained was coded in a filter.

Justin Ruthenbeck wrote:
The problem with the solutions mentioned in this thread is that if a 
user double clicks on a form, the browser will display the output of the 
second click (which would be nothing).

The solution I explained will, for every sequence of concurrent requests 
on the same session, generate output only for the first and last 
requests in the sequence, ignoring all requests in between. The user 
should never see nothing (except in the multiple-window scenario I 
already pointed out).

Graham.

--
Graham Lea
Software Engineer
Forge Research Pty Ltd
Suite G11, Bay 9, Locomotive Workshop
Australian Technology Park, Cornwallis Street
Eveleigh NSW 1430 Australia
Phone: +61 2 9209 4152   Fax: +61 2 9209 4172
www.forge.com.au
--
This message contains privileged and confidential information intended
only for the use of the addressee named above.  If you are not the
intended recipient of this message you must not disseminate, copy or
take any action in reliance on it.  If you have received this message
in error please notify the sender immediately.  Any views expressed in
this message are those of the individual sender, except where the
sender specifically states them to be the views of another (including
a Body Corporate).
--


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


Re: Tomcat is stoping Urgent

2004-04-21 Thread Dov Rosenberg

Stop using the JDBC ODBC bridge immediately - it was never designed for a
production environment. Use a pure java jdbc driver or change databases.

Dov Rosenberg
Conviveon Corporation


On 4/21/04 7:01 PM, Daniel Gibby [EMAIL PROTECTED] wrote:

 You've tried a reboot of the windows machine? Has there been patches to
 the machine lately? Are there any viruses on it?
 
 It says it is native code outside the VM, so this appears to be more a
 problem with the windows server, not tomcat.
 
 Like I know though... Don't take my word for it. I'm just taking a guess.
 
 
 Kiran Patel wrote:
 
 Urgent!
 
 I am using Tomcat 4.1 for my application which is accessing data from =
 the Access database through the ODBC connection.  Everything was working =
 fine until today.  Suddenly when I tried to enter some records in the =
 data base through the application, Tomcat is stopped.  I got following =
 error in the error log.  Please help me.
 
 Kiran
 
 
 
 An unexpected exception has been detected in native code outside the VM.
 Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at =
 PC=3D0xC08FA3C
 Function=3DSQLFetch+0x16EF
 Library=3DC:\WINNT\system32\odbcjt32.dll
 
 Current Java thread:
 at sun.jdbc.odbc.JdbcOdbc.bindInParameterString(Native Method)
 at sun.jdbc.odbc.JdbcOdbc.SQLBindInParameterString(JdbcOdbc.java:972)
 at =
 sun.jdbc.odbc.JdbcOdbcPreparedStatement.setChar(JdbcOdbcPreparedStatement=
 .java:3106)
 at =
 sun.jdbc.odbc.JdbcOdbcPreparedStatement.setString(JdbcOdbcPreparedStateme=
 nt.java:764)
 at =
 org.apache.commons.dbcp.DelegatingPreparedStatement.setString(DelegatingP=
 reparedStatement.java:217)
 at beans.FeeFineBean.processGroupFees(FeeFineBean.java:4053)
 at beans.FeeFineBean.storeFeeFineData(FeeFineBean.java:1924)
 at =
 org.apache.jsp.fee_fine_new_jsp._jspService(fee_fine_new_jsp.java:409)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at =
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.jav=
 a:204)
 at =
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at =
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicat=
 ionFilterChain.java:247)
 at =
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilte=
 rChain.java:193)
 at =
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve=
 .java:260)
 at =
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.in=
 vokeNext(StandardPipeline.java:643)
 at =
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:48=
 0)
 at =
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at =
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve=
 .java:191)
 at =
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.in=
 vokeNext(StandardPipeline.java:643)
 at =
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:48=
 0)
 at =
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at =
 org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415=
 )
 at =
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:=
 180)
 at =
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.in=
 vokeNext(StandardPipeline.java:643)
 at =
 org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVal=
 ve.java:170)
 at =
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.in=
 vokeNext(StandardPipeline.java:641)
 at =
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:=
 172)
 at =
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.in=
 vokeNext(StandardPipeline.java:641)
 at =
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:509)=
 
 at =
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.in=
 vokeNext(StandardPipeline.java:641)
 at =
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:48=
 0)
 at =
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at =
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.j=
 ava:174)
 at =
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.in=
 vokeNext(StandardPipeline.java:643)
 at =
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:48=
 0)
 at =
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at =
 org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.ja=
 va:1040)
 at =
 org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1=
 151)
 at java.lang.Thread.run(Thread.java:536)
 
 Dynamic libraries:
 0x0040 - 0x00406000  C:\j2sdk1.4.1_02\bin\java.exe
 

RE: EL Configuration problem

2004-04-21 Thread Shane Linley
I had a similar problem which I overcame with lots of reading and some
guesswork. BTW Im using the Sun supplied JSTL... I'm running on Tomcat
5.0.19

In your JSP directives you will need to declare:

%@ taglib uri=http://java.sun.com/jsp/jstl/core; prefix=c %

Your web.xml for your web-app declaration will need to reference the correct
version of the J2EE schemas. Here is mine:

web-app xmlns=http://java.sun.com/xml/ns/j2ee;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
web-app_2_4.xsd
 version=2.4

Of course I wanted to make sure EL was enabled as did you:

!-- JSP Configuration --

jsp-config
  jsp-property-group
descriptionProperty group for common configuration for all the
JSP's/description
url-pattern*.jsp/url-pattern
scripting-invalidfalse/scripting-invalid
el-ignoredfalse/el-ignored
  /jsp-property-group
/jsp-config


Don't forget to throw in your JSTL jar files, um jstl.jar and standard.jar
from what I remember, into the WEB-INF/lib directory.

Regards,
Shane.


-Original Message-
From: Chanan Braunstein [mailto:[EMAIL PROTECTED]
Sent: Thursday, 22 April 2004 4:11 AM
To: 'Tomcat Users List'
Subject: EL Configuration problem


Hello,
Using Tomcat 5.0.19 I cannot get EL to work in my webapp (It works
fine in jsp-examples). I checked the version of web.xml to make sure it is
2.4 and I added to be safe:
jsp-property-group
url-pattern*.jsp/url-pattern
el-ignoredfalse/el-ignored
/jsp-property-group

But, all I get is the EL text back at me.



-
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]



Re: EL Configuration problem

2004-04-21 Thread Eric Noel
On 4/22/2004 8:54 AM, Chanan Braunstein wrote:

Well as for the code that is easy, nothing works, for example, I took this
from the examples page:
html
body
${header[user-agent]}
/body
/html
I attached my web.xml, I don't know what else can effect EL. 

Chanan Braunstein
Knovel Corp.
Web Development Manager
607-773-1840 x672
http://www.knovel.com
Here is a simple config from me
# web.xml
?xml version=1.0 encoding=ISO-8859-1?
web-app xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee web-app_2_4.xsd
version=2.4
display-nameTest Site/display-name
 description
Test
/description
/web-app
#test.jsp
%@ taglib prefix=c uri=http://java.sun.com/jsp/jstl/core; %
${header[user-agent]}
br/
tested it and went fine



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


Re: Jaas and Jndi problem

2004-04-21 Thread Beloglazov Maksim
Thank you very much. It works.

Peter Rossbach wrote:

Hello,

your Login Module in the server env  and you must access the 
GlobalNamingContext
from server direct.

import java.sql.Connection;
import java.sql.SQLException;
import javax.naming.Context;
import javax.sql.DataSource;
import org.apache.naming.ContextBindings;
import org.apache.catalina.ServerFactory;
import org.apache.catalina.core.StandardServer;
public class xxx {
  
  public Connection open(String dataSouceName) {
   try {
   Context context = null;
   StandardServer server =
   (StandardServer) ServerFactory.getServer();
   context = server.getGlobalNamingContext();
   DataSource dataSource = 
(DataSource)context.lookup(dataSourceName);
   return dataSource.getConnection();
   } catch (Exception e) {
   // ???
   }return null;
   }
}

Only at your web application you have a comp/env JNDI Tree ( Look at 
resource-link server.xml configuration)

regards
peter
http://tomcat.objektpark.org
Beloglazov Maksim schrieb:

Hello,

I'm stuck with the problem trying to get a way out for several hours:
I have a database resource declared in server.xml in 
GlobalNamingResources part
Also I have a JAAS login module which is intended to use this JNDI 
database resource.
And I can't get access to this resource my JAAS login module. The 
error is

...
javax.naming.NameNotFoundException: Name jdbc is not bound in this 
Context
   at org.apache.naming.NamingContext.lookup(NamingContext.java:815)
   at org.apache.naming.NamingContext.lookup(NamingContext.java:198)
   at 
ru.mb.security.jaas.RDBMSJAASLoginModule.rdbmsValidate(Unknown Source)
   at ru.mb.security.jaas.RDBMSJAASLoginModule.login(Unknown Source)
...

server.xml:
GlobalNamingResources
   Resource name=jdbc/MerxDB auth=Container
 type=javax.sql.DataSource scope=Sharable/
   ResourceParams name=jdbc/MerxDB
   parameter
 namefactory/name
 valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
   /parameter
   parameter
 namemaxActive/name
 value100/value
   /parameter
   parameter
 namemaxIdle/name
 value30/value
   /parameter
   parameter
 namemaxWait/name
 value1/value
   /parameter
   parameter
nameusername/name
valueSYSDBA/value
   /parameter
   parameter
namepassword/name
valuemasterkey/value
   /parameter
   parameter
  namedriverClassName/name
  valueorg.firebirdsql.jdbc.FBDriver/value
   /parameter
   parameter
 nameurl/name
 
valuejdbc:firebirdsql:localhost/3050:/var/db/firebird/merx.gdb/value
   /parameter
 /ResourceParams
...
/GlobalNamingResources

code from login module:
...
Context ctx = new InitialContext();
if (null==ctx) throw new Exception(No context);
Context envCtx = (Context)ctx.lookup(java:comp/env);
if (null==envCtx) throw new Exception(No context);
DataSource ds = (DataSource)envCtx.lookup(jdbc/MerxDB);
...
Is there any way out? Any help is greatly appreciated.

Maksim Beloglazov



-
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]




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


Class Data Sharing in 1.5 JDK

2004-04-21 Thread Carfield Yim
Do I need to specific some parameter to enable tomcat using Class Data Sharing in 1.5 
JDK?

I try to add the parameter -Xshare:on then I get the following message:

An error has occured while processing the shared archive file.
A jar file is not the one used while building the shared archive file.
Error occurred during initialization of VM
Unable to use shared archive.

Do I need to recompile? But I have run eclipse successfully without recompile? Or do I 
need to upgrade tomcat version? Now I am using 5.0.16. Or it is problem of 1.5 beta 
JDK?


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



New users Problem with mod_jk

2004-04-21 Thread Muhammad Reza
Dear Lists,

I'm interesting to integrating Apache Server and Tomcat so my 
development team can host their jsp in my FreeBSD-4.9Stable machine.
But I have some difficulties, here goes the detail.
My httpd server is apache-2.0.47 (installed from FreeBSD-4.9Stable Port) 
with  jakarta-tomcat-4.1.29.tar.gz  and mod_jk2-apache2-2.0.4 binary for 
FreeBSD from http://jakarta.apache.org. and diablo-jdk1.31
My configuration from Web Server side...

#cat httpd.conf
--snip--
LoadModule jk2_module libexec/apache2/mod_jk2.so
Include /usr/local/etc/apache2/mod_jk.conf
---snap--
#cat /usr/local/etc/apache2/mod_jk.conf
IfModule mod_jk.c
   JkWorkersFile /usr/local/etc/apache2/workers2.properties
   JkLogFile  logs/jk.log
   JkLogLevel warn
   JkSet config.file /usr/local/etc/apache2/workers2.properties
   JkMount /*.jsp localhost
   JkMount /servlet/* localhost
   JkMount /examples/* localhost
/IfModule
#cat /usr/local/etc/apache2/workers2.properties
[shm]
info=Scoreboard. Requried for reconfiguration and status with 
multiprocess servers.
file=anon

# Defines a load balancer named lb. Use even if you only have one machine.
[lb:lb]
# Example socket channel, override port and host.
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1
# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
group=lb
# Map the Tomcat examples webapp to the Web server uri space
[uri:/examples/*]
group=lb
[status:]
info=Status worker, displays runtime information
[uri:/jkstatus/*]
info=The Tomcat /jkstatus handler
group=status:
And from Tomcat Side

#cat jk2.properties
handler.list=apr,request,channelJni
channelSocket.port=8019
shm.file=${jkHome}/work/jk2.shm
channelJni.disabled = 0
apr.jniModeSo=/usr/local/libexec/apache2/mod_jk2.so
#cat server.xml | grep mod_jk2
Listener className=org.apache.ajp.tomcat4.config.ApacheConfig 
modJk=/usr/local/libexec/apache2/mod_jk2.so 
workersConfig=/usr/local/etc/apache2/workers2.properties/

When i start tomcat (debug=1) here goes the result

#/usr/local/jakarta-tomcat/bin/shutdown.sh start
Using CATALINA_BASE:   /usr/local/jakarta-tomcat
Using CATALINA_HOME:   /usr/local/jakarta-tomcat
Using CATALINA_TMPDIR: /usr/local/jakarta-tomcat/temp
Using JAVA_HOME:   /usr/local/java
[INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on port 8080
Starting service Tomcat-Standalone
Apache Tomcat/4.1.29
[INFO] PropertyMessageResources - -Initializing, 
config='org.apache.struts.util.LocalStrings', returnNull=true
[INFO] PropertyMessageResources - -Initializing, 
config='org.apache.struts.action.ActionResources', returnNull=true
[INFO] PropertyMessageResources - -Initializing, 
config='org.apache.webapp.admin.ApplicationResources', returnNull=true
[INFO] Http11Protocol - -Starting Coyote HTTP/1.1 on port 8080
[INFO] JkMain - -APR not loaded, disabling jni components: 
java.io.IOException: java.lang.UnsatisfiedLinkError: no jkjni in 
java.library.path
[INFO] ChannelSocket - -JK2: ajp13 listening on 0.0.0.0/0.0.0.0:8009
[INFO] JkMain - -Jk running ID=0 time=2/177  
config=/usr/local/jakarta-tomcat/conf/jk2.properties

i set CATALINA_HOME and JAVA_HOME in my env variable...
# env | grep java
JAVA_HOME=/usr/local/java
CATALINA_HOME=/usr/local/jakarta-tomcat
The problem is...
When i try to test the installation with browsing to 
http://localhost/example , the result is page not found 404 from apache :(
[Thu Apr 22 11:50:27 2004] [error] [client 127.0.0.1] File does not 
exist: /usr/local/www/data/examples

Is there something i missed ? how to workaround and fix  this problem ? 
does Tomcat work with Diablo-JDK ?
Please help me regarding this problem,

regards
.:TomBie:.


 

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


Re: Re: Message

2004-04-21 Thread tomcat-user
Here is the file.

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

Re: Your software

2004-04-21 Thread help
Your file is attached.

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