enhydra

2002-08-03 Thread eric

Greetings!

I've been looking for a web host that provides JSP along with Beans.

I came across one that mentioned it uses Enhydra.  I've looked at the Enhydra 
web page and was left wondering if Enhydra is a replacement  Servlet engine 
for Tomcat?  Or, does it need Tomcat to run?

Thanks,
Eric

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




Re: enhydra

2002-08-03 Thread Jacob Kjome

Enhydra uses Tomcat internally.  the version of tomcat is very old, 
though.  It depends on what version of Enhydra the ISP is using.  If it is 
the open source one, then it is likely very old indeed.  If it is the now 
defunct Lutris Enhydra EAS, then it would be something like Tomcat-3.2.x.

There is a new project called Aonyx which will be Enhydra 5.0 when 
released.  The current version is 5.0beta2.
http://sourceforge.net/projects/webdocwf


If you want to use Enhydra, that is your best bet since it is actually an 
active project.  Not sure what version of Tomcat it uses internally, though.

Jake


At 09:47 AM 8/3/2002 +0200, you wrote:
Greetings!

I've been looking for a web host that provides JSP along with Beans.

I came across one that mentioned it uses Enhydra.  I've looked at the Enhydra
web page and was left wondering if Enhydra is a replacement  Servlet engine
for Tomcat?  Or, does it need Tomcat to run?

Thanks,
Eric

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



Re: enhydra

2002-08-03 Thread eric

Jake,

Thanks for the info.  I'll download Enhydra and play with it.

They are using Enhydra 3.1.

Eric


On Saturday 03 August 2002 09:59, Jacob Kjome wrote:
 Enhydra uses Tomcat internally.  the version of tomcat is very old,
 though.  It depends on what version of Enhydra the ISP is using.  If it is
 the open source one, then it is likely very old indeed.  If it is the now
 defunct Lutris Enhydra EAS, then it would be something like Tomcat-3.2.x.

 There is a new project called Aonyx which will be Enhydra 5.0 when
 released.  The current version is 5.0beta2.
 http://sourceforge.net/projects/webdocwf


 If you want to use Enhydra, that is your best bet since it is actually an
 active project.  Not sure what version of Tomcat it uses internally,
 though.

 Jake

 At 09:47 AM 8/3/2002 +0200, you wrote:
 Greetings!
 
 I've been looking for a web host that provides JSP along with Beans.
 
 I came across one that mentioned it uses Enhydra.  I've looked at the
  Enhydra web page and was left wondering if Enhydra is a replacement 
  Servlet engine for Tomcat?  Or, does it need Tomcat to run?
 
 Thanks,
 Eric
 
 --
 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]




Re: mod_webapp or perhaps apache question

2002-08-03 Thread Markus Bengts

On Fri, 2 Aug 2002, Milt Epstein wrote:

 On Sat, 3 Aug 2002, Markus Bengts wrote:

  On Fri, 2 Aug 2002 [EMAIL PROTECTED] wrote:
 
   If webmail isn't a directory under qvdintra, then I don't see a
   problem.
 
  webmail is not under qvdintra. It is possible to use it like this with
  servlet/ or _/ or some other extra string in the url-path to every
  servlet. I just don't want to have something extra in the path to
  servlets.

 I may be wrong, but I'm not sure you're going to be able to do that.
 Because when you give WebAppDeploy the URL pattern /, you're
 effectively telling it that Apache should pass everything to Tomcat.
 I'm not sure you can make it do everything but this one thing.

Ok. Thanks. I thought there would be a way to configure apache to do:

  if ( path starts with /webmail ) use Alias;
  else use WebAppDeploy;

  
   I want to have:
  
 WebAppDeployqvdintra defConn/
  
   But still I need to have apache serving urls that have /webmail in the
   beginning of the path. (The webmail application is written in php.)
  


  Markus



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




Re: UserDir

2002-08-03 Thread Neil Zanella


I am no expert on tomcat but as far as I know the tomcat server needs to
be restarted each time the contents of one of the web application source
code files changes. If something like UserDir really can be set so that
$CATALINA_HOME is different for every user, then there should probably
be a cron job on the system to restart the server at regular time
intervals or something like that.

And by the way, what exactly did you do to reconfigure your tomcat
installation?

Regards,

Neil

On Fri, 2 Aug 2002, Adrian Montero wrote:

 
 I reconfigured my jakarta to handle user dir files. Everything works 
 fine and dandy like in $CATALINA_HOME/webapps. However when I try to run 
 a servlet (only in the ~userdir) I get the download dialog from my web 
 browser. I have tried to copy $CATALINA_HOME/webapps/examples to my 
 userdir and indeed jsps work but not servlets it doesnt even find them. 
 Anyone got any ideas?
 
 Regards
 
 
 
 --
 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]




Servlet directory

2002-08-03 Thread Daliso Zuze

I have put some servlet classes in my web applications classes directory, however when 
I try to access it via the url http://localhost:8080/myapp/servlet/myservlet it does 
not work. It seems to only work when I put the classes in the default ROOT web app and 
access it via http://localhost:8080/servlet/myservlet.

Is there a way of configuring tomcat to make it work from the first url???



how to deny directory listing

2002-08-03 Thread Serdar BOZDA

hi,
I want to deny users to see the content of a folder under webapps\ROOT.

What should I do?

Thanks,

Serdar



Re: Standalone Tomcat on port 80 without root privileges

2002-08-03 Thread Leos Urban

Seriously, why not use Apache with a connector...
Because there is many problems.

I tested it. I has standard installation of Tomcat and Webapps from RPM
(full edition). I dont know how to generate jkconf data as described in
HOWTO. There is use parameter jkconf when start tomcat. Where? I tested
add this parameter to /etc/init.d/tomcat4 (= wrong parametr), to dtomcat4
(=no Class found),  to tomcat4.conf (= nothing was generated).

I looked for mod_webapp - it looks easily than mod_jk - but on Jakarta
Apache website I didnt found any mod_webapp package (only empty directory
tree) and pointer to CVS, where is only source code...

Leos


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




Re: help with server.xml

2002-08-03 Thread Michael E. Locasto

Mona,

I'm assuming you are running Tomcat 4.04 standalone, on :8080. Not quite
sure
exactly what the issue is here, but I have some suggestions:

Just for fun, try a different browser to see if the problem is client side.

Does the user Tomcat is installed as have permissions to read those
directories '/scratch/project/telescience'?

Also, turn up your log levels (crank all those 'debug' attributes up to 99),
restart Tomcat, and look at your server log files and see what they say.
Post any errors here if you still have problems.

Regards,
Michael


- Original Message -
From: Mona Wong-Barnum [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, August 02, 2002 10:35 PM
Subject: help with server.xml



 Hi:

 I'm new to Tomcat and am trying to configure 4.0.4.  I modified
 server.xml appBase and docBase:

   Host name=localhost debug=0
   appBase=/scratch/project/telescience/webapps unpackWARs=true

   [...]

 !-- Tomcat Root Context --
 Context path= docBase=/scratch/project/telescience debug=0/

   /Host

   I have a index.html in the /scratch/project/telescience/ directory.
When
 I tried to access that page via the URL using Netscape, I keep getting:

   A network error occurred while Netscape was receiving data.
   (Network Error. I/O error)

   Try connecting again.

   What am I doing wrong?  I looked all over for an answer but having
found
 it so I decided to post to the list.

   All help is really appreciated.

 Sincerely,

 Mona

 ==
 Mona Wong-Barnum
 National Center for Microscopy and Imaging Research
 University of California, San Diego
 http://ncmir.ucsd.edu/

 The truth shall set you free, but first it will piss you off
 A Landmark instructor
 ==



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




Re: Servlet directory

2002-08-03 Thread Michael E. Locasto

And you've provided appropriate servelet and servlet-mapping entries in
your web.xml?

-Michael

- Original Message -
From: Daliso Zuze [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Saturday, August 03, 2002 4:51 AM
Subject: Servlet directory


I have put some servlet classes in my web applications classes directory,
however when I try to access it via the url
http://localhost:8080/myapp/servlet/myservlet it does not work. It seems to
only work when I put the classes in the default ROOT web app and access it
via http://localhost:8080/servlet/myservlet.

Is there a way of configuring tomcat to make it work from the first url???



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




nullpointer (on forward) in tomcat (both 331 332)

2002-08-03 Thread Jeff Boring

The following servlet code throws nullpointer (on forward) in tomcat
(both 3.3.1  3.3.2). Any ideas where to start looking?

Jeff W. Boring
[EMAIL PROTECTED]

-- code -
public void forwardToNextPage(String nextPage, HttpServletRequest req,
HttpServletResponse res) throws IOException, ServletException {

  System.out.println(*);
  System.out.println( REQ - + req.toString() );
  System.out.println(*);
  System.out.println(*);
  System.out.println( RES - + res.toString() );
  System.out.println(*);

  ServletContext sc = null;
  RequestDispatcher rd = null;

  try {sc = getServletContext();}
  catch (NullPointerException np) {
System.out.println(* NullPointerException on
getServletContext );
np.printStackTrace();
  }
  try {rd = sc.getRequestDispatcher(nextPage); }
  catch (NullPointerException np) {
 System.out.println(* NullPointerException on
getRequestDispatcher );
 np.printStackTrace();
   }
   try {rd.forward(req, res);}
   catch (NullPointerException np) {
 System.out.println(* NullPointerException on
forward );
 np.printStackTrace();
   }

--- console --

* NullPointerException on forward

java.lang.NullPointerException
at
com.ibm.eadtraining.servlet.EADTrainingController.forwardToNextPage(E
ADTrainingController.java:89)
at
com.ibm.eadtraining.servlet.EADTrainingController.submitLogin(EADTrai
ningController.java:212)
at
com.ibm.eadtraining.servlet.EADTrainingController.doPost(EADTrainingC
ontroller.java:46)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at
org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java
:570)
at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
at org.apache.tomcat.core.Handler.service(Handler.java:235)
at
org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:4
81)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.
java:917)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:833
)
at
org.apache.tomcat.modules.server.Http10Interceptor.processConnection(
Http10Interceptor.java:176)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
:508)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:533)
at java.lang.Thread.run(Thread.java:479)


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




Re: nullpointer (on forward) in tomcat (both 331 332)

2002-08-03 Thread Michael E. Locasto

Jeff,

The Javadocs for ServletContext.getRequestDispatcher( String pathname ):

The pathname must begin with a / and is interpreted as relative to the
current context root. Use getContext to obtain a RequestDispatcher for
resources in foreign contexts. This method returns null if the
ServletContext cannot return a RequestDispatcher.

Also, add a test here:

   try {rd = sc.getRequestDispatcher(nextPage);
  if( rd==null )
System.out.println( Rd is null. );
}
   catch (NullPointerException np) {
  System.out.println(* NullPointerException on
 getRequestDispatcher );
  np.printStackTrace();
}

Hope that helps...

Regards,
Michael


- Original Message -
From: Jeff Boring [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, August 03, 2002 9:01 AM
Subject: nullpointer (on forward) in tomcat (both 331  332)


 The following servlet code throws nullpointer (on forward) in tomcat
 (both 3.3.1  3.3.2). Any ideas where to start looking?

 Jeff W. Boring
 [EMAIL PROTECTED]

 -- code -
 public void forwardToNextPage(String nextPage, HttpServletRequest req,
 HttpServletResponse res) throws IOException, ServletException {

   System.out.println(*);
   System.out.println( REQ - + req.toString() );
   System.out.println(*);
   System.out.println(*);
   System.out.println( RES - + res.toString() );
   System.out.println(*);

   ServletContext sc = null;
   RequestDispatcher rd = null;

   try {sc = getServletContext();}
   catch (NullPointerException np) {
 System.out.println(* NullPointerException on
 getServletContext );
 np.printStackTrace();
   }
   try {rd = sc.getRequestDispatcher(nextPage); }
   catch (NullPointerException np) {
  System.out.println(* NullPointerException on
 getRequestDispatcher );
  np.printStackTrace();
}
try {rd.forward(req, res);}
catch (NullPointerException np) {
  System.out.println(* NullPointerException on
 forward );
  np.printStackTrace();
}

 --- console --

 * NullPointerException on forward
 
 java.lang.NullPointerException
 at
 com.ibm.eadtraining.servlet.EADTrainingController.forwardToNextPage(E
 ADTrainingController.java:89)
 at
 com.ibm.eadtraining.servlet.EADTrainingController.submitLogin(EADTrai
 ningController.java:212)
 at
 com.ibm.eadtraining.servlet.EADTrainingController.doPost(EADTrainingC
 ontroller.java:46)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java)
 at
 org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java
 :570)
 at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
 at org.apache.tomcat.core.Handler.service(Handler.java:235)
 at
 org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:4
 81)
 at
 org.apache.tomcat.core.ContextManager.internalService(ContextManager.
 java:917)
 at
 org.apache.tomcat.core.ContextManager.service(ContextManager.java:833
 )
 at
 org.apache.tomcat.modules.server.Http10Interceptor.processConnection(
 Http10Interceptor.java:176)
 at
 org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
 :508)
 at
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
 ool.java:533)
 at java.lang.Thread.run(Thread.java:479)


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




Apache-tomcat integration

2002-08-03 Thread Thomas Cherry

I am almost done configuring my site, but I have just a few more 
question (for now).  I am using ajp13 to connect tomcat 4 with apache 
1.3.  Apache is running on port 81 and I want to know if have to do 
anything different when configuring server.xml  as a result of my web 
site running on the non-standard port.

Also, in my  Service name=Tomcat-Apache tag block, there is no 
mention of ajp.  Is this ok?

Last, here is a few lines from my apache log:
[Sat Aug  3 09:21:36 2002] [notice] Apache-AdvancedExtranetServer/1.3.22 
(Mandrake Linux/1.1mdk) mod_jk mod_perl/1.26 configured --
  resuming normal operations
[Sat Aug  3 09:21:36 2002] [notice] Accept mutex: sysvsem (Default: 
sysvsem)
[Sat Aug  3 09:21:40 2002] [error] [client 192.168.1.1] File does not 
exist: /var/www/html/examples/jsp/dates/date.jsp

I assume that this means that apache is loading mod_jk, but why can it 
not find the examples directory?


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




Re: nullpointer (on forward) in tomcat (both 331 332)

2002-08-03 Thread Jeff Boring

 Right you are - I'm used to an environment (VAJ, WSAD) where the '\' doesn't
 matter. Now I have to research how session is handled in Tomcat.

Jeff Boring



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




Re: Tomcat in a multiuser webhost environment

2002-08-03 Thread Hans Kaiser

Hi,

nobody knows how to solve it, or is it too simple for an answer?

best regards,
Hans

 Hello all!
 
 Is this list a closed one? I tried to post a message to the list, without
 being subscribed, but that failed (I think so, I couldn´t see the mail on
 the
 archives)
 
 I will go on directly to my problems:
 I am running an Apache 1.3.x and I have all my virtual hosts under
 /home/web/host[anyhostnaming]
 Now I need a servlet and a JSP Engine, therefore I want to use the Tomcat
 4.x. But my users should be able to define their own contexts for the
 tomcat.
 So my questions are:
 - how to configure the apache and tomcat to forward all JSP and servlet
 request from apache to tomcat.
 - how should I setup tomcat to make it possible, that only a defined list
 of
 users are able to use jsp/servlet?
 - how to setup tomcat or must I setup the apache (if forwarding the
 servlet/jsp request from apache to tomcat), that users are able to define
 their own
 contexts? Is it a security problem? I thought about something like a
 distributed web.xml in a defined location in the users home dirs.
 - Is it possible to limit the maximum used resources (load, memory )
 of
 tomcat?  Or even better per user basis?
 
 many thanks,
 and best regards,
 Hans
 
 -- 
 GMX - Die Kommunikationsplattform im Internet.
 http://www.gmx.net
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 

-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net


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




Re: how to deny directory listing

2002-08-03 Thread rsequeira


There are various ways to deny directory listing.

Valid for both Tomcat 3.x and Tomcat 4.x.x:
You could add a welcome file to your web.xml. Something like this:
welcome-file-list
welcome-fileindex.html/welcome-file
  /welcome-file-list
See conf/web.xml for further information.

Valid for Tomcat 3.x only:
Look for the StaticInterceptor defn. in your server.xml. Set the supress
property to true when no welcome file is present.

Valid for Tomcat 4.x.x+:
Edit the init-param listings for the default servlet. Change the param
value to false.

RS




   

  Serdar BOZDAÐ  

  serdarbozdag@sofTo:   tomcatGroup 
[EMAIL PROTECTED]
  thome.net   cc: 

   Subject:  how to deny directory listing 

  08/03/02 06:24 AM

  Please respond to

  Tomcat Users

  List

   

   





hi,
I want to deny users to see the content of a folder under webapps\ROOT.

What should I do?

Thanks,

Serdar






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




Re: Tomcat in a multiuser webhost environment

2002-08-03 Thread Glenn Nielsen

I have done alot of work with Apache 1.3/Tomcat 4.1.X setting up virtual hosting
in a web hosting environment.  Please see my attached document.

Regards,

Glenn

Hans Kaiser wrote:
 Hi,
 
 nobody knows how to solve it, or is it too simple for an answer?
 
 best regards,
 Hans
 
 
Hello all!

Is this list a closed one? I tried to post a message to the list, without
being subscribed, but that failed (I think so, I couldn´t see the mail on
the
archives)

I will go on directly to my problems:
I am running an Apache 1.3.x and I have all my virtual hosts under
/home/web/host[anyhostnaming]
Now I need a servlet and a JSP Engine, therefore I want to use the Tomcat
4.x. But my users should be able to define their own contexts for the
tomcat.
So my questions are:
- how to configure the apache and tomcat to forward all JSP and servlet
request from apache to tomcat.
- how should I setup tomcat to make it possible, that only a defined list
of
users are able to use jsp/servlet?
- how to setup tomcat or must I setup the apache (if forwarding the
servlet/jsp request from apache to tomcat), that users are able to define
their own
contexts? Is it a security problem? I thought about something like a
distributed web.xml in a defined location in the users home dirs.
- Is it possible to limit the maximum used resources (load, memory )
of
tomcat?  Or even better per user basis?

many thanks,
and best regards,
Hans

-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net


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

 




Web Hosting with Tomcat 4 and Apache

Overview


There are a number of configuration issues and security concerns
which must be addressed when setting up Apache and Tomcat 4 for
virtual hosting of customer sites in a web hosting environment.

The major conerns are:

1.  Delegating to untrusted customers maintenance of their applications
without compromising server security.

2.  Configuring Apache and Tomcat for virtual hosting.

3.  Surviving poorly written web applications installed by
customers.  This includes fault tolerance and identifying
which customer's web application is causing problems.

4.  Mimimize the amount of hand holding or config changes the
apache and tomcat system administrators have to make.

This is written based on my experiences setting up this type
of hosting environment on Sun Solaris hardware.  Some of this
will be specific to Solaris, but in general should work for
almost any flavor of Unix.

Unix accounts and groups


The user tomcat was created for running tomcat, it should
be created similar to the nobody account used for running
Apache.  The tomcat user is assigned to the group tomcat.
The tomcat user is a member of group user.

The group tomcat was created as the group the user tomcat
is assigned to.

The group user was created, this is the group customer
ftp accounts are assigned to.  The tomcat account is a
member of this group so that both customers and tomcat
can write files in directories assigned to group user.

Each customer has their own ftp account which is in group
user.

There is a webmaster administrator shell account.  This
account is for your virtual host administrator. The
webmaster account is assigned to group user and is also
a member of group tomcat.

Directory layout


The layout of directories is designed to make it as easy as
possible for customers to maintain their own web space content
and applications.

Here is an example of how I do it:

The customer is assigned an FTP account which has permission
to read their virtual host directory and write to a subset of
that.

For example, a customer may be assigned the following directory:

/export/home/www.customer.com root:other 755


Within that directory are sub directories which the customer
can read and/or write. Listed are the directory names, 
ownership, and mode.

www webmaster:user 2775
--

Apache document root directory.  Customer and tomcat can
both read/write directories and files.

logs root:other 755
---

Directory where apache access_log and error_log are placed.
We also rotate these logs weekly and use bzip2 to compress
any log files older than 5 weeks.  Log files less than 5
weeks old are left uncompressed so that they can be used
by web statistic software like Analog. Customer can read
files in this directory but not write files.

tomcat tomcat:tomcat 755


Directory used for the tomcat work and tomcat virtual host logs.
Only tomcat can write in this directory. Customer can read
files in this directory.

tomcat/work tomcat:tomcat 755
-

Tomcat work directory for virtual host. Only tomcat can write
files.  Customer can read files. This allows customer to review
java source files generated during a JSP 

Re: Tomcat in a multiuser webhost environment

2002-08-03 Thread rsequeira


Answers are intermixed.



   

  Hans Kaiser  

  [EMAIL PROTECTED] To:   Tomcat Users List   

[EMAIL PROTECTED]   

  08/03/02 09:52 AMcc: 

  Please respond toSubject:  Re: Tomcat in a multiuser 
webhost environment 
  Tomcat Users

  List

   

   





Hi,

nobody knows how to solve it, or is it too simple for an answer?

best regards,
Hans

 Hello all!

 Is this list a closed one? I tried to post a message to the list, without
 being subscribed, but that failed (I think so, I couldn´t see the mail on
 the
 archives)

 I will go on directly to my problems:
 I am running an Apache 1.3.x and I have all my virtual hosts under
 /home/web/host[anyhostnaming]
 Now I need a servlet and a JSP Engine, therefore I want to use the Tomcat
 4.x. But my users should be able to define their own contexts for the
 tomcat.
 So my questions are:
 - how to configure the apache and tomcat to forward all JSP and servlet
 request from apache to tomcat.
You could use mod_webapp or mod_jk. mod_jk gives you more control over what
Apache forwards to Tomcat. mod_webapp will forward everything under a
particular directory to Tomcat. With mod_jk you could direct Apache to
forward requests with certain url patterns to Tomcat. Generally /servlet/
and *.jsp.

 - how should I setup tomcat to make it possible, that only a defined list
 of
 users are able to use jsp/servlet?
If you are using Apache as the webserver, then you could do this easily by
telling Apache to forward only certain requests to Tomcat. Using mod_jk as
a connector would help in this case.

 - how to setup tomcat or must I setup the apache (if forwarding the
 servlet/jsp request from apache to tomcat), that users are able to define
 their own
 contexts? Is it a security problem? I thought about something like a
 distributed web.xml in a defined location in the users home dirs.
Allowing users to create their own contexts, which amounts to modifying the
server.xml file, isn't a good idea. You wouldn't want user stepping on each
other's toes as well as violating the security of your system. I'd suggest
you seek alternate methods.
One way is to use the Listener class UserConfig. Assuming that every user
has a home directory, Tomcat will be able to map a request starting with a
~ and a username to a directory, usually public_html, under the user's
home directory. See
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/host.html for
further details.
I think with Tomcat 4.1.7, you can seperate the Context entries from the
main server.xml file. I haven't used Tomcat 4.1.7. But I think you could
define Contexts in some other file. And then add that file to the webapps
directory. This way you could seperate Contexts for each user which
probably gives you finer control. User's could define their own Contexts
and then forward them to you to add the files to the webapps directory.

 - Is it possible to limit the maximum used resources (load, memory )
 of
 tomcat?  Or even better per user basis?
I don't think you could limit the amount of resources on a per user basis.
At the serer level, I guess you could specify the stack and heap size when
Tomcat starts.


 many thanks,
 and best regards,
 Hans

 --
 GMX - Die Kommunikationsplattform im Internet.
 http://www.gmx.net


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


--
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net


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




Re: Apache-tomcat integration

2002-08-03 Thread rsequeira


AJP is configured in   Service name=Tomcat-Standalone. But you could
move this Connector element to Tomcat-Apache. Also remember to disable the
Warp connector under Tomcat-Apache. Have you configured Apache to send
requests containing examples to Tomcat? You might need something like this:
JkMount /examples/*.jsp ajp13
JkMount /examples/servlet/* ajp13

RS



   

  Thomas Cherry

  [EMAIL PROTECTED]To:   Tomcat Users List   

[EMAIL PROTECTED]   

  08/03/02 08:55 AMcc: 

  Please respond toSubject:  Apache-tomcat integration 

  Tomcat Users

  List

   

   





I am almost done configuring my site, but I have just a few more
question (for now).  I am using ajp13 to connect tomcat 4 with apache
1.3.  Apache is running on port 81 and I want to know if have to do
anything different when configuring server.xml  as a result of my web
site running on the non-standard port.

Also, in my  Service name=Tomcat-Apache tag block, there is no
mention of ajp.  Is this ok?

Last, here is a few lines from my apache log:
[Sat Aug  3 09:21:36 2002] [notice] Apache-AdvancedExtranetServer/1.3.22
(Mandrake Linux/1.1mdk) mod_jk mod_perl/1.26 configured --
  resuming normal operations
[Sat Aug  3 09:21:36 2002] [notice] Accept mutex: sysvsem (Default:
sysvsem)
[Sat Aug  3 09:21:40 2002] [error] [client 192.168.1.1] File does not
exist: /var/www/html/examples/jsp/dates/date.jsp

I assume that this means that apache is loading mod_jk, but why can it
not find the examples directory?


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




Re: Servlet directory

2002-08-03 Thread Daliso Zuze

Yes Micheal, I have added those entries When I try to use the servlet
mapping name it gives me a CLASS NOT FOUND exception.


- Original Message -
From: Michael E. Locasto [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Saturday, August 03, 2002 2:44 PM
Subject: Re: Servlet directory


 And you've provided appropriate servelet and servlet-mapping entries
in
 your web.xml?

 -Michael

 - Original Message -
 From: Daliso Zuze [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Saturday, August 03, 2002 4:51 AM
 Subject: Servlet directory


 I have put some servlet classes in my web applications classes directory,
 however when I try to access it via the url
 http://localhost:8080/myapp/servlet/myservlet it does not work. It seems
to
 only work when I put the classes in the default ROOT web app and access it
 via http://localhost:8080/servlet/myservlet.

 Is there a way of configuring tomcat to make it work from the first url???



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




Re: Servlet directory

2002-08-03 Thread Jacob Kjome

The way you are trying to access this servlet implies a couple of assumptions:

1.  Your servlet is in the default package.  That is to say that it exist 
in WEB-INF/classes and not some directory deeper inside of that.

2.  Your class is all lower case myservlet since that is how it is 
written on the URL your provided below.

I think it is probably likely that #1 is true.  However, I'm guessing that 
#2 is not.  The general practice for naming classes is to use Capital 
letters for each distinct part of the class name.  For instance, you 
probably named your class MyServlet, not myservlet.  As such, the URL 
you provided won't work.  It should be:

http://localhost:8080/myapp/servlet/MyServlet

Note that servlet and servlet-mapping entries in your own web.xml have 
nothing in particular to do with accessing your class through Tomcat's 
default servlet invoker which is mapped to /[your context]/servlet/*.

The other thing you should look at is that the directory that your app is 
running out of exists in:

$TOMCAT_HOME/webapps/myapp

make sure that myapp is in all lower case.


Oh, and make sure that there are no spaces in $TOMCAT_HOME.  If you have it 
installed in a directory like Program Files, you can do the following (on 
Windows).  I'll use my setup as an example.

$CATALINA_HOME=C:\Progra~1\Apache~1\Jakarta\tomcat-4.1.8

The original path is:
C:\Program Files\Apache Group\Jakarta\tomcat-4.1.8

Just use the tilde's to fix directory names which have spaces.  The names 
with tilde's can be no more than 8 chars long.

Restart Tomcat after using the hints above and things should work just fine.

Jake


At 10:51 AM 8/3/2002 +0200, you wrote:
I have put some servlet classes in my web applications classes directory, 
however when I try to access it via the url 
http://localhost:8080/myapp/servlet/myservlet it does not work. It seems 
to only work when I put the classes in the default ROOT web app and access 
it via http://localhost:8080/servlet/myservlet.

Is there a way of configuring tomcat to make it work from the first url???



newbie trying to run tomcat 4

2002-08-03 Thread Alan Shiers

Hi there,

I've downloaded Tomcat 4 for the first time and have been pouring over
these documents at the jakarta site trying to make sense of it all.  I
was able to set a context for a new webapp in server.xml and I'm able to
navigate with Netscape to the web app with
http://localhost:8080/mytest/index.html

That part works just fine.  I have a simple servlet sitting in my
WEB-INF directory and my index.html file has a link in it that is
supposed to launch the servlet:
http://localhost:8080/mytest/servlet/sqlnames

However, every time I try to click on the link, Netscape opens its
SaveAs dialog box. For some stupid reason it seems to think I'm trying
to save a file.  Has anyone had that happen before?  How do I make
Netscape understand that I'm not trying to save a file.  I just want to
launch the servlet!  What am I doing wrong?

Alan

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




Tomcat4 and encodeURL

2002-08-03 Thread Dominique Deleris

Hi !

I'm new to J2EE, and therefore I am trying each and every example
of the programming book I've bought.

Now I am learning session handling w/ the servlet API, and would
like to use the URL-encoding style for keeping sessions, when the
browser's configuration does not allow to use cookies.

My (simple) example servlet is using the following instruction:
  String lifeCycleURL = response.encodeURL(/jtests/servlet/lifeCycle);
  out.println(A href=\ + lifeCycleURL + ?action=newSession\);

This should modify my URL, adding ;jsessionid=xxx where xxx is
the session ID. I can not get this to work, Tomcat will only
handle sessions using cookies...

Maybe I'm missing something?

I use :
Tomcat 4.0.4
Apache 1.3.26
mod-jk
Debian Woody (3.0)

-- 
Dominique Deleris
http://potatoworld.tuxfamily.org


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




Re: newbie trying to run tomcat 4

2002-08-03 Thread Markus Bengts

On Sat, 3 Aug 2002, Alan Shiers wrote:

 was able to set a context for a new webapp in server.xml and I'm able to
 navigate with Netscape to the web app with
 http://localhost:8080/mytest/index.html

 That part works just fine.  I have a simple servlet sitting in my
 WEB-INF directory and my index.html file has a link in it that is
 supposed to launch the servlet:
 http://localhost:8080/mytest/servlet/sqlnames

If the file Sqlnames.class is in WEB-INF/classes, then the url should be:
http://localhost:8080/mytest/servlet/Sqlnames
 ^

 However, every time I try to click on the link, Netscape opens its
 SaveAs dialog box.

Does the servlet return text/html? Like this:

response.setContentType(text/html);


  Markus




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




Re: Servlet directory

2002-08-03 Thread Daliso Zuze

Thanks, I got it working now, I had misplaced the classes directory.

Daliso

- Original Message -
From: Jacob Kjome [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Saturday, August 03, 2002 7:18 PM
Subject: Re: Servlet directory


 The way you are trying to access this servlet implies a couple of
assumptions:

 1.  Your servlet is in the default package.  That is to say that it exist
 in WEB-INF/classes and not some directory deeper inside of that.

 2.  Your class is all lower case myservlet since that is how it is
 written on the URL your provided below.

 I think it is probably likely that #1 is true.  However, I'm guessing that
 #2 is not.  The general practice for naming classes is to use Capital
 letters for each distinct part of the class name.  For instance, you
 probably named your class MyServlet, not myservlet.  As such, the URL
 you provided won't work.  It should be:

 http://localhost:8080/myapp/servlet/MyServlet

 Note that servlet and servlet-mapping entries in your own web.xml have
 nothing in particular to do with accessing your class through Tomcat's
 default servlet invoker which is mapped to /[your context]/servlet/*.

 The other thing you should look at is that the directory that your app is
 running out of exists in:

 $TOMCAT_HOME/webapps/myapp

 make sure that myapp is in all lower case.


 Oh, and make sure that there are no spaces in $TOMCAT_HOME.  If you have
it
 installed in a directory like Program Files, you can do the following
(on
 Windows).  I'll use my setup as an example.

 $CATALINA_HOME=C:\Progra~1\Apache~1\Jakarta\tomcat-4.1.8

 The original path is:
 C:\Program Files\Apache Group\Jakarta\tomcat-4.1.8

 Just use the tilde's to fix directory names which have spaces.  The names
 with tilde's can be no more than 8 chars long.

 Restart Tomcat after using the hints above and things should work just
fine.

 Jake


 At 10:51 AM 8/3/2002 +0200, you wrote:
 I have put some servlet classes in my web applications classes directory,
 however when I try to access it via the url
 http://localhost:8080/myapp/servlet/myservlet it does not work. It seems
 to only work when I put the classes in the default ROOT web app and
access
 it via http://localhost:8080/servlet/myservlet.
 
 Is there a way of configuring tomcat to make it work from the first
url???




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




Re: Tomcat4 and encodeURL

2002-08-03 Thread Craig R. McClanahan



On 3 Aug 2002, Dominique Deleris wrote:

 Date: 03 Aug 2002 22:00:33 +0200
 From: Dominique Deleris [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: tomcat-user-list [EMAIL PROTECTED]
 Subject: Tomcat4 and encodeURL

 Hi !

 I'm new to J2EE, and therefore I am trying each and every example
 of the programming book I've bought.

 Now I am learning session handling w/ the servlet API, and would
 like to use the URL-encoding style for keeping sessions, when the
 browser's configuration does not allow to use cookies.

 My (simple) example servlet is using the following instruction:
   String lifeCycleURL = response.encodeURL(/jtests/servlet/lifeCycle);
   out.println(A href=\ + lifeCycleURL + ?action=newSession\);

 This should modify my URL, adding ;jsessionid=xxx where xxx is
 the session ID. I can not get this to work, Tomcat will only
 handle sessions using cookies...

 Maybe I'm missing something?


Tomcat (or any other servlet container) will actually modify the URL only
under the following circumstances:

* There is actually a session in existence

* The URL you are encoding points back into the same webapp

* The container knows that cookies are not in use (because
  this is not the first request for the session, and we got
  the session id from the URL previously.

In your particular example, encoding would only take place if the context
path of your application is jtests.  In addition, you must have called
request.getSession() to create the session *before* executing the
encodeURL call.

 I use :
 Tomcat 4.0.4
 Apache 1.3.26
 mod-jk
 Debian Woody (3.0)

 --
 Dominique Deleris
 http://potatoworld.tuxfamily.org



Craig


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




Re: newbie trying to run tomcat 4

2002-08-03 Thread Alan Shiers

Hi Markus,

Does a servlet name always have to start with an uppercase letter?

The reason I wrote the URL like this:
http://localhost:8080/mytest/servlet/sqlnames

is only because of how I wrote the web.xml file which looks like this:

?xml version=1.0 encoding=ISO-8859-1?

!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN
http://java.sun.com/j2ee/dtds/web-app_2_2.dtd;

web-app

servlet

  servlet-name

sqlnames

  /servlet-name

servlet-class

MySQLNamesTest

/servlet-class
   /servlet
/web-app

Maybe I need to change this somehow?

Please advise,

Alan

Markus Bengts wrote:
 
 On Sat, 3 Aug 2002, Alan Shiers wrote:
 
  was able to set a context for a new webapp in server.xml and I'm able to
  navigate with Netscape to the web app with
  http://localhost:8080/mytest/index.html
 
  That part works just fine.  I have a simple servlet sitting in my
  WEB-INF directory and my index.html file has a link in it that is
  supposed to launch the servlet:
  http://localhost:8080/mytest/servlet/sqlnames
 
 If the file Sqlnames.class is in WEB-INF/classes, then the url should be:
 http://localhost:8080/mytest/servlet/Sqlnames
  ^
 
  However, every time I try to click on the link, Netscape opens its
  SaveAs dialog box.
 
 Does the servlet return text/html? Like this:
 
 response.setContentType(text/html);
 
   Markus
 
 --
 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]




Re: newbie trying to run tomcat 4

2002-08-03 Thread Markus Bengts

On Sat, 3 Aug 2002, Alan Shiers wrote:

 Does a servlet name always have to start with an uppercase letter?

A java class name usually starts with uppercase. I don't know if it has
to. Try if you're intrested. You can use different url-patterns.


 The reason I wrote the URL like this:
 http://localhost:8080/mytest/servlet/sqlnames

 is only because of how I wrote the web.xml file which looks like this:

 ?xml version=1.0 encoding=ISO-8859-1?

 !DOCTYPE web-app
 PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN
 http://java.sun.com/j2ee/dtds/web-app_2_2.dtd;

 web-app

 servlet

 servlet-name

   sqlnames

 /servlet-name

 servlet-class

 MySQLNamesTest

 /servlet-class
/servlet

!-- I think all servlet-tags must come first and then servlet-mapping. --


 servlet-mapping
  servlet-name
sqlnames
  /servlet-name
  url-pattern
/sqlnames
  /url-pattern
 /servlet-mapping

 /web-app

 Maybe I need to change this somehow?

 Please advise,

 Alan

 Markus Bengts wrote:
 
  On Sat, 3 Aug 2002, Alan Shiers wrote:
 
   was able to set a context for a new webapp in server.xml and I'm able to
   navigate with Netscape to the web app with
   http://localhost:8080/mytest/index.html
  
   That part works just fine.  I have a simple servlet sitting in my
   WEB-INF directory and my index.html file has a link in it that is
   supposed to launch the servlet:
   http://localhost:8080/mytest/servlet/sqlnames
 
  If the file Sqlnames.class is in WEB-INF/classes, then the url should be:
  http://localhost:8080/mytest/servlet/Sqlnames
   ^
 
   However, every time I try to click on the link, Netscape opens its
   SaveAs dialog box.
 
  Does the servlet return text/html? Like this:
 
  response.setContentType(text/html);
 

   Markus


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




Application malfunctioning on TC4.1.7b

2002-08-03 Thread Vernon Wu

I have been working on my current project for past four month on TC4.0. Due to  JSTL 
performance issue and the fmt
message tag memory usage issue, I would like to try the 4.1 version. The  application 
is runing fine on TC4.0. After I put
the application on TC4.1.7b, I encounter the following two problems so far and  can't 
use the application.

1. No resource files is loaded.  I employ the i18n tags in the application. On  the 
only page I can bring up, all text is the
question mark. Do I need to configure the 4.1 version in order to load resource  files?

2. I get the follow exception from the log in page:

javax.servlet.jsp.JspException: class  com.vernonwu.mm.accountinfo.model.AccountInfo :
java.lang.InstantiationException: com.vernonwu.mm.accountinfo.model.AccountInfo

The AccountInfo instance is not used in the page at all, but the next page after  a 
user log in.

I don't understand where this error comes from.

Thanks for your helps.

Vernon



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




RE: Apache 2 and Tomcat 4

2002-08-03 Thread Trask

Robert,

Is the JAVA_HOME/conf directory the correct place to put
jk2.properties file, because I do not have a conf file in my JAVA_HOME
directory?   Thanks Trask

-Original Message-
From: Robert L Sowders [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, August 03, 2002 12:18 AM
To: [EMAIL PROTECTED]
Subject: Re: Apache 2 and Tomcat 4

Sure thing,

But it's for Tomcat 4.1.8

Install J2sdk1.4.0_01
http://java.sun.com/j2se/1.4/download.html
No need to install src or demos.  I chose an install path of c:\1\java, 
try to keep it simple. Add the java bin directory to the system PATH 
variable in my case it is   C:\1\java\bin
Add JAVA_HOME to the system variables pointing it at where you installed

JSDK mine is C:\1\java

Install Apache 2.0.39
http://www.apache.org/dist/httpd/binaries/win32/apache_2.0.39-win32-x86-
no_ssl.msi
Make a nice short path without any blank spaces for the installation.
Mine 
is C:\1\Apache2
During installation set domain and ServerName to localhost.
 
Install Tomcat 4.1.8
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/test/v4.1.8/bin/jaka
rta-tomcat-4.1.8-LE-jdk14.exe
Again make sure to chose a nice short install path without any blanks in

the names.  Mine is C:\1\Tomcat

Note:  During installation you don't have select the check box for nt 
service.  Tomcat will be started by Apache as it's needed.

Set system environment variables for Tomcat home;  TOMCAT_HOME= 
C:\1\Tomcat

Install and configure mod_jk2.dll
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/nightly/w
in32/
Save mod_jk2.dll to the APACHE_HOME/modules directory.


In the httpd.conf file add this LoadModule statement to the beginning of

the LoadModule section;
LoadModule jk2_module modules/mod_jk2.dll

In your APACHE_HOME/logs directory create three empty files;
stdout.log
stderr.log
jk2.shm

Drop the attached workers2.properties file into the APACHE_HOME/conf 
directory. 
(Edit paths to suit)

Cut and paste the following jk2.properties file into the JAVA_HOME\conf 
directory 
(Edit paths to suit)

Reboot to make all the variables active

Open http://localhost/examples to test.

Have fun

rls

Hello All,

I am trying to find a configuration that will allow apache 2 and tomcat
4 
to
talk to each other on a windows platform. Does anyone have any pointers

on
where to look?

Thanks.

Stephen.



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