Number of java process increases...

2005-06-28 Thread Gulshan Babajee
Hi, am actually using tomcat version 5.0.28 on Red Hat Linux 6.2.
What i've notice is that each time i compile my java classes, copy them to
/WEB-INF/classes dir. and then redeploy my web application consisting of jsp
pages, I saw the number of java process increases when I do a 'ps -aux' 
That is if before compilation of my java classes there were 30 java
processes, then after compilation I saw 30 new java processes when I did a
'ps -aux'
The problem is that tomcat does not kill the previous java processes that
were associated with my old java classes. Subsequently if I do 5
compilation, I'll
get (5 x 40) java processes and finally I got an 'OutOfMemoryError'.
 
Can anyone please tell me what's the cause of the above problem and how to
resolve it.
thanks in advance

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.8.5/32 - Release Date: 27-06-2005
 


HTTP Status 404 - /admin

2005-06-28 Thread Sharath Srivatsa
Hi,
   I have loaded tomcat successfully.
   When i click Tomcat  Administration iam getting the following error.

HTTP Status 404 - /admin
type Status report
message /admin
description The requested resource (/admin) is not available.
Apache Tomcat/4.1.31

I have made the necessary changes in admin.xml as indicated in 
RUNNING.txt.
I have put the absolute path in the docBase of context element in 
admin.xml.
Can anyone help me how to get the administration page open successfully.
Thank You
Sharath

__

AW: Tomcat Just Shuts down without reason (that i can see)

2005-06-28 Thread Edao, Aliye
Hi!
 
Have you got solution? If yes just ignore this mail.
 
If not and if you are using UNIX/Linux System try the following:
 
Start tomcat in CSH Shell and let it run in background. There was a similar 
problem discussed 
on this list and the solution was to start tomcat in CSH.
 
Cheers,
Aliye
 
 
Mit freundlichem Gruß / kind regards 

Dr. Aliye Edao  
  

 
 Von: Simon Taylor [mailto:[EMAIL PROTECTED] 
Gesendet: Montag, 27. Juni 2005 22:18
An: tomcat-user@jakarta.apache.org
Betreff: Tomcat Just Shuts down without reason (that i can see)



Tomcat 4.1.31 - Solaris 9 - Java 1.5
 
Currently Tomcat shuts down after what seems to be a variable amount of 
time.
All contexts within the host are shut down
 
And the following are evident in the logs:-
 
log1
2005-06-27 17:15:41 StandardHost[localhost]: Removing web application 
at context path /admin
2005-06-27 17:15:41 StandardHost[localhost]: Removing web application 
at context path /webdav
2005-06-27 17:15:41 StandardHost[localhost]: Removing web application 
at context path /examples
2005-06-27 17:15:41 StandardHost[localhost]: Removing web application 
at context path /tomcat-docs
2005-06-27 17:15:41 StandardHost[localhost]: Removing web application 
at context path /arsys
2005-06-27 17:15:41 StandardHost[localhost]: Removing web application 
at context path 
2005-06-27 17:15:41 StandardHost[localhost]: Removing web application 
at context path /manager

log2
2005-06-27 17:15:41 StandardContext[/arsys]: Stopping
2005-06-27 17:15:41 StandardContext[/arsys]: Stopping filters
2005-06-27 17:15:41 StandardContext[/arsys]: Sending application stop 
events
2005-06-27 17:15:41 StandardContext[/arsys]: Processing standard 
container shutdown
2005-06-27 17:15:41 ContextConfig[/arsys]: ContextConfig: Processing 
STOP
2005-06-27 17:15:41 StandardContext[/arsys]: Stopping complete

log3
2005-06-27 17:15:41 SessionListener: contextDestroyed()
2005-06-27 17:15:41 ContextListener: contextDestroyed()
 
 

Looks like its performing a normal shutdown to me - but why? is it an 
inactivity timeout - as i am not seeing any activity around the time of the 
shutdown.
 
This is the second server we have had this happen on and on two 
different versions of tomcat and two versions of Java.
 
Any ideas?

Simon Taylor (Engineer)
Service Tools Solutions (STS)
Nortel 
p - 01628 617291 (ESN 6 861 7291)
m - 07740 533743 (ESN 748 3743)
e - [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]  



 



Re: Apache2+JK2+Tomcat-5.028 URI UTF-8 problem

2005-06-28 Thread Bruno Georges
Hi Luis

Why don't you start with mod_jk as opposed to mod_jk2, mod_jk is more
recent than mod_jk2
Check the apache httpd.conf for the following directives
AddLanguage
AddDefaultCharset  UTF-8

Also make sure use in your servlet/JSP:
request.setCharacterEncoding(UTF-8);

Bruno Georges

Glencore International AG
Tel. +41 41 709 3204
Fax +41 41 709 3000


|-+
| |   Luis Sánchez Sánchez |
| |   luis.sanchez.sanchez|
| |   @gmail.com  |
| ||
| |   28.06.05 01:44   |
| |   Please respond to|
| |   Tomcat Users List  |
| ||
|-+
  
--|
  | 
 |
  |To:  tomcat-user@jakarta.apache.org  
 |
  |cc:  
 |
  |Subject: Apache2+JK2+Tomcat-5.028  URI UTF-8 problem   
 |
  | 
 |
  |Distribute:  
 |
  |Personal?   |---|
 |
  || [ ] x |
 |
  ||---|
 |
  | 
 |
  
--|




It's about apache-tomcat configuration with
UTF-8. I added URI encoding to the tomcat configuration and I set
defaultcharset utf-8
in apache2. Im using mod_jk2. It doesnt work when I use special
characters like áéíóúñ...

If I use URL with port 8080 (tomcat
answers) It's fine but If I use the redirection apache-tomcat it
doesn't work... Any suggestion?

Thanks

--
Luis Sánchez Sánchez [EMAIL PROTECTED]



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





*  
*  LEGAL DISCLAIMER
*  This message contains confidential information for
*  the exclusive use of the person mentioned above.
*


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

How to modify default language of Tomcat?

2005-06-28 Thread Kevin Kang \(CSS\)
As title said, which configuration file should be modified? And how?
Thanks.

 

Best Regards

Kevin Kang

MSN: [EMAIL PROTECTED]

[EMAIL PROTECTED]

 



RE: How to modify default language of Tomcat?

2005-06-28 Thread A jie

server.xml.



--
MSN:[EMAIL PROTECTED]
QQ:29967409
-





From: Kevin Kang (CSS) [EMAIL PROTECTED]
Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
To: Tomcat User Mailing List tomcat-user@jakarta.apache.org
Subject: How to modify default language of Tomcat?
Date: Tue, 28 Jun 2005 15:28:42 +0800

As title said, which configuration file should be modified? And how?
Thanks.



Best Regards

Kevin Kang

MSN: [EMAIL PROTECTED]

[EMAIL PROTECTED]





_
免费下载 MSN Explorer:   http://explorer.msn.com/lccn/  



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



RE: How to modify default language of Tomcat?

2005-06-28 Thread Kevin Kang \(CSS\)
And how, which line in server.xml, thanks.

Best Regards
Kevin Kang
MSN: [EMAIL PROTECTED]
[EMAIL PROTECTED]
-Original Message-
From: A jie [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 28, 2005 3:33 PM
To: tomcat-user@jakarta.apache.org
Subject: RE: How to modify default language of Tomcat?

server.xml.



--
 MSN:[EMAIL PROTECTED]
 QQ:29967409
-




From: Kevin Kang (CSS) [EMAIL PROTECTED]
Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
To: Tomcat User Mailing List tomcat-user@jakarta.apache.org
Subject: How to modify default language of Tomcat?
Date: Tue, 28 Jun 2005 15:28:42 +0800

As title said, which configuration file should be modified? And how?
Thanks.



Best Regards

Kevin Kang

MSN: [EMAIL PROTECTED]

[EMAIL PROTECTED]




_
免费下载 MSN Explorer:   http://explorer.msn.com/lccn/  


-
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: ClientAbortException: java.net.SocketException: Connection reset by peer: socket write error

2005-06-28 Thread Allistair Crossley
Which line of code is on 71?

helloworldservlet.ServletVideo.streamBinaryData(ServletVideo.java:71)

In your finally block, you are closing the servlet output stream, I wonder if 
that's causing tomcat a problem since it usually closes the servlet output 
stream itself? 

Humour me and change

if( outstr != null ) {
outstr.flush();
outstr.close();
}

to 

if( outstr != null ) {
outstr.flush();
}


 -Original Message-
 From: Adriana Suarez [mailto:[EMAIL PROTECTED]
 Sent: 28 June 2005 04:33
 To: tomcat-user@jakarta.apache.org
 Subject: ClientAbortException: java.net.SocketException: Connection
 reset by peer: socket write error
 
 
 Hello,
 
 I got this exception and I don't know how to solve it, I have a web
 application with a servlet which sends video with formats avi, mpeg,
 and mov, it shows the video but the tomcat throws this exception:
 
 ClientAbortException:  java.net.SocketException: Connection reset by
 peer: socket write error
   at 
 org.apache.coyote.tomcat5.OutputBuffer.realWriteBytes(OutputBu
 ffer.java:373)
   at 
 org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:323)
   at 
 org.apache.coyote.tomcat5.OutputBuffer.writeBytes(OutputBuffer
 .java:401)
   at 
 org.apache.coyote.tomcat5.OutputBuffer.write(OutputBuffer.java:388)
   at 
 org.apache.coyote.tomcat5.CoyoteOutputStream.write(CoyoteOutpu
 tStream.java:76)
   at 
 java.io.BufferedOutputStream.write(BufferedOutputStream.java:106)
   at 
 helloworldservlet.ServletVideo.streamBinaryData(ServletVideo.java:71)
   at helloworldservlet.ServletVideo.doGet(ServletVideo.java:37)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
 er(ApplicationFilterChain.java:237)
   at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
 cationFilterChain.java:157)
   at 
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
 rapperValve.java:214)
   at 
 org.apache.catalina.core.StandardValveContext.invokeNext(Stand
 ardValveContext.java:104)
   at 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:520)
   at 
 org.apache.catalina.core.StandardContextValve.invokeInternal(S
 tandardContextValve.java:198)
   at 
 org.apache.catalina.core.StandardContextValve.invoke(StandardC
 ontextValve.java:152)
   at 
 org.apache.catalina.core.StandardValveContext.invokeNext(Stand
 ardValveContext.java:104)
   at 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:520)
   at 
 org.apache.catalina.core.StandardHostValve.invoke(StandardHost
 Valve.java:137)
   at 
 org.apache.catalina.core.StandardValveContext.invokeNext(Stand
 ardValveContext.java:104)
   at 
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport
 Valve.java:117)
   at 
 org.apache.catalina.core.StandardValveContext.invokeNext(Stand
 ardValveContext.java:102)
   at 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:520)
   at 
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEn
 gineValve.java:109)
   at 
 org.apache.catalina.core.StandardValveContext.invokeNext(Stand
 ardValveContext.java:104)
   at 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:520)
   at 
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
   at 
 org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.
 java:160)
   at 
 org.apache.coyote.http11.Http11Processor.process(Http11Process
 or.java:799)
   at 
 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandle
 r.processConnection(Http11Protocol.java:705)
   at 
 org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoi
 nt.java:577)
   at 
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
 ThreadPool.java:683)
   at java.lang.Thread.run(Thread.java:534)
 
 and this is where the code fails:
 
  private void streamBinaryData(String urlstr,String
 format,ServletOutputStream outstr, HttpServletResponse resp)
   {
 String ErrorStr = null;
 try{
   //find the right mime type and set it as contenttype
   resp.setContentType(getMimeType(format));
   BufferedInputStream bis = null;
   BufferedOutputStream bos = null;
   try{
   URL url = new URL(urlstr);
   URLConnection urlc= url.openConnection();
   int length =urlc.getContentLength();
   resp.setContentLength(length);
   // Use Buffered Stream for reading/writing.
   InputStream in = urlc.getInputStream();
   bis = new BufferedInputStream(in);
   bos = new BufferedOutputStream(outstr);
   byte[] buff = new byte[length];
   int bytesRead;
   // Simple 

Re: Apache2+JK2+Tomcat-5.028 URI UTF-8 problem

2005-06-28 Thread Luis Sánchez Sánchez
Thanks Bruno, I believed mod_jk was for apache and mod_jk2 for apache2.
I'll try it.



El mar, 28-06-2005 a las 08:32 +0200, Bruno Georges escribió:
 Hi Luis
 
 Why don't you start with mod_jk as opposed to mod_jk2, mod_jk is more
 recent than mod_jk2
 Check the apache httpd.conf for the following directives
 AddLanguage
 AddDefaultCharset  UTF-8
 
 Also make sure use in your servlet/JSP:
 request.setCharacterEncoding(UTF-8);
 
 Bruno Georges
 
 Glencore International AG
 Tel. +41 41 709 3204
 Fax +41 41 709 3000
 
 
 |-+
 | |   Luis Sánchez Sánchez |
 | |   luis.sanchez.sanchez|
 | |   @gmail.com  |
 | ||
 | |   28.06.05 01:44   |
 | |   Please respond to|
 | |   Tomcat Users List  |
 | ||
 |-+
   
 --|
   |   
|
   |To:  tomcat-user@jakarta.apache.org
|
   |cc:
|
   |Subject: Apache2+JK2+Tomcat-5.028  URI UTF-8 problem 
|
   |   
|
   |Distribute:
|
   |Personal?   |---|  
|
   || [ ] x |  
|
   ||---|  
|
   |   
|
   
 --|
 
 
 
 
 It's about apache-tomcat configuration with
 UTF-8. I added URI encoding to the tomcat configuration and I set
 defaultcharset utf-8
 in apache2. Im using mod_jk2. It doesnt work when I use special
 characters like áéíóúñ...
 
 If I use URL with port 8080 (tomcat
 answers) It's fine but If I use the redirection apache-tomcat it
 doesn't work... Any suggestion?
 
 Thanks
 
 --
 Luis Sánchez Sánchez [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 *  
 *  LEGAL DISCLAIMER
 *  This message contains confidential information for
 *  the exclusive use of the person mentioned above.
 *
 
 
 -
 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: ClientAbortException: java.net.SocketException: Connection reset by peer: socket write error

2005-06-28 Thread Ronald Klop

This exception means the client (browser) has closed the connection before 
Tomcat send all its data. If the application works you should ignore this. My 
log is full of it. It also happens if you download something large from Tomcat 
and click cancel during the download.

Ronald.

On Tue Jun 28 10:04:14 CEST 2005 Tomcat Users List 
tomcat-user@jakarta.apache.org wrote:

Which line of code is on 71?

helloworldservlet.ServletVideo.streamBinaryData(ServletVideo.java:71)

In your finally block, you are closing the servlet output stream, I wonder if that's causing tomcat a problem since it usually closes the servlet output stream itself? 


Humour me and change

if( outstr != null ) {
outstr.flush();
outstr.close();
}

to 


if( outstr != null ) {
outstr.flush();
}


 -Original Message-
 From: Adriana Suarez [mailto:[EMAIL PROTECTED]
 Sent: 28 June 2005 04:33
 To: tomcat-user@jakarta.apache.org
 Subject: ClientAbortException: java.net.SocketException: Connection
 reset by peer: socket write error
 
 
 Hello,
 
 I got this exception and I don't know how to solve it, I have a web

 application with a servlet which sends video with formats avi, mpeg,
 and mov, it shows the video but the tomcat throws this exception:
 
 ClientAbortException: java.net.SocketException: Connection reset by

 peer: socket write error
 at 
 org.apache.coyote.tomcat5.OutputBuffer.realWriteBytes(OutputBu

 ffer.java:373)
 at 
 org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:323)
 at 
 org.apache.coyote.tomcat5.OutputBuffer.writeBytes(OutputBuffer

 .java:401)
 at 
 org.apache.coyote.tomcat5.OutputBuffer.write(OutputBuffer.java:388)
 at 
 org.apache.coyote.tomcat5.CoyoteOutputStream.write(CoyoteOutpu

 tStream.java:76)
 at 
 java.io.BufferedOutputStream.write(BufferedOutputStream.java:106)
 at 
 helloworldservlet.ServletVideo.streamBinaryData(ServletVideo.java:71)

 at helloworldservlet.ServletVideo.doGet(ServletVideo.java:37)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilt

 er(ApplicationFilterChain.java:237)
 at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli

 cationFilterChain.java:157)
 at 
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardW

 rapperValve.java:214)
 at 
 org.apache.catalina.core.StandardValveContext.invokeNext(Stand

 ardValveContext.java:104)
 at 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel

 ine.java:520)
 at 
 org.apache.catalina.core.StandardContextValve.invokeInternal(S

 tandardContextValve.java:198)
 at 
 org.apache.catalina.core.StandardContextValve.invoke(StandardC

 ontextValve.java:152)
 at 
 org.apache.catalina.core.StandardValveContext.invokeNext(Stand

 ardValveContext.java:104)
 at 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel

 ine.java:520)
 at 
 org.apache.catalina.core.StandardHostValve.invoke(StandardHost

 Valve.java:137)
 at 
 org.apache.catalina.core.StandardValveContext.invokeNext(Stand

 ardValveContext.java:104)
 at 
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport

 Valve.java:117)
 at 
 org.apache.catalina.core.StandardValveContext.invokeNext(Stand

 ardValveContext.java:102)
 at 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel

 ine.java:520)
 at 
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEn

 gineValve.java:109)
 at 
 org.apache.catalina.core.StandardValveContext.invokeNext(Stand

 ardValveContext.java:104)
 at 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel

 ine.java:520)
 at 
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
 at 
 org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.

 java:160)
 at 
 org.apache.coyote.http11.Http11Processor.process(Http11Process

 or.java:799)
 at 
 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandle

 r.processConnection(Http11Protocol.java:705)
 at 
 org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoi

 nt.java:577)
 at 
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(

 ThreadPool.java:683)
 at java.lang.Thread.run(Thread.java:534)
 
 and this is where the code fails:
 
 private void streamBinaryData(String urlstr,String

 format,ServletOutputStream outstr, HttpServletResponse resp)
 {
 String ErrorStr = null;
 try{
 //find the right mime type and set it as contenttype
 resp.setContentType(getMimeType(format));
 BufferedInputStream bis = null;
 BufferedOutputStream bos = null;
 try{
 URL url = new URL(urlstr);
 URLConnection urlc= url.openConnection();
 int length =urlc.getContentLength();
 resp.setContentLength(length);
 // Use Buffered Stream for reading/writing.
 InputStream in = urlc.getInputStream();
 bis = new BufferedInputStream(in);
 bos = new BufferedOutputStream(outstr);
 byte[] buff = new byte[length];
 int bytesRead;
 // Simple read/write loop.
 while(-1 != 

Re: Properly setting src attribute for an img tag in a JSP

2005-06-28 Thread Tim Diggins

Hi Ryan -

the problem you're having is not one I've had (and it doesn't sound very 
familiar). Some ideas for looking at though: How are you deploying your 
application? Are you just editing your files in place? Does this problem 
go away when your restart tomcat? Have you checked the logs? Have you 
got any security on your webapp? Are you running this on windows and 
have some slight case-mismatch (I notice your contextpath is capitalised 
- it makes life easier to use all lower case, everywhere, in URLS, 
unless you've got a really good reason).


Try recreating the problem with a brand new webapp.
Try changing the src of a your image to a literal absolute src 
(http://localhost:8085/Company/img/image.jpg).
Trye changing the img src... to a href..., at least that way you'll be 
able to see the request in process...

check the logs for each.

BTW The reason you can see it after one successful load is probably that 
it is then in the cache of your browser (or more scarily, an upstream 
caching-proxy) - there are usually settings in your browser control panel.


after you get some of the results of these diagnostic moves, you could 
come back to the list for more.


-- Tim




Ryan Champlin wrote:

All,

Can someone at least let me know what the proper way to set the src attribute on an img 
tag is?  I've currently used relative ../img/image.jpg and also the following:

img src=%=request.getContextPath()%/img/image.jpg/

When using either I'm seeing the same URL show up at the browser when getting properties on the unfound image.  I'm able to load that image in the browser using that path only after I've taken the file name off and see the directory listing.  Then I'm able to put the image name back in and access the image.  This is really getting frustrating as I can't get a single image to show up in any of my JSP's.  


I even tried creating a simple HTML page, not a JSP, with an img tag and that 
image can't be found either.  Same type of case as mentioned in my previous 
post.  It can't load the image from that URL.  But as soon as I hack off the 
file name and get the directory listing I can then readd the file name and the 
file will load in the browser.  Any clue??  I'm completely stuck on this one.

Ryan

-Original Message-
From: Anoop kumar V [mailto:[EMAIL PROTECTED]
Sent: Monday, June 27, 2005 4:34 PM
To: Tomcat Users List
Subject: Re: img tag's src not working for image files in a JSP in
tomcat 5.5


Even I faced this frustrating problem recently - I couldnt really
solved it and just switched images - (I created a new image and it
somehow worked). I am just trying to get u a workaround (not
exactly a cause analysis of your problem) - HTH

-Anoop

On 6/27/05, Ryan Champlin [EMAIL PROTECTED] wrote:


I've tried clearing my browser cach and tried both Firefox and IE.  Neither 
seem to be able to access those images at that location.  So I don't think it's 
the browser necessarily.

Not using SSL and don't have any security in place for this application.

Ryan

-Original Message-
From: Jason Bainbridge [mailto:[EMAIL PROTECTED]
Sent: Monday, June 27, 2005 3:46 PM
To: Tomcat Users List
Subject: Re: img tag's src not working for image files in a JSP in
tomcat 5.5


Sounds like a browser caching issue or maybe some referrer checking
getting in the way although I don't how that would be setup in Tomcat.

Are you using SSL or have any other types of constriants in place?

Regards,
--
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

On 6/27/05, Ryan Champlin [EMAIL PROTECTED] wrote:


All,

I've read quite a few articles on this issue and tried all the solutions given 
and none of them seem to be working.
I'm using Netbeans 4.1 with Tomcat 5.5.  My application is using the MVC patter 
so I have a controller that is using the request dispatcher to forward a 
request to a JSP page.

Basically I have an application at the context /Company.

I have all my images in a folder called img and all my JSP's in a folder called 
jsp.

I've tried using relative paths to the image directory and the images don't 
show up in the browser however if I look at the URL it seems right.
I right-clicked to get properties and copied the URL:

http://localhost:8085/Company/img/image.jpg

If I paste that into a browser I get a 404 error from Tomcat.  However, if I 
take off the image name and do:

http://localhost:8085/Company/img

I get a listing of the image files.  If I click on the link for the image 
image.jpg it opens the file in the browser and I see the URL as:

http://localhost:8085/Company/img/image.jpg

which is exactly the same as what I had manually typed in.  Doesn't make any 
sense to me as to why it works one way and not the other.  Possibly a 
permissions issue?

Can anyone shed some light on why I can't get my image files to show up in my 
JSP pages?

Thanks,
Ryan





-
To 

Tomcat 5.5.9 and CVS project file on Linux

2005-06-28 Thread Giacomino Raccuia

Hi,
thanks to this list I installed and configured correctly tomcat 5.5.9 to 
work properly with my production eviroment, now I'd like to configure 
one instance of tomcat for every developer that works to my web site.


I configured a new directory of tomcat and change the web server port, 
in the webapps directory I created a link to developer directory ( in 
the developer enviroment the file are under CVS repository, so when I 
modify a page I must checkout the file).
When I try to access at this new tomcat instance, the tomcat return the 
error


File /include/precontent-nocache.jsp not found

I'm sure that the file are in the correct directory.
If I change the directory on webapps with production directory works correctly.

Do you have any idea??

Thank.
Mino





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



Problems serving files to download

2005-06-28 Thread Roberto Rios
Hi,
 
I have a tomcat 4.1.31 (j2sdk1.4.2_08) running in a linux rh9 box. It's
a fresh install.
 
I'm from Brazil, so I've configured my linux to use pt_BR.ISO-8859-1. If
I type locale, everything is ok.
 
My CATALINA_OPTS has the -Dfile.encoding=ISO-8859-1
 
I have no problems with my applications. Everithing works fine. All my
pages are compiled fine, my servlets work fine, etc...
 
But, if I try to serve files to download, and this files had special
characters like çãíetc, when I click the file name (that is
displayed right), I receive the 404 HTTP error.
 
For instance: using vi, I created a file named acentuação.txt inside
the tomcat-docs directory. When I try to access this file, it's name is
encoded to acentua%C3%A7%C3%A3o.txt (the address shows
http://localhost/tomcat-docs/acentua%C3%A7%C3%A3o.txt
http://localhost/tomcat-docs/acentua%C3%A7%C3%A3o.txt), and after that I
can't access it. I tryed to use Firefox (1.0.4) and IE 6, but I got the
same problem
 
How do I manage this? Who encoded the name?
 
TIA,
 
Bob


Mail Session ClassCastException

2005-06-28 Thread Carlos Bracho
Hello everybody.

I am trying to get a mail session using the context's lookup method and I 
get a ClassCastException.

this is the resource declaration in my context.xml:

Resource name=mail/sessionMail auth=Container type=javax.mail.Session 
mail.smtp.host=localhost/

the code I am using to lookup the resource is:

Context initialContext = new InitialContext();
Object objeto = initialContext.lookup(java:comp/env/mail/sessionMail);
String clase = objeto.getClass().getName();
if(objeto instanceof javax.mail.Session)
{
this.session = (javax.mail.Session) objeto;
}

when I debug that code I see the clase variable has javax.mail.Session 
as value but the if test does not pass

Can anybody help men??

thanks

-- 
--
Carlos J, Bracho M. 
--
e-mail: [EMAIL PROTECTED]
MSN: [EMAIL PROTECTED]
+58 416 409 21 75 
--


RE: Problems serving files to download

2005-06-28 Thread Robert Harper
Try the following if you are trying to read the following in a servlet:

String s = java.net.URLDecoder.decode(
http://localhost/tomcat-docs/acentua%C3%A7%C3%A3o.txt;, UTF-8 );

You can read the file and write it out to the response stream. Since this is
a text file it will be displayed in the browser window. The user may then
save the file from the browser. 

Robert S. Harper
Information Access Technology, Inc.

-Original Message-
From: Roberto Rios [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 28, 2005 7:49 AM
To: 'Tomcat Users List'
Subject: Problems serving files to download

Hi,
 
I have a tomcat 4.1.31 (j2sdk1.4.2_08) running in a linux rh9 box. It's
a fresh install.
 
I'm from Brazil, so I've configured my linux to use pt_BR.ISO-8859-1. If
I type locale, everything is ok.
 
My CATALINA_OPTS has the -Dfile.encoding=ISO-8859-1
 
I have no problems with my applications. Everithing works fine. All my
pages are compiled fine, my servlets work fine, etc...
 
But, if I try to serve files to download, and this files had special
characters like çãíetc, when I click the file name (that is
displayed right), I receive the 404 HTTP error.
 
For instance: using vi, I created a file named acentuação.txt inside
the tomcat-docs directory. When I try to access this file, it's name is
encoded to acentua%C3%A7%C3%A3o.txt (the address shows
http://localhost/tomcat-docs/acentua%C3%A7%C3%A3o.txt
http://localhost/tomcat-docs/acentua%C3%A7%C3%A3o.txt), and after that I
can't access it. I tryed to use Firefox (1.0.4) and IE 6, but I got the
same problem
 
How do I manage this? Who encoded the name?
 
TIA,
 
Bob



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



RES: Problems serving files to download

2005-06-28 Thread Roberto Rios
Hi,

Thanks for replying. No, I'm not using servlets to read the files.

The files are being served directly by tomcat. I have configured tomcat
to allow directory linstings, so I can see the files in the directory
and click on it directly.

By the way, the same problem occurs with files that have spaces in their
names. If I try to download a file named this is an example.txt the
same error occurs. The file name is encoded to
this%20is%20an%20example.txt and after that I'm not able to download
it.

Using your sugestion, I created a small jsp with the following code:

%
String s = java.net.URLDecoder.decode(
http://localhost/tomcat-docs/acentua%C3%A7%C3%A3o.txt;, UTF-8 );
Reponse.sendRedirect(s);
%

It works fine. I was able to download the file. The problem is that as I
said, the files are being served directly, and I am trying to understand
why tomcat isn't able to decode the url properly... Well, I'm not sure
if this is or not a tomcat misconfiguration problem...

Thanks again,

Bob

-Mensagem original-
De: Robert Harper [mailto:[EMAIL PROTECTED] 
Enviada em: terça-feira, 28 de junho de 2005 11:12
Para: 'Tomcat Users List'; [EMAIL PROTECTED]
Assunto: RE: Problems serving files to download


Try the following if you are trying to read the following in a servlet:

String s = java.net.URLDecoder.decode(
http://localhost/tomcat-docs/acentua%C3%A7%C3%A3o.txt;, UTF-8 );

You can read the file and write it out to the response stream. Since
this is a text file it will be displayed in the browser window. The user
may then save the file from the browser. 

Robert S. Harper
Information Access Technology, Inc.

-Original Message-
From: Roberto Rios [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 28, 2005 7:49 AM
To: 'Tomcat Users List'
Subject: Problems serving files to download

Hi,
 
I have a tomcat 4.1.31 (j2sdk1.4.2_08) running in a linux rh9 box. It's
a fresh install.
 
I'm from Brazil, so I've configured my linux to use pt_BR.ISO-8859-1. If
I type locale, everything is ok.
 
My CATALINA_OPTS has the -Dfile.encoding=ISO-8859-1
 
I have no problems with my applications. Everithing works fine. All my
pages are compiled fine, my servlets work fine, etc...
 
But, if I try to serve files to download, and this files had special
characters like çãíetc, when I click the file name (that is
displayed right), I receive the 404 HTTP error.
 
For instance: using vi, I created a file named acentuação.txt inside
the tomcat-docs directory. When I try to access this file, it's name is
encoded to acentua%C3%A7%C3%A3o.txt (the address shows
http://localhost/tomcat-docs/acentua%C3%A7%C3%A3o.txt
http://localhost/tomcat-docs/acentua%C3%A7%C3%A3o.txt), and after that I
can't access it. I tryed to use Firefox (1.0.4) and IE 6, but I got the
same problem
 
How do I manage this? Who encoded the name?
 
TIA,
 
Bob



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



Re: problems with Fedora Core 4

2005-06-28 Thread Duong BaTien
On Mon, 2005-06-27 at 22:56 -0700, Paul Constantine wrote:
 Note: this is not meant to be a detailed bug report. I'm just fishing to see
 if anyone else is having some these problems.
 
 Hi, I'm a newbie on the list. I've used tomcat with Windows-IIS for about a
 year, and I just made the switch to Apache on Fedora Core 4. Tomcat 5 comes
 packaged with the FC4 distro, but it's using the GCJ jvm; I'm used to using
 Sun's jvm. 
 
 A couple of issues: (1) It took me days to configure mod_jk to link Apache
 and Tomcat. The documentation sucks. I think I finally got it right after
 quite a bit of trial and error. (2) Now I can access the standard built-in
 webapps through something like http://localhost/jsp-examples/ without any
 problem. So I threw the JSPWiki.war into my webapps directory. It unpacked
 just fine, but when I tried to access it through http://localhost/JSPWiki/,
 I got a permission denied error. I'm quite certain that my permissions are
 set correctly. (3) I tried accessing it on the standard http connecter (i.e.
 http://localhost:8080/JSPWiki/) and I get 'WikiEngine not properly started'
 JasperException. (4) I also installed Sun's jvm and pointed Tomcat there,
 but now Tomcat won't work at all.
 

I have successfully installed Fedora Core 4, tomcat 5.5.9 and the latest
JspWiki. Everything works as expected under a very complex jsf system.

Since all of my pages are dynamic (assembled from jsf + tiles), i just
use tomcat and iptables to route port 80 - 8080, 443 - 8443.

 It's all very weird, but here's my theory. The permission denied error I'm
 getting when accessing it through Apache is really just a cover for the
 JasperException I'm getting through the http connector. The real problem
 might be that JSPWiki (and probably lots of other apps I want to use) won't
 work with the GCJ jvm. I'm thinking about uninstalling the packaged Tomcat 5
 that came with FC4 and reinstalling it pointing at Sun's jvm.
 
Yes, this may be a good idea. Using other poeple's pre-packages, you do
not know what is going on. I generally take 1 package at a time and
integrate them together.

 Has anyone else had experience using Tomcat 5 on FC4? Or have you had any
 problems similar to this?
 
Yes, tomcat 5.5.9, FC4, and JspWiki are working fine together.

 Thanks in advance,
 Paul Constantine
 
 
BaTien
DBGROUPS

 
 -
 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: ClientAbortException: java.net.SocketException: Connection reset by peer: socket write error

2005-06-28 Thread Tim Funk
Connection reset by peer means the client disconnected before all the data 
was sent.


-Tim


Adriana Suarez wrote:

Hello,

I got this exception and I don't know how to solve it, I have a web
application with a servlet which sends video with formats avi, mpeg,
and mov, it shows the video but the tomcat throws this exception:

ClientAbortException:  java.net.SocketException: Connection reset by
peer: socket write error
at 
org.apache.coyote.tomcat5.OutputBuffer.realWriteBytes(OutputBuffer.java:373)


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



connecting IIS and Tomcat

2005-06-28 Thread Brereton, Stephen
I'm in process of getting IIS to use Tomcat (for the obvious) but have hit a
problem. 
As far as I can tell, the config files are all as they should be, but on
restarting the server and requesting the page I want, a blank is returned
and jk_IIS.log has this in it::

###

[Tue Jun 28 17:25:57 2005]  [jk_isapi_plugin.c (1018)]: Using registry.
[Tue Jun 28 17:25:57 2005]  [jk_isapi_plugin.c (1020)]: Using log file
G:\Program Files\Apache Software Foundation\Tomcat 5.0\logs\jk_iis.log.
[Tue Jun 28 17:25:57 2005]  [jk_isapi_plugin.c (1021)]: Using log level 0.
[Tue Jun 28 17:25:57 2005]  [jk_isapi_plugin.c (1022)]: Using extension uri
/tomcat/isapi_redirector.dll.
[Tue Jun 28 17:25:57 2005]  [jk_isapi_plugin.c (1023)]: Using worker file
G:\Program Files\Apache Software Foundation\Tomcat
5.0\conf\workers2.properties.
[Tue Jun 28 17:25:57 2005]  [jk_isapi_plugin.c (1024)]: Using worker mount
file G:\Program Files\Apache Software Foundation\Tomcat
5.0\conf\uriworkermap.properties.
[Tue Jun 28 17:25:57 2005]  [jk_isapi_plugin.c (1025)]: Using uri select 0.
[Tue Jun 28 17:25:57 2005]  [jk_uri_worker_map.c (172)]: Into
jk_uri_worker_map_t::uri_worker_map_alloc
[Tue Jun 28 17:25:57 2005]  [jk_uri_worker_map.c (375)]: Into
jk_uri_worker_map_t::uri_worker_map_open
[Tue Jun 28 17:25:57 2005]  [jk_uri_worker_map.c (396)]:
jk_uri_worker_map_t::uri_worker_map_open, rule map size is 7
[Tue Jun 28 17:25:57 2005]  [jk_uri_worker_map.c (321)]: Into
jk_uri_worker_map_t::uri_worker_map_open, match rule /examples/=testWorker
was added
[Tue Jun 28 17:25:57 2005]  [jk_uri_worker_map.c (321)]: Into
jk_uri_worker_map_t::uri_worker_map_open, match rule /raid-test/=raid was
added
[Tue Jun 28 17:25:57 2005]  [jk_uri_worker_map.c (321)]: Into
jk_uri_worker_map_t::uri_worker_map_open, match rule /=raid was added
[Tue Jun 28 17:25:57 2005]  [jk_uri_worker_map.c (321)]: Into
jk_uri_worker_map_t::uri_worker_map_open, match rule /raid-test/tomcat/=raid
was added
[Tue Jun 28 17:25:57 2005]  [jk_uri_worker_map.c (321)]: Into
jk_uri_worker_map_t::uri_worker_map_open, match rule
/raid-test.york.gov.uk/tomcat/=raid was added
[Tue Jun 28 17:25:57 2005]  [jk_uri_worker_map.c (321)]: Into
jk_uri_worker_map_t::uri_worker_map_open, match rule
/raid-test.york.gov.uk/=raid was added
[Tue Jun 28 17:25:57 2005]  [jk_uri_worker_map.c (321)]: Into
jk_uri_worker_map_t::uri_worker_map_open, match rule /raid/=raid was added
[Tue Jun 28 17:25:57 2005]  [jk_uri_worker_map.c (408)]: Into
jk_uri_worker_map_t::uri_worker_map_open, there are 7 rules
[Tue Jun 28 17:25:57 2005]  [jk_uri_worker_map.c (422)]:
jk_uri_worker_map_t::uri_worker_map_open, done
[Tue Jun 28 17:25:57 2005]  [jk_worker.c (88)]: Into wc_open
[Tue Jun 28 17:25:57 2005]  [jk_worker.c (222)]: Into build_worker_map,
creating 1 workers
[Tue Jun 28 17:25:57 2005]  [jk_worker.c (228)]: build_worker_map, creating
worker ajp12
[Tue Jun 28 17:25:57 2005]  [jk_worker.c (148)]: Into wc_create_worker
[Tue Jun 28 17:25:57 2005]  [jk_worker.c (162)]: wc_create_worker, about to
create instance ajp12 of ajp12
[Tue Jun 28 17:25:57 2005]  [jk_ajp12_worker.c (283)]: Into
ajp12_worker_factory
[Tue Jun 28 17:25:57 2005]  [jk_worker.c (171)]: wc_create_worker, about to
validate and init ajp12
[Tue Jun 28 17:25:57 2005]  [jk_ajp12_worker.c (200)]: Into
jk_worker_t::validate
[Tue Jun 28 17:25:57 2005]  [jk_ajp12_worker.c (212)]: In
jk_worker_t::validate for worker ajp12 contact is localhost:8007
[Tue Jun 28 17:25:57 2005]  [jk_worker.c (187)]: wc_create_worker, done
[Tue Jun 28 17:25:57 2005]  [jk_worker.c (238)]: build_worker_map, removing
old ajp12 worker 
[Tue Jun 28 17:25:57 2005]  [jk_worker.c (250)]: build_worker_map, done
[Tue Jun 28 17:25:57 2005]  [jk_worker.c (111)]: wc_open, done 1
[Tue Jun 28 17:25:57 2005]  [jk_isapi_plugin.c (655)]: Detected IIS = 5.0
[Tue Jun 28 17:25:58 2005]  [jk_isapi_plugin.c (696)]: HttpFilterProc
started
[Tue Jun 28 17:25:58 2005]  [jk_isapi_plugin.c (759)]: In HttpFilterProc
Virtual Host redirection of /raid-test.york.gov.uk/tomcat/
[Tue Jun 28 17:25:58 2005]  [jk_uri_worker_map.c (460)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Tue Jun 28 17:25:58 2005]  [jk_uri_worker_map.c (477)]: Attempting to map
URI '/raid-test.york.gov.uk/tomcat/'
[Tue Jun 28 17:25:58 2005]  [jk_uri_worker_map.c (502)]:
jk_uri_worker_map_t::map_uri_to_worker, Found a context match raid - /
[Tue Jun 28 17:25:58 2005]  [jk_uri_worker_map.c (502)]:
jk_uri_worker_map_t::map_uri_to_worker, Found a context match raid -
/raid-test.york.gov.uk/tomcat/
[Tue Jun 28 17:25:58 2005]  [jk_isapi_plugin.c (775)]: HttpFilterProc
[/tomcat/] is a servlet url - should redirect to raid
[Tue Jun 28 17:25:58 2005]  [jk_isapi_plugin.c (838)]: HttpFilterProc check
if [/tomcat/] is points to the web-inf directory
[Tue Jun 28 17:25:58 2005]  [jk_isapi_plugin.c (878)]: HttpExtensionProc
started
[Tue Jun 28 17:25:58 2005]  [jk_worker.c (132)]: Into wc_get_worker_for_name
raid
[Tue Jun 28 17:25:58 2005]  

RE: connecting IIS and Tomcat

2005-06-28 Thread Derrick Koes

One thing that might help:

The name of the worker can contain only the alphanumeric characters 
[a-z][A-Z][0-9] and is case insensitive. 


http://jakarta.apache.org/tomcat/connectors-doc/config/workers.html


-Original Message-
From: Brereton, Stephen [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 28, 2005 12:43 PM
To: 'tomcat-user@jakarta.apache.org'
Subject: connecting IIS and Tomcat

I'm in process of getting IIS to use Tomcat (for the obvious) but have hit a 
problem. 
As far as I can tell, the config files are all as they should be, but on 
restarting the server and requesting the page I want, a blank is returned and 
jk_IIS.log has this in it::

###

[Tue Jun 28 17:25:57 2005]  [jk_isapi_plugin.c (1018)]: Using registry.
[Tue Jun 28 17:25:57 2005]  [jk_isapi_plugin.c (1020)]: Using log file 
G:\Program Files\Apache Software Foundation\Tomcat 5.0\logs\jk_iis.log.
[Tue Jun 28 17:25:57 2005]  [jk_isapi_plugin.c (1021)]: Using log level 0.
[Tue Jun 28 17:25:57 2005]  [jk_isapi_plugin.c (1022)]: Using extension uri 
/tomcat/isapi_redirector.dll.
[Tue Jun 28 17:25:57 2005]  [jk_isapi_plugin.c (1023)]: Using worker file 
G:\Program Files\Apache Software Foundation\Tomcat 5.0\conf\workers2.properties.
[Tue Jun 28 17:25:57 2005]  [jk_isapi_plugin.c (1024)]: Using worker mount file 
G:\Program Files\Apache Software Foundation\Tomcat 
5.0\conf\uriworkermap.properties.
[Tue Jun 28 17:25:57 2005]  [jk_isapi_plugin.c (1025)]: Using uri select 0.
[Tue Jun 28 17:25:57 2005]  [jk_uri_worker_map.c (172)]: Into 
jk_uri_worker_map_t::uri_worker_map_alloc
[Tue Jun 28 17:25:57 2005]  [jk_uri_worker_map.c (375)]: Into 
jk_uri_worker_map_t::uri_worker_map_open
[Tue Jun 28 17:25:57 2005]  [jk_uri_worker_map.c (396)]:
jk_uri_worker_map_t::uri_worker_map_open, rule map size is 7 [Tue Jun 28 
17:25:57 2005]  [jk_uri_worker_map.c (321)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, match rule /examples/=testWorker was 
added [Tue Jun 28 17:25:57 2005]  [jk_uri_worker_map.c (321)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, match rule /raid-test/=raid was added 
[Tue Jun 28 17:25:57 2005]  [jk_uri_worker_map.c (321)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, match rule /=raid was added [Tue Jun 
28 17:25:57 2005]  [jk_uri_worker_map.c (321)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, match rule /raid-test/tomcat/=raid 
was added [Tue Jun 28 17:25:57 2005]  [jk_uri_worker_map.c (321)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, match rule 
/raid-test.york.gov.uk/tomcat/=raid was added [Tue Jun 28 17:25:57 2005]  
[jk_uri_worker_map.c (321)]: Into jk_uri_worker_map_t::uri_worker_map_open, 
match rule /raid-test.york.gov.uk/=raid was added [Tue Jun 28 17:25:57 2005]  
[jk_uri_worker_map.c (321)]: Into jk_uri_worker_map_t::uri_worker_map_open, 
match rule /raid/=raid was added [Tue Jun 28 17:25:57 2005]  
[jk_uri_worker_map.c (408)]: Into jk_uri_worker_map_t::uri_worker_map_open, 
there are 7 rules [Tue Jun 28 17:25:57 2005]  [jk_uri_worker_map.c (422)]:
jk_uri_worker_map_t::uri_worker_map_open, done [Tue Jun 28 17:25:57 2005]  
[jk_worker.c (88)]: Into wc_open [Tue Jun 28 17:25:57 2005]  [jk_worker.c 
(222)]: Into build_worker_map, creating 1 workers [Tue Jun 28 17:25:57 2005]  
[jk_worker.c (228)]: build_worker_map, creating worker ajp12 [Tue Jun 28 
17:25:57 2005]  [jk_worker.c (148)]: Into wc_create_worker [Tue Jun 28 17:25:57 
2005]  [jk_worker.c (162)]: wc_create_worker, about to create instance ajp12 of 
ajp12 [Tue Jun 28 17:25:57 2005]  [jk_ajp12_worker.c (283)]: Into 
ajp12_worker_factory [Tue Jun 28 17:25:57 2005]  [jk_worker.c (171)]: 
wc_create_worker, about to validate and init ajp12 [Tue Jun 28 17:25:57 2005]  
[jk_ajp12_worker.c (200)]: Into jk_worker_t::validate [Tue Jun 28 17:25:57 
2005]  [jk_ajp12_worker.c (212)]: In jk_worker_t::validate for worker ajp12 
contact is localhost:8007 [Tue Jun 28 17:25:57 2005]  [jk_worker.c (187)]: 
wc_create_worker, done [Tue Jun 28 17:25:57 2005]  [jk_worker.c (238)]: 
build_worker_map, removing old ajp12 worker [Tue Jun 28 17:25:57 2005]  
[jk_worker.c (250)]: build_worker_map, done [Tue Jun 28 17:25:57 2005]  
[jk_worker.c (111)]: wc_open, done 1 [Tue Jun 28 17:25:57 2005]  
[jk_isapi_plugin.c (655)]: Detected IIS = 5.0 [Tue Jun 28 17:25:58 2005]  
[jk_isapi_plugin.c (696)]: HttpFilterProc started [Tue Jun 28 17:25:58 2005]  
[jk_isapi_plugin.c (759)]: In HttpFilterProc Virtual Host redirection of 
/raid-test.york.gov.uk/tomcat/ [Tue Jun 28 17:25:58 2005]  [jk_uri_worker_map.c 
(460)]: Into jk_uri_worker_map_t::map_uri_to_worker
[Tue Jun 28 17:25:58 2005]  [jk_uri_worker_map.c (477)]: Attempting to map URI 
'/raid-test.york.gov.uk/tomcat/'
[Tue Jun 28 17:25:58 2005]  [jk_uri_worker_map.c (502)]:
jk_uri_worker_map_t::map_uri_to_worker, Found a context match raid - / [Tue 
Jun 28 17:25:58 2005]  [jk_uri_worker_map.c (502)]:
jk_uri_worker_map_t::map_uri_to_worker, Found a context match raid - 

RE: connecting IIS and Tomcat

2005-06-28 Thread Brereton, Stephen
Thanks for pointing that out, but the worker I'm trying to use is 'raid',
and I'm somewhat confused why its picked up the URL of the site as part of
the name - this is the (test) copy - hence the name.

-Original Message-
From: Derrick Koes [mailto:[EMAIL PROTECTED]
Sent: 28 June 2005 17:44
To: Tomcat Users List
Subject: RE: connecting IIS and Tomcat



One thing that might help:

The name of the worker can contain only the alphanumeric characters
[a-z][A-Z][0-9] and is case insensitive. 


http://jakarta.apache.org/tomcat/connectors-doc/config/workers.html


-Original Message-
From: Brereton, Stephen [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 28, 2005 12:43 PM
To: 'tomcat-user@jakarta.apache.org'
Subject: connecting IIS and Tomcat

I'm in process of getting IIS to use Tomcat (for the obvious) but have hit a
problem. 
As far as I can tell, the config files are all as they should be, but on
restarting the server and requesting the page I want, a blank is returned
and jk_IIS.log has this in it::

###

[Tue Jun 28 17:25:57 2005]  [jk_isapi_plugin.c (1018)]: Using registry.
[Tue Jun 28 17:25:57 2005]  [jk_isapi_plugin.c (1020)]: Using log file
G:\Program Files\Apache Software Foundation\Tomcat 5.0\logs\jk_iis.log.
[Tue Jun 28 17:25:57 2005]  [jk_isapi_plugin.c (1021)]: Using log level 0.
[Tue Jun 28 17:25:57 2005]  [jk_isapi_plugin.c (1022)]: Using extension uri
/tomcat/isapi_redirector.dll.
[Tue Jun 28 17:25:57 2005]  [jk_isapi_plugin.c (1023)]: Using worker file
G:\Program Files\Apache Software Foundation\Tomcat
5.0\conf\workers2.properties.
[Tue Jun 28 17:25:57 2005]  [jk_isapi_plugin.c (1024)]: Using worker mount
file G:\Program Files\Apache Software Foundation\Tomcat
5.0\conf\uriworkermap.properties.
[Tue Jun 28 17:25:57 2005]  [jk_isapi_plugin.c (1025)]: Using uri select 0.
[Tue Jun 28 17:25:57 2005]  [jk_uri_worker_map.c (172)]: Into
jk_uri_worker_map_t::uri_worker_map_alloc
[Tue Jun 28 17:25:57 2005]  [jk_uri_worker_map.c (375)]: Into
jk_uri_worker_map_t::uri_worker_map_open
[Tue Jun 28 17:25:57 2005]  [jk_uri_worker_map.c (396)]:
jk_uri_worker_map_t::uri_worker_map_open, rule map size is 7 [Tue Jun 28
17:25:57 2005]  [jk_uri_worker_map.c (321)]: Into
jk_uri_worker_map_t::uri_worker_map_open, match rule /examples/=testWorker
was added [Tue Jun 28 17:25:57 2005]  [jk_uri_worker_map.c (321)]: Into
jk_uri_worker_map_t::uri_worker_map_open, match rule /raid-test/=raid was
added [Tue Jun 28 17:25:57 2005]  [jk_uri_worker_map.c (321)]: Into
jk_uri_worker_map_t::uri_worker_map_open, match rule /=raid was added [Tue
Jun 28 17:25:57 2005]  [jk_uri_worker_map.c (321)]: Into
jk_uri_worker_map_t::uri_worker_map_open, match rule /raid-test/tomcat/=raid
was added [Tue Jun 28 17:25:57 2005]  [jk_uri_worker_map.c (321)]: Into
jk_uri_worker_map_t::uri_worker_map_open, match rule
/raid-test.york.gov.uk/tomcat/=raid was added [Tue Jun 28 17:25:57 2005]
[jk_uri_worker_map.c (321)]: Into jk_uri_worker_map_t::uri_worker_map_open,
match rule /raid-test.york.gov.uk/=raid was added [Tue Jun 28 17:25:57 2005]
[jk_uri_worker_map.c (321)]: Into jk_uri_worker_map_t::uri_worker_map_open,
match rule /raid/=raid was added [Tue Jun 28 17:25:57 2005]
[jk_uri_worker_map.c (408)]: Into jk_uri_worker_map_t::uri_worker_map_open,
there are 7 rules [Tue Jun 28 17:25:57 2005]  [jk_uri_worker_map.c (422)]:
jk_uri_worker_map_t::uri_worker_map_open, done [Tue Jun 28 17:25:57 2005]
[jk_worker.c (88)]: Into wc_open [Tue Jun 28 17:25:57 2005]  [jk_worker.c
(222)]: Into build_worker_map, creating 1 workers [Tue Jun 28 17:25:57 2005]
[jk_worker.c (228)]: build_worker_map, creating worker ajp12 [Tue Jun 28
17:25:57 2005]  [jk_worker.c (148)]: Into wc_create_worker [Tue Jun 28
17:25:57 2005]  [jk_worker.c (162)]: wc_create_worker, about to create
instance ajp12 of ajp12 [Tue Jun 28 17:25:57 2005]  [jk_ajp12_worker.c
(283)]: Into ajp12_worker_factory [Tue Jun 28 17:25:57 2005]  [jk_worker.c
(171)]: wc_create_worker, about to validate and init ajp12 [Tue Jun 28
17:25:57 2005]  [jk_ajp12_worker.c (200)]: Into jk_worker_t::validate [Tue
Jun 28 17:25:57 2005]  [jk_ajp12_worker.c (212)]: In jk_worker_t::validate
for worker ajp12 contact is localhost:8007 [Tue Jun 28 17:25:57 2005]
[jk_worker.c (187)]: wc_create_worker, done [Tue Jun 28 17:25:57 2005]
[jk_worker.c (238)]: build_worker_map, removing old ajp12 worker [Tue Jun 28
17:25:57 2005]  [jk_worker.c (250)]: build_worker_map, done [Tue Jun 28
17:25:57 2005]  [jk_worker.c (111)]: wc_open, done 1 [Tue Jun 28 17:25:57
2005]  [jk_isapi_plugin.c (655)]: Detected IIS = 5.0 [Tue Jun 28 17:25:58
2005]  [jk_isapi_plugin.c (696)]: HttpFilterProc started [Tue Jun 28
17:25:58 2005]  [jk_isapi_plugin.c (759)]: In HttpFilterProc Virtual Host
redirection of /raid-test.york.gov.uk/tomcat/ [Tue Jun 28 17:25:58 2005]
[jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker
[Tue Jun 28 17:25:58 2005]  [jk_uri_worker_map.c (477)]: Attempting to map
URI 

RE: connecting IIS and Tomcat

2005-06-28 Thread Derrick Koes

Then you won't mind commenting the others and re-trying.;-)  Simplify first.  
BTW workers2.properties is unused for the JK connector.  The JK2 connector uses 
it.  It is safe to delete. 

-Original Message-
From: Brereton, Stephen [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 28, 2005 12:52 PM
To: 'Tomcat Users List'
Subject: RE: connecting IIS and Tomcat

Thanks for pointing that out, but the worker I'm trying to use is 'raid', and 
I'm somewhat confused why its picked up the URL of the site as part of the name 
- this is the (test) copy - hence the name.

-Original Message-
From: Derrick Koes [mailto:[EMAIL PROTECTED]
Sent: 28 June 2005 17:44
To: Tomcat Users List
Subject: RE: connecting IIS and Tomcat



One thing that might help:

The name of the worker can contain only the alphanumeric characters 
[a-z][A-Z][0-9] and is case insensitive. 


http://jakarta.apache.org/tomcat/connectors-doc/config/workers.html


-Original Message-
From: Brereton, Stephen [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 28, 2005 12:43 PM
To: 'tomcat-user@jakarta.apache.org'
Subject: connecting IIS and Tomcat

I'm in process of getting IIS to use Tomcat (for the obvious) but have hit a 
problem. 
As far as I can tell, the config files are all as they should be, but on 
restarting the server and requesting the page I want, a blank is returned and 
jk_IIS.log has this in it::

###

[Tue Jun 28 17:25:57 2005]  [jk_isapi_plugin.c (1018)]: Using registry.
[Tue Jun 28 17:25:57 2005]  [jk_isapi_plugin.c (1020)]: Using log file 
G:\Program Files\Apache Software Foundation\Tomcat 5.0\logs\jk_iis.log.
[Tue Jun 28 17:25:57 2005]  [jk_isapi_plugin.c (1021)]: Using log level 0.
[Tue Jun 28 17:25:57 2005]  [jk_isapi_plugin.c (1022)]: Using extension uri 
/tomcat/isapi_redirector.dll.
[Tue Jun 28 17:25:57 2005]  [jk_isapi_plugin.c (1023)]: Using worker file 
G:\Program Files\Apache Software Foundation\Tomcat 5.0\conf\workers2.properties.
[Tue Jun 28 17:25:57 2005]  [jk_isapi_plugin.c (1024)]: Using worker mount file 
G:\Program Files\Apache Software Foundation\Tomcat 
5.0\conf\uriworkermap.properties.
[Tue Jun 28 17:25:57 2005]  [jk_isapi_plugin.c (1025)]: Using uri select 0.
[Tue Jun 28 17:25:57 2005]  [jk_uri_worker_map.c (172)]: Into 
jk_uri_worker_map_t::uri_worker_map_alloc
[Tue Jun 28 17:25:57 2005]  [jk_uri_worker_map.c (375)]: Into 
jk_uri_worker_map_t::uri_worker_map_open
[Tue Jun 28 17:25:57 2005]  [jk_uri_worker_map.c (396)]:
jk_uri_worker_map_t::uri_worker_map_open, rule map size is 7 [Tue Jun 28
17:25:57 2005]  [jk_uri_worker_map.c (321)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, match rule /examples/=testWorker was 
added [Tue Jun 28 17:25:57 2005]  [jk_uri_worker_map.c (321)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, match rule /raid-test/=raid was added 
[Tue Jun 28 17:25:57 2005]  [jk_uri_worker_map.c (321)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, match rule /=raid was added [Tue Jun 
28 17:25:57 2005]  [jk_uri_worker_map.c (321)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, match rule /raid-test/tomcat/=raid 
was added [Tue Jun 28 17:25:57 2005]  [jk_uri_worker_map.c (321)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, match rule 
/raid-test.york.gov.uk/tomcat/=raid was added [Tue Jun 28 17:25:57 2005] 
[jk_uri_worker_map.c (321)]: Into jk_uri_worker_map_t::uri_worker_map_open,
match rule /raid-test.york.gov.uk/=raid was added [Tue Jun 28 17:25:57 2005] 
[jk_uri_worker_map.c (321)]: Into jk_uri_worker_map_t::uri_worker_map_open,
match rule /raid/=raid was added [Tue Jun 28 17:25:57 2005] 
[jk_uri_worker_map.c (408)]: Into jk_uri_worker_map_t::uri_worker_map_open,
there are 7 rules [Tue Jun 28 17:25:57 2005]  [jk_uri_worker_map.c (422)]:
jk_uri_worker_map_t::uri_worker_map_open, done [Tue Jun 28 17:25:57 2005] 
[jk_worker.c (88)]: Into wc_open [Tue Jun 28 17:25:57 2005]  [jk_worker.c
(222)]: Into build_worker_map, creating 1 workers [Tue Jun 28 17:25:57 2005] 
[jk_worker.c (228)]: build_worker_map, creating worker ajp12 [Tue Jun 28
17:25:57 2005]  [jk_worker.c (148)]: Into wc_create_worker [Tue Jun 28
17:25:57 2005]  [jk_worker.c (162)]: wc_create_worker, about to create instance 
ajp12 of ajp12 [Tue Jun 28 17:25:57 2005]  [jk_ajp12_worker.c
(283)]: Into ajp12_worker_factory [Tue Jun 28 17:25:57 2005]  [jk_worker.c
(171)]: wc_create_worker, about to validate and init ajp12 [Tue Jun 28
17:25:57 2005]  [jk_ajp12_worker.c (200)]: Into jk_worker_t::validate [Tue Jun 
28 17:25:57 2005]  [jk_ajp12_worker.c (212)]: In jk_worker_t::validate for 
worker ajp12 contact is localhost:8007 [Tue Jun 28 17:25:57 2005] [jk_worker.c 
(187)]: wc_create_worker, done [Tue Jun 28 17:25:57 2005] [jk_worker.c (238)]: 
build_worker_map, removing old ajp12 worker [Tue Jun 28
17:25:57 2005]  [jk_worker.c (250)]: build_worker_map, done [Tue Jun 28
17:25:57 2005]  [jk_worker.c (111)]: wc_open, done 1 [Tue Jun 28 17:25:57 2005] 
 [jk_isapi_plugin.c (655)]: Detected IIS = 

single session id

2005-06-28 Thread Rogerio Baldini das Neves
Hi,

I need to have a single session id in all my contexts in my host ?
Is it possible ?

My problem: 
I have a cluster this 1 Apache and 2 Tomcats.
In each Tomcat, I have 5 apps. 
I do a request to app1, Apache sends me to Tomcat1. If I request to app2, I 
need Apache sends me to Tomcat1 again.

Thanks
Rogerio

RE: connecting IIS and Tomcat

2005-06-28 Thread Brereton, Stephen
Take your point. BTW do I need to restart Tomcat each time? Bit confused on
that one...

-Original Message-
From: Derrick Koes [mailto:[EMAIL PROTECTED]
Sent: 28 June 2005 17:56
To: Tomcat Users List
Subject: RE: connecting IIS and Tomcat



Then you won't mind commenting the others and re-trying.;-)  Simplify first.
BTW workers2.properties is unused for the JK connector.  The JK2 connector
uses it.  It is safe to delete. 

-Original Message-
From: Brereton, Stephen [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 28, 2005 12:52 PM
To: 'Tomcat Users List'
Subject: RE: connecting IIS and Tomcat

Thanks for pointing that out, but the worker I'm trying to use is 'raid',
and I'm somewhat confused why its picked up the URL of the site as part of
the name - this is the (test) copy - hence the name.

-Original Message-
From: Derrick Koes [mailto:[EMAIL PROTECTED]
Sent: 28 June 2005 17:44
To: Tomcat Users List
Subject: RE: connecting IIS and Tomcat



One thing that might help:

The name of the worker can contain only the alphanumeric characters
[a-z][A-Z][0-9] and is case insensitive. 


http://jakarta.apache.org/tomcat/connectors-doc/config/workers.html


-Original Message-
From: Brereton, Stephen [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 28, 2005 12:43 PM
To: 'tomcat-user@jakarta.apache.org'
Subject: connecting IIS and Tomcat

I'm in process of getting IIS to use Tomcat (for the obvious) but have hit a
problem. 
As far as I can tell, the config files are all as they should be, but on
restarting the server and requesting the page I want, a blank is returned
and jk_IIS.log has this in it::

###

[Tue Jun 28 17:25:57 2005]  [jk_isapi_plugin.c (1018)]: Using registry.
[Tue Jun 28 17:25:57 2005]  [jk_isapi_plugin.c (1020)]: Using log file
G:\Program Files\Apache Software Foundation\Tomcat 5.0\logs\jk_iis.log.
[Tue Jun 28 17:25:57 2005]  [jk_isapi_plugin.c (1021)]: Using log level 0.
[Tue Jun 28 17:25:57 2005]  [jk_isapi_plugin.c (1022)]: Using extension uri
/tomcat/isapi_redirector.dll.
[Tue Jun 28 17:25:57 2005]  [jk_isapi_plugin.c (1023)]: Using worker file
G:\Program Files\Apache Software Foundation\Tomcat
5.0\conf\workers2.properties.
[Tue Jun 28 17:25:57 2005]  [jk_isapi_plugin.c (1024)]: Using worker mount
file G:\Program Files\Apache Software Foundation\Tomcat
5.0\conf\uriworkermap.properties.
[Tue Jun 28 17:25:57 2005]  [jk_isapi_plugin.c (1025)]: Using uri select 0.
[Tue Jun 28 17:25:57 2005]  [jk_uri_worker_map.c (172)]: Into
jk_uri_worker_map_t::uri_worker_map_alloc
[Tue Jun 28 17:25:57 2005]  [jk_uri_worker_map.c (375)]: Into
jk_uri_worker_map_t::uri_worker_map_open
[Tue Jun 28 17:25:57 2005]  [jk_uri_worker_map.c (396)]:
jk_uri_worker_map_t::uri_worker_map_open, rule map size is 7 [Tue Jun 28
17:25:57 2005]  [jk_uri_worker_map.c (321)]: Into
jk_uri_worker_map_t::uri_worker_map_open, match rule /examples/=testWorker
was added [Tue Jun 28 17:25:57 2005]  [jk_uri_worker_map.c (321)]: Into
jk_uri_worker_map_t::uri_worker_map_open, match rule /raid-test/=raid was
added [Tue Jun 28 17:25:57 2005]  [jk_uri_worker_map.c (321)]: Into
jk_uri_worker_map_t::uri_worker_map_open, match rule /=raid was added [Tue
Jun 28 17:25:57 2005]  [jk_uri_worker_map.c (321)]: Into
jk_uri_worker_map_t::uri_worker_map_open, match rule /raid-test/tomcat/=raid
was added [Tue Jun 28 17:25:57 2005]  [jk_uri_worker_map.c (321)]: Into
jk_uri_worker_map_t::uri_worker_map_open, match rule
/raid-test.york.gov.uk/tomcat/=raid was added [Tue Jun 28 17:25:57 2005]
[jk_uri_worker_map.c (321)]: Into jk_uri_worker_map_t::uri_worker_map_open,
match rule /raid-test.york.gov.uk/=raid was added [Tue Jun 28 17:25:57 2005]
[jk_uri_worker_map.c (321)]: Into jk_uri_worker_map_t::uri_worker_map_open,
match rule /raid/=raid was added [Tue Jun 28 17:25:57 2005]
[jk_uri_worker_map.c (408)]: Into jk_uri_worker_map_t::uri_worker_map_open,
there are 7 rules [Tue Jun 28 17:25:57 2005]  [jk_uri_worker_map.c (422)]:
jk_uri_worker_map_t::uri_worker_map_open, done [Tue Jun 28 17:25:57 2005]
[jk_worker.c (88)]: Into wc_open [Tue Jun 28 17:25:57 2005]  [jk_worker.c
(222)]: Into build_worker_map, creating 1 workers [Tue Jun 28 17:25:57 2005]
[jk_worker.c (228)]: build_worker_map, creating worker ajp12 [Tue Jun 28
17:25:57 2005]  [jk_worker.c (148)]: Into wc_create_worker [Tue Jun 28
17:25:57 2005]  [jk_worker.c (162)]: wc_create_worker, about to create
instance ajp12 of ajp12 [Tue Jun 28 17:25:57 2005]  [jk_ajp12_worker.c
(283)]: Into ajp12_worker_factory [Tue Jun 28 17:25:57 2005]  [jk_worker.c
(171)]: wc_create_worker, about to validate and init ajp12 [Tue Jun 28
17:25:57 2005]  [jk_ajp12_worker.c (200)]: Into jk_worker_t::validate [Tue
Jun 28 17:25:57 2005]  [jk_ajp12_worker.c (212)]: In jk_worker_t::validate
for worker ajp12 contact is localhost:8007 [Tue Jun 28 17:25:57 2005]
[jk_worker.c (187)]: wc_create_worker, done [Tue Jun 28 17:25:57 2005]
[jk_worker.c (238)]: build_worker_map, removing old ajp12 

RE: connecting IIS and Tomcat

2005-06-28 Thread Derrick Koes

Not unless you changed something in server.xml.

You need to restart the WWW service (IIS). 

-Original Message-
From: Brereton, Stephen [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 28, 2005 1:03 PM
To: 'Tomcat Users List'
Subject: RE: connecting IIS and Tomcat

Take your point. BTW do I need to restart Tomcat each time? Bit confused on 
that one...

-Original Message-
From: Derrick Koes [mailto:[EMAIL PROTECTED]
Sent: 28 June 2005 17:56
To: Tomcat Users List
Subject: RE: connecting IIS and Tomcat



Then you won't mind commenting the others and re-trying.;-)  Simplify first.
BTW workers2.properties is unused for the JK connector.  The JK2 connector uses 
it.  It is safe to delete. 

-Original Message-
From: Brereton, Stephen [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 28, 2005 12:52 PM
To: 'Tomcat Users List'
Subject: RE: connecting IIS and Tomcat

Thanks for pointing that out, but the worker I'm trying to use is 'raid', and 
I'm somewhat confused why its picked up the URL of the site as part of the name 
- this is the (test) copy - hence the name.

-Original Message-
From: Derrick Koes [mailto:[EMAIL PROTECTED]
Sent: 28 June 2005 17:44
To: Tomcat Users List
Subject: RE: connecting IIS and Tomcat



One thing that might help:

The name of the worker can contain only the alphanumeric characters 
[a-z][A-Z][0-9] and is case insensitive. 


http://jakarta.apache.org/tomcat/connectors-doc/config/workers.html


-Original Message-
From: Brereton, Stephen [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 28, 2005 12:43 PM
To: 'tomcat-user@jakarta.apache.org'
Subject: connecting IIS and Tomcat

I'm in process of getting IIS to use Tomcat (for the obvious) but have hit a 
problem. 
As far as I can tell, the config files are all as they should be, but on 
restarting the server and requesting the page I want, a blank is returned and 
jk_IIS.log has this in it::

###

[Tue Jun 28 17:25:57 2005]  [jk_isapi_plugin.c (1018)]: Using registry.
[Tue Jun 28 17:25:57 2005]  [jk_isapi_plugin.c (1020)]: Using log file 
G:\Program Files\Apache Software Foundation\Tomcat 5.0\logs\jk_iis.log.
[Tue Jun 28 17:25:57 2005]  [jk_isapi_plugin.c (1021)]: Using log level 0.
[Tue Jun 28 17:25:57 2005]  [jk_isapi_plugin.c (1022)]: Using extension uri 
/tomcat/isapi_redirector.dll.
[Tue Jun 28 17:25:57 2005]  [jk_isapi_plugin.c (1023)]: Using worker file 
G:\Program Files\Apache Software Foundation\Tomcat 5.0\conf\workers2.properties.
[Tue Jun 28 17:25:57 2005]  [jk_isapi_plugin.c (1024)]: Using worker mount file 
G:\Program Files\Apache Software Foundation\Tomcat 
5.0\conf\uriworkermap.properties.
[Tue Jun 28 17:25:57 2005]  [jk_isapi_plugin.c (1025)]: Using uri select 0.
[Tue Jun 28 17:25:57 2005]  [jk_uri_worker_map.c (172)]: Into 
jk_uri_worker_map_t::uri_worker_map_alloc
[Tue Jun 28 17:25:57 2005]  [jk_uri_worker_map.c (375)]: Into 
jk_uri_worker_map_t::uri_worker_map_open
[Tue Jun 28 17:25:57 2005]  [jk_uri_worker_map.c (396)]:
jk_uri_worker_map_t::uri_worker_map_open, rule map size is 7 [Tue Jun 28
17:25:57 2005]  [jk_uri_worker_map.c (321)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, match rule /examples/=testWorker was 
added [Tue Jun 28 17:25:57 2005]  [jk_uri_worker_map.c (321)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, match rule /raid-test/=raid was added 
[Tue Jun 28 17:25:57 2005]  [jk_uri_worker_map.c (321)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, match rule /=raid was added [Tue Jun 
28 17:25:57 2005]  [jk_uri_worker_map.c (321)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, match rule /raid-test/tomcat/=raid 
was added [Tue Jun 28 17:25:57 2005]  [jk_uri_worker_map.c (321)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, match rule 
/raid-test.york.gov.uk/tomcat/=raid was added [Tue Jun 28 17:25:57 2005] 
[jk_uri_worker_map.c (321)]: Into jk_uri_worker_map_t::uri_worker_map_open,
match rule /raid-test.york.gov.uk/=raid was added [Tue Jun 28 17:25:57 2005] 
[jk_uri_worker_map.c (321)]: Into jk_uri_worker_map_t::uri_worker_map_open,
match rule /raid/=raid was added [Tue Jun 28 17:25:57 2005] 
[jk_uri_worker_map.c (408)]: Into jk_uri_worker_map_t::uri_worker_map_open,
there are 7 rules [Tue Jun 28 17:25:57 2005]  [jk_uri_worker_map.c (422)]:
jk_uri_worker_map_t::uri_worker_map_open, done [Tue Jun 28 17:25:57 2005] 
[jk_worker.c (88)]: Into wc_open [Tue Jun 28 17:25:57 2005]  [jk_worker.c
(222)]: Into build_worker_map, creating 1 workers [Tue Jun 28 17:25:57 2005] 
[jk_worker.c (228)]: build_worker_map, creating worker ajp12 [Tue Jun 28
17:25:57 2005]  [jk_worker.c (148)]: Into wc_create_worker [Tue Jun 28
17:25:57 2005]  [jk_worker.c (162)]: wc_create_worker, about to create instance 
ajp12 of ajp12 [Tue Jun 28 17:25:57 2005]  [jk_ajp12_worker.c
(283)]: Into ajp12_worker_factory [Tue Jun 28 17:25:57 2005]  [jk_worker.c
(171)]: wc_create_worker, about to validate and init ajp12 [Tue Jun 28
17:25:57 2005]  [jk_ajp12_worker.c (200)]: Into 

Re: single session id

2005-06-28 Thread Tim Funk
Set emptySessionPath=true on your connector declaration. This is a tomcat 
5.5 feature only.


-Tim

Rogerio Baldini das Neves wrote:


Hi,

I need to have a single session id in all my contexts in my host ?
Is it possible ?

My problem: 
I have a cluster this 1 Apache and 2 Tomcats.
In each Tomcat, I have 5 apps. 
I do a request to app1, Apache sends me to Tomcat1. If I request to app2, I need Apache sends me to Tomcat1 again.


Thanks
Rogerio


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



RE: connecting IIS and Tomcat

2005-06-28 Thread Nat Papovich
Hi all, first post here.

I had a dickens of a time finding where Tomcat (5.5.9) was sticking my
serialized object files (Java 1.5). When starting Tomcat on Win, it writes
them to C:\WINDOWS\system32. When starting via command line (dbl-click
tomcat5.exe), it puts them in the same dir (C:\Tomcat\bin). 

Is there a good way to change the default path for a new File()? The docs
seem to ambiguously state that the default is either the dir where the JRE
was launched from, as well as System.getProperty(user.dir).

How about a better way to solve my problem? Add a new system property? Docs
state that system property changes don't persist across application
invocations. Keep the path to my custom serialized object location in my
own settings file and read it? Or should I just forget the whole notion and
stick with whatever the default is?

Thanks,
NAT

Nat Papovich
Senior Partner  Development Director
Fusium, Inc.
503-226-7099



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



Tomcat 5.5.9 application reload doesn't work

2005-06-28 Thread Johnson, Tony S.
Hi, I have seen this question discussed several times on this mailing list, but 
I have not found anyone with a solution, so I am asking again in the hopes that 
someone can help.
 
Example of problem:
 
1) Download/Install/Start tomcat 5.5.9 on port 8080
2) Create a directory c:\test
3) Create a c:\test\HelloWorld.html
4) Deploy web application  using 
 http://localhost:8080/manager/deploy?path=/testwar=file:/c:/test
 (OK - Deployed application at context path /test)
5) Check it worked: http://localhost:8080/test/HelloWorld.html
6) Make a change to HelloWorld.html
7) Reload app http://localhost:8080/manager/reload?path=/test
( OK - Reloaded application at context path /test)
8) View http://localhost:8080/test/HelloWorld.html
9) Notice that the old page is displayed, not the new one
 
Note that performing the same set of operations with tomcat 5.0.x works as 
expected, the modified page is displayed at step 9, not the old one.
 
Explanation of problem:
 
The problem appears to be caused by a change in tomcat 5.5 which results in the 
appplication files being copied during deploy from (file:/c/test) to the 
tomcat webapps directory. A subsequent reload causes the copied files to be 
reloaded, but does not pick up changes in the original files.
 
Why is this still a problem?
 
Knowing what the problem is, one can manually recopy changes to the webapp 
directory, but various tools (such as the ant tasks documented here: ) or the 
maven tomcat plugin () do not work as a result of this problem. 
 
Does anyone know if there is a way to work around this, or to persaude tomcat 
to revert to the 5.0 behaviour?
 
Thanks, Tony Johnson


Re: single session id

2005-06-28 Thread Rogerio Baldini das Neves
Thanks vey much, Tim

It´s working fine.

- Original Message - 
From: Tim Funk [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Tuesday, June 28, 2005 2:37 PM
Subject: Re: single session id


 Set emptySessionPath=true on your connector declaration. This is a
tomcat
 5.5 feature only.

 -Tim

 Rogerio Baldini das Neves wrote:

  Hi,
 
  I need to have a single session id in all my contexts in my host ?
  Is it possible ?
 
  My problem:
  I have a cluster this 1 Apache and 2 Tomcats.
  In each Tomcat, I have 5 apps.
  I do a request to app1, Apache sends me to Tomcat1. If I request to
app2, I need Apache sends me to Tomcat1 again.
 
  Thanks
  Rogerio

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



Stored Procedures problem

2005-06-28 Thread Carlos Bracho
I got this exception: java.sql.SQLException: [Microsoft][SQLServer 2000 
Driver for JDBC]No ResultSet set was produced at line # 2 in this code:


conn = this.dataSource.getConnection();
ResourceBundle resourceBundle = ResourceBundle.getBundle(ladw/resources);
statement = conn.prepareCall(resourceBundle.getString(sp.getPassword));
statement.registerOutParameter(1,Types.VARCHAR); 
statement.setString(2, userName);
statement.registerOutParameter(3,Types.VARCHAR); 
statement.execute();
String result = rs.getString(1);

can somebody help me?

-- 
--
Carlos J, Bracho M. 
--
e-mail: [EMAIL PROTECTED]
MSN: [EMAIL PROTECTED]
+58 416 409 21 75 
--


RE: Stored Procedures problem

2005-06-28 Thread Robert Harper
If this is an update, you will almost always get this exception. What is the
query you are attempting to run?

Robert S. Harper
Information Access Technology, Inc.

-Original Message-
From: Carlos Bracho [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 28, 2005 12:54 PM
To: tomcat-user@jakarta.apache.org
Subject: Stored Procedures problem

I got this exception: java.sql.SQLException: [Microsoft][SQLServer 2000 
Driver for JDBC]No ResultSet set was produced at line # 2 in this code:


conn = this.dataSource.getConnection();
ResourceBundle resourceBundle = ResourceBundle.getBundle(ladw/resources);
statement = conn.prepareCall(resourceBundle.getString(sp.getPassword));
statement.registerOutParameter(1,Types.VARCHAR); 
statement.setString(2, userName);
statement.registerOutParameter(3,Types.VARCHAR); 
statement.execute();
String result = rs.getString(1);

can somebody help me?

-- 

--
Carlos J, Bracho M. 
--
e-mail: [EMAIL PROTECTED]
MSN: [EMAIL PROTECTED]
+58 416 409 21 75 
--



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



RE: Stored Procedures problem

2005-06-28 Thread Maarten Janssen
where do you define your resultset rs...

maarten

-Oorspronkelijk bericht-
Van: Robert Harper [mailto:[EMAIL PROTECTED]
Verzonden: dinsdag 28 juni 2005 21:00
Aan: 'Tomcat Users List'; 'Carlos Bracho'
Onderwerp: RE: Stored Procedures problem


If this is an update, you will almost always get this exception. What is the
query you are attempting to run?

Robert S. Harper
Information Access Technology, Inc.

-Original Message-
From: Carlos Bracho [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 28, 2005 12:54 PM
To: tomcat-user@jakarta.apache.org
Subject: Stored Procedures problem

I got this exception: java.sql.SQLException: [Microsoft][SQLServer 2000
Driver for JDBC]No ResultSet set was produced at line # 2 in this code:


conn = this.dataSource.getConnection();
ResourceBundle resourceBundle = ResourceBundle.getBundle(ladw/resources);
statement = conn.prepareCall(resourceBundle.getString(sp.getPassword));
statement.registerOutParameter(1,Types.VARCHAR);
statement.setString(2, userName);
statement.registerOutParameter(3,Types.VARCHAR);
statement.execute();
String result = rs.getString(1);

can somebody help me?

--

--
Carlos J, Bracho M.
--
e-mail: [EMAIL PROTECTED]
MSN: [EMAIL PROTECTED]
+58 416 409 21 75
--



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

--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.8.5/32 - Release Date: 27-6-2005

--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.8.5/32 - Release Date: 27-6-2005


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



What happened to the admin and manager apps in 5.5?

2005-06-28 Thread lchalupa
I'm trying to install the admin application of tomcat. When I download 
the .zip file. I'm confused about what I'm suppose to deploy, where to deploy 
it and how to do it.  Of course there are few clues that may any sense to me. 
The directory structure in the zip file is very confusing to me.  Can anyone 
give me some directions? Why did somebody fix something that isn't broken?

Thanks

lee




Lee Chalupa
[EMAIL PROTECTED]


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



RE: What happened to the admin and manager apps in 5.5?

2005-06-28 Thread Didier McGillis

Those have to be downloaded seperatly they arent part of the base download.
http://jakarta.apache.org/site/downloads/downloads_tomcat-5.cgi
You'll find the admin and other downloads there.


From: lchalupa [EMAIL PROTECTED]
Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
To: tomcat-user@jakarta.apache.org
Subject: What happened to the admin and manager apps in 5.5?
Date: Tue, 28 Jun 2005 15:21:16 -0400

I'm trying to install the admin application of tomcat. When I download
the .zip file. I'm confused about what I'm suppose to deploy, where to 
deploy
it and how to do it.  Of course there are few clues that may any sense to 
me.
The directory structure in the zip file is very confusing to me.  Can 
anyone

give me some directions? Why did somebody fix something that isn't broken?

Thanks

lee




Lee Chalupa
[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: Apache2+JK2+Tomcat-5.028 URI UTF-8 problem

2005-06-28 Thread Luis Sánchez Sánchez
I doesnt work with mod_jk. 

I've tried JkOptions like 
+ForwardURICompatUnparsed, +ForwardURIEscaped, +ForwardURICompat ... 

It's exactly like with mod_jk2: when I go directly to tomcat using 
server:8080/something-with-special-characters-like-áéíóúñ the page is fine. 
However if I use server/something-with-special-characters-like-áéíóúñ the page 
is not correct.

I don't think request.setCharacterEncoding(UTF-8); could resolve this because 
its running fine with only tomcat.

I think its like the redirection apache-tomcat ignored the URIEncoding=UTF-8 
parameter I set in Tomcat Connector. This is my Tomcat connector configuration:

Connector port=8080
   maxThreads=150 minSpareThreads=25 maxSpareThreads=75
   enableLookups=false redirectPort=8443 acceptCount=100
   debug=0 connectionTimeout=2
   disableUploadTimeout=true URIEncoding=UTF-8/


Perhaps I must set URIEncoding other place. 

While i was writing this message I tried:

Connector port=8009
   enableLookups=false redirectPort=8443 debug=0
   protocol=AJP/1.3 URIEncoding=UTF-8/

Now its running fine. Ill post the complete solution


El mar, 28-06-2005 a las 08:32 +0200, Bruno Georges escribió:
 Hi Luis
 
 Why don't you start with mod_jk as opposed to mod_jk2, mod_jk is more
 recent than mod_jk2
 Check the apache httpd.conf for the following directives
 AddLanguage
 AddDefaultCharset  UTF-8
 
 Also make sure use in your servlet/JSP:
 request.setCharacterEncoding(UTF-8);
 
 Bruno Georges
 
 Glencore International AG
 Tel. +41 41 709 3204
 Fax +41 41 709 3000
 
 
 |-+
 | |   Luis Sánchez Sánchez |
 | |   luis.sanchez.sanchez|
 | |   @gmail.com  |
 | ||
 | |   28.06.05 01:44   |
 | |   Please respond to|
 | |   Tomcat Users List  |
 | ||
 |-+
   
 --|
   |   
|
   |To:  tomcat-user@jakarta.apache.org
|
   |cc:
|
   |Subject: Apache2+JK2+Tomcat-5.028  URI UTF-8 problem 
|
   |   
|
   |Distribute:
|
   |Personal?   |---|  
|
   || [ ] x |  
|
   ||---|  
|
   |   
|
   
 --|
 
 
 
 
 It's about apache-tomcat configuration with
 UTF-8. I added URI encoding to the tomcat configuration and I set
 defaultcharset utf-8
 in apache2. Im using mod_jk2. It doesnt work when I use special
 characters like áéíóúñ...
 
 If I use URL with port 8080 (tomcat
 answers) It's fine but If I use the redirection apache-tomcat it
 doesn't work... Any suggestion?
 
 Thanks
 
 --
 Luis Sánchez Sánchez [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 *  
 *  LEGAL DISCLAIMER
 *  This message contains confidential information for
 *  the exclusive use of the person mentioned above.
 *
 
 
 -
 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]



Apache2+jk+tomcat5.028+uri utf-8 SOLVED

2005-06-28 Thread Luis Sánchez Sánchez
Install mod_jk. I downloaded it from 
http://www.apache.org/dist/jakarta/tomcat-connectors/jk/binaries/linux/jk-1.2.10/

Copy the jakarta-connector*.so to your apache2 modules directory.

Activate your new module:

I used this two files in /etc/apache/mods-avaliable:

+---+
mod_jk.conf
+---+
# Where to find workers.properties
# Update this path to match your conf directory location (put 
workers.properties next to httpd.conf)
JkWorkersFile /etc/apache2/workers.properties

# Where to put jk logs
# Update this path to match your logs directory location (put mod_jk.log next 
to access_log)
JkLogFile /var/log/apache2/mod_jk.log

# Set the jk log level [debug/error/info]
JkLogLevelinfo

# Select the log format
JkLogStampFormat [%a %b %d %H:%M:%S %Y] 

#JkOptions +ForwardURICompatUnparsed

#JkOptions +ForwardURIEscaped

#JkOptions +ForwardURICompat

# JkOptions indicate to send SSL KEY SIZE,
# la sgte linea la he comentado yo
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories

# JkRequestLogFormat set the request format
JkRequestLogFormat %w %V %T

# Send everything for context /examples to worker named worker1 (ajp13)
JkMount  /jsp-examples/* worker1
JkMount  /blojsom/* worker1



+---+
mod_jk.load
+---+
LoadModule jk_module /usr/lib/apache2/modules/mod_jk.so


Then link this files in /etc/apache2/mods-enabled/


Put a workers.property file in your apache2 conf dir (/etc/apache2 in my 
linux). This is my workers.properties

  # Define 1 real worker using ajp13
  worker.list=worker1
  # Set properties for worker1 (ajp13)
  worker.worker1.type=ajp13
  worker.worker1.host=localhost
  worker.worker1.port=8009
  worker.worker1.lbfactor=50
  worker.worker1.cachesize=10
  worker.worker1.cache_timeout=600
  worker.worker1.socket_keepalive=1
  worker.worker1.reclycle_timeout=300




In tomcat you must use URIEncoding=UTF-8 in your connectors in server.xml:

  (I forgot this connector ...)

   Connector port=8009
   enableLookups=false redirectPort=8443 debug=0
   protocol=AJP/1.3 URIEncoding=UTF-8/



Connector port=8080
   maxThreads=150 minSpareThreads=25 maxSpareThreads=75
   enableLookups=false redirectPort=8443 acceptCount=100
   debug=0 connectionTimeout=2
   disableUploadTimeout=true URIEncoding=UTF-8/

Launch tomcat, launch apache2 force-reload.


-- 
Luis Sánchez Sánchez [EMAIL PROTECTED]


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



jsp include/RequestDispatcher incompatible?

2005-06-28 Thread George Finklang
have the following code in my jsp, which is called by a forward from my
Controller servlet. The various Dispatchers are either servlets or jsps declared
in my web.xml.

All the servlets and jsps get run correctly. The problem is the output. The
output of the root jsp and the 3-4 included jsps are arbitrarily rearranged, see
below. Bizarre shuffling, not reverse order, but a different order and not
interleaved with the text from the jsp. 

If I translate the jsp into servlet code, and use RequestDispatchers
for all the components,
the page works.  The documentation says something about flushing buffers, but I
can't see how to do this with RequestDispatchers.


Code:

BODY
jsp:include page=WEB-INF/jsps/portal/header.jsp flush=true/
% if(option1) {
application.getNamedDispatcher(Option1Servlet).include(request,response);
} else { %
tabletr
% if(option2) { %
td% 
  
application.getNamedDispatcher(Option2Servlet).include(request,response);
%/td
%  } %
td% 
   application.getNamedDispatcher(page).include(request,response); %/td
td% 
   application.getNamedDispatcher(InfoServlet).include(request,response);
%/td
/tr/table
%  } %
/BODY



generated html:

BODY
 
 
Page text  // from the page dispatcher
 
Info servlet text   // from the infoservlet dispatcher
 
Header form text // from the header.jsp dispatcher
 
 
tabletr
 
td/td
td/td
/tr/table
 
/BODY

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



RE: connecting IIS and Tomcat

2005-06-28 Thread Brereton, Stephen
I've deleted workers2.properties and get:

[Tue Jun 28 22:27:12 2005]  [jk_isapi_plugin.c (1018)]: Using registry.
[Tue Jun 28 22:27:12 2005]  [jk_isapi_plugin.c (1020)]: Using log file
G:\Program Files\Apache Software Foundation\Tomcat 5.0\logs\jk_iis.log.
[Tue Jun 28 22:27:12 2005]  [jk_isapi_plugin.c (1021)]: Using log level 0.
[Tue Jun 28 22:27:12 2005]  [jk_isapi_plugin.c (1022)]: Using extension uri
/tomcat/isapi_redirector.dll.
[Tue Jun 28 22:27:12 2005]  [jk_isapi_plugin.c (1023)]: Using worker file
G:\Program Files\Apache Software Foundation\Tomcat
5.0\conf\workers2.properties.
[Tue Jun 28 22:27:12 2005]  [jk_isapi_plugin.c (1024)]: Using worker mount
file G:\Program Files\Apache Software Foundation\Tomcat
5.0\conf\uriworkermap.properties.
[Tue Jun 28 22:27:12 2005]  [jk_isapi_plugin.c (1025)]: Using uri select 0.
[Tue Jun 28 22:27:12 2005]  [jk_uri_worker_map.c (172)]: Into
jk_uri_worker_map_t::uri_worker_map_alloc
[Tue Jun 28 22:27:12 2005]  [jk_uri_worker_map.c (375)]: Into
jk_uri_worker_map_t::uri_worker_map_open
[Tue Jun 28 22:27:12 2005]  [jk_uri_worker_map.c (396)]:
jk_uri_worker_map_t::uri_worker_map_open, rule map size is 2
[Tue Jun 28 22:27:12 2005]  [jk_uri_worker_map.c (321)]: Into
jk_uri_worker_map_t::uri_worker_map_open, match rule /examples/=testWorker
was added
[Tue Jun 28 22:27:12 2005]  [jk_uri_worker_map.c (321)]: Into
jk_uri_worker_map_t::uri_worker_map_open, match rule /raid/=raid was added
[Tue Jun 28 22:27:12 2005]  [jk_uri_worker_map.c (408)]: Into
jk_uri_worker_map_t::uri_worker_map_open, there are 2 rules
[Tue Jun 28 22:27:12 2005]  [jk_uri_worker_map.c (422)]:
jk_uri_worker_map_t::uri_worker_map_open, done
[Tue Jun 28 22:27:12 2005]  [jk_isapi_plugin.c (1074)]: Unable to read
worker file G:\Program Files\Apache Software Foundation\Tomcat
5.0\conf\workers2.properties.

am I using the wrong JK? the one I've set up is dated 12/apr/04

-Original Message-
From: Derrick Koes [mailto:[EMAIL PROTECTED]
Sent: 28 June 2005 17:56
To: Tomcat Users List
Subject: RE: connecting IIS and Tomcat



Then you won't mind commenting the others and re-trying.;-)  Simplify first.
BTW workers2.properties is unused for the JK connector.  The JK2 connector
uses it.  It is safe to delete. 

-Original Message-
From: Brereton, Stephen [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 28, 2005 12:52 PM
To: 'Tomcat Users List'
Subject: RE: connecting IIS and Tomcat

Thanks for pointing that out, but the worker I'm trying to use is 'raid',
and I'm somewhat confused why its picked up the URL of the site as part of
the name - this is the (test) copy - hence the name.

-Original Message-
From: Derrick Koes [mailto:[EMAIL PROTECTED]
Sent: 28 June 2005 17:44
To: Tomcat Users List
Subject: RE: connecting IIS and Tomcat



One thing that might help:

The name of the worker can contain only the alphanumeric characters
[a-z][A-Z][0-9] and is case insensitive. 


http://jakarta.apache.org/tomcat/connectors-doc/config/workers.html


-Original Message-
From: Brereton, Stephen [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 28, 2005 12:43 PM
To: 'tomcat-user@jakarta.apache.org'
Subject: connecting IIS and Tomcat

I'm in process of getting IIS to use Tomcat (for the obvious) but have hit a
problem. 
As far as I can tell, the config files are all as they should be, but on
restarting the server and requesting the page I want, a blank is returned
and jk_IIS.log has this in it::

###

[Tue Jun 28 17:25:57 2005]  [jk_isapi_plugin.c (1018)]: Using registry.
[Tue Jun 28 17:25:57 2005]  [jk_isapi_plugin.c (1020)]: Using log file
G:\Program Files\Apache Software Foundation\Tomcat 5.0\logs\jk_iis.log.
[Tue Jun 28 17:25:57 2005]  [jk_isapi_plugin.c (1021)]: Using log level 0.
[Tue Jun 28 17:25:57 2005]  [jk_isapi_plugin.c (1022)]: Using extension uri
/tomcat/isapi_redirector.dll.
[Tue Jun 28 17:25:57 2005]  [jk_isapi_plugin.c (1023)]: Using worker file
G:\Program Files\Apache Software Foundation\Tomcat
5.0\conf\workers2.properties.
[Tue Jun 28 17:25:57 2005]  [jk_isapi_plugin.c (1024)]: Using worker mount
file G:\Program Files\Apache Software Foundation\Tomcat
5.0\conf\uriworkermap.properties.
[Tue Jun 28 17:25:57 2005]  [jk_isapi_plugin.c (1025)]: Using uri select 0.
[Tue Jun 28 17:25:57 2005]  [jk_uri_worker_map.c (172)]: Into
jk_uri_worker_map_t::uri_worker_map_alloc
[Tue Jun 28 17:25:57 2005]  [jk_uri_worker_map.c (375)]: Into
jk_uri_worker_map_t::uri_worker_map_open
[Tue Jun 28 17:25:57 2005]  [jk_uri_worker_map.c (396)]:
jk_uri_worker_map_t::uri_worker_map_open, rule map size is 7 [Tue Jun 28
17:25:57 2005]  [jk_uri_worker_map.c (321)]: Into
jk_uri_worker_map_t::uri_worker_map_open, match rule /examples/=testWorker
was added [Tue Jun 28 17:25:57 2005]  [jk_uri_worker_map.c (321)]: Into
jk_uri_worker_map_t::uri_worker_map_open, match rule /raid-test/=raid was
added [Tue Jun 28 17:25:57 2005]  [jk_uri_worker_map.c (321)]: Into
jk_uri_worker_map_t::uri_worker_map_open, 

memory issues with live redeploy

2005-06-28 Thread George Finklang
Working with a couple different tomcat 5.0.X versions, I'm having
issues with tomcat's memory footprint increasing when I live redeploy.
 I do this 2 or 3 times and the server runs out of memory, though
normally it can run for weeks without problem.

I can't seem to find direct references to this in the online docs.  Is
it jsp compilation or session state usage (or other things I can
affect)?  Or is it just a known limitation in the container?

--George

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



RE: memory issues with live redeploy

2005-06-28 Thread Scott Stewart
We ran into the same problem up thru version 5.5.7 - the only work around
was to use Stop/Start rather than Reload/Redeploy.  We've since updated to
Tomcat 5.5.9, which seems to have corrected the problem.

Thanks,

Scott Stewart


-Original Message-
From: George Finklang [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 28, 2005 5:34 PM
To: tomcat-user@jakarta.apache.org
Subject: memory issues with live redeploy


Working with a couple different tomcat 5.0.X versions, I'm having
issues with tomcat's memory footprint increasing when I live redeploy.
 I do this 2 or 3 times and the server runs out of memory, though
normally it can run for weeks without problem.

I can't seem to find direct references to this in the online docs.  Is
it jsp compilation or session state usage (or other things I can
affect)?  Or is it just a known limitation in the container?

--George

-
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: connecting IIS and Tomcat

2005-06-28 Thread Derrick Koes
Your registry is incorrect.

Try this.  Modify values as appropriate. 

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi 
Redirector\1.0]
extension_uri=/jakarta/isapi_redirect.dll
worker_file=C:\\jk-connector\\conf\\workers.properties
worker_mount_file=C:\\jk-connector\\conf\\uriworkermap.properties
log_file=E:\\files\\jk-logs\\isapi_filter.log
log_level=info

-Original Message-
From: Brereton, Stephen [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 28, 2005 5:33 PM
To: 'Tomcat Users List'
Subject: RE: connecting IIS and Tomcat

I've deleted workers2.properties and get:

[Tue Jun 28 22:27:12 2005]  [jk_isapi_plugin.c (1018)]: Using registry.
[Tue Jun 28 22:27:12 2005]  [jk_isapi_plugin.c (1020)]: Using log file 
G:\Program Files\Apache Software Foundation\Tomcat 5.0\logs\jk_iis.log.
[Tue Jun 28 22:27:12 2005]  [jk_isapi_plugin.c (1021)]: Using log level 0.
[Tue Jun 28 22:27:12 2005]  [jk_isapi_plugin.c (1022)]: Using extension uri 
/tomcat/isapi_redirector.dll.
[Tue Jun 28 22:27:12 2005]  [jk_isapi_plugin.c (1023)]: Using worker file 
G:\Program Files\Apache Software Foundation\Tomcat 5.0\conf\workers2.properties.
[Tue Jun 28 22:27:12 2005]  [jk_isapi_plugin.c (1024)]: Using worker mount file 
G:\Program Files\Apache Software Foundation\Tomcat 
5.0\conf\uriworkermap.properties.
[Tue Jun 28 22:27:12 2005]  [jk_isapi_plugin.c (1025)]: Using uri select 0.
[Tue Jun 28 22:27:12 2005]  [jk_uri_worker_map.c (172)]: Into 
jk_uri_worker_map_t::uri_worker_map_alloc
[Tue Jun 28 22:27:12 2005]  [jk_uri_worker_map.c (375)]: Into 
jk_uri_worker_map_t::uri_worker_map_open
[Tue Jun 28 22:27:12 2005]  [jk_uri_worker_map.c (396)]:
jk_uri_worker_map_t::uri_worker_map_open, rule map size is 2 [Tue Jun 28 
22:27:12 2005]  [jk_uri_worker_map.c (321)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, match rule /examples/=testWorker was 
added [Tue Jun 28 22:27:12 2005]  [jk_uri_worker_map.c (321)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, match rule /raid/=raid was added [Tue 
Jun 28 22:27:12 2005]  [jk_uri_worker_map.c (408)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, there are 2 rules [Tue Jun 28 
22:27:12 2005]  [jk_uri_worker_map.c (422)]:
jk_uri_worker_map_t::uri_worker_map_open, done [Tue Jun 28 22:27:12 2005]  
[jk_isapi_plugin.c (1074)]: Unable to read worker file G:\Program Files\Apache 
Software Foundation\Tomcat 5.0\conf\workers2.properties.

am I using the wrong JK? the one I've set up is dated 12/apr/04

-Original Message-
From: Derrick Koes [mailto:[EMAIL PROTECTED]
Sent: 28 June 2005 17:56
To: Tomcat Users List
Subject: RE: connecting IIS and Tomcat



Then you won't mind commenting the others and re-trying.;-)  Simplify first.
BTW workers2.properties is unused for the JK connector.  The JK2 connector uses 
it.  It is safe to delete. 

-Original Message-
From: Brereton, Stephen [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 28, 2005 12:52 PM
To: 'Tomcat Users List'
Subject: RE: connecting IIS and Tomcat

Thanks for pointing that out, but the worker I'm trying to use is 'raid', and 
I'm somewhat confused why its picked up the URL of the site as part of the name 
- this is the (test) copy - hence the name.

-Original Message-
From: Derrick Koes [mailto:[EMAIL PROTECTED]
Sent: 28 June 2005 17:44
To: Tomcat Users List
Subject: RE: connecting IIS and Tomcat



One thing that might help:

The name of the worker can contain only the alphanumeric characters 
[a-z][A-Z][0-9] and is case insensitive. 


http://jakarta.apache.org/tomcat/connectors-doc/config/workers.html


-Original Message-
From: Brereton, Stephen [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 28, 2005 12:43 PM
To: 'tomcat-user@jakarta.apache.org'
Subject: connecting IIS and Tomcat

I'm in process of getting IIS to use Tomcat (for the obvious) but have hit a 
problem. 
As far as I can tell, the config files are all as they should be, but on 
restarting the server and requesting the page I want, a blank is returned and 
jk_IIS.log has this in it::

###

[Tue Jun 28 17:25:57 2005]  [jk_isapi_plugin.c (1018)]: Using registry.
[Tue Jun 28 17:25:57 2005]  [jk_isapi_plugin.c (1020)]: Using log file 
G:\Program Files\Apache Software Foundation\Tomcat 5.0\logs\jk_iis.log.
[Tue Jun 28 17:25:57 2005]  [jk_isapi_plugin.c (1021)]: Using log level 0.
[Tue Jun 28 17:25:57 2005]  [jk_isapi_plugin.c (1022)]: Using extension uri 
/tomcat/isapi_redirector.dll.
[Tue Jun 28 17:25:57 2005]  [jk_isapi_plugin.c (1023)]: Using worker file 
G:\Program Files\Apache Software Foundation\Tomcat 5.0\conf\workers2.properties.
[Tue Jun 28 17:25:57 2005]  [jk_isapi_plugin.c (1024)]: Using worker mount file 
G:\Program Files\Apache Software Foundation\Tomcat 
5.0\conf\uriworkermap.properties.
[Tue Jun 28 17:25:57 2005]  [jk_isapi_plugin.c (1025)]: Using uri select 0.
[Tue Jun 28 17:25:57 2005]  [jk_uri_worker_map.c (172)]: Into 

tomcat default page

2005-06-28 Thread Tony Smith
I install tomcat on my machine and my webapp can be
accessed as 

http://www.mydomain.com:8080/myapp/index.jsp. 

If I type http://www.mydomain.com:8080, the default
tomcat page will be displayed. How can I change this
page to something else, or forbid it?

Thanks,




__ 
Yahoo! Mail Mobile 
Take Yahoo! Mail with you! Check email on your mobile phone. 
http://mobile.yahoo.com/learn/mail 

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



RE: tomcat default page

2005-06-28 Thread Brereton, Stephen
Do you mean to display another page, or to stop the access via port 8080?

-Original Message-
From: Tony Smith [mailto:[EMAIL PROTECTED]
Sent: 28 June 2005 22:39
To: Tomcat Users List
Subject: tomcat default page


I install tomcat on my machine and my webapp can be
accessed as 

http://www.mydomain.com:8080/myapp/index.jsp. 

If I type http://www.mydomain.com:8080, the default
tomcat page will be displayed. How can I change this
page to something else, or forbid it?

Thanks,




__ 
Yahoo! Mail Mobile 
Take Yahoo! Mail with you! Check email on your mobile phone. 
http://mobile.yahoo.com/learn/mail 

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

* * * * * * * * * * * *
This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
This email represents the personal views of the author/sender.  The
author/sender has no authority or delegation to bind the City of York
Council by this e-mail and the City of York Council accepts no
responsibility whatsoever for its contents.  Please note that any reply to
this email may be screened.

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



RE: tomcat default page

2005-06-28 Thread afonseca
Hi,

Do a re-direct in the page in
http://www.mydomain.com:8080
to
http://www.mydomain.com:8080/myapp/index.jsp.

António



Citando Brereton, Stephen [EMAIL PROTECTED]:

 Do you mean to display another page, or to stop the access via port 8080?
 
 -Original Message-
 From: Tony Smith [mailto:[EMAIL PROTECTED]
 Sent: 28 June 2005 22:39
 To: Tomcat Users List
 Subject: tomcat default page
 
 
 I install tomcat on my machine and my webapp can be
 accessed as
 
 http://www.mydomain.com:8080/myapp/index.jsp.
 
 If I type http://www.mydomain.com:8080, the default
 tomcat page will be displayed. How can I change this
 page to something else, or forbid it?
 
 Thanks,
 
 
 
 
 __
 Yahoo! Mail Mobile
 Take Yahoo! Mail with you! Check email on your mobile phone.
 http://mobile.yahoo.com/learn/mail
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 * * * * * * * * * * * *
 This email and any files transmitted with it are confidential and intended
 solely for the use of the individual or entity to whom they are addressed.
 This email represents the personal views of the author/sender.  The
 author/sender has no authority or delegation to bind the City of York
 Council by this e-mail and the City of York Council accepts no
 responsibility whatsoever for its contents.  Please note that any reply to
 this email may be screened.
 
 -
 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 in Resource declaration

2005-06-28 Thread Behrang Saeedzadeh

Hi

I want to define a DBCP pooled MySQL connection for a test application.
The following definition is not working:

?xml version=1.0 encoding=UTF-8?
Context path=/Hibernate-02
		Resource name=jdbc/Hibernate02 scope=Shareable  
type=javax.sql.DataSource auth=Container/

ResourceParams name=jdbc/Hibernate02
parameter
namefactory/name
	 
		valueorg.apache.commons.dbcp.BasicDataSourceFactory/value

/parameter

!-- DBCP database connection settings --
parameter
nameurl/name

valuejdbc:mysql:///Hibernate02?user=rootamp;password=bsaku2633amp;autoReconnect=true/value
/parameter
parameter
namedriverClassName/name
valuecom.mysql.jdbc.Driver/value
/parameter

!-- DBCP connection pooling options --
parameter
namemaxWait/name
value3000/value
/parameter
parameter
namemaxIdle/name
value100/value
/parameter
parameter
namemaxActive/name
value10/value
/parameter
/ResourceParams
/Context

But the following definition works:

?xml version=1.0 encoding=UTF-8?
Context path=/Hibernate-02
	Resource name=jdbc/Hibernate02 auth=Container  
type=javax.sql.DataSource

maxActive=100 maxIdle=30 maxWait=1
username=root password=bsaku2633  
driverClassName=com.mysql.jdbc.Driver

url=jdbc:mysql:///Hibernate02?autoReconnect=true/
/Resource
/Context

Any ideas what's wrong with the first declaration?

--
Behrang Saeedzadeh
http://www.jroller.com/page/behrangsa

Using Opera's revolutionary e-mail client

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



RE: tomcat default page

2005-06-28 Thread Tony Smith
I would like to try both...

--- Brereton, Stephen [EMAIL PROTECTED]
wrote:

 Do you mean to display another page, or to stop the
 access via port 8080?
 
 -Original Message-
 From: Tony Smith [mailto:[EMAIL PROTECTED]
 Sent: 28 June 2005 22:39
 To: Tomcat Users List
 Subject: tomcat default page
 
 
 I install tomcat on my machine and my webapp can be
 accessed as 
 
 http://www.mydomain.com:8080/myapp/index.jsp. 
 
 If I type http://www.mydomain.com:8080, the default
 tomcat page will be displayed. How can I change this
 page to something else, or forbid it?
 
 Thanks,
 
 
 
   
 __ 
 Yahoo! Mail Mobile 
 Take Yahoo! Mail with you! Check email on your
 mobile phone. 
 http://mobile.yahoo.com/learn/mail 
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 * * * * * * * * * * * *
 This email and any files transmitted with it are
 confidential and intended
 solely for the use of the individual or entity to
 whom they are addressed.
 This email represents the personal views of the
 author/sender.  The
 author/sender has no authority or delegation to bind
 the City of York
 Council by this e-mail and the City of York Council
 accepts no
 responsibility whatsoever for its contents.  Please
 note that any reply to
 this email may be screened.
 

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




 
Yahoo! Sports 
Rekindle the Rivalries. Sign up for Fantasy Football 
http://football.fantasysports.yahoo.com

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



Is there a DTD/XML Schema available for the Context.xml files?

2005-06-28 Thread Behrang Saeedzadeh

Hi

I'm searching for the DTD or the XML Schema for the Context.xml files.
Does anybody know where can I find them?

-Behrang

--
Behrang Saeedzadeh
http://www.jroller.com/page/behrangsa

Using Opera's revolutionary e-mail client

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



Re: jsp include/RequestDispatcher incompatible?

2005-06-28 Thread Tim Funk
The out from the jspwriter is NOT the same out as receieved by 
response.getWriter();


The out in the JspPage is  buffered.

-Tim

George Finklang wrote:


have the following code in my jsp, which is called by a forward from my
Controller servlet. The various Dispatchers are either servlets or jsps declared
in my web.xml.

All the servlets and jsps get run correctly. The problem is the output. The
output of the root jsp and the 3-4 included jsps are arbitrarily rearranged, see
below. Bizarre shuffling, not reverse order, but a different order and not
interleaved with the text from the jsp. 


If I translate the jsp into servlet code, and use RequestDispatchers
for all the components,
the page works.  The documentation says something about flushing buffers, but I
can't see how to do this with RequestDispatchers.


Code:

BODY
jsp:include page=WEB-INF/jsps/portal/header.jsp flush=true/
% if(option1) {
application.getNamedDispatcher(Option1Servlet).include(request,response);
} else { %
tabletr
% if(option2) { %
td% 
  
application.getNamedDispatcher(Option2Servlet).include(request,response);

%/td
%  } %
td% 
   application.getNamedDispatcher(page).include(request,response); %/td
td% 
   application.getNamedDispatcher(InfoServlet).include(request,response);

%/td
/tr/table
%  } %
/BODY



generated html:

BODY
 
 
Page text  // from the page dispatcher
 
Info servlet text   // from the infoservlet dispatcher
 
Header form text // from the header.jsp dispatcher
 
 
tabletr
 
td/td

td/td
/tr/table
 
/BODY


-
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: Is there a DTD/XML Schema available for the Context.xml files?

2005-06-28 Thread Tim Funk

No ... http://jakarta.apache.org/tomcat/faq/misc.html#dtd

-Tim

Behrang Saeedzadeh wrote:


Hi

I'm searching for the DTD or the XML Schema for the Context.xml files.
Does anybody know where can I find them?

-Behrang



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



Tomcat5.5.7 and Log4j

2005-06-28 Thread Robert Taylor
Greetings, I'm trying to use Log4j in my web app and I'm having some 
difficulty.


I'm running Tomcat5.5.7 and JDK 1.5.0
I've followed the instructions here:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/logging.html
-placed log4j.jar and commons-logging.jar in commons/lib
-placed log4j.xml in commons/classes
-Added the following to the Tomcat startup:
-Dlog4j.configuration=file:///D:/j2ee_containers/servlet/tomcat/5.5.7/Tomcat%205.5/common/classes/log4j.xml

It looks like Tomcat is finding and recognizing log4j.xml but is failing 
with the following error in the log file:


log4j:ERROR A org.apache.log4j.xml.DOMConfigurator object is not 
assignable to a org.apache.log4j.spi.Configurator variable.

log4j:ERROR The class org.apache.log4j.spi.Configurator was loaded by
log4j:ERROR [EMAIL PROTECTED] 
whereas object of type
log4j:ERROR org.apache.log4j.xml.DOMConfigurator was loaded by 
[WebappClassLoader

  delegate: false
  repositories:
-- Parent Classloader:
[EMAIL PROTECTED]
].
log4j:ERROR Could not instantiate configurator 
[org.apache.log4j.xml.DOMConfigurator].



I googled for this and didn't find anything relavent.
http://www.google.com/search?biw=1266hl=enq=A+%22org.apache.log4j.xml.DOMConfigurator%22+object+is+not+assignable+to+a+%22org.apache.log4j.spi.Configurator%22+variable.btnG=Google+Search


Any hints (even if its RTFM with a link) would be great.

/robert


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



help in setting up

2005-06-28 Thread ganesan malairaja


hi guys

i know that to settup tomcat , there no need for apache

i wanna know what java i should use

is it j2dk or j2ee

because i saw some example that uses both..

i am going to run JSP to retrieve info from database

i need guide on how to setup tomcat .. ie what java version i shoud use.

any links also would be helpfull .. consider a newbie case

thanks guys .. ur help is appreaciated.
htmlDIV
DIVFONT color=#cc face=Lucida Handwriting, CursiveEMSTRONGIMG 
height=16 src=http://graphics.hotmail.com/emarrow_right.gif; 
width=16Ganesan_MalairajaIMG height=16 
src=http://graphics.hotmail.com/emarrow_left.gif; 
width=16/STRONG/EM/FONT/DIV/DIV/html




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



Re: help in setting up

2005-06-28 Thread Richard Reyes
I use JDK.

On 6/29/05, ganesan malairaja [EMAIL PROTECTED] wrote:
 
 hi guys
 
 i know that to settup tomcat , there no need for apache
 
 i wanna know what java i should use
 
 is it j2dk or j2ee
 
 because i saw some example that uses both..
 
 i am going to run JSP to retrieve info from database
 
 i need guide on how to setup tomcat .. ie what java version i shoud use.
 
 any links also would be helpfull .. consider a newbie case
 
 thanks guys .. ur help is appreaciated.
 htmlDIV
 DIVFONT color=#cc face=Lucida Handwriting, CursiveEMSTRONGIMG
 height=16 src=http://graphics.hotmail.com/emarrow_right.gif;
 width=16Ganesan_MalairajaIMG height=16
 src=http://graphics.hotmail.com/emarrow_left.gif;
 width=16/STRONG/EM/FONT/DIV/DIV/html
 
 
 
 -
 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: Tomcat5.5.7 and Log4j

2005-06-28 Thread Bill Barker

Robert Taylor [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 Greetings, I'm trying to use Log4j in my web app and I'm having some 
 difficulty.

 I'm running Tomcat5.5.7 and JDK 1.5.0
 I've followed the instructions here:
 http://jakarta.apache.org/tomcat/tomcat-5.5-doc/logging.html
 -placed log4j.jar and commons-logging.jar in commons/lib
 -placed log4j.xml in commons/classes
 -Added the following to the Tomcat startup:
 -Dlog4j.configuration=file:///D:/j2ee_containers/servlet/tomcat/5.5.7/Tomcat%205.5/common/classes/log4j.xml


Don't know exactly what you're trying to do.  The URL above is about using 
log4j for Tomcat internal logging (including HttpServlet.log).  If you don't 
care about this, then just remove the log4j.jar from commons/lib (and 
log4j.xml from commons/classes just to be clean :).  Then you're webapp will 
use the log4j in WEB-INF/lib and everybody is happy.

Alternatively, if you want to use log4j for Tomcat logging as well as for 
your webapp, then either:
1) remove the log4j.jar from your webapp's WEB-INF/lib and force it to use 
the one in common/lib.  This is good for small sites that want one central 
place to control all of the logging, and can easily setup 
common/classes/log4j.xml to handle all webapps that are deployed.
2) move log4j.jar to $CATALINA_HOME/server/lib and log4j.xml to 
$CATALINA_HOME/server/classes.  In this case, this copy of log4j will be 
used for Tomcat internal logging only.  Your webapp will use the copy in 
WEB-INF/lib, with the configuration that is in WEB-INF/classes.  Personally, 
if you're not a Tomcat developer, I think that this is a questionable 
use-case since Juli (the default Tomcat logging) is good enough to handle 
the Tomcat logs in most cases.

 It looks like Tomcat is finding and recognizing log4j.xml but is failing 
 with the following error in the log file:

 log4j:ERROR A org.apache.log4j.xml.DOMConfigurator object is not 
 assignable to a org.apache.log4j.spi.Configurator variable.
 log4j:ERROR The class org.apache.log4j.spi.Configurator was loaded by
 log4j:ERROR [EMAIL PROTECTED] 
 whereas object of type
 log4j:ERROR org.apache.log4j.xml.DOMConfigurator was loaded by 
 [WebappClassLoader
   delegate: false
   repositories:
 -- Parent Classloader:
 [EMAIL PROTECTED]
 ].
 log4j:ERROR Could not instantiate configurator 
 [org.apache.log4j.xml.DOMConfigurator].


 I googled for this and didn't find anything relavent.
 http://www.google.com/search?biw=1266hl=enq=A+%22org.apache.log4j.xml.DOMConfigurator%22+object+is+not+assignable+to+a+%22org.apache.log4j.spi.Configurator%22+variable.btnG=Google+Search


 Any hints (even if its RTFM with a link) would be great.

 /robert 




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



Re: help in setting up

2005-06-28 Thread Parsons Technical Services

It depends:

5.5.x only needs JRE
5.0.x and earlier versions needs full JDK
As for version I recommend Java 1.5 and it is required for the 5.5.x version 
unless you use the compatibility patch for 1.4


Doug

- Original Message - 
From: ganesan malairaja [EMAIL PROTECTED]

To: tomcat-user@jakarta.apache.org
Sent: Tuesday, June 28, 2005 11:42 PM
Subject: help in setting up




hi guys

i know that to settup tomcat , there no need for apache

i wanna know what java i should use

is it j2dk or j2ee

because i saw some example that uses both..

i am going to run JSP to retrieve info from database

i need guide on how to setup tomcat .. ie what java version i shoud use.

any links also would be helpfull .. consider a newbie case

thanks guys .. ur help is appreaciated.
htmlDIV
DIVFONT color=#cc face=Lucida Handwriting, 
CursiveEMSTRONGIMG height=16 
src=http://graphics.hotmail.com/emarrow_right.gif; 
width=16Ganesan_MalairajaIMG height=16 
src=http://graphics.hotmail.com/emarrow_left.gif; 
width=16/STRONG/EM/FONT/DIV/DIV/html




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