deploy fails

2005-12-20 Thread Nehal Sangoi

Hi,

Below is the build.xml and build.properties files i am using for my app
deployments.
Tomcat 5.5.9
Using Tomcat Virtual Instance
Platform - Solaris/Linux
Manager Deployer used

When i do execute the ant command (ant -f abc.xml), it gives me follwoing
output. What could be the possible reason for such error and failure in
deployments?

Response to my query would be highly appreciated.

Thanks & Regards,
Nehal



clean_dest:
   [delete] Deleting directory /appl/abc/deploy/WAR
[mkdir] Created dir: /appl/abc/deploy/WAR

copy_code_to_dest:
 [copy] Copying 94 files to /appl/abc/deploy/WAR
 [copy] Copying 142 files to /appl/abc/deploy/WAR/WEB-INF/src
 [copy] Copying 6 files to /appl/abc/deploy/WAR/WEB-INF/lib
   [delete] Deleting directory /appl/abc/deploy/CVS
   [delete] Deleting: /appl/abc/deploy/WAR/WEB-INF/lib/expd2util.jar

clean_classes:
[mkdir] Created dir: /appl/abc/deploy/WAR/WEB-INF/classes

compile_java_code:
[javac] Compiling 136 source files to
/appl/abc/deploy/WAR/WEB-INF/classes
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
 [copy] Copying 6 files to /appl/bcp/deploy/WAR/WEB-INF/classes

create_war:
  [war] Building war: /appl/abc/deploy/WAR/bcp.war
  [war] Warning: selected war files include a WEB-INF/web.xml which will
be ignored (please use webxml attribute to war task)

deploy:

BUILD FAILED
/appl/abc/deploy/build/bcp.xml:87: java.io.FileNotFoundException:
http://3.160.228.52:7451/manager/deploy?path=%2Fabc&update=true


===
BUILD FILE




   


  

  
  http://ipaddr:port/manager"/>
  
  

  
  
  
  
  
  
  
  
  

   
   
  
   
   
  
   





   








































  
  














--More--








=
PROPERTIES FILE


project.name=abc

# java properties
java.src.dir=/appl/abc/deploy/WAR/WEB-INF/src
java.lib.dir=/appl/abc/deploy/WAR/WEB-INF/lib
java.classes.dir=/appl/bcp/deploy/WAR/WEB-INF/classes

#destination properties
war.dir=/appl/abc/deploy/WAR
source.dir=/appl/abc/deploy/CVS/tomcat
war.name=abc.war

#cvs properties
cvs.root=:pserver:uid:[EMAIL PROTECTED]:cvs-path
cvs.module=abc/tomcat
cvs.tag=
cvs.dir=/appl/abc/deploy/CVS

#tomcat properties
common.lib.dir=/appl/abc/shared/lib


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



Re: How to make a redirector?

2005-12-20 Thread Seak, Teng-Fong

Caldarale, Charles R wrote:

From: Seak, Teng-Fong [mailto:[EMAIL PROTECTED] 
Subject: How to make a redirector?


   I've seen some URL which contains two URL's, something like
http://www.siteA.com/x/http://www.siteB.com/some/path/here/
   



Are you sure you're not missing a rather important "?" between the siteA
URL and the one for siteB?  The presence of the "?" indicates the second
URL is treated as a parameter for whatever processes the first one; a
simple forwarding filter, servlet, or jsp would then suffice.

- Chuck
 


   In some sites that I've come across, there's no "?".

   Actually, after some thinking, I know what I wanted is called.  It's 
simply a proxy :D  So I think I just need a proxy, no need to programme 
Tomcat to act like this.


   Thanks for the replies :)

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



Re: access denied to Tomcat manager

2005-12-20 Thread vineesh kumar
you may not have access permission to the directory containing the
manager utils, check the permission of the directory webapps an others

On 12/21/05, Ariel Pashtan <[EMAIL PROTECTED]> wrote:
> Hi,
>
>
>
> For some reason I cannot access the Tomcat Manager application from the
> Tomcat home page.
>
> While I can access Tomcat Administration, access to the manager is denied:
>
> "HTTP Status 403 - Access to the requested resource has been denied"
>
>
>
> Any suggestions on how to resolve this?
>
> Thanks for your help!
>
>
>
> Ariel
>
>
>
>
>
>
>

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



access denied to Tomcat manager

2005-12-20 Thread Ariel Pashtan
Hi,

 

For some reason I cannot access the Tomcat Manager application from the
Tomcat home page. 

While I can access Tomcat Administration, access to the manager is denied:

"HTTP Status 403 - Access to the requested resource has been denied"

 

Any suggestions on how to resolve this?

Thanks for your help!

 

Ariel

 

 



Re: Apache Portable Runtime not found on the java.library.path, resolved

2005-12-20 Thread William Claxton

At 02:46 AM 12/21/2005, Adam Constabaris wrote:

FTP wrote:

I face the same problem with:
Tomcat 5.5.12
jdk: 1.5.06
and cannot find the library you suggest in order to include it!


APR integration isn't yet fully part of the Tomcat distribution, as 
far as I can tell (I think it's misleading of them to enable the APR 
listener on startup, because it makes you think you're supposed to use it).


I'm not sure how stable the Tomcat developers consider the APR 
integration, so if you're at all concerned about that, it's probably 
easier to just comment out the Listener instead.


If you want to use the APR libraries, first read 
http://tomcat.apache.org/tomcat-5.5-doc/apr.html to see if there are 
precompiled binaries for your platform (Windows only, AFAICT).  If not,


(a) install APR (http://apr.apache.org); if you use Linux, your 
distribution may ship the APR in a package.


(b) compile libtcnative-1.so by unpacking 
$TOMCAT_HOME/bin/tomcat-native.tar.gz and following (most of) the 
instructions there; NOTE if you don't need openSSL support, be 
warned that --without-ssl switch did not work for me with 
tomcat-native-1.1.0 (ships with 5.5.12; 1.1.1 with 5.5.14-beta did 
honor that switch).


HTH

AC



Thank you all.  I was able to recreate and resolve the problem on 
another machine (not the production server).  Here's the procedure I followed.


1. Clean install of JRE 1.4.2_03. This is intentionally an older 
version to recreate environment on the production machine.


2. Clean install of Tomcat 5.5.14.
During installation, initially encountered the error: "Failed to 
install Tomcat 5 service. Check your settings and permissions".  This 
was due to fact that, after uninstalling previous version of Tomcat, 
the Windows service was marked for deletion but not removed.  I ran 
the INSTSRV utility to remove the service, but it 
failed.  Apparently, this issue was encountered only because the 
Windows Services manager was open on the desktop.  After closing and 
reopening, the service was gone, and Tomcat could install normally.


3. Starting Tomcat encounter the JVM error:
"This release of Apache Tomcat was packaged to run on J2SE 5.0 or 
later. It can be run on earlier JVMs by downloading and installing a 
compatibility package from the Apache Tomcat binary download page."


4. Deployed the compatability patch (by copying the files into Tomcat 
'bin' and 'common' folders).


5. Restarting Tomcat encountered the APR error:
"The Apache Tomcat Native library which allows optimal performance in 
production environments was not found on the java.library.path".


6. Edited Tomcat 'server.xml' (in the 'conf' folder).  Removed the line:
  

7. Restarting Tomcat, everything works fine!




Regards, Bill Claxton ([EMAIL PROTECTED])
MSN: [EMAIL PROTECTED]
Skype: [EMAIL PROTECTED]
Blog: http://learningweb.blogspot.com


Re: Invoking webservice from servlet

2005-12-20 Thread Lincoln Dalgado
 Thanks Prasad.

I just added the servers certificate to
"C:\ProgramFiles\Java\j2re1.4.2_05\lib\security\cacerts"And the ssl
validation exception disappeared.It looks like tomcat uses different
keystores when it is started as service as opposed to it being started with
startup.bat
Note that I had earlier added the servers certificate to
C:\JDK1.4\jre\lib\security\cacerts because of which the application was
working fine with startup.bat

-- Lincoln


On 12/21/05, Prasad <[EMAIL PROTECTED]> wrote:
>
> Lincoln Dalgado wrote:
>
> >Hi,
> >
> >I am invoking a SSL based web service from inside a servlet.
> >
> >The service is invoked successfully when I use startup.bat to start
> tomcat.
> >
> >However if I start tomcat as a service, I get a
> >
> >Caused by: sun.security.validator.ValidatorException: No trusted
> certificate
> >found
> >
> >at sun.security.validator.SimpleValidator.buildTrustedChain(Unknown
> Source)
> >
> >And idea what might be causing this to happen?
> >
> >Thanks,
> >
> >Lincoln
> >
> >
> >
> I think by starting TC as a service you are running it with a null
> session i.e. no particular user account in action but local system
> account.
> If that is the case, then it might be an issue with finding proper
> Keystore that otherwise would be located in the current users home
> directory.
>
> I am too new for my answers to be relied upon but just thought of
> reflecting something I wonder could have happened. Please wait for
> experts :)
> -Prasad.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: tomcat error

2005-12-20 Thread Bill Barker
Let me guess:  You're using Solaris :).  I've got no clue why Sun suddenly 
changed this

The message has been down-graded to DEBUG level in 5.5.14+, and is pretty 
much harmless.

"James Taylor" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
Hi there,
Can someone please help me resolve the following error I keep getting;
INFO: Server startup in 9072 ms
Dec 20, 2005 6:18:58 PM org.apache.coyote.http11.Http11BaseProtocol pause
INFO: Pausing Coyote HTTP/1.1 on http-1979
Dec 20, 2005 6:18:58 PM org.apache.jk.common.ChannelSocket acceptConnections
WARNING: Exception executing accept
java.net.SocketException: Invalid argument
at java.net.PlainSocketImpl.socketSetOption(Native Method)
at java.net.PlainSocketImpl.setOption(PlainSocketImpl.java:264)
at java.net.Socket.setSoLinger(Socket.java:869)
at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:298)
at org.apache.jk.common.ChannelSocket.acceptConnections(
ChannelSocket.java:637)
at org.apache.jk.common.ChannelSocket$SocketAcceptor.runIt(
ChannelSocket.java:847)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
Dec 20, 2005 6:18:59 PM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Dec 20, 2005 6:19:00 PM org.apache.coyote.http11.Http11BaseProtocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-1979
Dec 20, 2005 6:19:00 PM
org.apache.catalina.core.AprLifecycleListenerlifecycleEvent
INFO: Failed shutdown of Apache Portable Runtime




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



Re: Please Help! Error in using Packages

2005-12-20 Thread Teh Noranis Mohd Aris
The web.xml looks like this:



http://java.sun.com/j2ee/dtds/web-app_2_3.dtd";>



  
MyFirstServlet
   
com.wrox.projsp.ch03.myfirstwebapp.MyFirstServlet
  

  
MyFirstServlet

  /MyFirstServlet

  



I placed the web.xml in
c:\jakarta-tomcat-4.1.31\webapps\ch03\WEB-INF
directory.

How about the server.xml file in
c:\jakarta-tomcat-4.1.31\conf directory? The original
file looks like this:

.
.
.


  
  
.
.
.

Should I replace  wrote:

> Can you post your web.xml. I think I can help you
> with this but only 
> after looking at your web.xml.
> I think the problem is with  and
>  in your 
> web.xml. Moreover as David said, you can find all
> the information in the 
> Docs.
> -Prasad.
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 


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



Re: Redirect from CGI servlet

2005-12-20 Thread Mark Thomas
Bob Faist wrote:
> Tomcat 5.5
> Windows XP
> 
> I'm trying to retro-fit a perl CGI web app into Tomcat and the only
> remaining issue is redirects.  I have enabled the CGI servlet in the
> conf/web.xml file.  I have a CGI script which is setting the HTTP
> response header to a redirect type but Tomcat seems to setting the
> status to 200.  The CGI script is supposed to redirect a user to another
> page based on successful login (form POST).  I examine the HTTP response
> header with a Firefox extension and it shows that there are 2 "Status"
> values.  The header contains "302 Moved" and "200 OK".  My guess is that
> the browser is seeing the "200 OK" and not handling the redirect.  
> 
> Does the CGI servlet handle this redirect scenario?
> 

The short answer is no. Take a look at line 1775 of
http://svn.apache.org/repos/asf/tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/servlets/CGIServlet.java

If you want to submit a patch, I'll review it.

Mark


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



RE: Redirect from CGI servlet

2005-12-20 Thread Bob Faist
The "from" and "to" URLs are definitely different in this case as they
are different CGI scripts.


Someone posted a similar question previously based a Google search but I
can not connect to the MARC archives.

'RE: Tomcat CGI and HTTP status codes' - MARC
When I try to access the cgi, It > doesn;t redirect, but downloads the
file.
It seems that tomcat is > changing the 302 status to a 200 somewhere.
...
marc.theaimsgroup.com/?l=tomcat-user&m=111825503817933&w=2 - Similar
pages




When this same app is hosted though the Apache web server, there is only
one response header status of "Moved - 302" and the redirect functions
OK.

Thanks for the help.
Bob
 

-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 20, 2005 4:31 PM
To: Tomcat Users List
Subject: Re: Redirect from CGI servlet

Good Afternoon Bob-

I found an asnswer here
http://archives.java.sun.com/cgi-bin/wa?A2=ind9811&L=servlet-interest&F=
&S=&P=94953
to quote
"When most browsers receive a reply with status 302 (Moved Temporarily),
they look at the Location header, and automatically call the page
specified there.
However, as I have found, if the URL of the page _to_ which you are
redirecting is the SAME as the page _from_ which you have sent the
redirection, the browser assumes you are in a redirect loop.  
It then displays the message instead of auto-redirecting"

tack on a querystring  to the new URL tells the browser that you are not
in a 'redirect loop'
Anyone else?
Martin-
- Original Message -
From: "Bob Faist" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, December 20, 2005 4:18 PM
Subject: Redirect from CGI servlet


> Tomcat 5.5
> Windows XP
> 
> I'm trying to retro-fit a perl CGI web app into Tomcat and the only
> remaining issue is redirects.  I have enabled the CGI servlet in the
> conf/web.xml file.  I have a CGI script which is setting the HTTP
> response header to a redirect type but Tomcat seems to setting the
> status to 200.  The CGI script is supposed to redirect a user to
another
> page based on successful login (form POST).  I examine the HTTP
response
> header with a Firefox extension and it shows that there are 2 "Status"
> values.  The header contains "302 Moved" and "200 OK".  My guess is
that
> the browser is seeing the "200 OK" and not handling the redirect.  
> 
> Does the CGI servlet handle this redirect scenario?
> 
> Response Headers -
> http://bfaist-ws:8080/emsng_ietm/cgi-bin/WebService_Login.pl
> 
> Server: Apache-Coyote/1.1
> Status: 302 Moved
> Location: http://bfaist-ws:8080/emsng_ietm/cgi-bin/IETM_Menu.pl
> Transfer-Encoding: chunked
> Date: Tue, 20 Dec 2005 21:13:16 GMT
> 
> 200 OK
> 
> 
> **
> Confidentiality Notice
> The information contained in this e-mail is confidential and intended
for
> use only by the person(s) or organization listed in the address. If
you have
> received this communication in error, please contact the sender at
O'Neil &
> Associates, Inc., immediately. Any copying, dissemination, or
distribution
> of this communication, other than by the intended recipient, is
strictly
> prohibited.
> **
> 
> 
> -
> 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: Redirect from CGI servlet

2005-12-20 Thread Martin Gainty
Good Afternoon Bob-

I found an asnswer here
http://archives.java.sun.com/cgi-bin/wa?A2=ind9811&L=servlet-interest&F=&S=&P=94953
to quote
"When most browsers receive a reply with status 302 (Moved Temporarily), they
look at the Location header, and automatically call the page specified there.
However, as I have found, if the URL of the page _to_ which you are redirecting
is the SAME as the page _from_ which you have sent the redirection, 
the browser assumes you are in a redirect loop.  
It then displays the message instead of auto-redirecting"

tack on a querystring  to the new URL tells the browser that you are not in a 
'redirect loop'
Anyone else?
Martin-
- Original Message - 
From: "Bob Faist" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, December 20, 2005 4:18 PM
Subject: Redirect from CGI servlet


> Tomcat 5.5
> Windows XP
> 
> I'm trying to retro-fit a perl CGI web app into Tomcat and the only
> remaining issue is redirects.  I have enabled the CGI servlet in the
> conf/web.xml file.  I have a CGI script which is setting the HTTP
> response header to a redirect type but Tomcat seems to setting the
> status to 200.  The CGI script is supposed to redirect a user to another
> page based on successful login (form POST).  I examine the HTTP response
> header with a Firefox extension and it shows that there are 2 "Status"
> values.  The header contains "302 Moved" and "200 OK".  My guess is that
> the browser is seeing the "200 OK" and not handling the redirect.  
> 
> Does the CGI servlet handle this redirect scenario?
> 
> Response Headers -
> http://bfaist-ws:8080/emsng_ietm/cgi-bin/WebService_Login.pl
> 
> Server: Apache-Coyote/1.1
> Status: 302 Moved
> Location: http://bfaist-ws:8080/emsng_ietm/cgi-bin/IETM_Menu.pl
> Transfer-Encoding: chunked
> Date: Tue, 20 Dec 2005 21:13:16 GMT
> 
> 200 OK
> 
> 
> **
> Confidentiality Notice
> The information contained in this e-mail is confidential and intended for
> use only by the person(s) or organization listed in the address. If you have
> received this communication in error, please contact the sender at O'Neil &
> Associates, Inc., immediately. Any copying, dissemination, or distribution
> of this communication, other than by the intended recipient, is strictly
> prohibited.
> **
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

Redirect from CGI servlet

2005-12-20 Thread Bob Faist
Tomcat 5.5
Windows XP

I'm trying to retro-fit a perl CGI web app into Tomcat and the only
remaining issue is redirects.  I have enabled the CGI servlet in the
conf/web.xml file.  I have a CGI script which is setting the HTTP
response header to a redirect type but Tomcat seems to setting the
status to 200.  The CGI script is supposed to redirect a user to another
page based on successful login (form POST).  I examine the HTTP response
header with a Firefox extension and it shows that there are 2 "Status"
values.  The header contains "302 Moved" and "200 OK".  My guess is that
the browser is seeing the "200 OK" and not handling the redirect.  

Does the CGI servlet handle this redirect scenario?

Response Headers -
http://bfaist-ws:8080/emsng_ietm/cgi-bin/WebService_Login.pl

Server: Apache-Coyote/1.1
Status: 302 Moved
Location: http://bfaist-ws:8080/emsng_ietm/cgi-bin/IETM_Menu.pl
Transfer-Encoding: chunked
Date: Tue, 20 Dec 2005 21:13:16 GMT

200 OK


**
Confidentiality Notice
The information contained in this e-mail is confidential and intended for
use only by the person(s) or organization listed in the address. If you have
received this communication in error, please contact the sender at O'Neil &
Associates, Inc., immediately. Any copying, dissemination, or distribution
of this communication, other than by the intended recipient, is strictly
prohibited.
**


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



Re: Which is better Option

2005-12-20 Thread Yogesh Prajapati
On 12/20/05, Karthik <[EMAIL PROTECTED]> wrote:
>
>
>
> Hi Form
>
>
>   *Which Option [ advantages /limitations ] is Better ?*
>
>   Certenly yes ,but need more clarifications [ assuming running on same
> JVM ]


It is possible to implement JMS based solution within same JVM. JMS is the
way to go as long as you not talking about OLTP (Online Transaction
Processing) kind of application OR any real time interaction where client is
required to wait for respone.

  with regards
> Karthik
>
> -Original Message-
> From: Tim Funk [mailto:[EMAIL PROTECTED]
> Sent: Monday, December 19, 2005 7:18 PM
> To: Tomcat Users List
> Subject: Re: Which is better Option
>
>
> jms - JMS can live in the same JVM or be moved to a new JVM without
> changing
> any servlet code. (Only some config changes)
>
>
> -Tim
>
> Karthik wrote:
>
> > Hi Form
> >
> >  Please somebody specify
> >
> >  Which Option [ advantages /limitations ] is Better ?
> >
> >1) Using a Servlet to created a seperate Thread for processing a Bulk
> DB
> > Task [ Off the limits of session time]
> >2) Using JMS to handle the Bulk DB Task.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.371 / Virus Database: 267.14.1/206 - Release Date: 12/16/2005
>
>
>
> -
> 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: RE: Which is better Option

2005-12-20 Thread Raja Neravati
Karthik,

I sent a reply yesterday on this. Did you not receive it ?  

RS

On Tue, 20 Dec 2005 Karthik wrote :
>
>
>Hi Form
>
>
>   *Which Option [ advantages /limitations ] is Better ?*
>
>   Certenly yes ,but need more clarifications [ assuming running on same
>JVM ]
>
>
>
>   with regards
>Karthik
>
>-Original Message-
> From: Tim Funk [mailto:[EMAIL PROTECTED]
>Sent: Monday, December 19, 2005 7:18 PM
>To: Tomcat Users List
>Subject: Re: Which is better Option
>
>
>jms - JMS can live in the same JVM or be moved to a new JVM without changing
>any servlet code. (Only some config changes)
>
>
>-Tim
>
>Karthik wrote:
>
> > Hi Form
> >
> >  Please somebody specify
> >
> >  Which Option [ advantages /limitations ] is Better ?
> >
> >1) Using a Servlet to created a seperate Thread for processing a Bulk
>DB
> > Task [ Off the limits of session time]
> >2) Using JMS to handle the Bulk DB Task.
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>--
>No virus found in this incoming message.
>Checked by AVG Free Edition.
>Version: 7.1.371 / Virus Database: 267.14.1/206 - Release Date: 12/16/2005
>
>
>
>-
>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.5.12 clustering - messages lost under high load

2005-12-20 Thread Yogesh Prajapati
On 12/19/05, Peter Rossbach <[EMAIL PROTECTED]> wrote:
>
> Hey,
> Am 20.12.2005 um 01:09 schrieb Yogesh Prajapati:
>
> > On 12/18/05, Peter Rossbach <[EMAIL PROTECTED] > wrote:
> >>
> >> Hey,
> >>
> >> a)   Servlet Spec say: You must have sticky session when you use
> >> distributable web apps. Session Replication is only used when
> >> primary node
> >> crashed!!
> >
> >
> > I looked into the servlet spec (V 2.4). I did not find anything
> > like "sticky
> > session" or "session replication". I do see the sentence in the spec:
> > "Within an application marked as distributable, all requests that
> > are part
> > of a session must be handled by one Java Virtual Machine1 ("JVM") at a
> > time.", is this what you meant by using "Sticky Session"...if yes,
> > it make
> > sense to me.
> >
> YES!
> >


Great relief to say good bye to such a big problem! many thanks to you! BTW,
meantime I noticed running couple load tests that the problem of "Broken
pipe" exception is gone away (it is fixed).

> b)   When you app don't send a new request before the first is
> > complete:
> >> use pooled mode with waitForAck=true!
> >>It can work, but
> >
> > can you please elaborate more on this ...I did not follow what you
> > tried to
> > communicate?
> >
> Pooled mode is a synchronous mode. With waitForAck the response
> thread wait that all backups are received the replication message.


It is interesting to try this option. As you said "It can work, but" I
understand that by setting "waitForAck=true" will greatly reduce the
throughput therefore not a recommended clustering approach..am I right?

> c)   Rhe reported exception has nothing do with clustering, Seems that
> >> your app send response, before open session. Violate Spec!
> >
> >
> > I think you are right, it is not a cluster exception But I don't
> > see the
> > exception for every request, it appears randomly not sure what is
> > causing
> > it, also I dont know how my JSP based app is violating the spec.
> > All my JSPs
> > are doing is to use "" with two level nesting. E.g.
> >
>
> Why you set JspWriter out=null?? Thats wrong!
> Implement the response header setting inside a servlet filter is better!


I kind of debated myself about this sometime ago, but since JSP pre-compiler
never gave any warning/error (or ignored it) it never caught my attention. I
am crazy at the moment after having gone through it so much that I am unable
to control every single little thing. Thanks very much for pointing that
out.


Re: Re: problem with stopping Tomcat

2005-12-20 Thread Warren Pace
Marju,
 Glad to hear that.
Warren
> 
> From: marju jalloh <[EMAIL PROTECTED]>
> Date: 2005/12/20 Tue PM 01:49:31 EST
> To: Tomcat Users List 
> Subject: Re: Re: problem with stopping Tomcat
> 
> Warren I have solved it. The server.xml and web.xml were currupt.I replace 
> them with the original server.xml and web.xml  configuration file and 
> rebooted no error message and its working perfact.
> 
> Advice for everyone.Always backup the original config file or the last 
> working config file so that you can fall on it when the need arises
> 
> Thanks Warren for your concern
> Marju
> 
> Warren Pace <[EMAIL PROTECTED]> wrote: mariju,
> This is puzzling.  At this point, I would do exactly what you're 
> planning.  Good thing you saved the original files . . . after that, I'm at a 
> loss short of removing the app and re-installing with apt.
> > 
> > From: marju jalloh 
> > Date: 2005/12/19 Mon PM 02:18:22 EST
> > To: Tomcat Users List 
> > Subject: Re: Re: problem with stopping Tomcat
> > 
> > no I did not use apt. It was working but now on rebooting I got the 
> > following error
> > INFO: Initializing Coyote HTTP/1.1 on http-8080
> > ServerLifecycleListener: createMBeans: MBeanException
> > java.lang.Exception: ManagedBean is not found with Ajp13Connector
> > at 
> > org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:180)
> > at 
> > org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:355)
> > at 
> > org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:807)
> > at 
> > org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:781)
> > at 
> > org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:325)
> > at 
> > org.apache.catalina.mbeans.ServerLifecycleListener.lifecycleEvent(ServerLifecycleListener.java:179)
> > at 
> > org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> > at 
> > org.apache.catalina.core.StandardServer.start(StandardServer.java:2136)
> > at org.apache.catalina.startup.Catalina.start(Catalina.java:463)
> > at org.apache.catalina.startup.Catalina.execute(Catalina.java:350)
> > at org.apache.catalina.startup.Catalina.process(Catalina.java:129)
> > 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.main(Bootstrap.java:156)
> > Starting service Tomcat-Standalone
> > Apache Tomcat/4.1.31
> > Sep 9, 2005 1:07:28 AM org.apache.commons.digester.Digester fatalError
> > SEVERE: Parse Fatal Error at line 2 column 83: The system identifier must 
> > begin with either a single or double quote character.
> > org.xml.sax.SAXParseException: The system identifier must begin with either 
> > a single or double quote character.
> > at 
> > org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown 
> > Source)
> > 
> > I am now tryinh to sutituted my server.xml and web.xml fiel with the 
> > original and see if it would work
> > 
> > thanks
> > Marju
> > 
> > Warren Pace  wrote: Did you originally install Tomcat using apt?  The 
> > Debian package configures Tomcat to listen on port 8180.  
> > > 
> > > From: marju jalloh 
> > > Date: 2005/12/18 Sun PM 04:52:50 EST
> > > To: Tomcat Users List 
> > > Subject: Re: problem with stopping Tomcat
> > > 
> > > Sorry that I did`nt include these information
> > > I`m using Tomcat 1.4.27  on linux Debian(serge). Tomcat start authomatic 
> > > at startup.But during development I use shutdown.sh and startup.sh in the 
> > > TOMECAT_HOME/bin directory
> > > eg
> > > shutdown.shto stop tomcat
> > > startup.sh to start tomcat
> > > 
> > > Thanks,
> > > Byfour
> > > 
> > > Steve Dodge  wrote: What's you environment? What version of Tomcat?  What 
> > > command are you 
> > > using to start it?
> > > 
> > > marju jalloh wrote:
> > > 
> > > > Hi everyone
> > > >I havae problem with stopping tomcat.When I start it it show no sign of 
> > > >error but I can`t get to my http:localhost:8080/ page if I tried to 
> > > >restart Tomcat by sotpping and the starting I got thefollowing error 
> > > >during stopping
> > > >
> > > >Catalina.stop: java.net.ConnectException: Connection refused
> > > >java.net.ConnectException: Connection refused
> > > >at java.net.PlainSocketImpl.socketConnect(Native Method)
> > > >at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
> > > >at 
> > > > java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
> > > >at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
> > > >at java.n

Re: tomcat error

2005-12-20 Thread marju jalloh
something wrong about the coyoto protocol context
what is your enviroment.operating system,version tomcat
 
Marju
James Taylor <[EMAIL PROTECTED]> wrote: Hi there,
Can someone please help me resolve the following error I keep getting;
INFO: Server startup in 9072 ms
Dec 20, 2005 6:18:58 PM org.apache.coyote.http11.Http11BaseProtocol pause
INFO: Pausing Coyote HTTP/1.1 on http-1979
Dec 20, 2005 6:18:58 PM org.apache.jk.common.ChannelSocket acceptConnections
WARNING: Exception executing accept
java.net.SocketException: Invalid argument
at java.net.PlainSocketImpl.socketSetOption(Native Method)
at java.net.PlainSocketImpl.setOption(PlainSocketImpl.java:264)
at java.net.Socket.setSoLinger(Socket.java:869)
at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:298)
at org.apache.jk.common.ChannelSocket.acceptConnections(
ChannelSocket.java:637)
at org.apache.jk.common.ChannelSocket$SocketAcceptor.runIt(
ChannelSocket.java:847)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
Dec 20, 2005 6:18:59 PM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Dec 20, 2005 6:19:00 PM org.apache.coyote.http11.Http11BaseProtocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-1979
Dec 20, 2005 6:19:00 PM
org.apache.catalina.core.AprLifecycleListenerlifecycleEvent
INFO: Failed shutdown of Apache Portable Runtime



__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: How does tomcat parse multipart requests?

2005-12-20 Thread marju jalloh
The servlet container create a single instance when tomcat is started and 
listen for request.Each request spawn a new thread that execute the service 
methods (doGet,doPost etc).So miltiple request will spawn multiple threads. You 
can understand it more when you are familiar with Threads.

That is why when you are writing your servlet make sure that shared variable 
are synchronized

Hope it helps

Marju Jalloh
Sam Lee <[EMAIL PROTECTED]> wrote: Dear Guys,

 I want to know how tomcat parse multipart requests? Or tomcat does not
parse multipart requests at all?

I try to find the answer from tomcat 5.5 source,but failed because
don't know where to begin.

Thanks,

Sam


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




__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: Re: problem with stopping Tomcat

2005-12-20 Thread marju jalloh
Warren I have solved it. The server.xml and web.xml were currupt.I replace them 
with the original server.xml and web.xml  configuration file and rebooted no 
error message and its working perfact.

Advice for everyone.Always backup the original config file or the last working 
config file so that you can fall on it when the need arises

Thanks Warren for your concern
Marju

Warren Pace <[EMAIL PROTECTED]> wrote: mariju,
This is puzzling.  At this point, I would do exactly what you're planning.  
Good thing you saved the original files . . . after that, I'm at a loss short 
of removing the app and re-installing with apt.
> 
> From: marju jalloh 
> Date: 2005/12/19 Mon PM 02:18:22 EST
> To: Tomcat Users List 
> Subject: Re: Re: problem with stopping Tomcat
> 
> no I did not use apt. It was working but now on rebooting I got the following 
> error
> INFO: Initializing Coyote HTTP/1.1 on http-8080
> ServerLifecycleListener: createMBeans: MBeanException
> java.lang.Exception: ManagedBean is not found with Ajp13Connector
> at org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:180)
> at 
> org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:355)
> at 
> org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:807)
> at 
> org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:781)
> at 
> org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:325)
> at 
> org.apache.catalina.mbeans.ServerLifecycleListener.lifecycleEvent(ServerLifecycleListener.java:179)
> at 
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> at org.apache.catalina.core.StandardServer.start(StandardServer.java:2136)
> at org.apache.catalina.startup.Catalina.start(Catalina.java:463)
> at org.apache.catalina.startup.Catalina.execute(Catalina.java:350)
> at org.apache.catalina.startup.Catalina.process(Catalina.java:129)
> 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.main(Bootstrap.java:156)
> Starting service Tomcat-Standalone
> Apache Tomcat/4.1.31
> Sep 9, 2005 1:07:28 AM org.apache.commons.digester.Digester fatalError
> SEVERE: Parse Fatal Error at line 2 column 83: The system identifier must 
> begin with either a single or double quote character.
> org.xml.sax.SAXParseException: The system identifier must begin with either a 
> single or double quote character.
> at 
> org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown 
> Source)
> 
> I am now tryinh to sutituted my server.xml and web.xml fiel with the original 
> and see if it would work
> 
> thanks
> Marju
> 
> Warren Pace  wrote: Did you originally install Tomcat using apt?  The Debian 
> package configures Tomcat to listen on port 8180.  
> > 
> > From: marju jalloh 
> > Date: 2005/12/18 Sun PM 04:52:50 EST
> > To: Tomcat Users List 
> > Subject: Re: problem with stopping Tomcat
> > 
> > Sorry that I did`nt include these information
> > I`m using Tomcat 1.4.27  on linux Debian(serge). Tomcat start authomatic at 
> > startup.But during development I use shutdown.sh and startup.sh in the 
> > TOMECAT_HOME/bin directory
> > eg
> > shutdown.shto stop tomcat
> > startup.sh to start tomcat
> > 
> > Thanks,
> > Byfour
> > 
> > Steve Dodge  wrote: What's you environment? What version of Tomcat?  What 
> > command are you 
> > using to start it?
> > 
> > marju jalloh wrote:
> > 
> > > Hi everyone
> > >I havae problem with stopping tomcat.When I start it it show no sign of 
> > >error but I can`t get to my http:localhost:8080/ page if I tried to 
> > >restart Tomcat by sotpping and the starting I got thefollowing error 
> > >during stopping
> > >
> > >Catalina.stop: java.net.ConnectException: Connection refused
> > >java.net.ConnectException: Connection refused
> > >at java.net.PlainSocketImpl.socketConnect(Native Method)
> > >at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
> > >at 
> > > java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
> > >at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
> > >at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:364)
> > >at java.net.Socket.connect(Socket.java:507)
> > >at java.net.Socket.connect(Socket.java:457)
> > >at java.net.Socket.(Socket.java:365)
> > >at java.net.Socket.(Socket.java:178)
> > >at org.apache.catalina.startup.Catalina.stop(Catalina.java:532)
> > >at org.apache.catalina.startup.Catalina.execute(Catalina.jav

Re: Apache Portable Runtime not found on the java.library.path

2005-12-20 Thread Adam Constabaris

FTP wrote:

I face the same problem with:

Tomcat 5.5.12
jdk: 1.5.06

and cannot find the library you suggest in order to include it!


APR integration isn't yet fully part of the Tomcat distribution, as far 
as I can tell (I think it's misleading of them to enable the APR 
listener on startup, because it makes you think you're supposed to use 
it).


I'm not sure how stable the Tomcat developers consider the APR 
integration, so if you're at all concerned about that, it's probably 
easier to just comment out the Listener instead.


If you want to use the APR libraries, first read 
http://tomcat.apache.org/tomcat-5.5-doc/apr.html to see if there are 
precompiled binaries for your platform (Windows only, AFAICT).  If not,


(a) install APR (http://apr.apache.org); if you use Linux, your 
distribution may ship the APR in a package.


(b) compile libtcnative-1.so by unpacking 
$TOMCAT_HOME/bin/tomcat-native.tar.gz and following (most of) the 
instructions there; NOTE if you don't need openSSL support, be warned 
that --without-ssl switch did not work for me with tomcat-native-1.1.0 
(ships with 5.5.12; 1.1.1 with 5.5.14-beta did honor that switch).


HTH

AC

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



Re: Apache Portable Runtime not found on the java.library.path

2005-12-20 Thread FTP
I face the same problem with:

Tomcat 5.5.12
jdk: 1.5.06

and cannot find the library you suggest in order to include it!

Any hint why?

Thanks

George

On Tue, Dec 20, 2005 at 11:23:11AM -0500, Adam Constabaris wrote:
> William Claxton wrote:
> >Running Java JDK 1.4.  After upgrading to Tomcat 5.5 I get this error.  
> >I have also installed the compatability upgrade for the Java Runtime.
> >
> >"The Apache Portable Runtime which allows optimal performance in 
> >production environments was not found on the java.library.path."
> >
> >Any suggestion on how to resolve this?
> 
> add the following to CATALINA_OPTS:
> 
> -Djava.library.path=/path/to/lib
> 
> The path you should use is the directory that actually contains 
> libtcnative-1.so
> 
> This is only documented in the BUILDING file in jni/native in the 
> tomcat-native directory tree.
> 
> HTH
> 
> AC
> 
> -
> 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: Invoking webservice from servlet

2005-12-20 Thread Prasad

Lincoln Dalgado wrote:


Hi,

I am invoking a SSL based web service from inside a servlet.

The service is invoked successfully when I use startup.bat to start tomcat.

However if I start tomcat as a service, I get a

Caused by: sun.security.validator.ValidatorException: No trusted certificate
found

at sun.security.validator.SimpleValidator.buildTrustedChain(Unknown Source)

And idea what might be causing this to happen?

Thanks,

Lincoln

 

I think by starting TC as a service you are running it with a null 
session i.e. no particular user account in action but local system account.
If that is the case, then it might be an issue with finding proper 
Keystore that otherwise would be located in the current users home 
directory.


I am too new for my answers to be relied upon but just thought of 
reflecting something I wonder could have happened. Please wait for 
experts :)

-Prasad.

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



tomcat error

2005-12-20 Thread James Taylor
Hi there,
Can someone please help me resolve the following error I keep getting;
INFO: Server startup in 9072 ms
Dec 20, 2005 6:18:58 PM org.apache.coyote.http11.Http11BaseProtocol pause
INFO: Pausing Coyote HTTP/1.1 on http-1979
Dec 20, 2005 6:18:58 PM org.apache.jk.common.ChannelSocket acceptConnections
WARNING: Exception executing accept
java.net.SocketException: Invalid argument
at java.net.PlainSocketImpl.socketSetOption(Native Method)
at java.net.PlainSocketImpl.setOption(PlainSocketImpl.java:264)
at java.net.Socket.setSoLinger(Socket.java:869)
at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:298)
at org.apache.jk.common.ChannelSocket.acceptConnections(
ChannelSocket.java:637)
at org.apache.jk.common.ChannelSocket$SocketAcceptor.runIt(
ChannelSocket.java:847)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
Dec 20, 2005 6:18:59 PM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Dec 20, 2005 6:19:00 PM org.apache.coyote.http11.Http11BaseProtocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-1979
Dec 20, 2005 6:19:00 PM
org.apache.catalina.core.AprLifecycleListenerlifecycleEvent
INFO: Failed shutdown of Apache Portable Runtime


Re: Please Help! Error in using Packages

2005-12-20 Thread Prasad
Can you post your web.xml. I think I can help you with this but only 
after looking at your web.xml.
I think the problem is with  and  in your 
web.xml. Moreover as David said, you can find all the information in the 
Docs.

-Prasad.

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



RE: jk uriworkermap per web site on iis

2005-12-20 Thread Allistair Crossley
;c) thanks Mladen :) 

-Original Message-
From: Mladen Turk [mailto:[EMAIL PROTECTED] 
Sent: 20 December 2005 17:29
To: Tomcat Users List
Subject: Re: jk uriworkermap per web site on iis

Allistair Crossley wrote:
>  
> For example, one website is dom.co.uk and another is dom.com. We wish 
> for /a/* to work for dom.co.uk but not dom.com because /a/* on dom.com

> has a legacy site that needs to be left in place.
> 
> I had a go at using www.dom.co.uk/a/*=ajp13 as a mapping but JK 
> doesn't appear to like this.

It was close enough :)
/www.dom.co.uk/a/*=ajp13

Should work (Note the leading slash).

Regards,
Mladen.

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





 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
  
Disclaimer:  The information contained within this e-mail is confidential and 
may be privileged. This email is intended solely for the named recipient only; 
if you are not authorised you must not disclose, copy, distribute, or retain 
this message or any part of it. If you have received this message in error 
please contact the sender at once so that we may take the appropriate action 
and avoid troubling you further.  Any views expressed in this message are those 
of the individual sender.  QAS Limited has the right lawfully to record, 
monitor and inspect messages between its employees and any third party.  Your 
messages shall be subject to such lawful supervision as QAS Limited deems to be 
necessary in order to protect its information, its interests and its 
reputation.  

Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS 
Limited cannot guarantee that attachments are virus free or compatible with 
your systems and does not accept any liability in respect of viruses or 
computer problems experienced.



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



Re: jk uriworkermap per web site on iis

2005-12-20 Thread Mladen Turk

Allistair Crossley wrote:
 
For example, one website is dom.co.uk and another is dom.com. We wish

for /a/* to work for dom.co.uk but not dom.com because /a/* on dom.com
has a legacy site that needs to be left in place.

I had a go at using www.dom.co.uk/a/*=ajp13 as a mapping but JK doesn't
appear to like this.


It was close enough :)
/www.dom.co.uk/a/*=ajp13

Should work (Note the leading slash).

Regards,
Mladen.

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



Re: c:import doesn't work right with HEAD requests

2005-12-20 Thread erh
> "Hassan Schroeder" <[EMAIL PROTECTED]> wrote in message 
> news:[EMAIL PROTECTED]
> > No. But I wouldn't have *any* expectations of an ambiguous situation.
> > Out of curiousity, have you tried this with any different containers
> > (Jetty, Resin, JRun, ...)?

no, I haven't.  I think I've got a websphere instance I can get to.
I'll try it there.  That might have a different implementation of the
core taglibs even .

On Sun, Dec 18, 2005 at 05:08:54PM -0800, Bill Barker wrote:
> >From http://issues.apache.org/bugzilla/show_bug.cgi?id=37466, it looks like 
> it's a waste of time checking other containers.  It seems that this is a 
> known bug at least in the Jakarta implementation of JSTL.
known? ha!  I submitted that, and judging by the response I got when
asking about this problem on the taglibs list, I wouldn't be surprised if
you're the first other person to see that bug. :-|

eric

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



Re: Re: c:import doesn't work right with HEAD requests --> Ref #[1M8EmBBCnE0fSre]

2005-12-20 Thread referrals
Hello,

Thank you for contacting Juno.

This is an automated response sent to email messages suspected to be spam by 
our spam filters. This process will help us filter spam messages and respond to 
genuine customer concerns quickly.

We apologize if your email is mistakenly identified as spam. Please reply to 
this message and one of our support agents will get back to you.

Sincerely,

Juno Customer Care


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



Re: c:import doesn't work right with HEAD requests

2005-12-20 Thread erh
On Sun, Dec 18, 2005 at 03:20:09PM -0800, Bill Barker wrote:
> 
> <[EMAIL PROTECTED]> wrote in message 
> news:[EMAIL PROTECTED]
> > My guess is that tomcat uses a "HEAD" request to retrieve content with
> > c:import if the request for the jsp page containing the c:import was
> > requested with a "HEAD" request.  I'm not familiar enough with the tomcat
> > code to easily figure out whether this is actually the case or not.
> 
> Actually, it JSTL rather than Tomcat, but you're basically correct, that is 
> what is happening.  It could be fixed in c:import (to wrap the Request, and 
> report GET for HEAD), but that is outside of Tomcat.

I feared that might be the case.  I asked on the apache taglibs list,
but that list is rather empty of people, so I got no response. :(

> > If that's really what's happening, then I think it's wrong.  When a HEAD
> > request is received, the jsp page should either:
> > 1) run exactly the same as if a GET request was received
> 
> This is outside of Tomcat's control, since any Servlet is free to override 
> doHead to do anything it wants ;-).  In fact, this is one work-around for 
> your problem:  Use extends="com.myfirm.mypackage.MyJSPPage", and implement 
> doHead there.

yuck.  That seems like gross solution.

> > 1a) unless the jsp page _explicitly_ checks the request method
> > with ${request.method} or equivalent.
> 
> Checking this is probably the easiest work-around.  It's very unlikely that 
> Tomcat could do it relyably.

ah, oh well.  I guess I'll do something like this.  Thanks.

eric

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



jk uriworkermap per web site on iis

2005-12-20 Thread Allistair Crossley
Hello all,
 
I've tried my best googling skills to no avail on this one and also the
manual. Perhaps you can help. We have found ourselves in a tech
migration situation whereby we have a requirement to specify
uriworkermap mappings per website in iis.
 
For example, one website is dom.co.uk and another is dom.com. We wish
for /a/* to work for dom.co.uk but not dom.com because /a/* on dom.com
has a legacy site that needs to be left in place.

I had a go at using www.dom.co.uk/a/*=ajp13 as a mapping but JK doesn't
appear to like this.

Any advice would be gratefully received,

Cheers, Allistair



 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
  
Disclaimer:  The information contained within this e-mail is confidential and 
may be privileged. This email is intended solely for the named recipient only; 
if you are not authorised you must not disclose, copy, distribute, or retain 
this message or any part of it. If you have received this message in error 
please contact the sender at once so that we may take the appropriate action 
and avoid troubling you further.  Any views expressed in this message are those 
of the individual sender.  QAS Limited has the right lawfully to record, 
monitor and inspect messages between its employees and any third party.  Your 
messages shall be subject to such lawful supervision as QAS Limited deems to be 
necessary in order to protect its information, its interests and its 
reputation.  

Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS 
Limited cannot guarantee that attachments are virus free or compatible with 
your systems and does not accept any liability in respect of viruses or 
computer problems experienced.



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



Re: Apache Portable Runtime not found on the java.library.path : Take Two

2005-12-20 Thread Adam Constabaris

William Claxton wrote:
Running Java JDK 1.4.  After upgrading to Tomcat 5.5 I get this error.  
I have also installed the compatability upgrade for the Java Runtime.


"The Apache Portable Runtime which allows optimal performance in 
production environments was not found on the java.library.path."


or, if you don't know from APR and all that business, you might also 
just comment out the following Listener in server.xml:




It's lots less work than compiling APR and the native tomcat connector 
for it =)


AC


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



RE: Apache Portable Runtime not found on the java.library.path

2005-12-20 Thread Caldarale, Charles R
> From: William Claxton [mailto:[EMAIL PROTECTED] 
> Subject: Apache Portable Runtime not found on the java.library.path
> 
> "The Apache Portable Runtime which allows optimal performance in 
> production environments was not found on the java.library.path."
> 
> Any suggestion on how to resolve this?

Either build and install the APR for your platform (as a previous poster
suggested), or comment out the AprLifeCycleListener under the 
tag in the conf/server.xml file.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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



Re: Apache Portable Runtime not found on the java.library.path

2005-12-20 Thread Adam Constabaris

William Claxton wrote:
Running Java JDK 1.4.  After upgrading to Tomcat 5.5 I get this error.  
I have also installed the compatability upgrade for the Java Runtime.


"The Apache Portable Runtime which allows optimal performance in 
production environments was not found on the java.library.path."


Any suggestion on how to resolve this?


add the following to CATALINA_OPTS:

-Djava.library.path=/path/to/lib

The path you should use is the directory that actually contains 
libtcnative-1.so


This is only documented in the BUILDING file in jni/native in the 
tomcat-native directory tree.


HTH

AC

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



Apache Portable Runtime not found on the java.library.path

2005-12-20 Thread William Claxton
Running Java JDK 1.4.  After upgrading to Tomcat 5.5 I get this 
error.  I have also installed the compatability upgrade for the Java Runtime.


"The Apache Portable Runtime which allows optimal performance in 
production environments was not found on the java.library.path."


Any suggestion on how to resolve this?

Regards, Bill Claxton ([EMAIL PROTECTED])
MSN: [EMAIL PROTECTED]
Skype: [EMAIL PROTECTED]
Blog: http://learningweb.blogspot.com


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



How to clean up work directory on shutdown (Tomcat 5.5.12)

2005-12-20 Thread Edmon Begoli
Is there an instruction that enables automatic clean up of the work
directory on the shutdown of Tomcat 5.5.12.

--
Thank you,
Edmon Begoli
http://blogs.ittoolbox.com/eai/software


RE: compatibility package for Tomcat 5.5

2005-12-20 Thread Caldarale, Charles R
> From: Ariel Pashtan [mailto:[EMAIL PROTECTED] 
> Subject: compatibility package for Tomcat 5.5
> 
> I tried searching for this compatibility package in the 
> Tomcat pages. Can you please let me know where can I find
> this package?

It's the one cleverly disguised as "JDK 1.4 Compatability Package" on
the Tomcat 5.5 downloads page
(http://tomcat.apache.org/download-55.cgi).

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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



Vedr.: compatibility package for Tomcat 5.5

2005-12-20 Thread Thomas Nybro Bolding
Same sweet spot as the rest of the downloads for TC5.x:

http://tomcat.apache.org/download-55.cgi

Choose JDK 1.4 Compability Package as either zip
http://www.apache.org/dist/tomcat/tomcat-5/v5.5.14-beta/bin/apache-tomcat-5.5.14-compat.zip
or tar.gz 
http://www.apache.org/dist/tomcat/tomcat-5/v5.5.14-beta/bin/apache-tomcat-5.5.14-compat.tar.gz

/Thomas





"Ariel Pashtan" <[EMAIL PROTECTED]>
20-12-2005 16:01
Besvar venligst til "Tomcat Users List"

 
Til:
cc: 
Vedr.:  compatibility package for Tomcat 5.5



Hi,

 

I am running Tomcat 5.5 and 1.4 JRE. I understand that I need to install 
the
"compatibility package" in the Tomcat home folder.

I tried searching for this compatibility package in the Tomcat pages. Can
you please let me know where can I find this package?

Thanks!

 

Ariel

 

 





___
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.




Re: compatibility package for Tomcat 5.5

2005-12-20 Thread Rafal Zawadzki
### "Ariel Pashtan" <[EMAIL PROTECTED]> wrote message to 
users@tomcat.apache.org ###
### this is reply for: compatibility package for Tomcat 5.5 ###
> Hi,
>
>
>
> I am running Tomcat 5.5 and 1.4 JRE. I understand that I need to install
> the "compatibility package" in the Tomcat home folder.
>
> I tried searching for this compatibility package in the Tomcat pages. Can
> you please let me know where can I find this package?
>
> Thanks!
>
>
>
> Ariel

http://tomcat.apache.org/download-55.cgi#5.5.14-beta

JDK 1.4 Compatability Package: 
zip (pgp, md5) 
tar.gz (pgp, md5)




-- 
Rafał Zawadzki
Deploy/Release Manager
eo Networks Sp. z o.o.


pgpCKoHUzLjYO.pgp
Description: PGP signature


compatibility package for Tomcat 5.5

2005-12-20 Thread Ariel Pashtan
Hi,

 

I am running Tomcat 5.5 and 1.4 JRE. I understand that I need to install the
"compatibility package" in the Tomcat home folder.

I tried searching for this compatibility package in the Tomcat pages. Can
you please let me know where can I find this package?

Thanks!

 

Ariel

 

 



Re: How does tomcat parse multipart requests?

2005-12-20 Thread Jon Wingfield
It doesn't. But there are 3rd party apis to help. Two popular ones are:
http://servlets.com/cos/ (read the, not very onerous, license before
commercial use)
http://jakarta.apache.org/commons/fileupload/

HTH,

Jon

Sam Lee wrote:
> Dear Guys,
> 
>  I want to know how tomcat parse multipart requests? Or tomcat does not
> parse multipart requests at all?
> 
> I try to find the answer from tomcat 5.5 source,but failed because
> don't know where to begin.
> 
> Thanks,
> 
> Sam
> 
> 
> -
> 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: how are relative pages/images retrieved?

2005-12-20 Thread David Smith
Seak, Teng-Fong wrote:

> Caldarale, Charles R wrote:
>
>>> From: hanasaki [mailto:[EMAIL PROTECTED] Subject: how are
>>> relative pages/images retrieved?
>>>
>>> the page
>>> http://localhost/a/b/c
>>> has an href to
>>> ../images/image1.gif
>>>
>>> how is it that the websever knows to convert this into
>>> http://localhost/a/b/images.gif
>>>   
>>
>>
>> I believe that it's the client (browser) that forms an absolute URL
>> based on that of the current page.  The client must request each href
>> independently from the server, although HTTP 1.1 allows them to be
>> batched together.
>>
>> - Chuck
>>  
>>
>It's definitely the client's job to request every resource using
> absolute path.  This must be written in some RFC if you're interested.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
Yes.  Specifically the HTML spec 4.01 section 12.4.1 and RFC 1808 both
describe how the client must be able to deterimine a base URI for
resolving all relative URIs.

See http://www.w3.org/TR/html4/struct/links.html, bottom of the page.

--David


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



Re: how are relative pages/images retrieved?

2005-12-20 Thread Seak, Teng-Fong

Caldarale, Charles R wrote:

From: hanasaki [mailto:[EMAIL PROTECTED] 
Subject: how are relative pages/images retrieved?


the page
http://localhost/a/b/c
has an href to
../images/image1.gif

how is it that the websever knows to convert this into
http://localhost/a/b/images.gif
   



I believe that it's the client (browser) that forms an absolute URL
based on that of the current page.  The client must request each href
independently from the server, although HTTP 1.1 allows them to be
batched together.

- Chuck
 

   It's definitely the client's job to request every resource using 
absolute path.  This must be written in some RFC if you're interested.



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



Re: tomcat 5.x context path priority

2005-12-20 Thread David Smith
Just looking up some other info, I ran accross this which directly 
answers your question:


http://tomcat.apache.org/tomcat-5.5-doc/config/context.html

--David

David Smith wrote:

I'm not sure there is a documented spec on this at the container 
(tomcat) level.  One of the tomcat developers would know best about 
this, but I would imagine tomcat handles such issues the same way 
servlet mappings within a webapp are handled.  The longest matching 
path is the one that's chosen.



--David

foo java wrote:


Hi,

I am trying to find a "documented" solution for one of my problems with
tomcat contexts.

 I would like to ask about the tomcat servlet container( 5.x) and it's
prioritised handling of the context paths in the following situation. A
pointer to official documentation will be of much help to me.

 If you consider the following structure for my application(web) source:

 myapps
 myapps--conf
 myapps--JSP
 myapps--WEB-INF
 myapps--WEB-INF/classes
 


 The conf directory in my application holds css and images.
 Suppose, i deployed one of my context in tomcat as
 
 

The situation is there are many contexts deployed in the tomcat using 
the
same source (myapps). But, if i want to make some of the contexts to 
have
it's own conf directory and using the docbase as normal for sources. 
I am

planning to do it the following way:

 if i deploy one more context say /myapps/conf

 
 

 P.S: i have used a "/" to add conf path to the new context.

 FINAL DOUBT

 Is it ensured by the tomcat container that any request that comes for
"/myapps/conf" will be directed to the new context deployed and not 
within

the sources. I have tested it and it seems to work as fine. But i need
official documentation (for my superiors not to say that i assume!!) 
which

shows the priority in which tomcat considers the request processing.

 I hope i m able to convey my query.

 thanks and regards,
foojava

 




-
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: Please Help! Error in using Packages

2005-12-20 Thread David Smith
Don't use the classpath if you can possibly avoid it.  Tomcat has a 
classloader scheme to handle this stuff for you.  The good old days of 
messing with the classpath weren't so good (early tomcat 3 releases). :-)


This website might help you get things together:
http://tomcat.apache.org/tomcat-4.1-doc/appdev/index.html

Here's a page that describes the  element you need to write 
into server.xml:

http://tomcat.apache.org/tomcat-4.1-doc/config/context.html

In general, the docs on the tomcat site are fairly complete and should 
be used along with your book.


--David

Teh Noranis Mohd Aris wrote:


Hi,
I'm using Windows XP operating system, I've already
set the servlet.jar file to the CLASSPATH. I'm using
Tomcat version 4.1.31. I haven't made the context for
"myfirstwebapp" in server.xml. How can it be done? The
explanation in the book I'm using is not that clear.
Please help. Thank you so much.

Yours Sincerely,
TEH 


--- marju jalloh <[EMAIL PROTECTED]> wrote:

 


What is your enviroment,which version are you using.
 Have you made context for "myfirstwebapp" in
server.xml
 
 -Marju


Teh Noranis Mohd Aris <[EMAIL PROTECTED]> wrote:
Hi,
I'm learning to use packages from a book example to
create my own servlet instead of putting the code in
the examples webapp. However the following error
occurs:

HTTP Status 404 -

   


/ch03/servlet/com.wrox.projsp.ch03.myfirstwebapp.MyFirstServlet
 



type Status report
message

   


/ch03/servlet/com.wrox.projsp.ch03.myfirstwebapp.MyFirstServlet
 


description The requested resource

   


(/ch03/servlet/com.wrox.projsp.ch03.myfirstwebapp.MyFirstServlet)
 


is not available.

Apache Tomcat/4.1.31

How can I fix the error? I'm sure that the servlet
is
in the correct directory and I've put the web.xml in
the WEB-INF directory. Did I miss anything? Please
help. Thanks.

Yours Sincerely,
TEH

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




__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam
protection around 
http://mail.yahoo.com 
   




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

 




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



How does tomcat parse multipart requests?

2005-12-20 Thread Sam Lee
Dear Guys,

 I want to know how tomcat parse multipart requests? Or tomcat does not
parse multipart requests at all?

I try to find the answer from tomcat 5.5 source,but failed because
don't know where to begin.

Thanks,

Sam


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



RE: Which is better Option

2005-12-20 Thread Karthik


Hi Form


  *Which Option [ advantages /limitations ] is Better ?*

  Certenly yes ,but need more clarifications [ assuming running on same
JVM ]



  with regards
Karthik

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Monday, December 19, 2005 7:18 PM
To: Tomcat Users List
Subject: Re: Which is better Option


jms - JMS can live in the same JVM or be moved to a new JVM without changing
any servlet code. (Only some config changes)


-Tim

Karthik wrote:

> Hi Form
>
>  Please somebody specify
>
>  Which Option [ advantages /limitations ] is Better ?
>
>1) Using a Servlet to created a seperate Thread for processing a Bulk
DB
> Task [ Off the limits of session time]
>2) Using JMS to handle the Bulk DB Task.


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


--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.14.1/206 - Release Date: 12/16/2005



-
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.x context path priority

2005-12-20 Thread David Smith
I'm not sure there is a documented spec on this at the container 
(tomcat) level.  One of the tomcat developers would know best about 
this, but I would imagine tomcat handles such issues the same way 
servlet mappings within a webapp are handled.  The longest matching path 
is the one that's chosen.



--David

foo java wrote:


Hi,

I am trying to find a "documented" solution for one of my problems with
tomcat contexts.

 I would like to ask about the tomcat servlet container( 5.x) and it's
prioritised handling of the context paths in the following situation. A
pointer to official documentation will be of much help to me.

 If you consider the following structure for my application(web) source:

 myapps
 myapps--conf
 myapps--JSP
 myapps--WEB-INF
 myapps--WEB-INF/classes
 


 The conf directory in my application holds css and images.
 Suppose, i deployed one of my context in tomcat as
 
 

The situation is there are many contexts deployed in the tomcat using the
same source (myapps). But, if i want to make some of the contexts to have
it's own conf directory and using the docbase as normal for sources. I am
planning to do it the following way:

 if i deploy one more context say /myapps/conf

 
 

 P.S: i have used a "/" to add conf path to the new context.

 FINAL DOUBT

 Is it ensured by the tomcat container that any request that comes for
"/myapps/conf" will be directed to the new context deployed and not within
the sources. I have tested it and it seems to work as fine. But i need
official documentation (for my superiors not to say that i assume!!) which
shows the priority in which tomcat considers the request processing.

 I hope i m able to convey my query.

 thanks and regards,
foojava

 




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



Re: Please Help! Error in using Packages

2005-12-20 Thread Teh Noranis Mohd Aris
Hi,
I'm using Windows XP operating system, I've already
set the servlet.jar file to the CLASSPATH. I'm using
Tomcat version 4.1.31. I haven't made the context for
"myfirstwebapp" in server.xml. How can it be done? The
explanation in the book I'm using is not that clear.
Please help. Thank you so much.

Yours Sincerely,
TEH 

--- marju jalloh <[EMAIL PROTECTED]> wrote:

> What is your enviroment,which version are you using.
>   Have you made context for "myfirstwebapp" in
> server.xml
>   
>   -Marju
> 
> Teh Noranis Mohd Aris <[EMAIL PROTECTED]> wrote:
>  Hi,
> I'm learning to use packages from a book example to
> create my own servlet instead of putting the code in
> the examples webapp. However the following error
> occurs:
> 
> HTTP Status 404 -
>
/ch03/servlet/com.wrox.projsp.ch03.myfirstwebapp.MyFirstServlet
> 
> type Status report
> message
>
/ch03/servlet/com.wrox.projsp.ch03.myfirstwebapp.MyFirstServlet
> description The requested resource
>
(/ch03/servlet/com.wrox.projsp.ch03.myfirstwebapp.MyFirstServlet)
> is not available.
> 
> Apache Tomcat/4.1.31
> 
> How can I fix the error? I'm sure that the servlet
> is
> in the correct directory and I've put the web.xml in
> the WEB-INF directory. Did I miss anything? Please
> help. Thanks.
> 
> Yours Sincerely,
> TEH
> 
> __
> 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]
> 
> 
> 
> 
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam
> protection around 
> http://mail.yahoo.com 


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



Re: Re: problem with stopping Tomcat

2005-12-20 Thread Warren Pace
mariju,
This is puzzling.  At this point, I would do exactly what you're planning.  
Good thing you saved the original files . . . after that, I'm at a loss short 
of removing the app and re-installing with apt.
> 
> From: marju jalloh <[EMAIL PROTECTED]>
> Date: 2005/12/19 Mon PM 02:18:22 EST
> To: Tomcat Users List 
> Subject: Re: Re: problem with stopping Tomcat
> 
> no I did not use apt. It was working but now on rebooting I got the following 
> error
> INFO: Initializing Coyote HTTP/1.1 on http-8080
> ServerLifecycleListener: createMBeans: MBeanException
> java.lang.Exception: ManagedBean is not found with Ajp13Connector
> at org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:180)
> at 
> org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:355)
> at 
> org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:807)
> at 
> org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:781)
> at 
> org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:325)
> at 
> org.apache.catalina.mbeans.ServerLifecycleListener.lifecycleEvent(ServerLifecycleListener.java:179)
> at 
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> at org.apache.catalina.core.StandardServer.start(StandardServer.java:2136)
> at org.apache.catalina.startup.Catalina.start(Catalina.java:463)
> at org.apache.catalina.startup.Catalina.execute(Catalina.java:350)
> at org.apache.catalina.startup.Catalina.process(Catalina.java:129)
> 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.main(Bootstrap.java:156)
> Starting service Tomcat-Standalone
> Apache Tomcat/4.1.31
> Sep 9, 2005 1:07:28 AM org.apache.commons.digester.Digester fatalError
> SEVERE: Parse Fatal Error at line 2 column 83: The system identifier must 
> begin with either a single or double quote character.
> org.xml.sax.SAXParseException: The system identifier must begin with either a 
> single or double quote character.
> at 
> org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown 
> Source)
> 
> I am now tryinh to sutituted my server.xml and web.xml fiel with the original 
> and see if it would work
> 
> thanks
> Marju
> 
> Warren Pace <[EMAIL PROTECTED]> wrote: Did you originally install Tomcat 
> using apt?  The Debian package configures Tomcat to listen on port 8180.  
> > 
> > From: marju jalloh 
> > Date: 2005/12/18 Sun PM 04:52:50 EST
> > To: Tomcat Users List 
> > Subject: Re: problem with stopping Tomcat
> > 
> > Sorry that I did`nt include these information
> > I`m using Tomcat 1.4.27  on linux Debian(serge). Tomcat start authomatic at 
> > startup.But during development I use shutdown.sh and startup.sh in the 
> > TOMECAT_HOME/bin directory
> > eg
> > shutdown.shto stop tomcat
> > startup.sh to start tomcat
> > 
> > Thanks,
> > Byfour
> > 
> > Steve Dodge  wrote: What's you environment? What version of Tomcat?  What 
> > command are you 
> > using to start it?
> > 
> > marju jalloh wrote:
> > 
> > > Hi everyone
> > >I havae problem with stopping tomcat.When I start it it show no sign of 
> > >error but I can`t get to my http:localhost:8080/ page if I tried to 
> > >restart Tomcat by sotpping and the starting I got thefollowing error 
> > >during stopping
> > >
> > >Catalina.stop: java.net.ConnectException: Connection refused
> > >java.net.ConnectException: Connection refused
> > >at java.net.PlainSocketImpl.socketConnect(Native Method)
> > >at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
> > >at 
> > > java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
> > >at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
> > >at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:364)
> > >at java.net.Socket.connect(Socket.java:507)
> > >at java.net.Socket.connect(Socket.java:457)
> > >at java.net.Socket.(Socket.java:365)
> > >at java.net.Socket.(Socket.java:178)
> > >at org.apache.catalina.startup.Catalina.stop(Catalina.java:532)
> > >at org.apache.catalina.startup.Catalina.execute(Catalina.java:352)
> > >at org.apache.catalina.startup.Catalina.process(Catalina.java:129)
> > >at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > >at 
> > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> > >at 
> > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> > > 

tomcat 5.x context path priority

2005-12-20 Thread foo java
Hi,

 I am trying to find a "documented" solution for one of my problems with
tomcat contexts.

  I would like to ask about the tomcat servlet container( 5.x) and it's
prioritised handling of the context paths in the following situation. A
pointer to official documentation will be of much help to me.

  If you consider the following structure for my application(web) source:

  myapps
  myapps--conf
  myapps--JSP
  myapps--WEB-INF
  myapps--WEB-INF/classes
  


  The conf directory in my application holds css and images.
  Suppose, i deployed one of my context in tomcat as
  
  

 The situation is there are many contexts deployed in the tomcat using the
same source (myapps). But, if i want to make some of the contexts to have
it's own conf directory and using the docbase as normal for sources. I am
planning to do it the following way:

  if i deploy one more context say /myapps/conf

  
  

  P.S: i have used a "/" to add conf path to the new context.

  FINAL DOUBT

  Is it ensured by the tomcat container that any request that comes for
"/myapps/conf" will be directed to the new context deployed and not within
the sources. I have tested it and it seems to work as fine. But i need
official documentation (for my superiors not to say that i assume!!) which
shows the priority in which tomcat considers the request processing.

  I hope i m able to convey my query.

  thanks and regards,
foojava


Regarding tomcat 5.x context path

2005-12-20 Thread foo java
Hi,

 I am trying to find a "documented" solution for one of my problems with
tomcat contexts.

  I would like to ask about the tomcat servlet container( 5.x) and it's
prioritised handling of the context paths in the following situation. A
pointer to official documentation will be of much help to me.

  If you consider the following structure for my application(web) source:

  myapps
  myapps--conf
  myapps--JSP
  myapps--WEB-INF
  myapps--WEB-INF/classes
  


  The conf directory in my application holds css and images.
  Suppose, i deployed one of my context in tomcat as
  
  

 The situation is there are many contexts deployed in the tomcat using the
same source (myapps). But, if i want to make some of the contexts to have
it's own conf directory and using the docbase as normal for sources. I am
planning to do it the following way:

  if i deploy one more context say /myapps/conf

  
  

  P.S: i have used a "/" to add conf path to the new context.

  FINAL DOUBT

  Is it ensured by the tomcat container that any request that comes for
"/myapps/conf" will be directed to the new context deployed and not within
the sources. I have tested it and it seems to work as fine. But i need
official documentation (for my superiors not to say that i assume!!) which
shows the priority in which tomcat considers the request processing.

  I hope i m able to convey my query.

  thanks and regards,
foojava


Re: Please Help! Error in using Packages

2005-12-20 Thread marju jalloh
What is your enviroment,which version are you using.
  Have you made context for "myfirstwebapp" in server.xml
  
  -Marju

Teh Noranis Mohd Aris <[EMAIL PROTECTED]> wrote:  Hi,
I'm learning to use packages from a book example to
create my own servlet instead of putting the code in
the examples webapp. However the following error
occurs:

HTTP Status 404 -
/ch03/servlet/com.wrox.projsp.ch03.myfirstwebapp.MyFirstServlet

type Status report
message
/ch03/servlet/com.wrox.projsp.ch03.myfirstwebapp.MyFirstServlet
description The requested resource
(/ch03/servlet/com.wrox.projsp.ch03.myfirstwebapp.MyFirstServlet)
is not available.

Apache Tomcat/4.1.31

How can I fix the error? I'm sure that the servlet is
in the correct directory and I've put the web.xml in
the WEB-INF directory. Did I miss anything? Please
help. Thanks.

Yours Sincerely,
TEH

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




__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

JBoss 4.0.3SP1 (Tomcat 5.0) Failed to determine servlet message

2005-12-20 Thread Stanislav
I have very strange problem.

As far as i see my web application works just fine, but when i look into log 
file i
see message:

2005-12-20 08:34:58,864 DEBUG
[org.jboss.web.tomcat.security.SecurityAssociationValve] Failed to
determine servlet
java.lang.ClassCastException: org.apache.catalina.realm.GenericPrincipal
at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:123)

at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:482)

at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)

at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)

at java.lang.Thread.run(Thread.java:595)

What this message means?

I use J2EE 1.4, Struts, Eclipse...


Tnx,

Stanislav

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



Re: Tomcat 5.5.12 clustering - messages lost under high load

2005-12-20 Thread Peter Rossbach

Hey,
Am 20.12.2005 um 01:09 schrieb Yogesh Prajapati:


On 12/18/05, Peter Rossbach <[EMAIL PROTECTED] > wrote:


Hey,

a)   Servlet Spec say: You must have sticky session when you use
distributable web apps. Session Replication is only used when  
primary node

crashed!!



I looked into the servlet spec (V 2.4). I did not find anything  
like "sticky

session" or "session replication". I do see the sentence in the spec:
"Within an application marked as distributable, all requests that  
are part

of a session must be handled by one Java Virtual Machine1 ("JVM") at a
time.", is this what you meant by using "Sticky Session"...if yes,  
it make

sense to me.


YES!


b)   When you app don't send a new request before the first is  
complete:

use pooled mode with waitForAck=true!
   It can work, but


can you please elaborate more on this ...I did not follow what you  
tried to

communicate?

Pooled mode is a synchronous mode. With waitForAck the response  
thread wait that all

backups are received the replication message.


c)   Rhe reported exception has nothing do with clustering, Seems that

your app send response, before open session. Violate Spec!



I think you are right, it is not a cluster exception But I don't  
see the
exception for every request, it appears randomly not sure what is  
causing
it, also I dont know how my JSP based app is violating the spec.  
All my JSPs

are doing is to use "" with two level nesting. E.g.

level_1.jsp:
<%@ include file="javaImport.jsp"%>
 ...
 ...
  
 ...
 ...

level_2.jsp:
<%@ include file="javaImport.jsp"%>
 ...
 ...
  
 ...
 ...

level_3.jsp:
<%@ include file="javaImport.jsp"%>
 ...
 ...
 ...

javaImport.jsp:

<%@ page import="
, java.lang.*
, java.sql.*
, java.util.*
, java.io.*
, java.text.*
, javax.mail.*
, javax.mail.internet.*
, org.apache.commons.fileupload.* " %>

<%
response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
response.setHeader("Pragma","no-cache"); //HTTP 1.0
response.setDateHeader ("Expires", -1); //prevents caching  
at the

proxy server
%>

<%! JspWriter out = null; %>


Why you set JspWriter out=null?? Thats wrong!
Implement the response header setting inside a servlet filter is better!

Peter


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