JK2 and IIS configuration

2003-01-16 Thread Dan Tran
Hello,

I have spent a the last few days playing with IIS/workers2.properties, and 
JK2.properties.  No luck getting the connector to work.

Does any one successfully get this working.  Where Do I fine the log file assocation 
of JK2 ativitity?

My system has Tomcat 4.18, JDK1.4.1, W2K

Any help is appreciated.

-D


RE: How to configure mod_ssl on rh 7.1 running tomcat

2003-01-16 Thread Vivek Singh
 Thanks John, I posted it there. I think I will revert back later with some tomcat 
specific problems when I am done doing this.
   Anyways,thanks for the advise. you are one generous  guy here.:-)
 
 
Later
 Vivek

-Original Message- 
From: Turner, John [mailto:[EMAIL PROTECTED]] 
Sent: Tue 1/14/2003 6:52 PM 
To: 'Tomcat Users List' 
Cc: 
Subject: RE: How to configure mod_ssl on rh 7.1 running tomcat 




You'd be better off asking your question on an Apache list.

Also:  http://www.modssl.org/

To see what version of OpenSSL is running on your machine, type: openssl
version

John

-Original Message-
From: Vivek Singh [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 14, 2003 4:21 AM
To: 'Tomcat Users List'
Subject: How to configure mod_ssl on rh 7.1 running tomcat


HI,

 Last weekend  I was able to make apache 1.3.19 and tomcat 4.1.18
communicate over ajp 13. Now I was wondering if I can use mod_ssl to access
apache.
FYI:  when I type https://192.168.132.34/examples/servlets I get page not
found.

 Can anyone help me on this? Can I know which file do I need to edit
httpd.conf, mod_jk.conf or server.xml. I can access https:// for other one
of the web service but not tomcat application server/

Can sometell me what ssl version is running on rh 7.x by default apache ssl,
mod_ssl  and if apache ssl is running how to disable it and run mod_ssl
only.





Thanks in advance.

  



Vivek Singh
Wipro Technologies
Survey No 64,
Madhapur, Serilingampally Mandal,
Hyderabad- 500 033. India
Tel:+91-40-6565000 Extn:5513, 5467
Direct : 6565467, 6565513


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




**Disclaimer

Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying 
or dissemination of the information contained in the E-MAIL in any manner 
whatsoever is strictly prohibited.

***


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


Re: JK2 and IIS configuration

2003-01-16 Thread Dan Tran
The log intries for JK2 on IIS is EventViews,
and I found this error

Error: [jk_shm.c (333)]: shm.init(): No file

Any suggestion?

I am user JK2 in 2.0.2 directory

- Original Message -
From: Dan Tran [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, January 15, 2003 11:59 PM
Subject: JK2 and IIS configuration


Hello,

I have spent a the last few days playing with IIS/workers2.properties, and
JK2.properties.  No luck getting the connector to work.

Does any one successfully get this working.  Where Do I fine the log file
assocation of JK2 ativitity?

My system has Tomcat 4.18, JDK1.4.1, W2K

Any help is appreciated.

-D

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




Servlet channing

2003-01-16 Thread nitin mandolkar

How to achive servlet channing with tomcat

which file shall i edit to do servlet channing

Servlet channing : out put of 1st servlet send to send 2nd servlet as a input and 2nd 
servlet out put send as reply to client

Catch all the cricket action. Download Yahoo! Score tracker


Re: servlet with Tomcat

2003-01-16 Thread Martin Jacobson
Steve R Burrus wrote:

 Hi Ralph, whoever the hell you are, or supposed to be! Why do you damned people
always have such a holier-than-thou attitude towards people like myself who want
nothing more or less than to have our questions answered!!! I'm quite sorry if I
didn't seem to ask the questions just the way in which you wanted me to ask them!!
You know what they say Different strokes for different folks!!! I wish that you
could believe me when I say that I have tried to ask the quesions in the most
civilized and dignified way possible, and I FEEL QUITE SORRY FOR YOU AND OTHERS if
you cannot find it in yer heart to forgive me one more time!



Hi Steve,

I haven't replied to your messages in the past, as I am not a Windows 
user, and not in a position to help you with your NT-specific problems, 
which you seem now to have resolved.
I'm writing now because you seem to be having difficulty *communicating* 
with this list (based on the reactions to your posts). Email is a 
difficult medium to convey anything other than information - even 
'smilies', and other artifacts only partially help. Peppering your 
postings with expletives is likely to offend, even if that was not your 
intention, as I'm sure it wasn't.

However, you recently asked what the servlet  servlet-mapping 
elements meant:

Here's an example from my web.xml file. The servlet class indicates the 
fully qualified class of the servlet, while the servlet name simply 
indicates a short (but unique) name that acts as an alias within the 
web.xml file. Hence...

servlet
  servlet-namelogout/servlet-name
  servlet-classcom.terma.martin.drs.servlet.Logout/servlet-class
/servlet

The servlet mapping element allows you to map a url to a particular 
servlet, referred to by its alias (ie, the servlet-name). Hence...

servlet-mapping
  servlet-namelogout/servlet-name
  url-pattern/private/logout/url-pattern
/servlet-mapping

So, given a host www.myserver.com  a context of myapp, the url
www.myserver.com/myapp/private/logout will be directed to the servlet 
whose name is logout, which is com.terma.martin.drs.servlet.Logout.

HTH,

Martin


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



please help me by japan

2003-01-16 Thread joo_k_n
 hello,
(B excuse me
(B i install the RedHat linux7.2 full install (by For Server) 
(B and j2sdk1.4.0
(B and Tomcat4.0.6
(B and mod_webapp-1.0-1.i386.rpm
(B and settings  as follwing
(B --
(B httpd.conf
(B DocumentRoot and Directory changed tomcat root
(B addmodule   mod_webapp.c
(B and mod_webapp.so
(B 
(B and IFmodule ---
(BWebApplication conn warp local:8008
(BWebAppDeploy examples conn /examples/
(B/.
(B 
(B and tomcat start and apache start
(B -
(B in Browser url  --- localhost/examples/jsp/
(B in one dayas yesterday...
(B is OK
(B 
(B but today is error.
(B why?
(B please helpme
(B Error info as Following...
(B 
(B WebApp:Error 404
(B   File:wa_request.c line:197
(B Web-application not yet deployed.
(B 
(B Thanks in Advance
(B best regards
(B
(B
(B
(B--
(BTo unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
(BFor additional commands, e-mail: mailto:[EMAIL PROTECTED]



Re: JDBC Connection pooling

2003-01-16 Thread Martin Jacobson
Nathan McMinn wrote:

When trying to get a connection pool set up, tomcat spits this exception
back out.  Nowhere in the code do I reference this class.  Can anyone point
me to a good HOWTO on connection pooling in tomcat 4.0.6?

TyrexDataSourceFactory:  Cannot create DataSource, Exception
java.lang.ClassNotFoundException: org.hsql.jdbcDriver



I had the same experience: it seemed as though Tyrex had the hypersonic 
db hard-coded, so that any attempt to specifiy a different jdbc driver 
was simply ignored.
The solution was to move to TC 4.1.x, which uses the jakarta-commons 
DBCP stuff in place of Tyrex, and which works fine.

HTH,

Martin



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



Any data from ORACLE, please help..

2003-01-16 Thread Igor . Kozlov
It cannot be true. I need help!
I have Oracle 8.7.1, tomcat 4.0.6, cocoon 2.0.4, windows2000, solaris.

If i run tomcat on Oracle Server(win2000), everything works successfully,
but if i run Tomcat on another server(windows or solaris), 
Tomcat dont't get any data from Oracle Server.
Why? If i run some application how TOAD on different Servers - it works, but
Tomcat not. I write small Java-proram, it make connection to oracle and
runs a stored procedure - it works! Tomcat and this program use one
JDBC-Driver.

What is wrong?

Please, any ideas..

Configuration in Tomcat:
  
  datasources
jdbc name=mydb
  auto-commitfalse/auto-commit
  pool-controller min=5 max=10/
  dburljdbc:oracle:thin:@sv000111:1521:mydb/dburl
  userdbo/user
  passwordxxx-xxx/password
/jdbc
  /datasources


I can ping all servers, network seems to be ok.

Thank you very, very much,
best regards.



Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail
irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und
vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte
Weitergabe dieser Mail ist nicht gestattet.

This e-mail may contain confidential and/or privileged information. If you
are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.





Re: Any data from ORACLE, please help..

2003-01-16 Thread Claus Bitten
From: [EMAIL PROTECTED]
Subject: Any data from ORACLE, please help..


It cannot be true. I need help!
I have Oracle 8.7.1, tomcat 4.0.6, cocoon 2.0.4, windows2000, solaris.

If i run tomcat on Oracle Server(win2000), everything works successfully,
but if i run Tomcat on another server(windows or solaris), 
Tomcat dont't get any data from Oracle Server.
Why? If i run some application how TOAD on different Servers - it works, but
Tomcat not. I write small Java-proram, it make connection to oracle and
runs a stored procedure - it works! Tomcat and this program use one
JDBC-Driver.

What is wrong?

Please, any ideas..

Configuration in Tomcat:
  
  datasources
jdbc name=mydb
  auto-commitfalse/auto-commit
  pool-controller min=5 max=10/
  dburljdbc:oracle:thin:@sv000111:1521:mydb/dburl
  userdbo/user
  passwordxxx-xxx/password
/jdbc
  /datasources

Hi,

a) are you shure that tomcat uses the jdbc driver?
Where have you placed it ... JAKARTA_HOME/libs or in webapps? Does the catalina output 
says it has yound/deplyoed the jar-File? And have you renamed
classes12.zip to classes12.jar?

b) If a) is not the problem, what does the oracle listener output reports
when the tomcat app tries to connect?
Maybe it is a oracle naming problem.

regards,
Claus Bitten
--
[EMAIL PROTECTED]



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




javax.naming.NameNotFoundException: Name java: is not bound in thisContext

2003-01-16 Thread Veniamin Fichin
Hello list!

   I wrote a message about this problem yesterday, but did not receive 
any reply. I can accept the fact that nobody faced this problem, but may 
be somebody have done similar task before, and can share your experience 
with me and others?
   Lets describe the problem. I want to restrict access to some area at 
my site using FORM authentication. I've added Realm definition in 
config.xml:

Realm className=org.apache.catalina.realm.DataSourceRealm
   dataSourceName=java:/comp/env/jdbc/esljsp
   debug=5
   userTable=T_USERS
   userNameCol=NAME
   userCredCol=PASSWORD
   userRolesTable=T_USERROLES
   roleNameCol=ROLENAME /

...and security constraints in web.xml:

security-constraint
 web-resource-collection
  web-resource-nameAdministrator's interface/web-resource-name
  url-pattern/adm/*/url-pattern
  http-methodGET/http-method
  http-methodPOST/http-method
 /web-resource-collection
 auth-constraint
  role-nameAdministrator/role-name
 /auth-constraint
/security-constraint
login-config
 auth-methodFORM/auth-method
 realm-nameAdministrator's interface/realm-name
 form-login-config
  form-login-page/login.jsp/form-login-page
  form-error-page/login_error.jsp/form-error-page
 /form-login-config
/login-config
security-role
 role-nameAdministrator/role-name
/security-role

   During Tomcat startup process, I see following in logs:

2003-01-16 12:56:19 DataSourceRealm[/esljsp]: Exception performing 
authentication
javax.naming.NameNotFoundException: Name java: is not bound in this Context
	at org.apache.naming.NamingContext.lookup(NamingContext.java:811)
	at org.apache.naming.NamingContext.lookup(NamingContext.java:194)
	at org.apache.catalina.realm.DataSourceRealm.open(DataSourceRealm.java:463)
	at 
org.apache.catalina.realm.DataSourceRealm.start(DataSourceRealm.java:582)
	at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:3543)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
	at org.apache.catalina.core.StandardService.start(StandardService.java:497)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
	at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
	at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

   And these lines appears in logs _before_ configuring DataSource, 
which completes fine. I've been told that this may be due to different 
classloaders (Catalina level and WebApp level), but I'm not sure, 
because it's strange -- to be unable to find java: name...
   I can (or at least try to) use JDBCRealm to make it work, but as 
soon as I have DataSource properly configured, I want to use it. I 
tested it in a servlet, and it works.

--
Veniamin Fichin  [EMAIL PROTECTED]
Programmer athttp://www.rbcsoft.ru/


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



Problem with SecurityManager

2003-01-16 Thread Torsten Fohrer

How do i configure the Security Manager to use different policies for each
host/webapp/webapp(libs/classes)?

Example:

1. Install a clean Tomcat 4.1.xx 
2. Creating a simple jsp page in examples/securityTest.jsp
   
  securityTest.jsp 
  --- 

% secure.secureClass.readPasswd() %
  
  ---
 

3. Create a class secure.secureClass in examples/web-inf/classes

  ---
package secure;
import java.io.*;

public class secureClass {
  public static void readPasswd() throws Exception {
 File x = new File(/etc/passwd);
 x.canRead();
  }
}

  ---

4. Adding to catalina.policy
   
  grant file:${catalina.home}/webapps/examples/WEB-INF/classes/- {
 java.io.FilePermission /etc/passwd, read;
  };
  
 
5. starting tomcat with security manager
6. request securityTest.jsp = Security Exception?

what i do wrong?
Torsten Fohrer

**
* DCSI AG* Tel.: +49 7131 155 88-0   *
* Lessingstrasse 17-19   * Fax.: +49 7131 155 88-99  *
* D-74076 Heilbronn  * [EMAIL PROTECTED]*
* GERMANY* http://www.dcsi.de*
** 

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




Multiple realms for one context

2003-01-16 Thread Matthias Brunner
Hello,

is there a way to define multiple realms for one context?

Example:
I want http://myserver:8080/cocoon/admin to use tomcat-users.xml as 
realm whereas http://myserver:8080/cocoon/otherdir should use a 
database.

The reason for this is that I do not want people with write access to 
the user table to create admin users themselves.

Best regards!
-- 
Matthias Brunner [EMAIL PROTECTED]
PGP FP 7862 32B3 3B75 292A F76F  5042 8587 21AB 5B89 D501
Check out http://blumenstrasse.vol.at/~mb/gpgkey.asc


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




Embedding Tomcat in my Java Application with SSL support ??

2003-01-16 Thread Eric Chow
Hello,

I have read the articl in onjava.com, and test the code.
It works.( http://www.onjava.com/pub/a/onjava/2002/04/03/tomcat.html )

But, if I want to support SSL, I just add the following statement.

Connector secConnector = embedded.createConnector(null, 443, true);
embedded.addConnector(secConnector);

And I generate a keystore and place it in the {user.home} with the file name 
{.keystore}.
The alias, keystore password and the file name must be tomcat, changeit and 
.keystore.

Is it possible to specific the keystore location and the password ?


Best regards,
Eric


==
If you know what you are doing, 
it is not called RESEARCH!
==


Re: javax.naming.NameNotFoundException: Name java: is not bound inthis Context

2003-01-16 Thread Veniamin Fichin
Thanks for your reply!
See below...

Roberts, Eric wrote:


Hi,

Try this:

First define your DataSource resource e.g.
Resource name=jdbc/esljsp auth=Container scope=Shareable type=javax.sql.DataSource/

and add the necessary ResourceParams name=jdbc/esljsp
and the parameters.
then define your Realm using:

dataSourceName=jdbc/esljsp


   I already have these lines in config.xml:

--= [ server.xml ] =--
 Resource name=jdbc/esljsp
   type=javax.sql.DataSource
   auth=Container
   scope=Shareable
   description=Database resource for esljsp project /
 ResourceParams name=jdbc/esljsp
!-- various parameters not shown here --
 /ResourceParams
 Realm className=org.apache.catalina.realm.DataSourceRealm
dataSourceName=java:/comp/env/jdbc/esljsp
debug=5
userTable=T_USERS
userNameCol=NAME
userCredCol=PASSWORD
userRolesTable=T_USERROLES
roleNameCol=ROLENAME /
--= [ / server.xml ] =--

   If I haven't them there, I wouldn't be able to connect to database 
in my servlets, getting DataSource through JNDI. But servlets work just 
fine.
   And exception is thrown while Tomcat starts up, telling me that 
java: name is not found, so this must not be configuration problem.

HTH

Eric

-Original Message-


--= [ cut ] =--


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




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

2003-01-16 Thread Roberts, Eric
Yes, but the resource name is jdbc/esljsp - java:comp/env/jdbc/esljsp would be used in 
a servlet using JNDI such as:

 ctx = new InitialContext();
 Context envCtx = (Context) ctx.lookup(java:/comp/env/);
 DataSource ds = (DataSource) envCtx.lookup(/jdbc/esljsp);

Regards

Eric

-Original Message-
From: Veniamin Fichin [mailto:[EMAIL PROTECTED]]
Sent: Donnerstag, 16. Jänner 2003 11:53
To: Tomcat Users List
Subject: Re: javax.naming.NameNotFoundException: Name java: is not bound
in this Context


Thanks for your reply!
See below...

Roberts, Eric wrote:

 Hi,
 
 Try this:
 
 First define your DataSource resource e.g.
 Resource name=jdbc/esljsp auth=Container scope=Shareable 
type=javax.sql.DataSource/
 
 and add the necessary ResourceParams name=jdbc/esljsp
 and the parameters.
 then define your Realm using:
 
 dataSourceName=jdbc/esljsp

I already have these lines in config.xml:

--= [ server.xml ] =--
  Resource name=jdbc/esljsp
type=javax.sql.DataSource
auth=Container
scope=Shareable
description=Database resource for esljsp project /
  ResourceParams name=jdbc/esljsp
!-- various parameters not shown here --
  /ResourceParams
  Realm className=org.apache.catalina.realm.DataSourceRealm
 dataSourceName=java:/comp/env/jdbc/esljsp
 debug=5
 userTable=T_USERS
 userNameCol=NAME
 userCredCol=PASSWORD
 userRolesTable=T_USERROLES
 roleNameCol=ROLENAME /
--= [ / server.xml ] =--

If I haven't them there, I wouldn't be able to connect to database 
in my servlets, getting DataSource through JNDI. But servlets work just 
fine.
And exception is thrown while Tomcat starts up, telling me that 
java: name is not found, so this must not be configuration problem.

 HTH
 
 Eric
 
 -Original Message-

--= [ cut ] =--


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


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




Problem with JSTL on W2k

2003-01-16 Thread Holger Brozio
Hello,

i have a problem with the JSTL on W2k. If i start tomcat i get the follwoing
exception:

javax.servlet.ServletException: Exception processing JAR at resource path
/WEB-INF/lib/jaxen-full.jar
 at
org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:930)
 at
org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:868)
 at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647)
 at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:
243)
 at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:166)
 at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3493)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
 at org.apache.catalina.startup.Embedded.start(Embedded.java:994)
 at
com.intershop.beehive.core.internal.startup.EmbeddedTomcatMgr.startTomcat(Em
beddedTomcatMgr.java:393)
 at
com.intershop.beehive.core.internal.startup.EmbeddedTomcatMgr.onReadyHook(Em
beddedTomcatMgr.java:333)
 at
com.intershop.beehive.core.internal.startup.AdminServer.start(AdminServer.ja
va:70)
 at
com.intershop.beehive.core.internal.startup.AdminServer.main(AdminServer.jav
a:264)

I have debugged the ContextConfig class and found out, that an exception is
thrown at the line 930, which has Access is denied as description. It
seems that tomcat tries to open an URLConnection with the url
jndi:/hostname /WEB-INF/lib/jaxen-full.jar!/.
My user on W2k is a normal user. If i add the user to the administrators or
power user group, there are no problems. I have also tried
to change the file permissions of the jar file without an effect.
So it seems to be a permission problem. Does anybody know, which permission
on W2k is missing for my user or group, which doesn't allow a normal user to
get the jar informations?

Thanx in advance.

Holger


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




Re: javax.naming.NameNotFoundException: Name java: is not bound inthis Context

2003-01-16 Thread Veniamin Fichin
Roberts, Eric wrote:


Yes, but the resource name is jdbc/esljsp - java:comp/env/jdbc/esljsp would be used in a servlet using JNDI such as:

 ctx = new InitialContext();
 Context envCtx = (Context) ctx.lookup(java:/comp/env/);
 DataSource ds = (DataSource) envCtx.lookup(/jdbc/esljsp);


   Servlet snippet:

--= [ cut ] =--
try {
javax.naming.InitialContext initCtx=new InitialContext();
javax.naming.Context envCtx=
  (Context)initCtx.lookup(java:/comp/env);
javax.sql.DataSource ds=(DataSource)envCtx.lookup(jdbc/esljsp);
}
catch (NamingException ne) {
out.println(ne);
}
--= [ / cut ] =--

   And it works. But dataSourceName attribute from DataSourceRealm is not.


Regards

Eric

-Original Message-


--= [ cut ] =--


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




sevlet comm using singletons

2003-01-16 Thread Felipe Schnack
  Hey all
  do you believe is safe to use singletons to share data between
servlets? Using servletcontext seems just too ugly for me :-)
-- 

Felipe Schnack
Analista de Sistemas
[EMAIL PROTECTED]
Cel.: (51)91287530
Linux Counter #281893

Centro Universitário Ritter dos Reis
http://www.ritterdosreis.br
[EMAIL PROTECTED]
Fone/Fax.: (51)32303341


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




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

2003-01-16 Thread Roberts, Eric
Sorry - missed it earlier - in the Realm definition, I think it should be just 
resourceName=jdbc/esljsp - not dataSourceName=jdbc/esljsp



-Original Message-
From: Veniamin Fichin [mailto:[EMAIL PROTECTED]]
Sent: Donnerstag, 16. Jänner 2003 12:26
To: Tomcat Users List
Subject: Re: javax.naming.NameNotFoundException: Name java: is not bound
in this Context


Roberts, Eric wrote:

 Yes, but the resource name is jdbc/esljsp - java:comp/env/jdbc/esljsp would be used 
in a servlet using JNDI such as:
 
  ctx = new InitialContext();
  Context envCtx = (Context) ctx.lookup(java:/comp/env/);
  DataSource ds = (DataSource) envCtx.lookup(/jdbc/esljsp);

Servlet snippet:

--= [ cut ] =--
try {
 javax.naming.InitialContext initCtx=new InitialContext();
 javax.naming.Context envCtx=
   (Context)initCtx.lookup(java:/comp/env);
 javax.sql.DataSource ds=(DataSource)envCtx.lookup(jdbc/esljsp);
}
catch (NamingException ne) {
 out.println(ne);
}
--= [ / cut ] =--

And it works. But dataSourceName attribute from DataSourceRealm is not.

 Regards
 
 Eric
 
 -Original Message-

--= [ cut ] =--


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


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




tomcat configuration with apache 1.3.27 ssl

2003-01-16 Thread Helene Figueiredo
Hi,

Can someone give me an example of tomcat configuration with apache 1.3.27 ssl ?
Our apache ssl configuration is ok.
Our tomcat configuration without apache ssl is ok.
But we're not able to integrate both.

Thanks.


___

Helene FIGUEIREDO
CRIP
Universite Joseph Fourier - Grenoble 1
BP 53
38041 Grenoble cedex 9
Mail : [EMAIL PROTECTED]


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




memory problem

2003-01-16 Thread rf
I get OutofMemory with tomcat 4.0.6 and sun's jdk1.3.
From the archives I found this is due to a bug in the
sun's jdk 1.3 JVM, and people suggest to upgrade to
1.4

Does IBM's jdk1.3 too gives the same problem or is it
only the Sun's?

Thanks,
Rf

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




HTTP Help

2003-01-16 Thread rf
I am studying HTTP, and I have a question with this
site
http://www.omeda.com/ziff/ewk/ewk.cgi?t=whbackp=hpnav2

Fill the form here and submit. By using the HTTP
debugger http://reitshamer.com/source/hds.html
I found that IE sends two requests when this form is
submitted. First, without the Submit button
'Continue'. It gets a response, it is not a 302 kind
of response. Then it requests the same URL again, this
time with the Continue button. Whats the matter here -
I am not able to understand. Can somebody tell me?

THANKS
Rf

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




Re: javax.naming.NameNotFoundException: Name java: is not bound inthis Context

2003-01-16 Thread Veniamin Fichin
Roberts, Eric wrote:


Sorry - missed it earlier - in the Realm definition, I think it should be just resourceName=jdbc/esljsp - not dataSourceName=jdbc/esljsp


   That's odd. There is no resourceName attribute in DataSourceRealm 
documentation. I looked at the source of it and saw 
(set|get)DataSourceName only.
   And I see that tomcat docs is wrong in DataSourceRealm description, 
because attribute list there is not reflect real things in code.
   Now I'm trying to look into the sources, but I'm not so hacky...

-Original Message-
From: Veniamin Fichin [mailto:[EMAIL PROTECTED]]
Sent: Donnerstag, 16. Jänner 2003 12:26
To: Tomcat Users List
Subject: Re: javax.naming.NameNotFoundException: Name java: is not bound
in this Context

Roberts, Eric wrote:


Yes, but the resource name is jdbc/esljsp - java:comp/env/jdbc/esljsp would be used in a servlet using JNDI such as:

ctx = new InitialContext();
Context envCtx = (Context) ctx.lookup(java:/comp/env/);
DataSource ds = (DataSource) envCtx.lookup(/jdbc/esljsp);



Servlet snippet:

--= [ cut ] =--
try {
 javax.naming.InitialContext initCtx=new InitialContext();
 javax.naming.Context envCtx=
   (Context)initCtx.lookup(java:/comp/env);
 javax.sql.DataSource ds=(DataSource)envCtx.lookup(jdbc/esljsp);
}
catch (NamingException ne) {
 out.println(ne);
}
--= [ / cut ] =--

And it works. But dataSourceName attribute from DataSourceRealm is not.


Regards

Eric

-Original Message-


--= [ cut ] =--


--
Veniamin Fichin  [EMAIL PROTECTED]
Programmer athttp://www.rbcsoft.ru/


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




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

2003-01-16 Thread Roberts, Eric
All I know is that if you read the server.xml which comes with TC, that is what is 
there!!

-Original Message-
From: Veniamin Fichin [mailto:[EMAIL PROTECTED]]
Sent: Donnerstag, 16. Jänner 2003 13:33
To: Tomcat Users List
Subject: Re: javax.naming.NameNotFoundException: Name java: is not bound
in this Context


Roberts, Eric wrote:

 Sorry - missed it earlier - in the Realm definition, I think it should be just 
resourceName=jdbc/esljsp - not dataSourceName=jdbc/esljsp

That's odd. There is no resourceName attribute in DataSourceRealm 
documentation. I looked at the source of it and saw 
(set|get)DataSourceName only.
And I see that tomcat docs is wrong in DataSourceRealm description, 
because attribute list there is not reflect real things in code.
Now I'm trying to look into the sources, but I'm not so hacky...

 -Original Message-
 From: Veniamin Fichin [mailto:[EMAIL PROTECTED]]
 Sent: Donnerstag, 16. Jänner 2003 12:26
 To: Tomcat Users List
 Subject: Re: javax.naming.NameNotFoundException: Name java: is not bound
 in this Context
 
 Roberts, Eric wrote:
 
Yes, but the resource name is jdbc/esljsp - java:comp/env/jdbc/esljsp would be used 
in a servlet using JNDI such as:

 ctx = new InitialContext();
 Context envCtx = (Context) ctx.lookup(java:/comp/env/);
 DataSource ds = (DataSource) envCtx.lookup(/jdbc/esljsp);
 
 
 Servlet snippet:
 
 --= [ cut ] =--
 try {
  javax.naming.InitialContext initCtx=new InitialContext();
  javax.naming.Context envCtx=
(Context)initCtx.lookup(java:/comp/env);
  javax.sql.DataSource ds=(DataSource)envCtx.lookup(jdbc/esljsp);
 }
 catch (NamingException ne) {
  out.println(ne);
 }
 --= [ / cut ] =--
 
 And it works. But dataSourceName attribute from DataSourceRealm is not.
 
Regards

Eric

-Original Message-
 
 --= [ cut ] =--

-- 
Veniamin Fichin  [EMAIL PROTECTED]
Programmer athttp://www.rbcsoft.ru/


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


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




RE: IO Exception: Connection reset by peer: socket write error

2003-01-16 Thread Turner, John

Sounds like some sort of timeout or firewall blocking to me.  If it works
fine when both nodes are on a local network or subnet, but not when they are
remote, something in-between is causing problems, or one or the other nodes
is not set to wait long enough for delays caused by intervening networks or
routers.

John


 -Original Message-
 From: Lior Shliechkorn [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 15, 2003 4:56 PM
 To: Tomcat Users List
 Subject: RE: IO Exception: Connection reset by peer: socket 
 write error
 
 
 
 Agreed on that one. However, back to the issue, this is not 
 letting me log back in to the application. And, it's not 
 throwing an exception in the filter that I have that 
 gets/releases DB connections from a connection pool.
 When the application is run over in the same network as the 
 DB there is no problem at all. Just when I run it from a 
 different location it seems to act up in this manner. That's 
 why I'm not quite sure.
  Turner, John [EMAIL PROTECTED] wrote:
 Never mind...I missed the part about the DB. *sigh* ...time 
 for an after
 work beer.
 
 John
 
 
 

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




RE: WARP (Apache-Tomcat)

2003-01-16 Thread Turner, John

Going forward, it looks like WARP will not be supported.  There's a good
chance that Tomcat 5 or future versions won't be backwards compatible.  If
that's the case, the long-term solution would be to use JK or JK2.
Otherwise, you'll just have to go through this process again.

WARP will probably work for you, but each day that goes by there are less
people using it, and there is more chance you won't be able to get help for
it.  It's up to you.

John

 -Original Message-
 From: neal [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 15, 2003 5:44 PM
 To: Tomcat Users List
 Subject: RE: WARP (Apache-Tomcat)
 
 
 Is it known to be buggy on Linux or just Windows?  It sounds 
 like its fine
 and even preferred according to some docs when using Linux/Apache 1.3.
 Also, I discussed load balancing and it sounds like we're 
 using hardware
 load balancer so each instance of Apache will have a 1:1 map 
 to its own
 Tomcat instance.
 
 In this case, is using WARP for production purposes a bad idea?
 
 Thanks.
 Neal
 

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




RE: Tomcat on windows platform?

2003-01-16 Thread Turner, John

Don't forget the licensing and mandatory upgrade costs and fees.

John

 -Original Message-
 From: Robert L Sowders [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 15, 2003 6:57 PM
 To: Tomcat Users List
 Subject: Re: Tomcat on windows platform?
 
 
 Take it from someone who knows,
 
 First off, for all those Windows faithful flamers out there, 
 don't get me 
 wrong, I do both at my site.  Both OS's have their place.  
 But I spend 
 more time and money on the Windows segments which actually 
 comprise less 
 of my architecture than my Solaris, Linux, FreeBSD machines.
 
 I don't want to start the OS wars again, or a flame contest.  
 Most Unix 
 shops will just sit back and smile when someone says their 
 thinking of 
 going to windows to solve some problem.
 
 But,,, From personal experience.
 
 If you go the Microsoft route you will end up spending the 
 same if not 
 more on administration fees.  Toss in the requirement to 
 purchase beefier 
 hardware to get the same performance, not to mention the 
 creep that comes 
 with anything Microsoft.  By creep I mean, you start with one 
 server, then 
 someone gets the bright idea to do .NET or install AD, or horror of 
 horrors, do both, so everyone can work seamlessly on the new IIS 
 webserver.  Which BTW has now turned into a farm.  Then you'll end up 
 doing Microsoft exchange for email.  Ahhh the nightmares of 
 security too. 
 That by itself is almost a full time job.  IIS probably has the worst 
 reputation and track record of any internet server ever made.  You'll 
 spend lots of time running around fighting email worms and 
 system upgrades 
 to cover newly discovered security holes, only to have your 
 entire site 
 brought down by some script kiddie in Sweden, if not 
 completely erased by 
 some worm.
 

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




RE: tomcat configuration with apache 1.3.27 ssl

2003-01-16 Thread Turner, John

Please be more specific.  What problems are you experiencing?  What
connector are you using?  What is your configuration, operating system, JDK
version, etc. etc.?

John


 -Original Message-
 From: Helene Figueiredo [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 16, 2003 6:57 AM
 To: [EMAIL PROTECTED]
 Subject: tomcat configuration with apache 1.3.27 ssl
 
 
 Hi,
 
 Can someone give me an example of tomcat configuration with 
 apache 1.3.27 ssl ?
 Our apache ssl configuration is ok.
 Our tomcat configuration without apache ssl is ok.
 But we're not able to integrate both.
 
 Thanks.
 
 
 ___
 
 Helene FIGUEIREDO
 CRIP
 Universite Joseph Fourier - Grenoble 1
 BP 53
 38041 Grenoble cedex 9
 Mail : [EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

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




RE: HTTP Help

2003-01-16 Thread Turner, John

This is a mailing list for Tomcat related questions.  You might be better
off asking your question on a HTTP protocol mailing list, or a Microsoft IE
users mailing list.

John


 -Original Message-
 From: rf [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 16, 2003 7:26 AM
 To: [EMAIL PROTECTED]
 Subject: HTTP Help
 
 
 I am studying HTTP, and I have a question with this
 site
 http://www.omeda.com/ziff/ewk/ewk.cgi?t=whbackp=hpnav2
 
 Fill the form here and submit. By using the HTTP
 debugger http://reitshamer.com/source/hds.html
 I found that IE sends two requests when this form is
 submitted. First, without the Submit button
 'Continue'. It gets a response, it is not a 302 kind
 of response. Then it requests the same URL again, this
 time with the Continue button. Whats the matter here -
 I am not able to understand. Can somebody tell me?
 
 THANKS
 Rf
 
 __
 Do you Yahoo!?
 Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
 http://mailplus.yahoo.com
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

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




JSP fine but no Java.

2003-01-16 Thread Andoni
Hello,

I am having a really annoying problem that I hope somebody can help me with.

My tomcat will run .jsp files fine and process them perfectly but will not
even consider using a .class file.

My app has jsps with javabeans linked in through tags in the .jsp files.  In
fact any java code in the .jsp files seems to work fine until a java class
needs to be called.

Please help as I haven't got much hair left from pulling it all out ;)

Regards

Andoni.


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




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

2003-01-16 Thread Roberts, Eric
Just some other things which may help:

I define my Realm datasource in the GlobalNamingResource element of server.xml and 
this is where the parameters are also defined.
Any Context requiring authentication is defined with privileged=true.
My Realm is defined within the Engine element - as the last item.

-Original Message-
From: Veniamin Fichin [mailto:[EMAIL PROTECTED]]
Sent: Donnerstag, 16. Jänner 2003 13:33
To: Tomcat Users List
Subject: Re: javax.naming.NameNotFoundException: Name java: is not bound
in this Context


Roberts, Eric wrote:

 Sorry - missed it earlier - in the Realm definition, I think it should be just 
resourceName=jdbc/esljsp - not dataSourceName=jdbc/esljsp

That's odd. There is no resourceName attribute in DataSourceRealm 
documentation. I looked at the source of it and saw 
(set|get)DataSourceName only.
And I see that tomcat docs is wrong in DataSourceRealm description, 
because attribute list there is not reflect real things in code.
Now I'm trying to look into the sources, but I'm not so hacky...

 -Original Message-
 From: Veniamin Fichin [mailto:[EMAIL PROTECTED]]
 Sent: Donnerstag, 16. Jänner 2003 12:26
 To: Tomcat Users List
 Subject: Re: javax.naming.NameNotFoundException: Name java: is not bound
 in this Context
 
 Roberts, Eric wrote:
 
Yes, but the resource name is jdbc/esljsp - java:comp/env/jdbc/esljsp would be used 
in a servlet using JNDI such as:

 ctx = new InitialContext();
 Context envCtx = (Context) ctx.lookup(java:/comp/env/);
 DataSource ds = (DataSource) envCtx.lookup(/jdbc/esljsp);
 
 
 Servlet snippet:
 
 --= [ cut ] =--
 try {
  javax.naming.InitialContext initCtx=new InitialContext();
  javax.naming.Context envCtx=
(Context)initCtx.lookup(java:/comp/env);
  javax.sql.DataSource ds=(DataSource)envCtx.lookup(jdbc/esljsp);
 }
 catch (NamingException ne) {
  out.println(ne);
 }
 --= [ / cut ] =--
 
 And it works. But dataSourceName attribute from DataSourceRealm is not.
 
Regards

Eric

-Original Message-
 
 --= [ cut ] =--

-- 
Veniamin Fichin  [EMAIL PROTECTED]
Programmer athttp://www.rbcsoft.ru/


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


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




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

2003-01-16 Thread Roberts, Eric
I am using 4.1.18 also - but upgraded from 4.1.12

-Original Message-
From: Veniamin Fichin [mailto:[EMAIL PROTECTED]]
Sent: Donnerstag, 16. Jänner 2003 14:03
To: Tomcat Users List
Subject: Re: javax.naming.NameNotFoundException: Name java: is not bound
in this Context


Roberts, Eric wrote:

 All I know is that if you read the server.xml which comes with TC, that is what is 
there!!

You may saw this attribute in UserDatabaseRealm definition in 
server.xml:

   Realm className=org.apache.catalina.realm.UserDatabaseRealm
  debug=0 resourceName=UserDatabase/

But we are talking about DataSourceRealm...

Anyway thank you for your effort! May be I should try writing in 
tomcat-dev , as this feature is relatively new (if I'm not wrong, it 
first appeared in 4.1.18), and there may be truly a bug.

 -Original Message-
 From: Veniamin Fichin [mailto:[EMAIL PROTECTED]]
 Sent: Donnerstag, 16. Jänner 2003 13:33
 To: Tomcat Users List
 Subject: Re: javax.naming.NameNotFoundException: Name java: is not bound
 in this Context
 
 Roberts, Eric wrote:
 
Sorry - missed it earlier - in the Realm definition, I think it should be just 
resourceName=jdbc/esljsp - not dataSourceName=jdbc/esljsp
 
 That's odd. There is no resourceName attribute in DataSourceRealm 
 documentation. I looked at the source of it and saw 
 (set|get)DataSourceName only.
 And I see that tomcat docs is wrong in DataSourceRealm description, 
 because attribute list there is not reflect real things in code.
 Now I'm trying to look into the sources, but I'm not so hacky...

--= [ cut ] =--


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


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




RE: JSP fine but no Java.

2003-01-16 Thread Collins, Jim
Tomcat can't serve a .class file in the same way it could a .html or .jsp.

 -Original Message-
 From: Andoni [mailto:[EMAIL PROTECTED]]
 Sent: 16 January 2003 13:12
 To: Tomcat Users List
 Subject: JSP fine but no Java.
 
 
 Hello,
 
 I am having a really annoying problem that I hope somebody 
 can help me with.
 
 My tomcat will run .jsp files fine and process them perfectly 
 but will not
 even consider using a .class file.
 
 My app has jsps with javabeans linked in through tags in the 
 .jsp files.  In
 fact any java code in the .jsp files seems to work fine until 
 a java class
 needs to be called.
 
 Please help as I haven't got much hair left from pulling it all out ;)
 
 Regards
 
 Andoni.
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 


PLEASE READ: The information contained in this email is confidential
and intended for the named recipient(s) only. If you are not an intended
recipient of this email you must not copy, distribute or take any 
further action in reliance on it and you should delete it and notify the
sender immediately. Email is not a secure method of communication and 
Nomura International plc cannot accept responsibility for the accuracy
or completeness of this message or any attachment(s). Please examine this
email for virus infection, for which Nomura International plc accepts
no responsibility. If verification of this email is sought then please
request a hard copy. Unless otherwise stated any views or opinions
presented are solely those of the author and do not represent those of
Nomura International plc. This email is intended for informational
purposes only and is not a solicitation or offer to buy or sell
securities or related financial instruments. Nomura International plc is
regulated by the Financial Services Authority and is a member of the
London Stock Exchange.



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




Re: JSP fine but no Java.

2003-01-16 Thread Andoni
I realise a .class file cannot be served to a browser etc. but why can it
not be used by my application.

It works most of the time, unfortunately I have just changed something in
the config and now it's not working


- Original Message -
From: Collins, Jim [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Thursday, January 16, 2003 1:16 PM
Subject: RE: JSP fine but no Java.


 Tomcat can't serve a .class file in the same way it could a .html or .jsp.

  -Original Message-
  From: Andoni [mailto:[EMAIL PROTECTED]]
  Sent: 16 January 2003 13:12
  To: Tomcat Users List
  Subject: JSP fine but no Java.
 
 
  Hello,
 
  I am having a really annoying problem that I hope somebody
  can help me with.
 
  My tomcat will run .jsp files fine and process them perfectly
  but will not
  even consider using a .class file.
 
  My app has jsps with javabeans linked in through tags in the
  .jsp files.  In
  fact any java code in the .jsp files seems to work fine until
  a java class
  needs to be called.
 
  Please help as I haven't got much hair left from pulling it all out ;)
 
  Regards
 
  Andoni.
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 


 PLEASE READ: The information contained in this email is confidential
 and intended for the named recipient(s) only. If you are not an intended
 recipient of this email you must not copy, distribute or take any
 further action in reliance on it and you should delete it and notify the
 sender immediately. Email is not a secure method of communication and
 Nomura International plc cannot accept responsibility for the accuracy
 or completeness of this message or any attachment(s). Please examine this
 email for virus infection, for which Nomura International plc accepts
 no responsibility. If verification of this email is sought then please
 request a hard copy. Unless otherwise stated any views or opinions
 presented are solely those of the author and do not represent those of
 Nomura International plc. This email is intended for informational
 purposes only and is not a solicitation or offer to buy or sell
 securities or related financial instruments. Nomura International plc is
 regulated by the Financial Services Authority and is a member of the
 London Stock Exchange.



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




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




RE: JSP fine but no Java.

2003-01-16 Thread Barney Hamish
Are the class files you're trying to use in your /WEB-INF/classes/ directory
or in a jar in your /WEB-INF/lib/ directory?
Have you tried using the jsp:useBean tag?

 -Original Message-
 From: Andoni [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 16, 2003 2:12 PM
 To: Tomcat Users List
 Subject: JSP fine but no Java.
 
 
 Hello,
 
 I am having a really annoying problem that I hope somebody 
 can help me with.
 
 My tomcat will run .jsp files fine and process them perfectly 
 but will not
 even consider using a .class file.
 
 My app has jsps with javabeans linked in through tags in the 
 .jsp files.  In
 fact any java code in the .jsp files seems to work fine until 
 a java class
 needs to be called.
 
 Please help as I haven't got much hair left from pulling it all out ;)
 
 Regards
 
 Andoni.
 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

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




Re: memory problem

2003-01-16 Thread Kristján Bjarni Guðmundsson
I wouldn't upgrade to SUN 1.4, it has the same but different problem:

http://developer.java.sun.com/developer/bugParade/bugs/4724129.html

rf [EMAIL PROTECTED] wrote on 16.01.2003 12:14:48:

 I get OutofMemory with tomcat 4.0.6 and sun's jdk1.3.
 From the archives I found this is due to a bug in the
 sun's jdk 1.3 JVM, and people suggest to upgrade to
 1.4
 
 Does IBM's jdk1.3 too gives the same problem or is it
 only the Sun's?
 
 Thanks,
 Rf
 
 __
 Do you Yahoo!?
 Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
 http://mailplus.yahoo.com
 
 --
 To unsubscribe, e-mail: 
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]
 



Re: JSP fine but no Java.

2003-01-16 Thread Andoni
The classfiles are in the right place.  That tag is what's being used.

Andoni.
- Original Message -
From: Barney Hamish [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Thursday, January 16, 2003 1:20 PM
Subject: RE: JSP fine but no Java.


 Are the class files you're trying to use in your /WEB-INF/classes/
directory
 or in a jar in your /WEB-INF/lib/ directory?
 Have you tried using the jsp:useBean tag?

  -Original Message-
  From: Andoni [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, January 16, 2003 2:12 PM
  To: Tomcat Users List
  Subject: JSP fine but no Java.
 
 
  Hello,
 
  I am having a really annoying problem that I hope somebody
  can help me with.
 
  My tomcat will run .jsp files fine and process them perfectly
  but will not
  even consider using a .class file.
 
  My app has jsps with javabeans linked in through tags in the
  .jsp files.  In
  fact any java code in the .jsp files seems to work fine until
  a java class
  needs to be called.
 
  Please help as I haven't got much hair left from pulling it all out ;)
 
  Regards
 
  Andoni.
 
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]

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




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




RE: JSP fine but no Java.

2003-01-16 Thread Prashanth Gane
put all u r class files inside a package and try it...u will get it..

-Original Message-
From: Andoni [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 16, 2003 6:42 PM
To: Tomcat Users List
Subject: JSP fine but no Java.


Hello,

I am having a really annoying problem that I hope somebody can help me with.

My tomcat will run .jsp files fine and process them perfectly but will not
even consider using a .class file.

My app has jsps with javabeans linked in through tags in the .jsp files.  In
fact any java code in the .jsp files seems to work fine until a java class
needs to be called.

Please help as I haven't got much hair left from pulling it all out ;)

Regards

Andoni.


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



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




RE: JSP fine but no Java.

2003-01-16 Thread Barney Hamish
What is the actual error message being displayed?
Can you send an example of the the jsp:useBean tag you're using and then
the use of that bean?
It's hard to diagnose the problem without more specific information.
Hamish

 -Original Message-
 From: Andoni [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 16, 2003 2:37 PM
 To: Tomcat Users List
 Subject: Re: JSP fine but no Java.
 
 
 The classfiles are in the right place.  That tag is what's being used.
 
 Andoni.
 - Original Message -
 From: Barney Hamish [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Thursday, January 16, 2003 1:20 PM
 Subject: RE: JSP fine but no Java.
 
 
  Are the class files you're trying to use in your /WEB-INF/classes/
 directory
  or in a jar in your /WEB-INF/lib/ directory?
  Have you tried using the jsp:useBean tag?
 
   -Original Message-
   From: Andoni [mailto:[EMAIL PROTECTED]]
   Sent: Thursday, January 16, 2003 2:12 PM
   To: Tomcat Users List
   Subject: JSP fine but no Java.
  
  
   Hello,
  
   I am having a really annoying problem that I hope somebody
   can help me with.
  
   My tomcat will run .jsp files fine and process them perfectly
   but will not
   even consider using a .class file.
  
   My app has jsps with javabeans linked in through tags in the
   .jsp files.  In
   fact any java code in the .jsp files seems to work fine until
   a java class
   needs to be called.
  
   Please help as I haven't got much hair left from pulling 
 it all out ;)
  
   Regards
  
   Andoni.
  
  
   --
   To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

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




Re: javax.naming.NameNotFoundException: Name java: is not bound inthis Context

2003-01-16 Thread Veniamin Fichin
Roberts, Eric wrote:


Just some other things which may help:

I define my Realm datasource in the GlobalNamingResource element of server.xml and this is where the parameters are also defined.
Any Context requiring authentication is defined with privileged=true.
My Realm is defined within the Engine element - as the last item.


   Thanks, but this didn't help either. :-(

 I am using 4.1.18 also - but upgraded from 4.1.12

   I use 4.1.18 upgraded from 4.1.16 . Really, I use Multiple 
instances of Tomcat scheme, keeping $CATALINA_BASE the same, and just 
point $CATALINA_HOME to newly downloaded and un-tar.gz-iped directory of 
Tomcat. This way, only configs stay the same, and are reviewed only to 
reflect what new version's docs say.


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



RE: Jk2 application questions

2003-01-16 Thread Kemp Randy-W18971
Do you mean in the Tomcat docs (concerning the Redhat configuration)?  If
now, then which website?

-Original Message-
From: Robert L Sowders [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 15, 2003 5:27 PM
To: Tomcat Users List
Subject: Re: Jk2 application questions


Try this from Umberto.

Pay particular attention to the Tomcat and JK2 and Apache2 configs.  Even 
though it was written for RedHat it works for windows too.  The concepts 
are the same.

rls





Kemp Randy-W18971 [EMAIL PROTECTED]
01/15/2003 05:59 AM
Please respond to Tomcat Users List

 
To: '[EMAIL PROTECTED]'
[EMAIL PROTECTED]
cc: 
Subject:Jk2 application questions


OK.  I have the 2x and 4x versions of Apache and Tomcat, along with the
mod_jk2 connector, set up on Solaris and Windows 2000.  Here is what I am
having problems with.
1.  Context path.  If I set up an application context path for pdlens in
Tomcat, I can go http://localhost:8080/examples and
http:/localhost:8080/pdlens.  Now I can also get http://localhost/examples
but not http://localhost/pdlens.  What could be missing?
2. Virtual hosts.  If I have a virtual host called www.test.com, I can get
www.test.com from Apache, but not www.test.com/pdlens talking to Tomcat.
What could be missing here?
In both cases, it can't find the desired websites.

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





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




Problems using Tomcat 4.1.12-LE-jdk14 HTTPServlet.log(java.lang.String)

2003-01-16 Thread Thomas B. Holdren
Greetings,

I have scoured the web/mailing lists all day and have had no luck with
this.

I have a singular servlet in a test context that runs fine until I put
in an HTTPServlet.log(java.lang.String) statement in the servlet's
init() method.  I just want to log a string when the servlet init()'s.
Following is the error message from Tomcat and the configuration of the 
context.

Thanks in advance to anyone who can help.

Sincerely,

Thomas B. Holdren, Developer

System:
RedHat Linux 7.3
Tomcat 4.1.12-LE-jdk14
j2sdk1.4.1_01

Error message:
java.lang.NullPointerException
at 
javax.servlet.GenericServlet.getServletContext(GenericServlet.java:204)
at javax.servlet.GenericServlet.log(GenericServlet.java:298)
at Fred.doGet(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:458)
at 
org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:180)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
at java.lang.Thread.run(Thread.java:536)

Relevant server.xml entry:
Context path=/jobb docBase=jobb reloadable=true
  Logger className=org.apache.catalina.logger.FileLogger
  prefix=localhost_jobb_log. suffix=.txt timestamp=true /
/Context

web.xml web-app section:
display-nameJava Object Bulletin Board/display-name
servlet-mapping
  servlet-nameinvoker/servlet-name
  url-pattern/servlet/*/url-pattern
/servlet-mapping


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



RE: Urgent: Tomcat dies with socket exceptions !

2003-01-16 Thread Sylvain Beaumont

Hi Yoav,

there is no root stack trace. Here is the whole trace:

2003-01-15 10:32:07 StandardWrapperValve[default]: Servlet.service() for
servlet default threw exception
java.net.SocketException: Connection reset by peer: socket write error
 at java.net.SocketOutputStream.socketWrite0(Native Method)
 at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
 at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
 at
org.apache.coyote.http11.InternalOutputBuffer$OutputStreamOutputBuffer.d
oWrite(InternalOutputBuffer.java:652)
 at
org.apache.coyote.http11.filters.IdentityOutputFilter.doWrite(IdentityOu
tputFilter.java:160)
 at
org.apache.coyote.http11.InternalOutputBuffer.doWrite(InternalOutputBuff
er.java:523)
 at org.apache.coyote.Response.doWrite(Response.java:513)
 at
org.apache.coyote.tomcat4.OutputBuffer.realWriteBytes(OutputBuffer.java:
380)
 at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:360)
 at
org.apache.coyote.tomcat4.OutputBuffer.writeBytes(OutputBuffer.java:413)
 at org.apache.coyote.tomcat4.OutputBuffer.write(OutputBuffer.java:394)
 at
org.apache.coyote.tomcat4.CoyoteOutputStream.write(CoyoteOutputStream.ja
va:110)
 at
org.apache.catalina.servlets.DefaultServlet.copyRange(DefaultServlet.jav
a:1996)
 at
org.apache.catalina.servlets.DefaultServlet.copy(DefaultServlet.java:174
5)
 at
org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet
.java:1073)
 at
org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:50
6)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:247)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:193)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:260)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:191)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
 at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.ja
va:246)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:239
6)
 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:180)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
 at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
lve.java:170)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:172)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:174)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
 at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:40
5)
 at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
onnection(Http11Protocol.java:380)
 at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:50
8)
 at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:533)
 at java.lang.Thread.run(Thread.java:536)

We are going to update to 4.1.18, and see if it happens again.

Thank you,

Sylvain


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




Re: JSP fine but no Java.

2003-01-16 Thread Andoni
Apache Tomcat/4.0.4 - HTTP Status 500 - Internal Server Error




type Exception report

message Internal Server Error

description The server encountered an internal error (Internal Server Error)
that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: class
com.company_name.javaBeans.MerchandiseBean :
java.lang.NullPointerException
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java, Compiled Code)
at org.apache.jsp.validate$jsp._jspService(validate$jsp.java, Compiled
Code)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java, Compiled
Code)
jsp:useBean id=merchandise scope=application
class=com.company_name.javaBeans.MerchandiseBean/- Original
Message -
From: Barney Hamish [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Thursday, January 16, 2003 1:47 PM
Subject: RE: JSP fine but no Java.


 What is the actual error message being displayed?
 Can you send an example of the the jsp:useBean tag you're using and then
 the use of that bean?
 It's hard to diagnose the problem without more specific information.
 Hamish

  -Original Message-
  From: Andoni [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, January 16, 2003 2:37 PM
  To: Tomcat Users List
  Subject: Re: JSP fine but no Java.
 
 
  The classfiles are in the right place.  That tag is what's being used.
 
  Andoni.
  - Original Message -
  From: Barney Hamish [EMAIL PROTECTED]
  To: 'Tomcat Users List' [EMAIL PROTECTED]
  Sent: Thursday, January 16, 2003 1:20 PM
  Subject: RE: JSP fine but no Java.
 
 
   Are the class files you're trying to use in your /WEB-INF/classes/
  directory
   or in a jar in your /WEB-INF/lib/ directory?
   Have you tried using the jsp:useBean tag?
  
-Original Message-
From: Andoni [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 16, 2003 2:12 PM
To: Tomcat Users List
Subject: JSP fine but no Java.
   
   
Hello,
   
I am having a really annoying problem that I hope somebody
can help me with.
   
My tomcat will run .jsp files fine and process them perfectly
but will not
even consider using a .class file.
   
My app has jsps with javabeans linked in through tags in the
.jsp files.  In
fact any java code in the .jsp files seems to work fine until
a java class
needs to be called.
   
Please help as I haven't got much hair left from pulling
  it all out ;)
   
Regards
   
Andoni.
   
   
--
To unsubscribe, e-mail:
   mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
   mailto:[EMAIL PROTECTED]
  
   --
   To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
  
  
 
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]

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




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




AXIS-and Sevlets

2003-01-16 Thread Ghershony, Arie
Hi,
I created a service and a client java programs, then Deployed descriptor to
let the Axis know that the java program is a valid web service:
I create file name Order.wsdd  and place it in the current directory:

deployment xmlns=http://xml.apache.org/axis/wsdd/;
xmlns:java=http://xml.apache.org/axis/wsdd/providers/java;
 service name=Order provider=java:RPC
  parameter name=className value=clientaxis.Battle.Order/
  parameter name=allowedMethods value=getBattle/
 /service
/deployment

Then, starteed the Tomcat server and deployed that file:
 D:\clientaxis\Battle\java org.apache.axis.client.AdminClient Order.wsdd

it was deployed successfuly however when I run in the browser
http://localhost:8080/axis/servlet/AxisServlet  I only get in the page:

And now... Some Services

I also see an exception:
 Exception:
java.lang.ClassNotFoundException: clientaxis.Battle.Order
   at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
er.java:1428)


HOW CAN I FIX THIS?
Thanks,
Eric





-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 15, 2003 8:49 AM
To: 'Tomcat Users List'
Subject: RE: servlet with Tomcat



Not quite, but certainly longer than should be necessary.  There was approx
3 or 4 months of I can't get Tomcat to start relating, I think, to not
being able to set JAVA_HOME on Windows XP, then a lull for a couple of
months, and now the current make my servlet work NOW issue.

Many people have tried to help, posting extremely specific and distinct
instructions, step by step, to no apparent difference.  Hopefully someday
things will work out.

John
  

 -Original Message-
 From: Denise Mangano [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 15, 2003 8:47 AM
 To: 'Tomcat Users List'
 Subject: RE: servlet with Tomcat
 
 
 Thanks for pointing that out Jeff - typo on my part :)  Has 
 he really been
 trying this for a year?? 
 
 Denise Mangano
 Help Desk Analyst
 Complus Data Innovations, Inc.
 
 

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

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




Re: mod_jk apache2 tomcat4.1.8

2003-01-16 Thread Bill
Lajos

Hmmm...could you explain this more thoroughly?  The virtual hosts you
mention are defined in the mod_jk.conf file.  I dont understand how I
could removed that include.  It is also the only place that has JkMount
directives...

You also mention I dont need it since I have my own LoadModule
directive, but ApacheConfig doesnt seem to add this to the mod_jk.conf
file, so now I am confused. :)

thx

-b

On Thu, 2003-01-16 at 03:32, Lajos Moczar wrote:
 Bill -
 
 Another thing is that you are mixing apples and oranges to use the 
 auto-generated mod_jk.conf. It may not be in fact your problem, but just 
 take the Include out of httpd.conf - you don't need it since a) you have 
 your own LoadModule/AddModule commands; b) you are using VirtualHosts.
 
 Regards,
 
 Lajos
 
 
 Kevin Kovach wrote:
  I'm not sure what the difference is but the sample workers.proerties 
  file here: 
  http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/workershowto.html 
  has a mixture of 'worker'  'workers'. Is that incorrect?
  
  - Kevin
  
  Denise Mangano wrote:
  
  Not sure if this is related to your problem since 1) I am a newbie and 
  2) I
  didn't see any error message included, but shouldn't the first line of 
  your
  workers.properties file look like:
 
  worker.list=ajp13
  not
  workers.list=ajp13
  ??
 
  (Just taking a guess but I compared it to mine).
 
  HTH
 
  Denise Mangano
  Help Desk Analyst
  Complus Data Innovations, Inc.
 
 
  -Original Message-
  From: Bill [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 
  January 15, 2003 10:35 AM
  To: tomcat user
  Subject: mod_jk apache2 tomcat4.1.8
 
 
  I'm still having problems using mod_jk with Apache2.  The unable to open
  config error seems to have gone away, the incomplete read errors are 
  still
  there.  I started fresh on a new box so I'll re-submit the relevant info:
 
  ##http.conf##
 
  LoadModule  jk_module   modules/mod_jk.so
  JkWorkersFile   /usr/local/tomcat/conf/jk/workers.properties
  JkLogFile   /usr/local/apache2/logs/mod_jk.log
  JkLogLevel  error
  JkLogStampFormat[%a %b %d %H: %M: %S: %Y] 
 
 
  Include /usr/local/tomcat/conf/auto/mod_jk.conf
 
  ##mod_jk.conf
 
  VirtualHost 192.168.1.13
 ServerName 192.168.1.13
 
 JkMount /examples ajp13
 JkMount /examples/* ajp13
 
 JkMount /webdav ajp13
 JkMount /webdav/* ajp13
 
 JkMount /tomcat-docs ajp13
 JkMount /tomcat-docs/* ajp13
 
 JkMount /manager ajp13
 JkMount /manager/* ajp13
 
 JkMount /admin ajp13
 JkMount /admin/* ajp13
JkMount /cores ajp13
 JkMount /cores/* ajp13
 
 JkMount /mrccores ajp13
 JkMount /mrccores/* ajp13
  /VirtualHost
 
  ##workers.properties##
 
  workers.list=ajp13
  worker.ajp13.type=ajp13
  worker.ajp13.host=192.168.1.13
  worker.ajp13.port=8009
 
  worker.ajp13.cachesize=10
  worker.ajp13.cache_timeout=600
  worker.ajp13.socket_keepalive=1
  worker.ajp13.socket_timeout=300
 
  ##server.xml##
  Server port=8005 shutdown=SHUTDOWN debug=0
 
   Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
 debug=0/
   Listener
  className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
 debug=0/
 
   !-- Global JNDI resources --
   GlobalNamingResources
 
 !-- Test entry for demonstration purposes --
 Environment name=simpleValue type=java.lang.Integer value=30/
 
 !-- Editable user database that can also be used by
  UserDatabaseRealm to authenticate users --
 Resource name=UserDatabase auth=Container
   type=org.apache.catalina.UserDatabase
description=User database that can be updated and saved
 /Resource
  ResourceParams name=UserDatabase
   parameter
 namefactory/name
valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
   /parameter
   parameter
 namepathname/name
 valueconf/tomcat-users.xml/value
   /parameter
 /ResourceParams
 
   /GlobalNamingResources
 
  Service name=Tomcat-Apache
 
 Connector className=org.apache.ajp.tomcat4.Ajp13Connector
  acceptCount=10 debug=0/
 Engine name=Apache defaultHost=192.168.1.13 appBase=webapps
debug=0
 
   Logger className=org.apache.catalina.logger.FileLogger
   prefix=apache_log. suffix=.txt
   timestamp=true/
 
   Realm className=org.apache.catalina.realm.MemoryRealm /
   Host name=192.168.1.13 debug=0 appBase=webapps
  unpackWARs=true
 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
 append=true /
 Valve className=org.apache.catalina.valves.AccessLogValve
 directory=logs prefix=host_access_log. suffix=.txt
 pattern=common /
 Context path= docBase=ROOT reloadable=true debug=0/
 
 Context path=/cores docBase=mrccores reloadable=true
  debug=0/
 /Host
 /Engine
 
   /Service
 
  

RE: JSP fine but no Java.

2003-01-16 Thread Barney Hamish
Try recompiling your classes, deleting the work directory and restarting
tomcat.

 -Original Message-
 From: Andoni [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 16, 2003 3:05 PM
 To: Tomcat Users List
 Subject: Re: JSP fine but no Java.
 
 
 Apache Tomcat/4.0.4 - HTTP Status 500 - Internal Server Error
 
 --
 --
 
 
 type Exception report
 
 message Internal Server Error
 
 description The server encountered an internal error 
 (Internal Server Error)
 that prevented it from fulfilling this request.
 
 exception
 
 javax.servlet.ServletException: class
 com.company_name.javaBeans.MerchandiseBean :
 java.lang.NullPointerException
   at
 org.apache.jasper.runtime.PageContextImpl.handlePageException(
 PageContextImp
 l.java, Compiled Code)
   at 
 org.apache.jsp.validate$jsp._jspService(validate$jsp.java, Compiled
 Code)
   at 
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java
 , Compiled
 Code)
 jsp:useBean id=merchandise scope=application
 class=com.company_name.javaBeans.MerchandiseBean/- Original
 Message -
 From: Barney Hamish [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Thursday, January 16, 2003 1:47 PM
 Subject: RE: JSP fine but no Java.
 
 
  What is the actual error message being displayed?
  Can you send an example of the the jsp:useBean tag you're 
 using and then
  the use of that bean?
  It's hard to diagnose the problem without more specific information.
  Hamish
 
   -Original Message-
   From: Andoni [mailto:[EMAIL PROTECTED]]
   Sent: Thursday, January 16, 2003 2:37 PM
   To: Tomcat Users List
   Subject: Re: JSP fine but no Java.
  
  
   The classfiles are in the right place.  That tag is 
 what's being used.
  
   Andoni.
   - Original Message -
   From: Barney Hamish [EMAIL PROTECTED]
   To: 'Tomcat Users List' [EMAIL PROTECTED]
   Sent: Thursday, January 16, 2003 1:20 PM
   Subject: RE: JSP fine but no Java.
  
  
Are the class files you're trying to use in your 
 /WEB-INF/classes/
   directory
or in a jar in your /WEB-INF/lib/ directory?
Have you tried using the jsp:useBean tag?
   
 -Original Message-
 From: Andoni [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 16, 2003 2:12 PM
 To: Tomcat Users List
 Subject: JSP fine but no Java.


 Hello,

 I am having a really annoying problem that I hope somebody
 can help me with.

 My tomcat will run .jsp files fine and process them perfectly
 but will not
 even consider using a .class file.

 My app has jsps with javabeans linked in through tags in the
 .jsp files.  In
 fact any java code in the .jsp files seems to work fine until
 a java class
 needs to be called.

 Please help as I haven't got much hair left from pulling
   it all out ;)

 Regards

 Andoni.


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

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




org.apache.naming.factory.BeanFactory bugs (and fixes)

2003-01-16 Thread Hansen, Richard
In trying to define my own JNDI resources using BeanFactory I came across a
number of bugs.

Bugs:
1) The howto examples used the newer resource-env-ref inplace of
resource-ref. Problem is that BeanFactory does not work with
resource-env-ref. It just returns null.

2) BeanFactory checks for instances of a ResourceRef object, if the object
passed isn't one BeanFactory just returns null. No error is logged or
exception thrown. This made debugging more difficult than it should have
been. It later casts the object to a Reference not a ResourceRef.

3) BeanFactory tries to put the value from description element into the
object as a parameter. If it can't find a setDescription method it throws a
NamingException.

Fixes:
1) BeanFactory should be checking for instances of Reference not
ResourceRef. ResourceRef and ResourceEnvRef both subclass Reference.
2) BeanFactory should throw a NamingException if the object is not an
instanceof Reference.
3) Description parameter should be ignored.

I have attached a fixed BeanFactory.java. There are quite a few messages in
the archive that relate to BeanFactory problems and the howto examples do
not work, so I hope someone will add this to the source tree.

Rick Hansen




BeanFactory.java
Description: Binary data
--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


Re: JDBC Connection pooling

2003-01-16 Thread Nathan McMinn
He he, I'd love to move to 4.1.18, but I get the most bizzare problems when
I try to do it.

see http://www.experts-exchange.com/Web/Web_Languages/JSP/Q_20456477.html
for details if you are interested.

--Nathan McMinn

 Nathan McMinn wrote:
  When trying to get a connection pool set up, tomcat spits this exception
  back out.  Nowhere in the code do I reference this class.  Can anyone
point
  me to a good HOWTO on connection pooling in tomcat 4.0.6?
 
  TyrexDataSourceFactory:  Cannot create DataSource, Exception
  java.lang.ClassNotFoundException: org.hsql.jdbcDriver
 

 I had the same experience: it seemed as though Tyrex had the hypersonic
 db hard-coded, so that any attempt to specifiy a different jdbc driver
 was simply ignored.
 The solution was to move to TC 4.1.x, which uses the jakarta-commons
 DBCP stuff in place of Tyrex, and which works fine.

 HTH,

 Martin



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





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




Cannot run JSPs with Tomcat 4.0.6

2003-01-16 Thread Al Cam
Hi everyone!

I installed the Tomcat 4.0.6 on my Unix Server, with J2SE 1.3.0. My servlets 
works fine (with JDBC connection). But with JSPs the server sends me the 
error shown lines below.

I have the jasper_compiler.jar on my CLASSPATH, but that doesn't work.

Any ideas?

==

javax.servlet.ServletException: Servlet.init() for servlet jsp threw 
exception
	at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java, 
Compiled Code)
	at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java, 
Compiled Code)
	at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java, 
Compiled Code)
	at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java, 
Compiled Code)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java, 
Compiled Code)
	at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java, 
Compiled Code)
	at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java, 
Compiled Code)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java, 
Compiled Code)
	at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
	at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java, 
Compiled Code)
	at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java, 
Compiled Code)
	at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
	at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java, 
Compiled Code)
	at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java, 
Compiled Code)
	at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java, 
Compiled Code)
	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java, 
Compiled Code)
	at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java, 
Compiled Code)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java, 
Compiled Code)
	at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java, 
Compiled Code)
	at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java, 
Compiled Code)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java, 
Compiled Code)
	at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java, 
Compiled Code)
	at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
	at java.lang.Thread.run(Thread.java:484)


root cause

java.lang.NoClassDefFoundError: org/apache/jasper/compiler/JspRuntimeContext
	at org.apache.jasper.servlet.JspServlet.init(JspServlet.java, Compiled 
Code)
	at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java, 
Compiled Code)
	at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java, 
Compiled Code)
	at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java, 
Compiled Code)
	at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java, 
Compiled Code)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java, 
Compiled Code)
	at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java, 
Compiled Code)
	at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java, 
Compiled Code)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java, 
Compiled Code)
	at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
	at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java, 
Compiled Code)
	at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java, 
Compiled Code)
	at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
	at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java, 
Compiled Code)
	at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java, 
Compiled Code)
	at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java, 
Compiled Code)
	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java, 
Compiled Code)
	at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java, 
Compiled Code)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java, 
Compiled Code)
	at 

RE: Multiple serlvet contexts being created instead of 1

2003-01-16 Thread Cox, Charlie
it will create one context for each context in server.xml. So if you have
it defined under 'Standalone' and also under 'Warp', then you will have
mutiple instances, but if you only use Warp, then it will only use one of
those instances.

Also note that it autoloads any context located under your appBase for the
host. To disable this, set the appBase=some empty dir

Charlie

 -Original Message-
 From: David Hemingway [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 14, 2003 7:26 AM
 To: Tomcat Users List
 Subject: Multiple serlvet contexts being created instead of 1
 
 
 Hi,
 
 I still have the problem of not getting a singleton class to 
 in fact be a singleton (its configured as a context listener 
 inside web.xml). Some people suggested that perhaps i was 
 getting more than 1 instance of the web app being created and 
 that seems to be the case. My context si configured in my 
 server.xml and the location of the webapp is not in tomcat's 
 standard webapp directory. The follwoing 3 stack traces are 
 basically a time line from when the server starts.
 
 I threw some dummy, caught exceptions in my code so I could 
 see the stack trace.
 
 --
 -- Server starts here --
 --
 
 1st instance of the task scheduler listener (on server start 
 as expected)
 
 Context Initialized
 The Servlet Context is 
 org.apache.catalina.core.ApplicationContext@238a47
 New Scheduler Created
 java.lang.Exception: Testing
 at com.lawonline.Scheduler.getScheduler(Scheduler.java:43)
 at 
 com.lawonline.StartServlet.contextInitialized(StartServlet.java:37)
 at 
 org.apache.catalina.core.StandardContext.listenerStart(Standar
dContext.java:3269)
 at 
 org.apache.catalina.core.StandardContext.start(StandardContext
 .java:3598)
 at 
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
 at 
 org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
 at 
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
 at 
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
 at 
 org.apache.catalina.core.StandardService.start(StandardService
 .java:497)
 at 
 org.apache.catalina.core.StandardServer.start(StandardServer.j
 ava:2189)
 at 
 org.apache.catalina.startup.Catalina.start(Catalina.java:512)
 at 
 org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
 at 
 org.apache.catalina.startup.Catalina.process(Catalina.java:180)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
 orImpl.java:39)
 at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
odAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at 
 org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
 
 
 --
 -- First request of a jsp (to any page  in the webapp) --
 --
 
 2nd instance (created from the warp connector)
 
 Context Initialized
 The Servlet Context is 
 org.apache.catalina.core.ApplicationContext@11db6bb
 New Scheduler Created
 java.lang.Exception: Testing
 at com.lawonline.Scheduler.getScheduler(Scheduler.java:43)
 at 
 com.lawonline.StartServlet.contextInitialized(StartServlet.java:37)
 at 
 org.apache.catalina.core.StandardContext.listenerStart(Standar
dContext.java:3269)
 at 
 org.apache.catalina.core.StandardContext.start(StandardContext
 .java:3598)
 at 
 org.apache.catalina.core.ContainerBase.addChildInternal(Contai
nerBase.java:821)
 at 
 org.apache.catalina.core.ContainerBase.addChild(ContainerBase.
 java:807)
 at 
 org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
 at 
 org.apache.catalina.core.StandardHostDeployer.install(Standard
HostDeployer.java:257)
 at 
 org.apache.catalina.core.StandardHost.install(StandardHost.java:772)
 at 
 org.apache.catalina.connector.warp.WarpConfigurationHandler.de
 ploy(Unknown Source)
 at 
 org.apache.catalina.connector.warp.WarpConfigurationHandler.ha
 ndle(Unknown Source)
 at 
 org.apache.catalina.connector.warp.WarpConnection.run(Unknown Source)
 at java.lang.Thread.run(Thread.java:536)
 The listener is: com.lawonline.StartServlet@157ea4a
 
 
 3rd (also created from the warp connector)
 
 Context Initialized
 The Servlet Context is 
 org.apache.catalina.core.ApplicationContext@1568fb5
 New Scheduler Created
 java.lang.Exception: Testing
 at com.lawonline.Scheduler.getScheduler(Scheduler.java:43)
 at 
 com.lawonline.StartServlet.contextInitialized(StartServlet.java:37)
 at 
 org.apache.catalina.core.StandardContext.listenerStart(Standar

RE: Cannot run JSPs with Tomcat 4.0.6

2003-01-16 Thread Turner, John

Try putting the JAR in $CATALINA_HOME/common/lib, it might even be there
already.  Tomcat doesn't do much with CLASSPATH.

John

 -Original Message-
 From: Al Cam [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 16, 2003 9:41 AM
 To: [EMAIL PROTECTED]
 Subject: Cannot run JSPs with Tomcat 4.0.6
 
 
 Hi everyone!
 
 I installed the Tomcat 4.0.6 on my Unix Server, with J2SE 
 1.3.0. My servlets 
 works fine (with JDBC connection). But with JSPs the server 
 sends me the 
 error shown lines below.
 
 I have the jasper_compiler.jar on my CLASSPATH, but that doesn't work.
 
 Any ideas?
 
 ==
 
 javax.servlet.ServletException: Servlet.init() for servlet jsp threw 
 exception
   at 
 org.apache.catalina.core.StandardWrapper.loadServlet(StandardW
 rapper.java, 
 Compiled Code)
   at 
 org.apache.catalina.core.StandardWrapper.allocate(StandardWrap
 per.java, 
 Compiled Code)
   at 
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
 rapperValve.java, 
 Compiled Code)
   at 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java, 
 Compiled Code)
   at 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:472)
   at 
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java, 
 Compiled Code)
   at 
 org.apache.catalina.core.StandardContextValve.invoke(StandardC
 ontextValve.java, 
 Compiled Code)
   at 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java, 
 Compiled Code)
   at 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:472)
   at 
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java, 
 Compiled Code)
   at 
 org.apache.catalina.core.StandardContext.invoke(StandardContex
 t.java:2347)
   at 
 org.apache.catalina.core.StandardHostValve.invoke(StandardHost
 Valve.java, 
 Compiled Code)
   at 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java, 
 Compiled Code)
   at 
 org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi
 spatcherValve.java:170)
   at 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java, 
 Compiled Code)
   at 
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport
 Valve.java, 
 Compiled Code)
   at 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java, 
 Compiled Code)
   at 
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java, 
 Compiled Code)
   at 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java, 
 Compiled Code)
   at 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:472)
   at 
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java, 
 Compiled Code)
   at 
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEn
 gineValve.java, 
 Compiled Code)
   at 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java, 
 Compiled Code)
   at 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:472)
   at 
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java, 
 Compiled Code)
   at 
 org.apache.catalina.connector.http.HttpProcessor.process(HttpP
 rocessor.java, 
 Compiled Code)
   at 
 org.apache.catalina.connector.http.HttpProcessor.run(HttpProce
 ssor.java:1125)
   at java.lang.Thread.run(Thread.java:484)
 
 
 root cause
 
 java.lang.NoClassDefFoundError: 
 org/apache/jasper/compiler/JspRuntimeContext
   at 
 org.apache.jasper.servlet.JspServlet.init(JspServlet.java, Compiled 
 Code)
   at 
 org.apache.catalina.core.StandardWrapper.loadServlet(StandardW
 rapper.java, 
 Compiled Code)
   at 
 org.apache.catalina.core.StandardWrapper.allocate(StandardWrap
 per.java, 
 Compiled Code)
   at 
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
 rapperValve.java, 
 Compiled Code)
   at 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java, 
 Compiled Code)
   at 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:472)
   at 
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java, 
 Compiled Code)
   at 
 org.apache.catalina.core.StandardContextValve.invoke(StandardC
 ontextValve.java, 
 Compiled Code)
   at 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java, 
 Compiled Code)
   at 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:472)
   at 
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java, 
 Compiled Code)
   at 
 org.apache.catalina.core.StandardContext.invoke(StandardContex
 t.java:2347)
   at 
 org.apache.catalina.core.StandardHostValve.invoke(StandardHost
 Valve.java, 
 Compiled Code)
   at 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java, 
 Compiled Code)
   at 
 

RE: tomcat configuration with apache 1.3.27 ssl

2003-01-16 Thread Helene Figueiredo
We are trying to configure tomcat on :
operating system : linux redhat 7.3
JDK : j2sdk1.4.1_01
OpenSSL : openssl-0.9.6g
Apache : apache 1.3.27+SSL
Tomcat : Tomcat 4.1.18

we have generate a certificate with openssl
we have configure apache with a basic : ./configure, make, make install
we have modified the httpsd.conf to include the certificate ssl
we have modified the catalina.sh to include the java home
when we use the connector no-ssl, tomcat is ok on the url http://
but when we use the connector ssl, there is no tomcat at the url ...

Do you have an idea ???

Many thanks.




A 08:06 16/01/2003 -0500, vous avez écrit :


Please be more specific.  What problems are you experiencing?  What
connector are you using?  What is your configuration, operating system, JDK
version, etc. etc.?

John


 -Original Message-
 From: Helene Figueiredo [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 16, 2003 6:57 AM
 To: [EMAIL PROTECTED]
 Subject: tomcat configuration with apache 1.3.27 ssl


 Hi,

 Can someone give me an example of tomcat configuration with
 apache 1.3.27 ssl ?
 Our apache ssl configuration is ok.
 Our tomcat configuration without apache ssl is ok.
 But we're not able to integrate both.

 Thanks.


 ___

 Helene FIGUEIREDO
 CRIP
 Universite Joseph Fourier - Grenoble 1
 BP 53
 38041 Grenoble cedex 9
 Mail : [EMAIL PROTECTED]


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


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



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




tomcat 4.06

2003-01-16 Thread Andrea Cristofanini

what is this error? what i have to do for fix it?

how i can use jikes to compile this??

 

javax.servlet.ServletException: (class: org/apache/jsp/QqcPage$jsp, method: 
_jspService signature: 
(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V) 
Illegal target of jump or branch at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:481)at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)  
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) 
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)  at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)  
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) 
 at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
  at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)   
   at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)  at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)   at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) 
 at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)  
  at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)  
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)   
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
  at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)  
at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:368) at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)  
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)  at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) 
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)  at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)   
 at java.lang.Thread.run(Thread.java:536)



root cause 
java.lang.VerifyError: (class: org/apache/jsp/QqcPage$jsp, method: _jspService 
signature: 
(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V) 
Illegal target of jump or branch  at java.lang.Class.getDeclaredConstructors0(Native 
Method)  at java.lang.Class.privateGetDeclaredConstructors(Class.java:1576)  
at java.lang.Class.getConstructor0(Class.java:1748) at 
java.lang.Class.newInstance0(Class.java:266) at 
java.lang.Class.newInstance(Class.java:249)  at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.load(JspServlet.java:138) 
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:178)
  at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:188)  
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381) at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)  
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) 
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)  at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)  
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) 
 at 

Tomcat behavior

2003-01-16 Thread Mohbe, Sameer


Hi Folks ,
 I have a question Folks : Does Tomcat Processes become 0 at some point
if Web Application is not accessed for a while. What has happened is twice
in our environment that on a Weekend Morning around 2:00 AM Tomcat Processes
became 0 and they later increased to 36 processes .I found out it through a
small Script that checks for the number of Apache and Tomcat processes every
Minute .I found the similar behavior for Apache Twice with Apache processes
becoming 0 and then after a while number changing to 8 which is normal in
our environment.

My question is : Does Tomcat Shuts down and restarts itself at a certain
regular interval like once in a month or so .If yes then ,is there any
Configuration file in Tomcat from where this can be Controlled.The same
question applies for Apache --if Apache shuts and restarts itself at a
certain regular interval .


Thanks in Advance 
Sameer

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




Application manager : reload a WAR

2003-01-16 Thread Elisabeth Julg

It's possible to reload a application with the application manager when it
was delpoyed by a War file ?
When I do it, I have a error :
ECHEC - Rechargement non supporté par le WAR déployé au chemin .

The configuration in server.xml is :

Context path=/ademisdev docBase=D:\AdemisDev\3.4-3.4\Pastel.war
workDir=D:\work\AdemisDev directory=D:\logs\AdemisDev 
  Logger className=org.apache.catalina.logger.FileLogger
directory=D:\logs\AdemisDev prefix=AdemisDev_log. suffix=.txt
timestamp=true /

  Parameter name=HD_Data value=D:\PastelData\AdemisDev
override=false /
  Parameter name=HD_ConfigLog
value=D:\PastelData\AdemisDev/log4j.xml override=false /
  Parameter name=HD_NbrMaxConnexion value=10 override=false
/
/Context

If a stop and start my application with manager, parameters as HD_Data,
HD_configLog, HD_NbrMaxConnexion are not available, why ?

Thanks for your help,

Elisabeth


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




Help: Red Hat Apache-Tomcat

2003-01-16 Thread Jim Wright
Hi,

It took me some time to work out that I should not
try and use mod_webapp - according to:

http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg81036.html

(Hope that helps future lurkers.)

My main problem now is that Apache 2.0.40 does not
like mod_jk2-2.0.42.so. It says:

httpd: module ../../server/apache2/mod_jk2.c is not compatible with
this version of Apache.

My Apache was supplied in Red Hat 8.0 RPM httpd-2.0.40-2.

How do I solve this? (Preferably retaining compatibilty
with future Red Hat updates/upgrades.)

I am also wondering whether I can do this in httpd.conf:

Jk2WorkersFile /var/tomcat4/conf/workers2.properties

(I have taken a jk directive and added a 2.)

Cheers,

Jim





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




configuring tomcat/apache using loadbalancing for ajp

2003-01-16 Thread Scott Burns
I am curious if this setup looks correct. I am confused about using the alias 
directive.  If you have multiple workers how can you specify more than one alias with 
the same fakename? Do I need to use them.  do I need to explicitly use them for the 
JkMount directives?   thanks
 
Scott
 
Alias /bizflow /apps/tomcat/tomcat-worker1/webapps/bizflow
Alias /bizapps /apps/tomcat/tomcat-worker2/webapps/bizapps
Alias /bizflow /apps/tomcat/tomcat-worker1/webapps/bizflow
Alias /bizapps /apps/tomcat/tomcat-worker2/webapps/bizapps
 
Directory /apps/tomcat/tomcat-worker1/webapps/bizflow
 Allow from all
/Directory
Directory /apps/tomcat/tomcat-worker2/webapps/bizflow
 Allow from all
/Directory
Directory /apps/tomcat/tomcat-worker1/webapps/bizapps
Allow from all
/Directory

Directory /apps/tomcat/tomcat-worker2/webapps/bizapps
Allow from all
/Directory
 
JkMount /bizflow/*.jsp loadbalancer
JkMount /bizapps/*.jsp loadbalancer
JkMount /bizapps/*/servlet/ loadbalancer
JkMount /bizflow/*/servlet/ loadbalancer
 
 

worker.list=worker1, worker2, loadbalancer
# 
# First tomcat server
# 
worker.worker1.port=8015
worker.worker1.host=localhost
worker.worker1.type=ajp13
# Specify the size of the open connection cache.
worker.worker1.cachesize=50
#
# Specifies the load balance factor when used with
# a load balancing worker.
# Note:
#   lbfactor must be  0
#   Low lbfactor means less work done by the worker.
worker.worker1.lbfactor=100

# 
# Second tomcat server
# 
worker.worker2.port=8016
worker.worker2.host=localhost
worker.worker2.type=ajp13
# Specify the size of the open connection cache.
worker.worker2.cachesize=50
#
# Specifies the load balance factor when used with
# a load balancing worker.
# Note:
#   lbfactor must be  0
#   Low lbfactor means less work done by the worker.
worker.worker2.lbfactor=100
 
# 
# Load Balancer worker
# 
#
# The loadbalancer (type lb) worker performs weighted round-robin
# load balancing with sticky sessions.
# Note:
#   If a worker dies, the load balancer will check its state
#once in a while. Until then all work is redirected to peer
#worker.
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=worker1, worker2
 
 

# $Header:$
# Based upon the NCSA server configuration files originally by Rob McCool.
#
# This is the main Apache server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See URL:http://httpd.apache.org/docs-2.0/ for detailed information about
# the directives.
#
# Do NOT simply read the instructions in here without understanding
# what they do.  They're here only as hints or reminders.  If you are unsure
# consult the online docs. You have been warned.  
#
# The configuration directives are grouped into three basic sections:
#  1. Directives that control the operation of the Apache server process as a
# whole (the 'global environment').
#  2. Directives that define the parameters of the 'main' or 'default' server,
# which responds to requests that aren't handled by a virtual host.
# These directives also provide default values for the settings
# of all virtual hosts.
#  3. Settings for virtual hosts, which allow Web requests to be sent to
# different IP addresses or hostnames and have them handled by the
# same Apache server process.
#
# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with / (or drive:/ for Win32), the
# server will use that explicit path.  If the filenames do *not* begin
# with /, the value of ServerRoot is prepended -- so logs/foo.log
# with ServerRoot set to /apps/apache/apache-2.0.43 will be interpreted by the
# server as /apps/apache/apache-2.0.43/logs/foo.log.
#

### Section 1: Global Environment
#
# The directives in this section affect the overall operation of Apache,
# such as the number of concurrent requests it can handle or where it
# can find its configuration files.
#

#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# NOTE!  If you intend to place this on an NFS (or otherwise network)
# mounted filesystem then please read the LockFile documentation (available
# at URL:http://httpd.apache.org/docs-2.0/mod/mpm_common.html#lockfile);
# you will save yourself a lot of trouble.
#
# Do NOT add a slash at the end of the directory path.
#
ServerRoot /apps/apache/apache-2.0.43

#
# The accept serialization lock file MUST BE STORED ON A LOCAL DISK.
#
IfModule !mpm_winnt.c
IfModule !mpm_netware.c
#LockFile logs/accept.lock
/IfModule
/IfModule

#
# ScoreBoardFile: File used to store internal server process 

Applet with a War

2003-01-16 Thread Elisabeth Julg
Hello list,

In my application, I use an applet.
The class corresponding at my applet is in jar file located in WEB-INF\lib.

When I deploy this application as a directory, it works fine, by if a use a
war file, it doesn't work. The class isn't found ! Why ?

Thanks for your help,


Elisabeth
Toulouse


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




mod_jk2/unixsocket: can't create apr

2003-01-16 Thread Matt Sales
Hello,

I'm having the same problem as a thread that was running in mid-november,
but there was never a resolution posted.
I'm trying to use unixsockets with mod_jk2 (TC 4.1.18/Apache 2.0.40, RH
7.2).

I've tried putting log4j.jar into TC_HOME/common/lib, puting the libapr.so 
libjkjni.so into JRE/lib...  Apparently, it's a class loader problem.  Is
anyone running unix sockets with tomcat 4.1.18?  I've had it working with
4.1.10...


I get the following error in catalina.out on startup:

10048 [main] INFO http11.Http11Protocol  - Starting Coyote HTTP/1.1 on port
8080
Deep stack trace
XXX public java.lang.Throwable java.lang.Throwable.getCause()
10053 [main] ERROR server.JkMain  - Can't create apr
java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
at org.apache.jk.apr.AprImpl.clinit(AprImpl.java:340)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:140)
at org.apache.jk.server.JkMain.newHandler(JkMain.java:556)
at org.apache.jk.server.JkMain.start(JkMain.java:341)
at org.apache.jk.server.JkCoyoteHandler.start(JkCoyoteHandler.java:169)
at
org.apache.coyote.tomcat4.CoyoteConnector.start(CoyoteConnector.java:1056)
at
org.apache.catalina.core.StandardService.start(StandardService.java:506)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Deep stack trace
XXX public java.lang.Throwable java.lang.Throwable.getCause()
10079 [main] ERROR server.JkMain  - Can't create apr
java.lang.NoClassDefFoundError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:140)
at org.apache.jk.server.JkMain.newHandler(JkMain.java:556)
at org.apache.jk.server.JkMain.processProperty(JkMain.java:537)
at org.apache.jk.server.JkMain.processProperties(JkMain.java:505)
at org.apache.jk.server.JkMain.start(JkMain.java:346)
at org.apache.jk.server.JkCoyoteHandler.start(JkCoyoteHandler.java:169)
at
org.apache.coyote.tomcat4.CoyoteConnector.start(CoyoteConnector.java:1056)
at
org.apache.catalina.core.StandardService.start(StandardService.java:506)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)



Thanks for your help.


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




RE: IO Exception: Connection reset by peer: socket write error

2003-01-16 Thread Lior Shliechkorn

Thanks John. That sounds like the most likely scenario.
 
 
 Turner, John [EMAIL PROTECTED] wrote:
Sounds like some sort of timeout or firewall blocking to me. If it works
fine when both nodes are on a local network or subnet, but not when they are
remote, something in-between is causing problems, or one or the other nodes
is not set to wait long enough for delays caused by intervening networks or
routers.

John


 -Original Message-
 From: Lior Shliechkorn [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 15, 2003 4:56 PM
 To: Tomcat Users List
 Subject: RE: IO Exception: Connection reset by peer: socket 
 write error
 
 
 
 Agreed on that one. However, back to the issue, this is not 
 letting me log back in to the application. And, it's not 
 throwing an exception in the filter that I have that 
 gets/releases DB connections from a connection pool.
 When the application is run over in the same network as the 
 DB there is no problem at all. Just when I run it from a 
 different location it seems to act up in this manner. That's 
 why I'm not quite sure.
 Turner, John wrote:
 Never mind...I missed the part about the DB. *sigh* ...time 
 for an after
 work beer.
 
 John
 
 
 

--
To unsubscribe, e-mail: 
For additional commands, e-mail: 



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now


RE: Help: Red Hat Apache-Tomcat

2003-01-16 Thread Turner, John

Apache modules can be Apache-version sensitive.  There have been security
updates to Apache since .40.  RedHat should have .43 available as an RPM.
If not, you should find one somewhere else.  Upgrading Apache will take care
of the compatibility issue.

Regarding your question about Jk2WorkersFile, the answer is no.  As far as I
know, mod_jk2 already knows where its workers file is, and if that command
(Jk2WorkersFile) didn't throw an error, it would probably be ignored.

John

 -Original Message-
 From: Jim Wright [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 16, 2003 10:37 AM
 To: [EMAIL PROTECTED]
 Subject: Help: Red Hat Apache-Tomcat
 
 
 Hi,
 
 It took me some time to work out that I should not
 try and use mod_webapp - according to:
 
 http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg
 81036.html
 
 (Hope that helps future lurkers.)
 
 My main problem now is that Apache 2.0.40 does not
 like mod_jk2-2.0.42.so. It says:
 
 httpd: module ../../server/apache2/mod_jk2.c is not compatible with
 this version of Apache.
 
 My Apache was supplied in Red Hat 8.0 RPM httpd-2.0.40-2.
 
 How do I solve this? (Preferably retaining compatibilty
 with future Red Hat updates/upgrades.)
 
 I am also wondering whether I can do this in httpd.conf:
 
 Jk2WorkersFile /var/tomcat4/conf/workers2.properties
 
 (I have taken a jk directive and added a 2.)
 
 Cheers,
 
 Jim
 
 
 
 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

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




RE: tomcat 4.06

2003-01-16 Thread Shapira, Yoav
Hi,
Make sure you only have one server.jar throughout your tomcat
installation: in the tomcat common directory.  And it should be the
servlet.jar (v2.3) that ships with tomcat.  Do not have any servlet
distributions under your webapps directories...

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Andrea Cristofanini [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 16, 2003 10:13 AM
To: [EMAIL PROTECTED]
Subject: tomcat 4.06


what is this error? what i have to do for fix it?

how i can use jikes to compile this??



javax.servlet.ServletException: (class: org/apache/jsp/QqcPage$jsp,
method:
_jspService signature:
(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServlet
Resp
onse;)V) Illegal target of jump or branch  at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:481)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)   at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic
atio
nFilterChain.java:247) at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil
terC
hain.java:193) at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal
ve.j
ava:243)   at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j
ava:
566)   at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
472)
   at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal
ve.j
ava:190)   at org.apache.catalina.core.StandardP!
ipeline.invokeNext(StandardPipeline.java:566)  at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.j
ava:
246)   at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j
ava:
564)   at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
472)
   at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:23
47)
   at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav
a:18
0) at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j
ava:
566)   at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherV
alve
.java:170) at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j
ava:
564)   at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav
a:17
0) at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j
ava:
564)   at org.apache.catalina.valves.AccessLogValve.in!
voke(AccessLogValve.java:468)  at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j
ava:
564)   at
org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java
:368
)  at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j
ava:
564)   at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
472)
   at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve
.jav
a:174) at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j
ava:
566)   at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
472)
   at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.
java
:1027) at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java
:112
5) at java.lang.Thread.run(Thread.java:536)



root cause
java.lang.VerifyError: (class: org/apache/jsp/QqcPage$jsp, method:
_jspService signature:
(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServlet
Resp
onse;)V) Illegal target of jump or branch  at
java.lang.Class.getDeclaredConstructors0(Native Method)at
java.lang.Class.privateGetDeclaredConstructors(Class.java:1576)
at
java.lang.Class.getConstructor0(Class.java:1748)   at
java.lang.Class.newInstance0(Class.java:266)   at
java.lang.Class.newInstance(Class.java:249)at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.load(JspServlet.
java
:138)  at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(
JspS
ervlet.java:178)   at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServl
et.j
ava:188)   at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381
)
   at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.Applic!
ationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil
terC
hain.java:193) at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal
ve.j
ava:243)   at

RE: Cannot run JSPs with Tomcat 4.0.6

2003-01-16 Thread Al Cam
I did so, but it's the same.

Now, I've been looking inside the jasper-compiler.jar, and cannot find the 
JspRuntimeContext.class

Is there some other version of jasper? or the problem is other stuff?


From: Turner, John [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Subject: RE: Cannot run JSPs with Tomcat 4.0.6
Date: Thu, 16 Jan 2003 09:54:33 -0500


Try putting the JAR in $CATALINA_HOME/common/lib, it might even be there
already.  Tomcat doesn't do much with CLASSPATH.

John

 -Original Message-
 From: Al Cam [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 16, 2003 9:41 AM
 To: [EMAIL PROTECTED]
 Subject: Cannot run JSPs with Tomcat 4.0.6


 Hi everyone!

 I installed the Tomcat 4.0.6 on my Unix Server, with J2SE
 1.3.0. My servlets
 works fine (with JDBC connection). But with JSPs the server
 sends me the
 error shown lines below.

 I have the jasper_compiler.jar on my CLASSPATH, but that doesn't work.

 Any ideas?

 ==

 javax.servlet.ServletException: Servlet.init() for servlet jsp threw
 exception
 	at
 org.apache.catalina.core.StandardWrapper.loadServlet(StandardW
 rapper.java,
 Compiled Code)
 	at
 org.apache.catalina.core.StandardWrapper.allocate(StandardWrap
 per.java,
 Compiled Code)
 	at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
 rapperValve.java,
 Compiled Code)
 	at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java,
 Compiled Code)
 	at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:472)
 	at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java,
 Compiled Code)
 	at
 org.apache.catalina.core.StandardContextValve.invoke(StandardC
 ontextValve.java,
 Compiled Code)
 	at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java,
 Compiled Code)
 	at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:472)
 	at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java,
 Compiled Code)
 	at
 org.apache.catalina.core.StandardContext.invoke(StandardContex
 t.java:2347)
 	at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHost
 Valve.java,
 Compiled Code)
 	at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java,
 Compiled Code)
 	at
 org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi
 spatcherValve.java:170)
 	at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java,
 Compiled Code)
 	at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport
 Valve.java,
 Compiled Code)
 	at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java,
 Compiled Code)
 	at
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java,
 Compiled Code)
 	at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java,
 Compiled Code)
 	at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:472)
 	at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java,
 Compiled Code)
 	at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEn
 gineValve.java,
 Compiled Code)
 	at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java,
 Compiled Code)
 	at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:472)
 	at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java,
 Compiled Code)
 	at
 org.apache.catalina.connector.http.HttpProcessor.process(HttpP
 rocessor.java,
 Compiled Code)
 	at
 org.apache.catalina.connector.http.HttpProcessor.run(HttpProce
 ssor.java:1125)
 	at java.lang.Thread.run(Thread.java:484)


 root cause

 java.lang.NoClassDefFoundError:
 org/apache/jasper/compiler/JspRuntimeContext
 	at
 org.apache.jasper.servlet.JspServlet.init(JspServlet.java, Compiled
 Code)
 	at
 org.apache.catalina.core.StandardWrapper.loadServlet(StandardW
 rapper.java,
 Compiled Code)
 	at
 org.apache.catalina.core.StandardWrapper.allocate(StandardWrap
 per.java,
 Compiled Code)
 	at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
 rapperValve.java,
 Compiled Code)
 	at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java,
 Compiled Code)
 	at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:472)
 	at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java,
 Compiled Code)
 	at
 org.apache.catalina.core.StandardContextValve.invoke(StandardC
 ontextValve.java,
 Compiled Code)
 	at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java,
 Compiled Code)
 	at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:472)
 	at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java,
 Compiled Code)
 	at
 org.apache.catalina.core.StandardContext.invoke(StandardContex
 t.java:2347)
 	at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHost
 Valve.java,
 Compiled 

Good directions here...

2003-01-16 Thread Robert Keddie


http://support.esri.com/search/KbDocument.asp?dbid=22586


For installing 4.0.5 on IIS 5.0

Robert Keddie
web development
Marion County, FL

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




Stop a web application

2003-01-16 Thread Asaf Birenzvieg
Hi All,
We are using Apache Tomcat 4.0.5 and we would like to use the 'hot
deployment' feature of the Manager web application.
Two Questions:
1.Does someone know what is happening with current threads requests while
stopping (using the Manager) a web application?
Are those requests lost?
Or the container waits until they are finished successfully and just than it
shut itself completely?
2. When I redeploy web application using the Manager application what
happens with:
2.1 requests that are currently being processed by the
web-server? Are they lost?
2.2 incoming requests for this web application? Are they refused?


Thanks
Asaf Birenzvieg 
Amdocs Israel, RD
TEL: 09-7764542
[EMAIL PROTECTED]

-

The information contained in this message is proprietary of Amdocs,

protected from disclosure, and may be privileged.

The information is intended to be conveyed only to the designated recipient(s)

of the message. If the reader of this message is not the intended recipient,

you are hereby notified that any dissemination, use, distribution or copying of 

this communication is strictly prohibited and may be unlawful. 

If you have received this communication in error, please notify us immediately

by replying to the message and deleting it from your computer.

Thank you.


-


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


RE: mod_jk2/unixsocket: can't create apr

2003-01-16 Thread Brzezinski, Paul J

A work-around was to put all the jar files in TC_HOME/server/lib into
TC_HOME/common/lib.  This overrides/breaks/defeats the hierarchy of class
loaders, but it does allow you to get around the 

java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
 at org.apache.jk.apr.AprImpl.clinit(AprImpl.java:340)

These are the files that I moved to common/lib from server/lib (leaves
server/lib directory empty):

catalina-ant.jar
catalina.jar
commons-beanutils.jar
commons-digester.jar
commons-logging.jar
commons-modeler.jar
jakarta-regexp-1.2.jar
mx4j-jmx.jar
servlets-cgi.jar
servlets-common.jar
servlets-default.jar
servlets-invoker.jar
servlets-manager.jar
servlets-ssi.jar
servlets-webdav.jar
tomcat-coyote.jar
tomcat-http11.jar
tomcat-jk.jar
tomcat-jk2.jar
tomcat-util.jar
tomcat-warp.jar

errors.

Paul

: -Original Message-
: From: Matt Sales [mailto:[EMAIL PROTECTED]] 
: Sent: Thursday, January 16, 2003 10:35 AM
: To: Tomcat Users List
: Subject: mod_jk2/unixsocket: can't create apr
: 
: 
: Hello,
: 
: I'm having the same problem as a thread that was running in 
: mid-november, but there was never a resolution posted. I'm 
: trying to use unixsockets with mod_jk2 (TC 4.1.18/Apache 
: 2.0.40, RH 7.2).
: 
: I've tried putting log4j.jar into TC_HOME/common/lib, puting 
: the libapr.so  libjkjni.so into JRE/lib...  Apparently, it's 
: a class loader problem.  Is anyone running unix sockets with 
: tomcat 4.1.18?  I've had it working with 4.1.10...
: 
: 
: I get the following error in catalina.out on startup:
: 
: 10048 [main] INFO http11.Http11Protocol  - Starting Coyote 
: HTTP/1.1 on port 8080 Deep stack trace XXX public 
: java.lang.Throwable java.lang.Throwable.getCause() 10053 
: [main] ERROR server.JkMain  - Can't create apr
: java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
: at org.apache.jk.apr.AprImpl.clinit(AprImpl.java:340)
: at java.lang.Class.forName0(Native Method)
: at java.lang.Class.forName(Class.java:140)
: at org.apache.jk.server.JkMain.newHandler(JkMain.java:556)
: at org.apache.jk.server.JkMain.start(JkMain.java:341)
: at 
: org.apache.jk.server.JkCoyoteHandler.start(JkCoyoteHandler.java:169)
: at
: org.apache.coyote.tomcat4.CoyoteConnector.start(CoyoteConnecto
: r.java:1056)
: at
: org.apache.catalina.core.StandardService.start(StandardService
: .java:506)
: at
: org.apache.catalina.core.StandardServer.start(StandardServer.j
: ava:2189)
: at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
: at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
: at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
: at 
: sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
: orImpl.java:39
: )
: at 
: sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
: odAccessorImpl
: .java:25)
: at java.lang.reflect.Method.invoke(Method.java:324)
: at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
: Deep stack trace
: XXX public java.lang.Throwable java.lang.Throwable.getCause() 
: 10079 [main] ERROR server.JkMain  - Can't create apr 
: java.lang.NoClassDefFoundError
: at java.lang.Class.forName0(Native Method)
: at java.lang.Class.forName(Class.java:140)
: at org.apache.jk.server.JkMain.newHandler(JkMain.java:556)
: at org.apache.jk.server.JkMain.processProperty(JkMain.java:537)
: at org.apache.jk.server.JkMain.processProperties(JkMain.java:505)
: at org.apache.jk.server.JkMain.start(JkMain.java:346)
: at 
: org.apache.jk.server.JkCoyoteHandler.start(JkCoyoteHandler.java:169)
: at
: org.apache.coyote.tomcat4.CoyoteConnector.start(CoyoteConnecto
: r.java:1056)
: at
: org.apache.catalina.core.StandardService.start(StandardService
: .java:506)
: at
: org.apache.catalina.core.StandardServer.start(StandardServer.j
: ava:2189)
: at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
: at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
: at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
: at 
: sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
: orImpl.java:39
: )
: at 
: sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
: odAccessorImpl
: .java:25)
: at java.lang.reflect.Method.invoke(Method.java:324)
: at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
: 
: 
: 
: Thanks for your help.
: 
: 
: --
: To unsubscribe, e-mail:   
: mailto:tomcat-user-: [EMAIL PROTECTED]
: For 
: additional commands, 
: e-mail: mailto:[EMAIL PROTECTED]
: 

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




RE: mod_jk2/unixsocket: can't create apr

2003-01-16 Thread Faine, Mark
I had this problem and realized I had mistakenly commented out the AJP 1.3
connector on port 8009 in server.xml

Thanks,
-Mark


-Original Message-
From: Brzezinski, Paul J [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 16, 2003 9:52 AM
To: Tomcat Users List
Subject: RE: mod_jk2/unixsocket: can't create apr



A work-around was to put all the jar files in TC_HOME/server/lib into
TC_HOME/common/lib.  This overrides/breaks/defeats the hierarchy of class
loaders, but it does allow you to get around the 

java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
 at org.apache.jk.apr.AprImpl.clinit(AprImpl.java:340)

These are the files that I moved to common/lib from server/lib (leaves
server/lib directory empty):

catalina-ant.jar
catalina.jar
commons-beanutils.jar
commons-digester.jar
commons-logging.jar
commons-modeler.jar
jakarta-regexp-1.2.jar
mx4j-jmx.jar
servlets-cgi.jar
servlets-common.jar
servlets-default.jar
servlets-invoker.jar
servlets-manager.jar
servlets-ssi.jar
servlets-webdav.jar
tomcat-coyote.jar
tomcat-http11.jar
tomcat-jk.jar
tomcat-jk2.jar
tomcat-util.jar
tomcat-warp.jar

errors.

Paul

: -Original Message-
: From: Matt Sales [mailto:[EMAIL PROTECTED]] 
: Sent: Thursday, January 16, 2003 10:35 AM
: To: Tomcat Users List
: Subject: mod_jk2/unixsocket: can't create apr
: 
: 
: Hello,
: 
: I'm having the same problem as a thread that was running in 
: mid-november, but there was never a resolution posted. I'm 
: trying to use unixsockets with mod_jk2 (TC 4.1.18/Apache 
: 2.0.40, RH 7.2).
: 
: I've tried putting log4j.jar into TC_HOME/common/lib, puting 
: the libapr.so  libjkjni.so into JRE/lib...  Apparently, it's 
: a class loader problem.  Is anyone running unix sockets with 
: tomcat 4.1.18?  I've had it working with 4.1.10...
: 
: 
: I get the following error in catalina.out on startup:
: 
: 10048 [main] INFO http11.Http11Protocol  - Starting Coyote 
: HTTP/1.1 on port 8080 Deep stack trace XXX public 
: java.lang.Throwable java.lang.Throwable.getCause() 10053 
: [main] ERROR server.JkMain  - Can't create apr
: java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
: at org.apache.jk.apr.AprImpl.clinit(AprImpl.java:340)
: at java.lang.Class.forName0(Native Method)
: at java.lang.Class.forName(Class.java:140)
: at org.apache.jk.server.JkMain.newHandler(JkMain.java:556)
: at org.apache.jk.server.JkMain.start(JkMain.java:341)
: at 
: org.apache.jk.server.JkCoyoteHandler.start(JkCoyoteHandler.java:169)
: at
: org.apache.coyote.tomcat4.CoyoteConnector.start(CoyoteConnecto
: r.java:1056)
: at
: org.apache.catalina.core.StandardService.start(StandardService
: .java:506)
: at
: org.apache.catalina.core.StandardServer.start(StandardServer.j
: ava:2189)
: at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
: at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
: at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
: at 
: sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
: orImpl.java:39
: )
: at 
: sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
: odAccessorImpl
: .java:25)
: at java.lang.reflect.Method.invoke(Method.java:324)
: at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
: Deep stack trace
: XXX public java.lang.Throwable java.lang.Throwable.getCause() 
: 10079 [main] ERROR server.JkMain  - Can't create apr 
: java.lang.NoClassDefFoundError
: at java.lang.Class.forName0(Native Method)
: at java.lang.Class.forName(Class.java:140)
: at org.apache.jk.server.JkMain.newHandler(JkMain.java:556)
: at org.apache.jk.server.JkMain.processProperty(JkMain.java:537)
: at org.apache.jk.server.JkMain.processProperties(JkMain.java:505)
: at org.apache.jk.server.JkMain.start(JkMain.java:346)
: at 
: org.apache.jk.server.JkCoyoteHandler.start(JkCoyoteHandler.java:169)
: at
: org.apache.coyote.tomcat4.CoyoteConnector.start(CoyoteConnecto
: r.java:1056)
: at
: org.apache.catalina.core.StandardService.start(StandardService
: .java:506)
: at
: org.apache.catalina.core.StandardServer.start(StandardServer.j
: ava:2189)
: at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
: at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
: at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
: at 
: sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
: orImpl.java:39
: )
: at 
: sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
: odAccessorImpl
: .java:25)
: at java.lang.reflect.Method.invoke(Method.java:324)
: at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
: 
: 
: 
: Thanks for your help.
: 
: 
: --
: To unsubscribe, e-mail:   
: 

maxProcessors upper limit

2003-01-16 Thread rikenatwork
Hi,

Is there any upper limit for maxProcessors for Tomcat connectors? Or had anyone 
stress test a proper limit for maxProcessors, for best performance of Tomcat?

Thanks a lot for your replies in advance!!
Ri

__
The NEW Netscape 7.0 browser is now available. Upgrade now! 
http://channels.netscape.com/ns/browsers/download.jsp 

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/

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




Re: mod_jk apache2 tomcat4.1.8

2003-01-16 Thread Bill
Well I seem to have gotten this to work...I think.

Now the page renders but takes FOREVER to do soit took the same
webapp 330.98s to render using a lan connection while it takes less than
2s to render the live version over the Internet.  I knew using mod_jk
would be slower, but is it really that slow?  (I do understand there are
other factors involved but the boxes are running almost identical
configurations and the slower box has twice the memory of the other. 
The difference is just too staggering.)

I thought I saw someone mention a performance tuning guide for 
tomcat being available but a web search didnt find it.  If someone could
point me to that resource or if you have an idea why this app has
suddenly become ridiculously slow, I'd appreciate the help.

thx

-b  


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




RE: mod_jk2/unixsocket: can't create apr

2003-01-16 Thread Brzezinski, Paul J
Mark,

Were you getting the ClassNotFound exception?  Didn't think you were.
Hopefully that really was the root-cause of your problem and the problems
with the Class Loader hierarchy have been resolved in 4.1.18.

Paul


: -Original Message-
: From: Faine, Mark [mailto:[EMAIL PROTECTED]] 
: Sent: Thursday, January 16, 2003 10:55 AM
: To: 'Tomcat Users List'
: Subject: RE: mod_jk2/unixsocket: can't create apr
: 
: 
: I had this problem and realized I had mistakenly commented 
: out the AJP 1.3 connector on port 8009 in server.xml
: 
: Thanks,
: -Mark
: 
: 
: -Original Message-
: From: Brzezinski, Paul J [mailto:[EMAIL PROTECTED]] 
: Sent: Thursday, January 16, 2003 9:52 AM
: To: Tomcat Users List
: Subject: RE: mod_jk2/unixsocket: can't create apr
: 
: 
: 
: A work-around was to put all the jar files in 
: TC_HOME/server/lib into TC_HOME/common/lib.  This 
: overrides/breaks/defeats the hierarchy of class loaders, but 
: it does allow you to get around the 
: 
: java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
:  at org.apache.jk.apr.AprImpl.clinit(AprImpl.java:340)
: 
: These are the files that I moved to common/lib from 
: server/lib (leaves server/lib directory empty):
: 
: catalina-ant.jar
: catalina.jar
: commons-beanutils.jar
: commons-digester.jar
: commons-logging.jar
: commons-modeler.jar
: jakarta-regexp-1.2.jar
: mx4j-jmx.jar
: servlets-cgi.jar
: servlets-common.jar
: servlets-default.jar
: servlets-invoker.jar
: servlets-manager.jar
: servlets-ssi.jar
: servlets-webdav.jar
: tomcat-coyote.jar
: tomcat-http11.jar
: tomcat-jk.jar
: tomcat-jk2.jar
: tomcat-util.jar
: tomcat-warp.jar
: 
: errors.
: 
: Paul
: 
: : -Original Message-
: : From: Matt Sales [mailto:[EMAIL PROTECTED]] 
: : Sent: Thursday, January 16, 2003 10:35 AM
: : To: Tomcat Users List
: : Subject: mod_jk2/unixsocket: can't create apr
: : 
: : 
: : Hello,
: : 
: : I'm having the same problem as a thread that was running in 
: : mid-november, but there was never a resolution posted. I'm 
: : trying to use unixsockets with mod_jk2 (TC 4.1.18/Apache 
: : 2.0.40, RH 7.2).
: : 
: : I've tried putting log4j.jar into TC_HOME/common/lib, puting 
: : the libapr.so  libjkjni.so into JRE/lib...  Apparently, it's 
: : a class loader problem.  Is anyone running unix sockets with 
: : tomcat 4.1.18?  I've had it working with 4.1.10...
: : 
: : 
: : I get the following error in catalina.out on startup:
: : 
: : 10048 [main] INFO http11.Http11Protocol  - Starting Coyote 
: : HTTP/1.1 on port 8080 Deep stack trace XXX public 
: : java.lang.Throwable java.lang.Throwable.getCause() 10053 
: : [main] ERROR server.JkMain  - Can't create apr
: : java.lang.NoClassDefFoundError: 
: org/apache/commons/logging/LogFactory
: : at org.apache.jk.apr.AprImpl.clinit(AprImpl.java:340)
: : at java.lang.Class.forName0(Native Method)
: : at java.lang.Class.forName(Class.java:140)
: : at org.apache.jk.server.JkMain.newHandler(JkMain.java:556)
: : at org.apache.jk.server.JkMain.start(JkMain.java:341)
: : at 
: : org.apache.jk.server.JkCoyoteHandler.start(JkCoyoteHandler.java:169)
: : at
: : org.apache.coyote.tomcat4.CoyoteConnector.start(CoyoteConnecto
: : r.java:1056)
: : at
: : org.apache.catalina.core.StandardService.start(StandardService
: : .java:506)
: : at
: : org.apache.catalina.core.StandardServer.start(StandardServer.j
: : ava:2189)
: : at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
: : at 
: org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
: : at 
: org.apache.catalina.startup.Catalina.process(Catalina.java:180)
: : at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
: : at 
: : sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
: : orImpl.java:39
: : )
: : at 
: : sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
: : odAccessorImpl
: : .java:25)
: : at java.lang.reflect.Method.invoke(Method.java:324)
: : at 
: org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
: : Deep stack trace
: : XXX public java.lang.Throwable java.lang.Throwable.getCause() 
: : 10079 [main] ERROR server.JkMain  - Can't create apr 
: : java.lang.NoClassDefFoundError
: : at java.lang.Class.forName0(Native Method)
: : at java.lang.Class.forName(Class.java:140)
: : at org.apache.jk.server.JkMain.newHandler(JkMain.java:556)
: : at org.apache.jk.server.JkMain.processProperty(JkMain.java:537)
: : at 
: org.apache.jk.server.JkMain.processProperties(JkMain.java:505)
: : at org.apache.jk.server.JkMain.start(JkMain.java:346)
: : at 
: : org.apache.jk.server.JkCoyoteHandler.start(JkCoyoteHandler.java:169)
: : at
: : org.apache.coyote.tomcat4.CoyoteConnector.start(CoyoteConnecto
: : r.java:1056)
: : at
: : org.apache.catalina.core.StandardService.start(StandardService
: : .java:506)
: : at
: : org.apache.catalina.core.StandardServer.start(StandardServer.j
: : 

ajp timeout why, what and when?

2003-01-16 Thread M
Hi,

I was thinking about turning off the timeout for the ajp connector.
Before I do so I thought I should ask:
Is there any reason why there is a timeout set by default and set very low?
connectionTimeout=2

Though now I look its changed in the distribution in 4.1.12 it was 2 (20 seconds) 
and now in 4.1.18 is now 0, and the comment says set it to -1 to dissable? 
What gives ;)

-- 
Regards,
M

Martin Sillence
PR Newswire

DL +44 (0)1865 78 5065
F  +44 (0)1865 78 5100
W  www.prnewswire.eu.com
---
Any views or opinions are solely those of the author and do not
necessarily represent those of PR Newswire Europe. The e-mail
contents are intended only for addressee and may contain
confidential and/or privileged material. If you are not the
intended recipient, please do not read, copy, use or disclose
this communication and notify the sender.

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




RE: mod_jk apache2 tomcat4.1.8

2003-01-16 Thread Turner, John

There's definitely something else going on.  We have a live application,
Struts-based, using mod_jk that renders instantaneously (or no different
than anything else), for users as far away as Korea.

John

 -Original Message-
 From: Bill [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 16, 2003 6:01 AM
 To: Tomcat Users List
 Subject: Re: mod_jk apache2 tomcat4.1.8
 
 
 Well I seem to have gotten this to work...I think.
 
 Now the page renders but takes FOREVER to do soit took the same
 webapp 330.98s to render using a lan connection while it 
 takes less than
 2s to render the live version over the Internet.  I knew using mod_jk
 would be slower, but is it really that slow?  (I do 
 understand there are
 other factors involved but the boxes are running almost identical
 configurations and the slower box has twice the memory of the other. 
 The difference is just too staggering.)
 
 I thought I saw someone mention a performance tuning guide for 
 tomcat being available but a web search didnt find it.  If 
 someone could
 point me to that resource or if you have an idea why this app has
 suddenly become ridiculously slow, I'd appreciate the help.
 
 thx
 
 -b  
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

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




Tomcat 4.0.x JDBC connection pooling

2003-01-16 Thread Luca Cremonini
I'm using JDBC connection with Tomcat 4.0 as shown in Tomcat4.0 online
documentation
(http://jakarta.apache.org/tomcat/tomcat-4.0-doc/jndi-resources-howto.html):

---
// Obtain our environment naming context
Context initCtx = new InitialContext();
Context envCtx = (Context) initCtx.lookup(java:comp/env);

// Look up our data source
DataSource ds = (DataSource)
  envCtx.lookup(jdbc/EmployeeDB);

// Allocate and use a connection from the pool
Connection conn = ds.getConnection();

... use this connection to access the database ...

conn.close();
---

I searched the mailing list and the web,
but coudn't find answer to these questions:

- When I call

 ds.getConnection();

am I getting a connection from a pool or opening a NEW connection every
time?


- If there's a pool why do I have to close the connection with

 conn.close();

instead of releasing it to the pool?

- What are the improvement in Tomcat 1.1.x about JDBC connection pooling?


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




Re: mod_jk apache2 tomcat4.1.8

2003-01-16 Thread Nathan McMinn
Bill,

I've done the same search for some tomcat-specific tuning tips, to no avail.
I'll wager that alot of the folks on this list could use that.  If you come
up with anything, please share.

Thanks,
Nathan McMinn

- Original Message -
From: Bill [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, January 16, 2003 5:01 AM
Subject: Re: mod_jk apache2 tomcat4.1.8


 Well I seem to have gotten this to work...I think.

 Now the page renders but takes FOREVER to do soit took the same
 webapp 330.98s to render using a lan connection while it takes less than
 2s to render the live version over the Internet.  I knew using mod_jk
 would be slower, but is it really that slow?  (I do understand there are
 other factors involved but the boxes are running almost identical
 configurations and the slower box has twice the memory of the other.
 The difference is just too staggering.)

 I thought I saw someone mention a performance tuning guide for
 tomcat being available but a web search didnt find it.  If someone could
 point me to that resource or if you have an idea why this app has
 suddenly become ridiculously slow, I'd appreciate the help.

 thx

 -b


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





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




Re: Help: Red Hat Apache-Tomcat

2003-01-16 Thread Jim Wright
Hi,

Turner, John wrote:


Apache modules can be Apache-version sensitive.  There have been security
updates to Apache since .40.  RedHat should have .43 available as an RPM.
If not, you should find one somewhere else.  Upgrading Apache will take care
of the compatibility issue.


ftp://rpmfind.net/linux/contrib/libc6/i386/httpd-2.0.43-1.i386.rpm

Thanks for quick response.

Jim



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




Re: mod_jk2/unixsocket: can't create apr

2003-01-16 Thread Paul Gregoire
Just a quick question related to this thread.. does Apache 2.0.43 have to be
compiled with APR to get Jk2 to work?

- Original Message -
From: Brzezinski, Paul J [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, January 16, 2003 8:07 AM
Subject: RE: mod_jk2/unixsocket: can't create apr


 Mark,

 Were you getting the ClassNotFound exception?  Didn't think you were.
 Hopefully that really was the root-cause of your problem and the problems
 with the Class Loader hierarchy have been resolved in 4.1.18.

 Paul


 : -Original Message-
 : From: Faine, Mark [mailto:[EMAIL PROTECTED]]
 : Sent: Thursday, January 16, 2003 10:55 AM
 : To: 'Tomcat Users List'
 : Subject: RE: mod_jk2/unixsocket: can't create apr
 :
 :
 : I had this problem and realized I had mistakenly commented
 : out the AJP 1.3 connector on port 8009 in server.xml
 :
 : Thanks,
 : -Mark
 :
 :
 : -Original Message-
 : From: Brzezinski, Paul J [mailto:[EMAIL PROTECTED]]
 : Sent: Thursday, January 16, 2003 9:52 AM
 : To: Tomcat Users List
 : Subject: RE: mod_jk2/unixsocket: can't create apr
 :
 :
 :
 : A work-around was to put all the jar files in
 : TC_HOME/server/lib into TC_HOME/common/lib.  This
 : overrides/breaks/defeats the hierarchy of class loaders, but
 : it does allow you to get around the
 :
 : java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
 :  at org.apache.jk.apr.AprImpl.clinit(AprImpl.java:340)
 :
 : These are the files that I moved to common/lib from
 : server/lib (leaves server/lib directory empty):
 :
 : catalina-ant.jar
 : catalina.jar
 : commons-beanutils.jar
 : commons-digester.jar
 : commons-logging.jar
 : commons-modeler.jar
 : jakarta-regexp-1.2.jar
 : mx4j-jmx.jar
 : servlets-cgi.jar
 : servlets-common.jar
 : servlets-default.jar
 : servlets-invoker.jar
 : servlets-manager.jar
 : servlets-ssi.jar
 : servlets-webdav.jar
 : tomcat-coyote.jar
 : tomcat-http11.jar
 : tomcat-jk.jar
 : tomcat-jk2.jar
 : tomcat-util.jar
 : tomcat-warp.jar
 :
 : errors.
 :
 : Paul
 :
 : : -Original Message-
 : : From: Matt Sales [mailto:[EMAIL PROTECTED]]
 : : Sent: Thursday, January 16, 2003 10:35 AM
 : : To: Tomcat Users List
 : : Subject: mod_jk2/unixsocket: can't create apr
 : :
 : :
 : : Hello,
 : :
 : : I'm having the same problem as a thread that was running in
 : : mid-november, but there was never a resolution posted. I'm
 : : trying to use unixsockets with mod_jk2 (TC 4.1.18/Apache
 : : 2.0.40, RH 7.2).
 : :
 : : I've tried putting log4j.jar into TC_HOME/common/lib, puting
 : : the libapr.so  libjkjni.so into JRE/lib...  Apparently, it's
 : : a class loader problem.  Is anyone running unix sockets with
 : : tomcat 4.1.18?  I've had it working with 4.1.10...
 : :
 : :
 : : I get the following error in catalina.out on startup:
 : :
 : : 10048 [main] INFO http11.Http11Protocol  - Starting Coyote
 : : HTTP/1.1 on port 8080 Deep stack trace XXX public
 : : java.lang.Throwable java.lang.Throwable.getCause() 10053
 : : [main] ERROR server.JkMain  - Can't create apr
 : : java.lang.NoClassDefFoundError:
 : org/apache/commons/logging/LogFactory
 : : at org.apache.jk.apr.AprImpl.clinit(AprImpl.java:340)
 : : at java.lang.Class.forName0(Native Method)
 : : at java.lang.Class.forName(Class.java:140)
 : : at org.apache.jk.server.JkMain.newHandler(JkMain.java:556)
 : : at org.apache.jk.server.JkMain.start(JkMain.java:341)
 : : at
 : : org.apache.jk.server.JkCoyoteHandler.start(JkCoyoteHandler.java:169)
 : : at
 : : org.apache.coyote.tomcat4.CoyoteConnector.start(CoyoteConnecto
 : : r.java:1056)
 : : at
 : : org.apache.catalina.core.StandardService.start(StandardService
 : : .java:506)
 : : at
 : : org.apache.catalina.core.StandardServer.start(StandardServer.j
 : : ava:2189)
 : : at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
 : : at
 : org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
 : : at
 : org.apache.catalina.startup.Catalina.process(Catalina.java:180)
 : : at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 : : at
 : : sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
 : : orImpl.java:39
 : : )
 : : at
 : : sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
 : : odAccessorImpl
 : : .java:25)
 : : at java.lang.reflect.Method.invoke(Method.java:324)
 : : at
 : org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
 : : Deep stack trace
 : : XXX public java.lang.Throwable java.lang.Throwable.getCause()
 : : 10079 [main] ERROR server.JkMain  - Can't create apr
 : : java.lang.NoClassDefFoundError
 : : at java.lang.Class.forName0(Native Method)
 : : at java.lang.Class.forName(Class.java:140)
 : : at org.apache.jk.server.JkMain.newHandler(JkMain.java:556)
 : : at org.apache.jk.server.JkMain.processProperty(JkMain.java:537)
 : : at
 : org.apache.jk.server.JkMain.processProperties(JkMain.java:505)
 : : at 

RE: maxProcessors upper limit

2003-01-16 Thread Shapira, Yoav
Howdy,
The value of maxProcessors that's best for you is determined by your own
applications and traffic profile.  There's no such thing is a general
best setting.

The best you can do it determine what your traffic profile is, including
peak and peak concurrent accesses, and see how many request processors
you need to support that.  Then conduct your own stress tests to verify
the configuration holds together.

There are many tools out there to support this kind of design and
testing: wget, JMeter, LoadRunner, etc etc.  There have been discussions
on this list in the past regarding these tools and their use, so
searching the list archives may yield more information.  In addition,
you may find non tomcat-specific book, eg. O'Reilly's web performance
tuning (http://www.oreilly.com/catalog/webpt2/) helpful.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 16, 2003 10:29 AM
To: [EMAIL PROTECTED]
Subject: maxProcessors upper limit

Hi,

Is there any upper limit for maxProcessors for Tomcat connectors? Or
had
anyone stress test a proper limit for maxProcessors, for best
performance
of Tomcat?

Thanks a lot for your replies in advance!!
Ri

__
The NEW Netscape 7.0 browser is now available. Upgrade now!
http://channels.netscape.com/ns/browsers/download.jsp

Get your own FREE, personal Netscape Mail account today at
http://webmail.netscape.com/

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


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




RE: mod_jk apache2 tomcat4.1.8

2003-01-16 Thread Turner, John

Check the list for yesterday or Tuesday.  Remy is co-authoring, along with
Peter Lin, a book on that exact subject, not that I think it is the problem
in Bill's case.  Remy also posted a chapter from the book to the list for
review.

John


 -Original Message-
 From: Nathan McMinn [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 16, 2003 11:24 AM
 To: Tomcat Users List
 Subject: Re: mod_jk apache2 tomcat4.1.8
 
 
 Bill,
 
 I've done the same search for some tomcat-specific tuning 
 tips, to no avail.
 I'll wager that alot of the folks on this list could use 
 that.  If you come
 up with anything, please share.
 
 Thanks,
 Nathan McMinn
 
 - Original Message -
 From: Bill [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Thursday, January 16, 2003 5:01 AM
 Subject: Re: mod_jk apache2 tomcat4.1.8
 
 
  Well I seem to have gotten this to work...I think.
 
  Now the page renders but takes FOREVER to do soit took the same
  webapp 330.98s to render using a lan connection while it 
 takes less than
  2s to render the live version over the Internet.  I knew 
 using mod_jk
  would be slower, but is it really that slow?  (I do 
 understand there are
  other factors involved but the boxes are running almost identical
  configurations and the slower box has twice the memory of the other.
  The difference is just too staggering.)
 

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




RE: Tomcat 4.0.x JDBC connection pooling

2003-01-16 Thread Roberts, Eric
Hi Luca,

The pool is established in the definition of the resource jdbc/EmployeeDB - where 
things like MaxActive, MinIdle and other parameters determine how the pool behaves.

At startup the pool will connect the MinIdle connections to the DB - a new connection 
will then only be established if that number are already in use.

It is good practice to always close connections, as otherwise you become dependent on 
parameters like RemoveAbandoned and RemoveAbandoned timeout.

All of this is discussed in the JNDI Datasource HOWTO in the documention :-)

-Original Message-
From: Luca Cremonini [mailto:[EMAIL PROTECTED]]
Sent: Donnerstag, 16. Jänner 2003 17:17
To: [EMAIL PROTECTED]
Subject: Tomcat 4.0.x JDBC connection pooling


I'm using JDBC connection with Tomcat 4.0 as shown in Tomcat4.0 online
documentation
(http://jakarta.apache.org/tomcat/tomcat-4.0-doc/jndi-resources-howto.html):

---
// Obtain our environment naming context
Context initCtx = new InitialContext();
Context envCtx = (Context) initCtx.lookup(java:comp/env);

// Look up our data source
DataSource ds = (DataSource)
  envCtx.lookup(jdbc/EmployeeDB);

// Allocate and use a connection from the pool
Connection conn = ds.getConnection();

... use this connection to access the database ...

conn.close();
---

I searched the mailing list and the web,
but coudn't find answer to these questions:

- When I call

 ds.getConnection();

am I getting a connection from a pool or opening a NEW connection every
time?


- If there's a pool why do I have to close the connection with

 conn.close();

instead of releasing it to the pool?

- What are the improvement in Tomcat 1.1.x about JDBC connection pooling?


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


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




vulnerabilites in 3.2.3

2003-01-16 Thread Anil Garg
hi.

I am looking if tomacat 3.2.3 has any known  vulnerablites?
Can someone tell me what are those or tell me some hyper link which
tells this.

thanx and regards
anil

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




RE: mod_jk2/unixsocket: can't create apr

2003-01-16 Thread Brzezinski, Paul J



Um, I didn't think you could compile apache 2.0.x without using APR.  

In any case, I do believe that you need libapr*.so.

: -Original Message-
: From: Paul Gregoire [mailto:[EMAIL PROTECTED]] 
: Sent: Thursday, January 16, 2003 11:32 AM
: To: Tomcat Users List
: Subject: Re: mod_jk2/unixsocket: can't create apr
: 
: 
: Just a quick question related to this thread.. does Apache 
: 2.0.43 have to be compiled with APR to get Jk2 to work?
: 
: - Original Message -
: From: Brzezinski, Paul J [EMAIL PROTECTED]
: To: Tomcat Users List [EMAIL PROTECTED]
: Sent: Thursday, January 16, 2003 8:07 AM
: Subject: RE: mod_jk2/unixsocket: can't create apr
: 
: 
:  Mark,
: 
:  Were you getting the ClassNotFound exception?  Didn't think 
: you were. 
:  Hopefully that really was the root-cause of your problem and the 
:  problems with the Class Loader hierarchy have been resolved 
: in 4.1.18.
: 
:  Paul
: 
: 
:  : -Original Message-
:  : From: Faine, Mark [mailto:[EMAIL PROTECTED]]
:  : Sent: Thursday, January 16, 2003 10:55 AM
:  : To: 'Tomcat Users List'
:  : Subject: RE: mod_jk2/unixsocket: can't create apr
:  :
:  :
:  : I had this problem and realized I had mistakenly commented
:  : out the AJP 1.3 connector on port 8009 in server.xml
:  :
:  : Thanks,
:  : -Mark
:  :
:  :
:  : -Original Message-
:  : From: Brzezinski, Paul J [mailto:[EMAIL PROTECTED]]
:  : Sent: Thursday, January 16, 2003 9:52 AM
:  : To: Tomcat Users List
:  : Subject: RE: mod_jk2/unixsocket: can't create apr
:  :
:  :
:  :
:  : A work-around was to put all the jar files in
:  : TC_HOME/server/lib into TC_HOME/common/lib.  This
:  : overrides/breaks/defeats the hierarchy of class loaders, but
:  : it does allow you to get around the
:  :
:  : java.lang.NoClassDefFoundError: 
: org/apache/commons/logging/LogFactory
:  :  at org.apache.jk.apr.AprImpl.clinit(AprImpl.java:340)
:  :
:  : These are the files that I moved to common/lib from
:  : server/lib (leaves server/lib directory empty):
:  :
:  : catalina-ant.jar
:  : catalina.jar
:  : commons-beanutils.jar
:  : commons-digester.jar
:  : commons-logging.jar
:  : commons-modeler.jar
:  : jakarta-regexp-1.2.jar
:  : mx4j-jmx.jar
:  : servlets-cgi.jar
:  : servlets-common.jar
:  : servlets-default.jar
:  : servlets-invoker.jar
:  : servlets-manager.jar
:  : servlets-ssi.jar
:  : servlets-webdav.jar
:  : tomcat-coyote.jar
:  : tomcat-http11.jar
:  : tomcat-jk.jar
:  : tomcat-jk2.jar
:  : tomcat-util.jar
:  : tomcat-warp.jar
:  :
:  : errors.
:  :
:  : Paul
:  :
:  : : -Original Message-
:  : : From: Matt Sales [mailto:[EMAIL PROTECTED]]
:  : : Sent: Thursday, January 16, 2003 10:35 AM
:  : : To: Tomcat Users List
:  : : Subject: mod_jk2/unixsocket: can't create apr
:  : :
:  : :
:  : : Hello,
:  : :
:  : : I'm having the same problem as a thread that was running in
:  : : mid-november, but there was never a resolution posted. I'm
:  : : trying to use unixsockets with mod_jk2 (TC 4.1.18/Apache
:  : : 2.0.40, RH 7.2).
:  : :
:  : : I've tried putting log4j.jar into TC_HOME/common/lib, puting
:  : : the libapr.so  libjkjni.so into JRE/lib...  Apparently, it's
:  : : a class loader problem.  Is anyone running unix sockets with
:  : : tomcat 4.1.18?  I've had it working with 4.1.10...
:  : :
:  : :
:  : : I get the following error in catalina.out on startup:
:  : :
:  : : 10048 [main] INFO http11.Http11Protocol  - Starting Coyote
:  : : HTTP/1.1 on port 8080 Deep stack trace XXX public
:  : : java.lang.Throwable java.lang.Throwable.getCause() 10053
:  : : [main] ERROR server.JkMain  - Can't create apr
:  : : java.lang.NoClassDefFoundError:
:  : org/apache/commons/logging/LogFactory
:  : : at org.apache.jk.apr.AprImpl.clinit(AprImpl.java:340)
:  : : at java.lang.Class.forName0(Native Method)
:  : : at java.lang.Class.forName(Class.java:140)
:  : : at org.apache.jk.server.JkMain.newHandler(JkMain.java:556)
:  : : at org.apache.jk.server.JkMain.start(JkMain.java:341)
:  : : at
:  : : 
: org.apache.jk.server.JkCoyoteHandler.start(JkCoyoteHandler.java:169)
:  : : at
:  : : org.apache.coyote.tomcat4.CoyoteConnector.start(CoyoteConnecto
:  : : r.java:1056)
:  : : at
:  : : org.apache.catalina.core.StandardService.start(StandardService
:  : : .java:506)
:  : : at
:  : : org.apache.catalina.core.StandardServer.start(StandardServer.j
:  : : ava:2189)
:  : : at 
: org.apache.catalina.startup.Catalina.start(Catalina.java:512)
:  : : at
:  : org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
:  : : at
:  : org.apache.catalina.startup.Catalina.process(Catalina.java:180)
:  : : at 
: sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
:  : : at
:  : : sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
:  : : orImpl.java:39
:  : : )
:  : : at
:  : : sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
:  : : odAccessorImpl
:  : : .java:25)
:  : : at 

configure CoyoteConnector with mod_jk in tomcat 4.1.x

2003-01-16 Thread Pedro Salazar
Greetings,

I would like to use the CoyoteConnector rather than the Ajp13Connector
since I'm using tomcat 4.1(.17) and the listener
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener (to have a
global database resource) is incompatible with Ajp13Connector (plus the
Ajp13Connector will be deprecated facing the CoyoteConnector).

But I don't know how to configure the jk2.properties of the
CoyoteConnector for tomcat. I have in my apache server pointing to a
older worker.properties (simple configuration) that should work with the
jk2.properties - I believe that for both of them are required (one for
apache and one for tomcat).

How should I define the workers list in jk2.properties for they match
with the workers.properties of apache?

For now I didn't touch in jk2.properties (is all commented). And I have
defined a worker called ajp13 (type ajp13) in the workers.properties for
apache. 

My configuration is:
-apache2.0.43 + mod_jk
-tomcat 4.1.17
-linux redhat 8.0 (2.4.19)

thanks,
Pedro Salazar


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




RE: (simple?) servlet context problem

2003-01-16 Thread Noel J. Bergman

Did you try http://localhost:8080/greeting/GreetingServlet as the URL?

 Does anyone know how /servlet/ got into the response URL?

What is the value in the FORM tag's ACTION attribute?

--- Noel

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




RE: configure CoyoteConnector with mod_jk in tomcat 4.1.x

2003-01-16 Thread Turner, John

Hello -

There's no need for jk2.properties with mod_jk.  The connector used on the
Tomcat side doesn't affect the configuration needed for the Apache module.
If you are using mod_jk and not mod_jk2, the only configuration file you
need is workers.properties, and that is regardless of using Ajp13Connector
or CoyoteConnector on the Tomcat side.  CoyoteConnector can handle HTTP,
HTTPS, JK, and JK2.

John


 -Original Message-
 From: Pedro Salazar [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 16, 2003 11:50 AM
 To: Tomcat Users List
 Subject: configure CoyoteConnector with mod_jk in tomcat 4.1.x
 
 
 Greetings,
 
 I would like to use the CoyoteConnector rather than the Ajp13Connector
 since I'm using tomcat 4.1(.17) and the listener
 org.apache.catalina.mbeans.GlobalResourcesLifecycleListener (to have a
 global database resource) is incompatible with Ajp13Connector 
 (plus the
 Ajp13Connector will be deprecated facing the CoyoteConnector).
 
 But I don't know how to configure the jk2.properties of the
 CoyoteConnector for tomcat. I have in my apache server pointing to a
 older worker.properties (simple configuration) that should 
 work with the
 jk2.properties - I believe that for both of them are required (one for
 apache and one for tomcat).
 
 How should I define the workers list in jk2.properties for they match
 with the workers.properties of apache?
 
 For now I didn't touch in jk2.properties (is all commented). 
 And I have
 defined a worker called ajp13 (type ajp13) in the 
 workers.properties for
 apache. 
 
 My configuration is:
 -apache2.0.43 + mod_jk
 -tomcat 4.1.17
 -linux redhat 8.0 (2.4.19)
 
 thanks,
 Pedro Salazar
 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

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




Re: [ot?] Frontpage extensions for tomcat or related items

2003-01-16 Thread Ken Anderson
Jason Pyeron wrote:

I think the parts people use have to do with the navigation widgets.
All those useless directories that are created, etc. I guess thats the 
stuff I am looking for.

-jason

I don't think anyone has put any effort into an open source replacement 
for FP. The Mozilla editor (composer) could probably be extended to 
support the MS way of doing publishing and templates.
Over the last few releases of the Mozilla project, the composer 
component has come a long way from it's NS 4.x days.
For jsp support in the current versions of FP, it might be better to use 
SSI to include your jsp tags and keep them all in text files that FP's 
editor will leave alone? In this way, you'd create your own jsp 
'web-bots'? maybe?
Ken



On Wed, 15 Jan 2003, Don Saxton wrote:

Isn't frontpage a webdav client? Tomcat docs (4.18) state that IE is a
webdav client. my impression was that Frontpage was needed to make it into a
writing / editing webdav client. If so that would give you the publishing
part.  There are other webdav clients you might want to check out at
wevdav.org.

Then comes the ...for jsp... part. I think at minimum it would have
respect taglib tags.  The last time I saw respect coming from ms was ten
years ago.


- Original Message -
From: Jason Pyeron [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, January 15, 2003 8:05 AM
Subject: [ot?] Frontpage extensions for tomcat or related items




I am looking for resources related to Frontpage for jsp.
does anyone know of some sites to look at, Google does not help much.

-jason




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




RE: Tomcat 4.0.x JDBC connection pooling

2003-01-16 Thread Luca Cremonini

Thanks Eric!

But with Tomcat 4.0.x I don't have things like MaxActive, MinIdle and other
parameters...
4.0 documentation doesn't tell anything about this.

It seems to me that I have to migrate to 4.1.x to use the pool and such
parameters.
Am I right?

L.C.



   

Roberts,  

EricPer:Tomcat Users List 
[EMAIL PROTECTED]  
Eric.Roberts@   Cc:   

one.at  Oggetto: RE: Tomcat 4.0.x JDBC connection 
pooling 
   

16/01/2003 

17.33  

Per favore,

rispondere a   

Tomcat Users  

List  

   

   





Hi Luca,

The pool is established in the definition of the resource jdbc/EmployeeDB -
where things like MaxActive, MinIdle and other parameters determine how the
pool behaves.

At startup the pool will connect the MinIdle connections to the DB - a new
connection will then only be established if that number are already in use.

It is good practice to always close connections, as otherwise you become
dependent on parameters like RemoveAbandoned and RemoveAbandoned timeout.

All of this is discussed in the JNDI Datasource HOWTO in the documention :
-)

-Original Message-
From: Luca Cremonini [mailto:[EMAIL PROTECTED]]
Sent: Donnerstag, 16. Jänner 2003 17:17
To: [EMAIL PROTECTED]
Subject: Tomcat 4.0.x JDBC connection pooling


I'm using JDBC connection with Tomcat 4.0 as shown in Tomcat4.0 online
documentation
(http://jakarta.apache.org/tomcat/tomcat-4.0-doc/jndi-resources-howto.html
):

---
// Obtain our environment naming context
Context initCtx = new InitialContext();
Context envCtx = (Context) initCtx.lookup(java:comp/env);

// Look up our data source
DataSource ds = (DataSource)
  envCtx.lookup(jdbc/EmployeeDB);

// Allocate and use a connection from the pool
Connection conn = ds.getConnection();

... use this connection to access the database ...

conn.close();
---

I searched the mailing list and the web,
but coudn't find answer to these questions:

- When I call

 ds.getConnection();

am I getting a connection from a pool or opening a NEW connection every
time?


- If there's a pool why do I have to close the connection with

 conn.close();

instead of releasing it to the pool?

- What are the improvement in Tomcat 1.1.x about JDBC connection pooling?


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


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





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




Jasper vs Jasper2

2003-01-16 Thread Will Hartung
Hi all,

Just for clarity, if you will.

I hear references to jasper and jasper2 vis-a-vis the JSP compiler/subsystem
within Tomcat.

I see commits against a jasper2 section when browsing tomcat-dev.

My question is which jasper is in the current 4.1.x release?

How are they different?

Is it worth the pain to move to jasper2 for a production server (assuming
that it's not already in 4.1.x)?

If it is worth the pain, how do I get it?

Thanx!

Regards,

Will Hartung
([EMAIL PROTECTED])




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




Tomcat in Server Mode

2003-01-16 Thread Hari Venkatesan
I changed the following settings in setclasspath.bat to start tomcat
server in Server Mode.
 
Set _RUNJAVA=%JAVA_HOME%\bin\java -server
Set _RUNJAVA=%JAVA_HOME%\bin\javaw -server
Set _RUNJAVA=%JAVA_HOME%\bin\jdb -server
 
I have also changed JAVA_HOME/jre/lib/jvm.cfg to put -server at the top
of the list
 
How do we determine if tomcat actually came up using server mode?
 
Hari
 



Cannot send cookies between webapps on Tomcat 4.1.12

2003-01-16 Thread joel . dewitt

I am running two webapps on Apache Tomcat/4.1.12, on Win2000, port 8080.
One is called partners the other buildings.
I can reach partners through URL:
http://mymachine.ny.mycompany.com:8080/partners;,
buildings through URL: http://mymachine.ny.mycompany.com:8080/buildings;.

Partners creates a cookie:
...
Cookie aCookie = new Cookie( MY_COOKIE_KEY, aToken.toString() );
aCookie.setPath( / );  // deliver to all
directories not just issuer.
aCookie.setSecure( false );
aCookie.setMaxAge( -1 );// per-session cookie,
not stored on disk
theResponse.addCookie( aCookie );
...

Buildings looks for cookie, and cannot get it in Tomcat.  However,
it can in WebSphere 4.0.

Is the cookie set wrong, or is WebSphere not supposed to be delivering it
to the other app?

Thanks,
Joel




This communication is for informational purposes only.  It is not intended as
an offer or solicitation for the purchase or sale of any financial instrument
or as an official confirmation of any transaction. All market prices, data
and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein
do not necessarily reflect those of J.P. Morgan Chase  Co., its
subsidiaries and affiliates.


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




security holes in tomcat 3.2.3

2003-01-16 Thread Anil Garg
hi,

Are there any known security holes in tomcat 3.2.3 ?

thanx and regards
anil

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




RE: security holes in tomcat 3.2.3

2003-01-16 Thread sean . gilligan
Any ideas why this might happen when I try to run xsl-examples as downloaded
with tomcat

I type

http://localhost/xsl-examples/jsp/Apply.jsp

and get teh following error

type Exception report

message 

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception 

org.apache.jasper.JasperException:
org.apache.xalan.xslt.Process.getDefaultLiaison()Ljava/lang/String;
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
48)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:386)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:530)
at java.lang.Thread.run(Thread.java:536)


root cause 

javax.servlet.ServletException:
org.apache.xalan.xslt.Process.getDefaultLiaison()Ljava/lang/String;
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:533)
at org.apache.jsp.Apply_jsp._jspService(Apply_jsp.java:118)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
04)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at

Test servlet won't run - help?

2003-01-16 Thread Mark
Hi, 

I'm trying to run a simple Hello world servlet called myAppServlet.  I'm using Windows 
XP, Tomcat 4.1, and j2sdk 1.4.1.  The servlet WILL run when I put it in 
webapps/examples/WEB-INF/classes.  I can run it with the browser address, 
http://localhost:8080/examples/servlet/myAppServlet

However, the servlet will not run when I locate it in webapps/myApp/WEB-INF/classes.  
When I try to run it with the browser address, 
http://localhost:8080/myApp/servlet/myAppServlet, I get the HTTP Status 404 error 
message.

I put the following web.xml file into the webapps/myApp/WEB-INF folder, which didn't 
have any effect:

!DOCTYPE web-app
  PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
  http://java.sun.com/dtd/web-app_2_3.dtd;

web-app
  servlet
servlet-namemyAppServlet/servlet-name
servlet-classmyAppServlet/servlet-class
  /servlet
  servlet-mapping
servlet-namemyAppServlet/servlet-name
url-pattern/myAppServlet/url-pattern
  /servlet-mapping
/web-app

I also stopped and started the computer to make sure that Tomcat was stopped and 
started again.


It seems as though Tomcat is not seeing my myApp application.  Any help would be 
greatly appreciated.  Thanks in advance.

Mark Steere
[EMAIL PROTECTED]



Virtual directories

2003-01-16 Thread Reynir Hübner

Is there any way of specifying virtual directories in a host in tomcat with out using 
contexts ?

I'm trying to define a folder with in my webapplication that is shared between 
web-apps, and I need requests to this folder to go through a request filter in the 
root-context, the filter authenticates the user making the request and handles it 
before it's chained on to the actual. 

I've tried to mark the contexts as cross-context but that did not help.

I'm really trying to specify a apache style- virtual directory in the tomcat server, 
so if anyone knows a good way to do that, please share.

Thanx
-reynir




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




Re: mod_jk2/unixsocket: can't create apr

2003-01-16 Thread Matt Sales
Thanks, everyone, for your responses...

However, after moving all the jars into common/lib, I still get the same
problem  same error.
It just doesn't make sense...!

Am I missing something??


- Original Message -
From: Brzezinski, Paul J [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, January 16, 2003 11:07 AM
Subject: RE: mod_jk2/unixsocket: can't create apr


 Mark,

 Were you getting the ClassNotFound exception?  Didn't think you were.
 Hopefully that really was the root-cause of your problem and the problems
 with the Class Loader hierarchy have been resolved in 4.1.18.

 Paul


 : -Original Message-
 : From: Faine, Mark [mailto:[EMAIL PROTECTED]]
 : Sent: Thursday, January 16, 2003 10:55 AM
 : To: 'Tomcat Users List'
 : Subject: RE: mod_jk2/unixsocket: can't create apr
 :
 :
 : I had this problem and realized I had mistakenly commented
 : out the AJP 1.3 connector on port 8009 in server.xml
 :
 : Thanks,
 : -Mark
 :
 :
 : -Original Message-
 : From: Brzezinski, Paul J [mailto:[EMAIL PROTECTED]]
 : Sent: Thursday, January 16, 2003 9:52 AM
 : To: Tomcat Users List
 : Subject: RE: mod_jk2/unixsocket: can't create apr
 :
 :
 :
 : A work-around was to put all the jar files in
 : TC_HOME/server/lib into TC_HOME/common/lib.  This
 : overrides/breaks/defeats the hierarchy of class loaders, but
 : it does allow you to get around the
 :
 : java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
 :  at org.apache.jk.apr.AprImpl.clinit(AprImpl.java:340)
 :
 : These are the files that I moved to common/lib from
 : server/lib (leaves server/lib directory empty):
 :
 : catalina-ant.jar
 : catalina.jar
 : commons-beanutils.jar
 : commons-digester.jar
 : commons-logging.jar
 : commons-modeler.jar
 : jakarta-regexp-1.2.jar
 : mx4j-jmx.jar
 : servlets-cgi.jar
 : servlets-common.jar
 : servlets-default.jar
 : servlets-invoker.jar
 : servlets-manager.jar
 : servlets-ssi.jar
 : servlets-webdav.jar
 : tomcat-coyote.jar
 : tomcat-http11.jar
 : tomcat-jk.jar
 : tomcat-jk2.jar
 : tomcat-util.jar
 : tomcat-warp.jar
 :
 : errors.
 :
 : Paul
 :
 : : -Original Message-
 : : From: Matt Sales [mailto:[EMAIL PROTECTED]]
 : : Sent: Thursday, January 16, 2003 10:35 AM
 : : To: Tomcat Users List
 : : Subject: mod_jk2/unixsocket: can't create apr
 : :
 : :
 : : Hello,
 : :
 : : I'm having the same problem as a thread that was running in
 : : mid-november, but there was never a resolution posted. I'm
 : : trying to use unixsockets with mod_jk2 (TC 4.1.18/Apache
 : : 2.0.40, RH 7.2).
 : :
 : : I've tried putting log4j.jar into TC_HOME/common/lib, puting
 : : the libapr.so  libjkjni.so into JRE/lib...  Apparently, it's
 : : a class loader problem.  Is anyone running unix sockets with
 : : tomcat 4.1.18?  I've had it working with 4.1.10...
 : :
 : :
 : : I get the following error in catalina.out on startup:
 : :
 : : 10048 [main] INFO http11.Http11Protocol  - Starting Coyote
 : : HTTP/1.1 on port 8080 Deep stack trace XXX public
 : : java.lang.Throwable java.lang.Throwable.getCause() 10053
 : : [main] ERROR server.JkMain  - Can't create apr
 : : java.lang.NoClassDefFoundError:
 : org/apache/commons/logging/LogFactory
 : : at org.apache.jk.apr.AprImpl.clinit(AprImpl.java:340)
 : : at java.lang.Class.forName0(Native Method)
 : : at java.lang.Class.forName(Class.java:140)
 : : at org.apache.jk.server.JkMain.newHandler(JkMain.java:556)
 : : at org.apache.jk.server.JkMain.start(JkMain.java:341)
 : : at
 : : org.apache.jk.server.JkCoyoteHandler.start(JkCoyoteHandler.java:169)
 : : at
 : : org.apache.coyote.tomcat4.CoyoteConnector.start(CoyoteConnecto
 : : r.java:1056)
 : : at
 : : org.apache.catalina.core.StandardService.start(StandardService
 : : .java:506)
 : : at
 : : org.apache.catalina.core.StandardServer.start(StandardServer.j
 : : ava:2189)
 : : at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
 : : at
 : org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
 : : at
 : org.apache.catalina.startup.Catalina.process(Catalina.java:180)
 : : at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 : : at
 : : sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
 : : orImpl.java:39
 : : )
 : : at
 : : sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
 : : odAccessorImpl
 : : .java:25)
 : : at java.lang.reflect.Method.invoke(Method.java:324)
 : : at
 : org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
 : : Deep stack trace
 : : XXX public java.lang.Throwable java.lang.Throwable.getCause()
 : : 10079 [main] ERROR server.JkMain  - Can't create apr
 : : java.lang.NoClassDefFoundError
 : : at java.lang.Class.forName0(Native Method)
 : : at java.lang.Class.forName(Class.java:140)
 : : at org.apache.jk.server.JkMain.newHandler(JkMain.java:556)
 : : at org.apache.jk.server.JkMain.processProperty(JkMain.java:537)
 : : at
 : 

Re: Tomcat behavior

2003-01-16 Thread Jason Pyeron
for example on red hat 7.x, the log rotate script does HUP apache.
you may have things like that going on.

but you give us no system info.

-jason

On Thu, 16 Jan 2003, Mohbe, Sameer wrote:



Hi Folks ,
 I have a question Folks : Does Tomcat Processes become 0 at some point
if Web Application is not accessed for a while. What has happened is twice
in our environment that on a Weekend Morning around 2:00 AM Tomcat Processes
became 0 and they later increased to 36 processes .I found out it through a
small Script that checks for the number of Apache and Tomcat processes every
Minute .I found the similar behavior for Apache Twice with Apache processes
becoming 0 and then after a while number changing to 8 which is normal in
our environment.

My question is : Does Tomcat Shuts down and restarts itself at a certain
regular interval like once in a month or so .If yes then ,is there any
Configuration file in Tomcat from where this can be Controlled.The same
question applies for Apache --if Apache shuts and restarts itself at a
certain regular interval .


Thanks in Advance 
Sameer

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


-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-   -
- Jason Pyeron   http://www.pyerotechnics.com   -
- Owner  Lead  Pyerotechnics Development, Inc. -
- +1 410 808 6646 (c)   500 West University Parkway #1S -
- +1 410 467 2266 (f)   Baltimore, Maryland  21210-3253 -
-   -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

This message is for the designated recipient only and may contain 
privileged, proprietary, or otherwise private information. If you
have received it in error, purge the message from your system and 
notify the sender immediately.  Any other use of the email by you 
is prohibited.




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




Re: Test servlet won't run - help?

2003-01-16 Thread Erik Price
Try it from http://localhost:8080/myApp/myAppServlet

That might work -- your URL-mapping doesn't say to look for 
servlet/myAppServlet.


Erik




Mark wrote:
Hi, 

I'm trying to run a simple Hello world servlet called myAppServlet.  I'm using Windows XP, Tomcat 4.1, and j2sdk 1.4.1.  The servlet WILL run when I put it in webapps/examples/WEB-INF/classes.  I can run it with the browser address, http://localhost:8080/examples/servlet/myAppServlet

However, the servlet will not run when I locate it in webapps/myApp/WEB-INF/classes.  When I try to run it with the browser address, http://localhost:8080/myApp/servlet/myAppServlet, I get the HTTP Status 404 error message.

I put the following web.xml file into the webapps/myApp/WEB-INF folder, which didn't have any effect:

!DOCTYPE web-app
  PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
  http://java.sun.com/dtd/web-app_2_3.dtd;

web-app
  servlet
servlet-namemyAppServlet/servlet-name
servlet-classmyAppServlet/servlet-class
  /servlet
  servlet-mapping
servlet-namemyAppServlet/servlet-name
url-pattern/myAppServlet/url-pattern
  /servlet-mapping
/web-app

I also stopped and started the computer to make sure that Tomcat was stopped and started again.


It seems as though Tomcat is not seeing my myApp application.  Any help would be greatly appreciated.  Thanks in advance.

Mark Steere
[EMAIL PROTECTED]



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




RE: configure CoyoteConnector with mod_jk in tomcat 4.1.x

2003-01-16 Thread Turner, John

I can't explain those log messages.  I do know that mod_jk uses a single
file called workers.properties.  I believe, if you use the JkWorkersFile
command in httpd.conf, that you can tell mod_jk to use any file you like,
like my.properties.  So, if you want to use jk2.properties, you probably
can.  I only use mod_jk, and I can assure you I have no files named
jk2.properties.

mod_jk2 is a completely different module.  It takes different configuration
commands, it uses two files instead of one (or can use a single file if you
use JkUriSet in httpd.conf).

So, the confusion can be clarified by you telling us which module you are
using: JK (mod_jk), or JK2 (mod_jk2).  Then we can help you figure out your
configuration questions, if any.  Otherwise we are just going in circles.

Regarding your question about the images:  where are the images located
relative to Apache and Tomcat?  Does Tomcat have access to that directory?
Does Apache have access to that directory?  More information is needed.

John


 -Original Message-
 From: Pedro Salazar [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 16, 2003 12:29 PM
 To: Tomcat Users List
 Subject: RE: configure CoyoteConnector with mod_jk in tomcat 4.1.x
 
 
 Greetings,
 
 John, if what you said is right why is that happens:
 
 1)when my tomcat starts, it logs a message saying the configuration is
 the jk.properties:
 25984 [main] INFO http11.Http11Protocol  - Starting Coyote HTTP/1.1 on
 port 8080
 26167 [main] INFO common.ChannelSocket  - JK2: ajp13 listening on
 /0.0.0.0:8009
 26278 [main] INFO server.JkMain  - Jk running ID=0 time=3/294
 config=/opt/tomcat/conf/jk2.properties
 
 is it also using the workers.properties? (is this the name to use?)
 
 2)and not touching in any apache configuration (pointing to tomcat's
 workers.properties), the Apj13Connector works just fine, but the
 CoyoteConnector doesn't log any message in log file!
 
 Could you figure why?
 
 thanks
 Pedro Salazar.
 
 PS. With my Apj13Connector (the only one I could put it to work yet),
 accessing the http://localhost/index.jsp (I have a mapping JkMount
 /*.jsp ajp13), the images don't appear in the default web page of
 tomcat. Why?
 
 
 

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




RE: Test servlet won't run - help?

2003-01-16 Thread Turner, John

Do you have a Context defined in server.xml for /myApp?  Check server.xml
for /examples to see what one looks like.  Or, check the docs for Context,
there is a way to auto-deploy Contexts so you don't have to edit server.xml
directly.

John


 -Original Message-
 From: Mark [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 16, 2003 12:36 PM
 To: Tomcat Users List
 Subject: Test servlet won't run - help?
 
 
 Hi, 
 
 I'm trying to run a simple Hello world servlet called 
 myAppServlet.  I'm using Windows XP, Tomcat 4.1, and j2sdk 
 1.4.1.  The servlet WILL run when I put it in 
 webapps/examples/WEB-INF/classes.  I can run it with the 
 browser address, http://localhost:8080/examples/servlet/myAppServlet
 
 However, the servlet will not run when I locate it in 
 webapps/myApp/WEB-INF/classes.  When I try to run it with the 
 browser address, 
 http://localhost:8080/myApp/servlet/myAppServlet, I get the 
 HTTP Status 404 error message.
 
 I put the following web.xml file into the 
 webapps/myApp/WEB-INF folder, which didn't have any effect:
 
 !DOCTYPE web-app
   PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
   http://java.sun.com/dtd/web-app_2_3.dtd;
 
 web-app
   servlet
 servlet-namemyAppServlet/servlet-name
 servlet-classmyAppServlet/servlet-class
   /servlet
   servlet-mapping
 servlet-namemyAppServlet/servlet-name
 url-pattern/myAppServlet/url-pattern
   /servlet-mapping
 /web-app
 
 I also stopped and started the computer to make sure that 
 Tomcat was stopped and started again.
 
 
 It seems as though Tomcat is not seeing my myApp application. 
  Any help would be greatly appreciated.  Thanks in advance.
 
 Mark Steere
 [EMAIL PROTECTED]
 

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




Re: Test servlet won't run - help?

2003-01-16 Thread Mark
Wow, thanks for the timely response.  That was right on the money.  I love
you guys.  Thanks Erik.

I will be unsubscribing now.  Thanks again.

Mark Steere
[EMAIL PROTECTED]


 Try it from http://localhost:8080/myApp/myAppServlet

 That might work -- your URL-mapping doesn't say to look for
 servlet/myAppServlet.


 Erik







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




  1   2   >