Re: OFF TOPIC: Merging data into a PDF form

2004-11-24 Thread Richard
Sorry.What I meant was Its suppose to be comptible with Struts
 They say its working okay
 with cocoon.


On Wed, 24 Nov 2004 16:59:49 +0800, Richard [EMAIL PROTECTED] wrote:
 Hi David,
 
 Im not sure if this is a good option. A framework I have used before
 can serialized all html data into pdf files. They say its working okay
 with cocoon. Its up to you if you want to check it out.
 
 Apache Cocoon. http://cocoon.apache.org/2.0/
 
 Richard
 
 
 
 
 On Tue, 23 Nov 2004 08:29:44 -0800, David Wall [EMAIL PROTECTED] wrote:
  I have an existing PDF form (actually lots of them) and my webapp is
  querying a user for the missing data on the HTML form.  I'd like to merge
  the POST data into the PDF document and end up with a new filled out PDF
  document.  Has anybody done this or can point to tools that will help?
 
  Thanks,
  David
 
  -
  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]



Problem when accessing the index file in my web Application

2004-11-24 Thread inr
Hi all,
 When I attempt to acess the initial file from my own
Web Application in Tomcat 5.5 it works but generates following Error in
stdout.log.
Anyone Please Tell me what will be the Cause for Error


The Generated Log Message in   $Catalina_Home/logs/stdout.log is as follows,


Feb 22, 2002 2:51:58 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-99
Feb 22, 2002 2:51:58 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 5218 ms
Feb 22, 2002 2:51:59 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Feb 22, 2002 2:51:59 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.0
Feb 22, 2002 2:51:59 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Feb 22, 2002 2:52:12 AM org.apache.catalina.startup.ContextConfig
applicationWebConfig
INFO: Missing application web.xml, using defaults only
StandardEngine[Catalina].StandardHost[localhost].StandardContext[/ROOT/docs]
Feb 22, 2002 2:52:12 AM org.apache.catalina.startup.HostConfig
deployDirectory
SEVERE: Error deploying web application directory ROOT
java.lang.IllegalArgumentException: addChild:  Child name '' is not unique
 at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:7
49)
 at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
 at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
 at
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:880)
 at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:843
)
 at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474)
 at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1063)
 at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
 at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:119)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1011)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1003)
 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:420)
 at org.apache.catalina.core.StandardService.start(StandardService.java:450)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:1967)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:545)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
 at java.lang.reflect.Method.invoke(Method.java:585)
 at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
Feb 22, 2002 2:52:13 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-99
Feb 22, 2002 2:52:15 AM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Feb 22, 2002 2:52:15 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/140  config=C:\Program Files\Apache Software
Foundation\Tomcat 5.0\conf\jk2.properties
Feb 22, 2002 2:52:15 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 17064 ms


Thanks for ever,
inr


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



RE: Problem when accessing the index file in my web Application

2004-11-24 Thread Allistair Crossley
this was a bug as far as I can remember with ROOT as the web application name. 
Fix: don't use 5.5.0, use 5.5.4 which is stable.

Allistair

 -Original Message-
 From: inr [mailto:[EMAIL PROTECTED]
 Sent: 21 February 2002 21:31
 To: Tomcat Users List
 Subject: Problem when accessing the index file in my web Application
 
 
 Hi all,
  When I attempt to acess the initial file 
 from my own
 Web Application in Tomcat 5.5 it works but generates 
 following Error in
 stdout.log.
 Anyone Please Tell me what will be the Cause for Error
 
 
 The Generated Log Message in   $Catalina_Home/logs/stdout.log 
 is as follows,
 
 
 Feb 22, 2002 2:51:58 AM org.apache.coyote.http11.Http11Protocol init
 INFO: Initializing Coyote HTTP/1.1 on http-99
 Feb 22, 2002 2:51:58 AM org.apache.catalina.startup.Catalina load
 INFO: Initialization processed in 5218 ms
 Feb 22, 2002 2:51:59 AM org.apache.catalina.core.StandardService start
 INFO: Starting service Catalina
 Feb 22, 2002 2:51:59 AM org.apache.catalina.core.StandardEngine start
 INFO: Starting Servlet Engine: Apache Tomcat/5.5.0
 Feb 22, 2002 2:51:59 AM org.apache.catalina.core.StandardHost start
 INFO: XML validation disabled
 Feb 22, 2002 2:52:12 AM org.apache.catalina.startup.ContextConfig
 applicationWebConfig
 INFO: Missing application web.xml, using defaults only
 StandardEngine[Catalina].StandardHost[localhost].StandardConte
 xt[/ROOT/docs]
 Feb 22, 2002 2:52:12 AM org.apache.catalina.startup.HostConfig
 deployDirectory
 SEVERE: Error deploying web application directory ROOT
 java.lang.IllegalArgumentException: addChild:  Child name '' 
 is not unique
  at
 org.apache.catalina.core.ContainerBase.addChildInternal(Contai
 nerBase.java:7
 49)
  at 
 org.apache.catalina.core.ContainerBase.addChild(ContainerBase.
 java:739)
  at 
 org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
  at
 org.apache.catalina.startup.HostConfig.deployDirectory(HostCon
 fig.java:880)
  at
 org.apache.catalina.startup.HostConfig.deployDirectories(HostC
 onfig.java:843
 )
  at 
 org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474)
  at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1063)
  at
 org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConf
 ig.java:310)
  at
 org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(L
 ifecycleSuppor
 t.java:119)
  at 
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1011)
  at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
  at 
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1003)
  at 
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java:420)
  at 
 org.apache.catalina.core.StandardService.start(StandardService
 .java:450)
  at 
 org.apache.catalina.core.StandardServer.start(StandardServer.j
 ava:1967)
  at org.apache.catalina.startup.Catalina.start(Catalina.java:545)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
 orImpl.java:39
 )
  at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
 odAccessorImpl
 .java:25)
  at java.lang.reflect.Method.invoke(Method.java:585)
  at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
 Feb 22, 2002 2:52:13 AM org.apache.coyote.http11.Http11Protocol start
 INFO: Starting Coyote HTTP/1.1 on http-99
 Feb 22, 2002 2:52:15 AM org.apache.jk.common.ChannelSocket init
 INFO: JK2: ajp13 listening on /0.0.0.0:8009
 Feb 22, 2002 2:52:15 AM org.apache.jk.server.JkMain start
 INFO: Jk running ID=0 time=0/140  config=C:\Program 
 Files\Apache Software
 Foundation\Tomcat 5.0\conf\jk2.properties
 Feb 22, 2002 2:52:15 AM org.apache.catalina.startup.Catalina start
 INFO: Server startup in 17064 ms
 
 
 Thanks for ever,
 inr
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



Re: OFF TOPIC: Merging data into a PDF form

2004-11-24 Thread Richard
Hi David,

Im not sure if this is a good option. A framework I have used before
can serialized all html data into pdf files. They say its working okay
with cocoon. Its up to you if you want to check it out.

Apache Cocoon. http://cocoon.apache.org/2.0/

Richard



On Tue, 23 Nov 2004 08:29:44 -0800, David Wall [EMAIL PROTECTED] wrote:
 I have an existing PDF form (actually lots of them) and my webapp is
 querying a user for the missing data on the HTML form.  I'd like to merge
 the POST data into the PDF document and end up with a new filled out PDF
 document.  Has anybody done this or can point to tools that will help?
 
 Thanks,
 David
 
 -
 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]



Call Oracle stored procedure via DBCP?

2004-11-24 Thread Sergey Karpov
Hello!

Is Tomcat + DPCP + JNDI and Oracle + stored procedure...

When from the application on Tomcat the call of stored procedure is carried out 
through direct connection with Oracle - all normally... And results in 
ResultSet come back...

However when direct connection is replaced with the connection received from 
pool connection (DBCP) there is a mistake. 

Thus all elementary searches (such as select...) through DBCP to base work 
normally...

For connection with base in all cases it is used JDBC thin driver. 

What could it be?

KSV


RE: Call Oracle stored procedure via DBCP?

2004-11-24 Thread
Hi!

What is the mistake? Stacktrace preferred.

Dmitriy

-Original Message-
From: Sergey Karpov [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 24, 2004 11:53 AM
To: [EMAIL PROTECTED]
Subject: Call Oracle stored procedure via DBCP?
Importance: High

Hello!

Is Tomcat + DPCP + JNDI and Oracle + stored procedure...

When from the application on Tomcat the call of stored procedure is carried out 
through direct connection with Oracle - all normally... And results in 
ResultSet come back...

However when direct connection is replaced with the connection received from 
pool connection (DBCP) there is a mistake. 

Thus all elementary searches (such as select...) through DBCP to base work 
normally...

For connection with base in all cases it is used JDBC thin driver. 

What could it be?

KSV

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



Re: HTTP Compression

2004-11-24 Thread Ronald Klop
I think two things are mixed here.
Compression and port value are different things.
BTW: we use compression=on. I like using defaults as long as they work.
Ronald.
On Tue Nov 23 17:49:20 CET 2004 deepak shripat mane [EMAIL PROTECTED] wrote:
 For client purpose u have to specify port value so must be specify integer 
value that value between 1024 to 65536
Deepak

On Tue, 23 Nov 2004 andrew wrote :
Hi all,

I am looking at enabling compression on Tomcat 5.0.25.
Is everyone using compress=on or should I use an integer (?number of bytes?)

Thanks

Andrew

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




Tomcat 5.5.4 and Log4j

2004-11-24 Thread Wouter De Vaal
Hi,

I'm having difficulties to configure log4j with tomcat logging per context.
Here's what I have done:
1. I've added log4j.jar to the bin dir
2. I've created a log4j.xml in common/classes and added the log4j.dtd
This seems to work, because when I add a debug logger for org.apache,
I get a lot of extra logging lines in stdout.log.
But now I have a new webapp called advertisements and this is de
message that I get in de stdout.log:
log4j:WARN No appenders could be found for logger
(org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/advertisements]).
log4j:WARN Please initialize the log4j system properly.

But when I add the logger with this name I get the following error:
log4j:ERROR Parsing error on line 10 and column 100
log4j:ERROR Attribute value
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/advertisements]
of type ID must be a name.

So I guess log4j can't handle these names?

I've also tried to use a log4j.properties (which also works when I add
a debug logger for org.apache), but that doesn't work either, but this
time I only get the first warning.

My log4j.xml:
?xml version=1.0 encoding=UTF-8 ?
!DOCTYPE log4j:configuration SYSTEM log4j.dtd
log4j:configuration
   !-- STDOUT: Outputs log information to the standard output/console --
   appender name=STDOUT class=org.apache.log4j.ConsoleAppender
   layout class=org.apache.log4j.PatternLayout
   param name=ConversionPattern value=%d %-5p - %m%n/
   /layout
   /appender
   logger 
name=org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/advertisements]
   level value=DEBUG/
   appender-ref ref=STDOUT/
   /logger
   logger name=org.apache
   level value=INFO/
   appender-ref ref=STDOUT/
   /logger
   root
   level value=ERROR/
   /root
/log4j:configuration

alternative log4j.properties:
log4j.rootLogger=ERROR, A1
log4j.appender.A1=org.apache.log4j.ConsoleAppender
log4j.appender.A1.layout=org.apache.log4j.PatternLayout

# Print the date in ISO 8601 format
log4j.appender.A1.layout.ConversionPattern=%d [%t] %-5p %c - %m%n

#log4j.logger.org.apache=DEBUG,A1
log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/advertisements]=INFO,A1

Regards,
Wouter de Vaal

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



[OT] Tomcat hosting: your opinion about potentiel businessplan

2004-11-24 Thread Thomas Nybro Bolding
I know this is (way) off topic and excuse if I hereby breach any code of 
conduct for this list - if so please do NOT consider this a flamebait but 
please just tell me or simply ignore the posting.

In the past I have lbeen looking for Tomcat (MySQL, PHP, Python,...) 
hosting possibilities on the web. As I havent been able to find someone 
who suit my specific needs I have come up with a plan allowing people to 
get their own Linux box with root access using the Zen microkernel. At 
least in the beginning users are thus expected to be able to setup an 
appropriate environment as all we supply will be the Linux distribution.

What I would like to know to estimate whether this might be economic 
feasible is first of all your opinion about this setup and secondly:
- what would be the memory requirements (generally speaking of course)
- how much would you be willing to pay for this service (traffic has to be 
paid for seperatly at marginal cost appr. 50cents/GB)

Thank in advance for all feed back!

/Thomas


FONT SIZE=1 FACE=Arial___
Vi goer opmaerksom paa, at denne e-mail kan indeholde fortrolig information. 
Hvis du ved en fejltagelse modtager e-mailen, beder vi dig venligst informere 
afsender om fejlen ved at bruge svar-funktionen. Samtidig beder vi dig slette 
e-mailen i dit system uden at videresende eller kopiere den.
Selv om e-mailen og ethvert vedhaeftet bilag efter vores overbevisning er fri 
for virus og andre fejl, som kan paavirke computeren eller it-systemet, hvori 
den modtages og laeses, aabnes den paa modtagerens eget ansvar. Vi paatager os 
ikke noget ansvar for tab og skade, som er opstaaet i forbindelse med at 
modtage og bruge e-mailen.
___
Please note that this message may contain confidential information. If you have 
received this message by mistake, please inform the sender of the mistake by 
sending a reply, then delete the message from your system without making, 
distributing or retaining any copies of it.
Although we believe that the message and any attachments are free from viruses 
and other errors that might affect the computer or IT system where it is 
received and read, the recipient opens the message at his or her own risk. We 
assume no responsibility for any loss or damage arising from the receipt or use 
of this message.
/FONT



New session created from same client/different host

2004-11-24 Thread Mark O'Driscoll
If my client (IE6) connects to a single tomcat(5.0.28 Windows2k) using
different hostnames (e.g. http://localhost:8080/myapp/test.jsp AND
http://127.0.0.1:8080/myapp/test.jsp ) a new session is created for each
alias. Is there any way to stop these new sessions being created?

TIA

Mark


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



RE: New session created from same client/different host

2004-11-24 Thread Peter Crowther
 From: Mark O'Driscoll [mailto:[EMAIL PROTECTED] 
 If my client (IE6) connects to a single tomcat(5.0.28 Windows2k) using
 different hostnames (e.g. http://localhost:8080/myapp/test.jsp AND
 http://127.0.0.1:8080/myapp/test.jsp ) a new session is 
 created for each
 alias. Is there any way to stop these new sessions being created?

Not if you use cookies.  The JSPSESSIONID cookie will be bound either to
'localhost' or to '127.0.0.1', and IE will only send the cookie
corresponding to the given hostname.

- Peter


smime.p7s
Description: S/MIME cryptographic signature


Re: SSL and form-based login

2004-11-24 Thread Charles Daniel

From: [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: SSL and form-based login
Date: Wed, 24 Nov 2004 01:11:11 -0600
On Tue, Nov 23, 2004 at 01:20:16PM -0800, footh wrote:
However, if the original page is http and the login
  form is submitted
  with https then it works fine.  That seems like an
  explicit constraint that
  tomcat enforces, but I can't find where in the
  authentication code it does
  that.  Of course, encrypting other requests and not
  the login page is a
  pretty stupid thing to do. :)

 You kind of lost me here...sorry if I'm being dense.

 So you are saying the only way to have a link within
 an SSL page go to non-SSL is either to hardcode the
 entire URL in the link or have all the links flow
 through a page that forces a redirect to the requested
 URL with non-SSL?
uh.. what you just said is true, but it wasn't the point I
was making above.  I was talking about the behavior of tomcat
with respect to how and when it saves the original url when
it needs to display the login form.  For a new session, the
first request the browser makes to a protected causes that
url to be stored in the session, but that value isn't always
available to subsequent requests if the protocol is different.
 Now that I think about it, most (if not all) of my
 non-SSL links are in include files.  So, it is easy
 enough to just place the full link in there.  What
 bugs me is I've seen other sites with relative links
 on SSL pages that go to the non-SSL version (even when
 you hover over the link and your browser claims it is
 going to https).  Using full links will be a pain too
 for maintaining production and development
 environments.  Ugh...
as Carl Howells mentioned in a different message, this
could be done with a filter.  Or you could write a javascript
function that runs when the body onload happens that goes and
and rewrites the urls of all the links on the page.  (or if
you want to be evil, leaves the urls alone but sets onclick
handlers that redirect the browser directly.)
eric
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
You say some sites have links within their SSL pages that navigate to 
Non-SSL destinations.  This can be accomplished by using the rewrite 
capabilities of some web servers.  In my case I have used Apache's 
mod_rewrite to enforce those rules in the past.

Let's say I have a page called registration.jsp under 
$CATALINA_HOME/webapps/myhost that I want to be SSL encrypted.  One problem 
is that the user can bypass encryption by passing the URL 
http://www.myhost.com/registration.jsp.  I need some way to force the user 
to use https for the registration.jsp page and others like it.  Likewise, I 
want pages that don't require SSL to be rewritten as 
http://something/something.jsp.  I can create Apache rewriting rules for 
either case.

For a period of time I used Apache's mod_rewrite.  The module compares the 
URL it receives to a list of wildcards that the admin defines in the rules 
section of the server's config file.  In my case, any URL containing the 
word register, would be rewritten as https://something/register.jsp.  
So even if you had a relative page link like 'href=register.jsp', 
mod_rewrite would convert it to the https equiv before the webserver 
processed it.  In a sense this URL rewritting had the same effect as 
redirection.

Also look into the MVC design archictecture for your applications. That is 
the Model, View, Controller architecture.  Many sites designate one or more 
JSPs as a controller only page.  This controller doesn't display any output. 
 It's only function is to receive requests from the other JSPs on your site 
and forward them on to their proper destinations utilizing jsp:forward 
tags.  In this way all of the discision making can be centralized into one 
controller.  This simplifies the functions of the other JSPs by removing 
decision making logic from them.  So page links, submits, imagemaps, inputs, 
selects and the like are simply passing requests to the controller JSP.

Consider the following links:
href=control.jsp?operation=login
href=control.jsp?operation=register
The control.jsp file will receive the request and examine the parameter 
called operation.  Embedded JSP scriptlettes will decide (usually via 
if..then..else logic) what to do next. Since operations like logging in and 
registering need to be secured, the JSP can use the HTTPResponse object to 
do a redirect to https://something/login.jsp or 
https://something/register.jsp.

Just because your site uses a controller doesn't mean that the user has to 
obey the controller though.  The user can still use URL manipulation to view 
any page on your site, thereby bypassing the controller.  Thats why I 
recommend using mod_rewrite in conjunction with MVC.  If an attempt is made 
to bypass your 

Re: Data sorting problem Tomcat-Oracle

2004-11-24 Thread Harald Henkel


Tim Funk wrote:
 
 Tomcat knows nothing about NLS_SORT.
 
 Odds are NLS_SORT is probably not set when running on XP.

???
Oracle usually sets values in the registry, and by default only
NLS_LANG, from which the other values are derived.
If you want to change the defaults, you could either define registry
entries for those, or set environment variables.

I use Tomcat as service on NT.
Could it be, that it doesn't get the System environment varible ?
I will try starting Tomcat from the CMD.

Regards,
Harald Henkel

 
 -Tim
 
 Harald Henkel wrote:
 
  Hello all.
 
  I have a strange problem with data sorting using an Oracle 8.1.7
  database.
 
  I set the database to use binary sorting (NLS_SORT=BINARY), independent
  from GERMAN language setting.
  When I'm doing a select on a table with values like
  A1, A2, ... AA, AB, ... I get the correct result according to binary
  sorting.
  Yet, if I'm doing this from Tomcat (4.1.24 on WinXP) the data returned
  is sorted in GERMAN sorting
  order, i.e. AA, AB, ..., A1, A2, ...
 
  So it seems either Tomcat ignores the setting of the NLS_SORT
  environment variable,
  or it is implicitly (by Tomcat) or explicitly (by some library code,
  which I didn't find yet) overridden.
 
  Anybody got an idea, of which might be the case ?
 
  Thanks in advance,
  Harald Henkel
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Harald Henkel

GS automation GmbH
Winterstraße 2
82223 Eichenau
Germany
Tel:+ 49-8141-35 731-37
Fax:+ 49-8141-35 731-38
Mobile: + 49-178-7829126
e-mail: [EMAIL PROTECTED]
Web:www.GS-automation.DE

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



Servlet class not found

2004-11-24 Thread Richard Lewis
Hello,

This is probably quite a simple question but I couldn't find an answer
in the archives:

I'm writing a servlet to perform a little search on my website. The
servlet is compiled and is in a directory structure like this:

$CATALINA_HOME/webapps/StudioSearch
   +-- index.html   (provides a form to do a test search)
   +-- WEB-INF/
+-- web.xml   (see below)
+-- classes/
 +-- uk/
  +-- ac/
   +-- uea/
+-- studios/
 +-- StudioSearch.class
 +-- StudioSearch.java

web.xml looks like this:
web-app
servlet
servlet-nameStudioSearch/servlet-name
servlet-classuk.ac.uea.studios.StudioSearch/servlet-class
/servlet
servlet-mapping
servlet-nameStudioSearch/servlet-name
url-pattern/studio-search/url-pattern
/servlet-mapping
/web-app

When I visit: http://localhost:8080/StudioSearch/ I get the index page
as expected. This page has a form element where the action is
studio-search but when I submit this form I get the following error:

javax.servlet.ServletException: Error allocating a servlet instance
..
java.lang.NoClassDefFoundError: uk/ac/uea/studios/StudioSearch (wrong
name: StudioSearch)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:539)

I've checked all the spelling and case and that I'm not using '.class'
(the StudioSearch.java file isn't confusing it, is it?) but I can't seem
to make it work. (I know the servlet class itself works because I've
executed it Tomcat's ROOT webapp.)

Any ideas?

Thanks,
Richard
-- 
  Richard Lewis
  [EMAIL PROTECTED]


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



Re: JavaScript/JSP Question

2004-11-24 Thread Andoni
Hi,

Yes, there is a way. It is not related to Tomcat in any way but...

what you need to use is string.indexOf(string2)

So, take the value of the current item in the combo box and see if it
contains the string you are searching for using the indexOf() method. This
is a JavaScript issue though so I suggest if you have further problems you
try addressing comp.lang.JavaScript (available from Google).

If the indexOf() method does not find the substring it will return -1 if it
does, it will return it's index.

HTH

Andoni.

- Original Message - 
From: Jack Lauman [EMAIL PROTECTED]
Newsgroups: gmane.comp.jakarta.tomcat.user
Sent: Wednesday, November 24, 2004 4:33 AM
Subject: JavaScript/JSP Question


 I'm using the following JavaScript to create lists of restaurants by
 Location and Cuisine.
 Is there a way to modify the script to accept a value for the restaurant
 name that would
 be similar to a %LIKE% function in MySQL when the user hits the submit
 button?

 Thanks,

 Jack

 script language=JavaScript
 !--
 function MM_jumpMenu(targ,selObj,restore, field){ //v3.0


eval(targ+.location='http://www.mydomain.com/restaurant/filter.jsp?field=+
field+value=+selObj.options[selObj.selectedIndex].value+');

  if (restore) selObj.selectedIndex=0;
 }
 //--
 /script

 form name=selectLocation method=get
 location=http://www.mydomain.com/restaurant/filter.jsp;
 input type=hidden name=field value=city
 select name=location size=1
 onChange=MM_jumpMenu('parent',this,0,'city')


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



RE: Servlet class not found

2004-11-24 Thread Allistair Crossley
can we see the form action value? it should be action=/studio-search

Allistair 

 -Original Message-
 From: Richard Lewis [mailto:[EMAIL PROTECTED]
 Sent: 24 November 2004 11:21
 To: [EMAIL PROTECTED]
 Subject: Servlet class not found
 
 
 Hello,
 
 This is probably quite a simple question but I couldn't find an answer
 in the archives:
 
 I'm writing a servlet to perform a little search on my website. The
 servlet is compiled and is in a directory structure like this:
 
 $CATALINA_HOME/webapps/StudioSearch
+-- index.html   (provides a form to do a test search)
+-- WEB-INF/
 +-- web.xml   (see below)
 +-- classes/
  +-- uk/
   +-- ac/
+-- uea/
 +-- studios/
  +-- StudioSearch.class
  +-- StudioSearch.java
 
 web.xml looks like this:
 web-app
 servlet
 servlet-nameStudioSearch/servlet-name
 servlet-classuk.ac.uea.studios.StudioSearch/servlet-class
 /servlet
 servlet-mapping
 servlet-nameStudioSearch/servlet-name
 url-pattern/studio-search/url-pattern
 /servlet-mapping
 /web-app
 
 When I visit: http://localhost:8080/StudioSearch/ I get the index page
 as expected. This page has a form element where the action is
 studio-search but when I submit this form I get the following error:
 
 javax.servlet.ServletException: Error allocating a servlet instance
 ..
 java.lang.NoClassDefFoundError: uk/ac/uea/studios/StudioSearch (wrong
 name: StudioSearch)
   at java.lang.ClassLoader.defineClass0(Native Method)
   at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
 
 I've checked all the spelling and case and that I'm not using '.class'
 (the StudioSearch.java file isn't confusing it, is it?) but I 
 can't seem
 to make it work. (I know the servlet class itself works because I've
 executed it Tomcat's ROOT webapp.)
 
 Any ideas?
 
 Thanks,
 Richard
 -- 
   Richard Lewis
   [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



org.apache.commons.digester.Digester error

2004-11-24 Thread akki
hi list

i am getting follwoing log enteries
whenever i start tomcat

i dont know what is wrong





Nov 24, 2004 4:50:45 PM org.apache.commons.digester.Digester error
SEVERE: Parse Error at line 36 column 11: The content of element type
web-app must match
(icon?,display-name?,description?,distributable?,context-param*,filter*,fil
ter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mappin
g*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,se
curity-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-loca
l-ref*).
org.xml.sax.SAXParseException: The content of element type web-app must
match
(icon?,display-name?,description?,distributable?,context-param*,filter*,fil
ter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mappin
g*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,se
curity-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-loca
l-ref*).
at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHand
lerWrapper.java:232)
at
org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:17
3)
at
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:37
1)
at
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:30
5)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValidator.
java:1918)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.java:8
51)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocu
mentFragmentScannerImpl.java:1008)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
her.dispatch(XMLDocumentFragmentScannerImpl.java:1469)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocume
ntFragmentScannerImpl.java:329)
at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525)
at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:117
5)
at org.apache.commons.digester.Digester.parse(Digester.java:1495)
at
org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig.ja
va:282)
at 
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:639)
at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:
243)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:166)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3567)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:8
21)
at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
at
org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.
java:529)
at sun.reflect.GeneratedMethodAccessor65.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:228)
at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:260)
at org.apache.commons.digester.Digester.endElement(Digester.java:1036)
at
org.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXParser.jav
a:585)
at
org.apache.xerces.impl.XMLNamespaceBinder.endElement(XMLNamespaceBinder.java
:647)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocu
mentFragmentScannerImpl.java:1008)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
her.dispatch(XMLDocumentFragmentScannerImpl.java:1469)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocume
ntFragmentScannerImpl.java:329)
at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525)
at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:117
5)
at org.apache.commons.digester.Digester.parse(Digester.java:1514)
at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.j
ava:335)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:803)
at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:452
)
at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:409)
at 

msgAjp.receive(): Bad signature 00 !!!!!!urgent

2004-11-24 Thread akki
hi list
i m getting this error after every five to  ten minutes in
my apache log file..
i dont know where it is indication



[Wed Nov 24 16:50:25 2004] [error] msgAjp.receive(): Bad signature 00
[Wed Nov 24 16:50:25 2004] [error] channelSocket.receive(): Bad header
[Wed Nov 24 16:50:25 2004] [error] workerEnv.processCallbacks() Error
reading reply
[Wed Nov 24 16:50:25 2004] [error] ajp13.service() ajpGetReply recoverable
error 12
[Wed Nov 24 16:50:25 2004] [error] channelSocket.open() connect failed
localhost:8009 111 Connection refused
[Wed Nov 24 16:50:25 2004] [error] ajp13.connect() failed
ajp13:localhost:8009
[Wed Nov 24 16:50:25 2004] [error] ajp13.service() failed to connect
endpoint errno=111 Connection refused
[Wed Nov 24 16:50:25 2004] [error] ajp13.service() Error  forwarding
ajp13:localhost:8009 1 1
[Wed Nov 24 16:50:25 2004] [error] lb.service() worker failed
ajp13:localhost:8009
[Wed Nov 24 16:50:25 2004] [error] channelSocket.open() connect failed
localhost:8009 111 Connection refused
[Wed Nov 24 16:50:25 2004] [error] ajp13.connect() failed
ajp13:localhost:8009
[Wed Nov 24 16:50:25 2004] [error] ajp13.service() failed to connect
endpoint errno=111 Connection refused
[Wed Nov 24 16:50:25 2004] [error] ajp13.service() Error  forwarding
ajp13:localhost:8009 1 1
[Wed Nov 24 16:50:25 2004] [error] lb.service() worker failed
ajp13:localhost:8009
[Wed Nov 24 16:50:25 2004] [error] lb_worker.service() all workers in error
or disabled state
[Wed Nov 24 16:50:25 2004] [error] mod_jk.handler() Error connecting to
tomcat 12For




thanks in advance
akki


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



slow read from input stream.

2004-11-24 Thread Alexander Zubenko
In tomcat 5.0.28 I do following:

 

HttpServletRequest request;

 

InputStream in = request.getInputStream();

 

in.read();

 

first call to read always takes aprox. 90 ms. I have discovered that
first call to in.read() calls public int realReadBytes(byte cbuf[], int
off, int len) method in InputBuffer. But why 90 ms. It seems too long.

 

 ,

 

 



RE: Servlet class not found

2004-11-24 Thread Joseph Samuel

It seems that the package is not properly declared in it. Check it.


-Original Message-
From: Richard Lewis [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 24, 2004 4:51 PM
To: [EMAIL PROTECTED]
Subject: Servlet class not found


Hello,

This is probably quite a simple question but I couldn't find an answer
in the archives:

I'm writing a servlet to perform a little search on my website. The
servlet is compiled and is in a directory structure like this:

$CATALINA_HOME/webapps/StudioSearch
   +-- index.html   (provides a form to do a test search)
   +-- WEB-INF/
+-- web.xml   (see below)
+-- classes/
 +-- uk/
  +-- ac/
   +-- uea/
+-- studios/
 +-- StudioSearch.class
 +-- StudioSearch.java

web.xml looks like this:
web-app
servlet
servlet-nameStudioSearch/servlet-name
servlet-classuk.ac.uea.studios.StudioSearch/servlet-class
/servlet
servlet-mapping
servlet-nameStudioSearch/servlet-name
url-pattern/studio-search/url-pattern
/servlet-mapping
/web-app

When I visit: http://localhost:8080/StudioSearch/ I get the index page
as expected. This page has a form element where the action is
studio-search but when I submit this form I get the following error:

javax.servlet.ServletException: Error allocating a servlet instance
..
java.lang.NoClassDefFoundError: uk/ac/uea/studios/StudioSearch (wrong
name: StudioSearch)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:539)

I've checked all the spelling and case and that I'm not using '.class'
(the StudioSearch.java file isn't confusing it, is it?) but I can't seem
to make it work. (I know the servlet class itself works because I've
executed it Tomcat's ROOT webapp.)

Any ideas?

Thanks,
Richard
-- 
  Richard Lewis
  [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: Servlet class not found

2004-11-24 Thread Quinton Delpeche
On Wednesday 24 November 2004 13:21, Richard Lewis wrote:
 Hello,

Hi,

 This is probably quite a simple question but I couldn't find an answer
 in the archives:

Did you compile the class file and declare its package?

package za.co.vippayroll.intsys.training.database;

This line should appear above your import statements?

 Any ideas?

 Thanks,
 Richard
Q
-- 
Quinton Delpeche
Internal Systems Developer
Softline VIP

Telephone: +27 12 420 7000
Direct:+27 12 420 7007
Facsimile: +27 12 420 7344

http://www.vippayroll.co.za/

FIGHTING WORDS

Say my love is easy had,
Say I'm bitten raw with pride,
Say I am too often sad --
Still behold me at your side.

Say I'm neither brave nor young,
Say I woo and coddle care,
Say the devil touched my tongue --
Still you have my heart to wear.

But say my verses do not scan,
And I get me another man!
-- Dorothy Parker


pgpNPqBt9gGtL.pgp
Description: PGP signature


RE: org.apache.commons.digester.Digester error

2004-11-24 Thread Peter Crowther
 From: akki [mailto:[EMAIL PROTECTED] 
 Nov 24, 2004 4:50:45 PM org.apache.commons.digester.Digester error
 SEVERE: Parse Error at line 36 column 11: The content of element type
 web-app must match
 (icon?,display-name?,description?,distributable?,context-para
m*,filter*,fil
 ter-mapping*,listener*,servlet*,servlet-mapping*,session-confi
 g?,mime-mappin
 g*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,re
 source-ref*,se
 curity-constraint*,login-config?,security-role*,env-entry*,ejb
 -ref*,ejb-loca
 l-ref*).

You have malformed XML or have mis-spelled some parameters in a
'web-app' tag, probably in one of your apps' web.xml files.

How do I know?  I misspelled one last week and got the same error ;-).

- Peter

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



Re: org.apache.commons.digester.Digester error

2004-11-24 Thread Quinton Delpeche
On Wednesday 24 November 2004 13:29, akki wrote:
 The content of element type
 web-app must match

This is where your error is.

You xml file doesn't have a closing /web-app or one of the other tagsets 
doesn't have a closing equivalent.

Check you xml file for the problem... ...or insert into an e-mail and I can 
check for you.

Q
-- 
Quinton Delpeche
Internal Systems Developer
Softline VIP

Telephone: +27 12 420 7000
Direct:+27 12 420 7007
Facsimile: +27 12 420 7344

http://www.vippayroll.co.za/

What this country needs is a good five cent nickel.


pgpTVh4AtC0ZH.pgp
Description: PGP signature


Re: Protecting my web server

2004-11-24 Thread Andoni
Also trim down your server.xml (over a number of days if necessary) to only
what is necessary.

If you only have to expose one webapp then only have one connector in that
service, and one engine which has the only host inside it as the default and
that has the only context inside it as your application.

Then put liveDeploy=false and autoDeploy=false in the Host

Then you can go into %tomcat_home%/conf/web.xml and set listings parameter
to false so that nobody can see directory  listings no matter what you do.

As for monitoring I would suggest putting an Apache web server in front of
your Tomcat server but if it's only for a short time this may be too much
hassle. What you can do instead is to add an Access log valve to your
Engine and monitor the contents of the access logs every day to see that
there are no hack attempts coming in through port 80.

Also you might download a free portscanner from the web to see what ports
are open on your machine. Once you have found the open ports use Windows to
close down the programs that are listening on them.

Best of luck.

Andoni.

- Original Message - 
From: Richard [EMAIL PROTECTED]
Newsgroups: gmane.comp.jakarta.tomcat.user
Sent: Wednesday, November 24, 2004 6:14 AM
Subject: Re: Protecting my web server


 Thanks a lot


 On Wed, 24 Nov 2004 07:58:37 +0200, Quinton Delpeche
 [EMAIL PROTECTED] wrote:
  On Wednesday 24 November 2004 07:49, Richard wrote:
   Hi Quinton,
 
  Can't really check, but the following guidelines are good:
 
  - Make sure your tomcat user does not have admin privileges on the
server.
  (Not sure how to do this on Windows, I am a linux person).
 
  - Make sure your web-application doesn't have any funny code that might
get
  exploited by a proficient hacker (i.e. shell commands run as ROOT).
 
  - Add a blank index.html to each directory of your web-app, this
prevents
  users from getting directory listings on your server.
 
  - Ensure that you don't give away too much information in your URL
(using ?
  and  parameters). This can easily be prevented by implementing SSL and
  ensuring that the users have to log on first.
 
   How can you tell when your web-app is secure?
   Forgive me for asking too many questions, im just a newbie.
 
  No problem. I understand. :)
 
   Thanks
 
 
  Q
  --
  Quinton Delpeche
  Internal Systems Developer
  Softline VIP
 
  Telephone: +27 12 420 7000
  Direct:+27 12 420 7007
  Facsimile: +27 12 420 7344
 
  http://www.vippayroll.co.za/
 
  For some reason, this fortune reminds everyone of Marvin Zelkowitz.
 
 
 


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



[OT] SCWCD Exam 1.4

2004-11-24 Thread Andoni
Hello,

I know this is off topic but I was just wondering if anybody had done either 
the new 1.4 version of the SCWCD Exam (Sun Certified Web Component Developer) 
or the upgrade exam from 1.2.

If you have can you recommend any book or reference page. It seems to be a bit 
new at the moment and nobody seems to have gotten their act together on writing 
a book for it yet so all there is to go on is the reference from SUN and 
looking things up on the web.

Andoni.


Problems using ant to deploy to Tomcat

2004-11-24 Thread Cumbers
Hey guys
I am using an ant build file to deploy to tomcat, and I have come across 
a strange problem.

Within my build file I have the value:
property name=dev.context value=/rms-dev/
which I use to give to the following targets:
!-- deploy to the development instance of RMS --
target name=development-deploy depends=development-create-war 
description=Create a DEV war File 
deploy url=${rms.managerurl}
path=${dev.context}
war=${dev.war}
username=${rms.webuser}
password=${rms.webpass} /
/target

!-- undeploy the development instance of RMS --
target name=development-undeploy description=Remove application 
on servlet container
undeploy url=${rms.managerurl}
  path=${dev.context}
  username=${rms.webuser}
  password=${rms.webpass}/
/target

!-- redeploy to the development instance of RMS --
target name=development-redeploy 
depends=development-undeploy,development-deploy description=Remove 
application on servlet container
/target

as far as I can see this should deploy to the context /rms-dev. However 
upon trying to redeploy I get this message:

rms/build_local.xml [103] FAIL - Encountered exception 
java.io.IOException: java.lang.IllegalStateException: Context path / is 
already in use

Which indicates that all is not well. I take a look at the 
tomcat5/conf/Catalina/localhost/rms-dev.xml file and it contains the 
following:

?xml version=1.0 encoding=UTF-8?
Context path=//
but I think this should be:
?xml version=1.0 encoding=UTF-8?
Context path=/rms-dev/
So why is this happening? Why is the context changing from '/rms-dev' to 
'/'? Anyone experience this before? Or know what I am doing wrong? I am 
a complete newbie to Tomcat, so go easy on me!

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


RE: [OT] SCWCD Exam 1.4

2004-11-24 Thread Allistair Crossley
Yeah, there's a new book out in January 2005. Search Amazon for SCWCD.

Allistair 

 -Original Message-
 From: Andoni [mailto:[EMAIL PROTECTED]
 Sent: 24 November 2004 10:35
 To: Tomcat Users List
 Subject: [OT] SCWCD Exam 1.4
 
 
 Hello,
 
 I know this is off topic but I was just wondering if anybody 
 had done either the new 1.4 version of the SCWCD Exam (Sun 
 Certified Web Component Developer) or the upgrade exam from 1.2.
 
 If you have can you recommend any book or reference page. It 
 seems to be a bit new at the moment and nobody seems to have 
 gotten their act together on writing a book for it yet so all 
 there is to go on is the reference from SUN and looking 
 things up on the web.
 
 Andoni.
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT



RE: Servlet class not found

2004-11-24 Thread Richard Lewis

On Wed, 24 Nov 2004 17:05:23 +0530, Joseph Samuel [EMAIL PROTECTED]
said:
 
 It seems that the package is not properly declared in it. Check it.
 
 
Oh, yes. Of course, its now in a proper directory structure.

Thanks very much,
Richard
-- 
  Richard Lewis
  [EMAIL PROTECTED]


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



RE: Printing to log files..

2004-11-24 Thread Ben Souther
 i have certain process that are started by tomcat..And the only
 way for  me to know that the process is going on is to put
 system.out.print(),but then this also prints on my log files,
 is there any way other than this to print only on screen and not to
 the log files ..?
 

There are several approaches.
The first (and best IMHO) is to use log4j which can be configured to
send to the console, a log, or just about anywhere else.

If you are not using log4j you can still watch the logging in realtime.

If you're on a Unix box, tail -f will allow you to watch a log file as
you are writing to it.  Textpad on windows will allow you to do the same
thing.  

Also, if you are on windows and start tomcat by using
CATALINA_HOME\bin\catalina start the output will go to the DOS
window.

Hope this helps
-Ben



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



RE: jstl.jar and standard.jar causes Digester, taglib error on st artup

2004-11-24 Thread Morten Andersen
I do not reference the jstl taglib's anywhere... The problems seems to be 
caused alone by the fact that jstl.jar and standard.jar is in the 
WEB-INF/lib directory.

This is very strange...
At 19:27 23-11-2004, you wrote:
   You may want to check you web.xml to make sure the
taglib definition is matching what you have on your
jsp pages. I am suggesting such because there were at
one time a change in the jstl uri namespaces and it
was causing a some problems for me.
--- Phillip Qin [EMAIL PROTECTED] wrote:
 Where did you use digester and jstl? I mix jstl and
 struts tags on my pages
 and they worked fine.

 -Original Message-
 From: Morten Andersen [mailto:[EMAIL PROTECTED]
 Sent: November 23, 2004 10:38 AM
 To: [EMAIL PROTECTED]
 Subject: jstl.jar and standard.jar causes Digester,
 taglib error on startup


 Well Ive seen this error many times:
 --
 org.apache.commons.digester.Digester error
 SEVERE: Parse Error at line 6
 column 19: Document root element taglib , must
 match DOCTYPE root null .
 org.xml.sax.SAXParseException: Document root element
 taglib , must match
 DOCTYPE root null .
 --
 So, I tryed finding the error looking through the
 tld files, googling a bit
 and so on, until I tryed removing the jstl.jar and
 standard.jar from my
 web-applications. Suddenly no error was reported.

 What caused the error?

 I can't use jstl on tomcat. This could be due to the
 same problem...?

 Tomcat version: 4.1.24
 jstl version: 1.0 / 1.1

 Regards


 Morten Andersen
 Master of applied mathematics and computer science
 Associate professor

 The Maersk Institute of Production technology at
 Southern Danish University
 www.mip.sdu.dk
 Campusvej 55
 DK-5230 Odense M
 Denmark
 +45 65 50 36 54
 +45 61 71 11 03
 Jabber id: [EMAIL PROTECTED]



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


 !DSPAM:41a3603d250343371989192!

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Morten Andersen
Master of applied mathematics and computer science
Associate professor
The Maersk Institute of Production technology at Southern Danish University 
www.mip.sdu.dk
Campusvej 55
DK-5230 Odense M
Denmark
+45 65 50 36 54
+45 61 71 11 03
Jabber id: [EMAIL PROTECTED]

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


Re: Data sorting problem Tomcat-Oracle

2004-11-24 Thread Tim Funk
Ahhh. The archives have a lot of references about System environment 
variables not being set when run as a service.

If you are using the type 4 driver - I don't think it looks for Environment 
variables or the registry since the driver is pure java. Oracle's support 
would probably be more helpful for the appropriate connection string. (Or 
setting)

-Tim
Harald Henkel wrote:
Tim Funk wrote:
Tomcat knows nothing about NLS_SORT.
Odds are NLS_SORT is probably not set when running on XP.

???
Oracle usually sets values in the registry, and by default only
NLS_LANG, from which the other values are derived.
If you want to change the defaults, you could either define registry
entries for those, or set environment variables.
I use Tomcat as service on NT.
Could it be, that it doesn't get the System environment varible ?
I will try starting Tomcat from the CMD.
Regards,
Harald Henkel

-Tim
Harald Henkel wrote:

Hello all.
I have a strange problem with data sorting using an Oracle 8.1.7
database.
I set the database to use binary sorting (NLS_SORT=BINARY), independent
from GERMAN language setting.
When I'm doing a select on a table with values like
A1, A2, ... AA, AB, ... I get the correct result according to binary
sorting.
Yet, if I'm doing this from Tomcat (4.1.24 on WinXP) the data returned
is sorted in GERMAN sorting
order, i.e. AA, AB, ..., A1, A2, ...
So it seems either Tomcat ignores the setting of the NLS_SORT
environment variable,
or it is implicitly (by Tomcat) or explicitly (by some library code,
which I didn't find yet) overridden.
Anybody got an idea, of which might be the case ?
Thanks in advance,
Harald Henkel
-
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: Printing to log files..

2004-11-24 Thread Tim Funk
Look at log4j. Then your log4j config can log those entries anywhere you want.
-Tim
Satish Plakote wrote:
Hello Deepak,
i have certain process that are started by tomcat..And the only way for me to 
know that the process is going on is to put
system.out.print(),but then this also prints on my log files, is there any way 
other than this to print only on screen and not to
the log files ..?
rgds
satish
-Original Message-
From: deepak shripat mane [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 24, 2004 9:34 AM
To: Tomcat Users List
Subject: Re: Printing to log files..
  
Hello Satish
for printing screen u can used

out.println()
so u can print value on then screen
Deepak
On Wed, 24 Nov 2004 Satish Plakote wrote :
Hello,
I wanted to know how to Print a Statement on Screeen with out being Writtent to 
TomCat Log Files???
  Ex :- Usinf System.out.println will be also writtent to the Log File [Is 
there any way to prevent this ]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Installing a war from inside a jar

2004-11-24 Thread Ben Souther
Make sure you're getting the syntax of the war file correct:

http://java.sun.com/j2se/1.4.2/docs/api/java/net/JarURLConnection.html
URL url = new URL(jar:file:/home/duke/myApp.war!/);
Note: the jar: at the beginning.

Still not sure how this will work from within a jar though.

-Ben


On Tue, 2004-11-23 at 23:30, Tim Chamberlain wrote:
 Hello,
 
 Is it possible to install a war file which is inside a jar file to an
 embedded tomcat?  The goal is to produce a single jar that contains both our
 application server with tomcat embedded along with a war file I want to
 install.  Before jarring the entire application, I can successfully start up
 the embedded tomcat and install my war, but once I jar the entire
 application including the war, I can start up the embedded fine, but
 installing the war fails.  So I have tried the following with poor results:
 
 Deployer deployer = (Deployer) host;
 URL url = new
 URL(this.getClass().getResource(/path_to_war/myWar.war).toString() +
 !/);
 deployer.install(/myWar, url);
 
 Im not even sure if this is the best approach, but Im having trouble seeing
 how to install a war from inside a jar (or maybe an expanded war inside a
 jar).  Any ideas?
 
 Thanks in advance,
 Tim
 
 
 -
 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: Protecting my web server

2004-11-24 Thread Tim Funk
If a limited number of people need to see your machine and your know their ip 
addresses or domain names, you can use the RemoteAddresssValve.

-Tim
Richard wrote:
Hello Guys, 

Please advise.
For demo purposes I need to expose my machine to the web. I got a
public IP and have hosted my dev version of my webapp at port 80. im
using tomcat 5. This machine should be running 24/7 for a couple of
days and I need to know how I can protect it.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


[OT] Re: JavaScript/JSP Question

2004-11-24 Thread Ben Souther
This question is not tomcat specific so I'm marking [OT].

I believe Javascript has the same startsWith/endsWith string
functionality that Java has.  
You should be able to simulate that pretty easily.





On Tue, 2004-11-23 at 23:33, Jack Lauman wrote:
 I'm using the following JavaScript to create lists of restaurants by 
 Location and Cuisine.
 Is there a way to modify the script to accept a value for the restaurant 
 name that would
 be similar to a %LIKE% function in MySQL when the user hits the submit 
 button?
 
 Thanks,
 
 Jack
 
 script language=JavaScript
 !--
 function MM_jumpMenu(targ,selObj,restore, field){ //v3.0

 eval(targ+.location='http://www.mydomain.com/restaurant/filter.jsp?field=+field+value=+selObj.options[selObj.selectedIndex].value+;');
 
  if (restore) selObj.selectedIndex=0;
 }
 //--
 /script
 
 form name=selectLocation method=get 
 location=http://www.mydomain.com/restaurant/filter.jsp;
 input type=hidden name=field value=city
 select name=location size=1 
 onChange=MM_jumpMenu('parent',this,0,'city')
 
 
 
 
 -
 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: Error in start.log...

2004-11-24 Thread Tim Funk
Your user id doens't have write permission to /var/run
-Tim
Quinton Delpeche wrote:
Hello,
I get this error in my start.log file
/usr/share/tomcat5/bin/catalina.sh: line 281: /var/run/tomcat5.pid: Permission 
denied

Now I know what this means, but I want to know if anybody else gets this error 
on a Linux distro using Tomcat 5.0?

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


Re: New session created from same client/different host

2004-11-24 Thread Tim Funk
Not really.
-Tim
Mark O'Driscoll wrote:
If my client (IE6) connects to a single tomcat(5.0.28 Windows2k) using
different hostnames (e.g. http://localhost:8080/myapp/test.jsp AND
http://127.0.0.1:8080/myapp/test.jsp ) a new session is created for each
alias. Is there any way to stop these new sessions being created?

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


Re: How to disable directory listing

2004-11-24 Thread Tim Funk
FAQ!
http://jakarta.apache.org/tomcat/faq/misc.html#listing
-Tim
Lee Chin Khiong wrote:
How to disable directory listing under Tomcat 5 ?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: servlet instance problem

2004-11-24 Thread Ben Souther
On Wed, 2004-11-24 at 01:25, Satish Plakote wrote:
 Hi
 I am have a web application that does a lot of processing. I have a load on 
 startup servlet that will get init information for me.
 when 2 users submit the form.. i noticed that one instance of the servlet is 
 running and the other request waits for some time for
 processor and just dies off.. Servlets are suppose to be thread safe and 'n' 
 number of intances can be created . why only one
 instance running  at a given time.. My servlet is not a single instance 
 servlet and i have not placed an restrictions of that sort..
 can anyone help me with this ??

First, if you're running a Servlet 2.3 or higher version of Tomcat (4x
and up, I think) you should move your initialization code to a context
listener.

Servlets are threadsafe but your code isn't necessarily.  Are both
instances making calls to methods in another object (maybe one that
locks a file or resource while working on it).  Are you using instance
variables in your servlet?



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



Re: Does Tomcat Rollback transactions automatically.

2004-11-24 Thread Ronald Klop
Do not mix webserver and database logic.
Tomcat does only webserving.
Ronald.
On Tue Nov 23 22:35:06 CET 2004 Shilpa Nalgonda [EMAIL PROTECTED] wrote:
Hi ,
I am using Tomcat 4.1.30, and using datasource to get the Connection from
Pool.
When there is an exception in the database operations, the trasaction is
supposed to rollback.
Is it automatically performed in Tomcat?

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



Too many open files error...

2004-11-24 Thread Quinton Delpeche
Hi,

I get this error in my catalina.out logs every 30 or so minutes and then I am 
forced to restart Tomcat.

Does this mean that I don't have enough sockets for my connector or what?

CATALINA_OUT
SEVERE: Endpoint [SSL: 
ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8443]] ignored exception: 
java.net.SocketException: Too many open
 files
java.net.SocketException: Too many open files
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:353)
at java.net.ServerSocket.implAccept(ServerSocket.java:448)
at 
com.sun.net.ssl.internal.ssl.SSLServerSocketImpl.accept(DashoA12275)
at 
org.apache.tomcat.util.net.jsse.JSSESocketFactory.acceptSocket(JSSESocketFactory.java:110)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java:368)
at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:549)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:534)

SEVERE: Endpoint null ignored exception: java.net.SocketException: Too many 
open files
java.net.SocketException: Too many open files
at java.net.ServerSocket.createImpl(ServerSocket.java:254)
at java.net.ServerSocket.getImpl(ServerSocket.java:205)
at java.net.ServerSocket.bind(ServerSocket.java:318)
at java.net.ServerSocket.init(ServerSocket.java:185)
at java.net.ServerSocket.init(ServerSocket.java:141)
at javax.net.ssl.SSLServerSocket.init(DashoA12275)
at 
com.sun.net.ssl.internal.ssl.SSLServerSocketImpl.init(DashoA12275)
at 
com.sun.net.ssl.internal.ssl.SSLServerSocketFactoryImpl.createServerSocket(DashoA12275)
at 
org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket(JSSESocketFactory.java:89)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:259)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java:429)
at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:549)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:534)
Nov 24, 2004 3:22:46 PM org.apache.tomcat.util.net.PoolTcpEndpoint 
acceptSocket
WARNING: Restarting endpoint
Nov 24, 2004 3:22:46 PM org.apache.tomcat.util.net.PoolTcpEndpoint 
acceptSocket
SEVERE: Endpoint null shutdown due to exception: 
java.io.FileNotFoundException: /usr/share/tomcat5/bin/.keystore (Too many 
open files)
java.io.FileNotFoundException: /usr/share/tomcat5/bin/.keystore (Too many open 
files)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.init(FileInputStream.java:106)
at 
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore(JSSESocketFactory.java:276)
at 
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeystore(JSSESocketFactory.java:220)
at 
org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.getKeyManagers(JSSE14SocketFactory.java:143)
at 
org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.init(JSSE14SocketFactory.java:109)
at 
org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket(JSSESocketFactory.java:88)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:259)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java:441)
at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:549)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:534)

/CATALINA_OUT

Q
-- 
Quinton Delpeche
Internal Systems Developer
Softline VIP

Telephone: +27 12 420 7000
Direct:+27 12 420 7007
Facsimile: +27 12 420 7344

http://www.vippayroll.co.za/

Lubarsky's Law of Cybernetic Entomology:
There's always one more bug.


pgpBfXu1SEBjF.pgp
Description: PGP signature


RE: Too many open files error...

2004-11-24 Thread Peter Crowther
 From: Quinton Delpeche [mailto:[EMAIL PROTECTED] 
 Does this mean that I don't have enough sockets for my 
 connector or what?
 ignored exception: 
 java.net.SocketException: Too many open
  files

Quinton, what OS are you on?  If on UNIX, this could mean that you have
run out of file descriptors for the process - at least, I last saw this
error when running a popular telnet-based multi-user game when we fell
off the end of the descriptor table!

Some (most!) UNIX kernels allow you to modify the maximum number of file
descriptors.  The precise mechanism varies depending on the OS.

- Peter

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



Re: Too many open files error...

2004-11-24 Thread Quinton Delpeche
On Wednesday 24 November 2004 15:33, Peter Crowther wrote:

Hi Peter,

 Quinton, what OS are you on?  If on UNIX, this could mean that you have
 run out of file descriptors for the process - at least, I last saw this
 error when running a popular telnet-based multi-user game when we fell
 off the end of the descriptor table!

Running SuSE Linux 9.2.

 Some (most!) UNIX kernels allow you to modify the maximum number of file
 descriptors.  The precise mechanism varies depending on the OS.

   - Peter

I found out what it was, my sockets for the connector was set to 100 and I 
have more then 100 users... ...pushed the sockets up to 300.

Problem solved. :)

Q
-- 
Quinton Delpeche
Internal Systems Developer
Softline VIP

Telephone: +27 12 420 7000
Direct:+27 12 420 7007
Facsimile: +27 12 420 7344

http://www.vippayroll.co.za/

Niklaus Wirth has lamented that, whereas Europeans pronounce his name
correctly (Ni-klows Virt), Americans invariably mangle it into
(Nick-les Worth).  Which is to say that Europeans call him by name, but
Americans call him by value.


pgpJk6SKyBDHZ.pgp
Description: PGP signature


RE: Another Admin problem...

2004-11-24 Thread Shapira, Yoav

Hi,
The contexts might be saved in conf/[engine name]/[host name]/app.xml
files.  They need not be in server.xml.  This is different in Tomcat 5
from Tomcat 4.

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: Quinton Delpeche [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 24, 2004 12:50 AM
To: [EMAIL PROTECTED]
Subject: Another Admin problem...

Okay,

I go through the normal process of setting up a blank server and I
create
the
contexts through the admin application.

It saves all the contexts and commits the information just fine.

But when I log out of the admin application and log back in, my
contexts
are
all missing.

They are just gone, the directories and everything are still there but
the
admin utility doesn't show the contexts at all.

Is this a Tomcat 5 thing?
Is this a SuSE 9.2 thing?

I never had this problem with Tomcat 4. :(

Grrr... ...kicks the dustbin out of frustration.

I have checked permissions... ...and the tomcat user definitely has rw
access
to the files... ...AFAIK!!!

Thanks
Q
--
Quinton Delpeche
Internal Systems Developer
Softline VIP

Telephone: +27 12 420 7000
Direct:+27 12 420 7007
Facsimile: +27 12 420 7344

http://www.vippayroll.co.za/

Anybody can win, unless there happens to be a second entry.



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


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



RE: servlet instance problem

2004-11-24 Thread Shapira, Yoav

Hi,

I am have a web application that does a lot of processing. I have a
load on
startup servlet that will get init information for me.
when 2 users submit the form.. i noticed that one instance of the
servlet
is running and the other request waits for some time for
processor and just dies off.. Servlets are suppose to be thread safe
and
'n' number of intances can be created . why only one
instance running  at a given time.. My servlet is not a single instance
servlet and i have not placed an restrictions of that sort..
can anyone help me with this ??

Your understanding of the how Servlet Spec dictates servlet instance
creation is incomplete.  While n instances of a servlet *may* be created
by the container, that's not required, and that's only one way to manage
things.  What Tomcat does is create one instance of each servlet for
every servlet tag in your web.xml, and then a pool of threads which
can use this servlet (aka the request processing threads).

So even though your servlet doesn't implement SingleThreadModel (I hope,
since that interface is gone, evil, and misleading), there's only one
instance of it.  And you're responsible for synchronization as needed
for your domain-level objects and business processes.

Yoav Shapira http://www.yoavshapira.com



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


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



RE: Scheduling and queue management under Coyote

2004-11-24 Thread Shapira, Yoav

Hi,

Under our current system, each template is
given its own queue and incoming requests are handed off to the
appropriate queue, from which dedicated threads pull off the request
and execute the transaction.

Note that the Servlet Specification mandates that an entire request be
processed by one thread in the container.  So what you're doing is not
strictly compliant with the Spec.

Judging from a quick overview of the Coyote/Catalina source, it looks
like that is not possible under Tomcat, since a single thread manages
the transaction from end to end and that thread comes from a single
pool.

Yeah, for the reason I mentioned above.

1.  Are we wrong and there is actually a way to configure this
behavior in Tomcat?

No, can't be configured in Tomat.

2.  If not, is there any interest in us developing a solution and
having it integrated into the Catalina base?

Not only is there no interest, but there's a strong objection.

As Tim said, if you want to do such logic, add it yourself with a Filter
or similar mechanism.

Yoav Shapira http://www.yoavshapira.com




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


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



RE: Problems using ant to deploy to Tomcat

2004-11-24 Thread Shapira, Yoav

Hi,

as far as I can see this should deploy to the context /rms-dev. However
upon trying to redeploy I get this message:

rms/build_local.xml [103] FAIL - Encountered exception
java.io.IOException: java.lang.IllegalStateException: Context path / is
already in use

Before doing a new deployment, clean out the previous rms-dev.xml, to
make sure you're going from a fresh start.  Maybe the server is in a bad
state.

Also add an echo message=path = ${dev.context} / to the deploy
target to see that the property really has the correct value.

'/'? Anyone experience this before? Or know what I am doing wrong? I am
a complete newbie to Tomcat, so go easy on me!

Welcome ;)  If I were in your shoes, I'd forget about Ant-driven
deployment for the moment.  Instead, write your webapp and copy it into
the webapps directory.  You don't need to worry about context XML files
and the likes at this time.  Follow the First Webapp tutorial in the
Tomcat docs if you haven't done so already.

Yoav Shapira http://www.yoavshapira.com




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


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



RE: Unnable to redeploy an axis web app

2004-11-24 Thread Shapira, Yoav

Hi,
Please make sure to let the Axis guys know this: your experience in
troubleshooting this issue is valuable.

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: Vy Ho [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 23, 2004 5:47 PM
To: Tomcat Users List
Subject: Re: Unnable to redeploy an axis web app


I have some luck out of this.  The problem happens with the Admin
Servlet, not AxisServlet.  So, what I did was disabled this
AdminServlet, and I am back to business for now.

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




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


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



RE: SuSE 9.2 and Tomcat...

2004-11-24 Thread Shapira, Yoav

Hi,
Thank you for sharing.  It IS useful information.  Now if newbies would
only search the archives before posting the same questions, we'd be all
set! ;)

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: Quinton Delpeche [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 24, 2004 2:28 AM
To: [EMAIL PROTECTED]
Subject: SuSE 9.2 and Tomcat...

Hi Again,

Well after pulling my hair out and getting very frustrated I have
finally
fixed and documented everything that needs to be done in order to get
Tomcat
5 working on SuSE 9.2.

This seems a little strange since I am using the version of Tomcat that
comes
with SuSE 9.2, but I won't say anymore on the matter.

There are basically two important permission things that need to be
done.

1). The files admin.xml and manager.xml
in /etc/tomcat5/base/Catalina/localhost/ need to be given write access
to
the
tomcat user.

There new profile should look like this:
-rw-rw-r--  1 root   tomcat 862 Oct  5 03:20 admin.xml
-rw-rw-r--  1 root   tomcat 428 Oct  5 03:20 manager.xml

This fix removes the previous error regarding the admin and manager
applications that I posted earlier.

2). The tomcat user needs to be given access to /var/run in order to
create
the relevant PID file.

Because my server is behind a firewall and I change the ROOT and user
password
on the server regularly, I changed the /var/run permissions so that
everyone
could read and write from and to this directory.

The new profile should look like this:
drwxrwxrwx  15 root  root  1032 Nov 24 09:11 run

This fix solves various issues regarding the admin and manager
applications
as
well as the start.log error.

Thats it. I don't know if this information will be useful to anyone,
but I
thought I would share it with you all anyway.

Regards
Q
--
Quinton Delpeche
Internal Systems Developer
Softline VIP

Telephone: +27 12 420 7000
Direct:+27 12 420 7007
Facsimile: +27 12 420 7344

http://www.vippayroll.co.za/

   A doctor, an architect, and a computer scientist were arguing
about whose profession was the oldest.  In the course of their
arguments, they got all the way back to the Garden of Eden, whereupon
the doctor said, The medical profession is clearly the oldest, because
Eve was made from Adam's rib, as the story goes, and that was a simply
incredible surgical feat.
   The architect did not agree.  He said, But if you look at the
Garden itself, in the beginning there was chaos and void, and out of
that, the Garden and the world were created.  So God must have been an
architect.
   The computer scientist, who had listened to all of this said,
Yes, but where do you think the chaos came from?



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


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



Tomcat Documentation Thoughts

2004-11-24 Thread Allistair Crossley
Citing Thank you for sharing.  It IS useful information.  Now if newbies would
only search the archives before posting the same questions, we'd be all
set! ;)

Mmm, of course it would be great, but mailing lists are not in reality the 
place people look for documentation for world-class software products. They are 
not particularly usable, and much of it is conversation without solution, a lot 
of time can be wasted. 

The prevalence of Tomcat is obvious and synonymous in my view with J2EE web 
application development. But on the documentation front, BEA, IBM and the like 
out-do Tomcat easily. This will be a factor in Tomcat's ultimate success. Our 
.net boys have just completed their first ever project in 
J2EE/Tomcat/Struts/Hibernate and they had real problems and time loss scouting 
mailing lists and the web for documentation on configuration with IIS with 
respect to SSL and Virtual Hosting - 2 prevalent technologies used everywhere. 
Same goes for the other technologies (you know they are used to wizards lol) 
but there is some truth in it.

I understand that with an open-source product this is never going to be the 
case and it relies on contributors to the project. For my part, I would like to 
help where I can with Tomcat's documentation and as you know I started that. I 
am going to think about the areas I think improvement can be made and make 
those suggestions.

But you know, I submitted a logging page doc patch over a week ago and it's 
still not there, and since then there have been many posts asking about this 
problem. I don't find that encouraging.

Also, there is very little documentation on how to even document! Tomcat 
developers make a lot of suggestions to people to go write a document then 
but never cite a definitive reference for how one would do that. There's a 
small page on how to build Tomcat but that's your lot (please correct me if I 
am wrong!). So that's a page I think could be helpful.

Turns out you need an understanding of CVS, making a patch, the XDOC format. I 
had to scout all the Apache website to form a full view of how to do this. And 
how do you even preview your changes? Probably by having to grab Apache Forrest 
or something.

Let's get a page detailing a step by step how to write and contribute 
documentation and then let's get Tomcat's docs up to scratch by really 
considering the areas that come up time and again in the lists and making the 
Tomcat documentation deserving of its functional reputation.

Allistair.

 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
 Sent: 24 November 2004 14:05
 To: Tomcat Users List
 Subject: RE: SuSE 9.2 and Tomcat...
 
 
 
 Hi,
 Thank you for sharing.  It IS useful information.  Now if 
 newbies would
 only search the archives before posting the same questions, 
 we'd be all
 set! ;)
 
 Yoav Shapira http://www.yoavshapira.com
  
 
 -Original Message-
 From: Quinton Delpeche [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, November 24, 2004 2:28 AM
 To: [EMAIL PROTECTED]
 Subject: SuSE 9.2 and Tomcat...
 
 Hi Again,
 
 Well after pulling my hair out and getting very frustrated I have
 finally
 fixed and documented everything that needs to be done in order to get
 Tomcat
 5 working on SuSE 9.2.
 
 This seems a little strange since I am using the version of 
 Tomcat that
 comes
 with SuSE 9.2, but I won't say anymore on the matter.
 
 There are basically two important permission things that need to be
 done.
 
 1). The files admin.xml and manager.xml
 in /etc/tomcat5/base/Catalina/localhost/ need to be given 
 write access
 to
 the
 tomcat user.
 
 There new profile should look like this:
 -rw-rw-r--  1 root   tomcat 862 Oct  5 03:20 admin.xml
 -rw-rw-r--  1 root   tomcat 428 Oct  5 03:20 manager.xml
 
 This fix removes the previous error regarding the admin and manager
 applications that I posted earlier.
 
 2). The tomcat user needs to be given access to /var/run in order to
 create
 the relevant PID file.
 
 Because my server is behind a firewall and I change the ROOT and user
 password
 on the server regularly, I changed the /var/run permissions so that
 everyone
 could read and write from and to this directory.
 
 The new profile should look like this:
 drwxrwxrwx  15 root  root  1032 Nov 24 09:11 run
 
 This fix solves various issues regarding the admin and manager
 applications
 as
 well as the start.log error.
 
 Thats it. I don't know if this information will be useful to anyone,
 but I
 thought I would share it with you all anyway.
 
 Regards
 Q
 --
 Quinton Delpeche
 Internal Systems Developer
 Softline VIP
 
 Telephone: +27 12 420 7000
 Direct:+27 12 420 7007
 Facsimile: +27 12 420 7344
 
 http://www.vippayroll.co.za/
 
  A doctor, an architect, and a computer scientist were arguing
 about whose profession was the oldest.  In the course of their
 arguments, they got all the way back to the Garden of Eden, whereupon
 the doctor said, The medical profession is clearly the 
 

RE: Tomcat Documentation Thoughts

2004-11-24 Thread Shapira, Yoav

Hi,

But you know, I submitted a logging page doc patch over a week ago and
it's
still not there, and since then there have been many posts asking about
this problem. I don't find that encouraging.

As I responded, your patch has been committed, and it will be available
in the next release.  If you want something sooner or more dynamic,
that's why we have a wiki.

Also, there is very little documentation on how to even document!
Tomcat
developers make a lot of suggestions to people to go write a document
then but never cite a definitive reference for how one would do that.
There's a small page on how to build Tomcat but that's your lot (please
correct me if I am wrong!). So that's a page I think could be helpful.

There's the tech guide at http://www.apache.org/dev/contributors.html.
The xdoc format is self-explanatory.  Then you submit your patches in
Bugzilla and we take care of building them.

Let's get a page detailing a step by step how to write and contribute
documentation and then let's get Tomcat's docs up to scratch by really
considering the areas that come up time and again in the lists and
making
the Tomcat documentation deserving of its functional reputation.

I've added a section to the wiki page at
http://wiki.apache.org/jakarta-tomcat/HowTo.

I'm glad you have the time to help, and I look forward to seeing your
contributions.

Happy thanksgiving ;)

Yoav Shapira http://www.yoavshapira.com




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


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



RE: Tomcat Documentation Thoughts

2004-11-24 Thread Allistair Crossley
Hey :)

 But you know, I submitted a logging page doc patch over a 
 week ago and it's
 still not there, and since then there have been many posts 
 asking about
 this problem. I don't find that encouraging.
 
 As I responded, your patch has been committed, and it will be 
 available
 in the next release.  If you want something sooner or more dynamic,
 that's why we have a wiki.

Yes but the logging applies to the current release too and people are asking 
about it. Is the web page build quite an intensive process? I don't want to 
labour on the point, I just think documentation should be a priority, not a 
per-Tomcat-build thing.
 
 Also, there is very little documentation on how to even document!
 Tomcat
 developers make a lot of suggestions to people to go write 
 a document
 then but never cite a definitive reference for how one 
 would do that.
 There's a small page on how to build Tomcat but that's your 
 lot (please
 correct me if I am wrong!). So that's a page I think could 
 be helpful.
 
 There's the tech guide at http://www.apache.org/dev/contributors.html.
 The xdoc format is self-explanatory.  Then you submit your patches in
 Bugzilla and we take care of building them.

Well it's something but it doesn't apply to Tomcat directly. The docs are 
wrapped up in jakarta-catalina in webapps folder. I had to download nearly 
everything to find that out. he jakarta-site2 is misleading ... (this site it 
says). My point again is this scattering of information rather than a 
definitive Tomcat resource. People don't want to scout the web piecing together 
information on how to get a product up and going imo.
 
 I'm glad you have the time to help, and I look forward to seeing your
 contributions.

:) ok.

 Happy thanksgiving ;)

Yes of course, I forgot it's thanksgiving for you guys!! Enjoy :)

Allistair.


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: slow read from input stream.

2004-11-24 Thread Alexander Zubenko
The problem was on client-side. Client request was sent with pauses.
Sorry for inconvenience.

-Original Message-
From: Alexander Zubenko [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 24, 2004 2:35 PM
To: Tomcat Users List
Subject: slow read from input stream.

In tomcat 5.0.28 I do following:

 

HttpServletRequest request;

 

InputStream in = request.getInputStream();

 

in.read();

 

first call to read always takes aprox. 90 ms. I have discovered that
first call to in.read() calls public int realReadBytes(byte cbuf[], int
off, int len) method in InputBuffer. But why 90 ms. It seems too long.

 


 



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



RE: How to disable directory listing

2004-11-24 Thread Phillip Qin
Do it in your app's web.xml

-Original Message-
From: Lee Chin Khiong [mailto:[EMAIL PROTECTED] 
Sent: November 24, 2004 1:29 AM
To: 'Tomcat Users List'
Subject: RE: How to disable directory listing



Is there any better way to configure Tomcat 5 to no Directory listing just
like IIS ?

-Original Message-
From: Quinton Delpeche [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 24, 2004 2:19 PM
To: [EMAIL PROTECTED]
Subject: Re: How to disable directory listing


On Wednesday 24 November 2004 08:09, Lee Chin Khiong wrote:
 How to disable directory listing under Tomcat 5 ?

I use a blank index.html file and put it in all the directories that I don't

want to have listed. :)

Q
-- 
Quinton Delpeche
Internal Systems Developer
Softline VIP

Telephone: +27 12 420 7000
Direct:+27 12 420 7007
Facsimile: +27 12 420 7344

http://www.vippayroll.co.za/

All snakes who wish to remain in Ireland will please raise their right
hands.
-- Saint Patrick


!DSPAM:41a42e6218041888736547!


RE: Tomcat Documentation Thoughts

2004-11-24 Thread Ben Souther
Let's get a page detailing a step by step how to write and contribute
 documentation and then let's get Tomcat's docs up to scratch by really
 considering the areas that come up time and again in the lists and
 making
 the Tomcat documentation deserving of its functional reputation.

There's the tech guide at http://www.apache.org/dev/contributors.html.
 The xdoc format is self-explanatory.  Then you submit your patches in
 Bugzilla and we take care of building them.
 

There is this also.
http://jakarta.apache.org/site/jakarta-site2.html

-Ben



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



Re: Tomcat Documentation Thoughts

2004-11-24 Thread Wouter De Vaal
On Wed, 24 Nov 2004 09:44:00 -0500, Shapira, Yoav [EMAIL PROTECTED] wrote:
 
 Hi,
 
 But you know, I submitted a logging page doc patch over a week ago and
 it's
 still not there, and since then there have been many posts asking about
 this problem. I don't find that encouraging.
 
Is this about my problem that I posted earlier today (tomcat 5.5.4 and
log4j)? About the
...[host].[/] problem?
If so, could you please post your fix on this to me or this list?

Regards,
Wouter de Vaal

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



RE: Tomcat Documentation Thoughts

2004-11-24 Thread Allistair Crossley
Hi,

Well you are one of those asking about logging. Don't get overly exited about 
the logging detail I have added to the logging page. The kind of logging you 
are attempting to do I believe you are confused about (i may be wrong). You are 
setting up logging from *within* Tomcat. This will tell you very little about 
your web application. If the type of logging you are referring to is the old 
localhost_log style logging, this will be stdout you need. In any case, here is 
the HTML.

  section name=Introduction
p
Tomcat 5.5 uses Commons Logging throughout its internal code 
allowing the   developer to choose a logging configuration that 
suits their needs, e.g
JDK Logging or log4j. Commons Logging provides Tomcat the 
ability to log
hierarchially across various log levels without needing to rely 
on a particular
logging implementation. Commons Logging is therefore a bridge 
to other implementations.
a href=http://jakarta.apache.org/commons/logging/;Visit the 
Commons Logging project/a
for more information.
/p
p
An important consequence for Tomcat 5.5 is that the 
lt;Loggergt; element found in 
previous versions to create a localhost_log, is no longer a 
valid nested element 
of lt;Contextgt;. Instead, stdout will collect runtime 
exceptions and other uncaught
exception generated by web applications. If the developer 
wishes to collect detailed internal 
Tomcat logging (i.e what is happening within the Tomcat 
engine), then they should configure 
a logging system such as JDK Logging or log4j as detailed next.
/p
p
One note to point out is that currently, the log4j 
configuration will not function on
Tomcat server startup, so JDK Logging is more reliable at this 
point. This is a known
issue in the pipeline for fix.
/p
  /section

  section name=java.util.logging
p
In order to configure JDK logging you should have JDK 1.4+. 
Tomcat 5.5 is intended for
JDK 5.0, but can be run on JDK 1.4 using a compatibility 
package.
/p
p
In order to configure JDK Logging, you should find the JDK's 
logging.properties file. Check
your JAVA_HOME environment setting to see which JDK Tomcat is 
using (or maybe JRE 5.0 as Tomcat
can now run on a JRE from version 5.5). The file will be in 
i${JAVA_HOME}/jre/lib/i.
/p
p
The default logging.properties specifies a ConsoleHandler for 
routing logging to stdout and
also a FileHandler. A handler's log level threshold can be set 
using SEVERE, CONFIG, INFO, 
WARN, FINE, FINEST or ALL. The logging.properties shipped with 
JDK is set to INFO. You
can also target specific packages to collect logging from and 
specify a level. Here is how
you would set debugging from Tomcat. You would need to ensure 
the ConsoleHandler's level is also
set to collect this threshold, so FINEST or ALL should be set.
/p
psourceorg.apache.catalina.level=FINEST/source/p
pA limitation of JDK Logging appears to be the inability to have 
per-web application logging, 
as the configuration is per-VM. It is advisable to use log4j 
for per-web application logging
as elabatorated on below.
/p
  /section

  section name=log4j
p
  As mentioned, an known issue prevents this log4j configuration working 
propertly on Tomcat startup,
  but is known to work when combined with some actions, such as 
deployment of a WAR. It is
  provided for completeness.
/p

ol
li
Create a file called log4j.properties with the 
following content and save it into common/classes. 
Use the appropriate file path convention for your OS, 
here is is Windows, and example *nix path may be
/var/jakarta-tomcat-5.5.4/logs/tomcat.log
source
log4j.rootLogger=debug, R
log4j.appender.R=org.apache.log4j.RollingFileAppender

log4j.appender.R.File=d:/jakarta-tomcat-5.5.4/logs/tomcat.log
log4j.appender.R.MaxFileSize=500KB
log4j.appender.R.MaxBackupIndex=10
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%p %t %c - 
%m%n
log4j.logger.org.apache.catalina=DEBUG, R/source
/li
liAcquire log4j1.2.8.jar and add it into Tomcat's common/lib 
folder./li
liStart 

RE: Tomcat Documentation Thoughts

2004-11-24 Thread Allistair Crossley
That's useful thanks Ben :)

Allistair.

 -Original Message-
 From: Ben Souther [mailto:[EMAIL PROTECTED]
 Sent: 24 November 2004 14:55
 To: Tomcat Users List
 Subject: RE: Tomcat Documentation Thoughts
 
 
 Let's get a page detailing a step by step how to write and contribute
  documentation and then let's get Tomcat's docs up to 
 scratch by really
  considering the areas that come up time and again in the lists and
  making
  the Tomcat documentation deserving of its functional reputation.
 
 There's the tech guide at http://www.apache.org/dev/contributors.html.
  The xdoc format is self-explanatory.  Then you submit your 
 patches in
  Bugzilla and we take care of building them.
  
 
 There is this also.
 http://jakarta.apache.org/site/jakarta-site2.html
 
 -Ben
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



Re: [OT] SCWCD Exam 1.4

2004-11-24 Thread Andoni
Hi,

Thanks for that I found one which was printed in September. Here's it's
ISBN:
0596005407
If you know of a reason I shouldn't buy this one and January's is better let
me know. I'm always open to recommendations.

Andoni.

- Original Message - 
From: Allistair Crossley [EMAIL PROTECTED]
Newsgroups: gmane.comp.jakarta.tomcat.user
Sent: Wednesday, November 24, 2004 11:50 AM
Subject: RE: [OT] SCWCD Exam 1.4


 Yeah, there's a new book out in January 2005. Search Amazon for SCWCD.

 Allistair

  -Original Message-
  From: Andoni [mailto:[EMAIL PROTECTED]
  Sent: 24 November 2004 10:35
  To: Tomcat Users List
  Subject: [OT] SCWCD Exam 1.4
 
 
  Hello,
 
  I know this is off topic but I was just wondering if anybody
  had done either the new 1.4 version of the SCWCD Exam (Sun
  Certified Web Component Developer) or the upgrade exam from 1.2.
 
  If you have can you recommend any book or reference page. It
  seems to be a bit new at the moment and nobody seems to have
  gotten their act together on writing a book for it yet so all
  there is to go on is the reference from SUN and looking
  things up on the web.
 
  Andoni.
 


 FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE
 ---
 QAS Ltd.
 Developers of QuickAddress Software
 a href=http://www.qas.com;www.qas.com/a
 Registered in England: No 2582055
 Registered in Australia: No 082 851 474
 ---
 /FONT




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



RE: [OT] SCWCD Exam 1.4

2004-11-24 Thread Allistair Crossley
The one you found Head First Servlets and JSP appears to me not to be a 
dedicated exam guide. I think the only reason it is mentioning you can even 
take the exam if you want! is to sell copies. I could be wrong but I think 
you'd be better waiting for a dedicated 1.4 exam guide.

Allistair 

 -Original Message-
 From: Andoni [mailto:[EMAIL PROTECTED]
 Sent: 24 November 2004 15:08
 To: Tomcat Users List
 Subject: Re: [OT] SCWCD Exam 1.4
 
 
 Hi,
 
 Thanks for that I found one which was printed in September. 
 Here's it's
 ISBN:
 0596005407
 If you know of a reason I shouldn't buy this one and 
 January's is better let
 me know. I'm always open to recommendations.
 
 Andoni.
 
 - Original Message - 
 From: Allistair Crossley [EMAIL PROTECTED]
 Newsgroups: gmane.comp.jakarta.tomcat.user
 Sent: Wednesday, November 24, 2004 11:50 AM
 Subject: RE: [OT] SCWCD Exam 1.4
 
 
  Yeah, there's a new book out in January 2005. Search Amazon 
 for SCWCD.
 
  Allistair
 
   -Original Message-
   From: Andoni [mailto:[EMAIL PROTECTED]
   Sent: 24 November 2004 10:35
   To: Tomcat Users List
   Subject: [OT] SCWCD Exam 1.4
  
  
   Hello,
  
   I know this is off topic but I was just wondering if anybody
   had done either the new 1.4 version of the SCWCD Exam (Sun
   Certified Web Component Developer) or the upgrade exam from 1.2.
  
   If you have can you recommend any book or reference page. It
   seems to be a bit new at the moment and nobody seems to have
   gotten their act together on writing a book for it yet so all
   there is to go on is the reference from SUN and looking
   things up on the web.
  
   Andoni.
  
 
 
  FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE
  ---
  QAS Ltd.
  Developers of QuickAddress Software
  a href=http://www.qas.com;www.qas.com/a
  Registered in England: No 2582055
  Registered in Australia: No 082 851 474
  ---
  /FONT
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


Jsessionid Problem

2004-11-24 Thread Arnab Chakravarty
Hi all,

We are running 2 tomcat instances, running 2 different applications. We
are making a switchover from tomcat 1 to tomcat 2 and in this process
loosing the session information on tomcat 1 this is resulting in error
(error page) in the application. 

I had disabled cookies and then again tried the switchover. This time it
was able to redirect well to tomcat 1 and seems that blocking cookies at
the browser level did not let the JSESSIONID cookie to be overridden on
tomcat 1.

I need to know, how I can avoid the JSESSIONID cookie (on tomcat 1) to
be overridden without disabling the 'block all cookie' option of the
browser.

I have added defaultcontext tag with cookies=false in the server.xml
under host but this does not seem to working. 

Any workarounds apart from removing the hard coded JSESSIONID in the
tomcat code base and recompilation of the same.

Thanks in Advance,
Arnab

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



Tomcat and Servlets - DESPERATE for help

2004-11-24 Thread Michael McQuade
Hi folks,  I pray someone can tell me something here.  Im writing an 
application in Servlets using Tomcat  Heres my scenario.

I display a User Login screen,  ID and Password on an HTML form,  user enters 
data,   the submit button executes the program to verify the Users 
information  Obvioulsy if its wrong,  it redisplays the screen,   or 
correct,  it carries on into the application.  SO,  if the user info is 
correct,   it CALLS another program to build and display the users data, menu,  
etc..

This all works just fine,  EXCEPT.when it builds the new User screen,   it 
is building it BELOW (i.e. same browser page)  as the User Login screen.  
Obviously this User Login screen should be gone,  and I should just see the new 
results

Ok,   if the User validation process failed (i.e.  invalid id or password)  my 
program just redisplays the log in screen,  well,   same happens,  a NEW login 
screen,  gets bulit below the Original log in screen.

can ANYONE PLEAE help me here.  Does Tomcat need to kill the 
Servlet session?  to know it needs to refresh the Browser?

This is killing me here, Im desperate to get this resolved so I can move 
forward with my app,  I thank you all for any help you can give me
Have a wonderful day, Merry Christmas

Mike

enabling jsp-debugging on tomcat

2004-11-24 Thread Timo . Roessner
hi, 

what i want to do is: 

i want to enable jsp-debugging in eclipse using lomboz on a tomcat 5.5.4
server, so i followed the steps on the objectlearn-website to achieve this. 
i changed the context path so every generated servlet goes into the /j2src
folder and i can set breakpoints, which is fine, but now i got a problem
which should not occur with tomcat 5 because it was a bug in tomcat 4. 

-- quote from the sysdeo website -- 

Known problem 1 : Tomcat 4 and JSP in project subdirectories 

Generated servlets for JSP couldn't be compile by Eclipse. Subdirectories do
not appear in Tomcat 4 generates servlets. Package definition is always
package org.apache.jsp. 

- end quote  

thats exactly the problem i got right now, package definition is always
org.apache.jsp, but there is no patch for this problem for tomcat 5, it isnt
even mentioned on the website for tomcat 5, 

so what is wrong and how can i change this? 


What i use: 
- eclipse Version: 3.0.0 
Build id: 200406251208 
- lomboz 3.0.0 
- tomcat 5.5.4 


thanks in advance, timo 

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



Re: Data sorting problem Tomcat-Oracle

2004-11-24 Thread Harald Henkel
Hello Tim.

Thanks, I got at last a working solution.

Tim Funk wrote:
 
 Ahhh. The archives have a lot of references about System environment
 variables not being set when run as a service.

I guess it doesn't have too much to do with that. I now tested running
it standalone.

 If you are using the type 4 driver - I don't think it looks for Environment
 variables or the registry since the driver is pure java. Oracle's support
 would probably be more helpful for the appropriate connection string. (Or
 setting)

That was a good hint. Indeed I'm usually using a Jdbc Thin driver and I
looked into some Oracle newsgroup.

I tried starting Tomcat standalone adding a -Duser.language=en into the
java starting command.

And this works.

Again, thanks for the hint, I wasted a lot of time on this one.
Should really ask earlier.

With kind regards,
Harald Henkel

 
 -Tim
 
 Harald Henkel wrote:
 
  Tim Funk wrote:
 
 Tomcat knows nothing about NLS_SORT.
 
 Odds are NLS_SORT is probably not set when running on XP.
 
 
  ???
  Oracle usually sets values in the registry, and by default only
  NLS_LANG, from which the other values are derived.
  If you want to change the defaults, you could either define registry
  entries for those, or set environment variables.
 
  I use Tomcat as service on NT.
  Could it be, that it doesn't get the System environment varible ?
  I will try starting Tomcat from the CMD.
 
  Regards,
  Harald Henkel
 
 
 -Tim
 
 Harald Henkel wrote:
 
 
 Hello all.
 
 I have a strange problem with data sorting using an Oracle 8.1.7
 database.
 
 I set the database to use binary sorting (NLS_SORT=BINARY), independent
 from GERMAN language setting.
 When I'm doing a select on a table with values like
 A1, A2, ... AA, AB, ... I get the correct result according to binary
 sorting.
 Yet, if I'm doing this from Tomcat (4.1.24 on WinXP) the data returned
 is sorted in GERMAN sorting
 order, i.e. AA, AB, ..., A1, A2, ...
 
 So it seems either Tomcat ignores the setting of the NLS_SORT
 environment variable,
 or it is implicitly (by Tomcat) or explicitly (by some library code,
 which I didn't find yet) overridden.
 
 Anybody got an idea, of which might be the case ?
 
 Thanks in advance,
 Harald Henkel
 
 
 -
 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]

-- 
Harald Henkel

GS automation GmbH
Winterstraße 2
82223 Eichenau
Germany
Tel:+ 49-8141-35 731-37
Fax:+ 49-8141-35 731-38
Mobile: + 49-178-7829126
e-mail: [EMAIL PROTECTED]
Web:www.GS-automation.DE

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



RE: Tomcat and Servlets - DESPERATE for help

2004-11-24 Thread Wick, Daniel
Mike,

What is your question?  We are happy to help, but need some detail.

--Dan

 -Original Message-
 From: Michael McQuade [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, November 24, 2004 9:31 AM
 To: Tomcat Users List
 Subject: Tomcat and Servlets - DESPERATE for help
 
 
 Hi folks,  I pray someone can tell me something here.  Im 
 writing an application in Servlets using Tomcat  Heres my 
 scenario.
 
 I display a User Login screen,  ID and Password on an HTML 
 form,  user enters data,   the submit button executes the 
 program to verify the Users information  Obvioulsy if its 
 wrong,  it redisplays the screen,   or correct,  it carries 
 on into the application.  SO,  if the user info is 
 correct,   it CALLS another program to build and display the 
 users data, menu,  etc..
 
 This all works just fine,  EXCEPT.when it builds the new 
 User screen,   it is building it BELOW (i.e. same browser 
 page)  as the User Login screen.  Obviously this User 
 Login screen should be gone,  and I should just see the new 
 results
 
 Ok,   if the User validation process failed (i.e.  invalid id 
 or password)  my program just redisplays the log in screen,  
 well,   same happens,  a NEW login screen,  gets bulit below 
 the Original log in screen.
 
 can ANYONE PLEAE help me here.  Does Tomcat need 
 to kill the Servlet session?  to know it needs to refresh the Browser?
 
 This is killing me here, Im desperate to get this resolved so 
 I can move forward with my app,  I thank you all for any help 
 you can give me
 Have a wonderful day, Merry Christmas
 
 Mike
 

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



AW: Tomcat and Servlets - DESPERATE for help

2004-11-24 Thread Timo . Roessner
hi, 

i am not quite sure (my serlvet-experience is some years ago) but i think
you just have to flush the buffer, 
so i think you should call out.flush() ,if your Printwriter is called out,
at the end of every servlet.

hope this helpfull, timo

-Ursprüngliche Nachricht-
Von: Michael McQuade [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 24. November 2004 16:31
An: Tomcat Users List
Betreff: Tomcat and Servlets - DESPERATE for help


Hi folks,  I pray someone can tell me something here.  Im writing an
application in Servlets using Tomcat  Heres my scenario.

I display a User Login screen,  ID and Password on an HTML form,  user
enters data,   the submit button executes the program to verify the Users
information  Obvioulsy if its wrong,  it redisplays the screen,   or
correct,  it carries on into the application.  SO,  if the user info is
correct,   it CALLS another program to build and display the users data,
menu,  etc..

This all works just fine,  EXCEPT.when it builds the new User screen,
it is building it BELOW (i.e. same browser page)  as the User Login
screen.  Obviously this User Login screen should be gone,  and I should
just see the new results

Ok,   if the User validation process failed (i.e.  invalid id or password)
my program just redisplays the log in screen,  well,   same happens,  a NEW
login screen,  gets bulit below the Original log in screen.

can ANYONE PLEAE help me here.  Does Tomcat need to kill the
Servlet session?  to know it needs to refresh the Browser?

This is killing me here, Im desperate to get this resolved so I can move
forward with my app,  I thank you all for any help you can give me
Have a wonderful day, Merry Christmas

Mike

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



RE: Tomcat and Servlets - DESPERATE for help

2004-11-24 Thread Shiva.Devaguptapu
I can be helpful, if u can send me the files related to whatever u r saying.

-Original Message-
From: Michael McQuade [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 24, 2004 9:01 PM
To: Tomcat Users List
Subject: Tomcat and Servlets - DESPERATE for help


Hi folks,  I pray someone can tell me something here.  Im writing an
application in Servlets using Tomcat  Heres my scenario.

I display a User Login screen,  ID and Password on an HTML form,  user
enters data,   the submit button executes the program to verify the Users
information  Obvioulsy if its wrong,  it redisplays the screen,   or
correct,  it carries on into the application.  SO,  if the user info is
correct,   it CALLS another program to build and display the users data,
menu,  etc..

This all works just fine,  EXCEPT.when it builds the new User screen,
it is building it BELOW (i.e. same browser page)  as the User Login
screen.  Obviously this User Login screen should be gone,  and I should
just see the new results

Ok,   if the User validation process failed (i.e.  invalid id or password)
my program just redisplays the log in screen,  well,   same happens,  a NEW
login screen,  gets bulit below the Original log in screen.

can ANYONE PLEAE help me here.  Does Tomcat need to kill the
Servlet session?  to know it needs to refresh the Browser?

This is killing me here, Im desperate to get this resolved so I can move
forward with my app,  I thank you all for any help you can give me
Have a wonderful day, Merry Christmas

Mike

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



java.lang.NoClassDefFoundError

2004-11-24 Thread Mohamed Ganna
Hi there,
I'm newbie to Tomcat. I'm using Tomcat 4.1.31 under Linux RedHat9.0, and 
I set up all the necessary CLASSPATH and sample servlets are running 
great. I built up a Servlet for user's authentication using freeradius 
0.9.2 and a Java based radius client (jradius-client). The servlet works 
fine with JSWDK + freeradius + jradius-client, but I wanted to encrypt 
the information exchanged between the user's form and the webserver 
using SSL (https based form), that I couldn't do with JSWDK. So, I've 
installed tomcat and tried to use the same servlet (I've made all the 
necessary changes in server.xml, I think so!!!). I've put my ServletForm 
class in $CATALINA_HOME$/webapps/ROOT/WEB-INF/classes and the html form 
in $CATALINA_HOME$/webapps/ROOT/. I access the form using 
https://localhost:8443/ (the form called index.html), but when running 
the servlet I get this error:

java.lang.NoClassDefFoundError: net/sourceforge/jradiusclient/RadiusAttribute
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:1610)
at java.lang.Class.getConstructor0(Class.java:1922)
at java.lang.Class.newInstance0(Class.java:278)
at java.lang.Class.newInstance(Class.java:261)
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:856)
at 
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:621)
at 
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:369)
at 
org.apache.catalina.servlets.InvokerServlet.doPost(InvokerServlet.java:169)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:716)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at 
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:199)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at 
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:534)
I've set up the CLASSPATH for net.sourceforge.jradiusclient.RadiusAttribute. 
Can anyone help figure out what's the pb?

Thank's a lot
NzM

-

Re: Tomcat and Servlets - DESPERATE for help

2004-11-24 Thread Dave Robbins
kinda sounds like your sending malformed html to the browser
do the view source thing in the browser and see what you're sending it

 Hi folks,  I pray someone can tell me something here.  Im writing an
 application in Servlets using Tomcat  Heres my scenario.

 I display a User Login screen,  ID and Password on an HTML form,  user
 enters data,   the submit button executes the program to verify the
 Users information  Obvioulsy if its wrong,  it redisplays the
 screen,   or correct,  it carries on into the application.  SO,  if
 the user info is correct,   it CALLS another program to build and
 display the users data, menu,  etc..

 This all works just fine,  EXCEPT.when it builds the new User
 screen,   it is building it BELOW (i.e. same browser page)  as the User
 Login screen.  Obviously this User Login screen should be gone,  and
 I should just see the new results

 Ok,   if the User validation process failed (i.e.  invalid id or
 password)  my program just redisplays the log in screen,  well,   same
 happens,  a NEW login screen,  gets bulit below the Original log in
 screen.

 can ANYONE PLEAE help me here.  Does Tomcat need to kill the
 Servlet session?  to know it needs to refresh the Browser?

 This is killing me here, Im desperate to get this resolved so I can move
 forward with my app,  I thank you all for any help you can give me
 Have a wonderful day, Merry Christmas

 Mike




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



[OT] Re: Tomcat and Servlets - DESPERATE for help

2004-11-24 Thread Ben Souther
Hi,

This is not a Tomcat specific question so I am marking the subject [OT].
You may find more enthusiastic help in a JSP/Servlet list (a Google
search will yield plenty of them).

Have you considered using response.sendRedirect() to send the user to
another page after a successful login?

-Ben


On Wed, 2004-11-24 at 10:31, Michael McQuade wrote:
 Hi folks,  I pray someone can tell me something here.  Im writing an 
 application in Servlets using Tomcat  Heres my scenario.
 
 I display a User Login screen,  ID and Password on an HTML form,  user enters 
 data,   the submit button executes the program to verify the Users 
 information  Obvioulsy if its wrong,  it redisplays the screen,   or 
 correct,  it carries on into the application.  SO,  if the user info is 
 correct,   it CALLS another program to build and display the users data, 
 menu,  etc..
 
 This all works just fine,  EXCEPT.when it builds the new User screen,   
 it is building it BELOW (i.e. same browser page)  as the User Login 
 screen.  Obviously this User Login screen should be gone,  and I should 
 just see the new results
 
 Ok,   if the User validation process failed (i.e.  invalid id or password)  
 my program just redisplays the log in screen,  well,   same happens,  a NEW 
 login screen,  gets bulit below the Original log in screen.
 
 can ANYONE PLEAE help me here.  Does Tomcat need to kill the 
 Servlet session?  to know it needs to refresh the Browser?
 
 This is killing me here, Im desperate to get this resolved so I can move 
 forward with my app,  I thank you all for any help you can give me
 Have a wonderful day, Merry Christmas
 
 Mike


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



Re: Tomcat and Servlets - DESPERATE for help

2004-11-24 Thread Michael McQuade
lol,  I put my question in my Request Dan,did u not see it
- Original Message - 
From: Wick, Daniel [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Wednesday, November 24, 2004 10:55 AM
Subject: RE: Tomcat and Servlets - DESPERATE for help


 Mike,
 
 What is your question?  We are happy to help, but need some detail.
 
 --Dan
 
  -Original Message-
  From: Michael McQuade [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, November 24, 2004 9:31 AM
  To: Tomcat Users List
  Subject: Tomcat and Servlets - DESPERATE for help
  
  
  Hi folks,  I pray someone can tell me something here.  Im 
  writing an application in Servlets using Tomcat  Heres my 
  scenario.
  
  I display a User Login screen,  ID and Password on an HTML 
  form,  user enters data,   the submit button executes the 
  program to verify the Users information  Obvioulsy if its 
  wrong,  it redisplays the screen,   or correct,  it carries 
  on into the application.  SO,  if the user info is 
  correct,   it CALLS another program to build and display the 
  users data, menu,  etc..
  
  This all works just fine,  EXCEPT.when it builds the new 
  User screen,   it is building it BELOW (i.e. same browser 
  page)  as the User Login screen.  Obviously this User 
  Login screen should be gone,  and I should just see the new 
  results
  
  Ok,   if the User validation process failed (i.e.  invalid id 
  or password)  my program just redisplays the log in screen,  
  well,   same happens,  a NEW login screen,  gets bulit below 
  the Original log in screen.
  
  can ANYONE PLEAE help me here.  Does Tomcat need 
  to kill the Servlet session?  to know it needs to refresh the Browser?
  
  This is killing me here, Im desperate to get this resolved so 
  I can move forward with my app,  I thank you all for any help 
  you can give me
  Have a wonderful day, Merry Christmas
  
  Mike
  
 
 -
 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]



enabling jsp-debugging using lomboz, eclipse and tomcat 5.5.4

2004-11-24 Thread Timo . Roessner

hi, 

what i want to do is: 

i want to enable jsp-debugging in eclipse using lomboz on a tomcat 5.5.4
server, so i followed the steps on the objectlearn-website to achieve this. 
i changed the context path so every generated servlet goes into the /j2src
folder and i can set breakpoints, which is fine, but now i got a problem
which should not occur with tomcat 5 because it was a bug in tomcat 4. 

-- quote from the sysdeo website -- 

Known problem 1 : Tomcat 4 and JSP in project subdirectories 

Generated servlets for JSP couldn't be compile by Eclipse. Subdirectories do
not appear in Tomcat 4 generates servlets. Package definition is always
package org.apache.jsp. 

- end quote  

thats exactly the problem i got right now, package definition is always
org.apache.jsp, but there is no patch for this problem for tomcat 5, it isnt
even mentioned on the website for tomcat 5, 

so what is wrong and how can i change this? 


What i use: 
- eclipse Version: 3.0.0 
Build id: 200406251208 
- lomboz 3.0.0 
- tomcat 5.5.4 


thanks in advance, timo 

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



Re: Tomcat 5.5.4 and Log4j

2004-11-24 Thread Jacob Kjome

Look in the archives for another email from me.  The fact is that the logger
naming scheme used by Tomcat for its host and context logs is simply
incompatible with the DOMConfigurator.  This is because the XML files it
processes use the log4j.dtd which define the logger name attribute as an
ID.   The problem occurrs with the characters [, ], and /.  See the XML
spec (or my other email somewhere in the archives of Tomcat-user or log4j-user)
for details on legal characters for attributes of type ID.

There is hope coming in Log4j-1.3 which deprecates the DOMConfigurator in favor
of the JoranConfigurator which works with more free-form xml (not enforced by
DTD) configuration files.

However, your immediate solution is to use a log4j.properties file to configure
Tomcat-5.5.x logging.  Here's an example...


log4j.appender.A1=org.apache.log4j.ConsoleAppender
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%-5p[%-8.8t]: %39.39c %-6r - %m%n

log4j.appender.A2=org.apache.log4j.FileAppender
log4j.appender.A2.File=${catalina.home}/logs/stdout.log
log4j.appender.A2.Append=false
log4j.appender.A2.layout=org.apache.log4j.PatternLayout
log4j.appender.A2.layout.ConversionPattern=%-5p[%-8.8t]: %39.39c %-6r - %m%n

log4j.appender.LOCALHOST=org.apache.log4j.RollingFileAppender
log4j.appender.LOCALHOST.File=${catalina.home}/logs/localhost.log
log4j.appender.LOCALHOST.MaxFileSize=1000KB
log4j.appender.LOCALHOST.MaxBackupIndex=1
log4j.appender.LOCALHOST.layout=org.apache.log4j.PatternLayout
log4j.appender.LOCALHOST.layout.ConversionPattern=%-5p[%-8.8t]: %39.39c %-6r -
%m%n

log4j.appender.CONTEXT1=org.apache.log4j.DailyRollingFileAppender
log4j.appender.CONTEXT1.File=${catalina.home}/logs/localhost_context1.log
log4j.appender.CONTEXT1.DatePattern='.'-MM-dd
log4j.appender.CONTEXT1.layout=org.apache.log4j.PatternLayout
log4j.appender.CONTEXT1.layout.ConversionPattern=%c{1} %-6r - %m%n

log4j.appender.CONTEXT2=org.apache.log4j.DailyRollingFileAppender
log4j.appender.CONTEXT2.File=${catalina.home}/logs/localhost_context2.log
log4j.appender.CONTEXT2.DatePattern='.'-MM-dd
log4j.appender.CONTEXT2.layout=org.apache.log4j.PatternLayout
log4j.appender.CONTEXT2.layout.ConversionPattern=%c{1} %-6r - %m%n

log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/context1]=INFO,
CONTEXT1
log4j.additivity.org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/context1]=false

log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/conext2]=INFO,
CONTEXT2
log4j.additivity.org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/context2]=false

log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localhost]=INHERIT,
LOCALHOST
log4j.additivity.org.apache.catalina.core.ContainerBase.[Catalina].[localhost]=false

log4j.rootLogger=INFO, A1



Jake

Quoting Wouter De Vaal [EMAIL PROTECTED]:

 Hi,

 I'm having difficulties to configure log4j with tomcat logging per context.
 Here's what I have done:
 1. I've added log4j.jar to the bin dir
 2. I've created a log4j.xml in common/classes and added the log4j.dtd
 This seems to work, because when I add a debug logger for org.apache,
 I get a lot of extra logging lines in stdout.log.
 But now I have a new webapp called advertisements and this is de
 message that I get in de stdout.log:
 log4j:WARN No appenders could be found for logger

(org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/advertisements]).
 log4j:WARN Please initialize the log4j system properly.

 But when I add the logger with this name I get the following error:
 log4j:ERROR Parsing error on line 10 and column 100
 log4j:ERROR Attribute value

org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/advertisements]
 of type ID must be a name.

 So I guess log4j can't handle these names?

 I've also tried to use a log4j.properties (which also works when I add
 a debug logger for org.apache), but that doesn't work either, but this
 time I only get the first warning.

 My log4j.xml:
 ?xml version=1.0 encoding=UTF-8 ?
 !DOCTYPE log4j:configuration SYSTEM log4j.dtd
 log4j:configuration
!-- STDOUT: Outputs log information to the standard output/console --
appender name=STDOUT class=org.apache.log4j.ConsoleAppender
layout class=org.apache.log4j.PatternLayout
param name=ConversionPattern value=%d %-5p - %m%n/
/layout
/appender
logger

name=org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/advertisements]
level value=DEBUG/
appender-ref ref=STDOUT/
/logger
logger name=org.apache
level value=INFO/
appender-ref ref=STDOUT/
/logger
root
level value=ERROR/
/root
 /log4j:configuration

 alternative log4j.properties:
 log4j.rootLogger=ERROR, A1
 log4j.appender.A1=org.apache.log4j.ConsoleAppender
 log4j.appender.A1.layout=org.apache.log4j.PatternLayout

 # Print the date in ISO 8601 format
 

[OT] RE: Tomcat and Servlets - DESPERATE for help

2004-11-24 Thread Allistair Crossley
This sounds like the code building the initial page is also being sent down the 
reponse for some reason. Some code would be useful from the servlet.

This kind of thing normally requires using a RequestDispatcher or like ben 
says, sendRedirect.

Allistair 

 -Original Message-
 From: Michael McQuade [mailto:[EMAIL PROTECTED]
 Sent: 24 November 2004 15:31
 To: Tomcat Users List
 Subject: Tomcat and Servlets - DESPERATE for help
 
 
 Hi folks,  I pray someone can tell me something here.  Im 
 writing an application in Servlets using Tomcat  Heres my 
 scenario.
 
 I display a User Login screen,  ID and Password on an HTML 
 form,  user enters data,   the submit button executes the 
 program to verify the Users information  Obvioulsy if its 
 wrong,  it redisplays the screen,   or correct,  it carries 
 on into the application.  SO,  if the user info is 
 correct,   it CALLS another program to build and display the 
 users data, menu,  etc..
 
 This all works just fine,  EXCEPT.when it builds the new 
 User screen,   it is building it BELOW (i.e. same browser 
 page)  as the User Login screen.  Obviously this User 
 Login screen should be gone,  and I should just see the new 
 results
 
 Ok,   if the User validation process failed (i.e.  invalid id 
 or password)  my program just redisplays the log in screen,  
 well,   same happens,  a NEW login screen,  gets bulit below 
 the Original log in screen.
 
 can ANYONE PLEAE help me here.  Does Tomcat need 
 to kill the Servlet session?  to know it needs to refresh the Browser?
 
 This is killing me here, Im desperate to get this resolved so 
 I can move forward with my app,  I thank you all for any help 
 you can give me
 Have a wonderful day, Merry Christmas
 
 Mike
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: java.lang.NoClassDefFoundError

2004-11-24 Thread Shapira, Yoav

Hi,
The CLASSPATH environment variable is meaningless to Tomcat: it's
ignored.  You need to put the class (the compiled .class file) in
WEB-INF/classes, or a jar containing the class in WEB-INF/lib.  If you
just put the class in WEB-INF/classes, make sure to do so in the
appropriate subdirectory, e.g. WEB-INF/classes/net/sourceforge/jradius.
And make sure all its dependencies are available in the same repository
(WEB-INF/lib or WEB-INF/classes).

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: Mohamed Ganna [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 24, 2004 10:58 AM
To: [EMAIL PROTECTED]
Subject: java.lang.NoClassDefFoundError

Hi there,

I'm newbie to Tomcat. I'm using Tomcat 4.1.31 under Linux RedHat9.0,
and
I set up all the necessary CLASSPATH and sample servlets are running
great. I built up a Servlet for user's authentication using freeradius
0.9.2 and a Java based radius client (jradius-client). The servlet
works
fine with JSWDK + freeradius + jradius-client, but I wanted to encrypt
the information exchanged between the user's form and the webserver
using SSL (https based form), that I couldn't do with JSWDK. So, I've
installed tomcat and tried to use the same servlet (I've made all the
necessary changes in server.xml, I think so!!!). I've put my
ServletForm
class in $CATALINA_HOME$/webapps/ROOT/WEB-INF/classes and the html form
in $CATALINA_HOME$/webapps/ROOT/. I access the form using
https://localhost:8443/ (the form called index.html), but when running
the servlet I get this error:

java.lang.NoClassDefFoundError:
net/sourceforge/jradiusclient/RadiusAttribute
   at java.lang.Class.getDeclaredConstructors0(Native Method)
   at
java.lang.Class.privateGetDeclaredConstructors(Class.java:1610)
   at java.lang.Class.getConstructor0(Class.java:1922)
   at java.lang.Class.newInstance0(Class.java:278)
   at java.lang.Class.newInstance(Class.java:261)
   at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.ja
va:8
56)
   at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:
621)
   at
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet
.jav
a:369)
   at
org.apache.catalina.servlets.InvokerServlet.doPost(InvokerServlet.java:
169)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:716)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
   at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic
atio
nFilterChain.java:200)
   at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil
terC
hain.java:146)
   at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal
ve.j
ava:209)
   at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
keNext(StandardPipeline.java:596)
   at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
433)
   at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
   at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal
ve.j
ava:144)
   at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
keNext(StandardPipeline.java:596)
   at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.j
ava:
199)
   at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
keNext(StandardPipeline.java:594)
   at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
433)
   at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
   at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:23
58)
   at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav
a:13
3)
   at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
keNext(StandardPipeline.java:596)
   at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherV
alve
.java:118)
   at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
keNext(StandardPipeline.java:594)
   at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav
a:11
6)
   at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
keNext(StandardPipeline.java:594)
   at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
433)
   at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
   at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve
.jav
a:127)
   at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
keNext(StandardPipeline.java:596)
   at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
433)
   at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
   at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
  

Re: Tomcat and Servlets - DESPERATE for help

2004-11-24 Thread sven morales
  May I suggest the usage of Apache Axis tcpmon tool. 
This is an applet based tool.  Get hold of axis.jar
and put this on your classpath. Then launch it like so
in the same server as where Tomcat is running:
java -cp axis.jar org.apache.axis.utils.tcpmon 8081
localhost 8080
 This tool basically sits between your browser and
your Tomcat so that you can monitor what is being sent
by your browser and the response from the Tomcat. 
Good luck.


--- Michael McQuade [EMAIL PROTECTED] wrote:

 Hi folks,  I pray someone can tell me something
 here.  Im writing an application in Servlets
 using Tomcat  Heres my scenario.
 
 I display a User Login screen,  ID and Password on
 an HTML form,  user enters data,   the submit button
 executes the program to verify the Users
 information  Obvioulsy if its wrong,  it
 redisplays the screen,   or correct,  it carries on
 into the application.  SO,  if the user info is
 correct,   it CALLS another program to build and
 display the users data, menu,  etc..
 
 This all works just fine,  EXCEPT.when it builds
 the new User screen,   it is building it BELOW (i.e.
 same browser page)  as the User Login screen. 
 Obviously this User Login screen should be gone, 
 and I should just see the new results
 
 Ok,   if the User validation process failed (i.e. 
 invalid id or password)  my program just redisplays
 the log in screen,  well,   same happens,  a NEW
 login screen,  gets bulit below the Original log in
 screen.
 
 can ANYONE PLEAE help me here.  Does
 Tomcat need to kill the Servlet session?  to know it
 needs to refresh the Browser?
 
 This is killing me here, Im desperate to get this
 resolved so I can move forward with my app,  I thank
 you all for any help you can give me
 Have a wonderful day, Merry Christmas
 
 Mike




__ 
Do you Yahoo!? 
Read only the mail you want - Yahoo! Mail SpamGuard. 
http://promotions.yahoo.com/new_mail 

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



Re: [OT] Re: Tomcat and Servlets - DESPERATE for help

2004-11-24 Thread Michael McQuade
Ben,  I think it is a Tomcat specific subject,   Im just not sure what to do
about it,  Im thinking theres a variable in Tomcat maybe needs to be set,
or session refreshed, or something..


- Original Message - 
From: Ben Souther [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, November 24, 2004 11:08 AM
Subject: [OT] Re: Tomcat and Servlets - DESPERATE for help


 Hi,

 This is not a Tomcat specific question so I am marking the subject [OT].
 You may find more enthusiastic help in a JSP/Servlet list (a Google
 search will yield plenty of them).

 Have you considered using response.sendRedirect() to send the user to
 another page after a successful login?

 -Ben


 On Wed, 2004-11-24 at 10:31, Michael McQuade wrote:
  Hi folks,  I pray someone can tell me something here.  Im writing an
application in Servlets using Tomcat  Heres my scenario.
 
  I display a User Login screen,  ID and Password on an HTML form,  user
enters data,   the submit button executes the program to verify the Users
information  Obvioulsy if its wrong,  it redisplays the screen,   or
correct,  it carries on into the application.  SO,  if the user info is
correct,   it CALLS another program to build and display the users data,
menu,  etc..
 
  This all works just fine,  EXCEPT.when it builds the new User
screen,   it is building it BELOW (i.e. same browser page)  as the User
Login screen.  Obviously this User Login screen should be gone,  and I
should just see the new results
 
  Ok,   if the User validation process failed (i.e.  invalid id or
password)  my program just redisplays the log in screen,  well,   same
happens,  a NEW login screen,  gets bulit below the Original log in
screen.
 
  can ANYONE PLEAE help me here.  Does Tomcat need to kill the
Servlet session?  to know it needs to refresh the Browser?
 
  This is killing me here, Im desperate to get this resolved so I can move
forward with my app,  I thank you all for any help you can give me
  Have a wonderful day, Merry Christmas
 
  Mike


 -
 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: 5.5.4 SEVERE: Error unregistering mbean in stdout every 5-10 mins.

2004-11-24 Thread Shapira, Yoav

Hi,
Well, it was noted briefly and then forgotten in my flurry of fixing
things for 5.0.30.  Please open a Bugzilla item so that neither I nor
any other committers forget this again.  Thanks,

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 23, 2004 4:28 AM
To: Tomcat Users List
Subject: RE: 5.5.4 SEVERE: Error unregistering mbean in stdout every
5-10
mins.

Yoav,

Has this one been noted by your good self for invesigation or
propogation
to the appropriate place? It's still all over our logs.

Allistair

 -Original Message-
 From: Allistair Crossley
 Sent: 19 November 2004 14:47
 To: Tomcat Users List
 Subject: RE: 5.5.4 SEVERE: Error unregistering mbean in stdout every
 5-10 mins.


 Hi

 OK, ran an e-Load script covering home page (database query
 heavy), 2 navigations (medium) and 1 full text search. Under
 a load of 50 virtual users (started at same time) * 2
 iterations of the script, this produces more load then normal
 usage. No errors at all from the test Tomcat. Hm.

 Allistair.

  -Original Message-
  From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
  Sent: 19 November 2004 14:19
  To: Tomcat Users List
  Subject: RE: 5.5.4 SEVERE: Error unregistering mbean in stdout
every
  5-10 mins.
 
 
 
  Hi,
  The next step, then, is to run a stress test in your test
 environment.
  See if you get the same errors.
 
  Yoav Shapira http://www.yoavshapira.com
 
 
  -Original Message-
  From: Allistair Crossley [mailto:[EMAIL PROTECTED]
  Sent: Friday, November 19, 2004 8:45 AM
  To: Tomcat Users List
  Subject: RE: 5.5.4 SEVERE: Error unregistering mbean in
 stdout every
  5-10
  mins.
  
  Hi Yoav,
  
  Tomcat standalone no.
  
  IIS  Tomcat  SQL Server
Content Management System
  
  However, we have the same setup on test and production
  servers and test
  does not exhibit this behaviour, perhaps due to load, or so on I
  expect.
  
  Cheers, Allistair
  
   -Original Message-
   From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
   Sent: 19 November 2004 13:38
   To: Tomcat Users List
   Subject: RE: 5.5.4 SEVERE: Error unregistering mbean in
  stdout every
   5-10 mins.
  
  
  
   Hi,
   I think I already know the answer to this, but I'll ask
   anyways: does it
   happen with Tomcat standalone?  My guess is no.
  
   Yoav Shapira http://www.yoavshapira.com
  
  
   -Original Message-
   From: Allistair Crossley [mailto:[EMAIL PROTECTED]
   Sent: Friday, November 19, 2004 6:32 AM
   To: [EMAIL PROTECTED]
   Subject: 5.5.4 SEVERE: Error unregistering mbean in stdout
every
  5-10
   mins.
   
   Hi,
   
   Having run our web application on 5.5.4 for a couple of
  days, I have
   studied the stdout logs to find that we are getting
 severe errors
   relating
   to mbeans. Here are some time intervals:
   
   10:43
   11:10
   11:14
   11:24
   
   This time pattern stays fairly consistent as above.
   
   Each time the errors occur, they appear as a set as
 follows below.
   
   Can I do anything to prevent this?
   
   Cheers, Allistair.
   
   SEVERE: Error unregistering mbean
   javax.management.RuntimeOperationsException: Object name
   cannot be null
  at
   com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.isRegis
   tered(Defa
   ultM
   BeanServerInterceptor.java:545)
  at
   com.sun.jmx.mbeanserver.JmxMBeanServer.isRegistered(JmxMBeanS
   erver.java
   :619
   )
  at
   org.apache.commons.modeler.Registry.unregisterComponent(Regis
   try.java:6
   42)
  at
   org.apache.jk.common.ChannelSocket.processConnection(ChannelS
   ocket.java
   :706
   )
  at
  
 
org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
  at
   org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
   (ThreadPoo
   l.ja
   va:684)
  at java.lang.Thread.run(Thread.java:595)
   Caused by: java.lang.IllegalArgumentException: Object
  name cannot be
   null
  ... 7 more
   19-Nov-2004 10:43:47 org.apache.commons.modeler.Registry
   unregisterComponent
   SEVERE: Error unregistering mbean
   javax.management.RuntimeOperationsException: Object name
   cannot be null
  at
   com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.isRegis
   tered(Defa
   ultM
   BeanServerInterceptor.java:545)
  at
   com.sun.jmx.mbeanserver.JmxMBeanServer.isRegistered(JmxMBeanS
   erver.java
   :619
   )
  at
   org.apache.commons.modeler.Registry.unregisterComponent(Regis
   try.java:6
   42)
  at
   org.apache.jk.common.ChannelSocket.processConnection(ChannelS
   ocket.java
   :706
   )
  at
  
 
org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
  at
   org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
   (ThreadPoo
   l.ja
   va:684)
  at java.lang.Thread.run(Thread.java:595)
   Caused by: java.lang.IllegalArgumentException: Object
 

Re: [OT] Re: Tomcat and Servlets - DESPERATE for help

2004-11-24 Thread Ben Souther
On Wed, 2004-11-24 at 11:26, Michael McQuade wrote:
 Ben,  I think it is a Tomcat specific subject,   Im just not sure what to do
 about it,  Im thinking theres a variable in Tomcat maybe needs to be set,
 or session refreshed, or something..

If you want to paste the relevant part of your servlet code, I or
someone on the list will look at it but it doesn't sound like a Tomcat
issue to me. There are thousands of apps running under Tomcat that use
form based logins with no trouble.

Have you looked into response.sendRedirect or requestDispatchers for
moving your user to the relevant page after a login?


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



RE: OutOfMemory exceptions

2004-11-24 Thread Ryan Daly
I read in another thread about setting up one Tomcat instance per host. 
Is that something you'd recommend doing?  At least then a redeploy
wouldn't affect other webapps running on that same host...

Maybe this should be another thread if it gets much attention.
--

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



RE: 5.5.4 SEVERE: Error unregistering mbean in stdout every 5-10 mins.

2004-11-24 Thread Allistair Crossley
Hi, Bill already fixed it I think ..


Thanks for the report.
http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]msgNo=81697

Allistair Crossley [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
Yoav,

Has this one been noted by your good self for invesigation or propogation to 
the appropriate place? It's still all over our logs.


Allistair 

 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
 Sent: 23 November 2004 12:42
 To: Tomcat Users List
 Subject: RE: 5.5.4 SEVERE: Error unregistering mbean in stdout every
 5-10 mins.
 
 
 
 Hi,
 Well, it was noted briefly and then forgotten in my flurry of fixing
 things for 5.0.30.  Please open a Bugzilla item so that neither I nor
 any other committers forget this again.  Thanks,
 
 Yoav Shapira http://www.yoavshapira.com
  
 
 -Original Message-
 From: Allistair Crossley [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, November 23, 2004 4:28 AM
 To: Tomcat Users List
 Subject: RE: 5.5.4 SEVERE: Error unregistering mbean in stdout every
 5-10
 mins.
 
 Yoav,
 
 Has this one been noted by your good self for invesigation or
 propogation
 to the appropriate place? It's still all over our logs.
 
 Allistair
 
  -Original Message-
  From: Allistair Crossley
  Sent: 19 November 2004 14:47
  To: Tomcat Users List
  Subject: RE: 5.5.4 SEVERE: Error unregistering mbean in 
 stdout every
  5-10 mins.
 
 
  Hi
 
  OK, ran an e-Load script covering home page (database query
  heavy), 2 navigations (medium) and 1 full text search. Under
  a load of 50 virtual users (started at same time) * 2
  iterations of the script, this produces more load then normal
  usage. No errors at all from the test Tomcat. Hm.
 
  Allistair.
 
   -Original Message-
   From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
   Sent: 19 November 2004 14:19
   To: Tomcat Users List
   Subject: RE: 5.5.4 SEVERE: Error unregistering mbean in stdout
 every
   5-10 mins.
  
  
  
   Hi,
   The next step, then, is to run a stress test in your test
  environment.
   See if you get the same errors.
  
   Yoav Shapira http://www.yoavshapira.com
  
  
   -Original Message-
   From: Allistair Crossley [mailto:[EMAIL PROTECTED]
   Sent: Friday, November 19, 2004 8:45 AM
   To: Tomcat Users List
   Subject: RE: 5.5.4 SEVERE: Error unregistering mbean in
  stdout every
   5-10
   mins.
   
   Hi Yoav,
   
   Tomcat standalone no.
   
   IIS  Tomcat  SQL Server
 Content Management System
   
   However, we have the same setup on test and production
   servers and test
   does not exhibit this behaviour, perhaps due to load, or so on I
   expect.
   
   Cheers, Allistair
   
-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: 19 November 2004 13:38
To: Tomcat Users List
Subject: RE: 5.5.4 SEVERE: Error unregistering mbean in
   stdout every
5-10 mins.
   
   
   
Hi,
I think I already know the answer to this, but I'll ask
anyways: does it
happen with Tomcat standalone?  My guess is no.
   
Yoav Shapira http://www.yoavshapira.com
   
   
-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED]
Sent: Friday, November 19, 2004 6:32 AM
To: [EMAIL PROTECTED]
Subject: 5.5.4 SEVERE: Error unregistering mbean in stdout
 every
   5-10
mins.

Hi,

Having run our web application on 5.5.4 for a couple of
   days, I have
studied the stdout logs to find that we are getting
  severe errors
relating
to mbeans. Here are some time intervals:

10:43
11:10
11:14
11:24

This time pattern stays fairly consistent as above.

Each time the errors occur, they appear as a set as
  follows below.

Can I do anything to prevent this?

Cheers, Allistair.

SEVERE: Error unregistering mbean
javax.management.RuntimeOperationsException: Object name
cannot be null
 at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.isRegis
tered(Defa
ultM
BeanServerInterceptor.java:545)
 at
com.sun.jmx.mbeanserver.JmxMBeanServer.isRegistered(JmxMBeanS
erver.java
:619
)
 at
org.apache.commons.modeler.Registry.unregisterComponent(Regis
try.java:6
42)
 at
org.apache.jk.common.ChannelSocket.processConnection(ChannelS
ocket.java
:706
)
 at
   
  
 org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
 at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
(ThreadPoo
l.ja
va:684)
 at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.IllegalArgumentException: Object
   name cannot be
null
 ... 7 more
19-Nov-2004 10:43:47 org.apache.commons.modeler.Registry
unregisterComponent
SEVERE: Error unregistering mbean
javax.management.RuntimeOperationsException: Object name
cannot be null
 at

Re: java.lang.NoClassDefFoundError

2004-11-24 Thread Mohamed Ganna
Hi Yoav,
Thank's for your advice. I put the .jar in a WEB-INF/lib that I created 
and it's working.

Thank's for your help
NzM
Shapira, Yoav wrote:
Hi,
The CLASSPATH environment variable is meaningless to Tomcat: it's
ignored.  You need to put the class (the compiled .class file) in
WEB-INF/classes, or a jar containing the class in WEB-INF/lib.  If you
just put the class in WEB-INF/classes, make sure to do so in the
appropriate subdirectory, e.g. WEB-INF/classes/net/sourceforge/jradius.
And make sure all its dependencies are available in the same repository
(WEB-INF/lib or WEB-INF/classes).
Yoav Shapira http://www.yoavshapira.com
 

-Original Message-
From: Mohamed Ganna [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 24, 2004 10:58 AM
To: [EMAIL PROTECTED]
Subject: java.lang.NoClassDefFoundError
Hi there,
I'm newbie to Tomcat. I'm using Tomcat 4.1.31 under Linux RedHat9.0,
   

and
 

I set up all the necessary CLASSPATH and sample servlets are running
great. I built up a Servlet for user's authentication using freeradius
0.9.2 and a Java based radius client (jradius-client). The servlet
   

works
 

fine with JSWDK + freeradius + jradius-client, but I wanted to encrypt
the information exchanged between the user's form and the webserver
using SSL (https based form), that I couldn't do with JSWDK. So, I've
installed tomcat and tried to use the same servlet (I've made all the
necessary changes in server.xml, I think so!!!). I've put my
   

ServletForm
 

class in $CATALINA_HOME$/webapps/ROOT/WEB-INF/classes and the html form
in $CATALINA_HOME$/webapps/ROOT/. I access the form using
https://localhost:8443/ (the form called index.html), but when running
the servlet I get this error:
java.lang.NoClassDefFoundError:
net/sourceforge/jradiusclient/RadiusAttribute
	at java.lang.Class.getDeclaredConstructors0(Native Method)
	at
   

java.lang.Class.privateGetDeclaredConstructors(Class.java:1610)
 

	at java.lang.Class.getConstructor0(Class.java:1922)
	at java.lang.Class.newInstance0(Class.java:278)
	at java.lang.Class.newInstance(Class.java:261)
	at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.ja
   

va:8
 

56)
	at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:
   

621)
 

	at
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet
   

.jav
 

a:369)
	at
org.apache.catalina.servlets.InvokerServlet.doPost(InvokerServlet.java:
   

169)
 

	at javax.servlet.http.HttpServlet.service(HttpServlet.java:716)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic
   

atio
 

nFilterChain.java:200)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil
   

terC
 

hain.java:146)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal
   

ve.j
 

ava:209)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
   

invo
 

keNext(StandardPipeline.java:596)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
   

433)
 

	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal
   

ve.j
 

ava:144)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
   

invo
 

keNext(StandardPipeline.java:596)
	at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.j
   

ava:
 

199)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
   

invo
 

keNext(StandardPipeline.java:594)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
   

433)
 

	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
	at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:23
   

58)
 

	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav
   

a:13
 

3)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
   

invo
 

keNext(StandardPipeline.java:596)
	at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherV
   

alve
 

.java:118)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
   

invo
 

keNext(StandardPipeline.java:594)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav
   

a:11
 

6)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
   

invo
 

keNext(StandardPipeline.java:594)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
   

433)
 

	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve
   

.jav
 

a:127)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
   

invo
 

keNext(StandardPipeline.java:596)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
   

433)
 

	

enabling jsp-debugging using lomboz, eclipse and tomcat 5.5.4

2004-11-24 Thread Timo . Roessner
hi, 

what i want to do is: 

i want to enable jsp-debugging in eclipse using lomboz on a tomcat 5.5.4
server, so i followed the steps on the objectlearn-website to achieve this. 
i changed the context path so every generated servlet goes into the /j2src
folder and i can set breakpoints, which is fine, but now i got a problem
which should not occur with tomcat 5 because it was a bug in tomcat 4. 

-- quote from the sysdeo website -- 

Known problem 1 : Tomcat 4 and JSP in project subdirectories 

Generated servlets for JSP couldn't be compile by Eclipse. Subdirectories do
not appear in Tomcat 4 generates servlets. Package definition is always
package org.apache.jsp. 

- end quote  

thats exactly the problem i got right now, package definition is always
org.apache.jsp, but there is no patch for this problem for tomcat 5, it isnt
even mentioned on the website for tomcat 5, 

so what is wrong and how can i change this? 


What i use: 
- eclipse Version: 3.0.0 
Build id: 200406251208 
- lomboz 3.0.0 
- tomcat 5.5.4 


thanks in advance, timo 

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



RE: enabling jsp-debugging using lomboz, eclipse and tomcat 5.5.4

2004-11-24 Thread Allistair Crossley
if you post this one more time i will scream at you. if you do not get an 
answer, nobody knows the answer.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: 24 November 2004 17:01
 To: [EMAIL PROTECTED]
 Subject: enabling jsp-debugging using lomboz, eclipse and tomcat 5.5.4
 
 
 hi, 
 
 what i want to do is: 
 
 i want to enable jsp-debugging in eclipse using lomboz on a 
 tomcat 5.5.4
 server, so i followed the steps on the objectlearn-website to 
 achieve this. 
 i changed the context path so every generated servlet goes 
 into the /j2src
 folder and i can set breakpoints, which is fine, but now i 
 got a problem
 which should not occur with tomcat 5 because it was a bug in 
 tomcat 4. 
 
 -- quote from the sysdeo website -- 
 
 Known problem 1 : Tomcat 4 and JSP in project subdirectories 
 
 Generated servlets for JSP couldn't be compile by Eclipse. 
 Subdirectories do
 not appear in Tomcat 4 generates servlets. Package definition 
 is always
 package org.apache.jsp. 
 
 - end quote  
 
 thats exactly the problem i got right now, package definition 
 is always
 org.apache.jsp, but there is no patch for this problem for 
 tomcat 5, it isnt
 even mentioned on the website for tomcat 5, 
 
 so what is wrong and how can i change this? 
 
 
 What i use: 
 - eclipse Version: 3.0.0 
 Build id: 200406251208 
 - lomboz 3.0.0 
 - tomcat 5.5.4 
 
 
 thanks in advance, timo 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



AW: enabling jsp-debugging using lomboz, eclipse and tomcat 5.5.4

2004-11-24 Thread Timo . Roessner
yeah, sorry, i didnt do it deliberately, the problem was that when i send
the first, and after an hour the second
email, they didnt appear in my mailclient (and on the mailinglist?) after
two hours, so i thought they got lost
, so i send it the third time, and then all of the three appeared at the
same time in my mailclient, 
i surely didnt want to spam the mailinglist

-Ursprüngliche Nachricht-
Von: Allistair Crossley [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 24. November 2004 18:06
An: Tomcat Users List
Betreff: RE: enabling jsp-debugging using lomboz, eclipse and tomcat
5.5.4


if you post this one more time i will scream at you. if you do not get an
answer, nobody knows the answer.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: 24 November 2004 17:01
 To: [EMAIL PROTECTED]
 Subject: enabling jsp-debugging using lomboz, eclipse and tomcat 5.5.4
 
 
 hi, 
 
 what i want to do is: 
 
 i want to enable jsp-debugging in eclipse using lomboz on a 
 tomcat 5.5.4
 server, so i followed the steps on the objectlearn-website to 
 achieve this. 
 i changed the context path so every generated servlet goes 
 into the /j2src
 folder and i can set breakpoints, which is fine, but now i 
 got a problem
 which should not occur with tomcat 5 because it was a bug in 
 tomcat 4. 
 
 -- quote from the sysdeo website -- 
 
 Known problem 1 : Tomcat 4 and JSP in project subdirectories 
 
 Generated servlets for JSP couldn't be compile by Eclipse. 
 Subdirectories do
 not appear in Tomcat 4 generates servlets. Package definition 
 is always
 package org.apache.jsp. 
 
 - end quote  
 
 thats exactly the problem i got right now, package definition 
 is always
 org.apache.jsp, but there is no patch for this problem for 
 tomcat 5, it isnt
 even mentioned on the website for tomcat 5, 
 
 so what is wrong and how can i change this? 
 
 
 What i use: 
 - eclipse Version: 3.0.0 
 Build id: 200406251208 
 - lomboz 3.0.0 
 - tomcat 5.5.4 
 
 
 thanks in advance, timo 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


-
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: enabling jsp-debugging using lomboz, eclipse and tomcat 5.5.4

2004-11-24 Thread Allistair Crossley
kein Problem, alles gut. ;)

Allistair 

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: 24 November 2004 17:14
 To: [EMAIL PROTECTED]
 Subject: AW: enabling jsp-debugging using lomboz, eclipse and tomcat
 5.5.4
 
 
 yeah, sorry, i didnt do it deliberately, the problem was that 
 when i send
 the first, and after an hour the second
 email, they didnt appear in my mailclient (and on the 
 mailinglist?) after
 two hours, so i thought they got lost
 , so i send it the third time, and then all of the three 
 appeared at the
 same time in my mailclient, 
 i surely didnt want to spam the mailinglist
 
 -Ursprüngliche Nachricht-
 Von: Allistair Crossley [mailto:[EMAIL PROTECTED]
 Gesendet: Mittwoch, 24. November 2004 18:06
 An: Tomcat Users List
 Betreff: RE: enabling jsp-debugging using lomboz, eclipse and tomcat
 5.5.4
 
 
 if you post this one more time i will scream at you. if you 
 do not get an
 answer, nobody knows the answer.
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
  Sent: 24 November 2004 17:01
  To: [EMAIL PROTECTED]
  Subject: enabling jsp-debugging using lomboz, eclipse and 
 tomcat 5.5.4
  
  
  hi, 
  
  what i want to do is: 
  
  i want to enable jsp-debugging in eclipse using lomboz on a 
  tomcat 5.5.4
  server, so i followed the steps on the objectlearn-website to 
  achieve this. 
  i changed the context path so every generated servlet goes 
  into the /j2src
  folder and i can set breakpoints, which is fine, but now i 
  got a problem
  which should not occur with tomcat 5 because it was a bug in 
  tomcat 4. 
  
  -- quote from the sysdeo website -- 
  
  Known problem 1 : Tomcat 4 and JSP in project subdirectories 
  
  Generated servlets for JSP couldn't be compile by Eclipse. 
  Subdirectories do
  not appear in Tomcat 4 generates servlets. Package definition 
  is always
  package org.apache.jsp. 
  
  - end quote  
  
  thats exactly the problem i got right now, package definition 
  is always
  org.apache.jsp, but there is no patch for this problem for 
  tomcat 5, it isnt
  even mentioned on the website for tomcat 5, 
  
  so what is wrong and how can i change this? 
  
  
  What i use: 
  - eclipse Version: 3.0.0 
  Build id: 200406251208 
  - lomboz 3.0.0 
  - tomcat 5.5.4 
  
  
  thanks in advance, timo 
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
 FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
 ---
 QAS Ltd.
 Developers of QuickAddress Software
 a href=http://www.qas.com;www.qas.com/a
 Registered in England: No 2582055
 Registered in Australia: No 082 851 474
 ---
 /FONT
 
 
 -
 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: [OT] SCWCD Exam 1.4

2004-11-24 Thread Andoni
Hi,

That's strange: the Australians seem to think it's an SCWCD book here:

http://www.elx.com.au/item/0596005407

and yet the rest of the planet seems to think it's just your average
Servlet's and JSP book:

http://www.amazon.com/exec/obidos/ASIN/0596005407/qid%3D1101316503/sr%3D11-1/ref%3Dsr%5F11%5F1/104-2495694-9214342

http://www.buy4now.ie/Eason/productdetail.aspx?pid=1355175loc=Pcatid=1025.15

http://www.amazon.co.uk/exec/obidos/ASIN/0596005407/qid%3D1101316630/026-2276339-7082051

The Book Description section in Amazon is the exact the same as in the
Ozzie site! Is it just the same book with a different cover?

Andoni.


- Original Message - 
From: Allistair Crossley [EMAIL PROTECTED]
Newsgroups: gmane.comp.jakarta.tomcat.user
Sent: Wednesday, November 24, 2004 3:24 PM
Subject: RE: [OT] SCWCD Exam 1.4


 The one you found Head First Servlets and JSP appears to me not to be a
dedicated exam guide. I think the only reason it is mentioning you can even
take the exam if you want! is to sell copies. I could be wrong but I think
you'd be better waiting for a dedicated 1.4 exam guide.

 Allistair

  -Original Message-
  From: Andoni [mailto:[EMAIL PROTECTED]
  Sent: 24 November 2004 15:08
  To: Tomcat Users List
  Subject: Re: [OT] SCWCD Exam 1.4
 
 
  Hi,
 
  Thanks for that I found one which was printed in September.
  Here's it's
  ISBN:
  0596005407
  If you know of a reason I shouldn't buy this one and
  January's is better let
  me know. I'm always open to recommendations.
 
  Andoni.
 
  - Original Message - 
  From: Allistair Crossley [EMAIL PROTECTED]
  Newsgroups: gmane.comp.jakarta.tomcat.user
  Sent: Wednesday, November 24, 2004 11:50 AM
  Subject: RE: [OT] SCWCD Exam 1.4
 
 
   Yeah, there's a new book out in January 2005. Search Amazon
  for SCWCD.
  
   Allistair
  
-Original Message-
From: Andoni [mailto:[EMAIL PROTECTED]
Sent: 24 November 2004 10:35
To: Tomcat Users List
Subject: [OT] SCWCD Exam 1.4
   
   
Hello,
   
I know this is off topic but I was just wondering if anybody
had done either the new 1.4 version of the SCWCD Exam (Sun
Certified Web Component Developer) or the upgrade exam from 1.2.
   
If you have can you recommend any book or reference page. It
seems to be a bit new at the moment and nobody seems to have
gotten their act together on writing a book for it yet so all
there is to go on is the reference from SUN and looking
things up on the web.
   
Andoni.
   
  
  
   FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE
   ---
   QAS Ltd.
   Developers of QuickAddress Software
   a href=http://www.qas.com;www.qas.com/a
   Registered in England: No 2582055
   Registered in Australia: No 082 851 474
   ---
   /FONT
  
  
 
 
  -
  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 5 and Mail...

2004-11-24 Thread Shapira, Yoav

Hi,

 What Tomcat 5 version?

Apache Tomcat/5.0

Let's try again: which specific Tomcat 5 version, e.g. 5.0.28? ;)

The reason I ask is that I broke the MailSession factory in 5.0.25, so
if you're using that build AND a JNDI MailSession factory, that would
explain your problem.

Yoav




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


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



RE: Tomcat 5 and Mail...

2004-11-24 Thread Shapira, Yoav

Hi,
Well, let's try an even simpler scenario: test it without a
SecurityManager.

What Tomcat 5 version?

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: Quinton Delpeche [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 23, 2004 7:14 AM
To: [EMAIL PROTECTED]
Subject: Tomcat 5 and Mail...

Hey Everybody,

I picked up a funny.

Code that was working perfectly on Tomcat 4 now doesn't run on Tomcat 5
anymore, specifically the sending of the mail.

I have narrowed it down to this little piece of code:
CODE
   //Send the message.
   Transport.send(mesMailer);
/CODE

I checked my Catalina.policy file and made sure that this entry was
there:
CATALINA_POLICY
permission java.net.SocketPermission mail.server.name:25,
connect,resolve ;
/CATALINA_POLICY

This didn't work, so I added the following options to the
Catalina.policy
file
for each individual application running on the server:
CATALINA_POLICY
grant codeBase file:${catalina.home}/webapps/ROOT/- {
 permission java.net.SocketPermission 172.20.5.15:5432,
connect;
 permission java.net.SocketPermission smtp.vippayroll.co.za:25,
connect;
};

grant codeBase file:${catalina.home}/webapps/consulting/- {
 permission java.net.SocketPermission mail.server.name:25,
connect,resolve;
};

grant codeBase file:${catalina.home}/webapps/debtors/- {
 permission java.net.SocketPermission mail.server.name:25,
connect,resolve;
};

grant codeBase file:${catalina.home}/webapps/placements/- {
 permission java.net.SocketPermission mail.server.name:25,
connect,resolve;
};

grant codeBase file:${catalina.home}/webapps/sales/- {
  permission java.net.SocketPermission mail.server.name:25,
connect,resolve;
};

grant codeBase file:${catalina.home}/webapps/training/- {
 permission java.net.SocketPermission mail.server.name:25,
connect,resolve;
};
/CATALINA_POLICY

Am I missing something?
Is there something that has majorly changed between Tomcat 4 and Tomcat
5?

Please help. :)

Q
--
Quinton Delpeche
Internal Systems Developer
Softline VIP

Telephone: +27 12 420 7000
Direct:+27 12 420 7007
Facsimile: +27 12 420 7344

http://www.vippayroll.co.za/

Power, n:
   The only narcotic regulated by the SEC instead of the FDA.



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


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



RE: [OT] SCWCD Exam 1.4

2004-11-24 Thread Allistair Crossley
lol, interesting, different name for down under. Maybe it is good nuff then!

Allistair 

 -Original Message-
 From: Andoni [mailto:[EMAIL PROTECTED]
 Sent: 24 November 2004 17:19
 To: Tomcat Users List
 Subject: Re: [OT] SCWCD Exam 1.4
 
 
 Hi,
 
 That's strange: the Australians seem to think it's an SCWCD book here:
 
 http://www.elx.com.au/item/0596005407
 
 and yet the rest of the planet seems to think it's just your average
 Servlet's and JSP book:
 
 http://www.amazon.com/exec/obidos/ASIN/0596005407/qid%3D110131
 6503/sr%3D11-1/ref%3Dsr%5F11%5F1/104-2495694-9214342
 
 http://www.buy4now.ie/Eason/productdetail.aspx?pid=1355175loc
 =Pcatid=1025.15
 
 http://www.amazon.co.uk/exec/obidos/ASIN/0596005407/qid%3D1101
 316630/026-2276339-7082051
 
 The Book Description section in Amazon is the exact the 
 same as in the
 Ozzie site! Is it just the same book with a different cover?
 
 Andoni.
 
 
 - Original Message - 
 From: Allistair Crossley [EMAIL PROTECTED]
 Newsgroups: gmane.comp.jakarta.tomcat.user
 Sent: Wednesday, November 24, 2004 3:24 PM
 Subject: RE: [OT] SCWCD Exam 1.4
 
 
  The one you found Head First Servlets and JSP appears to 
 me not to be a
 dedicated exam guide. I think the only reason it is 
 mentioning you can even
 take the exam if you want! is to sell copies. I could be 
 wrong but I think
 you'd be better waiting for a dedicated 1.4 exam guide.
 
  Allistair
 
   -Original Message-
   From: Andoni [mailto:[EMAIL PROTECTED]
   Sent: 24 November 2004 15:08
   To: Tomcat Users List
   Subject: Re: [OT] SCWCD Exam 1.4
  
  
   Hi,
  
   Thanks for that I found one which was printed in September.
   Here's it's
   ISBN:
   0596005407
   If you know of a reason I shouldn't buy this one and
   January's is better let
   me know. I'm always open to recommendations.
  
   Andoni.
  
   - Original Message - 
   From: Allistair Crossley [EMAIL PROTECTED]
   Newsgroups: gmane.comp.jakarta.tomcat.user
   Sent: Wednesday, November 24, 2004 11:50 AM
   Subject: RE: [OT] SCWCD Exam 1.4
  
  
Yeah, there's a new book out in January 2005. Search Amazon
   for SCWCD.
   
Allistair
   
 -Original Message-
 From: Andoni [mailto:[EMAIL PROTECTED]
 Sent: 24 November 2004 10:35
 To: Tomcat Users List
 Subject: [OT] SCWCD Exam 1.4


 Hello,

 I know this is off topic but I was just wondering if anybody
 had done either the new 1.4 version of the SCWCD Exam (Sun
 Certified Web Component Developer) or the upgrade 
 exam from 1.2.

 If you have can you recommend any book or reference page. It
 seems to be a bit new at the moment and nobody seems to have
 gotten their act together on writing a book for it yet so all
 there is to go on is the reference from SUN and looking
 things up on the web.

 Andoni.

   
   
FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT
   
   
  
  
   
 -
   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: [OT] Re: Tomcat and Servlets - DESPERATE for help

2004-11-24 Thread Dennis Payne
If you are using a single servlet to determine the course of action and
those actions are not mutually exclusive (like using a switch or
if...else if structure) then something like this could definitely
happen.  Check your code...  I am sure it is allowing two things to
happen at once because it is satisfying the criteria of both.  Tomcat
really does not care whether your servlet sends back one page or two
pages at once.  In the process, you may wish to re-consider your
architecture if it is that hard to debug.

Best Wishes!

 [EMAIL PROTECTED] 11-24-2004 09:40 
On Wed, 2004-11-24 at 11:26, Michael McQuade wrote:
 Ben,  I think it is a Tomcat specific subject,   Im just not sure
what to do
 about it,  Im thinking theres a variable in Tomcat maybe needs to be
set,
 or session refreshed, or something..

If you want to paste the relevant part of your servlet code, I or
someone on the list will look at it but it doesn't sound like a Tomcat
issue to me. There are thousands of apps running under Tomcat that use
form based logins with no trouble.

Have you looked into response.sendRedirect or requestDispatchers for
moving your user to the relevant page after a login?


-
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: [OT] SCWCD Exam 1.4

2004-11-24 Thread Andoni
Hi,

even check out the two covers:
http://www.elx.com.au/images/products/full/0596005407.jpg
and
http://images-eu.amazon.com/images/P/0596005407.02.LZZZ.jpg

I think it may be the other way around. They may be trying to get people who
are not necessarily doing the exam to buy a copy of their book. I must admit
when I first started with JSP and Servlets I would not have bought a SCWCD
book even though it probably has everything I'd have wanted and more.

Andoni.


- Original Message - 
From: Allistair Crossley [EMAIL PROTECTED]
Newsgroups: gmane.comp.jakarta.tomcat.user
Sent: Wednesday, November 24, 2004 5:32 PM
Subject: RE: [OT] SCWCD Exam 1.4


 lol, interesting, different name for down under. Maybe it is good nuff
then!

 Allistair

  -Original Message-
  From: Andoni [mailto:[EMAIL PROTECTED]
  Sent: 24 November 2004 17:19
  To: Tomcat Users List
  Subject: Re: [OT] SCWCD Exam 1.4
 
 
  Hi,
 
  That's strange: the Australians seem to think it's an SCWCD book here:
 
  http://www.elx.com.au/item/0596005407
 
  and yet the rest of the planet seems to think it's just your average
  Servlet's and JSP book:
 
  http://www.amazon.com/exec/obidos/ASIN/0596005407/qid%3D110131
  6503/sr%3D11-1/ref%3Dsr%5F11%5F1/104-2495694-9214342
 
  http://www.buy4now.ie/Eason/productdetail.aspx?pid=1355175loc
  =Pcatid=1025.15
 
  http://www.amazon.co.uk/exec/obidos/ASIN/0596005407/qid%3D1101
  316630/026-2276339-7082051
 
  The Book Description section in Amazon is the exact the
  same as in the
  Ozzie site! Is it just the same book with a different cover?
 
  Andoni.
 
 
  - Original Message - 
  From: Allistair Crossley [EMAIL PROTECTED]
  Newsgroups: gmane.comp.jakarta.tomcat.user
  Sent: Wednesday, November 24, 2004 3:24 PM
  Subject: RE: [OT] SCWCD Exam 1.4
 
 
   The one you found Head First Servlets and JSP appears to
  me not to be a
  dedicated exam guide. I think the only reason it is
  mentioning you can even
  take the exam if you want! is to sell copies. I could be
  wrong but I think
  you'd be better waiting for a dedicated 1.4 exam guide.
  
   Allistair
  
-Original Message-
From: Andoni [mailto:[EMAIL PROTECTED]
Sent: 24 November 2004 15:08
To: Tomcat Users List
Subject: Re: [OT] SCWCD Exam 1.4
   
   
Hi,
   
Thanks for that I found one which was printed in September.
Here's it's
ISBN:
0596005407
If you know of a reason I shouldn't buy this one and
January's is better let
me know. I'm always open to recommendations.
   
Andoni.
   
- Original Message - 
From: Allistair Crossley [EMAIL PROTECTED]
Newsgroups: gmane.comp.jakarta.tomcat.user
Sent: Wednesday, November 24, 2004 11:50 AM
Subject: RE: [OT] SCWCD Exam 1.4
   
   
 Yeah, there's a new book out in January 2005. Search Amazon
for SCWCD.

 Allistair

  -Original Message-
  From: Andoni [mailto:[EMAIL PROTECTED]
  Sent: 24 November 2004 10:35
  To: Tomcat Users List
  Subject: [OT] SCWCD Exam 1.4
 
 
  Hello,
 
  I know this is off topic but I was just wondering if anybody
  had done either the new 1.4 version of the SCWCD Exam (Sun
  Certified Web Component Developer) or the upgrade
  exam from 1.2.
 
  If you have can you recommend any book or reference page. It
  seems to be a bit new at the moment and nobody seems to have
  gotten their act together on writing a book for it yet so all
  there is to go on is the reference from SUN and looking
  things up on the web.
 
  Andoni.
 


 FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE
 ---
 QAS Ltd.
 Developers of QuickAddress Software
 a href=http://www.qas.com;www.qas.com/a
 Registered in England: No 2582055
 Registered in Australia: No 082 851 474
 ---
 /FONT


   
   
   
  -
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: [OT] SCWCD Exam 1.4

2004-11-24 Thread Mike Curwen
 -Original Message-
 From: Allistair Crossley [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, November 24, 2004 9:25 AM
 To: Tomcat Users List
 Subject: RE: [OT] SCWCD Exam 1.4
 
 
 The one you found Head First Servlets and JSP appears to me 
 not to be a dedicated exam guide. I think the only reason it 
 
Not sure what copy you're looking at.  Mine has a black bar across the top
that say ... Study Guide
 
The subtitle of the book is Passing the Sun Certified Web Component
Developer Exam
 
and it mentions on the cover that it is Written by the co-developers of the
real SCWCD exam for J2EE 1.4.
 




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



RE: [OT] SCWCD Exam 1.4

2004-11-24 Thread Mike Curwen
I'd be completely remiss in not mentioning that Manning is putting out a
second edition of it's SCWCD study guide.  The second edition has been
updated for the new exam.

Manning's ISBN is 1932394389 (that's the one scheduled for January)

HeadFirst is 0596005407  (the one out now)

both of them cover the new exam.



 -Original Message-
 From: Mike Curwen [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, November 24, 2004 11:49 AM
 To: 'Tomcat Users List'
 Subject: RE: [OT] SCWCD Exam 1.4
 
 
  -Original Message-
  From: Allistair Crossley [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, November 24, 2004 9:25 AM
  To: Tomcat Users List
  Subject: RE: [OT] SCWCD Exam 1.4
  
  
  The one you found Head First Servlets and JSP appears to me
  not to be a dedicated exam guide. I think the only reason it 
  
 Not sure what copy you're looking at.  Mine has a black bar 
 across the top that say ... Study Guide
  
 The subtitle of the book is Passing the Sun Certified Web 
 Component Developer Exam
  
 and it mentions on the cover that it is Written by the 
 co-developers of the real SCWCD exam for J2EE 1.4.
  
 
 
 
 
 -
 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]



Slashdot article - Cross-Platform Java Sandbox Exploit

2004-11-24 Thread sven morales
Is Tomcat affected by such? or is this a just a FUD?
the link to the article is:
http://slashdot.org/article.pl?sid=04/11/24/1323228from=rss

Sorry, I do not want to create FUD myself. I just dont
understand what a sandbox is.



__ 
Do you Yahoo!? 
Meet the all-new My Yahoo! - Try it today! 
http://my.yahoo.com 
 


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



RE: Slashdot article - Cross-Platform Java Sandbox Exploit

2004-11-24 Thread Shapira, Yoav

Hi,
The thread is client-side, has nothing to do with Tomcat.  Whether it's
FUD or not is gray area, as are most such things, but please mark
further discussion with [OFF-TOPIC] in the subject, if you choose to
continue discussion on this list at all.  Thanks,

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: sven morales [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 24, 2004 1:08 PM
To: [EMAIL PROTECTED]
Subject: Slashdot article - Cross-Platform Java Sandbox Exploit

Is Tomcat affected by such? or is this a just a FUD?
the link to the article is:
http://slashdot.org/article.pl?sid=04/11/24/1323228from=rss

Sorry, I do not want to create FUD myself. I just dont
understand what a sandbox is.



__
Do you Yahoo!?
Meet the all-new My Yahoo! - Try it today!
http://my.yahoo.com



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




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


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



Class Loader Crazy!!!

2004-11-24 Thread Regis Santos
Hello everbody,

I've read in Tomcat 5 Docs that when a web application needs a class or a 
resource, the Class Loader looks in the following repositories, in this order:

- Bootstrap classes of your JVM 
- System class loader classses (described above) 
- /WEB-INF/classes of your web application 
- /WEB-INF/lib/*.jar of your web application 
- $CATALINA_HOME/common/classes 
- $CATALINA_HOME/common/endorsed/*.jar 
- $CATALINA_HOME/common/lib/*.jar 
- $CATALINA_BASE/shared/classes 
- $CATALINA_BASE/shared/lib/*.jar 

Recently, I copied a web application (called W1) from a Tomcat 4.0.18 to a 
Tomcat 5.0.28 and in the W1/WEB-INF/lib folder had two common JAR files: 
jasper-runtime.jar and jasper-compile.jar, both from Tomcat 4.x version.

Then, I started the server (Tomcat 5) and the application W1. After that, I 
deployed a second web application (called W2) that was devolped using the new 
JSP spec (it means that I've written my JSP's with EL - Expression Language). 
In the W2/WEB-INF/lib folder, there wasn't any jasper-*.jar. My objective was 
to use the jasper-runtime.jar and the jasper-compile.jar from the common/lib 
folder.

When I tried to access the W2 application... CRASH (See the details below)

004-11-23 15:17:40 StandardWrapperValve[action]: Servlet.service() for servlet 
action threw exception
java.lang.AbstractMethodError: 
javax.servlet.jsp.PageContext.getVariableResolver()Ljavax/servlet/jsp/el/VariableResolver;
at 
org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:899)
at 
org.apache.jsp.pages.index_jsp._jspx_meth_html_html_0(index_jsp.java:99)
at org.apache.jsp.pages.index_jsp._jspService(index_jsp.java:66)
at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
...

After that, I undeployed the W1 application and removed the files (include the 
JARs from the WEB-INF/lib folder and... TADA!!! The W2 application worked.

I know that the JARs was the problem and that they are not compatible with the 
JARs from the Tomcat 5 commom/lib folder. 

My question is: Why didn't Tomcat load the class from jasper-runtime.jar in the 
common/lib folder when I tried to access the W2 app? Should not Tomcat isolate 
the libs from a webapp, making the classes accessible only for that application?

Thanks!
Regis Santos

 


locale-encoding-mapping not working?

2004-11-24 Thread Ralf Hauser
Hi all,

I am trying to use locale-encoding-mapping in my web.xml to set the encoding
of the HTTP-HEADER my tomcat 5.0.28 serves to utf-8.
One option is certainly to set that in each jsp individually, but from
reading e.g. slide 8 of
http://www.javapassion.com/j2eeadvanced/Servlet2.4Enhancements_speakernoted.
pdf , I get the impression that this should be doable for my entire web-app
via the web.xml, i.e. its locale-encoding-mapping attributes. I tried this
in many variants (details in
http://issues.apache.org/bugzilla/show_bug.cgi?id=32296), but with no
success.
Reading the mailing-list, it appears that others were not successful either:
  http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg106065.html
  http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg105678.html

Therefore my question - did anybody manage to have such attributes show an
effect?

One speculation from my part is that the defaults for the character
encodings are present hard-coded at least twice in the code and even if
web.xml gets processed, it gets overwritten afterwards again:
 - CharsetMapperDefault.properties has it and
 - LocaleToCharsetMap.java as well

Couldn't this redundancy be a source of errors?

Any hints would be highly appreciated!

Ralf


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



Re: Class Loader Crazy!!!

2004-11-24 Thread Tim Funk
jasper-compile.jar is not meant to be copied.
jasper-runtime.jar is for use when you precompile your jsp's so they may be 
used in any container (including a newer tomcat version)

If you precompile your jsp's against tomcat 4 - they will run fine in tomcat 
5 if you copy jasper-runtime.jar into WEB-INF/lib.

If you try to copy the tomcat 4 libs into WEB-INF/lib for a tomcat5 
installation and try to compile at runtime a JSP  - bad things will happen.

-Tim
Regis Santos wrote:
Hello everbody,
I've read in Tomcat 5 Docs that when a web application needs a class or a 
resource, the Class Loader looks in the following repositories, in this order:
- Bootstrap classes of your JVM 
- System class loader classses (described above) 
- /WEB-INF/classes of your web application 
- /WEB-INF/lib/*.jar of your web application 
- $CATALINA_HOME/common/classes 
- $CATALINA_HOME/common/endorsed/*.jar 
- $CATALINA_HOME/common/lib/*.jar 
- $CATALINA_BASE/shared/classes 
- $CATALINA_BASE/shared/lib/*.jar 

Recently, I copied a web application (called W1) from a Tomcat 4.0.18 to a 
Tomcat 5.0.28 and in the W1/WEB-INF/lib folder had two common JAR files: 
jasper-runtime.jar and jasper-compile.jar, both from Tomcat 4.x version.
Then, I started the server (Tomcat 5) and the application W1. After that, I 
deployed a second web application (called W2) that was devolped using the new 
JSP spec (it means that I've written my JSP's with EL - Expression Language). 
In the W2/WEB-INF/lib folder, there wasn't any jasper-*.jar. My objective was 
to use the jasper-runtime.jar and the jasper-compile.jar from the common/lib 
folder.
When I tried to access the W2 application... CRASH (See the details below)
004-11-23 15:17:40 StandardWrapperValve[action]: Servlet.service() for servlet 
action threw exception
java.lang.AbstractMethodError: 
javax.servlet.jsp.PageContext.getVariableResolver()Ljavax/servlet/jsp/el/VariableResolver;
at 
org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:899)
at 
org.apache.jsp.pages.index_jsp._jspx_meth_html_html_0(index_jsp.java:99)
at org.apache.jsp.pages.index_jsp._jspService(index_jsp.java:66)
at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
...
After that, I undeployed the W1 application and removed the files (include the 
JARs from the WEB-INF/lib folder and... TADA!!! The W2 application worked.
I know that the JARs was the problem and that they are not compatible with the JARs from the Tomcat 5 commom/lib folder. 

My question is: Why didn't Tomcat load the class from jasper-runtime.jar in the common/lib folder when I tried to access the W2 app? Should not Tomcat isolate the libs from a webapp, making the classes accessible only for that application?

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


Re: SSL and form-based login

2004-11-24 Thread footh
Great.  Thank you both for your help.

I will do a bunch of research on Apache and try to get
my site similarly configured.

It definitely seems a lot easier than the options I
was considering.

Regards,

JF

--- Charles Daniel [EMAIL PROTECTED] wrote:

 
 
 From: [EMAIL PROTECTED]
 Reply-To: Tomcat Users List
 [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: SSL and form-based login
 Date: Wed, 24 Nov 2004 01:11:11 -0600
 
 On Tue, Nov 23, 2004 at 01:20:16PM -0800, footh
 wrote:
However, if the original page is http and the
 login
form is submitted
with https then it works fine.  That seems
 like an
explicit constraint that
tomcat enforces, but I can't find where in the
authentication code it does
that.  Of course, encrypting other requests
 and not
the login page is a
pretty stupid thing to do. :)
  
   You kind of lost me here...sorry if I'm being
 dense.
  
   So you are saying the only way to have a link
 within
   an SSL page go to non-SSL is either to hardcode
 the
   entire URL in the link or have all the links
 flow
   through a page that forces a redirect to the
 requested
   URL with non-SSL?
 
  uh.. what you just said is true, but it wasn't the
 point I
 was making above.  I was talking about the behavior
 of tomcat
 with respect to how and when it saves the original
 url when
 it needs to display the login form.  For a new
 session, the
 first request the browser makes to a protected
 causes that
 url to be stored in the session, but that value
 isn't always
 available to subsequent requests if the protocol is
 different.
 
   Now that I think about it, most (if not all) of
 my
   non-SSL links are in include files.  So, it is
 easy
   enough to just place the full link in there. 
 What
   bugs me is I've seen other sites with relative
 links
   on SSL pages that go to the non-SSL version
 (even when
   you hover over the link and your browser claims
 it is
   going to https).  Using full links will be a
 pain too
   for maintaining production and development
   environments.  Ugh...
 
  as Carl Howells mentioned in a different message,
 this
 could be done with a filter.  Or you could write a
 javascript
 function that runs when the body onload happens
 that goes and
 and rewrites the urls of all the links on the page.
  (or if
 you want to be evil, leaves the urls alone but sets
 onclick
 handlers that redirect the browser directly.)
 
 eric
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 
 You say some sites have links within their SSL pages
 that navigate to 
 Non-SSL destinations.  This can be accomplished by
 using the rewrite 
 capabilities of some web servers.  In my case I have
 used Apache's 
 mod_rewrite to enforce those rules in the past.
 
 Let's say I have a page called registration.jsp
 under 
 $CATALINA_HOME/webapps/myhost that I want to be SSL
 encrypted.  One problem 
 is that the user can bypass encryption by passing
 the URL 
 http://www.myhost.com/registration.jsp.  I need some
 way to force the user 
 to use https for the registration.jsp page and
 others like it.  Likewise, I 
 want pages that don't require SSL to be rewritten as
 
 http://something/something.jsp.  I can create
 Apache rewriting rules for 
 either case.
 
 For a period of time I used Apache's mod_rewrite. 
 The module compares the 
 URL it receives to a list of wildcards that the
 admin defines in the rules 
 section of the server's config file.  In my case,
 any URL containing the 
 word register, would be rewritten as
 https://something/register.jsp.  
 So even if you had a relative page link like
 'href=register.jsp', 
 mod_rewrite would convert it to the https equiv
 before the webserver 
 processed it.  In a sense this URL rewritting had
 the same effect as 
 redirection.
 
 Also look into the MVC design archictecture for your
 applications. That is 
 the Model, View, Controller architecture.  Many
 sites designate one or more 
 JSPs as a controller only page.  This controller
 doesn't display any output. 
   It's only function is to receive requests from the
 other JSPs on your site 
 and forward them on to their proper destinations
 utilizing jsp:forward 
 tags.  In this way all of the discision making can
 be centralized into one 
 controller.  This simplifies the functions of the
 other JSPs by removing 
 decision making logic from them.  So page links,
 submits, imagemaps, inputs, 
 selects and the like are simply passing requests to
 the controller JSP.
 
 Consider the following links:
 
 href=control.jsp?operation=login
 href=control.jsp?operation=register
 
 The control.jsp file will receive the request and
 examine the parameter 
 called operation.  Embedded JSP scriptlettes will
 decide (usually via 
 if..then..else logic) what to do next. Since
 operations like logging in and 
 registering need to be 

  1   2   >