losing memory

2005-02-08 Thread Bedrijven.nl
Hi all,

The situation:

I have several webapplications running on Tomcat (4.1.27). I work with
virtual hosts in server.xml. So everything works fine and fast, that's not
the problem. But I see a behavior of the free memory allocation I can't
clearify. So what's the problem? when I start (or restart) tomcat I see (I
created a stats jsp) a free memory allocation of approx. 900 MB (1024 MB
allocated). During days, and weeks this free memory is decreasing. I looked
to the free memory (application friday restarted) and after a gc the free
memory is 760 MB. The applications still working very good and fast but it
seems that each day some free memory is lost??(memory leaking??) But why is
tomcat not allocated the memory back after a specific time (like a gc)? Who
can explain this behavior?

Thanx in advanced.

Maarten


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



Re: J2SE 5.0 redirects applets to java.com

2005-02-08 Thread David W. Brown
Hello Doug, thanks for the speedy reply. I am running TC 5.5. I really do not 
want to upgrade a lower revision with compat patches. The new Java Logo is not 
on the desktop. The Java Logo consumes the entire webpage and MSIE window fired 
up to navigate to an applet. I cannot block using the firewall because there is 
no URL or IP to reference unless I want to block the target URL or block 
myself. The redirection does not occur until I click the New Java Logo sunburst 
image (sorry I was not clear). The URL displayed in the address bar of the 
browser (MSIE) contains the target applet address I am trying to launch. 
All-the-while the MSIE browser is displaying the New Java Logo with no mouse 
options available to look at the source or do anything other than re-navigate 
or kill the window.

I will take a chance with a re-install and see what I can do in the Control 
Panel with changing options, parameters or whatever. Unless Control Panel 
options work there is definitely something wrong with the jdk.

Thanks,

David.

Parsons Technical Services wrote ..
 Which version of Tomcat did you download?
 
 If 5.0.x , it will run on 1.4.x jdk.
 
 If 5.5.x, it will run on 1.5 (or 5.0) JRE  and with the compat patch it
 will 
 also run on jdk 1.4.x
 
 I think the new 1.5 java has an update feature and some other things???
 built into it that has it phone home. The applet should still run. I have
 see the new logo on my desktop and applets run fine.
 
 You may try to block the app from getting to the Internet with a firewall.
 
 The 1.5 adds a Java setting console to Control Panel. It allows you to
 turn 
 off updates and make other changes.
 
 Doug
 
 
 - Original Message - 
 From: David W. Brown [EMAIL PROTECTED]
 To: tomcat-user@jakarta.apache.org
 Sent: Tuesday, February 08, 2005 12:47 AM
 Subject: J2SE 5.0 redirects applets to java.com
 
 
  Hello Tomcat users and gurus (Dev too). I have been using Tomcat and
 some 
  version of jdk for several years. Tomcat is my servlet server of choice
  mostly on Linux systems when my employers allow such things. I recently
  downloaded the lastest (yesterday) binary for Windows XP. Seeing that
 the 
  new Tomcat will only run under the new J2SE 5.0 I downloaded and 
  installed: jdk1.5.0_01 executable. After installation the old familiar
  Tomcat page came up as usual at: http://localhost:8080. What happened
 next 
  is for my part inexplicable. I lost all ability to run any type of applet
  except for: file://someapplet.html. Any applets using: HTTP:// where
  redirected to: http://java.com with the new Java Logo animated sunburst
 in 
  the middle of the webpage. All applets regardless of source: local or
  public IP where re-directed to: http://java.com. The remedy was to 
  uninstall J2SE 5.0. Needless to say I am severely hampered by not being
  able to run Tomcat because of a wayward jdk. I have sent this problem
 to 
  java.com contact email but so-far ignored by java.com. If anyone has
 any 
  comments, suggestions, remedies, rants or raves please reply.
 
  David Brown
  IT/COMMO
  KBR - USMI
  KIRKUK AB
  281-669-1655x102
 
  -
  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: jsp version of session variable access. Pointer to syntax wanted.

2005-02-08 Thread Pawson, David
 

-Original Message-
From: Tim Funk 

Via EL: (assuming sessionData.FILECOUNT = mySessionVariableName)

${sessionContext.mySessionVariableName}


Via snippet:
%=session.getAttribute(sessionData.FILECOUNT)%

In a jsp - the session variable is given to you as implicit 
variable.


Thanks Tim ( and fstmncn ).

Hadn't come across 'EL'.
So the choice is one from 3?
JSP 1.0 rev B.
JSP (is it 1.2 or 2.0?) (XML syntax)
and 
Expression Language.

so what's JSTL, 
http://jakarta.apache.org/taglibs/doc/standard-doc/standard/GettingStarted.html 
?
quoteJSTL encapsulates, as simple tags, core functionality common to many JSP 
applications./quote
Is that the full name of the EL?

http://java.sun.com/products/jsp/jstl/1.1/docs/tlddocs/index.html  seems
to be the spec. Is there a reasonable tutorial anywhere please?



Can they be mixed in a page?
  I *think* the JSP version is determined by the vsn of Tomcat,
which relates to the servlets version, but can I mix EL and JSP?

Is the relationship documented anywhere please?

regards DaveP



-- 
DISCLAIMER:

NOTICE: The information contained in this email and any attachments is 
confidential and may be privileged.  If you are not the intended 
recipient you should not use, disclose, distribute or copy any of the 
content of it or of any attachment; you are requested to notify the 
sender immediately of your receipt of the email and then to delete it 
and any attachments from your system.

RNIB endeavours to ensure that emails and any attachments generated by
its staff are free from viruses or other contaminants.  However, it 
cannot accept any responsibility for any  such which are transmitted.
We therefore recommend you scan all attachments.

Please note that the statements and views expressed in this email and 
any attachments are those of the author and do not necessarily represent
those of RNIB.

RNIB Registered Charity Number: 226227

Website: http://www.rnib.org.uk




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



url case sensitive

2005-02-08 Thread Oleg
I am running Windows2003, IIS6, Tomcat 5.0.28 connected through JSPISAPI.
The problem is only for Mac IE users when domain name (virtual) is
typed in using caps. For example www.mydomain.com works just fine, but
www.MyDomain.com is going to a site on the same server that is setup
as localhost path=.

I have endlessly searched for answers on past posts but couldnt come
up with anything. I dont think it has to do with IIS or JSPISAPI
connecter because going to MyDomain.com:8080 (Tomcat port) does the
same thing. And, again, this is only for Mac IE users. Any browser on
Windows has no problems, as well as Mozilla on Linux, Safari on Mac. I
Am really lost here, any ideas?

Thanks,
Oleg

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



RE : jaas with wlclient.jar returns no principals

2005-02-08 Thread LERBSCHER Jean-Pierre
Hi,
You have to :
configure your realm for example,
Realm className=org.apache.catalina.realm.JAASRealm 
appName=Sample   

userClassNames=weblogic.security.principal.WLSUserImpl   

roleClassNames=weblogic.security.principal.WLSGroupImpl 
debug=99/
in this case your can't access easily to subject
Configure your jaas config file.
app {
myLoginModule option debug=true params 
};
use the system property to declare jaas login file.
-Djava.security.auth.login.config=your path
Deploy your wlclient.jar in common/lib.
Configure your webapp to secure urls.
I think its all.


-Message d'origine-
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Envoyé : lundi 7 février 2005 16:18
À : tomcat-user@jakarta.apache.org
Objet : jaas with wlclient.jar returns no principals

We are developing a j2ee app using tomcat for the web container and 
weblogic for the ejb container. 
We are using jaas for authentication with weblogic. 
When our war is deployed on tomcat, using the wlclient.jar,  the jaas 
authentication returns no principals with the subject.  When we deploy our 
war on weblogic (or test a jaas client using weblogic.jar), the jaas 
authentication returns principlas.

What can we do to make the jaas authentication with a war deployed on 
tomcat work with weblogic?


Using WLClient.jar:
Subject is: Subject:
Private Credential: 
[EMAIL PROTECTED]
Private Credential: SubjectProxy[23994289]

Size of Principals: 0
Principals: 

Using Weblogic.jar:
Subject is: Subject:
Principal: mjLDAP
Private Credential: 
[EMAIL PROTECTED]
Private Credential: 
[EMAIL PROTECTED]

Size of Principals: 1
Principals: 
mjLDAP

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



RE: JTDS help

2005-02-08 Thread Allistair Crossley
Hi Charles,

I've just taken your code and run it through our Tomcat 5.5, jTDS, SQL Server 
2000 web application and it took approx. 0.5s to compile and subsequent 
requests were instantaneous  0.5s. 

I would look again at the issues I first noted, perhaps there is something you 
have missed.

Cheers, Allistair.

 -Original Message-
 From: Charles P. Killmer [mailto:[EMAIL PROTECTED]
 Sent: 07 February 2005 22:42
 To: Tomcat Users List
 Subject: RE: JTDS help
 
 
 When I strip the code to simply this,
 
 %@ page language=java import=java.sql.*%
 %
 Connection conn =
 DriverManager.getConnection(jdbc:jtds:sqlserver://*.*.*.*:143
 3/dbname;u
 ser=*;password=**);
 conn.close();
 %
 
 It still runs slowly.  And yes it is multiple refreshes.  
 
 I have tried to use connection pooling but have not been able 
 to get it
 working yet.  Also the thing that I run into with connection 
 pooling the
 inability to use the SQL Statement of select @@IDENTITY from table.
 With connection pooling, you run the risk of getting the ID 
 for a record
 that someone else inserted with the same connection.
 
 If connection pooling is the only option, I can work around 
 that issue.
 But it seems that if PHP, ASP, ASP.NET... Can access the database just
 fine without connection pooling, JSP should be able to as well.
 
 Any thoughts?
 Thanks for all your input.
 Charles
 
 -Original Message-
 From: Mario Winterer [mailto:[EMAIL PROTECTED] 
 Sent: Monday, February 07, 2005 2:43 PM
 To: Tomcat Users List
 Subject: Re: JTDS help
 
 I do not think, jsp compilation is the problem - well, the 
 first request
 will last long, but after the jsp is compiled, subsequent 
 calls will not
 be remarkable slower than executing pure compiled servlet code.
 (Charles, I hope you did not measure the time for the first 
 request only
 - which indeed includes compilation time, but for subsequent 
 calls too).
 So to me opening the connection is the major problem. Because the code
 itself contains html-output, I think using jsp is quite ok.
 The code would be much cleaner, if Charles used the JSTL tag-library:
 
 %@ page language=java%
 %@ taglib prefix=c uri=http://java.sun.com/jstl/core; % 
 %@ taglib
 prefix=sql uri=http://java.sun.com/jstl/sql; % sql:query
 sql=SELECT * FROM accounts var=accounts 
 dataSource=jndi/myDataSource/
 table
 c:forEach var=acc items=${accounts} tr tdc:out
 value=${acc.ID}//td tdc:out value=${acc.Name}//td /tr
 /c:forEach /table
 
 Best regards,
 Tex
 
 David Smith wrote:
 
  Ok. You're doing this in a jsp. That means Tomcat is:
 
  1) Compiling your jsp to a servlet class.
  2) Building a connection from scratch as opposed to picking up a 
  pooled connection
  3) Running the query.
 
  Of these, the first one is the most expensive operation followed by 
  two. If you want fast, try doing this with a pooled connection and 
  from compiled servlet code.
 
  --David
 
  Charles P. Killmer wrote:
 
  Network results
  Ping statistics for *.*.*.*:
  Packets: Sent = 140, Received = 140, Lost = 0 (0% loss), 
 Approximate 
  round trip times in milli-seconds:
  Minimum = 0ms, Maximum = 0ms, Average = 0ms Query Analyzer 
 returns 85
 
  rows in 0 seconds. I modified it to only return Name and ID and it 
  still runs slow. So it cant be row size, network latency, hardware 
  should be ruled out by the fact that it runs super fast 
 through query
 
  analyzer, and PHP and ASP.NET. Its only when I write the 
 code in JSP 
  for Tomcat that it slows down.
 
  Charles
 
 
  -Original Message-
  From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: 
  Monday, February 07, 2005 11:37 AM
  To: Tomcat Users List
  Subject: RE: JTDS help
 
  Hi,
 
  There's no real reason relating to Tomcat or jTDS that 
 this would run
 
  slow. You are more likely to find answers with your 
 hardware, network
 
  latency, database load or row size and other environmental factors.
 
  Allistair.
 
 
 
  -Original Message-
  From: Charles P. Killmer [mailto:[EMAIL PROTECTED]
  Sent: 07 February 2005 17:34
  To: Tomcat Users List
  Subject: JTDS help
 
 
  I am trying to get Tomcat talking to my database quickly. 
 This code 
  takes about 2-3 seconds to load. Anyone got any idea's why? Or if 
  you run this in your environment, how well does it run?
 
  %@ page language=java import=java.sql.*% % 
 Connection conn =
  DriverManager.getConnection(jdbc:jtds:sqlserver://*.*.*.*:143
  3/dbname;u
  ser=**;password=***);
 
  Statement stmt = conn.createStatement(ResultSet.TYPE_FORWARD_ONLY,
  ResultSet.CONCUR_READ_ONLY);
  ResultSet rs;
 
  rs = stmt.executeQuery(SELECT * FROM accounts);
 
  out.println(table);
  String name;
  String ID;
  while (rs.next()) {
  name = rs.getString(Name);
  ID = rs.getString(ID);
  out.println(trtd + ID + /tdtd+name+/td/tr ); }
 
  out.println( /table );
 
  conn.close();
  %
 
  This is just a JSP script, nothing is compiled. I know it 
 is better 
  to compile, but I am 

Re: JNDI without edit server.xml

2005-02-08 Thread Harry Mantheakis
I think your ResourceParams element is missing the 'factory' parameter.

Mine looks like this:


ResourceParams name=jdbc/myDatabase

parameter
namefactory/name
value
org.apache.commons.dbcp.BasicDataSourceFactory
/value
/parameter

parameter
namedriverClassName/name
value
org.postgresql.Driver
/value
/parameter

parameter
nameurl/name
value
jdbc:postgresql://localhost:5432/myDatabaseUsername
/value
/parameter

...

/ResourceParams


The first parameter ('factory') is missing from the example you posted.

HTH

Harry Mantheakis


 Hi all,
 I've got a problem.
 I'm using tomcat 5.0 with Oracle 9.2i. Now I want to upgrade tomcat to
 the newest version, but the same configuration doesn't work again.
 
 I used this solution for tomcat 5.0, because I don't whant to write
 anithing on tomcat server.xml file.
 
 To configure and use it I created ONLY this xml and put it on
 $TOMCAT_HOME/conf/catalina/localhost/strutsProva.xml file.
 
 Context displayName=Everithing managing system
docBase=D:\dev\strutsProva path=/strutsProva reloadable=true
  Resource name=jdbc/strutsProva auth=Container
  type=javax.sql.DataSource /
ResourceParams name=jdbc/strutsProva
  parameter
 namedriverClassName/name
 valueoracle.jdbc.OracleDriver/value
  /parameter
  parameter
 nameurl/name
 valuejdbc:oracle:thin:@localhost:1521:sweet/value
  /parameter
  parameter
 nameusername/name
 valuedasit/value
  /parameter
  parameter
 namepassword/name
 valuedasilab/value
  /parameter
  parameter
 namemaxActive/name
 value1/value
  /parameter
  parameter
 namemaxWait/name
 value5000/value
  /parameter
  parameter
 namemaxIdle/name
 value2/value
  /parameter
/ResourceParams
 /Context
 
 Anybody knows how to configure a jndi service on tomcat, without write
 anithing on server.xml file? I have to leave it clean 'cause I don't
 know who will install my application.
 
 Thanks all,
 
 Davide


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



Problem configure Datasource on Tomcat 4

2005-02-08 Thread Mario Bittermann
Hi,
I tried to configure datasource as described in the How-To manual on tomcat
4, but it doesn´t work.

I found two ways to define a datasource and work with it:

On tomcat 4.1.24:
1. Define context-entry in server.xml for my application with resource entry
for datasource.
2. Define resource-ref in web.xml of my application.
Not a good way, because i cannot change my datasource via admin-console. I
have to edit server.xml file with editor and my server have to be restarted.

On tomcat 4.1.31:
Define datasource via admin-console and then edit server.xml and generate
content-entry with resource-link entry.

Its also poor because i also have to restart my server.

Is there a way to define datasource via admin-console and generate an entry
in my web.xml to get a connect to datasource?

Mario

-- 
Lassen Sie Ihren Gedanken freien Lauf... z.B. per FreeSMS
GMX bietet bis zu 100 FreeSMS/Monat: http://www.gmx.net/de/go/mail

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



RE: JTDS help

2005-02-08 Thread Peter Crowther
 From: Charles P. Killmer [mailto:[EMAIL PROTECTED] 
 Also the thing that I run into with connection pooling the
 inability to use the SQL Statement of select @@IDENTITY from table.
 With connection pooling, you run the risk of getting the ID 
 for a record that someone else inserted with the same connection.

I'd assume that the insert statement and the check for @@identity are
done using the same acquired connection, though - otherwise this isn't
safe anyway.  If you're checking for errors from the insert, then you
can be certain that the @@identity is yours.  If you're *not* checking
for errors from the insert before using the value, I'd be a little
concerned about your code :-).

- Peter

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



Re: MemoryError: PermGen space after several redeployments

2005-02-08 Thread Peter Rossbach
Hello Matt,
I hope we have fix that with 5.5.8 see:
http://issues.apache.org/bugzilla/show_bug.cgi?id=26135

Workaround for memory leak when reloading Struts based web 
applications by clearing the bean instrospector cache of the JVM on 
classloader stop, submitted by Tobias Löfstrand (remm)

regards
Peter
Matthew Patton schrieb:
Hi,
I am using Tomcat 5.5.4 on Linux.  I am new to Tomcat and have a 
simple web application which I have been developing and testing in 
Tomcat. When I deploy, I create the war file, and copy it to Tomcat's 
webapps directory, at which point Tomcat automatically detects the new 
war file and deploys the web app.
However, after a dozen or so redeployments, I get the following in 
the midst of the deployment:

MemoryError: PermGen space
java.lang.OutOfMemoryError: PermGen space
When I stop Tomcat and start it up again, it works fine until I have 
redeployed a dozen times, at which point I get the same error.  Why is 
this happening?  Am I not redeploying properly?  It seems like a 
memory lead in Tomcat's deployer.

Thanks,
Matthew Patton
-
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: J2SE 5.0 redirects applets to java.com

2005-02-08 Thread Evgeny Gesin
David,

if you run applets under Windows, you may need to
completely remove all older Java Plug-ins to clean
Windows Registry and re-install latest Java Plug-in
again.

Than redirect to Sun web site should not occur.

Evgeny Gesin
http://www.javadesk.com
http://www.alltelescopes.com


--- David W. Brown [EMAIL PROTECTED] wrote:

 Hello Tomcat users and gurus (Dev too). I have been
 using Tomcat and some version of jdk for several
 years. Tomcat is my servlet server of choice mostly
 on Linux systems when my employers allow such
 things. I recently downloaded the lastest
 (yesterday) binary for Windows XP. Seeing that the
 new Tomcat will only run under the new J2SE 5.0 I
 downloaded and installed: jdk1.5.0_01 executable.
 After installation the old familiar Tomcat page came
 up as usual at: http://localhost:8080. What happened
 next is for my part inexplicable. I lost all ability
 to run any type of applet except for:
 file://someapplet.html. Any applets using: HTTP://
 where redirected to: http://java.com with the new
 Java Logo animated sunburst in the middle of the
 webpage. All applets regardless of source: local or
 public IP where re-directed to: http://java.com. The
 remedy was to uninstall J2SE 5.0. Needless to say I
 am severely hampered by not being able to run Tomcat
 because of a wayward jdk. I have sent this problem
 to java.com contact email but so-far ignored by
 java.com. If anyone has any comments, suggestions,
 remedies, rants or raves please reply.
 
 David Brown
 IT/COMMO
 KBR - USMI
 KIRKUK AB
 281-669-1655x102
 

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




__ 
Do you Yahoo!? 
Yahoo! Mail - Easier than ever with enhanced search. Learn more.
http://info.mail.yahoo.com/mail_250

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



Tomcat IE on a stand-alone PC

2005-02-08 Thread Clyde, Judy, Robert Kate Thomson
Hi,

I have Tomcat 4.1.12 installed on a stand-alone PC running w2000 without an 
internet connection. I can enter http://localhost:8080/index.jsp and get the 
Jakarta Project page displayed successfully. In fact, I have a DBMS installed 
and can access that via Tomcat.

What puzzles me is what settings should I have for IE5. On the project page 
there are the JSP samples, but when I try to click on a link for execute or 
source, a hand appears, with a small black circle  a diagonal line through it. 
Then I get a web page unavailable offline message. 

Regards,

Clyde Thomson

Re: Tomcat IE on a stand-alone PC

2005-02-08 Thread Jon Wingfield
I work with a similar setup when I'm at home. It should all be fine.
Check the File menu in IE. Does the Work Offline item have a tick next 
to it? If so, click it and then hover over the link again. Should be 
available.

Jon
Clyde, Judy, Robert  Kate Thomson wrote:
Hi,
I have Tomcat 4.1.12 installed on a stand-alone PC running w2000 without an 
internet connection. I can enter http://localhost:8080/index.jsp and get the 
Jakarta Project page displayed successfully. In fact, I have a DBMS installed 
and can access that via Tomcat.
What puzzles me is what settings should I have for IE5. On the project page there are the JSP samples, but when I try to click on a link for execute or source, a hand appears, with a small black circle  a diagonal line through it. Then I get a web page unavailable offline message. 

Regards,
Clyde Thomson

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


Re: MemoryError: PermGen space after several redeployments

2005-02-08 Thread Remy Maucherat
On Tue, 08 Feb 2005 11:26:50 +0100, Peter Rossbach [EMAIL PROTECTED] wrote:
 Hello Matt,
 
 I hope we have fix that with 5.5.8 see:
 
  http://issues.apache.org/bugzilla/show_bug.cgi?id=26135

You can use a context listener to clean that up.

The container can't always cleanup after the application, so if you
want to really use redeployment, then you need to make sure that
applications are reasonably well designed. Easy example of a leak that
can't be fixed by the container: put a JAR in common with a static
class keeping references to some of the application objects (ex: some
sort of server global cache), and don't clean these up.

-- 
x
Rémy Maucherat
Developer  Consultant
JBoss Group (Europe) SàRL
x

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



Re: jsp version of session variable access. Pointer to syntax wanted.

2005-02-08 Thread Tim Funk
EL first arrives as part of JSTL. Which was available in JSP 1.2. But using 
EL required that is was used in a tag.

With JSP 2.0 - EL can be used anywhere one a page. As an added bonus - you 
can pass expressions as values to your own custom tags and the container will 
translate the EL expression before the set...() of your tag is called.

-Tim
Pawson, David wrote:
 

-Original Message-
From: Tim Funk 

Via EL: (assuming sessionData.FILECOUNT = mySessionVariableName)

${sessionContext.mySessionVariableName}


Via snippet:
%=session.getAttribute(sessionData.FILECOUNT)%

In a jsp - the session variable is given to you as implicit 
variable.


Thanks Tim ( and fstmncn ).
Hadn't come across 'EL'.
So the choice is one from 3?
JSP 1.0 rev B.
JSP (is it 1.2 or 2.0?) (XML syntax)
and 
Expression Language.

so what's JSTL, 
http://jakarta.apache.org/taglibs/doc/standard-doc/standard/GettingStarted.html 
?
quoteJSTL encapsulates, as simple tags, core functionality common to many JSP 
applications./quote
Is that the full name of the EL?
http://java.sun.com/products/jsp/jstl/1.1/docs/tlddocs/index.html  seems
to be the spec. Is there a reasonable tutorial anywhere please?

Can they be mixed in a page?
  I *think* the JSP version is determined by the vsn of Tomcat,
which relates to the servlets version, but can I mix EL and JSP?
Is the relationship documented anywhere please?
regards DaveP

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


RE: jsp version of session variable access. Pointer to syntax wanted.

2005-02-08 Thread Pawson, David
 

-Original Message-
From: Tim Funk

EL first arrives as part of JSTL. Which was available in 
JSP 1.2. But using EL required that is was used in a tag.

With JSP 2.0 - EL can be used anywhere one a page. 

Worthy of note! Thanks Tim.
Do you know of any web pages that put this mix into context please?
Sun don't do very well on this one.
regards DaveP

-- 
DISCLAIMER:

NOTICE: The information contained in this email and any attachments is 
confidential and may be privileged.  If you are not the intended 
recipient you should not use, disclose, distribute or copy any of the 
content of it or of any attachment; you are requested to notify the 
sender immediately of your receipt of the email and then to delete it 
and any attachments from your system.

RNIB endeavours to ensure that emails and any attachments generated by
its staff are free from viruses or other contaminants.  However, it 
cannot accept any responsibility for any  such which are transmitted.
We therefore recommend you scan all attachments.

Please note that the statements and views expressed in this email and 
any attachments are those of the author and do not necessarily represent
those of RNIB.

RNIB Registered Charity Number: 226227

Website: http://www.rnib.org.uk




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



Re: jsp version of session variable access. Pointer to syntax wanted.

2005-02-08 Thread Tim Funk
The JSP examples from a default tomcat install might have some.
-Tim
Pawson, David wrote:
 

-Original Message-
From: Tim Funk

EL first arrives as part of JSTL. Which was available in 
JSP 1.2. But using EL required that is was used in a tag.

With JSP 2.0 - EL can be used anywhere one a page. 

Worthy of note! Thanks Tim.
Do you know of any web pages that put this mix into context please?
Sun don't do very well on this one.
regards DaveP
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Accessing static variable from different webapps

2005-02-08 Thread Anshaj Mathur
Thanks a lot for helping me understand all this concepts about
classloading. I found a pretty good article on class loading in java.
http://www.onjava.com/pub/a/onjava/2005/01/26/classloading.html

Thanks,
Anshaj


On Thu, 03 Feb 2005 22:25:53 +0100, Mario Winterer
[EMAIL PROTECTED] wrote:
 For more information on tomcat's classloading concept have a look at:
 http://jakarta.apache.org/tomcat/tomcat-5.5-doc/class-loader-howto.html
 
 As you can see there, Tomcat instantiates a classloader for each web
 application. So if you put a class - let's say Global - inside the
 WEB-INF/classes directory of each of two of your web applications, it
 will be loaded twice. As a fact, a static variable of the Global class
 - let's say Global.myVar - will exist twice too!
 But if you put your Global class into the %TOMCAT_HOME%/shared/classes
 directory ONLY (important: you must remove all occurences of your
 Global class from the webapps-classes directories to make this work!),
 it will be loaded by the shared-classloader. Because of the fact that
 the shared classloader is the parent classloader of all
 webapp-classloaders, every web-application can access the classes loaded
 by the shared classloader.
 
 But holding resources in static variables inside the shared/classes
 directory there is not recommmended! Better add a JNDI-resource to your
 Tomcat's JNDI-context! This is done in server.xml inside the
 GlobalNamingResources-element* *(see
 http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/globalresources.html).
 
 Best regards,
   Tex
 
 
 Thanks for your reply. I think JVM rules said that there should be 1
 reference per JVM for a static variable. Tomcat class loader creates
 separate instance of a static variable for each webapps. I am just
 trying to understand how class loader works in tomcat.
 
 Thanks,
 Anshaj
 
 
 On Thu, 03 Feb 2005 06:41:29 -0500, Tim Funk [EMAIL PROTECTED] wrote:
 
 
 Put the class in the common or shared classloader.
 
 -Tim
 
 Anshaj Mathur wrote:
 
 
 
 Dear group,
 
  I have public class which contains a static
 variable type integer. I am running different webapps
 inside single instance of tomcat. I initiated this
 class in different webapps. I increased the count from
 a webapp and tried to see it from different webapp. I
 found that count was not increased in other webapp. It
 was showing the original count.
 Am I braking any laws of tomcat security.
 
 
 
 -
 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]
 
 


-- 
v1.2a r TW 0/0/ FD + 0 DSotM 3 100 21.3% 3jan5

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



RE: Online docs, was jsp version of session variable access.

2005-02-08 Thread Pawson, David
 

-Original Message-
From: Tim Funk 

The JSP examples from a default tomcat install might have some.

Some, and leads into Sun documentation, which often dates from 2000.

From an hours googling:

regards DaveP


DATE: 2005-02-08T12:39:27Z

KEYWORDS:jsp, EL, 


Tomcat 5.0 uses the Jasper 2 JSP Engine to implement the JavaServer
Pages 2.0 specification.


* Documentation


-http://java.sun.com/products/jsp/docs.html  Includes quick reference cards.

-http://java.sun.com/products/jsp/syntax/1.0/tags.html 1.0 Syntax reference


-http://www.apl.jhu.edu/%7Ehall/java/Servlet-Tutorial/  Tutorial

-http://java.sun.com/products/jsp/syntax/1.2/syntaxref12.html  1.2 syntax 
reference

-http://java.sun.com/products/jsp/syntax/2.0/syntaxref20.html  2.0 syntax 
reference.


** Intro/training course documentation.

Objectives

By the end of this module you will be able to:

 Manage session-related information from JSP
 Communicate between JSP pages
 Process forms with JSP

-http://java.sun.com/developer/onlineTraining/JSPIntro/contents.html

-- 
DISCLAIMER:

NOTICE: The information contained in this email and any attachments is 
confidential and may be privileged.  If you are not the intended 
recipient you should not use, disclose, distribute or copy any of the 
content of it or of any attachment; you are requested to notify the 
sender immediately of your receipt of the email and then to delete it 
and any attachments from your system.

RNIB endeavours to ensure that emails and any attachments generated by
its staff are free from viruses or other contaminants.  However, it 
cannot accept any responsibility for any  such which are transmitted.
We therefore recommend you scan all attachments.

Please note that the statements and views expressed in this email and 
any attachments are those of the author and do not necessarily represent
those of RNIB.

RNIB Registered Charity Number: 226227

Website: http://www.rnib.org.uk




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



Security Questions

2005-02-08 Thread Luke
Hello;

When creating a realm does the table name have to be 'user'?

 Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
driverName=org.gjt.mm.mysql.Driver

connectionURL=jdbc:mysql://localhost/tomcatusers?user=dbUseramp;password=d
bUser
userTable=tomcatusers userNameCol=user_name
userCredCol=user_pass userRoleTable=user_roles
roleNameCol=role_name /

With this realm I get a 403, but no login prompt. Before I go through with
recreating the DB and the users I wanted to be sure this was the problem.

Also,  the web.xml in my projects WEB-INF contains the following:

!-- security --
security-constraint
web-resource-collection
web-resource-namefw/web-resource-name
url-pattern*.do/url-pattern
http-methodPOST/http-method
http-methodGET/http-method
/web-resource-collection
auth-constraint
role-nameadmin/role-name
/auth-constraint
login-config
auth-methodBASIC/auth-method
/login-config
/security-constraint

Right now I don't want any one to use a servlet that is not authorized
first. What I was expecting was a standard login prompt with the basic (just
getting a 403 as discribed above). However, once I got BASIC working I
wanted to shift to a custom form login:

login-config
auth-methodFORM/auth-method
form-login-page/loginpage.html/form-login-page
form-error-page/loginpage.html/form-error-page
/login-config

Can I do this with the url-pattern of *.do? Or do I need to put an actual
directory? The reason I ask is how will Tomcat find the login pages?

My last question is about this:

user-data-constraint
transport-guaranteeCONFIDENTIAL/transport-guarantee
/user-data-constraint

Is it a good idea to have this? I understand it encrypts all data that is
sent to the server. It seems to me that no system should be without. But I
wanted to check with someone more experienced first whether there were
concerns or limitations I am unaware off.

Thanks,

Luke



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



icon, EJB's and Tomcat?, Login-valves, Realms with Oracle.. and other silly questions

2005-02-08 Thread Ben Bookey

Dear Tomcat users,

1. what exactly should the icon tags inside the web.xml do ? Is it simply
a
central reference for components within the webapp or does it have more
powerful
implications. i.e. the small icon will be used as an favicon type icon,
whenever a user
bookmarks a page from the webapp.

2. If I was want to make an App which levers EJB, what do *you* tomcat-users
use
as an EJB container normally ? I know there is Orion which is free!

3. to what extent is EJB supported within Tomcat 4 and 5? (i have seen some
references
to an ejb in the /examples).

4. Does any have a sample of a Tomcat valve which I could use, which causes
a servlet to be processed after each time a user successfully logs in.

5. Currently we are using a form based realm, with an oracle database. We
create a datasource
inside of the server.xml using the commons dbcp package from apache.  This
works fine with Tomcat.
Just for fun, we ported the webapp to an OracleApplication server 10g, where
the security
system failed. Am i right in thinking that we just need to copy the Oracle
DataSourceFactory class inside
of the server.xml (the database and hence parameters are the same)?,  or
could it more complicated ?


regards,

Ben


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



Content-Type removed from the Http Response when file is accessed through Tomcat Connector

2005-02-08 Thread Ritu Kedia
Hello All,

I am facing a problem with the Content-Type getting removed from the Http
Response when accessing a binary file packaged in a WAR file through a Web
Server (IIS 5.0 or Apache 2.0).

My web.xml has the following mime-type mapping:
mime-mapping
extensionmsi/extension
mime-typeapplication/x-msi/mime-type
/mime-mapping

I have a .msi file packaged inside a WAR which is deployed on JBoss-Tomcat
(Tomcat-4.1.x). When I access this msi file through IE browser the browser
reads the contents of the msi and displays in the borwser instead of
prompting for saving this file.

I have tested accessing this file directly from the port 8080, which works
fine. It appears that Tomcat connector which is intercepting the requests to
and from the Web Server is somehow removing the Content-Type from the Http
Response. 

I have tested fronting Tomcat with IIS 5.0 as well as Apache 2.0. The
problem persists on both configurations. 

Could anyone please point out what am I doing wrong or whether this is a
known issue?

Thanks,
Ritu


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



RE: Content-Type removed from the Http Response when file is accessed through Tomcat Connector

2005-02-08 Thread Bedrijven.nl
maybe security (settings) of ie??

maarten

-Oorspronkelijk bericht-
Van: Ritu Kedia [mailto:[EMAIL PROTECTED]
Verzonden: Tuesday, February 08, 2005 2:51 PM
Aan: 'tomcat-user@jakarta.apache.org'
Onderwerp: Content-Type removed from the Http Response when file is
accessed through Tomcat Connector


Hello All,

I am facing a problem with the Content-Type getting removed from the Http
Response when accessing a binary file packaged in a WAR file through a Web
Server (IIS 5.0 or Apache 2.0).

My web.xml has the following mime-type mapping:
mime-mapping
extensionmsi/extension
mime-typeapplication/x-msi/mime-type
/mime-mapping

I have a .msi file packaged inside a WAR which is deployed on JBoss-Tomcat
(Tomcat-4.1.x). When I access this msi file through IE browser the browser
reads the contents of the msi and displays in the borwser instead of
prompting for saving this file.

I have tested accessing this file directly from the port 8080, which works
fine. It appears that Tomcat connector which is intercepting the requests to
and from the Web Server is somehow removing the Content-Type from the Http
Response.

I have tested fronting Tomcat with IIS 5.0 as well as Apache 2.0. The
problem persists on both configurations.

Could anyone please point out what am I doing wrong or whether this is a
known issue?

Thanks,
Ritu


-
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: JNDI without edit server.xml

2005-02-08 Thread Davide Gurgone
Harry Mantheakis wrote:
I think your ResourceParams element is missing the 'factory' parameter.
[CUT]
Thank you 4 the response...
I try it and now the error is changed:
java.lang.NoSuchMethodError: 
org.apache.naming.resources.ProxyDirContext.lookupCache(Ljava/lang/String;)Lorg/apache/nami
ng/resources/CacheEntry;
at 
org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.java:663)

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


RE: JTDS help

2005-02-08 Thread Charles P. Killmer
Well I must have missed something because it isn't working correctly.
;)  Were you using connection pooling in your test?  Perhaps I have
something messed up in a config file?  Or installed jTDS incorrectly?

Thanks for all your help.
Charles 

-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 08, 2005 3:17 AM
To: Tomcat Users List
Subject: RE: JTDS help

Hi Charles,

I've just taken your code and run it through our Tomcat 5.5, jTDS, SQL
Server 2000 web application and it took approx. 0.5s to compile and
subsequent requests were instantaneous  0.5s. 

I would look again at the issues I first noted, perhaps there is
something you have missed.

Cheers, Allistair.

 -Original Message-
 From: Charles P. Killmer [mailto:[EMAIL PROTECTED]
 Sent: 07 February 2005 22:42
 To: Tomcat Users List
 Subject: RE: JTDS help
 
 
 When I strip the code to simply this,
 
 %@ page language=java import=java.sql.*% % Connection conn =
 DriverManager.getConnection(jdbc:jtds:sqlserver://*.*.*.*:143
 3/dbname;u
 ser=*;password=**);
 conn.close();
 %
 
 It still runs slowly.  And yes it is multiple refreshes.  
 
 I have tried to use connection pooling but have not been able to get 
 it working yet.  Also the thing that I run into with connection 
 pooling the inability to use the SQL Statement of select @@IDENTITY 
 from table.
 With connection pooling, you run the risk of getting the ID for a 
 record that someone else inserted with the same connection.
 
 If connection pooling is the only option, I can work around that 
 issue.
 But it seems that if PHP, ASP, ASP.NET... Can access the database just

 fine without connection pooling, JSP should be able to as well.
 
 Any thoughts?
 Thanks for all your input.
 Charles
 
 -Original Message-
 From: Mario Winterer [mailto:[EMAIL PROTECTED]
 Sent: Monday, February 07, 2005 2:43 PM
 To: Tomcat Users List
 Subject: Re: JTDS help
 
 I do not think, jsp compilation is the problem - well, the first 
 request will last long, but after the jsp is compiled, subsequent 
 calls will not be remarkable slower than executing pure compiled 
 servlet code.
 (Charles, I hope you did not measure the time for the first request 
 only
 - which indeed includes compilation time, but for subsequent calls 
 too).
 So to me opening the connection is the major problem. Because the code

 itself contains html-output, I think using jsp is quite ok.
 The code would be much cleaner, if Charles used the JSTL tag-library:
 
 %@ page language=java%
 %@ taglib prefix=c uri=http://java.sun.com/jstl/core; % %@ 
 taglib prefix=sql uri=http://java.sun.com/jstl/sql; % sql:query 
 sql=SELECT * FROM accounts var=accounts
 dataSource=jndi/myDataSource/
 table
 c:forEach var=acc items=${accounts} tr tdc:out 
 value=${acc.ID}//td tdc:out value=${acc.Name}//td /tr 
 /c:forEach /table
 
 Best regards,
 Tex
 
 David Smith wrote:
 
  Ok. You're doing this in a jsp. That means Tomcat is:
 
  1) Compiling your jsp to a servlet class.
  2) Building a connection from scratch as opposed to picking up a 
  pooled connection
  3) Running the query.
 
  Of these, the first one is the most expensive operation followed by 
  two. If you want fast, try doing this with a pooled connection and 
  from compiled servlet code.
 
  --David
 
  Charles P. Killmer wrote:
 
  Network results
  Ping statistics for *.*.*.*:
  Packets: Sent = 140, Received = 140, Lost = 0 (0% loss),
 Approximate
  round trip times in milli-seconds:
  Minimum = 0ms, Maximum = 0ms, Average = 0ms Query Analyzer
 returns 85
 
  rows in 0 seconds. I modified it to only return Name and ID and it 
  still runs slow. So it cant be row size, network latency, hardware 
  should be ruled out by the fact that it runs super fast
 through query
 
  analyzer, and PHP and ASP.NET. Its only when I write the
 code in JSP
  for Tomcat that it slows down.
 
  Charles
 
 
  -Original Message-
  From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: 
  Monday, February 07, 2005 11:37 AM
  To: Tomcat Users List
  Subject: RE: JTDS help
 
  Hi,
 
  There's no real reason relating to Tomcat or jTDS that
 this would run
 
  slow. You are more likely to find answers with your
 hardware, network
 
  latency, database load or row size and other environmental factors.
 
  Allistair.
 
 
 
  -Original Message-
  From: Charles P. Killmer [mailto:[EMAIL PROTECTED]
  Sent: 07 February 2005 17:34
  To: Tomcat Users List
  Subject: JTDS help
 
 
  I am trying to get Tomcat talking to my database quickly. 
 This code
  takes about 2-3 seconds to load. Anyone got any idea's why? Or if 
  you run this in your environment, how well does it run?
 
  %@ page language=java import=java.sql.*% %
 Connection conn =
  DriverManager.getConnection(jdbc:jtds:sqlserver://*.*.*.*:143
  3/dbname;u
  ser=**;password=***);
 
  Statement stmt = conn.createStatement(ResultSet.TYPE_FORWARD_ONLY,
  

RE: JTDS help

2005-02-08 Thread Allistair Crossley
Hi,

No it was a totally raw test of your code which by virtue of using 
DriverManager does not use connection pooling even if I do have it enabled in 
my web app.

jTDS installation is simply adding the JAR to tomcat/common/lib

Are you running Tomcat on the same server as the database?

Config file won't have anything to do with this. I am certain it is 
environmental.

Ali.

 -Original Message-
 From: Charles P. Killmer [mailto:[EMAIL PROTECTED]
 Sent: 08 February 2005 14:41
 To: Tomcat Users List
 Subject: RE: JTDS help
 
 
 Well I must have missed something because it isn't working correctly.
 ;)  Were you using connection pooling in your test?  Perhaps I have
 something messed up in a config file?  Or installed jTDS incorrectly?
 
 Thanks for all your help.
 Charles 
 
 -Original Message-
 From: Allistair Crossley [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, February 08, 2005 3:17 AM
 To: Tomcat Users List
 Subject: RE: JTDS help
 
 Hi Charles,
 
 I've just taken your code and run it through our Tomcat 5.5, jTDS, SQL
 Server 2000 web application and it took approx. 0.5s to compile and
 subsequent requests were instantaneous  0.5s. 
 
 I would look again at the issues I first noted, perhaps there is
 something you have missed.
 
 Cheers, Allistair.
 
  -Original Message-
  From: Charles P. Killmer [mailto:[EMAIL PROTECTED]
  Sent: 07 February 2005 22:42
  To: Tomcat Users List
  Subject: RE: JTDS help
  
  
  When I strip the code to simply this,
  
  %@ page language=java import=java.sql.*% % Connection conn =
  DriverManager.getConnection(jdbc:jtds:sqlserver://*.*.*.*:143
  3/dbname;u
  ser=*;password=**);
  conn.close();
  %
  
  It still runs slowly.  And yes it is multiple refreshes.  
  
  I have tried to use connection pooling but have not been 
 able to get 
  it working yet.  Also the thing that I run into with connection 
  pooling the inability to use the SQL Statement of select 
 @@IDENTITY 
  from table.
  With connection pooling, you run the risk of getting the ID for a 
  record that someone else inserted with the same connection.
  
  If connection pooling is the only option, I can work around that 
  issue.
  But it seems that if PHP, ASP, ASP.NET... Can access the 
 database just
 
  fine without connection pooling, JSP should be able to as well.
  
  Any thoughts?
  Thanks for all your input.
  Charles
  
  -Original Message-
  From: Mario Winterer [mailto:[EMAIL PROTECTED]
  Sent: Monday, February 07, 2005 2:43 PM
  To: Tomcat Users List
  Subject: Re: JTDS help
  
  I do not think, jsp compilation is the problem - well, the first 
  request will last long, but after the jsp is compiled, subsequent 
  calls will not be remarkable slower than executing pure compiled 
  servlet code.
  (Charles, I hope you did not measure the time for the first request 
  only
  - which indeed includes compilation time, but for subsequent calls 
  too).
  So to me opening the connection is the major problem. 
 Because the code
 
  itself contains html-output, I think using jsp is quite ok.
  The code would be much cleaner, if Charles used the JSTL 
 tag-library:
  
  %@ page language=java%
  %@ taglib prefix=c uri=http://java.sun.com/jstl/core; % %@ 
  taglib prefix=sql uri=http://java.sun.com/jstl/sql; % 
 sql:query 
  sql=SELECT * FROM accounts var=accounts
  dataSource=jndi/myDataSource/
  table
  c:forEach var=acc items=${accounts} tr tdc:out 
  value=${acc.ID}//td tdc:out 
 value=${acc.Name}//td /tr 
  /c:forEach /table
  
  Best regards,
  Tex
  
  David Smith wrote:
  
   Ok. You're doing this in a jsp. That means Tomcat is:
  
   1) Compiling your jsp to a servlet class.
   2) Building a connection from scratch as opposed to picking up a 
   pooled connection
   3) Running the query.
  
   Of these, the first one is the most expensive operation 
 followed by 
   two. If you want fast, try doing this with a pooled 
 connection and 
   from compiled servlet code.
  
   --David
  
   Charles P. Killmer wrote:
  
   Network results
   Ping statistics for *.*.*.*:
   Packets: Sent = 140, Received = 140, Lost = 0 (0% loss),
  Approximate
   round trip times in milli-seconds:
   Minimum = 0ms, Maximum = 0ms, Average = 0ms Query Analyzer
  returns 85
  
   rows in 0 seconds. I modified it to only return Name and 
 ID and it 
   still runs slow. So it cant be row size, network 
 latency, hardware 
   should be ruled out by the fact that it runs super fast
  through query
  
   analyzer, and PHP and ASP.NET. Its only when I write the
  code in JSP
   for Tomcat that it slows down.
  
   Charles
  
  
   -Original Message-
   From: Allistair Crossley 
 [mailto:[EMAIL PROTECTED] Sent: 
   Monday, February 07, 2005 11:37 AM
   To: Tomcat Users List
   Subject: RE: JTDS help
  
   Hi,
  
   There's no real reason relating to Tomcat or jTDS that
  this would run
  
   slow. You are more likely to find answers with your
  hardware, network
  
   latency, 

Does CoyoteConnector's connectionLinger option work?

2005-02-08 Thread Rodrigo Ruiz
Hi all,
I am having problems with the configuration of a Tomcat 4.1.27 server on 
a Windows XP box.

Although I use the following connector configuration in my server.xml file:
Connector className='org.apache.coyote.tomcat4.CoyoteConnector'
  acceptCount='10'
  connectionLinger='-1'
  connectionTimeout='5000'
  debug='0'
  enableLookups='false'
  maxProcessors='20'
  minProcessors='5'
  port='8080'
  tcpNoDelay='true'
  useURIValidationHack='false'/
I am getting lots of TIME_WAIT sockets in my computer. The client app is 
located in a remote machine, and since I disabled the SO_LINGER option 
on it, I stopped to get TIME_WAITs in the client side.

Setting the connectionLinger attribute to -1 should have made accept 
sockets to close inmediately without passing by this state (at least, 
that is the behaviour I am getting in the client side).

Is there something wrong in my statements, or I have found a bug?
Thanks in advance,
Rodrigo Ruiz

--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.8.6 - Release Date: 07/02/2005
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


HTTPconnector problem

2005-02-08 Thread reynir
Hi,
I'm using the following setup in my server.xml (4.1. of tomcat).
   Connector className=org.apache.coyote.tomcat4.CoyoteConnector
  port=9099 minProcessors=5 maxProcessors=75
  tomcatAuthentication=false
  enableLookups=true redirectPort=8443
  acceptCount=100 debug=0 connectionTimeout=2
  useURIValidationHack=false disableUploadTimeout=true
   secure=true /
and when I run the following jsp code :
%
   out.write(bris secure : + request.isSecure());
   out.write(brport : + request.getServerPort());
%
I get the following results :
is secure : false
port : 9099
this proves that I am accessing the correct port, but why is secure 
false ? is this  a bug that has been fixed ?
thanx
-reynir



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


RE: JTDS help

2005-02-08 Thread Charles P. Killmer
I don't mean to be contrary, I am just trying to pin this down.  The
database and tomcat server are only separated by a 10/100 switch.  I am
going to run filemon and watch for access denied messages, then regmon
and watch for similar things.  The network is very fast, the db server
is not being used by anyone else.  It seems to me that if it were
environmental, it would affect these other programming languages the
same.  I checked and the jtds.jar file is in tomcat\common\lib.  

Any other thoughts while you wait for the results from filemon and
regmon?

Thank you
Charles

-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 08, 2005 8:44 AM
To: Tomcat Users List
Subject: RE: JTDS help

Hi,

No it was a totally raw test of your code which by virtue of using
DriverManager does not use connection pooling even if I do have it
enabled in my web app.

jTDS installation is simply adding the JAR to tomcat/common/lib

Are you running Tomcat on the same server as the database?

Config file won't have anything to do with this. I am certain it is
environmental.

Ali.

 -Original Message-
 From: Charles P. Killmer [mailto:[EMAIL PROTECTED]
 Sent: 08 February 2005 14:41
 To: Tomcat Users List
 Subject: RE: JTDS help
 
 
 Well I must have missed something because it isn't working correctly.
 ;)  Were you using connection pooling in your test?  Perhaps I have 
 something messed up in a config file?  Or installed jTDS incorrectly?
 
 Thanks for all your help.
 Charles
 
 -Original Message-
 From: Allistair Crossley [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, February 08, 2005 3:17 AM
 To: Tomcat Users List
 Subject: RE: JTDS help
 
 Hi Charles,
 
 I've just taken your code and run it through our Tomcat 5.5, jTDS, SQL

 Server 2000 web application and it took approx. 0.5s to compile and 
 subsequent requests were instantaneous  0.5s.
 
 I would look again at the issues I first noted, perhaps there is 
 something you have missed.
 
 Cheers, Allistair.
 
  -Original Message-
  From: Charles P. Killmer [mailto:[EMAIL PROTECTED]
  Sent: 07 February 2005 22:42
  To: Tomcat Users List
  Subject: RE: JTDS help
  
  
  When I strip the code to simply this,
  
  %@ page language=java import=java.sql.*% % Connection conn =
  DriverManager.getConnection(jdbc:jtds:sqlserver://*.*.*.*:143
  3/dbname;u
  ser=*;password=**);
  conn.close();
  %
  
  It still runs slowly.  And yes it is multiple refreshes.  
  
  I have tried to use connection pooling but have not been
 able to get
  it working yet.  Also the thing that I run into with connection 
  pooling the inability to use the SQL Statement of select
 @@IDENTITY
  from table.
  With connection pooling, you run the risk of getting the ID for a 
  record that someone else inserted with the same connection.
  
  If connection pooling is the only option, I can work around that 
  issue.
  But it seems that if PHP, ASP, ASP.NET... Can access the
 database just
 
  fine without connection pooling, JSP should be able to as well.
  
  Any thoughts?
  Thanks for all your input.
  Charles
  
  -Original Message-
  From: Mario Winterer [mailto:[EMAIL PROTECTED]
  Sent: Monday, February 07, 2005 2:43 PM
  To: Tomcat Users List
  Subject: Re: JTDS help
  
  I do not think, jsp compilation is the problem - well, the first 
  request will last long, but after the jsp is compiled, subsequent 
  calls will not be remarkable slower than executing pure compiled 
  servlet code.
  (Charles, I hope you did not measure the time for the first request 
  only
  - which indeed includes compilation time, but for subsequent calls 
  too).
  So to me opening the connection is the major problem. 
 Because the code
 
  itself contains html-output, I think using jsp is quite ok.
  The code would be much cleaner, if Charles used the JSTL
 tag-library:
  
  %@ page language=java%
  %@ taglib prefix=c uri=http://java.sun.com/jstl/core; % %@ 
  taglib prefix=sql uri=http://java.sun.com/jstl/sql; %
 sql:query
  sql=SELECT * FROM accounts var=accounts
  dataSource=jndi/myDataSource/
  table
  c:forEach var=acc items=${accounts} tr tdc:out 
  value=${acc.ID}//td tdc:out
 value=${acc.Name}//td /tr
  /c:forEach /table
  
  Best regards,
  Tex
  
  David Smith wrote:
  
   Ok. You're doing this in a jsp. That means Tomcat is:
  
   1) Compiling your jsp to a servlet class.
   2) Building a connection from scratch as opposed to picking up a 
   pooled connection
   3) Running the query.
  
   Of these, the first one is the most expensive operation
 followed by
   two. If you want fast, try doing this with a pooled
 connection and
   from compiled servlet code.
  
   --David
  
   Charles P. Killmer wrote:
  
   Network results
   Ping statistics for *.*.*.*:
   Packets: Sent = 140, Received = 140, Lost = 0 (0% loss),
  Approximate
   round trip times in milli-seconds:
   Minimum = 0ms, Maximum = 0ms, Average = 0ms Query Analyzer
  

RE: JTDS help

2005-02-08 Thread Allistair Crossley
Hey Charles,

I'm sure it's quite frustrating, but I've already shown that your precise code 
runs way faster than your original statistics, and that was only on a modest 
box. It serves no purpose therefore to believe it could be the language of 
choice, because I cannot replicate your speed issue. See what your monitoring 
brings back. What kind of setup are you running?

Allistair.

 -Original Message-
 From: Charles P. Killmer [mailto:[EMAIL PROTECTED]
 Sent: 08 February 2005 15:33
 To: Tomcat Users List
 Subject: RE: JTDS help
 
 
 I don't mean to be contrary, I am just trying to pin this down.  The
 database and tomcat server are only separated by a 10/100 
 switch.  I am
 going to run filemon and watch for access denied messages, then regmon
 and watch for similar things.  The network is very fast, the db server
 is not being used by anyone else.  It seems to me that if it were
 environmental, it would affect these other programming languages the
 same.  I checked and the jtds.jar file is in tomcat\common\lib.  
 
 Any other thoughts while you wait for the results from filemon and
 regmon?
 
 Thank you
 Charles
 
 -Original Message-
 From: Allistair Crossley [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, February 08, 2005 8:44 AM
 To: Tomcat Users List
 Subject: RE: JTDS help
 
 Hi,
 
 No it was a totally raw test of your code which by virtue of using
 DriverManager does not use connection pooling even if I do have it
 enabled in my web app.
 
 jTDS installation is simply adding the JAR to tomcat/common/lib
 
 Are you running Tomcat on the same server as the database?
 
 Config file won't have anything to do with this. I am certain it is
 environmental.
 
 Ali.
 
  -Original Message-
  From: Charles P. Killmer [mailto:[EMAIL PROTECTED]
  Sent: 08 February 2005 14:41
  To: Tomcat Users List
  Subject: RE: JTDS help
  
  
  Well I must have missed something because it isn't working 
 correctly.
  ;)  Were you using connection pooling in your test?  Perhaps I have 
  something messed up in a config file?  Or installed jTDS 
 incorrectly?
  
  Thanks for all your help.
  Charles
  
  -Original Message-
  From: Allistair Crossley [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, February 08, 2005 3:17 AM
  To: Tomcat Users List
  Subject: RE: JTDS help
  
  Hi Charles,
  
  I've just taken your code and run it through our Tomcat 
 5.5, jTDS, SQL
 
  Server 2000 web application and it took approx. 0.5s to compile and 
  subsequent requests were instantaneous  0.5s.
  
  I would look again at the issues I first noted, perhaps there is 
  something you have missed.
  
  Cheers, Allistair.
  
   -Original Message-
   From: Charles P. Killmer [mailto:[EMAIL PROTECTED]
   Sent: 07 February 2005 22:42
   To: Tomcat Users List
   Subject: RE: JTDS help
   
   
   When I strip the code to simply this,
   
   %@ page language=java import=java.sql.*% % 
 Connection conn =
   DriverManager.getConnection(jdbc:jtds:sqlserver://*.*.*.*:143
   3/dbname;u
   ser=*;password=**);
   conn.close();
   %
   
   It still runs slowly.  And yes it is multiple refreshes.  
   
   I have tried to use connection pooling but have not been
  able to get
   it working yet.  Also the thing that I run into with connection 
   pooling the inability to use the SQL Statement of select
  @@IDENTITY
   from table.
   With connection pooling, you run the risk of getting the ID for a 
   record that someone else inserted with the same connection.
   
   If connection pooling is the only option, I can work around that 
   issue.
   But it seems that if PHP, ASP, ASP.NET... Can access the
  database just
  
   fine without connection pooling, JSP should be able to as well.
   
   Any thoughts?
   Thanks for all your input.
   Charles
   
   -Original Message-
   From: Mario Winterer [mailto:[EMAIL PROTECTED]
   Sent: Monday, February 07, 2005 2:43 PM
   To: Tomcat Users List
   Subject: Re: JTDS help
   
   I do not think, jsp compilation is the problem - well, the first 
   request will last long, but after the jsp is compiled, subsequent 
   calls will not be remarkable slower than executing pure compiled 
   servlet code.
   (Charles, I hope you did not measure the time for the 
 first request 
   only
   - which indeed includes compilation time, but for 
 subsequent calls 
   too).
   So to me opening the connection is the major problem. 
  Because the code
  
   itself contains html-output, I think using jsp is quite ok.
   The code would be much cleaner, if Charles used the JSTL
  tag-library:
   
   %@ page language=java%
   %@ taglib prefix=c uri=http://java.sun.com/jstl/core; % %@
   taglib prefix=sql uri=http://java.sun.com/jstl/sql; %
  sql:query
   sql=SELECT * FROM accounts var=accounts
   dataSource=jndi/myDataSource/
   table
   c:forEach var=acc items=${accounts} tr tdc:out 
   value=${acc.ID}//td tdc:out
  value=${acc.Name}//td /tr
   /c:forEach /table
   
   Best regards,
   Tex

RE: JTDS help

2005-02-08 Thread Peter Crowther
 From: Charles P. Killmer [mailto:[EMAIL PROTECTED] 
 I am
 going to run filemon and watch for access denied messages, then regmon
 and watch for similar things.  The network is very fast, the db server
 is not being used by anyone else.  It seems to me that if it were
 environmental, it would affect these other programming languages the
 same.  I checked and the jtds.jar file is in tomcat\common\lib.  
 
 Any other thoughts while you wait for the results from filemon and
 regmon?

Basically, I suspect a delay being introduced, most likely by some
unexpected authentication.  Last twice I saw a 2-3 second delay, both
were from a SQL Server trying to authenticate and not having a domain
controller within easy reach.  What user is your Tomcat server running
as, what protocol are you using to connect to SQL Server?  And if you
run osql.exe as that same user on that same machine, what behaviour do
you see?

Other steps to look for delays:

1. Fire up a SQL Profiler.  Watch for activity.  How soon after the
request for the page is made, does the connection request get made?

2. What's the CPU usage on the Tomcat box?  On the SQL box?

3. With a network sniffer, monitor the traffic flow between the two
boxes.  What's being sent when?

I'm aware that I could be barking up entirely the wrong tree here -
especially if your Tomcat isn't running as a service and is running as
your domain user account - but it just might be worth a check.

- Peter

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



Attn developers of Tomcat and JK

2005-02-08 Thread Eric Sandusky
To the developers of Tomcat and JK:

As I can sense that not one single person is willing to respond to this
issue, I can only assume that this tomcat-user community is worthless.  Not
only have I submitted this issue back 6 months ago, but a similar post was
made by the user A jie twice within the last week.

If you are too ashamed that your software is not reliable enough to be
installed in a production environment, at least have the decency of telling
us that.  When I have to deal with user session data being sent back to the
wrong client, sessions getting lost, and numerous log errors stating that
the request/response cannot be fulfilled, I can only come to one
conclusion.. Tomcat and the JK/JK2 connector are not reliable.  See below
and tell me that those messages would not cause problems for the client.

[Mon Feb 07 13:30:20 2005] [info]  jk_open_socket::jk_connect.c (183):
connect() failed errno = 61
[Mon Feb 07 13:30:20 2005] [info]  ajp_connect_to_endpoint::jk_ajp_common.c
(862): Failed connecting to tomcat. Tomcat is probably not started or is
listening on the wrong host/port (127.0.0.1:8009). Failed errno = 61
[Mon Feb 07 13:30:20 2005] [info]  ajp_send_request::jk_ajp_common.c (1186):
Error connecting to the Tomcat process.
[Mon Feb 07 13:30:20 2005] [info]  ajp_service::jk_ajp_common.c (1665):
Sending request to tomcat failed,  recoverable operation attempt=2
[Mon Feb 07 13:30:20 2005] [error] ajp_service::jk_ajp_common.c (1673):
Error connecting to tomcat. Tomcat is probably not started or is listening
on the wrong port. worker=ajp13w failed errno = 61
[Mon Feb 07 13:30:20 2005] [error] HttpExtensionProc::jk_isapi_plugin.c
(937): service() failed

If Tomcat + JK cannot process every request/response on a Windows server
that is dual-xeon 3.0 Ghz processors with 4 GB of memory, then what machine
would?  

And doesn't it seem strange how the JK2 project has been mysteriously
abandoned?  Thanks for going off in a seemingly better direction only to
jump ship and leave everyone SOL.  It makes me think that this whole Tomcat
development effort is more of just a hobby and not something to be taken
seriously.

If anyone is willing to contact me on this issue, I would be more than happy
to talk one-on-one.  If you want to tell me that this is not the forum for
ranting about Tomcat or JK, it should be.  If you want to blackball me from
this community, go ahead, I'm not getting any help from it as it is.  I can
only hope that this message reaches the people who supposedly support this
software and lights a fire underneath them to improve it or tell us that it
just doesn't work.

Eric

-Original Message-
From: Eric Sandusky [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 02, 2005 11:40 AM
To: Tomcat Users List
Subject: ISAPI redirector warnings

While running Tomcat 5 with IIS and JK2..

 

The Windows Application Logs often log several Warnings at the same point in
time, see below for example.  The problem is, these Warnings pile up in the
Windows Event logs and force the Administrator to manually clear out the
logs daily or weekly.  

 

I am not looking to simply suppress these messages, but find a solution to
the actual problem.  This issue seems to occur at random and things such as
session confusion (user A sees user B's data) and other noticeable issues
happen at or around the same time as these warnings.

 

What is the reason for these log entries?

 

How can I eliminate these log entries?

 

Error: [jk_worker_ajp13.c (648)]: ajp13.service() Error  forwarding
ajp13:localhost:8009 1 0

Error: [jk_worker_ajp13.c (546)]: ajp13.service() ajpGetReply recoverable
error 3

Error: [jk_handler_response.c (140)]: handler.response() Error sending
response

Error: [jk_service_iis.c (126)]: jk_ws_service_t::head,
ServerSupportFunction failed

Error: [jk_worker_ajp13.c (546)]: ajp13.service() ajpGetReply recoverable
error 3

Error: [jk_handler_response.c (140)]: handler.response() Error sending
response

Error: [jk_service_iis.c (126)]: jk_ws_service_t::head,
ServerSupportFunction failed

 

Configuration:

Windows 2000 or Windows 2003 Server

Apache Tomcat 5.0.25 or 5.0.28

Microsoft IIS 5 or 6

JK2 2.0.4 connector

 

Workers2.properties

[shm:]

info=Shared memory file. Required for multiprocess servers

file=d:\tomcat5.0.28\work\jk20.shm

size=100

 

# Define the communication channel

[channel.socket:localhost:8009]

tomcatId=localhost:8009

 

[ajp13:localhost:8009]

channel=channel.socket:localhost:8009

 

[uri:/Concept60/*]

worker=ajp13:localhost:8009

 

Server.xml

Connector port=8088 maxThreads=150 minSpareThreads=25
maxSpareThreads=75

   enableLookups=false redirectPort=8443 acceptCount=100

   debug=0 connectionTimeout=2 

   disableUploadTimeout=true /

Connector port=8009 

   enableLookups=false connectionTimeout=0
redirectPort=8443 debug=0

   protocol=AJP/1.3 /

 

isapi_redirector2.reg


Re: [SOLVED] Form Auth + xml users database

2005-02-08 Thread Omar Adobati
nobody can help me?


On Mon, 7 Feb 2005 09:57:32 +0100, Omar Adobati [EMAIL PROTECTED] wrote:
 Thx for ur answers, I have reied what you say about the second
 question, but it's do not work. This is how I have changed my
 context.xml file:
 ===
 ?xml version='1.0' encoding='utf-8'?
 Context privileged=true swallowOutput=true
 workDir=work\Catalina\photoalbum\ path=/ cacheTTL=0
 cachingAllowed=false displayName=bannerEmbedded beta docBase=.
 cacheMaxSize=0 reloadable=true
  Realm className=org.apache.catalina.realm.UserDatabaseRealm
 resourceName=PhotoAlbum/
  Valve className=org.apache.catalina.valves.AccessLogValve
 directory=logs/photoalbum/ fileDateFormat=-MM-dd suffix=.txt
 prefix=photoalbum_access_log./
  !--ResourceLink name=PhotoAlbum global=PhotoAlbum
 type=org.apache.catalina.UserDatabase/--
  Resource type=org.apache.catalina.UserDatabase description=User
 database that can be updated and saved auth=Container
 name=PhotoAlbum/
ResourceParams name=PhotoAlbum
parameter
  namefactory/name
  valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
/parameter
parameter
  namepathname/name
  valueconf/Catalina/photoalbum.localhost/photoalbum-users.xml/value
/parameter
  /ResourceParams
 /Context
 ===
 
 I have removed the ResourceParams from the server.xml file and move it
 into the context.xml but in the log I can read this errors messages:
 1) javax.naming.NameNotFoundException: Name PhotoAlbum is not bound in
 this Context
 2) GRAVE: Catalina.start:
 LifecycleException:  No UserDatabase component found under key PhotoAlbum
 3) 2005-02-07 09:55:30 UserDatabaseRealm[photoalbum.localhost]:
 Exception looking up UserDatabase under key PhotoAlbum
 javax.naming.NameNotFoundException: Name PhotoAlbum is not bound in this 
 Context
 
 do u know why? I have I have give you all the elements you need to help me.
 
 On Sun, 06 Feb 2005 22:21:21 +0100, Mario Winterer
 [EMAIL PROTECTED] wrote:
  Hi!
 
  I'm happy you could solve your problem now! Seems the reason was the
  missing Realm-definition in your context.xml.
 
  To Question 1)
  Tomcat offers a separate JNDI-namespace for each web application (so if
  you have 4 web applications you will have 4 namespaces). These
  namespaces are configured in the context-elements of the corresponsing
  web-applications. To define resources, you have to nest a
  Resource-element in your context-element (which should be in
  context.xml).
  A resource that is defined in the namespace of a web application cannot
  be seen by other web applications (because the namespaces are separated
  from each other).
  Sometimes, a resource may be required by more than one web application.
  To avoid configuring this resource several times - once per context -
  tomcat offers another namespace that is global and exists only once per
  tomcat instance. If you define a resource there, you can use it in each
  web application, that is allowed to use it.
  So how can you allow a web application to use a global resource? Simply
  link the global resource into the local JNDI-namespace of the
  web-application! This can be done by nesting a ResourceLink element in
  the context element of the web-application that should be allowed to
  use the resource. When defining a ResourceLink-element, you must
  specify, which global resource you want to link into the namespace
  (attribut global), which type the resource is that you want to link
  (attribut type), and which name it should have in the local namespace
  (attribut name) - this name can be equal to the global name.
 
  So the server.xml and context.xml hierarchy could look like the
  following (sorry for the text-art - use a fixed width font for best
  results):
 
  +- Server
|
+- GlobalNamingResources
|  +- Resource GlobResA
|  +- Resource GlobResB
|
+- Service
   +- Engine
  +- Realm X
  +- Host www.A.org
  |  +- Context /A1 (defined in context.xml)
  |  |  +- ResourceLink to GlobResA, name: LocResA
  |  |
  |  +- Context /A2 (defined in context.xml)
  |  |  +- ResourceLink to GlobResA, name: LocResA
  |  |  +- ResourceLink to GlobResB, name: LocResB
  |  |
  |  +- Context /A3 (defined in context.xml)
  | +- Resource, name LocalResA
  |
  +- Host www.B.org
 +- Context /B1
 |  +- ResourceLink to GlobResA, name: LocResA
 |
 +- Context /B2
+- ResourceLink to GlobResB, name: LocResB
 
  Question 2) If you do not want to change server.xml (e.g. because you
  want to deploy your application to a foreign server and you cannot
  modify server.xml there), you could define a local JNDI-Resource in the
  context-element of your web-application instead of the
  GlobalNamingResource (simply move the resource-definition from
  GlobalNamingResource into your context-element). If you do this, of
  course you 

org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.doesModernCompilerExist(CompilerAdapterFactory.java:143)

2005-02-08 Thread Brian McGovern
Hello,

I recently installed tomcat 5.0.28 and java 1.4.2_06.  I get the default app 
and can execute servlets, but if i execute any jsp that is NOT defined in the 
jsp-examples web app, i get the error above.  Full stack trace below:

I have no idea what is causing this.  Please help.

type Exception report
message 
description The server encountered an internal error () that prevented it from 
fulfilling this request.
exception 
org.apache.jasper.JasperException: Unable to compile class for JSP

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:520)

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)
root cause 
java.lang.NullPointerException

org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.doesModernCompilerExist(CompilerAdapterFactory.java:143)

org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:97)
org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:929)
org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:758)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)

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)
note The full stack trace of the root cause is available in the Apache 
Tomcat/5.0.28 logs.




Re: Attn developers of Tomcat and JK

2005-02-08 Thread fstmncn
What's your problem?
have you found something better at the same cost (0$)?
If it doesn't fit your needs, don't use it.

--- Eric Sandusky [EMAIL PROTECTED] wrote:

 To the developers of Tomcat and JK:
 
 As I can sense that not one single person is willing
 to respond to this
 issue, I can only assume that this tomcat-user
 community is worthless.  Not
 only have I submitted this issue back 6 months ago,
 but a similar post was
 made by the user A jie twice within the last week.
 
 If you are too ashamed that your software is not
 reliable enough to be
 installed in a production environment, at least have
 the decency of telling
 us that.  When I have to deal with user session data
 being sent back to the
 wrong client, sessions getting lost, and numerous
 log errors stating that
 the request/response cannot be fulfilled, I can only
 come to one
 conclusion.. Tomcat and the JK/JK2 connector are not
 reliable.  See below
 and tell me that those messages would not cause
 problems for the client.
 
 [Mon Feb 07 13:30:20 2005] [info] 
 jk_open_socket::jk_connect.c (183):
 connect() failed errno = 61
 [Mon Feb 07 13:30:20 2005] [info] 
 ajp_connect_to_endpoint::jk_ajp_common.c
 (862): Failed connecting to tomcat. Tomcat is
 probably not started or is
 listening on the wrong host/port (127.0.0.1:8009).
 Failed errno = 61
 [Mon Feb 07 13:30:20 2005] [info] 
 ajp_send_request::jk_ajp_common.c (1186):
 Error connecting to the Tomcat process.
 [Mon Feb 07 13:30:20 2005] [info] 
 ajp_service::jk_ajp_common.c (1665):
 Sending request to tomcat failed,  recoverable
 operation attempt=2
 [Mon Feb 07 13:30:20 2005] [error]
 ajp_service::jk_ajp_common.c (1673):
 Error connecting to tomcat. Tomcat is probably not
 started or is listening
 on the wrong port. worker=ajp13w failed errno = 61
 [Mon Feb 07 13:30:20 2005] [error]
 HttpExtensionProc::jk_isapi_plugin.c
 (937): service() failed
 
 If Tomcat + JK cannot process every request/response
 on a Windows server
 that is dual-xeon 3.0 Ghz processors with 4 GB of
 memory, then what machine
 would?  
 
 And doesn't it seem strange how the JK2 project has
 been mysteriously
 abandoned?  Thanks for going off in a seemingly
 better direction only to
 jump ship and leave everyone SOL.  It makes me think
 that this whole Tomcat
 development effort is more of just a hobby and not
 something to be taken
 seriously.
 
 If anyone is willing to contact me on this issue, I
 would be more than happy
 to talk one-on-one.  If you want to tell me that
 this is not the forum for
 ranting about Tomcat or JK, it should be.  If you
 want to blackball me from
 this community, go ahead, I'm not getting any help
 from it as it is.  I can
 only hope that this message reaches the people who
 supposedly support this
 software and lights a fire underneath them to
 improve it or tell us that it
 just doesn't work.
 
 Eric
 
 -Original Message-
 From: Eric Sandusky
 [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, February 02, 2005 11:40 AM
 To: Tomcat Users List
 Subject: ISAPI redirector warnings
 
 While running Tomcat 5 with IIS and JK2..
 
  
 
 The Windows Application Logs often log several
 Warnings at the same point in
 time, see below for example.  The problem is, these
 Warnings pile up in the
 Windows Event logs and force the Administrator to
 manually clear out the
 logs daily or weekly.  
 
  
 
 I am not looking to simply suppress these messages,
 but find a solution to
 the actual problem.  This issue seems to occur at
 random and things such as
 session confusion (user A sees user B's data) and
 other noticeable issues
 happen at or around the same time as these warnings.
 
  
 
 What is the reason for these log entries?
 
  
 
 How can I eliminate these log entries?
 
  
 
 Error: [jk_worker_ajp13.c (648)]: ajp13.service()
 Error  forwarding
 ajp13:localhost:8009 1 0
 
 Error: [jk_worker_ajp13.c (546)]: ajp13.service()
 ajpGetReply recoverable
 error 3
 
 Error: [jk_handler_response.c (140)]:
 handler.response() Error sending
 response
 
 Error: [jk_service_iis.c (126)]:
 jk_ws_service_t::head,
 ServerSupportFunction failed
 
 Error: [jk_worker_ajp13.c (546)]: ajp13.service()
 ajpGetReply recoverable
 error 3
 
 Error: [jk_handler_response.c (140)]:
 handler.response() Error sending
 response
 
 Error: [jk_service_iis.c (126)]:
 jk_ws_service_t::head,
 ServerSupportFunction failed
 
  
 
 Configuration:
 
 Windows 2000 or Windows 2003 Server
 
 Apache Tomcat 5.0.25 or 5.0.28
 
 Microsoft IIS 5 or 6
 
 JK2 2.0.4 connector
 
  
 
 Workers2.properties
 
 [shm:]
 
 info=Shared memory file. Required for multiprocess
 servers
 
 file=d:\tomcat5.0.28\work\jk20.shm
 
 size=100
 
  
 
 # Define the communication channel
 
 [channel.socket:localhost:8009]
 
 tomcatId=localhost:8009
 
  
 
 [ajp13:localhost:8009]
 
 channel=channel.socket:localhost:8009
 
  
 
 [uri:/Concept60/*]
 
 worker=ajp13:localhost:8009
 
  
 
 Server.xml
 
 Connector port=8088 maxThreads=150
 minSpareThreads=25
 

[OT] RE: Attn developers of Tomcat and JK

2005-02-08 Thread Peter Crowther
 From: Eric Sandusky [mailto:[EMAIL PROTECTED] 
[long FOAD rant elided]

If you want support, buy a supported product or a version of Tomcat that
is re-sold by a company that offers commercial support.  If you wish to
pay for somebody's time to fix this, feel free to make the offer.  If
you want a free product, be prepared for the lack of support that
entails.  If you want a free product *and* free support, move to Oz;
you're on the wrong planet.

- Peter

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



Support Information Regarding - C0000005

2005-02-08 Thread support
Thank you for emailing Blizzard Entertainments Technical Support Department. In 
order to provide you with greater assistance, we have developed an automated 
reply system which evaluates your message and generates a detailed response 
towards it. 

Please read through this message as our automated reply system has helped many 
of our customers. If the response given below does not assist you or it is not 
relevant towards your message, please reply back to this email and a live 
technician will respond to you as soon as possible.


==
Support Information Regarding - C005:
==

If you are getting the error Unhandled Exception: Access Violation C005:

Uninstall and reinstall the game and download and install the latest patch 
from: (http://www.blizzard.com/patches)

If this doesn't work, please try some of our other solutions:

For Warcraft III Reign of Chaos:

We recommend running in a selective startup to improve performance and 
stability.  Firewall software, such as Zone Alarm, can cause lockups or prevent 
the game from starting. For instructions on how to run your computer in a 
selective startup, please visit our site at: 
(http://www.blizzard.com/support/?id=agn0558p).

If the solution above does not help, please try the steps below. 

Download and install the latest DirectX from 
(http://www.microsoft.com/windows/directx/default.aspx?url=/windows/directx/downloads/default.htm)
 Make sure you have the latest drivers for your Video and Sound cards, next. A 
list of manufacturers with contact information can be found at 
(http://www.blizzard.com/support/?id=msi0369p).

Download and install the latest chipset drivers for your motherboard.  Check 
the motherboard manufacturer's website for updated chipset drivers, first.  If 
you can't find updated drivers at the manufacturer's website, the next two most 
common locations for chipset drivers are (http://www.viaarena.com/?PageID=2) 
and (http://www.intel.com/support/chipsets/)

If Warcraft III still has errors after updating drivers, download war3.reg from 
(http://ftp.blizzard.com/pub/war3/other/) and save it to your Windows Desktop.  
Once the file has been downloaded, double-click on it to import the registry 
info.  This file will set Warcraft III to mute sound, run with the basic 
settings for video and set the refresh rate for the monitor to 60Hz.  Once the 
game has started, you may select the options menu and adjust the video and 
sound settings as desired.

For StarCraft users:
Click on Start.
Click on Run.
Type regedit and click Ok.
Click on the + icon beside the HKey_Local_Machine branch.
Click on the + icon beside the Software branch.
Select the Battle.net branch and press the delete key.
Click on the + icon beside the HKey_Current_User branch.
Click on the + icon beside the Software branch.
Select the Battle.net branch and press the delete key.

For Diablo II and Diablo II: Lord of Destruction:

The first step in fixing this problem is to make sure you have the latest patch 
for the game. You can download the latest patch by going to 
(http://www.blizzard.com/patches).

Next, download and install the latest chipset drivers for your motherboard.  
Check the motherboard manufacturer's website for updated chipset drivers, 
first.  The two most common locations for chipset drivers are 
(http://www.viaarena.com/?PageID=2) and 
(http://www.intel.com/support/chipsets/).

The next step if the patch does not work is to play the game in 2D mode if you 
are currently running in 3D. You can change this setting by re-running the 
Video Test. To run this test, click on Start, then Programs, then Diablo II and 
then Video Test.  Also, try turning off the Automap as a troubleshooting step.

Check your CD-ROM settings using the information provided at the following link:
(http://www.blizzard.com/support/?id=mdb0404p)

If this error persists, please send us any new D2#.txt and/or D2debug.txt 
files from the Diablo II folder on your hard drive.  This will allow us to 
better troubleshoot your problem.

Finally, you may have noticed that Diablo II causes the computer to work really 
hard. This is largely due to the many textures that are being used by the game 
at any given time, especially in 3D modes. Because of this, sometimes users who 
have this problem do not have trouble with any other programs. Sometimes this 
error will occur if your computer gets too hot, so anything you can do to lower 
the operating temperature of your computer might be useful. Lowering the clock 
speed will lower the operating temperature. You should also make sure that your 
processor is adequately cooled with a cooling fan and heatsink. Your processor 
manufacturer has specific recommendations for cooling fans for some of their 
chips.

Please visit us on our Blizzard Entertainment Support site at 
(http://www.blizzard.com/support/?id=mdt0274p) for our latest solutions to 

Re: Attn developers of Tomcat and JK

2005-02-08 Thread Tim Funk
http://jakarta.apache.org/tomcat/faq/tomcatuser.html#why
-Tim
Eric Sandusky wrote:
To the developers of Tomcat and JK:
RANT SNIPPED/

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


RE: [OT] RE: Attn developers of Tomcat and JK

2005-02-08 Thread Eric Sandusky
Classic!  

 

 What's your problem?

have you found something better at the same cost (0$)?

If it doesn't fit your needs, don't use it.

 

 If you want support, buy a supported product or a version of Tomcat that

is re-sold by a company that offers commercial support.  If you wish to

pay for somebody's time to fix this, feel free to make the offer.  If

you want a free product, be prepared for the lack of support that

entails.  If you want a free product *and* free support, move to Oz;

you're on the wrong planet.

 

See http://jakarta.apache.org/tomcat/faq/tomcatuser.html#why

 

And another person telling me to play World of Warcraft.

 

So far I've gotten several responses back.  And they all say the same thing.
The product sucks so go find another one.  I guess I am living on Earth,
just like the rest of you.



Is information on the number of downloads available?

2005-02-08 Thread Paul Luo Li
Hi 
I'm a Ph.D. student at CMU looking for information on the number of
times Tomcat is downloaded. I'm investigating defect occurrence (i.e. bugs)
predictions for open source projects. I have done some preliminary work
describing the defect occurrence patterns of Tomcat (and a couple of other
systems, commercial and open source):
http://www-2.cs.cmu.edu/~paulluo/Li-Techreport.pdf

Next, I hope to predict the defect occurrence patterns using
information including the number of times the code is downloaded. So, I was
wondering if Tomcat tracks download information? And where I might to go get
it?

Thanks for all the help
Paul Li


Paul Luo Li
ISRI - CS - CMU
5119 Wean Hall
Pittsburgh PA, 15213
412-268-3043
[EMAIL PROTECTED]

B.S. Mathematics, University of Virginia 2001.
Ph.D Student Software Engineering, Carnegie Mellon University, 2001-



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



Re: Is information on the number of downloads available?

2005-02-08 Thread Tim Funk
http://www.apache.org/~vgritsenko/stats/projects/tomcat.html
But see the disclaimer at the bottom of the link above.
-Tim
Paul Luo Li wrote:
Hi 
	I'm a Ph.D. student at CMU looking for information on the number of
times Tomcat is downloaded. I'm investigating defect occurrence (i.e. bugs)
predictions for open source projects. I have done some preliminary work
describing the defect occurrence patterns of Tomcat (and a couple of other
systems, commercial and open source):
http://www-2.cs.cmu.edu/~paulluo/Li-Techreport.pdf
	
	Next, I hope to predict the defect occurrence patterns using
information including the number of times the code is downloaded. So, I was
wondering if Tomcat tracks download information? And where I might to go get
it?

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


Is it possible to setup a custom ServerSocketFactory?

2005-02-08 Thread Rodrigo Ruiz
Hi all,

I am using Tomcat 4.1.27, on a Windows XP SP2 host.

I have tried to implement a custom ServerSocketFactory, and configured
my CoyoteConnector to use it as its factory in the server.xml file.
But, although an instance is created on startup, it seems no call is
made to any of its createSocket() methods.

Is there anything special that must be done for the connector to use
my factory? It seems that CoyoteConnector is creating the ServerSocket
by itself, or at least, without asking the specified factory.

Thanks in advance,
Rodrigo Ruiz

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



Re: Is information on the number of downloads available?

2005-02-08 Thread fstmncn
Nice.
I was wondering if you know what has been used to
generate the charts...

Thank you in advance.

--- Tim Funk [EMAIL PROTECTED] wrote:


http://www.apache.org/~vgritsenko/stats/projects/tomcat.html
 
 But see the disclaimer at the bottom of the link
 above.
 
 
 -Tim
 
 Paul Luo Li wrote:
 
  Hi 
  I'm a Ph.D. student at CMU looking for
 information on the number of
  times Tomcat is downloaded. I'm investigating
 defect occurrence (i.e. bugs)
  predictions for open source projects. I have done
 some preliminary work
  describing the defect occurrence patterns of
 Tomcat (and a couple of other
  systems, commercial and open source):
  http://www-2.cs.cmu.edu/~paulluo/Li-Techreport.pdf
  
  Next, I hope to predict the defect occurrence
 patterns using
  information including the number of times the code
 is downloaded. So, I was
  wondering if Tomcat tracks download information?
 And where I might to go get
  it?
  
 

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


=
[--°--]



__ 
Do you Yahoo!? 
All your favorites on one personal page – Try My Yahoo!
http://my.yahoo.com 

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



Session Objects

2005-02-08 Thread Jagadeesha T
Hi all,
  I' am storing session objects in a SINGLEON class object to keep all 
active sessions. Does it give any problems in clustered enviornment since 
singleton is a static referrence.
 
Regards,
Jagga
 
 

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

RE: Session Objects

2005-02-08 Thread Peter Crowther
 From: Jagadeesha T [mailto:[EMAIL PROTECTED] 
   I' am storing session objects in a SINGLEON class 
 object to keep all active sessions. Does it give any problems 
 in clustered enviornment since singleton is a static referrence.

Yes.  Singletons are one-per-classloader.  Classloaders are per-webapp,
per-virtual-machine.  So you will have one instance of your singleton
for each node in your cluster.

- Peter

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



RE: Session Objects

2005-02-08 Thread Dale, Matt

Yes it will, this won't work accross a cluster. You need to use the regular 
session manager.

Is there any reason why you put the sessions in a singleton?

Ta
Matt

-Original Message-
From: Jagadeesha T [mailto:[EMAIL PROTECTED]
Sent: 08 February 2005 17:25
To: tomcat-user@jakarta.apache.org
Subject: Session Objects


Hi all,
  I' am storing session objects in a SINGLEON class object to keep all 
active sessions. Does it give any problems in clustered enviornment since 
singleton is a static referrence.
 
Regards,
Jagga
 
 

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the company. This E-mail and any files transmitted with it are 
confidential and solely for the use of the intended recipient. If you are not 
the intended recipient or the person responsible for delivering to the intended 
recipient, be advised that you have received this E-mail in error and that any 
use or copying is strictly prohibited. If you have received this E-mail in 
error please notify the beCogent postmaster at [EMAIL PROTECTED]
Unless expressly stated, opinions in this email are those of the individual 
sender and not beCogent Ltd. You must take full responsibility for virus 
checking this email and any attachments.
Please note that the content of this email or any of its attachments may 
contain data that falls within the scope of the Data Protection Acts and that 
you must ensure that any handling or processing of such data by you is fully 
compliant with the terms and provisions of the Data Protection Act 1984 and 
1998.


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

javaURLContextFactory class or jar file

2005-02-08 Thread Dave Bender
Where can I find the org.apache.naming.java.javaURLContextFactory class file
or jar file that contains it?

I'm trying to set up a simple JUnit test case JDNI fixture to create the
JDNI context for my test cases.  But I can't find where the class file sits.
Does anybody have any idea?

I would have guessed it's in the bootstrap.jar file, but when I include that
in my classpath, I still get:
javax.naming.NoInitialContextException: Cannot instantiate class:
org.apache.naming.java.javaURLContextFactory [Root exception is
java.lang.ClassNotFoundException:
org.apache.naming.java.javaURLContextFactory]

Where does Tomcat get it from if not the bootstrap.jar file?

Thanks in advance.

Dave



Re: outOfMemory exception under high load

2005-02-08 Thread Oleg
Just a thought, I was having the same problem using JNDI for database
connection. Our database pool was going crazy due to a lot of
connections left unterminated and database memory usage was enormous.
Restarting Tomcat would only help for a day or two and than
OutOfMemory errors would come up again. Restarting the database, gave
us several weeks until the error started coming up again once the
memory used by database grew. Thinking that it had something to do
with the memory it took to maintain the pool.

Oleg


On Mon, 7 Feb 2005 23:02:36 -0600, Caldarale, Charles R
[EMAIL PROTECTED] wrote:
  From: Dale, Matt [mailto:[EMAIL PROTECTED]
  Subject: RE: outOfMemory exception under high load
 
  It could be your permanent generation that is running out of
  space. Get a hold of jvmstat to determine if this is the case.
 
 Another possibility is that you're exceeding your limit on the number of open 
 files.  Exceeding any underlying OS limit is usually translated to an 
 OutOfMemory exception by the JVM.
 
 - 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]



Re: Session Objects

2005-02-08 Thread Shey Rab Pawo
Could you explain why this won't work across a cluster?  Thanks.


On Tue, 8 Feb 2005 17:28:59 -, Dale, Matt [EMAIL PROTECTED] wrote:
 
 Yes it will, this won't work accross a cluster. 
 Hi all,
   I' am storing session objects in a SINGLEON class object to keep all 
 active sessions. Does it give any problems in clustered enviornment since 
 singleton is a static referrence.
 
 Regards,
 Jagga
 

-- 
The radiance of all the stars does not equal a sixteenth part of the
moon's radiance, likewise, good deeds giving us merit, all these do
not equal a sixteenth part of the merit of loving-kindness..

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



RE: Session Objects

2005-02-08 Thread Jagadeesha T
Thanks for responding.
 
To manage session between an apllication and web servers. Is there any way to 
get that worked in clustered enviornment?
 
Thanks 
Jagga


Dale, Matt [EMAIL PROTECTED] wrote:

Yes it will, this won't work accross a cluster. You need to use the regular 
session manager.

Is there any reason why you put the sessions in a singleton?

Ta
Matt

-Original Message-
From: Jagadeesha T [mailto:[EMAIL PROTECTED]
Sent: 08 February 2005 17:25
To: tomcat-user@jakarta.apache.org
Subject: Session Objects


Hi all,
I' am storing session objects in a SINGLEON class object to keep all active 
sessions. Does it give any problems in clustered enviornment since singleton is 
a static referrence.

Regards,
Jagga



__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the company. This E-mail and any files transmitted with it are 
confidential and solely for the use of the intended recipient. If you are not 
the intended recipient or the person responsible for delivering to the intended 
recipient, be advised that you have received this E-mail in error and that any 
use or copying is strictly prohibited. If you have received this E-mail in 
error please notify the beCogent postmaster at [EMAIL PROTECTED]
Unless expressly stated, opinions in this email are those of the individual 
sender and not beCogent Ltd. You must take full responsibility for virus 
checking this email and any attachments.
Please note that the content of this email or any of its attachments may 
contain data that falls within the scope of the Data Protection Acts and that 
you must ensure that any handling or processing of such data by you is fully 
compliant with the terms and provisions of the Data Protection Act 1984 and 
1998.


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

-
Do you Yahoo!?
 All your favorites on one personal page – Try My Yahoo!

No jsp compiles

2005-02-08 Thread Brian McGovern
I just installed tomcat 5.0.28 and java 1.4.2_06 on redhat and no JSP compiles, 
with the following error:  Even jsp with one line in them

Any ideas?

org.apache.jasper.JasperException: Unable to compile class for JSP

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:520)

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)
root cause 
java.lang.NullPointerException

org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.doesModernCompilerExist(CompilerAdapterFactory.java:143)

org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:97)
org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:929)
org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:758)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)

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)




Re: Is information on the number of downloads available?

2005-02-08 Thread Paul Luo Li
Thanks Tim for the reply and the great link. 

It's difficult hard to decipher the actual numbers from the charts. Is there
a chance that I can get the numbers used to generate the graphs? Also, I
noticed that the chart only goes back to 2002. Does the information go back
to 2000? 

I have bugzilla data on Tomcat 3, Tomcat 4, and Tomcat 5 going back to 2000.
My plan is to fit a model using historical metrics information like LOC,
download, deltas, etc., and the number of bugs in historical releases (i.e.
tomcat 3.2, tomcat 4.0, and tomcat 4.1) then use the model to predict for
the number of defects in the next release, given the metrics for the next
release. In order to build the model, I need the download information for
the historical releases. 

Thanks so much for the help

Paul




http://www.apache.org/~vgritsenko/stats/projects/tomcat.html

But see the disclaimer at the bottom of the link above.


-Tim

Paul Luo Li wrote:

 Hi 
   I'm a Ph.D. student at CMU looking for information on the number of
 times Tomcat is downloaded. I'm investigating defect occurrence (i.e.
bugs)
 predictions for open source projects. I have done some preliminary work
 describing the defect occurrence patterns of Tomcat (and a couple of other
 systems, commercial and open source):
 http://www-2.cs.cmu.edu/~paulluo/Li-Techreport.pdf
   
   Next, I hope to predict the defect occurrence patterns using
 information including the number of times the code is downloaded. So, I
was
 wondering if Tomcat tracks download information? And where I might to go
get
 it?
 

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

Paul Luo Li
ISRI - CS - CMU
5119 Wean Hall
Pittsburgh PA, 15213
412-268-3043
[EMAIL PROTECTED]

B.S. Mathematics, University of Virginia 2001.
Ph.D Student Software Engineering, Carnegie Mellon University, 2001-



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



RE: HTTPconnector problem

2005-02-08 Thread Caldarale, Charles R
 From: reynir [mailto:[EMAIL PROTECTED]
 Subject: HTTPconnector problem
 
 is secure : false
 port : 9099
 
 this proves that I am accessing the correct port, but why is secure 
 false ? is this  a bug that has been fixed ?

There's no bug here.  You're using HTTP to access port 9099, and, by 
definition, that's not secure.  The isSecure() method will return true for 
HTTPS, and you have declared that to be on port 8443.

 - Chuck


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

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



Re: Is information on the number of downloads available?

2005-02-08 Thread Tim Funk
You can try contacting the owner of the graphs to see if you can get more 
details. I do not know of any other ways to get these stats.

-Tim
Paul Luo Li wrote:
Thanks Tim for the reply and the great link. 

It's difficult hard to decipher the actual numbers from the charts. Is there
a chance that I can get the numbers used to generate the graphs? Also, I
noticed that the chart only goes back to 2002. Does the information go back
to 2000? 

I have bugzilla data on Tomcat 3, Tomcat 4, and Tomcat 5 going back to 2000.
My plan is to fit a model using historical metrics information like LOC,
download, deltas, etc., and the number of bugs in historical releases (i.e.
tomcat 3.2, tomcat 4.0, and tomcat 4.1) then use the model to predict for
the number of defects in the next release, given the metrics for the next
release. In order to build the model, I need the download information for
the historical releases. 

Thanks so much for the help
Paul

http://www.apache.org/~vgritsenko/stats/projects/tomcat.html
But see the disclaimer at the bottom of the link above.
-Tim
Paul Luo Li wrote:

Hi 
	I'm a Ph.D. student at CMU looking for information on the number of
times Tomcat is downloaded. I'm investigating defect occurrence (i.e.
bugs)
predictions for open source projects. I have done some preliminary work
describing the defect occurrence patterns of Tomcat (and a couple of other
systems, commercial and open source):
http://www-2.cs.cmu.edu/~paulluo/Li-Techreport.pdf

Next, I hope to predict the defect occurrence patterns using
information including the number of times the code is downloaded. So, I
was
wondering if Tomcat tracks download information? And where I might to go
get
it?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: javaURLContextFactory class or jar file

2005-02-08 Thread Caldarale, Charles R
 From: Dave Bender [mailto:[EMAIL PROTECTED]
 Subject: javaURLContextFactory class or jar file
 
 Where can I find the 
 org.apache.naming.java.javaURLContextFactory class file
 or jar file that contains it?

It's in common/lib/naming-java.jar, at least in 5.0.x.

 - Chuck


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

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



Re: [OT] RE: Attn developers of Tomcat and JK

2005-02-08 Thread Parsons Technical Services
Eric,
I do not use jk at this time so am not able to help you directly. If you do 
some surfing of the archives you will find there are typically three types 
of users.

Total novice who are just looking for a free environment to learn in.
Serious user who uses the product for every day life.
Cheap user who uses the product because it is free.
Often the novice will say just that. I about as dumb as a box of rocks when 
it comes to Tomcat.

These users will often get some sympathy from the community because we have 
all been there once.

The serious user will often ask a question and still dig into the code 
themselves. On many occasion have I seen a user solve their own problem.

Then the cheap user who uses the product because it is free and yet treats 
it as if they paid thousands of dollars for it.

I am not trying to lay blame or label you, but let me ask a question. Have 
you looked at the source code for jk, jk2 or Tomcat? For this is the power 
and advantage of open source. If you own a M$ product and have an issue if 
they do not want to fix it you are stuck with no recourse. Usually you can't 
even convice them that it is a bug in the code. And this applies to others 
as well, I had an HP printer that had a problem, the same problem as 
hundreds if not thousands of other had. HP said it was everything but the 
printer (which is now scrapped). Yet another printer works fine in it's 
place. They effectivly sweep it under the rug, yet if it was open source, I 
bet someone would have found the bug and fixed it.

If you will post your config files for jk and server.xml you might also get 
some feedback. Often a miscofiguration can cause all kinds of grief.

One thing that peaks my curiosity is the line that says:
Tomcat is probably not started or is
listening on the wrong host/port (127.0.0.1:8009).
How do you have the listener setup in Tomcat and what IP/name are you using 
in the config.

Seems like sometimes jk is trying to call Tomcat on a port that is not setup 
to listen for it.

So if you are not too disgusted to try again, please repost as stated above. 
Otherwise good luck on your quest for a different server.

Doug

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


Re: HTTPconnector problem

2005-02-08 Thread reynir
Hi,
As I understand the documentation (and my past experience shows) you are 
not correct. :)
the documentation :
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/coyote.html
states :
|secure| 	

Set this attribute to |true| if you wish to have calls to 
|request.isSecure()| to return |true| for requests received by this 
Connector (you would want this on an SSL Connector). The default value 
is |false|.

in short terms, this is not happening.
It's not requrired to have a https schema on this connector.
thanx,
-reynir


Caldarale, Charles R wrote:
From: reynir [mailto:[EMAIL PROTECTED]
Subject: HTTPconnector problem
is secure : false
port : 9099
this proves that I am accessing the correct port, but why is secure 
false ? is this  a bug that has been fixed ?
   

There's no bug here.  You're using HTTP to access port 9099, and, by 
definition, that's not secure.  The isSecure() method will return true for 
HTTPS, and you have declared that to be on port 8443.
- 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]


Re: HTTPconnector problem

2005-02-08 Thread karjera

Laba diena.



Dkojame, kad mums parate.

Js atsista inut isaugota ms duomen bazje.

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



jdk 1.5.0 and memory management per web-app/vhost

2005-02-08 Thread Delian Krustev
Hello,

I've found this article:

http://www.javaspecialists.co.za/archive/Issue092.html

which directed me to these new features of jdk1.5:

http://java.sun.com/j2se/1.5.0/docs/api/java/lang/management/MemoryPoolMXBean.html
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/management/MemoryMXBean.html
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/management/MemoryManagerMXBean.html

I wonder if these new features could be utilized, and a memory manager per
web-app/vhost could be implemented in tomcat.

I'll be glad to hear what everyone's opinion ?

Cheers,
Delian


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



RE: Where is jmx.jar

2005-02-08 Thread Phillip Qin
I use jdk 1.5.0 + tomcat 5.5.7. jmx is integrated into jdk.

-Original Message-
From: sven morales [mailto:[EMAIL PROTECTED] 
Sent: February 7, 2005 5:11 PM
To: Tomcat Users List
Subject: Re: Where is jmx.jar


Hi,
   You need to download
jakarta-tomcat-5.5.7.compat.tar.gz if you plan to run
Tomcat 5.5.7 with jdk 1.4.x jre.  Untar it in same
directory as the Tomcat5.5.7 and those jar files
needed will be installed in its normal places.

aka_sergio

--- Phillip Qin [EMAIL PROTECTED] wrote:

 I am trying to build tomcat 5.5 manager app. Where
 can I find jmx.jar? It
 used to be in ${catalina.home}/bin.
 
 
 
 
 Regards,
  
  
 PQ
  
 Going to war for peace is like having sex for
 virginity
 




__ 
Do you Yahoo!? 
Yahoo! Mail - now with 250MB free storage. Learn more.
http://info.mail.yahoo.com/mail_250

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


!DSPAM:4207e77e323619498442693!


Re: No jsp compiles

2005-02-08 Thread David Smith
Can we get a little detail on your environment?:
- which Redhat?
- Java SDK or JRE?
- value of your JAVA_HOME environment variable (# echo $JAVA_HOME)?
One possibility that comes to mind is you are required to have the SDK 
for all versions of Tomcat up though the 5.0.x series.  Tomcat 5.5 uses 
Jikes (I think).

--David
Brian McGovern wrote:
I just installed tomcat 5.0.28 and java 1.4.2_06 on redhat and no JSP compiles, 
with the following error:  Even jsp with one line in them
Any ideas?
org.apache.jasper.JasperException: Unable to compile class for JSP
	org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:520)
	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)
root cause 
java.lang.NullPointerException
	org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.doesModernCompilerExist(CompilerAdapterFactory.java:143)
	org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:97)
	org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:929)
	org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:758)
	org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
	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)


 

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


Tomcat 5.0.28 Deploy apps in a /dir/appname like Context

2005-02-08 Thread Alberto Romero

What does work: deploying app in a /appname Context

- I defined a host myhost with a /hostappbase dir as
appBase
- I took the sample HelloWorld app, renamed myapp and
wanted it as http://myhost/myapp
- I added a META-INF/context.xml file
- I compiled it with ant all using a build.xml like
the one from
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/appdev/build.xml.txt
- Then compiled and validated the jsp with ant -f
deploy.xml compile where deploy.xml is like build.xml
example from tomcat-deployer-5.0.28
- I also modified the jar destfile tojar
destfile=/hostappbase /${webapp}.war so after
compile, Tomcat automagically detects the new .war and
unpacks it and loads the new application
= Navigation, reloading and even restarting the new
app OK
- I tried ant -f deploy.xml deploy
= Tomcat manager undeploy and again redeploy the
application, everithing OK.


What does NOT work: deploying similar app in a
/dir/appname Context

- I want a copy of HelloWorld, copied all as myapp2
and edited build.xml deploy.xml context.xml and
web.xml
- THE DIFFERENCE is that now I want it as
http://myhost/SOMEDIR/myapp2
- So I mkdir /hostappbase/SOMEDIR
- Changed the files that way:

--- build.xml ---
   property name=app.name  value=myapp/
   property name=app.path 
value=/${app.name}/
---
   property name=app.name  value=myapp2/
   property name=app.path 
value=/SOMEDIR/${app.name}/

   property name=build.home   
value=../myapp/
---
   property name=build.home   
value=../myapp2/

--- deploy.xml ---
   property name=webapp   value=myapp/
   property name=path value=/myapp/
---
   property name=webapp   value=myapp2/
   property name=path
value=/SOMEDIR/myapp2/

 jar destfile=/hostappbase/${webapp}.war
---
 jar
destfile=/hostappbase/SOMEDIR/${webapp}.war

 path=${path}
war=/hostappbase/${webapp}.war update=true /
---
 path=${path}
war=/hostappbase/SOMEDIR/${webapp}.war update=true
/

--- context.xml ---
   workDir=work/Catalina/myhost/myapp
   path=/myapp
---
   workDir=work/Catalina/myhost/SOMEDIR_myapp2
   path=/SOMEDIR/myapp2

   docBase=/hostappbase/myapp
---
   docBase=/hostappbase/SOMEDIR/myapp2

--- web.xml ---
(no changes)

I followed the same steps and the result was:
1- when executed  ant -f deploy.xml compile Tomcat
does not realize there is a new .war and does not load
nor unpacks the new app.
2- when executed  ant -f deploy.xml deploy it seems
to load the app, but I got this error from Tomcat (so
ant says BUILD FAILED):

StandardContext[/manager]Manager:
ManagerServlet.install[/SOMEDIR/myapp2]
java.net.MalformedURLException: no !/ in spec


I found this note:
http://java.sun.com/j2se/1.4.2/docs/api/java/net/JarURLConnection.html

So I tried this change in deploy.xml:
war=jar:file:/hostappbase/SOMEDIR/${webapp}.war!/
And I got a FileNotFound error from ant.
I tried combinations but none of them worked.

What is my mistake?
Thanks in advance.




__ 
Renovamos el Correo Yahoo!: ¡250 MB GRATIS! 
Nuevos servicios, más seguridad 
http://correo.yahoo.es

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



Tomcat Realm to LDAP USING SOAP

2005-02-08 Thread bohldan bohldan
Im writing a client-servlet program. If i use a client (not webbrowser) is 
it then possible to use Tomcat Realm(JNDI) to authenticate to LDAP using 
SOAP protocol? Or do i have to make the authentication myself in my java 
servlet using JNDI (is this safe btw)?

//Johan
_
Hitta rätt på nätet med MSN Sök http://search.msn.se/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat Realm to LDAP USING SOAP

2005-02-08 Thread Mark Thomas
Depends on what SOAP library (if any) you are using. I have seen BASIC 
auth work with Axis (can't remember which version but it was within the 
last few months).

A long time ago I did try to get CLIENT-CERT working with Axis but hit a 
Tomcat bug. The Tomcat bug has been fixed but priorities changed at work 
and I never went back to it.

HTH
Mark
bohldan bohldan wrote:
Im writing a client-servlet program. If i use a client (not webbrowser) 
is it then possible to use Tomcat Realm(JNDI) to authenticate to LDAP 
using SOAP protocol? Or do i have to make the authentication myself in 
my java servlet using JNDI (is this safe btw)?

//Johan
_
Hitta rätt på nätet med MSN Sök http://search.msn.se/
-
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: HTTPconnector problem

2005-02-08 Thread Mark Thomas
I have just tested this on the latest TC4.1.x from CVS this works as 
stated in the docs. The output I see is:

is secure : true
port : 8080
It is possible that this is a bug that has been fixed but I don't see 
any changes in the archives that look relevant (I checked back to the 
end of 2003).

What version are you using? Can you try 4.1.31?
Mark
reynir wrote:
Hi,
As I understand the documentation (and my past experience shows) you are 
not correct. :)
the documentation :
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/coyote.html
states :
|secure|

Set this attribute to |true| if you wish to have calls to 
|request.isSecure()| to return |true| for requests received by this 
Connector (you would want this on an SSL Connector). The default value 
is |false|.

in short terms, this is not happening.
It's not requrired to have a https schema on this connector.
thanx,
-reynir
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: HTTPconnector problem

2005-02-08 Thread Caldarale, Charles R
 From: reynir [mailto:[EMAIL PROTECTED]
 Subject: Re: HTTPconnector problem
 
 As I understand the documentation (and my past experience 
 shows) you are not correct. :)

But we don't actually run the documentation.  Here's the code of interest (from 
5.0.25, the last one I downloaded the source for):

if (! req.scheme().isNull()) {
// use processor specified scheme to determine secure state
request.setSecure(req.scheme().equals(https));
} else {
// use connector scheme and secure configuration, (defaults to
// http and false respectively)
req.scheme().setString(connector.getScheme());
request.setSecure(connector.getSecure());
}

If I'm reading this correctly, the connector's secure attribute will only be 
used if the scheme for the request has not been set.  I suspect that, in your 
case, the scheme is http, forcing the secure attribute for the request to 
false.

 - Chuck


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

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



Re: Memory leak in tomcat 5.0.28

2005-02-08 Thread Mark Thomas
Marx, Mitchell E (Mitch), ALABS wrote:
I see the bugzilla ID: 
	http://issues.apache.org/bugzilla/show_bug.cgi?id=33368

Anyone know if this is present in Tomcat 4.1.30?
Yes.
http://issues.apache.org/bugzilla/show_bug.cgi?id=20758 is also present 
but is fixed in 4.1.31

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


Trouble getting CGI script to execute

2005-02-08 Thread Brelsfoard, Alex
I have been reading all the online documentation I can dig up and cannot find
the solution to my problem.
Quite simply, all I want to do is be able to run perl cgi script through my
Tomcat server.  I uncommented everything having to do with CGI in the Tomcat
web.xml conf file, restarted the server and placed my scriptmin the right
place.  All that happens now is the script is printed up to the screenjust
like a txt file.  It is executable.  I checked the logs and the log says that
a 304 code is sent to the browser.
ANY help would be much appreciated.
Thanks very much.
--Alex
 

Alex Brelsfoard 
Web Applications Developer 
Web Development Office 
Worcester Polytechnic Institute 
508-831-6147 
[EMAIL PROTECTED] 

 


using shared objects from tomcat

2005-02-08 Thread Andreas Andersson
Hi (again)!
I still have problems useing a shared library from within a tomcat 
webapp. The same code works from a standalone appication but not from 
tomcat.

If anyone can answer one or more of the following questions I would be 
happy.

1) Is there any way to log what a .so-file attempts to do without 
altering the source? This so that I can see if the .so tries anything 
funny thats not allowed from within tomcat.

2) Is there any way to get more information from an 
UnsatisfiedLinkError. Now that error is all I get, no reason or root 
cause at all.

3) What differs in how tomcat and a standalone java application loads 
libraries? And what is the restrictions on loading subsekvent libraris 
(ie the first one loads the ones it depends on).

If I could assigne Duke Dollars, Expert Exchange Dollars or some kind of 
Tomcat Dollars I would.

--
Andreas Andersson
IT Dept.
Travelstart Nordic
[EMAIL PROTECTED]
http://www.travelstart.se
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Trouble getting CGI script to execute

2005-02-08 Thread Warron French
I use apache to enable cgi scripts, and I had the same problem as you.

So, since I don't know Tomcat so well, I can offer you this.

Check in your config file to make sure that you have the line(s):

AddType application/x-httpd-cgi .cgi .sh .pl
AddHandler cgi-script .cgi .sh .pl   (I am not actually using this line but 
maybe you need to)

Also, in my httpd.conf file I am using some directives and options such as:

Directory /home/nrccwdt/public_html/
Options +Includes +ExecCGI
XbitHack On
/Directory

I am sure you know how the Directory directive works, but make sure that you do 
have the Options +ExecCGI, and XbitHack On lines also.

Good luck,
Warron French
Sr. Network Engineer
Xtria, LLC

-Original Message-
From: Brelsfoard, Alex [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 08, 2005 3:28 PM
To: tomcat-user@jakarta.apache.org
Subject: Trouble getting CGI script to execute


I have been reading all the online documentation I can dig up and cannot find
the solution to my problem.
Quite simply, all I want to do is be able to run perl cgi script through my
Tomcat server.  I uncommented everything having to do with CGI in the Tomcat
web.xml conf file, restarted the server and placed my scriptmin the right
place.  All that happens now is the script is printed up to the screenjust
like a txt file.  It is executable.  I checked the logs and the log says that
a 304 code is sent to the browser.
ANY help would be much appreciated.
Thanks very much.
--Alex
 

Alex Brelsfoard 
Web Applications Developer 
Web Development Office 
Worcester Polytechnic Institute 
508-831-6147 
[EMAIL PROTECTED] 

 

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



RE: Trouble getting CGI script to execute

2005-02-08 Thread Brelsfoard, Alex
Virendra Agarwal wrote:
 I think you can run cgi script under Apache only when installed under
cgi-bin subdir.
 
Right, sorry, forgot to include that.  I have placed the script in a cgi-bin
folder.  When I go to the folder that script is listed there in the directory
listing.  When I click on the file, that's when I get the contents of the
script displayed on the screen like a txt file.  Same thing happens if you
type in the appropriate address fully.
I have edited the part in the web.xml conf file referencing the cgi servlet
to verify that the cgi-bin folder containing my script is being affected, and
it is.
 
Thanks.
--Alex

Alex Brelsfoard 
Web Applications Developer 
Web Development Office 
Worcester Polytechnic Institute 
508-831-6147 
[EMAIL PROTECTED] 

 




From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 08, 2005 3:37 PM
To: Brelsfoard, Alex
Subject: Re: Trouble getting CGI script to execute


In a message dated 2/8/2005 3:28:41 PM Eastern Standard Time, [EMAIL PROTECTED]
writes:

I have been reading all the online documentation I can dig up and
cannot find
the solution to my problem.
Quite simply, all I want to do is be able to run perl cgi script
through my
Tomcat server.  I uncommented everything having to do with CGI in the
Tomcat
web.xml conf file, restarted the server and placed my scriptmin the
right
place.  All that happens now is the script is printed up to the
screenjust
like a txt file.  It is executable.  I checked the logs and the log
says that
a 304 code is sent to the browser.
ANY help would be much appreciated.
Thanks very much.


I think you can run cgi script under Apache only when installed under cgi-bin
subdir.
 
Virendra Agarwal 



RE: Session Objects

2005-02-08 Thread Dale, Matt

It's not impossible to make this work over a cluster but not with the included 
clustering classes in tomcat. You would have to write your own clustering 
classes.

The reason why it won't work is that each singleton will be individual to a 
classloader and each tomcat accross the cluster will obviously have its own 
classloaders. The standard clustering only shares the sessions that are stored 
within the standard session manager in tomcat.

-Original Message-
From: Shey Rab Pawo [mailto:[EMAIL PROTECTED]
Sent: 08 February 2005 17:44
To: Tomcat Users List
Subject: Re: Session Objects


Could you explain why this won't work across a cluster?  Thanks.


On Tue, 8 Feb 2005 17:28:59 -, Dale, Matt [EMAIL PROTECTED] wrote:
 
 Yes it will, this won't work accross a cluster. 
 Hi all,
   I' am storing session objects in a SINGLEON class object to keep all 
 active sessions. Does it give any problems in clustered enviornment since 
 singleton is a static referrence.
 
 Regards,
 Jagga
 

-- 
The radiance of all the stars does not equal a sixteenth part of the
moon's radiance, likewise, good deeds giving us merit, all these do
not equal a sixteenth part of the merit of loving-kindness..

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

Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the company. This E-mail and any files transmitted with it are 
confidential and solely for the use of the intended recipient. If you are not 
the intended recipient or the person responsible for delivering to the intended 
recipient, be advised that you have received this E-mail in error and that any 
use or copying is strictly prohibited. If you have received this E-mail in 
error please notify the beCogent postmaster at [EMAIL PROTECTED]
Unless expressly stated, opinions in this email are those of the individual 
sender and not beCogent Ltd. You must take full responsibility for virus 
checking this email and any attachments.
Please note that the content of this email or any of its attachments may 
contain data that falls within the scope of the Data Protection Acts and that 
you must ensure that any handling or processing of such data by you is fully 
compliant with the terms and provisions of the Data Protection Act 1984 and 
1998.


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

tools for Memory leaks

2005-02-08 Thread Mark
Hi,
I'm looking for a free tool to monitor my application on Tomcat
5.0.28? I don't see any changes in memory use on RH9 - but the load
is too low. What I'd like to test:
- high load
- potential memory leaks
- etc.

I'd rather to have a tool which have a minimum impact on performance,
but any tool will be fine for now.


Thank,
Mark.



__ 
Do you Yahoo!? 
All your favorites on one personal page – Try My Yahoo!
http://my.yahoo.com 

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



Re: Trouble getting CGI script to execute

2005-02-08 Thread Mark Thomas
Exactly where did you put your script? If you follow 
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/cgi-howto.html and use 
the defaults it is impossible to see the text of your script.

Assuming you only uncommented the global web.xml and did not edit any of 
the settings, your script should be in:
/WEB-INF/cgi/

and it is accessed through
/yourcontext/cgi-bin/yourscript.cgi
Mark
Brelsfoard, Alex wrote:
I have been reading all the online documentation I can dig up and cannot find
the solution to my problem.
Quite simply, all I want to do is be able to run perl cgi script through my
Tomcat server.  I uncommented everything having to do with CGI in the Tomcat
web.xml conf file, restarted the server and placed my scriptmin the right
place.  All that happens now is the script is printed up to the screenjust
like a txt file.  It is executable.  I checked the logs and the log says that
a 304 code is sent to the browser.
ANY help would be much appreciated.
Thanks very much.
--Alex
 

Alex Brelsfoard 
Web Applications Developer 
Web Development Office 
Worcester Polytechnic Institute 
508-831-6147 
[EMAIL PROTECTED] 

 


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


IllegalStateException: getOutputStream() has already been called for this response

2005-02-08 Thread DAVID TURNER

I'm trying to write a servlet that handles
business logic exceptions by specifying in the web.xml the jsp error page
that I want to use for a specific Exception (see web.xml snippet below).
I have this working when I use response.getWriter() in the servlet
instead of response.getOutputStream() -- see sample servlet code
below. But, when I try to use the response.getOutputStream() approach
the jsp error page doesn't work and an IllegalStateException:
getOutputStream() has already been called for this response  gets
thrown because the jsp is probably trying to get the OutputStream also.

Why does the response.getWriter() method
work even after headers/data have been written to the writer?

Is there any way to get the jsp error
page to work with the getOutputStream()? 

I would like to eventually compress
the response stream, but from all the examples I've come across on compression
they all use getOutputStream.




web.xml contents:

  error-page
 
exception-typeBookNotFoundException/exception-type
 
location/jsp/ErrorPage.jsp/location
  /error-page





servlet contents:

public void doPost(HttpServletRequest
req, HttpServletResponse res)

  
 throws ServletException, IOException {
 
  PrintWriter out = res.getWriter();

 
//OutputStream out = res.getOutputStream();

res.setContentType(text/plain);

   
try
{

   out.println(Line 1 of servlet);

   

   //out.write(Line
1 of servlet.getBytes());


  

   throw new BookNotFoundException(Book
doesn't exist); 
}
catch
(Exception e) {

   res.reset();

System.out.println(Caught exception:
 + e.getMessage());

 throw new ServletException(Dummy
Exception, e);
}

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

RE: Trouble getting CGI script to execute

2005-02-08 Thread Brelsfoard, Alex
I do not have apache installed on this server.  I was hoping to be able to do
everything I want with just one server.  I understand that if I cannot get
this to work with Tomcat, then I will have to install apache as well.  But I
have to try.
--Alex
 

Alex Brelsfoard 
Web Applications Developer 
Web Development Office 
Worcester Polytechnic Institute 
508-831-6147 
[EMAIL PROTECTED] 

 



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 08, 2005 3:52 PM
To: Brelsfoard, Alex
Subject: Re: Trouble getting CGI script to execute


In a message dated 2/8/2005 3:45:01 PM Eastern Standard Time, [EMAIL PROTECTED]
writes:


I have edited the part in the web.xml conf file referencing the cgi
servlet to verify that the cgi-bin folder containing my script is being
affected, and it is.

cgi has nothing to do with tomcat or web.xml.
You should be able to run cgi program from Apache without integrating Tomcat
which is J2EE Servlet container.
go to apache default port http://localhost:80/cgi-bin/prog
 
 


RE: Trouble getting CGI script to execute

2005-02-08 Thread Brelsfoard, Alex
OK, now we're getting somewhere.  There was no entry for mime-type for file
extension cgi.  I added:
mime-mapping
extensioncgi/extension
mime-typeapplication/x-httpd-cgi/mime-type
/mime-mapping
Which was not there before.  Do I have the correct mime-type info there?
When I go to my script (via the web) now it asks me to download the file.
This mean something to someone?
Thanks.
--Alex 


Alex Brelsfoard
Web Applications Developer
Web Development Office
Worcester Polytechnic Institute
508-831-6147
[EMAIL PROTECTED]

-Original Message-
From: Warron French [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 08, 2005 3:42 PM
To: Tomcat Users List
Subject: RE: Trouble getting CGI script to execute

I use apache to enable cgi scripts, and I had the same problem as you.

So, since I don't know Tomcat so well, I can offer you this.

Check in your config file to make sure that you have the line(s):

AddType application/x-httpd-cgi .cgi .sh .pl
AddHandler cgi-script .cgi .sh .pl   (I am not actually using this line but
maybe you need to)

Also, in my httpd.conf file I am using some directives and options such as:

Directory /home/nrccwdt/public_html/
Options +Includes +ExecCGI
XbitHack On
/Directory

I am sure you know how the Directory directive works, but make sure that you
do have the Options +ExecCGI, and XbitHack On lines also.

Good luck,
Warron French
Sr. Network Engineer
Xtria, LLC

-Original Message-
From: Brelsfoard, Alex [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 08, 2005 3:28 PM
To: tomcat-user@jakarta.apache.org
Subject: Trouble getting CGI script to execute


I have been reading all the online documentation I can dig up and cannot find
the solution to my problem.
Quite simply, all I want to do is be able to run perl cgi script through my
Tomcat server.  I uncommented everything having to do with CGI in the Tomcat
web.xml conf file, restarted the server and placed my scriptmin the right
place.  All that happens now is the script is printed up to the screenjust
like a txt file.  It is executable.  I checked the logs and the log says that
a 304 code is sent to the browser.
ANY help would be much appreciated.
Thanks very much.
--Alex
 

Alex Brelsfoard
Web Applications Developer
Web Development Office
Worcester Polytechnic Institute
508-831-6147
[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: Trouble getting CGI script to execute

2005-02-08 Thread Mark Thomas
You are heading in the wrong direction. You don't need to specify a 
mime-type. (Neither do you need Apache.)

You have a simple configuration error. See my previous post.
Mark
Brelsfoard, Alex wrote:
OK, now we're getting somewhere.  There was no entry for mime-type for file
extension cgi.  I added:
mime-mapping
extensioncgi/extension
mime-typeapplication/x-httpd-cgi/mime-type
/mime-mapping
Which was not there before.  Do I have the correct mime-type info there?
When I go to my script (via the web) now it asks me to download the file.
This mean something to someone?
Thanks.
--Alex 

Alex Brelsfoard
Web Applications Developer
Web Development Office
Worcester Polytechnic Institute
508-831-6147
[EMAIL PROTECTED]
-Original Message-
From: Warron French [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 08, 2005 3:42 PM
To: Tomcat Users List
Subject: RE: Trouble getting CGI script to execute

I use apache to enable cgi scripts, and I had the same problem as you.
So, since I don't know Tomcat so well, I can offer you this.
Check in your config file to make sure that you have the line(s):
AddType application/x-httpd-cgi .cgi .sh .pl
AddHandler cgi-script .cgi .sh .pl   (I am not actually using this line but
maybe you need to)
Also, in my httpd.conf file I am using some directives and options such as:
Directory /home/nrccwdt/public_html/
Options +Includes +ExecCGI
XbitHack On
/Directory
I am sure you know how the Directory directive works, but make sure that you
do have the Options +ExecCGI, and XbitHack On lines also.
Good luck,
Warron French
Sr. Network Engineer
Xtria, LLC
-Original Message-
From: Brelsfoard, Alex [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 08, 2005 3:28 PM
To: tomcat-user@jakarta.apache.org
Subject: Trouble getting CGI script to execute
I have been reading all the online documentation I can dig up and cannot find
the solution to my problem.
Quite simply, all I want to do is be able to run perl cgi script through my
Tomcat server.  I uncommented everything having to do with CGI in the Tomcat
web.xml conf file, restarted the server and placed my scriptmin the right
place.  All that happens now is the script is printed up to the screenjust
like a txt file.  It is executable.  I checked the logs and the log says that
a 304 code is sent to the browser.
ANY help would be much appreciated.
Thanks very much.
--Alex
 

Alex Brelsfoard
Web Applications Developer
Web Development Office
Worcester Polytechnic Institute
508-831-6147
[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]


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


RE: Trouble getting CGI script to execute

2005-02-08 Thread Brelsfoard, Alex
This is one area I was not entirely sure about.  I did uncomment everything
and did NOT change anything.
I do not really have a ROOT url.  I setup a /cgi-bin directory in
server.xml.  I then created a WEB-INF and cgi folders and placed my script in
there.
So the path to the file is /path/cgi-bin/WEB-INF/cgi/script.cgi
And the URL: domain.com/cgi-bin/script.cgi
Did I miss something here?
Thanks.
--Alex


Alex Brelsfoard
Web Applications Developer
Web Development Office
Worcester Polytechnic Institute
508-831-6147
[EMAIL PROTECTED]

-Original Message-
From: Mark Thomas [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 08, 2005 3:55 PM
To: Tomcat Users List
Subject: Re: Trouble getting CGI script to execute

Exactly where did you put your script? If you follow
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/cgi-howto.html and use the
defaults it is impossible to see the text of your script.

Assuming you only uncommented the global web.xml and did not edit any of the
settings, your script should be in:
/WEB-INF/cgi/

and it is accessed through
/yourcontext/cgi-bin/yourscript.cgi

Mark


Brelsfoard, Alex wrote:
 I have been reading all the online documentation I can dig up and 
 cannot find the solution to my problem.
 Quite simply, all I want to do is be able to run perl cgi script 
 through my Tomcat server.  I uncommented everything having to do with 
 CGI in the Tomcat web.xml conf file, restarted the server and placed 
 my scriptmin the right place.  All that happens now is the script is 
 printed up to the screenjust like a txt file.  It is executable.  I 
 checked the logs and the log says that a 304 code is sent to the browser.
 ANY help would be much appreciated.
 Thanks very much.
 --Alex
  
 
 Alex Brelsfoard
 Web Applications Developer
 Web Development Office
 Worcester Polytechnic Institute
 508-831-6147
 [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]



Context element precedence

2005-02-08 Thread Bengt Lord
In the TC 5.5 doc under Server Configuration Reference it says:
In addition to nesting Context elements inside a Host element, you can also 
store them:
in the individual $CATALINA_HOME/conf/context.xml file: ...
in the individual 
$CATALINA_HOME/conf/[enginename]/[hostname]/context.xml.default file: ...
in individual files (with a .xml extension) in the 
$CATALINA_HOME/conf/[enginename]/[hostname]/ directory
if the previous file was not found for this application,
in individual file at /META-INF/context.xml inside the application files

Is it the override attribute then who decides if it is the next context 
element who has precedence or not if there happens to be duplicate 
definitions of parameters or attributes?

Thanks
Bengt Lord 

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


RE: No jsp compiles

2005-02-08 Thread Brian McGovern
Follow Up: in case anyone had the same issue.  

It was my installation of tomcat.  I blew away old instance, downloaded 
binaries again and this time JSP's compiled fine.  My guess is that the 
original tar ball was either a result of an incomplete download or was just 
simply the wrong one.  Who knows.



-Original Message-
From: Brian McGovern [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 08, 2005 12:53 PM
To: Tomcat Users List
Subject: No jsp compiles


I just installed tomcat 5.0.28 and java 1.4.2_06 on redhat and no JSP compiles, 
with the following error:  Even jsp with one line in them

Any ideas?

org.apache.jasper.JasperException: Unable to compile class for JSP

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:520)

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)
root cause 
java.lang.NullPointerException

org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.doesModernCompilerExist(CompilerAdapterFactory.java:143)

org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:97)
org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:929)
org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:758)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)

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)



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



Re: Trouble getting CGI script to execute

2005-02-08 Thread Mark Thomas
OK. Making progress.
Can you try the following? (all steps included - even the ones you have 
already done) Once it works we can tweak it to give the configuration 
you want. These steps assume a default install.

Create a directory $CATALINA_HOME/webapps/myapp/
Create a directory $CATALINA_HOME/webapps/myapp/WEB-INF
Create a directory $CATALINA_HOME/webapps/myapp/WEB-INF/cgi
Place your script called (script.cgi) in:
$CATALINA_HOME/webapps/myapp/WEB-INF/cgi
Uncomment the cgi stuff in $CATALINA_HOME/conf/web.xml
Rename $CATALINA_HOME/server/servlets-cgi.renametojar to 
$CATALINA_HOME/server/servlets-cgi.jar

Restart tomcat.
Browse to http://host:port/myapp/cgi-bin/script.cgi
Let me know what happens.
Mark
Brelsfoard, Alex wrote:
This is one area I was not entirely sure about.  I did uncomment everything
and did NOT change anything.
I do not really have a ROOT url.  I setup a /cgi-bin directory in
server.xml.  I then created a WEB-INF and cgi folders and placed my script in
there.
So the path to the file is /path/cgi-bin/WEB-INF/cgi/script.cgi
And the URL: domain.com/cgi-bin/script.cgi
Did I miss something here?
Thanks.
--Alex
Alex Brelsfoard
Web Applications Developer
Web Development Office
Worcester Polytechnic Institute
508-831-6147
[EMAIL PROTECTED]
-Original Message-
From: Mark Thomas [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 08, 2005 3:55 PM
To: Tomcat Users List
Subject: Re: Trouble getting CGI script to execute

Exactly where did you put your script? If you follow
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/cgi-howto.html and use the
defaults it is impossible to see the text of your script.
Assuming you only uncommented the global web.xml and did not edit any of the
settings, your script should be in:
/WEB-INF/cgi/
and it is accessed through
/yourcontext/cgi-bin/yourscript.cgi
Mark
Brelsfoard, Alex wrote:
I have been reading all the online documentation I can dig up and 
cannot find the solution to my problem.
Quite simply, all I want to do is be able to run perl cgi script 
through my Tomcat server.  I uncommented everything having to do with 
CGI in the Tomcat web.xml conf file, restarted the server and placed 
my scriptmin the right place.  All that happens now is the script is 
printed up to the screenjust like a txt file.  It is executable.  I 
checked the logs and the log says that a 304 code is sent to the browser.
ANY help would be much appreciated.
Thanks very much.
--Alex

Alex Brelsfoard
Web Applications Developer
Web Development Office
Worcester Polytechnic Institute
508-831-6147
[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]


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


RE: tomcat CPU utilization pegged...total CPU only 50%

2005-02-08 Thread Kevin Williams


 -Original Message-
 From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
 Sent: Monday, February 07, 2005 10:04 PM
 To: Tomcat Users List
 Subject: RE: tomcat CPU utilization pegged...total CPU only 50%
 [bcc][faked-from][bayes]
 Importance: Low
 
  From: Kevin Williams [mailto:[EMAIL PROTECTED]
  Subject: RE: tomcat CPU utilization pegged...total CPU only 50%
 
  The two Xeon CPU's are hyperthreaded to represent 4 CPU's
  on the machine.  I'm not sure exactly how tomcat/java
  interact with this, but it was not favorable.
 
 Other than for determining the number of threads to use for parallel
GC,
 the JVM does not care how many CPUs there are.  I don't know what
Windows
 returns for the number of CPUs installed when hyperthreading is
enabled,
 but you can determine that with the Runtime.availableProcessors()
method.
 
 You really should be measuring performance by some measurement of
actual
 workload completed, not CPU utilization.  Turning off hyperthreading
may
 actually reduce your overall throughput.  (Then again, it might make
it
 better - very application dependent.)
 
 

You're right.  I was measuring average response time.  The CPU was just
the bottleneck.  My average response time under a specified user load
actually decreased with hyperthreading off.  My next step is to start
analyzing the code:)

Thanks for the pointer!

Kevin Williams

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



RE: Trouble getting CGI script to execute

2005-02-08 Thread Brelsfoard, Alex
I'm sorry.  I really don't mean to waste your time.  I'm just a bit confused
here.  You agreed that I do not need to use apache, but your advice was
explained to me using apache configuration file format.  I just figured that
you were giving me examples/ideas. Tomcat does not have an httpd.conf file,
it has server.xml and web.xml and the format of these files are completely
different from apache.  Hence my confusion.
The idea made since since there were no instructions for Tomcat to know how
to handle .cgi files.
Again, I apologize if I'm missing something blatantly obvious, but I've been
working on this for several days now and not getting anywhere.
Thanks.
--Alex


Alex Brelsfoard
Web Applications Developer
Web Development Office
Worcester Polytechnic Institute
508-831-6147
[EMAIL PROTECTED]

-Original Message-
From: Mark Thomas [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 08, 2005 4:03 PM
To: Tomcat Users List
Subject: Re: Trouble getting CGI script to execute

You are heading in the wrong direction. You don't need to specify a
mime-type. (Neither do you need Apache.)

You have a simple configuration error. See my previous post.

Mark

Brelsfoard, Alex wrote:
 OK, now we're getting somewhere.  There was no entry for mime-type for 
 file extension cgi.  I added:
 mime-mapping
 extensioncgi/extension
 mime-typeapplication/x-httpd-cgi/mime-type
 /mime-mapping
 Which was not there before.  Do I have the correct mime-type info there?
 When I go to my script (via the web) now it asks me to download the file.
 This mean something to someone?
 Thanks.
 --Alex
 
 
 Alex Brelsfoard
 Web Applications Developer
 Web Development Office
 Worcester Polytechnic Institute
 508-831-6147
 [EMAIL PROTECTED]
 
 -Original Message-
 From: Warron French [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, February 08, 2005 3:42 PM
 To: Tomcat Users List
 Subject: RE: Trouble getting CGI script to execute
 
 I use apache to enable cgi scripts, and I had the same problem as you.
 
 So, since I don't know Tomcat so well, I can offer you this.
 
 Check in your config file to make sure that you have the line(s):
 
 AddType application/x-httpd-cgi .cgi .sh .pl
 AddHandler cgi-script .cgi .sh .pl   (I am not actually using this line but
 maybe you need to)
 
 Also, in my httpd.conf file I am using some directives and options such as:
 
 Directory /home/nrccwdt/public_html/
 Options +Includes +ExecCGI
 XbitHack On
 /Directory
 
 I am sure you know how the Directory directive works, but make sure 
 that you do have the Options +ExecCGI, and XbitHack On lines also.
 
 Good luck,
 Warron French
 Sr. Network Engineer
 Xtria, LLC
 
 -Original Message-
 From: Brelsfoard, Alex [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, February 08, 2005 3:28 PM
 To: tomcat-user@jakarta.apache.org
 Subject: Trouble getting CGI script to execute
 
 
 I have been reading all the online documentation I can dig up and 
 cannot find the solution to my problem.
 Quite simply, all I want to do is be able to run perl cgi script 
 through my Tomcat server.  I uncommented everything having to do with 
 CGI in the Tomcat web.xml conf file, restarted the server and placed 
 my scriptmin the right place.  All that happens now is the script is 
 printed up to the screenjust like a txt file.  It is executable.  I 
 checked the logs and the log says that a 304 code is sent to the browser.
 ANY help would be much appreciated.
 Thanks very much.
 --Alex
  
 
 Alex Brelsfoard
 Web Applications Developer
 Web Development Office
 Worcester Polytechnic Institute
 508-831-6147
 [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]
 
 
 


-
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: Trouble getting CGI script to execute

2005-02-08 Thread Brelsfoard, Alex
Sorry my server was a bit slow and I didn't get this message until after I
had sent my last.
Apologies. 


Alex Brelsfoard
Web Applications Developer
Web Development Office
Worcester Polytechnic Institute
508-831-6147
[EMAIL PROTECTED]

-Original Message-
From: Mark Thomas [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 08, 2005 4:15 PM
To: Tomcat Users List
Subject: Re: Trouble getting CGI script to execute

OK. Making progress.

Can you try the following? (all steps included - even the ones you have
already done) Once it works we can tweak it to give the configuration you
want. These steps assume a default install.

Create a directory $CATALINA_HOME/webapps/myapp/ Create a directory
$CATALINA_HOME/webapps/myapp/WEB-INF
Create a directory $CATALINA_HOME/webapps/myapp/WEB-INF/cgi

Place your script called (script.cgi) in:
$CATALINA_HOME/webapps/myapp/WEB-INF/cgi

Uncomment the cgi stuff in $CATALINA_HOME/conf/web.xml

Rename $CATALINA_HOME/server/servlets-cgi.renametojar to
$CATALINA_HOME/server/servlets-cgi.jar

Restart tomcat.

Browse to http://host:port/myapp/cgi-bin/script.cgi

Let me know what happens.

Mark

Brelsfoard, Alex wrote:
 This is one area I was not entirely sure about.  I did uncomment 
 everything and did NOT change anything.
 I do not really have a ROOT url.  I setup a /cgi-bin directory in 
 server.xml.  I then created a WEB-INF and cgi folders and placed my 
 script in there.
 So the path to the file is /path/cgi-bin/WEB-INF/cgi/script.cgi
 And the URL: domain.com/cgi-bin/script.cgi Did I miss something here?
 Thanks.
 --Alex
 
 
 Alex Brelsfoard
 Web Applications Developer
 Web Development Office
 Worcester Polytechnic Institute
 508-831-6147
 [EMAIL PROTECTED]
 
 -Original Message-
 From: Mark Thomas [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, February 08, 2005 3:55 PM
 To: Tomcat Users List
 Subject: Re: Trouble getting CGI script to execute
 
 Exactly where did you put your script? If you follow 
 http://jakarta.apache.org/tomcat/tomcat-5.5-doc/cgi-howto.html and use 
 the defaults it is impossible to see the text of your script.
 
 Assuming you only uncommented the global web.xml and did not edit any 
 of the settings, your script should be in:
 /WEB-INF/cgi/
 
 and it is accessed through
 /yourcontext/cgi-bin/yourscript.cgi
 
 Mark
 
 
 Brelsfoard, Alex wrote:
 
I have been reading all the online documentation I can dig up and 
cannot find the solution to my problem.
Quite simply, all I want to do is be able to run perl cgi script 
through my Tomcat server.  I uncommented everything having to do with 
CGI in the Tomcat web.xml conf file, restarted the server and placed 
my scriptmin the right place.  All that happens now is the script is 
printed up to the screenjust like a txt file.  It is executable.  I 
checked the logs and the log says that a 304 code is sent to the browser.
ANY help would be much appreciated.
Thanks very much.
--Alex
 

Alex Brelsfoard
Web Applications Developer
Web Development Office
Worcester Polytechnic Institute
508-831-6147
[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]
 
 
 


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


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



Re: OT: Version control tool

2005-02-08 Thread Chris Shenton
John Najarian [EMAIL PROTECTED] writes:

 Also, a bug tracking application would be nice also.
 These need to be run on Windows.

I've used RT (Request Tracker) for feature/issue/bug tracking.  It
works well and is quite powerful.  Clients access it through a web
interface, or email requests into it.  It's actively developed.

  http://bestpractical.com/rt/

It's in Perl and uses a backend SQL DB; I'm using MySQL. I front it
with Apache.  I'm running it on FreeBSD but since Perl, Apache, and
MySQL now run on Windows you should be able to serve it from there. 


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



RE: JTDS help

2005-02-08 Thread Charles P. Killmer
Well there aren't any file access errors but it looks like for every
request it is racing through all of the directories and compiling
whatever it finds.  Is there a setting that tells tomcat to recompile on
every request?

Charles 

-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 08, 2005 9:36 AM
To: Tomcat Users List
Subject: RE: JTDS help

Hey Charles,

I'm sure it's quite frustrating, but I've already shown that your
precise code runs way faster than your original statistics, and that was
only on a modest box. It serves no purpose therefore to believe it could
be the language of choice, because I cannot replicate your speed issue.
See what your monitoring brings back. What kind of setup are you
running?

Allistair.

 -Original Message-
 From: Charles P. Killmer [mailto:[EMAIL PROTECTED]
 Sent: 08 February 2005 15:33
 To: Tomcat Users List
 Subject: RE: JTDS help
 
 
 I don't mean to be contrary, I am just trying to pin this down.  The 
 database and tomcat server are only separated by a 10/100 switch.  I 
 am going to run filemon and watch for access denied messages, then 
 regmon and watch for similar things.  The network is very fast, the db

 server is not being used by anyone else.  It seems to me that if it 
 were environmental, it would affect these other programming languages 
 the same.  I checked and the jtds.jar file is in tomcat\common\lib.
 
 Any other thoughts while you wait for the results from filemon and 
 regmon?
 
 Thank you
 Charles
 
 -Original Message-
 From: Allistair Crossley [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, February 08, 2005 8:44 AM
 To: Tomcat Users List
 Subject: RE: JTDS help
 
 Hi,
 
 No it was a totally raw test of your code which by virtue of using 
 DriverManager does not use connection pooling even if I do have it 
 enabled in my web app.
 
 jTDS installation is simply adding the JAR to tomcat/common/lib
 
 Are you running Tomcat on the same server as the database?
 
 Config file won't have anything to do with this. I am certain it is 
 environmental.
 
 Ali.
 
  -Original Message-
  From: Charles P. Killmer [mailto:[EMAIL PROTECTED]
  Sent: 08 February 2005 14:41
  To: Tomcat Users List
  Subject: RE: JTDS help
  
  
  Well I must have missed something because it isn't working
 correctly.
  ;)  Were you using connection pooling in your test?  Perhaps I have 
  something messed up in a config file?  Or installed jTDS
 incorrectly?
  
  Thanks for all your help.
  Charles
  
  -Original Message-
  From: Allistair Crossley [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, February 08, 2005 3:17 AM
  To: Tomcat Users List
  Subject: RE: JTDS help
  
  Hi Charles,
  
  I've just taken your code and run it through our Tomcat
 5.5, jTDS, SQL
 
  Server 2000 web application and it took approx. 0.5s to compile and 
  subsequent requests were instantaneous  0.5s.
  
  I would look again at the issues I first noted, perhaps there is 
  something you have missed.
  
  Cheers, Allistair.
  
   -Original Message-
   From: Charles P. Killmer [mailto:[EMAIL PROTECTED]
   Sent: 07 February 2005 22:42
   To: Tomcat Users List
   Subject: RE: JTDS help
   
   
   When I strip the code to simply this,
   
   %@ page language=java import=java.sql.*% %
 Connection conn =
   DriverManager.getConnection(jdbc:jtds:sqlserver://*.*.*.*:143
   3/dbname;u
   ser=*;password=**);
   conn.close();
   %
   
   It still runs slowly.  And yes it is multiple refreshes.  
   
   I have tried to use connection pooling but have not been
  able to get
   it working yet.  Also the thing that I run into with connection 
   pooling the inability to use the SQL Statement of select
  @@IDENTITY
   from table.
   With connection pooling, you run the risk of getting the ID for a 
   record that someone else inserted with the same connection.
   
   If connection pooling is the only option, I can work around that 
   issue.
   But it seems that if PHP, ASP, ASP.NET... Can access the
  database just
  
   fine without connection pooling, JSP should be able to as well.
   
   Any thoughts?
   Thanks for all your input.
   Charles
   
   -Original Message-
   From: Mario Winterer [mailto:[EMAIL PROTECTED]
   Sent: Monday, February 07, 2005 2:43 PM
   To: Tomcat Users List
   Subject: Re: JTDS help
   
   I do not think, jsp compilation is the problem - well, the first 
   request will last long, but after the jsp is compiled, subsequent 
   calls will not be remarkable slower than executing pure compiled 
   servlet code.
   (Charles, I hope you did not measure the time for the
 first request
   only
   - which indeed includes compilation time, but for
 subsequent calls
   too).
   So to me opening the connection is the major problem. 
  Because the code
  
   itself contains html-output, I think using jsp is quite ok.
   The code would be much cleaner, if Charles used the JSTL
  tag-library:
   
   %@ page 

RE: using shared objects from tomcat

2005-02-08 Thread Benson Margulies
1) Your monitoring options depend on what unix(-like) system you are
running on. On Linux, there's strace. On Solaris, truss. On HPUX and
AIX? I forget. To do this PROGRAMMATICALLY to create a sandbox? Forget
it. The Unix Approach is this:

A) create a uid/gid with only the access that you want your code to
have.
B) Run tomcat under that UID/GID. If you want the shared lib code to
have less access than Java code, you need to introduce a process
boundary instead of using JNI.

2) Generally, you can get some clues on UnsatisfiedLinkError, in a
pinch, by using LD_DEBUG or strace (or truss or whatever).

3) Read the JNDI-howto. I happen to have left behind some useful clues
in there. However, the following might also be useful.

A) Any .so has to be in java.library.path and in LD_LIBRARY_PATH. Any
dependencies of the .so (visible with 'ldd', likewise).

B) A native class can only be loaded in One Classloader. Tomcat has a
bunch of classloaders. If you run without a security manager, you \can/
load a native class in a webapp class loader, but it will often cause
you pain and suffering. If you undeploy and redeploy the webapp, chances
are that the old classloader will still be around with the native class
in it, unless you were amazingly careful with reference management.

Thus, I always put native classes in the 'common' classloader by adding
the jars to common.loader in catalina.properties.

4) I have come to believe that the shared objects that you use for JNI
should be thin wrappers that make their own calls to dlopen/dlsym to
find the guts of your code. This insulates you from the various stupid
things that the JVM makers do from time to time in picking the wrong
arguments to dlopen.

5) Consider using an RPC protocol to talk to a server written in C/C++
instead of using JNI in the first place. If the performance is
acceptable, your life could be a lot simpler.



-Original Message-
From: Andreas Andersson [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 08, 2005 3:32 PM
To: Tomcat Users List
Subject: using shared objects from tomcat

Hi (again)!

I still have problems useing a shared library from within a tomcat
webapp. The same code works from a standalone appication but not from
tomcat.

If anyone can answer one or more of the following questions I would be
happy.

1) Is there any way to log what a .so-file attempts to do without
altering the source? This so that I can see if the .so tries anything
funny thats not allowed from within tomcat.

2) Is there any way to get more information from an
UnsatisfiedLinkError. Now that error is all I get, no reason or root
cause at all.

3) What differs in how tomcat and a standalone java application loads
libraries? And what is the restrictions on loading subsekvent libraris
(ie the first one loads the ones it depends on).

If I could assigne Duke Dollars, Expert Exchange Dollars or some kind of
Tomcat Dollars I would.

--
Andreas Andersson
IT Dept.
Travelstart Nordic
[EMAIL PROTECTED]
http://www.travelstart.se

-
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: Trouble getting CGI script to execute

2005-02-08 Thread Brelsfoard, Alex
Ok.  So I did everything you said.  Still not working.
I get a 404 error.
So I took it step by step to see if I made typos or something.  If I go to
http://host:port I see the directory listing including myapp  I click on
myapp.  There is nothing in the directory listing.  I then add
/cgi-bin/script.cgi to the end, to make
http://host:port/myapp/cgi-bin/script.cgi.  Same result: 404.
I then tried http://host:port/myapp/script.cgi.  Same result.
I then tried http://host:port/myapp/WEB-INF/cgi/script.cgi.  This time it
asked me if I want to open or download this file.
shrug
Any ideas?
Thanks.
--Alex


Alex Brelsfoard
Web Applications Developer
Web Development Office
Worcester Polytechnic Institute
508-831-6147
[EMAIL PROTECTED]

-Original Message-
From: Mark Thomas [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 08, 2005 4:15 PM
To: Tomcat Users List
Subject: Re: Trouble getting CGI script to execute

OK. Making progress.

Can you try the following? (all steps included - even the ones you have
already done) Once it works we can tweak it to give the configuration you
want. These steps assume a default install.

Create a directory $CATALINA_HOME/webapps/myapp/ Create a directory
$CATALINA_HOME/webapps/myapp/WEB-INF
Create a directory $CATALINA_HOME/webapps/myapp/WEB-INF/cgi

Place your script called (script.cgi) in:
$CATALINA_HOME/webapps/myapp/WEB-INF/cgi

Uncomment the cgi stuff in $CATALINA_HOME/conf/web.xml

Rename $CATALINA_HOME/server/servlets-cgi.renametojar to
$CATALINA_HOME/server/servlets-cgi.jar

Restart tomcat.

Browse to http://host:port/myapp/cgi-bin/script.cgi

Let me know what happens.

Mark

Brelsfoard, Alex wrote:
 This is one area I was not entirely sure about.  I did uncomment 
 everything and did NOT change anything.
 I do not really have a ROOT url.  I setup a /cgi-bin directory in 
 server.xml.  I then created a WEB-INF and cgi folders and placed my 
 script in there.
 So the path to the file is /path/cgi-bin/WEB-INF/cgi/script.cgi
 And the URL: domain.com/cgi-bin/script.cgi Did I miss something here?
 Thanks.
 --Alex
 
 
 Alex Brelsfoard
 Web Applications Developer
 Web Development Office
 Worcester Polytechnic Institute
 508-831-6147
 [EMAIL PROTECTED]
 
 -Original Message-
 From: Mark Thomas [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, February 08, 2005 3:55 PM
 To: Tomcat Users List
 Subject: Re: Trouble getting CGI script to execute
 
 Exactly where did you put your script? If you follow 
 http://jakarta.apache.org/tomcat/tomcat-5.5-doc/cgi-howto.html and use 
 the defaults it is impossible to see the text of your script.
 
 Assuming you only uncommented the global web.xml and did not edit any 
 of the settings, your script should be in:
 /WEB-INF/cgi/
 
 and it is accessed through
 /yourcontext/cgi-bin/yourscript.cgi
 
 Mark
 
 
 Brelsfoard, Alex wrote:
 
I have been reading all the online documentation I can dig up and 
cannot find the solution to my problem.
Quite simply, all I want to do is be able to run perl cgi script 
through my Tomcat server.  I uncommented everything having to do with 
CGI in the Tomcat web.xml conf file, restarted the server and placed 
my scriptmin the right place.  All that happens now is the script is 
printed up to the screenjust like a txt file.  It is executable.  I 
checked the logs and the log says that a 304 code is sent to the browser.
ANY help would be much appreciated.
Thanks very much.
--Alex
 

Alex Brelsfoard
Web Applications Developer
Web Development Office
Worcester Polytechnic Institute
508-831-6147
[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]
 
 
 


-
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 5.5.7/DataSourceRealm/Manager app

2005-02-08 Thread Phillip Qin
I am having serious issue with Tomcat Manager app using DataSourceRealm
during upgrading from Tomcat 5.0.28 to 5.5.7. The issue is, after I accessed
Tomcat Manager app couple of times, I got this exception

8-Feb-2005 2:19:24 PM org.apache.catalina.realm.DataSourceRealm open
SEVERE: Exception performing authentication
org.apache.commons.dbcp.SQLNestedException: Cannot get a connection, pool
exhausted
at
org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.ja
va:103)
at
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:5
40)
at
org.apache.catalina.realm.DataSourceRealm.open(DataSourceRealm.java:407)
at
org.apache.catalina.realm.DataSourceRealm.getPassword(DataSourceRealm.java:4
59)
at
org.apache.catalina.realm.DataSourceRealm.authenticate(DataSourceRealm.java:
339)
at
org.apache.catalina.realm.DataSourceRealm.authenticate(DataSourceRealm.java:
284)
at
org.apache.catalina.authenticator.BasicAuthenticator.authenticate(BasicAuthe
nticator.java:181)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:446)
at
org.apache.catalina.valves.RequestFilterValve.process(RequestFilterValve.jav
a:275)
at
org.apache.catalina.valves.RemoteAddrValve.invoke(RemoteAddrValve.java:80)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126
)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105
)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:306)
at
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:385)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:745)
at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675)
at
org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:868)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:684)
at java.lang.Thread.run(Unknown Source)
Caused by: java.util.NoSuchElementException: Timeout waiting for idle object
at
org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPoo
l.java:756)
at
org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.ja
va:95)
... 21 more

I took a look at the connections. They had never been evicted nor removed.
This problem only happened on Tomcat 5.5. 4.x/5.0 were fine.


My configuration is jdk 1.5.0, tomcat 5.5.7, commons-dbcp-1.2.1,
commons-pool-1.2, mysql-connector-java-3.1.6-bin, MySQL 4.1.5

${catalina.home}/conf/Server.xml

Server port=8005 shutdown=SHUTDOWN

  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
/
  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener /
  Listener
className=org.apache.catalina.storeconfig.StoreConfigLifecycleListener/

  GlobalNamingResources

Resource auth=Container name=jdbc/manager
type=javax.sql.DataSource
driverClassName=com.mysql.jdbc.Driver
url=jdbc:mysql://1.2.3.4:3306/webapps
username=username
password=password
factory=org.apache.commons.dbcp.BasicDataSourceFactory
maxActive=4
maxIdle=1
minIdle=1
maxWait=15000
removeAbandoned=true
validationQuery=SELECT 1
testOnBorrow=true
testOnReturn=true
minEvictableIdleTimeMillis=-1
timeBetweenEvictionRunsMillis=3
numTestsPerEvictionRun=1
testWhileIdle=true
/

  /GlobalNamingResources

  Service name=Catalina

Connector port=8080 maxThreads=150 minSpareThreads=25
maxSpareThreads=75
   enableLookups=false redirectPort=8443 acceptCount=100
   connectionTimeout=2 disableUploadTimeout=true /

Connector port=8009 
   enableLookups=false redirectPort=8443 protocol=AJP/1.3
/


Engine name=Catalina defaultHost=my.localhost jvmRoute=jvm1



Realm className=org.apache.catalina.realm.DataSourceRealm
dataSourceName=jdbc/manager
digest=MD5
roleNameCol=role_name
userCredCol=user_pass
userNameCol=user_name
userRoleTable=user_roles
userTable=users
/ 

  Host name=my.localhost appBase=webapps/www.mydomain.com
   unpackWARs=true autoDeploy=false
   xmlValidation=false xmlNamespaceAware=false /


/Engine

  /Service

/Server



Re: IllegalStateException: getOutputStream() has already been called for this response

2005-02-08 Thread Roberto Cosenza
Your approach is bad but don't worry. If you have time, read something about 
MVC. You will need it eventually.

To make your servlet work,  try something like:
public void doPost(HttpServletRequest req, HttpServletResponse res) 
   throws ServletException, IOException { 
 
StringBuffer myOutput = new StringBuffer();
   
try { 
myOutput.append(Here I'm not doing anything illegal); 
   

if(true)   
throw new BookNotFoundException(Book doesn't exist); 
} 
catch (Exception e) { 
  System.out.println(Caught exception:  + e.getMessage()); 
throw new ServletException(Dummy Exception, e); 
}

// you reach this only if no errors have been caught so no error page to display
OutputStream out = res.getOutputStream(); 
res.setContentType(text/plain);
out.println(myOutput.toString()); 


}
/roberto




  - Original Message - 
  From: DAVID TURNER 
  To: tomcat-user@jakarta.apache.org 
  Sent: Tuesday, February 08, 2005 9:56 PM
  Subject: IllegalStateException: getOutputStream() has already been called for 
this response 



  I'm trying to write a servlet that handles business logic exceptions by 
specifying in the web.xml the jsp error page that I want to use for a specific 
Exception (see web.xml snippet below).  I have this working when I use 
response.getWriter() in the servlet instead of response.getOutputStream()  -- 
see sample servlet code below.  But, when I try to use the 
response.getOutputStream() approach the jsp error page  doesn't work and an 
IllegalStateException: getOutputStream() has already been called for this 
response  gets thrown because the jsp is probably trying to get the 
OutputStream also. 

  Why does the response.getWriter() method work even after headers/data have 
been written to the writer? 

  Is there any way to get the jsp error page to work with the 
getOutputStream()?   

  I would like to eventually compress the response stream, but from all the 
examples I've come across on compression they all use getOutputStream. 




  web.xml contents: 

  error-page 
  exception-typeBookNotFoundException/exception-type 
  location/jsp/ErrorPage.jsp/location 
  /error-page 





  servlet contents: 

  public void doPost(HttpServletRequest req, HttpServletResponse res) 
 throws ServletException, IOException { 
  PrintWriter out = res.getWriter(); 

  //OutputStream out = res.getOutputStream(); 

  res.setContentType(text/plain); 
  
  try { 
  out.println(Line 1 of servlet); 
  
  //out.write(Line 1 of servlet.getBytes()); 
  
  throw new BookNotFoundException(Book doesn't 
exist); 
  } 
  catch (Exception e) { 
  res.reset(); 
System.out.println(Caught exception:  + e.getMessage()); 
  throw new ServletException(Dummy Exception, e); 
  } 
  
  }


--


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


Re: Trouble getting CGI script to execute

2005-02-08 Thread Mark Thomas
Brelsfoard, Alex wrote:
Ok.  So I did everything you said.  Still not working.
I get a 404 error.
So I took it step by step to see if I made typos or something.  If I go to
http://host:port I see the directory listing including myapp 
This shouldn't happen. This means that myapp is a directory in the root 
context rather than a separate context.

Have you edited server.xml at all? It looks like you have a context 
element along the lines of
Context path= docBase=${CATALINA_HOME}/webapps debug=0/
in your server.xml. This is bad. The default install uses Context 
path= docBase=ROOT debug=0/ although it is commented out because 
tomcat does this automatically by default anyway.

Mark
I click on
myapp.  There is nothing in the directory listing.  I then add
/cgi-bin/script.cgi to the end, to make
http://host:port/myapp/cgi-bin/script.cgi.  Same result: 404.
I then tried http://host:port/myapp/script.cgi.  Same result.
I then tried http://host:port/myapp/WEB-INF/cgi/script.cgi.  This time it
asked me if I want to open or download this file.
shrug
Any ideas?
Thanks.
--Alex
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat 5.5.7/DataSourceRealm/Manager app

2005-02-08 Thread Mark Thomas
It is a known bug that has been fixed and will be included in 5.5.8. Sorry.
Mark
Phillip Qin wrote:
I am having serious issue with Tomcat Manager app using DataSourceRealm
during upgrading from Tomcat 5.0.28 to 5.5.7. The issue is, after I accessed
Tomcat Manager app couple of times, I got this exception
8-Feb-2005 2:19:24 PM org.apache.catalina.realm.DataSourceRealm open
SEVERE: Exception performing authentication
org.apache.commons.dbcp.SQLNestedException: Cannot get a connection, pool
exhausted
at
org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.ja
va:103)
at
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:5
40)
at
org.apache.catalina.realm.DataSourceRealm.open(DataSourceRealm.java:407)
at
org.apache.catalina.realm.DataSourceRealm.getPassword(DataSourceRealm.java:4
59)
at
org.apache.catalina.realm.DataSourceRealm.authenticate(DataSourceRealm.java:
339)
at
org.apache.catalina.realm.DataSourceRealm.authenticate(DataSourceRealm.java:
284)
at
org.apache.catalina.authenticator.BasicAuthenticator.authenticate(BasicAuthe
nticator.java:181)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:446)
at
org.apache.catalina.valves.RequestFilterValve.process(RequestFilterValve.jav
a:275)
at
org.apache.catalina.valves.RemoteAddrValve.invoke(RemoteAddrValve.java:80)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126
)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105
)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:306)
at
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:385)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:745)
at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675)
at
org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:868)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:684)
at java.lang.Thread.run(Unknown Source)
Caused by: java.util.NoSuchElementException: Timeout waiting for idle object
at
org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPoo
l.java:756)
at
org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.ja
va:95)
... 21 more
I took a look at the connections. They had never been evicted nor removed.
This problem only happened on Tomcat 5.5. 4.x/5.0 were fine.
My configuration is jdk 1.5.0, tomcat 5.5.7, commons-dbcp-1.2.1,
commons-pool-1.2, mysql-connector-java-3.1.6-bin, MySQL 4.1.5
${catalina.home}/conf/Server.xml
Server port=8005 shutdown=SHUTDOWN
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
/
  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener /
  Listener
className=org.apache.catalina.storeconfig.StoreConfigLifecycleListener/
  GlobalNamingResources
Resource auth=Container name=jdbc/manager
type=javax.sql.DataSource
driverClassName=com.mysql.jdbc.Driver
url=jdbc:mysql://1.2.3.4:3306/webapps
username=username
password=password
factory=org.apache.commons.dbcp.BasicDataSourceFactory
maxActive=4
maxIdle=1
minIdle=1
maxWait=15000
removeAbandoned=true
validationQuery=SELECT 1
testOnBorrow=true
testOnReturn=true
minEvictableIdleTimeMillis=-1
timeBetweenEvictionRunsMillis=3
numTestsPerEvictionRun=1
testWhileIdle=true
/
  /GlobalNamingResources
  Service name=Catalina
Connector port=8080 maxThreads=150 minSpareThreads=25
maxSpareThreads=75
   enableLookups=false redirectPort=8443 acceptCount=100
   connectionTimeout=2 disableUploadTimeout=true /
Connector port=8009 
   enableLookups=false redirectPort=8443 protocol=AJP/1.3
/

Engine name=Catalina defaultHost=my.localhost jvmRoute=jvm1

	Realm className=org.apache.catalina.realm.DataSourceRealm
		dataSourceName=jdbc/manager
		digest=MD5
		roleNameCol=role_name
		userCredCol=user_pass
		userNameCol=user_name
		userRoleTable=user_roles
		userTable=users
	/ 

  Host name=my.localhost appBase=webapps/www.mydomain.com
   unpackWARs=true autoDeploy=false
   xmlValidation=false xmlNamespaceAware=false /
/Engine
  /Service
/Server
${catalina.home}/conf/Catalina/my.localhost/manager.xml
Context 

Re: using shared objects from tomcat

2005-02-08 Thread Andreas Andersson
Benson Margulies wrote:
First of all, thanks for the answer, I've been fighting this one for 
quite som time now.

1) Your monitoring options depend on what unix(-like) system you are
running on. On Linux, there's strace. On Solaris, truss. On HPUX and
AIX? I forget. To do this PROGRAMMATICALLY to create a sandbox? Forget
it. The Unix Approach is this:
This is a debian suggesting strace to be the one for me. Can I attach 
strace to my .so-file or do I have to start tomcat via strace?

2) Generally, you can get some clues on UnsatisfiedLinkError, in a
pinch, by using LD_DEBUG or strace (or truss or whatever).
If I'm not misstaken tomcat ignores environment variables so how can I 
set LD_DEBUG?

A) Any .so has to be in java.library.path and in LD_LIBRARY_PATH. Any
dependencies of the .so (visible with 'ldd', likewise).
java.library.path _AND_ LD_LIBRARY_PATH? Thats intersting and might very 
well be the solution to my problem. As I just wrote I think tomcat 
ignores these evironment variabels. I was under the impression that 
LD_LIBRARY_PATH was the same as java.library.path, if that is not the 
case then how do I set LD_LIBRARY_PATH?

Thus, I always put native classes in the 'common' classloader by adding
the jars to common.loader in catalina.properties.
Is it also OK to add .so-files? I have
grant codeBase file:${catalina.home}/common/- {
  permission java.security.AllPermission;
};
in my catalina.properties. Would that suggest that if I only placed all 
.so-files under /common they would be loaded or at least accessable?

4) I have come to believe that the shared objects that you use for JNI
should be thin wrappers that make their own calls to dlopen/dlsym to
find the guts of your code. This insulates you from the various stupid
things that the JVM makers do from time to time in picking the wrong
arguments to dlopen.

5) Consider using an RPC protocol to talk to a server written in C/C++
instead of using JNI in the first place. If the performance is
acceptable, your life could be a lot simpler.
Unfortunatly the codes in the .so-files isn't mine. It's a third party 
product that we can't alter or even have altered for us.

--
Andreas Andersson
IT Dept.
Travelstart Nordic
[EMAIL PROTECTED]
http://www.travelstart.se
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Tomcat 5.5.7/DataSourceRealm/Manager app

2005-02-08 Thread Phillip Qin
Thx, I am relieved. Off to Cuba.

-Original Message-
From: Mark Thomas [mailto:[EMAIL PROTECTED] 
Sent: February 8, 2005 4:49 PM
To: Tomcat Users List
Subject: Re: Tomcat 5.5.7/DataSourceRealm/Manager app


It is a known bug that has been fixed and will be included in 5.5.8. Sorry.

Mark

Phillip Qin wrote:
 I am having serious issue with Tomcat Manager app using 
 DataSourceRealm during upgrading from Tomcat 5.0.28 to 5.5.7. The 
 issue is, after I accessed Tomcat Manager app couple of times, I got 
 this exception
 
 8-Feb-2005 2:19:24 PM org.apache.catalina.realm.DataSourceRealm open
 SEVERE: Exception performing authentication
 org.apache.commons.dbcp.SQLNestedException: Cannot get a connection, 
 pool exhausted
   at 
 org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSou
 rce.ja
 va:103)
   at

org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:5
 40)
   at
 org.apache.catalina.realm.DataSourceRealm.open(DataSourceRealm.java:407)
   at

org.apache.catalina.realm.DataSourceRealm.getPassword(DataSourceRealm.java:4
 59)
   at

org.apache.catalina.realm.DataSourceRealm.authenticate(DataSourceRealm.java:
 339)
   at

org.apache.catalina.realm.DataSourceRealm.authenticate(DataSourceRealm.java:
 284)
   at

org.apache.catalina.authenticator.BasicAuthenticator.authenticate(BasicAuthe
 nticator.java:181)
   at

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

org.apache.catalina.valves.RequestFilterValve.process(RequestFilterValve.jav
 a:275)
   at
 org.apache.catalina.valves.RemoteAddrValve.invoke(RemoteAddrValve.java:80)
   at

org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126
 )
   at

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105
 )
   at
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526)
   at

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

org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
   at
 org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:306)
   at
 org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:385)
   at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:745)
   at

org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675)
   at
 org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:868)
   at

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
 a:684)
   at java.lang.Thread.run(Unknown Source)
 Caused by: java.util.NoSuchElementException: Timeout waiting for idle
object
   at

org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPoo
 l.java:756)
   at

org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.ja
 va:95)
   ... 21 more
 
 I took a look at the connections. They had never been evicted nor 
 removed. This problem only happened on Tomcat 5.5. 4.x/5.0 were fine.
 
 
 My configuration is jdk 1.5.0, tomcat 5.5.7, commons-dbcp-1.2.1, 
 commons-pool-1.2, mysql-connector-java-3.1.6-bin, MySQL 4.1.5
 
 ${catalina.home}/conf/Server.xml
 
 Server port=8005 shutdown=SHUTDOWN
 
   Listener 
 className=org.apache.catalina.mbeans.ServerLifecycleListener
 /
   Listener
 className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener /
   Listener
 className=org.apache.catalina.storeconfig.StoreConfigLifecycleListener/
 
   GlobalNamingResources
 
   Resource auth=Container name=jdbc/manager
   type=javax.sql.DataSource
   driverClassName=com.mysql.jdbc.Driver
   url=jdbc:mysql://1.2.3.4:3306/webapps
   username=username
   password=password
   factory=org.apache.commons.dbcp.BasicDataSourceFactory
   maxActive=4
   maxIdle=1
   minIdle=1
   maxWait=15000
   removeAbandoned=true
   validationQuery=SELECT 1
   testOnBorrow=true
   testOnReturn=true
   minEvictableIdleTimeMillis=-1
   timeBetweenEvictionRunsMillis=3
   numTestsPerEvictionRun=1
   testWhileIdle=true
   /
 
   /GlobalNamingResources
 
   Service name=Catalina
 
 Connector port=8080 maxThreads=150 minSpareThreads=25 
 maxSpareThreads=75
enableLookups=false redirectPort=8443 acceptCount=100
connectionTimeout=2 disableUploadTimeout=true 
 /
 
 Connector port=8009 
enableLookups=false redirectPort=8443 
 protocol=AJP/1.3 /
 
 
 Engine name=Catalina defaultHost=my.localhost 
 jvmRoute=jvm1
 
 
 
   Realm className=org.apache.catalina.realm.DataSourceRealm
   dataSourceName=jdbc/manager
   digest=MD5
   roleNameCol=role_name
 

RE: [OT]Attn developers of Tomcat and JK

2005-02-08 Thread Didier McGillis
Really this is way out of line.  As everyone has said this is a free product 
with no formalized support structure, and no claims of any support.  This 
list is here as a resource to those brave souls who are adventerous enough 
to work with the software.  I might be overstating things here but there 
should be no one here that is surprised that there is no corporate help desk 
here.  When I started out the only thing I had going for me was I was 
inquisitive and had access to log files, this list and google, thats all I 
needed.  Three things you can do that will answer your questiion.  Ask in a 
clear consise manner (I have had a problem with that on occasion), check and 
double check your settings (many times I have been the culprut in my own 
problem) and google the error.  :)

From: Eric Sandusky [EMAIL PROTECTED]
Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
To: 'Tomcat Users List' tomcat-user@jakarta.apache.org
Subject: Attn developers of Tomcat and JK
Date: Tue, 08 Feb 2005 10:11:03 -0600
To the developers of Tomcat and JK:
As I can sense that not one single person is willing to respond to this
issue, I can only assume that this tomcat-user community is worthless.  Not
only have I submitted this issue back 6 months ago, but a similar post was
made by the user A jie twice within the last week.
If you are too ashamed that your software is not reliable enough to be
installed in a production environment, at least have the decency of telling
us that.  When I have to deal with user session data being sent back to the
wrong client, sessions getting lost, and numerous log errors stating that
the request/response cannot be fulfilled, I can only come to one
conclusion.. Tomcat and the JK/JK2 connector are not reliable.  See below
and tell me that those messages would not cause problems for the client.
[Mon Feb 07 13:30:20 2005] [info]  jk_open_socket::jk_connect.c (183):
connect() failed errno = 61
[Mon Feb 07 13:30:20 2005] [info]  ajp_connect_to_endpoint::jk_ajp_common.c
(862): Failed connecting to tomcat. Tomcat is probably not started or is
listening on the wrong host/port (127.0.0.1:8009). Failed errno = 61
[Mon Feb 07 13:30:20 2005] [info]  ajp_send_request::jk_ajp_common.c 
(1186):
Error connecting to the Tomcat process.
[Mon Feb 07 13:30:20 2005] [info]  ajp_service::jk_ajp_common.c (1665):
Sending request to tomcat failed,  recoverable operation attempt=2
[Mon Feb 07 13:30:20 2005] [error] ajp_service::jk_ajp_common.c (1673):
Error connecting to tomcat. Tomcat is probably not started or is listening
on the wrong port. worker=ajp13w failed errno = 61
[Mon Feb 07 13:30:20 2005] [error] HttpExtensionProc::jk_isapi_plugin.c
(937): service() failed

If Tomcat + JK cannot process every request/response on a Windows server
that is dual-xeon 3.0 Ghz processors with 4 GB of memory, then what machine
would?
And doesn't it seem strange how the JK2 project has been mysteriously
abandoned?  Thanks for going off in a seemingly better direction only to
jump ship and leave everyone SOL.  It makes me think that this whole Tomcat
development effort is more of just a hobby and not something to be taken
seriously.
If anyone is willing to contact me on this issue, I would be more than 
happy
to talk one-on-one.  If you want to tell me that this is not the forum for
ranting about Tomcat or JK, it should be.  If you want to blackball me from
this community, go ahead, I'm not getting any help from it as it is.  I can
only hope that this message reaches the people who supposedly support this
software and lights a fire underneath them to improve it or tell us that it
just doesn't work.

Eric
-Original Message-
From: Eric Sandusky [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 02, 2005 11:40 AM
To: Tomcat Users List
Subject: ISAPI redirector warnings
While running Tomcat 5 with IIS and JK2..

The Windows Application Logs often log several Warnings at the same point 
in
time, see below for example.  The problem is, these Warnings pile up in the
Windows Event logs and force the Administrator to manually clear out the
logs daily or weekly.


I am not looking to simply suppress these messages, but find a solution to
the actual problem.  This issue seems to occur at random and things such as
session confusion (user A sees user B's data) and other noticeable issues
happen at or around the same time as these warnings.

What is the reason for these log entries?

How can I eliminate these log entries?

Error: [jk_worker_ajp13.c (648)]: ajp13.service() Error  forwarding
ajp13:localhost:8009 1 0
Error: [jk_worker_ajp13.c (546)]: ajp13.service() ajpGetReply recoverable
error 3
Error: [jk_handler_response.c (140)]: handler.response() Error sending
response
Error: [jk_service_iis.c (126)]: jk_ws_service_t::head,
ServerSupportFunction failed
Error: [jk_worker_ajp13.c (546)]: ajp13.service() ajpGetReply recoverable
error 3
Error: [jk_handler_response.c (140)]: handler.response() Error sending
response
Error: 

RE: Trouble getting CGI script to execute

2005-02-08 Thread Brelsfoard, Alex
OK I changed it so that the path is myapp and the docBase is
${CATALINA_HOME}/webapps/myapp.
Restarted Tomcat
Still nothing.
--Alex


Alex Brelsfoard
Web Applications Developer
Web Development Office
Worcester Polytechnic Institute
508-831-6147
[EMAIL PROTECTED]

-Original Message-
From: Mark Thomas [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 08, 2005 4:48 PM
To: Tomcat Users List
Subject: Re: Trouble getting CGI script to execute

Brelsfoard, Alex wrote:
 Ok.  So I did everything you said.  Still not working.
 I get a 404 error.
 So I took it step by step to see if I made typos or something.  If I 
 go to http://host:port I see the directory listing including myapp

This shouldn't happen. This means that myapp is a directory in the root
context rather than a separate context.

Have you edited server.xml at all? It looks like you have a context element
along the lines of Context path= docBase=${CATALINA_HOME}/webapps
debug=0/ in your server.xml. This is bad. The default install uses
Context path= docBase=ROOT debug=0/ although it is commented out
because tomcat does this automatically by default anyway.

Mark

 I click on
 myapp.  There is nothing in the directory listing.  I then add 
 /cgi-bin/script.cgi to the end, to make 
 http://host:port/myapp/cgi-bin/script.cgi.  Same result: 404.
 I then tried http://host:port/myapp/script.cgi.  Same result.
 I then tried http://host:port/myapp/WEB-INF/cgi/script.cgi.  This time 
 it asked me if I want to open or download this file.
 shrug
 Any ideas?
 Thanks.
 --Alex

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



case sensitivity with JDBCRealm

2005-02-08 Thread Stephen Charles Huey
Here's our server.xml's Realm element:

Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
driverName=oracle.jdbc.driver.OracleDriver
connectionURL=jdbc:oracle:thin:@192.168.1.144:1523:orcl
connectionName=scott connectionPassword=tiger userTable=users
userNameCol=username userCredCol=password userRoleTable=roles
roleNameCol=role /

Basically out of the textbook...but the problem is, we're moving from
MySQL to Oracle, and the MySQL database wasn't case sensitive when
checking the username.  Is there any way to turn off case sensitivity on
the JDBCRealm side of things when checking the username in the Oracle
database?

Thanks...

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



Re: Tomcat 5.5.7/DataSourceRealm/Manager app

2005-02-08 Thread Remy Maucherat
On Tue, 8 Feb 2005 16:39:40 -0500, Phillip Qin
[EMAIL PROTECTED] wrote:
 I am having serious issue with Tomcat Manager app using DataSourceRealm
 during upgrading from Tomcat 5.0.28 to 5.5.7. The issue is, after I accessed
 Tomcat Manager app couple of times, I got this exception

It could be this issue:
http://issues.apache.org/bugzilla/show_bug.cgi?id=33357

The patch needs some testing, but you can grab the replacement class
from a nightly build, or build it from CVS.

-- 
x
Rémy Maucherat
Developer  Consultant
JBoss Group (Europe) SàRL
x

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



Re: Tomcat 5.5.7/DataSourceRealm/Manager app

2005-02-08 Thread Remy Maucherat
On Tue, 08 Feb 2005 21:49:16 +, Mark Thomas [EMAIL PROTECTED] wrote:
 It is a known bug that has been fixed and will be included in 5.5.8. Sorry.

Did it exist in 5.5.4, or is it a regression ?

-- 
x
Rémy Maucherat
Developer  Consultant
JBoss Group (Europe) SàRL
x

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



  1   2   >