Re: What can cause a clean Tomcat shutdown?

2002-07-15 Thread Attila Szegedi

- Original Message -
From: "Larry Isaacs" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: 2002. július 15. 22:38
Subject: RE: What can cause a clean Tomcat shutdown?


> I am not aware of any way to have a "spontaneous" clean shutdown in
> Tomcat 3.3.1 (besides sending a "shutdown" message like shutdown.sh
> does).
>
> If feasible, I would recommend compiling a custom version of
> Tomcat 3.3.1, with extra logging added to help detect the cause.
> I would start with ContextManager.shutdown().  Add some logging
> (there doesn't appear to be helpful logging there by default),
> and print a stack trace.  Then see where the logs lead you, adding
> more logging as needed.

Thanks for the suggestion, Larry.

Since every servlet's destroy() is called as well, I've placed a stack trace
dump into one of  servlet's destroy() method (not that I'm
afraid of custom-compiling Tomcat, just this seemed simpler). Now waiting to
see what comes up (since we experience approx. one shutdown weekly, we have
to be patient). I'll analyze the situation when I have the stack trace and
post the findings here.

Cheers,
  Attila.

>
> Cheers,
> Larry
>
> > -Original Message-
> > From: Attila Szegedi [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, July 15, 2002 9:51 AM
> > To: Tomcat Users List
> > Subject: What can cause a clean Tomcat shutdown?
> >
> >
> > Guys, I'm asking this question again in hope someone notices
> > this time:
> >
> > Except for the stop command sent to the Ajp12 connector, is
> > there another
> > event that will cause a Tomcat 3.3.1 to shut down cleanly?
> >
> > We experience sporadic "spontaneous" clean shutdowns of
> > Tomcat 3.3.1 and
> > have no idea what causes them. We know these are normal
> > shutdowns since the
> > servlet log shows the contexts are being unloaded and
> > servlets' destroy()
> > methods are being called - just as if someone has issued a
> > "tomcat.sh stop"
> > (before you ask: nobody does).
> >
> > Any clues appreciated.
> > Cheers,
> >   Attila.
> >
> > --
> > Attila Szegedi
> > home: http://www.szegedi.org
> >
> >
> > --
> > To unsubscribe, e-mail:
> >  [EMAIL PROTECTED]>
> > For
> > additional commands,
> > e-mail: 
> >
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>
>
>


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




RE: Help on Tomcat 4.0.4 configuration

2002-07-15 Thread Telesis Support - Bangalore

Hi Nishant,

   Now, every thing is going well, only problem is session.
  Actually, i have a login page, after getting the userid and passwd it calls a 
servlet for validation. this servlet after validation, sends the response page to a 
new jsp page using sendRedirect().
 here, in jsp page, i couldn't retreive the session variable, it gives null using 
session.getAttribute().
It seems tomcat 4.0.4 supports session. becoz, it is working on the same page, only 
thing is when we send to other page, it is not working.
If any body have an idea regarding session attribute please let me know..
Thanks in advance.

Murugan

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Monday, July 15, 2002 7:22 PM
To: Tomcat Users List
Subject: Re: Help on Tomcat 4.0.4 configuration



Hello Murugan

I ahve installed tomcat 4.0.4 and it is running fine here:
All you need to set is JAVA_HOME and CATALINA_HOME.
You need not worry about any of the other files like setenv.bat or
startup.bat or catalina.bat.
Actually if you  want you can edit catalina.bat which contains you
classpath settings.
and add your own class path as:

set CLASSPATH=%CLASSPATH%;%CATALINA_HOME%\bin\bootstrap.jar; (place
your classes here);
Tomcat automatically sets the classpath depending on your autoexec.bat file
set classpath
when it is run for the first time. It also includes all the jar files from
%TOMCAT_HOME%\common\lib.

So you neednot worry about the classpath. Either edit autoexec.bat or edit
catalina.bat.
No need to do anything with web.xml
tell me in case of any probs.
--

Nishant Awasthi
Corporate Systems Database Intern
Progressive Insurance
Phone: 440-603-4055 (Work)
Cell: 330-328-0243 (Cell)



   
 
"Telesis   
 
Support - To: "Tomcat Users List"  
 
Bangalore"<[EMAIL PROTECTED]> 
 
Subject: Help  on Tomcat 4.0.4 
configuration  
   
 
07/15/2002 
 
08:03 AM   
 
Please respond 
 
to "Tomcat 
 
Users List"
 
   
 
   
 





Hi all,

  Can anyone tell me the steps for tomcat 4.0.4 configuration.
  I have set the JAVA_HOME and CATALINA_HOME and start the tomcat.
  but, for tomcat 3.3.1, i had set classpath in tomcat.bat file..
  I have the doubt about classpath for tomcat 4.0.4. Can u please come with
the steps for tomcat 4.0.4 configuration, including web.xml..
 there is also one more web.xml in conf folder, it seems, it is for global
things.. little bit confusion.
Till now, i couldn't get any jsp page, even in the examples jsp page not
working.
If anyone succeed in the tomcat 4.0.4 configuration, please let me know..

bye,
Murugan


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





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


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




AW: Tomcat4 + Apache2, and I need the tomcat connectors

2002-07-15 Thread Ralph Einfeldt

But this method has the same drawback as the current implementation
of mod_webapp: It serves all content under a webapp through tomcat. 
If you want that apache serves the static content you have to place 
the static content outside the webapp.

> -Ursprüngliche Nachricht-
> Von: Rick Mills [mailto:[EMAIL PROTECTED]]
> Gesendet: Montag, 15. Juli 2002 21:35
> An: Tomcat Users List
> Betreff: Re: Tomcat4 + Apache2, and I need the tomcat connectors
> 
> I found that the easiest way to connect Apache to Tomcat was to use
> mod_proxy: 
> http://jakarta.apache.org/tomcat/tomcat-4.0-doc/proxy-howto.html
> 

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




Re: Importing SSL certificates

2002-07-15 Thread Nikolas A. Rathert

Have a look at this: www.galatea.com/flashguides

Nick

[EMAIL PROTECTED] wrote:
>   Hi
> I have
> /usr/share/ssl/certs/www.domain.com.csr
> /usr/share/ssl/certs/www.domain.com.crt
> /usr/share/ssl/private/www.domain.com.key
> generated by Apache and a thawte certificate ,how can import
> them to use it with tomcat (web_app)?
> I read http://jakarta.apache.org/tomcat/tomcat-4.0-doc/ssl-howto.html
> but I doesn't explain how to import certificates.
> 
> Anybody can explain me or point me to some documentation?
> 
> Thanks in advance
> 


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




RE: Help on Tomcat 4.0.4 configuration

2002-07-15 Thread Telesis Support - Bangalore

Hi Nishant,

   Its go thro after setting the CLASSPATH at catalina.bat.
but, it seems, some error in session, when applying my application..
i will check it and tell you..
bye,
Murugan



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Monday, July 15, 2002 7:22 PM
To: Tomcat Users List
Subject: Re: Help on Tomcat 4.0.4 configuration



Hello Murugan

I ahve installed tomcat 4.0.4 and it is running fine here:
All you need to set is JAVA_HOME and CATALINA_HOME.
You need not worry about any of the other files like setenv.bat or
startup.bat or catalina.bat.
Actually if you  want you can edit catalina.bat which contains you
classpath settings.
and add your own class path as:

set CLASSPATH=%CLASSPATH%;%CATALINA_HOME%\bin\bootstrap.jar; (place
your classes here);
Tomcat automatically sets the classpath depending on your autoexec.bat file
set classpath
when it is run for the first time. It also includes all the jar files from
%TOMCAT_HOME%\common\lib.

So you neednot worry about the classpath. Either edit autoexec.bat or edit
catalina.bat.
No need to do anything with web.xml
tell me in case of any probs.
--

Nishant Awasthi
Corporate Systems Database Intern
Progressive Insurance
Phone: 440-603-4055 (Work)
Cell: 330-328-0243 (Cell)



   
 
"Telesis   
 
Support - To: "Tomcat Users List"  
 
Bangalore"<[EMAIL PROTECTED]> 
 
Subject: Help  on Tomcat 4.0.4 
configuration  
   
 
07/15/2002 
 
08:03 AM   
 
Please respond 
 
to "Tomcat 
 
Users List"
 
   
 
   
 





Hi all,

  Can anyone tell me the steps for tomcat 4.0.4 configuration.
  I have set the JAVA_HOME and CATALINA_HOME and start the tomcat.
  but, for tomcat 3.3.1, i had set classpath in tomcat.bat file..
  I have the doubt about classpath for tomcat 4.0.4. Can u please come with
the steps for tomcat 4.0.4 configuration, including web.xml..
 there is also one more web.xml in conf folder, it seems, it is for global
things.. little bit confusion.
Till now, i couldn't get any jsp page, even in the examples jsp page not
working.
If anyone succeed in the tomcat 4.0.4 configuration, please let me know..

bye,
Murugan


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





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


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




RE: Help on Tomcat 4.0.4 configuration

2002-07-15 Thread Telesis Support - Bangalore

Hi Nishant,

   Thanks for ur response..
  I have reinstalled tomcat 4.0.4 and set JAVA_HOME=D:\jdk1.3 and 
CATALINA_HOME=E:\jakarta-tomcat-4.0.4.
  I have got the index page,then when clicked the jspexamples links. It gives the 
following error
but, for servlets examples it is working, except the session example.
If you have any idea, please let me know..
bye,
Murugan
Apache Tomcat/4.0.4 - HTTP Status 500 - Internal Server Error



type Exception report

message Internal Server Error

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

exception 

javax.servlet.ServletException: Servlet.init() for servlet jsp threw exception
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:946)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:655)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:475)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
at java.lang.Thread.run(Thread.java:484)


root cause 

java.lang.NoSuchMethodError
at 
org.apache.jasper.compiler.TldLocationsCache.processJars(TldLocationsCache.java:202)
at org.apache.jasper.compiler.TldLocationsCache.(TldLocationsCache.java:139)
at org.apache.jasper.EmbededServletOptions.(EmbededServletOptions.java:350)
at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:265)
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:918)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:655)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:475)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
  

Re: Failed JDBC connection hangs Tomcat

2002-07-15 Thread Jacob Kjome

BTW, in the code below, I forgot to create the connection at the beginning 
of the try statment.  Just wanted to note that you will need to do that.

conn = openConn();  //openConn() grabs the connection from a pool or 
creates a brand new connection

Just insert that and whatever you need to do to open your connection at the 
beginning of the try statement below.

jake


At 12:00 AM 7/16/2002 -0500, you wrote:
>HI Paul,
>
>You simply need to make sure that you've let go of your resources such as 
>connections, resultsets, etc
>
>Here is some sample code for that...
>
>Connection conn = null;
>PreparedStatement pstmt = null;
>ResultSet rs = null;
>
>String query = "SELECT * FROM mytable";
>
>try {
> pstmt = conn.prepareStatement(query);
> rs = pstmt.executeQuery();
>
> //do something with the ResultSet...
>
> rs.close();
> pstmt.close();
> conn.close();
>}
>catch(SQLException e) {
> System.out.println(e.getMessage());
> throw e;
>}
>finally {
> if (rs != null)try { rs.close(); }catch(Exception e2) {}
> if (pstmt != null) try { pstmt.close(); } catch(Exception e3) {}
> if (conn != null)  try { conn.close(); } catch(Exception e4) {}
>}
>
>
>The key here is that if a SQLException is raised in the try statement, 
>then the ResultSet, PreparedStatement, and Connection will not be 
>successfully closed.  In order to guarantee that they get closed, you need 
>to have the finally statement which is guaranteed to run no matter 
>what.   Try that and I bet your connections won't get locked up until timeout.
>
>Jake
>
>
>At 02:27 PM 7/15/2002 -0700, you wrote:
>>Sorry it's been a week since you sent this message...  Too much traffic 
>>here for me to keep up.  This problem is the only reason I'm subscribed 
>>to this list at all.  I normally only follow -dev (and if I could point 
>>to a specific problem in Tomcat I'd ask there instead).
>>
>>I have this problem with all JDBC accesses from Tomcat.  At first I was 
>>using a MySQL database call on every page, and found that if I accessed a 
>>second MySQL server which became unavailable, every call to the first one 
>>would be held up until it timed out, even in other contexts.  Then I 
>>discovered that we had the same problem when accessing a MS-SQL server.
>>If the MS-SQL server was unavailable, every other page on the site (each 
>>of them containing the call to MySQL) would wait until the MS-SQL 
>>connection timed out.  Finally, we incorporated an Oracle connection with 
>>the same results.  Any JDBC call to a database which is unavailable holds 
>>up all other connections on the servlet engine.
>>
>>This is an embarrassing threading issue.
>>
>>Although we asked for help on this list (and received some 
>>well-thought-out responses from Bill Barker) we were unable to resolve 
>>the problem.
>>Our current hack for this is:
>>
>>1) DriverManager.setLoginTimeout(CONNECTION_TIMEOUT);
>>(The default timeout is extraordinarily long and for us a few seconds 
>>will do for any one of the databases)
>>
>>2) A connection wrapper, so that instead of calling 
>>DriverManager.getConnection(connectionURL,ID,Pass) we call
>>DBConnWrapper.getConnection(connectionURL,ID,Pass) and the wrapper 
>>remembers when a connection has failed and on each request for a 
>>connection does
>>if(!databases.containsKey(DB) || (new Date()).getTime() - 
>>((Date)(databases.get(DB))).getTime() > RETRY_INTERVAL)
>>
>>If you come up with a better answer, let me know.  Of course, it's 
>>possible that you have a different problem than we do, but it sounds similar.
>>
>>Paul
>>Unix System Admin/Webmaster
>>Seattle Public Schools
>>
>>For Reference:
>>
>>On Monday, July 8, 2002, at 11:05 AM, Bill D wrote:
>>>Let me first set up my situation.  On my server, I
>>>have two webapps running, webapp A and webapp B.
>>>Webapp A uses JDBC Thin driver to contact an Oracle
>>>database at remote location 1.  Webapp B uses JDBC
>>>Thin driver to contact an Oracle database at remote
>>>location 2.
>>>
>>>If the internet connection at remote location 1 goes
>>>down, the attempt to connect to that database has the
>>>expected result of a connection to that IP in the
>>>SYN_SENT state in the netstat output on the server.
>>>
>>>While this connection is in the SYN_SENT state, any
>>>requests to webapp B that need to call the other
>>>database at location 2 which is still up and running
>>>are put on hold.  Visitors to that site are left
>>>staring at a blank screen until the first connection
>>>from webapp A to location 1 times out.
>>>
>>>Seeing as how these are 2 seperate webapps connecting
>>>to 2 seperate remote locations, I did not expect the
>>>behavior to occur in a fashion where one will block
>>>the other.  The behavior I expected was that they
>>>would operate independantly of each other, and webapp
>>>B would continue to work at a normal pace no matter
>>>what is occurring with webapp A.  Am I looking at this
>>>wrong?  Any help would be greatly appr

Re: Newbie: Internal Error: File /WEB-INF/web.xml not found

2002-07-15 Thread Jacob Kjome

Hi Richard,

Tomcat provides a default web.xml in TOMCAT_HOME/conf which provides some 
default stuff like mime-types, directory index filenames and other 
stuff.  However, every webapp *must* have its own web.xml.  creating a 
WEB-INF/web.xml under TOMCAT_HOME will do nothing.  Tomcat will not see 
it.  It is of no use.  Take a look at the way a context such as the 
"examples" context that comes with Tomcat is set up.

The structure looks like:

mywebapp/
 WEB-INF/
 lib/
 classes/
 web.xml

Your static content such as .html and .jpg files go directly under 
"mywebapp".  You servlets, helper libraries, and web.xml configuration go 
under the WEB-INF directory.

You should get a book that discusses this stuff because this is not 
specific to Tomcat, it is the standard for all servlet containers that 
implement the Servlet specification.  I recommend Java Servlet Programming 
by Jason Hunter, O'Reilly.

Jake



At 03:04 AM 7/16/2002 +, you wrote:
>Hi
>
>I am getting the following problem with my tomcat configuration.
>
>2002-07-16 12:47:35 ContextConfig[/~richard]: Missing application web.xml, 
>using defaults only
>2002-07-16 12:47:35 Internal Error: File /WEB-INF/web.xml not found
>
>I realise that I could place a web.xml file in the context for /~richard, 
>but I want to try and make the default web.xml work.
>
>I am wondering if anyone else knows of this problem, I have tried creating 
>CATALINA_HOME/WEB-INF/web.xml (thinking that the file may be missing) but 
>it still reports an error. Does anyone knmow where the default web.xml 
>file should be located?, or why I am having this problem?
>
>Any Help appreciated.
>
>Thanks in advance
>
>
>_
>Chat with friends online, try MSN Messenger: http://messenger.msn.com
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 



Re: Installing Tomcat 4.0.4 on Red Hat 7.3 with RPM packages

2002-07-15 Thread @Basebeans.com

Subject: Re: Installing Tomcat 4.0.4 on Red Hat 7.3 with RPM packages
From: "Matt Raible" <[EMAIL PROTECTED]>
 ===
Eddie,

I got the webapps RPM and sure nough - all the examples work now.  However,
I dropped struts-example.war into the webapps directory, and it doesn't get
expanded.  The server.xml looks fine like it should expand wars by default.

Any ideas?

Thanks,

Matt

"Eddie Bush" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> LOL - I use it fine - no problems.  Of course, I'm using the LE version
> - I don't think it would make a difference though.  I'm sorry I didn't
> see either of your postings before now.
>
> To get the webapps you need the webapps RPM :-P  It's right there in the
> same directory as the other RPMs.  Go look again ;-)  If you don't find
> it, post back here and I'll email it to you.  How is that?
>
> Regards,
>
> Eddie
>
> Jakarta Tomcat Newsgroup (@Basebeans.com) wrote:
>
> >Jakarta Tomcat Newsgroup (@Basebeans.com) wrote:
> >
> >>Subject: Installing Tomcat 4.0.4 on Red Hat 7.3 with RPM packages
> >>From: "Matt Raible" <[EMAIL PROTECTED]>
> >> ===
> >>I downloaded tomcat4-4.0.4-full.2jpp.noarch.rpm from
> >>http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.4/rpms/
> >>
> >>And I've installed it and can successfully start it.  However, when I
got to
> >>view a page (basically, the ROOT context), I get the following error:
> >>
> >>Apache Tomcat/4.0.4 - HTTP Status 500 - No Context configured to process
> >>this request
> >>
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>



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




Re: Failed JDBC connection hangs Tomcat

2002-07-15 Thread Jacob Kjome

HI Paul,

You simply need to make sure that you've let go of your resources such as 
connections, resultsets, etc

Here is some sample code for that...

Connection conn = null;
PreparedStatement pstmt = null;
ResultSet rs = null;

String query = "SELECT * FROM mytable";

try {
 pstmt = conn.prepareStatement(query);
 rs = pstmt.executeQuery();

 //do something with the ResultSet...

 rs.close();
 pstmt.close();
 conn.close();
}
catch(SQLException e) {
 System.out.println(e.getMessage());
 throw e;
}
finally {
 if (rs != null)try { rs.close(); }catch(Exception e2) {}
 if (pstmt != null) try { pstmt.close(); } catch(Exception e3) {}
 if (conn != null)  try { conn.close(); } catch(Exception e4) {}
}


The key here is that if a SQLException is raised in the try statement, then 
the ResultSet, PreparedStatement, and Connection will not be successfully 
closed.  In order to guarantee that they get closed, you need to have the 
finally statement which is guaranteed to run no matter what.   Try that and 
I bet your connections won't get locked up until timeout.

Jake


At 02:27 PM 7/15/2002 -0700, you wrote:
>Sorry it's been a week since you sent this message...  Too much traffic 
>here for me to keep up.  This problem is the only reason I'm subscribed to 
>this list at all.  I normally only follow -dev (and if I could point to a 
>specific problem in Tomcat I'd ask there instead).
>
>I have this problem with all JDBC accesses from Tomcat.  At first I was 
>using a MySQL database call on every page, and found that if I accessed a 
>second MySQL server which became unavailable, every call to the first one 
>would be held up until it timed out, even in other contexts.  Then I 
>discovered that we had the same problem when accessing a MS-SQL server.
>If the MS-SQL server was unavailable, every other page on the site (each 
>of them containing the call to MySQL) would wait until the MS-SQL 
>connection timed out.  Finally, we incorporated an Oracle connection with 
>the same results.  Any JDBC call to a database which is unavailable holds 
>up all other connections on the servlet engine.
>
>This is an embarrassing threading issue.
>
>Although we asked for help on this list (and received some 
>well-thought-out responses from Bill Barker) we were unable to resolve the 
>problem.
>Our current hack for this is:
>
>1) DriverManager.setLoginTimeout(CONNECTION_TIMEOUT);
>(The default timeout is extraordinarily long and for us a few seconds will 
>do for any one of the databases)
>
>2) A connection wrapper, so that instead of calling 
>DriverManager.getConnection(connectionURL,ID,Pass) we call
>DBConnWrapper.getConnection(connectionURL,ID,Pass) and the wrapper 
>remembers when a connection has failed and on each request for a 
>connection does
>if(!databases.containsKey(DB) || (new Date()).getTime() - 
>((Date)(databases.get(DB))).getTime() > RETRY_INTERVAL)
>
>If you come up with a better answer, let me know.  Of course, it's 
>possible that you have a different problem than we do, but it sounds similar.
>
>Paul
>Unix System Admin/Webmaster
>Seattle Public Schools
>
>For Reference:
>
>On Monday, July 8, 2002, at 11:05 AM, Bill D wrote:
>>Let me first set up my situation.  On my server, I
>>have two webapps running, webapp A and webapp B.
>>Webapp A uses JDBC Thin driver to contact an Oracle
>>database at remote location 1.  Webapp B uses JDBC
>>Thin driver to contact an Oracle database at remote
>>location 2.
>>
>>If the internet connection at remote location 1 goes
>>down, the attempt to connect to that database has the
>>expected result of a connection to that IP in the
>>SYN_SENT state in the netstat output on the server.
>>
>>While this connection is in the SYN_SENT state, any
>>requests to webapp B that need to call the other
>>database at location 2 which is still up and running
>>are put on hold.  Visitors to that site are left
>>staring at a blank screen until the first connection
>>from webapp A to location 1 times out.
>>
>>Seeing as how these are 2 seperate webapps connecting
>>to 2 seperate remote locations, I did not expect the
>>behavior to occur in a fashion where one will block
>>the other.  The behavior I expected was that they
>>would operate independantly of each other, and webapp
>>B would continue to work at a normal pace no matter
>>what is occurring with webapp A.  Am I looking at this
>>wrong?  Any help would be greatly appreciated.
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 



How to add Virtual host from the application?

2002-07-15 Thread Sergey Lukichev

Hello,

Im new in Tomcat and I have the following question.
I have project, running on Tomcat4. I need to be able to add virtual hosts on 
the fly from servlets. I have list of domains in the database and I would 
like to load set of virtual hosts for these domains when Tomcat starts. And 
it should be possible to reload this list from database when tomcat is 
already running. 
Is this possible? If yes, what Tomcat API do I have to use? 

Sincerely,
Sergey Lukichev

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




Read-Only Naming Cobtext

2002-07-15 Thread John Moore


Is there a way to remove a Resource from a context once it's been added
OTHER than stopping reloading the application. In 4.0.4 I think I actually
have to reload TC not just the app.   I want to be able to bind new
resources and unbind old resources and want to do it without bringing down
the server/application.Specifically, I have 41 DataSources and am
frequently adding and  removing references.   i tried ctx.unbind(
"java:comp/env/jdbc/" ) but that threw "javax.naming.NamingException:
Context is read only".

Thanks,
john moore





chinese characters problem (urgent)

2002-07-15 Thread unplug

Hi all,

  I am getting trouble when using JSP to display Chinese in IE.  I
wonder some Chinese characters are displayed fine but some are displayed
as ??? in the same page.  It seems there are missing Chinese characters
such that it can't display.  Anyone can help to solve the problem?

System configuration.
Redhat 7.3
apache 1.3
tomcat 3.3
jdk 1.3

unplug

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




Newbie: Internal Error: File /WEB-INF/web.xml not found

2002-07-15 Thread Richard Smith

Hi

I am getting the following problem with my tomcat configuration.

2002-07-16 12:47:35 ContextConfig[/~richard]: Missing application web.xml, 
using defaults only
2002-07-16 12:47:35 Internal Error: File /WEB-INF/web.xml not found

I realise that I could place a web.xml file in the context for /~richard, 
but I want to try and make the default web.xml work.

I am wondering if anyone else knows of this problem, I have tried creating 
CATALINA_HOME/WEB-INF/web.xml (thinking that the file may be missing) but it 
still reports an error. Does anyone knmow where the default web.xml file 
should be located?, or why I am having this problem?

Any Help appreciated.

Thanks in advance


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


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




Re: What can cause a clean Tomcat shutdown?

2002-07-15 Thread Joel Rees

> 
> Well hope you don't have some kind of cron job that periodically shuts
> Tomcat down.
> 
> RS

You mean, like a root kit?


-- 
Joel Rees <[EMAIL PROTECTED]>


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




Re: Proxy server options for SSL from Apache to Tomcat

2002-07-15 Thread Eddie Bush

I know absoluely nothing about your proxy stuff, but I hear mod_jk 
should work just fine with TC located on a seperate machine from apache. 
 You may be interested in ubeans.com/tomcat.  While he sets both of his 
up locally, he indicates what would have to be done to put (one) TC on 
another machine.  The same principal would apply, I think.

HTH,

Eddie

Brett G. Palmer wrote:

>We have been using an Apache/Tomcat on the "same machine configuration" in
>production for several months now.  We are starting to roll out more J2EE
>components that work best with the servlet container and the J2EE container
>on the same machine.  This means we would like to leave Apache at the front
>of our configuration and move Tomcat/JBoss to an application server inside
>the firewall.  We are currently having problems getting the proxy server on
>Apache to work with SSL and Tomcat.  Does anyone have suggestions for
>setting up this kind of configuration?  Can you still use a mod_jk
>configuration for communication across servers or does mod_jk only work when
>the servers are running on the same machine?
>
>Thanks for your help,
>
>Brett
>
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>



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




Proxy server options for SSL from Apache to Tomcat

2002-07-15 Thread Brett G. Palmer

We have been using an Apache/Tomcat on the "same machine configuration" in
production for several months now.  We are starting to roll out more J2EE
components that work best with the servlet container and the J2EE container
on the same machine.  This means we would like to leave Apache at the front
of our configuration and move Tomcat/JBoss to an application server inside
the firewall.  We are currently having problems getting the proxy server on
Apache to work with SSL and Tomcat.  Does anyone have suggestions for
setting up this kind of configuration?  Can you still use a mod_jk
configuration for communication across servers or does mod_jk only work when
the servers are running on the same machine?

Thanks for your help,

Brett



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




Re: FW: Directory Index

2002-07-15 Thread Eddie Bush

It's called a "welcome file" in the JSP/Servlet world.  Find a reference 
for the "application deployment descriptor" (web.xml) and look for 
 and .  I'd start on www.google.com.

Regards,

Eddie

Jaque Sara wrote:

>
>-Original Message-
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
>Sent: Saturday, July 13, 2002 4:07 AM
>To: [EMAIL PROTECTED]
>Subject: Directory Index
>
>
>I know that in Tomcat I can map servlets to the path "/" and that in Apache
>I can set certain files to be "directory indexes"; however, I do not know
>how to map a JSP to the path "/". Can anyone help? How do I map JSPs to the
>path "/" or set them as "directory indexes"?
>
>Thanks,
>
>Jack
>
>--
>To unsubscribe, e-mail:
>
>For additional commands, e-mail:
>
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>



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




Re: Coyote, JK and JK2

2002-07-15 Thread Eddie Bush

My (probably poor) understanding is that Coyote is the "newest and best" 
Http connector.  It's my understanding this would be your best choice 
for a stand-alone Tomcat installation, if you're running Tomcat 4.1.x. 
 So far as the *_jk connectors go, I further have the impression that 
mod_jk is the more solid, robust choice - mod_jk2 has come about to 
address Apache2, and is (I believe) a new code-base.  Probably you want 
to be using mod_jk.  I use mod_jk successfully with Apache 1.3.23.

You can find mod_jk.so (or mod_jk.dll) in the Tomcat 3.3 distribution 
tree.  AFAIK these DSOs will fully and correctly support whatever you 
want to do.  That's where I got mine from, and it works fine from what I 
can tell.  You could always build them from source.  If you choose to do 
that, search the distribution heirarchy thoroughly.  They are a bit 
"scattered", to put it quite plainly.  You will find them though ;-)

Regards,

Eddie

Sankaranarayanan (Ganesh) Ganapathy wrote:

>Hi All,
>
>How does JK2 differ JK. If I want to set up tomcat4.0.3 against apache1.3.26 which 
>one should I be using?
>
>How are coyote connectors different from the JK connectors ? Can somebody explain?
>
>Also I see that none of the release version of JK connectors are available at 
>http://jakarta.apache.org/builds/jakarta-tomcat-connectors/. Is there someplace else 
>I should look for ? or is the only option is to build them from source?
>
>For tomcat4.0.3 atleast the win32 and solaris8 JK binaries were available. I dont 
>find them for tomcat4.0.4 , am I missing something here?
>
>Any help will be greatly appreciated!
>
>Thanx in advance,
>Ganesh
>
>
>
>
>
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 



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




Re: Installing Tomcat 4.0.4 on Red Hat 7.3 with RPM packages

2002-07-15 Thread Joseph L. Savard

Here is a link you should be looking for...

A person from another group has been working with IIS and TOmcat and his suggestion is 
this link!

http://www.vacodi.com/howto/tomcat/iisnt/index.html



On 15 Jul 2002 at 8:10, @Basebeans.com wrote:

> Subject: Installing Tomcat 4.0.4 on Red Hat 7.3 with RPM packages
> From: "Matt Raible" <[EMAIL PROTECTED]>
>  ===
> I downloaded tomcat4-4.0.4-full.2jpp.noarch.rpm from
> http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.4/rpms/
> 
> And I've installed it and can successfully start it.  However, when I got to
> view a page (basically, the ROOT context), I get the following error:
> 
> Apache Tomcat/4.0.4 - HTTP Status 500 - No Context configured to process
> this request
> 
> 
> 
> 
> type Status report
> 
> message No Context configured to process this request
> 
> description The server encountered an internal error (No Context configured
> to process this request) that prevented it from fulfilling this request.
> 
> 
> 
> 
> 
> So I did some checking and no webapps exist in $CATALINA_HOME/webapps.  Is
> this "as designed" - is there a different RPM I should be downloading that
> contains all the default webapps - or at least ROOT?
> 
> Thanks,
> 
> Matt
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 
> 



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




mod_jk option explainations - if you'd be so kind

2002-07-15 Thread Eddie Bush

Hi, could someone tell me the function of the following, please?

JkExtractSSL On
JkHTTPSIndicator HTTPS
JkSESSIONIndicator SSL_SESSION_ID
JkCIPHERIndicator SSL_CIPHER
JkCERTSIndicator SSL_CLIENT_CERT

Is this the "magic" one needs to cause mod_jk to redirect http to https?

Is there, anywhere, a _definitive_ list of all of the options you may 
use for mod_jk, and their associated meaning?  Please, I'd really like 
to know.

Thanks,

Eddie



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




FW: Directory Index

2002-07-15 Thread Jaque Sara



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Saturday, July 13, 2002 4:07 AM
To: [EMAIL PROTECTED]
Subject: Directory Index


I know that in Tomcat I can map servlets to the path "/" and that in Apache
I can set certain files to be "directory indexes"; however, I do not know
how to map a JSP to the path "/". Can anyone help? How do I map JSPs to the
path "/" or set them as "directory indexes"?

Thanks,

Jack

--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




Coyote, JK and JK2

2002-07-15 Thread Sankaranarayanan (Ganesh) Ganapathy

Hi All,

How does JK2 differ JK. If I want to set up tomcat4.0.3 against apache1.3.26 which one 
should I be using?

How are coyote connectors different from the JK connectors ? Can somebody explain?

Also I see that none of the release version of JK connectors are available at 
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/. Is there someplace else I 
should look for ? or is the only option is to build them from source?

For tomcat4.0.3 atleast the win32 and solaris8 JK binaries were available. I dont find 
them for tomcat4.0.4 , am I missing something here?

Any help will be greatly appreciated!

Thanx in advance,
Ganesh







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




file resources outside the context docbase

2002-07-15 Thread Chad Manning

Hello all,
   I have a simple question I could not find an answer to in the docs or message 
archives...

I want to keep my static content tree out of my .war file, but I need to refer to it's 
contents to generate my pages.  Since I am using apache/mod_jk, I figured I would 
simply set up an alias on the apache side to reference this static directory.  On the 
java side, I'd like to set up a resource in my server.xml file that refers to a 
directory on the filesystem outside of my docbase.  I cannot find the syntax to make 
this happen nor any examples showing this.  I imagine that this is a fairly common and 
easy task and am surprised not find examples of this in the documention.  Maybe I'm 
barking up the wrong tree.

Any help would be appreciated.  Thanks!

Chad



RE: tomcat 4.0 and IIS - troubleshoot configuration

2002-07-15 Thread Sexton, George

Are you running Tomcat as a service? If so, can you connect directly to it
through the http connector running on port 8080?

-Original Message-
From: Diana McLean [mailto:[EMAIL PROTECTED]]
Sent: 15 July, 2002 3:06 PM
To: [EMAIL PROTECTED]
Subject: tomcat 4.0 and IIS - troubleshoot configuration


Does anyone have any suggestions as to what to look for to determine why the
tomcat 4.0 installation is not working with IIS 5.0? They work fine
separately.

Thanks,

Diana

--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




Re: error message: 'user tomcat4 does not exist'

2002-07-15 Thread Scott and Michele

thanks to both of your replies, I undid my original modification and did the
following:

Edited the conf file using: vi etc/tomcat4/conf/tomcat4.conf

Change the user section of this file from:
TOMCAT_USER="tomcat4"
to
TOMCAT_USER="myUser"

Then I entered (from root):
chown -R myUser /var/tomcat4/

to give ownership of the tomcat4 files/directories to myUser

Now when I am logged in as myUser, I can start/stop tomcat.

Thanks again for your help and for rescuing me from my newbie-ness.

S




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




Document.importNode not working-works fine in modified JSDK2.1

2002-07-15 Thread Chua Eng Huang, Cecil

Hi,
 
APOLOGIES
 
Apologies if this appears in MIME (I hope not), I am using the web version of MS 
Outlook, have no access to the full client, and thus have no control over the options.
 
SUMMARY
 
I've got a bit of a problem with Jakarta Tomcat 3.2.1/3.3.1
I am running a small XML application that takes the getDocumentElement() of a document 
class and appends it onto another class.  To do this, I use the importNode() function. 
 When I test it on my home server, which is a modified version of the JSDK2.1 server 
(modified in the sense that I have randomly added .jar files as needed), the 
application works.  When I test it on Tomcat 3.2.1/3.3.1, it doesn't.
 
DETAIL
 
The code in question is as follows:
Document temp=null;
if (result==null)
  temp=builder.parse(new InputSource(new StringReader("No 
records")));
else
  temp=builder.parse(new InputSource(new StringReader(result)));
Node temp3=temp.getDocumentElement();
Node temp4=temp2.importNode(temp3,true);
root2.appendChild(temp4);
return temp2;
 
The code is sloppy, because I've been trying to debug it, so I tried various 
permutations of the same code.  This was the last state of the code.
 
The code bombs on "Node temp4=temp2.importNode(temp3,true);"
it reports the error message:

java.lang.NoSuchMethodError
 at sf_maincontrol.setupXMLSearchEngine(sf_maincontrol.java:109)
 at sf_maincontrol.run(sf_maincontrol.java:57)
 at sf.searchme(sf.java:68)
 at sf.doPost(sf.java:16) ...
 
This is odd, because as can be seen on the earlier lines, it is running various other 
methods of the document class just fine.
 
Originally, I thought it was because I was using an old version of Tomcat (3.2.1), so 
I switched to Tomcat 4.0.  Tomcat 4.0 was so completely different (and I couldn't get 
it to install), so I switched to 3.3.1, which worked.
 
All of my own special jars are in the web-inf/lib directory, etc. etc.
 
I just can't understand why it isn't running importNode, but is running all the other 
methods of the Document class.
 
Thank you
 
Cecil Chua
 



Re: Failed JDBC connection hangs Tomcat

2002-07-15 Thread PSA

Sorry it's been a week since you sent this message...  Too much traffic 
here for me to keep up.  This problem is the only reason I'm subscribed 
to this list at all.  I normally only follow -dev (and if I could point 
to a specific problem in Tomcat I'd ask there instead).

I have this problem with all JDBC accesses from Tomcat.  At first I was 
using a MySQL database call on every page, and found that if I accessed 
a second MySQL server which became unavailable, every call to the first 
one would be held up until it timed out, even in other contexts.  Then I 
discovered that we had the same problem when accessing a MS-SQL server.  
If the MS-SQL server was unavailable, every other page on the site (each 
of them containing the call to MySQL) would wait until the MS-SQL 
connection timed out.  Finally, we incorporated an Oracle connection 
with the same results.  Any JDBC call to a database which is unavailable 
holds up all other connections on the servlet engine.

This is an embarrassing threading issue.

Although we asked for help on this list (and received some 
well-thought-out responses from Bill Barker) we were unable to resolve 
the problem.
Our current hack for this is:

1) DriverManager.setLoginTimeout(CONNECTION_TIMEOUT);
(The default timeout is extraordinarily long and for us a few seconds 
will do for any one of the databases)

2) A connection wrapper, so that instead of calling 
DriverManager.getConnection(connectionURL,ID,Pass) we call
DBConnWrapper.getConnection(connectionURL,ID,Pass) and the wrapper 
remembers when a connection has failed and on each request for a 
connection does
if(!databases.containsKey(DB) || (new Date()).getTime() - 
((Date)(databases.get(DB))).getTime() > RETRY_INTERVAL)

If you come up with a better answer, let me know.  Of course, it's 
possible that you have a different problem than we do, but it sounds 
similar.

Paul
Unix System Admin/Webmaster
Seattle Public Schools

For Reference:

On Monday, July 8, 2002, at 11:05 AM, Bill D wrote:
> Let me first set up my situation.  On my server, I
> have two webapps running, webapp A and webapp B.
> Webapp A uses JDBC Thin driver to contact an Oracle
> database at remote location 1.  Webapp B uses JDBC
> Thin driver to contact an Oracle database at remote
> location 2.
>
> If the internet connection at remote location 1 goes
> down, the attempt to connect to that database has the
> expected result of a connection to that IP in the
> SYN_SENT state in the netstat output on the server.
>
> While this connection is in the SYN_SENT state, any
> requests to webapp B that need to call the other
> database at location 2 which is still up and running
> are put on hold.  Visitors to that site are left
> staring at a blank screen until the first connection
> from webapp A to location 1 times out.
>
> Seeing as how these are 2 seperate webapps connecting
> to 2 seperate remote locations, I did not expect the
> behavior to occur in a fashion where one will block
> the other.  The behavior I expected was that they
> would operate independantly of each other, and webapp
> B would continue to work at a normal pace no matter
> what is occurring with webapp A.  Am I looking at this
> wrong?  Any help would be greatly appreciated.


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




tomcat 4.0.2 & iPlanet Web Server 4.1 sp9

2002-07-15 Thread Thierry Boucheny

Hello,

I t seems like I am not the only one with this problem but I did not 
find any solution. I try to get iPlanet WebServer 4.1 and Tomcat 4.0.2 
connected throught nsapi_redirector.so. Those applications runs on Red 
Hat Linux 7.2 on the same machine.

I have compiled a new nsapi_redirector.so using th 
jakarta-tomcat-connector sources and I have made all the configurations 
in obj.conf, workers.properties ( which actualy used to run on apache 
before). I have started iPlanet and it says that everything is ok. Even 
in the nsapi.log, everything seems ok.

When I try the URL http://localhost/examples, iPlanet Web Server says 
that the requested object does not exists on this server.
There is no message in the catalina.out log file.

My conclusion is that iPlanet does not redirect the URL to Tomcat.

Does somebody has ever tried this configuration ?? or does somebody 
could tell me if this configuration is possible ??

Thanks for any idea or information.

Thierry Boucheny


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




tomcat 4.0 and IIS - troubleshoot configuration

2002-07-15 Thread Diana McLean

Does anyone have any suggestions as to what to look for to determine why the tomcat 
4.0 installation is not working with IIS 5.0? They work fine separately.

Thanks,

Diana

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




Re: mod_jk for Linux (Tomcat 4.0.4/Apache 1.3.26)

2002-07-15 Thread Eddie Bush

That is a good site!  Thanks for posting it! :-)

Schaffernoth, Thomas wrote:

>http://www.galatea.com/flashguides/index
>



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




Re: Cobranding - Share Controller, Split View

2002-07-15 Thread August Detlefsen

This will work, but then I'd have to add a different servlet definition
for each cobrand (and code the views with different references as
well?). There must be a simpler way..?




--- Henner Zeller <[EMAIL PROTECTED]> wrote:
> 
> Hi,
> > I know I can treat the servlets as a separate webapp and deploy
> them to
> > each separate host, but if I do this, will they be able to access
> the
> > different configuration (  and JNDI resources )
> > specified in the each ROOT context's web.xml? 
> 
> What about having the same servlet referenced more than once in the
> same 
> web.xml with different init-params ? Consider you have Servlet 
> com.codemagi.FooServlet, then you could do
> 
>   
> 
>com.gargelmarf.FooServlet
> 
> 
> com.codemagi.FooServlet
> 
> 
>brandType
>1
> 
> {...}
>   
> 
>   
> 
>com.foobaz.FooServlet
> 
> 
> com.codemagi.FooServlet
> 
> 
>brandType
>2
> 
> {...}
>   
> --
> All these servlets can be accessed from the same context, but
> have different names. The servlet com.codemagi.FooServlet reads the
> init-param to determine the brand.
> If you access:
>   /mycontext/servlet/com.gargelmarf.FooServlet
>   /mycontext/servlet/com.foobaz.FooServlet
> all that is called are two different instances of
> com.codemagi.FooServlet,
> sharing the same context but with different init-params.
> 
> Probably this is the easiest way to do it.
> 
> ciao,
>  -hen
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


__
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com

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




RE: mod_jk for Linux (Tomcat 4.0.4/Apache 1.3.26)

2002-07-15 Thread Schaffernoth, Thomas

http://www.galatea.com/flashguides/index

 Tom Schaffernoth - Software Engineer - [EMAIL PROTECTED]
 ePocrates, Inc.  - http://www.epocrates.com - "The handheld network for
physicians."
 120 Industrial Avenue,  San Carlos, CA  94070

 Phone:650-232-4847   Cell:650-704-5274   Reception:650-592-7900
Fax:650-592-6995
 _ . .
'\   ..  |>>
O/  ..   |
   \_\  .  . |
   | |  .   ..  .|
  /  |  .. .  .  |
 /  .|  Greatest Sport known to mankind...GOLF!   ....o  |
 -


-Original Message-
From: Mario Henley Becerril Geldis [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 15, 2002 1:51 PM
To: Tomcat Users List
Subject: Re: mod_jk for Linux (Tomcat 4.0.4/Apache 1.3.26)



> Where do I find mod_jk.so (Linux) along with the configuration files
> (workers.properties, mod_jk.conf etc.) for Tomcat 4.0.4 for use with
Apache
> 1.3.26?

   good address  http://www.galatea.com/flasguides


--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




Re: Installing Tomcat 4.0.4 on Red Hat 7.3 with RPM packages

2002-07-15 Thread Eddie Bush

LOL - I use it fine - no problems.  Of course, I'm using the LE version 
- I don't think it would make a difference though.  I'm sorry I didn't 
see either of your postings before now.

To get the webapps you need the webapps RPM :-P  It's right there in the 
same directory as the other RPMs.  Go look again ;-)  If you don't find 
it, post back here and I'll email it to you.  How is that?

Regards,

Eddie

Jakarta Tomcat Newsgroup (@Basebeans.com) wrote:

>Jakarta Tomcat Newsgroup (@Basebeans.com) wrote:
>
>>Subject: Installing Tomcat 4.0.4 on Red Hat 7.3 with RPM packages
>>From: "Matt Raible" <[EMAIL PROTECTED]>
>> ===
>>I downloaded tomcat4-4.0.4-full.2jpp.noarch.rpm from
>>http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.4/rpms/
>>
>>And I've installed it and can successfully start it.  However, when I got to
>>view a page (basically, the ROOT context), I get the following error:
>>
>>Apache Tomcat/4.0.4 - HTTP Status 500 - No Context configured to process
>>this request
>>



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




Re: mod_jk for Linux (Tomcat 4.0.4/Apache 1.3.26)

2002-07-15 Thread Mario Henley Becerril Geldis


> Where do I find mod_jk.so (Linux) along with the configuration files
> (workers.properties, mod_jk.conf etc.) for Tomcat 4.0.4 for use with Apache
> 1.3.26?

   good address  http://www.galatea.com/flasguides


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




Re: Cobranding - Share Controller, Split View

2002-07-15 Thread August Detlefsen

Is there any support for this in TC 4.0.4? We can't upgrade to 4.1
until it is officially released. 

Is there some way to get a handle on the ServletContext representing
ROOT? Then I can easily load the params I need. 

How about ServletContext.getContext("/") -I tried this in my init()
method, but it only returns null: 

public void init(ServletConfig config)
throws ServletException {

super.init(config);

//get this servlet's context and location
ServletContext application = config.getServletContext();
ServletContext root= application.getContext("/");

//the rest...
}

The api docs for getContext() say: 

   "In a security conscious environment, the servlet container 
may return null for a given URL."

How can I know if I am hitting a security constraint? If that is the
problem, is there a way to bypass the security to allow access to the
ROOT context, but only from this one app? 

-August



--- "Craig R. McClanahan" <[EMAIL PROTECTED]> wrote:
> 
> 
> On Sun, 14 Jul 2002, August Detlefsen wrote:
> 
> > Date: Sun, 14 Jul 2002 23:15:53 -0700 (PDT)
> > From: August Detlefsen <[EMAIL PROTECTED]>
> > Reply-To: Tomcat Users List <[EMAIL PROTECTED]>,
> >  [EMAIL PROTECTED]
> > To: Tomcat Users List <[EMAIL PROTECTED]>
> > Subject: Cobranding - Share Controller, Split View
> >
> > I am currently developing several cobranded sites that share the
> same
> > functionality. I want to be able to share the same set of servlets
> > across multiple cobrands.
> >
> > I know I can treat the servlets as a separate webapp and deploy
> them to
> > each separate host, but if I do this, will they be able to access
> the
> > different configuration (  and JNDI resources )
> > specified in the each ROOT context's web.xml?
> >
> 
> One way to do this in Tomcat 4.1.x is to take advantage of the
>  element.  Basically, you define the resources you want
> to
> share once in the  section of server.xml, and
> then
> embed a  for each resource in the  element for
> the
> various webapps.  From the point of view of the application, it just
> looks
> like a normal application resource -- the app doesn't know that it is
> actually getting resolved to the underlying shared resource by a
> link.
> 
> This is very handy when you use the global resources to establish all
> the
> default behavior, then override just the resources a particular app
> needs
> to customize that app.  The app itself thinks of all resources as
> being
> local, so it doesn't need to be modified to look two different
> places.
> 
> > -August
> >
> 
> Craig
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


__
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com

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




Re: What can cause a clean Tomcat shutdown?

2002-07-15 Thread rsequeira


Well hope you don't have some kind of cron job that periodically shuts
Tomcat down.

RS





"Attila Szegedi" <[EMAIL PROTECTED]> on 07/15/2002 03:24:51 PM

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

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

Subject:Re: What can cause a clean Tomcat shutdown?

Well yes, that's what puzzles us as well - it performs a clean shutdown
without anyone running "tomcat.sh stop". Also, the 8007 port is blocked by
a
firewall so it can't receive it from afar (and wouldn't react to a
non-localhost stop command anyway...).

Attila.

- Original Message -
From: <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, July 15, 2002 5:32 PM
Subject: Re: What can cause a clean Tomcat shutdown?


>
> I think I spoke a little too quicky earlier. Sorry. I believe
System.exit()
> doesn't unload the web applications. Presently I can't think of any other
> way for a clean Tomcat shutdown.
>
> RS
>
>
>
>
>
> [EMAIL PROTECTED] on 07/15/2002 09:38:54 AM
>
> Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>
>
> To:"Tomcat Users List" <[EMAIL PROTECTED]>
> cc:
>
> Subject:Re: What can cause a clean Tomcat shutdown?
>
>
> What about System.exit() in a servlet?
>
> RS
>
>
>
>
>
> "Attila Szegedi" <[EMAIL PROTECTED]> on 07/15/2002 08:51:20 AM
>
> Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>
>
> To:"Tomcat Users List" <[EMAIL PROTECTED]>
> cc:
>
> Subject:What can cause a clean Tomcat shutdown?
>
> Guys, I'm asking this question again in hope someone notices this time:
>
> Except for the stop command sent to the Ajp12 connector, is there another
> event that will cause a Tomcat 3.3.1 to shut down cleanly?
>
> We experience sporadic "spontaneous" clean shutdowns of Tomcat 3.3.1 and
> have no idea what causes them. We know these are normal shutdowns since
the
> servlet log shows the contexts are being unloaded and servlets' destroy()
> methods are being called - just as if someone has issued a "tomcat.sh
stop"
> (before you ask: nobody does).
>
> Any clues appreciated.
> Cheers,
>   Attila.
>
> --
> Attila Szegedi
> home: http://www.szegedi.org
>
>
> --
> To unsubscribe, e-mail:   <
> mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <
> mailto:[EMAIL PROTECTED]>
>
>
>
>
>
>
>
>
>
>
> --
> To unsubscribe, e-mail:   <
> mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <
> mailto:[EMAIL PROTECTED]>
>
>
>
>
>
>
>
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>
>
>


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










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




mod_jk for Linux (Tomcat 4.0.4/Apache 1.3.26)

2002-07-15 Thread Kevin Andryc

Where do I find mod_jk.so (Linux) along with the configuration files
(workers.properties, mod_jk.conf etc.) for Tomcat 4.0.4 for use with Apache
1.3.26?

Thanks,
Kevin

Kevin Andryc
Web Systems Engineer
MISER
http://www.umass.edu/miser/
Phone: (413)-545-3460
[EMAIL PROTECTED]





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




RE: What can cause a clean Tomcat shutdown?

2002-07-15 Thread Larry Isaacs

I am not aware of any way to have a "spontaneous" clean shutdown in
Tomcat 3.3.1 (besides sending a "shutdown" message like shutdown.sh
does).

If feasible, I would recommend compiling a custom version of
Tomcat 3.3.1, with extra logging added to help detect the cause.
I would start with ContextManager.shutdown().  Add some logging
(there doesn't appear to be helpful logging there by default),
and print a stack trace.  Then see where the logs lead you, adding
more logging as needed.

Cheers,
Larry

> -Original Message-
> From: Attila Szegedi [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, July 15, 2002 9:51 AM
> To: Tomcat Users List
> Subject: What can cause a clean Tomcat shutdown?
> 
> 
> Guys, I'm asking this question again in hope someone notices 
> this time:
> 
> Except for the stop command sent to the Ajp12 connector, is 
> there another
> event that will cause a Tomcat 3.3.1 to shut down cleanly?
> 
> We experience sporadic "spontaneous" clean shutdowns of 
> Tomcat 3.3.1 and
> have no idea what causes them. We know these are normal 
> shutdowns since the
> servlet log shows the contexts are being unloaded and 
> servlets' destroy()
> methods are being called - just as if someone has issued a 
> "tomcat.sh stop"
> (before you ask: nobody does).
> 
> Any clues appreciated.
> Cheers,
>   Attila.
> 
> --
> Attila Szegedi
> home: http://www.szegedi.org
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 

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




Re: DataSource Casting Problem

2002-07-15 Thread anthony.dodd

You may find that there are multiple occurences of various classes and
interfaces in your classpath e.g. javax.sql, these cause a
ClassCastException to be thrown when trying to narrow a jndi context.

Tony

- Original Message -
From: "Maier Holger, ITS-AKIS" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Monday, July 15, 2002 7:06 AM
Subject: AW: DataSource Casting Problem


Hi,
I am also struggling with ConnectionPool
at the moment. I have an Informix DB to connect to.

> It works if I use this:
> org.apache.commons.dbcp.BasicDataSource ds=
>  (org.apache.commons.dbcp.BasicDataSource)
> envCtx.lookup("jdbc/ospreyDb");
>
> Any ideas? Thanks a lot in advance!
How is your configuration of the DS in your server.xml?
Did you define a factory for your DataSource,
i.e.

  factory
  com.informix.jdbcx.IfxDataSourceFactory


for DBCP the value is probably
org.apache.commons.dbcp.BasicDataSourceFactory

Then you can probaly do without defining
> org.apache.commons.dbcp.BasicDataSource ds
and using DataSource ds instead.

Hope that helps,
Cheers
Holger

-
Holger Maier  Tel.:  (06831) 47-3497
ITS-AKIS  eMail: [EMAIL PROTECTED]

AG der Dillinger Hüttenwerke
Postfach 1580
66748 Dillingen


--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




Overriding the Tomcat work directory for compiled JSPs

2002-07-15 Thread Michael . Bombyk

Has anyone successfully overridden the work directory into which Tomcat
4.0.3 writes compiled JSPs? I have found two methods documented, and neither
of them works for me. 

The first is in server.xml: 

 

The second is in web.xml: 
a mapping for the .jps extension in WEBAPP/WEB-INF/web.xml, e.g.

   jsp  
  org.apache.jasper.servlet.JspServlet 
  
  scratchdir
  /mydir/workdir
  

I have tried both of these methods both with absolute pathnames and with
paths relative to catalina_home but in all cases JSPs are compiled into the
default "work" directory under catalina_home. Am I missing something or do
these methods not work in 4.0.3? 

Many thanks.



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




Re: Installing Tomcat 4.0.4 on Red Hat 7.3 with RPM packages

2002-07-15 Thread @Basebeans.com

Subject: Re: Installing Tomcat 4.0.4 on Red Hat 7.3 with RPM packages
From: Steven Citron-Pousty <[EMAIL PROTECTED]>
 ===
Matt:
IMHO the 4.0.4 RPM stinks. Better to go with a binary. I tried 
contacting the RPM contact on the bottom of the RPM download page and I 
posted messages here on the list and got no response (the direct message 
got bounced).
Don't use the rpm.
Steve


Jakarta Tomcat Newsgroup (@Basebeans.com) wrote:
> Subject: Installing Tomcat 4.0.4 on Red Hat 7.3 with RPM packages
> From: "Matt Raible" <[EMAIL PROTECTED]>
>  ===
> I downloaded tomcat4-4.0.4-full.2jpp.noarch.rpm from
> http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.4/rpms/
> 
> And I've installed it and can successfully start it.  However, when I got to
> view a page (basically, the ROOT context), I get the following error:
> 
> Apache Tomcat/4.0.4 - HTTP Status 500 - No Context configured to process
> this request
> 
> 
> 
> 
> type Status report
> 
> message No Context configured to process this request
> 
> description The server encountered an internal error (No Context configured
> to process this request) that prevented it from fulfilling this request.
> 
> 
> 
> 
> 
> So I did some checking and no webapps exist in $CATALINA_HOME/webapps.  Is
> this "as designed" - is there a different RPM I should be downloading that
> contains all the default webapps - or at least ROOT?
> 
> Thanks,
> 
> Matt
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 



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




Change to new vwrsion

2002-07-15 Thread Alexandre

hi all
Im a newbe in a Java plataform !

I have a  Jserv+Apache+ssl in a old machine with a Solaris 6.
but i need to change to the new Web server for this versions Apache
1.3.26 or 2.0.x  + Tomcat  4.0   or  last  + SSL

i will have a problem with my aplications ?

any people can help me in this case ???
any docs, url`s  ?

i use Solaris 8 sparc

thanks



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


Re: What can cause a clean Tomcat shutdown?

2002-07-15 Thread Attila Szegedi

Well yes, that's what puzzles us as well - it performs a clean shutdown
without anyone running "tomcat.sh stop". Also, the 8007 port is blocked by a
firewall so it can't receive it from afar (and wouldn't react to a
non-localhost stop command anyway...).

Attila.

- Original Message -
From: <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, July 15, 2002 5:32 PM
Subject: Re: What can cause a clean Tomcat shutdown?


>
> I think I spoke a little too quicky earlier. Sorry. I believe
System.exit()
> doesn't unload the web applications. Presently I can't think of any other
> way for a clean Tomcat shutdown.
>
> RS
>
>
>
>
>
> [EMAIL PROTECTED] on 07/15/2002 09:38:54 AM
>
> Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>
>
> To:"Tomcat Users List" <[EMAIL PROTECTED]>
> cc:
>
> Subject:Re: What can cause a clean Tomcat shutdown?
>
>
> What about System.exit() in a servlet?
>
> RS
>
>
>
>
>
> "Attila Szegedi" <[EMAIL PROTECTED]> on 07/15/2002 08:51:20 AM
>
> Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>
>
> To:"Tomcat Users List" <[EMAIL PROTECTED]>
> cc:
>
> Subject:What can cause a clean Tomcat shutdown?
>
> Guys, I'm asking this question again in hope someone notices this time:
>
> Except for the stop command sent to the Ajp12 connector, is there another
> event that will cause a Tomcat 3.3.1 to shut down cleanly?
>
> We experience sporadic "spontaneous" clean shutdowns of Tomcat 3.3.1 and
> have no idea what causes them. We know these are normal shutdowns since
the
> servlet log shows the contexts are being unloaded and servlets' destroy()
> methods are being called - just as if someone has issued a "tomcat.sh
stop"
> (before you ask: nobody does).
>
> Any clues appreciated.
> Cheers,
>   Attila.
>
> --
> Attila Szegedi
> home: http://www.szegedi.org
>
>
> --
> To unsubscribe, e-mail:   <
> mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <
> mailto:[EMAIL PROTECTED]>
>
>
>
>
>
>
>
>
>
>
> --
> To unsubscribe, e-mail:   <
> mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <
> mailto:[EMAIL PROTECTED]>
>
>
>
>
>
>
>
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>
>
>


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




Re: Tomcat4 + Apache2, and I need the tomcat connectors

2002-07-15 Thread Joey Kovacs

Is this good,, even if apache and tomcat are running on the same PC??


>From: "Rick Mills" <[EMAIL PROTECTED]>
>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>To: "Tomcat Users List" <[EMAIL PROTECTED]>
>Subject: Re: Tomcat4 + Apache2, and I need the tomcat connectors
>Date: Mon, 15 Jul 2002 20:35:24 +0100
>
>Hi Joey
>
>I found that the easiest way to connect Apache to Tomcat was to use
>mod_proxy:
>
>http://jakarta.apache.org/tomcat/tomcat-4.0-doc/proxy-howto.html
>
>This method requires no connectors to be built (unlike mod_jk and
>mod_webapp) - instead Apache communicates with Tomcat using HTTP. The 
>amount
>of configuration of Apache and Tomcat required is also less.
>
>Kind regards
>Rick Mills
>
>
> > Can someone help me with my Situation problem?
> >
> > I I think its the connectors that they put out!
> > i dont think they are good!
> > anyway!
>
>
>
>--
>To unsubscribe, e-mail:   
>
>For additional commands, e-mail: 
>
>




j03b0x3r


_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


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




Problems with Tomcat 4.0.3 -> JNDIRealms -> LDAP -> Netware 5

2002-07-15 Thread wbchmura


Hi All,

Can someone tell me if this is possible or what...


I have Tomcat connecting the LDAP server on Netware...  Beyond that I 
have had many problems:

(1) Netware does not export a userPassword attribute.  I have a few 
ideas on getting around this, such as a patch to try to connect as the 
requested user, or using a different arribute

I told Tomcat to use the "Language" attribute as the password field and 
I can authenticate using the password ENGLISH...  that works.  Any other 
ideas?  This is going to be for some low level intranet stuff, so 
storing the password in a different field is not all that far out of an 
option (yes I know its security terrible).

(2) Beyond the one above:  Roles...

I cannot get it to get me a list of roles... anyone do this before?  
>From what I read in the tomcat docs it does not seem likes its possible 
based on the way netware lists the groups...  


ANY help, pointers, etc would be greatly apprecaited!

Bill






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




RE: Java Mail/IMAP

2002-07-15 Thread Kevin Andryc

Thanks! I appreciate everyone's help!

Kevin

Kevin Andryc
Web Systems Engineer
MISER
http://www.umass.edu/miser/
Phone: (413)-545-3460
[EMAIL PROTECTED]



-Original Message-
From: Rick Fincher [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 15, 2002 03:53 PM
To: Tomcat Users List
Subject: Re: Java Mail/IMAP

Hi Kevin,

If no one else can help with imap mail in Tomcat, Sun has a mail webapp on
their web site that supports IMAP and POP and enclosures of graphics and pdf
files, etc.

They use a tag library so it's easy to customize.

Details are at:
http://developer.java.sun.com/developer/technicalArticles/javaserverpages/em
ailapps/

Rick

- Original Message -
From: "Kevin Andryc" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, July 15, 2002 3:34 PM
Subject: Java Mail/IMAP


> I was looking at "SendMailServlet.java" example provided by Tomcat 4.0, I
> was wondering if anyone could provide help using an IMAP server instead.
For
> example, I need to authenticate and am not sure what I need to add in
order
> for that to happen.
>
> Thanks,
> Kevin
>
> Kevin Andryc
> Web Systems Engineer
> MISER
> http://www.umass.edu/miser/
> Phone: (413)-545-3460
> [EMAIL PROTECTED]
>
>
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




Re: Java Mail/IMAP

2002-07-15 Thread Rick Fincher

Hi Kevin,

If no one else can help with imap mail in Tomcat, Sun has a mail webapp on
their web site that supports IMAP and POP and enclosures of graphics and pdf
files, etc.

They use a tag library so it's easy to customize.

Details are at:
http://developer.java.sun.com/developer/technicalArticles/javaserverpages/em
ailapps/

Rick

- Original Message -
From: "Kevin Andryc" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, July 15, 2002 3:34 PM
Subject: Java Mail/IMAP


> I was looking at "SendMailServlet.java" example provided by Tomcat 4.0, I
> was wondering if anyone could provide help using an IMAP server instead.
For
> example, I need to authenticate and am not sure what I need to add in
order
> for that to happen.
>
> Thanks,
> Kevin
>
> Kevin Andryc
> Web Systems Engineer
> MISER
> http://www.umass.edu/miser/
> Phone: (413)-545-3460
> [EMAIL PROTECTED]
>
>
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


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




Re: Java Mail/IMAP

2002-07-15 Thread Craig R. McClanahan



On Mon, 15 Jul 2002, Kevin Andryc wrote:

> Date: Mon, 15 Jul 2002 15:34:43 -0400
> From: Kevin Andryc <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: Java Mail/IMAP
>
> I was looking at "SendMailServlet.java" example provided by Tomcat 4.0, I
> was wondering if anyone could provide help using an IMAP server instead. For
> example, I need to authenticate and am not sure what I need to add in order
> for that to happen.
>

IMAP only helps you *receive* messages and manage folders.  Message
sending (via a Transport instance in JavaMail) still requires SMTP.

At any rate, the JavaMail download will have docs and examples on how to
use the included IMAP support.

  http://java.sun.com/products/javamail

> Thanks,
> Kevin
>

Craig


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




Re: Tomcat4 + Apache2, and I need the tomcat connectors

2002-07-15 Thread Rick Mills

Hi Joey

I found that the easiest way to connect Apache to Tomcat was to use
mod_proxy:

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/proxy-howto.html

This method requires no connectors to be built (unlike mod_jk and
mod_webapp) - instead Apache communicates with Tomcat using HTTP. The amount
of configuration of Apache and Tomcat required is also less.

Kind regards
Rick Mills


> Can someone help me with my Situation problem?
>
> I I think its the connectors that they put out!
> i dont think they are good!
> anyway!



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




Java Mail/IMAP

2002-07-15 Thread Kevin Andryc

I was looking at "SendMailServlet.java" example provided by Tomcat 4.0, I
was wondering if anyone could provide help using an IMAP server instead. For
example, I need to authenticate and am not sure what I need to add in order
for that to happen.

Thanks,
Kevin

Kevin Andryc
Web Systems Engineer
MISER
http://www.umass.edu/miser/
Phone: (413)-545-3460
[EMAIL PROTECTED]





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




Re: Tomcat4 + Apache2, and I need the tomcat connectors

2002-07-15 Thread Joey Kovacs

Can someone help me with my Situation problem?

I I think its the connectors that they put out!
i dont think they are good!
anyway!




>From: "Joey Kovacs" <[EMAIL PROTECTED]>
>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Tomcat4 + Apache2, and I need  the tomcat connectors Date: Mon, 15 
>Jul 2002 17:04:04 +
>
>OK,
>
>I have Tomcat and Apache working on windows 2000 at work no problem
>I went to my friends house,
>and the connectors will not work.
>
>I noticed that the older connctors work..
>the Newer ones dont..
>
>at work I have jakarta-tomcat-connectors-4.0.2-01-src.zip--- this works 
>fine
>
>the new one is jakarta-tomcat-connectors-4.0.4-src.zip -- this does NOT 
>work,,, is this a problem
>
>It asks for this Coyote.jar file?? when I  use the ant.bat file???
>
>and there is something wrong with the Build.xml??
>anyone can help??
>HELP
>
>
>
>_
>Chat with friends online, try MSN Messenger: http://messenger.msn.com
>
>
>--
>To unsubscribe, e-mail:   
>
>For additional commands, e-mail: 
>




j03b0x3r


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


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




Re: Session tracking problem with Tomcat 4.0.3, Apache 2.0.39 andmod_proxy

2002-07-15 Thread Liam Morley

Unfortunately I think you might need to run multiple instances of Tomcat 
in that case:( As you can't give multiple webapps a cookie with a "/" 
path. If you find any other solutions, however, please let me know:)

Liam Morley

Rick Mills wrote:

>Hi
>
>Thanks for that, it was exactly what was happening!
>
>Moving the context for the bodypainting WAR file to root, and changing the
>proxy pass to map http://www.bodypainting.co.uk/ to http://localhost:8000/
>has fixed the problem, and my session tracking now works as expected.
>
>I now need to work out a way of having more than one webapp using Apache
>virtual hosting where two or more domains both get mapped to / under Tomcat
>and get different webapps delivered. I'm running the Tomcat 4.0.3 which
>comes bundled with JBoss 3.0.0, so will probably have quite a challenge!
>
>Thanks for your help.
>
>Kind regards
>Rick Mills
>
>  
>
>>Rick,
>>
>>I'm pretty sure that this is the same issue that I've experienced.
>>First, try mapping to "/bodypainting/" instead of "/". See if you get a
>>cookie there. Then, if you have a browser that allows you to inspect
>>session cookies (mozilla is good for this), check the path of your
>>session cookie. You should find that it's "/bodypainting". The problem
>>is that the cookie path is determined by Tomcat, not by Apache, and
>>Tomcat gives every webapp a cookie with the path of the webapp as tomcat
>>would determine it; so since Tomcat thinks the path is "/bodypainting",
>>the cookie path doesn't change just because you're using mod_proxy. So
>>when you go to visit the page at "/", the cookie is ignored because it
>>doesn't have the right path.
>>
>>The only way I can think of to solve your issue so far is to solve the
>>path issue with Tomcat- you need to map your webapp to
>>'http://localhost:8000/' instead of
>>'http://localhost:8000/bodypainting/'. There are two ways I can think of
>>to do this:
>>
>>   1. move your 'bodypainting' webapp into the "ROOT" webapp.
>>   2. Uncomment and change the docBase path in server.xml: >  path="" docBase="bodypainting" debug="0"/>
>>
>>That should do the trick, hopefully. Let me know how that works for you.
>>Best of luck!
>>
>>Liam Morley
>>
>>
>
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>
>
>  
>


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




Fw: Tomcat 4.0.1 - weird performance issue

2002-07-15 Thread Maya Vayner

Newbie question. 

Please, help!

In short, Tomcat slows down every time an updated jar file is loaded (replacing old 
one) to lib directory in WEB-INF of the application. Everything else stays the same. 
The change in jar file can be one method call change or three classes, doesn't matter.

 Anybody had Tomcat slow down for the jar upload reason?

Thanks.
Maya

--

On Fri, 12 Jul 2002 22:14:31  
 Maya Vayner wrote:
>Hi,
>
>Please, help me with this if you can.
>
>Did anyone ever have this kind of problem with Tomcat 4.0.1 on linux machine? 
>
>Here is what is happening:
>
>after upgrading(replacing old with new version) myapplicationname.jar in 
>webapps/myapplicationname/WEB-INF/lib directory and restarting Tomcat, the site seems 
>to slo-o-o-o-ow down to 5 minutes of a 1 simple jsp page loading time. 
>
>We tried to test the new myapplicationname.jar by creating a test app under webapps 
>on that machine and running the copy of the site from that app with new jar file, and 
>it did a great job. 
>But whenever we take that jar file and place it into live app, the site slows down 
>for some weird reason (why?).
>
>Any advices/ideas/suggestions will be greatly appreciated. Thank you.
>--
>Maya 
>
>
>_
>Supercharge your e-mail with a 25MB Inbox, POP3 Access, No Ads
>and NoTaglines --> LYCOS MAIL PLUS.
>http://www.mail.lycos.com/brandPage.shtml?pageId=plus 
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>


_
Supercharge your e-mail with a 25MB Inbox, POP3 Access, No Ads
and NoTaglines --> LYCOS MAIL PLUS.
http://www.mail.lycos.com/brandPage.shtml?pageId=plus 

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




RE: applet jars

2002-07-15 Thread Rutledge, Aaron

Thanks! -A.
 


-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 15, 2002 11:44 AM
To: Tomcat Users List
Subject: RE: applet jars


Howdy,
Applet jars need to be accessible to the browser.  Therefore, they
cannot be under /mywebapp/WEB-INF.  Put them under /mywebapp/applets,
for example /mywebapp/applets/myApplet.jar.

Then your web page would have something like


Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Rutledge, Aaron [mailto:[EMAIL PROTECTED]]
>Sent: Monday, July 15, 2002 1:33 PM
>To: Tomcat Users List (E-mail)
>Subject: applet jars
>
>Hello list,
> I have been trying to embed a simple applet in a web page and keep
>getting a ClassNotFoundException.  However, I have placed the jars in
my
>webservers CLASSPATH and I am able to launch (non-applet) applications
>contained in the JAR succesfully form the server.  I am wondering if I
>need to do some sort of special configuration for applets in TomCat?  I
>have tried placing the JARS in my web ap. lib directory, the root
>directory, in the tomcat lib--everything!  Am I missing something?
>Regards to all, Aaron
>
>--
>To unsubscribe, e-mail:   [EMAIL PROTECTED]>
>For additional commands, e-mail: [EMAIL PROTECTED]>


--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




RE: applet jars

2002-07-15 Thread Craig R. McClanahan



On Mon, 15 Jul 2002, Rutledge, Aaron wrote:

> Date: Mon, 15 Jul 2002 11:53:19 -0600
> From: "Rutledge, Aaron" <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: RE: applet jars
>
> The user's browser is requesting the applet classes from TomCat, right?
> I understand that the applet doesn't run on the server, but somehow
> TomCat needs to know what classes to send and that is what I am confused
> on.  How can I refer to my JARs in my web page, and where do I place
> them on the server?  I assumed they would just be placed in the root
> directory along with the page and a simple call like...
>
>  code="com.blah.go.MYApplet" archive="com.blah.go.jar" alt="My
> Applet">
> 
>
> It appears that Tomcat doesn't know where the jar is.
>

>From Tomcat's point of view, the browser is going to do a download of the
path you specify, exactly like it does for an image.  Therefore, you'd
need to put file "com.blah.go.jar" in the same directory as the page
containing the above  tag for Tomcat to find it.

Craig


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




RE: applet jars

2002-07-15 Thread Rutledge, Aaron

The user's browser is requesting the applet classes from TomCat, right?
I understand that the applet doesn't run on the server, but somehow
TomCat needs to know what classes to send and that is what I am confused
on.  How can I refer to my JARs in my web page, and where do I place
them on the server?  I assumed they would just be placed in the root
directory along with the page and a simple call like...

 


It appears that Tomcat doesn't know where the jar is.


_
Aaron Rutledge
Electronic Business Specialist
Eppendorf - 5 Prime, Inc.
6135 Gunbarrel Ave., Ste 230
Boulder, CO 80301
Tel: 303-583-7019

 


-Original Message-
From: Nick Wesselman [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 15, 2002 11:40 AM
To: Tomcat Users List
Subject: Re: applet jars


Since it's an applet, it needs to be in the applet JAR in the browser. 
The Applet runs in the user's browser, not in tomcat.

Nick

On Monday, July 15, 2002, at 12:32 PM, Rutledge, Aaron wrote:

> Hello list,
>  I have been trying to embed a simple applet in a web page and
keep
> getting a ClassNotFoundException.  However, I have placed the jars in
my
> webservers CLASSPATH and I am able to launch (non-applet) applications
> contained in the JAR succesfully form the server.  I am wondering if I
> need to do some sort of special configuration for applets in TomCat?
I
> have tried placing the JARS in my web ap. lib directory, the root
> directory, in the tomcat lib--everything!  Am I missing something?
> Regards to all, Aaron
>
> --
> To unsubscribe, e-mail:    [EMAIL PROTECTED]>
> For additional commands, e-mail:  [EMAIL PROTECTED]>


--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




RE: applet jars

2002-07-15 Thread Shapira, Yoav

Howdy,
Applet jars need to be accessible to the browser.  Therefore, they
cannot be under /mywebapp/WEB-INF.  Put them under /mywebapp/applets,
for example /mywebapp/applets/myApplet.jar.

Then your web page would have something like


Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Rutledge, Aaron [mailto:[EMAIL PROTECTED]]
>Sent: Monday, July 15, 2002 1:33 PM
>To: Tomcat Users List (E-mail)
>Subject: applet jars
>
>Hello list,
> I have been trying to embed a simple applet in a web page and keep
>getting a ClassNotFoundException.  However, I have placed the jars in
my
>webservers CLASSPATH and I am able to launch (non-applet) applications
>contained in the JAR succesfully form the server.  I am wondering if I
>need to do some sort of special configuration for applets in TomCat?  I
>have tried placing the JARS in my web ap. lib directory, the root
>directory, in the tomcat lib--everything!  Am I missing something?
>Regards to all, Aaron
>
>--
>To unsubscribe, e-mail:   [EMAIL PROTECTED]>
>For additional commands, e-mail: [EMAIL PROTECTED]>


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




Re: applet jars

2002-07-15 Thread Nick Wesselman

Since it's an applet, it needs to be in the applet JAR in the browser. 
The Applet runs in the user's browser, not in tomcat.

Nick

On Monday, July 15, 2002, at 12:32 PM, Rutledge, Aaron wrote:

> Hello list,
>  I have been trying to embed a simple applet in a web page and keep
> getting a ClassNotFoundException.  However, I have placed the jars in my
> webservers CLASSPATH and I am able to launch (non-applet) applications
> contained in the JAR succesfully form the server.  I am wondering if I
> need to do some sort of special configuration for applets in TomCat?  I
> have tried placing the JARS in my web ap. lib directory, the root
> directory, in the tomcat lib--everything!  Am I missing something?
> Regards to all, Aaron
>
> --
> To unsubscribe, e-mail:    [EMAIL PROTECTED]>
> For additional commands, e-mail:  [EMAIL PROTECTED]>


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




Re: Session tracking problem with Tomcat 4.0.3, Apache 2.0.39 and mod_proxy

2002-07-15 Thread Rick Mills

Hi

Thanks for that, it was exactly what was happening!

Moving the context for the bodypainting WAR file to root, and changing the
proxy pass to map http://www.bodypainting.co.uk/ to http://localhost:8000/
has fixed the problem, and my session tracking now works as expected.

I now need to work out a way of having more than one webapp using Apache
virtual hosting where two or more domains both get mapped to / under Tomcat
and get different webapps delivered. I'm running the Tomcat 4.0.3 which
comes bundled with JBoss 3.0.0, so will probably have quite a challenge!

Thanks for your help.

Kind regards
Rick Mills

> Rick,
>
> I'm pretty sure that this is the same issue that I've experienced.
> First, try mapping to "/bodypainting/" instead of "/". See if you get a
> cookie there. Then, if you have a browser that allows you to inspect
> session cookies (mozilla is good for this), check the path of your
> session cookie. You should find that it's "/bodypainting". The problem
> is that the cookie path is determined by Tomcat, not by Apache, and
> Tomcat gives every webapp a cookie with the path of the webapp as tomcat
> would determine it; so since Tomcat thinks the path is "/bodypainting",
> the cookie path doesn't change just because you're using mod_proxy. So
> when you go to visit the page at "/", the cookie is ignored because it
> doesn't have the right path.
>
> The only way I can think of to solve your issue so far is to solve the
> path issue with Tomcat- you need to map your webapp to
> 'http://localhost:8000/' instead of
> 'http://localhost:8000/bodypainting/'. There are two ways I can think of
> to do this:
>
>1. move your 'bodypainting' webapp into the "ROOT" webapp.
>2. Uncomment and change the docBase path in server.xml:path="" docBase="bodypainting" debug="0"/>
>
> That should do the trick, hopefully. Let me know how that works for you.
> Best of luck!
>
> Liam Morley



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




applet jars

2002-07-15 Thread Rutledge, Aaron

Hello list,
 I have been trying to embed a simple applet in a web page and keep
getting a ClassNotFoundException.  However, I have placed the jars in my
webservers CLASSPATH and I am able to launch (non-applet) applications
contained in the JAR succesfully form the server.  I am wondering if I
need to do some sort of special configuration for applets in TomCat?  I
have tried placing the JARS in my web ap. lib directory, the root
directory, in the tomcat lib--everything!  Am I missing something?
Regards to all, Aaron

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




RE: DataSource Access - Design Question

2002-07-15 Thread Jacob Hookom

Maier Holger wrote:
Wouldn't it be better to read the
data source once in a singleton class
and then just get it back, i.e.

I did the same thing with my application where I did a key/value storage
object that was a singleton in my ServletContext.  I did notice a slight
speed improvement and I've had zero issues.

//example factory configured by properties file
DataSourceFactory dsf =
DataSourceFactory.getInstance(servlet.getServletContext());
DataSource ds = dsf.getDataSource("hrdb");


Jacob Hookom
CS Student
University of Wisconsin, Eau Claire
===
http://www.swanked.net
you're not hip enough yet

-Original Message-
From: Maier Holger, ITS-AKIS [mailto:[EMAIL PROTECTED]] 
Sent: Monday, July 15, 2002 9:29 AM
To: 'Tomcat Users List'
Subject: DataSource Access - Design Question

Hi,
I am trying to get my DataSource 
(with Connection Pooling) to run.

In the examples one always gets the 
DataSource from JNDI and I have the 
impression that everytime I want
to get my connection from DataSource
via a Context lookup.

Wouldn't it be better to read the
data source once in a singleton class
and then just get it back, i.e. 

private DataSource ds;
...
public static void getDataSource() {
   // if data source unknown read it from context
   if (ds == null) {
 try {
   Context ctx = new InitialContext();
   ds = (DataSource) ctx.lookup("java:comp/env/jdbc/myDataSource");
 }
 catch (..) {..}
   }
 
   return ds;   
}

This should be faster than accessing the context
every time you need a datasource or a connection.

Could this lead into problems?
Any suggestions?

Cheers,
Holger

-
Holger Maier  Tel.:  (06831) 47-3497
ITS-AKIS  eMail: [EMAIL PROTECTED]

AG der Dillinger Hüttenwerke
Postfach 1580
66748 Dillingen


--
To unsubscribe, e-mail:

For additional commands, e-mail:


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.375 / Virus Database: 210 - Release Date: 7/10/2002
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.375 / Virus Database: 210 - Release Date: 7/10/2002
 


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




Tomcat+Jboss+Apache

2002-07-15 Thread Sigurður Bjarnason

Hi

This i my first letter to the list..so please ..be nice..hehe :)

Ok i have a small problem with the  jboss-3.0.0RC2+Tomcat4.0.3 bundle
 I am using Apache 1.3.26 witch fires upp without an error ( It´s using mod_webapp.so )

Everything is up and running ! 

but when i fire up Apache, the Jboss+Tomcat bundle generate error wich look like this: 


16:43:21,956 ERROR [Engine] StandardContext[/examples]: Error configuring application 
listener of class listeners.ContextListener
java.lang.NoClassDefFoundError: javax/servlet/ServletContextAttributeListener
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:496)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:117)
at 
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1631)
at 
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:926)
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1360)
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1243)
at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3142)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3378)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:714)
at 
org.apache.catalina.connector.warp.WarpConfigurationHandler.deploy(WarpConfigurationHandler.java:313)
at 
org.apache.catalina.connector.warp.WarpConfigurationHandler.handle(WarpConfigurationHandler.java:117)
at 
org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:189)
at java.lang.Thread.run(Thread.java:498)
16:43:22,029 ERROR [Engine] StandardContext[/examples]: Error configuring application 
listener of class listeners.SessionListener
java.lang.NoClassDefFoundError: javax/servlet/ServletContextListener
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:496)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:117)
at 
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1631)
at 
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:926)
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1360)
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1243)
at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3142)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3378)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:714)
at 
org.apache.catalina.connector.warp.WarpConfigurationHandler.deploy(WarpConfigurationHandler.java:313)
at 
org.apache.catalina.connector.warp.WarpConfigurationHandler.handle(WarpConfigurationHandler.java:117)
at 
org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:189)
at java.lang.Thread.run(Thread.java:498)
16:43:22,092 INFO  [Engine] StandardContext[/examples]: Skipped installing application 
listeners due to previous error(s)
16:43:22,093 INFO  [Engine] StandardContext[/examples]: Context startup failed due to 
previous errors
16:43:22,162 ERROR [Engine] 
[org.apache.catalina.connector.warp.WarpConfigurationHandler] Filter mappings (0)
16:43:22,165 ERROR [Engine] 
[org.apache.catalina.connector.warp.WarpConfigurationHandler] Filter mappings (0)
16:43:22,167 ERROR [Engine] 
[org.apache.catalina.connector.warp.WarpConfigurationHandler] Filter mappings (0)
16:43:22,169 ERROR [Engine] 
[org.apache.catalina.connector.warp.WarpConfigurationHandler] Filter mappings (0)
16:43:22,171 ERROR [Engine] 
[org.apache.catalina.connector.warp.WarpConfigurationHandler] Filter mappings (0)

Can anyone help plese.. i am stuck.. bigtime.. have spent 12 hours just findin faq.. 
but nothing.. you are my last hope :)

NOTE: i am using this help here 
http://www.pubbitch.org/jboss.html
Plesae take a look.. at the bottom of this page.. where the Apache 2.0.35 and JBoss 
3RC1 with embedded Tomcat 4.0.3  help is
so you get a better idea of how I set this up.

Best regards
Siggi










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




Re: Tomcat 4.0.3 and relative path includes.

2002-07-15 Thread Paul landolt

A bug was generated to deal with this info, and a patch was sumbitted for comittment
to the source. For those interested, the bug is here:

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10629

Thanks Andrew

...Paul

Paul landolt wrote:

> After some digging by Andrew, it appears that there may be some issuea with how
> <@include>'s are performed within a war file rather than with a deployed app.
>
> If the application is deployed as a directory (the war file unpacked into a
> directory) then Jasper has no troubles at all finding "../testdir/inc.jsp".
> However, it cannot find the file if the app is deployed as a war file. I would
> assume that the reason I could not find a similar problem when deploying the war
> file in Weblogic is because Weblogic may expand the war file into a temporary
> directory before execution.
>
> Has anyone else experienced similar issues with expanded vs War file webapps?
>
> ...Paul
>
> Andrew Conrad wrote:
>
> > Little background real quick.  Tomcat allows you to define an
> > application Context in the server.xml
> >
> > Such that, if you wanted a webapp called MyApp, you would set up a
> > Context in your server.xml file with the path "/MyApp" and the docBase
> > attribute pointing to the location of your web app.  In my testing, you
> > could use relative paths WITHIN your Context.  Meaning
> >
> > If you had a file
> > /MyApp/testdir1/getRelative.jsp
> >
> > You could include these files:
> >
> > /myApp/inc.jsp (using "../inc.jsp" OR "/inc.jsp" )
> > /myApp/testdir1/inc.jsp  (using "inc.jsp" or "/testdir1/inc.jsp")
> > /myApp/testdir2/inc.jsp   (using  "../testdir2/inc.jsp" or
> > "/testdir2/inc.jsp" )
> >
> > What you couldn't do was leave your Context and get something else
> > (like):
> >
> > /inc.jsp
> > /YourApp/inc.jsp
> >
> > According to the Servlet 2.3 specification, I do not believe this is a
> > bug. (SRV9.5)
> >
> > "A web application exists as a structured hierarchy of directories. The
> > root of this
> > hierarchy serves as the document root for files that are part of the
> > application."
> >
> > That seems to say that everything within the "MyApp" webapp should see
> > the directory as "/"  and you cannot go below root.
> >
> > This seems to be consistent with the JSP 1.2 Documentation for
> >  and <%@ include %> tags
> > (JSP 2.10.3; JSP 4.4)
> >
> > -Andrew
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 


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




Tomcat4 + Apache2, and I need the tomcat connectors

2002-07-15 Thread Joey Kovacs

OK,

I have Tomcat and Apache working on windows 2000 at work no problem
I went to my friends house,
and the connectors will not work.

I noticed that the older connctors work..
the Newer ones dont..

at work I have jakarta-tomcat-connectors-4.0.2-01-src.zip--- this works fine

the new one is jakarta-tomcat-connectors-4.0.4-src.zip -- this does NOT 
work,,, is this a problem

It asks for this Coyote.jar file?? when I  use the ant.bat file???

and there is something wrong with the Build.xml??
anyone can help??
HELP



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


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




DataSource Access - Design Question

2002-07-15 Thread Maier Holger, ITS-AKIS

Hi,
I am trying to get my DataSource 
(with Connection Pooling) to run.

In the examples one always gets the 
DataSource from JNDI and I have the 
impression that everytime I want
to get my connection from DataSource
via a Context lookup.

Wouldn't it be better to read the
data source once in a singleton class
and then just get it back, i.e. 

private DataSource ds;
...
public static void getDataSource() {
   // if data source unknown read it from context
   if (ds == null) {
 try {
   Context ctx = new InitialContext();
   ds = (DataSource) ctx.lookup("java:comp/env/jdbc/myDataSource");
 }
 catch (..) {..}
   }
 
   return ds;   
}

This should be faster than accessing the context
every time you need a datasource or a connection.

Could this lead into problems?
Any suggestions?

Cheers,
Holger

-
Holger Maier  Tel.:  (06831) 47-3497
ITS-AKIS  eMail: [EMAIL PROTECTED]

AG der Dillinger Hüttenwerke
Postfach 1580
66748 Dillingen


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




Re: forwarding through j_security_check

2002-07-15 Thread Craig R. McClanahan



On Mon, 15 Jul 2002, James Krygowski wrote:

> Date: Mon, 15 Jul 2002 08:55:59 -0400
> From: James Krygowski <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: forwarding through j_security_check
>
> Hi All-
>
> I'm working on a web-app launcher.  The essential idea is to provide users
> with a centralized, secure web portal from which they can launch other web
> applications.  The other applications will reside in Tomcat servers
> different from the portal Tomcat server.
>
> Each application will be protected by standard J2EE security implemented
> with j_security_check.  I'd like to be able to forward to applications and
> automatically negotiate the j_security_check so that user's don't have to
> log on once they've already presented their credentials to the portal
> application (i.e. single sign-on).
>
> Is it possible to formulate an href url that simultaneously specifies the
> target resource and the credentials being passed to j_security_check?  I
> note that in the packet sent in the j_security_check post, all the
> information needed is present.  If the read the packet right, the Referrer
> in the http header contains the information about the desired "protected"
> resource.  Is this Referrer used by j_security_check to forward a request on
> to the desired destination?

No, it is not.  When form based login detects the need to challenge the
user for credentials, it saves an internal copy of the original request,
and "replays" it once the user is successfully authenticated.

> If so, is it possible to set up a servlet that
> could manipulate the Referrer in the header, and redirect a request along to
> an application in another Tomcat server, making it look like a post to
> j_security_check, complete with referrer, j_username and j_password?
>
> Any suggestions or comments are welcome and appreciated.
>

Trying to forward security credentials like this is pretty much guaranteed
not to work.

One thing you might consider using is Tomcat's standard support for single
sign on across multiple webaps.  Check out the "Single Sign On" section
on:

  http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/host.html

> Thanks,
>
> Jim

Craig


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




RE: newbie - finding class files

2002-07-15 Thread Craig R. McClanahan



On Mon, 15 Jul 2002, Andreas Probst wrote:

> Date: Mon, 15 Jul 2002 13:07:11 +0200
> From: Andreas Probst <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: RE: newbie - finding class files
>
> Hi all,
>
> does Tomcat really look into tomcatdir/server/lib? For me it seems
> Tomcat doesn't.
>

This directory is only visible to the classloader for Tomcat itself, not
for webapps.  There is a special rule that makes servlet classes in
package "org.apache.catalina" available to webapps anyway, however, which
is why the standard WebdavServlet (as well as the other Tomcat features
that are available via servlets) can be loaded.

Craig


> On the one hand the original webapp /webdav runs without errors. On
> the other hand, when I deploy a class that extends the original
> webdav-class org.apache.catalina.servlets.WebdavServlet (located in
> catalinahome\server\lib\servlets-webdav.jar) I get an
> java.lang.NoClassDefFoundError:
> org/apache/catalina/servlets/WebdavServlet.
>
> When I then copy catalinahome\server\lib\servlets-webdav.jar into
> catalinahome\webapps\mywebdav\WEB-INF\lib I get a different
> java.lang.NoClassDefFoundError:
> org/apache/catalina/servlets/DefaultServlet. DefaultServlet is
> located in catalinahome\server\lib\servlets-default.jar. So it seems
> Tomcat doesn't look into the catalinahome\server\lib\ directory. But
> why then runs the original /webdav app?
>
> What do I do wrong? Do I have to tell Tomcat somehow to look into the
> catalinahome\server\lib\ directory when running my webapp? Or do I
> have to copy all needed files from catalinahome\server\lib\ to my
> webapp's lib-directory? I suppose this shouldn't be the solution.
>
> By the way: I'm running Tomcat 4.0.4 on Windows 2000.
>
> Thanks a lot in advance.
>
> Andreas Probst
>
> > Brian,
> >
> > Tomcat looks for your classes under
> > Tomcatdir/webapps/yourapp/WEB-INF/classes and Tomcatdir/common/classes and
> > looks for your jars in Tomcatdir/webapps/yourapp/WEB-INF/lib ,
> > Tomcatdir/common/lib (and Tomcatdir/server/lib but you shouldn't put your
> > stuff in here)
> >
> > Andy
> >
> > > -Original Message-
> > > From: Brian Wolf [mailto:[EMAIL PROTECTED]]
> > > Sent: 11 July 2002 22:12
> > > To: Tomcat Users List
> > > Subject: newbie - finding class files
> > >
> > >
> > > Hi
> > >
> > > I am having problems with  servlets finding class files. On Windows 98
> > > I have the classpath and path environmental variables set to
> > > c:\jdk1.4\bin
> > > and c:\jdk1.4 respectively. The Servlet works fine when converted to a
> > > command line application.
> > >
> > > -Brian
> > >
> > > ---
> > >
> > >
> > > Error: 500
> > > Location: /examples/servlet/processOptions
> > > Internal Servlet Error:
> > >
> > > java.lang.NoClassDefFoundError:
> > > com/sun/java/util/collections/AbstractSequentialList
> > >  at org.jdom.input.SAXBuilder.createContentHandler(SAXBuilder.java)
> > >  at org.jdom.input.SAXBuilder.build(SAXBuilder.java)
> > >
> > >
> > >
> >
> >
> >
>
>
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>
>


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




AW: DataSource Casting Problem

2002-07-15 Thread Maier Holger, ITS-AKIS

Hi,
I am also struggling with ConnectionPool
at the moment. I have an Informix DB to connect to.

> It works if I use this:
> org.apache.commons.dbcp.BasicDataSource ds=
>  (org.apache.commons.dbcp.BasicDataSource) 
> envCtx.lookup("jdbc/ospreyDb");
>
> Any ideas? Thanks a lot in advance!
How is your configuration of the DS in your server.xml?
Did you define a factory for your DataSource,
i.e. 

  factory
  com.informix.jdbcx.IfxDataSourceFactory


for DBCP the value is probably
org.apache.commons.dbcp.BasicDataSourceFactory

Then you can probaly do without defining
> org.apache.commons.dbcp.BasicDataSource ds
and using DataSource ds instead.

Hope that helps,
Cheers
Holger

-
Holger Maier  Tel.:  (06831) 47-3497
ITS-AKIS  eMail: [EMAIL PROTECTED]

AG der Dillinger Hüttenwerke
Postfach 1580
66748 Dillingen


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




Re: Cobranding - Share Controller, Split View

2002-07-15 Thread Craig R. McClanahan



On Sun, 14 Jul 2002, August Detlefsen wrote:

> Date: Sun, 14 Jul 2002 23:15:53 -0700 (PDT)
> From: August Detlefsen <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>,
>  [EMAIL PROTECTED]
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: Cobranding - Share Controller, Split View
>
> I am currently developing several cobranded sites that share the same
> functionality. I want to be able to share the same set of servlets
> across multiple cobrands.
>
> I know I can treat the servlets as a separate webapp and deploy them to
> each separate host, but if I do this, will they be able to access the
> different configuration (  and JNDI resources )
> specified in the each ROOT context's web.xml?
>

One way to do this in Tomcat 4.1.x is to take advantage of the
 element.  Basically, you define the resources you want to
share once in the  section of server.xml, and then
embed a  for each resource in the  element for the
various webapps.  From the point of view of the application, it just looks
like a normal application resource -- the app doesn't know that it is
actually getting resolved to the underlying shared resource by a link.

This is very handy when you use the global resources to establish all the
default behavior, then override just the resources a particular app needs
to customize that app.  The app itself thinks of all resources as being
local, so it doesn't need to be modified to look two different places.

> -August
>

Craig


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




RE: newbie - finding class files

2002-07-15 Thread Andrew Conrad

Check this link for more info on class loading.  

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html

But it was my understanding that only Tomcat loads the classes and jars
located in the /server directory.

If you need access to it in your webapp, you have to either put the jar
in yourwebapp/WEB-INF/lib or in the shared library section.

For 4.0.4, shared libraries go in %CATALINA%\lib.  With 4.1.x, they go
in %CATALINA%\shared\lib.

- Andrew

> -Original Message-
> From: Andreas Probst [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, July 15, 2002 7:07 AM
> To: [EMAIL PROTECTED]
> Subject: RE: newbie - finding class files
> 
> 
> Hi all,
> 
> does Tomcat really look into tomcatdir/server/lib? For me it 
> seems Tomcat doesn't.
> 
> On the one hand the original webapp /webdav runs without 
> errors. On the other hand, when I deploy a class that extends 
> the original webdav-class 
> org.apache.catalina.servlets.WebdavServlet (located in
> catalinahome\server\lib\servlets-webdav.jar) I get an
> java.lang.NoClassDefFoundError: 
> org/apache/catalina/servlets/WebdavServlet.
> 
> When I then copy catalinahome\server\lib\servlets-webdav.jar 
> into catalinahome\webapps\mywebdav\WEB-INF\lib I get a different
> java.lang.NoClassDefFoundError: 
> org/apache/catalina/servlets/DefaultServlet. DefaultServlet 
> is located in catalinahome\server\lib\servlets-default.jar. 
> So it seems Tomcat doesn't look into the 
> catalinahome\server\lib\ directory. But why then runs the 
> original /webdav app?
> 
> What do I do wrong? Do I have to tell Tomcat somehow to look 
> into the catalinahome\server\lib\ directory when running my 
> webapp? Or do I have to copy all needed files from 
> catalinahome\server\lib\ to my webapp's lib-directory? I 
> suppose this shouldn't be the solution.
> 
> By the way: I'm running Tomcat 4.0.4 on Windows 2000.
> 
> Thanks a lot in advance.
> 
> Andreas Probst
> 
> > Brian,
> >
> > Tomcat looks for your classes under 
> > Tomcatdir/webapps/yourapp/WEB-INF/classes and 
> Tomcatdir/common/classes 
> > and looks for your jars in Tomcatdir/webapps/yourapp/WEB-INF/lib , 
> > Tomcatdir/common/lib (and Tomcatdir/server/lib but you 
> shouldn't put 
> > your stuff in here)
> >
> > Andy
> >
> > > -Original Message-
> > > From: Brian Wolf [mailto:[EMAIL PROTECTED]]
> > > Sent: 11 July 2002 22:12
> > > To: Tomcat Users List
> > > Subject: newbie - finding class files
> > >
> > >
> > > Hi
> > >
> > > I am having problems with  servlets finding class files. 
> On Windows 
> > > 98 I have the classpath and path environmental variables set to 
> > > c:\jdk1.4\bin and c:\jdk1.4 respectively. The Servlet works fine 
> > > when converted to a command line application.
> > >
> > > -Brian
> > >
> > > ---
> > >
> > >
> > > Error: 500
> > > Location: /examples/servlet/processOptions
> > > Internal Servlet Error:
> > >
> > > java.lang.NoClassDefFoundError: 
> > > com/sun/java/util/collections/AbstractSequentialList
> > >  at 
> org.jdom.input.SAXBuilder.createContentHandler(SAXBuilder.java)
> > >  at org.jdom.input.SAXBuilder.build(SAXBuilder.java)
> > >
> > >
> > >
> >
> >
> >
> 
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 
> 

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




Why JSPC is storing all the compiled files in one directory regardless of the application subdirectories?

2002-07-15 Thread Rossen Raykov

When I compile my webapp with JspC from tomcat 4.1.7b it sores all the files
in the directory specified by -d option regardless of the application
directory structure.
I have to mention that the directories are created correctly but they are
empty and the files that belong to them are stored in the root directory.
As a result if there are JSP files with the same name in different
subdirectories they'll override each other.
One more thing - since all resulting java files are under package
org.apache.jsp the produced web.xml is not correct and have duplicated
elements.
Note that the JspC from tomcat 4.0.3 was placing the files under correct
packages and subdirectories.

JspC parameters used: 
java -ms128m -mx128m \
-Djava.endorsed.dirs=... \
-classpath ... \
-Djasper.home=... org.apache.jasper.JspC \
-v6 -d ../jspc -webinc ../jspc/web.xml -webapp .

Note the -d option (it is not started with -dd)!
Also it looks like the usage of -v option doesn't change anything.

Regards,
Rossen

---
Rossen Raykov
COGNICASE U.S.A. Inc.
(908) 860-1100 Ext. 1140
[EMAIL PROTECTED]

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




RE: Tomcat & MySQL Run On Read-Only Media ..

2002-07-15 Thread Murat Buyukkal ([EMAIL PROTECTED])

Thanks for all the answers. Martin understood me very well. From now I am
trying to construct what I said. If I can, I will write the solution.. Thank
you again..

Murat.

-Original Message-
From: Martin van den Bemt [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 15, 2002 4:50 PM
To: Tomcat Users List
Subject: RE: Tomcat & MySQL Run On Read-Only Media ..


I was just saying 2 mails ago : Who cares about customers ?? Tomcat-user
list is not a marketing list.. He just wants to know how he can get that
thing running on cd. he probably had a good reason to ask for this
solution.. 
My reamrks were made so it got back ON topic again..

Sorry about the grumpy attitude, just thought he was asking on how to do
that, not how to market it and do customer surveys.


Mvgr,
Martin

On Mon, 2002-07-15 at 15:41, [EMAIL PROTECTED] wrote:
> A little bit off-topic, but if it is not a custom-made software and if it
> targets a lot of not specific users, it cannot only rely on a particular
> configuration (imo).
> 
> -Original Message-
> From: Martin van den Bemt [mailto:[EMAIL PROTECTED]]
> Sent: 15 July 2002 15:30
> To: Tomcat Users List
> Subject: RE: Tomcat & MySQL Run On Read-Only Media ..
> 
> 
> Agreed, but only with custom made software.. At the most you can ask
> your current customers to ask if they can agree to a certain solution,
> but hey : he is asking what the solution might be!
> Before he gets that answered customer contact is a big waste of time 
> 
> Mvgr,
> Martin
> 
> On Mon, 2002-07-15 at 15:19, [EMAIL PROTECTED] wrote:
> > Hello,
> > 
> > About the customers : they define the requirements.
> > 
> > Who does not meet their requirements, lose them (especially the big
ones)...
> > 
> > Greetings,
> > 
> > André POWROZNIK
> > 
> > -Original Message-
> > From: Martin van den Bemt [mailto:[EMAIL PROTECTED]]
> > Sent: 15 July 2002 14:23
> > To: Tomcat Users List
> > Subject: RE: Tomcat & MySQL Run On Read-Only Media ..
> > 
> > 
> > On Mon, 2002-07-15 at 13:59, [EMAIL PROTECTED] wrote:
> > > I am afraid it is not as as much easy as you think...
> > > 
> > > 1) Will your customer agree to run these applications on their
computer?
> > > 2) What if they are not using a PC (Mac?) or if they are not using
Windows (Linux?)?
> > Who cares.. If they order it, they have to..
> > 
> > > 3) To run JSP you need a JDK, not a JRE.
> > 
> > Wrong here.. Just if you want your jsp's to be dynamic.. Just precompile
> > them..
> > 
> > > 4) If you copy JDK, Tomcat & MySQL files on the CD, will it work?
> > >In order to run they need :
> > >- DLLs in Windows system directories;
> > >- keys in Windows registry;
> > >- write access to some of their files...
> > 
> > Use hsqldb instead which has a memory database..
> > 
> > > 5) What about AUTOEXEC.BAT?
> > >It will do nothing if you put it on a CD : it needs to be in C:\,
and there is already one there...
> > ??
> > > 6) What if your customers have problems running your CD?
> > >Will you create a hotline ;-) ?
> > 
> > Not your problem I guess ;).. He was asking HOW not a project plan of
> > things to resolve before hand..
> > 
> > 
> > TIP: Search the archives (maybe a year ago or something) there was a big
> > thread about it, which actually worked towards a solution.
> > 
> > 
> > Mvgr,
> > Martin
> > 
> > 
> > --
> > To unsubscribe, e-mail:

> > For additional commands, e-mail:

> > 
> >  DISCLAIMER  
> > "This e-mail and any attachments thereto may contain information 
> > which is confidential and/or protected by intellectual property 
> > rights and are intended for the sole use of the recipient(s) named
above. 
> > Any use of the information contained herein (including, but not limited
to, 
> > total or partial reproduction, communication or distribution in any
form) 
> > by persons other than the designated recipient(s) is prohibited. 
> > If you have received this e-mail in error, please notify the sender
either 
> > by telephone or by e-mail and delete the material from any computer. 
> > Thank you for your cooperation."
> > 
> > 
> > --
> > To unsubscribe, e-mail:

> > For additional commands, e-mail:

> > 
> > 
> 
> 
> 
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

> 
>  DISCLAIMER  
> "This e-mail and any attachments thereto may contain information 
> which is confidential and/or protected by intellectual property 
> rights and are intended for the sole use of the recipient(s) named above. 
> Any use of the information contained herein (including, but not limited
to, 
> total or partial reproduction, communication or distribution in any form) 
> by persons other than the designated recipient(s) is prohibited. 
> If you have received this e-mail in error, please notify the sender either

> by telephone or by e-mail and delete the ma

Re: What can cause a clean Tomcat shutdown?

2002-07-15 Thread rsequeira


I think I spoke a little too quicky earlier. Sorry. I believe System.exit()
doesn't unload the web applications. Presently I can't think of any other
way for a clean Tomcat shutdown.

RS





[EMAIL PROTECTED] on 07/15/2002 09:38:54 AM

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

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

Subject:Re: What can cause a clean Tomcat shutdown?


What about System.exit() in a servlet?

RS





"Attila Szegedi" <[EMAIL PROTECTED]> on 07/15/2002 08:51:20 AM

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

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

Subject:What can cause a clean Tomcat shutdown?

Guys, I'm asking this question again in hope someone notices this time:

Except for the stop command sent to the Ajp12 connector, is there another
event that will cause a Tomcat 3.3.1 to shut down cleanly?

We experience sporadic "spontaneous" clean shutdowns of Tomcat 3.3.1 and
have no idea what causes them. We know these are normal shutdowns since the
servlet log shows the contexts are being unloaded and servlets' destroy()
methods are being called - just as if someone has issued a "tomcat.sh stop"
(before you ask: nobody does).

Any clues appreciated.
Cheers,
  Attila.

--
Attila Szegedi
home: http://www.szegedi.org


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










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










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




Installing Tomcat 4.0.4 on Red Hat 7.3 with RPM packages

2002-07-15 Thread @Basebeans.com

Subject: Installing Tomcat 4.0.4 on Red Hat 7.3 with RPM packages
From: "Matt Raible" <[EMAIL PROTECTED]>
 ===
I downloaded tomcat4-4.0.4-full.2jpp.noarch.rpm from
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.4/rpms/

And I've installed it and can successfully start it.  However, when I got to
view a page (basically, the ROOT context), I get the following error:

Apache Tomcat/4.0.4 - HTTP Status 500 - No Context configured to process
this request




type Status report

message No Context configured to process this request

description The server encountered an internal error (No Context configured
to process this request) that prevented it from fulfilling this request.





So I did some checking and no webapps exist in $CATALINA_HOME/webapps.  Is
this "as designed" - is there a different RPM I should be downloading that
contains all the default webapps - or at least ROOT?

Thanks,

Matt



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




RE: Multiple Instances of Tomcat 4.0.4

2002-07-15 Thread Vijay Kandy

Thank you for your reply. I am still not far from where I started last week!
When using Tomcat 3.2.3, my tomcat.conf read something like this:

[snip]
ApJServMount /alpha ajpv12://web:8995/alpha
ApJServMount /beta  ajpv12://web:8996/beta
[snip]

where "web" was the host machine and /alpha and /beta were applications on
two instances of tomcat. Now I am using Tomcat 4.0.4 and therefore mod_jk.
How should I change my tomcat.conf? I tried replacing "ApJServMount" with
"JkMount" but Apache(2.0.39) doesnt seem to redirect to tomcat :(

Anybody somebody please help!
-Vijay

-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]]
Sent: Saturday, July 13, 2002 12:51 PM
To: Tomcat Users List
Subject: Re: Multiple Instances of Tomcat 4.0.4


ubeans.com/tomcat - try that.

I haven't personally done this, so I can't help you.  The above assumes 
you're using Apache.  Hopefully someone else will respond that knows more.

Regards,

Eddie

Vijay Kandy wrote:

>Hello All,
>
>When I try to run %CATALINA_HOME%\bin\catalina start -f
>%CATALINA_HOME%\conf\server1.xml for different server.xml's I get this
>message:
>usage: java org.apache.catalina.startup.Catalina [ -config {pathname} ] [
>-debug
> ] [ -nonaming ] { start | stop }
>
>>From the docs, I made copies of Tomcat folder and added the paths to
>CATALINA_BASE. Doesnt seem to work either. Can some one point me in the
>right direction please? Is there a good documentation?
>
>Thank you,
>Vijay
>
>--
>To unsubscribe, e-mail:

>For additional commands, e-mail:

>



--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




Re: What can cause a clean Tomcat shutdown?

2002-07-15 Thread rsequeira


What about System.exit() in a servlet?

RS





"Attila Szegedi" <[EMAIL PROTECTED]> on 07/15/2002 08:51:20 AM

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

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

Subject:What can cause a clean Tomcat shutdown?

Guys, I'm asking this question again in hope someone notices this time:

Except for the stop command sent to the Ajp12 connector, is there another
event that will cause a Tomcat 3.3.1 to shut down cleanly?

We experience sporadic "spontaneous" clean shutdowns of Tomcat 3.3.1 and
have no idea what causes them. We know these are normal shutdowns since the
servlet log shows the contexts are being unloaded and servlets' destroy()
methods are being called - just as if someone has issued a "tomcat.sh stop"
(before you ask: nobody does).

Any clues appreciated.
Cheers,
  Attila.

--
Attila Szegedi
home: http://www.szegedi.org


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










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




Re: Tomcat Icons

2002-07-15 Thread Richard Sobota

Nice, I use them.


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




RE: how to make tomcat faster

2002-07-15 Thread Jackson, Stephen

One item I found to increase tomcat performance is to run tomcat with the
-server option 

-Original Message-
From: Joe Schiavone [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 14, 2002 4:43 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: how to make tomcat faster




HOST your production using a UNIX box.  I recommend Solaris x86.
However, a good tightly configured linux machine would suffice too.
If you can swing it, get dual cpu's and max memory.

reguards,
joe


>
>hi,
>
>i have been developing using Tomcat 4.0.1.. and i hv had no problems about
>that.
>
>Now i have moved all my applications on to the production server, where
>hopefully i
>wdnt be making any more changes. But i want to make Tomcat respond faster
to
>requests.
>Obviously the production environment shd be different from the development
>one..so 
>can someone detail me on what changes i can make to make Tomcat quicker to
>respond.
>
>Thanx in adv,
>-anoop



--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




Client Certificates with Tomcat

2002-07-15 Thread Tathagat (London)

Hi All,
I am working with Tomcat 4. I do all the steps provided in server.xml vis:
__
Step 2: Generate Client and Server Certificates
It is necessary to generate a Certificate for the client and the server.
These Certificates are then imported into a keystore, to which the client
and server connect. 
The keystore acts as a database for security certificates. 
You are going to use the keytool utility in the JDK to do these tasks (see
Sun's documentation for more information on this tool). 
Step 2a: Generate a Server Key and Certificate
Launch keytool from a shell (or command prompt) to generate your public and
private key. 
Note that the Certificate and keystore files will be generated in the
directory you run keytool from. 
Use keytool as follows: 
keytool -genkey -alias tomcat-sv -dname "CN=[Common Name],OU=[Organisation
Unit], O=[Organisation Name], L=[Locality], S=[State Name], C=[Two-Letter
Country Code]" -keyalg RSA -keypass [private key password] -storepass
[keystore password] -keystore [keystore file name] 

For example, to generate a keystore (in file server.keystore) for server
soapsvr.test.tcd.ie using password changeit (for both the keystore and the
certificate) in the Computer Engineering group at Trinity College Dublin,
Ireland, one would type the following: keytool -genkey -alias tomcat-sv
-dname "CN=soapsvr.test.tcd.ie, OU=ComputerEngineering, O=Trinity College
Dublin, L=Dublin, S=Dublin, C=IE" -keyalg RSA -keypass changeit -storepass
changeit -keystore server.keystore 

Note that 

The RSA algorithm is used to generate certificates. 
Ensure that the 'CN' field that you specify when you create the server
certificate matches the name of the machine on which you're running tomcat,
or your browser will complain about certificate name mis-matches (not a
problem on a test server, a big problem on a production server!). 
Step 2b: Export the Server Certificate
>From command prompt run this command to export your certificate from the
keystore into an external file (we do this so we can import the certificate
into the client's keystore as a trusted certificate). 
keytool -export -alias tomcat-sv -storepass changeit -file server.cer
-keystore server.keystore 


If everything works, you should now have a file called server.cer which
contains your server's certificate. 
Step 2c: Generate a Client Key and Certificate
This step is very similar to the generation of the server key and
certificate - it uses the same keytool tool with different parameters. 
Note that the keystore file name has changed (it is now client.keystore).
Use keytool as follows: 
keytool -genkey -alias tomcat-cl -dname "CN=Client,OU=TRL, O=IBM,
L=Yamato-shi, S=Kanagawa-ken, C=JP" -keyalg RSA -keypass changeit -storepass
changeit -keystore client.keystore 

Step 2d: Export the Client Certificate
This step is very similar to the export of the server certificate - it uses
the same keytool tool with different parameters: 
keytool -export -alias tomcat-cl -storepass changeit -file client.cer
-keystore client.keystore 


If everything works, you should now have a file called client.cer which
contains your client's certificate. 
Step 2e: Import the Certificates into the Keystores
We want the client certificate to be added to the server's keystore, and the
server's certificate to be added to the client's keystore. 
Doing this will mean that the client and server trust one another. 
Import the server certificate into the client's keystore: 
keytool -import -v -trustcacerts -alias tomcat -file server.cer -keystore
client.keystore -keypass changeit -storepass changeit 
Import the client certificate into the server's keystore: keytool -import -v
-trustcacerts -alias tomcat -file client.cer -keystore server.keystore
-keypass changeit -storepass changeit
__

as long as I keep clientAuth="false" in server.xml it runs fine.

But when I make it true, it looks for the client certificate, which it
obviousely can't find. How do I get the client certificate from above. What
is client.cer then?

Any clues appreciated.

Thanks and Regards
Tathagat

GBS - Legal Services
Phone: +49 (0) 69 263 16854
Fax:  +49 (0) 69 263 16540
Mobile: +49 (0) 160 98589882
Private Email: [EMAIL PROTECTED]



--
If you have received this e-mail in error or wish to read our e-mail 
disclaimer statement and monitoring policy, please refer to 
http://www.drkw.com/disc/email/ or contact the sender.
--


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




What can cause a clean Tomcat shutdown?

2002-07-15 Thread Attila Szegedi

Guys, I'm asking this question again in hope someone notices this time:

Except for the stop command sent to the Ajp12 connector, is there another
event that will cause a Tomcat 3.3.1 to shut down cleanly?

We experience sporadic "spontaneous" clean shutdowns of Tomcat 3.3.1 and
have no idea what causes them. We know these are normal shutdowns since the
servlet log shows the contexts are being unloaded and servlets' destroy()
methods are being called - just as if someone has issued a "tomcat.sh stop"
(before you ask: nobody does).

Any clues appreciated.
Cheers,
  Attila.

--
Attila Szegedi
home: http://www.szegedi.org


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




AW: Tomcat & MySQL Run On Read-Only Media ..

2002-07-15 Thread Ralph Einfeldt

Unless you know your customers very well that isn't
a road I would follow. I can hardly imagine cutomers
that are willing to loose there primary os just to
view a product catalog. That happens at least for 
the time you run the cd. (No quick copy and paste to 
the mail reader, no quit look at the internet site 
to order online, ...)

Or do you know a solution that just opens a linux 
window without reboot under any os that might be 
used to view the cd. (VM Ware would allow such thing 
but, that requires that the customer alrady has it)

I would recommend to define the java runtime environment
as minimal requirement for the customer. (This way you 
don't need dll's, registry changes etc). Than you can 
deliver tomcat standalone with a pure java in-memory 
database and precompiled jsp's on cd 

> -Ursprüngliche Nachricht-
> Von: David Goodenough [mailto:[EMAIL PROTECTED]]
> Gesendet: Montag, 15. Juli 2002 15:24
> An: Tomcat Users List
> Betreff: Re: Tomcat & MySQL Run On Read-Only Media ..
> 
> 
> There is a project (I forget its name) which is building a 
> version of Linux designed to run on a CD.  Thus you do not 
> have to make any assumptions about what is on the PC. 
> You can lock this version down so that it does not even
> look at their disk, and provided you use the VESA framebuffer 
> you are more or less guaranteed to get it to run on the screen.
> 
> I am sure that this would provide you a very good platform for such an
> application.

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




Re: Help on Tomcat 4.0.4 configuration

2002-07-15 Thread Nishant_Awasthi


Hello Murugan

I ahve installed tomcat 4.0.4 and it is running fine here:
All you need to set is JAVA_HOME and CATALINA_HOME.
You need not worry about any of the other files like setenv.bat or
startup.bat or catalina.bat.
Actually if you  want you can edit catalina.bat which contains you
classpath settings.
and add your own class path as:

set CLASSPATH=%CLASSPATH%;%CATALINA_HOME%\bin\bootstrap.jar; (place
your classes here);
Tomcat automatically sets the classpath depending on your autoexec.bat file
set classpath
when it is run for the first time. It also includes all the jar files from
%TOMCAT_HOME%\common\lib.

So you neednot worry about the classpath. Either edit autoexec.bat or edit
catalina.bat.
No need to do anything with web.xml
tell me in case of any probs.
--

Nishant Awasthi
Corporate Systems Database Intern
Progressive Insurance
Phone: 440-603-4055 (Work)
Cell: 330-328-0243 (Cell)



   
 
"Telesis   
 
Support - To: "Tomcat Users List"  
 
Bangalore"<[EMAIL PROTECTED]> 
 
Subject: Help  on Tomcat 4.0.4 
configuration  
   
 
07/15/2002 
 
08:03 AM   
 
Please respond 
 
to "Tomcat 
 
Users List"
 
   
 
   
 





Hi all,

  Can anyone tell me the steps for tomcat 4.0.4 configuration.
  I have set the JAVA_HOME and CATALINA_HOME and start the tomcat.
  but, for tomcat 3.3.1, i had set classpath in tomcat.bat file..
  I have the doubt about classpath for tomcat 4.0.4. Can u please come with
the steps for tomcat 4.0.4 configuration, including web.xml..
 there is also one more web.xml in conf folder, it seems, it is for global
things.. little bit confusion.
Till now, i couldn't get any jsp page, even in the examples jsp page not
working.
If anyone succeed in the tomcat 4.0.4 configuration, please let me know..

bye,
Murugan


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





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




RE: Tomcat & MySQL Run On Read-Only Media ..

2002-07-15 Thread Martin van den Bemt

I was just saying 2 mails ago : Who cares about customers ?? Tomcat-user
list is not a marketing list.. He just wants to know how he can get that
thing running on cd. he probably had a good reason to ask for this
solution.. 
My reamrks were made so it got back ON topic again..

Sorry about the grumpy attitude, just thought he was asking on how to do
that, not how to market it and do customer surveys.


Mvgr,
Martin

On Mon, 2002-07-15 at 15:41, [EMAIL PROTECTED] wrote:
> A little bit off-topic, but if it is not a custom-made software and if it
> targets a lot of not specific users, it cannot only rely on a particular
> configuration (imo).
> 
> -Original Message-
> From: Martin van den Bemt [mailto:[EMAIL PROTECTED]]
> Sent: 15 July 2002 15:30
> To: Tomcat Users List
> Subject: RE: Tomcat & MySQL Run On Read-Only Media ..
> 
> 
> Agreed, but only with custom made software.. At the most you can ask
> your current customers to ask if they can agree to a certain solution,
> but hey : he is asking what the solution might be!
> Before he gets that answered customer contact is a big waste of time 
> 
> Mvgr,
> Martin
> 
> On Mon, 2002-07-15 at 15:19, [EMAIL PROTECTED] wrote:
> > Hello,
> > 
> > About the customers : they define the requirements.
> > 
> > Who does not meet their requirements, lose them (especially the big ones)...
> > 
> > Greetings,
> > 
> > André POWROZNIK
> > 
> > -Original Message-
> > From: Martin van den Bemt [mailto:[EMAIL PROTECTED]]
> > Sent: 15 July 2002 14:23
> > To: Tomcat Users List
> > Subject: RE: Tomcat & MySQL Run On Read-Only Media ..
> > 
> > 
> > On Mon, 2002-07-15 at 13:59, [EMAIL PROTECTED] wrote:
> > > I am afraid it is not as as much easy as you think...
> > > 
> > > 1) Will your customer agree to run these applications on their computer?
> > > 2) What if they are not using a PC (Mac?) or if they are not using Windows 
>(Linux?)?
> > Who cares.. If they order it, they have to..
> > 
> > > 3) To run JSP you need a JDK, not a JRE.
> > 
> > Wrong here.. Just if you want your jsp's to be dynamic.. Just precompile
> > them..
> > 
> > > 4) If you copy JDK, Tomcat & MySQL files on the CD, will it work?
> > >In order to run they need :
> > >- DLLs in Windows system directories;
> > >- keys in Windows registry;
> > >- write access to some of their files...
> > 
> > Use hsqldb instead which has a memory database..
> > 
> > > 5) What about AUTOEXEC.BAT?
> > >It will do nothing if you put it on a CD : it needs to be in C:\, and there 
>is already one there...
> > ??
> > > 6) What if your customers have problems running your CD?
> > >Will you create a hotline ;-) ?
> > 
> > Not your problem I guess ;).. He was asking HOW not a project plan of
> > things to resolve before hand..
> > 
> > 
> > TIP: Search the archives (maybe a year ago or something) there was a big
> > thread about it, which actually worked towards a solution.
> > 
> > 
> > Mvgr,
> > Martin
> > 
> > 
> > --
> > To unsubscribe, e-mail:   
> > For additional commands, e-mail: 
> > 
> >  DISCLAIMER  
> > "This e-mail and any attachments thereto may contain information 
> > which is confidential and/or protected by intellectual property 
> > rights and are intended for the sole use of the recipient(s) named above. 
> > Any use of the information contained herein (including, but not limited to, 
> > total or partial reproduction, communication or distribution in any form) 
> > by persons other than the designated recipient(s) is prohibited. 
> > If you have received this e-mail in error, please notify the sender either 
> > by telephone or by e-mail and delete the material from any computer. 
> > Thank you for your cooperation."
> > 
> > 
> > --
> > To unsubscribe, e-mail:   
> > For additional commands, e-mail: 
> > 
> > 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 
>  DISCLAIMER  
> "This e-mail and any attachments thereto may contain information 
> which is confidential and/or protected by intellectual property 
> rights and are intended for the sole use of the recipient(s) named above. 
> Any use of the information contained herein (including, but not limited to, 
> total or partial reproduction, communication or distribution in any form) 
> by persons other than the designated recipient(s) is prohibited. 
> If you have received this e-mail in error, please notify the sender either 
> by telephone or by e-mail and delete the material from any computer. 
> Thank you for your cooperation."
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 
> 



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




RE: Tomcat & MySQL Run On Read-Only Media ..(off-topic)

2002-07-15 Thread Turner, John


Here are two:

http://www.virtual-linux.org/
http://www.demolinux.org/

I've seen demoLinux...it was pretty cool.  Couldn't do much, but there's no
reason why you couldn't burn a custom CD with both the Linux distro and the
web application on it.

You'd not only have to setup a database in RAM, you'd also have to do your
logging in RAM, or turn your logging off, as well as tell tomcat to create
it's work directories in RAM.  Possible, I think, but certainly not trivial.

John Turner
[EMAIL PROTECTED]
http://www.aas.com

-Original Message-
From: David Goodenough [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 15, 2002 9:24 AM
To: Tomcat Users List
Subject: Re: Tomcat & MySQL Run On Read-Only Media ..


On Monday 15 July 2002 13:22, you wrote:
> On Mon, 2002-07-15 at 13:59, [EMAIL PROTECTED] wrote:
> > I am afraid it is not as as much easy as you think...
> >
> > 1) Will your customer agree to run these applications on their computer?
> > 2) What if they are not using a PC (Mac?) or if they are not using
> > Windows (Linux?)?

There is a project (I forget its name) which is building a version of Linux
designed to run on a CD.  Thus you do not have to make any assumptions about
what is on the PC.  You can lock this version down so that it does not even
look at their disk, and provided you use the VESA framebuffer you are more
or less guaranteed to get it to run on the screen.

I am sure that this would provide you a very good platform for such an
application.


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




RE: Tomcat & MySQL Run On Read-Only Media ..

2002-07-15 Thread andre . powroznik

A little bit off-topic, but if it is not a custom-made software and if it
targets a lot of not specific users, it cannot only rely on a particular
configuration (imo).

-Original Message-
From: Martin van den Bemt [mailto:[EMAIL PROTECTED]]
Sent: 15 July 2002 15:30
To: Tomcat Users List
Subject: RE: Tomcat & MySQL Run On Read-Only Media ..


Agreed, but only with custom made software.. At the most you can ask
your current customers to ask if they can agree to a certain solution,
but hey : he is asking what the solution might be!
Before he gets that answered customer contact is a big waste of time 

Mvgr,
Martin

On Mon, 2002-07-15 at 15:19, [EMAIL PROTECTED] wrote:
> Hello,
> 
> About the customers : they define the requirements.
> 
> Who does not meet their requirements, lose them (especially the big ones)...
> 
> Greetings,
> 
> André POWROZNIK
> 
> -Original Message-
> From: Martin van den Bemt [mailto:[EMAIL PROTECTED]]
> Sent: 15 July 2002 14:23
> To: Tomcat Users List
> Subject: RE: Tomcat & MySQL Run On Read-Only Media ..
> 
> 
> On Mon, 2002-07-15 at 13:59, [EMAIL PROTECTED] wrote:
> > I am afraid it is not as as much easy as you think...
> > 
> > 1) Will your customer agree to run these applications on their computer?
> > 2) What if they are not using a PC (Mac?) or if they are not using Windows 
>(Linux?)?
> Who cares.. If they order it, they have to..
> 
> > 3) To run JSP you need a JDK, not a JRE.
> 
> Wrong here.. Just if you want your jsp's to be dynamic.. Just precompile
> them..
> 
> > 4) If you copy JDK, Tomcat & MySQL files on the CD, will it work?
> >In order to run they need :
> >- DLLs in Windows system directories;
> >- keys in Windows registry;
> >- write access to some of their files...
> 
> Use hsqldb instead which has a memory database..
> 
> > 5) What about AUTOEXEC.BAT?
> >It will do nothing if you put it on a CD : it needs to be in C:\, and there is 
>already one there...
> ??
> > 6) What if your customers have problems running your CD?
> >Will you create a hotline ;-) ?
> 
> Not your problem I guess ;).. He was asking HOW not a project plan of
> things to resolve before hand..
> 
> 
> TIP: Search the archives (maybe a year ago or something) there was a big
> thread about it, which actually worked towards a solution.
> 
> 
> Mvgr,
> Martin
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 
>  DISCLAIMER  
> "This e-mail and any attachments thereto may contain information 
> which is confidential and/or protected by intellectual property 
> rights and are intended for the sole use of the recipient(s) named above. 
> Any use of the information contained herein (including, but not limited to, 
> total or partial reproduction, communication or distribution in any form) 
> by persons other than the designated recipient(s) is prohibited. 
> If you have received this e-mail in error, please notify the sender either 
> by telephone or by e-mail and delete the material from any computer. 
> Thank you for your cooperation."
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 
> 



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

 DISCLAIMER  
"This e-mail and any attachments thereto may contain information 
which is confidential and/or protected by intellectual property 
rights and are intended for the sole use of the recipient(s) named above.
Any use of the information contained herein (including, but not limited to, 
total or partial reproduction, communication or distribution in any form) 
by persons other than the designated recipient(s) is prohibited. 
If you have received this e-mail in error, please notify the sender either 
by telephone or by e-mail and delete the material from any computer. 
Thank you for your cooperation."


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




RE: Tomcat & MySQL Run On Read-Only Media ..

2002-07-15 Thread Martin van den Bemt

Agreed, but only with custom made software.. At the most you can ask
your current customers to ask if they can agree to a certain solution,
but hey : he is asking what the solution might be!
Before he gets that answered customer contact is a big waste of time 

Mvgr,
Martin

On Mon, 2002-07-15 at 15:19, [EMAIL PROTECTED] wrote:
> Hello,
> 
> About the customers : they define the requirements.
> 
> Who does not meet their requirements, lose them (especially the big ones)...
> 
> Greetings,
> 
> André POWROZNIK
> 
> -Original Message-
> From: Martin van den Bemt [mailto:[EMAIL PROTECTED]]
> Sent: 15 July 2002 14:23
> To: Tomcat Users List
> Subject: RE: Tomcat & MySQL Run On Read-Only Media ..
> 
> 
> On Mon, 2002-07-15 at 13:59, [EMAIL PROTECTED] wrote:
> > I am afraid it is not as as much easy as you think...
> > 
> > 1) Will your customer agree to run these applications on their computer?
> > 2) What if they are not using a PC (Mac?) or if they are not using Windows 
>(Linux?)?
> Who cares.. If they order it, they have to..
> 
> > 3) To run JSP you need a JDK, not a JRE.
> 
> Wrong here.. Just if you want your jsp's to be dynamic.. Just precompile
> them..
> 
> > 4) If you copy JDK, Tomcat & MySQL files on the CD, will it work?
> >In order to run they need :
> >- DLLs in Windows system directories;
> >- keys in Windows registry;
> >- write access to some of their files...
> 
> Use hsqldb instead which has a memory database..
> 
> > 5) What about AUTOEXEC.BAT?
> >It will do nothing if you put it on a CD : it needs to be in C:\, and there is 
>already one there...
> ??
> > 6) What if your customers have problems running your CD?
> >Will you create a hotline ;-) ?
> 
> Not your problem I guess ;).. He was asking HOW not a project plan of
> things to resolve before hand..
> 
> 
> TIP: Search the archives (maybe a year ago or something) there was a big
> thread about it, which actually worked towards a solution.
> 
> 
> Mvgr,
> Martin
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 
>  DISCLAIMER  
> "This e-mail and any attachments thereto may contain information 
> which is confidential and/or protected by intellectual property 
> rights and are intended for the sole use of the recipient(s) named above. 
> Any use of the information contained herein (including, but not limited to, 
> total or partial reproduction, communication or distribution in any form) 
> by persons other than the designated recipient(s) is prohibited. 
> If you have received this e-mail in error, please notify the sender either 
> by telephone or by e-mail and delete the material from any computer. 
> Thank you for your cooperation."
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 
> 



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




Re: Tomcat & MySQL Run On Read-Only Media ..

2002-07-15 Thread David Goodenough

On Monday 15 July 2002 13:22, you wrote:
> On Mon, 2002-07-15 at 13:59, [EMAIL PROTECTED] wrote:
> > I am afraid it is not as as much easy as you think...
> >
> > 1) Will your customer agree to run these applications on their computer?
> > 2) What if they are not using a PC (Mac?) or if they are not using
> > Windows (Linux?)?

There is a project (I forget its name) which is building a version of Linux
designed to run on a CD.  Thus you do not have to make any assumptions about
what is on the PC.  You can lock this version down so that it does not even
look at their disk, and provided you use the VESA framebuffer you are more
or less guaranteed to get it to run on the screen.

I am sure that this would provide you a very good platform for such an
application.

>
> Who cares.. If they order it, they have to..
>
> > 3) To run JSP you need a JDK, not a JRE.
>
> Wrong here.. Just if you want your jsp's to be dynamic.. Just precompile
> them..
>
> > 4) If you copy JDK, Tomcat & MySQL files on the CD, will it work?
> >In order to run they need :
> >- DLLs in Windows system directories;
> >- keys in Windows registry;
> >- write access to some of their files...
>
> Use hsqldb instead which has a memory database..
>
> > 5) What about AUTOEXEC.BAT?
> >It will do nothing if you put it on a CD : it needs to be in C:\, and
> > there is already one there...
>
> ??
>
> > 6) What if your customers have problems running your CD?
> >Will you create a hotline ;-) ?
>
> Not your problem I guess ;).. He was asking HOW not a project plan of
> things to resolve before hand..
>
>
> TIP: Search the archives (maybe a year ago or something) there was a big
> thread about it, which actually worked towards a solution.
>
>
> Mvgr,
> Martin

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




RE: Tomcat & MySQL Run On Read-Only Media ..

2002-07-15 Thread andre . powroznik

Hello,

About the customers : they define the requirements.

Who does not meet their requirements, lose them (especially the big ones)...

Greetings,

André POWROZNIK

-Original Message-
From: Martin van den Bemt [mailto:[EMAIL PROTECTED]]
Sent: 15 July 2002 14:23
To: Tomcat Users List
Subject: RE: Tomcat & MySQL Run On Read-Only Media ..


On Mon, 2002-07-15 at 13:59, [EMAIL PROTECTED] wrote:
> I am afraid it is not as as much easy as you think...
> 
> 1) Will your customer agree to run these applications on their computer?
> 2) What if they are not using a PC (Mac?) or if they are not using Windows (Linux?)?
Who cares.. If they order it, they have to..

> 3) To run JSP you need a JDK, not a JRE.

Wrong here.. Just if you want your jsp's to be dynamic.. Just precompile
them..

> 4) If you copy JDK, Tomcat & MySQL files on the CD, will it work?
>In order to run they need :
>- DLLs in Windows system directories;
>- keys in Windows registry;
>- write access to some of their files...

Use hsqldb instead which has a memory database..

> 5) What about AUTOEXEC.BAT?
>It will do nothing if you put it on a CD : it needs to be in C:\, and there is 
>already one there...
??
> 6) What if your customers have problems running your CD?
>Will you create a hotline ;-) ?

Not your problem I guess ;).. He was asking HOW not a project plan of
things to resolve before hand..


TIP: Search the archives (maybe a year ago or something) there was a big
thread about it, which actually worked towards a solution.


Mvgr,
Martin


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

 DISCLAIMER  
"This e-mail and any attachments thereto may contain information 
which is confidential and/or protected by intellectual property 
rights and are intended for the sole use of the recipient(s) named above. 
Any use of the information contained herein (including, but not limited to, 
total or partial reproduction, communication or distribution in any form) 
by persons other than the designated recipient(s) is prohibited. 
If you have received this e-mail in error, please notify the sender either 
by telephone or by e-mail and delete the material from any computer. 
Thank you for your cooperation."


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




Re: Tomcat 4.1 with Sun ONE IDE

2002-07-15 Thread Martin van den Bemt

Better ask on the netbeans.org site, since they wrote the module.. There
can be problems though with the included jars (xml parser etc..), so
they probably now how to do that..

Mvgr,
Martin

On Mon, 2002-07-15 at 14:58, Turner, John wrote:
> 
> Has anyone integrated tomcat 4.1.x with Sun's SunONE IDE (Forte for Java)?
> >From the work I've done this morning, it looks like SunONE only supports
> tomcat 4.0.x.  Before I switch to another IDE, I just wanted to see if that
> was true, or if I was missing something.
> 
> Thanks in advance for any help.
> 
> - John
> 
> 
> John Turner
> [EMAIL PROTECTED] | 248-488-3466
> Advertising Audit Service
> http://www.aas.com
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 
> 



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




Tomcat 4.1 with Sun ONE IDE

2002-07-15 Thread Turner, John


Has anyone integrated tomcat 4.1.x with Sun's SunONE IDE (Forte for Java)?
>From the work I've done this morning, it looks like SunONE only supports
tomcat 4.0.x.  Before I switch to another IDE, I just wanted to see if that
was true, or if I was missing something.

Thanks in advance for any help.

- John


John Turner
[EMAIL PROTECTED] | 248-488-3466
Advertising Audit Service
http://www.aas.com


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




forwarding through j_security_check

2002-07-15 Thread James Krygowski

Hi All-

I'm working on a web-app launcher.  The essential idea is to provide users
with a centralized, secure web portal from which they can launch other web
applications.  The other applications will reside in Tomcat servers
different from the portal Tomcat server.

Each application will be protected by standard J2EE security implemented
with j_security_check.  I'd like to be able to forward to applications and
automatically negotiate the j_security_check so that user's don't have to
log on once they've already presented their credentials to the portal
application (i.e. single sign-on).

Is it possible to formulate an href url that simultaneously specifies the
target resource and the credentials being passed to j_security_check?  I
note that in the packet sent in the j_security_check post, all the
information needed is present.  If the read the packet right, the Referrer
in the http header contains the information about the desired "protected"
resource.  Is this Referrer used by j_security_check to forward a request on
to the desired destination?  If so, is it possible to set up a servlet that
could manipulate the Referrer in the header, and redirect a request along to
an application in another Tomcat server, making it look like a post to
j_security_check, complete with referrer, j_username and j_password?

Any suggestions or comments are welcome and appreciated.

Thanks,

Jim



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




RE: Tomcat & MySQL Run On Read-Only Media ..

2002-07-15 Thread Martin van den Bemt

On Mon, 2002-07-15 at 13:59, [EMAIL PROTECTED] wrote:
> I am afraid it is not as as much easy as you think...
> 
> 1) Will your customer agree to run these applications on their computer?
> 2) What if they are not using a PC (Mac?) or if they are not using Windows (Linux?)?
Who cares.. If they order it, they have to..

> 3) To run JSP you need a JDK, not a JRE.

Wrong here.. Just if you want your jsp's to be dynamic.. Just precompile
them..

> 4) If you copy JDK, Tomcat & MySQL files on the CD, will it work?
>In order to run they need :
>- DLLs in Windows system directories;
>- keys in Windows registry;
>- write access to some of their files...

Use hsqldb instead which has a memory database..

> 5) What about AUTOEXEC.BAT?
>It will do nothing if you put it on a CD : it needs to be in C:\, and there is 
>already one there...
??
> 6) What if your customers have problems running your CD?
>Will you create a hotline ;-) ?

Not your problem I guess ;).. He was asking HOW not a project plan of
things to resolve before hand..


TIP: Search the archives (maybe a year ago or something) there was a big
thread about it, which actually worked towards a solution.


Mvgr,
Martin


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




RE: create a new port in tomcat

2002-07-15 Thread Shapira, Yoav

Howdy,

>actually what i want is to see to different web pages when i go
>www.xx.com and www.xx.com:85. (there will be two application
and
>when i go www.xxx.com index.html of first application will be shown
>and
>when i go www.xx.com:85 the other index.html will be shown.)

If those are all your requirements, you're better off simply creating
two separate tomcat instances.  One connector each, at the ports you
want.
One context each with the app you want.

If you need the two apps to talk on a level supported by tomcat, e.g.
single sign on or crossContext stuff, then it's back to one instance of
tomcat with some filtering and forwarding.

>filtering may be a good solution but can you give an example how to
make a
>filtering.

See here for a good intro to servlet filters:
http://www.javaworld.com/javaworld/jw-06-2001/jw-0622-filters.html

Yoav Shapira
Millennium ChemInformatics

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




Re: Tomcat & MySQL Run On Read-Only Media ..

2002-07-15 Thread Tim Funk

It sounds like the webapp is read only system (since it is going on a 
cd). If your UI is link based (no forms/sessions) - could you use a web 
sucker (like wget in recursive mode) and make a static copy of the site?

Otherwise - flash is great for things like this. (But it is reinventing 
the wheel)


[EMAIL PROTECTED] wrote:
> I am afraid it is not as as much easy as you think...
> 
> 1) Will your customer agree to run these applications on their computer?
> 2) What if they are not using a PC (Mac?) or if they are not using Windows (Linux?)?
> 3) To run JSP you need a JDK, not a JRE.
> 4) If you copy JDK, Tomcat & MySQL files on the CD, will it work?
>In order to run they need :
>- DLLs in Windows system directories;
>- keys in Windows registry;
>- write access to some of their files...
> 5) What about AUTOEXEC.BAT?
>It will do nothing if you put it on a CD : it needs to be in C:\, and there is 
>already one there...
> 6) What if your customers have problems running your CD?
>Will you create a hotline ;-) ?
> 
> And I did not yet spoke about some of these programs that may interfere with your 
>customers programs.
> 
> Greetings,
> 
> André POWROZNIK
> 
> -Original Message-
> From: Murat Buyukkal ([EMAIL PROTECTED])
> [mailto:[EMAIL PROTECTED]]
> Sent: 15 July 2002 13:44
> To: Tomcat Users List
> Subject: RE: Tomcat & MySQL Run On Read-Only Media ..
> 
> 
> User will not install anything. I will put pre-installed directories of JVM,
> Tomcat and MySQL on the CD with a batch file that runs them with !some!
> parameters. Everything is up automatically Imagine?
> 
> For example:
> 
> \JDK
> \JDK\bin
> ...
> \Tomcat
> \Tomcat\bin
> ...
> \MySQL
> \MySQL\bin
> 
> \DATA
> \webcontents
> 
> AUTORUN.BAT (for Windows machines) is at the root of the CD.
> tomcat\bin\tomcat --some-parameters
> mysql\bin\mysqld-nt --some-parameters-that-open-only-specified-ini-file
> 
> start \webcontent\StartMyAppUp.html... 
> 
> and so on
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 15, 2002 2:21 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Tomcat & MySQL Run On Read-Only Media ..
> 
> 
> I understood very well what he means.
> 
> I simply tell people will not be happy if they have to install or to run
> many programs to browse his CD...
> 
> My personal opinion is : as a customer, I would install (fear of viruses,
> lack of competences, lack of time...) a JVM, Tomcat & MySQL to browse a CD.
> 
> Would you?
> 
> Greetings,
> 
> André POWROZNIK
> 
> -Original Message-
> From: Mohammed Omar [mailto:[EMAIL PROTECTED]]
> Sent: 15 July 2002 23:16
> To: Tomcat Users List
> Subject: Re: Tomcat & MySQL Run On Read-Only Media ..
> 
> 
> The user will install them ,  the man means that the user will run tomcat
> and mysql services from the CD .
> You did not get what he means .
> 
> Thanks
> 
> - Original Message -
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, July 15, 2002 4:06 AM
> Subject: RE: Tomcat & MySQL Run On Read-Only Media ..
> 
> 
> I would put only static documents on the CD if I were you...
> 
> You won't look like professional if you ship a CD containing a JVM, Tomcat &
> MySQL to install.
> 
> Personally, I would not install it.
> 
> Greetings,
> 
> André POWROZNIK
> 
> -Original Message-
> From: Murat Buyukkal ([EMAIL PROTECTED])
> [mailto:[EMAIL PROTECTED]]
> Sent: 15 July 2002 10:29
> To: Tomcat-User@Jakarta. Apache. Org (E-mail)
> Subject: Tomcat & MySQL Run On Read-Only Media ..
> 
> 
> I have a web application containing Servlets & JSP pages and uses data on
> Oracle 9i Server. Data is like a product catalogue. I plan to periodically
> distribute this system (to people who do not have enough bandwidth to access
> to our LAN) on CDROM media which contains binaries of a JVM, Tomcat Server,
> Servlets & JSPs and MySQL Server running with special parameters and data
> dumped into MySQL from Oracle. Is there anyone who accomplished this task?
> 
>  DISCLAIMER 
> "This e-mail and any attachments thereto may contain information
> which is confidential and/or protected by intellectual property
> rights and are intended for the sole use of the recipient(s) named above.
> Any use of the information contained herein (including, but not limited to,
> total or partial reproduction, communication or distribution in any form)
> by persons other than the designated recipient(s) is prohibited.
> If you have received this e-mail in error, please notify the sender either
> by telephone or by e-mail and delete the material from any computer.
> Thank you for your cooperation."
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
>  DISCLAIMER  
> "This e-mail and any att

RE: Using Tomcat with IIS, Apache

2002-07-15 Thread Turner, John


Yes, you can use tomcat as a servlet engine for both IIS and Apache.

There are many resources available to help you with setup and configuration,
especially the archives of this list.

Here are a few more:
http://www.galatea.com/flashguides/index
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/index.html
http://www.cnr.berkeley.edu/~salazar/apache_tomcat.html

The list above is not comprehensive...there are other resources available,
those are just the links I have bookmarked.

HTH

John Turner
[EMAIL PROTECTED]
http://www.aas.com



-Original Message-
From: Hendra [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 15, 2002 8:09 AM
To: '[EMAIL PROTECTED]'
Subject: Using Tomcat with IIS, Apache



> Hi, I'm new to Tomcat
> 
> I use Tomcat 4.0.b7 on Windows NT/2000,
> Can I use tomcat as a servlet engine for IIS or Apache ?
> How can I do that ?
> Any help or a pointer to some more detailed help would be much
> appreciated.
> 
> Regards
> Hendra

--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




Re: create a new port in tomcat

2002-07-15 Thread Serdar BOZDAG

hi,
actually what i want is to see to different web pages when i go
www.xx.com and www.xx.com:85. (there will be two application and
when i go www.xxx.com index.html of first application will be shown  and
when i go www.xx.com:85 the other index.html will be shown.)

filtering may be a good solution but can you give an example how to make a
filtering.

thanks
serdar
- Original Message -
From: "Shapira, Yoav" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, July 15, 2002 2:50 PM
Subject: RE: create a new port in tomcat


Howdy,
Add a connector for the port you want.  Add a context element for the
webapp you want.  Restart server.  That's it ;)  All your contexts will
be accessible on all your connectors.

If you want a context that will be accessible only on a given port, one
possible option is to include a request filter in that context that
rejects all requests not coming from a given port.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Serdar BOZDAG [mailto:[EMAIL PROTECTED]]
>Sent: Saturday, July 13, 2002 7:30 AM
>To: tomcatGroup
>Subject: create a new port in tomcat
>
>hello,
>i need to open a new port and map a project (context) to this port. I
think
>i  will make some changes in connectors and contexts but i do not know
the
>exact solution
>
>please help me with an example
>
>thanks in advance..
>
>serdar


--
To unsubscribe, e-mail:

For additional commands, e-mail:





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




Help on Tomcat 4.0.4 configuration

2002-07-15 Thread Telesis Support - Bangalore

Hi all,

  Can anyone tell me the steps for tomcat 4.0.4 configuration.
  I have set the JAVA_HOME and CATALINA_HOME and start the tomcat.
  but, for tomcat 3.3.1, i had set classpath in tomcat.bat file..
  I have the doubt about classpath for tomcat 4.0.4. Can u please come with the steps 
for tomcat 4.0.4 configuration, including web.xml..
 there is also one more web.xml in conf folder, it seems, it is for global things.. 
little bit confusion.
Till now, i couldn't get any jsp page, even in the examples jsp page not working.
If anyone succeed in the tomcat 4.0.4 configuration, please let me know.. 

bye,
Murugan
 

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




Using Tomcat with IIS, Apache

2002-07-15 Thread Hendra


> Hi, I'm new to Tomcat
> 
> I use Tomcat 4.0.b7 on Windows NT/2000,
> Can I use tomcat as a servlet engine for IIS or Apache ?
> How can I do that ?
> Any help or a pointer to some more detailed help would be much
> appreciated.
> 
> Regards
> Hendra

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




RE: Tomcat & MySQL Run On Read-Only Media ..

2002-07-15 Thread andre . powroznik

I am afraid it is not as as much easy as you think...

1) Will your customer agree to run these applications on their computer?
2) What if they are not using a PC (Mac?) or if they are not using Windows (Linux?)?
3) To run JSP you need a JDK, not a JRE.
4) If you copy JDK, Tomcat & MySQL files on the CD, will it work?
   In order to run they need :
   - DLLs in Windows system directories;
   - keys in Windows registry;
   - write access to some of their files...
5) What about AUTOEXEC.BAT?
   It will do nothing if you put it on a CD : it needs to be in C:\, and there is 
already one there...
6) What if your customers have problems running your CD?
   Will you create a hotline ;-) ?

And I did not yet spoke about some of these programs that may interfere with your 
customers programs.

Greetings,

André POWROZNIK

-Original Message-
From: Murat Buyukkal ([EMAIL PROTECTED])
[mailto:[EMAIL PROTECTED]]
Sent: 15 July 2002 13:44
To: Tomcat Users List
Subject: RE: Tomcat & MySQL Run On Read-Only Media ..


User will not install anything. I will put pre-installed directories of JVM,
Tomcat and MySQL on the CD with a batch file that runs them with !some!
parameters. Everything is up automatically Imagine?

For example:

\JDK
\JDK\bin
...
\Tomcat
\Tomcat\bin
...
\MySQL
\MySQL\bin

\DATA
\webcontents

AUTORUN.BAT (for Windows machines) is at the root of the CD.
tomcat\bin\tomcat --some-parameters
mysql\bin\mysqld-nt --some-parameters-that-open-only-specified-ini-file

start \webcontent\StartMyAppUp.html... 

and so on

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 15, 2002 2:21 PM
To: [EMAIL PROTECTED]
Subject: RE: Tomcat & MySQL Run On Read-Only Media ..


I understood very well what he means.

I simply tell people will not be happy if they have to install or to run
many programs to browse his CD...

My personal opinion is : as a customer, I would install (fear of viruses,
lack of competences, lack of time...) a JVM, Tomcat & MySQL to browse a CD.

Would you?

Greetings,

André POWROZNIK

-Original Message-
From: Mohammed Omar [mailto:[EMAIL PROTECTED]]
Sent: 15 July 2002 23:16
To: Tomcat Users List
Subject: Re: Tomcat & MySQL Run On Read-Only Media ..


The user will install them ,  the man means that the user will run tomcat
and mysql services from the CD .
You did not get what he means .

Thanks

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 15, 2002 4:06 AM
Subject: RE: Tomcat & MySQL Run On Read-Only Media ..


I would put only static documents on the CD if I were you...

You won't look like professional if you ship a CD containing a JVM, Tomcat &
MySQL to install.

Personally, I would not install it.

Greetings,

André POWROZNIK

-Original Message-
From: Murat Buyukkal ([EMAIL PROTECTED])
[mailto:[EMAIL PROTECTED]]
Sent: 15 July 2002 10:29
To: Tomcat-User@Jakarta. Apache. Org (E-mail)
Subject: Tomcat & MySQL Run On Read-Only Media ..


I have a web application containing Servlets & JSP pages and uses data on
Oracle 9i Server. Data is like a product catalogue. I plan to periodically
distribute this system (to people who do not have enough bandwidth to access
to our LAN) on CDROM media which contains binaries of a JVM, Tomcat Server,
Servlets & JSPs and MySQL Server running with special parameters and data
dumped into MySQL from Oracle. Is there anyone who accomplished this task?

 DISCLAIMER 
"This e-mail and any attachments thereto may contain information
which is confidential and/or protected by intellectual property
rights and are intended for the sole use of the recipient(s) named above.
Any use of the information contained herein (including, but not limited to,
total or partial reproduction, communication or distribution in any form)
by persons other than the designated recipient(s) is prohibited.
If you have received this e-mail in error, please notify the sender either
by telephone or by e-mail and delete the material from any computer.
Thank you for your cooperation."


--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:

For additional commands, e-mail:


 DISCLAIMER  
"This e-mail and any attachments thereto may contain information 
which is confidential and/or protected by intellectual property 
rights and are intended for the sole use of the recipient(s) named above. 
Any use of the information contained herein (including, but not limited to, 
total or partial reproduction, communication or distribution in any form) 
by persons other than the designated recipient(s) is prohibited. 
If you have received this e-mail in error, please notify the sender either 
by telephone or by e-mail and delete the material from any computer. 
Thank you for your cooperation."


--
To unsubscribe, e-mail:


  1   2   >