Re: Tomcat with SSL

2004-04-22 Thread Hiemer, Bernhard


Thanks for your reply!

I configured my server.xml like this:

  


But there are the same effects ...






-Ursprüngliche Nachricht-
Von: Bill Barker [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 22. April 2004 08:38
An: [EMAIL PROTECTED]
Betreff: Re: Tomcat with SSL


I believe that you can't use IBM's JSSE with the HttpConnector.  You have to
use the CoyoteConnector.

"Hiemer, Bernhard" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]

Hi Tomcat-Users,

I found out, that my problem depends on the configuration of the security
providers in the java.security file.
(On my machine is installed jsse from IBM and Sun).

If the configuration is
security.provider.1=sun.security.provider.Sun
security.provider.2=com.ibm.jsse.JSSEProvider
security.provider.3=com.sun.net.ssl.internal.ssl.Provider

I get the following Exception
Catalina.start: LifecycleException:  null.open:
java.security.NoSuchAlgorithmException: Class com.ibm.jsse.ba configured for
SSLContext not a SSLContext
at com.sun.net.ssl.SunJSSE_b.a(DashoA6275)
at com.sun.net.ssl.SSLContext.getInstance(DashoA6275)
at
org.apache.catalina.net.SSLServerSocketFactory.initProxy(SSLServerSocContext
not a SSLContext
at com.sun.net.ssl.SunJSSE_b.a(DashoA6275)
at com.sun.net.ssl.SSLContext.getInstance(DashoA6275)
...


In the other case, when the configuration-file looks like
security.provider.1=sun.security.provider.Sun
security.provider.2=com.sun.net.ssl.internal.ssl.Provider
security.provider.3=com.ibm.jsse.JSSEProvider

this error message occurs:
java.lang.reflect.InvocationTargetException: java.lang.OutOfMemoryError




The relevant part of the server.xml file is:

  




In the first case it looks like the two different jsse implementations cause
the problem. But how to configure it right?

Can anyone give me any suggestions?

Thanks
Bernhard






-Ursprüngliche Nachricht-
Von: Hiemer, Bernhard
Gesendet: Freitag, 16. April 2004 08:00
An: '[EMAIL PROTECTED]'
Betreff: Tomcat with SSL


Hi at all!

I´m trying to configure my Tomcat-Standalone for SSL-Support. I use Win XP,
JRE 1.3.1 and JSSE 1.0.3_02.
The Tomcat-Versions I tried are 4.1.30 and 5.0.19.

I worked along the HOW-TO on the Jakarta-Website:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/ssl-howto.html

BUT I receive the following error on startup of Tomcat:
java.lang.reflect.InvocationTargetException: java.lang.OutOfMemoryError

I have already tried the Options -Xmx512m -Xms128m to give the VM more
memory.

What´s to do now?
Thanks in advance for each little help!
Bernhard




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



Bean's problem

2004-04-22 Thread Wojtek Gnus
Hello

I'm back in bussines but I've changed version of Tomcat
from 3.X to 4.1.24. And bean-problems appears!

Here's my configuration:
Tomcat: Tomcat/4.1.24-LE-jdk14
JSDK: j2sdk1.4.2_03
WIN2000

And this is my error:
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\rog\jsp\select_zmiana_jsp.java:50: cannot
access beanservlets.Select_zmiana
[javac] bad class file: C:\Program Files\Apache Group\Tomcat
4.1\webapps\rog\WEB-INF\classes\beanservlets\Select_zmiana.class
[javac] class file contains wrong class: Select_zmiana
[javac] Please remove or make sure it appears in the correct
subdirectory of the classpath.
[javac]   beanservlets.Select_zmiana select_zmiana = null;
[javac]   ^
[javac] 1 error

I've found on this mailing-list that my problems are related with packages.
Well, in my java file I've declared use of beanservlets package and I've
created directory:
C:\Program Files\Apache Group\Tomcat
4.1\webapps\rog\WEB-INF\classes\beanservlets
And in mu jsp file I've loaded my bean just like this:
 

But it looks that I must change something with my CLASSPATH. Am I right?

Greetings
Wojtek


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



jk2 osx 10.3

2004-04-22 Thread Mark Lowe
Hello

I've been trying to move from jk to jk2 and experincing some problems.

I've successfully compiled jk2 and installed it from the cvs version.

#start compiling jk2
cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic login password: 
anoncvs
cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic checkout 
jakarta-tomcat-connectors

cd jakarta-tomcat-connectors/jk/native2
./configure --with-apxs2=/usr/sbin/apxs
make
sudo cp ../build/build/jk2/apache2/mod_jk2.so /usr/libexec/apache2
#end compiling jk2
Edited httpd.conf
#httpd.conf
LoadModule jk2_module libexec/apache2/mod_jk2.so
JkSet config:file /etc/apache2/workers2.properties

DocumentRoot /Library/WebServer/Documents
ServerName foo.mydomain.com

JkUriSet group ajp13:localhost:9007


JkUriSet group ajp13:localhost:9007


#end httpd.conf
created and edited workers2.properties

touch /etc/apache2/workers2.properties
vi /etc/apache2/workers2.properties
#Start workers2.properties
[logger.apache2]
level=DEBUG
[shm]
file=/private/var/log/apache2/jk2.shm
size=1048576
[channel.socket:localhost:9007]
port=9007
host=127.0.0.1
[ajp13:localhost:9007]
channel=channel.socket:localhost:9007
[uri:localhost/*.jsp]
group=ajp13:localhost:9007
[uri:localhost/*.do]
group=ajp13:localhost:9007
[uri:localhost/servlet/*]
group=ajp13:localhost:9007
#End workers2.properties
The idea being to forward all requests for /*.jsp and /*.do to tomcat.

When i tried changing jk2.properties i get
#Exception
APR not loaded, disabling jni components: java.io.IOException: 
java.lang.UnsatisfiedLinkError: no jkjni in java.library.path
#End exception

#start jk2.properties
handler.list=request,channelJni
#end jk2.properties
So I thought perhaps I need to configure and compile jk2 with jni

./configure --with-tomcat41=/Library/Tomcat \
 --with-apxs2=/usr/sbin/apxs \
--with-java-home=/Library/Java/Home \
--with-jni
I've tried various java_home's but to no avail..

Has anyone done this? Can anyone help?

Cheers Mark

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


RE: How to limit concurrent requests by same user

2004-04-22 Thread Antony
I think you misunderstood my problem. On first page I create a token and put
it on a map. 
I then put the token as hidden fields in the page's form.
When user submit the page, I check if the token is still exists on the map. 

If not then maybe the user pressed back on his browser and resubmit again,
or double clicked the link. (My application can handle this by returning a
*default* page based on its current value.)

If the token is on the list, it's removed and the a new token was created
and put on the list and on the form.
The cycles continues...


But this approach has a couple of flaws:
1. if user double clicked on a link: the same token was sent twice. The 1st
request processed by my app will never be seen by user, he only see the page
for the 2nd request, which is the *default* page. Suppose the 1st request
returned an error message or something he'll never see it.

2. if the user click Abort before receiving the response, he's stuck with
the old token which was *REMOVED* by my app, when it's processing the
request. The page that contains the new token was never received by the
user. He can't resubmit.

I hope it's clear (sigh) English composition is not my subject.. :(
I've not found any solution to this, so please if someone can share any
solution.

TIA
Antony.

> -Original Message-
> From: Ralph Einfeldt [mailto:[EMAIL PROTECTED] 
> Sent: 22 April 2004 13:49
> To: Tomcat Users List
> Subject: RE: How to limit concurrent requests by same user
> 
> 
> You just have to remove the token no matter what happens.
> 
> try {
> 
>   // store token
> 
>   // Do the processing and create output
> 
> } catch(SomeException ex) { // Optional
> 
> } finally {
> 
>   // remove token
> 
> }
> 
> > -Original Message-
> > From: Antony [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, April 22, 2004 8:38 AM
> > To: 'Tomcat Users List'
> > Subject: RE: How to limit concurrent requests by same user
> > 
> > 
> > I tried this approach once, I got stuck on this scenario: 
> > user submit a form, jsp/servlet processes and remove the 
> token from list. 
> > But the user click abort before the page was transferred, 
> thus leaving 
> > him with old token. He can't ever submit the page again. 
> Anyone have 
> > think  of a solution for this can please share?
> > 
> 
> -
> 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: New users Problem with mod_jk

2004-04-22 Thread staf wagemakers
On Thu, Apr 22, 2004 at 11:56:30AM +0700, Muhammad Reza wrote:
> 
> I'm interesting to integrating Apache Server and Tomcat so my 
> development team can host their jsp in my FreeBSD-4.9Stable machine.
> But I have some difficulties, here goes the detail.
> My httpd server is apache-2.0.47 (installed from FreeBSD-4.9Stable Port) 
> with  jakarta-tomcat-4.1.29.tar.gz  and mod_jk2-apache2-2.0.4 binary for 
> FreeBSD from http://jakarta.apache.org. and diablo-jdk1.31
> My configuration from Web Server side...
> 
> #cat httpd.conf
> --snip--
> LoadModule jk2_module libexec/apache2/mod_jk2.so
> Include /usr/local/etc/apache2/mod_jk.conf
> ---snap--
> 
> #cat /usr/local/etc/apache2/mod_jk.conf
> 
>JkWorkersFile /usr/local/etc/apache2/workers2.properties
>JkLogFile  logs/jk.log
>JkLogLevel warn
>JkSet config.file /usr/local/etc/apache2/workers2.properties
>JkMount /*.jsp localhost
>JkMount /servlet/* localhost
>JkMount /examples/* localhost
> 
>

You're trying to use mod_jk2 with the mod_jk1 syntax.

You must use the JkUriSet or uri mapping, take a look at jk2
documentation.

-- 
Staf Wagemakers

email:  staf at patat.org
homepage:   http://staf.patat.org

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



Hi!

2004-04-22 Thread craigmcc


Norton AntiVirus gelöscht1.txt
Description: plain/text
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: JSP work dir problem running Tomcat 5 through jsvc

2004-04-22 Thread Ingo Kampe
Hello,

Parsons Technical Services wrote:
When using jsvc it will not picking up the shell variables. Set the data
manually in the script header. Mine looks like this:
JAVA_HOME=/tomcat/java
CATALINA_HOME=/tomcat/tc
DAEMON_HOME=/tomcat/tc/bin
TOMCAT_USER=tomcat
TMP_DIR=/var/tmp
CATALINA_OPTS=
CLASSPATH=\
$JAVA_HOME/lib/tools.jar:\
$CATALINA_HOME/bin/commons-daemon.jar:\
$CATALINA_HOME/bin/bootstrap.jar
There are just to more vars than i already use: DAEMON_HOME and TMP_DIR.
I will try if these makes the difference in execution.
Also where did you get the script file from? It is considerable different
from the one I downloaded a few weeks ago. In mine the first line tells you
to edit these line to match your machine.
I've just written the script for my needs.

Thanks for your response.

Regards,
)ngo

- Original Message - 
From: "Ingo Kampe" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 21, 2004 7:10 AM
Subject: JSP work dir problem running Tomcat 5 through jsvc



Hello,

i'm facing a problem with jsp pages. Seems to have a broken work dir
path and jasper doesn't prepare the jsp files to .java files for
compilation.
symptom:
java.io.FileNotFoundException:
/opt/tbone/server/tomcat/work/Catalina/localhost/tbone/org/apache/jsp/
topmenu_jsp.java
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.(FileOutputStream.java:179)
at java.io.FileOutputStream.(FileOutputStream.java:70)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:223)
This is the first jsp page of my webapp. servlets and html pages are
working well.
What works:
same webapp in Tomcat 3.3 and in Tomcat 5.19 started with startup.sh
instead of jsvc. But I need the fork mechanism of jsvc for using port
80,443 as user. jsp-examples work fine but there are already precompiled
jsp pages inside WEB-INF/classes/org/apache/jsp.
Any help would be appreciated.


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


Database #Error

2004-04-22 Thread craigmcc


Norton AntiVirus gelöscht1.txt
Description: plain/text
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: jk2 osx 10.3

2004-04-22 Thread Mark Lowe
Okay.. mod_jk2 works now, by not changing jk2.properties at all.

If anyone has the jni stuff working on osx i'd be interested in knowing 
how.. I've tried symlinking to the header files and such like to no 
avail. But this is by no means urgent as this is for our development 
server rather than live one that runs linux.

Mark

On 22 Apr 2004, at 10:38, Mark Lowe wrote:

Hello

I've been trying to move from jk to jk2 and experincing some problems.

I've successfully compiled jk2 and installed it from the cvs version.

#start compiling jk2
cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic login password: 
anoncvs
cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic checkout 
jakarta-tomcat-connectors

cd jakarta-tomcat-connectors/jk/native2
./configure --with-apxs2=/usr/sbin/apxs
make
sudo cp ../build/build/jk2/apache2/mod_jk2.so /usr/libexec/apache2
#end compiling jk2
Edited httpd.conf
#httpd.conf
LoadModule jk2_module libexec/apache2/mod_jk2.so
JkSet config:file /etc/apache2/workers2.properties

DocumentRoot /Library/WebServer/Documents
ServerName foo.mydomain.com

JkUriSet group ajp13:localhost:9007


JkUriSet group ajp13:localhost:9007


#end httpd.conf
created and edited workers2.properties

touch /etc/apache2/workers2.properties
vi /etc/apache2/workers2.properties
#Start workers2.properties
[logger.apache2]
level=DEBUG
[shm]
file=/private/var/log/apache2/jk2.shm
size=1048576
[channel.socket:localhost:9007]
port=9007
host=127.0.0.1
[ajp13:localhost:9007]
channel=channel.socket:localhost:9007
[uri:localhost/*.jsp]
group=ajp13:localhost:9007
[uri:localhost/*.do]
group=ajp13:localhost:9007
[uri:localhost/servlet/*]
group=ajp13:localhost:9007
#End workers2.properties
The idea being to forward all requests for /*.jsp and /*.do to tomcat.

When i tried changing jk2.properties i get
#Exception
APR not loaded, disabling jni components: java.io.IOException: 
java.lang.UnsatisfiedLinkError: no jkjni in java.library.path
#End exception

#start jk2.properties
handler.list=request,channelJni
#end jk2.properties
So I thought perhaps I need to configure and compile jk2 with jni

./configure --with-tomcat41=/Library/Tomcat \
 --with-apxs2=/usr/sbin/apxs \
--with-java-home=/Library/Java/Home \
--with-jni
I've tried various java_home's but to no avail..

Has anyone done this? Can anyone help?

Cheers Mark

-
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 it Tomcat problem or my problem?

2004-04-22 Thread UmamaheswarKalluru




Hello,
I am working on a web application using JSP and servlets. Till date my
application worked great but today I am having some critical problem. When
I come to a JSP, the session object is dead. I no longer can access the
session in my servlet.

I stopped the tomcat immediately to see if there is any error. And this is
my log file The NullPointerException is caused due to the object in session
being null.

Any help would be great.

* BEFORE SHUTTING DOWN **
In BetFormServlet :java.lang.NullPointerException
java.lang.NullPointerException
  at BetFormServlet.doPost(BetFormServlet.java:54)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
  at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284)
  at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
  at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:750)
  at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:510)
  at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:445)
  at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:359)
  at ControllerServlet.doPost(ControllerServlet.java:59)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
  at
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:466)
  at
org.apache.catalina.servlets.InvokerServlet.doPost(InvokerServlet.java:216)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
  at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284)
  at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
  at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)
  at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
  at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
  at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:245)
  at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:199)
  at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
  at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
  at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:184)
  at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
  at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164)
  at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
  at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
  at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156)
  at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
  at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
  at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972)
  at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:206)
  at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:833)
  at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:732)
  at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:619)
  at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:688)
  at java.lang.Thread.run(Thread.java:536)

* AFTER SHUTTING DOWN **


Apr 22, 2004 4:43:05 PM org.apache.catalina.core.StandardHostDeployer
remove
INFO: Removing web application at context path /IBS
Apr 22, 2004 4:43:05 PM org.apache.catalina.core.StandardHostDeployer
remove
INFO: Removing web application at context path
Apr 22, 2004 4:43:05 PM org.apache.catalina.session.StandardManager
doUnload
SEVERE: IOException while saving persisted sessions:
java.io.FileNotFoundException: E:\Tomcat 5.0
\work\Catalina\localhost\_\SESSIONS.ser (The system cannot find the path
specified)
java.io.FileNotFoundException: E:\Tomcat 5.0
\work\Catalina\localhost\_\SESSIONS.ser (The system cannot find the path
specified)
  at java.io.FileOutputStream.open(Native Method)
  at java.io.FileOutputStream.(FileOutputStream.java:176)
  at java.io.FileOutputStream.(FileOutputStream.java:70)
  at
org.apache.catalina.session.St

Connection pooling

2004-04-22 Thread Masood Reyhanei Hamedani
Dear all
 
I have a problem in using Connection Pooling with Tomcat 5.0.19, that is working in 
version 4.1.18 so good.I am using that configuration with 5.0.19 but it doesn't work 
att all.
 
 
I configure the ROOT.xml in this way:
 


  
  

  url
  jdbc:mysql://localhost/university?autoReconnect=true


  driverClassName
  com.mysql.jdbc.Driver


  username
  myusername


  password
  mypassword



  maxIdle
  0


  maxActive
  100


  maxWait
  -1


  removeAbandoned
  true



  logAbandoned
  true


  removeAbandonedTimeout
  60


  factory
  org.apache.commons.dbcp.BasicDataSourceFactory

  
  

and create a java class such as this:
 
package pooling;
import javax.sql.*;
import javax.naming.*;
import java.sql.*;
public class webPooling
{
  Connection mySqlConnection = null;
  public webPooling() //Class constructor
  {
  }
  public void init() //Connection Creator
  {
try
{
Context ctx = new InitialContext();
if(ctx == null )
   throw new Exception("ERROR IN CONTEXT INITIALIZATION!!?");
DataSource mySqlDatasource = 
(DataSource)ctx.lookup("java:comp/env/jdbc/UKwebpooling");
if(mySqlDatasource == null)
   throw new Exception ("ERROR IN DATASOURCE CREATING");
else
   mySqlConnection = mySqlDatasource.getConnection();
}//try
catch(Exception e)
{
  e.printStackTrace();
}
  }
  public Connection getConnection()
  {
 return mySqlConnection;
  }
}
 
I guess the problem is in common-dbcp-1.1 and common-pool-1.1  .jar files .
Is there any one that know about this problem?
 
With Thanks.
Masood.

 


-
Do you Yahoo!?
Yahoo! Photos: High-quality 4x6 digital prints for 25¢

Re: JSP work dir problem running Tomcat 5 through jsvc

2004-04-22 Thread Parsons Technical Services
When you download the jsvc from the site it contains a script that can be
modified and used. Look in the jsvc folder.

Doug

- Original Message - 
From: "Ingo Kampe" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, April 22, 2004 6:16 AM
Subject: Re: JSP work dir problem running Tomcat 5 through jsvc


> Hello,
>
> Parsons Technical Services wrote:
> > When using jsvc it will not picking up the shell variables. Set the data
> > manually in the script header. Mine looks like this:
> >
> > JAVA_HOME=/tomcat/java
> > CATALINA_HOME=/tomcat/tc
> > DAEMON_HOME=/tomcat/tc/bin
> > TOMCAT_USER=tomcat
> > TMP_DIR=/var/tmp
> > CATALINA_OPTS=
> > CLASSPATH=\
> > $JAVA_HOME/lib/tools.jar:\
> > $CATALINA_HOME/bin/commons-daemon.jar:\
> > $CATALINA_HOME/bin/bootstrap.jar
>
> There are just to more vars than i already use: DAEMON_HOME and TMP_DIR.
> I will try if these makes the difference in execution.
>
> > Also where did you get the script file from? It is considerable
different
> > from the one I downloaded a few weeks ago. In mine the first line tells
you
> > to edit these line to match your machine.
>
> I've just written the script for my needs.
>
> Thanks for your response.
>
> Regards,
> )ngo
>
>
> > - Original Message - 
> > From: "Ingo Kampe" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Wednesday, April 21, 2004 7:10 AM
> > Subject: JSP work dir problem running Tomcat 5 through jsvc
> >
> >
> >
> >>Hello,
> >>
> >>i'm facing a problem with jsp pages. Seems to have a broken work dir
> >>path and jasper doesn't prepare the jsp files to .java files for
> >>compilation.
> >>
> >>symptom:
> >>java.io.FileNotFoundException:
> >>/opt/tbone/server/tomcat/work/Catalina/localhost/tbone/org/apache/jsp/
> >>topmenu_jsp.java
> >>at java.io.FileOutputStream.open(Native Method)
> >>at java.io.FileOutputStream.(FileOutputStream.java:179)
> >>at java.io.FileOutputStream.(FileOutputStream.java:70)
> >>at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:223)
> >>
> >>This is the first jsp page of my webapp. servlets and html pages are
> >>working well.
> >>
> >>What works:
> >>same webapp in Tomcat 3.3 and in Tomcat 5.19 started with startup.sh
> >>instead of jsvc. But I need the fork mechanism of jsvc for using port
> >>80,443 as user. jsp-examples work fine but there are already precompiled
> >>jsp pages inside WEB-INF/classes/org/apache/jsp.
> >>
> >>Any help would be appreciated.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



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



Vedr.: Connection pooling

2004-04-22 Thread Thomas Nybro Bolding
Hi Masood,
what kind of error(s) do you get?
I have myself had some trouble setting up a DB pool for SQL Server 2000 at work 
following the guides but did not experience any problems setting up a pool for MySQL 
back home.

/Thomas





Masood Reyhanei Hamedani <[EMAIL PROTECTED]>
22-04-2004 14:01
Besvar venligst til "Tomcat Users List"

 
Til:[EMAIL PROTECTED]
cc: 
Vedr.:  Connection pooling



Dear all
 
I have a problem in using Connection Pooling with Tomcat 5.0.19, that is 
working in version 4.1.18 so good.I am using that configuration with 
5.0.19 but it doesn't work att all.
 
 
I configure the ROOT.xml in this way:
 


 
  

  url
 jdbc:mysql://localhost/university?autoReconnect=true


  driverClassName
  com.mysql.jdbc.Driver


  username
  myusername


  password
  mypassword



  maxIdle
  0


  maxActive
  100


  maxWait
  -1


  removeAbandoned
  true



  logAbandoned
  true


  removeAbandonedTimeout
  60


  factory
 org.apache.commons.dbcp.BasicDataSourceFactory

  
  

and create a java class such as this:
 
package pooling;
import javax.sql.*;
import javax.naming.*;
import java.sql.*;
public class webPooling
{
  Connection mySqlConnection = null;
  public webPooling() //Class constructor
  {
  }
  public void init() //Connection Creator
  {
try
{
Context ctx = new InitialContext();
if(ctx == null )
   throw new Exception("ERROR IN CONTEXT INITIALIZATION!!?");
DataSource mySqlDatasource = 
(DataSource)ctx.lookup("java:comp/env/jdbc/UKwebpooling");
if(mySqlDatasource == null)
   throw new Exception ("ERROR IN DATASOURCE CREATING");
else
   mySqlConnection = mySqlDatasource.getConnection();
}//try
catch(Exception e)
{
  e.printStackTrace();
}
  }
  public Connection getConnection()
  {
 return mySqlConnection;
  }
}
 
I guess the problem is in common-dbcp-1.1 and common-pool-1.1  .jar files .
Is there any one that know about this problem?
 
With Thanks.
Masood.

 

 
-
Do you Yahoo!?
Yahoo! Photos: High-quality 4x6 digital prints for 25¢



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




Re: Connection pooling

2004-04-22 Thread Parsons Technical Services
Is this a direct cut and paste? If yes you are missing a > at the end of the
Logger. Otherwise watch the order of the elements in the Resource. It can
make a difference in some cases.

What are the errors?

What does the web.xml look like?

Doug
www.parsonstechnical.com


- Original Message - 
From: "Masood Reyhanei Hamedani" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 22, 2004 8:01 AM
Subject: Connection pooling


> Dear all
>
> I have a problem in using Connection Pooling with Tomcat 5.0.19, that is
working in version 4.1.18 so good.I am using that configuration with 5.0.19
but it doesn't work att all.
>
>
> I configure the ROOT.xml in this way:
>
> 
> 
>  
>   
> 
>   url
>
jdbc:mysql://localhost/university?autoReconnect=true
> 
> 
>   driverClassName
>   com.mysql.jdbc.Driver
> 
> 
>   username
>   myusername
> 
> 
>   password
>   mypassword
> 
>
> 
>   maxIdle
>   0
> 
> 
>   maxActive
>   100
> 
> 
>   maxWait
>   -1
> 
> 
>   removeAbandoned
>   true
> 
>
> 
>   logAbandoned
>   true
> 
> 
>   removeAbandonedTimeout
>   60
> 
> 
>   factory
>
org.apache.commons.dbcp.BasicDataSourceFactory
> 
>   
>   
>
> and create a java class such as this:
>
> package pooling;
> import javax.sql.*;
> import javax.naming.*;
> import java.sql.*;
> public class webPooling
> {
>   Connection mySqlConnection = null;
>   public webPooling() //Class constructor
>   {
>   }
>   public void init() //Connection Creator
>   {
> try
> {
> Context ctx = new InitialContext();
> if(ctx == null )
>throw new Exception("ERROR IN CONTEXT INITIALIZATION!!?");
> DataSource mySqlDatasource =
(DataSource)ctx.lookup("java:comp/env/jdbc/UKwebpooling");
> if(mySqlDatasource == null)
>throw new Exception ("ERROR IN DATASOURCE CREATING");
> else
>mySqlConnection = mySqlDatasource.getConnection();
> }//try
> catch(Exception e)
> {
>   e.printStackTrace();
> }
>   }
>   public Connection getConnection()
>   {
>  return mySqlConnection;
>   }
> }
>
> I guess the problem is in common-dbcp-1.1 and common-pool-1.1  .jar files
.
> Is there any one that know about this problem?
>
> With Thanks.
> Masood.
>
>
>
>
> -
> Do you Yahoo!?
> Yahoo! Photos: High-quality 4x6 digital prints for 25¢



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



another problem with JAAS

2004-04-22 Thread Beloglazov Maksim
Hello,

I've written a JAAS LoginModule and my web application successfully 
authorizes with it. But! While the authorization is successful, Tomcat 
does not recognize user Principals and roles which I assign in login 
module and returns that I have logged as a *null* user with no roles 
assigned to it.

server.xml:

  

ru.mb.security.jaas.RdbmsPrincipal and ru.mb.security.jaas.RdbmsRole are 
implementations of java.security.Principal interface. How can I force 
Tomcat recognize these Principals in a proper way? Can be the problem 
with moving javax.security.Principal of earlier JDKs to 
java.security.Principal in modern ones?

Any help is greatly appreciated.

Beloglazov Maksim.


Apache2 encryption to Tomcat5

2004-04-22 Thread Pete Stokes
Hi,

I've got Apache2 reverse proxing to Tomcat5 on a different box 
(Linux's), accepting SSL to Apache and using the SSLProxyXXX directives 
to terminate the SSL connection.

What I need is to provide a low grade encryption between the Apache2 and 
Tomcat5 boxes.

I know in Tomcat conf to uncomment the SSL HTTP/1.1 connector, using the 
SSLServerSocketFactory, but what I can't work out is how to get Apache 
to forward requests to this connector, encrypted.

The reverse proxy is nice and simple, so I hope I can get this to work 
without having to try jk2 connectors.

Any ideas would be great.

Thanks,
Pete.


***
This email and any files transmitted with it are confidential and intended solely for 
the use of the individual or entity to whom they are addressed. If you have received 
this email in error please notify the system manager.
This footnote also confirms that this email message has been swept by MIMEsweeper for 
the presence of computer viruses.
***
For any information on the Quinn Group of Companies please visit :-
http://www.quinn-group.com

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


Classloading issue on startup and catalina.properties

2004-04-22 Thread Emmanuil Batsis (Manos)
Hi tribe,

I've set up a resource and realm in my server.xml and placed the mysql
driver in ~DOMAIN_DOCROOT/WEB-INF/lib. I get an exception on Tomcat
startup [1].
It seems that driver must be in shared/lib for my tomcat to start 
without errors, but due to the "shared" nature of my tomcat installation 
that is not an option.

Indeed, the same setup works fine on a machine of my control when the 
driver is in the common library folder, but fails with the same error 
when i change the driver's position to app/WEB-INF/lib.

So I mkdired a new directory for that purpose on my home folder and 
added that in my catalina.properties like:

shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/lib/*.jar,/home/mbatsis/common/lib/*.jar

but it doesn't work (also tried common.loader). My path is correct... 
Can this be a catalina.properties bug related to [2] and are there any 
workarounds? I'm using 5.0.19 on linux.

[1] Stacktrace:

2004-04-21 02:35:22 JDBCRealm[]: Exception opening database connection
java.sql.SQLException: com.mysql.jdbc.Driver
at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:635)
at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:709)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4190)
at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1126)
at 
org.apache.catalina.core.StandardHost.start(StandardHost.java:832)
at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1126)
at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:521)
at 
org.apache.catalina.core.StandardService.start(StandardService.java:519)
at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:2345)
at org.apache.catalina.startup.Catalina.start(Catalina.java:594)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)

2004-04-21 02:35:41 StandardContext[]cgi: init: loglevel set to 6

[2] 
http://www.faqchest.com/prgm/tomcat-l/tmct-03/tmct-0309/tmct-030958/tmct03092302_04163.html

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


Re: Is it Tomcat problem or my problem?

2004-04-22 Thread Parsons Technical Services
Uma,

Only cause you asked nicely.

Not sure on this one. It may be that you have two problems or  one causing
both issues.

Lets look at the IO error first. I am going to assume a windows environment
from the E:\ prompt.
You need to check the disk and the path to see if they are still valid. Do
this from a prompt. Don't use explorer for this. See if you can find the
same path. If yes then go into Windows Explorer and check the permissions on
this folder. Check to ensure the parent propagation is unchecked for the
Tomcat directory. Otherwise if someone makes a change to E:\ it will
propagate down through all the directories. If it is there and you have
proper permissions then your problem may be in Tomcat. Check your Windows
logs. See if there are any errors. You could have a bad or full disk. If
quotas are turned on you may have hit the limit. Worst case write a small
java app that reads from a file and writes to a file in the directory and
run it from the command prompt. If it fails then your problem is not Tomcat,
at least for the file IO.

For the null pointer issue. What is line 54 in the servlet trying to do?
This is your first clue. Are you trying to read in from a file by chance?
Need some more details in order to help further. A code snip here would
help, or at least a description of what the servlet is trying to do just
before and on line 54.

Doug

- Original Message - 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 22, 2004 7:27 AM
Subject: Is it Tomcat problem or my problem?


>
>
>
>
> Hello,
> I am working on a web application using JSP and servlets. Till date my
> application worked great but today I am having some critical problem. When
> I come to a JSP, the session object is dead. I no longer can access the
> session in my servlet.
>
> I stopped the tomcat immediately to see if there is any error. And this is
> my log file The NullPointerException is caused due to the object in
session
> being null.
>
> Any help would be great.
>
> * BEFORE SHUTTING DOWN **
> In BetFormServlet :java.lang.NullPointerException
> java.lang.NullPointerException
>   at BetFormServlet.doPost(BetFormServlet.java:54)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>   at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:284)
>   at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:204)
>   at
>
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:750)
>   at
>
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDis
patcher.java:510)
>   at
>
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch
er.java:445)
>   at
>
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher
.java:359)
>   at ControllerServlet.doPost(ControllerServlet.java:59)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>   at
>
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java
:466)
>   at
>
org.apache.catalina.servlets.InvokerServlet.doPost(InvokerServlet.java:216)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>   at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:284)
>   at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:204)
>   at
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:257)
>   at
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:151)
>   at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
>   at
>
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContext
Valve.java:245)
>   at
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:199)
>   at
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:151)
>   at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
>   at
>
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:184
)
>   at
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:151)
>   at
>
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164
)
>   at
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:149)
>   at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
>   at
>
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve

setting classpath when running as service on win2k

2004-04-22 Thread Vincent Lévin
hello !

where do we specify the classpath when when we launch tomcat 5 as service ?

we tried to put the classpath in 'catalina.bat', in the tomcat configuration
program ("configure tomcat") but it seems that all this has no effect :/


and, an other problem:

isn't it possible to update jars and classes in shared\lib or common\lib
whithout reloading tomcat ?


thanks !


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



Re: jk2 osx 10.3

2004-04-22 Thread Daniel Gibby
When you compiled the connector the second time, it should have created 
a lib_jkjni.so or jkjni.so in the same directory as your mod_jk2.so.
You need to copy that file as well to a location to specify where it is 
in your jk2.properties.
That is why you are getting the message about no jkjni library in your 
path. You have to tell it where it is.

Daniel

Mark Lowe wrote:

Okay.. mod_jk2 works now, by not changing jk2.properties at all.

If anyone has the jni stuff working on osx i'd be interested in 
knowing how.. I've tried symlinking to the header files and such like 
to no avail. But this is by no means urgent as this is for our 
development server rather than live one that runs linux.

Mark

On 22 Apr 2004, at 10:38, Mark Lowe wrote:

Hello

I've been trying to move from jk to jk2 and experincing some problems.

I've successfully compiled jk2 and installed it from the cvs version.

#start compiling jk2
cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic login 
password: anoncvs
cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic checkout 
jakarta-tomcat-connectors

cd jakarta-tomcat-connectors/jk/native2
./configure --with-apxs2=/usr/sbin/apxs
make
sudo cp ../build/build/jk2/apache2/mod_jk2.so /usr/libexec/apache2
#end compiling jk2
Edited httpd.conf
#httpd.conf
LoadModule jk2_module libexec/apache2/mod_jk2.so
JkSet config:file /etc/apache2/workers2.properties

DocumentRoot /Library/WebServer/Documents
ServerName foo.mydomain.com

JkUriSet group ajp13:localhost:9007


JkUriSet group ajp13:localhost:9007


#end httpd.conf
created and edited workers2.properties

touch /etc/apache2/workers2.properties
vi /etc/apache2/workers2.properties
#Start workers2.properties
[logger.apache2]
level=DEBUG
[shm]
file=/private/var/log/apache2/jk2.shm
size=1048576
[channel.socket:localhost:9007]
port=9007
host=127.0.0.1
[ajp13:localhost:9007]
channel=channel.socket:localhost:9007
[uri:localhost/*.jsp]
group=ajp13:localhost:9007
[uri:localhost/*.do]
group=ajp13:localhost:9007
[uri:localhost/servlet/*]
group=ajp13:localhost:9007
#End workers2.properties
The idea being to forward all requests for /*.jsp and /*.do to tomcat.

When i tried changing jk2.properties i get
#Exception
APR not loaded, disabling jni components: java.io.IOException: 
java.lang.UnsatisfiedLinkError: no jkjni in java.library.path
#End exception

#start jk2.properties
handler.list=request,channelJni
#end jk2.properties
So I thought perhaps I need to configure and compile jk2 with jni

./configure --with-tomcat41=/Library/Tomcat \
 --with-apxs2=/usr/sbin/apxs \
--with-java-home=/Library/Java/Home \
--with-jni
I've tried various java_home's but to no avail..

Has anyone done this? Can anyone help?

Cheers Mark

-
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: Is it Tomcat problem or my problem?

2004-04-22 Thread UmamaheswarKalluru




Doug,
Thank you for the reply. I dont think there is a problem with the Windows
Explorer as the same application worked great till yesterday. I never
changed the code and today it started not to work. I found the problem. The
problme is not in the Servlet, its in the JSP itself. The object in the
session is getting null.  I have done the following test procedure and
checked it.  My code for betform.jsp is posted below

1. Opened a new browser
2. Entered the Login URL and logged in (Servlet takes care of login
validations and puts the login info into a session)
3. I come to home page of the site.
4. I click on betform.jsp which has an Applet within it. The applet talks
to database for every 3 seconds for some information. I have several links
within the betform.jsp which will again call the same jsp with different
data.
5. I click on some link (any link) in betform.jsp, the session is not valid
and sent to login page.

6. I dont close the browser and login with the same browser and follow the
steps above, now the session works great.

Where am I going wrong? Why is the session not working for the first time
and is working now. I am using Tomcat 5.0.19

Any help would be great.


<%@ page import="java.io.*,java.util.*,java.text.*,ibs.*" %>





<%

try
{

  String stakeKey="";
  String stakeVal="";
  String racename="";
  String racetime="";
  String racedistance="";
  String ddt = "";
  Vector vddt = new Vector();
  String selDa = "";


  Vector details=new Vector();
  String disrace="";
  UserBeanInfo ub=(UserBeanInfo)session.getAttribute("UserDetails");

  if(ub == null)
  {
response.sendRedirect("Login.jsp");
return;
  }



  if(ub != null)
  {


 Vector v=new Vector();
 v.addElement(ub);

 String curbalance
=dbSearch.selectQueryOfType("BALANCE",v).trim();

 double balance =0;
 if(!curbalance.equals("NOT FOUND") && !curbalance.equals("null"))
 balance = Double.parseDouble(curbalance);

 Vector list  =(Vector)session.getAttribute("List");
 if(list != null) session.removeAttribute("List");

 String dateFormat=ub.getDtFormat();
 String dateSep =ub.getDtSep();
 String masterDate=ub.getMasterDate();

 //System.out.println("masterDate  "+masterDate);


 String predate="";
 java.text.SimpleDateFormat df =  new
java.text.SimpleDateFormat(masterDate);
 Date d = new Date();
 predate = df.format(d).toUpperCase();


 String s=request.getParameter("txtDate");
 String preval=request.getParameter("Location");
 if(s!=null) predate=s;

 String go=request.getParameter("GO");
 disrace=request.getParameter("RACE");

System.out.println("raj "+disrace);


%>

HTML CODE

 <%

  if((go != null) && (go.equals("DISPLAY")))
  {


if(session.getAttribute("List") != null ) {
  session.removeAttribute("List");
}

String modDate = s;
String qtype="BET RACE NO";
Vector temp=new Vector();
temp.addElement(modDate);
temp.addElement(preval);

String result=dbSearch.selectQueryOfType(qtype,temp);

if(!result.equals("NOT FOUND"))
{
%>

  Races:
  
  <%
  StringTokenizer st1=new StringTokenizer(result,"%");
  boolean raceStatus = false;

  while(st1.hasMoreTokens())
{
StringTokenizer race = new
StringTokenizer(st1.nextToken(),"ß");

while(race.hasMoreTokens())
{
String raceno=race.nextToken().trim();
String rs = race.nextToken().trim();
int rc = Integer.parseInt(race.nextToken().trim());
int rd = Integer.parseInt(race.nextToken().trim());


if(!rs.equals("STOPPED") && rc == 0 & rd==0 &&
disrace == null)
  disrace=raceno;

if(raceno.equals(disrace))
{%>
<%=raceno%>


 <%
 raceStatus = true;

 }

else
{
%>
 <%=raceno%>
 
  <%}
   }
  }

  if(raceStatus)

session.setAttribute("RACENO",disrace);
  else
  {%>


//alert("No opened race found");

  <%}
  %>
  



  <%
  temp

Re: Apache2 encryption to Tomcat5

2004-04-22 Thread Parsons Technical Services
Pete,

I know it can be done, but I don't have the experience to tell you how.

What will work is to set up a vpn/encrypted connection between the two
machines.

Googling I found this site:
http://ringstrom.mine.nu/ipsec_tunnel/

Also I saw a lot of hits on FreeSwan.

As for if it can be done from Apache to Tomcat I am unsure.

Doug
www.parsonstechnical.com


- Original Message - 
From: "Pete Stokes" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, April 22, 2004 8:58 AM
Subject: Apache2 encryption to Tomcat5


> Hi,
>
> I've got Apache2 reverse proxing to Tomcat5 on a different box
> (Linux's), accepting SSL to Apache and using the SSLProxyXXX directives
> to terminate the SSL connection.
>
> What I need is to provide a low grade encryption between the Apache2 and
> Tomcat5 boxes.
>
> I know in Tomcat conf to uncomment the SSL HTTP/1.1 connector, using the
> SSLServerSocketFactory, but what I can't work out is how to get Apache
> to forward requests to this connector, encrypted.
>
> The reverse proxy is nice and simple, so I hope I can get this to work
> without having to try jk2 connectors.
>
> Any ideas would be great.
>
> Thanks,
> Pete.
>
>
>
>

***
> This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the system manager.
> This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
>

***
> For any information on the Quinn Group of Companies please visit :-
>
> http://www.quinn-group.com
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



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



Re: another problem with JAAS

2004-04-22 Thread Michiel Toneman
Hi Beloglazov,

I was running into the same problem. As far as I can tell (anyone on the 
list, please correct me if I'm wrong), Tomcat primarily uses JAAS for 
authentication, but it is pretty useless for  authorisation. I have no 
idea why the JAASRealm goes to all the trouble of setting up a Subject 
etc... when you can't use them in your own policy. All you can do is use 
"isUserInRole()" to check for the *name* of your role Principal. This 
totally defeats the point of using JAAS IMHO.

I am using a JAAS implementation with is custom Policy that assigns 
Permission(s) based on various types of Principal that I assign to the 
Subject. My webapps can then do proper java Permission checks 
(AccessController.checkPermission(perm)).

The way to go in Tomcat is using a filter, setting up (LoginContext) 
your Subject and use a doAsPrivileged() to wrap the servlet call. (see 
my earlier post on the list). However, this does not work on Tomcat 
(works fine on JRun4) because the filter and servlet are evaluated by 
Tomcat in different security contexts. The solution was to overwrite 
Tomcat's Subject in the session by my own Subject.

I'm writing a tutorial on this, but it isn't ready yet. If you need an 
implementation fast, and the above is not enough to go on, I can speed 
up the writing ;-)

Cheers,

Michiel

Beloglazov Maksim wrote:

Hello,

I've written a JAAS LoginModule and my web application successfully 
authorizes with it. But! While the authorization is successful, Tomcat 
does not recognize user Principals and roles which I assign in login 
module and returns that I have logged as a *null* user with no roles 
assigned to it.

server.xml:

  

ru.mb.security.jaas.RdbmsPrincipal and ru.mb.security.jaas.RdbmsRole 
are implementations of java.security.Principal interface. How can I 
force Tomcat recognize these Principals in a proper way? Can be the 
problem with moving javax.security.Principal of earlier JDKs to 
java.security.Principal in modern ones?

Any help is greatly appreciated.

Beloglazov Maksim.



--
Michiel Toneman  Software Engineer   Bibit Global Payment Services
Regulierenring 10  3981 LB  Bunnik   [EMAIL PROTECTED]
Tel. +31-30-6595168  Fax +31-30-6564464  http://www.bibit.com/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: another problem with JAAS

2004-04-22 Thread Peter Rossbach
Hello,

strange error!

I have looked inside the JAASRealm code and can't find a error.
Subject result:
   You must have as your subject one Principal (java.security.Principa) 
for real user
   Than you can have one or more Group Principals with Name ="Roles" 
from class java.security.acl.Group
   for the real user roles!
All member names from this groups are added to the tomcat role 
names.
   An option is you generate your own GenericPrincipal!

regards
Peter
http://tomcat.objektpark.org
Beloglazov Maksim schrieb:

Hello,

I've written a JAAS LoginModule and my web application successfully 
authorizes with it. But! While the authorization is successful, Tomcat 
does not recognize user Principals and roles which I assign in login 
module and returns that I have logged as a *null* user with no roles 
assigned to it.

server.xml:

  

ru.mb.security.jaas.RdbmsPrincipal and ru.mb.security.jaas.RdbmsRole 
are implementations of java.security.Principal interface. How can I 
force Tomcat recognize these Principals in a proper way? Can be the 
problem with moving javax.security.Principal of earlier JDKs to 
java.security.Principal in modern ones?

Any help is greatly appreciated.

Beloglazov Maksim.





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


Re: Is it Tomcat problem or my problem?

2004-04-22 Thread Parsons Technical Services
Uma,

A few things to check.

Does it act the same from other machines?
Does it act the same from other browsers(Modzilla, Netscape, etc)?
Were any updates applied to the machine? Is auto update enabled on windows?

Are the connections via http or https?

Also try one more thing, on the first access do not use the URL of the
login, instead use the URL of the homepage and let it redirect you to the
login.

Doug


- Original Message - 
From: <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, April 22, 2004 9:18 AM
Subject: Re: Is it Tomcat problem or my problem?






Doug,
Thank you for the reply. I dont think there is a problem with the Windows
Explorer as the same application worked great till yesterday. I never
changed the code and today it started not to work. I found the problem. The
problme is not in the Servlet, its in the JSP itself. The object in the
session is getting null.  I have done the following test procedure and
checked it.  My code for betform.jsp is posted below

1. Opened a new browser
2. Entered the Login URL and logged in (Servlet takes care of login
validations and puts the login info into a session)
3. I come to home page of the site.
4. I click on betform.jsp which has an Applet within it. The applet talks
to database for every 3 seconds for some information. I have several links
within the betform.jsp which will again call the same jsp with different
data.
5. I click on some link (any link) in betform.jsp, the session is not valid
and sent to login page.

6. I dont close the browser and login with the same browser and follow the
steps above, now the session works great.

Where am I going wrong? Why is the session not working for the first time
and is working now. I am using Tomcat 5.0.19

Any help would be great.


<%@ page import="java.io.*,java.util.*,java.text.*,ibs.*" %>





<%

try
{

  String stakeKey="";
  String stakeVal="";
  String racename="";
  String racetime="";
  String racedistance="";
  String ddt = "";
  Vector vddt = new Vector();
  String selDa = "";


  Vector details=new Vector();
  String disrace="";
  UserBeanInfo ub=(UserBeanInfo)session.getAttribute("UserDetails");

  if(ub == null)
  {
response.sendRedirect("Login.jsp");
return;
  }



  if(ub != null)
  {


 Vector v=new Vector();
 v.addElement(ub);

 String curbalance
=dbSearch.selectQueryOfType("BALANCE",v).trim();

 double balance =0;
 if(!curbalance.equals("NOT FOUND") && !curbalance.equals("null"))
 balance = Double.parseDouble(curbalance);

 Vector list  =(Vector)session.getAttribute("List");
 if(list != null) session.removeAttribute("List");

 String dateFormat=ub.getDtFormat();
 String dateSep =ub.getDtSep();
 String masterDate=ub.getMasterDate();

 //System.out.println("masterDate  "+masterDate);


 String predate="";
 java.text.SimpleDateFormat df =  new
java.text.SimpleDateFormat(masterDate);
 Date d = new Date();
 predate = df.format(d).toUpperCase();


 String s=request.getParameter("txtDate");
 String preval=request.getParameter("Location");
 if(s!=null) predate=s;

 String go=request.getParameter("GO");
 disrace=request.getParameter("RACE");

System.out.println("raj "+disrace);


%>

HTML CODE

 <%

  if((go != null) && (go.equals("DISPLAY")))
  {


if(session.getAttribute("List") != null ) {
  session.removeAttribute("List");
}

String modDate = s;
String qtype="BET RACE NO";
Vector temp=new Vector();
temp.addElement(modDate);
temp.addElement(preval);

String result=dbSearch.selectQueryOfType(qtype,temp);

if(!result.equals("NOT FOUND"))
{
%>

  Races:
  
  <%
  StringTokenizer st1=new StringTokenizer(result,"%");
  boolean raceStatus = false;

  while(st1.hasMoreTokens())
{
StringTokenizer race = new
StringTokenizer(st1.nextToken(),"ß");

while(race.hasMoreTokens())
{
String raceno=race.nextToken().trim();
String rs = race.nextToken().trim();
int rc = Integer.parseInt(race.nextToken().trim());
int rd = Integer.parseInt(race.nextToken().trim());


if(!rs.equals("STOPPED") && rc == 0 & rd==0 &&
disrace == null)
  disrace=raceno;

if(raceno.equals(disrace))
{%>
<%=raceno%>


 <%
 raceStatus = t

Re: Tomcat is stoping Urgent

2004-04-22 Thread Kiran Patel
I am having this problem for one specific action in the application.  Is
there anything wrong with the code?

What are other solutions instead of ODBC connection for Access database?
How to do that?  Where I will find the document?

Please help.

Kiran
- Original Message - 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 22, 2004 7:22 AM
Subject: Re: Tomcat is stoping Urgent

IMHO it is problem with jdbc-odbc bridge. However Access and HDBC-ODBC
aren't the best solution for a production system.
IMHO  they are worst.

  - Original Message - 
  From: Kiran Patel 
  To: [EMAIL PROTECTED] 
  Sent: Wednesday, April 21, 2004 5:34 PM
  Subject: Tomcat is stoping Urgent


  Urgent!

  I am using Tomcat 4.1 for my application which is accessing data from =
  the Access database through the ODBC connection.  Everything was working =
  fine until today.  Suddenly when I tried to enter some records in the =
  data base through the application, Tomcat is stopped.  I got following =
  error in the error log.  Please help me.

  Kiran



  An unexpected exception has been detected in native code outside the VM.
  Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at =
  PC=3D0xC08FA3C
  Function=3DSQLFetch+0x16EF
  Library=3DC:\WINNT\system32\odbcjt32.dll

  Current Java thread:
   at sun.jdbc.odbc.JdbcOdbc.bindInParameterString(Native Method)
   at sun.jdbc.odbc.JdbcOdbc.SQLBindInParameterString(JdbcOdbc.java:972)
   at =
  sun.jdbc.odbc.JdbcOdbcPreparedStatement.setChar(JdbcOdbcPreparedStatement=
  .java:3106)
   at =
  sun.jdbc.odbc.JdbcOdbcPreparedStatement.setString(JdbcOdbcPreparedStateme=
  nt.java:764)
   at =
  org.apache.commons.dbcp.DelegatingPreparedStatement.setString(DelegatingP=
  reparedStatement.java:217)
   at beans.FeeFineBean.processGroupFees(FeeFineBean.java:4053)
   at beans.FeeFineBean.storeFeeFineData(FeeFineBean.java:1924)
   at =
  org.apache.jsp.fee_fine_new_jsp._jspService(fee_fine_new_jsp.java:409)
   at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at =
  org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.jav=
  a:204)
   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(Applicat=
  ionFilterChain.java:247)
   at =
  org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilte=
  rChain.java:193)
   at =
  org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve=
  .java:260)
   at =
  org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.in=
  vokeNext(StandardPipeline.java:643)
   at =
  org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:48=
  0)
   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.in=
  vokeNext(StandardPipeline.java:643)
   at =
  org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:48=
  0)
   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.in=
  vokeNext(StandardPipeline.java:643)
   at =
  org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVal=
  ve.java:170)
   at =
  org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.in=
  vokeNext(StandardPipeline.java:641)
   at =
  org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:=
  172)
   at =
  org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.in=
  vokeNext(StandardPipeline.java:641)
   at =
  org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:509)=

   at =
  org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.in=
  vokeNext(StandardPipeline.java:641)
   at =
  org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:48=
  0)
   at =
  org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at =
  org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.j=
  ava:174)
   at =
  org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.in=
  vokeNext(StandardPipeline.java:643)
   at =
  org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:48=
  0)
   at =
  org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at =
  org.apache.catalina.connector.htt

Re: Is it Tomcat problem or my problem?

2004-04-22 Thread UmamaheswarKalluru
   
   
   










Doug,

>Does it act the same from other machines?
YES
>Does it act the same from other browsers(Modzilla, Netscape, etc)?
YES
>Were any updates applied to the machine? Is auto update enabled on
windows?
NO

>Are the connections via http or https?
HTTP

>Also try one more thing, on the first access do not use the URL of the
>login, instead use the URL of the homepage and let it redirect you to the
>login.
The Login page is itself the Homepage of the site.


I tried to print the session ID and to find out if the session is new by
these statements

System.out.println("session ID "+session.getId());
System.out.println("session isNew "+session.isNew());

For the first time when I entered betform.jsp it gave me
session ID BC45E3915B4AC4E188E7E84D1AEC4E15
session isNew false

When I clicked on other links in the same betform.jsp, then it gave me this
info
session ID 9D0D8E423E875D6ED1D79770B2CB48CC
session isNew false

and I was logged out. I logged in again and seen the output. Its
session ID 9D0D8E423E875D6ED1D79770B2CB48CC
session isNew false

and when I clicked on other links in the same page it gave me the same
session ID.

session ID 9D0D8E423E875D6ED1D79770B2CB48CC
session isNew false

I am really getting frustated with this Tomcat. Any help would be great.

Thank you,
Uma






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



Re: jk2 osx 10.3

2004-04-22 Thread Mark Lowe
Thanks for the reply.

Thats the file that wouldn't build as the configure script cant find 
the relevant include file.

I tried various ways of tricking it like symlinking the headers to a 
place where it could be found to no avail.

basically it wont build with the --with-jni option which is snide but i 
can live with it for now.

Mark

On 22 Apr 2004, at 15:17, Daniel Gibby wrote:

When you compiled the connector the second time, it should have 
created a lib_jkjni.so or jkjni.so in the same directory as your 
mod_jk2.so.
You need to copy that file as well to a location to specify where it 
is in your jk2.properties.
That is why you are getting the message about no jkjni library in your 
path. You have to tell it where it is.

Daniel

Mark Lowe wrote:

Okay.. mod_jk2 works now, by not changing jk2.properties at all.

If anyone has the jni stuff working on osx i'd be interested in 
knowing how.. I've tried symlinking to the header files and such like 
to no avail. But this is by no means urgent as this is for our 
development server rather than live one that runs linux.

Mark

On 22 Apr 2004, at 10:38, Mark Lowe wrote:

Hello

I've been trying to move from jk to jk2 and experincing some 
problems.

I've successfully compiled jk2 and installed it from the cvs version.

#start compiling jk2
cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic login 
password: anoncvs
cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic checkout 
jakarta-tomcat-connectors

cd jakarta-tomcat-connectors/jk/native2
./configure --with-apxs2=/usr/sbin/apxs
make
sudo cp ../build/build/jk2/apache2/mod_jk2.so /usr/libexec/apache2
#end compiling jk2
Edited httpd.conf
#httpd.conf
LoadModule jk2_module libexec/apache2/mod_jk2.so
JkSet config:file /etc/apache2/workers2.properties

DocumentRoot /Library/WebServer/Documents
ServerName foo.mydomain.com

JkUriSet group ajp13:localhost:9007


JkUriSet group ajp13:localhost:9007


#end httpd.conf
created and edited workers2.properties

touch /etc/apache2/workers2.properties
vi /etc/apache2/workers2.properties
#Start workers2.properties
[logger.apache2]
level=DEBUG
[shm]
file=/private/var/log/apache2/jk2.shm
size=1048576
[channel.socket:localhost:9007]
port=9007
host=127.0.0.1
[ajp13:localhost:9007]
channel=channel.socket:localhost:9007
[uri:localhost/*.jsp]
group=ajp13:localhost:9007
[uri:localhost/*.do]
group=ajp13:localhost:9007
[uri:localhost/servlet/*]
group=ajp13:localhost:9007
#End workers2.properties
The idea being to forward all requests for /*.jsp and /*.do to 
tomcat.

When i tried changing jk2.properties i get
#Exception
APR not loaded, disabling jni components: java.io.IOException: 
java.lang.UnsatisfiedLinkError: no jkjni in java.library.path
#End exception

#start jk2.properties
handler.list=request,channelJni
#end jk2.properties
So I thought perhaps I need to configure and compile jk2 with jni

./configure --with-tomcat41=/Library/Tomcat \
 --with-apxs2=/usr/sbin/apxs \
--with-java-home=/Library/Java/Home \
--with-jni
I've tried various java_home's but to no avail..

Has anyone done this? Can anyone help?

Cheers Mark

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


Accessing Dll's

2004-04-22 Thread Annamalai Ramasamy
Hi.,
   I'm using Tomcat4.0.29 with J2SDK 1.4.2_03.
I have my native libraries(dll's) in winnt folder.
I'm loading the dll thru System.loadlibrary and accessing the methods.
I'm getting UnsatishfiedLinkError.
My class files are in my web-inf classes directory.
In forums i searcehed, and i tried out all possibility like
setting path and changing my classes to common/classes and all.
Please give me your suggestions...
Thanks.,
MALAI


-
  Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download 
Messenger Now

Re: Tomcat is stoping Urgent

2004-04-22 Thread Hans Wichman
Hi,
there are other drivers for access, look here 
http://servlet.java.sun.com/products/jdbc/drivers
Or simply convert your access db to something else eg mysql and use mysql 
drivers or a connectionpool.

grtz
Sorv
At 08:59 AM 4/22/2004 -0500, Kiran Patel wrote:
I am having this problem for one specific action in the application.  Is
there anything wrong with the code?
What are other solutions instead of ODBC connection for Access database?
How to do that?  Where I will find the document?
Please help.

Kiran
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 22, 2004 7:22 AM
Subject: Re: Tomcat is stoping Urgent
IMHO it is problem with jdbc-odbc bridge. However Access and HDBC-ODBC
aren't the best solution for a production system.
IMHO  they are worst.
  - Original Message -
  From: Kiran Patel
  To: [EMAIL PROTECTED]
  Sent: Wednesday, April 21, 2004 5:34 PM
  Subject: Tomcat is stoping Urgent
  Urgent!

  I am using Tomcat 4.1 for my application which is accessing data from =
  the Access database through the ODBC connection.  Everything was working =
  fine until today.  Suddenly when I tried to enter some records in the =
  data base through the application, Tomcat is stopped.  I got following =
  error in the error log.  Please help me.
  Kiran



  An unexpected exception has been detected in native code outside the VM.
  Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at =
  PC=3D0xC08FA3C
  Function=3DSQLFetch+0x16EF
  Library=3DC:\WINNT\system32\odbcjt32.dll
  Current Java thread:
   at sun.jdbc.odbc.JdbcOdbc.bindInParameterString(Native Method)
   at sun.jdbc.odbc.JdbcOdbc.SQLBindInParameterString(JdbcOdbc.java:972)
   at =
  sun.jdbc.odbc.JdbcOdbcPreparedStatement.setChar(JdbcOdbcPreparedStatement=
  .java:3106)
   at =
  sun.jdbc.odbc.JdbcOdbcPreparedStatement.setString(JdbcOdbcPreparedStateme=
  nt.java:764)
   at =
  org.apache.commons.dbcp.DelegatingPreparedStatement.setString(DelegatingP=
  reparedStatement.java:217)
   at beans.FeeFineBean.processGroupFees(FeeFineBean.java:4053)
   at beans.FeeFineBean.storeFeeFineData(FeeFineBean.java:1924)
   at =
  org.apache.jsp.fee_fine_new_jsp._jspService(fee_fine_new_jsp.java:409)
   at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at =
  org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.jav=
  a:204)
   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(Applicat=
  ionFilterChain.java:247)
   at =
  org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilte=
  rChain.java:193)
   at =
  org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve=
  .java:260)
   at =
  org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.in=
  vokeNext(StandardPipeline.java:643)
   at =
  org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:48=
  0)
   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.in=
  vokeNext(StandardPipeline.java:643)
   at =
  org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:48=
  0)
   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.in=
  vokeNext(StandardPipeline.java:643)
   at =
  org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVal=
  ve.java:170)
   at =
  org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.in=
  vokeNext(StandardPipeline.java:641)
   at =
  org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:=
  172)
   at =
  org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.in=
  vokeNext(StandardPipeline.java:641)
   at =
  org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:509)=
   at =
  org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.in=
  vokeNext(StandardPipeline.java:641)
   at =
  org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:48=
  0)
   at =
  org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at =
  org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.j=
  ava:174)
   at =
  org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.in=

Re: Accessing Dll's

2004-04-22 Thread Hans Wichman
try putting them in the lib/ext folder of your j2sdk1.4.2_03 folder.

grtz
Sorv
At 03:24 PM 4/22/2004 +0100, Annamalai Ramasamy wrote:
Hi.,
   I'm using Tomcat4.0.29 with J2SDK 1.4.2_03.
I have my native libraries(dll's) in winnt folder.
I'm loading the dll thru System.loadlibrary and accessing the methods.
I'm getting UnsatishfiedLinkError.
My class files are in my web-inf classes directory.
In forums i searcehed, and i tried out all possibility like
setting path and changing my classes to common/classes and all.
Please give me your suggestions...
Thanks.,
MALAI
-
  Yahoo! Messenger - Communicate instantly..."Ping" your friends today! 
Download Messenger Now


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


Re: Tomcat is stoping Urgent

2004-04-22 Thread Hans Wichman
ps also check you don't have strange names for queries, tables (no spaces 
or + signs in column names etc).

At 08:59 AM 4/22/2004 -0500, you wrote:
I am having this problem for one specific action in the application.  Is
there anything wrong with the code?
What are other solutions instead of ODBC connection for Access database?
How to do that?  Where I will find the document?
Please help.

Kiran
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 22, 2004 7:22 AM
Subject: Re: Tomcat is stoping Urgent
IMHO it is problem with jdbc-odbc bridge. However Access and HDBC-ODBC
aren't the best solution for a production system.
IMHO  they are worst.
  - Original Message -
  From: Kiran Patel
  To: [EMAIL PROTECTED]
  Sent: Wednesday, April 21, 2004 5:34 PM
  Subject: Tomcat is stoping Urgent
  Urgent!

  I am using Tomcat 4.1 for my application which is accessing data from =
  the Access database through the ODBC connection.  Everything was working =
  fine until today.  Suddenly when I tried to enter some records in the =
  data base through the application, Tomcat is stopped.  I got following =
  error in the error log.  Please help me.
  Kiran



  An unexpected exception has been detected in native code outside the VM.
  Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at =
  PC=3D0xC08FA3C
  Function=3DSQLFetch+0x16EF
  Library=3DC:\WINNT\system32\odbcjt32.dll
  Current Java thread:
   at sun.jdbc.odbc.JdbcOdbc.bindInParameterString(Native Method)
   at sun.jdbc.odbc.JdbcOdbc.SQLBindInParameterString(JdbcOdbc.java:972)
   at =
  sun.jdbc.odbc.JdbcOdbcPreparedStatement.setChar(JdbcOdbcPreparedStatement=
  .java:3106)
   at =
  sun.jdbc.odbc.JdbcOdbcPreparedStatement.setString(JdbcOdbcPreparedStateme=
  nt.java:764)
   at =
  org.apache.commons.dbcp.DelegatingPreparedStatement.setString(DelegatingP=
  reparedStatement.java:217)
   at beans.FeeFineBean.processGroupFees(FeeFineBean.java:4053)
   at beans.FeeFineBean.storeFeeFineData(FeeFineBean.java:1924)
   at =
  org.apache.jsp.fee_fine_new_jsp._jspService(fee_fine_new_jsp.java:409)
   at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at =
  org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.jav=
  a:204)
   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(Applicat=
  ionFilterChain.java:247)
   at =
  org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilte=
  rChain.java:193)
   at =
  org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve=
  .java:260)
   at =
  org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.in=
  vokeNext(StandardPipeline.java:643)
   at =
  org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:48=
  0)
   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.in=
  vokeNext(StandardPipeline.java:643)
   at =
  org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:48=
  0)
   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.in=
  vokeNext(StandardPipeline.java:643)
   at =
  org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVal=
  ve.java:170)
   at =
  org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.in=
  vokeNext(StandardPipeline.java:641)
   at =
  org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:=
  172)
   at =
  org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.in=
  vokeNext(StandardPipeline.java:641)
   at =
  org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:509)=
   at =
  org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.in=
  vokeNext(StandardPipeline.java:641)
   at =
  org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:48=
  0)
   at =
  org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at =
  org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.j=
  ava:174)
   at =
  org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.in=
  vokeNext(StandardPipeline.java:643)
   at =
  org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.j

Re: setting classpath when running as service on win2k

2004-04-22 Thread Mark Schmeets
Hi Vincent,
Normally it is specified in the command line when you install the service.
You can check a registry key -- 
HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Apache-Catalina/Parameters
(assuming your service is named Apache-Catalina). Under this key you 
should have a JVM Option Number X, which
specifies the -Djava.class.path setting.

Hope this helps,
Mark
Vincent Lévin wrote:

hello !

where do we specify the classpath when when we launch tomcat 5 as service ?

we tried to put the classpath in 'catalina.bat', in the tomcat configuration
program ("configure tomcat") but it seems that all this has no effect :/
and, an other problem:

isn't it possible to update jars and classes in shared\lib or common\lib
whithout reloading tomcat ?
thanks !

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


request.setRemoteUser(p)

2004-04-22 Thread Schehl, Micah

How can I programmatically set a user in the Tomcat container?  i.e.
request.setRemoteUser(p);  I know that doesn't exist, but that is
essentially what I need to do.

My scenario is that I want to send a 1024-bit key to a user.  That user
would send that key to a specific servlet.  The servlet would take the key
and lookup the user's information and programmatically log them into Tomcat.

On subsequent page requests, the request.getRemoteUser() would give me back
the user.

Thank you for any help,
Micah

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



Re: Is it Tomcat problem or my problem?

2004-04-22 Thread Parsons Technical Services
Uma,

At this point I am out of ideas. I have not worked with sessions and thus am
not strong in this area. I am sorry that I am unable to help further at this
point. Hopefully someone else on the list will pick up on something.

You may wish to look into the IO error that you had on shutdown as it may be
related.

Sorry,
Doug

- Original Message - 
From: <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, April 22, 2004 10:16 AM
Subject: Re: Is it Tomcat problem or my problem?


>
> Doug,
>
> >Does it act the same from other machines?
> YES
> >Does it act the same from other browsers(Modzilla, Netscape, etc)?
> YES
> >Were any updates applied to the machine? Is auto update enabled on
> windows?
> NO
>
> >Are the connections via http or https?
> HTTP
>
> >Also try one more thing, on the first access do not use the URL of the
> >login, instead use the URL of the homepage and let it redirect you to the
> >login.
> The Login page is itself the Homepage of the site.
>
>
> I tried to print the session ID and to find out if the session is new by
> these statements
>
> System.out.println("session ID "+session.getId());
> System.out.println("session isNew "+session.isNew());
>
> For the first time when I entered betform.jsp it gave me
> session ID BC45E3915B4AC4E188E7E84D1AEC4E15
> session isNew false
>
> When I clicked on other links in the same betform.jsp, then it gave me
this
> info
> session ID 9D0D8E423E875D6ED1D79770B2CB48CC
> session isNew false
>
> and I was logged out. I logged in again and seen the output. Its
> session ID 9D0D8E423E875D6ED1D79770B2CB48CC
> session isNew false
>
> and when I clicked on other links in the same page it gave me the same
> session ID.
>
> session ID 9D0D8E423E875D6ED1D79770B2CB48CC
> session isNew false
>
> I am really getting frustated with this Tomcat. Any help would be great.
>
> Thank you,
> Uma
>
>
>
>
>
>
> -
> 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]



serving static HTML pages from a servlet

2004-04-22 Thread Peter Guyatt
Hi There,

I would like to serve a static web page using Tomcat.

The problem I have is that a use must have been authencated before they can
view this page.

I have a servlet that takes care of this and then it should forward the user
to the static page. E.g. /WEB-INF/English/Welcome/Welcom.htm

However all I get is a 404 error, I am sure the path is ok.

Any suggestions

Thanks

Pete


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



Re: Tomcat is stoping Urgent

2004-04-22 Thread Mark Schmeets
Hi,
Do you have a backup copy of your .mdb file (from before when the 
problem occured) that you could roll back to? If everything was working, 
and just suddenly stopped, it sounds like a data corruption issue.

Mark

Hans Wichman wrote:

Hi,
there are other drivers for access, look here 
http://servlet.java.sun.com/products/jdbc/drivers
Or simply convert your access db to something else eg mysql and use 
mysql drivers or a connectionpool.

grtz
Sorv
At 08:59 AM 4/22/2004 -0500, Kiran Patel wrote:

I am having this problem for one specific action in the application.  Is
there anything wrong with the code?
What are other solutions instead of ODBC connection for Access database?
How to do that?  Where I will find the document?
Please help.

Kiran
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 22, 2004 7:22 AM
Subject: Re: Tomcat is stoping Urgent
IMHO it is problem with jdbc-odbc bridge. However Access and HDBC-ODBC
aren't the best solution for a production system.
IMHO  they are worst.
  - Original Message -
  From: Kiran Patel
  To: [EMAIL PROTECTED]
  Sent: Wednesday, April 21, 2004 5:34 PM
  Subject: Tomcat is stoping Urgent
  Urgent!

  I am using Tomcat 4.1 for my application which is accessing data 
from =
  the Access database through the ODBC connection.  Everything was 
working =
  fine until today.  Suddenly when I tried to enter some records in 
the =
  data base through the application, Tomcat is stopped.  I got 
following =
  error in the error log.  Please help me.

  Kiran



  An unexpected exception has been detected in native code outside 
the VM.
  Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at =
  PC=3D0xC08FA3C
  Function=3DSQLFetch+0x16EF
  Library=3DC:\WINNT\system32\odbcjt32.dll

  Current Java thread:
   at sun.jdbc.odbc.JdbcOdbc.bindInParameterString(Native Method)
   at sun.jdbc.odbc.JdbcOdbc.SQLBindInParameterString(JdbcOdbc.java:972)
   at =
  
sun.jdbc.odbc.JdbcOdbcPreparedStatement.setChar(JdbcOdbcPreparedStatement= 

  .java:3106)
   at =
  
sun.jdbc.odbc.JdbcOdbcPreparedStatement.setString(JdbcOdbcPreparedStateme= 

  nt.java:764)
   at =
  
org.apache.commons.dbcp.DelegatingPreparedStatement.setString(DelegatingP= 

  reparedStatement.java:217)
   at beans.FeeFineBean.processGroupFees(FeeFineBean.java:4053)
   at beans.FeeFineBean.storeFeeFineData(FeeFineBean.java:1924)
   at =
  org.apache.jsp.fee_fine_new_jsp._jspService(fee_fine_new_jsp.java:409)
   at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at =
  
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.jav= 

  a:204)
   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(Applicat= 

  ionFilterChain.java:247)
   at =
  
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilte= 

  rChain.java:193)
   at =
  
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve= 

  .java:260)
   at =
  
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.in= 

  vokeNext(StandardPipeline.java:643)
   at =
  
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:48= 

  0)
   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.in= 

  vokeNext(StandardPipeline.java:643)
   at =
  
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:48= 

  0)
   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.in= 

  vokeNext(StandardPipeline.java:643)
   at =
  
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVal= 

  ve.java:170)
   at =
  
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.in= 

  vokeNext(StandardPipeline.java:641)
   at =
  
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:= 

  172)
   at =
  
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.in= 

  vokeNext(StandardPipeline.java:641)
   at =
  
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:509)= 

   at =
  
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.in= 

  vokeNext(StandardPipeline.java:641)
   at =
  
org.apache.catalina.core.St

Re: Accessing Dll's

2004-04-22 Thread Annamalai Ramasamy
Hi.,
   Again Same Error..
Actually after the System.loadlibrary..i can able to see my system.out.println values.
Then while trying to call my method i'm getting UnsatishfiedLinkError.
Thanks.,
MALAI

Hans Wichman <[EMAIL PROTECTED]> wrote:
try putting them in the lib/ext folder of your j2sdk1.4.2_03 folder.

grtz
Sorv

At 03:24 PM 4/22/2004 +0100, Annamalai Ramasamy wrote:
>Hi.,
> I'm using Tomcat4.0.29 with J2SDK 1.4.2_03.
>I have my native libraries(dll's) in winnt folder.
>I'm loading the dll thru System.loadlibrary and accessing the methods.
>I'm getting UnsatishfiedLinkError.
>My class files are in my web-inf classes directory.
>In forums i searcehed, and i tried out all possibility like
>setting path and changing my classes to common/classes and all.
>Please give me your suggestions...
>Thanks.,
>MALAI
>
>
>-
> Yahoo! Messenger - Communicate instantly..."Ping" your friends today! 
> Download Messenger Now


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


-
  Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download 
Messenger Now

RE: Accessing Dll's

2004-04-22 Thread Peter Guyatt
Hi There,

Put you DLL's in the /winnt/system32 directory.

Thanks

Pete

-Original Message-
From: Annamalai Ramasamy [mailto:[EMAIL PROTECTED]
Sent: 22 April 2004 15:44
To: Tomcat Users List
Subject: Re: Accessing Dll's


Hi.,
   Again Same Error..
Actually after the System.loadlibrary..i can able to see my
system.out.println values.
Then while trying to call my method i'm getting UnsatishfiedLinkError.
Thanks.,
MALAI

Hans Wichman <[EMAIL PROTECTED]> wrote:
try putting them in the lib/ext folder of your j2sdk1.4.2_03 folder.

grtz
Sorv

At 03:24 PM 4/22/2004 +0100, Annamalai Ramasamy wrote:
>Hi.,
> I'm using Tomcat4.0.29 with J2SDK 1.4.2_03.
>I have my native libraries(dll's) in winnt folder.
>I'm loading the dll thru System.loadlibrary and accessing the methods.
>I'm getting UnsatishfiedLinkError.
>My class files are in my web-inf classes directory.
>In forums i searcehed, and i tried out all possibility like
>setting path and changing my classes to common/classes and all.
>Please give me your suggestions...
>Thanks.,
>MALAI
>
>
>-
> Yahoo! Messenger - Communicate instantly..."Ping" your friends today!
> Download Messenger Now


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


-
  Yahoo! Messenger - Communicate instantly..."Ping" your friends today!
Download Messenger Now


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



Re: Accessing Dll's

2004-04-22 Thread Hans Wichman
sorry, i meant lib\bin\ instead of lib\ext\

grtz
Sorv
At 03:43 PM 4/22/2004 +0100, Annamalai Ramasamy wrote:
Hi.,
   Again Same Error..
Actually after the System.loadlibrary..i can able to see my 
system.out.println values.
Then while trying to call my method i'm getting UnsatishfiedLinkError.
Thanks.,
MALAI

Hans Wichman <[EMAIL PROTECTED]> wrote:
try putting them in the lib/ext folder of your j2sdk1.4.2_03 folder.
grtz
Sorv
At 03:24 PM 4/22/2004 +0100, Annamalai Ramasamy wrote:
>Hi.,
> I'm using Tomcat4.0.29 with J2SDK 1.4.2_03.
>I have my native libraries(dll's) in winnt folder.
>I'm loading the dll thru System.loadlibrary and accessing the methods.
>I'm getting UnsatishfiedLinkError.
>My class files are in my web-inf classes directory.
>In forums i searcehed, and i tried out all possibility like
>setting path and changing my classes to common/classes and all.
>Please give me your suggestions...
>Thanks.,
>MALAI
>
>
>-
> Yahoo! Messenger - Communicate instantly..."Ping" your friends today!
> Download Messenger Now
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
  Yahoo! Messenger - Communicate instantly..."Ping" your friends today! 
Download Messenger Now


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


Cannot use JK2 with Tomcat5 and IIS 5

2004-04-22 Thread Moran Ben-David
Having an awfull time climbing the tomcat/iis/jk2 learning curve..

Can anyone explain to me why my worker's file gives me the following error:

Error: [jk_worker_ajp13.c (871)]: ajp13.init(): No channel
localhost:8009

Workers2.properts:

[logger.file:0]
level=INFO
file=E:/Programs/Tomcat5.0/logs/iis_jk2.log

[shm:]
info=Shared memory file. Required for multiprocess servers
file=E:\Programs\Tomcat5.0\work\jk2.shm
size=100

# from tutorial #1
#[channel.socket:localhost:8009]
#info=Ajp13 worker, connects to tomcat instance using AJP 1.3 protocol
#tomcatId=localhost:8009

# from tutorial #2
[ajp13:localhost:8009]
info=Ajp13 worker, connects to tomcat instance using AJP 1.3 protocol
channel=channel.socket:localhost:8009

[uri:/jsp-examples/*]
info=JSP examples, map requests for all JSP pages to Tomcat.
context=/jsp-examples

[uri:/servlets-examples/*]
info=Servlet examples, map requests for all servlets to Tomcat.
context=/servlets-examples

Thanks,
Moran Ben-David


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



Re: Accessing Dll's

2004-04-22 Thread Annamalai Ramasamy
Hi.,
Again same error.
I did put the dll to /jre/bin and winnt/system32.
Any other ideas please...
Thanks.,
MALAI

Hans Wichman <[EMAIL PROTECTED]> wrote:
sorry, i meant lib\bin\ instead of lib\ext\

grtz
Sorv

At 03:43 PM 4/22/2004 +0100, Annamalai Ramasamy wrote:
>Hi.,
> Again Same Error..
>Actually after the System.loadlibrary..i can able to see my 
>system.out.println values.
>Then while trying to call my method i'm getting UnsatishfiedLinkError.
>Thanks.,
>MALAI
>
>Hans Wichman wrote:
>try putting them in the lib/ext folder of your j2sdk1.4.2_03 folder.
>
>grtz
>Sorv
>
>At 03:24 PM 4/22/2004 +0100, Annamalai Ramasamy wrote:
> >Hi.,
> > I'm using Tomcat4.0.29 with J2SDK 1.4.2_03.
> >I have my native libraries(dll's) in winnt folder.
> >I'm loading the dll thru System.loadlibrary and accessing the methods.
> >I'm getting UnsatishfiedLinkError.
> >My class files are in my web-inf classes directory.
> >In forums i searcehed, and i tried out all possibility like
> >setting path and changing my classes to common/classes and all.
> >Please give me your suggestions...
> >Thanks.,
> >MALAI
> >
> >
> >-
> > Yahoo! Messenger - Communicate instantly..."Ping" your friends today!
> > Download Messenger Now
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>-
> Yahoo! Messenger - Communicate instantly..."Ping" your friends today! 
> Download Messenger Now


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


-
  Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download 
Messenger Now

RE: Cannot use JK2 with Tomcat5 and IIS 5

2004-04-22 Thread Allistair Crossley
the following is my workers2.properties for Tomcat 5 / IIS 5 / JK2. You seem to have 
commented out the channel socket to 8009.

[shm]
file=d:\Tomcat 5.0.18\work\jk2.shm
size=1048576

[channel.socket:localhost:8009]
info=Ajp13 worker, connects to tomcat instance using AJP 1.3 protocol
tomcatId=localhost:8009

[uri:/*.do]
info=do
context=/

[uri:/*.jsp]
info=jsp
context=/

[uri:/tomcat-docs/*]
info=docs
context=/tomcat-docs

[uri:/jsp-examples/*]
info=JSP examples, map requests for all JSP pages to Tomcat.
context=/jsp-examples

[uri:/servlets-examples/*]
info=Servlet examples, map requests for all servlets to Tomcat.
context=/servlets-examples

-Original Message-
From: Moran Ben-David [mailto:[EMAIL PROTECTED]
Sent: 22 April 2004 16:03
To: 'Tomcat Users List'
Subject: Cannot use JK2 with Tomcat5 and IIS 5


Having an awfull time climbing the tomcat/iis/jk2 learning curve..

Can anyone explain to me why my worker's file gives me the following error:

Error: [jk_worker_ajp13.c (871)]: ajp13.init(): No channel
localhost:8009

Workers2.properts:

[logger.file:0]
level=INFO
file=E:/Programs/Tomcat5.0/logs/iis_jk2.log

[shm:]
info=Shared memory file. Required for multiprocess servers
file=E:\Programs\Tomcat5.0\work\jk2.shm
size=100

# from tutorial #1
#[channel.socket:localhost:8009]
#info=Ajp13 worker, connects to tomcat instance using AJP 1.3 protocol
#tomcatId=localhost:8009

# from tutorial #2
[ajp13:localhost:8009]
info=Ajp13 worker, connects to tomcat instance using AJP 1.3 protocol
channel=channel.socket:localhost:8009

[uri:/jsp-examples/*]
info=JSP examples, map requests for all JSP pages to Tomcat.
context=/jsp-examples

[uri:/servlets-examples/*]
info=Servlet examples, map requests for all servlets to Tomcat.
context=/servlets-examples

Thanks,
Moran Ben-David


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



 
---
QAS Ltd.
Developers of QuickAddress Software
http://www.qas.com";>www.qas.com
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---



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



Re: serving static HTML pages from a servlet

2004-04-22 Thread Parsons Technical Services
Pete,

Read the spec. Files under WEB-INF cannot be served directly by Tomcat.

You need a security constraint on a folder under your doc root.
See the code in the manager for some ideas.


Or have your servlet stream the file back to the client, but this is not
recommended as it can cause security issues.
Or I think you can also use a filter, but I'm not up on filters.

Doug
www.parsonstechnical.com


- Original Message - 
From: "Peter Guyatt" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 22, 2004 10:41 AM
Subject: serving static HTML pages from a servlet


> Hi There,
>
> I would like to serve a static web page using Tomcat.
>
> The problem I have is that a use must have been authencated before they
can
> view this page.
>
> I have a servlet that takes care of this and then it should forward the
user
> to the static page. E.g. /WEB-INF/English/Welcome/Welcom.htm
>
> However all I get is a 404 error, I am sure the path is ok.
>
> Any suggestions
>
> Thanks
>
> Pete
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



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



RE: Cannot use JK2 with Tomcat5 and IIS 5

2004-04-22 Thread Moran Ben-David
Worked.. (I commented out the channel line probably in trying to fix a
different error previously)..

Thanks Allistair!!  Your help was invaluable as frustration was certainly
eroding my focus.

moran

-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 22, 2004 11:01 AM
To: Tomcat Users List
Subject: RE: Cannot use JK2 with Tomcat5 and IIS 5

the following is my workers2.properties for Tomcat 5 / IIS 5 / JK2. You seem
to have commented out the channel socket to 8009.

[shm]
file=d:\Tomcat 5.0.18\work\jk2.shm
size=1048576

[channel.socket:localhost:8009]
info=Ajp13 worker, connects to tomcat instance using AJP 1.3 protocol
tomcatId=localhost:8009

[uri:/*.do]
info=do
context=/

[uri:/*.jsp]
info=jsp
context=/

[uri:/tomcat-docs/*]
info=docs
context=/tomcat-docs

[uri:/jsp-examples/*]
info=JSP examples, map requests for all JSP pages to Tomcat.
context=/jsp-examples

[uri:/servlets-examples/*]
info=Servlet examples, map requests for all servlets to Tomcat.
context=/servlets-examples

-Original Message-
From: Moran Ben-David [mailto:[EMAIL PROTECTED]
Sent: 22 April 2004 16:03
To: 'Tomcat Users List'
Subject: Cannot use JK2 with Tomcat5 and IIS 5


Having an awfull time climbing the tomcat/iis/jk2 learning curve..

Can anyone explain to me why my worker's file gives me the following error:

Error: [jk_worker_ajp13.c (871)]: ajp13.init(): No channel
localhost:8009

Workers2.properts:

[logger.file:0]
level=INFO
file=E:/Programs/Tomcat5.0/logs/iis_jk2.log

[shm:]
info=Shared memory file. Required for multiprocess servers
file=E:\Programs\Tomcat5.0\work\jk2.shm
size=100

# from tutorial #1
#[channel.socket:localhost:8009]
#info=Ajp13 worker, connects to tomcat instance using AJP 1.3 protocol
#tomcatId=localhost:8009

# from tutorial #2
[ajp13:localhost:8009]
info=Ajp13 worker, connects to tomcat instance using AJP 1.3 protocol
channel=channel.socket:localhost:8009

[uri:/jsp-examples/*]
info=JSP examples, map requests for all JSP pages to Tomcat.
context=/jsp-examples

[uri:/servlets-examples/*]
info=Servlet examples, map requests for all servlets to Tomcat.
context=/servlets-examples

Thanks,
Moran Ben-David


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



 
---
QAS Ltd.
Developers of QuickAddress Software
http://www.qas.com";>www.qas.com
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---



-
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: Accessing Dll's

2004-04-22 Thread Mark Schmeets
Hi,
Is it possible that this dll is being loaded somewhere else in your 
instance?
My experience with this error came from trying to use the Oracle native 
JDBC drivers. It usually came down to one of three issues, first that 
the dll couldn't be "found", second that another web-app had already 
loaded it, third it was a dll versioning problem.
Hope it helps.

Mark

Annamalai Ramasamy wrote:

Hi.,
Again same error.
I did put the dll to /jre/bin and winnt/system32.
Any other ideas please...
Thanks.,
MALAI
Hans Wichman <[EMAIL PROTECTED]> wrote:
sorry, i meant lib\bin\ instead of lib\ext\
grtz
Sorv
At 03:43 PM 4/22/2004 +0100, Annamalai Ramasamy wrote:
 

Hi.,
Again Same Error..
Actually after the System.loadlibrary..i can able to see my 
system.out.println values.
Then while trying to call my method i'm getting UnsatishfiedLinkError.
Thanks.,
MALAI

Hans Wichman wrote:
try putting them in the lib/ext folder of your j2sdk1.4.2_03 folder.
grtz
Sorv
At 03:24 PM 4/22/2004 +0100, Annamalai Ramasamy wrote:
   

Hi.,
I'm using Tomcat4.0.29 with J2SDK 1.4.2_03.
I have my native libraries(dll's) in winnt folder.
I'm loading the dll thru System.loadlibrary and accessing the methods.
I'm getting UnsatishfiedLinkError.
My class files are in my web-inf classes directory.
In forums i searcehed, and i tried out all possibility like
setting path and changing my classes to common/classes and all.
Please give me your suggestions...
Thanks.,
MALAI
-
Yahoo! Messenger - Communicate instantly..."Ping" your friends today!
Download Messenger Now
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
Yahoo! Messenger - Communicate instantly..."Ping" your friends today! 
Download Messenger Now
   



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
		
-
 Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now
 



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


RE: Accessing Dll's

2004-04-22 Thread Peter Guyatt
Hi There,

Can I see you native code and your class that declares you native methods.

Thanks

Pete

-Original Message-
From: Mark Schmeets [mailto:[EMAIL PROTECTED]
Sent: 22 April 2004 16:13
To: Tomcat Users List
Subject: Re: Accessing Dll's


Hi,
Is it possible that this dll is being loaded somewhere else in your
instance?
My experience with this error came from trying to use the Oracle native
JDBC drivers. It usually came down to one of three issues, first that
the dll couldn't be "found", second that another web-app had already
loaded it, third it was a dll versioning problem.
Hope it helps.

Mark

Annamalai Ramasamy wrote:

>Hi.,
>Again same error.
>I did put the dll to /jre/bin and winnt/system32.
>Any other ideas please...
>Thanks.,
>MALAI
>
>Hans Wichman <[EMAIL PROTECTED]> wrote:
>sorry, i meant lib\bin\ instead of lib\ext\
>
>grtz
>Sorv
>
>At 03:43 PM 4/22/2004 +0100, Annamalai Ramasamy wrote:
>
>
>>Hi.,
>>Again Same Error..
>>Actually after the System.loadlibrary..i can able to see my
>>system.out.println values.
>>Then while trying to call my method i'm getting UnsatishfiedLinkError.
>>Thanks.,
>>MALAI
>>
>>Hans Wichman wrote:
>>try putting them in the lib/ext folder of your j2sdk1.4.2_03 folder.
>>
>>grtz
>>Sorv
>>
>>At 03:24 PM 4/22/2004 +0100, Annamalai Ramasamy wrote:
>>
>>
>>>Hi.,
>>>I'm using Tomcat4.0.29 with J2SDK 1.4.2_03.
>>>I have my native libraries(dll's) in winnt folder.
>>>I'm loading the dll thru System.loadlibrary and accessing the methods.
>>>I'm getting UnsatishfiedLinkError.
>>>My class files are in my web-inf classes directory.
>>>In forums i searcehed, and i tried out all possibility like
>>>setting path and changing my classes to common/classes and all.
>>>Please give me your suggestions...
>>>Thanks.,
>>>MALAI
>>>
>>>
>>>-
>>>Yahoo! Messenger - Communicate instantly..."Ping" your friends today!
>>>Download Messenger Now
>>>
>>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>-
>>Yahoo! Messenger - Communicate instantly..."Ping" your friends today!
>>Download Messenger Now
>>
>>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>-
>  Yahoo! Messenger - Communicate instantly..."Ping" your friends today!
Download Messenger Now
>
>


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


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



RE: Cannot use JK2 with Tomcat5 and IIS 5

2004-04-22 Thread Allistair Crossley
i spent years trying to get my workers file going so i understand ;)

-Original Message-
From: Moran Ben-David [mailto:[EMAIL PROTECTED]
Sent: 22 April 2004 16:17
To: 'Tomcat Users List'
Subject: RE: Cannot use JK2 with Tomcat5 and IIS 5


Worked.. (I commented out the channel line probably in trying to fix a
different error previously)..

Thanks Allistair!!  Your help was invaluable as frustration was certainly
eroding my focus.

moran

-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 22, 2004 11:01 AM
To: Tomcat Users List
Subject: RE: Cannot use JK2 with Tomcat5 and IIS 5

the following is my workers2.properties for Tomcat 5 / IIS 5 / JK2. You seem
to have commented out the channel socket to 8009.

[shm]
file=d:\Tomcat 5.0.18\work\jk2.shm
size=1048576

[channel.socket:localhost:8009]
info=Ajp13 worker, connects to tomcat instance using AJP 1.3 protocol
tomcatId=localhost:8009

[uri:/*.do]
info=do
context=/

[uri:/*.jsp]
info=jsp
context=/

[uri:/tomcat-docs/*]
info=docs
context=/tomcat-docs

[uri:/jsp-examples/*]
info=JSP examples, map requests for all JSP pages to Tomcat.
context=/jsp-examples

[uri:/servlets-examples/*]
info=Servlet examples, map requests for all servlets to Tomcat.
context=/servlets-examples

-Original Message-
From: Moran Ben-David [mailto:[EMAIL PROTECTED]
Sent: 22 April 2004 16:03
To: 'Tomcat Users List'
Subject: Cannot use JK2 with Tomcat5 and IIS 5


Having an awfull time climbing the tomcat/iis/jk2 learning curve..

Can anyone explain to me why my worker's file gives me the following error:

Error: [jk_worker_ajp13.c (871)]: ajp13.init(): No channel
localhost:8009

Workers2.properts:

[logger.file:0]
level=INFO
file=E:/Programs/Tomcat5.0/logs/iis_jk2.log

[shm:]
info=Shared memory file. Required for multiprocess servers
file=E:\Programs\Tomcat5.0\work\jk2.shm
size=100

# from tutorial #1
#[channel.socket:localhost:8009]
#info=Ajp13 worker, connects to tomcat instance using AJP 1.3 protocol
#tomcatId=localhost:8009

# from tutorial #2
[ajp13:localhost:8009]
info=Ajp13 worker, connects to tomcat instance using AJP 1.3 protocol
channel=channel.socket:localhost:8009

[uri:/jsp-examples/*]
info=JSP examples, map requests for all JSP pages to Tomcat.
context=/jsp-examples

[uri:/servlets-examples/*]
info=Servlet examples, map requests for all servlets to Tomcat.
context=/servlets-examples

Thanks,
Moran Ben-David


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



 
---
QAS Ltd.
Developers of QuickAddress Software
http://www.qas.com";>www.qas.com
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---



-
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: Accessing Dll's

2004-04-22 Thread Cox, Charlie
It needs to be on the windows path(which includes system32). Did you restart
tomcat after moving them? 

> -Original Message-
> From: Annamalai Ramasamy [mailto:[EMAIL PROTECTED]
> Sent: Thursday, April 22, 2004 11:01 AM
> To: Tomcat Users List
> Subject: Re: Accessing Dll's
> 
> Hi.,
> Again same error.
> I did put the dll to /jre/bin and winnt/system32.
> Any other ideas please...
> Thanks.,
> MALAI
> 
> Hans Wichman <[EMAIL PROTECTED]> wrote:
> sorry, i meant lib\bin\ instead of lib\ext\
> 
> grtz
> Sorv
> 
> At 03:43 PM 4/22/2004 +0100, Annamalai Ramasamy wrote:
> >Hi.,
> > Again Same Error..
> >Actually after the System.loadlibrary..i can able to see my
> >system.out.println values.
> >Then while trying to call my method i'm getting UnsatishfiedLinkError.
> >Thanks.,
> >MALAI
> >
> >Hans Wichman wrote:
> >try putting them in the lib/ext folder of your j2sdk1.4.2_03 folder.
> >
> >grtz
> >Sorv
> >
> >At 03:24 PM 4/22/2004 +0100, Annamalai Ramasamy wrote:
> > >Hi.,
> > > I'm using Tomcat4.0.29 with J2SDK 1.4.2_03.
> > >I have my native libraries(dll's) in winnt folder.
> > >I'm loading the dll thru System.loadlibrary and accessing the methods.
> > >I'm getting UnsatishfiedLinkError.
> > >My class files are in my web-inf classes directory.
> > >In forums i searcehed, and i tried out all possibility like
> > >setting path and changing my classes to common/classes and all.
> > >Please give me your suggestions...
> > >Thanks.,
> > >MALAI
> > >
> > >
> > >-
> > > Yahoo! Messenger - Communicate instantly..."Ping" your friends today!
> > > Download Messenger Now
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >-
> > Yahoo! Messenger - Communicate instantly..."Ping" your friends today!
> > Download Messenger Now
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
>   Yahoo! Messenger - Communicate instantly..."Ping" your friends today!
> Download Messenger Now


RE: Accessing Dll's

2004-04-22 Thread Annamalai Ramasamy
Hi.,
Check my below java code.
I do not have native source codes.
 
I'm sure there is no version conflicts.
But i have copied the dll in more than one places..like winnt, system32 and jre/bin 
like that.
 
any idea?
 
public class AddressValidate {

 private Address inad;
 private Address outad;
 private String usercompany;

 public StringBuffer csReturnErrorMsg;
 public StringBuffer csReturnStreet;
 public StringBuffer csReturnCityName;
 public StringBuffer csReturnCounty;
 public StringBuffer csReturnState;
 public StringBuffer csReturnZip;
 //To load DLL AvsWebInrterface  
 static{
  try{
   System.loadLibrary("AvsWebInterface");
System.out.println("DLL Loaded");  
  }catch(Exception e){
   System.err.println("Could not load DLL \"AvsWebInterface \" : "+e.toString());
   System.out.println("Could not load DLL \"AvsWebInterface \" : "+e.toString());
   
  }catch(Throwable e){
   System.err.println("Could not load DLL \"AvsWebInterface:\" "+e.toString());
   System.out.println("Could not load DLL \"AvsWebInterface:\" "+e.toString());
  }
  } 
 //end of static
//---
 
 //Native method implemented in cpp 
 public native String JAVAAVSValidate (String company, 
String street1, 
String city, 
String state, 
String zip, 
StringBuffer csReturnStreet, 
StringBuffer csReturnCityName, 
StringBuffer csReturnCounty, 
StringBuffer csReturnState, 
StringBuffer csReturnZip, 
StringBuffer csReturnErrorMsg) ;
//---
 public AddressValidate(){
  inad=null;
  outad=null;
  usercompany=new String("");
  
  }
//---
 public String validate (Address inad,Address outad){
  csReturnStreet=new StringBuffer(""); 
  csReturnCityName=new StringBuffer("");  
  csReturnCounty=new StringBuffer("");  
  csReturnState=new StringBuffer("");  
  csReturnZip=new StringBuffer("");  
  csReturnErrorMsg=new StringBuffer(""); 
  this.inad=inad;
  this.outad=outad;
  
   
  try{
//   System.out.println("Street1 :"+inad.Street1);
//   System.out.println("city :"+inad.City);
//   System.out.println("state :"+inad.State);
//   System.out.println("postalcode"+inad.PostalCode);

   JAVAAVSValidate (usercompany,
inad.Street1,
inad.City,
inad.State,
inad.PostalCode, 
csReturnStreet, 
csReturnCityName, 
csReturnCounty, 
csReturnState, 
csReturnZip, 
csReturnErrorMsg);
   outad.Street1 = csReturnStreet.toString(); 
   outad.City = csReturnCityName.toString(); 
   outad.County = csReturnCounty.toString(); 
   outad.State = csReturnState.toString(); 
   outad.PostalCode = csReturnZip.toString(); 
//   System.out.println("Street1 :"+outad.Street1);
//   System.out.println("city :"+outad.City);
//   System.out.println("state :"+outad.State);
//   System.out.println("postalcode"+outad.PostalCode);

  }catch(Exception e){
   System.out.println("Error in Validating Address " + e.toString());
  }
  
  return (csReturnErrorMsg.toString());
 }
  

}

Peter Guyatt <[EMAIL PROTECTED]> wrote:
Hi There,

Can I see you native code and your class that declares you native methods.

Thanks

Pete

-Original Message-
From: Mark Schmeets [mailto:[EMAIL PROTECTED]
Sent: 22 April 2004 16:13
To: Tomcat Users List
Subject: Re: Accessing Dll's


Hi,
Is it possible that this dll is being loaded somewhere else in your
instance?
My experience with this error came from trying to use the Oracle native
JDBC drivers. It usually came down to one of three issues, first that
the dll couldn't be "found", second that another web-app had already
loaded it, third it was a dll versioning problem.
Hope it helps.

Mark

Annamalai Ramasamy wrote:

>Hi.,
>Again same error.
>I did put the dll to /jre/bin and winnt/system32.
>Any other ideas please...
>Thanks.,
>MALAI
>
>Hans Wichman wrote:
>sorry, i meant lib\bin\ instead of lib\ext\
>
>grtz
>Sorv
>
>At 03:43 PM 4/22/2004 +0100, Annamalai Ramasamy wrote:
>
>
>>Hi.,
>>Again Same Error..
>>Actually after the System.loadlibrary..i can able to see my
>>system.out.println values.
>>Then while trying to call my method i'm getting UnsatishfiedLinkError.
>>Thanks.,
>>MALAI
>>
>>Hans Wichman wrote:
>>try putting them in the lib/ext folder of your j2sdk1.4.2_03 folder.
>>
>>grtz
>>Sorv
>>
>>At 03:24 PM 4/22/2004 +0100, Annamalai Ramasamy wrote:
>>
>>
>>>Hi.,
>>>I'm using Tomcat4.0.29 with J2SDK 1.4.2_03.
>>>I have my native libraries(dll's) in winnt folder.
>>>I'm loading the dll thru System.loadlibrary and accessing the methods.
>>>I'm getting UnsatishfiedLinkError.
>>>My class files are in my web-inf classes 

RE: Cannot use JK2 with Tomcat5 and IIS 5

2004-04-22 Thread Moran Ben-David
I hate to get on my high horse.. but 


I think the tomcat project (as brilliant as it is) could benefit from some
Larry Wallism:

A 'goto' in Perl falls into the category of hard things that should be
possible, not easy things that should be easy

I found that doing the simple thing like executing a jsp page was hard.. and
perhaps load balancing 5 different tomcat instances on 3 machines using
different connectors for each was proportionally easy.  Something's wrong in
that equation.  That is, should easy things be easy and hard things
possible?


Not sure if this is the right place for this type of message.. sorry to
polute your mailboxes if it isn't.

Thanks,
Moran

-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 22, 2004 11:21 AM
To: Tomcat Users List
Subject: RE: Cannot use JK2 with Tomcat5 and IIS 5

i spent years trying to get my workers file going so i understand ;)

-Original Message-
From: Moran Ben-David [mailto:[EMAIL PROTECTED]
Sent: 22 April 2004 16:17
To: 'Tomcat Users List'
Subject: RE: Cannot use JK2 with Tomcat5 and IIS 5


Worked.. (I commented out the channel line probably in trying to fix a
different error previously)..

Thanks Allistair!!  Your help was invaluable as frustration was certainly
eroding my focus.

moran

-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 22, 2004 11:01 AM
To: Tomcat Users List
Subject: RE: Cannot use JK2 with Tomcat5 and IIS 5

the following is my workers2.properties for Tomcat 5 / IIS 5 / JK2. You seem
to have commented out the channel socket to 8009.

[shm]
file=d:\Tomcat 5.0.18\work\jk2.shm
size=1048576

[channel.socket:localhost:8009]
info=Ajp13 worker, connects to tomcat instance using AJP 1.3 protocol
tomcatId=localhost:8009

[uri:/*.do]
info=do
context=/

[uri:/*.jsp]
info=jsp
context=/

[uri:/tomcat-docs/*]
info=docs
context=/tomcat-docs

[uri:/jsp-examples/*]
info=JSP examples, map requests for all JSP pages to Tomcat.
context=/jsp-examples

[uri:/servlets-examples/*]
info=Servlet examples, map requests for all servlets to Tomcat.
context=/servlets-examples

-Original Message-
From: Moran Ben-David [mailto:[EMAIL PROTECTED]
Sent: 22 April 2004 16:03
To: 'Tomcat Users List'
Subject: Cannot use JK2 with Tomcat5 and IIS 5


Having an awfull time climbing the tomcat/iis/jk2 learning curve..

Can anyone explain to me why my worker's file gives me the following error:

Error: [jk_worker_ajp13.c (871)]: ajp13.init(): No channel
localhost:8009

Workers2.properts:

[logger.file:0]
level=INFO
file=E:/Programs/Tomcat5.0/logs/iis_jk2.log

[shm:]
info=Shared memory file. Required for multiprocess servers
file=E:\Programs\Tomcat5.0\work\jk2.shm
size=100

# from tutorial #1
#[channel.socket:localhost:8009]
#info=Ajp13 worker, connects to tomcat instance using AJP 1.3 protocol
#tomcatId=localhost:8009

# from tutorial #2
[ajp13:localhost:8009]
info=Ajp13 worker, connects to tomcat instance using AJP 1.3 protocol
channel=channel.socket:localhost:8009

[uri:/jsp-examples/*]
info=JSP examples, map requests for all JSP pages to Tomcat.
context=/jsp-examples

[uri:/servlets-examples/*]
info=Servlet examples, map requests for all servlets to Tomcat.
context=/servlets-examples

Thanks,
Moran Ben-David


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



 
---
QAS Ltd.
Developers of QuickAddress Software
http://www.qas.com";>www.qas.com
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---



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



Verification of Sun JRE1.4.2

2004-04-22 Thread Asif Chowdhary

Is there a specific file which I can check to verify if the client has 
JRE 1.4.2 installed on its machine?

Thanks



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



RE: Accessing Dll's

2004-04-22 Thread Ryan Lissack
Hi,

Execute the following :

System.out.println(System.getProperty("java.library.path"));

See what directories are there.  If the one(s) with your DLL(s) are not
listed you can add them as a startup param to the VM using the -D option
(java -Djava.library.path=.)

HTH

Regards,
Ryan.

-Original Message-
From: Annamalai Ramasamy [mailto:[EMAIL PROTECTED]
Sent: 22 April 2004 16:33
To: Tomcat Users List
Subject: RE: Accessing Dll's


Hi.,
Check my below java code.
I do not have native source codes.
 
I'm sure there is no version conflicts.
But i have copied the dll in more than one places..like winnt, system32 and
jre/bin like that.
 
any idea?
 
public class AddressValidate {

 private Address inad;
 private Address outad;
 private String usercompany;

 public StringBuffer csReturnErrorMsg;
 public StringBuffer csReturnStreet;
 public StringBuffer csReturnCityName;
 public StringBuffer csReturnCounty;
 public StringBuffer csReturnState;
 public StringBuffer csReturnZip;
 //To load DLL AvsWebInrterface  
 static{
  try{
   System.loadLibrary("AvsWebInterface");
System.out.println("DLL Loaded");  
  }catch(Exception e){
   System.err.println("Could not load DLL \"AvsWebInterface \" :
"+e.toString());
   System.out.println("Could not load DLL \"AvsWebInterface \" :
"+e.toString());
   
  }catch(Throwable e){
   System.err.println("Could not load DLL \"AvsWebInterface:\"
"+e.toString());
   System.out.println("Could not load DLL \"AvsWebInterface:\"
"+e.toString());
  }
  } 
 //end of static
//--
-
 
 //Native method implemented in cpp 
 public native String JAVAAVSValidate (String company, 
String street1, 
String city, 
String state, 
String zip, 
StringBuffer csReturnStreet, 
StringBuffer csReturnCityName, 
StringBuffer csReturnCounty, 
StringBuffer csReturnState, 
StringBuffer csReturnZip, 
StringBuffer csReturnErrorMsg) ;
//--
-
 public AddressValidate(){
  inad=null;
  outad=null;
  usercompany=new String("");
  
  }
//--
-
 public String validate (Address inad,Address outad){
  csReturnStreet=new StringBuffer(""); 
  csReturnCityName=new StringBuffer("");  
  csReturnCounty=new StringBuffer("");  
  csReturnState=new StringBuffer("");  
  csReturnZip=new StringBuffer("");  
  csReturnErrorMsg=new StringBuffer(""); 
  this.inad=inad;
  this.outad=outad;
  
   
  try{
//   System.out.println("Street1 :"+inad.Street1);
//   System.out.println("city :"+inad.City);
//   System.out.println("state :"+inad.State);
//   System.out.println("postalcode"+inad.PostalCode);

   JAVAAVSValidate (usercompany,
inad.Street1,
inad.City,
inad.State,
inad.PostalCode, 
csReturnStreet, 
csReturnCityName, 
csReturnCounty, 
csReturnState, 
csReturnZip, 
csReturnErrorMsg);
   outad.Street1 = csReturnStreet.toString(); 
   outad.City = csReturnCityName.toString(); 
   outad.County = csReturnCounty.toString(); 
   outad.State = csReturnState.toString(); 
   outad.PostalCode = csReturnZip.toString(); 
//   System.out.println("Street1 :"+outad.Street1);
//   System.out.println("city :"+outad.City);
//   System.out.println("state :"+outad.State);
//   System.out.println("postalcode"+outad.PostalCode);

  }catch(Exception e){
   System.out.println("Error in Validating Address " + e.toString());
  }
  
  return (csReturnErrorMsg.toString());
 }
  

}

Peter Guyatt <[EMAIL PROTECTED]> wrote:
Hi There,

Can I see you native code and your class that declares you native methods.

Thanks

Pete

-Original Message-
From: Mark Schmeets [mailto:[EMAIL PROTECTED]
Sent: 22 April 2004 16:13
To: Tomcat Users List
Subject: Re: Accessing Dll's


Hi,
Is it possible that this dll is being loaded somewhere else in your
instance?
My experience with this error came from trying to use the Oracle native
JDBC drivers. It usually came down to one of three issues, first that
the dll couldn't be "found", second that another web-app had already
loaded it, third it was a dll versioning problem.
Hope it helps.

Mark

Annamalai Ramasamy wrote:

>Hi.,
>Again same error.
>I did put the dll to /jre/bin and winnt/system32.
>Any other ideas please...
>Thanks.,
>MALAI
>
>Hans Wichman wrote:
>sorry, i meant lib\bin\ instead of lib\ext\
>
>grtz
>Sorv
>
>At 03:43 PM 4/22/2004 +0100, Annamalai Ramasamy wrote:
>
>
>>Hi.,
>>Again Same Error..
>>Actually after the System.loadlibrary..i can able to see my
>>system.out.println values.
>>Then while trying to call my method i'm getting UnsatishfiedLinkError.
>>Thanks.,
>

RE: Accessing Dll's

2004-04-22 Thread Annamalai Ramasamy
Hi.,
   Yes,I did see my dll path using this line.
 
Thanks.,
MALAI
Ryan Lissack <[EMAIL PROTECTED]> wrote:
Hi,

Execute the following :

System.out.println(System.getProperty("java.library.path"));

See what directories are there. If the one(s) with your DLL(s) are not
listed you can add them as a startup param to the VM using the -D option
(java -Djava.library.path=.)

HTH

Regards,
Ryan.

-Original Message-
From: Annamalai Ramasamy [mailto:[EMAIL PROTECTED]
Sent: 22 April 2004 16:33
To: Tomcat Users List
Subject: RE: Accessing Dll's


Hi.,
Check my below java code.
I do not have native source codes.

I'm sure there is no version conflicts.
But i have copied the dll in more than one places..like winnt, system32 and
jre/bin like that.

any idea?

public class AddressValidate {

private Address inad;
private Address outad;
private String usercompany;

public StringBuffer csReturnErrorMsg;
public StringBuffer csReturnStreet;
public StringBuffer csReturnCityName;
public StringBuffer csReturnCounty;
public StringBuffer csReturnState;
public StringBuffer csReturnZip;
//To load DLL AvsWebInrterface 
static{
try{
System.loadLibrary("AvsWebInterface");
System.out.println("DLL Loaded"); 
}catch(Exception e){
System.err.println("Could not load DLL \"AvsWebInterface \" :
"+e.toString());
System.out.println("Could not load DLL \"AvsWebInterface \" :
"+e.toString());

}catch(Throwable e){
System.err.println("Could not load DLL \"AvsWebInterface:\"
"+e.toString());
System.out.println("Could not load DLL \"AvsWebInterface:\"
"+e.toString());
}
} 
//end of static
//--
-

//Native method implemented in cpp 
public native String JAVAAVSValidate (String company, 
String street1, 
String city, 
String state, 
String zip, 
StringBuffer csReturnStreet, 
StringBuffer csReturnCityName, 
StringBuffer csReturnCounty, 
StringBuffer csReturnState, 
StringBuffer csReturnZip, 
StringBuffer csReturnErrorMsg) ;
//--
-
public AddressValidate(){
inad=null;
outad=null;
usercompany=new String("");

}
//--
-
public String validate (Address inad,Address outad){
csReturnStreet=new StringBuffer(""); 
csReturnCityName=new StringBuffer(""); 
csReturnCounty=new StringBuffer(""); 
csReturnState=new StringBuffer(""); 
csReturnZip=new StringBuffer(""); 
csReturnErrorMsg=new StringBuffer(""); 
this.inad=inad;
this.outad=outad;


try{
// System.out.println("Street1 :"+inad.Street1);
// System.out.println("city :"+inad.City);
// System.out.println("state :"+inad.State);
// System.out.println("postalcode"+inad.PostalCode);

JAVAAVSValidate (usercompany,
inad.Street1,
inad.City,
inad.State,
inad.PostalCode, 
csReturnStreet, 
csReturnCityName, 
csReturnCounty, 
csReturnState, 
csReturnZip, 
csReturnErrorMsg);
outad.Street1 = csReturnStreet.toString(); 
outad.City = csReturnCityName.toString(); 
outad.County = csReturnCounty.toString(); 
outad.State = csReturnState.toString(); 
outad.PostalCode = csReturnZip.toString(); 
// System.out.println("Street1 :"+outad.Street1);
// System.out.println("city :"+outad.City);
// System.out.println("state :"+outad.State);
// System.out.println("postalcode"+outad.PostalCode);

}catch(Exception e){
System.out.println("Error in Validating Address " + e.toString());
}

return (csReturnErrorMsg.toString());
}


}

Peter Guyatt 
wrote:
Hi There,

Can I see you native code and your class that declares you native methods.

Thanks

Pete

-Original Message-
From: Mark Schmeets [mailto:[EMAIL PROTECTED]
Sent: 22 April 2004 16:13
To: Tomcat Users List
Subject: Re: Accessing Dll's


Hi,
Is it possible that this dll is being loaded somewhere else in your
instance?
My experience with this error came from trying to use the Oracle native
JDBC drivers. It usually came down to one of three issues, first that
the dll couldn't be "found", second that another web-app had already
loaded it, third it was a dll versioning problem.
Hope it helps.

Mark

Annamalai Ramasamy wrote:

>Hi.,
>Again same error.
>I did put the dll to /jre/bin and winnt/system32.
>Any other ideas please...
>Thanks.,
>MALAI
>
>Hans Wichman wrote:
>sorry, i meant lib\bin\ instead of lib\ext\
>
>grtz
>Sorv
>
>At 03:43 PM 4/22/2004 +0100, Annamalai Ramasamy wrote:
>
>
>>Hi.,
>>Again Same Error..
>>Actually after the System.loadlibrary..i can able to see my
>>system.out.println values.
>>Then while trying to call my method i'm getting UnsatishfiedLinkError.
>>Thanks.,
>>MALAI
>>
>>Hans Wichman wrote:
>>try putting them in the lib/ext folder of your j2sdk1.4.2_03 folder.
>>
>>grtz
>>Sorv
>>
>>At 03:24 PM 4/22/2004 +0100, Annamalai Ramasamy wrote:
>>
>>
>>>Hi.,
>>>I'm using Tomcat4.0.29 with J2SDK 1.4.2_03.
>>>I have my native libraries(dll's) in winnt folder.
>>>I'm loading the dll thru System.loadlibrary and accessing the methods.
>>>I'm getting

Hi, it's me

2004-04-22 Thread jfarcand


Norton AntiVirus gelöscht1.txt
Description: plain/text
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Verification of Sun JRE1.4.2

2004-04-22 Thread Michiel Toneman
Asif Chowdhary wrote:

Is there a specific file which I can check to verify if the client has 
JRE 1.4.2 installed on its machine?

Thanks



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

java -version ;-)

--
Michiel Toneman  Software Engineer   Bibit Global Payment Services
Regulierenring 10  3981 LB  Bunnik   [EMAIL PROTECTED]
Tel. +31-30-6595168  Fax +31-30-6564464  http://www.bibit.com/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: request.setRemoteUser(p)

2004-04-22 Thread Filip Hanik \(lists\)
one way of doing it is to create a valve, since the valve has direct access
to the underlying objects, you can set the remoteUser

Filip

-Original Message-
From: Schehl, Micah [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 22, 2004 9:33 AM
To: 'Tomcat Users List'
Subject: request.setRemoteUser(p)



How can I programmatically set a user in the Tomcat container?  i.e.
request.setRemoteUser(p);  I know that doesn't exist, but that is
essentially what I need to do.

My scenario is that I want to send a 1024-bit key to a user.  That user
would send that key to a specific servlet.  The servlet would take the key
and lookup the user's information and programmatically log them into Tomcat.

On subsequent page requests, the request.getRemoteUser() would give me back
the user.

Thank you for any help,
Micah

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

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.654 / Virus Database: 419 - Release Date: 4/6/2004


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



Re: Cannot use JK2 with Tomcat5 and IIS 5

2004-04-22 Thread QM
On Thu, Apr 22, 2004 at 11:40:37AM -0400, Moran Ben-David wrote:
: 
: [snip] 
: 

I missed your original post.  Is there any reason you must use JK2
instead of JK?  JK2 has given many people fits and starts over the past
few months. It sounds like it's still maturing.

As always, YMMV.

In defense of Tomcat and the developers:
I've also worked with commercial behemoths such as WebLogic and
WebSphere, and Tomcat has consistently proven itself to have an
appreciable balance of feature set vs ease-of-use.  (WebLogic's catching
up, but it still comes with a hefty price tag. ;)

-QM


-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



Re: virtual host...

2004-04-22 Thread Emerson Cargnin
please, I really need some explanation about this.. or some link to it...

thanks...
Emerson
Emerson Cargnin wrote:
I'm using tomcat 5.0.19, apache 2.0.47, mod_jk...

Tomcat generates a mod_jk.conf file with the following clause before the 
jkmount clauses:


ServerName localhost
With this clause, apache does not create any mapping...

This is my configuration of the listener...

Is there any other property of this configuration? The virtualhost 
clause has to match with some apache configuration???


jkworkersConfig="/home/echo/download/jakarta-tomcat-5.0.19/worker.properties" 
   />






--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
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: pageEncoing and contentType

2004-04-22 Thread seiji takegata
Hi

> >Maybe you should query tomcat-dev list about how (and if you really 
> > need) to override Jasper's behaviour on inserting "pageEncoding" value 
> > into Content-Type header. 
> >

In tomcat-dev list, they say "IT'S SPEC." that's it. 
I've learned that "If you don't like it, shut up and use your default."
I found a workaround. Let the jasper using default encoding, and
call encoding conversion method before you pass strings to other
methods in your jsp.

Hope this helps someone.
-
<%@ page 
language="java"
import="java.io.*, com.lowagie.text.*, com.lowagie.text.pdf.*"
%>
<%@ page contentType="application/pdf"%>
<%!
//=encoding conversion
String getSjis(String str) throws java.io.UnsupportedEncodingException{
String str2=new String(str.getBytes("ISO-8859-1"),"SJIS");
return str2;
}
%>
<%
Document document = new Document();

ByteArrayOutputStream buffer = new ByteArrayOutputStream();
PdfWriter pdfwriter = PdfWriter.getInstance( document, buffer );

document.open();

BaseFont bf = BaseFont.createFont("HeiseiKakuGo-W5","UniJIS-UCS2-H",false);
PdfContentByte pcb = pdfwriter.getDirectContent();
pcb.beginText();
pcb.setTextMatrix(50,800);
pcb.setFontAndSize(bf,12);
pcb.setLeading(15);
pcb.showText("English");

// use encoding conversion =
pcb.showText(getSjis("=JAPANESE STRING HERE="));
pcb.endText();

document.close();
response.setContentLength(buffer.size());
ServletOutputStream output =  response.getOutputStream();
buffer.writeTo(output);
output.flush();
%>

---

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



Hi, it's me

2004-04-22 Thread tomcat-user


Norton AntiVirus Deleted1.txt
Description: plain/text
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: LoginModules

2004-04-22 Thread Alan Weissman
Hi Adam -

So it is NOT possible then, to have a Struts Action invoke the login
module AND have Tomcat recognize the principals/credentials?

Thanks again,
Alan

-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 21, 2004 6:55 PM
To: Tomcat Users List
Subject: Re: LoginModules

On 04/21/2004 10:27 PM Alan Weissman wrote:
> I've written a simple login module that I've configured to run from a
> Struts Action class and it appears to be working wonderfully -
> authentication takes place and principal/credentials are returned.
> However, I can't get any of this information back when I call
> isUserInRole and getUserPrinical.  How can I store the
> principals/credentials with the server such that these methods will
> start returning the appropriate information?  
> 
> Or does authentication need to take place via a Realm for these
methods
> to work?

Hi Alan,
You need to get tomcat to run the login automatically when your users 
try to access URLs protected by security-constraints declared in the 
deployment descriptor web.xml.

Adam
-- 
struts 1.2 + tomcat 5.0.19 + java 1.4.2
Linux 2.4.20 Debian


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



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



Re: Tomcat with SSL

2004-04-22 Thread Jason Palmatier
It looks like you are using WebSphere and may be
getting tangled up in IBM's version of Sun's JSSE.  I
ran into a similar problem on an IBM iSeries server
and posted my eventual soultion here:

http://www-106.ibm.com/developerworks/forums/dw_thread.jsp?forum=178&thread=26188&message=2377519&cat=10&q=%22IBM+JSSE%22+%2B%22iSeries%22#2377519

(Let me know if the link doesn't work)

If you are not on the iSeries then the important point
of the initial part about the provider is to have the
IBM provider com.ibm.jsse.IBMJSSEProvider in front of
Sun's provider.  The rest should apply without any
change.  Note the inclusion of algorithm="IbmX509" in
the server.xml HTTPS connector tag.  It's case
sensitive which can be tricky.  I hope this helps!

Jason

--- "Hiemer, Bernhard" <[EMAIL PROTECTED]> wrote:
> 
> 
> Thanks for your reply!
> 
> I configured my server.xml like this:
> 
className="org.apache.coyote.tomcat4.CoyoteConnector"
>port="8443" minProcessors="5"
> maxProcessors="75"
>enableLookups="true"
>  acceptCount="10" debug="0" scheme="https"
> secure="true"
>useURIValidationHack="false">
>   
className="org.apache.coyote.tomcat4.CoyoteServerSocketFactory"
>clientAuth="false" protocol="TLS" 
>   
> keystoreFile="C:\Programme\IBM\WebSphere
> Studio\Application
>
Developer\v5.1\runtimes\base_v5\java\jre\lib\security\test"
> 
>keystorePass="changeit" />
> 
> 
> But there are the same effects ...
> 
> 
> 
> 
> 
> 
> -Ursprüngliche Nachricht-
> Von: Bill Barker [mailto:[EMAIL PROTECTED]
> Gesendet: Donnerstag, 22. April 2004 08:38
> An: [EMAIL PROTECTED]
> Betreff: Re: Tomcat with SSL
> 
> 
> I believe that you can't use IBM's JSSE with the
> HttpConnector.  You have to
> use the CoyoteConnector.
> 
> "Hiemer, Bernhard" <[EMAIL PROTECTED]> wrote in message
>
news:[EMAIL PROTECTED]
> 
> Hi Tomcat-Users,
> 
> I found out, that my problem depends on the
> configuration of the security
> providers in the java.security file.
> (On my machine is installed jsse from IBM and Sun).
> 
> If the configuration is
> security.provider.1=sun.security.provider.Sun
> security.provider.2=com.ibm.jsse.JSSEProvider
>
security.provider.3=com.sun.net.ssl.internal.ssl.Provider
> 
> I get the following Exception
> Catalina.start: LifecycleException:  null.open:
> java.security.NoSuchAlgorithmException: Class
> com.ibm.jsse.ba configured for
> SSLContext not a SSLContext
> at com.sun.net.ssl.SunJSSE_b.a(DashoA6275)
> at
> com.sun.net.ssl.SSLContext.getInstance(DashoA6275)
> at
>
org.apache.catalina.net.SSLServerSocketFactory.initProxy(SSLServerSocContext
> not a SSLContext
> at com.sun.net.ssl.SunJSSE_b.a(DashoA6275)
> at
> com.sun.net.ssl.SSLContext.getInstance(DashoA6275)
> ...
> 
> 
> In the other case, when the configuration-file looks
> like
> security.provider.1=sun.security.provider.Sun
>
security.provider.2=com.sun.net.ssl.internal.ssl.Provider
> security.provider.3=com.ibm.jsse.JSSEProvider
> 
> this error message occurs:
> java.lang.reflect.InvocationTargetException:
> java.lang.OutOfMemoryError
> 
> 
> 
> 
> The relevant part of the server.xml file is:
> 
className="org.apache.catalina.connector.http.HttpConnector"
>port="8443" minProcessors="5"
> maxProcessors="75"
>enableLookups="true"
>acceptCount="10" debug="0" scheme="https"
> secure="true"
>useURIValidationHack="false">
>   
className="org.apache.catalina.net.SSLServerSocketFactory"
>clientAuth="false" protocol="TLS"
>   
> keystoreFile="C:\Programme\IBM\WebSphere
> Studio\Application
>
Developer\v5.1\runtimes\base_v5\java\jre\lib\security\test"
>keystorePass="changeit" />
> 
> 
> 
> 
> In the first case it looks like the two different
> jsse implementations cause
> the problem. But how to configure it right?
> 
> Can anyone give me any suggestions?
> 
> Thanks
> Bernhard
> 
> 
> 
> 
> 
> 
> -Ursprüngliche Nachricht-
> Von: Hiemer, Bernhard
> Gesendet: Freitag, 16. April 2004 08:00
> An: '[EMAIL PROTECTED]'
> Betreff: Tomcat with SSL
> 
> 
> Hi at all!
> 
> I´m trying to configure my Tomcat-Standalone for
> SSL-Support. I use Win XP,
> JRE 1.3.1 and JSSE 1.0.3_02.
> The Tomcat-Versions I tried are 4.1.30 and 5.0.19.
> 
> I worked along the HOW-TO on the Jakarta-Website:
>
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/ssl-howto.html
> 
> BUT I receive the following error on startup of
> Tomcat:
> java.lang.reflect.InvocationTargetException:
> java.lang.OutOfMemoryError
> 
> I have already tried the Options -Xmx512m -Xms128m
> to give the VM more
> memory.
> 
> What´s to do now?
> Thanks in advance for each little help!
> Bernhard
> 
> 
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 




 

RE: another problem with JAAS

2004-04-22 Thread Alan Weissman
Hey Michiel -

How did you overwrite Tomcat's Subject in the Session with your own?

Thanks,
Alan

-Original Message-
From: Michiel Toneman [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 22, 2004 9:51 AM
To: Tomcat Users List
Subject: Re: another problem with JAAS


Hi Beloglazov,

I was running into the same problem. As far as I can tell (anyone on the

list, please correct me if I'm wrong), Tomcat primarily uses JAAS for 
authentication, but it is pretty useless for  authorisation. I have no 
idea why the JAASRealm goes to all the trouble of setting up a Subject 
etc... when you can't use them in your own policy. All you can do is use

"isUserInRole()" to check for the *name* of your role Principal. This 
totally defeats the point of using JAAS IMHO.

I am using a JAAS implementation with is custom Policy that assigns 
Permission(s) based on various types of Principal that I assign to the 
Subject. My webapps can then do proper java Permission checks 
(AccessController.checkPermission(perm)).

The way to go in Tomcat is using a filter, setting up (LoginContext) 
your Subject and use a doAsPrivileged() to wrap the servlet call. (see 
my earlier post on the list). However, this does not work on Tomcat 
(works fine on JRun4) because the filter and servlet are evaluated by 
Tomcat in different security contexts. The solution was to overwrite 
Tomcat's Subject in the session by my own Subject.

I'm writing a tutorial on this, but it isn't ready yet. If you need an 
implementation fast, and the above is not enough to go on, I can speed 
up the writing ;-)

Cheers,

Michiel


Beloglazov Maksim wrote:

> Hello,
>
> I've written a JAAS LoginModule and my web application successfully 
> authorizes with it. But! While the authorization is successful, Tomcat

> does not recognize user Principals and roles which I assign in login 
> module and returns that I have logged as a *null* user with no roles 
> assigned to it.
>
> server.xml:
> 
>  appName="merx"
>   userClassNames="ru.mb.security.jaas.RdbmsPrincipal"
>   roleClassNames="ru.mb.security.jaas.RdbmsRole"
>   debug="99"/>
> 
>
> ru.mb.security.jaas.RdbmsPrincipal and ru.mb.security.jaas.RdbmsRole 
> are implementations of java.security.Principal interface. How can I 
> force Tomcat recognize these Principals in a proper way? Can be the 
> problem with moving javax.security.Principal of earlier JDKs to 
> java.security.Principal in modern ones?
>
> Any help is greatly appreciated.
>
> Beloglazov Maksim.
>


-- 
Michiel Toneman  Software Engineer   Bibit Global Payment Services
Regulierenring 10  3981 LB  Bunnik   [EMAIL PROTECTED]
Tel. +31-30-6595168  Fax +31-30-6564464  http://www.bibit.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]



connection Poll

2004-04-22 Thread Emerson Cargnin
is there a way to create connection pools per app just with files inside 
the .war file? The problem is that I don't access to our internet server 
conf file.

--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: another problem with JAAS

2004-04-22 Thread Michiel Toneman
Hi Alan,

That's correct, I overwrite the subject.

Michiel

Alan Weissman wrote:

Hey Michiel -

How did you overwrite Tomcat's Subject in the Session with your own?

Thanks,
Alan
-Original Message-
From: Michiel Toneman [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 22, 2004 9:51 AM
To: Tomcat Users List
Subject: Re: another problem with JAAS

Hi Beloglazov,

I was running into the same problem. As far as I can tell (anyone on the

list, please correct me if I'm wrong), Tomcat primarily uses JAAS for 
authentication, but it is pretty useless for  authorisation. I have no 
idea why the JAASRealm goes to all the trouble of setting up a Subject 
etc... when you can't use them in your own policy. All you can do is use

"isUserInRole()" to check for the *name* of your role Principal. This 
totally defeats the point of using JAAS IMHO.

I am using a JAAS implementation with is custom Policy that assigns 
Permission(s) based on various types of Principal that I assign to the 
Subject. My webapps can then do proper java Permission checks 
(AccessController.checkPermission(perm)).

The way to go in Tomcat is using a filter, setting up (LoginContext) 
your Subject and use a doAsPrivileged() to wrap the servlet call. (see 
my earlier post on the list). However, this does not work on Tomcat 
(works fine on JRun4) because the filter and servlet are evaluated by 
Tomcat in different security contexts. The solution was to overwrite 
Tomcat's Subject in the session by my own Subject.

I'm writing a tutorial on this, but it isn't ready yet. If you need an 
implementation fast, and the above is not enough to go on, I can speed 
up the writing ;-)

Cheers,

Michiel

Beloglazov Maksim wrote:

 

Hello,

I've written a JAAS LoginModule and my web application successfully 
authorizes with it. But! While the authorization is successful, Tomcat
   

 

does not recognize user Principals and roles which I assign in login 
module and returns that I have logged as a *null* user with no roles 
assigned to it.

server.xml:

 

ru.mb.security.jaas.RdbmsPrincipal and ru.mb.security.jaas.RdbmsRole 
are implementations of java.security.Principal interface. How can I 
force Tomcat recognize these Principals in a proper way? Can be the 
problem with moving javax.security.Principal of earlier JDKs to 
java.security.Principal in modern ones?

Any help is greatly appreciated.

Beloglazov Maksim.

   



 



--
Michiel Toneman  Software Engineer   Bibit Global Payment Services
Regulierenring 10  3981 LB  Bunnik   [EMAIL PROTECTED]
Tel. +31-30-6595168  Fax +31-30-6564464  http://www.bibit.com/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: another problem with JAAS

2004-04-22 Thread Alan Weissman
Yes but how? :)

What is the key that you use in the session?

-Original Message-
From: Michiel Toneman [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 22, 2004 12:51 PM
To: Tomcat Users List
Subject: Re: another problem with JAAS


Hi Alan,

That's correct, I overwrite the subject.

Michiel

Alan Weissman wrote:

>Hey Michiel -
>
>How did you overwrite Tomcat's Subject in the Session with your own?
>
>Thanks,
>Alan
>
>-Original Message-
>From: Michiel Toneman [mailto:[EMAIL PROTECTED] 
>Sent: Thursday, April 22, 2004 9:51 AM
>To: Tomcat Users List
>Subject: Re: another problem with JAAS
>
>
>Hi Beloglazov,
>
>I was running into the same problem. As far as I can tell (anyone on
the
>
>list, please correct me if I'm wrong), Tomcat primarily uses JAAS for 
>authentication, but it is pretty useless for  authorisation. I have no 
>idea why the JAASRealm goes to all the trouble of setting up a Subject 
>etc... when you can't use them in your own policy. All you can do is
use
>
>"isUserInRole()" to check for the *name* of your role Principal. This 
>totally defeats the point of using JAAS IMHO.
>
>I am using a JAAS implementation with is custom Policy that assigns 
>Permission(s) based on various types of Principal that I assign to the 
>Subject. My webapps can then do proper java Permission checks 
>(AccessController.checkPermission(perm)).
>
>The way to go in Tomcat is using a filter, setting up (LoginContext) 
>your Subject and use a doAsPrivileged() to wrap the servlet call. (see 
>my earlier post on the list). However, this does not work on Tomcat 
>(works fine on JRun4) because the filter and servlet are evaluated by 
>Tomcat in different security contexts. The solution was to overwrite 
>Tomcat's Subject in the session by my own Subject.
>
>I'm writing a tutorial on this, but it isn't ready yet. If you need an 
>implementation fast, and the above is not enough to go on, I can speed 
>up the writing ;-)
>
>Cheers,
>
>Michiel
>
>
>Beloglazov Maksim wrote:
>
>  
>
>>Hello,
>>
>>I've written a JAAS LoginModule and my web application successfully 
>>authorizes with it. But! While the authorization is successful, Tomcat
>>
>>
>
>  
>
>>does not recognize user Principals and roles which I assign in login 
>>module and returns that I have logged as a *null* user with no roles 
>>assigned to it.
>>
>>server.xml:
>>
>>  >  appName="merx"
>>  userClassNames="ru.mb.security.jaas.RdbmsPrincipal"
>>  roleClassNames="ru.mb.security.jaas.RdbmsRole"
>>  debug="99"/>
>>
>>
>>ru.mb.security.jaas.RdbmsPrincipal and ru.mb.security.jaas.RdbmsRole 
>>are implementations of java.security.Principal interface. How can I 
>>force Tomcat recognize these Principals in a proper way? Can be the 
>>problem with moving javax.security.Principal of earlier JDKs to 
>>java.security.Principal in modern ones?
>>
>>Any help is greatly appreciated.
>>
>>Beloglazov Maksim.
>>
>>
>>
>
>
>  
>


-- 
Michiel Toneman  Software Engineer   Bibit Global Payment Services
Regulierenring 10  3981 LB  Bunnik   [EMAIL PROTECTED]
Tel. +31-30-6595168  Fax +31-30-6564464  http://www.bibit.com/


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



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



Re: connection Poll

2004-04-22 Thread Parsons Technical Services
Yes.

What version of Tomcat?


- Original Message - 
From: "Emerson Cargnin" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, April 22, 2004 12:52 PM
Subject: connection Poll


> is there a way to create connection pools per app just with files inside 
> the .war file? The problem is that I don't access to our internet server 
> conf file.
> 
> -- 
> Emerson Cargnin
> Analista de Sistemas
> Setor de Desenvolvimento de Sistemas - TRE-SC
> tel : (048) - 251-3700 - Ramal 3181
> 
> -
> 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] tomcat5+apache2 virtual hosting

2004-04-22 Thread Mark Page
Hi all,

I'm going nuts trying to do something pretty straight forward, namely
getting TOMCAT to serve .jsp files via apache virtual hosts and still
keep the default tomcat stuff at port 8080.

I've read every howto I can find and can only get one or the other to
work. My confusion seems to revolve around the  element in
server.xml.

What I want is to be able to do is point at http://localhost:8080 and
see the tomcat welcome page. I then want to point to
http://test.int/test.jsp and see the .jsp output.

The test.jsp file resides in /var/www/html/beta but I keep getting
tomcat 404 error, so I guess it's having problems locating the .jsp and
therefore suspect my contexts are incorrect.

I would be grateful is someone could have a look at my server.xml and
hhtpd.conf snippets and enlighten me.

Regards.



this is how my server.xml is:

  

   

 
  



 




and the relevant bit of httpd.conf:


ServerName test.int
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /var/www/html/beta
   
JkUriSet worker ajp13:localhost:8009
   




I have also tried using the workers2.properties file instead of the
JkUriSet by entering

[uri:test.int/*.jsp]
worker=ajp13:localhost:8009

but it dosen't seem to make much difference




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



RE: Cannot use JK2 with Tomcat5 and IIS 5

2004-04-22 Thread Moran Ben-David
Thanks for the warning.. I'm using JK2 on the assumption that JK2 would be
better and didn't want to be left behind.  As I am strating a new project on
Tomcat, I figured it was worth a shot starting with the latest greatest.  I
hadn't really gotten a sense for it's maturity.. thanks again.

As for Tomcat's complexity.. It seems to be inherent in the J2EE and I would
even say App Server concept as it's so rampant.  I think the industry
suffers from too much distributed architectures.. I wonder, what Kent Beck
thinks on this topic.  But that's an overall discussion I won't tire this
thread with.  

Thanks for your isnight,
Moran

-Original Message-
From: QM [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 22, 2004 12:14 PM
To: Tomcat Users List
Subject: Re: Cannot use JK2 with Tomcat5 and IIS 5

On Thu, Apr 22, 2004 at 11:40:37AM -0400, Moran Ben-David wrote:
: 
: [snip] 
: 

I missed your original post.  Is there any reason you must use JK2
instead of JK?  JK2 has given many people fits and starts over the past
few months. It sounds like it's still maturing.

As always, YMMV.

In defense of Tomcat and the developers:
I've also worked with commercial behemoths such as WebLogic and
WebSphere, and Tomcat has consistently proven itself to have an
appreciable balance of feature set vs ease-of-use.  (WebLogic's catching
up, but it still comes with a hefty price tag. ;)

-QM


-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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


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



RE: request.setRemoteUser(p)

2004-04-22 Thread Schehl, Micah

Thank you very much Filip!  I have not worked with valves before, but I
think this is the right direction!  

-Original Message-
From: Filip Hanik (lists) [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 22, 2004 11:58 AM
To: Tomcat Users List
Subject: RE: request.setRemoteUser(p)


one way of doing it is to create a valve, since the valve has direct access
to the underlying objects, you can set the remoteUser

Filip

-Original Message-
From: Schehl, Micah [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 22, 2004 9:33 AM
To: 'Tomcat Users List'
Subject: request.setRemoteUser(p)



How can I programmatically set a user in the Tomcat container?  i.e.
request.setRemoteUser(p);  I know that doesn't exist, but that is
essentially what I need to do.

My scenario is that I want to send a 1024-bit key to a user.  That user
would send that key to a specific servlet.  The servlet would take the key
and lookup the user's information and programmatically log them into Tomcat.

On subsequent page requests, the request.getRemoteUser() would give me back
the user.

Thank you for any help,
Micah

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

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.654 / Virus Database: 419 - Release Date: 4/6/2004


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

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



Re: connection Poll

2004-04-22 Thread Emerson Cargnin
5.0.19.



Parsons Technical Services wrote:
Yes.

What version of Tomcat?

- Original Message - 
From: "Emerson Cargnin" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, April 22, 2004 12:52 PM
Subject: connection Poll



is there a way to create connection pools per app just with files inside 
the .war file? The problem is that I don't access to our internet server 
conf file.

--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
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]



--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: EL Configuration problem

2004-04-22 Thread Chanan Braunstein
Hello,
Now, I am really confused. I created a blank webapp with a blank
web-inf that just declares itself to be version 2.4. My test.jsp with the EL
worked.
I went back to my web-app, blanked out the web.xml just like the
test webapp and my EL still does not work. What else can be disabling EL?


Chanan Braunstein
Knovel Corp.
Web Development Manager
607-773-1840 x672
http://www.knovel.com
 

-Original Message-
From: Shane Linley [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 21, 2004 10:42 PM
To: Tomcat Users List
Subject: RE: EL Configuration problem

I had a similar problem which I overcame with lots of reading and some
guesswork. BTW Im using the Sun supplied JSTL... I'm running on Tomcat
5.0.19

In your JSP directives you will need to declare:

<%@ taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c" %>

Your web.xml for your web-app declaration will need to reference the correct
version of the J2EE schemas. Here is mine:

http://java.sun.com/xml/ns/j2ee";
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
 xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
web-app_2_4.xsd"
 version="2.4">

Of course I wanted to make sure EL was enabled as did you:




  
Property group for common configuration for all the
JSP's
*.jsp
false
false
  



Don't forget to throw in your JSTL jar files, um jstl.jar and standard.jar
from what I remember, into the WEB-INF/lib directory.

Regards,
Shane.


-Original Message-
From: Chanan Braunstein [mailto:[EMAIL PROTECTED]
Sent: Thursday, 22 April 2004 4:11 AM
To: 'Tomcat Users List'
Subject: EL Configuration problem


Hello,
Using Tomcat 5.0.19 I cannot get EL to work in my webapp (It works
fine in jsp-examples). I checked the version of web.xml to make sure it is
2.4 and I added to be safe:

*.jsp
false


But, all I get is the EL text back at me.



-
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: [newbie] tomcat5+apache2 virtual hosting

2004-04-22 Thread Mark Page
I've sorted it - thanks anyway :)

On Thu, 2004-04-22 at 17:59, Mark Page wrote:
> Hi all,
> 
> I'm going nuts trying to do something pretty straight forward, namely
> getting TOMCAT to serve .jsp files via apache virtual hosts and still
> keep the default tomcat stuff at port 8080.
> 
> I've read every howto I can find and can only get one or the other to
> work. My confusion seems to revolve around the  element in
> server.xml.
> 
> What I want is to be able to do is point at http://localhost:8080 and
> see the tomcat welcome page. I then want to point to
> http://test.int/test.jsp and see the .jsp output.
> 
> The test.jsp file resides in /var/www/html/beta but I keep getting
> tomcat 404 error, so I guess it's having problems locating the .jsp and
> therefore suspect my contexts are incorrect.
> 
> I would be grateful is someone could have a look at my server.xml and
> hhtpd.conf snippets and enlighten me.
> 
> Regards.
> 
> 
> 
> this is how my server.xml is:
> 
>   unpackWARs="true" autoDeploy="true"
>xmlValidation="false" xmlNamespaceAware="false">
> 
> directory="logs"  prefix="localhost_log." suffix=".txt"
> timestamp="true"/>
> 
>
>   
> 
>  unpackWARs="true" autoDeploy="true">
> 
>
> 
>directory="logs"  prefix="test_int_log." suffix=".txt"
> timestamp="true" />
>   
> 
> and the relevant bit of httpd.conf:
> 
> 
> ServerName test.int
> ServerAdmin [EMAIL PROTECTED]
> DocumentRoot /var/www/html/beta
>
> JkUriSet worker ajp13:localhost:8009
>
> 
> 
> 
> 
> I have also tried using the workers2.properties file instead of the
> JkUriSet by entering
> 
> [uri:test.int/*.jsp]
> worker=ajp13:localhost:8009
> 
> but it dosen't seem to make much difference
> 
> 
> 
> 
> -
> 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: connection Poll

2004-04-22 Thread Parsons Technical Services
Emerson,

If you create a file in the META-INF directory called context.xml and have
the contents simular to the following(Change to fit your application. Note
my doc base is absolute. Yours will not be.):



  

  
validationQuery
select 1
  
  
url
jdbc:mysql://localhost:3306/yours?autoReconnect=true
  
  
maxActive
30
  
  
maxWait
5000
  
  
driverClassName
com.mysql.jdbc.Driver
  
  
username
user
  
  
password
password
  
  
maxIdle
2
  



Then place the section in the web.xml as described in the How to and set up
your code as in the how to, it will work fine.

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-howto.html


TC5 allows the context segment to reside in the .war . This allows anything
that would have been in the server.xml under a context tag to be moved to
this file and be loaded live. I have tested this configuration and it works
great. I later changed to a Global because I could and several of my apps
used the same database.

Doug

- Original Message - 
From: "Emerson Cargnin" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, April 22, 2004 1:25 PM
Subject: Re: connection Poll


> 5.0.19.
>
>
>
> Parsons Technical Services wrote:
> > Yes.
> >
> > What version of Tomcat?
> >
> >
> > - Original Message - 
> > From: "Emerson Cargnin" <[EMAIL PROTECTED]>
> > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > Sent: Thursday, April 22, 2004 12:52 PM
> > Subject: connection Poll
> >
> >
> >
> >>is there a way to create connection pools per app just with files inside
> >>the .war file? The problem is that I don't access to our internet server
> >>conf file.
> >>
> >>-- 
> >>Emerson Cargnin
> >>Analista de Sistemas
> >>Setor de Desenvolvimento de Sistemas - TRE-SC
> >>tel : (048) - 251-3700 - Ramal 3181
> >>
> >>-
> >>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]
> >
> >
>
>
> -- 
> Emerson Cargnin
> Analista de Sistemas
> Setor de Desenvolvimento de Sistemas - TRE-SC
> tel : (048) - 251-3700 - Ramal 3181
>
> -
> 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: [newbie] tomcat5+apache2 virtual hosting

2004-04-22 Thread Parsons Technical Services
What was it


- Original Message - 
From: "Mark Page" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, April 22, 2004 1:24 PM
Subject: Re: [newbie] tomcat5+apache2 virtual hosting


> I've sorted it - thanks anyway :)
> 
> On Thu, 2004-04-22 at 17:59, Mark Page wrote:
> > Hi all,
> > 
> > I'm going nuts trying to do something pretty straight forward, namely
> > getting TOMCAT to serve .jsp files via apache virtual hosts and still
> > keep the default tomcat stuff at port 8080.
> > 
> > I've read every howto I can find and can only get one or the other to
> > work. My confusion seems to revolve around the  element in
> > server.xml.
> > 
> > What I want is to be able to do is point at http://localhost:8080 and
> > see the tomcat welcome page. I then want to point to
> > http://test.int/test.jsp and see the .jsp output.
> > 
> > The test.jsp file resides in /var/www/html/beta but I keep getting
> > tomcat 404 error, so I guess it's having problems locating the .jsp and
> > therefore suspect my contexts are incorrect.
> > 
> > I would be grateful is someone could have a look at my server.xml and
> > hhtpd.conf snippets and enlighten me.
> > 
> > Regards.
> > 
> > 
> > 
> > this is how my server.xml is:
> > 
> >>unpackWARs="true" autoDeploy="true"
> >xmlValidation="false" xmlNamespaceAware="false">
> > 
> > > directory="logs"  prefix="localhost_log." suffix=".txt"
> > timestamp="true"/>
> > 
> >  
> >   
> > 
> >  > unpackWARs="true" autoDeploy="true">
> > 
> >  
> > 
> >  > directory="logs"  prefix="test_int_log." suffix=".txt"
> > timestamp="true" />
> > 
> > 
> > and the relevant bit of httpd.conf:
> > 
> > 
> > ServerName test.int
> > ServerAdmin [EMAIL PROTECTED]
> > DocumentRoot /var/www/html/beta
> >
> > JkUriSet worker ajp13:localhost:8009
> >
> > 
> > 
> > 
> > 
> > I have also tried using the workers2.properties file instead of the
> > JkUriSet by entering
> > 
> > [uri:test.int/*.jsp]
> > worker=ajp13:localhost:8009
> > 
> > but it dosen't seem to make much difference
> > 
> > 
> > 
> > 
> > -
> > 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: [newbie] tomcat5+apache2 virtual hosting

2004-04-22 Thread Asif Chowdhary
You need to use mod-jk2 in order to enable apache and tomcat integration.
You can then create what ever virtual host you want in apache and server your
jsp's.

-Original Message-
From: Mark Page [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 22, 2004 1:24 PM
To: Tomcat Users List
Subject: Re: [newbie] tomcat5+apache2 virtual hosting


I've sorted it - thanks anyway :)

On Thu, 2004-04-22 at 17:59, Mark Page wrote:
> Hi all,
> 
> I'm going nuts trying to do something pretty straight forward, namely
> getting TOMCAT to serve .jsp files via apache virtual hosts and still
> keep the default tomcat stuff at port 8080.
> 
> I've read every howto I can find and can only get one or the other to
> work. My confusion seems to revolve around the  element in
> server.xml.
> 
> What I want is to be able to do is point at http://localhost:8080 and
> see the tomcat welcome page. I then want to point to
> http://test.int/test.jsp and see the .jsp output.
> 
> The test.jsp file resides in /var/www/html/beta but I keep getting
> tomcat 404 error, so I guess it's having problems locating the .jsp and
> therefore suspect my contexts are incorrect.
> 
> I would be grateful is someone could have a look at my server.xml and
> hhtpd.conf snippets and enlighten me.
> 
> Regards.
> 
> 
> 
> this is how my server.xml is:
> 
>   unpackWARs="true" autoDeploy="true"
>xmlValidation="false" xmlNamespaceAware="false">
> 
> directory="logs"  prefix="localhost_log." suffix=".txt"
> timestamp="true"/>
> 
>
>   
> 
>  unpackWARs="true" autoDeploy="true">
> 
>
> 
>directory="logs"  prefix="test_int_log." suffix=".txt"
> timestamp="true" />
>   
> 
> and the relevant bit of httpd.conf:
> 
> 
> ServerName test.int
> ServerAdmin [EMAIL PROTECTED]
> DocumentRoot /var/www/html/beta
>
> JkUriSet worker ajp13:localhost:8009
>
> 
> 
> 
> 
> I have also tried using the workers2.properties file instead of the
> JkUriSet by entering
> 
> [uri:test.int/*.jsp]
> worker=ajp13:localhost:8009
> 
> but it dosen't seem to make much difference
> 
> 
> 
> 
> -
> 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: [newbie] tomcat5+apache2 virtual hosting

2004-04-22 Thread Mark Page
I fooled myself - forgot to clear-down browser cache after doing some
fiddling. :/  Still not working

I am using mod_jk2 - and as far as I can tell apache and tomcat do talk,
for example if I move my test.jsp to $CATALINA/webapps/ROOT and browse
to http:/test.int/test.jsp it works, so I guess that something is wrong
with the context for test.int ??? And also, the 404 is from tomcat, so
apache is handing over to tomcat for .jsp but tomcat can't find them.


On Thu, 2004-04-22 at 18:37, Parsons Technical Services wrote:
> What was it
> 
> 
> - Original Message - 
> From: "Mark Page" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Thursday, April 22, 2004 1:24 PM
> Subject: Re: [newbie] tomcat5+apache2 virtual hosting
> 
> 
> > I've sorted it - thanks anyway :)
> > 
> > On Thu, 2004-04-22 at 17:59, Mark Page wrote:
> > > Hi all,
> > > 
> > > I'm going nuts trying to do something pretty straight forward, namely
> > > getting TOMCAT to serve .jsp files via apache virtual hosts and still
> > > keep the default tomcat stuff at port 8080.
> > > 
> > > I've read every howto I can find and can only get one or the other to
> > > work. My confusion seems to revolve around the  element in
> > > server.xml.
> > > 
> > > What I want is to be able to do is point at http://localhost:8080 and
> > > see the tomcat welcome page. I then want to point to
> > > http://test.int/test.jsp and see the .jsp output.
> > > 
> > > The test.jsp file resides in /var/www/html/beta but I keep getting
> > > tomcat 404 error, so I guess it's having problems locating the .jsp and
> > > therefore suspect my contexts are incorrect.
> > > 
> > > I would be grateful is someone could have a look at my server.xml and
> > > hhtpd.conf snippets and enlighten me.
> > > 
> > > Regards.
> > > 
> > > 
> > > 
> > > this is how my server.xml is:
> > > 
> > >> >unpackWARs="true" autoDeploy="true"
> > >xmlValidation="false" xmlNamespaceAware="false">
> > > 
> > > > > directory="logs"  prefix="localhost_log." suffix=".txt"
> > > timestamp="true"/>
> > > 
> > >  
> > >   
> > > 
> > >  > > unpackWARs="true" autoDeploy="true">
> > > 
> > >  
> > > 
> > >  > > directory="logs"  prefix="test_int_log." suffix=".txt"
> > > timestamp="true" />
> > > 
> > > 
> > > and the relevant bit of httpd.conf:
> > > 
> > > 
> > > ServerName test.int
> > > ServerAdmin [EMAIL PROTECTED]
> > > DocumentRoot /var/www/html/beta
> > >
> > > JkUriSet worker ajp13:localhost:8009
> > >
> > > 
> > > 
> > > 
> > > 
> > > I have also tried using the workers2.properties file instead of the
> > > JkUriSet by entering
> > > 
> > > [uri:test.int/*.jsp]
> > > worker=ajp13:localhost:8009
> > > 
> > > but it dosen't seem to make much difference
> > > 
> > > 
> > > 
> > > 
> > > -
> > > 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]



Processing requests: another newbie mod_jk question

2004-04-22 Thread Malathi Jivan
Hi All,
I've got Apache(1.3) and Tomcat (4.1) happily chatting using the mod_jk 1.2
connector. Here is what I want to accomplish.

when an end user types www.foobar.com Apache should forward the request to
Tomcat who then picks up files from /dir1/dir2/abc.xml and displays it as
the homepage.

 I dont want Apache to know about the page and greedily try to process it
instead of sending it across to Tomcat.

Any ideas how I can do this?

Thanks

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



Re: How to limit concurrent requests by same user

2004-04-22 Thread MS
Put the token in the map only after the user submits the form.  Then, when
you finish processing the results, remove it from the map, and create a new
token.   Do not process a page if the token is already in the map.

(It sounds like you're doing the reverse - putting the token in the map when
you create the page, removing it when the user submits the form, and only
processing the page if the token is not in the map.)


- Original Message - 
From: "Antony" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Thursday, April 22, 2004 4:45 AM
Subject: RE: How to limit concurrent requests by same user


> I think you misunderstood my problem. On first page I create a token and
put
> it on a map.
> I then put the token as hidden fields in the page's form.
> When user submit the page, I check if the token is still exists on the
map.
>
> If not then maybe the user pressed back on his browser and resubmit again,
> or double clicked the link. (My application can handle this by returning a
> *default* page based on its current value.)
>
> If the token is on the list, it's removed and the a new token was created
> and put on the list and on the form.
> The cycles continues...
>
>
> But this approach has a couple of flaws:
> 1. if user double clicked on a link: the same token was sent twice. The
1st
> request processed by my app will never be seen by user, he only see the
page
> for the 2nd request, which is the *default* page. Suppose the 1st request
> returned an error message or something he'll never see it.
>
> 2. if the user click Abort before receiving the response, he's stuck with
> the old token which was *REMOVED* by my app, when it's processing the
> request. The page that contains the new token was never received by the
> user. He can't resubmit.
>
> I hope it's clear (sigh) English composition is not my subject.. :(
> I've not found any solution to this, so please if someone can share any
> solution.
>
> TIA
> Antony.
>
> > -Original Message-
> > From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]
> > Sent: 22 April 2004 13:49
> > To: Tomcat Users List
> > Subject: RE: How to limit concurrent requests by same user
> >
> >
> > You just have to remove the token no matter what happens.
> >
> > try {
> >
> >   // store token
> >
> >   // Do the processing and create output
> >
> > } catch(SomeException ex) { // Optional
> >
> > } finally {
> >
> >   // remove token
> >
> > }
> >
> > > -Original Message-
> > > From: Antony [mailto:[EMAIL PROTECTED]
> > > Sent: Thursday, April 22, 2004 8:38 AM
> > > To: 'Tomcat Users List'
> > > Subject: RE: How to limit concurrent requests by same user
> > >
> > >
> > > I tried this approach once, I got stuck on this scenario:
> > > user submit a form, jsp/servlet processes and remove the
> > token from list.
> > > But the user click abort before the page was transferred,
> > thus leaving
> > > him with old token. He can't ever submit the page again.
> > Anyone have
> > > think  of a solution for this can please share?
> > >
> >
> > -
> > 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: [newbie] tomcat5+apache2 virtual hosting

2004-04-22 Thread Yang Xiao
Wow, correct me if I'm wrong, but doesn't test.jsp have to be somewhere
under $CATALINA_HOME/ROOT no matter how you configure your virtual host in
Apache?
Yang

-Original Message-
From: Mark Page [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 22, 2004 1:48 PM
To: Tomcat Users List
Subject: Re: [newbie] tomcat5+apache2 virtual hosting

I fooled myself - forgot to clear-down browser cache after doing some
fiddling. :/  Still not working

I am using mod_jk2 - and as far as I can tell apache and tomcat do talk,
for example if I move my test.jsp to $CATALINA/webapps/ROOT and browse
to http:/test.int/test.jsp it works, so I guess that something is wrong
with the context for test.int ??? And also, the 404 is from tomcat, so
apache is handing over to tomcat for .jsp but tomcat can't find them.


On Thu, 2004-04-22 at 18:37, Parsons Technical Services wrote:
> What was it
> 
> 
> - Original Message - 
> From: "Mark Page" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Thursday, April 22, 2004 1:24 PM
> Subject: Re: [newbie] tomcat5+apache2 virtual hosting
> 
> 
> > I've sorted it - thanks anyway :)
> > 
> > On Thu, 2004-04-22 at 17:59, Mark Page wrote:
> > > Hi all,
> > > 
> > > I'm going nuts trying to do something pretty straight forward, namely
> > > getting TOMCAT to serve .jsp files via apache virtual hosts and still
> > > keep the default tomcat stuff at port 8080.
> > > 
> > > I've read every howto I can find and can only get one or the other to
> > > work. My confusion seems to revolve around the  element in
> > > server.xml.
> > > 
> > > What I want is to be able to do is point at http://localhost:8080 and
> > > see the tomcat welcome page. I then want to point to
> > > http://test.int/test.jsp and see the .jsp output.
> > > 
> > > The test.jsp file resides in /var/www/html/beta but I keep getting
> > > tomcat 404 error, so I guess it's having problems locating the .jsp
and
> > > therefore suspect my contexts are incorrect.
> > > 
> > > I would be grateful is someone could have a look at my server.xml and
> > > hhtpd.conf snippets and enlighten me.
> > > 
> > > Regards.
> > > 
> > > 
> > > 
> > > this is how my server.xml is:
> > > 
> > >> >unpackWARs="true" autoDeploy="true"
> > >xmlValidation="false" xmlNamespaceAware="false">
> > > 
> > > > > directory="logs"  prefix="localhost_log." suffix=".txt"
> > > timestamp="true"/>
> > > 
> > >  
> > >   
> > > 
> > >  > > unpackWARs="true" autoDeploy="true">
> > > 
> > >  
> > > 
> > >  > > directory="logs"  prefix="test_int_log." suffix=".txt"
> > > timestamp="true" />
> > > 
> > > 
> > > and the relevant bit of httpd.conf:
> > > 
> > > 
> > > ServerName test.int
> > > ServerAdmin [EMAIL PROTECTED]
> > > DocumentRoot /var/www/html/beta
> > >
> > > JkUriSet worker ajp13:localhost:8009
> > >
> > > 
> > > 
> > > 
> > > 
> > > I have also tried using the workers2.properties file instead of the
> > > JkUriSet by entering
> > > 
> > > [uri:test.int/*.jsp]
> > > worker=ajp13:localhost:8009
> > > 
> > > but it dosen't seem to make much difference
> > > 
> > > 
> > > 
> > > 
> > > -
> > > 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: IIS 6.0 and JK2 Performance Issue

2004-04-22 Thread Alex Gibson
Can anyone confirm this behavior for me?  The slow downloads occur if I just 
try to download a file through my web browser.   I just want to make sure it 
is not something I am doing wrong.  I am running Windows Server 2003 
Standard Edition.  I am running IIS 6.0 ,Tomcat 5.0.19, and JK2.0.4.  I just 
put a large ZIP (30MB) file on a website a running on Tomcat and then tried 
downloading it.  If I go through IIS and JK2 it is limited to approximately 
42 KB/sec.  If I connect directly to tomcat on port 8080, the same download 
goes at about 10 MB/sec.  As you can see there is a big difference.  If 
anyone has a similar setup to mine and can test this performance, I would 
really appreciate it.  Thanks again.

Alex


From: "Alex Gibson" <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: RE: IIS 6.0 and JK2 Performance Issue
Date: Tue, 20 Apr 2004 11:32:20 -0700
Hello All,

Here is a image to show how it behaves on file downloads.  However, when I 
upload a file there is no issue, it uses as much of the bandwidth as 
possible.

Alex Gibson


From: "Alex Gibson" <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: IIS 6.0 and JK2 Performance Issue
Date: Mon, 19 Apr 2004 15:18:43 -0700
Hello,

I recently upgraded to Windows 2003 Server using IIS 6 and Tomcat 5.  I 
have a java applet that talks to a java servlet using http.  I am using 
IIS 6 for user authentication.  Once I had it setup, I noticed that when a 
large amount of data was transferred from the server to the applet, it was 
taking much more time then it did on my older and much slower Windows 2000 
server.  After some experimenting I was able to see that all network 
traffic between the applet and servlet would max out at a consistent 
0.34Mbps.  Considering that the server is not doing anything else, this 
seems really strange since it should be capable of running at 1Gbps.  When 
I used my old server, it could transfer a rates way above this limit.  I 
have tried both Tomcat versions 4 and 5 and both jk and jk2 redirector.  
The performance is the same with any of these combinations.  If I tell the 
applet to talk to tomcat directly on port 8080, then the performance is 
great.  However, I need to get it to work with IIS 6.  If anyone knows how 
this can be fixed, I would greatly appreciate it.  Thanks.

Alex Gibson

_
Watch LIVE baseball games on your computer with MLB.TV, included with MSN 
Premium! 
http://join.msn.com/?page=features/mlb&pgmarket=en-us/go/onm00200439ave/direct/01/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Get rid of annoying pop-up ads with the new MSN Toolbar – FREE! 
http://toolbar.msn.com/go/onm00200414ave/direct/01/
<< network_util.jpg >>
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
From must-see cities to the best beaches, plan a getaway with the Spring 
Travel Guide! http://special.msn.com/local/springtravel.armx

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


RE: [newbie] tomcat5+apache2 virtual hosting

2004-04-22 Thread Mark Page
OK - it definitely is working now, the link below seemed to be
describing my problem to a tee - i had the jpackage mod_jk2 rpm.
http://cymulacrum.net/writings/tomcat5/a1204.html

Done exactly the same setup on a live server with a compiled mod_jk2 and
it works as expected (tested with quite a few virtual hosts).

Yang: apparently not, I have the following virtual setup...notice the
appbase and context in server.xml just points to the apache
documentroot, if apache sees a .jsp it palms off the request to tomcat
where it finds the same file and compiles it on the fly.

for apache (httpd.conf):


   ServerName SOME.HOST.NAME
   DirectoryIndex index.html
   DocumentRoot "/var/www/html/beta"
   
   JkUriSet worker ajp13:localhost:8009
   



and tomcat (server.xml):







On Thu, 2004-04-22 at 19:03, Yang Xiao wrote:
> Wow, correct me if I'm wrong, but doesn't test.jsp have to be somewhere
> under $CATALINA_HOME/ROOT no matter how you configure your virtual host in
> Apache?
> Yang
> 
> -Original Message-
> From: Mark Page [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, April 22, 2004 1:48 PM
> To: Tomcat Users List
> Subject: Re: [newbie] tomcat5+apache2 virtual hosting
> 
> I fooled myself - forgot to clear-down browser cache after doing some
> fiddling. :/  Still not working
> 
> I am using mod_jk2 - and as far as I can tell apache and tomcat do talk,
> for example if I move my test.jsp to $CATALINA/webapps/ROOT and browse
> to http:/test.int/test.jsp it works, so I guess that something is wrong
> with the context for test.int ??? And also, the 404 is from tomcat, so
> apache is handing over to tomcat for .jsp but tomcat can't find them.
> 
> 
> On Thu, 2004-04-22 at 18:37, Parsons Technical Services wrote:
> > What was it
> > 
> > 
> > - Original Message - 
> > From: "Mark Page" <[EMAIL PROTECTED]>
> > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > Sent: Thursday, April 22, 2004 1:24 PM
> > Subject: Re: [newbie] tomcat5+apache2 virtual hosting
> > 
> > 
> > > I've sorted it - thanks anyway :)
> > > 
> > > On Thu, 2004-04-22 at 17:59, Mark Page wrote:
> > > > Hi all,
> > > > 
> > > > I'm going nuts trying to do something pretty straight forward, namely
> > > > getting TOMCAT to serve .jsp files via apache virtual hosts and still
> > > > keep the default tomcat stuff at port 8080.
> > > > 
> > > > I've read every howto I can find and can only get one or the other to
> > > > work. My confusion seems to revolve around the  element in
> > > > server.xml.
> > > > 
> > > > What I want is to be able to do is point at http://localhost:8080 and
> > > > see the tomcat welcome page. I then want to point to
> > > > http://test.int/test.jsp and see the .jsp output.
> > > > 
> > > > The test.jsp file resides in /var/www/html/beta but I keep getting
> > > > tomcat 404 error, so I guess it's having problems locating the .jsp
> and
> > > > therefore suspect my contexts are incorrect.
> > > > 
> > > > I would be grateful is someone could have a look at my server.xml and
> > > > hhtpd.conf snippets and enlighten me.
> > > > 
> > > > Regards.
> > > > 
> > > > 
> > > > 
> > > > this is how my server.xml is:
> > > > 
> > > >> > >unpackWARs="true" autoDeploy="true"
> > > >xmlValidation="false" xmlNamespaceAware="false">
> > > > 
> > > > > > > directory="logs"  prefix="localhost_log." suffix=".txt"
> > > > timestamp="true"/>
> > > > 
> > > >  
> > > >   
> > > > 
> > > >  > > > unpackWARs="true" autoDeploy="true">
> > > > 
> > > >  
> > > > 
> > > >  > > > directory="logs"  prefix="test_int_log." suffix=".txt"
> > > > timestamp="true" />
> > > > 
> > > > 
> > > > and the relevant bit of httpd.conf:
> > > > 
> > > > 
> > > > ServerName test.int
> > > > ServerAdmin [EMAIL PROTECTED]
> > > > DocumentRoot /var/www/html/beta
> > > >
> > > > JkUriSet worker ajp13:localhost:8009
> > > >
> > > > 
> > > > 
> > > > 
> > > > 
> > > > I have also tried using the workers2.properties file instead of the
> > > > JkUriSet by entering
> > > > 
> > > > [uri:test.int/*.jsp]
> > > > worker=ajp13:localhost:8009
> > > > 
> > > > but it dosen't seem to make much difference
> > > > 
> > > > 
> > > > 
> > > > 
> > > > -
> > > > 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]
> 

auto-configuration of mod_jk

2004-04-22 Thread Emerson Cargnin
I'm using tomcat 5.0.19, apache 2.0.47, mod_jk...

Tomcat generates a mod_jk.conf file with the following clause before the
jkmount clauses:

ServerName localhost
With this clause, apache does not create any mapping...

This is my configuration of the listener...

Is there any other property of this configuration? The virtualhost
clause has to match with some apache configuration???

forwardAll="false"  modJk="/usr/lib/apache2/mod_jk.so"
jkworkersConfig="/home/echo/download/jakarta-tomcat-5.0.19/worker.properties" 

   />



--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
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: auto-configuration of mod_jk

2004-04-22 Thread Daniel Gibby
Emerson,

I don't think many of us are understanding what it is you are asking... 
What are you trying to accomplish or what errors or obstacles are you 
trying to overcome?

Daniel Gibby

Emerson Cargnin wrote:

I'm using tomcat 5.0.19, apache 2.0.47, mod_jk...

Tomcat generates a mod_jk.conf file with the following clause before the
jkmount clauses:

ServerName localhost
With this clause, apache does not create any mapping...

This is my configuration of the listener...

Is there any other property of this configuration? The virtualhost
clause has to match with some apache configuration???

forwardAll="false"  modJk="/usr/lib/apache2/mod_jk.so"
jkworkersConfig="/home/echo/download/jakarta-tomcat-5.0.19/worker.properties" 

   />






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


RES: auto-configuration of mod_jk

2004-04-22 Thread Ricardo Campos
Look for the  tag in you server.xml
The name parameter should be equal to localhost
Change it to your server name

-Mensagem original-
De: Emerson Cargnin [mailto:[EMAIL PROTECTED] 
Enviada em: quinta-feira, 22 de abril de 2004 16:15
Para: Tomcat Users List
Assunto: auto-configuration of mod_jk

I'm using tomcat 5.0.19, apache 2.0.47, mod_jk...


Tomcat generates a mod_jk.conf file with the following clause before the
jkmount clauses:


 ServerName localhost


With this clause, apache does not create any mapping...

This is my configuration of the listener...

Is there any other property of this configuration? The virtualhost
clause has to match with some apache configuration???







-- 
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181

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



What is the relationship between the JK2 uri compoennt and the context?

2004-04-22 Thread Moran Ben-David
In workers2.properties I changed the uri to be different than the context..
and now I get a 404 using the new uri?  Does the URI have to be the same as
the Context?

 

I am trying to support the following url

 

http://localhost/newname/

 

with the following workers2.properties configuration:

 

[uri:/pbt/*]

info=Servlet examples, map requests for all servlets to Tomcat.

context=/pbt

 

[uri:/pbtzzz/*]

info=Servlet examples, map requests for all servlets to Tomcat.

context=/pbt

 

[uri:/newname/*]

info=Servlet examples, map requests for all servlets to Tomcat.

context=/pbt

 

When I click on the above link, I get a 404.

 

When I click on http://localhost/pbtzzz/ I get a Tomcat error 404 page

type Status report

message /pbtx

description The requested resource (/pbtx) is not available.

I'm not sure what to configure to map different to support this.. my long
term goal is to support multiple DNS name for one server.. mapping each DNS
name to a different tomcat application.. however in the short run.. I'll
settle for mapping of a single DNS name with different ports mapping to
different tomcat applications.  Should I be looking at creating HOST
components in Server.xml?

 

Any help would be greatly appreicated.  Thanks,

Moran Ben-David



java.mail.Session TC5 woes

2004-04-22 Thread Mark Lowe
I've been googling around and I gather its a problem but I haven't 
found a solution yet. Are there any nooks and cranies to using java 
mail with TC5, I've tried most the different options i can think of 
(JNDI and then getting the session from there, getInstance in the 
servlet) but nothing just keep getting

java.lang.NoClassDefFoundError: javax/activation/DataSource

These apps work on 4.1.

Any insights welcome.

Mark

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


Re: java.mail.Session TC5 woes

2004-04-22 Thread David Smith
Do you have both mail.jar and activation.jar in your WEB-INF/lib or 
common/lib folder?  Both are available free from Sun's website.

--David

Mark Lowe wrote:

I've been googling around and I gather its a problem but I haven't 
found a solution yet. Are there any nooks and cranies to using java 
mail with TC5, I've tried most the different options i can think of 
(JNDI and then getting the session from there, getInstance in the 
servlet) but nothing just keep getting

java.lang.NoClassDefFoundError: javax/activation/DataSource

These apps work on 4.1.

Any insights welcome.

Mark

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


Session problem with multiple Tomcats

2004-04-22 Thread tschroeck




We are running multiple Tomcat servers with multiple JVM's and ports.
Everything works fine except for the sessions.
When using one browser (IE) and I flip back an forth between the two sites
( on the two ports ), the sessions are lost.

How does Tomcat's session logic work?  Is there a way to define two
different session names so they don't clash under one browser?

We've worked around it so far by using IE with one port and Netscape with
the other.

I've included the server.xml's from the two servers.

Thanks for any help
Ted



  
  










  
  

  

  
  











  



  









  
  






  





  
  

  

  
  











  



  




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



Re: ClassCastException with own Principal interface and implementation

2004-04-22 Thread Jon Wingfield
This is probably a classloader issue. The Realm will load classes from 
the server classloader. Your webapp will also load the same classes in 
its own classloader. The two types of CrmPrincipal are not assignable so 
a ClassCastException results. Try placing the CrmPrincipal class in 
common/lib and removing it from your webapp.

HTH,

Jon

ralf lorenz wrote:
hi there,

i've written my own realm 'CrmJDBCRealm' which extends the 'JDBCRealm' 
one  of catalina.

this realm creates and returns a principal of type 'CrmPrincipalImpl' which
extends 'GenericPrincipal' and implements 'CrmPrincipal'.
'CrmPrincipal' has getter for an 'id' and getter and setter for a  
'currentRole' field and extends
'Principal' as well as 'GenericPrincipal' does.

'CrmJDBCRealm', 'CrmPrincipalImpl' and 'CrmPrincipal' are packed together
into a .jar and placed under %CATALINA_HOME%/server/lib
on the other side the application only has the 'CrmPrincipal' included, 
so  it doesn't know
about 'CrmPrincipalImpl'. (even if it does nothing changed!)

in my application i have a 'ChangeRoleAction' that is supposed to update
the 'currentRole' if the user decides to have, only application-wide,
another role. again that's nothing to do with the roles of the user 
that  are known
by the server via the 'GenericPrincipal'.

when i try the following i get an ClassCastException

CrmPrincipal principal = (CrmPrincipal) request.getUserPrincipal();

printing out the name of the class the request gives the  
'CrmPrincipalImpl' will be stated.
so the realm works fine but the cast can't be done.

any help?

ralf




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


Memory problem with tomcat 4130

2004-04-22 Thread Software
Hi, i've installed tomcat 4130 in my linux redhat 9.0 with the default 
kernel and j2sdk1.4.0 in a server with 1 GB RAM and 2.4Ghz Processor

The problem is when i start the tomcat it start to consume the memory 
progressively and i don't have running any application in this moment, 
then i have to restart the tomcat again to get memory free.

What can be wrong.

Fabian

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


Re: another problem with JAAS

2004-04-22 Thread Adam Hardy
The servlet container spec from Sun doesn't specify any integration 
requirements for JAAS. The JAAS support is basically fledgeling 
authentication, and that's it for servlet spec 2.4 - I would be 
interested myself in seeing the discussions and motivations behind the 
progress and changes on the road to 2.5, but I don't know whether it's 
public.

On 04/22/2004 03:52 PM Peter Rossbach wrote:
Hello,

strange error!

I have looked inside the JAASRealm code and can't find a error.
Subject result:
   You must have as your subject one Principal (java.security.Principa) 
for real user
   Than you can have one or more Group Principals with Name ="Roles" 
from class java.security.acl.Group
   for the real user roles!
All member names from this groups are added to the tomcat role 
names.
   An option is you generate your own GenericPrincipal!

regards
Peter
http://tomcat.objektpark.org
Beloglazov Maksim schrieb:

Hello,

I've written a JAAS LoginModule and my web application successfully 
authorizes with it. But! While the authorization is successful, Tomcat 
does not recognize user Principals and roles which I assign in login 
module and returns that I have logged as a *null* user with no roles 
assigned to it.

server.xml:

  

ru.mb.security.jaas.RdbmsPrincipal and ru.mb.security.jaas.RdbmsRole 
are implementations of java.security.Principal interface. How can I 
force Tomcat recognize these Principals in a proper way? Can be the 
problem with moving javax.security.Principal of earlier JDKs to 
java.security.Principal in modern ones?

Any help is greatly appreciated.

Beloglazov Maksim.





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



--
struts 1.2 + tomcat 5.0.19 + java 1.4.2
Linux 2.4.20 Debian
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: java.mail.Session TC5 woes

2004-04-22 Thread Mark Lowe
Yeah .. Tried in both, either, or. ..

and in shared/lib to boot but no joy.



On 22 Apr 2004, at 21:52, David Smith wrote:

Do you have both mail.jar and activation.jar in your WEB-INF/lib or 
common/lib folder?  Both are available free from Sun's website.

--David

Mark Lowe wrote:

I've been googling around and I gather its a problem but I haven't 
found a solution yet. Are there any nooks and cranies to using java 
mail with TC5, I've tried most the different options i can think of 
(JNDI and then getting the session from there, getInstance in the 
servlet) but nothing just keep getting

java.lang.NoClassDefFoundError: javax/activation/DataSource

These apps work on 4.1.

Any insights welcome.

Mark

-
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: Cannot use JK2 with Tomcat5 and IIS 5

2004-04-22 Thread QM
On Thu, Apr 22, 2004 at 01:14:03PM -0400, Moran Ben-David wrote:
: 
: Thanks for the warning.. I'm using JK2 on the assumption that JK2 would be
: better and didn't want to be left behind.

Sort-of yes, sort-of no:
JK is newer, and it's certainly going to get more development attention
for the time being... just like Tomcat5.

For the archives, and in the hopes that I alleviate some frustrations:

A lot of people out there seem to think Apache2 and/or Tomcat5 requires
JK2. That's NOT the case.

I run Apache2 + jk + Tomcat5 and it's been fine.

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



Re: java.mail.Session TC5 woes

2004-04-22 Thread QM
On Thu, Apr 22, 2004 at 11:21:55PM +0200, Mark Lowe wrote:
: Yeah .. Tried in both, either, or. ..
: 
: and in shared/lib to boot but no joy.

common/lib should be fine.

NoClassDefFoundError usually means that the class was found, but it's
not quite what was expected by the calling coe.

Are these the same versions of these jars that were used to build your
app?  -or have you rebuilt your app on these jars?

-and there's not another jar in the classpath (or in one of the /lib
dirs) with a conflicting class?

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



Simple question regarding Body Tags

2004-04-22 Thread Mufaddal Khumri
I am using Tomcat 4.1.29

I have a bodytag called Page

In the constructor of this Tag I do this:

HttpSession session = null;

try
{
session = pageContext.getSession();
}
catch(Exception ex)
{
ex.printStackTrace();
}
When I use this tag on a JSP page and try to access this jsp page, I  
get the following:

org.apache.jasper.JasperException
at  
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja 
va:254)
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(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:256)
at  
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i 
nvokeNext(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(StandardContextValv 
e.java:191)
at  
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i 
nvokeNext(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: 
2417)
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:171)
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.valves.AccessLogValve.invoke(AccessLogValve.java: 
577)
at  
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i 
nvokeNext(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.i 
nvokeNext(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:193)
at  
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:309)
at  
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:387)
at  
org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:673)
at  
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java: 
615)
at  
org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:786)
at  
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool 
.java:666)
at java.lang.Thread.run(Thread.java:552)

root cause
javax.servlet.ServletException
at  
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContex 
tImpl.java:531)
at org.apache.jsp.Home_jsp._jspService(Home_jsp.java:276)
at  
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at  
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja 
va:210)
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(Applica 
tionFilterChain.java:247)
at  
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt 
erChain.java:193)
at  
org.apache.catalina.core.

RE: Processing requests: another newbie mod_jk question

2004-04-22 Thread Malathi Jivan
Does anyone have answers to this?

Thanks,
Malathi

From: "Malathi Jivan" <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Subject: Processing requests: another newbie mod_jk question
Date: Thu, 22 Apr 2004 10:46:45 -0700
Hi All,
I've got Apache(1.3) and Tomcat (4.1) happily chatting using the mod_jk 1.2
connector. Here is what I want to accomplish.
when an end user types www.foobar.com Apache should forward the request to
Tomcat who then picks up files from /dir1/dir2/abc.xml and displays it as
the homepage.
 I dont want Apache to know about the page and greedily try to process it
instead of sending it across to Tomcat.
Any ideas how I can do this?

Thanks

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
FREE pop-up blocking with the new MSN Toolbar – get it now! 
http://toolbar.msn.com/go/onm00200415ave/direct/01/

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


Returned Mail: Error During Delivery

2004-04-22 Thread postmaster
-- Here is your List of Failed Recipients --
<[EMAIL PROTECTED]>


Requested action not taken: mailbox unavailable. [SMTP Error Code 550]

 Here Is Your Returned Mail 
Received: FROM Softgate1.Softimage.COM BY exterminator ; Thu Apr 22 21:19:14 2004 -0400
Received: from softimage.com ([203.106.69.74])
by Softgate1.Softimage.COM (8.12.9/8.12.1) with SMTP id i3N1FkTI023510
for <[EMAIL PROTECTED]>; Thu, 22 Apr 2004 21:15:48 -0400
Message-Id: <[EMAIL PROTECTED]>
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Mail Delivery (failure [EMAIL PROTECTED])
Date: Fri, 23 Apr 2004 09:14:18 +0800
MIME-Version: 1.0
Content-Type: multipart/related;
type="multipart/alternative";
boundary="=_NextPart_000_001B_01C0CA80.6B015D10"
X-Priority: 3
X-MSMail-Priority: Normal

Network Associates WebShield SMTP V4.5 MR1a on exterminator detected virus
W32/[EMAIL PROTECTED] in attachment unknown from <[EMAIL PROTECTED]> and it was Deleted
and Quarantined. Please take appropriate measures to clean-up your system.


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



OT: Open Source JSP / Taglib Calendar

2004-04-22 Thread Eric Noel
Any one here knows of a good Open source Calendar either jsp or taglib?

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


  1   2   >