Re: Error when trying to access Admin or Sample code

2003-07-14 Thread Reginald Oake
Hi.

I just the same problem recently and an upgrade (actually downgrade) to
j2sdk1.4.1 solved my problem.

Also, Tim Funk supplied me with this link which has information on other
possible solutions
http://jakarta.apache.org/tomcat/faq/misc.html#compile
Hope this helps.


Reg


On Sun, 2003-07-13 at 19:35, [EMAIL PROTECTED] wrote:
 Dear Friends, thanks for your help in advance:
 
 I just installed Java 1.4.0, used defaults, and regular .java code compiles. So 
 installed the TomCat 4.1.24 and used defaults, all went OK, no errors reported. Get 
 the following error when I click on the Admin Tool short cut:
 
 
 
 
 HTTP Status 500 - 
 
 
 
 type Exception report
 
 message 
 
 description The server encountered an internal error () that prevented it from 
 fulfilling this request.
 
 exception 
 
 org.apache.jasper.JasperException: Unable to compile class for JSP
 
 An error occurred at line: -1 in the jsp file: null
 
 Generated servlet error:
 [javac] Since fork is true, ignoring compiler setting.
 [javac] Compiling 1 source file
 [javac] Since fork is true, ignoring compiler setting.
 [javac] C:\Program Files\Apache Group\Tomcat 
 4.1\work\Standalone\localhost\_\index_jsp.java:266: 
 handlePageException(java.lang.Exception) in javax.servlet.jsp.PageContext cannot be 
 applied to (java.lang.Throwable)
 [javac]   if (pageContext != null) pageContext.handlePageException(t);
 [javac]   ^
 [javac] 1 error
 
 
 
   at 
 org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130)
   at 
 org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
   at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:353)
   at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370)
   at 
 org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473)
   at 
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190)
   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(ApplicationFilterChain.java:247)
   at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
   at 
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
   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:2415)
   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:171)
   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:594)
   at 
 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
   at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
   at 
 

Re: [off-topic] - Where can i find Oreilly's package for uploading files?

2003-07-14 Thread Guus Holshuijsen
Try http://examples.oreilly.com/jservlet2/. There you will find a link to
http://www.servlets.com/cos/.

Regards,
Guus
- Original Message -
From: Susan Hoddinott [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Saturday, July 12, 2003 6:05 PM
Subject: Re: [off-topic] - Where can i find Oreilly's package for uploading
files?


 Have you tried www.oreilly.com?

 Regards,
 Susan Hoddinott
 http://www.hexworx.com

 - Original Message -
 From: Jose Euclides da Silva Junior - DATAPREVRJ
 [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, July 10, 2003 2:02 AM
 Subject: [off-topic] - Where can i find Oreilly's package for uploading
 files?


  Hi, i have tried to search for , but i didnt find it. Can somebody help
 me?
  Thanks in advance,
  Euclides.
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]


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



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



Installing mod_ssl on Apache2+Tomcat+mod_jk setup...

2003-07-14 Thread achana
Apache2.0.40 seems to ship with mod_ssl in the directory
.../httpd-2.0.40/modules/ssl.
But no mention of OpenSSL, although both ssl_util_ssl.c and
ssl_util_ssl.h refer to OpenSSL.
I ftp-ed openssl-0.9.76b.tar.gz , but they only tralk about Apache
1.3.24 as in :
# configure with-apache=../apache_1.3.24 with-ssl=./open22l-0.9.6c  etc
Am I to understand there is no mod_ssl for Apache2+  ???
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

problem using Tomcat 4 with JBoss 3.0.6

2003-07-14 Thread Stefano Moro
Hi all,
I've a problem using Tomcat 4 with JBoss 3.0.6, as I can't reach JBoss
Server with the same instructions that run from a standalone application. I
didn't configure Tomcat for JNDI, but I wrote everything inside the code,
follows the Exception I found and the related piece of code (the exception
occurs between the 2 log messages).
Thanks in advance for your help!

Stefano Moro


**  Exception  ***

NamingException in PushMessage: javax.naming.CommunicationException [Root
exception is java.rmi.ServerException: RemoteException occurred in server
thread; nested exception is:
 java.rmi.UnmarshalException: error unmarshalling arguments; nested
exception is:
 java.net.MalformedURLException: no protocol: Group/Apache]


  Code  

public PushMessage(String terminal, String message)
{
  this.terminal = terminal;
  this.message = message;

  jndiProps = new java.util.Properties() ;
  jndiProps.setProperty(java.naming.factory.initial,
org.jnp.interfaces.NamingContextFactory ) ;
  jndiProps.setProperty(java.naming.factory.url.pkgs,
org.jboss.naming:org.jnp.interfaces ) ;
  jndiProps.setProperty(java.naming.provider.url,jnp://localhost:1099);
}

[...]

   Context context = null;
   QueueConnectionFactory qcf = null;

   try
   {
  context = new InitialContext(jndiProps);

  LogSrv.logMessage( debug 1 *);

  qcf = (QueueConnectionFactory) context.lookup(
 QUEUE_CONNECTION_FACTORY_JNDI_NAME);

 LogSrv.logMessage( debug 2 *);
   }
   catch (NamingException Ne)
   {
  LogSrv.logMessage(NamingException in PushMessage:  + Ne.toString());
  Ne.printStackTrace();
   }

[...]



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



Installing mod_ssl..

2003-07-14 Thread achana
I am really hesitant to install mod_ssl since Apache2+Tomcat+mod_jk are
working so well together.
With every step forward, I cause more damages if smething goes wrong!
Once I install OpenSSL on Apache2, what will happen to the communication
with Tomcat?
All docs and references talk about Apache 1.3
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: why is tomcat accessing webapps/examples

2003-07-14 Thread Susan Hoddinott
Hi,

If you are using Windows I find that using the System Tools to delete
Temporary Internet Files seems to overcome whatever caching is occurring.

Regards,
Susan Hoddinott
http://www.hexworx.com

- Original Message -
From: Paridhi Bansal [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 14, 2003 12:36 AM
Subject: why is tomcat accessing webapps/examples


 HI!!!

 Why is it so in tomcat server that even when i have deleted all the
folders(example,ROOT,tomcatdocs,manager,etc) from webapps directory except
mine which i have created  and removed the corresponding directory entries
from server.xml, still in the log files, i get errors like
 Accessing /webapps/examples
 Error finding web.xml in webapps/examples/WEB-INF

 Why does it try to access examples directory???From which specific file do
i need to remove the entry for example directory

 Paridhi
 --
 __
 Sign-up for your own FREE Personalized E-mail at Mail.com
 http://www.mail.com/?sr=signup

 CareerBuilder.com has over 400,000 jobs. Be smarter about your job search
 http://corp.mail.com/careers


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


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



How to perform uri mapping with jk2

2003-07-14 Thread Kent Tong
Dear all,

I'm using Tomcat 4.1.18, Apache 1.3.27 and mod_jk2-ap13-2.0.1-1jpp
on a RedHat 7.3 computer. I can access the web apps through Apache.
The problem is, I would like to make the web app page /abc/index.jsp
appear as /def/index.jsp to the browser. That is, I'd like jk2 to
redirect requests like /def/* to Tomcat as /abc/*. I've tried editing
workers2.properties:
[uri:/def/*]
context=/abc/*
But jk2 is still pass /def/* to Tomcat. How can I do that? Thanks
in advance!
--
Kent Tong, Msc, MCSE, SCJP, CCSA, Delphi Certified
Manager of IT Dept, CPTTM
Authorized training for Borland, Cisco, Oracle, RedFlag  RedHat


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


Re: Installing mod_ssl on Apache2+Tomcat+mod_jk setup...

2003-07-14 Thread Simon Pabst
This should go to Apache Mailing List propably.

Apache 2 has its own mod_ssl included.
You still need an installed OpenSSL to use mod_ssl,
as how to configure:

httpd-2.0.45 # ./configure --help|grep -i ssl
  --enable-sslSSL/TLS support (mod_ssl)
  --with-ssl=DIR  SSL/TLS toolkit (OpenSSL)


Tomcat Users List [EMAIL PROTECTED] schrieb am 14.07.03 09:56:52:
 
 Apache2.0.40 seems to ship with mod_ssl in the directory
 .../httpd-2.0.40/modules/ssl.
 But no mention of OpenSSL, although both ssl_util_ssl.c and
 ssl_util_ssl.h refer to OpenSSL.
 I ftp-ed openssl-0.9.76b.tar.gz , but they only tralk about Apache
 1.3.24 as in :
 # configure with-apache=../apache_1.3.24 with-ssl=./open22l-0.9.6c  etc
 Am I to understand there is no mod_ssl for Apache2+  ???
 
 hr
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Simon Pabst

E-Mail: [EMAIL PROTECTED]


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



Config the connection between Tomcat 4.1.24 and Apache 1.3 on Solaris 2.6

2003-07-14 Thread Cui Xiaojing-a13339
Hello All,

In our server(OS is Solaris 2.6), we have installed Tomcat 4.1.24 and Apache 1.3. Can 
we realize the connection between Tomcat 4.1.24 and Apache 1.3? If yes, could you 
please give us a direction about using which component to connect them and how to 
config the connection? Thanks a lot.

Regards,
Xiaojing
 

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



DBCP borrowObject failed: null

2003-07-14 Thread Alex
Greetings,

I've searched the internet, found some hints, done some other fiddling
around, but for the life of me i can not get working tomcat 4.1 (linux)
with oracle 8.1.7 (solaris).

in catalina.out the error message is:

DBCP borrowObject failed: null

From server.xml:

Resource name=jdbc/ORACLE auth=Container type=javax.sql.DataSource/
  ResourceParams name=jdbc/ORACLE
parameter
  namefactory/name
  valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/parameter

parameter
  namemaxActive/name
  value20/value
/parameter

parameter
  namemaxIdle/name
  value10/value
/parameter

parameter
  namemaxWait/name
  value-1/value
/parameter

parameter
 nameusername/name
 valuethisuser/value
/parameter
parameter
 namepassword/name
 valuethatpasswd/value
/parameter

parameter
   namedriverClassName/name
  valueoracle.jdbc.driver.OracleDriver/value
/parameter

parameter
  nameurl/name
valuejdbc:oracle:thin:[EMAIL PROTECTED]:1521:something/value
/parameter
  /ResourceParams


I think I've tried just about everything, which is why I'm not posting to
this list.  Hoping that someone has come across this.  I do not actually
see a connection being made to the oracle box from the tomcat box when I
have the URL as it is above.  If i get rid of 'thatschema' it will then
connect, and show up in listener.log but my application will hang and
there is no real data flow aside from the initial connection.

thanks.


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



deploying with ant

2003-07-14 Thread Astrid Wagner
Hi,
I am trying to install my web application into a tomcat web installation.
I thought ant install is the right thing to do and it successfully 
performed but I can not
see any of my web part within the tomcat installation and neither can I 
call one of my  servlets.
I thought I would see my application under the webapps directory but I 
did not. Do I have to make a ant deploy?
The documentation does not say so but how do I get the web application 
to the tomcat installation?
Thanks.

Astrid

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


Do we have any control on Tomcat threads?

2003-07-14 Thread Agarwal, Naresh
Hi
 
Web apps in tomcat run in threads spawned by Tomcat. Do we have any control on these 
threads?
 
I want to perform some Init and UnInit operations at the time creation and destruction 
of these threads. Is it possible to do with Tomcat threads?
 
thanks  regards,
Naresh Agarwal


Activex install problem with tomcat

2003-07-14 Thread Elif Akten
I have a jsp file that installs an object, a cab file..
it works fine with IPlanet web server, but tomcat cant install cab file.
Ýf the cab file is already installed, the page is called before from IPlanet 
,tomcat also shows the object.

Should I do some configuration and tell tomcat something?
Thanks
Original Message Follows
From: Agarwal, Naresh [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Do we have any control on Tomcat threads?
Date: Mon, 14 Jul 2003 05:09:08 -0700
MIME-Version: 1.0
Received: from apache.org ([208.185.179.12]) by mc3-f41.law16.hotmail.com 
with Microsoft SMTPSVC(5.0.2195.5600); Mon, 14 Jul 2003 05:09:27 -0700
Received: (qmail 95680 invoked by uid 500); 14 Jul 2003 12:09:08 -
Received: (qmail 95667 invoked from network); 14 Jul 2003 12:09:08 -
Received: from gw2.informatica.com (HELO PS2KMS02.informatica.com) 
(12.108.189.21)  by daedalus.apache.org with SMTP; 14 Jul 2003 12:09:08 
-
Received: from ps2keh02.informatica.com (unverified) by 
PS2KMS02.informatica.com (Content Technologies SMTPRS 4.3.6) with ESMTP id 
[EMAIL PROTECTED] for 
[EMAIL PROTECTED]; Mon, 14 Jul 2003 05:09:08 -0700
X-Message-Info: JGTYoYF78jEHjJx36Oi8+Q1OJDRSDidP
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
List-Unsubscribe: mailto:[EMAIL PROTECTED]
List-Subscribe: mailto:[EMAIL PROTECTED]
List-Help: mailto:[EMAIL PROTECTED]
List-Post: mailto:[EMAIL PROTECTED]
List-Id: Tomcat Users List tomcat-user.jakarta.apache.org
Delivered-To: mailing list [EMAIL PROTECTED]
content-class: urn:content-classes:message
X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0
Message-ID: 
[EMAIL PROTECTED]
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
Thread-Topic: Do we have any control on Tomcat threads?
Thread-Index: AcNKAUdYbh9WHVaeRB2lXSQmGtJ1rg==
X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
Return-Path: [EMAIL PROTECTED]
X-OriginalArrivalTime: 14 Jul 2003 12:09:27.0187 (UTC) 
FILETIME=[C5957E30:01C34A00]

Hi

Web apps in tomcat run in threads spawned by Tomcat. Do we have any control 
on these threads?

I want to perform some Init and UnInit operations at the time creation and 
destruction of these threads. Is it possible to do with Tomcat threads?

thanks  regards,
Naresh Agarwal
_
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* 
http://join.msn.com/?page=features/junkmail

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


Re: Do we have any control on Tomcat threads?

2003-07-14 Thread Jason Coleman
yes i believe you can.

Tomcat uses multithreading... so you can make it so only 1 thread can access
certain code at once.. using synchronized blocks of code

I think you can do what you want, although im no expert on threads. Best to
look up google for some example code


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



Re: Do we have any control on Tomcat threads?

2003-07-14 Thread Tim Funk
Nope. Rethink your design. There is a thread pool which can serve a request 
for any resource (read: jsp or servlet) in any webapp.

In a servlet environment  - you should avoid creating threads yourself since 
you have a high *chance* at concurrency issues.

[
There was a recent thread in tomcat-dev about being able to kill threads 
through JVM magic (my choice of words). I can't state how credible the 
solution is, I can just say the topic was proposed. But if the soln is 
correct - could be helpful for killing inifite loops.
]

-Tim

Agarwal, Naresh wrote:
Hi
 
Web apps in tomcat run in threads spawned by Tomcat. Do we have any control on these threads?
 
I want to perform some Init and UnInit operations at the time creation and destruction of these threads. Is it possible to do with Tomcat threads?
 
thanks  regards,
Naresh Agarwal



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


RE: deploying with ant

2003-07-14 Thread Abid Ali Teepo
I'm not sure how you have set up your environment. But i would start inspecting my 
build.xml file. In there all your targets are defined. If you have one called deploy i 
would try it out. Otherwise i would add a target called deploy and the command needed 
to copy the file to your deployment catalog.

If you just want to see if it works without ant, all you need is to copy your war file 
to the webapps catalog of your tomcat installation.

Here is my deploy target frommy build.xml file :

 target name=deploy depends=war
!--exec executable=${env.CATALINA_HOME}/bin/shutdown.bat 
output=shutdown.log/--
delete dir=${env.CATALINA_HOME}/webapps/${baseName}/
copy file=${baseName}.war todir=${env.CATALINA_HOME}/webapps/ 
overwrite=Yes/
echoPlease start the web server/echo
  /target

Good luck!

Abid

-Original Message-
From: Astrid Wagner [mailto:[EMAIL PROTECTED]
Sent: 14. juli 2003 13:03
To: [EMAIL PROTECTED]
Subject: deploying with ant


Hi,
I am trying to install my web application into a tomcat web installation.
I thought ant install is the right thing to do and it successfully 
performed but I can not
see any of my web part within the tomcat installation and neither can I 
call one of my  servlets.
 I thought I would see my application under the webapps directory but I 
did not. Do I have to make a ant deploy?
The documentation does not say so but how do I get the web application 
to the tomcat installation?
Thanks.

Astrid


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


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



tomcat startup

2003-07-14 Thread Souren Sinha
Hi,
I am having trouble starting up tomcat from the Start menu.
I get the following exception:

Using CATALINA_BASE:   ..
Using CATALINA_HOME:   ..
Using CATALINA_TMPDIR: ..\temp
Using JAVA_HOME:   C:\j2sdk1.4.0_03
Jul 14, 2003 10:28:26 PM org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
Jul 14, 2003 10:28:27 PM org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance
Jul 14, 2003 10:28:28 PM org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
Jul 14, 2003 10:28:29 PM org.apache.coyote.http11.Http11Protocol init
SEVERE: Error initializing endpoint
java.net.SocketException: Network is down: listen failed
at java.net.PlainSocketImpl.socketListen(Native Method)
at java.net.PlainSocketImpl.listen(PlainSocketImpl.java:333)
at java.net.ServerSocket.bind(ServerSocket.java:309)
at java.net.ServerSocket.bind(ServerSocket.java:266)
at java.net.ServerSocket.init(ServerSocket.java:182)
at java.net.ServerSocket.init(ServerSocket.java:138)

Can someone please help me out.
Regards
Souren


- Original Message -
From: Agarwal, Naresh [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 14, 2003 10:09 PM
Subject: Do we have any control on Tomcat threads?


Hi

Web apps in tomcat run in threads spawned by Tomcat. Do we have any control
on these threads?

I want to perform some Init and UnInit operations at the time creation and
destruction of these threads. Is it possible to do with Tomcat threads?

thanks  regards,
Naresh Agarwal




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



Tomcat and Activex problem

2003-07-14 Thread Elif Akten
I have a jsp file that installs an object, a cab file..
it works fine with IPlanet web server, but tomcat cant install cab file.
Ýf the cab file is already installed, the page is called before from IPlanet 
,tomcat also shows the object.

Should I do some configuration and tell tomcat something?
Thanks
_
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail

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


Re: How to perform uri mapping with jk2

2003-07-14 Thread John Turner
mod_rewrite

mod_jk isn't going to rewrite URLs for you.

Alternatively, in Tomcat's server.xml:

Context pathe=/def docBase=abc

but then the URL in the address bar of the browser won't change.

John

On Mon, 14 Jul 2003 17:45:08 +0800, Kent Tong [EMAIL PROTECTED] wrote:

Dear all,

I'm using Tomcat 4.1.18, Apache 1.3.27 and mod_jk2-ap13-2.0.1-1jpp
on a RedHat 7.3 computer. I can access the web apps through Apache.
The problem is, I would like to make the web app page /abc/index.jsp
appear as /def/index.jsp to the browser. That is, I'd like jk2 to
redirect requests like /def/* to Tomcat as /abc/*. I've tried editing
workers2.properties:
[uri:/def/*]
context=/abc/*
But jk2 is still pass /def/* to Tomcat. How can I do that? Thanks
in advance!


--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Config the connection between Tomcat 4.1.24 and Apache 1.3 on Sol aris 2.6

2003-07-14 Thread John Turner
mod_jk

http://www.google.com/search?hl=enie=UTF-8oe=UTF- 
8q=solaris+apache+tomcat+connector

http://jakarta.apache.org/tomcat/faq/connectors.html

John

On Mon, 14 Jul 2003 18:24:44 +0800, Cui Xiaojing-a13339 
[EMAIL PROTECTED] wrote:

Hello All,

In our server(OS is Solaris 2.6), we have installed Tomcat 4.1.24 and 
Apache 1.3. Can we realize the connection between Tomcat 4.1.24 and 
Apache 1.3? If yes, could you please give us a direction about using 
which component to connect them and how to config the connection? Thanks 
a lot.

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



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: help me immediately

2003-07-14 Thread Angus Mezick
1) Please send this request and all future requests to
[EMAIL PROTECTED]

2) When wording your request please be aware that you subject line
sounds rude to a group of people that have absolutely no requirement to
help you but the goodness in their heart.

3) When making help requests please include an error message, some
description of what is actually happening, maybe the failing source, the
version numbers of tomcat and your jdk, and give some indication that
you have actually tried to solve this problem yourself.

4) This error sounds like (from the limited information you provided)
you have a problems compiling you jsp code into a .class file.  You will
need to review the log files in /$CATALINA_HOME/logs .  There should be
some indication of the problem there.  If not, go into
/$CATALINA_HOME/conf and change the debug= line in your relevant
context to read debug=10.  Run your example again.  This might help.

--Angus

 -Original Message-
 From: bhanu singh [mailto:[EMAIL PROTECTED] 
 Sent: Friday, July 11, 2003 7:20 AM
 To: [EMAIL PROTECTED]
 Subject: help me immediatly
 
 
 Dear please tell me when in tomcat the situation arrisses like it is 
 creating the java fime but not the class file. i am facing 
 this problem, i 
 had given the context path properly and it is also creatin 
 the folder in the 
 work directory so i think the context path is correct. But 
 when i atept to 
 run the page from IE or any browser it creates the .java file 
 but doesn't 
 create the .class file.. please guide me how to resolve this 
 problem.. I am 
 the associate of www.finditat.com
 
 Regards
 Bhanu
 
 _
 Design your holidays. At your convenience. 
 http://www.flexihols.com/2003/index.php Click here.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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



[OFF-TOPIC] Re: Installing mod_ssl..

2003-07-14 Thread John Turner
mod_ssl is included in Apache 2.  You need to enable it if you build from 
source.  If you are using Red Hat's munged 2.0.40, you'll have to contact 
Red Hat or consult a Red Hat users list on how to enable the built-in SSL 
support in Apache 2 in their version of Apache 2.0.40.

John

On Mon, 14 Jul 2003 16:14:57 +1000, [EMAIL PROTECTED] wrote:

I am really hesitant to install mod_ssl since Apache2+Tomcat+mod_jk are
working so well together.
With every step forward, I cause more damages if smething goes wrong!
Once I install OpenSSL on Apache2, what will happen to the communication
with Tomcat?
All docs and references talk about Apache 1.3


--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat and Activex problem

2003-07-14 Thread John Turner
Have you mapped the MIME type for a CAB file in your web application's 
configuration?

John

On Mon, 14 Jul 2003 12:35:18 +, Elif Akten [EMAIL PROTECTED] wrote:

I have a jsp file that installs an object, a cab file..
it works fine with IPlanet web server, but tomcat cant install cab file.
Ýf the cab file is already installed, the page is called before from 
IPlanet ,tomcat also shows the object.

Should I do some configuration and tell tomcat something?
Thanks
_
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail

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



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: More java.lang.NoClassDefFoundError

2003-07-14 Thread John Turner
If Tomcat needs the classes at runtime, then they should be under 
CATALINA_HOME.

If you need those same classes at compile time, then the CLASSPATH should 
be updated to point to the location under CATALINA_HOME where the classes 
reside.

John

On Fri, 11 Jul 2003 20:03:03 -0700, [EMAIL PROTECTED] wrote:

OK, I'm going a little (more) crazy here.

I *think* that the problem might be that the mail stuff is the very first 
use I've made of a J2EE component.  The code is compiled with a CLASSPATH 
which includes x:\usr\local\j2ee\j2ee.jar.  The standalone code runs 
fine, and presumably at runtime it finds the same j2ee.jar and that 
includes javax.mail.*

When I first started having problems I think that they were 
ClassNotFound, and I was advised to put mail.jar into TOMCAT_HOME\lib.  I 
found a copy and did that.  However, mail.jar is (I think) older than 
j2ee.jar (the classes are probably different anyway), and contains (some) 
of the same classes as j2ee.jar.

If the above is correct, where should the j2ee.jar file go?  And once I 
move it, I should update the CLASSPATH to point to the same spot, right?

Regards, Terry Fuller
[EMAIL PROTECTED]
---
In [EMAIL PROTECTED], on 07/11/2003 at 12:51 PM, John 
Turner [EMAIL PROTECTED] said:


It means that the class you told your servlet to use is not
the class that  it is actually finding.

Typically, this means that you have more than one copy of a
JAR file (like  servlet.jar) in Tomcat's ClassLoader path,
and Tomcat is telling you that  it doesn't know which one
to use.

John

On Thu, 10 Jul 2003 22:09:01 -0700, [EMAIL PROTECTED]
wrote:

Well, I'm back again for some help.  I'm running Java 1.3.1, Tomcat 
3.3.1

I have a small proof of concept java program which uses javax.mail and 
which successfully sends off a note.

When I incorporate the proof of concept code into a servlet, I get:

java.lang.NoClassDefFoundError: javax/activation/DataSource

What am I missing that the straight Java code runs but the servlet 
can't seem to find the parts used by the proof code?

Is there a general approach for dealing with NoClassDef errors?  I know 
that the message indicates something other than ClassNotFound, but what 
really does it mean?  Pointers to existing doc gratefully received.

Thanks!

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







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



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: How to perform uri mapping with jk2

2003-07-14 Thread John Turner
Actually, I see in another thread that mod_jk2 and mod_rewrite don't work 
well together, so you might be out of luck until the bug is fixed.  You 
could also try mod_jk instead...AFAIK, mod_jk and mod_rewrite work well 
together, though I don't use mod_rewrite.

John

On Mon, 14 Jul 2003 08:39:09 -0400, John Turner tomcat- 
[EMAIL PROTECTED] wrote:

mod_rewrite

mod_jk isn't going to rewrite URLs for you.

Alternatively, in Tomcat's server.xml:

Context pathe=/def docBase=abc

but then the URL in the address bar of the browser won't change.

John

On Mon, 14 Jul 2003 17:45:08 +0800, Kent Tong [EMAIL PROTECTED] wrote:

Dear all,

I'm using Tomcat 4.1.18, Apache 1.3.27 and mod_jk2-ap13-2.0.1-1jpp
on a RedHat 7.3 computer. I can access the web apps through Apache.
The problem is, I would like to make the web app page /abc/index.jsp
appear as /def/index.jsp to the browser. That is, I'd like jk2 to
redirect requests like /def/* to Tomcat as /abc/*. I've tried editing
workers2.properties:
[uri:/def/*]
context=/abc/*
But jk2 is still pass /def/* to Tomcat. How can I do that? Thanks
in advance!





--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


can't display jsp compile errors when using error-page.

2003-07-14 Thread Ronald Klop
Hello,

If I use error-page in web.xml, jsp compile and runtime errors are going 
to the error handler. If you use errorPage='error.jsp' only runtime 
errors are handled by my error page.

I put this in my web.xml:

error-page
exception-typejava.lang.Throwable/exception-type
location/progs/error.jsp/location
/error-page
Now all exceptions are redirected to my error page. If Jasper throws an 
JasperException, because of a JSP compile error it is also handled by 
this page, but there is no exception in the error.jsp page. Because it 
is probably handled as a '500 Interal Server Error'.

How can I get the error/exception of this in my error.jsp?

If I put errorPage='/progs/error.jsp' in the jsp page, compile errors 
are displayed by tomcat and runtime error are redirected to my errorpage.

I hope my question is clear.

Greetings,

Ronald.



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


Re: help me immediately

2003-07-14 Thread Ben Souther
Someone had this exact same problem last week and was able to resolve it with 
help from the list.  If you search the archives, you will find out how.

http://www.catb.org/~esr/faqs/smart-questions.html






On Monday 14 July 2003 08:40 am, Angus Mezick wrote:
 1) Please send this request and all future requests to
 [EMAIL PROTECTED]

 2) When wording your request please be aware that you subject line
 sounds rude to a group of people that have absolutely no requirement to
 help you but the goodness in their heart.

 3) When making help requests please include an error message, some
 description of what is actually happening, maybe the failing source, the
 version numbers of tomcat and your jdk, and give some indication that
 you have actually tried to solve this problem yourself.

 4) This error sounds like (from the limited information you provided)
 you have a problems compiling you jsp code into a .class file.  You will
 need to review the log files in /$CATALINA_HOME/logs .  There should be
 some indication of the problem there.  If not, go into
 /$CATALINA_HOME/conf and change the debug= line in your relevant
 context to read debug=10.  Run your example again.  This might help.

 --Angus

  -Original Message-
  From: bhanu singh [mailto:[EMAIL PROTECTED]
  Sent: Friday, July 11, 2003 7:20 AM
  To: [EMAIL PROTECTED]
  Subject: help me immediatly
 
 
  Dear please tell me when in tomcat the situation arrisses like it is
  creating the java fime but not the class file. i am facing
  this problem, i
  had given the context path properly and it is also creatin
  the folder in the
  work directory so i think the context path is correct. But
  when i atept to
  run the page from IE or any browser it creates the .java file
  but doesn't
  create the .class file.. please guide me how to resolve this
  problem.. I am
  the associate of www.finditat.com
 
  Regards
  Bhanu
 
  _
  Design your holidays. At your convenience.
  http://www.flexihols.com/2003/index.php Click here.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]

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

-- 
Ben Souther
F.W. Davison  Company, Inc.



REGISTER NOW FOR THE SCORPEO USER CONFERENCE!
September 18-19, 2003 in Boston/Brookline, MA
Additional Training Sessions held September 17, 2003
More info  http://www.fwdco.com/services/Uconf03/default.shtm


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



RE: can't display jsp compile errors when using error-page.

2003-07-14 Thread Abid Ali Teepo
I don't really understand your question apart from the problem that all exceptions 
shows your error page. This is because you have set up Throwable in your web.xml file.

The Throwable class is the superclass of all errors and exceptions in the Java 
language.  is a snippet from the documentation. I suggest you make more mappings, one 
for each exception you want to show a specific errorpage for. I think it would be a 
good idea to maybe make your own exceptions that trigger the error page.

Abid

-Original Message-
From: Ronald Klop [mailto:[EMAIL PROTECTED]
Sent: 14. juli 2003 15:02
To: [EMAIL PROTECTED]
Subject: can't display jsp compile errors when using error-page.


Hello,

If I use error-page in web.xml, jsp compile and runtime errors are going 
to the error handler. If you use errorPage='error.jsp' only runtime 
errors are handled by my error page.

I put this in my web.xml:

error-page
exception-typejava.lang.Throwable/exception-type
location/progs/error.jsp/location
/error-page

Now all exceptions are redirected to my error page. If Jasper throws an 
JasperException, because of a JSP compile error it is also handled by 
this page, but there is no exception in the error.jsp page. Because it 
is probably handled as a '500 Interal Server Error'.

How can I get the error/exception of this in my error.jsp?

If I put errorPage='/progs/error.jsp' in the jsp page, compile errors 
are displayed by tomcat and runtime error are redirected to my errorpage.

I hope my question is clear.

Greetings,

Ronald.



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


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



Re: can't display jsp compile errors when using error-page.

2003-07-14 Thread Ronald Klop
Creating my own exceptions is probably the best solution for now.

But I also found this 'solution'. Now I can catch all and exclude some.

error-page
  exception-typeorg.apache.jasper.JasperException/exception-type
  location
/progs/does-not-exist-so-we-get-the-default-error-handler.jsp
  /location
/error-page
error-page
  exception-typejava.lang.Throwable/exception-type
  location/progs/error.jsp/location
/error-page
Greetings,

Ronald.

Abid Ali Teepo wrote:

I don't really understand your question apart from the problem that all exceptions shows your error page. This is because you have set up Throwable in your web.xml file.

The Throwable class is the superclass of all errors and exceptions in the Java language.  is a snippet from the documentation. I suggest you make more mappings, one for each exception you want to show a specific errorpage for. I think it would be a good idea to maybe make your own exceptions that trigger the error page.

Abid

-Original Message-
From: Ronald Klop [mailto:[EMAIL PROTECTED]
Sent: 14. juli 2003 15:02
To: [EMAIL PROTECTED]
Subject: can't display jsp compile errors when using error-page.
Hello,

If I use error-page in web.xml, jsp compile and runtime errors are going 
to the error handler. If you use errorPage='error.jsp' only runtime 
errors are handled by my error page.

I put this in my web.xml:

error-page
exception-typejava.lang.Throwable/exception-type
location/progs/error.jsp/location
/error-page
Now all exceptions are redirected to my error page. If Jasper throws an 
JasperException, because of a JSP compile error it is also handled by 
this page, but there is no exception in the error.jsp page. Because it 
is probably handled as a '500 Interal Server Error'.

How can I get the error/exception of this in my error.jsp?

If I put errorPage='/progs/error.jsp' in the jsp page, compile errors 
are displayed by tomcat and runtime error are redirected to my errorpage.

I hope my question is clear.

Greetings,

Ronald.



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




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


Is tomcat-4.1.24 stable with j2re1.4.2 under Linux and Windows?

2003-07-14 Thread Zsolt Koppany
Hi,

which jre should I prefer in production version for tomcat-4.1.24 under
Linux and Windows? j2re1.4.2 or j2re1.4.1_03?

Zsolt


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



RE: J2EE: Sinking Deeper and Deeper

2003-07-14 Thread Mike Curwen
j2ee.jar contains classes that would conflict with Tomcat, so maybe just
use 
mail.jar
activation.jar

Both of these are available from java.sun.com


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Sent: Friday, July 11, 2003 11:13 PM
 To: Tomcat Users List
 Subject: J2EE: Sinking Deeper and Deeper
 
 
 List, 
 
 I thought I'd try a few things, to try and get my application 
 to make use of javax.mail.*
 
 I'm running IBM java131 and Tomcat 3.3.1
 
 I've got a fairly extensive webapp written and running.  
 Moved it to a RedHat 9 Linux server without any changes (cool!).
 
 I'm now trying to add some new function to the 
 app--specifically email support.  
 
 I wrote a standalone java class with successfully sends notes 
 thru my ISPs mailserver.
 
 I stick (essentially) the same code into a servlet in my 
 webapp and I get these horrible errors (mostly NoClassDefFound...)
 
 The problem seems to revolve around j2ee.jar (which contains 
 the javax.mail.* stuff).  If I understand the NoClassDefFound 
 errors, some class referenced by my app is being found in 
 another form (older? just different somehow.  Usually caused 
 by have two copies of a .jar file in the Tomcat configuration).
 
 Is it possible that javax.mail.Address (to pick a specific 
 class for an example) resides in j2ee.jar and in some Tomcat 
 3.3.1 jar somewhere, and that the differences are between the 
 class referenced in the compile and the class found at 
 runtime differ and cause this problem?
 
 Just for grins, I copied the j2ee.jar to java131\jre\lib\ext. 
  Tomcat died during the startup attempt.  Removed from ext, 
 copied into usr\local\jakarta-tomcat-3.1.1\lib\app (the 
 readme says will not interfere with container.  This time, 
 the container started, but the first reference to my servlet causes:
 
 Location: /daysails/jsp/SMElogon.jsp
 Internal Servlet Error:
 org.apache.jasper.JasperException: Unable to compile 
 E:\usr\local\jakarta-tomcat-3.3.1\work\DEFAULT\daysails\jsp\SM
 Elogon_1.java:110: No method matching flushBuffer() found in 
 class org.apache.jasper.runtime.JspWriterImpl.
   
 ((org.apache.jasper.runtime.JspWriterImpl)out).flushBuffer();
   
   ^ 1 error at 
 org.apache.tomcat.facade.JasperLiaison.javac(JspInterceptor.java:898)
 at 
 org.apache.tomcat.facade.JasperLiaison.processJspFile(JspInter
 ceptor.java:733)
 at 
 org.apache.tomcat.facade.JspInterceptor.requestMap(JspIntercep
 tor.java:506)
 at 
 org.apache.tomcat.core.ContextManager.processRequest(ContextMa
 nager.java:968)
 at 
 org.apache.tomcat.facade.RequestDispatcherImpl.doForward(Reque
 stDispatcherImpl.java:259)
 at 
 org.apache.tomcat.facade.RequestDispatcherImpl.forward(Request
 DispatcherImpl.java:174)
 at SME.SMEcontrol.doPost(SMEcontrol.nrx:317)
 
 I did find a statement in the jGuru faq to the effect that:
 
 The J2EE reference implementation ships with Tomcat. The 
 classes for Tomcat are located 
 inside the \lib\j2ee.jar. If you wanted to use the latest 
 version of Tomcat you would   
 have to replace the classes in this archive.  
 
 But I can't find a j2ee.jar within the Tomcat install 
 structure.  Are the j2ee classes stored inside some other 
 jarfile?  I'd gladly compile with those classes if I can find them.
 
 Can anyone help?
 
   
 
 
 
 Regards, 
 Terry Fuller
 [EMAIL PROTECTED]
 ---
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



In Process JK2

2003-07-14 Thread Atreya Basu

Thanks to the WIKI page I've gotten almost everything working correctly
with JK2.

The only thing that I'm not able to do is start Tomcat inprocess.

When I try to start Tomcat inprocess I get an error saying that apache
couldn't find the libjvm.so file.

Here is the error:

[Fri Jul 11 17:38:10 2003] [notice] jni.guessJvmDll() failed
/usr/java/j2sdk1.4.2/jre/bin/classic/libjvm\
.so
[Fri Jul 11 17:38:10 2003] [notice] jni.guessJvmDll() failed
/usr/java/j2sdk1.4.2/jre/bin/client/jvm.so
[Fri Jul 11 17:38:10 2003] [notice] jni.guessJvmDll() failed
/usr/java/j2sdk1.4.2/jre/lib/i386/classic/l\
ibjvm.so
[Fri Jul 11 17:38:10 2003] [notice] jni.guessJvmDll() trying
/usr/java/j2sdk1.4.2/jre/lib/i386/client/li\
bjvm.so
[Fri Jul 11 17:38:10 2003] [notice] jni.guessJvmDll() could not find
/usr/java/j2sdk1.4.2/jre/lib/i386/c\
lient/libjvm.so in the LD_LIBRARY_PATH
[Fri Jul 11 17:38:10 2003] [error] vm.init(): no jvm_dll_path, will use
LD_LIBRARY_PATH libjvm.so
[Fri Jul 11 17:38:10 2003] [error] Can't load native library libjvm.so :
libjvm.so: cannot open shared o\
bject file: No such file or directory
[Fri Jul 11 17:38:10 2003] [error] jni.loadJvm() Error - can't load jvm
dll


I've tried to edit the jk_vm_default.c file to search the correct
directory but that doesn't do anything.

Does anyone have any insight into this?  Has anyone gotten JK2 to start
inprocess?

_
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca




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



RE: tomcat startup

2003-07-14 Thread Andrew Liles
Are you trying this on a laptop/standalone machine that has no network
stack?  You need a TCP/IP stack.

(It could be another process is listening on the same IP/port; but the usual
symptom in that case is a different error)

 -Original Message-
 From: Souren Sinha [mailto:[EMAIL PROTECTED]
 Sent: 14 July 2003 13:30
 To: Tomcat Users List
 Subject: tomcat startup
 
 
 Hi,
 I am having trouble starting up tomcat from the Start menu.
 I get the following exception:
 
 Using CATALINA_BASE:   ..
 Using CATALINA_HOME:   ..
 Using CATALINA_TMPDIR: ..\temp
 Using JAVA_HOME:   C:\j2sdk1.4.0_03
 Jul 14, 2003 10:28:26 PM org.apache.commons.modeler.Registry 
 loadRegistry
 INFO: Loading registry information
 Jul 14, 2003 10:28:27 PM org.apache.commons.modeler.Registry 
 getRegistry
 INFO: Creating new Registry instance
 Jul 14, 2003 10:28:28 PM org.apache.commons.modeler.Registry getServer
 INFO: Creating MBeanServer
 Jul 14, 2003 10:28:29 PM org.apache.coyote.http11.Http11Protocol init
 SEVERE: Error initializing endpoint
 java.net.SocketException: Network is down: listen failed
 at java.net.PlainSocketImpl.socketListen(Native Method)
 at java.net.PlainSocketImpl.listen(PlainSocketImpl.java:333)
 at java.net.ServerSocket.bind(ServerSocket.java:309)
 at java.net.ServerSocket.bind(ServerSocket.java:266)
 at java.net.ServerSocket.init(ServerSocket.java:182)
 at java.net.ServerSocket.init(ServerSocket.java:138)
 
 Can someone please help me out.
 Regards
 Souren
 
 
 - Original Message -
 From: Agarwal, Naresh [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, July 14, 2003 10:09 PM
 Subject: Do we have any control on Tomcat threads?
 
 
 Hi
 
 Web apps in tomcat run in threads spawned by Tomcat. Do we 
 have any control
 on these threads?
 
 I want to perform some Init and UnInit operations at the time 
 creation and
 destruction of these threads. Is it possible to do with 
 Tomcat threads?
 
 thanks  regards,
 Naresh Agarwal
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 _
 This e-mail has been scanned for viruses by MessageLabs.
 

_
This e-mail has been scanned for viruses by MessageLabs.

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



Servlets take a long time to output

2003-07-14 Thread Atreya Basu
Hello,

A while back I saw some postings about Servlets taking a long time to
display (20sec or more).  I know of a website www.globeandmail.com where
that exact problem occurs.  I suspect that they are using Tomcat as
their Servlet container.  I missed most of the discussions about this,
would anyone care to recap?

_
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca




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



Compile Error when accessing Admin Tool or any code

2003-07-14 Thread Bart
I am new to the User form, and am having a problem and noticded that you
seem to have allot of experince and knowledge. I have installed the Java
1.4.0  and Tomcat 4.1.24. Took all the defaults. Got the usual error(see
below), could
not compile JSP, either the Admin Tool or sample code. Tried the JAVA_HOME
and CATALINA_HOME environment variables. Then un-installed and re-installed
the Tomcat. The Java works as I can do regular compiles. Checked the
registry varibales and  the path was correct to the JVM, in the server/bin
directory. Still get the error. If  anyone could please help I would
appreciate
it.

Thanks in advance,

Bart




HTTP Status 500 -




type Exception report

message

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

exception

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

An error occurred at line: -1 in the jsp file: null

Generated servlet error:
[javac] Since fork is true, ignoring compiler setting.
[javac] Compiling 1 source file
[javac] Since fork is true, ignoring compiler setting.
[javac] C:\Program Files\Apache Group\Tomcat
4.1\work\Standalone\localhost\_\index_jsp.java:266:
handlePageException(java.lang.Exception) in javax.servlet.jsp.PageContext
cannot be applied to (java.lang.Throwable)
[javac]   if (pageContext != null)
pageContext.handlePageException(t);
[javac]   ^
[javac] 1 error



at
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle
r.java:130)
at
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:2
93)
at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:353)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370)
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:4
73)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:1
90)
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:256)
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:171)
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:594)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:392)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:619)
at java.lang.Thread.run(Thread.java:536)





Apache Tomcat/4.1.24




-
To 

Re: JDBCRealm - Login redirects to my image instead

2003-07-14 Thread Rick Roberts
I have JDBCRealm and Form Based AUTH.

I have an image in my login.jsp file.
Like this:
IMG src='/myApp/images/myImage.gif' width='250' height='75'
When I navigate to myApp/index.jsp, I get redirected to my login.jsp 
file (just as I should).
But, when I login, I get redirected to the image referenced in 
login.jsp, instead of to index.jsp.

It kinda makes since that this would happen, because j_security_check 
sees the image file as the first target file to load.

However; it is not what I want to happen.

I could remove my IMG and everything works fine. But, I'd rather 
figure out how to keep my IMG in login.jsp and get redirected to 
index.jsp.

Anyone know how to do this?

Something I forgot to mention:

When login.jsp loads up, it does not load up the image.
Then when I enter the UID  PWD j_security_check sends me to the image that did 
not loadup.

If I take the image out of login.jsp, then it works like I think it should.

Anyone know how to use an image in login.jsp?

--
***
* Rick Roberts*
* Advanced Information Technologies, Inc. *
***
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


web.xml question

2003-07-14 Thread Astrid Wagner
Hi,
This is an (hopefully) easy question:
I run my new web application but do not seem to get the servlet to run.
I can run a simple index.html page 
(machine:port/my-web-appl/index.html) within my web application 
installation so $CATALINA_HOME/webapps/my-web-appl/index.html is
found. But when I try to call a servlet having simply in web.xml:
!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-nameRegEntryPage/servlet-name
   
servlet-classcom.mot.sps.ipr.ipConsumer.registration.RegEntryPage/servlet-class
   /servlet
/web-app

and by calling it in the browser with 
machine:port/my-web-appl/RegEntryPage

it fails. Has someone a quick answer?
The log file simply says:
Mapping contextPath='/iprweb' with requestURI='/iprweb/RegEntryPage'
and relativeURI='/RegEntryPage'
2003-07-14 17:00:40 StandardContext[/iprweb]:   Trying exact match
2003-07-14 17:00:40 StandardContext[/iprweb]:   Trying prefix match
2003-07-14 17:00:40 StandardContext[/iprweb]:   Trying extension match
2003-07-14 17:00:40 StandardContext[/iprweb]:   Trying default match
2003-07-14 17:00:40 StandardContext[/iprweb]:  Mapped to servlet 
'default' with servlet path '/RegEntryPage' and path info 'null' and 
update=true

Thanks.

Astrid


multiple instances of tomcat (grouping webapps with a manager) with a single installation under linux

2003-07-14 Thread Karli Christoph (CSE)
hello world (haha, running gag)

i've installed and connected succesfully tomcat 4.1.24 with apache 2.0.45

now my problem is the following:
i'd like to get multiple instances of tomcat without installing tomcat 
another time (so just by configuring).

the goal is to achieve several webapp - 'containers' with each a 
different manager to start, stop, etc.. those webapps.

i won't do it with either virtual hosts nor with multiple installations
of tomcat.

does anyone now 'howto'?

thanks in advance and greetings from sunny switzerland



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



java applet loading question

2003-07-14 Thread Michael Ni
I have this problem where my applet will only work properly if I move the 
mouse cursor over the applet. Once I do that all is ok but if I do not the 
browser just hangs loading the applet, I just get a grey box.  Does anyone 
know why?  im using java 1.4.1

mike

_
Add photos to your e-mail with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail

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


Re: web.xml question

2003-07-14 Thread John Turner
http://jakarta.apache.org/tomcat/faq/misc.html#invoker

You'll need to map your servlet to a URL.

John

On Mon, 14 Jul 2003 17:02:17 +0200, Astrid Wagner 
[EMAIL PROTECTED] wrote:

Hi,
This is an (hopefully) easy question:
I run my new web application but do not seem to get the servlet to run.
I can run a simple index.html page (machine:port/my-web- 
appl/index.html) within my web application installation so 
$CATALINA_HOME/webapps/my-web-appl/index.html is
found. But when I try to call a servlet having simply in web.xml:
!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-nameRegEntryPage/servlet-name
servlet- 
classcom.mot.sps.ipr.ipConsumer.registration.RegEntryPage/servlet- 
class
/servlet
/web-app

and by calling it in the browser with machine:port/my-web- 
appl/RegEntryPage

it fails. Has someone a quick answer?
The log file simply says:
Mapping contextPath='/iprweb' with requestURI='/iprweb/RegEntryPage'
and relativeURI='/RegEntryPage'
2003-07-14 17:00:40 StandardContext[/iprweb]:   Trying exact match
2003-07-14 17:00:40 StandardContext[/iprweb]:   Trying prefix match
2003-07-14 17:00:40 StandardContext[/iprweb]:   Trying extension match
2003-07-14 17:00:40 StandardContext[/iprweb]:   Trying default match
2003-07-14 17:00:40 StandardContext[/iprweb]:  Mapped to servlet 
'default' with servlet path '/RegEntryPage' and path info 'null' and 
update=true

Thanks.

Astrid



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


[OFF-TOPIC] Re: java applet loading question

2003-07-14 Thread John Turner
Perhaps these folks can help you out:

http://forum.java.sun.com/

John

On Mon, 14 Jul 2003 08:03:23 -0700, Michael Ni [EMAIL PROTECTED] 
wrote:

I have this problem where my applet will only work properly if I move the 
mouse cursor over the applet. Once I do that all is ok but if I do not 
the browser just hangs loading the applet, I just get a grey box.  Does 
anyone know why?  im using java 1.4.1

mike

_
Add photos to your e-mail with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail

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



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


SAX Exception

2003-07-14 Thread Turansky, Mark
I get these exceptions

SEVERE: Parse Error at line 175 column 12: Element type listener must be declared.
org.xml.sax.SAXParseException: Element type listener must be declared.
SEVERE: Parse Error at line 176 column 25: Element type listener-class must be 
declared.
org.xml.sax.SAXParseException: Element type listener-class must be declared.


The corresponding lines of web.xml area:

listener
listener-classcom.keymind.core.users.UserSessionListener/listener-class
/listener


The funny thing is... the listener class works just fine.  No errors at runtime.  That 
exception is thrown when I start up Tomcat.  I am running Tomcat 4.1.24

any suggestions or ideas?

Thanks in advance,
Mark




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



RE: multiple instances of tomcat (grouping webapps with a manager) with a single installation under linux

2003-07-14 Thread Ralph Einfeldt
  Have a look at RUNNING.txt in the tomcat 4 distribution:

  (4) Advanced Configuration - Multiple Tomcat 4 Instances
  ...

(The exact text and number may vary in your distribution,
 my RUNNING.txt is quite old)

The following is for unix and tomcat standalone. But it
should be a good starting point for other environments.

We install different versions of jdk/tomcat like this:

/usr/local/java/jdk/ibm1.3
/usr/local/java/jdk/sun1.3
/usr/local/java/jdk/sun1.3.1
/usr/local/java/jdk/sun1.4

/usr/local/java/tomcat-4.0.3
/usr/local/java/tomcat-4.1.10

For each site we have something like this:

/www/online/site
  /log
directory for the log file
  /conf
web.xml
server.xml
  and other files that contain the site specific setup for tomcat
  (tailored versions of the files that are provided by 
   tomcat)
  make shure that the combination of IP and port are unique for
  each instance of tomcat. 
...
  /work
Directory where tomcat stores the genared files and classes
  /webapps
 Directories for the contexts
  /bin
start.sh
  Script that calls the tomcat version that we want to use 
  for this site with the environment for this site:

  JAVA_HOME=/usr/local/java/jdk/sun1.3.1
  CATALINA_HOME=/usr/local/java/tomcat-4.0.3
  CATALINA_BASE=/www/online/site

  export JAVA_HOME CATALINA_HOME CATALINA_BASE
  ${CATALINA_HOME}/bin/startup.sh

This way we can have different versions of tomcat at the same time, 
all sites that use the same tomcat version use the same 'executable'
but different processes and individual configuration. If we want to 
use another version of tomcat we just have to change CATALINA_HOME 
in start.sh (unless the config files are incompatible between these 
versions)

 -Original Message-
 From: Karli Christoph (CSE) [mailto:[EMAIL PROTECTED]
 Sent: Monday, July 14, 2003 5:04 PM
 To: '[EMAIL PROTECTED]'
 Subject: multiple instances of tomcat (grouping webapps with 
 a manager)
 with a single installation under linux
 
 
 hello world (haha, running gag)
 
 i've installed and connected succesfully tomcat 4.1.24 with 
 apache 2.0.45
 
 now my problem is the following:
 i'd like to get multiple instances of tomcat without 
 installing tomcat 
 another time (so just by configuring).
 
 the goal is to achieve several webapp - 'containers' with each a 
 different manager to start, stop, etc.. those webapps.
 
 i won't do it with either virtual hosts nor with multiple 
 installations
 of tomcat.
 
 does anyone now 'howto'?
 
 thanks in advance and greetings from sunny switzerland
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

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



RE: SAX Exception

2003-07-14 Thread Shapira, Yoav

Howdy,
Is your web.xml valid according to the Servlet Specification v2.3 DTD?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Turansky, Mark [mailto:[EMAIL PROTECTED]
Sent: Monday, July 14, 2003 11:16 AM
To: [EMAIL PROTECTED]
Subject: SAX Exception

I get these exceptions

SEVERE: Parse Error at line 175 column 12: Element type listener must
be
declared.
org.xml.sax.SAXParseException: Element type listener must be
declared.
SEVERE: Parse Error at line 176 column 25: Element type
listener-class
must be declared.
org.xml.sax.SAXParseException: Element type listener-class must be
declared.


The corresponding lines of web.xml area:

listener

listener-classcom.keymind.core.users.UserSessionListener/listener-
class
/listener


The funny thing is... the listener class works just fine.  No errors at
runtime.  That exception is thrown when I start up Tomcat.  I am
running
Tomcat 4.1.24

any suggestions or ideas?

Thanks in advance,
Mark




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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: SAX Exception

2003-07-14 Thread Turansky, Mark
aha!!

Ok, I looked at the xml dtd declaration at the top...  the error was that my web.xml 
said 

http://java.sun.com/j2ee/dtds/web-app_2_2.dtd;

when it should be 2.3 !

I compared my web.xml with the web.xml file from the example apps and saw the 
discrepancy.  That makes all the difference in the world.

mark


-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Monday, July 14, 2003 11:24 AM
To: Tomcat Users List
Subject: RE: SAX Exception



Howdy,
Is your web.xml valid according to the Servlet Specification v2.3 DTD?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Turansky, Mark [mailto:[EMAIL PROTECTED]
Sent: Monday, July 14, 2003 11:16 AM
To: [EMAIL PROTECTED]
Subject: SAX Exception

I get these exceptions

SEVERE: Parse Error at line 175 column 12: Element type listener must
be
declared.
org.xml.sax.SAXParseException: Element type listener must be
declared.
SEVERE: Parse Error at line 176 column 25: Element type
listener-class
must be declared.
org.xml.sax.SAXParseException: Element type listener-class must be
declared.


The corresponding lines of web.xml area:

listener

listener-classcom.keymind.core.users.UserSessionListener/listener-
class
/listener


The funny thing is... the listener class works just fine.  No errors at
runtime.  That exception is thrown when I start up Tomcat.  I am
running
Tomcat 4.1.24

any suggestions or ideas?

Thanks in advance,
Mark




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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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


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



RE: MSQL and JDNI

2003-07-14 Thread Jeff Cummings
Thanks carlos.

I was missing a portion of the myapp.xml.
Resource auth=Container description=DBCPMSQL Connection
name=jdbc/MSQL scope=Shareable
type=javax.sql.DataSource/

I was missing the (scope=Shareable) in the Resource parameter. What other
values can scope have?

Just FYI, Its fine to have the context file, myapp.xml in
$CATALINA_HOME/webapp/ directory . it works.

Thanks  again..
Jeff


-Original Message-
From: J. Carlos Tobar Cereijo [mailto:[EMAIL PROTECTED]
Sent: Monday, July 14, 2003 4:56 AM
To: [EMAIL PROTECTED]
Subject: MSQL and JDNI

I store app context in $CATILINA_HOME/webapp/myapp.xml file

You must do it in $CATILINA_HOME/conf/server.xml

You have a full example in

http://www.mail-archive.com/[EMAIL PROTECTED]/msg96268.html

(your jdbc .jar driver must be only in common\lib)


AVISO SOBRE CONFIDENCIALIDAD:

Este documento se dirige exclusivamente a su destinatario por poder
contener información confidencial  o cuya divulgación deba estar
autorizada  en virtud de la legislación vigente. Se informa a quien lo
recibiera sin ser el destinatario o persona autorizada por éste, que la
información contenida en el mismo es reservada y su utilización o
divulgación con cualquier fin está prohibida. Si ha recibido este
documento por error, le rogamos que nos lo comunique por esta misma vía
o por teléfono (981-138847, 986-446191, 945-121939, 981-569773) y
proceda a su destrucción.


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



Re: JDBCRealm - Login redirects to my image instead

2003-07-14 Thread Tim Funk
(Guessing)
Put the image in an unprotected area. Since the image was the most recent 
request under a secutiry contraint, you are being redirected to that request 
on successfull login.

-Tim

Rick Roberts wrote:
I have JDBCRealm and Form Based AUTH.

I have an image in my login.jsp file.
Like this:
IMG src='/myApp/images/myImage.gif' width='250' height='75'
When I navigate to myApp/index.jsp, I get redirected to my login.jsp 
file (just as I should).
But, when I login, I get redirected to the image referenced in 
login.jsp, instead of to index.jsp.

It kinda makes since that this would happen, because j_security_check 
sees the image file as the first target file to load.

However; it is not what I want to happen.

I could remove my IMG and everything works fine. But, I'd rather 
figure out how to keep my IMG in login.jsp and get redirected to 
index.jsp.

Anyone know how to do this?

Something I forgot to mention:

When login.jsp loads up, it does not load up the image.
Then when I enter the UID  PWD j_security_check sends me to the image 
that did not loadup.

If I take the image out of login.jsp, then it works like I think it should.

Anyone know how to use an image in login.jsp?



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


Re: Is tomcat-4.1.24 stable with j2re1.4.2 under Linux and Windows?

2003-07-14 Thread Tim Funk
The one that works for you. Any other opinion is a foundation for a religious 
OS war.

As for JVM version under a particular OS ... the answer is still the same. 
You still need to stress test your app and benchmark it. Both JVM's have bugs 
(like all software), but the most important bug is the one that doesn't make 
your system work correctly.

-Tim

Zsolt Koppany wrote:
Hi,

which jre should I prefer in production version for tomcat-4.1.24 under
Linux and Windows? j2re1.4.2 or j2re1.4.1_03?
Zsolt



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


Re: Compile Error when accessing Admin Tool or any code

2003-07-14 Thread Tim Funk
Have your seen?
http://jakarta.apache.org/tomcat/faq/misc.html#compile
Others have also had to add $JAVA_HOME/bin to their $PATH before starting tomcat.

-Tim

[EMAIL PROTECTED] wrote:
I am new to the User form, and am having a problem and noticded that you
seem to have allot of experince and knowledge. I have installed the Java
1.4.0  and Tomcat 4.1.24. Took all the defaults. Got the usual error(see
below), could
not compile JSP, either the Admin Tool or sample code. Tried the JAVA_HOME
and CATALINA_HOME environment variables. Then un-installed and re-installed
the Tomcat. The Java works as I can do regular compiles. Checked the
registry varibales and  the path was correct to the JVM, in the server/bin
directory. Still get the error. If  anyone could please help I would
appreciate
it.
Thanks in advance,

Bart



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


Strange load balancing fail

2003-07-14 Thread Javier Ayllon
OK, I surrender, my config is:

Apache/2.0.46 (Tru64 5.1A)
mod_jk/1.2.3-dev
mod_ssl/2.0.46
OpenSSL/0.9.6g


when I setup load-balancing everything stops working, first page gets
its ,(jvmRoute name) appened in the end of the URL, but all others
don't.

If balanced_workers remains with only one worker, everything gets
working again.

Anyone can help?

Thanks in advance to all.



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



Tomcat and I-planet

2003-07-14 Thread Frank T. Murphy
Does anyone know the encryption algorithm Tomcat uses on ssl connections.
I am trying to connect with an I-planet proxy and I am getting the
following error message:

retrieve-exit-routine reports: proxy retrieve failed: Netscape and this
server cannot communicate securely because they have no common
encryption algorithm(s).



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



Tomcat 5.0.3: Cannot get rid of webapp context either manually or with manager tool

2003-07-14 Thread Gerry Reno
  In one of my vhosts I have a webapp that was installed by dropping a
war into the appropriate directory for this vhost.  The webapp works
fine.  I subsequently wanted to remove this webapp for the vhost so I
went into the  vhost manager app and selected 'Undeploy' link.  It
responded with FAIL - Cannot undeploy document base for path
/mywebapp.  So then I tried manually deleting the webapp by removing
the WAR file and directory and deleting the vhost tomcat work area. 
Restarted Tomcat and the webapp was still listed.  You could start it
but it didn't do anything when you tried to access the context.  I
tried clicking on 'Undeploy' again - no luck - same error message as
before.  So now I stuck.  This ghost of a context refuses to go away
even though I think I have removed every trace of it that I can find. 
Any suggestions?

thx,
Gerry Reno


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



Re: Tomcat 5.0.3: Cannot get rid of webapp context either manuallyor with manager tool

2003-07-14 Thread Tim Funk
For a ultra clean sweep (i think) ...

- Stop tomcat.
- Look for any directories in the webapps dir (or alternate defined by 
server.xml)
- Look in conf's sub-directories for xml files.
- Look for any war files

You shouldn't need to do these 2 because these shouldn't happen (IIRC) ...
- Look for any .xml files in the  webapps dir (or alternate defined by 
server.xml) - then examine the contents
- Take Context references out of server.xml

-Tim

Gerry Reno wrote:
  In one of my vhosts I have a webapp that was installed by dropping a
war into the appropriate directory for this vhost.  The webapp works
fine.  I subsequently wanted to remove this webapp for the vhost so I
went into the  vhost manager app and selected 'Undeploy' link.  It
responded with FAIL - Cannot undeploy document base for path
/mywebapp.  So then I tried manually deleting the webapp by removing
the WAR file and directory and deleting the vhost tomcat work area. 
Restarted Tomcat and the webapp was still listed.  You could start it
but it didn't do anything when you tried to access the context.  I
tried clicking on 'Undeploy' again - no luck - same error message as
before.  So now I stuck.  This ghost of a context refuses to go away
even though I think I have removed every trace of it that I can find. 
Any suggestions?

thx,
Gerry Reno
 


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


I'm officially lost with mod_jk

2003-07-14 Thread Werner van Mook
Hi all,

Here is another user of mod_jk who's now officially lost.

I have apache 1.3.x with tomcat 4.1.24
I installed mod_jk
in httpd.conf I put :

LoadModule jk_module modules/mod_jk.so

.
.
.
# MY OWN STUFF HERE
IfModule mod_jk.so
 AddModule mod_jk.c
 JkWorkersFile /etc/httpd/conf/workers.properties
 JkLogFile /var/log/httpd/mod_jk.log
 JkLogLevelinfo
 JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
 JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
 JkRequestLogFormat %w %V %T
 JkMount  /Friss/* worker1
/IfModule
In workers.properties I have :

#Define 1 real worker using ajp13

worker.list=worker1

#Set properties for worker1(ajp13)

worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8009
worker.worker1.lbfactor=50
worker.worker1.cahcesize=10
worker.worker1.cache_timeout=600
worker.worker1.socket_keepalive=1
worker.worker1.socket_timeout=300
In the webapps dir I created a dir called Friss wich contains a WEB_INF 
dir and a index.html file.

When I restart tomcat and apache I want to request : 
www.connecties.com/Friss.

I suspected to get the index.html file from the Friss webapp. Instead I 
got a 404 document not found.

I think I'm missing something but I don't know what.
Anybody out there had the same experience and want to share it with me?
Kind regards
Werner
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [off-topic] - Where can i find Oreilly's package for uploadingfiles?

2003-07-14 Thread Reginald Oake
Hi.

According to the book Java Servlet Programming the cos.jar file can be
found at www.servlets.com.


On Mon, 2003-07-14 at 01:22, Guus Holshuijsen wrote:
 Try http://examples.oreilly.com/jservlet2/. There you will find a link to
 http://www.servlets.com/cos/.
 
 Regards,
 Guus
 - Original Message -
 From: Susan Hoddinott [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Saturday, July 12, 2003 6:05 PM
 Subject: Re: [off-topic] - Where can i find Oreilly's package for uploading
 files?
 
 
  Have you tried www.oreilly.com?
 
  Regards,
  Susan Hoddinott
  http://www.hexworx.com
 
  - Original Message -
  From: Jose Euclides da Silva Junior - DATAPREVRJ
  [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Thursday, July 10, 2003 2:02 AM
  Subject: [off-topic] - Where can i find Oreilly's package for uploading
  files?
 
 
   Hi, i have tried to search for , but i didnt find it. Can somebody help
  me?
   Thanks in advance,
   Euclides.
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



Re: I'm officially lost with mod_jk

2003-07-14 Thread Javier Ayllon
at first sight you can see 
chcesize=10 instead of cachesize=10

in your workers.properties
you can start there. :-)


On Mon, 2003-07-14 at 18:35, Werner van Mook wrote:
 Hi all,
 
 Here is another user of mod_jk who's now officially lost.
 
 I have apache 1.3.x with tomcat 4.1.24
 I installed mod_jk
 
 in httpd.conf I put :
 
 LoadModule jk_module modules/mod_jk.so
 
 .
 .
 .
 
 # MY OWN STUFF HERE
 IfModule mod_jk.so
   AddModule mod_jk.c
   JkWorkersFile /etc/httpd/conf/workers.properties
   JkLogFile /var/log/httpd/mod_jk.log
   JkLogLevelinfo
   JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
   JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
   JkRequestLogFormat %w %V %T
   JkMount  /Friss/* worker1
 /IfModule
 
 
 In workers.properties I have :
 
 #Define 1 real worker using ajp13
 
 worker.list=worker1
 
 #Set properties for worker1(ajp13)
 
 worker.worker1.type=ajp13
 worker.worker1.host=localhost
 worker.worker1.port=8009
 worker.worker1.lbfactor=50
 worker.worker1.cahcesize=10
 worker.worker1.cache_timeout=600
 worker.worker1.socket_keepalive=1
 worker.worker1.socket_timeout=300
 
 In the webapps dir I created a dir called Friss wich contains a WEB_INF 
 dir and a index.html file.
 
 When I restart tomcat and apache I want to request : 
 www.connecties.com/Friss.
 
 I suspected to get the index.html file from the Friss webapp. Instead I 
 got a 404 document not found.
 
 
 I think I'm missing something but I don't know what.
 Anybody out there had the same experience and want to share it with me?
 
 Kind regards
 Werner
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
-- 
Javier Ayllon [EMAIL PROTECTED]
Universidad de Castilla La Mancha



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



Re: tomcat startup

2003-07-14 Thread Reginald Oake
Hi.

From the look of the error message it appears that your CATALINA_HOME
environment variable is not set. It should be a global environment
variable (under windows) or if you are using some flavour of unix set it
in /etc/profile.

Also, it appears that you do not have a TCP/IP stack available. I have
encountered this before in Windows where, if you do not have a network
connection (ethernet or through a modem) Windows does not create a
TCP/IP stack. I am not sure how you would proceed in this case but the
availability of a TCP/IP stack is a necessity.


Thanx,


Reg

On Mon, 2003-07-14 at 06:29, Souren Sinha wrote:
 Hi,
 I am having trouble starting up tomcat from the Start menu.
 I get the following exception:
 
 Using CATALINA_BASE:   ..
 Using CATALINA_HOME:   ..
 Using CATALINA_TMPDIR: ..\temp
 Using JAVA_HOME:   C:\j2sdk1.4.0_03
 Jul 14, 2003 10:28:26 PM org.apache.commons.modeler.Registry loadRegistry
 INFO: Loading registry information
 Jul 14, 2003 10:28:27 PM org.apache.commons.modeler.Registry getRegistry
 INFO: Creating new Registry instance
 Jul 14, 2003 10:28:28 PM org.apache.commons.modeler.Registry getServer
 INFO: Creating MBeanServer
 Jul 14, 2003 10:28:29 PM org.apache.coyote.http11.Http11Protocol init
 SEVERE: Error initializing endpoint
 java.net.SocketException: Network is down: listen failed
 at java.net.PlainSocketImpl.socketListen(Native Method)
 at java.net.PlainSocketImpl.listen(PlainSocketImpl.java:333)
 at java.net.ServerSocket.bind(ServerSocket.java:309)
 at java.net.ServerSocket.bind(ServerSocket.java:266)
 at java.net.ServerSocket.init(ServerSocket.java:182)
 at java.net.ServerSocket.init(ServerSocket.java:138)
 
 Can someone please help me out.
 Regards
 Souren
 
 
 - Original Message -
 From: Agarwal, Naresh [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, July 14, 2003 10:09 PM
 Subject: Do we have any control on Tomcat threads?
 
 
 Hi
 
 Web apps in tomcat run in threads spawned by Tomcat. Do we have any control
 on these threads?
 
 I want to perform some Init and UnInit operations at the time creation and
 destruction of these threads. Is it possible to do with Tomcat threads?
 
 thanks  regards,
 Naresh Agarwal
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



Re: I'm officially lost with mod_jk

2003-07-14 Thread Jeff Tulley
Crazy question:  Did you type the url literally like the one below
(minus the period at the end of the sentence of course)??  
When you go though the mod_jk you need to have a traling slash, so 
http://www.connecties.com/Friss/

This is due to the matching functionality of the mod, and the way in
which you wrote your JkMount statement.

See if that helps.

Jeff Tulley  ([EMAIL PROTECTED])
(801)861-5322
Novell, Inc., The Leading Provider of Net Business Solutions
http://www.novell.com

 [EMAIL PROTECTED] 7/14/03 10:35:21 AM 
Hi all,

Here is another user of mod_jk who's now officially lost.


When I restart tomcat and apache I want to request : 
www.connecties.com/Friss.



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



Re: I'm officially lost with mod_jk

2003-07-14 Thread John Turner
A couple of things...

- remove JkMount from global configuration.  JkMount directives are 
VirtualHost-specific.

- verify the ServerName in httpd.conf matches the name in your Host 
container in server.xml

- change your worker name to ajp13 (worker1 is probably OK but since it 
doesn't matter, there's no reason not to use ajp13 and in some cases the 
name ajp13 makes a difference)

- remove the extra stuff from workers.properties...you only need .list, 
.host, .type, and .port.

- check contents of your JK log file...it is typically pretty specific, 
telling you exactly what is wrong.

John

On Mon, 14 Jul 2003 18:35:21 +0200, Werner van Mook [EMAIL PROTECTED] 
wrote:

Hi all,

Here is another user of mod_jk who's now officially lost.

I have apache 1.3.x with tomcat 4.1.24
I installed mod_jk
in httpd.conf I put :

LoadModule jk_module modules/mod_jk.so

.
.
.
# MY OWN STUFF HERE
IfModule mod_jk.so
AddModule mod_jk.c
JkWorkersFile /etc/httpd/conf/workers.properties
JkLogFile /var/log/httpd/mod_jk.log
JkLogLevelinfo
JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat %w %V %T
JkMount  /Friss/* worker1
/IfModule
In workers.properties I have :

#Define 1 real worker using ajp13

worker.list=worker1

#Set properties for worker1(ajp13)

worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8009
worker.worker1.lbfactor=50
worker.worker1.cahcesize=10
worker.worker1.cache_timeout=600
worker.worker1.socket_keepalive=1
worker.worker1.socket_timeout=300
In the webapps dir I created a dir called Friss wich contains a WEB_INF 
dir and a index.html file.

When I restart tomcat and apache I want to request : 
www.connecties.com/Friss.

I suspected to get the index.html file from the Friss webapp. Instead I 
got a 404 document not found.

I think I'm missing something but I don't know what.
Anybody out there had the same experience and want to share it with me?
Kind regards
Werner
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat 5.0.3: Cannot get rid of webapp context either manually or with manager tool

2003-07-14 Thread Gerry Reno
Tim,
  Ok, I found that in conf/Catalina/ the subdirectories are the vhosts.
 In the vhost subdir I found a context.xml file for the ghost
context.  I removed this file and restarted Tomcat and the ghost
context disappeared.  Just to test I redropped the war file in the
vhost webapps dir.  The context appears under manager and everything
works.  I rechecked the vhost subdir under conf/Catalina/ but no
context.xml showed up.  Once I went into the admin app and committed
a change then the context.xml was created under conf/Catalina/.  It
would seem to me that the Undeploy command in the manager app should be
removing the context.xml file under conf/Catalina/vhost.  It is not
doing that.  Should this be filed as a bug?

Gerry Reno


--- Tim Funk [EMAIL PROTECTED] wrote:
 For a ultra clean sweep (i think) ...
 
 - Stop tomcat.
 - Look for any directories in the webapps dir (or alternate defined
 by 
 server.xml)
 - Look in conf's sub-directories for xml files.
 - Look for any war files
 
 You shouldn't need to do these 2 because these shouldn't happen
 (IIRC) ...
 - Look for any .xml files in the  webapps dir (or alternate defined
 by 
 server.xml) - then examine the contents
 - Take Context references out of server.xml
 
 -Tim
 
 Gerry Reno wrote:
In one of my vhosts I have a webapp that was installed by
 dropping a
  war into the appropriate directory for this vhost.  The webapp
 works
  fine.  I subsequently wanted to remove this webapp for the vhost so
 I
  went into the  vhost manager app and selected 'Undeploy' link.  It
  responded with FAIL - Cannot undeploy document base for path
  /mywebapp.  So then I tried manually deleting the webapp by
 removing
  the WAR file and directory and deleting the vhost tomcat work area.
 
  Restarted Tomcat and the webapp was still listed.  You could start
 it
  but it didn't do anything when you tried to access the context.  I
  tried clicking on 'Undeploy' again - no luck - same error message
 as
  before.  So now I stuck.  This ghost of a context refuses to go
 away
  even though I think I have removed every trace of it that I can
 find. 
  Any suggestions?
  
  thx,
  Gerry Reno
   
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



Re: Tomcat 5.0.3: Cannot get rid of webapp context either manuallyor with manager tool

2003-07-14 Thread Tim Funk
Probably, that way it stays visible.

-Tim

Gerry Reno wrote:
Tim,
  Ok, I found that in conf/Catalina/ the subdirectories are the vhosts.
 In the vhost subdir I found a context.xml file for the ghost
context.  I removed this file and restarted Tomcat and the ghost
context disappeared.  Just to test I redropped the war file in the
vhost webapps dir.  The context appears under manager and everything
works.  I rechecked the vhost subdir under conf/Catalina/ but no
context.xml showed up.  Once I went into the admin app and committed
a change then the context.xml was created under conf/Catalina/.  It
would seem to me that the Undeploy command in the manager app should be
removing the context.xml file under conf/Catalina/vhost.  It is not
doing that.  Should this be filed as a bug?
Gerry Reno

--- Tim Funk [EMAIL PROTECTED] wrote:

For a ultra clean sweep (i think) ...

- Stop tomcat.
- Look for any directories in the webapps dir (or alternate defined
by 
server.xml)
- Look in conf's sub-directories for xml files.
- Look for any war files

You shouldn't need to do these 2 because these shouldn't happen
(IIRC) ...
- Look for any .xml files in the  webapps dir (or alternate defined
by 
server.xml) - then examine the contents
- Take Context references out of server.xml

-Tim

Gerry Reno wrote:

 In one of my vhosts I have a webapp that was installed by
dropping a

war into the appropriate directory for this vhost.  The webapp
works

fine.  I subsequently wanted to remove this webapp for the vhost so
I

went into the  vhost manager app and selected 'Undeploy' link.  It
responded with FAIL - Cannot undeploy document base for path
/mywebapp.  So then I tried manually deleting the webapp by
removing

the WAR file and directory and deleting the vhost tomcat work area.

Restarted Tomcat and the webapp was still listed.  You could start
it

but it didn't do anything when you tried to access the context.  I
tried clicking on 'Undeploy' again - no luck - same error message
as

before.  So now I stuck.  This ghost of a context refuses to go
away

even though I think I have removed every trace of it that I can
find. 

Any suggestions?

thx,
Gerry Reno


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


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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


[ANN] Tomcat included in Out-of-the-Box 2.1 release

2003-07-14 Thread Eric Weidner
Tomcat 4.1.24 is included in Out-of-the-Box 2.1, an intelligent
distribution of over 100 Open Source projects for Java developers on both
Linux and Windows.

Major changes since Out-of-the-Box 2.0:
  * Added Oracle and DB2 integration for JBoss and the sample projects
  * Semi-automatic database switching for JBoss and the samples after
installation
  * Support for Red Hat, SuSE, and Mandrake Linux (in addition to Windows
XP/2000)
  * Added PHP, phpMyAdmin, and phpBB for LAMP developers
  * Dozens of project updates, including JBoss, Struts, Hibernate,
MySQL, PostgreSQL, Eclipse, and more

The free Community Edition is fully functional, does not expire, and does
not require registration.  It installs just over 25 of the 100+ projects,
including JBoss, MySQL, and Castor, and comes with the Castor sample project
and nearly all of the Enterprise Edition documentation.

Please visit http://www.ejbsolutions.com for details or to download the free
Community Edition.

Thanks,
Eric

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



Re: I'm officially lost with mod_jk

2003-07-14 Thread Simon Pabst
That looks like a trailing slash problem,
you requested /Friss, but mounted only /Friss/
Either use the following JkMount additionally:
JkMount /Friss worker1
Or use Apache's mod_rewrite to put a trailing slash to URL if it there is none.
http://httpd.apache.org/docs/misc/rewriteguide.html
Also make sure to have index.html in your Tomcat web.xml welcome file list.
http://jakarta.apache.org/tomcat/faq/misc.html#welcome
At 18:35 14.07.2003 +0200, you wrote:
Hi all,

Here is another user of mod_jk who's now officially lost.

I have apache 1.3.x with tomcat 4.1.24
I installed mod_jk
in httpd.conf I put :

LoadModule jk_module modules/mod_jk.so

.
.
.
# MY OWN STUFF HERE
IfModule mod_jk.so
 AddModule mod_jk.c
 JkWorkersFile /etc/httpd/conf/workers.properties
 JkLogFile /var/log/httpd/mod_jk.log
 JkLogLevelinfo
 JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
 JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
 JkRequestLogFormat %w %V %T
 JkMount  /Friss/* worker1
/IfModule
In workers.properties I have :

#Define 1 real worker using ajp13

worker.list=worker1

#Set properties for worker1(ajp13)

worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8009
worker.worker1.lbfactor=50
worker.worker1.cahcesize=10
worker.worker1.cache_timeout=600
worker.worker1.socket_keepalive=1
worker.worker1.socket_timeout=300
In the webapps dir I created a dir called Friss wich contains a WEB_INF 
dir and a index.html file.

When I restart tomcat and apache I want to request : www.connecties.com/Friss.

I suspected to get the index.html file from the Friss webapp. Instead I 
got a 404 document not found.

I think I'm missing something but I don't know what.
Anybody out there had the same experience and want to share it with me?
Kind regards
Werner
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


RES: [off-topic] - Where can i find Oreilly's package for uploading files?

2003-07-14 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Thanks at all. I will try FileUpload of Apache.I have already gotten
Oreilly's package too.
Regards,
Euclides.



-Mensagem original-
De: Reginald Oake [mailto:[EMAIL PROTECTED]
Enviada em: segunda-feira, 14 de julho de 2003 13:41
Para: Tomcat Users List
Assunto: Re: [off-topic] - Where can i find Oreilly's package for
uploading files?


Hi.

According to the book Java Servlet Programming the cos.jar file can be
found at www.servlets.com.


On Mon, 2003-07-14 at 01:22, Guus Holshuijsen wrote:
 Try http://examples.oreilly.com/jservlet2/. There you will find a link to
 http://www.servlets.com/cos/.
 
 Regards,
 Guus
 - Original Message -
 From: Susan Hoddinott [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Saturday, July 12, 2003 6:05 PM
 Subject: Re: [off-topic] - Where can i find Oreilly's package for
uploading
 files?
 
 
  Have you tried www.oreilly.com?
 
  Regards,
  Susan Hoddinott
  http://www.hexworx.com
 
  - Original Message -
  From: Jose Euclides da Silva Junior - DATAPREVRJ
  [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Thursday, July 10, 2003 2:02 AM
  Subject: [off-topic] - Where can i find Oreilly's package for uploading
  files?
 
 
   Hi, i have tried to search for , but i didnt find it. Can somebody
help
  me?
   Thanks in advance,
   Euclides.
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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

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



RE: Please help with unusual configuration

2003-07-14 Thread Goehring, Chuck Mr., RCI - San Diego


Since ssl is required/not required based on the directory, how can I have ssl and 
non-ssl users access the same files with only the protocol  port different?  Is this 
why I would use separate virtual hosts?

Thanks
Chuck


-Original Message-
From: Rick Roberts [mailto:[EMAIL PROTECTED]
Sent: Friday, July 11, 2003 5:22 PM
To: Tomcat Users List
Subject: Re: Please help with unusual configuration


It doesn't sound like you are doing at all unusual.
It sounds like pretty normal HTTP/HTTPS apache/tomcat configuration.

Just have the firewall block port 80 traffic and have apache listen on ports 80 
and 443.

Then outside traffic uses https://yoursite.gov (port 443) and inside traffic 
uses http://yoursite.gov (port 80)

1 Apache
1 Tomcat
1 computer

-- 
***
* Rick Roberts*
* Advanced Information Technologies, Inc. *
***


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



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



Is System Call can be invoked in the Servlet Container

2003-07-14 Thread Ke Song
Hi,
Is System Call allowed in the Servlet Container? Please help.

Thanks.
Ke


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



Re: Is System Call can be invoked in the Servlet Container

2003-07-14 Thread John Turner
String command = new String();
command = put your system call here;
java.lang.Process process = java.lang.Runtime.getRuntime().exec(command);
process.waitFor();
if (process.exitValue() != 0)
{
throw new Exception(My System call did not work! Exit value =  + 
process.exitValue() );
}

John

On Mon, 14 Jul 2003 12:15:46 -0700, Ke Song [EMAIL PROTECTED] wrote:

Hi,
Is System Call allowed in the Servlet Container? Please help.
Thanks.
Ke
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Is it posible to Start and Stop a single web application on local server without using the Manager application

2003-07-14 Thread Ove Heimark
It would be convenient to be able to control each web application in
automatic deployment/update routines from ANT or other shell scripts
executing locally.

When using Apache webserver and mod_webapp to map virtual hosts to webapps,
the usage of the Tomcat Manager application seem to be unsupported?

Something like this would be nice:

./catalina stop_app myapp
./catalina start_app myapp


Ove


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



Re: Is it posible to Start and Stop a single web application on local server without using the Manager application

2003-07-14 Thread John Turner
Don't use mod_webapp.

Contact the Tomcat Manager on port 8080 (use :8080 in your URL), and avoid 
Apache entirely.

John

On Mon, 14 Jul 2003 21:25:35 +0200, Ove Heimark [EMAIL PROTECTED] wrote:

It would be convenient to be able to control each web application in
automatic deployment/update routines from ANT or other shell scripts
executing locally.
When using Apache webserver and mod_webapp to map virtual hosts to 
webapps,
the usage of the Tomcat Manager application seem to be unsupported?

Something like this would be nice:

./catalina stop_app myapp
./catalina start_app myapp
Ove

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



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Is System Call can be invoked in the Servlet Container

2003-07-14 Thread Ke Song
John,
Thanks a lot for your prompt help. The point that I wanted to find out is if there is 
restriction on invoking system call on Servlet container or other J2EE app server. My 
senario is : My servlet will load a native library via JNI, the native code has system 
calls. It seems that the system call is not working(it's working if I load it in a 
standalone java application). So i am wondering if there is restriction on invoking 
system calls in the servlet container.  I searched specification doc on Servlet and 
J2EE, not able to find related topic. If anybody has any point, please share with me.

Thanks,
Ke

-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED]
Sent: Monday, July 14, 2003 12:14 PM
To: Tomcat Users List
Subject: Re: Is System Call can be invoked in the Servlet Container



String command = new String();
command = put your system call here;
java.lang.Process process = java.lang.Runtime.getRuntime().exec(command);
process.waitFor();
if (process.exitValue() != 0)
{
 throw new Exception(My System call did not work! Exit value =  + 
process.exitValue() );
}

John

On Mon, 14 Jul 2003 12:15:46 -0700, Ke Song [EMAIL PROTECTED] wrote:

 Hi,
 Is System Call allowed in the Servlet Container? Please help.

 Thanks.
 Ke


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





-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

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


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



RE: Is it posible to Start and Stop a single web application on local server without using the Manager application

2003-07-14 Thread Ove Heimark
Will I be able to control all the webapps mounted with Apache/mod_web app
from this single Manager webapp using Tomcat native http connector on port
8080?



-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED]
Sent: 14. juli 2003 21:28
To: Tomcat Users List
Subject: Re: Is it posible to Start and Stop a single web application on
local server without using the Manager application



Don't use mod_webapp.

Contact the Tomcat Manager on port 8080 (use :8080 in your URL), and avoid
Apache entirely.

John

On Mon, 14 Jul 2003 21:25:35 +0200, Ove Heimark [EMAIL PROTECTED] wrote:

 It would be convenient to be able to control each web application in
 automatic deployment/update routines from ANT or other shell scripts
 executing locally.

 When using Apache webserver and mod_webapp to map virtual hosts to
 webapps,
 the usage of the Tomcat Manager application seem to be unsupported?

 Something like this would be nice:

 ./catalina stop_app myapp
 ./catalina start_app myapp


 Ove


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





--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

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



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



Re: Is System Call can be invoked in the Servlet Container

2003-07-14 Thread John Turner
The JVM itself has native method system calls, so I highly doubt it.

John

On Mon, 14 Jul 2003 12:40:32 -0700, Ke Song [EMAIL PROTECTED] wrote:

John,
Thanks a lot for your prompt help. The point that I wanted to find out is 
if there is restriction on invoking system call on Servlet container or 
other J2EE app server. My senario is : My servlet will load a native 
library via JNI, the native code has system calls. It seems that the 
system call is not working(it's working if I load it in a standalone java 
application). So i am wondering if there is restriction on invoking 
system calls in the servlet container.  I searched specification doc on 
Servlet and J2EE, not able to find related topic. If anybody has any 
point, please share with me.

Thanks,
Ke
-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED]
Sent: Monday, July 14, 2003 12:14 PM
To: Tomcat Users List
Subject: Re: Is System Call can be invoked in the Servlet Container


String command = new String();
command = put your system call here;
java.lang.Process process = java.lang.Runtime.getRuntime().exec(command);
process.waitFor();
if (process.exitValue() != 0)
{
throw new Exception(My System call did not work! Exit value =  + 
process.exitValue() );
}

John

On Mon, 14 Jul 2003 12:15:46 -0700, Ke Song [EMAIL PROTECTED] wrote:

Hi,
Is System Call allowed in the Servlet Container? Please help.
Thanks.
Ke
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Is it posible to Start and Stop a single web application on local server without using the Manager application

2003-07-14 Thread John Turner
I don't use mod_webapp.  If you are contacting Tomcat's manager on port 
8080, Tomcat will behave according to the host header (host name) used in 
the URL.  If there's a web app under that host name and everything else is 
correct (permissions, etc.) then you can manage the web app.

John

On Mon, 14 Jul 2003 21:34:48 +0200, Ove Heimark [EMAIL PROTECTED] wrote:

Will I be able to control all the webapps mounted with Apache/mod_web app
from this single Manager webapp using Tomcat native http connector on 
port
8080?



-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED]
Sent: 14. juli 2003 21:28
To: Tomcat Users List
Subject: Re: Is it posible to Start and Stop a single web application on
local server without using the Manager application


Don't use mod_webapp.

Contact the Tomcat Manager on port 8080 (use :8080 in your URL), and 
avoid
Apache entirely.

John

On Mon, 14 Jul 2003 21:25:35 +0200, Ove Heimark [EMAIL PROTECTED] 
wrote:

It would be convenient to be able to control each web application in
automatic deployment/update routines from ANT or other shell scripts
executing locally.
When using Apache webserver and mod_webapp to map virtual hosts to
webapps,
the usage of the Tomcat Manager application seem to be unsupported?
Something like this would be nice:

./catalina stop_app myapp
./catalina start_app myapp
Ove

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



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


mod_jk

2003-07-14 Thread Corey Tyndall
AIX 4.3.3
Apache 2.0.36
Tomcat 3.2.4
 
Anyone have the mod_jk for this setup or can help me with the build? 
The docs for this seem to be different on each site I get them from.  I
haven't been able to build this or find a pre-compiled version that
works. Any help will be greatly appreciated.


RE: Is it posible to Start and Stop a single web application on local server without using the Manager application

2003-07-14 Thread Ove Heimark
I don't use mod_webapp.  If you are contacting Tomcat's manager on port
8080, Tomcat will behave according to the host header (host name) used in
the URL.  If there's a web app under that host name and everything else is
correct (permissions, etc.) then you can manage the web app.

This is not the case, every webapp maps to a different url, these virtual
hostnames are defined in the apache httpd.conf file.



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



Re: Is System Call can be invoked in the Servlet Container

2003-07-14 Thread Tim Funk
If you are running under a security manager - you'll need to tweak your 
security policy to allow that class to make native calls.

-Tim (The guy who never did that before)

Ke Song wrote:
John,
Thanks a lot for your prompt help. The point that I wanted to find out is if there is 
restriction on invoking system call on Servlet container or other J2EE app server. My 
senario is : My servlet will load a native library via JNI, the native code has system 
calls. It seems that the system call is not working(it's working if I load it in a 
standalone java application). So i am wondering if there is restriction on invoking 
system calls in the servlet container.  I searched specification doc on Servlet and 
J2EE, not able to find related topic. If anybody has any point, please share with me.
Thanks,
Ke


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


Re: Is it posible to Start and Stop a single web application on local server without using the Manager application

2003-07-14 Thread John Turner
Reason #953 why you shouldn't use mod_webapp.

My point is simple:  if it is a separate web application, and it is 
working, then it should be accessible via the Tomcat Manager application.  
There is no reason whatsoever to involve Apache or mod_webapp if doing so 
is causing you grief.  Just talk to Tomcat directly.  What URL you need to 
use to do so, and what other things you have to do to get Tomcat's Manager 
to understand your virtual host setup are up to you...if the Manager app 
didn't work with multiple virtual hosts and multiple web applications, 
there'd be no point in having it, would there?

That said, you could even modify your own catalina.sh script to issue the 
commands as necessary, but asking for the dev team to change catalina.sh as 
you suggested would probably be met with some resistance, with the answer 
being use the manager application to stop and start your web applications, 
that is why it is there.

John

On Mon, 14 Jul 2003 21:47:03 +0200, Ove Heimark [EMAIL PROTECTED] wrote:

I don't use mod_webapp.  If you are contacting Tomcat's manager on port
8080, Tomcat will behave according to the host header (host name) used 
in
the URL.  If there's a web app under that host name and everything else 
is
correct (permissions, etc.) then you can manage the web app.
This is not the case, every webapp maps to a different url, these virtual
hostnames are defined in the apache httpd.conf file.


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



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Tomcat Question - content expiration

2003-07-14 Thread Chris Woollard
We have a problem where when the back button is pressed in the browser it
displays a This page has expired message. How can i get tomcat to display
the previous page correctly?

The Web server is IIS5 with the redirector 2 connector with tomcat 4.1.24

thanks
chris


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



Re: Is it posible to Start and Stop a single web application on local server without using the Manager application

2003-07-14 Thread John Turner
The problem you are experiencing is caused by mod_webapp's configuration 
peculiarities, not by any deficiency in Tomcat or the Tomcat Manager app.  
Since mod_webapp is no longer actively developed, my guess is you will have 
to develop a workaround on your own if it is causing you problems.  I 
suggest contacting Tomcat directly on port 8080 as the workaround.

John

On Mon, 14 Jul 2003 21:47:03 +0200, Ove Heimark [EMAIL PROTECTED] wrote:

I don't use mod_webapp.  If you are contacting Tomcat's manager on port
8080, Tomcat will behave according to the host header (host name) used 
in
the URL.  If there's a web app under that host name and everything else 
is
correct (permissions, etc.) then you can manage the web app.
This is not the case, every webapp maps to a different url, these virtual
hostnames are defined in the apache httpd.conf file.


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



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Looking for suggestions or pointers ..

2003-07-14 Thread Mufaddal Khumri
The problem:

We have some codebase that uses a legacy connection pool manager (cpm)  
to manage database connections with mysql. The very first time the  
login.jsp is used by a user  causes an instance of cpm being created  
and stored in the application context. The cpm gets and frees  
connection objects . Everything works fine, but when the webapp is  
reloaded a few times it gives the errors that i have logged below. The  
reason for the error is that the connections that are created and  
maintained by cpm are not being closed when the webapp is reloaded in  
tomcat. Is there a way or where in tomcat can we write clean up code ,  
for example close connections to databases. ??

Thanks.

// Error show in Browser  

java.lang.NullPointerException
	at  
com.wavesinmotion.cw.classes.db.ConnectionPoolManager.getConnectionPool( 
ConnectionPoolManager.java:112)
	at  
com.wavesinmotion.cw.classes.jsphelpers.LoginServlet.isValid(LoginServle 
t.java:78)
	at  
com.wavesinmotion.cw.classes.jsphelpers.LoginServlet.doPost(LoginServlet 
.java:32)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
	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:241 
5)
	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:43 
2)
	at  
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC 
onnection(Http11Protocol.java:386)
	at  
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:53 
4)
	at  
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool 
.java:530)
	at java.lang.Thread.run(Thread.java:554)

// Error show in log.out  

2003-07-14 12:09:01 StandardWrapperValve[LoginServlet]:  
Servlet.service() for servlet LoginServlet threw exception
java.lang.NullPointerException
	at  
com.wavesinmotion.cw.classes.db.ConnectionPoolManager.getConnectionPool( 
ConnectionPoolManager.java:112)
	at  
com.wavesinmotion.cw.classes.jsphelpers.LoginServlet.isValid(LoginServle 
t.java:78)
	at  
com.wavesinmotion.cw.classes.jsphelpers.LoginServlet.doPost(LoginServlet 
.java:32)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
	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)

Re: Looking for suggestions or pointers ..

2003-07-14 Thread Ronald Klop
See javax.servlet.ServletContextListener.
A context is destroyed and initialized when Tomcat is reloaded.
You can define a context listener in WEB-INF/web.xml:
listener
listener-classbla.bla.MyContextListener/listener-class
/listener

Works very well for my applications.
Note: Take a look at the various SessionListeners also. They can be very easy 
to use also for clean up.

Greetings,

Ronald.

On Monday 14 July 2003 10:14, Mufaddal Khumri wrote:
 The problem:

 We have some codebase that uses a legacy connection pool manager (cpm)
 to manage database connections with mysql. The very first time the
 login.jsp is used by a user  causes an instance of cpm being created
 and stored in the application context. The cpm gets and frees
 connection objects . Everything works fine, but when the webapp is
 reloaded a few times it gives the errors that i have logged below. The
 reason for the error is that the connections that are created and
 maintained by cpm are not being closed when the webapp is reloaded in
 tomcat. Is there a way or where in tomcat can we write clean up code ,
 for example close connections to databases. ??

 Thanks.

 // Error show in Browser
 
 java.lang.NullPointerException
   at
 com.wavesinmotion.cw.classes.db.ConnectionPoolManager.getConnectionPool(
 ConnectionPoolManager.java:112)
   at
 com.wavesinmotion.cw.classes.jsphelpers.LoginServlet.isValid(LoginServle
 t.java:78)
   at
 com.wavesinmotion.cw.classes.jsphelpers.LoginServlet.doPost(LoginServlet
 .java:32)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
   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:241
 5)
   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:43
 2)
   at
 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
 onnection(Http11Protocol.java:386)
   at
 org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:53
 4)
   at
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
 .java:530)
   at java.lang.Thread.run(Thread.java:554)


 // Error show in log.out
 
 2003-07-14 12:09:01 StandardWrapperValve[LoginServlet]:
 Servlet.service() for servlet LoginServlet threw exception
 

mod_jk round robin problem stateless session beans

2003-07-14 Thread Simon Pabst
We have the following setup:
One Apache with HTTPS/SSL with mod_jk (one load balancer, sticky sessions 
on) in front
Eight Tomcats in back

Round Robin doesn't work, but instead the Users are distributed on the 
Tomcats like this:

Tomcat No.| User Count (approx. daily)
T1  70
T2  30
T3  15
T4  6
T5  1
T6  0
T7  0
T8  0
This occurs both with Apache1.3.27/mod_jk1.2.x and Apache2.0.45/mod_jk2.x
(mod_jk 1 and 2 built from source of jakarta-tomcat-connectors-4.1.24-src 
and later also of tomcat-connectors-1.1M1-src).

Anyone ever experienced something similar or has any insight in this?

According to the application developer the application is using stateless 
session beans.
(Since i'm just a stupid server admin and no Java Programmer i don't really 
now what that is :-)

I tested the Load Balancing with the Tomcat SessionExample and round robin 
seemed to work fine.
If i switch of sticky session round robin also works fine, but not the 
application :-)

Do stateless session beans even work with mod_jk's sticky session stuff?
(in this discussion 
http://www.theserverside.com/discussion/thread.jsp?thread_id=409
somebody said:
if the application stores the stateless session bean in the httpsession, 
the application risks having all of the workload to only one of the nodes 
in the cluster)

If anyone knows how sticky sessions of mod_jk(2) work, please enlighten me :-)
Is it IP based in any way, are Cookies involved or JSESSIONID or anything else?
Could it be a problem that all Tomcats are on the same machine? (i tested 
this with pseudo network addresses 127.0.0.1-8 for each Tomcat too, but 
didn't help either)
Could HTTPS cause any troubles for this?



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


Re: JDBCRealm - Login redirects to my image instead

2003-07-14 Thread Rick Roberts
Ahhh!  Thanks. That makes complete sense.

I believe that is the correct thing to do.

Now I need to figure out a way to *easily* re-arrange my directories to handle 
*un-protected* and *protected* areas.

I currently have everything protected.

  security-constraint
web-resource-collection
  web-resource-nameProtected Area/web-resource-name
  !-- Define the context-relative URL(s) to be protected --
  url-pattern/*/url-pattern
This is a pretty large application with JSP to servlet to JSP communications.

I'm thinking that I really don't want to change all the URL references.

Any advice, other than just take the image out? :)

Tim Funk wrote:
(Guessing)
Put the image in an unprotected area. Since the image was the most 
recent request under a secutiry contraint, you are being redirected to 
that request on successfull login.

-Tim
--
***
* Rick Roberts*
* Advanced Information Technologies, Inc. *
***
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Tomcat service on Windows 2000 stopped unexpectedly

2003-07-14 Thread Yu, Albert

Hi, All

I'm running multiple Tomcat4.1.18/JSDK1.4.2 instances on Windows 2000 (SP3)
as services. Unfortunately, those tomcat services randomly stopped
unexpectedly. Windows event log didn't tell much detail, Tomcat log either.

Does anyone have this kind of experience? How can I address it? Any
information appreciated.  

Albert
 

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



RE: JDBCRealm - Login redirects to my image instead

2003-07-14 Thread Mike Curwen
That seems to make sense on first read. But... 

1) I make a request for a protected resource, say my_portal.jsp, which
contains an image.
2) The container says: that's a protected resource and redirects.
3) It authenticates and remembers that my_portal.jsp was the protected
resource asked for.
 
1) Was Tomcat really implemented to send to the 'last' resource
requested? That seems like.. one way of doing it.  Why not send to the
resource that invoked the authentication mechanism? (Is it *always* the
last?)
 
2) When did the HTML for my_portal.jsp ever get delivered to my browser,
so that it could access the 'protected' image file, resulting in it
being the 'last' resource requested ? No HTML should be sent until after
step 3) above, so is Tomcat psychic?

 


 -Original Message-
 From: Tim Funk [mailto:[EMAIL PROTECTED] 
 Sent: Monday, July 14, 2003 10:53 AM
 To: Tomcat Users List
 Subject: Re: JDBCRealm - Login redirects to my image instead
 
 
 (Guessing)
 Put the image in an unprotected area. Since the image was the 
 most recent 
 request under a secutiry contraint, you are being redirected 
 to that request 
 on successfull login.
 
 -Tim
 
 Rick Roberts wrote:
  I have JDBCRealm and Form Based AUTH.
 
  I have an image in my login.jsp file.
  Like this:
  IMG src='/myApp/images/myImage.gif' width='250' height='75'
 
  When I navigate to myApp/index.jsp, I get redirected to my 
 login.jsp
  file (just as I should).
  But, when I login, I get redirected to the image referenced in 
  login.jsp, instead of to index.jsp.
 
  It kinda makes since that this would happen, because 
 j_security_check
  sees the image file as the first target file to load.
 
  However; it is not what I want to happen.
 
  I could remove my IMG and everything works fine. But, I'd rather
  figure out how to keep my IMG in login.jsp and get redirected to 
  index.jsp.
 
  Anyone know how to do this?
 
  
  Something I forgot to mention:
  
  When login.jsp loads up, it does not load up the image.
  Then when I enter the UID  PWD j_security_check sends me 
 to the image
  that did not loadup.
  
  If I take the image out of login.jsp, then it works like I think it 
  should.
  
  Anyone know how to use an image in login.jsp?
  
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



RE: JDBCRealm - Login redirects to my image instead

2003-07-14 Thread Mike Curwen
oh DUH.  Sorry, I shoulda read that more closely.
 
So just make login.jsp and its image (or maybe even just the image) the
unprotected resource. Everything else can stay where it is.
 
But my original ?? about Tomcat using the 'last' rather than the
'causing' resource stands.  Why would they implement it thusly ?

 -Original Message-
 From: Tim Funk [mailto:[EMAIL PROTECTED] 
 Sent: Monday, July 14, 2003 10:53 AM
 To: Tomcat Users List
 Subject: Re: JDBCRealm - Login redirects to my image instead
 
 
 (Guessing)
 Put the image in an unprotected area. Since the image was the 
 most recent 
 request under a secutiry contraint, you are being redirected 
 to that request 
 on successfull login.
 
 -Tim
 
 Rick Roberts wrote:
  I have JDBCRealm and Form Based AUTH.
 
  I have an image in my login.jsp file.
  Like this:
  IMG src='/myApp/images/myImage.gif' width='250' height='75'
 
  When I navigate to myApp/index.jsp, I get redirected to my 
 login.jsp
  file (just as I should).
  But, when I login, I get redirected to the image referenced in 
  login.jsp, instead of to index.jsp.
 
  It kinda makes since that this would happen, because 
 j_security_check
  sees the image file as the first target file to load.
 
  However; it is not what I want to happen.
 
  I could remove my IMG and everything works fine. But, I'd rather
  figure out how to keep my IMG in login.jsp and get redirected to 
  index.jsp.
 
  Anyone know how to do this?
 
  
  Something I forgot to mention:
  
  When login.jsp loads up, it does not load up the image.
  Then when I enter the UID  PWD j_security_check sends me 
 to the image
  that did not loadup.
  
  If I take the image out of login.jsp, then it works like I think it 
  should.
  
  Anyone know how to use an image in login.jsp?
  
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



Newbie question on Tomcat security

2003-07-14 Thread substring
Hello All,

I just developed a JSP application called myapp,
running on Tomcat 4.1.24.  How can I keep people from
accessing my files under tomcat/webapps/myapp?  For
example, people can do a simple view source and find
the path to my css file, then they can type in the
path on the browser to access my files.

What kind of security that I should set up for that? 
I am pretty new to Tomcat so I need help.

By the way, my OS is Windows 2000 Pro.

Any help will be very much appreciated.


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



Upgrading Tomcat 5

2003-07-14 Thread Gerry Reno
  Since Tomcat 5 will be removing vhost contexts from server.xml and
writing them out to conf/Catalina/vhost/context.xml what will be
the procedure for upgrading Tomcat 5?  Right now under Tomcat 4, I
install a new version, change my CATALINA_HOME, move my webapps to the
new version and move all my vhost entries in server.xml to the new
server.xml.  Under Tomcat 5 when upgrading will I also need to copy the
conf/Catalina tree to the new version?

thx,
Gerry Reno


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



Re: Tomcat service on Windows 2000 stopped unexpectedly

2003-07-14 Thread Simon Pabst
Your Java Virtual Machine(s) could be crashing.
Search for HotSpot Virtual Machine Error in catalina.out and your 
application logs.

We had a problem with crashing JVM's (JDK 1.4.1) on Tomcat 4.1.24 (on 
Linux) and using ConcurrentGC/ParNewGC.
With ParallelGC the JVM works stable (although Garbage Collection 
performance is worse and leads to OutOfMemory from time to time,
since the application needs a lot of temporary memory for PDF generations 
with FOP)

Try using different Java Options and Collectors or JDK 1.4.1

See also
http://java.sun.com/docs/hotspot/gc1.4.2/
http://wireless.java.sun.com/midp/articles/garbagecollection2/
At 17:23 14.07.2003 -0400, you wrote:

Hi, All

I'm running multiple Tomcat4.1.18/JSDK1.4.2 instances on Windows 2000 (SP3)
as services. Unfortunately, those tomcat services randomly stopped
unexpectedly. Windows event log didn't tell much detail, Tomcat log either.
Does anyone have this kind of experience? How can I address it? Any
information appreciated.
Albert

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


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


Re: mod_jk round robin problem stateless session beans

2003-07-14 Thread NormW
Good morning Simon.
'RoundRobin' is less likely the more Tomcat's you add I suspect. The
balanced worker program always searches for a new worker by starting
pointers from 1 rather than the last successful worker used, (AFAICT), and
if a worker is free for the task it makes for muddy water indeed if you
bypass it in the hope of finding something better... You need to remember
which one was used 'last', which is a 'state' not remembered if/once session
ID's are used (which go to the worker that handled it the last time). If you
think about 'balancing' it is 'mindgame' to decide how a 'load' might be
distributed... based on session counts? based on request handling time? and
what 'integration' period would you use? ... and then there are preferences
based on load, server grunt, network traffic, background tasks...  at the
end of the day, the idea is to handle user requests, so if they're getting
processed in a 'timely' manner perhaps you can put the 'unused' Tomcat's
behind another Apache? ... or start a new thread here on how balancing might
be better handled in different situations...

Another 'possible' might be to add more balance workers and split your url's
to these, in turn connected to more ajp13 workers using some of the Tomcat's
currently sitting idle.
Norm


- Original Message - 
From: Simon Pabst [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, July 15, 2003 7:17 AM
Subject: mod_jk round robin problem  stateless session beans


 We have the following setup:
 One Apache with HTTPS/SSL with mod_jk (one load balancer, sticky sessions
 on) in front
 Eight Tomcats in back

 Round Robin doesn't work, but instead the Users are distributed on the
 Tomcats like this:

 Tomcat No.| User Count (approx. daily)
 T1 70
 T2 30
 T3 15
 T4 6
 T5 1
 T6 0
 T7 0
 T8 0

 This occurs both with Apache1.3.27/mod_jk1.2.x and Apache2.0.45/mod_jk2.x
 (mod_jk 1 and 2 built from source of jakarta-tomcat-connectors-4.1.24-src
 and later also of tomcat-connectors-1.1M1-src).

 Anyone ever experienced something similar or has any insight in this?

 According to the application developer the application is using stateless
 session beans.
 (Since i'm just a stupid server admin and no Java Programmer i don't
really
 now what that is :-)

 I tested the Load Balancing with the Tomcat SessionExample and round robin
 seemed to work fine.
 If i switch of sticky session round robin also works fine, but not the
 application :-)

 Do stateless session beans even work with mod_jk's sticky session stuff?
 (in this discussion
 http://www.theserverside.com/discussion/thread.jsp?thread_id=409
 somebody said:
 if the application stores the stateless session bean in the httpsession,
 the application risks having all of the workload to only one of the nodes
 in the cluster)

 If anyone knows how sticky sessions of mod_jk(2) work, please enlighten me
:-)
 Is it IP based in any way, are Cookies involved or JSESSIONID or anything
else?
 Could it be a problem that all Tomcats are on the same machine? (i tested
 this with pseudo network addresses 127.0.0.1-8 for each Tomcat too, but
 didn't help either)
 Could HTTPS cause any troubles for this?



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




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



Tomcat 4.1.24: file access problem?

2003-07-14 Thread The Wolf
Hi,
I am running Tomcat 4.1.24 on Red Hat Linux 7.3 with Sun JVM 1.4.1.

I am experiencing a problem with a Java webapp (clickshare):

***
3403 [Thread-19] INFO click.cs.CSConfiguration - Reading
configuration file /etc/opt/clickshare/www.mysite.com.conf
java.lang.reflect.InvocationTargetException
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
com.clickshare.config.Instantiator.configure(Instantiator.java:257)
at

com.clickshare.servlet.AbstractVirtualHostAwareConfigurableServlet.init(AbstractVirtualHostAwareConfigurableServlet.java:
138)
at
com.clickshare.servlet.TrafficCopServlet.service(TrafficCopServlet.java:112)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown
Source)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown
Source)
at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown
Source)
at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown
Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.core.StandardContextValve.invoke(Unknown
Source)
at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown
Source)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Unknown
Source)
at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown
Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.core.StandardContext.invoke(Unknown Source)
at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source)
at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown
Source)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(Unknown
Source)
at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown
Source)
at org.apache.catalina.valves.ErrorReportValve.invoke(Unknown Source)
at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown
Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.core.StandardEngineValve.invoke(Unknown
Source)
at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown
Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at
org.apache.catalina.connector.warp.WarpRequestHandler.handle(Unknown
Source)
at org.apache.catalina.connector.warp.WarpConnection.run(Unknown
Source)
at java.lang.Thread.run(Thread.java:536)
Caused by: java.lang.Exception: Validation servlet has been
incompletely configured: validator: null confirmationTemplate: null
erro
rPageTemplate: null cancelPageTemplate: null
limitExceededPageTemplate: null purchaseDisabledPageTemplate: null
at

com.clickshare.ccp.ValidationServlet.completeConfiguration(ValidationServlet.java:176)
... 36 more
***


The /etc/opt directory is recursively chown-ed to tomcat4:tomcat4 and the
permissions are set to 777.
The Tomcat SecurityManager is disabled: I have commented out the
-security option from the /etc/init.d/tomcat4 file.

I am new to Java/Tomcat and I don't know where to start in order to fix
the problem.
Any idea?

Thanks.

-- 
http://www.fastmail.fm - Access your email from home and the web

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



Re: JDBCRealm - Login redirects to my image instead

2003-07-14 Thread Tim Funk
The spec says the action for logging in is j_security_check with parameters 
j_username and j_password.

There are no parameters to say what the request/resource caused the security 
check. So without extending the spec with custom (non-portable) 
functionality, the last request seems to be chosen.

The joys HTTP of statelessness.

-Tim

Mike Curwen wrote:
oh DUH.  Sorry, I shoulda read that more closely.
 
So just make login.jsp and its image (or maybe even just the image) the
unprotected resource. Everything else can stay where it is.
 
But my original ?? about Tomcat using the 'last' rather than the
'causing' resource stands.  Why would they implement it thusly ?



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


[off-topic] need info about FIXME links in Tomcat Documentation?

2003-07-14 Thread seera naveen

Hi,

I was going through Tomcat documentation shipped with binary distribution (about 
Realms).  Someplaces, it was mentioned as see (FIXME - reference to developer 
stuff).  what is this FIXME? where can I find information about this.
(This is where I am referring to 
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm-howto.html )

Thanks in advance,

Naveen


SMS using the Yahoo! Messenger;Download latest version.

Re: JDBCRealm - Login redirects to my image instead

2003-07-14 Thread Tim Funk
- Move the image to another context?
- absolute URL the image to another place?
- define many url-pattern - this could be done easily via slurping your 
access log and using perl

-Tim

Rick Roberts wrote:
Ahhh!  Thanks. That makes complete sense.

I believe that is the correct thing to do.

Now I need to figure out a way to *easily* re-arrange my directories to 
handle *un-protected* and *protected* areas.

I currently have everything protected.

  security-constraint
web-resource-collection
  web-resource-nameProtected Area/web-resource-name
  !-- Define the context-relative URL(s) to be protected --
  url-pattern/*/url-pattern
This is a pretty large application with JSP to servlet to JSP 
communications.

I'm thinking that I really don't want to change all the URL references.

Any advice, other than just take the image out? :)

Tim Funk wrote:

(Guessing)
Put the image in an unprotected area. Since the image was the most 
recent request under a secutiry contraint, you are being redirected to 
that request on successfull login.

-Tim




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


newbie question on Tomcat security

2003-07-14 Thread epyonne =)
Hello All,

I just developed a JSP application called myapp,
running on Tomcat 4.1.24. How can I keep people from
accessing my files under tomcat/webapps/myapp? For
example, people can do a simple view source and find
the path to my css file, then they can type in the
path on the browser to access my files.
What kind of security that I should set up for that?
I am pretty new to Tomcat so I need help.
By the way, my OS is Windows 2000 Pro.

Any help will be very much appreciated.

_
Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail

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


Re: mod_rewrite supported ?

2003-07-14 Thread Nicolas
Nicolas wrote:

hi

is mod_rewrite supported ?

example:
RewriteEngine  on
RewriteRule^/test$ /examples/servlets/index.html
JkSet uri:/examples/*.group ajp13:unixsocket
the request /test tries to access /examples/servlets/index.html in 
document Root

any solution or not implemented ?

i finally made it my self after i tried an example for jk1 i tried it 
with mod_jk2 and it works

JkSet uri:workstation.nicolas/examples/*.group ajp13:unixsocket
RewriteEngine on
RewriteRule ^/test$ /examples/servlets/index.html [PT]
the [PT] was the neccessary modification:
*|
From Apache-Manual
passthrough|PT|*' (*p*ass *t*hrough to next handler)
Note: *You have to use this flag if you want to intermix directives of 
different modules which contain URL-to-filename translators*.

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


Re: Newbie question on Tomcat security

2003-07-14 Thread Reginald Oake
Hi.

I'm not certain about this but it seems to me that it would be next to
impossible to keep the html source from being viewed by someone using
any browser (this is not a server side issue). The source has to be
uploaded to the browser and, once it is uploaded anyone can view source
on the page.

As far as keeping your directory structure at least a little bit more
obscured you can do two things. You can never fully obscure the
directory structure as the browser requires this information to load
images, style sheets and links.

The first is to put an index.jsp or index.html file in so that people
cannot view your directory structure directly (there is probably a
better way to do this).

The second is to use servlet mappings.

I'm not sure if this needs to be said but even though people can
determine your directory structure with fairly little effort this does
not, in itself, pose a security risk.


Thanx


Reg


On Mon, 2003-07-14 at 15:49, substring wrote:
 Hello All,
 
 I just developed a JSP application called myapp,
 running on Tomcat 4.1.24.  How can I keep people from
 accessing my files under tomcat/webapps/myapp?  For
 example, people can do a simple view source and find
 the path to my css file, then they can type in the
 path on the browser to access my files.
 
 What kind of security that I should set up for that? 
 I am pretty new to Tomcat so I need help.
 
 By the way, my OS is Windows 2000 Pro.
 
 Any help will be very much appreciated.
 
 
 __
 Do you Yahoo!?
 SBC Yahoo! DSL - Now only $29.95 per month!
 http://sbc.yahoo.com
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



Servlet Context Listener problem...

2003-07-14 Thread Mufaddal Khumri
Hi:

I implemented ServletContextListener in my class. I then wrote the xml  
in the web.xml file and started tomcat. The error tomcat threw tells me  
that it did not recognize the listener and listener-class elements ?? i  
have them declared in the web.xml as:

web-app

!-- ServletContextListener --
listener
listener-class

com.wavesinmotion.cw.classes.jsphelpers.CourseWizardContextListener
/listener-class
/listener
/web-app
Any ideas where I am going wrong ?
Thanks.
Tomcat threw this error below:

SEVERE: Parse Error at line 10 column 12: Element type listener must  
be declared.
org.xml.sax.SAXParseException: Element type listener must be declared.
	at  
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Error 
HandlerWrapper.java:232)
	at  
org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.jav 
a:173)
	at  
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.jav 
a:371)
	at  
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.jav 
a:305)
	at  
org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(XMLDTDVali 
dator.java:1833)
	at  
org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator. 
java:724)
	at  
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(X 
MLDocumentFragmentScannerImpl.java:759)
	at  
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis 
patcher.dispatch(XMLDocumentFragmentScannerImpl.java:1477)
	at  
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDo 
cumentFragmentScannerImpl.java:329)
	at  
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:5 
25)
	at  
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:5 
81)
	at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
	at  
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java 
:1175)
	at org.apache.commons.digester.Digester.parse(Digester.java:1495)
	at  
org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfi 
g.java:282)
	at  
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:639)
	at  
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.j 
ava:243)
	at  
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu 
pport.java:166)
	at  
org.apache.catalina.core.StandardContext.start(StandardContext.java:3567 
)
	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.jav 
a:39)
	at  
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor 
Impl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Jul 14, 2003 3:56:11 PM org.apache.commons.digester.Digester error
SEVERE: Parse Error at line 11 column 19: Element type listener-class  
must be declared.
org.xml.sax.SAXParseException: Element type listener-class must be  
declared.
	at  
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Error 
HandlerWrapper.java:232)
	at  
org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.jav 
a:173)
	at  
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.jav 
a:371)
	at  
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.jav 
a:305)
	at  
org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(XMLDTDVali 
dator.java:1833)
	at  
org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator. 
java:724)
	at  
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(X 
MLDocumentFragmentScannerImpl.java:759)
	at  
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis 
patcher.dispatch(XMLDocumentFragmentScannerImpl.java:1477)
	at  
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDo 
cumentFragmentScannerImpl.java:329)
	at  
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:5 
25)
	at  
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:5 
81)
	at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
	at  

Re: Upgrading Tomcat 5

2003-07-14 Thread Gerry Reno
  One problem that I see with copying the conf/Catalina tree and these
context.xml files is with paths that are declared within the
context.xml files:  For example:

in ROOT.xml
Context
 ...
configFile=/usr/local/tomcat-5.0.3/conf/Catalina/www.vhost.com/ROOT.xml
 ...
/Context

Does Tomcat know to adjust these paths to the current $CATALINA_HOME
which soon would be /usr/local/tomcat-5.0.4?

Gerry Reno

--- Gerry Reno [EMAIL PROTECTED] wrote:
   Since Tomcat 5 will be removing vhost contexts from server.xml and
 writing them out to conf/Catalina/vhost/context.xml what will be
 the procedure for upgrading Tomcat 5?  Right now under Tomcat 4, I
 install a new version, change my CATALINA_HOME, move my webapps to
 the
 new version and move all my vhost entries in server.xml to the new
 server.xml.  Under Tomcat 5 when upgrading will I also need to copy
 the
 conf/Catalina tree to the new version?
 
 thx,
 Gerry Reno
 
 
 __
 Do you Yahoo!?
 SBC Yahoo! DSL - Now only $29.95 per month!
 http://sbc.yahoo.com
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



Trouble with clustering ending tomcat process on 4.1.24

2003-07-14 Thread Lawrence, Gabriel
Howdy,

I've noticed that sporadically my tomcat process dies with the following
error in the Catalina.out. Anyone have any ideas on whats going on?
Obviously an exception of somesort, but why the exception?

Thanks,
-gabe

[InMemoryReplicationManager]   storing attribute 'artifactbinding' with
value 'e
[EMAIL PROTECTED]'
[InMemoryReplicationManager] Session queued for replication
ReplicatedSession id=C54825CD094CEB71F3E891B19D34BA0E
ref=StandardSession[C54825
CD094CEB71F3E891B19D34BA0E]
name=userID; [EMAIL PROTECTED]
name=authResult;
value=edu.ucsd.security.ldapauth.LDAPAuthenticationResu
[EMAIL PROTECTED]
name=artifactbinding;
value=edu.ucsd.security.saml.server.SamlArtifactBi
[EMAIL PROTECTED]
LastAccess=1058226313531

file sync interval: 60091
file sync: 1
ServerLifecycleListener: destroyMBeans: Throwable
javax.management.InstanceNotFoundException: MBeanServer cannot find
MBean with O
bjectName
Catalina:type=Valve,sequence=18528421,path=/a4,host=asdfasdf.ucsd.edu,se
rvic
e=Tomcat-Standalone
at
mx4j.server.MBeanServerImpl.findMBeanMetaData(MBeanServerImpl.java:52
8)
at
mx4j.server.MBeanServerImpl.unregisterMBean(MBeanServerImpl.java:1165
)
at
org.apache.catalina.mbeans.MBeanUtils.destroyMBean(MBeanUtils.java:22
89)
at
org.apache.catalina.mbeans.ServerLifecycleListener.destroyMBeans(Serv
erLifecycleListener.java:930)
at
org.apache.catalina.mbeans.ServerLifecycleListener.destroyMBeans(Serv
erLifecycleListener.java:1165)
at
org.apache.catalina.mbeans.ServerLifecycleListener.destroyMBeans(Serv
erLifecycleListener.java:1114)
at
org.apache.catalina.mbeans.ServerLifecycleListener.destroyMBeans(Serv
erLifecycleListener.java:1296)
at
org.apache.catalina.mbeans.ServerLifecycleListener.destroyMBeans(Serv
erLifecycleListener.java:1268)
at
org.apache.catalina.mbeans.ServerLifecycleListener.destroyMBeans(Serv
erLifecycleListener.java:873)
at
org.apache.catalina.mbeans.ServerLifecycleListener.lifecycleEvent(Ser
verLifecycleListener.java:254)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:166)
at
org.apache.catalina.core.StandardServer.stop(StandardServer.java:2219
)
at
org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalin
a.java:624)
Stopping service Tomcat-Standalone
[InMemoryReplicationManager] Stopping

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



  1   2   >