You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Frederick Aubert <fa...@net2000.ch> on 2002/05/08 00:11:37 UTC

JSP + Bean Bug and/or question

PS: I am resending something I sent earlier for I never got anything from
the list telling me my message was received. So I suppose it must have got
lost. If you shall receive this twice, I apologize...

Hi,

My questions will look pretty stupid to the experts, so to avoid bugging
everyone on this list, I¹d suggest that if you want to answer them, you can
address me directly at faubert@net2000.ch.

I tried to build an html form linked via JSP to a Java Bean. I then tried to
access the object instantiated from the field values obtained from the form.
Everything went fine as long as I kept using associated get/set methods. I
then tried to add a new method ³connect² to my bean, just to keep things
simple I made this method not taking any parameter not returning anything
and not doing any computation, but as soon as I tried to call it it launched
a bunch of exceptions and errors. Any idea? Is it forbidden to add such
method to a bean?

I also tried to create some multiple selection box (ie. You have a box of
given values, where the user can pick any number 0-max). I then tried to get
XXX parameter back using the automated conversion into a bean with property
XXX being of type java.util.Set, but I found myself stuck when I have to
implement the setXXX method. How can I achieve this multiple arguments
recuperation?

Thanks, Frederick

---------------------------------------------------------------
  ("`-''-/").___..--''"`-._
   `6_ 6  )   `-.  (     ).`-.__.`)       Frederick Aubert
   (_Y_.)'  ._   )  `._ `. ``-..-'
 _..`--'_..-_/  /--'_.' ,'                faubert@net2000.ch
(il),-''  (li),'  ((!.-'
--------------------------------------------------------------- 


Re: basic mod_jk question/problem

Posted by Duane Gran <ra...@spinweb.net>.
Here I go answering my own question again.  ;)

There appeared to be a permission issue somewhere with the second 
virtual host on the file system.  All is working well now.  Tomcat rules.

Duane

On Thursday, May 9, 2002, at 09:57 AM, Duane Gran wrote:

> This is just a follow up to my previous question.  I have successfully 
> setup mod_jk to work with Tomcat 3.3 and 4.0.3 and all seems to be 
> going well, however I've run into a little snag.
>
> For some reason I can't get a second virtual host to work like the 
> first one.  I have double (and triple!) checked the config and can't 
> find any discrepancy.  My understanding is that apache forwards ajp13 
> requests based on the port defined in workers.properties to the tomcat 
> server listening on the port.  I have Host entries in the server.xml 
> for Tomcat4, but only the first virtual host works.  The second one 
> gives back 400 errors (invalid request) for all JSP and Servlet 
> requests.
>
> Has anyone seen this problem?  I've combed through the setup and 
> re-read the setup guides and can't find the source of my error.
>
> Duane
>
> On Tuesday, May 7, 2002, at 06:28 PM, Duane Gran wrote:
>
>> Fellow Tomcat users,
>>
>> I have a two part question:
>>
>> 1) Are there any technical difficulties I should know about to use 
>> mod_jk
>> (Apj13) with Tomcat 3.2 and Tomcat 4.  Would I be wiser to use Tomcat 
>> 3.3
>> instead of Tomcat 3.2.  This would be a fairly trivial change on my 
>> part I
>> believe.  We are trying to setup a gradual transition environment for 
>> our
>> users.  I believe this precludes using mod_webapp, but please correct 
>> me
>> if I'm wrong.
>>
>> 2) I setup mod_jk with Tomcat 4.0.3 and so far JSP files work, but 
>> servlet
>> requests give a 404 error.  I'm using it with a VirtualHost on Apache
>> 1.3.23.  I un-commented the Ajpv13 connector from the server.xml and 
>> added
>> my Host entry.  I have the following entry in the VirtualHost:
>>
>>   JkMount /*.jsp ajp13
>>   JkMount /servlet/* ajp13
>>
>> Below is the relevant entry in server.xml:
>>
>>     <Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
>>                port="8009" minProcessors="5" maxProcessors="75"
>>                acceptCount="10" debug="99"/>
>>
>> <!-- Begin account tomcat -->
>>      <Host name="tomcat4.spinweb.net"
>>            debug="99"
>>            appBase="/usr/local/apache/sites/tomcat.spinweb.net" >
>>
>>       <Context path="" docBase="htdocs" debug="99" />
>>      </Host>
>> <!-- End account tomcat --
>>
>> Does anyone have any suggestions for what I might do to test/debug 
>> this?
>> Many thanks in advance!
>>
>> Duane Gran
>> spinweb.net
>>
>>
>>
>> --
>> To unsubscribe, e-mail:   <mailto:tomcat-user-
>> unsubscribe@jakarta.apache.org>
>> For additional commands, e-mail: <mailto:tomcat-user-
>> help@jakarta.apache.org>
>
>
> --
> To unsubscribe, e-mail:   <mailto:tomcat-user-
> unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:tomcat-user-
> help@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: basic mod_jk question/problem

Posted by Duane Gran <ra...@spinweb.net>.
This is just a follow up to my previous question.  I have successfully 
setup mod_jk to work with Tomcat 3.3 and 4.0.3 and all seems to be going 
well, however I've run into a little snag.

For some reason I can't get a second virtual host to work like the first 
one.  I have double (and triple!) checked the config and can't find any 
discrepancy.  My understanding is that apache forwards ajp13 requests 
based on the port defined in workers.properties to the tomcat server 
listening on the port.  I have Host entries in the server.xml for 
Tomcat4, but only the first virtual host works.  The second one gives 
back 400 errors (invalid request) for all JSP and Servlet requests.

Has anyone seen this problem?  I've combed through the setup and re-read 
the setup guides and can't find the source of my error.

Duane

On Tuesday, May 7, 2002, at 06:28 PM, Duane Gran wrote:

> Fellow Tomcat users,
>
> I have a two part question:
>
> 1) Are there any technical difficulties I should know about to use 
> mod_jk
> (Apj13) with Tomcat 3.2 and Tomcat 4.  Would I be wiser to use Tomcat 
> 3.3
> instead of Tomcat 3.2.  This would be a fairly trivial change on my 
> part I
> believe.  We are trying to setup a gradual transition environment for 
> our
> users.  I believe this precludes using mod_webapp, but please correct me
> if I'm wrong.
>
> 2) I setup mod_jk with Tomcat 4.0.3 and so far JSP files work, but 
> servlet
> requests give a 404 error.  I'm using it with a VirtualHost on Apache
> 1.3.23.  I un-commented the Ajpv13 connector from the server.xml and 
> added
> my Host entry.  I have the following entry in the VirtualHost:
>
>   JkMount /*.jsp ajp13
>   JkMount /servlet/* ajp13
>
> Below is the relevant entry in server.xml:
>
>     <Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
>                port="8009" minProcessors="5" maxProcessors="75"
>                acceptCount="10" debug="99"/>
>
> <!-- Begin account tomcat -->
>      <Host name="tomcat4.spinweb.net"
>            debug="99"
>            appBase="/usr/local/apache/sites/tomcat.spinweb.net" >
>
>       <Context path="" docBase="htdocs" debug="99" />
>      </Host>
> <!-- End account tomcat --
>
> Does anyone have any suggestions for what I might do to test/debug this?
> Many thanks in advance!
>
> Duane Gran
> spinweb.net
>
>
>
> --
> To unsubscribe, e-mail:   <mailto:tomcat-user-
> unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:tomcat-user-
> help@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


basic mod_jk question/problem

Posted by Duane Gran <ra...@spinweb.net>.
Fellow Tomcat users,

I have a two part question:

1) Are there any technical difficulties I should know about to use mod_jk
(Apj13) with Tomcat 3.2 and Tomcat 4.  Would I be wiser to use Tomcat 3.3
instead of Tomcat 3.2.  This would be a fairly trivial change on my part I
believe.  We are trying to setup a gradual transition environment for our
users.  I believe this precludes using mod_webapp, but please correct me
if I'm wrong.

2) I setup mod_jk with Tomcat 4.0.3 and so far JSP files work, but servlet
requests give a 404 error.  I'm using it with a VirtualHost on Apache
1.3.23.  I un-commented the Ajpv13 connector from the server.xml and added
my Host entry.  I have the following entry in the VirtualHost:

  JkMount /*.jsp ajp13
  JkMount /servlet/* ajp13

Below is the relevant entry in server.xml:

    <Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
               port="8009" minProcessors="5" maxProcessors="75"
               acceptCount="10" debug="99"/>

<!-- Begin account tomcat -->
     <Host name="tomcat4.spinweb.net"
           debug="99"
           appBase="/usr/local/apache/sites/tomcat.spinweb.net" >

      <Context path="" docBase="htdocs" debug="99" />
     </Host>
<!-- End account tomcat --

Does anyone have any suggestions for what I might do to test/debug this?
Many thanks in advance!

Duane Gran
spinweb.net



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>