Re: How to change hostname in tomcat configuration

2005-05-10 Thread Lutz Zetzsche
Hi Mandar,

Am Dienstag, 10. Mai 2005 20:13 schrieb Mandar Vaidya:
> I was trying for the second option,
>
> Here is how my server.xml file
>
>   
>   
>  prefix="techserv_log." suffix=".txt" timestamp="true"/>
>   
>
>
>But if I do this,  I'm not able to go to
> http://techserv:8080/admin  . It gives me HTTP error 404 ( requested
> page not available. )

Perhaps it is a problem with the Context definitions as they define the 
docBase and the path of the web application? I could imagine that the 
Context files are now in the wrong place after you have renamed the 
host:

$CATALINA_HOME/conf/Catalina/localhost/

should now be

$CATALINA_HOME/conf/Catalina/techserv/

after your hostname has changed. So have a look, if the Context files 
still are in the old directory and, if so, rename the directory from 
"localhost" to "techserv" and restart the Tomcat server.

I hope, this is the solution.


Best wishes

Lutz

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



Re: Restrict access to webapps for IPs

2005-05-10 Thread Lutz Zetzsche
Hi Jens,

Am Mittwoch, 11. Mai 2005 08:17 schrieb Altrock, Jens:
> Ok tried it again.. first some more information:
> I am using Tomcat 5.0.28 on Redhat Fedora Core 3, installed in
> /usr/local/tomcat
>
> I created a XML file called .xml in
> /usr/local/tomcat/conf/Catalina/localhost
> where  is the name of the webapp. That worked so far.
> The file consisted just of a few lines:
>
>  debug="0" privileged="true">
>allow="192.100.46.*,172.16.*.*,194.25.29.*,127.0.0.1"/>
> 
>
> I have to mention that I did neither write that app nor know much
> about it anyway.. it uses a JDBC connection
> to a mysql database to write data to that db. But after creating that
> config file mentioned above, the
> JDBC driver didn't work anymore...
>
> Anyone can help me with that?

It looks like your new Context definition is overriding an existing 
Context definition for this web application which contains the resource 
definition for the MySQL database.

So you should have a look at your $CATALINA_HOME/conf/server.xml if 
there might be a existing Context definition inside the related Host 
element.

You should also look for a context.xml in the 
$CATALINA_HOME/webapps/[webapp]/META-INF/ directory for the same 
reason.

If you will find an existing Context definition, then insert your valve 
filter there and delete you newly created .xml.


Best wishes

Lutz

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



Re: DBCP ClassCastException

2005-05-10 Thread Nikola Milutinovic
Dhiren Bhatia wrote:
I'm using BasicDataSource because javax.sql.DataSource does not have methods 
to set the driver class name, url, username/pwd etc. My app needs to support 
different databases and the driver is loaded based on which database is 
installed.
 

You've got it backwards. It is the responsibility of a J2EE container to 
use whatever the implementatio it likes and set those parameters and 
then give your application just javax.sql.DataSource. THAT will make 
your application portable.

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


AW: Restrict access to webapps for IPs

2005-05-10 Thread Altrock, Jens
Ok tried it again.. first some more information:
I am using Tomcat 5.0.28 on Redhat Fedora Core 3, installed in
/usr/local/tomcat

I created a XML file called .xml in
/usr/local/tomcat/conf/Catalina/localhost
where  is the name of the webapp. That worked so far. The file
consisted just of a few lines:


  


I have to mention that I did neither write that app nor know much about it
anyway.. it uses a JDBC connection
to a mysql database to write data to that db. But after creating that config
file mentioned above, the
JDBC driver didn't work anymore...

Anyone can help me with that?

Regards,

Jens

> -Ursprüngliche Nachricht-
> Von: Lutz Zetzsche [mailto:[EMAIL PROTECTED]
> Gesendet: Dienstag, 10. Mai 2005 16:24
> An: Tomcat Users List
> Betreff: Re: Restrict access to webapps for IPs
>
>
> Hi Jens,
>
> Altrock, Jens schrieb:
> > Hm... won't work :(
> >
> > I added to noe of the apps in
> webapps/name_of_app/WEB-INF/web.xml the
> > following:
> >
> >  > allow="192.100.46.*"/>
> >
> > right after the  tag in the xml file.
> > But people can access that application from the internet anyway...
>
> You have put the Valve element into the wrong file resp.
> place. It cannot
> be nested into the  element and cannot be placed in
> the web.xml.
> You have to nest it into a ,  oder  element.
>
> In your case, you have to nest it into the  element
> because you
> want to apply the filter rule to a web application which is
> equivalent to
> the  element in Tomcat terms.
>
> You should have a look at one of the links I mentioned to
> find the right
> place for the Valve element:
>
> http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html
>
> Try one of these options offered on this page (refers to
> Tomcat version 5.5):
>
> * in individual files (with a ".xml" extension) in the
> $CATALINA_HOME/conf/[enginename]/[hostname]/ directory
> * if the previous file was not found for this application, in
> individual
> file at /META-INF/context.xml inside the application files
>
>
> Best wishes
>
> Lutz
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
###
Diese Nachricht wurde von F-Secure Anti-Virus gescannt.

This message has been scanned by F-Secure Anti-Virus.


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



Re: question about load-on-startup in web.xml

2005-05-10 Thread Annie Wang
hi doug, yup, was thinking along similar lines.  just wasn't sure if
there was some setting i wasn't aware of to do what i'm looking for.

thanks.
-annie

On 5/10/05, Parsons Technical Services <[EMAIL PROTECTED]> wrote:
> I may be off base on this one but I think that once Tomcat fires off the
> init method it doesn't care or monitor the progress of the servlet. Just
> think, some servlets may take several minutes to finish. If other apps had
> to wait then it could take a long time to get the server started.
> 
> Now as for a solution I am really speculating here (hopefully someone can
> educate both of us). I would look at a wait statement in the init method to
> pause the second app's servlet until the first one is done. Simply time the
> first app's servlet and set it for a little more.
> 
> Hopefully someone will set me straight if I am off base here.
> 
> Doug
> 
> - Original Message -
> From: "Annie Wang" <[EMAIL PROTECTED]>
> To: 
> Sent: Tuesday, May 10, 2005 6:59 PM
> Subject: question about load-on-startup in web.xml
> 
> hi,
> 
> regarding the  tag in web.xml:
> 
> say i have 2 web apps (webapp1 and webapp2).  if i configure webapp1's
> servlet to have 1 and webapp2's
> servlet to have 100, does this mean
> that tomcat will init webapp1's servlet first and once that's done,
> it'll init webapp2's servlet?
> 
> basically, i want both web app's servlets to auto initialize on tomcat
> startup, but i want webapp2's servlet to initialze only after
> webapp1's servlet has finished initialization.  when i use the above
> load-on-startup settings, webapp2's servlet seems to initialize before
> webapp1's servlet has finished initialization.
> 
> thanks.
> -annie
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

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



Re: Free reporting s/w that works with apache+tomcat

2005-05-10 Thread Gurumoorthy
use jasper reports with ireports ( GUI ) for jasper ... very nice :o)
- Original Message - 
From: "U K Laxmi" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Wednesday, May 11, 2005 3:47 AM
Subject: Re: Free reporting s/w that works with apache+tomcat


> Guess, this is more suiting to my problem. 
> 
> Thanks for the information.
> Laxmi
> 
> --- Joe Plautz <[EMAIL PROTECTED]> wrote:
> 
> > Sorry I'm late to the party.
> > 
> > I've been working with jasperreports from
> > sourceforge the last couple of 
> > weeks to create reports in PDF. It also has the
> > ability to create an 
> > excel spreadsheet as well, although I haven't used
> > it yet. Using it in 
> > conjunction with iReports, also from sourceforge,
> > you can have a report 
> > in minutes. I would recommend using it to anyone.
> > 
> > Joe
> > 
> > Mike Curwen wrote:
> > > you should consider using POI, if you need
> > Excel-only features like "footer
> > > repeated on every page".
> > >  
> > > Specifically:
> > >
> >
> http://jakarta.apache.org/poi/hssf/quick-guide.html#HeaderFooter
> > >  
> > > 
> > > 
> > > 
> > > 
> > >>-Original Message-
> > >>From: U K Laxmi [mailto:[EMAIL PROTECTED] 
> > >>Sent: Tuesday, May 10, 2005 9:53 AM
> > >>To: Tomcat Users List; [EMAIL PROTECTED]
> > >>Subject: Re: Free reporting s/w that works with
> > apache+tomcat
> > >>
> > >>
> > >>Thank you for the information.
> > >>
> > >>What i mean by header & footer is, column headers
> > and
> > >>some information like model number, date and
> > approval
> > >>signature columns etc.. to appear in every page
> > when
> > >>they take hard copy of the report. Is such a thing
> > >>possible? Pls inform.
> > >>
> > >>The end user of the application doesn't want any
> > >>manual intervention. When he click on 'Export to
> > >>Excel' button in the web application HTML report,
> > he
> > >>want the excel file get downloded (file dialog box
> > >>appears & he save it to his local disk) which has
> > all
> > >>header & footer information set. Currently my
> > >>application can provide header once at the top of
> > the
> > >>report and footer (approval columns & date) at the
> > >>very bottom of the report. THe column headings &
> > >>approval columns doesn't appear on every page. 
> > >>
> > >>I'm unable to ahcieve this in web (HTML). It i cna
> > do
> > >>it in web, when i download that in excel, it will
> > >>show.  Do you know any work around for this? Pls
> > >>inform.
> > >>
> > >>Thank you.
> > >>Laxmi
> > >>
> > >>--- "Frank W. Zammetti" <[EMAIL PROTECTED]>
> > wrote:
> > >>
> > >>
> > >>>Hi,
> > >>>
> > >>>CSV files don't generally contain header and
> > footer 
> > >>
> > >>information... you
> > >>
> > >>>can get column headers in the first row, that's
> > >>>about it.  I don't 
> > >>>believe DataVision will export to Excel natively,
> > >>>but check the docs in 
> > >>>case I'm wrong.
> > >>>
> > >>>Do you really mean header and footer in the sense
> > of
> > >>>a Word document?
> > >>>It's a bit unusual to have such a thing in an
> > Excel
> > >>>document (although 
> > >>>not at all unheard of), so I'm wondering if maybe
> > >>>you mean something a 
> > >>>little different, i.e., maybe just column headers
> > >>>and some sort of totals?
> > >>>
> > >>>Frank
> > >>>
> > >>>U K Laxmi wrote:
> > >>>
> > Thank you for the information. I read your
> > report
> > >>>
> > >>>and
> > >>>
> > it looks interesting. I went to DataVision web
> > >>>
> > >>>site
> > >>>
> > and found that it can export comma separated
> > files
> > >>>
> > >>>ie.
> > >>>
> > CSV file. Will it be possible to retain header
> > and
> > footer information with a .CSV file? I basically
> > >>>
> > >>>want
> > >>>
> > excel files as the report output. B'coz the end
> > >>>
> > >>>user
> > >>>
> > needs to send to those reports to it's vendors.
> > >>>
> > >>>Excel
> > >>>
> > is the most desired format for them. Pls give
> > your
> > feedback on this before i start implementing on
> > >>>
> > >>>this.
> > >>>
> > Thank you.
> > 
> > --- "Frank W. Zammetti" <[EMAIL PROTECTED]>
> > >>>
> > >>>wrote:
> > >>>
> > >Take a look at DataVision.  I think you'll like
> > >>>
> > >>>it.
> > >>>
> > >I wrote an article
> > >a while back specifically dealing with using it
> > in
> > >web applications. 
> > >Although the article uses servlets and you say
> > >>>
> > >>>your
> > >>>
> > >using JSPs (just
> > >JSP's?) it should still be applicable.
> > >
> > >http://www.omnytex.com/articles
> > >
> > >Feel free to ping me if you decide to use it
> > and
> > >need some help getting
> > >going beyond the article and included
> > >>>
> > >>>documentation.
> > >>>
> > >--
> > >Frank W. Zammetti
> > >Founder and Chief Software Architect
> > >Omnytex Technologies
> > >http://www.omnytex.com
> > >
> > >U K Laxmi wrote:
> > >
> > >
> > >>I'm developing a web ap

Re: Form Based Authentication

2005-05-10 Thread Wade Chandler
Wade Chandler wrote:
I have form based authentication working.  But, I need the login form to 
be a little more dynamic.  For instance, I want to use different forms 
for different areas and not always use the same form.  Is this possible? 
 For instance, under one site I want to limit URLs to different logins. 
 I realize I should just have a login and have a userid and a password, 
but my customer wants to simply have an access code to certain pages or 
directories.  I would like to use form based authentication then I can 
have the userid as a hidden variable, and then have a password entered 
by the user, but for some admin screens I need the user to actually 
enter the userid and password both

I hope that makes sense.  I can't figure out how to setup a security 
constraint which can force a particular login form to be used if the 
user is not logged in yet.

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

Ok,
So I think I should be able to do this with a filter, but I need some 
help.  Basically it looks like I should be able to use a filter to some 
how get the original target before the authentication form is 
displayedis this correct?  Basically I need to some how know when a 
particular URL pattern is being displayed or is attempted to be 
accessed...before the login form is displayed.  When it is displayed 
I'll set an attribute in the request in the filters doFilter method. 
However, now I need to know how I can access the Request before the 
authentication mechanism takes over I suppose because from my login form 
accessing the getPathInfo() method is returning the login form 
information when I really need to know the actual path the user was 
attempting to access.  So, can I use a filter to do this, and if so how 
do I make sure my filter is called in time to give me the information I 
need?

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


DBCP Exception

2005-05-10 Thread Joy Kenneth Harry


Hi,
Can anyone tell why I am getting this exception.


SEVERE: Null component
Catalina:type=DataSource,path=/,host=localhost,class=javax.sql.DataSourc
e,
name="jdbc/oracle"


Thanks
Joy Kenneth


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



Form Based Authentication

2005-05-10 Thread Wade Chandler
I have form based authentication working.  But, I need the login form to 
be a little more dynamic.  For instance, I want to use different forms 
for different areas and not always use the same form.  Is this possible? 
 For instance, under one site I want to limit URLs to different logins. 
 I realize I should just have a login and have a userid and a password, 
but my customer wants to simply have an access code to certain pages or 
directories.  I would like to use form based authentication then I can 
have the userid as a hidden variable, and then have a password entered 
by the user, but for some admin screens I need the user to actually 
enter the userid and password both

I hope that makes sense.  I can't figure out how to setup a security 
constraint which can force a particular login form to be used if the 
user is not logged in yet.

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


RE: Apache+Tomcat

2005-05-10 Thread Caldarale, Charles R
> From: Praveen KUMAR [mailto:[EMAIL PROTECTED] 
> Subject: Apache+Tomcat
> 
> What would be difference in both the scenarios in terms of 
> performance and reliability?

Reliability: (very) generally, the fewer moving parts, the less chance
of problems.

Performance: only you can answer that question by measuring how your
application runs on both configurations on the target hardware and OS.
Note that the Tomcat 5.5 branch is noticeably faster than 5.0.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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



Re: Apache+Tomcat

2005-05-10 Thread Jason Bainbridge
On 5/10/05, Praveen KUMAR <[EMAIL PROTECTED]> wrote:
> Hello,
> 
> I am little bit confuse in following decision:
> 
> Should be use
> 
> 1- Apache (2.0.54) + Tomcat (5.0.28) in production with tomcat listener
> (through Coyote connector) configured with mod_jk (1.2.12) with apache
> 2- Or Standalone Tomcat (with their standard apache provided by tomcat)

If you need to ask this question then you should be using Apache
Tomcat standalone using the Coyote connector that comes standard.

If you have specialized needs that aren't being met by Tomcat
standaone then you might consider looking at an apache Webserver front
end.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Apache+Tomcat

2005-05-10 Thread Praveen KUMAR
Hello,
I am little bit confuse in following decision:
Should be use
1- Apache (2.0.54) + Tomcat (5.0.28) in production with tomcat listener 
(through Coyote connector) configured with mod_jk (1.2.12) with apache
2- Or Standalone Tomcat (with their standard apache provided by tomcat)

What would be difference in both the scenarios in terms of performance 
and reliability?

--
With best regards,
Praveen Soni

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


Re: Free reporting s/w that works with apache+tomcat

2005-05-10 Thread U K Laxmi
Guess, this is more suiting to my problem. 

Thanks for the information.
Laxmi

--- Joe Plautz <[EMAIL PROTECTED]> wrote:

> Sorry I'm late to the party.
> 
> I've been working with jasperreports from
> sourceforge the last couple of 
> weeks to create reports in PDF. It also has the
> ability to create an 
> excel spreadsheet as well, although I haven't used
> it yet. Using it in 
> conjunction with iReports, also from sourceforge,
> you can have a report 
> in minutes. I would recommend using it to anyone.
> 
> Joe
> 
> Mike Curwen wrote:
> > you should consider using POI, if you need
> Excel-only features like "footer
> > repeated on every page".
> >  
> > Specifically:
> >
>
http://jakarta.apache.org/poi/hssf/quick-guide.html#HeaderFooter
> >  
> > 
> > 
> > 
> > 
> >>-Original Message-
> >>From: U K Laxmi [mailto:[EMAIL PROTECTED] 
> >>Sent: Tuesday, May 10, 2005 9:53 AM
> >>To: Tomcat Users List; [EMAIL PROTECTED]
> >>Subject: Re: Free reporting s/w that works with
> apache+tomcat
> >>
> >>
> >>Thank you for the information.
> >>
> >>What i mean by header & footer is, column headers
> and
> >>some information like model number, date and
> approval
> >>signature columns etc.. to appear in every page
> when
> >>they take hard copy of the report. Is such a thing
> >>possible? Pls inform.
> >>
> >>The end user of the application doesn't want any
> >>manual intervention. When he click on 'Export to
> >>Excel' button in the web application HTML report,
> he
> >>want the excel file get downloded (file dialog box
> >>appears & he save it to his local disk) which has
> all
> >>header & footer information set. Currently my
> >>application can provide header once at the top of
> the
> >>report and footer (approval columns & date) at the
> >>very bottom of the report. THe column headings &
> >>approval columns doesn't appear on every page. 
> >>
> >>I'm unable to ahcieve this in web (HTML). It i cna
> do
> >>it in web, when i download that in excel, it will
> >>show.  Do you know any work around for this? Pls
> >>inform.
> >>
> >>Thank you.
> >>Laxmi
> >>
> >>--- "Frank W. Zammetti" <[EMAIL PROTECTED]>
> wrote:
> >>
> >>
> >>>Hi,
> >>>
> >>>CSV files don't generally contain header and
> footer 
> >>
> >>information... you
> >>
> >>>can get column headers in the first row, that's
> >>>about it.  I don't 
> >>>believe DataVision will export to Excel natively,
> >>>but check the docs in 
> >>>case I'm wrong.
> >>>
> >>>Do you really mean header and footer in the sense
> of
> >>>a Word document?
> >>>It's a bit unusual to have such a thing in an
> Excel
> >>>document (although 
> >>>not at all unheard of), so I'm wondering if maybe
> >>>you mean something a 
> >>>little different, i.e., maybe just column headers
> >>>and some sort of totals?
> >>>
> >>>Frank
> >>>
> >>>U K Laxmi wrote:
> >>>
> Thank you for the information. I read your
> report
> >>>
> >>>and
> >>>
> it looks interesting. I went to DataVision web
> >>>
> >>>site
> >>>
> and found that it can export comma separated
> files
> >>>
> >>>ie.
> >>>
> CSV file. Will it be possible to retain header
> and
> footer information with a .CSV file? I basically
> >>>
> >>>want
> >>>
> excel files as the report output. B'coz the end
> >>>
> >>>user
> >>>
> needs to send to those reports to it's vendors.
> >>>
> >>>Excel
> >>>
> is the most desired format for them. Pls give
> your
> feedback on this before i start implementing on
> >>>
> >>>this.
> >>>
> Thank you.
> 
> --- "Frank W. Zammetti" <[EMAIL PROTECTED]>
> >>>
> >>>wrote:
> >>>
> >Take a look at DataVision.  I think you'll like
> >>>
> >>>it.
> >>>
> >I wrote an article
> >a while back specifically dealing with using it
> in
> >web applications. 
> >Although the article uses servlets and you say
> >>>
> >>>your
> >>>
> >using JSPs (just
> >JSP's?) it should still be applicable.
> >
> >http://www.omnytex.com/articles
> >
> >Feel free to ping me if you decide to use it
> and
> >need some help getting
> >going beyond the article and included
> >>>
> >>>documentation.
> >>>
> >--
> >Frank W. Zammetti
> >Founder and Chief Software Architect
> >Omnytex Technologies
> >http://www.omnytex.com
> >
> >U K Laxmi wrote:
> >
> >
> >>I'm developing a web application using
> >
> >apache+tomcat
> >
> >
> >>on windows 2000 machine. I'm using Ms Access
> 2003
> >
> >as
> >
> >
> >>the backend. I'm using JSP for developing web
> >>application. I'm developing some web based
> >>>
> >>>reports
> >>>
> >in
> >
> >
> >>HTML. But when i export them to Excel, it
> doesn't
> >
> >look
> >
> >
> >>exactly same as that of HTML report. Moreover
> i
> 
=== message truncated ===




Yahoo! Mail
Stay connected, organized, and protected. Take the tour:
http://tour.mail.yahoo.com/mailtour.html


-

RE: Free reporting s/w that works with apache+tomcat

2005-05-10 Thread U K Laxmi
Thanks for the info. I will read on this.

--- Mike Curwen <[EMAIL PROTECTED]>
wrote:

> you should consider using POI, if you need
> Excel-only features like "footer
> repeated on every page".
>  
> Specifically:
>
http://jakarta.apache.org/poi/hssf/quick-guide.html#HeaderFooter
>  
> 
> 
> 
> > -Original Message-
> > From: U K Laxmi [mailto:[EMAIL PROTECTED] 
> > Sent: Tuesday, May 10, 2005 9:53 AM
> > To: Tomcat Users List; [EMAIL PROTECTED]
> > Subject: Re: Free reporting s/w that works with
> apache+tomcat
> > 
> > 
> > Thank you for the information.
> > 
> > What i mean by header & footer is, column headers
> and
> > some information like model number, date and
> approval
> > signature columns etc.. to appear in every page
> when
> > they take hard copy of the report. Is such a thing
> > possible? Pls inform.
> > 
> > The end user of the application doesn't want any
> > manual intervention. When he click on 'Export to
> > Excel' button in the web application HTML report,
> he
> > want the excel file get downloded (file dialog box
> > appears & he save it to his local disk) which has
> all
> > header & footer information set. Currently my
> > application can provide header once at the top of
> the
> > report and footer (approval columns & date) at the
> > very bottom of the report. THe column headings &
> > approval columns doesn't appear on every page. 
> > 
> > I'm unable to ahcieve this in web (HTML). It i cna
> do
> > it in web, when i download that in excel, it will
> > show.  Do you know any work around for this? Pls
> > inform.
> > 
> > Thank you.
> > Laxmi
> > 
> > --- "Frank W. Zammetti" <[EMAIL PROTECTED]>
> wrote:
> > 
> > > Hi,
> > > 
> > > CSV files don't generally contain header and
> footer 
> > information... you
> > > can get column headers in the first row, that's
> > > about it.  I don't 
> > > believe DataVision will export to Excel
> natively,
> > > but check the docs in 
> > > case I'm wrong.
> > > 
> > > Do you really mean header and footer in the
> sense of
> > > a Word document?
> > > It's a bit unusual to have such a thing in an
> Excel
> > > document (although 
> > > not at all unheard of), so I'm wondering if
> maybe
> > > you mean something a 
> > > little different, i.e., maybe just column
> headers
> > > and some sort of totals?
> > > 
> > > Frank
> > > 
> > > U K Laxmi wrote:
> > > > Thank you for the information. I read your
> report
> > > and
> > > > it looks interesting. I went to DataVision web
> > > site
> > > > and found that it can export comma separated
> files
> > > ie.
> > > > CSV file. Will it be possible to retain header
> and
> > > > footer information with a .CSV file? I
> basically
> > > want
> > > > excel files as the report output. B'coz the
> end
> > > user
> > > > needs to send to those reports to it's
> vendors.
> > > Excel
> > > > is the most desired format for them. Pls give
> your
> > > > feedback on this before i start implementing
> on
> > > this.
> > > > Thank you.
> > > > 
> > > > --- "Frank W. Zammetti" <[EMAIL PROTECTED]>
> > > wrote:
> > > > 
> > > >>Take a look at DataVision.  I think you'll
> like
> > > it.
> > > >>I wrote an article
> > > >>a while back specifically dealing with using
> it in
> > > >>web applications. 
> > > >>Although the article uses servlets and you say
> > > your
> > > >>using JSPs (just
> > > >>JSP's?) it should still be applicable.
> > > >>
> > > >>http://www.omnytex.com/articles
> > > >>
> > > >>Feel free to ping me if you decide to use it
> and
> > > >>need some help getting
> > > >>going beyond the article and included
> > > documentation.
> > > >>
> > > >>--
> > > >>Frank W. Zammetti
> > > >>Founder and Chief Software Architect
> > > >>Omnytex Technologies
> > > >>http://www.omnytex.com
> > > >>
> > > >>U K Laxmi wrote:
> > > >>
> > > >>>I'm developing a web application using
> > > >>
> > > >>apache+tomcat
> > > >>
> > > >>>on windows 2000 machine. I'm using Ms Access
> 2003
> > > >>
> > > >>as
> > > >>
> > > >>>the backend. I'm using JSP for developing web
> > > >>>application. I'm developing some web based
> > > reports
> > > >>
> > > >>in
> > > >>
> > > >>>HTML. But when i export them to Excel, it
> doesn't
> > > >>
> > > >>look
> > > >>
> > > >>>exactly same as that of HTML report. Moreover
> i
> > > >>
> > > >>need
> > > >>
> > > >>>some header and footer information appear in
> the
> > > >>>report. That i'm unable to achieve using JSP
> and
> > > >>
> > > >>HTML.
> > > >>
> > > >>>
> > > >>>So, i'm looking for a free reporting software
> > > that
> > > >>
> > > >>can
> > > >>
> > > >>>meet above functionality and can work with
> > > >>>apache+tomcat. If anyone know any work
> worunds
> > > for
> > > >>
> > > >>my
> > > >>
> > > >>>problem, pls inform me. It will be a great
> help
> > > to
> > > >>
> > > >>me.
> > > >>
> > > >>>Thank you.
> > > >>>
> > > >>>
> > > >>>   
> > > >>>__
> > > >>>Yahoo! Mail Mobile 
> > > >>>Take Yahoo! Mail with you! Check em

Re: Free reporting s/w that works with apache+tomcat

2005-05-10 Thread U K Laxmi
Sure. It's a good pointer to me to look into. Sure to
do more study on this. 

Thank you.
Laxmi

--- Mike Trotman <[EMAIL PROTECTED]> wrote:
> This is not a solution - but a recommendation.
> 
> If you output your Excel files in the XML format -
> then you can specify 
> whatever you like (excluding charts).
> A simple way to determine what XML you need is to
> create a test Excel 
> file 1st and then save it as XML and paramterise it.
> You can set Page size, document headers, footers,
> hide gridlines, define 
> styles - anything you want.
> 
> There is a Perl module (Spreadsheet::WriteExcelXML)
> which I use for this 
> - rather than writing the XML myself.
> But the Excel XML is reasonably simple.
> 
> I'm afraid I don't know if there are any
> corresponding Java utilities.
> 
> 
> HTH
> 
> Mike
> 
> U K Laxmi wrote:
> 
> >Thank you for the information.
> >
> >What i mean by header & footer is, column headers
> and
> >some information like model number, date and
> approval
> >signature columns etc.. to appear in every page
> when
> >they take hard copy of the report. Is such a thing
> >possible? Pls inform.
> >
> >The end user of the application doesn't want any
> >manual intervention. When he click on 'Export to
> >Excel' button in the web application HTML report,
> he
> >want the excel file get downloded (file dialog box
> >appears & he save it to his local disk) which has
> all
> >header & footer information set. Currently my
> >application can provide header once at the top of
> the
> >report and footer (approval columns & date) at the
> >very bottom of the report. THe column headings &
> >approval columns doesn't appear on every page. 
> >
> >I'm unable to ahcieve this in web (HTML). It i cna
> do
> >it in web, when i download that in excel, it will
> >show.  Do you know any work around for this? Pls
> >inform.
> >
> >Thank you.
> >Laxmi
> >
> >--- "Frank W. Zammetti" <[EMAIL PROTECTED]>
> wrote:
> >
> >  
> >
> >>Hi,
> >>
> 
> 
> 
> -- 
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.0.308 / Virus Database: 266.11.8 -
> Release Date: 10/05/2005
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 



Discover Yahoo! 
Get on-the-go sports scores, stock quotes, news and more. Check it out! 
http://discover.yahoo.com/mobile.html

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



Re: question about load-on-startup in web.xml

2005-05-10 Thread Parsons Technical Services
I may be off base on this one but I think that once Tomcat fires off the 
init method it doesn't care or monitor the progress of the servlet. Just 
think, some servlets may take several minutes to finish. If other apps had 
to wait then it could take a long time to get the server started.

Now as for a solution I am really speculating here (hopefully someone can 
educate both of us). I would look at a wait statement in the init method to 
pause the second app's servlet until the first one is done. Simply time the 
first app's servlet and set it for a little more.

Hopefully someone will set me straight if I am off base here.
Doug
- Original Message - 
From: "Annie Wang" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, May 10, 2005 6:59 PM
Subject: question about load-on-startup in web.xml

hi,
regarding the  tag in web.xml:
say i have 2 web apps (webapp1 and webapp2).  if i configure webapp1's
servlet to have 1 and webapp2's
servlet to have 100, does this mean
that tomcat will init webapp1's servlet first and once that's done,
it'll init webapp2's servlet?
basically, i want both web app's servlets to auto initialize on tomcat
startup, but i want webapp2's servlet to initialze only after
webapp1's servlet has finished initialization.  when i use the above
load-on-startup settings, webapp2's servlet seems to initialize before
webapp1's servlet has finished initialization.
thanks.
-annie
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


question about load-on-startup in web.xml

2005-05-10 Thread Annie Wang
hi,

regarding the  tag in web.xml:

say i have 2 web apps (webapp1 and webapp2).  if i configure webapp1's
servlet to have 1 and webapp2's
servlet to have 100, does this mean
that tomcat will init webapp1's servlet first and once that's done,
it'll init webapp2's servlet?

basically, i want both web app's servlets to auto initialize on tomcat
startup, but i want webapp2's servlet to initialze only after
webapp1's servlet has finished initialization.  when i use the above
load-on-startup settings, webapp2's servlet seems to initialize before
webapp1's servlet has finished initialization.

thanks.
-annie

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



Re: Setting an environment variable in tomcat 5.5 service?

2005-05-10 Thread Lutz Zetzsche
Hi Mufaddal,

Am Dienstag, 10. Mai 2005 21:33 schrieb Mufaddal Khumri:
> I have Tomcat 5.5 running as a service on Windows XP. Where in Tomcat
> can I set an environment variable?
>
> I can set an environment variable by going to Control Panel -> System
> -> Advanced -> Environment variables, but I want to do it in
> Catalina.sh or equivalent.
>
> In my Tomcat/bin folder I have got: bootstrap.jar,
> commons-logging-api.jar, tomcat5.exe, tomcat5w.exe. I do not see a
> Catalina.sh or equivalent.

You have different options where to set environment variables. Choosing 
the right place for your variable declaration depends on your 
intention.

You can set environment variables here:

1.
In $CATALINA_HOME/conf/server.xml,
using the Environment element nested inside the GlobalNamingResources 
element:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/globalresources.html

2.
In context files in different places, i.e. 
$CATALINA_HOME/conf/context.xml or 
$CATALINA_HOME/conf/[enginename]/[hostname]/[webappname].xml,
using the Environment element nested inside the Context element:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html#Environment%20Entries

3.
In $CATALINA_HOME/webapps/[webappname]/WEB-INF/web.xml, like 
demonstrated here:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html#Environment%20Entries


Best wishes

Lutz

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



RE: Autodeploy not working on Tomcat 5.5.9

2005-05-10 Thread Marquez, Omar
Hi Luntz,

Thanks for answering.

this is from my server.xml

  

 
/usr/local/tomcat/conf/context.xml
  WEB-INF/web.xml


 
/usr/local/tomcat/conf/context.xml
  WEB-INF/web.xml

  


even when I put this info manually on the server.xml and inmediatelly
restarted the server and then overwrited the existing war file with a new
one tomcat continued delivering and old version of the jsp page ...

[work directory]
I tried stopping tomcat:
 # service tomcat stop
 # rm -rf /usr/local/tomcat/work/Catalina/*
 # service tomcat start
(the content of the directory is recreated)

but still the page delivered is the old one

I even tried stopping tomcat, deleting the extracted version of the war file
on the webapps folder and restarting tomcat. What happenes is that tomcat
unpacks the new war file , and i see on the uncompressed subdirectoty the
newer version of the files, but still when i request a page it delivers the
old one out of nowhere!!! 

In the previous version (5.0.27) I dont needed to do any of this. It was
enough with overwriting the war file !!! Where is the configuration
diffrenece ... I notice Context being added to the server.xml when an App is
deployed for the first time but nothing else , I'm at lost :(

What could it be?
Thanks,
Omar


-Original Message-
From: Lutz Zetzsche [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 10, 2005 2:32 PM
To: Tomcat Users List
Subject: Re: Autodeploy not working on Tomcat 5.5.9


Hi Omar,

Am Dienstag, 10. Mai 2005 18:33 schrieb Marquez, Omar:
> Tomcat 5.5.9 running on Linux Fedora core 2
>
> Tomcat upgraded from version 5.0.27  to version 5.5.9 + Admin app
>
> Version 5.5.9 seems to run faster, however we cannot redeploy
> applications, when a war file on the webapps folder is overwritten
> with a new version tomcat ignores it and continues serving the old
> version.
> Even if we undeploy the application from the Manager and then
> overwrite the war file and restart the application tomcat continues
> serving the old app  from memory perhaps???

Do you have set unpackWARs="true"? If yes: Was the unpacked web 
application also removed during the undeployment?

Another idea: Did you empty the work directory?


> We have autodeploy="true" in the host and reload="yes" on the context

It should be reloadable="true"! Just a typing error here, or is it wrong 
in yor config file, too?


Best wishes

Lutz

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
The information contained in this communication may be CONFIDENTIAL and is
intended only for the use of the recipient(s) named above.  If you are not
the intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this communication, or any of its contents, is
strictly prohibited.   If you have received this communication in error,
please notify the sender and delete/destroy the original message and any
copy of it from your computer or paper files.

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



Re: UTF-8 Problem with Tomcat 5.0.27 and POST

2005-05-10 Thread Harry Mantheakis
> I desperatly try to POST UTF-8 data to an application using struts.
> GET method works perfectly fine, but post does not.
> I am using CharacterEncodingFilter
> All pages have Content-Type header

I assume you're calling:

response.setContentType( "text/html; charset=UTF-8" );

You'll also want to specify the following HTML header meta-tag in your JSPs:



I'm not using Struts, so I account account for that fact.

HTH

Harry Mantheakis
London, UK


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



Why does this Log is not created?

2005-05-10 Thread =?iso-8859-1?Q?Lorenzo_Jim=E9nez?=
Hi,

Thanks for reading this. I need to know why my Tomcat 5.0.28 (RedHat 9) is not 
logging.


In my server.xml I have 2 domains:













--

The problem is that Tomcat do not create domain2 and domain2/global directories 
in logs, and also web_domain2...log files, but the application and domain2 is 
working ok.

Why is that?

Thanks,

Lorenzo Jiménez



-

Si usted no es el destinatario indicado en este mensaje o responsable como 
persona 
de la entrega del mensaje, no debe copiar o reenviar este mensaje, por favor 
notifique 
al correo [EMAIL PROTECTED] Para más referencia sobre términos importantes 
relacionados a este correo visite http://www.nacion.com/disclaimer/index_es2.htm

If you are not the addressee indicated in this message (or responsible for 
delivery of the 
message to such person), you may not copy or send this message to anyone, 
please notify
to [EMAIL PROTECTED] Click here for important additional terms relating to this 
e-mail. 


-



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



Re: How do I handle International Characters

2005-05-10 Thread Harry Mantheakis
> A method we have used with success for inbound request encoding is to add a
> Servlet Filter to our application whose sole job is to call
> request.setCharacterEncoding("UTF-8")
> 
> Allistair.

And you might consider adding a call to:

response.setContentType( "text/html; charset=UTF-8" );

In the same filter. It can be reset if a servlet (or JSP) needs to do
something different, like downloading files.

Harry Mantheakis
London, UK


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



Re: Autodeploy not working on Tomcat 5.5.9

2005-05-10 Thread Lutz Zetzsche
Hi Omar,

Am Dienstag, 10. Mai 2005 18:33 schrieb Marquez, Omar:
> Tomcat 5.5.9 running on Linux Fedora core 2
>
> Tomcat upgraded from version 5.0.27  to version 5.5.9 + Admin app
>
> Version 5.5.9 seems to run faster, however we cannot redeploy
> applications, when a war file on the webapps folder is overwritten
> with a new version tomcat ignores it and continues serving the old
> version.
> Even if we undeploy the application from the Manager and then
> overwrite the war file and restart the application tomcat continues
> serving the old app  from memory perhaps???

Do you have set unpackWARs="true"? If yes: Was the unpacked web 
application also removed during the undeployment?

Another idea: Did you empty the work directory?


> We have autodeploy="true" in the host and reload="yes" on the context

It should be reloadable="true"! Just a typing error here, or is it wrong 
in yor config file, too?


Best wishes

Lutz

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



Re: UTF-8 Problem with Tomcat 5.0.27 and POST

2005-05-10 Thread Jimmy Ray
You dont really give enough details for your problem
but...

Maybe you have to decode the UTF-8 data. 
URLDecoder.decode("","UTF-8") should
do the trick.  Most GET requests are decoded before
the request parameters reach the servlet.  POST
requests require the decode process.

Regards,

Jimmy Ray
--- "Bernhard v. Fromberg"
<[EMAIL PROTECTED]> wrote:
> Hi all,
> 
> I desperatly try to POST UTF-8 data to an
> application using struts.
> GET method works perfectly fine, but post does not.
> I am using CharacterEncodingFilter
> All pages have Content-Type header
> 
> java1.5.0 update 2
> Tomcat 5.0.27
> various Un*x systems.
> 
> Tia
> Bernhard
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 



Discover Yahoo! 
Have fun online with music videos, cool games, IM and more. Check it out! 
http://discover.yahoo.com/online.html

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



Setting an environment variable in tomcat 5.5 service?

2005-05-10 Thread Mufaddal Khumri
Hi,

I have Tomcat 5.5 running as a service on Windows XP. Where in Tomcat
can I set an environment variable?

I can set an environment variable by going to Control Panel -> System ->
Advanced -> Environment variables, but I want to do it in Catalina.sh or
equivalent. 

In my Tomcat/bin folder I have got: bootstrap.jar,
commons-logging-api.jar, tomcat5.exe, tomcat5w.exe. I do not see a
Catalina.sh or equivalent.

Thanks.


--
This email and any files transmitted with it are confidential 
and intended solely for the use of the individual or entity 
to whom they are addressed. If you have received this 
email in error please notify the system manager. Please
note that any views or opinions presented in this email 
are solely those of the author and do not necessarily
represent those of the company. Finally, the recipient
should check this email and any attachments for the 
presence of viruses. The company accepts no liability for
any damage caused by any virus transmitted by this email.
Consult your physician prior to the use of any medical
supplies or product.
--


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



Problem With Tomcat Admin Application

2005-05-10 Thread Farid Izem
Hi all,

I have installed a new tomcat server 5.0.28 on Linux Slackware 10.
I' m facing a strange problem configuring my tomcat admin webapps.
I wrote my own server.xml to learn how tomcat is working.
I'm fully accessing the tomcat manager and Tomcat Administration.
The Authentication is made using tomcat-users.xml.
i can manage each item of Tomcat Administration except the Service catalina.
i can create groups, roles, users, jdbc, mail sessions but accessing to 
The Service Catalina gives me a http 500 Error Code with the
followings messages :

2005-05-10 22:19:29 ApplicationDispatcher[/admin] Servlet.service()
for servlet admin.service.service_jsp threw exception
javax.servlet.jsp.JspException: Define tag cannot set a null value
at org.apache.struts.taglib.bean.DefineTag.doEndTag(DefineTag.java:272)
at admin.service.service_jsp._jspService(service_jsp.java:237)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704)
at 
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:474)
at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:409)
at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)
at 
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
at 
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:540)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:535)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:535)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at 
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.ja

Re: tomcat restart?

2005-05-10 Thread Patrick Thomas
Rick,

Actually, I believe it might be possible. Ugly, but possible. Using
Runtime.getRuntime() to get the current runtime, you can then actually
make a call to a shell command. You could call a batch file that would
shut down the server and then restart it. What I don't know is if the
newly exec'd process gets taken down with tomcat... if so, you could
have the shell program that you call start a new process that would
not be associated with the existing one (in windows you can use the
command 'start' in a batch file to start a separate process... someone
else will no doubt supply the *nix equivalent).

For example in the servlet use:
Runtime.getRuntime().exec("call_bounce_tomcat.bat");

Then call_bounce_tomcat.bat would contain:
start /SEPERATE bounce_tomcat.bat

bounce_tomcat.bat would actually do the work of restarting tomcat
(specifically how, I'll let you worry about ;).

Sorry I don't have more time to flesh everything out, but take a look
and see if that'll get you where you need to go.

Cheers,
Patrick

Some references:

http://forum.java.sun.com/thread.jspa?threadID=618882
http://www-106.ibm.com/developerworks/forums/dw_expandTree.jsp?thread=55224&forum=177&cat=10&message=4086232
http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Runtime.html

On 5/10/05, Dale, Matt <[EMAIL PROTECTED]> wrote:
> 
> This is not possible as even if it could be shut down then the servlet will 
> no longer exist to restart it. The only way would be for the servlet to 
> notify some external process that the tomcat needs to be restarted and the 
> external process will do the stopping and starting.
> 
> Ta
> Matt
> 
> -Original Message-
> From: Beton, Richard [mailto:[EMAIL PROTECTED]
> Sent: 10 May 2005 10:56
> To: Tomcat Users List
> Subject: tomcat restart?
> 
> Is it possible to write a servlet that can restart Tomcat 5.5?
> 
> I am loading native library code and this has to be in the shared/lib
> 
> area for the webapp to be restartable (if it's in the webapp/WEB-INF/lib
> then restarting the webapp fails). However, I want to be able to install
> a new version of my code, then restart Tomcat and then my webapp will
> 
> pick up the new version.
> 
> Rick
> 
> refs:
> 
> http://jakarta.apache.org/tomcat/tomcat-5.5-doc/class-loader-howto.html
> 
> http://jakarta.apache.org/tomcat/tomcat-5.5-doc/RELEASE-NOTES.txt
> 
> --
> 
> Visit our website at www.roke.co.uk
> 
> Roke Manor Research Ltd, Roke Manor, Romsey, Hampshire SO51 0ZN, UK.
> 
> The information contained in this e-mail and any attachments is proprietary to
> Roke Manor Research Ltd and must not be passed to any third party without
> permission. This communication is for information only and shall not create or
> change any contractual relationship.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

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



Help needed with Hibernate persistent servlet

2005-05-10 Thread David Haynes
I feel that I am almost there, but can't quite get the last problem out 
of the way.

I am using Tomcat 5.5.7, NetBeans 4.1rc2, and Hibernate 3.0.3.
I have set up the web.xml for my project to start the HibernateUtil as a 
load-on-startup servlet and confirmed that the proper libraries (jar 
files) are in place under WEB-INF/lib. I know that the servlet is 
running since I put the declaration into the global web.xml and got back 
the duplicate service error.

My problem is that I am getting NoClassDefFoundError. Looking at the 
java generated for my jsp, I see that the class not found is the one 
which references my persistent object. ( i.e. when I reference 
HibernateUtil.currentSession() )

Do I need to do something else to make the persistent object visible to 
my jsp? The jsp does import my package containing HibernateUtil and the 
org.hibernate.* set as well.

Googling seems to indicate that getting this to work is an often seen 
problem, but there not a lot of details about how to fix this. I have 
checked all the fixes I can find but nothing seems to be working.

Thanks for any ideas/help.
-david-
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Free reporting s/w that works with apache+tomcat

2005-05-10 Thread Mike Trotman
This is not a solution - but a recommendation.
If you output your Excel files in the XML format - then you can specify 
whatever you like (excluding charts).
A simple way to determine what XML you need is to create a test Excel 
file 1st and then save it as XML and paramterise it.
You can set Page size, document headers, footers, hide gridlines, define 
styles - anything you want.

There is a Perl module (Spreadsheet::WriteExcelXML) which I use for this 
- rather than writing the XML myself.
But the Excel XML is reasonably simple.

I'm afraid I don't know if there are any corresponding Java utilities.
HTH
Mike
U K Laxmi wrote:
Thank you for the information.
What i mean by header & footer is, column headers and
some information like model number, date and approval
signature columns etc.. to appear in every page when
they take hard copy of the report. Is such a thing
possible? Pls inform.
The end user of the application doesn't want any
manual intervention. When he click on 'Export to
Excel' button in the web application HTML report, he
want the excel file get downloded (file dialog box
appears & he save it to his local disk) which has all
header & footer information set. Currently my
application can provide header once at the top of the
report and footer (approval columns & date) at the
very bottom of the report. THe column headings &
approval columns doesn't appear on every page. 

I'm unable to ahcieve this in web (HTML). It i cna do
it in web, when i download that in excel, it will
show.  Do you know any work around for this? Pls
inform.
Thank you.
Laxmi
--- "Frank W. Zammetti" <[EMAIL PROTECTED]> wrote:
 

Hi,

--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.11.8 - Release Date: 10/05/2005
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Is it possible to run a Tomcat 4.x and Tomcat 5.x on one computer

2005-05-10 Thread Tim Funk
Yes you can run as many tomats as you wish.
Make sure the shutdown ports are different. The default is 8005.
-Tim
ojay78 wrote:
Hi,
 

I have 2 webapplications and one of them have to run with the tomcat 4.x
Version the other one I want do install it on the new 5.x version. Can I
install both tomcat versions on the same server?
 

Are both versions independent, so when one crashs it has no influence on the
other?
 

I tried it today but I could only detect one Tomcat process in the
Taskmanager and I could only connect to the 4.x manager tool although I gave
one version the port 8080 and the other one 9090.???!!!
 
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Is it possible to run a Tomcat 4.x and Tomcat 5.x on one computer

2005-05-10 Thread ojay78
Hi,

 

I have 2 webapplications and one of them have to run with the tomcat 4.x
Version the other one I want do install it on the new 5.x version. Can I
install both tomcat versions on the same server?

 

Are both versions independent, so when one crashs it has no influence on the
other?

 

I tried it today but I could only detect one Tomcat process in the
Taskmanager and I could only connect to the 4.x manager tool although I gave
one version the port 8080 and the other one 9090.???!!!

 

 

Thanks for your help!

 

Oliver



Is it possible to run a Tomcat 4.x and Tomcat 5.x on one computer

2005-05-10 Thread ojay78
Hi,

 

I have 2 webapplications and one of them have to run with the tomcat 4.x
Version the other one I want do install it on the new 5.x version. Can I
install both tomcat versions on the same server?

 

Are both versions independent, so when one crashs it has no influence on the
other?

 

I tried it today but I could only detect one Tomcat process in the
Taskmanager and I could only connect to the 4.x manager tool although I gave
one version the port 8080 and the other one 9090.???!!!

 

 

Thanks for your help!

 

Oliver



UTF-8 Problem with Tomcat 5.0.27 and POST

2005-05-10 Thread Bernhard v. Fromberg
Hi all,
I desperatly try to POST UTF-8 data to an application using struts.
GET method works perfectly fine, but post does not.
I am using CharacterEncodingFilter
All pages have Content-Type header
java1.5.0 update 2
Tomcat 5.0.27
various Un*x systems.
Tia
Bernhard
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: How to change hostname in tomcat configuration

2005-05-10 Thread Mandar Vaidya
Thank you Lutz,

I was trying for the second option, 

Here is how my server.xml file 

  
  

  


   But if I do this,  I'm not able to go to http://techserv:8080/admin  .
It gives me HTTP error 404 ( requested page not available. )


Thanks,
Mandar

 

-Original Message-
From: Lutz Zetzsche [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 10, 2005 11:51 AM
To: Tomcat Users List
Subject: Re: How to change hostname in tomcat configuration

Hi Mandar,

Mandar Vaidya schrieb:
> I'm trying to change hostname on the tomcat server from localhost 
> to my server name. After I change it in server.xml, I'm able to go to 
> http://servername:8080  url, but I'm not able to go to 
> http://servername:8080/admin .  It gives me error.
>
> Aprreciate any help regarding this.

Instead of changing the name attribute of your Host element from "localhost"
to "servername", you can also simply nest an Alias element into the Host
element:

 
   ...
   servername
   ...
 

However, if you prefer to change the name attribute rather than to add an
alias, make sure to customize the defaultHost attribute of your Engine
element if you only have one Host element inside:

"The default host name, which identifies the Host that will process requests
directed to host names on this server, but which are not configured in this
configuration file. This name MUST match the name attributes of one of the
Host elements nested immediately inside."

!


Best wishes

Lutz


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

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



Re: Tomcat5.5.9 + jdk1.5 HTTPS

2005-05-10 Thread Mark Thomas
What command did you use to generate the certificate request in the 
first place?

Mark
Carlos Conde wrote:
Hello,
I'm trying to enable HTTPS with Tomcat5.5.9. Here is my connector description in
the server.xml file:

my keystore is valid, keys have been imported successfully (certificate from
Thawte).
New, when I try to connect to https://myserver:8443/, the browser show an error
saying he hasn't a common encryption algorithm with the server ...
any ideas ?

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


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


Re: Does Tomcat support URL containing CHINESE characters?

2005-05-10 Thread Mark Thomas
As a minimum you are going to need to set the URIEncoding attribute on
the connector. I guess this needs to be set to UTF-8.

I have done some limited testing on this in the past and it is possible
but given the general mess that is i18n and the internet I would avoid
using non ISO-8859-1 characters in URIs if at all possible.

Mark

Daniel Sun wrote:
> Hi all,
> 
> I have the following settings.
> 
> WinXP Prof CHINESE SIMPLIFIED w/ SPK2
> 
> Tomcat 5.0.28
> 
> JDK 1.5..0.3
> 
>  
> 
> I have a folder, whose name contains CHINESE characters (eg. 新键文件夹 ? 
> “new folder”), under the “[CATALINA_HOME]\webapps\jsp-example”.
> 
> When I browse to it in IE with URL 
> http://localhost:8080/jsp-examples/新键文件夹/ 
>  , I got the HTTP status 404, 
> the error description is : The requested resource 
> (/jsp-examples/%E6%96…%A4%B9) is not available.
> 
> I can access English only URL without any problem (eg. 
> “http://localhost:8080/jsp-examples/new folder”)
> 
>  
> 
> I tried the same with Apache 2 and IIS, it works in both environments.
> 
>  
> 
> Can someone please give me a hint on where I can go now? (eg. Do I have to 
> use Apache to support this, and PLUS connectors with Tomcat to support 
> Servelet in addition).
> 
>  
> 
> Many thanks in advance.
> 
>  
> 
> 


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



5.5.4 - 5.5.9 catalina-ant.jar deploy tasks changed?

2005-05-10 Thread Gregg D Bolinger
 I was using Tomcat 5.5.4 and the catalina-ant.jar to create my deploy and 
undeploy tasks. Everything worked great. I upgraded to 5.5.9 and tried using 
the distributed catalina-ant.jar with it and now the deploy and undeploy 
tasks are broken. Here is how I am doing this:

code:
--




 

http://deploy.name>}"/>


--



5.5.4 works. 5.5.9 doesn't work. It complains about the attributes. IDEA 
keeps them in red because the DTD in the JAR doesn't support them anymore. 
Did they change it?


Re: getTextContent not found with Tomcat 5.0.28 (solved)

2005-05-10 Thread Eric VERGNAUD
Le 10 mai 05 à 15:56, Eric VERGNAUD a écrit :
Hi,
I'm having problems running Tomcat 5.0.28 using JDK 1.5.0.02.
I'm using 1.5 methods such as Node.getTextContent. This works fine  
when run as a standalone app in JDK 1.5, however when run with  
Tomcat under the same JDK, execution throws an exception saying  
getTextContent was not found.

Is there a setting to change somewhere in the Tomcat config files ?
Eric
Tomcat was loading the parser class from the Endorsed folder. I  
removed the various jars from that folder and now it's ok.

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


RE: error trying to run a jsp

2005-05-10 Thread Fay, Michael
I just realized that root owned everything under work. When I changed it to
tomcat, it works now. Thanks. 

-Original Message-
From: Fay, Michael 
Sent: Tuesday, May 10, 2005 9:36 AM
To: 'Tomcat Users List'
Subject: RE: error trying to run a jsp

Both tomcat and httpd have write permissions to the directory...is someone
else supposed to be in the tomcat group? 

-Original Message-
From: Raghupathy,Gurumoorthy [mailto:[EMAIL PROTECTED]

Sent: Tuesday, May 10, 2005 9:21 AM
To: 'Tomcat Users List'
Subject: RE: error trying to run a jsp

Please check If the directory
"/usr/local/tomcat/jakarta-tomcat-5/build/work/Catalina/localhost/" has
write permission for wwwrun user ?


Guru

-Original Message-
From: Fay, Michael [mailto:[EMAIL PROTECTED] 
Sent: 10 May 2005 17:17
To: 'Tomcat Users List'
Subject: error trying to run a jsp


We are getting the following error when trying use a jsp, either directly
through tomcat, or through apache with the tomcat connector:

 

type Exception report

message 

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception 

org.apache.jasper.JasperException: Unable to compile class for JSP
 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5
65)
 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
93)
 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

root cause 

java.io.FileNotFoundException:
/usr/local/tomcat/jakarta-tomcat-5/build/work/Catalina/localhost/jsp-example
s/org/apache/jsp/jsptest0509_jsp.java (No such file or directory)
java.io.FileOutputStream.open(Native Method)
java.io.FileOutputStream.(FileOutputStream.java:179)
java.io.FileOutputStream.(FileOutputStream.java:70)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:131)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5
56)
 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
93)
 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

note The full stack trace of the root cause is available in the Apache
Tomcat/5.5 logs.

 

 

I know nothing about tomcat or jsp, and our web people keep insisting that
this means that java_home isn't set right, though it's set in all the
startup scripts. Can anyone give me any ideas here? 


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

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

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



Re: Virtual Hosts - additional info needed

2005-05-10 Thread Pete Stevens
On Tue, 10 May 2005, Matthew P Puccio wrote:

> I'm running Tomcat 5.5.9 on a Windows2000 server. I am not running Apache
> and for various reasons won't be installing it. I'm not a Tomcat
> administrator so I may sound a bit clueless.
>
> I have tried to follow the instructions on
> http://www.ex-parrot.com/~pete/tomcat-vhost.html but am confused or don't
> understand.
>
> Here's the setup that I want:
> - I have the domain "smpdev.mwhglobal.com" that points at my Tomcat
> server's IP address.
> - My files are in /Tomcat5.5/SMP/
> - I have a Default.jsp page in /Tomcat5.5/SMP/jsp/Default.jsp. There is an
> entry in web.xml for this app for the Welcome file.
> - I have a folder /Tomcat5.5/conf/Catalina/SMP with SMP.xml. That file
> contains  and my database
> connection info.
> - I've tried adding a new  entry in server.xml, based on the info on
> the ex-parrot page (linked above):
>
>  unpackWARs="true" autoDeploy="true"
> xmlValidation="false" xmlNamespaceAware="false">
>
> $alias
> 
>
> What I don't know is what "$host" should be or "$alias" in the server.xml
> file.
> I also don't know if some of my folders should actually be called
> "smpdev.mwhglobal.com" instead of "SMP".

You can drop the ... line in your installtion.

$host should be replaced by smpdev.mwhglobal.com

then your directory

webapps/smpdev.mwhglobal.com

should contain an unpacked copy of the site you're working with, including
your web.xml configuration file.


You need to create the configuration file in

conf/Catalina/smpdev.mwhglobal.com/ROOT.xml






A caveat though is I haven't tested the instructions on Windows so you may
need to modify various things to make it go.

Yours,

Pete Stevens

--
Pete Stevens
[EMAIL PROTECTED]
http://www.ex-parrot.com/~pete/

  The last time humans crossed space to a destination was the Apollo 17 mission
  in 1972. In the 32 years since, no man has seen, with his own eyes, Earth as
 that beautiful, solitary blue sphere, and - reality check - no woman has ever
seen it at all.
   -- James Cameron

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



RE: error trying to run a jsp

2005-05-10 Thread Fay, Michael
Both tomcat and httpd have write permissions to the directory...is someone
else supposed to be in the tomcat group? 

-Original Message-
From: Raghupathy,Gurumoorthy [mailto:[EMAIL PROTECTED]

Sent: Tuesday, May 10, 2005 9:21 AM
To: 'Tomcat Users List'
Subject: RE: error trying to run a jsp

Please check If the directory
"/usr/local/tomcat/jakarta-tomcat-5/build/work/Catalina/localhost/" has
write permission for wwwrun user ?


Guru

-Original Message-
From: Fay, Michael [mailto:[EMAIL PROTECTED] 
Sent: 10 May 2005 17:17
To: 'Tomcat Users List'
Subject: error trying to run a jsp


We are getting the following error when trying use a jsp, either directly
through tomcat, or through apache with the tomcat connector:

 

type Exception report

message 

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception 

org.apache.jasper.JasperException: Unable to compile class for JSP
 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5
65)
 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
93)
 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

root cause 

java.io.FileNotFoundException:
/usr/local/tomcat/jakarta-tomcat-5/build/work/Catalina/localhost/jsp-example
s/org/apache/jsp/jsptest0509_jsp.java (No such file or directory)
java.io.FileOutputStream.open(Native Method)
java.io.FileOutputStream.(FileOutputStream.java:179)
java.io.FileOutputStream.(FileOutputStream.java:70)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:131)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5
56)
 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
93)
 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

note The full stack trace of the root cause is available in the Apache
Tomcat/5.5 logs.

 

 

I know nothing about tomcat or jsp, and our web people keep insisting that
this means that java_home isn't set right, though it's set in all the
startup scripts. Can anyone give me any ideas here? 


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

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



Autodeploy not working on Tomcat 5.5.9

2005-05-10 Thread Marquez, Omar
 
Tomcat 5.5.9 running on Linux Fedora core 2
 
Tomcat upgraded from version 5.0.27  to version 5.5.9 + Admin app
 
Version 5.5.9 seems to run faster, however we cannot redeploy applications,
when a war file on the webapps folder is overwritten with a new version
tomcat ignores it and continues serving the old version. 
Even if we undeploy the application from the Manager and then overwrite the
war file and restart the application tomcat continues serving the old app
 from memory perhaps???
 
We have autodeploy="true" in the host and reload="yes" on the context .
 
Please help! ideas anything is welcome.
Omar
 

-- 
Omar Marquez 

Software Engineer  / Chicago
Telf. 312 894 7689
E-Mail: [EMAIL PROTECTED] 

 
The information contained in this communication may be CONFIDENTIAL and is
intended only for the use of the recipient(s) named above.  If you are not
the intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this communication, or any of its contents, is
strictly prohibited.   If you have received this communication in error,
please notify the sender and delete/destroy the original message and any
copy of it from your computer or paper files.


RE: error trying to run a jsp

2005-05-10 Thread Raghupathy,Gurumoorthy
Please check If the directory
"/usr/local/tomcat/jakarta-tomcat-5/build/work/Catalina/localhost/" has
write permission for wwwrun user ?


Guru

-Original Message-
From: Fay, Michael [mailto:[EMAIL PROTECTED] 
Sent: 10 May 2005 17:17
To: 'Tomcat Users List'
Subject: error trying to run a jsp


We are getting the following error when trying use a jsp, either directly
through tomcat, or through apache with the tomcat connector:

 

type Exception report

message 

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception 

org.apache.jasper.JasperException: Unable to compile class for JSP
 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5
65)
 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
93)
 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

root cause 

java.io.FileNotFoundException:
/usr/local/tomcat/jakarta-tomcat-5/build/work/Catalina/localhost/jsp-example
s/org/apache/jsp/jsptest0509_jsp.java (No such file or directory)
java.io.FileOutputStream.open(Native Method)
java.io.FileOutputStream.(FileOutputStream.java:179)
java.io.FileOutputStream.(FileOutputStream.java:70)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:131)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5
56)
 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
93)
 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

note The full stack trace of the root cause is available in the Apache
Tomcat/5.5 logs.

 

 

I know nothing about tomcat or jsp, and our web people keep insisting that
this means that java_home isn't set right, though it's set in all the
startup scripts. Can anyone give me any ideas here? 


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



error trying to run a jsp

2005-05-10 Thread Fay, Michael
We are getting the following error when trying use a jsp, either directly
through tomcat, or through apache with the tomcat connector:

 

type Exception report

message 

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception 

org.apache.jasper.JasperException: Unable to compile class for JSP
 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5
65)
 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
93)
 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

root cause 

java.io.FileNotFoundException:
/usr/local/tomcat/jakarta-tomcat-5/build/work/Catalina/localhost/jsp-example
s/org/apache/jsp/jsptest0509_jsp.java (No such file or directory)
java.io.FileOutputStream.open(Native Method)
java.io.FileOutputStream.(FileOutputStream.java:179)
java.io.FileOutputStream.(FileOutputStream.java:70)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:131)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5
56)
 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
93)
 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

note The full stack trace of the root cause is available in the Apache
Tomcat/5.5 logs.

 

 

I know nothing about tomcat or jsp, and our web people keep insisting that
this means that java_home isn't set right, though it's set in all the
startup scripts. Can anyone give me any ideas here? 



Tomcat 5.5.9 - simple way of restricting access to webapp

2005-05-10 Thread =?iso-8859-1?Q?Lars_Ohl=E9n?=
Hi user group,

Is there any easy way to restrict the access to a specifc webapp by require 
login?

/L


Tomcat 4.1.30 with JDK 1.5_02 on Linux

2005-05-10 Thread Norris Shelton
Has anybody seen any problems with this?  We are upgrading from
1.4.2_06 or _07 to 1.5._02.  We are seeing some slow
performance.  It appears to be with forwards or possiblly redirects.


Norris Shelton
Software Engineer
Sun Certified Java 1.1 Programmer
Appriss, Inc.
ICQ# 26487421
AIM NorrisEShelton
YIM norrisshelton




__ 
Do you Yahoo!? 
Read only the mail you want - Yahoo! Mail SpamGuard. 
http://promotions.yahoo.com/new_mail 

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



Virtual Hosts - additional info needed

2005-05-10 Thread Matthew P Puccio
I'm running Tomcat 5.5.9 on a Windows2000 server. I am not running Apache 
and for various reasons won't be installing it. I'm not a Tomcat 
administrator so I may sound a bit clueless.

I have tried to follow the instructions on 
http://www.ex-parrot.com/~pete/tomcat-vhost.html but am confused or don't 
understand.

Here's the setup that I want:
- I have the domain "smpdev.mwhglobal.com" that points at my Tomcat 
server's IP address.
- My files are in /Tomcat5.5/SMP/
- I have a Default.jsp page in /Tomcat5.5/SMP/jsp/Default.jsp. There is an 
entry in web.xml for this app for the Welcome file.
- I have a folder /Tomcat5.5/conf/Catalina/SMP with SMP.xml. That file 
contains  and my database 
connection info.
- I've tried adding a new  entry in server.xml, based on the info on 
the ex-parrot page (linked above):
 


$alias


What I don't know is what "$host" should be or "$alias" in the server.xml 
file.
I also don't know if some of my folders should actually be called 
"smpdev.mwhglobal.com" instead of "SMP".

If I hit http://smpdev.mwhglobal.com/SMP/jsp/Default.jsp I can access the 
application. However, I want http://smpdev.mwhglobal.com to go directly to 
this page.

BTW, this is all inside our network so you won't be able to hit the 
server.

Thanks for any help anyone can provide.


===
Matt Puccio
Senior Application Developer
iNet Global Solutions Delivery
MWH Global, Inc.
>>Tel: 720.887.8710
>>Fax: 720.887.8701
===

Re: How to change hostname in tomcat configuration

2005-05-10 Thread Lutz Zetzsche
Hi Mandar,

Mandar Vaidya schrieb:
> I'm trying to change hostname on the tomcat server from localhost to
> my
> server name. After I change it in server.xml, I'm able to go to
> http://servername:8080  url, but I'm not able to go to
> http://servername:8080/admin .  It gives me error.
>
> Aprreciate any help regarding this.

Instead of changing the name attribute of your Host element from
"localhost" to "servername", you can also simply nest an Alias element
into the Host element:

 
   ...
   servername
   ...
 

However, if you prefer to change the name attribute rather than to add an
alias, make sure to customize the defaultHost attribute of your Engine
element if you only have one Host element inside:

"The default host name, which identifies the Host that will process
requests directed to host names on this server, but which are not
configured in this configuration file. This name MUST match the name 
attributes of one of the Host elements nested immediately inside."

!


Best wishes

Lutz


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



Re: Free reporting s/w that works with apache+tomcat

2005-05-10 Thread Joe Plautz
Sorry I'm late to the party.
I've been working with jasperreports from sourceforge the last couple of 
weeks to create reports in PDF. It also has the ability to create an 
excel spreadsheet as well, although I haven't used it yet. Using it in 
conjunction with iReports, also from sourceforge, you can have a report 
in minutes. I would recommend using it to anyone.

Joe
Mike Curwen wrote:
you should consider using POI, if you need Excel-only features like "footer
repeated on every page".
 
Specifically:
http://jakarta.apache.org/poi/hssf/quick-guide.html#HeaderFooter
 



-Original Message-
From: U K Laxmi [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 10, 2005 9:53 AM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: Re: Free reporting s/w that works with apache+tomcat

Thank you for the information.
What i mean by header & footer is, column headers and
some information like model number, date and approval
signature columns etc.. to appear in every page when
they take hard copy of the report. Is such a thing
possible? Pls inform.
The end user of the application doesn't want any
manual intervention. When he click on 'Export to
Excel' button in the web application HTML report, he
want the excel file get downloded (file dialog box
appears & he save it to his local disk) which has all
header & footer information set. Currently my
application can provide header once at the top of the
report and footer (approval columns & date) at the
very bottom of the report. THe column headings &
approval columns doesn't appear on every page. 

I'm unable to ahcieve this in web (HTML). It i cna do
it in web, when i download that in excel, it will
show.  Do you know any work around for this? Pls
inform.
Thank you.
Laxmi
--- "Frank W. Zammetti" <[EMAIL PROTECTED]> wrote:

Hi,
CSV files don't generally contain header and footer 
information... you
can get column headers in the first row, that's
about it.  I don't 
believe DataVision will export to Excel natively,
but check the docs in 
case I'm wrong.

Do you really mean header and footer in the sense of
a Word document?
It's a bit unusual to have such a thing in an Excel
document (although 
not at all unheard of), so I'm wondering if maybe
you mean something a 
little different, i.e., maybe just column headers
and some sort of totals?

Frank
U K Laxmi wrote:
Thank you for the information. I read your report
and
it looks interesting. I went to DataVision web
site
and found that it can export comma separated files
ie.
CSV file. Will it be possible to retain header and
footer information with a .CSV file? I basically
want
excel files as the report output. B'coz the end
user
needs to send to those reports to it's vendors.
Excel
is the most desired format for them. Pls give your
feedback on this before i start implementing on
this.
Thank you.
--- "Frank W. Zammetti" <[EMAIL PROTECTED]>
wrote:
Take a look at DataVision.  I think you'll like
it.
I wrote an article
a while back specifically dealing with using it in
web applications. 
Although the article uses servlets and you say
your
using JSPs (just
JSP's?) it should still be applicable.
http://www.omnytex.com/articles
Feel free to ping me if you decide to use it and
need some help getting
going beyond the article and included
documentation.
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
U K Laxmi wrote:

I'm developing a web application using
apache+tomcat

on windows 2000 machine. I'm using Ms Access 2003
as

the backend. I'm using JSP for developing web
application. I'm developing some web based
reports
in

HTML. But when i export them to Excel, it doesn't
look

exactly same as that of HTML report. Moreover i
need

some header and footer information appear in the
report. That i'm unable to achieve using JSP and
HTML.

So, i'm looking for a free reporting software
that
can

meet above functionality and can work with
apache+tomcat. If anyone know any work worunds
for
my

problem, pls inform me. It will be a great help
to
me.

Thank you.
		
__
Yahoo! Mail Mobile 
Take Yahoo! Mail with you! Check email on your
mobile phone.

http://mobile.yahoo.com/learn/mail


-
To unsubscribe, e-mail:
[EMAIL PROTECTED]

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


.



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



Discover Yahoo!
Have fun online with music videos, cool games, IM
and more. Check it out!
http://discover.yahoo.com/online.html


--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com

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


		
Discover Yahoo! 
Find restaurants, movies, tr

How to change hostname in tomcat configuration

2005-05-10 Thread Mandar Vaidya
 Hi,

I'm trying to change hostname on the tomcat server from localhost to my
server name. After I change it in server.xml, I'm able to go to
http://servername:8080  url, but I'm not able to go to
http://servername:8080/admin .  It gives me error. 

Aprreciate any help regarding this.

Thank you
Mandar Vaidya

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



RE: Free reporting s/w that works with apache+tomcat

2005-05-10 Thread Mike Curwen
you should consider using POI, if you need Excel-only features like "footer
repeated on every page".
 
Specifically:
http://jakarta.apache.org/poi/hssf/quick-guide.html#HeaderFooter
 



> -Original Message-
> From: U K Laxmi [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, May 10, 2005 9:53 AM
> To: Tomcat Users List; [EMAIL PROTECTED]
> Subject: Re: Free reporting s/w that works with apache+tomcat
> 
> 
> Thank you for the information.
> 
> What i mean by header & footer is, column headers and
> some information like model number, date and approval
> signature columns etc.. to appear in every page when
> they take hard copy of the report. Is such a thing
> possible? Pls inform.
> 
> The end user of the application doesn't want any
> manual intervention. When he click on 'Export to
> Excel' button in the web application HTML report, he
> want the excel file get downloded (file dialog box
> appears & he save it to his local disk) which has all
> header & footer information set. Currently my
> application can provide header once at the top of the
> report and footer (approval columns & date) at the
> very bottom of the report. THe column headings &
> approval columns doesn't appear on every page. 
> 
> I'm unable to ahcieve this in web (HTML). It i cna do
> it in web, when i download that in excel, it will
> show.  Do you know any work around for this? Pls
> inform.
> 
> Thank you.
> Laxmi
> 
> --- "Frank W. Zammetti" <[EMAIL PROTECTED]> wrote:
> 
> > Hi,
> > 
> > CSV files don't generally contain header and footer 
> information... you
> > can get column headers in the first row, that's
> > about it.  I don't 
> > believe DataVision will export to Excel natively,
> > but check the docs in 
> > case I'm wrong.
> > 
> > Do you really mean header and footer in the sense of
> > a Word document?
> > It's a bit unusual to have such a thing in an Excel
> > document (although 
> > not at all unheard of), so I'm wondering if maybe
> > you mean something a 
> > little different, i.e., maybe just column headers
> > and some sort of totals?
> > 
> > Frank
> > 
> > U K Laxmi wrote:
> > > Thank you for the information. I read your report
> > and
> > > it looks interesting. I went to DataVision web
> > site
> > > and found that it can export comma separated files
> > ie.
> > > CSV file. Will it be possible to retain header and
> > > footer information with a .CSV file? I basically
> > want
> > > excel files as the report output. B'coz the end
> > user
> > > needs to send to those reports to it's vendors.
> > Excel
> > > is the most desired format for them. Pls give your
> > > feedback on this before i start implementing on
> > this.
> > > Thank you.
> > > 
> > > --- "Frank W. Zammetti" <[EMAIL PROTECTED]>
> > wrote:
> > > 
> > >>Take a look at DataVision.  I think you'll like
> > it.
> > >>I wrote an article
> > >>a while back specifically dealing with using it in
> > >>web applications. 
> > >>Although the article uses servlets and you say
> > your
> > >>using JSPs (just
> > >>JSP's?) it should still be applicable.
> > >>
> > >>http://www.omnytex.com/articles
> > >>
> > >>Feel free to ping me if you decide to use it and
> > >>need some help getting
> > >>going beyond the article and included
> > documentation.
> > >>
> > >>--
> > >>Frank W. Zammetti
> > >>Founder and Chief Software Architect
> > >>Omnytex Technologies
> > >>http://www.omnytex.com
> > >>
> > >>U K Laxmi wrote:
> > >>
> > >>>I'm developing a web application using
> > >>
> > >>apache+tomcat
> > >>
> > >>>on windows 2000 machine. I'm using Ms Access 2003
> > >>
> > >>as
> > >>
> > >>>the backend. I'm using JSP for developing web
> > >>>application. I'm developing some web based
> > reports
> > >>
> > >>in
> > >>
> > >>>HTML. But when i export them to Excel, it doesn't
> > >>
> > >>look
> > >>
> > >>>exactly same as that of HTML report. Moreover i
> > >>
> > >>need
> > >>
> > >>>some header and footer information appear in the
> > >>>report. That i'm unable to achieve using JSP and
> > >>
> > >>HTML.
> > >>
> > >>>
> > >>>So, i'm looking for a free reporting software
> > that
> > >>
> > >>can
> > >>
> > >>>meet above functionality and can work with
> > >>>apache+tomcat. If anyone know any work worunds
> > for
> > >>
> > >>my
> > >>
> > >>>problem, pls inform me. It will be a great help
> > to
> > >>
> > >>me.
> > >>
> > >>>Thank you.
> > >>>
> > >>>
> > >>> 
> > >>>__
> > >>>Yahoo! Mail Mobile 
> > >>>Take Yahoo! Mail with you! Check email on your
> > >>
> > >>mobile phone.
> > >>
> > >>>http://mobile.yahoo.com/learn/mail
> > >>>
> > >>>
> > >>
> > >
> >
> -
> > > 
> > >>>To unsubscribe, e-mail:
> > >>
> > >>[EMAIL PROTECTED]
> > >>
> > >>>For additional commands, e-mail:
> > >>
> > >>[EMAIL PROTECTED]
> > >>
> > >>>
> > >>>
> > >>>
> > >>>.
> > >>>
> > >>
> > >>
> > >>
> > >>
> > >>
> > >
> >
> --

Re: Client Authentication

2005-05-10 Thread Mahesh S Kudva
Hi All

Nothing seems to work out for me whith client auth. Here is what 've done

CA and Certificates
1) perl CA.pl -newca
2) perl CA.pl -newreq
3) perl CA.pl -sign
4) openssl rsa < newreq.pem > server_key.pem
5) mv newcert.pem server_cert.pem  
6) mv newreq.pem server_req.pem
7) perl CA.pl -newreq
8) perl CA.pl -sign
9) mv newreq.pem client_req.pem
10) mv newcert.pem client_cert.pem
11) openssl rsa < client_req.pem > client_key.pem
12) openssl pkcs12 -export -in client_cert.pem -inkey client_key.pem -out 
client.p12
13) openssl x509 -in server_cert.pem -out server.x509
14) openssl pkcs12 -export -in server_cert.pem -inkey server_key.pem 
   -out server.p12  
15) keytool -genkey -alias tomcat -storepass changeit
16) keytool -import -alias TomcatCA -file demoCA/cacert.pem

I then import the CA's self signed certificate to the clients machine 
along with the p12 certficicate

My Tomcat-users.xml file


  
  
  
  
  
  
  
  
  
  




Where am i going wrong? Even if the certificates are in the client's 
mcahine the certificates identity windows alowys pop's up
  


Regards & Thanks

Mahesh S Kudva


-Original Message-
From: Mark Thomas <[EMAIL PROTECTED]>
To: Tomcat Users List 
Date: Tue, 03 May 2005 23:00:57 +0100
Subject: Re: Client Authentication

> The CN for your server cert can be anything you like but you will get a
> warning in your browser if the CN differs from how you express it in
> the 
> URL.
> 
> The user needs to look something like this
>  password="null" roles="tomcat,certs"/>
> in tomcat-users. It must be the full DN of the user certificate.
> 
> HTH,
> 
> Mark
> 
> Mahesh S Kudva wrote:
> > Hi 
> > 
> > It seems like a silly question. But I am new to SSL and Certificates
> as 
> > well as Tomcat.
> > 
> > If my machines IP is 192.168.0.1 then I access tomcat as 
> > https://192.168.0.1:8443. Keeping this mind should I give the Common
> Name 
> > as 192.168.0.1 ??? 
> > 
> > How do I specify the client info in the tomcat-users.xml?
> > 
> > 
> > 
> > This is how my tomcat-users.xml file looks like. 
> > 
> > Regards & Thanks
> > 
> > Mahesh S Kudva
> > 
> > 
> > -Original Message-
> > From: "lercoli" <[EMAIL PROTECTED]>
> > To: "Tomcat Users List" 
> > Date: Tue, 3 May 2005 14:33:46 +0200
> > Subject: Re: Client Authentication
> > 
> > 
> >>CA and Tomcat  common name should be the same (localhost or better
> your
> >>DNS).
> >>First and Last Name of client sould the name of a Tomcat user
> declared
> >>in
> >>tomcat-users.xml.
> >>
> >>Luca Ercoli
> >>
> >>- Original Message - 
> >>From: "Mahesh S Kudva" <[EMAIL PROTECTED]>
> >>To: "Tomcat Users List" 
> >>Sent: Tuesday, May 03, 2005 1:41 PM
> >>Subject: Re: Client Authentication
> >>
> >>
> >>
> >>>Hi
> >>>
> >>>What kind of information do i need to put in the fields of First and
> >>
> >>Last
> >>
> >>>name and Common name. Will any information do or is it required that
> >>
> >>I
> >>
> >>>need to put in the server address in the client.p12 certificate..
> >>>
> >>>Regards & Thanks
> >>>
> >>>Mahesh S Kudva
> >>>
> >>>
> >>>-Original Message-
> >>>From: "Mahesh S Kudva" <[EMAIL PROTECTED]>
> >>>To: "Tomcat Users List" 
> >>>Date: Mon, 02 May 2005 23:04:50 +0530
> >>>Subject: Re: Client Authentication
> >>>
> >>>
> Hi
> 
> I tried with client.p12 first, when i failed I went on with
> client_cert.x509. I placed it in the personal folder ...
> 
> Regards & Thanks
> 
> Mahesh S Kudva
> 
> 
> -Original Message-
> From: "lercoli" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" 
> Date: Mon, 2 May 2005 17:31:54 +0200
> Subject: Re: Client Authentication
> 
> 
> >You should import only client.p12 certificate in IE browser and
> >when IE asks you in which folder you want to put it select
> >>
> >>Personal
> >>
> >Folder.
> >
> >I hope it helps you.
> >
> >Luca Ercoli
> >
> >
> >- Original Message - 
> >From: "Mahesh S Kudva" <[EMAIL PROTECTED]>
> >To: 
> >Sent: Monday, May 02, 2005 5:08 PM
> >Subject: Client Authentication
> >
> >
> >
> >>Dear All
> >>
> >>I've been able to setup Tomcat 5.0.30 successfully on port
> >>
> >>8443. I
> >>
> >want to
> >
> >>use client authentication. Hence i've enabled clientAuth=true
> >>
> >>in
> >>
> >>server.xml
> >>
> >>Running on Mac OS X these were the commands to create a CA and
> >>
> >>sign
> >>
> a
> 
> >>certificate using this CA.
> >>
> >>Creating a new CA:
> >>1) perl CA.pl -newca
> >>
> >>Certificate request using openssl:
> >>1) perl CA.pl -newreq
> >>2) perl CA.pl -sign
> >>3) mv newreq.pem client_req.pem
> >>4) mv newcert.pem client_cert.pem
> >>5) openssl rsa < client_req.pem > client_key.pem
> >>6) openssl pkcs12 -export -in client_cert.pem -inke

Please help RE: Servlet app error (runs on kaffe but not on sun jvm)

2005-05-10 Thread Gastón Simone
> On 5/6/05, Gastón Simone <[EMAIL PROTECTED]> wrote:
> > Hi!
> >
> > Does anybody know how to solve this problem?
> > Please excuse me if the cuestion is too stupid. I am really newbie. :)
> >
> > root cause
> >
> > java.lang.NoClassDefFoundError
> > at
> com.genexus.webpanels.GXWebObjectStub.callExecute(Unknown Source)
> > at com.genexus.webpanels.GXWebObjectStub.doGet(Unknown Source)
>
>   It seems there is a lib missing in your servlet. Add the required
> jars to /WEB-INF/lib

My servlet runs perfect with kaffe. But does not run with sun's jvm.
How can I solve this?
Please help me!

Thanks a lot!

Regards,
Gaston



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



Re: Free reporting s/w that works with apache+tomcat

2005-05-10 Thread U K Laxmi
Thank you for the information.

What i mean by header & footer is, column headers and
some information like model number, date and approval
signature columns etc.. to appear in every page when
they take hard copy of the report. Is such a thing
possible? Pls inform.

The end user of the application doesn't want any
manual intervention. When he click on 'Export to
Excel' button in the web application HTML report, he
want the excel file get downloded (file dialog box
appears & he save it to his local disk) which has all
header & footer information set. Currently my
application can provide header once at the top of the
report and footer (approval columns & date) at the
very bottom of the report. THe column headings &
approval columns doesn't appear on every page. 

I'm unable to ahcieve this in web (HTML). It i cna do
it in web, when i download that in excel, it will
show.  Do you know any work around for this? Pls
inform.

Thank you.
Laxmi

--- "Frank W. Zammetti" <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> CSV files don't generally contain header and footer
> information... you 
> can get column headers in the first row, that's
> about it.  I don't 
> believe DataVision will export to Excel natively,
> but check the docs in 
> case I'm wrong.
> 
> Do you really mean header and footer in the sense of
> a Word document? 
> It's a bit unusual to have such a thing in an Excel
> document (although 
> not at all unheard of), so I'm wondering if maybe
> you mean something a 
> little different, i.e., maybe just column headers
> and some sort of totals?
> 
> Frank
> 
> U K Laxmi wrote:
> > Thank you for the information. I read your report
> and
> > it looks interesting. I went to DataVision web
> site
> > and found that it can export comma separated files
> ie.
> > CSV file. Will it be possible to retain header and
> > footer information with a .CSV file? I basically
> want
> > excel files as the report output. B'coz the end
> user
> > needs to send to those reports to it's vendors.
> Excel
> > is the most desired format for them. Pls give your
> > feedback on this before i start implementing on
> this.
> > Thank you.
> > 
> > --- "Frank W. Zammetti" <[EMAIL PROTECTED]>
> wrote:
> > 
> >>Take a look at DataVision.  I think you'll like
> it. 
> >>I wrote an article 
> >>a while back specifically dealing with using it in
> >>web applications. 
> >>Although the article uses servlets and you say
> your
> >>using JSPs (just 
> >>JSP's?) it should still be applicable.
> >>
> >>http://www.omnytex.com/articles
> >>
> >>Feel free to ping me if you decide to use it and
> >>need some help getting 
> >>going beyond the article and included
> documentation.
> >>
> >>-- 
> >>Frank W. Zammetti
> >>Founder and Chief Software Architect
> >>Omnytex Technologies
> >>http://www.omnytex.com
> >>
> >>U K Laxmi wrote:
> >>
> >>>I'm developing a web application using
> >>
> >>apache+tomcat
> >>
> >>>on windows 2000 machine. I'm using Ms Access 2003
> >>
> >>as
> >>
> >>>the backend. I'm using JSP for developing web
> >>>application. I'm developing some web based
> reports
> >>
> >>in
> >>
> >>>HTML. But when i export them to Excel, it doesn't
> >>
> >>look
> >>
> >>>exactly same as that of HTML report. Moreover i
> >>
> >>need
> >>
> >>>some header and footer information appear in the
> >>>report. That i'm unable to achieve using JSP and
> >>
> >>HTML.
> >>
> >>>
> >>>So, i'm looking for a free reporting software
> that
> >>
> >>can
> >>
> >>>meet above functionality and can work with
> >>>apache+tomcat. If anyone know any work worunds
> for
> >>
> >>my
> >>
> >>>problem, pls inform me. It will be a great help
> to
> >>
> >>me.
> >>
> >>>Thank you.
> >>>
> >>>
> >>>   
> >>>__ 
> >>>Yahoo! Mail Mobile 
> >>>Take Yahoo! Mail with you! Check email on your
> >>
> >>mobile phone. 
> >>
> >>>http://mobile.yahoo.com/learn/mail 
> >>>
> >>>
> >>
> >
>
-
> > 
> >>>To unsubscribe, e-mail:
> >>
> >>[EMAIL PROTECTED]
> >>
> >>>For additional commands, e-mail:
> >>
> >>[EMAIL PROTECTED]
> >>
> >>>
> >>>
> >>>
> >>>.
> >>>
> >>
> >>
> >>
> >>
> >>
> >
>
-
> > 
> >>To unsubscribe, e-mail:
> >>[EMAIL PROTECTED]
> >>For additional commands, e-mail:
> >>[EMAIL PROTECTED]
> >>
> >>
> > 
> > 
> > 
> > 
> > Discover Yahoo! 
> > Have fun online with music videos, cool games, IM
> and more. Check it out! 
> > http://discover.yahoo.com/online.html
> > 
> > 
> > 
> > 
> 
> -- 
> Frank W. Zammetti
> Founder and Chief Software Architect
> Omnytex Technologies
> http://www.omnytex.com
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 




Discover Yahoo! 
Find restaurants, movies, travel and more fun for the weekend. Check it out! 
http://

RE: Connecting Tomcat5.5.9 + Apache2.0.54

2005-05-10 Thread Caldarale, Charles R
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]

> Subject: Connecting Tomcat5.5.9 + Apache2.0.54
> 
> However, I am stuck with connecting the two so that I don't 
> have to type in localhost:8080 in my browser

Well, the easiest way is to remove Apache httpd and configure Tomcat to
use ports 80 and 443.  (Look at the  tags in the
conf/server.xml file.)

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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



RE: Restrict access to webapps for IPs

2005-05-10 Thread Lutz Zetzsche
Hi,

Raghupathy,Gurumoorthy schrieb:
> Nopt in web.xml but in server.xml in your 

As regards the server.xml, this depends on the Tomcat version, you are
using. The documentation emphasizes:

"Please note that for tomcat 5, unlike tomcat 4.x, it is NOT recommended
to place  elements directly in the server.xml file."

-> http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html


Best wishes

Lutz


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



Re: Restrict access to webapps for IPs

2005-05-10 Thread Lutz Zetzsche
Hi Jens,

Altrock, Jens schrieb:
> Hm... won't work :(
>
> I added to noe of the apps in webapps/name_of_app/WEB-INF/web.xml the
> following:
>
>  allow="192.100.46.*"/>
>
> right after the  tag in the xml file.
> But people can access that application from the internet anyway...

You have put the Valve element into the wrong file resp. place. It cannot
be nested into the  element and cannot be placed in the web.xml.
You have to nest it into a ,  oder  element.

In your case, you have to nest it into the  element because you
want to apply the filter rule to a web application which is equivalent to
the  element in Tomcat terms.

You should have a look at one of the links I mentioned to find the right
place for the Valve element:

http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html

Try one of these options offered on this page (refers to Tomcat version 5.5):

* in individual files (with a ".xml" extension) in the
$CATALINA_HOME/conf/[enginename]/[hostname]/ directory
* if the previous file was not found for this application, in individual
file at /META-INF/context.xml inside the application files


Best wishes

Lutz


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



Re: Free reporting s/w that works with apache+tomcat

2005-05-10 Thread Frank W. Zammetti
Hi,
CSV files don't generally contain header and footer information... you 
can get column headers in the first row, that's about it.  I don't 
believe DataVision will export to Excel natively, but check the docs in 
case I'm wrong.

Do you really mean header and footer in the sense of a Word document? 
It's a bit unusual to have such a thing in an Excel document (although 
not at all unheard of), so I'm wondering if maybe you mean something a 
little different, i.e., maybe just column headers and some sort of totals?

Frank
U K Laxmi wrote:
Thank you for the information. I read your report and
it looks interesting. I went to DataVision web site
and found that it can export comma separated files ie.
CSV file. Will it be possible to retain header and
footer information with a .CSV file? I basically want
excel files as the report output. B'coz the end user
needs to send to those reports to it's vendors. Excel
is the most desired format for them. Pls give your
feedback on this before i start implementing on this.
Thank you.
--- "Frank W. Zammetti" <[EMAIL PROTECTED]> wrote:
Take a look at DataVision.  I think you'll like it. 
I wrote an article 
a while back specifically dealing with using it in
web applications. 
Although the article uses servlets and you say your
using JSPs (just 
JSP's?) it should still be applicable.

http://www.omnytex.com/articles
Feel free to ping me if you decide to use it and
need some help getting 
going beyond the article and included documentation.

--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
U K Laxmi wrote:
I'm developing a web application using
apache+tomcat
on windows 2000 machine. I'm using Ms Access 2003
as
the backend. I'm using JSP for developing web
application. I'm developing some web based reports
in
HTML. But when i export them to Excel, it doesn't
look
exactly same as that of HTML report. Moreover i
need
some header and footer information appear in the
report. That i'm unable to achieve using JSP and
HTML.
So, i'm looking for a free reporting software that
can
meet above functionality and can work with
apache+tomcat. If anyone know any work worunds for
my
problem, pls inform me. It will be a great help to
me.
Thank you.
		
__ 
Yahoo! Mail Mobile 
Take Yahoo! Mail with you! Check email on your
mobile phone. 

http://mobile.yahoo.com/learn/mail 



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

.



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


		
Discover Yahoo! 
Have fun online with music videos, cool games, IM and more. Check it out! 
http://discover.yahoo.com/online.html



--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Restrict access to webapps for IPs

2005-05-10 Thread Raghupathy,Gurumoorthy
Nopt in web.xml but in server.xml in your 


-Original Message-
From: Altrock, Jens [mailto:[EMAIL PROTECTED] 
Sent: 10 May 2005 15:13
To: 'Tomcat Users List'
Subject: AW: Restrict access to webapps for IPs


Hm... won't work :(

I added to noe of the apps in webapps/name_of_app/WEB-INF/web.xml the
following:



right after the  tag in the xml file.
But people can access that application from the internet anyway...


> -Ursprüngliche Nachricht-
> Von: Lutz Zetzsche [mailto:[EMAIL PROTECTED]
> Gesendet: Dienstag, 10. Mai 2005 16:00
> An: Tomcat Users List
> Betreff: Re: Restrict access to webapps for IPs
> 
> 
> Hi Jens,
> 
> Altrock, Jens schrieb:
> > Ok, got that. But do I need to install the regular 
> expressions library?
> 
> To my practical knowledge, the RemoteAddrValve will work out 
> of the box.
> You don't have to install additional libraries to get it work.
> 
> 
> > And how to say that I want a whole subnet to be added?
> 
> For allowing a whole subnet, just use an asterisk in the 
> allow attribute
> value:
> 
>  
> 
> 
> Lutz
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
###
Diese Nachricht wurde von F-Secure Anti-Virus gescannt.

This message has been scanned by F-Secure Anti-Virus.


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

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



AW: Restrict access to webapps for IPs

2005-05-10 Thread Altrock, Jens
Hm... won't work :(

I added to noe of the apps in webapps/name_of_app/WEB-INF/web.xml the
following:



right after the  tag in the xml file.
But people can access that application from the internet anyway...


> -Ursprüngliche Nachricht-
> Von: Lutz Zetzsche [mailto:[EMAIL PROTECTED]
> Gesendet: Dienstag, 10. Mai 2005 16:00
> An: Tomcat Users List
> Betreff: Re: Restrict access to webapps for IPs
>
>
> Hi Jens,
>
> Altrock, Jens schrieb:
> > Ok, got that. But do I need to install the regular
> expressions library?
>
> To my practical knowledge, the RemoteAddrValve will work out
> of the box.
> You don't have to install additional libraries to get it work.
>
>
> > And how to say that I want a whole subnet to be added?
>
> For allowing a whole subnet, just use an asterisk in the
> allow attribute
> value:
>
>  
>
>
> Lutz
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
###
Diese Nachricht wurde von F-Secure Anti-Virus gescannt.

This message has been scanned by F-Secure Anti-Virus.


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



Re: tomcat System Administrator's Guide and SysAdmin tools

2005-05-10 Thread Pete Stevens
On Mon, 9 May 2005, Steve Jacobson wrote:

> All,
>
>   We have been looking for a comprehensive System Administrator's Guide
> for Tomcat, that looks at Tomcat from the perspective of a System
> Administrator that needs to deploy tomcat and applications on tomcat.
> Most of what we have googled concentrates on deploying tomcat for a
> developer, or a development environment.  Many SysAdmins don't actually
> speak java, though, and would be looking for a guide to be able to
> support java applications on their servers without having to become java
> experts themselves.
>
>   We are also looking for any tools that might be used to verify a
> successful installation of tomcat, beyond the index.jsp, and manager and
> admin tools.  Has anyone written anything that goes through and makes
> sure that tomcat is installed correctly, and that everything is set up
> properly, as an installation verification tool?
>
>   For both the documentation, and the tools, if we can't find anything
> that I think fully addresses this need, we will take a stab at producing
> both.  Does anyone have any thoughts / suggestions / requests, etc...
> for such documentation and tools to include?  Also, do people think that
> there might be a place within the tomcat documentation and distribution
> for these, or should we just target making them available on our own site?

My guide to installing Tomcat for production on virtual linux :-

http://www.mythic-beasts.com/support/topic_vds_java.html


How to set up virtual hosting with Tomcat :-

http://www.ex-parrot.com/~pete/tomcat-vhost.html


Note that this guide is how to make Tomcat behave like apache - one directory
per virtual host and everything in configuration files - rather than the
seemingly recommended way with point and click gooey goodness for updating
things.

Other people will also complain that I don't explain tomcat + apache +
connector. To my mind the extra configuration hassle of maintaining all the
configuration in all three places out weighs the performance increase you get
from doing it.


I'd dearly love someone to write a decent guide to installing and configuring
Tomcat (with or without apache) that's simple to follow, aimed at the system
administrator and explains all the common cases.


I'd also like to see,

How to build a small cluster of Tomcat instances that cope with failover nicely.

How to configure tomcat with meaningful security between virtual hosts - the
equivalent of suexec in apache limiting different users to different
directories.

How to deal with applications that drop into an infinite loop without taking
the server offline.

How to disable TCPIP shutdown without recompiling Tomcat.

How to make changes to the configuration without a full restart (i.e. doing
the equivalent of apachectrl graceful on a running instance).



Actually I'd like to see a single guide / script that did all of this in one
easy to use go.

Yours,

Pete Stevens

--
Pete Stevens
[EMAIL PROTECTED]
http://www.ex-parrot.com/~pete/

   While SIP typically is used over UDP or TCP, it could, without technical
   changes, be run over IPX, or carrier pigeons, frame relay, ATM AAL5 or X.25,
   in rough order of desireability.
   -- SIP Overview document

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



Re: Restrict access to webapps for IPs

2005-05-10 Thread Lutz Zetzsche
Hi Jens,

Altrock, Jens schrieb:
> Ok, got that. But do I need to install the regular expressions library?

To my practical knowledge, the RemoteAddrValve will work out of the box.
You don't have to install additional libraries to get it work.


> And how to say that I want a whole subnet to be added?

For allowing a whole subnet, just use an asterisk in the allow attribute
value:

 


Lutz


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



getTextContent not found with Tomcat 5.0.28

2005-05-10 Thread Eric VERGNAUD
Hi,
I'm having problems running Tomcat 5.0.28 using JDK 1.5.0.02.
I'm using 1.5 methods such as Node.getTextContent. This works fine  
when run as a standalone app in JDK 1.5, however when run with Tomcat  
under the same JDK, execution throws an exception saying  
getTextContent was not found.

Is there a setting to change somewhere in the Tomcat config files ?
Eric
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


AW: AW: Restrict access to webapps for IPs

2005-05-10 Thread Altrock, Jens
Ok, got that. But do I need to install the regular expressions library?
And how to say that I want a whole subnet to be added?


> -Ursprüngliche Nachricht-
> Von: Tim Funk [mailto:[EMAIL PROTECTED]
> Gesendet: Dienstag, 10. Mai 2005 14:56
> An: Tomcat Users List
> Betreff: Re: AW: Restrict access to webapps for IPs
>
>
> Can be placed in either server.xml, the context declaration
> for the webapp
> (or both)
>
>   allow="127.0.0.1"/>
>
> -Tim
>
> Altrock, Jens wrote:
>
> > That's what I already read, but there's never said in which
> config files
> > to put that in, nor are there any examples... or didn't I
> see them too?
> >
> > Jens
> >
> >
> >
> >>-Ursprüngliche Nachricht-
> >>Von: Tim Funk [mailto:[EMAIL PROTECTED]
> >>Gesendet: Dienstag, 10. Mai 2005 14:42
> >>An: Tomcat Users List
> >>Betreff: Re: Restrict access to webapps for IPs
> >>
> >>
> >>http://jakarta.apache.org/tomcat/faq/security.html#restrict
> >>
> >>-Tim
> >>
> >>Altrock, Jens wrote:
> >>
> >>>Hi there,
> >>>
> >>>Hope this question won't sound as dumb, for I am completely
> >>
> >>new to Tomcat;
> >>
> >>>and I haven't found
> >>>what I was searching for in the documentation though...
> >>>
> >>>I got four different applications/websites in the Tomcat
> >>
> >>webapps directory,
> >>
> >>>let's just call them A,
> >>>B, C and D.
> >>>The applications A, B and C should be accessible from the networks
> >>>192.100.46.0/24
> >>>as well as 172.16.0.0/16
> >>>But application D should be accessible from anywhere.
> >>>
> >>>Is there any way to do this in tomcat? I tried with the
> >>
> >>apache .htaccess
> >>
> >>>files, but that won't work though.
> >>>
> >>
> >>
> -
> >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >
> > ###
> > Diese Nachricht wurde von F-Secure Anti-Virus gescannt.
> >
> > This message has been scanned by F-Secure Anti-Virus.
> >
> >
> >
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
###
Diese Nachricht wurde von F-Secure Anti-Virus gescannt.

This message has been scanned by F-Secure Anti-Virus.


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



Re: Free reporting s/w that works with apache+tomcat

2005-05-10 Thread U K Laxmi
Thank you for the information. I read your report and
it looks interesting. I went to DataVision web site
and found that it can export comma separated files ie.
CSV file. Will it be possible to retain header and
footer information with a .CSV file? I basically want
excel files as the report output. B'coz the end user
needs to send to those reports to it's vendors. Excel
is the most desired format for them. Pls give your
feedback on this before i start implementing on this.
Thank you.

--- "Frank W. Zammetti" <[EMAIL PROTECTED]> wrote:
> Take a look at DataVision.  I think you'll like it. 
> I wrote an article 
> a while back specifically dealing with using it in
> web applications. 
> Although the article uses servlets and you say your
> using JSPs (just 
> JSP's?) it should still be applicable.
> 
> http://www.omnytex.com/articles
> 
> Feel free to ping me if you decide to use it and
> need some help getting 
> going beyond the article and included documentation.
> 
> -- 
> Frank W. Zammetti
> Founder and Chief Software Architect
> Omnytex Technologies
> http://www.omnytex.com
> 
> U K Laxmi wrote:
> > I'm developing a web application using
> apache+tomcat
> > on windows 2000 machine. I'm using Ms Access 2003
> as
> > the backend. I'm using JSP for developing web
> > application. I'm developing some web based reports
> in
> > HTML. But when i export them to Excel, it doesn't
> look
> > exactly same as that of HTML report. Moreover i
> need
> > some header and footer information appear in the
> > report. That i'm unable to achieve using JSP and
> HTML.
> > 
> > 
> > So, i'm looking for a free reporting software that
> can
> > meet above functionality and can work with
> > apache+tomcat. If anyone know any work worunds for
> my
> > problem, pls inform me. It will be a great help to
> me.
> > 
> > Thank you.
> > 
> > 
> > 
> > __ 
> > Yahoo! Mail Mobile 
> > Take Yahoo! Mail with you! Check email on your
> mobile phone. 
> > http://mobile.yahoo.com/learn/mail 
> > 
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > 
> > 
> > 
> > 
> > .
> > 
> 
> 
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 



Discover Yahoo! 
Have fun online with music videos, cool games, IM and more. Check it out! 
http://discover.yahoo.com/online.html

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



Re: Off Topic: Tomcat monitoring tools

2005-05-10 Thread Peter Lin
there's also this, which I haven't tried.

http://mc4j.sourceforge.net/

peter


On 5/10/05, Didier McGillis <[EMAIL PROTECTED]> wrote:
> 
> Maybe something like this will work.
> http://www.hyperic.net
> 
> Its not just for Tomcat.
> 
> >From: "Guillaume Lahitette" <[EMAIL PROTECTED]>
> >Reply-To: "Tomcat Users List" 
> >To: tomcat-user@jakarta.apache.org
> >Subject: RE: Off Topic: Tomcat monitoring tools
> >Date: Tue, 10 May 2005 00:18:25 +0100
> >
> >Thank you very much Peter. Yes indeed, we've used JMeter to do our testing
> >but I wasn't aware of this monitoring capability. I'm trying to install
> >Tomcat 5 to give it a try since JMeter can't play with our Tomcat 4.1.26
> >for monitoring purposes.
> >
> >Any other candidates out there?
> >
> >TIA.
> >Guillaume
> >
> >
> > > -Original Message-
> > > From: Peter Lin [mailto:[EMAIL PROTECTED]
> > > Sent: 09 May 2005 18:47
> > > To: Tomcat Users List
> > > Subject: Re: Off Topic: Tomcat monitoring tools
> > >
> > >
> > > there's a tool call jmeter from a group call Jakarta, you might have
> > > heard of them.
> > >
> > > Jmeter has the ability to monitor multiple tomcat's and show the
> > > performance in a graph.
> > >
> > > http://jakarta.apache.org/jmeter/
> > >
> > > http://jakarta.apache.org/jmeter/usermanual/build-monitor-test-plan.html
> > >
> > > have fun
> > >
> > >
> > > peter lin
> > >
> > >
> > > On 5/9/05, Guillaume Lahitette <[EMAIL PROTECTED]> wrote:
> > > > Hi,
> > > >
> > > > I am looking for feedback on (preferably free) tools to monitor
> > > the performance of Tomcat during stress testing.
> > > >
> > > > We're running Tomcat 4.1.26 in production on Linux and Windows
> > > (as a service).
> > > >
> > > > Ideally, the tool would support connecting to multiple, remote
> >servers.
> > > >
> > > > TIA.
> > > > Guillaume
> > > >
> > > > -
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

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



RE: Off Topic: Tomcat monitoring tools

2005-05-10 Thread Didier McGillis
also there is http://www.nagios.org, also not just for Tomcat.
From: "Guillaume Lahitette" <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" 
To: tomcat-user@jakarta.apache.org
Subject: Off Topic: Tomcat monitoring tools
Date: Mon, 09 May 2005 18:42:30 +0100
Hi,
I am looking for feedback on (preferably free) tools to monitor the 
performance of Tomcat during stress testing.

We're running Tomcat 4.1.26 in production on Linux and Windows (as a 
service).

Ideally, the tool would support connecting to multiple, remote servers.
TIA.
Guillaume
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

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


RE: Off Topic: Tomcat monitoring tools

2005-05-10 Thread Didier McGillis
Maybe something like this will work.
http://www.hyperic.net
Its not just for Tomcat.
From: "Guillaume Lahitette" <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" 
To: tomcat-user@jakarta.apache.org
Subject: RE: Off Topic: Tomcat monitoring tools
Date: Tue, 10 May 2005 00:18:25 +0100
Thank you very much Peter. Yes indeed, we've used JMeter to do our testing 
but I wasn't aware of this monitoring capability. I'm trying to install 
Tomcat 5 to give it a try since JMeter can't play with our Tomcat 4.1.26 
for monitoring purposes.

Any other candidates out there?
TIA.
Guillaume
> -Original Message-
> From: Peter Lin [mailto:[EMAIL PROTECTED]
> Sent: 09 May 2005 18:47
> To: Tomcat Users List
> Subject: Re: Off Topic: Tomcat monitoring tools
>
>
> there's a tool call jmeter from a group call Jakarta, you might have
> heard of them.
>
> Jmeter has the ability to monitor multiple tomcat's and show the
> performance in a graph.
>
> http://jakarta.apache.org/jmeter/
>
> http://jakarta.apache.org/jmeter/usermanual/build-monitor-test-plan.html
>
> have fun
>
>
> peter lin
>
>
> On 5/9/05, Guillaume Lahitette <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > I am looking for feedback on (preferably free) tools to monitor
> the performance of Tomcat during stress testing.
> >
> > We're running Tomcat 4.1.26 in production on Linux and Windows
> (as a service).
> >
> > Ideally, the tool would support connecting to multiple, remote 
servers.
> >
> > TIA.
> > Guillaume
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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

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


Re: Restrict access to webapps for IPs

2005-05-10 Thread Lutz Zetzsche
Hi Jens,

Altrock, Jens schrieb:
> That's what I already read, but there's never said in which config files
> to put that in, nor are there any examples... or didn't I see them too?

What you are looking for is the RemoteAddrValve valve:

http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/valve.html#Remote%20Address%20Filter

Reading your first mail, the right place for the RemoteAddrValve valve
should be within the Context element in your case, although it can also
used for the Host or even the Engine. Each Context element is representing
a web application. For more information, please read the following page
which also explains where to store the Context element:

http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html

Please not that the above two links refer to Tomcat version 5.5. The
information on these pages may not suit previous Tomcat versions. If you
use a Tomcat version prior to 5.5, please consult the respective
documentation.


Best wishes

Lutz




>> -Ursprüngliche Nachricht-
>> Von: Tim Funk [mailto:[EMAIL PROTECTED]
>> Gesendet: Dienstag, 10. Mai 2005 14:42
>> An: Tomcat Users List
>> Betreff: Re: Restrict access to webapps for IPs
>>
>>
>> http://jakarta.apache.org/tomcat/faq/security.html#restrict
>>
>> -Tim
>>
>> Altrock, Jens wrote:
>> > Hi there,
>> >
>> > Hope this question won't sound as dumb, for I am completely
>> new to Tomcat;
>> > and I haven't found
>> > what I was searching for in the documentation though...
>> >
>> > I got four different applications/websites in the Tomcat
>> webapps directory,
>> > let's just call them A,
>> > B, C and D.
>> > The applications A, B and C should be accessible from the networks
>> > 192.100.46.0/24
>> > as well as 172.16.0.0/16
>> > But application D should be accessible from anywhere.
>> >
>> > Is there any way to do this in tomcat? I tried with the
>> apache .htaccess
>> > files, but that won't work though.
>> >
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
> ###
> Diese Nachricht wurde von F-Secure Anti-Virus gescannt.
>
> This message has been scanned by F-Secure Anti-Virus.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



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



Re: AW: Restrict access to webapps for IPs

2005-05-10 Thread Tim Funk
Can be placed in either server.xml, the context declaration for the webapp 
(or both)


-Tim
Altrock, Jens wrote:
That's what I already read, but there's never said in which config files
to put that in, nor are there any examples... or didn't I see them too?
Jens

-Ursprüngliche Nachricht-
Von: Tim Funk [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 10. Mai 2005 14:42
An: Tomcat Users List
Betreff: Re: Restrict access to webapps for IPs
http://jakarta.apache.org/tomcat/faq/security.html#restrict
-Tim
Altrock, Jens wrote:
Hi there,
Hope this question won't sound as dumb, for I am completely 
new to Tomcat;
and I haven't found 
what I was searching for in the documentation though...

I got four different applications/websites in the Tomcat 
webapps directory,
let's just call them A,
B, C and D. 
The applications A, B and C should be accessible from the networks
192.100.46.0/24 
as well as 172.16.0.0/16
But application D should be accessible from anywhere.

Is there any way to do this in tomcat? I tried with the 
apache .htaccess
files, but that won't work though.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
###
Diese Nachricht wurde von F-Secure Anti-Virus gescannt.
This message has been scanned by F-Secure Anti-Virus.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

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


Re: Connecting Tomcat5.5.9 + Apache2.0.54

2005-05-10 Thread lercoli
I 've followed the instructions described in this link
http://jakarta.apache.org/tomcat/connectors-doc/howto/apache.html
and it works.


httpd.conf

..

LoadModule jk_module modules/mod_jk.so

JkWorkersFile D:/Tomcat5.5/conf/workers.properties

JkLogFile D:/Tomcat5.5/logs/mod_jk.log
JkLogLevel info

JkAutoAlias D:/Tomcat5.5/webapps

JkMount /*.jsp worker1
JkMount /*/servlet/* worker1


worker.properties (must be created and placed in the conf directory of
Tomcat)

# Define 1 real worker using ajp13

worker.list=worker1

# Set properties for worker1 (ajp13)

worker.worker1.type=ajp13

worker.worker1.host=localhost

worker.worker1.port=8009

worker.worker1.lbfactor=50

worker.worker1.cachesize=10

worker.worker1.cache_timeout=600

worker.worker1.socket_keepalive=1

worker.worker1.reclycle_timeout=300



finally decomment the following line in server.xml of Tomcat







I hope it helps you.



Luca Ercoli


- Original Message - 
From: <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, May 10, 2005 1:42 PM
Subject: Connecting Tomcat5.5.9 + Apache2.0.54


I had one question regarding connectors with Apache and Tomcat.  I'm
just playing around with configurations on my XP Laptop to get a feel
for Apache.  I have Apache 2.0.54 and Tomcat 5.5.9 installed and both
are running fine.  However, I am stuck with connecting the two so that I
don't have to type in localhost:8080 in my browser and instead use
mod_jk to connect the two.  I have been unable to make Apache 2.0.54
work with Tomcat 5.5.9 using mod_jk
(http://www.reverse.net/pub/apache/jakarta/tomcat-connectors/jk/binaries
/win32/jk-1.2.12/ - using the mod_jk-1.2.12-apache-2.0.54.so file
instead of DLL).

The only thing different with Tomcat 5.5, as far as I know, is that the
auto-generation of mod_jk.conf using the Listener elements doesn't work
because the class files either don't exist or are in different
locations.  Has anyone found a solution/approach to connect the two?  Is
there anything I should be doing different?  I really appreciate any
help you can provide.

Thanks.


This message is for the designated recipient only and may contain
privileged, proprietary, or otherwise private information.  If you have
received it in error, please notify the sender immediately and delete the
original.  Any other use of the email by you is prohibited.

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





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



AW: Restrict access to webapps for IPs

2005-05-10 Thread Altrock, Jens
That's what I already read, but there's never said in which config files
to put that in, nor are there any examples... or didn't I see them too?

Jens


> -Ursprüngliche Nachricht-
> Von: Tim Funk [mailto:[EMAIL PROTECTED]
> Gesendet: Dienstag, 10. Mai 2005 14:42
> An: Tomcat Users List
> Betreff: Re: Restrict access to webapps for IPs
>
>
> http://jakarta.apache.org/tomcat/faq/security.html#restrict
>
> -Tim
>
> Altrock, Jens wrote:
> > Hi there,
> >
> > Hope this question won't sound as dumb, for I am completely
> new to Tomcat;
> > and I haven't found
> > what I was searching for in the documentation though...
> >
> > I got four different applications/websites in the Tomcat
> webapps directory,
> > let's just call them A,
> > B, C and D.
> > The applications A, B and C should be accessible from the networks
> > 192.100.46.0/24
> > as well as 172.16.0.0/16
> > But application D should be accessible from anywhere.
> >
> > Is there any way to do this in tomcat? I tried with the
> apache .htaccess
> > files, but that won't work though.
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
###
Diese Nachricht wurde von F-Secure Anti-Virus gescannt.

This message has been scanned by F-Secure Anti-Virus.


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



Re: Restrict access to webapps for IPs

2005-05-10 Thread Tim Funk
http://jakarta.apache.org/tomcat/faq/security.html#restrict
-Tim
Altrock, Jens wrote:
Hi there,
Hope this question won't sound as dumb, for I am completely new to Tomcat;
and I haven't found 
what I was searching for in the documentation though...

I got four different applications/websites in the Tomcat webapps directory,
let's just call them A,
B, C and D. 
The applications A, B and C should be accessible from the networks
192.100.46.0/24 
as well as 172.16.0.0/16
But application D should be accessible from anywhere.

Is there any way to do this in tomcat? I tried with the apache .htaccess
files, but that won't work though.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Restrict access to webapps for IPs

2005-05-10 Thread Altrock, Jens
Hi there,

Hope this question won't sound as dumb, for I am completely new to Tomcat;
and I haven't found 
what I was searching for in the documentation though...

I got four different applications/websites in the Tomcat webapps directory,
let's just call them A,
B, C and D. 
The applications A, B and C should be accessible from the networks
192.100.46.0/24 
as well as 172.16.0.0/16
But application D should be accessible from anywhere.

Is there any way to do this in tomcat? I tried with the apache .htaccess
files, but that won't work though.

Hope anyone can help me

Regards,

Jens Altrock


###
Diese Nachricht wurde von F-Secure Anti-Virus gescannt.

This message has been scanned by F-Secure Anti-Virus.


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



RE: Undeploying webapp on windows

2005-05-10 Thread Serlet Jean-Claude
Hello

Have you tried to use the command undeploy of the manager ?
Like this 
http://yourhost:yourportnumber/manager/undeploy?path=(context_path) 
Take care : this command after stopping the application will delete the
directory where your application was deployed and remove the entry of the
 from your server.xml of CATALINA_HOME/conf


Jean-Claude

-Message d'origine-
De : Joakim Ahlén [mailto:[EMAIL PROTECTED]
Envoyé : mardi 10 mai 2005 09:20
À : Tomcat Users List
Objet : Undeploying webapp on windows


Hi,

I guess this question has come up a thousand times on this list, but i 
still have no workaround for it so i need to get a tip or two from you guys.

We're using Tomcat 5.5.9 on Windows 2003 Server, and we cannot 
hot-deploy webapps. The cause is one of our jar-files in WEB-INF being 
locked, so the webapp cannot be undeployed. (The directory 
webapps// cannot be deleted).

Now, i've scanned the net a lot about this problem and have tried lots 
and lots of stuff.

- Stopping the webapp before trying to remove the 
webapps//-directory does NOT work.
- Using reloadable="true", antiJARLocking="true" 
antiResourceLocking="true" in the context.xml for each webapp does NOT work.

We have about 75 (almost identical) webapps or so running on our server. 
With the software "Process Explorer" from sysinternals 
(http://www.sysinternals.com/files/procexpnt.zip), i can see all open 
files in the system. On any given time, "tomcat5.exe" has one jar-file 
in each of about 3-5 webapps open with a file handle. These are never 
closed, but open for as long as tomcat lives (or at least, for a very 
long time. Hours or days.)

Now, i know what is said about this problem. "It's an OS problem, not a 
tomcat issue". I can't understand that though, since:

- Hot deploy worked perfectly under windows with tomcat 4.1.X. What has 
changed since then?
- Tomcat evidently has several file handles open to these jar-files 
which it doesn't close. Isn't the problem this, that tomcat doesn't 
close the file handles to its opened jar-files?

I can close these file handles manually from within process explorer, 
but then tomcat goes berserk and nothing works.

Is there anything i'm missing here?
Isn't there any way whatsoever to be able to use hot deploy under 
windows today?
Why doesn't antiJARLocking and antiResourceLocking work at all, i 
thought these should adress this particular problem?

I'm attaching a screenshot of the open files from within process explorer.

Hope you can help me!

Regards

Joakim



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



DBCP Exception

2005-05-10 Thread Joy Kenneth Harry

Hi,
Can anyone tell why I am getting this exception.


SEVERE: Null component
Catalina:type=DataSource,path=/,host=localhost,class=java
x.sql.DataSource,name="jdbc/oracle"


Thanks
Joy Kenneth



Re: Free reporting s/w that works with apache+tomcat

2005-05-10 Thread Frank W. Zammetti
Take a look at DataVision.  I think you'll like it.  I wrote an article 
a while back specifically dealing with using it in web applications. 
Although the article uses servlets and you say your using JSPs (just 
JSP's?) it should still be applicable.

http://www.omnytex.com/articles
Feel free to ping me if you decide to use it and need some help getting 
going beyond the article and included documentation.

--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
U K Laxmi wrote:
I'm developing a web application using apache+tomcat
on windows 2000 machine. I'm using Ms Access 2003 as
the backend. I'm using JSP for developing web
application. I'm developing some web based reports in
HTML. But when i export them to Excel, it doesn't look
exactly same as that of HTML report. Moreover i need
some header and footer information appear in the
report. That i'm unable to achieve using JSP and HTML.
So, i'm looking for a free reporting software that can
meet above functionality and can work with
apache+tomcat. If anyone know any work worunds for my
problem, pls inform me. It will be a great help to me.
Thank you.
		
__ 
Yahoo! Mail Mobile 
Take Yahoo! Mail with you! Check email on your mobile phone. 
http://mobile.yahoo.com/learn/mail 

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

.


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


Re: tomcat System Administrator's Guide and SysAdmin tools

2005-05-10 Thread QM
On Mon, May 09, 2005 at 03:42:22PM -0700, Steve Jacobson wrote:
:  We have been looking for a comprehensive System Administrator's Guide 
: for Tomcat, that looks at Tomcat from the perspective of a System 
: Administrator that needs to deploy tomcat and applications on tomcat.  

So far, so good...


: Most of what we have googled concentrates on deploying tomcat for a 
: developer, or a development environment.  Many SysAdmins don't actually 
: speak java, though, and would be looking for a guide to be able to 
: support java applications on their servers without having to become java 
: experts themselves.

Here's the catch: there's a lot of Java in J2EE/Tomcat.  Tuning memory
heap sizes, configuring JDBC pools, analyzing a failed WAR deployment,
etc.

What you have to know ultimately depends on those situations for which
you will be held responsible.



:  We are also looking for any tools that might be used to verify a 
: successful installation of tomcat, beyond the index.jsp, and manager and 
: admin tools.  Has anyone written anything that goes through and makes 
: sure that tomcat is installed correctly, and that everything is set up 
: properly, as an installation verification tool?


Successful install: the file unzips without error.  =)

Setup properly: depends on your app. =)


-- 

software   -- http://www.brandxdev.net/
tech news  -- http://www.RoarNetworX.com/
code scan  -- http://www.JxRef.org/

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



Connecting Tomcat5.5.9 + Apache2.0.54

2005-05-10 Thread uttam.g.dubal
I had one question regarding connectors with Apache and Tomcat.  I'm
just playing around with configurations on my XP Laptop to get a feel
for Apache.  I have Apache 2.0.54 and Tomcat 5.5.9 installed and both
are running fine.  However, I am stuck with connecting the two so that I
don't have to type in localhost:8080 in my browser and instead use
mod_jk to connect the two.  I have been unable to make Apache 2.0.54
work with Tomcat 5.5.9 using mod_jk
(http://www.reverse.net/pub/apache/jakarta/tomcat-connectors/jk/binaries
/win32/jk-1.2.12/ - using the mod_jk-1.2.12-apache-2.0.54.so file
instead of DLL).

The only thing different with Tomcat 5.5, as far as I know, is that the
auto-generation of mod_jk.conf using the Listener elements doesn't work
because the class files either don't exist or are in different
locations.  Has anyone found a solution/approach to connect the two?  Is
there anything I should be doing different?  I really appreciate any
help you can provide.
 
Thanks.


This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information.  If you have received it in 
error, please notify the sender immediately and delete the original.  Any other 
use of the email by you is prohibited.

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



Re: Tomcat5.5.9 + jdk1.5 HTTPS

2005-05-10 Thread Carlos =?utf-8?b?Q29uZMOp?=
Jason Bainbridge  gmail.com> writes:

> Try specifying an absolute path for the keystoreFile, I'm not sure
> what that is relative to and shouldn't that be .keystore anyway?

I've tried with an absolute path for the keystore, and with the default
($HOME/.keystore) location, it still does'nt work !

If I misspell the absolute path or if the keystore is not in the default
location (without a path in the server.xml), tomcat throws an exception... So
tomcat takes the right keystore when I specify it.

I've sent the problem to Thawte technical support, they're still trying to find
out...




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



RE: tomcat restart?

2005-05-10 Thread Dale, Matt

This is not possible as even if it could be shut down then the servlet will no 
longer exist to restart it. The only way would be for the servlet to notify 
some external process that the tomcat needs to be restarted and the external 
process will do the stopping and starting.

Ta
Matt

-Original Message-
From: Beton, Richard [mailto:[EMAIL PROTECTED]
Sent: 10 May 2005 10:56
To: Tomcat Users List
Subject: tomcat restart?


Is it possible to write a servlet that can restart Tomcat 5.5?


I am loading native library code and this has to be in the shared/lib 

area for the webapp to be restartable (if it's in the webapp/WEB-INF/lib 
then restarting the webapp fails). However, I want to be able to install 
a new version of my code, then restart Tomcat and then my webapp will 

pick up the new version.


Rick


refs:

http://jakarta.apache.org/tomcat/tomcat-5.5-doc/class-loader-howto.html

http://jakarta.apache.org/tomcat/tomcat-5.5-doc/RELEASE-NOTES.txt








-- 

Visit our website at www.roke.co.uk

Roke Manor Research Ltd, Roke Manor, Romsey, Hampshire SO51 0ZN, UK.

The information contained in this e-mail and any attachments is proprietary to
Roke Manor Research Ltd and must not be passed to any third party without
permission. This communication is for information only and shall not create or
change any contractual relationship.


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



tomcat restart?

2005-05-10 Thread Beton, Richard
Is it possible to write a servlet that can restart Tomcat 5.5?

I am loading native library code and this has to be in the shared/lib 
area for the webapp to be restartable (if it's in the webapp/WEB-INF/lib 
then restarting the webapp fails). However, I want to be able to install 
a new version of my code, then restart Tomcat and then my webapp will 
pick up the new version.

Rick

refs:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/class-loader-howto.html
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/RELEASE-NOTES.txt







-- 

Visit our website at www.roke.co.uk

Roke Manor Research Ltd, Roke Manor, Romsey, Hampshire SO51 0ZN, UK.

The information contained in this e-mail and any attachments is proprietary to
Roke Manor Research Ltd and must not be passed to any third party without
permission. This communication is for information only and shall not create or
change any contractual relationship.



Does Tomcat support URL containing CHINESE characters?

2005-05-10 Thread Daniel Sun
Hi all,

I have the following settings.

WinXP Prof CHINESE SIMPLIFIED w/ SPK2

Tomcat 5.0.28

JDK 1.5..0.3

 

I have a folder, whose name contains CHINESE characters (eg. 新键文件夹 ? 
“new folder”), under the “[CATALINA_HOME]\webapps\jsp-example”.

When I browse to it in IE with URL 
http://localhost:8080/jsp-examples/新键文件夹/ 
 , I got the HTTP status 404, 
the error description is : The requested resource 
(/jsp-examples/%E6%96…%A4%B9) is not available.

I can access English only URL without any problem (eg. 
“http://localhost:8080/jsp-examples/new folder”)

 

I tried the same with Apache 2 and IIS, it works in both environments.

 

Can someone please give me a hint on where I can go now? (eg. Do I have to use 
Apache to support this, and PLUS connectors with Tomcat to support Servelet in 
addition).

 

Many thanks in advance.

 



RE: How do I handle International Characters

2005-05-10 Thread Allistair Crossley
A method we have used with success for inbound request encoding is to add a 
Servlet Filter to our application whose sole job is to call 
request.setCharacterEncoding("UTF-8")

Allistair.

> -Original Message-
> From: Christoph Kutzinski [mailto:[EMAIL PROTECTED]
> Sent: 10 May 2005 08:54
> To: Tomcat Users List
> Subject: Re: How do I handle International Characters
> 
> 
> Lutz Zetzsche wrote:
> 
> >Hi Harry,
> >
> >Am Montag, 9. Mai 2005 20:53 schrieb Harry Mantheakis:
> >  
> >
> >>Browsers should (and mostly do, I think) respect the encoding you
> >>specify when setting the response content-type (and the meta-tag
> >>content-type) so you can simply assume (in your filter) that your
> >>form-data will be in UTF-8.
> >>
> >>Clients still need to, of course, set their browsers to display the
> >>relevant charsets correctly.
> >>
> >>
> >
> >As far as HTML forms are concerned, you can force the 
> browser to submit 
> >them to the server using a particular charset by adding the 
> >"accept-charset" attribute to the form tag, i.e.:
> >
> > 
> > ...
> > 
> >
> >http://www.w3.org/TR/REC-html40/interact/forms.html#adef-acce
pt-charset
>
>
>  
>

This does however not work with Internet Explorer.
I had this problem in the past. IE insists on using the page charset and 
ignores the accept-charset attribute.

There were some more information at this URL 
(http://ppewww.ph.gla.ac.uk/~flavell/charset/form-i18n.html), but it is 
currently not available.

HTH
Christoph

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



 
---
QAS Ltd.
Developers of QuickAddress Software
http://www.qas.com";>www.qas.com
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---



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



Re: How do I handle International Characters

2005-05-10 Thread Christoph Kutzinski
Lutz Zetzsche wrote:
Hi Harry,
Am Montag, 9. Mai 2005 20:53 schrieb Harry Mantheakis:
 

Browsers should (and mostly do, I think) respect the encoding you
specify when setting the response content-type (and the meta-tag
content-type) so you can simply assume (in your filter) that your
form-data will be in UTF-8.
Clients still need to, of course, set their browsers to display the
relevant charsets correctly.
   

As far as HTML forms are concerned, you can force the browser to submit 
them to the server using a particular charset by adding the 
"accept-charset" attribute to the form tag, i.e.:


...

http://www.w3.org/TR/REC-html40/interact/forms.html#adef-accept-charset
 

This does however not work with Internet Explorer.
I had this problem in the past. IE insists on using the page charset and 
ignores the accept-charset attribute.

There were some more information at this URL 
(http://ppewww.ph.gla.ac.uk/~flavell/charset/form-i18n.html), but it is 
currently not available.

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


Re: How do I handle International Characters

2005-05-10 Thread Harry Mantheakis
Hi Lutz

> As far as HTML forms are concerned, you can force the browser to submit
> them to the server using a particular charset by adding the
> "accept-charset" attribute to the form tag, i.e.:
> 
> 
> ...
> 
> 
> http://www.w3.org/TR/REC-html40/interact/forms.html#adef-accept-charset

Thanks for that tip!

Setting the 'http-equiv' meta-tag seems to suffice, but I'm all for a belt
and braces approach.

Kind regards

Harry Mantheakis
London, UK



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



[ANN] Memory Profiling with Reference Scanner

2005-05-10 Thread jb2 . 505
Hi all,

some news about Reference Scanner, frequently used to find memory leaks in 
tomcat and webapplications:

 -1-
Profiling of tomcat and webapplications has been simplified yet:
In earlier versions of Reference Scanner it was required to patch thesource 
code (Bootstrap.java), this is not required anymore. 
Simply call the Reference Scanner Launcher within the start script catalina.sh, 
that's all. 
http://jb2works.com/refscan/start.html#tomcat

 -2-
Furthermore, we have now plugins for Eclipse and IntelliJ-IDEA.
http://jb2works.com/refscan/plugins.html


 - Reference Scanner Summary -
Use your web browser and inspect your running Java application. Create memory 
snapshots and compare against each other. Analyze reference graphs. Find memory 
leaks. Test elimination ofmemory leaks without to change in code.

Your application runs at normal speed. Does not require JVMPI debug mode.
Simply add this memory profiler .jar, 835kbyte.

usage/ current screenshots
http://jb2works.com/refscan/usage.html

download
http://jb2works.com/refscan/status.html

faq
http://jb2works.com/refscan/faq.html


Best Regards,
Joerg Baumgaertel

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



Re: Free reporting s/w that works with apache+tomcat

2005-05-10 Thread Marco Pöhler
May be DisplayTag and its export functionality can help you with
formating. 

http://displaytag.sourceforge.net/

regards,

Marco 


http://www.druckerpatronen--preisvergleich.de
http://www.tuxoo.org



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



Re: Undeploying webapp on windows

2005-05-10 Thread Joakim Ahlén
Well, that didn't work.
The screenshot is at:
http://ebba.geosition.com/~joakima/temp/screenshot_procexp.jpg
//j
Joakim Ahlén wrote:
Hi,
I guess this question has come up a thousand times on this list, but i 
still have no workaround for it so i need to get a tip or two from you 
guys.

We're using Tomcat 5.5.9 on Windows 2003 Server, and we cannot 
hot-deploy webapps. The cause is one of our jar-files in WEB-INF being 
locked, so the webapp cannot be undeployed. (The directory 
webapps// cannot be deleted).

Now, i've scanned the net a lot about this problem and have tried lots 
and lots of stuff.

- Stopping the webapp before trying to remove the 
webapps//-directory does NOT work.
- Using reloadable="true", antiJARLocking="true" 
antiResourceLocking="true" in the context.xml for each webapp does NOT 
work.

We have about 75 (almost identical) webapps or so running on our server. 
With the software "Process Explorer" from sysinternals 
(http://www.sysinternals.com/files/procexpnt.zip), i can see all open 
files in the system. On any given time, "tomcat5.exe" has one jar-file 
in each of about 3-5 webapps open with a file handle. These are never 
closed, but open for as long as tomcat lives (or at least, for a very 
long time. Hours or days.)

Now, i know what is said about this problem. "It's an OS problem, not a 
tomcat issue". I can't understand that though, since:

- Hot deploy worked perfectly under windows with tomcat 4.1.X. What has 
changed since then?
- Tomcat evidently has several file handles open to these jar-files 
which it doesn't close. Isn't the problem this, that tomcat doesn't 
close the file handles to its opened jar-files?

I can close these file handles manually from within process explorer, 
but then tomcat goes berserk and nothing works.

Is there anything i'm missing here?
Isn't there any way whatsoever to be able to use hot deploy under 
windows today?
Why doesn't antiJARLocking and antiResourceLocking work at all, i 
thought these should adress this particular problem?

I'm attaching a screenshot of the open files from within process explorer.
Hope you can help me!
Regards
Joakim


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


Fwd: Free reporting s/w that works with apache+tomcat

2005-05-10 Thread U K Laxmi

--- U K Laxmi <[EMAIL PROTECTED]> wrote:
> Date: Mon, 9 May 2005 23:57:41 -0700 (PDT)
> From: U K Laxmi <[EMAIL PROTECTED]>
> Subject: Free reporting s/w that works with
> apache+tomcat
> To: Tomcat Users List
> 
> 
> I'm developing a web application using apache+tomcat
> on windows 2000 machine. I'm using Ms Access 2003 as
> the backend. I'm using JSP for developing web
> application. I'm developing some web based reports
> in
> HTML. But when i export them to Excel, it doesn't
> look
> exactly same as that of HTML report. Moreover i need
> some header and footer information appear in the
> report. That i'm unable to achieve using JSP and
> HTML.
> 
> 
> So, i'm looking for a free reporting software that
> can
> meet above functionality and can work with
> apache+tomcat. If anyone know any work worunds for
> my
> problem, pls inform me. It will be a great help to
> me.
> 
> Thank you.
> 
> 
>   
> __ 
> Yahoo! Mail Mobile 
> Take Yahoo! Mail with you! Check email on your
> mobile phone. 
> http://mobile.yahoo.com/learn/mail 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 



__ 
Do you Yahoo!? 
Yahoo! Mail - Find what you need with new enhanced search. 
http://info.mail.yahoo.com/mail_250

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



Undeploying webapp on windows

2005-05-10 Thread Joakim Ahlén
Hi,
I guess this question has come up a thousand times on this list, but i 
still have no workaround for it so i need to get a tip or two from you guys.

We're using Tomcat 5.5.9 on Windows 2003 Server, and we cannot 
hot-deploy webapps. The cause is one of our jar-files in WEB-INF being 
locked, so the webapp cannot be undeployed. (The directory 
webapps// cannot be deleted).

Now, i've scanned the net a lot about this problem and have tried lots 
and lots of stuff.

- Stopping the webapp before trying to remove the 
webapps//-directory does NOT work.
- Using reloadable="true", antiJARLocking="true" 
antiResourceLocking="true" in the context.xml for each webapp does NOT work.

We have about 75 (almost identical) webapps or so running on our server. 
With the software "Process Explorer" from sysinternals 
(http://www.sysinternals.com/files/procexpnt.zip), i can see all open 
files in the system. On any given time, "tomcat5.exe" has one jar-file 
in each of about 3-5 webapps open with a file handle. These are never 
closed, but open for as long as tomcat lives (or at least, for a very 
long time. Hours or days.)

Now, i know what is said about this problem. "It's an OS problem, not a 
tomcat issue". I can't understand that though, since:

- Hot deploy worked perfectly under windows with tomcat 4.1.X. What has 
changed since then?
- Tomcat evidently has several file handles open to these jar-files 
which it doesn't close. Isn't the problem this, that tomcat doesn't 
close the file handles to its opened jar-files?

I can close these file handles manually from within process explorer, 
but then tomcat goes berserk and nothing works.

Is there anything i'm missing here?
Isn't there any way whatsoever to be able to use hot deploy under 
windows today?
Why doesn't antiJARLocking and antiResourceLocking work at all, i 
thought these should adress this particular problem?

I'm attaching a screenshot of the open files from within process explorer.
Hope you can help me!
Regards
Joakim

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