.htaccess / access restriction

2003-06-04 Thread Henning Heil
Hi everybody!

I am wondering a bit how I can get a simple access control for a dir 
under tomcat.

I am talking about a dir directly under the root-context - is there 
something similar to .htaccess? Other possibilities?

Thanks for your help,

Henning



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


[HELP] installing oracle thin driver for tomcat

2003-04-04 Thread Henning Heil
Hello all!

I am really stuck installing the mentioned driver (or might sth else be 
wrong?). What I have done up to date:

- downloaded ojdbc14.jar form Oracle
- copied it into tomcat/common/lib directory
- set the classpath to point to the file
- restarted all the stuff (tomcat, apache)
- I use Tomcat 4.1.18 with j2sdk1.4.1_01
- we have Oracle 8.1.7 clients running on corresponding servers I think 
(unfortunatelly don't know the version for sure but the driver should 
work anyway?)

the code I use to get connected:

try {
//  DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
   Class.forName("oracle.jdbc.driver.OracleDriver"); 
}
catch(ClassNotFoundException ex)
{
 out.println("JDBC-Driver not found! " + ex);
}

//   _/\_ this still works

Connection oConnection = 
DriverManager.getConnection("jdbc:oracle:thin:@dbtest:1605:abcd", 
"myuser", "mypass");

>> crash boom bang . . . I'll attach the error-msg in the end

Can anyone more experienced see what happens?

Thanks for your help (and have a nice weekend!),

Henning



The error msg:

javax.servlet.ServletException: java/sql/Savepoint
at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:471)
at org.apache.jsp.tasks$jsp._jspService(tasks$jsp.java:128)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:683)
at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:431)
at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:355)
at org.apache.jsp.a_0005findex$jsp._jspService(a_0005findex$jsp.java:131)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 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.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458)
at org.apache.

Re: Form Auth

2003-04-01 Thread Henning Heil
Hi Michael,

 Michael D. Kirkpatrick wrote on 01.04.2003 17:05 

I am not quite sure if this question is suitable for this mailing list.  If
not, please forgive me.
[snip]

So here is my question.  How can I capture the original query string or make
the query string in web.xml dynamic?
in general I would not recommend to set the string in the web.xml.
first part of your question: you can read out any parameter of a post or 
get string by request.getParameter(String parametername);
second part: there are multiple ways to manipulate the request 
parameters: java -> request.setAttribute(String attributename, String 
value); or by hidden fields in html forms or with select-fields which 
are submitted . . .

I would suggest:

read out the site the user is coming from with

String mysite = request.getParameter("site");

(of course you have to add this to the string somewhere on the original 
page)

write it to newly generated links:

out.println("passwordsubmitter.jsp?site=" + mysite);

or sth like this . . .

I am also looking for mailing lists for the following:
   Struts Questions
there's one on the apache.org site I think -> struts  . . .

   General Java Questions
   J2EE Questions
no mailing but extremely cool & helpful people there and also mailing 
mechanisms to keep track of your threads:
http://forums.java.sun.com/

If anyone can point me in the right direction, it would be greatly
appreciated.
Thanks in advance.
 

Have fun,

Henning

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


Re: [OT] destructive / negative / pathology testing *help, help!*

2003-03-27 Thread Henning Heil
In addition to my first post and to clear things up a bit:

I am a little step further at the moment, in general you can say 
negative testing is going beyond the borders of normal (load, stress, 
fail-over, UAT, etc.) testing. Some aspects of negative testing in my 
(just reached and incomplete) sense would now be:

- intercepting & faking post/get/http headers
- inserting SQL-statements into the applications forms to corrupt 
databases / tables / etc
- creating queries exceeding max execution time or max number of results 
can be handled
- manually creating / inserting datasets which make the application 
collapse when being read again (by one of the above ways?)
- reverse engineering of java clients, writing your own client and using 
the original client's server connection to do bad things similar to the 
above mentioned (this case would maybe definetly go beyond the point we 
would call 'hacking')
- and also manipulating any kind of software (the JVM?) to reach one or 
more of the following effects

this all leads / should lead the application to stop / shut down / break 
in not a planned way, e.g. without being able to write logs or showing 
readable error messages to the user, stopping the server or doing other 
unattractive things like killing all sessions or throwing all users out.

I mainly concentrate on webapps, but also have to take a look at 
java-clients.
I do not cover destroying hardware (disks ...) or things like that.

Does anyone have more 'phantasies' on that?

Thanks for your attention again,

Henning



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


[OT] destructive / negative / pathology testing *help, help!*

2003-03-27 Thread Henning Heil
Hi all together!

Meanwhile I found out that what I am looking for is best known as "negative testing", trying to break an application puckish, to make it fail more or less serious. I am really really in a hurry (and stuck at the moment) getting information on this topic (I wouldn't ask here if not).

Does anyone have web-links, pdf or other files and can provide those to me? Topics of interest might be a test strategy for "negative testing" or _even_more_ concrete samples of test cases! Most documents if found say that one can convert existing test cases to negative test cases BUT how?

Any help will be welcome - thanks a lot!

Rgds,

Henning Heil

P.S.: This must not necessarily go over the list, PM will be fine.
P.P.S.: If anyone is interested in I can provide the material I found so far




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


Re: Re-post: Tomcat 4.1.18 as Win2k/XP Service

2003-02-21 Thread Henning Heil

 Daniel Haynes wrote on 21.02.2003 16:49 


We have Tomcat and Oracle (both as services) running on a single box. Our
application uses poolman and works fine when starting Tomcat on a manual
basis, but on a re-boot Oracle is not ready by the time the application
attempts to make its connections. The resulting error leaves
Tomcat/application in an unrecoverable state.

What is the easiest way to delay the Tomcat startup (by say a minute) on
re-boot. The Tomcat service uses 'tomcat.exe' which I think is created on
the install. We thought of adding a hacked delay to startup.bat but changing
the service to use startup.bat didn't seem to work at all. (Win2k service
dependencies don't work in the sense that that the Tomcat service only
depends on the starting of the Oracle service, and does not wait until
Oracle is fully initialised)

Any ideas ?


yes, but highly speculative:

get wincron (http://www.wincron.com/), autostart it on system startup, 
try to make wincron do what you desire. I think we have sth like this on 
a 'not that business critical' server, maybe it might work for you.

good luck,

Henning

 

Daniel Haynes

Rule Financial
30 Cannon Street
London EC4M 6YN
   


 




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




Re: Taglibs are not interpreted with Tomcat 4.1.18

2003-02-13 Thread Henning Heil
Hello Thorsten, List,

I am far away form being a pro with this but it seems to me I have the 
same problem with an out of the box app. It's only a beta but all 
concerning taglibs seems fine within the app (it's running for other 
people on other tomcat versions) and on the other hand the taglibs just 
can not be found by tomcat 4.1.18.

three possible conclusions:

a) there is an error with the tomcat versions 4.1.18/19 (tested it with 
.19 also)
b) it's a more general error in our configurations
c) sth else

Maybe you could think about b) At the moment I have no time to do more 
research on this, if you can find out sth it would be nice if you'd post 
it here.

Cherio,

Henning



THG wrote, On 2/13/2003 10:22 AM:

On Wed, 12 Feb 2003 18:22:26 

sorry, i meant
"/WEB-INF/classes/org/sourcepark/taglibs/kato/db_dropdown.class"
and not
"/WEB-INF/classes/org.sourcepark.taglibs.kato.db_dropdown.class".

It's already there... with Tomcat 3.2.1 there are no problems,
but with Tomcat 4.1.18, the taglibs are not interpreted.
It seems to me, that the tld's are not parsed or could be found?!

Thorsten



Sean Dockery wrote:
 

Your actual tag class implementation should be located in...

/WEB-INF/classes/org/sourcepark/taglibs/kato/db_dropdown.class

...which is very different from your...

/WEB-INF/classes/org.sourcepark.taglibs.kato.db_dropdown.class

This also means that the first line in your db_dropdown.java source file
must be...

package org.sourcepark.taglibs.kato;

...and your source file must be recompiled (and copied to
/WEB-INF/classes/org/.../db_dropdown.class)

Let me know if this helps.

- Original Message -
From: "THG" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, February 12, 2003 16:50
Subject: Re: Taglibs are not interpreted with Tomcat 4.1.18


   

On Wed, 12 Feb 2003 13:13:09
Sean Dockery wrote:
 

Uh, no.  tagclass is not defined anywhere in your original message.  You
omitted it.


what did you put in here?

   



 

1.1//EN"
   

"http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd";>


   1.0
   1.1
   kato
   /WEB-INF/katolib.tld
   
   db_dropdown
 

org.sourcepark.taglibs.kato.db_dropdown
   

tagdependent
   ...
   
   


the "tagclass" (for example) exists under
 

"/WEB-INF/classes/org.sourcepark.taglibs.kato.db_dropdown.class"
   

 




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




Re: Remote Restart Tomcat 4.1.8

2003-01-30 Thread Henning Heil
haytham,

it's a question of 'how remote you are' and the OSes you're using, 
solutions for win:

a) install a terminal - server - client constellation (should work for 
other OSes too) or
b) get VNC from AT&T Research labs, that's fun ! 
(http://www.uk.research.att.com/vnc)

cheers,

henning


Haytham Samad wrote:

Is it possible to restart or shutdown/start Tomcat remotely?

Thanks

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


 





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




Re: custmize http error - page not found

2003-01-30 Thread Henning Heil
try:

   
   404
   /your_custom_404_error_page_here.html
   

in your web.xml file just after the welcome-file-list.

---

it's not my configuration, copied that from the list-archieve. please look there before posting here nexttime.

rgds,

henning






joe wrote:


hi all!

is it possible to set a customized http 404 error page?
it would be nice to have one in the same look and feel of my application.

thanx,
joe


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





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




Re: bypass form login page

2003-01-29 Thread Henning Heil
maybe:

- recognize user already registered (cookie?)
- start a session
- add auth=yes or sth like that to the sessions-params
- foward to the desired page

rgds,

henning


Maxime Colas des Francs wrote:


Hi,

I build an application with a "private zone" (protected by a 
FORM-LOGIN page).

Is there a method to redirect automaticly a user in the "private zone" 
(after his inscription for exemple),
without display the form-login-page ?

(like a POST to j_security_check ...)


Thks





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




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




Re: AW: [OT] jspMyAdmin

2003-01-29 Thread Henning Heil
Power-Netz (Schwarz) wrote:


org.apache.jasper.JasperException:
/myadmin/jspmyadmin/index.jsp(16,0) This absolute uri
(http://jakarta.apache.org/taglibs/i18n-1.0) cannot be resolved
in either web.xml or the jar files deployed with this application
	at
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErr
orHandler.java:94)


I looked up the web.xml, seems correct. did you change yours? what do
you think?
   


nothing changed there... I got mine to run by jaring the WEB-INF/classes and
put it to /lib/common/

It looks nice :-)

But i get NullPointerexceptions when i try to the table properties..



o.k., I jared the classes dir, where exactly did you put the file and 
what was it's name?

the NullPointerException maybe results from a missing config-file or sth 
like that . . . ?

Henning


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



Re: MySQL Hell

2003-01-29 Thread Henning Heil
Erik,

a.f.a.i.k. the driver has to be added to the classpath (I did it like 
that and it works fine.)

rgds,

Henning


Erik Price wrote:



Jacob Kjome wrote:


Hello Mehdi,

If you are using DBCP connection pooling, your driver *must* exist in
CATALINA_HOME/common/lib. This is because the DBCP libraries exist in
common/lib and the fact that classes from common/lib do not have
access to the child classloader in WEB-INF/lib. However, your classes
in WEB-INF/lib *does* have access to the parent classloader in
common/lib.

So, put it in common/lib and it should work.

dont' forget to add ?autoReconnect=true to your connection url config
for MySQL.



After reading this a few days ago, I decided to ask my sysadmin to 
move my mysql-connector-java-2.0.14-bin.jar file from my webapp's 
WEB-INF/lib to $CATALINA_HOME/common/lib, and he did. After we 
restarted Tomcat, my webapp wouldn't work, so, to confirm that it 
wasn't an application-level problem, I put the 
mysql-connector-java-2.0.14-bin.jar file back in WEB-INF/lib (of my 
webapp). The driver still can't be found for some reason.

Is there something that I'm supposed to do to "register" the driver? 
Does it change the JDBC url if you move it to common/lib for some reason?


Erik






Jake

Wednesday, January 22, 2003, 9:13:39 AM, you wrote:


MNbc> Hello all,

MNbc> i have been breaking my brain trying to get connection pooling, 
using
MNbc> Tomcat 4.1.12's build in dbcp, with mySQL 3.23.

MNbc> I have followed the instructions on the how this should be 
done, and I am
MNbc> getting an exception when I try to get a connection .. (like 
many other
MNbc> people it seems).. If anyone has solved this problem.. or has a 
link to a
MNbc> forum where this problem is answered please let me know..

MNbc> I have downloaded mysql-connector-java-2.0.14.zip

MNbc> I unzipped it and copied :
MNbc> * the contents of WEB-INF/lib to my lib folder
MNbc> * contents of com to my WEB-INF/classes folder
MNbc> * contents of org to my WEB-INF/classes folder (this *does* 
contain
MNbc> org.gjt.mm.mysql.Driver)

MNbc> This does not work. My jsp test code follows, and the Exception 
occurs on
MNbc> getConnection()...

MNbc> <%@ page language="java" import="java.sql.*, javax.sql.*, 
javax.naming.*"
MNbc> errorPage="error.jsp" %>

MNbc> <%
MNbc> Context initContext = new InitialContext();
MNbc> Context envContext = 
(Context)initContext.lookup("java:/comp/env");
MNbc> DataSource ds = (DataSource)envContext.lookup("jdbc/mehdi");
MNbc> Connection conn = ds.getConnection();

%>>

MNbc> Exception is

MNbc> java.sql.SQLException: Cannot load JDBC driver class
MNbc> 'org.gjt.mm.mysql.Driver'

MNbc> SERVER.XML

MNbc> 

MNbc> 
MNbc> prefix="localhost_DBTest_log." suffix=".txt"
MNbc> timestamp="true"/>

MNbc> 
MNbc> auth="Container"
MNbc> type="javax.sql.DataSource"/>

MNbc> 
MNbc> 
MNbc> factory
MNbc> org.apache.commons.dbcp.BasicDataSourceFactory
MNbc> 

MNbc> 
MNbc> 
MNbc> maxActive
MNbc> 100
MNbc> 

MNbc> 
MNbc> 
MNbc> maxIdle
MNbc> 30
MNbc> 

MNbc> 
MNbc> 
MNbc> maxWait
MNbc> 1
MNbc> 

MNbc> 
MNbc> 
MNbc> username
MNbc> mehdi
MNbc> 
MNbc> 
MNbc> password
MNbc> mypass
MNbc> 

MNbc> 
MNbc> 
MNbc> driverClassName
MNbc> org.gjt.mm.mysql.Driver
MNbc> 

MNbc> 
MNbc> 
MNbc> url
MNbc> 
jdbc:mysql://localhost:3306/mehdi?autoReconnect=true
MNbc> 
MNbc> 

MNbc> 


MNbc> running out of time, and hair.

MNbc> Thanks,

MNbc> Med




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

MNbc> For additional commands, e-mail: 






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






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




Re: [OT] jspMyAdmin

2003-01-29 Thread Henning Heil
mmmh, Peter, copied the files to common/lib and restarted tomcat, the 
error still remains:

org.apache.jasper.JasperException: /myadmin/jspmyadmin/index.jsp(16,0) This absolute uri (http://jakarta.apache.org/taglibs/i18n-1.0) cannot be resolved in either web.xml or the jar files deployed with this application
	at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:94)


I looked up the web.xml, seems correct. did you change yours? what do 
you think?

btw: you also have v0.6 i assume . . .

rgds,

Henning



Power-Netz (Schwarz) wrote:

 

-Ursprungliche Nachricht-
Von: Henning Heil [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 28. Januar 2003 21:50
An: Tomcat Users List
Betreff: [OT] jspMyAdmin


Good evening!

(or good-"whatever daytime you may have" :-))

I just found an older version (0.6) of this tiny little app, google
can't find anything newer about it - does anyone more? Is the project
stopped or renamed? Continued by sb else?

I recieve an 500 when I start it, a taglib specified in the web.xml is
not found although it's right in its place . . . mmmh, again a
misconfiguration of my tomcat?
   


Download the two taglibs and copy the jar's to tomcat/lib/common/ , restart
Tomcat.

and if if you fix the dam exception :

  The exception was: java.util.MissingResourceException: Can't find bundle
for base name com.jspmyadmin.languages.english, locale de_DE
  The exception class was : class java.util.MissingResourceException

let me know :-)



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




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




[OT] jspMyAdmin

2003-01-28 Thread Henning Heil
Good evening!

(or good-"whatever daytime you may have" :-))

I just found an older version (0.6) of this tiny little app, google 
can't find anything newer about it - does anyone more? Is the project 
stopped or renamed? Continued by sb else?

I recieve an 500 when I start it, a taglib specified in the web.xml is 
not found although it's right in its place . . . mmmh, again a 
misconfiguration of my tomcat?

Regards,

Henning


P.S. I know these are two different questions in one thread, an answer 
to one would be o.k.!


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



Re: Serving files from the Apache docroot

2003-01-27 Thread Henning Heil

Mike Bachrynowski wrote:


[...]

My IT Operations colleagues who have a more detailed knowledge of
configuring Apache than I have suggest that if Tomcat is not configured
as stand-alone and MIME type support on Tomcat for all except jsp, xml
and xslt is removed then all should work OK.

Perhaps this is a "development" non issue because in production we would
only run Tomcat behind Apache2 and never as stand-alonetherefore the
problem would not occur.

Mike



that sounds interesting to me, I don't need tomcat as http on port 8080, 
does anyone know how the idea can be realized?

Henning




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



Re: Serving files from the Apache docroot

2003-01-27 Thread Henning Heil
Hi Peter,

I had and have the same problem - and didn't find a solution yet. A more 
or less good workaround I discussed with (or better was a suggestion by) 
Mike Bachrynowski (who is also member on the list) could be to 
completely mirror the apache docroot to the tomcat docroot. This in my 
eyes is 'a little' waste of disk space and an alternative I though about 
is, to set the tomcat docroot to the same local dir the apache's points 
to - but I haven't tested this, maybe causes bad bad problems.

As far as I understood the mayor cause for all this is, that jk2 
developers due to performance reasons don' t want to send back requests 
(for images, .js, .css ...) to the apache and - what you and Mike and I 
want to do becomes impossible. <-- LIST: is this right (I'm not really 
sure whether I should believe it)?

What I'm asking myself: is there anybody on the list who is really 
highly experienced in jk2 coniguration?

Well, over all, hope this helps a bit,

Henning



Peter Flynn wrote:

I just brought up Tomcat in order to serve a handful of .jsp files
which are in the Apache document root.

Right now of course, when Apache hands off the request to Tomcat
for /foo.jsp, Tomcat comes back with a 404 because it can't find
the file:

> HTTP Status 404 - /foo.jsp
>
> type Status report
>
> message /foo.jsp
>
> description The requested resource (/foo.jsp) is not available.
> Apache Tomcat/4.1.18

Where do I tell Tomcat to look for this file in (eg) /var/www/html?
Where is it currently looking?

///Peter


--
To unsubscribe, e-mail: 

For additional commands, e-mail: 





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




[again] workers2.properties

2003-01-24 Thread Henning Heil
Hi there!

mod_jk2 again, I'm getting nuts with this! (is there anybody who masters 
this?) Well, I'm really stuck, no way back or forward.

What I basicallay wanna do at the moment is, to use Tomcat just the way 
I use the php-module:
whenever a jsp-File is requested, just process the java-part, get all 
the rest (images, css, js ...) from the apache - but how can I realize 
that? I tested 50 possible combinations but if you're dummy like me 
you'll never find the way out, it's horrible.

I think it might be just a few lines, maybe you can help. (I attached
httpd.conf and workers2.properties)

add. info: installed everything on a NT4-Server, c:\playground is the
root dir, apache 2.0.43, tomcat 4.1.18, mod_jk2-2.0.43.dll, it's 
reachable over the dns by the internal domain playground.leasing.de

How can I learn to understand what's up instead of copying again and
again? The offical docs seem not enough for me.

Thanks for your help (can anyone? hope so!),

Henning


#
# Based upon the NCSA server configuration files originally by Rob McCool.
#
# This is the main Apache server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See http://httpd.apache.org/docs-2.0/> for detailed information about
# the directives.
#
# Do NOT simply read the instructions in here without understanding
# what they do.  They're here only as hints or reminders.  If you are unsure
# consult the online docs. You have been warned.  
#
# The configuration directives are grouped into three basic sections:
#  1. Directives that control the operation of the Apache server process as a
# whole (the 'global environment').
#  2. Directives that define the parameters of the 'main' or 'default' server,
# which responds to requests that aren't handled by a virtual host.
# These directives also provide default values for the settings
# of all virtual hosts.
#  3. Settings for virtual hosts, which allow Web requests to be sent to
# different IP addresses or hostnames and have them handled by the
# same Apache server process.
#
# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with "/" (or "drive:/" for Win32), the
# server will use that explicit path.  If the filenames do *not* begin
# with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
# with ServerRoot set to "C:/playground/Apache2" will be interpreted by the
# server as "C:/playground/Apache2/logs/foo.log".
#
# NOTE: Where filenames are specified, you must use forward slashes
# instead of backslashes (e.g., "c:/apache" instead of "c:\apache").
# If a drive letter is omitted, the drive on which Apache.exe is located
# will be used by default.  It is recommended that you always supply
# an explicit drive letter in absolute paths, however, to avoid
# confusion.
#

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

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

#
# ScoreBoardFile: File used to store internal server process information.
# If unspecified (the default), the scoreboard will be stored in an
# anonymous shared memory segment, and will be unavailable to third-party
# applications.
# If specified, ensure that no two invocations of Apache share the same
# scoreboard file. The scoreboard file MUST BE STORED ON A LOCAL DISK.
#
#ScoreBoardFile logs/apache_runtime_status

#
# PidFile: The file in which the server should record its process
# identification number when it starts.
#
PidFile logs/httpd.pid

#
# Timeout: The number of seconds before receives and sends time out.
#
Timeout 300

#
# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to "Off" to deactivate.
#
KeepAlive On

#
# MaxKeepAliveRequests: The maximum number of requests to allow
# during a persistent connection. Set to 0 to allow an unlimited amount.
# We recommend you leave this number high, for maximum performance.
#
MaxKeepAliveRequests 100

#
# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same client on the same connection.
#
KeepAliveTimeout 15

##
## Server-Pool Size Regulation (MPM specific)
## 

# WinNT MPM
# ThreadsPerChild: constant number of worker threads in the server process
# MaxRequestsPerChild: maximum  number of requests a server process serves

ThreadsPerChild 250
MaxRequestsPerChild  0



Re: Hello list / workers2.properties

2003-01-23 Thread Henning Heil
wohh, it seems this forwards any incoming request to the tomcat . . 
. could you post your full workers2.properties, maybe they're diffrent 
to mine!

thanks,

henning

Mike Bachrynowski wrote:

This may be inelegant but it works for me.

# Map all jsp 
[uri:/*.jsp]
[uri:/*/*.jsp]
[uri:/*/*/*.jsp]
[uri:/*/*/*/*.jsp]
[uri:/*/*/*/*/*.jsp]
info=Map all jsp

I do not nest deeper than 5.

Regards

Mike

-Original Message-
From: Henning Heil [mailto:[EMAIL PROTECTED]] 
Sent: 23 January 2003 11:34
To: [EMAIL PROTECTED]
Subject: Hello list / workers2.properties


Hello list,

my name is Henning and I'm new here.

Starting to use Apache and Tomcat together I made the jk2-Module work 
for me but I'm not satisfied yet:

How can I set the workers2.properties file to deliver all files ending 
*.jsp to the Tomcat-engine?

Yes, I could read the documentation, I tried . . .but I'm new to all 
this stuff and it takes me an hour to understand a single line . . . so 
. . .

Thanks for your help,

Henning



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


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

 



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




Hello list / workers2.properties

2003-01-23 Thread Henning Heil
Hello list,

my name is Henning and I'm new here.

Starting to use Apache and Tomcat together I made the jk2-Module work 
for me but I'm not satisfied yet:

How can I set the workers2.properties file to deliver all files ending 
*.jsp to the Tomcat-engine?

Yes, I could read the documentation, I tried . . .but I'm new to all 
this stuff and it takes me an hour to understand a single line . . . so 
. . .

Thanks for your help,

Henning



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