buffer error with tomcat 4.1.9-LE

2002-08-18 Thread capr1ce

Hi all.

I've just upgraded to Tomcat 4.1.9-LE.

I have a buffer page directive at the top of each of my JSP pages:
<%@ page buffer="50k" %>

With the new version on tomcat, i'm getting this error:
org.apache.jasper.JasperException: /jsp/logon.jsp(2,0) jsp.error.buffer.invalid

It works fine if I take the buffer page directive out.
 From the error message, I assume that the syntax has changed, but I cant 
seem to find out how.
Any ideas?

Cheers,
Mel.

PS. I need the directive, other wise I have problems with the error page 
due to the fact that I have  statements in my code.


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




RE: Run Tomcat as tomcat user

2002-08-16 Thread Capr1ce


Nearly...

The mysql user can be called anything you want.
I usually have a user set up in MySql specifically for Java called 
'javaUser'. I give them select, insert, delete and update privileges.

The UNIX mysql user is very separate than the mysql users. You shouldn't 
need to do anything with the UNIX mysql user. I believe this is used by 
mysql so it can the correct privileges to read and write the databases.
Users for mysql are so you can set up who is allowd to connect to the mysql 
and what they can do when they connect. ie. can they create databases, 
update databases, which databases they can update etc.


At 01:02 PM 16/08/2002 +0200, you wrote:

>Let me Understand,
>
>To run tomcat as tomcat user and be able to connect to mysql thought JDBC 
>I need:
>
>
>On my unix machine have a user named tomcat which runs tomcat.
>On mysql have other user named tomcat.
>And the connection thought JDBC must be done with the user and password 
>created in mysql.
>
>-Original Message-
>From: Capr1ce [mailto:[EMAIL PROTECTED]]
>Sent: viernes 16 de agosto de 2002 12:57
>To: Tomcat Users List
>Subject: RE: Run Tomcat as tomcat user
>
>
>
>No they don't need to have the same password.
>When your JSP/Java code connects to the MySql database using JDBC, you
>should use the mysql user to connect.
>
>
>At 12:48 PM 16/08/2002 +0200, you wrote:
> >¿the unix tomcat user and the mysql tomcat user must have the same password?
> >
> >-Original Message-
> >From: Capr1ce [mailto:[EMAIL PROTECTED]]
> >Sent: viernes 16 de agosto de 2002 12:40
> >To: Tomcat Users List
> >Subject: RE: Run Tomcat as tomcat user
> >
> >
> >
> >A password is not necessary, but certainly recommended.
> >
> >See these sections of the mysql documentation:
> >http://www.mysql.com/doc/en/GRANT.html
> >http://www.mysql.com/doc/en/Adding_users.html
> >
> >
> >At 12:31 PM 16/08/2002 +0200, you wrote:
> > >Hi Andy !
> > >
> > >Thanks for your response.
> > >
> > >I have created a user named tomcat in mysql and I have granted acccess
> > >but...I haven't created any password for this user, is necesary a 
> password??
> > >
> > >Urtzi
> > >
> > >-Original Message-
> > >From: Andy Eastham [mailto:[EMAIL PROTECTED]]
> > >Sent: viernes 16 de agosto de 2002 12:25
> > >To: Tomcat Users List
> > >Subject: RE: Run Tomcat as tomcat user
> > >
> > >
> > >Urtzi,
> > >
> > >You need to grant access to the tomcat user.  See the section in the GRANT
> > >command in the mysql manual (available online at the www.mysql.com site).
> > >By default, root can connect without a password, but other users need 
> to be
> > >granted access.
> > >
> > >You'll need to execute something like:
> > >GRANT ALL PRIVILEGES on *.* to nobody@yourhostname identified by
> > >'nobodyspassword';
> > >
> > >The password is not the unix password - its mysql specific and set by this
> > >command.
> > >
> > >I recommend you read up to make sure you're only grant what you need - 
> after
> > >all there's no point running as nobody if it can do everything root can...
> > >
> > >Test it by doing
> > >su - nobody
> > >then check that you can connect with the password you've set.
> > >
> > >Andy
> > >
> > > > -Original Message-
> > > > From: Urtzi Larrazabal [mailto:[EMAIL PROTECTED]]
> > > > Sent: 16 August 2002 11:04
> > > > To: [EMAIL PROTECTED]
> > > > Subject: Run Tomcat as tomcat user
> > > >
> > > >
> > > >
> > > > Hi !
> > > >
> > > > I am trying to run tomcat as tomcat user. When I start it, it
> > > > seems to start without any problem. I execute some jsp and it
> > > > works fine but when I execute a page tha require to connect to
> > > > mysql database it cant't connect to the database and an empty log
> > > > named something like DCB_1029483253596.log is generated. Running
> > > > tomcat as root I haven't any problem.
> > > >
> > > > ¿any idea?
> > > >
> > > > Regards,
> > > >
> > > > Urtzi.
> > > >
> > > >
> > > > --
> > > > To unsubscribe, e-mail:
> > > > <mailto:[EMAIL PROTECTED]>
> > > > For additional commands, e-mail:

RE: Run Tomcat as tomcat user

2002-08-16 Thread Capr1ce


No they don't need to have the same password.
When your JSP/Java code connects to the MySql database using JDBC, you 
should use the mysql user to connect.


At 12:48 PM 16/08/2002 +0200, you wrote:
>¿the unix tomcat user and the mysql tomcat user must have the same password?
>
>-Original Message-
>From: Capr1ce [mailto:[EMAIL PROTECTED]]
>Sent: viernes 16 de agosto de 2002 12:40
>To: Tomcat Users List
>Subject: RE: Run Tomcat as tomcat user
>
>
>
>A password is not necessary, but certainly recommended.
>
>See these sections of the mysql documentation:
>http://www.mysql.com/doc/en/GRANT.html
>http://www.mysql.com/doc/en/Adding_users.html
>
>
>At 12:31 PM 16/08/2002 +0200, you wrote:
> >Hi Andy !
> >
> >Thanks for your response.
> >
> >I have created a user named tomcat in mysql and I have granted acccess
> >but...I haven't created any password for this user, is necesary a password??
> >
> >Urtzi
> >
> >-Original Message-
> >From: Andy Eastham [mailto:[EMAIL PROTECTED]]
> >Sent: viernes 16 de agosto de 2002 12:25
> >To: Tomcat Users List
> >Subject: RE: Run Tomcat as tomcat user
> >
> >
> >Urtzi,
> >
> >You need to grant access to the tomcat user.  See the section in the GRANT
> >command in the mysql manual (available online at the www.mysql.com site).
> >By default, root can connect without a password, but other users need to be
> >granted access.
> >
> >You'll need to execute something like:
> >GRANT ALL PRIVILEGES on *.* to nobody@yourhostname identified by
> >'nobodyspassword';
> >
> >The password is not the unix password - its mysql specific and set by this
> >command.
> >
> >I recommend you read up to make sure you're only grant what you need - after
> >all there's no point running as nobody if it can do everything root can...
> >
> >Test it by doing
> >su - nobody
> >then check that you can connect with the password you've set.
> >
> >Andy
> >
> > > -Original Message-
> > > From: Urtzi Larrazabal [mailto:[EMAIL PROTECTED]]
> > > Sent: 16 August 2002 11:04
> > > To: [EMAIL PROTECTED]
> > > Subject: Run Tomcat as tomcat user
> > >
> > >
> > >
> > > Hi !
> > >
> > > I am trying to run tomcat as tomcat user. When I start it, it
> > > seems to start without any problem. I execute some jsp and it
> > > works fine but when I execute a page tha require to connect to
> > > mysql database it cant't connect to the database and an empty log
> > > named something like DCB_1029483253596.log is generated. Running
> > > tomcat as root I haven't any problem.
> > >
> > > ¿any idea?
> > >
> > > Regards,
> > >
> > > Urtzi.
> > >
> > >
> > > --
> > > 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]>
>
>
>
>--
>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]>




RE: Run Tomcat as tomcat user

2002-08-16 Thread Capr1ce


A password is not necessary, but certainly recommended.

See these sections of the mysql documentation:
http://www.mysql.com/doc/en/GRANT.html
http://www.mysql.com/doc/en/Adding_users.html


At 12:31 PM 16/08/2002 +0200, you wrote:
>Hi Andy !
>
>Thanks for your response.
>
>I have created a user named tomcat in mysql and I have granted acccess 
>but...I haven't created any password for this user, is necesary a password??
>
>Urtzi
>
>-Original Message-
>From: Andy Eastham [mailto:[EMAIL PROTECTED]]
>Sent: viernes 16 de agosto de 2002 12:25
>To: Tomcat Users List
>Subject: RE: Run Tomcat as tomcat user
>
>
>Urtzi,
>
>You need to grant access to the tomcat user.  See the section in the GRANT
>command in the mysql manual (available online at the www.mysql.com site).
>By default, root can connect without a password, but other users need to be
>granted access.
>
>You'll need to execute something like:
>GRANT ALL PRIVILEGES on *.* to nobody@yourhostname identified by
>'nobodyspassword';
>
>The password is not the unix password - its mysql specific and set by this
>command.
>
>I recommend you read up to make sure you're only grant what you need - after
>all there's no point running as nobody if it can do everything root can...
>
>Test it by doing
>su - nobody
>then check that you can connect with the password you've set.
>
>Andy
>
> > -Original Message-
> > From: Urtzi Larrazabal [mailto:[EMAIL PROTECTED]]
> > Sent: 16 August 2002 11:04
> > To: [EMAIL PROTECTED]
> > Subject: Run Tomcat as tomcat user
> >
> >
> >
> > Hi !
> >
> > I am trying to run tomcat as tomcat user. When I start it, it
> > seems to start without any problem. I execute some jsp and it
> > works fine but when I execute a page tha require to connect to
> > mysql database it cant't connect to the database and an empty log
> > named something like DCB_1029483253596.log is generated. Running
> > tomcat as root I haven't any problem.
> >
> > ¿any idea?
> >
> > Regards,
> >
> > Urtzi.
> >
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
> >
>
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 



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




Re: hi all

2002-08-16 Thread Capr1ce


I found this. It seems to explain what the problem is... Dont know if it's 
much help though
http://forum.java.sun.com/thread.jsp?forum=54&thread=171841


At 06:45 PM 16/08/2002 +0800, you wrote:
>hi this is my error, and im using jakarta standard tag libs
>
>System Replied:
>javax.servlet.ServletException: (class: org/apache/jsp/caselist$jsp, 
>method: _jspService signature: 
>(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V) 
>Illegal target of jump or branch
>
>any idea what this is?
>
>it's real weird. i dont have any explanation for this one. i have a first 
>| next | previous | last  links.. and it seems that the error surfaces 
>whenever i put in another 
>
>juzt plain weird..
>
>---
>Outgoing mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.381 / Virus Database: 214 - Release Date: 8/2/2002
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 



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




Re: AW: Errors Compiling a JSP

2002-08-15 Thread Capr1ce


If that is all the code you have, I assume you have a NullPointerException, 
which means that one of the variables you are trying to use is null. ie. 
probably never set.
If that code you gave was in a file called 'test.jsp', add parameters onto 
the end of it when you call it in your browser like this:

http://localhost:8080/yourWebapp/test.jsp?country=uk&colors=red&colors=blue&colors=pink

with this code:

Parameters
 * Country = <%= request.getParameter("country") %>
  * Colors:
 <% String[] colorValues = request.getParameterValues("colors"); %>
* Color 1 = <%= colorValues[0]%>
* Color 2 = <%= colorValues[1]%>
   * Color 3 = <%= colorValues[2]%>

and it will work.


At 05:34 PM 15/08/2002 +0200, you wrote:
>There should be more information available in one of the logs.
>
>Some background:
>
>The JSP is compiled to a servlet.
>
>With <%! %> you define members or methods for the class or
>instance.
>With <% %> you fill the body of a method, all implicit
>variables (like request) are local to this method.
>
>Have a look at the generated code in the work directory
>to get a better idea what happens with your code.
>
> > -Ursprüngliche Nachricht-
> > Von: Sharples, Brian [mailto:[EMAIL PROTECTED]]
> > Gesendet: Donnerstag, 15. August 2002 17:21
> > An: 'Tomcat Users List'
> > Betreff: RE: Errors Compiling a JSP
> >
> >
> > That didn't work.  Removing the "!" gave me the error: Status
> > 500 The server
> > encountered an internal error that prevented it from fulfilling this
> > request.
> >
> > Thanks
> >
> > Brian
> >
> > -Original Message-
> > From: Capr1ce [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, August 15, 2002 11:19 AM
> > To: Tomcat Users List
> > Subject: Re: Errors Compiling a JSP
> >
> >
> >
> > Try it like this:
> >
> > <% String[] colorValues = request.getParameterValues("colors"); %>
> >
> >
> > At 11:14 AM 15/08/2002 -0400, you wrote:
> > >Hi,
> > >
> > >I am learning JSP with the SAMS book"Teach Yourself JSP in
> > 24 Hours".  One
> > >of the sample JSPs keeps getting a compiler error.  The code is:
> > >
> > >Parameters
> > >* Country = <%= request.getParameter("country") %>
> > >* Colors:
> > ><%! String[] colorValues =
> > request.getParameterValues("colors"); %>
> > >* Color 1 = <%= colorValues[0]%>
> > >* Color 2 = <%= colorValues[1]%>
> > >* Color 3 = <%= colorValues[2]%>
> > >
> > >
> > >The error is a status 500 - Internal Server Error: Undefined
> > variable or
> > >class name: request
> > >String[] colorValues = request.getParameterValues("colors");
> > >If I remove the colorValues variable declaration and just put <%
> > >request.getParameterValues("colors") %>, I get past that
> > line.  Of course,
> > >the next line then shows colorValues as undefined.
> > >I don't understand why this is occurring.  I am using Tomcat
> > 4.0.4 and
> > j2sdk
> > >1.4.0_01.
> > >Thanks for your help.
> > >Brian Sharples
> > >
> > >
> > >--
> > >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]>
>
>
>
>--
>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: Errors Compiling a JSP

2002-08-15 Thread Capr1ce


 >> Are you actually setting the colorValues array up anywhere before it 
gets to this piece of code?
Actually that was a stupid thing to say.
You should be setting a at least 3 request parameters as 'colors' before 
you call this code.

At 04:30 PM 15/08/2002 +0100, you wrote:

>Is there a more detailed error message?
>Are you actually setting the colorValues array up anywhere before it gets 
>to this piece of code?
>
>At 11:21 AM 15/08/2002 -0400, you wrote:
>>That didn't work.  Removing the "!" gave me the error: Status 500 The server
>>encountered an internal error that prevented it from fulfilling this
>>request.
>>
>>Thanks
>>
>>Brian
>>
>>-Original Message-
>>From: Capr1ce [mailto:[EMAIL PROTECTED]]
>>Sent: Thursday, August 15, 2002 11:19 AM
>>To: Tomcat Users List
>>Subject: Re: Errors Compiling a JSP
>>
>>
>>
>>Try it like this:
>>
>><% String[] colorValues = request.getParameterValues("colors"); %>
>>
>>
>>At 11:14 AM 15/08/2002 -0400, you wrote:
>> >Hi,
>> >
>> >I am learning JSP with the SAMS book"Teach Yourself JSP in 24 Hours".  One
>> >of the sample JSPs keeps getting a compiler error.  The code is:
>> >
>> >Parameters
>> >* Country = <%= request.getParameter("country") %>
>> >* Colors:
>> ><%! String[] colorValues = request.getParameterValues("colors"); %>
>> >* Color 1 = <%= colorValues[0]%>
>> >* Color 2 = <%= colorValues[1]%>
>> >* Color 3 = <%= colorValues[2]%>
>> >
>> >
>> >The error is a status 500 - Internal Server Error: Undefined variable or
>> >class name: request
>> >String[] colorValues = request.getParameterValues("colors");
>> >If I remove the colorValues variable declaration and just put <%
>> >request.getParameterValues("colors") %>, I get past that line.  Of course,
>> >the next line then shows colorValues as undefined.
>> >I don't understand why this is occurring.  I am using Tomcat 4.0.4 and
>>j2sdk
>> >1.4.0_01.
>> >Thanks for your help.
>> >Brian Sharples
>> >
>> >
>> >--
>> >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]>
>
>
>
>--
>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: Errors Compiling a JSP

2002-08-15 Thread Capr1ce


Is there a more detailed error message?
Are you actually setting the colorValues array up anywhere before it gets 
to this piece of code?

At 11:21 AM 15/08/2002 -0400, you wrote:
>That didn't work.  Removing the "!" gave me the error: Status 500 The server
>encountered an internal error that prevented it from fulfilling this
>request.
>
>Thanks
>
>Brian
>
>-Original Message-
>From: Capr1ce [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, August 15, 2002 11:19 AM
>To: Tomcat Users List
>Subject: Re: Errors Compiling a JSP
>
>
>
>Try it like this:
>
><% String[] colorValues = request.getParameterValues("colors"); %>
>
>
>At 11:14 AM 15/08/2002 -0400, you wrote:
> >Hi,
> >
> >I am learning JSP with the SAMS book"Teach Yourself JSP in 24 Hours".  One
> >of the sample JSPs keeps getting a compiler error.  The code is:
> >
> >Parameters
> >* Country = <%= request.getParameter("country") %>
> >* Colors:
> ><%! String[] colorValues = request.getParameterValues("colors"); %>
> >* Color 1 = <%= colorValues[0]%>
> >* Color 2 = <%= colorValues[1]%>
> >* Color 3 = <%= colorValues[2]%>
> >
> >
> >The error is a status 500 - Internal Server Error: Undefined variable or
> >class name: request
> >String[] colorValues = request.getParameterValues("colors");
> >If I remove the colorValues variable declaration and just put <%
> >request.getParameterValues("colors") %>, I get past that line.  Of course,
> >the next line then shows colorValues as undefined.
> >I don't understand why this is occurring.  I am using Tomcat 4.0.4 and
>j2sdk
> >1.4.0_01.
> >Thanks for your help.
> >Brian Sharples
> >
> >
> >--
> >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]>



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




Re: Errors Compiling a JSP

2002-08-15 Thread Capr1ce


Try it like this:

<% String[] colorValues = request.getParameterValues("colors"); %>


At 11:14 AM 15/08/2002 -0400, you wrote:
>Hi,
>
>I am learning JSP with the SAMS book"Teach Yourself JSP in 24 Hours".  One
>of the sample JSPs keeps getting a compiler error.  The code is:
>
>Parameters
>* Country = <%= request.getParameter("country") %>
>* Colors:
><%! String[] colorValues = request.getParameterValues("colors"); %>
>* Color 1 = <%= colorValues[0]%>
>* Color 2 = <%= colorValues[1]%>
>* Color 3 = <%= colorValues[2]%>
>
>
>The error is a status 500 - Internal Server Error: Undefined variable or
>class name: request
>String[] colorValues = request.getParameterValues("colors");
>If I remove the colorValues variable declaration and just put <%
>request.getParameterValues("colors") %>, I get past that line.  Of course,
>the next line then shows colorValues as undefined.
>I don't understand why this is occurring.  I am using Tomcat 4.0.4 and j2sdk
>1.4.0_01.
>Thanks for your help.
>Brian Sharples
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 



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




Re: Bean on Tomcat

2002-08-14 Thread Capr1ce


Theres not any configuration needed.

Ok, so say you put your bean in WEB-INF/classes/beans
and your bean is called FooBean.java
You would use it like this within your JSP:





Is that what you're after?




At 09:14 AM 14/08/2002 -0500, you wrote:
>I'm using java beans in Tomcat (not EJB), and I just put them in
>WEB-INF/classes...
>
>regards
>Alex
>
>
>
>
>
>
>
>Cédric Viaud <[EMAIL PROTECTED]>
>14/08/2002 07:59 a.m.
>Please respond to Tomcat Users List
>
>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> cc:
> Subject:Re: Bean on Tomcat
>
>
>
>Hi,
>
>may you precise what your aiming at ?
>
>If you want tu use EJBs, Tomcat is not en EJB container. You then should
>find one (JBoss is free).
>
>Regards,
>
>Cédric
>
>- Original Message -
>From: "Vishal Mukherjee" <[EMAIL PROTECTED]>
>To: "Tomcat Users List" <[EMAIL PROTECTED]>
>Sent: Wednesday, August 14, 2002 10:51 AM
>Subject: Bean on Tomcat
>
>
> > Hi all
> >
> > Can anyone tell me how to configure beans om Tomcat 4.0.4
> >
> > Thanks & Regards
> > Vishal Mukherjee
> >
> >
> > --
> > To unsubscribe, e-mail:
>
> > For additional commands, e-mail:
>
> >
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 



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




Re: filter

2002-08-14 Thread Capr1ce


Hi, do you have the elements in the correct order as specified by the 
web.xml's DTD?
Refer to section 13.3 of the Servlet (2.3) spec.


At 10:21 AM 14/08/2002 -0300, you wrote:
>   I'm using Tomcat 4.0.4
>   I'm trying to declare a filter in web.xml file, but it refuses to
>work. Here is what I wrote:
>   
> testFilter
> com.test.FilterTest
>   
>   When I start Tomcat it says my XML is invalid. What I'm doing wrong?
>
>--
>
>Felipe Schnack
>Analista de Sistemas
>[EMAIL PROTECTED]
>Cel.: (51)91287530
>Linux Counter #281893
>
>Faculdade Ritter dos Reis
>www.ritterdosreis.br
>[EMAIL PROTECTED]
>Fone/Fax.: (51)32303328
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 



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




Connection pooling using Jakarta commons

2002-08-14 Thread Capr1ce

Hi,

I'm new here. My name's Mel. Hi!

Anyway, I have a question that I cannot find an answer for anywhere.
I've implemented connection pooling using Tomcat 4.0 and the required 
projects from Jakarta commons as instructed in the JNDI resources how to 
that can be found with in the Tomcat documentation. 
(http://jakarta.apache.org/tomcat/tomcat-4.0-doc/jndi-resources-howto.html)
I have edited my server.xml and web.xml files and it works perfectly. How 
comes the time for my project to be transferred onto the new web hosting 
companys web site. This is where I have hit a problem. I cannot edit their 
server.xml. Only my own web.xml. So i've added the  element 
to web.xml:


 jdbc/ocb_clients
 javax.sql.DataSource
 Container


However, server.xml contains many parameters:


 
   factory
   org.apache.commons.dbcp.BasicDataSourceFactory
 
 
  username
  username here
 
 
  password
  password_here
 
 
driverClassName
org.gjt.mm.mysql.Driver
 
 
   url
   jdbc:mysql://localhost:3306/ocb_clients
 


Can these be included in web.xml somehow? Or do I need to take a different 
approach?
Thanks very much for any help,
Mel.




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