Re: Help using JDBC realm with MySQL

2002-04-12 Thread Shawn A. Wilson

Oh the simplest things are often the overlooked. I can't believe... I 
don't remember where I got this driver but it was extremely old (v1.2c)!

Thanks for the help,
-shawn

http://www.shawn-wilson.com

Hugh Brien wrote:

> Try the latest version of the driver
> r,
> Hugh
> - Original Message -
> From: "Shawn A. Wilson" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Thursday, April 11, 2002 8:11 PM
> Subject: RE: Help using JDBC realm with MySQL
> 
> 
> 
>>Well, I tried adding the relaxAutocommit=true parameter but I still get
>>the same message. Arg... this is not making any sense. Do my tables need
>>to be of a specific type? I created them without any options so they
>>should be MyISAM.
>>
>>-shawn
>>
>>http://www.shawn-wilson.com
>>
>>On Thu, 11 Apr 2002, Dennis Doubleday wrote:
>>
>>
>>>Add the following parameter to your connection URL: relaxAutocommit=true
>>>
>>>So it should look like:
>>>
>>>jdbc:mysql://localhost/peopleshare?relaxAutocommit=true&user=hidden&pass
>>>word=hidden
>>>
>>>
-Original Message-
From: Shawn A. Wilson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 11, 2002 2:33 PM
To: Tomcat Users List
Subject: Re: Help using JDBC realm with MySQL


Does nobody know a solution to get around this problem? I
have received no
replies and I desparately need to know how to get around the "Cannot
disable AUTO_COMMIT" error with JDBC realms and MySQL.


>>>
>>>--
>>>To unsubscribe:   
>>>For additional commands: 
>>>Troubles with the list: 
>>>
>>
>>--
>>To unsubscribe:   
>>For additional commands: 
>>Troubles with the list: 
>>
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Using Apache2 + Tomcat4 together

2002-04-12 Thread Darrin

I have Apache2 up and running fine, as well as Tomcat4 (with a webapp
deployed).

I just want to set up so that people can access the Tomcat webapp by
typing http://mywebbapp.mydomain.com rather than the very annoying
http://mydomain.com:8080/mywebapp without having any affect on any
requests sent to http://mydomain.com and vis versa.

Is there a simple way to do this without changing anything major
regarding the current installations of Apache, Tomcat, and my webapp?

Any advice would be much appreciated.

Darrin




--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Gif Image: Seperator Missing:

2002-04-12 Thread dana

I don't know what other tools you have tried, but there are the Ulead
products, and then there is GIMP, that one is free. Hope that helps.

Dana
- Original Message -
From: "Ravindra K. Bhat" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, April 12, 2002 3:08 PM
Subject: Gif Image: Seperator Missing:


> Hello:
>
> Any alternate tool to create GIF images?,,I've used Adobe Photoshop...and
> a few other tools but they all seem to not include the "Global Color
> Table" and my program throws "separator  '0x2c' is not found after reading
> the color table' error"...
>
> Thanks
>
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: classloader problem

2002-04-12 Thread Ray Tayek

At 05:54 PM 4/12/02 -0700, you wrote:
>... Two of our webapps both need the same .jar file. ...
>
>Following the documentation, I tried putting a link to the jar file in 
>each of the following directories:
>
>$CATALINA_HOME/lib
>$CATALINA_HOME/common/lib
>
>To my surprise the classes were not found.   In desperation I also tried:

i have a similar problem. supposedly, the files you put in /ROOT will also 
work, but neither /ROOT or /common work for me. someone recommended 
.../jdk/ext, but i have not tried that yet.

thanks

---
ray tayek http://home.attbi.com/~rtayek/
actively seeking telecommuting work
vice chair orange county java users group http://www.ocjug.org/ 
mailto:[EMAIL PROTECTED]
hate spam? http://samspade.org/ssw/


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Please Help!! SSL problem

2002-04-12 Thread Ann

Dear all,

  I have set the JSSE_HOME already and used catalina run to startup the
tomcat. There are no error message to startup , but when I try to access the
servlet and execute them, they show the following errors:


java.lang.NoSuchMethodError
at
org.apache.catalina.connector.ResponseStream.flush(ResponseStream.java:244)
at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:245)
at java.io.PrintWriter.flush(PrintWriter.java:120)
at
org.apache.catalina.connector.ResponseWriter.flush(ResponseWriter.java:125)
at
org.apache.catalina.connector.ResponseBase.finishResponse(ResponseBase.java:
481)
at
org.apache.catalina.connector.HttpResponseBase.finishResponse(HttpResponseBa
se.java:229)
at
org.apache.catalina.connector.http.HttpResponseImpl.finishResponse(HttpRespo
nseImpl.java:288)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1038)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106
)
at java.lang.Thread.run(Thread.java:484)

   When I use the startup from the Startup menu of window, it simply
jump out and cannot start the tomcat. Please help!!!
Thank you very much

Ann Lee


- Original Message -
From: "Heather Samsel" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, April 13, 2002 4:34 AM
Subject: Please Help!! SSL problem


> Ann,
>
> I just saw your email on Tomcat list serve. Two things to tell you (I just
> solved the same problem).
>
> 1. set the environment variable JSEE_HOME this will solve your problem.
> example:
> set JSSE_HOME=D:\jsse1.0.2
>
> 2. Instead of "startup" try "catalina run" so that you can see any errors
> that occur in the start up.


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Help using JDBC realm with MySQL

2002-04-12 Thread Hugh Brien

Try the latest version of the driver
r,
Hugh
- Original Message -
From: "Shawn A. Wilson" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, April 11, 2002 8:11 PM
Subject: RE: Help using JDBC realm with MySQL


> Well, I tried adding the relaxAutocommit=true parameter but I still get
> the same message. Arg... this is not making any sense. Do my tables need
> to be of a specific type? I created them without any options so they
> should be MyISAM.
>
> -shawn
>
> http://www.shawn-wilson.com
>
> On Thu, 11 Apr 2002, Dennis Doubleday wrote:
>
> > Add the following parameter to your connection URL: relaxAutocommit=true
> >
> > So it should look like:
> >
> > jdbc:mysql://localhost/peopleshare?relaxAutocommit=true&user=hidden&pass
> > word=hidden
> >
> > > -Original Message-
> > > From: Shawn A. Wilson [mailto:[EMAIL PROTECTED]]
> > > Sent: Thursday, April 11, 2002 2:33 PM
> > > To: Tomcat Users List
> > > Subject: Re: Help using JDBC realm with MySQL
> > >
> > >
> > > Does nobody know a solution to get around this problem? I
> > > have received no
> > > replies and I desparately need to know how to get around the "Cannot
> > > disable AUTO_COMMIT" error with JDBC realms and MySQL.
> > >
> >
> >
> > --
> > To unsubscribe:   
> > For additional commands: 
> > Troubles with the list: 
> >
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




jspc : taglib mapping support

2002-04-12 Thread @Basebeans.com

Subject: jspc : taglib mapping support
From: "Lian Seng, Loh" <[EMAIL PROTECTED]>
 ===
Hi,
I have jsp with taglib-uri lime "/WEB-INF/struts-html.tld", but are actually
mapped to a different location under WEB-INF.  ie in web.xml :-
 
/WEB-INF/struts-html.tld
/WEB-INF/tlds/struts-html.tld
  

 During JspC, these tlds generated an parsing error :-

2002-04-13 09:52:45 - error-the file '\catalog\edit.jsp' generated the
following
 parse exception: org.apache.jasper.JasperException: File
"/WEB-INF/struts-html.tld" not found

I cannot find any options that will enable this - is this supported ?

Thanks.
LS



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Unable to locate classes not in package

2002-04-12 Thread Todd Kaplinger

Starting with Tomcat 4.0, jsp's are put into a default package name 
specified by Tomcat.  Java classes not in packages need to be explicitly 
imported.


>From: "Patricia Doyle" <[EMAIL PROTECTED]>
>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Unable to locate classes not in package
>Date: Fri, 12 Apr 2002 21:46:22 +
>
>Tomcat is unable to locate the class files which are not part of any
>package. It can find the other classes which are placed with these classes
>and are in a package. Does anybody have any idea why it is doing so?
>
>Thanks,
>Pat Doyle
>
>
>
>_
>Join the world’s largest e-mail service with MSN Hotmail.
>http://www.hotmail.com
>
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 
>




---
Todd Kaplinger
mailTo:[EMAIL PROTECTED]


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




classloader problem

2002-04-12 Thread Neil McKee

Tomcat is awesome, but I have a vexing classloader problem...

I am using the rpm installation tomcat4-4.0.3-1 on Red Hat 7.2 with 
CATALINA_HOME set to /var/tomcat4 and CATALINA_BASE set to point to a 
different directory, where we have our own webapps.

Two of our webapps both need the same .jar file.  It works when we link 
to the jar file from within each WEB-INF/lib directory. However the jar 
accesses a JNI native library,  so we have to put that jar file 
somewhere where it can be shared  (otherwise we can get an error saying 
the native library is being loaded twice).

Following the documentation, I tried putting a link to the jar file in 
each of the following directories:

$CATALINA_HOME/lib
$CATALINA_HOME/common/lib

To my surprise the classes were not found.   In desperation I also tried:

$CATALINA_BASE/lib
$CATALINA_BASE/common/lib
$CATALINA_BASE/webapps/lib

No luck.

I checked file permissions and all that, but they were OK too.

It seems the only way these classes are getting loaded is when the jar 
file is visible under:

$CATALINA_BASE/webapps//WEB-INF/lib

I'm really sorry if I'm missing something obvious, but I just don't seem 
to be able to get the "shared" classloader to do its thing.

Any suggestions?

neil

-- 
Neil McKee, InMon Corp.
tel: +1 (415) 661-6343
http://www.inmon.com



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: JCE and Tomcat-4.0.3

2002-04-12 Thread Ilhami Topaloglu

putting the jar files in the TOMCAT_HOME\common\lib directoy worked!

-Original Message-
From: Ganey, Todd [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 12, 2002 2:40 PM
To: 'Tomcat Users List'
Subject: RE: JCE and Tomcat-4.0.3


Hmm.  In my experience the error stack trace was double what you published.
The top part would look like what you have posted and then there would be a
"root cause" which pertained more directly to the servlet you were
attempting to run.  From the trace you have provided I have no clue. Sorry.
As for where to place the jar files.  If you are using less than JDK 1.4.x
then I have had, in my experience, no luck with placing the jars in the
webapps lib folder.  I placed them in common\lib folder, just
TOMCAT_HOME\lib might work as well.  Where ever you have them, just have
them once.  Don't have them in multiple places.  Another place you could put
them would be the Java Ext folder for the JDK.

Hope that helps.

Todd

-Original Message-
From: Ilhami Topaloglu [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 12, 2002 2:34 PM
To: Tomcat Users List
Subject: RE: JCE and Tomcat-4.0.3


correction;
JCE jars are in the

TOMCAT_HOME\webapps\"myApplication"\Web-inf\lib

-Original Message-
From: Ilhami Topaloglu [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 12, 2002 2:30 PM
To: Tomcat Users List
Subject: RE: JCE and Tomcat-4.0.3


JCE jar files are in the TOMCAT_HOME\lib and also in the
TOMCAT_HOME\application\Web-inf\lib directory. I also tried to put them in
TOMCAT_HOME\server\lib

error stackTrace is:
04/12/02 13:41:10  javax.servlet.ServletException - Servlet execution threw
an exception
javax.servlet.ServletException: Servlet execution threw an exception
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:269)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1012)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107
)
at java.lang.Thread.run(Thread.java:484)


-Original Message-
From: Ganey, Todd [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 12, 2002 1:54 PM
To: 'Tomcat Users List'
Subject: RE: JCE and Tomcat-4.0.3


Well from the little information you provided I am not sure what is going
on.  But from the fact that you are dynamically adding the provider I assume
you are using JDK 1.3.x or earlier. If so where have you placed the JCE
jars?  What is the error/exception you get when running the code?

Todd

-Original Message-
From: Ilhami Topaloglu [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 12, 2002 11:53 AM
To: [EMAIL PROTECTED]
Subject: JCE and Tomcat-4.0.3


I wrote a pass phrase Encryption code that when I run it outside Tomcat env.
it works fine, but when I run it on Tomcat, it fails.

this is 

How many SSL certificates are needed for Tomcat with IIS?

2002-04-12 Thread Hawkins, Keith (Keith)


I generated CSR via Sun's keytool, sent it to verisign, and imported the resulting 
certificate into a keystore file.
I tried to get IIS to import this certificate, but it rejects it.  Do I have to 
request the certificate from IIS?  Do I need to
have two certificates, one for tomcat and one for IIS?

Thanks,
Keith




RE: login.do not found

2002-04-12 Thread Mike Jackson

Probably a struts error, or at least that's what I'd guess.

--mikej
-=-
mike jackson
[EMAIL PROTECTED] 

> -Original Message-
> From: jo outen [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 12, 2002 3:22 PM
> To: [EMAIL PROTECTED]
> Subject: login.do not found
> 
> 
> I am trying to deploy an a JSP WAR. When I try to
> login to the connection I am getting a login.do not
> found. Can anyone help me to figure out what this is?
> 
> 
> __
> Do You Yahoo!?
> Yahoo! Tax Center - online filing with TurboTax
> http://taxes.yahoo.com/
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




login.do not found

2002-04-12 Thread jo outen

I am trying to deploy an a JSP WAR. When I try to
login to the connection I am getting a login.do not
found. Can anyone help me to figure out what this is?


__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 





Gif Image: Seperator Missing:

2002-04-12 Thread Ravindra K. Bhat

Hello:

Any alternate tool to create GIF images?,,I've used Adobe Photoshop...and
a few other tools but they all seem to not include the "Global Color
Table" and my program throws "separator  '0x2c' is not found after reading
the color table' error"...

Thanks



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Unable to locate classes not in package

2002-04-12 Thread Patricia Doyle

Tomcat is unable to locate the class files which are not part of any 
package. It can find the other classes which are placed with these classes 
and are in a package. Does anybody have any idea why it is doing so?

Thanks,
Pat Doyle



_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




PHP4, Chilisoft ASP, TOMCAT, Apache

2002-04-12 Thread randy melder

Has anyone experienced problems with this configuration? I am seeing
that PHP is very slow.

; ) .randy

/***
* Cheery Lynn Interactive, LLC
* http://www.cheerylynn.com/
* tel://602 279 0135
* Web Applications--
***/


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: JCE and Tomcat-4.0.3

2002-04-12 Thread Ganey, Todd

Hmm.  In my experience the error stack trace was double what you published.
The top part would look like what you have posted and then there would be a
"root cause" which pertained more directly to the servlet you were
attempting to run.  From the trace you have provided I have no clue. Sorry.
As for where to place the jar files.  If you are using less than JDK 1.4.x
then I have had, in my experience, no luck with placing the jars in the
webapps lib folder.  I placed them in common\lib folder, just
TOMCAT_HOME\lib might work as well.  Where ever you have them, just have
them once.  Don't have them in multiple places.  Another place you could put
them would be the Java Ext folder for the JDK. 

Hope that helps.

Todd 

-Original Message-
From: Ilhami Topaloglu [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 12, 2002 2:34 PM
To: Tomcat Users List
Subject: RE: JCE and Tomcat-4.0.3


correction;
JCE jars are in the

TOMCAT_HOME\webapps\"myApplication"\Web-inf\lib

-Original Message-
From: Ilhami Topaloglu [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 12, 2002 2:30 PM
To: Tomcat Users List
Subject: RE: JCE and Tomcat-4.0.3


JCE jar files are in the TOMCAT_HOME\lib and also in the
TOMCAT_HOME\application\Web-inf\lib directory. I also tried to put them in
TOMCAT_HOME\server\lib

error stackTrace is:
04/12/02 13:41:10  javax.servlet.ServletException - Servlet execution threw
an exception
javax.servlet.ServletException: Servlet execution threw an exception
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:269)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1012)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107
)
at java.lang.Thread.run(Thread.java:484)


-Original Message-
From: Ganey, Todd [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 12, 2002 1:54 PM
To: 'Tomcat Users List'
Subject: RE: JCE and Tomcat-4.0.3


Well from the little information you provided I am not sure what is going
on.  But from the fact that you are dynamically adding the provider I assume
you are using JDK 1.3.x or earlier. If so where have you placed the JCE
jars?  What is the error/exception you get when running the code?

Todd

-Original Message-
From: Ilhami Topaloglu [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 12, 2002 11:53 AM
To: [EMAIL PROTECTED]
Subject: JCE and Tomcat-4.0.3


I wrote a pass phrase Encryption code that when I run it outside Tomcat env.
it works fine, but when I run it on Tomcat, it fails.

this is part of the code:

public static String encrypt(String passPhrase, String inputPhrase) {

String algorithm = "PBEWithMD5AndDES";
byte[] salt = new byte[8];
int iterations = 20;
byte[] output = new byte

RE: JCE and Tomcat-4.0.3

2002-04-12 Thread Ilhami Topaloglu

correction;
JCE jars are in the

TOMCAT_HOME\webapps\"myApplication"\Web-inf\lib

-Original Message-
From: Ilhami Topaloglu [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 12, 2002 2:30 PM
To: Tomcat Users List
Subject: RE: JCE and Tomcat-4.0.3


JCE jar files are in the TOMCAT_HOME\lib and also in the
TOMCAT_HOME\application\Web-inf\lib directory. I also tried to put them in
TOMCAT_HOME\server\lib

error stackTrace is:
04/12/02 13:41:10  javax.servlet.ServletException - Servlet execution threw
an exception
javax.servlet.ServletException: Servlet execution threw an exception
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:269)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1012)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107
)
at java.lang.Thread.run(Thread.java:484)


-Original Message-
From: Ganey, Todd [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 12, 2002 1:54 PM
To: 'Tomcat Users List'
Subject: RE: JCE and Tomcat-4.0.3


Well from the little information you provided I am not sure what is going
on.  But from the fact that you are dynamically adding the provider I assume
you are using JDK 1.3.x or earlier. If so where have you placed the JCE
jars?  What is the error/exception you get when running the code?

Todd

-Original Message-
From: Ilhami Topaloglu [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 12, 2002 11:53 AM
To: [EMAIL PROTECTED]
Subject: JCE and Tomcat-4.0.3


I wrote a pass phrase Encryption code that when I run it outside Tomcat env.
it works fine, but when I run it on Tomcat, it fails.

this is part of the code:

public static String encrypt(String passPhrase, String inputPhrase) {

String algorithm = "PBEWithMD5AndDES";
byte[] salt = new byte[8];
int iterations = 20;
byte[] output = new byte[128];

try {
// Register the security provider
Security.addProvider(new com.sun.crypto.provider.SunJCE());

// Create a key from supplied passphrase
KeySpec keySpec = new PBEKeySpec(passPhrase.toCharArray());

SecretKeyFactory secretKeyFactory =
SecretKeyFactory.getInstance(algorithm);

SecretKey secretKey = secretKeyFactory.generateSecret(keySpec);
.
.
.

It creates a PBE KeySpec, when the code gets to creating SecretKeyFactory,
fails.

Since "PBEWithMD5AndDES" algorithm is part of the sunjce_provider.jar, I am
assuming that Provider never gets registered.

anybody else run into similar issues? Any insight is appreciated.

Ilhami Topaloglu
ePredix


--
To unsubscribe:   
For additional commands:

Re: help with configuring servlets for tomcat 4.0.1

2002-04-12 Thread David M. Karr

> "kris7077" == kris7077   writes:

kris7077> We have been successfully using Tomcat 3.2.3 for
kris7077> deploying our application which uses servlets. However
kris7077> to take advantage of the latest we decided to migrate
kris7077> to Tomcat 4.0.1. Now we are having problem deploying
kris7077> the servlets, they just dont work. I have read all the
kris7077> posts here and jguru to figure out what is wrong and
kris7077> how to fix it

kris7077> Here is what I am doing

kris7077> I have

kris7077> the following folder structure

kris7077> com\mycompany\servlets\MainServlet
kris7077> com\mycompany\servlets\domain\OtherServlet

kris7077> I have the following structure setup in webapps

kris7077> com
kris7077>  --mycompany
kris7077>   --WEB-INF
kris7077> web.xml
kris7077> --classes
kris7077>   --com
kris7077>--mycompany
kris7077> --servlets \MainServlet.class
kris7077>   --domain\OtherServlet.class

kris7077> The following is the mapping in my server.xml

kris7077>  docBase="com/mycompany" 
kris7077>  debug="0"  reloadable="true"/> 
kris7077>  docBase="com/mycompany/servlets"  debug="0" 
kris7077> reloadable="true"/> 

kris7077> Here is how my web.xml looks after all the filter
kris7077> stuff

kris7077> 
kris7077> 
kris7077>   MainServlet
kris7077> 
kris7077>
kris7077>  /com/mycompany/servlets/MainServlet/*
kris7077>
kris7077>  

kris7077> The catalina log file shows that the application is
kris7077> not being deployed. It does not find the web.xml file
kris7077> inthe WEB-INF folder. I followed suggestions and
kris7077> created the folder from command prompt.. 

kris7077> I am I doing anything wrong here?

Some of this is a problem, some of it just doesn't have to be this complicated.

First, I suggest the following structure in the "webapp" directory:

mycompany/WEB-INF/web.xml
mycompany/WEB-INF/classes/com/mycompany/servlets/MainServlet.class
mycompany/WEB-INF/classes/com/mycompany/servlets/domain/OtherServlet.class

Then, define a SINGLE context in "server.xml":



Then, in your "web.xml", the only thing I would change would be the
"url-pattern" for your servlets, to be the following (including the path-info,
which you seem to want for some reason):

/mycompany/MainServlet/*
/mycompany/OtherServlet/*

(Someone with more experience, please validate this.)

-- 
===
David M. Karr  ; Java/J2EE/XML/Unix/C++
[EMAIL PROTECTED]


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: JCE and Tomcat-4.0.3

2002-04-12 Thread Ilhami Topaloglu

JCE jar files are in the TOMCAT_HOME\lib and also in the
TOMCAT_HOME\application\Web-inf\lib directory. I also tried to put them in
TOMCAT_HOME\server\lib

error stackTrace is:
04/12/02 13:41:10  javax.servlet.ServletException - Servlet execution threw
an exception
javax.servlet.ServletException: Servlet execution threw an exception
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:269)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1012)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107
)
at java.lang.Thread.run(Thread.java:484)


-Original Message-
From: Ganey, Todd [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 12, 2002 1:54 PM
To: 'Tomcat Users List'
Subject: RE: JCE and Tomcat-4.0.3


Well from the little information you provided I am not sure what is going
on.  But from the fact that you are dynamically adding the provider I assume
you are using JDK 1.3.x or earlier. If so where have you placed the JCE
jars?  What is the error/exception you get when running the code?

Todd

-Original Message-
From: Ilhami Topaloglu [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 12, 2002 11:53 AM
To: [EMAIL PROTECTED]
Subject: JCE and Tomcat-4.0.3


I wrote a pass phrase Encryption code that when I run it outside Tomcat env.
it works fine, but when I run it on Tomcat, it fails.

this is part of the code:

public static String encrypt(String passPhrase, String inputPhrase) {

String algorithm = "PBEWithMD5AndDES";
byte[] salt = new byte[8];
int iterations = 20;
byte[] output = new byte[128];

try {
// Register the security provider
Security.addProvider(new com.sun.crypto.provider.SunJCE());

// Create a key from supplied passphrase
KeySpec keySpec = new PBEKeySpec(passPhrase.toCharArray());

SecretKeyFactory secretKeyFactory =
SecretKeyFactory.getInstance(algorithm);

SecretKey secretKey = secretKeyFactory.generateSecret(keySpec);
.
.
.

It creates a PBE KeySpec, when the code gets to creating SecretKeyFactory,
fails.

Since "PBEWithMD5AndDES" algorithm is part of the sunjce_provider.jar, I am
assuming that Provider never gets registered.

anybody else run into similar issues? Any insight is appreciated.

Ilhami Topaloglu
ePredix


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



--
To unsubscribe:

RE: JCE and Tomcat-4.0.3

2002-04-12 Thread Ganey, Todd

Well an error code of 500 implies a Server error so you might want to look
through your Tomcat logs.  If you are using JDK 1.4.x then the JCE is
already installed and the provider is already in the list.  No need to add
dynamically.  I sadly haven't dealt or looked at all into the type of
encryption you are trying to do.  My experience with Tomcat and JCE has very
smooth now that I am on JDK 1.4 .  I think your logs will give you vital
information.

Todd

-Original Message-
From: Herrick Johnson [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 12, 2002 2:09 PM
To: Tomcat Users List
Subject: RE: JCE and Tomcat-4.0.3


Hi Ganey,

I am trying to use the JDK 1.4.x.  The instructions I
followed were from the Tomcat documentation. I do not
get error messages from either Tomcat or Apache. I
also do not get my jsp's on the port 80. I get the
"500".

Thanks
Herrick
--- "Ganey, Todd" <[EMAIL PROTECTED]> wrote:
> Well from the little information you provided I am
> not sure what is going
> on.  But from the fact that you are dynamically
> adding the provider I assume
> you are using JDK 1.3.x or earlier. If so where have
> you placed the JCE
> jars?  What is the error/exception you get when
> running the code?
> 
> Todd  
> 
> -Original Message-
> From: Ilhami Topaloglu
> [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 12, 2002 11:53 AM
> To: [EMAIL PROTECTED]
> Subject: JCE and Tomcat-4.0.3
> 
> 
> I wrote a pass phrase Encryption code that when I
> run it outside Tomcat env.
> it works fine, but when I run it on Tomcat, it
> fails.
> 
> this is part of the code:
> 
> public static String encrypt(String passPhrase,
> String inputPhrase) {
> 
> String algorithm = "PBEWithMD5AndDES";
> byte[] salt = new byte[8];
> int iterations = 20;
> byte[] output = new byte[128];
> 
> try {
> // Register the security provider
> Security.addProvider(new
> com.sun.crypto.provider.SunJCE());
> 
> // Create a key from supplied passphrase
> KeySpec keySpec = new
> PBEKeySpec(passPhrase.toCharArray());
> 
> SecretKeyFactory secretKeyFactory =
>
> SecretKeyFactory.getInstance(algorithm);
> 
> SecretKey secretKey =
> secretKeyFactory.generateSecret(keySpec);
>   .
>   .
>   .
> 
> It creates a PBE KeySpec, when the code gets to
> creating SecretKeyFactory,
> fails.
> 
> Since "PBEWithMD5AndDES" algorithm is part of the
> sunjce_provider.jar, I am
> assuming that Provider never gets registered.
> 
> anybody else run into similar issues? Any insight is
> appreciated.
> 
> Ilhami Topaloglu
> ePredix
> 
> 
> --
> To unsubscribe:  
> 
> For additional commands:
> 
> Troubles with the list:
> 
> 
> 
> 
> --
> To unsubscribe:  
> 
> For additional commands:
> 
> Troubles with the list:
> 
> 


__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: JCE and Tomcat-4.0.3

2002-04-12 Thread Herrick Johnson

Hi Ganey,

I am trying to use the JDK 1.4.x.  The instructions I
followed were from the Tomcat documentation. I do not
get error messages from either Tomcat or Apache. I
also do not get my jsp's on the port 80. I get the
"500".

Thanks
Herrick
--- "Ganey, Todd" <[EMAIL PROTECTED]> wrote:
> Well from the little information you provided I am
> not sure what is going
> on.  But from the fact that you are dynamically
> adding the provider I assume
> you are using JDK 1.3.x or earlier. If so where have
> you placed the JCE
> jars?  What is the error/exception you get when
> running the code?
> 
> Todd  
> 
> -Original Message-
> From: Ilhami Topaloglu
> [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 12, 2002 11:53 AM
> To: [EMAIL PROTECTED]
> Subject: JCE and Tomcat-4.0.3
> 
> 
> I wrote a pass phrase Encryption code that when I
> run it outside Tomcat env.
> it works fine, but when I run it on Tomcat, it
> fails.
> 
> this is part of the code:
> 
> public static String encrypt(String passPhrase,
> String inputPhrase) {
> 
> String algorithm = "PBEWithMD5AndDES";
> byte[] salt = new byte[8];
> int iterations = 20;
> byte[] output = new byte[128];
> 
> try {
> // Register the security provider
> Security.addProvider(new
> com.sun.crypto.provider.SunJCE());
> 
> // Create a key from supplied passphrase
> KeySpec keySpec = new
> PBEKeySpec(passPhrase.toCharArray());
> 
> SecretKeyFactory secretKeyFactory =
>
> SecretKeyFactory.getInstance(algorithm);
> 
> SecretKey secretKey =
> secretKeyFactory.generateSecret(keySpec);
>   .
>   .
>   .
> 
> It creates a PBE KeySpec, when the code gets to
> creating SecretKeyFactory,
> fails.
> 
> Since "PBEWithMD5AndDES" algorithm is part of the
> sunjce_provider.jar, I am
> assuming that Provider never gets registered.
> 
> anybody else run into similar issues? Any insight is
> appreciated.
> 
> Ilhami Topaloglu
> ePredix
> 
> 
> --
> To unsubscribe:  
> 
> For additional commands:
> 
> Troubles with the list:
> 
> 
> 
> 
> --
> To unsubscribe:  
> 
> For additional commands:
> 
> Troubles with the list:
> 
> 


__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: JCE and Tomcat-4.0.3

2002-04-12 Thread Ganey, Todd

Well from the little information you provided I am not sure what is going
on.  But from the fact that you are dynamically adding the provider I assume
you are using JDK 1.3.x or earlier. If so where have you placed the JCE
jars?  What is the error/exception you get when running the code?

Todd  

-Original Message-
From: Ilhami Topaloglu [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 12, 2002 11:53 AM
To: [EMAIL PROTECTED]
Subject: JCE and Tomcat-4.0.3


I wrote a pass phrase Encryption code that when I run it outside Tomcat env.
it works fine, but when I run it on Tomcat, it fails.

this is part of the code:

public static String encrypt(String passPhrase, String inputPhrase) {

String algorithm = "PBEWithMD5AndDES";
byte[] salt = new byte[8];
int iterations = 20;
byte[] output = new byte[128];

try {
// Register the security provider
Security.addProvider(new com.sun.crypto.provider.SunJCE());

// Create a key from supplied passphrase
KeySpec keySpec = new PBEKeySpec(passPhrase.toCharArray());

SecretKeyFactory secretKeyFactory =
SecretKeyFactory.getInstance(algorithm);

SecretKey secretKey = secretKeyFactory.generateSecret(keySpec);
.
.
.

It creates a PBE KeySpec, when the code gets to creating SecretKeyFactory,
fails.

Since "PBEWithMD5AndDES" algorithm is part of the sunjce_provider.jar, I am
assuming that Provider never gets registered.

anybody else run into similar issues? Any insight is appreciated.

Ilhami Topaloglu
ePredix


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: How to run tomcat as service program in Win2k [[HELP]]

2002-04-12 Thread Jan Bentzen

It might be useful to check the registry to see if you have the expected
options set. Just search for the name of the service.I had some surprises on
that account.
There might be a problem with the "'s. Or at least they look different from
how I used them.???

- Original Message -
From: "Ted Neward" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, April 12, 2002 11:34 AM
Subject: Re: How to run tomcat as service program in Win2k [[HELP]]


> Did you get past this?
>
> Ted Neward
> {.NET || Java} Course Author & Instructor, DevelopMentor
> (http://www.develop.com)
> http://www.javageeks.com/tneward
> http://www.clrgeeks.com/tneward
>
> - Original Message -
> From: "Dahnke, Eric" <[EMAIL PROTECTED]>
> To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> Sent: Thursday, April 11, 2002 9:29 AM
> Subject: RE: How to run tomcat as service program in Win2k [[HELP]]
>
>
> >
> > I've followed this thread and am still having no luck. Here's the
> situation.
> > The TC that comes with jwsdp is TC4.0b7. This release of TC doesn't
> include
> > a tomcat.exe file, so I grabbed one from the TC4.0.1 release. I then run
> > following from the cmd prompt.
> >
> > "%CATALINA_HOME%\bin\tomcat.exe" -install Tomcat
> > "%JAVA_HOME%\jre\bin\classic\jvm.dll" -Djava.class.path=
> > "%CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOME%\lib\tools.jar"
> > -Dcatalina.home="%CATALINA_HOME%" -Xrs -start
> > org.apache.catalina.startup.Bootstrap -params start -stop
> > org.apache.catalina.startup.Bootstrap -params stop -out
> > "%CATALINA_HOME%\logs\stderr.log"
> >
> > Response is:
> >
> > The service was successfully installed.
> >
> > Upon starting the service I get:
> >
> > "Could not start the service on Local Computer. The service did not
return
> > an error. This could be a Windows error or an internal service error."
> >
> > the stderr.log file is created but is empty.
> >
> >
> > Anyone have any ideas? How can I further troubleshoot. Regards Eric
> >
> >
> >
> > -Original Message-
> > From: Jordan C N Chong [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, April 11, 2002 2:06 AM
> > To: Tomcat Users List
> > Subject: Access local directory with Tomcat 4.0
> >
> >
> > Dear all,
> >
> > Sorry to post this question again, cause I didn't receive any reply...
so
> I
> > think I should rephrase my question.
> >
> > I am using standalone Apache Tomcat 4.0, on my Windows 2000 machine.
> >
> > I am making a servlet for file downloading using the Tomcat 4.0, but I
am
> > not sure how to setup or configure the local directory, cause when I do
> > this:
> >
> > FileInputStream filein = new FileInputStream("C:\\temp\\text.txt");
> >
> > I got IOException for that, because Tomcat 4.0 complains the directory
is
> > not accessible... Please help me. Thank you very much.
> >
> >
> > Best regards,
> > Jo
> >
> >
> > --
> > To unsubscribe:   
> > For additional commands: 
> > Troubles with the list: 
> >
> > --
> > To unsubscribe:   
> > For additional commands: 
> > Troubles with the list: 
> >
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Too many open files

2002-04-12 Thread Jeremy Prellwitz

I once had a problem where calling unix system calls via the 
Java Runtime class.  There was a bug in the JDK that i was 
using, and Sun's work around (i forget now where it is 
posted) but it was to do something like the following:

Runtime rt = Runtime.getRuntime();
Process p = rt.exec("/usr/local/bin/some_shell_script.sh");
int exit_value = p.waitFor();
p.getInputStream().close();
p.getErrorStream().close();
p.getOutputStream().close();

and you could of course read from the streams before you 
closed them, but..the fact was you had to close all 3, in 
order for the work-around to be effective.

Regards,




 Original message 
>Date: Fri, 12 Apr 2002 21:03:07 +0200
>From: Christophe Reynaud <[EMAIL PROTECTED]>  
>Subject: Too many open files  
>To: Tomcat Users List <[EMAIL PROTECTED]>
>
>Hello,
>
>We use tomcat 3.3.1 on Linux RH 7.2 &  IBMJava2-SDK-1.3-13.0
>
>A few hours after the server is restarted, tomcat is 
unuseable and we
>have in the logs, such messages :
>
>writeVersion()
>/var/spool/tomcat3/o2t/ROOT/jsp/common/error.verjava.io.FileN
otFoundException:
>
>/var/spool/tomcat3/o2t/ROOT/jsp/common/error.ver (Too many 
open files)
>
>An idea about the problem ?
>
>Thanks.
>
>Christophe Reynaud
>
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 
>

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Sessions across webapp

2002-04-12 Thread David S. Soleno

I just downloaded  and installed Tomcat 4.0.3 on Windows 2000 with JDK 
1.3.1.  After trying it out for a while I found that I was able to 
access HttpSessions across ServletContexts.

I navigate to webapp "A", start an HttpSession and place some attributes 
in it,  then use ServletContext.getContext("/B") to obtain the 
ServletContext from webapp "B".  I forward the request, using a 
RequestDispatcher, to a servlet in "B" where I am able to access the 
session attributes  placed by webapp "A".  ( I set crossContext="true" 
to enable this behavior)  According to section 7.3 of the  Servlet 2.3 
API and the J2EE API sharing sessions across ServletContexts is not 
permitted.  

Several months ago we tested our application with an earlier version of 
Tomcat, (3.2 I think) that worked as outlined in the Servlet API.  We 
used the results of that test and the J2EE specs to file a bug report 
with WebLogic's implementation.  BEA promptly fixed the problem.  Now it 
seems Tomcat 4 has this problem.

Can anyone confirm or deny our findings.

-- 
David S. Soleno
701 Palomar Airport Rd.
Suite 110
Carlsbad, CA 92009
Tel: 760 804 1333 x107
Fax: 760 804 1331
Eml: [EMAIL PROTECTED]
Web: www.nexprise.com



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




How do i set up a JDBC connection pool to access from my servlet?

2002-04-12 Thread Fabio Lin

Hi,

 How do i set up a JDBC connection pool to access from my servlet?

Thx!



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Determining IP address in a safe way....

2002-04-12 Thread Seidhi H

Hi,
Greetings
Is there a method to query Catalina and find the IP
address that it is currently using for serving client
requests

I have a peculiar situation in which the WIN2K box
that runs Tomcat 4.0.1 [Catalina] has more than one
NIC. When i use the
InetAddress.getLocalHost().getHostAddress() from my
servlet code, i get the IP address that is other than
the one on which Tomcat is currently serving. But
Tomcat seems to start fine and is listening and
serving clients if accessed using the correct IP.

TIA for your help,
S.

__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




[Ajp13] bad read: -103 ?What's this

2002-04-12 Thread Alex Colic

Hi,

I was having a look at my catalina.out log file and I notice that I have a
lot of the following lines:

[Ajp13] bad read: -103

Any idea what they mean?

Thanks

Alex


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Implicit objects in JSP pages

2002-04-12 Thread Brook Monroe

According to what I've read, there should be a
javax.servlet.http.HttpServletRequest instance by the name of "request"
available to me in my JSP at compile time without my having to do something
special to obtain it, yet Jasper is insisting that no such object is
available.  Have I skipped a step somewhere?

jbm!

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: IIS and Tomcat 4.0

2002-04-12 Thread Tore Skogly


- Original Message -
From: "Ralph Einfeldt" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, April 12, 2002 5:40 PM
Subject: AW: IIS and Tomcat 4.0


Can you describe the symptoms of 'not working' ?
Do you see any error messages ?

There is a bunch of possible problem that are resolved by restarting:
- There may be deadlocks in your database access code
- There may be locks for synchronized
- The database connection may be timed out
- ..

Thanks for your hints on what might be causing the problems.
Unfortunately I don't have the error message shown by the servlet, but in
the back of my head I felt I had seen reports on problems with JKD 1.3 and
IIS. I might be wrong - but I will check out the error message and come back
to this forum if more help is needed.

Regards,
ToreS



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Too many open files

2002-04-12 Thread Christophe Reynaud

Hello,

We use tomcat 3.3.1 on Linux RH 7.2 &  IBMJava2-SDK-1.3-13.0

A few hours after the server is restarted, tomcat is unuseable and we
have in the logs, such messages :

writeVersion()
/var/spool/tomcat3/o2t/ROOT/jsp/common/error.verjava.io.FileNotFoundException:

/var/spool/tomcat3/o2t/ROOT/jsp/common/error.ver (Too many open files)

An idea about the problem ?

Thanks.

Christophe Reynaud


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




JCE and Tomcat-4.0.3

2002-04-12 Thread Ilhami Topaloglu

I wrote a pass phrase Encryption code that when I run it outside Tomcat env.
it works fine, but when I run it on Tomcat, it fails.

this is part of the code:

public static String encrypt(String passPhrase, String inputPhrase) {

String algorithm = "PBEWithMD5AndDES";
byte[] salt = new byte[8];
int iterations = 20;
byte[] output = new byte[128];

try {
// Register the security provider
Security.addProvider(new com.sun.crypto.provider.SunJCE());

// Create a key from supplied passphrase
KeySpec keySpec = new PBEKeySpec(passPhrase.toCharArray());

SecretKeyFactory secretKeyFactory =
SecretKeyFactory.getInstance(algorithm);

SecretKey secretKey = secretKeyFactory.generateSecret(keySpec);
.
.
.

It creates a PBE KeySpec, when the code gets to creating SecretKeyFactory,
fails.

Since "PBEWithMD5AndDES" algorithm is part of the sunjce_provider.jar, I am
assuming that Provider never gets registered.

anybody else run into similar issues? Any insight is appreciated.

Ilhami Topaloglu
ePredix


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Tomcat 4.03 with apache 1.3.24

2002-04-12 Thread João Augusto Charnet

I've just configured Tomcat 4.03 to run with apache 1.3.24 with
mod_webapp.so.

The configuration went fine. But when I start my Tomcat and then Apache,
my computer gets really slow, It looks like it doesn't any memory to
execute anything.
I can't do anything with both server started.
Is this normal 

Thanks a lot...
John


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: mod_webapp and *.shtml not working

2002-04-12 Thread rsequeira


Let's try this:
Assuming you have your
jsps under the webapps/site-name folder and
shtml under the same folder
and 192.168.2.15 maps to "some-domain-name.com"

Your server.xml should look like this:



then you Virtual Host block should looks like:

DocumentRoot $CATALINA_HOME/webapps/site-name
ServerName some-domain-name.com
LogFormat "%h %l %u %t \"%r\" %s %b \"%{Referer}i\" \"%{User-agent}i\""
TransferLog /web/site-name/logs/access.log
ErrorLog /web/site-name/logs/error.log
WebAppDeploy _ warpConnection /


Note: replace the $CATALINA_HOME in the virtual host block with the actual
directory path.

Your URL should now be: http://some-domain-name.com/

RS





Catalin Mihailescu <[EMAIL PROTECTED]> on 04/12/2002 12:51:40 PM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:   Tomcat Users List <[EMAIL PROTECTED]>
cc:

Subject:  Re: mod_webapp and *.shtml not working

Hello,



> OK let me try and get this right:
> When you add this statement "WebAppDeploy site-name warpConnection
> /something", does Apache parse the .shtml files and Tomcat doesn't
execute
> the jsp's?

That's right.

>
> And when you do this: "WebAppDeploy site-name warpConnection /", does
> Apache say it cannot find the index.shtml file, but tomcat serves the
jsps
> correctly?

Exactly!

>
>
> Did you try adding a Context element for site-name? I'm assuming you
> have site-name under webapps. And the jsps are under site-name.
> 
>  crossContext="true">
> 

Yes, I did, but the result remain the same :-(

>
>
> Where are the .shtml files located? What's the URL that you use?

The .shtml files are located under /web/site-name/htdocs/...
The URL I'm using is http://192.168.2.15/


>
> If I were you, I would break up the process and first get Apache to parse
> .shtml files and get Tomcat to serve the jsps right.

Any suggestions on how do do this?

> And then add the
> virtual host block to connect Apache/Tomcat.
>
> RS

Thank you for your reply,
Best regards,
Catalin

>
>
> Catalin Mihailescu <[EMAIL PROTECTED]> on 04/11/2002 12:28:10 PM
>
> Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>
>
> To:   Tomcat Users List <[EMAIL PROTECTED]>
> cc:   [EMAIL PROTECTED]
>
> Subject:  mod_webapp and *.shtml not working
>
> Hello,
>
> I'm using a RedHat 7.0 box, Apache/1.3.22, Tomcat 4.0.2 and a site
> "site-name"
> that use SSI.
> I cannot make them to work together (Apache to serve *.shtml and Tomcat
> serve
> JUST *.jsp).
>
> Can you please tell me what I'm doing wrong and what else should I do to
> make
> it work?
>
> My server.xml looks like:
>
> __
> ---
> 
>
> 
>   
>
>   port="8008" minProcessors="5" maxProcessors="10"
>  enableLookups="false" appBase="webapps"
>  acceptCount="5" debug="0"/>
>
>   name="testing" debug="0">
> 
>
>   
>
> 
> _
>
> My httpd.conf looks like:
>
> _
> ---
> LoadModule webapp_module  libexec/mod_webapp.so
> AddModule mod_webapp.c
> ---
> DirectoryIndex index.shtml index.html index.htm index.php index.php4
> index.jsp
>
> ---
> AddIcon /icons/layout.gif .html .shtml .htm .pdf
> ---
> AddType text/html .shtml
> AddHandler server-parsed .shtml
> ---
> WebAppConnection warpConnection warp localhost:8008
> WebAppInfo /webapp-info
> ---
> 
> DocumentRoot /web/site-name/htdocs
> ServerName 192.168.2.15
> LogFormat "%h %l %u %t \"%r\" %s %b \"%{Referer}i\" \"%{User-agent}i\""
> TransferLog /web/site-name/logs/access.log
> ErrorLog /web/site-name/logs/error.log
> WebAppDeploy site-name warpConnection /
> 
> 
>
> mod_include, mod_mime, mod_cgi are also included and enabled for Apache
>
> I also have:
> $CATALINA_HOME/webapps/site-name -> /web/site-name/htdocs
>
> The result is that Apache is complaining that /index.shtml was not found,
> but
> all my *.jsp files are properly handled by Tomcat.
> If I change
> WebAppDeploy site-name warpConnection / to look like
> WebAppDeploy site-name warpConnection /something
> Apache is not complaining, but I'll be no longer capable to read my *.jsp
> files.
>
> Also, if instead *.shtml I use html (other site) in the same setup,
> everything
> goes just fine.
>
> Can you help, please?
>
> Catalin
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 





--
To unsubscribe:   
For additional commands: 
Troubles with the list: 









--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Configuration information

2002-04-12 Thread David Lu


here are some code samples.  in web.xml:

   
 _etrain_startup_
 com.edavidlu.util.StartupServlet
 
   email.enable
   true
   
 Set to true to enable out-going email, false to disable.
   
 
 1
   

in StartUpServlet:

public class StartupServlet extends HttpServlet
{
 /**
  * Called by the application container to initialize the 
application.
  */
 public void init( ServletConfig config ) throws ServletException
 {
 super.init( config );
 for ( Enumeration en = config.getInitParameterNames(); 
en.hasMoreElements(); )
 {
 String key = (String) en.nextElement();
 String value = config.getInitParameter( key );
 // save key/value where your beans can get to them.
 }
}


On 2002.04.12 07:57 Danilo Luiz Rheinheimer wrote:
> At 10:37 12/4/2002 -0400, you wrote:
>> You can put these as init-param entries in web.xml.  If I have a 
>> large
>> number of them and/or the administrator may need to edit them, I put 
>> them in
>> a properties file and create an init-param entry that points to this 
>> file.
>> I trust someone editing the properties file more than the deployment
>> descriptor.  :-)
> 
>   And how do you access it on the beans code ?


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Newbie question

2002-04-12 Thread Ricky Leung

you also need to copy your web.xml in WEB-INF to ROOT/WEB-INF

-Original Message-
From: Javier [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 12, 2002 5:33 AM
To: Tomcat Users List
Subject: Re: Newbie question


On 11/04/2002 at 20:16 yilmaz wrote:

>Hi Javier,
>I am not very sure what mistake are you doing,
>but to find out if your tomcat is up and installation is okey,
>try using default examples servlets
>http://localhost:8080/examples/
>
>try any of them, and if they are okey,
>tell me if you can access
>


Well, I'm close to scream against Tomcat like some guy did a few days ago
!!!

I've deleted all my XP box and installed a clean W2K (for more reasons than
Tomcat).

I've installed a clean Tomcat on c:\tomcat.

Then I tried to access:

http://localhost:8080   -> OK
http://localhost:8080/examples/servlet/HelloWorldExample-> OK

Well, I decide to copy  HelloWorldExample.class from
c:\tomcat\webapps\examples\WEB-INF\classes to
c:\tomcat\webapps\ROOT\WEB-INF\classes


Then I tried to access:

http://localhost:8080/HelloWorldExample -> Fail, 404 Error
http://localhost:8080/servlet/HelloWorldExample -> Fail 500 Error

with the following code

java.util.MissingResourceException: Can't find bundle for base name
LocalStrings, locale es
at
java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:8
04)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:694)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:538)
at HelloWorldExample.doGet(HelloWorldExample.java:25)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1012)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107
)
at java.lang.Thread.run(Thread.java:536)


If I found so much problems with a little example page I don't want to know
which will be the problem with a real application !!

Could someone help me ?

Thanks in advance








--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




help with configuring servlets for tomcat 4.0.1

2002-04-12 Thread KM

We have been successfully using Tomcat 3.2.3 for
deploying our application which uses servlets. However
to take advantage of the latest we decided to migrate
to Tomcat 4.0.1. Now we are having problem deploying
the servlets, they just dont work. I have read all the
posts here and jguru to figure out what is wrong and
how to fix it

Here is what I am doing

I have

the following folder structure

com\mycompany\servlets\MainServlet
com\mycompany\servlets\domain\OtherServlet

I have the following structure setup in webapps

com
 --mycompany
  --WEB-INF
web.xml
--classes
  --com
   --mycompany
--servlets \MainServlet.class
  --domain\OtherServlet.class


The following is the mapping in my server.xml




 
  

 


 


 





Here is how my web.xml looks after all the filter
stuff





MainServlet

com.mycompany.servlets.MainServlet




OtherServlet

com.mycompany.servlets.domain.OtherServlet









MainServlet

   
 /com/mycompany/servlets/MainServlet/*
   
 



OtherServlet

   
 /com/mycompany/servlets/domain/OtherServlet/*
   
 






The catalina log file shows that the application is
not being deployed. It does not find the web.xml file
inthe WEB-INF folder. I followed suggestions and
created the folder from command prompt.. 

I am I doing anything wrong here?

Appreciate your time

Thanks
Kris


__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




help with configuring servlets for tomcat 4.0.1

2002-04-12 Thread KM

We have been successfully using Tomcat 3.2.3 for
deploying our application which uses servlets. However
to take advantage of the latest we decided to migrate
to Tomcat 4.0.1. Now we are having problem deploying
the servlets, they just dont work. I have read all the
posts here and jguru to figure out what is wrong and
how to fix it

Here is what I am doing

I have

the following folder structure

com\mycompany\servlets\MainServlet
com\mycompany\servlets\domain\OtherServlet

I have the following structure setup in webapps

com
 --mycompany
  --WEB-INF
web.xml
--classes
  --com
   --mycompany
--servlets \MainServlet.class
  --domain\OtherServlet.class


The following is the mapping in my server.xml




 
  

 


 


 





Here is how my web.xml looks after all the filter
stuff





MainServlet

com.mycompany.servlets.MainServlet




OtherServlet

com.mycompany.servlets.domain.OtherServlet









MainServlet

   
 /com/mycompany/servlets/MainServlet/*
   
 



OtherServlet

   
 /com/mycompany/servlets/domain/OtherServlet/*
   
 






The catalina log file shows that the application is
not being deployed. It does not find the web.xml file
inthe WEB-INF folder. I followed suggestions and
created the folder from command prompt.. 

I am I doing anything wrong here?

Appreciate your time

Thanks
Kris


__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: mod_webapp and *.shtml not working

2002-04-12 Thread Catalin Mihailescu

Hello,



> OK let me try and get this right:
> When you add this statement "WebAppDeploy site-name warpConnection
> /something", does Apache parse the .shtml files and Tomcat doesn't execute
> the jsp's?

That's right.

>
> And when you do this: "WebAppDeploy site-name warpConnection /", does
> Apache say it cannot find the index.shtml file, but tomcat serves the jsps
> correctly?

Exactly!

>
>
> Did you try adding a Context element for site-name? I'm assuming you
> have site-name under webapps. And the jsps are under site-name.
> 
>  crossContext="true">
> 

Yes, I did, but the result remain the same :-(

>
>
> Where are the .shtml files located? What's the URL that you use?

The .shtml files are located under /web/site-name/htdocs/...
The URL I'm using is http://192.168.2.15/


>
> If I were you, I would break up the process and first get Apache to parse
> .shtml files and get Tomcat to serve the jsps right.

Any suggestions on how do do this?

> And then add the
> virtual host block to connect Apache/Tomcat.
>
> RS

Thank you for your reply,
Best regards,
Catalin

>
>
> Catalin Mihailescu <[EMAIL PROTECTED]> on 04/11/2002 12:28:10 PM
>
> Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>
>
> To:   Tomcat Users List <[EMAIL PROTECTED]>
> cc:   [EMAIL PROTECTED]
>
> Subject:  mod_webapp and *.shtml not working
>
> Hello,
>
> I'm using a RedHat 7.0 box, Apache/1.3.22, Tomcat 4.0.2 and a site
> "site-name"
> that use SSI.
> I cannot make them to work together (Apache to serve *.shtml and Tomcat
> serve
> JUST *.jsp).
>
> Can you please tell me what I'm doing wrong and what else should I do to
> make
> it work?
>
> My server.xml looks like:
>
> __
> ---
> 
>
> 
>   
>
>   port="8008" minProcessors="5" maxProcessors="10"
>  enableLookups="false" appBase="webapps"
>  acceptCount="5" debug="0"/>
>
>   name="testing" debug="0">
> 
>
>   
>
> 
> _
>
> My httpd.conf looks like:
>
> _
> ---
> LoadModule webapp_module  libexec/mod_webapp.so
> AddModule mod_webapp.c
> ---
> DirectoryIndex index.shtml index.html index.htm index.php index.php4
> index.jsp
>
> ---
> AddIcon /icons/layout.gif .html .shtml .htm .pdf
> ---
> AddType text/html .shtml
> AddHandler server-parsed .shtml
> ---
> WebAppConnection warpConnection warp localhost:8008
> WebAppInfo /webapp-info
> ---
> 
> DocumentRoot /web/site-name/htdocs
> ServerName 192.168.2.15
> LogFormat "%h %l %u %t \"%r\" %s %b \"%{Referer}i\" \"%{User-agent}i\""
> TransferLog /web/site-name/logs/access.log
> ErrorLog /web/site-name/logs/error.log
> WebAppDeploy site-name warpConnection /
> 
> 
>
> mod_include, mod_mime, mod_cgi are also included and enabled for Apache
>
> I also have:
> $CATALINA_HOME/webapps/site-name -> /web/site-name/htdocs
>
> The result is that Apache is complaining that /index.shtml was not found,
> but
> all my *.jsp files are properly handled by Tomcat.
> If I change
> WebAppDeploy site-name warpConnection / to look like
> WebAppDeploy site-name warpConnection /something
> Apache is not complaining, but I'll be no longer capable to read my *.jsp
> files.
>
> Also, if instead *.shtml I use html (other site) in the same setup,
> everything
> goes just fine.
>
> Can you help, please?
>
> Catalin
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 





--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




To have SetCookie in the Response

2002-04-12 Thread Lionel FARBOS

Hi,

I configure my Tomcat 3.3.1 Final server with :

and my servlet do "HttpSession session = req.getSession( true );"

but in my HTTP Response, I don't have the SetCookie parameter :
HTTP/1.0 200 OK
Content-Type: text/html
Pragma: No-cache
Cache-Control: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Date: Fri, 12 Apr 2002 14:53:12 GMT
Server: Tomcat Web Server/3.3a Final ( JSP 1.1; Servlet 2.2 )

Is there a special configuration to obtain this ?

Note :
with a telnet localhost 8080 : I have this header
with Netscape, I see the sessionId which is created...

Thanks


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




JNDI Realm with Tomcat 4.0.1 and Netscape LDAP

2002-04-12 Thread Allen Chesley

I am having problems trying to get a Tomcat 4.0.3 installation to
authenticate to a Netscape LDAP server using the "built-in" capability.
Configuration:
Solaris 8, patched to date
Netscape Directory Server 4.16
Tomcat 4.0.1
J2SDK v1.4
Apache 1.3.23

I have edited the server.xml file to include a JNDIRealm entry as below:

ldap://ldapserver.mydoman.com:389";
  roleBase="ou=People,o=mydomain.com"
  roleName="cn"
  roleSearch="(uniqueMember={0})"
  roleSubtree="true"
  userpassword="userpassword"
  userPattern="uid={0},ou=People,o=mydomain.com" />

I have confirmed that I am contacting the LDAP server, finding the user
account, and downloading the userPassword attribute, but authentication
always fails.

I have tried both th Sun and Netscape context factories with no
difference.
I have confirmed that the DN from the server uses the UID and not the
CN.
I have tried changeing the roleName to UID.
I have tried deleting and changing the digest value.
I have tried setting the roleSubtree to both true and false.
I have confirmed tht my role groups are under ou=People,o=mydomain.com
with the user accounts.

Any ideas/help?  Has any body gotten the JNDIRealm in Tomcat 4 to work
with Netscape?
--
Allen L. Chesley
Senior Systems Engineer
Raytheon



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




AW: IIS and Tomcat 4.0

2002-04-12 Thread Ralph Einfeldt

Can you describe the symptoms of 'not working' ?
Do you see any error messages ?

There is a bunch of possible problem that are resolved by restarting:
- There may be deadlocks in your database access code
- There may be locks for synchronized
- The database connection may be timed out 
- ..

> -Ursprüngliche Nachricht-
> Von: Tore Skogly [mailto:[EMAIL PROTECTED]]
> Gesendet: Freitag, 12. April 2002 17:09
> An: [EMAIL PROTECTED]
> Betreff: IIS and Tomcat 4.0


> After restarting Tomcat it can run for several days before it 
> needs another restart.


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Tomcat 4.0.3 manager reload bug?

2002-04-12 Thread David Farb

Thanks for the reply, guess its a "feature". I can live with that.

Thanks
David Farb

- Original Message -
From: "James Williamson" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, April 12, 2002 10:07 AM
Subject: Re: Tomcat 4.0.3 manager reload bug?


> David,
>
> The documentation and what actually happens doesn't correspond, if
> I remember correctly the documentation says a reload with cause a fresh
> parse of the web.xml, the source code says otherwise. You'll need to
> remove the application, then create a new one for web.xml parsing to be
> done.
>
> Regards,
>
> James Williamson
> www.nameonthe.net
>
> - Original Message -
> From: David Farb <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, April 12, 2002 4:07 PM
> Subject: Tomcat 4.0.3 manager reload bug?
>
>
> > My appologies if I sent this twice, I sent it as the body of the
subscribe
> > originally, not sure if that works.
> >
> > In any case:
> >
> > When I use manager/reload?path=... it doesn't reparse web.xml, but does
> > reload classes. Am I missing something or ... Everything else I have
done
> is
> > working fine.
> >
> > I am new to this, so its likely a configuration problem. First of all,
let
> > me say that Tomcat is a TRUELY WONDERFUL PIECE OF SOFTWARE, THANKS TO
ALL
> > WHO WORK ON IT!!!
> >
> >  Relevant facts:
> >
> > - Running Tomcat 4.0.3 on Windows 2000 Professional.
> > - I created my own Service definition by copying relevent parts of
others
> in
> > server.xml. (text available, but not included here to cut down on the
> size.)
> > - I use a different directory structure for my webapps than the one
inside
> > Tomcat
> > - I copied the manager app directory (basically just web.xml in the
> WEB-INF
> > subdirectory) from the TomCat 4.0 webapps to mine.
> > - There are no configurations in my server.xml for applications, I rely
on
> > the dynamic loading process where Tomcat loads anything as an
application
> > which looks like one in the webapps directory, hence reloadable=true is
> NOT
> > set.
> > - Reload works always reports success, but changes to web.xml do not
show
> up
> > (like adding a new servlet).
> > - Shutting down and restarting does reload web.xml (obviously)
> > - Installing a new .class file into the webapps directories DOES NOT
show
> up
> > in the appllication unless a manager/reload is done.
> >
> > Conclusion: web.xml is not reloaded, .class files are.
> >
> > I have searched various online bugs and this email list and find no
> reports
> > of this problem.
> >
> > I suppose the real solution is to put the configuration in server.xml,
but
> I
> > am reporting this anyway incase someone wants to fix it or it is a
symptom
> > of a
> > more serious problem.
> >
> > This is not a major annoyance, just a minor problem.
> >
> > David Farb
> >
> >
> >
> >
> > --
> > To unsubscribe:   
> > For additional commands: 
> > Troubles with the list: 
> >
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Want to grab SQL stmt from executing servlet

2002-04-12 Thread Scott Purcell

Thanks,
That is what I needed. I sincerely appreciate.

Scott

-Original Message-
From: Wagoner, Mark [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 12, 2002 9:25 AM
To: 'Tomcat Users List'
Subject: RE: Want to grab SQL stmt from executing servlet


If the database is Oracle there is a system table called V$SQLAREA that
holds this information.

-Original Message-
From: Scott Purcell [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 12, 2002 10:17 AM
To: [EMAIL PROTECTED]
Subject: Want to grab SQL stmt from executing servlet


Hello,

I have the need to parse out a query from a running .jar file.
The .jar is a servlet that does some queries to a local DB. I want to grab
the querystring that is being sent to the
DB somehow when I am running the servlet.

Is there anyway to achieve this goal??




--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: TC hidding console

2002-04-12 Thread yilmaz

Hi Raymond,
Can you kindly tell us which line did you change in catalina.bat or
startup.bat?
Because i tried to replace java with javaw in catalina.bat,
tomcat couldn't startup.
Thnaks :)
- Original Message -
From: "RAYMOND Romain" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, April 12, 2002 9:02 PM
Subject: Re: TC hidding console



yeah, thanks
javaw was my good gift of the afternoon.

Peter Romianowski a écrit :
>
> or simply use javaw instead of java (you would have to look into
catalina.bat or .sh
> in order to change that)
>
> > -Original Message-
> > From: Andy Eastham [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, April 12, 2002 2:09 PM
> > To: Tomcat Users List; [EMAIL PROTECTED]
> > Subject: RE: TC hidding console
> >
> >
> > There is a /b option in the start command that prevents a new window
being
> > created.  You could try hacking the startup scripts to use this.  I
haven't
> > tried this though.
> >
> > Andy
> >
> > > -Original Message-
> > > From: RAYMOND Romain [mailto:[EMAIL PROTECTED]]
> > > Sent: 12 April 2002 12:50
> > > To: Tomcat Users List
> > > Subject: Re: TC hidding console
> > >
> > >
> > >
> > > Because it is to give a demo embended on a CD and I would not like
> > > to make all my debugs appear ...
> > >
> > > Barney Hamish a écrit :
> > > >
> > > > Why don't you just run Tomcat as a service. Then you'll never see
the
> > > > console.
> > > >
> > > > -Original Message-
> > > > From: RAYMOND Romain [mailto:[EMAIL PROTECTED]]
> > > > Sent: Friday, April 12, 2002 1:45 PM
> > > > To: Tomcat Users List
> > > > Subject: TC hidding console
> > > >
> > > > Hello,
> > > >
> > > > is there a way under Windows2000 to hide TC console when starting up
?
> > > >
> > > > thanks.
> > > >
> > > > --
> > > > To unsubscribe:

> > > > For additional commands:

> > > > Troubles with the list:

> > > >
> > > > --
> > > > To unsubscribe:

> > > > For additional commands:

> > > > Troubles with the list:

> > >
> > > --
> > > To unsubscribe:   
> > > For additional commands: 
> > > Troubles with the list: 
> > >
> > >
> >
> >
> >
> > --
> > To unsubscribe:   
> > For additional commands: 
> > Troubles with the list: 
> >
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Tomcat 4.0.3 manager reload bug?

2002-04-12 Thread James Williamson

David,

The documentation and what actually happens doesn't correspond, if
I remember correctly the documentation says a reload with cause a fresh
parse of the web.xml, the source code says otherwise. You'll need to
remove the application, then create a new one for web.xml parsing to be
done.

Regards,

James Williamson
www.nameonthe.net

- Original Message -
From: David Farb <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 12, 2002 4:07 PM
Subject: Tomcat 4.0.3 manager reload bug?


> My appologies if I sent this twice, I sent it as the body of the subscribe
> originally, not sure if that works.
>
> In any case:
>
> When I use manager/reload?path=... it doesn't reparse web.xml, but does
> reload classes. Am I missing something or ... Everything else I have done
is
> working fine.
>
> I am new to this, so its likely a configuration problem. First of all, let
> me say that Tomcat is a TRUELY WONDERFUL PIECE OF SOFTWARE, THANKS TO ALL
> WHO WORK ON IT!!!
>
>  Relevant facts:
>
> - Running Tomcat 4.0.3 on Windows 2000 Professional.
> - I created my own Service definition by copying relevent parts of others
in
> server.xml. (text available, but not included here to cut down on the
size.)
> - I use a different directory structure for my webapps than the one inside
> Tomcat
> - I copied the manager app directory (basically just web.xml in the
WEB-INF
> subdirectory) from the TomCat 4.0 webapps to mine.
> - There are no configurations in my server.xml for applications, I rely on
> the dynamic loading process where Tomcat loads anything as an application
> which looks like one in the webapps directory, hence reloadable=true is
NOT
> set.
> - Reload works always reports success, but changes to web.xml do not show
up
> (like adding a new servlet).
> - Shutting down and restarting does reload web.xml (obviously)
> - Installing a new .class file into the webapps directories DOES NOT show
up
> in the appllication unless a manager/reload is done.
>
> Conclusion: web.xml is not reloaded, .class files are.
>
> I have searched various online bugs and this email list and find no
reports
> of this problem.
>
> I suppose the real solution is to put the configuration in server.xml, but
I
> am reporting this anyway incase someone wants to fix it or it is a symptom
> of a
> more serious problem.
>
> This is not a major annoyance, just a minor problem.
>
> David Farb
>
>
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




pb with the scratchdir parameter

2002-04-12 Thread Frédéric Laurent

hi

I want to tell Tomcat (4.0.3) to use another directory for its different temporary
files (like jsp generated java file).
I had set the "scratchdir" parameter in the web.xml file (in tomcat config
directory) with my temporary directory (the default is $CATALINA_HOME\work)


scratchdir
e:\tmp\tomcat


but this value isn't taken into account !

Moreover I gave the "-Djavax.servlet.context.tempdir=e:\tmp\tomcat" option to the 
command line (in catalina.bat), but it has the same effect 
(pb with the servlets specifications ? )

So, where can I tell tomcat to put all its work temporary files in a different
location from $CATALINA_HOME\work ?

thanks in advance 

--
Frédéric Laurent
http://www.opikanoba.org 




--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Tomcat 4.0.3 manager reload bug?

2002-04-12 Thread Remy Maucherat

> My appologies if I sent this twice, I sent it as the body of the subscribe
> originally, not sure if that works.
>
> In any case:
>
> When I use manager/reload?path=... it doesn't reparse web.xml, but does
> reload classes. Am I missing something or ... Everything else I have done
is
> working fine.

Yes, that's normal. Reparsing and recreating the whole webapp is very time
consuming, so reload (also used for class reloading) doesn't do that.
A "true" reload is to first do a 'stop', followed by a 'start'. That
sequence would completely destroy the webapp, and then reparse web.xml and
recreate it.

Remy


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




IIS and Tomcat 4.0

2002-04-12 Thread Tore Skogly

I have been running Tomcat 4.0 and IIS 5 on a Windows 2000 server with Suns
JDK 1.3.1_01 for a while, and I experience quite often that I have to
restart the Tomcat service to make my servlets work.
The servlets extract data from, and update an Oracle database.

Is there a known bug that causes this?
After restarting Tomcat it can run for several days before it needs another
restart.

Today I installed Tomcat 4.0.3 - is there a chance this might solve the
problem, or do I need to do something else to make my configuration more
stable? (i.e. upgrade to Java 1.4.0?)

Regards,
Tore Skogly



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




SSI with Tomcat

2002-04-12 Thread Thomas Spiessens

Does Tomcat allow the SSI "exec cmd"-directive or is this disabled because 
of security issues ? Im running Tomcat 4.0 stand-alone on Win2k with Java2 
1.3.1_01.

Kind regards,
Thomas.


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Configuration information

2002-04-12 Thread Wagoner, Mark

Typically, my servlets read these values and pass them to the various beans
when they use them.  This is usually passed to the constructor but it
depends on the situation.

-Original Message-
From: Danilo Luiz Rheinheimer [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 12, 2002 10:57 AM
To: Tomcat Users List
Subject: RE: Configuration information


At 10:37 12/4/2002 -0400, you wrote:
>You can put these as init-param entries in web.xml.  If I have a large
>number of them and/or the administrator may need to edit them, I put them
in
>a properties file and create an init-param entry that points to this file.
>I trust someone editing the properties file more than the deployment
>descriptor.  :-)

   And how do you access it on the beans code ?




Danilo Luiz Rheinheimer
Florianopolis/SC Brasil
Sony Clié 615C
mailto:[EMAIL PROTECTED]



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Tomcat 4.0.3 manager reload bug?

2002-04-12 Thread David Farb

My appologies if I sent this twice, I sent it as the body of the subscribe
originally, not sure if that works.

In any case:

When I use manager/reload?path=... it doesn't reparse web.xml, but does
reload classes. Am I missing something or ... Everything else I have done is
working fine.

I am new to this, so its likely a configuration problem. First of all, let
me say that Tomcat is a TRUELY WONDERFUL PIECE OF SOFTWARE, THANKS TO ALL
WHO WORK ON IT!!!

 Relevant facts:

- Running Tomcat 4.0.3 on Windows 2000 Professional.
- I created my own Service definition by copying relevent parts of others in
server.xml. (text available, but not included here to cut down on the size.)
- I use a different directory structure for my webapps than the one inside
Tomcat
- I copied the manager app directory (basically just web.xml in the WEB-INF
subdirectory) from the TomCat 4.0 webapps to mine.
- There are no configurations in my server.xml for applications, I rely on
the dynamic loading process where Tomcat loads anything as an application
which looks like one in the webapps directory, hence reloadable=true is NOT
set.
- Reload works always reports success, but changes to web.xml do not show up
(like adding a new servlet).
- Shutting down and restarting does reload web.xml (obviously)
- Installing a new .class file into the webapps directories DOES NOT show up
in the appllication unless a manager/reload is done.

Conclusion: web.xml is not reloaded, .class files are.

I have searched various online bugs and this email list and find no reports
of this problem.

I suppose the real solution is to put the configuration in server.xml, but I
am reporting this anyway incase someone wants to fix it or it is a symptom
of a
more serious problem.

This is not a major annoyance, just a minor problem.

David Farb




--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Tomcat 3.3.1 and JDK 1.4

2002-04-12 Thread Ken Anderson

4.04b2 & JDK 1.4 works very well. Using it on XP and R.H. Linux 7.2
No reason 3.3.1 wouldn't work also.
Ken


Carlos Martins wrote:
> Yep. i'm using it. actually, i'm using tomcat 4.0.2 with JDK 1.4, and it's working 
>fine.
> 
> -Original Message-
> From: Michel COTE [mailto:[EMAIL PROTECTED]]
> Sent: sexta-feira, 12 de Abril de 2002 11:39
> To: '[EMAIL PROTECTED]'
> Subject: Tomcat 3.3.1 and JDK 1.4
> 
> 
> What do you think about using Tomcat 3.3.1 with the new Sun's JDK 1.4.
> 
> Does anybody already uses it ?
> 
> Thanks for any help.
> 
> Michel COTE
> Coopérateurs de Normandie Picardie
> Tel : 232111086
> email : [EMAIL PROTECTED]
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 
> 
> 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Configuration information

2002-04-12 Thread Danilo Luiz Rheinheimer

At 10:37 12/4/2002 -0400, you wrote:
>You can put these as init-param entries in web.xml.  If I have a large
>number of them and/or the administrator may need to edit them, I put them in
>a properties file and create an init-param entry that points to this file.
>I trust someone editing the properties file more than the deployment
>descriptor.  :-)

   And how do you access it on the beans code ?




Danilo Luiz Rheinheimer
Florianopolis/SC Brasil
Sony Clié 615C
mailto:[EMAIL PROTECTED]



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




web.xml file

2002-04-12 Thread Janarthanan, Prasanna


we have our web application running with tomcat 3.2.3. It is working fine
but now iam upgradin to tomcat 4.0. here i face problem in context of
server.xml. I have written the context in server.xml.
I wonder whether it has any touch with the web.xml file of my web
application.
coz the examples given in tomcat 4 has a web.xml file which has some large
contents which i don't have it in web.xml file of my web application. but
with my own web.xml itself it was working fine with tomcat 3.2.3.
 
please calrify me where i need to make changes for this tomcat 4 to work
with my web application.. probably u can help in the best way.. as i saw ur
mail in tomcat user list as u are very well working with tomcat 4.0.2.
 
please help me out.
 
prassana
deshaw india software pvt limited.



RE: Configuration information

2002-04-12 Thread Wagoner, Mark

You can put these as init-param entries in web.xml.  If I have a large
number of them and/or the administrator may need to edit them, I put them in
a properties file and create an init-param entry that points to this file.
I trust someone editing the properties file more than the deployment
descriptor.  :-)

-Original Message-
From: Danilo Luiz Rheinheimer [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 12, 2002 10:32 AM
To: [EMAIL PROTECTED]
Subject: Configuration information


   Hi,

   I am posting again this question from another beginner Tomcat user.
   I see no answers to it and how I have the exactly same problem here is it
:

   I'm new to tomcat and was just wondering where other developers put
configuration key value pairs in there tomcat apps.
   For example, if I wanted to read in a version number and display it on
one
of my pages. Or if my app connects to multiple databases. Where could I
put the connection information? Can you put that kind of stuff in the
web.xml file? Are there built in conveniences to do this?





Danilo Luiz Rheinheimer
Florianopolis/SC Brasil
Sony Clié 615C
mailto:[EMAIL PROTECTED]



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Configuration information

2002-04-12 Thread Danilo Luiz Rheinheimer

   Hi,

   I am posting again this question from another beginner Tomcat user.
   I see no answers to it and how I have the exactly same problem here is it :

   I'm new to tomcat and was just wondering where other developers put
configuration key value pairs in there tomcat apps.
   For example, if I wanted to read in a version number and display it on one
of my pages. Or if my app connects to multiple databases. Where could I
put the connection information? Can you put that kind of stuff in the
web.xml file? Are there built in conveniences to do this?





Danilo Luiz Rheinheimer
Florianopolis/SC Brasil
Sony Clié 615C
mailto:[EMAIL PROTECTED]



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Where I can find this kind of information

2002-04-12 Thread Danilo Luiz Rheinheimer

   Hi,

   I am starting in Tomcat/JSP development and I have some common questions.
   For example :

   - In my application I have many session beans. How can they communicate 
? This is how get a reference the instance of other bean on the same session.
   - How I can create a singleton class ?

   This is as I say before problems everyone will face and must be on JSP 
101 classes. So where I can find this kind of information ?
   And if someone can post me  tip for the first question is ok too ...




Danilo Luiz Rheinheimer
Florianopolis/SC Brasil
mailto:[EMAIL PROTECTED]



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Want to grab SQL stmt from executing servlet

2002-04-12 Thread Wagoner, Mark

If the database is Oracle there is a system table called V$SQLAREA that
holds this information.

-Original Message-
From: Scott Purcell [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 12, 2002 10:17 AM
To: [EMAIL PROTECTED]
Subject: Want to grab SQL stmt from executing servlet


Hello,

I have the need to parse out a query from a running .jar file.
The .jar is a servlet that does some queries to a local DB. I want to grab
the querystring that is being sent to the
DB somehow when I am running the servlet.

Is there anyway to achieve this goal??




--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Multiple tomcats (4.0.3), Apache 1.3.20, RH 7.2 - Help pls, we're desperate!!!

2002-04-12 Thread @Basebeans.com

Subject: Re: Multiple tomcats (4.0.3), Apache 1.3.20, RH 7.2 - Help pls, we're 
desperate!!!
From: "Thinh Doan" <[EMAIL PROTECTED]>
 ===
Sorry I transcribed (not copied & pasted) the scripts wrong.  It was as you
said:
WebAppDeploy app2 conn2 /app2

I used 2 instances for manageability & reliability. If one app causes
problems, it would not affect the other and I could fix and restart that
tomcat app.

Thanks for your response  Any other suggestions.

Thinh

"Brett Porter" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> WebAppDeploy app2 conn2 /app1
>
> I think this is the problem, try:
>
> WebAppDeploy app2 conn2 /app2
>
> :)
>
> BTW, why run two instances? Why not deploy two webapps into one tomcat
> instance?
>
> Cheers,
> Brett
>
> -Original Message-
> From: Jakarta Tomcat Newsgroup [mailto:[EMAIL PROTECTED]]
> Sent: Friday, 12 April 2002 2:55 PM
> To: [EMAIL PROTECTED]
> Subject: Multiple tomcats (4.0.3), Apache 1.3.20, RH 7.2 - Help pls,
> we're desperate!!!
>
>
> Subject: Multiple tomcats (4.0.3), Apache 1.3.20, RH 7.2 - Help pls, we're
> desperate!!!
> From: "Thinh Doan" <[EMAIL PROTECTED]>
>  ===
> BlankWe're having a tough time configuring multiple tomcats running on the
> same server using mod_webapp. Each individual tc starts up fine, each with
> its own warp connector port and CATALINA_BASE.
>
> Under this config. of httpd.conf:
> ...
> LoadModule webapp_module modules/mod_webapp.so
> AddModule mod_webapp.c
> NameVirtualHost 207.208.169.9
> 
> ServerName www.app1.com
> DocumentRoot /home/projects/GS/app1root
> WebAppConnection conn1 warp localhost:8008
> WebAppDeploy app1 conn1 /app1
> 
>
> 
> ServerName www.app2.com
> DocumentRoot /home/projects/GS/app2root
> WebAppConnection conn2 warp localhost:8009
> WebAppDeploy app2 conn2 /app1
> 
> ...
> Apache error_log indicated that it can not bind app1. When looking into
> apache_log under app2root/logs, it indicated that it was looking for app1
> under app2root/webbaps.  Why?
>
> from apache_log:
> ...
> 2002-04-11 16:38:18
> [org.apache.catalina.connector.warp.WarpConfigurationHandler] Cannot find
> "/home/projects/GS/app2root/webapps/app1" for appl. "app1" host
> "www.app1.com"
> 2002-04-11 16:38:18
> [org.apache.catalina.connector.warp.WarpConfigurationHandler] Error
> deploying web application "app1" under http://www.app1.com:80/app1/
> ... (repeating the above 2 lines zillion times)
>
> If it looks for app1 under ../app1root/webapps, it should find it there.
> What did we do wrong? Pls help. We've spent 2 weeks so far trying to do
> this.  We're desperate, needless to say.
>
> Thanks much,
> Thinh
>
> PS: tc server.xml of app2, similar setup for app1:
> 
> 
> 
>  port="8009" minProcessors="5" maxProcessors="75"
> enableLookups="true" appBase="webapps"
> acceptCount="10" debug="0"/>
> 
>  name="Apache" defaultHost="www.app2.com" debug="0">
> 
>  prefix="apache_log." suffix=".txt"
> timestamp="true"/>
>
> 
> 
> 
> 
> 
> 
> 
>
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: AWT classes

2002-04-12 Thread Stuart Stephen

It's not quite what i'm after. What i'd like is to try and get as much of
the capabilities of an RTF text field into an applet running AWT. So, text
and images can be within the same component. I would have thought that there
must be something out there by now?

If anyone knows of anything that might be of use that would be useful.

Cheers,
Stuart

-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
Sent: 12 April 2002 12:23
To: Tomcat Users List
Subject: AW: AWT classes


Have a look at http://www.eteks.com/pja/en/.

(Haven't used so don't know if it applies to your needs)

> -Ursprüngliche Nachricht-
> Von: Stuart Stephen [mailto:[EMAIL PROTECTED]]
> Gesendet: Freitag, 12. April 2002 13:12
> An: Tomcat Users List
> Betreff: AWT classes
>
>
> Does anybody know of any AWT classes that are available to
> buy if neccessary
> that will allow text formatting, images etc.. within an applet?
> Unfortunately I can't use swing components as applets don't allow it.
>

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Want to grab SQL stmt from executing servlet

2002-04-12 Thread Scott Purcell

Hello,

I have the need to parse out a query from a running .jar file.
The .jar is a servlet that does some queries to a local DB. I want to grab the 
querystring that is being sent to the
DB somehow when I am running the servlet.

Is there anyway to achieve this goal??




--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Problems getting "jspc" to completely work

2002-04-12 Thread Christian Bourque

You can't use Jikes to compile java files generated by JspC !

There's a bug in Jikes that makes it crash when you compile JspC stuff (and
its documented) !

Christian

- Original Message -
From: "Sean LeBlanc" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Thursday, April 11, 2002 6:46 PM
Subject: RE: Problems getting "jspc" to completely work


> Speaking of the JspC stuff again, is there any way to drop in Jikes as a
compiler for this?
> It's currently taking a long, long time: 5-6 minutes to finish compiling.
It is only a Pentium II
> that I'm doing it on, but it's FreeBSD running almost nothing else but
Tomcat and the compilation in
> question.
>
> Thanks,
> Sean
>
> > -Original Message-
> > From: David M. Karr [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, April 11, 2002 4:07 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: Problems getting "jspc" to completely work
> >
> >
> > > "Christian" == Christian Bourque
> > <[EMAIL PROTECTED]> writes:
> >
> > Christian> David,
> > Christian> I think you shouldn't use "file://" for your
> > entity file ! In your war
> > Christian> archive, "webinc.xml" should be in the same
> > directory as web.xml (/WEB-INF)
> >
> > Christian> Here's my web.xml:
> >
> > Christian> 
> > Christian> 
> > Christian>   &auto-web;
> > Christian>  ...
> > Christian> 
> >
> > Yes, I have them in the same directory.  The reason I use
> > "file:./webinc.xml"
> > as opposed to just "webinc.xml" is because I get a different
> > error otherwise:
> >
> > 2002-04-11 02:59:40 - Exception initializing
> > TldLocationsCache: XML parsing error on file
> > /WEB-INF/web.xml: (line 6, col -1): Relative URI
> > "webinc.xml"; can not be resolved without a base URI.
> >
> > I ran into this once quite a while ago.  I asked about this,
> > but I never got an
> > answer (I believe).  I finally dug into the XML parsing code,
> > and at that time,
> > and from what I saw, I came up with that workaround.
> >
> > Christian> Also don't worry about the error message
> > reported by Tomcat (XmlMapper) and
> > Christian> here's why :
> >
> > Christian> This is not an error, rather a warning you can
> > ignore. Namely, Tomcat has
> > Christian> several predefined public id's (most
> > specifically it has a cached instance
> > Christian> of the entity with public ID "-//Sun
> > Microsystems, Inc.//DTD Web Application
> > Christian> 2.2//EN", so that it needn't load it from the system id
> > Christian>
> > "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"; on every startup. This
> > Christian> message only informs you that it does not know
> > anything about the document
> > Christian> with public ID "auto-web.ent", so it will load
> > it from its system ID (that
> > Christian> is, from the file you supplied).
> >
> > That eases my concern about the first error, but I still
> > don't know why the
> > Stop and Start operations fail, and why it fails to find
> "file:./webinc.xml"
> (probably the underlying root cause for the "Start" failure).
>
> I almost wish the "JspC" class could automatically augment the "web.xml"
with
> the new mappings, as opposed to generating a separate file to include from
the
> main file.  However, if I could get the external entity reference working,
I'm
> sure I would quickly forget about that idea :) .
>
> --
> ===
> David M. Karr  ; Java/J2EE/XML/Unix/C++
> [EMAIL PROTECTED]
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




pageContext.include inside of custom tag jsp 1.1

2002-04-12 Thread Todd Kaplinger

Hello List,

I am looking for guidance with a specification issue that needs some more 
clarity.  Here is what is trying to be done.


<% pageContext.include("somePage.jsp"); %>


The current jasper code prevented this when it added the flush
statement inside of the PageContextImpl.include method.  When looking
at the recent Tomcat 4.0 (Jsp1.2) code, JspRuntimeLibrary now checks to see 
if the JspWriter is of type BodyContent before flushing.

1) Should this same change have been done for JSP 1.1 in Tomcat?
2) If yes to question 1, should the output of the included response's 
content be made available to the custom tag's BodyContent.doAfterBody()  
like the rest of the non-included content inside of that tag? For instance, 
retrieving the included resources response data via a 
getBodyContent.getString().

Thanks in advance.
Todd



_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




AW: AW: AW: AW: Tomcat intermittent failures

2002-04-12 Thread Ralph Einfeldt


So use <%@ page errorPage="/error.jsp" %>
to access the error page in the default context.
(webapps/ROOT/error.jsp)

Or <%@ page errorPage="//error.jsp" %>
for webapps//error.jsp

> -Ursprüngliche Nachricht-
> Von: David Bank [mailto:[EMAIL PROTECTED]]
> Gesendet: Freitag, 12. April 2002 15:36
> An: [EMAIL PROTECTED]
> Betreff: Re: AW: AW: AW: Tomcat intermittent failures
> 
> 
> Ralph,
> 
> Our code does indeed declare use of error.jsp.
> 
> The Tomcat error messages seem to say only that a file was 
> not found. They don't seem to specify the file.
> 
> Dave Bank
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




jvm monitoring

2002-04-12 Thread Laurent Michenaud

Hi,

We 've got problems with our application running under Tomcat-3.3.1
with IBM JDK 1.3.1.
Memory is growing until it crashes( not enough memory exception ).
We have modified the parameter -Xms and -Xmx but it has not changed
anything.

We think the problem comes from our application.

We are searching for a mean of monitoring the objects, instances, heap
size, 
garbage collector, in the JVM.

Do u know any tools to do that ?

We have tried jprofiler but it does not show the objects created in the
different
context.

Michenaud Laurent
- Adeuza -
[ Développeur Web - Administrateur Réseau ]


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: AW: AW: AW: Tomcat intermittent failures

2002-04-12 Thread David Bank

Ralph,

Our code does indeed declare use of error.jsp.

The Tomcat error messages seem to say only that a file was not found. They don't seem 
to specify the file.

Dave Bank

>>> [EMAIL PROTECTED] 04/12/02 02:47AM >>>
AFAIK tomcat uses the error.jsp only if you declare one in 
the page directive. If you have a a page directive it should
be possible to use just one error.jsp. If you don't have this 
directive I think that your assumption is wrong. (At least in
our installation of tomcat, tomcat shows the error in the 
browser if any happens and you don't specify a error page in 
the jsp)

If your assumption is right you should find some messages
in the logs that are generated by tomcat.

> -Ursprüngliche Nachricht-
> Von: David Bank [mailto:[EMAIL PROTECTED]] 
> Gesendet: Donnerstag, 11. April 2002 18:35
> An: [EMAIL PROTECTED] 
> Betreff: Re: AW: AW: Tomcat intermittent failures
> 
> Our current theory is that there is an error in compiling the 
> revised JSP. If the .class and .java files are there from the 
> previous revision, they are displayed. If those files are not 
> there, then we think Tomcat tries to display a standard file 
> error.jsp. Unfortunately, we don't have a copy of error.jsp 
> in every directory, which the leads to the 404 - File Not 
> Found message.
> 
> That is the theory of operation we've developed, if it 
> contradicts how Tomcat actually works, please let us know. 
> Under this theory our corrective action is to make sure there 
> is a copy of error.jsp in every directory.
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: web.xml

2002-04-12 Thread Andy Eastham

Jan,

Go to www.moreservlets.com  - homepage of a great book on servlets and JSP.
One of the sample chapters available in PDF is all about web.xml.

As I've said before, I'd thoroughly recommend this book.  (I've no
connection with the author!).

Andy

> -Original Message-
> From: Pekník Jan [mailto:[EMAIL PROTECTED]]
> Sent: 12 April 2002 13:58
> To: 'Tomcat Users List'
> Subject: web.xml
>
>
>
> Hi,
>
> I'm looking for detailed description or a tutorial of web.xml file - it's
> contents, elements, and so on...
> In Servlet 2.2 spec. is only a DTD with very small explanation.
> Can anybody help me please?
>
>   Thank, Jan Peknik
>
> ---
> Odchozí zpráva neobsahuje viry.
> Zkontrolováno antivirovým systémem AVG (http://www.grisoft.cz).
> Verze: 6.0.346 / Virová báze: 194 - datum vydání: 10.4. 2002
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Hosting Tomcat from IIS w/ virtual hosts

2002-04-12 Thread John Roth

In our environment, we have several virtual IIS hosts, each with it's own
instance of Tomcat.  However, we don't use the host headers to determine the
appropriate website; each website has it's own unique IP address.  In that
scenario, each instance of Tomcat uses the same IP address as the website,
and Tomcat looks at the same port on each individual address, instead of
0.0.0.0.  Below is a copy of two server.xml's used as examples: they have
been stripped down to the relevant tags:

Server.xml from Development server:
---

  


   ... Appropriate Engine, Host, and Context tags ...
  


Server.xml from QA server:
--

  


   ... Appropriate Engine, Host, and Context tags ...
  


Key Points:
---
1. Notice that the shutdown ports (line 1) are different.  These always
listen on 0.0.0.0, so each TC instance must have a unique port.
2. Notice the address attribute in the Connector tags.  Each TC/IIS site has
a unique IP address
3. Additional changes may be required elsewhere, for example: if using AJP,
the workers.properties for each site need to reflect the appropriate IP
addresses and ports.
4. This environment does use multiple Tomcat instances, so some redefinition
of the TOMCAT_BASE and TOMCAT_HOME environment variables needed to be
changed for each Tomcat service (defined in wrapper.properties), again if
using multiple instances of TC, each running as a service.

Will be monitoring the UG for more information!
John


-Original Message-
From: Ted Neward [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 12, 2002 5:27 AM
To: TomcatUserList
Subject: Hosting Tomcat from IIS w/ virtual hosts


Anybody out there using Tomcat from IIS running multiple virtual hosts? Can
somebody share the secret magic words necessary to make the connector
recognize the host: headers and route appropriately to different Tomcat
webapps?

Ted Neward
{.NET || Java} Course Author & Instructor, DevelopMentor
(http://www.develop.com)
http://www.javageeks.com/tneward
http://www.clrgeeks.com/tneward



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: TC hidding console

2002-04-12 Thread RAYMOND Romain


yeah, thanks
javaw was my good gift of the afternoon.

Peter Romianowski a écrit :
> 
> or simply use javaw instead of java (you would have to look into catalina.bat or .sh
> in order to change that)
> 
> > -Original Message-
> > From: Andy Eastham [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, April 12, 2002 2:09 PM
> > To: Tomcat Users List; [EMAIL PROTECTED]
> > Subject: RE: TC hidding console
> >
> >
> > There is a /b option in the start command that prevents a new window being
> > created.  You could try hacking the startup scripts to use this.  I haven't
> > tried this though.
> >
> > Andy
> >
> > > -Original Message-
> > > From: RAYMOND Romain [mailto:[EMAIL PROTECTED]]
> > > Sent: 12 April 2002 12:50
> > > To: Tomcat Users List
> > > Subject: Re: TC hidding console
> > >
> > >
> > >
> > > Because it is to give a demo embended on a CD and I would not like
> > > to make all my debugs appear ...
> > >
> > > Barney Hamish a écrit :
> > > >
> > > > Why don't you just run Tomcat as a service. Then you'll never see the
> > > > console.
> > > >
> > > > -Original Message-
> > > > From: RAYMOND Romain [mailto:[EMAIL PROTECTED]]
> > > > Sent: Friday, April 12, 2002 1:45 PM
> > > > To: Tomcat Users List
> > > > Subject: TC hidding console
> > > >
> > > > Hello,
> > > >
> > > > is there a way under Windows2000 to hide TC console when starting up ?
> > > >
> > > > thanks.
> > > >
> > > > --
> > > > To unsubscribe:   
> > > > For additional commands: 
> > > > Troubles with the list: 
> > > >
> > > > --
> > > > To unsubscribe:   
> > > > For additional commands: 
> > > > Troubles with the list: 
> > >
> > > --
> > > To unsubscribe:   
> > > For additional commands: 
> > > Troubles with the list: 
> > >
> > >
> >
> >
> >
> > --
> > To unsubscribe:   
> > For additional commands: 
> > Troubles with the list: 
> >
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




catalina.out / configuration / stderr messages

2002-04-12 Thread rob

During development I find it useful for stderr to be dumped to the terminal from which
tomcat was started.  With tomcat 4.0.3 standard error by default goes to catalina.out
where can I change this so that it goes to my terminal instead?

Thanks

Rob


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




web.xml

2002-04-12 Thread Pekník Jan


Hi, 

I'm looking for detailed description or a tutorial of web.xml file - it's
contents, elements, and so on...
In Servlet 2.2 spec. is only a DTD with very small explanation. 
Can anybody help me please? 

Thank, Jan Peknik

---
Odchozí zpráva neobsahuje viry.
Zkontrolováno antivirovým systémem AVG (http://www.grisoft.cz).
Verze: 6.0.346 / Virová báze: 194 - datum vydání: 10.4. 2002
 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: JNDI realm against win2000 DC (REPOST SORRY)

2002-04-12 Thread Soefara Redzuan

No sooner have I hit send then I find the solution for you !!

http://forum.java.sun.com/thread.jsp?forum=51&thread=194669

Please do let us know if it works.

Soefara.

>From: "Soefara Redzuan" <[EMAIL PROTECTED]>
>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: JNDI realm against win2000 DC (REPOST SORRY)
>Date: Fri, 12 Apr 2002 20:55:31 +0800
>
>Do you mean authentication against a Windows 2000 Active Directory ? The
>latter is based upon LDAP I believe and therefore should be accessible. At
>least that's what the JNDI FAQ implies
>http://java.sun.com/products/jndi/faq.html
>
>However, for authentication purposes, you need to communicate with the
>server via SSL. I've never managed to get this to work successfully but
>there are quite a few references in the forums. For example
>http://forum.java.sun.com/thread.jsp?forum=51&thread=91182
>
>Please do let us know if you get it working. I'm sure there are many people
>who would love to use it too.
>
>Soefara.
>
>
>
>
>
>>From: "Jacob Lund" <[EMAIL PROTECTED]>
>>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>>To: <[EMAIL PROTECTED]>
>>Subject: JNDI realm against win2000 DC (REPOST SORRY)
>>Date: Fri, 12 Apr 2002 14:39:07 +0200
>>
>>Sorry about this repost, but it is really bugging me!
>>
>>
>>Does anyone have a TC 4.0.x configured with a JNDI realm against a
>>windows 2000 domain controller? Or maybe just know how to set this up!
>>
>>I have been looking at the JNDI how-to and I cannot get it working.
>>
>>Thanks,
>>Jacob
>>
>>
>>--
>>To unsubscribe:   
>>For additional commands: 
>>Troubles with the list: 
>>
>
>
>_
>Chat with friends online, try MSN Messenger: http://messenger.msn.com
>
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 
>


_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: JNDI realm against win2000 DC (REPOST SORRY)

2002-04-12 Thread Soefara Redzuan

Do you mean authentication against a Windows 2000 Active Directory ? The 
latter is based upon LDAP I believe and therefore should be accessible. At 
least that's what the JNDI FAQ implies
http://java.sun.com/products/jndi/faq.html

However, for authentication purposes, you need to communicate with the 
server via SSL. I've never managed to get this to work successfully but 
there are quite a few references in the forums. For example
http://forum.java.sun.com/thread.jsp?forum=51&thread=91182

Please do let us know if you get it working. I'm sure there are many people 
who would love to use it too.

Soefara.





>From: "Jacob Lund" <[EMAIL PROTECTED]>
>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Subject: JNDI realm against win2000 DC (REPOST SORRY)
>Date: Fri, 12 Apr 2002 14:39:07 +0200
>
>Sorry about this repost, but it is really bugging me!
>
>
>Does anyone have a TC 4.0.x configured with a JNDI realm against a
>windows 2000 domain controller? Or maybe just know how to set this up!
>
>I have been looking at the JNDI how-to and I cannot get it working.
>
>Thanks,
>Jacob
>
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 
>


_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Help using JDBC realm with MySQL

2002-04-12 Thread Dennis Doubleday

Sorry, if relaxAutocommit didn't work for you, I'm stumped. I was
getting the same exception until I added the parameter. Now, I wasn't
using JDBC realm...but that's why the parameter is provided, to prevent
that error.

> -Original Message-
> From: Shawn A. Wilson [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, April 11, 2002 9:12 PM
> To: Tomcat Users List
> Subject: RE: Help using JDBC realm with MySQL
> 
> 
> Well, I tried adding the relaxAutocommit=true parameter but I 
> still get 
> the same message. Arg... this is not making any sense. Do my 
> tables need 
> to be of a specific type? I created them without any options so they 
> should be MyISAM.


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Designing for scalability ?

2002-04-12 Thread Jon Barber

There is an excellent article at The ServerSide about adding in-memory 
session sharing across Tomcat engines : 
http://www.theserverside.com/resources/article.jsp?l=Tomcat

Using an RDBMS as the session store would add a high degree of 
resiliency at the cost of performance. The approach above seems pretty 
fast and resilient. It's almost magical to start up new Tomcat instances 
and see the session data shared with them.

Jon.

Soefara Redzuan wrote:

>> From: David Lu <[EMAIL PROTECTED]>
>> you're talking about a clustered environment. such capabilities
>> are already available in commercial app servers like weblogic.
>
>
> I've often wondered why somebody would actually want to put out 
> several thousand US$ for a BEA or ATG when Tomcat is available. Are 
> such features in the Tomcat roadmap ? I presume that they were not in 
> the J2EE specifications.
>
>> here are some things you want to do now if you think you'll ever
>> go clustered:
>>
>> - make sure everything you put into the session implements 
>> Serializable. this way the app server can share session data.
>
>
> Nice tip. How does a clustered environment share these objects ? I'm 
> surprised that they (and Tomcat) don't provide the option of usinga 
> central relational database for storing session objects between 
> multiple servers.
>
>> - don't put large data objects (like a Collection) into the session.
>> - don't rely on static data held in singleton objects, because you may
>> end up with multiple singleton objects, one in every app server 
>> instance.
>> - code to standards and avoid app-server-specific "features" as much
>> as you can, for you may have to change app servers for clustering.
>
>
> Super. Thank you for sharing this experience and wisdom, David.
>
> Soefara.
>
>
> _
> Join the world?s largest e-mail service with MSN Hotmail. 
> http://www.hotmail.com
>
>
> -- 
> To unsubscribe: 
> For additional commands: 
> Troubles with the list: 
>
>




--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: RMI Server in Tomcat problems

2002-04-12 Thread Lance Smith

High Weber,
try
System.setSecurityManager(new RMISecurityManager("fully qualified name of
you're security file"));
Lance

-Original Message-
From: Jürgen Weber [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 12, 2002 7:33 AM
To: [EMAIL PROTECTED]
Subject: RMI Server in Tomcat problems


Hi

I tried to set up an RMI server in tomcat 4.03

First problem is, there seems to be no possibility to have something in
tomcat like weblogics startup classes, i.e. classes that are called at
server startup.

So I had to trigger a servlet by hand that does the initialisation and
registry of the RMI server.

Tomcat and RMI client both on my NT machine worked.

On different machines the client gets the exception below.
Running the RMI Server in a stand-alone VM outside of tomcat
works.

First I had the following,

if (null == System.getSecurityManager())
System.setSecurityManager(new RMISecurityManager());

but it would not be called as tomcat already has a SecurityManager. So I
left the if - part but still no
change.

So I wonder, if it is possible to have an RMI Server in Tomcat at all?


I started with catalina start -security.

catalina.policy is only

grant {
permission java.security.AllPermission;
};



   [java] java.rmi.ConnectException: Connection refused to host: localhost;
nested exception is:
   [java] java.net.ConnectException: Connection refused: connect
   [java] at
sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:567)
   [java] at
sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185)
   [java] at
sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
   [java] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:101)
   [java] at webservice.rmiserver.RMIServerImpl_Stub.register(Unknown
Source)
   [java] at
.webservice.rmiclient.RMIClientImpl.main(RMIClientImpl.java:110)
   [java] Caused by: java.net.ConnectException: Connection refused: connect
   [java] at java.net.PlainSocketImpl.socketConnect(Native Method)
   [java] at
java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:295)
   [java] at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:161)
   [java] at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:148)
   [java] at java.net.Socket.connect(Socket.java:425)
   [java] at java.net.Socket.connect(Socket.java:375)
   [java] at java.net.Socket.(Socket.java:290)
   [java] at java.net.Socket.(Socket.java:118)
   [java] at
sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketF
actory.java:22)
   [java] at
sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketF
actory.java:122)
   [java] at
sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:562)
   [java] ... 5 more
   [java] Java Result: 1

_
Downloaden Sie MSN Explorer kostenlos unter http://explorer.msn.de/intl.asp.


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: How to route requests by URL

2002-04-12 Thread rsequeira


You can add an Alias element within the Host element in server.xml.
Something like this:

 myapp.mywebsite.com
 


RS





"Rick Snide" <[EMAIL PROTECTED]> on 04/12/2002 07:22:44 AM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:   <[EMAIL PROTECTED]>
cc:

Subject:  How to route requests by URL

I know how to setup an application such as www.mywebsite.com/myapp so that
Tomcat knows what to do with URLs that have the "/myapp" appended - to
setup security, etc.


Are we also able to have something like myapp.mywebsite.com such that
Tomcat knows what to do with it?  I would like to do this and route it to
webapps/myapp


Thanks in advance.









--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Designing for scalability ?

2002-04-12 Thread Soefara Redzuan

>From: David Lu <[EMAIL PROTECTED]>
>you're talking about a clustered environment.  such capabilities
>are already available in commercial app servers like weblogic.

I've often wondered why somebody would actually want to put out several 
thousand US$ for a BEA or ATG when Tomcat is available. Are such features in 
the Tomcat roadmap ? I presume that they were not in the J2EE 
specifications.

>here are some things you want to do now if you think you'll ever
>go clustered:
>
>- make sure everything you put into the session implements  Serializable. 
>this way the app server can share session data.

Nice tip. How does a clustered environment share these objects ? I'm 
surprised that they (and Tomcat) don't provide the option of usinga central 
relational database for storing session objects between multiple servers.

>- don't put large data objects (like a Collection) into the session.
>- don't rely on static data held in singleton objects, because you may
>   end up with multiple singleton objects, one in every app server 
>instance.
>- code to standards and avoid app-server-specific "features" as much
>   as you can, for you may have to change app servers for clustering.

Super. Thank you for sharing this experience and wisdom, David.

Soefara.


_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




JNDI realm against win2000 DC (REPOST SORRY)

2002-04-12 Thread Jacob Lund

Sorry about this repost, but it is really bugging me!


Does anyone have a TC 4.0.x configured with a JNDI realm against a
windows 2000 domain controller? Or maybe just know how to set this up!

I have been looking at the JNDI how-to and I cannot get it working.

Thanks,
Jacob


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




AW: libawt.so - No such file or directory - What's wrong?

2002-04-12 Thread Torsten Fohrer


Hi,

1.if you use awt objects you need a running X-Server, because
most awt controls needed a native peer control, that's needed the X-Server..

2. if you will run tomcat, or other jsp/servlet engines you need the jdk not
the jre...

(for version before 1.3 known, 1.4 not tested...)

ok...?


-Ursprüngliche Nachricht-
Von: Rasmus Wiman [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 12. April 2002 14:22
An: [EMAIL PROTECTED]
Betreff: libawt.so - No such file or directory - What's wrong?


Hi all.

We have a little problem with a site we've moved from servletrunner, Sun
jre 1.3 and NT to a Slackware 8.0 box running tomcat 4.02. We started out
with IBM:s jre 1.3, but have also tried Sun jre 1.3 (We of course did the
mandatory ulimit -s 6144 to avoid java segfaulting). Each time we try to
create a java.awt.Color object we get an exception, the system can't find
$JAVA_HOME/lib/i386/libawt.so. Of course we have double checked it, the
.so file is certainly there. What could be wrong?

I inlcuded the complete exception output below. Any Ideas?

DEBUG [Report Servlet Thread] ReportServlet- ExportableImageContainer=
ERROR [Report Servlet Thread] ReportServlet- Unexpected exception when
creating a report. java.lang.UnsatisfiedLinkError:
/usr/local/jre1.3.1_03/lib/i386/libawt.so: cannot open shared object file:
cannot load shared object file: No such file or directory   at
java.lang.ClassLoader$NativeLibrary.load(Native Method) at
java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1414)   at
java.lang.ClassLoader.loadLibrary(ClassLoader.java:1330)at
java.lang.Runtime.loadLibrary0(Runtime.java:744)at
java.lang.System.loadLibrary(System.java:815)   at
sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:48)at
java.security.AccessController.doPrivileged(Native Method)  at
java.awt.Toolkit.loadLibraries(Toolkit.java:1065)   at
java.awt.Toolkit.(Toolkit.java:1086)at
java.awt.Color.(Color.java:183) at
se.tidax.webq.report.ReportServlet.BarChart(ReportServlet.java:800) at
se.tidax.webq.report.ReportServlet.getTotalWorkloadForMonthDiagramMonth(R
eportServlet.java:472)  at
se.tidax.webq.report.ReportServlet.doPost(ReportServlet.java:190)   at
se.tidax.webq.report.ReportServlet.doGet(ReportServlet.java:699)at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicat
ionFilterChain.java:247)at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilte
rChain.java:193)at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve
.java:243)  at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.jav
a:566)  at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:47
2)  at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)   at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve
.java:190)  at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.jav
a:566)  at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorB
ase.java:475)   at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.jav
a:564)  at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:47
2)  at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)   at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
180)at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.jav
a:566)  at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVal
ve.java:170)at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.jav
a:564)  at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
170)at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.jav
a:564)  at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.jav
a:564)  at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:47
2)  at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)   at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.j
ava:174)at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.jav
a:566)  at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:47
2)  at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)   at
org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:429)  at
org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:495)  at
java.lang.Thread.run(Thread.java:479) Unexpected exception when creating a
report.

Re: Tomcat 4.x and Database Connection Pooling

2002-04-12 Thread Soefara Redzuan

I don't understand why you need it to be abstract.

I don't think that Struts necessarily changes it either.

Remember that your servlets calling the class are multi-threaded. That's the 
one thing that I completely misunderstood when I first started writing 
servlets.

As I understand it, just say 3 simultaneous requests come in for the servlet 
that uses your DatabaseManager class. The servlet will create 3 threads to 
deal with these requests. Each thread will create an instance of your 
DatabaseManager class (unless you make it a static class variable which 
would probably be a bad idea).  Each instance of the DatabaseManager class 
(one instance for each servlet thread) will then grab a database connection 
from the database pool manager using JNDI. Therefore, do not employ global 
static variables or else you'll need to use synchronized and that will also 
defeat the object of database pooling.

Please correct me if I'm wrong and sorry if I have not answered your 
question. Be aware that I'm not a java maestro.

Soefara

>From: Ric Searle <[EMAIL PROTECTED]>
>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>To: "Tomcat Users List" <[EMAIL PROTECTED]>
>Subject: Re: Tomcat 4.x and Database Connection Pooling
>Date: Thu, 11 Apr 2002 20:17:32 +0100
>
>Thanks to everyone who's commented on this - I can't believe that I
>hadn't come across the JNDI solution, but it's working beautifully now.
>So onto the next, closely related issue...
>
>I'm accessing my database, via JNDI, using a class called
>DatabaseManager.  My aim is that this class abstracts the database
>backend, so I can just call addUser(myUser), and it will take care of
>the SQL stuff behind the scenes.  At the moment,  this DatabaseManager
>contains code similar to Soefara's below to get a connection for itself
>whenever it has to make a db request.
>
>My confusion is what to do with this class - Should I declare it as
>abstract?  Does that ruin some of the pooling stuff?  I would really
>like to be able to create a global instance of this class, instantiated
>when the server starts, since individual requests don't need their own
>DatabaseManager.  But I'm using Struts, and I don't know how to do
>that!  Arghh...
>
>Any thoughts/experiences?
>
>   Ric Searle
>   Web Application Developer
>   --
>   Dialogue Communications Ltd
>
>   http://www.dialogue.co.uk
>   +44 (0) 114 221 0307
>
>On Thursday, April 11, 2002, at 06:02  pm, Craig R. McClanahan wrote:
>
>>
>>
>>On Thu, 11 Apr 2002, Soefara Redzuan wrote:
>>
>>>Date: Thu, 11 Apr 2002 10:46:14 +0800
>>>From: Soefara Redzuan <[EMAIL PROTECTED]>
>>>Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
>>>To: [EMAIL PROTECTED]
>>>Subject: Re: Tomcat 4.x and Database Connection Pooling
>>>
Tomcat:  As far as I'm concerned, JNDI support is a "now and forever
more"
feature of Tomcat 4 and later.  It's the standard access mechanism
for J2EE
app servers as well.
>>>
>>>This is what I love to hear. With so many changes (servlets to JSP to
>>>Struts) over the last few years, future-proofing is so important.
>>>
Recommendation:  If you can, you should use JNDI based access to data
sources.  This is both portable across containers, and portable across
Struts versus non-Struts applications.
>>>
In addition, it can be used from
directly from within a JavaBean implementing your business logic,
without requiring a reference to ActionServlet or the servlet context
(or
the web layer at all).
>>>
>>>Really ? This is incredibly important news to me. I've been acquiring
>>>the
>>>JNDI resource within my servlet then passing it as a parameter to my
>>>Javabean which is a terrible mechanism because it makes my javabean
>>>dependent on the servlet :(
>>>
>>>So, are we saying that once we've set up a pooled database connection
>>>JNDI
>>>resource in server.xml and web.xml, any Javabean that is called by a
>>>serlvet
>>>or JSP can make use of this JNDI resource directly like this
>>>
>>>
>>>In the javabean.
>>>
>>>import javax.naming.NamingException;
>>>import javax.naming.Context;
>>>import javax.naming.InitialContext;
>>>import javax.naming.NamingEnumeration;
>>>import javax.naming.directory.InitialDirContext;
>>>
>>>class mybean() {
>>> java.sql.Connection conn
>>> 
>>> get getPooledDatabaseConnection() {
>>> Context ctx = new  InitialContext();
>>> Context envCtx = (Context) ctx.lookup("java:/comp/env/");
>>> DataSource ds = (DataSource) envCtx.lookup("jdbc/dbpool");
>>> conn = ds.getConnection();
>>> }
>>> ...
>>>}
>>>
>>>If so, this is going to make development much easier. :-)
>>>
>>
>>Yep ... that is exactly the pattern you can use.  Nice, isn't it?
>>
>>>Soefara.
>>>
>>
>>Craig
>>
>>
>>--
>>To unsubscribe:   
>>For additional commands: 
>>Troubles with the list: 
>>
>>
>
>
>
>--
>To unsubscribe:   

RMI Server in Tomcat problems

2002-04-12 Thread Jürgen Weber

Hi

I tried to set up an RMI server in tomcat 4.03

First problem is, there seems to be no possibility to have something in 
tomcat like weblogics startup classes, i.e. classes that are called at 
server startup.

So I had to trigger a servlet by hand that does the initialisation and 
registry of the RMI server.

Tomcat and RMI client both on my NT machine worked.

On different machines the client gets the exception below.
Running the RMI Server in a stand-alone VM outside of tomcat
works.

First I had the following,

if (null == System.getSecurityManager())
System.setSecurityManager(new RMISecurityManager());

but it would not be called as tomcat already has a SecurityManager. So I 
left the if - part but still no
change.

So I wonder, if it is possible to have an RMI Server in Tomcat at all?


I started with catalina start -security.

catalina.policy is only

grant {
permission java.security.AllPermission;
};



   [java] java.rmi.ConnectException: Connection refused to host: localhost; 
nested exception is:
   [java] java.net.ConnectException: Connection refused: connect
   [java] at 
sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:567)
   [java] at 
sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185)
   [java] at 
sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
   [java] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:101)
   [java] at webservice.rmiserver.RMIServerImpl_Stub.register(Unknown 
Source)
   [java] at 
.webservice.rmiclient.RMIClientImpl.main(RMIClientImpl.java:110)
   [java] Caused by: java.net.ConnectException: Connection refused: connect
   [java] at java.net.PlainSocketImpl.socketConnect(Native Method)
   [java] at 
java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:295)
   [java] at 
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:161)
   [java] at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:148)
   [java] at java.net.Socket.connect(Socket.java:425)
   [java] at java.net.Socket.connect(Socket.java:375)
   [java] at java.net.Socket.(Socket.java:290)
   [java] at java.net.Socket.(Socket.java:118)
   [java] at 
sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
   [java] at 
sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:122)
   [java] at 
sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:562)
   [java] ... 5 more
   [java] Java Result: 1

_
Downloaden Sie MSN Explorer kostenlos unter http://explorer.msn.de/intl.asp.


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




libawt.so - No such file or directory - What's wrong?

2002-04-12 Thread Rasmus Wiman

Hi all.

We have a little problem with a site we've moved from servletrunner, Sun
jre 1.3 and NT to a Slackware 8.0 box running tomcat 4.02. We started out
with IBM:s jre 1.3, but have also tried Sun jre 1.3 (We of course did the
mandatory ulimit -s 6144 to avoid java segfaulting). Each time we try to
create a java.awt.Color object we get an exception, the system can't find
$JAVA_HOME/lib/i386/libawt.so. Of course we have double checked it, the
.so file is certainly there. What could be wrong?

I inlcuded the complete exception output below. Any Ideas?

DEBUG [Report Servlet Thread] ReportServlet- ExportableImageContainer=
ERROR [Report Servlet Thread] ReportServlet- Unexpected exception when
creating a report. java.lang.UnsatisfiedLinkError:
/usr/local/jre1.3.1_03/lib/i386/libawt.so: cannot open shared object file:
cannot load shared object file: No such file or directory   at
java.lang.ClassLoader$NativeLibrary.load(Native Method) at
java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1414)   at
java.lang.ClassLoader.loadLibrary(ClassLoader.java:1330)at
java.lang.Runtime.loadLibrary0(Runtime.java:744)at
java.lang.System.loadLibrary(System.java:815)   at
sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:48)at
java.security.AccessController.doPrivileged(Native Method)  at
java.awt.Toolkit.loadLibraries(Toolkit.java:1065)   at
java.awt.Toolkit.(Toolkit.java:1086)at
java.awt.Color.(Color.java:183) at
se.tidax.webq.report.ReportServlet.BarChart(ReportServlet.java:800) at
se.tidax.webq.report.ReportServlet.getTotalWorkloadForMonthDiagramMonth(R
eportServlet.java:472)  at
se.tidax.webq.report.ReportServlet.doPost(ReportServlet.java:190)   at
se.tidax.webq.report.ReportServlet.doGet(ReportServlet.java:699)at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicat
ionFilterChain.java:247)at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilte
rChain.java:193)at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve
.java:243)  at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.jav
a:566)  at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:47
2)  at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)   at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve
.java:190)  at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.jav
a:566)  at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorB
ase.java:475)   at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.jav
a:564)  at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:47
2)  at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)   at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
180)at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.jav
a:566)  at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVal
ve.java:170)at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.jav
a:564)  at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
170)at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.jav
a:564)  at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.jav
a:564)  at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:47
2)  at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)   at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.j
ava:174)at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.jav
a:566)  at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:47
2)  at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)   at
org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:429)  at
org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:495)  at
java.lang.Thread.run(Thread.java:479) Unexpected exception when creating a
report.java.lang.UnsatisfiedLinkError:
/usr/local/jre1.3.1_03/lib/i386/libawt.so: cannot open shared object file:
cannot load shared object file: No such file or directory

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




How to route requests by URL

2002-04-12 Thread Rick Snide

I know how to setup an application such as www.mywebsite.com/myapp so that Tomcat 
knows what to do with URLs that have the "/myapp" appended - to setup security, etc. 


Are we also able to have something like myapp.mywebsite.com such that Tomcat knows 
what to do with it?  I would like to do this and route it to webapps/myapp


Thanks in advance. 




RE: TC hidding console

2002-04-12 Thread Peter Romianowski

or simply use javaw instead of java (you would have to look into catalina.bat or .sh
in order to change that)

> -Original Message-
> From: Andy Eastham [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 12, 2002 2:09 PM
> To: Tomcat Users List; [EMAIL PROTECTED]
> Subject: RE: TC hidding console
>
>
> There is a /b option in the start command that prevents a new window being
> created.  You could try hacking the startup scripts to use this.  I haven't
> tried this though.
>
> Andy
>
> > -Original Message-
> > From: RAYMOND Romain [mailto:[EMAIL PROTECTED]]
> > Sent: 12 April 2002 12:50
> > To: Tomcat Users List
> > Subject: Re: TC hidding console
> >
> >
> >
> > Because it is to give a demo embended on a CD and I would not like
> > to make all my debugs appear ...
> >
> > Barney Hamish a écrit :
> > >
> > > Why don't you just run Tomcat as a service. Then you'll never see the
> > > console.
> > >
> > > -Original Message-
> > > From: RAYMOND Romain [mailto:[EMAIL PROTECTED]]
> > > Sent: Friday, April 12, 2002 1:45 PM
> > > To: Tomcat Users List
> > > Subject: TC hidding console
> > >
> > > Hello,
> > >
> > > is there a way under Windows2000 to hide TC console when starting up ?
> > >
> > > thanks.
> > >
> > > --
> > > To unsubscribe:   
> > > For additional commands: 
> > > Troubles with the list: 
> > >
> > > --
> > > To unsubscribe:   
> > > For additional commands: 
> > > Troubles with the list: 
> >
> > --
> > To unsubscribe:   
> > For additional commands: 
> > Troubles with the list: 
> >
> >
>
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: TC hidding console

2002-04-12 Thread Andy Eastham

There is a /b option in the start command that prevents a new window being
created.  You could try hacking the startup scripts to use this.  I haven't
tried this though.

Andy

> -Original Message-
> From: RAYMOND Romain [mailto:[EMAIL PROTECTED]]
> Sent: 12 April 2002 12:50
> To: Tomcat Users List
> Subject: Re: TC hidding console
>
>
>
> Because it is to give a demo embended on a CD and I would not like
> to make all my debugs appear ...
>
> Barney Hamish a écrit :
> >
> > Why don't you just run Tomcat as a service. Then you'll never see the
> > console.
> >
> > -Original Message-
> > From: RAYMOND Romain [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, April 12, 2002 1:45 PM
> > To: Tomcat Users List
> > Subject: TC hidding console
> >
> > Hello,
> >
> > is there a way under Windows2000 to hide TC console when starting up ?
> >
> > thanks.
> >
> > --
> > To unsubscribe:   
> > For additional commands: 
> > Troubles with the list: 
> >
> > --
> > To unsubscribe:   
> > For additional commands: 
> > Troubles with the list: 
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Problem accessing subdirectories within packed WAR files

2002-04-12 Thread John Burgess

I'm afraid I don't know what you need to do to the jar, but I have had
success making wars using the War  task in ant.  It is well worth
investigating ant just for its jar and war tasks alone, though all the rest
is good too!

Best Wishes
John Burgess
[EMAIL PROTECTED]
Tel: 01865 718666 
Fax: 01865 718600


-Original Message-
From: Neale Rudd [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 12, 2002 8:08 AM
To: Tomcat Users List
Subject: Re: Problem accessing subdirectories within packed WAR files


Hi Again,

Since writing this message we have discovered that some
WAR files do in fact work (files from subfolders in the WAR
can be accessed).  Is there an error in the way we are
compiling our own WAR file?

We are assuming it needs to be JAR'd the same as a
JAR file then renamed as .WAR.

Any help would be greatly appreciated, we are trying
to deploy a tomcat app for one of our customers and
having a lot of problems with this one issue.

Thanks again,
Best Regards,
Neale Rudd
metawerx
http://www.metawerx.net



-Original Message-
From: Neale Rudd <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Friday, 12 April 2002 14:32
Subject: Problem accessing subdirectories within packed WAR files


>Hi,
>
>When using the unpackWars=false tag in the Host configuration,
>I am able to deploy new webapps from WAR files using the manager
>app or by placing them into the webapps root and restarting tomcat.
>
>However, using this method, none of the subdirectories within the
>WAR files seem to work.
>
>From my understanding of the documentation, WAR files are
>meant to be an archive of a site, it's servlets and classes, but I
>can only seem to get files in the root of the WAR file to work unless
>the WAR is unpacked first.
>
>For example, with the WAR file layout below, the index.htm file
>can be accessed, but the file /images/test.gif and /other/other.htm
>cannot be accessed and show the error:
>
>404 (The requested resource (/other/other.htm) is not available)
>
>test.war layout:
>index.htm
>test.htm
>WEB-INF
>web.xml
>images
>test.gif
>other
>other.htm
>
>I am deploying the app as follows:
>
>Path: /
>War-URL: jar:file:/d:/tomcat/myserver/test.war!/
>
>The manager gives the response that the new path
>was successfully mapped, and I can then access
>my index.htm file using:
>
>http://servername/index.htm
>
>However, http://servername/images/test.gif fails, as does
>/other/other.htm
>
>This also happens when using any other path.  Only files in the root
>of
>the application seem to be accessable.
>
>When I unpack the WAR file, everything works properly.
>
>What am I doing wrong?  Am I missing something in my understanding
>of how WAR files are meant to work?
>
>Going over the archives, it seems other people have had this same
>problem accessing servlets within WAR files, but I cannot find a
>satisfactory answer.  People have either said "use a JAR file and
keep
>it unpacked" or "I can access the index.htm file, so therefore the
WAR
>files are working perfectly".
>
>Please help.
>
>Best Regards,
>Neale Rudd
>metawerx
>[EMAIL PROTECTED]
>http://www.metawerx.net
>
>
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 
>
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.346 / Virus Database: 194 - Release Date: 10/04/02
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.346 / Virus Database: 194 - Release Date: 10/04/02
 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: TC hidding console

2002-04-12 Thread RAYMOND Romain


Because it is to give a demo embended on a CD and I would not like
to make all my debugs appear ...

Barney Hamish a écrit :
> 
> Why don't you just run Tomcat as a service. Then you'll never see the
> console.
> 
> -Original Message-
> From: RAYMOND Romain [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 12, 2002 1:45 PM
> To: Tomcat Users List
> Subject: TC hidding console
> 
> Hello,
> 
> is there a way under Windows2000 to hide TC console when starting up ?
> 
> thanks.
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: TC hidding console

2002-04-12 Thread Barney Hamish

Why don't you just run Tomcat as a service. Then you'll never see the
console.

-Original Message-
From: RAYMOND Romain [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 12, 2002 1:45 PM
To: Tomcat Users List
Subject: TC hidding console



Hello,

is there a way under Windows2000 to hide TC console when starting up ?


thanks.

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




TC hidding console

2002-04-12 Thread RAYMOND Romain


Hello,

is there a way under Windows2000 to hide TC console when starting up ?


thanks.

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




AW: AWT classes

2002-04-12 Thread Ralph Einfeldt

Have a look at http://www.eteks.com/pja/en/.

(Haven't used so don't know if it applies to your needs)

> -Ursprüngliche Nachricht-
> Von: Stuart Stephen [mailto:[EMAIL PROTECTED]]
> Gesendet: Freitag, 12. April 2002 13:12
> An: Tomcat Users List
> Betreff: AWT classes
> 
> 
> Does anybody know of any AWT classes that are available to 
> buy if neccessary
> that will allow text formatting, images etc.. within an applet?
> Unfortunately I can't use swing components as applets don't allow it.
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




AWT classes

2002-04-12 Thread Stuart Stephen

Hey people,

Does anybody know of any AWT classes that are available to buy if neccessary
that will allow text formatting, images etc.. within an applet?
Unfortunately I can't use swing components as applets don't allow it.

I can't use Java Webstart either as it requires a download. The client must
be as thin as possible.

Stuart Stephen


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Tomcat 3.3.1 and JDK 1.4

2002-04-12 Thread Carlos Martins

Yep. i'm using it. actually, i'm using tomcat 4.0.2 with JDK 1.4, and it's working 
fine.

-Original Message-
From: Michel COTE [mailto:[EMAIL PROTECTED]]
Sent: sexta-feira, 12 de Abril de 2002 11:39
To: '[EMAIL PROTECTED]'
Subject: Tomcat 3.3.1 and JDK 1.4


What do you think about using Tomcat 3.3.1 with the new Sun's JDK 1.4.

Does anybody already uses it ?

Thanks for any help.

Michel COTE
Coopérateurs de Normandie Picardie
Tel : 232111086
email : [EMAIL PROTECTED]


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Tomcat 3.3.1 and JDK 1.4

2002-04-12 Thread Michel COTE

What do you think about using Tomcat 3.3.1 with the new Sun's JDK 1.4.

Does anybody already uses it ?

Thanks for any help.

Michel COTE
Coopérateurs de Normandie Picardie
Tel : 232111086
email : [EMAIL PROTECTED]


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Newbie question

2002-04-12 Thread Javier

On 12/04/2002 at 17:51 yilmaz wrote:

>Hi Javier,
>don't be so undeterminant,
>There are a lot of Gurus here which can help you.
>But you shouldn't be like the guy a few days ago.
>then you will be alone.


Hi

Thanks, I'm still fighting !  :)

>For your problem, i guess you didn't restart your tomcat after
>moving your helloworld class to Root/web-inf/classes directory.
>Am i right ?
>Cheers :)


No, the problem was a getBundle("LocalStrings",request.getLocale()) function. I didn't 
copied this file to the new location.

Thanks again








--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




JNDI context not bound when used with external application

2002-04-12 Thread Frank Marx

Hi,

I defined a JDBC Datasource in JNDI which can be looked by a servlet
which is running in the container.
When I try to look up the same datasource using a external application I
always get a exception which says:

javax.naming.NameNotFoundException: Name blahblah is not bound in this
Context, even the code and the environment
settings are the same in both the servlet and the external standalone
application.

Is the TOMCAT JNDI service only available to web-applications which are
running in the countainer ?


Thanks in advance,

Frank Marx


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Tomcat 3.3: java.net.SocketException: Socket closed

2002-04-12 Thread Ludovico Basili

Hello,
I hope someone can help me. I have built tomcat ver. 3.3a on a Linux PPC running 
Blackdown jdk118 with Metrowerks JIT.
These are my environment settings:
JAKARTA_HOME=/usr/java/jakarta
JAVA_COMPILER=mwjit-991122
JAVA_HOME=/usr/java/BlackdownJava2/jdk118_v3
and I let tomcat guess its home directory.

When I start tomcat, in this way:

[root@piko]# cd /usr/java/jakarta/tomcat/bin
[root@piko]# ./tomcat.sh start
I can see the examples pages, but I obtain an ignored exception. This is thrown every 
two-three seconds. Here is the stack trace:
PoolTcpEndpoint: Endpoint ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8007] 
ignored exception: java.net.SocketException: Socket closed
java.net.SocketException: Socket closed
at java.net.PlainSocketImpl.close(Compiled Code)
at java.net.Socket.close(Compiled Code)
at java.net.ServerSocket.implAccept(Compiled Code)
at java.net.ServerSocket.accept(Compiled Code)
at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(Compiled Code

)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Compiled Code)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Compile

d Code)
at java.lang.Thread.run(Compiled Code)

Is there a misconfiguration ? A problem with the 1.1.8 jdk ?  I tried to switch from 
native to green threads but there is no difference.

P.S.
I tried to upgrade to tomcat 3.3.1, but the script tomcat.sh fails with the following
reason (maybe a misconfigured classpath in the script)

Exception: java.lang.ClassNotFoundException: org.apache.tomcat.startup.EmbededTomcat
java.lang.ClassNotFoundException: org.apache.tomcat.startup.EmbededTomcat
at org.apache.tomcat.util.compat.SimpleClassLoader.loadClass(Compiled Co
de)
at java.lang.ClassLoader.loadClass(Compiled Code)
at org.apache.tomcat.startup.Main.execute(Compiled Code)
at org.apache.tomcat.startup.Main.main(Compiled Code)

Thanks in advance,
Ludovico Basili



AW: Newbie question

2002-04-12 Thread Ralph Einfeldt

You have at least to copy also 
examples/WEB-INF/classes/LocalStrings_es.properties
to ROOT/WEB-INF/classes

(Not shure if that is enough, havn't tried it)

> -Ursprüngliche Nachricht-
> Von: Javier [mailto:[EMAIL PROTECTED]]
> Gesendet: Freitag, 12. April 2002 11:33
> An: Tomcat Users List
> Betreff: Re: Newbie question

> java.util.MissingResourceException: Can't find bundle for 
> base name LocalStrings, locale es


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




  1   2   >