RE: building mod_jk on solaris

2002-05-10 Thread Ion Larranaga


Hi,

I think that mod_jk is included within the connectors
package (jakarta-tomcat-connectors-4.0.2-01-src.tar.gz for
instance), so you should try to get it from there.

Hope it helps,

  Ion

-Mensaje original-
De: Peter Choe [mailto:[EMAIL PROTECTED]]
Enviado el: viernes, 10 de mayo de 2002 14:53
Para: [EMAIL PROTECTED]
Asunto: building mod_jk on solaris


i am trying to build mod_jk for tomcat4.0.  the only mod_jk i found is
actually in tomcat3.3 though.  so, i tried to compile it using the
build-solaris.sh script and i get the following error:

bash-2.03# ./build-solaris.sh
Building mod_jk
cc -DEAPI -DMOD_PERL -DUSE_EXPAT -O -G -Kpic -I/usr/apache/include
-I../common -I/usr/java/include -I/usr/java/include/solaris -DSOLARIS  -c
../common/jk_ajp12_worker.c
apxs:Break: Command failed with rc=16711680
Error with apxs

does anyone know how i can fix this?


--
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: building mod_jk on solaris

2002-05-10 Thread Ion Larranaga

mod_jk is an apache module, so it has
to go with the apache installation. In your 
case, that means putting it in the freebsd
machine. In Tomcat you only have to setup
a port (ajp12, ajp13...) for mod_jk to use
remotely

   Ion


-Mensaje original-
De: Peter Choe [mailto:[EMAIL PROTECTED]]
Enviado el: viernes, 10 de mayo de 2002 15:24
Para: Tomcat Users List
Asunto: RE: building mod_jk on solaris


they only seem to have it for sparc.  i am running an intel solaris.

if i have apache running on a freebsd machine, and tomcat running on a 
solaris machine, which mod_jk should i get and where should i place it, on 
the solaris or the freebsd?

thanks.



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




RE: How to add a throw exception to a servlet

2002-05-03 Thread Ion Larranaga

Hi,

There's no way to add new exception types to the doPost method. However,
you could do something like:

public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException
{
try
{
/*
your code
*/
}
catch (SQLException exc)
{
throw new ServletException(exc);
}
}

This way, the real exception goes nested within a ServletException and you
don't have to change the method signature.

Hope it helps,

   Ion



But I want the exception to be caught in the error.jsp page, not do a try
{...} catch{...} inside the doPost body.

I don't know if I explained it correctly but is there a simple solution to
this problem ?


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: AJP12 to AJP13

2002-03-08 Thread Ion Larranaga

You will also have to change your JDK, as the Ajp13Connector
class uses socket.setKeepAlive(...), which was first included in JDK 1.3.

With the correct version of the JDK the only thing that must
be done is changing tomcat and mod_jk configurations.

Hope it helps,

   Ion


-Mensaje original-
De: Lance Dyas [mailto:[EMAIL PROTECTED]]
Enviado el: viernes, 08 de marzo de 2002 4:55
Para: [EMAIL PROTECTED]
Asunto: AJP12 to AJP13


I have a web app that is configured on ajp12, Is there anything I 
need to change in the app itself to get it to run on ajp13...
or is it just a question of changing tomcat configurations

I was specifically wondering I could get it to work with SSL hence the 
interest in ajp13

A few details
I am using Win2K pro, Apache 1.323 ,Mod_gzip1.319,  Mod jk 1.10, with
Tomcat 4.0 with Jdk1.22



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Tomcat x Apache

2002-02-27 Thread Ion Larranaga


Does your apache user (nobody by default) have access
to the physical directory? Perhaps that directory belongs
to the user you start Tomcat with (maybe root?) and 
nobody has no read access to it.

Hope it helps,

  Ion

-Mensaje original-
De: Cleber Hostalacio de Melo [mailto:[EMAIL PROTECTED]]
Enviado el: miercoles, 27 de febrero de 2002 17:25
Para: [EMAIL PROTECTED]
Asunto: Tomcat x Apache


Hi,

I have linux  (kernel 2.4.5), apache 1.3.19 and
Tomacat 4.0.2

Tomcat are working well with the url:
  http://Myserv:tomcat_port/examples/jsp/index.html

But when I try to access this application from Apache with the
URL:

  http://Myserv/examples/jsp/index.html


I receive the message in my browser:

Forbidden
You don't have permission to access /examples/jsp/index.html on this
server.

The corresponding entries in the Apache logs are:

httpd/logs/access.log:
  GET /examples/jsp/index.html HTTP/1.0 403 301

httpd/logs/error.log:
  [error] [client xxx.xxx.xxx.x] (2)No such file or directory: cannot
read directory for multi: /examples/jsp/

There is no entry in the Tomcat logs which looks like that Apache is not

even trying to
connect to Tomcat.

My configuration files are:

httpd.com

.
ServerName myServer
ServerType standalone
ServerRoot /etc/httpd
..
LoadModule 
LoadModule webapp_module libexec/mod_webapp-1.0-eapi.so
..
AddModule
AddModule mod_webapp.c
..
DocumentRoot /home/myDocs
..
WebAppConnection Tomcat_Apache warp localhost:8008
WebAppDeploy examples Tomcat_Apache /examples/


server.xml

.
Service name=Tomcat_Apache
Connector
  className=org.apache.catalina.connector.warp.WarpConnector
  port=8008 minProcessors=5 maxProcessors=75
  enableLookups=true
  acceptCount=10 debug=0/

  !-- Replace localhost with what your Apache ServerName is set to
--
  Engine className=org.apache.catalina.connector.warp.WarpEngine
   name=localhost debug=0 appBase=webapps
   .
   /Engine
/Service

Anyone has any idea what could be the problem?

Thanks.





--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Tomcat 4.0.2, IIS 5.0 and NT-service

2002-02-21 Thread Ion Larranaga

At Java API documentation, you can see that in class java.net.Socket,
the method setKeepAlive is marked as since 1.3, so it's clear that
it won't work in JDK1.2.2

Have you tried using JDK1.2.2 to compile the classes in your IDE but
using JDK1.3.1 to run Tomcat? Maybe it's a bit more difficult to setup
the complete environment, but I think it should work fine.

Hope it helps,

  Ion

-Mensaje original-
De: Adrian Prezioso [mailto:[EMAIL PROTECTED]]
Enviado el: jueves, 21 de febrero de 2002 16:15
Para: Tomcat Users List
Asunto: Re: Tomcat 4.0.2, IIS 5.0 and NT-service


What JDK are you using?  I tried 1.2.2 and could not
get the AJP13 connector to work.  I kept getting the
following exception:

java.lang.NoSuchMethodError: java.net.Socket: method
setKeepAlive(Z)V not found
at
org.apache.ajp.tomcat4.Ajp13Connector.run(Ajp13Connector.java,
Compiled Code)
at java.lang.Thread.run(Thread.java:479)

Switching to JDK 1.3.1 fixed the problem.  Does anyone
know for sure if TC4.0.2 with IIS 5.0 supports JDK
1.2.2? I'd rather use 1.2.2 since my IDE (VA Java)
only supports that right now.



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Multiple Tomcat-servers on a single machine

2002-02-20 Thread Ion Larranaga


I think that you have two possibilities to do what you want:

- You could set up one instance of Tomcat with X different contexts,
  so that each user has his own. Servlets from different users would
  have different physical directories, so each user would have a different
  working directory. This way, users would access their specific servlets
  with URLs:

http://server/user1/servlet/yourServlet
http://server/user2/servlet/yourServlet
  ...

- But if you want the course to be more complete, including configuration
  of Tomcat, of course you should set up different Tomcat instances for
  one. These instances should listen on a different port, so they will need
  different configuration files (server.xml), updating the port each
  HttpConnector listens to. This way, the URLs to access the servlets would
be:

http://server:8081/user1/servlet/yourServlet
http://server:8082/user2/servlet/yourServlet
  ...

Just as long as different instances do not try to listen to the same port
there should be no problem. If you will connect to Tomcat through Apache, it
is
basically the same, but changing the port of ajp or warp connectors
(depending on
the Apache module you use)

Hope it helps,

   Ion


-Mensaje original-
De: Anders Gunnare [mailto:[EMAIL PROTECTED]]
Enviado el: miercoles, 20 de febrero de 2002 17:49
Para: [EMAIL PROTECTED]
Asunto: Multiple Tomcat-servers on a single machine


Hello World,

How shall I do if I would like to have multiple Tomcat-servers on a
single machine?

I have tried to read the doc, but I can't understand how I practically
shall do the work...
For example, 5 different UNIX-users shall have 5 different
Tomcat-servers,
one user=one Tomcat-server.

The reasons is that I shall have a Servlet-course and I have one
UNIX-server where we shall do our work.

Best regards
Anders Gunnare
Frontec
Sweden


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: HTTP POST request: maximum allowed data?

2001-11-15 Thread Ion Larranaga

In your example you are not using the POST method.

Any time you see a URL with the ? character in it, it means you are sending
data with the GET method. The GET method allows parameters, but has a size
limitation, as you have seen.

If you want to make sure you are using the POST method you have to use a
form, something like:

FORM NAME=form1 ACTION=../servlet/myServlet METHOD=post
INPUT TYPE=hidden NAME=query VALUE=myquery
/FORM

When you want to send the data you have to use javascript to change the
value of the hidden field to what you want and submit the form. This way you
can be sure that the data will be sent using POST.

Hope it helps,

   Ion


-Mensaje original-
De: Sonia Galilea Varea [mailto:[EMAIL PROTECTED]]
Enviado el: jueves, 15 de noviembre de 2001 10:57
Para: Tomcat Users List
Asunto: HTTP POST request: maximum allowed data?


Hi all,

I have to tranfer data from a html form to a servlet, by using the HTTP POST
request.

I do it by javascript:

myWin = window.open(../servlet/myServlet?query=+myQuery);

I wonder what's the maximum allowed data to send with a POST command. And
the
GET?
I had a look in the RFC but didn't find any size limitation. But there is
one,
because I get an exception
if my URL is too large...

Is there a way to setup the web server (I'm currently using Tomcat
standalone 3.2.1) to accept more data?

Thanks for any info.

Sonia.





--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]