tomcat 5.0.28 redirect issue (error 302)

2005-10-10 Thread Tony Qian

All,

I installed jakarta-tomcat-5.0.28 on my PC and changed port to 8283 and 
added a simple servlet which has doGet and doPost.

I used a java program which uses httpclient to send doGet and doPost 
requests to that servlet. doGet worked well. However, I got following 
error msg for doPost request:

Oct 7, 2005 3:56:52 PM org.apache.commons.httpclient.HttpMethodBase 
processRedirectResponse
INFO: Redirect requested but followRedirects is disabled
The Status code = 302


Same program worked fine for tomcat 4. Any ideas?

Thanks in advance.

Tony


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



Add parameters into tomcat service ......

2005-10-10 Thread Tony Lu
Tomcat (5.0.28) runs on Windows 2003 Server.

Web application needs some information from tomcat starup. So I add
following statement in startup.bat batch file
set JAVA_OPTS=-Xms512m -Xmx512m -
Daos.configuration=%CATALINA_HOME%/conf/aos.config
Application runs well When I start Tomcat by startup.bat

But now I need to install Tomcat as windows service, how to add
aforementioned statement into this tomcat service?
Following is what I have done for it, but it failed.

1: Modify service.bat file, add --JvmOptions -Xms512m;-Xmx512m;-
Daos.configuration=%CATALINA_HOME%/conf/aos.config behind
%EXECUTABLE% //IS//%SERVICE_NAME%
2: Make Tomcat as Windows Service

run :service install tomcat5

3: Start service 'tomcat5'

But application runs not well because it can not get information from
startup parameters.

My question is:
how to add statement set JAVA_OPTS=-Xms512m -Xmx512m -
Daos.configuration=%CATALINA_HOME%/conf/aos.config
into tomcat5 service?

Thanks


Re: org.apache.catalina.valves.RemoteHostValve issue

2005-09-20 Thread Tony Tomcat
 
 -- Forwarded message --
 From: Mark Thomas [EMAIL PROTECTED]
 To: Tomcat Users List tomcat-user@jakarta.apache.org
 Date: Wed, 17 Aug 2005 08:03:45 +0100
 Subject: Re: org.apache.catalina.valves.RemoteHostValve issue
 Tony Tomcat wrote:
  Does the RemoteHostValve work? There are no examples in the Tomcat 5
  docs and the tomcat 4 docs have the following..
 
  Valve className=org.apache.catalina.valves .RemoteHostValve
  allow=*.mycompany.com,www.yourcompany.com http://www.yourcompany.com/
 /
 
 The docs have been updated for 4 and 5 not to use this example.
 
 The problem is that . is a special character in a regular expression
 and needs to be escaped if you want to match a single . character in
 your input.
 
 The regexp docs are the place to read up on this.
 
 The following should work but I haven't tried it.
 
 Valve className=org.apache.catalina.valves.RemoteHostValve
 allow=.*mycompany\.com,www\.yourcompany\.com/
 
 Mark
 


Actually.. according to the documentation the RemoteHostValve and 
RemoteAddrValve both do the same thing..

They both say...
Concrete implementation of RequestFilterValve that filters based on the 
string representation of the remote client's IP address.

The javadoc is exactly the same except the class name. :-P

Is it safe to say that tomcat doesn't support FQDN filtering (or is this 
just a typo/(cut-paste) issue? If it does support it are there performance 
implications since it seems that it would need to do a DNS lookup on all 
incoming connections.


Re: org.apache.catalina.valves.RemoteHostValve issue

2005-09-20 Thread Tony Tomcat
ok. got off my lazy butt and looked at the code. RemoteHostValve uses 
request.getRequest().getRemoteHost() 

so just the javadoc needs updating for RemoteHostValve.java. I'm sure this 
was just a copy of RemoteAddrValve. ;-)

Now i just need to figure out how to configure my tomcat to return values 
for getRemoteHost calls. 


 From: *Tony Tomcat [EMAIL PROTECTED]*
 Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Date: *Sep 20, 2005 4:35 PM*
Subject: *Re: org.apache.catalina.valves.RemoteHostValve issue*
Reply | Reply to all | Forward | Print | Add sender to Contacts list | Trash 
this message | Show original

 -- Forwarded message --
 From: Mark Thomas [EMAIL PROTECTED]
 To: Tomcat Users List tomcat-user@jakarta.apache.org
 Date: Wed, 17 Aug 2005 08:03:45 +0100
 Subject: Re: org.apache.catalina.valves.RemoteHostValve issue
 Tony Tomcat wrote:
  Does the RemoteHostValve work? There are no examples in the Tomcat 5
  docs and the tomcat 4 docs have the following..
 
  Valve className=org.apache.catalina.valves .RemoteHostValve
  allow=*.mycompany.com, www.yourcompany.comhttp://www.yourcompany.com/
 /
 
 The docs have been updated for 4 and 5 not to use this example.
 
 The problem is that . is a special character in a regular expression
 and needs to be escaped if you want to match a single . character in 
 your input.
 
 The regexp docs are the place to read up on this.
 
 The following should work but I haven't tried it.
 
 Valve className=org.apache.catalina.valves. RemoteHostValve
 allow=.*mycompany\.com,www\.yourcompany\.com/
 
 Mark
 


Actually.. according to the documentation the RemoteHostValve and 
RemoteAddrValve both do the same thing..

They both say...
Concrete implementation of RequestFilterValve that filters based on the 
string representation of the remote client's IP address.

The javadoc is exactly the same except the class name. :-P

Is it safe to say that tomcat doesn't support FQDN filtering (or is this 
just a typo/(cut-paste) issue? If it does support it are there performance 
implications since it seems that it would need to do a DNS lookup on all 
incoming connections.


RE: Cannot forward after response has been committed

2005-09-19 Thread Tony
Actually, the line end after the first line is sent back to the client,
with apropriate html headers invented.
%@ page language=java%%// now the line end is in java not in html

Yep, looks ugly.
What is even worse is code that sends a redirect and does NOT do a return.

-Original Message-
From: Michael Lai [mailto:[EMAIL PROTECTED]
Sent: Monday, September 19, 2005 10:17 PM
To: Tomcat Users List
Subject: Cannot forward after response has been committed


I have a jsp page that processes a login.  The (simplified) code is 
something like this:

%@ page language=java%
%
String userid = request.getParameter(userid);
String pw = request.getParameter(pw);

/* code to check user id and password */

if (user not found)
   pageContext.forward(login.jsp);
else
   pageContext.forward(userpage.jsp);
%

Please note that nowhere in my jsp code do I use the out object or 
send some outputs back to the client.  Yet, I am getting this Cannot 
forward after response has been committed error.  If I comment out the 
forward statements then the error disappears.  Any help is appreciated.

-
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: Cannot forward after response has been committed

2005-09-19 Thread Tony
You want the line breaks, either line-feed or carriage-return, line-feed
to occur within the java or jsp code, not within the html code.
Sometimes the html is buffered and ignored when something else puts out
headers or such.

Within HTML, line breaks do not matter much
Before HTML, any line break implies that HTML has started and you can get
default headers without doing anything.
Within JSP or Java, line breaks do not matter much.

Choice of uglies.
%@ page ...
%% code here

%@ page ... %%
code here

%@ page %
---there is here the line break of the above line---
% at this point the response has been committed by outputting the above
\r\n or whatever


-Original Message-
From: Michael Lai [mailto:[EMAIL PROTECTED]
Sent: Monday, September 19, 2005 10:34 PM
To: Tomcat Users List
Subject: Re: Cannot forward after response has been committed


I have an index.jsp page that checks a user's access level:

%@ page language=java errorPage= %   --there is an html new-line
here!!!
%
String userid = (String)session.getAttribute(UserId);

if (userid == null) {
   pageContext.forward(login.jsp);
} else {
   String access = (String)session.getAttribute(Access);

   switch (access.charAt(0)) {
  case 'A':
 pageContext.forward(admin/index.jsp);
  case 'R': case 'W':
 pageContext.forward(db/index.jsp);
  default:
 pageContext.forward(login.jsp);
   }
}
%

And yet the above page works even with the %@ page language=java %
line.  I don't understand why the above code works but the doesn't work
for another page.

What do you propose -- that I remove the %@ page... % line?

[EMAIL PROTECTED] wrote:

Actually, the line end after the first line is sent back to the client,
with apropriate html headers invented.
%@ page language=java%%// now the line end is in java not in html

Yep, looks ugly.
What is even worse is code that sends a redirect and does NOT do a return.

-Original Message-
From: Michael Lai [mailto:[EMAIL PROTECTED]
Sent: Monday, September 19, 2005 10:17 PM
To: Tomcat Users List
Subject: Cannot forward after response has been committed


I have a jsp page that processes a login.  The (simplified) code is
something like this:

%@ page language=java%
%
String userid = request.getParameter(userid);
String pw = request.getParameter(pw);

/* code to check user id and password */

if (user not found)
   pageContext.forward(login.jsp);
else
   pageContext.forward(userpage.jsp);
%

Please note that nowhere in my jsp code do I use the out object or
send some outputs back to the client.  Yet, I am getting this Cannot
forward after response has been committed error.  If I comment out the
forward statements then the error disappears.  Any help is appreciated.


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



org.apache.catalina.valves.RemoteHostValve issue

2005-08-16 Thread Tony Tomcat
Does the RemoteHostValve work?   There are no examples in the Tomcat 5
docs and the tomcat 4 docs have the following..

 Valve className=org.apache.catalina.valves.RemoteHostValve
 allow=*.mycompany.com,www.yourcompany.com/

Any regex starting with * fails in Tomcat 5 and you can also see this
happen on the Regex test applet.

http://jakarta.apache.org/regexp/applet.html

Does anyone have some working examples?  It doesn't work for me even
if I type in the full hostname.   Perhaps there is something in Tomcat
I need to configure for it to be able to get the hostname of the
requestor?

Tony

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



close pooled conection-by value or by reference

2005-07-23 Thread Tony Smith
I think this is a classic java question: Pass by
reference or by value. I have a DatabaseManager class
which takes care of get conection from connection pool
and release the connectoin. I am not sure about the
release part. Here is my code:

class MyMainClass

public static final void main(String[] args){

Connection connection =
DatabaseManager.getConnection();

//jdbc work.

   DatabaseManager.closeConnection(connection);
...
}


public class DatabaseManager {
 
public static Connection getConnection(){
Connection connection =
getConectionFromDataSource();

   return connection;
}

public static void closeConnection(Connection
conn){
if (conn != null){
try{
conn.close();
}catch(SQLException sqle){
sqle.printStackTrace();
}
}
conn = null;
}}


I am not sure if the connection is released


Thanks,






Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 

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



Connection pool exhausted

2005-07-19 Thread Tony Smith
I am runing tomcat 5.0 + postgresql. I set my
connection pool in server.xml as:

Resource
  name=jdbc/mysource
  type=javax.sql.DataSource
  password=
  driverClassName=org.postgresql.Driver
  maxIdle=100
  maxWait=5000
  validationQuery=select * from test
  username=
  url=jdbc:postgresql://localhost:5432/mydb
  maxActive=100/

I call it from my servlet as:

public Connection getConnection(){
try{
Context initCtx = new InitialContext();
Context envCtx =
(Context)initCtx.lookup(java:comp/env);
DataSource ds =
(DataSource)envCtx.lookup(jdbc/mysource);
DatabaseManager.initDataSource(ds);
return ds.getConnection();
}catch(Exception e){
e.printStackTrace();
}

return null;
}


I use the connection as:

Connection connection = getConnection();

//jdbc

//I did not call connection.close(). Should I?

Then, I can run my web app. But not for long. I got
the following exception after browse a few pages:

org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot
get a connection, pool exhausted


How can I fix it?

Thanks,





--- skausl [EMAIL PROTECTED] wrote:

 
 I have log4j-1.2.11.jar in Tomcat\common\lib and
 log4j.properties in
 Tomcat\common\classes\.
 
  -Original Message-
  Sorry if this is an oft-repeated question. 
 Digging through 
  old archives
  of this list and Google haven't turned up anything
 directly related.  
  
  I'm trying to run Tomcat 5.5.9 as a windows
 service 
  (installed it using
  service.bat), but for some unknown reason, it does
 not pick up the
  log4j.properties files located in my applications
 WEB-INF\classes
  directory.  As far as I can tell, the java
 options, classpath and
  startup class are identical for both.  Is this a 
  limitation/weakness of
  the Windows Service or do I have something
 mis-configured?
  
  Thank You.
  Brian
 
 

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


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

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



tomcat connection pool

2005-07-17 Thread Tony Smith
Hi, Can anyone show me how to setup connection pool
and call it from java?

Thanks,



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

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



Re: generate image by servlet for large amount of requests

2005-07-08 Thread Tony Smith
Any ideas? 

--- Tony Smith [EMAIL PROTECTED] wrote:

 Let's think about maps.yahoo.com. I do not know how
 they handle 
 millions of request and generate the map pictures
 quickly. If I use a 
 servlet, in the post or get method I use: 
 
 
 BufferedImage mapImage =
 myTookKit.generateMap(String address); 
 response.setContentType(image­/png); 
 OutputStream os = response.getOutputStream(); 
 ImageIO.write(buffer, png, os); 
 os.close(); 
 
 
 Is servlet a good choice? If I use servlet, is the
 code above good 
 enough to handle hundreds of request? Is the choice
 of
 BufferedImage a 
 good one? What special technique I need to implement
 myTookKit to 
 make it faster? I am thinking about JNI. 
 
 
 Thanks, 
 
 
 
 
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam
 protection around 
 http://mail.yahoo.com 
 

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


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

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



control ports on windows

2005-07-07 Thread Tony Smith
Hi, I am running Tomcat 5.0 on Windows. But what I
want to do it not link to Tomcat. I would like to know
how to  control all those ports. For example, I would
like to open 8080 but close 8089, etc...


Thanks,





Sell on Yahoo! Auctions – no fees. Bid on great items.  
http://auctions.yahoo.com/

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



generate image by servlet for large amount of requests

2005-07-07 Thread Tony Smith
Let's think about maps.yahoo.com. I do not know how
they handle 
millions of request and generate the map pictures
quickly. If I use a 
servlet, in the post or get method I use: 


BufferedImage mapImage =
myTookKit.generateMap(String address); 
response.setContentType(image­/png); 
OutputStream os = response.getOutputStream(); 
ImageIO.write(buffer, png, os); 
os.close(); 


Is servlet a good choice? If I use servlet, is the
code above good 
enough to handle hundreds of request? Is the choice of
BufferedImage a 
good one? What special technique I need to implement
myTookKit to 
make it faster? I am thinking about JNI. 


Thanks, 




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

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



tomcat default webapp

2005-07-01 Thread Tony Smith
I would like to set my web app as tomcat's default
app. Thus, if my visitor type
http://www.mydomain.com:8080, it will start my web
app, not the tomcat default. How can I do this? (I do
not want to change my web app's directory name, since
some people will still access my site from
http://www.mydomain.com/myapp). I found that people
talked about change the Context in Tomcat
5/conf/server.xml. But I can not found the commented
Context tag in my server.xml and do not know where to
put it. 

Could anyone help?

Thanks,





__ 
Do you Yahoo!? 
Yahoo! Mail - You care about security. So do we. 
http://promotions.yahoo.com/new_mail

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



RE: tomcat default webapp

2005-07-01 Thread Tony Smith
I did that, it did not work. The content of default
page also confirmed this because index.jsp is
compiled in the servlet at installation.


--- Raghupathy,Gurumoorthy
[EMAIL PROTECTED] wrote:

 In the webapps directory there will be something
 called ROOT ... Change
 the index.jsp inside that and point your browser to 
 http://www.mydomain.com:8080
 
 -Original Message-
 From: Tony Smith [mailto:[EMAIL PROTECTED] 
 Sent: 01 July 2005 18:39
 To: Tomcat Users List
 Subject: tomcat default webapp
 
 
 I would like to set my web app as tomcat's default
 app. Thus, if my visitor type
 http://www.mydomain.com:8080, it will start my web
 app, not the tomcat default. How can I do this? (I
 do
 not want to change my web app's directory name,
 since
 some people will still access my site from
 http://www.mydomain.com/myapp). I found that people
 talked about change the Context in Tomcat
 5/conf/server.xml. But I can not found the
 commented
 Context tag in my server.xml and do not know where
 to
 put it. 
 
 Could anyone help?
 
 Thanks,
 
 
 
   
   
 __ 
 Do you Yahoo!? 
 Yahoo! Mail - You care about security. So do we. 
 http://promotions.yahoo.com/new_mail
 

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




 
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]



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


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



RE: 503 Service Temporarily Unavailable

2005-06-25 Thread Tony
I'm sure you have already, but check the Windows Firewall settings.
Also check what is actually running and listening on what ports.

-Original Message-
From: John Lindley [mailto:[EMAIL PROTECTED]
Sent: Saturday, June 25, 2005 12:41 AM
To: tomcat-user@jakarta.apache.org
Subject: 503 Service Temporarily Unavailable


I am a consultant running Windows server 2003, Apache 2.0.54, Tomcat 5.0.28,
mod_jk2 2.0.4

This machine is stored on site of my client.  Last night, they applied some
server patches which
apparently should have had nothing to do with the Apache/Tomcat setup.
Before these patches were
applied, everything was working completely fine.  After the patches were
applied and the machine
was restarted, we now get a 503 Service Temporarily Unavailable error.

Apache is correctly serving html, and when port 8080 is specified Tomcat
serves the jsp pages
fine.

I saw that someone posted almost the exact same problem on another site
earlier today.  Did anyone
else have this problem pop up?  Does anyone have any ideas?  I essentially
need to get this fixed
before Monday, so any help would be greatly appreciated.  Thanks!

John




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]


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



RE: 503 Service Temporarily Unavailable

2005-06-25 Thread Tony
Apache and Tomcat use ports other than 80 to communicate with each other.
probably something like 8080 8007 8009  or something similar.
netstat -noa works on XP, so presumable on WS2003 etc
Cheap trick is to temporarily disable the firewall to see if that makes a
difference.

Reenabling 80 (default used by every web server) and not reenabling
unknown ports (like for tomcat) is quite plausible.
If you're lucky it's something that easy.
I wish you luck.

-Original Message-
From: charly [mailto:[EMAIL PROTECTED]
Sent: Saturday, June 25, 2005 2:52 AM
To: Tomcat Users List
Subject: Re: 503 Service Temporarily Unavailable


Have you checked the tomcat/mod_jk  logs (catalina,localhost)?
And only to be sure... have you checked the modification dates of your
apache/mod_jk config files?

of course you have tried restarting tomcat and apache?

I have done a quick check and it seems ok.  The front page of the site is
just
html and it serves
 that up just fine, so port 80 should be fine.  Is there something I'm not
 thinking of?

 John

 --- [EMAIL PROTECTED] wrote:

 I'm sure you have already, but check the Windows Firewall settings.
 Also check what is actually running and listening on what ports.

 -Original Message-
 From: John Lindley [mailto:[EMAIL PROTECTED]
 Sent: Saturday, June 25, 2005 12:41 AM
 To: tomcat-user@jakarta.apache.org
 Subject: 503 Service Temporarily Unavailable


 I am a consultant running Windows server 2003, Apache 2.0.54, Tomcat
5.0.28,
 mod_jk2 2.0.4

 This machine is stored on site of my client.  Last night, they applied
some
 server patches which
 apparently should have had nothing to do with the Apache/Tomcat setup.
 Before these patches were
 applied, everything was working completely fine.  After the patches were
 applied and the machine
 was restarted, we now get a 503 Service Temporarily Unavailable error.

 Apache is correctly serving html, and when port 8080 is specified Tomcat
 serves the jsp pages
 fine.

 I saw that someone posted almost the exact same problem on another site
 earlier today.  Did anyone
 else have this problem pop up?  Does anyone have any ideas?  I
essentially
 need to get this fixed
 before Monday, so any help would be greatly appreciated.  Thanks!

 John






___
Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden:
http://mail.yahoo.de

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



default username/password for tomcat

2005-06-23 Thread Tony Smith
What is the default username/password for Tomcat
Manager? I can not log in to Tomcat Manager. I did not
set my own username/password when I instlled tomcat.
They must be the defualt.

Thanks,




 
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]



running tomcat on port 80

2005-06-21 Thread Tony Smith
Hi, Can I run Tomcat 5.0 on port 80? I do not want my
visitor have to type the port number. 

After setting 80
as port number in the server.xml and starting tomcat,
I got the following error message:

SEVERE: Error starting endpoint
java.net.BindException:permission denied:80

Thanks,





 
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]



RE: Tomcat service terminated unexpectedly

2005-05-09 Thread Tony
Do you perchance have the Norton virus known as anti?

-Original Message-
From: Roberto Rios [mailto:[EMAIL PROTECTED]
Sent: Monday, May 09, 2005 7:43 AM
To: 'Tomcat Users List'
Subject: Tomcat service terminated unexpectedly
Importance: High


Hi,

We have a tomcat running in a W2K Box (tomcat 4.1.30, java 1.4.1_01, W2K
SP4, Pentium Xeon 2,8Ghz, 2,5Gb ram).

Tomcat is running as a service (default installation) and time to time
(random) it crashes with the following message:

The Apache Tomcat 4.1 service terminated unexpectedly. It has done this
1 time(s). The following corrective action will be taken in 6
milliseconds: Restart the service.

The source of this message is Service Control Manager and the event id
is 7031.

After the restart, I receive more or less 120 warning messages telling
me that:

The compressed file C:\winnt\temp\jar_cacheX.tmp contains files
number that is larger than 100. The file was skipped by Real-Time scan.

Does someone experienced something like this? Any suggestion? Is there
any know issue with tomcat service?

Maybe doing an upgrade on java/tomcat?

TIA,

Bob


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

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



RE: Tomcat 5 slow, it's in production, please help!

2005-05-07 Thread Tony
As a wild guess
Browser drops the connection immediately without notice
After 5 minutes, tomcat decides to drop the connection
After 30 minutes or so, Solaris finally finishes dropping the connection.
Gives a strange meaning to Keep-Alive ;)

-Original Message-
From: Jeffrey [mailto:[EMAIL PROTECTED]
Sent: Saturday, May 07, 2005 9:21 AM
To: Tomcat Users List
Subject: RE: Tomcat 5 slow, it's in production, please help!


I am sorry, the box runs a Solaris 5.6 instead of 2.6
as I said before. But still you are probably right, it
would be better to get a new OS installed.

I didn't use ndd commands to set the TCP parameters.
So even though we have the session timeout set to 5
minutes at the tomcat level, that parameter is not
honored by the operating system?


--- [EMAIL PROTECTED] wrote:
 I think some of the problem is at the OS level
 
 You can set a session time at the tomcat level, but
 the default solaris TCP timeouts are hours long.   I
 hope you used the ndd commands to set the TCP
 parameters for short web sessions.
 
 Also, Solaris 2.6 has a bad thread model and there
 are numerous patches required to run it with  any
 recent Java 2 distributions.   To use the 1.4.xxx
 JVM would require about a dozen patches.
 
 It would be way better to try to get Solaris 10
 installed on this box  -- It handles the ndd setting
 for you and is way faster on the same hardware. 
 [even solaris 8...]
 
 
  -- Original message
 --
 From: [EMAIL PROTECTED]
  What does netstat -nt show?
  You may have enough connections going that old
 ones 
  have to time out before you can establish a new
 one.
  
  -Original Message-
  From: Jeffrey [mailto:[EMAIL PROTECTED]
  Sent: Friday, May 06, 2005 2:16 PM
  To: tomcat-user@jakarta.apache.org
  Subject: Tomcat 5 slow, it's in production, please
 help!
  
  
  I have a apache/tomcat environment that has some
  problems recently. The environment has the
 following:
  1.  Apache 1.3
  2.  Tomcat 5.0.28 (Max memory 384mb)
  3.  JDK 1.4.2_06
  
  My apache has MaxClient set to 256 (apache
 default).
  The maxThread for tomcat is 500. The site is a
  database driven site. 
  
  It seems working fine when load is low. But when
 there
  are more than 150 threads (from the sever status
 view
  of the tomcat manager), it's response time is very
  slow (5 - 10 minutes). I have tested the database
  connections, they seem responding fairly well.
  
  Interesting thing is that most of time the slow
  response time only happens when a user login. Once
 the
  user login and get the main menu page, the user
 will
  get a good response time. Is it related to
 KeepAlive
  connections. 
  
  Another strange thing is that many threads always
 show
  up in the server status view on the tomcat html
  manager page even though I am sure the request has
  gone (I tested this by making a request, then
 close
  the browser).
  
  My CPU usage is low when the slowdown is
 experienced
  (Using the top command on this solaris box which
 has
  old solaris operating system 2.6? with 1GB memory.
  
  I set the session timeout time to 5 minutes, but
 in
  the session view of tomcat manager, I see message
 30
  - 40 minutes:136 sessions. How a session that is
  more than 30 minutes is still there. Maybe I don't
  understand this message correctly.
  
  Please advice. This is a production machine. Helps
 are
  greatly appreciated.
  
  Thanks.
  
  Jeffrey.
  
  
  
  Discover Yahoo! 
  Get on-the-go sports scores, stock quotes, news
 and more. Check it out! 
  http://discover.yahoo.com/mobile.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]
  
 
 
 

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

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

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

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



RE: Tomcat 5 slow, it's in production, please help!

2005-05-06 Thread Tony
What does netstat -nt show?
You may have enough connections going that old ones 
have to time out before you can establish a new one.

-Original Message-
From: Jeffrey [mailto:[EMAIL PROTECTED]
Sent: Friday, May 06, 2005 2:16 PM
To: tomcat-user@jakarta.apache.org
Subject: Tomcat 5 slow, it's in production, please help!


I have a apache/tomcat environment that has some
problems recently. The environment has the following:
1.  Apache 1.3
2.  Tomcat 5.0.28 (Max memory 384mb)
3.  JDK 1.4.2_06

My apache has MaxClient set to 256 (apache default).
The maxThread for tomcat is 500. The site is a
database driven site. 

It seems working fine when load is low. But when there
are more than 150 threads (from the sever status view
of the tomcat manager), it's response time is very
slow (5 - 10 minutes). I have tested the database
connections, they seem responding fairly well.

Interesting thing is that most of time the slow
response time only happens when a user login. Once the
user login and get the main menu page, the user will
get a good response time. Is it related to KeepAlive
connections. 

Another strange thing is that many threads always show
up in the server status view on the tomcat html
manager page even though I am sure the request has
gone (I tested this by making a request, then close
the browser).

My CPU usage is low when the slowdown is experienced
(Using the top command on this solaris box which has
old solaris operating system 2.6? with 1GB memory.

I set the session timeout time to 5 minutes, but in
the session view of tomcat manager, I see message 30
- 40 minutes:136 sessions. How a session that is
more than 30 minutes is still there. Maybe I don't
understand this message correctly.

Please advice. This is a production machine. Helps are
greatly appreciated.

Thanks.

Jeffrey.



Discover Yahoo! 
Get on-the-go sports scores, stock quotes, news and more. Check it out! 
http://discover.yahoo.com/mobile.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: Tomcat 5 slow, it's in production, please help!

2005-05-06 Thread Tony


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, May 06, 2005 3:39 PM
To: Jeffrey; Tomcat Users List
Subject: RE: Tomcat 5 slow, it's in production, please help!


There are certainly people here who understand this much better than I, but

ESTABLISHED these connections are doing something or are capable of 
doing
something

TIME WAIT   these connections are in the process of dying
CLOSE WAIT
FIN WAIT 2

They can't do anything useful but do occupy space until they are finally
gone.
If the browser just goes away and doesn't end the connection, the server has
to wait
for a while before ending it and waiting for responses that never come.

-Original Message-
From: Jeffrey [mailto:[EMAIL PROTECTED]
Sent: Friday, May 06, 2005 3:10 PM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: RE: Tomcat 5 slow, it's in production, please help!


Thanks for reply. With netstat -n, I got numerous
records. Please see the attached file if the following
is hard to see.


TCP
   Local AddressRemote AddressSwind Send-Q
Rwind Recv-Q  State
  - --
- -- ---
129.93.1.146.33544   129.93.1.146.12002   32768  0
32768  0 CLOSE_WAIT
129.93.1.146.33572   129.93.1.146.12002   32768  0
32768  0 CLOSE_WAIT
129.93.1.146.33573   129.93.1.146.12002   32768  0
32768  0 CLOSE_WAIT
127.0.0.1.33692  127.0.0.1.8009   32768  0
32768  0 ESTABLISHED
127.0.0.1.8009   127.0.0.1.33692  32768  0
32768  0 ESTABLISHED
127.0.0.1.33694  127.0.0.1.8009   32768  0
32768  0 ESTABLISHED
127.0.0.1.8009   127.0.0.1.33694  32768  0
32768  0 ESTABLISHED
127.0.0.1.33710  127.0.0.1.8009   32768  0
32768  0 ESTABLISHED

[snip]  too much stuff  [snip]

129.93.1.146.443 164.119.68.37.2826   64186  0
 8760  0 TIME_WAIT
129.93.1.146.443 24.27.148.239.2308   16365  0
 8760  0 ESTABLISHED
129.93.1.146.443 164.119.68.37.2919   65535  0
 8658  0 ESTABLISHED
129.93.1.146.36485   64.89.177.72.5   64677  0
 9660  0 TIME_WAIT
127.0.0.1.8007   127.0.0.1.36488  32768  0
32768  0 TIME_WAIT
129.93.1.146.36487   64.89.177.72.5   64677  0
 9660  0 TIME_WAIT
129.93.1.146.443 65.31.230.130.1206   11368  0
 8760  0 FIN_WAIT_2
129.93.1.146.443 65.31.230.12.60763   17520   1087
 8760  0 ESTABLISHED
129.93.1.146.443 129.93.120.170.1460  17520  0
 8658  0 ESTABLISHED
129.93.1.146.36489   64.89.177.72.5   64677  0
 9660  0 TIME_WAIT
127.0.0.1.36336  127.0.0.1.8009   32768  0
32768  0 TIME_WAIT
129.93.1.146.443 24.252.59.10.392316365  0
 8760  0 ESTABLISHED
129.93.1.146.443 69.20.197.189.11999112  0
 9016  0 ESTABLISHED
127.0.0.1.36491  127.0.0.1.8009   32768  0
32768  0 ESTABLISHED
127.0.0.1.8009   127.0.0.1.36491  32768  0
32768  0 ESTABLISHED
129.93.1.146.443 24.208.93.36.955425200  0
 8682  0 ESTABLISHED

--- [EMAIL PROTECTED] wrote:
 What does netstat -nt show?
 You may have enough connections going that old ones
 have to time out before you can establish a new one.

 -Original Message-
 From: Jeffrey [mailto:[EMAIL PROTECTED]
 Sent: Friday, May 06, 2005 2:16 PM
 To: tomcat-user@jakarta.apache.org
 Subject: Tomcat 5 slow, it's in production, please
 help!


 I have a apache/tomcat environment that has some
 problems recently. The environment has the
 following:
 1.  Apache 1.3
 2.  Tomcat 5.0.28 (Max memory 384mb)
 3.  JDK 1.4.2_06

 My apache has MaxClient set to 256 (apache default).
 The maxThread for tomcat is 500. The site is a
 database driven site.

 It seems working fine when load is low. But when
 there
 are more than 150 threads (from the sever status
 view
 of the tomcat manager), it's response time is very
 slow (5 - 10 minutes). I have tested the database
 connections, they seem responding fairly well.

 Interesting thing is that most of time the slow
 response time only happens when a user login. Once
 the
 user login and get the main menu page, the user will
 get a good response time. Is it related to KeepAlive
 connections.

 Another strange thing is that many threads always
 show
 up in the server status view on the tomcat html
 manager page even though I am sure the request has
 gone (I tested this by making a request, then close
 the browser).

 My CPU usage is low when the slowdown is experienced
 (Using the top command on this solaris box which has
 old solaris operating system 2.6? with 1GB memory.

 I set the session timeout time to 5 minutes, but in
 the session view of tomcat manager, I see message
 30
 - 40 minutes:136 sessions. How a session that is
 more than 30 minutes is still there. Maybe I don't
 understand this message correctly.

 Please advice. This is a production machine. Helps
 

RE: Tomcat 5 slow, it's in production, please help!

2005-05-06 Thread Tony

153 ESTABLISHED connections to port 443
553 connections to port 443 in the process of dying.
1420 connections total  (Assuming I'm reading the output of wc correctly;)

[EMAIL PROTECTED] tony]$ cat netstat.txt |grep ESTABLISHED|wc
6934851   55442
[EMAIL PROTECTED] tony]$ cat netstat.txt |grep CLOSE_WAIT|wc
101 7077980
[EMAIL PROTECTED] tony]$ cat netstat.txt |grep TIME_WAIT|wc
6104270   47590
[EMAIL PROTECTED] tony]$ cat netstat.txt |grep FIN_WAIT|wc
  3  21 237
[EMAIL PROTECTED] tony]$ cat netstat.txt |wc
   14209929  112098

[EMAIL PROTECTED] tony]$ cat netstat.txt |grep 127.0.0.1.8009|grep 
ESTABLISHED|wc
5123584   40960
[EMAIL PROTECTED] tony]$ cat netstat.txt |grep 127.0.0.1.8009|grep WAIT|wc
 25 1751950
[EMAIL PROTECTED] tony]$ cat netstat.txt |grep 129.93.1.146.443|grep WAIT|wc
5533871   43222
[EMAIL PROTECTED] tony]$  cat netstat.txt |grep 129.93.1.146.443|grep 
ESTABLISHED|wc
1531071   12242

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, May 06, 2005 7:00 PM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: RE: Tomcat 5 slow, it's in production, please help!


I think some of the problem is at the OS level

You can set a session time at the tomcat level, but the default solaris TCP
timeouts are hours long.   I hope you used the ndd commands to set the TCP
parameters for short web sessions.

Also, Solaris 2.6 has a bad thread model and there are numerous patches
required to run it with  any recent Java 2 distributions.   To use the
1.4.xxx JVM would require about a dozen patches.

It would be way better to try to get Solaris 10 installed on this box  -- It
handles the ndd setting for you and is way faster on the same hardware.
[even solaris 8...]


 -- Original message --
From: [EMAIL PROTECTED]
 What does netstat -nt show?
 You may have enough connections going that old ones
 have to time out before you can establish a new one.

 -Original Message-
 From: Jeffrey [mailto:[EMAIL PROTECTED]
 Sent: Friday, May 06, 2005 2:16 PM
 To: tomcat-user@jakarta.apache.org
 Subject: Tomcat 5 slow, it's in production, please help!


 I have a apache/tomcat environment that has some
 problems recently. The environment has the following:
 1.  Apache 1.3
 2.  Tomcat 5.0.28 (Max memory 384mb)
 3.  JDK 1.4.2_06

 My apache has MaxClient set to 256 (apache default).
 The maxThread for tomcat is 500. The site is a
 database driven site.

 It seems working fine when load is low. But when there
 are more than 150 threads (from the sever status view
 of the tomcat manager), it's response time is very
 slow (5 - 10 minutes). I have tested the database
 connections, they seem responding fairly well.

 Interesting thing is that most of time the slow
 response time only happens when a user login. Once the
 user login and get the main menu page, the user will
 get a good response time. Is it related to KeepAlive
 connections.

 Another strange thing is that many threads always show
 up in the server status view on the tomcat html
 manager page even though I am sure the request has
 gone (I tested this by making a request, then close
 the browser).

 My CPU usage is low when the slowdown is experienced
 (Using the top command on this solaris box which has
 old solaris operating system 2.6? with 1GB memory.

 I set the session timeout time to 5 minutes, but in
 the session view of tomcat manager, I see message 30
 - 40 minutes:136 sessions. How a session that is
 more than 30 minutes is still there. Maybe I don't
 understand this message correctly.

 Please advice. This is a production machine. Helps are
 greatly appreciated.

 Thanks.

 Jeffrey.



 Discover Yahoo!
 Get on-the-go sports scores, stock quotes, news and more. Check it out!
 http://discover.yahoo.com/mobile.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]



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



Re: Vedr.: Re: Vedr.: ISAPI_REDIRECT

2005-04-27 Thread Tony Nakamura
Hi Reynir,

I checked the server.xml, and it does have 8009 setting for listner ports
uncommented.
I have /jakarta virtual folder in IIS.

I'm really confused as to what could be wrong...

Thank you,


Tony


- Original Message - 
From: reynir [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Wednesday, April 27, 2005 4:47 AM
Subject: Re: Vedr.: Re: Vedr.: ISAPI_REDIRECT


 hi,

 do you have the connector on port 8009 in your tomcat ?
 do you have the /jakarta virtual folder in IIS ?

 hope it helps
 -reynir


 Tony Nakamura wrote:

 Hi Reynir,
 
 Yes, the tomcat is on localhost, and I'm trying to access directly from
the
 server right now.
 I can access the site with: http://localhost:8080/test/login.jsp but not
 without specifying 8080 port.
 404 is from IIS log, and it seems to have changed from 404:03 to 404:02.
 
 Just for kicks, I also tried to replace localhost with an ip address, but
it
 was the same result.
 
 
 Thanks,
 
 
 Tony
 
 
 - Original Message - 
 From: reynir [EMAIL PROTECTED]
 To: Tomcat Users List tomcat-user@jakarta.apache.org
 Sent: Tuesday, April 26, 2005 11:48 AM
 Subject: Re: Vedr.: Re: Vedr.: ISAPI_REDIRECT
 
 
 
 
 Hi,
 
 Looks like the isapi_redirector is forwarding the request to the
 localhost host of your tomcat setup. is it there ?
 Check the access logs on the tomcat application. See if it's receiving
 the request.
 
 your error message, the 404, is it from tomcat (the blue one) or is it
 from IIS ?
 
 hope it helps,
 - reynir
 
 Tony Nakamura wrote:
 
 
 
 Hi,
 
 I uninstalled the exe version of isapi_redirect and decided to manually
 configure them.
 As a result, I got the green arrow, and I'm able to see output in the
log
 file given isapi_redirect runs
 in debug mode.  The log looks like the following.  This log from when
I'm
 trying to run the IIS in 5.0 isolation mode.
 There is no output in the log file when I set the log level to error,
 
 
 but
 
 
 I still get 404 File Not Found error when I try to access
 http://localhost/test/login.jsp
 
 
 Thanks!
 
 
 Tony
 
 
 ==
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug]
init_jk::jk_isapi_plugin.c
 (1040): Using registry.
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug]
init_jk::jk_isapi_plugin.c
 (1043): Using log file c:\tomcat5.0.28\conf\isapi.log.
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug]
init_jk::jk_isapi_plugin.c
 (1044): Using log level 1.
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug]
init_jk::jk_isapi_plugin.c
 (1045): Using extension uri /jakarta/isapi_redirect.dll.
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug]
init_jk::jk_isapi_plugin.c
 (1046): Using worker file C:\tomcat5.0.28\conf\workers.properties.
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug]
init_jk::jk_isapi_plugin.c
 (1047): Using worker mount file
 C:\tomcat5.0.28\conf\uriworkermap.properties.
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug]
init_jk::jk_isapi_plugin.c
 (1049): Using uri select 0.
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug]
 uri_worker_map_open::jk_uri_worker_map.c (461): rule map size is 1
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug]
 uri_worker_map_add::jk_uri_worker_map.c (371): general suffix rule
 /*jsp=main was added
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug]
 uri_worker_map_open::jk_uri_worker_map.c (478): there are 1 rules
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug]
 
 
 build_worker_map::jk_worker.c
 
 
 (196): creating worker main
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug]
 
 
 wc_create_worker::jk_worker.c
 
 
 (120): about to create instance main of ajp13
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug]
 
 
 wc_create_worker::jk_worker.c
 
 
 (133): about to validate and init main
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug]
 
 
 ajp_validate::jk_ajp_common.c
 
 
 (1721): worker main contact is localhost:8009
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
 (1767): setting socket keepalive to 0
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
 (1806): setting socket timeout to -1
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
 (1810): setting connection recycle timeout to 0
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
 (1814): setting cache timeout to 0
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
 (1818): setting connect timeout to 0
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
 (1822): setting reply timeout to 0
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
 (1826): setting prepost timeout to 0
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
 (1830): setting recovery opts to 0
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
 (1834): setting number of retries to 3
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
 (1854): setting connection cache size to 1
 [Tue Apr 26 10:27:20 2005] [3616

Re: Vedr.: Re: Vedr.: ISAPI_REDIRECT

2005-04-27 Thread Tony Nakamura
Hi Reynir,

I got it working.  I put isapi dll in the /bin directory, but IIS was
rejecting because there were many batches and exe files in the same
directory.  Since the jakarta virtual directory is given execute permission
for both scripts and executables, it was throwing 404 error because it's a
security risk to execute such files locally on the server.  So I simply
created another folder with just the dll in it and had virtual directory
point to the directory.

Thank you for your help!



Tony


- Original Message - 
From: reynir [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Wednesday, April 27, 2005 8:57 AM
Subject: Re: Vedr.: Re: Vedr.: ISAPI_REDIRECT


 well,
 the fact that you are getting 404 error from IIS really means that IIS
 is receiving the request, and forwarding it to
 /jakarta/isapi_redirect.dll, that is a virtual folder mapped on to the
 folder that the DLL is positioned in. If the 404 is coming from IIS (as
 it seems) it's obviously not finding this path. you should be able to
 see it by viewing the accesslog of IIS it should show this path
 /jakarta/isapi_redirect.dll and the error code 404 if it's not found
 but 200 or something else if it's there.
 check again if this part of the setup is correct, sometimes the
 difference is the name of the dll, some name it isapi_redirector.dll
 but not isapi_redirect.dll and since the registry entry specifies the
 full name of the dll this must be correct.

 again, hope it helps.
 -reynir



 Tony Nakamura wrote:

 Hi Reynir,
 
 I checked the server.xml, and it does have 8009 setting for listner ports
 uncommented.
 I have /jakarta virtual folder in IIS.
 
 I'm really confused as to what could be wrong...
 
 Thank you,
 
 
 Tony
 
 
 - Original Message - 
 From: reynir [EMAIL PROTECTED]
 To: Tomcat Users List tomcat-user@jakarta.apache.org
 Sent: Wednesday, April 27, 2005 4:47 AM
 Subject: Re: Vedr.: Re: Vedr.: ISAPI_REDIRECT
 
 
 
 
 hi,
 
 do you have the connector on port 8009 in your tomcat ?
 do you have the /jakarta virtual folder in IIS ?
 
 hope it helps
 -reynir
 
 
 Tony Nakamura wrote:
 
 
 
 Hi Reynir,
 
 Yes, the tomcat is on localhost, and I'm trying to access directly from
 
 
 the
 
 
 server right now.
 I can access the site with: http://localhost:8080/test/login.jsp but
not
 without specifying 8080 port.
 404 is from IIS log, and it seems to have changed from 404:03 to
404:02.
 
 Just for kicks, I also tried to replace localhost with an ip address,
but
 
 
 it
 
 
 was the same result.
 
 
 Thanks,
 
 
 Tony
 
 
 - Original Message - 
 From: reynir [EMAIL PROTECTED]
 To: Tomcat Users List tomcat-user@jakarta.apache.org
 Sent: Tuesday, April 26, 2005 11:48 AM
 Subject: Re: Vedr.: Re: Vedr.: ISAPI_REDIRECT
 
 
 
 
 
 
 Hi,
 
 Looks like the isapi_redirector is forwarding the request to the
 localhost host of your tomcat setup. is it there ?
 Check the access logs on the tomcat application. See if it's receiving
 the request.
 
 your error message, the 404, is it from tomcat (the blue one) or is it
 
 
 from IIS ?
 
 
 hope it helps,
 - reynir
 
 Tony Nakamura wrote:
 
 
 
 
 
 Hi,
 
 I uninstalled the exe version of isapi_redirect and decided to
manually
 configure them.
 As a result, I got the green arrow, and I'm able to see output in the
 
 
 log
 
 
 file given isapi_redirect runs
 in debug mode.  The log looks like the following.  This log from when
 
 
 I'm
 
 
 trying to run the IIS in 5.0 isolation mode.
 There is no output in the log file when I set the log level to
error,
 
 
 
 
 but
 
 
 
 
 I still get 404 File Not Found error when I try to access
 http://localhost/test/login.jsp
 
 
 Thanks!
 
 
 Tony
 
 
 ==
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug]
 
 
 init_jk::jk_isapi_plugin.c
 
 
 (1040): Using registry.
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug]
 
 
 init_jk::jk_isapi_plugin.c
 
 
 (1043): Using log file c:\tomcat5.0.28\conf\isapi.log.
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug]
 
 
 init_jk::jk_isapi_plugin.c
 
 
 (1044): Using log level 1.
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug]
 
 
 init_jk::jk_isapi_plugin.c
 
 
 (1045): Using extension uri /jakarta/isapi_redirect.dll.
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug]
 
 
 init_jk::jk_isapi_plugin.c
 
 
 (1046): Using worker file C:\tomcat5.0.28\conf\workers.properties.
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug]
 
 
 init_jk::jk_isapi_plugin.c
 
 
 (1047): Using worker mount file
 C:\tomcat5.0.28\conf\uriworkermap.properties.
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug]
 
 
 init_jk::jk_isapi_plugin.c
 
 
 (1049): Using uri select 0.
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug]
 uri_worker_map_open::jk_uri_worker_map.c (461): rule map size is 1
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug]
 uri_worker_map_add::jk_uri_worker_map.c (371): general suffix rule
 /*jsp=main was added
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug]
 uri_worker_map_open::jk_uri_worker_map.c

ISAPI_REDIRECT

2005-04-26 Thread Tony Nakamura
Hi,

It seems like ISAPI filter for IIS is a common hurdle for many people to get it 
working, and I'm no exception.
My environment is as following:

Tomcat 5.0.28
IIS 6.0
Win 2003 Server
ISAPI_REDIRECT (used isapi_redirect-1.2.10.exe to setup)

I've gone through documentation for IIS 6 and ISAPI_REDIRECT and got the 
ISAPI_FILTER in IIS to have a green arrow.  However, it doesn't forward the 
request correctly to Tomcat, with IIS logging Error 404 - File not Found 
error.  Tomcat is working fine on port 8080.

Could anyone give me a direction on what could possibly be wrong?


Thank you,


Tony


Re: Vedr.: ISAPI_REDIRECT

2005-04-26 Thread Tony Nakamura
Hello Thomas,

Thank for the reply.  I failed to mention, but I've setup the Web Service
Entention to the isapi_redirect.dll and gave an allow permission.  I used
isapi_redirect-1.2.10.exe, so it should have setup all of the settings
correctly.  One other weird thing is that isapi_redirect.log does not have
any output.

Thank you,


Tony



- Original Message - 
From: Thomas Nybro Bolding [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Tuesday, April 26, 2005 8:55 AM
Subject: Vedr.: ISAPI_REDIRECT


 From

 http://www.reynir.net/java/greinar/nr/52


 If you are using IIS V6, which ships with Windows Server 2003, you must
 allow the Web Service Extension to operate. Earlier versions of IIS did
 not require this step. Using the IIS Internet Services Manager, click on
 the Web Services Extensions item in the left hand pane. In the right hand
 pane add a new Web Service Extension called, give it a name, and browse
 and set the required file for this extension to the isapi_redirect.dll and
 set the status to allowed. Then restart IIS.

 Best regards Thomas






 Tony Nakamura [EMAIL PROTECTED]
 26-04-2005 14:47
 Besvar venligst til Tomcat Users List


 Til:tomcat-user@jakarta.apache.org
 cc:
 Vedr.:  ISAPI_REDIRECT



 Hi,

 It seems like ISAPI filter for IIS is a common hurdle for many people to
 get it working, and I'm no exception.
 My environment is as following:

 Tomcat 5.0.28
 IIS 6.0
 Win 2003 Server
 ISAPI_REDIRECT (used isapi_redirect-1.2.10.exe to setup)

 I've gone through documentation for IIS 6 and ISAPI_REDIRECT and got the
 ISAPI_FILTER in IIS to have a green arrow.  However, it doesn't forward
 the request correctly to Tomcat, with IIS logging Error 404 - File not
 Found error.  Tomcat is working fine on port 8080.

 Could anyone give me a direction on what could possibly be wrong?


 Thank you,


 Tony




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





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



Re: Vedr.: Re: Vedr.: ISAPI_REDIRECT

2005-04-26 Thread Tony Nakamura
Hi,

I uninstalled the exe version of isapi_redirect and decided to manually
configure them.
As a result, I got the green arrow, and I'm able to see output in the log
file given isapi_redirect runs
in debug mode.  The log looks like the following.  This log from when I'm
trying to run the IIS in 5.0 isolation mode.
There is no output in the log file when I set the log level to error, but
I still get 404 File Not Found error when I try to access
http://localhost/test/login.jsp


Thanks!


Tony


==
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] init_jk::jk_isapi_plugin.c
(1040): Using registry.
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] init_jk::jk_isapi_plugin.c
(1043): Using log file c:\tomcat5.0.28\conf\isapi.log.
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] init_jk::jk_isapi_plugin.c
(1044): Using log level 1.
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] init_jk::jk_isapi_plugin.c
(1045): Using extension uri /jakarta/isapi_redirect.dll.
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] init_jk::jk_isapi_plugin.c
(1046): Using worker file C:\tomcat5.0.28\conf\workers.properties.
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] init_jk::jk_isapi_plugin.c
(1047): Using worker mount file
C:\tomcat5.0.28\conf\uriworkermap.properties.
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] init_jk::jk_isapi_plugin.c
(1049): Using uri select 0.
[Tue Apr 26 10:27:20 2005] [3616:816] [debug]
uri_worker_map_open::jk_uri_worker_map.c (461): rule map size is 1
[Tue Apr 26 10:27:20 2005] [3616:816] [debug]
uri_worker_map_add::jk_uri_worker_map.c (371): general suffix rule
/*jsp=main was added
[Tue Apr 26 10:27:20 2005] [3616:816] [debug]
uri_worker_map_open::jk_uri_worker_map.c (478): there are 1 rules
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] build_worker_map::jk_worker.c
(196): creating worker main
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] wc_create_worker::jk_worker.c
(120): about to create instance main of ajp13
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] wc_create_worker::jk_worker.c
(133): about to validate and init main
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_validate::jk_ajp_common.c
(1721): worker main contact is localhost:8009
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
(1767): setting socket keepalive to 0
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
(1806): setting socket timeout to -1
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
(1810): setting connection recycle timeout to 0
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
(1814): setting cache timeout to 0
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
(1818): setting connect timeout to 0
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
(1822): setting reply timeout to 0
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
(1826): setting prepost timeout to 0
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
(1830): setting recovery opts to 0
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
(1834): setting number of retries to 3
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
(1854): setting connection cache size to 1
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] build_worker_map::jk_worker.c
(208): removing old main worker
[Tue Apr 26 10:27:20 2005] [3616:816] [debug]
HttpFilterProc::jk_isapi_plugin.c (636): Detected IIS = 5.0
[Tue Apr 26 10:27:20 2005] [3616:816] [debug]
HttpFilterProc::jk_isapi_plugin.c (687): Filter started
[Tue Apr 26 10:27:20 2005] [3616:816] [debug]
HttpFilterProc::jk_isapi_plugin.c (753): Virtual Host redirection of
/localhost/test/login.jsp
[Tue Apr 26 10:27:20 2005] [3616:816] [debug]
map_uri_to_worker::jk_uri_worker_map.c (700): Attempting to map URI
'/localhost/test/login.jsp' from 1 maps
[Tue Apr 26 10:27:20 2005] [3616:816] [debug]
map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context URI
'/*jsp'
[Tue Apr 26 10:27:20 2005] [3616:816] [debug]
map_uri_to_worker::jk_uri_worker_map.c (768): Found a general suffix match
main - *jsp
[Tue Apr 26 10:27:20 2005] [3616:816] [debug]
HttpFilterProc::jk_isapi_plugin.c (770): check if [/test/login.jsp] is
points to the web-inf directory
[Tue Apr 26 10:27:20 2005] [3616:816] [debug]
HttpFilterProc::jk_isapi_plugin.c (788): [/test/login.jsp] is a servlet
url - should redirect to main
=
- Original Message - 
From: Thomas Nybro Bolding [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Tuesday, April 26, 2005 9:59 AM
Subject: Vedr.: Re: Vedr.: ISAPI_REDIRECT


 Hi Tony,
 my own experience with IIS 6.0 is rather limited as our production
 environment is Win2K, but I have seen several posts where people have put
 IIS 6.0 in IIS5.0 isolation mode?

 Another possibility is that your configuration files are broken (have you
 configured the jk connector etc.) Try

Re: Vedr.: Re: Vedr.: ISAPI_REDIRECT

2005-04-26 Thread Tony Nakamura
Hi Reynir,

Yes, the tomcat is on localhost, and I'm trying to access directly from the
server right now.
I can access the site with: http://localhost:8080/test/login.jsp but not
without specifying 8080 port.
404 is from IIS log, and it seems to have changed from 404:03 to 404:02.

Just for kicks, I also tried to replace localhost with an ip address, but it
was the same result.


Thanks,


Tony


- Original Message - 
From: reynir [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Tuesday, April 26, 2005 11:48 AM
Subject: Re: Vedr.: Re: Vedr.: ISAPI_REDIRECT


 Hi,

 Looks like the isapi_redirector is forwarding the request to the
 localhost host of your tomcat setup. is it there ?
 Check the access logs on the tomcat application. See if it's receiving
 the request.

 your error message, the 404, is it from tomcat (the blue one) or is it
 from IIS ?

 hope it helps,
 - reynir

 Tony Nakamura wrote:

 Hi,
 
 I uninstalled the exe version of isapi_redirect and decided to manually
 configure them.
 As a result, I got the green arrow, and I'm able to see output in the log
 file given isapi_redirect runs
 in debug mode.  The log looks like the following.  This log from when I'm
 trying to run the IIS in 5.0 isolation mode.
 There is no output in the log file when I set the log level to error,
but
 I still get 404 File Not Found error when I try to access
 http://localhost/test/login.jsp
 
 
 Thanks!
 
 
 Tony
 
 
 ==
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug] init_jk::jk_isapi_plugin.c
 (1040): Using registry.
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug] init_jk::jk_isapi_plugin.c
 (1043): Using log file c:\tomcat5.0.28\conf\isapi.log.
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug] init_jk::jk_isapi_plugin.c
 (1044): Using log level 1.
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug] init_jk::jk_isapi_plugin.c
 (1045): Using extension uri /jakarta/isapi_redirect.dll.
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug] init_jk::jk_isapi_plugin.c
 (1046): Using worker file C:\tomcat5.0.28\conf\workers.properties.
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug] init_jk::jk_isapi_plugin.c
 (1047): Using worker mount file
 C:\tomcat5.0.28\conf\uriworkermap.properties.
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug] init_jk::jk_isapi_plugin.c
 (1049): Using uri select 0.
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug]
 uri_worker_map_open::jk_uri_worker_map.c (461): rule map size is 1
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug]
 uri_worker_map_add::jk_uri_worker_map.c (371): general suffix rule
 /*jsp=main was added
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug]
 uri_worker_map_open::jk_uri_worker_map.c (478): there are 1 rules
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug]
build_worker_map::jk_worker.c
 (196): creating worker main
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug]
wc_create_worker::jk_worker.c
 (120): about to create instance main of ajp13
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug]
wc_create_worker::jk_worker.c
 (133): about to validate and init main
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug]
ajp_validate::jk_ajp_common.c
 (1721): worker main contact is localhost:8009
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
 (1767): setting socket keepalive to 0
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
 (1806): setting socket timeout to -1
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
 (1810): setting connection recycle timeout to 0
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
 (1814): setting cache timeout to 0
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
 (1818): setting connect timeout to 0
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
 (1822): setting reply timeout to 0
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
 (1826): setting prepost timeout to 0
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
 (1830): setting recovery opts to 0
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
 (1834): setting number of retries to 3
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
 (1854): setting connection cache size to 1
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug]
build_worker_map::jk_worker.c
 (208): removing old main worker
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug]
 HttpFilterProc::jk_isapi_plugin.c (636): Detected IIS = 5.0
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug]
 HttpFilterProc::jk_isapi_plugin.c (687): Filter started
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug]
 HttpFilterProc::jk_isapi_plugin.c (753): Virtual Host redirection of
 /localhost/test/login.jsp
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug]
 map_uri_to_worker::jk_uri_worker_map.c (700): Attempting to map URI
 '/localhost/test/login.jsp' from 1 maps
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug]
 map_uri_to_worker

Performance monitoring

2005-04-05 Thread Tony Tomcat
I started writing a Filter for my tomcat to monitor performance but
then I started wondering..  Is there a solution already out there that
I can use?  Can I pull data from Tomcat's MBeanServer?

What I would like to know is how long my servlets are taking to run. 
I need the Min, Max and  Average times.   I then would build a servlet
to output the data in XML or HTML format.  I also would want the data
over the past hour and past 24 hours.

Thanks in advance for any pointers or suggestions!
Tony

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



Re: Performance monitoring

2005-04-05 Thread Tony Tomcat
yeah.  I was looking at the status servlet but I wanted a little more
control of the output which is when I started digging through the code
and found that it was using MBeanServer.   I didn't know there was an
XML output option so I'll look into that.

Thanks for the Jmeter pointer too.  I have been using jmeter for
stress testing but I have never tried setting up a monitor.



On Apr 5, 2005 2:23 PM, Peter Lin [EMAIL PROTECTED] wrote:
 there's this little thing called the status servlet. It displays
 information in HTML format for each webapp.
 
 it can also show a subset of the full stats in XML.  there's this
 other project in jakarta called JMeter. It has a monitor for
 tomcat5.0.19 and newer that can monitor one or more Tomcat instances.
 
 so if you don't count the status servlet and tomcat, nothing exists :)
 
 peter
 
 
 On Apr 5, 2005 2:20 PM, Tony Tomcat [EMAIL PROTECTED] wrote:
  I started writing a Filter for my tomcat to monitor performance but
  then I started wondering..  Is there a solution already out there that
  I can use?  Can I pull data from Tomcat's MBeanServer?
 
  What I would like to know is how long my servlets are taking to run.
  I need the Min, Max and  Average times.   I then would build a servlet
  to output the data in XML or HTML format.  I also would want the data
  over the past hour and past 24 hours.
 
  Thanks in advance for any pointers or suggestions!
  Tony
 
  -
  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: Access denied with Apache + Tomcat config

2005-03-16 Thread Tony Stocker
Paul,

My virtualhost file is automatically generated by Tomcat on startup,
so IT is defining the worker (ajp13) by default.  The problem arose
because the sample workers.properties file doesn't use the same name,
by default, for illustrating how the file is used.  I'm sure there's a
way to change the Jkworker that is automatically generated by the
server on startup so that it will be any name I want, including that
found in the sample workers.properties file.  I just find it a bit
irritating that the default implementations of the two components
don't match up on something simple, yet key, as the worker name.

Seems to be a case of the left-hand developer not keeping up with
changes made by the right-hand developer.  What was really helpful was
the complete lack of any logging that indicated this was the problem. 
As I said I was simply documenting what fixed my problem for the sake
of posterity since after days of searching through archives and google
search results looking for information I ran across many threads that
would state a problem, get some responses, but then never report
whether the problem was ever fixed and if so how.


On Wed, 16 Mar 2005 16:29:47 +0100, Paul Puschmann [EMAIL PROTECTED] wrote:
 Tony Stocker wrote:
  All,
  
  I believe that I found my problem, and for the sake of posterity I'm
  posting it for the next poor fool who is forced to chase around the
  web and through books looking for decent documentation.
  
  When I set up Tomcat I copied the sample workers.properties file from
  the JK source.  However it turns out that the sample file uses the
  wrong worker name (compared to the name that is automatically
  generated.)  In my case, the sample file was this:
  
  worker.list=ajp13w
  
  worker.ajp13w.type=ajp13
  worker.ajp13w.host=localhost
  worker.ajp13w.port=8009
  
  However, as can be seen in my original post, the conf/auto/mod_jk.conf
  file wants to use ajp13.
  
  By changing the workers.properties file to 'ajp13' and NOT 'ajp13w'
  everything started working.
  
  
 Since you adresss the worker to use in the JkMount-entry, you should use
 the name of the existing worker in your virtualhost-file. (ajp13w)
 
 Paul
 
 
 -
 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]



Access denied with Apache + Tomcat config

2005-03-15 Thread Tony Stocker
Hello All,

I have searched the archives but have been unable to find a solution
to my problem.

I am integrating Apache 2.0.52 with Tomcat 5.0.28 using mod_jk 1.2.8
(compiled from source).  My client wants to continue using Apache as
the web server due to security and ease of configuration issues, so
using Tomcat as the web server is *not* an option.

The configuration appears to be good, and I can load a page such as
loading {server}/servelets-examples.  However I get 500 Interal
Server Error whenever I try to launch any of the jsp files.  There is
no indication of error in the CATALINA/logs files.  The only
indication in the Apache log files (error_log) occurs when attempting
to load the initial index.jsp page of a context:
[Tue Mar 15 16:10:23 2005] [error] [client xxx.xxx.xxx.xxx] client
denied by server configuration: index.jsp

I have checked my httpd.conf file and the
CATALINA/conf/auto/mod_jk.conf file but can find no reason why access
to the *jsp is denied.

I can include full versions of my various files, but for the sake of
space I'm only going to include snippets here:

[Apache httpd.conf]
LoadModule jk_module modules/mod_jk.so
...
Include /usr/local/tomcat/conf/auto/mod_jk.conf

[Tomcat conf/auto/mod_jk.conf]
JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties
JkLogFile /usr/local/tomcat/logs/mod_jk.log
...
 machine2.sample.com:/servlets-examples 

# Static files 
Alias /servlets-examples
/usr/local/jakarta-tomcat-5.0.28/webapps/servlets-examples

Directory /usr/local/jakarta-tomcat-5.0.28/webapps/servlets-examples
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp 
/Directory


# Deny direct access to WEB-INF and META-INF
#
Location /servlets-examples/WEB-INF/*
AllowOverride None
deny from all
/Location

Location /servlets-examples/META-INF/*
AllowOverride None
deny from all
/Location

JkMount /servlets-examples/jsp/security/protected/j_security_check  ajp13
JkMount /servlets-examples/servlet/HelloWorldExample  ajp13
JkMount /servlets-examples/servlet/SessionExample  ajp13
JkMount /servlets-examples/servlet/RequestHeaderExample  ajp13
JkMount /servlets-examples/servlet/RequestParamExample  ajp13
JkMount /servlets-examples/servlet/CookieExample  ajp13
JkMount /servlets-examples/*.jspx  ajp13
JkMount /servlets-examples/CompressionTest  ajp13
JkMount /servlets-examples/*.jsp  ajp13
JkMount /servlets-examples/servlet/RequestInfoExample/*  ajp13

[Tomcat server.xml]
Server port=8005 shutdown=SHUTDOWN debug=0
Listener className=org.apache.jk.config.ApacheConfig
   modJk=/usr/local/apache/modules/mod_jk.so
 /
...
Host name=machine2.example.com debug=0 appBase=webapps
unpackWARs=true autoDeploy=true
xmlValidation=false xmlNamespaceAware=false

Listener className=org.apache.jk.config.ApacheConfig
append=true forwardAll=false
modJk=/usr/local/apache/modules/mod_jk.so
/

Help greatly appreciated.

Tony

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



Re: Access denied with Apache + Tomcat config

2005-03-15 Thread Tony Stocker
All,

I believe that I found my problem, and for the sake of posterity I'm
posting it for the next poor fool who is forced to chase around the
web and through books looking for decent documentation.

When I set up Tomcat I copied the sample workers.properties file from
the JK source.  However it turns out that the sample file uses the
wrong worker name (compared to the name that is automatically
generated.)  In my case, the sample file was this:

worker.list=ajp13w

worker.ajp13w.type=ajp13
worker.ajp13w.host=localhost
worker.ajp13w.port=8009

However, as can be seen in my original post, the conf/auto/mod_jk.conf
file wants to use ajp13.

By changing the workers.properties file to 'ajp13' and NOT 'ajp13w'
everything started working.




On Tue, 15 Mar 2005 12:15:42 -0500, Tony Stocker [EMAIL PROTECTED] wrote:
 Hello All,
 
 I have searched the archives but have been unable to find a solution
 to my problem.

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



RE: Access Denied, now what?

2005-03-13 Thread Tony
Blanks in the insides of file or folder names will cause grief in any
language.
You can get by some of the problems by quoting the file name.
Many things in strange places will consider the file name as C:\archivos
followed by some unintelligible stuff.


-Original Message-
From: Ing. Jorge E. Abramian [mailto:[EMAIL PROTECTED]
Sent: Sunday, March 13, 2005 9:01 AM
To: tomcat-user@jakarta.apache.org
Subject: Access Denied, now what?


Hi everybody,

I was trying to install Tomcat 5.5.8 for a few days now with no results. I
am using win 98 SE. This is the result of the run when I execute the
start.pif generated when I changed the memory variable of the start.bat

CATALINA_BASE:   C:\archivos de programa\java\jakarta-tomcat-5.5.8
Using CATALINA_HOME:   C:\archivos de programa\java\jakarta-tomcat-5.5.8
Using CATALINA_TMPDIR: C:\archivos de
programa\java\jakarta-tomcat-5.5.8\temp
Using JAVA_HOME:   C:\archivos de programa\java\jdk1.5.0_01
Acceso denegado.

For who does not understand spanish the last line says denied access.
I got to this point after trying a lot of different things, 'cause at first,
I had a lot of problems with the installation exe file, and then setting the
environment variables.

Thanks in advance for any help.
Jorge




null pointer

2005-03-11 Thread Tony Lavalle
I am a student taking a jsp class.  the class project uses an access 
database.  my problem is that every time i run the program it keeps 
giving me and npe error.  i have check the html and the jsp.  but i can 
see no error.  can you folks give me some ideas as where to start to fix 
this.  i am running apache 2.0.52 with tomcat 5.5.7.  i have office 2003 
install.  the other students are runnig tomcat 4 i believe there are 
others that are using tomcat5 but not sure.

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


RE: Facing problems in tomcat configuration - on XP Professional

2005-02-22 Thread Tony
The virus known as Norton Anti.
(Sorry, couldn't resit;)

-Original Message-
From: raghavendra datt [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 22, 2005 12:04 AM
To: Tomcat Users List
Subject: RE: Facing problems in tomcat configuration - on XP
Professional


Sorry guys..
  I got the problem.. Actually firewall was disabled
but, norton antivirus was blocking the port.. now, its
working... Thanks for all your sugestions
I learnt a lot today
--- [EMAIL PROTECTED] wrote:

 By verified, do you mean
 that you found Windows firewall and it was disabled?
 or
 that you didn't find Windows firewall?
 
 Control panel, Security Center might give you
 another way in.
 
 Also, spaces WITHIN names can create almost as much
 havok as spaces AFTER
 names.
 
 -Original Message-
 From: raghavendra datt
 [mailto:[EMAIL PROTECTED]
 Sent: Monday, February 21, 2005 9:22 PM
 To: Tomcat Users List
 Subject: RE: Facing problems in tomcat configuration
 - on XP
 Professional
 
 
 I verified. No fire wall is enabled in my machine.
 also I tried changing port to something else (8789)
 and still am getting the page can not be diplayed
 error. I dont understand what is preventing from
 accessing port.
 i tried giving telnet localhost 8789 and its not
 connecting to it.. what else can be the reason for
 not
 hitting the port?
 How to know whether the server is running properly
 or
 not? because, when i start tomcat it looks fine and
 open in another window.. but, can not access it.
 
 --- [EMAIL PROTECTED] wrote:
 
  Start, Control Panel, Windows Firewall
  (That's assuming that you've got it set up to show
  you the viruses
  (file extensions, system files, system and
  hidden files, etc)
  and to not show stuff as web-enabled whatever.
  SP2 will almost certainly have set up and enabled
 a
  firewall.
  There may be something like Switch to classic
 view
  that shows everything
  not just a selected few.
  Good Luck!
 
 
  -Original Message-
  From: raghavendra datt
  [mailto:[EMAIL PROTECTED]
  Sent: Monday, February 21, 2005 1:44 PM
  To: Tomcat Users List
  Subject: RE: Facing problems in tomcat
 configuration
  - on XP
  Professional
 
 
  Yeah.. both machines are on service pack 2..
  and I dont see any firewall in XP Pro machine.
  Can you please tell me how to figure out whether
  firewall is running or not?
  Do you think changing port would solve the
 problem..
 
  Thanks for the instant reply,
  Raghavendra
  --- Peter Crowther [EMAIL PROTECTED]
  wrote:
 
From: raghavendra datt
   [mailto:[EMAIL PROTECTED]
  I am new to this mailing list. for the
  past
   one
week i was trying to run tomcat on my XP
   Professional
OS but in vein. I downloaded the latest JDK
 and
downloaded tomcat 4.1 version and has set the
CATALINA_HOME and JAVA_HOME respectively. when
 I
   start
the server its getting started properly but,
  when
   i
try to access 8080 port I am getting page can
  not
   be
displayed. I did the same installation on XP
  Home
   and
its working fine. Is there some problem ? Has
  any
   one
has configured tomcat on XP Professional.. If
  so,
kindly reply back to this stating the
 solution.
   That
will be very helpful.
  
   Are both machines on XP Service Pack 2?  Does
 the
   Pro machine have the
   XP firewall enabled, but the home one not?  The
 XP
   firewall could easily
   prevent access on port 8080 and not tell you.
  
 - Peter
  
  
 

-
   To unsubscribe, e-mail:
   [EMAIL PROTECTED]
   For additional commands, e-mail:
   [EMAIL PROTECTED]
  
  
 
 
 
 
  __
  Do you Yahoo!?
  Meet the all-new My Yahoo! - Try it today!
  http://my.yahoo.com
 
 
 
 

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

-
  To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
 
 
 
 
 
 
 __
 Do you Yahoo!?
 Meet the all-new My Yahoo! - Try it today!
 http://my.yahoo.com
 
 
 

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

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




__ 
Do you Yahoo!? 
The all-new My Yahoo! - What will yours do?
http://my.yahoo.com 

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


RE: Facing problems in tomcat configuration - on XP Professional

2005-02-21 Thread Tony
There is a Windows Firewall (Control Panel, Windows Firewall)
which is probably preventing hackers from attacking strange ports like 8080.

-Original Message-
From: raghavendra datt [mailto:[EMAIL PROTECTED]
Sent: Monday, February 21, 2005 1:30 PM
To: Tomcat Users List; Oleg
Subject: Facing problems in tomcat configuration - on XP Professional


Hi all,
  I am new to this mailing list. for the past one
week i was trying to run tomcat on my XP Professional
OS but in vein. I downloaded the latest JDK and
downloaded tomcat 4.1 version and has set the
CATALINA_HOME and JAVA_HOME respectively. when I start
the server its getting started properly but, when i
try to access 8080 port I am getting page can not be
displayed. I did the same installation on XP Home and
its working fine. Is there some problem ? Has any one
has configured tomcat on XP Professional.. If so,
kindly reply back to this stating the solution. That
will be very helpful.

Thanks in advance,
Raghavendra Datt



__
Do you Yahoo!?
The all-new My Yahoo! - Get yours free!
http://my.yahoo.com



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


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



RE: Facing problems in tomcat configuration - on XP Professional

2005-02-21 Thread Tony
Start, Control Panel, Windows Firewall
(That's assuming that you've got it set up to show you the viruses 
(file extensions, system files, system and hidden files, etc)
and to not show stuff as web-enabled whatever.
SP2 will almost certainly have set up and enabled a firewall.
There may be something like Switch to classic view that shows everything
not just a selected few.
Good Luck!


-Original Message-
From: raghavendra datt [mailto:[EMAIL PROTECTED]
Sent: Monday, February 21, 2005 1:44 PM
To: Tomcat Users List
Subject: RE: Facing problems in tomcat configuration - on XP
Professional


Yeah.. both machines are on service pack 2..
and I dont see any firewall in XP Pro machine.
Can you please tell me how to figure out whether
firewall is running or not?
Do you think changing port would solve the problem..

Thanks for the instant reply,
Raghavendra
--- Peter Crowther [EMAIL PROTECTED]
wrote:

  From: raghavendra datt
 [mailto:[EMAIL PROTECTED] 
I am new to this mailing list. for the past
 one
  week i was trying to run tomcat on my XP
 Professional
  OS but in vein. I downloaded the latest JDK and
  downloaded tomcat 4.1 version and has set the
  CATALINA_HOME and JAVA_HOME respectively. when I
 start
  the server its getting started properly but, when
 i
  try to access 8080 port I am getting page can not
 be
  displayed. I did the same installation on XP Home
 and
  its working fine. Is there some problem ? Has any
 one
  has configured tomcat on XP Professional.. If so,
  kindly reply back to this stating the solution.
 That
  will be very helpful.
 
 Are both machines on XP Service Pack 2?  Does the
 Pro machine have the
 XP firewall enabled, but the home one not?  The XP
 firewall could easily
 prevent access on port 8080 and not tell you.
 
   - Peter
 

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




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


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

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



?? Yet Another Tomcat Documentation Bug ??

2005-02-21 Thread Tony LaPaso
If you go here:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/host.html#Automatic%20Application%20Deployment
The first bullet point starts out: Any XML file in the 
$CATALINA_HOME/conf/[engine_name]/[host_name] directory is assumed...

I believe this should say, Any XML file in the 
$CATALINA_BASE/conf/[engine_name]/[host_name] directory is assumed...

Is that right? It's another typo, right? 


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


?? Does META-INF/context.xml Work ??

2005-02-21 Thread Tony LaPaso
All,
I'm using TC 5.0.30.
I'm looking at this quote regarding META-INF/context.xml from the TC docs
(http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/context.html):
Instead, put them in the META-INF/context.xml directory of your WAR file or
the conf directory as described above.
These instruction, by my interpretation, are saying we can arrange a web
application's directory structure like this:
ROOT/
  |
  |
  + WEB-INF/
  + META-INF/
   |
   |
   + context.xml
Context.xml would then contain the Context element.
Has anyone gotten this to work? When I arrange my directory structure as
shown above it seems the Context.xml file is simply ignored.
I'm not using a WAR file, this is just the directory structure.
I hope someone can try this -- arrange your directory structure as shown
above and make sure your context.xml is being processed. Mine is not. If I
put the context.xml in $CATALINA_BASE/conf/[enginename]/[hostname]/,
however, it is picked up just fine.


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


RE: Facing problems in tomcat configuration - on XP Professional

2005-02-21 Thread Tony
By verified, do you mean
that you found Windows firewall and it was disabled?
or
that you didn't find Windows firewall?

Control panel, Security Center might give you another way in.

Also, spaces WITHIN names can create almost as much havok as spaces AFTER
names.

-Original Message-
From: raghavendra datt [mailto:[EMAIL PROTECTED]
Sent: Monday, February 21, 2005 9:22 PM
To: Tomcat Users List
Subject: RE: Facing problems in tomcat configuration - on XP
Professional


I verified. No fire wall is enabled in my machine.
also I tried changing port to something else (8789)
and still am getting the page can not be diplayed
error. I dont understand what is preventing from
accessing port.
i tried giving telnet localhost 8789 and its not
connecting to it.. what else can be the reason for not
hitting the port?
How to know whether the server is running properly or
not? because, when i start tomcat it looks fine and
open in another window.. but, can not access it.

--- [EMAIL PROTECTED] wrote:

 Start, Control Panel, Windows Firewall
 (That's assuming that you've got it set up to show
 you the viruses
   (file extensions, system files, system and
 hidden files, etc)
 and to not show stuff as web-enabled whatever.
 SP2 will almost certainly have set up and enabled a
 firewall.
 There may be something like Switch to classic view
 that shows everything
   not just a selected few.
 Good Luck!


 -Original Message-
 From: raghavendra datt
 [mailto:[EMAIL PROTECTED]
 Sent: Monday, February 21, 2005 1:44 PM
 To: Tomcat Users List
 Subject: RE: Facing problems in tomcat configuration
 - on XP
 Professional


 Yeah.. both machines are on service pack 2..
 and I dont see any firewall in XP Pro machine.
 Can you please tell me how to figure out whether
 firewall is running or not?
 Do you think changing port would solve the problem..

 Thanks for the instant reply,
 Raghavendra
 --- Peter Crowther [EMAIL PROTECTED]
 wrote:

   From: raghavendra datt
  [mailto:[EMAIL PROTECTED]
 I am new to this mailing list. for the
 past
  one
   week i was trying to run tomcat on my XP
  Professional
   OS but in vein. I downloaded the latest JDK and
   downloaded tomcat 4.1 version and has set the
   CATALINA_HOME and JAVA_HOME respectively. when I
  start
   the server its getting started properly but,
 when
  i
   try to access 8080 port I am getting page can
 not
  be
   displayed. I did the same installation on XP
 Home
  and
   its working fine. Is there some problem ? Has
 any
  one
   has configured tomcat on XP Professional.. If
 so,
   kindly reply back to this stating the solution.
  That
   will be very helpful.
 
  Are both machines on XP Service Pack 2?  Does the
  Pro machine have the
  XP firewall enabled, but the home one not?  The XP
  firewall could easily
  prevent access on port 8080 and not tell you.
 
  - Peter
 
 

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




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




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


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






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



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


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



Re: ?? Yet Another Tomcat Documentation Bug ??

2005-02-21 Thread Tony LaPaso
Yea, I know, I saw that note. It's in the Host element description but 
references to $CATALINA_HOME (which should be $CATALINA_BASE) are all over 
the place -- not just under Host documentation.

What's more, a reader could easily think that the note you mentioned *only* 
referred to the Host element description since it says, The description 
below

IMHO, instead of asking the reader to do a mental substitution I think the 
documentation should be updated s.t. it uses $CATALINA_BASE when 
$CATALINA_BASE is appropriate. This documentation anomaly has bothered me 
for a long time and I felt I needed to mention it.


- Original Message - 
From: Caldarale, Charles R [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Monday, February 21, 2005 10:20 PM
Subject: RE: ?? Yet Another Tomcat Documentation Bug ??


From: Tony LaPaso [mailto:[EMAIL PROTECTED]
Subject: ?? Yet Another Tomcat Documentation Bug ??
The first bullet point starts out: Any XML file in the
$CATALINA_HOME/conf/[engine_name]/[host_name] directory is assumed...
I believe this should say, Any XML file in the
$CATALINA_BASE/conf/[engine_name]/[host_name] directory is assumed...
Is that right? It's another typo, right?
There's a fairly prominent note at the introduction to the host element:
The description below uses the variable name $CATALINA_HOME to refer to the 
directory into which you have installed Tomcat 5, and is the base directory 
against which most relative paths are resolved. However, if you have 
configured Tomcat 5 for multiple instances by setting a CATALINA_BASE 
directory, you should use $CATALINA_BASE instead of $CATALINA_HOME for each 
of these references.

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

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

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


crossContext=true ignored after restart

2005-02-18 Thread Tony Tomcat
After my war file is reloaded I can no longer access other webapp context's.

Simple test.jsp follows.  It prints everything is fine 1st time war
file is deployed.  If I rebuild the war file and it is auto reloaded I
get cross context failed.

test,jsp   (does not live in /)
%

ServletContext testContext = getServletContext();

if (testContext == null) {
  out.println(basic context get failed);
} else {
  ServletContext crossContext = testContext.getContext(/);
  if (crossContext == null)
out.println(cross context failed);
  else {
out.println(everything is fine);
  }
}
%

Any ideas here?  
Tony

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



Server.xml parameters unavailable after reload

2005-02-17 Thread Tony Tomcat
I am unable to read init parameters in my server.xml file when my
webapp is reloaded.   This issue was documented in the following bug

http://issues.apache.org/bugzilla/show_bug.cgi?id=19852

It said the bug was fixed but I am using Tomcat 5.0.28 and I have this issue.

Was this bug re-introduced in tomcat 5 or are there new rules about
reading these parameters more than once?

Tony

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



separate log4j configurations

2005-02-01 Thread Tony Tomcat
Is it safe to have 1 log4j.properties setup for all of tomcat and then
override it for a webapp that might need slightly different logging?

For example..

I place log4j.jar and the Jakarta commons-logging.jar into the
$TOMCAT_HOME/common/lib directory and have a log4j properties file in
$TOMCAT_HOME/common/classes/log4j.properties

This properties file writes to ${catalina.home}/logs/all.out

Then I have a test webapp that I want in its own log4j output file so
I install a new log4j.properties file in that webapp.

$TOMCAT_HOME/webapps/test/WEB-INF/classes/log4j.properties

This properties file puts the output in ${catalina.home}/logs/test.out

This appears to work but I'm just wondering if this is the correct way
to go about it.

The reason I want my main logging configuration in common/classes is
because I want my operations team to control the logging instead of
the war file.   In the case of my test application I always want it to
log at the debug level and it is only installed in production briefly
so having the log4j.properties in the war file is fine and allows me
to keep it logging at debug even if the other apps are at WARN.

Any issues here?
Tony

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



RE: Tomcat connector for AIX 5.2

2005-01-31 Thread Fan, Tony
Hi,
 
Here is what I did recently to make jk works with Apache 2.0.52 and  Jboss 
3.2.5 in AIX 5.2+SP4.
1. download jk source from 
http://archive.apache.org/dist/jakarta/tomcat-connectors/jk/v1.2.3/src/
2. following the instruction in 
http://www.apache.org/~trawick/tomcataix.html#mod_jk_gcc
3. you may get compile error during Apache compiling with pthread,  instead of 
using pthread.h from /usr/lib try to copy the one from you gcc3.2.2 source.  

--Tony
 

-Original Message-
From: Hausmann, Tobias [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 28, 2005 5:40 PM
To: tomcat-user@jakarta.apache.org
Subject: Tomcat connector for AIX 5.2

Hi,

Would anybody please tell me where I can download a Tomcat connector (mod_jk2 
or mod_jk) for AIX 5.2?  I have tried to compile a connector myself, but I got 
constant compiler errors.  I want to use it with Apache (2.0.52) and Tomcat 
4.1.31.

Unfortunately, there are no available binaries for AIX on the Jakarta website.

http://apache.cs.utah.edu/jakarta/tomcat-connectors/jk2/binaries/
http://apache.cs.utah.edu/jakarta/tomcat-connectors/jk/binaries/aix/


Any help is greatly appreciated.

Thanks,

Tobias


This electronic transmission may contain information that is privileged, 
confidential and exempt from disclosure under
applicable law. If you are not the intended recipient, please notify me 
immediately as use of this information is strictly prohibited.

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



FOLLOW-UP: Sharing the JSTL JARs and Classloading

2005-01-31 Thread Tony LaPaso
Hi all,
On Jan. 22 I posted a message to this group, ?? Sharing the JSTL JARS and 
Classloading ??, where I described a problem I was having with the JSTL 
JARs. It seemed that when I put the JSTL JARs (standard.jar and jstl.jar) in 
Tomcat's shared/lib TC could not find them, contrary to the TC 
documentation.

I know what the problem was. It turns out it was my fault. I was using a 
value of CATALINA_BASE that was not the same as CATALINA_HOME. Tomcat's 
documentation says that Shared/lib is relative to CATALINA_BASE. So, I'm 
sorry to all you who read my post and tried to help me solve the problem. It 
was all my fault after all for not having read the Tomcat documentation well 
enough. I am sorry to those of you whose time I wasted.

I'll be more careful in the future.
Thanks. 


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


Re: Oracle JDBC

2005-01-28 Thread Tony LaPaso
When you say, when I moved it to a context..., what exactly did you move? 
Did you move the JDBC JAR or just the web app? Did you delete the web-app 
from jsp-examples? This all goes back to the poor Tomcat documentation on 
classloading.

This is interesting. Do you think you could show me the directory/JAR 
layouts before (when it worked) and after (when it didn't)?

- Original Message - 
From: Nathan Aaron [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Thursday, January 27, 2005 10:31 AM
Subject: Oracle JDBC


I have the Oracle jdbc driver installed in Tomcat's shared/lib directory. 
I have a JSP file that resides in the webapps/jsp-examples that connects to 
an Oracle database successfully.  When I move it to a context 
(/opt/application/appname) outside one of the contexts that are included 
with Tomcat 5.0.28 the jsp stops connecting to the database.  I get 
java.sql.SQLException: No suitable driver like it can't load the JDBC 
driver.  What is odd is that I have a servlet that connects to the database 
fine and it is in the /opt/application/appname/WEB-INF/lib directory.  Any 
help would be greatly appreciated.

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


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


Tomcat and Sesssion question

2005-01-25 Thread Tony Chan
Hi,
Does anyone know if there is any setting in tomcat 5 that I can use to 
always attach JSESSIONID to all links in a webapp? Also, is there any way to 
change the name (from JSESSIONID to sth else)?

Thanks a lot!
Tony

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


RE: Tomcat and Sesssion question

2005-01-25 Thread Tony Chan
Thanks for your reply.

The situation is that we have an application already written. However, for
technical reasons, we need session ID to be attached to all links within the
application. Instead of going to every file and making modifications, I am
looking into the possibility of doing that by changing Tomcat
configurations. You have provided an excellent solution but the application
will still have to be modified on so that all URLs are encoded. Am I
correct?

Thanks again!

Tony

-Original Message-
From: Jukka Uusisalo [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 25, 2005 12:23 PM
To: Tomcat Users List
Subject: Re: Tomcat and Sesssion question

Tony Chan wrote:
 Hi,
 
 Does anyone know if there is any setting in tomcat 5 that I can use to 
 always attach JSESSIONID to all links in a webapp? Also, is there any 
 way to change the name (from JSESSIONID to sth else)?
 

If you set context element cookies attribute in server.xml to false
,so using cookies for session identify is disabled and url-rewriting
will be used allways. Is this what want to do by attaching jsessionid to 
all your links?

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

Name 'jsessionid' is spesified by servlet specs.

- Jukka -

-
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: ?? Sharing the JSTL JARS and Classloading ??

2005-01-23 Thread Tony LaPaso
Mark,
When you cleaned out the caches (by deleting the work directory) were you 
able to move the standard.jar and  jstl.jar to shared/lib and then be able 
to use JSTL?

I did that -- I deleted the 'work' directory and then moved the JARs from 
common/lib to shared/lib and re-started TC. Now I have the exception below. 
Is the JSP compiler not looking using shared/lib classloader, I wonder?

org.apache.jasper.JasperException: The absolute uri: 
http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or 
the jar files deployed with this application
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:50) org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:411) org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:118) org.apache.jasper.compiler.TagLibraryInfoImpl.generateTLDLocation(TagLibraryInfoImpl.java:316) org.apache.jasper.compiler.TagLibraryInfoImpl.init(TagLibraryInfoImpl.java:147) org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:418) org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483) org.apache.jasper.compiler.Parser.parseElements(Parser.java:1539) org.apache.jasper.compiler.Parser.parse(Parser.java:126) org.apache.jasper.compiler.ParserController.doParse(ParserController.java:220) org.apache.jasper.compiler.ParserController.parse(ParserController.java:101) org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:203) org.apache.jasper.compiler.Compiler.compile(Compiler.java:495) org.apache.jasper.comp!
iler.Compiler.compile(Compiler.java:476) org.apache.jasper.compiler.Compiler.compile(Compiler.java:464) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:802)- Original Message -From: Mark Thomas [EMAIL PROTECTED]To: Tomcat Users List tomcat-user@jakarta.apache.orgSent: Sunday, January 23, 2005 9:21 AMSubject: Re: ?? Sharing the JSTL JARS and Classloading ?? Tony LaPaso wrote: Incidentally, in reading the Tomcat docs for Classloading, it seemsthat any classes in a web app's lib directory *should* be able to seeclasses in the shared/lib directory. Similarly, any classes inshared/lib *should* be able to see what's in common/lib. This works as you !
expect. I just tested it with a clean TC5 build fromCVS. That being sa
id I noticed the following whilst I was testing which mayhelp: - I needed to clean out the work directory for my app between each test. - I needed to restart Tomcat for each test. If I didn't do both of the above then various caches (already loadedclasses, JSPs that have already been compiled, etc) all contributed to weirdresults. angry-rant The crappy, incomplete Tomcat documentation strikes again. One of the badthings about these open source projects is that since no one owns them noone has responsibility to work on anything except what they're interestedin. The result is often neglected, shoddy and incomplete documentation. /angry-rant You are as much of the Tomcat community as anyone else. If you knowsomewhere where the docs are wrong (which you must do to be able to callthem crappy and incomplete - and by implication neglected and shoddy) whynot redirect your energy from futile ranting into creating patches toimprove the documentation and contribute t!
o the community. So, again, it seems weird that putting the JSTL JARs in common/libworks fine while putting them in shared/lib doesn't. When I put them inshared/lib I get the exception shown below. From the exception below itseems to me that the classes in common/lib (e.g.,javax.servlet.http.HttpServlet) do not have access to classes inshared/lib (e.g., org.apache.taglibs.standard.tag.rt.core.ForEachTag)although the classes in common/lib *DO* obviously have access to classesin a web app's lib directory. If only the classloader docs were better In terms of the hierarchy, the docs are right. Perhaps what needs to beadded is the circumstances where restarts (app or tomcat) are required forchanges to take effect. For the record, my own view is that the increased effort required tomanage shared jars is rarely worth the disk space and memory it saves. Mark - To unsubscribe, e-mai!
l: [EMAIL PROTECTED] For additional commands
, e-mail: [EMAIL PROTECTED]

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


Re: ?? Sharing the JSTL JARS and Classloading ??

2005-01-23 Thread Tony LaPaso
- Original Message - 
From: Nikola Milutinovic [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Sunday, January 23, 2005 12:32 PM
Subject: Re: ?? Sharing the JSTL JARS and Classloading ??


One other note - Tomcat gives you a framework contract, a contract defined 
by JSP/Servlet specification. There is no mention of JSTL in it. Thus, it 
is unwise to make it shared, since it involves making the JSTL more 
internal than external, from Tomcat's point of view.

Nic,
You are right: Tomcat provides a contract via it's implementation of the 
Servlet/JSP spec and the JSTL has absolutely nothing to do with it. Tomcat 
*also*, however, provides an alleged facilty (shared/lib) for the sharing 
of JAR file across web applications. This capability is independent of the 
Servlet/JSP specs but it is supposed to work with Tomcat.

There's a more important issue at work here than whether or not I have to 
put the JARs in common/lib or shared/lib: When writing code it's 
considered a bad practice (and I think, rightfully so) to copy and paste 
the same code to various locations. Instead, we factor out common behavior 
into separate classes or methods. There's an analogous idea involved here --  
instead of copying and pasting the same JARs across many web applications 
it makes more sense (to me, anyway), to factor out these JARs and make them 
centrally available. Having said that, I also realize the code within the 
JARs must be written such that the classes can be shared.

Think of .so files or .DLL files. With .DLL files, for example, Windows will 
share the library's contents across several processes rather than load the 
same DLL each time for every process. I think this is a good strategy, 
again, assuming the classes in the JAR were written so as to be shared. It's 
not a matter of disk or memory space, per se, it's more a matter of 
administrative convenience.


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


Re: ?? Sharing the JSTL JARS and Classloading ??

2005-01-22 Thread Tony LaPaso
Call me a minimalist but I don't like the idea of having the same JAR file 
duplicated if I don't have to. It takes more memory since each web app's 
classloader needs to have the same classes in memory. It seems much cleaner 
to have the JARs in one central location.


- Original Message - 
From: QM [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Saturday, January 22, 2005 8:57 AM
Subject: Re: ?? Sharing the JSTL JARS and Classloading ??


On Sat, Jan 22, 2005 at 01:24:54AM -0600, Tony LaPaso wrote:
: The problem is that I have several web applications that use JSTL and
: therefore several WEB-INF/lib directories. Rather than copy the
: aforementioned JAR files to *every* WEB-INF/lib directory I'd rather 
put
: them in one central location and have them available for *ALL* web
: applications.

Webapps are supposed to be self-contained, and as such, it's considered
a best practice to pack up a webapp with all the JARs it needs.
If it's a hassle to copy the JARs around by hand, why not fold that into
an automated build process?
-QM
--
software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


Re: ?? Sharing the JSTL JARS and Classloading ??

2005-01-22 Thread Tony LaPaso
You have some good points, Jake. Thank you for the response. If you happen 
to run across the statement from Craig M. regarding Struts I'd like to see 
it.

Incidentally, in reading the Tomcat docs for Classloading, it seems that 
any classes in a web app's lib directory *should* be able to see classes 
in the shared/lib directory. Similarly, any classes in shared/lib 
*should* be able to see what's in common/lib.

angry-rant
The crappy, incomplete Tomcat documentation strikes again. One of the bad 
things about these open source projects is that since no one owns them no 
one has responsibility to work on anything except what they're interested 
in. The result is often neglected, shoddy and incomplete documentation.
/angry-rant

So, again, it seems weird that putting the JSTL JARs in common/lib works 
fine while putting them in shared/lib doesn't. When I put them in 
shared/lib I get the exception shown below. From the exception below it 
seems to me that the classes in common/lib (e.g., 
javax.servlet.http.HttpServlet) do not have access to classes in 
shared/lib (e.g., org.apache.taglibs.standard.tag.rt.core.ForEachTag) 
although the classes in common/lib *DO* obviously have access to classes 
in a web app's lib directory.

If only the classloader docs were better
exception
 javax.servlet.ServletException: 
org.apache.taglibs.standard.tag.rt.core.ForEachTag
   org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:846)
   org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779)
   org.apache.jsp.index_jsp._jspService(Unknown Source)
   org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

root cause
 java.lang.NoClassDefFoundError: 
org.apache.taglibs.standard.tag.rt.core.ForEachTag
   org.apache.jsp.index_jsp.class$(Unknown Source)
   org.apache.jsp.index_jsp._jspx_meth_c_forEach_0(Unknown Source)
   org.apache.jsp.index_jsp._jspService(Unknown Source)
   org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


- Original Message - 
From: Jacob Kjome [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Saturday, January 22, 2005 10:30 AM
Subject: Re: ?? Sharing the JSTL JARS and Classloading ??


Not all libraries are written in a way that allows for them to be used 
from different webapps.  Struts has a statement on this written by Craig 
McClanahan, but I can't find it at the moment.  The gist of it is that 
Struts (at least with 1.1) cannot be guaranteed to work properly if placed 
in a shared classloader.  One example of where this might be problematic 
is with non-final static variables.  If it they get changed by one app, 
the other app sees the change.  Usually, this is not the desired behavior 
as it will make each app using the shared library behave in unpredictable 
ways.

Anyhow, what error are you getting when you add the library to the shared 
classloader?  I haven't looked at the classloader hierarchy in Tomcat for 
a little while, but it is possible that shared/lib cannot see common/lib, 
and if there are libraries that standard.jar and jstl.jar depend on 
libraries that exist in common/lib, then you might get the error you are 
seeing.

Jake
At 01:24 AM 1/22/2005 -0600, you wrote:
Hi all,

I'm using TC 5.0.30.

JSTL Is working fine -- I have the standard.jar and jstl.jar files in my
WEB-INF/lib directory.

The problem is that I have several web applications that use JSTL and
therefore several WEB-INF/lib directories. Rather than copy the
aforementioned JAR files to *every* WEB-INF/lib directory I'd rather 
put
them in one central location and have them available for *ALL* web
applications.

According to the crappy Tomcat documentation that's never updated, I 
should
be able to put the JARs in $CATALINA_HOME/shared/lib.  Unfortunately, 
that
doesn't seem to work with these two JARs for some reason. Instead, I have 
to
put them in $CATALINA_HOME/common/lib (which seems to work, for some
reason).

Why can't I just put these two JARs in $CATALINA_HOME/shared/lib and 
have
them shared across all web applications, as the Tomcat documentation on
Classloading indicates I should be able to? It seems very odd that I 
can
either copy the JARs to every WEB-INF/lib directory *OR* 

?? Sharing the JSTL JARS and Classloading ??

2005-01-21 Thread Tony LaPaso
Hi all,
I'm using TC 5.0.30.
JSTL Is working fine -- I have the standard.jar and jstl.jar files in my 
WEB-INF/lib directory.

The problem is that I have several web applications that use JSTL and 
therefore several WEB-INF/lib directories. Rather than copy the 
aforementioned JAR files to *every* WEB-INF/lib directory I'd rather put 
them in one central location and have them available for *ALL* web 
applications.

According to the crappy Tomcat documentation that's never updated, I should 
be able to put the JARs in $CATALINA_HOME/shared/lib.  Unfortunately, that 
doesn't seem to work with these two JARs for some reason. Instead, I have to 
put them in $CATALINA_HOME/common/lib (which seems to work, for some 
reason).

Why can't I just put these two JARs in $CATALINA_HOME/shared/lib and have 
them shared across all web applications, as the Tomcat documentation on 
Classloading indicates I should be able to? It seems very odd that I can 
either copy the JARs to every WEB-INF/lib directory *OR* put them in 
$CATALINA_HOME/common/lib, but not put them $CATALINA_HOME/shared/lib.

Thanks 


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


core dump when start Apache 2.0.52 with jk2 module in AIX 5.2 HELP!

2005-01-19 Thread Fan, Tony
;;'

internal error: 1283-228 expected char ';', found
'p_conf_vector_t:,64,32;next:6

48=*649=k645,96,32;;'

internal error: unexpected value 44 at line 4992 in file stabstring.c

internal error: 1283-228 expected char ',', found
'64,32;next:648=*649=k645,96,3

2;;'

internal error: unexpected value 120 at line 4992 in file stabstring.c

internal error: unexpected value 120 at line 4992 in file stabstring.c

internal error: unexpected value 120 at line 4992 in file stabstring.c

internal error: unexpected value 120 at line 4992 in file stabstring.c

internal error: unexpected value 120 at line 4992 in file stabstring.c

internal error: unexpected value 120 at line 4992 in file stabstring.c

internal error: 1283-228 expected char ',', found
'shostent:,288,32;port:571,320

,16;is_initialized:-8,336,1;dns_looked_up:-8,337,1;dns_resolved:-8,338,1
;;'

internal error: 1283-228 expected char ',', found
'hostent:,288,32;port:571,320,

16;is_initialized:-8,336,1;dns_looked_up:-8,337,1;dns_resolved:-8,338,1;
;'

internal error: 1283-228 expected char ';', found
'ostent:,288,32;port:571,320,1

6;is_initialized:-8,336,1;dns_looked_up:-8,337,1;dns_resolved:-8,338,1;;
'

internal error: unexpected value 44 at line 4992 in file stabstring.c

internal error: 1283-228 expected char ',', found
'288,32;port:571,320,16;is_ini

tialized:-8,336,1;dns_looked_up:-8,337,1;dns_resolved:-8,338,1;;'

internal error: unexpected value 120 at line 4992 in file stabstring.c

internal error: 1283-228 expected char ',', found
'sap_filter_t:,2976,32;input_f

ilters:669,3008,32;proto_output_filters:669,3040,32;proto_input_filters:
669,3072

,32;eos_sent:-1,3104,32;;'

internal error: 1283-228 expected char ',', found
'ap_filter_t:,2976,32;input_fi

lters:669,3008,32;proto_output_filters:669,3040,32;proto_input_filters:6
69,3072,

32;eos_sent:-1,3104,32;;'

internal error: 1283-228 expected char ';', found
'p_filter_t:,2976,32;input_fil

ters:669,3008,32;proto_output_filters:669,3040,32;proto_input_filters:66
9,3072,3

2;eos_sent:-1,3104,32;;'

internal error: unexpected value 44 at line 4992 in file stabstring.c

internal error: 1283-228 expected char ',', found
'2976,32;input_filters:669,300

8,32;proto_output_filters:669,3040,32;proto_input_filters:669,3072,32;eo
s_sent:-

1,3104,32;;'

internal error: unexpected value 120 at line 4992 in file stabstring.c

internal error: unexpected value 120 at line 4992 in file stabstring.c

internal error: unexpected value 120 at line 4992 in file stabstring.c

internal error: unexpected value 120 at line 4992 in file stabstring.c

internal error: unexpected value 120 at line 4992 in file stabstring.c

internal error: unexpected value 120 at line 4992 in file stabstring.c

internal error: unexpected value 120 at line 4992 in file stabstring.c

internal error: unexpected value 120 at line 4992 in file stabstring.c

internal error: unexpected value 120 at line 4992 in file stabstring.c

internal error: unexpected value 120 at line 4992 in file stabstring.c

internal error: unexpected value 120 at line 4992 in file stabstring.c

internal error: unexpected value 120 at line 4992 in file stabstring.c

internal error: unexpected value 120 at line 4992 in file stabstring.c

internal error: unexpected value 120 at line 4992 in file stabstring.c

internal error: unexpected value 120 at line 4992 in file stabstring.c

internal error: unexpected value 120 at line 4992 in file stabstring.c

internal error: unexpected value 120 at line 4992 in file stabstring.c

internal error: unexpected value 120 at line 4992 in file stabstring.c

internal error: unexpected value 120 at line 4992 in file stabstring.c

internal error: unexpected value 120 at line 4992 in file stabstring.c

internal error: unexpected value 120 at line 4992 in file stabstring.c

internal error: unexpected value 120 at line 4992 in file stabstring.c

internal error: unexpected value 120 at line 4992 in file stabstring.c

 

 

Segmentation fault in glink.apr_pool_userdata_set at 0xd1c91544 ($t1)

0xd1c91544 (apr_pool_userdata_set+0xd0) 800clwz
r0,0x0(r12)

 

I have no clue what those error means,  Can anyone help me out here?

 

--Tony

 

 



RE: Tomcat 5.0.28, problems with using the jsp servlet to display images

2004-12-20 Thread Tony Chan


Hi everyone,

I wonder if anyone have similar experiences with the following problem
before.

This is what I want to do:
http://domainName/{anything but underscore} - dealt with by the Gateway
servlet
http://domainName/_folderName/*.abc - dealt with by the JSP servlet

The current solution in web.xml:
.
servlet-mappingurl-pattern/_folderName/*/url-patternservlet-namejsp
/servlet-name/servlet-mapping
servlet-mappingurl-pattern/*/url-patternservlet-nameGateway/servlet
-name/servlet-mapping
.

This solution works well with most files. However, the jsp servlet also
tries to parse and convert images and other files to JAVA files if they are
located in the /_folderName/ folder. Unfortunately, this type of
conversion breaks some images and executable files.

I also tried to use the default servlet to deal with images to no avail
servlet-mappingurl-pattern/_folderName/images/*/url-patternservlet-na
mejsp/servlet-name/servlet-mapping. Using a customized dispatcher to
redirect (forward/include) traffic also doesn't work as requests get into an
infinite loop.

Any suggestion would be much appreciated.

Thanks,
Tony Chan





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



AGAIN jk2 2.0.4 compile

2004-06-30 Thread Tony F. White
Hi,

I recently setup a machine with Apache 2.0.49 and Tomcat 5, using mod_jk to connect 
them.  For the first time everything when smooth as couldnt believe it.

Then today I went to update apache to 2.0.50 which compiled fine but procedure 
dictates that mod_jk also gets recompiled. that is when I hit the dreaded error:

error: Apache 1.3 requires apr to built from source, use --with-apr and --with-apr-util

I have had this problem before but thought had it licked on the new machine, so was 
extremely unhappy it had reared its ugly head again This time I was determined to 
get to the bottom of it and so I stuck my nose into the configure script and went 
looking for what causes this to be printed out
I found this line in the configure script:
if ! ${TEST} -z $APACHE_HOME ; then

And I knew then I had found the problem we have this variable set in the 
environment to aid in setting paths etc.
So I did an unset APACHE_HOME, tried the configure command again and it WORKED
So finally I have managed to work out why it would not compile for me.  Perhaps this 
is the same reason it happens for others (perhaps a note of this should be made in the 
documentation...)?

Best of luck
Tony




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



JVM Implementation for Running Tomcat in MontaVista Linux (PowerPC)?

2004-06-08 Thread Tony Yat-Tung Cheung
Hi all,
We are looking for ways to run Tomcat in MontaVista Linux in the Power 
PC platform.

Is there any existing JVM implementation, either commerical or 
open-source? If not, is there any on-going effort in porting such a JVM?

Thank you. Any information is much appreciated.
Regards,
Tony Cheung
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


HELP! [javac] Modern compiler not found

2004-04-01 Thread Tony Nakamura
Hi, 
(B
(BI suddenly began receiving this error when I access some of the jsp pages:
(B
(B[javac] Modern compiler not found - looking for classic compiler
(B
(Bafter looking around, I found a few possible work-around, which are
(B1) make sure to add Java_Home environmental variable and set the path to 
(B[java_home]\bin directory.
(B2) tools.jar must also be in [tomcat_home]\common\lib
(B
(BI tried both, but neither fixed the problem.  I am hit java and javac from my Command 
(BPrompt,
(Bso I'm sure the path is correct.  \example jsp pages run fine, but some custom jsp 
(Bpages give
(Bthis error.  Could someone possible give me an insight on how I might be
(Bable to fix this?  Thank you, and following is my environment:
(B
(BOS: Win2K3
(BJava Version:java 1.3.1_02 runtime environment
(BTomcat Version:   4.1.18
(B
(B
(B
(BTony

Unsubscribe...

2004-03-27 Thread Tony
Does anybody know how can I unsubscribe this list, please ?

Thank u !!
:))

RE: Session sharing/load balancing multiple tomcat instances W/O Apache Web Server

2004-03-26 Thread Tony Requist

 That doesn't exactly accomplish what I'm looking to do.  Like I said, I
 need session replication amongst the tomcat instances...I guess theres
 always the idea of managing session data in some other medium (DB).

Coincidentally, I just got that working -- but it required a full day of
writing code to get around bugs in PersistentValve (I'm going to describe
this soon).  So unless you want to hack Tomcat, I would suggest avoiding
session replication via DB right now (with coding changes it does seem to
work great).

- tony



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



RE: Using PersistentValve for session replication

2004-03-26 Thread Tony Requist

 I want to store session information in a database to be shared
 between a set
 of servers in a load balancing without session affinity configuration.

Lacking input from others, I will answer part of my own question to possibly
help somebody else.

The result is that with a day of work it is possible to use PersistentValve
and PersistentManager to produce load balancing without session
affinity -- but you have to overcome some Tomcat issues in the code along
the way.  My assumption is while the code is there, it has not been use
seriously and therefore is not shaken down.

I found and fixed (or worked around) a couple of Tomcat bugs along the way.
If a Tomcat developer is interested in these, I would be glad to give more
details:

* JDBCStore read and writes the database multiple times in load() and
save().  Adding break; in a couple strategic places fixes this

* As far as I can tell, the checkInterval attribute within
PersistentManager does not work at all

* PersistentValve loads the session for all requests, even static content
(things like *.css, *.js, *.gif).  While this is not wrong, it does not work
well.  I hacked around it, but there could be a clean solution

* Session data is always written out, even when it doesn't change.  I added
a mechanism based on hashCode() to avoid this

* Deserialization errors are not handled correctly

* I could not get the logging to work so I added my own (this might just be
my problem)

- tony



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



Using PersistentValve for session replication

2004-03-25 Thread Tony Requist

I want to store session information in a database to be shared between a set
of servers in a load balancing without session affinity configuration.

I know this means a database query for every request, but I can afford that,
and my small amount of session data changes rarely so there will not be that
many database writes.

I think the combination of PersistentManager and PersistentValve can do
this, but I can't find any documentation about PersistentValve.

Has anybody set up a configuration like this?

Thanks in advance for any help.

- tony



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



Re: Port-per-webapp?

2004-03-17 Thread Tony Nakamura
Hi Justin,

Be sure, of course, that
 the files you're editing are indeed the ones being read -- for example,
 make sure that by removing /examples from uriworker.properties, IIS no
 longer serves the Tomcat examples.

Great point... I removed the /examples from uriworkermap.properties, and
it's
still serving the http://localhost/examples!!!

I checked my registry settings, and it's pointing to the exact location to
the
uriworkermap.properties:
Registry for worker_mount_file:
c:\\jakarta_tomcat\\appserver\\conf\uriworkermap.properties
file location:  C:\jakarta_tomcat\appserver\conf\uriworkermap.properties

  How could this be..?

Just in case, I am pasting the worker.properties, uriworkermap.properties,
and context from the server.xml.  Thank you!

===uriworker.properties=
# *** Begin uriworkermap.properties ***
# Mount the Servlet context to the ajp13 worker
/servlet/*=ajp13

# This webapp works
/Analyzer6_Server/*=ajp13

#This works too/examples/*=ajp13

#This does NOT work
/examples2/*=ajp13
/examples2/*.jsp=ajp13
==

worker.properties==
#  Begin worker.properties **
worker.ajp13.type=ajp13

#
# Specifies the load balance factor when used with
# a load balancing worker.
# Note:
#   lbfactor must be  0
#   Low lbfactor means less work done by the worker.
worker.ajp13.lbfactor=1

#
# Specify the size of the open connection cache.
#worker.ajp13.cachesize

#
#-- DEFAULT LOAD BALANCER WORKER DEFINITION --
#-
#

#
# The loadbalancer (type lb) worker perform weighted round-robin
# load balancing with sticky sessions.
# Note:
#   If a worker dies, the load balancer will check its state
#once in a while. Until then all work is redirected to peer
#worker.
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=ajp13

#
# worker.tomcat_home should point to the location where you
# installed tomcat. This is where you have your conf, webapps and lib
# directories.
#
worker.tomcat_home=c:\jakarta_tomcat\\appserver

#
# worker.java_home should point to your Java installation. Normally
# you should have a bin and lib directories beneath it.
#
worker.java_home=c:\jakarta_tomcat\\jdk

#
# You should configure your environment slash... ps=\ on NT and / on UNIX
# and maybe something different elsewhere.
#
ps=\

#
#-- ADVANCED MODE 
#-
#

#
#-- DEFAULT worker list --
#-
#
# The worker that your plugins should create and work with
worker.list=ajp13

#
#-- DEFAULT ajp13 WORKER DEFINITION --
#-
#

#
# Defining a worker named ajp13 and of type ajp13
# Note that the name and the type do not have to match.
#
worker.ajp13.port=8009
worker.ajp13.host=w2k3dfvm2

#  End worker.properties **
==

- Original Message - 
From: Justin Ruthenbeck [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, March 16, 2004 5:12 PM
Subject: Re: Port-per-webapp?



 Tony,

 Can you include your full uriworker.properties and worker.properties
 files (inline in the email) for us to look at?  Be sure, of course, that
 the files you're editing are indeed the ones being read -- for example,
 make sure that by removing /examples from uriworker.properties, IIS no
 longer serves the Tomcat examples.

 If there's something wrong with your config files, we should catch it
 pretty easily.

 justin


 At 01:20 PM 3/16/2004, you wrote:
 Hi Justin,
 
 Thank you very much for your input (and it's nice to know that my email
is
 actually
 getting distributed).  I've looked extensively at the documentation for
 days
 now, and
 I cannot figure it out.
 
 The problem I'm having is that the forwarding is selective.  I have two
 webapps:
 webapp1 and examples that are correctly forwarded by IIS but not the
 ones
 that I deploy.
 
 In order to test it, I simply copied the examples to examples2 and
 added
 the
 following lines to uriworker.properties:
 
 /examples2/*=ajp13
 
 where ajp13 is my worker name that is defined in the worker.properties
 file.
 
 I get 404-file not found error- when I try to access
 http://localhost/examples2/, but
 it works if I rename examples2 to examples.  So it has to be some
 configuration
 error, but I just can' t seem to find out which configuration.
 
 Any suggestion helps, thank you!
 
 
 
 Tony
 
 
 
 - Original Message -
 From: Justin Ruthenbeck [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Tuesday, March

Re: Port-per-webapp?

2004-03-17 Thread Tony Nakamura
Hi Justin,

Thank you very much for your help, but I finally got it to work!!
I reconfigured registry settings, cleared cache in Tomcat and IE,
restarted all IIS and Tomcat services manually one by one, and
it began working.

I do have one final question though... In the registry setting
tutorials, I see both c:\tomcat\blahblah and c:\\tomcat\\blahblah
should we or should we not use escape character as in the second
entry?

Thanks again!


Tony


- Original Message - 
From: Tony Nakamura [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, March 17, 2004 8:16 AM
Subject: Re: Port-per-webapp?


 Hi Justin,

 Be sure, of course, that
  the files you're editing are indeed the ones being read -- for example,
  make sure that by removing /examples from uriworker.properties, IIS no
  longer serves the Tomcat examples.

 Great point... I removed the /examples from uriworkermap.properties, and
 it's
 still serving the http://localhost/examples!!!

 I checked my registry settings, and it's pointing to the exact location to
 the
 uriworkermap.properties:
 Registry for worker_mount_file:
 c:\\jakarta_tomcat\\appserver\\conf\uriworkermap.properties
 file location:
C:\jakarta_tomcat\appserver\conf\uriworkermap.properties

   How could this be..?

 Just in case, I am pasting the worker.properties, uriworkermap.properties,
 and context from the server.xml.  Thank you!

 ===uriworker.properties=
 # *** Begin uriworkermap.properties ***
 # Mount the Servlet context to the ajp13 worker
 /servlet/*=ajp13

 # This webapp works
 /Analyzer6_Server/*=ajp13

 #This works too/examples/*=ajp13

 #This does NOT work
 /examples2/*=ajp13
 /examples2/*.jsp=ajp13
 ==

 worker.properties==
 #  Begin worker.properties **
 worker.ajp13.type=ajp13

 #
 # Specifies the load balance factor when used with
 # a load balancing worker.
 # Note:
 #   lbfactor must be  0
 #   Low lbfactor means less work done by the worker.
 worker.ajp13.lbfactor=1

 #
 # Specify the size of the open connection cache.
 #worker.ajp13.cachesize

 #
 #-- DEFAULT LOAD BALANCER WORKER DEFINITION --
 #-
 #

 #
 # The loadbalancer (type lb) worker perform weighted round-robin
 # load balancing with sticky sessions.
 # Note:
 #   If a worker dies, the load balancer will check its state
 #once in a while. Until then all work is redirected to peer
 #worker.
 worker.loadbalancer.type=lb
 worker.loadbalancer.balanced_workers=ajp13

 #
 # worker.tomcat_home should point to the location where you
 # installed tomcat. This is where you have your conf, webapps and lib
 # directories.
 #
 worker.tomcat_home=c:\jakarta_tomcat\\appserver

 #
 # worker.java_home should point to your Java installation. Normally
 # you should have a bin and lib directories beneath it.
 #
 worker.java_home=c:\jakarta_tomcat\\jdk

 #
 # You should configure your environment slash... ps=\ on NT and / on UNIX
 # and maybe something different elsewhere.
 #
 ps=\

 #
 #-- ADVANCED MODE 
 #-
 #

 #
 #-- DEFAULT worker list --
 #-
 #
 # The worker that your plugins should create and work with
 worker.list=ajp13

 #
 #-- DEFAULT ajp13 WORKER DEFINITION --
 #-
 #

 #
 # Defining a worker named ajp13 and of type ajp13
 # Note that the name and the type do not have to match.
 #
 worker.ajp13.port=8009
 worker.ajp13.host=w2k3dfvm2

 #  End worker.properties **
 ==

 - Original Message - 
 From: Justin Ruthenbeck [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Tuesday, March 16, 2004 5:12 PM
 Subject: Re: Port-per-webapp?


 
  Tony,
 
  Can you include your full uriworker.properties and worker.properties
  files (inline in the email) for us to look at?  Be sure, of course, that
  the files you're editing are indeed the ones being read -- for example,
  make sure that by removing /examples from uriworker.properties, IIS no
  longer serves the Tomcat examples.
 
  If there's something wrong with your config files, we should catch it
  pretty easily.
 
  justin
 
 
  At 01:20 PM 3/16/2004, you wrote:
  Hi Justin,
  
  Thank you very much for your input (and it's nice to know that my email
 is
  actually
  getting distributed).  I've looked extensively at the documentation for
  days
  now, and
  I cannot figure it out.
  
  The problem I'm having is that the forwarding is selective.  I have
two

Port-per-webapp?

2004-03-16 Thread Tony Nakamura
Hi,
(B
(BI am encountering something interesting, and I really hope that someone will
(Bgive me an
(Binsight.
(B
(BI'm working on an existing Tomcat 4.1.18 with some webapp deployed by
(Bprevious developer.
(BI am using IIS5 and isapi_filter, and it redirects fine to the previous
(Bwebapp that was deployed.
(B
(BAnd here's the problem:  previously deployed webapps are working fine when
(Brequest was forwarded
(Bby IIS5, but my newly deployed webapps only work on port 8080 and outputs
(B404 - file not found error
(Bwhen I try to access it via IIS.
(B
(BIs there a port specification per-webapp?
(B
(B
(BThank you in advance!!
(B
(B
(BTony
(B
(B
(B-
(BTo unsubscribe, e-mail: [EMAIL PROTECTED]
(BFor additional commands, e-mail: [EMAIL PROTECTED]

Re: Port-per-webapp?

2004-03-16 Thread Tony Nakamura
Does anyone not know anything about this?  I'm wondering whether this
(Bemail is even reaching everyone.?
(B
(B- Original Message - 
(BFrom: "Tony Nakamura" [EMAIL PROTECTED]
(BTo: "Tomcat Users List" [EMAIL PROTECTED]
(BSent: Tuesday, March 16, 2004 12:51 PM
(BSubject: Port-per-webapp?
(B
(B
(B Hi,
(B
(B I am encountering something interesting, and I really hope that someone
(Bwill
(B give me an
(B insight.
(B
(B I'm working on an existing Tomcat 4.1.18 with some webapp deployed by
(B previous developer.
(B I am using IIS5 and isapi_filter, and it redirects fine to the previous
(B webapp that was deployed.
(B
(B And here's the problem:  previously deployed webapps are working fine when
(B request was forwarded
(B by IIS5, but my newly deployed webapps only work on port 8080 and outputs
(B 404 - file not found error
(B when I try to access it via IIS.
(B
(B Is there a port specification per-webapp?
(B
(B
(B Thank you in advance!!
(B
(B
(B Tony
(B
(B
(B -
(B To unsubscribe, e-mail: [EMAIL PROTECTED]
(B For additional commands, e-mail: [EMAIL PROTECTED]
(B
(B
(B
(B
(B-
(BTo unsubscribe, e-mail: [EMAIL PROTECTED]
(BFor additional commands, e-mail: [EMAIL PROTECTED]

Re: Port-per-webapp?

2004-03-16 Thread Tony Nakamura
Hi Justin,
(B
(BThank you very much for your input (and it's nice to know that my email is
(Bactually
(Bgetting distributed).  I've looked extensively at the documentation for days
(Bnow, and
(BI cannot figure it out.
(B
(BThe problem I'm having is that the forwarding is "selective".  I have two
(Bwebapps:
(B"webapp1 and examples" that are correctly forwarded by IIS but not the ones
(Bthat I deploy.
(B
(BIn order to test it, I simply copied the "examples" to "examples2" and added
(Bthe
(Bfollowing lines to uriworker.properties:
(B
(B   /examples2/*=ajp13
(B
(Bwhere ajp13 is my worker name that is defined in the worker.properties file.
(B
(BI get 404-file not found error- when I try to access
(Bhttp://localhost/examples2/, but
(Bit works if I rename "examples2" to "examples".  So it has to be some
(Bconfiguration
(Berror, but I just can' t seem to find out which configuration.
(B
(BAny suggestion helps, thank you!
(B
(B
(B
(BTony
(B
(B
(B
(B- Original Message - 
(BFrom: "Justin Ruthenbeck" [EMAIL PROTECTED]
(BTo: "Tomcat Users List" [EMAIL PROTECTED]
(BSent: Tuesday, March 16, 2004 3:10 PM
(BSubject: Re: Port-per-webapp?
(B
(B
(B
(B You have to configure the IIS plugin to path-forward URLs that have your
(B webapp name in them.  I don't use IIS, so I don't know specifically how
(B it's done, but it's basically a way of telling IIS that anything matching
(B "my.server.com/myApp" should go to the connector instead of being served
(B by IIS.
(B
(B You can test to make sure that this is your problem by adding a file to
(B IIS's doc root that matches the url that is supposed to go to Tomcat.  If
(B you get the page served by IIS, then your forwarding isn't working
(B (alternately, the 404 page should indicate whether it's coming from IIS
(B or Tomcat).
(B
(B Look at the connector docs -- I'm sure the specific files/steps are in
(B there... Or perhaps an IIS user will respond here.
(B
(B justin
(B
(B
(B At 01:04 PM 3/16/2004, you wrote:
(B Does anyone not know anything about this?  I'm wondering whether this
(B email is even reaching everyone.?
(B 
(B - Original Message -
(B From: "Tony Nakamura" [EMAIL PROTECTED]
(B To: "Tomcat Users List" [EMAIL PROTECTED]
(B Sent: Tuesday, March 16, 2004 12:51 PM
(B Subject: Port-per-webapp?
(B 
(B 
(B   Hi,
(B  
(B   I am encountering something interesting, and I really hope that
(Bsomeone
(B will
(B   give me an
(B   insight.
(B  
(B   I'm working on an existing Tomcat 4.1.18 with some webapp deployed by
(B   previous developer.
(B   I am using IIS5 and isapi_filter, and it redirects fine to the
(Bprevious
(B   webapp that was deployed.
(B  
(B   And here's the problem:  previously deployed webapps are working fine
(B  when
(B   request was forwarded
(B   by IIS5, but my newly deployed webapps only work on port 8080 and
(B  outputs
(B   404 - file not found error
(B   when I try to access it via IIS.
(B  
(B   Is there a port specification per-webapp?
(B  
(B  
(B   Thank you in advance!!
(B  
(B  
(B   Tony
(B  
(B  
(B   -
(B   To unsubscribe, e-mail: [EMAIL PROTECTED]
(B   For additional commands, e-mail: [EMAIL PROTECTED]
(B  
(B  
(B 
(B 
(B -
(B To unsubscribe, e-mail: [EMAIL PROTECTED]
(B For additional commands, e-mail: [EMAIL PROTECTED]
(B
(B
(B __
(B Justin Ruthenbeck
(B Software Engineer, NextEngine Inc.
(B justinr - AT - nextengine DOT com
(B Confidential. See:
(B http://www.nextengine.com/confidentiality.php
(B __
(B
(B
(B -
(B To unsubscribe, e-mail: [EMAIL PROTECTED]
(B For additional commands, e-mail: [EMAIL PROTECTED]
(B
(B
(B
(B
(B-
(BTo unsubscribe, e-mail: [EMAIL PROTECTED]
(BFor additional commands, e-mail: [EMAIL PROTECTED]

Re: IIS5 isolation mode

2004-03-15 Thread Tony Nakamura
Here's how my uriworkermap_properties look like:
(B
(B# *** Begin uriworkermap.properties ***
(B#
(B# Simple worker configuration file
(B#
(B
(B# Mount the Servlet context to the ajp13 worker /servlet/*=3Dajp13
(B
(B# Mount the examples context to the ajp13 worker /examples/*=3Dajp13
(B
(B# Advanced mount of the examples context
(B# /examples/servlet/*=3Dajp13
(B# * End uriworkermap.properties 
(B
(BI followed the links, but I seem to have done everything that was stated In
(Bthe tutorial. Any ideas?
(B
(B
(BTony
(B
(B
(B
(B"George Hester" [EMAIL PROTECTED] wrote in message
(Bnews:[EMAIL PROTECTED]
(BWhat does your uriworkermap_properties file look like?
(B
(BCheck these two pages for working directions:
(B
(Bhttp://www.onjava.com/pub/a/onjava/2002/12/18/tomcat.html?page=1
(B
(Bhttp://www.getnet.net/~rbarr/TomcatOnIIS/default.htm
(B
(BI know you said Windows 2003 but as long as URLScan is not interfering the
(Bdirections should work.
(B
(B-- 
(BGeorge Hester
(B__
(B"Tony Nakamura" [EMAIL PROTECTED] wrote in message
(Bnews:[EMAIL PROTECTED]
(B Hi,
(B
(B Sorry, I carefully followed the documentation one more time, and this
(B particular
(B problem went awayapologies.  Now the problem looks like the one that
(B I've seen
(B on other threads before.  The arrow is green, and there are no errors, but
(B it just won't
(B redirect.
(B
(B
(B Tony
(B
(B
(B - Original Message ----- 
(B From: "Tony Nakamura" [EMAIL PROTECTED]
(B To: "Tomcat Users List" [EMAIL PROTECTED]
(B Sent: Friday, March 12, 2004 5:36 PM
(B Subject: IIS5 isolation mode
(B
(B
(B  Hi,
(B 
(B  I am trying to run Tomcat 4.1 on Windows 2003/IIS6.  After going through
(B  some documentation,
(B  I've noticed that we must enable "IIS5 isolation mode" to make it work.
(B  When I enable the IIS5 isolation
(B  mode, there was a "red cross" on "Web Sites" in IIS Admin, and World
(BWide
(B  Web Service did not start.
(B  Furthermore, when I tried to add isapi_redirector.dll, IIS service
(B wouldn't
(B  even start when I tried to restart it..  I think we've configured
(B properties
(B  file correctly, but I don't think we're even that far.
(B 
(B  Any suggestions appreciated!
(B 
(B 
(B  Tony
(B 
(B 
(B  -
(B  To unsubscribe, e-mail: [EMAIL PROTECTED]
(B  For additional commands, e-mail: [EMAIL PROTECTED]
(B 
(B 
(B
(B
(B-
(BTo unsubscribe, e-mail: [EMAIL PROTECTED]
(BFor additional commands, e-mail: [EMAIL PROTECTED]
(B
(B
(B
(B
(B-
(BTo unsubscribe, e-mail: [EMAIL PROTECTED]
(BFor additional commands, e-mail: [EMAIL PROTECTED]

IIS5 isolation mode

2004-03-12 Thread Tony Nakamura
Hi,
(B
(BI am trying to run Tomcat 4.1 on Windows 2003/IIS6.  After going through
(Bsome documentation,
(BI've noticed that we must enable "IIS5 isolation mode" to make it work.
(BWhen I enable the IIS5 isolation
(Bmode, there was a "red cross" on "Web Sites" in IIS Admin, and World Wide
(BWeb Service did not start.
(BFurthermore, when I tried to add isapi_redirector.dll, IIS service wouldn't
(Beven start when I tried to restart it..  I think we've configured properties
(Bfile correctly, but I don't think we're even that far.
(B
(BAny suggestions appreciated!
(B
(B
(BTony
(B
(B
(B-
(BTo unsubscribe, e-mail: [EMAIL PROTECTED]
(BFor additional commands, e-mail: [EMAIL PROTECTED]

Re: IIS5 isolation mode

2004-03-12 Thread Tony Nakamura
Hi,
(B
(BSorry, I carefully followed the documentation one more time, and this
(Bparticular
(Bproblem went awayapologies.  Now the problem looks like the one that
(BI've seen
(Bon other threads before.  The arrow is green, and there are no errors, but
(Bit just won't
(Bredirect.
(B
(B
(BTony
(B
(B
(B- Original Message - 
(BFrom: "Tony Nakamura" [EMAIL PROTECTED]
(BTo: "Tomcat Users List" [EMAIL PROTECTED]
(BSent: Friday, March 12, 2004 5:36 PM
(BSubject: IIS5 isolation mode
(B
(B
(B Hi,
(B
(B I am trying to run Tomcat 4.1 on Windows 2003/IIS6.  After going through
(B some documentation,
(B I've noticed that we must enable "IIS5 isolation mode" to make it work.
(B When I enable the IIS5 isolation
(B mode, there was a "red cross" on "Web Sites" in IIS Admin, and World Wide
(B Web Service did not start.
(B Furthermore, when I tried to add isapi_redirector.dll, IIS service
(Bwouldn't
(B even start when I tried to restart it..  I think we've configured
(Bproperties
(B file correctly, but I don't think we're even that far.
(B
(B Any suggestions appreciated!
(B
(B
(B Tony
(B
(B
(B -
(B To unsubscribe, e-mail: [EMAIL PROTECTED]
(B For additional commands, e-mail: [EMAIL PROTECTED]
(B
(B
(B
(B
(B-
(BTo unsubscribe, e-mail: [EMAIL PROTECTED]
(BFor additional commands, e-mail: [EMAIL PROTECTED]

Re: FAQ, but help!

2004-02-20 Thread Tony Nakamura
An update on this issue..
(BI changed my 500.jsp to a simple HTML file, 500.html, and
(Bit started working.  I am still not sure why, so I will have to do
(Bsome more hacking around.  Thanks for everyone's advice.
(B
(BI do have one more question to ask, if I may.  Is there a list of
(Ball throwable exceptions by servlet and jsp?
(B
(BThanks!
(B
(B
(BTony
(B
(B
(B- Original Message - 
(BFrom: "Tony Nakamura" [EMAIL PROTECTED]
(BTo: "Tomcat Users List" [EMAIL PROTECTED]
(BSent: Thursday, February 19, 2004 3:21 PM
(BSubject: Re: FAQ, but help!
(B
(B
(B Hi,
(B
(B I didn't have the tags at the correct place in the WEB-INF\web.xml file.
(B I placed them in the correct places, but I'm just back to square-one.
(B I have the following entries, but I am still getting the 500 error page
(Bwith
(B java.io.FileNotFoundException generated by Tomcat.
(B
(B error-page
(B error-code404/error-code
(B location/404.html/location
(B /error-page
(B error-page
(Bexception-typejava.io.FileNotFoundException/exception-type
(Blocation/500.jsp/location
(B /error-page
(B error-page
(Berror-code500/error-code
(Blocation/500.jsp/location
(B /error-page
(B
(B
(B ???
(B
(B Thanks,
(B
(B
(B Tony
(B
(B - Original Message - 
(B From: "Shapira, Yoav" [EMAIL PROTECTED]
(B To: "Tomcat Users List" [EMAIL PROTECTED]
(B Sent: Thursday, February 19, 2004 11:49 AM
(B Subject: RE: FAQ, but help!
(B
(B
(B
(B Howdy,
(B
(B There are two web.xml, I guess?  There is one in %root%\conf\web.xml
(B (sorry,
(B it wasn't
(B in the my_app directory),  which I can use custom pages for 404 errors
(B after
(B adding entries,
(B and there is another one in WEB-INF  directory as well.
(B
(B Yes.  The first is for all tomcat webapps, and you shouldn't really use
(B it for your own stuff.  The second is for your own webapp, and it's the
(B one you should use.
(B
(B I've added the entry to the web.xml
(B in my_app\WEB-INF directory, and it pretty made any of my apps
(B unavailable.
(B
(B Impossible.  Even if you muck up your web.xml, it would only make your
(B webapp unavailable.  It won't affect others.  (Messing up conf/web.xml
(B would make all your webapps broken, which is another reason not to use
(B conf/web.xml).
(B
(B I get 404 with
(B "The requested resource is not available".  As soon as I delete the
(B entries
(B from the web.xml
(B in WEB-INF again, then apps begin working again.
(B 
(B Any ideas?
(B
(B Are you sure you put the error-page directives in the right place in
(B web.xml, if you're using tomcat 4.x?  What tomcat version are you using,
(B btw?
(B
(B Yoav Shapira
(B
(B
(B
(B This e-mail, including any attachments, is a confidential business
(B communication, and may contain information that is confidential,
(Bproprietary
(B and/or privileged.  This e-mail is intended only for the individual(s) to
(B whom it is addressed, and may not be saved, copied, printed, disclosed or
(B used by anyone else.  If you are not the(an) intended recipient, please
(B immediately delete this e-mail from your computer system and notify the
(B sender.  Thank you.
(B
(B
(B -
(B To unsubscribe, e-mail: [EMAIL PROTECTED]
(B For additional commands, e-mail: [EMAIL PROTECTED]
(B
(B
(B
(B
(B -
(B To unsubscribe, e-mail: [EMAIL PROTECTED]
(B For additional commands, e-mail: [EMAIL PROTECTED]
(B
(B
(B
(B
(B-
(BTo unsubscribe, e-mail: [EMAIL PROTECTED]
(BFor additional commands, e-mail: [EMAIL PROTECTED]

FAQ, but help!

2004-02-19 Thread Tony Nakamura
Hi,
(B
(BI am using Tomcat 4.0.4 on Win2K environtment. I see in many places on the
(Bnet
(Bthat catching 500 error is much more compilcated than catching something
(Blike
(B404.  I have the following in the %root%/my_app/conf/web.xml
(B
(B---
(B error-page
(Berror-code404/error-code
(Blocation/404.html/location
(B /error-page
(B
(Berror-page
(Bexception-typejava.io.FileNotFoundException/exception-type
(Blocation/500.jsp/location
(B/error-page
(B
(Berror-page
(Berror-code500/error-code
(Blocation/500.jsp/location
(B/error-page
(B
(B
(BFirst, I'm wondering if this is a bug on 4.0.4, and second, if there is a
(Bway around
(Bit without having to upgrade to the newer version.
(B
(B
(BThank you in advance!
(B
(B
(BTony
(B
(B
(B-
(BTo unsubscribe, e-mail: [EMAIL PROTECTED]
(BFor additional commands, e-mail: [EMAIL PROTECTED]

Re: FAQ, but help!

2004-02-19 Thread Tony Nakamura
Hi,
(B
(BThere are two web.xml, I guess?  There is one in %root%\conf\web.xml (sorry,
(Bit wasn't
(Bin the my_app directory),  which I can use custom pages for 404 errors after
(Badding entries,
(Band there is another one in WEB-INF  directory as well.  I've added the
(Bentry to the web.xml
(Bin my_app\WEB-INF directory, and it pretty made any of my apps unavailable.
(BI get 404 with
(B"The requested resource is not available".  As soon as I delete the entries
(Bfrom the web.xml
(Bin WEB-INF again, then apps begin working again.
(B
(BAny ideas?
(B
(BThanks,
(B
(B
(BTony
(B
(B
(B
(B
(B- Original Message - 
(BFrom: "Shapira, Yoav" [EMAIL PROTECTED]
(BTo: "Tomcat Users List" [EMAIL PROTECTED]
(BSent: Thursday, February 19, 2004 11:02 AM
(BSubject: RE: FAQ, but help!
(B
(B
(B
(BHowdy,
(B
(B404.  I have the following in the %root%/my_app/conf/web.xml
(B
(BIt should be in WEB-INF/web.xml under your webapp.
(B
(BFirst, I'm wondering if this is a bug on 4.0.4, and second, if there is
(Ba
(Bway around it without having to upgrade to the newer version.
(B
(BWhat's a bug?  You haven't described what behavior you're seeing with
(Byour current web.xml.
(B
(BYoav Shapira
(B
(B
(B
(BThis e-mail, including any attachments, is a confidential business
(Bcommunication, and may contain information that is confidential, proprietary
(Band/or privileged.  This e-mail is intended only for the individual(s) to
(Bwhom it is addressed, and may not be saved, copied, printed, disclosed or
(Bused by anyone else.  If you are not the(an) intended recipient, please
(Bimmediately delete this e-mail from your computer system and notify the
(Bsender.  Thank you.
(B
(B
(B-
(BTo unsubscribe, e-mail: [EMAIL PROTECTED]
(BFor additional commands, e-mail: [EMAIL PROTECTED]
(B
(B
(B
(B
(B-
(BTo unsubscribe, e-mail: [EMAIL PROTECTED]
(BFor additional commands, e-mail: [EMAIL PROTECTED]

Re: FAQ, but help!

2004-02-19 Thread Tony Nakamura
Hi,
(B
(BWow, Shapira, you're really good at responding FAST ;)
(BI may not be inserting the tags in WEB-INF\web.xml correctly.
(BI'm on Tomcat 4.0.4.
(B
(BThanks,
(B
(B
(BTony
(B
(B
(B- Original Message - 
(BFrom: "Shapira, Yoav" [EMAIL PROTECTED]
(BTo: "Tomcat Users List" [EMAIL PROTECTED]
(BSent: Thursday, February 19, 2004 11:49 AM
(BSubject: RE: FAQ, but help!
(B
(B
(B
(BHowdy,
(B
(BThere are two web.xml, I guess?  There is one in %root%\conf\web.xml
(B(sorry,
(Bit wasn't
(Bin the my_app directory),  which I can use custom pages for 404 errors
(Bafter
(Badding entries,
(Band there is another one in WEB-INF  directory as well.
(B
(BYes.  The first is for all tomcat webapps, and you shouldn't really use
(Bit for your own stuff.  The second is for your own webapp, and it's the
(Bone you should use.
(B
(BI've added the entry to the web.xml
(Bin my_app\WEB-INF directory, and it pretty made any of my apps
(Bunavailable.
(B
(BImpossible.  Even if you muck up your web.xml, it would only make your
(Bwebapp unavailable.  It won't affect others.  (Messing up conf/web.xml
(Bwould make all your webapps broken, which is another reason not to use
(Bconf/web.xml).
(B
(BI get 404 with
(B"The requested resource is not available".  As soon as I delete the
(Bentries
(Bfrom the web.xml
(Bin WEB-INF again, then apps begin working again.
(B
(BAny ideas?
(B
(BAre you sure you put the error-page directives in the right place in
(Bweb.xml, if you're using tomcat 4.x?  What tomcat version are you using,
(Bbtw?
(B
(BYoav Shapira
(B
(B
(B
(BThis e-mail, including any attachments, is a confidential business
(Bcommunication, and may contain information that is confidential, proprietary
(Band/or privileged.  This e-mail is intended only for the individual(s) to
(Bwhom it is addressed, and may not be saved, copied, printed, disclosed or
(Bused by anyone else.  If you are not the(an) intended recipient, please
(Bimmediately delete this e-mail from your computer system and notify the
(Bsender.  Thank you.
(B
(B
(B-
(BTo unsubscribe, e-mail: [EMAIL PROTECTED]
(BFor additional commands, e-mail: [EMAIL PROTECTED]
(B
(B
(B
(B
(B-
(BTo unsubscribe, e-mail: [EMAIL PROTECTED]
(BFor additional commands, e-mail: [EMAIL PROTECTED]

Re: FAQ, but help!

2004-02-19 Thread Tony Nakamura

(B
(B- Original Message - 
(BFrom: "Shapira, Yoav" [EMAIL PROTECTED]
(BTo: "Tomcat Users List" [EMAIL PROTECTED]
(BSent: Thursday, February 19, 2004 11:49 AM
(BSubject: RE: FAQ, but help!
(B
(B
(B
(BHowdy,
(B
(BThere are two web.xml, I guess?  There is one in %root%\conf\web.xml
(B(sorry,
(Bit wasn't
(Bin the my_app directory),  which I can use custom pages for 404 errors
(Bafter
(Badding entries,
(Band there is another one in WEB-INF  directory as well.
(B
(BYes.  The first is for all tomcat webapps, and you shouldn't really use
(Bit for your own stuff.  The second is for your own webapp, and it's the
(Bone you should use.
(B
(BI've added the entry to the web.xml
(Bin my_app\WEB-INF directory, and it pretty made any of my apps
(Bunavailable.
(B
(BImpossible.  Even if you muck up your web.xml, it would only make your
(Bwebapp unavailable.  It won't affect others.  (Messing up conf/web.xml
(Bwould make all your webapps broken, which is another reason not to use
(Bconf/web.xml).
(B
(BI get 404 with
(B"The requested resource is not available".  As soon as I delete the
(Bentries
(Bfrom the web.xml
(Bin WEB-INF again, then apps begin working again.
(B
(BAny ideas?
(B
(BAre you sure you put the error-page directives in the right place in
(Bweb.xml, if you're using tomcat 4.x?  What tomcat version are you using,
(Bbtw?
(B
(BYoav Shapira
(B
(B
(B
(BThis e-mail, including any attachments, is a confidential business
(Bcommunication, and may contain information that is confidential, proprietary
(Band/or privileged.  This e-mail is intended only for the individual(s) to
(Bwhom it is addressed, and may not be saved, copied, printed, disclosed or
(Bused by anyone else.  If you are not the(an) intended recipient, please
(Bimmediately delete this e-mail from your computer system and notify the
(Bsender.  Thank you.
(B
(B
(B-
(BTo unsubscribe, e-mail: [EMAIL PROTECTED]
(BFor additional commands, e-mail: [EMAIL PROTECTED]-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Servlet won't run init()

2004-02-19 Thread Tony Nakamura
I apologize for my last empty message...wrong window.
(BI didn't have the tags at the correct place in the WEB-INF\web.xml file.
(BI placed them in the correct places, but I'm just back to square-one.
(BI have the following entries, but I am still getting the 500 error page with
(Bjava.io.FileNotFoundException generated by Tomcat.
(B
(Berror-page
(Berror-code404/error-code
(Blocation/404.html/location
(B/error-page
(Berror-page
(B   exception-typejava.io.FileNotFoundException/exception-type
(B   location/500.jsp/location
(B/error-page
(Berror-page
(B   error-code500/error-code
(B   location/500.jsp/location
(B/error-page
(B
(B
(B???
(B
(BThanks,
(B
(B
(BTony
(B
(B
(B- Original Message - 
(BFrom: "Shapira, Yoav" [EMAIL PROTECTED]
(BTo: "Tomcat Users List" [EMAIL PROTECTED]
(BSent: Thursday, February 19, 2004 1:10 PM
(BSubject: RE: Servlet won't run init()
(B
(B
(B
(BHowdy,
(B
(BNow my IDEA IDE tech is telling me he thinks the problem is that the
(Binit() method is running before the IDEA debugger getes a chance to
(Bconnect to tomcat. I don't see my println(..) messages in catalina.out.
(B  1. Is there another log?
(B2. Would I likely run into similar problems using the
(BServletContextListener approach?
(B
(BI won't venture into debugging your IDE problems.  If you have issues
(Bwhen running tomcat by itself, outside an IDE, I'll be glad to help ;)
(B
(BYoav Shapira
(B
(B
(B
(BThis e-mail, including any attachments, is a confidential business
(Bcommunication, and may contain information that is confidential, proprietary
(Band/or privileged.  This e-mail is intended only for the individual(s) to
(Bwhom it is addressed, and may not be saved, copied, printed, disclosed or
(Bused by anyone else.  If you are not the(an) intended recipient, please
(Bimmediately delete this e-mail from your computer system and notify the
(Bsender.  Thank you.
(B
(B
(B-
(BTo unsubscribe, e-mail: [EMAIL PROTECTED]
(BFor additional commands, e-mail: [EMAIL PROTECTED]
(B
(B
(B
(B
(B-
(BTo unsubscribe, e-mail: [EMAIL PROTECTED]
(BFor additional commands, e-mail: [EMAIL PROTECTED]

Re: FAQ, but help!

2004-02-19 Thread Tony Nakamura
Hi,
(B
(BI didn't have the tags at the correct place in the WEB-INF\web.xml file.
(BI placed them in the correct places, but I'm just back to square-one.
(BI have the following entries, but I am still getting the 500 error page with
(Bjava.io.FileNotFoundException generated by Tomcat.
(B
(Berror-page
(Berror-code404/error-code
(Blocation/404.html/location
(B/error-page
(Berror-page
(B   exception-typejava.io.FileNotFoundException/exception-type
(B   location/500.jsp/location
(B/error-page
(Berror-page
(B   error-code500/error-code
(B   location/500.jsp/location
(B/error-page
(B
(B
(B???
(B
(BThanks,
(B
(B
(BTony
(B
(B- Original Message - 
(BFrom: "Shapira, Yoav" [EMAIL PROTECTED]
(BTo: "Tomcat Users List" [EMAIL PROTECTED]
(BSent: Thursday, February 19, 2004 11:49 AM
(BSubject: RE: FAQ, but help!
(B
(B
(B
(BHowdy,
(B
(BThere are two web.xml, I guess?  There is one in %root%\conf\web.xml
(B(sorry,
(Bit wasn't
(Bin the my_app directory),  which I can use custom pages for 404 errors
(Bafter
(Badding entries,
(Band there is another one in WEB-INF  directory as well.
(B
(BYes.  The first is for all tomcat webapps, and you shouldn't really use
(Bit for your own stuff.  The second is for your own webapp, and it's the
(Bone you should use.
(B
(BI've added the entry to the web.xml
(Bin my_app\WEB-INF directory, and it pretty made any of my apps
(Bunavailable.
(B
(BImpossible.  Even if you muck up your web.xml, it would only make your
(Bwebapp unavailable.  It won't affect others.  (Messing up conf/web.xml
(Bwould make all your webapps broken, which is another reason not to use
(Bconf/web.xml).
(B
(BI get 404 with
(B"The requested resource is not available".  As soon as I delete the
(Bentries
(Bfrom the web.xml
(Bin WEB-INF again, then apps begin working again.
(B
(BAny ideas?
(B
(BAre you sure you put the error-page directives in the right place in
(Bweb.xml, if you're using tomcat 4.x?  What tomcat version are you using,
(Bbtw?
(B
(BYoav Shapira
(B
(B
(B
(BThis e-mail, including any attachments, is a confidential business
(Bcommunication, and may contain information that is confidential, proprietary
(Band/or privileged.  This e-mail is intended only for the individual(s) to
(Bwhom it is addressed, and may not be saved, copied, printed, disclosed or
(Bused by anyone else.  If you are not the(an) intended recipient, please
(Bimmediately delete this e-mail from your computer system and notify the
(Bsender.  Thank you.
(B
(B
(B-
(BTo unsubscribe, e-mail: [EMAIL PROTECTED]
(BFor additional commands, e-mail: [EMAIL PROTECTED]
(B
(B
(B
(B
(B-
(BTo unsubscribe, e-mail: [EMAIL PROTECTED]
(BFor additional commands, e-mail: [EMAIL PROTECTED]

RE: $JAVA_HOME error

2004-02-05 Thread Tony Sutton
Thanks for the reply. Here's what I got after following your steps.

[EMAIL PROTECTED] tony]$ export JAVA_HOME=/usr/java/j2re1.4.2_03
[EMAIL PROTECTED] tony]$ export PATH=$JAVA_HOME/bin:$PATH
[EMAIL PROTECTED] tony]$ cd jakarta-tomcat-4.1.29/bin/
[EMAIL PROTECTED] bin]$ chmod +x startup.sh
[EMAIL PROTECTED] bin]$ ./startup.sh
The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program

So, no luck...

Do you think it's because I need the SDK and not JRE as mentioned by Mark
Thomas?

Many thanks,

- Tony Sutton
- http://www.hypertony.co.uk

-Original Message-
From: Filip Hanik (lists) [mailto:[EMAIL PROTECTED] 
Sent: 04 February 2004 23:20
To: Tomcat Users List
Subject: RE: $JAVA_HOME error

do

export JAVA_HOME=/usr/java/j2re1.4.2_03
export PATH=$JAVA_HOME/bin:$PATH
cd jakarta-tomcat-4.1.29/bin/
chmod +x startup.sh
./startup.sh


Filip




-Original Message-
From: Tony Sutton [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 04, 2004 3:14 PM
To: [EMAIL PROTECTED]
Subject: $JAVA_HOME error


Hi there,

I'm new to using jakart.

I'm trying to get jakart v4.1.29 to run under Mandrake 9.1

I have downloaded and installed JRE from Sun, version 1.4.2_03. The
installation went well. Here's the output from my Linux box:

[EMAIL PROTECTED] tony]$ which java
/usr/java/j2re1.4.2_03/bin/java
[EMAIL PROTECTED] tony]$ echo $JAVA_HOME
/usr/java/j2re1.4.2_03
[EMAIL PROTECTED] tony]$

OK so far.

However, I tried to start jakart by going to the  jakarta-tomcat-4.1.29/bin/
directory and typed in:

sh startup.sh

I get this error message:

[EMAIL PROTECTED] bin]$ sh startup.sh
The JAVA_HOME environment variable is not defined correctly This environment
variable is needed to run this program [EMAIL PROTECTED] bin]$

I can't figure out what I am doing wrong. I have tried googling for it, but
it came back very little.

Does anyone know why I am getting this error message?

Thanks,

Tony Sutton




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.577 / Virus Database: 366 - Release Date: 2/3/2004

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.577 / Virus Database: 366 - Release Date: 2/3/2004


-
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: failure notice

2004-02-05 Thread Tony Sutton
Yes, me too. It's annoying.

-- 

- Tony Sutton
- http://www.hypertony.co.uk


Quoting Kannan Sundararajan [EMAIL PROTECTED]:

 I am getting lot of messages like this. Any one experiencing the same? 
 



-
This mail sent through IMP: http://horde.org/imp/

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



$JAVA_HOME error

2004-02-04 Thread Tony Sutton
Hi there,

I'm new to using jakart.

I'm trying to get jakart v4.1.29 to run under Mandrake 9.1

I have downloaded and installed JRE from Sun, version 1.4.2_03. The
installation went well. Here's the output from my Linux box:

[EMAIL PROTECTED] tony]$ which java
/usr/java/j2re1.4.2_03/bin/java
[EMAIL PROTECTED] tony]$ echo $JAVA_HOME
/usr/java/j2re1.4.2_03
[EMAIL PROTECTED] tony]$

OK so far.

However, I tried to start jakart by going to the  jakarta-tomcat-4.1.29/bin/
directory and typed in:

sh startup.sh

I get this error message:

[EMAIL PROTECTED] bin]$ sh startup.sh
The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
[EMAIL PROTECTED] bin]$

I can't figure out what I am doing wrong. I have tried googling for it, but
it came back very little.

Does anyone know why I am getting this error message? 

Thanks,

Tony Sutton




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



Fail to perform ant install with Tomcat 5.0.18

2004-02-03 Thread Tony Yat-Tung Cheung
Hi All,

I am trying the ant install on the Tomcat 5.0.18 with the included 
sample application 
(jakarta-tomcat-5.0.18/webapps/tomcat-docs/appdev/sample).

The ant install seems to work fine. However, I found that the service 
is not started properly. When I look at tomcat's log files, I found the 
followings,

Feb 4, 2004 12:03:40 PM org.apache.catalina.core.StandardHostDeployer 
install
INFO: Installing web application at context path /myapp from URL 
file:/home/ton/sample/build
Feb 4, 2004 12:03:40 PM org.apache.catalina.core.StandardContext 
resourcesStart
SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Document base 
/home/tony/sample/build does
ot exist or is not a readable directory
   at 
org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext
java:185)
   at 
org.apache.catalina.core.StandardContext.resourcesStart(StandardCont
xt.java:3858)

I do not understand why the problem occurs, as the 
/home/tony/sample/build is accessable by users and I run tomcat as a 
root user.

The contents of the /home/tony/sample/build is the build directory, 
which looks like,

ls -al
total 24
drwxrwxr-x4 tony tony 4096 Feb  4 10:45 .
drwxr-xr-x6 tony tony 4096 Feb  4 10:45 ..
-rw-rw-r--1 tony tony 1019 Feb  4 10:45 hello.jsp
drwxrwxr-x2 tony tony 4096 Feb  4 10:45 images
-rw-rw-r--1 tony tony  636 Feb  4 10:45 index.html
drwxrwxr-x4 tony tony 4096 Feb  4 10:45 WEB-INF
Does anyone kindly have any clue?

Thank you very much.

Best Regards,
Tony Cheung
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-help

2003-12-30 Thread Tony Sciortino
unsubscribe

_
Expand your wine savvy — and get some great new recipes — at MSN Wine. 
http://wine.msn.com

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


RE: JNDI comp namespace - Tomcat Developers Please Read

2003-12-20 Thread Tony Colson
Hi,

Just to close up a few issues, and I am sorry if this email will offend
anybody, but I don't apologize for writing it:
 
 I responded to one of your messages saying there might be a startup
 error with one of your contexts causing this behavior.
 (http://marc.theaimsgroup.com/?l=tomcat-userm=107149495515920w=2)
But
 you never replied to that.  Instead, you enter this issue into
Bugzilla,
 and then ask tomcat developers to read your message.

Ok, perhaps you have a point, but I didn't want to burden the list
anymore; After asking Tomcat developers to chime in I decided to move it
over to Bugzilla.  I did check what you suggested (actually before you
suggested it).  I didn't see anything wrong with it.  However, that
doesn't mean there wasn't; I find the documentation for Tomcat leaves
much to be desired, even in books.

I have not found any type of instruction on the Context elements,
rather just simple declarations of what they are and their attributes.
Most of the details I know about these elements have come from trial and
error, so I hope you'll forgive me for being inexperienced.

 autoDeploy has nothing to do with JNDI.

Agreed.  That is why it is a bug that it does affect it.  This issue was
confirmed by another developer who privately emailed me about it.
Apparently it still exists in Tomcat 5, the developers know about it but
have not committed to fixing it, and this other developer cannot upgrade
to Tomcat 5 because of it (He is still using Tomcat 3 where autoDeploy
does not break JNDI).

 If you even want someone to look at this, you will need to provide a
 test case (e.g. WAR files, even if they're small dummy ones that don't
 do anything) so that we can try to reproduce your bug.  Needless to
say,
 we don't have and don't care to have your actual webapps.  Just have
one
 servlet that looks up a String via env-entry JNDI or something like
 that.

Ok.  Perhaps you have another point where I could have provided a
runtime war to illustrate this, however in my first email on this topic
I included the code snippet which illustrated this and subsequently
server.xml:

  DataSource ds = (DataSource)initialContext.lookup(
  java:comp/env/jdbc/mydb );


 Finally, even if this were an issue as you describe, it's not major,
but
 minor, as this is a rarely used configuration (multiple Service) in
the
 not-latest (4.1.15) version of a no-longer-developed branch (4.1).

First, my philosophy is that if Tomcat is not going to support a release
it should not be available on the website as a current release:
4.1.29.zip is available on the same page and section as 5.1.zip and
there was not any indication that it was no longer supported, outside of
implicitly assuming so.

Second, since I can't find any documentation saying that multiple
Service tags is not the intended use of Tomcat nor any metrics saying
that it is rarely used, I feel perfectly free and right to report it
with the severity that it affects me.  If a more learned Tomcat
developer wants to downgrade it to minor, I have no problem with that,
but I don't appreciate getting my chops busted by another user on a list
like this.


As far as I am concerned, this issue is now closed and I got the
information I needed.  Thanks to all who productively contributed (Yes,
even you Yoav ;)).

Thanks and Merry Christmas to all,

Tony

 

-Original Message-
From: Shapira, Yoav 
Subject: RE: JNDI comp namespace - Tomcat Developers Please Read


Howdy,
See, it's messages like these that annoy me.  And on a Friday, too.

I responded to one of your messages saying there might be a startup
error with one of your contexts causing this behavior.
(http://marc.theaimsgroup.com/?l=tomcat-userm=107149495515920w=2)  But
you never replied to that.  Instead, you enter this issue into Bugzilla,
and then ask tomcat developers to read your message.

autoDeploy has nothing to do with JNDI.

If you even want someone to look at this, you will need to provide a
test case (e.g. WAR files, even if they're small dummy ones that don't
do anything) so that we can try to reproduce your bug.  Needless to say,
we don't have and don't care to have your actual webapps.  Just have one
servlet that looks up a String via env-entry JNDI or something like
that.

Finally, even if this were an issue as you describe, it's not major, but
minor, as this is a rarely used configuration (multiple Service) in the
not-latest (4.1.15) version of a no-longer-developed branch (4.1).

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Tony Colson [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 18, 2003 3:45 PM
To: 'Tomcat Users List'; [EMAIL PROTECTED]
Subject: RE: JNDI comp namespace - Tomcat Developers Please Read

I have filed this bug with Tomcat under Bugzilla as bug #25508.



-Original Message-
Sent: Saturday, December 13, 2003 12:09 AM
To: 'Tomcat Users List'; [EMAIL PROTECTED]
Subject: RE: JNDI comp namespace - Tomcat Developers Please Read


I

RE: JNDI comp namespace - Tomcat Developers Please Read

2003-12-19 Thread Tony Colson
I have filed this bug with Tomcat under Bugzilla as bug #25508.

 

-Original Message-
Sent: Saturday, December 13, 2003 12:09 AM
To: 'Tomcat Users List'; [EMAIL PROTECTED]
Subject: RE: JNDI comp namespace - Tomcat Developers Please Read


I narrowed down the problem a bit more.  I found 2 things which look
like they may be bugs.

1)  In the first Service tag I had a Engine tag and a Host tag as
seen below:

  Service name=XXX

Engine name=Standalone
defaultHost=localhost
debug=0

  Host name=localhost debug=0 appBase=webapps
   unpackWARs=true autoDeploy=false

Context.../Context

Context.../Context

With Host autoDeploy=true JNDI doesn't work.  When I set autoDeploy
to false JNDI works.

2) I had 2 Context tags in the above Service tag.  When I commented
out the 2nd Context tag JNDI worked.


 
Tony 

-Original Message-
From: Tony Colson [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 12, 2003 10:31 PM
To: 'Tomcat Users List'; [EMAIL PROTECTED]
Subject: RE: JNDI comp namespace - Tomcat Developers Please Read

As per my suspicion, multiple Service seemed to cause the problem as I
had the JNDI resources defined in the second Service.  Removing the
first service temporarily seemed to fix it.

Is this a bug in Tomcat?  Or is there something else I need to specify?

I will do some more testing to see if I can't narrow it down further.

 
Tony

-Original Message-
From: Tony Colson [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 12, 2003 1:23 PM
To: 'Tomcat Users List'; [EMAIL PROTECTED]
Subject: RE: JNDI comp namespace

Hi,

Thanks for the tip.  Actually, this is how my server.xml was set up
originally.  I changed the resource name to java:comp/env/jdbc/NNT under
the notion that it might create the comp namespace if it saw it in the
xml file.

I am beginning to wonder if the problem is related to the fact that I
have different ports running web apps?

Thanks,
 
Tony Colson
 
-Original Message-
From: Altankov Peter [mailto:[EMAIL PROTECTED] 
 Howdy,Try this setup in your context definition:
   Resource name=jdbc/NNT auth=Container
type=javax.sql.DataSource/

   ResourceParams name=jdbc/NNT .


After that in the source where u access it go for:
Context ictx = new InitialContext();
if (ictx == null) {
throw new Exception(Boom - No Context);
}
DtataSource ds = (DataSource) ictx.lookup(java:comp/env/jdbc/NNT);

I don't have the time to go into JNDI details, but im pretty sure that
wold work for you


-Original Message-
From: Tony Colson [mailto:[EMAIL PROTECTED] 
Sent: 12  2003 ?. 10:48
To: 'Tomcat Users List'
Subject: RE: JNDI comp namespace


As per a suggestion I am posting my server.xml file.

I have several applications on different ports.  I am trying to use JNDI
on the NNT application running on port 9000.  Do a search for 9000 and
you will be at the Service... tag.  Just scroll down to see the
Context and Resource tags to look at my setup.  (Also note that I am
trying to use GlobalNamingResources as seen at the top of the file.)

Thanks
Tony
= START SERVER.XML ==

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

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

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

Server port=8005 shutdown=SHUTDOWN debug=0


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

  !-- Global JNDI resources --
  GlobalNamingResources

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

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

EJB Compliance

2003-12-19 Thread Tony Colson


Is Tomcat 4.1 (or even 5.0) EJB Compliant?  If so, is it compliant with
the EJB 1.2 or 2.0 specification?

I can't seem to find appropriate documentation.  Also, in the Tomcat
docs under the Context element, it doesn't even mention the Ejb
element, but, of course, it is provided in the sample server.xml file.

Thanks
Tony


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



EJB Compliance

2003-12-18 Thread Tony Colson

This might be a re-post...sorry if it is...


Is Tomcat 4.1 (or even 5.0) EJB Compliant?  If so, is it compliant with
the EJB 1.1 or 2.0 specification?

I can't seem to find appropriate documentation.  Also, in the Tomcat
docs under the Context element, it doesn't even mention the Ejb
element, but, of course, it is provided in the sample server.xml file.

Thanks
Tony


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



RE: JNDI comp namespace - Tomcat Developers Please Read

2003-12-13 Thread Tony Colson
I narrowed down the problem a bit more.  I found 2 things which look
like they may be bugs.

1)  In the first Service tag I had a Engine tag and a Host tag as
seen below:

  Service name=XXX

Engine name=Standalone
defaultHost=localhost
debug=0

  Host name=localhost debug=0 appBase=webapps
   unpackWARs=true autoDeploy=false

Context.../Context

Context.../Context

With Host autoDeploy=true JNDI doesn't work.  When I set autoDeploy
to false JNDI works.

2) I had 2 Context tags in the above Service tag.  When I commented
out the 2nd Context tag JNDI worked.


 
Tony 

-Original Message-
From: Tony Colson [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 12, 2003 10:31 PM
To: 'Tomcat Users List'; [EMAIL PROTECTED]
Subject: RE: JNDI comp namespace - Tomcat Developers Please Read

As per my suspicion, multiple Service seemed to cause the problem as I
had the JNDI resources defined in the second Service.  Removing the
first service temporarily seemed to fix it.

Is this a bug in Tomcat?  Or is there something else I need to specify?

I will do some more testing to see if I can't narrow it down further.

 
Tony

-Original Message-
From: Tony Colson [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 12, 2003 1:23 PM
To: 'Tomcat Users List'; [EMAIL PROTECTED]
Subject: RE: JNDI comp namespace

Hi,

Thanks for the tip.  Actually, this is how my server.xml was set up
originally.  I changed the resource name to java:comp/env/jdbc/NNT under
the notion that it might create the comp namespace if it saw it in the
xml file.

I am beginning to wonder if the problem is related to the fact that I
have different ports running web apps?

Thanks,
 
Tony Colson
 
-Original Message-
From: Altankov Peter [mailto:[EMAIL PROTECTED] 
 Howdy,Try this setup in your context definition:
   Resource name=jdbc/NNT auth=Container
type=javax.sql.DataSource/

   ResourceParams name=jdbc/NNT .


After that in the source where u access it go for:
Context ictx = new InitialContext();
if (ictx == null) {
throw new Exception(Boom - No Context);
}
DtataSource ds = (DataSource) ictx.lookup(java:comp/env/jdbc/NNT);

I don't have the time to go into JNDI details, but im pretty sure that
wold work for you


-Original Message-
From: Tony Colson [mailto:[EMAIL PROTECTED] 
Sent: 12  2003 ?. 10:48
To: 'Tomcat Users List'
Subject: RE: JNDI comp namespace


As per a suggestion I am posting my server.xml file.

I have several applications on different ports.  I am trying to use JNDI
on the NNT application running on port 9000.  Do a search for 9000 and
you will be at the Service... tag.  Just scroll down to see the
Context and Resource tags to look at my setup.  (Also note that I am
trying to use GlobalNamingResources as seen at the top of the file.)

Thanks
Tony
= START SERVER.XML ==

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

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

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

Server port=8005 shutdown=SHUTDOWN debug=0


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

  !-- Global JNDI resources --
  GlobalNamingResources

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

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

!-- The PostgreSQL NNT database on horse --



  /GlobalNamingResources

  !-- A Service is a collection of one or more

jkinit.dll

2003-12-13 Thread Tony
Does anybody know where I can find the file JKINIT.DLL for download ?

Thanks.
tony.


JNDI comp namespace

2003-12-12 Thread Tony Colson
Dear Tomcat Users,

 

I am using Tomcat 4 and trying to use JNDI to connect to a data source
and environment variables.  I get the following when trying to access
the InitialContext via

DataSource ds = (DataSource)initialContext.lookup(
java:comp/env/jdbc/mydb );

 

javax.naming.NameNotFoundException: Name comp is not bound in this
Context

 

I have read all the documentation many times and cannot see what I am
doing wrong.  The server.xml seems to be fine; I can see the appropriate
context entries in the tomcat manager application.  But for some reason
the comp namespace does not seem to get set up; basically Tomcat doesn't
do what the documentation says it should.

 

Has anybody encountered this type of situation before and found a
solution?

 

Thanks

Tony



RE: JNDI comp namespace

2003-12-12 Thread Tony Colson
As per a suggestion I am posting my server.xml file.

I have several applications on different ports.  I am trying to use JNDI
on the NNT application running on port 9000.  Do a search for 9000 and
you will be at the Service... tag.  Just scroll down to see the
Context and Resource tags to look at my setup.  (Also note that I am
trying to use GlobalNamingResources as seen at the top of the file.)

Thanks
Tony
= START SERVER.XML ==

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

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

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

Server port=8005 shutdown=SHUTDOWN debug=0


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

  !-- Global JNDI resources --
  GlobalNamingResources

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

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

!-- The PostgreSQL NNT database on horse --



  /GlobalNamingResources

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

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

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

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

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

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

!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 --
Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=8080 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8443
   acceptCount=100 debug=0 connectionTimeout=2
   useURIValidationHack=false disableUploadTimeout=true
/
!-- Note : To disable connection timeouts, set connectionTimeout
value 
 to -1 --

!-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 --
!--
Connector className=org.apache.coyote.tomcat4.CoyoteConnector

RE: JNDI comp namespace

2003-12-12 Thread Tony Colson
Hi,

Thanks for the tip.  Actually, this is how my server.xml was set up
originally.  I changed the resource name to java:comp/env/jdbc/NNT under
the notion that it might create the comp namespace if it saw it in the
xml file.

I am beginning to wonder if the problem is related to the fact that I
have different ports running web apps?

Thanks,
 
Tony Colson
 
-Original Message-
From: Altankov Peter [mailto:[EMAIL PROTECTED] 
 Howdy,Try this setup in your context definition:
   Resource name=jdbc/NNT auth=Container
type=javax.sql.DataSource/

   ResourceParams name=jdbc/NNT .


After that in the source where u access it go for:
Context ictx = new InitialContext();
if (ictx == null) {
throw new Exception(Boom - No Context);
}
DtataSource ds = (DataSource) ictx.lookup(java:comp/env/jdbc/NNT);

I dont have the time to go into JNDI details, but im pretty sure that
wold work for you


-Original Message-
From: Tony Colson [mailto:[EMAIL PROTECTED] 
Sent: 12  2003 ?. 10:48
To: 'Tomcat Users List'
Subject: RE: JNDI comp namespace


As per a suggestion I am posting my server.xml file.

I have several applications on different ports.  I am trying to use JNDI
on the NNT application running on port 9000.  Do a search for 9000 and
you will be at the Service... tag.  Just scroll down to see the
Context and Resource tags to look at my setup.  (Also note that I am
trying to use GlobalNamingResources as seen at the top of the file.)

Thanks
Tony
= START SERVER.XML ==

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

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

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

Server port=8005 shutdown=SHUTDOWN debug=0


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

  !-- Global JNDI resources --
  GlobalNamingResources

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

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

!-- The PostgreSQL NNT database on horse --



  /GlobalNamingResources

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

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

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

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

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

RE: JNDI comp namespace - Tomcat Developers Please Read

2003-12-12 Thread Tony Colson
As per my suspicion, multiple Service seemed to cause the problem as I
had the JNDI resources defined in the second Service.  Removing the
first service temporarily seemed to fix it.

Is this a bug in Tomcat?  Or is there something else I need to specify?

I will do some more testing to see if I can't narrow it down further.

 
Tony

-Original Message-
From: Tony Colson [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 12, 2003 1:23 PM
To: 'Tomcat Users List'; [EMAIL PROTECTED]
Subject: RE: JNDI comp namespace

Hi,

Thanks for the tip.  Actually, this is how my server.xml was set up
originally.  I changed the resource name to java:comp/env/jdbc/NNT under
the notion that it might create the comp namespace if it saw it in the
xml file.

I am beginning to wonder if the problem is related to the fact that I
have different ports running web apps?

Thanks,
 
Tony Colson
 
-Original Message-
From: Altankov Peter [mailto:[EMAIL PROTECTED] 
 Howdy,Try this setup in your context definition:
   Resource name=jdbc/NNT auth=Container
type=javax.sql.DataSource/

   ResourceParams name=jdbc/NNT .


After that in the source where u access it go for:
Context ictx = new InitialContext();
if (ictx == null) {
throw new Exception(Boom - No Context);
}
DtataSource ds = (DataSource) ictx.lookup(java:comp/env/jdbc/NNT);

I don't have the time to go into JNDI details, but im pretty sure that
wold work for you


-Original Message-
From: Tony Colson [mailto:[EMAIL PROTECTED] 
Sent: 12  2003 ?. 10:48
To: 'Tomcat Users List'
Subject: RE: JNDI comp namespace


As per a suggestion I am posting my server.xml file.

I have several applications on different ports.  I am trying to use JNDI
on the NNT application running on port 9000.  Do a search for 9000 and
you will be at the Service... tag.  Just scroll down to see the
Context and Resource tags to look at my setup.  (Also note that I am
trying to use GlobalNamingResources as seen at the top of the file.)

Thanks
Tony
= START SERVER.XML ==

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

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

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

Server port=8005 shutdown=SHUTDOWN debug=0


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

  !-- Global JNDI resources --
  GlobalNamingResources

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

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

!-- The PostgreSQL NNT database on horse --



  /GlobalNamingResources

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

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

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

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

 By default, a non-SSL HTTP/1.1 Connector is established on port
8080.
 You can also enable an SSL HTTP/1.1 Connector on port 8443 by
 following the instructions below and uncommenting

Re: tomcat jni configuration...

2003-12-04 Thread Tony
No. When it starts, I see the following error:

.
org.apache.jk.server.JkMain newHandler
SEVERE: No class name for channelJni  channelJni
org.apache.jk.server.JkMain start
INFO: APR not loaded, disabling jni componentes: java.io.IOException:
java.lang.UnsatisfiedLinkError: no jnjni in java.library.path
.

What's that ?

thank u
any help.

- Original Message -
From: Wade Chandler [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Wednesday, December 03, 2003 3:05 PM
Subject: RE: tomcat jni configuration...


 Does your tomcat installation run fine?  i.e. in a standalone mode?

 Wade

 -Original Message-
 From: Tony [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, December 02, 2003 12:20 AM
 To: [EMAIL PROTECTED]
 Subject: tomcat jni configuration...


 hi,
 all


 i have a problem trying to configurate my apache 2.x with Tomcat 4 (jni
 using jk2)... everything looks fine when i initiate apache, but when i
 try to access the examples apps (localhost/examples) i got the following
 error on error.log (apache directory):

 Tue Dec 02 03:08:56 2003] [notice] Parent: Created child process 2480
 [Tue Dec 02 03:08:57 2003] [notice] Child 2480: Child process is running
 [Tue Dec 02 03:08:57 2003] [error] mod_jk child init 1 0 [Tue Dec 02
 03:08:57 2003] [notice] Child 2480: Acquired the start mutex. [Tue Dec
 02 03:08:57 2003] [notice] Child 2480: Starting 250 worker threads. [Tue
 Dec 02 03:15:16 2003] [error] channel_jni.open() Can't create java
 context [Tue Dec 02 03:15:16 2003] [error] channel_jni.send() no java
 context [Tue Dec 02 03:15:16 2003] [error] ajp13.service() Error
 forwarding ajp13:jni 1 0 [Tue Dec 02 03:15:16 2003] [error] lb.service()
 worker failed 12 for ajp13:jni [Tue Dec 02 03:15:16 2003] [error]
 lb_worker.service() all workers in error or disabled state [Tue Dec 02
 03:15:16 2003] [error] mod_jk.handler() Error connecting to tomcat
 12

 ...

 can anybody help me on this please ??

 my workers2.properties is as follows:



 [shm]
 file=C:/Apache2/logs/jk2.shm
 size=1048576


 [channel.jni:jni]


 [vm:]
 OPT=-Djava.class.path=C:/Tomcat/bin/tomcat-jni.jar;C:/Tomcat/server/lib/
 tomcat-jk2.jar;C:/Tomcat/server/lib/commons-logging.jar;C:/Tomcat/common
 /lib/commons-collections.jar;C:/Tomcat/common/lib/naming-common.jar;C:/T
 omcat/common/lib/naming-resources.jar;C:/Tomcat/server/lib/catalina.jar;
 C:/Tomcat/server/lib/commons-digester.jar;C:/TomCat/server/lib/commons-b
 eanutils.jar;C:/Tomcat/server/lib/mx4j-jmx.jar;C:/Tomcat/server/lib/comm
 ons-modeler.jar;C:/Tomcat/common/lib/servlet.jar;C:/Tomcat/server/lib/to
 mcat-http11.jar;C:/Tomcat/server/lib/servlets-invoker.jar;C:/Tomcat/serv
 er/lib/servlets-default.jar;C:/Tomcat/server/lib/servlets-webdav.jar;C:/
 Tomcat/server/lib/servlets-manager.jar;C:/Tomcat/server/lib/servlets-com
 mon.jar;c:/j2sdk/j2sdk1.4.2/lib/tools.jar;c:/tomcat/bin/BootStrap.jar;c:
 /tomcat/server/lib/tomcat-util.jar;c:/tomcat/server/lib/tomcat-coyote.ja
 r
 OPT=-Dtomcat.home=C:/Tomcat
 OPT=-Dcatalina.home=C:/Tomcat
 OPT=-Xmx128M


 [worker.jni:onStartup]
 class=org/apache/jk/apr/TomcatStarter
 ARG=start
 stdout=C:/apache2/logs/stdout.log
 stderr=C:/apache2/logs/stderr.log

 [worker.jni:onShutdown]
 class=org/apache/jk/apr/TomcatStarter
 ARG=stop

 [uri:/examples/*]

 [uri:/*]



 thanks for any help.
 []s.



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



  1   2   3   >